/*! For license information please see 2.a9f287c0.chunk.js.LICENSE.txt */ (this.webpackJsonppawtell=this.webpackJsonppawtell||[]).push([[2],[function(t,e,l){"use strict";t.exports=l(1207)},function(t,e,l){t.exports=l(1211)()},function(t,e,l){"use strict";l.d(e,"a",(function(){return h})),l.d(e,"b",(function(){return v})),l.d(e,"c",(function(){return w}));var n=l(98),r=l(31),i=l(0),o=l.n(i),a=l(184),s=(l(1),l(3)),u=l(21),c=l(135),h=function(t){function e(){for(var e,l=arguments.length,n=new Array(l),r=0;r0?t+"px":null}function s(){return document.body.clientWidth0;)i[l=n[r-=1]]=t[l];return i}var g={};function m(t){g[t]||("undefined"!==typeof console&&console.error(t),g[t]=!0)}function v(t,e){return function(l,n,r){null!==l[n]&&"undefined"!==typeof l[n]&&m('"'+n+'" property of "'+r+'" has been deprecated.\n'+e);for(var i=arguments.length,o=new Array(i>3?i-3:0),a=3;a=0;a--)(r=t[a])&&(o=(i<3?r(o):i>3?r(e,l,o):r(e,l))||o);return i>3&&o&&Object.defineProperty(e,l,o),o}function s(t,e){return function(l,n){e(l,n,t)}}function u(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,l,n){return new(l||(l=Promise))((function(r,i){function o(t){try{s(n.next(t))}catch(e){i(e)}}function a(t){try{s(n.throw(t))}catch(e){i(e)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof l?e:new l((function(t){t(e)}))).then(o,a)}s((n=n.apply(t,e||[])).next())}))}function h(t,e){var l,n,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(l)throw new TypeError("Generator is already executing.");for(;o;)try{if(l=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var l="function"===typeof Symbol&&t[Symbol.iterator];if(!l)return t;var n,r,i=l.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(a){r={error:a}}finally{try{n&&!n.done&&(l=i.return)&&l.call(i)}finally{if(r)throw r.error}}return o}function g(){for(var t=[],e=0;e1||a(t,e)}))})}function a(t,e){try{(l=r[t](e)).value instanceof v?Promise.resolve(l.value.v).then(s,u):c(i[0][2],l)}catch(n){c(i[0][3],n)}var l}function s(t){a("next",t)}function u(t){a("throw",t)}function c(t,e){t(e),i.shift(),i.length&&a(i[0][0],i[0][1])}}function b(t){var e,l;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,r){e[n]=t[n]?function(e){return(l=!l)?{value:v(t[n](e)),done:"return"===n}:r?r(e):e}:r}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,l=t[Symbol.asyncIterator];return l?l.call(t):(t=f(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(l){e[l]=t[l]&&function(e){return new Promise((function(n,r){(function(t,e,l,n){Promise.resolve(n).then((function(e){t({value:e,done:l})}),e)})(n,r,(e=t[l](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function _(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var l in t)Object.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function M(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,l){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,l),l}},function(t,e){var l={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},n={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},r=Object.prototype.toString,i=Array.prototype,o=i.forEach,a=i.filter,s=i.slice,u=i.map,c=i.reduce,h={};function d(t){if(null==t||"object"!==typeof t)return t;var e=t,i=r.call(t);if("[object Array]"===i){if(!S(t)){e=[];for(var o=0,a=t.length;o=e.left&&t.left=e.top&&t.top");document.body.appendChild(t);var e=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return f(t),e}()),T}function A(t){return t=Math.max(0,t),t=Math.round(t)}function D(t,e){void 0===e&&(e=!1);var l=window.getComputedStyle(t),n=parseInt(l.borderLeftWidth,10)||0,r=parseInt(l.borderRightWidth,10)||0,i=parseInt(l.borderTopWidth,10)||0,o=parseInt(l.borderBottomWidth,10)||0,a=A(t.offsetWidth-t.clientWidth-n-r),s={borderLeft:n,borderRight:r,borderTop:i,borderBottom:o,scrollbarBottom:A(t.offsetHeight-t.clientHeight-i-o),scrollbarLeft:0,scrollbarRight:0};return O()&&"rtl"===l.direction?s.scrollbarLeft=a:s.scrollbarRight=a,e&&(s.paddingLeft=parseInt(l.paddingLeft,10)||0,s.paddingRight=parseInt(l.paddingRight,10)||0,s.paddingTop=parseInt(l.paddingTop,10)||0,s.paddingBottom=parseInt(l.paddingBottom,10)||0),s}function P(t,e){void 0===e&&(e=!1);var l=I(t),n=D(t,e),r={left:l.left+n.borderLeft+n.scrollbarLeft,right:l.right-n.borderRight-n.scrollbarRight,top:l.top+n.borderTop,bottom:l.bottom-n.borderBottom-n.scrollbarBottom};return e&&(r.left+=n.paddingLeft,r.right-=n.paddingRight,r.top+=n.paddingTop,r.bottom-=n.paddingBottom),r}function I(t){var e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function L(t){return t.getBoundingClientRect().height+R(t)}function R(t){var e=window.getComputedStyle(t);return parseInt(e.marginTop,10)+parseInt(e.marginBottom,10)}function N(t){for(var e=[];t instanceof HTMLElement;){var l=window.getComputedStyle(t);if("fixed"===l.position)break;/(auto|scroll)/.test(l.overflow+l.overflowY+l.overflowX)&&e.push(t),t=t.parentNode}return e}function j(t){return N(t).map((function(t){return P(t)})).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce((function(t,e){return M(t,e)||e}))}function B(t){t.preventDefault()}function F(t,e,l,n){function r(t){var e=m(t.target,l);e&&n.call(e,t,e)}return t.addEventListener(e,r),function(){t.removeEventListener(e,r)}}var z=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function U(t,e){var l=function l(n){e(n),z.forEach((function(e){t.removeEventListener(e,l)}))};z.forEach((function(e){t.addEventListener(e,l)}))}var H=["sun","mon","tue","wed","thu","fri","sat"];function Z(t,e){var l=tt(t);return l[2]+=7*e,et(l)}function V(t,e){var l=tt(t);return l[2]+=e,et(l)}function W(t,e){var l=tt(t);return l[6]+=e,et(l)}function G(t,e){return Y(t,e)/7}function Y(t,e){return(e.valueOf()-t.valueOf())/864e5}function q(t,e){return nt(t)===nt(e)?Math.round(Y(t,e)):null}function X(t){return et([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function K(t,e,l,n){var r=et([e,0,1+$(e,l,n)]),i=X(t),o=Math.round(Y(r,i));return Math.floor(o/7)+1}function $(t,e,l){var n=7+e-l;return-((7+et([t,0,n]).getUTCDay()-e)%7)+n-1}function Q(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function J(t){return new Date(t[0],t[1]||0,null==t[2]?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function tt(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function et(t){return 1===t.length&&(t=t.concat([0])),new Date(Date.UTC.apply(Date,t))}function lt(t){return!isNaN(t.valueOf())}function nt(t){return 1e3*t.getUTCHours()*60*60+1e3*t.getUTCMinutes()*60+1e3*t.getUTCSeconds()+t.getUTCMilliseconds()}var rt=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function it(t,e){var l;return"string"===typeof t?function(t){var e=rt.exec(t);if(e){var l=e[1]?-1:1;return{years:0,months:0,days:l*(e[2]?parseInt(e[2],10):0),milliseconds:l*(60*(e[3]?parseInt(e[3],10):0)*60*1e3+60*(e[4]?parseInt(e[4],10):0)*1e3+1e3*(e[5]?parseInt(e[5],10):0)+(e[6]?parseInt(e[6],10):0))}}return null}(t):"object"===typeof t&&t?ot(t):"number"===typeof t?ot(((l={})[e||"milliseconds"]=t,l)):null}function ot(t){return{years:t.years||t.year||0,months:t.months||t.month||0,days:(t.days||t.day||0)+7*at(t),milliseconds:60*(t.hours||t.hour||0)*60*1e3+60*(t.minutes||t.minute||0)*1e3+1e3*(t.seconds||t.second||0)+(t.milliseconds||t.millisecond||t.ms||0)}}function at(t){return t.weeks||t.week||0}function st(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function ut(t){return ct(t)/864e5}function ct(t){return 31536e6*t.years+2592e6*t.months+864e5*t.days+t.milliseconds}function ht(t,e){var l=t.milliseconds;if(l){if(l%1e3!==0)return{unit:"millisecond",value:l};if(l%6e4!==0)return{unit:"second",value:l/1e3};if(l%36e5!==0)return{unit:"minute",value:l/6e4};if(l)return{unit:"hour",value:l/36e5}}return t.days?e||t.days%7!==0?{unit:"day",value:t.days}:{unit:"week",value:t.days/7}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function dt(t,e){e.left&&x(t,{borderLeftWidth:1,marginLeft:e.left-1}),e.right&&x(t,{borderRightWidth:1,marginRight:e.right-1})}function ft(t){x(t,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})}function pt(){document.body.classList.add("fc-not-allowed")}function gt(){document.body.classList.remove("fc-not-allowed")}function mt(t,e,l){var n=Math.floor(e/t.length),r=Math.floor(e-n*(t.length-1)),i=[],o=[],a=[],s=0;vt(t),t.forEach((function(e,l){var u=l===t.length-1?r:n,c=e.getBoundingClientRect().height,h=c+R(e);he&&(e=n)}})),e++,t.forEach((function(t){t.style.width=e+"px"})),e}function bt(t,e){var l={position:"relative",left:-1};x(t,l),x(e,l);var n=t.getBoundingClientRect().height-e.getBoundingClientRect().height,r={position:"",left:""};return x(t,r),x(e,r),n}function wt(t){t.classList.add("fc-unselectable"),t.addEventListener("selectstart",B)}function xt(t){t.classList.remove("fc-unselectable"),t.removeEventListener("selectstart",B)}function _t(t){t.addEventListener("contextmenu",B)}function St(t){t.removeEventListener("contextmenu",B)}function Mt(t,e,l){return l.func?l.func(t,e):function(t,e){if(!t&&!e)return 0;if(null==e)return-1;if(null==t)return 1;if("string"===typeof t||"string"===typeof e)return String(t).localeCompare(String(e));return t-e}(t[l.field],e[l.field])*(l.order||1)}function Et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Ct(t,e){var l=String(t);return"000".substr(0,e-l.length)+l}function kt(t,e){return t-e}function Tt(t){return t%1===0}function Ot(t,e,l){if("function"===typeof t&&(t=[t]),t){var n=void 0,r=void 0;for(n=0;n=ct(e)&&(n=V(n,1))}return t.start&&(l=X(t.start),n&&n<=l&&(n=V(l,1))),{start:l,end:n}}function Rt(t,e,l,n){return"year"===n?it(l.diffWholeYears(t,e),"year"):"month"===n?it(l.diffWholeMonths(t,e),"month"):function(t,e){var l=X(t),n=X(e);return{years:0,months:0,days:Math.round(Y(l,n)),milliseconds:e.valueOf()-n.valueOf()-(t.valueOf()-l.valueOf())}}(t,e)}var Nt=function(t,e){return(Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var l in e)e.hasOwnProperty(l)&&(t[l]=e[l])})(t,e)};function jt(t,e){function l(){this.constructor=t}Nt(t,e),t.prototype=null===e?Object.create(e):(l.prototype=e.prototype,new l)}var Bt=function(){return(Bt=Object.assign||function(t){for(var e,l=1,n=arguments.length;l=0;i--)if("object"===typeof(o=t[i][n])&&o)r.unshift(o);else if(void 0!==o){s[n]=o;break}r.length&&(s[n]=Ut(r))}for(l=t.length-1;l>=0;l--)for(n in a=t[l])n in s||(s[n]=a[n]);return s}function Ht(t,e){var l={};for(var n in t)e(t[n],n)&&(l[n]=t[n]);return l}function Zt(t,e){var l={};for(var n in t)l[n]=e(t[n],n);return l}function Vt(t){for(var e={},l=0,n=t;li&&r.push({start:i,end:n.start}),n.end>i&&(i=n.end);return ie.start)&&(null===t.start||null===e.end||t.start=t.start)&&(null===t.end||null!==e.end&&e.end<=t.end)}function se(t,e){return(null===t.start||e>=t.start)&&(null===t.end||e1)||"numeric"!==n.year&&"2-digit"!==n.year||"numeric"!==n.month&&"2-digit"!==n.month||"numeric"!==n.day&&"2-digit"!==n.day||(o=1);var a=this.format(t,l),s=this.format(e,l);if(a===s)return a;var u=be(function(t,e){var l={};for(var n in t)(!(n in de)||de[n]<=e)&&(l[n]=t[n]);return l}(n,o),r,l),c=u(t),h=u(e),d=function(t,e,l,n){var r=0;for(;r/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"
")}function Je(t){var e=[];for(var l in t){var n=t[l];null!=n&&""!==n&&e.push(l+":"+n)}return e.join(";")}function tl(t){return Array.isArray(t)?t:"string"===typeof t?t.split(/\s+/):[]}var el={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:tl,classNames:tl,color:String,backgroundColor:String,borderColor:String,textColor:String};function ll(t,e,l){var n=Pt(t,el,{},l),r=function(t,e){return Array.isArray(t)?Yt(t,"",e,!0):"object"===typeof t&&t?Yt([t],"",e,!0):null!=t?String(t):null}(n.constraint,e);return{startEditable:null!=n.startEditable?n.startEditable:n.editable,durationEditable:null!=n.durationEditable?n.durationEditable:n.editable,constraints:null!=r?[r]:[],overlap:n.overlap,allows:null!=n.allow?[n.allow]:[],backgroundColor:n.backgroundColor||n.color,borderColor:n.borderColor||n.color,textColor:n.textColor,classNames:n.classNames.concat(n.className)}}function nl(t,e,l,n){var r={},i={};for(var o in el){var a=t+Et(o);r[o]=e[a],i[a]=!0}if("event"===t&&(r.editable=e.editable),n)for(var o in e)i[o]||(n[o]=e[o]);return ll(r,l)}var rl={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function il(t){return t.reduce(ol,rl)}function ol(t,e){return{startEditable:null!=e.startEditable?e.startEditable:t.startEditable,durationEditable:null!=e.durationEditable?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:"boolean"===typeof e.overlap?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}var al={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},sl={start:null,date:null,end:null,allDay:null},ul=0;function cl(t,e,l,n){var r=function(t,e){var l=null;if(t){var n=e.state.eventSources[t];l=n.allDayDefault}null==l&&(l=e.opt("allDayDefault"));return l}(e,l),i={},o=function(t,e,l,n,r){for(var i=0;i'+r+"":""+r+""}function bl(t,e,l,n){var r,i,o=l.calendar,a=l.options,s=l.theme,u=l.dateEnv,c=[];return se(e.activeRange,t)?(c.push("fc-"+H[t.getUTCDay()]),a.monthMode&&u.getMonth(t)!==u.getMonth(e.currentRange.start)&&c.push("fc-other-month"),i=V(r=X(o.getNow()),1),t=i?c.push("fc-future"):(c.push("fc-today"),!0!==n&&c.push(s.getClass("today")))):c.push("fc-disabled-day"),c}var wl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.on=function(t,e){return xl(this._handlers||(this._handlers={}),t,e),this},e.prototype.one=function(t,e){return xl(this._oneHandlers||(this._oneHandlers={}),t,e),this},e.prototype.off=function(t,e){return this._handlers&&_l(this._handlers,t,e),this._oneHandlers&&_l(this._oneHandlers,t,e),this},e.prototype.trigger=function(t){for(var e=[],l=1;l=l[e]&&t=l[e]&&t0},t.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},t.prototype.canScrollUp=function(){return this.getScrollTop()>0},t.prototype.canScrollDown=function(){return this.getScrollTop()0},t.prototype.canScrollRight=function(){return this.getScrollLeft()=200&&o.status<400)try{var t=JSON.parse(o.responseText);n(t,o)}catch(e){r("Failure parsing JSON",o)}else r("Request failed",o)},o.onerror=function(){r("Request failed",o)},o.send(i)}function Fl(t){var e=[];for(var l in t)e.push(encodeURIComponent(l)+"="+encodeURIComponent(t[l]));return e.join("&")}var zl=Ll({eventSourceDefs:[{parseMeta:function(t){if("string"===typeof t)t={url:t};else if(!t||"object"!==typeof t||!t.url)return null;return{url:t.url,method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}},fetch:function(t,e,l){var n=t.eventSource.meta,r=function(t,e,l){var n,r,i,o,a=l.dateEnv,s={};null==(n=t.startParam)&&(n=l.opt("startParam"));null==(r=t.endParam)&&(r=l.opt("endParam"));null==(i=t.timeZoneParam)&&(i=l.opt("timeZoneParam"));o="function"===typeof t.extraParams?t.extraParams():t.extraParams||{};Bt(s,o),s[n]=a.formatIso(e.start),s[r]=a.formatIso(e.end),"local"!==a.timeZone&&(s[i]=a.timeZone);return s}(n,t.range,t.calendar);Bl(n.method,n.url,r,(function(t,l){e({rawEvents:t,xhr:l})}),(function(t,e){l({message:t,xhr:e})}))}}]});var Ul=Ll({recurringTypes:[{parse:function(t,e,l){var n,r,i=l.createMarker.bind(l),o=Pt(t,{daysOfWeek:null,startTime:it,endTime:it,startRecur:i,endRecur:i},{},e),a=!1;for(var s in o)if(null!=o[s]){a=!0;break}if(a){var u=null;return"duration"in e&&(u=it(e.duration),delete e.duration),!u&&o.startTime&&o.endTime&&(n=o.endTime,r=o.startTime,u={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!o.startTime&&!o.endTime),duration:u,typeData:o}}return null},expand:function(t,e,l){var n=re(e,{start:t.startRecur,end:t.endRecur});return n?function(t,e,l,n){var r=t?Vt(t):null,i=X(l.start),o=l.end,a=[];for(;i0?t[0].code:"en",l=window.FullCalendarLocalesAll||[],n=window.FullCalendarLocales||{},r=l.concat(Wt(n),t),i={en:Xl},o=0,a=r;o0;r--){var i=n.slice(0,r).join("-");if(e[i])return e[i]}return null}(l,e)||Xl;return Ql(t,l,n)}(t,e):Ql(t.code,[t.code],t)}function Ql(t,e,l){var n=Ut([Xl,l],["buttonText"]);delete n.code;var r=n.week;return delete n.week,{codeArg:t,codes:e,week:r,simpleNumberFormat:new Intl.NumberFormat(t),options:n}}var Jl=function(){function t(t){this.overrides=Bt({},t),this.dynamicOverrides={},this.compute()}return t.prototype.mutate=function(t,e,l){if(Object.keys(t).length||e.length){var n=l?this.dynamicOverrides:this.overrides;Bt(n,t);for(var r=0,i=e;r=1?Math.min(r,i):r}(t,this.weekDow,this.weekDoy)},t.prototype.format=function(t,e,l){return void 0===l&&(l={}),e.format({marker:t,timeZoneOffset:null!=l.forcedTzo?l.forcedTzo:this.offsetForMarker(t)},this)},t.prototype.formatRange=function(t,e,l,n){return void 0===n&&(n={}),n.isEndExclusive&&(e=W(e,-1)),l.formatRange({marker:t,timeZoneOffset:null!=n.forcedStartTzo?n.forcedStartTzo:this.offsetForMarker(t)},{marker:e,timeZoneOffset:null!=n.forcedEndTzo?n.forcedEndTzo:this.offsetForMarker(e)},this)},t.prototype.formatIso=function(t,e){void 0===e&&(e={});var l=null;return e.omitTimeZoneOffset||(l=null!=e.forcedTzo?e.forcedTzo:this.offsetForMarker(t)),function(t,e,l){void 0===l&&(l=!1);var n=t.toISOString();return n=n.replace(".000",""),l&&(n=n.replace("T00:00:00Z","")),n.length>10&&(null==e?n=n.replace("Z",""):0!==e&&(n=n.replace("Z",Se(e,!0)))),n}(t,l,e.omitTime)},t.prototype.timestampToMarker=function(t){return"local"===this.timeZone?et(Q(new Date(t))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?et(this.namedTimeZoneImpl.timestampToArray(t)):new Date(t)},t.prototype.offsetForMarker=function(t){return"local"===this.timeZone?-J(tt(t)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(tt(t)):null},t.prototype.toDate=function(t,e){return"local"===this.timeZone?J(tt(t)):"UTC"===this.timeZone?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(tt(t))*60):new Date(t.valueOf()-(e||0))},t}(),nn={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},rn=0;function on(t,e){return!e.pluginSystem.hooks.eventSourceDefs[t.sourceDefId].ignoreRange}function an(t,e){for(var l=e.pluginSystem.hooks.eventSourceDefs,n=l.length-1;n>=0;n--){var r=l[n].parseMeta(t);if(r){var i=sn("object"===typeof t?t:{},r,n,e);return i._raw=t,i}}return null}function sn(t,e,l,n){var r={},i=Pt(t,nn,{},r),o={},a=ll(r,n,o);return i.isFetching=!1,i.latestFetchId="",i.fetchRange=null,i.publicId=String(t.id||""),i.sourceId=String(rn++),i.sourceDefId=l,i.meta=e,i.ui=a,i.extendedProps=o,i}function un(t,e,l,n){switch(e.type){case"ADD_EVENT_SOURCES":return function(t,e,l,n){for(var r={},i=0,o=e;it.fetchRange.end:!t.latestFetchId}(t,e,l)})),e,l)}function dn(t,e,l,n){var r={};for(var i in t){var o=t[i];e[i]?r[i]=fn(o,l,n):r[i]=o}return r}function fn(t,e,l){var n=l.pluginSystem.hooks.eventSourceDefs[t.sourceDefId],r=String(cn++);return n.fetch({eventSource:t,calendar:l,range:e},(function(n){var i,o,a=n.rawEvents,s=l.opt("eventSourceSuccess");t.success&&(o=t.success(a,n.xhr)),s&&(i=s(a,n.xhr)),a=o||i||a,l.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:r,fetchRange:e,rawEvents:a})}),(function(n){var i=l.opt("eventSourceFailure");console.warn(n.message,n),t.failure&&t.failure(n),i&&i(n),l.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:r,fetchRange:e,error:n})})),Bt({},t,{isFetching:!0,latestFetchId:r})}var pn=function(){function t(t,e){this.viewSpec=t,this.options=t.options,this.dateEnv=e.dateEnv,this.calendar=e,this.initHiddenDays()}return t.prototype.buildPrev=function(t,e){var l=this.dateEnv,n=l.subtract(l.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(n,-1)},t.prototype.buildNext=function(t,e){var l=this.dateEnv,n=l.add(l.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(n,1)},t.prototype.build=function(t,e,l){var n;void 0===l&&(l=!1);var r,i,o,a,s,u,c,h,d;return n=this.buildValidRange(),n=this.trimHiddenDays(n),l&&(h=t,t=null!=(d=n).start&&h=d.end?new Date(d.end.valueOf()-1):h),o=this.buildCurrentRangeInfo(t,e),a=/^(year|month|week|day)$/.test(o.unit),s=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,a),u=s=this.trimHiddenDays(s),this.options.showNonCurrentDates||(u=re(u,o.range)),r=it(this.options.minTime),i=it(this.options.maxTime),u=re(u=this.adjustActiveRange(u,r,i),n),c=oe(o.range,n),{validRange:n,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:a,activeRange:u,renderRange:s,minTime:r,maxTime:i,isValid:c,dateIncrement:this.buildDateIncrement(o.duration)}},t.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},t.prototype.buildCurrentRangeInfo=function(t,e){var l,n=this.viewSpec,r=this.dateEnv,i=null,o=null,a=null;return n.duration?(i=n.duration,o=n.durationUnit,a=this.buildRangeFromDuration(t,e,i,o)):(l=this.options.dayCount)?(o="day",a=this.buildRangeFromDayCount(t,e,l)):(a=this.buildCustomVisibleRange(t))?o=r.greatestWholeUnit(a.start,a.end).unit:(o=ht(i=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(t,e,i,o)),{duration:i,unit:o,range:a}},t.prototype.getFallbackDuration=function(){return it({day:1})},t.prototype.adjustActiveRange=function(t,e,l){var n=this.dateEnv,r=t.start,i=t.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(ut(e)<0&&(r=X(r),r=n.add(r,e)),ut(l)>1&&(i=V(i=X(i),-1),i=n.add(i,l))),{start:r,end:i}},t.prototype.buildRangeFromDuration=function(t,e,l,n){var r,i,o,a,s,u=this.dateEnv,c=this.options.dateAlignment;function h(){o=u.startOf(t,c),a=u.add(o,l),s={start:o,end:a}}return c||((r=this.options.dateIncrement)?(i=it(r),c=ct(i) ")),s=!1):((n=d[t])?(h=function(t){n.click&&n.click.call(b,t)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(t))||(m=n.text)):(u=c[t])?(l.viewsWithButtons.push(t),h=function(){a.changeView(t)},(m=u.buttonTextOverride)||(g=r.getIconClass(t))||(m=u.buttonTextDefault)):a[t]&&(h=function(){a[t]()},(m=f[t])||(g=r.getIconClass(t))||(m=p[t])),h&&(y=["fc-"+t+"-button",r.getClass("button")],m?(v=Qe(m),w=""):g&&(v="",w=' aria-label="'+t+'"'),(b=o('")).addEventListener("click",h),i.push(b)))})),i.length>1){n=document.createElement("div");var g=r.getClass("buttonGroup");s&&g&&n.classList.add(g),u(n,i),h.appendChild(n)}else u(h,i)})),h},e.prototype.updateToday=function(t){this.toggleButtonEnabled("today",t)},e.prototype.updatePrev=function(t){this.toggleButtonEnabled("prev",t)},e.prototype.updateNext=function(t){this.toggleButtonEnabled("next",t)},e.prototype.updateTitle=function(t){y(this.el,"h2").forEach((function(e){e.innerText=t}))},e.prototype.updateActiveButton=function(t){var e=this.context.theme.getClass("buttonActive");y(this.el,"button").forEach((function(l){t&&l.classList.contains("fc-"+t+"-button")?l.classList.add(e):l.classList.remove(e)}))},e.prototype.toggleButtonEnabled=function(t,e){y(this.el,".fc-"+t+"-button").forEach((function(t){t.disabled=!e}))},e}(Dl),In=function(t){function e(e){var l=t.call(this)||this;return l.elClassNames=[],l.renderSkeleton=gl(l._renderSkeleton,l._unrenderSkeleton),l.renderToolbars=gl(l._renderToolbars,l._unrenderToolbars,[l.renderSkeleton]),l.buildComponentContext=ce(Rn),l.buildViewPropTransformers=ce(Nn),l.el=e,l.computeTitle=ce(Ln),l.parseBusinessHours=ce((function(t){return pl(t,l.context.calendar)})),l}return jt(e,t),e.prototype.render=function(t,e){this.freezeHeight();var l=this.computeTitle(t.dateProfile,t.viewSpec.options);this.renderSkeleton(e),this.renderToolbars(t.viewSpec,t.dateProfile,t.currentDate,l),this.renderView(t,l),this.updateSize(),this.thawHeight()},e.prototype.destroy=function(){this.header&&this.header.destroy(),this.footer&&this.footer.destroy(),this.renderSkeleton.unrender(),t.prototype.destroy.call(this)},e.prototype._renderSkeleton=function(t){this.updateElClassNames(t),c(this.el,this.contentEl=i("div",{className:"fc-view-container"}));for(var e=t.calendar,l=0,n=e.pluginSystem.hooks.viewContainerModifiers;l1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(t),e.titleRangeSeparator),{isEndExclusive:t.isRangeAllDay})}function Rn(t,e,l){return t.extend(e.options,l)}function Nn(t){return t.map((function(t){return new t}))}var jn=function(){function t(t){this.component=t.component}return t.prototype.destroy=function(){},t}();function Bn(t){var e;return(e={})[t.component.uid]=t,e}var Fn={},zn=function(t){function e(e){var l=t.call(this,e)||this;l.handleSegClick=function(t,e){var n=l.component,r=n.context,i=r.calendar,o=r.view,a=De(e);if(a&&n.isValidSegDownEl(t.target)){var s=m(t.target,".fc-has-url"),u=s?s.querySelector("a[href]").href:"";i.publiclyTrigger("eventClick",[{el:e,event:new ke(n.context.calendar,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:o}]),u&&!t.defaultPrevented&&(window.location.href=u)}};var n=e.component;return l.destroy=F(n.el,"click",n.fgSegSelector+","+n.bgSegSelector,l.handleSegClick),l}return jt(e,t),e}(jn),Un=function(t){function e(e){var l=t.call(this,e)||this;l.handleEventElRemove=function(t){t===l.currentSegEl&&l.handleSegLeave(null,l.currentSegEl)},l.handleSegEnter=function(t,e){De(e)&&(e.classList.add("fc-allow-mouse-resize"),l.currentSegEl=e,l.triggerEvent("eventMouseEnter",t,e))},l.handleSegLeave=function(t,e){l.currentSegEl&&(e.classList.remove("fc-allow-mouse-resize"),l.currentSegEl=null,l.triggerEvent("eventMouseLeave",t,e))};var n=e.component;return l.removeHoverListeners=function(t,e,l,n){var r;return F(t,"mouseover",e,(function(t,e){if(e!==r){r=e,l(t,e);e.addEventListener("mouseleave",(function t(l){r=null,n(l,e),e.removeEventListener("mouseleave",t)}))}}))}(n.el,n.fgSegSelector+","+n.bgSegSelector,l.handleSegEnter,l.handleSegLeave),n.context.calendar.on("eventElRemove",l.handleEventElRemove),l}return jt(e,t),e.prototype.destroy=function(){this.removeHoverListeners(),this.component.context.calendar.off("eventElRemove",this.handleEventElRemove)},e.prototype.triggerEvent=function(t,e,l){var n=this.component,r=n.context,i=r.calendar,o=r.view,a=De(l);e&&!n.isValidSegDownEl(e.target)||i.publiclyTrigger(t,[{el:l,event:new ke(i,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:o}])},e}(jn),Hn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e}(Tl);Hn.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Hn.prototype.baseIconClass="fc-icon",Hn.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Hn.prototype.iconOverrideOption="buttonIcons",Hn.prototype.iconOverrideCustomButtonOption="icon",Hn.prototype.iconOverridePrefix="fc-icon-";var Zn=function(){function t(t,e){var l=this;this.buildComponentContext=ce(Vn),this.parseRawLocales=ce(Kl),this.buildLocale=ce($l),this.buildDateEnv=ce(Wn),this.buildTheme=ce(Gn),this.buildEventUiSingleBase=ce(this._buildEventUiSingleBase),this.buildSelectionConfig=ce(this._buildSelectionConfig),this.buildEventUiBySource=function(t,e){var l=null;return function(){var n=t.apply(this,arguments);return(null===l||l!==n&&!e(l,n))&&(l=n),l}}(qn,Gt),this.buildEventUiBases=ce(Xn),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=ce(Yn),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=t,this.optionsManager=new Jl(e||{}),this.pluginSystem=new Rl,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map((function(t){return new t(l)}))}return t.prototype.addPluginInputs=function(t){for(var e=function(t){for(var e=[],l=0,n=t;l"},t.prototype.detachSegs=function(t,e){var l=this.containerElsByType[t];l&&(l.forEach(f),delete this.containerElsByType[t])},t.prototype.computeSizes=function(t){for(var e in this.segsByType)(t||this.dirtySizeFlags[e])&&this.computeSegSizes(this.segsByType[e])},t.prototype.assignSizes=function(t){for(var e in this.segsByType)(t||this.dirtySizeFlags[e])&&this.assignSegSizes(this.segsByType[e]);this.dirtySizeFlags={}},t.prototype.computeSegSizes=function(t){},t.prototype.assignSegSizes=function(t){},t}(),tr=function(){function t(t){this.emitter=new wl}return t.prototype.destroy=function(){},t.prototype.setMirrorIsVisible=function(t){},t.prototype.setMirrorNeedsRevert=function(t){},t.prototype.setAutoScrollEnabled=function(t){},t}();var er={startTime:it,duration:it,create:Boolean,sourceId:String},lr={create:!0};function nr(t){var e={},l=Pt(t,er,lr,e);return l.leftoverProps=e,l}function rr(t,e,l,n,r,i,o,a){var s,u=i.dateEnv,c=i.theme,h=i.options,d=se(e.activeRange,t),f=["fc-day-header",c.getClass("widgetHeader")];return s="function"===typeof h.columnHeaderHtml?h.columnHeaderHtml(u.toDate(t)):"function"===typeof h.columnHeaderText?Qe(h.columnHeaderText(u.toDate(t))):Qe(u.format(t,r)),l?f=f.concat(bl(t,e,i,!0)):f.push("fc-"+H[t.getUTCDay()]),'1?' colspan="'+o+'"':"")+(a?" "+a:"")+">"+(d?yl(h,u,{date:t,forceOff:!l||1===n},s):s)+""}var ir=function(t){function e(e){var l=t.call(this)||this;return l.renderSkeleton=gl(l._renderSkeleton,l._unrenderSkeleton),l.parentEl=e,l}return jt(e,t),e.prototype.render=function(t,e){var l=t.dates,n=t.datesRepDistinctDays,r=[];this.renderSkeleton(e),t.renderIntroHtml&&r.push(t.renderIntroHtml());for(var i=_e(e.options.columnHeaderFormat||function(t,e){return!t||e>10?{weekday:"short"}:e>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}(n,l.length)),o=0,a=l;o"+r.join("")+""},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.renderSkeleton.unrender()},e.prototype._renderSkeleton=function(t){var e=t.theme,l=this.parentEl;l.innerHTML="",l.appendChild(this.el=o('
')),this.thead=this.el.querySelector("thead")},e.prototype._unrenderSkeleton=function(){f(this.el)},e}(Dl),or=function(){function t(t,e){for(var l=t.start,n=t.end,r=[],i=[],o=-1;l=e.length?e[e.length-1]+1:e[l]},t}(),ar=function(){function t(t,e){var l,n,r,i=t.dates;if(e){for(n=i[0].getUTCDay(),l=1;l"']/g,B=RegExp(N.source),F=RegExp(j.source),z=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(G.source),q=/^\s+|\s+$/g,X=/^\s+/,K=/\s+$/,$=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,ot=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,st=/^(?:0|[1-9]\d*)$/,ut=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ht=/['\n\r\u2028\u2029\\]/g,dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ft="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",gt="["+ft+"]",mt="["+dt+"]",vt="\\d+",yt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+ft+vt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",xt="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Mt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ct="(?:"+bt+"|"+wt+")",kt="(?:"+Et+"|"+wt+")",Tt="(?:"+mt+"|"+xt+")"+"?",Ot="[\\ufe0e\\ufe0f]?"+Tt+("(?:\\u200d(?:"+[_t,St,Mt].join("|")+")[\\ufe0e\\ufe0f]?"+Tt+")*"),At="(?:"+[yt,St,Mt].join("|")+")"+Ot,Dt="(?:"+[_t+mt+"?",mt,St,Mt,pt].join("|")+")",Pt=RegExp("['\u2019]","g"),It=RegExp(mt,"g"),Lt=RegExp(xt+"(?="+xt+")|"+Dt+Ot,"g"),Rt=RegExp([Et+"?"+bt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[gt,Et,"$"].join("|")+")",kt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[gt,Et+Ct,"$"].join("|")+")",Et+"?"+Ct+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vt,At].join("|"),"g"),Nt=RegExp("[\\u200d\\ud800-\\udfff"+dt+"\\ufe0e\\ufe0f]"),jt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ft=-1,zt={};zt[E]=zt[C]=zt[k]=zt[T]=zt[O]=zt[A]=zt["[object Uint8ClampedArray]"]=zt[D]=zt[P]=!0,zt[s]=zt[u]=zt[S]=zt[c]=zt[M]=zt[h]=zt[d]=zt[f]=zt[g]=zt[m]=zt[v]=zt[y]=zt[b]=zt[w]=zt[_]=!1;var Ut={};Ut[s]=Ut[u]=Ut[S]=Ut[M]=Ut[c]=Ut[h]=Ut[E]=Ut[C]=Ut[k]=Ut[T]=Ut[O]=Ut[g]=Ut[m]=Ut[v]=Ut[y]=Ut[b]=Ut[w]=Ut[x]=Ut[A]=Ut["[object Uint8ClampedArray]"]=Ut[D]=Ut[P]=!0,Ut[d]=Ut[f]=Ut[_]=!1;var Ht={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zt=parseFloat,Vt=parseInt,Wt="object"==typeof t&&t&&t.Object===Object&&t,Gt="object"==typeof self&&self&&self.Object===Object&&self,Yt=Wt||Gt||Function("return this")(),qt=e&&!e.nodeType&&e,Xt=qt&&"object"==typeof n&&n&&!n.nodeType&&n,Kt=Xt&&Xt.exports===qt,$t=Kt&&Wt.process,Qt=function(){try{var t=Xt&&Xt.require&&Xt.require("util").types;return t||$t&&$t.binding&&$t.binding("util")}catch(e){}}(),Jt=Qt&&Qt.isArrayBuffer,te=Qt&&Qt.isDate,ee=Qt&&Qt.isMap,le=Qt&&Qt.isRegExp,ne=Qt&&Qt.isSet,re=Qt&&Qt.isTypedArray;function ie(t,e,l){switch(l.length){case 0:return t.call(e);case 1:return t.call(e,l[0]);case 2:return t.call(e,l[0],l[1]);case 3:return t.call(e,l[0],l[1],l[2])}return t.apply(e,l)}function oe(t,e,l,n){for(var r=-1,i=null==t?0:t.length;++r-1}function de(t,e,l){for(var n=-1,r=null==t?0:t.length;++n-1;);return l}function Le(t,e){for(var l=t.length;l--&&xe(e,t[l],0)>-1;);return l}function Re(t,e){for(var l=t.length,n=0;l--;)t[l]===e&&++n;return n}var Ne=Ce({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),je=Ce({"&":"&","<":"<",">":">",'"':""","'":"'"});function Be(t){return"\\"+Ht[t]}function Fe(t){return Nt.test(t)}function ze(t){var e=-1,l=Array(t.size);return t.forEach((function(t,n){l[++e]=[n,t]})),l}function Ue(t,e){return function(l){return t(e(l))}}function He(t,e){for(var l=-1,n=t.length,r=0,i=[];++l",""":'"',"'":"'"});var qe=function t(e){var l=(e=null==e?Yt:qe.defaults(Yt.Object(),e,qe.pick(Yt,Bt))).Array,n=e.Date,r=e.Error,dt=e.Function,ft=e.Math,pt=e.Object,gt=e.RegExp,mt=e.String,vt=e.TypeError,yt=l.prototype,bt=dt.prototype,wt=pt.prototype,xt=e["__core-js_shared__"],_t=bt.toString,St=wt.hasOwnProperty,Mt=0,Et=function(){var t=/[^.]+$/.exec(xt&&xt.keys&&xt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ct=wt.toString,kt=_t.call(pt),Tt=Yt._,Ot=gt("^"+_t.call(St).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),At=Kt?e.Buffer:void 0,Dt=e.Symbol,Lt=e.Uint8Array,Nt=At?At.allocUnsafe:void 0,Ht=Ue(pt.getPrototypeOf,pt),Wt=pt.create,Gt=wt.propertyIsEnumerable,qt=yt.splice,Xt=Dt?Dt.isConcatSpreadable:void 0,$t=Dt?Dt.iterator:void 0,Qt=Dt?Dt.toStringTag:void 0,ye=function(){try{var t=Qr(pt,"defineProperty");return t({},"",{}),t}catch(e){}}(),Ce=e.clearTimeout!==Yt.clearTimeout&&e.clearTimeout,Xe=n&&n.now!==Yt.Date.now&&n.now,Ke=e.setTimeout!==Yt.setTimeout&&e.setTimeout,$e=ft.ceil,Qe=ft.floor,Je=pt.getOwnPropertySymbols,tl=At?At.isBuffer:void 0,el=e.isFinite,ll=yt.join,nl=Ue(pt.keys,pt),rl=ft.max,il=ft.min,ol=n.now,al=e.parseInt,sl=ft.random,ul=yt.reverse,cl=Qr(e,"DataView"),hl=Qr(e,"Map"),dl=Qr(e,"Promise"),fl=Qr(e,"Set"),pl=Qr(e,"WeakMap"),gl=Qr(pt,"create"),ml=pl&&new pl,vl={},yl=Ei(cl),bl=Ei(hl),wl=Ei(dl),xl=Ei(fl),_l=Ei(pl),Sl=Dt?Dt.prototype:void 0,Ml=Sl?Sl.valueOf:void 0,El=Sl?Sl.toString:void 0;function Cl(t){if(Zo(t)&&!Po(t)&&!(t instanceof Al)){if(t instanceof Ol)return t;if(St.call(t,"__wrapped__"))return Ci(t)}return new Ol(t)}var kl=function(){function t(){}return function(e){if(!Ho(e))return{};if(Wt)return Wt(e);t.prototype=e;var l=new t;return t.prototype=void 0,l}}();function Tl(){}function Ol(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Al(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Dl(t){var e=-1,l=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function ql(t,e,l,n,r,i){var o,a=1&e,u=2&e,d=4&e;if(l&&(o=r?l(t,n,r,i):l(t)),void 0!==o)return o;if(!Ho(t))return t;var _=Po(t);if(_){if(o=function(t){var e=t.length,l=new t.constructor(e);e&&"string"==typeof t[0]&&St.call(t,"index")&&(l.index=t.index,l.input=t.input);return l}(t),!a)return mr(t,o)}else{var I=ei(t),L=I==f||I==p;if(No(t))return cr(t,a);if(I==v||I==s||L&&!r){if(o=u||L?{}:ni(t),!a)return u?function(t,e){return vr(t,ti(t),e)}(t,function(t,e){return t&&vr(e,wa(e),t)}(o,t)):function(t,e){return vr(t,Jr(t),e)}(t,Vl(o,t))}else{if(!Ut[I])return r?t:{};o=function(t,e,l){var n=t.constructor;switch(e){case S:return hr(t);case c:case h:return new n(+t);case M:return function(t,e){var l=e?hr(t.buffer):t.buffer;return new t.constructor(l,t.byteOffset,t.byteLength)}(t,l);case E:case C:case k:case T:case O:case A:case"[object Uint8ClampedArray]":case D:case P:return dr(t,l);case g:return new n;case m:case w:return new n(t);case y:return function(t){var e=new t.constructor(t.source,nt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new n;case x:return r=t,Ml?pt(Ml.call(r)):{}}var r}(t,I,a)}}i||(i=new Rl);var R=i.get(t);if(R)return R;i.set(t,o),qo(t)?t.forEach((function(n){o.add(ql(n,e,l,n,t,i))})):Vo(t)&&t.forEach((function(n,r){o.set(r,ql(n,e,l,r,t,i))}));var N=_?void 0:(d?u?Wr:Vr:u?wa:ba)(t);return ae(N||t,(function(n,r){N&&(n=t[r=n]),Ul(o,r,ql(n,e,l,r,t,i))})),o}function Xl(t,e,l){var n=l.length;if(null==t)return!n;for(t=pt(t);n--;){var r=l[n],i=e[r],o=t[r];if(void 0===o&&!(r in t)||!i(o))return!1}return!0}function Kl(t,e,l){if("function"!=typeof t)throw new vt(i);return yi((function(){t.apply(void 0,l)}),e)}function $l(t,e,l,n){var r=-1,i=he,o=!0,a=t.length,s=[],u=e.length;if(!a)return s;l&&(e=fe(e,Ae(l))),n?(i=de,o=!1):e.length>=200&&(i=Pe,o=!1,e=new Ll(e));t:for(;++r-1},Pl.prototype.set=function(t,e){var l=this.__data__,n=Hl(l,t);return n<0?(++this.size,l.push([t,e])):l[n][1]=e,this},Il.prototype.clear=function(){this.size=0,this.__data__={hash:new Dl,map:new(hl||Pl),string:new Dl}},Il.prototype.delete=function(t){var e=Kr(this,t).delete(t);return this.size-=e?1:0,e},Il.prototype.get=function(t){return Kr(this,t).get(t)},Il.prototype.has=function(t){return Kr(this,t).has(t)},Il.prototype.set=function(t,e){var l=Kr(this,t),n=l.size;return l.set(t,e),this.size+=l.size==n?0:1,this},Ll.prototype.add=Ll.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ll.prototype.has=function(t){return this.__data__.has(t)},Rl.prototype.clear=function(){this.__data__=new Pl,this.size=0},Rl.prototype.delete=function(t){var e=this.__data__,l=e.delete(t);return this.size=e.size,l},Rl.prototype.get=function(t){return this.__data__.get(t)},Rl.prototype.has=function(t){return this.__data__.has(t)},Rl.prototype.set=function(t,e){var l=this.__data__;if(l instanceof Pl){var n=l.__data__;if(!hl||n.length<199)return n.push([t,e]),this.size=++l.size,this;l=this.__data__=new Il(n)}return l.set(t,e),this.size=l.size,this};var Ql=wr(an),Jl=wr(sn,!0);function tn(t,e){var l=!0;return Ql(t,(function(t,n,r){return l=!!e(t,n,r)})),l}function en(t,e,l){for(var n=-1,r=t.length;++n0&&l(a)?e>1?nn(a,e-1,l,n,r):pe(r,a):n||(r[r.length]=a)}return r}var rn=xr(),on=xr(!0);function an(t,e){return t&&rn(t,e,ba)}function sn(t,e){return t&&on(t,e,ba)}function un(t,e){return ce(e,(function(e){return Fo(t[e])}))}function cn(t,e){for(var l=0,n=(e=or(e,t)).length;null!=t&&le}function pn(t,e){return null!=t&&St.call(t,e)}function gn(t,e){return null!=t&&e in pt(t)}function mn(t,e,n){for(var r=n?de:he,i=t[0].length,o=t.length,a=o,s=l(o),u=1/0,c=[];a--;){var h=t[a];a&&e&&(h=fe(h,Ae(e))),u=il(h.length,u),s[a]=!n&&(e||i>=120&&h.length>=120)?new Ll(a&&h):void 0}h=t[0];var d=-1,f=s[0];t:for(;++d=a)return s;var u=l[n];return s*("desc"==u?-1:1)}}return t.index-e.index}(t,e,l)}))}function Pn(t,e,l){for(var n=-1,r=e.length,i={};++n-1;)a!==t&&qt.call(a,s,1),qt.call(t,s,1);return t}function Ln(t,e){for(var l=t?e.length:0,n=l-1;l--;){var r=e[l];if(l==n||r!==i){var i=r;ii(r)?qt.call(t,r,1):Qn(t,r)}}return t}function Rn(t,e){return t+Qe(sl()*(e-t+1))}function Nn(t,e){var l="";if(!t||e<1||e>9007199254740991)return l;do{e%2&&(l+=t),(e=Qe(e/2))&&(t+=t)}while(e);return l}function jn(t,e){return bi(fi(t,e,Wa),t+"")}function Bn(t){return jl(Ta(t))}function Fn(t,e){var l=Ta(t);return _i(l,Yl(e,0,l.length))}function zn(t,e,l,n){if(!Ho(t))return t;for(var r=-1,i=(e=or(e,t)).length,o=i-1,a=t;null!=a&&++ri?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=l(i);++r>>1,o=t[i];null!==o&&!Ko(o)&&(l?o<=e:o=200){var u=e?null:Nr(t);if(u)return Ze(u);o=!1,r=Pe,s=new Ll}else s=e?[]:a;t:for(;++n=n?t:Vn(t,e,l)}var ur=Ce||function(t){return Yt.clearTimeout(t)};function cr(t,e){if(e)return t.slice();var l=t.length,n=Nt?Nt(l):new t.constructor(l);return t.copy(n),n}function hr(t){var e=new t.constructor(t.byteLength);return new Lt(e).set(new Lt(t)),e}function dr(t,e){var l=e?hr(t.buffer):t.buffer;return new t.constructor(l,t.byteOffset,t.length)}function fr(t,e){if(t!==e){var l=void 0!==t,n=null===t,r=t===t,i=Ko(t),o=void 0!==e,a=null===e,s=e===e,u=Ko(e);if(!a&&!u&&!i&&t>e||i&&o&&s&&!a&&!u||n&&o&&s||!l&&s||!r)return 1;if(!n&&!i&&!u&&t1?l[r-1]:void 0,o=r>2?l[2]:void 0;for(i=t.length>3&&"function"==typeof i?(r--,i):void 0,o&&oi(l[0],l[1],o)&&(i=r<3?void 0:i,r=1),e=pt(e);++n-1?r[i?e[o]:o]:void 0}}function Cr(t){return Zr((function(e){var l=e.length,n=l,r=Ol.prototype.thru;for(t&&e.reverse();n--;){var o=e[n];if("function"!=typeof o)throw new vt(i);if(r&&!a&&"wrapper"==Yr(o))var a=new Ol([],!0)}for(n=a?n:l;++n1&&b.reverse(),h&&ua))return!1;var u=i.get(t),c=i.get(e);if(u&&c)return u==e&&c==t;var h=-1,d=!0,f=2&l?new Ll:void 0;for(i.set(t,e),i.set(e,t);++h-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(l>2?", ":" "),t.replace($,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return ae(a,(function(l){var n="_."+l[0];e&l[1]&&!he(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(Q);return e?e[1].split(J):[]}(n),l)))}function xi(t){var e=0,l=0;return function(){var n=ol(),r=16-(n-l);if(l=n,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function _i(t,e){var l=-1,n=t.length,r=n-1;for(e=void 0===e?n:e;++l1?t[e-1]:void 0;return l="function"==typeof l?(t.pop(),l):void 0,Gi(t,l)}));function Ji(t){var e=Cl(t);return e.__chain__=!0,e}function to(t,e){return e(t)}var eo=Zr((function(t){var e=t.length,l=e?t[0]:0,n=this.__wrapped__,r=function(e){return Gl(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Al&&ii(l)?((n=n.slice(l,+l+(e?1:0))).__actions__.push({func:to,args:[r],thisArg:void 0}),new Ol(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(r)}));var lo=yr((function(t,e,l){St.call(t,l)?++t[l]:Wl(t,l,1)}));var no=Er(Ai),ro=Er(Di);function io(t,e){return(Po(t)?ae:Ql)(t,Xr(e,3))}function oo(t,e){return(Po(t)?se:Jl)(t,Xr(e,3))}var ao=yr((function(t,e,l){St.call(t,l)?t[l].push(e):Wl(t,l,[e])}));var so=jn((function(t,e,n){var r=-1,i="function"==typeof e,o=Lo(t)?l(t.length):[];return Ql(t,(function(t){o[++r]=i?ie(e,t,n):vn(t,e,n)})),o})),uo=yr((function(t,e,l){Wl(t,l,e)}));function co(t,e){return(Po(t)?fe:Cn)(t,Xr(e,3))}var ho=yr((function(t,e,l){t[l?0:1].push(e)}),(function(){return[[],[]]}));var fo=jn((function(t,e){if(null==t)return[];var l=e.length;return l>1&&oi(t,e[0],e[1])?e=[]:l>2&&oi(e[0],e[1],e[2])&&(e=[e[0]]),Dn(t,nn(e,1),[])})),po=Xe||function(){return Yt.Date.now()};function go(t,e,l){return e=l?void 0:e,Br(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function mo(t,e){var l;if("function"!=typeof e)throw new vt(i);return t=la(t),function(){return--t>0&&(l=e.apply(this,arguments)),t<=1&&(e=void 0),l}}var vo=jn((function(t,e,l){var n=1;if(l.length){var r=He(l,qr(vo));n|=32}return Br(t,n,e,l,r)})),yo=jn((function(t,e,l){var n=3;if(l.length){var r=He(l,qr(yo));n|=32}return Br(e,n,t,l,r)}));function bo(t,e,l){var n,r,o,a,s,u,c=0,h=!1,d=!1,f=!0;if("function"!=typeof t)throw new vt(i);function p(e){var l=n,i=r;return n=r=void 0,c=e,a=t.apply(i,l)}function g(t){return c=t,s=yi(v,e),h?p(t):a}function m(t){var l=t-u;return void 0===u||l>=e||l<0||d&&t-c>=o}function v(){var t=po();if(m(t))return y(t);s=yi(v,function(t){var l=e-(t-u);return d?il(l,o-(t-c)):l}(t))}function y(t){return s=void 0,f&&n?p(t):(n=r=void 0,a)}function b(){var t=po(),l=m(t);if(n=arguments,r=this,u=t,l){if(void 0===s)return g(u);if(d)return ur(s),s=yi(v,e),p(u)}return void 0===s&&(s=yi(v,e)),a}return e=ra(e)||0,Ho(l)&&(h=!!l.leading,o=(d="maxWait"in l)?rl(ra(l.maxWait)||0,e):o,f="trailing"in l?!!l.trailing:f),b.cancel=function(){void 0!==s&&ur(s),c=0,n=u=r=s=void 0},b.flush=function(){return void 0===s?a:y(po())},b}var wo=jn((function(t,e){return Kl(t,1,e)})),xo=jn((function(t,e,l){return Kl(t,ra(e)||0,l)}));function _o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new vt(i);var l=function l(){var n=arguments,r=e?e.apply(this,n):n[0],i=l.cache;if(i.has(r))return i.get(r);var o=t.apply(this,n);return l.cache=i.set(r,o)||i,o};return l.cache=new(_o.Cache||Il),l}function So(t){if("function"!=typeof t)throw new vt(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}_o.Cache=Il;var Mo=ar((function(t,e){var l=(e=1==e.length&&Po(e[0])?fe(e[0],Ae(Xr())):fe(nn(e,1),Ae(Xr()))).length;return jn((function(n){for(var r=-1,i=il(n.length,l);++r=e})),Do=yn(function(){return arguments}())?yn:function(t){return Zo(t)&&St.call(t,"callee")&&!Gt.call(t,"callee")},Po=l.isArray,Io=Jt?Ae(Jt):function(t){return Zo(t)&&dn(t)==S};function Lo(t){return null!=t&&Uo(t.length)&&!Fo(t)}function Ro(t){return Zo(t)&&Lo(t)}var No=tl||rs,jo=te?Ae(te):function(t){return Zo(t)&&dn(t)==h};function Bo(t){if(!Zo(t))return!1;var e=dn(t);return e==d||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Go(t)}function Fo(t){if(!Ho(t))return!1;var e=dn(t);return e==f||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function zo(t){return"number"==typeof t&&t==la(t)}function Uo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Ho(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Zo(t){return null!=t&&"object"==typeof t}var Vo=ee?Ae(ee):function(t){return Zo(t)&&ei(t)==g};function Wo(t){return"number"==typeof t||Zo(t)&&dn(t)==m}function Go(t){if(!Zo(t)||dn(t)!=v)return!1;var e=Ht(t);if(null===e)return!0;var l=St.call(e,"constructor")&&e.constructor;return"function"==typeof l&&l instanceof l&&_t.call(l)==kt}var Yo=le?Ae(le):function(t){return Zo(t)&&dn(t)==y};var qo=ne?Ae(ne):function(t){return Zo(t)&&ei(t)==b};function Xo(t){return"string"==typeof t||!Po(t)&&Zo(t)&&dn(t)==w}function Ko(t){return"symbol"==typeof t||Zo(t)&&dn(t)==x}var $o=re?Ae(re):function(t){return Zo(t)&&Uo(t.length)&&!!zt[dn(t)]};var Qo=Ir(En),Jo=Ir((function(t,e){return t<=e}));function ta(t){if(!t)return[];if(Lo(t))return Xo(t)?Ge(t):mr(t);if($t&&t[$t])return function(t){for(var e,l=[];!(e=t.next()).done;)l.push(e.value);return l}(t[$t]());var e=ei(t);return(e==g?ze:e==b?Ze:Ta)(t)}function ea(t){return t?(t=ra(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}function la(t){var e=ea(t),l=e%1;return e===e?l?e-l:e:0}function na(t){return t?Yl(la(t),0,4294967295):0}function ra(t){if("number"==typeof t)return t;if(Ko(t))return NaN;if(Ho(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ho(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(q,"");var l=it.test(t);return l||at.test(t)?Vt(t.slice(2),l?2:8):rt.test(t)?NaN:+t}function ia(t){return vr(t,wa(t))}function oa(t){return null==t?"":Kn(t)}var aa=br((function(t,e){if(ci(e)||Lo(e))vr(e,ba(e),t);else for(var l in e)St.call(e,l)&&Ul(t,l,e[l])})),sa=br((function(t,e){vr(e,wa(e),t)})),ua=br((function(t,e,l,n){vr(e,wa(e),t,n)})),ca=br((function(t,e,l,n){vr(e,ba(e),t,n)})),ha=Zr(Gl);var da=jn((function(t,e){t=pt(t);var l=-1,n=e.length,r=n>2?e[2]:void 0;for(r&&oi(e[0],e[1],r)&&(n=1);++l1),e})),vr(t,Wr(t),l),n&&(l=ql(l,7,Ur));for(var r=e.length;r--;)Qn(l,e[r]);return l}));var Ma=Zr((function(t,e){return null==t?{}:function(t,e){return Pn(t,e,(function(e,l){return ga(t,l)}))}(t,e)}));function Ea(t,e){if(null==t)return{};var l=fe(Wr(t),(function(t){return[t]}));return e=Xr(e),Pn(t,l,(function(t,l){return e(t,l[0])}))}var Ca=jr(ba),ka=jr(wa);function Ta(t){return null==t?[]:De(t,ba(t))}var Oa=Sr((function(t,e,l){return e=e.toLowerCase(),t+(l?Aa(e):e)}));function Aa(t){return Ba(oa(t).toLowerCase())}function Da(t){return(t=oa(t))&&t.replace(ut,Ne).replace(It,"")}var Pa=Sr((function(t,e,l){return t+(l?"-":"")+e.toLowerCase()})),Ia=Sr((function(t,e,l){return t+(l?" ":"")+e.toLowerCase()})),La=_r("toLowerCase");var Ra=Sr((function(t,e,l){return t+(l?"_":"")+e.toLowerCase()}));var Na=Sr((function(t,e,l){return t+(l?" ":"")+Ba(e)}));var ja=Sr((function(t,e,l){return t+(l?" ":"")+e.toUpperCase()})),Ba=_r("toUpperCase");function Fa(t,e,l){return t=oa(t),void 0===(e=l?void 0:e)?function(t){return jt.test(t)}(t)?function(t){return t.match(Rt)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(e)||[]}var za=jn((function(t,e){try{return ie(t,void 0,e)}catch(l){return Bo(l)?l:new r(l)}})),Ua=Zr((function(t,e){return ae(e,(function(e){e=Mi(e),Wl(t,e,vo(t[e],t))})),t}));function Ha(t){return function(){return t}}var Za=Cr(),Va=Cr(!0);function Wa(t){return t}function Ga(t){return _n("function"==typeof t?t:ql(t,1))}var Ya=jn((function(t,e){return function(l){return vn(l,t,e)}})),qa=jn((function(t,e){return function(l){return vn(t,l,e)}}));function Xa(t,e,l){var n=ba(e),r=un(e,n);null!=l||Ho(e)&&(r.length||!n.length)||(l=e,e=t,t=this,r=un(e,ba(e)));var i=!(Ho(l)&&"chain"in l)||!!l.chain,o=Fo(t);return ae(r,(function(l){var n=e[l];t[l]=n,o&&(t.prototype[l]=function(){var e=this.__chain__;if(i||e){var l=t(this.__wrapped__),r=l.__actions__=mr(this.__actions__);return r.push({func:n,args:arguments,thisArg:t}),l.__chain__=e,l}return n.apply(t,pe([this.value()],arguments))})})),t}function Ka(){}var $a=Ar(fe),Qa=Ar(ue),Ja=Ar(ve);function ts(t){return ai(t)?Ee(Mi(t)):function(t){return function(e){return cn(e,t)}}(t)}var es=Pr(),ls=Pr(!0);function ns(){return[]}function rs(){return!1}var is=Or((function(t,e){return t+e}),0),os=Rr("ceil"),as=Or((function(t,e){return t/e}),1),ss=Rr("floor");var us=Or((function(t,e){return t*e}),1),cs=Rr("round"),hs=Or((function(t,e){return t-e}),0);return Cl.after=function(t,e){if("function"!=typeof e)throw new vt(i);return t=la(t),function(){if(--t<1)return e.apply(this,arguments)}},Cl.ary=go,Cl.assign=aa,Cl.assignIn=sa,Cl.assignInWith=ua,Cl.assignWith=ca,Cl.at=ha,Cl.before=mo,Cl.bind=vo,Cl.bindAll=Ua,Cl.bindKey=yo,Cl.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Po(t)?t:[t]},Cl.chain=Ji,Cl.chunk=function(t,e,n){e=(n?oi(t,e,n):void 0===e)?1:rl(la(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,a=l($e(r/e));ir?0:r+l),(n=void 0===n||n>r?r:la(n))<0&&(n+=r),n=l>n?0:na(n);l>>0)?(t=oa(t))&&("string"==typeof e||null!=e&&!Yo(e))&&!(e=Kn(e))&&Fe(t)?sr(Ge(t),0,l):t.split(e,l):[]},Cl.spread=function(t,e){if("function"!=typeof t)throw new vt(i);return e=null==e?0:rl(la(e),0),jn((function(l){var n=l[e],r=sr(l,0,e);return n&&pe(r,n),ie(t,this,r)}))},Cl.tail=function(t){var e=null==t?0:t.length;return e?Vn(t,1,e):[]},Cl.take=function(t,e,l){return t&&t.length?Vn(t,0,(e=l||void 0===e?1:la(e))<0?0:e):[]},Cl.takeRight=function(t,e,l){var n=null==t?0:t.length;return n?Vn(t,(e=n-(e=l||void 0===e?1:la(e)))<0?0:e,n):[]},Cl.takeRightWhile=function(t,e){return t&&t.length?tr(t,Xr(e,3),!1,!0):[]},Cl.takeWhile=function(t,e){return t&&t.length?tr(t,Xr(e,3)):[]},Cl.tap=function(t,e){return e(t),t},Cl.throttle=function(t,e,l){var n=!0,r=!0;if("function"!=typeof t)throw new vt(i);return Ho(l)&&(n="leading"in l?!!l.leading:n,r="trailing"in l?!!l.trailing:r),bo(t,e,{leading:n,maxWait:e,trailing:r})},Cl.thru=to,Cl.toArray=ta,Cl.toPairs=Ca,Cl.toPairsIn=ka,Cl.toPath=function(t){return Po(t)?fe(t,Mi):Ko(t)?[t]:mr(Si(oa(t)))},Cl.toPlainObject=ia,Cl.transform=function(t,e,l){var n=Po(t),r=n||No(t)||$o(t);if(e=Xr(e,4),null==l){var i=t&&t.constructor;l=r?n?new i:[]:Ho(t)&&Fo(i)?kl(Ht(t)):{}}return(r?ae:an)(t,(function(t,n,r){return e(l,t,n,r)})),l},Cl.unary=function(t){return go(t,1)},Cl.union=Hi,Cl.unionBy=Zi,Cl.unionWith=Vi,Cl.uniq=function(t){return t&&t.length?$n(t):[]},Cl.uniqBy=function(t,e){return t&&t.length?$n(t,Xr(e,2)):[]},Cl.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?$n(t,void 0,e):[]},Cl.unset=function(t,e){return null==t||Qn(t,e)},Cl.unzip=Wi,Cl.unzipWith=Gi,Cl.update=function(t,e,l){return null==t?t:Jn(t,e,ir(l))},Cl.updateWith=function(t,e,l,n){return n="function"==typeof n?n:void 0,null==t?t:Jn(t,e,ir(l),n)},Cl.values=Ta,Cl.valuesIn=function(t){return null==t?[]:De(t,wa(t))},Cl.without=Yi,Cl.words=Fa,Cl.wrap=function(t,e){return Eo(ir(e),t)},Cl.xor=qi,Cl.xorBy=Xi,Cl.xorWith=Ki,Cl.zip=$i,Cl.zipObject=function(t,e){return nr(t||[],e||[],Ul)},Cl.zipObjectDeep=function(t,e){return nr(t||[],e||[],zn)},Cl.zipWith=Qi,Cl.entries=Ca,Cl.entriesIn=ka,Cl.extend=sa,Cl.extendWith=ua,Xa(Cl,Cl),Cl.add=is,Cl.attempt=za,Cl.camelCase=Oa,Cl.capitalize=Aa,Cl.ceil=os,Cl.clamp=function(t,e,l){return void 0===l&&(l=e,e=void 0),void 0!==l&&(l=(l=ra(l))===l?l:0),void 0!==e&&(e=(e=ra(e))===e?e:0),Yl(ra(t),e,l)},Cl.clone=function(t){return ql(t,4)},Cl.cloneDeep=function(t){return ql(t,5)},Cl.cloneDeepWith=function(t,e){return ql(t,5,e="function"==typeof e?e:void 0)},Cl.cloneWith=function(t,e){return ql(t,4,e="function"==typeof e?e:void 0)},Cl.conformsTo=function(t,e){return null==e||Xl(t,e,ba(e))},Cl.deburr=Da,Cl.defaultTo=function(t,e){return null==t||t!==t?e:t},Cl.divide=as,Cl.endsWith=function(t,e,l){t=oa(t),e=Kn(e);var n=t.length,r=l=void 0===l?n:Yl(la(l),0,n);return(l-=e.length)>=0&&t.slice(l,r)==e},Cl.eq=To,Cl.escape=function(t){return(t=oa(t))&&F.test(t)?t.replace(j,je):t},Cl.escapeRegExp=function(t){return(t=oa(t))&&Y.test(t)?t.replace(G,"\\$&"):t},Cl.every=function(t,e,l){var n=Po(t)?ue:tn;return l&&oi(t,e,l)&&(e=void 0),n(t,Xr(e,3))},Cl.find=no,Cl.findIndex=Ai,Cl.findKey=function(t,e){return be(t,Xr(e,3),an)},Cl.findLast=ro,Cl.findLastIndex=Di,Cl.findLastKey=function(t,e){return be(t,Xr(e,3),sn)},Cl.floor=ss,Cl.forEach=io,Cl.forEachRight=oo,Cl.forIn=function(t,e){return null==t?t:rn(t,Xr(e,3),wa)},Cl.forInRight=function(t,e){return null==t?t:on(t,Xr(e,3),wa)},Cl.forOwn=function(t,e){return t&&an(t,Xr(e,3))},Cl.forOwnRight=function(t,e){return t&&sn(t,Xr(e,3))},Cl.get=pa,Cl.gt=Oo,Cl.gte=Ao,Cl.has=function(t,e){return null!=t&&li(t,e,pn)},Cl.hasIn=ga,Cl.head=Ii,Cl.identity=Wa,Cl.includes=function(t,e,l,n){t=Lo(t)?t:Ta(t),l=l&&!n?la(l):0;var r=t.length;return l<0&&(l=rl(r+l,0)),Xo(t)?l<=r&&t.indexOf(e,l)>-1:!!r&&xe(t,e,l)>-1},Cl.indexOf=function(t,e,l){var n=null==t?0:t.length;if(!n)return-1;var r=null==l?0:la(l);return r<0&&(r=rl(n+r,0)),xe(t,e,r)},Cl.inRange=function(t,e,l){return e=ea(e),void 0===l?(l=e,e=0):l=ea(l),function(t,e,l){return t>=il(e,l)&&t=-9007199254740991&&t<=9007199254740991},Cl.isSet=qo,Cl.isString=Xo,Cl.isSymbol=Ko,Cl.isTypedArray=$o,Cl.isUndefined=function(t){return void 0===t},Cl.isWeakMap=function(t){return Zo(t)&&ei(t)==_},Cl.isWeakSet=function(t){return Zo(t)&&"[object WeakSet]"==dn(t)},Cl.join=function(t,e){return null==t?"":ll.call(t,e)},Cl.kebabCase=Pa,Cl.last=ji,Cl.lastIndexOf=function(t,e,l){var n=null==t?0:t.length;if(!n)return-1;var r=n;return void 0!==l&&(r=(r=la(l))<0?rl(n+r,0):il(r,n-1)),e===e?function(t,e,l){for(var n=l+1;n--;)if(t[n]===e)return n;return n}(t,e,r):we(t,Se,r,!0)},Cl.lowerCase=Ia,Cl.lowerFirst=La,Cl.lt=Qo,Cl.lte=Jo,Cl.max=function(t){return t&&t.length?en(t,Wa,fn):void 0},Cl.maxBy=function(t,e){return t&&t.length?en(t,Xr(e,2),fn):void 0},Cl.mean=function(t){return Me(t,Wa)},Cl.meanBy=function(t,e){return Me(t,Xr(e,2))},Cl.min=function(t){return t&&t.length?en(t,Wa,En):void 0},Cl.minBy=function(t,e){return t&&t.length?en(t,Xr(e,2),En):void 0},Cl.stubArray=ns,Cl.stubFalse=rs,Cl.stubObject=function(){return{}},Cl.stubString=function(){return""},Cl.stubTrue=function(){return!0},Cl.multiply=us,Cl.nth=function(t,e){return t&&t.length?An(t,la(e)):void 0},Cl.noConflict=function(){return Yt._===this&&(Yt._=Tt),this},Cl.noop=Ka,Cl.now=po,Cl.pad=function(t,e,l){t=oa(t);var n=(e=la(e))?We(t):0;if(!e||n>=e)return t;var r=(e-n)/2;return Dr(Qe(r),l)+t+Dr($e(r),l)},Cl.padEnd=function(t,e,l){t=oa(t);var n=(e=la(e))?We(t):0;return e&&ne){var n=t;t=e,e=n}if(l||t%1||e%1){var r=sl();return il(t+r*(e-t+Zt("1e-"+((r+"").length-1))),e)}return Rn(t,e)},Cl.reduce=function(t,e,l){var n=Po(t)?ge:ke,r=arguments.length<3;return n(t,Xr(e,4),l,r,Ql)},Cl.reduceRight=function(t,e,l){var n=Po(t)?me:ke,r=arguments.length<3;return n(t,Xr(e,4),l,r,Jl)},Cl.repeat=function(t,e,l){return e=(l?oi(t,e,l):void 0===e)?1:la(e),Nn(oa(t),e)},Cl.replace=function(){var t=arguments,e=oa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Cl.result=function(t,e,l){var n=-1,r=(e=or(e,t)).length;for(r||(r=1,t=void 0);++n9007199254740991)return[];var l=4294967295,n=il(t,4294967295);t-=4294967295;for(var r=Oe(n,e=Xr(e));++l=i)return t;var a=l-We(n);if(a<1)return n;var s=o?sr(o,0,a).join(""):t.slice(0,a);if(void 0===r)return s+n;if(o&&(a+=s.length-a),Yo(r)){if(t.slice(a).search(r)){var u,c=s;for(r.global||(r=gt(r.source,oa(nt.exec(r))+"g")),r.lastIndex=0;u=r.exec(c);)var h=u.index;s=s.slice(0,void 0===h?a:h)}}else if(t.indexOf(Kn(r),a)!=a){var d=s.lastIndexOf(r);d>-1&&(s=s.slice(0,d))}return s+n},Cl.unescape=function(t){return(t=oa(t))&&B.test(t)?t.replace(N,Ye):t},Cl.uniqueId=function(t){var e=++Mt;return oa(t)+e},Cl.upperCase=ja,Cl.upperFirst=Ba,Cl.each=io,Cl.eachRight=oo,Cl.first=Ii,Xa(Cl,function(){var t={};return an(Cl,(function(e,l){St.call(Cl.prototype,l)||(t[l]=e)})),t}(),{chain:!1}),Cl.VERSION="4.17.19",ae(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Cl[t].placeholder=Cl})),ae(["drop","take"],(function(t,e){Al.prototype[t]=function(l){l=void 0===l?1:rl(la(l),0);var n=this.__filtered__&&!e?new Al(this):this.clone();return n.__filtered__?n.__takeCount__=il(l,n.__takeCount__):n.__views__.push({size:il(l,4294967295),type:t+(n.__dir__<0?"Right":"")}),n},Al.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ae(["filter","map","takeWhile"],(function(t,e){var l=e+1,n=1==l||3==l;Al.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Xr(t,3),type:l}),e.__filtered__=e.__filtered__||n,e}})),ae(["head","last"],(function(t,e){var l="take"+(e?"Right":"");Al.prototype[t]=function(){return this[l](1).value()[0]}})),ae(["initial","tail"],(function(t,e){var l="drop"+(e?"":"Right");Al.prototype[t]=function(){return this.__filtered__?new Al(this):this[l](1)}})),Al.prototype.compact=function(){return this.filter(Wa)},Al.prototype.find=function(t){return this.filter(t).head()},Al.prototype.findLast=function(t){return this.reverse().find(t)},Al.prototype.invokeMap=jn((function(t,e){return"function"==typeof t?new Al(this):this.map((function(l){return vn(l,t,e)}))})),Al.prototype.reject=function(t){return this.filter(So(Xr(t)))},Al.prototype.slice=function(t,e){t=la(t);var l=this;return l.__filtered__&&(t>0||e<0)?new Al(l):(t<0?l=l.takeRight(-t):t&&(l=l.drop(t)),void 0!==e&&(l=(e=la(e))<0?l.dropRight(-e):l.take(e-t)),l)},Al.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Al.prototype.toArray=function(){return this.take(4294967295)},an(Al.prototype,(function(t,e){var l=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),r=Cl[n?"take"+("last"==e?"Right":""):e],i=n||/^find/.test(e);r&&(Cl.prototype[e]=function(){var e=this.__wrapped__,o=n?[1]:arguments,a=e instanceof Al,s=o[0],u=a||Po(e),c=function(t){var e=r.apply(Cl,pe([t],o));return n&&h?e[0]:e};u&&l&&"function"==typeof s&&1!=s.length&&(a=u=!1);var h=this.__chain__,d=!!this.__actions__.length,f=i&&!h,p=a&&!d;if(!i&&u){e=p?e:new Al(this);var g=t.apply(e,o);return g.__actions__.push({func:to,args:[c],thisArg:void 0}),new Ol(g,h)}return f&&p?t.apply(this,o):(g=this.thru(c),f?n?g.value()[0]:g.value():g)})})),ae(["pop","push","shift","sort","splice","unshift"],(function(t){var e=yt[t],l=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Cl.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var r=this.value();return e.apply(Po(r)?r:[],t)}return this[l]((function(l){return e.apply(Po(l)?l:[],t)}))}})),an(Al.prototype,(function(t,e){var l=Cl[e];if(l){var n=l.name+"";St.call(vl,n)||(vl[n]=[]),vl[n].push({name:e,func:l})}})),vl[kr(void 0,2).name]=[{name:"wrapper",func:void 0}],Al.prototype.clone=function(){var t=new Al(this.__wrapped__);return t.__actions__=mr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=mr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=mr(this.__views__),t},Al.prototype.reverse=function(){if(this.__filtered__){var t=new Al(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Al.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,l=Po(t),n=e<0,r=l?t.length:0,i=function(t,e,l){var n=-1,r=l.length;for(;++n=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Cl.prototype.plant=function(t){for(var e,l=this;l instanceof Tl;){var n=Ci(l);n.__index__=0,n.__values__=void 0,e?r.__wrapped__=n:e=n;var r=n;l=l.__wrapped__}return r.__wrapped__=t,e},Cl.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Al){var e=t;return this.__actions__.length&&(e=new Al(this)),(e=e.reverse()).__actions__.push({func:to,args:[Ui],thisArg:void 0}),new Ol(e,this.__chain__)}return this.thru(Ui)},Cl.prototype.toJSON=Cl.prototype.valueOf=Cl.prototype.value=function(){return er(this.__wrapped__,this.__actions__)},Cl.prototype.first=Cl.prototype.head,$t&&(Cl.prototype[$t]=function(){return this}),Cl}();Yt._=qe,void 0===(r=function(){return qe}.call(e,l,e,n))||(n.exports=r)}).call(this)}).call(this,l(52),l(120)(t))},function(t,e,l){t.exports=l(841)},function(t,e,l){"use strict";function n(t,e){if(null==t)return{};var l,n,r={},i=Object.keys(t);for(n=0;n=0||(r[l]=t[l]);return r}l.d(e,"a",(function(){return n}))},function(t,e,l){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}l.d(e,"a",(function(){return n}))},function(t,e,l){"use strict";function n(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}l.d(e,"a",(function(){return n}))},function(t,e,l){"use strict";function n(t,e,l){return e in t?Object.defineProperty(t,e,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[e]=l,t}l.d(e,"a",(function(){return n}))},function(t,e,l){"use strict";l.r(e),l.d(e,"default",(function(){return r}));var n=l(23);function r(t){Object(n.a)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},function(t,e,l){"use strict";l.d(e,"a",(function(){return R})),l.d(e,"b",(function(){return y})),l.d(e,"c",(function(){return j})),l.d(e,"d",(function(){return x})),l.d(e,"e",(function(){return u})),l.d(e,"f",(function(){return F})),l.d(e,"g",(function(){return G})),l.d(e,"h",(function(){return z})),l.d(e,"i",(function(){return X})),l.d(e,"j",(function(){return et})),l.d(e,"k",(function(){return lt})),l.d(e,"l",(function(){return tt})),l.d(e,"m",(function(){return nt})),l.d(e,"n",(function(){return L})),l.d(e,"o",(function(){return D})),l.d(e,"p",(function(){return N})),l.d(e,"q",(function(){return H})),l.d(e,"r",(function(){return I})),l.d(e,"s",(function(){return rt})),l.d(e,"t",(function(){return Q})),l.d(e,"u",(function(){return K})),l.d(e,"v",(function(){return $})),l.d(e,"w",(function(){return B})),l.d(e,"x",(function(){return U})),l.d(e,"y",(function(){return c})),l.d(e,"z",(function(){return Z})),l.d(e,"A",(function(){return P})),l.d(e,"B",(function(){return V})),l.d(e,"C",(function(){return W})),l.d(e,"D",(function(){return Y})),l.d(e,"E",(function(){return b})),l.d(e,"F",(function(){return C})),l.d(e,"G",(function(){return a})),l.d(e,"H",(function(){return E})),l.d(e,"I",(function(){return w})),l.d(e,"J",(function(){return A})),l.d(e,"K",(function(){return p})),l.d(e,"L",(function(){return h})),l.d(e,"M",(function(){return v})),l.d(e,"N",(function(){return f})),l.d(e,"O",(function(){return M})),l.d(e,"P",(function(){return s})),l.d(e,"Q",(function(){return d})),l.d(e,"R",(function(){return k})),l.d(e,"S",(function(){return S})),l.d(e,"T",(function(){return _}));var n=l(66),r=l(3),i=l(43),o=l(517),a=function(t){return function(){return t}}(!0),s=function(){};var u=function(t){return t};"function"===typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;function c(t,e,l){if(!e(t))throw new Error(l)}var h=function(t,e){Object(r.a)(t,e),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach((function(l){t[l]=e[l]}))},d=function(t,e){var l;return(l=[]).concat.apply(l,e.map(t))};function f(t,e){var l=t.indexOf(e);l>=0&&t.splice(l,1)}function p(t){var e=!1;return function(){e||(e=!0,t())}}var g=function(t){throw t},m=function(t){return{value:t,done:!0}};function v(t,e,l){void 0===e&&(e=g),void 0===l&&(l="iterator");var n={meta:{name:l},next:t,throw:e,return:m,isSagaIterator:!0};return"undefined"!==typeof Symbol&&(n[Symbol.iterator]=function(){return n}),n}function y(t,e){var l=e.sagaStack;console.error(t),console.error(l)}var b=function(t){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+t+"\n")},w=function(t){return Array.apply(null,new Array(t))},x=function(t){return function(e){return t(Object.defineProperty(e,n.f,{value:!0}))}},_=function(t){return t===n.k},S=function(t){return t===n.j},M=function(t){return _(t)||S(t)};function E(t,e){var l=Object.keys(t),n=l.length;var r,o=0,a=Object(i.a)(t)?w(n):{},u={};return l.forEach((function(t){var l=function(l,i){r||(i||M(l)?(e.cancel(),e(l,i)):(a[t]=l,++o===n&&(r=!0,e(a))))};l.cancel=s,u[t]=l})),e.cancel=function(){r||(r=!0,l.forEach((function(t){return u[t].cancel()})))},u}function C(t){return{name:t.name||"anonymous",location:k(t)}}function k(t){return t[n.g]}var T={isEmpty:a,put:s,take:s};function O(t,e){void 0===t&&(t=10);var l=new Array(t),n=0,r=0,i=0,o=function(e){l[r]=e,r=(r+1)%t,n++},a=function(){if(0!=n){var e=l[i];return l[i]=null,n--,i=(i+1)%t,e}},s=function(){for(var t=[];n;)t.push(a());return t};return{isEmpty:function(){return 0==n},put:function(a){var u;if(n1?e-1:0),n=1;n1?e-1:0),n=1;n0&&t.unfinished);t.unfinished||this._zr.flush()}}},z.getDom=function(){return this._dom},z.getZr=function(){return this._zr},z.setOption=function(t,e,l){if(this._disposed)this.id;else{var n;if(P(e)&&(l=e.lazyUpdate,n=e.silent,e=e.notMerge),this[R]=!0,!this._model||e){var r=new d(this._api),i=this._theme,o=this._model=new u;o.scheduler=this._scheduler,o.init(null,null,i,r)}this._model.setOption(t,ot),l?(this.__optionUpdated={silent:n},this[R]=!1):(Z(this),H.update.call(this),this._zr.flush(),this.__optionUpdated=!1,this[R]=!1,Y.call(this,n),q.call(this,n))}},z.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},z.getModel=function(){return this._model},z.getOption=function(){return this._model&&this._model.getOption()},z.getWidth=function(){return this._zr.getWidth()},z.getHeight=function(){return this._zr.getHeight()},z.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},z.getRenderedCanvas=function(t){if(o.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},z.getSvgDataURL=function(){if(o.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return r.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},z.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,l=this._model,n=[],r=this;A(e,(function(t){l.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var i="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(n,(function(t){t.group.ignore=!1})),i}this.id},z.getConnectedDataURL=function(t){if(this._disposed)this.id;else if(o.canvasSupported){var e="svg"===t.type,l=this.group,i=Math.min,a=Math.max;if(dt[l]){var s=1/0,u=1/0,c=-1/0,h=-1/0,d=[],f=t&&t.pixelRatio||1;r.each(ht,(function(n,o){if(n.group===l){var f=e?n.getZr().painter.getSvgDom().innerHTML:n.getRenderedCanvas(r.clone(t)),p=n.getDom().getBoundingClientRect();s=i(p.left,s),u=i(p.top,u),c=a(p.right,c),h=a(p.bottom,h),d.push({dom:f,left:p.left,top:p.top})}}));var p=(c*=f)-(s*=f),g=(h*=f)-(u*=f),m=r.createCanvas(),v=n.init(m,{renderer:e?"svg":"canvas"});if(v.resize({width:p,height:g}),e){var y="";return A(d,(function(t){var e=t.left-s,l=t.top-u;y+=''+t.dom+""})),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new b.Rect({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),A(d,(function(t){var e=new b.Image({style:{x:t.left*f-s,y:t.top*f-u,image:t.dom}});v.add(e)})),v.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},z.convertToPixel=r.curry(U,"convertToPixel"),z.convertFromPixel=r.curry(U,"convertFromPixel"),z.containPixel=function(t,e){if(!this._disposed){var l,n=this._model;return t=w.parseFinder(n,t),r.each(t,(function(t,n){n.indexOf("Models")>=0&&r.each(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)l|=!!r.containPoint(e);else if("seriesModels"===n){var i=this._chartsMap[t.__viewId];i&&i.containPoint&&(l|=i.containPoint(e,t))}}),this)}),this),!!l}this.id},z.getVisual=function(t,e){var l=this._model,n=(t=w.parseFinder(l,t,{defaultMainType:"series"})).seriesModel.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=r?n.getItemVisual(r,e):n.getVisual(e)},z.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},z.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var H={prepareAndUpdate:function(t){Z(this),H.update.call(this,t)},update:function(t){var e=this._model,l=this._api,n=this._zr,r=this._coordSysMgr,a=this._scheduler;if(e){a.restoreData(e,t),a.performSeriesTasks(e),r.create(e,l),a.performDataProcessorTasks(e,t),W(this,e),r.update(e,l),K(e),a.performVisualTasks(e,t),$(this,e,l,t);var s=e.get("backgroundColor")||"transparent";if(o.canvasSupported)n.setBackgroundColor(s);else{var u=i.parse(s);s=i.stringify(u,"rgb"),0===u[3]&&(s="transparent")}J(e,l)}},updateTransform:function(t){var e=this._model,l=this,n=this._api;if(e){var i=[];e.eachComponent((function(r,o){var a=l.getViewOfComponentModel(o);if(a&&a.__alive)if(a.updateTransform){var s=a.updateTransform(o,e,n,t);s&&s.update&&i.push(a)}else i.push(a)}));var o=r.createHashMap();e.eachSeries((function(r){var i=l._chartsMap[r.__viewId];if(i.updateTransform){var a=i.updateTransform(r,e,n,t);a&&a.update&&o.set(r.uid,1)}else o.set(r.uid,1)})),K(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),Q(l,e,n,t,o),J(e,this._api)}},updateView:function(t){var e=this._model;e&&(y.markUpdateMethod(t,"updateView"),K(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),$(this,this._model,this._api,t),J(e,this._api))},updateVisual:function(t){H.update.call(this,t)},updateLayout:function(t){H.update.call(this,t)}};function Z(t){var e=t._model,l=t._scheduler;l.restorePipelines(e),l.prepareStageTasks(),X(t,"component",e,l),X(t,"chart",e,l),l.plan()}function V(t,e,l,n,i){var o=t._model;if(n){var a={};a[n+"Id"]=l[n+"Id"],a[n+"Index"]=l[n+"Index"],a[n+"Name"]=l[n+"Name"];var s={mainType:n,query:a};i&&(s.subType=i);var u=l.excludeSeriesId;null!=u&&(u=r.createHashMap(w.normalizeToArray(u))),o&&o.eachComponent(s,(function(e){u&&null!=u.get(e.id)||c(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else A(t._componentsViews.concat(t._chartsViews),c);function c(n){n&&n.__alive&&n[e]&&n[e](n.__model,o,t._api,l)}}function W(t,e){var l=t._chartsMap,n=t._scheduler;e.eachSeries((function(t){n.updateStreamModes(t,l[t.__viewId])}))}function G(t,e){var l=t.type,n=t.escapeConnect,i=nt[l],o=i.actionInfo,a=(o.update||"update").split(":"),s=a.pop();a=null!=a[0]&&I(a[0]),this[R]=!0;var u=[t],c=!1;t.batch&&(c=!0,u=r.map(t.batch,(function(e){return(e=r.defaults(r.extend({},e),t)).batch=null,e})));var h,d=[],f="highlight"===l||"downplay"===l;A(u,(function(t){(h=(h=i.action(t,this._model,this._api))||r.extend({},t)).type=o.event||h.type,d.push(h),f?V(this,s,t,"series"):a&&V(this,s,t,a.main,a.sub)}),this),"none"===s||f||a||(this.__optionUpdated?(Z(this),H.update.call(this,t),this.__optionUpdated=!1):H[s].call(this,t)),h=c?{type:o.event||l,escapeConnect:n,batch:d}:d[0],this[R]=!1,!e&&this._messageCenter.trigger(h.type,h)}function Y(t){for(var e=this._pendingActions;e.length;){var l=e.shift();G.call(this,l,t)}}function q(t){!t&&this.trigger("updated")}function X(t,e,l,n){for(var r="component"===e,i=r?t._componentsViews:t._chartsViews,o=r?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,u=0;ue.get("hoverLayerThreshold")&&!o.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var l=t._chartsMap[e.__viewId];l.__alive&&l.group.traverse((function(t){t.useHoverLayer=!0}))}}))}(t,e),S(t._zr.dom,e)}function J(t,e){A(at,(function(l){l(t,e)}))}z.resize=function(t){if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var l=e.resetOption("media"),n=t&&t.silent;this[R]=!0,l&&Z(this),H.update.call(this),this[R]=!1,Y.call(this,n),q.call(this,n)}}},z.showLoading=function(t,e){if(this._disposed)this.id;else if(P(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ct[t]){var l=ct[t](this._api,e),n=this._zr;this._loadingFX=l,n.add(l)}},z.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},z.makeActionFromEvent=function(t){var e=r.extend({},t);return e.type=rt[t.type],e},z.dispatchAction=function(t,e){this._disposed?this.id:(P(e)||(e={silent:!!e}),nt[t.type]&&this._model&&(this[R]?this._pendingActions.push(t):(G.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&o.browser.weChat&&this._throttledZrFlush(),Y.call(this,e.silent),q.call(this,e.silent))))},z.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0}},z.on=j("on",!1),z.off=j("off",!1),z.one=j("one",!1);var tt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function et(t,e){var l=t.get("z"),n=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=l&&(t.z=l),null!=n&&(t.zlevel=n))}))}function lt(){this.eventInfo}z._initEvents=function(){A(tt,(function(t){var e=function(e){var l,n=this.getModel(),i=e.target;if("globalout"===t)l={};else if(i&&null!=i.dataIndex){var o=i.dataModel||n.getSeriesByIndex(i.seriesIndex);l=o&&o.getDataParams(i.dataIndex,i.dataType,i)||{}}else i&&i.eventData&&(l=r.extend({},i.eventData));if(l){var a=l.componentType,s=l.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=l.seriesIndex);var u=a&&null!=s&&n.getComponent(a,s),c=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];l.event=e,l.type=t,this._ecEventProcessor.eventInfo={targetEl:i,packedEvent:l,model:u,view:c},this.trigger(t,l)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),A(rt,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},z.isDisposed=function(){return this._disposed},z.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},z.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,w.setAttribute(this.getDom(),gt,"");var t=this._api,e=this._model;A(this._componentsViews,(function(l){l.dispose(e,t)})),A(this._chartsViews,(function(l){l.dispose(e,t)})),this._zr.dispose(),delete ht[this.id]}},r.mixin(F,s),lt.prototype={constructor:lt,normalizeQuery:function(t){var e={},l={},n={};if(r.isString(t)){var i=I(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};r.each(t,(function(t,r){for(var i=!1,s=0;s0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,i=!0)}}a.hasOwnProperty(r)&&(l[r]=t,i=!0),i||(n[r]=t)}))}return{cptQuery:e,dataQuery:l,otherQuery:n}},filter:function(t,e,l){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,u=e.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function c(t,e,l,n){return null==t[l]||e[n||l]===t[l]}},afterTrigger:function(){this.eventInfo=null}};var nt={},rt={},it=[],ot=[],at=[],st=[],ut={},ct={},ht={},dt={},ft=new Date-0,pt=new Date-0,gt="_echarts_instance_";function mt(t){dt[t]=!1}var vt=mt;function yt(t){return ht[w.getAttribute(t,gt)]}function bt(t,e){ut[t]=e}function wt(t){ot.push(t)}function xt(t,e){Mt(it,t,e,1e3)}function _t(t,e,l){"function"===typeof e&&(l=e,e="");var n=P(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,O(N.test(n)&&N.test(e)),nt[n]||(nt[n]={action:l,actionInfo:t}),rt[e]=n}function St(t,e){Mt(st,t,e,3e3,"visual")}function Mt(t,e,l,n,r){(D(e)||P(e))&&(l=e,e=n);var i=E.wrapStageHandler(l,r);return i.__prio=e,i.__raw=l,t.push(i),i}function Et(t,e){ct[t]=e}St(2e3,_),wt(f),xt(900,p),Et("default",M),_t({type:"highlight",event:"highlight",update:"highlight"},r.noop),_t({type:"downplay",event:"downplay",update:"downplay"},r.noop),bt("light",C),bt("dark",k);e.version="4.9.0",e.dependencies={zrender:"4.3.2"},e.PRIORITY=L,e.init=function(t,e,l){var n=yt(t);if(n)return n;var r=new F(t,e,l);return r.id="ec_"+ft++,ht[r.id]=r,w.setAttribute(t,gt,r.id),function(t){var e="__connectUpdateStatus";function l(t,l){for(var n=0;n1?e-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:l,i=t(n)+r;return e(i)}}function r(t){return function(e){return new Date(t(e).getTime()-1)}}function i(t){return function(e){return t.map((function(t){return t(e)}))}}function o(t){if(t instanceof Date)return t.getFullYear();if("number"===typeof t)return t;var e=parseInt(t,10);if("string"===typeof t&&!isNaN(e))return e;throw new Error("Failed to get year from date: ".concat(t,"."))}function a(t){if(t instanceof Date)return t.getMonth();throw new Error("Failed to get month from date: ".concat(t,"."))}function s(t){if(t instanceof Date)return t.getMonth()+1;throw new Error("Failed to get human-readable month from date: ".concat(t,"."))}function u(t){if(t instanceof Date)return t.getDate();throw new Error("Failed to get year from date: ".concat(t,"."))}function c(t){if(t instanceof Date)return t.getHours();if("string"===typeof t){var e=t.split(":");if(e.length>=2){var l=e[0],n=parseInt(l,10);if(!isNaN(n))return n}}throw new Error("Failed to get hours from date: ".concat(t,"."))}function h(t){if(t instanceof Date)return t.getMinutes();if("string"===typeof t){var e=t.split(":");if(e.length>=2){var l=e[1]||0,n=parseInt(l,10);if(!isNaN(n))return n}}throw new Error("Failed to get minutes from date: ".concat(t,"."))}function d(t){if(t instanceof Date)return t.getSeconds();if("string"===typeof t){var e=t.split(":");if(e.length>=2){var l=e[2]||0,n=parseInt(l,10);if(!isNaN(n))return n}}throw new Error("Failed to get seconds from date: ".concat(t,"."))}function f(t){var e=o(t),l=e+(1-e)%100,n=new Date;return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}l.r(e),l.d(e,"getYear",(function(){return o})),l.d(e,"getMonth",(function(){return a})),l.d(e,"getMonthHuman",(function(){return s})),l.d(e,"getDate",(function(){return u})),l.d(e,"getHours",(function(){return c})),l.d(e,"getMinutes",(function(){return h})),l.d(e,"getSeconds",(function(){return d})),l.d(e,"getCenturyStart",(function(){return f})),l.d(e,"getPreviousCenturyStart",(function(){return p})),l.d(e,"getNextCenturyStart",(function(){return g})),l.d(e,"getCenturyEnd",(function(){return m})),l.d(e,"getPreviousCenturyEnd",(function(){return v})),l.d(e,"getNextCenturyEnd",(function(){return y})),l.d(e,"getCenturyRange",(function(){return b})),l.d(e,"getDecadeStart",(function(){return w})),l.d(e,"getPreviousDecadeStart",(function(){return x})),l.d(e,"getNextDecadeStart",(function(){return _})),l.d(e,"getDecadeEnd",(function(){return S})),l.d(e,"getPreviousDecadeEnd",(function(){return M})),l.d(e,"getNextDecadeEnd",(function(){return E})),l.d(e,"getDecadeRange",(function(){return C})),l.d(e,"getYearStart",(function(){return k})),l.d(e,"getPreviousYearStart",(function(){return T})),l.d(e,"getNextYearStart",(function(){return O})),l.d(e,"getYearEnd",(function(){return A})),l.d(e,"getPreviousYearEnd",(function(){return D})),l.d(e,"getNextYearEnd",(function(){return P})),l.d(e,"getYearRange",(function(){return I})),l.d(e,"getMonthStart",(function(){return R})),l.d(e,"getPreviousMonthStart",(function(){return N})),l.d(e,"getNextMonthStart",(function(){return j})),l.d(e,"getMonthEnd",(function(){return B})),l.d(e,"getPreviousMonthEnd",(function(){return F})),l.d(e,"getNextMonthEnd",(function(){return z})),l.d(e,"getMonthRange",(function(){return U})),l.d(e,"getDayStart",(function(){return Z})),l.d(e,"getPreviousDayStart",(function(){return V})),l.d(e,"getNextDayStart",(function(){return W})),l.d(e,"getDayEnd",(function(){return G})),l.d(e,"getPreviousDayEnd",(function(){return Y})),l.d(e,"getNextDayEnd",(function(){return q})),l.d(e,"getDayRange",(function(){return X})),l.d(e,"getDaysInMonth",(function(){return K})),l.d(e,"getHoursMinutes",(function(){return Q})),l.d(e,"getHoursMinutesSeconds",(function(){return J})),l.d(e,"getISOLocalMonth",(function(){return tt})),l.d(e,"getISOLocalDate",(function(){return et})),l.d(e,"getISOLocalDateTime",(function(){return lt}));var p=n(o,f,-100),g=n(o,f,100),m=r(g),v=n(o,m,-100),y=n(o,m,100),b=i([f,m]);function w(t){var e=o(t),l=e+(1-e)%10,n=new Date;return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}var x=n(o,w,-10),_=n(o,w,10),S=r(_),M=n(o,S,-10),E=n(o,S,10),C=i([w,S]);function k(t){var e=o(t),l=new Date;return l.setFullYear(e,0,1),l.setHours(0,0,0,0),l}var T=n(o,k,-1),O=n(o,k,1),A=r(O),D=n(o,A,-1),P=n(o,A,1),I=i([k,A]);function L(t,e){return function(l){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=o(l),i=a(l)+n,s=new Date;return s.setFullYear(r,i,1),s.setHours(0,0,0,0),t(s)}}function R(t){var e=o(t),l=a(t),n=new Date;return n.setFullYear(e,l,1),n.setHours(0,0,0,0),n}var N=L(R,-1),j=L(R,1),B=r(j),F=L(B,-1),z=L(B,1),U=i([R,B]);function H(t,e){return function(l){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=o(l),i=a(l),s=u(l)+n,c=new Date;return c.setFullYear(r,i,s),c.setHours(0,0,0,0),t(c)}}function Z(t){var e=o(t),l=a(t),n=u(t),r=new Date;return r.setFullYear(e,l,n),r.setHours(0,0,0,0),r}var V=H(Z,-1),W=H(Z,1),G=r(W),Y=H(G,-1),q=H(G,1),X=i([Z,G]);function K(t){return u(B(t))}function $(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,l="".concat(t);return l.length>=e?t:"0000".concat(l).slice(-e)}function Q(t){var e=$(c(t)),l=$(h(t));return"".concat(e,":").concat(l)}function J(t){var e=$(c(t)),l=$(h(t)),n=$(d(t));return"".concat(e,":").concat(l,":").concat(n)}function tt(t){var e=$(o(t),4),l=$(s(t));return"".concat(e,"-").concat(l)}function et(t){var e=$(o(t),4),l=$(s(t)),n=$(u(t));return"".concat(e,"-").concat(l,"-").concat(n)}function lt(t){return"".concat(et(t),"T").concat(J(t))}},function(t,e,l){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}l.d(e,"a",(function(){return n}))},function(t,e,l){"use strict";l.d(e,"a",(function(){return r.v})),l.d(e,"b",(function(){return r.l})),l.d(e,"c",(function(){return r.j})),l.d(e,"d",(function(){return r.u})),l.d(e,"e",(function(){return c}));l(66),l(3);var n=l(43),r=l(26),i=(l(517),function(t){return{done:!0,value:t}}),o={};function a(t){return Object(n.b)(t)?"channel":Object(n.l)(t)?String(t):Object(n.d)(t)?t.name:String(t)}function s(t,e,l){var n,a,s,u=e;function c(e,l){if(u===o)return i(e);if(l&&!a)throw u=o,l;n&&n(e);var r=l?t[a](l):t[u]();return u=r.nextState,s=r.effect,n=r.stateUpdater,a=r.errorState,u===o?i(e):s}return Object(r.M)(c,(function(t){return c(null,t)}),l)}function u(t,e){for(var l=arguments.length,n=new Array(l>2?l-2:0),i=2;i2?l-2:0),i=2;i=0||Object.prototype.propertyIsEnumerable.call(t,l)&&(i[l]=t[l])}return i}},function(t,e,l){"use strict";function n(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)}l.d(e,"a",(function(){return n}))},function(t,e,l){"use strict";l.d(e,"a",(function(){return c})),l.d(e,"b",(function(){return U}));var n=l(0),r=l.n(n),i=(l(1),r.a.createContext(null));var o=function(t){t()},a={notify:function(){}};function s(){var t=o,e=null,l=null;return{clear:function(){e=null,l=null},notify:function(){t((function(){for(var t=e;t;)t.callback(),t=t.next}))},get:function(){for(var t=[],l=e;l;)t.push(l),l=l.next;return t},subscribe:function(t){var n=!0,r=l={callback:t,next:null,prev:l};return r.prev?r.prev.next=r:e=r,function(){n&&null!==e&&(n=!1,r.next?r.next.prev=r.prev:l=r.prev,r.prev?r.prev.next=r.next:e=r.next)}}}}var u=function(){function t(t,e){this.store=t,this.parentSub=e,this.unsubscribe=null,this.listeners=a,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var e=t.prototype;return e.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},e.notifyNestedSubs=function(){this.listeners.notify()},e.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},e.isSubscribed=function(){return Boolean(this.unsubscribe)},e.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=s())},e.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=a)},t}();var c=function(t){var e=t.store,l=t.context,o=t.children,a=Object(n.useMemo)((function(){var t=new u(e);return t.onStateChange=t.notifyNestedSubs,{store:e,subscription:t}}),[e]),s=Object(n.useMemo)((function(){return e.getState()}),[e]);Object(n.useEffect)((function(){var t=a.subscription;return t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}}),[a,s]);var c=l||i;return r.a.createElement(c.Provider,{value:a},o)};function h(){return(h=Object.assign||function(t){for(var e=1;e=0||(r[l]=t[l]);return r}var f=l(178),p=l.n(f),g=l(210),m="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect,v=[],y=[null,null];function b(t,e){var l=t[1];return[e.payload,l+1]}function w(t,e,l){m((function(){return t.apply(void 0,e)}),l)}function x(t,e,l,n,r,i,o){t.current=n,e.current=r,l.current=!1,i.current&&(i.current=null,o())}function _(t,e,l,n,r,i,o,a,s,u){if(t){var c=!1,h=null,d=function(){if(!c){var t,l,d=e.getState();try{t=n(d,r.current)}catch(f){l=f,h=f}l||(h=null),t===i.current?o.current||s():(i.current=t,a.current=t,o.current=!0,u({type:"STORE_UPDATED",payload:{error:l}}))}};l.onStateChange=d,l.trySubscribe(),d();return function(){if(c=!0,l.tryUnsubscribe(),l.onStateChange=null,h)throw h}}}var S=function(){return[null,0]};function M(t,e){void 0===e&&(e={});var l=e,o=l.getDisplayName,a=void 0===o?function(t){return"ConnectAdvanced("+t+")"}:o,s=l.methodName,c=void 0===s?"connectAdvanced":s,f=l.renderCountProp,m=void 0===f?void 0:f,M=l.shouldHandleStateChanges,E=void 0===M||M,C=l.storeKey,k=void 0===C?"store":C,T=(l.withRef,l.forwardRef),O=void 0!==T&&T,A=l.context,D=void 0===A?i:A,P=d(l,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),I=D;return function(e){var l=e.displayName||e.name||"Component",i=a(l),o=h({},P,{getDisplayName:a,methodName:c,renderCountProp:m,shouldHandleStateChanges:E,storeKey:k,displayName:i,wrappedComponentName:l,WrappedComponent:e}),s=P.pure;var f=s?n.useMemo:function(t){return t()};function M(l){var i=Object(n.useMemo)((function(){var t=l.reactReduxForwardedRef,e=d(l,["reactReduxForwardedRef"]);return[l.context,t,e]}),[l]),a=i[0],s=i[1],c=i[2],p=Object(n.useMemo)((function(){return a&&a.Consumer&&Object(g.isContextConsumer)(r.a.createElement(a.Consumer,null))?a:I}),[a,I]),m=Object(n.useContext)(p),M=Boolean(l.store)&&Boolean(l.store.getState)&&Boolean(l.store.dispatch);Boolean(m)&&Boolean(m.store);var C=M?l.store:m.store,k=Object(n.useMemo)((function(){return function(e){return t(e.dispatch,o)}(C)}),[C]),T=Object(n.useMemo)((function(){if(!E)return y;var t=new u(C,M?null:m.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]}),[C,M,m]),O=T[0],A=T[1],D=Object(n.useMemo)((function(){return M?m:h({},m,{subscription:O})}),[M,m,O]),P=Object(n.useReducer)(b,v,S),L=P[0][0],R=P[1];if(L&&L.error)throw L.error;var N=Object(n.useRef)(),j=Object(n.useRef)(c),B=Object(n.useRef)(),F=Object(n.useRef)(!1),z=f((function(){return B.current&&c===j.current?B.current:k(C.getState(),c)}),[C,L,c]);w(x,[j,N,F,c,z,B,A]),w(_,[E,C,O,k,j,N,F,B,A,R],[C,O,k]);var U=Object(n.useMemo)((function(){return r.a.createElement(e,h({},z,{ref:s}))}),[s,e,z]);return Object(n.useMemo)((function(){return E?r.a.createElement(p.Provider,{value:D},U):U}),[p,U,D])}var C=s?r.a.memo(M):M;if(C.WrappedComponent=e,C.displayName=i,O){var T=r.a.forwardRef((function(t,e){return r.a.createElement(C,h({},t,{reactReduxForwardedRef:e}))}));return T.displayName=i,T.WrappedComponent=e,p()(T,e)}return p()(C,e)}}function E(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function C(t,e){if(E(t,e))return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(var r=0;r=0;n--){var r=e[n](t);if(r)return r}return function(e,n){throw new Error("Invalid value of type "+typeof t+" for "+l+" argument when connecting component "+n.wrappedComponentName+".")}}function F(t,e){return t===e}function z(t){var e=void 0===t?{}:t,l=e.connectHOC,n=void 0===l?M:l,r=e.mapStateToPropsFactories,i=void 0===r?P:r,o=e.mapDispatchToPropsFactories,a=void 0===o?D:o,s=e.mergePropsFactories,u=void 0===s?L:s,c=e.selectorFactory,f=void 0===c?j:c;return function(t,e,l,r){void 0===r&&(r={});var o=r,s=o.pure,c=void 0===s||s,p=o.areStatesEqual,g=void 0===p?F:p,m=o.areOwnPropsEqual,v=void 0===m?C:m,y=o.areStatePropsEqual,b=void 0===y?C:y,w=o.areMergedPropsEqual,x=void 0===w?C:w,_=d(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),S=B(t,i,"mapStateToProps"),M=B(e,a,"mapDispatchToProps"),E=B(l,u,"mergeProps");return n(f,h({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:S,initMapDispatchToProps:M,initMergeProps:E,pure:c,areStatesEqual:g,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},_))}}var U=z();var H,Z=l(38);H=Z.unstable_batchedUpdates,o=H},function(t,e,l){var n=l(13),r=l(1023),i=l(207),o=l(130),a=l(86),s=l(100),u=l(480),c=l(321);e.Image=c;var h=l(288);e.Group=h;var d=l(289);e.Text=d;var f=l(1028);e.Circle=f;var p=l(1844);e.Sector=p;var g=l(1845);e.Ring=g;var m=l(1030);e.Polygon=m;var v=l(1032);e.Polyline=v;var y=l(655);e.Rect=y;var b=l(1033);e.Line=b;var w=l(1848);e.BezierCurve=w;var x=l(1849);e.Arc=x;var _=l(1850);e.CompoundPath=_;var S=l(657);e.LinearGradient=S;var M=l(1851);e.RadialGradient=M;var E=l(94);e.BoundingRect=E;var C=l(658);e.IncrementalDisplayable=C;var k=l(656),T=Math.max,O=Math.min,A={},D=1,P={},I={};function L(t,e){I[t]=e}function R(t,e,l,n){var i=r.createFromString(t,e);return l&&("center"===n&&(l=N(l,i.getBoundingRect())),B(i,l)),i}function N(t,e){var l,n=e.width/e.height,r=t.height*n;return l=r<=t.width?t.height:(r=t.width)/n,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-l/2,width:r,height:l}}var j=r.mergePath;function B(t,e){if(t.applyTransform){var l=t.getBoundingRect().calculateTransform(e);t.applyTransform(l)}}var F=k.subPixelOptimize;function z(t){return null!=t&&"none"!==t}var U=n.createHashMap(),H=0;function Z(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var l=t.__zr,n=t.useHoverLayer&&l&&"canvas"===l.painter.type;if(t.__highlighted=n?"layer":"plain",!(t.isGroup||!l&&t.useHoverLayer)){var r=t,i=t.style;n&&(i=(r=l.addHover(t)).style),it(i),n||function(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var l=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var n=t.style;for(var r in e)null!=e[r]&&(l[r]=n[r]);l.fill=n.fill,l.stroke=n.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}(r),i.extendFrom(e),V(i,e,"fill"),V(i,e,"stroke"),rt(i),n||(t.dirty(!1),t.z2+=1)}}}function V(t,e,l){!z(e[l])&&z(t[l])&&(t[l]=function(t){if("string"!==typeof t)return t;var e=U.get(t);return e||(e=i.lift(t,-.1),H<1e4&&(U.set(t,e),H++)),e}(t[l]))}function W(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var l=t.style,n=t.__cachedNormalStl;n&&(it(l),t.setStyle(n),rt(l));var r=t.__cachedNormalZ2;null!=r&&t.z2-r===1&&(t.z2=r)}}function G(t,e,l){var n,r="normal",i="normal";t.__highlighted&&(r="emphasis",n=!0),e(t,l),t.__highlighted&&(i="emphasis",n=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,l)})),n&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,i)}function Y(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,W(t),Z(t))}function q(t){!Q(this,t)&&!this.__highByOuter&&G(this,Z)}function X(t){!Q(this,t)&&!this.__highByOuter&&G(this,W)}function K(t){this.__highByOuter|=1<<(t||0),G(this,Z)}function $(t){!(this.__highByOuter&=~(1<<(t||0)))&&G(this,W)}function Q(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function J(t,e){var l=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!l||t.__highDownDispatcher){var n=l?"off":"on";t[n]("mouseover",q)[n]("mouseout",X),t[n]("emphasis",K)[n]("normal",$),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!l}}function tt(t,e,l,r,i){return et(t,e,r,i),l&&n.extend(t,l),t}function et(t,e,l,r){if((l=l||A).isRectText){var i;l.getTextPosition?i=l.getTextPosition(e,r):"outside"===(i=e.getShallow("position")||(r?null:"inside"))&&(i="top"),t.textPosition=i,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=n.retrieve2(e.getShallow("distance"),r?null:5)}var a,s=e.ecModel,u=s&&s.option.textStyle,c=function(t){var e;for(;t&&t!==t.ecModel;){var l=(t.option||A).rich;if(l)for(var n in e=e||{},l)l.hasOwnProperty(n)&&(e[n]=1);t=t.parentModel}return e}(e);if(c)for(var h in a={},c)if(c.hasOwnProperty(h)){var d=e.getModel(["rich",h]);lt(a[h]={},d,u,l,r)}return t.rich=a,lt(t,e,u,l,r,!0),l.forceRich&&!l.textStyle&&(l.textStyle={}),t}function lt(t,e,l,r,i,o){l=!i&&l||A,t.textFill=nt(e.getShallow("color"),r)||l.color,t.textStroke=nt(e.getShallow("textBorderColor"),r)||l.textBorderColor,t.textStrokeWidth=n.retrieve2(e.getShallow("textBorderWidth"),l.textBorderWidth),i||(o&&(t.insideRollbackOpt=r,rt(t)),null==t.textFill&&(t.textFill=r.autoColor)),t.fontStyle=e.getShallow("fontStyle")||l.fontStyle,t.fontWeight=e.getShallow("fontWeight")||l.fontWeight,t.fontSize=e.getShallow("fontSize")||l.fontSize,t.fontFamily=e.getShallow("fontFamily")||l.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&r.disableBox||(t.textBackgroundColor=nt(e.getShallow("backgroundColor"),r),t.textPadding=e.getShallow("padding"),t.textBorderColor=nt(e.getShallow("borderColor"),r),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||l.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||l.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||l.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||l.textShadowOffsetY}function nt(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function rt(t){var e,l=t.textPosition,n=t.insideRollbackOpt;if(n&&null==t.textFill){var r=n.autoColor,i=n.isRectText,o=n.useInsideStyle,a=!1!==o&&(!0===o||i&&l&&"string"===typeof l&&l.indexOf("inside")>=0),s=!a&&null!=r;(a||s)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),a&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),s&&(t.textFill=r)}t.insideRollback=e}function it(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function ot(t,e,l,n,r,i){if("function"===typeof r&&(i=r,r=null),n&&n.isAnimationEnabled()){var o=t?"Update":"",a=n.getShallow("animationDuration"+o),s=n.getShallow("animationEasing"+o),u=n.getShallow("animationDelay"+o);"function"===typeof u&&(u=u(r,n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null)),"function"===typeof a&&(a=a(r)),a>0?e.animateTo(l,a,u||0,s,i,!!i):(e.stopAnimation(),e.attr(l),i&&i())}else e.stopAnimation(),e.attr(l),i&&i()}function at(t,e,l,n,r){ot(!0,t,e,l,n,r)}function st(t,e,l){return e&&!n.isArrayLike(e)&&(e=u.getLocalTransform(e)),l&&(e=o.invert([],e)),a.applyTransform([],t,e)}function ut(t,e,l,n,r,i,o,a){var s,u=l-t,c=n-e,h=o-r,d=a-i,f=ct(h,d,u,c);if((s=f)<=1e-6&&s>=-1e-6)return!1;var p=t-r,g=e-i,m=ct(p,g,u,c)/f;if(m<0||m>1)return!1;var v=ct(p,g,h,d)/f;return!(v<0||v>1)}function ct(t,e,l,n){return t*n-l*e}L("circle",f),L("sector",p),L("ring",g),L("polygon",m),L("polyline",v),L("rect",y),L("line",b),L("bezierCurve",w),L("arc",x),e.Z2_EMPHASIS_LIFT=1,e.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},e.extendShape=function(t){return s.extend(t)},e.extendPath=function(t,e){return r.extendFromString(t,e)},e.registerShape=L,e.getShapeClass=function(t){if(I.hasOwnProperty(t))return I[t]},e.makePath=R,e.makeImage=function(t,e,l){var n=new c({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===l){var r={width:t.width,height:t.height};n.setStyle(N(e,r))}}});return n},e.mergePath=j,e.resizePath=B,e.subPixelOptimizeLine=function(t){return k.subPixelOptimizeLine(t.shape,t.shape,t.style),t},e.subPixelOptimizeRect=function(t){return k.subPixelOptimizeRect(t.shape,t.shape,t.style),t},e.subPixelOptimize=F,e.setElementHoverStyle=Y,e.setHoverStyle=function(t,e){J(t,!0),G(t,Y,e)},e.setAsHighDownDispatcher=J,e.isHighDownDispatcher=function(t){return!(!t||!t.__highDownDispatcher)},e.getHighlightDigit=function(t){var e=P[t];return null==e&&D<=32&&(e=P[t]=D++),e},e.setLabelStyle=function(t,e,l,r,i,o,a){var s,u=(i=i||A).labelFetcher,c=i.labelDataIndex,h=i.labelDimIndex,d=i.labelProp,f=l.getShallow("show"),p=r.getShallow("show");(f||p)&&(u&&(s=u.getFormattedLabel(c,"normal",null,h,d)),null==s&&(s=n.isFunction(i.defaultText)?i.defaultText(c,i):i.defaultText));var g=f?s:null,m=p?n.retrieve2(u?u.getFormattedLabel(c,"emphasis",null,h,d):null,s):null;null==g&&null==m||(tt(t,l,o,i),tt(e,r,a,i,!0)),t.text=g,e.text=m},e.modifyLabelStyle=function(t,e,l){var r=t.style;e&&(it(r),t.setStyle(e),rt(r)),r=t.__hoverStl,l&&r&&(it(r),n.extend(r,l),rt(r))},e.setTextStyle=tt,e.setText=function(t,e,l){var n,r={isRectText:!0};!1===l?n=!0:r.autoColor=l,et(t,e,r,n)},e.getFont=function(t,e){var l=e&&e.getModel("textStyle");return n.trim([t.fontStyle||l&&l.getShallow("fontStyle")||"",t.fontWeight||l&&l.getShallow("fontWeight")||"",(t.fontSize||l&&l.getShallow("fontSize")||12)+"px",t.fontFamily||l&&l.getShallow("fontFamily")||"sans-serif"].join(" "))},e.updateProps=at,e.initProps=function(t,e,l,n,r){ot(!1,t,e,l,n,r)},e.getTransform=function(t,e){for(var l=o.identity([]);t&&t!==e;)o.mul(l,t.getLocalTransform(),l),t=t.parent;return l},e.applyTransform=st,e.transformDirection=function(t,e,l){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return i=st(i,e,l),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"},e.groupTransition=function(t,e,l,r){if(t&&e){var i=function(t){var e={};return t.traverse((function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)})),e}(t);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=i[t.anid];if(e){var n=o(t);t.attr(o(e)),at(t,n,l,t.dataIndex)}}}))}function o(t){var e={position:a.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=n.extend({},t.shape)),e}},e.clipPointsByRect=function(t,e){return n.map(t,(function(t){var l=t[0];l=T(l,e.x),l=O(l,e.x+e.width);var n=t[1];return n=T(n,e.y),[l,n=O(n,e.y+e.height)]}))},e.clipRectByRect=function(t,e){var l=T(t.x,e.x),n=O(t.x+t.width,e.x+e.width),r=T(t.y,e.y),i=O(t.y+t.height,e.y+e.height);if(n>=l&&i>=r)return{x:l,y:r,width:n-l,height:i-r}},e.createIcon=function(t,e,l){var r=(e=n.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(l=l||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),n.defaults(r,l),new c(e)):R(t.replace("path://",""),e,l,"center")},e.linePolygonIntersect=function(t,e,l,n,r){for(var i=0,o=r[r.length-1];i0?Math.floor(t):Math.ceil(t)};function P(t,e,l){return t instanceof A?t:m(t)?new A(t[0],t[1]):void 0===t||null===t?t:"object"===typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,l)}function I(t,e){if(t)for(var l=e?[t,e]:t,n=0,r=l.length;n=this.min.x&&l.x<=this.max.x&&e.y>=this.min.y&&l.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,l=this.max,n=t.min,r=t.max,i=r.x>=e.x&&n.x<=l.x,o=r.y>=e.y&&n.y<=l.y;return i&&o},overlaps:function(t){t=R(t);var e=this.min,l=this.max,n=t.min,r=t.max,i=r.x>e.x&&n.xe.y&&n.y=n.lat&&l.lat<=r.lat&&e.lng>=n.lng&&l.lng<=r.lng},intersects:function(t){t=j(t);var e=this._southWest,l=this._northEast,n=t.getSouthWest(),r=t.getNorthEast(),i=r.lat>=e.lat&&n.lat<=l.lat,o=r.lng>=e.lng&&n.lng<=l.lng;return i&&o},overlaps:function(t){t=j(t);var e=this._southWest,l=this._northEast,n=t.getSouthWest(),r=t.getNorthEast(),i=r.lat>e.lat&&n.late.lng&&n.lng1,Mt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",s,e),window.removeEventListener("testPassiveEventSupport",s,e)}catch(l){}return t}(),Et=!!document.createElement("canvas").getContext,Ct=!(!document.createElementNS||!Y("svg").createSVGRect),kt=!Ct&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"===typeof e.adj}catch(l){return!1}}();function Tt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ot={ie:K,ielt9:$,edge:Q,webkit:J,android:tt,android23:et,androidStock:nt,opera:rt,chrome:it,gecko:ot,safari:at,phantom:st,opera12:ut,win:ct,ie3d:ht,webkit3d:dt,gecko3d:ft,any3d:pt,mobile:gt,mobileWebkit:mt,mobileWebkit3d:vt,msPointer:yt,pointer:bt,touch:wt,mobileOpera:xt,mobileGecko:_t,retina:St,passiveEvents:Mt,canvas:Et,svg:Ct,vml:kt},At=yt?"MSPointerDown":"pointerdown",Dt=yt?"MSPointerMove":"pointermove",Pt=yt?"MSPointerUp":"pointerup",It=yt?"MSPointerCancel":"pointercancel",Lt={},Rt=!1;function Nt(t,e,l,r){return"touchstart"===e?function(t,e,l){var r=n((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ie(t),zt(t,e)}));t["_leaflet_touchstart"+l]=r,t.addEventListener(At,r,!1),Rt||(document.addEventListener(At,jt,!0),document.addEventListener(Dt,Bt,!0),document.addEventListener(Pt,Ft,!0),document.addEventListener(It,Ft,!0),Rt=!0)}(t,l,r):"touchmove"===e?function(t,e,l){var n=function(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||zt(t,e)};t["_leaflet_touchmove"+l]=n,t.addEventListener(Dt,n,!1)}(t,l,r):"touchend"===e&&function(t,e,l){var n=function(t){zt(t,e)};t["_leaflet_touchend"+l]=n,t.addEventListener(Pt,n,!1),t.addEventListener(It,n,!1)}(t,l,r),this}function jt(t){Lt[t.pointerId]=t}function Bt(t){Lt[t.pointerId]&&(Lt[t.pointerId]=t)}function Ft(t){delete Lt[t.pointerId]}function zt(t,e){for(var l in t.touches=[],Lt)t.touches.push(Lt[l]);t.changedTouches=[t],e(t)}var Ut,Ht,Zt,Vt,Wt,Gt=yt?"MSPointerDown":bt?"pointerdown":"touchstart",Yt=yt?"MSPointerUp":bt?"pointerup":"touchend",qt="_leaflet_",Xt=he(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Kt=he(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),$t="webkitTransition"===Kt||"OTransition"===Kt?Kt+"End":"transitionend";function Qt(t){return"string"===typeof t?document.getElementById(t):t}function Jt(t,e){var l=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!l||"auto"===l)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);l=n?n[e]:null}return"auto"===l?null:l}function te(t,e,l){var n=document.createElement(t);return n.className=e||"",l&&l.appendChild(n),n}function ee(t){var e=t.parentNode;e&&e.removeChild(t)}function le(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ne(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function re(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ie(t,e){if(void 0!==t.classList)return t.classList.contains(e);var l=ue(t);return l.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(l)}function oe(t,e){if(void 0!==t.classList)for(var l=h(e),n=0,r=l.length;n1)return;var e=Date.now(),l=e-(n||e);r=t.touches?t.touches[0]:t,i=l>0&&l<=250,n=e}function a(t){if(i&&!r.cancelBubble){if(bt){if("mouse"===t.pointerType)return;var l,o,a={};for(o in r)l=r[o],a[o]=l&&l.bind?l.bind(r):l;r=a}r.type="dblclick",r.button=0,e(r),n=null}}t[qt+Gt+l]=o,t[qt+Yt+l]=a,t[qt+"dblclick"+l]=e,t.addEventListener(Gt,o,!!Mt&&{passive:!1}),t.addEventListener(Yt,a,!!Mt&&{passive:!1}),t.addEventListener("dblclick",e,!1)}(t,o,r):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(ke[e]||e,o,!!Mt&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(o=function(e){e=e||window.event,Ue(t,e)&&a(e)},t.addEventListener(ke[e],o,!1)):t.addEventListener(e,a,!1):"attachEvent"in t&&t.attachEvent("on"+e,o),t[Me]=t[Me]||{},t[Me][r]=o}function Oe(t,e,l,n){var r=e+i(l)+(n?"_"+i(n):""),o=t[Me]&&t[Me][r];if(!o)return this;bt&&0===e.indexOf("touch")?function(t,e,l){var n=t["_leaflet_"+e+l];"touchstart"===e?t.removeEventListener(At,n,!1):"touchmove"===e?t.removeEventListener(Dt,n,!1):"touchend"===e&&(t.removeEventListener(Pt,n,!1),t.removeEventListener(It,n,!1))}(t,e,r):wt&&"dblclick"===e&&!Ce()?function(t,e){var l=t[qt+Gt+e],n=t[qt+Yt+e],r=t[qt+"dblclick"+e];t.removeEventListener(Gt,l,!!Mt&&{passive:!1}),t.removeEventListener(Yt,n,!!Mt&&{passive:!1}),t.removeEventListener("dblclick",r,!1)}(t,r):"removeEventListener"in t?t.removeEventListener(ke[e]||e,o,!1):"detachEvent"in t&&t.detachEvent("on"+e,o),t[Me][r]=null}function Ae(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,ze(t),this}function De(t){return Te(t,"wheel",Ae),this}function Pe(t){return Se(t,"mousedown touchstart dblclick",Ae),Te(t,"click",Fe),this}function Ie(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Le(t){return Ie(t),Ae(t),this}function Re(t,e){if(!e)return new A(t.clientX,t.clientY);var l=xe(e),n=l.boundingClientRect;return new A((t.clientX-n.left)/l.x-e.clientLeft,(t.clientY-n.top)/l.y-e.clientTop)}var Ne=ct&&it?2*window.devicePixelRatio:ot?window.devicePixelRatio:1;function je(t){return Q?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ne:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var Be={};function Fe(t){Be[t.type]=!0}function ze(t){var e=Be[t.type];return Be[t.type]=!1,e}function Ue(t,e){var l=e.relatedTarget;if(!l)return!0;try{for(;l&&l!==t;)l=l.parentNode}catch(n){return!1}return l!==t}var He={on:Se,off:Ee,stopPropagation:Ae,disableScrollPropagation:De,disableClickPropagation:Pe,preventDefault:Ie,stop:Le,getMousePosition:Re,getWheelDelta:je,fakeStop:Fe,skipped:ze,isExternalTarget:Ue,addListener:Se,removeListener:Ee},Ze=O.extend({run:function(t,e,l,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=l||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=pe(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=M(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,l=1e3*this._duration;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var l=this.getCenter(),n=this._limitCenter(l,this._zoom,j(t));return l.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var l=P((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=P(e.paddingBottomRight||e.padding||[0,0]),r=this.getCenter(),i=this.project(r),o=this.project(t),a=this.getPixelBounds(),s=a.getSize().divideBy(2),u=R([a.min.add(l),a.max.subtract(n)]);if(!u.contains(o)){this._enforcingBounds=!0;var c=i.subtract(o),h=P(o.x+c.x,o.y+c.y);(o.xu.max.x)&&(h.x=i.x-c.x,c.x>0?h.x+=s.x-l.x:h.x-=s.x-n.x),(o.yu.max.y)&&(h.y=i.y-c.y,c.y>0?h.y+=s.y-l.y:h.y-=s.y-n.y),this.panTo(this.unproject(h),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var l=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),i=l.divideBy(2).round(),o=r.divideBy(2).round(),a=i.subtract(o);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:l,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var l=n(this._handleGeolocationResponse,this),r=n(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(l,r,t):navigator.geolocation.getCurrentPosition(l,r,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,l=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+l+"."})},_handleGeolocationResponse:function(t){var e=new B(t.coords.latitude,t.coords.longitude),l=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var r=this.getBoundsZoom(l);this.setView(e,n.maxZoom?Math.min(r,n.maxZoom):r)}var i={latlng:e,bounds:l,timestamp:t.timestamp};for(var o in t.coords)"number"===typeof t.coords[o]&&(i[o]=t.coords[o]);this.fire("locationfound",i)},addHandler:function(t,e){if(!e)return this;var l=this[t]=new e(this);return this._handlers.push(l),this.options[t]&&l.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ee(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ee(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var l=te("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=l),l},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new N(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,l){t=j(t),l=P(l||[0,0]);var n=this.getZoom()||0,r=this.getMinZoom(),i=this.getMaxZoom(),o=t.getNorthWest(),a=t.getSouthEast(),s=this.getSize().subtract(l),u=R(this.project(a,n),this.project(o,n)).getSize(),c=pt?this.options.zoomSnap:1,h=s.x/u.x,d=s.y/u.y,f=e?Math.max(h,d):Math.min(h,d);return n=this.getScaleZoom(f,n),c&&(n=Math.round(n/(c/100))*(c/100),n=e?Math.ceil(n/c)*c:Math.floor(n/c)*c),Math.max(r,Math.min(i,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var l=this._getTopLeftPoint(t,e);return new I(l,l.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"===typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var l=this.options.crs;return e=void 0===e?this._zoom:e,l.scale(t)/l.scale(e)},getScaleZoom:function(t,e){var l=this.options.crs;e=void 0===e?this._zoom:e;var n=l.zoom(t*l.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(F(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(P(t),e)},layerPointToLatLng:function(t){var e=P(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(F(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(F(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance(F(t),F(e))},containerPointToLayerPoint:function(t){return P(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return P(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(P(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(F(t)))},mouseEventToContainerPoint:function(t){return Re(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=Qt(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Se(e,"scroll",this._onScroll,this),this._containerId=i(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&pt,oe(t,"leaflet-container"+(wt?" leaflet-touch":"")+(St?" leaflet-retina":"")+($?" leaflet-oldie":"")+(at?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=Jt(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),fe(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(oe(t.markerPane,"leaflet-zoom-hide"),oe(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){fe(this._mapPane,new A(0,0));var l=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,!1)._move(t,e)._moveEnd(n),this.fire("viewreset"),l&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,l){void 0===e&&(e=this._zoom);var n=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||l&&l.pinch)&&this.fire("zoom",l),this.fire("move",l)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){fe(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[i(this._container)]=this;var e=t?Ee:Se;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),pt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=M((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var l,n=[],r="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,a=!1;o;){if((l=this._targets[i(o)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(l)){a=!0;break}if(l&&l.listens(e,!0)){if(r&&!Ue(o,t))break;if(n.push(l),r)break}if(o===this._container)break;o=o.parentNode}return n.length||a||r||!Ue(o,t)||(n=[this]),n},_handleDOMEvent:function(t){if(this._loaded&&!ze(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||ye(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,l,n){if("click"===t.type){var r=e({},t);r.type="preclick",this._fireDOMEvent(r,r.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,l))).length){var i=n[0];"contextmenu"===l&&i.listens(l,!0)&&Ie(t);var o={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var a=i.getLatLng&&(!i._radius||i._radius<=10);o.containerPoint=a?this.latLngToContainerPoint(i.getLatLng()):this.mouseEventToContainerPoint(t),o.layerPoint=this.containerPointToLayerPoint(o.containerPoint),o.latlng=a?i.getLatLng():this.layerPointToLatLng(o.layerPoint)}for(var s=0;s0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),l=this.getMaxZoom(),n=pt?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(l,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ae(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var l=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(l))&&(this.panBy(l,e),!0)},_createAnimProxy:function(){var t=this._proxy=te("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=Xt,l=this._proxy.style[e];de(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),l===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ee(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();de(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,l){if(this._animatingZoom)return!0;if(l=l||{},!this._zoomAnimated||!1===l.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==l.animate&&!this.getSize().contains(r))&&(M((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),!0)},_animateZoom:function(t,e,l,r){this._mapPane&&(l&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,oe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:r}),setTimeout(n(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ae(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),M((function(){this._moveEnd(!0)}),this))}}),We=k.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),l=this.getPosition(),n=t._controlCorners[l];return oe(e,"leaflet-control"),-1!==l.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ee(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ge=function(t){return new We(t)};Ve.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",l=this._controlContainer=te("div",e+"control-container",this._container);function n(n,r){var i=e+n+" "+e+r;t[n+r]=te("div",i,l)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ee(this._controlCorners[t]);ee(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ye=We.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,l,n){return l1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(i(t.target)),l=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;l&&this._map.fire(l,e)},_createRadioElement:function(t,e){var l='",n=document.createElement("div");return n.innerHTML=l,n.firstChild},_addItem:function(t){var e,l=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+i(this),n),this._layerControlInputs.push(e),e.layerId=i(t.layer),Se(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var o=document.createElement("div");return l.appendChild(o),o.appendChild(e),o.appendChild(r),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(l),this._checkDisabledLayers(),l},_onInputClick:function(){var t,e,l=this._layerControlInputs,n=[],r=[];this._handlingClick=!0;for(var i=l.length-1;i>=0;i--)t=l[i],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||r.push(e);for(i=0;i=0;r--)t=l[r],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&ne.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),qe=We.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",l=te("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",l,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",l,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),l},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,l,n,r){var i=te("a",l,n);return i.innerHTML=t,i.href="#",i.title=e,i.setAttribute("role","button"),i.setAttribute("aria-label",e),Pe(i),Se(i,"click",Le),Se(i,"click",r,this),Se(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ae(this._zoomInButton,e),ae(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&oe(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&oe(this._zoomInButton,e)}});Ve.mergeOptions({zoomControl:!0}),Ve.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new qe,this.addControl(this.zoomControl))}));var Xe=We.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=te("div","leaflet-control-scale"),l=this.options;return this._addScales(l,"leaflet-control-scale-line",e),t.on(l.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,l){t.metric&&(this._mScale=te("div",e,l)),t.imperial&&(this._iScale=te("div",e,l))},_update:function(){var t=this._map,e=t.getSize().y/2,l=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(l)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),l=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,l,e/t)},_updateImperial:function(t){var e,l,n,r=3.2808399*t;r>5280?(e=r/5280,l=this._getRoundNum(e),this._updateScale(this._iScale,l+" mi",l/e)):(n=this._getRoundNum(r),this._updateScale(this._iScale,n+" ft",n/r))},_updateScale:function(t,e,l){t.style.width=Math.round(this.options.maxWidth*l)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),l=t/e;return e*(l=l>=10?10:l>=5?5:l>=3?3:l>=2?2:1)}}),Ke=We.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=te("div","leaflet-control-attribution"),Pe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var l=[];this.options.prefix&&l.push(this.options.prefix),t.length&&l.push(t.join(", ")),this._container.innerHTML=l.join(" | ")}}});Ve.mergeOptions({attributionControl:!0}),Ve.addInitHook((function(){this.options.attributionControl&&(new Ke).addTo(this)})),We.Layers=Ye,We.Zoom=qe,We.Scale=Xe,We.Attribution=Ke,Ge.layers=function(t,e,l){return new Ye(t,e,l)},Ge.zoom=function(t){return new qe(t)},Ge.scale=function(t){return new Xe(t)},Ge.attribution=function(t){return new Ke(t)};var $e=k.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});$e.addTo=function(t,e){return t.addHandler(e,this),this};var Qe,Je={Events:T},tl=wt?"touchstart mousedown":"mousedown",el={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},ll={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},nl=O.extend({options:{clickTolerance:3},initialize:function(t,e,l,n){d(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=l},enable:function(){this._enabled||(Se(this._dragStartTarget,tl,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(nl._dragging===this&&this.finishDrag(),Ee(this._dragStartTarget,tl,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!ie(this._element,"leaflet-zoom-anim")&&!(nl._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches)&&(nl._dragging=this,this._preventOutline&&ye(this._element),me(),Ut(),!this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,l=we(this._element);this._startPoint=new A(e.clientX,e.clientY),this._parentScale=xe(l),Se(document,ll[t.type],this._onMove,this),Se(document,el[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,l=new A(e.clientX,e.clientY)._subtract(this._startPoint);(l.x||l.y)&&(Math.abs(l.x)+Math.abs(l.y)u&&(o=a,u=s);u>n&&(l[o]=1,t(e,l,n,r,o),t(e,l,n,o,i))}(t,n,e,0,l-1);var r,i=[];for(r=0;re&&(l.push(t[n]),r=n);return re.max.x&&(l|=2),t.ye.max.y&&(l|=8),l}function ul(t,e){var l=e.x-t.x,n=e.y-t.y;return l*l+n*n}function cl(t,e,l,n){var r,i=e.x,o=e.y,a=l.x-i,s=l.y-o,u=a*a+s*s;return u>0&&((r=((t.x-i)*a+(t.y-o)*s)/u)>1?(i=l.x,o=l.y):r>0&&(i+=a*r,o+=s*r)),a=t.x-i,s=t.y-o,n?a*a+s*s:new A(i,o)}function hl(t){return!m(t[0])||"object"!==typeof t[0][0]&&"undefined"!==typeof t[0][0]}function dl(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),hl(t)}var fl={simplify:rl,pointToSegmentDistance:il,closestPointOnSegment:function(t,e,l){return cl(t,e,l)},clipSegment:ol,_getEdgeIntersection:al,_getBitCode:sl,_sqClosestPointOnSegment:cl,isFlat:hl,_flat:dl};function pl(t,e,l){var n,r,i,o,a,s,u,c,h,d=[1,4,2,8];for(r=0,u=t.length;r1e-7;s++)e=i*Math.sin(a),e=Math.pow((1-e)/(1+e),i/2),a+=u=Math.PI/2-2*Math.atan(o*e)-a;return new B(a*l,t.x*l/n)}},yl={LonLat:ml,Mercator:vl,SphericalMercator:H},bl=e({},U,{code:"EPSG:3395",projection:vl,transformation:function(){var t=.5/(Math.PI*vl.R);return V(t,.5,-t,.5)}()}),wl=e({},U,{code:"EPSG:4326",projection:ml,transformation:V(1/180,1,-1/180,.5)}),xl=e({},z,{projection:ml,transformation:V(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var l=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(l*l+n*n)},infinite:!0});z.Earth=U,z.EPSG3395=bl,z.EPSG3857=W,z.EPSG900913=G,z.EPSG4326=wl,z.Simple=xl;var _l=O.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[i(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[i(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var l=this.getEvents();e.on(l,this),this.once("remove",(function(){e.off(l,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ve.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=i(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=i(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&i(t)in this._layers},eachLayer:function(t,e){for(var l in this._layers)t.call(e,this._layers[l]);return this},_addLayers:function(t){for(var e=0,l=(t=t?m(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()e)return o=(n-e)/l,this._map.layerPointToLatLng([i.x-o*(i.x-r.x),i.y-o*(i.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=F(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new N,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return hl(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],l=hl(t),n=0,r=t.length;n=2&&e[0]instanceof B&&e[0].equals(e[l-1])&&e.pop(),e},_setLatLngs:function(t){Pl.prototype._setLatLngs.call(this,t),hl(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return hl(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,l=new A(e,e);if(t=new I(t.min.subtract(l),t.max.add(l)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,r=0,i=this._rings.length;rt.y!==n.y>t.y&&t.x<(n.x-l.x)*(t.y-l.y)/(n.y-l.y)+l.x&&(u=!u);return u||Pl.prototype._containsPoint.call(this,t,!0)}}),Ll=Ml.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,l,n,r=m(t)?t:t.features;if(r){for(e=0,l=r.length;e0?r:[e.src]}else{m(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted;for(var o=0;or?(e.height=r+"px",oe(t,"leaflet-popup-scrolled")):ae(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),l=this._getAnchor();fe(this._container,e.add(l))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(Jt(this._container,"marginBottom"),10)||0,l=this._container.offsetHeight+e,n=this._containerWidth,r=new A(this._containerLeft,-l-this._containerBottom);r._add(pe(this._container));var i=t.layerPointToContainerPoint(r),o=P(this.options.autoPanPadding),a=P(this.options.autoPanPaddingTopLeft||o),s=P(this.options.autoPanPaddingBottomRight||o),u=t.getSize(),c=0,h=0;i.x+n+s.x>u.x&&(c=i.x+n-u.x+s.x),i.x-c-a.x<0&&(c=i.x-a.x),i.y+l+s.y>u.y&&(h=i.y+l-u.y+s.y),i.y-h-a.y<0&&(h=i.y-a.y),(c||h)&&t.fire("autopanstart").panBy([c,h])}},_onCloseButtonClick:function(t){this._close(),Le(t)},_getAnchor:function(){return P(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ve.mergeOptions({closePopupOnClick:!0}),Ve.include({openPopup:function(t,e,l){return t instanceof Kl||(t=new Kl(l).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),_l.include({bindPopup:function(t,e){return t instanceof Kl?(d(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new Kl(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Le(t),e instanceof Ol?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var $l=Xl.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Xl.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Xl.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Xl.prototype.getEvents.call(this);return wt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=te("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,l,n=this._map,r=this._container,i=n.latLngToContainerPoint(n.getCenter()),o=n.layerPointToContainerPoint(t),a=this.options.direction,s=r.offsetWidth,u=r.offsetHeight,c=P(this.options.offset),h=this._getAnchor();"top"===a?(e=s/2,l=u):"bottom"===a?(e=s/2,l=0):"center"===a?(e=s/2,l=u/2):"right"===a?(e=0,l=u/2):"left"===a?(e=s,l=u/2):o.xthis.options.maxZoom||ln&&this._retainParent(r,i,o,n))},_retainChildren:function(t,e,l,n){for(var r=2*t;r<2*t+2;r++)for(var i=2*e;i<2*e+2;i++){var o=new A(r,i);o.z=l+1;var a=this._tileCoordsToKey(o),s=this._tiles[a];s&&s.active?s.retain=!0:(s&&s.loaded&&(s.retain=!0),l+1this.options.maxZoom||void 0!==this.options.minZoom&&r1)this._setView(t,l);else{for(var h=r.min.y;h<=r.max.y;h++)for(var d=r.min.x;d<=r.max.x;d++){var f=new A(d,h);if(f.z=this._tileZoom,this._isValidTile(f)){var p=this._tiles[this._tileCoordsToKey(f)];p?p.current=!0:o.push(f)}}if(o.sort((function(t,e){return t.distanceTo(i)-e.distanceTo(i)})),0!==o.length){this._loading||(this._loading=!0,this.fire("loading"));var g=document.createDocumentFragment();for(d=0;dl.max.x)||!e.wrapLat&&(t.yl.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return j(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,l=this.getTileSize(),n=t.scaleBy(l),r=n.add(l);return[e.unproject(n,t.z),e.unproject(r,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),l=new N(e[0],e[1]);return this.options.noWrap||(l=this._map.wrapLatLngBounds(l)),l},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),l=new A(+e[0],+e[1]);return l.z=+e[2],l},_removeTile:function(t){var e=this._tiles[t];e&&(ee(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){oe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=s,t.onmousemove=s,$&&this.options.opacity<1&&ce(t,this.options.opacity),tt&&!et&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var l=this._getTilePos(t),r=this._tileCoordsToKey(t),i=this.createTile(this._wrapCoords(t),n(this._tileReady,this,t));this._initTile(i),this.createTile.length<2&&M(n(this._tileReady,this,t,null,i)),fe(i,l),this._tiles[r]={el:i,coords:t,current:!0},e.appendChild(i),this.fire("tileloadstart",{tile:i,coords:t})},_tileReady:function(t,e,l){e&&this.fire("tileerror",{error:e,tile:l,coords:t});var r=this._tileCoordsToKey(t);(l=this._tiles[r])&&(l.loaded=+new Date,this._map._fadeAnimated?(ce(l.el,0),E(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this)):(l.active=!0,this._pruneTiles()),e||(oe(l.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:l.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),$||!this._map._fadeAnimated?M(this._pruneTiles,this):setTimeout(n(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?a(t.x,this._wrapX):t.x,this._wrapY?a(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new I(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),tn=Jl.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=d(this,e)).detectRetina&&St&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"===typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),tt||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var l=document.createElement("img");return Se(l,"load",n(this._tileOnLoad,this,e,l)),Se(l,"error",n(this._tileOnError,this,e,l)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(l.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),l.alt="",l.setAttribute("role","presentation"),l.src=this.getTileUrl(t),l},getTileUrl:function(t){var l={r:St?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(l.y=n),l["-y"]=n}return g(this._url,e(l,this.options))},_tileOnLoad:function(t,e){$?setTimeout(n(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,l){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(l,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=s,e.onerror=s,e.complete||(e.src=y,ee(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return nt||e.el.setAttribute("src",y),Jl.prototype._removeTile.call(this,t)},_tileReady:function(t,e,l){if(this._map&&(!l||l.getAttribute("src")!==y))return Jl.prototype._tileReady.call(this,t,e,l)}});function en(t,e){return new tn(t,e)}var ln=tn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,l){this._url=t;var n=e({},this.defaultWmsParams);for(var r in l)r in this.options||(n[r]=l[r]);var i=(l=d(this,l)).detectRetina&&St?2:1,o=this.getTileSize();n.width=o.x*i,n.height=o.y*i,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,tn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),l=this._crs,n=R(l.project(e[0]),l.project(e[1])),r=n.min,i=n.max,o=(this._wmsVersion>=1.3&&this._crs===wl?[r.y,r.x,i.y,i.x]:[r.x,r.y,i.x,i.y]).join(","),a=tn.prototype.getTileUrl.call(this,t);return a+f(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,l){return e(this.wmsParams,t),l||this.redraw(),this}});tn.WMS=ln,en.wms=function(t,e){return new ln(t,e)};var nn=_l.extend({options:{padding:.1,tolerance:0},initialize:function(t){d(this,t),i(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&oe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var l=this._map.getZoomScale(e,this._zoom),n=pe(this._container),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,e),o=this._map.project(t,e).subtract(i),a=r.multiplyBy(-l).add(n).add(r).subtract(o);pt?de(this._container,a,l):fe(this._container,a)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),l=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new I(l,l.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),rn=nn.extend({getEvents:function(){var t=nn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){nn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Se(t,"mousemove",this._onMouseMove,this),Se(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Se(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,ee(this._container),Ee(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){nn.prototype._update.call(this);var t=this._bounds,e=this._container,l=t.getSize(),n=St?2:1;fe(e,t.min),e.width=n*l.x,e.height=n*l.y,e.style.width=l.x+"px",e.style.height=l.y+"px",St&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){nn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[i(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,l=e.next,n=e.prev;l?l.prev=n:this._drawLast=n,n?n.next=l:this._drawFirst=l,delete t._order,delete this._layers[i(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"===typeof t.options.dashArray){var e,l,n=t.options.dashArray.split(/[, ]+/),r=[];for(l=0;l')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),sn={_initContainer:function(){this._container=te("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(nn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=an("shape");oe(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=an("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[i(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ee(e),t.removeInteractiveTarget(e),delete this._layers[i(t)]},_updateStyle:function(t){var e=t._stroke,l=t._fill,n=t.options,r=t._container;r.stroked=!!n.stroke,r.filled=!!n.fill,n.stroke?(e||(e=t._stroke=an("stroke")),r.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=m(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(r.removeChild(e),t._stroke=null),n.fill?(l||(l=t._fill=an("fill")),r.appendChild(l),l.color=n.fillColor||n.color,l.opacity=n.fillOpacity):l&&(r.removeChild(l),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),l=Math.round(t._radius),n=Math.round(t._radiusY||l);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+l+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ne(t._container)},_bringToBack:function(t){re(t._container)}},un=kt?an:Y,cn=nn.extend({getEvents:function(){var t=nn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=un("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=un("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ee(this._container),Ee(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){nn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),l=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,l.setAttribute("width",e.x),l.setAttribute("height",e.y)),fe(l,t.min),l.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=un("path");t.options.className&&oe(e,t.options.className),t.options.interactive&&oe(e,"leaflet-interactive"),this._updateStyle(t),this._layers[i(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ee(t._path),t.removeInteractiveTarget(t._path),delete this._layers[i(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,l=t.options;e&&(l.stroke?(e.setAttribute("stroke",l.color),e.setAttribute("stroke-opacity",l.opacity),e.setAttribute("stroke-width",l.weight),e.setAttribute("stroke-linecap",l.lineCap),e.setAttribute("stroke-linejoin",l.lineJoin),l.dashArray?e.setAttribute("stroke-dasharray",l.dashArray):e.removeAttribute("stroke-dasharray"),l.dashOffset?e.setAttribute("stroke-dashoffset",l.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),l.fill?(e.setAttribute("fill",l.fillColor||l.color),e.setAttribute("fill-opacity",l.fillOpacity),e.setAttribute("fill-rule",l.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,q(t._parts,e))},_updateCircle:function(t){var e=t._point,l=Math.max(Math.round(t._radius),1),n="a"+l+","+(Math.max(Math.round(t._radiusY),1)||l)+" 0 1,0 ",r=t._empty()?"M0 0":"M"+(e.x-l)+","+e.y+n+2*l+",0 "+n+2*-l+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ne(t._path)},_bringToBack:function(t){re(t._path)}});function hn(t){return Ct||kt?new cn(t):null}kt&&cn.include(sn),Ve.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&on(t)||hn(t)}});var dn=Il.extend({initialize:function(t,e){Il.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=j(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});cn.create=un,cn.pointsToPath=q,Ll.geometryToLayer=Rl,Ll.coordsToLatLng=jl,Ll.coordsToLatLngs=Bl,Ll.latLngToCoords=Fl,Ll.latLngsToCoords=zl,Ll.getFeature=Ul,Ll.asFeature=Hl,Ve.mergeOptions({boxZoom:!0});var fn=$e.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Se(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ee(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ee(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Ut(),me(),this._startPoint=this._map.mouseEventToContainerPoint(t),Se(document,{contextmenu:Le,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=te("div","leaflet-zoom-box",this._container),oe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new I(this._point,this._startPoint),l=e.getSize();fe(this._box,e.min),this._box.style.width=l.x+"px",this._box.style.height=l.y+"px"},_finish:function(){this._moved&&(ee(this._box),ae(this._container,"leaflet-crosshair")),Ht(),ve(),Ee(document,{contextmenu:Le,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var e=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Ve.addInitHook("addHandler","boxZoom",fn),Ve.mergeOptions({doubleClickZoom:!0});var pn=$e.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,l=e.getZoom(),n=e.options.zoomDelta,r=t.originalEvent.shiftKey?l-n:l+n;"center"===e.options.doubleClickZoom?e.setZoom(r):e.setZoomAround(t.containerPoint,r)}});Ve.addInitHook("addHandler","doubleClickZoom",pn),Ve.mergeOptions({dragging:!0,inertia:!et,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var gn=$e.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new nl(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}oe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ae(this._map._container,"leaflet-grab"),ae(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=j(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,l=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(l),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),l=this._initialWorldOffset,n=this._draggable._newPos.x,r=(n-e+l)%t+e-l,i=(n+e+l)%t-e-l,o=Math.abs(r+l)0?i:-i))-e;this._delta=0,this._startTime=null,o&&("center"===t.options.scrollWheelZoom?t.setZoom(e+o):t.setZoomAround(this._lastMousePos,e+o))}});Ve.addInitHook("addHandler","scrollWheelZoom",vn),Ve.mergeOptions({tap:!0,tapTolerance:15});var yn=$e.extend({addHooks:function(){Se(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ee(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ie(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],l=e.target;this._startPos=this._newPos=new A(e.clientX,e.clientY),l.tagName&&"a"===l.tagName.toLowerCase()&&oe(l,"leaflet-active"),this._holdTimeout=setTimeout(n((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),Se(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Ee(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],l=e.target;l&&l.tagName&&"a"===l.tagName.toLowerCase()&&ae(l,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new A(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var l=document.createEvent("MouseEvents");l._simulated=!0,e.target._simulatedClick=!0,l.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(l)}});!wt||bt&&!at||Ve.addInitHook("addHandler","tap",yn),Ve.mergeOptions({touchZoom:wt&&!et,bounceAtZoomLimits:!0});var bn=$e.extend({addHooks:function(){oe(this._map._container,"leaflet-touch-zoom"),Se(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ae(this._map._container,"leaflet-touch-zoom"),Ee(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var l=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(l.add(n)._divideBy(2))),this._startDist=l.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Se(document,"touchmove",this._onTouchMove,this),Se(document,"touchend",this._onTouchEnd,this),Ie(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,l=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),i=l.distanceTo(r)/this._startDist;if(this._zoom=e.getScaleZoom(i,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&i>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var o=l._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===o.x&&0===o.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var a=n(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=M(a,this,!0),Ie(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),Ee(document,"touchmove",this._onTouchMove,this),Ee(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ve.addInitHook("addHandler","touchZoom",bn),Ve.BoxZoom=fn,Ve.DoubleClickZoom=pn,Ve.Drag=gn,Ve.Keyboard=mn,Ve.ScrollWheelZoom=vn,Ve.Tap=yn,Ve.TouchZoom=bn,t.version="1.7.1",t.Control=We,t.control=Ge,t.Browser=Ot,t.Evented=O,t.Mixin=Je,t.Util=C,t.Class=k,t.Handler=$e,t.extend=e,t.bind=n,t.stamp=i,t.setOptions=d,t.DomEvent=He,t.DomUtil=_e,t.PosAnimation=Ze,t.Draggable=nl,t.LineUtil=fl,t.PolyUtil=gl,t.Point=A,t.point=P,t.Bounds=I,t.bounds=R,t.Transformation=Z,t.transformation=V,t.Projection=yl,t.LatLng=B,t.latLng=F,t.LatLngBounds=N,t.latLngBounds=j,t.CRS=z,t.GeoJSON=Ll,t.geoJSON=Vl,t.geoJson=Wl,t.Layer=_l,t.LayerGroup=Sl,t.layerGroup=function(t,e){return new Sl(t,e)},t.FeatureGroup=Ml,t.featureGroup=function(t,e){return new Ml(t,e)},t.ImageOverlay=Gl,t.imageOverlay=function(t,e,l){return new Gl(t,e,l)},t.VideoOverlay=Yl,t.videoOverlay=function(t,e,l){return new Yl(t,e,l)},t.SVGOverlay=ql,t.svgOverlay=function(t,e,l){return new ql(t,e,l)},t.DivOverlay=Xl,t.Popup=Kl,t.popup=function(t,e){return new Kl(t,e)},t.Tooltip=$l,t.tooltip=function(t,e){return new $l(t,e)},t.Icon=El,t.icon=function(t){return new El(t)},t.DivIcon=Ql,t.divIcon=function(t){return new Ql(t)},t.Marker=Tl,t.marker=function(t,e){return new Tl(t,e)},t.TileLayer=tn,t.tileLayer=en,t.GridLayer=Jl,t.gridLayer=function(t){return new Jl(t)},t.SVG=cn,t.svg=hn,t.Renderer=nn,t.Canvas=rn,t.canvas=on,t.Path=Ol,t.CircleMarker=Al,t.circleMarker=function(t,e){return new Al(t,e)},t.Circle=Dl,t.circle=function(t,e,l){return new Dl(t,e,l)},t.Polyline=Pl,t.polyline=function(t,e){return new Pl(t,e)},t.Polygon=Il,t.polygon=function(t,e){return new Il(t,e)},t.Rectangle=dn,t.rectangle=function(t,e){return new dn(t,e)},t.Map=Ve,t.map=function(t,e){return new Ve(t,e)};var wn=window.L;t.noConflict=function(){return window.L=wn,this},window.L=t}(e)},function(t,e,l){"use strict";function n(t,e,l,n,r,i,o){try{var a=t[i](o),s=a.value}catch(u){return void l(u)}a.done?e(s):Promise.resolve(s).then(n,r)}function r(t){return function(){var e=this,l=arguments;return new Promise((function(r,i){var o=t.apply(e,l);function a(t){n(o,r,i,a,s,"next",t)}function s(t){n(o,r,i,a,s,"throw",t)}a(void 0)}))}}l.d(e,"a",(function(){return r}))},function(t,e,l){"use strict";l.d(e,"a",(function(){return d})),l.d(e,"b",(function(){return M})),l.d(e,"c",(function(){return w})),l.d(e,"d",(function(){return x}));var n=l(31),r=l(0),i=l(409);l(299);function o(t,e,l){var n="";return l.split(" ").forEach((function(l){void 0!==t[l]?e.push(t[l]):n+=l+" "})),n}var a=function(t,e,l){var n=t.key+"-"+e.name;if(!1===l&&void 0===t.registered[n]&&(t.registered[n]=e.styles),void 0===t.inserted[e.name]){var r=e;do{t.insert("."+n,r,t.sheet,!0);r=r.next}while(void 0!==r)}},s=l(271),u=Object.prototype.hasOwnProperty,c=Object(r.createContext)("undefined"!==typeof HTMLElement?Object(i.a)():null),h=Object(r.createContext)({}),d=c.Provider,f=function(t){var e=function(e,l){return Object(r.createElement)(c.Consumer,null,(function(n){return t(e,n,l)}))};return Object(r.forwardRef)(e)},p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g=function(t,e){var l={};for(var n in e)u.call(e,n)&&(l[n]=e[n]);return l[p]=t,l},m=function(t,e,l,n){var i=null===l?e.css:e.css(l);"string"===typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var c=e[p],h=[i],d="";"string"===typeof e.className?d=o(t.registered,h,e.className):null!=e.className&&(d=e.className+" ");var f=Object(s.a)(h);a(t,f,"string"===typeof c);d+=t.key+"-"+f.name;var g={};for(var m in e)u.call(e,m)&&"css"!==m&&m!==p&&(g[m]=e[m]);return g.ref=n,g.className=d,Object(r.createElement)(c,g)},v=f((function(t,e,l){return"function"===typeof t.css?Object(r.createElement)(h.Consumer,null,(function(n){return m(e,t,n,l)})):m(e,t,null,l)}));var y=l(539),b=l(211),w=function(t,e){var l=arguments;if(null==e||!u.call(e,"css"))return r.createElement.apply(void 0,l);var n=l.length,i=new Array(n);i[0]=v,i[1]=g(t,e);for(var o=2;o=10&&e++,e}e.linearMap=function(t,e,l,n){var r=e[1]-e[0],i=l[1]-l[0];if(0===r)return 0===i?l[0]:(l[0]+l[1])/2;if(n)if(r>0){if(t<=e[0])return l[0];if(t>=e[1])return l[1]}else{if(t>=e[0])return l[0];if(t<=e[1])return l[1]}else{if(t===e[0])return l[0];if(t===e[1])return l[1]}return(t-e[0])/r*i+l[0]},e.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"===typeof t?(l=t,l.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var l},e.round=function(t,e,l){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),l?t:+t},e.asc=function(t){return t.sort((function(t,e){return t-e})),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,l=0;Math.round(t*e)/e!==t;)e*=10,l++;return l},e.getPrecisionSafe=function(t){var e=t.toString(),l=e.indexOf("e");if(l>0){var n=+e.slice(l+1);return n<0?-n:0}var r=e.indexOf(".");return r<0?0:e.length-1-r},e.getPixelPrecision=function(t,e){var l=Math.log,n=Math.LN10,r=Math.floor(l(t[1]-t[0])/n),i=Math.round(l(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-r+i,0),20);return isFinite(o)?o:20},e.getPercentWithPrecision=function(t,e,l){if(!t[e])return 0;var r=n.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;for(var i=Math.pow(10,l),o=n.map(t,(function(t){return(isNaN(t)?0:t)/r*i*100})),a=100*i,s=n.map(o,(function(t){return Math.floor(t)})),u=n.reduce(s,(function(t,e){return t+e}),0),c=n.map(o,(function(t,e){return t-s[e]}));uh&&(h=c[f],d=f);++s[d],c[d]=0,++u}return s[e]/i},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-1e-4&&t<1e-4},e.parseDate=function(t){if(t instanceof Date)return t;if("string"===typeof t){var e=r.exec(t);if(!e)return new Date(NaN);if(e[8]){var l=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(l-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,l,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,i(t))},e.quantityExponent=i,e.nice=function(t,e){var l=i(t),n=Math.pow(10,l),r=t/n;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*n,l>=-20?+t.toFixed(l<0?-l:0):t},e.quantile=function(t,e){var l=(t.length-1)*e+1,n=Math.floor(l),r=+t[n-1],i=l-n;return i?r+i*(t[n]-r):r},e.reformIntervals=function(t){t.sort((function(t,e){return function t(e,l,n){return e.interval[n]=0}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,l){"use strict";function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}l.d(e,"a",(function(){return n}))},function(t,e){t.exports=function(t,e,l){return e in t?Object.defineProperty(t,e,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[e]=l,t}},function(t,e,l){t.exports=l(841)},function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var l=function(){};l.prototype=e.prototype,t.prototype=new l,t.prototype.constructor=t}}},function(t,e,l){"use strict";(function(t){var n=l(1539),r=l(1540),i=l(1541);function o(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var l=t.length;if(0===l)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return l;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*l;case"hex":return l>>>1;case"base64":return U(t).length;default:if(n)return z(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,l){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===l||l>this.length)&&(l=this.length),l<=0)return"";if((l>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,l);case"utf8":case"utf-8":return C(this,e,l);case"ascii":return k(this,e,l);case"latin1":case"binary":return T(this,e,l);case"base64":return E(this,e,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,l);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,l){var n=t[e];t[e]=t[l],t[l]=n}function v(t,e,l,n,r){if(0===t.length)return-1;if("string"===typeof l?(n=l,l=0):l>2147483647?l=2147483647:l<-2147483648&&(l=-2147483648),l=+l,isNaN(l)&&(l=r?0:t.length-1),l<0&&(l=t.length+l),l>=t.length){if(r)return-1;l=t.length-1}else if(l<0){if(!r)return-1;l=0}if("string"===typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:y(t,e,l,n,r);if("number"===typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,l):Uint8Array.prototype.lastIndexOf.call(t,e,l):y(t,[e],l,n,r);throw new TypeError("val must be string, number or Buffer")}function y(t,e,l,n,r){var i,o=1,a=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,s/=2,l/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var c=-1;for(i=l;ia&&(l=a-s),i=l;i>=0;i--){for(var h=!0,d=0;dr&&(n=r):n=r;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var o=0;o>8,r=l%256,i.push(r),i.push(n);return i}(e,t.length-l),t,l,n)}function E(t,e,l){return 0===e&&l===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,l))}function C(t,e,l){l=Math.min(t.length,l);for(var n=[],r=e;r239?4:u>223?3:u>191?2:1;if(r+h<=l)switch(h){case 1:u<128&&(c=u);break;case 2:128===(192&(i=t[r+1]))&&(s=(31&u)<<6|63&i)>127&&(c=s);break;case 3:i=t[r+1],o=t[r+2],128===(192&i)&&128===(192&o)&&(s=(15&u)<<12|(63&i)<<6|63&o)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=t[r+1],o=t[r+2],a=t[r+3],128===(192&i)&&128===(192&o)&&128===(192&a)&&(s=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&a)>65535&&s<1114112&&(c=s)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),r+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var l="",n=0;for(;n0&&(t=this.toString("hex",0,l).match(/.{2}/g).join(" "),this.length>l&&(t+=" ... ")),""},s.prototype.compare=function(t,e,l,n,r){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===l&&(l=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||l>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=l)return 0;if(n>=r)return-1;if(e>=l)return 1;if(this===t)return 0;for(var i=(r>>>=0)-(n>>>=0),o=(l>>>=0)-(e>>>=0),a=Math.min(i,o),u=this.slice(n,r),c=t.slice(e,l),h=0;hr)&&(l=r),t.length>0&&(l<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,t,e,l);case"utf8":case"utf-8":return w(this,t,e,l);case"ascii":return x(this,t,e,l);case"latin1":case"binary":return _(this,t,e,l);case"base64":return S(this,t,e,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,l);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,l){var n="";l=Math.min(t.length,l);for(var r=e;rn)&&(l=n);for(var r="",i=e;il)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,l,n,r,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function I(t,e,l,n){e<0&&(e=65535+e+1);for(var r=0,i=Math.min(t.length-l,2);r>>8*(n?r:1-r)}function L(t,e,l,n){e<0&&(e=4294967295+e+1);for(var r=0,i=Math.min(t.length-l,4);r>>8*(n?r:3-r)&255}function R(t,e,l,n,r,i){if(l+n>t.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("Index out of range")}function N(t,e,l,n,i){return i||R(t,0,l,4),r.write(t,e,l,n,23,4),l+4}function j(t,e,l,n,i){return i||R(t,0,l,8),r.write(t,e,l,n,52,8),l+8}s.prototype.slice=function(t,e){var l,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(r*=256);)n+=this[t+--e]*r;return n},s.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,l){t|=0,e|=0,l||D(t,e,this.length);for(var n=this[t],r=1,i=0;++i=(r*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,l){t|=0,e|=0,l||D(t,e,this.length);for(var n=e,r=1,i=this[t+--n];n>0&&(r*=256);)i+=this[t+--n]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var l=this[t]|this[t+1]<<8;return 32768&l?4294901760|l:l},s.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var l=this[t+1]|this[t]<<8;return 32768&l?4294901760|l:l},s.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),r.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),r.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),r.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),r.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,l,n){(t=+t,e|=0,l|=0,n)||P(this,t,e,l,Math.pow(2,8*l)-1,0);var r=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+r]=t/i&255;return e+l},s.prototype.writeUInt8=function(t,e,l){return t=+t,e|=0,l||P(this,t,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,l){return t=+t,e|=0,l||P(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},s.prototype.writeUInt16BE=function(t,e,l){return t=+t,e|=0,l||P(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},s.prototype.writeUInt32LE=function(t,e,l){return t=+t,e|=0,l||P(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},s.prototype.writeUInt32BE=function(t,e,l){return t=+t,e|=0,l||P(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},s.prototype.writeIntLE=function(t,e,l,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*l-1);P(this,t,e,l,r-1,-r)}var i=0,o=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+l},s.prototype.writeIntBE=function(t,e,l,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*l-1);P(this,t,e,l,r-1,-r)}var i=l-1,o=1,a=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+l},s.prototype.writeInt8=function(t,e,l){return t=+t,e|=0,l||P(this,t,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,l){return t=+t,e|=0,l||P(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},s.prototype.writeInt16BE=function(t,e,l){return t=+t,e|=0,l||P(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},s.prototype.writeInt32LE=function(t,e,l){return t=+t,e|=0,l||P(this,t,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},s.prototype.writeInt32BE=function(t,e,l){return t=+t,e|=0,l||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},s.prototype.writeFloatLE=function(t,e,l){return N(this,t,e,!0,l)},s.prototype.writeFloatBE=function(t,e,l){return N(this,t,e,!1,l)},s.prototype.writeDoubleLE=function(t,e,l){return j(this,t,e,!0,l)},s.prototype.writeDoubleBE=function(t,e,l){return j(this,t,e,!1,l)},s.prototype.copy=function(t,e,l,n){if(l||(l=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--r)t[r+e]=this[r+l];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,l=void 0===l?this.length:l>>>0,t||(t=0),"number"===typeof t)for(i=e;i55295&&l<57344){if(!r){if(l>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&i.push(239,191,189);continue}r=l;continue}if(l<56320){(e-=3)>-1&&i.push(239,191,189),r=l;continue}l=65536+(r-55296<<10|l-56320)}else r&&(e-=3)>-1&&i.push(239,191,189);if(r=null,l<128){if((e-=1)<0)break;i.push(l)}else if(l<2048){if((e-=2)<0)break;i.push(l>>6|192,63&l|128)}else if(l<65536){if((e-=3)<0)break;i.push(l>>12|224,l>>6&63|128,63&l|128)}else{if(!(l<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(l>>18|240,l>>12&63|128,l>>6&63|128,63&l|128)}}return i}function U(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function H(t,e,l,n){for(var r=0;r=e.length||r>=t.length);++r)e[r+l]=t[r];return r}}).call(this,l(52))},function(t,e,l){"use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}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={},l=0;l<10;l++)e["_"+String.fromCharCode(l)]=l;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(r){return!1}}()?Object.assign:function(t,e){for(var l,a,s=o(t),u=1;u-1}function S(t){return _(t)?window.pageYOffset:t.scrollTop}function M(t,e){_(t)?window.scrollTo(0,e):t.scrollTop=e}function E(t,e,l,n){return l*((t=t/n-1)*t*t+1)+e}function C(t,e){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:y,r=S(t),i=e-r,o=10,a=0;function s(){var e=E(a+=o,r,i,l);M(t,e),al.bottom?M(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+r,t.scrollHeight)):n.top-r=f)return{placement:"bottom",maxHeight:e};if(E>=f&&!o)return i&&C(s,k,160),{placement:"bottom",maxHeight:e};if(!o&&E>=n||o&&x>=n)return i&&C(s,k,160),{placement:"bottom",maxHeight:o?x-y:E-y};if("auto"===r||o){var O=e,A=o?w:_;return A>=n&&(O=Math.min(A-y-a.controlHeight,e)),{placement:"top",maxHeight:O}}if("bottom"===r)return M(s,k),{placement:"bottom",maxHeight:e};break;case"top":if(w>=f)return{placement:"top",maxHeight:e};if(_>=f&&!o)return i&&C(s,T,160),{placement:"top",maxHeight:e};if(!o&&_>=n||o&&w>=n){var D=e;return(!o&&_>=n||o&&w>=n)&&(D=o?w-b:_-b),i&&C(s,T,160),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}var L=function(t){return"auto"===t?"bottom":t},R=function(t){var e,l=t.placement,n=t.theme,r=n.borderRadius,o=n.spacing,a=n.colors;return e={label:"menu"},Object(i.a)(e,function(t){return t?{bottom:"top",top:"bottom"}[t]:"bottom"}(l),"100%"),Object(i.a)(e,"backgroundColor",a.neutral0),Object(i.a)(e,"borderRadius",r),Object(i.a)(e,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(i.a)(e,"marginBottom",o.menuGutter),Object(i.a)(e,"marginTop",o.menuGutter),Object(i.a)(e,"position","absolute"),Object(i.a)(e,"width","100%"),Object(i.a)(e,"zIndex",1),e},N=Object(h.createContext)({getPortalPlacement:null}),j=function(t){Object(s.a)(l,t);var e=P(l);function l(){var t;Object(o.a)(this,l);for(var n=arguments.length,r=new Array(n),i=0;i=l.length&&l.push({option:t})}})),l},e.makeIdAndName=function(t){var e=n.createHashMap();i(t,(function(t,l){var n=t.exist;n&&e.set(n.id,t)})),i(t,(function(t,l){var r=t.option;n.assert(!r||null==r.id||!e.get(r.id)||e.get(r.id)===t,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&e.set(r.id,t),!t.keyInfo&&(t.keyInfo={})})),i(t,(function(t,l){var n=t.exist,r=t.option,i=t.keyInfo;if(o(r)){if(i.name=null!=r.name?r.name+"":n?n.name:"series\0"+l,n)i.id=n.id;else if(null!=r.id)i.id=r.id+"";else{var a=0;do{i.id="\0"+i.name+"\0"+a++}while(e.get(i.id))}e.set(i.id,t)}}))},e.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf("series\0"))},e.isIdInner=u,e.compressBatches=function(t,e){var l={},n={};return r(t||[],l),r(e||[],n,l),[i(l),i(n)];function r(t,e,l){for(var n=0,r=t.length;n1&&void 0!==arguments[1]?arguments[1]:{};return function(l){var i=e.defaultTheme,a=e.withTheme,d=void 0!==a&&a,f=e.name,p=Object(r.a)(e,["defaultTheme","withTheme","name"]);var g=f,m=Object(u.a)(t,Object(n.a)({defaultTheme:i,Component:l,name:f||l.displayName,classNamePrefix:g},p)),v=o.a.forwardRef((function(t,e){t.classes;var a,s=t.innerRef,u=Object(r.a)(t,["classes","innerRef"]),p=m(Object(n.a)({},l.defaultProps,t)),g=u;return("string"===typeof f||d)&&(a=Object(h.a)()||i,f&&(g=Object(c.a)({theme:a,name:f,props:u})),d&&!g.theme&&(g.theme=a)),o.a.createElement(l,Object(n.a)({ref:s||e,classes:p},g))}));return s()(v,l),v}},f=l(348);e.a=function(t,e){return d(t,Object(n.a)({defaultTheme:f.a},e))}},function(t,e,l){(function(t){var l;"undefined"!==typeof window?l=window.__DEV__:"undefined"!==typeof t&&(l=t.__DEV__),"undefined"===typeof l&&(l=!0);var n=l;e.__DEV__=n}).call(this,l(52))},function(t,e,l){"use strict";l.d(e,"a",(function(){return r}));var n=l(1192);function r(t){if("string"!==typeof t)throw new Error(Object(n.a)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,l){t.exports=l(1523)},function(t,e,l){"use strict";l.d(e,"a",(function(){return r})),l.d(e,"b",(function(){return i})),l.d(e,"c",(function(){return o})),l.d(e,"d",(function(){return a})),l.d(e,"e",(function(){return s})),l.d(e,"f",(function(){return u})),l.d(e,"g",(function(){return p})),l.d(e,"h",(function(){return c})),l.d(e,"i",(function(){return h})),l.d(e,"j",(function(){return d})),l.d(e,"k",(function(){return f}));var n=function(t){return"@@redux-saga/"+t},r=n("CANCEL_PROMISE"),i=n("CHANNEL_END"),o=n("IO"),a=n("MATCH"),s=n("MULTICAST"),u=n("SAGA_ACTION"),c=n("SELF_CANCELLATION"),h=n("TASK"),d=n("TASK_CANCEL"),f=n("TERMINATE"),p=n("LOCATION")},,function(t,e,l){"use strict";l.d(e,"d",(function(){return a})),l.d(e,"b",(function(){return u})),l.d(e,"c",(function(){return c})),l.d(e,"a",(function(){return h})),l.d(e,"e",(function(){return d}));var n=l(1192);function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(e,t),l)}function i(t){if(t.type)return t;if("#"===t.charAt(0))return i(function(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),l=t.match(e);return l&&1===l[0].length&&(l=l.map((function(t){return t+t}))),l?"rgb".concat(4===l.length?"a":"","(").concat(l.map((function(t,e){return e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3})).join(", "),")"):""}(t));var e=t.indexOf("("),l=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla"].indexOf(l))throw new Error(Object(n.a)(3,t));var r=t.substring(e+1,t.length-1).split(",");return{type:l,values:r=r.map((function(t){return parseFloat(t)}))}}function o(t){var e=t.type,l=t.values;return-1!==e.indexOf("rgb")?l=l.map((function(t,e){return e<3?parseInt(t,10):t})):-1!==e.indexOf("hsl")&&(l[1]="".concat(l[1],"%"),l[2]="".concat(l[2],"%")),"".concat(e,"(").concat(l.join(", "),")")}function a(t,e){var l=s(t),n=s(e);return(Math.max(l,n)+.05)/(Math.min(l,n)+.05)}function s(t){var e="hsl"===(t=i(t)).type?i(function(t){var e=(t=i(t)).values,l=e[0],n=e[1]/100,r=e[2]/100,a=n*Math.min(r,1-r),s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+l/30)%12;return r-a*Math.max(Math.min(e-3,9-e,1),-1)},u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===t.type&&(u+="a",c.push(e[3])),o({type:u,values:c})}(t)).values:t.values;return e=e.map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(t)>.5?h(t,e):d(t,e)}function c(t,e){return t=i(t),e=r(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),t.values[3]=e,o(t)}function h(t,e){if(t=i(t),e=r(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb"))for(var l=0;l<3;l+=1)t.values[l]*=1-e;return o(t)}function d(t,e){if(t=i(t),e=r(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(var l=0;l<3;l+=1)t.values[l]+=(255-t.values[l])*e;return o(t)}},function(t,e,l){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function l(t){return o(t)?t:H(t)}function n(t){return a(t)?t:Z(t)}function r(t){return s(t)?t:V(t)}function i(t){return o(t)&&!u(t)?t:W(t)}function o(t){return!(!t||!t[h])}function a(t){return!(!t||!t[d])}function s(t){return!(!t||!t[f])}function u(t){return a(t)||s(t)}function c(t){return!(!t||!t[p])}e(n,l),e(r,l),e(i,l),l.isIterable=o,l.isKeyed=a,l.isIndexed=s,l.isAssociative=u,l.isOrdered=c,l.Keyed=n,l.Indexed=r,l.Set=i;var h="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",g={},m={value:!1},v={value:!1};function y(t){return t.value=!1,t}function b(t){t&&(t.value=!0)}function w(){}function x(t,e){e=e||0;for(var l=Math.max(0,t.length-e),n=new Array(l),r=0;r>>0;if(""+l!==e||4294967295===l)return NaN;e=l}return e<0?_(t)+e:e}function M(){return!0}function E(t,e,l){return(0===t||void 0!==l&&t<=-l)&&(void 0===e||void 0!==l&&e>=l)}function C(t,e){return T(t,e,0)}function k(t,e){return T(t,e,e)}function T(t,e,l){return void 0===t?l:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var O,A,D,P="function"===typeof Symbol&&Symbol.iterator,I=P||"@@iterator";function L(t){this.next=t}function R(t,e,l,n){var r=0===t?e:1===t?l:[e,l];return n?n.value=r:n={value:r,done:!1},n}function N(){return{value:void 0,done:!0}}function j(t){return!!z(t)}function B(t){return t&&"function"===typeof t.next}function F(t){var e=z(t);return e&&e.call(t)}function z(t){var e=t&&(P&&t[P]||t["@@iterator"]);if("function"===typeof e)return e}function U(t){return t&&"number"===typeof t.length}function H(t){return null===t||void 0===t?$():o(t)?t.toSeq():function(t){var e=tt(t)||"object"===typeof t&&new Y(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function Z(t){return null===t||void 0===t?$().toKeyedSeq():o(t)?a(t)?t.toSeq():t.fromEntrySeq():Q(t)}function V(t){return null===t||void 0===t?$():o(t)?a(t)?t.entrySeq():t.toIndexedSeq():J(t)}function W(t){return(null===t||void 0===t?$():o(t)?a(t)?t.entrySeq():t:J(t)).toSetSeq()}function G(t){this._array=t,this.size=t.length}function Y(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function q(t){this._iterable=t,this.size=t.length||t.size}function X(t){this._iterator=t,this._iteratorCache=[]}function K(t){return!(!t||!t["@@__IMMUTABLE_SEQ__@@"])}function $(){return O||(O=new G([]))}function Q(t){var e=Array.isArray(t)?new G(t).fromEntrySeq():B(t)?new X(t).fromEntrySeq():j(t)?new q(t).fromEntrySeq():"object"===typeof t?new Y(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function J(t){var e=tt(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function tt(t){return U(t)?new G(t):B(t)?new X(t):j(t)?new q(t):void 0}function et(t,e,l,n){var r=t._cache;if(r){for(var i=r.length-1,o=0;o<=i;o++){var a=r[l?i-o:o];if(!1===e(a[1],n?a[0]:o,t))return o+1}return o}return t.__iterateUncached(e,l)}function lt(t,e,l,n){var r=t._cache;if(r){var i=r.length-1,o=0;return new L((function(){var t=r[l?i-o:o];return o++>i?{value:void 0,done:!0}:R(e,n?t[0]:o-1,t[1])}))}return t.__iteratorUncached(e,l)}function nt(t,e){return e?function t(e,l,n,r){return Array.isArray(l)?e.call(r,n,V(l).map((function(n,r){return t(e,n,r,l)}))):it(l)?e.call(r,n,Z(l).map((function(n,r){return t(e,n,r,l)}))):l}(e,t,"",{"":t}):rt(t)}function rt(t){return Array.isArray(t)?V(t).map(rt).toList():it(t)?Z(t).map(rt).toMap():t}function it(t){return t&&(t.constructor===Object||void 0===t.constructor)}function ot(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"===typeof t.valueOf&&"function"===typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!==typeof t.equals||"function"!==typeof e.equals||!t.equals(e))}function at(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||s(t)!==s(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var l=!u(t);if(c(t)){var n=t.entries();return e.every((function(t,e){var r=n.next().value;return r&&ot(r[1],t)&&(l||ot(r[0],e))}))&&n.next().done}var r=!1;if(void 0===t.size)if(void 0===e.size)"function"===typeof t.cacheResult&&t.cacheResult();else{r=!0;var i=t;t=e,e=i}var h=!0,d=e.__iterate((function(e,n){if(l?!t.has(e):r?!ot(e,t.get(n,g)):!ot(t.get(n,g),e))return h=!1,!1}));return h&&t.size===d}function st(t,e){if(!(this instanceof st))return new st(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(A)return A;A=this}}function ut(t,e){if(!t)throw new Error(e)}function ct(t,e,l){if(!(this instanceof ct))return new ct(t,e,l);if(ut(0!==l,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),l=void 0===l?1:Math.abs(l),en?{value:void 0,done:!0}:R(t,r,l[e?n-r++:r++])}))},e(Y,Z),Y.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},Y.prototype.has=function(t){return this._object.hasOwnProperty(t)},Y.prototype.__iterate=function(t,e){for(var l=this._object,n=this._keys,r=n.length-1,i=0;i<=r;i++){var o=n[e?r-i:i];if(!1===t(l[o],o,this))return i+1}return i},Y.prototype.__iterator=function(t,e){var l=this._object,n=this._keys,r=n.length-1,i=0;return new L((function(){var o=n[e?r-i:i];return i++>r?{value:void 0,done:!0}:R(t,o,l[o])}))},Y.prototype[p]=!0,e(q,V),q.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var l=F(this._iterable),n=0;if(B(l))for(var r;!(r=l.next()).done&&!1!==t(r.value,n++,this););return n},q.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var l=F(this._iterable);if(!B(l))return new L(N);var n=0;return new L((function(){var e=l.next();return e.done?e:R(t,n++,e.value)}))},e(X,V),X.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var l,n=this._iterator,r=this._iteratorCache,i=0;i=n.length){var e=l.next();if(e.done)return e;n[r]=e.value}return R(t,r,n[r++])}))},e(st,V),st.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},st.prototype.get=function(t,e){return this.has(t)?this._value:e},st.prototype.includes=function(t){return ot(this._value,t)},st.prototype.slice=function(t,e){var l=this.size;return E(t,e,l)?this:new st(this._value,k(e,l)-C(t,l))},st.prototype.reverse=function(){return this},st.prototype.indexOf=function(t){return ot(this._value,t)?0:-1},st.prototype.lastIndexOf=function(t){return ot(this._value,t)?this.size:-1},st.prototype.__iterate=function(t,e){for(var l=0;l1?" by "+this._step:"")+" ]"},ct.prototype.get=function(t,e){return this.has(t)?this._start+S(this,t)*this._step:e},ct.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e=0&&ll?{value:void 0,done:!0}:R(t,i++,o)}))},ct.prototype.equals=function(t){return t instanceof ct?this._start===t._start&&this._end===t._end&&this._step===t._step:at(this,t)},e(ht,l),e(dt,ht),e(ft,ht),e(pt,ht),ht.Keyed=dt,ht.Indexed=ft,ht.Set=pt;var gt="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var l=65535&(t|=0),n=65535&(e|=0);return l*n+((t>>>16)*n+l*(e>>>16)<<16>>>0)|0};function mt(t){return t>>>1&1073741824|3221225471&t}function vt(t){if(!1===t||null===t||void 0===t)return 0;if("function"===typeof t.valueOf&&(!1===(t=t.valueOf())||null===t||void 0===t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var l=0|t;for(l!==t&&(l^=4294967295*t);t>4294967295;)l^=t/=4294967295;return mt(l)}if("string"===e)return t.length>Et?function(t){var e=Tt[t];return void 0===e&&(e=yt(t),kt===Ct&&(kt=0,Tt={}),kt++,Tt[t]=e),e}(t):yt(t);if("function"===typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(_t&&void 0!==(e=bt.get(t)))return e;if(void 0!==(e=t[Mt]))return e;if(!xt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Mt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++St,1073741824&St&&(St=0),_t)bt.set(t,e);else{if(void 0!==wt&&!1===wt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(xt)Object.defineProperty(t,Mt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Mt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Mt]=e}}return e}(t);if("function"===typeof t.toString)return yt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function yt(t){for(var e=0,l=0;l>>l),a=31&(0===l?n:n>>>l);return new Nt(e,1<>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function te(t,e,l,n){var r=n?t:x(t);return r[e]=l,r}Lt[It]=!0,Lt.delete=Lt.remove,Lt.removeIn=Lt.deleteIn,Rt.prototype.get=function(t,e,l,n){for(var r=this.entries,i=0,o=r.length;i=ee)return function(t,e,l,n){t||(t=new w);for(var r=new Ft(t,vt(l),[l,n]),i=0;i>>t)),i=this.bitmap;return 0===(i&r)?n:this.nodes[Jt(i&r-1)].get(t+5,e,l,n)},Nt.prototype.update=function(t,e,l,n,r,i,o){void 0===l&&(l=vt(n));var a=31&(0===e?l:l>>>e),s=1<=le)return function(t,e,l,n,r){for(var i=0,o=new Array(32),a=0;0!==l;a++,l>>>=1)o[a]=1&l?e[i++]:void 0;return o[n]=r,new jt(t,i+1,o)}(t,d,u,a,p);if(c&&!p&&2===d.length&&Yt(d[1^h]))return d[1^h];if(c&&p&&1===d.length&&Yt(p))return p;var m=t&&t===this.ownerID,v=c?p?u:u^s:u|s,y=c?p?te(d,h,p,m):function(t,e,l){var n=t.length-1;if(l&&e===n)return t.pop(),t;for(var r=new Array(n),i=0,o=0;o>>t),i=this.nodes[r];return i?i.get(t+5,e,l,n):n},jt.prototype.update=function(t,e,l,n,r,i,o){void 0===l&&(l=vt(n));var a=31&(0===e?l:l>>>e),s=r===g,u=this.nodes,c=u[a];if(s&&!c)return this;var h=Gt(c,t,e+5,l,n,r,i,o);if(h===c)return this;var d=this.count;if(c){if(!h&&--d0&&n<32?fe(0,n,5,null,new se(l.toArray())):e.withMutations((function(t){t.setSize(n),l.forEach((function(e,l){return t.set(l,e)}))})))}function ie(t){return!(!t||!t[oe])}e(re,ft),re.of=function(){return this(arguments)},re.prototype.toString=function(){return this.__toString("List [","]")},re.prototype.get=function(t,e){if((t=S(this,t))>=0&&t=t.size||e<0)return t.withMutations((function(t){e<0?ye(t,e).set(0,l):ye(t,0,e+1).set(e,l)}));e+=t._origin;var n=t._tail,r=t._root,i=y(v);return e>=we(t._capacity)?n=ge(n,t.__ownerID,0,e,l,i):r=ge(r,t.__ownerID,t._level,e,l,i),i.value?t.__ownerID?(t._root=r,t._tail=n,t.__hash=void 0,t.__altered=!0,t):fe(t._origin,t._capacity,t._level,r,n):t}(this,t,e)},re.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},re.prototype.insert=function(t,e){return this.splice(t,0,e)},re.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):pe()},re.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(l){ye(l,0,e+t.length);for(var n=0;n>>e&31;if(n>=this.array.length)return new se([],t);var r,i=0===n;if(e>0){var o=this.array[n];if((r=o&&o.removeBefore(t,e-5,l))===o&&i)return this}if(i&&!r)return this;var a=me(this,t);if(!i)for(var s=0;s>>e&31;if(r>=this.array.length)return this;if(e>0){var i=this.array[r];if((n=i&&i.removeAfter(t,e-5,l))===i&&r===this.array.length-1)return this}var o=me(this,t);return o.array.splice(r+1),n&&(o.array[r]=n),o};var ue,ce,he={};function de(t,e){var l=t._origin,n=t._capacity,r=we(n),i=t._tail;return o(t._root,t._level,0);function o(t,a,s){return 0===a?function(t,o){var a=o===r?i&&i.array:t&&t.array,s=o>l?0:l-o,u=n-o;return u>32&&(u=32),function(){if(s===u)return he;var t=e?--u:s++;return a&&a[t]}}(t,s):function(t,r,i){var a,s=t&&t.array,u=i>l?0:l-i>>r,c=1+(n-i>>r);return c>32&&(c=32),function(){for(;;){if(a){var t=a();if(t!==he)return t;a=null}if(u===c)return he;var l=e?--c:u++;a=o(s&&s[l],r-5,i+(l<>>l&31,s=t&&a0){var u=t&&t.array[a],c=ge(u,e,l-5,n,r,i);return c===u?t:((o=me(t,e)).array[a]=c,o)}return s&&t.array[a]===r?t:(b(i),o=me(t,e),void 0===r&&a===o.array.length-1?o.array.pop():o.array[a]=r,o)}function me(t,e){return e&&t&&e===t.ownerID?t:new se(t?t.array.slice():[],e)}function ve(t,e){if(e>=we(t._capacity))return t._tail;if(e<1<0;)l=l.array[e>>>n&31],n-=5;return l}}function ye(t,e,l){void 0!==e&&(e|=0),void 0!==l&&(l|=0);var n=t.__ownerID||new w,r=t._origin,i=t._capacity,o=r+e,a=void 0===l?i:l<0?i+l:r+l;if(o===r&&a===i)return t;if(o>=a)return t.clear();for(var s=t._level,u=t._root,c=0;o+c<0;)u=new se(u&&u.array.length?[void 0,u]:[],n),c+=1<<(s+=5);c&&(o+=c,r+=c,a+=c,i+=c);for(var h=we(i),d=we(a);d>=1<h?new se([],n):f;if(f&&d>h&&o5;m-=5){var v=h>>>m&31;g=g.array[v]=me(g.array[v],n)}g.array[h>>>5&31]=f}if(a=d)o-=d,a-=d,s=5,u=null,p=p&&p.removeBefore(n,0,o);else if(o>r||d>>s&31;if(y!==d>>>s&31)break;y&&(c+=(1<r&&(u=u.removeBefore(n,s,o-c)),u&&di&&(i=u.size),o(s)||(u=u.map((function(t){return nt(t)}))),n.push(u)}return i>t.size&&(t=t.setSize(i)),Qt(t,e,n)}function we(t){return t<32?0:t-1>>>5<<5}function xe(t){return null===t||void 0===t?Me():_e(t)?t:Me().withMutations((function(e){var l=n(t);Ot(l.size),l.forEach((function(t,l){return e.set(l,t)}))}))}function _e(t){return Dt(t)&&c(t)}function Se(t,e,l,n){var r=Object.create(xe.prototype);return r.size=t?t.size:0,r._map=t,r._list=e,r.__ownerID=l,r.__hash=n,r}function Me(){return ce||(ce=Se(Vt(),pe()))}function Ee(t,e,l){var n,r,i=t._map,o=t._list,a=i.get(e),s=void 0!==a;if(l===g){if(!s)return t;o.size>=32&&o.size>=2*i.size?(n=(r=o.filter((function(t,e){return void 0!==t&&a!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(n.__ownerID=r.__ownerID=t.__ownerID)):(n=i.remove(e),r=a===o.size-1?o.pop():o.set(a,void 0))}else if(s){if(l===o.get(a)[1])return t;n=i,r=o.set(a,[e,l])}else n=i.set(e,o.size),r=o.set(o.size,[e,l]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=r,t.__hash=void 0,t):Se(n,r)}function Ce(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ke(t){this._iter=t,this.size=t.size}function Te(t){this._iter=t,this.size=t.size}function Oe(t){this._iter=t,this.size=t.size}function Ae(t){var e=Ge(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Ye,e.__iterateUncached=function(e,l){var n=this;return t.__iterate((function(t,l){return!1!==e(l,t,n)}),l)},e.__iteratorUncached=function(e,l){if(2===e){var n=t.__iterator(e,l);return new L((function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,l)},e}function De(t,e,l){var n=Ge(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,r){var i=t.get(n,g);return i===g?r:e.call(l,i,n,t)},n.__iterateUncached=function(n,r){var i=this;return t.__iterate((function(t,r,o){return!1!==n(e.call(l,t,r,o),r,i)}),r)},n.__iteratorUncached=function(n,r){var i=t.__iterator(2,r);return new L((function(){var r=i.next();if(r.done)return r;var o=r.value,a=o[0];return R(n,a,e.call(l,o[1],a,t),r)}))},n}function Pe(t,e){var l=Ge(t);return l._iter=t,l.size=t.size,l.reverse=function(){return t},t.flip&&(l.flip=function(){var e=Ae(t);return e.reverse=function(){return t.flip()},e}),l.get=function(l,n){return t.get(e?l:-1-l,n)},l.has=function(l){return t.has(e?l:-1-l)},l.includes=function(e){return t.includes(e)},l.cacheResult=Ye,l.__iterate=function(e,l){var n=this;return t.__iterate((function(t,l){return e(t,l,n)}),!l)},l.__iterator=function(e,l){return t.__iterator(e,!l)},l}function Ie(t,e,l,n){var r=Ge(t);return n&&(r.has=function(n){var r=t.get(n,g);return r!==g&&!!e.call(l,r,n,t)},r.get=function(n,r){var i=t.get(n,g);return i!==g&&e.call(l,i,n,t)?i:r}),r.__iterateUncached=function(r,i){var o=this,a=0;return t.__iterate((function(t,i,s){if(e.call(l,t,i,s))return a++,r(t,n?i:a-1,o)}),i),a},r.__iteratorUncached=function(r,i){var o=t.__iterator(2,i),a=0;return new L((function(){for(;;){var i=o.next();if(i.done)return i;var s=i.value,u=s[0],c=s[1];if(e.call(l,c,u,t))return R(r,n?u:a++,c,i)}}))},r}function Le(t,e,l,n){var r=t.size;if(void 0!==e&&(e|=0),void 0!==l&&(l|=0),E(e,l,r))return t;var i=C(e,r),o=k(l,r);if(i!==i||o!==o)return Le(t.toSeq().cacheResult(),e,l,n);var a,s=o-i;s===s&&(a=s<0?0:s);var u=Ge(t);return u.size=0===a?a:t.size&&a||void 0,!n&&K(t)&&a>=0&&(u.get=function(e,l){return(e=S(this,e))>=0&&ea)return{value:void 0,done:!0};var t=r.next();return n||1===e?t:R(e,s-1,0===e?void 0:t.value[1],t)}))},u}function Re(t,e,l,n){var r=Ge(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=!0,s=0;return t.__iterate((function(t,i,u){if(!a||!(a=e.call(l,t,i,u)))return s++,r(t,n?i:s-1,o)})),s},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=t.__iterator(2,i),s=!0,u=0;return new L((function(){var t,i,c;do{if((t=a.next()).done)return n||1===r?t:R(r,u++,0===r?void 0:t.value[1],t);var h=t.value;i=h[0],c=h[1],s&&(s=e.call(l,c,i,o))}while(s);return 2===r?t:R(r,i,c,t)}))},r}function Ne(t,e){var l=a(t),r=[t].concat(e).map((function(t){return o(t)?l&&(t=n(t)):t=l?Q(t):J(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===r.length)return t;if(1===r.length){var i=r[0];if(i===t||l&&a(i)||s(t)&&s(i))return i}var u=new G(r);return l?u=u.toKeyedSeq():s(t)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=r.reduce((function(t,e){if(void 0!==t){var l=e.size;if(void 0!==l)return t+l}}),0),u}function je(t,e,l){var n=Ge(t);return n.__iterateUncached=function(n,r){var i=0,a=!1;return function t(s,u){var c=this;s.__iterate((function(r,s){return(!e||u0}function Ue(t,e,n){var r=Ge(t);return r.size=new G(n).map((function(t){return t.size})).min(),r.__iterate=function(t,e){for(var l,n=this.__iterator(1,e),r=0;!(l=n.next()).done&&!1!==t(l.value,r++,this););return r},r.__iteratorUncached=function(t,r){var i=n.map((function(t){return t=l(t),F(r?t.reverse():t)})),o=0,a=!1;return new L((function(){var l;return a||(l=i.map((function(t){return t.next()})),a=l.some((function(t){return t.done}))),a?{value:void 0,done:!0}:R(t,o++,e.apply(null,l.map((function(t){return t.value}))))}))},r}function He(t,e){return K(t)?e:t.constructor(e)}function Ze(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ve(t){return Ot(t.size),_(t)}function We(t){return a(t)?n:s(t)?r:i}function Ge(t){return Object.create((a(t)?Z:s(t)?V:W).prototype)}function Ye(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function qe(t,e){return t>e?1:t=0;l--)e={value:arguments[l],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):wl(t,e)},gl.prototype.pushAll=function(t){if(0===(t=r(t)).size)return this;Ot(t.size);var e=this.size,l=this._head;return t.reverse().forEach((function(t){e++,l={value:t,next:l}})),this.__ownerID?(this.size=e,this._head=l,this.__hash=void 0,this.__altered=!0,this):wl(e,l)},gl.prototype.pop=function(){return this.slice(1)},gl.prototype.unshift=function(){return this.push.apply(this,arguments)},gl.prototype.unshiftAll=function(t){return this.pushAll(t)},gl.prototype.shift=function(){return this.pop.apply(this,arguments)},gl.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):xl()},gl.prototype.slice=function(t,e){if(E(t,e,this.size))return this;var l=C(t,this.size);if(k(e,this.size)!==this.size)return ft.prototype.slice.call(this,t,e);for(var n=this.size-l,r=this._head;l--;)r=r.next;return this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):wl(n,r)},gl.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?wl(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},gl.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var l=0,n=this._head;n&&!1!==t(n.value,l++,this);)n=n.next;return l},gl.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var l=0,n=this._head;return new L((function(){if(n){var e=n.value;return n=n.next,R(t,l++,e)}return{value:void 0,done:!0}}))},gl.isStack=ml;var vl,yl="@@__IMMUTABLE_STACK__@@",bl=gl.prototype;function wl(t,e,l,n){var r=Object.create(bl);return r.size=t,r._head=e,r.__ownerID=l,r.__hash=n,r.__altered=!1,r}function xl(){return vl||(vl=wl(0))}function _l(t,e){var l=function(l){t.prototype[l]=e[l]};return Object.keys(e).forEach(l),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(l),t}bl[yl]=!0,bl.withMutations=Lt.withMutations,bl.asMutable=Lt.asMutable,bl.asImmutable=Lt.asImmutable,bl.wasAltered=Lt.wasAltered,l.Iterator=L,_l(l,{toArray:function(){Ot(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,l){t[l]=e})),t},toIndexedSeq:function(){return new ke(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"===typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"===typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new Ce(this,!0)},toMap:function(){return At(this.toKeyedSeq())},toObject:function(){Ot(this.size);var t={};return this.__iterate((function(e,l){t[l]=e})),t},toOrderedMap:function(){return xe(this.toKeyedSeq())},toOrderedSet:function(){return ul(a(this)?this.valueSeq():this)},toSet:function(){return el(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Te(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return gl(a(this)?this.valueSeq():this)},toList:function(){return re(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var e=t.call(arguments,0);return He(this,Ne(this,e))},includes:function(t){return this.some((function(e){return ot(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Ot(this.size);var l=!0;return this.__iterate((function(n,r,i){if(!t.call(e,n,r,i))return l=!1,!1})),l},filter:function(t,e){return He(this,Ie(this,t,e,!0))},find:function(t,e,l){var n=this.findEntry(t,e);return n?n[1]:l},findEntry:function(t,e){var l;return this.__iterate((function(n,r,i){if(t.call(e,n,r,i))return l=[r,n],!1})),l},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Ot(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Ot(this.size),t=void 0!==t?""+t:",";var e="",l=!0;return this.__iterate((function(n){l?l=!1:e+=t,e+=null!==n&&void 0!==n?n.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return He(this,De(this,t,e))},reduce:function(t,e,l){var n,r;return Ot(this.size),arguments.length<2?r=!0:n=e,this.__iterate((function(e,i,o){r?(r=!1,n=e):n=t.call(l,n,e,i,o)})),n},reduceRight:function(t,e,l){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return He(this,Pe(this,!0))},slice:function(t,e){return He(this,Le(this,t,e,!0))},some:function(t,e){return!this.every(kl(t),e)},sort:function(t){return He(this,Be(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return _(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,l){var n=At().asMutable();return t.__iterate((function(r,i){n.update(e.call(l,r,i,t),0,(function(t){return t+1}))})),n.asImmutable()}(this,t,e)},equals:function(t){return at(this,t)},entrySeq:function(){var t=this;if(t._cache)return new G(t._cache);var e=t.toSeq().map(Cl).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(kl(t),e)},findLast:function(t,e,l){return this.toKeyedSeq().reverse().find(t,e,l)},first:function(){return this.find(M)},flatMap:function(t,e){return He(this,function(t,e,l){var n=We(t);return t.toSeq().map((function(r,i){return n(e.call(l,r,i,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return He(this,je(this,t,!0))},fromEntrySeq:function(){return new Oe(this)},get:function(t,e){return this.find((function(e,l){return ot(l,t)}),void 0,e)},getIn:function(t,e){for(var l,n=this,r=Xe(t);!(l=r.next()).done;){var i=l.value;if((n=n&&n.get?n.get(i,g):g)===g)return e}return n},groupBy:function(t,e){return function(t,e,l){var n=a(t),r=(c(t)?xe():At()).asMutable();t.__iterate((function(i,o){r.update(e.call(l,i,o,t),(function(t){return(t=t||[]).push(n?[o,i]:i),t}))}));var i=We(t);return r.map((function(e){return He(t,i(e))}))}(this,t,e)},has:function(t){return this.get(t,g)!==g},hasIn:function(t){return this.getIn(t,g)!==g},isSubset:function(t){return t="function"===typeof t.includes?t:l(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"===typeof t.isSubset?t:l(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(El).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return Fe(this,t)},maxBy:function(t,e){return Fe(this,e,t)},min:function(t){return Fe(this,t?Tl(t):Dl)},minBy:function(t,e){return Fe(this,e?Tl(e):Dl,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return He(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return He(this,Re(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(kl(t),e)},sortBy:function(t,e){return He(this,Be(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return He(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return He(this,function(t,e,l){var n=Ge(t);return n.__iterateUncached=function(n,r){var i=this;if(r)return this.cacheResult().__iterate(n,r);var o=0;return t.__iterate((function(t,r,a){return e.call(l,t,r,a)&&++o&&n(t,r,i)})),o},n.__iteratorUncached=function(n,r){var i=this;if(r)return this.cacheResult().__iterator(n,r);var o=t.__iterator(2,r),a=!0;return new L((function(){if(!a)return{value:void 0,done:!0};var t=o.next();if(t.done)return t;var r=t.value,s=r[0],u=r[1];return e.call(l,u,s,i)?2===n?t:R(n,s,u,t):(a=!1,{value:void 0,done:!0})}))},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(kl(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=c(t),l=a(t),n=e?1:0;return function(t,e){return e=gt(e,3432918353),e=gt(e<<15|e>>>-15,461845907),e=gt(e<<13|e>>>-13,5),e=gt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=mt((e=gt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(l?e?function(t,e){n=31*n+Pl(vt(t),vt(e))|0}:function(t,e){n=n+Pl(vt(t),vt(e))|0}:e?function(t){n=31*n+vt(t)|0}:function(t){n=n+vt(t)|0}),n)}(this))}});var Sl=l.prototype;Sl[h]=!0,Sl[I]=Sl.values,Sl.__toJS=Sl.toArray,Sl.__toStringMapper=Ol,Sl.inspect=Sl.toSource=function(){return this.toString()},Sl.chain=Sl.flatMap,Sl.contains=Sl.includes,function(){try{Object.defineProperty(Sl,"length",{get:function(){if(!l.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),_l(n,{flip:function(){return He(this,Ae(this))},findKey:function(t,e){var l=this.findEntry(t,e);return l&&l[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey((function(e){return ot(e,t)}))},lastKeyOf:function(t){return this.findLastKey((function(e){return ot(e,t)}))},mapEntries:function(t,e){var l=this,n=0;return He(this,this.toSeq().map((function(r,i){return t.call(e,[i,r],n++,l)})).fromEntrySeq())},mapKeys:function(t,e){var l=this;return He(this,this.toSeq().flip().map((function(n,r){return t.call(e,n,r,l)})).flip())}});var Ml=n.prototype;function El(t,e){return e}function Cl(t,e){return[e,t]}function kl(t){return function(){return!t.apply(this,arguments)}}function Tl(t){return function(){return-t.apply(this,arguments)}}function Ol(t){return"string"===typeof t?JSON.stringify(t):t}function Al(){return x(arguments)}function Dl(t,e){return te?-1:0}function Pl(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return Ml[d]=!0,Ml[I]=Sl.entries,Ml.__toJS=Sl.toObject,Ml.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Ol(t)},_l(r,{toKeyedSeq:function(){return new Ce(this,!1)},filter:function(t,e){return He(this,Ie(this,t,e,!1))},findIndex:function(t,e){var l=this.findEntry(t,e);return l?l[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return He(this,Pe(this,!1))},slice:function(t,e){return He(this,Le(this,t,e,!1))},splice:function(t,e){var l=arguments.length;if(e=Math.max(0|e,0),0===l||2===l&&!e)return this;t=C(t,t<0?this.count():this.size);var n=this.slice(0,t);return He(this,1===l?n:n.concat(x(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var l=this.toKeyedSeq().findLastKey(t,e);return void 0===l?-1:l},first:function(){return this.get(0)},flatten:function(t){return He(this,je(this,t,!1))},get:function(t,e){return(t=S(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,l){return l===t}),void 0,e)},has:function(t){return(t=S(this,t))>=0&&(void 0!==this.size?this.size===1/0||t1?e-1:0),n=1;n0?" Args: "+l.join(", "):""))}var k=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var e=t.prototype;return e.indexOfGroup=function(t){for(var e=0,l=0;l=this.groupSizes.length){for(var l=this.groupSizes,n=l.length,r=n;t>=r;)(r<<=1)<0&&C(16,""+t);this.groupSizes=new Uint32Array(r),this.groupSizes.set(l),this.length=r;for(var i=n;i=this.length||0===this.groupSizes[t])return e;for(var l=this.groupSizes[t],n=this.indexOfGroup(t),r=n+l,i=n;i=0;l--){var n=e[l];if(n&&1===n.nodeType&&n.hasAttribute(x))return n}}(l),i=void 0!==r?r.nextSibling:null;n.setAttribute(x,"active"),n.setAttribute("data-styled-version","5.2.1");var o=B();return o&&n.setAttribute("nonce",o),l.insertBefore(n,i),n},z=function(){function t(t){var e=this.element=F(t);e.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,l=0,n=e.length;l=0){var l=document.createTextNode(e),n=this.nodes[t];return this.element.insertBefore(l,n||null),this.length++,!0}return!1},e.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.getRule=function(t){return t0&&(u+=t+",")})),n+=""+a+s+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},t}(),G=/(a)(d)/gi,Y=function(t){return String.fromCharCode(t+(t>25?39:97))};function q(t){var e,l="";for(e=Math.abs(t);e>52;e=e/52|0)l=Y(e%52)+l;return(Y(e%52)+l).replace(G,"$1-$2")}var X=function(t,e){for(var l=e.length;l;)t=33*t^e.charCodeAt(--l);return t},K=function(t){return X(5381,t)};function $(t){for(var e=0;e>>0);if(!e.hasNameForId(n,o)){var a=l(i,"."+o,void 0,n);e.insertRules(n,o,a)}r.push(o),this.staticRulesId=o}else{for(var s=this.rules.length,u=X(this.baseHash,l.hash),c="",h=0;h>>0);if(!e.hasNameForId(n,g)){var m=l(c,"."+g,void 0,n);e.insertRules(n,g,m)}r.push(g)}}return r.join(" ")},t}(),tt=/^\s*\/\/.*$/gm,et=[":","[",".","#"];function lt(t){var e,l,n,r,i=void 0===t?v:t,o=i.options,a=void 0===o?v:o,u=i.plugins,c=void 0===u?m:u,h=new s.a(a),d=[],f=function(t){function e(e){if(e)try{t(e+"}")}catch(t){}}return function(l,n,r,i,o,a,s,u,c,h){switch(l){case 1:if(0===c&&64===n.charCodeAt(0))return t(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return t(r[0]+n),"";default:return n+(0===h?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(e)}}}((function(t){d.push(t)})),p=function(t,n,i){return 0===n&&et.includes(i[l.length])||i.match(r)?t:"."+e};function g(t,i,o,a){void 0===a&&(a="&");var s=t.replace(tt,""),u=i&&o?o+" "+i+" { "+s+" }":s;return e=a,l=i,n=new RegExp("\\"+l+"\\b","g"),r=new RegExp("(\\"+l+"\\b){2,}"),h(o||!i?"":i,u)}return h.use([].concat(c,[function(t,e,r){2===t&&r.length&&r[0].lastIndexOf(l)>0&&(r[0]=r[0].replace(n,p))},f,function(t){if(-2===t){var e=d;return d=[],e}}])),g.hash=c.length?c.reduce((function(t,e){return e.name||C(15),X(t,e.name)}),5381).toString():"",g}var nt=i.a.createContext(),rt=nt.Consumer,it=i.a.createContext(),ot=(it.Consumer,new W),at=lt();function st(){return Object(r.useContext)(nt)||ot}function ut(){return Object(r.useContext)(it)||at}function ct(t){var e=Object(r.useState)(t.stylisPlugins),l=e[0],n=e[1],o=st(),s=Object(r.useMemo)((function(){var e=o;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),u=Object(r.useMemo)((function(){return lt({options:{prefix:!t.disableVendorPrefixes},plugins:l})}),[t.disableVendorPrefixes,l]);return Object(r.useEffect)((function(){a()(l,t.stylisPlugins)||n(t.stylisPlugins)}),[t.stylisPlugins]),i.a.createElement(nt.Provider,{value:s},i.a.createElement(it.Provider,{value:u},t.children))}var ht=function(){function t(t,e){var l=this;this.inject=function(t,e){void 0===e&&(e=at);var n=l.name+e.hash;t.hasNameForId(l.id,n)||t.insertRules(l.id,n,e(l.rules,n,"@keyframes"))},this.toString=function(){return C(12,String(l.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=e}return t.prototype.getName=function(t){return void 0===t&&(t=at),this.name+t.hash},t}(),dt=/([A-Z])/,ft=/([A-Z])/g,pt=/^ms-/,gt=function(t){return"-"+t.toLowerCase()};function mt(t){return dt.test(t)?t.replace(ft,gt).replace(pt,"-ms-"):t}var vt=function(t){return null==t||!1===t||""===t};function yt(t,e,l,n){if(Array.isArray(t)){for(var r,i=[],o=0,a=t.length;o1?e-1:0),n=1;n?@[\\\]^`{|}~-]+/g,_t=/(^-|-$)/g;function St(t){return t.replace(xt,"-").replace(_t,"")}var Mt=function(t){return q(K(t)>>>0)};function Et(t){return"string"==typeof t&&!0}var Ct=function(t){return"function"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)},kt=function(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t};function Tt(t,e,l){var n=t[l];Ct(e)&&Ct(n)?Ot(n,e):t[l]=e}function Ot(t){for(var e=arguments.length,l=new Array(e>1?e-1:0),n=1;n=0||(r[l]=t[l]);return r}(e,["componentId"]),i=n&&n+"-"+(Et(t)?t:St(b(t)));return Lt(t,f({},r,{attrs:_,componentId:i}),l)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?Ot({},t.defaultProps,e):e}}),M.toString=function(){return"."+M.styledComponentId},o&&d()(M,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),M}var Rt=function(t){return function t(e,l,r){if(void 0===r&&(r=v),!Object(n.isValidElementType)(l))return C(1,String(l));var i=function(){return e(l,r,bt.apply(void 0,arguments))};return i.withConfig=function(n){return t(e,l,f({},r,{},n))},i.attrs=function(n){return t(e,l,f({},r,{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},i}(Lt,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(t){Rt[t]=Rt(t)}));var Nt=function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=$(t),W.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(t,e,l,n){var r=n(yt(this.rules,e,l,n).join(""),""),i=this.componentId+t;l.insertRules(i,i,r)},e.removeStyles=function(t,e){e.clearRules(this.componentId+t)},e.renderStyles=function(t,e,l,n){t>2&&W.registerId(this.componentId+t),this.removeStyles(t,l),this.createStyles(t,e,l,n)},t}();function jt(t){for(var e=arguments.length,l=new Array(e>1?e-1:0),n=1;n1?e-1:0),n=1;n"+e+""},this.getStyleTags=function(){return t.sealed?C(2):t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)return C(2);var l=((e={})[x]="",e["data-styled-version"]="5.2.1",e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),n=B();return n&&(l.nonce=n),[i.a.createElement("style",f({},l,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var e=t.prototype;return e.collectStyles=function(t){return this.sealed?C(2):i.a.createElement(ct,{sheet:this.instance},t)},e.interleaveWithNodeStream=function(t){return C(3)},t}(),zt=function(t){var e=i.a.forwardRef((function(e,l){var n=Object(r.useContext)(At),o=t.defaultProps,a=wt(e,n,o);return i.a.createElement(t,f({},e,{theme:a,ref:l}))}));return d()(e,t),e.displayName="WithTheme("+b(t)+")",e},Ut=function(){return Object(r.useContext)(At)},Ht={StyleSheet:W,masterSheet:ot};e.default=Rt}.call(this,l(83))},function(t,e,l){"use strict";function n(t,e,l){return e in t?Object.defineProperty(t,e,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[e]=l,t}l.d(e,"a",(function(){return n}))},function(t,e,l){"use strict";var n=function(t){};t.exports=function(t,e){for(var l=arguments.length,r=new Array(l>2?l-2:0),i=2;i1&&s.forEach((function(l){var r;n[l]=t(((r={})[l]=e[l],r))})),n},h=function(t,e,l,n,i){var o={};return n.slice(0,t.length).forEach((function(n,a){var s,u=t[a],c=e(n,l,i);u?r()(o,((s={})[u]=r()({},o[u],c),s)):r()(o,c)})),o},d=function(t,e,l,n,i){var o={};for(var s in n){var u=t[s],c=e(n[s],l,i);if(u){var h,d=a(u);r()(o,((h={})[d]=r()({},o[d],c),h))}else r()(o,c)}return o},f=function(t){var e=t.properties,l=t.property,n=t.scale,r=t.transform,i=void 0===r?s:r,o=t.defaultScale;e=e||[l];var a=function(t,l,n){var r={},o=i(t,l,n);if(null!==o)return e.forEach((function(t){r[t]=o})),r};return a.scale=n,a.defaults=o,a},p=function(t){void 0===t&&(t={});var e={};return Object.keys(t).forEach((function(l){var n=t[l];e[l]=!0!==n?"function"!==typeof n?f(n):n:f({property:l,scale:l})})),c(e)},g=p({width:{property:"width",scale:"sizes",transform:function(t,e){return u(e,t,!function(t){return"number"===typeof t&&!isNaN(t)}(t)||t>1?t:100*t+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0}),m=g,v={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};v.bg=v.backgroundColor;var y=p(v),b=y,w=p({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),x=w,_=p({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),S=_,M={space:[0,4,8,16,32,64,128,256,512]},E=p({gridGap:{property:"gridGap",scale:"space",defaultScale:M.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:M.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:M.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),C={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};C.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},C.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},C.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},C.borderBottomColor={property:"borderBottomColor",scale:"colors"},C.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},C.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},C.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},C.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},C.borderLeftColor={property:"borderLeftColor",scale:"colors"},C.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},C.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},C.borderRightColor={property:"borderRightColor",scale:"colors"},C.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var k=p(C),T=k,O={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};O.bgImage=O.backgroundImage,O.bgSize=O.backgroundSize,O.bgPosition=O.backgroundPosition,O.bgRepeat=O.backgroundRepeat;var A=p(O),D={space:[0,4,8,16,32,64,128,256,512]},P=p({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:D.space},right:{property:"right",scale:"space",defaultScale:D.space},bottom:{property:"bottom",scale:"space",defaultScale:D.space},left:{property:"left",scale:"space",defaultScale:D.space}}),I=P,L={space:[0,4,8,16,32,64,128,256,512]},R=function(t){return"number"===typeof t&&!isNaN(t)},N=function(t,e){if(!R(t))return u(e,t,t);var l=t<0,n=Math.abs(t),r=u(e,n,n);return R(r)?r*(l?-1:1):l?"-"+r:r},j={};j.margin={margin:{property:"margin",scale:"space",transform:N,defaultScale:L.space},marginTop:{property:"marginTop",scale:"space",transform:N,defaultScale:L.space},marginRight:{property:"marginRight",scale:"space",transform:N,defaultScale:L.space},marginBottom:{property:"marginBottom",scale:"space",transform:N,defaultScale:L.space},marginLeft:{property:"marginLeft",scale:"space",transform:N,defaultScale:L.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:N,defaultScale:L.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:N,defaultScale:L.space}},j.margin.m=j.margin.margin,j.margin.mt=j.margin.marginTop,j.margin.mr=j.margin.marginRight,j.margin.mb=j.margin.marginBottom,j.margin.ml=j.margin.marginLeft,j.margin.mx=j.margin.marginX,j.margin.my=j.margin.marginY,j.padding={padding:{property:"padding",scale:"space",defaultScale:L.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:L.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:L.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:L.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:L.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:L.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:L.space}},j.padding.p=j.padding.padding,j.padding.pt=j.padding.paddingTop,j.padding.pr=j.padding.paddingRight,j.padding.pb=j.padding.paddingBottom,j.padding.pl=j.padding.paddingLeft,j.padding.px=j.padding.paddingX,j.padding.py=j.padding.paddingY;var B=p(j.margin),F=p(j.padding),z=function(){for(var t={},e=arguments.length,l=new Array(e),n=0;n=0)return Z(t,e,e);var l=Math.abs(e),n=Z(t,l,l);return"string"===typeof n?"-"+n:-1*n},K=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(t,e){var l;return H({},t,((l={})[e]=X,l))}),{}),$=function t(e){return function(l){void 0===l&&(l={});var n=H({},W,{},l.theme||l),r={},i=function(t){return function(e){var l={},n=Z(e,"breakpoints",V),r=[null].concat(n.map((function(t){return"@media screen and (min-width: "+t+")"})));for(var i in t){var o="function"===typeof t[i]?t[i](e):t[i];if(null!=o)if(Array.isArray(o))for(var a=0;an||s.newline?(i=0,c=m,o+=a+l,a=f.height):a=Math.max(a,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(h=o+v)>r||s.newline?(i+=a+l,o=0,h=v,a=f.width):a=Math.max(a,f.width)}s.newline||(d[0]=i,d[1]=o,"horizontal"===t?i=c+l:o=h+l)}))}var h=c,d=n.curry(c,"vertical"),f=n.curry(c,"horizontal");function p(t,e,l){l=o.normalizeCssArray(l||0);var n=e.width,a=e.height,s=i(t.left,n),u=i(t.top,a),c=i(t.right,n),h=i(t.bottom,a),d=i(t.width,n),f=i(t.height,a),p=l[2]+l[0],g=l[1]+l[3],m=t.aspect;switch(isNaN(d)&&(d=n-c-g-s),isNaN(f)&&(f=a-h-p-u),null!=m&&(isNaN(d)&&isNaN(f)&&(m>n/a?d=.8*n:f=.8*a),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(s)&&(s=n-c-d-g),isNaN(u)&&(u=a-h-f-p),t.left||t.right){case"center":s=n/2-d/2-l[3];break;case"right":s=n-d-g}switch(t.top||t.bottom){case"middle":case"center":u=a/2-f/2-l[0];break;case"bottom":u=a-f-p}s=s||0,u=u||0,isNaN(d)&&(d=n-g-s-(c||0)),isNaN(f)&&(f=a-p-u-(h||0));var v=new r(s+l[3],u+l[0],d,f);return v.margin=l,v}function g(t,e){return e&&t&&a(s,(function(l){e.hasOwnProperty(l)&&(t[l]=e[l])})),t}e.LOCATION_PARAMS=s,e.HV_NAMES=u,e.box=h,e.vbox=d,e.hbox=f,e.getAvailableSize=function(t,e,l){var n=e.width,r=e.height,a=i(t.x,n),s=i(t.y,r),u=i(t.x2,n),c=i(t.y2,r);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(s)||isNaN(parseFloat(t.y)))&&(s=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),l=o.normalizeCssArray(l||0),{width:Math.max(u-a-l[1]-l[3],0),height:Math.max(c-s-l[0]-l[2],0)}},e.getLayoutRect=p,e.positionElement=function(t,e,l,i,o){var a=!o||!o.hv||o.hv[0],s=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(a||s){var c;if("raw"===u)c="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(c=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(c=c.clone()).applyTransform(h)}e=p(n.defaults({width:c.width,height:c.height},e),l,i);var d=t.position,f=a?e.x-c.x:0,g=s?e.y-c.y:0;t.attr("position","raw"===u?[f,g]:[d[0]+f,d[1]+g])}},e.sizeCalculable=function(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]},e.mergeLayoutParam=function(t,e,l){!n.isObject(l)&&(l={});var r=l.ignoreSize;!n.isArray(r)&&(r=[r,r]);var i=s(u[0],0),o=s(u[1],1);function s(l,n){var i={},o=0,s={},u=0;if(a(l,(function(e){s[e]=t[e]})),a(l,(function(t){c(e,t)&&(i[t]=s[t]=e[t]),h(i,t)&&o++,h(s,t)&&u++})),r[n])return h(e,l[1])?s[l[2]]=null:h(e,l[2])&&(s[l[1]]=null),s;if(2!==u&&o){if(o>=2)return i;for(var d=0;d"'])/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"};function u(t){return null==t?"":(t+"").replace(a,(function(t,e){return s[e]}))}var c=["a","b","c","d","e","f","g"],h=function(t,e){return"{"+t+(null==e?"":e)+"}"};function d(t,e){return"0000".substr(0,e-(t+="").length)+t}var f=r.truncateText;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},e.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},e.normalizeCssArray=o,e.encodeHTML=u,e.formatTpl=function(t,e,l){n.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o':'':{renderMode:i,content:"{marker"+o+"|} ",style:{color:l}}:""},e.formatTime=function(t,e,l){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=i.parseDate(e),r=l?"UTC":"",o=n["get"+r+"FullYear"](),a=n["get"+r+"Month"]()+1,s=n["get"+r+"Date"](),u=n["get"+r+"Hours"](),c=n["get"+r+"Minutes"](),h=n["get"+r+"Seconds"](),f=n["get"+r+"Milliseconds"]();return t=t.replace("MM",d(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100).replace("dd",d(s,2)).replace("d",s).replace("hh",d(u,2)).replace("h",u).replace("mm",d(c,2)).replace("m",c).replace("ss",d(h,2)).replace("s",h).replace("SSS",d(f,3))},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=f,e.getTextBoundingRect=function(t){return r.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},e.getTextRect=function(t,e,l,n,i,o,a,s){return r.getBoundingRect(t,e,l,n,i,s,o,a)},e.windowOpen=function(t,e){if("_blank"===e||"blank"===e){var l=window.open();l.opener=null,l.location=t}else window.open(t,e)}},function(t,e,l){"use strict";l.d(e,"a",(function(){return c})),l.d(e,"b",(function(){return h}));var n=l(95),r=l(178),i=l.n(r),o=l(0),a=l.n(o),s=Object(o.createContext)({}),u=s.Consumer,c=s.Provider,h=function(t){var e=function(e,l){return a.a.createElement(u,null,(function(r){return a.a.createElement(t,Object(n.a)({},e,{leaflet:r,ref:l}))}))},l=t.displayName||t.name||"Component";e.displayName="Leaflet("+l+")";var r=Object(o.forwardRef)(e);return i()(r,t),r}},function(t,e,l){"use strict";l.d(e,"a",(function(){return i}));var n=l(0),r=l(259);function i(t,e){return n.useMemo((function(){return null==t&&null==e?null:function(l){Object(r.a)(t,l),Object(r.a)(e,l)}}),[t,e])}},function(t,e,l){var n=l(174),r=l(45);t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?r(t):e}},function(t,e){var l,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(l===setTimeout)return setTimeout(t,0);if((l===i||!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(){try{l="function"===typeof setTimeout?setTimeout:i}catch(t){l=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var s,u=[],c=!1,h=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):h=-1,u.length&&f())}function f(){if(!c){var t=a(d);c=!0;for(var e=u.length;e;){for(s=u,u=[];++h1)for(var l=1;l=0||l.isRange){var i=Object.assign({},t.leftTop);i.left-="column"===e||n<0?1:0,r=s.default.makeLinePath(i,t.rightTop).join(" ")}return r},t.prototype._makeRightLinePath=function(t,e,l){var n=null;return("column"===e||l.value>=0||l.isRange)&&(n=s.default.makeLinePath(t.rightTop,t.rightBottom).join(" ")),n},t.prototype._makeBottomLinePath=function(t,e,l){var n=null;return("bar"===e||l.value<0||l.isRange)&&(n=s.default.makeLinePath(t.leftBottom,t.rightBottom).join(" ")),n},t.prototype._makeLeftLinePath=function(t,e,l){var n=null;return("column"===e||l.value<0||l.isRange)&&(n=s.default.makeLinePath(t.leftTop,t.leftBottom).join(" ")),n},t.prototype._makeBorderLinesPaths=function(t,e,l){var n=this._makeRectPoints(t),r={top:this._makeTopLinePath(n,e,l),right:this._makeRightLinePath(n,e,l),bottom:this._makeBottomLinePath(n,e,l),left:this._makeLeftLinePath(n,e,l)};return Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r},t.prototype._renderBorderLines=function(t,e,l,r){var i=this._makeBorderLinesPaths(t,l,r),o={};return Object.entries(i).forEach((function(t){var l=n(t,2),r=l[0],i=l[1];o[r]=s.default.renderLine(self.paper,i,{color:e,strokeWidth:1})})),o},t.prototype._renderBarBorders=function(t){var e=this,l=this.theme.borderColor;return l?t.map((function(t,n){return t.map((function(t,r){if(!t)return null;var i=e.seriesDataModel.getSeriesItem(n,r);return e._renderBorderLines(t.start,l,self.chartType,i)}))})):null},t.prototype._animateRect=function(t,e,l){t.animate({x:e.width?e.left:e.left-1,y:e.height?e.top:e.top-1,width:e.width?e.width:2,height:e.height?e.height:2,opacity:e.height&&e.width?1:.4},l,">")},t.prototype._animateBorders=function(t,e,l,n){var r=this._makeBorderLinesPaths(e,l,n);(0,a.default)(t,(function(t,e){t.animate({path:r[e]},700,">")}))},t.prototype.animate=function(t){var e=this,l=this.groupBorders||[],n=this.options.animationDuration;s.default.forEach2dArray(this.groupBars,(function(t,r,i){var o=l[r]&&l[r][i];t&&(n&&e._animateRect(t.rect,t.bound,n),o&&e._animateBorders(o,t.bound,e.chartType,t.item))})),t&&(this.callbackTimeout=setTimeout((function(){t(),delete e.callbackTimeout}),n))},t.prototype.showAnimation=function(t){var e=this.groupBars[t.groupIndex][t.index],l=e.bound;this.overlay.attr({width:l.width+8,height:l.height+8,stroke:"#fff","stroke-width":"1",x:l.left-4,y:l.top-4,"fill-opacity":1}),this.resortBarIndex(t.groupIndex),this.overlay.toFront(),e.rect.toFront(),this.labelSet&&this.labelSet.toFront(),this.overlay.node.setAttribute("filter","url(#shadow)")},t.prototype.hideAnimation=function(t){this.resortBarIndex(t.groupIndex),this.overlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0}),this.labelSet&&this.labelSet.toFront()},t.prototype.resortBarIndex=function(t){this.groupBars[t].forEach((function(t){t.rect.toFront()}))},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=this,l=this.groupBorders||[],n=t.dimension,r=t.groupBounds;this.groupBounds=r,this.paper.setSize(n.width,n.height),s.default.forEach2dArray(this.groupBars,(function(t,n,i){if(t){var o=l[n]&&l[n][i],a=r[n][i].end;t.bound=a,s.default.updateRectBound(t.rect,a),o&&e._updateBordersPath(o,a,e.chartType,t.item)}}))},t.prototype._changeBordersColor=function(t,e){(0,a.default)(t,(function(t){t.attr({stroke:e})}))},t.prototype._changeBarColor=function(t,e,l){if(this.groupBars[t.groupIndex][t.index].rect.attr({fill:e}),l){var n=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(n,l)}},t.prototype.selectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],l=r.default.color(e.color),n=this.theme.selectionColor||s.default.makeChangedLuminanceColor(l.hex,.2),i=this.theme.borderColor;if(i){var o=r.default.color(i);i=s.default.makeChangedLuminanceColor(o.hex,.2)}this._changeBarColor(t,n,i)},t.prototype.unselectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],l=this.theme.borderColor;this._changeBarColor(t,e.color,l)},t.prototype.selectLegend=function(t){var e=this.groupBorders||[],l=(0,i.default)(t);s.default.forEach2dArray(this.groupBars,(function(n,r,i){if(n){var o=e[r]&&e[r][i],s=l||t===i?1:.3;n.rect.attr({"fill-opacity":s}),o&&(0,a.default)(o,(function(t){t.attr({"stroke-opacity":s})}))}}))},t.prototype.renderSeriesLabel=function(t,e,l,n,r){var i=r||"column"===this.chartType?"middle":"start",o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":i},a=this.labelSet=t.set();return l.forEach((function(l,n){l.forEach((function(l,r){var i=e[n][r],u=s.default.renderText(t,i.end,l.end,o),c=u.node.style;if(c.userSelect="none",c.cursor="default",a.push(u),i.start){var h=s.default.renderText(t,i.start,l.start,o);h.node.style.userSelect="none",h.node.style.cursor="default",a.push(h)}}))})),a},t.prototype._calculateConnectorPosition=function(t,e){for(var l=[],r="bar"===this.chartType,i=n(t,2),o=i[0],a=i[1],s=n(e,2),u=s[0],c=s[1],h=0;h2&&void 0!==arguments[2]?arguments[2]:1,n=[t.left,t.top],r=[e.left,e.top],i=l%2/2;return n.forEach((function(t,e){t===r[e]&&(n[e]=r[e]=Math.round(t)-i)})),["M"].concat(n,["L"],r)},renderLine:function(t,e,l){var n=l.color,r=l.strokeWidth,o=l.dotted,a=l.connector,s=t.path([e]),u={stroke:n,"stroke-width":(0,i.default)(r)?2:r,"stroke-linecap":"butt",opacity:a?0:1};return"transparent"===n&&(u.stroke="#fff",u["stroke-opacity"]=0),s.attr(u).node.setAttribute("class","auto-shape-rendering"),o&&s.attr(u).node.setAttribute("class","stroke-dasharray"),s},getEllipsisText:function(t,e,l){for(var n=String(t).split(""),r=n.length,i="",o=2*this.getRenderedTextSize(".",l.fontSize,l.fontFamily).width,a=0;a=e){i+="..";break}i+=n[a]}return i},renderText:function(t,e,l,n){var r=t.text(e.left,e.top,(0,o.default)(String(l)));return n&&(n["dominant-baseline"]?r.node.setAttribute("dominant-baseline",n["dominant-baseline"]):r.node.setAttribute("dominant-baseline","central"),r.attr(n)),r},renderArea:function(t,e,l){var n=t.path(e);return l=Object.assign({"stroke-opacity":0},l),n.attr(l),n},renderCircle:function(t,e,l,n){var r=t.circle(e.left,e.top,l);return n&&r.attr(n),r},renderRect:function(t,e,l){var n=t.rect(e.left,e.top,e.width,e.height);return l&&n.attr(l),n},updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},forEach2dArray:function(t,e){t&&t.forEach((function(t,l){t.forEach((function(t,n){e(t,l,n)}))}))},makeChangedLuminanceColor:function(t,e){return t=t.replace("#",""),e=e||0,"#"+(0,n.default)(3).map((function(l){var n=parseInt(t.substr(2*l,2),16),r=n+n*e;return r=Math.round(Math.min(Math.max(0,r),255)).toString(16),s.default.formatToZeroFill(r,2)})).join("")},getRenderedTextSize:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:11,l=arguments[2],n=c.canvasElement;return n?this._getTextDimensionWithCanvas(t,e,l):this._getTextDimensionUseHtmlElement(t,e,l)},_getTextDimensionWithCanvas:function(t,e,l){var n=c.canvasElement,r=c.cacheFontInfo,i=n.getContext("2d"),o=e+"px "+l;return r!==o&&(c.cacheFontInfo=o,i.font=o),{width:i.measureText(t).width,height:1.11*e}},_getTextDimensionUseHtmlElement:function(t,e,l){var n=c.cacheFontInfo,r=c.elementForTextSize;if(!r){var i=(r=document.createElement("div")).style;this._setBasicHtmlElementStyleForGetTextSize(i),document.body.appendChild(r),c.elementForTextSize=r}var o=e+"px "+l;if(n!==o){var a=r.style;a.fontFamily=l,a.fontSize=e+"px",c.cacheFontInfo=o}return r.innerHTML=t,{width:r.clientWidth,height:r.clientHeight}},_setBasicHtmlElementStyleForGetTextSize:function(t){t.visibility="hidden",t.position="absolute",t.margin=0,t.padding=0,t.lineHeight=1.11,t.whiteSpace="nowrap"},animateOpacity:function(t,e,l,n){var r=h(n)?n:600,i=h(e)?e:0,o=h(l)?l:1,s=a.default.animation({opacity:o},r);t.attr({opacity:i}),t.animate(s)},getDefaultAnimationDuration:function(t){switch(t){case"boxplot":case"combo":case"pie":case"scatter":case"bubble":case"area":case"line":case"column":case"bar":return 700;case"heatmap":case"treemap":return 600;default:return 0}}}},function(t,e,l){"use strict";var n=l(14);t.exports=function(t,e,l){var r,i=[];for(n(e)&&(e=t||0,t=0),e*=r=(l=l||1)<0?-1:1;t*r","'":"'"," ":" "};return t.replace(/&|<|>|"|'| /g,(function(t){return e[t]?e[t]:t}))}},function(t,e,l){"use strict";e.__esModule=!0;var n=g(l(9)),r=g(l(18)),i=g(l(15)),o=g(l(19)),a=g(l(14)),s=g(l(20)),u=g(l(8)),c=g(l(10)),h=g(l(22)),d=g(l(23)),f=g(l(24)),p=g(l(27));function g(t){return t&&t.__esModule?t:{default:t}}function m(t){if(Array.isArray(t)){for(var e=0,l=Array(t.length);e1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=[];return t.fontSize&&e.push(this.concatStr("font-size:",t.fontSize,"px")),t.fontFamily&&e.push(this.concatStr("font-family:",t.fontFamily)),t.color&&e.push(this.concatStr("color:",t.color)),t.fontWeight&&e.push(this.concatStr("font-weight:",t.fontWeight)),e.length?e.join(";"):""},_makeCachingKey:function(t,e,l){var n=[t,l];return(0,u.default)(e,(function(t,e){n.push(t+e)})),n.join("-")},_addCssStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.fontSize,n=e.fontFamily,r=e.fontWeight,i=e.cssText;t.style.fontSize=(l||d.default.DEFAULT_LABEL_FONT_SIZE)+"px",n&&(t.style.fontFamily=n),r&&(t.style.fontWeight=r),i&&(t.style.cssText+=i)},sizeCache:{},_getRenderedLabelSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments[2];if(!(t=String(t)))return 0;var n=this._makeCachingKey(t,e,l),r=this.sizeCache[n];if(!r){var i=this._createSizeCheckEl(),o=i.firstChild;o.innerText=t,this._addCssStyle(i,e),document.body.appendChild(i),r=o[l],document.body.removeChild(i),this.sizeCache[n]=r}return r},checkEl:null,_createSizeCheckEl:function(){if(this.checkEl)this.checkEl.style.cssText="";else{var t=f.default.create("DIV","tui-chart-size-check-element"),e=f.default.create("SPAN");t.appendChild(e),this.checkEl=t}return this.checkEl},getRenderedLabelWidth:function(t,e){return this._getRenderedLabelSize(t,e,"offsetWidth")},getRenderedLabelHeight:function(t,e){return this._getRenderedLabelSize(t,e,"offsetHeight")},_getRenderedLabelsMaxSize:function(t,e,l){var n=0;if(t&&t.length){var r=t.map((function(t){return l(t,e)}));n=p.default.max(r)}return n},getRenderedLabelsMaxWidth:function(t,e,l){var n=this.getRenderedLabelWidth.bind(this),r=this._getRenderedLabelsMaxSize(t,e,n);return l?Math.min(l,r):r},getRenderedLabelsMaxHeight:function(t,e){var l=this.getRenderedLabelHeight.bind(this);return this._getRenderedLabelsMaxSize(t,e,l)},renderDimension:function(t,e){var l=e.width,n=void 0===l?0:l,r=e.height,i=void 0===r?0:r;t.style.cssText=[this.concatStr("width:",n,"px"),this.concatStr("height:",i,"px")].join(";")},renderPosition:function(t,e){(0,a.default)(e)||(0,c.default)(["top","bottom","left","right"],(function(l){var n=e[l];(0,o.default)(n)&&(t.style[l]=n+"px")}))},renderBackground:function(t,e){e&&(t.style.background=e)},renderFontFamily:function(t,e){e&&(t.style.fontFamily=e)},renderTitle:function(t,e,l){if(!t)return null;var n=w.makeFontCssText(e),r=f.default.create("DIV",l);return r.innerHTML=t,e.background&&(n+=";"+this.concatStr("background:",e.background)),r.style.cssText=n,r},expandBound:function(t){var e=t.dimension,l=t.position;return{dimension:{width:e.width+2*d.default.SERIES_EXPAND_SIZE,height:e.height+2*d.default.SERIES_EXPAND_SIZE},position:{left:l.left-d.default.SERIES_EXPAND_SIZE,top:l.top-d.default.SERIES_EXPAND_SIZE}}},_properCase:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},makeMouseEventDetectorName:function(t,e,l){return t+this._properCase(e)+this._properCase(l)},formatValue:function(t){var e=t.value,l=t.formatFunctions,n=t.valueType,r=void 0===n?"value":n,i=t.areaType,o=t.legendName,a=t.chartType;return[String(e)].concat(m(l||[])).reduce((function(t,e){return e(t,a,i,r,o)}))},formatValues:function(t,e){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=l.chartType,r=l.areaType,i=l.valueType;return e&&e.length?t.map((function(t){return w.formatValue({value:t,formatFunctions:e,chartType:n,areaType:r,valueType:i})})):t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.DEFAULT_DATE_FORMAT,l=(0,r.default)(t)?t:new Date(t);return(0,s.default)(e,l)||t},formatDates:function(t){var e=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.DEFAULT_DATE_FORMAT;return t.map((function(t){return e.formatDate(t,l)}))},cancelAnimation:function(t){t&&t.id&&(cancelAnimationFrame(t.id),delete t.id)},startAnimation:function(t,e,l){var n={},r=(new Date).getTime();return n.id=requestAnimationFrame((function i(){var o=(new Date).getTime()-r,a=Math.min(o/t,1);e(a),1===a?(delete n.id,l&&l()):n.id=requestAnimationFrame(i)})),n},isOldBrowser:function(){return v},formatToZeroFill:function(t,e){if((t=String(t)).length>=e)return t;for(;t.length-1?"-":"",r="",i=void 0,o=void 0,a=void 0;return t.indexOf(".")>-1?(i=t.split("."),t=String(Math.abs(i[0])),r="."+i[1]):t=String(Math.abs(t)),t.length<=3?a=l:(i=t.split("").reverse(),o=i.length-1,i=i.map((function(t,e){var l=[t];return e1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return l=this._perseString(l),n=this._perseString(n),""!==l||""!==n?t.map((function(t){return e.addPrefixSuffixItem(t,l,n)})):t},addPrefixSuffixItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(e=this._perseString(e))+t+(l=this._perseString(l))},getStyle:function(t){return y?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t="clipRectForAnimation"+b;return b+=1,t}};function x(t,e){t=(0,n.default)(t)?t:[t],(0,c.default)(t,e)}function _(t){return"alpha(opacity="+t*d.default.OLD_BROWSER_OPACITY_100+")"}v?(w.makeOpacityCssText=function(t){var e="";return(0,i.default)(t)&&(e=";filter:"+_(t)),e},w.setOpacity=function(t,e){var l=_(e);x(t,(function(t){t.style.filter=l}))}):(w.makeOpacityCssText=function(t){var e="";return(0,i.default)(t)&&(e=";opacity:"+t),e},w.setOpacity=function(t,e){x(t,(function(t){t.style.opacity=e}))}),e.default=w},function(t,e){"use strict";t.exports=function(t){return t instanceof Date}},function(t,e){"use strict";t.exports=function(t){return"number"===typeof t||t instanceof Number}},function(t,e,l){"use strict";var n=l(21),r=l(18),i=/[\\]*YYYY|[\\]*YY|[\\]*MMMM|[\\]*MMM|[\\]*MM|[\\]*M|[\\]*DD|[\\]*D|[\\]*HH|[\\]*H|[\\]*A/gi,o=["Invalid month","January","February","March","April","May","June","July","August","September","October","November","December"],a=[0,31,28,31,30,31,30,31,31,30,31,30,31],s={M:function(t){return Number(t.month)},MM:function(t){var e=t.month;return Number(e)<10?"0"+e:e},MMM:function(t){return o[Number(t.month)].substr(0,3)},MMMM:function(t){return o[Number(t.month)]},D:function(t){return Number(t.date)},d:function(t){return s.D(t)},DD:function(t){var e=t.date;return Number(e)<10?"0"+e:e},dd:function(t){return s.DD(t)},YY:function(t){return Number(t.year)%100},yy:function(t){return s.YY(t)},YYYY:function(t){var e="20",l=t.year;return l>69&&l<100&&(e="19"),Number(l)<100?e+String(l):l},yyyy:function(t){return s.YYYY(t)},A:function(t){return t.meridiem},a:function(t){return t.meridiem},hh:function(t){var e=t.hour;return Number(e)<10?"0"+e:e},HH:function(t){return s.hh(t)},h:function(t){return String(Number(t.hour))},H:function(t){return s.h(t)},m:function(t){return String(Number(t.minute))},mm:function(t){var e=t.minute;return Number(e)<10?"0"+e:e}};t.exports=function(t,e,l){var o,u,c=n(l,"meridiemSet","AM")||"AM",h=n(l,"meridiemSet","PM")||"PM";return!!function(t,e,l){var n;return t=Number(t),e=Number(e),l=Number(l),(t>-1&&t<100||t>1969&&t<2070)&&e>0&&e<13&&(n=a[e],2===e&&t%4===0&&(t%100===0&&t%400!==0||(n=29)),l>0&&l<=n)}((u=r(e)?{year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate(),hour:e.getHours(),minute:e.getMinutes()}:{year:e.year,month:e.month,date:e.date,hour:e.hour,minute:e.minute}).year,u.month,u.date)&&(u.meridiem="",/([^\\]|^)[aA]\b/.test(t)&&(o=u.hour>11?h:c,u.hour>12&&(u.hour%=12),0===u.hour&&(u.hour=12),u.meridiem=o),t.replace(i,(function(t){return t.indexOf("\\")>-1?t.replace(/\\/,""):s[t](u)||""})))}},function(t,e,l){"use strict";var n=l(14),r=l(6);t.exports=function(t,e){for(var l=arguments,i=l[0],o=1,a=l.length;o1){l[t]=n=!0,l.version=parseFloat(e[1]||0);break}n||(l.others=!0)}};c[r]&&c[r]()}(),t.exports=l},function(t,e){"use strict";e.__esModule=!0,e.default={CLASS_NAME_LEGEND_LABEL:"tui-chart-legend-label",CLASS_NAME_LEGEND_CHECKBOX:"tui-chart-legend-checkbox",CLASS_NAME_SERIES_LABEL:"tui-chart-series-label",CLASS_NAME_SERIES_LEGEND:"tui-chart-series-legend",CLASS_NAME_RESET_ZOOM_BTN:"tui-chart-reset-zoom-btn",CLASS_NAME_ZOOM_OUT_BTN:"tui-chart-zoom-out-btn",CLASS_NAME_CHART_EXPORT_MENU_AREA:"tui-chart-chartExportMenu-area",CLASS_NAME_CHART_EXPORT_MENU_ITEM:"tui-chart-chartExportMenu-item",CLASS_NAME_CHART_EXPORT_MENU_BUTTON:"tui-chart-chartExportMenu-button",CLASS_NAME_CHART_EXPORT_MENU_HEAD:"tui-chart-chartExportMenu-head",CLASS_NAME_CHART_EXPORT_MENU_BODY:"tui-chart-chartExportMenu-body",CLASS_NAME_TOOLTIP_VALUE:"tui-chart-tooltip-value",CLASS_NAME_TOOLTIP_HEAD:"tui-chart-tooltip-head",CLASS_NAME_TOOLTIP_BODY:"tui-chart-tooltip-body",CLASS_NAME_SVG_AUTOSHAPE:"auto-shape-rendering",CHART_TYPE_BAR:"bar",CHART_TYPE_COLUMN:"column",CHART_TYPE_LINE:"line",CHART_TYPE_AREA:"area",CHART_TYPE_COMBO:"combo",CHART_TYPE_COLUMN_LINE_COMBO:"columnLineCombo",CHART_TYPE_LINE_SCATTER_COMBO:"lineScatterCombo",CHART_TYPE_LINE_AREA_COMBO:"lineAreaCombo",CHART_TYPE_PIE_DONUT_COMBO:"pieDonutCombo",CHART_TYPE_PIE:"pie",CHART_TYPE_BUBBLE:"bubble",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_HEATMAP:"heatmap",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_MAP:"map",CHART_TYPE_RADIAL:"radial",CHART_TYPE_BOXPLOT:"boxplot",CHART_TYPE_BULLET:"bullet",CHART_PADDING:10,CHART_DEFAULT_WIDTH:500,CHART_DEFAULT_HEIGHT:400,OVERLAPPING_WIDTH:1,TEXT_PADDING:2,SERIES_EXPAND_SIZE:10,SERIES_AREA_V_PADDING:10,SERIES_LABEL_PADDING:5,SERIES_EXTRA_EVENT_AREA_FOR_ZERO:2,DEFAULT_TITLE_FONT_SIZE:14,DEFAULT_AXIS_TITLE_FONT_SIZE:10,DEFAULT_LABEL_FONT_SIZE:12,DEFAULT_SERIES_LABEL_FONT_SIZE:11,DEFAULT_PLUGIN:"Raphael",DEFAULT_TICK_COLOR:"black",DEFAULT_THEME_NAME:"default",MAX_HEIGHT_WORD:"A",NORMAL_STACK_TYPE:"normal",PERCENT_STACK_TYPE:"percent",DEFAULT_STACK:"___DEFAULT___STACK___",DUMMY_KEY:"___DUMMY___KEY___",TREEMAP_ROOT_ID:"___TUI_TREEMAP_ROOT___",TREEMAP_ID_PREFIX:"___TUI_TREEMAP_ID___",TREEMAP_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_DEPTH___",TREEMAP_PARENT_KEY_PREFIX:"___TUI_TREEMAP_PARENT___",TREEMAP_LEAF_KEY_PREFIX:"___TUI_TREEMAP_LEAF___",TREEMAP_LIMIT_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_LIMIT_DEPTH___",TREEMAP_DEFAULT_BORDER:"#ffffff",TREEMAP_DEFAULT_BORDER_WIDTH:4,EMPTY_AXIS_LABEL:"",ANGLE_85:85,ANGLE_90:90,ANGLE_360:360,RAD:Math.PI/180,RERENDER_TIME:700,ADDING_DATA_ANIMATION_DURATION:300,LABEL_ALIGN_OUTER:"outer",LEGEND_ALIGN_TOP:"top",LEGEND_ALIGN_BOTTOM:"bottom",LEGEND_ALIGN_LEFT:"left",LEGEND_PAGINATION_BUTTON_WIDTH:20,LEGEND_PAGINATION_BUTTON_PADDING_RIGHT:6,SERIES_OUTER_LABEL_PADDING:20,PIE_GRAPH_DEFAULT_RATIO:.9,PIE_GRAPH_SMALL_RATIO:.75,PIE_GRAPH_LEGEND_LABEL_SIZE:16,PIE_GRAPH_LEGEND_LABEL_INTERVAL:20,SPECTRUM_LEGEND_TICK_COUNT:4,LABEL_SEPARATOR:"\n",MAP_CHART_LABEL_DEFAULT_POSITION_RATIO:{x:.5,y:.5},MAP_CHART_ZOOM_AREA_WIDTH:24,MAP_CHART_ZOOM_AREA_HEIGHT:58,DOT_RADIUS:4,SCATTER_RADIUS:7,THEME_PROPS_MAP:{yAxis:["tickColor","title","label"],series:["label","colors","borderColor","borderWidth","selectionColor","startColor","endColor","overColor","dot","ranges"]},TITLE_AREA_WIDTH_PADDING:20,CHART_EXPORT_MENU_SIZE:24,XAXIS_LABEL_TOP_MARGIN:10,V_LABEL_RIGHT_PADDING:10,TOOLTIP_PREFIX:"tui-chart-tooltip",TOOLTIP_ZINDEX:500,TOOLTIP_ANIMATION_TIME:10,TOOLTIP_PIE_ANIMATION_TIME:50,MIN_PIXEL_TYPE_STEP_SIZE:45,MAX_PIXEL_TYPE_STEP_SIZE:65,PERCENT_STACKED_AXIS_SCALE:{limit:{min:0,max:100},step:25,labels:[0,25,50,75,100]},MINUS_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:0},step:25,labels:[0,-25,-50,-75,-100]},DUAL_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[-100,-75,-50,-25,0,25,50,75,100]},DIVERGING_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[100,75,50,25,0,25,50,75,100]},AXIS_TYPE_DATETIME:"datetime",DEFAULT_DATE_FORMAT:"YYYY.MM.DD hh:mm:dd",DATE_TYPE_YEAR:"year",DATE_TYPE_MONTH:"month",DATE_TYPE_WEEK:"week",DATE_TYPE_DATE:"date",DATE_TYPE_HOUR:"hour",DATE_TYPE_MINUTE:"minute",DATE_TYPE_SECOND:"second",TITLE_PADDING:20,TITLE_ALIGN_CENTER:"center",TITLE_ALIGN_RIGHT:"right",TITLE_ALIGN_LEFT:"left",DEFAULT_HEADER_HEIGHT:10,LEGEND_AREA_H_PADDING:15,LEGEND_AREA_V_PADDING:7,LEGEND_CHECKBOX_SIZE:14,LEGEND_ICON_WIDTH:10,LEGEND_ICON_HEIGHT:10,LEGEND_LABEL_LEFT_PADDING:8,LEGEND_V_LABEL_RIGHT_PADDING:20,LEGEND_H_LABEL_RIGHT_PADDING:25,LEGEND_LINE_ICON_PATH:"M1,9 L1,3 C1,1.8954305 1.8954305,1 3,1 L3,1 C4.1045695,1 5,1.8954305 5,3 L5,7 C5,8.1045695 5.8954305,9 7,9 L7,9 C8.1045695,9 9,8.1045695 9,7 L9,1",MIN_LEGEND_WIDTH:100,MAP_LEGEND_AREA_PADDING_WIDE:22,VERTICAL_MAP_LEGEND_AREA_TOP_PADDING:26,MAP_LEGEND_AREA_PADDING_NARROW:10,MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:4,MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING:6,MAP_LEGEND_WEDGE_SIZE:4,MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE:4,VERTICAL_MAP_LEGEND_HEIGHT:320,HORIZONTAL_MAP_LEGEND_WIDTH:400,MAP_LEGEND_GRAPH_SIZE:6,MAP_LEGEND_LABEL_PADDING:5,CIRCLE_LEGEND_LABEL_FONT_SIZE:9,CIRCLE_LEGEND_PADDING:10,HALF_RATIO:.5,AXIS_BACKGROUND_RIGHT_PADDING:4,X_AXIS_LABEL_PADDING:7,X_AXIS_TITLE_PADDING:5,Y_AXIS_LABEL_PADDING:17,Y_AXIS_TITLE_PADDING:7,DEGREE_CANDIDATES:[25,45,65,85],TICK_INTERVAL_AUTO:"auto",YAXIS_ALIGN_CENTER:"center",XAXIS_LABEL_GUTTER:2,AXIS_STANDARD_MULTIPLE_NUMS:[1,2,5,10,20,50,100],AXIS_LAST_STANDARD_MULTIPLE_NUM:100,AXIS_EDGE_RATIO:8,LABEL_PADDING_TOP:7,LINE_MARGIN_TOP:14,TOOLTIP_GAP:5,TOOLTIP_DIRECTION_FORWARD:"forword",TOOLTIP_DIRECTION_CENTER:"center",TOOLTIP_DIRECTION_BACKWARD:"backword",TOOLTIP_DEFAULT_ALIGN_OPTION:"center top",TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION:"center bottom",HIDE_DELAY:200,OLD_BROWSER_OPACITY_100:100,SERIES_LABEL_OPACITY:.3,WHEEL_TICK:120,MAX_ZOOM_MAGN:5,ZOOM_POSITION_TOP_EXIST_TITLE:5,ZOOM_POSITION_TOP_NONE_TITLE:1,FF_WHEELDELTA_ADJUSTING_VALUE:-40,PUBLIC_EVENT_PREFIX:"public_",PUBLIC_EVENT_MAP:{load:!0,selectLegend:!0,selectSeries:!0,unselectSeries:!0,beforeShowTooltip:!0,afterShowTooltip:!0,beforeHideTooltip:!0,changeCheckedLegends:!0,zoom:!0},RADIAL_PLOT_PADDING:15,RADIAL_MARGIN_FOR_CATEGORY:60,RADIAL_CATEGORY_PADDING:20,COMPONENT_TYPE_DOM:"DOM",COMPONENT_TYPE_RAPHAEL:"Raphael",IMAGE_EXTENSIONS:["png","jpeg"],DATA_EXTENSIONS:["xls","csv"],GUIDE_AREACHART_AREAOPACITY_TYPE:"areaOpacity should be a number between 0 and 1",BULLET_TYPE_ACTUAL:"Actual",BULLET_TYPE_RANGE:"Ranges",BULLET_TYPE_MARKER:"Markers",BULLET_MARKER_STROKE_TICK:3,BULLET_MARKER_BUFFER_POSITION:5,BULLET_RANGES_HEIGHT_RATIO:.7,BULLET_ACTUAL_HEIGHT_RATIO:.28,BULLET_MARKERS_HEIGHT_RATIO:.55,BULLET_MARKER_DETECT_PADDING:3}},function(t,e,l){"use strict";e.__esModule=!0;var n=a(l(9)),r=a(l(25)),i=a(l(26)),o=a(l(10));function a(t){return t&&t.__esModule?t:{default:t}}e.default={create:function(t,e){var l=document.createElement(t);return e&&this.addClass(l,e),l},_getClassNames:function(t){var e=void 0;return t.classList?[].concat(function(t){if(Array.isArray(t)){for(var e=0,l=Array(t.length);e-1||(l.push(e),t.className=l.join(" "))}},removeClass:function(t,e){var l=this._getClassNames(t),n=(0,i.default)(e,l);-1!==n&&(l.splice(n,1),t.className=l.join(" "))},hasClass:function(t,e){var l=this._getClassNames(t);return(0,i.default)(e,l)>-1},findParentByClass:function(t,e,l){var n=t.parentNode;return n?this.hasClass(n,e)?n:"BODY"===n.nodeName||this.hasClass(n,l)?null:this.findParentByClass(n,e,l):null},append:function(t,e){t&&e&&(e=(0,n.default)(e)?e:[e],(0,o.default)(e,(function(e){e&&t.appendChild(e)})))}}},function(t,e){"use strict";t.exports=function(t){return"string"===typeof t||t instanceof String}},function(t,e,l){"use strict";var n=l(9);t.exports=function(t,e,l){var r,i;if(l=l||0,!n(e))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t,l);for(i=e.length,r=l;l>=0&&rs&&(s=i,r=t)}))}else r=Math.max.apply(Math,u(t));return r}e.default={min:function(t,e,l){var r=void 0;if(e){var i=n(t,1);r=i[0];var o=t.slice(1),a=e.call(l,r,0);o.forEach((function(t,n){var i=e.call(l,t,n+1);i0?1:-1,s=t.left,u=t.width/4,d="M"+(s+u)+","+t.top+"H"+(s+3*u),f=h.default.oneLineTrim(o,s+2*u,t.top,t.top+Math.abs(i)*a),p=c.default.renderLine(n,d,{color:l,strokeWidth:1}),g=c.default.renderLine(n,f,{color:l,strokeWidth:1}),m=[];return p.attr({opacity:r?0:1}),g.attr({opacity:r?0:1}),m.push(p),m.push(g),m},t.prototype._renderWhiskers=function(t){var e=this,l=this.theme.colors,n=this.options.colorByPoint,r=[];return t.forEach((function(t,i){var o=[];t.forEach((function(t,r){var a=n?l[i]:l[r];t&&(o=(o=o.concat(e._renderWhisker(t.min,t.start,a))).concat(e._renderWhisker(t.max,t.end,a)))})),r.push(o)})),r},t.prototype._renderMedianLine=function(t){var e=t.width,l="M"+t.left+","+t.top+",H"+(t.left+e),n=c.default.renderLine(this.paper,l,{color:"#fff",strokeWidth:1});return n.attr({opacity:this.animationDuration?0:1}),n},t.prototype._renderMedianLines=function(t){var e=this,l=[];return t.forEach((function(t){var n=[];t.forEach((function(t){t&&n.push(e._renderMedianLine(t.median))})),l.push(n)})),l},t.prototype._renderOutlier=function(t,e){var l=c.default.renderCircle(this.paper,{left:t.left,top:t.top},3.5,{stroke:e,"stroke-width":2});return l.attr({opacity:this.animationDuration?0:1}),l},t.prototype._renderOutliers=function(t){var e=this,l=this.theme.colors,n=this.options.colorByPoint,r=[];return t.forEach((function(t,i){var o=[];t.forEach((function(t,r){var a=n?l[i]:l[r],s=[];t&&(t.outliers.length&&t.outliers.forEach((function(t){s.push(e._renderOutlier(t,a))})),o.push(s))})),r.push(o)})),r},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._renderBorderLines=function(t,e,l,n){var r=this,o=this._makeBorderLinesPaths(t,l,n),a={};return Object.entries(o).forEach((function(t){var l=i(t,2),n=l[0],o=l[1];a[n]=c.default.renderLine(r.paper,o,{color:e,strokeWidth:1})})),a},t.prototype._renderBoxBorders=function(t){var e=this,l=this.theme.borderColor;return l?t.map((function(t,n){return t.map((function(t,r){if(!t)return null;var i=e.seriesDataModel.getSeriesItem(n,r);return e._renderBorderLines(t.start,l,e.chartType,i)}))})):null},t.prototype._animateRect=function(t,e,l){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},l,">")},t.prototype.animate=function(t){var e=this;if(this.animationDuration){var l=a.default.animation({opacity:1},this.animationDuration);c.default.forEach2dArray(this.groupBoxes,(function(t){t&&e._animateRect(t.rect,t.bound,e.animationDuration)})),c.default.forEach2dArray(this.groupWhiskers,(function(t){t.animate(l.delay(e.animationDuration))})),c.default.forEach2dArray(this.groupMedians,(function(t){t.animate(l.delay(e.animationDuration))})),c.default.forEach2dArray(this.groupOutliers,(function(t){t.forEach((function(t){t.animate(l.delay(e.animationDuration))}))})),t&&(this.callbackTimeout=setTimeout((function(){t(),delete e.callbackTimeout}),this.animationDuration))}},t.prototype.showAnimation=function(t){(0,u.default)(t.outlierIndex)?this.showOutlierAnimation(t):this.showRectAnimation(t)},t.prototype.showRectAnimation=function(t){var e=this.groupBoxes[t.groupIndex][t.index];this.hoveredBar=e.rect,this.hoveredBar.attr({stroke:"#ffffff","stroke-width":4}),this.hoveredBar.node.setAttribute("filter","url(#shadow)")},t.prototype.showOutlierAnimation=function(t){var e=this.groupOutliers[t.groupIndex][t.index][t.outlierIndex].attr();this.circleOverlay.attr({r:e.r,cx:e.cx,cy:e.cy,fill:e.stroke,"fill-opacity":1,stroke:e.stroke,"stroke-width":4})},t.prototype.hideAnimation=function(){this.circleOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-width":2}),this.hoveredBar.attr({stroke:"none"}),this.hoveredBar.node.setAttribute("filter","none")},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=t.dimension,l=t.groupBounds;this.groupBounds=l,this.paper.setSize(e.width,e.height),c.default.forEach2dArray(this.groupBoxes,(function(t,e,n){if(t){var r=l[e][n].end;t.bound=r,c.default.updateRectBound(t.rect,r)}}))},t.prototype._changeBordersColor=function(t,e){t.forEach((function(t){t.attr({stroke:e})}))},t.prototype._changeBoxColor=function(t,e,l){if(this.groupBoxes[t.groupIndex][t.index].rect.attr({stroke:e}),l){var n=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(n,l)}},t.prototype.selectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],l=a.default.color(e.color),n=this.theme.selectionColor,r=c.default.makeChangedLuminanceColor,i=n||r(l.hex,.2),o=this.theme.borderColor;if(o){var s=a.default.color(o);o=c.default.makeChangedLuminanceColor(s.hex,.2)}this._changeBoxColor(t,i,o)},t.prototype.unselectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],l=this.theme.borderColor;this._changeBoxColor(t,e.color,l)},t.prototype.selectLegend=function(t){var e=(0,s.default)(t);c.default.forEach2dArray(this.groupBoxes,(function(l,n,r){if(l){var i=e||t===r?1:.3;l.rect.attr({"stroke-opacity":i})}})),c.default.forEach2dArray(this.groupWhiskers,(function(l,n,r){var i=e||t===r?1:.3;l.attr({"stroke-opacity":i})})),c.default.forEach2dArray(this.groupMedians,(function(l,n,r){var i=e||t===r?1:.3;l.attr({"stroke-opacity":i})}))},t.prototype.renderSeriesLabel=function(t,e,l,n,r){var i={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":r?"middle":"start"},o=t.set();return l.forEach((function(l,n){l.forEach((function(l,r){var a=e[n][r],s=c.default.renderText(t,a.end,l.end,i);if(s.node.style.userSelect="none",s.node.style.cursor="default",s.node.setAttribute("filter","url(#glow)"),o.push(s),a.start){var u=c.default.renderText(t,a.start,l.start,i);u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),o.push(u)}}))})),o},t}();e.default=f},function(t,e,l){"use strict";e.__esModule=!0;var n=s(l(6)),r=s(l(22)),i=s(l(12)),o=s(l(23)),a=s(l(17));function s(t){return t&&t.__esModule?t:{default:t}}var u=r.default.msie&&r.default.version<=8,c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.render=function(t,e){var l=e.groupBounds,n=e.seriesDataModel;return l&&l.length?(this.paper=t,this.theme=e.theme,this.dimension=e.dimension,this.position=e.position,this.options=e.options,this.chartType=e.chartType,this.isVertical=e.isVertical,this.animationDuration=e.options.animationDuration,this.seriesDataModel=n,this.maxRangeCount=n.maxRangeCount,this.maxMarkerCount=n.maxMarkerCount,this._graphColors=[],this.rangeOpacities={},this.paper.setStart(),this._renderBounds(l),this.paper.setFinish()):null},t.prototype._getRangeOpacity=function(t){var e=this.maxRangeCount;return this.prevMaxRangeCount!==e&&this._updateOpacityStep(e),t",t)),t&&(this.callbackTimeout=setTimeout((function(){t(),delete l.callbackTimeout}),o))},t.prototype.resize=function(t){var e=t.dimension,l=t.groupBounds,n=e.width,r=e.height;this.dimension=t.dimension,this.groupBounds=l,this.resizeClipRect(n,r),this.paper.setSize(n,r)},t.prototype.resizeClipRect=function(t,e){var l=this.paper.getById(this._getClipRectId()+"_rect");l&&l.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=a.default.generateClipRectId()),this.clipRectId},t.prototype._changeBordersColor=function(t,e){t.forEach((function(t){t.attr({stroke:e})}))},t.prototype.selectLegend=function(t){var e=this,l=(0,n.default)(t);this.groupBars.forEach((function(n,r){var i=l||t===r?1:.3;e.groupBars[r].attr({"fill-opacity":i}),e.groupLabels[r].attr({opacity:i}),e.groupLabels[r].forEach((function(t){t.attr({opacity:i})}))}))},t.prototype.renderSeriesLabel=function(t,e,l,n){var r=this,i={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":this.isVertical?"middle":"start"},o=t.set();return this.groupLabels=l.map((function(l,n){var a=t.set();return l.forEach((function(l,s){var u=r._renderLabel(t,e[n][s],i,l);a.push(u),o.push(u)})),a}),this),o},t.prototype._renderLabel=function(t,e,l,n){var r=i.default.renderText(t,e,n,l),o=r.node,a=o.style;return a.userSelect="none",a.cursor="default",o.setAttribute("filter","url(#glow)"),r},t.prototype.getGraphColors=function(){var t=this;return this._graphColors.length||(this._graphColors=this.groupBars.map((function(e,l){var n=[],r=t.groupLines[l].length;e.forEach((function(t){n.push(t.attrs.fill)}));for(var i=n[n.length-1],o=0;o<=r;o+=1)n.push(i);return n}))),this._graphColors},t}();e.default=c},function(t,e,l){"use strict";e.__esModule=!0;var n=a(l(6)),r=a(l(19)),i=a(l(32)),o=a(l(12));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(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}(this,t.call(this));return l.selectedLegendIndex=null,l.chartType="line",l.lineWidth=6,l}return function(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,t),e.prototype.render=function(t,e){var l=e.dimension,n=e.groupPositions,i=e.theme,o=e.options,a=e.position,s=i.colors,u=o.showDot?1:0,c=o.spline,h=this.lineWidth=(0,r.default)(o.pointWidth)?o.pointWidth:this.lineWidth,d=this.makeBorderStyle(i.dot.strokeColor,u,i.dot.strokeWidth),f=this.makeOutDotStyle(u,d),p=void 0;return p=c?this._getSplineLinesPath(n,o.connectNulls):this._getLinesPath(n,o.connectNulls),this.paper=t,this.theme=i,this.isSpline=c,this.dimension=l,this.position=a,t.setStart(),this.groupLines=this._renderLines(t,p,s,h),this.tooltipLine=this._renderTooltipLine(t,l.height),this.groupDots=this._renderDots(t,n,s,u),o.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=i.selectionColor),this.colors=s,this.borderStyle=d,this.outDotStyle=f,this.groupPositions=n,this.groupPaths=p,this.dotOpacity=u,this.animationDuration=o.animationDuration,delete this.pivotGroupDots,t.raphael.svg&&this.appendShadowFilterToDefs(),t.setFinish()},e.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),l=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),l.setAttributeNS(null,"result","blurOut"),l.setAttributeNS(null,"in","offOut"),l.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(l),t.appendChild(n),this.paper.defs.appendChild(t)},e.prototype._getLinesPath=function(t,e){var l=this;return t.map((function(t){return l._makeLinesPath(t,null,e)}))},e.prototype._getSplineLinesPath=function(t,e){var l=this;return t.map((function(t){return l._makeSplineLinesPath(t,{connectNulls:e})}))},e.prototype._renderLines=function(t,e,l,n){return e.map((function(e,r){var i=l[r]||"transparent",a=o.default.renderLine(t,e.join(" "),{color:i,strokeWidth:n});return a.node.setAttribute("class","auto-shape-rendering"),a}))},e.prototype.resize=function(t){var e=this,l=t.dimension,n=t.groupPositions;this.resizeClipRect(l.width,l.height),this.groupPositions=n,this.groupPaths=this.isSpline?this._getSplineLinesPath(n):this._getLinesPath(n),this.paper.setSize(l.width,l.height),this.tooltipLine.attr({top:l.height}),this.groupPaths.forEach((function(t,l){e.groupLines[l].attr({path:t.join(" ")}),e.groupDots[l].forEach((function(t,r){t.endDot&&e._moveDot(t.endDot.dot,n[l][r])}))}))},e.prototype.selectLegend=function(t){var e=this,l=(0,n.default)(t);this.selectedLegendIndex&&-1!==this.selectedLegendIndex&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupLines.forEach((function(n,r){var i=t===r,o=l||i?1:.3,a=e.groupDots[r];n.attr({"stroke-opacity":o}),i&&e.moveSeriesToFront(n,a)})),l&&this.groupLines.forEach((function(t,l){e.moveSeriesToFront(t,e.groupDots[l])}))},e.prototype.resetSeriesOrder=function(t){var e=t+10&&(r[0]="M"),r},t.prototype._getAnchor=function(t,e,l,n){var r=(e.left-t.left)/2,i=(l.left-e.left)/2,o=void 0,a=void 0;n?(o=Math.atan((t.left-e.left)/Math.abs(t.top-e.top)),a=Math.atan((e.left-l.left)/Math.abs(l.top-e.top))):(o=Math.atan((e.left-t.left)/Math.abs(e.top-t.top)),a=Math.atan((l.left-e.left)/Math.abs(e.top-l.top))),o=t.top0&&!e||o)&&(l.push(n),n=[])})),l},t.prototype._getSplinePartialPaths=function(t,e){var l=this,r=[],i=void 0,o=void 0,a=void 0,s=void 0,u=void 0;return t.forEach((function(t){var c=n(t,1)[0],h=c;o=t.length,a=h,i=t[o-1],s=t.slice(1).slice(0,o-2),(u=s.map((function(n,r){var i=t[r+2],o=l._getAnchor(a,n,i,e);return a=n,Math.abs(o.y1-c.top)>Math.abs(c.top-n.top)&&(o.y1=n.top),Math.abs(o.y2-i.top)>Math.abs(i.top-n.top)&&(o.y2=n.top),c=n,[o.x1,o.y1,n.left,n.top,o.x2,o.y2]}))).push([i.left,i.top,i.left,i.top]),u.unshift(["M",h.left,h.top,"C",h.left,h.top]),r.push(u)})),r},t.prototype._makeSplineLinesPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=this._getSplinePositionsGroups(t,e.connectNulls),n=this._getSplinePartialPaths(l,e.isReverseDirection),r=[];return n.forEach((function(t){r=r.concat(t)})),e.isBeConnected&&(r[0]=r[0].slice(3)),r},t.prototype._renderTooltipLine=function(t,e){var l=u.default.makeLinePath({left:10,top:e},{left:10,top:0});return u.default.renderLine(t,l,{color:"transparent",strokeWidth:1})},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),l=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),l.setAttributeNS(null,"result","blurOut"),l.setAttributeNS(null,"in","offOut"),l.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(l),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype.makeBorderStyle=function(t,e,l){var n={"stroke-width":l,"stroke-opacity":e};return t&&(n.stroke=t),n},t.prototype.makeOutDotStyle=function(t,e){var l={"fill-opacity":t,"stroke-opacity":t,r:6};return e&&Object.assign(l,e),l},t.prototype.renderDot=function(t,e,l,n){var r=this.theme&&this.theme.dot||{dot:{}},i=void 0;if(e){var o=t.circle(e.left,e.top,(0,s.default)(r.radius)?6:r.radius),u={fill:r.fillColor||l,"fill-opacity":(0,a.default)(n)?n:r.fillOpacity,stroke:r.strokeColor||l,"stroke-opacity":(0,a.default)(n)?n:r.strokeOpacity,"stroke-width":r.strokeWidth};o.attr(u),i={dot:o,color:l}}return i},t.prototype._moveDotsToFront=function(t){u.default.forEach2dArray(t,(function(t){t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()}))},t.prototype._renderDots=function(t,e,l,n,r){var i=this;return e.map((function(e,o){var a=l[o];return Object.values(e).map((function(e){var l={endDot:i.renderDot(t,e,a,n)};if(i.hasRangeData){var o=Object.assign({},e);o.top=o.startTop,l.startDot=i.renderDot(t,o,a,n)}return r&&(r.push(l.endDot.dot),l.startDot&&r.push(l.startDot.dot)),l}))}))},t.prototype._getCenter=function(t,e){return{left:(t.left+e.left)/2,top:(t.top+e.top)/2}},t.prototype._showDot=function(t,e){var l=this.theme.dot.hover,n={"fill-opacity":l.fillOpacity,stroke:l.strokeColor||t.color,"stroke-opacity":l.strokeOpacity,"stroke-width":l.strokeWidth,r:l.radius,filter:"url(#shadow)"};this._setPrevDotAttributes(e,t.dot),l.fillColor&&(n.fill=l.fillColor),t.dot.attr(n),t.dot.node&&t.dot.node.setAttribute("filter","url(#shadow)"),t.dot.toFront()},t.prototype._setPrevDotAttributes=function(t,e){this._prevDotAttributes||(this._prevDotAttributes={}),this._prevDotAttributes[t]=e.attr()},t.prototype._updateLineStrokeOpacity=function(t,e){var l=1,n=!(0,o.default)(this.selectedLegendIndex);this.groupLines&&(("over"===t||n)&&(l="radial"===this.chartType&&this.showArea?0:.3),"out"===t&&n&&(e=this.getLine(this.selectedLegendIndex)),this.groupLines.forEach((function(t){t.attr({"stroke-opacity":l})})),e.attr({"stroke-opacity":1}))},t.prototype.getLine=function(t){return this.groupLines?this.groupLines[t]:this.groupAreas[t]},t.prototype._updateAreaOpacity=function(t){this.groupAreas&&this.groupAreas.forEach((function(e){e.area.attr({"fill-opacity":"over"===t?.3:1})}))},t.prototype._updateLineStrokeWidth=function(t,e){var l={"stroke-width":e};t.attrs&&(l.stroke=t.attrs.stroke),t.attr(l)},t.prototype.showAnimation=function(t){var e=t.index,l=this.groupDots[e],n=this._findDotItem(l,t.groupIndex),r=this.groupLines?this.groupLines[e]:this.groupAreas[e],i=void 0,o=void 0;if(n){if("area"===this.chartType){var a=r;o=a.startLine,r=a.line,i=5,this._updateAreaOpacity("over")}else i=this.lineWidth;this._updateLineStrokeOpacity("over",r),this._updateLineStrokeWidth(r,i),o&&this._updateLineStrokeWidth(o,i),this._showDot(n.endDot,e),n.startDot&&this._showDot(n.startDot,e)}},t.prototype._findDotItem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],l=h.default.isRadialChart(this.chartType);return l&&t.length===e&&(e=0),t[e]},t.prototype._getPivotGroupDots=function(){return!this.pivotGroupDots&&this.groupDots&&(this.pivotGroupDots=d.default.pivot(this.groupDots)),this.pivotGroupDots},t.prototype._showGroupDots=function(t){var e=this,l=this._getPivotGroupDots();l&&l[t]&&l[t].forEach((function(t,l){t.endDot&&e._showDot(t.endDot,l),t.startDot&&e._showDot(t.startDot,l)}))},t.prototype.showGroupTooltipLine=function(t,e){var l=Math.max(t.position.left,11),n=u.default.makeLinePath({left:l,top:e.position.top+t.dimension.height},{left:l,top:e.position.top});this.tooltipLine&&this.tooltipLine.attr({path:n,stroke:"#999","stroke-opacity":1})},t.prototype.showGroupAnimation=function(t){this._showGroupDots(t)},t.prototype._hideDot=function(t,e,l){var n=this._prevDotAttributes[e],r=this.outDotStyle;n&&!(0,s.default)(l)&&(r={r:n.r,stroke:n.stroke,fill:n.fill,"stroke-opacity":n["stroke-opacity"],"stroke-width":n["stroke-width"],"fill-opacity":n["fill-opacity"]}),t.attr(r),t.node&&t.node.setAttribute("filter",""),this.resetSeriesOrder(e)},t.prototype.hideAnimation=function(t){var e=t.groupIndex,l=t.index,n=this.groupDots[l],r=this._findDotItem(n,e),i=void 0,a=void 0,s=void 0,u=this.dotOpacity;if(r){if(i=this.groupLines?this.groupLines[l]:this.groupAreas[l],"area"===this.chartType){a=this.lineWidth;var c=i;s=c.startLine,i=c.line,this._updateAreaOpacity("out")}else a=this.lineWidth;u&&!(0,o.default)(this.selectedLegendIndex)&&this.selectedLegendIndex!==l&&(u=.3),this._updateLineStrokeOpacity("out",i),this._updateLineStrokeWidth(i,a),s&&this._updateLineStrokeWidth(s,a),r&&(this._hideDot(r.endDot.dot,l,u),r.startDot&&this._hideDot(r.startDot.dot,l,u))}},t.prototype._hideGroupDots=function(t){var e=this,l=!(0,o.default)(this.selectedLegendIndex),n=this.dotOpacity,r=this._getPivotGroupDots();r&&r[t]&&r[t].forEach((function(t,r){var i=n;i&&l&&e.selectedLegendIndex!==r&&(i=.3),t.endDot&&e._hideDot(t.endDot.dot,r,i),t.startDot&&e._hideDot(t.startDot.dot,r,i)}))},t.prototype.hideGroupTooltipLine=function(){this.tooltipLine.attr({"stroke-opacity":0})},t.prototype.hideGroupAnimation=function(t){this._hideGroupDots(t)},t.prototype._moveDot=function(t,e){var l={cx:e.left,cy:e.top};this.dotOpacity&&(l=Object.assign({"fill-opacity":this.dotOpacity},l,this.borderStyle)),t.attr(l)},t.prototype.animate=function(t,e){var l=this.paper,n=this.dimension,r=this.position,i=this.animationDuration,o=this._getClipRectId(),a=this._makeClipRectPosition(r),s=this.clipRect;!g&&n&&(s?(this._makeClipRectPosition(r),s.attr({width:i?0:n.width,height:n.height,x:a.left,y:a.top})):(s=function(t,e,l,n,r){var i=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),o=t.rect(e.left,e.top,r?0:l.width,l.height);return o.id=n+"_rect",i.id=n,i.appendChild(o.node),t.defs.appendChild(i),o}(l,a,n,o,!!i),this.clipRect=s),e.forEach((function(t){t.node.setAttribute("clip-path","url(#"+o+")")})),i&&s.animate({width:n.width},i,">",t))},t.prototype._makeClipRectPosition=function(t){return{left:t.left-f.default.SERIES_EXPAND_SIZE,top:t.top-f.default.SERIES_EXPAND_SIZE}},t.prototype._makeSelectionDot=function(t){var e=t.circle(0,0,7);return e.attr({fill:"#ffffff","fill-opacity":0,"stroke-opacity":0,"stroke-width":2}),e},t.prototype.selectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex],l=this.groupPositions[t.index][t.groupIndex];this.selectedItem=e,this.selectionDot.attr({cx:l.left,cy:l.top,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.endDot.color}),this.selectionStartDot&&this.selectionStartDot.attr({cx:l.left,cy:l.startTop,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.startDot.color})},t.prototype.unselectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex];this.selectedItem===e&&this.selectionDot.attr({"fill-opacity":0,"stroke-opacity":0}),this.selectionStartDot&&this.selectionStartDot.attr({"fill-opacity":0,"stroke-opacity":0})},t.prototype.setSize=function(t,e){t=t||this.dimension.width,e=e||this.dimension.height,this.paper.setSize(t,e)},t.prototype._animateByPosition=function(t,e,l){var n={cx:e.left,cy:e.top};(0,i.default)(l)&&(n.transform="t-"+l+",0"),t.animate(n,300)},t.prototype._animateByPath=function(t,e,l){var n={path:e.join(" ")};(0,i.default)(l)&&(n.transform="t-"+l+",0"),t.animate(n,300)},t.prototype._removeFirstDot=function(t){var e=t.shift();e.endDot.dot.remove(),e.startDot&&e.startDot.dot.remove()},t.prototype.clear=function(){delete this.paper.dots,this.paper.clear()},t.prototype.resizeClipRect=function(t,e){this.paper.getById(this._getClipRectId()+"_rect").attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=c.default.generateClipRectId()),this.clipRectId},t.prototype.resetSeriesOrder=function(){},t.prototype.moveSeriesToFront=function(){},t}();e.default=m},function(t,e,l){"use strict";e.__esModule=!0;var n=a(l(28)),r=a(l(7)),i=a(l(23)),o=a(l(27));function a(t){return t&&t.__esModule?t:{default:t}}var s={isBarChart:function(t){return t===i.default.CHART_TYPE_BAR},isColumnChart:function(t){return t===i.default.CHART_TYPE_COLUMN},isBarTypeChart:function(t){return s.isBarChart(t)||s.isColumnChart(t)},isColumnTypeChart:function(t,e){return s.isHeatmapChart(t)||s.isColumnChart(t)||s.isBoxplotChart(t)||s.isLineColumnComboChart(t,e)},isBoxplotChart:function(t){return t===i.default.CHART_TYPE_BOXPLOT},isBulletChart:function(t){return t===i.default.CHART_TYPE_BULLET},isRadialChart:function(t){return t===i.default.CHART_TYPE_RADIAL},isDivergingChart:function(t,e){return this.isBarTypeChart(t)&&e},isNormalStackChart:function(t,e){var l=s.isAllowedStackOption(t),n=s.isNormalStack(e);return l&&n},isPercentStackChart:function(t,e){var l=s.isAllowedStackOption(t),n=s.isPercentStack(e);return l&&n},isComboChart:function(t){return t===i.default.CHART_TYPE_COMBO},isLineColumnComboChart:function(t,e){var l=o.default.all(e||[],(function(t){return s.isLineChart(t)||s.isColumnChart(t)}));return s.isComboChart(t)&&l},isPieDonutComboChart:function(t,e){var l=o.default.all(e,(function(t){return s.isPieChart(t)}));return s.isComboChart(t)&&l},isLineChart:function(t){return t===i.default.CHART_TYPE_LINE},isAreaChart:function(t){return t===i.default.CHART_TYPE_AREA},isLineAreaComboChart:function(t,e){var l=o.default.all(e||[],(function(t){return s.isLineChart(t)||s.isAreaChart(t)}));return s.isComboChart(t)&&l},hasLineChart:function(t,e){var l=o.default.any(e||[],(function(t){return s.isLineChart(t)}));return s.isComboChart(t)&&l},isLineScatterComboChart:function(t,e){var l=o.default.all(e||[],(function(t){return s.isLineChart(t)||s.isScatterChart(t)}));return s.isComboChart(t)&&l},isLineTypeChart:function(t,e){return s.isLineChart(t)||s.isAreaChart(t)||s.isLineAreaComboChart(t,e)},isBubbleChart:function(t){return t===i.default.CHART_TYPE_BUBBLE},isScatterChart:function(t){return t===i.default.CHART_TYPE_SCATTER},isHeatmapChart:function(t){return t===i.default.CHART_TYPE_HEATMAP},isTreemapChart:function(t){return t===i.default.CHART_TYPE_TREEMAP},isBoxTypeChart:function(t){return s.isHeatmapChart(t)||s.isTreemapChart(t)},isMapTypeChart:function(t){return this.isMapChart(t)||this.isHeatmapChart(t)||this.isTreemapChart(t)},isPieChart:function(t){return t&&-1!==t.indexOf(i.default.CHART_TYPE_PIE)},isMapChart:function(t){return t===i.default.CHART_TYPE_MAP},isCoordinateTypeChart:function(t){return s.isBubbleChart(t)||s.isScatterChart(t)},allowMinusPointRender:function(t){return s.isLineTypeChart(t)||s.isCoordinateTypeChart(t)||s.isBoxTypeChart(t)||s.isBulletChart(t)},isChartToDetectMouseEventOnSeries:function(t){return s.isPieChart(t)||s.isMapChart(t)||s.isCoordinateTypeChart(t)},isLabelAlignOuter:function(t){return t===i.default.LABEL_ALIGN_OUTER},isShowLabel:function(t){return t.showLabel||t.showLegend},isShowOuterLabel:function(t){return s.isShowLabel(t)&&s.isLabelAlignOuter(t.labelAlign)},isLegendAlignLeft:function(t){return t===i.default.LEGEND_ALIGN_LEFT},isLegendAlignTop:function(t){return t===i.default.LEGEND_ALIGN_TOP},isLegendAlignBottom:function(t){return t===i.default.LEGEND_ALIGN_BOTTOM},isHorizontalLegend:function(t){return s.isLegendAlignTop(t)||s.isLegendAlignBottom(t)},isVerticalLegend:function(t){return!s.isHorizontalLegend(t)},isAllowedStackOption:function(t){return s.isBarChart(t)||s.isColumnChart(t)||s.isAreaChart(t)},isNormalStack:function(t){return!!t&&t.type===i.default.NORMAL_STACK_TYPE},isPercentStack:function(t){return!!t&&t.type===i.default.PERCENT_STACK_TYPE},isValidStackOption:function(t){return s.isNormalStack(t)||s.isPercentStack(t)},isAllowRangeData:function(t){return s.isBarTypeChart(t)||s.isAreaChart(t)},isYAxisAlignCenter:function(t,e){return!t&&e===i.default.YAXIS_ALIGN_CENTER},isMinusLimit:function(t){return t.min<=0&&t.max<=0},isAutoTickInterval:function(t){return t===i.default.TICK_INTERVAL_AUTO},isValidLabelInterval:function(t,e){return t&&t>1&&!e},isDatetimeType:function(t){return t===i.default.AXIS_TYPE_DATETIME},isSupportPublicShowTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isSupportPublicHideTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isRenderConnector:function(t){return(0,n.default)(t)&&t||(0,r.default)(t)&&("solid"===t.type||"dotted"===t.type)}};e.default=s},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=h(l(6)),i=h(l(19)),o=h(l(14)),a=h(l(32)),s=h(l(12)),u=h(l(23)),c=h(l(35));function h(t){return t&&t.__esModule?t:{default:t}}var d=u.default.GUIDE_AREACHART_AREAOPACITY_TYPE,f=u.default.CLASS_NAME_SVG_AUTOSHAPE,p=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(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}(this,t.call(this));return l.selectedLegendIndex=null,l.chartType="area",l.lineWidth=0,l}return function(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,t),e.prototype.render=function(t,e){var l=e.dimension,n=e.groupPositions,r=e.theme,o=void 0===r?{}:r,a=e.position,s=e.zeroTop,u=e.hasRangeData,c=e.options,h=o.dot,d=void 0===h?{}:h,f=o.colors,p=c.spline,g=c.allowSelect,m=c.connectNulls,v=c.pointWidth,y=c.showDot,b=c.areaOpacity,w=this._isAreaOpacityNumber(b)?b:1,x=y?1:0,_=this.makeBorderStyle(d.strokeColor,x,d.strokeWidth),S=this.makeOutDotStyle(x,_),M=this.lineWidth=(0,i.default)(v)?v:this.lineWidth;this.paper=t,this.theme=o,this.isSpline=p,this.dimension=l,this.position=a,this.zeroTop=s,this.hasRangeData=u,this.animationDuration=e.options.animationDuration,t.setStart(),this.groupPaths=this._getAreaChartPath(n,null,m),this.groupAreas=this._renderAreas(t,this.groupPaths,f,M,w),this.tooltipLine=this._renderTooltipLine(t,l.height),this.groupDots=this._renderDots(t,n,f,x),g&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=o.selectionColor,this.hasRangeData&&(this.selectionStartDot=this._makeSelectionDot(t))),this.outDotStyle=S,this.groupPositions=n,this.dotOpacity=x,this.pivotGroupDots=null;var E=t.setFinish();return this._moveSeriesToFrontAll(),this.tooltipLine.toFront(),E},e.prototype._moveSeriesToFrontAll=function(){for(var t=this.groupPaths?this.groupPaths.length:0,e=0;e1)&&c.default.print(d,"warn"):(0,o.default)(t)||c.default.print(d,"error"),e},e}(a.default);e.default=p},function(t,e){"use strict";e.__esModule=!0,e.default={print:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";window.console&&window.console[e](t)}}},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=s(l(15)),i=s(l(6)),o=s(l(4)),a=s(l(12));function s(t){return t&&t.__esModule?t:{default:t}}var u=Math.PI/180,c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.render=function(t,e,l){var r=t.set();this.animationDuration=e.options.animationDuration,this.paper=t;var i=n(e.options.radiusRange,1);return this.holeRatio=i[0],this.chartBackground=e.chartBackground,this.chartType=e.chartType,this.callbacks=l,this.selectionColor=e.theme.selectionColor,this.circleBound=e.circleBound,this.sectorName="sector_"+this.chartType,this._setSectorAttr(),this.sectorInfos=this._renderPie(e.sectorData,e.theme.colors,e.additionalIndex,r),this.overlay=this._renderOverlay(),this.labelInfos={value:[],legend:[]},this.prevPosition=null,this.prevHoverSector=null,r},t.prototype.clear=function(){this.paper.clear()},t.prototype._makeSectorPath=function(t,e,l,n,r){var i=n*u,o=r*u;return{path:["M",t,e,"L",t+l*Math.sin(i),e-l*Math.cos(i),"A",l,l,0,r-n>180?1:0,1,t+l*Math.sin(o),e-l*Math.cos(o),"Z"]}},t.prototype._makeDonutSectorPath=function(t,e,l,n,r,i){var o=n*u,a=r*u,s=i||l*this.holeRatio,c=t+l*Math.sin(o),h=e-l*Math.cos(o),d=t+s*Math.sin(o),f=e-s*Math.cos(o),p=r-n>180?1:0;return{path:["M",c,h,"A",l,l,0,p,1,t+l*Math.sin(a),e-l*Math.cos(a),"L",t+s*Math.sin(a),e-s*Math.cos(a),"A",s,s,0,p,0,d,f,"Z"]}},t.prototype._setSectorAttr=function(){var t=void 0;this.paper.customAttributes[this.sectorName]||(t=this.holeRatio?this._makeDonutSectorPath:this._makeSectorPath,this.paper.customAttributes[this.sectorName]=t.bind(this))},t.prototype._renderOverlay=function(){var t={paper:this.paper,circleBound:{cx:0,cy:0,r:0},angles:{startAngle:0,endAngle:0},attrs:{fill:"none",opacity:0,stroke:this.chartBackground.color,"stroke-width":1}},e=this._renderSector(t);return e.node.setAttribute("class","auto-shape-rendering"),e.data("id","overlay"),e.data("chartType",this.chartType),e},t.prototype._renderSector=function(t){var e=t.circleBound,l=t.angles,n=t.attrs;return n[this.sectorName]=[e.cx,e.cy,e.r,l.startAngle,l.endAngle],t.paper.path().attr(n)},t.prototype._renderPie=function(t,e,l,n){var r=this,i=this.circleBound,o=this.chartBackground,a=this.animationDuration,s=[];return t.forEach((function(t,u){var c=t.ratio,h=t.angles,d=e[u],f=r._renderSector({paper:r.paper,circleBound:i,angles:a?h.start:h.end,attrs:{fill:a?o.color:d,stroke:o.color,"stroke-width":0}});f.node.setAttribute("class","auto-shape-rendering"),f.data("index",u),f.data("legendIndex",u+l),f.data("chartType",r.chartType),s.push({sector:f,color:d,angles:h.end,ratio:c}),n.push(f)})),s},t.prototype._showOverlay=function(t,e){var l=this.overlay,n=this.sectorInfos[t],r=n.angles.startAngle,i=n.angles.endAngle,o=this.circleBound,a={fill:"#fff",opacity:1,"stroke-width":7,"stroke-color":"#fff","stroke-miterlimit":15};a[this.sectorName]=[o.cx,o.cy,o.r,r,i,o.r*this.holeRatio],l.attr(a),l.data("index",t),l.data("legendIndex",e),l.node.setAttribute("filter","url(#shadow)"),this._indexingOverlapElement([l,n.sector,this.labelInfos.legend[t],this.labelInfos.value[t]])},t.prototype._indexingOverlapElement=function(t){t.forEach((function(t){t&&t.toFront()}))},t.prototype._hideOverlay=function(){this.overlay.attr({fill:"none",opacity:0}),this._indexingOverlapElement(this.labelInfos.legend),this._indexingOverlapElement(this.labelInfos.value)},t.prototype.animate=function(t){var e=this.sectorName,l=this.circleBound,n=this.animationDuration,r=[l.cx,l.cy,l.r],i=0;this.sectorInfos.forEach((function(t){var l=t.angles,a={fill:t.color};if(n){var s=n*t.ratio;0===l.startAngle&&360===l.endAngle&&(l.endAngle=359.99),a[e]=r.concat([l.startAngle,l.endAngle]);var u=o.default.animation(a,s,">");t.sector.animate(u.delay(i)),i+=s}})),t&&setTimeout(t,i)},t.prototype.resize=function(t){var e=t.dimension,l=t.circleBound;this.circleBound=l,this.paper.setSize(e.width,e.height)},t.prototype.findSectorInfo=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top),l=null;return e&&(l={legendIndex:(0,r.default)(e.data("legendIndex"))?e.data("legendIndex"):-1,index:(0,r.default)(e.data("index"))?e.data("index"):-1,chartType:e.data("chartType")}),l},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype._showTooltip=function(t,e){var l=[{},0,t.data("index"),{left:e.left-20,top:e.top-20}];this.callbacks.showTooltip.apply(null,l)},t.prototype._isValidSector=function(t){return t&&t.data("chartType")===this.chartType},t.prototype.moveMouseOnSeries=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top);this._isValidSector(e)?(this.prevHoverSector!==e&&(this._showOverlay(e.data("index"),e.data("legendIndex")),this.prevHoverSector=e),this._isChangedPosition(this.prevPosition,t)&&this._showTooltip(e,t)):this.prevHoverSector&&(this._hideOverlay(),this.callbacks.hideTooltip(),this.prevHoverSector=null),this.prevPosition=t},t.prototype.selectSeries=function(t){var e=this.sectorInfos[t.index];if(e){var l=o.default.color(e.color),n=a.default.makeChangedLuminanceColor(l.hex,.2),r=this.selectionColor||n;e.sector.attr({fill:r})}},t.prototype.unselectSeries=function(t){var e=this.sectorInfos[t.index];e&&e.sector.attr({fill:e.color})},t.prototype.selectLegend=function(t){var e=(0,i.default)(t);this.sectorInfos.forEach((function(l,n){var r=e||t===n?1:.3;l.sector.attr({"fill-opacity":r})}))},t.prototype.getRenderedLabelWidth=function(t,e){return a.default.getRenderedTextSize(t,e.fontSize,e.fontFamily).width},t.prototype.getRenderedLabelHeight=function(t,e){return a.default.getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype.renderLabels=function(t){var e=this,l=t.theme,n=t.labelFilter,r=t.dataType,i=t.ratioValues,o=t.seriesNames,s={"font-size":l.fontSize,"font-family":t.fontFamily?t.fontFamily:t.theme.fontFamily,"font-weight":l.fontWeight,"text-anchor":"middle",fill:l.color||"#fff",opacity:0};t.positions.forEach((function(l,u){var c=i[u],h=void 0;n&&!n({value:t.labels[u],labelType:r,seriesName:o[u],ratio:c})||(t.colors&&(s.fill=t.colors[u]),l&&((h=a.default.renderText(t.paper,l,t.labels[u],s)).node.style.userSelect="none",h.node.style.cursor="default",h.node.setAttribute("class","auto-shape-rendering")),e.labelInfos[r].push(h),t.labelSet.push(h))}),this),this.labelSet||(this.labelSet=t.labelSet)},t}();e.default=c},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(6)),r=o(l(32)),i=o(l(12));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(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}(this,t.call(this));return l.selectedLegendIndex=null,l.chartType="radial",l.lineWidth=6,l}return function(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,t),e.prototype.render=function(t,e){var l=e.dimension,n=e.groupPositions,r=e.theme,i=r.colors,o=e.options,a=o.pointWidth,s=o.showDot,u=o.showArea,c=s?1:0,h=this._getLinesPath(n),d=this.makeBorderStyle(r.strokeColor,c,r.strokeWidth),f=this.makeOutDotStyle(c,d),p=t.set(),g=this.lineWidth=a||this.lineWidth,m=n.map((function(t){return t.pop(),t}));return this.paper=t,this.theme=r,this.dimension=l,this.position=e.position,u&&(this.groupAreas=this._renderArea(t,h,i,p)),this.groupLines=this._renderLines(t,h,i,g,p),this.groupDots=this._renderDots(t,m,i,c,p),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor),this.colors=i,this.borderStyle=d,this.outDotStyle=f,this.groupPositions=n,this.groupPaths=h,this.dotOpacity=c,this.showArea=u,p},e.prototype._getLinesPath=function(t){var e=this;return t.map((function(t){return e._makeLinesPath(t)}))},e.prototype._renderLines=function(t,e,l,n,r){return e.map((function(e,o){var a=l[o]||"transparent",s=i.default.renderLine(t,e.join(" "),{color:a,strokeWidth:n});return r.push(s),s}))},e.prototype._renderArea=function(t,e,l,n){var r=this;return e.map((function(e,o){var a=l[o]||"transparent",s=i.default.renderArea(t,e,{fill:a,opacity:.4,"stroke-width":r.lineWidth,stroke:a});return n.push(s),s}),this)},e.prototype.resize=function(t){var e=this,l=t.dimension,n=t.groupPositions;this.groupPositions=n,this.groupPaths=this._getLinesPath(n),this.paper.setSize(l.width,l.height),this.groupPaths.forEach((function(t,l){e.groupLines[l].attr({path:t.join(" ")}),e.showArea&&e.groupAreas[l].attr({path:t.join(" ")}),e.groupDots[l].forEach((function(t,r){e._moveDot(t.endDot.dot,n[l][r])}))}))},e.prototype.selectLegend=function(t){var e=(0,n.default)(t);this.selectedLegendIndex=t,this.groupLines.forEach((function(l,n){var r=e||t===n?1:.3;l.attr({"stroke-opacity":r})}))},e}(r.default);e.default=a},function(t,e,l){"use strict";e.__esModule=!0;var n=s(l(4)),r=s(l(15)),i=s(l(6)),o=s(l(14)),a=s(l(12));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.render=function(t,e,l){var n=t.set();return this.paper=t,this.animationDuration=e.options.animationDuration,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.groupBounds=e.groupBounds,this.callbacks=l,this.overlay=this._renderOverlay(),this.groupCircleInfos=this._renderCircles(n),this.prevCircle=null,this.prevOverCircle=null,this.animationTimeoutId=null,this.selectedLegend=null,this.paper.raphael.svg&&this.appendShadowFilterToDefs(),n},t.prototype._renderOverlay=function(){var t={fill:"none",stroke:"#fff","stroke-opacity":1,"stroke-width":2};return a.default.renderCircle(this.paper,{left:0,top:0},0,t)},t.prototype._renderCircles=function(t){var e=this,l=this.theme.colors;return this.groupBounds.map((function(n,r){return n.map((function(n,i){var o=null;if(n){var s=l[i],u=a.default.renderCircle(e.paper,n,e.animationDuration?0:n.radius,{fill:s,opacity:e.animationDuration?0:.8,stroke:"none"});t.push(u),u.data("groupIndex",r),u.data("index",i),o={circle:u,color:s,bound:n}}return o}))}))},t.prototype._animateCircle=function(t,e,l){t.animate({r:e,opacity:.8},l,">")},t.prototype.animate=function(){var t=this;a.default.forEach2dArray(this.groupCircleInfos,(function(e){e&&t.animationDuration&&t._animateCircle(e.circle,e.bound.radius,t.animationDuration)}))},t.prototype._updatePosition=function(t,e){t.attr({cx:e.left,cy:e.top,r:e.radius})},t.prototype.resize=function(t){var e=this,l=t.dimension,n=t.groupBounds;this.groupBounds=n,this.paper.setSize(l.width,l.height),a.default.forEach2dArray(this.groupCircleInfos,(function(t,l,r){var i=n[l][r];t&&(t.bound=i,e._updatePosition(t.circle,i))}))},t.prototype.findIndexes=function(t){var e=this.paper.getElementByPoint(t.left,t.top),l=null;return e&&(l={index:e.data("index"),groupIndex:e.data("groupIndex")}),l},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),l=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),l.setAttributeNS(null,"result","blurOut"),l.setAttributeNS(null,"in","offOut"),l.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(l),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype.showAnimation=function(t){var e=this.groupCircleInfos[t.groupIndex][t.index],l=e.bound;this.circle=e.circle,this.overlay.attr({fill:e.color,cx:l.left,cy:l.top,r:l.radius+2,stroke:"#fff",opacity:1}),this.circle.attr({opacity:1}),this.overlay.node.setAttribute("filter","url(#shadow)"),this.overlay.toFront(),this.circle.toFront()},t.prototype.hideAnimation=function(t){var e=.3;this.overlay.attr({cx:0,cy:0,r:0,opacity:0}),((0,i.default)(this.selectedLegend)||t.index===this.selectedLegend)&&(e=.8),this.circle.attr({opacity:e})},t.prototype._findCircle=function(t){for(var e=[],l=this.paper,n=void 0;(0,o.default)(n);){var r=l.getElementByPoint(t.left,t.top);r?r.attrs.opacity>.3?n=r:(e.push(r),r.hide()):n=null}return n||(n=e[0]),e.forEach((function(t){t.show()})),n},t.prototype.moveMouseOnSeries=function(t){var e=this._findCircle(t);if(e&&(0,r.default)(e.data("groupIndex"))){var l=[{},e.data("groupIndex"),e.data("index"),{left:t.left-20,top:t.top-20}];this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,l),this.prevOverCircle=e)}else this.prevOverCircle&&(this.callbacks.hideTooltip(),this.prevOverCircle=null);this.prevPosition=t},t.prototype.selectSeries=function(t){var e=t.groupIndex,l=t.index,r=this.groupCircleInfos[e][l],i=n.default.color(r.color),o=this.theme.selectionColor||a.default.makeChangedLuminanceColor(i.hex,.2);r.circle.attr({fill:o})},t.prototype.unselectSeries=function(t){var e=t.groupIndex,l=t.index,n=this.groupCircleInfos[e][l];n.circle.attr({fill:n.color})},t.prototype.selectLegend=function(t){var e=(0,i.default)(t);this.selectedLegend=t,a.default.forEach2dArray(this.groupCircleInfos,(function(l,n,r){if(l){var i=e||t===r?.8:.3;l.circle.attr({opacity:i})}}))},t}();e.default=u},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(15)),r=o(l(12)),i=o(l(33));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.render=function(t,e){var l=t.set();return this.paper=t,this.chartType=e.chartType,this.theme=e.theme||{},this.colorSpectrum=e.colorSpectrum,this.chartBackground=e.chartBackground,this.zoomable=e.zoomable,this.useColorValue=e.options.useColorValue,this.borderColor=this.theme.borderColor||"none",this.borderWidth=this.theme.borderWidth,this.groupBounds=e.groupBounds,this.boundMap=e.boundMap,this._bindGetBoundFunction(),this._bindGetColorFunction(),this.seriesDataModel=e.seriesDataModel,this.boxesSet=this._renderBoxes(e.seriesDataModel,e.startDepth,!!e.isPivot,l),this.rectOverlay=this._renderRectOverlay(),l},t.prototype._renderRectOverlay=function(){var t=r.default.renderRect(this.paper,{width:1,height:1,left:0,top:0},Object.assign({"stroke-width":0},{"fill-opacity":0}));return t.node.setAttribute("filter","url(#shadow)"),t},t.prototype._bindGetBoundFunction=function(){this.boundMap?this._getBound=this._getBoundFromBoundMap:this._getBound=this._getBoundFromGroupBounds},t.prototype._bindGetColorFunction=function(){this.colorSpectrum?this._getColor=this._getColorFromSpectrum:this._getColor=this._getColorFromColors},t.prototype._getBoundFromGroupBounds=function(t){return this.groupBounds[t.groupIndex][t.index].end},t.prototype._getBoundFromBoundMap=function(t){return this.boundMap[t.id]},t.prototype._getColorFromSpectrum=function(t,e){return t.hasChild&&t.depth===e?"none":this.colorSpectrum.getColor(t.colorRatio||t.ratio)||this.chartBackground},t.prototype._getColorFromColors=function(t,e){return t.depth===e?this.theme.colors[t.group]:"#000"},t.prototype._renderRect=function(t,e,l,n){return r.default.renderRect(this.paper,t,{fill:e,stroke:this.borderColor,"stroke-width":l,"fill-opacity":n})},t.prototype._getStrokeWidth=function(t){return this.borderWidth?this.borderWidth:t?4:0},t.prototype._renderBoxes=function(t,e,l,n){var r=this,o=i.default.isTreemapChart(this.chartType);return t.map((function(t,l){if(o&&!r.colorSpectrum&&t.getSeriesItemCount()){var i=t.getSeriesItem(0);r._setTreeFillOpacity({id:i.parent},e)}return t.map((function(t,i){var o=null,a=t.depth,s=r.colorSpectrum?r.borderWidth:r._getStrokeWidth(a===e),u=r.colorSpectrum?1:t.fillOpacity;t.groupIndex=l,t.index=i;var c=r._getBound(t);if(c){var h=r._getColor(t,e);o={rect:r._renderRect(c,h,s,u),seriesItem:t,color:h},n&&n.push(o.rect)}return o}))}),l)},t.prototype._setTreeFillOpacity=function(t,e){var l=this;this.seriesDataModel.findSeriesItemsByParent(t.id).forEach((function(n,r){var i=n.depth;n.fillOpacity=i===e?1:i===e+1?.05*r:i")},t.prototype.showAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];if(e){var l=e.rect.node,n=e.color;"treemap"!==this.chartType||this.zoomable||this.useColorValue||(n=this.theme.colors[t.index]),this.rectOverlay.attr({x:l.getAttribute("x"),y:l.getAttribute("y"),width:l.getAttribute("width"),height:l.getAttribute("height"),fill:n,"fill-opacity":1,stroke:"#ffffff","stroke-width":4,"stroke-opacity":1}),this.rectOverlay.toFront(),this.labelSet&&this.labelSet.toFront()}},t.prototype.hideAnimation=function(t){this.boxesSet[t.groupIndex][t.index]&&this.rectOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-opacity":0})},t.prototype.resize=function(t){var e=this,l=t.dimension;this.boundMap=t.boundMap,this.groupBounds=t.groupBounds,this.paper.setSize(l.width,l.height),r.default.forEach2dArray(this.boxesSet,(function(t,l,n){if(t){var i=e._getBound(t.seriesItem,l,n);i&&r.default.updateRectBound(t.rect,i)}}))},t.prototype.renderSeriesLabel=function(t,e,l,n){var i=t.set(),o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:"#ffffff",opacity:0};return l.forEach((function(l,n){l.forEach((function(l,a){var s=r.default.renderText(t,e[n][a].end,l,o);s.node.style.userSelect="none",s.node.style.cursor="default",i.push(s)}))})),this.labelSet=i,i},t.prototype.renderSeriesLabelForTreemap=function(t,e,l,n){var i=t.set(),o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0};return l.forEach((function(l,n){if(e[n]){var a=r.default.renderText(t,e[n],l,o);a.node.style.userSelect="none",a.node.style.cursor="default",i.push(a)}})),this.labelSet=i,i},t}();e.default=a},function(t,e,l){"use strict";e.__esModule=!0;var n=h(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),r=h(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),i=c(l(14)),o=c(l(22)),a=c(l(12)),s=c(l(24)),u=c(l(17));function c(t){return t&&t.__esModule?t:{default:t}}function h(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var d=o.default.msie&&o.default.version<=8,f=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.render=function(t,e){var l=e.mapModel.getMapDimension();this.ratio=this._getDimensionRatio(e.layout.dimension,l),this.dimension=e.layout.dimension,this.position=e.layout.position,this.paper=t,this.sectorSet=t.set(),this.sectors=this._renderMap(e,this.ratio),d||(this.g=function(t,e,l){var n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.id=l,e.forEach((function(t){s.default.append(n,t.node)})),t.canvas.appendChild(n),n}(t,this.sectorSet,"tui-chart-series-group")),this.overColor=e.theme.overColor},t.prototype._getDimensionRatio=function(t,e){return Math.min(t.height/e.height,t.width/e.width)},t.prototype._renderMap=function(t,e){var l=this.sectorSet,r=this.paper,i=t.layout.position,o=t.colorSpectrum;return t.mapModel.getMapData().map((function(t,s){var c=t.ratio,h=t.path,d=c?o.getColor(c):"#eee",f=a.default.renderArea(r,h,{fill:d,opacity:1,stroke:"gray","stroke-width":.2,"stroke-opacity":1,transform:u.default.oneLineTrim(n,e,e,i.left/e,i.top/e)});return f.data("index",s),l.push(f),{sector:f,color:d,ratio:c}}))},t.prototype.findSectorIndex=function(t){var e=this.paper.getElementByPoint(t.left,t.top),l=e&&e.data("index"),n=!(0,i.default)(l)&&this.sectors[l];return n&&!(0,i.default)(n.ratio)?l:null},t.prototype.changeColor=function(t){var e=this.sectors[t],l={stroke:"#ffffff","stroke-width":4};this.overColor&&(l.fill=this.overColor),e.sector.animate(l,100,">"),e.sector.node.setAttribute("filter","url(#shadow)"),e.sector.toFront()},t.prototype.restoreColor=function(t){var e=this.sectors[t];e.sector.animate({fill:e.color,stroke:"gray","stroke-width":.2},100,">"),e.sector.node.setAttribute("filter","none")},t.prototype.scaleMapPaths=function(t,e,l,n,r){var i=this.g.transform.baseVal,o=this.paper.canvas.createSVGTransform(),a=this.paper.canvas.createSVGMatrix(),s=this.paper.raphael.matrix(),u=i.numberOfItems?i.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0},c=r.width-this.dimension.width,h=r.height-this.dimension.height,d=u.e/u.a,f=u.f/u.d,p=-c/u.a,g=-h/u.d;s.scale(t,t,e.left*l-d*t,e.top*l-f*t);var m=s.e/s.a+d,v=s.f/s.d+f;m>=0?s.e=-d*s.a:m=0?s.f=-f*s.a:v=0&&r>0||i<0&&i<-n/l.a&&r<0)&&(e.e=0)},t.prototype._translateYForRaphaelMatrix=function(t){var e=t.raphaelMatrix,l=t.transformMatrix,n=t.maxTop,r=e.f/e.d,i=r+l.f/l.d;(i>=0&&r>0||i<0&&i<-n/l.d&&r<0)&&(e.f=0)},t.prototype.renderSeriesLabels=function(t,e,l){var n={"font-size":l.fontSize,"font-family":l.fontFamily,"font-weight":l.fontWeight,fill:l.color,"text-anchor":"middle",opacity:0,transform:u.default.oneLineTrim(r,this.ratio,this.ratio,this.position.left/this.ratio,this.position.top/this.ratio)},i=t.set();return e.forEach((function(e){var l=e.position,r=a.default.renderText(t,l,e.name||e.code,n);i.push(r),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("filter","url(#glow)"),d||self.g.appendChild(r.node)})),i},t}();e.default=f},function(t,e,l){"use strict";e.__esModule=!0;var n,r,i=(n=["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "],r=["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "],Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))),o=g(l(15)),a=g(l(6)),s=g(l(19)),u=g(l(14)),c=g(l(23)),h=g(l(12)),d=g(l(27)),f=g(l(17)),p=g(l(42));function g(t){return t&&t.__esModule?t:{default:t}}var m=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._checkBoxWidth=0,this._checkBoxHeight=0,this._legendItemHeight=0,this._currentPageCount=1,this._showCheckbox=!0}return t.prototype._renderLegendItems=function(t){var e=this,l=c.default.LEGEND_LABEL_LEFT_PADDING,n=Object.assign({},this.basePosition);t.forEach((function(t,r){var i=t.iconType,o=t.index,a=t.isUnselected,s=t.labelHeight,u=t.checkbox,h=t.colorByPoint?"#aaa":t.theme.color,d=n.left+e._calculateSingleLegendWidth(o,i)>=e.paper.width;e.isHorizontal&&d&&(n.top+=e._legendItemHeight+c.default.LABEL_PADDING_TOP,n.left=e.basePosition.left),e._showCheckbox&&(e._renderCheckbox(n,{isChecked:u.checked,legendIndex:o,legendSet:e.legendSet}),n.left+=e._checkBoxWidth+l),e._renderIcon(n,{legendColor:h,iconType:i,labelHeight:s,isUnselected:a,legendIndex:o,legendSet:e.legendSet}),n.left+=c.default.LEGEND_ICON_WIDTH+l,e._renderLabel(n,{labelText:t.label,labelHeight:s,isUnselected:a,legendIndex:o,legendSet:e.legendSet}),e.isHorizontal?n.left+=e.labelWidths[r]+c.default.LEGEND_H_LABEL_RIGHT_PADDING:(n.left=e.basePosition.left,n.top+=e._legendItemHeight+c.default.LINE_MARGIN_TOP)}))},t.prototype._getLegendData=function(t,e){var l=this.basePosition.top,n=this.dimension.height,r=this.paper.height,i=t;if(!this.isHorizontal&&n+2*l>r){this._legendItemHeight=Math.max(t[0].labelHeight,c.default.LEGEND_CHECKBOX_SIZE);var o=r-2*l,a=this._legendItemHeight+c.default.LINE_MARGIN_TOP,s=Math.floor(o/a);i=t.slice((e-1)*s,e*s)}return i},t.prototype.render=function(t){this.eventBus=t.eventBus,this.paper=t.paper,this.dimension=t.dimension,this.legendSet=this.paper.set(),this.labelWidths=t.labelWidths,this.labelTheme=t.labelTheme,this.basePosition=t.position,this.isHorizontal=t.isHorizontal,this.originalLegendData=t.legendData;var e=[];if(this.originalLegendData.length){this._showCheckbox=(0,o.default)(t.legendData[0].checkbox),this._setComponentDimensionsBaseOnLabelHeight(t.legendData[0].labelHeight);var l=this._getLegendData(t.legendData,this._currentPageCount);if(this._renderLegendItems(l),!this.isHorizontal&&l&&l.length1&&(l._paginateLegendAreaTo("previous"),l._currentPageCount-=1)})),x.click((function(){l._currentPageCountl&&(n=l),n+c.default.LEGEND_LABEL_LEFT_PADDING}))},t.prototype.getRenderedLabelHeight=function(t,e){return h.default.getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype._renderLabel=function(t,e){var l=this.eventBus,n=this.labelTheme,r={left:t.left,top:t.top+this._legendItemHeight/2},i={fill:n.color,"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,opacity:e.isUnselected?.5:1,"text-anchor":"start"},o=h.default.renderText(this.paper,r,e.labelText,i);o.data("index",e.legendIndex),o.node.style.userSelect="none",o.node.style.cursor="pointer",e.legendSet.push(o),o.click((function(){l.fire("labelClicked",e.legendIndex)}))},t.prototype._renderCheckbox=function(t,e){var l=this,n=t.left,r=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,o=this._checkBoxWidth/3,a=this._checkBoxWidth/5.7,s=f.default.oneLineTrim(i,.25*this._checkBoxWidth+n,.5*this._checkBoxHeight+r,a,a,o,o),u=this.paper.set(),c=this.paper.rect(n,r,this._checkBoxWidth,this._checkBoxHeight,0).attr({fill:"#fff",stroke:"#aaa","stroke-width":1});if(c.node.setAttribute("class","auto-shape-rendering"),u.push(c),e.isChecked){var h=this.paper.path(s).attr({stroke:"#555","stroke-width":2});h.node.setAttribute("class","auto-shape-rendering"),u.push(h)}u.data("index",e.legendIndex),u.click((function(){l.eventBus.fire("checkboxClicked",e.legendIndex)})),u.forEach((function(t){e.legendSet.push(t)}))},t.prototype._renderIcon=function(t,e){var l=this,n=void 0;this.paper.setStart(),"line"!==e.iconType&&"radial"!==e.iconType||!this.paper.canvas.transform?n=h.default.renderRect(this.paper,{left:t.left,top:t.top+(c.default.LEGEND_CHECKBOX_SIZE-c.default.LEGEND_ICON_HEIGHT)/2,width:c.default.LEGEND_ICON_WIDTH,height:c.default.LEGEND_ICON_HEIGHT},{"stroke-width":0,fill:e.legendColor,opacity:e.isUnselected?.5:1}):((n=this.paper.path(c.default.LEGEND_LINE_ICON_PATH)).attr({stroke:e.legendColor,"stroke-width":2,"stroke-opacity":e.isUnselected?.5:1}),n.translate(t.left,t.top)),n.data("icon",e.iconType),n.data("index",e.legendIndex),n.click((function(){l.eventBus.fire("labelClicked",e.legendIndex)})),e.legendSet.push(n)},t.prototype.selectLegend=function(t,e){e.forEach((function(e){var l=e.data("index"),n="line"===e.data("icon")?"stroke-opacity":"opacity";(0,a.default)(l)||(0,u.default)(l)?e.attr(n,1):(0,u.default)(l)||((0,s.default)(t)&&l!==t?e.attr(n,.5):e.attr(n,1))}))},t.prototype._getCheckboxWidth=function(){return this._showCheckbox?this._checkBoxWidth+c.default.LEGEND_LABEL_LEFT_PADDING:0},t.prototype._getLabelWidth=function(t){return t?this.labelWidths[t]||0:d.default.max(this.labelWidths)},t.prototype._calculateLegendWidth=function(){return this._calculateSingleLegendWidth()},t.prototype._calculateSingleLegendWidth=function(t){return c.default.LEGEND_AREA_H_PADDING+this._getCheckboxWidth()+(c.default.LEGEND_ICON_WIDTH+c.default.LEGEND_LABEL_LEFT_PADDING)+this._getLabelWidth(t)+c.default.LEGEND_AREA_H_PADDING},t.prototype._setComponentDimensionsBaseOnLabelHeight=function(t){this._legendItemHeight=Math.max(t,c.default.LEGEND_CHECKBOX_SIZE),this._checkBoxWidth=this._checkBoxHeight=c.default.LEGEND_CHECKBOX_SIZE},t}();e.default=m},function(t,e,l){"use strict";e.__esModule=!0;var n=i(l(13)),r=i(l(27));function i(t){return t&&t.__esModule?t:{default:t}}var o={calculateLimit:function(t,e){var l={},n=0;t<0&&(n=t,e-=t,t=0);var r=(e-t)/20;return l.max=e+r+n,l.min=e/6>t?n:t-r+n,l},makeTickPixelPositions:function(t,e,l,r){var i=[];return l=l||0,e>0&&((i=(0,n.default)(0,e).map((function(n){return(0===n?0:n/(e-1))*t+l})))[i.length-1]-=1),r&&i.push(r),i},makeLabelsFromLimit:function(t,e){var l=o.findMultipleNum(e),r=Math.round(t.min*l),i=Math.round(t.max*l);return(0,n.default)(r,i+1,e*l).map((function(t){return t/l}))},calculateStepFromLimit:function(t,e){return o.divide(o.subtract(t.max,t.min),e-1)},sumPlusValues:function(t){var e=t.filter((function(t){return t>0}));return o.sum(e)},sumMinusValues:function(t){var e=t.filter((function(t){return t<0}));return o.sum(e)},makePercentageValue:function(t,e){return t/e*100},calculateRatio:function(t,e,l,n){return e?(t-l)/e*n:0},getDecimalLength:function(t){var e=String(t).split(".");return 2===e.length?e[1].length:0},findMultipleNum:function(){for(var t=arguments.length,e=Array(t),l=0;lc.dimension[e]+p})(n+=r)||(i?o?(a+=f+","+(d+n),a+="H"+(f+5),a+="M"+h+","+(d+n),a+="H"+(h-5)):s?(a+=f+","+(d+n),a+="H"+(f+5)):(a+=h+","+(d+n),a+="H"+(h-5)):(a+=f+n+","+d,a+="V"+(d+5)),isNaN(n)||(g=l.path(a).attr({stroke:u,opacity:.5}),t.set.push(g),e.ticks.push(g)))}))},t.prototype.renderStandardLine=function(t){var e=t.areaSize,l=t.layout,n=l.position,r=l.dimension,i=t.paper,o=t.isVertical,a=n.left,s=Math.abs(t.axisLimit.min),u=Math.abs(t.axisLimit.max),c=1-u/(s+u),h="M",d=n.top,f=a+r.width;if(o){var p=d;h+=(f+=t.seriesDimension.width*c)+","+p,h+="V"+(d+e)}else h+=a,h+=","+(d-=t.seriesDimension.height*c)+"H",h+=a+e;t.set.push(i.path(h).attr({"stroke-width":1,opacity:.5}))},t.prototype.renderTickLine=function(t){var e=t.areaSize,l=t.paper,n=t.layout,r=n.position,i=r.top,o=r.left,a=n.dimension,s=t.isNegativeStandard,u=t.isNotDividedXAxis,c=t.additionalSize,h=t.isPositionRight,d=t.isCenter,f=t.isVertical,p=t.tickColor,g=t.seriesDimension,m=e,v=a.height+i,y=o+a.width,b="M",w=void 0;h?(b+=o+","+i,b+="V"+v):f?(w=i,s&&(y+=g.width/2),b+=y+","+w,d?(b+="V"+v,b+="M"+o+","+w,b+="V"+v):b+="V"+(i+m)):b=this._makeNormalTickPath(b,{isNotDividedXAxis:u,baseTop:i,baseLeft:o,additionalSize:c,isNegativeStandard:s,seriesDimension:g,lineSize:m}),t.set.push(l.path(b).attr({"stroke-width":1,stroke:p,opacity:.5}))},t.prototype._makeNormalTickPath=function(t,e){e.isNotDividedXAxis?t+=e.baseLeft:t+=e.baseLeft+e.additionalSize,e.isNegativeStandard&&(e.baseTop-=e.seriesDimension.height/2),t+=","+e.baseTop+"H";var l=e.baseLeft+e.lineSize;return e.isNotDividedXAxis||(l+=e.additionalSize),t+=l},t.prototype.animateForAddingData=function(t){this.ticks.forEach((function(e){e.animate({transform:"t-"+t+",0"},300)}))},t.prototype.calculatePosition=function(t,e){var l=e.rotationInfo,r=e.text,i=e.theme,a=e.additionalWidth,s=e.otherSideDimension,u=e.areaSize,c=e.layout,h=function(t,e){return n.default.getRenderedTextSize(t,e.fontSize,e.fontFamily).height}(r,i),d=function(t,e){return n.default.getRenderedTextSize(t,e.fontSize,e.fontFamily).width}(r,i),f=c.dimension.height,p=c.dimension.width,g=c.position,m=g.top,v=g.left,y=v+a,b=d-s.width,w={top:m+f-h/2,left:y+(b<0?0:b)};return l.isVertical?l.isCenter?(w.top+=h/2,w.left=v+p/2):l.isDiverging||(w.top=m-h/2-o):l.isVertical||(l.isDiverging&&l.isYAxisCenter?w.left=v+u/2:l.isDiverging&&!l.isYAxisCenter?w.left=v+p/2:l.isXAxisTitleLeft?w.left=c.position.left:w.left=c.position.left+p),l.isPositionRight&&(w.left+=p),l.isCenter||function(t,e){e&&(e.x&&(t.left+=e.x),e.y&&(t.top+=e.y))}(w,e.offset),w},t}();e.default=s},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=o(l(12)),i=o(l(27));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.render=function(t){var e=t.paper.set();return this.paper=t.paper,this.layout=t.layout,this.plotPositions=t.plotPositions,this.theme=t.theme,this.options=t.options,this.labelData=t.labelData,this._renderPlot(e),this._renderLabels(e),e.toBack(),this.paper.pushDownBackgroundToBottom(),e},t.prototype._renderPlot=function(t){"circle"===this.options.type?this._renderCirclePlot(t):this._renderSpiderwebPlot(t),this._renderCategoryDots(t)},t.prototype._renderSpiderwebPlot=function(t){var e=this._getLinesPath(this.plotPositions);this._renderLines(e,this.theme.lineColor,t)},t.prototype._renderCirclePlot=function(t){for(var e=this.plotPositions,l=n(e,1),i=n(l[0],1)[0],o=this.theme.lineColor,a=1;a1&&void 0!==arguments[1]?arguments[1]:{},l=arguments[2],o=arguments[3];if(e.table&&(e=c.default.makeDataWithTable(e.table)),e.series||(e.series=[]),e=u.default.deepCopy(e),"combo"!==o){var s=e.series;e.series={},e.series[o]=s}(l=l?u.default.deepCopy(l):{}).chartType=o,l.theme=l.theme||r.default.DEFAULT_THEME_NAME,l.series&&l.series.stackType&&(l.series.stack={type:l.series.stackType},delete l.series.stackType),l.series&&(0,n.default)(l.series.stack)&&(l.series.stack={type:l.series.stack});var h=l.series&&l.series.colorByPoint,d=a.default.get(l.theme,o,e.series,h),f=i.default.get(l.chartType,e,d,l);return f.render(t),f.animateChart(),f}l(61),l(62),l(175),t.exports={barChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_BAR)},columnChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_COLUMN)},lineChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_LINE)},areaChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_AREA)},bubbleChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_BUBBLE)},scatterChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_SCATTER)},heatmapChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_HEATMAP)},treemapChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_TREEMAP)},comboChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_COMBO)},pieChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_PIE)},mapChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_MAP)},radialChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_RADIAL)},boxplotChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_BOXPLOT)},bulletChart:function(t,e,l){return f(t,e,l,r.default.CHART_TYPE_BULLET)},registerTheme:function(t,e){a.default.register(t,e)},registerMap:function(t,e){s.default.register(t,e)},registerPlugin:function(t,e,l){o.default.register(t,e),h.default.addRendererType(t,l)}}},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(23)),r=o(l(50)),i=o(l(33));function o(t){return t&&t.__esModule?t:{default:t}}var a={};e.default={_findKey:function(t,e){var l=null;if(i.default.isComboChart(t)){var o=r.default.getChartTypeMap(e);o[n.default.CHART_TYPE_COLUMN]&&o[n.default.CHART_TYPE_LINE]?l=n.default.CHART_TYPE_COLUMN_LINE_COMBO:o[n.default.CHART_TYPE_LINE]&&o[n.default.CHART_TYPE_SCATTER]?l=n.default.CHART_TYPE_LINE_SCATTER_COMBO:o[n.default.CHART_TYPE_AREA]&&o[n.default.CHART_TYPE_LINE]?l=n.default.CHART_TYPE_LINE_AREA_COMBO:o[n.default.CHART_TYPE_PIE]&&(l=n.default.CHART_TYPE_PIE_DONUT_COMBO)}else l=t;return l},get:function(t,e,l,n){var r=this._findKey(t,e),i=a[r];if(!i)throw new Error("Not exist "+t+" chart.");return new i(e,l,n)},register:function(t,e){a[t]=e}}},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=u(l(7)),i=u(l(8)),o=u(l(23)),a=u(l(33)),s=u(l(27));function u(t){return t&&t.__esModule?t:{default:t}}e.default={pickStacks:function(t,e){var l=t.map((function(t){return t.stack})),n=s.default.unique(l);e&&(n=n.slice(0,2));var r=n.filter((function(t){return!!t}));return r.length1&&void 0!==arguments[1]?arguments[1]:{};a.default.isValidStackOption(l.stack)&&Object.keys(t.series).forEach((function(l){t.series[l]=e._sortSeriesData(t.series[l])})),l.diverging&&Object.entries(t.series).forEach((function(r){var i=n(r,2),o=i[0],a=i[1];t.series[o]=e._makeRawSeriesDataForDiverging(a,l.stack)}))},appendOutliersToSeriesData:function(t){t.series.boxplot.forEach((function(t){var e=t.outliers;e&&e.length&&e.forEach((function(e){t.data[e[0]].push(e[1])}))}))},filterCheckedRawData:function(t,e){var l=JSON.parse(JSON.stringify(t));if(e&&Object.entries(l.series).forEach((function(t){var r=n(t,2),i=r[0],o=r[1];e[i]?e[i].length&&(l.series[i]=o.filter((function(t,l){return e[i][l]}))):l.series[i]=[]})),l.series.bullet){var r=[];e.bullet.forEach((function(e,l){e&&r.push(t.categories[l])})),l.categories=r}return l},_makeRawSeriesDataForBulletChart:function(t){var e=t.series.bullet,l=void 0===e?[]:e;t.categories=t.categories||[],t.categories=l.map((function(t){return t.name||""}))}}},function(t,e,l){"use strict";e.__esModule=!0;var n,r=l(23),i=(n=r)&&n.__esModule?n:{default:n},o={};e.default={get:function(t,e){var l=o[t||i.default.DEFAULT_PLUGIN];if(!l)throw new Error("Not exist "+t+" plugin.");var n=l[e];if(!n)throw new Error("Not exist "+e+" chart renderer.");return new n},register:function(t,e){o[t]=e}}},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=h(l(9)),i=h(l(15)),o=h(l(7)),a=h(l(8)),s=h(l(23)),u=h(l(33)),c=h(l(53));function h(t){return t&&t.__esModule?t:{default:t}}var d={};e.default={register:function(t,e){e=JSON.parse(JSON.stringify(e)),d[t]=e},_pickSeriesNames:function(t,e){var l=[];return u.default.isComboChart(t)?Object.keys(e).forEach((function(t){l.push(t)})):l.push(t),l},_overwriteTheme:function(t,e){var l=this;Object.entries(e).forEach((function(i){var a=n(i,2),s=a[0],u=a[1],c=t[s];(c||0===c)&&((0,r.default)(c)?e[s]=c.slice():(0,o.default)(c)?l._overwriteTheme(c,u):e[s]=c)}))},_pickValidTheme:function(t,e){var l={};return s.default.THEME_PROPS_MAP[e].forEach((function(e){(0,i.default)(t[e])&&(l[e]=t[e])})),l},_createComponentThemeWithSeriesName:function(t,e,l,n){var r=this,i={};return e=e||{},t.forEach((function(t){var o=e[t]||r._pickValidTheme(e,n);Object.keys(o).length?(i[t]=JSON.parse(JSON.stringify(c.default[n])),r._overwriteTheme(o,i[t])):i[t]=JSON.parse(JSON.stringify(l))})),i},_makeEachSeriesColors:function(t,e,l){for(var n=[],r=t.length,i=l||0,o=0;o=r&&(i=0);return n},_setSeriesColors:function(t,e,l,n,r){var i=this,o=void 0,a=void 0,s=void 0,u=0;l=l||{},t.forEach((function(t){l[t]?(o=l[t].colors,s=!0):(o=l.colors||c.default.series.colors,s=!1),a=i._getSeriesThemeColorCount(n[t],r),e[t].colors=i._makeEachSeriesColors(o,a,!s&&u),s||(u=(a+u)%o.length)}))},_getSeriesThemeColorCount:function(t,e){var l=0;if(t&&t.length){var n=t[0]&&t[0].data&&t[0].data.length;l=e&&n?Math.max(t.length,t[0].data.length):t.length}return l},_initTheme:function(t,e,l,n,r){var i=void 0;return t!==s.default.DEFAULT_THEME_NAME?(i=JSON.parse(JSON.stringify(c.default)),this._overwriteTheme(e,i)):i=JSON.parse(JSON.stringify(e)),i.yAxis=this._createComponentThemeWithSeriesName(l,e.yAxis,i.yAxis,"yAxis"),i.series=this._createComponentThemeWithSeriesName(l,e.series,i.series,"series"),this._setSeriesColors(l,i.series,e.series,n,r),i},_createTargetThemesForFontInherit:function(t){var e=[t.title,t.xAxis.title,t.xAxis.label,t.legend.label,t.plot.label];return(0,a.default)(t.yAxis,(function(t){e.push(t.title,t.label)})),(0,a.default)(t.series,(function(t){e.push(t.label)})),e},_inheritThemeFont:function(t){var e=this._createTargetThemesForFontInherit(t),l=t.chart.fontFamily;e.forEach((function(t){t.fontFamily||(t.fontFamily=l)}))},_copySeriesColorTheme:function(t,e,l){e[l]={colors:t.colors,borderColor:t.borderColor,selectionColor:t.selectionColor}},_copySeriesColorThemeToOther:function(t){var e=this;(0,a.default)(t.series,(function(l,n){e._copySeriesColorTheme(l,t.legend,n),e._copySeriesColorTheme(l,t.tooltip,n)}))},get:function(t,e,l,n){var r=d[t];if(!r)throw new Error("Not exist "+t+" theme.");var i=this._pickSeriesNames(e,l),o=this._initTheme(t,r,i,l,n);return this._inheritThemeFont(o,i),this._copySeriesColorThemeToOther(o),o}}},function(t,e){"use strict";e.__esModule=!0;var l=e.DEFAULT_LEGEND_LABEL_FONTCOLOR="#333",n={tickColor:"#000000",title:{fontSize:11,fontFamily:"Arial",color:"#bbbbbb",fontWeight:"bold"},label:{fontSize:11,fontFamily:"Arial",color:"#333",fontWeight:"normal"}};e.default={chart:{background:{color:"#ffffff",opacity:1},fontFamily:"Arial"},title:{fontSize:18,fontFamily:"Arial",color:"#000000",fontWeight:"lighter"},yAxis:n,xAxis:n,plot:{lineColor:"#000000",background:"#ffffff",label:{fontSize:11,fontFamily:"Arial",color:"#888"}},series:{label:{fontSize:11,fontFamily:"Arial",color:"#000000",fontWeight:"lighter"},colors:["#00a9ff","#ffb840","#ff5a46","#00bd9f","#785fff","#f28b8c","#989486","#516f7d","#29dbe3","#dddddd"],borderColor:"",borderWidth:"",selectionColor:"",startColor:"#FFE98A",endColor:"#D74177",overColor:"",dot:{fillColor:"",fillOpacity:1,strokeColor:"",strokeOpacity:"",strokeWidth:0,radius:6,hover:{fillColor:"",fillOpacity:1,strokeColor:"#fff",strokeOpacity:1,strokeWidth:4,radius:6}},ranges:[]},legend:{label:{fontSize:11,fontFamily:"Arial",color:l,fontWeight:"lighter"}},tooltip:{},chartExportMenu:{backgroundColor:"#fff",borderRadius:0,borderWidth:1,color:"#000"}}},function(t,e){"use strict";e.__esModule=!0;var l={};e.default={get:function(t){var e=l[t];if(!e)throw new Error("Not exist "+t+" map.");return e},register:function(t,e){l[t]=e}}},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=s(l(9)),i=s(l(18)),o=s(l(56)),a=s(l(7));function s(t){return t&&t.__esModule?t:{default:t}}e.default={deepCopy:function t(e){var l=void 0;return(0,r.default)(e)?(l=[],e.forEach((function(e,n){l[n]=t(e)}))):(0,o.default)(e)||(0,i.default)(e)?l=e:(0,a.default)(e)?(l={},Object.entries(e).forEach((function(e){var r=n(e,2),i=r[0],o=r[1];l[i]=t(o)}))):l=e,l}}},function(t,e){"use strict";t.exports=function(t){return t instanceof Function}},function(t,e,l){"use strict";e.__esModule=!0;var n=a(l(8)),r=a(l(58)),i=a(l(59)),o=a(l(27));function a(t){return t&&t.__esModule?t:{default:t}}e.default={makeDataWithTable:function(t){var e=void 0;return t.element&&"TABLE"===t.element.tagName?e=t.element:t.elementId&&(e=document.getElementById(t.elementId)),function(t){var e=void 0;return t.length>0&&((e={}).categories=[],e.series=[],e.categories=t.shift().slice(1),t.forEach((function(t){var l={name:t[0],data:t.slice(1)};e.series.push(l)}))),e}(function(t){var e=[];if(t){var l=[],a=(0,i.default)(t.getElementsByTagName("TR"));(0,n.default)(a,(function(t,e){var n=0===e?"TH":"TD",o=(0,i.default)(t.getElementsByTagName(n)),a=(0,r.default)(o,"innerText");l.push(a)})),l[0].length1,this.addComponents(),this._attachToEventBus(),this.componentManager.presetAnimationConfig(this.options.series.animation),this.options.usageStatistics&&(0,a.default)("chart","UA-129983528-1")}return t.prototype.destroy=function(){var t=this;this.eventBus.off(),this.chartContainer.outerHTML="",(0,o.default)(this,(function(e,l){t[l]=null}))},t.prototype.selectSeries=function(t){var e=t.legendIndex,l=t.index,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.componentManager.get("mouseEventDetector").selectSeries({chartType:this.chartType,indexes:{groupIndex:l,index:e}},n)},t.prototype.unselectSeries=function(){this.componentManager.get("mouseEventDetector").unselectSeries()},t.prototype._attachToEventBus=function(){this.eventBus.on("changeCheckedLegends",this.onChangeCheckedLegends,this),this.onZoom&&this.eventBus.on({zoom:this.onZoom,resetZoom:this.onResetZoom},this)},t.prototype._setOffsetProperty=function(t,e,l){(0,r.default)(t[e])&&(t.offset=t.offset||{},t.offset[l]=t[e],delete t[e])},t.prototype._initializeOffset=function(t){t&&(this._setOffsetProperty(t,"offsetX","x"),this._setOffsetProperty(t,"offsetY","y"))},t.prototype._initializeTitleOptions=function(t){var e=this;t&&((0,n.default)(t)?t:[t]).forEach((function(t){var l=t.title;(0,i.default)(l)&&(t.title={text:l}),e._initializeOffset(t.title)}))},t.prototype._initializeTooltipOptions=function(t){t.grouped=!!t.grouped,this._initializeOffset(t),delete t.position},t.prototype._initializeOptions=function(t){var e=g.default.deepCopy(t),l={chartTypes:this.chartTypes,xAxis:{},series:{},tooltip:{},usageStatistics:!0,chartExportMenu:Object.assign({visible:!0},e.chartExportMenu),legend:Object.assign({visible:!0},e.legend)};delete e.chartExportMenu,delete e.legend,Object.assign(t,l,e),this._initializeTitleOptions(t.chart),this._initializeTitleOptions(t.xAxis),this._initializeTitleOptions(t.yAxis),this._initializeTooltipOptions(t.tooltip),this.options=t},t.prototype._createDataProcessor=function(t){return new(t.DataProcessor||h.default)(t.rawData,this.chartType,t.options,this.seriesTypes)},t.prototype._createComponentManager=function(){return new c.default({options:this.options,theme:this.theme,dataProcessor:this.dataProcessor,hasAxes:this.hasAxes,eventBus:this.eventBus,isVertical:this.isVertical,seriesTypes:this.seriesTypes||[this.chartType]})},t.prototype.addComponents=function(){},t.prototype.getScaleOption=function(){},t.prototype._buildBoundsAndScaleData=function(t,e){return m.default.build(this.dataProcessor,this.componentManager,{chartType:this.chartType,seriesTypes:this.seriesTypes,options:this.options,theme:this.theme,hasAxes:this.hasAxes,scaleOption:this.getScaleOption(),isVertical:this.isVertical,hasRightYAxis:this.hasRightYAxis,addedDataCount:this._dynamicDataHelper?this._dynamicDataHelper.addedDataCount:null,prevXAxisData:t,addingDataMode:e})},t.prototype.addDataRatios=function(){},t.prototype.readyForRender=function(t){var e=this._buildBoundsAndScaleData(this.prevXAxisData,t);return e.axisDataMap.xAxis&&(this.prevXAxisData=e.axisDataMap.xAxis),this.addDataRatios(e.limitMap),e},t.prototype.render=function(t){var e=f.default.create("DIV","tui-chart "+this.className),l=this.componentManager,n=this.dataProcessor,r=n.getLegendVisibility(),i=d.default.filterCheckedRawData(n.rawData,r),o=l.drawingToolPicker.getPaper(e,u.default.COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(i),o.changeChartBackgroundColor(this.theme.chart.background.color),o.changeChartBackgroundOpacity(this.theme.chart.background.opacity),p.default.renderFontFamily(e,this.theme.chart.fontFamily),f.default.append(t,e);var a=this.readyForRender();p.default.renderDimension(e,a.dimensionMap.chart),l.render("render",a,{checkedLegends:r},e),this.chartContainer=e,this.paper=o},t.prototype.protectedRerender=function(t,e){var l=this.dataProcessor;e||(e=d.default.filterCheckedRawData(l.getCurrentData(),t)),this.dataProcessor.initData(e);var n=this.readyForRender();this.componentManager.render("rerender",n,{checkedLegends:t},this.chartContainer)},t.prototype.rerender=function(t,e){t=t||this.getCheckedLegend();var l=(e=e||this.dataProcessor.getOriginalRawData()).series;e.series=Object.keys(l).reduce((function(e,n){var r=l[n],i=t[n];return e[n]=r.map((function(t,e){return t.visible=i[e],t})),e}),{}),this.setData(e)},t.prototype.setData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=this._initializeRawData(t),n=this.dataProcessor,r=this.options,i=r.chartType,o=r.theme;n.initData(l,!0);var a=v.default.get(o,i,l.series);this.theme=a,this.componentManager.presetBeforeRerender(),this.componentManager.presetForChangeData(a),this.componentManager.presetAnimationConfig(e),this.protectedRerender(n.getLegendVisibility())},t.prototype.getCheckedLegend=function(){var t=this.componentManager,e=this.dataProcessor;return t.has("legend")?t.get("legend").getCheckedIndexes():e.getLegendVisibility()},t.prototype._initializeRawData=function(t){this.prevXAxisData=null;var e=g.default.deepCopy(t),l=this.originalOptions,r=l.chartType,i=l.series;if("combo"!==r&&(0,n.default)(e.series)){var o=e.series;e.series={},e.series[r]=o}return d.default.updateRawSeriesDataByOptions(e,i),"boxplot"===r&&d.default.appendOutliersToSeriesData(e),e},t.prototype.onChangeCheckedLegends=function(t,e,l){this.protectedRerender(t,e,l)},t.prototype.animateChart=function(){this.componentManager.execute("animateComponent")},t.prototype.on=function(t,e){u.default.PUBLIC_EVENT_MAP[t]&&this.eventBus.on(u.default.PUBLIC_EVENT_PREFIX+t,e)},t.prototype.off=function(t,e){u.default.PUBLIC_EVENT_MAP[t]&&this.eventBus.off(u.default.PUBLIC_EVENT_PREFIX+t,e)},t.prototype._updateChartDimension=function(t){var e=!1,l=this.options;return l.chart=l.chart||{},t.width&&t.width>0&&l.chart.width!==t.width&&(l.chart.width=t.width,e=!0),t.height&&t.height>0&&l.chart.height!==t.height&&(l.chart.height=t.height,e=!0),e},t.prototype.resize=function(t){var e=this.dataProcessor.getLegendVisibility();if(t&&this._updateChartDimension(t)){var l=this.readyForRender(),n=l.dimensionMap.chart;p.default.renderDimension(this.chartContainer,n),this.paper.resizeBackground(n.width,n.height),this.paper.setSize(n.width,n.height),this.componentManager.render("resize",l,{checkedLegends:e})}},t.prototype.setTooltipAlign=function(t){this.componentManager.get("tooltip").setAlign(t)},t.prototype.setTooltipOffset=function(t){this.componentManager.get("tooltip").setOffset(t)},t.prototype.setTooltipPosition=function(t){this.componentManager.get("tooltip").setPosition(t)},t.prototype.resetTooltipAlign=function(){this.componentManager.get("tooltip").resetAlign()},t.prototype.resetTooltipOffset=function(){this.componentManager.get("tooltip").resetOffset()},t.prototype.resetTooltipPosition=function(){this.resetTooltipOffset()},t.prototype.showSeriesLabel=function(){this.componentManager.where({componentType:"series"}).forEach((function(t){t.showLabel()}))},t.prototype.hideSeriesLabel=function(){this.componentManager.where({componentType:"series"}).forEach((function(t){t.hideLabel()}))},t.prototype.addData=function(){},t.prototype.addPlotLine=function(){},t.prototype.addPlotBand=function(){},t.prototype.removePlotLine=function(){},t.prototype.removePlotBand=function(){},t.prototype._getSeriesData=function(t,e,l){var n={index:t,seriesIndex:e,outlierIndex:l};return e<0?null:this.componentManager.get("mouseEventDetector").findDataByIndexes(n)},t.prototype._findSeriesIndexByLabel=function(t,e){for(var l=this.dataProcessor.getLegendLabels(t),n=l?l.length:0,r=-1,i=0;i=0||!t&&e.prevFoundData)&&e._hideTooltip({silent:!0})}},t}();e.default=w},function(t,e,l){"use strict";var n=l(14),r=l(66);t.exports=function(t,e){var l=location.hostname,i="TOAST UI "+t+" for "+l+": Statistics",o=window.localStorage.getItem(i);(n(window.tui)||!1!==window.tui.usageStatistics)&&(o&&!function(t){return(new Date).getTime()-t>6048e5}(o)||(window.localStorage.setItem(i,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||r("https://www.google-analytics.com/collect",{v:1,t:"event",tid:e,cid:l,dp:l,dh:t,el:t,ec:"use"})}),1e3)))}},function(t,e,l){"use strict";var n=l(11);t.exports=function(t,e){var l=document.createElement("img"),r="";return n(e,(function(t,e){r+="&"+e+"="+t})),r=r.substring(1),l.src=t+"?"+r,l.style.display="none",document.body.appendChild(l),document.body.removeChild(l),l}},function(t,e,l){"use strict";var n=l(68),r=l(15),i=l(25),o=l(7),a=l(9),s=l(56),u=l(8),c=/\s+/g;function h(){this.events=null,this.contexts=null}h.mixin=function(t){n(t.prototype,h.prototype)},h.prototype._getHandlerItem=function(t,e){var l={handler:t};return e&&(l.context=e),l},h.prototype._safeEvent=function(t){var e,l=this.events;return l||(l=this.events={}),t&&((e=l[t])||(e=[],l[t]=e),l=e),l},h.prototype._safeContext=function(){var t=this.contexts;return t||(t=this.contexts=[]),t},h.prototype._indexOfContext=function(t){for(var e=this._safeContext(),l=0;e[l];){if(t===e[l][0])return l;l+=1}return-1},h.prototype._memorizeContext=function(t){var e,l;r(t)&&(e=this._safeContext(),(l=this._indexOfContext(t))>-1?e[l][1]+=1:e.push([t,1]))},h.prototype._forgetContext=function(t){var e,l;r(t)&&(e=this._safeContext(),(l=this._indexOfContext(t))>-1&&(e[l][1]-=1,e[l][1]<=0&&e.splice(l,1)))},h.prototype._bindEvent=function(t,e,l){var n=this._safeEvent(t);this._memorizeContext(l),n.push(this._getHandlerItem(e,l))},h.prototype.on=function(t,e,l){var n=this;i(t)?(t=t.split(c),u(t,(function(t){n._bindEvent(t,e,l)}))):o(t)&&(l=e,u(t,(function(t,e){n.on(e,t,l)})))},h.prototype.once=function(t,e,l){var n=this;if(o(t))return l=e,void u(t,(function(t,e){n.once(e,t,l)}));this.on(t,(function r(){e.apply(l,arguments),n.off(t,r,l)}),l)},h.prototype._spliceMatches=function(t,e){var l,n=0;if(a(t))for(l=t.length;n0},h.prototype.getListenerLength=function(t){return this._safeEvent(t).length},t.exports=h},function(t,e){"use strict";t.exports=function(t,e){var l,n,r,i,o=Object.prototype.hasOwnProperty;for(r=1,i=arguments.length;r2&&void 0!==arguments[2]?arguments[2]:{},n=l.index||0,r=U[e],i=r.componentType;l.name=t,l.chartTheme=this.theme,l.chartOptions=this.options,l.seriesTypes=this.seriesTypes;var o=this._getOptionKey(i,t);l.theme=this._makeTheme(o,t),l.options=this._makeOptions(o,t,n),l.dataProcessor=this.dataProcessor,l.hasAxes=this.hasAxes,l.isVertical=this.isVertical,l.eventBus=this.eventBus,l.alternativeModel=this.alternativeModel;var a=r(l);a&&(a.componentName=t,a.componentType=i,this.components.push(a),this.componentMap[t]=a)},t.prototype.presetBeforeRerender=function(){this.componentMap.mouseEventDetector.zoomable&&this.componentMap.mouseEventDetector.presetBeforeRerender()},t.prototype.presetForChangeData=function(t){var e=this;this.theme=t,this.components.forEach((function(t){if(t.presetForChangeData){var l=t.componentType,n=t.componentName,r=e._getOptionKey(l,n);t.presetForChangeData(e._makeTheme(r,n))}}))},t.prototype.presetAnimationConfig=function(t){var e=this;this.seriesTypes.forEach((function(l){(0,a.default)(e.options.series[l])?e.options.series[l].animationDuration=e._getAnimationDuration(t):e.options.series.animationDuration=e._getAnimationDuration(t)}))},t.prototype._getAnimationDuration=function(t){return(0,i.default)(t)&&!t?0:(0,a.default)(t)&&(0,o.default)(t.duration)?t.duration:F.default.getDefaultAnimationDuration(this.options.chartType)},t.prototype._makeOptions=function(t,e,l){var n=this.options[t];return n||"rightYAxis"!==t||(n=this.options.yAxis),"series"===t&&this.seriesTypes.forEach((function(t){return 0!==e.indexOf(t)||(n=n[t]||n,(0,r.default)(n)&&(n=n[l]||{}),!1)})),n},t.prototype._getOptionKey=function(t,e){return"axis"===t?e:t},t.prototype._makeTheme=function(t,e){var l=this.theme[t];return l||"rightYAxis"!==t||(l=this.theme.yAxis),"series"===t&&this.seriesTypes.forEach((function(t){return 0!==e.indexOf(t)||(l=l[t],!1)})),l},t.prototype._makeDataForRendering=function(t,e,l,n,r){var i=Object.assign({paper:l},r);return n&&(Object.assign(i,n),i.layout={dimension:i.dimensionMap[t]||i.dimensionMap[e],position:i.positionMap[t]||i.positionMap[e]}),i},t.prototype.render=function(t,e,l,n){var r=this,i=this.components.map((function(i){var o=null;if(i[t]){var a=i.componentName,s=i.componentType,u=r.drawingToolPicker.getPaper(n,i.drawingType),c=r._makeDataForRendering(a,s,u,e,l),h=i[t](c);h&&!h.paper&&(o=h)}return o}));n&&c.default.append(n,i)},t.prototype.where=function(t){return this.components.filter((function(e){var l=!0;return Object.entries(t).forEach((function(t){var r=n(t,2),i=r[0],o=r[1];return e[i]!==o&&(l=!1),l})),l}))},t.prototype.execute=function(t){for(var e=arguments.length,l=Array(e>1?e-1:0),n=1;n3&&void 0!==arguments[3]?arguments[3]:0,r=this.isYAxis&&this.data.aligned,o=this.limitMap[this.dataProcessor.chartType],a=!this.data.limit&&o&&o.min<0,s=i.default.isBarTypeChart(this.dataProcessor.chartType),u=this.dataProcessor.getOption("series")||{},c=u.diverging;this.isYAxis&&!this.data.isPositionRight&&!this.options.isCenter&&this.shifting&&this._renderBackground(),this._renderTitleArea(t,n),!1!==this.options.showLabel&&this._renderLabelArea(t,e,l,n),r||this._renderTickArea(t,e,n),a&&s&&!c&&this._renderNegativeStandardsLine(t,n,this.dimensionMap.series,o)},t.prototype._renderDividedAxis=function(t){var e=t.width,l=this.data,n=l.tickCount,r=l.labels,i=Math.round(e/2),o=e-i-1,a=parseInt(n/2,10)+1,s=r.slice(0,a),u=r.slice(a-1,n),c=i/a,h=i+this.dimensionMap.yAxis.width-1;this.paperAdditionalWidth=c,this._renderChildContainers(i,a,s,0),this._renderChildContainers(o+1,a,u,h)},t.prototype._renderNotDividedAxis=function(t){var e=t.width,l=t.height,n=this.data,r=n.positionRatio,i=n.tickCount,o=n.labels,a=this.isYAxis?l:e,s=0;r&&(s=a*r),this._renderChildContainers(a,i,o,s)},t.prototype._renderAxisArea=function(){var t=this.layout.dimension,e=this.data.isLabelAxis,l=this.options,n=l.divided,r=l.isCenter,i=t.width;this.isLabelAxis=e,n?(this.containerWidth=i+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),i=this.containerWidth):(i+=r?1:0,this._renderNotDividedAxis(t))},t.prototype._setDataForRendering=function(t){var e=t.layout,l=t.dimensionMap,n=t.limitMap,r=t.axisDataMap;this.layout=e,this.dimensionMap=l,this.limitMap=n,this.data=r[this.componentName],this.options=this.data.options},t.prototype.render=function(t){var e=t.paper;this.paper=e,this.axisSet=e.set(),this._setDataForRendering(t),this._renderAxisArea()},t.prototype.rerender=function(t){this.axisSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._getOtherSideDimension=function(){return this.dimensionMap[this.isYAxis?"xAxis":"yAxis"]},t.prototype._renderTitleArea=function(t,e){var l=this.options.title,n=void 0===l?{}:l,r=this.dataProcessor.getOption("xAxis"),o=this.dataProcessor.getOption("yAxis"),a=this.dataProcessor.getOption("series")||{};n.text&&this.graphRenderer.renderTitle(this.paper,{text:n.text,offset:n.offset,theme:this.theme.title,rotationInfo:{isVertical:this.isYAxis,isPositionRight:this.data.isPositionRight,isCenter:this.options.isCenter,isColumnType:i.default.isColumnTypeChart(this.dataProcessor.chartType,this.dataProcessor.seriesTypes),isDiverging:a.diverging,isYAxisCenter:o&&"center"===o.align,isXAxisTitleLeft:r&&r.title&&"left"===r.title.align},layout:this.layout,areaSize:t,additionalWidth:e,otherSideDimension:this._getOtherSideDimension(),tickCount:this.data.tickCount,set:this.axisSet})},t.prototype._renderTickLine=function(t,e,l){this.graphRenderer.renderTickLine({areaSize:t,additionalSize:l,additionalWidth:this.paperAdditionalWidth,additionalHeight:this.paperAdditionalHeight,isPositionRight:this.data.isPositionRight,isCenter:this.data.options.isCenter,isNotDividedXAxis:e,isVertical:this.isYAxis,tickColor:this.theme.tickColor,layout:this.layout,paper:this.paper,set:this.axisSet})},t.prototype._renderTicks=function(t,e,l,n){var r=this.theme.tickColor,i=this.data,a=i.remainLastBlockInterval,s=i.sizeRatio,u=void 0===s?1:s,c=i.tickCount,h=i.isPositionRight,d=a?t:0,f=this.isYAxis,p=this.data.options,g=p.isCenter,m=p.divided,v=o.default.makeTickPixelPositions(t*u,e,0,d),y=this.paperAdditionalHeight+1,b=this.paperAdditionalWidth,w=d?c+1:c;v.length=w,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:v,isVertical:f,isCenter:g,isDivided:m,additionalSize:n,additionalWidth:b,additionalHeight:y,otherSideDimension:this._getOtherSideDimension(),isPositionRight:h,tickColor:r,set:this.axisSet})},t.prototype._renderNegativeStandardsLine=function(t,e,l,n){this.graphRenderer.renderStandardLine({areaSize:t,isVertical:this.isYAxis,layout:this.layout,paper:this.paper,set:this.axisSet,seriesDimension:l,axisLimit:n})},t.prototype._renderTickArea=function(t,e,l){var n=!this.isYAxis&&!this.options.divided;this._renderTickLine(t,n,l||0),this._renderTicks(t,e,n,l||0)},t.prototype._renderLabelArea=function(t,e,l,n){var r=this.data,i=r.sizeRatio,a=void 0===i?1:i,s=r.remainLastBlockInterval?t:0,u=o.default.makeTickPixelPositions(t*a,e,0,s),c=u[1]-u[0];this._renderLabels(u,l,c,n||0)},t.prototype._renderRotationLabels=function(t,e,l,n){var r=this,i=this.graphRenderer,o=this.isYAxis,a=this.theme.label,s=this.data.degree,u=l/2,c=l/h,f=this.layout.position,p=f.top,g=f.left,m=p+d,v=g,y=this.options.labelMargin||0;t.forEach((function(t,h){var d=t+(n||0),f={};o?(f.top=d+u,f.left=l+y):(f.top=m+y,f.left=v+d+c),i.renderRotatedLabel({degree:s,labelText:e[h],paper:r.paper,positionTopAndLeft:f,set:r.axisSet,theme:a})}),this)},t.prototype._renderNormalLabels=function(t,e,l,n){var r=this,o=this.graphRenderer,a=this.isYAxis,c=this.isLabelAxis,h=this.dataProcessor,d=this.layout,f=this.data.isPositionRight,p=this.theme.label,g=this.options,m=g.labelMargin,v=void 0===m?0:m,y=g.pointOnColumn,b=g.isCenter,w=g.maxWidth,x=i.default.isLineTypeChart(h.chartType,h.seriesTypes),_=x&&y,S=i.default.isAutoTickInterval(this.options.tickInterval);t.forEach((function(i,h){var g=i+n,m=l/2,y=r._isOverLapXAxisLabel(e[h],i,t[h+1]),M={};if(!(g<0||!a&&S&&y)){(M=a?r._getYAxisLabelPosition(d,{labelPosition:g,isCategoryLabel:c,halfLabelDistance:m,isPositionRight:f}):r._getXAxisLabelPosition(d,{labelMargin:v,labelHeight:s.default.getRenderedLabelsMaxHeight(e,p),labelPosition:g,isCategoryLabel:c,isLineTypeChart:x,isPointOnColumn:_,halfLabelDistance:m})).top=Math.round(M.top),M.left=Math.round(M.left);var E=e[h];w&&(E=u.default.getEllipsisText(e[h],w,p)),o.renderLabel({isPositionRight:f,isVertical:a,isCenter:b,labelSize:l,labelText:E,paper:r.paper,positionTopAndLeft:M,set:r.axisSet,theme:p})}}),this)},t.prototype._isOverLapXAxisLabel=function(t,e,l){var r=s.default.getRenderedLabelWidth(t);return!(0,n.default)(l)&&l-e0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t},t.prototype._renderPlotArea=function(t){var e=this.layout.dimension;u.default.isLineTypeChart(this.chartType,this.chartTypes)&&this._renderOptionalLines(t,e),this.options.showLine&&this._renderPlotLines(t,e)},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.axisDataMap=t.axisDataMap,this.paper=t.paper)},t.prototype.render=function(t){var e=t&&t.paper||this.paper;this.plotSet=e.set(),this.additionalPlotSet=e.set(),this._setDataForRendering(t),this._renderPlotArea(this.paper),this.additionalPlotSet.toBack(),this.plotSet.toBack(),e.pushDownBackgroundToBottom()},t.prototype.rerender=function(t){this.additionalPlotSet.remove(),this.plotSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._makeVerticalLineTemplateParams=function(t){return Object.assign({className:"vertical",positionType:"left",width:"1px"},t)},t.prototype._makeHorizontalLineTemplateParams=function(t){return Object.assign({className:"horizontal",positionType:"bottom",height:"1px"},t)},t.prototype._renderLine=function(t,e){var l=this.layout,n=l.position.top,r="M"+t+","+n+"V"+(n+l.dimension.height),i=this.paper.path(r);return i.attr({opacity:e.opacity||1,stroke:e.color}),this.additionalPlotSet.push(i),i},t.prototype._renderBand=function(t,e,l){var n=this.layout,r=n.position,i=n.dimension,o=i.width-t+r.left,a=e<0?o:e,s=this.paper.rect(t,r.top,a,i.height);return s.attr({fill:l.color,opacity:l.opacity||1,stroke:l.color}),this.additionalPlotSet.push(s),s},t.prototype._createOptionalLineValueRange=function(t){var e=t.range||[t.value];return u.default.isDatetimeType(this.xAxisTypeOption)&&(e=e.map((function(t){return new Date(t).getTime()||t}))),e},t.prototype._createOptionalLinePosition=function(t,e,l){var n=(l-t.dataMin)/t.distance,r=n*e;return 1===n&&(r-=1),r<0&&(r=null),r},t.prototype._calculateXAxisLabelDistance=function(t,e){var l=e.sizeRatio,n=void 0===l?1:l,r=e.tickCount,i=e.remainLastBlockInterval?t:0,o=c.default.makeTickPixelPositions(t*n,r,0,i);return o[1]-o[0]},t.prototype._createOptionalLinePositionWhenLabelAxis=function(t,e,l){var n=this.dataProcessor,r=u.default.isLineTypeChart(n.chartType,n.seriesTypes)&&e.options.pointOnColumn,i=n.findCategoryIndex(l),a=this._calculateXAxisLabelDistance(t,e)/2,s=null,c=void 0;if(!(0,o.default)(i)){var h=n.getCategoryCount();s=(c=0===i?0:i/(r?h:h-1))*t,r&&(s+=a)}return 1===c&&(s-=1),s},t.prototype._createOptionalLinePositionMap=function(t,e,l){var n=this.dataProcessor.getCategories(),r=n.length,i=this.dataProcessor.valuesMap.linex,a=this._createOptionalLineValueRange(t),s=void 0,u=void 0;if(e.isLabelAxis?(s=this._createOptionalLinePositionWhenLabelAxis(l,e,a[0]),u=this._createOptionalLinePositionWhenLabelAxis(l,e,a[1])):(s=this._createOptionalLinePosition(e,l,a[0]),u=a[1]&&this._createOptionalLinePosition(e,l,a[1])),(0,o.default)(s)){var c=r?n[0]:i[0];s=this._isBeforeVisibleValue(a[0],c)?0:-1}if((0,o.default)(u)||u>l){var h=r?n[r-1]:i[i.length-1];u=this._isAfterVisibleValue(a[1],h)?l:-1}return{start:s,end:u}},t.prototype._isBeforeVisibleValue=function(t,e){var l=this.dataProcessor;if(!(0,i.default)(t))return!1;if(u.default.isDatetimeType(this.xAxisTypeOption))return t=0&&ne;var n=l.findAbsoluteCategoryIndex(t),r=l.findAbsoluteCategoryIndex(e);return n>=0&&n>r},t.prototype._renderOptionalLine=function(t,e,l,n){var r=this._createOptionalLinePositionMap(n,t,e),i=void 0;return r.start>=0&&r.start<=e&&(l.width=1,l.color=n.color||"transparent",l.opacity=n.opacity,i=this._renderLine(r.start+this.layout.position.left,l)),i},t.prototype._makeOptionalBand=function(t,e,l,n){var r=this,i=n.range;i&&i.length&&this._makeRangeTo2DArray(n);var o=n.range.map((function(l){return r._createOptionalLinePositionMap({range:l},t,e)}));return n.mergeOverlappingRanges&&(o.sort(f),o=this._mergeOverlappingPositionMaps(o)),o.map((function(t){var i=void 0;if(t.start>=0&&t.start<=e&&t.end>=0){l.color=n.color||"transparent",l.opacity=n.opacity;var o=t.end-t.start;i=r._renderBand(t.start+r.layout.position.left,o,l)}return i}),this)},t.prototype._makeOptionalLines=function(t,e){var l=e.width,n=e.height,r=this.axisDataMap.xAxis,i=this._makeVerticalLineTemplateParams({height:n+"px"}),o=this._renderOptionalLine.bind(this,r,l,i);return t.map(o)},t.prototype._makeOptionalBands=function(t,e){var l=e.width,n=e.height,r=this.axisDataMap.xAxis,i=this._makeVerticalLineTemplateParams({height:n+"px"}),o=this._makeOptionalBand.bind(this,r,l,i);return t.map(o)},t.prototype._renderOptionalLines=function(t,e){this.optionalBands=this._makeOptionalBands(this.options.bands,e),this.optionalLines=this._makeOptionalLines(this.options.lines,e)},t.prototype._renderVerticalLines=function(t){var e=this,l=t.width,n=this._makeHorizontalPositions(l),r=this.layout,i=this.theme.lineColor,o=r.position,a=o.top,s=o.left;n.forEach((function(t){var l="M"+(t+s)+","+a+"V"+(a+r.dimension.height),n=e.paper.path(l);n.attr({stroke:i,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(n)}))},t.prototype._renderHorizontalLines=function(t){var e=this,l=t.height,n=this._makeVerticalPositions(l),r=this.layout,i=this.theme.lineColor,o=r.position,a=o.left,s=o.top,u=n.length>1?n[1]-n[0]:0;n.forEach((function(t,l){var n="M"+a+","+(u*l+s)+"H"+(a+r.dimension.width),o=e.paper.path(n);o.attr({stroke:i,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(o)}))},t.prototype._renderPlotLines=function(t,e){this.options.hideLine||(this._renderVerticalLines(e),this._renderHorizontalLines(e))},t.prototype._makeVerticalPositions=function(t){var e=this.axisDataMap,l=e.yAxis||e.rightYAxis,n=c.default.makeTickPixelPositions(t,l.validTickCount);return n.shift(),n},t.prototype._makeDividedPlotPositions=function(t,e){var l=this.dimensionMap.yAxis.width;e=parseInt(e/2,10)+1,t-=l;var n=Math.round(t/2),r=t-n,i=c.default.makeTickPixelPositions(n,e),o=c.default.makeTickPixelPositions(r,e,n+l);return i.pop(),o.shift(),i.concat(o)},t.prototype._makeHorizontalPositions=function(t){var e=this.axisDataMap.xAxis.validTickCount,l=void 0;return this.options.divided?l=this._makeDividedPlotPositions(t,e):(l=c.default.makeTickPixelPositions(t,e)).shift(),l},t.prototype.addPlotLine=function(t){this.options.lines.push(t),this.rerender()},t.prototype.addPlotBand=function(t){this.options.bands.push(t),this.rerender()},t.prototype.removePlotLine=function(t){this.options.lines=this.options.lines.filter((function(e){return e.id!==t})),this.rerender()},t.prototype.removePlotBand=function(t){this.options.bands=this.options.bands.filter((function(e){return e.id!==t})),this.rerender()},t.prototype.animateForAddingData=function(t){var e=this,l=this.options.lines,n=this.options.bands;this.dataProcessor.isCoordinateType()||t.shifting&&(this._animateItemForAddingData(this.optionalLines,t,(function(t){l.splice(t,1)})),this.optionalBands.forEach((function(l,r){e._animateItemForAddingData(l,t,(function(t){n[r].range.splice(t,1)}))})))},t.prototype._animateItemForAddingData=function(t,e,l){var n=this;t.forEach((function(t,r){t.getBBox().x-e.tickSize0&&d<180?"end":d>180&&d<360?"start":"middle",u.push({left:f.x,top:l-f.y,anchor:p})}return u}({width:s=s-u-h,height:c=c-u-h,centerX:r.default.sum([s/2,u/2,h/2,o]),centerY:c/2-u/2-h/2-a,angleStepCount:t.xAxis.labels.length})},t.prototype._makeLabelData=function(t,e,l){for(var n=t.xAxis.labels,r=t.yAxis.labels,i=this._makeCategoryPositions(t,e),o=[],a=[],s=0;s\n \n \x3c!--[if gte mso 9]>\n \n \n \n \n Ark1\n \n \n \n \n \n \n \n \n \n \n \n ',"\n \n "],r=['\n \n \x3c!--[if gte mso 9]>\n \n \n \n \n Ark1\n \n \n \n \n \n \n \n \n \n \n \n ',"\n \n "],Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))),o=p(l(9)),a=p(l(15)),s=p(l(19)),u=p(l(8)),c=p(l(10)),h=p(l(78)),d=p(l(23)),f=p(l(17));function p(t){return t&&t.__esModule?t:{default:t}}function g(t){if(Array.isArray(t)){for(var e=0,l=Array(t.length);e0?t[n][0]:"")+"~"+(t[n].length>1?t[n][1]:"")),l.push(r)}return l}function S(t,e){for(var l=[],n=0;n",(0,u.default)(t,(function(t,r){e+="<"+n+(0!==l||0===r?' class="number"':"")+">"+t+""})),e+=""})),e+=""}(t))}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.lineDelimiter,n=void 0===l?"\n":l,r=e.itemDelimiter,i=void 0===r?",":r,o=t.length-1,a="";return(0,c.default)(t,(function(t,e){var l=t.length-1;(0,c.default)(t,(function(t,e){var n=(0,s.default)(t)?t:'"'+t+'"';a+=n,e0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.legendModel=new s.default({theme:this.theme,labels:this.dataProcessor.getLegendLabels(),legendData:this.dataProcessor.getLegendData(),seriesTypes:this.seriesTypes,chartType:this.chartType})},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.paper=t.paper)},t.prototype._render=function(t){this._setDataForRendering(t);var e=this._renderLegendArea(t.paper),l=e.legendSet,n=e.paginationElem;this.legendSet=l,this.paginationArea=n},t.prototype.render=function(t){this._render(t),this._listenEvents()},t.prototype.rerender=function(t){this.legendSet.remove(),this.paginationArea.forEach((function(t){return t.remove()})),this._render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype._getLegendRenderingData=function(t,e,l){var n=this,r=(c.default.isBarTypeChart(this.chartType)||c.default.isBoxplotChart(this.chartType))&&this.dataProcessor.options.series.colorByPoint,o=t.map((function(t,i){var o=!1===n.options.showCheckbox?null:{checked:n.legendModel.isCheckedIndex(i)},a=t.label;return n.options.maxWidth&&(a=h.default.getEllipsisText(a,n.options.maxWidth,n.theme.label)),{checkbox:o,iconType:t.chartType||"rect",colorByPoint:r,index:i,theme:t.theme,label:a,labelHeight:e,labelWidth:l[i],isUnselected:n.legendModel.isUnselectedIndex(i)}}));return(c.default.isAreaChart(this.chartType)||c.default.isColumnChart(this.chartType))&&(0,i.default)(this.dataProcessor.options.series.stack)&&"top"!==this.options.align&&"bottom"!==this.options.align&&o.reverse(),o},t.prototype._renderLegendArea=function(t){var e=this.legendModel.getData(),l=this.graphRenderer,n=c.default.isHorizontalLegend(this.options.align),r=this.layout.position,i=l.makeLabelWidths(e,this.theme.label,this.options.maxWidth),o=e[0]?e[0].theme:{},a=l.getRenderedLabelHeight("DEFAULT_TEXT",o)-1,s=i.length,u=Math.max(f,a),h=(p+u)*(n?1:s),d=r.top,m=r.left;return c.default.isLegendAlignLeft(this.options.align)||(m+=g),l.render({paper:t,legendData:this._getLegendRenderingData(e,a,i),isHorizontal:n,position:{left:m,top:d},dimension:{height:h,width:this.layout.dimension.width},labelTheme:this.theme.label,labelWidths:i,eventBus:this.eventBus})},t.prototype._fireChangeCheckedLegendsEvent=function(){this.eventBus.fire("changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireChangeCheckedLegendsPublicEvent=function(){this.eventBus.fire(m+"changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireSelectLegendEvent=function(t){var e=this.legendModel.getSelectedIndex(),l=(0,n.default)(e)?e:t.seriesIndex;this.eventBus.fire("selectLegend",t.chartType,l)},t.prototype._fireSelectLegendPublicEvent=function(t){var e=t.label,l=t.index,n=t.chartType;this.eventBus.fire(m+"selectLegend",{legend:e,chartType:n,index:l})},t.prototype._selectLegend=function(t){var e=this.legendModel.getDatum(t);this.legendModel.toggleSelectedIndex(t),(0,n.default)(this.legendModel.getSelectedIndex())||this.legendModel.isCheckedSelectedIndex()||(this.legendModel.checkSelectedIndex(),this._fireChangeCheckedLegendsEvent()),this.dataProcessor.selectLegendIndex=this.legendModel.getSelectedIndex(),this.graphRenderer.selectLegend(this.dataProcessor.selectLegendIndex,this.legendSet),this._fireSelectLegendEvent(e),this._fireSelectLegendPublicEvent(e)},t.prototype._getCheckedIndexes=function(){var t=[];return this.legendModel.checkedWholeIndexes.forEach((function(e,l){e&&t.push(l)})),t},t.prototype.getCheckedIndexes=function(){return this.legendModel.getCheckedIndexes()},t.prototype._checkLegend=function(){var t=this.legendModel.getSelectedDatum();this.legendModel.isCheckedSelectedIndex()||this.legendModel.updateSelectedIndex(null),this._fireChangeCheckedLegendsEvent(),this._fireChangeCheckedLegendsPublicEvent(),t&&this._fireSelectLegendEvent(t)},t.prototype._checkboxClick=function(t){this.legendModel.toggleCheckedIndex(t);var e=this._getCheckedIndexes();e.length>0?(this.legendModel.updateCheckedLegendsWith(e),this._checkLegend()):this.legendModel.toggleCheckedIndex(t)},t.prototype._labelClick=function(t){this._selectLegend(t)},t.prototype._listenEvents=function(){this.eventBus.on("checkboxClicked",this._checkboxClick,this),this.eventBus.on("labelClicked",this._labelClick,this)},t}();function y(t){var e=t.options,l=t.dataProcessor.seriesTypes,n=t.chartOptions.chartType,i=null;return(!!(0,r.default)(e.visible)||e.visible)&&(t.seriesTypes=l,t.chartType=n,i=new v(t)),i}o.default.mixin(v),y.componentType="legend",y.Legend=v},function(t,e,l){"use strict";var n=l(83);t.exports=function(t){return!n(t)}},function(t,e,l){"use strict";var n=l(25),r=l(15),i=l(9),o=l(84),a=l(7),s=l(56);t.exports=function(t){return!(r(t)&&!function(t){return n(t)&&""===t}(t))||(i(t)||o(t)?0===t.length:!(a(t)&&!s(t))||!function(t){var e;for(e in t)if(t.hasOwnProperty(e))return!0;return!1}(t))}},function(t,e,l){"use strict";var n=l(15);t.exports=function(t){return n(t)&&("[object Arguments]"===Object.prototype.toString.call(t)||!!t.callee)}},function(t,e,l){"use strict";e.__esModule=!0;var n=i(l(6)),r=i(l(14));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.theme=e.theme,this.labels=e.labels,this.legendData=e.legendData,this.seriesTypes=e.seriesTypes||[],this.chartType=e.chartType,this.data=null,this.selectedIndex=null,this.checkedIndexesMap={},this.checkedWholeIndexes=[],this._setData(),this._initCheckedIndexes()}return t.prototype._initCheckedIndexes=function(){var t=this,e=[];this.legendData.forEach((function(l,n){var r=l.visible;r&&e.push(n),t.checkedWholeIndexes[n]=r})),this.updateCheckedLegendsWith(e)},t.prototype._setThemeToLegendData=function(t,e,l){var n=e.colors,i=e.borderColor,o=0;t.forEach((function(t,e){var a={color:n[e]};i&&(a.borderColor=i),t.theme=a,t.index=e,l&&(0,r.default)(l[e])?t.seriesIndex=-1:(t.seriesIndex=o,o+=1)}))},t.prototype._setData=function(){var t=this,e=this.theme,l=this.chartType,n=this.seriesTypes,r=this.legendData,i=this.checkedIndexesMap,o=void 0;if(!n||n.length<2)this._setThemeToLegendData(r,e[l],i[l]),o=r;else{var a,s=0,u=n.map((function(l){var n=t.labels[l].length,o=s+n,a=r.slice(s,o),u=i[l];return s=o,t._setThemeToLegendData(a,e[l],u),a}));o=(a=[]).concat.apply(a,function(t){if(Array.isArray(t)){for(var e=0,l=Array(t.length);e5?n.substr(0,4):String(r))+" % "||!1;return e.ratioLabel=l+i,e.label=t.tooltipLabel||(t.label?t.label:""),e}function c(t){var e=t.chartOptions.chartType,l=t.seriesTypes,s=t.chartOptions.xAxis,c=[],h=void 0;return Object.values(t.chartTheme.legend).filter((function(t){return(0,a.default)(t.colors)})).forEach((function(t){c=c.concat(t.colors)})),h="map"===e?i.default:t.options.grouped?r.default:n.default,("pie"===e||o.default.isPieDonutComboChart(e,l))&&(t.labelFormatter=u),t.chartType=e,t.chartTypes=l,t.xAxisType=s.type,t.dateFormat=s.dateFormat,t.colors=c,h(t)}c.componentType="tooltip"},function(t,e,l){"use strict";e.__esModule=!0,e.default=f;var n=h(l(9)),r=h(l(19)),i=h(l(21)),o=h(l(90)),a=h(l(91)),s=h(l(23)),u=h(l(33)),c=h(l(92));function h(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(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}(this,t.call(this,l));return n.colorSpectrum=l.colorSpectrum,n}return function(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,t),e.prototype._makeTooltipHtml=function(t,e){return this._getTooltipTemplate(e)(Object.assign({categoryVisible:t?"show":"hide",category:t},e))},e.prototype._getTooltipTemplate=function(t){var e=c.default.tplDefault;return u.default.isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):u.default.isPieChart(this.chartType)||u.default.isPieDonutComboChart(this.chartType,this.chartTypes)?e=c.default.tplPieChart:this.dataProcessor.coordinateType?e=c.default.tplCoordinatetypeChart:u.default.isBulletChart(this.chartType)?e=c.default.tplBulletChartDefault:u.default.isHeatmapChart(this.chartType)&&(e=c.default.tplHeatmapChart),e},e.prototype._getBoxplotTooltipTemplate=function(t){var e=c.default.tplBoxplotChartDefault;return(0,r.default)(t.outlierIndex)&&(e=c.default.tplBoxplotChartOutlier,t.label=t.outliers[t.outlierIndex].label),e},e.prototype._makeHtmlForValueTypes=function(t,e){return e.map((function(e){return t[e]?""+e+''+t[e]+"":""})).join("")},e.prototype._makeSingleTooltipHtml=function(t,e){var l=e.groupIndex,n=this._findTooltipData(t,e),i=this._findTooltipColor(t,e,n);return u.default.isBoxplotChart(this.chartType)&&(0,r.default)(e.outlierIndex)&&(n.outlierIndex=e.outlierIndex),this.colorSpectrum&&(i=this.colorSpectrum.getColor(n.colorRatio||n.ratio)),n.chartType=this.chartType,n.cssText="background-color: "+i,(n=Object.assign({suffix:this.suffix},n)).valueTypes=this._makeHtmlForValueTypes(n,["x","y","r"]),this.templateFunc(n.category,n,this.getRawCategory(l))},e.prototype._findTooltipData=function(t,e){var l=this.data[t],n=e.groupIndex;return u.default.isRadialChart(t)&&l.length===n&&(n=0),Object.assign({},(0,i.default)(l,n,e.index))},e.prototype._findTooltipColor=function(t,e,l){var n=u.default.isBarTypeChart(this.chartType),r=u.default.isBoxplotChart(this.chartType),i=(n||r)&&this.dataProcessor.options.series.colorByPoint,o=e.groupIndex,a=e.index;return u.default.isBulletChart(this.chartType)?a=o:u.default.isTreemapChart(this.chartType)&&(a=l.tooltipColorIndex),i?"#aaa":this.tooltipColors[t][a]},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=s.default.TOOLTIP_DEFAULT_ALIGN_OPTION:this.options.align=s.default.TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION)},e.prototype._makeShowTooltipParams=function(t,e){var l=t.index,n=this.dataProcessor.getLegendItem(l);if(!n)return null;var i=n.chartType,o=n.label,a=Object.assign({chartType:i,legend:o,legendIndex:l,index:t.groupIndex},e);return u.default.isBoxplotChart(i)&&(0,r.default)(t.outlierIndex)&&(a.outlierIndex=t.outlierIndex),a},e.prototype._makeTooltipDatum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments[2],n=l.tooltipLabel,r=this.labelFormatter,i={legend:t,label:n||(l.label?l.label:""),category:e};return r&&(i=r(l,i,"")),i.category=e,Object.assign(i,l.pickValueMapForTooltip())},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getLegendLabels(),l=u.default.isTreemapChart(this.chartType),r={},i={};return(0,n.default)(e)?r[this.chartType]=e:r=e,this.dataProcessor.eachBySeriesGroup((function(e,l,n){n=n||t.chartType;var o=u.default.isBulletChart(n),a=e.map((function(e,i){var a=t.dataProcessor.makeTooltipCategory(l,i,t.isVertical),s=o?l:i;return e?t._makeTooltipDatum(r[n][s],a,e):null}));i[n]||(i[n]=[]),i[n].push(a)}),l),i},e}(o.default);function f(t){return new d(t)}a.default.mixin(d),f.componentType="tooltip",f.NormalTooltip=d},function(t,e,l){"use strict";e.__esModule=!0;var n=c(l(15)),r=c(l(4)),i=c(l(55)),o=c(l(23)),a=c(l(24)),s=c(l(33)),u=c(l(17));function c(t){return t&&t.__esModule?t:{default:t}}var h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var l=s.default.isPieChart(e.chartType);this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.dataProcessor=e.dataProcessor,this.options=e.options,this.colors=e.colors,this.theme=e.theme,this.originalTheme=i.default.deepCopy(e.theme),this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.labelTheme=e.labelTheme,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.labelFormatter=e.labelFormatter,this.className="tui-chart-tooltip-area",this.tooltipContainer=null,this.suffix=this.options.suffix?" "+this.options.suffix:"",this.templateFunc=this.options.template||this._makeTooltipHtml.bind(this),this.animationTime=l?o.default.TOOLTIP_PIE_ANIMATION_TIME:o.default.TOOLTIP_ANIMATION_TIME,this.data=[],this.layout=null,this.dimensionMap=null,this.positionMap=null,this.drawingType=o.default.COMPONENT_TYPE_DOM,this._setDefaultTooltipPositionOption(),this._saveOriginalPositionOptions(),this._attachToEventBus()}return t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.originalTheme=i.default.deepCopy(t)},t.prototype._attachToEventBus=function(){this.eventBus.on({showTooltip:this.onShowTooltip,hideTooltip:this.onHideTooltip},this),this.onShowTooltipContainer&&this.eventBus.on({showTooltipContainer:this.onShowTooltipContainer,hideTooltipContainer:this.onHideTooltipContainer},this)},t.prototype._makeTooltipHtml=function(){},t.prototype._setDefaultTooltipPositionOption=function(){},t.prototype._saveOriginalPositionOptions=function(){this.orgPositionOptions={align:this.options.align,offset:this.options.offset}},t.prototype.makeLineLegendIcon=function(t){for(var e=t.length,l=0;l-1?i-=o+a:e.indexOf("center")>-1&&o?i-=o/2:i+=a,i},_makeTopPositionOfNotBarChart:function(t,e,l,n){var i=t,o=l||0;return e.indexOf("bottom")>-1?i+=o+n:e.indexOf("middle")>-1&&o?i+=o/2:i-=o+r.default.TOOLTIP_GAP,i},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,l=t.positionOption,n=t.dimension,i=t.alignOption,o=void 0===i?"":i,a=n.width-(e.width||0),s=e.width?0:r.default.TOOLTIP_GAP,u=n.height,c=e.left-this.layout.position.left+l.left,h=e.top-this.layout.position.top+l.top-r.default.TOOLTIP_GAP;return{left:this._makeLeftPositionOfNotBarChart(c,o,a,s),top:this._makeTopPositionOfNotBarChart(h,o,u,s)}},_makeTooltipPositionToMousePosition:function(t){return t.bound||(t.bound=t.bound||{},Object.assign(t.bound,t.mousePosition)),this._makeTooltipPositionForNotBarChart(t)},_makeLeftPositionForBarChart:function(t,e,l){var n=t;return e.indexOf("left")>-1?n-=l:e.indexOf("center")>-1?n-=l/2:n+=r.default.TOOLTIP_GAP,n},_makeTopPositionForBarChart:function(t,e,l){var n=t;return e.indexOf("top")>-1?n-=l:e.indexOf("middle")>-1&&(n-=l/2),n},_makeTooltipPositionForBarChart:function(t){var e=this.layout.position,l=t.bound,n=t.positionOption,r=t.dimension,i=t.alignOption,o=void 0===i?"":i,a=r.height-(l.height||0),s=r.width,u=l.left+l.width+n.left-e.left,c=l.top+n.top-e.top;return{left:this._makeLeftPositionForBarChart(u,o,s),top:this._makeTopPositionForBarChart(c,o,a)}},_makeTooltipPositionForTreemapChart:function(t){var e=this.layout.position,l=t.bound,n=t.positionOption,i=t.dimension,o=a.default.getRenderedLabelHeight(r.default.MAX_HEIGHT_WORD,this.labelTheme);return{left:l.left+(l.width-i.width)/2+n.left-e.left,top:l.top+l.height/2-o+n.top-e.top}},_adjustPosition:function(t,e){var l=this.dimensionMap.chart,n=this.layout.position;return e.left=Math.max(e.left,-n.left),e.left=Math.min(e.left,l.width-n.left-t.width),e.top=Math.max(e.top,-n.top),e.top=Math.min(e.top,l.height-n.top-t.height),e},_makeTooltipPosition:function(t){var e={};if(t.mousePosition)e=this._makeTooltipPositionToMousePosition(t);else{var l=void 0,n=void 0,r=void 0;i.default.isBarChart(t.chartType)?(e=this._makeTooltipPositionForBarChart(t),l="width",n="left",r=1):i.default.isTreemapChart(t.chartType)?e=this._makeTooltipPositionForTreemapChart(t):(e=this._makeTooltipPositionForNotBarChart(t),l="height",n="top",r=-1),t.allowNegativeTooltip&&(e=this._moveToSymmetry(e,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:l,positionType:n,addPadding:r})),e=this._adjustPosition(t.dimension,e)}return e},_moveToSymmetry:function(t,e){var l=e.bound,n=e.sizeType,r=e.positionType,o=e.indexes,a=e.seriesType||e.chartType,s=this.dataProcessor.getValue(o.groupIndex,o.index,a),u=i.default.isBarChart(this.chartType)?-1:1;if(s<0){var c=e.dimension[n],h=l[n],d=t[r]+(h+c)*u;t[r]=d}return t},_isChangedIndexes:function(t,e){return!!t&&(t.groupIndex!==e.groupIndex||t.index!==e.index)},_showTooltip:function(t,e,l){var n=this.tooltipContainer.parentNode.getBoundingClientRect(),i=e.indexes,a=this._getIndexesCustomAttribute(t),s=this.options.offset||{},u={},c=t&&t.getAttribute("data-chart-type");!e.bound&&e.mousePosition&&(e.bound={left:e.mousePosition.left-n.left+r.default.CHART_PADDING,top:e.mousePosition.top-n.top+r.default.CHART_PADDING}),(this._isChangedIndexes(a,i)||c!==e.chartType)&&this.eventBus.fire("hoverOffSeries",a,c),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,i),"line"===e.chartType&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,i),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(i,e.silent),o.default.addClass(t,"show"),u.left=s.x||0,u.top=s.y||0;var h=this._makeTooltipPosition(Object.assign({dimension:this.getTooltipDimension(t),positionOption:u,alignOption:this.options.align||""},e));this._moveToPosition(t,h,l),this.eventBus.fire("hoverSeries",i,e.chartType),this._fireAfterShowTooltipPublicEvent(i,{element:t,position:h},e.silent),delete e.silent},_fireBeforeShowTooltipPublicEvent:function(t,e){if(!e){var l=this._makeShowTooltipParams(t);this.eventBus.fire(r.default.PUBLIC_EVENT_PREFIX+"beforeShowTooltip",l)}},_fireAfterShowTooltipPublicEvent:function(t,e,l){if(!l){var n=this._makeShowTooltipParams(t,e);this.eventBus.fire(r.default.PUBLIC_EVENT_PREFIX+"afterShowTooltip",n)}},_executeHidingTooltip:function(t){o.default.removeClass(t,"show"),t.removeAttribute("data-groupIndex"),t.removeAttribute("data-index"),t.style.cssText=""},_hideTooltip:function(t,e,l){var n=this,o=this._getIndexesCustomAttribute(t),a=t.getAttribute("data-chart-type"),s=!(!l||!l.silent);i.default.isChartToDetectMouseEventOnSeries(a)?(this.eventBus.fire("hoverOffSeries",o,a),this._fireBeforeHideTooltipPublicEvent(o,s),this._executeHidingTooltip(t)):a&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",o,a),this._isChangedIndexes(this.prevIndexes,o)&&delete this.prevIndexes,setTimeout((function(){n._isShowedTooltip(t)||(n._fireBeforeHideTooltipPublicEvent(o,s),n._executeHidingTooltip(t))}),r.default.HIDE_DELAY))},_fireBeforeHideTooltipPublicEvent:function(t,e){e||this.eventBus.fire(r.default.PUBLIC_EVENT_PREFIX+"beforeHideTooltip",void 0)},onShowTooltipContainer:function(){this.tooltipContainer.style.zIndex=r.default.TOOLTIP_ZINDEX},onHideTooltipContainer:function(){this.tooltipContainer.style.zIndex=0},mixin:function(t){Object.assign(t.prototype,this)}}},function(t,e,l){"use strict";e.__esModule=!0;var n,r=l(93),i=(n=r)&&n.__esModule?n:{default:n},o='
\n
{{ category }}
\n
\n \n {{ legend }}\n {{ label }}{{ suffix }}\n
\n
',a='
\n
{{ category }}
\n
\n \n {{ legend }}\n {{ ratioLabel }} ( {{ label }} {{ suffix }})\n
\n
',s='
\n
\n \n {{ category }}\n
\n
\n \n {{ legend }}\n {{ label }}\n
\n {{ valueTypes }}
\n
',u='
\n
{{ category }}
\n \n {{ items }}\n
\n
',c='\n \n {{ type }}\n ',h='\n
\n {{ legend }}\n {{ value }} {{ suffix }}\n ',d="background-color:{{ color }}",f='
\n
\n \n {{ name }}\n {{ value }}{{ suffix }}\n
\n
',p='
\n
{{ category }}
\n
\n \n {{ label }}{{ suffix }}\n
\n
',g='
\n
{{ category }}
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n {{ legend }}\n
Maximum: {{ maxLabel }} {{ suffix }}
Upper Quartile: {{ uqLabel }} {{ suffix }}
Median: {{ medianLabel }} {{ suffix }}
Lower Quartile: {{ lqLabel }} {{ suffix }}
Minimum: {{ minLabel }} {{ suffix }}
\n
',m='
\n
{{ category }}
\n
\n {{ legend }}\n
\n
\n Outlier: \n {{ label }} {{ suffix }}\n
\n
',v='
\n
\n \n {{ category }}\n {{ label }} {{ suffix }}\n
\n
';e.default={tplDefault:i.default.template(o),tplPieChart:i.default.template(a),tplCoordinatetypeChart:i.default.template(s),tplGroup:i.default.template(u),tplGroupType:i.default.template(c),tplGroupItem:i.default.template(h),tplGroupCssText:i.default.template(d),tplMapChartDefault:i.default.template(f),tplHeatmapChart:i.default.template(p),tplBoxplotChartDefault:i.default.template(g),tplBoxplotChartOutlier:i.default.template(m),tplBulletChartDefault:i.default.template(v)}},function(t,e){"use strict";e.__esModule=!0;var l=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.default={template:function(t){return function(e){var n=t;return Object.entries(e).forEach((function(t){var e=l(t,2),r=e[0],i=e[1],o=new RegExp("{{\\s*"+r+"\\s*}}","g");n=n.replace(o,String(i).replace("$","\uff04"))})),n}}}},function(t,e,l){"use strict";e.__esModule=!0,e.default=b;var n=f(l(6)),r=f(l(58)),i=f(l(90)),o=f(l(95)),a=f(l(23)),s=f(l(24)),u=f(l(17)),c=f(l(53)),h=f(l(92)),d=f(l(33));function f(t){return t&&t.__esModule?t:{default:t}}var p=a.default.TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION,g=a.default.TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION,m=a.default.SERIES_EXPAND_SIZE,v=a.default.PUBLIC_EVENT_PREFIX,y=function(t){function e(l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(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}(this,t.call(this,l));return n.prevIndex=null,n.tickInterval=null,n.isBullet=d.default.isBulletChart(l.chartType),n}return function(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,t),e.prototype._makeTooltipHtml=function(t,e,l,n){var r=h.default.tplGroupItem,i=h.default.tplGroupCssText,o=d.default.isBarChart(this.chartType),a=d.default.isBarTypeChart(this.chartType),s=d.default.isBoxplotChart(this.chartType),u=this.dataProcessor.options.series,c=(a||s)&&u&&u.colorByPoint,f=!o&&u&&u.stack,p=this._makeColors(this.theme,n),g=void 0,m=e.map((function(t,e){var l=t.type,n="data"!==l&&g!==l,o="";return g=l,t.value?(n&&(o=h.default.tplGroupType({type:l})),o+=r(Object.assign({cssText:i({color:c?"#aaa":p[e]})},t))):null}));return f&&m.reverse(),h.default.tplGroup({category:t,items:m.join("")})},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=p:this.options.align=g)},e.prototype.render=function(t){var e=i.default.prototype.render.call(this,t),l=this.dimensionMap.chart,n=this.layout;return t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends)),this.positionModel=new o.default(l,n,this.isVertical,this.options),e},e.prototype.rerender=function(t){i.default.prototype.rerender.call(this,t),this.prevIndex=null,t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends))},e.prototype.zoom=function(){this.prevIndex=null,this.tickInterval=null,i.default.prototype.zoom.call(this)},e.prototype._updateLegendTheme=function(t){var e=this,l=[];return Object.keys(this.originalTheme).forEach((function(n){e.originalTheme[n].colors.forEach((function(e,r){(t[n]||t)[r]&&l.push(e)}))})),{colors:l}},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getCategoryCount(this.isVertical);return this.dataProcessor.getSeriesGroups().map((function(l,n){var r=l.map((function(t){return{type:t.type||"data",label:t.tooltipLabel||t.label}}));return{category:t.dataProcessor.makeTooltipCategory(n,e-n,t.isVertical),values:r}}))},e.prototype._makeColors=function(t,e){var l=0,n=this.dataProcessor.getLegendData(),i=void 0,o=void 0;if(this.isBullet)return this.dataProcessor.getGraphColors()[e];if(t.colors)return t.colors;var a=c.default.series.colors.slice(0,n.length);return(0,r.default)(n,"chartType").map((function(e){o!==e&&(i=t[e]?t[e].colors:a,l=0),o=e;var n=i[l];return l+=1,n}))},e.prototype._makeItemRenderingData=function(t,e){var l=this,n=this.dataProcessor,r=this.suffix;return t.map((function(t,i){var o={value:t.label,type:t.type,suffix:r,legend:""},a=void 0;return l.isBullet?a=n.getLegendItem(e):(a=n.getLegendItem(i),o.legend=a.label),o.chartType=a.chartType,o}))},e.prototype._makeGroupTooltipHtml=function(t){var e=this.data[t],l="";if(e){var n=this._makeItemRenderingData(e.values,t);l=this.templateFunc(e.category,n,this.getRawCategory(t),t)}return l},e.prototype._getTooltipSectorElement=function(){if(!this.groupTooltipSector){var t=this.groupTooltipSector=s.default.create("DIV","tui-chart-group-tooltip-sector");s.default.append(this.tooltipContainer,t)}return this.groupTooltipSector},e.prototype._makeVerticalTooltipSectorBound=function(t,e,l){return{dimension:{width:l?1:e.end-e.start,height:t},position:{left:e.start+this.tickInterval/2,top:m}}},e.prototype._makeHorizontalTooltipSectorBound=function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:m,top:e.start}}},e.prototype._makeTooltipSectorBound=function(t,e,l,n){return l?this._makeVerticalTooltipSectorBound(t,e,n):this._makeHorizontalTooltipSectorBound(t,e)},e.prototype._showTooltipSector=function(t,e,l,n,r){var i=this._getTooltipSectorElement(),o=e.start===e.end,a=this._makeTooltipSectorBound(t,e,l,o);o?this.eventBus.fire("showGroupTooltipLine",a):(u.default.renderDimension(i,a.dimension),u.default.renderPosition(i,a.position),s.default.addClass(i,"show")),r&&(n-=1),this.eventBus.fire("showGroupAnimation",n)},e.prototype._hideTooltipSector=function(t){var e=this._getTooltipSectorElement();s.default.hasClass(e,"show")?s.default.removeClass(e,"show"):this.eventBus.fire("hideGroupTooltipLine"),this.eventBus.fire("hideGroupAnimation",t),this.eventBus.fire("hideGroupTooltipLine")},e.prototype._showTooltip=function(t,e,l){(0,n.default)(this.prevIndex)||this.eventBus.fire("hideGroupAnimation",this.prevIndex),(0,n.default)(this.tickInterval)&&(this.tickInterval=e.tickInterval),t.innerHTML=this._makeGroupTooltipHtml(e.index),this._fireBeforeShowTooltipPublicEvent(e.index,e.range,e.silent),document.getElementsByClassName&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),s.default.addClass(t,"show"),this._showTooltipSector(e.size,e.range,e.isVertical,e.index,e.isMoving);var r=this.getTooltipDimension(t),i=this.positionModel.calculatePosition(r,e.range);this._moveToPosition(t,i,l),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:i},e.silent),this.prevIndex=e.index},e.prototype._fireBeforeShowTooltipPublicEvent=function(t,e,l){l||this.eventBus.fire(v+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},e.prototype._fireAfterShowTooltipPublicEvent=function(t,e,l,n){n||this.eventBus.fire(v+"afterShowTooltip",Object.assign({chartType:this.chartType,index:t,range:e},l))},e.prototype._hideTooltip=function(t,e,l){var n=!(!l||!l.silent);this.prevIndex=null,this._fireBeforeHideTooltipPublicEvent(e,n),this._hideTooltipSector(e),s.default.removeClass(t,"show"),t.style.cssText=""},e.prototype._fireBeforeHideTooltipPublicEvent=function(t,e){e||this.eventBus.fire(v+"beforeHideTooltip",{chartType:this.chartType,index:t})},e}(i.default);function b(t){return new y(t)}b.componentType="tooltip",b.GroupTooltip=y},function(t,e,l){"use strict";e.__esModule=!0;var n,r=l(23),i=(n=r)&&n.__esModule?n:{default:n},o=function(){function t(e,l,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.chartDimension=e,this.areaBound=l,this.isVertical=n,this.options=r,this.positions={},this._setData(e,l,n,r)}return t.prototype._getHorizontalDirection=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.indexOf("left")>-1?i.default.TOOLTIP_DIRECTION_BACKWARD:t.indexOf("center")>-1?i.default.TOOLTIP_DIRECTION_CENTER:i.default.TOOLTIP_DIRECTION_FORWARD},t.prototype._makeVerticalData=function(t,e,l){return{positionType:"left",sizeType:"width",direction:this._getHorizontalDirection(l),areaPosition:e.position.left,areaSize:e.dimension.width,chartSize:t.width,basePosition:i.default.SERIES_EXPAND_SIZE}},t.prototype._getVerticalDirection=function(t){return(t=t||"").indexOf("top")>-1?i.default.TOOLTIP_DIRECTION_BACKWARD:t.indexOf("bottom")>-1?i.default.TOOLTIP_DIRECTION_FORWARD:i.default.TOOLTIP_DIRECTION_CENTER},t.prototype._makeHorizontalData=function(t,e,l){return{positionType:"top",sizeType:"height",direction:this._getVerticalDirection(l),areaPosition:e.position.top,areaSize:e.dimension.height,chartSize:t.height,basePosition:i.default.SERIES_EXPAND_SIZE}},t.prototype._setData=function(t,e,l,n){var r=this._makeVerticalData(t,e,n.align),i=this._makeHorizontalData(t,e,n.align),o=n.offset||{};l?(this.mainData=r,this.subData=i):(this.mainData=i,this.subData=r),this.positionOption={},this.positionOption.left=o.x||0,this.positionOption.top=o.y||0,this.positions={}},t.prototype._calculateMainPositionValue=function(t,e,l){var n=e.start===e.end,r=n?9:5,o=l.basePosition;return l.direction===i.default.TOOLTIP_DIRECTION_FORWARD?o+=e.end+r:l.direction===i.default.TOOLTIP_DIRECTION_BACKWARD?o+=e.start-t-r:o+=n?e.start-t/2:e.start+(e.end-e.start-t)/2,o},t.prototype._calculateSubPositionValue=function(t,e){var l=e.areaSize/2;return e.direction===i.default.TOOLTIP_DIRECTION_FORWARD?l+e.basePosition:e.direction===i.default.TOOLTIP_DIRECTION_BACKWARD?l-t+e.basePosition:l-t/2+e.basePosition},t.prototype._makePositionValueDiff=function(t,e,l){return t+l.areaPosition+e-l.chartSize},t.prototype._adjustBackwardPositionValue=function(t,e,l,n){var r=void 0;return t<-n.areaPosition&&(r=this._calculateMainPositionValue(l,e,{direction:i.default.TOOLTIP_DIRECTION_FORWARD,basePosition:n.basePosition}),t=this._makePositionValueDiff(r,l,n)>0?-n.areaPosition:r),t},t.prototype._adjustForwardPositionValue=function(t,e,l,n){var r=this._makePositionValueDiff(t,l,n);if(r>0){var o=this._calculateMainPositionValue(l,e,{direction:i.default.TOOLTIP_DIRECTION_BACKWARD,basePosition:n.basePosition});o<-n.areaPosition?t-=r:t=o}return t},t.prototype._adjustMainPositionValue=function(t,e,l,n){return n.direction===i.default.TOOLTIP_DIRECTION_BACKWARD?t=this._adjustBackwardPositionValue(t,e,l,n):n.direction===i.default.TOOLTIP_DIRECTION_FORWARD?t=this._adjustForwardPositionValue(t,e,l,n):(t=Math.max(t,-n.areaPosition),t=Math.min(t,n.chartSize-n.areaPosition-l)),t},t.prototype._adjustSubPositionValue=function(t,e,l){return t=l.direction===i.default.TOOLTIP_DIRECTION_FORWARD?Math.min(t,l.chartSize-l.areaPosition-e):Math.max(t,-l.areaPosition)},t.prototype._makeCachingKey=function(t){return t.start+"-"+t.end},t.prototype._addPositionOptionValue=function(t,e){return t+this.positionOption[e]},t.prototype._makeMainPositionValue=function(t,e,l){var n=this._calculateMainPositionValue(t[l.sizeType],e,l);return n=this._addPositionOptionValue(n,l.positionType),n=this._adjustMainPositionValue(n,e,t[l.sizeType],l)},t.prototype._makeSubPositionValue=function(t,e){var l=this._calculateSubPositionValue(t[e.sizeType],e);return l=this._addPositionOptionValue(l,e.positionType),l=this._adjustSubPositionValue(l,t[e.sizeType],e)},t.prototype.calculatePosition=function(t,e){var l=this._makeCachingKey(e),n=this.mainData,r=this.subData,i=this.positions[l];return i||((i={})[n.positionType]=this._makeMainPositionValue(t,e,n),i[r.positionType]=this._makeSubPositionValue(t,r),this.positions[l]=i),i},t.prototype.updateOptions=function(t){this.options=t,this._setData(this.chartDimension,this.areaBound,this.isVertical,t)},t.prototype.updateBound=function(t){this.areaBound=t,this._setData(this.chartDimension,t,this.isVertical,this.options)},t}();e.default=o},function(t,e,l){"use strict";e.__esModule=!0,e.default=u;var n=a(l(23)),r=a(l(90)),i=a(l(91)),o=a(l(92));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(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}(this,t.call(this,l));return n.mapModel=l.mapModel,n.colorSpectrum=l.colorSpectrum,n}return function(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,t),e.prototype._makeTooltipHtml=function(t){return o.default.tplMapChartDefault(t)},e.prototype._makeSingleTooltipHtml=function(t,e){var l=this.mapModel.getDatum(e.index),n=this.options.suffix?" "+this.options.suffix:"";return this.templateFunc({name:l.name||l.code,value:l.label,suffix:n,cssText:"background-color: "+this.colorSpectrum.getColor(l.ratio)})},e.prototype._makeShowTooltipParams=function(t,e){var l=this.mapModel.getDatum(t.index);return Object.assign({chartType:this.chartType,code:l.code,name:l.name,value:l.label,index:t.index},e)},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.options.align=n.default.TOOLTIP_DEFAULT_ALIGN_OPTION)},e}(r.default);function u(t){return new s(t)}i.default.mixin(s),u.componentType="tooltip"},function(t,e,l){"use strict";e.__esModule=!0,e.default=h;var n=u(l(98)),r=u(l(23)),i=u(l(80)),o=u(l(24)),a=u(l(17)),s=u(l(22));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(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}(this,t.call(this));return n.chartType=l.chartType,n.eventBus=l.eventBus,n.isDown=!1,n.drawingType=r.default.COMPONENT_TYPE_DOM,n}return function(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,t),e.prototype._renderMouseEventDetectorArea=function(t){a.default.renderDimension(t,this.layout.dimension),a.default.renderPosition(t,this.layout.position)},e.prototype._onClick=function(){},e.prototype._onMousedown=function(t){this.isDown=!0,this.eventBus.fire("dragStartMapSeries",{left:t.clientX,top:t.clientY})},e.prototype._dragEnd=function(){this.isDrag=!1,o.default.removeClass(this.mouseEventDetectorContainer,"drag"),this.eventBus.fire("dragEndMapSeries")},e.prototype._onMouseup=function(t){this.isDown=!1,this.isDrag?this._dragEnd():this._onMouseEvent("click",t),this.isMove=!1},e.prototype._onMousemove=function(t){this.isDown?(this.isDrag||o.default.addClass(this.mouseEventDetectorContainer,"drag"),this.isDrag=!0,this.eventBus.fire("dragMapSeries",{left:t.clientX,top:t.clientY})):(this.isMove=!0,this._onMouseEvent("move",t))},e.prototype._onMouseout=function(t){this.isDrag?this._dragEnd():this._onMouseEvent("move",t),this.isDown=!1},e.prototype._onMousewheel=function(t){var e=t.wheelDelta||t.detail*r.default.FF_WHEELDELTA_ADJUSTING_VALUE;return this.eventBus.fire("wheel",e,{left:t.clientX,top:t.clientY}),t.preventDefault&&t.preventDefault(),!1},e.prototype.attachEvent=function(t){n.default.prototype.attachEvent.call(this,t),s.default.firefox?i.default.on(t,"DOMMouseScroll",this._onMousewheel,this):i.default.on(t,"mousewheel",this._onMousewheel,this)},e}(n.default);function h(t){return new c(t)}h.componentType="mouseEventDetector"},function(t,e,l){"use strict";e.__esModule=!0;var n=d(l(14)),r=d(l(67)),i=d(l(99)),o=d(l(100)),a=d(l(23)),s=d(l(80)),u=d(l(33)),c=d(l(24)),h=d(l(17));function d(t){return t&&t.__esModule?t:{default:t}}var f=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e){this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.isVertical=e.isVertical,this.dataProcessor=e.dataProcessor,this.allowSelect=e.allowSelect,this.eventBus=e.eventBus,this.layout=null,this.selectedData=null;var l=u.default.isLineTypeChart(this.chartType,this.chartTypes);this.expandSize=l?a.default.SERIES_EXPAND_SIZE:0,this.seriesItemBoundsData=[],this.seriesCount=u.default.isComboChart(this.chartType)?2:1,this._attachToEventBus(),this.drawingType=a.default.COMPONENT_TYPE_DOM}}return t.prototype._attachToEventBus=function(){this.eventBus.on("receiveSeriesData",this.onReceiveSeriesData,this)},t.prototype._getRenderingBound=function(){return h.default.expandBound(this.layout)},t.prototype._renderMouseEventDetectorArea=function(t,e){this.dimension=this.layout.dimension;var l=new i.default(this.layout,e,this.chartType,this.isVertical,this.chartTypes);this.tickBaseCoordinateModel=l;var n=this._getRenderingBound(),r=n.dimension,o=n.position;h.default.renderDimension(t,r),h.default.renderPosition(t,o)},t.prototype._setDataForRendering=function(t){this.layout=t.layout},t.prototype._pickTickCount=function(t){return this.isVertical?t.xAxis.eventTickCount||t.xAxis.tickCount:t.yAxis.tickCount},t.prototype.render=function(t){this.positionMap=t.positionMap;var e=t.paper,l=void 0;return c.default.addClass(e,"tui-chart-series-custom-event-area"),e.style.backgroundColor="aliceblue",t.axisDataMap.xAxis&&(l=this._pickTickCount(t.axisDataMap)),this._setDataForRendering(t),this._renderMouseEventDetectorArea(e,l),this.attachEvent(e),this.mouseEventDetectorContainer=e,this.transparentChild=this._createTransparentChild(),c.default.append(e,this.transparentChild),e},t.prototype._createTransparentChild=function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=h.default.getStyle(this.mouseEventDetectorContainer).height,h.default.setOpacity(t,0),t},t.prototype._calculateLayerPosition=function(t,e,l){var r=this.mouseEventDetectorContainer.getBoundingClientRect(),i=r.left,o=r.right,s=r.top,u=this.positionMap.series,c=this.expandSize,h={};if(l=!!(0,n.default)(l)||l){var d=o-c,f=i+c;t=Math.min(Math.max(t,f),d)}return h.x=t-i+u.left-a.default.CHART_PADDING,(0,n.default)(e)||(h.y=e-s+u.top-a.default.CHART_PADDING),h},t.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,l=this.seriesItemBoundsData;l.length===e&&(l=[]),l.push(t),l.length===e&&(this.boundsBaseCoordinateModel=new o.default(l))},t.prototype.rerender=function(t){var e=void 0;this.positionMap=t.positionMap,t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this.selectedData=null,this._setDataForRendering(t),this._renderMouseEventDetectorArea(this.mouseEventDetectorContainer,e),this.transparentChild.style.height=h.default.getStyle(this.mouseEventDetectorContainer).height},t.prototype.resize=function(t){this.containerBound=null,this.rerender(t)},t.prototype._isChangedSelectData=function(t,e){return!t||!e||t.chartType!==e.chartType||t.indexes.groupIndex!==e.indexes.groupIndex||t.indexes.index!==e.indexes.index},t.prototype._findDataFromBoundsCoordinateModel=function(t){var e=t.x,l=t.y,n=void 0;return n=u.default.isTreemapChart(this.chartType)?0:this.tickBaseCoordinateModel.findIndex(this.isVertical?e:l),this.boundsBaseCoordinateModel.findData(n,e,l)},t.prototype._findData=function(t,e){var l=this._calculateLayerPosition(t,e);return this._findDataFromBoundsCoordinateModel(l)},t.prototype._showTooltip=function(){},t.prototype._hideTooltip=function(){},t.prototype._onMouseEvent=function(t,e){c.default.addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),c.default.removeClass(this.mouseEventDetectorContainer,"hide")},t.prototype.unselectSeries=function(){this.selectedData&&(this.eventBus.fire("unselectSeries",this.selectedData),this.selectedData=null)},t.prototype._onClick=function(t){var e=this._findData(t.clientX,t.clientY);this.selectSeries(e)},t.prototype.selectSeries=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._isChangedSelectData(this.selectedData,t)?t&&(this.selectedData&&this.unselectSeries(),this.eventBus.fire("selectSeries",t,e),this.allowSelect&&(this.selectedData=t)):this.unselectSeries()},t.prototype._onMousedown=function(){},t.prototype._onMouseup=function(){},t.prototype._onMousemove=function(){},t.prototype._onMouseout=function(){},t.prototype.attachEvent=function(t){s.default.on(t,{click:this._onClick,mousedown:this._onMousedown,mouseup:this._onMouseup,mousemove:this._onMousemove,mouseout:this._onMouseout},this)},t.prototype.findDataByIndexes=function(){},t.prototype._setPrevClientPosition=function(t){this.prevClientPosition=t?{x:t.clientX,y:t.clientY}:null},t}();r.default.mixin(f),e.default=f},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(13)),r=o(l(33)),i=o(l(27));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(){function t(e,l,n,i,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.isLineType=r.default.isLineTypeChart(n,o),this.data=this._makeData(e,l,i)}return t.prototype._getRanges=function(t,e,l){var r=e,i=l/2;return(0,n.default)(0,t).map((function(){var t={min:r-i,max:r+i};return r+=l,t}))},t.prototype._makeLineTypeData=function(t,e,l){var n=(t+1)/(e-1),r=this._getRanges(e,l||0,n);return r[e-1].max-=1,r},t.prototype._makeNormalData=function(t,e,l){var r=e-1,o=t/r,a=l||0;return(0,n.default)(0,r).map((function(){var e=i.default.min([t+a,o+a]),l={min:a,max:e};return a=e,l}))},t.prototype._makeData=function(t,e,l){var n=l?"width":"height",r=l?"left":"top";return this.isLineType?this._makeLineTypeData(t.dimension[n],e,t.position[r]):this._makeNormalData(t.dimension[n],e,t.position[r])},t.prototype.findIndex=function(t){var e=-1;return this.data.forEach((function(l,n){return!(l.min=t)||(e=n,!1)})),e},t.prototype.getLastIndex=function(){return this.data.length-1},t.prototype.makeRange=function(t,e){var l=this.data[t],n=void 0;return this.isLineType?{start:n=parseInt(l.max-(l.max-l.min)/2,10),end:n}:{start:l.min-(e||0),end:l.max-(e||0)}},t}();e.default=a},function(t,e,l){"use strict";e.__esModule=!0;var n=a(l(19)),r=a(l(23)),i=a(l(33)),o=a(l(27));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=this._makeData(e)}return t.prototype._makeTooltipData=function(t,e,l,n){return{sendData:{chartType:t,indexes:e,allowNegativeTooltip:l,bound:n},bound:{left:n.left,top:n.top,right:n.left+n.width,bottom:n.top+n.height}}},t.prototype._makeRectTypePositionData=function(t,e){var l=this,n=!i.default.isBoxTypeChart(e);return t.map((function(t,r){return t.map((function(t,i){return t?l._makeTooltipData(e,{groupIndex:r,index:i},n,t.end||t):null}))}))},t.prototype._makeOutliersPositionDataForBoxplot=function(t,e,l){var n=this,r=!i.default.isBoxTypeChart(e);[].concat(function(t){if(Array.isArray(t)){for(var e=0,l=Array(t.length);e=l,i=t.top<=n&&t.bottom>=n;return r&&i},t.prototype.findData=function(t,e,l){var n=1e4,r=null;return t>-1&&this.data[t]&&this._findCandidates(this.data[t],e,l).forEach((function(t){var e=Math.abs(l-t.bound.top);n>e&&(n=e,r=t.sendData)})),r},t.prototype.findDataByIndexes=function(t){var e=this.data[t.index][t.seriesIndex].sendData;return(0,n.default)(t.outlierIndex)?this._findOutlierDataByIndexes(t):e},t.prototype._findOutlierDataByIndexes=function(t){var e=null;return this.data[t.index].forEach((function(l){var n=l.sendData.indexes,r=n.index===t.seriesIndex&&n.outlierIndex===t.outlierIndex;return r&&(e=l.sendData),!r})),e},t}();e.default=s},function(t,e,l){"use strict";e.__esModule=!0,e.default=c;var n=u(l(33)),r=u(l(102)),i=u(l(105)),o=u(l(106)),a=u(l(107)),s=u(l(97));function u(t){return t&&t.__esModule?t:{default:t}}function c(t){var e=t.chartOptions,l=t.seriesTypes,u=e.chartType,c=e.series,h=c.zoomable,d=c.allowSelect,f=e.xAxis.pointOnColumn,p=void 0;return p=t.chartOptions.tooltip.grouped?o.default:n.default.isMapChart(u)?s.default:n.default.isBarTypeChart(u)||n.default.isBoxplotChart(u)||n.default.isHeatmapChart(u)||n.default.isTreemapChart(u)||n.default.isBulletChart(u)?a.default:n.default.isCoordinateTypeChart(u)||n.default.isPieChart(u)||n.default.isPieDonutComboChart(u,l)?i.default:r.default,t.chartType=u,t.chartTypes=l,t.zoomable=h,t.allowSelect=d,t.pointOnColumn=!!f,p(t)}c.componentType="mouseEventDetector"},function(t,e,l){"use strict";e.__esModule=!0,e.default=s;var n=o(l(98)),r=o(l(103)),i=o(l(104));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(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}(this,t.call(this,l));return n.prevFoundData=null,n.prevClientPosition=null,n.zoomable=l.zoomable,n.zoomable&&(Object.assign(n,r.default),n._initForZoom(l.zoomable)),n}return function(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,t),e.prototype.animateForAddingData=function(){if(this.prevClientPosition){var t=this._findData(this.prevClientPosition.x,this.prevClientPosition.y);if(t){var e=this.prevFoundData.indexes.groupIndex===t.indexes.groupIndex,l=this.prevFoundData&&e;this._showTooltip(t,l)}this.prevFoundData=t}},e.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount;this.seriesItemBoundsData.length===e&&(this.seriesItemBoundsData=[]),this.seriesItemBoundsData.push(t),this.seriesItemBoundsData.length===e&&(this.dataModel=new i.default(this.seriesItemBoundsData)),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findData=function(t,e){var l=this._calculateLayerPosition(t,e),n=this.dataProcessor.selectLegendIndex,r=this.dataProcessor.isCoordinateType();return this.dataModel.findData(l,n,{distanceLimit:this.dataModel.leftStepLength,isCoordinateTypeChart:r})},e.prototype._findDataForZoomable=function(t,e){var l=this._calculateLayerPosition(t,e);return this.dataModel.findData(l)},e.prototype._getFirstData=function(t){return this.dataModel.getFirstData(t)},e.prototype._getLastData=function(t){return this.dataModel.getLastData(t)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null},e.prototype._onMousemove=function(t){var e=void 0;this._setPrevClientPosition(t);var l=this._findData(t.clientX,t.clientY);this.zoomable&&(e=this._isAfterDragMouseup()),!e&&this._isChangedSelectData(this.prevFoundData,l)&&(l?this._showTooltip(l):this.prevFoundData&&this._hideTooltip(),this.prevFoundData=l)},e.prototype._onMouseout=function(){this.prevFoundData&&this._hideTooltip(),this.prevClientPosition=null,this.prevFoundData=null},e.prototype.findDataByIndexes=function(t){return this.dataModel.findDataByIndexes(t)},e.prototype._setPrevClientPosition=function(t){this.prevClientPosition=t?{x:t.clientX,y:t.clientY}:null},e}(n.default);function s(t){return new a(t)}s.componentType="mouseEventDetector"},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=d(l(6)),i=d(l(98)),o=d(l(23)),a=d(l(24)),s=d(l(33)),u=d(l(27)),c=d(l(17)),h=d(l(80));function d(t){return t&&t.__esModule?t:{default:t}}e.default={_initForZoom:function(t){this.zoomable=t,this.dragStartIndexes=null,this.startClientPosition=null,this.startLayerX=null,this.dragSelectionElement=null,this.containerBound=null,this.isShowTooltipAfterZoom=!1,this.afterMouseup=!1,this.prevDistanceOfRange=null,this.reverseMove=null,this.resetZoomBtn=null},presetBeforeRerender:function(){this.resetZoomBtn&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null),this._hideTooltip(),this.prevDistanceOfRange=null},_showTooltipAfterZoom:function(){var t=this.isShowTooltipAfterZoom,e=void 0;this.isShowTooltipAfterZoom=!1,t&&this.dragStartIndexes&&(e=this.reverseMove?this._getFirstData(this.dragStartIndexes.index):this._getLastData(this.dragEndIndexes.index))&&this._showTooltip(e)},_updateDimensionForDragSelection:function(t){c.default.renderDimension(t,{height:this.layout.dimension.height})},_renderDragSelection:function(){var t=a.default.create("DIV","tui-chart-drag-selection");return this._updateDimensionForDragSelection(t),t},render:function(t){var e=i.default.prototype.render.call(this,t),l=this._renderDragSelection();return a.default.append(e,l),this.dragSelectionElement=l,e},resize:function(t){this.containerBound=null,i.default.prototype.resize.call(this,t),this._updateDimensionForDragSelection(this.dragSelectionElement)},_onClick:function(){},_isAfterDragMouseup:function(){var t=this.afterMouseup;return t&&(this.afterMouseup=!1),t},_bindDragEvent:function(t){t.setCapture&&t.setCapture(),h.default.on(document,"mousemove",this._onDrag,this),h.default.off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),h.default.on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),h.default.off(document,"mousemove",this._onDrag,this),h.default.off(document,"mouseup",this._onMouseupAfterDrag,this),h.default.on(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this)},_onMousedown:function(t){if(this.zoomable){var e=t.target||t.srcElement;this.startClientPosition={x:t.clientX,y:t.clientY},this.startLayerX=this._calculateLayerPosition(t.clientX).x,this.downTarget=e,this._bindDragEvent(e)}},_showDragSelection:function(t){var e=this.mouseEventDetectorContainer.getBoundingClientRect().left,l=this._calculateLayerPosition(t).x,n=e-(this.startClientPosition.x-this.startLayerX),r=Math.min(l,this.startLayerX)-n,i=Math.abs(l-this.startLayerX),o=this.dragSelectionElement;o.style.left=r+"px",o.style.width=i+"px",a.default.addClass(o,"show")},_hideDragSelection:function(){a.default.removeClass(this.dragSelectionElement,"show")},_onDrag:function(t){var e=this.startClientPosition,l=t.target||t.srcElement;if(e){var n=this._findDataForZoomable(e.x,e.y);a.default.hasClass(l,o.default.CLASS_NAME_RESET_ZOOM_BTN)||((0,r.default)(this.dragStartIndexes)?this.dragStartIndexes=n?n.indexes:{}:this._showDragSelection(t.clientX))}},_changeIndexToHaveMinimumIndexes:function(t){var e=n(t,2),l=e[0],r=e[1],i=r-l;return 0===i?0===l?r+=2:(l-=1,r+=1):1===i&&(0===l?r+=1:l-=1),{startIndex:l,endIndex:r}},_adjustIndexRange:function(t,e){var l=[t,e].sort((function(t,e){return t-e}));return this._changeIndexToHaveMinimumIndexes(l)},_fireZoom:function(){this.dataProcessor.isLineCoordinateType()?this._fireZoomUsingValue(this.dragStartIndexes,this.dragEndIndexes):this._fireZoomUsingIndex(this.dragStartIndexes.groupIndex,this.dragEndIndexes.groupIndex)},_fireZoomUsingIndex:function(t,e){var l=t>e,n=this._adjustIndexRange(t,e),r=n.startIndex,i=n.endIndex,o=i-r;this.prevDistanceOfRange!==o&&(this.prevDistanceOfRange=o,this.reverseMove=l,this.eventBus.fire("zoom",[r,i]))},_adjustValueRange:function(t,e){var l=void 0,n=void 0,r=this.dataProcessor,i=r.integratedXAxisData,o=r.options.xAxis;s.default.isDatetimeType(o.type)?(l=u.default.findIndexFromDateTypeArray(i,new Date(t)),n=u.default.findIndexFromDateTypeArray(i,new Date(e))):(l=i.indexOf(t),n=i.indexOf(e));var a=[l,n].sort((function(t,e){return t-e})),c=this._changeIndexToHaveMinimumIndexes(a),h=c.startIndex,d=c.endIndex;return[i[h],i[d]]},_fireZoomUsingValue:function(t,e){var l=t.index,r=t.groupIndex,i=e.index,o=e.groupIndex,a=this.dataProcessor.rawData.series.line,s=n(a[l].data[r],1)[0],u=n(a[i].data[o],1)[0],c=this._adjustValueRange(s,u);this.eventBus.fire("zoom",c)},_setIsShowTooltipAfterZoomFlag:function(t,e){var l=this._calculateLayerPosition(t,e,!1).x,n=this._calculateLayerPosition(t,e).x;this.isShowTooltipAfterZoom=l===n},_onMouseupAfterDrag:function(t){var e=this._findDataForZoomable(t.clientX,t.clientY);if(this._unbindDragEvent(),(0,r.default)(this.dragStartIndexes)){var l=t.target||t.srcElement;a.default.hasClass(l,o.default.CLASS_NAME_RESET_ZOOM_BTN)?(this._hideTooltip(),this.prevDistanceOfRange=null,this.eventBus.fire("resetZoom")):i.default.prototype._onClick.call(this,t)}else this.dragStartIndexes&&e?(this.dragEndIndexes=e.indexes,this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection(),this._fireZoom()):(this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection());this.startClientPosition=null,this.dragStartIndexes=null,this.startLayerX=null,this.afterMouseup=!0},_renderResetZoomBtn:function(){return a.default.create("DIV",o.default.CLASS_NAME_RESET_ZOOM_BTN)},zoom:function(t){this.prevFoundData=null,this.rerender(t),this._updateDimensionForDragSelection(this.dragSelectionElement),this.resetZoomBtn?t.isResetZoom&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null):(this.resetZoomBtn=this._renderResetZoomBtn(),a.default.append(this.mouseEventDetectorContainer,this.resetZoomBtn))}}},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(33)),r=o(l(27)),i=o(l(6));function o(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t)){for(var e=0,l=Array(t.length);e1&&u[1][0]&&u[0][0];return i.leftStepLength=c?u[1][0].left-u[0][0].left:0,u.map((function(t,n){return t.map((function(t,r){var i=null;return t&&(i={chartType:l,indexes:{groupIndex:n,index:r},bound:t}),o>1&&(i.indexes.legendIndex=e),i}))}))}));return u=(e=[]).concat.apply(e,a(u)),this.lastGroupIndex=s,(l=[]).concat.apply(l,a(u)).filter((function(t){return!!t}))},t.prototype.findData=function(t,e){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=l.distanceLimit,r=l.isCoordinateTypeChart,i=n&&ne||((0,i.default)(l)||l===o.indexes.index)&&u<=n&&(n=u,r=o)})),r},t.prototype.findDataByIndexes=function(t){var e=t.index,l=t.seriesIndex,n=null;return this.data.forEach((function(t){return t.indexes.groupIndex===e&&t.indexes.index===l&&(n=t),!n})),n},t.prototype.getFirstData=function(t){var e={index:0,seriesIndex:t};return this.findDataByIndexes(e)},t.prototype.getLastData=function(t){var e={index:this.lastGroupIndex,seriesIndex:t};return this.findDataByIndexes(e)},t}();e.default=s},function(t,e,l){"use strict";e.__esModule=!0,e.default=s;var n=o(l(23)),r=o(l(98)),i=o(l(17));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(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}(this,t.call(this));return r.chartType=l.chartType,r.drawingType=n.default.COMPONENT_TYPE_DOM,r.eventBus=l.eventBus,r}return function(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,t),e.prototype._renderMouseEventDetectorArea=function(t){i.default.renderDimension(t,this.layout.dimension),i.default.renderPosition(t,this.layout.position)},e.prototype.onReceiveSeriesData=function(){},e.prototype._onClick=function(t){this._onMouseEvent("click",t)},e.prototype._onMousemove=function(t){this._onMouseEvent("move",t)},e.prototype._onMouseout=function(t){this._onMouseEvent("move",t)},e}(r.default);function s(t){return new a(t)}s.componentType="mouseEventDetector"},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.default=c;var r=s(l(6)),i=s(l(23)),o=s(l(98)),a=s(l(103));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(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}(this,t.call(this,l));return n.prevIndex=null,n.zoomable=l.zoomable,n.sizeType=n.isVertical?"height":"width",n.pointOnColumn=l.pointOnColumn,n.zoomable&&(Object.assign(n,a.default),n._initForZoom(l.zoomable)),n}return function(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,t),e.prototype.initMouseEventDetectorData=function(t){o.default.prototype.initMouseEventDetectorData.call(this,t),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findGroupData=function(t,e){var l=this._calculateLayerPosition(t,e,!0),n=void 0;return n=this.isVertical?l.x:l.y,{indexes:{groupIndex:this.tickBaseCoordinateModel.findIndex(n)}}},e.prototype._findDataForZoomable=function(t,e){return this._findGroupData(t,e)},e.prototype._getFirstData=function(){return{indexes:{groupIndex:0}}},e.prototype._getLastData=function(){return{indexes:{groupIndex:this.tickBaseCoordinateModel.getLastIndex()}}},e.prototype._isOuterPosition=function(t,e){var l=this.dimension,n=l.width,r=l.height,i=this.layout.position,o=i.top,a=i.left;return ta+n||eo+r},e.prototype._showTooltip=function(t,e){var l=t.indexes.groupIndex,r=(this.isVertical?this.layout.position.left:this.layout.position.top)-i.default.CHART_PADDING,o=this.tickBaseCoordinateModel.data,a=o.length;if(this.pointOnColumn?a-1>l:a>l){var s=0;if(this.pointOnColumn){var u=n(o,1)[0],c=u.min;s=u.max-c}this.eventBus.fire("showTooltip",{index:l,range:this.tickBaseCoordinateModel.makeRange(l,r),size:this.dimension[this.sizeType],isVertical:this.isVertical,isMoving:e,silent:t.silent,tickInterval:s}),this.prevIndex=l}},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevIndex,t),this.prevIndex=null},e.prototype._onMousemove=function(t){if(!this.zoomable||!this._isAfterDragMouseup()){var e=this._findGroupData(t.clientX,t.clientY),l=e.indexes.groupIndex;-1===l?this._onMouseout(t):this.prevIndex!==l&&this._showTooltip(e)}},e.prototype._onMouseout=function(t){var e=this._calculateLayerPosition(t.clientX,t.clientY,!1),l=e.x,n=e.y;this._isOuterPosition(l,n)&&!(0,r.default)(this.prevIndex)&&this._hideTooltip()},e}(o.default);function c(t){return new u(t)}c.componentType="mouseEventDetector"},function(t,e,l){"use strict";e.__esModule=!0,e.default=h;var n=a(l(98)),r=a(l(23)),i=a(l(33)),o=a(l(24));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(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}var c=function(t){function e(){s(this,e);for(var l=arguments.length,n=Array(l),r=0;r=e&&a>=l||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},e.prototype.onAfterZoom=function(t){this.historyBackBtn||(this.historyBackBtn=o.default.create("DIV",r.default.CLASS_NAME_RESET_ZOOM_BTN),o.default.append(this.mouseEventDetectorContainer,this.historyBackBtn)),this.zoomHistory[this.zoomHistory.length-1]!==t&&this.zoomHistory.push(t)},e.prototype.findDataByIndexes=function(t){return this.boundsBaseCoordinateModel.findDataByIndexes(t)},e}(n.default);function h(t){return new c(t)}h.componentType="mouseEventDetector"},function(t,e,l){"use strict";e.__esModule=!0,e.default=f;var n=a(l(109)),r=a(l(110)),i=a(l(23)),o=a(l(33));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(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}var c=i.default.OVERLAPPING_WIDTH,h=i.default.TEXT_PADDING,d=function(t){function e(){return s(this,e),u(this,t.apply(this,arguments))}return function(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,t),e.prototype._makeBound=function(t,e,l,n,r){return{start:{top:l,left:n,width:0,height:e},end:{top:l,left:r,width:t,height:e}}},e.prototype._calculateAdditionalLeft=function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+c),e},e.prototype._makeBarChartBound=function(t,e,l,n,r){var i=t.baseBarSize,o=t.basePosition,a=t.barSize,s=t.itemCount,u=t.groupSize,c=t.pointInterval,h=n.ratioDistance,d=n.value,f=n.startRatio,p=n.stack,g=i*h,m=o+i*f+this._calculateAdditionalLeft(d),v=p!==e.prevStack,y=a*s>u,b=y?c:a,w=void 0;if(!l||!this.options.diverging&&v){var x=l?this.dataProcessor.findStackIndex(p):r;e.top=e.baseTop+b*x,e.plusLeft=0,e.minusLeft=0}d>=0?(w=m+e.plusLeft,e.plusLeft+=g):(e.minusLeft-=g,w=m+e.minusLeft),e.prevStack=p;var _=e.top+c-a/2;return y||(_+=(c-a)/2*(s-1)),this._makeBound(g,a,_,m,w)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),l=o.default.isValidStackOption(this.options.stack),n=this.layout,r=n.dimension,i=r.width,a=r.height,s=n.position.top,u=this._makeBaseDataForMakingBound(a,i);return e.map((function(e,n){var r=n*u.groupSize+s,i={baseTop:r,top:r,plusLeft:0,minusLeft:0,prevStack:null},o=t._makeBarChartBound.bind(t,u,i,l);return e.map(o)}))},e.prototype._calculateTopPositionOfSumLabel=function(t,e){return t.top+(t.height-e+h)/2},e}(n.default);function f(t){var e=t.chartTheme,l=t.chartOptions.libType;return t.libType=l,t.chartType="bar",t.chartBackground=e.chart.background,new d(t)}r.default.mixin(d),f.componentType="series",f.BarChartSeries=d},function(t,e,l){"use strict";e.__esModule=!0;var n=f(l(9)),r=f(l(83)),i=f(l(15)),o=f(l(6)),a=f(l(23)),s=f(l(24)),u=f(l(33)),c=f(l(17)),h=f(l(51)),d=f(l(12));function f(t){return t&&t.__esModule?t:{default:t}}var p=a.default.COMPONENT_TYPE_RAPHAEL,g=a.default.PUBLIC_EVENT_PREFIX,m=a.default.CLASS_NAME_SERIES_LABEL,v=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var l=e.libType;this.className="tui-chart-series-area",this.chartType=e.chartType,this.seriesType=e.seriesType||e.chartType,this.componentType=e.componentType,this.dataProcessor=e.dataProcessor,this.eventBus=e.eventBus,this.chartBackground=e.chartBackground,this.options=e.options||{},this.orgTheme=this.theme=e.theme,this.graphRenderer=h.default.get(l,e.chartType),this.seriesContainer=null,this.seriesLabelContainer=null,this.seriesData={},this.selectedLegendIndex=null,this.labelShowEffector=null,this.paper=null,this.limit=null,this.aligned=null,this.layout=null,this.dimensionMap=null,this.positionMap=null,this.axisDataMap=null,this.beforeAxisDataMap=null,this.drawingType=p,this.supportSeriesLable=!0,this._attachToEventBus()}return t.prototype.decorateLabel=function(t){var e=this.options,l=e.labelPrefix,r=void 0===l?"":l,i=e.labelSuffix,o=void 0===i?"":i,a=c.default.addPrefixSuffix,s=c.default.addPrefixSuffixItem;return((0,n.default)(t)?a:s).bind(c.default)(t,r,o)},t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.orgTheme;this.orgTheme=t,this.theme=t,"treemap"===this.chartType&&(this.boundMap=null)},t.prototype._attachToEventBus=function(){var t=function(){this.isInitRenderCompleted=!0,this.eventBus.off("load",t)}.bind(this);this.eventBus.on(g+"load",t),this.eventBus.on({selectLegend:this.onSelectLegend,selectSeries:this.onSelectSeries,unselectSeries:this.onUnselectSeries,hoverSeries:this.onHoverSeries,hoverOffSeries:this.onHoverOffSeries,showGroupAnimation:this.onShowGroupAnimation,hideGroupAnimation:this.onHideGroupAnimation},this),this.onShowTooltip&&this.eventBus.on("showTooltip",this.onShowTooltip,this),this.onShowGroupTooltipLine&&this.eventBus.on({showGroupTooltipLine:this.onShowGroupTooltipLine,hideGroupTooltipLine:this.onHideGroupTooltipLine},this),this.onClickSeries&&this.eventBus.on({clickSeries:this.onClickSeries,moveSeries:this.onMoveSeries},this)},t.prototype._getSeriesDataModel=function(){return this.dataProcessor.getSeriesDataModel(this.seriesType)},t.prototype._makeSeriesData=function(){},t.prototype.getSeriesData=function(){return this.seriesData},t.prototype._renderSeriesLabel=function(){},t.prototype._renderConnector=function(){},t.prototype._renderSeriesLabelArea=function(t){return this._renderSeriesLabel(t)},t.prototype._sendBoundsToMouseEventDetector=function(t){this.eventBus.fire("receiveSeriesData",{chartType:this.chartType,data:t})},t.prototype._renderSeriesArea=function(t,e){var l=this.dimensionMap.extendedSeries,n=this.seriesData=this._makeSeriesData();this._sendBoundsToMouseEventDetector(n),(this.hasDataForRendering(n)||"map"===this.chartType)&&(e&&(this.seriesSet=e(l,n,t)),u.default.isShowLabel(this.options)&&this.supportSeriesLable&&(this.labelSet=this._renderSeriesLabelArea(t)),u.default.isBarTypeChart(this.chartType)&&u.default.isValidStackOption(this.options.stack)&&u.default.isRenderConnector(this.options.stack.connector)&&(this.connectorSet=this._renderConnector(t,n,this.options.stack)))},t.prototype._makeParamsForGraphRendering=function(t,e){return Object.assign({dimension:t,position:this.layout.position,chartType:this.seriesType,theme:this.theme,options:this.options},e)},t.prototype._renderGraph=function(t,e,l){var n=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(l,n)},t.prototype._setDataForRendering=function(t){this.paper=t.paper,this.limit=t.limitMap[this.chartType],t.axisDataMap&&t.axisDataMap.xAxis&&(this.aligned=t.axisDataMap.xAxis.aligned),this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap,this.axisDataMap=t.axisDataMap},t.prototype.render=function(t){if(this.paper=t.paper,this._setDataForRendering(t),this._clearSeriesContainer(),this.beforeAxisDataMap=this.axisDataMap,t.checkedLegends){var e=t.checkedLegends[this.seriesType];this.options.colorByPoint||(this.theme=this._getCheckedSeriesTheme(this.orgTheme,e))}this._renderSeriesArea(t.paper,this._renderGraph.bind(this)),this.paper.pushDownBackgroundToBottom&&this.paper.pushDownBackgroundToBottom()},t.prototype._getCheckedSeriesTheme=function(t,e){if(!e.length)return t;var l=JSON.parse(JSON.stringify(t));return l.colors=l.colors.filter((function(t,l){return e[l]})),l},t.prototype._clearSeriesContainer=function(){this.seriesSet&&this.seriesSet.remove&&(this.seriesSet.forEach((function(t){t.remove()}),this),this.seriesSet.remove()),this.labelSet&&this.labelSet.remove&&(this.labelSet.forEach((function(t){t.remove()}),this),this.labelSet.remove()),this.connectorSet&&this.connectorSet.remove&&(this.connectorSet.forEach((function(t){t.remove()}),this),this.connectorSet.remove()),this.seriesData={}},t.prototype.rerender=function(t){var e=void 0;"map"===this.seriesType||this.dataProcessor.getGroupCount(this.seriesType)?(t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.theme=this._getCheckedSeriesTheme(this.orgTheme,e)),this._setDataForRendering(t),this._clearSeriesContainer(),this._renderSeriesArea(t.paper,this._renderGraph.bind(this)),this.labelShowEffector&&clearInterval(this.labelShowEffector.timerId),!e&&this.isInitRenderCompleted||this.animateComponent(!0),(0,o.default)(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)):this._clearSeriesContainer()},t.prototype._isLabelVisible=function(){return!(!this.options.showLabel&&!this.options.showLegend)},t.prototype._resizeGraph=function(t,e){return this.graphRenderer.resize(Object.assign({dimension:this.dimensionMap.chart},e)),this.seriesSet},t.prototype.resize=function(t){this._clearSeriesContainer(),this._setDataForRendering(t),this._renderSeriesArea(t.paper,this._resizeGraph.bind(this)),this.rerender(t)},t.prototype._renderPosition=function(t,e){var l=c.default.isOldBrowser()?1:0;c.default.renderPosition(t,{top:e.top-l,left:e.left-2*l})},t.prototype._getLimitDistanceFromZeroPoint=function(t,e){var l=e.min,n=e.max,r=n-l,i=0,o=0;return l<=0&&n>=0?(i=(r+l)/r*t,o=(r-n)/r*t):l>0&&(i=t),{toMax:i,toMin:o}},t.prototype._findLabelElement=function(t){return s.default.hasClass(t,m)?t:s.default.findParentByClass(t,m)},t.prototype.onHoverSeries=function(t,e){e===this.chartType&&this.graphRenderer.showAnimation&&this.graphRenderer.showAnimation(t)},t.prototype.onHoverOffSeries=function(t,e){e===this.chartType&&this.graphRenderer.hideAnimation&&t&&this.graphRenderer.hideAnimation(t)},t.prototype.onShowGroupAnimation=function(t){this.graphRenderer.showGroupAnimation&&this.graphRenderer.showGroupAnimation(t)},t.prototype.onHideGroupAnimation=function(t){this.graphRenderer.hideGroupAnimation&&this.graphRenderer.hideGroupAnimation(t)},t.prototype.animateComponent=function(t){var e=this;this.graphRenderer.animate?(this.seriesSet&&this.graphRenderer.animate(this.animateSeriesLabelArea.bind(this,t),this.seriesSet),this.connectorSet&&this.graphRenderer.animate(this.animateSeriesConnector.bind(this,t),this.connectorSet)):(this.animateSeriesLabelArea(t),this.animateSeriesConnector()),setTimeout((function(){e.options.animationDuration=d.default.getDefaultAnimationDuration(e.chartType)}))},t.prototype._fireLoadEvent=function(t){t||this.eventBus.fire(g+"load")},t.prototype.animateSeriesLabelArea=function(t){this._isLabelVisible()?this.labelSet&&this.labelSet.length&&d.default.animateOpacity(this.labelSet,0,1,this.options.animationDuration):this._fireLoadEvent(t)},t.prototype.animateSeriesConnector=function(){this.connectorSet&&this.connectorSet.length&&d.default.animateOpacity(this.connectorSet,0,1,this.options.animationDuration)},t.prototype._makeExportationSeriesData=function(t){var e=t.indexes,l=(0,i.default)(e.legendIndex)?e.legendIndex:e.index,n=this.dataProcessor.getLegendItem(l),r=(0,i.default)(e.groupIndex)?e.groupIndex:0,o=this._getSeriesDataModel().getSeriesItem(r,e.index),a=void 0;return(0,i.default)(o)&&((a={chartType:n.chartType,legend:n.label,legendIndex:l}).index=o.index),a},t.prototype._executeGraphRenderer=function(t,e){var l=!1;this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&s.default.hasClass(this.seriesLabelContainer,"show")&&(s.default.removeClass(this.seriesLabelContainer,"show"),l=!0);var n=this.graphRenderer[e](t);return l&&s.default.addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),n},t.prototype.onSelectSeries=function(t,e){if(t.chartType===this.chartType){var l=g+"selectSeries";this.eventBus.fire(l,this._makeExportationSeriesData(t)),e=!!(0,r.default)(e)||e,this.options.allowSelect&&this.graphRenderer.selectSeries&&e&&this.graphRenderer.selectSeries(t.indexes)}},t.prototype.onUnselectSeries=function(t){if(t.chartType===this.chartType){var e=g+"unselectSeries";this.eventBus.fire(e,this._makeExportationSeriesData(t)),this.options.allowSelect&&this.graphRenderer.unselectSeries&&this.graphRenderer.unselectSeries(t.indexes)}},t.prototype.onSelectLegend=function(t,e){this.seriesType===t||(0,o.default)(e)||(e=-1),this.selectedLegendIndex=e,this._getSeriesDataModel().getGroupCount()&&this.graphRenderer.selectLegend(e)},t.prototype.showLabel=function(){this.options.showLabel=!0,!this.seriesLabelContainer&&this.supportSeriesLable&&this._renderSeriesLabelArea(this.paper)},t.prototype.hideLabel=function(){this.options.showLabel=!1,this.seriesLabelContainer&&(s.default.removeClass(this.seriesLabelContainer,"show"),s.default.removeClass(this.seriesLabelContainer,"opacity"))},t.prototype.isAvailableSeriesData=function(){return!!(this.seriesData&&this.seriesData.isAvailable&&this.seriesData.isAvailable())},t.prototype.hasDataForRendering=function(t){return!(!t||!t.isAvailable())},t}();e.default=v},function(t,e,l){"use strict";e.__esModule=!0;var n=c(l(23)),r=c(l(111)),i=c(l(33)),o=c(l(42)),a=c(l(17)),s=c(l(12)),u=c(l(15));function c(t){return t&&t.__esModule?t:{default:t}}var h=n.default.CHART_PADDING,d=n.default.LEGEND_LABEL_LEFT_PADDING,f=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds(this.layout.dimension);return this.groupBounds=t,{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype._getBarWidthOptionSize=function(t,e){var l=0;return e&&(e/2>=t?e=2*t:e<0&&(e=0),l=e),l},t.prototype._calculateAdditionalPosition=function(t,e,l){var n=0;return e&&e0){var c=void 0,d=r/((c=l?this.options.diverging?1:this.dataProcessor.getStackCount(this.seriesType):n.getFirstSeriesGroup().getSeriesItemCount())+1),f=this.options.barWidth||this.options.pointWidth,p=.85*d,g=a+s;p=this._getBarWidthOptionSize(d,f)||p,i.default.isColumnChart(this.chartType)&&(g=e-g),i.default.isBoxplotChart(this.chartType)&&a&&(g-=2*a),u={baseBarSize:e,groupSize:r,barSize:p,pointInterval:d,basePosition:g,itemCount:c,firstAdditionalPosition:d}}return u},t.prototype._renderConnector=function(t,e,l){return this.graphRenderer.renderConnector(t,e,l)},t.prototype._renderNormalSeriesLabel=function(t){var e=this,l=this.graphRenderer,n=this._getSeriesDataModel(),o=this.seriesData.groupBounds,a=this.theme.label,s=this.selectedLegendIndex,c=n.map((function(t){return t.map((function(t){var l=t.start,n=t.startLabel,r=t.endLabel,i={end:e.decorateLabel(r)};return(0,u.default)(l)&&(i.start=e.decorateLabel(n)),i}))})),h=void 0;return h=i.default.isBarChart(this.chartType)?r.default.boundsToLabelPositionsForBarChart(n,o,a):r.default.boundsToLabelPositionsForColumnChart(n,o,a),l.renderSeriesLabel(t,h,c,a,s)},t.prototype._makeSumValues=function(t){return a.default.formatValue({value:o.default.sum(t),formatFunctions:this.dataProcessor.getFormatFunctions(),chartType:this.chartType,areaType:"series"})},t.prototype._makeStackedLabelPosition=function(t){var e=t.top;return{left:t.left+t.width/2,top:e+t.height/2}},t.prototype._makeStackedLabelPositions=function(t){var e=this;return t.seriesGroup.map((function(l,n){var r=t.bounds[n],i=void 0;return r&&l&&(i=e._makeStackedLabelPosition(r.end)),{end:i}}))},t.prototype.getGroupLabels=function(t,e,l){var n=this,r=i.default.isNormalStack(this.options.stack);return t.map((function(t){var i=t.map((function(t){return{end:n.decorateLabel(t.endLabel)}}));if(r){e.push(o.default.sumPlusValues(t.pluck("value")));var a=o.default.sumMinusValues(t.pluck("value"));a<0&&l.push(a)}return i}))},t.prototype.getGroupPositions=function(t,e){var l=this;return t.map((function(t,n){return l._makeStackedLabelPositions({seriesGroup:t,bounds:e[n]})}))},t.prototype._renderStackedSeriesLabel=function(t){var e=this,l=[],n=[],r=this.theme.label,o=this.seriesData.groupBounds,u=this._getSeriesDataModel(),c=this.getGroupPositions(u,o),h=this.getGroupLabels(u,l,n),f=i.default.isNormalStack(this.options.stack),p=i.default.isBarChart(this.chartType),g=p?"width":"height",m=p?"left":"top",v=p?1:-1;return f&&(h.forEach((function(t,r){var i=l[r],o=n[r];o<0&&e.options.diverging&&(o*=-1),t.push({end:e.decorateLabel(a.default.formatToComma(i))}),n.length&&t.push({end:e.decorateLabel(a.default.formatToComma(o))})})),c.forEach((function(t,i){var a=o[i],u=a[a.length-1].end,c=a[Math.max(parseInt(a.length/2,10),1)-1].end,h=e._makeStackedLabelPosition(u),f=e._makeStackedLabelPosition(c),p=l[i],y=n[i],b=s.default.getRenderedTextSize(p,r.fontSize,r.fontFamily),w=s.default.getRenderedTextSize(y,r.fontSize,r.fontFamily),x=(u[g]+b[g])/2,_=(c[g]+w[g])/2;h[m]+=(x+d)*v,f[m]-=(_+d)*v,t.push({end:h}),n.length&&t.push({end:f})}))),this.graphRenderer.renderSeriesLabel(t,c,h,r,!0)},t.prototype._renderSeriesLabel=function(t){return this.options.stack?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)},t}();f.mixin=function(t){Object.assign(t.prototype,f.prototype)},e.default=f},function(t,e,l){"use strict";e.__esModule=!0;var n=i(l(23)),r=i(l(17));function i(t){return t&&t.__esModule?t:{default:t}}var o=n.default.MAX_HEIGHT_WORD,a=n.default.SERIES_LABEL_PADDING;e.default={_calculateLeftPositionForCenterAlign:function(t){return t.left+t.width/2},_calculateTopPositionForMiddleAlign:function(t){return t.top+t.height/2},_makePositionForBoundType:function(t){return{left:this._calculateLeftPositionForCenterAlign(t),top:this._calculateTopPositionForMiddleAlign(t)}},_makePositionMap:function(t,e,l,n,r){var i=t.value,o=i>=0,a={end:r(e,l,t.endLabel||t.label,n,o)};return t.isRange&&(o=i<0,a.start=r(e,l,t.startLabel,n,o)),a},boundsToLabelPositions:function(t,e,l,n,i){var a=this,s=r.default.getRenderedLabelHeight(o,l);return n=n||this._makePositionForBoundType.bind(this),i=!!i,t.map((function(t,r){var i=e[r];return t.map((function(t,e){var r=i[e].end;return a._makePositionMap(t,r,s,l,n)}))}),i)},_makePositionForBarChart:function(t,e,l,n,i){var o=r.default.getRenderedLabelWidth(l,n),s=t.left;return i?s+=t.width+a:s-=o+a,{left:s,top:this._calculateTopPositionForMiddleAlign(t)}},boundsToLabelPositionsForBarChart:function(t,e,l){var n=this._makePositionForBarChart.bind(this);return this.boundsToLabelPositions(t,e,l,n)},_makePositionForColumnChart:function(t,e,l,n,r){var i=t.top;return r?i-=e+a:i+=t.height+a,{left:this._calculateLeftPositionForCenterAlign(t),top:i}},boundsToLabelPositionsForColumnChart:function(t,e,l){var n=this._makePositionForColumnChart.bind(this);return this.boundsToLabelPositions(t,e,l,n)},boundsToLabelPostionsForTreemap:function(t,e){var l=this;return t.map((function(t){var n=e[t.id],r=void 0;return n&&(r=l._makePositionForBoundType(n)),r}))}}},function(t,e,l){"use strict";e.__esModule=!0,e.default=d;var n=s(l(109)),r=s(l(110)),i=s(l(23)),o=s(l(33)),a=s(l(17));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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}var h=function(t){function e(){return u(this,e),c(this,t.apply(this,arguments))}return function(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,t),e.prototype._makeBound=function(t,e,l,n,r){return{start:{top:n,left:l,width:t,height:0},end:{top:r,left:l,width:t,height:e}}},e.prototype._makeColumnChartBound=function(t,e,l,n,r){var o=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,c=t.groupSize,h=t.pointInterval,d=Math.abs(o*n.ratioDistance),f=a+o*n.startRatio+i.default.SERIES_EXPAND_SIZE,p=n.stack!==e.prevStack,g=s*u>c,m=g?h:s,v=void 0,y=void 0;if(!l||!this.options.diverging&&p){var b=l?this.dataProcessor.findStackIndex(n.stack):r;e.left=e.baseLeft+m*b,e.plusTop=0,e.minusTop=0}return n.value>=0?(e.plusTop-=d,v=f+e.plusTop):(v=f+e.minusTop,e.minusTop+=d),e.prevStack=n.stack,y=g?e.left+h-s/2:e.left+h-s/2+(h-s)/2*(u-1),this._makeBound(s,d,y,f,v)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),l=o.default.isValidStackOption(this.options.stack),n=this.layout.dimension,r=n.width,i=n.height,a=this._makeBaseDataForMakingBound(r,i);return e.map((function(e,n){var r=n*a.groupSize+t.layout.position.left,i={baseLeft:r,left:r,plusTop:0,minusTop:0,prevStack:null},o=t._makeColumnChartBound.bind(t,a,i,l);return e.map(o)}))},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){return t.left+(t.width-a.default.getRenderedLabelWidth(e,this.theme.label)+i.default.TEXT_PADDING)/2},e}(n.default);function d(t){return t.libType=t.chartOptions.libType,t.chartType="column",t.chartBackground=t.chartTheme.chart.background,new h(t)}r.default.mixin(h),d.componentType="series",d.ColumnChartSeries=h},function(t,e,l){"use strict";e.__esModule=!0,e.default=u;var n=i(l(109)),r=i(l(114));function i(t){return t&&t.__esModule?t:{default:t}}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}var s=function(t){function e(){o(this,e);for(var l=arguments.length,n=Array(l),r=0;r0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),n.default.prototype.rerender.call(this,t)},e}(n.default);function u(t){return t.libType=t.chartOptions.libType,t.chartType="line",t.chartBackground=t.chartTheme.chart.background,new s(t)}r.default.mixin(s),u.componentType="series"},function(t,e,l){"use strict";e.__esModule=!0;var n=c(l(15)),r=c(l(6)),i=c(l(27)),o=c(l(23)),a=c(l(33)),s=c(l(42)),u=c(l(17));function c(t){return t&&t.__esModule?t:{default:t}}var h=o.default.SERIES_EXPAND_SIZE,d=o.default.SERIES_LABEL_PADDING,f=o.default.MAX_HEIGHT_WORD,p=o.default.ADDING_DATA_ANIMATION_DURATION,g=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype._makePositionsForDefaultType=function(t){var e=this.layout.dimension,l=e.height,i=e.width,o=this._getSeriesDataModel(),a=t||i||0,s=o.getGroupCount(),u=this.layout.position.top,c=this.layout.position.left,h=void 0;return this.aligned?h=a/(s>1?s-1:s):c+=(h=a/s)/2,o.map((function(t){return t.map((function(t,e){var i=void 0;return(0,r.default)(t.end)||(i={left:c+h*e,top:u+l-t.ratio*l},(0,n.default)(t.startRatio)&&(i.startTop=u+l-t.startRatio*l)),i}))}),!0)},t.prototype._makePositionForCoordinateType=function(t){var e=this.layout.dimension,l=this._getSeriesDataModel(),i=e.height,a=this.axisDataMap.xAxis,u=this.layout.position.top,c=this.layout.position.left,h=t||e.width||0,d=0;return a.sizeRatio&&(d=s.default.multiply(h,a.positionRatio),h=s.default.multiply(h,a.sizeRatio)),l.map((function(t){return t.map((function(t){var e=void 0;return(0,r.default)(t.end)||(e={left:c+t.ratioMap.x*h+d,top:u+i-t.ratioMap.y*i},(0,n.default)(t.ratioMap.start)&&(e.startTop=i-t.ratioMap.start*i+o.default.SERIES_EXPAND_SIZE)),e}))}),!0)},t.prototype._makeBasicPositions=function(t){return this.dataProcessor.isCoordinateType()?this._makePositionForCoordinateType(t):this._makePositionsForDefaultType(t)},t.prototype._calculateLabelPositionTop=function(t,e,l,n){var r=t.top;return a.default.isValidStackOption(this.options.stack)?(t.startTop+r-l)/2+1:e>=0&&!n||e<0&&n?r-l-d:r+d},t.prototype._makeLabelPosition=function(t,e,l,n,r){return{left:t.left,top:this._calculateLabelPositionTop(t,n,e/2,r)}},t.prototype._getLabelPositions=function(t,e){var l=this,n=i.default.pivot(this.seriesData.groupPositions),r=u.default.getRenderedLabelHeight(f,e);return t.map((function(t,e){return t.map((function(t,i){var o=n[e][i],a={end:l._makeLabelPosition(o,r,t.endLabel,t.end)};return t.isRange&&(o.top=o.startTop,a.start=l._makeLabelPosition(o,r,t.startLabel,t.start)),a}))}))},t.prototype._getLabelTexts=function(t){var e=this;return t.map((function(t){return t.map((function(t){var l=t.endLabel,n=t.isRange,r=t.startLabel,i={end:e.decorateLabel(l)};return n&&(i.start=e.decorateLabel(r)),i}))}))},t.prototype._renderSeriesLabel=function(t){var e=this.theme.label,l=this._getSeriesDataModel(),n=this._getLabelTexts(l),r=this._getLabelPositions(l,e);return this.graphRenderer.renderSeriesLabel(t,r,n,e)},t.prototype.onShowGroupTooltipLine=function(t){this.graphRenderer.showGroupTooltipLine&&this.graphRenderer.showGroupTooltipLine(t,this.layout)},t.prototype.onHideGroupTooltipLine=function(){this.isAvailableSeriesData()&&this.graphRenderer.hideGroupTooltipLine&&this.graphRenderer.hideGroupTooltipLine()},t.prototype.zoom=function(t){this._cancelMovingAnimation(),this._clearSeriesContainer(t.paper),this._setDataForRendering(t),this._renderSeriesArea(t.paper,this._renderGraph.bind(this)),(0,r.default)(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)},t.prototype._isChangedLimit=function(t,e){return t.min!==e.min||t.max!==e.max},t.prototype._isChangedAxisLimit=function(){var t=this.beforeAxisDataMap,e=this.axisDataMap,l=!0;return t&&(l=this._isChangedLimit(t.yAxis.limit,e.yAxis.limit),e.xAxis.limit&&(l=l||this._isChangedLimit(t.xAxis.limit,e.xAxis.limit))),this.beforeAxisDataMap=e,l},t.prototype._animate=function(t){var e=this,l=p;this._isChangedAxisLimit()&&this.seriesLabelContainer&&(this.seriesLabelContainer.innerHTML=""),t&&(this.movingAnimation=u.default.startAnimation(l,t,(function(){e.movingAnimation=null})))},t.prototype._makeZeroTopForAddingData=function(){var t=this.layout.dimension.height,e=this.axisDataMap.yAxis.limit;return this._getLimitDistanceFromZeroPoint(t,e).toMax+h},t.prototype.animateForAddingData=function(t){var e=t.tickSize,l=t.limitMap,n=t.axisDataMap,r=this.dimensionMap.extendedSeries,i=this.options.shifting,o=this.layout.dimension.width;this.limit=l[this.chartType],this.axisDataMap=n;var a=this._makeSeriesData(),s=this._makeParamsForGraphRendering(r,a);i&&(o+=e);var u=this._makePositions(o),c=this._makeZeroTopForAddingData();this.graphRenderer.animateForAddingData(s,e,u,i,c)},t.prototype._cancelMovingAnimation=function(){this.movingAnimation&&(cancelAnimationFrame(this.movingAnimation.id),this.movingAnimation=null)},t}();g.mixin=function(t){Object.assign(t.prototype,g.prototype)},e.default=g},function(t,e,l){"use strict";e.__esModule=!0,e.default=g;var n=s(l(6)),r=s(l(109)),i=s(l(23)),o=s(l(42)),a=s(l(74));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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}var h=i.default.COMPONENT_TYPE_RAPHAEL,d=i.default.RADIAL_PLOT_PADDING,f=i.default.RADIAL_MARGIN_FOR_CATEGORY,p=function(t){function e(){u(this,e);for(var l=arguments.length,n=Array(l),r=0;r0}}},e.prototype.rerender=function(t){return r.default.prototype.rerender.call(this,t)},e}(r.default);function g(t){return t.libType=t.chartOptions.libType,t.chartType=t.chartOptions.chartType,t.chartBackground=t.chartTheme.background,new p(t)}g.componentType="series",g.RadialChartSeries=p},function(t,e,l){"use strict";e.__esModule=!0,e.default=c;var n=o(l(109)),r=o(l(114)),i=o(l(33));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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}var u=function(t){function e(){a(this,e);for(var l=arguments.length,n=Array(l),r=0;r=0&&!r&&(r=e),r},e.prototype._makeStackedPositions=function(t){var e=this.layout,l=e.dimension.height,n=e.position.top,r=this._makePositionTopOfZeroPoint(),i=[];return t.map((function(t){return t.map((function(t,e){var o=i[e]||r,a=t?t.top:0,s=t?o-(l-a+n):o;return t&&(t.startTop=o,t.top=s),i[e]=s,t}))}))},e.prototype._makePositions=function(t){var e=this._makeBasicPositions(t);return i.default.isValidStackOption(this.options.stack)&&(e=this._makeStackedPositions(e)),e},e.prototype._makeSeriesData=function(){var t=this.layout,e=t.dimension.height,l=t.position.top,n=this._getLimitDistanceFromZeroPoint(e,this.limit).toMax+l,r=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:r,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:n,isAvailable:function(){return r&&r.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),n.default.prototype.rerender.call(this,t)},e}(n.default);function c(t){var e=t.chartTheme,l=t.chartOptions.libType;return t.libType=l,t.chartType="area",t.chartBackground=e.chart.background,new u(t)}r.default.mixin(u),c.componentType="series",c.AreaChartSeries=u},function(t,e,l){"use strict";e.__esModule=!0,e.default=h;var n=a(l(23)),r=a(l(109)),i=a(l(118)),o=a(l(15));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(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}var c=function(t){function e(){s(this,e);for(var l=arguments.length,r=Array(l),i=0;i0}}},t.prototype.showTooltip=function(t,e,l,n,r){this.eventBus.fire("showTooltip",Object.assign({indexes:{groupIndex:l,index:n},mousePosition:r},t))},t.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},t.prototype._renderGraph=function(t,e,l){var n={showTooltip:this.showTooltip.bind(this,{chartType:this.chartType}),hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(l,r,n)},t.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findIndexes"),l=this.prevClickedIndexes,n=this.options.allowSelect,r=this.chartType;if(e&&l&&(this.onUnselectSeries({chartType:r,indexes:l}),this.prevClickedIndexes=null),e){var i=!l||e.index!==l.index||e.groupIndex!==l.groupIndex;n&&i&&(this.onSelectSeries({chartType:r,indexes:e},i),this.prevClickedIndexes=e)}},t.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},t}();l.mixin=function(t){Object.assign(t.prototype,l.prototype)},e.default=l},function(t,e,l){"use strict";e.__esModule=!0,e.default=c;var n=o(l(109)),r=o(l(118)),i=o(l(23));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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}var u=function(t){function e(){a(this,e);for(var l=arguments.length,n=Array(l),r=0;r0&&(t%=f),t},e.prototype._transformRadiusRange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["0%","100%"];return t.map((function(t){var e=.01*parseInt(t,10);return Math.max(Math.min(e,1),0)}))},e.prototype._setDefaultOptions=function(){var t=this.options;t.startAngle=this._makeValidAngle(t.startAngle,0),t.endAngle=this._makeValidAngle(t.endAngle,t.startAngle),t.radiusRange=this._transformRadiusRange(t.radiusRange),1===t.radiusRange.length&&t.radiusRange.unshift(0)},e.prototype._calculateAngleForRendering=function(){var t=this.options,e=t.startAngle,l=t.endAngle;return el?f-(e-l):f},e.prototype._makeSectorData=function(t){var e=this,l=t.cx,r=t.r,i=t.cy,o=n(this.options.radiusRange,1)[0],a=this._calculateAngleForRendering(),s=this._getSeriesDataModel().getFirstSeriesGroup(),u=this.options.startAngle,c=.5*r;return o&&(c+=c*o),s?s.map((function(t){var n=t?t.ratio:0,o=a*n,s=u+o,h={start:{startAngle:u,endAngle:u},end:{startAngle:u,endAngle:s}},d={cx:l,cy:i,angle:u+o/2};return u=s,{ratio:n,angles:h,centerPosition:e._getArcPosition(Object.assign({r:c},d)),outerPosition:e._getArcPosition(Object.assign({r:r+e.legendLongestWidth/2+p},d))}})):null},e.prototype._makeValueLabel=function(){return this._getSeriesDataModel().getFirstSeriesGroup().map((function(t){return t.label}))},e.prototype._makeRatioValues=function(){return this._getSeriesDataModel().getFirstSeriesGroup().map((function(t){return t.ratio}))},e.prototype._makeSeriesData=function(){this.valueLabels=this._makeValueLabel(),this.legendLabels=this._getLegendLabels(),this.legendLongestWidth=this._getMaxLengthLegendWidth(),this.ratioValues=this._makeRatioValues();var t=this._makeCircleBound(),e=this._makeSectorData(t);return{chartBackground:this.chartBackground,circleBound:t,sectorData:e,isAvailable:function(){return e&&e.length>0}}},e.prototype._getQuadrantFromAngle=function(t,e){var l=parseInt(t/g,10)+1;return e&&t%g===0&&(l+=1===l?3:-1),l},e.prototype._getRangeForQuadrant=function(){return this.quadrantRange||(this.quadrantRange={start:this._getQuadrantFromAngle(this.options.startAngle),end:this._getQuadrantFromAngle(this.options.endAngle,!0)}),this.quadrantRange},e.prototype._isInQuadrantRange=function(t,e){var l=this._getRangeForQuadrant();return l.start===t&&l.end===e},e.prototype._calculateBaseSize=function(){var t=this.layout.dimension,e=t.width,l=t.height;if(!this.isCombo){var n=this._getRangeForQuadrant();this._isInQuadrantRange(2,3)||this._isInQuadrantRange(4,1)?l*=2:this._isInQuadrantRange(1,2)||this._isInQuadrantRange(3,4)?e*=2:n.start===n.end&&(e*=2,l*=2)}return Math.min(e,l)},e.prototype._calculateRadius=function(){var t=this.isCombo&&"pie1"===this.seriesType,e=this._calculateBaseSize(),l=this.isShowOuterLabel;return t&&(l=this.dataProcessor.isComboDonutShowOuterLabel()),e*(l?m:v)*this.options.radiusRange[1]/2},e.prototype._calculateCenterXY=function(t){var e=this.layout,l=e.dimension,n=l.width,r=l.height,i=e.position,o=i.top,a=t/2,s=n/2+i.left,u=r/2+o;return this.isCombo||(this._isInQuadrantRange(1,1)?(s-=a,u+=a):this._isInQuadrantRange(1,2)?s-=a:this._isInQuadrantRange(2,2)?(s-=a,u-=a):this._isInQuadrantRange(2,3)?u-=a:this._isInQuadrantRange(3,3)?(s+=a,u-=a):this._isInQuadrantRange(3,4)?s+=a:this._isInQuadrantRange(4,1)?u+=a:this._isInQuadrantRange(4,4)&&(s+=a,u+=a)),{cx:s,cy:u}},e.prototype._makeCircleBound=function(){var t=this._calculateRadius(),e=this._calculateCenterXY(t);return Object.assign({r:t},e)},e.prototype._getArcPosition=function(t){return{left:t.cx+t.r*Math.sin(t.angle*y),top:t.cy-t.r*Math.cos(t.angle*y)}},e.prototype._renderGraph=function(t,e,l){var n={showTooltip:this.showTooltip.bind(this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e),i=this.seriesType,o=this.dataProcessor.seriesDataModelMap,a=[],s=0;return(this.dataProcessor.seriesTypes||[]).forEach((function(t){var e=!0;return t!==i?a.push(t):e=!1,e})),a.forEach((function(t){s+=o[t].baseGroups.length})),r.additionalIndex=s,this.graphRenderer.render(l,r,n)},e.prototype.showTooltip=function(t,e,l,n,r){this.eventBus.fire("showTooltip",Object.assign({indexes:{groupIndex:l,index:n},mousePosition:r},t))},e.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},e.prototype._getMaxLengthLegendWidth=function(){var t=this,e=this.legendLabels.map((function(e){return c.default.getRenderedTextSize(e,t.labelTheme.fontSize,t.labelTheme.fontFamily).width}));return e.sort((function(t,e){return t-e})),e[e.length-1]},e.prototype._makeSeriesDataBySelection=function(t){return{indexes:{index:t,groupIndex:t}}},e.prototype._pickPositionsFromSectorData=function(t,e){var l=this,n=this.options,r=n.showLegend,i=n.showLabel,o=c.default.getRenderedTextSize(this.legendLabels[0],this.labelTheme.fontSize,this.labelTheme.fontFamily).height,a=c.default.getRenderedTextSize(this.valueLabels[0],b,this.labelTheme.fontFamily).height;return(this.seriesData.sectorData||[]).map((function(n){var s=n.ratio?Object.assign({},n[t]):null;return s&&r&&i&&!l.isLabelAlignOuter&&("value"===e?s.top-=a/2:"legend"===e&&(s.top+=o/2)),s}))},e.prototype._addEndPosition=function(t,e){e.forEach((function(e){if(e){var l=Object.assign({},e.middle);l.left-1&&i!==l;n&&!o||(this.onSelectSeries({chartType:this.chartType,indexes:{index:i,legendIndex:e.legendIndex}},o),n&&i>-1&&(this.prevClickedIndex=i))}},e.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},e}(a.default);function S(t){var e=t.chartOptions,l=e.libType,r=e.chartType,i=e.legend,o=t.chartTheme;if(t.libType=l,t.chartType="pie","combo"===r){var a=t.name.split("Series"),s=n(a,1);t.seriesType=s[0],t.isCombo=!0}return i&&(t.legendMaxWidth=i.maxWidth),t.chartBackground=o.chart.background,new _(t)}S.componentType="series",S.PieChartSeries=_},function(t,e,l){"use strict";e.__esModule=!0,e.default=a;var n=i(l(109)),r=i(l(111));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t){function e(l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(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}(this,t.call(this,l));return n.colorSpectrum=l.colorSpectrum,n}return function(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,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds(),e=this._getSeriesDataModel();return{colorSpectrum:this.colorSpectrum,groupBounds:t,seriesDataModel:e,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBound=function(t,e,l,n){var r=this.layout,i=r.dimension.height,o=r.position,a=o.top;return{end:{left:o.left+t*l,top:a+i-e*(n+1),width:t,height:e}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),l=this.layout.dimension,n=l.width,r=l.height,i=n/this.dataProcessor.getCategoryCount(!1),o=r/this.dataProcessor.getCategoryCount(!0);return e.map((function(e,l){return e.map((function(e,n){return t._makeBound(i,o,l,n)}))}))},e.prototype.onShowTooltip=function(t){var e=t.indexes,l=this._getSeriesDataModel().getSeriesItem(e.groupIndex,e.index),n=l.ratio,r=l.label;this.eventBus.fire("showWedge",n,r)},e.prototype._renderSeriesLabel=function(t){var e=this,l=this._getSeriesDataModel(),n=this.seriesData.groupBounds,i=this.theme.label,o=this.selectedLegendIndex,a=r.default.boundsToLabelPositions(l,n,i),s=l.map((function(t){return e.decorateLabel(t.valuesMap.value)}));return this.graphRenderer.renderSeriesLabel(t,a,s,i,o)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),l=0;l0}}},e.prototype._makeBoundMap=function(t,e,l){var n=this,r=this._getSeriesDataModel(),o=Object.assign({},this.layout.dimension,this.layout.position),a=r.findSeriesItemsByParent(t);return l=l||o,e=Object.assign(e||{},i.default.squarify(l,a)),a.forEach((function(t){e=n._makeBoundMap(t.id,e,e[t.id])})),e},e.prototype._makeBounds=function(t){var e=this.startDepth,l=this._getSeriesDataModel(),n=void 0;return n=this.options.zoomable?function(t){return t.depth===e}:function(t){return!t.hasChild},l.map((function(e){return e.map((function(e){var l=t[e.id],r=null;return l&&n(e)&&(r={end:l}),r}),!0)}),!0)},e.prototype._getBoundMap=function(){return this.boundMap||(this.boundMap=this._makeBoundMap(this.rootId)),this.boundMap},e.prototype._shouldDimmed=function(t,e,l){var n=!1;if(e&&l.id!==e.id&&l.group===e.group){var r=t.findParentByDepth(l.id,e.depth+1);r&&r.parent===e.id&&(n=!0)}return n},e.prototype._renderSeriesLabel=function(t){var e=this,l=this._getSeriesDataModel(),n=this._getBoundMap(),r=this.theme.label,i=this.options.labelTemplate,a=void 0,s=(a=this.options.useLeafLabel?l.findLeafSeriesItems(this.selectedGroup):l.findSeriesItemsByDepth(this.startDepth,this.selectedGroup)).map((function(t){var l=i?i(t.pickLabelTemplateData()):t.label;return e.decorateLabel(l)})),u=o.default.boundsToLabelPostionsForTreemap(a,n,r);return this.graphRenderer.renderSeriesLabelForTreemap(t,u,s,r)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),l=0;l-1&&this.eventBus.fire("showWedge",l,e.colorValue)}},e.prototype.onHoverOffSeries=function(t){s.default.isShowLabel(this.options)&&t&&this.graphRenderer.hideAnimation(t,this.options.useColorValue)},e}(r.default);function h(t){return t.libType=t.chartOptions.libType,t.chartType="treemap",t.chartBackground=t.chartTheme.chart.background,new c(t)}h.componentType="series",h.TreemapChartSeries=c},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(58)),r=o(l(42)),i=o(l(27));function o(t){return t&&t.__esModule?t:{default:t}}e.default={boundMap:{},_makeBaseBound:function(t){return Object.assign({},t)},_calculateScale:function(t,e,l){return e*l/r.default.sum(t)},_makeBaseData:function(t,e,l){var r=this._calculateScale((0,n.default)(t,"value"),e,l);return t.map((function(t){return{id:t.id,weight:t.value*r}})).sort((function(t,e){return e.weight-t.weight}))},_worst:function(t,e,l,n){var r=t*t,i=n*n;return Math.max(i*l/r,r/(i*e))},_changedStackDirection:function(t,e,l,n){var r=i.default.min(e),o=i.default.max(e),a=this._worst(t,r,o,l);return this._worst(t+n,Math.min(r,n),Math.max(o,n),l)>=a},_isVerticalStack:function(t){return t.height=0?(e.plusTop-=u,p=c+e.plusTop):(p=c+e.minusTop,e.minusTop+=u);var g=e.left+i-o/2,m=(n.outliers||[]).map((function(t){return{top:a*(1-t.ratio)+d,left:g+o/2}}));return{start:{top:c,left:g,width:o,height:0},end:{top:p,left:g,width:o,height:u},min:{top:a*(1-n.minRatio)+d,left:g,width:o,height:0},max:{top:a*(1-n.maxRatio)+d,left:g,width:o,height:0},median:{top:a*(1-n.medianRatio)+d,left:g,width:o,height:0},outliers:m}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),l=o.default.isValidStackOption(this.options.stack),n=this.layout.dimension,r=n.width,i=n.height,a=this._makeBaseDataForMakingBound(r,i);return e.map((function(e,n){var r=n*a.groupSize+t.layout.position.left,i={baseLeft:r,left:r,plusTop:0,minusTop:0,prevStack:null},o=t._makeBoxplotChartBound.bind(t,a,i,l);return e.map(o)}))},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){return t.left+(t.width-a.default.getRenderedLabelWidth(e,this.theme.label)+d)/2},e}(n.default);function p(t){var e=t.chartOptions.libType,l=t.chartTheme;return t.libType=e,t.chartType="boxplot",t.chartBackground=l.chart.background,new f(t)}r.default.mixin(f),p.componentType="series",p.BoxplotChartSeries=f},function(t,e,l){"use strict";e.__esModule=!0,e.default=m;var n=o(l(109)),r=o(l(17)),i=o(l(23));function o(t){return t&&t.__esModule?t:{default:t}}var a=i.default.BULLET_TYPE_ACTUAL,s=i.default.BULLET_ACTUAL_HEIGHT_RATIO,u=i.default.BULLET_TYPE_RANGE,c=i.default.BULLET_RANGES_HEIGHT_RATIO,h=i.default.BULLET_TYPE_MARKER,d=i.default.BULLET_MARKERS_HEIGHT_RATIO,f=i.default.BULLET_MARKER_DETECT_PADDING,p=i.default.MAX_HEIGHT_WORD,g=function(t){function e(l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(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}(this,t.call(this,l));return n.isVertical=l.isVertical,n}return function(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,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isVertical:this.isVertical,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),l=this._makeBaseDataForMakingBound(),n={renderedItemCount:0,top:l.categoryAxisTop,left:l.categoryAxisLeft};return e.map((function(e){var r=t._makeBulletChartBound.bind(t,l,n),i=e.map(r);return t._updateIterationData(n,l.itemWidth),i}))},e.prototype._makeBaseDataForMakingBound=function(){var t=this._getSeriesDataModel().getGroupCount(),e=this.layout,l=e.dimension,n=l.width,r=l.height,i=e.position,o=i.left,a=i.top,s=void 0,u=void 0;return this.isVertical?(a+=r,s=n,u=r):(s=r,u=n),{categoryAxisTop:a,categoryAxisLeft:o,categoryAxisWidth:s,valueAxisWidth:u,itemWidth:s/t}},e.prototype._makeBulletChartBound=function(t,e,l){var n=l.type,r=void 0;return n===a?r=this._makeBarBound(l,s,t,e):n===u?r=this._makeBarBound(l,c,t,e):n===h&&(r=this._makeLineBound(l,d,t,e)),r.type=n,r},e.prototype._makeBarBound=function(t,e,l,n){var r=t.ratioDistance,i=t.endRatio,o=l.itemWidth*e,a=l.valueAxisWidth*r,s=l.valueAxisWidth*i;return this.isVertical?this._makeVerticalBarBound(n,l,o,a,s):this._makeHorizontalBarBound(n,l,o,a,s)},e.prototype._makeVerticalBarBound=function(t,e,l,n,r){return{top:t.top-r,left:t.left+(e.itemWidth-l)/2,width:l,height:n}},e.prototype._makeHorizontalBarBound=function(t,e,l,n,r){return{top:t.top+(e.itemWidth-l)/2,left:t.left+r-n,width:n,height:l}},e.prototype._makeLineBound=function(t,e,l,n){var r=l.itemWidth,i=r*e,o=l.valueAxisWidth*t.endRatio,a=f,s=f,u=void 0,c=void 0;return this.isVertical?(u=n.top-o,c=n.left+(r-i)/2,s=i):(u=n.top+(r-i)/2,c=n.left+o,a=i),{top:u,left:c,width:s,height:a,length:i}},e.prototype._updateIterationData=function(t,e){t.renderedItemCount+=1,this.isVertical?t.left+=e:t.top+=e},e.prototype._renderSeriesArea=function(t,e){n.default.prototype._renderSeriesArea.call(this,t,e),this.dataProcessor.setGraphColors(this.graphRenderer.getGraphColors())},e.prototype._renderSeriesLabel=function(t){var e=this.theme.label,l=this._getSeriesDataModel(),n=this._getLabelTexts(l),r=this._calculateLabelPositions(l,e);return this.graphRenderer.renderSeriesLabel(t,r,n,e)},e.prototype._getLabelTexts=function(t){var e=this;return t.map((function(t){var l=[];return t.each((function(t){t.type!==u&&l.push(e.decorateLabel(t.endLabel))})),l}))},e.prototype._calculateLabelPositions=function(t,e){var l=this,n=this.seriesData.groupBounds,i=r.default.getRenderedLabelHeight(p,e);return n.map((function(t){var e=[];return t.forEach((function(t){t.type!==u&&e.push(l._makePositionByBound(t,i))})),e}))},e.prototype._makePositionByBound=function(t,e){var l=t.top,n=t.left,r={};if(this.isVertical){var i=t.width||t.length;r.top=l-e,r.left=n+i/2}else{var o=t.width||0,a=t.height||t.length;r.top=l+a/2,r.left=n+5+(o||0)}return r},e}(n.default);function m(t){return t.chartType="bullet",t.libType=t.chartOptions.libType,t.chartBackground=t.chartTheme.chart.background,new g(t)}m.componentType="series",m.BulletChartSeries=g},function(t,e,l){"use strict";e.__esModule=!0,e.default=y;var n=h(l(22)),r=h(l(128)),i=h(l(23)),o=h(l(24)),a=h(l(42)),s=h(l(17)),u=h(l(80)),c=h(l(33));function h(t){return t&&t.__esModule?t:{default:t}}var d=i.default.COMPONENT_TYPE_DOM,f=i.default.MAP_CHART_ZOOM_AREA_HEIGHT,p=i.default.MAP_CHART_ZOOM_AREA_WIDTH,g=i.default.CHART_PADDING,m=n.default.msie&&n.default.version<=8,v=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.className="tui-chart-zoom-area";var l=e.seriesTypes,n=!(!l||!l.length)&&c.default.isMapChart(l[0]),r=e.dataProcessor.options.legend,i=c.default.isLegendAlignTop(r.align),o=!1!==r.visible;this.isMapLegendTop=n&&i&&o,this.eventBus=e.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=d,this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on("wheel",this.onWheel,this)},t.prototype.render=function(t){var e=void 0;if(!m){var l=a.default.sum([t.positionMap.series.top,-f,p]);this.isMapLegendTop&&(l=t.positionMap.legend.top-p);var n={top:l,right:g};(e=o.default.create("DIV",this.className)).innerHTML+=r.default.ZOOM_BUTTONS,s.default.renderPosition(e,n),this._attachEvent(e)}return e},t.prototype._findBtnElement=function(t){var e=t;return o.default.hasClass(t,"tui-chart-zoom-btn")||(e=o.default.findParentByClass(t,"tui-chart-zoom-btn")),e},t.prototype._zoom=function(t,e){this.eventBus.fire("zoomMap",t,e)},t.prototype._onClick=function(t){var e=t.target||t.srcElement,l=this._findBtnElement(e).getAttribute("data-magn"),n=this._calculateMagn(l);return n>5?this.magn=5:n<1?this.magn=1:n>=1&&this._zoom(n),t.preventDefault&&t.preventDefault(),!1},t.prototype._attachEvent=function(t){u.default.on(t,"click",this._onClick,this)},t.prototype._calculateMagn=function(t){return t>0?this.magn+=.1:t<0&&(this.magn-=.1),this.magn},t.prototype.onWheel=function(t,e){var l=this._calculateMagn(t);l>5?this.magn=5:l<1?this.magn=1:l>=1&&this._zoom(l,e)},t}();function y(t){return new v(t)}y.componentType="zoom"},function(t,e,l){"use strict";e.__esModule=!0;var n,r=l(93),i=(n=r)&&n.__esModule?n:{default:n},o={HTML_SERIES_LABEL:'
{{ label }}
',TEXT_CSS_TEXT:"left:{{ left }}px;top:{{ top }}px;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",TEXT_CSS_TEXT_FOR_LINE_TYPE:"left:{{ left }}%;top:{{ top }}%;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",HTML_ZOOM_BUTTONS:'',HTML_SERIES_BLOCK:'
{{ label }}
'};e.default={tplSeriesLabel:i.default.template(o.HTML_SERIES_LABEL),tplCssText:i.default.template(o.TEXT_CSS_TEXT),tplCssTextForLineType:i.default.template(o.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:o.HTML_ZOOM_BUTTONS,tplSeriesBlock:i.default.template(o.HTML_SERIES_BLOCK)}},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=_(l(14)),i=_(l(9)),o=_(l(15)),a=_(l(6)),s=_(l(26)),u=_(l(130)),c=_(l(23)),h=_(l(131)),d=_(l(132)),f=_(l(136)),p=_(l(138)),g=_(l(139)),m=_(l(133)),v=_(l(50)),y=_(l(33)),b=_(l(17)),w=_(l(42)),x=_(l(55));function _(t){return t&&t.__esModule?t:{default:t}}function S(t){if(Array.isArray(t)){for(var e=0,l=Array(t.length);e=e&&r<=l}))})),r},e.prototype._filterRawDataByValue=function(t,e){var l=this,r=n(e,2),i=r[0],o=r[1],a=Object.assign({},t);return Object.entries(a.series).forEach((function(t){var e=n(t,2),r=e[0],s=e[1];a.series[r]=l._filterSeriesDataByValue(s,i,o)})),a},e.prototype.updateRawDataForZoom=function(t){var e=this.getCurrentData(),l=this.getRawData(),n=this.isLineCoordinateType()?this._filterRawDataByValue.bind(this):this._filterRawDataByIndexRange.bind(this);this.zoomedRawData=n(e,t),l=n(l,t),this.initData(l)},e.prototype.initZoomedRawData=function(){this.zoomedRawData=null},e.prototype.initData=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.rawData=t,e&&(this.originalRawData=x.default.deepCopy(t),this.originalLegendData=null),this.categoriesMap=null,this.categoriesIsDateTime={},this.stacks=null,this.seriesDataModelMap={},this.legendVisibilities=null,this.zoomedRawData=null,this.seriesGroups=null,this.valuesMap={},this.legendLabels=null,this.legendData=null,this.multilineCategories=null,this.coordinateType=null,this.lineCoordinateType=null},e.prototype.getRawData=function(){return this.rawData},e.prototype.findChartType=function(t){return v.default.findChartType(this.rawData.seriesAlias,t)},e.prototype._escapeCategories=function(t){return t.map((function(t){return(0,u.default)(String(t))}))},e.prototype._mapCategories=function(t,e){var l=this,n=e+"Axis",r=this.options[n]||{},o=!1;return t=(o=(0,i.default)(r)?r.filter((function(t){return t.type&&y.default.isDatetimeType(t.type)})):r.type&&y.default.isDatetimeType(r.type))?t.map((function(t){return l.chageDatetypeToTimestamp(t)})):this._escapeCategories(t),this.categoriesIsDateTime[e]=o,t},e.prototype._processCategories=function(t){var e=this.rawData.categories,l={};return(0,i.default)(e)?l[t]=this._mapCategories(e,t):e&&(e.x&&(l.x=this._mapCategories(e.x,"x")),e.y&&(l.y=this._mapCategories(e.y,"y").reverse())),l},e.prototype.getCategories=function(t){var e=t?"y":"x",l=[];return this.categoriesMap||(this.categoriesMap=this._processCategories(e)),(0,o.default)(t)?l=this.categoriesMap[e]||[]:Object.values(this.categoriesMap).every((function(t){return l=t,!1})),l},e.prototype.getCategorieDateType=function(t){var e=t?"y":"x";return this.categoriesIsDateTime[e]},e.prototype.chageDatetypeToTimestamp=function(t){var e=new Date(t);return e.getTime()>0||(e=new Date(parseInt(t,10))),e.getTime()||t},e.prototype.getCategoryCount=function(t){var e=this.getCategories(t);return e?e.length:0},e.prototype.hasCategories=function(t){return!!this.getCategoryCount(t)},e.prototype.isXCountGreaterThanYCount=function(t){return this.getSeriesDataModel(t).isXCountGreaterThanYCount()},e.prototype.hasXValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||e},e.prototype.hasYValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||!e},e.prototype.getCategory=function(t,e){return this.getCategories(e)[t]},e.prototype.findCategoryIndex=function(t){var e=this,l=this.getCategories(),n=this.getCategorieDateType(),r=null;return l.forEach((function(l,i){return n&&(t=e.chageDatetypeToTimestamp(t)),l===t&&(r=i),(0,a.default)(r)})),r},e.prototype.findAbsoluteCategoryIndex=function(t){var e=this.originalRawData?this.originalRawData.categories:null,l=-1;return e?(e.forEach((function(e,n){var r=e===t;return r&&(l=n),!r})),l):l},e.prototype._getTooltipCategory=function(t,e){var l=this.getCategory(t,e),n=e?"yAxis":"xAxis",r=this.options[n]||{},i=this.options.tooltip||{};return y.default.isDatetimeType(i.type)?l=b.default.formatDate(l,i.dateFormat):y.default.isDatetimeType(r.type)&&(l=b.default.formatDate(l,r.dateFormat)),l},e.prototype.makeTooltipCategory=function(t,e,l){var n=!l,r=this._getTooltipCategory(t,n),i=this.getCategoryCount(!n);return i&&(r+=", "+this._getTooltipCategory(i-e-1,!n)),r},e.prototype.getStacks=function(t){return this.stacks||(this.stacks=v.default.pickStacks(this.rawData.series[t])),this.stacks},e.prototype.getStackCount=function(t){return this.getStacks(t).length},e.prototype.findStackIndex=function(t){return(0,s.default)(t,this.getStacks())},e.prototype.isLineCoordinateType=function(){var t=this.lineCoordinateType;if(!(0,o.default)(t)){var e=this.chartType;t=y.default.isLineTypeChart(e)&&!this.hasCategories(),this.lineCoordinateType=t}return t},e.prototype.isCoordinateType=function(){var t=this.coordinateType;if(!(0,o.default)(t)){var e=this.chartType;t=(t=(t=y.default.isCoordinateTypeChart(e))||y.default.isLineScatterComboChart(e,this.seriesTypes))||y.default.isLineTypeChart(e)&&!this.hasCategories(),this.coordinateType=t}return t},e.prototype.getSeriesDataModel=function(t){if(!this.seriesDataModelMap[t]){var e=this.findChartType(t),l=this.rawData.series[t],n=void 0;n=y.default.isBoxplotChart(this.chartType)?f.default:y.default.isTreemapChart(this.chartType)?g.default:y.default.isBulletChart(this.chartType)?p.default:d.default,this.seriesDataModelMap[t]=new n(l,e,this.options,this.getFormatFunctions(),this.isCoordinateType())}return this.seriesDataModelMap[t]},e.prototype.getOption=function(t){return this.options[t]},e.prototype.getGroupCount=function(t){return this.getSeriesDataModel(t).getGroupCount()},e.prototype._pushCategory=function(t){this.rawData.categories&&(this.rawData.categories.push(t),this.originalRawData.categories.push(t))},e.prototype._shiftCategory=function(){this.rawData.categories&&(this.rawData.categories.shift(),this.originalRawData.categories.shift())},e.prototype._findRawSeriesDatumByName=function(t,e){var l=this.rawData.series[e],n=null;return l.forEach((function(e){var l=e.name===t;return l&&(n=e),!l})),n},e.prototype._pushValue=function(t,e,l){var n=this._findRawSeriesDatumByName(t.name,l);t.data.push(e),n&&n.data.push(e)},e.prototype._pushValues=function(t,e,l){var n=this;t.forEach((function(t,r){n._pushValue(t,e[r],l)}))},e.prototype._pushSeriesData=function(t){var e=this;if("combo"!==this.chartType&&(0,i.default)(t)){var l=t;(t={})[this.chartType]=l}Object.entries(this.originalRawData.series).forEach((function(l){var r=n(l,2),i=r[0],o=r[1];e._pushValues(o,t[i],i)}))},e.prototype._shiftValues=function(t,e){var l=this;t.forEach((function(t){var n=l._findRawSeriesDatumByName(t.name,e);t.data.shift(),n&&n.data.shift()}))},e.prototype._shiftSeriesData=function(){var t=this;Object.entries(this.originalRawData.series).forEach((function(e){var l=n(e,2),r=l[0],i=l[1];t._shiftValues(i,r)}))},e.prototype.addDynamicData=function(t,e){this.dynamicData.push({category:t,values:e})},e.prototype._pushDynamicData=function(t){this._pushCategory(t.category),this._pushSeriesData(t.values)},e.prototype._pushDynamicDataForCoordinateType=function(t){var e=this;Object.values(this.originalRawData.series).forEach((function(l){e._pushValue(l,t[l.name])}))},e.prototype.addDataFromDynamicData=function(){var t=this.dynamicData.shift();return t&&(this.isCoordinateType()?this._pushDynamicDataForCoordinateType(t.values):this._pushDynamicData(t),this.initData(this.rawData)),!!t},e.prototype.shiftData=function(){this._shiftCategory(),this._shiftSeriesData(),this.initData(this.rawData)},e.prototype.addDataFromRemainDynamicData=function(t){var e=this,l=this.dynamicData;this.dynamicData=[],l.forEach((function(l){e._pushCategory(l.category),e._pushSeriesData(l.values),t&&(e._shiftCategory(),e._shiftSeriesData())})),this.initData(this.rawData)},e.prototype._eachByAllSeriesDataModel=function(t){var e=this;(this.seriesTypes||[this.chartType]).forEach((function(l){return t(e.getSeriesDataModel(l),l)}))},e.prototype.isValidAllSeriesDataModel=function(){var t=!0;return this._eachByAllSeriesDataModel((function(e){t=!!e.getGroupCount()})),t},e.prototype._makeSeriesGroups=function(){var t=[];return this._eachByAllSeriesDataModel((function(e){e.each((function(e,l){t[l]||(t[l]=[]),t[l]=t[l].concat(e.items)}))})),t.map((function(t){return new m.default(t)}))},e.prototype.getSeriesGroups=function(){return this.seriesGroups||(this.seriesGroups=this._makeSeriesGroups()),this.seriesGroups},e.prototype.getValue=function(t,e,l){return this.getSeriesDataModel(l).getValue(t,e)},e.prototype.getDefaultDatetimeValues=function(){var t=Date.now();return[t-36e5,t]},e.prototype.isSeriesDataEmpty=function(t){var e=this.rawData,l=e&&!e.series;return!e||l||!e.series[t]||e.series[t]&&!e.series[t].length},e.prototype.isLimitOptionsEmpty=function(t){var e=this.options[t]||{};return(0,r.default)(e.min)&&(0,r.default)(e.max)},e.prototype.isLimitOptionsInsufficient=function(t){var e=this.options[t]||{};return(0,r.default)(e.min)||(0,r.default)(e.max)},e.prototype._createValues=function(t,e,l){var n=void 0,r=this.options,i=r.plot,o=r[l]||{},a=o.type,s=this.isSeriesDataEmpty(t),u=this.isLimitOptionsEmpty(l),c=this.isLimitOptionsInsufficient(l),h=y.default.isLineChart(t)||y.default.isAreaChart(t)||y.default.isLineAreaComboChart(t,this.seriesTypes),d=this.defaultValues;if(y.default.isComboChart(t))n=[],this._eachByAllSeriesDataModel((function(t){n=n.concat(t.getValues(e))}));else if(s&&c)if(!u&&c&&(d=d.concat([o.min||o.max])),"x"===e&&"datetime"===a){if(n=this.getDefaultDatetimeValues(),h&&i){var f=this.getValuesFromPlotOptions(i,a);n=n.concat(f)}}else n=d;else n=this.getSeriesDataModel(t).getValues(e);return n},e.prototype.getValuesFromPlotOptions=function(t,e){var l=[];return t.lines&&t.lines.forEach((function(t){l.push("datetime"!==e?t.value:new Date(t.value))})),t.bands&&t.bands.forEach((function(t){var n=t.range.map((function(t){return"datetime"!==e?t:new Date(t)}));l=l.concat(n)})),l},e.prototype.getValues=function(t,e,l){var n=t+e;return this.valuesMap[n]||(this.valuesMap[n]=this._createValues(t,e,l)),this.valuesMap[n]},e.prototype.eachBySeriesGroup=function(t,e){this._eachByAllSeriesDataModel((function(l,n){l.each((function(e,l){t(e,l,n)}),e)}))},e.prototype._pickLegendLabel=function(t){return t.name?(0,u.default)(t.name):null},e.prototype._isVisibleLegend=function(t){var e=!0;return(0,o.default)(t.visible)&&!1===t.visible&&(e=!1),e},e.prototype._pickLegendData=function(t){var e=this.rawData.series,l={},r=void 0;return"visibility"===t?r=this._isVisibleLegend:"label"===t&&(r=this._pickLegendLabel),r&&Object.entries(e).forEach((function(t){var e=n(t,2),i=e[0],a=e[1].map(r);(0,o.default)(a)&&(l[i]=a)})),l},e.prototype.getLegendLabels=function(t){return this.legendLabels||(this.legendLabels=this._pickLegendData("label")),this.legendLabels[t]||this.legendLabels},e.prototype.getLegendVisibility=function(t){return this.legendVisibilities||(this.legendVisibilities=this._pickLegendData("visibility")),this.legendVisibilities[t]||this.legendVisibilities},e.prototype._makeLegendData=function(){var t,e=this.getLegendLabels(this.chartType),l=this.getLegendVisibility(),n=this.seriesTypes||[this.chartType],r=void 0;(0,i.default)(e)?(r=[this.chartType])[this.chartType]=e:(n=this.seriesTypes,r=e);var o=n.map((function(t){return r[t].map((function(e,n){var r=(0,i.default)(l[t]);return{chartType:t,label:e,visible:r?l[t][n]:l[n]}}))}));return(t=[]).concat.apply(t,S(o))},e.prototype.getLegendData=function(){return this.legendData||(this.legendData=this._makeLegendData()),this.originalLegendData||(this.originalLegendData=this.legendData),this.legendData},e.prototype.getOriginalLegendData=function(){return this.originalLegendData},e.prototype.getLegendItem=function(t){return this.getLegendData()[t]},e.prototype.getFirstItemLabel=function(t){return this.getSeriesDataModel(t).getFirstItemLabel()},e.prototype.addDataRatiosOfPieChart=function(t){this.getSeriesDataModel(t).addDataRatiosOfPieChart()},e.prototype.addDataRatiosForCoordinateType=function(t,e,l){y.default.isLineTypeChart(t)&&this._addStartValueToAllSeriesItem(e.yAxis,t),this.getSeriesDataModel(t).addDataRatiosForCoordinateType(e,l)},e.prototype._addStartValueToAllSeriesItem=function(t,e){var l=0;t.min>=0?l=t.min:t.max<=0&&(l=t.max),this.getSeriesDataModel(e).addStartValueToAllSeriesItem(l)},e.prototype.addDataRatios=function(t,e,l){var n=this.getSeriesDataModel(l);this._addStartValueToAllSeriesItem(t,l),n.addDataRatios(t,e)},e.prototype.addDataRatiosForTreemapChart=function(t,e){this.getSeriesDataModel(e).addDataRatios(t)},e.prototype._createBaseValuesForNormalStackedChart=function(t){var e=this.getSeriesDataModel(t),l=[];return e.each((function(t){var e=t._makeValuesMapPerStack();Object.values(e).forEach((function(t){var e=w.default.sumPlusValues(t),n=w.default.sumMinusValues(t);l=l.concat([e,n])}))})),l},e.prototype.createBaseValuesForLimit=function(t,e,l,n,r){var i=void 0;return y.default.isComboChart(this.chartType)&&e?(i=this.getValues(this.chartType,n),y.default.isNormalStackChart(t,l)&&(i=i.concat(this._createBaseValuesForNormalStackedChart(t)))):i=y.default.isTreemapChart(t)?this.getValues(t,"colorValue"):y.default.isNormalStackChart(t,l)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,n,r),i},e.prototype.findOverflowItem=function(t,e){var l=this.getSeriesDataModel(t),n=l.getMaxValue("r"),r=function(t){return t.r/n>c.default.HALF_RATIO};return{minItem:l.findMinSeriesItem(e,r),maxItem:l.findMaxSeriesItem(e,r)}},e.prototype.setGraphColors=function(t){this.graphColors=t},e.prototype.getGraphColors=function(){return this.graphColors},e.prototype.isComboDonutShowOuterLabel=function(){var t=this.options.series;return t&&t.pie2&&"outer"===t.pie2.labelAlign},e}(h.default);e.default=M},function(t,e){"use strict";t.exports=function(t){var e={'"':"quot","&":"amp","<":"lt",">":"gt","'":"#39"};return t.replace(/[<>&"']/g,(function(t){return e[t]?"&"+e[t]+";":t}))}},function(t,e,l){"use strict";e.__esModule=!0;var n=u(l(56)),r=u(l(25)),i=u(l(21)),o=u(l(27)),a=u(l(17)),s=u(l(42));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.baseInit=function(){this.formatFunctions=null},t.prototype.getValues=function(){},t.prototype.getCurrentData=function(){},t.prototype.getMaxValue=function(t,e){return o.default.max(this.getValues(t,e))},t.prototype.getMinValue=function(t,e){return o.default.min(this.getValues(t,e))},t.prototype.getFormattedMaxValue=function(t,e,l){var n=this.getMaxValue(t,l),r=this.getFormatFunctions();return a.default.formatValue({value:n,formatFunctions:r,chartType:t,areaType:e,valueType:l})},t.prototype.getFormattedMinValue=function(t,e,l){var n=this.getMinValue(t,l),r=this.getFormatFunctions();return a.default.formatValue({value:n,formatFunctions:r,chartType:t,areaType:e,valueType:l})},t.prototype._pickMaxLenUnderPoint=function(t){var e=0;return t.forEach((function(t){var l=s.default.getDecimalLength(t);l>e&&(e=l)})),e},t.prototype._isZeroFill=function(t){return t.length>2&&"0"===t.charAt(0)},t.prototype._isDecimal=function(t){var e=t.indexOf(".");return e>-1&&e-1},t.prototype._formatToZeroFill=function(t,e){return(e<0?"-":"")+(e=a.default.formatToZeroFill(Math.abs(e),t))},t.prototype._formatToDecimal=function(t,e){return a.default.formatToDecimal(e,t)},t.prototype._findSimpleTypeFormatFunctions=function(t){var e=[],l=void 0;if(this._isDecimal(t))l=this._pickMaxLenUnderPoint([t]),e=[this._formatToDecimal.bind(this,l)];else if(this._isZeroFill(t))return l=t.length,e=[this._formatToZeroFill.bind(this,l)];return this._isComma(t)&&e.push(a.default.formatToComma),e},t.prototype._findFormatFunctions=function(){var t=(0,i.default)(this.options,"chart","format"),e=[];return(0,n.default)(t)?e=[t]:(0,r.default)(t)&&(e=this._findSimpleTypeFormatFunctions(t)),e},t.prototype.getFormatFunctions=function(){return this.formatFunctions||(this.formatFunctions=this._findFormatFunctions()),this.formatFunctions},t}();e.default=c},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=f(l(9)),i=f(l(15)),o=f(l(21)),a=f(l(133)),s=f(l(134)),u=f(l(135)),c=f(l(33)),h=f(l(42)),d=f(l(27));function f(t){return t&&t.__esModule?t:{default:t}}var p=Array.prototype.concat,g=function(){function t(e,l,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.chartType=l,this.options=n||{},this.formatFunctions=r,this.rawSeriesData=e||[],this.isCoordinateType=i,this.baseGroups=null,this.groups=null,this.options.series=this.options.series||{},this.isDivergingChart=c.default.isDivergingChart(l,this.options.series.diverging),this.valuesMap={},this._removeRangeValue()}return t.prototype._removeRangeValue=function(){var t=(0,o.default)(this.options,"series")||{};c.default.isAllowRangeData(this.chartType)&&!c.default.isValidStackOption(t.stack)&&!t.spline||this.isCoordinateType||Object.values(this.rawSeriesData).forEach((function(t){(0,r.default)(t.data)&&t.data.forEach((function(e,l){if((0,i.default)(e)){var r=p.apply(e),o=n(r,1);t.data[l]=o[0]}}))}))},t.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,l=this.isDivergingChart,n=this.isCoordinateType,o=this.options.xAxis,a=c.default.isPieChart(this.chartType),h=c.default.isHeatmapChart(this.chartType)||c.default.isTreemapChart(this.chartType),d=void 0,f=void 0;return n?(f=u.default,d=function(t){t.sort((function(t,e){return t.x-e.x}))}):(f=s.default,d=function(){}),this.rawSeriesData.map((function(s){var u=void 0,c=void 0,p=void 0;c=(0,r.default)(s)?s:[].concat(s.data),h||(u=s.stack),s.name&&(p=s.name),(n||a)&&(c=c.filter(i.default));var g=c.map((function(n,r){return new f({datum:n,chartType:t,formatFunctions:e,index:r,legendName:p,stack:u,isDivergingChart:l,xAxisType:o.type,dateFormat:o.dateFormat})}));return d(g),g}))},t.prototype._getBaseGroups=function(){return this.baseGroups||(this.baseGroups=this._createBaseGroups()),this.baseGroups},t.prototype._createSeriesGroupsFromRawData=function(t){var e=this._getBaseGroups();return t&&(e=d.default.pivot(e)),e.map((function(t){return new a.default(t)}))},t.prototype._getSeriesGroups=function(){return this.groups||(this.groups=this._createSeriesGroupsFromRawData(!0)),this.groups},t.prototype.getGroupCount=function(){return this._getSeriesGroups().length},t.prototype._getPivotGroups=function(){return this.pivotGroups||(this.pivotGroups=this._createSeriesGroupsFromRawData()),this.pivotGroups},t.prototype.getSeriesGroup=function(t,e){return e?this._getPivotGroups()[t]:this._getSeriesGroups()[t]},t.prototype.getFirstSeriesGroup=function(t){return this.getSeriesGroup(0,t)},t.prototype.getFirstItemLabel=function(){return this.getFirstSeriesGroup().getFirstSeriesItem().label},t.prototype.getSeriesItem=function(t,e,l){return this.getSeriesGroup(t,l).getSeriesItem(e)},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0,0)},t.prototype.getValue=function(t,e){return this.getSeriesItem(t,e).value},t.prototype.getMinValue=function(t){return d.default.min(this.getValues(t))},t.prototype.getMaxValue=function(t){return d.default.max(this.getValues(t))},t.prototype._findSeriesItem=function(t){var e=void 0;return this.each((function(l){return!(e=l.find(t))})),e},t.prototype._findSeriesItemByValue=function(t,e,l){return l=l||function(){return null},this._findSeriesItem((function(n){return n&&n[t]===e&&l(n)}))},t.prototype.findMinSeriesItem=function(t,e){var l=this.getMinValue(t);return this._findSeriesItemByValue(t,l,e)},t.prototype.findMaxSeriesItem=function(t,e){var l=this.getMaxValue(t);return this._findSeriesItemByValue(t,l,e)},t.prototype._createValues=function(t){var e,l=this.map((function(e){return e.getValues(t)}));return(l=(e=[]).concat.apply(e,function(t){if(Array.isArray(t)){for(var e=0,l=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"value";return this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype.isXCountGreaterThanYCount=function(){return this.getValues("x").length>this.getValues("y").length},t.prototype._addRatiosWhenNormalStacked=function(t){var e=Math.abs(t.max-t.min);this.each((function(t){t.addRatios(e)}))},t.prototype._calculateBaseRatio=function(){var t=this.getValues(),e=h.default.sumPlusValues(t),l=Math.abs(h.default.sumMinusValues(t));return e>0&&l>0?.5:1},t.prototype._addRatiosWhenPercentStacked=function(){var t=this._calculateBaseRatio();this.each((function(e){e.addRatiosWhenPercentStacked(t)}))},t.prototype._addRatiosWhenDivergingStacked=function(){this.each((function(t){var e=t.pluck("value"),l=h.default.sumPlusValues(e),n=Math.abs(h.default.sumMinusValues(e));t.addRatiosWhenDivergingStacked(l,n)}))},t.prototype._makeSubtractionValue=function(t){var e=c.default.allowMinusPointRender(this.chartType),l=0;return!e&&c.default.isMinusLimit(t)?l=t.max:(e||t.min>=0)&&(l=t.min),l},t.prototype._addRatios=function(t){var e=Math.abs(t.max-t.min),l=this._makeSubtractionValue(t);this.each((function(t){t.addRatios(e,l)}))},t.prototype.addDataRatios=function(t,e){var l=c.default.isAllowedStackOption(this.chartType);l&&c.default.isNormalStack(e)?this._addRatiosWhenNormalStacked(t):l&&c.default.isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},t.prototype.addDataRatiosOfPieChart=function(){this.each((function(t){var e=h.default.sum(t.pluck("value"));t.addRatios(e)}))},t.prototype.addDataRatiosForCoordinateType=function(t,e){var l=t.xAxis,n=t.yAxis,r=e?d.default.max(this.getValues("r")):0,o=void 0,a=void 0,s=void 0,u=void 0;l&&(o=Math.abs(l.max-l.min),a=this._makeSubtractionValue(l)),n&&(s=Math.abs(n.max-n.min),u=this._makeSubtractionValue(n)),this.each((function(t){t.each((function(t){t&&(t.addRatio("x",o,a),t.addRatio("y",s,u),t.addRatio("r",r,0),(0,i.default)(t.start)&&t.addRatio("start",s,u))}))}))},t.prototype.addStartValueToAllSeriesItem=function(t){this.each((function(e){e.addStartValueToAllSeriesItem(t)}))},t.prototype.hasRangeData=function(){var t=!1;return this.each((function(e){return t=e.hasRangeData(),!t})),t},t.prototype.each=function(t,e){(e?this._getPivotGroups():this._getSeriesGroups()).forEach((function(e,l){return t(e,l)}))},t.prototype.map=function(t,e){var l=[];return this.each((function(e,n){l.push(t(e,n))}),e),l},t}();e.default=g},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=a(l(15)),i=a(l(58)),o=a(l(42));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.items=e,this.valuesMap={},this.valuesMapPerStack=null}return t.prototype.getSeriesItemCount=function(){return this.items.length},t.prototype.getSeriesItem=function(t){return this.items[t]},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0)},t.prototype._createValues=function(t){var e=[];return this.each((function(l){l&&((0,r.default)(l[t])&&e.push(l[t]),(0,r.default)(l.start)&&e.push(l.start))})),e},t.prototype.getValues=function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype._makeValuesMapPerStack=function(){var t={};return this.each((function(e){t[e.stack]||(t[e.stack]=[]),t[e.stack].push(e.value)})),t},t.prototype.getValuesMapPerStack=function(){return this.valuesMapPerStack||(this.valuesMapPerStack=this._makeValuesMapPerStack()),this.valuesMapPerStack},t.prototype._makeSumMapPerStack=function(){var t=this.getValuesMapPerStack(),e={};return Object.entries(t).forEach((function(t){var l=n(t,2),r=l[0],i=l[1];e[r]=o.default.sum(i.map((function(t){return Math.abs(t)})))})),e},t.prototype.addStartValueToAllSeriesItem=function(t){this.each((function(e){e&&e.addStart(t)}))},t.prototype.addRatiosWhenPercentStacked=function(t){var e=this._makeSumMapPerStack();this.each((function(l){var n=e[l.stack];l.addRatio(n,0,t)}))},t.prototype.addRatiosWhenDivergingStacked=function(t,e){this.each((function(l){var n=l.value>=0?t:e;l.addRatio(n,0,.5)}))},t.prototype.addRatios=function(t,e){this.each((function(l){l&&l.addRatio(t,e)}))},t.prototype.hasRangeData=function(){var t=!1;return this.each((function(e){return t=e&&e.isRange,!t})),t},t.prototype.each=function(t){this.items.forEach(t)},t.prototype.map=function(t){return this.items.map(t)},t.prototype.pluck=function(t){var e=this.items.filter(r.default);return(0,i.default)(e,t)},t.prototype.find=function(t){var e=void 0;return this.each((function(l){return t(l)&&(e=l),!e})),e||null},t.prototype.filter=function(t){return this.items.filter(t)},t}();e.default=s},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=c(l(15)),i=c(l(6)),o=c(l(23)),a=c(l(17)),s=c(l(42)),u=c(l(33));function c(t){return t&&t.__esModule?t:{default:t}}var h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.chartType=e.chartType,this.stack=e.stack||o.default.DEFAULT_STACK,this.isDivergingChart=e.isDivergingChart,this.formatFunctions=e.formatFunctions,this.isRange=!1,this.value=null,this.label=null,this.tooltipLabel=null,this.ratio=null,this.end=null,this.endLabel=null,this.endRatio=null,this.start=null,this.startLabel=null,this.startRatio=null,this.ratioDistance=null,u.default.isBulletChart(this.chartType)&&(this.type=e.type),this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var l=this,r=this._createValues(t),o=r.length>1,s=n(r,1)[0];this.value=this.end=s,this.index=e,this.isDivergingChart&&(s=Math.abs(s)),(0,i.default)(s)?this._setLabel(""):["label","tooltipLabel"].forEach((function(t){l[t]=a.default.formatValue({value:s,formatFunctions:l.formatFunctions,chartType:l.chartType,areaType:"tooltipLabel"===t?"makingTooltipLabel":"makingSeriesLabel",legendName:l.legendName})})),this.endLabel=this.label,o&&(this.addStart(r[1],!0),this._updateFormattedValueforRange(),this.isRange=!0)},t.prototype._setLabel=function(t){this.label=t,this.tooltipLabel=t},t.prototype._createValues=function(t){var e=[].concat(t).map((function(t){return(0,i.default)(t)?null:parseFloat(t)}));return e=e.sort((function(t,e){return t<0&&e<0?t-e:e-t}))},t.prototype.addStart=function(t){(0,i.default)(this.start)&&(this.start=t,this.startLabel=a.default.formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this._setLabel(this.startLabel+" ~ "+this.endLabel)},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.ratio=this.endRatio=s.default.calculateRatio(this.value,t,e,l),(0,r.default)(this.start)&&(this.startRatio=s.default.calculateRatio(this.start,t,e,l),this.ratioDistance=Math.abs(this.endRatio-this.startRatio))},t.prototype._getFormattedValueForTooltip=function(t){return a.default.formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return(0,r.default)(this.start)&&(t.start=this._getFormattedValueForTooltip("start"),t.end=this._getFormattedValueForTooltip("end"),t.startRatio=this.startRatio,t.endRatio=this.endRatio),t},t}();e.default=h},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=c(l(9)),i=c(l(18)),o=c(l(15)),a=c(l(19)),s=c(l(33)),u=c(l(17));function c(t){return t&&t.__esModule?t:{default:t}}var h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.ratioMap={},this._initData(e.datum,e.index)}return t.prototype._initData=function(t,e){var l=void 0;if((0,r.default)(t))if(this.x=t[0]||0,this.y=t[1]||0,s.default.isBubbleChart(this.chartType)){var o=n(t,4);this.r=o[2];var a=o[3];this.label=void 0===a?"":a}else{var c=n(t,3)[2];this.label=void 0===c?"":c}else this.x=t.x,this.y=t.y,this.r=t.r,this.label=t.label||"";if(s.default.isDatetimeType(this.xAxisType)&&(l=(0,i.default)(this.x)?this.x:new Date(this.x),this.x=l.getTime()||0),this.index=e,!this.label){s.default.isLineTypeChart(this.chartType)&&s.default.isDatetimeType(this.xAxisType)?this.label=u.default.formatDate(this.x,this.dateFormat):this.label=u.default.formatValue({value:this.x,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});var h=u.default.formatValue({value:this.y,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});this.label+=", "+h}},t.prototype.addStart=function(t){this.start=t},t.prototype.addRatio=function(t,e,l){!(0,o.default)(this.ratioMap[t])&&e&&(this.ratioMap[t]=(this[t]-l)/e)},t.prototype._getFormattedValueForTooltip=function(t){var e=this.ratioMap[t],l=this[t],n=u.default.formatValue({value:l,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t});return(0,a.default)(e)?n:l},t.prototype.pickValueMapForTooltip=function(){var t={x:this._getFormattedValueForTooltip("x"),y:this._getFormattedValueForTooltip("y"),xRatio:this.ratioMap.x,yRatio:this.ratioMap.y};return(0,o.default)(this.r)&&(t.r=this._getFormattedValueForTooltip("r"),t.rRatio=this.ratioMap.r),t},t}();e.default=h},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(137)),r=o(l(132)),i=o(l(9));function o(t){return t&&t.__esModule?t:{default:t}}var a=Array.prototype.concat,s=function(t){function e(l,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(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}(this,t.call(this));return o.chartType=n,o.options=r||{},o.formatFunctions=i,o.rawSeriesData=l||[],o.baseGroups=null,o.groups=null,o.options.series=o.options.series||{},o.valuesMap={},o}return function(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,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions;return this.rawSeriesData.map((function(l){return((0,i.default)(l)?l:[].concat(l.data)).map((function(r,i){return new n.default({datum:r,chartType:t,formatFunctions:e,index:i,legendName:l.name})}))}))},e.prototype._createValues=function(){var t=[];return this.map((function(e){return e.items.forEach((function(e){t.push(e.min),t.push(e.max),t.push(e.uq),t.push(e.lq),t.push(e.median)}))})),(t=a.apply([],t)).filter((function(t){return!isNaN(t)}))},e}(r.default);e.default=s},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=s(l(15)),i=s(l(6)),o=s(l(17)),a=s(l(42));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.value=null,this.label=null,this.ratio=null,this.min=null,this.minLabel=null,this.minRatio=null,this.max=null,this.maxLabel=null,this.maxRatio=null,this.median=null,this.medianLabel=null,this.medianRatio=null,this.lq=null,this.lqLabel=null,this.lqRatio=null,this.uq=null,this.uqLabel=null,this.uqRatio=null,this.ratioDistance=null,this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var l=this,r=this._createValues(t),i=n(r,5),a=i[0],s=i[1],u=i[2],c=i[3],h=i[4],d=r.length>5,f=void 0,p=function(t){return o.default.formatValue({value:t,formatFunctions:l.formatFunctions,chartType:l.chartType,areaType:"makingSeriesLabel",legendName:l.legendName})};this.value=this.max=h,this.uq=c,this.median=u,this.lq=s,this.min=a,this.index=e,d&&(this.outliers=[],f=this.outliers,r.slice(5).forEach((function(t){f.push({value:t,label:p(t)})}))),this.label=p(h),this.uqLabel=p(c),this.medianLabel=p(u),this.lqLabel=p(s),this.minLabel=p(a),this.maxLabel=this.label},t.prototype._createValues=function(t){return[].concat(t).map((function(t){return(0,i.default)(t)?null:parseFloat(t)}))},t.prototype.addStart=function(t){(0,i.default)(this.min)&&(this.min=t,this.minLabel=o.default.formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.minLabel+"~"+this.maxLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=a.default.calculateRatio;this.ratio=this.maxRatio=n(this.max,t,e,l),this.uqRatio=n(this.uq,t,e,l),this.medianRatio=n(this.median,t,e,l),this.lqRatio=n(this.lq,t,e,l),this.minRatio=n(this.min,t,e,l),(this.outliers||[]).forEach((function(r){r.ratio=n(r.value,t,e,l)})),this.ratioDistance=Math.abs(this.uqRatio-this.lqRatio)},t.prototype._getFormattedValueForTooltip=function(t){return o.default.formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return(0,r.default)(this.min)&&(t.min=this._getFormattedValueForTooltip("min"),t.max=this._getFormattedValueForTooltip("max"),t.minRatio=this.minRatio,t.maxRatio=this.maxRatio,t.maxLabel=this.maxLabel,t.minLabel=this.minLabel,t.uqLabel=this.uqLabel,t.lqLabel=this.lqLabel,t.medianLabel=this.medianLabel,t.outliers=this.outliers),t},t}();e.default=u},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(134)),r=o(l(132)),i=o(l(23));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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}var u=function(t){function e(){return a(this,e),s(this,t.apply(this,arguments))}return function(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,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,l=0,r=0,o=this.rawSeriesData.map((function(o){var a=[],s=o.data,u=o.markers,c=o.ranges,h=u.length,d=c.length;return c&&d&&(c.forEach((function(l){a.push(new n.default({datum:l,chartType:t,formatFunctions:e,type:i.default.BULLET_TYPE_RANGE}))})),l=Math.max(l,d)),s&&a.push(new n.default({datum:s,chartType:t,formatFunctions:e,type:i.default.BULLET_TYPE_ACTUAL})),u&&h&&(u.forEach((function(l){a.push(new n.default({datum:l,chartType:t,formabutFunctions:e,type:i.default.BULLET_TYPE_MARKER}))})),r=Math.max(r,h)),a}));return this.maxMarkerCount=r,this.maxRangeCount=l,o},e.prototype._createSeriesGroupsFromRawData=function(){return r.default.prototype._createSeriesGroupsFromRawData.call(this)},e}(r.default);e.default=u},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=d(l(58)),i=d(l(15)),o=d(l(6)),a=d(l(14)),s=d(l(132)),u=d(l(140)),c=d(l(23)),h=d(l(42));function d(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(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}var g=function(t){function e(){f(this,e);for(var l=arguments.length,n=Array(l),r=0;r1&&(n+=e.slice(1).join("_")),n},e.prototype._isValidGroup=function(t,e){return!(0,i.default)(e)||t===e},e.prototype.findSeriesItemsByDepth=function(t,e){var l=this,n=this._makeCacheKey(c.default.TREEMAP_DEPTH_KEY_PREFIX,t,e);return this._findSeriesItems(n,(function(n){return n.depth===t&&l._isValidGroup(n.group,e)}))},e.prototype.findSeriesItemsByParent=function(t){var e=this._makeCacheKey(c.default.TREEMAP_PARENT_KEY_PREFIX,t);return this._findSeriesItems(e,(function(e){return e.parent===t}))},e.prototype.findLeafSeriesItems=function(t){var e=this,l=this._makeCacheKey(c.default.TREEMAP_LEAF_KEY_PREFIX,t);return this._findSeriesItems(l,(function(l){return!l.hasChild&&e._isValidGroup(l.group,t)}))},e.prototype.findParentByDepth=function(t,e){var l=this.seriesItemMap[t]||null;return l&&l.depth!==e&&(l=this.findParentByDepth(l.parent,e)),l},e.prototype.initSeriesItemsMap=function(){this.foundSeriesItemsMap=null},e}(s.default);e.default=g},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(42)),r=o(l(17)),i=o(l(15));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(){function t(e,l,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.chartType=n,this.formatFunctions=l,this.id=e.id,this.parent=e.parent,this.value=e.value,this.ratio=e.ratio,this.colorValue=e.colorValue,this.depth=e.depth,this.label=e.label||"",this.group=e.group,this.hasChild=!!e.hasChild,this.indexes=e.indexes,this.fillOpacity=e.fillOpacity}return t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.colorRatio=n.default.calculateRatio(this.colorValue,t,e,1)||-1},t.prototype.pickValueMapForTooltip=function(){var t=this.formatFunctions,e=this.chartType,l=this.colorValue,n=r.default.formatValue({value:this.value,formatFunctions:t,chartType:e,areaType:"tooltipValue"}),o=n,a={legend:this.label||"",value:n,label:o,ratio:this.ratio,tooltipColorIndex:this.indexes[0]};return(0,i.default)(l)&&(a.colorValue=r.default.formatValue({value:l,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),a.colorRatio=this.colorRatio),a},t.prototype.pickLabelTemplateData=function(){var t={value:this.value,ratio:this.ratio,label:this.label};return(0,i.default)(this.colorValue)&&(t.colorValue=this.colorValue,t.colorValueRatio=this.ratio),t},t}();e.default=a},function(t,e,l){"use strict";e.__esModule=!0;var n=a(l(142)),r=a(l(148)),i=a(l(23)),o=a(l(33));function a(t){return t&&t.__esModule?t:{default:t}}e.default={_createBoundsModel:function(t,e){return new n.default({chartType:e.chartType,seriesTypes:e.seriesTypes,options:e.options,theme:e.theme,dataProcessor:t,hasAxes:e.hasAxes,isVertical:e.isVertical})},_createScaleDataModel:function(t,e,l){return new r.default({chartType:l.chartType,seriesTypes:l.seriesTypes,options:l.options,theme:l.theme,dataProcessor:t,boundsModel:e,hasRightYAxis:l.hasRightYAxis,addedDataCount:l.addedDataCount})},addYAxisScale:function(t,e,l,n){t.addScale(e,l&&l.options||n||{},{valueType:l.valueType||"value",areaType:l.areaType,chartType:l.chartType},l.additionalOptions)},_registerYAxisDimension:function(t,e,l,n,r){var i=t.get(n),o=null,a=[];if(i){var s=l[n];s&&(o=s.limit,a=s.labels),e.registerYAxisDimension({limit:o,axisName:n,options:i.options,theme:i.theme,yAxisLabels:a,isVertical:r})}},_setLayoutBoundsAndScale:function(t,e,l,n,r){var a=r.options,s=r.scaleOption,u=void 0===s?{}:s,c=r.addingDataMode,h=r.isVertical;e.has("xAxis")&&l.registerXAxisHeight(),e.has("legend")&&(e.get("legend").colorSpectrum?l.registerSpectrumLegendDimension():l.registerLegendDimension()),u.yAxis&&this.addYAxisScale(n,"yAxis",u.yAxis,r.options.yAxis),u.rightYAxis&&this.addYAxisScale(n,"rightYAxis",u.rightYAxis),u.legend&&n.addScale("legend",{},{chartType:r.chartType},{tickCounts:[i.default.SPECTRUM_LEGEND_TICK_COUNT]});var d=n.scaleDataMap;d.legend&&e.get("legend")&&e.get("legend").colorSpectrum&&l.registerSpectrumLegendDimension(d.legend.limit),this._registerYAxisDimension(e,l,d,"yAxis",h),this._registerYAxisDimension(e,l,d,"rightYAxis",h),u.xAxis&&n.addScale("xAxis",a.xAxis,{valueType:u.xAxis.valueType||"value"},u.xAxis.additionalOptions),r.hasAxes&&n.setAxisDataMap(),l.registerSeriesDimension(),e.has("circleLegend")&&a.circleLegend.visible&&l.registerCircleLegendDimension(n.axisDataMap),e.has("xAxis")&&(o.default.isAutoTickInterval(a.xAxis.tickInterval)&&n.updateXAxisDataForAutoTickInterval(r.prevXAxisData,c),n.updateXAxisDataForLabel(c)),l.registerBoundsData(n.axisDataMap.xAxis)},build:function(t,e,l){var n=this._createBoundsModel(t,l),r=this._createScaleDataModel(t,n,l);this._setLayoutBoundsAndScale(t,e,n,r,l);var i={dimensionMap:n.dimensionMap,positionMap:n.positionMap,limitMap:r.makeLimitMap(l.seriesTypes||[l.chartType],l.isVertical)};return r.axisDataMap&&(i.axisDataMap=r.axisDataMap),o.default.isBubbleChart(l.chartType)&&(i.maxRadius=n.calculateMaxRadius(r.axisDataMap)),r.scaleDataMap.legend&&(i.legendScaleData=r.scaleDataMap.legend),i}}},function(t,e,l){"use strict";e.__esModule=!0;var n=m(l(22)),r=m(l(9)),i=m(l(15)),o=m(l(58)),a=m(l(23)),s=m(l(33)),u=m(l(17)),c=m(l(12)),h=m(l(143)),d=m(l(144)),f=m(l(145)),p=m(l(146)),g=m(l(147));function m(t){return t&&t.__esModule?t:{default:t}}var v=a.default.LEGEND_AREA_H_PADDING,y=n.default.msie&&n.default.version<=8,b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e.options||{},this.options.legend=this.options.legend||{},this.options.yAxis=this.options.yAxis||{},this.theme=e.theme||{},this.hasAxes=e.hasAxes,this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[],this.dataProcessor=e.dataProcessor,this.initBoundsData()}return t.prototype.initBoundsData=function(){this.dimensionMap={legend:{width:0},yAxis:{width:0},rightYAxis:{width:0},xAxis:{height:0},circleLegend:{width:0},chartExportMenu:{width:0}},this.positionMap={},this.chartLeftPadding=a.default.CHART_PADDING,this.maxRadiusForBubbleChart=null,this._registerChartDimension(),this._registerTitleDimension(),this._registerChartExportMenuDimension()},t.prototype._registerDimension=function(t,e){this.dimensionMap[t]=Object.assign(this.dimensionMap[t]||{},e)},t.prototype.getBound=function(t){return{dimension:this.dimensionMap[t]||{},position:this.positionMap[t]||{}}},t.prototype._setBound=function(t,e){this.dimensionMap[t]=e.dimension,this.positionMap[t]=e.position},t.prototype.getDimension=function(t){return this.dimensionMap[t]},t.prototype.getDimensionMap=function(t){var e=this,l={};return t&&t.length?t.forEach((function(t){l[t]=e.dimensionMap[t]})):l=this.dimensionMap,JSON.parse(JSON.stringify(l))},t.prototype.getPosition=function(t){return this.positionMap[t]},t.prototype._registerChartDimension=function(){var t=this.options.chart||{},e={width:t.width||a.default.CHART_DEFAULT_WIDTH,height:t.height||a.default.CHART_DEFAULT_HEIGHT};this._registerDimension("chart",e)},t.prototype._registerTitleDimension=function(){var t=this.options.chart||{},e=(0,i.default)(t.title),l=this.theme.title,n=(e?c.default.getRenderedTextSize(t.title.text,l.fontSize,l.fontFamily).height:0)||0;n&&(n+=a.default.TITLE_PADDING),this._registerDimension("title",{height:n})},t.prototype._registerChartExportMenuDimension=function(){var t=void 0;t=!1===this.options.chartExportMenu.visible?{width:0,height:0}:{height:a.default.CHART_EXPORT_MENU_SIZE+a.default.SERIES_AREA_V_PADDING,width:a.default.CHART_EXPORT_MENU_SIZE},this._registerDimension("chartExportMenu",t)},t.prototype.registerXAxisHeight=function(){this._registerDimension("xAxis",{height:d.default.calculateXAxisHeight(this.options.xAxis,this.theme.xAxis)})},t.prototype.registerLegendDimension=function(){var t=(0,o.default)(this.dataProcessor.getOriginalLegendData(),"label"),e=this.options.legend,l=this.theme.legend.label,n=this.getDimension("chart").width,r=f.default.calculate(e,l,t,n);this._registerDimension("legend",r)},t.prototype.registerSpectrumLegendDimension=function(t){var e=t?t.max:this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),l=t?t.min:"",n=this.theme.label,r=this.options.legend.align,i=void 0;if(s.default.isHorizontalLegend(r)){var o=s.default.isBoxTypeChart(this.chartType),a=s.default.isLegendAlignTop(r);i=g.default._makeHorizontalDimension(e,n,o,a)}else i=g.default._makeVerticalDimension(e,l,n);this._registerDimension("legend",i),this.useSpectrumLegend=!0},t.prototype.registerYAxisDimension=function(t){var e=t.limit,l=t.options,n=t.theme,i=t.yAxisLabels,o=t.isVertical,a=t.axisName,u=this.options.series&&this.options.series.diverging,c=void 0,h=void 0;if(e)c=[e.min,e.max];else{if(!s.default.isHeatmapChart(this.chartType)&&o)return;c=this.dataProcessor.getCategories(!0)}h=(0,r.default)(l)?"yAxis"===a?l[0]:l[1]:l,this._registerDimension(a,{width:d.default.calculateYAxisWidth(c,h,n,i,u)})},t.prototype.calculateSeriesWidth=function(){var t=this.dataProcessor.getFormattedMaxValue(this.chartType,"series","value"),e=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]),l=0;s.default.isColumnTypeChart(this.chartType)||(l=u.default.getRenderedLabelHeight(t,this.theme.title));var n=p.default.calculateWidth(e,this.options.legend,l);return s.default.isMapChart(this.chartType)&&!y&&(n-=a.default.MAP_CHART_ZOOM_AREA_WIDTH+v),n},t.prototype.calculateSeriesHeight=function(){var t=this.getDimensionMap(["chart","title","legend","xAxis","chartExportMenu"]),e=0;return this.options.yAxis&&this.options.yAxis.title&&(e=u.default.getRenderedLabelHeight(this.options.yAxis.title,this.theme.title)),p.default.calculateHeight(t,this.options.legend,e)},t.prototype.getBaseSizeForLimit=function(t){return t?this.calculateSeriesHeight():this.calculateSeriesWidth()},t.prototype._makeSeriesDimension=function(){return{width:this.calculateSeriesWidth(),height:this.calculateSeriesHeight()}},t.prototype.registerSeriesDimension=function(){var t=this._makeSeriesDimension();this._registerDimension("series",t)},t.prototype._updateLegendAndSeriesWidth=function(t,e){var l=this.options.legend;s.default.isVerticalLegend(l.align)&&l.visible&&this._registerDimension("legend",{width:t}),this._registerDimension("series",{width:this.getDimension("series").width-e})},t.prototype.registerCircleLegendDimension=function(t){var e=this.getDimension("series"),l=this.options.legend,n=this.dataProcessor.getFormattedMaxValue(this.chartType,"circleLegend","r"),r=this.theme.chart.fontFamily,i=h.default.calculateCircleLegendWidth(e,t,n,r),o=void 0;o=s.default.isVerticalLegend(l.align)&&l.visible?this.getDimension("legend").width:0;var u=(i=Math.min(i,Math.max(o,a.default.MIN_LEGEND_WIDTH)))-o;this._registerDimension("circleLegend",{width:i,height:i}),u>0&&this._updateLegendAndSeriesWidth(i,u)},t.prototype._makePlotDimension=function(){var t=this.getDimension("series");return{width:t.width,height:t.height+a.default.OVERLAPPING_WIDTH}},t.prototype._registerCenterComponentsDimension=function(){var t=this.getDimension("series");this._registerDimension("tooltip",t),this._registerDimension("mouseEventDetector",t)},t.prototype._registerAxisComponentsDimension=function(){var t=this._makePlotDimension();this._registerDimension("plot",t),this._registerDimension("xAxis",{width:t.width}),this._registerDimension("yAxis",{height:t.height}),this._registerDimension("rightYAxis",{height:t.height})},t.prototype._updateDimensionsWidth=function(t){var e=Math.max(t.overflowLeft,0),l=e+(t.overflowRight?Math.max(t.overflowRight,0):0);this.chartLeftPadding+=e,this.dimensionMap.plot.width-=l,this.dimensionMap.series.width-=l,this.dimensionMap.mouseEventDetector.width-=l,this.dimensionMap.xAxis.width-=l},t.prototype._updateDimensionsHeight=function(t){this.dimensionMap.plot.height-=t,this.dimensionMap.series.height-=t,this.dimensionMap.mouseEventDetector.height-=t,this.dimensionMap.tooltip.height-=t,this.dimensionMap.yAxis.height-=t,this.dimensionMap.rightYAxis.height-=t,this.dimensionMap.xAxis.height+=t},t.prototype._updateDimensionsForXAxisLabel=function(t){(t.overflowRight>0||t.overflowLeft>0)&&this._updateDimensionsWidth(t),t.overflowHeight&&this._updateDimensionsHeight(t.overflowHeight)},t.prototype._registerAxisComponentsPosition=function(t){var e=this.getPosition("series"),l=this.getDimension("series"),n=t+this.getDimension("yAxis").width+l.width;this.positionMap.plot={top:e.top,left:e.left},this.positionMap.yAxis={top:e.top,left:this.chartLeftPadding+t},this.positionMap.xAxis={top:e.top+l.height,left:e.left},this.positionMap.rightYAxis={top:e.top,left:this.chartLeftPadding+n-a.default.OVERLAPPING_WIDTH}},t.prototype._makeLegendPosition=function(){var t=this.dimensionMap,e=t.series,l=this.getPosition("series").top,n=this.options.legend,r=0,i=void 0,o=void 0;return s.default.isHorizontalLegend(n.align)?(o=(this.getDimension("chart").width-this.getDimension("legend").width)/2,r=s.default.isLegendAlignBottom(n.align)?l+e.height+this.getDimension("xAxis").height+a.default.SERIES_AREA_V_PADDING:l-t.legend.height+a.default.LEGEND_AREA_V_PADDING):(s.default.isLegendAlignLeft(n.align)?o=this.chartLeftPadding:(i=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width,o=this.chartLeftPadding+i+e.width),r=l+a.default.SERIES_AREA_V_PADDING),{top:r,left:o}},t.prototype._makeSpectrumLegendPosition=function(){var t=this.options.legend,e=this.options.legend.align,l=this.getPosition("series"),n=this.getDimension("series"),r=this.getDimension("legend"),i=void 0,o=void 0,u=void 0;s.default.isHorizontalLegend(e)?(o=(this.getDimension("chart").width-r.width)/2,i=s.default.isLegendAlignTop(e)?l.top-r.height:l.top+n.height+this.getDimension("xAxis").height):(o=s.default.isLegendAlignLeft(t.align)?this.chartLeftPadding:(u=this.getDimension("chart").width-this.chartLeftPadding)-this.getDimension("legend").width,i=s.default.isBoxTypeChart(this.chartType)?l.top:l.top+.75*a.default.MAP_CHART_ZOOM_AREA_HEIGHT);var c={top:i,left:o};return u&&(c.right=u),c},t.prototype._makeChartExportMenuPosition=function(){return{top:this.getPosition("series").top-a.default.SERIES_AREA_V_PADDING-a.default.CHART_EXPORT_MENU_SIZE,right:a.default.CHART_PADDING}},t.prototype._makeCircleLegendPosition=function(){var t=this.getPosition("series"),e=this.getDimension("series"),l=this.getDimension("circleLegend"),n=this.options.legend,r=void 0;return r=s.default.isLegendAlignLeft(n.align)?0:t.left+e.width,s.default.isVerticalLegend(n.align)&&n.visible&&(r+=(this.getDimension("legend").width+a.default.CHART_PADDING-l.width)/2),{top:t.top+e.height-l.height,left:r}},t.prototype._isNeedExpansionSeries=function(){var t=this.chartType;return!(s.default.isPieChart(t)||s.default.isMapChart(t))&&!s.default.isTreemapChart(t)&&!s.default.isRadialChart(t)&&!s.default.isPieDonutComboChart(t,this.seriesTypes)},t.prototype._registerEssentialComponentsPositions=function(){var t=this.getPosition("series"),e=void 0;this.positionMap.mouseEventDetector=Object.assign({},t),this.positionMap.legend=this.useSpectrumLegend?this._makeSpectrumLegendPosition():this._makeLegendPosition(),this.positionMap.chartExportMenu=this._makeChartExportMenuPosition(),this.getDimension("circleLegend").width&&(this.positionMap.circleLegend=this._makeCircleLegendPosition()),e=this._isNeedExpansionSeries()?{top:t.top-a.default.SERIES_EXPAND_SIZE,left:t.left-a.default.SERIES_EXPAND_SIZE}:t,this.positionMap.tooltip=e},t.prototype._registerPositions=function(){var t=this,e=this.options.legend.align,l=this.options.legend.visible,n=this.getDimension("legend"),r=s.default.isLegendAlignTop(e)&&l,i=s.default.isLegendAlignLeft(e)&&l,o=r?n.height:0,c=i?n.width:0,h=Math.max(this.getDimension("title").height,this.getDimension("chartExportMenu").height),d=t.options.yAxis.title&&!t.useSpectrumLegend?u.default.getRenderedLabelHeight(t.options.yAxis.title,t.theme.yAxis.title)+a.default.Y_AXIS_TITLE_PADDING:0,f=h+Math.max(0,Math.max(o,d)-a.default.TITLE_PADDING);h||(f=Math.max(o,d));var p={top:f+a.default.CHART_PADDING,left:this.chartLeftPadding+c+this.getDimension("yAxis").width};this.positionMap.series=p,this.hasAxes&&this._registerAxisComponentsPosition(c),this._registerEssentialComponentsPositions()},t.prototype._registerExtendedSeriesBound=function(){var t=this.getBound("series");this._isNeedExpansionSeries()&&(t=u.default.expandBound(t)),this._setBound("extendedSeries",t)},t.prototype._updateBoundsForYAxisCenterOption=function(){var t=this.getDimension("yAxis").width,e=Math.floor(this.getDimension("series").width/2)+a.default.OVERLAPPING_WIDTH,l=t-a.default.OVERLAPPING_WIDTH,n=u.default.isOldBrowser()?1:0;this.dimensionMap.extendedSeries.width+=t,this.dimensionMap.xAxis.width+=a.default.OVERLAPPING_WIDTH,this.dimensionMap.plot.width+=t+a.default.OVERLAPPING_WIDTH,this.dimensionMap.mouseEventDetector.width+=t,this.dimensionMap.tooltip.width+=t,this.positionMap.series.left-=t-n,this.positionMap.extendedSeries.left-=l-n,this.positionMap.plot.left-=l,this.positionMap.yAxis.left+=e,this.positionMap.xAxis.left-=l,this.positionMap.mouseEventDetector.left-=l,this.positionMap.tooltip.left-=l},t.prototype.registerBoundsData=function(t){this._registerCenterComponentsDimension(),this.useSpectrumLegend&&this._updateDimensionsForSpectrumLegend(),this.hasAxes&&(this._registerAxisComponentsDimension(),this._updateDimensionsForXAxisLabel(t)),this._registerPositions(),this._registerExtendedSeriesBound(),this.options.yAxis.isCenter&&this._updateBoundsForYAxisCenterOption()},t.prototype._updateDimensionsForSpectrumLegend=function(){var t=this.options.legend.align,e=this.getDimension("legend"),l=this.getDimension("series");s.default.isHorizontalLegend(t)&&e.width>l.width?e.width=l.width:s.default.isVerticalLegend(t)&&(s.default.isBoxTypeChart(this.chartType)?e.height=l.height:e.height>l.height-a.default.MAP_CHART_ZOOM_AREA_HEIGHT&&(e.height=l.height-a.default.MAP_CHART_ZOOM_AREA_HEIGHT))},t.prototype.calculateMaxRadius=function(t){var e=this.getDimensionMap(["series","circleLegend"]),l=!!this.options.circleLegend&&this.options.circleLegend.visible;return h.default.calculateMaxRadius(e,t,l)},t}();e.default=b},function(t,e,l){"use strict";e.__esModule=!0;var n=i(l(23)),r=i(l(17));function i(t){return t&&t.__esModule?t:{default:t}}e.default={_calculatePixelStep:function(t,e){var l=t.tickCount,n=void 0;return n=t.isLabelAxis?e/l/2:e/(l-1),parseInt(n,10)},_calculateRadiusByAxisData:function(t,e){var l=this._calculatePixelStep(e.yAxis,t.height),n=this._calculatePixelStep(e.xAxis,t.width);return Math.min(l,n)},_getCircleLegendLabelMaxWidth:function(t,e){return r.default.getRenderedLabelWidth(t,{fontSize:n.default.CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,l,r){var i=this._calculateRadiusByAxisData(t,e),o=this._getCircleLegendLabelMaxWidth(l,r);return Math.max(2*i,o)+n.default.CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,l){var r=this._calculateRadiusByAxisData(t.series,e),i=t.circleLegend.width;return l?Math.min((i-n.default.CIRCLE_LEGEND_PADDING)/2,r):r}}},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(23)),r=o(l(33)),i=o(l(17));function o(t){return t&&t.__esModule?t:{default:t}}e.default={calculateXAxisHeight:function(t,e){var l=t.title,r=l?i.default.getRenderedLabelHeight(l.text,e.title):0,o=r?r+n.default.X_AXIS_TITLE_PADDING:0,a=t.labelMargin||0,s=i.default.getRenderedLabelHeight(n.default.MAX_HEIGHT_WORD,e.label),u=o+n.default.X_AXIS_LABEL_PADDING;return a>0&&(u+=a),!1!==t.showLabel&&(u+=s),u},calculateYAxisWidth:function(t,e,l,o,a){var s=e.labelMargin,u=e.prefix,c=e.suffix,h=e.isCenter,d=e.type,f=e.dateFormat,p=e.showLabel,g=e.title,m=e.maxWidth,v=0,y=0,b=0;return t=e.categories||t,t=i.default.addPrefixSuffix(t,u,c),o=i.default.addPrefixSuffix(o,u,c),h&&(b+=n.default.Y_AXIS_LABEL_PADDING),r.default.isDatetimeType(d)&&(t=i.default.formatDates(t,f),o=i.default.formatDates(o,f)),s&&s>0&&(b+=s),t=o.length?o:t,!1!==p&&(y=i.default.getRenderedLabelsMaxWidth(t,l.label,m)),g&&(v=i.default.getRenderedLabelWidth(g.text,l.title)),b+=(a?Math.max(y,v):y)+n.default.Y_AXIS_LABEL_PADDING}}},function(t,e,l){"use strict";e.__esModule=!0;var n=s(l(23)),r=s(l(33)),i=s(l(42)),o=s(l(17)),a=s(l(27));function s(t){return t&&t.__esModule?t:{default:t}}var u=n.default.LEGEND_CHECKBOX_SIZE,c=n.default.LEGEND_ICON_WIDTH,h=n.default.LEGEND_LABEL_LEFT_PADDING,d=n.default.LEGEND_V_LABEL_RIGHT_PADDING,f=n.default.LEGEND_H_LABEL_RIGHT_PADDING,p=n.default.LEGEND_AREA_H_PADDING;e.default={_calculateLegendsWidth:function(t,e,l,n){var r=i.default.sum([p,l,c,h]);return t.map((function(t){var l=o.default.getRenderedLabelWidth(t,e);return n&&l>n&&(l=n),(l+=r)+f}))},_divideLegendLabels:function(t,e){var l=[],n=[];return t.forEach((function(t){n.length=e);return s=Math.min(s,e),{labels:this._optimizedHorizontalLegendLabels(t,h,s),maxLineWidth:s}},_optimizedHorizontalLegendLabels:function(t,e,l){var n=[],r=t.length-1,i=0,o=[];return t.forEach((function(t,a){var s=e[a];i+s+(p-f)<=l?o.push(t):(n.push(o),o=[t],i=0),i+=s,r===a&&n.push(o)})),n},_calculateHorizontalLegendHeight:function(t,e){var l=Math.max.apply(null,t.map((function(t){return o.default.getRenderedLabelsMaxHeight(t,e)})));return i.default.sum([Math.max(n.default.LEGEND_CHECKBOX_SIZE,l),n.default.LINE_MARGIN_TOP])*t.length-n.default.LINE_MARGIN_TOP+n.default.SERIES_AREA_V_PADDING},_makeHorizontalDimension:function(t,e,l,r,i){var o=this._makeDividedLabelsAndMaxLineWidth(e,l,t,r,i),a=this._calculateHorizontalLegendHeight(o.labels,t)+n.default.SERIES_AREA_V_PADDING;return{width:Math.max(o.maxLineWidth,n.default.MIN_LEGEND_WIDTH),height:a}},_makeVerticalDimension:function(t,e,l,n){var r=o.default.getRenderedLabelsMaxWidth(e,t);return n&&r>n&&(r=n),{width:i.default.sum([2*p,l,c,h,r,d]),height:0}},calculate:function(t,e,l,n){var i=!1===t.showCheckbox?0:u+h,o=t.maxWidth,a={};return t.visible?a=r.default.isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,l,n,i,o):this._makeVerticalDimension(e,l,i,o):a.width=0,a}}},function(t,e,l){"use strict";e.__esModule=!0;var n=i(l(23)),r=i(l(33));function i(t){return t&&t.__esModule?t:{default:t}}e.default={calculateWidth:function(t,e,l){var i=t.chart.width,o=t.yAxis,a=t.rightYAxis,s=t.legend,u=o.width+a.width,c=s,h=0,d=0;return r.default.isVerticalLegend(e.align)&&e.visible&&(h=c?c.width:0),h||a.width||!l||(d=l/2),i-2*n.default.CHART_PADDING-u-h-d},calculateHeight:function(t,e,l){var i=t.chart.height,o=Math.max(t.title.height,t.chartExportMenu.height),a=e.visible?t.legend.height:0,s=r.default.isLegendAlignTop(e.align)?a:0,u=o+Math.max(0,Math.max(l,s)-n.default.TITLE_PADDING),c=r.default.isLegendAlignBottom(e.align)?a:0,h=t.xAxis.height+c;return i-2*n.default.CHART_PADDING-u-h}}},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(23)),r=o(l(17)),i=o(l(42));function o(t){return t&&t.__esModule?t:{default:t}}var a=n.default.MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,s=n.default.MAP_LEGEND_WEDGE_SIZE,u=n.default.MAP_LEGEND_AREA_PADDING_WIDE,c=n.default.MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,h=n.default.MAP_LEGEND_GRAPH_SIZE,d=n.default.MAP_LEGEND_LABEL_PADDING,f=n.default.VERTICAL_MAP_LEGEND_HEIGHT,p=n.default.MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,g=n.default.MAP_LEGEND_AREA_PADDING_NARROW,m=n.default.HORIZONTAL_MAP_LEGEND_WIDTH;e.default={_makeVerticalDimension:function(t,e,l){var n=r.default.getRenderedLabelWidth(t,l),o=r.default.getRenderedLabelWidth(e,l),p=r.default.getRenderedLabelWidth(t,l),g=i.default.sum([2*a,p,s]);return{width:i.default.sum([u,g,c,h,d,Math.max(n,o)]),height:f}},_makeHorizontalDimension:function(t,e,l,n){var o=r.default.getRenderedLabelHeight(t,e),a=i.default.sum([2*p,o,s]),f=l?g:u,v=n?u:0;return{width:m,height:i.default.sum([f,a,c,h,d,o,d,v])}}}},function(t,e,l){"use strict";e.__esModule=!0;var n=c(l(9)),r=c(l(6)),i=c(l(149)),o=c(l(151)),a=c(l(152)),s=c(l(33)),u=c(l(17));function c(t){return t&&t.__esModule?t:{default:t}}var h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.chartType=e.chartType,this.seriesTypes=e.seriesTypes,this.dataProcessor=e.dataProcessor,this.boundsModel=e.boundsModel,this.options=e.options,this.theme=e.theme,this.hasRightYAxis=!!e.hasRightYAxis,this.prevValidLabelCount=null,this.initScaleData(e.addedDataCount),this.initForAutoTickInterval()}return t.prototype.initScaleData=function(t){this.scaleDataMap={},this.axisDataMap={},this.addedDataCount=t},t.prototype.initForAutoTickInterval=function(){this.firstTickCount=null},t.prototype._pickLimitOption=function(t){return{min:(t=t||{}).min,max:t.max}},t.prototype._createBaseScaleData=function(t,e,l,n){var r=t.chartType,o="xAxis"!==t.areaType,a=this.dataProcessor.createBaseValuesForLimit(r,n.isSingleYAxis,e.stack,t.valueType,t.areaType),u=this.boundsModel.getBaseSizeForLimit(o),c=Object.assign(e,{isVertical:o,limitOption:this._pickLimitOption(l),tickCounts:n.tickCounts,showLabel:this.options.series.showLabel});return s.default.isBubbleChart(r)&&(c.overflowItem=this.dataProcessor.findOverflowItem(r,t.valueType)),(s.default.isMapChart(r)||s.default.isHeatmapChart(r)||s.default.isTreemapChart(r))&&(c.useSpectrumLegend=!0),i.default.makeScaleData(a,u,r,c)},t.prototype._createScaleLabels=function(t,e,l,n){var r=this.dataProcessor.getFormatFunctions(),i=Object.assign(l,{dateFormat:n});return o.default.createFormattedLabels(t,e,i,r)},t.prototype._createScaleData=function(t,e,l){var n=this.options.series,r=e.chartType||this.chartType;e.chartType=r,n=n[r]||n;var i={stack:l.stack||n.stack,diverging:n.diverging,type:t.type},o=this._createBaseScaleData(e,i,t,l);return Object.assign(o,{labels:this._createScaleLabels(o,e,i,t.dateFormat),axisOptions:t})},t.prototype._createValueAxisData=function(t,e,l,n,r){var i=this.dataProcessor.hasCategories(),o=!n&&!i&&l,s=t.labels,u=t.limit,c=t.step,h=s.length,d=a.default.makeValueAxisData({labels:s,tickCount:s.length,limit:u,step:c,labelTheme:e,aligned:l,options:t.axisOptions,isVertical:!!n,isPositionRight:!!r});if(o){var f=this.dataProcessor.getValues(this.chartType,"x"),p=a.default.makeAdditionalDataForCoordinateLineType(s,f,u,c,h);Object.assign(d,p)}return d},t.prototype._createLabelAxisData=function(t,e,l,n,r){var i=t.categories||this.dataProcessor.getCategories(n);return a.default.makeLabelAxisData({labels:i,options:t,labelTheme:e,aligned:l,isVertical:!!n,isPositionRight:!!r,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},t.prototype._createAxisData=function(t,e,l,n,r){var i=s.default.isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn;return t?this._createValueAxisData(t,l,i,n,r):this._createLabelAxisData(e,l,i,n,r)},t.prototype._createAxesData=function(){var t=this.scaleDataMap,e=this.options,l=this.theme,r=(0,n.default)(e.yAxis)?e.yAxis:[e.yAxis],i={};return i.xAxis=this._createAxisData(t.xAxis,e.xAxis,l.xAxis.label),i.yAxis=this._createAxisData(t.yAxis,r[0],l.yAxis.label,!0),this.hasRightYAxis&&(i.rightYAxis=this._createAxisData(t.rightYAxis,r[1],l.yAxis.label,!0,!0),i.rightYAxis.aligned||(i.rightYAxis.aligned=i.yAxis.aligned)),i},t.prototype.addScale=function(t,e){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};l.areaType=l.areaType||t,l.chartType=n.chartType||l.chartType,this.scaleDataMap[t]=this._createScaleData(e,l,n)},t.prototype.setAxisDataMap=function(){this.axisDataMap=this._createAxesData()},t.prototype.updateXAxisDataForAutoTickInterval=function(t,e){var l=this.options.series.shifting,n=this.options.series.zoomable,r=this.axisDataMap.xAxis,i=this.boundsModel.getDimension("series").width,o=this.addedDataCount;l||!t||n?a.default.updateLabelAxisDataForAutoTickInterval(r,i,o,e):a.default.updateLabelAxisDataForStackingDynamicData(r,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=r.tickCount)},t.prototype.updateXAxisDataForLabel=function(t){var e=this.axisDataMap.xAxis,l=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),n=e.isLabelAxis,i=this.theme.xAxis.label,o=void 0,s=void 0,c=e.labels;t&&(c=c.slice(0,c.length-1));var h=(c=u.default.addPrefixSuffix(c,this.options.xAxis.prefix,this.options.xAxis.suffix)).filter((function(t){return t}));o=(0,r.default)(this.prevValidLabelCount)?h.length:this.prevValidLabelCount,this.options.yAxis.isCenter&&(o+=1,l.yAxis.width=0),s=!1===e.options.rotateLabel?a.default.makeAdditionalDataForMultilineLabels(c,o,i,n,l):a.default.makeAdditionalDataForRotatedLabels(h,o,i,n,l),this.prevValidLabelCount=o,Object.assign(e,s)},t.prototype._findLimit=function(t,e,l){return 0===e?l?t.yAxis:t.xAxis:t.rightYAxis?t.rightYAxis:t.yAxis},t.prototype.makeLimitMap=function(t,e){var l=this,n=this.scaleDataMap,r={};return n.xAxis&&(r.xAxis=n.xAxis.limit),n.yAxis&&(r.yAxis=n.yAxis.limit),n.rightYAxis&&(r.rightYAxis=n.rightYAxis.limit),n.legend&&(r.legend=n.legend.limit),t.forEach((function(t,n){r[t]=l._findLimit(r,n,e)})),r},t}();e.default=h},function(t,e,l){"use strict";e.__esModule=!0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return l}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=c(l(23)),i=c(l(33)),o=c(l(42)),a=c(l(27)),s=c(l(150)),u=c(l(15));function c(t){return t&&t.__esModule?t:{default:t}}var h={_makeLimitForDivergingOption:function(t){var e=Math.max(Math.abs(t.min),Math.abs(t.max));return{min:-e,max:e}},_adjustLimitForOverflow:function(t,e,l){var n=t.min,r=t.max;return l.min&&(n=o.default.subtract(n,e)),l.max&&(r=o.default.add(r,e)),{min:n,max:r}},millisecondMap:{year:31536e6,month:26784e5,week:6048e5,date:864e5,hour:36e5,minute:6e4,second:1e3},millisecondTypes:["year","month","week","date","hour","minute","second"],_findDateType:function(t,e){var l=t.max-t.min,n=this.millisecondTypes,i=this.millisecondMap,o=n.length-1,a=void 0;return l?n.every((function(t,r){var s=i[t],c=Math.floor(l/s),h=void 0;return c&&(a=n[h=r0?e.min=0:e.max=0===l?10:0}else 0===e.min&&0===e.max?e.max=10:e.min===e.max&&(e.min-=e.min/10,e.max+=e.max/10);return e},_calculateDatetimeScale:function(t,e,l){var n=this._makeDatetimeInfo(this._getLimitSafely(t),t.length),r=n.dataLimit;l&&(r=this._makeLimitForDivergingOption(r));var i=(0,s.default)({min:r.min,max:r.max,offsetSize:e,minimumStepSize:1});return i=this._restoreScaleToDatetimeType(i,n.minDate,n.divisionNumber)},_calculatePercentStackedScale:function(t,e){return 0===o.default.sumMinusValues(t)?r.default.PERCENT_STACKED_AXIS_SCALE:0===o.default.sumPlusValues(t)?r.default.MINUS_PERCENT_STACKED_AXIS_SCALE:e?r.default.DIVERGING_PERCENT_STACKED_AXIS_SCALE:r.default.DUAL_PERCENT_STACKED_AXIS_SCALE},_calculateCoordinateScale:function(t){var e=t.options,l=e.limitOption,n=void 0===l?{}:l,r=e.useSpectrumLegend,o=t.baseSize,a=t.overflowItem,c=t.chartType,h=this._getLimitSafely(t.baseValues),d=(0,u.default)(n.min),f=(0,u.default)(n.max),p=h.min,g=h.max,m=void 0,v=t.options.stepCount;d&&(p=n.min,v=null),f&&(g=n.max,v=null);var y=(0,s.default)({min:p,max:g,stepCount:v,offsetSize:o});return r||(m=this._isOverflowed(a,y,h,d,f)),m&&!i.default.isMapTypeChart(c)&&(y.limit=this._adjustLimitForOverflow(y.limit,y.step,m)),t.isDiverging&&(y.limit=this._makeLimitForDivergingOption(y.limit)),y},_isOverflowed:function(t,e,l,n,r){var i=!(!t||!t.minItem),o=!(!t||!t.maxItem),a=e.limit,s=i||!n&&a.min===l.min&&0!==a.min,u=o||!r&&a.max===l.max&&0!==a.max;return s||u?{min:s,max:u}:null},makeScaleData:function(t,e,l,n){var r=void 0,o=i.default.isDivergingChart(l,n.diverging),a=n.overflowItem;return i.default.isPercentStackChart(l,n.stack)?r=this._calculatePercentStackedScale(t,o):i.default.isDatetimeType(n.type)?r=this._calculateDatetimeScale(t,e,o):(i.default.isRadialChart(l)&&(n.stepCount=Math.floor(e/100)),r=this._calculateCoordinateScale({baseValues:t,baseSize:e,overflowItem:a,isDiverging:o,chartType:l,options:n})),r}};e.default=h},function(t,e,l){"use strict";e.__esModule=!0;var n,r=l(19),i=(n=r)&&n.__esModule?n:{default:n},o=[1,2,5,10];function a(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function s(t){var e=a(t);return function(t){for(var e=void 0,l=0,n=o.length;l1?1:1/r,o=l*i,s=e;return e=Math.ceil(e*i/o)*o/i,n&&o/2>e-s&&(e+=o),{min:t=t>l?Math.floor(t*i/o)*o/i:t<0?-Math.ceil(Math.abs(t)*i/o)*o/i:0,max:e}}(t.limit.min,t.limit.max,l,e),r=function(t,e){var l=1/Math.min(a(t),a(e));return Math.ceil(t*l/(e*l))}(Math.abs(n.max-n.min),l);return{limit:{min:n.min,max:n.max},step:l,stepCount:r}}e.default=function(t){var e=t.min,l=t.max,n=t.offsetSize,r=t.stepCount,o=t.minimumStepSize,a=t.showLabel,s=function(t,e,l,n,r){var o=Math.abs(e-t),a=o/l;n||(n=Math.ceil(l/88));var s=a*(l/n);return(0,i.default)(r)&&sl.labelInterval&&(r=this._makeLabelsByIntervalOption(t.labels,l.labelInterval,t.addedDataCount)),o.default.isDatetimeType(l.type)&&(r=u.default.formatDates(r,l.dateFormat)),t.aligned||(n+=1),{labels:r,tickCount:n,validTickCount:n,isLabelAxis:!0,options:l,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned}},makeValueAxisData:function(t){var e=t.labels,l=t.tickCount,n=t.limit,r=t.step,i=t.options,o=t.isVertical,a=t.isPositionRight,s=t.aligned;return{labels:e,tickCount:l,limit:n,step:r,options:i,validTickCount:l,dataMin:n.min,distance:n.max-n.min,isVertical:!!o,isPositionRight:!!a,aligned:!!s}},makeAdditionalDataForCoordinateLineType:function(t,e,l,n,r){var i=c.default.min(e),o=c.default.max(e),a=o-i,s=0,u=1;return a&&(l.mino&&(l.max-=n,u-=(o-l.max)/a,r-=1,t.pop())),{labels:t,tickCount:r,limit:l,distance:a,positionRatio:s,sizeRatio:u,validTickCount:r,dataMin:i}},_makeAdjustingIntervalInfo:function(t,e,l){var n=void 0,r=parseInt(e/l,10),i=null,o=parseInt(t/r,10);return o>1&&((n=t-o*r)>=o&&(r+=parseInt(n/o,0),n%=o),i={blockCount:r,beforeRemainBlockCount:n,interval:o}),i},_makeCandidatesForAdjustingInterval:function(t,e){var l=this,n=[];if(s.default.divisors(t).forEach((function(l){var r=l/t*e;r>=90&&r<=121&&n.push({interval:l,blockCount:t/l,beforeRemainBlockCount:0})})),0===n.length){var i=(0,r.default)(90,121,5);n=i.map((function(n){return l._makeAdjustingIntervalInfo(t,e,n)}))}return n.filter((function(t){return!!t}))},_calculateAdjustingIntervalInfo:function(t,e){var l=this._makeCandidatesForAdjustingInterval(t,e),n=null;return l.length&&(n=c.default.max(l,(function(t){return t.blockCount}))),n},_makeFilteredLabelsByInterval:function(t,e,l){return t.slice(e).filter((function(t,e){return e%l===0}))},updateLabelAxisDataForAutoTickInterval:function(t,e,l,n){n&&(t.tickCount-=1,t.labels.pop());var r=t.tickCount-1,i=this._calculateAdjustingIntervalInfo(r,e);if(i){t.eventTickCount=t.tickCount;var o=i.blockCount,a=i.beforeRemainBlockCount,s=i.interval,u=o+1,c=t.labels[t.labels.length-1];t.labels=this._makeFilteredLabelsByInterval(t.labels,0,s),a>0&&t.labels.push(c),Object.assign(t,{startIndex:0,tickCount:u,interval:s,positionRatio:0/r,sizeRatio:1-a/r,remainLastBlockInterval:a})}},updateLabelAxisDataForStackingDynamicData:function(t,e,l){var n=e.interval,r=e.startIndex,i=t.tickCount-1,o=l?l-1:0,a=i/n;o&&2*o<=a&&(n*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,r,n);var s=i-n*(a=t.labels.length-1);Object.assign(t,{startIndex:r,interval:n,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:r/i,sizeRatio:1-s/i})},_calculateXAxisLabelAreaWidth:function(t,e,l){return t||(l-=1),e/l},_createMultilineLabel:function(t,e,l){var r=String(t).split(" "),i=[],o=n(r,1)[0];return r.slice(1).forEach((function(t){u.default.getRenderedLabelWidth(o+" "+t,l)>e?(i.push(o),o=t):o+=" "+t})),o&&i.push(o),i.join("\n")},_createMultilineLabels:function(t,e,l){var n=this._createMultilineLabel;return t.map((function(t){return n(t,l,e)}))},_calculateMultilineHeight:function(t,e,l){return u.default.getRenderedLabelsMaxHeight(t,Object.assign({cssText:"line-height:1.2;width:"+l+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,l,n,r){var i=r.series.width,o=this._calculateXAxisLabelAreaWidth(n,i,e),a=this._createMultilineLabels(t,l,o);return{multilineLabels:a,overflowHeight:this._calculateMultilineHeight(a,l,o)-u.default.getRenderedLabelsMaxHeight(t,l),overflowLeft:0}},_findRotationDegree:function(t,e,l){var n=null;return i.default.DEGREE_CANDIDATES.every((function(r){var i=a.default.calculateRotatedWidth(r,e,l);return n=r,!(i<=t)})),n},_calculateRotatedWidth:function(t,e,l,n){var r=u.default.getRenderedLabelWidth(e,n),o=a.default.calculateRotatedWidth(t,r,l);return o-=a.default.calculateAdjacent(i.default.ANGLE_90-t,l/2)},_calculateLimitWidth:function(t,e,l){var n=t;return e&&(n+=l/2),n},makeAdditionalDataForRotatedLabels:function(t,e,l,n,r){var o=u.default.getRenderedLabelsMaxWidth(t,l),s=r.series.width,c=r.yAxis.width+(r.rightYAxis?r.rightYAxis.width:0),h=this._calculateXAxisLabelAreaWidth(n,s,e),d=null,f=2*i.default.CHART_PADDING+c+s;if(h1&&void 0!==arguments[1]?arguments[1]:{},l={};return t.forEach((function(t,n){l[t]=e[n]||e})),l},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach((function(l){var r=n(l,2),i=r[0],o=r[1];if(o.stackType){var a=e.findChartType(i);s.default.isAllowedStackOption(a)&&(t.chartType=a,t.stack=o.stack)}}))},e.prototype.addDataRatios=function(t){var e=this,l=this.chartTypes||[this.chartType],n=this.options.series||{},r=void 0;r=this.dataProcessor.isCoordinateType()?function(l){e.dataProcessor.addDataRatiosForCoordinateType(l,t,!1)}:function(l){var r=(n[l]||n).stack;e.dataProcessor.addDataRatios(t[l],r,l)},(0,i.default)(l,r)},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=a.default.filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData((0,r.default)(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(o.default);e.default=d},function(t,e,l){"use strict";e.__esModule=!0;var n=i(l(64)),r=i(l(50));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t){function e(l,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(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}(this,t.call(this,{rawData:l,theme:n,options:r,seriesTypes:Object.keys(l.series).sort(),chartTypes:["pie","pie"],isVertical:!0}));return i.className="tui-combo-chart",i}return function(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,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pie1Series","pieSeries"),this.componentManager.register("pie2Series","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){var t=this;(this.seriesTypes||[this.chartType]).forEach((function(e){t.dataProcessor.addDataRatiosOfPieChart(e)}))},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),l=r.default.filterCheckedRawData(e,t);n.default.prototype.onChangeCheckedLegends.call(this,t,l,{seriesTypes:this.seriesTypes})},e}(n.default);e.default=o},function(t,e,l){"use strict";e.__esModule=!0;var n=i(l(64)),r=i(l(23));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t){function e(l,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i.tooltip=i.tooltip||{},i.tooltip.align||(i.tooltip.align=r.default.TOOLTIP_DEFAULT_ALIGN_OPTION);var o=function(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}(this,t.call(this,{rawData:l,theme:n,options:i}));return o.className="tui-pie-chart",o}return function(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,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pieSeries","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){this.dataProcessor.addDataRatiosOfPieChart(this.chartType)},e}(n.default);e.default=o},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(14)),r=o(l(64)),i=o(l(23));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(l,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=Object.assign({tooltip:{},circleLegend:{}},r)).circleLegend=Object.assign({visible:!0},r.circleLegend),r.tooltip=Object.assign({align:i.default.TOOLTIP_DEFAULT_ALIGN_OPTION,grouped:!1},r.tooltip);var o=function(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}(this,t.call(this,{rawData:l,theme:n,options:r,hasAxes:!0}));return o.className="tui-bubble-chart",o}return function(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,t),e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.hasXValue(this.chartType)&&(t.xAxis={valueType:"x"}),this.dataProcessor.hasYValue(this.chartType)&&(t.yAxis={valueType:"y"}),t},e.prototype._setDefaultOptions=function(t){r.default.prototype._setDefaultOptions.call(this,t),this.options.circleLegend=this.options.circleLegend||{},(0,n.default)(this.options.circleLegend.visible)&&(this.options.circleLegend.visible=!0)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("circleLegend","circleLegend"),this.componentManager.register("bubbleSeries","bubbleSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!0)},e}(r.default);e.default=a},function(t,e,l){"use strict";e.__esModule=!0;var n=i(l(64)),r=i(l(23));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t){function e(l,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i.tooltip=i.tooltip||{},i.tooltip.align||(i.tooltip.align=r.default.TOOLTIP_DEFAULT_ALIGN_OPTION),i.tooltip.grouped=!1;var o=function(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}(this,t.call(this,{rawData:l,theme:n,options:i,hasAxes:!0}));return o.className="tui-scatter-chart",o}return function(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,t),e.prototype.getScaleOption=function(){return{xAxis:{valueType:"x"},yAxis:{valueType:"y"}}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!1)},e}(n.default);e.default=o},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(64)),r=o(l(166)),i=o(l(23));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(l,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r.tooltip=r.tooltip||{},r.tooltip.align||(r.tooltip.align=i.default.TOOLTIP_DEFAULT_ALIGN_OPTION),r.tooltip.grouped=!1;var o=function(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}(this,t.call(this,{rawData:l,theme:n,options:r,hasAxes:!0,isVertical:!0}));return o.className="tui-heatmap-chart",o}return function(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,t),e.prototype._addComponents=function(){var t=this.theme.series[this.chartType],e=new r.default(t.startColor,t.endColor);this._addComponentsForAxisType({axis:[{name:"yAxis",isVertical:!0},{name:"xAxis"}],legend:{classType:"spectrumLegend",additionalParams:{colorSpectrum:e}},series:[{name:"heatmapSeries",data:{colorSpectrum:e}}],tooltip:!0,mouseEventDetector:!0})},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend,null,this.chartType)},e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new r.default(t.startColor,t.endColor);this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("heatmapSeries","heatmapSeries",{colorSpectrum:e}),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip",{colorSpectrum:e}),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(n.default);e.default=a},function(t,e,l){"use strict";e.__esModule=!0;var n,r=l(167),i=(n=r)&&n.__esModule?n:{default:n},o=function(){function t(e,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.start=i.default.colorNameToHex(e),this.startRGB=i.default.hexToRGB(this.start),this.end=i.default.colorNameToHex(l);var n=i.default.hexToRGB(this.end);this.distances=this._makeDistances(this.startRGB,n),this.colorMap={}}return t.prototype._makeDistances=function(t,e){return t.map((function(t,l){return e[l]-t}))},t.prototype.getColor=function(t){var e=this.colorMap[t];if(!e){var l=this.distances,n=this.startRGB.map((function(e,n){return e+parseInt(l[n]*t,10)}));e=i.default.rgbToHEX.apply(i.default,function(t){if(Array.isArray(t)){for(var e=0,l=Array(t.length);ee)return String(t);for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;this.mapModel.clearMapData(),t.prototype.setData.call(this,e)},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend)},e}(n.default);e.default=u},function(t,e,l){"use strict";e.__esModule=!0;var n=a(l(14)),r=a(l(58)),i=a(l(23)),o=a(l(27));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(e,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.commandFuncMap={M:this._makeCoordinate.bind(this),m:this._makeCoordinateFromRelativeCoordinate.bind(this),L:this._makeCoordinate.bind(this),l:this._makeCoordinateFromRelativeCoordinate.bind(this),H:this._makeXCoordinate.bind(this),h:this._makeXCoordinateFroRelativeCoordinate.bind(this),V:this._makeYCoordinate.bind(this),v:this._makeYCoordinateFromRelativeCoordinate.bind(this)},this.ignoreCommandMap={Z:!0,z:!0},this.mapDimension=null,this.dataProcessor=e,this.rawMapData=l,this.mapData=null}return t.prototype._splitCoordinate=function(t){var e=t.split(","),l={x:parseFloat(e[0])};return e[1]&&(l.y=parseFloat(e[1])),l},t.prototype._makeCoordinate=function(t){return this._splitCoordinate(t)},t.prototype._makeCoordinateFromRelativeCoordinate=function(t,e){var l=this._splitCoordinate(t);return{x:l.x+e.x,y:l.y+e.y}},t.prototype._makeXCoordinate=function(t){return{x:this._splitCoordinate(t).x}},t.prototype._makeXCoordinateFroRelativeCoordinate=function(t,e){return{x:this._splitCoordinate(t).x+e.x}},t.prototype._makeYCoordinate=function(t){return{y:this._splitCoordinate(t).x}},t.prototype._makeYCoordinateFromRelativeCoordinate=function(t,e){return{y:this._splitCoordinate(t).x+e.y}},t.prototype._splitPath=function(t){for(var e=t.length,l=[],n="",r=void 0,i=0;i1&&void 0!==arguments[1]?arguments[1]:{},l=e.commandType,n=e.coordinate;l&&n&&t.push({type:l,coordinate:n})},t.prototype._makeCoordinatesFromPath=function(t){var e=this,l=this._splitPath(t),n={x:0,y:0};return l.map((function(t){var l=(0,e.commandFuncMap[t.type])(t.coordinate,n);return Object.assign(n,l),l}))},t.prototype._findBoundFromCoordinates=function(t){var e=(0,r.default)(t,"x").filter((function(t){return!(0,n.default)(t)})),l=(0,r.default)(t,"y").filter((function(t){return!(0,n.default)(t)})),i=o.default.max(e),a=o.default.min(e),s=o.default.max(l),u=o.default.min(l);return{dimension:{width:i-a,height:s-u},position:{left:a,top:u}}},t.prototype._makeLabelPosition=function(t,e){return e=e||i.default.MAP_CHART_LABEL_DEFAULT_POSITION_RATIO,{left:t.position.left+t.dimension.width*e.x,top:t.position.top+t.dimension.height*e.y}},t.prototype._createMapData=function(t){var e=this;return t.map((function(t){var l=e._makeCoordinatesFromPath(t.path),n=e._findBoundFromCoordinates(l),r=e.dataProcessor.getValueMapDatum(t.code),i=void 0,o=void 0,a=void 0,s=void 0;r&&(a=r.label,s=r.ratio,i=r.name||t.name,o=r.labelCoordinate||t.labelCoordinate);var u={code:t.code,name:i,path:t.path,bound:n,labelPosition:e._makeLabelPosition(n,o)};return a&&(u.label=a),s>=0&&(u.ratio=s),u}))},t.prototype.clearMapData=function(){this.mapData=null},t.prototype.getMapData=function(){return this.mapData||(this.mapData=this._createMapData(this.rawMapData)),this.mapData},t.prototype.getDatum=function(t){return this.getMapData()[t]},t.prototype.getLabelData=function(t){var e=this;return this.getMapData().filter((function(t){return e.dataProcessor.getValueMapDatum(t.code)})).map((function(e){return{name:e.name,labelPosition:{left:e.labelPosition.left*t,top:e.labelPosition.top*t}}}))},t.prototype._makeMapDimension=function(){var t=this.getMapData(),e=t.map((function(t){return t.bound.position.left})),l=t.map((function(t){return t.bound.position.left+t.bound.dimension.width})),n=t.map((function(t){return t.bound.position.top})),r=t.map((function(t){return t.bound.position.top+t.bound.dimension.height}));return{width:o.default.max(l)-o.default.min(e),height:o.default.max(r)-o.default.min(n)}},t.prototype.getMapDimension=function(){return this.mapDimension||(this.mapDimension=this._makeMapDimension()),this.mapDimension},t}();e.default=s},function(t,e,l){"use strict";e.__esModule=!0;var n=o(l(58)),r=o(l(131)),i=o(l(17));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(l,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(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}(this,t.call(this));return i.rawData=l,i.options=r,i}return function(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,t),e.prototype.initData=function(t){this.rawData=t,this.valueMap=null},e.prototype._makeValueMap=function(){var t=this.rawData.series.map,e={},l=this._findFormatFunctions();return t.forEach((function(t){var n={value:t.data,label:i.default.formatValue({value:t.data,formatFunctions:l,chartType:"map",areaType:"series"})};t.name&&(n.name=t.name),t.labelCoordinate&&(n.labelCoordinate=t.labelCoordinate),e[t.code]=n})),e},e.prototype.getValueMap=function(){return this.valueMap||(this.valueMap=this._makeValueMap()),this.valueMap},e.prototype.getValues=function(){return(0,n.default)(this.getValueMap(),"value")},e.prototype.getCurrentData=function(){return this.rawData},e.prototype.getValueMapDatum=function(t){return this.getValueMap()[t]},e.prototype.addDataRatios=function(t){var e=t.min,l=t.max-e;Object.values(this.getValueMap()).forEach((function(t){t.ratio=(t.value-e)/l}))},e.prototype.createBaseValuesForLimit=function(){return this.getValues()},e.prototype.getLegendVisibility=function(){return null},e}(r.default);e.default=a},function(t,e,l){"use strict";e.__esModule=!0;var n=i(l(64)),r=i(l(113));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t){function e(l,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i.tooltip&&(i.tooltip.grouped=!1);var o=function(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}(this,t.call(this,{rawData:l,theme:n,options:i,hasAxes:!0,isVertical:!0}));return o.className="tui-radial-chart",o.Series=r.default,o}return function(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,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("plot","radialPlot"),this.componentManager.register("radialSeries","radialSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e.prototype.getScaleOption=function(){return{yAxis:{}}},e}(n.default);e.default=o},function(t,e,l){"use strict";e.__esModule=!0;var n=i(l(64)),r=i(l(50));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t){function e(l,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r.default.appendOutliersToSeriesData(l);var o=function(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}(this,t.call(this,{rawData:l,theme:n,options:i,hasAxes:!0,isVertical:!0}));return o.className="tui-boxplot-chart",o}return function(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,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("boxplotSeries","boxplotSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["boxplot","boxplot"]}),n.default.prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,l=void 0===e?{}:e,n=this.chartType,r=(l[n]||l).stack;this.dataProcessor.addDataRatios(t[n],r,n)},e}(n.default);e.default=o},function(t,e,l){"use strict";e.__esModule=!0;var n=i(l(64)),r=i(l(50));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t){function e(l,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r.default._makeRawSeriesDataForBulletChart(l);var o=function(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}(this,t.call(this,{rawData:l,theme:n,options:i,hasAxes:!0,isVertical:!!i.series.vertical}));return o.className="tui-bullet-chart",o}return function(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,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("bulletSeries","bulletSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu",{chartType:"bullet"}),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return this.isVertical?{yAxis:!0}:{xAxis:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e}(n.default);e.default=o},function(t,e,l){"use strict";var n=o(l(23)),r=o(l(52)),i=o(l(53));function o(t){return t&&t.__esModule?t:{default:t}}r.default.register(n.default.DEFAULT_THEME_NAME,i.default)},function(t,e){}])},t.exports=n(l(2127))},function(t,e,l){"use strict";function n(t){for(var e=1;e0)return r.getInlineStyleAt(n-1);if(r.getLength())return r.getInlineStyleAt(0);return w(t,l)}(e,l):function(t,e){var l=e.getStartKey(),n=e.getStartOffset(),r=t.getBlockForKey(l);if(n0)return r.getInlineStyleAt(n-1);return w(t,l)}(e,l)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return v(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),v(t,e,!0)},e.moveSelectionToEnd=function(t){var l=t.getCurrentContent().getLastBlock(),n=l.getKey(),r=l.getLength();return e.acceptSelection(t,new s({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}))},e.moveFocusToEnd=function(t){var l=e.moveSelectionToEnd(t);return e.forceSelection(l,l.getSelection())},e.push=function(t,l,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===l)return t;var i=a.getDirectionMap(l,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:l,directionMap:i,lastChangeType:n,selection:l.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var o=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),c=l;o!==s.getSelectionAfter()||b(t,n)?(u=u.push(s),c=c.set("selectionBefore",o)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(c=c.set("selectionBefore",s.getSelectionBefore()));var h=t.getInlineStyleOverride(),f=["adjust-depth","change-block-type","split-block"];-1===f.indexOf(n)&&(h=null);var p={currentContent:c,directionMap:i,undoStack:u,redoStack:d(),lastChangeType:n,selection:l.getSelectionAfter(),forceSelection:r,inlineStyleOverride:h};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var l=t.getUndoStack(),n=l.peek();if(!n)return t;var r=t.getCurrentContent(),i=a.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:i,undoStack:l.shift(),redoStack:t.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var l=t.getRedoStack(),n=l.peek();if(!n)return t;var r=t.getCurrentContent(),i=a.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:i,undoStack:t.getUndoStack().push(r),redoStack:l.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function v(t,e,l){return m.set(t,{selection:e,forceSelection:l,nativelyRenderedContent:null,inlineStyleOverride:null})}function y(t,e){return t.getBlockMap().map((function(l){return i.generate(t,l,e)})).toOrderedMap()}function b(t,e){return e!==t.getLastChangeType()||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}function w(t,e){var l=t.getBlockMap().reverse().skipUntil((function(t,l){return l===e})).skip(1).skipUntil((function(t,e){return t.getLength()})).first();return l?l.getInlineStyleAt(l.getLength()-1):c()}t.exports=m},function(t,e){var l="undefined"===typeof Float32Array?Array:Float32Array;function n(t){return Math.sqrt(i(t))}var r=n;function i(t){return t[0]*t[0]+t[1]*t[1]}var o=i;function a(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var s=a;function u(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var c=u;e.create=function(t,e){var n=new l(2);return null==t&&(t=0),null==e&&(e=0),n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.clone=function(t){var e=new l(2);return e[0]=t[0],e[1]=t[1],e},e.set=function(t,e,l){return t[0]=e,t[1]=l,t},e.add=function(t,e,l){return t[0]=e[0]+l[0],t[1]=e[1]+l[1],t},e.scaleAndAdd=function(t,e,l,n){return t[0]=e[0]+l[0]*n,t[1]=e[1]+l[1]*n,t},e.sub=function(t,e,l){return t[0]=e[0]-l[0],t[1]=e[1]-l[1],t},e.len=n,e.length=r,e.lenSquare=i,e.lengthSquare=o,e.mul=function(t,e,l){return t[0]=e[0]*l[0],t[1]=e[1]*l[1],t},e.div=function(t,e,l){return t[0]=e[0]/l[0],t[1]=e[1]/l[1],t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.scale=function(t,e,l){return t[0]=e[0]*l,t[1]=e[1]*l,t},e.normalize=function(t,e){var l=n(e);return 0===l?(t[0]=0,t[1]=0):(t[0]=e[0]/l,t[1]=e[1]/l),t},e.distance=a,e.dist=s,e.distanceSquare=u,e.distSquare=c,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.lerp=function(t,e,l,n){return t[0]=e[0]+n*(l[0]-e[0]),t[1]=e[1]+n*(l[1]-e[1]),t},e.applyTransform=function(t,e,l){var n=e[0],r=e[1];return t[0]=l[0]*n+l[2]*r+l[4],t[1]=l[1]*n+l[3]*r+l[5],t},e.min=function(t,e,l){return t[0]=Math.min(e[0],l[0]),t[1]=Math.min(e[1],l[1]),t},e.max=function(t,e,l){return t[0]=Math.max(e[0],l[0]),t[1]=Math.max(e[1],l[1]),t}},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=l(2159),i=(n=r)&&n.__esModule?n:{default:n};function o(t){return[t].join(".").replace(/\[/g,".").replace(/\]/g,"").split(".")}e.default=Object.assign(i.default,{get:function(t,e){var l=t[e];if(void 0!==l&&null!==l)return l;var n=o(e),r=void 0;try{r=n.reduce((function(t,e){return t[e]}),t)}catch(i){}return r},set:function(t,e,l){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=o(e),i=0;r.reduce((function(t,e){if(i+=1,"undefined"===typeof t[e]){if(!n)throw new Error(t+"."+e+" is undefined");return t[e]={},t[e]}return i===r.length?(t[e]=l,l):t[e]}),t)},isDefined:function(t){return"undefined"!==typeof t&&null!==t},isEmptyObject:function(t){if(!i.default.isObject(t))return!1;for(var e=Object.prototype.hasOwnProperty,l=Object.keys(t),n=0;n-1}})},function(t,e,l){t.exports=function(t){var e={};function l(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,l),r.l=!0,r.exports}return l.m=t,l.c=e,l.d=function(t,e,n){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},l.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)l.d(n,r,function(e){return t[e]}.bind(null,r));return n},l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="",l(l.s=2)}([function(t,e){t.exports=l(84)},function(t,e){t.exports=l(0)},function(t,e,l){"use strict";l.r(e);var n=l(1),r=l.n(n),i=l(0),o=l.n(i);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var l=0;l=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},clone:function(){return new s(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},s.create=function(t){return new s(t.x,t.y,t.width,t.height)};var u=s;t.exports=u},function(t,e,l){"use strict";function n(){return(n=Object.assign||function(t){for(var e=1;e1e-10&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},contain:function(t,e){var l=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=l[0],e=l[1],n.contain(t,e)){var i=this.path.data;if(r.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),o.containStroke(i,a/s,t,e)))return!0}if(r.hasFill())return o.contain(i,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var l=this.shape;if(l){if(r.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(l[n]=t[n]);else l[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&s(t[0]-1)>1e-10&&s(t[3]-1)>1e-10?Math.sqrt(s(t[0]*t[3]-t[2]*t[1])):1}},c.extend=function(t){var e=function(e){c.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var l=t.shape;if(l){this.shape=this.shape||{};var n=this.shape;for(var r in l)!n.hasOwnProperty(r)&&l.hasOwnProperty(r)&&(n[r]=l[r])}t.init&&t.init.call(this,e)};for(var l in r.inherits(e,c),t)"style"!==l&&"shape"!==l&&(e.prototype[l]=t[l]);return e},r.inherits(c,n);var h=c;t.exports=h},function(t,e,l){"use strict";var n=l(551),r="object"==typeof self&&self&&self.Object===Object&&self,i=n.a||r||Function("return this")();e.a=i},function(t,e,l){"use strict";l.d(e,"a",(function(){return o}));var n=l(12),r={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"]},i={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"]};function o(t,e,l){return{applyToStack:function(o){o.add(function(t,e){return function(l,r){return function(i){return Object(n.__awaiter)(void 0,void 0,void 0,(function(){var o,a,s,u,c;return Object(n.__generator)(this,(function(h){switch(h.label){case 0:return o=r.logger,a=r.outputFilterSensitiveLog,[4,l(i)];case 1:return s=h.sent().response,"function"===typeof(null===o||void 0===o?void 0:o.debug)&&o.debug({httpResponse:s}),[4,e(s,t)];case 2:return u=h.sent(),u.$metadata,c=Object(n.__rest)(u,["$metadata"]),"function"===typeof(null===o||void 0===o?void 0:o.info)&&o.info({output:a(c)}),[2,{response:s,output:u}]}}))}))}}}(t,l),r),o.add(function(t,e){return function(l,r){return function(i){return Object(n.__awaiter)(void 0,void 0,void 0,(function(){var o,a,s;return Object(n.__generator)(this,(function(u){switch(u.label){case 0:return o=r.logger,a=r.inputFilterSensitiveLog,"function"===typeof(null===o||void 0===o?void 0:o.info)&&o.info({input:a(i.input)}),[4,e(i.input,t)];case 1:return s=u.sent(),"function"===typeof(null===o||void 0===o?void 0:o.debug)&&o.debug({httpRequest:s}),[2,l(Object(n.__assign)(Object(n.__assign)({},i),{request:s}))]}}))}))}}}(t,e),i)}}}},function(t,e){function l(){return t.exports=l=Object.assign||function(t){for(var e=1;e=11),domSupported:"undefined"!==typeof document}}(navigator.userAgent);t.exports=l},function(t,e,l){var n=l(13),r=l(104),i=l(57).makeInner,o=l(230),a=o.enableClassExtend,s=o.enableClassCheck,u=l(1837),c=l(1838),h=l(1839),d=l(1852),f=n.mixin,p=i();function g(t,e,l){this.parentModel=e,this.ecModel=l,this.option=t}function m(t,e,l){for(var n=0;n=0||(r[l]=t[l]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,l)&&(r[l]=t[l])}return r}function D(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?D(t):e}function I(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(t){r=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return l}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function L(t){return function(t){if(Array.isArray(t)){for(var e=0,l=new Array(t.length);el.getOffset(i)&&el.getOffset(i)+i.clientHeight&&en?l.setState({isVisible:!0,revealed:!0}):r||l.setState({isVisible:!1,revealed:!0})})),M(D(l),"handleStart",(function(){var t=l.props.onAnimationStart,e=l.state.countIterations;l.setState({countIterations:e+1}),t&&t()})),M(D(l),"handleIteration",(function(){var t=l.props.onAnimationIteration,e=l.state.countIterations;t&&(l.setState({countIterations:e+1}),t())})),M(D(l),"handleEnd",(function(){var t=l.props,e=t.onAnimationEnd,n=t.count,r=l.state.countIterations;l.setState({countIterations:r+1}),e&&n===r&&e()})),M(D(l),"getOffset",(function(t){var e=t.getBoundingClientRect(),l=document.body,n=document.documentElement,r=window.pageYOffset||n.scrollTop||l.scrollTop,i=n.clientTop||l.clientTop||0,o=e.top+r-i;return Math.round(o)})),l}return T(e,n.Component),S(e,[{key:"componentDidMount",value:function(){var t=this.props.reveal;this.setState({isVisible:!t,revealed:!t}),t&&(window.addEventListener("scroll",this.updatePredicate),this.updatePredicate())}},{key:"componentWillUnmount",value:function(){this.props.reveal&&window.removeEventListener("scroll",this.updatePredicate)}},{key:"render",value:function(){var t=this.props,e=t.children,l=t.className,n=t.count,i=t.delay,a=t.duration,s=t.infinite,u=(t.reveal,t.style),c=t.tag,h=t.type,d=A(t,["children","className","count","delay","duration","infinite","reveal","style","tag","type"]),f=this.state,p=f.isVisible,g=f.revealed,m={animationDuration:a,animationDelay:i,animationIterationCount:!s&&n,visibility:p?"visible":"hidden",animationName:h},v=Object.assign(m,u),y=o()(p&&"animated",h&&h,s&&"infinite",l);return r.a.createElement(c,E({"data-test":"animation",className:y,onAnimationEnd:this.handleEnd,onAnimationIteration:this.handleIteration,onAnimationStart:this.handleStart,ref:this.elemRef,style:p&&g?v:{animationName:"none",visibility:"hidden"}},d),e)}}]),e}();N.propTypes={children:s.a.oneOfType([s.a.arrayOf(s.a.node),s.a.node]),className:s.a.string,count:s.a.number,delay:s.a.string,duration:s.a.oneOfType([s.a.string,s.a.number]),infinite:s.a.bool,onAnimationEnd:s.a.func,onAnimationIteration:s.a.func,onAnimationStart:s.a.func,reveal:s.a.bool,style:s.a.node,tag:s.a.oneOfType([s.a.func,s.a.string]),type:s.a.string},N.defaultProps={tag:"div",reveal:!1,duration:1,count:1};var j=function(t){var e=t.tag,l=t.className,n=t.children,i=t.color,a=t.pill,s=A(t,["tag","className","children","color","pill"]),u=o()("badge",i,"badge-".concat(i),!!a&&"badge-pill",l);return r.a.createElement(e,E({"data-test":"badge"},s,{className:u}),n)};j.propTypes={children:s.a.node,className:s.a.string,color:s.a.string,pill:s.a.bool,tag:s.a.string},j.defaultProps={tag:"span",color:"default",pill:!1};var B=function(t){var e=t.tag,l=t.className,n=t.children,i=t.display,a=t.justifyContent,s=t.flex,u=t.alignItems,c=t.alignContent,h=t.alignSelf,d=t.color,f=t.bgColor,p=t.m,g=t.mt,m=t.mr,v=t.mb,y=t.ml,b=t.mx,w=t.my,x=t.p,_=t.pt,S=t.pr,M=t.pb,C=t.pl,k=t.px,T=t.py,O=A(t,["tag","className","children","display","justifyContent","flex","alignItems","alignContent","alignSelf","color","bgColor","m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py"]),D=function(t,e){if(void 0!==t)return"".concat(e,"-").concat(t)},P=o()(i&&"d-".concat(i),a&&"justify-content-".concat(a),s&&"flex-".concat(s),u&&"align-items-".concat(u),c&&"align-content-".concat(c),h&&"align-self-".concat(h),d&&"".concat(d,"-text"),f&&"bg-".concat(f),D(p,"m"),D(g,"mt"),D(m,"mr"),D(v,"mb"),D(y,"ml"),D(b,"mx"),D(w,"my"),D(x,"p"),D(_,"pt"),D(S,"pr"),D(M,"pb"),D(C,"pl"),D(k,"px"),D(T,"py"),l),I=""!==P?P:null;return r.a.createElement(e,E({"data-test":"box"},O,{className:I}),n)};function F(t,e){var l={};return Object.keys(t).forEach((function(n){-1===e.indexOf(n)&&(l[n]=t[n])})),l}B.propTypes={alignContent:s.a.string,alignItems:s.a.string,alignSelf:s.a.string,bgColor:s.a.string,children:s.a.node,className:s.a.string,color:s.a.string,display:s.a.string,flex:s.a.string,justifyContent:s.a.string,m:s.a.oneOfType([s.a.number,s.a.string]),mb:s.a.oneOfType([s.a.number,s.a.string]),ml:s.a.oneOfType([s.a.number,s.a.string]),mr:s.a.oneOfType([s.a.number,s.a.string]),mt:s.a.oneOfType([s.a.number,s.a.string]),mx:s.a.oneOfType([s.a.number,s.a.string]),my:s.a.oneOfType([s.a.number,s.a.string]),p:s.a.oneOfType([s.a.number,s.a.string]),pb:s.a.oneOfType([s.a.number,s.a.string]),pl:s.a.oneOfType([s.a.number,s.a.string]),pr:s.a.oneOfType([s.a.number,s.a.string]),pt:s.a.oneOfType([s.a.number,s.a.string]),px:s.a.oneOfType([s.a.number,s.a.string]),py:s.a.oneOfType([s.a.number,s.a.string]),tag:s.a.string},B.defaultProps={tag:"div"};var z=27,U=32,H=38,Z=40,V=function(t){return Object.keys(t).reduce((function(e,l){return t[l]&&(e[l]=t[l]),e}),{})};s.a.bool,s.a.node,s.a.string,s.a.string,s.a.bool,s.a.bool;var W=function(t){var e=t.border,l=t.brand,n=t.className,i=t.fab,a=t.duotone,s=t.fal,u=t.fad,c=t.far,h=t.solid,d=t.fixed,f=t.fas,p=t.flip,g=t.icon,m=t.inverse,v=t.light,y=t.list,b=t.pull,w=t.pulse,x=t.regular,_=t.rotate,S=t.size,M=t.spin,C=t.stack,k=A(t,["border","brand","className","fab","duotone","fal","fad","far","solid","fixed","fas","flip","icon","inverse","light","list","pull","pulse","regular","rotate","size","spin","stack"]),T=o()(x||c?"far":h||f?"fas":v||s?"fal":a||u?"fad":l||i?"fab":"fa",!!y&&"fa-li",!!g&&"fa-".concat(g),!!S&&"fa-".concat(S),!!d&&"fa-fw",!!b&&"fa-pull-".concat(b),!!e&&"fa-border",!!M&&"fa-spin",!!w&&"fa-pulse",!!_&&"fa-rotate-".concat(_),!!p&&"fa-flip-".concat(p),!!m&&"fa-inverse",!!C&&"fa-".concat(C),n);return r.a.createElement("i",E({"data-test":"fa"},k,{className:T}))};function G(t,e){void 0===e&&(e={});var l=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===l&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}W.propTypes={icon:s.a.string.isRequired,border:s.a.bool,brand:s.a.bool,className:s.a.string,fab:s.a.bool,fal:s.a.bool,far:s.a.bool,fixed:s.a.bool,flip:s.a.string,inverse:s.a.bool,light:s.a.bool,list:s.a.bool,pull:s.a.string,pulse:s.a.bool,regular:s.a.bool,rotate:s.a.string,size:s.a.string,spin:s.a.bool,stack:s.a.string},W.defaultProps={border:!1,brand:!1,className:"",fab:!1,fal:!1,far:!1,fixed:!1,flip:"",inverse:!1,light:!1,list:!1,pull:"",pulse:!1,regular:!1,rotate:"",size:"",spin:!1,stack:""},G(".bc-icons.breadcrumb-item::before,\r\n.bc-icons.breadcrumb-item::after {\r\n content: none;\r\n}\r\n\r\n.bc-icons.breadcrumb-item + .active.breadcrumb-item::before,\r\n.bc-icons.breadcrumb-item + .active.breadcrumb-item::after{\r\n content: none;\r\n}\r\n\r\n.bc-icons.breadcrumb-item.active {\r\n color: #eeeeee;\r\n}\r\n");var Y=function(t){var e=t.active,l=t.appendIcon,n=t.children,i=t.className,a=t.bold,s=t.icon,u=t.iconBrand,c=t.iconClassName,h=t.iconLight,d=t.iconRegular,f=t.iconSize,p=A(t,["active","appendIcon","children","className","bold","icon","iconBrand","iconClassName","iconLight","iconRegular","iconSize"]),g=o()(!!e&&"active",s&&"bc-icons","breadcrumb-item",i),m=o()(l?"mx-2":"mr-2",c);return r.a.createElement("li",E({"data-test":"breadcrumb-item"},p,{className:g}),r.a.createElement((function(t){var e=t.children;return a?r.a.createElement("strong",null,e):e}),null,r.a.createElement((function(){return s?r.a.createElement(r.a.Fragment,null,l&&n,r.a.createElement(W,{brand:u,className:m,icon:s,light:h,regular:d,size:f}),!l&&n):n}),null)))};Y.propTypes={active:s.a.bool,appendIcon:s.a.bool,bold:s.a.bool,children:s.a.node,className:s.a.string,icon:s.a.string,iconBrand:s.a.bool,iconClassName:s.a.string,iconLight:s.a.bool,iconRegular:s.a.bool,iconSize:s.a.string},Y.defaultProps={active:!1,appendIcon:!1,className:"",bold:!1,icon:"",iconBrand:!1,iconClassName:"",iconLight:!1,iconRegular:!1,iconSize:""},G(".btn-group-vertical>.btn,\r\n.btn-group-vertical>.btn+.btn-group,\r\n.btn-group-vertical>.btn-group+.btn,\r\n.btn-group-vertical>.btn-group+.btn-group {\r\n margin-left: 0px;\r\n}\r\n\r\n.btn-group-lg>.btn {\r\n font-size: 0.9rem;\r\n padding: 1rem 2.4rem;\r\n}\r\n\r\n.btn-group-sm>.btn {\r\n font-size: 0.6rem;\r\n padding: 0.5rem 1.6rem;\r\n}\r\n\r\n.btn-floating.btn.btn-sm,\r\n.btn-floating.btn.btn-lg {\r\n padding: 0;\r\n}\r\n");var q=function(t){var e=t.className,l=t.size,n=t.vertical,i=t.children,a=A(t,["className","size","vertical","children"]),s=o()(e,!!l&&"btn-group-".concat(l),n?"btn-group-vertical":"btn-group");return r.a.createElement("div",E({"data-test":"button-group"},a,{className:s}),i)};q.propTypes={"aria-label":s.a.string,children:s.a.node,className:s.a.string,role:s.a.string,size:s.a.string,vertical:s.a.bool},q.defaultProps={role:"group"};var X=function(t){var e=t.className,l=t.children,n=A(t,["className","children"]),i=o()(e,"btn-toolbar");return r.a.createElement("div",E({"data-test":"button-toolbar"},n,{className:i}),l)};X.propTypes={"aria-label":s.a.string,children:s.a.node,className:s.a.string,role:s.a.string},X.defaultProps={role:"toolbar"};var K=function(t){var e,l=t.className,n=t.tag,i=t.cascade,a=t.wide,s=t.narrow,u=t.reverse,c=t.testimonial,h=t.ecommerce,d=t.collection,f=t.pricing,p=t.personal,g=t.news,m=t.color,v=t.text,y=t.border,b=A(t,["className","tag","cascade","wide","narrow","reverse","testimonial","ecommerce","collection","pricing","personal","news","color","text","border"]),w=o()((M(e={"card-cascade":i,"card-cascade wider":a,"card-cascade narrower":s,"card-cascade wider reverse":u,"testimonial-card":c,"card-ecommerce":h,"collection-card":d,"pricing-card":f,"card-personal":p,"news-card":g},"".concat(v,"-text"),v),M(e,"border-".concat(y),y),e),"card",m,l);return r.a.createElement(n,E({"data-test":"card"},b,{className:w}))};K.propTypes={border:s.a.string,cascade:s.a.bool,className:s.a.string,collection:s.a.bool,color:s.a.string,ecommerce:s.a.bool,narrow:s.a.bool,news:s.a.bool,personal:s.a.bool,pricing:s.a.bool,reverse:s.a.bool,tag:s.a.string,testimonial:s.a.bool,text:s.a.string,wide:s.a.bool},K.defaultProps={tag:"div"};var $=function(t){var e=t.className,l=t.tag,n=t.cascade,i=A(t,["className","tag","cascade"]),a=o()("card-body",n&&"card-body-cascade",e);return r.a.createElement(l,E({"data-test":"card-body"},i,{className:a}))};$.propTypes={cascade:s.a.bool,className:s.a.string,tag:s.a.oneOfType([s.a.func,s.a.string])},$.defaultProps={tag:"div"};var Q=function(t){var e,l=t.className,n=t.tag,i=t.color,a=t.children,s=t.text,u=t.border,c=t.transparent,h=t.small,d=t.muted,f=A(t,["className","tag","color","children","text","border","transparent","small","muted"]),p=o()((M(e={"white-text":i&&!s},"border-".concat(u),u),M(e,"bg-transparent",c),M(e,"text-muted",d),M(e,"".concat(s,"-text"),s),e),"card-footer",i,l);return r.a.createElement(n,E({"data-test":"card-footer"},f,{className:p}),h?r.a.createElement("small",null," ",a," "):a)};Q.propTypes={border:s.a.string,className:s.a.string,color:s.a.string,muted:s.a.bool,small:s.a.bool,tag:s.a.oneOfType([s.a.func,s.a.string]),text:s.a.string,transparent:s.a.bool},Q.defaultProps={tag:"div"};var J=function(t){var e=t.className,l=t.tag,n=t.deck,i=t.column,a=A(t,["className","tag","deck","column"]),s=o()(n?"card-deck":i?"card-columns":"card-group",e);return r.a.createElement(l,E({"data-test":"card-group"},a,{className:s}))};J.propTypes={className:s.a.string,column:s.a.bool,deck:s.a.bool,tag:s.a.oneOfType([s.a.func,s.a.string])},J.defaultProps={tag:"div"};var tt=function(t){var e,l=t.border,n=t.className,i=t.color,a=t.tag,s=t.text,u=t.transparent,c=A(t,["border","className","color","tag","text","transparent"]),h=o()((M(e={"white-text":i&&!s},"border-".concat(l),l),M(e,"bg-transparent",u),M(e,"".concat(s,"-text"),s),e),"card-header",n,i);return r.a.createElement(a,E({"data-test":"card-header"},c,{className:h}))};tt.propTypes={border:s.a.string,className:s.a.string,color:s.a.string,tag:s.a.oneOfType([s.a.func,s.a.string]),text:s.a.string,transparent:s.a.bool},tt.defaultProps={tag:"div"},G(".Ripple {\r\n position: absolute;\r\n background: rgba(255, 255, 255, 0.3);\r\n border-radius: 50%;\r\n opacity: 1;\r\n transform: scale(0);\r\n}\r\n\r\n.Ripple-outline {\r\n background: rgba(0, 0, 0, 0.2);\r\n}\r\n\r\n.Ripple.is-reppling {\r\n animation: ripple 0.5s linear;\r\n}\r\n\r\n.Ripple-parent {\r\n position: relative;\r\n overflow: hidden;\r\n cursor: pointer;\r\n}\r\n\r\n@keyframes ripple {\r\n 100% {\r\n opacity: 0;\r\n transform: scale(3);\r\n }\r\n}\r\n");var et=function(t){function e(){var t,l;x(this,e);for(var n=arguments.length,r=new Array(n),i=0;it.initialLength?1:e;l.goToIndex(n)})),M(D(l),"prev",(function(){var t=l.state,e=t.activeItem,n=t.initialLength,r=e-1,i=r<1?n:r;l.goToIndex(i)})),M(D(l),"goToIndex",(function(t){l.setState(k({},l.state,{activeItem:t})),l.restartInterval()})),M(D(l),"startTouch",(function(t){!1!==l.props.mobileGesture&&l.setState({initialX:t.touches[0].clientX,initialY:t.touches[0].clientY})})),M(D(l),"moveTouch",(function(t){l.setState({swipeAvailable:!1});var e=l.state,n=e.initialX,r=e.initialY;if(null!==n&&null!==r){var i=n-t.touches[0].clientX,o=r-t.touches[0].clientY;Math.abs(i)>Math.abs(o)&&(i>0?l.next():l.prev()),l.setState({initialX:null,initialY:null})}})),l}return T(e,n.Component),S(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.interval,l=t.thumbnails,n=t.length;if(!1!==e){if(this.cycleInterval=setInterval(this.next,e),l){var r=this.carouselRef.current.querySelectorAll(".carousel-item img"),i=Array.prototype.map.call(r,(function(t){return t.src}));this.setState(k({},this.state,{srcArray:i}))}this.setState({initialLength:n})}}},{key:"componentDidUpdate",value:function(t,e){var l=this.props.length,n=l;e.initialLength!==l&&this.setState({initialLength:n})}},{key:"componentWillUnmount",value:function(){!1!==this.props.interval&&this.clearCycleIntervalHandler()}},{key:"getChildContext",value:function(){var t=this.state;return{activeItem:t.activeItem,length:t.initialLength,slide:this.props.slide}}},{key:"render",value:function(){for(var t=this,e=this.props,l=(e.activeItem,e.children),n=e.className,i=(e.interval,e.mobileGesture,e.multiItem),a=e.onHoverStop,s=e.showControls,u=e.showIndicators,c=(e.slide,e.tag),h=e.testimonial,d=e.thumbnails,f=A(e,["activeItem","children","className","interval","mobileGesture","multiItem","onHoverStop","showControls","showIndicators","slide","tag","testimonial","thumbnails"]),p=this.state,g=p.initialLength,m=p.srcArray,v=p.swipeAvailable,y=o()("carousel",i?"carousel-multi-item":"carousel-fade",d?"carousel-thumbnails":"",h?"testimonial-carousel":"",n),b=[],w=function(e){var l=t.state.activeItem;b.push(r.a.createElement(st,{img:d?m[e-1]:null,key:e,active:l===e,onClick:function(){return t.goToIndex(e)}}))},x=1;x<=g;x++)w(x);var _=!!i,S=!!h;return r.a.createElement(c,E({"data-test":"carousel",ref:this.carouselRef},f,{className:y,"aria-label":"carousel",onTouchStart:this.startTouch,onTouchMove:v?this.moveTouch:null,onTouchEnd:this.swipeAvailableHandler,onMouseEnter:a?this.clearCycleIntervalHandler:null,onMouseLeave:a?this.restartInterval:null}),s&&i&&r.a.createElement("div",{className:"controls-top"},r.a.createElement(at,{testimonial:S,multiItem:_,iconLeft:!0,className:"btn-floating",direction:"prev",role:"button",onClick:this.prev}),r.a.createElement(at,{testimonial:S,multiItem:_,iconRight:!0,className:"btn-floating",direction:"next",role:"button",onClick:this.next})),l,s&&!i&&r.a.createElement(r.a.Fragment,null,r.a.createElement(at,{testimonial:S,multiItem:_,direction:"prev",role:"button",onClick:this.prev}),r.a.createElement(at,{testimonial:S,multiItem:_,direction:"next",role:"button",onClick:this.next})),u&&r.a.createElement(ut,null,b))}}]),e}();ct.propTypes={activeItem:s.a.number,children:s.a.node,className:s.a.string,interval:s.a.oneOfType([s.a.number,s.a.bool]),length:s.a.number,mobileGesture:s.a.bool,multiItem:s.a.bool,onHoverStop:s.a.bool,showControls:s.a.bool,showIndicators:s.a.bool,slide:s.a.bool,tag:s.a.oneOfType([s.a.func,s.a.string]),testimonial:s.a.bool,thumbnails:s.a.bool},ct.defaultProps={interval:6e3,mobileGesture:!0,onHoverStop:!0,showControls:!0,showIndicators:!0,tag:"div"},ct.childContextTypes={activeItem:s.a.any,length:s.a.any,slide:s.a.any};var ht=function(t){var e=t.children,l=t.className,n=t.tag,i=A(t,["children","className","tag"]),a=o()("carousel-caption",l);return r.a.createElement(n,E({"data-test":"carousel-caption"},i,{className:a}),e)};ht.propTypes={active:s.a.string,children:s.a.node,className:s.a.string,tag:s.a.oneOfType([s.a.func,s.a.string])},ht.defaultProps={tag:"div"};var dt=function(t){var e=t.active,l=t.children,n=(t.childrenCount,t.className),i=t.tag,a=A(t,["active","children","childrenCount","className","tag"]),s=o()("carousel-inner",e?"active":"",n);return r.a.createElement(i,E({"data-test":"carousel-inner"},a,{className:s}),l)};dt.propTypes={active:s.a.bool,children:s.a.node,className:s.a.string,tag:s.a.oneOfType([s.a.func,s.a.string])},dt.defaultProps={tag:"div"};var ft=function(t){function e(){var t,l;x(this,e);for(var n=arguments.length,r=new Array(n),i=0;i0?this.moveBackwards():this.makeVisible():this.makeVisible(),r.a.createElement(i,E({"data-test":"carousel-item"},a,{className:h,style:this.style}),e)}}]),e}();ft.propTypes={active:s.a.bool,children:s.a.node,className:s.a.string,itemId:s.a.any,tag:s.a.oneOfType([s.a.func,s.a.string])},ft.defaultProps={tag:"div"},ft.contextTypes={activeItem:s.a.any,length:s.a.any,slide:s.a.any};var pt=function(t){var e=t.onClick,l=t.className,n=t.ariaLabel,i=A(t,["onClick","className","ariaLabel"]),o=l?["close"].concat(L(l.split(" "))):["close"];return r.a.createElement("button",E({"data-test":"close-button",type:"button"},i,{className:o.join(" "),onClick:function(t){e&&e(t)},"aria-label":n}),r.a.createElement("span",{"aria-hidden":"true"},"\xd7"))};pt.defaultProps={ariaLabel:"Close"},pt.propTypes={ariaLabel:s.a.string,className:s.a.string,onClick:s.a.func};var gt=function(t){var e=t.xs,l=t.sm,n=t.md,i=t.lg,a=t.xl,s=t.top,u=t.bottom,c=t.middle,h=t.size,d=t.className,f=t.tag,p=A(t,["xs","sm","md","lg","xl","top","bottom","middle","size","className","tag"]),g=o()(h&&"col-".concat(h),e&&"col-xs-".concat(e),l&&"col-sm-".concat(l),n&&"col-md-".concat(n),i&&"col-lg-".concat(i),a&&"col-xl-".concat(a),h||e||l||n||i||a?"":"col",s&&"align-self-start",c&&"align-self-center",u&&"align-self-end",d);return r.a.createElement(f,E({"data-test":"col"},p,{className:g}))};gt.propTypes={bottom:s.a.bool,className:s.a.string,lg:s.a.string,md:s.a.string,middle:s.a.bool,size:s.a.string,sm:s.a.string,tag:s.a.oneOfType([s.a.func,s.a.string]),top:s.a.bool,xl:s.a.string,xs:s.a.string},gt.defaultProps={tag:"div",xs:null,sm:null,md:null,lg:null,xl:null};var mt={show:350,hide:350},vt=function(t){function e(){var t,l;x(this,e);for(var n=arguments.length,r=new Array(n),i=0;i0&&n[0].message===a,p=e>0?e*l+1:e+1,g=s.length-1>e?s[e].length*(e+1):n.length,m=n.length;return r.a.createElement("div",{"data-test":"datatable-info",className:"col-sm-12 col-md-5"},i&&r.a.createElement("div",{className:"dataTables_info",role:"status","aria-live":"polite"},f?"".concat(u," 0 ").concat(d):"".concat(u," ").concat(p," ").concat(c," ").concat(g," ").concat(h," ").concat(m," ").concat(d)))};Ot.propTypes={activePage:s.a.number.isRequired,entries:s.a.number.isRequired,filteredRows:s.a.array.isRequired,info:s.a.bool.isRequired,noRecordsFoundLabel:s.a.string.isRequired,pages:s.a.array.isRequired,label:s.a.arrayOf(s.a.string)},Ot.defaultProps={label:["Showing","to","of","entries"]};var At=function(t){var e,l=t.children,n=t.circle,i=t.className,a=t.color,s=t.tag,u=t.size,c=A(t,["children","circle","className","color","tag","size"]),h=o()((M(e={"pagination-circle":n},"pg-".concat(a),a),M(e,"pagination-".concat(u),u),e),"pagination",i);return r.a.createElement(s,E({"data-test":"pagination"},c,{className:h}),l)};At.propTypes={children:s.a.node,circle:s.a.bool,className:s.a.string,color:s.a.string,size:s.a.oneOf(["lg","sm"]),tag:s.a.oneOfType([s.a.func,s.a.string])},At.defaultProps={circle:!1,className:"",color:"",tag:"ul"};var Dt=function(t){var e=t.active,l=t.className,n=t.children,i=t.disabled,a=t.tag,s=A(t,["active","className","children","disabled","tag"]),u=o()({disabled:i,active:e},"page-item",l);return r.a.createElement(a,E({"data-test":"page-item"},s,{className:u}),n)};Dt.propTypes={active:s.a.bool,children:s.a.node,className:s.a.string,disabled:s.a.bool,tag:s.a.oneOfType([s.a.func,s.a.string])},Dt.defaultProps={active:!1,className:"",disabled:!1,tag:"li"};var Pt=function(t){var e=t.children,l=t.className,n=t.tag,i=A(t,["children","className","tag"]),a=o()("page-link",l);return r.a.createElement(n,E({"data-test":"page-link"},i,{className:a}),e)};Pt.propTypes={children:s.a.node,className:s.a.string,tag:s.a.oneOfType([s.a.func,s.a.string])},Pt.defaultProps={tag:"a"};var It=function(t){function e(){var t,l;x(this,e);for(var n=arguments.length,r=new Array(n),i=0;i0;)t.push(e.splice(0,n));l.setState({pGroups:t})})),M(D(l),"choosePagesGroup",(function(){var t=l.props,e=t.activePage,n=t.pagesAmount,r=l.state.pGroups,i=Math.floor(e/n);return r.length?r[i]:[]})),l}return T(e,n.Component),S(e,[{key:"componentDidMount",value:function(){this.groupPages()}},{key:"render",value:function(){var t=this.props,e=t.activePage,l=t.changeActivePage,n=t.pages,i=t.label;return r.a.createElement("div",{"data-test":"datatable-pagination",className:"col-sm-12 col-md-7"},r.a.createElement("div",{className:"dataTables_paginate"},r.a.createElement(At,null,r.a.createElement(Dt,{disabled:e<=0},r.a.createElement(Pt,{className:"page-link","aria-label":i[0],onClick:function(){return l(e-1)}},r.a.createElement("span",null,i[0]))),this.choosePagesGroup().map((function(t){return r.a.createElement(Dt,{key:Object.keys(t[0])[0]+t.index,active:t.index===e},r.a.createElement(Pt,{className:"page-link",onClick:function(){return l(t.index)}},t.index+1,t.index===e&&r.a.createElement("span",{className:"sr-only"},"(current)")))})),r.a.createElement(Dt,{disabled:!n.length||e===n.length-1},r.a.createElement(Pt,{className:"page-link","aria-label":i[1],onClick:function(){return l(e+1)}},r.a.createElement("span",null,i[1]))))))}}]),e}();It.propTypes={activePage:s.a.number.isRequired,changeActivePage:s.a.func.isRequired,label:s.a.arrayOf(s.a.string).isRequired,pages:s.a.array.isRequired,pagesAmount:s.a.number.isRequired};var Lt=function(t){function e(){var t,l;x(this,e);for(var n=arguments.length,r=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;l.setState((function(){return{columns:e,rows:t,filteredRows:l.props.disableRetreatAfterSorting?l.filterRows():t}}),n&&"function"==typeof n&&function(){return n()})})),M(D(l),"setUnsearchable",(function(t){var e=[];t.forEach((function(t){void 0!==t.searchable&&!1===t.searchable&&e.push(t.field)})),l.setState({unsearchable:e})})),M(D(l),"fetchData",(function(t,e){fetch(t).then((function(t){return t.json()})).then((function(t){return l.setData(t.rows,t.columns,e?l.paginateRows:null)})).catch((function(t){return console.log(t)}))})),M(D(l),"pagesAmount",(function(){return Math.ceil(l.state.filteredRows.length/l.state.entries)})),M(D(l),"paginateRowsInitialy",(function(){for(var t=l.state,e=t.rows,n=t.entries,r=t.pages,i=l.pagesAmount(),o=1;o<=i;o++){var a=o*n;r.push(e.slice(a-n,a))}})),M(D(l),"handleEntriesChange",(function(t){l.setState({entries:Array.isArray(t)?t[0]:t},(function(){return l.paginateRows()}))})),M(D(l),"handleSearchChange",(function(t){l.setState({search:t.target.value},(function(){return l.filterRows()}),l.props.onSearch&&"function"==typeof l.props.onSearch&&l.props.onSearch(t.target.value))})),M(D(l),"checkFieldValue",(function(t,e){return t[e]&&"string"!=typeof t[e]?t[e].props.searchvalue:t[e]})),M(D(l),"checkField",(function(t,e,n,r){var i=[l.checkFieldValue(e,t),l.checkFieldValue(n,t)],o=i[0]>i[1]?-1:1;return"asc"===r&&(o*=-1),o})),M(D(l),"sort",(function(t,e,n,r){t.sort((function(t,i){return e&&e.includes(n)?l.checkField(n,t,i,r):"asc"===r?t[n]i[n]?-1:1}))})),M(D(l),"handleSort",(function(t,e){var n=l.props.onSort;"disabled"!==e&&(l.setState((function(n){var r=l.props.sortRows,i=n.rows,o=n.columns,a="desc"===e?"desc":"asc";return l.sort(i,r,t,a),o.forEach((function(e){"disabled"!==e.sort&&(e.sort=e.field===t?"desc"===e.sort?"asc":"desc":"")})),{rows:i,columns:o,sorted:!0}}),(function(){return l.filterRows()})),n&&"function"==typeof n&&n({column:t,direction:"desc"===e?"desc":"asc"}))})),M(D(l),"filterRows",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.state.search,e=l.state.unsearchable,n=l.props,r=n.sortRows,i=n.noRecordsFoundLabel;l.setState((function(n){var o=n.rows.filter((function(l){for(var n in l)if(!(e.length&&e.includes(n)||"function"==typeof l[n])){var i="";if(r&&"string"!=typeof l[n]?(o=void 0,o=[],function t(e){return"object"===w(e)?e.props.children&&Array.from(e.props.children).map((function(e){return t(e)})):o.push(e)}(l[n]),i=o.join("")):l[n]&&(i=l[n].toString()),i.toLowerCase().includes(t.toLowerCase()))return!0}var o;return!1}));0===o.length&&o.push({message:i,colspan:n.columns.length});var a={};return l.props.disableRetreatAfterSorting?a={filteredRows:o,activePage:n.activePage=n.activePage0?this.handleSort(r[0],r[1]):this.handleSort(),this.setUnsearchable(i),l?this.paginateRowsInitialy():o.push(a)}},{key:"componentDidUpdate",value:function(t,e){var l=this.state.columns,n=this.props.data;t.data!==n&&("string"==typeof n?this.fetchData(n):this.setData(n.rows,n.columns,this.paginateRows),this.setUnsearchable(l),this.filterRows())}},{key:"render",value:function(){var t=this.props,e=t.autoWidth,l=t.barReverse,n=t.bordered,i=t.borderless,a=t.btn,s=(t.children,t.className),u=t.dark,c=(t.data,t.disableRetreatAfterSorting,t.displayEntries),h=t.entriesLabel,d=t.entriesOptions,f=(t.exportToCSV,t.filter,t.fixed),p=t.hover,g=t.info,m=t.infoLabel,v=t.maxHeight,y=t.noBottomColumns,b=t.noRecordsFoundLabel,w=(t.onPageChange,t.onSearch,t.onSort,t.order,t.pagesAmount),x=t.paginationLabel,_=t.paging,S=t.responsive,M=t.responsiveLg,C=t.responsiveMd,k=t.responsiveSm,T=t.responsiveXl,O=t.scrollX,D=t.scrollY,P=t.searching,I=t.searchLabel,L=t.small,R=t.sortable,N=(t.sortRows,t.striped),j=t.tbodyColor,B=t.tbodyTextWhite,F=t.theadColor,z=t.materialSearch,U=t.theadTextWhite,H=t.proSelect,Z=A(t,["autoWidth","barReverse","bordered","borderless","btn","children","className","dark","data","disableRetreatAfterSorting","displayEntries","entriesLabel","entriesOptions","exportToCSV","filter","fixed","hover","info","infoLabel","maxHeight","noBottomColumns","noRecordsFoundLabel","onPageChange","onSearch","onSort","order","pagesAmount","paginationLabel","paging","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","scrollX","scrollY","searching","searchLabel","small","sortable","sortRows","striped","tbodyColor","tbodyTextWhite","theadColor","materialSearch","theadTextWhite","proSelect"]),V=this.state,W=V.columns,G=V.entries,Y=V.filteredRows,q=(V.filterOptions,V.pages),X=V.activePage,K=V.search,$=V.sorted,Q=V.translateScrollHead,J=o()("dataTables_wrapper dt-bootstrap4",s);return r.a.createElement("div",{"data-test":"datatable",className:J},r.a.createElement("div",{className:"row"},l?r.a.createElement(r.a.Fragment,null,r.a.createElement(Tt,{handleSearchChange:this.handleSearchChange,search:K,searching:P,label:I,barReverse:l,materialSearch:z}),r.a.createElement(Ct,{paging:_,displayEntries:c,entries:G,handleEntriesChange:this.handleEntriesChange,entriesArr:d,label:h,barReverse:l,proSelect:H})):r.a.createElement(r.a.Fragment,null,r.a.createElement(Ct,{paging:_,displayEntries:c,entries:G,handleEntriesChange:this.handleEntriesChange,entriesArr:d,label:h,barReverse:l,proSelect:H}),r.a.createElement(Tt,{handleSearchChange:this.handleSearchChange,search:K,searching:P,label:I,barReverse:l,materialSearch:z}))),!D&&!O&&r.a.createElement("div",{className:"row"},r.a.createElement(St,E({autoWidth:e,bordered:n,borderless:i,btn:a,dark:u,fixed:f,hover:p,noBottomColumns:y,noRecordsFoundLabel:b,responsive:S,responsiveSm:k,responsiveMd:C,responsiveLg:M,responsiveXl:T,small:L,striped:N,theadColor:F,theadTextWhite:U,columns:W,handleSort:this.handleSort,sortable:R,tbodyColor:j,tbodyTextWhite:B,rows:q[X],sorted:$},Z))),(D||O)&&r.a.createElement("div",{className:"row"},r.a.createElement(Mt,E({autoWidth:e,bordered:n,borderless:i,btn:a,dark:u,fixed:f,handleTableBodyScroll:this.handleTableBodyScroll,hover:p,maxHeight:v,responsive:S,responsiveSm:k,responsiveMd:C,responsiveLg:M,responsiveXl:T,scrollX:O,scrollY:D,small:L,striped:N,theadColor:F,theadTextWhite:U,columns:W,handleSort:this.handleSort,sortable:R,sorted:$,tbodyColor:j,tbodyTextWhite:B,rows:q[X],translateScrollHead:Q},Z))),_&&r.a.createElement("div",{className:"row"},r.a.createElement(Ot,{activePage:X,entries:G,filteredRows:Y,info:g,pages:q,label:m,noRecordsFoundLabel:b}),r.a.createElement(It,{activePage:X,changeActivePage:this.changeActivePage,pages:q,pagesAmount:w,label:x})))}}]),e}();Lt.propTypes={autoWidth:s.a.bool,barReverse:s.a.bool,bordered:s.a.bool,borderless:s.a.bool,btn:s.a.bool,children:s.a.node,className:s.a.string,dark:s.a.bool,data:s.a.oneOfType([s.a.object,s.a.string]),disableRetreatAfterSorting:s.a.bool,displayEntries:s.a.bool,entries:s.a.number,entriesLabel:s.a.oneOfType([s.a.string,s.a.number,s.a.object]),entriesOptions:s.a.arrayOf(s.a.number),exportToCSV:s.a.bool,filter:s.a.string,fixed:s.a.bool,hover:s.a.bool,info:s.a.bool,infoLabel:s.a.oneOfType([s.a.array,s.a.object,s.a.string]),materialSearch:s.a.bool,maxHeight:s.a.string,noBottomColumns:s.a.bool,noRecordsFoundLabel:s.a.string,onPageChange:s.a.func,onSearch:s.a.func,onSort:s.a.func,order:s.a.arrayOf(s.a.string),pagesAmount:s.a.number,paginationLabel:s.a.arrayOf(s.a.string),paging:s.a.bool,proSelect:s.a.bool,responsive:s.a.bool,responsiveLg:s.a.bool,responsiveMd:s.a.bool,responsiveSm:s.a.bool,responsiveXl:s.a.bool,scrollX:s.a.bool,scrollY:s.a.bool,searching:s.a.bool,searchLabel:s.a.string,small:s.a.bool,sortable:s.a.bool,sortRows:s.a.arrayOf(s.a.string),striped:s.a.bool,tbodyColor:s.a.string,tbodyTextWhite:s.a.bool,theadColor:s.a.string,theadTextWhite:s.a.bool},Lt.defaultProps={autoWidth:!1,barReverse:!1,bordered:!1,borderless:!1,btn:!1,dark:!1,data:{columns:[],rows:[]},disableRetreatAfterSorting:!1,displayEntries:!0,entries:10,entriesLabel:"Show entries",entriesOptions:[10,20,50,100],exportToCSV:!1,fixed:!1,hover:!1,info:!0,infoLabel:["Showing","to","of","entries"],noRecordsFoundLabel:"No matching records found",noBottomColumns:!1,order:[],pagesAmount:8,paging:!0,paginationLabel:["Previous","Next"],responsive:!1,responsiveSm:!1,responsiveMd:!1,responsiveLg:!1,responsiveXl:!1,searching:!0,searchLabel:"Search",scrollX:!1,scrollY:!1,sortable:!0,small:!1,striped:!1,theadColor:"",theadTextWhite:!1,tbodyColor:"",tbodyTextWhite:!1,proSelect:!1,materialSearch:!1};var Rt=function(t){var e=t.color,l=t.columns,n=t.handleSort,i=t.scrollX,a=t.scrollY,s=t.sortable,u=t.sorted,c=t.textWhite,h=o()("mdb-dataTable-head",e&&("dark"!==e&&"light"!==e?e:"thead-".concat(e)),c&&"text-white");return r.a.createElement(r.a.Fragment,null,(a||i)&&r.a.createElement("colgroup",null,l.map((function(t){return r.a.createElement("col",{key:t.field,style:{width:"".concat(t.width,"px")||!1,minWidth:"".concat(t.width,"px")||!1}})}))),r.a.createElement("thead",{"data-test":"datatable-head",className:h||void 0},r.a.createElement("tr",null,l.map((function(t){return r.a.createElement("th",E({onClick:function(){return s&&n(t.field,t.sort)},key:t.field,className:o()(t.hasOwnProperty("minimal")?"th-".concat(t.minimal):null,s&&"disabled"!==t.sort&&(u&&t.sort?"sorting_".concat("asc"===t.sort?"desc":"asc"):"sorting"))},t.attributes),t.label)})))))};Rt.propTypes={sorted:s.a.bool.isRequired,color:s.a.string,columns:s.a.arrayOf(s.a.object),handleSort:s.a.func,scrollX:s.a.bool,scrollY:s.a.bool,sortable:s.a.bool,textWhite:s.a.bool},Rt.defaultProps={scrollX:!1,scrollY:!1,sortable:!0,textWhite:!1};var Nt=function(t){var e=t.autoWidth,l=t.bordered,n=t.borderless,i=t.btn,o=t.children,a=t.columns,s=t.dark,u=t.fixed,c=t.handleSort,h=t.hover,d=t.noBottomColumns,f=(t.noRecordsFoundLabel,t.responsive),p=t.responsiveLg,g=t.responsiveMd,m=t.responsiveSm,v=t.responsiveXl,y=t.rows,b=t.small,w=t.sortable,x=t.sorted,_=t.striped,S=t.tbodyColor,M=t.tbodyTextWhite,C=t.theadColor,k=t.theadTextWhite,T=(t.checkbox,A(t,["autoWidth","bordered","borderless","btn","children","columns","dark","fixed","handleSort","hover","noBottomColumns","noRecordsFoundLabel","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","rows","small","sortable","sorted","striped","tbodyColor","tbodyTextWhite","theadColor","theadTextWhite","checkbox"]));return r.a.createElement("div",{"data-test":"mdb-datatable-table",className:"col-sm-12"},r.a.createElement(wt,E({autoWidth:e,bordered:l,borderless:n,btn:i,dark:s,fixed:u,hover:h,responsive:f,responsiveSm:m,responsiveMd:g,responsiveLg:p,responsiveXl:v,small:b,striped:_,className:"mdb-dataTable"},T),r.a.createElement(Rt,{color:C,textWhite:k,columns:a,handleSort:c,sortable:w,sorted:x}),r.a.createElement(xt,{color:S,textWhite:M,rows:y,columns:a}),!d&&r.a.createElement(_t,{color:C,textWhite:k,columns:a}),o))};Nt.propTypes={autoWidth:s.a.bool.isRequired,bordered:s.a.bool.isRequired,borderless:s.a.bool.isRequired,btn:s.a.bool.isRequired,dark:s.a.bool.isRequired,fixed:s.a.bool.isRequired,handleSort:s.a.func.isRequired,hover:s.a.bool.isRequired,responsive:s.a.bool.isRequired,responsiveLg:s.a.bool.isRequired,responsiveMd:s.a.bool.isRequired,responsiveSm:s.a.bool.isRequired,responsiveXl:s.a.bool.isRequired,small:s.a.bool.isRequired,sortable:s.a.bool.isRequired,sorted:s.a.bool.isRequired,striped:s.a.bool.isRequired,tbodyColor:s.a.string.isRequired,tbodyTextWhite:s.a.bool.isRequired,theadColor:s.a.string.isRequired,theadTextWhite:s.a.bool.isRequired,children:s.a.node,columns:s.a.arrayOf(s.a.object),noBottomColumns:s.a.bool,rows:s.a.arrayOf(s.a.object)};var jt=function(t){var e=t.autoWidth,l=t.bordered,n=t.borderless,i=t.btn,o=t.children,a=t.columns,s=t.dark,u=t.fixed,c=t.handleSort,h=t.handleTableBodyScroll,d=t.hover,f=t.maxHeight,p=t.responsive,g=t.responsiveLg,m=t.responsiveMd,v=t.responsiveSm,y=t.responsiveXl,b=t.rows,w=t.scrollX,x=t.scrollY,_=t.small,S=t.sortable,M=t.sorted,C=t.striped,k=t.tbodyColor,T=t.tbodyTextWhite,O=t.theadColor,D=t.theadTextWhite,P=t.translateScrollHead,I=A(t,["autoWidth","bordered","borderless","btn","children","columns","dark","fixed","handleSort","handleTableBodyScroll","hover","maxHeight","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","rows","scrollX","scrollY","small","sortable","sorted","striped","tbodyColor","tbodyTextWhite","theadColor","theadTextWhite","translateScrollHead"]),L=w?"".concat(a.map((function(t){return t.width})).reduce((function(t,e){return t+e}),0),"px"):"auto";return r.a.createElement("div",{"data-test":"datatable-table-scroll",className:"col-sm-12"},r.a.createElement("div",{className:"dataTables_scroll"},r.a.createElement("div",{className:"dataTables_scrollHead",style:{overflow:"hidden"}},r.a.createElement("div",{className:"dataTables_scrollHeadInner",style:{position:"relative",transform:"translateX(-".concat(P,"px)"),boxSizing:"content-box",paddingRight:x?"15px":null,minWidth:L}},r.a.createElement(wt,E({autoWidth:e,bordered:l,borderless:n,btn:i,dark:s,fixed:u,hover:d,responsive:p,responsiveSm:v,responsiveMd:m,responsiveLg:g,responsiveXl:y,small:_,striped:C,className:"dataTable"},I),r.a.createElement(Rt,{color:O,textWhite:D,columns:a,handleSort:c,scrollX:w,scrollY:x,sortable:S,sorted:M})))),r.a.createElement("div",{className:"mdb-dataTable_scrollBody",style:{overflow:"auto"},onScroll:h},r.a.createElement(wt,E({style:{minWidth:L},autoWidth:e,bordered:l,borderless:n,btn:i,dark:s,fixed:u,hover:d,maxHeight:f,responsive:p,responsiveSm:v,responsiveMd:m,responsiveLg:g,responsiveXl:y,scrollY:x,small:_,striped:C,className:"mdb-dataTable"},I),r.a.createElement("colgroup",null,a.map((function(t){return r.a.createElement("col",{key:t.field,style:{width:"".concat(t.width,"px")||!1,minWidth:"".concat(t.width,"px")||!1}})}))),r.a.createElement(xt,{color:k,textWhite:T,rows:b,columns:a}),o))))};jt.propTypes={autoWidth:s.a.bool.isRequired,bordered:s.a.bool.isRequired,borderless:s.a.bool.isRequired,btn:s.a.bool.isRequired,dark:s.a.bool.isRequired,fixed:s.a.bool.isRequired,handleSort:s.a.func.isRequired,handleTableBodyScroll:s.a.func.isRequired,hover:s.a.bool.isRequired,responsive:s.a.bool.isRequired,responsiveLg:s.a.bool.isRequired,responsiveMd:s.a.bool.isRequired,responsiveSm:s.a.bool.isRequired,responsiveXl:s.a.bool.isRequired,small:s.a.bool.isRequired,sortable:s.a.bool.isRequired,sorted:s.a.bool.isRequired,striped:s.a.bool.isRequired,tbodyColor:s.a.string.isRequired,tbodyTextWhite:s.a.bool.isRequired,theadColor:s.a.string.isRequired,theadTextWhite:s.a.bool.isRequired,translateScrollHead:s.a.number.isRequired,children:s.a.node,columns:s.a.arrayOf(s.a.object),maxHeight:s.a.string,rows:s.a.arrayOf(s.a.object),scrollX:s.a.bool,scrollY:s.a.bool};var Bt=function(t){var e=t.value,l=t.onChange,n=t.entries,i=t.label,o=t.style,a=(t.barReverse,A(t,["value","onChange","entries","label","style","barReverse"]));return r.a.createElement("div",{"data-test":"datatable-select",className:"mdb-datatable-length bs-select"},r.a.createElement("label",null,i,r.a.createElement("select",E({value:e,onChange:function(t){var e=parseInt(t.target.value,10);l(e)},className:"custom-select custom-select-sm form-control form-control-sm",style:k({marginLeft:".5rem"},o)},a),n.map((function(t){return r.a.createElement("option",{key:t,value:t},t)})))))};Bt.propTypes={entries:s.a.arrayOf(s.a.number).isRequired,label:s.a.oneOfType([s.a.string,s.a.number,s.a.object]).isRequired,onChange:s.a.func.isRequired,value:s.a.number.isRequired,style:s.a.object};var Ft=function(t){var e=t.handleEntriesChange,l=t.displayEntries,n=t.entries,i=t.entriesArr,a=t.paging,s=t.label,u=t.barReverse,c=t.className,h=t.proSelect,d=A(t,["handleEntriesChange","displayEntries","entries","entriesArr","paging","label","barReverse","className","proSelect"]),f=o()("mdb-datatable-entries",c);return r.a.createElement("div",{"data-test":"mdb-datatable-entries",className:f},a&&l&&!h&&r.a.createElement(Bt,E({value:n,onChange:e,entries:i,label:s,barReverse:u},d)))};Ft.propTypes={displayEntries:s.a.bool.isRequired,entries:s.a.number.isRequired,entriesArr:s.a.arrayOf(s.a.number).isRequired,handleEntriesChange:s.a.func.isRequired,label:s.a.oneOfType([s.a.number,s.a.object,s.a.string]).isRequired,paging:s.a.bool.isRequired,barReverse:s.a.bool,proSelect:s.a.bool};var zt=function(t){var e=t.value,l=t.onChange,n=t.label,i=t.barReverse,a=t.materialSearch;return r.a.createElement("div",{"data-test":"datatable-input",className:o()("mdb-datatable-filter","flex-row",i&&"text-left")},a?r.a.createElement(d.e,{hint:"Search",containerClass:"mt-0",value:e,onChange:l,type:"search",className:"form-control form-control-sm",placeholder:n||"Search"}):r.a.createElement("input",{className:"form-control form-control-sm ml-0 my-1",type:"text",placeholder:n||"Search","aria-label":"Search",value:e,onChange:l}))};zt.propTypes={barReverse:s.a.bool,label:s.a.string,onChange:s.a.func,value:s.a.oneOfType([s.a.string,s.a.object,s.a.array,s.a.number])};var Ut=function(t){var e=t.handleSearchChange,l=t.search,n=t.searching,i=t.label,o=t.barReverse,a=t.wrapperSearchStyle,s=t.wrapperSearchClasses,u=t.materialSearch,c=A(t,["handleSearchChange","search","searching","label","barReverse","wrapperSearchStyle","wrapperSearchClasses","materialSearch"]);return n&&r.a.createElement("div",{"data-test":"datatable-search",style:k({display:"flex",alignItems:"center"},a),className:s},r.a.createElement(zt,E({value:l,onChange:e,label:i,barReverse:o,materialSearch:u},c)))};Ut.propTypes={handleSearchChange:s.a.func.isRequired,search:s.a.string.isRequired,searching:s.a.bool.isRequired,barReverse:s.a.bool,label:s.a.string,materialSearch:s.a.bool};var Ht=function(t){var e=t.activePage,l=t.entries,n=t.filteredRows,i=t.info,o=t.label,a=t.noRecordsFoundLabel,s=t.pages,u=o[0],c=o[1],h=o[2],d=o[3],f=n.length>0&&n[0].message===a,p=e>0?e*l+1:e+1,g=s.length-1>e?s[e].length*(e+1):n.length,m=n.length;return r.a.createElement(r.a.Fragment,null,i&&r.a.createElement("div",{"data-test":"datatable-info",className:"mdb-datatable-info d-flex align-items-center"},r.a.createElement("div",{role:"status","aria-live":"polite"},f?"".concat(u," 0 ").concat(d):"".concat(u," ").concat(p," ").concat(c," ").concat(g," ").concat(h," ").concat(m," ").concat(d))))};Ht.propTypes={activePage:s.a.number.isRequired,entries:s.a.number.isRequired,filteredRows:s.a.array.isRequired,info:s.a.bool.isRequired,noRecordsFoundLabel:s.a.string.isRequired,pages:s.a.array.isRequired,label:s.a.arrayOf(s.a.string)},Ht.defaultProps={label:["Showing","to","of","entries"]};var Zt=function(t){function e(){var t,l;x(this,e);for(var n=arguments.length,r=new Array(n),i=0;i0;)t.push(e.splice(0,n));l.setState({pGroups:t})})),M(D(l),"choosePagesGroup",(function(){var t=l.props,e=t.activePage,n=t.pagesAmount,r=l.state.pGroups,i=Math.floor(e/n);return r.length?r[i]:[]})),l}return T(e,n.Component),S(e,[{key:"componentDidMount",value:function(){this.groupPages()}},{key:"render",value:function(){var t=this.props,e=t.activePage,l=t.changeActivePage,n=t.pages,i=t.label,o=t.fullPagination,a=t.pagesNumber;return r.a.createElement("div",{"data-test":"datatable-pagination"},r.a.createElement("div",{className:"mdb-dataTables_paginate"},r.a.createElement(At,{className:"m-0"},o&&r.a.createElement(Dt,{disabled:e<=0},r.a.createElement(Pt,{className:"page-link","aria-label":i[0],onClick:function(){return l(0)}},r.a.createElement("span",null,r.a.createElement("i",{className:"fas fa-angle-double-left"})))),r.a.createElement(Dt,{disabled:e<=0},r.a.createElement(Pt,{className:"page-link","aria-label":i[0],onClick:function(){return l(e-1)}},r.a.createElement("span",null,r.a.createElement("i",{className:"fas fa-chevron-left"})))),a&&this.choosePagesGroup().map((function(t){return r.a.createElement(Dt,{key:Object.keys(t[0])[0]+t.index,active:t.index===e},r.a.createElement(Pt,{className:"page-link",onClick:function(){return l(t.index)}},t.index+1,t.index===e&&r.a.createElement("span",{className:"sr-only"},"(current)")))})),r.a.createElement(Dt,{disabled:!n.length||e===n.length-1},r.a.createElement(Pt,{className:"page-link","aria-label":i[1],onClick:function(){return l(e+1)}},r.a.createElement("span",null,r.a.createElement("i",{className:"fas fa-chevron-right"})))),o&&r.a.createElement(Dt,{disabled:!n.length||e===n.length-1},r.a.createElement(Pt,{className:"page-link","aria-label":i[1],onClick:function(){return l(n.length-1)}},r.a.createElement("span",null,r.a.createElement("i",{className:"fas fa-angle-double-right"})))))))}}]),e}();Zt.propTypes={activePage:s.a.number.isRequired,changeActivePage:s.a.func.isRequired,label:s.a.arrayOf(s.a.string).isRequired,pages:s.a.array.isRequired,pagesAmount:s.a.number.isRequired,fullPagination:s.a.bool,pagesNumber:s.a.bool},G('div.mdb-datatable div.mdb-datatable-length select,\ndiv.mdb-datatable div.mdb-datatable-length input {\n width: auto; }\n\ndiv.mdb-datatable div.mdb-datatable-length.d-flex.flex-row label {\n margin-top: 1.2rem;\n margin-right: 1rem; }\n\ndiv.mdb-datatable div.mdb-datatable-length.d-flex.flex-row .select-wrapper.mdb-select span,\ndiv.mdb-datatable div.mdb-datatable-length.d-flex.flex-row .select-wrapper.mdb-select .select-dropdown {\n margin-top: 1rem; }\n\ndiv.mdb-datatable div.mdb-datatable-length label, div.mdb-datatable div.mdb-datatable-filter label {\n font-weight: 400;\n text-align: left;\n margin-bottom: 0; }\n\ndiv.mdb-datatable div.mdb-datatable-filter {\n text-align: right; }\n div.mdb-datatable div.mdb-datatable-filter select,\n div.mdb-datatable div.mdb-datatable-filter input {\n width: auto; }\n div.mdb-datatable div.mdb-datatable-filter input {\n display: inline-block;\n margin-left: .5rem; }\n\ndiv.mdb-datatable div.mdb-datatable-info, div.mdb-datatable div.mdb-dataTables_paginate, div.mdb-datatable div.mdb-datatable-entries {\n padding-top: 1rem;\n padding-bottom: 1rem;\n font-weight: 400;\n font-size: .9rem;\n padding-left: .7rem;\n padding-right: .7rem; }\n\ndiv.mdb-datatable div.mdb-datatable-info {\n display: flex;\n justify-content: center; }\n\ndiv.mdb-datatable div.mdb-dataTables_paginate {\n margin: 0;\n text-align: right; }\n div.mdb-datatable div.mdb-dataTables_paginate ul.pagination {\n -ms-flex-pack: end;\n -webkit-justify-content: flex-end;\n justify-content: flex-end;\n -webkit-box-pack: end; }\n div.mdb-datatable div.mdb-dataTables_paginate ul.pagination .page-item.active .page-link {\n background-color: #7e7e7e; }\n div.mdb-datatable div.mdb-dataTables_paginate ul.pagination .page-item.active .page-link:focus {\n background-color: #7e7e7e; }\n div.mdb-datatable div.mdb-dataTables_paginate ul.pagination .page-item .page-link:focus {\n -webkit-box-shadow: none;\n box-shadow: none; }\n\n@media (max-width: 767px) {\n div.mdb-datatable div .mdb-datatable-length,\n div.mdb-datatable div .mdb-datatable-filter,\n div.mdb-datatable div .mdb-datatable-info,\n div.mdb-datatable div .mdb-dataTables_paginate ul.pagination {\n -ms-flex-pack: center;\n -webkit-justify-content: center;\n justify-content: center;\n text-align: center;\n -webkit-box-pack: center; } }\n\n.bs-select select {\n display: inline-block !important; }\n\ntable.mdb-dataTable thead,\ntable thead.mdb-dataTable-head {\n cursor: pointer; }\n table.mdb-dataTable thead th,\n table thead.mdb-dataTable-head th {\n font-weight: 600; }\n table.mdb-dataTable thead > tr > th.sorting_asc, table.mdb-dataTable thead > tr > th.sorting_desc, table.mdb-dataTable thead > tr > th.sorting,\n table.mdb-dataTable thead > tr > td.sorting_asc,\n table.mdb-dataTable thead > tr > td.sorting_desc,\n table.mdb-dataTable thead > tr > td.sorting,\n table thead.mdb-dataTable-head > tr > th.sorting_asc,\n table thead.mdb-dataTable-head > tr > th.sorting_desc,\n table thead.mdb-dataTable-head > tr > th.sorting,\n table thead.mdb-dataTable-head > tr > td.sorting_asc,\n table thead.mdb-dataTable-head > tr > td.sorting_desc,\n table thead.mdb-dataTable-head > tr > td.sorting {\n padding-right: 30px; }\n table.mdb-dataTable thead > tr > th:active,\n table.mdb-dataTable thead > tr > td:active,\n table thead.mdb-dataTable-head > tr > th:active,\n table thead.mdb-dataTable-head > tr > td:active {\n outline: none; }\n table.mdb-dataTable thead .sorting,\n table.mdb-dataTable thead .sorting_asc,\n table.mdb-dataTable thead .sorting_desc,\n table.mdb-dataTable thead .sorting_asc_disabled,\n table.mdb-dataTable thead .sorting_desc_disabled,\n table thead.mdb-dataTable-head .sorting,\n table thead.mdb-dataTable-head .sorting_asc,\n table thead.mdb-dataTable-head .sorting_desc,\n table thead.mdb-dataTable-head .sorting_asc_disabled,\n table thead.mdb-dataTable-head .sorting_desc_disabled {\n position: relative;\n cursor: pointer; }\n table.mdb-dataTable thead .sorting:before, table.mdb-dataTable thead .sorting:after,\n table.mdb-dataTable thead .sorting_asc:before,\n table.mdb-dataTable thead .sorting_asc:after,\n table.mdb-dataTable thead .sorting_desc:before,\n table.mdb-dataTable thead .sorting_desc:after,\n table.mdb-dataTable thead .sorting_asc_disabled:before,\n table.mdb-dataTable thead .sorting_asc_disabled:after,\n table.mdb-dataTable thead .sorting_desc_disabled:before,\n table.mdb-dataTable thead .sorting_desc_disabled:after,\n table thead.mdb-dataTable-head .sorting:before,\n table thead.mdb-dataTable-head .sorting:after,\n table thead.mdb-dataTable-head .sorting_asc:before,\n table thead.mdb-dataTable-head .sorting_asc:after,\n table thead.mdb-dataTable-head .sorting_desc:before,\n table thead.mdb-dataTable-head .sorting_desc:after,\n table thead.mdb-dataTable-head .sorting_asc_disabled:before,\n table thead.mdb-dataTable-head .sorting_asc_disabled:after,\n table thead.mdb-dataTable-head .sorting_desc_disabled:before,\n table thead.mdb-dataTable-head .sorting_desc_disabled:after {\n position: absolute;\n bottom: 1rem;\n display: block;\n opacity: 0; }\n table.mdb-dataTable thead .sorting:hover::before,\n table thead.mdb-dataTable-head .sorting:hover::before {\n opacity: 0.6; }\n table.mdb-dataTable thead .sorting:before,\n table.mdb-dataTable thead .sorting_asc:before,\n table.mdb-dataTable thead .sorting_desc:before,\n table.mdb-dataTable thead .sorting_asc_disabled:before,\n table.mdb-dataTable thead .sorting_desc_disabled:before,\n table thead.mdb-dataTable-head .sorting:before,\n table thead.mdb-dataTable-head .sorting_asc:before,\n table thead.mdb-dataTable-head .sorting_desc:before,\n table thead.mdb-dataTable-head .sorting_asc_disabled:before,\n table thead.mdb-dataTable-head .sorting_desc_disabled:before {\n left: -.4rem;\n font-family: "Font Awesome\\ 5 Free", sans-serif;\n font-size: 1rem;\n font-weight: 900;\n content: "\\f062"; }\n table.mdb-dataTable thead .sorting:after,\n table.mdb-dataTable thead .sorting_asc:after,\n table.mdb-dataTable thead .sorting_desc:after,\n table.mdb-dataTable thead .sorting_asc_disabled:after,\n table.mdb-dataTable thead .sorting_desc_disabled:after,\n table thead.mdb-dataTable-head .sorting:after,\n table thead.mdb-dataTable-head .sorting_asc:after,\n table thead.mdb-dataTable-head .sorting_desc:after,\n table thead.mdb-dataTable-head .sorting_asc_disabled:after,\n table thead.mdb-dataTable-head .sorting_desc_disabled:after {\n left: -.4rem;\n font-family: "Font Awesome\\ 5 Free", sans-serif;\n font-size: 1rem;\n font-weight: 900;\n content: "\\f063"; }\n table.mdb-dataTable thead .sorting_asc:before,\n table.mdb-dataTable thead .sorting_desc:after,\n table thead.mdb-dataTable-head .sorting_asc:before,\n table thead.mdb-dataTable-head .sorting_desc:after {\n opacity: 1; }\n table.mdb-dataTable thead .sorting_asc_disabled:before,\n table.mdb-dataTable thead .sorting_desc_disabled:after,\n table thead.mdb-dataTable-head .sorting_asc_disabled:before,\n table thead.mdb-dataTable-head .sorting_desc_disabled:after {\n opacity: 0; }\n\n.mdb-dataTable_scrollBodyHead .dataTables_scrollHeadInner,\n.mdb-dataTable_scrollBodyHead .dataTables_scrollHeadInner table {\n padding-right: 0 !important;\n margin-right: 0 !important;\n width: 100% !important; }\n\n.mdb-dataTable_scrollBodyHead .dataTables_scrollHeadInner table {\n margin-bottom: 0 !important; }\n\n.dataTables_scrollFoot .dataTables_scrollFootInner,\n.dataTables_scrollFoot .dataTables_scrollFootInner table {\n padding-right: 0 !important;\n margin-right: 0 !important;\n width: 100% !important; }\n\n.mdb-datatable table tr {\n border-bottom: 1px solid #dee2e6; }\n'),G("table.mdb-dataTable tbody > tr.selected,\ntable.mdb-dataTable tbody > tr > .selected {\n background-color: #f5f5f5; }\n\ntable.mdb-dataTable tbody > tr:not(.selected):hover {\n background-color: rgba(245, 245, 245, 0.4); }\n\ntable.mdb-dataTable.stripe tbody > tr.odd.selected,\ntable.mdb-dataTable.stripe tbody > tr.odd > .selected, table.mdb-dataTable.display tbody > tr.odd.selected,\ntable.mdb-dataTable.display tbody > tr.odd > .selected {\n background-color: #acbad4; }\n\ntable.mdb-dataTable.hover tbody > tr.selected:hover,\ntable.mdb-dataTable.hover tbody > tr > .selected:hover, table.mdb-dataTable.display tbody > tr.selected:hover,\ntable.mdb-dataTable.display tbody > tr > .selected:hover {\n background-color: #aab7d1; }\n\ntable.mdb-dataTable.order-column tbody > tr.selected > .sorting_1,\ntable.mdb-dataTable.order-column tbody > tr.selected > .sorting_2,\ntable.mdb-dataTable.order-column tbody > tr.selected > .sorting_3, table.mdb-dataTable.display tbody > tr.selected > .sorting_1,\ntable.mdb-dataTable.display tbody > tr.selected > .sorting_2,\ntable.mdb-dataTable.display tbody > tr.selected > .sorting_3 {\n background-color: #acbad5; }\n\ntable.mdb-dataTable.order-column tbody > tr > .selected, table.mdb-dataTable.display tbody > tr > .selected {\n background-color: #acbad5; }\n\ntable.mdb-dataTable.display tbody > tr.odd.selected > .sorting_1, table.mdb-dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_1 {\n background-color: #a6b4cd; }\n\ntable.mdb-dataTable.display tbody > tr.odd.selected > .sorting_2,\ntable.mdb-dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_2 {\n background-color: #a8b5cf; }\n\ntable.mdb-dataTable.display tbody > tr.odd.selected > .sorting_3,\ntable.mdb-dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_3 {\n background-color: #a9b7d1; }\n\ntable.mdb-dataTable.display tbody > tr.even.selected > .sorting_1,\ntable.mdb-dataTable.order-column.stripe tbody > tr.even.selected > .sorting_1 {\n background-color: #acbad5; }\n\ntable.mdb-dataTable.display tbody > tr.even.selected > .sorting_2,\ntable.mdb-dataTable.order-column.stripe tbody > tr.even.selected > .sorting_2 {\n background-color: #aebcd6; }\n\ntable.mdb-dataTable.display tbody > tr.even.selected > .sorting_3,\ntable.mdb-dataTable.order-column.stripe tbody > tr.even.selected > .sorting_3 {\n background-color: #afbdd8; }\n\ntable.mdb-dataTable.display tbody > tr.odd > .selected,\ntable.mdb-dataTable.order-column.stripe tbody > tr.odd > .selected {\n background-color: #a6b4cd; }\n\ntable.mdb-dataTable.display tbody > tr.even > .selected,\ntable.mdb-dataTable.order-column.stripe tbody > tr.even > .selected {\n background-color: #acbad5; }\n\ntable.mdb-dataTable.display tbody > tr.selected:hover > .sorting_1,\ntable.mdb-dataTable.order-column.hover tbody > tr.selected:hover > .sorting_1 {\n background-color: #a2aec7; }\n\ntable.mdb-dataTable.display tbody > tr.selected:hover > .sorting_2,\ntable.mdb-dataTable.order-column.hover tbody > tr.selected:hover > .sorting_2 {\n background-color: #a3b0c9; }\n\ntable.mdb-dataTable.display tbody > tr.selected:hover > .sorting_3,\ntable.mdb-dataTable.order-column.hover tbody > tr.selected:hover > .sorting_3 {\n background-color: #a5b2cb; }\n\ntable.mdb-dataTable.display tbody > tr:hover > .selected,\ntable.mdb-dataTable.display tbody > tr > .selected:hover, table.mdb-dataTable.order-column.hover tbody > tr:hover > .selected,\ntable.mdb-dataTable.order-column.hover tbody > tr > .selected:hover {\n background-color: #a2aec7; }\n\ntable.mdb-dataTable tbody td.select-checkbox, table.mdb-dataTable tbody td.select-checkbox-all,\ntable.mdb-dataTable tbody th.select-checkbox,\ntable.mdb-dataTable tbody th.select-checkbox-all,\ntable.mdb-dataTable thead td.select-checkbox,\ntable.mdb-dataTable thead td.select-checkbox-all,\ntable.mdb-dataTable thead th.select-checkbox,\ntable.mdb-dataTable thead th.select-checkbox-all {\n position: relative; }\n table.mdb-dataTable tbody td.select-checkbox:before, table.mdb-dataTable tbody td.select-checkbox:after, table.mdb-dataTable tbody td.select-checkbox-all:before, table.mdb-dataTable tbody td.select-checkbox-all:after,\n table.mdb-dataTable tbody th.select-checkbox:before,\n table.mdb-dataTable tbody th.select-checkbox:after,\n table.mdb-dataTable tbody th.select-checkbox-all:before,\n table.mdb-dataTable tbody th.select-checkbox-all:after,\n table.mdb-dataTable thead td.select-checkbox:before,\n table.mdb-dataTable thead td.select-checkbox:after,\n table.mdb-dataTable thead td.select-checkbox-all:before,\n table.mdb-dataTable thead td.select-checkbox-all:after,\n table.mdb-dataTable thead th.select-checkbox:before,\n table.mdb-dataTable thead th.select-checkbox:after,\n table.mdb-dataTable thead th.select-checkbox-all:before,\n table.mdb-dataTable thead th.select-checkbox-all:after {\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n left: 50%;\n box-sizing: border-box;\n display: block;\n width: 20px;\n height: 20px; }\n table.mdb-dataTable tbody td.select-checkbox:hover, table.mdb-dataTable tbody td.select-checkbox-all:hover,\n table.mdb-dataTable tbody th.select-checkbox:hover,\n table.mdb-dataTable tbody th.select-checkbox-all:hover,\n table.mdb-dataTable thead td.select-checkbox:hover,\n table.mdb-dataTable thead td.select-checkbox-all:hover,\n table.mdb-dataTable thead th.select-checkbox:hover,\n table.mdb-dataTable thead th.select-checkbox-all:hover {\n cursor: pointer; }\n\ntable.mdb-dataTable tbody td.select-checkbox:before,\ntable.mdb-dataTable tbody th.select-checkbox.select-checkbox-all:before,\ntable.mdb-dataTable thead td.select-checkbox:before,\ntable.mdb-dataTable thead th.select-checkbox.select-checkbox-all:before {\n content: ' ';\n border: 2px solid #5a5a5a;\n border-radius: 3px; }\n\ntable.mdb-dataTable tr.selected td.select-checkbox:after,\ntable.mdb-dataTable tr.selected th.select-checkbox:after {\n margin-top: 0;\n text-align: center;\n font-family: 'Font Awesome\\ 5 Free', sans-serif;\n font-size: 0.9rem;\n font-weight: 600;\n content: '\\f00c';\n background-color: #a6c;\n box-shadow: 0 0 1em #5a5a5a;\n color: #fff; }\n\ndiv.mdb-datatable span.select-info, div.mdb-datatable span.select-item {\n margin-left: 0.5em; }\n\n@media screen and (max-width: 640px) {\n div.mdb-datatable span.select-info, div.mdb-datatable span.select-item {\n display: block;\n margin-left: 0; } }\n");var Vt=function(t){function e(){var t,l;x(this,e);for(var n=arguments.length,i=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;l.setState((function(){return{columns:e,rows:t,filteredRows:l.props.disableRetreatAfterSorting?l.filterRows():t}}),n&&"function"==typeof n&&function(){return n()})})),M(D(l),"setUnsearchable",(function(t){var e=[];t.forEach((function(t){void 0!==t.searchable&&!1===t.searchable&&e.push(t.field)})),l.setState({unsearchable:e})})),M(D(l),"fetchData",(function(t,e){fetch(t).then((function(t){return t.json()})).then((function(t){return l.setData(t.rows,t.columns,e?l.paginateRows:null)})).catch((function(t){return console.log(t)}))})),M(D(l),"pagesAmount",(function(){return Math.ceil(l.state.filteredRows.length/l.state.entries)})),M(D(l),"paginateRowsInitialy",(function(){for(var t=l.state,e=t.rows,n=t.entries,r=t.pages,i=l.pagesAmount(),o=1;o<=i;o++){var a=o*n;r.push(e.slice(a-n,a))}})),M(D(l),"handleEntriesChange",(function(t){l.setState({entries:Array.isArray(t)?t[0]:t},(function(){return l.paginateRows()}))})),M(D(l),"handleSearchChange",(function(t){l.setState({search:t.target.value},(function(){return l.filterRows()}),l.props.onSearch&&"function"==typeof l.props.onSearch&&l.props.onSearch(t.target.value))})),M(D(l),"checkFieldValue",(function(t,e){return t[e]&&"string"!=typeof t[e]?t[e].props.searchvalue:t[e]})),M(D(l),"checkField",(function(t,e,n,r){var i=[l.checkFieldValue(e,t),l.checkFieldValue(n,t)],o=i[0]>i[1]?-1:1;return"asc"===r&&(o*=-1),o})),M(D(l),"sort",(function(t,e,n,r){t.sort((function(t,i){return e&&e.includes(n)?l.checkField(n,t,i,r):"asc"===r?t[n]i[n]?-1:1}))})),M(D(l),"handleSort",(function(t,e){var n=l.props,r=n.onSort,i=n.sortRows;"disabled"!==e&&(l.setState((function(n){var r=n.rows,o=n.columns,a=L(r),s="desc"===e?"desc":"asc";return l.sort(a,i,t,s),L(o).forEach((function(e){"disabled"!==e.sort&&(e.sort=e.field===t?"desc"===e.sort?"asc":"desc":"")})),{rows:a,columns:o,sorted:!0}}),(function(){return l.filterRows()})),r&&"function"==typeof r&&r({column:t,direction:"desc"===e?"desc":"asc"}))})),M(D(l),"filterRows",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.state.search,e=l.state.unsearchable,n=l.props,r=n.sortRows,i=n.noRecordsFoundLabel,o=n.disableRetreatAfterSorting,a=n.checkbox;l.setState((function(l){var n=l.rows.filter((function(l){for(var n in l)if(!(e.length&&e.includes(n)||"function"==typeof l[n])){var i="";if(r&&"string"!=typeof l[n]?(o=void 0,o=[],function t(e){return"object"===w(e)?e.props.children&&Array.from(e.props.children).map((function(e){return t(e)})):o.push(e)}(l[n]),i=o.join("")):l[n]&&(i=l[n].toString()),i.toLowerCase().includes(t.toLowerCase()))return!0}var o;return!1}));return 0===n.length&&n.push({message:i,colspan:l.columns.length,disabled:!0}),o||a?{filteredRows:n,activePage:l.activePage=l.activePage0?this.handleSort(f[0],f[1]):this.handleSort(),this.setUnsearchable(p),n?this.paginateRowsInitialy():g.push(m)}},{key:"componentDidUpdate",value:function(t,e){var l=this,n=this.state,i=n.columns,o=n.rows,a=n.activePage,s=n.headCheckBox,u=n.disableHeadCheckbox,c=n.filteredRows,h=this.props,f=h.data,p=h.checkbox,g=h.filledCheckboxes,m=h.multipleCheckboxes,v=h.headCheckboxID,y=h.bodyCheckboxID,b=h.proCheckboxes;if(p&&(m&&e.filteredRows!==c&&(c[0].disabled?this.setState({disableHeadCheckbox:!0}):this.setState({disableHeadCheckbox:!1})),e.rows!==o)){if(m){var w=L(o).filter((function(t){return t.checked})),x=L(i).map((function(t){return"checkbox"!==t.field?k({},t):k({},t,{label:b?r.a.createElement(d.e,{type:"checkbox",onChange:function(t){return l.handleAllCheckBoxes(t)},id:v,checked:!!s,value:s,"aria-checked":s,filled:g,disabled:u}):r.a.createElement("div",{className:"custom-control custom-checkbox text-center"},r.a.createElement("input",{type:"checkbox",className:"custom-control-input",onChange:function(t){return l.handleAllCheckBoxes(t)},id:v,checked:!!s,value:s,"aria-checked":s,disabled:u}),r.a.createElement("label",{className:"custom-control-label",htmlFor:v}))})}));this.setData(o,x,this.paginateRows),this.setState({headCheckBox:!1},(function(){l.filterRows()})),w.length===o.length?this.setState({headCheckBox:!0}):this.setState({headCheckBox:!1})}for(var _=0;_0&&(s-=1),a&&st.target.clientWidth||t.clientY>t.target.clientHeight||l.modalContent.contains(t.target)||l.props.disableBackdrop||l.props.toggle()})),M(D(l),"handleEscape",(function(t){l.props.keyboard&&27===t.keyCode&&(t.preventDefault(),l.props.toggle())})),l}return T(e,n.Component),S(e,[{key:"render",value:function(){var t,e=this,l=this.props,n=l.animation,i=l.backdrop,a=l.backdropClassName,s=l.backdropTransitionTimeout,c=l.cascading,h=l.centered,d=l.children,f=l.className,p=l.contentClassName,g=l.disableFocusTrap,m=l.fade,v=l.frame,b=l.fullHeight,w=l.id,x=l.inline,_=(l.isOpen,l.keyboard,l.modalStyle),S=l.modalStylesWithoutBackdrop,C=l.modalTransitionTimeout,T=l.noClickableBodyWithoutBackdrop,O=(l.overflowScroll,l.position),D=l.role,P=l.side,I=l.size,L=l.tabIndex,R=(l.toggle,l.wrapClassName),N=l.wrapperStyles,j=(l.zIndex,A(l,["animation","backdrop","backdropClassName","backdropTransitionTimeout","cascading","centered","children","className","contentClassName","disableFocusTrap","fade","frame","fullHeight","id","inline","isOpen","keyboard","modalStyle","modalStylesWithoutBackdrop","modalTransitionTimeout","noClickableBodyWithoutBackdrop","overflowScroll","position","role","side","size","tabIndex","toggle","wrapClassName","wrapperStyles","zIndex"])),B=this.state.initialIsOpen,F=m?C:0,z=m?s:0,U=k({position:"fixed"},"bottom-right"===O?{top:"auto",bottom:10,right:10,left:"auto"}:"bottom-left"===O?{top:"auto",bottom:10,right:"auto",left:10}:"top-right"===O?{top:10,bottom:"auto",right:10,left:"auto"}:"top-left"===O?{top:10,bottom:"auto",right:"auto",left:10}:"right"===O?{right:0}:"left"===O?{left:0}:"bottom"===O?{bottom:0}:"top"===O?{top:0}:{top:0,bottom:0,right:0,left:0},{},S),H=!i&&B&&!T,Z=o()((M(t={"cascading-modal":c,"modal-side":P,"modal-full-height":b,"modal-frame":v,"modal-dialog-centered":h},"modal-".concat(I),I),M(t,"modal-".concat(O),O),M(t,"modal-notify white-text modal-".concat(_),_),t),"modal-dialog",f),W=O.split("-"),G=o()({modal:!x,fade:m,top:m&&!n&&!O,animation:m&&n},m&&O&&O&&W.length>1?W[1]:W[0],R),Y=o()("modal-backdrop",m?"fade":"show",a),q=o()("modal-content",p),X=V(k({style:{display:"block",position:H&&"fixed",width:H&&0},id:w,tabIndex:L,role:D,"aria-hidden":"true"},j)),K=H?U:{},$=r.a.createElement("div",E({"data-test":"modal",onKeyUp:this.handleEscape,className:G,style:N},X),r.a.createElement("div",{style:K,className:Z,role:"document"},r.a.createElement("div",{ref:function(t){return e.modalContent=t},className:q},d)));return r.a.createElement(r.a.Fragment,null,i&&r.a.createElement(u.d,{timeout:z,in:B,appear:B,mountOnEnter:!0,unmountOnExit:!0,onEntered:function(t){return e.handleOnEntered("backdrop",t)},onExit:function(t){return e.handleOnExit("backdrop",t)},onExited:this.handleOnExited},r.a.createElement("div",{className:Y})),r.a.createElement(u.d,{timeout:F,in:B,appear:B,mountOnEnter:!0,unmountOnExit:!0,onMouseDown:function(t){return e.handleBackdropClick(t)},onEntered:function(t){return e.handleOnEntered("modal",t)},onExit:function(t){return e.handleOnExit("modal",t)}},g?$:r.a.createElement(y.a,null,$)))}}]),e}();oe.defaultProps={autoFocus:!0,backdrop:!0,backdropTransitionTimeout:150,disableBackdrop:!1,disableFocusTrap:!0,fade:!0,isOpen:!1,keyboard:!0,modalTransitionTimeout:300,overflowScroll:!0,position:"",role:"dialog",tabIndex:"-1",zIndex:1050,noClickableBodyWithoutBackdrop:!1},oe.propTypes={animation:s.a.string,autoFocus:s.a.bool,backdrop:s.a.bool,backdropClassName:s.a.string,backdropTransitionTimeout:s.a.number,cascading:s.a.bool,centered:s.a.bool,children:s.a.node,className:s.a.string,contentClassName:s.a.string,disableBackdrop:s.a.bool,disableFocusTrap:s.a.bool,fade:s.a.bool,frame:s.a.bool,fullHeight:s.a.bool,hiddenModal:s.a.func,hideModal:s.a.func,id:s.a.string,inline:s.a.bool,isOpen:s.a.bool,keyboard:s.a.bool,modalClassName:s.a.string,modalStyle:s.a.string,modalStylesWithoutBackdrop:s.a.object,modalTransitionTimeout:s.a.number,noClickableBodyWithoutBackdrop:s.a.bool,overflowScroll:s.a.bool,position:s.a.string,role:s.a.string,showModal:s.a.func,side:s.a.bool,size:s.a.string,tabIndex:s.a.string,toggle:s.a.func,wrapClassName:s.a.string,wrapperStyles:s.a.object,zIndex:s.a.oneOfType([s.a.number,s.a.string])};s.a.node,s.a.string;s.a.node,s.a.string;var ae=function(t){var e,l=t.className,n=t.children,i=t.toggle,a=t.tag,s=t.closeAriaLabel,u=t.titleClass,c=A(t,["className","children","toggle","tag","closeAriaLabel","titleClass"]),h=o()("modal-header",l),d=o()("modal-title",u);return i&&(e=r.a.createElement("button",{type:"button",onClick:i,className:"close","aria-label":s},r.a.createElement("span",{"aria-hidden":"true"},String.fromCharCode(215)))),r.a.createElement("div",E({"data-test":"modal-header"},c,{className:h}),r.a.createElement(a,{className:d},n),e)};ae.propTypes={children:s.a.node,className:s.a.string,closeAriaLabel:s.a.string,tag:s.a.oneOfType([s.a.func,s.a.string]),toggle:s.a.func},ae.defaultProps={tag:"h4",closeAriaLabel:"Close"};var se=function(t){var e=t.children,l=t.className,n=t.tag,i=t.tabs,a=t.color,s=t.classicTabs,u=t.pills,c=t.header,h=A(t,["children","className","tag","tabs","color","classicTabs","pills","header"]),d=o()("nav",i&&"md-tabs",u&&"md-pills",c&&"nav-pills card-header-pills",!(!a||i||s||u)&&a,!(!u||!a)&&"pills-".concat(a),!(!i&&!s||!a)&&"tabs-".concat(a),l);return r.a.createElement(n,E({"data-test":"nav"},h,{className:d}),e)};se.propTypes={children:s.a.node,classicTabs:s.a.bool,className:s.a.string,color:s.a.string,header:s.a.bool,pills:s.a.bool,tabs:s.a.bool,tag:s.a.oneOfType([s.a.func,s.a.string])},se.defaultProps={tag:"ul",classicTabs:!1,pills:!1,tabs:!1,header:!1};var ue=function(t){function e(){var t,l;x(this,e);for(var n=arguments.length,r=new Array(n),i=0;it?l.setState({isCollapsed:!0}):l.setState({isCollapsed:!1})})),l}return T(e,n.Component),S(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.scrolling,l=t.scrollingNavbarOffset;(e||l)&&window.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.scrolling,l=t.scrollingNavbarOffset;(e||l)&&window.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var t,e,l=this.props,n=l.expand,i=l.light,a=l.dark,s=l.sticky,u=l.fixed,c=l.scrolling,h=l.color,d=l.className,f=l.scrollingNavbarOffset,p=l.tag,g=l.double,m=l.transparent,v=A(l,["expand","light","dark","sticky","fixed","scrolling","color","className","scrollingNavbarOffset","tag","double","transparent"]),y=this.state.isCollapsed,b=o()((M(t={"navbar-light":i,"navbar-dark":a},"sticky-".concat(s),s),M(t,"fixed-".concat(u),u),M(t,"scrolling-navbar",c||f),M(t,"double-nav",g),M(t,"top-nav-collapse",y),M(t,"".concat(h),h&&m?y:h),t),"navbar",!1!==(e=n)&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-".concat(e)),d);return r.a.createElement(p,E({"data-test":"navbar"},v,{className:b,role:"navigation"}))}}]),e}();ue.propTypes={className:s.a.string,color:s.a.string,dark:s.a.bool,double:s.a.bool,expand:s.a.oneOfType([s.a.bool,s.a.string]),fixed:s.a.string,light:s.a.bool,scrolling:s.a.bool,scrollingNavbarOffset:s.a.number,sticky:s.a.string,tag:s.a.oneOfType([s.a.func,s.a.string]),transparent:s.a.bool},ue.defaultProps={tag:"nav",expand:!1,scrolling:!1};s.a.string,s.a.string;var ce=function(t){var e=t.children,l=t.className,n=t.right,i=t.left,a=t.tag,s=A(t,["children","className","right","left","tag"]),u=o()("navbar-nav",n?"ml-auto":i?"mr-auto":"justify-content-around w-100",l);return r.a.createElement(a,E({"data-test":"navbar-nav"},s,{className:u}),e)};ce.propTypes={children:s.a.node,className:s.a.string,left:s.a.bool,right:s.a.bool,tag:s.a.oneOfType([s.a.func,s.a.string])},ce.defaultProps={tag:"ul"};var he=function(t){var e=t.right,l=t.left,n=t.children,i=t.className,a=t.tag,s=t.image,u=A(t,["right","left","children","className","tag","image"]),c=o()({"navbar-toggler-right":e,"navbar-toggler-left":l},"navbar-toggler",i);return r.a.createElement(a,E({"data-test":"navbar-toggler"},u,{className:c}),n||(s?r.a.createElement("span",{className:"navbar-toggler-icon",style:{backgroundImage:'url("'.concat(s,'")')}}):r.a.createElement("span",{className:"navbar-toggler-icon"})))};he.propTypes={children:s.a.node,className:s.a.string,image:s.a.string,left:s.a.bool,right:s.a.bool,tag:s.a.oneOfType([s.a.func,s.a.string]),type:s.a.string},he.defaultProps={tag:"button",type:"button"};var de=function(t){var e=t.children,l=t.className,n=t.active,i=t.text,a=t.tag,s=A(t,["children","className","active","text","tag"]),u=o()("nav-item",n&&"active",i&&"navbar-text",l);return r.a.createElement(a,E({"data-test":"nav-item"},s,{className:u}),e)};de.propTypes={active:s.a.bool,children:s.a.node,className:s.a.string,tag:s.a.oneOfType([s.a.func,s.a.string])},de.defaultProps={tag:"li"};var fe=function(t){var e=I(Object(n.useState)({}),2),l=e[0],i=e[1],a=t.children,s=t.className,u=t.disabled,c=t.active,h=t.to,d=t.link,f=A(t,["children","className","disabled","active","to","link"]),p=o()("nav-link",u?"disabled":"Ripple-parent",c&&"active",s),g=function(t){if(!u){t.stopPropagation();var e={top:t.clientY,left:t.clientX,time:Date.now()};i(e)}},v=d?ne:m.c;return r.a.createElement(v,E({"data-test":"nav-link",className:p,onMouseUp:g,onTouchStart:g,to:h},f),a,!u&&r.a.createElement(et,{cursorPos:l}))};fe.propTypes={active:s.a.bool,children:s.a.node,className:s.a.string,disabled:s.a.bool,link:s.a.bool,to:s.a.string},fe.defaultProps={active:!1,className:"",disabled:!1,link:!1};var pe=function(t){function e(){var t,l;x(this,e);for(var n=arguments.length,r=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:0;"object"===w(t)&&(t=0),setTimeout((function(){l.setState({componentState:""},(function(){setTimeout((function(){l.setState({componentState:"hide"})}),150)}))}),t)})),l}return T(e,r.a.Component),S(e,[{key:"componentDidMount",value:function(){var t=this.props.autohide;t>0&&this.hide(t)}},{key:"render",value:function(){var t=this.props,e=t.tag,l=t.className,n=(t.show,t.fade),i=t.message,a=t.bodyClassName,s=t.icon,u=t.iconClassName,c=t.title,h=t.titleClassName,d=t.text,f=t.closeClassName,p=A(t,["tag","className","show","fade","message","bodyClassName","icon","iconClassName","title","titleClassName","text","closeClassName"]),g=this.state.componentState,m=o()("toast",n&&"fade",g,l),v=o()("toast-header",h),y=o()("mr-2",u),b=o()("toast-body",a),w=o()("ml-2","mb-1",f);return r.a.createElement(e,E({"data-test":"notification"},p,{className:m}),r.a.createElement("div",{className:v},r.a.createElement(W,{icon:s,className:y,size:"lg"}),r.a.createElement("strong",{className:"mr-auto"},c),r.a.createElement("small",null,d),r.a.createElement(pt,{className:w,onClick:this.hide})),r.a.createElement("div",{className:b},i))}}]),e}();pe.propTypes={autohide:s.a.number,bodyClassName:s.a.string,bodyColor:s.a.string,className:s.a.string,closeClassName:s.a.string,fade:s.a.bool,iconClassName:s.a.string,message:s.a.string,show:s.a.bool,tag:s.a.oneOfType([s.a.func,s.a.string]),text:s.a.string,title:s.a.string,titleClassName:s.a.string,titleColor:s.a.string},pe.defaultProps={icon:"square",tag:"div",closeClassName:"text-dark"},G('.popover {\r\n width: auto;\r\n background-color: white;\r\n color: #97999b;\r\n text-align: center;\r\n display: inline-block;\r\n border-radius: 3px;\r\n position: absolute;\r\n font-size: 0.83em;\r\n font-weight: normal;\r\n border: 1px rgb(0, 0, 0) solid;\r\n /* z-index: 200000; */\r\n z-index: 10;\r\n /* max-width: initial; */\r\n max-width: 274px;\r\n text-align: start;\r\n background-color: #fff;\r\n border: 1px solid rgba(0, 0, 0, 0.2);\r\n border-radius: 0.3rem;\r\n opacity: 0;\r\n transition: opacity 0.3s, visibility 0.3s;\r\n visibility: hidden;\r\n}\r\n\r\n.show.popover {\r\n z-index: 999;\r\n opacity: 1;\r\n visibility: visible;\r\n}\r\n\r\n.popover-body {\r\n color: #6c6e71;\r\n}\r\n\r\n.popover .popover_arrow {\r\n width: 0;\r\n height: 0;\r\n border-style: solid;\r\n position: absolute;\r\n margin: 6px;\r\n color: transparent;\r\n}\r\n\r\n.popover[x-placement^="top"] {\r\n margin-bottom: 15px;\r\n}\r\n\r\n.popover[x-placement^="top"] .popover_arrow {\r\n border-width: 8px 8px 0 8px;\r\n border-color: #d6d6d6 transparent transparent transparent;\r\n bottom: -8px;\r\n margin-bottom: 0;\r\n}\r\n\r\n.popover[x-placement^="top"] .popover_arrow::before {\r\n content: "";\r\n display: inline-block;\r\n position: absolute;\r\n left: -8px;\r\n bottom: 1.5px;\r\n border: solid;\r\n border-width: 8px 8px 0 8px;\r\n border-color: white transparent transparent transparent;\r\n}\r\n\r\n.popover[x-placement^="bottom"] {\r\n margin-top: 15px;\r\n}\r\n\r\n.popover[x-placement^="bottom"] .popover_arrow {\r\n border-width: 0 8px 8px 8px;\r\n border-color: transparent transparent #d6d6d6 transparent;\r\n top: -8px;\r\n margin-top: 0;\r\n}\r\n\r\n.popover[x-placement^="bottom"] .popover_arrow::before {\r\n content: "";\r\n display: inline-block;\r\n position: absolute;\r\n left: -8px;\r\n top: 1.45px;\r\n border: solid;\r\n border-width: 0 8px 8px 8px;\r\n border-color: transparent transparent white transparent;\r\n}\r\n\r\n.popover[x-placement^="right"] {\r\n margin-left: 15px;\r\n}\r\n\r\n.popover[x-placement^="right"] .popover_arrow {\r\n border-width: 8px 8px 8px 0;\r\n border-color: transparent #d6d6d6 transparent transparent;\r\n left: -8px;\r\n margin-left: 0;\r\n}\r\n\r\n.popover[x-placement^="right"] .popover_arrow::before {\r\n content: "";\r\n display: inline-block;\r\n position: absolute;\r\n top: -8px;\r\n left: 1.45px;\r\n border: solid;\r\n border-width: 8px 8px 8px 0;\r\n border-color: transparent white transparent transparent;\r\n}\r\n\r\n.popover[x-placement^="left"] {\r\n margin-right: 15px;\r\n}\r\n\r\n.popover[x-placement^="left"] .popover_arrow {\r\n border-width: 8px 0 8px 8px;\r\n border-color: transparent transparent transparent #d6d6d6;\r\n right: -8px;\r\n margin-right: 0;\r\n}\r\n\r\n.popover[x-placement^="left"] .popover_arrow::before {\r\n content: "";\r\n display: inline-block;\r\n position: absolute;\r\n top: -8px;\r\n right: 1.45px;\r\n border: solid;\r\n border-width: 8px 0 8px 8px;\r\n border-color: transparent transparent transparent white;\r\n}\r\n\r\n.tooltip {\r\n width: auto;\r\n background-color: black;\r\n color: white;\r\n text-align: center;\r\n display: inline-block;\r\n border-radius: 3px;\r\n position: absolute;\r\n /* font-size: 0.83em; */\r\n font-weight: normal;\r\n border: 1px rgb(0, 0, 0) solid;\r\n /* z-index: 200000; */\r\n z-index: 15;\r\n /* max-width: initial; */\r\n max-width: 274px;\r\n text-align: start;\r\n border: 1px solid rgba(0, 0, 0, 0.2);\r\n border-radius: 0.3rem;\r\n opacity: 0;\r\n transition: opacity 0.3s, visibility 0.3s;\r\n visibility: hidden;\r\n}\r\n\r\n.tooltip-inner {\r\n display: block;\r\n}\r\n\r\n.show.tooltip {\r\n z-index: 999;\r\n\r\n opacity: 1;\r\n visibility: visible;\r\n}\r\n\r\n.tooltip .popover_arrow {\r\n width: 0;\r\n height: 0;\r\n border-style: solid;\r\n position: absolute;\r\n margin: 6px;\r\n color: transparent;\r\n}\r\n\r\n.tooltip[x-placement^="top"],\r\n.show[x-placement^="top"]:not(.tooltip) {\r\n margin-bottom: 5px;\r\n}\r\n\r\n.tooltip[x-placement^="top"] .popover_arrow {\r\n border-width: 6px 6px 0 6px;\r\n border-color: #131313 transparent transparent transparent;\r\n bottom: -6px;\r\n margin-bottom: 0;\r\n}\r\n\r\n.tooltip[x-placement^="top"] .popover_arrow::before {\r\n content: "";\r\n display: inline-block;\r\n position: absolute;\r\n left: -6px;\r\n bottom: 1.5px;\r\n border: solid;\r\n border-width: 6px 6px 0 6px;\r\n border-color: black transparent transparent transparent;\r\n}\r\n\r\n.tooltip[x-placement^="bottom"],\r\n.show[x-placement^="bottom"]:not(.tooltip) {\r\n margin-top: 5px;\r\n}\r\n\r\n.tooltip[x-placement^="bottom"] .popover_arrow {\r\n border-width: 0 6px 6px 6px;\r\n border-color: transparent transparent #131313 transparent;\r\n top: -6px;\r\n margin-top: 0;\r\n}\r\n\r\n.tooltip[x-placement^="bottom"] .popover_arrow::before {\r\n content: "";\r\n display: inline-block;\r\n position: absolute;\r\n left: -6px;\r\n top: 1.45px;\r\n border: solid;\r\n border-width: 0 6px 6px 6px;\r\n border-color: transparent transparent black transparent;\r\n}\r\n\r\n.tooltip[x-placement^="right"],\r\n.show[x-placement^="right"]:not(.tooltip) {\r\n margin-left: 5px;\r\n}\r\n\r\n.tooltip[x-placement^="right"] .popover_arrow {\r\n border-width: 6px 6px 6px 0;\r\n border-color: transparent #131313 transparent transparent;\r\n left: -6px;\r\n margin-left: 0;\r\n}\r\n\r\n.tooltip[x-placement^="right"] .popover_arrow::before {\r\n content: "";\r\n display: inline-block;\r\n position: absolute;\r\n top: -6px;\r\n left: 1.45px;\r\n border: solid;\r\n border-width: 6px 6px 6px 0;\r\n border-color: transparent black transparent transparent;\r\n}\r\n\r\n.tooltip[x-placement^="left"],\r\n.show[x-placement^="left"]:not(.tooltip) {\r\n margin-right: 5px;\r\n}\r\n\r\n.tooltip[x-placement^="left"] .popover_arrow {\r\n border-width: 6px 0 6px 6px;\r\n border-color: transparent transparent transparent #131313;\r\n right: -6px;\r\n margin-right: 0;\r\n}\r\n\r\n.tooltip[x-placement^="left"] .popover_arrow::before {\r\n content: "";\r\n display: inline-block;\r\n position: absolute;\r\n top: -6px;\r\n right: 1.45px;\r\n border: solid;\r\n border-width: 6px 0 6px 6px;\r\n border-color: transparent transparent transparent black;\r\n}\r\n');var ge=function(t){function e(){var t,l;x(this,e);for(var n=arguments.length,i=new Array(n),o=0;oh.index&&(M=e<=s)):v&&(M=e<=s);var C="";if(L){var I=null;m?(I=h.index,v&&(I=s)):v&&(I=s);var B=Array.isArray(L);null!==I&&(C=B?L[I]:["oneStar","twoStars","threeStars","fourStars","fiveStars"][I])}var F=o()("py-2 px-1 rate-popover",M&&(L?C:P),k),z=n;if(T){var U=["angry","frown","meh","smile","laugh"];z="meh-blank",m&&e<=h.index?(z=U[h.index],v&&(z=U[s])):v&&e<=s&&(z=U[s])}var H=i;return w&&(H=r.a.createElement("form",{onSubmit:function(t){N(t,i,y+1,g),_()}},r.a.createElement(d.g,null,i),r.a.createElement(d.f,null,r.a.createElement("textarea",{type:"text",className:"md-textarea form-control py-0",value:g,onChange:S}),r.a.createElement("div",{className:"d-flex align-items-center justify-content-around mt-2"},r.a.createElement(d.b,{type:"submit",color:"primary",size:"sm"},"Submit!"),r.a.createElement("button",{onMouseDown:_,style:{backgroundColor:"#fff",border:"none",padding:"0.5rem 1.6rem"}},"Close"))))),r.a.createElement(d.h,{key:i,domElement:!0,placement:"top",tag:"span",popover:w,isVisible:w,clickable:w},r.a.createElement("span",null,r.a.createElement(d.a,E({style:{cursor:"pointer"}},j,p,{icon:z,size:c||O,far:a||D,className:F,"data-index":e,"data-original-title":i,onMouseEnter:function(){return function(t,e){u(e)}(0,e)},onMouseLeave:x,onClick:function(t){return function(t,e,l){l.stopPropagation(),t===h.title&&e===h.index?(f({title:"",index:null}),R&&b(null)):(f({title:t,index:e}),R&&setTimeout((function(){b(e)}),1))}(i,e,t)}}))),r.a.createElement("div",{style:{userSelect:"none"}},H))}))),r.a.createElement(M,{"data-test":"rating",className:B},F)};be.propTypes={containerClassName:s.a.string,data:s.a.arrayOf(s.a.shape({choosed:s.a.bool,icon:s.a.string,tooltip:s.a.string})),feedback:s.a.bool,fillClassName:s.a.string,fillColors:s.a.oneOfType([s.a.bool,s.a.arrayOf(s.a.string)]),getValue:s.a.func,iconClassName:s.a.string,iconFaces:s.a.bool,iconRegular:s.a.bool,iconSize:s.a.string,submitHandler:s.a.func,tag:s.a.string},be.defaultProps={containerClassName:"",data:[{tooltip:"Very Bad"},{tooltip:"Poor"},{tooltip:"Ok"},{tooltip:"Good"},{tooltip:"Excellent"}],feedback:!1,fillClassName:"fiveStars",iconClassName:"",iconSize:"1x",iconRegular:!1,tag:"div",submitHandler:function(t){return t.preventDefault()}};var we=function(t){var e=t.around,l=t.between,n=t.bottom,i=t.center,a=t.className,s=t.end,u=t.middle,c=t.start,h=t.tag,d=t.top,f=A(t,["around","between","bottom","center","className","end","middle","start","tag","top"]),p=o()("row",s&&"justify-content-end",c&&"justify-content-start",i&&"justify-content-center",l&&"justify-content-between",e&&"justify-content-around",d&&"align-self-start",u&&"align-self-center",n&&"align-self-end",a);return r.a.createElement(h,E({"data-test":"row"},f,{className:p}))};we.propTypes={around:s.a.bool,between:s.a.bool,bottom:s.a.bool,center:s.a.bool,className:s.a.string,end:s.a.bool,middle:s.a.bool,start:s.a.bool,tag:s.a.oneOfType([s.a.func,s.a.string]),top:s.a.bool},we.defaultProps={tag:"div"};var xe={activeItem:s.a.any,className:s.a.string,tabId:s.a.any},_e=function(t){function e(){var t,l;x(this,e);for(var n=arguments.length,r=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};S=s()({},S,t)}function E(t){n=t}var C={type:"3rdParty",init:function(t){M(t.options.react),E(t)}},k=w.a.createContext();function T(){return function(t){var e,l=function(t){return function(e){function l(){return c()(this,l),p()(this,m()(l).apply(this,arguments))}return y()(l,e),d()(l,[{key:"render",value:function(){var e=this.props,l=e.innerRef,n=o()(e,["innerRef"]);return l&&(n.ref=l),w.a.createElement(k.Consumer,null,(function(e){return w.a.createElement(t,s()({},e,n))}))}}]),l}(b.Component)}(function(e){function l(){return c()(this,l),p()(this,m()(l).apply(this,arguments))}return y()(l,e),d()(l,[{key:"render",value:function(){var e=this,l=this.props,r=l.innerRef,i=o()(l,["innerRef"]);r&&(i.ref=r);var a={},u=this.props.i18nOptions||this.i18nOptions,c=this.props.i18n||n;if(!u){var h=Object.keys(S).reduce((function(t,l){return e.props[l]&&(t[l]=e.props[l]),t}),{});u=s()({},S,c&&c.options&&c.options.react,h),this.i18nOptions=u}return c&&(a.i18n=c,a.t=c.t.bind(c),a.lng=c.language,a.i18nOptions=u),w.a.createElement(t,s()({},a,i))}}]),l}(b.Component));return l.WrappedComponent=t,l.displayName="WithMergedOptions(".concat((e=t).displayName||e.name||"Component",")"),_()(l,t)}}var O=l(45),A=l.n(O),D=!1,P=function(t){function e(t){var l;if(c()(this,e),l=p()(this,m()(e).call(this,t)),!t.i18n)return l.state={i18nLoadedAt:null,ready:!1},p()(l,Object(r.e)("You will need pass in an i18next instance either by props, using I18nextProvider or by using i18nextReactModule. Learn more https://react.i18next.com/components/overview#getting-the-i-18-n-function-into-the-flow"));if("function"===typeof t.i18n.then)return l.state={i18nLoadedAt:null,ready:!1},p()(l,Object(r.e)("Detected a promise instead of an i18next instance. Probably you passed the return value of the i18next.init() function, this is not possible anymore with v13 of i18next. Just pass in the i18next instance directly."));Object(r.b)(t),t.i18n.options&&t.i18n.options.isInitialSSR&&(t.i18nOptions.wait=!1);var n=l.getNamespaces();t.reportNS&&n.forEach(t.reportNS);var i=t.i18n.languages&&t.i18n.languages[0],o=!!i&&n.every((function(e){return t.i18n.hasResourceBundle(i,e)}));return l.state={i18nLoadedAt:null,ready:o},l.t=l.getI18nTranslate(),l.onI18nChanged=l.onI18nChanged.bind(A()(A()(l))),l.getI18nTranslate=l.getI18nTranslate.bind(A()(A()(l))),l.namespaces=l.getNamespaces.bind(A()(A()(l))),l}return y()(e,t),d()(e,[{key:"componentDidMount",value:function(){this.loadNamespaces()}},{key:"componentDidUpdate",value:function(t){this.props.ns&&t.ns!==this.props.ns&&this.loadNamespaces()}},{key:"componentWillUnmount",value:function(){var t=this,e=this.props,l=e.i18n,n=e.i18nOptions;if(this.mounted=!1,this.onI18nChanged){if(n.bindI18n)n.bindI18n.split(" ").forEach((function(e){return l.off(e,t.onI18nChanged)}));if(n.bindStore)n.bindStore.split(" ").forEach((function(e){return l.store&&l.store.off(e,t.onI18nChanged)}))}}},{key:"onI18nChanged",value:function(){var t=this.props.i18nOptions,e=this.state.ready;this.mounted&&(!e&&t.omitBoundRerender||(this.t=this.getI18nTranslate(),this.setState({i18nLoadedAt:new Date})))}},{key:"getI18nTranslate",value:function(){var t=this.props,e=t.i18n,l=t.i18nOptions,n=this.getNamespaces();return e.getFixedT(null,"fallback"===l.nsMode?n:n&&n.length?n[0]:"translation")}},{key:"getNamespaces",value:function(){var t=this.props,e=t.i18n,l=t.ns,n=t.defaultNS,r="function"===typeof l?l(this.props):l||n||e.options&&e.options.defaultNS;return"string"===typeof r?[r]:r||[]}},{key:"loadNamespaces",value:function(){var t=this,e=this.props,l=e.i18n,n=e.i18nOptions,r=this.state.ready,i=function(){n.bindI18n&&l&&l.on(n.bindI18n,t.onI18nChanged),n.bindStore&&l.store&&l.store.on(n.bindStore,t.onI18nChanged)};this.mounted=!0,l.loadNamespaces(this.getNamespaces(),(function(){var e=function(){t.mounted&&!r&&t.setState({ready:!0},(function(){n.wait||t.onI18nChanged()})),n.wait&&t.mounted&&i()};if(l.isInitialized)e();else{l.on("initialized",(function t(){setTimeout((function(){l.off("initialized",t)}),1e3),e()}))}})),n.wait||i()}},{key:"render",value:function(){var t=this.props,e=t.children,l=t.i18n,n=t.defaultNS,r=t.reportNS,i=t.i18nOptions,o=(this.state||{ready:!1}).ready,a=this.t;return!o&&i.wait?null:(l.options&&l.options.isInitialSSR&&!D&&(D=!0,setTimeout((function(){delete l.options.isInitialSSR}),100)),w.a.createElement(k.Provider,{value:{i18n:l,t:a,defaultNS:n,reportNS:r,lng:l&&l.language}},e(this.t,{i18n:l,t:a,lng:l.language,ready:o})))}}]),e}(b.Component),I=T()(P);function L(t){return t.displayName||t.name||"Component"}function R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(l){var n=function(n){function i(){return c()(this,i),p()(this,m()(i).apply(this,arguments))}return y()(i,n),d()(i,[{key:"shouldComponentUpdate",value:function(t){return!this.props.i18nOptions.usePureComponent&&!e.usePureComponent||!Object(r.c)(this.props,t)}},{key:"render",value:function(){var n=this,r=this.props,i=r.namespaces,a=r.i18nOptions,u=s()({},a,e),c={};return u.innerRef&&(c.ref=u.innerRef),w.a.createElement(I,s()({ns:i||t},this.props,{i18nOptions:Object.keys(u).length>0?u:null}),(function(t,e){var r=e.ready,i=o()(e,["ready"]);return w.a.createElement(l,s()({tReady:r},n.props,c,i))}))}}]),i}(b.Component),i=T()(n);return i.WrappedComponent=l,i.displayName="LoadNamespace(".concat(L(l),")"),i.namespaces=t,_()(i,l)}}R.setDefaults=M,R.setI18n=E;var N=l(174),j=l.n(N),B=l(1172),F=l.n(B);function z(t){return t&&(t.children||t.props&&t.props.children)}function U(t){return t&&t.children?t.children:t.props&&t.props.children}function H(t,e,l){if(""===e)return[];if(!t)return[e];var n={};!function t(e){"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),e.forEach((function(e){"string"!==typeof e&&(z(e)?t(U(e)):"object"!==j()(e)||w.a.isValidElement(e)||Object.assign(n,e))}))}(t),e=l.services.interpolator.interpolate(e,n,l.language);var r=function t(e,l){return"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),"[object Array]"!==Object.prototype.toString.call(l)&&(l=[l]),l.reduce((function(l,n,r){if("tag"===n.type){var i=e[parseInt(n.name,10)]||{},o=w.a.isValidElement(i);if("string"===typeof i)l.push(i);else if(z(i)){var a=t(U(i),n.children);i.dummy&&(i.children=a),l.push(w.a.cloneElement(i,s()({},i.props,{key:r}),a))}else if("object"!==j()(i)||o)l.push(i);else{var u=n.children[0]?n.children[0].content:null;u&&l.push(u)}}else"text"===n.type&&l.push(n.content);return l}),[])}([{dummy:!0,children:t}],F.a.parse("<0>".concat(e,"")));return U(r[0])}var Z=function(t){function e(){return c()(this,e),p()(this,m()(e).apply(this,arguments))}return y()(e,t),d()(e,[{key:"render",value:function(){var t=this.props,e=t.children,l=t.count,n=t.parent,i=t.i18nKey,a=t.tOptions,u=t.values,c=t.defaults,h=t.components,d=t.ns,f=t.i18n,p=t.t,g=(t.defaultNS,t.reportNS,t.lng,t.i18nOptions,o()(t,["children","count","parent","i18nKey","tOptions","values","defaults","components","ns","i18n","t","defaultNS","reportNS","lng","i18nOptions"])),m=p||f.t.bind(f),v=f.options&&f.options.react||{},y=void 0!==n?n:v.defaultTransParent,b=c||function t(e,l,n){return l?("[object Array]"!==Object.prototype.toString.call(l)&&(l=[l]),l.forEach((function(l,n){var i="".concat(n);if("string"===typeof l)e="".concat(e).concat(l);else if(z(l))e="".concat(e,"<").concat(i,">").concat(t("",U(l),n+1),"");else if(w.a.isValidElement(l))e="".concat(e,"<").concat(i,">");else if("object"===j()(l)){var o=s()({},l),a=o.format;delete o.format;var u=Object.keys(o);a&&1===u.length?e="".concat(e,"{{").concat(u[0],", ").concat(a,"}}"):1===u.length?e="".concat(e,"{{").concat(u[0],"}}"):Object(r.d)("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",l)}else Object(r.d)("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",l)})),e):""}("",e)||v.transEmptyNodeValue,x=v.hashTransKey,_=i||(x?x(b):b),S=u?{}:{interpolation:{prefix:"#$?",suffix:"?$#"}},M=_?m(_,s()({},a,u,S,{defaultValue:b,count:l,ns:d})):b;if(v.exposeNamespace){var E="string"===typeof m.ns?m.ns:m.ns[0];if(i&&f.options&&f.options.nsSeparator&&i.indexOf(f.options.nsSeparator)>-1)E=i.split(f.options.nsSeparator)[0];m.ns&&(g["data-i18next-options"]=JSON.stringify({ns:E}))}return y?w.a.createElement(y,g,H(h||e,M,f)):H(h||e,M,f)}}]),e}(w.a.Component),V=(T()(Z),b.Component,function(t){function e(t){var l;return c()(this,e),l=p()(this,m()(e).call(this,t)),Object(r.a)('Interpolate is deprecated and will be removed in the next major version (v9.0.0). Usage can be replaced by the "Trans" component'),l}return y()(e,t),d()(e,[{key:"render",value:function(){var t=this,e=this.props,l=e.i18n,n=e.t,r=e.i18nKey,i=e.options,o=e.className,a=e.style,u=this.props.parent||"span",c=this.props.regexp||l.services.interpolator.regexp,h=this.props.useDangerouslySetInnerHTML||!1,d=this.props.dangerouslySetInnerHTMLPartElement||"span",f=n(r,s()({},{},i,{interpolation:{prefix:"#$?",suffix:"?$#"}}));if(!f||"string"!==typeof f)return w.a.createElement("noscript",null);var p=[];f.split(c).reduce((function(e,n,r){var i;if(r%2===0){if(0===n.length)return e;i=h?w.a.createElement(d,{dangerouslySetInnerHTML:{__html:n}}):n}else i=function(t,e){if(t.indexOf(l.options.interpolation.formatSeparator)<0)return void 0===e[t]&&l.services.logger.warn("interpolator: missed to pass in variable ".concat(t," for interpolating ").concat(f)),e[t];var n=t.split(l.options.interpolation.formatSeparator),r=n.shift().trim(),i=n.join(l.options.interpolation.formatSeparator).trim();return void 0===e[r]&&l.services.logger.warn("interpolator: missed to pass in variable ".concat(r," for interpolating ").concat(f)),l.options.interpolation.format(e[r],i,l.language)}(n,t.props);return e.push(i),e}),p);var g={};if(l.options.react&&l.options.react.exposeNamespace){var m="string"===typeof n.ns?n.ns:n.ns[0];if(r&&l.options.nsSeparator&&r.indexOf(l.options.nsSeparator)>-1)m=r.split(l.options.nsSeparator)[0];n.ns&&(g["data-i18next-options"]=JSON.stringify({ns:m}))}return o&&(g.className=o),a&&(g.style=a),w.a.createElement.apply(this,[u,g].concat(p))}}]),e}(b.Component));T()(V)},,function(t,e,l){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(l(2259));e.default=r.default},function(t,e,l){var n;n=function(t){return function(t){var e={};function l(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,l),r.l=!0,r.exports}return l.m=t,l.c=e,l.d=function(t,e,n){l.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="/",l(l.s=11)}([function(t,e,l){(function(e){if("production"!==e.env.NODE_ENV){var n="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=l(14)((function(t){return"object"===typeof t&&null!==t&&t.$$typeof===n}),!0)}else t.exports=l(16)()}).call(e,l(2))},function(e,l){e.exports=t},function(t,e){var l,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(l===setTimeout)return setTimeout(t,0);if((l===i||!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(){try{l="function"===typeof setTimeout?setTimeout:i}catch(t){l=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var s,u=[],c=!1,h=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):h=-1,u.length&&f())}function f(){if(!c){var t=a(d);c=!0;for(var e=u.length;e;){for(s=u,u=[];++h1)for(var l=1;l1?e-1:0),n=1;n2?l-2:0),i=2;i0&&(g.width=i),a>0&&(g.height=a),o.default.createElement("svg",g,o.default.Children.map(this.props.children,(function(t){return o.default.cloneElement(t,{data:e,points:f,width:n,height:r,margin:u})})))}}]),e}(i.PureComponent);m.propTypes={data:r.default.array,limit:r.default.number,width:r.default.number,height:r.default.number,svgWidth:r.default.number,svgHeight:r.default.number,preserveAspectRatio:r.default.string,margin:r.default.number,style:r.default.object,min:r.default.number,max:r.default.number,onMouseMove:r.default.func},m.defaultProps={data:[],width:240,height:60,preserveAspectRatio:"none",margin:2},e.Sparklines=m,e.SparklinesLine=s.default,e.SparklinesCurve=u.default,e.SparklinesBars=c.default,e.SparklinesSpots=h.default,e.SparklinesReferenceLine=d.default,e.SparklinesNormalBand=f.default,e.SparklinesText=a.default},function(t,e,l){"use strict";(function(e){var n=l(4),r=l(5),i=l(8),o=l(6),a=l(15);t.exports=function(t,l){var s="function"===typeof Symbol&&Symbol.iterator,u={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:h(n.thatReturnsNull),arrayOf:function(t){return h((function(e,l,n,r,i){if("function"!==typeof t)return new c("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var a=e[l];if(!Array.isArray(a))return new c("Invalid "+r+" `"+i+"` of type `"+p(a)+"` supplied to `"+n+"`, expected an array.");for(var s=0;s>";return new c("Invalid "+r+" `"+i+"` of type `"+(((a=e[l]).constructor&&a.constructor.name?a.constructor.name:"<>")+"` supplied to `")+n+"`, expected instance of `"+o+"`.")}var a;return null}))},node:h((function(t,e,l,n,r){return f(t[e])?null:new c("Invalid "+n+" `"+r+"` supplied to `"+l+"`, expected a ReactNode.")})),objectOf:function(t){return h((function(e,l,n,r,i){if("function"!==typeof t)return new c("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var a=e[l],s=p(a);if("object"!==s)return new c("Invalid "+r+" `"+i+"` of type `"+s+"` supplied to `"+n+"`, expected an object.");for(var u in a)if(a.hasOwnProperty(u)){var h=t(a,u,n,r,i+"."+u,o);if(h instanceof Error)return h}return null}))},oneOf:function(t){return Array.isArray(t)?h((function(e,l,n,r,i){for(var o=e[l],a=0;a>",p=p||h,g!==o)if(l)r(!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");else if("production"!==e.env.NODE_ENV&&"undefined"!==typeof console){var m=d+":"+h;!n[m]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",p,d),n[m]=!0,a++)}return null==u[h]?s?null===u[h]?new c("The "+f+" `"+p+"` is marked as required in `"+d+"`, but its value is `null`."):new c("The "+f+" `"+p+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:t(u,h,d,f,p)}var u=s.bind(null,!1);return u.isRequired=s.bind(null,!0),u}function d(t){return h((function(e,l,n,r,i,o){var a=e[l];return p(a)!==t?new c("Invalid "+r+" `"+i+"` of type `"+g(a)+"` supplied to `"+n+"`, expected `"+t+"`."):null}))}function f(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(f);if(null===e||t(e))return!0;var l=function(t){var e=t&&(s&&t[s]||t["@@iterator"]);if("function"===typeof e)return e}(e);if(!l)return!1;var n,r=l.call(e);if(l!==e.entries){for(;!(n=r.next()).done;)if(!f(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!f(i[1]))return!1}return!0;default:return!1}}function p(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||"Symbol"===e["@@toStringTag"]||"function"===typeof Symbol&&e instanceof Symbol}(e,t)?"symbol":e}function g(t){if("undefined"===typeof t||null===t)return""+t;var e=p(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function m(t){var e=g(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return c.prototype=Error.prototype,u.checkPropTypes=a,u.PropTypes=u,u}}).call(e,l(2))},function(t,e,l){"use strict";(function(e){if("production"!==e.env.NODE_ENV)var n=l(5),r=l(8),i=l(6),o={};t.exports=function(t,l,a,s,u){if("production"!==e.env.NODE_ENV)for(var c in t)if(t.hasOwnProperty(c)){var h;try{n("function"===typeof t[c],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",s||"React class",a,c),h=t[c](l,c,s,a,null,i)}catch(f){h=f}if(r(!h||h instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",a,c,typeof h),h instanceof Error&&!(h.message in o)){o[h.message]=!0;var d=u?u():"";r(!1,"Failed %s type: %s%s",a,h.message,null!=d?d:"")}}}}).call(e,l(2))},function(t,e,l){"use strict";var n=l(4),r=l(5),i=l(6);t.exports=function(){function t(t,e,l,n,o,a){a!==i&&r(!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 l={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};return l.checkPropTypes=n,l.PropTypes=l,l}},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var l=0;l=2?Math.max(0,l[1].x-l[0].x-u-c):0);return i.default.createElement("g",{transform:"scale(1,-1)"},l.map((function(e,l){return i.default.createElement("rect",{key:l,x:e.x-(h+u)/2,y:-n,width:h,height:Math.max(0,n-e.y),style:r,onMouseMove:s&&s.bind(t,e)})})))}}]),e}(i.default.Component);u.propTypes={points:r.default.arrayOf(r.default.object),height:r.default.number,style:r.default.object,barWidth:r.default.number,margin:r.default.number,onMouseMove:r.default.func},u.defaultProps={style:{fill:"slategray"}},e.default=u},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var l=0;l0?1:-1},t.length<2?0:Math.sign(t[t.length-2].y-t[t.length-1].y)}},{key:"render",value:function(){var t=this.props,e=t.points,l=(t.width,t.height,t.size),n=t.style,r=t.spotColors,o=i.default.createElement("circle",{cx:e[0].x,cy:e[0].y,r:l,style:n}),a=i.default.createElement("circle",{cx:e[e.length-1].x,cy:e[e.length-1].y,r:l,style:n||{fill:r[this.lastDirection(e)]}});return i.default.createElement("g",null,n&&o,a)}}]),e}(i.default.Component);u.propTypes={size:r.default.number,style:r.default.object,spotColors:r.default.object},u.defaultProps={size:2,spotColors:{"-1":"red",0:"black",1:"green"}},e.default=u},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var l=0;l1?1:0));return e.map((function(t,e){return{x:e*v+c,y:(d===p?1:d-t)*m+c}}))}}])},t.exports=n(l(0))},function(t,e,l){var n=l(13),r=l(105),i=l(387),o=l(230),a=o.enableClassManagement,s=o.parseClassType,u=l(57).makeInner,c=l(77),h=l(1853),d=u(),f=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,l,n){r.call(this,t,e,l,n),this.uid=i.getUID("ec_cpt_model")},init:function(t,e,l,n){this.mergeDefaultAndTheme(t,l)},mergeDefaultAndTheme:function(t,e){var l=this.layoutMode,r=l?c.getLayoutParams(t):{},i=e.getTheme();n.merge(t,i.get(this.mainType)),n.merge(t,this.getDefaultOption()),l&&c.mergeLayoutParam(t,r,l)},mergeOption:function(t,e){n.merge(this.option,t,!0);var l=this.layoutMode;l&&c.mergeLayoutParam(this.option,t,l)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=d(this);if(!t.defaultOption){for(var e=[],l=this.constructor;l;){var r=l.prototype.defaultOption;r&&e.push(r),l=l.superClass}for(var i={},o=e.length-1;o>=0;o--)i=n.merge(i,e[o],!0);t.defaultOption=i}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});a(f,{registerWhenExtend:!0}),i.enableSubTypeDefaulter(f),i.enableTopologicalTravel(f,(function(t){var e=[];n.each(f.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=n.map(e,(function(t){return s(t).main})),"dataset"!==t&&n.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e})),n.mixin(f,h);var p=f;t.exports=p},function(t,e,l){l(63).__DEV__;var n=l(13),r=l(104),i=l(79),o=i.formatTime,a=i.encodeHTML,s=i.addCommas,u=i.getTooltipMarker,c=l(57),h=l(114),d=l(1034),f=l(659),p=l(77),g=p.getLayoutParams,m=p.mergeLayoutParam,v=l(660).createTask,y=l(231),b=y.prepareSource,w=y.getSource,x=l(290).retrieveRawValue,_=c.makeInner(),S=h.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,l,n){this.seriesIndex=this.componentIndex,this.dataTask=v({count:E,reset:C}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,l),b(this);var r=this.getInitialData(t,l);T(r,this),this.dataTask.context.data=r,_(this).dataBeforeProcessed=r,M(this)},mergeDefaultAndTheme:function(t,e){var l=this.layoutMode,r=l?g(t):{},i=this.subType;h.hasClass(i)&&(i+="Series"),n.merge(t,e.getTheme().get(this.subType)),n.merge(t,this.getDefaultOption()),c.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),l&&m(t,r,l)},mergeOption:function(t,e){t=n.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var l=this.layoutMode;l&&m(this.option,t,l),b(this);var r=this.getInitialData(t,e);T(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,_(this).dataBeforeProcessed=r,M(this)},fillDataTextStyle:function(t){if(t&&!n.isTypedArray(t))for(var e=["show"],l=0;l":"\n",d="richText"===r,f={},p=0;function g(t){return{renderMode:r,content:a(s(t)),style:f}}var m=this.getData(),v=m.mapDimension("defaultedTooltip",!0),y=v.length,b=this.getRawValue(t),w=n.isArray(b),_=m.getItemVisual(t,"color");n.isObject(_)&&_.colorStops&&(_=(_.colorStops[0]||{}).color),_=_||"transparent";var S=(y>1||w&&!y?function(l){var c=n.reduce(l,(function(t,e,l){var n=m.getDimensionInfo(l);return t|(n&&!1!==n.tooltip&&null!=n.displayName)}),0),h=[];function g(t,l){var n=m.getDimensionInfo(l);if(n&&!1!==n.otherDims.tooltip){var g=n.type,v="sub"+i.seriesIndex+"at"+p,y=u({color:_,type:"subItem",renderMode:r,markerId:v}),b="string"===typeof y?y:y.content,w=(c?b+a(n.displayName||"-")+": ":"")+a("ordinal"===g?t+"":"time"===g?e?"":o("yyyy/MM/dd hh:mm:ss",t):s(t));w&&h.push(w),d&&(f[v]=_,++p)}}v.length?n.each(v,(function(e){g(x(m,t,e),e)})):n.each(l,g);var y=c?d?"\n":"
":"",b=y+h.join(y||", ");return{renderMode:r,content:b,style:f}}(b):g(y?x(m,t,v[0]):w?b[0]:b)).content,M=i.seriesIndex+"at"+p,E=u({color:_,type:"item",renderMode:r,markerId:M});f[M]=_,++p;var C=m.getName(t),k=this.name;c.isNameSpecified(this)||(k=""),k=k?a(k)+(e?": ":h):"";var T="string"===typeof E?E:E.content;return{html:e?T+k+S:k+T+(C?a(C)+": "+S:S),markers:f}},isAnimationEnabled:function(){if(r.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,l){var n=this.ecModel,r=d.getColorFromPalette.call(this,t,e,l);return r||(r=n.getColorFromPalette(t,e,l)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function M(t){var e=t.name;c.isNameSpecified(t)||(t.name=function(t){var e=t.getRawData(),l=e.mapDimension("seriesName",!0),r=[];return n.each(l,(function(t){var l=e.getDimensionInfo(t);l.displayName&&r.push(l.displayName)})),r.join(" ")}(t)||e)}function E(t){return t.model.getRawData().count()}function C(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),k}function k(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function T(t,e){n.each(t.CHANGABLE_METHODS,(function(l){t.wrapMethod(l,n.curry(O,e))}))}function O(t){var e=A(t);e&&e.setOutputEnd(this.count())}function A(t){var e=(t.ecModel||{}).scheduler,l=e&&e.getPipeline(t.uid);if(l){var n=l.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}n.mixin(S,f),n.mixin(S,d);var D=S;t.exports=D},function(t,e,l){"use strict";var n=l(0),r=l.n(n),i=l(1),o=l.n(i),a=(l(1749),l(1762),l(987),l(1770),l(1772),l(1774),l(1775),l(1784),l(720)),s=l.n(a),u=l(721),c=l.n(u),h=l(1144),d=l.n(h),f=l(710),p=l(722),g=l.n(p),m=(l(1786),l(1788),l(999),l(1791),l(1792),null),v=null;function y(){if(null===m){if("undefined"===typeof document)return m=0;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var l=e.getBoundingClientRect().right;t.removeChild(e),m=l}return m}function b(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}function w(t){return t&&t.ownerDocument?t.ownerDocument:document}g.a&&window.addEventListener("resize",(function(){v!==window.devicePixelRatio&&(v=window.devicePixelRatio,m=null)}));var x=function(){function t(e,l){var n=this;this.onScroll=function(){var t=b(n.el);n.scrollXTicking||(t.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(t.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0)},this.scrollX=function(){n.axis.x.isOverflowing&&(n.showScrollbar("x"),n.positionScrollbar("x")),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&(n.showScrollbar("y"),n.positionScrollbar("y")),n.scrollYTicking=!1},this.onMouseEnter=function(){n.showScrollbar("x"),n.showScrollbar("y")},this.onMouseMove=function(t){n.mouseX=t.clientX,n.mouseY=t.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this.onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.hideScrollbars=function(){n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.track.rect)||(n.axis.y.scrollbar.el.classList.remove(n.classNames.visible),n.axis.y.isVisible=!1),n.isWithinBounds(n.axis.x.track.rect)||(n.axis.x.scrollbar.el.classList.remove(n.classNames.visible),n.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,l;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(e=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(l=n.isWithinBounds(n.axis.y.track.rect)),(e||l)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(t,"x"):n.onTrackClick(t,"x")),l&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(t,"y"):n.onTrackClick(t,"y"))))},this.drag=function(e){var l=n.axis[n.draggedAxis].track,r=l.rect[n.axis[n.draggedAxis].sizeAttr],i=n.axis[n.draggedAxis].scrollbar,o=n.contentWrapperEl[n.axis[n.draggedAxis].scrollSizeAttr],a=parseInt(n.elStyles[n.axis[n.draggedAxis].sizeAttr],10);e.preventDefault(),e.stopPropagation();var s=(("y"===n.draggedAxis?e.pageY:e.pageX)-l.rect[n.axis[n.draggedAxis].offsetAttr]-n.axis[n.draggedAxis].dragOffset)/(r-i.size)*(o-a);"x"===n.draggedAxis&&(s=n.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?s-(r+i.size):s,s=n.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-s:s),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=s},this.onEndDrag=function(t){var e=w(n.el),l=b(n.el);t.preventDefault(),t.stopPropagation(),n.el.classList.remove(n.classNames.dragging),e.removeEventListener("mousemove",n.drag,!0),e.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=l.setTimeout((function(){e.removeEventListener("click",n.preventClick,!0),e.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null}))},this.preventClick=function(t){t.preventDefault(),t.stopPropagation()},this.el=e,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,{},l),this.classNames=Object.assign({},t.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,t.instances.has(this.el)||(this.recalculate=s()(this.recalculate.bind(this),64),this.onMouseMove=s()(this.onMouseMove.bind(this),64),this.hideScrollbars=c()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=c()(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=d()(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var e=document.createElement("div");e.innerHTML='
';var l=e.firstElementChild;document.body.appendChild(l);var n=l.firstElementChild;l.scrollLeft=0;var r=t.getOffset(l),i=t.getOffset(n);l.scrollLeft=999;var o=t.getOffset(n);return{isRtlScrollingInverted:r.left!==i.left&&i.left-o.left!==0,isRtlScrollbarInverted:r.left!==i.left}},t.getOffset=function(t){var e=t.getBoundingClientRect(),l=w(t),n=b(t);return{top:e.top+(n.pageYOffset||l.documentElement.scrollTop),left:e.left+(n.pageXOffset||l.documentElement.scrollLeft)}};var e=t.prototype;return e.init=function(){t.instances.set(this.el,this),g.a&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.initDOM=function(){var t=this;if(Array.prototype.filter.call(this.el.children,(function(e){return e.classList.contains(t.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),l=document.createElement("div");e.classList.add(this.classNames.track),l.classList.add(this.classNames.scrollbar),e.appendChild(l),this.axis.x.track.el=e.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=e.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},e.initListeners=function(){var t=this,e=b(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(e){t.el.addEventListener(e,t.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(e){t.el.addEventListener(e,t.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),e.addEventListener("resize",this.onWindowResize);var l=!1,n=e.ResizeObserver||f.default;this.resizeObserver=new n((function(){l&&t.recalculate()})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),e.requestAnimationFrame((function(){l=!0})),this.mutationObserver=new e.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},e.recalculate=function(){var t=b(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var e=this.heightAutoObserverEl.offsetHeight<=1,l=this.heightAutoObserverEl.offsetWidth<=1,n=this.contentEl.offsetWidth,r=this.contentWrapperEl.offsetWidth,i=this.elStyles.overflowX,o=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var a=this.contentEl.scrollHeight,s=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=l?n+"px":"auto",this.placeholderEl.style.height=a+"px";var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=s>n,this.axis.y.isOverflowing=a>u,this.axis.x.isOverflowing="hidden"!==i&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==o&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&s>r-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&a>u-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},e.getScrollbarSize=function(t){if(void 0===t&&(t="y"),!this.axis[t].isOverflowing)return 0;var e,l=this.contentEl[this.axis[t].scrollSizeAttr],n=this.axis[t].track.el[this.axis[t].offsetSizeAttr],r=n/l;return e=Math.max(~~(r*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(e=Math.min(e,this.options.scrollbarMaxSize)),e},e.positionScrollbar=function(e){if(void 0===e&&(e="y"),this.axis[e].isOverflowing){var l=this.contentWrapperEl[this.axis[e].scrollSizeAttr],n=this.axis[e].track.el[this.axis[e].offsetSizeAttr],r=parseInt(this.elStyles[this.axis[e].sizeAttr],10),i=this.axis[e].scrollbar,o=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],a=(o="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-o:o)/(l-r),s=~~((n-i.size)*a);s="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?s+(n-i.size):s,i.el.style.transform="x"===e?"translate3d("+s+"px, 0, 0)":"translate3d(0, "+s+"px, 0)"}},e.toggleTrackVisibility=function(t){void 0===t&&(t="y");var e=this.axis[t].track.el,l=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?l.style.display="block":l.style.display="none"},e.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},e.onMouseMoveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)},e.onMouseLeaveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)},e.showScrollbar=function(t){void 0===t&&(t="y");var e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},e.onDragStart=function(t,e){void 0===e&&(e="y");var l=w(this.el),n=b(this.el),r=this.axis[e].scrollbar,i="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=i-r.rect[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),l.addEventListener("mousemove",this.drag,!0),l.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(l.addEventListener("click",this.preventClick,!0),l.addEventListener("dblclick",this.preventClick,!0)):(n.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.onTrackClick=function(t,e){var l=this;if(void 0===e&&(e="y"),this.options.clickOnTrack){var n=b(this.el);this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect();var r=this.axis[e].scrollbar.rect[this.axis[e].offsetAttr],i=parseInt(this.elStyles[this.axis[e].sizeAttr],10),o=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],a=("y"===e?this.mouseY-r:this.mouseX-r)<0?-1:1,s=-1===a?o-i:o+i;!function t(){var r,i;-1===a?o>s&&(o-=l.options.clickOnTrackSpeed,l.contentWrapperEl.scrollTo(((r={})[l.axis[e].offsetAttr]=o,r)),n.requestAnimationFrame(t)):o=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.findChild=function(t,e){var l=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,(function(t){return l.call(t,e)}))[0]},t}();x.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},x.instances=new WeakMap;var _=x;function S(t,e,l){return e in t?Object.defineProperty(t,e,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[e]=l,t}function M(){return(M=Object.assign||function(t){for(var e=1;e=0||(r[l]=t[l]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,l)&&(r[l]=t[l])}return r}var k=r.a.forwardRef((function(t,e){var l,i=t.children,o=t.scrollableNodeProps,a=void 0===o?{}:o,s=C(t,["children","scrollableNodeProps"]),u=Object(n.useRef)(),c=Object(n.useRef)(),h=Object(n.useRef)(),d={},f={},p=[];return Object.keys(s).forEach((function(t){Object.prototype.hasOwnProperty.call(_.defaultOptions,t)?d[t]=s[t]:t.match(/data-simplebar-(.+)/)&&"data-simplebar-direction"!==t?p.push({name:t,value:s[t]}):f[t]=s[t]})),p.length&&console.warn("simplebar-react: this way of passing options is deprecated. Pass it like normal props instead:\n 'data-simplebar-auto-hide=\"false\"' \u2014> 'autoHide=\"false\"'\n "),Object(n.useEffect)((function(){var t;return u=a.ref||u,c.current&&(l=new _(c.current,function(t){for(var e=1;e=0?d:h,g=0;gA.length&&A.push(t)}function I(t,e,l,n){var r=typeof t;"undefined"!==r&&"boolean"!==r||(t=null);var i=!1;if(null===t)i=!0;else switch(r){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case s:case u:i=!0}}if(i)return l(n,t,""===e?"."+L(t,0):e),1;if(i=0,e=""===e?".":e+":",Array.isArray(t))for(var o=0;o=0&&s.splice(e,1)}function p(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=l.nc;n&&(t.attrs.nonce=n)}return g(e,t.attrs),d(t,e),e}function g(t,e){Object.keys(e).forEach((function(l){t.setAttribute(l,e[l])}))}function m(t,e){var l,n,r,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var s=a++;l=o||(o=p(e)),n=y.bind(null,l,s,!1),r=y.bind(null,l,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(l=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),d(t,e),e}(e),n=function(t,e,l){var n=l.css,r=l.sourceMap,i=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||i)&&(n=u(n)),r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}.bind(null,l,e),r=function(){f(l),l.href&&URL.revokeObjectURL(l.href)}):(l=p(e),n=function(t,e){var l=e.css,n=e.media;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=l;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(l))}}.bind(null,l),r=function(){f(l)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=r()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var l=h(t,e);return c(l,e),function(t){for(var r=[],i=0;i>>2]>>>24-i%4*8&255;e[n+i>>>2]|=o<<24-(n+i)%4*8}else for(i=0;i>>2]=l[i>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,l=this.sigBytes;e[l>>>2]&=4294967295<<32-l%4*8,e.length=t.ceil(l/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var l,n=[],r=function(e){e=e;var l=987654321,n=4294967295;return function(){var r=((l=36969*(65535&l)+(l>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return r/=4294967296,(r+=.5)*(t.random()>.5?1:-1)}},i=0;i>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,l=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(l,e/2)}},u=a.Latin1={stringify:function(t){for(var e=t.words,l=t.sigBytes,n=[],r=0;r>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,l=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(l,e)}},c=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},h=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var l=this._data,n=l.words,r=l.sigBytes,i=this.blockSize,a=r/(4*i),s=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*i,u=t.min(4*s,r);if(s){for(var c=0;c3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",r=f(t,e),i=p(r,e);return u(i,i.getSelectionAfter(),l,n)},removeRange:function(t,e,l){var n,r,i,a;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),n=e.getAnchorKey(),r=e.getFocusKey(),i=t.getBlockForKey(n),a=t.getBlockForKey(r);var s=e.getStartOffset(),u=e.getEndOffset(),c=i.getEntityAt(s),h=a.getEntityAt(u-1);if(n===r&&c&&c===h){var d=o(t.getEntityMap(),i,a,e,l);return p(t,d)}var g=f(t,e);return p(g,e)},splitBlock:function(t,e){var l=f(t,e),n=p(l,e);return g(n,n.getSelectionAfter())},applyInlineStyle:function(t,e,l){return r.add(t,e,l)},removeInlineStyle:function(t,e,l){return r.remove(t,e,l)},setBlockType:function(t,e,l){return d(t,e,(function(t){return t.merge({type:l,depth:0})}))},setBlockData:function(t,e,l){return d(t,e,(function(t){return t.merge({data:l})}))},mergeBlockData:function(t,e,l){return d(t,e,(function(t){return t.merge({data:t.getData().merge(l)})}))},applyEntity:function(t,e,l){var n=f(t,e);return i(n,e,l)}};t.exports=v},function(t,e,l){"use strict";t.exports=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")}},function(t,e,l){"use strict";var n=l(1408),r=l(1410),i=l(1411),o=l(1412);function a(t,e,l,n){if(t===l)return!0;if(!l.startsWith(t))return!1;var i=l.slice(t.length);return!!e&&(i=n?n(i):i,r.contains(i,e))}function s(t){return"Windows"===n.platformName?t.replace(/^\s*NT/,""):t}var u={isBrowser:function(t){return a(n.browserName,n.browserFullVersion,t)},isBrowserArchitecture:function(t){return a(n.browserArchitecture,null,t)},isDevice:function(t){return a(n.deviceName,null,t)},isEngine:function(t){return a(n.engineName,n.engineVersion,t)},isPlatform:function(t){return a(n.platformName,n.platformFullVersion,t,s)},isPlatformArchitecture:function(t){return a(n.platformArchitecture,null,t)}};t.exports=i(u,o)},function(t,e,l){(function(e){var l=function(t){return t&&t.Math==Math&&t};t.exports=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof e&&e)||Function("return this")()}).call(this,l(52))},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,l){"use strict";var n,r="object"===typeof Reflect?Reflect:null,i=r&&"function"===typeof r.apply?r.apply:function(t,e,l){return Function.prototype.apply.call(t,e,l)};n=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!==t};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(t,e){return new Promise((function(l,n){function r(){void 0!==i&&t.removeListener("error",i),l([].slice.call(arguments))}var i;"error"!==e&&(i=function(l){t.removeListener(e,r),n(l)},t.once("error",i)),t.once(e,r)}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function h(t,e,l,n){var r,i,o,a;if(u(l),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,l.listener?l.listener:l),i=t._events),o=i[e]),void 0===o)o=i[e]=l,++t._eventsCount;else if("function"===typeof o?o=i[e]=n?[l,o]:[o,l]:n?o.unshift(l):o.push(l),(r=c(t))>0&&o.length>r&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=o.length,a=s,console&&console.warn&&console.warn(a)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,l){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:l},r=d.bind(n);return r.listener=l,n.wrapFn=r,r}function p(t,e,l){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"===typeof r?l?[r.listener||r]:[r]:l?function(t){for(var e=new Array(t.length),l=0;l0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=r[t];if(void 0===s)return!1;if("function"===typeof s)i(s,this,e);else{var u=s.length,c=m(s,u);for(l=0;l=0;i--)if(l[i]===e||l[i].listener===e){o=l[i].listener,r=i;break}if(r<0)return this;0===r?l.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},a.prototype.listeners=function(t){return p(this,t,!0)},a.prototype.rawListeners=function(t){return p(this,t,!1)},a.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},a.prototype.listenerCount=g,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(t,e,l){var n=l(701);t.exports=function(t,e){if(null==t)return{};var l,r,i=n(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,l)&&(i[l]=t[l])}return i}},function(t,e,l){"use strict";l.d(e,"a",(function(){return i}));var n=l(419);var r=l(540);function i(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Object(r.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(t,e,l){"use strict";l(147),l(103),l(343),l(1693),l(47);for(var n=l(59),r=l(54),i=(l(45),l(70)),o=l(71),a=l(46),s=l(0),u=l.n(s),c=l(93),h=l(42),d=l(38),f=(l(174),l(33)),p=l(3),g=l(119),m=l(148),v=l(24),y=l(22),b=l(56),w=l(211),x=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],_=new RegExp("["+x.map((function(t){return t.letters})).join("")+"]","g"),S={},M=0;M0,p=c-h-u,g=!1;p>l&&t.isBottom&&(i&&i(e),t.isBottom=!1),f&&t.isTop&&(a&&a(e),t.isTop=!1),f&&l>p?(r&&!t.isBottom&&r(e),d.scrollTop=c,g=!0,t.isBottom=!0):!f&&-l>u&&(o&&!t.isTop&&o(e),d.scrollTop=0,g=!0,t.isTop=!0),g&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var l=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,l)},t.getScrollTarget=function(e){t.scrollTarget=e},t}return Object(r.a)(l,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(t){t&&("function"===typeof t.addEventListener&&t.addEventListener("wheel",this.onWheel,!1),"function"===typeof t.addEventListener&&t.addEventListener("touchstart",this.onTouchStart,!1),"function"===typeof t.addEventListener&&t.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(t){"function"===typeof t.removeEventListener&&t.removeEventListener("wheel",this.onWheel,!1),"function"===typeof t.removeEventListener&&t.removeEventListener("touchstart",this.onTouchStart,!1),"function"===typeof t.removeEventListener&&t.removeEventListener("touchmove",this.onTouchMove,!1)}},{key:"render",value:function(){return u.a.createElement(R,{innerRef:this.getScrollTarget},this.props.children)}}]),l}(s.Component);function $(t){var e=t.isEnabled,l=void 0===e||e,n=Object(f.a)(t,["isEnabled"]);return l?u.a.createElement(K,n):n.children}var Q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.isSearchable,n=e.isMulti,r=e.label,i=e.isDisabled;switch(t){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(r||"Select"," is focused ").concat(l?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},J=function(t,e){var l=e.value,n=e.isDisabled;if(l)switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(l,", deselected.");case"select-option":return"option ".concat(l,n?" is disabled. Select another option.":", selected.")}},tt=function(t){return!!t.isDisabled};var et={clearIndicator:b.i,container:b.g,control:b.h,dropdownIndicator:b.j,group:b.m,groupHeading:b.k,indicatorsContainer:b.o,indicatorSeparator:b.l,input:b.n,loadingIndicator:b.r,loadingMessage:b.p,menu:b.s,menuList:b.q,menuPortal:b.t,multiValue:b.u,multiValueLabel:b.v,multiValueRemove:b.w,noOptionsMessage:b.x,option:b.y,placeholder:b.z,singleValue:b.A,valueContainer:b.B};var lt={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function nt(t,e){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),l.push.apply(l,n)}return l}function rt(t){for(var e=1;e-1},formatGroupLabel:function(t){return t.label},getOptionLabel:function(t){return t.label},getOptionValue:function(t){return t.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:tt,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(b.D)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var e=t.count;return"".concat(e," result").concat(1!==e?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},st=1,ut=function(t){Object(i.a)(l,t);var e=it(l);function l(t){var r;Object(n.a)(this,l),(r=e.call(this,t)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},r.blockOptionHover=!1,r.isComposing=!1,r.clearFocusValueOnUpdate=!1,r.commonProps=void 0,r.components=void 0,r.hasGroups=!1,r.initialTouchX=0,r.initialTouchY=0,r.inputIsHiddenAfterUpdate=void 0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(t){r.controlRef=t},r.focusedOptionRef=null,r.getFocusedOptionRef=function(t){r.focusedOptionRef=t},r.menuListRef=null,r.getMenuListRef=function(t){r.menuListRef=t},r.inputRef=null,r.getInputRef=function(t){r.inputRef=t},r.cacheComponents=function(t){r.components=Object(b.E)({components:t})},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(t,e){var l=r.props,n=l.onChange,i=l.name;n(t,rt(rt({},e),{},{name:i}))},r.setValue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",l=arguments.length>2?arguments[2]:void 0,n=r.props,i=n.closeMenuOnSelect,o=n.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.inputIsHiddenAfterUpdate=!o,r.onMenuClose()),r.clearFocusValueOnUpdate=!0,r.onChange(t,{action:e,option:l})},r.selectOption=function(t){var e=r.props,l=e.blurInputOnSelect,n=e.isMulti,i=r.state.selectValue;if(n)if(r.isOptionSelected(t,i)){var o=r.getOptionValue(t);r.setValue(i.filter((function(t){return r.getOptionValue(t)!==o})),"deselect-option",t),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(t)}})}else r.isOptionDisabled(t,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t),isDisabled:!0}}):(r.setValue([].concat(Object(m.a)(i),[t]),"select-option",t),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t)}}));else r.isOptionDisabled(t,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t),isDisabled:!0}}):(r.setValue(t,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(t)}}));l&&r.blurInput()},r.removeValue=function(t){var e=r.state.selectValue,l=r.getOptionValue(t),n=e.filter((function(t){return r.getOptionValue(t)!==l}));r.onChange(n.length?n:null,{action:"remove-value",removedValue:t}),r.announceAriaLiveSelection({event:"remove-value",context:{value:t?r.getOptionLabel(t):""}}),r.focusInput()},r.clearValue=function(){var t=r.props.isMulti;r.onChange(t?[]:null,{action:"clear"})},r.popValue=function(){var t=r.state.selectValue,e=t[t.length-1],l=t.slice(0,t.length-1);r.announceAriaLiveSelection({event:"pop-value",context:{value:e?r.getOptionLabel(e):""}}),r.onChange(l.length?l:null,{action:"pop-value",removedValue:e})},r.getOptionLabel=function(t){return r.props.getOptionLabel(t)},r.getOptionValue=function(t){return r.props.getOptionValue(t)},r.getStyles=function(t,e){var l=et[t](e);l.boxSizing="border-box";var n=r.props.styles[t];return n?n(l,e):l},r.getElementId=function(t){return"".concat(r.instancePrefix,"-").concat(t)},r.getActiveDescendentId=function(){var t=r.props.menuIsOpen,e=r.state,l=e.menuOptions,n=e.focusedOption;if(n&&t){var i=l.focusable.indexOf(n),o=l.render[i];return o&&o.key}},r.announceAriaLiveSelection=function(t){var e=t.event,l=t.context;r.setState({ariaLiveSelection:J(e,l)})},r.announceAriaLiveContext=function(t){var e=t.event,l=t.context;r.setState({ariaLiveContext:Q(e,rt(rt({},l),{},{label:r.props["aria-label"]}))})},r.onMenuMouseDown=function(t){0===t.button&&(t.stopPropagation(),t.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(t){r.blockOptionHover=!1},r.onControlMouseDown=function(t){var e=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&r.onMenuClose():e&&r.openMenu("first"):(e&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&t.preventDefault()},r.onDropdownIndicatorMouseDown=function(t){if((!t||"mousedown"!==t.type||0===t.button)&&!r.props.isDisabled){var e=r.props,l=e.isMulti,n=e.menuIsOpen;r.focusInput(),n?(r.inputIsHiddenAfterUpdate=!l,r.onMenuClose()):r.openMenu("first"),t.preventDefault(),t.stopPropagation()}},r.onClearIndicatorMouseDown=function(t){t&&"mousedown"===t.type&&0!==t.button||(r.clearValue(),t.stopPropagation(),r.openAfterFocus=!1,"touchend"===t.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(t){"boolean"===typeof r.props.closeMenuOnScroll?t.target instanceof HTMLElement&&Object(b.F)(t.target)&&r.props.onMenuClose():"function"===typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(t)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(t){var e=t.touches,l=e&&e.item(0);l&&(r.initialTouchX=l.clientX,r.initialTouchY=l.clientY,r.userIsDragging=!1)},r.onTouchMove=function(t){var e=t.touches,l=e&&e.item(0);if(l){var n=Math.abs(l.clientX-r.initialTouchX),i=Math.abs(l.clientY-r.initialTouchY);r.userIsDragging=n>5||i>5}},r.onTouchEnd=function(t){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(t.target)&&r.menuListRef&&!r.menuListRef.contains(t.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(t){r.userIsDragging||r.onControlMouseDown(t)},r.onClearIndicatorTouchEnd=function(t){r.userIsDragging||r.onClearIndicatorMouseDown(t)},r.onDropdownIndicatorTouchEnd=function(t){r.userIsDragging||r.onDropdownIndicatorMouseDown(t)},r.handleInputChange=function(t){var e=t.currentTarget.value;r.inputIsHiddenAfterUpdate=!1,r.onInputChange(e,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(t){var e=r.props,l=e.isSearchable,n=e.isMulti;r.props.onFocus&&r.props.onFocus(t),r.inputIsHiddenAfterUpdate=!1,r.announceAriaLiveContext({event:"input",context:{isSearchable:l,isMulti:n}}),r.setState({isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(t){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(t),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(t){r.blockOptionHover||r.state.focusedOption===t||r.setState({focusedOption:t})},r.shouldHideSelectedOptions=function(){var t=r.props,e=t.hideSelectedOptions,l=t.isMulti;return void 0===e?l:e},r.onKeyDown=function(t){var e=r.props,l=e.isMulti,n=e.backspaceRemovesValue,i=e.escapeClearsValue,o=e.inputValue,a=e.isClearable,s=e.isDisabled,u=e.menuIsOpen,c=e.onKeyDown,h=e.tabSelectsValue,d=e.openMenuOnFocus,f=r.state,p=f.focusedOption,g=f.focusedValue,m=f.selectValue;if(!s&&("function"!==typeof c||(c(t),!t.defaultPrevented))){switch(r.blockOptionHover=!0,t.key){case"ArrowLeft":if(!l||o)return;r.focusValue("previous");break;case"ArrowRight":if(!l||o)return;r.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(g)r.removeValue(g);else{if(!n)return;l?r.popValue():a&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(t.shiftKey||!u||!h||!p||d&&r.isOptionSelected(p,m))return;r.selectOption(p);break;case"Enter":if(229===t.keyCode)break;if(u){if(!p)return;if(r.isComposing)return;r.selectOption(p);break}return;case"Escape":u?(r.inputIsHiddenAfterUpdate=!1,r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):a&&i&&r.clearValue();break;case" ":if(o)return;if(!u){r.openMenu("first");break}if(!p)return;r.selectOption(p);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}t.preventDefault()}},r.buildMenuOptions=function(t,e){var l=t.inputValue,n=void 0===l?"":l,i=t.options,o=function(t,l){var i=r.isOptionDisabled(t,e),o=r.isOptionSelected(t,e),a=r.getOptionLabel(t),s=r.getOptionValue(t);if(!(r.shouldHideSelectedOptions()&&o||!r.filterOption({label:a,value:s,data:t},n))){var u=i?void 0:function(){return r.onOptionHover(t)},c=i?void 0:function(){return r.selectOption(t)},h="".concat(r.getElementId("option"),"-").concat(l);return{innerProps:{id:h,onClick:c,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:t,isDisabled:i,isSelected:o,key:h,label:a,type:"option",value:s}}};return i.reduce((function(t,e,l){if(e.options){r.hasGroups||(r.hasGroups=!0);var n=e.options.map((function(e,n){var r=o(e,"".concat(l,"-").concat(n));return r&&t.focusable.push(e),r})).filter(Boolean);if(n.length){var i="".concat(r.getElementId("group"),"-").concat(l);t.render.push({type:"group",key:i,data:e,options:n})}}else{var a=o(e,"".concat(l));a&&(t.render.push(a),t.focusable.push(e))}return t}),{render:[],focusable:[]})};var i=t.value;r.cacheComponents=Object(c.a)(r.cacheComponents,b.a).bind(Object(y.a)(r)),r.cacheComponents(t.components),r.instancePrefix="react-select-"+(r.props.instanceId||++st);var o=Object(b.b)(i);r.buildMenuOptions=Object(c.a)(r.buildMenuOptions,(function(t,e){var l=t,n=Object(g.a)(l,2),r=n[0],i=n[1],o=e,a=Object(g.a)(o,2),s=a[0],u=a[1];return Object(b.a)(i,u)&&Object(b.a)(r.inputValue,s.inputValue)&&Object(b.a)(r.options,s.options)})).bind(Object(y.a)(r));var a=t.menuIsOpen?r.buildMenuOptions(t,o):{render:[],focusable:[]};return r.state.menuOptions=a,r.state.selectValue=o,r}return Object(r.a)(l,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=this.props,l=e.options,n=e.value,r=e.menuIsOpen,i=e.inputValue;if(this.cacheComponents(t.components),t.value!==n||t.options!==l||t.menuIsOpen!==r||t.inputValue!==i){var o=Object(b.b)(t.value),a=t.menuIsOpen?this.buildMenuOptions(t,o):{render:[],focusable:[]},s=this.getNextFocusedValue(o),u=this.getNextFocusedOption(a.focusable);this.setState({menuOptions:a,selectValue:o,focusedOption:u,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(t){var e=this.props,l=e.isDisabled,n=e.menuIsOpen,r=this.state.isFocused;(r&&!l&&t.isDisabled||r&&n&&!t.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Object(b.c)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var t=this.props,e=t.isSearchable,l=t.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:e,isMulti:l}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(t,e){this.props.onInputChange(t,e)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(t){var e=this,l=this.state,n=l.selectValue,r=l.isFocused,i=this.buildMenuOptions(this.props,n),o=this.props.isMulti,a="first"===t?0:i.focusable.length-1;if(!o){var s=i.focusable.indexOf(n[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:i,focusedValue:null,focusedOption:i.focusable[a]},(function(){e.onMenuOpen(),e.announceAriaLiveContext({event:"menu"})}))}},{key:"focusValue",value:function(t){var e=this.props,l=e.isMulti,n=e.isSearchable,r=this.state,i=r.selectValue,o=r.focusedValue;if(l){this.setState({focusedOption:null});var a=i.indexOf(o);o||(a=-1,this.announceAriaLiveContext({event:"value"}));var s=i.length-1,u=-1;if(i.length){switch(t){case"previous":u=0===a?0:-1===a?s:a-1;break;case"next":a>-1&&a0&&void 0!==arguments[0]?arguments[0]:"first",e=this.props.pageSize,l=this.state,n=l.focusedOption,r=l.menuOptions,i=r.focusable;if(i.length){var o=0,a=i.indexOf(n);n||(a=-1,this.announceAriaLiveContext({event:"menu"})),"up"===t?o=a>0?a-1:i.length-1:"down"===t?o=(a+1)%i.length:"pageup"===t?(o=a-e)<0&&(o=0):"pagedown"===t?(o=a+e)>i.length-1&&(o=i.length-1):"last"===t&&(o=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[o],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:tt(i[o])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(lt):rt(rt({},lt),this.props.theme):lt}},{key:"getCommonProps",value:function(){var t=this.clearValue,e=this.getStyles,l=this.setValue,n=this.selectOption,r=this.props,i=r.classNamePrefix,o=r.isMulti,a=r.isRtl,s=r.options,u=this.state.selectValue,c=this.hasValue();return{cx:b.d.bind(null,i),clearValue:t,getStyles:e,getValue:function(){return u},hasValue:c,isMulti:o,isRtl:a,options:s,selectOption:n,setValue:l,selectProps:r,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(t){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var e=this.state,l=e.focusedValue,n=e.selectValue.indexOf(l);if(n>-1){if(t.indexOf(l)>-1)return l;if(n-1?e:t[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var t=this.props,e=t.isClearable,l=t.isMulti;return void 0===e?l:e}},{key:"isOptionDisabled",value:function(t,e){return"function"===typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(t,e)}},{key:"isOptionSelected",value:function(t,e){var l=this;if(e.indexOf(t)>-1)return!0;if("function"===typeof this.props.isOptionSelected)return this.props.isOptionSelected(t,e);var n=this.getOptionValue(t);return e.some((function(t){return l.getOptionValue(t)===n}))}},{key:"filterOption",value:function(t,e){return!this.props.filterOption||this.props.filterOption(t,e)}},{key:"formatOptionLabel",value:function(t,e){if("function"===typeof this.props.formatOptionLabel){var l=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(t,{context:e,inputValue:l,selectValue:n})}return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var t=this.state,e=t.ariaLiveContext,l=t.selectValue,n=t.focusedValue,r=t.focusedOption,i=this.props,o=i.options,a=i.menuIsOpen,s=i.inputValue,u=i.screenReaderStatus,c=n?function(t){var e=t.focusedValue,l=t.getOptionLabel,n=t.selectValue;return"value ".concat(l(e)," focused, ").concat(n.indexOf(e)+1," of ").concat(n.length,".")}({focusedValue:n,getOptionLabel:this.getOptionLabel,selectValue:l}):"",h=r&&a?function(t){var e=t.focusedOption,l=t.getOptionLabel,n=t.options;return"option ".concat(l(e)," focused").concat(e.isDisabled?" disabled":"",", ").concat(n.indexOf(e)+1," of ").concat(n.length,".")}({focusedOption:r,getOptionLabel:this.getOptionLabel,options:o}):"",d=function(t){var e=t.inputValue,l=t.screenReaderMessage;return"".concat(l).concat(e?" for search term "+e:"",".")}({inputValue:s,screenReaderMessage:u({count:this.countOptions()})});return"".concat(c," ").concat(h," ").concat(d," ").concat(e)}},{key:"renderInput",value:function(){var t=this.props,e=t.isDisabled,l=t.isSearchable,n=t.inputId,r=t.inputValue,i=t.tabIndex,o=t.form,a=this.components.Input,s=this.state.inputIsHidden,c=n||this.getElementId("input"),h={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!l)return u.a.createElement(I,Object(p.a)({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:b.e,onFocus:this.onInputFocus,readOnly:!0,disabled:e,tabIndex:i,form:o,value:""},h));var d=this.commonProps,f=d.cx,g=d.theme,m=d.selectProps;return u.a.createElement(a,Object(p.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:f,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:e,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:i,form:o,theme:g,type:"text",value:r},h))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,e=this.components,l=e.MultiValue,n=e.MultiValueContainer,r=e.MultiValueLabel,i=e.MultiValueRemove,o=e.SingleValue,a=e.Placeholder,s=this.commonProps,c=this.props,h=c.controlShouldRenderValue,d=c.isDisabled,f=c.isMulti,g=c.inputValue,m=c.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!h)return g?null:u.a.createElement(a,Object(p.a)({},s,{key:"placeholder",isDisabled:d,isFocused:w}),m);if(f)return y.map((function(e,o){var a=e===b;return u.a.createElement(l,Object(p.a)({},s,{components:{Container:n,Label:r,Remove:i},isFocused:a,isDisabled:d,key:t.getOptionValue(e),index:o,removeProps:{onClick:function(){return t.removeValue(e)},onTouchEnd:function(){return t.removeValue(e)},onMouseDown:function(t){t.preventDefault(),t.stopPropagation()}},data:e}),t.formatOptionLabel(e,"value"))}));if(g)return null;var x=y[0];return u.a.createElement(o,Object(p.a)({},s,{data:x,isDisabled:d}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.components.ClearIndicator,e=this.commonProps,l=this.props,n=l.isDisabled,r=l.isLoading,i=this.state.isFocused;if(!this.isClearable()||!t||n||!this.hasValue()||r)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.a.createElement(t,Object(p.a)({},e,{innerProps:o,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var t=this.components.LoadingIndicator,e=this.commonProps,l=this.props,n=l.isDisabled,r=l.isLoading,i=this.state.isFocused;if(!t||!r)return null;return u.a.createElement(t,Object(p.a)({},e,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.components,e=t.DropdownIndicator,l=t.IndicatorSeparator;if(!e||!l)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return u.a.createElement(l,Object(p.a)({},n,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var t=this.components.DropdownIndicator;if(!t)return null;var e=this.commonProps,l=this.props.isDisabled,n=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return u.a.createElement(t,Object(p.a)({},e,{innerProps:r,isDisabled:l,isFocused:n}))}},{key:"renderMenu",value:function(){var t=this,e=this.components,l=e.Group,n=e.GroupHeading,r=e.Menu,i=e.MenuList,o=e.MenuPortal,a=e.LoadingMessage,s=e.NoOptionsMessage,c=e.Option,h=this.commonProps,d=this.state,g=d.focusedOption,m=d.menuOptions,v=this.props,y=v.captureMenuScroll,w=v.inputValue,x=v.isLoading,_=v.loadingMessage,S=v.minMenuHeight,M=v.maxMenuHeight,E=v.menuIsOpen,C=v.menuPlacement,k=v.menuPosition,T=v.menuPortalTarget,O=v.menuShouldBlockScroll,A=v.menuShouldScrollIntoView,D=v.noOptionsMessage,P=v.onMenuScrollToTop,I=v.onMenuScrollToBottom;if(!E)return null;var L,R=function(e){var l=g===e.data;return e.innerRef=l?t.getFocusedOptionRef:void 0,u.a.createElement(c,Object(p.a)({},h,e,{isFocused:l}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())L=m.render.map((function(e){if("group"===e.type){e.type;var r=Object(f.a)(e,["type"]),i="".concat(e.key,"-heading");return u.a.createElement(l,Object(p.a)({},h,r,{Heading:n,headingProps:{id:i},label:t.formatGroupLabel(e.data)}),e.options.map((function(t){return R(t)})))}if("option"===e.type)return R(e)}));else if(x){var N=_({inputValue:w});if(null===N)return null;L=u.a.createElement(a,h,N)}else{var j=D({inputValue:w});if(null===j)return null;L=u.a.createElement(s,h,j)}var B={minMenuHeight:S,maxMenuHeight:M,menuPlacement:C,menuPosition:k,menuShouldScrollIntoView:A},F=u.a.createElement(b.f,Object(p.a)({},h,B),(function(e){var l=e.ref,n=e.placerProps,o=n.placement,a=n.maxHeight;return u.a.createElement(r,Object(p.a)({},h,B,{innerRef:l,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:x,placement:o}),u.a.createElement($,{isEnabled:y,onTopArrive:P,onBottomArrive:I},u.a.createElement(q,{isEnabled:O},u.a.createElement(i,Object(p.a)({},h,{innerRef:t.getMenuListRef,isLoading:x,maxHeight:a}),L))))}));return T||"fixed"===k?u.a.createElement(o,Object(p.a)({},h,{appendTo:T,controlElement:this.controlRef,menuPlacement:C,menuPosition:k}),F):F}},{key:"renderFormField",value:function(){var t=this,e=this.props,l=e.delimiter,n=e.isDisabled,r=e.isMulti,i=e.name,o=this.state.selectValue;if(i&&!n){if(r){if(l){var a=o.map((function(e){return t.getOptionValue(e)})).join(l);return u.a.createElement("input",{name:i,type:"hidden",value:a})}var s=o.length>0?o.map((function(e,l){return u.a.createElement("input",{key:"i-".concat(l),name:i,type:"hidden",value:t.getOptionValue(e)})})):u.a.createElement("input",{name:i,type:"hidden"});return u.a.createElement("div",null,s)}var c=o[0]?this.getOptionValue(o[0]):"";return u.a.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?u.a.createElement(P,{"aria-live":"polite"},u.a.createElement("span",{id:"aria-selection-event"},"\xa0",this.state.ariaLiveSelection),u.a.createElement("span",{id:"aria-context"},"\xa0",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var t=this.components,e=t.Control,l=t.IndicatorsContainer,n=t.SelectContainer,r=t.ValueContainer,i=this.props,o=i.className,a=i.id,s=i.isDisabled,c=i.menuIsOpen,h=this.state.isFocused,d=this.commonProps=this.getCommonProps();return u.a.createElement(n,Object(p.a)({},d,{className:o,innerProps:{id:a,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:h}),this.renderLiveRegion(),u.a.createElement(e,Object(p.a)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:h,menuIsOpen:c}),u.a.createElement(r,Object(p.a)({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),u.a.createElement(l,Object(p.a)({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),l}(s.Component);ut.defaultProps=at;l(963),l(512);function ct(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var l,n=Object(a.a)(t);if(e){var r=Object(a.a)(this).constructor;l=Reflect.construct(n,arguments,r)}else l=n.apply(this,arguments);return Object(o.a)(this,l)}}var ht={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},dt=l(409);function ft(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var l,n=Object(a.a)(t);if(e){var r=Object(a.a)(this).constructor;l=Reflect.construct(n,arguments,r)}else l=n.apply(this,arguments);return Object(o.a)(this,l)}}s.Component;var pt=function(t){var e,l;return l=e=function(e){Object(i.a)(o,e);var l=ct(o);function o(){var t;Object(n.a)(this,o);for(var e=arguments.length,r=new Array(e),i=0;i1?l-1:0),r=1;r5e3&&(d=0,h={}),d++,h[l]=r,r}function m(t,e,l){return"right"===l?t-=e:"center"===l&&(t-=e/2),t}function v(t,e,l){return"middle"===l?t-=e/2:"bottom"===l&&(t-=e),t}function y(t,e,l){var n=e.textPosition,r=e.textDistance,i=l.x,o=l.y;r=r||0;var a=l.height,s=l.width,u=a/2,c="left",h="top";switch(n){case"left":i-=r,o+=u,c="right",h="middle";break;case"right":i+=r+s,o+=u,h="middle";break;case"top":i+=s/2,o-=r,c="center",h="bottom";break;case"bottom":i+=s/2,o+=a+r,c="center";break;case"inside":i+=s/2,o+=u,c="center",h="middle";break;case"insideLeft":i+=r,o+=u,h="middle";break;case"insideRight":i+=s-r,o+=u,c="right",h="middle";break;case"insideTop":i+=s/2,o+=r,c="center";break;case"insideBottom":i+=s/2,o+=a-r,c="center",h="bottom";break;case"insideTopLeft":i+=r,o+=r;break;case"insideTopRight":i+=s-r,o+=r,c="right";break;case"insideBottomLeft":i+=r,o+=a-r,h="bottom";break;case"insideBottomRight":i+=s-r,o+=a-r,c="right",h="bottom"}return(t=t||{}).x=i,t.y=o,t.textAlign=c,t.textVerticalAlign=h,t}function b(t,e,l,n,r){if(!e)return"";var i=(t+"").split("\n");r=w(e,l,n,r);for(var o=0,a=i.length;o=i;u++)o-=i;var c=g(l,e);return c>o&&(l="",c=0),o=t-c,n.ellipsis=l,n.ellipsisWidth=c,n.contentWidth=o,n.containerWidth=t,n}function x(t,e){var l=e.containerWidth,n=e.font,r=e.contentWidth;if(!l)return"";var i=g(t,n);if(i<=l)return t;for(var o=0;;o++){if(i<=r||o>=e.maxIterations){t+=e.ellipsis;break}var a=0===o?_(t,r,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(t.length*r/i):0;i=g(t=t.substr(0,a),n)}return""===t&&(t=e.placeholder),t}function _(t,e,l,n){for(var r=0,i=0,o=t.length;ih)t="",o=[];else if(null!=d)for(var f=w(d-(l?l[1]+l[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),p=0,g=o.length;pi&&k(l,t.substring(i,o)),k(l,n[2],n[1]),i=f.lastIndex}iy)return{lines:[],width:0,height:0};j.textWidth=g(j.text,O);var D=C.textWidth,P=null==D||"auto"===D;if("string"===typeof D&&"%"===D.charAt(D.length-1))j.percentWidth=D,d.push(j),D=0;else{if(P){D=j.textWidth;var I=C.textBackgroundColor,L=I&&I.image;L&&(L=r.findExistImage(L),r.isImageReady(L)&&(D=Math.max(D,L.width*A/L.height)))}var R=T?T[1]+T[3]:0;D+=R;var N=null!=v?v-M:null;null!=N&&Ni?1*n:0})),!0},o=function(t,e){var l=Object.assign({},t);return e&&("string"===typeof e?delete l[e]:e.forEach((function(t){delete l[t]}))),l},a=function(t,e){void 0===e&&(e="application/octet-stream");var l=t.toLowerCase(),r=n.filter((function(t){return l.endsWith("."+t.ext)}));return r.length>0?r[0].type:e},s=function(t){var e=t.toLowerCase();return!!e.startsWith("text/")||("application/json"===e||"application/xml"===e||"application/sh"===e)},u=function(){for(var t="",e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",l=32;l>0;l-=1)t+=e[Math.floor(Math.random()*e.length)];return t},c=function(t){if(t.isResolved)return t;var e=!0,l=!1,n=!1,r=t.then((function(t){return n=!0,e=!1,t}),(function(t){throw l=!0,e=!1,t}));return r.isFullfilled=function(){return n},r.isPending=function(){return e},r.isRejected=function(){return l},r},h=function(){if("undefined"===typeof self)return!1;var t=self;return"undefined"!==typeof t.WorkerGlobalScope&&self instanceof t.WorkerGlobalScope},d=function(){return{isBrowser:"undefined"!==typeof window&&"undefined"!==typeof window.document,isNode:"undefined"!==typeof t&&null!=t.versions&&null!=t.versions.node}},f=function t(e,l,n){if(void 0===l&&(l=[]),void 0===n&&(n=[]),!g(e))return e;var r={};for(var i in e){if(e.hasOwnProperty(i))r[l.includes(i)?i:i[0].toLowerCase()+i.slice(1)]=n.includes(i)?e[i]:t(e[i],l,n)}return r},p=function t(e,l,n){if(void 0===l&&(l=[]),void 0===n&&(n=[]),!g(e))return e;var r={};for(var i in e){if(e.hasOwnProperty(i))r[l.includes(i)?i:i[0].toUpperCase()+i.slice(1)]=n.includes(i)?e[i]:t(e[i],l,n)}return r},g=function(t){return t instanceof Object&&!(t instanceof Array)&&!(t instanceof Function)&&!(t instanceof Number)&&!(t instanceof String)&&!(t instanceof Boolean)},m=function(){function t(){}return t.isEmpty=r,t.sortByField=i,t.objectLessAttributes=o,t.filenameToContentType=a,t.isTextFile=s,t.generateRandomString=u,t.makeQuerablePromise=c,t.isWebWorker=h,t.browserOrNode=d,t.transferKeyToLowerCase=f,t.transferKeyToUpperCase=p,t.isStrictObject=g,t}()}).call(this,l(83))},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.InlineIcon=e.Icon=void 0;var n,r=(n=l(0))&&n.__esModule?n:{default:n};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(t,e){for(var l=0;l'+b+""),!0!==e.box&&"true"!==e.box&&"1"!==e.box||(b+=''),{attributes:a,body:b,style:o}}},{key:"getSVG",value:function(e,l){var n=t.splitAttributes(e),r=this.getAttributes(n.icon),i='',i+=r.body+""}}])&&o(e.prototype,l),n&&o(e,n),t}();function f(t,e){if("object"!==i(t.icon))return null;var l=d.splitAttributes(t),n=l.icon,o=l.node;delete o.icon,void 0===n.inline&&(n.inline=e);var a=new d(function(t){var e,l=Object.create(null);for(e in h)l[e]=h[e];for(e in t)l[e]=t[e];return void 0===l.inlineTop&&(l.inlineTop=l.top),void 0===l.inlineHeight&&(l.inlineHeight=l.height),void 0===l.verticalAlign&&(l.verticalAlign=l.height%7===0&&l.height%8!==0?-.143:-.125),l}(t.icon)).getAttributes(n),s={transform:"rotate(360deg)"};if(void 0!==a.style["vertical-align"]&&(s.verticalAlign=a.style["vertical-align"]),void 0!==t.style)for(var u in t.style)s[u]=t.style[u];var c,f={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:s};for(c in o)f[c]=o[c];for(c in a.attributes)f[c]=a.attributes[c];return f.dangerouslySetInnerHTML={__html:a.body},r.default.createElement("svg",f,null)}var p=function(t){return f(t,!1)};e.Icon=p;e.InlineIcon=function(t){return f(t,!0)};var g=p;e.default=g},function(t,e){e.__esModule=!0,e.default={body:'',width:24,height:24}},,function(t,e,l){"use strict";var n=l(1645),r=l(1646);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){r.isString(t)&&(t=b(t));return t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),h=["%","/","?",";","#"].concat(c),d=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=l(1647);function b(t,e,l){if(t&&r.isObject(t)&&t instanceof i)return t;var n=new i;return n.parse(t,e,l),n}i.prototype.parse=function(t,e,l){if(!r.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i127?I+="x":I+=P[L];if(!I.match(f)){var N=A.slice(0,k),j=A.slice(k+1),B=P.match(p);B&&(N.push(B[1]),j.unshift(B[2])),j.length&&(b="/"+j.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+F,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!g[_])for(k=0,D=c.length;k0)&&l.host.split("@"))&&(l.auth=O.shift(),l.host=l.hostname=O.shift());return l.search=t.search,l.query=t.query,r.isNull(l.pathname)&&r.isNull(l.search)||(l.path=(l.pathname?l.pathname:"")+(l.search?l.search:"")),l.href=l.format(),l}if(!S.length)return l.pathname=null,l.search?l.path="/"+l.search:l.path=null,l.href=l.format(),l;for(var E=S.slice(-1)[0],C=(l.host||t.host||S.length>1)&&("."===E||".."===E)||""===E,k=0,T=S.length;T>=0;T--)"."===(E=S[T])?S.splice(T,1):".."===E?(S.splice(T,1),k++):k&&(S.splice(T,1),k--);if(!x&&!_)for(;k--;k)S.unshift("..");!x||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),C&&"/"!==S.join("/").substr(-1)&&S.push("");var O,A=""===S[0]||S[0]&&"/"===S[0].charAt(0);M&&(l.hostname=l.host=A?"":S.length?S.shift():"",(O=!!(l.host&&l.host.indexOf("@")>0)&&l.host.split("@"))&&(l.auth=O.shift(),l.host=l.hostname=O.shift()));return(x=x||l.host&&S.length)&&!A&&S.unshift(""),S.length?l.pathname=S.join("/"):(l.pathname=null,l.path=null),r.isNull(l.pathname)&&r.isNull(l.search)||(l.path=(l.pathname?l.pathname:"")+(l.search?l.search:"")),l.auth=t.auth||l.auth,l.slashes=l.slashes||t.slashes,l.href=l.format(),l},i.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e){var l=Array.isArray;t.exports=l},function(t,e,l){"use strict";var n=l(69),r=n.Map,i=n.OrderedSet,o=n.Record,a=i(),s={style:a,entity:null},u=function(t){var e,l;function n(){return t.apply(this,arguments)||this}l=t,(e=n).prototype=Object.create(l.prototype),e.prototype.constructor=e,e.__proto__=l;var o=n.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(t){return this.getStyle().includes(t)},n.applyStyle=function(t,e){var l=t.set("style",t.getStyle().add(e));return n.create(l)},n.removeStyle=function(t,e){var l=t.set("style",t.getStyle().remove(e));return n.create(l)},n.applyEntity=function(t,e){var l=t.getEntity()===e?t:t.set("entity",e);return n.create(l)},n.create=function(t){if(!t)return c;var e=r({style:a,entity:null}).merge(t),l=h.get(e);if(l)return l;var i=new n(e);return h=h.set(e,i),i},n.fromJS=function(t){var e=t.style,l=t.entity;return new n({style:Array.isArray(e)?i(e):e,entity:Array.isArray(l)?i(l):l})},n}(o(s)),c=new u,h=r([[r(s),c]]);u.EMPTY=c,t.exports=u},function(t,e,l){"use strict";var n=l(165),r=l(370),i=l(69),o=i.List,a=i.Map,s=i.OrderedSet,u=i.Record,c=i.Repeat,h=s(),d={parent:null,characterList:o(),data:a(),depth:0,key:"",text:"",type:"unstyled",children:o(),prevSibling:null,nextSibling:null},f=function(t,e){return t.getStyle()===e.getStyle()},p=function(t,e){return t.getEntity()===e.getEntity()},g=function(t){if(!t)return t;var e=t.characterList,l=t.text;return l&&!e&&(t.characterList=o(c(n.EMPTY,l.length))),t},m=function(t){var e,l;function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return t.call(this,g(e))||this}l=t,(e=n).prototype=Object.create(l.prototype),e.prototype.constructor=e,e.__proto__=l;var i=n.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():h},i.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},i.getChildKeys=function(){return this.get("children")},i.getParentKey=function(){return this.get("parent")},i.getPrevSiblingKey=function(){return this.get("prevSibling")},i.getNextSiblingKey=function(){return this.get("nextSibling")},i.findStyleRanges=function(t,e){r(this.getCharacterList(),f,t,e)},i.findEntityRanges=function(t,e){r(this.getCharacterList(),p,t,e)},n}(u(d));t.exports=m},function(t,e){function l(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=l,l.equal=function(t,e,l){if(t!=e)throw new Error(l||"Assertion failed: "+t+" != "+e)}},function(t,e,l){"use strict";var n=e,r=l(228),i=l(167),o=l(927);n.assert=i,n.toArray=o.toArray,n.zero2=o.zero2,n.toHex=o.toHex,n.encode=o.encode,n.getNAF=function(t,e,l){var n=new Array(Math.max(t.bitLength(),l)+1);n.fill(0);for(var r=1<(r>>1)-1?(r>>1)-s:s,i.isubn(a)):a=0,n[o]=a,i.iushrn(1)}return n},n.getJSF=function(t,e){var l=[[],[]];t=t.clone(),e=e.clone();for(var n=0,r=0;t.cmpn(-n)>0||e.cmpn(-r)>0;){var i,o,a,s=t.andln(3)+n&3,u=e.andln(3)+r&3;if(3===s&&(s=-1),3===u&&(u=-1),0===(1&s))i=0;else i=3!==(a=t.andln(7)+n&7)&&5!==a||2!==u?s:-s;if(l[0].push(i),0===(1&u))o=0;else o=3!==(a=e.andln(7)+r&7)&&5!==a||2!==s?u:-u;l[1].push(o),2*n===i+1&&(n=1-n),2*r===o+1&&(r=1-r),t.iushrn(1),e.iushrn(1)}return l},n.cachedProperty=function(t,e,l){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=l.call(this)}},n.parseBytes=function(t){return"string"===typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new r(t,"hex","le")}},function(t,e){var l={}.hasOwnProperty;t.exports=function(t,e){return l.call(t,e)}},function(t,e,l){l(63).__DEV__;var n=l(13),r=l(105),i=l(291),o=l(388),a=l(290),s=a.defaultDimValueGetters,u=a.DefaultDataProvider,c=l(390).summarizeDimensions,h=l(1039),d=n.isObject,f={float:"undefined"===typeof Float64Array?Array:Float64Array,int:"undefined"===typeof Int32Array?Array:Int32Array,ordinal:Array,number:Array,time:Array},p="undefined"===typeof Uint32Array?Array:Uint32Array,g="undefined"===typeof Int32Array?Array:Int32Array,m="undefined"===typeof Uint16Array?Array:Uint16Array;function v(t){return t._rawCount>65535?p:m}function y(t){var e=t.constructor;return e===Array?t.slice():new e(t)}var b=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],w=["_extent","_approximateExtent","_rawExtent"];function x(t,e){n.each(b.concat(e.__wrappedMethods||[]),(function(l){e.hasOwnProperty(l)&&(t[l]=e[l])})),t.__wrappedMethods=e.__wrappedMethods,n.each(w,(function(l){t[l]=n.clone(e[l])})),t._calculationInfo=n.extend(e._calculationInfo)}var _=function(t,e){t=t||["x","y"];for(var l={},r=[],i={},o=0;o=0?this._indices[t]:-1}function O(t,e){var l=t._idList[e];return null==l&&(l=C(t,t._idDimIdx,e)),null==l&&(l="e\0\0"+e),l}function A(t){return n.isArray(t)||(t=[t]),t}function D(t,e){var l=t.dimensions,r=new _(n.map(l,t.getDimensionInfo,t),t.hostModel);x(r,t);for(var i=r._storage={},o=t._storage,a=0;a=0?(i[s]=P(o[s]),r._rawExtent[s]=I(),r._extent[s]=null):i[s]=o[s])}return r}function P(t){for(var e=new Array(t.length),l=0;lb[1]&&(b[1]=y)}e&&(this._nameList[d]=e[f])}this._rawCount=this._count=s,this._extent={},E(this)},S._initDataFromProvider=function(t,e){if(!(t>=e)){for(var l,n=this._chunkSize,r=this._rawData,i=this._storage,o=this.dimensions,a=o.length,s=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;pC[1]&&(C[1]=S)}if(!r.pure){var k=u[v];if(m&&null==k)if(null!=m.name)u[v]=k=m.name;else if(null!=l){var T=o[l],O=i[T][y];if(O){k=O[b];var A=s[T].ordinalMeta;A&&A.categories.length&&(k=A.categories[k])}}var D=null==m?null:m.id;null==D&&null!=k&&(d[k]=d[k]||0,D=k,d[k]>0&&(D+="__ec__"+d[k]),d[k]++),null!=D&&(c[v]=D)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},E(this)}},S.count=function(){return this._count},S.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,l=this._count;if(e===Array){r=new e(l);for(var n=0;n=0&&e=0&&eo&&(o=s)}return n=[i,o],this._extent[t]=n,n},S.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},S.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},S.getCalculationInfo=function(t){return this._calculationInfo[t]},S.setCalculationInfo=function(t,e){d(t)?n.extend(this._calculationInfo,t):this._calculationInfo[t]=e},S.getSum=function(t){var e=0;if(this._storage[t])for(var l=0,n=this.count();l=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,l=e[t];if(null!=l&&lt))return i;r=i-1}}return-1},S.indicesOfNearest=function(t,e,l){var n=[];if(!this._storage[t])return n;null==l&&(l=1/0);for(var r=1/0,i=-1,o=0,a=0,s=this.count();a=0&&i<0)&&(r=c,i=u,o=0),u===i&&(n[o++]=a))}return n.length=o,n},S.getRawIndex=k,S.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],l=0;l=s&&_<=u||isNaN(_))&&(i[o++]=h),h++}c=!0}else if(2===n){d=this._storage[a];var y=this._storage[e[1]],b=t[e[1]][0],w=t[e[1]][1];for(f=0;f=s&&_<=u||isNaN(_))&&(S>=b&&S<=w||isNaN(S))&&(i[o++]=h),h++}}c=!0}}if(!c)if(1===n)for(m=0;m=s&&_<=u||isNaN(_))&&(i[o++]=M)}else for(m=0;mt[C][1])&&(E=!1)}E&&(i[o++]=this.getRawIndex(m))}return o_[1]&&(_[1]=x)}}}return i},S.downSample=function(t,e,l,n){for(var r=D(this,[t]),i=r._storage,o=[],a=Math.floor(1/e),s=i[t],u=this.count(),c=this._chunkSize,h=r._rawExtent[t],d=new(v(this))(u),f=0,p=0;pu-p&&(a=u-p,o.length=a);for(var g=0;gh[1]&&(h[1]=w),d[f++]=x}return r._count=f,r._indices=d,r.getRawIndex=T,r},S.getItemModel=function(t){var e=this.hostModel;return new r(this.getRawDataItem(t),e,e&&e.ecModel)},S.diff=function(t){var e=this;return new i(t?t.getIndices():[],this.getIndices(),(function(e){return O(t,e)}),(function(t){return O(e,t)}))},S.getVisual=function(t){var e=this._visual;return e&&e[t]},S.setVisual=function(t,e){if(d(t))for(var l in t)t.hasOwnProperty(l)&&this.setVisual(l,t[l]);else this._visual=this._visual||{},this._visual[t]=e},S.setLayout=function(t,e){if(d(t))for(var l in t)t.hasOwnProperty(l)&&this.setLayout(l,t[l]);else this._layout[t]=e},S.getLayout=function(t){return this._layout[t]},S.getItemLayout=function(t){return this._itemLayouts[t]},S.setItemLayout=function(t,e,l){this._itemLayouts[t]=l?n.extend(this._itemLayouts[t]||{},e):e},S.clearItemLayouts=function(){this._itemLayouts.length=0},S.getItemVisual=function(t,e,l){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||l?r:this.getVisual(e)},S.setItemVisual=function(t,e,l){var n=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=n,d(e))for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i],r[i]=!0);else n[e]=l,r[e]=!0},S.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var L=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};S.setItemGraphicEl=function(t,e){var l=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=l&&l.seriesIndex,"group"===e.type&&e.traverse(L,e)),this._graphicEls[t]=e},S.getItemGraphicEl=function(t){return this._graphicEls[t]},S.eachItemGraphicEl=function(t,e){n.each(this._graphicEls,(function(l,n){l&&t&&t.call(e,l,n)}))},S.cloneShallow=function(t){if(!t){var e=n.map(this.dimensions,this.getDimensionInfo,this);t=new _(e,this.hostModel)}if(t._storage=this._storage,x(t,this),this._indices){var l=this._indices.constructor;t._indices=new l(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?T:k,t},S.wrapMethod=function(t,e){var l=this[t];"function"===typeof l&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=l.apply(this,arguments);return e.apply(this,[t].concat(n.slice(arguments)))})},S.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],S.CHANGABLE_METHODS=["filterSelf","selectRange"];var R=_;t.exports=R},function(t,e,l){var n=l(13),r=l(36),i=l(94),o=l(155).calculateTextPosition,a=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var l=e.cx,n=e.cy,r=e.width/2,i=e.height/2;t.moveTo(l,n-i),t.lineTo(l+r,n+i),t.lineTo(l-r,n+i),t.closePath()}}),s=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var l=e.cx,n=e.cy,r=e.width/2,i=e.height/2;t.moveTo(l,n-i),t.lineTo(l+r,n),t.lineTo(l,n+i),t.lineTo(l-r,n),t.closePath()}}),u=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var l=e.x,n=e.y,r=e.width/5*3,i=Math.max(r,e.height),o=r/2,a=o*o/(i-o),s=n-i+o+a,u=Math.asin(a/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),f=.6*o,p=.7*o;t.moveTo(l-c,s+a),t.arc(l,s,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(l+c-h*f,s+a+d*f,l,n-p,l,n),t.bezierCurveTo(l,n-p,l-c+h*f,s+a+d*f,l-c,s+a),t.closePath()}}),c=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var l=e.height,n=e.width,r=e.x,i=e.y,o=n/3*2;t.moveTo(r,i),t.lineTo(r+o,i+l),t.lineTo(r,i+l/4*3),t.lineTo(r-o,i+l),t.lineTo(r,i),t.closePath()}}),h={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:s,pin:u,arrow:c,triangle:a},d={line:function(t,e,l,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+l,r.y2=e+n/2},rect:function(t,e,l,n,r){r.x=t,r.y=e,r.width=l,r.height=n},roundRect:function(t,e,l,n,r){r.x=t,r.y=e,r.width=l,r.height=n,r.r=Math.min(l,n)/4},square:function(t,e,l,n,r){var i=Math.min(l,n);r.x=t,r.y=e,r.width=i,r.height=i},circle:function(t,e,l,n,r){r.cx=t+l/2,r.cy=e+n/2,r.r=Math.min(l,n)/2},diamond:function(t,e,l,n,r){r.cx=t+l/2,r.cy=e+n/2,r.width=l,r.height=n},pin:function(t,e,l,n,r){r.x=t+l/2,r.y=e+n/2,r.width=l,r.height=n},arrow:function(t,e,l,n,r){r.x=t+l/2,r.y=e+n/2,r.width=l,r.height=n},triangle:function(t,e,l,n,r){r.cx=t+l/2,r.cy=e+n/2,r.width=l,r.height=n}},f={};n.each(h,(function(t,e){f[e]=new t}));var p=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,l){var n=o(t,e,l),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.textPosition&&(n.y=l.y+.4*l.height),n},buildPath:function(t,e,l){var n=e.symbolType;if("none"!==n){var r=f[n];r||(r=f[n="rect"]),d[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,l)}}});function g(t,e){if("image"!==this.type){var l=this.style,n=this.shape;n&&"line"===n.symbolType?l.stroke=t:this.__isEmptyBrush?(l.stroke=t,l.fill=e||"#fff"):(l.fill&&(l.fill=t),l.stroke&&(l.stroke=t)),this.dirty(!1)}}e.createSymbol=function(t,e,l,n,o,a,s){var u,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(u=0===t.indexOf("image://")?r.makeImage(t.slice(8),new i(e,l,n,o),s?"center":"cover"):0===t.indexOf("path://")?r.makePath(t.slice(7),{},new i(e,l,n,o),s?"center":"cover"):new p({shape:{symbolType:t,x:e,y:l,width:n,height:o}})).__isEmptyBrush=c,u.setColor=g,u.setColor(a),u}},function(t,e,l){!function(t,e){"use strict";function l(t){return(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})(t)}function n(t,e){if(null==t)return{};var l,n,r=function(t,e){if(null==t)return{};var l,n,r={},i=Object.keys(t);for(n=0;n=0||(r[l]=t[l]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,l)&&(r[l]=t[l])}return r}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var l=[],n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(l.push(o.value),!e||l.length!==e);n=!0);}catch(s){r=!0,i=s}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return l}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(){}function o(){}e=e&&e.hasOwnProperty("default")?e.default:e,o.resetWarningCache=i;var a=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){t.exports=function(){function t(t,e,l,n,r,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var o=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 o.name="Invariant Violation",o}}function e(){return t}t.isRequired=t;var l={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return l.PropTypes=l,l}()})),s=function(t){return null!==t&&"object"===l(t)},u=function t(e,l){if(!s(e)||!s(l))return e===l;var n=Array.isArray(e);if(n!==Array.isArray(l))return!1;var r="[object Object]"===Object.prototype.toString.call(e);if(r!==("[object Object]"===Object.prototype.toString.call(l)))return!1;if(!r&&!n)return!1;var i=Object.keys(e),o=Object.keys(l);if(i.length!==o.length)return!1;for(var a={},u=0;u provider."));return t}(e.useContext(f),t)},m=function(t){return(0,t.children)(g("mounts "))};m.propTypes={children:a.func.isRequired};var v=function(t){var l=e.useRef(t);return e.useEffect((function(){l.current=t}),[t]),function(){l.current&&l.current.apply(l,arguments)}},y=function(t){return s(t)?(t.paymentRequest,n(t,["paymentRequest"])):{}},b=function(){},w=function(t,l){var n,r="".concat((n=t).charAt(0).toUpperCase()+n.slice(1),"Element"),i=l?function(t){g("mounts <".concat(r,">"));var l=t.id,n=t.className;return e.createElement("div",{id:l,className:n})}:function(l){var n=l.id,i=l.className,o=l.options,a=void 0===o?{}:o,s=l.onBlur,c=void 0===s?b:s,h=l.onFocus,d=void 0===h?b:h,f=l.onReady,p=void 0===f?b:f,m=l.onChange,w=void 0===m?b:m,x=l.onEscape,_=void 0===x?b:x,S=l.onClick,M=void 0===S?b:S,E=g("mounts <".concat(r,">")).elements,C=e.useRef(null),k=e.useRef(null),T=v(p),O=v(c),A=v(d),D=v(M),P=v(w),I=v(_);e.useLayoutEffect((function(){if(null==C.current&&E&&null!=k.current){var e=E.create(t,a);C.current=e,e.mount(k.current),e.on("ready",(function(){return T(e)})),e.on("change",P),e.on("blur",O),e.on("focus",A),e.on("escape",I),e.on("click",D)}}));var L=e.useRef(a);return e.useEffect((function(){L.current&&L.current.paymentRequest!==a.paymentRequest&&console.warn("Unsupported prop change: options.paymentRequest is not a customizable property.");var t=y(a);0===Object.keys(t).length||u(t,y(L.current))||C.current&&(C.current.update(t),L.current=a)}),[a]),e.useEffect((function(){return function(){C.current&&C.current.destroy()}}),[]),e.createElement("div",{id:n,className:i,ref:k})};return i.propTypes={id:a.string,className:a.string,onChange:a.func,onBlur:a.func,onFocus:a.func,onReady:a.func,onClick:a.func,options:a.object},i.displayName=r,i.__elementType=t,i},x="undefined"===typeof window,_=w("auBankAccount",x),S=w("card",x),M=w("cardNumber",x),E=w("cardExpiry",x),C=w("cardCvc",x),k=w("fpxBank",x),T=w("iban",x),O=w("idealBank",x),A=w("paymentRequestButton",x);t.AuBankAccountElement=_,t.CardCvcElement=C,t.CardElement=S,t.CardExpiryElement=E,t.CardNumberElement=M,t.Elements=p,t.ElementsConsumer=m,t.FpxBankElement=k,t.IbanElement=T,t.IdealBankElement=O,t.PaymentRequestButtonElement=A,t.useElements=function(){return g("calls useElements()").elements},t.useStripe=function(){return g("calls useStripe()").stripe},Object.defineProperty(t,"__esModule",{value:!0})}(e,l(0))},function(t,e,l){window,t.exports=function(t,e,l){return i={},n.m=r=[function(t,e,l){t.exports=l(9)()},function(e,l){e.exports=t},function(t,e,l){var n;!function(){"use strict";var l={}.hasOwnProperty;function r(){for(var t=[],e=0;e<\uff5c]|"+e.src_ZPCc+"))("+h+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+e.src_ZPCc+"))("+h+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),(c=t).__index__=-1,c.__text_cache__=""}function h(t,e){var l=t.__index__,n=t.__last_index__,r=t.__text_cache__.slice(l,n);this.schema=t.__schema__.toLowerCase(),this.index=l+e,this.lastIndex=n+e,this.raw=r,this.text=r,this.url=r}function d(t,e){var l=new h(t,e);return t.__compiled__[l.schema].normalize(l,t),l}function f(t,e){if(!(this instanceof f))return new f(t,e);var l;e||(l=t,Object.keys(l||{}).reduce((function(t,e){return t||a.hasOwnProperty(e)}),!1)&&(e=t,t={})),this.__opts__=n({},a,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},s,t),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},c(this)}f.prototype.add=function(t,e){return this.__schemas__[t]=e,c(this),this},f.prototype.set=function(t){return this.__opts__=n(this.__opts__,t),this},f.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,l,n,r,i,o,a,s;if(this.re.schema_test.test(t))for((a=this.re.schema_search).lastIndex=0;null!==(e=a.exec(t));)if(r=this.testSchemaAt(t,e[2],a.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(s=t.search(this.re.host_fuzzy_test))&&(this.__index__<0||sthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=o)),0<=this.__index__},f.prototype.pretest=function(t){return this.re.pretest.test(t)},f.prototype.testSchemaAt=function(t,e,l){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,l,this):0},f.prototype.match=function(t){var e=0,l=[];0<=this.__index__&&this.__text_cache__===t&&(l.push(d(this,e)),e=this.__last_index__);for(var n=e?t.slice(e):t;this.test(n);)l.push(d(this,e)),n=n.slice(this.__last_index__),e+=this.__last_index__;return l.length?l:null},f.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,e,l){return t!==l[e-1]})).reverse():(this.__tlds__=t.slice(),this.__tlds_replaced__=!0),c(this),this},f.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},f.prototype.onCompile=function(){},t.exports=f},function(t,e,l){t.exports=l(40)},function(t,e,l){"use strict";var n=l(10);function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function t(t,e,l,r,i,o){if(o!==n){var a=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 a.name="Invariant Violation",a}}function e(){return t}var l={array:t.isRequired=t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:r};return l.PropTypes=l}},function(t,e,l){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){"use strict";t.exports=function(t){var e={};return e.src_Any=l(22).source,e.src_Cc=l(23).source,e.src_Z=l(24).source,e.src_P=l(25).source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|"),e.src_pseudo_letter="(?:(?![><\uff5c]|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><\uff5c]|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|[><\uff5c]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+e.src_ZCc+").|\\!(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+e.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+e.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}},function(t,e){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(t,e){t.exports=/[\0-\x1F\x7F-\x9F]/},function(t,e){t.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},function(t,e){t.exports=/[!-#%-\*,-/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E44\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){},function(t,e,l){"use strict";l.r(e);var n=l(1),r=l.n(n),i=l(0),o=l.n(i),a=l(3),s=l(4),u=l(2),c=l.n(u);function h(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach((function(t){t(e)}))},this.init=function(e){var l=document.getElementById(e);l&&l.addEventListener("click",(function(){t.editorFlag=!0})),document&&(document.addEventListener("click",(function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&t.closeAllModals()})))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter((function(t){return t!==e}))},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}function d(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused)&&!(t.editorFocused=!1):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}}var f,p=[],g={onKeyDown:function(t){p.forEach((function(e){e(t)}))},registerCallBack:function(t){p.push(t)},deregisterCallBack:function(t){p=p.filter((function(e){return e!==t}))}},m=function(){f=!0},v=function(){f=!1},y=function(){return f};function b(t){var e=t.getData()&&t.getData().get("text-align");return e?"rdw-".concat(e,"-aligned-block"):""}function w(t,e){if(t)for(var l in t)!{}.hasOwnProperty.call(t,l)||e(l,t[l])}function x(t,e){var l=!1;if(t)for(var n in t)if({}.hasOwnProperty.call(t,n)&&e===n){l=!0;break}return l}function _(t){t.stopPropagation()}function S(t){return t[t.options[0]].icon}function M(t,e){if(t&&void 0===e)return t;var l={};return w(t,(function(t,n){var r;r=n,"[object Object]"===Object.prototype.toString.call(r)?l[t]=M(n,e[t]):l[t]=void 0!==e[t]?e[t]:n})),l}var E=l(6),C=l.n(E),k=l(5);function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.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(t,e,l){return e in t?Object.defineProperty(t,e,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[e]=l,t}function A(t,e){for(var l=0;l=0||(r[l]=t[l]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,l)&&(r[l]=t[l])}return r}function d(t,e){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),l.push.apply(l,n)}return l}function f(t){for(var e=1;e1;if(e&&r&&!n){var i=!1;t.forEach((function(t){t.label||(i=!0)})),i&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}}},{key:"getCurrentDatasets",value:function(){return this.chartInstance&&this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[]}},{key:"saveCurrentDatasets",value:function(){var t=this;this.datasets=this.datasets||{},this.getCurrentDatasets().forEach((function(e){t.datasets[t.props.datasetKeyProvider(e)]=e}))}},{key:"updateChart",value:function(){var t=this,e=this.props.options,l=this.memoizeDataProps(this.props);if(this.chartInstance){e&&(this.chartInstance.options=i.default.helpers.configMerge(this.chartInstance.options,e));var n=this.getCurrentDatasets(),r=l.datasets||[];this.checkDatasets(n);var o=(0,a.default)(n,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=r.map((function(e){var l=o[t.props.datasetKeyProvider(e)];if(l&&l.type===e.type&&e.data){l.data.splice(e.data.length),e.data.forEach((function(t,n){l.data[n]=e.data[n]}));e.data;var n=h(e,["data"]);return f(f({},l),n)}return e}));l.datasets;var s=h(l,["datasets"]);this.chartInstance.config.data=f(f({},this.chartInstance.config.data),s),this.chartInstance.update()}}},{key:"renderChart",value:function(){var t=this.props,e=t.options,n=t.legend,r=t.type,a=t.plugins,s=this.element,u=this.memoizeDataProps();"undefined"===typeof n||(0,o.default)(l.defaultProps.legend,n)||(e.legend=n),this.chartInstance=new i.default(s,{type:r,data:u,options:e,plugins:a})}},{key:"destroyChart",value:function(){if(this.chartInstance){this.saveCurrentDatasets();var t=Object.values(this.datasets);this.chartInstance.config.data.datasets=t,this.chartInstance.destroy()}}},{key:"render",value:function(){var t=this.props,e=t.height,l=t.width,r=t.id;return n.default.createElement("canvas",{ref:this.ref,height:e,width:l,id:r,onClick:this.handleOnClick})}}]),l}(n.default.Component);S(E,"getLabelAsKey",(function(t){return t.label})),S(E,"propTypes",{data:r.default.oneOfType([r.default.object,r.default.func]).isRequired,getDatasetAtEvent:r.default.func,getElementAtEvent:r.default.func,getElementsAtEvent:r.default.func,height:r.default.number,legend:r.default.object,onElementsClick:r.default.func,options:r.default.object,plugins:r.default.arrayOf(r.default.object),redraw:r.default.bool,type:function(t,e,l){if(!i.default.controllers[t[e]])return new Error("Invalid chart type `"+t[e]+"` supplied to `"+l+"`.")},width:r.default.number,datasetKeyProvider:r.default.func}),S(E,"defaultProps",{legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:E.getLabelAsKey});var C=E;e.default=C;var k=function(t){v(l,t);var e=b(l);function l(){return p(this,l),e.apply(this,arguments)}return m(l,[{key:"render",value:function(){var t=this;return n.default.createElement(E,u({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"doughnut"}))}}]),l}(n.default.Component);e.Doughnut=k;var T=function(t){v(l,t);var e=b(l);function l(){return p(this,l),e.apply(this,arguments)}return m(l,[{key:"render",value:function(){var t=this;return n.default.createElement(E,u({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"pie"}))}}]),l}(n.default.Component);e.Pie=T;var O=function(t){v(l,t);var e=b(l);function l(){return p(this,l),e.apply(this,arguments)}return m(l,[{key:"render",value:function(){var t=this;return n.default.createElement(E,u({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"line"}))}}]),l}(n.default.Component);e.Line=O;var A=function(t){v(l,t);var e=b(l);function l(){return p(this,l),e.apply(this,arguments)}return m(l,[{key:"render",value:function(){var t=this;return n.default.createElement(E,u({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bar"}))}}]),l}(n.default.Component);e.Bar=A;var D=function(t){v(l,t);var e=b(l);function l(){return p(this,l),e.apply(this,arguments)}return m(l,[{key:"render",value:function(){var t=this;return n.default.createElement(E,u({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"horizontalBar"}))}}]),l}(n.default.Component);e.HorizontalBar=D;var P=function(t){v(l,t);var e=b(l);function l(){return p(this,l),e.apply(this,arguments)}return m(l,[{key:"render",value:function(){var t=this;return n.default.createElement(E,u({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"radar"}))}}]),l}(n.default.Component);e.Radar=P;var I=function(t){v(l,t);var e=b(l);function l(){return p(this,l),e.apply(this,arguments)}return m(l,[{key:"render",value:function(){var t=this;return n.default.createElement(E,u({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"polarArea"}))}}]),l}(n.default.Component);e.Polar=I;var L=function(t){v(l,t);var e=b(l);function l(){return p(this,l),e.apply(this,arguments)}return m(l,[{key:"render",value:function(){var t=this;return n.default.createElement(E,u({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bubble"}))}}]),l}(n.default.Component);e.Bubble=L;var R=function(t){v(l,t);var e=b(l);function l(){return p(this,l),e.apply(this,arguments)}return m(l,[{key:"render",value:function(){var t=this;return n.default.createElement(E,u({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"scatter"}))}}]),l}(n.default.Component);e.Scatter=R;var N=i.default.defaults;e.defaults=N}).call(this,l(83))},function(t,e,l){"use strict";l.d(e,"a",(function(){return u}));var n=l(95),r=l(58),i=l(1160),o=l.n(i),a=l(265);var s=["stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","bubblingMouseEvents","renderer","className","interactive","pane","attribution"],u=function(t){function e(e){var l;return null==(l=t.call(this,e)||this).contextValue&&(l.contextValue=Object(n.a)({},e.leaflet,{popupContainer:l.leafletElement})),l}Object(r.a)(e,t);var l=e.prototype;return l.componentDidUpdate=function(e){t.prototype.componentDidUpdate.call(this,e),this.setStyleIfChanged(e,this.props)},l.getPathOptions=function(t){return e=t,s.reduce((function(t,l){return"undefined"!==typeof e[l]&&(t[l]=e[l]),t}),{});var e},l.setStyle=function(t){void 0===t&&(t={}),this.leafletElement.setStyle(t)},l.setStyleIfChanged=function(t,e){var l=this.getPathOptions(e);o()(l,this.getPathOptions(t))||this.setStyle(l)},e}(a.a)},function(t,e,l){"use strict";var n=l(210),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(t){return n.isMemo(t)?o:a[t.$$typeof]||r}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,l,n){if("string"!==typeof l){if(p){var r=f(l);r&&r!==p&&t(e,r,n)}var o=c(l);h&&(o=o.concat(h(l)));for(var a=s(e),g=s(l),m=0;m0&&(r=it(t,e.slice(0,t.length),new Date)),Tt(r)||(r=new Date(t))),Tt(r)&&o?r:null)}function Tt(t){return o(t)&&et(t,new Date("1/1/1000"))}function Ot(t,e,l){if("en"===l)return a(t,e,{awareOfUnicodeTokens:!0});var n=Vt(l);return l&&!n&&console.warn('A locale object was not found for the provided string ["'.concat(l,'"].')),!n&&Zt()&&Vt(Zt())&&(n=Vt(Zt())),a(t,e,{locale:n||null,awareOfUnicodeTokens:!0})}function At(t,e){var l=e.hour,n=void 0===l?0:l,r=e.minute,i=void 0===r?0:r,o=e.second;return P(D(A(t,void 0===o?0:o),i),n)}function Dt(t,e){var l=e&&Vt(e)||Zt()&&Vt(Zt());return E(t,l?{locale:l}:null)}function Pt(t,e){return Ot(t,"ddd",e)}function It(t){return H(t)}function Lt(t,e){var l=Vt(e||Zt());return Z(t,{locale:l})}function Rt(t){return V(t)}function Nt(t){return W(t)}function jt(t,e){return t&&e?J(t,e):!t&&!e}function Bt(t,e){return t&&e?Q(t,e):!t&&!e}function Ft(t,e){return t&&e?tt(t,e):!t&&!e}function zt(t,e){return t&&e?$(t,e):!t&&!e}function Ut(t,e){return t&&e?K(t,e):!t&&!e}function Ht(t,e,l){var n,r=H(e),i=Y(l);try{n=nt(t,{start:r,end:i})}catch(t){n=!1}return n}function Zt(){return("undefined"!=typeof window?window:t).__localeId__}function Vt(e){if("string"==typeof e){var l="undefined"!=typeof window?window:t;return l.__localeData__?l.__localeData__[e]:null}return e}function Wt(t,e){return Ot(I(Ct(),t),"LLLL",e)}function Gt(t,e){return Ot(I(Ct(),t),"LLL",e)}function Yt(t,e){return Ot(L(Ct(),t),"QQQ",e)}function qt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.minDate,n=e.maxDate,r=e.excludeDates,i=e.includeDates,o=e.filterDate;return te(t,{minDate:l,maxDate:n})||r&&r.some((function(e){return zt(t,e)}))||i&&!i.some((function(e){return zt(t,e)}))||o&&!o(Ct(t))||!1}function Xt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.excludeDates;return l&&l.some((function(e){return zt(t,e)}))||!1}function Kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.minDate,n=e.maxDate,r=e.excludeDates,i=e.includeDates,o=e.filterDate;return te(t,{minDate:l,maxDate:n})||r&&r.some((function(e){return Bt(t,e)}))||i&&!i.some((function(e){return Bt(t,e)}))||o&&!o(Ct(t))||!1}function $t(t,e,l,n){var r=T(t),i=C(t),o=T(e),a=C(e),s=T(n);return r===o&&r===s?i<=l&&l<=a:r=l||sr:void 0}function Qt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.minDate,n=e.maxDate,r=e.excludeDates,i=e.includeDates,o=e.filterDate;return te(t,{minDate:l,maxDate:n})||r&&r.some((function(e){return Ft(t,e)}))||i&&!i.some((function(e){return Ft(t,e)}))||o&&!o(Ct(t))||!1}function Jt(t,e,l,n){var r=T(t),i=k(t),o=T(e),a=k(e),s=T(n);return r===o&&r===s?i<=l&&l<=a:r=l||sr:void 0}function te(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.minDate,n=e.maxDate;return l&&B(t,l)<0||n&&B(t,n)>0}function ee(t,e){for(var l=e.length,n=0;n1&&void 0!==arguments[1]?arguments[1]:{},l=e.minDate,n=e.includeDates,r=y(t,1);return l&&F(l,r)>0||n&&n.every((function(t){return F(t,r)>0}))||!1}function re(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.maxDate,n=e.includeDates,r=d(t,1);return l&&F(r,l)>0||n&&n.every((function(t){return F(r,t)>0}))||!1}function ie(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.minDate,n=e.includeDates,r=b(t,1);return l&&U(l,r)>0||n&&n.every((function(t){return U(t,r)>0}))||!1}function oe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.maxDate,n=e.includeDates,r=f(t,1);return l&&U(r,l)>0||n&&n.every((function(t){return U(r,t)>0}))||!1}function ae(t){var e=t.minDate,l=t.includeDates;if(l&&e){var n=l.filter((function(t){return B(t,e)>=0}));return N(n)}return l?N(l):e}function se(t){var e=t.maxDate,l=t.includeDates;if(l&&e){var n=l.filter((function(t){return B(t,e)<=0}));return j(n)}return l?j(l):e}function ue(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",l=new Map,n=0,r=t.length;n=o),a&&r.push(o)}return r}var fe=at(function(t){vt(n,t);var e=xt(n);function n(t){var r;ct(this,n),ft(bt(r=e.call(this,t)),"renderOptions",(function(){var t=r.props.year,e=r.state.yearsList.map((function(e){return l.createElement("div",{className:t===e?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:e,onClick:r.onChange.bind(bt(r),e)},t===e?l.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",e)})),n=r.props.minDate?T(r.props.minDate):null,i=r.props.maxDate?T(r.props.maxDate):null;return i&&r.state.yearsList.find((function(t){return t===i}))||e.unshift(l.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},l.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find((function(t){return t===n}))||e.push(l.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},l.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),e})),ft(bt(r),"onChange",(function(t){r.props.onChange(t)})),ft(bt(r),"handleClickOutside",(function(){r.props.onCancel()})),ft(bt(r),"shiftYears",(function(t){var e=r.state.yearsList.map((function(e){return e+t}));r.setState({yearsList:e})})),ft(bt(r),"incrementYears",(function(){return r.shiftYears(1)})),ft(bt(r),"decrementYears",(function(){return r.shiftYears(-1)}));var i=t.yearDropdownItemNumber,o=t.scrollableYearDropdown,a=i||(o?10:5);return r.state={yearsList:de(r.props.year,a,r.props.minDate,r.props.maxDate)},r}return dt(n,[{key:"render",value:function(){var t=r({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return l.createElement("div",{className:t},this.renderOptions())}}]),n}(l.Component)),pe=function(t){vt(n,t);var e=xt(n);function n(){var t;ct(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},l=!1;0===t.getTabIndex()&&!e.isInputFocused&&t.isSameDay(t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0)),l&&t.dayEl.current.focus()})),ft(bt(t),"render",(function(){return l.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.handleMouseEnter,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"button","aria-disabled":t.isDisabled()},t.props.renderDayContents?t.props.renderDayContents(M(t.props.day),t.props.day):M(t.props.day))})),t}return dt(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(t){this.handleFocusDay(t)}}]),n}(l.Component),xe=function(t){vt(n,t);var e=xt(n);function n(){var t;ct(this,n);for(var l=arguments.length,r=new Array(l),i=0;i=6,s=!n&&!t.isWeekInMonth(r);if(a||s){if(!t.props.peekNextMonth)break;o=!0}}return e})),ft(bt(t),"onMonthClick",(function(e,l){t.handleDayClick(Rt(I(t.props.day,l)),e)})),ft(bt(t),"onQuarterClick",(function(e,l){t.handleDayClick(Nt(L(t.props.day,l)),e)})),ft(bt(t),"getMonthClassNames",(function(e){var l=t.props,n=l.day,i=l.startDate,o=l.endDate,a=l.selected,s=l.minDate,u=l.maxDate;return r("react-datepicker__month-text","react-datepicker__month-".concat(e),{"react-datepicker__month--disabled":(s||u)&&Kt(I(n,e),t.props),"react-datepicker__month--selected":C(n)===e&&T(n)===T(a),"react-datepicker__month--in-range":$t(i,o,e,n),"react-datepicker__month--range-start":t.isRangeStartMonth(e),"react-datepicker__month--range-end":t.isRangeEndMonth(e)})})),ft(bt(t),"getQuarterClassNames",(function(e){var l=t.props,n=l.day,i=l.startDate,o=l.endDate,a=l.selected,s=l.minDate,u=l.maxDate;return r("react-datepicker__quarter-text","react-datepicker__quarter-".concat(e),{"react-datepicker__quarter--disabled":(s||u)&&Qt(L(n,e),t.props),"react-datepicker__quarter--selected":k(n)===e&&T(n)===T(a),"react-datepicker__quarter--in-range":Jt(i,o,e,n),"react-datepicker__quarter--range-start":t.isRangeStartQuarter(e),"react-datepicker__quarter--range-end":t.isRangeEndQuarter(e)})})),ft(bt(t),"renderMonths",(function(){var e=t.props,n=e.showFullMonthYearPicker,r=e.locale;return[[0,1,2],[3,4,5],[6,7,8],[9,10,11]].map((function(e,i){return l.createElement("div",{className:"react-datepicker__month-wrapper",key:i},e.map((function(e,i){return l.createElement("div",{key:i,onClick:function(l){t.onMonthClick(l,e)},className:t.getMonthClassNames(e)},n?Wt(e,r):Gt(e,r))})))}))})),ft(bt(t),"renderQuarters",(function(){return l.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(e,n){return l.createElement("div",{key:n,onClick:function(l){t.onQuarterClick(l,e)},className:t.getQuarterClassNames(e)},Yt(e,t.props.locale))})))})),ft(bt(t),"getClassNames",(function(){var e=t.props,l=e.selectingDate,n=e.selectsStart,i=e.selectsEnd,o=e.showMonthYearPicker,a=e.showQuarterYearPicker;return r("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(n||i)},{"react-datepicker__monthPicker":o},{"react-datepicker__quarterPicker":a})})),t}return dt(n,[{key:"render",value:function(){var t=this.props,e=t.showMonthYearPicker,n=t.showQuarterYearPicker,r=t.day,i=t.ariaLabelPrefix,o=void 0===i?"month ":i;return l.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(o," ").concat(Ot(r,"yyyy-MM"))},e?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(l.Component),Me=function(t){vt(n,t);var e=xt(n);function n(){var t;ct(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=x(e)&&(t.centerLi=l)}},Ot(e,n,t.props.locale))}))})),t}return dt(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=n.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var t=this,e=this.state.height;return l.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},l.createElement("div",{className:"react-datepicker__header react-datepicker__header--time",ref:function(e){t.header=e}},l.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),l.createElement("div",{className:"react-datepicker__time"},l.createElement("div",{className:"react-datepicker__time-box"},l.createElement("ul",{className:"react-datepicker__time-list",ref:function(e){t.list=e},style:e?{height:e}:{}},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}(l.Component);ft(Me,"calcCenterPosition",(function(t,e){return e.offsetTop-(t/2-e.clientHeight/2)}));var Ee=function(t){vt(n,t);var e=xt(n);function n(t){var l;return ct(this,n),ft(bt(l=e.call(this,t)),"handleYearClick",(function(t,e){l.props.onDayClick&&l.props.onDayClick(t,e)})),ft(bt(l),"onYearClick",(function(t,e){var n;l.handleYearClick((n=R(l.props.date,e),G(n)),t)})),l}return dt(n,[{key:"render",value:function(){for(var t=this,e=[],n=this.props.date,r=function(n,r){e.push(l.createElement("div",{onClick:function(e){t.onYearClick(e,n)},className:"react-datepicker__year-container-text",key:n},n))},i=T(n)-11,o=0;i<=T(n);i++,o++)r(i);return l.createElement("div",{className:"react-datepicker__year-container"},e)}}]),n}(l.Component),Ce=function(t){vt(n,t);var e=xt(n);function n(t){var r;return ct(this,n),ft(bt(r=e.call(this,t)),"onTimeChange",(function(t){r.setState({time:t});var e=new Date;e.setHours(t.split(":")[0]),e.setMinutes(t.split(":")[1]),r.props.onChange(e)})),ft(bt(r),"renderTimeInput",(function(){var t=r.state.time,e=r.props,n=e.timeString,i=e.customTimeInput;return i?l.cloneElement(i,{value:t,onChange:r.onTimeChange}):l.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:t,onChange:function(t){r.onTimeChange(t.target.value||n)}})})),r.state={time:r.props.timeString},r}return dt(n,[{key:"render",value:function(){return l.createElement("div",{className:"react-datepicker__input-time-container"},l.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),l.createElement("div",{className:"react-datepicker-time__input-container"},l.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}]),n}(l.Component);function ke(t){var e=t.className,n=t.children,r=t.showPopperArrow,i=t.arrowProps,o=void 0===i?{}:i;return l.createElement("div",{className:e},r&&l.createElement("div",pt({className:"react-datepicker__triangle"},o)),n)}var Te=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Oe=function(t){vt(n,t);var e=xt(n);function n(t){var i;return ct(this,n),ft(bt(i=e.call(this,t)),"handleClickOutside",(function(t){i.props.onClickOutside(t)})),ft(bt(i),"setClickOutsideRef",(function(){return i.containerRef.current})),ft(bt(i),"handleDropdownFocus",(function(t){(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(t.className||"").split(/\s+/);return Te.some((function(t){return e.indexOf(t)>=0}))})(t.target)&&i.props.onDropdownFocus()})),ft(bt(i),"getDateInView",(function(){var t=i.props,e=t.preSelection,l=t.selected,n=t.openToDate,r=ae(i.props),o=se(i.props),a=Ct();return n||l||e||(r&<(a,r)?r:o&&et(a,o)?o:a)})),ft(bt(i),"increaseMonth",(function(){i.setState((function(t){var e=t.date;return{date:d(e,1)}}),(function(){return i.handleMonthChange(i.state.date)}))})),ft(bt(i),"decreaseMonth",(function(){i.setState((function(t){var e=t.date;return{date:y(e,1)}}),(function(){return i.handleMonthChange(i.state.date)}))})),ft(bt(i),"handleDayClick",(function(t,e,l){return i.props.onSelect(t,e,l)})),ft(bt(i),"handleDayMouseEnter",(function(t){i.setState({selectingDate:t}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(t)})),ft(bt(i),"handleMonthMouseLeave",(function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()})),ft(bt(i),"handleYearChange",(function(t){i.props.onYearChange&&i.props.onYearChange(t)})),ft(bt(i),"handleMonthChange",(function(t){i.props.onMonthChange&&i.props.onMonthChange(t),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(t),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(t)})),ft(bt(i),"handleMonthYearChange",(function(t){i.handleYearChange(t),i.handleMonthChange(t)})),ft(bt(i),"changeYear",(function(t){i.setState((function(e){var l=e.date;return{date:R(l,t)}}),(function(){return i.handleYearChange(i.state.date)}))})),ft(bt(i),"changeMonth",(function(t){i.setState((function(e){var l=e.date;return{date:I(l,t)}}),(function(){return i.handleMonthChange(i.state.date)}))})),ft(bt(i),"changeMonthYear",(function(t){i.setState((function(e){var l=e.date;return{date:R(I(l,C(t)),T(t))}}),(function(){return i.handleMonthYearChange(i.state.date)}))})),ft(bt(i),"header",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.state.date,e=Lt(t,i.props.locale),n=[];return i.props.showWeekNumbers&&n.push(l.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),n.concat([0,1,2,3,4,5,6].map((function(t){var n=c(e,t),o=i.formatWeekday(n,i.props.locale),a=i.props.weekDayClassName?i.props.weekDayClassName(n):void 0;return l.createElement("div",{key:t,className:r("react-datepicker__day-name",a)},o)})))})),ft(bt(i),"formatWeekday",(function(t,e){return i.props.formatWeekDay?function(t,e,l){return e(Ot(t,"EEEE",l))}(t,i.props.formatWeekDay,e):i.props.useWeekdaysShort?function(t,e){return Ot(t,"EEE",e)}(t,e):function(t,e){return Ot(t,"EEEEEE",e)}(t,e)})),ft(bt(i),"decreaseYear",(function(){i.setState((function(t){var e=t.date;return{date:b(e,i.props.showYearPicker?11:1)}}),(function(){return i.handleYearChange(i.state.date)}))})),ft(bt(i),"renderPreviousButton",(function(){if(!i.props.renderCustomHeader){var t=i.props.showMonthYearPicker?ie(i.state.date,i.props):ne(i.state.date,i.props);if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!t)&&!i.props.showTimeSelectOnly){var e=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(n=i.decreaseYear),t&&i.props.showDisabledMonthNavigation&&(e.push("react-datepicker__navigation--previous--disabled"),n=null);var r=i.props.showMonthYearPicker||i.props.showQuarterYearPicker,o=i.props,a=o.previousMonthAriaLabel,s=void 0===a?"Previous Month":a,u=o.previousYearAriaLabel,c=void 0===u?"Previous Year":u;return l.createElement("button",{type:"button",className:e.join(" "),onClick:n,"aria-label":r?c:s},r?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel)}}})),ft(bt(i),"increaseYear",(function(){i.setState((function(t){var e=t.date;return{date:f(e,i.props.showYearPicker?11:1)}}),(function(){return i.handleYearChange(i.state.date)}))})),ft(bt(i),"renderNextButton",(function(){if(!i.props.renderCustomHeader){var t=i.props.showMonthYearPicker?oe(i.state.date,i.props):re(i.state.date,i.props);if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!t)&&!i.props.showTimeSelectOnly){var e=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&e.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&e.push("react-datepicker__navigation--next--with-today-button");var n=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(n=i.increaseYear),t&&i.props.showDisabledMonthNavigation&&(e.push("react-datepicker__navigation--next--disabled"),n=null);var r=i.props.showMonthYearPicker||i.props.showQuarterYearPicker,o=i.props,a=o.nextMonthAriaLabel,s=void 0===a?"Next Month":a,u=o.nextYearAriaLabel,c=void 0===u?"Next Year":u;return l.createElement("button",{type:"button",className:e.join(" "),onClick:n,"aria-label":r?c:s},r?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel)}}})),ft(bt(i),"renderCurrentMonth",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.state.date,e=["react-datepicker__current-month"];return i.props.showYearDropdown&&e.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&e.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&e.push("react-datepicker__current-month--hasMonthYearDropdown"),l.createElement("div",{className:e.join(" ")},Ot(t,i.props.dateFormat,i.props.locale))})),ft(bt(i),"renderYearDropdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(i.props.showYearDropdown&&!t)return l.createElement(pe,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:T(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})})),ft(bt(i),"renderMonthDropdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(i.props.showMonthDropdown&&!t)return l.createElement(me,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:C(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})})),ft(bt(i),"renderMonthYearDropdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(i.props.showMonthYearDropdown&&!t)return l.createElement(be,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})})),ft(bt(i),"renderTodayButton",(function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return l.createElement("div",{className:"react-datepicker__today-button",onClick:function(t){return i.props.onSelect(H(Ct()),t)}},i.props.todayButton)})),ft(bt(i),"renderDefaultHeader",(function(t){var e=t.monthDate,n=t.i;return l.createElement("div",{className:"react-datepicker__header"},i.renderCurrentMonth(e),l.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(0!==n),i.renderMonthYearDropdown(0!==n),i.renderYearDropdown(0!==n)),l.createElement("div",{className:"react-datepicker__day-names"},i.header(e)))})),ft(bt(i),"renderCustomHeader",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.monthDate,n=t.i;if(0!==n&&void 0!==n)return null;var r=ne(i.state.date,i.props),o=re(i.state.date,i.props),a=ie(i.state.date,i.props),s=oe(i.state.date,i.props),u=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return l.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(mt(mt({},i.state),{},{changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:r,nextMonthButtonDisabled:o,prevYearButtonDisabled:a,nextYearButtonDisabled:s})),u&&l.createElement("div",{className:"react-datepicker__day-names"},i.header(e)))})),ft(bt(i),"renderYearHeader",(function(){return l.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},i.props.showYearPicker?"".concat(T(i.state.date)-11," - ").concat(T(i.state.date)):T(i.state.date))})),ft(bt(i),"renderHeader",(function(t){switch(!0){case void 0!==i.props.renderCustomHeader:return i.renderCustomHeader(t);case i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker:return i.renderYearHeader(t);default:return i.renderDefaultHeader(t)}})),ft(bt(i),"renderMonths",(function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var t=[],e=i.props.showPreviousMonths?i.props.monthsShown-1:0,n=y(i.state.date,e),r=0;r1&&e[e.length-1].focus()})),ft(bt(r),"handleFocusEnd",(function(t){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()})),r.tabLoopRef=l.createRef(),r}return dt(n,null,[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),dt(n,[{key:"render",value:function(){return this.props.enableTabLoop?l.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},l.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,l.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}]),n}(l.Component),Pe=function(t){vt(n,t);var e=xt(n);function n(){return ct(this,n),e.apply(this,arguments)}return dt(n,[{key:"render",value:function(){var t,e=this.props,n=e.className,i=e.wrapperClassName,o=e.hidePopper,a=e.popperComponent,s=e.popperModifiers,u=e.popperPlacement,c=e.popperProps,h=e.targetComponent,d=e.enableTabLoop,f=e.popperOnKeyDown;if(!o){var p=r("react-datepicker-popper",n);t=l.createElement(st.Popper,pt({modifiers:s,placement:u},c),(function(t){var e=t.ref,n=t.style,r=t.placement,i=t.arrowProps;return l.createElement(De,{enableTabLoop:d},l.createElement("div",pt({ref:e,style:n},{className:p,"data-placement":r,onKeyDown:f}),l.cloneElement(a,{arrowProps:i})))}))}this.props.popperContainer&&(t=l.createElement(this.props.popperContainer,{},t));var g=r("react-datepicker-wrapper",i);return l.createElement(st.Manager,{className:"react-datepicker-manager"},l.createElement(st.Reference,null,(function(t){var e=t.ref;return l.createElement("div",{ref:e,className:g},h)})),t)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:{preventOverflow:{enabled:!0,escapeWithReference:!0,boundariesElement:"viewport"}},popperProps:{},popperPlacement:"bottom-start"}}}]),n}(l.Component),Ie=at(Oe),Le=function(t){vt(n,t);var e=xt(n);function n(t){var o;return ct(this,n),ft(bt(o=e.call(this,t)),"getPreSelection",(function(){return o.props.openToDate?o.props.openToDate:o.props.selectsEnd&&o.props.startDate?o.props.startDate:o.props.selectsStart&&o.props.endDate?o.props.endDate:Ct()})),ft(bt(o),"calcInitialState",(function(){var t=o.getPreSelection(),e=ae(o.props),l=se(o.props),n=e&<(t,e)?e:l&&et(t,l)?l:t;return{open:o.props.startOpen||!1,preventFocus:!1,preSelection:o.props.selected?o.props.selected:n,highlightDates:ue(o.props.highlightDates),focused:!1}})),ft(bt(o),"clearPreventFocusTimeout",(function(){o.preventFocusTimeout&&clearTimeout(o.preventFocusTimeout)})),ft(bt(o),"setFocus",(function(){o.input&&o.input.focus&&o.input.focus()})),ft(bt(o),"setBlur",(function(){o.input&&o.input.blur&&o.input.blur(),o.cancelFocusInput()})),ft(bt(o),"setOpen",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o.setState({open:t,preSelection:t&&o.state.open?o.state.preSelection:o.calcInitialState().preSelection,lastPreSelectChange:Ne},(function(){t||o.setState((function(t){return{focused:!!e&&t.focused}}),(function(){!e&&o.setBlur(),o.setState({inputValue:null})}))}))})),ft(bt(o),"inputOk",(function(){return i(o.state.preSelection)})),ft(bt(o),"isCalendarOpen",(function(){return void 0===o.props.open?o.state.open&&!o.props.disabled&&!o.props.readOnly:o.props.open})),ft(bt(o),"handleFocus",(function(t){o.state.preventFocus||(o.props.onFocus(t),o.props.preventOpenOnFocus||o.props.readOnly||o.setOpen(!0)),o.setState({focused:!0})})),ft(bt(o),"cancelFocusInput",(function(){clearTimeout(o.inputFocusTimeout),o.inputFocusTimeout=null})),ft(bt(o),"deferFocusInput",(function(){o.cancelFocusInput(),o.inputFocusTimeout=setTimeout((function(){return o.setFocus()}),1)})),ft(bt(o),"handleDropdownFocus",(function(){o.cancelFocusInput()})),ft(bt(o),"handleBlur",(function(t){(!o.state.open||o.props.withPortal||o.props.showTimeInput)&&o.props.onBlur(t),o.setState({focused:!1})})),ft(bt(o),"handleCalendarClickOutside",(function(t){o.props.inline||o.setOpen(!1),o.props.onClickOutside(t),o.props.withPortal&&t.preventDefault()})),ft(bt(o),"handleChange",(function(){for(var t=arguments.length,e=new Array(t),l=0;l1&&!o.props.inlineFocusSelectedMonth&&o.setState({monthSelectedIn:n})),o.props.onChange(r,e)),o.props.onSelect(r,e),l||o.setState({inputValue:null}))})),ft(bt(o),"setPreSelection",(function(t){var e=void 0!==o.props.minDate,l=void 0!==o.props.maxDate,n=!0;t&&(e&&l?n=Ht(t,o.props.minDate,o.props.maxDate):e?n=et(t,o.props.minDate):l&&(n=lt(t,o.props.maxDate))),n&&o.setState({preSelection:t})})),ft(bt(o),"handleTimeChange",(function(t){var e=At(o.props.selected?o.props.selected:o.getPreSelection(),{hour:_(t),minute:x(t)});o.setState({preSelection:e}),o.props.onChange(e),o.props.shouldCloseOnSelect&&o.setOpen(!1),o.props.showTimeInput&&o.setOpen(!0),o.setState({inputValue:null})})),ft(bt(o),"onInputClick",(function(){o.props.disabled||o.props.readOnly||o.setOpen(!0),o.props.onInputClick()})),ft(bt(o),"onInputKeyDown",(function(t){o.props.onKeyDown(t);var e=t.key;if(o.state.open||o.props.inline||o.props.preventOpenOnFocus){if(o.state.open){if("ArrowDown"===e||"ArrowUp"===e){t.preventDefault();var l=o.calendar.componentNode&&o.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(l&&l.focus())}var n=Ct(o.state.preSelection);"Enter"===e?(t.preventDefault(),o.inputOk()&&o.state.lastPreSelectChange===Ne?(o.handleSelect(n,t),!o.props.shouldCloseOnSelect&&o.setPreSelection(n)):o.setOpen(!1)):"Escape"===e&&(t.preventDefault(),o.setOpen(!1)),o.inputOk()||o.props.onInputError({code:1,msg:"Date input not valid."})}}else"ArrowDown"!==e&&"ArrowUp"!==e&&"Enter"!==e||o.onInputClick()})),ft(bt(o),"onDayKeyDown",(function(t){o.props.onKeyDown(t);var e=t.key,l=Ct(o.state.preSelection);if("Enter"===e)t.preventDefault(),o.handleSelect(l,t),!o.props.shouldCloseOnSelect&&o.setPreSelection(l);else if("Escape"===e)t.preventDefault(),o.setOpen(!1),o.inputOk()||o.props.onInputError({code:1,msg:"Date input not valid."});else if(!o.props.disabledKeyboardNavigation){var n;switch(e){case"ArrowLeft":n=m(l,1);break;case"ArrowRight":n=c(l,1);break;case"ArrowUp":n=v(l,1);break;case"ArrowDown":n=h(l,1);break;case"PageUp":n=y(l,1);break;case"PageDown":n=d(l,1);break;case"Home":n=b(l,1);break;case"End":n=f(l,1)}if(!n)return void(o.props.onInputError&&o.props.onInputError({code:1,msg:"Date input not valid."}));t.preventDefault(),o.setState({lastPreSelectChange:Ne}),o.props.adjustDateOnChange&&o.setSelected(n),o.setPreSelection(n)}})),ft(bt(o),"onPopperKeyDown",(function(t){"Escape"===t.key&&(t.preventDefault(),o.setState({preventFocus:!0},(function(){o.setOpen(!1),setTimeout((function(){o.setFocus(),o.setState({preventFocus:!1})}))})))})),ft(bt(o),"onClearClick",(function(t){t&&t.preventDefault&&t.preventDefault(),o.props.onChange(null,t),o.setState({inputValue:null})})),ft(bt(o),"clear",(function(){o.onClearClick()})),ft(bt(o),"renderCalendar",(function(){return o.props.inline||o.isCalendarOpen()?l.createElement(Ie,{ref:function(t){o.calendar=t},locale:o.props.locale,chooseDayAriaLabelPrefix:o.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:o.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:o.props.weekAriaLabelPrefix,adjustDateOnChange:o.props.adjustDateOnChange,setOpen:o.setOpen,shouldCloseOnSelect:o.props.shouldCloseOnSelect,dateFormat:o.props.dateFormatCalendar,useWeekdaysShort:o.props.useWeekdaysShort,formatWeekDay:o.props.formatWeekDay,dropdownMode:o.props.dropdownMode,selected:o.props.selected,preSelection:o.state.preSelection,onSelect:o.handleSelect,onWeekSelect:o.props.onWeekSelect,openToDate:o.props.openToDate,minDate:o.props.minDate,maxDate:o.props.maxDate,selectsStart:o.props.selectsStart,selectsEnd:o.props.selectsEnd,startDate:o.props.startDate,endDate:o.props.endDate,excludeDates:o.props.excludeDates,filterDate:o.props.filterDate,onClickOutside:o.handleCalendarClickOutside,formatWeekNumber:o.props.formatWeekNumber,highlightDates:o.state.highlightDates,includeDates:o.props.includeDates,includeTimes:o.props.includeTimes,injectTimes:o.props.injectTimes,inline:o.props.inline,peekNextMonth:o.props.peekNextMonth,showMonthDropdown:o.props.showMonthDropdown,showPreviousMonths:o.props.showPreviousMonths,useShortMonthInDropdown:o.props.useShortMonthInDropdown,showMonthYearDropdown:o.props.showMonthYearDropdown,showWeekNumbers:o.props.showWeekNumbers,showYearDropdown:o.props.showYearDropdown,withPortal:o.props.withPortal,forceShowMonthNavigation:o.props.forceShowMonthNavigation,showDisabledMonthNavigation:o.props.showDisabledMonthNavigation,scrollableYearDropdown:o.props.scrollableYearDropdown,scrollableMonthYearDropdown:o.props.scrollableMonthYearDropdown,todayButton:o.props.todayButton,weekLabel:o.props.weekLabel,outsideClickIgnoreClass:"react-datepicker-ignore-onclickoutside",fixedHeight:o.props.fixedHeight,monthsShown:o.props.monthsShown,monthSelectedIn:o.state.monthSelectedIn,onDropdownFocus:o.handleDropdownFocus,onMonthChange:o.props.onMonthChange,onYearChange:o.props.onYearChange,dayClassName:o.props.dayClassName,weekDayClassName:o.props.weekDayClassName,monthClassName:o.props.monthClassName,timeClassName:o.props.timeClassName,showTimeSelect:o.props.showTimeSelect,showTimeSelectOnly:o.props.showTimeSelectOnly,onTimeChange:o.handleTimeChange,timeFormat:o.props.timeFormat,timeIntervals:o.props.timeIntervals,minTime:o.props.minTime,maxTime:o.props.maxTime,excludeTimes:o.props.excludeTimes,timeCaption:o.props.timeCaption,className:o.props.calendarClassName,container:o.props.calendarContainer,yearDropdownItemNumber:o.props.yearDropdownItemNumber,previousMonthButtonLabel:o.props.previousMonthButtonLabel,nextMonthButtonLabel:o.props.nextMonthButtonLabel,previousYearButtonLabel:o.props.previousYearButtonLabel,nextYearButtonLabel:o.props.nextYearButtonLabel,timeInputLabel:o.props.timeInputLabel,disabledKeyboardNavigation:o.props.disabledKeyboardNavigation,renderCustomHeader:o.props.renderCustomHeader,popperProps:o.props.popperProps,renderDayContents:o.props.renderDayContents,onDayMouseEnter:o.props.onDayMouseEnter,onMonthMouseLeave:o.props.onMonthMouseLeave,showTimeInput:o.props.showTimeInput,showMonthYearPicker:o.props.showMonthYearPicker,showFullMonthYearPicker:o.props.showFullMonthYearPicker,showYearPicker:o.props.showYearPicker,showQuarterYearPicker:o.props.showQuarterYearPicker,showPopperArrow:o.props.showPopperArrow,excludeScrollbar:o.props.excludeScrollbar,handleOnKeyDown:o.onDayKeyDown,isInputFocused:o.state.focused,customTimeInput:o.props.customTimeInput,setPreSelection:o.setPreSelection},o.props.children):null})),ft(bt(o),"renderDateInput",(function(){var t,e,n,i,a,s=r(o.props.className,ft({},"react-datepicker-ignore-onclickoutside",o.state.open)),u=o.props.customInput||l.createElement("input",{type:"text"}),c=o.props.customInputRef||"ref",h="string"==typeof o.props.value?o.props.value:"string"==typeof o.state.inputValue?o.state.inputValue:(e=o.props.selected,i=(n=o.props).dateFormat,a=n.locale,e&&Ot(e,Array.isArray(i)?i[0]:i,a)||"");return l.cloneElement(u,(ft(t={},c,(function(t){o.input=t})),ft(t,"value",h),ft(t,"onBlur",o.handleBlur),ft(t,"onChange",o.handleChange),ft(t,"onClick",o.onInputClick),ft(t,"onFocus",o.handleFocus),ft(t,"onKeyDown",o.onInputKeyDown),ft(t,"id",o.props.id),ft(t,"name",o.props.name),ft(t,"autoFocus",o.props.autoFocus),ft(t,"placeholder",o.props.placeholderText),ft(t,"disabled",o.props.disabled),ft(t,"autoComplete",o.props.autoComplete),ft(t,"className",r(u.props.className,s)),ft(t,"title",o.props.title),ft(t,"readOnly",o.props.readOnly),ft(t,"required",o.props.required),ft(t,"tabIndex",o.props.tabIndex),ft(t,"aria-labelledby",o.props.ariaLabelledBy),t))})),ft(bt(o),"renderClearButton",(function(){var t=o.props,e=t.isClearable,n=t.selected,r=t.clearButtonTitle,i=t.ariaLabelClose,a=void 0===i?"Close":i;return e&&null!=n?l.createElement("button",{type:"button",className:"react-datepicker__close-icon","aria-label":a,onClick:o.onClearClick,title:r,tabIndex:-1}):null})),o.state=o.calcInitialState(),o}return dt(n,null,[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,renderDayContents:function(t){return t},inlineFocusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null}}}]),dt(n,[{key:"componentDidUpdate",value:function(t,e){var l,n;t.inline&&(l=t.selected,n=this.props.selected,l&&n?C(l)!==C(n)||T(l)!==T(n):l!==n)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:ue(this.props.highlightDates)}),e.focused||Ut(t.selected,this.props.selected)||this.setState({inputValue:null}),e.open!==this.state.open&&(!1===e.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===e.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout()}},{key:"render",value:function(){var t=this.renderCalendar();return this.props.inline&&!this.props.withPortal?t:this.props.withPortal?l.createElement("div",null,this.props.inline?null:l.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),this.state.open||this.props.inline?l.createElement("div",{className:"react-datepicker__portal"},t):null):l.createElement(Pe,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),popperModifiers:this.props.popperModifiers,targetComponent:l.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),popperContainer:this.props.popperContainer,popperComponent:t,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}]),n}(l.Component),Re="input",Ne="navigate";e.CalendarContainer=ke,e.default=Le,e.getDefaultLocale=Zt,e.registerLocale=function(e,l){var n="undefined"!=typeof window?window:t;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=l},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:t).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(e,l(0),l(1),l(4),l(1481),l(702),l(2294),l(703),l(704),l(404),l(705),l(405),l(706),l(1482),l(1483),l(1484),l(1485),l(1486),l(1487),l(1488),l(1489),l(1490),l(1491),l(1492),l(2296),l(1493),l(1494),l(1495),l(1496),l(1497),l(1498),l(1499),l(707),l(1500),l(1501),l(1502),l(1503),l(1504),l(1505),l(1506),l(1507),l(300),l(195),l(1508),l(531),l(1509),l(1510),l(1511),l(1512),l(1513),l(1514),l(1515),l(1516),l(1517),l(1518),l(1519),l(1520),l(25),l(2293),l(1521),l(1522),l(311))}).call(this,l(52))},function(t,e,l){"use strict";var n=a(l(1232)),r=a(l(1234)),i=a(l(769)),o=a(l(767));function a(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:o.default,TransitionGroup:i.default,ReplaceTransition:r.default,CSSTransition:n.default}},function(t,e,l){"use strict";l.d(e,"a",(function(){return o}));var n=l(272),r=function(t,e){var l="function"===typeof Symbol&&t[Symbol.iterator];if(!l)return t;var n,r,i=l.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(a){r={error:a}}finally{try{n&&!n.done&&(l=i.return)&&l.call(i)}finally{if(r)throw r.error}}return o},i=new n.a("Amplify"),o=new(function(){function t(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Logger=n.a,this.ServiceWorker=null}return t.prototype.register=function(t){i.debug("component registered in amplify",t),this._components.push(t),"function"===typeof t.getModuleName?(this._modules[t.getModuleName()]=t,this[t.getModuleName()]=t):i.debug("no getModuleName method for component",t),t.configure(this._config)},t.prototype.configure=function(t){var e=this;return t?(this._config=Object.assign(this._config,t),i.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(t){var l=r(t,2),n=(l[0],l[1]);Object.keys(n).forEach((function(t){e._modules[t]&&(n[t]=e._modules[t])}))})),this._components.map((function(t){t.configure(e._config)})),this._config):this._config},t.prototype.addPluggable=function(t){t&&t.getCategory&&"function"===typeof t.getCategory&&this._components.map((function(e){e.addPluggable&&"function"===typeof e.addPluggable&&e.addPluggable(t)}))},t}())},function(t,e,l){var n,r;l(1666),n=[l(1665)],void 0===(r=function(t){return function(){var e,l,n,r=0,i="error",o="info",a="success",s="warning",u={clear:function(l,n){var r=p();e||c(r),h(l,r,n)||function(l){for(var n=e.children(),r=n.length-1;r>=0;r--)h(t(n[r]),l)}(r)},remove:function(l){var n=p();e||c(n),l&&0===t(":focus",l).length?g(l):e.children().length&&e.remove()},error:function(t,e,l){return f({type:i,iconClass:p().iconClasses.error,message:t,optionsOverride:l,title:e})},getContainer:c,info:function(t,e,l){return f({type:o,iconClass:p().iconClasses.info,message:t,optionsOverride:l,title:e})},options:{},subscribe:function(t){l=t},success:function(t,e,l){return f({type:a,iconClass:p().iconClasses.success,message:t,optionsOverride:l,title:e})},version:"2.1.4",warning:function(t,e,l){return f({type:s,iconClass:p().iconClasses.warning,message:t,optionsOverride:l,title:e})}};return u;function c(l,n){return l||(l=p()),(e=t("#"+l.containerId)).length||n&&(e=function(l){return(e=t("
").attr("id",l.containerId).addClass(l.positionClass)).appendTo(t(l.target)),e}(l)),e}function h(e,l,n){var r=!(!n||!n.force)&&n.force;return!(!e||!r&&0!==t(":focus",e).length)&&(e[l.hideMethod]({duration:l.hideDuration,easing:l.hideEasing,complete:function(){g(e)}}),!0)}function d(t){l&&l(t)}function f(l){var i=p(),o=l.iconClass||i.iconClass;if("undefined"!==typeof l.optionsOverride&&(i=t.extend(i,l.optionsOverride),o=l.optionsOverride.iconClass||o),!function(t,e){if(t.preventDuplicates){if(e.message===n)return!0;n=e.message}return!1}(i,l)){r++,e=c(i,!0);var a=null,s=t("
"),u=t("
"),h=t("
"),f=t("
"),m=t(i.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:r,state:"visible",startTime:new Date,options:i,map:l};return l.iconClass&&s.addClass(i.toastClass).addClass(o),function(){if(l.title){var t=l.title;i.escapeHtml&&(t=b(l.title)),u.append(t).addClass(i.titleClass),s.append(u)}}(),function(){if(l.message){var t=l.message;i.escapeHtml&&(t=b(l.message)),h.append(t).addClass(i.messageClass),s.append(h)}}(),i.closeButton&&(m.addClass(i.closeClass).attr("role","button"),s.prepend(m)),i.progressBar&&(f.addClass(i.progressClass),s.prepend(f)),i.rtl&&s.addClass("rtl"),i.newestOnTop?e.prepend(s):e.append(s),function(){var t="";switch(l.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}s.attr("aria-live",t)}(),s.hide(),s[i.showMethod]({duration:i.showDuration,easing:i.showEasing,complete:i.onShown}),i.timeOut>0&&(a=setTimeout(w,i.timeOut),v.maxHideTime=parseFloat(i.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,i.progressBar&&(v.intervalId=setInterval(S,10))),i.closeOnHover&&s.hover(_,x),!i.onclick&&i.tapToDismiss&&s.click(w),i.closeButton&&m&&m.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),i.onCloseClick&&i.onCloseClick(t),w(!0)})),i.onclick&&s.click((function(t){i.onclick(t),w()})),d(y),i.debug&&console&&console.log(y),s}function b(t){return null==t&&(t=""),t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function w(e){var l=e&&!1!==i.closeMethod?i.closeMethod:i.hideMethod,n=e&&!1!==i.closeDuration?i.closeDuration:i.hideDuration,r=e&&!1!==i.closeEasing?i.closeEasing:i.hideEasing;if(!t(":focus",s).length||e)return clearTimeout(v.intervalId),s[l]({duration:n,easing:r,complete:function(){g(s),clearTimeout(a),i.onHidden&&"hidden"!==y.state&&i.onHidden(),y.state="hidden",y.endTime=new Date,d(y)}})}function x(){(i.timeOut>0||i.extendedTimeOut>0)&&(a=setTimeout(w,i.extendedTimeOut),v.maxHideTime=parseFloat(i.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function _(){clearTimeout(a),v.hideEta=0,s.stop(!0,!0)[i.showMethod]({duration:i.showDuration,easing:i.showEasing})}function S(){var t=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;f.width(t+"%")}}function p(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},u.options)}function g(t){e||(e=c()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),n=void 0))}}()}.apply(e,n))||(t.exports=r)},function(t,e,l){t.exports=l(1689)},function(t,e,l){"use strict";l.d(e,"a",(function(){return x})),l.d(e,"b",(function(){return C})),l.d(e,"d",(function(){return T})),l.d(e,"c",(function(){return g})),l.d(e,"f",(function(){return m})),l.d(e,"e",(function(){return p}));var n=l(3);function r(t){return"/"===t.charAt(0)}function i(t,e){for(var l=e,n=l+1,r=t.length;n=0;d--){var f=o[d];"."===f?i(o,d):".."===f?(i(o,d),h++):h&&(i(o,d),h--)}if(!u)for(;h--;h)o.unshift("..");!u||""===o[0]||o[0]&&r(o[0])||o.unshift("");var p=o.join("/");return l&&"/"!==p.substr(-1)&&(p+="/"),p};function a(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var s=function t(e,l){if(e===l)return!0;if(null==e||null==l)return!1;if(Array.isArray(e))return Array.isArray(l)&&e.length===l.length&&e.every((function(e,n){return t(e,l[n])}));if("object"===typeof e||"object"===typeof l){var n=a(e),r=a(l);return n!==e||r!==l?t(n,r):Object.keys(Object.assign({},e,l)).every((function(n){return t(e[n],l[n])}))}return!1},u=l(135);function c(t){return"/"===t.charAt(0)?t:"/"+t}function h(t){return"/"===t.charAt(0)?t.substr(1):t}function d(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function f(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function p(t){var e=t.pathname,l=t.search,n=t.hash,r=e||"/";return l&&"?"!==l&&(r+="?"===l.charAt(0)?l:"?"+l),n&&"#"!==n&&(r+="#"===n.charAt(0)?n:"#"+n),r}function g(t,e,l,r){var i;"string"===typeof t?(i=function(t){var e=t||"/",l="",n="",r=e.indexOf("#");-1!==r&&(n=e.substr(r),e=e.substr(0,r));var i=e.indexOf("?");return-1!==i&&(l=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===l?"":l,hash:"#"===n?"":n}}(t)).state=e:(void 0===(i=Object(n.a)({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):a}return l&&(i.key=l),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=o(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function m(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&s(t.state,e.state)}function v(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,l,n,r){if(null!=t){var i="function"===typeof t?t(e,l):t;"string"===typeof i?"function"===typeof n?n(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(t){var l=!0;function n(){l&&t.apply(void 0,arguments)}return e.push(n),function(){l=!1,e=e.filter((function(t){return t!==n}))}},notifyListeners:function(){for(var t=arguments.length,l=new Array(t),n=0;ne?l.splice(e,l.length-e,n):l.push(n),h({action:"PUSH",location:n,index:e,entries:l})}}))},replace:function(t,e){var n=g(t,e,d(),w.location);c.confirmTransitionTo(n,"REPLACE",l,(function(t){t&&(w.entries[w.index]=n,h({action:"REPLACE",location:n}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=w.index+t;return e>=0&&e0&&d>0&&!p&&(s=0),s<0&&d<0&&!g&&(d=0));var m=e.ecModel;if(m&&"time"===o){var v,y=u("bar",m);if(n.each(y,(function(t){v|=t.getBaseAxis()===e.axis})),v){var b=c(y),w=function(t,e,l,r){var i=l.axis.getExtent(),o=i[1]-i[0],a=h(r,l.axis);if(void 0===a)return{min:t,max:e};var s=1/0;n.each(a,(function(t){s=Math.min(t.offset,s)}));var u=-1/0;n.each(a,(function(t){u=Math.max(t.offset+t.width,u)})),s=Math.abs(s),u=Math.abs(u);var c=s+u,d=e-t,f=d/(1-(s+u)/o)-d;return{min:t-=f*(s/c),max:e+=f*(u/c)}}(s,d,e,b);s=w.min,d=w.max}}return{extent:[s,d],fixMin:p,fixMax:g}}function p(t){var e,l=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"===typeof l?(e=l,l=function(l){return l=t.scale.getLabel(l),e.replace("{value}",null!=l?l:"")}):"function"===typeof l?function(e,r){return null!=n&&(r=e-n),l(g(t,e),r)}:function(e){return t.scale.getLabel(e)}}function g(t,e){return"category"===t.type?t.scale.getLabel(e):e}function m(t,e){var l=e*Math.PI/180,n=t.plain(),r=n.width,i=n.height,o=r*Math.abs(Math.cos(l))+Math.abs(i*Math.sin(l)),a=r*Math.abs(Math.sin(l))+Math.abs(i*Math.cos(l));return new d(n.x,n.y,o,a)}function v(t){var e=t.get("interval");return null==e?"auto":e}l(1869),l(1043),e.getScaleExtent=f,e.niceScaleExtent=function(t,e){var l=f(t,e),n=l.extent,r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var i=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:r,fixMin:l.fixMin,fixMax:l.fixMax,minInterval:"interval"===i||"time"===i?e.get("minInterval"):null,maxInterval:"interval"===i||"time"===i?e.get("maxInterval"):null});var o=e.get("interval");null!=o&&t.setInterval&&t.setInterval(o)},e.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new r(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(o.getClass(e)||i).create(t)}},e.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),l=e[0],n=e[1];return!(l>0&&n>0||l<0&&n<0)},e.makeLabelFormatter=p,e.getAxisRawValue=g,e.estimateLabelUnionRect=function(t){var e=t.model,l=t.scale;if(e.get("axisLabel.show")&&!l.isBlank()){var n,r,i="category"===t.type,o=l.getExtent();r=i?l.count():(n=l.getTicks()).length;var a,s=t.getLabelModel(),u=p(t),c=1;r>40&&(c=Math.ceil(r/40));for(var h=0;h>6|192,63&r|128);else if(l+1>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else e.push(r>>12|224,r>>6&63|128,63&r|128)}return Uint8Array.from(e)}(t)},r=function(t){return"function"===typeof TextDecoder?function(t){return new TextDecoder("utf-8").decode(t)}(t):function(t){for(var e="",l=0,n=t.length;l=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(n.default)(t),h=c.getDay(),d=(h=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(r.default)(t),h=c.getUTCDay(),d=(h0&&void 0!==arguments[0]?arguments[0]:["all"],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e.duration,a=void 0===l?i.standard:l,s=e.easing,u=void 0===s?r.easeInOut:s,c=e.delay,h=void 0===c?0:c;Object(n.a)(e,["duration","easing","delay"]);return(Array.isArray(t)?t:[t]).map((function(t){return"".concat(t," ").concat("string"===typeof a?a:o(a)," ").concat(u," ").concat("string"===typeof h?h:o(h))})).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var e=t/36;return Math.round(10*(4+15*Math.pow(e,.25)+e/5))}}},function(t,e,l){t.exports=l(2247)},function(t,e,l){"use strict";e.__esModule=!0;var n,r=l(201),i=(n=r)&&n.__esModule?n:{default:n};e.default=i.default||function(t){for(var e=1;e=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function s(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=r,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var l=[];if("string"===typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t),r=0;r>6|192,l[n++]=63&o|128):i(t,r)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++r)),l[n++]=o>>18|240,l[n++]=o>>12&63|128,l[n++]=o>>6&63|128,l[n++]=63&o|128):(l[n++]=o>>12|224,l[n++]=o>>6&63|128,l[n++]=63&o|128)}else for(r=0;r>>0}return o},e.split32=function(t,e){for(var l=new Array(4*t.length),n=0,r=0;n>>24,l[r+1]=i>>>16&255,l[r+2]=i>>>8&255,l[r+3]=255&i):(l[r+3]=i>>>24,l[r+2]=i>>>16&255,l[r+1]=i>>>8&255,l[r]=255&i)}return l},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,l){return t+e+l>>>0},e.sum32_4=function(t,e,l,n){return t+e+l+n>>>0},e.sum32_5=function(t,e,l,n,r){return t+e+l+n+r>>>0},e.sum64=function(t,e,l,n){var r=t[e],i=n+t[e+1]>>>0,o=(i>>0,t[e+1]=i},e.sum64_hi=function(t,e,l,n){return(e+n>>>0>>0},e.sum64_lo=function(t,e,l,n){return e+n>>>0},e.sum64_4_hi=function(t,e,l,n,r,i,o,a){var s=0,u=e;return s+=(u=u+n>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,l,n,r,i,o,a){return e+n+i+a>>>0},e.sum64_5_hi=function(t,e,l,n,r,i,o,a,s,u){var c=0,h=e;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,l,n,r,i,o,a,s,u){return e+n+i+a+u>>>0},e.rotr64_hi=function(t,e,l){return(e<<32-l|t>>>l)>>>0},e.rotr64_lo=function(t,e,l){return(t<<32-l|e>>>l)>>>0},e.shr64_hi=function(t,e,l){return t>>>l},e.shr64_lo=function(t,e,l){return(t<<32-l|e>>>l)>>>0}},function(t,e,l){var n=l(287);e.Dispatcher=n;var r=l(104),i=l(1013),o=i.isCanvasEl,a=i.transformCoordWithViewport,s="undefined"!==typeof window&&!!window.addEventListener,u=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function h(t,e,l,n){return l=l||{},n||!r.canvasSupported?d(t,e,l):r.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(l.zrX=e.layerX,l.zrY=e.layerY):null!=e.offsetX?(l.zrX=e.offsetX,l.zrY=e.offsetY):d(t,e,l),l}function d(t,e,l){if(r.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(o(t)){var s=t.getBoundingClientRect();return l.zrX=n-s.left,void(l.zrY=i-s.top)}if(a(c,t,n,i))return l.zrX=c[0],void(l.zrY=c[1])}l.zrX=l.zrY=0}function f(t){return t||window.event}var p=s?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};e.clientToLocal=h,e.getNativeEvent=f,e.normalizeEvent=function(t,e,l){if(null!=(e=f(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var r="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];r&&h(t,r,e,l)}else h(t,e,e,l),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var i=e.button;return null==e.which&&void 0!==i&&u.test(e.type)&&(e.which=1&i?1:2&i?3:4&i?2:0),e},e.addEventListener=function(t,e,l,n){s?t.addEventListener(e,l,n):t.attachEvent("on"+e,l)},e.removeEventListener=function(t,e,l,n){s?t.removeEventListener(e,l,n):t.detachEvent("on"+e,l)},e.stop=p,e.isMiddleOrRightButtonOnMouseUpDown=function(t){return 2===t.which||3===t.which},e.notLeftMouse=function(t){return t.which>1}},function(t,e,l){var n=l(1016),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function i(t){return(t=Math.round(t))<0?0:t>255?255:t}function o(t){return t<0?0:t>1?1:t}function a(t){return t.length&&"%"===t.charAt(t.length-1)?i(parseFloat(t)/100*255):i(parseInt(t,10))}function s(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100):o(parseFloat(t))}function u(t,e,l){return l<0?l+=1:l>1&&(l-=1),6*l<1?t+(e-t)*l*6:2*l<1?e:3*l<2?t+(e-t)*(2/3-l)*6:t}function c(t,e,l){return t+(e-t)*l}function h(t,e,l,n,r){return t[0]=e,t[1]=l,t[2]=n,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new n(20),p=null;function g(t,e){p&&d(p,e),p=f.put(t,p||e.slice())}function m(t,e){if(t){e=e||[];var l=f.get(t);if(l)return d(e,l);var n,i=(t+="").replace(/ /g,"").toLowerCase();if(i in r)return d(e,r[i]),g(t,e),e;if("#"===i.charAt(0))return 4===i.length?(n=parseInt(i.substr(1),16))>=0&&n<=4095?(h(e,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1),g(t,e),e):void h(e,0,0,0,1):7===i.length?(n=parseInt(i.substr(1),16))>=0&&n<=16777215?(h(e,(16711680&n)>>16,(65280&n)>>8,255&n,1),g(t,e),e):void h(e,0,0,0,1):void 0;var o=i.indexOf("("),u=i.indexOf(")");if(-1!==o&&u+1===i.length){var c=i.substr(0,o),p=i.substr(o+1,u-(o+1)).split(","),m=1;switch(c){case"rgba":if(4!==p.length)return void h(e,0,0,0,1);m=s(p.pop());case"rgb":return 3!==p.length?void h(e,0,0,0,1):(h(e,a(p[0]),a(p[1]),a(p[2]),m),g(t,e),e);case"hsla":return 4!==p.length?void h(e,0,0,0,1):(p[3]=s(p[3]),v(p,e),g(t,e),e);case"hsl":return 3!==p.length?void h(e,0,0,0,1):(v(p,e),g(t,e),e);default:return}}h(e,0,0,0,1)}}function v(t,e){var l=(parseFloat(t[0])%360+360)%360/360,n=s(t[1]),r=s(t[2]),o=r<=.5?r*(n+1):r+n-r*n,a=2*r-o;return h(e=e||[],i(255*u(a,o,l+1/3)),i(255*u(a,o,l)),i(255*u(a,o,l-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e,l){if(e&&e.length&&t>=0&&t<=1){l=l||[];var n=t*(e.length-1),r=Math.floor(n),a=Math.ceil(n),s=e[r],u=e[a],h=n-r;return l[0]=i(c(s[0],u[0],h)),l[1]=i(c(s[1],u[1],h)),l[2]=i(c(s[2],u[2],h)),l[3]=o(c(s[3],u[3],h)),l}}var b=y;function w(t,e,l){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),r=Math.floor(n),a=Math.ceil(n),s=m(e[r]),u=m(e[a]),h=n-r,d=_([i(c(s[0],u[0],h)),i(c(s[1],u[1],h)),i(c(s[2],u[2],h)),o(c(s[3],u[3],h))],"rgba");return l?{color:d,leftIndex:r,rightIndex:a,value:n}:d}}var x=w;function _(t,e){if(t&&t.length){var l=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(l+=","+t[3]),e+"("+l+")"}}e.parse=m,e.lift=function(t,e){var l=m(t);if(l){for(var n=0;n<3;n++)l[n]=e<0?l[n]*(1-e)|0:(255-l[n])*e+l[n]|0,l[n]>255?l[n]=255:t[n]<0&&(l[n]=0);return _(l,4===l.length?"rgba":"rgb")}},e.toHex=function(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},e.fastLerp=y,e.fastMapToColor=b,e.lerp=w,e.mapToColor=x,e.modifyHSL=function(t,e,l,n){if(t=m(t))return t=function(t){if(t){var e,l,n=t[0]/255,r=t[1]/255,i=t[2]/255,o=Math.min(n,r,i),a=Math.max(n,r,i),s=a-o,u=(a+o)/2;if(0===s)e=0,l=0;else{l=u<.5?s/(a+o):s/(2-a-o);var c=((a-n)/6+s/2)/s,h=((a-r)/6+s/2)/s,d=((a-i)/6+s/2)/s;n===a?e=d-h:r===a?e=1/3+c-d:i===a&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,l,u];return null!=t[3]&&f.push(t[3]),f}}(t),null!=e&&(t[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=l&&(t[1]=s(l)),null!=n&&(t[2]=s(n)),_(v(t),"rgba");var r},e.modifyAlpha=function(t,e){if((t=m(t))&&null!=e)return t[3]=o(e),_(t,"rgba")},e.stringify=_},function(t,e,l){var n=l(13).each,r=l(288),i=l(387),o=l(230),a=l(57),s=l(36),u=l(660).createTask,c=l(324),h=a.makeInner(),d=c();function f(){this.group=new r,this.uid=i.getUID("viewChart"),this.renderTask=u({plan:v,reset:y}),this.renderTask.context={view:this}}f.prototype={type:"chart",init:function(t,e){},render:function(t,e,l,n){},highlight:function(t,e,l,n){m(t.getData(),n,"emphasis")},downplay:function(t,e,l,n){m(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var p=f.prototype;function g(t,e,l){if(t&&(t.trigger(e,l),t.isGroup&&!s.isHighDownDispatcher(t)))for(var n=0,r=t.childCount();n1&&void 0!==arguments[1]?arguments[1]:{},l=e.url,r=e.target,i=e.rel,o=e.enabled,a=void 0===o||o;(0,n.assert)(l&&"string"===typeof l,'addLinkAttributes: A valid "url" parameter must provided.');var s=(0,n.removeNullCharacters)(l);a?t.href=t.title=s:(t.href="",t.title="Disabled: ".concat(s),t.onclick=function(){return!1});var u="";switch(r){case c.NONE:break;case c.SELF:u="_self";break;case c.BLANK:u="_blank";break;case c.PARENT:u="_parent";break;case c.TOP:u="_top"}t.target=u,t.rel="string"===typeof i?i:"noopener noreferrer nofollow"},e.getFilenameFromUrl=function(t){var e=t.indexOf("#"),l=t.indexOf("?"),n=Math.min(e>0?e:t.length,l>0?l:t.length);return t.substring(t.lastIndexOf("/",n)+1,n)},e.isFetchSupported=f,e.isValidFetchUrl=p,e.loadScript=function(t){return new Promise((function(e,l){var n=document.createElement("script");n.src=t,n.onload=e,n.onerror=function(){l(new Error("Cannot load script at: ".concat(n.src)))},(document.head||document.documentElement).appendChild(n)}))},e.deprecated=function(t){console.log("Deprecated API usage: "+t)},e.PDFDateString=e.StatTimer=e.DOMSVGFactory=e.DOMCMapReaderFactory=e.DOMCanvasFactory=e.DEFAULT_LINK_REL=e.LinkTarget=e.RenderingCancelledException=e.PageViewport=void 0;var n=l(2);e.DEFAULT_LINK_REL="noopener noreferrer nofollow";var r="http://www.w3.org/2000/svg",i=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"create",value:function(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");var l=document.createElement("canvas"),n=l.getContext("2d");return l.width=t,l.height=e,{canvas:l,context:n}}},{key:"reset",value:function(t,e,l){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||l<=0)throw new Error("Invalid canvas size");t.canvas.width=e,t.canvas.height=l}},{key:"destroy",value:function(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}}]),t}();e.DOMCanvasFactory=i;var o=function(){function t(e){var l=e.baseUrl,n=void 0===l?null:l,r=e.isCompressed,i=void 0!==r&&r;_classCallCheck(this,t),this.baseUrl=n,this.isCompressed=i}return _createClass(t,[{key:"fetch",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(e){var l,r,i,o=this;return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l=e.name,this.baseUrl){t.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(l){t.next=5;break}throw new Error("CMap name must be specified.");case 5:if(r=this.baseUrl+l+(this.isCompressed?".bcmap":""),i=this.isCompressed?n.CMapCompressionType.BINARY:n.CMapCompressionType.NONE,!f()||!p(r,document.baseURI)){t.next=9;break}return t.abrupt("return",fetch(r).then(function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(e){var l;return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ok){t.next=2;break}throw new Error(e.statusText);case 2:if(!o.isCompressed){t.next=10;break}return t.t0=Uint8Array,t.next=6,e.arrayBuffer();case 6:t.t1=t.sent,l=new t.t0(t.t1),t.next=15;break;case 10:return t.t2=n.stringToBytes,t.next=13,e.text();case 13:t.t3=t.sent,l=(0,t.t2)(t.t3);case 15:return t.abrupt("return",{cMapData:l,compressionType:i});case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(r))})));case 9:return t.abrupt("return",new Promise((function(t,e){var l=new XMLHttpRequest;l.open("GET",r,!0),o.isCompressed&&(l.responseType="arraybuffer"),l.onreadystatechange=function(){if(l.readyState===XMLHttpRequest.DONE){var r;if((200===l.status||0===l.status)&&(o.isCompressed&&l.response?r=new Uint8Array(l.response):!o.isCompressed&&l.responseText&&(r=(0,n.stringToBytes)(l.responseText)),r))return void t({cMapData:r,compressionType:i});e(new Error(l.statusText))}},l.send(null)})).catch((function(t){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(r))})));case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}())}]),t}();e.DOMCMapReaderFactory=o;var a=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"create",value:function(t,e){(0,n.assert)(t>0&&e>0,"Invalid SVG dimensions");var l=document.createElementNS(r,"svg:svg");return l.setAttribute("version","1.1"),l.setAttribute("width",t+"px"),l.setAttribute("height",e+"px"),l.setAttribute("preserveAspectRatio","none"),l.setAttribute("viewBox","0 0 "+t+" "+e),l}},{key:"createElement",value:function(t){return(0,n.assert)("string"===typeof t,"Invalid SVG element type"),document.createElementNS(r,t)}}]),t}();e.DOMSVGFactory=a;var s=function(){function t(e){var l=e.viewBox,n=e.scale,r=e.rotation,i=e.offsetX,o=void 0===i?0:i,a=e.offsetY,s=void 0===a?0:a,u=e.dontFlip,c=void 0!==u&&u;_classCallCheck(this,t),this.viewBox=l,this.scale=n,this.rotation=r,this.offsetX=o,this.offsetY=s;var h,d,f,p,g,m,v,y,b=(l[2]+l[0])/2,w=(l[3]+l[1])/2;switch(r=(r%=360)<0?r+360:r){case 180:h=-1,d=0,f=0,p=1;break;case 90:h=0,d=1,f=1,p=0;break;case 270:h=0,d=-1,f=-1,p=0;break;case 0:h=1,d=0,f=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}c&&(f=-f,p=-p),0===h?(g=Math.abs(w-l[1])*n+o,m=Math.abs(b-l[0])*n+s,v=Math.abs(l[3]-l[1])*n,y=Math.abs(l[2]-l[0])*n):(g=Math.abs(b-l[0])*n+o,m=Math.abs(w-l[1])*n+s,v=Math.abs(l[2]-l[0])*n,y=Math.abs(l[3]-l[1])*n),this.transform=[h*n,d*n,f*n,p*n,g-h*n*b-f*n*w,m-d*n*b-p*n*w],this.width=v,this.height=y}return _createClass(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=e.scale,n=void 0===l?this.scale:l,r=e.rotation,i=void 0===r?this.rotation:r,o=e.offsetX,a=void 0===o?this.offsetX:o,s=e.offsetY,u=void 0===s?this.offsetY:s,c=e.dontFlip,h=void 0!==c&&c;return new t({viewBox:this.viewBox.slice(),scale:n,rotation:i,offsetX:a,offsetY:u,dontFlip:h})}},{key:"convertToViewportPoint",value:function(t,e){return n.Util.applyTransform([t,e],this.transform)}},{key:"convertToViewportRectangle",value:function(t){var e=n.Util.applyTransform([t[0],t[1]],this.transform),l=n.Util.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],l[0],l[1]]}},{key:"convertToPdfPoint",value:function(t,e){return n.Util.applyInverseTransform([t,e],this.transform)}}]),t}();e.PageViewport=s;var u=function(t){_inherits(l,t);var e=_createSuper(l);function l(t,n){var r;return _classCallCheck(this,l),(r=e.call(this,t)).type=n,r}return l}(n.BaseException);e.RenderingCancelledException=u;var c={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};e.LinkTarget=c;var h,d=function(){function t(){_classCallCheck(this,t),this.started=Object.create(null),this.times=[]}return _createClass(t,[{key:"time",value:function(t){t in this.started&&(0,n.warn)("Timer is already running for ".concat(t)),this.started[t]=Date.now()}},{key:"timeEnd",value:function(t){t in this.started||(0,n.warn)("Timer has not been started for ".concat(t)),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}},{key:"toString",value:function(){var t,e=[],l=0,n=_createForOfIteratorHelper(this.times);try{for(n.s();!(t=n.n()).done;){var r=t.value.name;r.length>l&&(l=r.length)}}catch(u){n.e(u)}finally{n.f()}var i,o=_createForOfIteratorHelper(this.times);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.end-a.start;e.push("".concat(a.name.padEnd(l)," ").concat(s,"ms\n"))}}catch(u){o.e(u)}finally{o.f()}return e.join("")}}]),t}();function f(){return"undefined"!==typeof fetch&&"undefined"!==typeof Response&&"body"in Response.prototype&&"undefined"!==typeof ReadableStream}function p(t,e){try{var l=(e?new URL(t,e):new URL(t)).protocol;return"http:"===l||"https:"===l}catch(n){return!1}}e.StatTimer=d;var g=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"toDateObject",value:function(t){if(!t||!(0,n.isString)(t))return null;h||(h=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var e=h.exec(t);if(!e)return null;var l=parseInt(e[1],10),r=parseInt(e[2],10);r=r>=1&&r<=12?r-1:0;var i=parseInt(e[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(e[4],10);o=o>=0&&o<=23?o:0;var a=parseInt(e[5],10);a=a>=0&&a<=59?a:0;var s=parseInt(e[6],10);s=s>=0&&s<=59?s:0;var u=e[7]||"Z",c=parseInt(e[8],10);c=c>=0&&c<=23?c:0;var d=parseInt(e[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===u?(o+=c,a+=d):"+"===u&&(o-=c,a-=d),new Date(Date.UTC(l,r,i,o,a,s))}}]),t}();e.PDFDateString=g},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayByteLength=b,e.arraysToBytes=function(t){var e=t.length;if(1===e&&t[0]instanceof Uint8Array)return t[0];for(var l=0,n=0;n=n.INFOS&&console.log("Info: ".concat(t))},e.isArrayBuffer=function(t){return"object"===typeof t&&null!==t&&void 0!==t.byteLength},e.isArrayEqual=function(t,e){return t.length===e.length&&t.every((function(t,l){return t===e[l]}))},e.isBool=function(t){return"boolean"===typeof t},e.isEmptyObj=function(t){for(var e in t)return!1;return!0},e.isNum=function(t){return"number"===typeof t},e.isString=function(t){return"string"===typeof t},e.isSameOrigin=function(t,e){var l;try{if(!(l=new URL(t)).origin||"null"===l.origin)return!1}catch(r){return!1}var n=new URL(e,l);return l.origin===n.origin},e.createValidAbsoluteUrl=function(t,e){if(!t)return null;try{var l=e?new URL(t,e):new URL(t);if(function(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(l))return l}catch(n){}return null},e.removeNullCharacters=function(t){return"string"!==typeof t?(i("The argument for removeNullCharacters must be a string."),t):t.replace(v,"")},e.setVerbosityLevel=function(t){Number.isInteger(t)&&(r=t)},e.shadow=s,e.string32=function(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)},e.stringToBytes=y,e.stringToPDFString=function(t){var e=t.length,l=[];if("\xfe"===t[0]&&"\xff"===t[1])for(var n=2;n=n.WARNINGS&&console.log("Warning: ".concat(t))}function o(t){throw new Error(t)}function a(t,e){t||o(e)}function s(t,e,l){return Object.defineProperty(t,e,{value:l,enumerable:!0,configurable:!0,writable:!1}),l}var u=function(){function t(e){this.constructor===t&&o("Cannot initialize BaseException."),this.message=e,this.name=this.constructor.name}return t.prototype=new Error,t.constructor=t,t}();e.BaseException=u;var c=function(t){_inherits(l,t);var e=_createSuper(l);function l(t,n){var r;return _classCallCheck(this,l),(r=e.call(this,t)).code=n,r}return l}(u);e.PasswordException=c;var h=function(t){_inherits(l,t);var e=_createSuper(l);function l(t,n){var r;return _classCallCheck(this,l),(r=e.call(this,t)).details=n,r}return l}(u);e.UnknownErrorException=h;var d=function(t){_inherits(l,t);var e=_createSuper(l);function l(){return _classCallCheck(this,l),e.apply(this,arguments)}return l}(u);e.InvalidPDFException=d;var f=function(t){_inherits(l,t);var e=_createSuper(l);function l(){return _classCallCheck(this,l),e.apply(this,arguments)}return l}(u);e.MissingPDFException=f;var p=function(t){_inherits(l,t);var e=_createSuper(l);function l(t,n){var r;return _classCallCheck(this,l),(r=e.call(this,t)).status=n,r}return l}(u);e.UnexpectedResponseException=p;var g=function(t){_inherits(l,t);var e=_createSuper(l);function l(){return _classCallCheck(this,l),e.apply(this,arguments)}return l}(u);e.FormatError=g;var m=function(t){_inherits(l,t);var e=_createSuper(l);function l(){return _classCallCheck(this,l),e.apply(this,arguments)}return l}(u);e.AbortException=m;var v=/\x00/g;function y(t){a("string"===typeof t,"Invalid argument for stringToBytes");for(var e=t.length,l=new Uint8Array(e),n=0;nt[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}},{key:"intersect",value:function(e,l){function n(t,e){return t-e}var r=[e[0],e[2],l[0],l[2]].sort(n),i=[e[1],e[3],l[1],l[3]].sort(n),o=[];return e=t.normalizeRect(e),l=t.normalizeRect(l),r[0]===e[0]&&r[1]===l[0]||r[0]===l[0]&&r[1]===e[0]?(o[0]=r[1],o[2]=r[2],i[0]===e[1]&&i[1]===l[1]||i[0]===l[1]&&i[1]===e[1]?(o[1]=i[1],o[3]=i[2],o):null):null}}]),t}();e.Util=S;var M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,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,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],E=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(e,l){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&URL.createObjectURL){var r=new Blob([e],{type:l});return URL.createObjectURL(r)}for(var i="data:".concat(l,";base64,"),o=0,a=e.length;o>2,d=(3&s)<<4|u>>4,f=o+1>6:64,p=o+22&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.length=e,this.initialData=l,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(t,[{key:"addRangeListener",value:function(t){this._rangeListeners.push(t)}},{key:"addProgressListener",value:function(t){this._progressListeners.push(t)}},{key:"addProgressiveReadListener",value:function(t){this._progressiveReadListeners.push(t)}},{key:"addProgressiveDoneListener",value:function(t){this._progressiveDoneListeners.push(t)}},{key:"onDataRange",value:function(t,e){var l,n=_createForOfIteratorHelper(this._rangeListeners);try{for(n.s();!(l=n.n()).done;)(0,l.value)(t,e)}catch(r){n.e(r)}finally{n.f()}}},{key:"onDataProgress",value:function(t,e){var l=this;this._readyCapability.promise.then((function(){var n,r=_createForOfIteratorHelper(l._progressListeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(t,e)}catch(i){r.e(i)}finally{r.f()}}))}},{key:"onDataProgressiveRead",value:function(t){var e=this;this._readyCapability.promise.then((function(){var l,n=_createForOfIteratorHelper(e._progressiveReadListeners);try{for(n.s();!(l=n.n()).done;)(0,l.value)(t)}catch(r){n.e(r)}finally{n.f()}}))}},{key:"onDataProgressiveDone",value:function(){var t=this;this._readyCapability.promise.then((function(){var e,l=_createForOfIteratorHelper(t._progressiveDoneListeners);try{for(l.s();!(e=l.n()).done;)(0,e.value)()}catch(n){l.e(n)}finally{l.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(t,e){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),t}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function t(e,l){_classCallCheck(this,t),this._pdfInfo=e,this._transport=l}return _createClass(t,[{key:"getPage",value:function(t){return this._transport.getPage(t)}},{key:"getPageIndex",value:function(t){return this._transport.getPageIndex(t)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(t){return this._transport.getDestination(t)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then((function(t){return t&&t.dest?t.dest:null}))}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),t}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function t(e,l,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,t),this._pageIndex=e,this._pageInfo=l,this._transport=n,this._stats=r?new _display_utils.StatTimer:null,this._pdfBug=r,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(t,[{key:"getViewport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.scale,l=t.rotation,n=void 0===l?this.rotate:l,r=t.offsetX,i=void 0===r?0:r,o=t.offsetY,a=void 0===o?0:o,s=t.dontFlip,u=void 0!==s&&s;return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:n,offsetX:i,offsetY:a,dontFlip:u})}},{key:"getAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intent,l=void 0===e?null:e;return this.annotationsPromise&&this.annotationsIntent===l||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,l),this.annotationsIntent=l),this.annotationsPromise}},{key:"render",value:function(t){var e=this,l=t.canvasContext,n=t.viewport,r=t.intent,i=void 0===r?"display":r,o=t.enableWebGL,a=void 0!==o&&o,s=t.renderInteractiveForms,u=void 0!==s&&s,c=t.transform,h=void 0===c?null:c,d=t.imageLayer,f=void 0===d?null:d,p=t.canvasFactory,g=void 0===p?null:p,m=t.background,v=void 0===m?null:m;this._stats&&this._stats.time("Overall");var y="print"===i?"print":"display";this.pendingCleanup=!1,this.intentStates[y]||(this.intentStates[y]=Object.create(null));var b=this.intentStates[y];b.streamReaderCancelTimeout&&(clearTimeout(b.streamReaderCancelTimeout),b.streamReaderCancelTimeout=null);var w=g||new _display_utils.DOMCanvasFactory,x=new _webgl.WebGLContext({enable:a});b.displayReadyCapability||(b.displayReadyCapability=(0,_util.createPromiseCapability)(),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:y,renderInteractiveForms:!0===u}));var _=function(t){var l=b.renderTasks.indexOf(S);l>=0&&b.renderTasks.splice(l,1),(e.cleanupAfterRender||"print"===y)&&(e.pendingCleanup=!0),e._tryCleanup(),t?(S.capability.reject(t),e._abortOperatorList({intentState:b,reason:t})):S.capability.resolve(),e._stats&&(e._stats.timeEnd("Rendering"),e._stats.timeEnd("Overall"))},S=new InternalRenderTask({callback:_,params:{canvasContext:l,viewport:n,transform:h,imageLayer:f,background:v},objs:this.objs,commonObjs:this.commonObjs,operatorList:b.operatorList,pageIndex:this._pageIndex,canvasFactory:w,webGLContext:x,useRequestAnimationFrame:"print"!==y,pdfBug:this._pdfBug});b.renderTasks||(b.renderTasks=[]),b.renderTasks.push(S);var M=S.task;return b.displayReadyCapability.promise.then((function(t){e.pendingCleanup?_():(e._stats&&e._stats.time("Rendering"),S.initializeGraphics(t),S.operatorListChanged())})).catch(_),M}},{key:"getOperatorList",value:function(){this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));var t,e=this.intentStates.oplist;return e.opListReadCapability||((t={}).operatorListChanged=function(){if(e.operatorList.lastChunk){e.opListReadCapability.resolve(e.operatorList);var l=e.renderTasks.indexOf(t);l>=0&&e.renderTasks.splice(l,1)}},e.opListReadCapability=(0,_util.createPromiseCapability)(),e.renderTasks=[],e.renderTasks.push(t),e.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),e.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.normalizeWhitespace,l=void 0!==e&&e,n=t.disableCombineTextItems,r=void 0!==n&&n,i=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===l,combineTextItems:!0!==r},{highWaterMark:i,size:function(t){return t.items.length}})}},{key:"getTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.streamTextContent(t);return new Promise((function(t,l){var n=e.getReader(),r={items:[],styles:Object.create(null)};!function e(){n.read().then((function(l){var n,i=l.value;l.done?t(r):(Object.assign(r.styles,i.styles),(n=r.items).push.apply(n,_toConsumableArray(i.items)),e())}),l)}()}))}},{key:"_destroy",value:function(){var t=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var e=[];return Object.keys(this.intentStates).forEach((function(l){var n=t.intentStates[l];t._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==l&&n.renderTasks.forEach((function(t){var l=t.capability.promise.catch((function(){}));e.push(l),t.cancel()}))})),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)}},{key:"cleanup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(t)}},{key:"_tryCleanup",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some((function(e){var l=t.intentStates[e];return 0!==l.renderTasks.length||!l.operatorList.lastChunk})))&&(Object.keys(this.intentStates).forEach((function(e){delete t.intentStates[e]})),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(t,e){var l=this.intentStates[e];l&&(this._stats&&this._stats.timeEnd("Page Request"),l.displayReadyCapability&&l.displayReadyCapability.resolve(t))}},{key:"_renderPageChunk",value:function(t,e){for(var l=0,n=t.length;l0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,t),this._listeners=[],this._defer=e,this._deferred=Promise.resolve(void 0)}return _createClass(t,[{key:"postMessage",value:function(t,e){var l=this;if(this._defer){var n=new WeakMap,r={data:function t(l){if("object"!==typeof l||null===l)return l;if(n.has(l))return n.get(l);var r,i;if((r=l.buffer)&&(0,_util.isArrayBuffer)(r))return i=e&&e.includes(r)?new l.constructor(r,l.byteOffset,l.byteLength):new l.constructor(l),n.set(l,i),i;for(var o in i=Array.isArray(l)?[]:{},n.set(l,i),l){for(var a=void 0,s=l;!(a=Object.getOwnPropertyDescriptor(s,o));)s=Object.getPrototypeOf(s);if("undefined"!==typeof a.value)if("function"!==typeof a.value)i[o]=t(a.value);else if(l.hasOwnProperty&&l.hasOwnProperty(o))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(l[o]))}return i}(t)};this._deferred.then((function(){l._listeners.forEach((function(t){t.call(l,r)}))}))}else this._listeners.forEach((function(e){e.call(l,{data:t})}))}},{key:"addEventListener",value:function(t,e){this._listeners.push(e)}},{key:"removeEventListener",value:function(t,e){var l=this._listeners.indexOf(e);this._listeners.splice(l,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),t}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===typeof document&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if("undefined"!==typeof fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var t;try{t=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(e){}return t||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref18=_asyncToGenerator(_regeneratorRuntime.mark((function _callee3(){var mainWorkerMessageHandler,worker;return _regeneratorRuntime.wrap((function _callee3$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context3.next=3;break}return _context3.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context3.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context3.abrupt("return",worker.WorkerMessageHandler);case 6:return _context3.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context3.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context3.stop()}}),_callee3)})));return function(){return _ref18.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(t){var e="importScripts('"+t+"');";return URL.createObjectURL(new Blob([e]))}var PDFWorker=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=e.name,n=void 0===l?null:l,r=e.port,i=void 0===r?null:r,o=e.verbosity,a=void 0===o?(0,_util.getVerbosityLevel)():o;if(_classCallCheck(this,t),i&&pdfWorkerPorts.has(i))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=n,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=a,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,i)return pdfWorkerPorts.set(i,this),void this._initializeFromPort(i);this._initialize()}return _createClass(t,[{key:"_initializeFromPort",value:function(t){this._port=t,this._messageHandler=new _message_handler.MessageHandler("main","worker",t),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var t=this;if("undefined"!==typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var e=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,e)||(e=createCDNWrapper(new URL(e,window.location).href));var l=new Worker(e),n=new _message_handler.MessageHandler("main","worker",l),r=function(){l.removeEventListener("error",i),n.destroy(),l.terminate(),t.destroyed?t._readyCapability.reject(new Error("Worker was destroyed")):t._setupFakeWorker()},i=function(){t._webWorker||r()};l.addEventListener("error",i),n.on("test",(function(e){l.removeEventListener("error",i),t.destroyed?r():e?(t._messageHandler=n,t._port=l,t._webWorker=l,e.supportTransfers||(t.postMessageTransfers=!1),t._readyCapability.resolve(),n.send("configure",{verbosity:t.verbosity})):(t._setupFakeWorker(),n.destroy(),l.terminate())})),n.on("ready",(function(e){if(l.removeEventListener("error",i),t.destroyed)r();else try{o()}catch(n){t._setupFakeWorker()}}));var o=function(){var e=new Uint8Array([t.postMessageTransfers?255:0]);try{n.send("test",e,[e.buffer])}catch(l){(0,_util.warn)("Cannot use postMessage transfers."),e[0]=0,n.send("test",e)}};return void o()}catch(a){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var t=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((function(e){if(t.destroyed)t._readyCapability.reject(new Error("Worker was destroyed"));else{var l=new LoopbackPort;t._port=l;var n="fake"+nextFakeWorkerId++,r=new _message_handler.MessageHandler(n+"_worker",n,l);e.setup(r,l);var i=new _message_handler.MessageHandler(n,n+"_worker",l);t._messageHandler=i,t._readyCapability.resolve(),i.send("configure",{verbosity:t.verbosity})}})).catch((function(e){t._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new t(e)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),t}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function t(e,l,n,r){_classCallCheck(this,t),this.messageHandler=e,this.loadingTask=l,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:l.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=r,this.CMapReaderFactory=new r.CMapReaderFactory({baseUrl:r.cMapUrl,isCompressed:r.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(t,[{key:"destroy",value:function(){var t=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var e=[];this.pageCache.forEach((function(t){t&&e.push(t._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;var l=this.messageHandler.sendWithPromise("Terminate",null);return e.push(l),Promise.all(e).then((function(){t.fontLoader.clear(),t._networkStream&&t._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),t.messageHandler&&(t.messageHandler.destroy(),t.messageHandler=null),t.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var t=this,e=this.messageHandler,l=this.loadingTask;e.on("GetReader",(function(e,l){(0,_util.assert)(t._networkStream,"GetReader - no `IPDFStream` instance available."),t._fullReader=t._networkStream.getFullReader(),t._fullReader.onProgress=function(e){t._lastProgress={loaded:e.loaded,total:e.total}},l.onPull=function(){t._fullReader.read().then((function(t){var e=t.value;t.done?l.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),l.enqueue(new Uint8Array(e),1,[e]))})).catch((function(t){l.error(t)}))},l.onCancel=function(e){t._fullReader.cancel(e)}})),e.on("ReaderHeadersReady",(function(e){var n=(0,_util.createPromiseCapability)(),r=t._fullReader;return r.headersReady.then((function(){r.isStreamingSupported&&r.isRangeSupported||(t._lastProgress&&l.onProgress&&l.onProgress(t._lastProgress),r.onProgress=function(t){l.onProgress&&l.onProgress({loaded:t.loaded,total:t.total})}),n.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",(function(e,l){(0,_util.assert)(t._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var n=t._networkStream.getRangeReader(e.begin,e.end);n?(l.onPull=function(){n.read().then((function(t){var e=t.value;t.done?l.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),l.enqueue(new Uint8Array(e),1,[e]))})).catch((function(t){l.error(t)}))},l.onCancel=function(t){n.cancel(t)}):l.close()})),e.on("GetDoc",(function(e){var n=e.pdfInfo;t._numPages=n.numPages,l._capability.resolve(new PDFDocumentProxy(n,t))})),e.on("DocException",(function(t){var e;switch(t.name){case"PasswordException":e=new _util.PasswordException(t.message,t.code);break;case"InvalidPDFException":e=new _util.InvalidPDFException(t.message);break;case"MissingPDFException":e=new _util.MissingPDFException(t.message);break;case"UnexpectedResponseException":e=new _util.UnexpectedResponseException(t.message,t.status);break;case"UnknownErrorException":e=new _util.UnknownErrorException(t.message,t.details)}l._capability.reject(e)})),e.on("PasswordRequest",(function(e){if(t._passwordCapability=(0,_util.createPromiseCapability)(),l.onPassword)try{l.onPassword((function(e){t._passwordCapability.resolve({password:e})}),e.code)}catch(n){t._passwordCapability.reject(n)}else t._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return t._passwordCapability.promise})),e.on("DataLoaded",(function(e){l.onProgress&&l.onProgress({loaded:e.length,total:e.length}),t.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(function(e){t.destroyed||t.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)})),e.on("commonobj",(function(l){if(!t.destroyed){var n=_slicedToArray(l,3),r=n[0],i=n[1],o=n[2];if(!t.commonObjs.has(r))switch(i){case"Font":var a=t._params;if("error"in o){var s=o.error;(0,_util.warn)("Error during font loading: ".concat(s)),t.commonObjs.resolve(r,s);break}var u=null;a.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(u={registerFont:function(t,e){globalThis.FontInspector.fontAdded(t,e)}});var c=new _font_loader.FontFaceObject(o,{isEvalSupported:a.isEvalSupported,disableFontFace:a.disableFontFace,ignoreErrors:a.ignoreErrors,onUnsupportedFeature:t._onUnsupportedFeature.bind(t),fontRegistry:u});t.fontLoader.bind(c).catch((function(t){return e.sendWithPromise("FontFallback",{id:r})})).finally((function(){!a.fontExtraProperties&&c.data&&(c.data=null),t.commonObjs.resolve(r,c)}));break;case"FontPath":case"FontType3Res":case"Image":t.commonObjs.resolve(r,o);break;default:throw new Error("Got unknown common object type ".concat(i))}}})),e.on("obj",(function(e){if(!t.destroyed){var l=_slicedToArray(e,4),n=l[0],r=l[1],i=l[2],o=l[3],a=t.pageCache[r];if(!a.objs.has(n))switch(i){case"Image":a.objs.resolve(n,o),o&&"data"in o&&o.data.length>8e6&&(a.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(i))}}})),e.on("DocProgress",(function(e){t.destroyed||l.onProgress&&l.onProgress({loaded:e.loaded,total:e.total})})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(function(e,l){if(t.destroyed)l.error(new Error("Worker was destroyed"));else{var n=!1;l.onPull=function(){n?l.close():(n=!0,t.CMapReaderFactory.fetch(e).then((function(t){l.enqueue(t,1,[t.cMapData.buffer])})).catch((function(t){l.error(t)})))}}}))}},{key:"_onUnsupportedFeature",value:function(t){var e=t.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(t){var e=this;if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request"));var l=t-1;if(l in this.pagePromises)return this.pagePromises[l];var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:l}).then((function(t){if(e.destroyed)throw new Error("Transport destroyed");var n=new PDFPageProxy(l,t,e,e._params.pdfBug);return e.pageCache[l]=n,n}));return this.pagePromises[l]=n,n}},{key:"getPageIndex",value:function(t){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:t}).catch((function(t){return Promise.reject(new Error(t))}))}},{key:"getAnnotations",value:function(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(t){return"string"!==typeof t?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var t=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then((function(e){return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:t._fullReader?t._fullReader.filename:null}}))}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var t=this;return this.messageHandler.sendWithPromise("Cleanup",null).then((function(){for(var e=0,l=t.pageCache.length;e1&&void 0!==arguments[1]?arguments[1]:null;if(e)return this._ensureObj(t).capability.promise.then(e),null;var l=this._objs[t];if(!l||!l.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(t,"."));return l.data}},{key:"has",value:function(t){var e=this._objs[t];return!!e&&e.resolved}},{key:"resolve",value:function(t,e){var l=this._ensureObj(t);l.resolved=!0,l.data=e,l.capability.resolve(e)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),t}(),RenderTask=function(){function t(e){_classCallCheck(this,t),this._internalRenderTask=e,this.onContinue=null}return _createClass(t,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),t}(),InternalRenderTask=function(){var t=new WeakSet;return function(){function e(t){var l=t.callback,n=t.params,r=t.objs,i=t.commonObjs,o=t.operatorList,a=t.pageIndex,s=t.canvasFactory,u=t.webGLContext,c=t.useRequestAnimationFrame,h=void 0!==c&&c,d=t.pdfBug,f=void 0!==d&&d;_classCallCheck(this,e),this.callback=l,this.params=n,this.objs=r,this.commonObjs=i,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=a,this.canvasFactory=s,this.webGLContext=u,this._pdfBug=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"undefined"!==typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}return _createClass(e,[{key:"initializeGraphics",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var l=this.params,n=l.canvasContext,r=l.viewport,i=l.transform,o=l.imageLayer,a=l.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,o),this.gfx.beginDrawing({transform:i,viewport:r,transparency:e,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&t.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var t=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){t._nextBound().catch(t.cancel.bind(t))})):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark((function e(){return _regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cancelled){e.next=2;break}return e.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&t.delete(this._canvas),this.callback()));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}()}(),version="2.5.207";exports.version=version;var build="0974d605";exports.build=build},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontLoader=e.FontFaceObject=void 0;var n,r=l(2),i=function(){function t(e){var l=e.docId,n=e.onUnsupportedFeature;_classCallCheck(this,t),this.constructor===t&&(0,r.unreachable)("Cannot initialize BaseFontLoader."),this.docId=l,this._onUnsupportedFeature=n,this.nativeFontFaces=[],this.styleElement=null}return _createClass(t,[{key:"addNativeFontFace",value:function(t){this.nativeFontFaces.push(t),document.fonts.add(t)}},{key:"insertRule",value:function(t){var e=this.styleElement;e||((e=this.styleElement=document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(e));var l=e.sheet;l.insertRule(t,l.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach((function(t){document.fonts.delete(t)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(e){var l,n,i=this;return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.attached&&!e.missingFile){t.next=2;break}return t.abrupt("return");case 2:if(e.attached=!0,!this.isFontLoadingAPISupported){t.next=19;break}if(!(l=e.createNativeFontFace())){t.next=18;break}return this.addNativeFontFace(l),t.prev=7,t.next=10,l.loaded;case 10:t.next=18;break;case 12:throw t.prev=12,t.t0=t.catch(7),this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,r.warn)("Failed to load font '".concat(l.family,"': '").concat(t.t0,"'.")),e.disableFontFace=!0,t.t0;case 18:return t.abrupt("return");case 19:if(!(n=e.createFontFaceRule())){t.next=26;break}if(this.insertRule(n),!this.isSyncFontLoadingSupported){t.next=24;break}return t.abrupt("return");case 24:return t.next=26,new Promise((function(t){var l=i._queueLoadingCallback(t);i._prepareFontLoadEvent([n],[e],l)}));case 26:case"end":return t.stop()}}),t,this,[[7,12]])})));return function(e){return t.apply(this,arguments)}}()},{key:"_queueLoadingCallback",value:function(t){(0,r.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(t,e,l){(0,r.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var t="undefined"!==typeof document&&!!document.fonts;return(0,r.shadow)(this,"isFontLoadingAPISupported",t)}},{key:"isSyncFontLoadingSupported",get:function(){(0,r.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,r.unreachable)("Abstract method `_loadTestFont`.")}}]),t}();e.FontLoader=n,e.FontLoader=n=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){var n;return _classCallCheck(this,l),(n=e.call(this,t)).loadingContext={requests:[],nextRequestId:0},n.loadTestFontId=0,n}return _createClass(l,[{key:"_queueLoadingCallback",value:function(t){var e=this.loadingContext,l={id:"pdfjs-font-loading-".concat(e.nextRequestId++),done:!1,complete:function(){for((0,r.assert)(!l.done,"completeRequest() cannot be called twice."),l.done=!0;e.requests.length>0&&e.requests[0].done;){var t=e.requests.shift();setTimeout(t.callback,0)}},callback:t};return e.requests.push(l),l}},{key:"_prepareFontLoadEvent",value:function(t,e,l){function n(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}function i(t,e,l,n){return t.substring(0,e)+n+t.substring(e+l)}var o,a,s=document.createElement("canvas");s.width=1,s.height=1;var u=s.getContext("2d"),c=0,h="lt".concat(Date.now()).concat(this.loadTestFontId++),d=this._loadTestFont,f=n(d=i(d,976,h.length,h),16);for(o=0,a=h.length-3;o30)return(0,r.warn)("Load test font never loaded."),void l();u.font="30px "+e,u.fillText(".",0,20),u.getImageData(0,0,1,1).data[3]>0?l():setTimeout(t.bind(null,e,l))}(h,(function(){document.body.removeChild(v),l.complete()}))}},{key:"isSyncFontLoadingSupported",get:function(){var t=!1;if("undefined"===typeof navigator)t=!0;else{var e=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);e&&e[1]>=14&&(t=!0)}return(0,r.shadow)(this,"isSyncFontLoadingSupported",t)}},{key:"_loadTestFont",get:function(){return(0,r.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}}]),l}(i);var o=function(){function t(e,l){var n=l.isEvalSupported,r=void 0===n||n,i=l.disableFontFace,o=void 0!==i&&i,a=l.ignoreErrors,s=void 0!==a&&a,u=l.onUnsupportedFeature,c=void 0===u?null:u,h=l.fontRegistry,d=void 0===h?null:h;for(var f in _classCallCheck(this,t),this.compiledGlyphs=Object.create(null),e)this[f]=e[f];this.isEvalSupported=!1!==r,this.disableFontFace=!0===o,this.ignoreErrors=!0===s,this._onUnsupportedFeature=c,this.fontRegistry=d}return _createClass(t,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var t=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),t}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var t=(0,r.bytesToString)(new Uint8Array(this.data)),e="url(data:".concat(this.mimetype,";base64,").concat(btoa(t),");"),l='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(e,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,e),l}},{key:"getPathGenerator",value:function(t,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];var l,n;try{l=t.get(this.loadedName+"_path_"+e)}catch(u){if(!this.ignoreErrors)throw u;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,r.warn)('getPathGenerator - ignoring character: "'.concat(u,'".')),this.compiledGlyphs[e]=function(t,e){}}if(this.isEvalSupported&&r.IsEvalSupportedCached.value){for(var i,o="",a=0,s=l.length;a>2),b=y.length,w=u+7>>3,x=4294967295,_=n.IsLittleEndianCached.value?4278190080:255;for(r=0;rw?u:8*S-7,C=-8&E,k=0,T=0;M>=1}for(;l=h&&(a=u*(o=c)),l=0,i=a;i--;)m[l++]=g[p++],m[l++]=g[p++],m[l++]=g[p++],m[l++]=255;t.putImageData(f,0,16*r)}}}}function l(t,e){for(var l=e.height,n=e.width,r=l%16,i=(l-r)/16,o=0===r?i:i+1,a=t.createImageData(n,16),s=0,u=e.data,c=a.data,h=0;h>=1}t.putImageData(a,0,16*h)}}function s(t,e){for(var l=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],n=0,r=l.length;n>8,t[i-2]=t[i-2]*o+l*a>>8,t[i-1]=t[i-1]*o+n*a>>8}}}function h(t,e,l){for(var n=t.length,r=3;r>8]>>8:e[r]*i>>16}}function f(t,e,l,n){var r=e.canvas,i=e.context;t.setTransform(e.scaleX,0,0,e.scaleY,e.offsetX,e.offsetY);var o=e.backdrop||null;if(!e.transferMap&&n.isEnabled){var a=n.composeSMask({layer:l.canvas,mask:r,properties:{subtype:e.subtype,backdrop:o}});return t.setTransform(1,0,0,1,0,0),void t.drawImage(a,e.offsetX,e.offsetY)}!function(t,e,l,n,r,i,o){var a,s=!!i,u=s?i[0]:0,f=s?i[1]:0,p=s?i[2]:0;a="Luminosity"===r?d:h;for(var g=Math.min(n,Math.ceil(1048576/l)),m=0;m10&&"function"===typeof l,h=c?Date.now()+15:0,d=0,f=this.commonObjs,p=this.objs;;){if(void 0!==r&&a===r.nextBreakPoint)return r.breakIt(a,l),a;if((u=o[a])!==n.OPS.dependency)this[u].apply(this,i[a]);else{var g,m=_createForOfIteratorHelper(i[a]);try{for(m.s();!(g=m.n()).done;){var v=g.value,y=v.startsWith("g_")?f:p;if(!y.has(v))return y.get(v,l),a}}catch(b){m.e(b)}finally{m.f()}}if(++a===s)return a;if(c&&++d>10){if(Date.now()>h)return l(),a;d=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(t){this.current.lineWidth=t,this.ctx.lineWidth=t},setLineCap:function(t){this.ctx.lineCap=p[t]},setLineJoin:function(t){this.ctx.lineJoin=g[t]},setMiterLimit:function(t){this.ctx.miterLimit=t},setDash:function(t,e){var l=this.ctx;void 0!==l.setLineDash&&(l.setLineDash(t),l.lineDashOffset=e)},setRenderingIntent:function(t){},setFlatness:function(t){},setGState:function(t){for(var e=0,l=t.length;e0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=i?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var t=this.current.activeSMask,e=t.canvas.width,l=t.canvas.height,n="smaskGroupAt"+this.groupLevel,r=this.cachedCanvases.getCanvas(n,e,l,!0),i=this.ctx,o=i.mozCurrentTransform;this.ctx.save();var a=r.context;a.scale(1/t.scaleX,1/t.scaleY),a.translate(-t.offsetX,-t.offsetY),a.transform.apply(a,o),t.startTransformInverse=a.mozCurrentTransformInverse,s(i,a),this.ctx=a,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++},suspendSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),f(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),this.ctx.save(),s(t,this.ctx),this.current.resumeSMaskCtx=t;var e=n.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e),t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,t.canvas.width,t.canvas.height),t.restore()},resumeSMaskGroup:function(){var t=this.current.resumeSMaskCtx,e=this.ctx;this.ctx=t,this.groupStack.push(e),this.groupLevel++},endSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),f(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),s(t,this.ctx);var e=n.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e)},save:function(){this.ctx.save();var t=this.current;this.stateStack.push(t),this.current=t.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(t,e,l,n,r,i){this.ctx.transform(t,e,l,n,r,i),this._cachedGetSinglePixelWidth=null},constructPath:function(t,e){for(var l=this.ctx,r=this.current,i=r.x,o=r.y,a=0,s=0,u=t.length;a100&&(u=100),this.current.fontSizeScale=e/u,this.ctx.font="".concat(a," ").concat(o," ").concat(u,"px ").concat(s)}},setTextRenderingMode:function(t){this.current.textRenderingMode=t},setTextRise:function(t){this.current.textRise=t},moveText:function(t,e){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=e},setLeadingMoveText:function(t,e){this.setLeading(-e),this.moveText(t,e)},setTextMatrix:function(t,e,l,n,r,i){this.current.textMatrix=[t,e,l,n,r,i],this.current.textMatrixScale=Math.sqrt(t*t+e*e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(t,e,l,r){var i,o=this.ctx,a=this.current,s=a.font,u=a.textRenderingMode,c=a.fontSize/a.fontSizeScale,h=u&n.TextRenderingMode.FILL_STROKE_MASK,d=!!(u&n.TextRenderingMode.ADD_TO_PATH_FLAG),f=a.patternFill&&!s.missingFile;(s.disableFontFace||d||f)&&(i=s.getPathGenerator(this.commonObjs,t)),s.disableFontFace||f?(o.save(),o.translate(e,l),o.beginPath(),i(o,c),r&&o.setTransform.apply(o,r),h!==n.TextRenderingMode.FILL&&h!==n.TextRenderingMode.FILL_STROKE||o.fill(),h!==n.TextRenderingMode.STROKE&&h!==n.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(h!==n.TextRenderingMode.FILL&&h!==n.TextRenderingMode.FILL_STROKE||o.fillText(t,e,l),h!==n.TextRenderingMode.STROKE&&h!==n.TextRenderingMode.FILL_STROKE||o.strokeText(t,e,l)),d&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:o.mozCurrentTransform,x:e,y:l,fontSize:c,addToPath:i})},get isFontSubpixelAAEnabled(){var t=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;t.scale(1.5,1),t.fillText("I",0,10);for(var e=t.getImageData(0,0,10,10).data,l=!1,r=3;r0&&e[r]<255){l=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",l)},showText:function(t){var e=this.current,l=e.font;if(l.isType3Font)return this.showType3Text(t);var r=e.fontSize;if(0!==r){var i,o=this.ctx,a=e.fontSizeScale,s=e.charSpacing,u=e.wordSpacing,c=e.fontDirection,h=e.textHScale*c,d=t.length,f=l.vertical,p=f?1:-1,g=l.defaultVMetrics,m=r*e.fontMatrix[0],v=e.textRenderingMode===n.TextRenderingMode.FILL&&!l.disableFontFace&&!e.patternFill;if(o.save(),e.patternFill){o.save();var y=e.fillColor.getPattern(o,this);i=o.mozCurrentTransform,o.restore(),o.fillStyle=y}o.transform.apply(o,e.textMatrix),o.translate(e.x,e.y+e.textRise),c>0?o.scale(h,-1):o.scale(h,1);var b=e.lineWidth,w=e.textMatrixScale;if(0===w||0===b){var x=e.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;x!==n.TextRenderingMode.STROKE&&x!==n.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,b=.65*this.getSinglePixelWidth())}else b/=w;1!==a&&(o.scale(a,a),b/=a),o.lineWidth=b;var _,S=0;for(_=0;_0){var j=1e3*o.measureText(L).width/r*a;if(N4096&&(h=u/4096,u=4096),c>4096&&(d=c/4096,c=4096);var f="groupAt"+this.groupLevel;t.smask&&(f+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(f,u,c,!0),g=p.context;g.scale(1/h,1/d),g.translate(-o,-a),g.transform.apply(g,l),t.smask?this.smaskStack.push({canvas:p.canvas,context:g,offsetX:o,offsetY:a,scaleX:h,scaleY:d,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(o,a),e.scale(h,d)),s(e,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++,this.current.activeSMask=null},endGroup:function(t){this.groupLevel--;var e=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,t.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(e.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(t,e,l){if(this.save(),u(this.ctx),this.current=new a,Array.isArray(t)&&4===t.length){var n=t[2]-t[0],r=t[3]-t[1];this.ctx.rect(t[0],t[1],n,r),this.clip(),this.endPath()}this.transform.apply(this,e),this.transform.apply(this,l)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(t){var e=this.ctx,n=t.width,r=t.height,i=this.current.fillColor,o=this.current.patternFill,a=this.processingType3;if(a&&void 0===a.compiled&&(a.compiled=n<=1e3&&r<=1e3?function(t){var e,l,n,r,i=t.width,o=t.height,a=i+1,s=new Uint8Array(a*(o+1)),u=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),c=i+7&-8,h=t.data,d=new Uint8Array(c*o),f=0;for(e=0,r=h.length;e0;)d[f++]=g&p?0:255,p>>=1;var m=0;for(0!==d[f=0]&&(s[0]=1,++m),l=1;l>2)+(d[f+1]?4:0)+(d[f-c+1]?8:0)]&&(s[n+l]=u[v],++m),f++;if(d[f-c]!==d[f]&&(s[n+l]=d[f]?2:4,++m),m>1e3)return null}for(n=e*a,0!==d[f=c*(o-1)]&&(s[n]=8,++m),l=1;l1e3)return null;var y=new Int32Array([0,a,-1,0,-a,0,0,0,1]),b=[];for(e=0;m&&e<=o;e++){for(var w=e*a,x=w+i;w>4,s[w]&=M>>2|M<<2),S.push(w%a),S.push(w/a|0),s[w]||--m}while(E!==w);b.push(S),--e}}return function(t){t.save(),t.scale(1/i,-1/o),t.translate(0,-o),t.beginPath();for(var e=0,l=b.length;e2&&g>1||f>2&&m>1;){var y=g,b=m;c>2&&g>1&&(c/=g/(y=Math.ceil(g/2))),f>2&&m>1&&(f/=m/(b=Math.ceil(m/2))),(p=(o=this.cachedCanvases.getCanvas(v,y,b)).context).clearRect(0,0,y,b),p.drawImage(i,0,0,g,m,0,0,y,b),i=o.canvas,g=y,m=b,v="prescale1"===v?"prescale2":"prescale1"}if(r.drawImage(i,0,0,g,m,0,-n,l,n),this.imageLayer){var w=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:t,left:w[0],top:w[1],width:l/a[0],height:n/a[3]})}this.restore()},paintInlineImageXObjectGroup:function(t,l){var n=this.ctx,r=t.width,i=t.height,o=this.cachedCanvases.getCanvas("inlineImage",r,i);e(o.context,t);for(var a=0,s=l.length;au[n+1]&&(s=l,l=n,n=s,s=i,i=o,o=s),u[n+1]>u[r+1]&&(s=n,n=r,r=s,s=o,o=a,a=s),u[l+1]>u[n+1]&&(s=l,l=n,n=s,s=i,i=o,o=s);var f=(u[l]+e.offsetX)*e.scaleX,p=(u[l+1]+e.offsetY)*e.scaleY,g=(u[n]+e.offsetX)*e.scaleX,m=(u[n+1]+e.offsetY)*e.scaleY,v=(u[r]+e.offsetX)*e.scaleX,y=(u[r+1]+e.offsetY)*e.scaleY;if(!(p>=y))for(var b,w,x,_,S,M,E,C,k=c[i],T=c[i+1],O=c[i+2],A=c[o],D=c[o+1],P=c[o+2],I=c[a],L=c[a+1],R=c[a+2],N=Math.round(p),j=Math.round(y),B=N;B<=j;B++){if(By?1:m===y?0:(m-B)/(m-y)),w=A-(A-I)*z,x=D-(D-L)*z,_=P-(P-R)*z}var U=void 0;S=f-(f-v)*(U=By?1:(p-B)/(p-y)),M=k-(k-I)*U,E=T-(T-L)*U,C=O-(O-R)*U;for(var H=Math.round(Math.min(b,S)),Z=Math.round(Math.max(b,S)),V=d*B+4*H,W=H;W<=Z;W++)(U=(b-W)/(b-S))<0?U=0:U>1&&(U=1),h[V++]=w-(w-M)*U|0,h[V++]=x-(x-E)*U|0,h[V++]=_-(_-C)*U|0,h[V++]=255}}function e(e,l,n){var r,i,o=l.coords,a=l.colors;switch(l.type){case"lattice":var s=l.verticesPerRow,u=Math.floor(o.length/s)-1,c=s-1;for(r=0;r=n?r=n:l=r/t,{scale:l,size:r}},clipBbox:function(t,e,l,n,r,i){if(Array.isArray(e)&&4===e.length){var o=r-l,a=i-n;t.ctx.rect(l,n,o,a),t.clip(),t.endPath()}},setFillAndStrokeStyleToContext:function(l,r,i){var o=l.ctx,a=l.current;switch(r){case t:var s=this.ctx;o.fillStyle=s.fillStyle,o.strokeStyle=s.strokeStyle,a.fillColor=s.fillStyle,a.strokeColor=s.strokeStyle;break;case e:var u=n.Util.makeCssRgb(i[0],i[1],i[2]);o.fillStyle=u,o.strokeStyle=u,a.fillColor=u,a.strokeColor=u;break;default:throw new n.FormatError("Unsupported paint type: ".concat(r))}},getPattern:function(t,e){(t=this.ctx).setTransform.apply(t,this.baseTransform),t.transform.apply(t,this.matrix);var l=this.createPatternCanvas(e);return t.createPattern(l,"repeat")}},l}();e.TilingPattern=a},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalWorkerOptions=void 0;var n=Object.create(null);e.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageHandler=void 0;var n=l(2),r=1,i=2,o=1,a=2,s=3,u=4,c=5,h=6,d=7,f=8;function p(t){if("object"!==typeof t||null===t)return t;switch(t.name){case"AbortException":return new n.AbortException(t.message);case"MissingPDFException":return new n.MissingPDFException(t.message);case"UnexpectedResponseException":return new n.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new n.UnknownErrorException(t.message,t.details);default:return new n.UnknownErrorException(t.message,t.toString())}}var g=function(){function t(e,l,n){var o=this;_classCallCheck(this,t),this.sourceName=e,this.targetName=l,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(t){var e=t.data;if(e.targetName===o.sourceName)if(e.stream)o._processStreamMessage(e);else if(e.callback){var l=e.callbackId,a=o.callbackCapabilities[l];if(!a)throw new Error("Cannot resolve callback ".concat(l));if(delete o.callbackCapabilities[l],e.callback===r)a.resolve(e.data);else{if(e.callback!==i)throw new Error("Unexpected callback case");a.reject(p(e.reason))}}else{var s=o.actionHandler[e.action];if(!s)throw new Error("Unknown action from worker: ".concat(e.action));if(e.callbackId){var u=o.sourceName,c=e.sourceName;new Promise((function(t){t(s(e.data))})).then((function(t){n.postMessage({sourceName:u,targetName:c,callback:r,callbackId:e.callbackId,data:t})}),(function(t){n.postMessage({sourceName:u,targetName:c,callback:i,callbackId:e.callbackId,reason:p(t)})}))}else e.streamId?o._createStreamSink(e):s(e.data)}},n.addEventListener("message",this._onComObjOnMessage)}return _createClass(t,[{key:"on",value:function(t,e){var l=this.actionHandler;if(l[t])throw new Error('There is already an actionName called "'.concat(t,'"'));l[t]=e}},{key:"send",value:function(t,e,l){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},l)}},{key:"sendWithPromise",value:function(t,e,l){var r=this.callbackId++,i=(0,n.createPromiseCapability)();this.callbackCapabilities[r]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:r,data:e},l)}catch(o){i.reject(o)}return i.promise}},{key:"sendWithStream",value:function(t,e,l,r){var i=this,a=this.streamId++,s=this.sourceName,u=this.targetName,c=this.comObj;return new ReadableStream({start:function(l){var o=(0,n.createPromiseCapability)();return i.streamControllers[a]={controller:l,startCall:o,pullCall:null,cancelCall:null,isClosed:!1},i._postMessage({sourceName:s,targetName:u,action:t,streamId:a,data:e,desiredSize:l.desiredSize},r),o.promise},pull:function(t){var e=(0,n.createPromiseCapability)();return i.streamControllers[a].pullCall=e,c.postMessage({sourceName:s,targetName:u,stream:h,streamId:a,desiredSize:t.desiredSize}),e.promise},cancel:function(t){(0,n.assert)(t instanceof Error,"cancel must have a valid reason");var e=(0,n.createPromiseCapability)();return i.streamControllers[a].cancelCall=e,i.streamControllers[a].isClosed=!0,c.postMessage({sourceName:s,targetName:u,stream:o,streamId:a,reason:p(t)}),e.promise}},l)}},{key:"_createStreamSink",value:function(t){var e=this,l=this.actionHandler[t.action],r=t.streamId,i=this.sourceName,o=t.sourceName,a=this.comObj,h={enqueue:function(t){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var s=this.desiredSize;this.desiredSize-=l,s>0&&this.desiredSize<=0&&(this.sinkCapability=(0,n.createPromiseCapability)(),this.ready=this.sinkCapability.promise),e._postMessage({sourceName:i,targetName:o,stream:u,streamId:r,chunk:t},a)}},close:function(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:s,streamId:r}),delete e.streamSinks[r])},error:function(t){(0,n.assert)(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:c,streamId:r,reason:p(t)}))},sinkCapability:(0,n.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};h.sinkCapability.resolve(),h.ready=h.sinkCapability.promise,this.streamSinks[r]=h,new Promise((function(e){e(l(t.data,h))})).then((function(){a.postMessage({sourceName:i,targetName:o,stream:f,streamId:r,success:!0})}),(function(t){a.postMessage({sourceName:i,targetName:o,stream:f,streamId:r,reason:p(t)})}))}},{key:"_processStreamMessage",value:function(t){var e=t.streamId,l=this.sourceName,r=t.sourceName,i=this.comObj;switch(t.stream){case f:t.success?this.streamControllers[e].startCall.resolve():this.streamControllers[e].startCall.reject(p(t.reason));break;case d:t.success?this.streamControllers[e].pullCall.resolve():this.streamControllers[e].pullCall.reject(p(t.reason));break;case h:if(!this.streamSinks[e]){i.postMessage({sourceName:l,targetName:r,stream:d,streamId:e,success:!0});break}this.streamSinks[e].desiredSize<=0&&t.desiredSize>0&&this.streamSinks[e].sinkCapability.resolve(),this.streamSinks[e].desiredSize=t.desiredSize;var g=this.streamSinks[t.streamId].onPull;new Promise((function(t){t(g&&g())})).then((function(){i.postMessage({sourceName:l,targetName:r,stream:d,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:l,targetName:r,stream:d,streamId:e,reason:p(t)})}));break;case u:if((0,n.assert)(this.streamControllers[e],"enqueue should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].controller.enqueue(t.chunk);break;case s:if((0,n.assert)(this.streamControllers[e],"close should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].isClosed=!0,this.streamControllers[e].controller.close(),this._deleteStreamController(e);break;case c:(0,n.assert)(this.streamControllers[e],"error should have stream controller"),this.streamControllers[e].controller.error(p(t.reason)),this._deleteStreamController(e);break;case a:t.success?this.streamControllers[e].cancelCall.resolve():this.streamControllers[e].cancelCall.reject(p(t.reason)),this._deleteStreamController(e);break;case o:if(!this.streamSinks[e])break;var m=this.streamSinks[t.streamId].onCancel;new Promise((function(e){e(m&&m(p(t.reason)))})).then((function(){i.postMessage({sourceName:l,targetName:r,stream:a,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:l,targetName:r,stream:a,streamId:e,reason:p(t)})})),this.streamSinks[e].sinkCapability.reject(p(t.reason)),this.streamSinks[e].isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(e){return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map((function(t){return t&&t.promise})));case 2:delete this.streamControllers[e];case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_postMessage",value:function(t,e){e&&this.postMessageTransfers?this.comObj.postMessage(t,e):this.comObj.postMessage(t)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),t}();e.MessageHandler=g},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var n=l(2),r=l(13),i=function(){function t(e){_classCallCheck(this,t),(0,n.assert)("string"===typeof e,"Metadata: input is not a string"),e=this._repair(e);var l=(new r.SimpleXMLParser).parseFromString(e);this._metadataMap=new Map,l&&this._parse(l)}return _createClass(t,[{key:"_repair",value:function(t){return t.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(t,e){for(var l=e.replace(/\\([0-3])([0-7])([0-7])/g,(function(t,e,l,n){return String.fromCharCode(64*e+8*l+1*n)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(t,e){switch(e){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(e," isn't defined."))})),n="",r=0,i=l.length;r=32&&o<127&&60!==o&&62!==o&&38!==o?String.fromCharCode(o):"&#x"+(65536+o).toString(16).substring(1)+";"}return">"+n}))}},{key:"_parse",value:function(t){var e=t.documentElement;if("rdf:rdf"!==e.nodeName.toLowerCase())for(e=e.firstChild;e&&"rdf:rdf"!==e.nodeName.toLowerCase();)e=e.nextSibling;var l=e?e.nodeName.toLowerCase():null;if(e&&"rdf:rdf"===l&&e.hasChildNodes())for(var n=e.childNodes,r=0,i=n.length;r";case"amp":return"&";case"quot":return'"'}return e.onResolveEntity(l)}))}},{key:"_parseContent",value:function(t,e){var l=[],n=e;function r(){for(;n"!==t[n]&&"/"!==t[n];)++n;var i=t.substring(e,n);for(r();n"!==t[n]&&"/"!==t[n]&&"?"!==t[n];){r();for(var o,a="";n"!==t[l]&&"/"!==t[l];)++l;var n=t.substring(e,l);!function(){for(;l"!==t[l+1]);)++l;return{name:n,value:t.substring(r,l),parsed:l-e}}},{key:"parseXml",value:function(t){for(var e=0;e",l))<0)return void this.onError(u);this.onEndElement(t.substring(l,n)),l=n+1;break;case"?":++l;var c=this._parseProcessingInstruction(t,l);if("?>"!==t.substring(l+c.parsed,l+c.parsed+2))return void this.onError(i);this.onPi(c.name,c.value),l+=c.parsed+2;break;case"!":if("--"===t.substring(l+1,l+3)){if((n=t.indexOf("--\x3e",l+3))<0)return void this.onError(a);this.onComment(t.substring(l+3,n)),l=n+3}else if("[CDATA["===t.substring(l+1,l+8)){if((n=t.indexOf("]]>",l+8))<0)return void this.onError(r);this.onCdata(t.substring(l+8,n)),l=n+3}else{if("DOCTYPE"!==t.substring(l+1,l+8))return void this.onError(s);var h=t.indexOf("[",l+8),d=!1;if((n=t.indexOf(">",l+8))<0)return void this.onError(o);if(h>0&&n>h){if((n=t.indexOf("]>",l+8))<0)return void this.onError(o);d=!0}var f=t.substring(l+8,n+(d?1:0));this.onDoctype(f),l=n+(d?2:1)}break;default:var p=this._parseContent(t,l);if(null===p)return void this.onError(s);var g=!1;if("/>"===t.substring(l+p.parsed,l+p.parsed+2))g=!0;else if(">"!==t.substring(l+p.parsed,l+p.parsed+1))return void this.onError(u);this.onBeginElement(p.name,p.attributes,g),l+=p.parsed+(g?2:1)}}else{for(;l0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var t=this.parentNode.childNodes;if(t){var e=t.indexOf(this);if(-1!==e)return t[e+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(t){return t.textContent})).join(""):this.nodeValue||""}}]),t}(),f=function(t){_inherits(l,t);var e=_createSuper(l);function l(){var t;return _classCallCheck(this,l),(t=e.call(this))._currentFragment=null,t._stack=null,t._errorCode=n,t}return _createClass(l,[{key:"parseFromString",value:function(t){if(this._currentFragment=[],this._stack=[],this._errorCode=n,this.parseXml(t),this._errorCode===n){var e=_slicedToArray(this._currentFragment,1)[0];if(e)return{documentElement:e}}}},{key:"onResolveEntity",value:function(t){switch(t){case"apos":return"'"}return _get(_getPrototypeOf(l.prototype),"onResolveEntity",this).call(this,t)}},{key:"onText",value:function(t){if(!function(t){for(var e=0,l=t.length;e0){var o=new Uint8Array(i).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=l,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(t,e){r._onReceiveData({begin:t,chunk:e})})),this._pdfDataRangeTransport.addProgressListener((function(t,e){r._onProgress({loaded:t,total:e})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(t){r._onReceiveData({chunk:t})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){r._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return _createClass(t,[{key:"_onReceiveData",value:function(t){var e=new Uint8Array(t.chunk).buffer;if(void 0===t.begin)this._fullRequestReader?this._fullRequestReader._enqueue(e):this._queuedChunks.push(e);else{var l=this._rangeReaders.some((function(l){return l._begin===t.begin&&(l._enqueue(e),!0)}));(0,n.assert)(l,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(t){if(void 0===t.total){var e=this._rangeReaders[0];e&&e.onProgress&&e.onProgress({loaded:t.loaded})}else{var l=this._fullRequestReader;l&&l.onProgress&&l.onProgress({loaded:t.loaded,total:t.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(t){var e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}},{key:"getFullReader",value:function(){(0,n.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var t=this._queuedChunks;return this._queuedChunks=null,new i(this,t,this._progressiveDone)}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var l=new o(this,t,e);return this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(l),l}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeReaders.slice(0).forEach((function(e){e.cancel(t)})),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFDataTransportStream=r;var i=function(){function t(e,l){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this._stream=e,this._done=n||!1,this._filename=null,this._queuedChunks=l||[],this._loaded=0;var r,i=_createForOfIteratorHelper(this._queuedChunks);try{for(i.s();!(r=i.n()).done;){var o=r.value;this._loaded+=o.byteLength}}catch(a){i.e(a)}finally{i.f()}this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}return _createClass(t,[{key:"_enqueue",value:function(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}},{key:"read",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(){var e,l;return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this._queuedChunks.length>0)){t.next=3;break}return e=this._queuedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 3:if(!this._done){t.next=5;break}return t.abrupt("return",{value:void 0,done:!0});case 5:return l=(0,n.createPromiseCapability)(),this._requests.push(l),t.abrupt("return",l.promise);case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),t}(),o=function(){function t(e,l,n){_classCallCheck(this,t),this._stream=e,this._begin=l,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return _createClass(t,[{key:"_enqueue",value:function(t){this._done||(0===this._requests.length?this._queuedChunk=t:(this._requests.shift().resolve({value:t,done:!1}),this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}},{key:"read",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(){var e,l;return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return l=(0,n.createPromiseCapability)(),this._requests.push(l),t.abrupt("return",l.promise);case 9:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebGLContext=void 0;var n=l(2),r=function(){function t(e){var l=e.enable,n=void 0!==l&&l;_classCallCheck(this,t),this._enabled=!0===n}return _createClass(t,[{key:"composeSMask",value:function(t){var e=t.layer,l=t.mask,n=t.properties;return i.composeSMask(e,l,n)}},{key:"drawFigures",value:function(t){var e=t.width,l=t.height,n=t.backgroundColor,r=t.figures,o=t.context;return i.drawFigures(e,l,n,r,o)}},{key:"clear",value:function(){i.cleanup()}},{key:"isEnabled",get:function(){var t=this._enabled;return t&&(t=i.tryInitGL()),(0,n.shadow)(this,"isEnabled",t)}}]),t}();e.WebGLContext=r;var i=function(){function t(t,e,l){var n=t.createShader(l);if(t.shaderSource(n,e),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS)){var r=t.getShaderInfoLog(n);throw new Error("Error during shader compilation: "+r)}return n}function e(e,l){return t(e,l,e.VERTEX_SHADER)}function l(e,l){return t(e,l,e.FRAGMENT_SHADER)}function n(t,e){for(var l=t.createProgram(),n=0,r=e.length;n 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ")]);r.useProgram(u);var c={};c.gl=r,c.canvas=t,c.resolutionLocation=r.getUniformLocation(u,"u_resolution"),c.positionLocation=r.getAttribLocation(u,"a_position"),c.backdropLocation=r.getUniformLocation(u,"u_backdrop"),c.subtypeLocation=r.getUniformLocation(u,"u_subtype");var h=r.getAttribLocation(u,"a_texCoord"),d=r.getUniformLocation(u,"u_image"),f=r.getUniformLocation(u,"u_mask"),p=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,p),r.bufferData(r.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),r.STATIC_DRAW),r.enableVertexAttribArray(h),r.vertexAttribPointer(h,2,r.FLOAT,!1,0,0),r.uniform1i(d,0),r.uniform1i(f,1),s=c}();var f=s,p=f.canvas,g=f.gl;p.width=h,p.height=d,g.viewport(0,0,g.drawingBufferWidth,g.drawingBufferHeight),g.uniform2f(f.resolutionLocation,h,d),c.backdrop?g.uniform4f(f.resolutionLocation,c.backdrop[0],c.backdrop[1],c.backdrop[2],1):g.uniform4f(f.resolutionLocation,0,0,0,0),g.uniform1i(f.subtypeLocation,"Luminosity"===c.subtype?1:0);var m=r(g,t,g.TEXTURE0),v=r(g,u,g.TEXTURE1),y=g.createBuffer();return g.bindBuffer(g.ARRAY_BUFFER,y),g.bufferData(g.ARRAY_BUFFER,new Float32Array([0,0,h,0,0,d,0,d,h,0,h,d]),g.STATIC_DRAW),g.enableVertexAttribArray(f.positionLocation),g.vertexAttribPointer(f.positionLocation,2,g.FLOAT,!1,0,0),g.clearColor(0,0,0,0),g.enable(g.BLEND),g.blendFunc(g.ONE,g.ONE_MINUS_SRC_ALPHA),g.clear(g.COLOR_BUFFER_BIT),g.drawArrays(g.TRIANGLES,0,6),g.flush(),g.deleteTexture(m),g.deleteTexture(v),g.deleteBuffer(y),p},drawFigures:function(t,r,s,c,h){u||function(){var t,r;a(),t=o,o=null,r=i,i=null;var s=n(r,[e(r," attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } "),l(r," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ")]);r.useProgram(s);var c={};c.gl=r,c.canvas=t,c.resolutionLocation=r.getUniformLocation(s,"u_resolution"),c.scaleLocation=r.getUniformLocation(s,"u_scale"),c.offsetLocation=r.getUniformLocation(s,"u_offset"),c.positionLocation=r.getAttribLocation(s,"a_position"),c.colorLocation=r.getAttribLocation(s,"a_color"),u=c}();var d=u,f=d.canvas,p=d.gl;f.width=t,f.height=r,p.viewport(0,0,p.drawingBufferWidth,p.drawingBufferHeight),p.uniform2f(d.resolutionLocation,t,r);var g,m,v,y=0;for(g=0,m=c.length;g1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.isRenderable=l,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderInteractiveForms=e.renderInteractiveForms,this.svgFactory=e.svgFactory,l&&(this.container=this._createContainer(n))}return _createClass(t,[{key:"_createContainer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.data,l=this.page,n=this.viewport,i=document.createElement("section"),o=e.rect[2]-e.rect[0],a=e.rect[3]-e.rect[1];i.setAttribute("data-annotation-id",e.id);var s=r.Util.normalizeRect([e.rect[0],l.view[3]-e.rect[1]+l.view[1],e.rect[2],l.view[3]-e.rect[3]+l.view[1]]);if(i.style.transform="matrix(".concat(n.transform.join(","),")"),i.style.transformOrigin="-".concat(s[0],"px -").concat(s[1],"px"),!t&&e.borderStyle.width>0){i.style.borderWidth="".concat(e.borderStyle.width,"px"),e.borderStyle.style!==r.AnnotationBorderStyleType.UNDERLINE&&(o-=2*e.borderStyle.width,a-=2*e.borderStyle.width);var u=e.borderStyle.horizontalCornerRadius,c=e.borderStyle.verticalCornerRadius;if(u>0||c>0){var h="".concat(u,"px / ").concat(c,"px");i.style.borderRadius=h}switch(e.borderStyle.style){case r.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case r.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case r.AnnotationBorderStyleType.BEVELED:(0,r.warn)("Unimplemented border style: beveled");break;case r.AnnotationBorderStyleType.INSET:(0,r.warn)("Unimplemented border style: inset");break;case r.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid"}e.color?i.style.borderColor=r.Util.makeCssRgb(0|e.color[0],0|e.color[1],0|e.color[2]):i.style.borderWidth=0}return i.style.left="".concat(s[0],"px"),i.style.top="".concat(s[1],"px"),i.style.width="".concat(o,"px"),i.style.height="".concat(a,"px"),i}},{key:"_createPopup",value:function(t,e,l){e||((e=document.createElement("div")).style.height=t.style.height,e.style.width=t.style.width,t.appendChild(e));var n=new m({container:t,trigger:e,color:l.color,title:l.title,modificationDate:l.modificationDate,contents:l.contents,hideWrapper:!0}).render();n.style.left=t.style.width,t.appendChild(n)}},{key:"render",value:function(){(0,r.unreachable)("Abstract method `AnnotationElement.render` called")}}]),t}(),a=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.url||t.data.dest||t.data.action);return e.call(this,t,n)}return _createClass(l,[{key:"render",value:function(){this.container.className="linkAnnotation";var t=this.data,e=this.linkService,l=document.createElement("a");return t.url?(0,n.addLinkAttributes)(l,{url:t.url,target:t.newWindow?n.LinkTarget.BLANK:e.externalLinkTarget,rel:e.externalLinkRel,enabled:e.externalLinkEnabled}):t.action?this._bindNamedAction(l,t.action):this._bindLink(l,t.dest),this.container.appendChild(l),this.container}},{key:"_bindLink",value:function(t,e){var l=this;t.href=this.linkService.getDestinationHash(e),t.onclick=function(){return e&&l.linkService.navigateTo(e),!1},e&&(t.className="internalLink")}},{key:"_bindNamedAction",value:function(t,e){var l=this;t.href=this.linkService.getAnchorUrl(""),t.onclick=function(){return l.linkService.executeNamedAction(e),!1},t.className="internalLink"}}]),l}(o),s=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,n)}return _createClass(l,[{key:"render",value:function(){this.container.className="textAnnotation";var t=document.createElement("img");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.alt="[{{type}} Annotation]",t.dataset.l10nId="text_annotation_type",t.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}}]),l}(o),u=function(t){_inherits(l,t);var e=_createSuper(l);function l(){return _classCallCheck(this,l),e.apply(this,arguments)}return _createClass(l,[{key:"render",value:function(){return this.container}}]),l}(o),c=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=t.renderInteractiveForms||!t.data.hasAppearance&&!!t.data.fieldValue;return e.call(this,t,n)}return _createClass(l,[{key:"render",value:function(){this.container.className="textWidgetAnnotation";var t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement("textarea")).textContent=this.data.fieldValue:((t=document.createElement("input")).type="text",t.setAttribute("value",this.data.fieldValue)),t.disabled=this.data.readOnly,t.name=this.data.fieldName,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){var e=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;t.classList.add("comb"),t.style.letterSpacing="calc(".concat(e,"px - 1ch)")}}else{(t=document.createElement("div")).textContent=this.data.fieldValue,t.style.verticalAlign="middle",t.style.display="table-cell";var l=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(l=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(t,l)}return null!==this.data.textAlignment&&(t.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(t),this.container}},{key:"_setTextStyle",value:function(t,e){var l=t.style;if(l.fontSize="".concat(this.data.fontSize,"px"),l.direction=this.data.fontDirection<0?"rtl":"ltr",e){var n="normal";e.black?n="900":e.bold&&(n="bold"),l.fontWeight=n,l.fontStyle=e.italic?"italic":"normal";var r=e.loadedName?'"'.concat(e.loadedName,'", '):"",i=e.fallbackName||"Helvetica, sans-serif";l.fontFamily=r+i}}}]),l}(u),h=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){return _classCallCheck(this,l),e.call(this,t,t.renderInteractiveForms)}return _createClass(l,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="checkbox",t.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}]),l}(u),d=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){return _classCallCheck(this,l),e.call(this,t,t.renderInteractiveForms)}return _createClass(l,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="radio",t.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}]),l}(u),f=function(t){_inherits(l,t);var e=_createSuper(l);function l(){return _classCallCheck(this,l),e.apply(this,arguments)}return _createClass(l,[{key:"render",value:function(){var t=_get(_getPrototypeOf(l.prototype),"render",this).call(this);return t.className="buttonWidgetAnnotation pushButton",t}}]),l}(a),p=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){return _classCallCheck(this,l),e.call(this,t,t.renderInteractiveForms)}return _createClass(l,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var t=document.createElement("select");t.disabled=this.data.readOnly,t.name=this.data.fieldName,this.data.combo||(t.size=this.data.options.length,this.data.multiSelect&&(t.multiple=!0));var e,l=_createForOfIteratorHelper(this.data.options);try{for(l.s();!(e=l.n()).done;){var n=e.value,r=document.createElement("option");r.textContent=n.displayValue,r.value=n.exportValue,this.data.fieldValue.includes(n.displayValue)&&r.setAttribute("selected",!0),t.appendChild(r)}}catch(i){l.e(i)}finally{l.f()}return this.container.appendChild(t),this.container}}]),l}(u),g=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!(!t.data.title&&!t.data.contents);return e.call(this,t,n)}return _createClass(l,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var t='[data-annotation-id="'.concat(this.data.parentId,'"]'),e=this.layer.querySelector(t);if(!e)return this.container;var l=new m({container:this.container,trigger:e,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),n=parseFloat(e.style.left),r=parseFloat(e.style.width);return this.container.style.transformOrigin="-".concat(n+r,"px -").concat(e.style.top),this.container.style.left="".concat(n+r,"px"),this.container.appendChild(l.render()),this.container}}]),l}(o),m=function(){function t(e){_classCallCheck(this,t),this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.modificationDate=e.modificationDate,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}return _createClass(t,[{key:"render",value:function(){var t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var e=document.createElement("div");e.className="popup";var l=this.color;if(l){var i=.7*(255-l[0])+l[0],o=.7*(255-l[1])+l[1],a=.7*(255-l[2])+l[2];e.style.backgroundColor=r.Util.makeCssRgb(0|i,0|o,0|a)}var s=document.createElement("h1");s.textContent=this.title,e.appendChild(s);var u=n.PDFDateString.toDateObject(this.modificationDate);if(u){var c=document.createElement("span");c.textContent="{{date}}, {{time}}",c.dataset.l10nId="annotation_date_string",c.dataset.l10nArgs=JSON.stringify({date:u.toLocaleDateString(),time:u.toLocaleTimeString()}),e.appendChild(c)}var h=this._formatContents(this.contents);return e.appendChild(h),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),e.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(e),t}},{key:"_formatContents",value:function(t){for(var e=document.createElement("p"),l=t.split(/(?:\r\n?|\n)/),n=0,r=l.length;n0&&void 0!==arguments[0]&&arguments[0];t&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),t}(),v=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,n,!0)}return _createClass(l,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),l}(o),y=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,n,!0)}return _createClass(l,[{key:"render",value:function(){this.container.className="lineAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],l=t.rect[3]-t.rect[1],n=this.svgFactory.create(e,l),r=this.svgFactory.createElement("svg:line");return r.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),r.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),r.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),r.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),r.setAttribute("stroke-width",t.borderStyle.width||1),r.setAttribute("stroke","transparent"),n.appendChild(r),this.container.append(n),this._createPopup(this.container,r,t),this.container}}]),l}(o),b=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,n,!0)}return _createClass(l,[{key:"render",value:function(){this.container.className="squareAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],l=t.rect[3]-t.rect[1],n=this.svgFactory.create(e,l),r=t.borderStyle.width,i=this.svgFactory.createElement("svg:rect");return i.setAttribute("x",r/2),i.setAttribute("y",r/2),i.setAttribute("width",e-r),i.setAttribute("height",l-r),i.setAttribute("stroke-width",r||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,t),this.container}}]),l}(o),w=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,n,!0)}return _createClass(l,[{key:"render",value:function(){this.container.className="circleAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],l=t.rect[3]-t.rect[1],n=this.svgFactory.create(e,l),r=t.borderStyle.width,i=this.svgFactory.createElement("svg:ellipse");return i.setAttribute("cx",e/2),i.setAttribute("cy",l/2),i.setAttribute("rx",e/2-r/2),i.setAttribute("ry",l/2-r/2),i.setAttribute("stroke-width",r||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,t),this.container}}]),l}(o),x=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){var n;_classCallCheck(this,l);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return(n=e.call(this,t,r,!0)).containerClassName="polylineAnnotation",n.svgElementName="svg:polyline",n}return _createClass(l,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,l=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(l,n),i=[],o=_createForOfIteratorHelper(e.vertices);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.x-e.rect[0],u=e.rect[3]-a.y;i.push(s+","+u)}}catch(h){o.e(h)}finally{o.f()}i=i.join(" ");var c=this.svgFactory.createElement(this.svgElementName);return c.setAttribute("points",i),c.setAttribute("stroke-width",e.borderStyle.width||1),c.setAttribute("stroke","transparent"),c.setAttribute("fill","none"),r.appendChild(c),this.container.append(r),this._createPopup(this.container,c,e),this.container}}]),l}(o),_=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){var n;return _classCallCheck(this,l),(n=e.call(this,t)).containerClassName="polygonAnnotation",n.svgElementName="svg:polygon",n}return l}(x),S=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,n,!0)}return _createClass(l,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),l}(o),M=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){var n;_classCallCheck(this,l);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return(n=e.call(this,t,r,!0)).containerClassName="inkAnnotation",n.svgElementName="svg:polyline",n}return _createClass(l,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,l=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(l,n),i=_createForOfIteratorHelper(e.inkLists);try{for(i.s();!(t=i.n()).done;){var o,a=t.value,s=[],u=_createForOfIteratorHelper(a);try{for(u.s();!(o=u.n()).done;){var c=o.value,h=c.x-e.rect[0],d=e.rect[3]-c.y;s.push("".concat(h,",").concat(d))}}catch(p){u.e(p)}finally{u.f()}s=s.join(" ");var f=this.svgFactory.createElement(this.svgElementName);f.setAttribute("points",s),f.setAttribute("stroke-width",e.borderStyle.width||1),f.setAttribute("stroke","transparent"),f.setAttribute("fill","none"),this._createPopup(this.container,f,e),r.appendChild(f)}}catch(p){i.e(p)}finally{i.f()}return this.container.append(r),this.container}}]),l}(o),E=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,n,!0)}return _createClass(l,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),l}(o),C=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,n,!0)}return _createClass(l,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),l}(o),k=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,n,!0)}return _createClass(l,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),l}(o),T=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,n,!0)}return _createClass(l,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),l}(o),O=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){_classCallCheck(this,l);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,n,!0)}return _createClass(l,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),l}(o),A=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){var i;_classCallCheck(this,l);var o=(i=e.call(this,t,!0)).data.file,a=o.filename,s=o.content;return i.filename=(0,n.getFilenameFromUrl)(a),i.content=s,i.linkService.eventBus&&i.linkService.eventBus.dispatch("fileattachmentannotation",{source:_assertThisInitialized(i),id:(0,r.stringToPDFString)(a),filename:a,content:s}),i}return _createClass(l,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var t=document.createElement("div");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,r.warn)("Download cannot be started due to unavailable download manager")}}]),l}(o),D=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"render",value:function(t){var e,l=[],o=[],a=_createForOfIteratorHelper(t.annotations);try{for(a.s();!(e=a.n()).done;){var s=e.value;s&&(s.annotationType!==r.AnnotationType.POPUP?l.push(s):o.push(s))}}catch(f){a.e(f)}finally{a.f()}o.length&&l.push.apply(l,o);for(var u=0,c=l;u1)g=!0;else if(l.transform[0]!==l.transform[3]){var m=Math.abs(l.transform[0]),v=Math.abs(l.transform[3]);m!==v&&Math.max(m,v)/Math.min(m,v)>1.5&&(g=!0)}if(g&&(c.vertical?a.canvasWidth=l.height*e._viewport.scale:a.canvasWidth=l.width*e._viewport.scale),e._textDivProperties.set(o,a),e._textContentStream&&e._layoutText(o),e._enhanceTextSelection){var y=1,b=0;0!==u&&(y=Math.cos(u),b=Math.sin(u));var w,x,_=(c.vertical?l.height:l.width)*e._viewport.scale,S=f;0!==u?(w=[y,b,-b,y,h,d],x=n.Util.getAxialAlignedBoundingBox([0,0,_,S],w)):x=[h,d,h+_,d+S],e._bounds.push({left:x[0],top:x[1],right:x[2],bottom:x[3],div:o,size:[_,S],m:w})}}function l(t){if(!t._canceled){var e=t._textDivs,l=t._capability,n=e.length;if(n>1e5)return t._renderingDone=!0,void l.resolve();if(!t._textContentStream)for(var r=0;r0&&(n=n?Math.min(i,n):i)}return n}function i(t){for(var e=t._bounds,l=t._viewport,i=function(t,e,l){var n=l.map((function(t,e){return{x1:t.left,y1:t.top,x2:t.right,y2:t.bottom,index:e,x1New:void 0,x2New:void 0}}));o(t,n);var r=new Array(l.length);return n.forEach((function(t){var e=t.index;r[e]={left:t.x1New,top:0,right:t.x2New,bottom:0}})),l.map((function(e,l){var i=r[l],o=n[l];o.x1=e.top,o.y1=t-i.right,o.x2=e.bottom,o.y2=t-i.left,o.index=l,o.x1New=void 0,o.x2New=void 0})),o(e,n),n.forEach((function(t){var e=t.index;r[e].top=t.x1New,r[e].bottom=t.x2New})),r}(l.width,l.height,e),a=0;a=0&&l[i].start>=t.y2;)i--;var o,a,s=-1/0;for(o=e;o<=i;o++){var u;(u=(r=(n=l[o]).boundary).x2>t.x1?r.index>t.index?r.x1New:t.x1:void 0===r.x2New?(r.x2+t.x1)/2:r.x2New)>s&&(s=u)}for(t.x1New=s,o=e;o<=i;o++)void 0===(r=(n=l[o]).boundary).x2New?r.x2>t.x1?r.index>t.index&&(r.x2New=r.x2):r.x2New=s:r.x2New>s&&(r.x2New=Math.max(s,r.x2));var c=[],h=null;for(o=e;o<=i;o++){var d=(r=(n=l[o]).boundary).x2>t.x2?r:t;h===d?c[c.length-1].end=n.end:(c.push({start:n.start,end:n.end,boundary:d}),h=d)}for(l[e].start=0&&l[a].start>=r.y1;a--)f=l[a].boundary===r;for(a=i+1;!f&&a0&&(e.scale=e.canvasWidth/o,l="scaleX(".concat(e.scale,")"))}0!==e.angle&&(l="rotate(".concat(e.angle,"deg) ").concat(l)),l.length>0&&(this._enhanceTextSelection&&(e.originalTransform=l),t.style.transform=l),this._textDivProperties.set(t,e),this._container.appendChild(t)}},_render:function(t){var e=this,r=(0,n.createPromiseCapability)(),i=Object.create(null),o=document.createElement("canvas");if(o.mozOpaque=!0,this._layoutTextCtx=o.getContext("2d",{alpha:!1}),this._textContent){var a=this._textContent.items,s=this._textContent.styles;this._processItems(a,s),r.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function t(){e._reader.read().then((function(l){var n=l.value;l.done?r.resolve():(Object.assign(i,n.styles),e._processItems(n.items,i),t())}),r.reject)}()}r.promise.then((function(){i=null,t?e._renderTimer=setTimeout((function(){l(e),e._renderTimer=null}),t):l(e)}),this._capability.reject)},expandTextDivs:function(t){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(i(this),this._bounds=null);for(var e=[],l=[],n=0,r=this._textDivs.length;n0?(l.push("".concat(a.paddingTop,"px")),e.push("translateY(".concat(-a.paddingTop,"px)"))):l.push(0),a.paddingRight>0?l.push("".concat(a.paddingRight/a.scale,"px")):l.push(0),a.paddingBottom>0?l.push("".concat(a.paddingBottom,"px")):l.push(0),a.paddingLeft>0?(l.push("".concat(a.paddingLeft/a.scale,"px")),e.push("translateX(".concat(-a.paddingLeft/a.scale,"px)"))):l.push(0),o.style.padding=l.join(" "),e.length&&(o.style.transform=e.join(" "))):(o.style.padding=null,o.style.transform=a.originalTransform))}}}},function(t){var e=new a({textContent:t.textContent,textContentStream:t.textContentStream,container:t.container,viewport:t.viewport,textDivs:t.textDivs,textContentItemsStr:t.textContentItemsStr,enhanceTextSelection:t.enhanceTextSelection});return e._render(t.timeout),e}}();e.renderTextLayer=r},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SVGGraphics=void 0;var n=l(2),r=l(1),i=l(4),o=function(){throw new Error("Not implemented: SVGGraphics")};e.SVGGraphics=o;{var a={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},s=["butt","round","square"],u=["miter","round","bevel"],c=function(){for(var t=new Uint8Array([137,80,78,71,13,10,26,10]),e=new Int32Array(256),l=0;l<256;l++){for(var r=l,o=0;o<8;o++)r=1&r?3988292384^r>>1&2147483647:r>>1&2147483647;e[l]=r}function a(t,l,n,r){var i=r,o=l.length;n[i]=o>>24&255,n[i+1]=o>>16&255,n[i+2]=o>>8&255,n[i+3]=255&o,n[i+=4]=255&t.charCodeAt(0),n[i+1]=255&t.charCodeAt(1),n[i+2]=255&t.charCodeAt(2),n[i+3]=255&t.charCodeAt(3),i+=4,n.set(l,i);var a=function(t,l,n){for(var r=-1,i=l;i>>8^e[o]}return-1^r}(n,r+4,i+=l.length);n[i]=a>>24&255,n[i+1]=a>>16&255,n[i+2]=a>>8&255,n[i+3]=255&a}function s(t){var e=t.length,l=Math.ceil(e/65535),n=new Uint8Array(2+e+5*l+4),r=0;n[r++]=120,n[r++]=156;for(var i=0;e>65535;)n[r++]=0,n[r++]=255,n[r++]=255,n[r++]=0,n[r++]=0,n.set(t.subarray(i,i+65535),r),r+=65535,i+=65535,e-=65535;n[r++]=1,n[r++]=255&e,n[r++]=e>>8&255,n[r++]=255&~e,n[r++]=(65535&~e)>>8&255,n.set(t.subarray(i),r),r+=t.length-i;var o=function(t,e,l){for(var n=1,r=0,i=e;i>24&255,n[r++]=o>>16&255,n[r++]=o>>8&255,n[r++]=255&o,n}function u(e,l,r,o){var u,c,h,d=e.width,f=e.height,p=e.data;switch(l){case n.ImageKind.GRAYSCALE_1BPP:c=0,u=1,h=d+7>>3;break;case n.ImageKind.RGB_24BPP:c=2,u=8,h=3*d;break;case n.ImageKind.RGBA_32BPP:c=6,u=8,h=4*d;break;default:throw new Error("invalid format")}for(var g=new Uint8Array((1+h)*f),m=0,v=0,y=0;y>24&255,d>>16&255,d>>8&255,255&d,f>>24&255,f>>16&255,f>>8&255,255&f,u,c,0,0,0]),_=function(t){if(!i.isNodeJS)return s(t);try{var e;e=parseInt(process.versions.node)>=8?t:Buffer.from(t);var l=__webpack_require__(1714).deflateSync(e,{level:9});return l instanceof Uint8Array?l:new Uint8Array(l)}catch(r){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+r)}return s(t)}(g),S=t.length+36+x.length+_.length,M=new Uint8Array(S),E=0;return M.set(t,E),a("IHDR",x,M,E+=t.length),a("IDATA",_,M,E+=12+x.length),E+=12+_.length,a("IEND",new Uint8Array(0),M,E),(0,n.createObjectURL)(M,"image/png",r)}return function(t,e,l){return u(t,void 0===t.kind?n.ImageKind.GRAYSCALE_1BPP:t.kind,e,l)}}(),h=function(){function t(){_classCallCheck(this,t),this.fontSizeScale=1,this.fontWeight=a.fontWeight,this.fontSize=0,this.textMatrix=n.IDENTITY_MATRIX,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=n.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=a.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return _createClass(t,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(t,e){this.x=t,this.y=e}}]),t}();function d(t){if(Number.isInteger(t))return t.toString();var e=t.toFixed(10),l=e.length-1;if("0"!==e[l])return e;do{l--}while("0"===e[l]);return e.substring(0,"."===e[l]?l:l+1)}function f(t){if(0===t[4]&&0===t[5]){if(0===t[1]&&0===t[2])return 1===t[0]&&1===t[3]?"":"scale(".concat(d(t[0])," ").concat(d(t[3]),")");if(t[0]===t[3]&&t[1]===-t[2]){var e=180*Math.acos(t[0])/Math.PI;return"rotate(".concat(d(e),")")}}else if(1===t[0]&&0===t[1]&&0===t[2]&&1===t[3])return"translate(".concat(d(t[4])," ").concat(d(t[5]),")");return"matrix(".concat(d(t[0])," ").concat(d(t[1])," ").concat(d(t[2])," ").concat(d(t[3])," ").concat(d(t[4])," ")+"".concat(d(t[5]),")")}var p=0,g=0,m=0;e.SVGGraphics=o=function(){function t(e,l){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var o in _classCallCheck(this,t),this.svgFactory=new r.DOMSVGFactory,this.current=new h,this.transformMatrix=n.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=l,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!i,this._operatorIdMapping=[],n.OPS)this._operatorIdMapping[n.OPS[o]]=o}return _createClass(t,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var t=this.current;this.extraStack.push(t),this.current=t.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(t){this.save(),this.executeOpTree(t),this.restore()}},{key:"loadDependencies",value:function(t){for(var e=this,l=t.fnArray,r=t.argsArray,i=0,o=l.length;i0&&(this.current.lineWidth=t)}},{key:"setLineCap",value:function(t){this.current.lineCap=s[t]}},{key:"setLineJoin",value:function(t){this.current.lineJoin=u[t]}},{key:"setMiterLimit",value:function(t){this.current.miterLimit=t}},{key:"setStrokeAlpha",value:function(t){this.current.strokeAlpha=t}},{key:"setStrokeRGBColor",value:function(t,e,l){this.current.strokeColor=n.Util.makeCssRgb(t,e,l)}},{key:"setFillAlpha",value:function(t){this.current.fillAlpha=t}},{key:"setFillRGBColor",value:function(t,e,l){this.current.fillColor=n.Util.makeCssRgb(t,e,l),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(t){this.current.strokeColor=this._makeColorN_Pattern(t)}},{key:"setFillColorN",value:function(t){this.current.fillColor=this._makeColorN_Pattern(t)}},{key:"shadingFill",value:function(t){var e=this.viewport.width,l=this.viewport.height,r=n.Util.inverseTransform(this.transformMatrix),i=n.Util.applyTransform([0,0],r),o=n.Util.applyTransform([0,l],r),a=n.Util.applyTransform([e,0],r),s=n.Util.applyTransform([e,l],r),u=Math.min(i[0],o[0],a[0],s[0]),c=Math.min(i[1],o[1],a[1],s[1]),h=Math.max(i[0],o[0],a[0],s[0]),d=Math.max(i[1],o[1],a[1],s[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",u),f.setAttributeNS(null,"y",c),f.setAttributeNS(null,"width",h-u),f.setAttributeNS(null,"height",d-c),f.setAttributeNS(null,"fill",this._makeShadingPattern(t)),this.current.fillAlpha<1&&f.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(f)}},{key:"_makeColorN_Pattern",value:function(t){return"TilingPattern"===t[0]?this._makeTilingPattern(t):this._makeShadingPattern(t)}},{key:"_makeTilingPattern",value:function(t){var e=t[1],l=t[2],r=t[3]||n.IDENTITY_MATRIX,i=_slicedToArray(t[4],4),o=i[0],a=i[1],s=i[2],u=i[3],c=t[5],h=t[6],d=t[7],f="shading".concat(m++),p=n.Util.applyTransform([o,a],r),g=_slicedToArray(p,2),v=g[0],y=g[1],b=n.Util.applyTransform([s,u],r),w=_slicedToArray(b,2),x=w[0],_=w[1],S=n.Util.singularValueDecompose2dScale(r),M=_slicedToArray(S,2),E=c*M[0],C=h*M[1],k=this.svgFactory.createElement("svg:pattern");k.setAttributeNS(null,"id",f),k.setAttributeNS(null,"patternUnits","userSpaceOnUse"),k.setAttributeNS(null,"width",E),k.setAttributeNS(null,"height",C),k.setAttributeNS(null,"x","".concat(v)),k.setAttributeNS(null,"y","".concat(y));var T=this.svg,O=this.transformMatrix,A=this.current.fillColor,D=this.current.strokeColor,P=this.svgFactory.create(x-v,_-y);if(this.svg=P,this.transformMatrix=r,2===d){var I,L=(I=n.Util).makeCssRgb.apply(I,_toConsumableArray(e));this.current.fillColor=L,this.current.strokeColor=L}return this.executeOpTree(this.convertOpList(l)),this.svg=T,this.transformMatrix=O,this.current.fillColor=A,this.current.strokeColor=D,k.appendChild(P.childNodes[0]),this.defs.appendChild(k),"url(#".concat(f,")")}},{key:"_makeShadingPattern",value:function(t){switch(t[0]){case"RadialAxial":var e,l="shading".concat(m++),r=t[3];switch(t[1]){case"axial":var i=t[4],o=t[5];(e=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",l),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"x1",i[0]),e.setAttributeNS(null,"y1",i[1]),e.setAttributeNS(null,"x2",o[0]),e.setAttributeNS(null,"y2",o[1]);break;case"radial":var a=t[4],s=t[5],u=t[6],c=t[7];(e=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",l),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"cx",s[0]),e.setAttributeNS(null,"cy",s[1]),e.setAttributeNS(null,"r",c),e.setAttributeNS(null,"fx",a[0]),e.setAttributeNS(null,"fy",a[1]),e.setAttributeNS(null,"fr",u);break;default:throw new Error("Unknown RadialAxial type: ".concat(t[1]))}var h,d=_createForOfIteratorHelper(r);try{for(d.s();!(h=d.n()).done;){var f=h.value,p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",f[0]),p.setAttributeNS(null,"stop-color",f[1]),e.appendChild(p)}}catch(g){d.e(g)}finally{d.f()}return this.defs.appendChild(e),"url(#".concat(l,")");case"Mesh":return(0,n.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(t[0]))}}},{key:"setDash",value:function(t,e){this.current.dashArray=t,this.current.dashPhase=e}},{key:"constructPath",value:function(t,e){var l,r=this.current,i=r.x,o=r.y,a=[],s=0,u=_createForOfIteratorHelper(t);try{for(u.s();!(l=u.n()).done;)switch(0|l.value){case n.OPS.rectangle:i=e[s++],o=e[s++];var c=e[s++],h=e[s++],f=i+c,p=o+h;a.push("M",d(i),d(o),"L",d(f),d(o),"L",d(f),d(p),"L",d(i),d(p),"Z");break;case n.OPS.moveTo:i=e[s++],o=e[s++],a.push("M",d(i),d(o));break;case n.OPS.lineTo:i=e[s++],o=e[s++],a.push("L",d(i),d(o));break;case n.OPS.curveTo:i=e[s+4],o=e[s+5],a.push("C",d(e[s]),d(e[s+1]),d(e[s+2]),d(e[s+3]),d(i),d(o)),s+=6;break;case n.OPS.curveTo2:a.push("C",d(i),d(o),d(e[s]),d(e[s+1]),d(e[s+2]),d(e[s+3])),i=e[s+2],o=e[s+3],s+=4;break;case n.OPS.curveTo3:i=e[s+2],o=e[s+3],a.push("C",d(e[s]),d(e[s+1]),d(i),d(o),d(i),d(o)),s+=4;break;case n.OPS.closePath:a.push("Z")}}catch(g){u.e(g)}finally{u.f()}a=a.join(" "),r.path&&t.length>0&&t[0]!==n.OPS.rectangle&&t[0]!==n.OPS.moveTo?a=r.path.getAttributeNS(null,"d")+a:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(r.path)),r.path.setAttributeNS(null,"d",a),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(i,o)}},{key:"endPath",value:function(){var t=this.current;if(t.path=null,this.pendingClip)if(t.element){var e="clippath".concat(p++),l=this.svgFactory.createElement("svg:clipPath");l.setAttributeNS(null,"id",e),l.setAttributeNS(null,"transform",f(this.transformMatrix));var n=t.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,l.appendChild(n),this.defs.appendChild(l),t.activeClipUrl&&(t.clipGroup=null,this.extraStack.forEach((function(t){t.clipGroup=null})),l.setAttributeNS(null,"clip-path",t.activeClipUrl)),t.activeClipUrl="url(#".concat(e,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(t){this.pendingClip=t}},{key:"closePath",value:function(){var t=this.current;if(t.path){var e="".concat(t.path.getAttributeNS(null,"d"),"Z");t.path.setAttributeNS(null,"d",e)}}},{key:"setLeading",value:function(t){this.current.leading=-t}},{key:"setTextRise",value:function(t){this.current.textRise=t}},{key:"setTextRenderingMode",value:function(t){this.current.textRenderingMode=t}},{key:"setHScale",value:function(t){this.current.textHScale=t/100}},{key:"setRenderingIntent",value:function(t){}},{key:"setFlatness",value:function(t){}},{key:"setGState",value:function(t){var e,l=_createForOfIteratorHelper(t);try{for(l.s();!(e=l.n()).done;){var r=_slicedToArray(e.value,2),i=r[0],o=r[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o);break;case"CA":this.setStrokeAlpha(o);break;case"ca":this.setFillAlpha(o);break;default:(0,n.warn)("Unimplemented graphic state operator ".concat(i))}}}catch(a){l.e(a)}finally{l.f()}}},{key:"fill",value:function(){var t=this.current;t.element&&(t.element.setAttributeNS(null,"fill",t.fillColor),t.element.setAttributeNS(null,"fill-opacity",t.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var t=this.current;t.element&&(this._setStrokeAttributes(t.element),t.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,l=this.current,n=l.dashArray;1!==e&&n.length>0&&(n=n.map((function(t){return e*t}))),t.setAttributeNS(null,"stroke",l.strokeColor),t.setAttributeNS(null,"stroke-opacity",l.strokeAlpha),t.setAttributeNS(null,"stroke-miterlimit",d(l.miterLimit)),t.setAttributeNS(null,"stroke-linecap",l.lineCap),t.setAttributeNS(null,"stroke-linejoin",l.lineJoin),t.setAttributeNS(null,"stroke-width",d(e*l.lineWidth)+"px"),t.setAttributeNS(null,"stroke-dasharray",n.map(d).join(" ")),t.setAttributeNS(null,"stroke-dashoffset",d(e*l.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var t=this.svgFactory.createElement("svg:rect");t.setAttributeNS(null,"x","0"),t.setAttributeNS(null,"y","0"),t.setAttributeNS(null,"width","1px"),t.setAttributeNS(null,"height","1px"),t.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(t)}},{key:"paintImageXObject",value:function(t){var e=this.objs.get(t);e?this.paintInlineImageXObject(e):(0,n.warn)("Dependent image with object ID ".concat(t," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(t,e){var l=t.width,n=t.height,r=c(t,this.forceDataSchema,!!e),i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",d(l)),i.setAttributeNS(null,"height",d(n)),this.current.element=i,this.clip("nonzero");var o=this.svgFactory.createElement("svg:image");o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",d(-n)),o.setAttributeNS(null,"width",d(l)+"px"),o.setAttributeNS(null,"height",d(n)+"px"),o.setAttributeNS(null,"transform","scale(".concat(d(1/l)," ").concat(d(-1/n),")")),e?e.appendChild(o):this._ensureTransformGroup().appendChild(o)}},{key:"paintImageMaskXObject",value:function(t){var e=this.current,l=t.width,n=t.height,r=e.fillColor;e.maskId="mask".concat(g++);var i=this.svgFactory.createElement("svg:mask");i.setAttributeNS(null,"id",e.maskId);var o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",d(l)),o.setAttributeNS(null,"height",d(n)),o.setAttributeNS(null,"fill",r),o.setAttributeNS(null,"mask","url(#".concat(e.maskId,")")),this.defs.appendChild(i),this._ensureTransformGroup().appendChild(o),this.paintInlineImageXObject(t,i)}},{key:"paintFormXObjectBegin",value:function(t,e){if(Array.isArray(t)&&6===t.length&&this.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e){var l=e[2]-e[0],n=e[3]-e[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",e[0]),r.setAttributeNS(null,"y",e[1]),r.setAttributeNS(null,"width",d(l)),r.setAttributeNS(null,"height",d(n)),this.current.element=r,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(t){var e=this.svgFactory.create(t.width,t.height),l=this.svgFactory.createElement("svg:defs");e.appendChild(l),this.defs=l;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",f(t.transform)),e.appendChild(n),this.svg=n,e}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var t=this.svgFactory.createElement("svg:g");t.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(t),this.current.clipGroup=t}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",f(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),t}()}},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNodeStream=void 0;var n=l(2),r=l(20),i=__webpack_require__(1715),o=__webpack_require__(1716),a=__webpack_require__(1717),s=__webpack_require__(1718),u=/^file:\/\/\/[a-zA-Z]:\//,c=function(){function t(e){_classCallCheck(this,t),this.source=e,this.url=function(t){var e=s.parse(t);return"file:"===e.protocol||e.host?e:/^[a-z]:[/\\]/i.test(t)?s.parse("file:///".concat(t)):(e.host||(e.protocol="file:"),e)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(t,[{key:"getFullReader",value:function(){return(0,n.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new m(this):new p(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var l=this.isFsUrl?new v(this,t,e):new g(this,t,e);return this._rangeRequestReaders.push(l),l}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach((function(e){e.cancel(t)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFNodeStream=c;var h=function(){function t(e){_classCallCheck(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;var l=e.source;this._contentLength=l.length,this._loaded=0,this._filename=null,this._disableRange=l.disableRange||!1,this._rangeChunkSize=l.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!l.disableStream,this._isRangeSupported=!l.disableRange,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)(),this._headersCapability=(0,n.createPromiseCapability)()}return _createClass(t,[{key:"read",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(){var e,l;return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,n.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),l=new Uint8Array(e).buffer,t.abrupt("return",{value:l,done:!1});case 14:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"cancel",value:function(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",(function(){e._readCapability.resolve()})),t.on("end",(function(){t.destroy(),e._done=!0,e._readCapability.resolve()})),t.on("error",(function(t){e._error(t)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new n.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),d=function(){function t(e){_classCallCheck(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)();var l=e.source;this._isStreamingSupported=!l.disableStream}return _createClass(t,[{key:"read",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(){var e,l;return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,n.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),l=new Uint8Array(e).buffer,t.abrupt("return",{value:l,done:!1});case 14:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"cancel",value:function(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",(function(){e._readCapability.resolve()})),t.on("end",(function(){t.destroy(),e._done=!0,e._readCapability.resolve()})),t.on("error",(function(t){e._error(t)})),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}();function f(t,e){return{protocol:t.protocol,auth:t.auth,host:t.hostname,port:t.port,path:t.path,method:"GET",headers:e}}var p=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){var i;_classCallCheck(this,l);var s=function(e){if(404===e.statusCode){var l=new n.MissingPDFException('Missing PDF "'.concat(i._url,'".'));return i._storedError=l,void i._headersCapability.reject(l)}i._headersCapability.resolve(),i._setReadableStream(e);var o=function(t){return i._readableStream.headers[t.toLowerCase()]},a=(0,r.validateRangeRequestCapabilities)({getResponseHeader:o,isHttp:t.isHttp,rangeChunkSize:i._rangeChunkSize,disableRange:i._disableRange}),s=a.allowRangeRequests,u=a.suggestedLength;i._isRangeSupported=s,i._contentLength=u||i._contentLength,i._filename=(0,r.extractFilenameFromHeader)(o)};return(i=e.call(this,t))._request=null,"http:"===i._url.protocol?i._request=o.request(f(i._url,t.httpHeaders),s):i._request=a.request(f(i._url,t.httpHeaders),s),i._request.on("error",(function(t){i._storedError=t,i._headersCapability.reject(t)})),i._request.end(),i}return l}(h),g=function(t){_inherits(l,t);var e=_createSuper(l);function l(t,r,i){var s;for(var u in _classCallCheck(this,l),(s=e.call(this,t))._httpHeaders={},t.httpHeaders){var c=t.httpHeaders[u];"undefined"!==typeof c&&(s._httpHeaders[u]=c)}s._httpHeaders.Range="bytes=".concat(r,"-").concat(i-1);var h=function(t){if(404!==t.statusCode)s._setReadableStream(t);else{var e=new n.MissingPDFException('Missing PDF "'.concat(s._url,'".'));s._storedError=e}};return s._request=null,"http:"===s._url.protocol?s._request=o.request(f(s._url,s._httpHeaders),h):s._request=a.request(f(s._url,s._httpHeaders),h),s._request.on("error",(function(t){s._storedError=t})),s._request.end(),s}return l}(d),m=function(t){_inherits(l,t);var e=_createSuper(l);function l(t){var r;_classCallCheck(this,l),r=e.call(this,t);var o=decodeURIComponent(r._url.path);return u.test(r._url.href)&&(o=o.replace(/^\//,"")),i.lstat(o,(function(t,e){if(t)return"ENOENT"===t.code&&(t=new n.MissingPDFException('Missing PDF "'.concat(o,'".'))),r._storedError=t,void r._headersCapability.reject(t);r._contentLength=e.size,r._setReadableStream(i.createReadStream(o)),r._headersCapability.resolve()})),r}return l}(h),v=function(t){_inherits(l,t);var e=_createSuper(l);function l(t,n,r){var o;_classCallCheck(this,l),o=e.call(this,t);var a=decodeURIComponent(o._url.path);return u.test(o._url.href)&&(a=a.replace(/^\//,"")),o._setReadableStream(i.createReadStream(a,{start:n,end:r-1})),o}return l}(d)},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createResponseStatusError=function(t,e){return 404===t||0===t&&e.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+e+'".'):new n.UnexpectedResponseException("Unexpected server response ("+t+') while retrieving PDF "'+e+'".',t)},e.extractFilenameFromHeader=function(t){var e=t("Content-Disposition");if(e){var l=(0,r.getFilenameFromContentDispositionHeader)(e);if(l.includes("%"))try{l=decodeURIComponent(l)}catch(n){}if(/\.pdf$/i.test(l))return l}return null},e.validateRangeRequestCapabilities=function(t){var e=t.getResponseHeader,l=t.isHttp,r=t.rangeChunkSize,i=t.disableRange;(0,n.assert)(r>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(e("Content-Length"),10);return Number.isInteger(a)?(o.suggestedLength=a,a<=2*r||i||!l||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(o.allowRangeRequests=!0),o):o},e.validateResponseStatus=function(t){return 200===t||206===t};var n=l(2),r=l(21)},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFilenameFromContentDispositionHeader=function(t){var e=!0,l=i("filename\\*","i").exec(t);if(l){var n=s(l=l[1]);return a(n=c(n=u(n=unescape(n))))}if(l=function(t){for(var e,l=[],n=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(e=n.exec(t));){var r=_slicedToArray(e,4),o=r[1],a=r[2],c=r[3];if((o=parseInt(o,10))in l){if(0===o)break}else l[o]=[a,c]}for(var h=[],d=0;d=2&&l.onHeadersReceived&&(l.onHeadersReceived(),delete l.onHeadersReceived),4===r.readyState&&t in this.pendingRequests)if(delete this.pendingRequests[t],0===r.status&&this.isHttp)l.onError&&l.onError(r.status);else{var i=r.status||200;if(200===i&&206===l.expectedStatus||i===l.expectedStatus){var o=function(t){var e=t.response;return"string"!==typeof e?e:(0,n.stringToBytes)(e).buffer}(r);if(206===i){var a=r.getResponseHeader("Content-Range"),s=/bytes (\d+)-(\d+)\/(\d+)/.exec(a);l.onDone({begin:parseInt(s[1],10),chunk:o})}else o?l.onDone({begin:0,chunk:o}):l.onError&&l.onError(r.status)}else l.onError&&l.onError(r.status)}}}},{key:"hasPendingRequests",value:function(){for(var t in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(t){return this.pendingRequests[t].xhr}},{key:"isPendingRequest",value:function(t){return t in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var t in this.pendingRequests)this.abortRequest(0|t)}},{key:"abortRequest",value:function(t){var e=this.pendingRequests[t].xhr;delete this.pendingRequests[t],e.abort()}}]),t}(),o=function(){function t(e){_classCallCheck(this,t),this._source=e,this._manager=new i(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(t,[{key:"_onRangeRequestReaderClosed",value:function(t){var e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}},{key:"getFullReader",value:function(){return(0,n.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new a(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){var l=new s(this._manager,t,e);return l.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(l),l}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach((function(e){e.cancel(t)}))}}]),t}();e.PDFNetworkStream=o;var a=function(){function t(e,l){_classCallCheck(this,t),this._manager=e;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=l.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=(0,n.createPromiseCapability)(),this._disableRange=l.disableRange||!1,this._contentLength=l.length,this._rangeChunkSize=l.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return _createClass(t,[{key:"_onHeadersReceived",value:function(){var t=this._fullRequestId,e=this._manager.getRequestXhr(t),l=function(t){return e.getResponseHeader(t)},n=(0,r.validateRangeRequestCapabilities)({getResponseHeader:l,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=n.allowRangeRequests,o=n.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,r.extractFilenameFromHeader)(l),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(t){t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[])}},{key:"_onError",value:function(t){var e=this._url,l=(0,r.createResponseStatusError)(t,e);this._storedError=l,this._headersReceivedCapability.reject(l),this._requests.forEach((function(t){t.reject(l)})),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(t){this.onProgress&&this.onProgress({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}},{key:"read",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(){var e,l;return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._storedError){t.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){t.next=5;break}return e=this._cachedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 5:if(!this._done){t.next=7;break}return t.abrupt("return",{value:void 0,done:!0});case 7:return l=(0,n.createPromiseCapability)(),this._requests.push(l),t.abrupt("return",l.promise);case 10:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"cancel",value:function(t){this._done=!0,this._headersReceivedCapability.reject(t),this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),t}(),s=function(){function t(e,l,n){_classCallCheck(this,t),this._manager=e;var r={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(l,n,r),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return _createClass(t,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(t){var e=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}},{key:"_onProgress",value:function(t){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:t.loaded})}},{key:"read",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(){var e,l;return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return l=(0,n.createPromiseCapability)(),this._requests.push(l),t.abrupt("return",l.promise);case 9:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PDFFetchStream=void 0;var n=l(2),r=l(20);function i(t,e,l){return{method:"GET",headers:t,signal:l&&l.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function o(t){var e=new Headers;for(var l in t){var n=t[l];"undefined"!==typeof n&&e.append(l,n)}return e}var a=function(){function t(e){_classCallCheck(this,t),this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(t,[{key:"getFullReader",value:function(){return(0,n.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new s(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var l=new u(this,t,e);return this._rangeRequestReaders.push(l),l}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach((function(e){e.cancel(t)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFFetchStream=a;var s=function(){function t(e){var l=this;_classCallCheck(this,t),this._stream=e,this._reader=null,this._loaded=0,this._filename=null;var a=e.source;this._withCredentials=a.withCredentials||!1,this._contentLength=a.length,this._headersCapability=(0,n.createPromiseCapability)(),this._disableRange=a.disableRange||!1,this._rangeChunkSize=a.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!a.disableStream,this._isRangeSupported=!a.disableRange,this._headers=o(this._stream.httpHeaders);var s=a.url;fetch(s,i(this._headers,this._withCredentials,this._abortController)).then((function(t){if(!(0,r.validateResponseStatus)(t.status))throw(0,r.createResponseStatusError)(t.status,s);l._reader=t.body.getReader(),l._headersCapability.resolve();var e=function(e){return t.headers.get(e)},i=(0,r.validateRangeRequestCapabilities)({getResponseHeader:e,isHttp:l._stream.isHttp,rangeChunkSize:l._rangeChunkSize,disableRange:l._disableRange}),o=i.allowRangeRequests,a=i.suggestedLength;l._isRangeSupported=o,l._contentLength=a||l._contentLength,l._filename=(0,r.extractFilenameFromHeader)(e),!l._isStreamingSupported&&l._isRangeSupported&&l.cancel(new n.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}return _createClass(t,[{key:"read",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(){var e,l,n,r;return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._headersCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,l=e.value,!(n=e.done)){t.next=9;break}return t.abrupt("return",{value:l,done:n});case 9:return this._loaded+=l.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),r=new Uint8Array(l).buffer,t.abrupt("return",{value:r,done:!1});case 13:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),u=function(){function t(e,l,a){var s=this;_classCallCheck(this,t),this._stream=e,this._reader=null,this._loaded=0;var u=e.source;this._withCredentials=u.withCredentials||!1,this._readCapability=(0,n.createPromiseCapability)(),this._isStreamingSupported=!u.disableStream,"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._headers=o(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(l,"-").concat(a-1));var c=u.url;fetch(c,i(this._headers,this._withCredentials,this._abortController)).then((function(t){if(!(0,r.validateResponseStatus)(t.status))throw(0,r.createResponseStatusError)(t.status,c);s._readCapability.resolve(),s._reader=t.body.getReader()})),this.onProgress=null}return _createClass(t,[{key:"read",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark((function t(){var e,l,n,r;return _regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,l=e.value,!(n=e.done)){t.next=9;break}return t.abrupt("return",{value:l,done:n});case 9:return this._loaded+=l.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),r=new Uint8Array(l).buffer,t.abrupt("return",{value:r,done:!1});case 13:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}()}])},module.exports=factory()}).call(this,__webpack_require__(83),__webpack_require__(50).Buffer)},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=!1;return{promise:new Promise((function(l,n){t.then((function(){return!e&&l.apply(void 0,arguments)})).catch((function(t){return!e&&n(t)}))})),cancel:function(){e=!0}}}},function(t,e,l){"use strict";l.d(e,"a",(function(){return $}));var n=l(0),r=l.n(n),i=l(1),o=l.n(i),a=l(4),s=l.n(a),u=l(51),c=l.n(u);function h(t){for(var e=arguments.length,l=Array(e>1?e-1:0),n=1;n2&&void 0!==arguments[2]?arguments[2]:window,n=void 0;"function"===typeof window.CustomEvent?n=new window.CustomEvent(t,{detail:e}):(n=document.createEvent("CustomEvent")).initCustomEvent(t,!1,!0,e),l&&(l.dispatchEvent(n),c()(_,e))}function k(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];C(M,c()({},t,{type:M}),e)}function T(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];C(E,c()({},t,{type:E}),e)}var O=new function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.handleShowEvent=function(t){for(var l in e.callbacks)d(e.callbacks,l)&&e.callbacks[l].show(t)},this.handleHideEvent=function(t){for(var l in e.callbacks)d(e.callbacks,l)&&e.callbacks[l].hide(t)},this.register=function(t,l){var n=Math.random().toString(36).substring(7);return e.callbacks[n]={show:t,hide:l},n},this.unregister=function(t){t&&e.callbacks[t]&&delete e.callbacks[t]},this.callbacks={},S&&(window.addEventListener(M,this.handleShowEvent),window.addEventListener(E,this.handleHideEvent))},A=Object.assign||function(t){for(var e=1;e=n.length&&(l=0)}while(l!==t&&o[l]);return l===t?null:l}(n.indexOf(l));null!==a&&t.setState({selectedItem:n[a],forceSubMenuOpen:!1})}},this.onChildMouseMove=function(e){t.state.selectedItem!==e&&t.setState({selectedItem:e,forceSubMenuOpen:!1})},this.onChildMouseLeave=function(){t.setState({selectedItem:null,forceSubMenuOpen:!1})},this.renderChildren=function(e){return r.a.Children.map(e,(function(e){var l={};return r.a.isValidElement(e)?[N,t.getSubMenuType()].indexOf(e.type)<0?(l.children=t.renderChildren(e.props.children),r.a.cloneElement(e,l)):(l.onMouseLeave=t.onChildMouseLeave.bind(t),e.type===t.getSubMenuType()&&(l.forceOpen=t.state.forceSubMenuOpen&&t.state.selectedItem===e,l.forceClose=t.handleForceClose,l.parentKeyNavigationHandler=t.handleKeyNavigation),e.props.divider||t.state.selectedItem!==e?(l.onMouseMove=function(){return t.onChildMouseMove(e)},r.a.cloneElement(e,l)):(l.selected=!0,l.ref=function(e){t.seletedItemRef=e},r.a.cloneElement(e,l))):e}))}},F=j,z=Object.assign||function(t){for(var e=1;en?i.bottom=0:i.top=0,r.rightt?n.bottom=0:n.top=0,e.left<0?n.left="100%":n.right="100%",n},l.hideSubMenu=function(t){t.detail&&t.detail.id&&l.menu&&t.detail.id!==l.menu.id||(l.props.forceOpen&&l.props.forceClose(),l.setState({visible:!1,selectedItem:null}),l.unregisterHandlers())},l.handleClick=function(t){t.preventDefault(),l.props.disabled||(h(l.props.onClick,t,c()({},l.props.data,_.data),_.target),l.props.onClick&&!l.props.preventCloseOnClick&&T())},l.handleMouseEnter=function(){l.closetimer&&clearTimeout(l.closetimer),l.props.disabled||l.state.visible||(l.opentimer=setTimeout((function(){return l.setState({visible:!0,selectedItem:null})}),l.props.hoverDelay))},l.handleMouseLeave=function(){l.opentimer&&clearTimeout(l.opentimer),l.state.visible&&(l.closetimer=setTimeout((function(){return l.setState({visible:!1,selectedItem:null})}),l.props.hoverDelay))},l.menuRef=function(t){l.menu=t},l.subMenuRef=function(t){l.subMenu=t},l.registerHandlers=function(){document.removeEventListener("keydown",l.props.parentKeyNavigationHandler),document.addEventListener("keydown",l.handleKeyNavigation)},l.unregisterHandlers=function(t){document.removeEventListener("keydown",l.handleKeyNavigation),t||document.addEventListener("keydown",l.props.parentKeyNavigationHandler)},l.state=c()({},l.state,{visible:!1}),l}return function(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,t),U(e,[{key:"componentDidMount",value:function(){this.listenId=O.register((function(){}),this.hideSubMenu)}},{key:"getSubMenuType",value:function(){return e}},{key:"shouldComponentUpdate",value:function(t,e){return this.isVisibilityChange=(this.state.visible!==e.visible||this.props.forceOpen!==t.forceOpen)&&!(this.state.visible&&t.forceOpen)&&!(this.props.forceOpen&&e.visible),!0}},{key:"componentDidUpdate",value:function(){var t=this;if(this.isVisibilityChange)if(this.props.forceOpen||this.state.visible){(window.requestAnimationFrame||setTimeout)((function(){var e=t.props.rtl?t.getRTLMenuPosition():t.getMenuPosition();t.subMenu.style.removeProperty("top"),t.subMenu.style.removeProperty("bottom"),t.subMenu.style.removeProperty("left"),t.subMenu.style.removeProperty("right"),d(e,"top")&&(t.subMenu.style.top=e.top),d(e,"left")&&(t.subMenu.style.left=e.left),d(e,"bottom")&&(t.subMenu.style.bottom=e.bottom),d(e,"right")&&(t.subMenu.style.right=e.right),t.subMenu.classList.add(p),t.registerHandlers(),t.setState({selectedItem:null})}))}else{this.subMenu.addEventListener("transitionend",(function e(){t.subMenu.removeEventListener("transitionend",e),t.subMenu.style.removeProperty("bottom"),t.subMenu.style.removeProperty("right"),t.subMenu.style.top=0,t.subMenu.style.left="100%",t.unregisterHandlers()})),this.subMenu.classList.remove(p)}}},{key:"componentWillUnmount",value:function(){this.listenId&&O.unregister(this.listenId),this.opentimer&&clearTimeout(this.opentimer),this.closetimer&&clearTimeout(this.closetimer),this.unregisterHandlers(!0)}},{key:"render",value:function(){var t,e=this.props,l=e.children,n=e.attributes,i=e.disabled,o=e.title,a=e.selected,u=this.state.visible,c={ref:this.menuRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,className:s()(m,x,n.listClassName),style:{position:"relative"}},h={className:s()(m,n.className,(t={},H(t,s()(y,n.disabledClassName),i),H(t,s()(v,n.visibleClassName),u),H(t,s()(w,n.selectedClassName),a),t)),onMouseMove:this.props.onMouseMove,onMouseOut:this.props.onMouseOut,onClick:this.handleClick},d={ref:this.subMenuRef,style:{position:"absolute",transition:"opacity 1ms",top:0,left:"100%"},className:s()(f,this.props.className)};return r.a.createElement("nav",z({},c,{role:"menuitem",tabIndex:"-1","aria-haspopup":"true"}),r.a.createElement("div",z({},n,h),o),r.a.createElement("nav",z({},d,{role:"menu",tabIndex:"-1"}),this.renderChildren(l)))}}]),e}(F);Z.propTypes={children:o.a.node.isRequired,attributes:o.a.object,title:o.a.node.isRequired,className:o.a.string,disabled:o.a.bool,hoverDelay:o.a.number,rtl:o.a.bool,selected:o.a.bool,onMouseMove:o.a.func,onMouseOut:o.a.func,forceOpen:o.a.bool,forceClose:o.a.func,parentKeyNavigationHandler:o.a.func},Z.defaultProps={disabled:!1,hoverDelay:500,attributes:{},className:"",rtl:!1,selected:!1,onMouseMove:function(){return null},onMouseOut:function(){return null},forceOpen:!1,forceClose:function(){return null},parentKeyNavigationHandler:function(){return null}};var V=Z,W=function(){function t(t,e){for(var l=0;l0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={top:e,left:t};if(!l.menu)return n;var r=window,i=r.innerWidth,o=r.innerHeight,a=l.menu.getBoundingClientRect();return e+a.height>o&&(n.top-=a.height),t+a.width>i&&(n.left-=a.width),n.top<0&&(n.top=a.height0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={top:e,left:t};if(!l.menu)return n;var r=window,i=r.innerWidth,o=r.innerHeight,a=l.menu.getBoundingClientRect();return n.left=t-a.width,e+a.height>o&&(n.top-=a.height),n.left<0&&(n.left+=a.width),n.top<0&&(n.top=a.heighti&&(n.left=a.width=0&&0===t.button&&(t.persist(),t.stopPropagation(),n.mouseDownTimeoutId=setTimeout((function(){return n.handleContextClick(t)}),n.props.holdToDisplay)),h(n.props.attributes.onMouseDown,t)},n.handleMouseUp=function(t){0===t.button&&clearTimeout(n.mouseDownTimeoutId),h(n.props.attributes.onMouseUp,t)},n.handleMouseOut=function(t){0===t.button&&clearTimeout(n.mouseDownTimeoutId),h(n.props.attributes.onMouseOut,t)},n.handleTouchstart=function(t){n.touchHandled=!1,n.props.holdToDisplay>=0&&(t.persist(),t.stopPropagation(),n.touchstartTimeoutId=setTimeout((function(){n.handleContextClick(t),n.touchHandled=!0}),n.props.holdToDisplay)),h(n.props.attributes.onTouchStart,t)},n.handleTouchEnd=function(t){n.touchHandled&&t.preventDefault(),clearTimeout(n.touchstartTimeoutId),h(n.props.attributes.onTouchEnd,t)},n.handleContextMenu=function(t){t.button===n.props.mouseButton&&n.handleContextClick(t),h(n.props.attributes.onContextMenu,t)},n.handleMouseClick=function(t){t.button===n.props.mouseButton&&n.handleContextClick(t),h(n.props.attributes.onClick,t)},n.handleContextClick=function(t){if(!n.props.disable&&(!n.props.disableIfShiftIsPressed||!t.shiftKey)){t.preventDefault(),t.stopPropagation();var e=t.clientX||t.touches&&t.touches[0].pageX,l=t.clientY||t.touches&&t.touches[0].pageY;n.props.posX&&(e-=n.props.posX),n.props.posY&&(l-=n.props.posY),T();var r=h(n.props.collect,n.props),i={position:{x:e,y:l},target:n.elem,id:n.props.id};r&&"function"===typeof r.then?r.then((function(e){i.data=c()({},e,{target:t.target}),k(i)})):(i.data=c()({},r,{target:t.target}),k(i))}},n.elemRef=function(t){n.elem=t},X(n,l)}return function(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,t),Y(e,[{key:"render",value:function(){var t=this.props,e=t.renderTag,l=t.attributes,n=t.children,i=c()({},l,{className:s()(g,l.className),onContextMenu:this.handleContextMenu,onClick:this.handleMouseClick,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchStart:this.handleTouchstart,onTouchEnd:this.handleTouchEnd,onMouseOut:this.handleMouseOut,ref:this.elemRef});return r.a.createElement(e,i,n)}}]),e}(n.Component);K.propTypes={id:o.a.string.isRequired,children:o.a.node.isRequired,attributes:o.a.object,collect:o.a.func,disable:o.a.bool,holdToDisplay:o.a.number,posX:o.a.number,posY:o.a.number,renderTag:o.a.elementType,mouseButton:o.a.number,disableIfShiftIsPressed:o.a.bool},K.defaultProps={attributes:{},collect:function(){return null},disable:!1,holdToDisplay:1e3,renderTag:"div",posX:0,posY:0,mouseButton:2,disableIfShiftIsPressed:!1};var $=K;Object.assign,function(){function t(t,e){for(var l=0;l0?n:t.name,writable:!1,configurable:!1,enumerable:!0})}return l}var c=[".DS_Store","Thumbs.db"];function h(t){return a.__awaiter(this,void 0,void 0,(function(){return a.__generator(this,(function(e){return[2,(l=t,l.dataTransfer&&t.dataTransfer?f(t.dataTransfer,t.type):d(t))];var l}))}))}function d(t){return(null!==t.target&&t.target.files?g(t.target.files):[]).map((function(t){return u(t)}))}function f(t,e){return a.__awaiter(this,void 0,void 0,(function(){var l;return a.__generator(this,(function(n){switch(n.label){case 0:return t.items?(l=g(t.items).filter((function(t){return"file"===t.kind})),"drop"!==e?[2,l]:[4,Promise.all(l.map(m))]):[3,2];case 1:return[2,p(v(n.sent()))];case 2:return[2,p(g(t.files).map((function(t){return u(t)})))]}}))}))}function p(t){return t.filter((function(t){return-1===c.indexOf(t.name)}))}function g(t){for(var e=[],l=0;l=e&&t.size<=l;if(C(e))return t.size>=e;if(C(l))return t.size<=l}return!0}function C(t){return void 0!==t&&null!==t}function k(t){var e=t.files,l=t.accept,n=t.minSize,r=t.maxSize;return!(!t.multiple&&e.length>1)&&e.every((function(t){return M(t,l)&&E(t,n,r)}))}function T(t){return"function"===typeof t.isPropagationStopped?t.isPropagationStopped():"undefined"!==typeof t.cancelBubble&&t.cancelBubble}function O(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,(function(t){return"Files"===t||"application/x-moz-file"===t})):!!t.target&&!!t.target.files}function A(t){t.preventDefault()}function D(t){return-1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")}function P(t){return-1!==t.indexOf("Edge/")}function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return D(t)||P(t)}function L(){for(var t=arguments.length,e=new Array(t),l=0;l1?l-1:0),r=1;r=0||(r[l]=t[l]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,l)&&(r[l]=t[l])}return r}var U=Object(n.forwardRef)((function(t,e){var l=t.children,i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.accept,l=t.disabled,r=void 0!==l&&l,i=t.getFilesFromEvent,o=void 0===i?h:i,a=t.maxSize,s=void 0===a?1/0:a,u=t.minSize,c=void 0===u?0:u,d=t.multiple,f=void 0===d||d,p=t.onDragEnter,g=t.onDragLeave,m=t.onDragOver,v=t.onDrop,y=t.onDropAccepted,b=t.onDropRejected,w=t.onFileDialogCancel,x=t.preventDropOnDocument,_=void 0===x||x,S=t.noClick,C=void 0!==S&&S,D=t.noKeyboard,P=void 0!==D&&D,j=t.noDrag,U=void 0!==j&&j,V=t.noDragEventsBubbling,W=void 0!==V&&V,G=Object(n.useRef)(null),Y=Object(n.useRef)(null),q=Object(n.useReducer)(Z,H),X=N(q,2),K=X[0],$=X[1],Q=K.isFocused,J=K.isFileDialogActive,tt=K.draggedFiles,et=Object(n.useCallback)((function(){Y.current&&($({type:"openDialog"}),Y.current.value=null,Y.current.click())}),[$]),lt=function(){J&&setTimeout((function(){Y.current&&(Y.current.files.length||($({type:"closeDialog"}),"function"===typeof w&&w()))}),300)};Object(n.useEffect)((function(){return window.addEventListener("focus",lt,!1),function(){window.removeEventListener("focus",lt,!1)}}),[Y,J,w]);var nt=Object(n.useCallback)((function(t){G.current&&G.current.isEqualNode(t.target)&&(32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),et()))}),[G,Y]),rt=Object(n.useCallback)((function(){$({type:"focus"})}),[]),it=Object(n.useCallback)((function(){$({type:"blur"})}),[]),ot=Object(n.useCallback)((function(){C||(I()?setTimeout(et,0):et())}),[Y,C]),at=Object(n.useRef)([]),st=function(t){G.current&&G.current.contains(t.target)||(t.preventDefault(),at.current=[])};Object(n.useEffect)((function(){return _&&(document.addEventListener("dragover",A,!1),document.addEventListener("drop",st,!1)),function(){_&&(document.removeEventListener("dragover",A),document.removeEventListener("drop",st))}}),[G,_]);var ut=Object(n.useCallback)((function(t){t.preventDefault(),t.persist(),mt(t),-1===at.current.indexOf(t.target)&&(at.current=[].concat(R(at.current),[t.target])),O(t)&&Promise.resolve(o(t)).then((function(e){T(t)&&!W||($({draggedFiles:e,isDragActive:!0,type:"setDraggedFiles"}),p&&p(t))}))}),[o,p,W]),ct=Object(n.useCallback)((function(t){if(t.preventDefault(),t.persist(),mt(t),t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(e){}return O(t)&&m&&m(t),!1}),[m,W]),ht=Object(n.useCallback)((function(t){t.preventDefault(),t.persist(),mt(t);var e=at.current.filter((function(e){return e!==t.target&&G.current&&G.current.contains(e)}));at.current=e,e.length>0||($({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),O(t)&&g&&g(t))}),[G,g,W]),dt=Object(n.useCallback)((function(t){t.preventDefault(),t.persist(),mt(t),at.current=[],O(t)&&Promise.resolve(o(t)).then((function(l){if(!T(t)||W){var n=[],r=[];l.forEach((function(t){M(t,e)&&E(t,c,s)?n.push(t):r.push(t)})),!f&&n.length>1&&r.push.apply(r,R(n.splice(0))),$({acceptedFiles:n,rejectedFiles:r,type:"setFiles"}),v&&v(n,r,t),r.length>0&&b&&b(r,t),n.length>0&&y&&y(n,t)}})),$({type:"reset"})}),[f,e,c,s,o,v,y,b,W]),ft=function(t){return r?null:t},pt=function(t){return P?null:ft(t)},gt=function(t){return U?null:ft(t)},mt=function(t){W&&t.stopPropagation()},vt=Object(n.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,l=void 0===e?"ref":e,n=t.onKeyDown,i=t.onFocus,o=t.onBlur,a=t.onClick,s=t.onDragEnter,u=t.onDragOver,c=t.onDragLeave,h=t.onDrop,d=z(t,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return B(F({onKeyDown:pt(L(n,nt)),onFocus:pt(L(i,rt)),onBlur:pt(L(o,it)),onClick:ft(L(a,ot)),onDragEnter:gt(L(s,ut)),onDragOver:gt(L(u,ct)),onDragLeave:gt(L(c,ht)),onDrop:gt(L(h,dt))},l,G),r||P?{}:{tabIndex:0},{},d)}}),[G,nt,rt,it,ot,ut,ct,ht,dt,P,U,r]),yt=Object(n.useCallback)((function(t){t.stopPropagation()}),[]),bt=Object(n.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=t.refKey,n=void 0===l?"ref":l,r=t.onChange,i=t.onClick,o=z(t,["refKey","onChange","onClick"]),a=F({accept:e,multiple:f,type:"file",style:{display:"none"},onChange:ft(L(r,dt)),onClick:ft(L(i,yt)),autoComplete:"off",tabIndex:-1},n,Y);return B({},a,{},o)}}),[Y,e,f,dt,r]),wt=tt.length,xt=wt>0&&k({files:tt,accept:e,minSize:c,maxSize:s,multiple:f}),_t=wt>0&&!xt;return B({},K,{isDragAccept:xt,isDragReject:_t,isFocused:Q&&!r,getRootProps:vt,getInputProps:bt,rootRef:G,inputRef:Y,open:ft(et)})}(z(t,["children"])),o=i.open,a=z(i,["open"]);return Object(n.useImperativeHandle)(e,(function(){return{open:o}}),[o]),r.a.createElement(n.Fragment,null,l(B({},a,{open:o})))}));U.displayName="Dropzone",U.propTypes={children:o.a.func,accept:o.a.oneOfType([o.a.string,o.a.arrayOf(o.a.string)]),multiple:o.a.bool,preventDropOnDocument:o.a.bool,noClick:o.a.bool,noKeyboard:o.a.bool,noDrag:o.a.bool,noDragEventsBubbling:o.a.bool,minSize:o.a.number,maxSize:o.a.number,disabled:o.a.bool,getFilesFromEvent:o.a.func,onFileDialogCancel:o.a.func,onDragEnter:o.a.func,onDragLeave:o.a.func,onDragOver:o.a.func,onDrop:o.a.func,onDropAccepted:o.a.func,onDropRejected:o.a.func};e.a=U;var H={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]};function Z(t,e){switch(e.type){case"focus":return B({},t,{isFocused:!0});case"blur":return B({},t,{isFocused:!1});case"openDialog":return B({},t,{isFileDialogActive:!0});case"closeDialog":return B({},t,{isFileDialogActive:!1});case"setDraggedFiles":var l=e.isDragActive;return B({},t,{draggedFiles:e.draggedFiles,isDragActive:l});case"setFiles":return B({},t,{acceptedFiles:e.acceptedFiles,rejectedFiles:e.rejectedFiles});case"reset":return B({},t,{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]});default:return t}}},function(t,e,l){"use strict";l.d(e,"a",(function(){return r}));function n(t){return t.getTime()%6e4}function r(t){var e=new Date(t.getTime()),l=Math.ceil(e.getTimezoneOffset());return e.setSeconds(0,0),6e4*l+(l>0?(6e4+n(e))%6e4:n(e))}},function(t,e,l){"use strict";l.d(e,"a",(function(){return i}));var n=l(25),r=l(23);function i(t){Object(r.a)(1,arguments);var e=1,l=Object(n.default)(t),i=l.getUTCDay(),o=(i=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function s(t,e,l,n){for(var r=0,i=Math.min(t.length,l),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}i.isBN=function(t){return t instanceof i||null!==t&&"object"===typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,l){if("number"===typeof t)return this._initNumber(t,e,l);if("object"===typeof t)return this._initArray(t,e,l);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===e?this._parseHex(t,r):this._parseBase(t,e,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===l&&this._initArray(this.toArray(),e,l)},i.prototype._initNumber=function(t,e,l){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===l&&this._initArray(this.toArray(),e,l)},i.prototype._initArray=function(t,e,l){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r=0;r-=3)o=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[i]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===l)for(r=0,i=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this.strip()},i.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var l=0;l=e;l-=6)r=a(t,l,l+6),this.words[n]|=r<>>26-i&4194303,(i+=24)>=26&&(i-=26,n++);l+6!==e&&(r=a(t,e,l+6),this.words[n]|=r<>>26-i&4194303),this.strip()},i.prototype._parseBase=function(t,e,l){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var i=t.length-l,o=i%n,a=Math.min(i,i-o)+l,u=0,c=l;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,l){l.negative=e.negative^t.negative;var n=t.length+e.length|0;l.length=n,n=n-1|0;var r=0|t.words[0],i=0|e.words[0],o=r*i,a=67108863&o,s=o/67108864|0;l.words[0]=a;for(var u=1;u>>26,h=67108863&s,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;c+=(o=(r=0|t.words[p])*(i=0|e.words[f])+h)/67108864|0,h=67108863&o}l.words[u]=0|h,s=0|c}return 0!==s?l.words[u]=0|s:l.length--,l.strip()}i.prototype.toString=function(t,e){var l;if(e=0|e||1,16===(t=t||10)||"hex"===t){l="";for(var r=0,i=0,o=0;o>>24-r&16777215)||o!==this.length-1?u[6-s.length]+s+l:s+l,(r+=2)>=26&&(r-=26,o--)}for(0!==i&&(l=i.toString(16)+l);l.length%e!==0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(t===(0|t)&&t>=2&&t<=36){var d=c[t],f=h[t];l="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(f).toString(t);l=(p=p.idivn(f)).isZero()?g+l:u[d-g.length]+g+l}for(this.isZero()&&(l="0"+l);l.length%e!==0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,e){return n("undefined"!==typeof o),this.toArrayLike(o,t,e)},i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,l){var r=this.byteLength(),i=l||Math.max(1,r);n(r<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0"),this.strip();var o,a,s="le"===e,u=new t(i),c=this.clone();if(s){for(a=0;!c.isZero();a++)o=c.andln(255),c.iushrn(8),u[a]=o;for(;a=4096&&(l+=13,e>>>=13),e>=64&&(l+=7,e>>>=7),e>=8&&(l+=4,e>>>=4),e>=2&&(l+=2,e>>>=2),l+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,l=0;return 0===(8191&e)&&(l+=13,e>>>=13),0===(127&e)&&(l+=7,e>>>=7),0===(15&e)&&(l+=4,e>>>=4),0===(3&e)&&(l+=2,e>>>=2),0===(1&e)&&l++,l},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var l=0;lt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,l;this.length>t.length?(e=this,l=t):(e=t,l=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),l=t%26;this._expand(e),l>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-l),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var l=t/26|0,r=t%26;return this._expand(l+1),this.words[l]=e?this.words[l]|1<t.length?(l=this,n=t):(l=t,n=this);for(var r=0,i=0;i>>26;for(;0!==r&&i>>26;if(this.length=l.length,0!==r)this.words[this.length]=r,this.length++;else if(l!==this)for(;it.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var l,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(l=this,n=t):(l=t,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==i&&o>26,this.words[o]=67108863&e;if(0===i&&o>>13,f=0|o[1],p=8191&f,g=f>>>13,m=0|o[2],v=8191&m,y=m>>>13,b=0|o[3],w=8191&b,x=b>>>13,_=0|o[4],S=8191&_,M=_>>>13,E=0|o[5],C=8191&E,k=E>>>13,T=0|o[6],O=8191&T,A=T>>>13,D=0|o[7],P=8191&D,I=D>>>13,L=0|o[8],R=8191&L,N=L>>>13,j=0|o[9],B=8191&j,F=j>>>13,z=0|a[0],U=8191&z,H=z>>>13,Z=0|a[1],V=8191&Z,W=Z>>>13,G=0|a[2],Y=8191&G,q=G>>>13,X=0|a[3],K=8191&X,$=X>>>13,Q=0|a[4],J=8191&Q,tt=Q>>>13,et=0|a[5],lt=8191&et,nt=et>>>13,rt=0|a[6],it=8191&rt,ot=rt>>>13,at=0|a[7],st=8191&at,ut=at>>>13,ct=0|a[8],ht=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,gt=ft>>>13;l.negative=t.negative^e.negative,l.length=19;var mt=(u+(n=Math.imul(h,U))|0)+((8191&(r=(r=Math.imul(h,H))+Math.imul(d,U)|0))<<13)|0;u=((i=Math.imul(d,H))+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,U),r=(r=Math.imul(p,H))+Math.imul(g,U)|0,i=Math.imul(g,H);var vt=(u+(n=n+Math.imul(h,V)|0)|0)+((8191&(r=(r=r+Math.imul(h,W)|0)+Math.imul(d,V)|0))<<13)|0;u=((i=i+Math.imul(d,W)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,U),r=(r=Math.imul(v,H))+Math.imul(y,U)|0,i=Math.imul(y,H),n=n+Math.imul(p,V)|0,r=(r=r+Math.imul(p,W)|0)+Math.imul(g,V)|0,i=i+Math.imul(g,W)|0;var yt=(u+(n=n+Math.imul(h,Y)|0)|0)+((8191&(r=(r=r+Math.imul(h,q)|0)+Math.imul(d,Y)|0))<<13)|0;u=((i=i+Math.imul(d,q)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,U),r=(r=Math.imul(w,H))+Math.imul(x,U)|0,i=Math.imul(x,H),n=n+Math.imul(v,V)|0,r=(r=r+Math.imul(v,W)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,W)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,q)|0)+Math.imul(g,Y)|0,i=i+Math.imul(g,q)|0;var bt=(u+(n=n+Math.imul(h,K)|0)|0)+((8191&(r=(r=r+Math.imul(h,$)|0)+Math.imul(d,K)|0))<<13)|0;u=((i=i+Math.imul(d,$)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(S,U),r=(r=Math.imul(S,H))+Math.imul(M,U)|0,i=Math.imul(M,H),n=n+Math.imul(w,V)|0,r=(r=r+Math.imul(w,W)|0)+Math.imul(x,V)|0,i=i+Math.imul(x,W)|0,n=n+Math.imul(v,Y)|0,r=(r=r+Math.imul(v,q)|0)+Math.imul(y,Y)|0,i=i+Math.imul(y,q)|0,n=n+Math.imul(p,K)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(g,K)|0,i=i+Math.imul(g,$)|0;var wt=(u+(n=n+Math.imul(h,J)|0)|0)+((8191&(r=(r=r+Math.imul(h,tt)|0)+Math.imul(d,J)|0))<<13)|0;u=((i=i+Math.imul(d,tt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(C,U),r=(r=Math.imul(C,H))+Math.imul(k,U)|0,i=Math.imul(k,H),n=n+Math.imul(S,V)|0,r=(r=r+Math.imul(S,W)|0)+Math.imul(M,V)|0,i=i+Math.imul(M,W)|0,n=n+Math.imul(w,Y)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(x,Y)|0,i=i+Math.imul(x,q)|0,n=n+Math.imul(v,K)|0,r=(r=r+Math.imul(v,$)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,$)|0,n=n+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(g,J)|0,i=i+Math.imul(g,tt)|0;var xt=(u+(n=n+Math.imul(h,lt)|0)|0)+((8191&(r=(r=r+Math.imul(h,nt)|0)+Math.imul(d,lt)|0))<<13)|0;u=((i=i+Math.imul(d,nt)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,U),r=(r=Math.imul(O,H))+Math.imul(A,U)|0,i=Math.imul(A,H),n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,W)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,W)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,q)|0)+Math.imul(M,Y)|0,i=i+Math.imul(M,q)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,$)|0)+Math.imul(x,K)|0,i=i+Math.imul(x,$)|0,n=n+Math.imul(v,J)|0,r=(r=r+Math.imul(v,tt)|0)+Math.imul(y,J)|0,i=i+Math.imul(y,tt)|0,n=n+Math.imul(p,lt)|0,r=(r=r+Math.imul(p,nt)|0)+Math.imul(g,lt)|0,i=i+Math.imul(g,nt)|0;var _t=(u+(n=n+Math.imul(h,it)|0)|0)+((8191&(r=(r=r+Math.imul(h,ot)|0)+Math.imul(d,it)|0))<<13)|0;u=((i=i+Math.imul(d,ot)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,U),r=(r=Math.imul(P,H))+Math.imul(I,U)|0,i=Math.imul(I,H),n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,W)|0)+Math.imul(A,V)|0,i=i+Math.imul(A,W)|0,n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,q)|0)+Math.imul(k,Y)|0,i=i+Math.imul(k,q)|0,n=n+Math.imul(S,K)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(M,K)|0,i=i+Math.imul(M,$)|0,n=n+Math.imul(w,J)|0,r=(r=r+Math.imul(w,tt)|0)+Math.imul(x,J)|0,i=i+Math.imul(x,tt)|0,n=n+Math.imul(v,lt)|0,r=(r=r+Math.imul(v,nt)|0)+Math.imul(y,lt)|0,i=i+Math.imul(y,nt)|0,n=n+Math.imul(p,it)|0,r=(r=r+Math.imul(p,ot)|0)+Math.imul(g,it)|0,i=i+Math.imul(g,ot)|0;var St=(u+(n=n+Math.imul(h,st)|0)|0)+((8191&(r=(r=r+Math.imul(h,ut)|0)+Math.imul(d,st)|0))<<13)|0;u=((i=i+Math.imul(d,ut)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(R,U),r=(r=Math.imul(R,H))+Math.imul(N,U)|0,i=Math.imul(N,H),n=n+Math.imul(P,V)|0,r=(r=r+Math.imul(P,W)|0)+Math.imul(I,V)|0,i=i+Math.imul(I,W)|0,n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,q)|0)+Math.imul(A,Y)|0,i=i+Math.imul(A,q)|0,n=n+Math.imul(C,K)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,$)|0,n=n+Math.imul(S,J)|0,r=(r=r+Math.imul(S,tt)|0)+Math.imul(M,J)|0,i=i+Math.imul(M,tt)|0,n=n+Math.imul(w,lt)|0,r=(r=r+Math.imul(w,nt)|0)+Math.imul(x,lt)|0,i=i+Math.imul(x,nt)|0,n=n+Math.imul(v,it)|0,r=(r=r+Math.imul(v,ot)|0)+Math.imul(y,it)|0,i=i+Math.imul(y,ot)|0,n=n+Math.imul(p,st)|0,r=(r=r+Math.imul(p,ut)|0)+Math.imul(g,st)|0,i=i+Math.imul(g,ut)|0;var Mt=(u+(n=n+Math.imul(h,ht)|0)|0)+((8191&(r=(r=r+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;u=((i=i+Math.imul(d,dt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,U),r=(r=Math.imul(B,H))+Math.imul(F,U)|0,i=Math.imul(F,H),n=n+Math.imul(R,V)|0,r=(r=r+Math.imul(R,W)|0)+Math.imul(N,V)|0,i=i+Math.imul(N,W)|0,n=n+Math.imul(P,Y)|0,r=(r=r+Math.imul(P,q)|0)+Math.imul(I,Y)|0,i=i+Math.imul(I,q)|0,n=n+Math.imul(O,K)|0,r=(r=r+Math.imul(O,$)|0)+Math.imul(A,K)|0,i=i+Math.imul(A,$)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,tt)|0,n=n+Math.imul(S,lt)|0,r=(r=r+Math.imul(S,nt)|0)+Math.imul(M,lt)|0,i=i+Math.imul(M,nt)|0,n=n+Math.imul(w,it)|0,r=(r=r+Math.imul(w,ot)|0)+Math.imul(x,it)|0,i=i+Math.imul(x,ot)|0,n=n+Math.imul(v,st)|0,r=(r=r+Math.imul(v,ut)|0)+Math.imul(y,st)|0,i=i+Math.imul(y,ut)|0,n=n+Math.imul(p,ht)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(g,ht)|0,i=i+Math.imul(g,dt)|0;var Et=(u+(n=n+Math.imul(h,pt)|0)|0)+((8191&(r=(r=r+Math.imul(h,gt)|0)+Math.imul(d,pt)|0))<<13)|0;u=((i=i+Math.imul(d,gt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(B,V),r=(r=Math.imul(B,W))+Math.imul(F,V)|0,i=Math.imul(F,W),n=n+Math.imul(R,Y)|0,r=(r=r+Math.imul(R,q)|0)+Math.imul(N,Y)|0,i=i+Math.imul(N,q)|0,n=n+Math.imul(P,K)|0,r=(r=r+Math.imul(P,$)|0)+Math.imul(I,K)|0,i=i+Math.imul(I,$)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(A,J)|0,i=i+Math.imul(A,tt)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(k,lt)|0,i=i+Math.imul(k,nt)|0,n=n+Math.imul(S,it)|0,r=(r=r+Math.imul(S,ot)|0)+Math.imul(M,it)|0,i=i+Math.imul(M,ot)|0,n=n+Math.imul(w,st)|0,r=(r=r+Math.imul(w,ut)|0)+Math.imul(x,st)|0,i=i+Math.imul(x,ut)|0,n=n+Math.imul(v,ht)|0,r=(r=r+Math.imul(v,dt)|0)+Math.imul(y,ht)|0,i=i+Math.imul(y,dt)|0;var Ct=(u+(n=n+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,gt)|0)+Math.imul(g,pt)|0))<<13)|0;u=((i=i+Math.imul(g,gt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(B,Y),r=(r=Math.imul(B,q))+Math.imul(F,Y)|0,i=Math.imul(F,q),n=n+Math.imul(R,K)|0,r=(r=r+Math.imul(R,$)|0)+Math.imul(N,K)|0,i=i+Math.imul(N,$)|0,n=n+Math.imul(P,J)|0,r=(r=r+Math.imul(P,tt)|0)+Math.imul(I,J)|0,i=i+Math.imul(I,tt)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(A,lt)|0,i=i+Math.imul(A,nt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(k,it)|0,i=i+Math.imul(k,ot)|0,n=n+Math.imul(S,st)|0,r=(r=r+Math.imul(S,ut)|0)+Math.imul(M,st)|0,i=i+Math.imul(M,ut)|0,n=n+Math.imul(w,ht)|0,r=(r=r+Math.imul(w,dt)|0)+Math.imul(x,ht)|0,i=i+Math.imul(x,dt)|0;var kt=(u+(n=n+Math.imul(v,pt)|0)|0)+((8191&(r=(r=r+Math.imul(v,gt)|0)+Math.imul(y,pt)|0))<<13)|0;u=((i=i+Math.imul(y,gt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(B,K),r=(r=Math.imul(B,$))+Math.imul(F,K)|0,i=Math.imul(F,$),n=n+Math.imul(R,J)|0,r=(r=r+Math.imul(R,tt)|0)+Math.imul(N,J)|0,i=i+Math.imul(N,tt)|0,n=n+Math.imul(P,lt)|0,r=(r=r+Math.imul(P,nt)|0)+Math.imul(I,lt)|0,i=i+Math.imul(I,nt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(A,it)|0,i=i+Math.imul(A,ot)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ut)|0)+Math.imul(k,st)|0,i=i+Math.imul(k,ut)|0,n=n+Math.imul(S,ht)|0,r=(r=r+Math.imul(S,dt)|0)+Math.imul(M,ht)|0,i=i+Math.imul(M,dt)|0;var Tt=(u+(n=n+Math.imul(w,pt)|0)|0)+((8191&(r=(r=r+Math.imul(w,gt)|0)+Math.imul(x,pt)|0))<<13)|0;u=((i=i+Math.imul(x,gt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(B,J),r=(r=Math.imul(B,tt))+Math.imul(F,J)|0,i=Math.imul(F,tt),n=n+Math.imul(R,lt)|0,r=(r=r+Math.imul(R,nt)|0)+Math.imul(N,lt)|0,i=i+Math.imul(N,nt)|0,n=n+Math.imul(P,it)|0,r=(r=r+Math.imul(P,ot)|0)+Math.imul(I,it)|0,i=i+Math.imul(I,ot)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ut)|0)+Math.imul(A,st)|0,i=i+Math.imul(A,ut)|0,n=n+Math.imul(C,ht)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(k,ht)|0,i=i+Math.imul(k,dt)|0;var Ot=(u+(n=n+Math.imul(S,pt)|0)|0)+((8191&(r=(r=r+Math.imul(S,gt)|0)+Math.imul(M,pt)|0))<<13)|0;u=((i=i+Math.imul(M,gt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(B,lt),r=(r=Math.imul(B,nt))+Math.imul(F,lt)|0,i=Math.imul(F,nt),n=n+Math.imul(R,it)|0,r=(r=r+Math.imul(R,ot)|0)+Math.imul(N,it)|0,i=i+Math.imul(N,ot)|0,n=n+Math.imul(P,st)|0,r=(r=r+Math.imul(P,ut)|0)+Math.imul(I,st)|0,i=i+Math.imul(I,ut)|0,n=n+Math.imul(O,ht)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(A,ht)|0,i=i+Math.imul(A,dt)|0;var At=(u+(n=n+Math.imul(C,pt)|0)|0)+((8191&(r=(r=r+Math.imul(C,gt)|0)+Math.imul(k,pt)|0))<<13)|0;u=((i=i+Math.imul(k,gt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(B,it),r=(r=Math.imul(B,ot))+Math.imul(F,it)|0,i=Math.imul(F,ot),n=n+Math.imul(R,st)|0,r=(r=r+Math.imul(R,ut)|0)+Math.imul(N,st)|0,i=i+Math.imul(N,ut)|0,n=n+Math.imul(P,ht)|0,r=(r=r+Math.imul(P,dt)|0)+Math.imul(I,ht)|0,i=i+Math.imul(I,dt)|0;var Dt=(u+(n=n+Math.imul(O,pt)|0)|0)+((8191&(r=(r=r+Math.imul(O,gt)|0)+Math.imul(A,pt)|0))<<13)|0;u=((i=i+Math.imul(A,gt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(B,st),r=(r=Math.imul(B,ut))+Math.imul(F,st)|0,i=Math.imul(F,ut),n=n+Math.imul(R,ht)|0,r=(r=r+Math.imul(R,dt)|0)+Math.imul(N,ht)|0,i=i+Math.imul(N,dt)|0;var Pt=(u+(n=n+Math.imul(P,pt)|0)|0)+((8191&(r=(r=r+Math.imul(P,gt)|0)+Math.imul(I,pt)|0))<<13)|0;u=((i=i+Math.imul(I,gt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(B,ht),r=(r=Math.imul(B,dt))+Math.imul(F,ht)|0,i=Math.imul(F,dt);var It=(u+(n=n+Math.imul(R,pt)|0)|0)+((8191&(r=(r=r+Math.imul(R,gt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((i=i+Math.imul(N,gt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863;var Lt=(u+(n=Math.imul(B,pt))|0)+((8191&(r=(r=Math.imul(B,gt))+Math.imul(F,pt)|0))<<13)|0;return u=((i=Math.imul(F,gt))+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,s[0]=mt,s[1]=vt,s[2]=yt,s[3]=bt,s[4]=wt,s[5]=xt,s[6]=_t,s[7]=St,s[8]=Mt,s[9]=Et,s[10]=Ct,s[11]=kt,s[12]=Tt,s[13]=Ot,s[14]=At,s[15]=Dt,s[16]=Pt,s[17]=It,s[18]=Lt,0!==u&&(s[19]=u,l.length++),l};function p(t,e,l){return(new g).mulp(t,e,l)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=d),i.prototype.mulTo=function(t,e){var l=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):l<63?d(this,t,e):l<1024?function(t,e,l){l.negative=e.negative^t.negative,l.length=t.length+e.length;for(var n=0,r=0,i=0;i>>26)|0)>>>26,o&=67108863}l.words[i]=a,n=o,o=r}return 0!==n?l.words[i]=n:l.length--,l.strip()}(this,t,e):p(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),l=i.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,l,n,r,i){for(var o=0;o>>=1)r++;return 1<>>=13,l[2*o+1]=8191&i,i>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=i>>>26,this.words[l]=67108863&i}return 0!==e&&(this.words[l]=e,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),l=0;l>>r}return e}(t);if(0===e.length)return new i(1);for(var l=this,n=0;n=0);var e,l=t%26,r=(t-l)/26,i=67108863>>>26-l<<26-l;if(0!==l){var o=0;for(e=0;e>>26-l}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var i=t%26,o=Math.min((t-i)/26,this.length),a=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==c||u>=r);u--){var h=0|this.words[u];this.words[u]=c<<26-i|h>>>i,c=h&a}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,e,l){return n(0===this.negative),this.iushrn(t,e,l)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,l=(t-e)/26,r=1<=0);var e=t%26,l=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=l)return this;if(0!==e&&l++,this.length=Math.min(l,this.length),0!==e){var r=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(s/67108864|0),this.words[r+l]=67108863&i}for(;r>26,this.words[r+l]=67108863&i;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r>26,this.words[r]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,e){var l=(this.length,t.length),n=this.clone(),r=t,o=0|r.words[r.length-1];0!==(l=26-this._countBits(o))&&(r=r.ushln(l),n.iushln(l),o=0|r.words[r.length-1]);var a,s=n.length-r.length;if("mod"!==e){(a=new i(null)).length=s+1,a.words=new Array(a.length);for(var u=0;u=0;h--){var d=67108864*(0|n.words[r.length+h])+(0|n.words[r.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==l&&n.iushrn(l),{div:a||null,mod:n}},i.prototype.divmod=function(t,e,l){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),l&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),l&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var l=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),i=l.cmp(n);return i<0||1===r&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,l=0,r=this.length-1;r>=0;r--)l=(e*l+(0|this.words[r]))%t;return l},i.prototype.idivn=function(t){n(t<=67108863);for(var e=0,l=this.length-1;l>=0;l--){var r=(0|this.words[l])+67108864*e;this.words[l]=r/t|0,e=r%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,l=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new i(1),o=new i(0),a=new i(0),s=new i(1),u=0;e.isEven()&&l.isEven();)e.iushrn(1),l.iushrn(1),++u;for(var c=l.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(c),o.isub(h)),r.iushrn(1),o.iushrn(1);for(var p=0,g=1;0===(l.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(l.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(c),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(l)>=0?(e.isub(l),r.isub(a),o.isub(s)):(l.isub(e),a.isub(r),s.isub(o))}return{a:a,b:s,gcd:l.iushln(u)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,l=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new i(1),a=new i(0),s=l.clone();e.cmpn(1)>0&&l.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,d=1;0===(l.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(l.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(l)>=0?(e.isub(l),o.isub(a)):(l.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),l=t.clone();e.negative=0,l.negative=0;for(var n=0;e.isEven()&&l.isEven();n++)e.iushrn(1),l.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;l.isEven();)l.iushrn(1);var r=e.cmp(l);if(r<0){var i=e;e=l,l=i}else if(0===r||0===l.cmpn(1))break;e.isub(l)}return l.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0===(1&this.words[0])},i.prototype.isOdd=function(){return 1===(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,l=(t-e)/26,r=1<>>26,a&=67108863,this.words[o]=a}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,l=t<0;if(0!==this.negative&&!l)return-1;if(0===this.negative&&l)return 1;if(this.strip(),this.length>1)e=1;else{l&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;l--){var n=0|this.words[l],r=0|t.words[l];if(n!==r){nr&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new _(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"===typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,l=t;do{this.split(l,this.tmp),e=(l=(l=this.imulK(l)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?l.isub(this.p):void 0!==l.strip?l.strip():l._strip(),l},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(y,v),y.prototype.split=function(t,e){for(var l=Math.min(t.length,9),n=0;n>>22,r=i}r>>>=22,t.words[n-10]=r,0===r&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,l=0;l>>=26,t.words[l]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(m[t])return m[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new b;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return m[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);var l=t.add(e);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);var l=t.iadd(e);return l.cmp(this.m)>=0&&l.isub(this.m),l},_.prototype.sub=function(t,e){this._verify2(t,e);var l=t.sub(e);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var l=t.isub(e);return l.cmpn(0)<0&&l.iadd(this.m),l},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var l=this.m.add(new i(1)).iushrn(2);return this.pow(t,l)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new i(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,u).cmp(s);)c.redIAdd(s);for(var h=this.pow(c,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=o;0!==f.cmp(a);){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m=0;n--){for(var u=e.words[n],c=s-1;c>=0;c--){var h=u>>c&1;r!==l[0]&&(r=this.sqr(r)),0!==h||0!==o?(o<<=1,o|=h,(4===++a||0===n&&0===c)&&(r=this.mul(r,l[o]),a=0,o=0)):a=0}s=26}return r},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new S(t)},r(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var l=t.imul(e),n=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(n).iushrn(this.shift),i=r;return r.cmp(this.m)>=0?i=r.isub(this.m):r.cmpn(0)<0&&(i=r.iadd(this.m)),i._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var l=t.mul(e),n=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=l.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,l(120)(t))},function(t,e,l){"use strict";var n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",i=new RegExp("^"+r+"$");e.isExist=function(t){return"undefined"!==typeof t},e.isEmptyObject=function(t){return 0===Object.keys(t).length},e.merge=function(t,e,l){if(e)for(var n=Object.keys(e),r=n.length,i=0;i>>0,n=0;n0)for(l=0;l=0?l?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},H={};function Z(t,e,l,n){var r=n;"string"===typeof n&&(r=function(){return this[n]()}),t&&(H[t]=r),e&&(H[e[0]]=function(){return B(r.apply(this,arguments),e[1],e[2])}),l&&(H[l]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function V(t,e){return t.isValid()?(e=W(e,t.localeData()),U[e]=U[e]||function(t){var e,l,n,r=t.match(F);for(e=0,l=r.length;e=0&&z.test(t);)t=t.replace(z,n),z.lastIndex=0,l-=1;return t}var G=/\d/,Y=/\d\d/,q=/\d{3}/,X=/\d{4}/,K=/[+-]?\d{6}/,$=/\d\d?/,Q=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,et=/\d{1,4}/,lt=/[+-]?\d{1,6}/,nt=/\d+/,rt=/[+-]?\d+/,it=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,at=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,st={};function ut(t,e,l){st[t]=O(e)?e:function(t,n){return t&&l?l:e}}function ct(t,e){return c(st,t)?st[t](e._strict,e._locale):new RegExp(ht(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,l,n,r){return e||l||n||r}))))}function ht(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var dt={};function ft(t,e){var l,n=e;for("string"===typeof t&&(t=[t]),a(e)&&(n=function(t,l){l[e]=_(t)}),l=0;l68?1900:2e3)};var yt,bt=wt("FullYear",!0);function wt(t,e){return function(l){return null!=l?(_t(this,t,l),n.updateOffset(this,e),this):xt(this,t)}}function xt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function _t(t,e,l){t.isValid()&&!isNaN(l)&&("FullYear"===e&&vt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](l,t.month(),St(l,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](l))}function St(t,e){if(isNaN(t)||isNaN(e))return NaN;var l,n=(e%(l=12)+l)%l;return t+=(e-n)/12,1===n?vt(t)?29:28:31-n%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0?(a=new Date(t+400,e,l,n,r,i,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,l,n,r,i,o),a}function Lt(t){var e;if(t<100&&t>=0){var l=Array.prototype.slice.call(arguments);l[0]=t+400,e=new Date(Date.UTC.apply(null,l)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Rt(t,e,l){var n=7+e-l;return-(7+Lt(t,0,n).getUTCDay()-e)%7+n-1}function Nt(t,e,l,n,r){var i,o,a=1+7*(e-1)+(7+l-n)%7+Rt(t,n,r);return a<=0?o=mt(i=t-1)+a:a>mt(t)?(i=t+1,o=a-mt(t)):(i=t,o=a),{year:i,dayOfYear:o}}function jt(t,e,l){var n,r,i=Rt(t.year(),e,l),o=Math.floor((t.dayOfYear()-i-1)/7)+1;return o<1?n=o+Bt(r=t.year()-1,e,l):o>Bt(t.year(),e,l)?(n=o-Bt(t.year(),e,l),r=t.year()+1):(r=t.year(),n=o),{week:n,year:r}}function Bt(t,e,l){var n=Rt(t,e,l),r=Rt(t+1,e,l);return(mt(t)-n+r)/7}function Ft(t,e){return t.slice(e,7).concat(t.slice(0,e))}Z("w",["ww",2],"wo","week"),Z("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),j("week",5),j("isoWeek",5),ut("w",$),ut("ww",$,Y),ut("W",$),ut("WW",$,Y),pt(["w","ww","W","WW"],(function(t,e,l,n){e[n.substr(0,1)]=_(t)})),Z("d",0,"do","day"),Z("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),Z("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),Z("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),Z("e",0,0,"weekday"),Z("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),ut("d",$),ut("e",$),ut("E",$),ut("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ut("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ut("dddd",(function(t,e){return e.weekdaysRegex(t)})),pt(["dd","ddd","dddd"],(function(t,e,l,n){var r=l._locale.weekdaysParse(t,n,l._strict);null!=r?e.d=r:f(l).invalidWeekday=t})),pt(["d","e","E"],(function(t,e,l,n){e[n]=_(t)}));var zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ut="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ht="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Zt(t,e,l){var n,r,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return l?"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,o))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,o))?r:null:"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,o))||-1!==(r=yt.call(this._shortWeekdaysParse,o))||-1!==(r=yt.call(this._minWeekdaysParse,o))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,o))||-1!==(r=yt.call(this._weekdaysParse,o))||-1!==(r=yt.call(this._minWeekdaysParse,o))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,o))||-1!==(r=yt.call(this._weekdaysParse,o))||-1!==(r=yt.call(this._shortWeekdaysParse,o))?r:null}var Vt=at,Wt=at,Gt=at;function Yt(){function t(t,e){return e.length-t.length}var e,l,n,r,i,o=[],a=[],s=[],u=[];for(e=0;e<7;e++)l=d([2e3,1]).day(e),n=this.weekdaysMin(l,""),r=this.weekdaysShort(l,""),i=this.weekdays(l,""),o.push(n),a.push(r),s.push(i),u.push(n),u.push(r),u.push(i);for(o.sort(t),a.sort(t),s.sort(t),u.sort(t),e=0;e<7;e++)a[e]=ht(a[e]),s[e]=ht(s[e]),u[e]=ht(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function qt(){return this.hours()%12||12}function Xt(t,e){Z(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Kt(t,e){return e._meridiemParse}Z("H",["HH",2],0,"hour"),Z("h",["hh",2],0,qt),Z("k",["kk",2],0,(function(){return this.hours()||24})),Z("hmm",0,0,(function(){return""+qt.apply(this)+B(this.minutes(),2)})),Z("hmmss",0,0,(function(){return""+qt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),Z("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),Z("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),Xt("a",!0),Xt("A",!1),I("hour","h"),j("hour",13),ut("a",Kt),ut("A",Kt),ut("H",$),ut("h",$),ut("k",$),ut("HH",$,Y),ut("hh",$,Y),ut("kk",$,Y),ut("hmm",Q),ut("hmmss",J),ut("Hmm",Q),ut("Hmmss",J),ft(["H","HH"],3),ft(["k","kk"],(function(t,e,l){var n=_(t);e[3]=24===n?0:n})),ft(["a","A"],(function(t,e,l){l._isPm=l._locale.isPM(t),l._meridiem=t})),ft(["h","hh"],(function(t,e,l){e[3]=_(t),f(l).bigHour=!0})),ft("hmm",(function(t,e,l){var n=t.length-2;e[3]=_(t.substr(0,n)),e[4]=_(t.substr(n)),f(l).bigHour=!0})),ft("hmmss",(function(t,e,l){var n=t.length-4,r=t.length-2;e[3]=_(t.substr(0,n)),e[4]=_(t.substr(n,2)),e[5]=_(t.substr(r)),f(l).bigHour=!0})),ft("Hmm",(function(t,e,l){var n=t.length-2;e[3]=_(t.substr(0,n)),e[4]=_(t.substr(n))})),ft("Hmmss",(function(t,e,l){var n=t.length-4,r=t.length-2;e[3]=_(t.substr(0,n)),e[4]=_(t.substr(n,2)),e[5]=_(t.substr(r))}));var $t,Qt=wt("Hours",!0),Jt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Et,monthsShort:Ct,week:{dow:0,doy:6},weekdays:zt,weekdaysMin:Ht,weekdaysShort:Ut,meridiemParse:/[ap]\.?m?\.?/i},te={},ee={};function le(t){return t?t.toLowerCase().replace("_","-"):t}function ne(e){var l=null;if(!te[e]&&"undefined"!==typeof t&&t&&t.exports)try{l=$t._abbr,!function(){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}(),re(l)}catch(n){}return te[e]}function re(t,e){var l;return t&&((l=o(e)?oe(t):ie(t,e))?$t=l:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),$t._abbr}function ie(t,e){if(null!==e){var l,n=Jt;if(e.abbr=t,null!=te[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=te[t]._config;else if(null!=e.parentLocale)if(null!=te[e.parentLocale])n=te[e.parentLocale]._config;else{if(null==(l=ne(e.parentLocale)))return ee[e.parentLocale]||(ee[e.parentLocale]=[]),ee[e.parentLocale].push({name:t,config:e}),null;n=l._config}return te[t]=new D(A(n,e)),ee[t]&&ee[t].forEach((function(t){ie(t.name,t.config)})),re(t),te[t]}return delete te[t],null}function oe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return $t;if(!r(t)){if(e=ne(t))return e;t=[t]}return function(t){for(var e,l,n,r,i=0;i0;){if(n=ne(r.slice(0,e).join("-")))return n;if(l&&l.length>=e&&S(r,l,!0)>=e-1)break;e--}i++}return $t}(t)}function ae(t){var e,l=t._a;return l&&-2===f(t).overflow&&(e=l[1]<0||l[1]>11?1:l[2]<1||l[2]>St(l[0],l[1])?2:l[3]<0||l[3]>24||24===l[3]&&(0!==l[4]||0!==l[5]||0!==l[6])?3:l[4]<0||l[4]>59?4:l[5]<0||l[5]>59?5:l[6]<0||l[6]>999?6:-1,f(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}function se(t,e,l){return null!=t?t:null!=e?e:l}function ue(t){var e,l,r,i,o,a=[];if(!t._d){for(r=function(t){var e=new Date(n.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,l,n,r,i,o,a,s;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)i=1,o=4,l=se(e.GG,t._a[0],jt(Me(),1,4).year),n=se(e.W,1),((r=se(e.E,1))<1||r>7)&&(s=!0);else{i=t._locale._week.dow,o=t._locale._week.doy;var u=jt(Me(),i,o);l=se(e.gg,t._a[0],u.year),n=se(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(s=!0):null!=e.e?(r=e.e+i,(e.e<0||e.e>6)&&(s=!0)):r=i}n<1||n>Bt(l,i,o)?f(t)._overflowWeeks=!0:null!=s?f(t)._overflowWeekday=!0:(a=Nt(l,n,r,i,o),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=se(t._a[0],r[0]),(t._dayOfYear>mt(o)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),l=Lt(o,0,t._dayOfYear),t._a[1]=l.getUTCMonth(),t._a[2]=l.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Lt:It).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&"undefined"!==typeof t._w.d&&t._w.d!==i&&(f(t).weekdayMismatch=!0)}}var ce=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,he=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,de=/Z|[+-]\d\d(?::?\d\d)?/,fe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],pe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ge=/^\/?Date\((\-?\d+)/i;function me(t){var e,l,n,r,i,o,a=t._i,s=ce.exec(a)||he.exec(a);if(s){for(f(t).iso=!0,e=0,l=fe.length;e0&&f(t).unusedInput.push(o),a=a.slice(a.indexOf(l)+l.length),u+=l.length),H[i]?(l?f(t).empty=!1:f(t).unusedTokens.push(i),gt(i,l,t)):t._strict&&!l&&f(t).unusedTokens.push(i);f(t).charsLeftOver=s-u,a.length>0&&f(t).unusedInput.push(a),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,l){var n;return null==l?e:null!=t.meridiemHour?t.meridiemHour(e,l):null!=t.isPM?((n=t.isPM(l))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),ue(t),ae(t)}else we(t);else me(t)}function _e(t){var e=t._i,l=t._f;return t._locale=t._locale||oe(t._l),null===e||void 0===l&&""===e?g({nullInput:!0}):("string"===typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new b(ae(e)):(s(e)?t._d=e:r(l)?function(t){var e,l,n,r,i;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis?this:t:g()}));function ke(t,e){var l,n;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Me();for(l=e[0],n=1;n=0?new Date(t+400,e,l)-126227808e5:new Date(t,e,l).valueOf()}function Je(t,e,l){return t<100&&t>=0?Date.UTC(t+400,e,l)-126227808e5:Date.UTC(t,e,l)}function tl(t,e){Z(0,[t,t.length],0,e)}function el(t,e,l,n,r){var i;return null==t?jt(this,n,r).year:(e>(i=Bt(t,n,r))&&(e=i),ll.call(this,t,e,l,n,r))}function ll(t,e,l,n,r){var i=Nt(t,e,l,n,r),o=Lt(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Z(0,["gg",2],0,(function(){return this.weekYear()%100})),Z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),tl("gggg","weekYear"),tl("ggggg","weekYear"),tl("GGGG","isoWeekYear"),tl("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),ut("G",rt),ut("g",rt),ut("GG",$,Y),ut("gg",$,Y),ut("GGGG",et,X),ut("gggg",et,X),ut("GGGGG",lt,K),ut("ggggg",lt,K),pt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,l,n){e[n.substr(0,2)]=_(t)})),pt(["gg","GG"],(function(t,e,l,r){e[r]=n.parseTwoDigitYear(t)})),Z("Q",0,"Qo","quarter"),I("quarter","Q"),j("quarter",7),ut("Q",G),ft("Q",(function(t,e){e[1]=3*(_(t)-1)})),Z("D",["DD",2],"Do","date"),I("date","D"),j("date",9),ut("D",$),ut("DD",$,Y),ut("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),ft(["D","DD"],2),ft("Do",(function(t,e){e[2]=_(t.match($)[0])}));var nl=wt("Date",!0);Z("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),j("dayOfYear",4),ut("DDD",tt),ut("DDDD",q),ft(["DDD","DDDD"],(function(t,e,l){l._dayOfYear=_(t)})),Z("m",["mm",2],0,"minute"),I("minute","m"),j("minute",14),ut("m",$),ut("mm",$,Y),ft(["m","mm"],4);var rl=wt("Minutes",!1);Z("s",["ss",2],0,"second"),I("second","s"),j("second",15),ut("s",$),ut("ss",$,Y),ft(["s","ss"],5);var il,ol=wt("Seconds",!1);for(Z("S",0,0,(function(){return~~(this.millisecond()/100)})),Z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Z(0,["SSS",3],0,"millisecond"),Z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),j("millisecond",16),ut("S",tt,G),ut("SS",tt,Y),ut("SSS",tt,q),il="SSSS";il.length<=9;il+="S")ut(il,nt);function al(t,e){e[6]=_(1e3*("0."+t))}for(il="S";il.length<=9;il+="S")ft(il,al);var sl=wt("Milliseconds",!1);Z("z",0,0,"zoneAbbr"),Z("zz",0,0,"zoneName");var ul=b.prototype;function cl(t){return t}ul.add=We,ul.calendar=function(t,e){var l=t||Me(),r=Re(l,this).startOf("day"),i=n.calendarFormat(this,r)||"sameElse",o=e&&(O(e[i])?e[i].call(this,l):e[i]);return this.format(o||this.localeData().calendar(i,this,Me(l)))},ul.clone=function(){return new b(this)},ul.diff=function(t,e,l){var n,r,i;if(!this.isValid())return NaN;if(!(n=Re(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=L(e)){case"year":i=Ye(this,n)/12;break;case"month":i=Ye(this,n);break;case"quarter":i=Ye(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return l?i:x(i)},ul.endOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var l=this._isUTC?Je:Qe;switch(t){case"year":e=l(this.year()+1,0,1)-1;break;case"quarter":e=l(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=l(this.year(),this.month()+1,1)-1;break;case"week":e=l(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=l(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=l(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-$e(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-$e(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-$e(e,1e3)-1}return this._d.setTime(e),n.updateOffset(this,!0),this},ul.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var e=V(this,t);return this.localeData().postformat(e)},ul.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Me(t).isValid())?ze({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ul.fromNow=function(t){return this.from(Me(),t)},ul.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Me(t).isValid())?ze({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ul.toNow=function(t){return this.to(Me(),t)},ul.get=function(t){return O(this[t=L(t)])?this[t]():this},ul.invalidAt=function(){return f(this).overflow},ul.isAfter=function(t,e){var l=w(t)?t:Me(t);return!(!this.isValid()||!l.isValid())&&("millisecond"===(e=L(e)||"millisecond")?this.valueOf()>l.valueOf():l.valueOf()9999?V(l,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(l,"Z")):V(l,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ul.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var l="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(l+n+"-MM-DD[T]HH:mm:ss.SSS"+r)},ul.toJSON=function(){return this.isValid()?this.toISOString():null},ul.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ul.unix=function(){return Math.floor(this.valueOf()/1e3)},ul.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ul.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ul.year=bt,ul.isLeapYear=function(){return vt(this.year())},ul.weekYear=function(t){return el.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ul.isoWeekYear=function(t){return el.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ul.quarter=ul.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ul.month=Ot,ul.daysInMonth=function(){return St(this.year(),this.month())},ul.week=ul.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ul.isoWeek=ul.isoWeeks=function(t){var e=jt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ul.weeksInYear=function(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)},ul.isoWeeksInYear=function(){return Bt(this.year(),1,4)},ul.date=nl,ul.day=ul.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!==typeof t?t:isNaN(t)?"number"===typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},ul.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ul.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"===typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},ul.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ul.hour=ul.hours=Qt,ul.minute=ul.minutes=rl,ul.second=ul.seconds=ol,ul.millisecond=ul.milliseconds=sl,ul.utcOffset=function(t,e,l){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"===typeof t){if(null===(t=Le(ot,t)))return this}else Math.abs(t)<16&&!l&&(t*=60);return!this._isUTC&&e&&(r=Ne(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!e||this._changeInProgress?Ve(this,ze(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Ne(this)},ul.utc=function(t){return this.utcOffset(0,t)},ul.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ne(this),"m")),this},ul.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var t=Le(it,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ul.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Me(t).utcOffset():0,(this.utcOffset()-t)%60===0)},ul.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ul.isLocal=function(){return!!this.isValid()&&!this._isUTC},ul.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ul.isUtc=je,ul.isUTC=je,ul.zoneAbbr=function(){return this._isUTC?"UTC":""},ul.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ul.dates=E("dates accessor is deprecated. Use date instead.",nl),ul.months=E("months accessor is deprecated. Use month instead",Ot),ul.years=E("years accessor is deprecated. Use year instead",bt),ul.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!==typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),ul.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=_e(t))._a){var e=t._isUTC?d(t._a):Me(t._a);this._isDSTShifted=this.isValid()&&S(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var hl=D.prototype;function dl(t,e,l,n){var r=oe(),i=d().set(n,e);return r[l](i,t)}function fl(t,e,l){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return dl(t,e,l,"month");var n,r=[];for(n=0;n<12;n++)r[n]=dl(t,n,l,"month");return r}function pl(t,e,l,n){"boolean"===typeof t?(a(e)&&(l=e,e=void 0),e=e||""):(l=e=t,t=!1,a(e)&&(l=e,e=void 0),e=e||"");var r,i=oe(),o=t?i._week.dow:0;if(null!=l)return dl(e,(l+o)%7,n,"day");var s=[];for(r=0;r<7;r++)s[r]=dl(e,(r+o)%7,n,"day");return s}hl.calendar=function(t,e,l){var n=this._calendar[t]||this._calendar.sameElse;return O(n)?n.call(e,l):n},hl.longDateFormat=function(t){var e=this._longDateFormat[t],l=this._longDateFormat[t.toUpperCase()];return e||!l?e:(this._longDateFormat[t]=l.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},hl.invalidDate=function(){return this._invalidDate},hl.ordinal=function(t){return this._ordinal.replace("%d",t)},hl.preparse=cl,hl.postformat=cl,hl.relativeTime=function(t,e,l,n){var r=this._relativeTime[l];return O(r)?r(t,e,l,n):r.replace(/%d/i,t)},hl.pastFuture=function(t,e){var l=this._relativeTime[t>0?"future":"past"];return O(l)?l(e):l.replace(/%s/i,e)},hl.set=function(t){var e,l;for(l in t)O(e=t[l])?this[l]=e:this["_"+l]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hl.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Mt).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},hl.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Mt.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hl.monthsParse=function(t,e,l){var n,r,i;if(this._monthsParseExact)return kt.call(this,t,e,l);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=d([2e3,n]),l&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),l||this._monthsParse[n]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),l&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(l&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!l&&this._monthsParse[n].test(t))return n}},hl.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Pt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Dt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},hl.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Pt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=At),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},hl.week=function(t){return jt(t,this._week.dow,this._week.doy).week},hl.firstDayOfYear=function(){return this._week.doy},hl.firstDayOfWeek=function(){return this._week.dow},hl.weekdays=function(t,e){var l=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ft(l,this._week.dow):t?l[t.day()]:l},hl.weekdaysMin=function(t){return!0===t?Ft(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},hl.weekdaysShort=function(t){return!0===t?Ft(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},hl.weekdaysParse=function(t,e,l){var n,r,i;if(this._weekdaysParseExact)return Zt.call(this,t,e,l);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=d([2e3,1]).day(n),l&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),l&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(l&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(l&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!l&&this._weekdaysParse[n].test(t))return n}},hl.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Vt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},hl.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Wt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hl.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hl.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},hl.meridiem=function(t,e,l){return t>11?l?"pm":"PM":l?"am":"AM"},re("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===_(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=E("moment.lang is deprecated. Use moment.locale instead.",re),n.langData=E("moment.langData is deprecated. Use moment.localeData instead.",oe);var gl=Math.abs;function ml(t,e,l,n){var r=ze(e,l);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function vl(t){return t<0?Math.floor(t):Math.ceil(t)}function yl(t){return 4800*t/146097}function bl(t){return 146097*t/4800}function wl(t){return function(){return this.as(t)}}var xl=wl("ms"),_l=wl("s"),Sl=wl("m"),Ml=wl("h"),El=wl("d"),Cl=wl("w"),kl=wl("M"),Tl=wl("Q"),Ol=wl("y");function Al(t){return function(){return this.isValid()?this._data[t]:NaN}}var Dl=Al("milliseconds"),Pl=Al("seconds"),Il=Al("minutes"),Ll=Al("hours"),Rl=Al("days"),Nl=Al("months"),jl=Al("years"),Bl=Math.round,Fl={ss:44,s:45,m:45,h:22,d:26,M:11};function zl(t,e,l,n,r){return r.relativeTime(e||1,!!l,t,n)}var Ul=Math.abs;function Hl(t){return(t>0)-(t<0)||+t}function Zl(){if(!this.isValid())return this.localeData().invalidDate();var t,e,l=Ul(this._milliseconds)/1e3,n=Ul(this._days),r=Ul(this._months);t=x(l/60),e=x(t/60),l%=60,t%=60;var i=x(r/12),o=r%=12,a=n,s=e,u=t,c=l?l.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=Hl(this._months)!==Hl(h)?"-":"",p=Hl(this._days)!==Hl(h)?"-":"",g=Hl(this._milliseconds)!==Hl(h)?"-":"";return d+"P"+(i?f+i+"Y":"")+(o?f+o+"M":"")+(a?p+a+"D":"")+(s||u||c?"T":"")+(s?g+s+"H":"")+(u?g+u+"M":"")+(c?g+c+"S":"")}var Vl=Oe.prototype;return Vl.isValid=function(){return this._isValid},Vl.abs=function(){var t=this._data;return this._milliseconds=gl(this._milliseconds),this._days=gl(this._days),this._months=gl(this._months),t.milliseconds=gl(t.milliseconds),t.seconds=gl(t.seconds),t.minutes=gl(t.minutes),t.hours=gl(t.hours),t.months=gl(t.months),t.years=gl(t.years),this},Vl.add=function(t,e){return ml(this,t,e,1)},Vl.subtract=function(t,e){return ml(this,t,e,-1)},Vl.as=function(t){if(!this.isValid())return NaN;var e,l,n=this._milliseconds;if("month"===(t=L(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,l=this._months+yl(e),t){case"month":return l;case"quarter":return l/3;case"year":return l/12}else switch(e=this._days+Math.round(bl(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Vl.asMilliseconds=xl,Vl.asSeconds=_l,Vl.asMinutes=Sl,Vl.asHours=Ml,Vl.asDays=El,Vl.asWeeks=Cl,Vl.asMonths=kl,Vl.asQuarters=Tl,Vl.asYears=Ol,Vl.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN},Vl._bubble=function(){var t,e,l,n,r,i=this._milliseconds,o=this._days,a=this._months,s=this._data;return i>=0&&o>=0&&a>=0||i<=0&&o<=0&&a<=0||(i+=864e5*vl(bl(a)+o),o=0,a=0),s.milliseconds=i%1e3,t=x(i/1e3),s.seconds=t%60,e=x(t/60),s.minutes=e%60,l=x(e/60),s.hours=l%24,o+=x(l/24),r=x(yl(o)),a+=r,o-=vl(bl(r)),n=x(a/12),a%=12,s.days=o,s.months=a,s.years=n,this},Vl.clone=function(){return ze(this)},Vl.get=function(t){return t=L(t),this.isValid()?this[t+"s"]():NaN},Vl.milliseconds=Dl,Vl.seconds=Pl,Vl.minutes=Il,Vl.hours=Ll,Vl.days=Rl,Vl.weeks=function(){return x(this.days()/7)},Vl.months=Nl,Vl.years=jl,Vl.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),l=function(t,e,l){var n=ze(t).abs(),r=Bl(n.as("s")),i=Bl(n.as("m")),o=Bl(n.as("h")),a=Bl(n.as("d")),s=Bl(n.as("M")),u=Bl(n.as("y")),c=r<=Fl.ss&&["s",r]||r0,c[4]=l,zl.apply(null,c)}(this,!t,e);return t&&(l=e.pastFuture(+this,l)),e.postformat(l)},Vl.toISOString=Zl,Vl.toString=Zl,Vl.toJSON=Zl,Vl.locale=qe,Vl.localeData=Ke,Vl.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zl),Vl.lang=Xe,Z("X",0,0,"unix"),Z("x",0,0,"valueOf"),ut("x",rt),ut("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",(function(t,e,l){l._d=new Date(1e3*parseFloat(t,10))})),ft("x",(function(t,e,l){l._d=new Date(_(t))})),n.version="2.24.0",e=Me,n.fn=ul,n.min=function(){var t=[].slice.call(arguments,0);return ke("isBefore",t)},n.max=function(){var t=[].slice.call(arguments,0);return ke("isAfter",t)},n.now=function(){return Date.now?Date.now():+new Date},n.utc=d,n.unix=function(t){return Me(1e3*t)},n.months=function(t,e){return fl(t,e,"months")},n.isDate=s,n.locale=re,n.invalid=g,n.duration=ze,n.isMoment=w,n.weekdays=function(t,e,l){return pl(t,e,l,"weekdays")},n.parseZone=function(){return Me.apply(null,arguments).parseZone()},n.localeData=oe,n.isDuration=Ae,n.monthsShort=function(t,e){return fl(t,e,"monthsShort")},n.weekdaysMin=function(t,e,l){return pl(t,e,l,"weekdaysMin")},n.defineLocale=ie,n.updateLocale=function(t,e){if(null!=e){var l,n,r=Jt;null!=(n=ne(t))&&(r=n._config),e=A(r,e),(l=new D(e)).parentLocale=te[t],te[t]=l,re(t)}else null!=te[t]&&(null!=te[t].parentLocale?te[t]=te[t].parentLocale:null!=te[t]&&delete te[t]);return te[t]},n.locales=function(){return C(te)},n.weekdaysShort=function(t,e,l){return pl(t,e,l,"weekdaysShort")},n.normalizeUnits=L,n.relativeTimeRounding=function(t){return void 0===t?Bl:"function"===typeof t&&(Bl=t,!0)},n.relativeTimeThreshold=function(t,e){return void 0!==Fl[t]&&(void 0===e?Fl[t]:(Fl[t]=e,"s"===t&&(Fl.ss=e-1),!0))},n.calendarFormat=function(t,e){var l=t.diff(e,"days",!0);return l<-6?"sameElse":l<-1?"lastWeek":l<0?"lastDay":l<1?"sameDay":l<2?"nextDay":l<7?"nextWeek":"sameElse"},n.prototype=ul,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}).call(this,l(120)(t))},function(t,e,l){"use strict";e.a=function(t,e){}},function(t,e,l){"use strict";var n=l(3),r=l(21),i=l(22),o=l(31),a=l(0),s=l.n(a),u=l(1),c=l.n(u),h=l(257),d=l(4),f=l.n(d),p=l(212),g=l(10),m={a11y:c.a.bool,disabled:c.a.bool,direction:c.a.oneOf(["up","down","left","right"]),group:c.a.bool,isOpen:c.a.bool,nav:c.a.bool,active:c.a.bool,addonType:c.a.oneOfType([c.a.bool,c.a.oneOf(["prepend","append"])]),size:c.a.string,tag:g.tagPropType,toggle:c.a.func,children:c.a.node,className:c.a.string,cssModule:c.a.object,inNavbar:c.a.bool,setActiveFromChild:c.a.bool},v=[g.keyCodes.space,g.keyCodes.enter,g.keyCodes.up,g.keyCodes.down,g.keyCodes.end,g.keyCodes.home],y=function(t){function e(e){var l;return(l=t.call(this,e)||this).addEvents=l.addEvents.bind(Object(i.a)(l)),l.handleDocumentClick=l.handleDocumentClick.bind(Object(i.a)(l)),l.handleKeyDown=l.handleKeyDown.bind(Object(i.a)(l)),l.removeEvents=l.removeEvents.bind(Object(i.a)(l)),l.toggle=l.toggle.bind(Object(i.a)(l)),l.containerRef=s.a.createRef(),l}Object(o.a)(e,t);var l=e.prototype;return l.getContextValue=function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:"down"===this.props.direction&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled}},l.componentDidMount=function(){this.handleProps()},l.componentDidUpdate=function(t){this.props.isOpen!==t.isOpen&&this.handleProps()},l.componentWillUnmount=function(){this.removeEvents()},l.getContainer=function(){return this.containerRef.current},l.getMenuCtrl=function(){return this._$menuCtrl||(this._$menuCtrl=this.getContainer().querySelector("[aria-expanded]")),this._$menuCtrl},l.getMenuItems=function(){return[].slice.call(this.getContainer().querySelectorAll('[role="menuitem"]'))},l.addEvents=function(){var t=this;["click","touchstart","keyup"].forEach((function(e){return document.addEventListener(e,t.handleDocumentClick,!0)}))},l.removeEvents=function(){var t=this;["click","touchstart","keyup"].forEach((function(e){return document.removeEventListener(e,t.handleDocumentClick,!0)}))},l.handleDocumentClick=function(t){if(!t||3!==t.which&&("keyup"!==t.type||t.which===g.keyCodes.tab)){var e=this.getContainer();(!e.contains(t.target)||e===t.target||"keyup"===t.type&&t.which!==g.keyCodes.tab)&&this.toggle(t)}},l.handleKeyDown=function(t){var e=this;if(!/input|textarea/i.test(t.target.tagName)&&(g.keyCodes.tab!==t.which||"menuitem"===t.target.getAttribute("role")&&this.props.a11y)&&((-1!==v.indexOf(t.which)||t.which>=48&&t.which<=90)&&t.preventDefault(),!this.props.disabled&&(this.getMenuCtrl()===t.target&&(!this.props.isOpen&&[g.keyCodes.space,g.keyCodes.enter,g.keyCodes.up,g.keyCodes.down].indexOf(t.which)>-1?(this.toggle(t),setTimeout((function(){return e.getMenuItems()[0].focus()}))):this.props.isOpen&&t.which===g.keyCodes.esc&&this.toggle(t)),this.props.isOpen&&"menuitem"===t.target.getAttribute("role"))))if([g.keyCodes.tab,g.keyCodes.esc].indexOf(t.which)>-1)this.toggle(t),this.getMenuCtrl().focus();else if([g.keyCodes.space,g.keyCodes.enter].indexOf(t.which)>-1)t.target.click(),this.getMenuCtrl().focus();else if([g.keyCodes.down,g.keyCodes.up].indexOf(t.which)>-1||[g.keyCodes.n,g.keyCodes.p].indexOf(t.which)>-1&&t.ctrlKey){var l=this.getMenuItems(),n=l.indexOf(t.target);g.keyCodes.up===t.which||g.keyCodes.p===t.which&&t.ctrlKey?n=0!==n?n-1:l.length-1:(g.keyCodes.down===t.which||g.keyCodes.n===t.which&&t.ctrlKey)&&(n=n===l.length-1?0:n+1),l[n].focus()}else if(g.keyCodes.end===t.which){var r=this.getMenuItems();r[r.length-1].focus()}else if(g.keyCodes.home===t.which){this.getMenuItems()[0].focus()}else if(t.which>=48&&t.which<=90)for(var i=this.getMenuItems(),o=String.fromCharCode(t.which).toLowerCase(),a=0;a-1;else l=!Object(R.a)(c.current).documentElement.contains(t.target)||c.current.contains(t.target);l||!n&&e||o(t)}})),m=function(t){return function(l){d.current=!0;var n=e.props[t];n&&n(l)}},v={ref:p};return!1!==s&&(v[s]=m(s)),E.useEffect((function(){if(!1!==s){var t=B(s),e=Object(R.a)(c.current),l=function(){u.current=!0};return e.addEventListener(t,g),e.addEventListener("touchmove",l),function(){e.removeEventListener(t,g),e.removeEventListener("touchmove",l)}}}),[g,s]),!1!==i&&(v[i]=m(i)),E.useEffect((function(){if(!1!==i){var t=B(i),e=Object(R.a)(c.current);return e.addEventListener(t,g),function(){e.removeEventListener(t,g)}}}),[g,i]),E.createElement(E.Fragment,null,E.cloneElement(e,v))},z=l(64),U=l(258),H=l(119),Z=l(21),V=l(31),W=!1,G=C.a.createContext(null),Y=function(t){function e(e,l){var n;n=t.call(this,e,l)||this;var r,i=l&&!l.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?i?(r="exited",n.appearStatus="entering"):r="entered":r=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",n.state={status:r},n.nextCallback=null,n}Object(V.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null};var l=e.prototype;return l.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},l.componentDidUpdate=function(t){var e=null;if(t!==this.props){var l=this.state.status;this.props.in?"entering"!==l&&"entered"!==l&&(e="entering"):"entering"!==l&&"entered"!==l||(e="exiting")}this.updateStatus(!1,e)},l.componentWillUnmount=function(){this.cancelNextCallback()},l.getTimeouts=function(){var t,e,l,n=this.props.timeout;return t=e=l=n,null!=n&&"number"!==typeof n&&(t=n.exit,e=n.enter,l=void 0!==n.appear?n.appear:e),{exit:t,enter:e,appear:l}},l.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),"entering"===e?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},l.performEnter=function(t){var e=this,l=this.props.enter,n=this.context?this.context.isMounting:t,r=this.props.nodeRef?[n]:[L.a.findDOMNode(this),n],i=r[0],o=r[1],a=this.getTimeouts(),s=n?a.appear:a.enter;!t&&!l||W?this.safeSetState({status:"entered"},(function(){e.props.onEntered(i)})):(this.props.onEnter(i,o),this.safeSetState({status:"entering"},(function(){e.props.onEntering(i,o),e.onTransitionEnd(s,(function(){e.safeSetState({status:"entered"},(function(){e.props.onEntered(i,o)}))}))})))},l.performExit=function(){var t=this,e=this.props.exit,l=this.getTimeouts(),n=this.props.nodeRef?void 0:L.a.findDOMNode(this);e&&!W?(this.props.onExit(n),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(n),t.onTransitionEnd(l.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(n)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(n)}))},l.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},l.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},l.setNextCallback=function(t){var e=this,l=!0;return this.nextCallback=function(n){l&&(l=!1,e.nextCallback=null,t(n))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},l.onTransitionEnd=function(t,e){this.setNextCallback(e);var l=this.props.nodeRef?this.props.nodeRef.current:L.a.findDOMNode(this),n=null==t&&!this.props.addEndListener;if(l&&!n){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],i=r[0],o=r[1];this.props.addEndListener(i,o)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},l.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,l=e.children,n=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(Z.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return C.a.createElement(G.Provider,{value:null},"function"===typeof l?l(t,n):C.a.cloneElement(C.a.Children.only(l),n))},e}(C.a.Component);function q(){}Y.contextType=G,Y.propTypes={},Y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:q,onEntering:q,onEntered:q,onExit:q,onExiting:q,onExited:q},Y.UNMOUNTED="unmounted",Y.EXITED="exited",Y.ENTERING="entering",Y.ENTERED="entered",Y.EXITING="exiting";var X=Y,K=l(2372),$=l(348);function Q(){return Object(K.a)()||$.a}var J=function(t){return t.scrollTop};function tt(t,e){var l=t.timeout,n=t.style,r=void 0===n?{}:n;return{duration:r.transitionDuration||"number"===typeof l?l:l[e.mode]||0,delay:r.transitionDelay}}function et(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var lt={entering:{opacity:1,transform:et(1)},entered:{opacity:1,transform:"none"}},nt=E.forwardRef((function(t,e){var l=t.children,n=t.disableStrictModeCompat,r=void 0!==n&&n,i=t.in,o=t.onEnter,a=t.onEntered,s=t.onEntering,u=t.onExit,c=t.onExited,h=t.onExiting,d=t.style,f=t.timeout,p=void 0===f?"auto":f,g=t.TransitionComponent,m=void 0===g?X:g,v=Object(k.a)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),y=E.useRef(),b=E.useRef(),w=Q(),x=w.unstable_strictMode&&!r,_=E.useRef(null),S=Object(N.a)(l.ref,e),M=Object(N.a)(x?_:void 0,S),C=function(t){return function(e,l){if(t){var n=x?[_.current,e]:[e,l],r=Object(H.a)(n,2),i=r[0],o=r[1];void 0===o?t(i):t(i,o)}}},T=C(s),A=C((function(t,e){J(t);var l,n=tt({style:d,timeout:p},{mode:"enter"}),r=n.duration,i=n.delay;"auto"===p?(l=w.transitions.getAutoHeightDuration(t.clientHeight),b.current=l):l=r,t.style.transition=[w.transitions.create("opacity",{duration:l,delay:i}),w.transitions.create("transform",{duration:.666*l,delay:i})].join(","),o&&o(t,e)})),D=C(a),P=C(h),I=C((function(t){var e,l=tt({style:d,timeout:p},{mode:"exit"}),n=l.duration,r=l.delay;"auto"===p?(e=w.transitions.getAutoHeightDuration(t.clientHeight),b.current=e):e=n,t.style.transition=[w.transitions.create("opacity",{duration:e,delay:r}),w.transitions.create("transform",{duration:.666*e,delay:r||.333*e})].join(","),t.style.opacity="0",t.style.transform=et(.75),u&&u(t)})),L=C(c);return E.useEffect((function(){return function(){clearTimeout(y.current)}}),[]),E.createElement(m,Object(O.a)({appear:!0,in:i,nodeRef:x?_:void 0,onEnter:A,onEntered:D,onEntering:T,onExit:I,onExited:L,onExiting:P,addEndListener:function(t,e){var l=x?t:e;"auto"===p&&(y.current=setTimeout(l,b.current||0))},timeout:"auto"===p?null:p},v),(function(t,e){return E.cloneElement(l,Object(O.a)({style:Object(O.a)({opacity:0,transform:et(.75),visibility:"exited"!==t||i?void 0:"hidden"},lt[t],d,l.props.style),ref:M},e))}))}));nt.muiSupportAuto=!0;var rt=nt,it=E.forwardRef((function(t,e){var l=t.classes,n=t.className,r=t.component,i=void 0===r?"div":r,o=t.square,a=void 0!==o&&o,s=t.elevation,u=void 0===s?1:s,c=t.variant,h=void 0===c?"elevation":c,d=Object(k.a)(t,["classes","className","component","square","elevation","variant"]);return E.createElement(i,Object(O.a)({className:Object(A.a)(l.root,n,"outlined"===h?l.outlined:l["elevation".concat(u)],!a&&l.rounded),ref:e},d))})),ot=Object(D.a)((function(t){var e={};return t.shadows.forEach((function(t,l){e["elevation".concat(l)]={boxShadow:t}})),Object(O.a)({root:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},rounded:{borderRadius:t.shape.borderRadius},outlined:{border:"1px solid ".concat(t.palette.divider)}},e)}),{name:"MuiPaper"})(it),at=l(68),st=E.forwardRef((function(t,e){var l=t.action,n=t.classes,r=t.className,i=t.message,o=t.role,a=void 0===o?"alert":o,s=Object(k.a)(t,["action","classes","className","message","role"]);return E.createElement(ot,Object(O.a)({role:a,square:!0,elevation:6,className:Object(A.a)(n.root,r),ref:e},s),E.createElement("div",{className:n.message},i),l?E.createElement("div",{className:n.action},l):null)})),ut=Object(D.a)((function(t){var e="light"===t.palette.type?.8:.98,l=Object(at.b)(t.palette.background.default,e);return{root:Object(O.a)({},t.typography.body2,Object(T.a)({color:t.palette.getContrastText(l),backgroundColor:l,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:t.shape.borderRadius,flexGrow:1},t.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(st),ct=E.forwardRef((function(t,e){var l=t.action,n=t.anchorOrigin,r=(n=void 0===n?{vertical:"bottom",horizontal:"center"}:n).vertical,i=n.horizontal,o=t.autoHideDuration,a=void 0===o?null:o,s=t.children,u=t.classes,c=t.className,h=t.ClickAwayListenerProps,d=t.ContentProps,f=t.disableWindowBlurListener,p=void 0!==f&&f,g=t.message,m=t.onClose,v=t.onEnter,y=t.onEntered,b=t.onEntering,w=t.onExit,x=t.onExited,_=t.onExiting,S=t.onMouseEnter,M=t.onMouseLeave,C=t.open,T=t.resumeHideDuration,D=t.TransitionComponent,I=void 0===D?rt:D,L=t.transitionDuration,R=void 0===L?{enter:P.b.enteringScreen,exit:P.b.leavingScreen}:L,N=t.TransitionProps,B=Object(k.a)(t,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),H=E.useRef(),Z=E.useState(!0),V=Z[0],W=Z[1],G=Object(j.a)((function(){m&&m.apply(void 0,arguments)})),Y=Object(j.a)((function(t){m&&null!=t&&(clearTimeout(H.current),H.current=setTimeout((function(){G(null,"timeout")}),t))}));E.useEffect((function(){return C&&Y(a),function(){clearTimeout(H.current)}}),[C,a,Y]);var q=function(){clearTimeout(H.current)},X=E.useCallback((function(){null!=a&&Y(null!=T?T:.5*a)}),[a,T,Y]);return E.useEffect((function(){if(!p&&C)return window.addEventListener("focus",X),window.addEventListener("blur",q),function(){window.removeEventListener("focus",X),window.removeEventListener("blur",q)}}),[p,X,C]),!C&&V?null:E.createElement(F,Object(O.a)({onClickAway:function(t){m&&m(t,"clickaway")}},h),E.createElement("div",Object(O.a)({className:Object(A.a)(u.root,u["anchorOrigin".concat(Object(z.a)(r)).concat(Object(z.a)(i))],c),onMouseEnter:function(t){S&&S(t),q()},onMouseLeave:function(t){M&&M(t),X()},ref:e},B),E.createElement(I,Object(O.a)({appear:!0,in:C,onEnter:Object(U.a)((function(){W(!1)}),v),onEntered:y,onEntering:b,onExit:w,onExited:Object(U.a)((function(){W(!0)}),x),onExiting:_,timeout:R,direction:"top"===r?"down":"up"},N),s||E.createElement(ut,Object(O.a)({message:g,action:l},d)))))})),ht=Object(D.a)((function(t){var e={top:8},l={bottom:8},n={justifyContent:"flex-end"},r={justifyContent:"flex-start"},i={top:24},o={bottom:24},a={right:24},s={left:24},u={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:t.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Object(O.a)({},e,Object(T.a)({},t.breakpoints.up("sm"),Object(O.a)({},i,u))),anchorOriginBottomCenter:Object(O.a)({},l,Object(T.a)({},t.breakpoints.up("sm"),Object(O.a)({},o,u))),anchorOriginTopRight:Object(O.a)({},e,n,Object(T.a)({},t.breakpoints.up("sm"),Object(O.a)({left:"auto"},i,a))),anchorOriginBottomRight:Object(O.a)({},l,n,Object(T.a)({},t.breakpoints.up("sm"),Object(O.a)({left:"auto"},o,a))),anchorOriginTopLeft:Object(O.a)({},e,r,Object(T.a)({},t.breakpoints.up("sm"),Object(O.a)({right:"auto"},i,s))),anchorOriginBottomLeft:Object(O.a)({},l,r,Object(T.a)({},t.breakpoints.up("sm"),Object(O.a)({right:"auto"},o,s)))}}),{flip:!1,name:"MuiSnackbar"})(ct),dt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},ft=E.forwardRef((function(t,e){var l=t.align,n=void 0===l?"inherit":l,r=t.classes,i=t.className,o=t.color,a=void 0===o?"initial":o,s=t.component,u=t.display,c=void 0===u?"initial":u,h=t.gutterBottom,d=void 0!==h&&h,f=t.noWrap,p=void 0!==f&&f,g=t.paragraph,m=void 0!==g&&g,v=t.variant,y=void 0===v?"body1":v,b=t.variantMapping,w=void 0===b?dt:b,x=Object(k.a)(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),_=s||(m?"p":w[y]||dt[y])||"span";return E.createElement(_,Object(O.a)({className:Object(A.a)(r.root,i,"inherit"!==y&&r[y],"initial"!==a&&r["color".concat(Object(z.a)(a))],p&&r.noWrap,d&&r.gutterBottom,m&&r.paragraph,"inherit"!==n&&r["align".concat(Object(z.a)(n))],"initial"!==c&&r["display".concat(Object(z.a)(c))]),ref:e},x))})),pt=Object(D.a)((function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(ft),gt=l(1138),mt=l.n(gt),vt=l(1139),yt=l.n(vt),bt=l(216),wt=l(519),xt=Object(wt.a)(E.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),_t=l(515),St=l(148),Mt=l(22);function Et(t,e){var l=Object.create(null);return t&&E.Children.map(t,(function(t){return t})).forEach((function(t){l[t.key]=function(t){return e&&Object(E.isValidElement)(t)?e(t):t}(t)})),l}function Ct(t,e,l){return null!=l[e]?l[e]:t.props[e]}function kt(t,e,l){var n=Et(t.children),r=function(t,e){function l(l){return l in e?e[l]:t[l]}t=t||{},e=e||{};var n,r=Object.create(null),i=[];for(var o in t)o in e?i.length&&(r[o]=i,i=[]):i.push(o);var a={};for(var s in e){if(r[s])for(n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0,r=e.pulsate,i=void 0!==r&&r,o=e.center,a=void 0===o?n||e.pulsate:o,s=e.fakeElement,u=void 0!==s&&s;if("mousedown"===t.type&&d.current)d.current=!1;else{"touchstart"===t.type&&(d.current=!0);var c,h,v,y=u?null:g.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(a||0===t.clientX&&0===t.clientY||!t.clientX&&!t.touches)c=Math.round(b.width/2),h=Math.round(b.height/2);else{var w=t.touches?t.touches[0]:t,x=w.clientX,_=w.clientY;c=Math.round(x-b.left),h=Math.round(_-b.top)}if(a)(v=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2===0&&(v+=1);else{var S=2*Math.max(Math.abs((y?y.clientWidth:0)-c),c)+2,M=2*Math.max(Math.abs((y?y.clientHeight:0)-h),h)+2;v=Math.sqrt(Math.pow(S,2)+Math.pow(M,2))}t.touches?null===p.current&&(p.current=function(){m({pulsate:i,rippleX:c,rippleY:h,rippleSize:v,cb:l})},f.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):m({pulsate:i,rippleX:c,rippleY:h,rippleSize:v,cb:l})}}),[n,m]),y=E.useCallback((function(){v({},{pulsate:!0})}),[v]),b=E.useCallback((function(t,e){if(clearTimeout(f.current),"touchend"===t.type&&p.current)return t.persist(),p.current(),p.current=null,void(f.current=setTimeout((function(){b(t,e)})));p.current=null,u((function(t){return t.length>0?t.slice(1):t})),h.current=e}),[]);return E.useImperativeHandle(e,(function(){return{pulsate:y,start:v,stop:b}}),[y,v,b]),E.createElement("span",Object(O.a)({className:Object(A.a)(r.root,i),ref:g},o),E.createElement(At,{component:null,exit:!0},s))})),Lt=Object(D.a)((function(t){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(t.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(t.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(E.memo(It)),Rt=E.forwardRef((function(t,e){var l=t.action,n=t.buttonRef,r=t.centerRipple,i=void 0!==r&&r,o=t.children,a=t.classes,s=t.className,u=t.component,c=void 0===u?"button":u,h=t.disabled,d=void 0!==h&&h,f=t.disableRipple,p=void 0!==f&&f,g=t.disableTouchRipple,m=void 0!==g&&g,v=t.focusRipple,y=void 0!==v&&v,b=t.focusVisibleClassName,w=t.onBlur,x=t.onClick,_=t.onFocus,S=t.onFocusVisible,M=t.onKeyDown,C=t.onKeyUp,T=t.onMouseDown,D=t.onMouseLeave,P=t.onMouseUp,L=t.onTouchEnd,R=t.onTouchMove,B=t.onTouchStart,F=t.onDragLeave,z=t.tabIndex,U=void 0===z?0:z,H=t.TouchRippleProps,Z=t.type,V=void 0===Z?"button":Z,W=Object(k.a)(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),G=E.useRef(null);var Y=E.useRef(null),q=E.useState(!1),X=q[0],K=q[1];d&&X&&K(!1);var $=Object(_t.a)(),Q=$.isFocusVisible,J=$.onBlurVisible,tt=$.ref;function et(t,e){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;return Object(j.a)((function(n){return e&&e(n),!l&&Y.current&&Y.current[t](n),!0}))}E.useImperativeHandle(l,(function(){return{focusVisible:function(){K(!0),G.current.focus()}}}),[]),E.useEffect((function(){X&&y&&!p&&Y.current.pulsate()}),[p,y,X]);var lt=et("start",T),nt=et("stop",F),rt=et("stop",P),it=et("stop",(function(t){X&&t.preventDefault(),D&&D(t)})),ot=et("start",B),at=et("stop",L),st=et("stop",R),ut=et("stop",(function(t){X&&(J(t),K(!1)),w&&w(t)}),!1),ct=Object(j.a)((function(t){G.current||(G.current=t.currentTarget),Q(t)&&(K(!0),S&&S(t)),_&&_(t)})),ht=function(){var t=I.findDOMNode(G.current);return c&&"button"!==c&&!("A"===t.tagName&&t.href)},dt=E.useRef(!1),ft=Object(j.a)((function(t){y&&!dt.current&&X&&Y.current&&" "===t.key&&(dt.current=!0,t.persist(),Y.current.stop(t,(function(){Y.current.start(t)}))),t.target===t.currentTarget&&ht()&&" "===t.key&&t.preventDefault(),M&&M(t),t.target===t.currentTarget&&ht()&&"Enter"===t.key&&!d&&(t.preventDefault(),x&&x(t))})),pt=Object(j.a)((function(t){y&&" "===t.key&&Y.current&&X&&!t.defaultPrevented&&(dt.current=!1,t.persist(),Y.current.stop(t,(function(){Y.current.pulsate(t)}))),C&&C(t),x&&t.target===t.currentTarget&&ht()&&" "===t.key&&!t.defaultPrevented&&x(t)})),gt=c;"button"===gt&&W.href&&(gt="a");var mt={};"button"===gt?(mt.type=V,mt.disabled=d):("a"===gt&&W.href||(mt.role="button"),mt["aria-disabled"]=d);var vt=Object(N.a)(n,e),yt=Object(N.a)(tt,G),bt=Object(N.a)(vt,yt),wt=E.useState(!1),xt=wt[0],St=wt[1];E.useEffect((function(){St(!0)}),[]);var Mt=xt&&!p&&!d;return E.createElement(gt,Object(O.a)({className:Object(A.a)(a.root,s,X&&[a.focusVisible,b],d&&a.disabled),onBlur:ut,onClick:x,onFocus:ct,onKeyDown:ft,onKeyUp:pt,onMouseDown:lt,onMouseLeave:it,onMouseUp:rt,onDragLeave:nt,onTouchEnd:at,onTouchMove:st,onTouchStart:ot,ref:bt,tabIndex:d?-1:U},mt,W),o,Mt?E.createElement(Lt,Object(O.a)({ref:Y,center:i},H)):null)})),Nt=Object(D.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Rt);function jt(t){return"Backspace"===t.key||"Delete"===t.key}var Bt=E.forwardRef((function(t,e){var l=t.avatar,n=t.classes,r=t.className,i=t.clickable,o=t.color,a=void 0===o?"default":o,s=t.component,u=t.deleteIcon,c=t.disabled,h=void 0!==c&&c,d=t.icon,f=t.label,p=t.onClick,g=t.onDelete,m=t.onKeyDown,v=t.onKeyUp,y=t.size,b=void 0===y?"medium":y,w=t.variant,x=void 0===w?"default":w,_=Object(k.a)(t,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),S=E.useRef(null),M=Object(N.a)(S,e),C=function(t){t.stopPropagation(),g&&g(t)},T=!(!1===i||!p)||i,D="small"===b,P=s||(T?Nt:"div"),I=P===Nt?{component:"div"}:{},L=null;if(g){var R=Object(A.a)("default"!==a&&("default"===x?n["deleteIconColor".concat(Object(z.a)(a))]:n["deleteIconOutlinedColor".concat(Object(z.a)(a))]),D&&n.deleteIconSmall);L=u&&E.isValidElement(u)?E.cloneElement(u,{className:Object(A.a)(u.props.className,n.deleteIcon,R),onClick:C}):E.createElement(xt,{className:Object(A.a)(n.deleteIcon,R),onClick:C})}var j=null;l&&E.isValidElement(l)&&(j=E.cloneElement(l,{className:Object(A.a)(n.avatar,l.props.className,D&&n.avatarSmall,"default"!==a&&n["avatarColor".concat(Object(z.a)(a))])}));var B=null;return d&&E.isValidElement(d)&&(B=E.cloneElement(d,{className:Object(A.a)(n.icon,d.props.className,D&&n.iconSmall,"default"!==a&&n["iconColor".concat(Object(z.a)(a))])})),E.createElement(P,Object(O.a)({role:T||g?"button":void 0,className:Object(A.a)(n.root,r,"default"!==a&&[n["color".concat(Object(z.a)(a))],T&&n["clickableColor".concat(Object(z.a)(a))],g&&n["deletableColor".concat(Object(z.a)(a))]],"default"!==x&&[n.outlined,{primary:n.outlinedPrimary,secondary:n.outlinedSecondary}[a]],h&&n.disabled,D&&n.sizeSmall,T&&n.clickable,g&&n.deletable),"aria-disabled":!!h||void 0,tabIndex:T||g?0:void 0,onClick:p,onKeyDown:function(t){t.currentTarget===t.target&&jt(t)&&t.preventDefault(),m&&m(t)},onKeyUp:function(t){t.currentTarget===t.target&&(g&&jt(t)?g(t):"Escape"===t.key&&S.current&&S.current.blur()),v&&v(t)},ref:M},I,_),j||B,E.createElement("span",{className:Object(A.a)(n.label,D&&n.labelSmall)},f),L)})),Ft=Object(D.a)((function(t){var e="light"===t.palette.type?t.palette.grey[300]:t.palette.grey[700],l=Object(at.c)(t.palette.text.primary,.26);return{root:{fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:t.palette.getContrastText(e),backgroundColor:e,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===t.palette.type?t.palette.grey[700]:t.palette.grey[300],fontSize:t.typography.pxToRem(12)},"& $avatarColorPrimary":{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.dark},"& $avatarColorSecondary":{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText},colorSecondary:{backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:Object(at.b)(e,.08)},"&:active":{boxShadow:t.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:Object(at.b)(t.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:Object(at.b)(t.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:Object(at.b)(e,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:Object(at.b)(t.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:Object(at.b)(t.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===t.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(at.c)(t.palette.text.primary,t.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:t.palette.primary.main,border:"1px solid ".concat(t.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(at.c)(t.palette.primary.main,t.palette.action.hoverOpacity)}},outlinedSecondary:{color:t.palette.secondary.main,border:"1px solid ".concat(t.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(at.c)(t.palette.secondary.main,t.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===t.palette.type?t.palette.grey[700]:t.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:l,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Object(at.c)(l,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:Object(at.c)(t.palette.primary.contrastText,.7),"&:hover, &:active":{color:t.palette.primary.contrastText}},deleteIconColorSecondary:{color:Object(at.c)(t.palette.secondary.contrastText,.7),"&:hover, &:active":{color:t.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:Object(at.c)(t.palette.primary.main,.7),"&:hover, &:active":{color:t.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:Object(at.c)(t.palette.secondary.main,.7),"&:hover, &:active":{color:t.palette.secondary.main}}}}),{name:"MuiChip"})(Bt),zt=E.forwardRef((function(t,e){var l=t.children,n=t.classes,r=t.className,i=t.color,o=void 0===i?"default":i,a=t.component,s=void 0===a?"button":a,u=t.disabled,c=void 0!==u&&u,h=t.disableFocusRipple,d=void 0!==h&&h,f=t.focusVisibleClassName,p=t.size,g=void 0===p?"large":p,m=t.variant,v=void 0===m?"round":m,y=Object(k.a)(t,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return E.createElement(Nt,Object(O.a)({className:Object(A.a)(n.root,r,"round"!==v&&n.extended,"large"!==g&&n["size".concat(Object(z.a)(g))],c&&n.disabled,{primary:n.primary,secondary:n.secondary,inherit:n.colorInherit}[o]),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:Object(A.a)(n.focusVisible,f),ref:e},y),E.createElement("span",{className:n.label},l))})),Ut=Object(D.a)((function(t){return{root:Object(O.a)({},t.typography.button,{boxSizing:"border-box",minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:t.shadows[6],"&:active":{boxShadow:t.shadows[12]},color:t.palette.getContrastText(t.palette.grey[300]),backgroundColor:t.palette.grey[300],"&:hover":{backgroundColor:t.palette.grey.A100,"@media (hover: none)":{backgroundColor:t.palette.grey[300]},"&$disabled":{backgroundColor:t.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:t.shadows[6]},"&$disabled":{color:t.palette.action.disabled,boxShadow:t.shadows[0],backgroundColor:t.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:hover":{backgroundColor:t.palette.primary.dark,"@media (hover: none)":{backgroundColor:t.palette.primary.main}}},secondary:{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.main,"&:hover":{backgroundColor:t.palette.secondary.dark,"@media (hover: none)":{backgroundColor:t.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(zt),Ht=[0,1,2,3,4,5,6,7,8,9,10],Zt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Vt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,l=parseFloat(t);return"".concat(l/e).concat(String(t).replace(String(l),"")||"px")}var Wt=E.forwardRef((function(t,e){var l=t.alignContent,n=void 0===l?"stretch":l,r=t.alignItems,i=void 0===r?"stretch":r,o=t.classes,a=t.className,s=t.component,u=void 0===s?"div":s,c=t.container,h=void 0!==c&&c,d=t.direction,f=void 0===d?"row":d,p=t.item,g=void 0!==p&&p,m=t.justify,v=void 0===m?"flex-start":m,y=t.lg,b=void 0!==y&&y,w=t.md,x=void 0!==w&&w,_=t.sm,S=void 0!==_&&_,M=t.spacing,C=void 0===M?0:M,T=t.wrap,D=void 0===T?"wrap":T,P=t.xl,I=void 0!==P&&P,L=t.xs,R=void 0!==L&&L,N=t.zeroMinWidth,j=void 0!==N&&N,B=Object(k.a)(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),F=Object(A.a)(o.root,a,h&&[o.container,0!==C&&o["spacing-xs-".concat(String(C))]],g&&o.item,j&&o.zeroMinWidth,"row"!==f&&o["direction-xs-".concat(String(f))],"wrap"!==D&&o["wrap-xs-".concat(String(D))],"stretch"!==i&&o["align-items-xs-".concat(String(i))],"stretch"!==n&&o["align-content-xs-".concat(String(n))],"flex-start"!==v&&o["justify-xs-".concat(String(v))],!1!==R&&o["grid-xs-".concat(String(R))],!1!==S&&o["grid-sm-".concat(String(S))],!1!==x&&o["grid-md-".concat(String(x))],!1!==b&&o["grid-lg-".concat(String(b))],!1!==I&&o["grid-xl-".concat(String(I))]);return E.createElement(u,Object(O.a)({className:F,ref:e},B))})),Gt=Object(D.a)((function(t){return Object(O.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(t,e){var l={};return Ht.forEach((function(n){var r=t.spacing(n);0!==r&&(l["spacing-".concat(e,"-").concat(n)]={margin:"-".concat(Vt(r,2)),width:"calc(100% + ".concat(Vt(r),")"),"& > $item":{padding:Vt(r,2)}})})),l}(t,"xs"),t.breakpoints.keys.reduce((function(e,l){return function(t,e,l){var n={};Zt.forEach((function(t){var e="grid-".concat(l,"-").concat(t);if(!0!==t)if("auto"!==t){var r="".concat(Math.round(t/12*1e8)/1e6,"%");n[e]={flexBasis:r,flexGrow:0,maxWidth:r}}else n[e]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else n[e]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===l?Object(O.a)(t,n):t[e.breakpoints.up(l)]=n}(e,t,l),e}),{}))}),{name:"MuiGrid"})(Wt),Yt=l(1132),qt=l.n(Yt),Xt=E.forwardRef((function(t,e){var l=t.edge,n=void 0!==l&&l,r=t.children,i=t.classes,o=t.className,a=t.color,s=void 0===a?"default":a,u=t.disabled,c=void 0!==u&&u,h=t.disableFocusRipple,d=void 0!==h&&h,f=t.size,p=void 0===f?"medium":f,g=Object(k.a)(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return E.createElement(Nt,Object(O.a)({className:Object(A.a)(i.root,o,"default"!==s&&i["color".concat(Object(z.a)(s))],c&&i.disabled,"small"===p&&i["size".concat(Object(z.a)(p))],{start:i.edgeStart,end:i.edgeEnd}[n]),centerRipple:!0,focusRipple:!d,disabled:c,ref:e},g),E.createElement("span",{className:i.label},r))})),Kt=Object(D.a)((function(t){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(at.c)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:t.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Object(at.c)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Object(at.c)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:t.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Xt),$t=l(1133),Qt=l.n($t),Jt=l(1137),te=l.n(Jt),ee=l(1135),le=l.n(ee),ne=l(1136),re=l.n(ne),ie=l(1134),oe=l.n(ie),ae=E.forwardRef((function(t,e){var l=t.children,n=t.classes,r=t.className,i=t.color,o=void 0===i?"default":i,a=t.component,s=void 0===a?"button":a,u=t.disabled,c=void 0!==u&&u,h=t.disableElevation,d=void 0!==h&&h,f=t.disableFocusRipple,p=void 0!==f&&f,g=t.endIcon,m=t.focusVisibleClassName,v=t.fullWidth,y=void 0!==v&&v,b=t.size,w=void 0===b?"medium":b,x=t.startIcon,_=t.type,S=void 0===_?"button":_,M=t.variant,C=void 0===M?"text":M,T=Object(k.a)(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),D=x&&E.createElement("span",{className:Object(A.a)(n.startIcon,n["iconSize".concat(Object(z.a)(w))])},x),P=g&&E.createElement("span",{className:Object(A.a)(n.endIcon,n["iconSize".concat(Object(z.a)(w))])},g);return E.createElement(Nt,Object(O.a)({className:Object(A.a)(n.root,n[C],r,"inherit"===o?n.colorInherit:"default"!==o&&n["".concat(C).concat(Object(z.a)(o))],"medium"!==w&&[n["".concat(C,"Size").concat(Object(z.a)(w))],n["size".concat(Object(z.a)(w))]],d&&n.disableElevation,c&&n.disabled,y&&n.fullWidth),component:s,disabled:c,focusRipple:!p,focusVisibleClassName:Object(A.a)(n.focusVisible,m),ref:e,type:S},T),E.createElement("span",{className:n.label},D,l,P))})),se=Object(D.a)((function(t){return{root:Object(O.a)({},t.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:t.shape.borderRadius,color:t.palette.text.primary,transition:t.transitions.create(["background-color","box-shadow","border"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(at.c)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:t.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Object(at.c)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Object(at.c)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===t.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(t.palette.action.disabledBackground)}},outlinedPrimary:{color:t.palette.primary.main,border:"1px solid ".concat(Object(at.c)(t.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.primary.main),backgroundColor:Object(at.c)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:t.palette.secondary.main,border:"1px solid ".concat(Object(at.c)(t.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.secondary.main),backgroundColor:Object(at.c)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(t.palette.action.disabled)}},contained:{color:t.palette.getContrastText(t.palette.grey[300]),backgroundColor:t.palette.grey[300],boxShadow:t.shadows[2],"&:hover":{backgroundColor:t.palette.grey.A100,boxShadow:t.shadows[4],"@media (hover: none)":{boxShadow:t.shadows[2],backgroundColor:t.palette.grey[300]},"&$disabled":{backgroundColor:t.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:t.shadows[6]},"&:active":{boxShadow:t.shadows[8]},"&$disabled":{color:t.palette.action.disabled,boxShadow:t.shadows[0],backgroundColor:t.palette.action.disabledBackground}},containedPrimary:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:hover":{backgroundColor:t.palette.primary.dark,"@media (hover: none)":{backgroundColor:t.palette.primary.main}}},containedSecondary:{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.main,"&:hover":{backgroundColor:t.palette.secondary.dark,"@media (hover: none)":{backgroundColor:t.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(ae),ue=l(2355),ce=l(259);var he="undefined"!==typeof window?E.useLayoutEffect:E.useEffect;var de=E.forwardRef((function(t,e){var l=t.children,n=t.container,r=t.disablePortal,i=void 0!==r&&r,o=t.onRendered,a=E.useState(null),s=a[0],u=a[1],c=Object(N.a)(E.isValidElement(l)?l.ref:null,e);return he((function(){i||u(function(t){return t="function"===typeof t?t():t,I.findDOMNode(t)}(n)||document.body)}),[n,i]),he((function(){if(s&&!i)return Object(ce.a)(e,s),function(){Object(ce.a)(e,null)}}),[e,s,i]),he((function(){o&&(s||i)&&o()}),[o,s,i]),i?E.isValidElement(l)?E.cloneElement(l,{ref:c}):l:s?I.createPortal(l,s):s})),fe=l(541),pe=l(59),ge=l(54);var me=l(514);function ve(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function ye(t){return parseInt(window.getComputedStyle(t)["padding-right"],10)||0}function be(t,e,l){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=arguments.length>4?arguments[4]:void 0,i=[e,l].concat(Object(St.a)(n)),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(t.children,(function(t){1===t.nodeType&&-1===i.indexOf(t)&&-1===o.indexOf(t.tagName)&&ve(t,r)}))}function we(t,e){var l=-1;return t.some((function(t,n){return!!e(t)&&(l=n,!0)})),l}function xe(t,e){var l,n=[],r=[],i=t.container;if(!e.disableScrollLock){if(function(t){var e=Object(R.a)(t);return e.body===t?Object(me.a)(e).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}(i)){var o=function(){var t=document.createElement("div");t.style.width="99px",t.style.height="99px",t.style.position="absolute",t.style.top="-9999px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}();n.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(ye(i)+o,"px"),l=Object(R.a)(i).querySelectorAll(".mui-fixed"),[].forEach.call(l,(function(t){r.push(t.style.paddingRight),t.style.paddingRight="".concat(ye(t)+o,"px")}))}var a=i.parentElement,s="HTML"===a.nodeName&&"scroll"===window.getComputedStyle(a)["overflow-y"]?a:i;n.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){l&&[].forEach.call(l,(function(t,e){r[e]?t.style.paddingRight=r[e]:t.style.removeProperty("padding-right")})),n.forEach((function(t){var e=t.value,l=t.el,n=t.key;e?l.style.setProperty(n,e):l.style.removeProperty(n)}))}}var _e=function(){function t(){Object(pe.a)(this,t),this.modals=[],this.containers=[]}return Object(ge.a)(t,[{key:"add",value:function(t,e){var l=this.modals.indexOf(t);if(-1!==l)return l;l=this.modals.length,this.modals.push(t),t.modalRef&&ve(t.modalRef,!1);var n=function(t){var e=[];return[].forEach.call(t.children,(function(t){t.getAttribute&&"true"===t.getAttribute("aria-hidden")&&e.push(t)})),e}(e);be(e,t.mountNode,t.modalRef,n,!0);var r=we(this.containers,(function(t){return t.container===e}));return-1!==r?(this.containers[r].modals.push(t),l):(this.containers.push({modals:[t],container:e,restore:null,hiddenSiblingNodes:n}),l)}},{key:"mount",value:function(t,e){var l=we(this.containers,(function(e){return-1!==e.modals.indexOf(t)})),n=this.containers[l];n.restore||(n.restore=xe(n,e))}},{key:"remove",value:function(t){var e=this.modals.indexOf(t);if(-1===e)return e;var l=we(this.containers,(function(e){return-1!==e.modals.indexOf(t)})),n=this.containers[l];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(e,1),0===n.modals.length)n.restore&&n.restore(),t.modalRef&&ve(t.modalRef,!0),be(n.container,t.mountNode,t.modalRef,n.hiddenSiblingNodes,!1),this.containers.splice(l,1);else{var r=n.modals[n.modals.length-1];r.modalRef&&ve(r.modalRef,!1)}return e}},{key:"isTopModal",value:function(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}]),t}();var Se=function(t){var e=t.children,l=t.disableAutoFocus,n=void 0!==l&&l,r=t.disableEnforceFocus,i=void 0!==r&&r,o=t.disableRestoreFocus,a=void 0!==o&&o,s=t.getDoc,u=t.isEnabled,c=t.open,h=E.useRef(),d=E.useRef(null),f=E.useRef(null),p=E.useRef(),g=E.useRef(null),m=E.useCallback((function(t){g.current=I.findDOMNode(t)}),[]),v=Object(N.a)(e.ref,m),y=E.useRef();return E.useEffect((function(){y.current=c}),[c]),!y.current&&c&&"undefined"!==typeof window&&(p.current=s().activeElement),E.useEffect((function(){if(c){var t=Object(R.a)(g.current);n||!g.current||g.current.contains(t.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var e=function(){null!==g.current&&(t.hasFocus()&&!i&&u()&&!h.current?g.current&&!g.current.contains(t.activeElement)&&g.current.focus():h.current=!1)},l=function(e){!i&&u()&&9===e.keyCode&&t.activeElement===g.current&&(h.current=!0,e.shiftKey?f.current.focus():d.current.focus())};t.addEventListener("focus",e,!0),t.addEventListener("keydown",l,!0);var r=setInterval((function(){e()}),50);return function(){clearInterval(r),t.removeEventListener("focus",e,!0),t.removeEventListener("keydown",l,!0),a||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[n,i,a,u,c]),E.createElement(E.Fragment,null,E.createElement("div",{tabIndex:0,ref:d,"data-test":"sentinelStart"}),E.cloneElement(e,{ref:v}),E.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))},Me={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Ee=E.forwardRef((function(t,e){var l=t.invisible,n=void 0!==l&&l,r=t.open,i=Object(k.a)(t,["invisible","open"]);return r?E.createElement("div",Object(O.a)({"aria-hidden":!0,ref:e},i,{style:Object(O.a)({},Me.root,n?Me.invisible:{},i.style)})):null}));var Ce=new _e,ke=E.forwardRef((function(t,e){var l=Object(K.a)(),n=Object(ue.a)({name:"MuiModal",props:Object(O.a)({},t),theme:l}),r=n.BackdropComponent,i=void 0===r?Ee:r,o=n.BackdropProps,a=n.children,s=n.closeAfterTransition,u=void 0!==s&&s,c=n.container,h=n.disableAutoFocus,d=void 0!==h&&h,f=n.disableBackdropClick,p=void 0!==f&&f,g=n.disableEnforceFocus,m=void 0!==g&&g,v=n.disableEscapeKeyDown,y=void 0!==v&&v,b=n.disablePortal,w=void 0!==b&&b,x=n.disableRestoreFocus,_=void 0!==x&&x,S=n.disableScrollLock,M=void 0!==S&&S,C=n.hideBackdrop,T=void 0!==C&&C,A=n.keepMounted,D=void 0!==A&&A,P=n.manager,L=void 0===P?Ce:P,B=n.onBackdropClick,F=n.onClose,z=n.onEscapeKeyDown,H=n.onRendered,Z=n.open,V=Object(k.a)(n,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),W=E.useState(!0),G=W[0],Y=W[1],q=E.useRef({}),X=E.useRef(null),$=E.useRef(null),Q=Object(N.a)($,e),J=function(t){return!!t.children&&t.children.props.hasOwnProperty("in")}(n),tt=function(){return Object(R.a)(X.current)},et=function(){return q.current.modalRef=$.current,q.current.mountNode=X.current,q.current},lt=function(){L.mount(et(),{disableScrollLock:M}),$.current.scrollTop=0},nt=Object(j.a)((function(){var t=function(t){return t="function"===typeof t?t():t,I.findDOMNode(t)}(c)||tt().body;L.add(et(),t),$.current&<()})),rt=E.useCallback((function(){return L.isTopModal(et())}),[L]),it=Object(j.a)((function(t){X.current=t,t&&(H&&H(),Z&&rt()?lt():ve($.current,!0))})),ot=E.useCallback((function(){L.remove(et())}),[L]);if(E.useEffect((function(){return function(){ot()}}),[ot]),E.useEffect((function(){Z?nt():J&&u||ot()}),[Z,ot,J,u,nt]),!D&&!Z&&(!J||G))return null;var at=function(t){return{root:{position:"fixed",zIndex:t.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(l||{zIndex:fe.a}),st={};return void 0===a.props.tabIndex&&(st.tabIndex=a.props.tabIndex||"-1"),J&&(st.onEnter=Object(U.a)((function(){Y(!1)}),a.props.onEnter),st.onExited=Object(U.a)((function(){Y(!0),u&&ot()}),a.props.onExited)),E.createElement(de,{ref:it,container:c,disablePortal:w},E.createElement("div",Object(O.a)({ref:Q,onKeyDown:function(t){"Escape"===t.key&&rt()&&(z&&z(t),y||(t.stopPropagation(),F&&F(t,"escapeKeyDown")))},role:"presentation"},V,{style:Object(O.a)({},at.root,!Z&&G?at.hidden:{},V.style)}),T?null:E.createElement(i,Object(O.a)({open:Z,onClick:function(t){t.target===t.currentTarget&&(B&&B(t),!p&&F&&F(t,"backdropClick"))}},o)),E.createElement(Se,{disableEnforceFocus:m,disableAutoFocus:d,disableRestoreFocus:_,getDoc:tt,isEnabled:rt,open:Z},E.cloneElement(a,st))))})),Te={entering:{opacity:1},entered:{opacity:1}},Oe={enter:P.b.enteringScreen,exit:P.b.leavingScreen},Ae=E.forwardRef((function(t,e){var l=t.children,n=t.disableStrictModeCompat,r=void 0!==n&&n,i=t.in,o=t.onEnter,a=t.onEntered,s=t.onEntering,u=t.onExit,c=t.onExited,h=t.onExiting,d=t.style,f=t.TransitionComponent,p=void 0===f?X:f,g=t.timeout,m=void 0===g?Oe:g,v=Object(k.a)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),y=Q(),b=y.unstable_strictMode&&!r,w=E.useRef(null),x=Object(N.a)(l.ref,e),_=Object(N.a)(b?w:void 0,x),S=function(t){return function(e,l){if(t){var n=b?[w.current,e]:[e,l],r=Object(H.a)(n,2),i=r[0],o=r[1];void 0===o?t(i):t(i,o)}}},M=S(s),C=S((function(t,e){J(t);var l=tt({style:d,timeout:m},{mode:"enter"});t.style.webkitTransition=y.transitions.create("opacity",l),t.style.transition=y.transitions.create("opacity",l),o&&o(t,e)})),T=S(a),A=S(h),D=S((function(t){var e=tt({style:d,timeout:m},{mode:"exit"});t.style.webkitTransition=y.transitions.create("opacity",e),t.style.transition=y.transitions.create("opacity",e),u&&u(t)})),P=S(c);return E.createElement(p,Object(O.a)({appear:!0,in:i,nodeRef:b?w:void 0,onEnter:C,onEntered:T,onEntering:M,onExit:D,onExited:P,onExiting:A,timeout:m},v),(function(t,e){return E.cloneElement(l,Object(O.a)({style:Object(O.a)({opacity:0,visibility:"exited"!==t||i?void 0:"hidden"},Te[t],d,l.props.style),ref:_},e))}))})),De=E.forwardRef((function(t,e){var l=t.children,n=t.classes,r=t.className,i=t.invisible,o=void 0!==i&&i,a=t.open,s=t.transitionDuration,u=t.TransitionComponent,c=void 0===u?Ae:u,h=Object(k.a)(t,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return E.createElement(c,Object(O.a)({in:a,timeout:s},h),E.createElement("div",{className:Object(A.a)(n.root,r,o&&n.invisible),"aria-hidden":!0,ref:e},l))})),Pe=Object(D.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(De),Ie={enter:P.b.enteringScreen,exit:P.b.leavingScreen},Le=E.forwardRef((function(t,e){var l=t.BackdropProps,n=t.children,r=t.classes,i=t.className,o=t.disableBackdropClick,a=void 0!==o&&o,s=t.disableEscapeKeyDown,u=void 0!==s&&s,c=t.fullScreen,h=void 0!==c&&c,d=t.fullWidth,f=void 0!==d&&d,p=t.maxWidth,g=void 0===p?"sm":p,m=t.onBackdropClick,v=t.onClose,y=t.onEnter,b=t.onEntered,w=t.onEntering,x=t.onEscapeKeyDown,_=t.onExit,S=t.onExited,M=t.onExiting,C=t.open,T=t.PaperComponent,D=void 0===T?ot:T,P=t.PaperProps,I=void 0===P?{}:P,L=t.scroll,R=void 0===L?"paper":L,N=t.TransitionComponent,j=void 0===N?Ae:N,B=t.transitionDuration,F=void 0===B?Ie:B,U=t.TransitionProps,H=t["aria-describedby"],Z=t["aria-labelledby"],V=Object(k.a)(t,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),W=E.useRef();return E.createElement(ke,Object(O.a)({className:Object(A.a)(r.root,i),BackdropComponent:Pe,BackdropProps:Object(O.a)({transitionDuration:F},l),closeAfterTransition:!0,disableBackdropClick:a,disableEscapeKeyDown:u,onEscapeKeyDown:x,onClose:v,open:C,ref:e},V),E.createElement(j,Object(O.a)({appear:!0,in:C,timeout:F,onEnter:y,onEntering:w,onEntered:b,onExit:_,onExiting:M,onExited:S,role:"none presentation"},U),E.createElement("div",{className:Object(A.a)(r.container,r["scroll".concat(Object(z.a)(R))]),onMouseUp:function(t){t.target===t.currentTarget&&t.target===W.current&&(W.current=null,m&&m(t),!a&&v&&v(t,"backdropClick"))},onMouseDown:function(t){W.current=t.target}},E.createElement(D,Object(O.a)({elevation:24,role:"dialog","aria-describedby":H,"aria-labelledby":Z},I,{className:Object(A.a)(r.paper,r["paperScroll".concat(Object(z.a)(R))],r["paperWidth".concat(Object(z.a)(String(g)))],I.className,h&&r.paperFullScreen,f&&r.paperFullWidth)}),n))))})),Re=Object(D.a)((function(t){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(t.breakpoints.values.xs,444),"&$paperScrollBody":Object(T.a)({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:t.breakpoints.values.sm,"&$paperScrollBody":Object(T.a)({},t.breakpoints.down(t.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:t.breakpoints.values.md,"&$paperScrollBody":Object(T.a)({},t.breakpoints.down(t.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:t.breakpoints.values.lg,"&$paperScrollBody":Object(T.a)({},t.breakpoints.down(t.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:t.breakpoints.values.xl,"&$paperScrollBody":Object(T.a)({},t.breakpoints.down(t.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(Le),Ne=E.forwardRef((function(t,e){var l=t.disableSpacing,n=void 0!==l&&l,r=t.classes,i=t.className,o=Object(k.a)(t,["disableSpacing","classes","className"]);return E.createElement("div",Object(O.a)({className:Object(A.a)(r.root,i,!n&&r.spacing),ref:e},o))})),je=Object(D.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(Ne),Be=E.forwardRef((function(t,e){var l=t.classes,n=t.className,r=t.dividers,i=void 0!==r&&r,o=Object(k.a)(t,["classes","className","dividers"]);return E.createElement("div",Object(O.a)({className:Object(A.a)(l.root,n,i&&l.dividers),ref:e},o))})),Fe=Object(D.a)((function(t){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(t.palette.divider),borderBottom:"1px solid ".concat(t.palette.divider)}}}),{name:"MuiDialogContent"})(Be),ze=E.forwardRef((function(t,e){var l=t.children,n=t.classes,r=t.className,i=t.disableTypography,o=void 0!==i&&i,a=Object(k.a)(t,["children","classes","className","disableTypography"]);return E.createElement("div",Object(O.a)({className:Object(A.a)(n.root,r),ref:e},a),o?l:E.createElement(pt,{component:"h2",variant:"h6"},l))})),Ue=Object(D.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(ze);function He(t){return Ze.apply(this,arguments)}function Ze(){return(Ze=c()(s.a.mark((function t(e){var l,n,r,i;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return l=t.sent,t.next=5,l.blob();case 5:return n=t.sent,r={type:n.type},i=e.replace(/\?.+/,"").split("/").pop(),t.abrupt("return",new File([n],i,r));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ve(t){return new Promise((function(e,l){var n=new FileReader;n.onload=function(t){var l;e(null===t||void 0===t||null===(l=t.target)||void 0===l?void 0:l.result)},n.onerror=function(t){n.abort(),l(t)},n.readAsDataURL(t)}))}var We=Object(E.createElement)(qt.a,null);var Ge=Object(D.a)((function(t){var e=t.palette,l=t.shape,n=t.spacing;return{root:{},imageContainer:{position:"relative",zIndex:10,textAlign:"center","&:hover $image":{opacity:.3},"&:hover $removeButton":{opacity:1}},image:{height:100,width:"initial",maxWidth:"100%",color:e.text.primary,transition:"all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",boxSizing:"border-box",boxShadow:"rgba(0, 0, 0, 0.12) 0 1px 6px, rgba(0, 0, 0, 0.12) 0 1px 4px",borderRadius:l.borderRadius,zIndex:5,opacity:1},removeButton:{transition:".5s ease",position:"absolute",opacity:0,top:n(-1),right:n(-1),width:40,height:40,"&:focus":{opacity:1}}}}),{name:"MuiDropzonePreviewList"})((function(t){var e=t.fileObjects,l=t.handleRemove,n=t.showFileNames,i=t.useChipsForPreview,o=t.previewChipProps,a=t.previewGridClasses,s=t.previewGridProps,u=t.classes,c=t.getPreviewIcon;return i?Object(E.createElement)(Gt,r()({spacing:1,direction:"row"},s.container,{container:!0,className:Object(A.a)(u.root,a.container)}),e.map((function(t,e){var n,i;return Object(E.createElement)(Gt,r()({},s.item,{item:!0,key:"".concat(null!==(n=null===(i=t.file)||void 0===i?void 0:i.name)&&void 0!==n?n:"file","-").concat(e),className:u.imageContainer}),Object(E.createElement)(Ft,r()({variant:"outlined"},o,{label:t.file.name,onDelete:l(e)})))}))):Object(E.createElement)(Gt,r()({spacing:8},s.container,{container:!0,className:Object(A.a)(u.root,a.container)}),e.map((function(t,e){var i,o;return Object(E.createElement)(Gt,r()({xs:4},s.item,{item:!0,key:"".concat(null!==(i=null===(o=t.file)||void 0===o?void 0:o.name)&&void 0!==i?i:"file","-").concat(e),className:Object(A.a)(u.imageContainer,a.item)}),c(t,u),n&&Object(E.createElement)(pt,{variant:"body1",component:"p"},t.file.name),Object(E.createElement)(Ut,{onClick:l(e),"aria-label":"Delete",className:u.removeButton},We))})))})),Ye={success:Qt.a,warning:oe.a,error:le.a,info:re.a};var qe=Object(D.a)((function(t){return{successAlert:{backgroundColor:t.palette.success.main},errorAlert:{backgroundColor:t.palette.error.main},infoAlert:{backgroundColor:t.palette.info.main},warningAlert:{backgroundColor:t.palette.warning.main},message:{display:"flex",alignItems:"center","& > svg":{marginRight:t.spacing(1)}},icon:{fontSize:20,opacity:.9},closeButton:{}}}),{name:"MuiDropzoneSnackbar"})((function(t){var e=t.classes,l=t.className,n=t.message,i=t.onClose,o=t.variant,a=_()(t,["classes","className","message","onClose","variant"]),s=Ye[o];return Object(E.createElement)(ut,r()({className:Object(A.a)(e["".concat(o,"Alert")],l),"aria-describedby":"client-snackbar",message:Object(E.createElement)("span",{id:"client-snackbar",className:e.message},Object(E.createElement)(s,{className:e.icon}),n),action:[Object(E.createElement)(Kt,{key:"close","aria-label":"Close",color:"inherit",className:e.closeButton,onClick:i},Object(E.createElement)(te.a,{className:e.icon}))]},a))})),Xe={horizontal:"left",vertical:"bottom"},Ke=function(t){function e(){var t,l;d()(this,e);for(var n=arguments.length,r=new Array(n),i=0;i1&&i.length+e.length>o)){t.next=4;break}return l.setState({openSnackBar:!0,snackbarMessage:u(o),snackbarVariant:"error"},l.notifyAlert),t.abrupt("return");case 4:return d&&d(e,n),t.next=7,Promise.all(e.map(function(){var t=c()(s.a.mark((function t(e){var l;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ve(e);case 2:return l=t.sent,t.abrupt("return",{file:e,data:l});case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 7:f=t.sent,h&&h(f),p=f.reduce((function(t,e){return t+a(e.file.name)}),""),l.setState({openSnackBar:!0,snackbarMessage:p,snackbarVariant:"success"},l.notifyAlert);case 11:case"end":return t.stop()}}),t)})));return function(e,l){return t.apply(this,arguments)}}(),l.handleDropRejected=function(t,e){var n=l.props,r=n.acceptedFiles,i=n.filesLimit,o=n.fileObjects,a=n.getDropRejectMessage,s=n.getFileLimitExceedMessage,u=n.maxFileSize,c=n.onDropRejected,h="";o.length+t.length>i?h=s(i):t.forEach((function(t){h=a(t,r,u)})),c&&c(t,e),l.setState({openSnackBar:!0,snackbarMessage:h,snackbarVariant:"error"},l.notifyAlert)},l.handleRemove=function(t){return function(e){e.stopPropagation();var n=l.props,r=n.fileObjects,i=n.getFileRemovedMessage,o=n.onDelete,a=r[t];o&&o(a,t),l.setState({openSnackBar:!0,snackbarMessage:i(a.file.name),snackbarVariant:"info"},l.notifyAlert)}},l.handleCloseSnackbar=function(){l.setState({openSnackBar:!1})},l}return w()(e,t),p()(e,[{key:"notifyAlert",value:function(){var t=this.props.onAlert,e=this.state,l=e.openSnackBar,n=e.snackbarMessage,r=e.snackbarVariant;l&&t&&t(n,r)}},{key:"render",value:function(){var t=this,e=this.props,l=e.acceptedFiles,n=e.alertSnackbarProps,i=e.classes,o=e.disableRejectionFeedback,a=e.dropzoneClass,s=e.dropzoneParagraphClass,u=e.dropzoneProps,c=e.dropzoneText,h=e.fileObjects,d=e.filesLimit,f=e.getPreviewIcon,p=e.Icon,g=e.inputProps,m=e.maxFileSize,v=e.previewChipProps,y=e.previewGridClasses,b=e.previewGridProps,w=e.previewText,x=e.showAlerts,_=e.showFileNames,S=e.showFileNamesInPreview,M=e.showPreviews,C=e.showPreviewsInDropzone,k=e.useChipsForPreview,T=this.state,O=T.openSnackBar,D=T.snackbarMessage,P=T.snackbarVariant,I=null===l||void 0===l?void 0:l.join(","),L=d>1,R=M&&h.length>0,N=C&&h.length>0;return Object(E.createElement)(E.Fragment,null,Object(E.createElement)(bt.a,r()({},u,{accept:I,onDropAccepted:this.handleDropAccepted,onDropRejected:this.handleDropRejected,maxSize:m,multiple:L}),(function(e){var l=e.getRootProps,n=e.getInputProps,r=e.isDragActive,u=e.isDragReject;return Object(E.createElement)("div",l({className:Object(A.a)(i.root,a,r&&i.active,!o&&u&&i.invalid)}),Object(E.createElement)("input",n(g)),Object(E.createElement)("div",{className:i.textContainer},Object(E.createElement)(pt,{variant:"h5",component:"p",className:Object(A.a)(i.text,s)},c),p?Object(E.createElement)(p,{className:i.icon}):Object(E.createElement)(yt.a,{className:i.icon})),N&&Object(E.createElement)(Ge,{fileObjects:h,handleRemove:t.handleRemove,getPreviewIcon:f,showFileNames:_,useChipsForPreview:k,previewChipProps:v,previewGridClasses:y,previewGridProps:b}))})),R&&Object(E.createElement)(E.Fragment,null,Object(E.createElement)(pt,{variant:"subtitle1",component:"span"},w),Object(E.createElement)(Ge,{fileObjects:h,handleRemove:this.handleRemove,getPreviewIcon:f,showFileNames:S,useChipsForPreview:k,previewChipProps:v,previewGridClasses:y,previewGridProps:b})),("boolean"===typeof x&&x||Array.isArray(x)&&x.includes(P))&&Object(E.createElement)(ht,r()({anchorOrigin:Xe,autoHideDuration:6e3},n,{open:O,onClose:this.handleCloseSnackbar}),Object(E.createElement)(qe,{onClose:this.handleCloseSnackbar,variant:P,message:D})))}}]),e}(E.PureComponent);Ke.defaultProps={acceptedFiles:[],filesLimit:3,fileObjects:[],maxFileSize:3e6,dropzoneText:"Drag and drop a file here or click",previewText:"Preview:",disableRejectionFeedback:!1,showPreviews:!1,showPreviewsInDropzone:!0,showFileNames:!1,showFileNamesInPreview:!1,useChipsForPreview:!1,previewChipProps:{},previewGridClasses:{},previewGridProps:{},showAlerts:!0,alertSnackbarProps:{anchorOrigin:{horizontal:"left",vertical:"bottom"},autoHideDuration:6e3},getFileLimitExceedMessage:function(t){return"Maximum allowed number of files exceeded. Only ".concat(t," allowed")},getFileAddedMessage:function(t){return"File ".concat(t," successfully added.")},getPreviewIcon:function(t,e){return function(t){if("image"===t.type.split("/")[0])return!0}(t.file)?Object(E.createElement)("img",{className:e.image,role:"presentation",src:t.data}):Object(E.createElement)(mt.a,{className:e.image})},getFileRemovedMessage:function(t){return"File ".concat(t," removed.")},getDropRejectMessage:function(t,e,l){var n,r="File ".concat(t.name," was rejected. ");return e.includes(t.type)||(r+="File type not supported. "),t.size>l&&(r+="File is too big. Size limit is "+(((n=l)>=1048576?n/1048576+" megabytes":n>=1024?n/1024+" kilobytes":n+" bytes")+". ")),r}};M.a.shape({file:M.a.object,data:M.a.any});var $e=Object(D.a)((function(t){var e=t.palette,l=t.shape,n=t.spacing;return{"@keyframes progress":{"0%":{backgroundPosition:"0 0"},"100%":{backgroundPosition:"-70px 0"}},root:{position:"relative",width:"100%",minHeight:"250px",backgroundColor:e.background.paper,border:"dashed",borderColor:e.divider,borderRadius:l.borderRadius,boxSizing:"border-box",cursor:"pointer",overflow:"hidden"},active:{animation:"$progress 2s linear infinite !important",backgroundImage:"repeating-linear-gradient(-45deg, ".concat(e.background.paper,", ").concat(e.background.paper," 25px, ").concat(e.divider," 25px, ").concat(e.divider," 50px)"),backgroundSize:"150% 100%",border:"solid",borderColor:e.primary.light},invalid:{backgroundImage:"repeating-linear-gradient(-45deg, ".concat(e.error.light,", ").concat(e.error.light," 25px, ").concat(e.error.dark," 25px, ").concat(e.error.dark," 50px)"),borderColor:e.error.main},textContainer:{textAlign:"center"},text:{marginBottom:n(3),marginTop:n(3)},icon:{width:51,height:51,color:e.text.primary}}}),{name:"MuiDropzoneArea"})(Ke),Qe=function(t){function e(){var t,l;d()(this,e);for(var n=arguments.length,r=new Array(n),i=0;i1?e-1:0),n=1;n-1e-8&&t<1e-8}function f(t){return t>1e-8||t<-1e-8}function p(t,e,l,n,r){var i=1-r;return i*i*(i*t+3*r*e)+r*r*(r*n+3*i*l)}function g(t,e,l,n){var r=1-n;return r*(r*t+2*n*e)+n*n*l}e.cubicAt=p,e.cubicDerivativeAt=function(t,e,l,n,r){var i=1-r;return 3*(((e-t)*i+2*(l-e)*r)*i+(n-l)*r*r)},e.cubicRootAt=function(t,e,l,n,r,i){var u=n+3*(e-l)-t,c=3*(l-2*e+t),h=3*(e-t),f=t-r,p=c*c-3*u*h,g=c*h-9*u*f,m=h*h-3*c*f,v=0;if(d(p)&&d(g)){if(d(c))i[0]=0;else(T=-h/c)>=0&&T<=1&&(i[v++]=T)}else{var y=g*g-4*p*m;if(d(y)){var b=g/p,w=-b/2;(T=-c/u+b)>=0&&T<=1&&(i[v++]=T),w>=0&&w<=1&&(i[v++]=w)}else if(y>0){var x=a(y),_=p*c+1.5*u*(-g+x),S=p*c+1.5*u*(-g-x);(T=(-c-((_=_<0?-o(-_,1/3):o(_,1/3))+(S=S<0?-o(-S,1/3):o(S,1/3))))/(3*u))>=0&&T<=1&&(i[v++]=T)}else{var M=(2*p*c-3*u*g)/(2*a(p*p*p)),E=Math.acos(M)/3,C=a(p),k=Math.cos(E),T=(-c-2*C*k)/(3*u),O=(w=(-c+C*(k+s*Math.sin(E)))/(3*u),(-c+C*(k-s*Math.sin(E)))/(3*u));T>=0&&T<=1&&(i[v++]=T),w>=0&&w<=1&&(i[v++]=w),O>=0&&O<=1&&(i[v++]=O)}}return v},e.cubicExtrema=function(t,e,l,n,r){var i=6*l-12*e+6*t,o=9*e+3*n-3*t-9*l,s=3*e-3*t,u=0;if(d(o)){if(f(i))(h=-s/i)>=0&&h<=1&&(r[u++]=h)}else{var c=i*i-4*o*s;if(d(c))r[0]=-i/(2*o);else if(c>0){var h,p=a(c),g=(-i-p)/(2*o);(h=(-i+p)/(2*o))>=0&&h<=1&&(r[u++]=h),g>=0&&g<=1&&(r[u++]=g)}}return u},e.cubicSubdivide=function(t,e,l,n,r,i){var o=(e-t)*r+t,a=(l-e)*r+e,s=(n-l)*r+l,u=(a-o)*r+o,c=(s-a)*r+a,h=(c-u)*r+u;i[0]=t,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=c,i[6]=s,i[7]=n},e.cubicProjectPoint=function(t,e,l,n,r,o,s,d,f,g,m){var v,y,b,w,x,_=.005,S=1/0;u[0]=f,u[1]=g;for(var M=0;M<1;M+=.05)c[0]=p(t,l,r,s,M),c[1]=p(e,n,o,d,M),(w=i(u,c))=0&&w=0&&h<=1&&(r[u++]=h)}else{var c=o*o-4*i*s;if(d(c))(h=-o/(2*i))>=0&&h<=1&&(r[u++]=h);else if(c>0){var h,p=a(c),g=(-o-p)/(2*i);(h=(-o+p)/(2*i))>=0&&h<=1&&(r[u++]=h),g>=0&&g<=1&&(r[u++]=g)}}return u},e.quadraticExtremum=function(t,e,l){var n=t+l-2*e;return 0===n?.5:(t-e)/n},e.quadraticSubdivide=function(t,e,l,n,r){var i=(e-t)*n+t,o=(l-e)*n+e,a=(o-i)*n+i;r[0]=t,r[1]=i,r[2]=a,r[3]=a,r[4]=o,r[5]=l},e.quadraticProjectPoint=function(t,e,l,n,r,o,s,d,f){var p,m=.005,v=1/0;u[0]=s,u[1]=d;for(var y=0;y<1;y+=.05){c[0]=g(t,l,r,y),c[1]=g(e,n,o,y),(_=i(u,c))=0&&_=0?h():c=setTimeout(h,-r),s=n};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){a=t},d}e.throttle=r,e.createOrUpdate=function(t,e,i,o){var a=t[e];if(a){var s=a[l]||a,u=a["\0__throttleType"];if(a[n]!==i||u!==o){if(null==i||!o)return t[e]=s;(a=t[e]=r(s,i,"debounce"===o))[l]=s,a["\0__throttleType"]=o,a[n]=i}return a}},e.clear=function(t,e){var n=t[e];n&&n[l]&&(t[e]=n[l])}},function(t,e){t.exports={legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}}},function(t,e,l){var n=l(13),r=n.each,i=n.map,o=l(44),a=o.linearMap,s=o.getPixelPrecision,u=o.round,c=l(1870),h=c.createAxisTicks,d=c.createAxisLabels,f=c.calculateCategoryInterval,p=[0,1],g=function(t,e,l){this.dim=t,this.scale=e,this._extent=l||[0,0],this.inverse=!1,this.onBand=!1};function m(t,e){var l=(t[1]-t[0])/e/2;t[0]+=l,t[1]-=l}g.prototype={constructor:g,contain:function(t){var e=this._extent,l=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=l&&t<=n},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return s(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var l=this._extent;l[0]=t,l[1]=e},dataToCoord:function(t,e){var l=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&m(l=l.slice(),n.count()),a(t,p,l,e)},coordToData:function(t,e){var l=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&m(l=l.slice(),n.count());var r=a(t,l,p,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),l=h(this,e).ticks,n=i(l,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this);return function(t,e,l,n){var i=e.length;if(!t.onBand||l||!i)return;var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var c=e[i-1].tickValue-e[0].tickValue,h=(e[i-1].coord-e[0].coord)/c;r(e,(function(t){t.coord-=h/2}));var d=t.scale.getExtent();a=1+d[1]-e[i-1].tickValue,o={coord:e[i-1].coord+h*a},e.push(o)}var f=s[0]>s[1];p(e[0].coord,s[0])&&(n?e[0].coord=s[0]:e.shift());n&&p(s[0],e[0].coord)&&e.unshift({coord:s[0]});p(s[1],o.coord)&&(n?o.coord=s[1]:e.pop());n&&p(o.coord,s[1])&&e.push({coord:s[1]});function p(t,e){return t=u(t),e=u(e),f?t>e:t0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return i(e,(function(t){return i(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},getViewLabels:function(){return d(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),l=e[1]-e[0]+(this.onBand?1:0);0===l&&(l=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/l},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return f(this)}};var v=g;t.exports=v},function(t,e,l){var n=l(13),r=n.retrieve,i=n.defaults,o=n.extend,a=n.each,s=l(79),u=l(36),c=l(105),h=l(44),d=h.isRadianAroundZero,f=h.remRadian,p=l(171).createSymbol,g=l(130),m=l(86).applyTransform,v=l(193).shouldShowAllLabels,y=Math.PI,b=function(t,e){this.opt=e,this.axisModel=t,i(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var l=new u.Group({position:e.position.slice(),rotation:e.rotation});l.updateTransform(),this._transform=l.transform,this._dumbGroup=l};b.prototype={constructor:b,hasBuilder:function(t){return!!w[t]},add:function(t){w[t].call(this)},getGroup:function(){return this.group}};var w={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var l=this.axisModel.axis.getExtent(),n=this._transform,r=[l[0],0],i=[l[1],0];n&&(m(r,r,n),m(i,i,n));var s=o({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new u.Line({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:i[0],y2:i[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var c=e.get("axisLine.symbol"),h=e.get("axisLine.symbolSize"),d=e.get("axisLine.symbolOffset")||0;if("number"===typeof d&&(d=[d,d]),null!=c){"string"===typeof c&&(c=[c,c]),"string"!==typeof h&&"number"!==typeof h||(h=[h,h]);var f=h[0],g=h[1];a([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((r[0]-i[0])*(r[0]-i[0])+(r[1]-i[1])*(r[1]-i[1]))}],(function(e,l){if("none"!==c[l]&&null!=c[l]){var n=p(c[l],-f/2,-g/2,f,g,s.stroke,!0),i=e.r+e.offset,o=[r[0]+i*Math.cos(t.rotation),r[1]-i*Math.sin(t.rotation)];n.attr({rotation:e.rotate,position:o,silent:!0,z2:11}),this.group.add(n)}}),this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,l=function(t,e,l){var n=e.axis,r=e.getModel("axisTick");if(!r.get("show")||n.scale.isBlank())return;for(var o=r.getModel("lineStyle"),a=l.tickDirection*r.get("length"),s=k(n.getTicksCoords(),t._transform,a,i(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),"ticks"),u=0;ug[1]?-1:1,v=["start"===a?g[0]-m*p:"end"===a?g[1]+m*p:(g[0]+g[1])/2,C(a)?t.labelOffset+c*p:0],b=e.get("nameRotate");null!=b&&(b=b*y/180),C(a)?n=_(t.rotation,null!=b?b:t.rotation,c):(n=function(t,e,l,n){var r,i,o=f(l-t.rotation),a=n[0]>n[1],s="start"===e&&!a||"start"!==e&&a;d(o-y/2)?(i=s?"bottom":"top",r="center"):d(o-1.5*y)?(i=s?"top":"bottom",r="center"):(i="middle",r=o<1.5*y&&o>y/2?s?"left":"right":s?"right":"left");return{rotation:o,textAlign:r,textVerticalAlign:i}}(t,a,b||0,g),null!=(i=t.axisNameAvailableWidth)&&(i=Math.abs(i/Math.sin(n.rotation)),!isFinite(i)&&(i=null)));var w=h.getFont(),M=e.get("nameTruncate",!0)||{},E=M.ellipsis,k=r(t.nameTruncateMaxWidth,M.maxWidth,i),T=null!=E&&null!=k?s.truncateText(l,k,w,E,{minChar:2,placeholder:M.placeholder}):l,O=e.get("tooltip",!0),A=e.mainType,D={componentType:A,name:l,$vars:["name"]};D[A+"Index"]=e.componentIndex;var P=new u.Text({anid:"name",__fullText:l,__truncatedText:T,position:v,rotation:n.rotation,silent:S(e),z2:1,tooltip:O&&O.show?o({content:l,formatter:function(){return l},formatterParams:D},O):null});u.setTextStyle(P.style,h,{text:T,textFont:w,textFill:h.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:h.get("align")||n.textAlign,textVerticalAlign:h.get("verticalAlign")||n.textVerticalAlign}),e.get("triggerEvent")&&(P.eventData=x(e),P.eventData.targetType="axisName",P.eventData.name=l),this._dumbGroup.add(P),P.updateTransform(),this.group.add(P),P.decomposeTransform()}}},x=b.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},_=b.innerTextLayout=function(t,e,l){var n,r,i=f(e-t);return d(i)?(r=l>0?"top":"bottom",n="center"):d(i-y)?(r=l>0?"bottom":"top",n="center"):(r="middle",n=i>0&&i0?"right":"left":l>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:r}};var S=b.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function M(t){t&&(t.ignore=!0)}function E(t,e,l){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=g.identity([]);return g.rotate(i,i,-t.rotation),n.applyTransform(g.mul([],i,t.getLocalTransform())),r.applyTransform(g.mul([],i,e.getLocalTransform())),n.intersect(r)}}function C(t){return"middle"===t||"center"===t}function k(t,e,l,n,r){for(var i=[],o=[],a=[],s=0;s1||t.items.merge,i[n]=r?e*l:this._items[n].width();this._widths=i}},{filter:["items","settings"],run:function(){var e=[],l=this._items,n=this.settings,r=Math.max(2*n.items,4),i=2*Math.ceil(l.length/2),o=n.loop&&l.length?n.rewind?r:Math.max(r,i):0,a="",s="";for(o/=2;o>0;)e.push(this.normalize(e.length/2,!0)),a+=l[e[e.length-1]][0].outerHTML,e.push(this.normalize(l.length-1-(e.length-1)/2,!0)),s=l[e[e.length-1]][0].outerHTML+s,o-=1;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(s).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,l=-1,n=0,r=0,i=[];++l",a)||this.op(e,"<",o)&&this.op(e,">",a))&&s.push(l);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+s.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],r.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(t("
",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},r.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map((function(e){return t(e)})),this._mergers=this._items.map((function(){return 1})),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},r.prototype.initialize=function(){var t,e,l;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:void 0,l=this.$element.children(e).width(),t.length&&l<=0&&this.preloadAutoWidthImages(t)),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},r.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},r.prototype.setup=function(){var e=this.viewport(),l=this.options.responsive,n=-1,r=null;l?(t.each(l,(function(t){t<=e&&t>n&&(n=Number(t))})),"function"===typeof(r=t.extend({},this.options,l[n])).stagePadding&&(r.stagePadding=r.stagePadding()),delete r.responsive,r.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):r=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:r}}),this._breakpoint=n,this.settings=r,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},r.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},r.prototype.prepare=function(e){var l=this.trigger("prepare",{content:e});return l.data||(l.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:l.data}),l.data},r.prototype.update=function(){for(var e=0,l=this._pipe.length,n=t.proxy((function(t){return this[t]}),this._invalidated),r={};e0)&&this._pipe[e].run(r),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},r.prototype.width=function(t){switch(t=t||r.Width.Default){case r.Width.Inner:case r.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},r.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},r.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},r.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},r.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},r.prototype.onDragStart=function(e){var n=null;3!==e.which&&(t.support.transform?n={x:(n=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===n.length?12:4],y:n[16===n.length?13:5]}:(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is("animating")&&(t.support.transform?this.animate(n.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(e),t(l).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(l).one("mousemove.owl.core touchmove.owl.core",t.proxy((function(e){var n=this.difference(this._drag.pointer,this.pointer(e));t(l).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(n.x)0^this.settings.rtl?"left":"right";t(l).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(r.x,0!==n.x?i:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=i,(Math.abs(n.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},r.prototype.closest=function(e,l){var n=-1,r=this.width(),i=this.coordinates();return this.settings.freeDrag||t.each(i,t.proxy((function(t,o){return"left"===l&&e>o-30&&eo-r-30&&e",void 0!==i[t+1]?i[t+1]:o-r)&&(n="left"===l?t+1:t),-1===n}),this)),this.settings.loop||(this.op(e,">",i[this.minimum()])?n=e=this.minimum():this.op(e,"<",i[this.maximum()])&&(n=e=this.maximum())),n},r.prototype.animate=function(e){var l=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),l&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):l?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},r.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},r.prototype.current=function(t){if(void 0===t)return this._current;if(0!==this._items.length){if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});void 0!==e.data&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current}},r.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,(function(t,e){return e}))},r.prototype.reset=function(t){void 0!==(t=this.normalize(t))&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},r.prototype.normalize=function(t,e){var l=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||l<1?t=void 0:(t<0||t>=l+n)&&(t=((t-n/2)%l+l)%l+n/2),t},r.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},r.prototype.maximum=function(t){var e,l,n,r=this.settings,i=this._coordinates.length;if(r.loop)i=this._clones.length/2+this._items.length-1;else if(r.autoWidth||r.merge){if(e=this._items.length)for(l=this._items[--e].width(),n=this.$element.width();e--&&!((l+=this._items[e].width()+this.settings.margin)>n););i=e+1}else i=r.center?this._items.length-1:this._items.length-r.items;return t&&(i-=this._clones.length/2),Math.max(i,0)},r.prototype.minimum=function(t){return t?0:this._clones.length/2},r.prototype.items=function(t){return void 0===t?this._items.slice():(t=this.normalize(t,!0),this._items[t])},r.prototype.mergers=function(t){return void 0===t?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},r.prototype.clones=function(e){var l=this._clones.length/2,n=l+this._items.length,r=function(t){return t%2===0?n+t/2:l-(t+1)/2};return void 0===e?t.map(this._clones,(function(t,e){return r(e)})):t.map(this._clones,(function(t,l){return t===e?r(l):null}))},r.prototype.speed=function(t){return void 0!==t&&(this._speed=t),this._speed},r.prototype.coordinates=function(e){var l,n=1,r=e-1;return void 0===e?t.map(this._coordinates,t.proxy((function(t,e){return this.coordinates(e)}),this)):(this.settings.center?(this.settings.rtl&&(n=-1,r=e+1),l=this._coordinates[e],l+=(this.width()-l+(this._coordinates[r]||0))/2*n):l=this._coordinates[r]||0,l=Math.ceil(l))},r.prototype.duration=function(t,e,l){return 0===l?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(l||this.settings.smartSpeed)},r.prototype.to=function(t,e){var l=this.current(),n=null,r=t-this.relative(l),i=(r>0)-(r<0),o=this._items.length,a=this.minimum(),s=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(r)>o/2&&(r+=-1*i*o),(n=(((t=l+r)-a)%o+o)%o+a)!==t&&n-r<=s&&n-r>0&&(l=n-r,t=n,this.reset(l))):t=this.settings.rewind?(t%(s+=1)+s)%s:Math.max(a,Math.min(s,t)),this.speed(this.duration(l,t,e)),this.current(t),this.isVisible()&&this.update()},r.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},r.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},r.prototype.onTransitionEnd=function(t){if(void 0!==t&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},r.prototype.viewport=function(){var n;return this.options.responsiveBaseElement!==e?n=t(this.options.responsiveBaseElement).width():e.innerWidth?n=e.innerWidth:l.documentElement&&l.documentElement.clientWidth?n=l.documentElement.clientWidth:console.warn("Can not detect viewport width."),n},r.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter((function(){return 1===this.nodeType})).each(t.proxy((function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},r.prototype.add=function(e,l){var n=this.relative(this._current);l=void 0===l?this._items.length:this.normalize(l,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:l}),e=this.prepare(e),0===this._items.length||l===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[l-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[l].before(e),this._items.splice(l,0,e),this._mergers.splice(l,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:l})},r.prototype.remove=function(t){void 0!==(t=this.normalize(t,!0))&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},r.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy((function(e,l){this.enter("pre-loading"),l=t(l),t(new Image).one("load",t.proxy((function(t){l.attr("src",t.target.src),l.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",l.attr("src")||l.attr("data-src")||l.attr("data-src-retina"))}),this))},r.prototype.destroy=function(){for(var n in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(l).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[n].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},r.prototype.op=function(t,e,l){var n=this.settings.rtl;switch(e){case"<":return n?t>l:t":return n?tl;case">=":return n?t<=l:t>=l;case"<=":return n?t>=l:t<=l}},r.prototype.on=function(t,e,l,n){t.addEventListener?t.addEventListener(e,l,n):t.attachEvent&&t.attachEvent("on"+e,l)},r.prototype.off=function(t,e,l,n){t.removeEventListener?t.removeEventListener(e,l,n):t.detachEvent&&t.detachEvent("on"+e,l)},r.prototype.trigger=function(e,l,n,i,o){var a={item:{count:this._items.length,index:this.current()}},s=t.camelCase(t.grep(["on",e,n],(function(t){return t})).join("-").toLowerCase()),u=t.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,l));return this._supress[e]||(t.each(this._plugins,(function(t,e){e.onTrigger&&e.onTrigger(u)})),this.register({type:r.Type.Event,name:e}),this.$element.trigger(u),this.settings&&"function"===typeof this.settings[s]&&this.settings[s].call(this,u)),u},r.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){void 0===this._states.current[e]&&(this._states.current[e]=0),this._states.current[e]++}),this))},r.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){this._states.current[e]--}),this))},r.prototype.register=function(e){if(e.type===r.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var l=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!l||!l.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:l.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===r.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy((function(l,n){return t.inArray(l,this._states.tags[e.name])===n}),this)))},r.prototype.suppress=function(e){t.each(e,t.proxy((function(t,e){this._supress[e]=!0}),this))},r.prototype.release=function(e){t.each(e,t.proxy((function(t,e){delete this._supress[e]}),this))},r.prototype.pointer=function(t){var l={x:null,y:null};return(t=(t=t.originalEvent||t||e.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(l.x=t.pageX,l.y=t.pageY):(l.x=t.clientX,l.y=t.clientY),l},r.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},r.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var l=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=t(this),i=n.data("owl.carousel");i||(i=new r(this,"object"==typeof e&&e),n.data("owl.carousel",i),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(e,l){i.register({type:r.Type.Event,name:l}),i.$element.on(l+".owl.carousel.core",t.proxy((function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([l]),i[l].apply(this,[].slice.call(arguments,1)),this.release([l]))}),i))}))),"string"==typeof e&&"_"!==e.charAt(0)&&i[e].apply(i,l)}))},t.fn.owlCarousel.Constructor=r})(window.Zepto||window.jQuery,window,document),function(t,e,l,n){var r=function e(l){this._core=l,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={autoRefresh:!0,autoRefreshInterval:500},r.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},r.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},r.prototype.destroy=function(){var t,l;for(t in e.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(l in Object.getOwnPropertyNames(this))"function"!=typeof this[l]&&(this[l]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=r}(window.Zepto||window.jQuery,window,document),function(t,e,l,n){var r=function e(l){this._core=l,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy((function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var l=this._core.settings,n=l.center&&Math.ceil(l.items/2)||l.items,r=l.center&&-1*n||0,i=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+r,o=this._core.clones().length,a=t.proxy((function(t,e){this.load(e)}),this);for(l.lazyLoadEager>0&&(n+=l.lazyLoadEager,l.loop&&(i-=l.lazyLoadEager,n++));r++-1||(r.each(t.proxy((function(l,n){var r,i=t(n),o=e.devicePixelRatio>1&&i.attr("data-src-retina")||i.attr("data-src")||i.attr("data-srcset");this._core.trigger("load",{element:i,url:o},"lazy"),i.is("img")?i.one("load.owl.lazy",t.proxy((function(){i.css("opacity",1),this._core.trigger("loaded",{element:i,url:o},"lazy")}),this)).attr("src",o):i.is("source")?i.one("load.owl.lazy",t.proxy((function(){this._core.trigger("loaded",{element:i,url:o},"lazy")}),this)).attr("srcset",o):((r=new Image).onload=t.proxy((function(){i.css({"background-image":'url("'+o+'")',opacity:"1"}),this._core.trigger("loaded",{element:i,url:o},"lazy")}),this),r.src=o)}),this)),this._loaded.push(n.get(0)))},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=r}(window.Zepto||window.jQuery,window,document),function(t,e,l,n){var r=function l(n){this._core=n,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()}),this),"loaded.owl.lazy":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=t.extend({},l.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var r=this;t(e).on("load",(function(){r._core.settings.autoHeight&&r.update()})),t(e).resize((function(){r._core.settings.autoHeight&&(null!=r._intervalId&&clearTimeout(r._intervalId),r._intervalId=setTimeout((function(){r.update()}),250))}))};r.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},r.prototype.update=function(){var e=this._core._current,l=e+this._core.settings.items,n=this._core.settings.lazyLoad,r=this._core.$stage.children().toArray().slice(e,l),i=[],o=0;t.each(r,(function(e,l){i.push(t(l).height())})),(o=Math.max.apply(null,i))<=1&&n&&this._previousHeight&&(o=this._previousHeight),this._previousHeight=o,this._core.$stage.parent().height(o).addClass(this._core.settings.autoHeightClass)},r.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!==typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=r}(window.Zepto||window.jQuery,window,document),function(t,e,l,n){var r=function e(l){this._core=l,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":t.proxy((function(e){if(e.namespace){var l=t(e.content).find(".owl-video");l.length&&(l.css("display","none"),this.fetch(l,t(e.content)))}}),this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy((function(t){this.play(t)}),this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1},r.prototype.fetch=function(t,e){var l=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",n=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),r=t.attr("data-width")||this._core.settings.videoWidth,i=t.attr("data-height")||this._core.settings.videoHeight,o=t.attr("href");if(!o)throw new Error("Missing video URL.");if((n=o.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)l="youtube";else if(n[3].indexOf("vimeo")>-1)l="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");l="vzaar"}n=n[6],this._videos[o]={type:l,id:n,width:r,height:i},e.attr("data-video",o),this.thumbnail(t,this._videos[o])},r.prototype.thumbnail=function(e,l){var n,r,i=l.width&&l.height?"width:"+l.width+"px;height:"+l.height+"px;":"",o=e.find("img"),a="src",s="",u=this._core.settings,c=function(l){n=u.lazyLoad?t("
",{class:"owl-video-tn "+s,srcType:l}):t("
",{class:"owl-video-tn",style:"opacity:1;background-image:url("+l+")"}),e.after(n),e.after('
')};if(e.wrap(t("
",{class:"owl-video-wrapper",style:i})),this._core.settings.lazyLoad&&(a="data-src",s="owl-lazy"),o.length)return c(o.attr(a)),o.remove(),!1;"youtube"===l.type?(r="//img.youtube.com/vi/"+l.id+"/hqdefault.jpg",c(r)):"vimeo"===l.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+l.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){r=t[0].thumbnail_large,c(r)}}):"vzaar"===l.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+l.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){r=t.framegrab_url,c(r)}})},r.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},r.prototype.play=function(e){var l,n=t(e.target).closest("."+this._core.settings.itemClass),r=this._videos[n.attr("data-video")],i=r.width||"100%",o=r.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),n=this._core.items(this._core.relative(n.index())),this._core.reset(n.index()),(l=t('')).attr("height",o),l.attr("width",i),"youtube"===r.type?l.attr("src","//www.youtube.com/embed/"+r.id+"?autoplay=1&rel=0&v="+r.id):"vimeo"===r.type?l.attr("src","//player.vimeo.com/video/"+r.id+"?autoplay=1"):"vzaar"===r.type&&l.attr("src","//view.vzaar.com/"+r.id+"/player?autoplay=true"),t(l).wrap('
').insertAfter(n.find(".owl-video")),this._playing=n.addClass("owl-video-playing"))},r.prototype.isInFullScreen=function(){var e=l.fullscreenElement||l.mozFullScreenElement||l.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},r.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||window.jQuery,window,document),function(t,e,l,n){var r=function e(l){this.core=l,this.core.options=t.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy((function(t){t.namespace&&(this.swapping="translated"==t.type)}),this),"translate.owl.carousel":t.proxy((function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};r.Defaults={animateOut:!1,animateIn:!1},r.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,l=t.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),r=this.core.$stage.children().eq(this.next),i=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(t.support.animation.end,l).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(o)),i&&r.one(t.support.animation.end,l).addClass("animated owl-animated-in").addClass(i))}},r.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=r}(window.Zepto||window.jQuery,window,document),function(t,e,l,n){var r=function e(l){this._core=l,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy((function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":t.proxy((function(t,e,l){t.namespace&&this.play(e,l)}),this),"stop.owl.autoplay":t.proxy((function(t){t.namespace&&this.stop()}),this),"mouseover.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},e.Defaults,this._core.options)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},r.prototype._next=function(n){this._call=e.setTimeout(t.proxy(this._next,this,n),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||l.hidden||this._core.next(n||this._core.settings.autoplaySpeed)},r.prototype.read=function(){return(new Date).getTime()-this._time},r.prototype.play=function(l,n){var r;this._core.is("rotating")||this._core.enter("rotating"),l=l||this._core.settings.autoplayTimeout,r=Math.min(this._time%(this._timeout||l),l),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%l-r,this._timeout=l,this._call=e.setTimeout(t.proxy(this._next,this,n),l-r)},r.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},r.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},r.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||window.jQuery,window,document),function(t,e,l,n){var r=function e(l){this._core=l,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('
'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
")}),this),"added.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())}),this),"remove.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&this.draw()}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=t.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};r.Defaults={nav:!1,navText:['',''],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},r.prototype.initialize=function(){var e,l=this._core.settings;for(e in this._controls.$relative=(l.navContainer?t(l.navContainer):t("
").addClass(l.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+l.navElement+">").addClass(l.navClass[0]).html(l.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy((function(t){this.prev(l.navSpeed)}),this)),this._controls.$next=t("<"+l.navElement+">").addClass(l.navClass[1]).html(l.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy((function(t){this.next(l.navSpeed)}),this)),l.dotsData||(this._templates=[t('