From 12d107fa19e241d32a084c89448228a08a3f282c Mon Sep 17 00:00:00 2001 From: Valentijn Nieman Date: Fri, 24 Aug 2018 18:21:48 -0400 Subject: [PATCH 1/6] Clone figure.layout so plotly.js doesn't mutate it --- dash_core_components/bundle.js | 2 +- src/components/Graph.react.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dash_core_components/bundle.js b/dash_core_components/bundle.js index 6ca139bbb..7e881dada 100644 --- a/dash_core_components/bundle.js +++ b/dash_core_components/bundle.js @@ -23,7 +23,7 @@ function e(){}return e}(),onDayMouseLeave:function(){function e(){}return e}(),r for(var n=0;n0||a!==this.props.minimumNights){if(S||y){var x=this.props.startDate?this.props.startDate:this.today;T=this.deleteModifierFromRange(T,x,x.clone().add(a,"days"),"blocked-minimum-nights")}n&&o===X.END_DATE&&(T=this.addModifierToRange(T,n,n.clone().add(a,"days"),"blocked-minimum-nights"))}(S||b)&&(0,E.default)(m).forEach(function(e){Object.keys(e).forEach(function(e){var n=(0,v.default)(e);T=t.isBlocked(n)?t.addModifier(T,n,"blocked"):t.deleteModifier(T,n,"blocked"),(S||h)&&(T=i(n)?t.addModifier(T,n,"blocked-out-of-range"):t.deleteModifier(T,n,"blocked-out-of-range")),(S||_)&&(T=s(n)?t.addModifier(T,n,"blocked-calendar"):t.deleteModifier(T,n,"blocked-calendar")),(S||g)&&(T=l(n)?t.addModifier(T,n,"highlighted-calendar"):t.deleteModifier(T,n,"highlighted-calendar"))})});var O=(0,v.default)();if((0,A.default)(this.today,O)||(T=this.deleteModifier(T,this.today,"today"),T=this.addModifier(T,O,"today"),this.today=O),Object.keys(T).length>0&&this.setState({visibleDays:(0,d.default)({},m,T)}),S||c!==this.props.phrases){var L=re(c,o);this.setState({phrases:(0,d.default)({},c,{chooseAvailableDate:L})})}}return e}()},{key:"onDayClick",value:function(){function e(e,t){var n=this.props,r=n.keepOpenOnDateSelect,o=n.minimumNights,a=n.onBlur;if(t&&t.preventDefault(),!this.isBlocked(e)){var i=this.props,s=i.focusedInput,l=i.onFocusChange,c=i.onClose,u=this.props,d=u.startDate,p=u.endDate;if(s===X.START_DATE)l(X.END_DATE),d=e,(0,x.default)(e,p)&&(p=null);else if(s===X.END_DATE){var f=d&&d.clone().add(o,"days");d?(0,x.default)(e,f)?(p=e,r||(l(null),c({startDate:d,endDate:p}))):(d=e,p=null):(p=e,l(X.START_DATE))}this.props.onDatesChange({startDate:d,endDate:p}),a()}}return e}()},{key:"onDayMouseEnter",value:function(){function e(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,r=t.endDate,o=t.focusedInput,a=t.minimumNights,i=this.state,s=i.hoverDate,l=i.visibleDays;if(o){var c={};if(c=this.deleteModifier(c,s,"hovered"),c=this.addModifier(c,e,"hovered"),n&&!r&&o===X.END_DATE){if((0,P.default)(s,n)){var u=s.clone().add(1,"day");c=this.deleteModifierFromRange(c,n,u,"hovered-span")}if(!this.isBlocked(e)&&(0,P.default)(e,n)){var p=e.clone().add(1,"day");c=this.addModifierToRange(c,n,p,"hovered-span")}}if(!n&&r&&o===X.START_DATE&&((0,R.default)(s,r)&&(c=this.deleteModifierFromRange(c,s,r,"hovered-span")),!this.isBlocked(e)&&(0,R.default)(e,r)&&(c=this.addModifierToRange(c,e,r,"hovered-span"))),n){var f=n.clone().add(1,"day"),m=n.clone().add(a+1,"days");if(c=this.deleteModifierFromRange(c,f,m,"after-hovered-start"),(0,A.default)(e,n)){var h=n.clone().add(1,"day"),_=n.clone().add(a+1,"days");c=this.addModifierToRange(c,h,_,"after-hovered-start")}}this.setState({hoverDate:e,visibleDays:(0,d.default)({},l,c)})}}}return e}()},{key:"onDayMouseLeave",value:function(){function e(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,a=this.state,i=a.hoverDate,s=a.visibleDays;if(!this.isTouchDevice&&i){var l={};if(l=this.deleteModifier(l,i,"hovered"),n&&!r&&(0,P.default)(i,n)){var c=i.clone().add(1,"day");l=this.deleteModifierFromRange(l,n,c,"hovered-span")}if(!n&&r&&(0,P.default)(r,i)&&(l=this.deleteModifierFromRange(l,i,r,"hovered-span")),n&&(0,A.default)(e,n)){var u=n.clone().add(1,"day"),p=n.clone().add(o+1,"days");l=this.deleteModifierFromRange(l,u,p,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:(0,d.default)({},s,l)})}}return e}()},{key:"onPrevMonthClick",value:function(){function e(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,i=o.visibleDays,s={};Object.keys(i).sort().slice(0,n+1).forEach(function(e){s[e]=i[e]});var l=a.clone().subtract(2,"months"),c=(0,Y.default)(l,1,r,!0),u=a.clone().subtract(1,"month");this.setState({currentMonth:u,visibleDays:(0,d.default)({},s,this.getModifiers(c))}),t(u.clone())}return e}()},{key:"onNextMonthClick",value:function(){function e(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,i=o.visibleDays,s={};Object.keys(i).sort().slice(1).forEach(function(e){s[e]=i[e]});var l=a.clone().add(n+1,"month"),c=(0,Y.default)(l,1,r,!0),u=a.clone().add(1,"month");this.setState({currentMonth:u,visibleDays:(0,d.default)({},s,this.getModifiers(c))}),t(u.clone())}return e}()},{key:"onMultiplyScrollableMonths",value:function(){function e(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,r=this.state,o=r.currentMonth,a=r.visibleDays,i=Object.keys(a).length,s=o.clone().add(i,"month"),l=(0,Y.default)(s,t,n,!0);this.setState({visibleDays:(0,d.default)({},a,this.getModifiers(l))})}return e}()},{key:"getFirstFocusableDay",value:function(){function e(e){var t=this,n=this.props,r=n.startDate,o=n.endDate,a=n.focusedInput,i=n.minimumNights,s=n.numberOfMonths,l=e.clone().startOf("month");if(a===X.START_DATE&&r?l=r.clone():a===X.END_DATE&&!o&&r?l=r.clone().add(i,"days"):a===X.END_DATE&&o&&(l=o.clone()),this.isBlocked(l)){for(var c=[],u=e.clone().add(s-1,"months").endOf("month"),d=l.clone();!(0,P.default)(d,u);)d=d.clone().add(1,"day"),c.push(d);var p=c.filter(function(e){return!t.isBlocked(e)});p.length>0&&(l=p[0])}return l}return e}()},{key:"getModifiers",value:function(){function e(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,U.default)(e)]=t.getModifiersForDay(e)})}),n}return e}()},{key:"getModifiersForDay",value:function(){function e(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}return e}()},{key:"getStateForNewMonth",value:function(){function e(e){var t=this,n=e.initialVisibleMonth,r=e.numberOfMonths,o=e.enableOutsideDays,a=e.orientation,i=e.startDate,s=n||(i?function(){return i}:function(){return t.today}),l=s(),c=a===X.VERTICAL_SCROLLABLE,u=this.getModifiers((0,Y.default)(l,r,o,c));return{currentMonth:l,visibleDays:u}}return e}()},{key:"setDayPickerRef",value:function(){function e(e){this.dayPicker=e}return e}()},{key:"addModifier",value:function(){function e(e,t,n){var r=this.props,a=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,l=this.state,c=l.currentMonth,u=l.visibleDays,p=c,f=a;if(s!==X.VERTICAL_SCROLLABLE&&(p=p.clone().subtract(1,"month"),f+=2),!t||!(0,H.default)(t,p,f,i))return e;var m=(0,U.default)(t),h=(0,d.default)({},e);if(i){var _=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(m)>-1});h=_.reduce(function(t,r){var a=e[r]||u[r],i=new Set(a[m]);return i.add(n),(0,d.default)({},t,o({},r,(0,d.default)({},a,o({},m,i))))},h)}else{var g=(0,G.default)(t),b=e[g]||u[g],y=new Set(b[m]);y.add(n),h=(0,d.default)({},h,o({},g,(0,d.default)({},b,o({},m,y))))}return h}return e}()},{key:"addModifierToRange",value:function(){function e(e,t,n,r){for(var o=e,a=t.clone();(0,R.default)(a,n);)o=this.addModifier(o,a,r),a=a.clone().add(1,"day");return o}return e}()},{key:"deleteModifier",value:function(){function e(e,t,n){var r=this.props,a=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,l=this.state,c=l.currentMonth,u=l.visibleDays,p=c,f=a;if(s!==X.VERTICAL_SCROLLABLE&&(p=p.clone().subtract(1,"month"),f+=2),!t||!(0,H.default)(t,p,f,i))return e;var m=(0,U.default)(t),h=(0,d.default)({},e);if(i){var _=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(m)>-1});h=_.reduce(function(t,r){var a=e[r]||u[r],i=new Set(a[m]);return i.delete(n),(0,d.default)({},t,o({},r,(0,d.default)({},a,o({},m,i))))},h)}else{var g=(0,G.default)(t),b=e[g]||u[g],y=new Set(b[m]);y.delete(n),h=(0,d.default)({},h,o({},g,(0,d.default)({},b,o({},m,y))))}return h}return e}()},{key:"deleteModifierFromRange",value:function(){function e(e,t,n,r){for(var o=e,a=t.clone();(0,R.default)(a,n);)o=this.deleteModifier(o,a,r),a=a.clone().add(1,"day");return o}return e}()},{key:"doesNotMeetMinimumNights",value:function(){function e(e){var t=this.props,n=t.startDate,r=t.isOutsideRange,o=t.focusedInput,a=t.minimumNights;if(o!==X.END_DATE)return!1;if(n){var i=e.diff(n.clone().startOf("day").hour(12),"days");return i=0}return r((0,v.default)(e).subtract(a,"days"))}return e}()},{key:"isDayAfterHoveredStartDate",value:function(){function e(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,a=this.state||{},i=a.hoverDate;return!!n&&!r&&!this.isBlocked(e)&&(0,L.default)(i,e)&&o>0&&(0,A.default)(i,n)}return e}()},{key:"isEndDate",value:function(){function e(e){return(0,A.default)(e,this.props.endDate)}return e}()},{key:"isHovered",value:function(){function e(e){var t=this.state||{},n=t.hoverDate,r=this.props.focusedInput;return!!r&&(0,A.default)(e,n)}return e}()},{key:"isInHoveredSpan",value:function(){function e(e){var t=this.props,n=t.startDate,r=t.endDate,o=this.state||{},a=o.hoverDate,i=!!n&&!r&&(e.isBetween(n,a)||(0,A.default)(a,e)),s=!!r&&!n&&(e.isBetween(a,r)||(0,A.default)(a,e)),l=a&&!this.isBlocked(a);return(i||s)&&l}return e}()},{key:"isInSelectedSpan",value:function(){function e(e){var t=this.props,n=t.startDate,r=t.endDate;return e.isBetween(n,r)}return e}()},{key:"isLastInRange",value:function(){function e(e){return this.isInSelectedSpan(e)&&(0,L.default)(e,this.props.endDate)}return e}()},{key:"isStartDate",value:function(){function e(e){return(0,A.default)(e,this.props.startDate)}return e}()},{key:"isBlocked",value:function(){function e(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)||this.doesNotMeetMinimumNights(e)}return e}()},{key:"isToday",value:function(){function e(e){return(0,A.default)(e,this.today)}return e}()},{key:"render",value:function(){function e(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonth,a=e.navPrev,i=e.navNext,s=e.onOutsideClick,l=e.withPortal,c=e.enableOutsideDays,u=e.firstDayOfWeek,d=e.hideKeyboardShortcutsPanel,p=e.daySize,m=e.focusedInput,h=e.renderDay,_=e.renderCalendarInfo,g=e.onBlur,b=e.isFocused,y=e.showKeyboardShortcuts,v=e.isRTL,M=e.weekDayFormat,E=this.state,S=E.currentMonth,w=E.phrases,D=E.visibleDays;return f.default.createElement(ee.default,{ref:this.setDayPickerRef,orientation:n,enableOutsideDays:c,modifiers:D,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMultiplyScrollableMonths:this.onMultiplyScrollableMonths,monthFormat:r,renderMonth:o,withPortal:l,hidden:!m,initialVisibleMonth:function(){function e(){return S}return e}(),daySize:p,onOutsideClick:s,navPrev:a,navNext:i,renderDay:h,renderCalendarInfo:_,firstDayOfWeek:u,hideKeyboardShortcutsPanel:d,isFocused:b,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:g,showKeyboardShortcuts:y,phrases:w,isRTL:v,weekDayFormat:M})}return e}()}]),t}(f.default.Component);t.default=oe,oe.propTypes=te,oe.defaultProps=ne}])},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=72)}([function(e,t){e.exports=n(4)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(19)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(23)},,function(e,t){e.exports=n(1)},function(e,t){e.exports=n(59)},function(e,t){e.exports=n(55)},function(e,t){e.exports=n(43)},,function(e,t){e.exports=n(50)},function(e,t){e.exports=n(61)},,,,function(e,t){e.exports=n(109)},,,function(e,t){e.exports=n(74)},function(e,t){e.exports=n(160)},function(e,t){e.exports=n(60)},function(e,t){e.exports=n(110)},function(e,t){e.exports=n(91)},,,,,,,function(e,t){e.exports=n(405)},,,,,function(e,t){e.exports=n(159)},,function(e,t){e.exports=n(324)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n0&&this.setState({visibleDays:(0,d.default)({},u,M)})}return e}()},{key:"componentWillUpdate",value:function(){function e(){this.today=(0,v.default)()}return e}()},{key:"onDayClick",value:function(){function e(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:null}),i({date:e}))}}return e}()},{key:"onDayMouseEnter",value:function(){function e(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,d.default)({},r,o)})}}return e}()},{key:"onDayMouseLeave",value:function(){function e(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,d.default)({},n,r)})}}return e}()},{key:"onPrevMonthClick",value:function(){function e(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,i=o.visibleDays,s={};Object.keys(i).sort().slice(0,n+1).forEach(function(e){s[e]=i[e]});var l=a.clone().subtract(1,"month"),c=(0,A.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,d.default)({},s,this.getModifiers(c))}),t(l.clone())}return e}()},{key:"onNextMonthClick",value:function(){function e(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,i=o.visibleDays,s={};Object.keys(i).sort().slice(1).forEach(function(e){s[e]=i[e]});var l=a.clone().add(n,"month"),c=(0,A.default)(l,1,r),u=a.clone().add(1,"month");this.setState({currentMonth:u,visibleDays:(0,d.default)({},s,this.getModifiers(c))}),t(u.clone())}return e}()},{key:"getFirstFocusableDay",value:function(){function e(e){var t=this,n=this.props,r=n.date,o=n.numberOfMonths,a=e.clone().startOf("month");if(r&&(a=r.clone()),this.isBlocked(a)){for(var i=[],s=e.clone().add(o-1,"months").endOf("month"),l=a.clone();!(0,L.default)(l,s);)l=l.clone().add(1,"day"),i.push(l);var c=i.filter(function(e){return!t.isBlocked(e)&&(0,L.default)(e,a)});c.length>0&&(a=c[0])}return a}return e}()},{key:"getModifiers",value:function(){function e(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,R.default)(e)]=t.getModifiersForDay(e)})}),n}return e}()},{key:"getModifiersForDay",value:function(){function e(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}return e}()},{key:"getStateForNewMonth",value:function(){function e(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=n||(r?function(){return r}:function(){return t.today}),s=i(),l=this.getModifiers((0,A.default)(s,o,a));return{currentMonth:s,visibleDays:l}}return e}()},{key:"addModifier",value:function(){function e(e,t,n){var r=this.props,a=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,l=this.state,c=l.currentMonth,u=l.visibleDays,p=c,f=a;if(s!==W.VERTICAL_SCROLLABLE&&(p=p.clone().subtract(1,"month"),f+=2),!t||!(0,P.default)(t,p,f,i))return e;var m=(0,R.default)(t),h=(0,d.default)({},e);if(i){var _=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(m)>-1});h=_.reduce(function(t,r){var a=e[r]||u[r],i=new Set(a[m]);return i.add(n),(0,d.default)({},t,o({},r,(0,d.default)({},a,o({},m,i))))},h)}else{var g=(0,Y.default)(t),b=e[g]||u[g],y=new Set(b[m]);y.add(n),h=(0,d.default)({},h,o({},g,(0,d.default)({},b,o({},m,y))))}return h}return e}()},{key:"deleteModifier",value:function(){function e(e,t,n){var r=this.props,a=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,l=this.state,c=l.currentMonth,u=l.visibleDays,p=c,f=a;if(s!==W.VERTICAL_SCROLLABLE&&(p=p.clone().subtract(1,"month"),f+=2),!t||!(0,P.default)(t,p,f,i))return e;var m=(0,R.default)(t),h=(0,d.default)({},e);if(i){var _=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(m)>-1});h=_.reduce(function(t,r){var a=e[r]||u[r],i=new Set(a[m]);return i.delete(n),(0,d.default)({},t,o({},r,(0,d.default)({},a,o({},m,i))))},h)}else{var g=(0,Y.default)(t),b=e[g]||u[g],y=new Set(b[m]);y.delete(n),h=(0,d.default)({},h,o({},g,(0,d.default)({},b,o({},m,y))))}return h}return e}()},{key:"isBlocked",value:function(){function e(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}return e}()},{key:"isHovered",value:function(){function e(e){var t=this.state||{},n=t.hoverDate;return(0,x.default)(e,n)}return e}()},{key:"isSelected",value:function(){function e(e){return(0,x.default)(e,this.props.date)}return e}()},{key:"isToday",value:function(){function e(e){return(0,x.default)(e,this.today)}return e}()},{key:"render",value:function(){function e(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonth,a=e.navPrev,i=e.navNext,s=e.withPortal,l=e.focused,c=e.enableOutsideDays,u=e.hideKeyboardShortcutsPanel,d=e.daySize,p=e.firstDayOfWeek,m=e.renderDay,h=e.renderCalendarInfo,_=e.isFocused,g=e.isRTL,b=e.phrases,y=e.onOutsideClick,v=e.onBlur,M=e.showKeyboardShortcuts,E=e.weekDayFormat,S=this.state,w=S.currentMonth,D=S.visibleDays,T=f.default.createElement(q.default,{orientation:n,enableOutsideDays:c,modifiers:D,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,monthFormat:r,withPortal:s,hidden:!l,hideKeyboardShortcutsPanel:u,initialVisibleMonth:function(){function e(){return w}return e}(),firstDayOfWeek:p,navPrev:a,navNext:i,renderMonth:o,renderDay:m,renderCalendarInfo:h,isFocused:_,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:v,phrases:b,daySize:d,isRTL:g,showKeyboardShortcuts:M,weekDayFormat:E});return y?f.default.createElement(K.default,{onOutsideClick:y},T):T}return e}()}]),t}(f.default.Component);t.default=Z,Z.propTypes=$,Z.defaultProps=Q}])},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=75)}({0:function(e,t){e.exports=n(4)},1:function(e,t){e.exports=n(16)},11:function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props;this.setState({active:!0}),this.renderPortal(e),this.props.onOpen(this.node)}},{key:"closePortal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=function(n){e.node&&(d.default.unmountComponentAtNode(e.node),document.body.removeChild(e.node)),e.portal=null,e.node=null;var r=void 0===n?t:n;r!==!0&&e.setState({active:!1})};this.state.active&&(this.props.beforeClose?this.props.beforeClose(this.node,n):n(),this.props.onClose())}},{key:"handleOutsideMouseClick",value:function(e){if(this.state.active){var t=(0,u.findDOMNode)(this.portal);t.contains(e.target)||e.button&&0!==e.button||(e.stopPropagation(),this.closePortal())}}},{key:"handleKeydown",value:function(e){e.keyCode===m.ESCAPE&&this.state.active&&this.closePortal()}},{key:"renderPortal",value:function(e){this.node||(this.node=document.createElement("div"),document.body.appendChild(this.node));var t=e.children;"function"==typeof e.children.type&&(t=c.default.cloneElement(e.children,{closePortal:this.closePortal})),this.portal=d.default.unstable_renderSubtreeIntoContainer(this,t,this.node,this.props.onUpdate)}},{key:"render",value:function(){return this.props.openByClickOn?c.default.cloneElement(this.props.openByClickOn,{onClick:this.handleWrapperClick}):null}}]),t}(c.default.Component);t.default=h,h.propTypes={children:f.default.element.isRequired,openByClickOn:f.default.element,closeOnEsc:f.default.bool,closeOnOutsideClick:f.default.bool,isOpened:f.default.bool,onOpen:f.default.func,onClose:f.default.func,beforeClose:f.default.func,onUpdate:f.default.func},h.defaultProps={onOpen:function(){},onClose:function(){},onUpdate:function(){}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return e.reduce(function(e,t){return(0,d.default)({},e,n[t])},t)}function a(e){return e.join(" ")}function i(e,t){var n=0;return function(r){return n+=1,r.map(function(r,o){return s({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-"+n+"-"+o})})}}function s(e){var t=e.node,n=e.stylesheet,r=e.style,s=void 0===r?{}:r,l=e.useInlineStyles,u=e.key,p=t.properties,m=t.type,h=t.tagName,_=t.value;if("text"===m)return _;if(h){var g=i(n,l),b=l?{style:o(p.className,(0,c.default)({},p.style,s),n)}:{className:a(p.className)},y=g(t.children);return f.default.createElement(h,(0,d.default)({key:u},b),y)}}Object.defineProperty(t,"__esModule",{value:!0});var l=n(113),c=r(l),u=n(12),d=r(u);t.createStyleObject=o,t.createClassNameString=a,t.createChildren=i,t.default=s;var p=n(4),f=r(p)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#F0F0F0",color:"#444"},"hljs-subst":{color:"#444"},"hljs-comment":{color:"#888888"},"hljs-keyword":{fontWeight:"bold"},"hljs-attribute":{fontWeight:"bold"},"hljs-selector-tag":{fontWeight:"bold"},"hljs-meta-keyword":{fontWeight:"bold"},"hljs-doctag":{fontWeight:"bold"},"hljs-name":{fontWeight:"bold"},"hljs-type":{color:"#880000"},"hljs-string":{color:"#880000"},"hljs-number":{color:"#880000"},"hljs-selector-id":{color:"#880000"},"hljs-selector-class":{color:"#880000"},"hljs-quote":{color:"#880000"},"hljs-template-tag":{color:"#880000"},"hljs-deletion":{color:"#880000"},"hljs-title":{color:"#880000",fontWeight:"bold"},"hljs-section":{color:"#880000",fontWeight:"bold"},"hljs-regexp":{color:"#BC6060"},"hljs-symbol":{color:"#BC6060"},"hljs-variable":{color:"#BC6060"},"hljs-template-variable":{color:"#BC6060"},"hljs-link":{color:"#BC6060"},"hljs-selector-attr":{color:"#BC6060"},"hljs-selector-pseudo":{color:"#BC6060"},"hljs-literal":{color:"#78A960"},"hljs-built_in":{color:"#397300"},"hljs-bullet":{color:"#397300"},"hljs-code":{color:"#397300"},"hljs-addition":{color:"#397300"},"hljs-meta":{color:"#1f7199"},"hljs-meta-string":{color:"#4d99bf"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}}},function(e,t,n){"use strict";function r(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,o=e.columnStartIndex,a=e.columnStopIndex,i=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.parent,u=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,h=e.visibleColumnIndices,_=e.visibleRowIndices,g=[],b=r.areOffsetsAdjusted()||u.areOffsetsAdjusted(),y=!l&&!b,v=d;v<=p;v++)for(var M=u.getSizeAndPositionOfCell(v),E=o;E<=a;E++){var S=r.getSizeAndPositionOfCell(E),w=E>=h.start&&E<=h.stop&&v>=_.start&&v<=_.stop,D=v+"-"+E,T=void 0;y&&f[D]?T=f[D]:i&&!i.has(v,E)?T={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(T={height:M.size,left:S.offset+s,position:"absolute",top:M.offset+m,width:S.size},f[D]=T);var k={columnIndex:E,isScrolling:l,isVisible:w,key:D,parent:c,rowIndex:v,style:T},C=void 0;!l||s||m?C=n(k):(t[D]||(t[D]=n(k)),C=t[D]),null!=C&&C!==!1&&g.push(C)}return g}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;n(8).babelPluginFlowReactPropTypes_proptype_CellRangeRendererParams||n(3).any},function(e,t,n){"use strict";function r(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,a=e.startIndex,i=e.stopIndex;return r===o?{overscanStartIndex:Math.max(0,a),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,a-n),overscanStopIndex:Math.min(t-1,i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=(n(8).babelPluginFlowReactPropTypes_proptype_OverscanIndices||n(3).any,n(8).babelPluginFlowReactPropTypes_proptype_OverscanIndicesGetterParams||n(3).any,t.SCROLL_DIRECTION_BACKWARD=-1,t.SCROLL_DIRECTION_FORWARD=1);t.SCROLL_DIRECTION_HORIZONTAL="horizontal",t.SCROLL_DIRECTION_VERTICAL="vertical"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestAnimationTimeout=t.cancelAnimationTimeout=void 0;var r=n(1101);t.cancelAnimationTimeout=function(e){return(0,r.caf)(e.id)},t.requestAnimationTimeout=function(e,t){var n=Date.now(),o=function o(){Date.now()-n>=t?e.call():a.id=(0,r.raf)(o)},a={id:(0,r.raf)(o)};return a}},function(e,t){"use strict";function n(){return!1}function r(){return!0}function o(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}Object.defineProperty(t,"__esModule",{value:!0}),o.prototype={isEventObject:1,constructor:o,isDefaultPrevented:n,isPropagationStopped:n,isImmediatePropagationStopped:n,preventDefault:function(){this.isDefaultPrevented=r},stopPropagation:function(){this.isPropagationStopped=r},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=r,this.stopPropagation()},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return null===e||void 0===e}function a(){return p}function i(){return f}function s(e){var t=e.type,n="function"==typeof e.stopPropagation||"boolean"==typeof e.cancelBubble;c.default.call(this),this.nativeEvent=e;var r=i;"defaultPrevented"in e?r=e.defaultPrevented?a:i:"getPreventDefault"in e?r=e.getPreventDefault()?a:i:"returnValue"in e&&(r=e.returnValue===f?a:i),this.isDefaultPrevented=r;var o=[],s=void 0,l=void 0,u=void 0,d=m.concat();for(h.forEach(function(e){t.match(e.reg)&&(d=d.concat(e.props),e.fix&&o.push(e.fix))}),l=d.length;l;)u=d[--l],this[u]=e[u];for(!this.target&&n&&(this.target=e.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),l=o.length;l;)(s=o[--l])(this,e);this.timeStamp=e.timeStamp||Date.now()}Object.defineProperty(t,"__esModule",{value:!0});var l=n(423),c=r(l),u=n(319),d=r(u),p=!0,f=!1,m=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"],h=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(e,t){o(e.which)&&(e.which=o(t.charCode)?t.keyCode:t.charCode),void 0===e.metaKey&&(e.metaKey=e.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(e,t){var n=void 0,r=void 0,o=void 0,a=t.wheelDelta,i=t.axis,s=t.wheelDeltaY,l=t.wheelDeltaX,c=t.detail;a&&(o=a/120),c&&(o=0-(c%3===0?c/3:c)),void 0!==i&&(i===e.HORIZONTAL_AXIS?(r=0,n=0-o):i===e.VERTICAL_AXIS&&(n=0,r=o)),void 0!==s&&(r=s/120),void 0!==l&&(n=-1*l/120),n||r||(r=o),void 0!==n&&(e.deltaX=n),void 0!==r&&(e.deltaY=r),void 0!==o&&(e.delta=o)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(e,t){var n=void 0,r=void 0,a=void 0,i=e.target,s=t.button;return i&&o(e.pageX)&&!o(t.clientX)&&(n=i.ownerDocument||document,r=n.documentElement,a=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||a&&a.scrollLeft||0)-(r&&r.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||a&&a.scrollTop||0)-(r&&r.clientTop||a&&a.clientTop||0)),e.which||void 0===s||(1&s?e.which=1:2&s?e.which=3:4&s?e.which=2:e.which=0),!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===i?e.toElement:e.fromElement),e}}],_=c.default.prototype;(0,d.default)(s.prototype,_,{constructor:s,preventDefault:function(){var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=f,_.preventDefault.call(this)},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=p,_.stopPropagation.call(this)}}),t.default=s,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){function r(t){var r=new i.default(t);n.call(e,r)}return e.addEventListener?(e.addEventListener(t,r,!1),{remove:function(){e.removeEventListener(t,r,!1)}}):e.attachEvent?(e.attachEvent("on"+t,r),{remove:function(){e.detachEvent("on"+t,r)}}):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(424),i=r(a);e.exports=t.default},function(e,t){function n(){return null}function r(){return n}n.isRequired=n,e.exports={and:r,between:r,childrenHavePropXorChildren:r,childrenOf:r,childrenOfType:r,childrenSequenceOf:r,componentWithName:r,elementType:r,explicitNull:r,forbidExtraProps:Object,integer:r,keysOf:r,mutuallyExclusiveProps:r,mutuallyExclusiveTrueProps:r,nChildren:r,nonNegativeInteger:n,nonNegativeNumber:r,numericString:r,object:r,or:r,range:r,restrictedProp:r,sequenceOf:r,shape:r,uniqueArray:r,uniqueArrayOf:r,valuesOf:r,withShape:r}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=r}},{key:"render",value:function(){var e=this,t=this.state,n=t.start_date,r=t.end_date,o=t.focusedInput,a=t.initial_visible_month,i=this.props,s=i.calendar_orientation,c=i.clearable,u=i.day_size,d=i.disabled,p=i.display_format,f=i.end_date_placeholder_text,m=i.first_day_of_week,h=i.is_RTL,g=i.minimum_nights,b=i.month_format,y=i.number_of_months_shown,v=i.reopen_calendar_on_clear,M=i.show_outside_days,E=i.start_date_placeholder_text,S=i.stay_open_on_select,w=i.with_full_screen_portal,D=i.with_portal,T="vertical"!==s;return _.default.createElement(l.DateRangePicker,{daySize:u,disabled:d,displayFormat:p,enableOutsideDays:M,endDate:r,endDatePlaceholderText:f,firstDayOfWeek:m,focusedInput:o,initialVisibleMonth:function(){return a?a:"endDate"===o?r:n},isOutsideRange:this.isOutsideRange,isRTL:h,keepOpenOnDateSelect:S,minimumNights:g,monthFormat:b,numberOfMonths:y,onDatesChange:this.onDatesChange,onFocusChange:function(t){return e.setState({focusedInput:t})},orientation:s,reopenPickerOnClearDates:v,showClearDates:c,startDate:n,startDatePlaceholderText:E,withFullScreenPortal:w&&T,withPortal:D&&T})}}]),t}(h.Component);t.default=g,g.propTypes={id:p.default.string,start_date:p.default.string,end_date:p.default.string,min_date_allowed:p.default.string,max_date_allowed:p.default.string,initial_visible_month:p.default.string,start_date_placeholder_text:p.default.string,end_date_placeholder_text:p.default.string,day_size:p.default.number,calendar_orientation:p.default.oneOf(["vertical","horizontal"]),is_RTL:p.default.bool,reopen_calendar_on_clear:p.default.bool,number_of_months_shown:p.default.number,with_portal:p.default.bool,with_full_screen_portal:p.default.bool,first_day_of_week:p.default.oneOf([0,1,2,3,4,5,6]),minimum_nights:p.default.number,stay_open_on_select:p.default.bool,show_outside_days:p.default.bool,month_format:p.default.string,display_format:p.default.string,disabled:p.default.bool,clearable:p.default.bool,setProps:p.default.func,dashEvents:p.default.oneOf(["change"]),updatemode:p.default.oneOf(["singledate","bothdates"])},g.defaultProps={calendar_orientation:"horizontal",is_RTL:!1,day_size:39,with_portal:!1,with_full_screen_portal:!1,first_day_of_week:0,number_of_months_shown:1,stay_open_on_select:!1,reopen_calendar_on_clear:!1,clearable:!1,disabled:!1,updatemode:"singledate"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=r}},{key:"onDateChange",value:function(e){var t=this.props,n=t.setProps,r=t.fireEvent;n&&null!==e?n({date:e.format("YYYY-MM-DD")}):this.setState({date:e}),r&&r("change")}},{key:"render",value:function(){var e=this,t=this.state,n=t.date,r=t.focused,o=t.initial_visible_month,a=this.props,i=a.calendar_orientation,s=a.clearable,c=a.day_size,u=a.disabled,d=a.display_format,p=a.first_day_of_week,f=a.is_RTL,m=a.month_format,h=a.number_of_months_shown,g=a.placeholder,b=a.reopen_calendar_on_clear,y=a.show_outside_days,v=a.stay_open_on_select,M=a.with_full_screen_portal,E=a.with_portal,S="vertical"!==i;return _.default.createElement(l.SingleDatePicker,{date:n,onDateChange:this.onDateChange,focused:r,onFocusChange:function(t){var n=t.focused;return e.setState({focused:n})},initialVisibleMonth:function(){return n||o},isOutsideRange:this.isOutsideRange,numberOfMonths:h,withPortal:E&&S,withFullScreenPortal:M&&S,firstDayOfWeek:p,enableOutSideDays:y,monthFormat:m,displayFormat:d,placeholder:g,showClearDate:s,disabled:u,keepOpenOnDateSelect:v,reopenPickerOnClearDates:b,isRTL:f,orientation:i,daySize:c})}}]),t}(h.Component);t.default=g,g.propTypes={id:p.default.string,date:p.default.string,min_date_allowed:p.default.string,max_date_allowed:p.default.string,initial_visible_month:p.default.string,day_size:p.default.number,calendar_orientation:p.default.oneOf(["vertical","horizontal"]),is_RTL:p.default.bool,placeholder:p.default.string,reopen_calendar_on_clear:p.default.bool,number_of_months_shown:p.default.number,with_portal:p.default.bool,with_full_screen_portal:p.default.bool,first_day_of_week:p.default.oneOf([0,1,2,3,4,5,6]),stay_open_on_select:p.default.bool,show_outside_days:p.default.bool,month_format:p.default.string,display_format:p.default.string,disabled:p.default.bool,clearable:p.default.bool,setProps:p.default.func,dashEvents:p.default.oneOf(["change"])},g.defaultProps={calendar_orientation:"horizontal",is_RTL:!1,day_size:39,with_portal:!1,with_full_screen_portal:!1,show_outside_days:!0,first_day_of_week:0,number_of_months_shown:1,stay_open_on_select:!1,reopen_calendar_on_clear:!1,clearable:!1,disabled:!1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0&&s(l),d)window.history.pushState({},"",r);else if(u||f||m){var h="Undefined"!==p.default.type(i)?i:"",_="Undefined"!==p.default.type(n)?n:"";window.history.pushState({},"",""+o+h+_)}}},{key:"componentDidMount",value:function(){var e=this,t=function(){return function(){var t=e.props.setProps;t&&t({pathname:window.location.pathname,href:window.location.href,hash:window.location.hash,search:window.location.search})}};window.addEventListener("onpopstate",t()),window.onpopstate=t("POP"),window.addEventListener("onpushstate",t()),this.updateLocation(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.updateLocation(e)}},{key:"render",value:function(){return null}}]),t}(l.Component);t.default=f,f.propTypes={id:u.default.string.isRequired,pathname:u.default.string,search:u.default.string,hash:u.default.string,href:u.default.string,refresh:u.default.bool},f.defaultProps={refresh:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return"Array"===(0,u.type)(e.children)&&(e.children=e.children.join("\n")),s.default.createElement(p.default,a({source:e.children,escapeHtml:!0},e))}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=r}},{key:"render",value:function(){var e=this,t=this.state,n=t.start_date,r=t.end_date,o=t.focusedInput,a=t.initial_visible_month,i=this.props,s=i.calendar_orientation,c=i.clearable,u=i.day_size,d=i.disabled,p=i.display_format,f=i.end_date_placeholder_text,m=i.first_day_of_week,h=i.is_RTL,g=i.minimum_nights,b=i.month_format,y=i.number_of_months_shown,v=i.reopen_calendar_on_clear,M=i.show_outside_days,E=i.start_date_placeholder_text,S=i.stay_open_on_select,w=i.with_full_screen_portal,D=i.with_portal,T="vertical"!==s;return _.default.createElement(l.DateRangePicker,{daySize:u,disabled:d,displayFormat:p,enableOutsideDays:M,endDate:r,endDatePlaceholderText:f,firstDayOfWeek:m,focusedInput:o,initialVisibleMonth:function(){return a?a:"endDate"===o?r:n},isOutsideRange:this.isOutsideRange,isRTL:h,keepOpenOnDateSelect:S,minimumNights:g,monthFormat:b,numberOfMonths:y,onDatesChange:this.onDatesChange,onFocusChange:function(t){return e.setState({focusedInput:t})},orientation:s,reopenPickerOnClearDates:v,showClearDates:c,startDate:n,startDatePlaceholderText:E,withFullScreenPortal:w&&T,withPortal:D&&T})}}]),t}(h.Component);t.default=g,g.propTypes={id:p.default.string,start_date:p.default.string,end_date:p.default.string,min_date_allowed:p.default.string,max_date_allowed:p.default.string,initial_visible_month:p.default.string,start_date_placeholder_text:p.default.string,end_date_placeholder_text:p.default.string,day_size:p.default.number,calendar_orientation:p.default.oneOf(["vertical","horizontal"]),is_RTL:p.default.bool,reopen_calendar_on_clear:p.default.bool,number_of_months_shown:p.default.number,with_portal:p.default.bool,with_full_screen_portal:p.default.bool,first_day_of_week:p.default.oneOf([0,1,2,3,4,5,6]),minimum_nights:p.default.number,stay_open_on_select:p.default.bool,show_outside_days:p.default.bool,month_format:p.default.string,display_format:p.default.string,disabled:p.default.bool,clearable:p.default.bool,setProps:p.default.func,dashEvents:p.default.oneOf(["change"]),updatemode:p.default.oneOf(["singledate","bothdates"])},g.defaultProps={calendar_orientation:"horizontal",is_RTL:!1,day_size:39,with_portal:!1,with_full_screen_portal:!1,first_day_of_week:0,number_of_months_shown:1,stay_open_on_select:!1,reopen_calendar_on_clear:!1,clearable:!1,disabled:!1,updatemode:"singledate"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=r}},{key:"onDateChange",value:function(e){var t=this.props,n=t.setProps,r=t.fireEvent;n&&null!==e?n({date:e.format("YYYY-MM-DD")}):this.setState({date:e}),r&&r("change")}},{key:"render",value:function(){var e=this,t=this.state,n=t.date,r=t.focused,o=t.initial_visible_month,a=this.props,i=a.calendar_orientation,s=a.clearable,c=a.day_size,u=a.disabled,d=a.display_format,p=a.first_day_of_week,f=a.is_RTL,m=a.month_format,h=a.number_of_months_shown,g=a.placeholder,b=a.reopen_calendar_on_clear,y=a.show_outside_days,v=a.stay_open_on_select,M=a.with_full_screen_portal,E=a.with_portal,S="vertical"!==i;return _.default.createElement(l.SingleDatePicker,{date:n,onDateChange:this.onDateChange,focused:r,onFocusChange:function(t){var n=t.focused;return e.setState({focused:n})},initialVisibleMonth:function(){return n||o},isOutsideRange:this.isOutsideRange,numberOfMonths:h,withPortal:E&&S,withFullScreenPortal:M&&S,firstDayOfWeek:p,enableOutSideDays:y,monthFormat:m,displayFormat:d,placeholder:g,showClearDate:s,disabled:u,keepOpenOnDateSelect:v,reopenPickerOnClearDates:b,isRTL:f,orientation:i,daySize:c})}}]),t}(h.Component);t.default=g,g.propTypes={id:p.default.string,date:p.default.string,min_date_allowed:p.default.string,max_date_allowed:p.default.string,initial_visible_month:p.default.string,day_size:p.default.number,calendar_orientation:p.default.oneOf(["vertical","horizontal"]),is_RTL:p.default.bool,placeholder:p.default.string,reopen_calendar_on_clear:p.default.bool,number_of_months_shown:p.default.number,with_portal:p.default.bool,with_full_screen_portal:p.default.bool,first_day_of_week:p.default.oneOf([0,1,2,3,4,5,6]),stay_open_on_select:p.default.bool,show_outside_days:p.default.bool,month_format:p.default.string,display_format:p.default.string,disabled:p.default.bool,clearable:p.default.bool,setProps:p.default.func,dashEvents:p.default.oneOf(["change"])},g.defaultProps={calendar_orientation:"horizontal",is_RTL:!1,day_size:39,with_portal:!1,with_full_screen_portal:!1,show_outside_days:!0,first_day_of_week:0,number_of_months_shown:1,stay_open_on_select:!1,reopen_calendar_on_clear:!1,clearable:!1,disabled:!1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0&&s(l),d)window.history.pushState({},"",r);else if(u||f||m){var h="Undefined"!==p.default.type(i)?i:"",_="Undefined"!==p.default.type(n)?n:"";window.history.pushState({},"",""+o+h+_)}}},{key:"componentDidMount",value:function(){var e=this,t=function(){return function(){var t=e.props.setProps;t&&t({pathname:window.location.pathname,href:window.location.href,hash:window.location.hash,search:window.location.search})}};window.addEventListener("onpopstate",t()),window.onpopstate=t("POP"),window.addEventListener("onpushstate",t()),this.updateLocation(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.updateLocation(e)}},{key:"render",value:function(){return null}}]),t}(l.Component);t.default=f,f.propTypes={id:u.default.string.isRequired,pathname:u.default.string,search:u.default.string,hash:u.default.string,href:u.default.string,refresh:u.default.bool},f.defaultProps={refresh:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return"Array"===(0,u.type)(e.children)&&(e.children=e.children.join("\n")),s.default.createElement(p.default,a({source:e.children,escapeHtml:!0},e))}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t0&&l[0].length>0&&(i.language=l[0],i.codeinfo=l);break;case"code":i.children=e.literal,i.inline=!0;break;case"heading":i.level=e.level;break;case"softbreak":i.softBreak=n.softBreak;break;case"link":i.href=n.transformLinkUri?n.transformLinkUri(e.destination):e.destination,i.title=e.title||a,n.linkTarget&&(i.target=n.linkTarget);break;case"image":i.src=n.transformImageUri?n.transformImageUri(e.destination):e.destination,i.title=e.title||a,i.alt=e.react.children.join(""),e.react.children=a;break;case"list":i.start=e.listStart,i.type=e.listType,i.tight=e.listTight}"string"!=typeof r&&(i.literal=e.literal);var c=i.children||e.react&&e.react.children;return Array.isArray(c)&&(i.children=c.reduce(u,[])||null),i}function f(e){return e?e.sourcepos?d(e.sourcepos):f(e.parent):null}function m(e){for(var t,n,r,a,i,c,u,d,m,h=e.walker(),_={sourcePos:this.sourcePos,escapeHtml:this.escapeHtml,skipHtml:this.skipHtml,transformLinkUri:this.transformLinkUri,transformImageUri:this.transformImageUri,softBreak:this.softBreak,linkTarget:this.linkTarget},y=0;t=h.next();){var v=f(t.node.sourcepos?t.node:t.node.parent);if(m===v?(u=v+y,y++):(u=v,y=0),m=v,r=t.entering,a=!r,n=t.node,i=o(n.type),d=null,c){if(n!==c&&!("paragraph"===i&&s(n)||this.skipHtml&&("html_block"===i||"html_inline"===i))){var E=n===c,S=this.allowedTypes.indexOf(i)===-1,w=!1,D=n.isContainer&&a,T=this.renderers[i];if(this.allowNode&&(D||!n.isContainer)){var k=D?n.react.children:[];d=p(n,u,_,T),w=!this.allowNode({type:M(i),renderer:this.renderers[i],props:d,children:k})}if(E||!w&&!S){var C="text"===i||"softbreak"===i;if("function"!=typeof T&&!C&&"string"!=typeof T)throw new Error("Renderer for type `"+M(n.type)+"` not defined or is not renderable");if(n.isContainer&&r)n.react={component:T,props:{},children:[]};else{var x=d||p(n,u,_,T);if(T)x="string"==typeof T?x:b(x,{nodeKey:x.key}),l(n,g.createElement(T,x));else if("text"===i)l(n,n.literal);else if("softbreak"===i){var O="br"===this.softBreak?g.createElement("br",{key:u}):this.softBreak;l(n,O)}}}else!this.unwrapDisallowed&&r&&n.isContainer&&h.resumeAt(n,!1)}}else c=n,n.react={children:[]}}return c.react.children}function h(e){var t=e.replace(/file:\/\//g,"x-file://");return decodeURI(v.uriInDoubleQuotedAttr(t))}function _(e){var t=e||{};if(t.allowedTypes&&t.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");if(t.allowedTypes&&!Array.isArray(t.allowedTypes))throw new Error("`allowedTypes` must be an array");if(t.disallowedTypes&&!Array.isArray(t.disallowedTypes))throw new Error("`disallowedTypes` must be an array");if(t.allowNode&&"function"!=typeof t.allowNode)throw new Error("`allowNode` must be a function");var n=t.transformLinkUri;if("undefined"==typeof n)n=h;else if(n&&"function"!=typeof n)throw new Error("`transformLinkUri` must either be a function, or `null` to disable");var r=t.transformImageUri;if("undefined"!=typeof r&&"function"!=typeof r)throw new Error("`transformImageUri` must be a function");if(t.renderers&&!y(t.renderers))throw new Error("`renderers` must be a plain object of `Type`: `Renderer` pairs");var i=t.allowedTypes&&t.allowedTypes.map(o)||w;if(t.disallowedTypes){var s=t.disallowedTypes.map(o);i=i.filter(function(e){return s.indexOf(e)===-1})}return{sourcePos:Boolean(t.sourcePos),softBreak:t.softBreak||"\n",renderers:b({},S,a(t.renderers)),escapeHtml:Boolean(t.escapeHtml),skipHtml:Boolean(t.skipHtml),transformLinkUri:n,transformImageUri:r,allowNode:t.allowNode,allowedTypes:i,unwrapDisallowed:Boolean(t.unwrapDisallowed),render:m,linkTarget:t.linkTarget||!1}}var g=n(4),b=n(747),y=n(748),v=n(1112),M=n(757),E={blockquote:"block_quote",thematicbreak:"thematic_break",htmlblock:"html_block",htmlinline:"html_inline",codeblock:"code_block",hardbreak:"linebreak"},S={block_quote:"blockquote",emph:"em",linebreak:"br",image:"img",item:"li",link:"a",paragraph:"p",strong:"strong",thematic_break:"hr",html_block:i,html_inline:i,list:function(e){var t="bullet"===e.type.toLowerCase()?"ul":"ol",n=r(e);return null!==e.start&&1!==e.start&&(n.start=e.start.toString()),c(t,n,e.children)},code_block:function(e){var t=e.language&&"language-"+e.language,n=c("code",{className:t},e.literal);return c("pre",r(e),n)},code:function(e){return c("code",r(e),e.children)},heading:function(e){return c("h"+e.level,r(e),e.children)},text:null,softbreak:null},w=Object.keys(S);_.uriTransformer=h,_.types=w.map(M),_.renderers=w.reduce(function(e,t){return e[M(t)]=S[t],e},{}),e.exports=_},function(e,t,n){"use strict";function r(e){return{doc:new G,blocks:R,blockStarts:F,tip:this.doc,oldtip:this.doc,currentLine:"",lineNumber:0,offset:0,column:0,nextNonspace:0,nextNonspaceColumn:0,indent:0,indented:!1,blank:!1,allClosed:!0,lastMatchedContainer:this.doc,refmap:{},lastLineLength:0,inlineParser:new h(e),findNextNonspace:H,advanceOffset:Y,advanceNextNonspace:B,breakOutOfLists:L,addLine:j,addChild:A,incorporateLine:z,finalize:U,processInlines:W,closeUnmatchedBlocks:I,parse:q,options:e||{}}}var o=n(114),a=n(51).unescapeString,i=n(51).OPENTAG,s=n(51).CLOSETAG,l=4,c=9,u=10,d=62,p=60,f=32,m=91,h=n(461),_=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^/,/\?>/,/>/,/\]\]>/],b=/^(?:(?:\* *){3,}|(?:_ *){3,}|(?:- *){3,}) *$/,y=/^[#`~*+_=<>0-9-]/,v=/[^ \t\f\v\r\n]/,M=/^[*+-]/,E=/^(\d{1,9})([.)])/,S=/^#{1,6}(?: +|$)/,w=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,D=/^(?:`{3,}|~{3,})(?= *$)/,T=/^(?:=+|-+) *$/,k=/\r\n|\n|\r/,C=function(e){return!v.test(e)},x=function(e,t){return t=5||l<1||s?(i.padding=t[0].length+1,e.column=r,e.offset=o,x(e.currentLine,e.offset)===f&&e.advanceOffset(1,!0)):i.padding=t[0].length+l,i},P=function(e,t){return e.type===t.type&&e.delimiter===t.delimiter&&e.bulletChar===t.bulletChar},I=function(){if(!this.allClosed){for(;this.oldtip!==this.lastMatchedContainer;){var e=this.oldtip._parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=e}this.allClosed=!0}},R={Document:{continue:function(){return 0},finalize:function(){},canContain:function(e){return"Item"!==e},acceptsLines:!1},List:{continue:function(){return 0},finalize:function(e,t){for(var n=t._firstChild;n;){if(O(n)&&n._next){t._listData.tight=!1;break}for(var r=n._firstChild;r;){if(O(r)&&(n._next||r._next)){t._listData.tight=!1;break}r=r._next}n=n._next}},canContain:function(e){return"Item"===e},acceptsLines:!1},BlockQuote:{continue:function(e){var t=e.currentLine;return e.indented||x(t,e.nextNonspace)!==d?1:(e.advanceNextNonspace(),e.advanceOffset(1,!1),x(t,e.offset)===f&&e.offset++,0)},finalize:function(){},canContain:function(e){return"Item"!==e},acceptsLines:!1},Item:{continue:function(e,t){if(e.blank&&null!==t._firstChild)e.advanceNextNonspace();else{if(!(e.indent>=t._listData.markerOffset+t._listData.padding))return 1;e.advanceOffset(t._listData.markerOffset+t._listData.padding,!0)}return 0},finalize:function(){},canContain:function(e){return"Item"!==e},acceptsLines:!1},Heading:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},ThematicBreak:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},CodeBlock:{continue:function(e,t){var n=e.currentLine,r=e.indent;if(t._isFenced){var o=r<=3&&n.charAt(e.nextNonspace)===t._fenceChar&&n.slice(e.nextNonspace).match(D); if(o&&o[0].length>=t._fenceLength)return e.finalize(t,e.lineNumber),2;for(var a=t._fenceOffset;a>0&&x(n,e.offset)===f;)e.advanceOffset(1,!1),a--}else if(r>=l)e.advanceOffset(l,!0);else{if(!e.blank)return 1;e.advanceNextNonspace()}return 0},finalize:function(e,t){if(t._isFenced){var n=t._string_content,r=n.indexOf("\n"),o=n.slice(0,r),i=n.slice(r+1);t.info=a(o.trim()),t._literal=i}else t._literal=t._string_content.replace(/(\n *)+$/,"\n");t._string_content=null},canContain:function(){return!1},acceptsLines:!0},HtmlBlock:{continue:function(e,t){return!e.blank||6!==t._htmlBlockType&&7!==t._htmlBlockType?0:1},finalize:function(e,t){t._literal=t._string_content.replace(/(\n *)+$/,""),t._string_content=null},canContain:function(){return!1},acceptsLines:!0},Paragraph:{continue:function(e){return e.blank?1:0},finalize:function(e,t){for(var n,r=!1;x(t._string_content,0)===m&&(n=e.inlineParser.parseReference(t._string_content,e.refmap));)t._string_content=t._string_content.slice(n),r=!0;r&&C(t._string_content)&&t.unlink()},canContain:function(){return!1},acceptsLines:!0}},F=[function(e){return e.indented||x(e.currentLine,e.nextNonspace)!==d?0:(e.advanceNextNonspace(),e.advanceOffset(1,!1),x(e.currentLine,e.offset)===f&&e.advanceOffset(1,!1),e.closeUnmatchedBlocks(),e.addChild("BlockQuote",e.nextNonspace),1)},function(e){var t;if(!e.indented&&(t=e.currentLine.slice(e.nextNonspace).match(S))){e.advanceNextNonspace(),e.advanceOffset(t[0].length,!1),e.closeUnmatchedBlocks();var n=e.addChild("Heading",e.nextNonspace);return n.level=t[0].trim().length,n._string_content=e.currentLine.slice(e.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,""),e.advanceOffset(e.currentLine.length-e.offset),2}return 0},function(e){var t;if(!e.indented&&(t=e.currentLine.slice(e.nextNonspace).match(w))){var n=t[0].length;e.closeUnmatchedBlocks();var r=e.addChild("CodeBlock",e.nextNonspace);return r._isFenced=!0,r._fenceLength=n,r._fenceChar=t[0][0],r._fenceOffset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},function(e,t){if(!e.indented&&x(e.currentLine,e.nextNonspace)===p){var n,r=e.currentLine.slice(e.nextNonspace);for(n=1;n<=7;n++)if(_[n].test(r)&&(n<7||"Paragraph"!==t.type)){e.closeUnmatchedBlocks();var o=e.addChild("HtmlBlock",e.offset);return o._htmlBlockType=n,2}}return 0},function(e,t){var n;if(!e.indented&&"Paragraph"===t.type&&(n=e.currentLine.slice(e.nextNonspace).match(T))){e.closeUnmatchedBlocks();var r=new o("Heading",t.sourcepos);return r.level="="===n[0][0]?1:2,r._string_content=t._string_content,t.insertAfter(r),t.unlink(),e.tip=r,e.advanceOffset(e.currentLine.length-e.offset,!1),2}return 0},function(e){return!e.indented&&b.test(e.currentLine.slice(e.nextNonspace))?(e.closeUnmatchedBlocks(),e.addChild("ThematicBreak",e.nextNonspace),e.advanceOffset(e.currentLine.length-e.offset,!1),2):0},function(e,t){var n;return e.indented&&"List"!==t.type||!(n=N(e))?0:(e.closeUnmatchedBlocks(),"List"===e.tip.type&&P(t._listData,n)||(t=e.addChild("List",e.nextNonspace),t._listData=n),t=e.addChild("Item",e.nextNonspace),t._listData=n,1)},function(e){return e.indented&&"Paragraph"!==e.tip.type&&!e.blank?(e.advanceOffset(l,!0),e.closeUnmatchedBlocks(),e.addChild("CodeBlock",e.offset),2):0}],Y=function(e,t){for(var n,r,o=0,a=this.currentLine;e>0&&(r=a[this.offset]);)"\t"===r?(n=4-this.column%4,this.column+=n,this.offset+=1,e-=t?n:1):(o+=1,this.offset+=1,this.column+=1,e-=1)},B=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn},H=function(){for(var e,t=this.currentLine,n=this.offset,r=this.column;""!==(e=t.charAt(n));)if(" "===e)n++,r++;else{if("\t"!==e)break;n++,r+=4-r%4}this.blank="\n"===e||"\r"===e||""===e,this.nextNonspace=n,this.nextNonspaceColumn=r,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=l},z=function(e){var t,n=!0,r=this.doc;this.oldtip=this.tip,this.offset=0,this.column=0,this.lineNumber+=1,e.indexOf("\0")!==-1&&(e=e.replace(/\0/g,"�")),this.currentLine=e;for(var o;(o=r._lastChild)&&o._open;){switch(r=o,this.findNextNonspace(),this.blocks[r.type].continue(this,r)){case 0:break;case 1:n=!1;break;case 2:return void(this.lastLineLength=e.length);default:throw"continue returned illegal value, must be 0, 1, or 2"}if(!n){r=r._parent;break}}this.allClosed=r===this.oldtip,this.lastMatchedContainer=r,this.blank&&r._lastLineBlank&&(this.breakOutOfLists(r),r=this.tip);for(var a="Paragraph"!==r.type&&R[r.type].acceptsLines,i=this.blockStarts,s=i.length;!a;){if(this.findNextNonspace(),!this.indented&&!y.test(e.slice(this.nextNonspace))){this.advanceNextNonspace();break}for(var l=0;l=1&&r._htmlBlockType<=5&&g[r._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(r,this.lineNumber)):this.offset1114111||r(c)!==c)return String.fromCharCode(65533);c<=65535?a.push(c):(c-=65536,e=(c>>10)+55296,t=c%1024+56320,a.push(e,t)),(i+1===s||a.length>o)&&(l+=n.apply(null,a),a.length=0)}return l};e.exports=o}},function(e,t,n){"use strict";function r(e){return{softbreak:"\n",escape:o,options:e||{},render:u}}var o=n(51).escapeXml,a=function(e,t,n){var r="<"+e;if(t&&t.length>0)for(var o,a=0;void 0!==(o=t[a]);)r+=" "+o[0]+'="'+o[1]+'"',a++;return n&&(r+=" /"),r+=">"},i=/\<[^>]*\>/,s=/^javascript:|vbscript:|file:|data:/i,l=/^data:image\/(?:png|gif|jpeg|webp)/i,c=function(e){return s.test(e)&&!l.test(e)},u=function(e){var t,n,r,o,s,l,u,d=e.walker(),p="",f="\n",m=0,h=function(e){p+=m>0?e.replace(i,""):e,f=e},_=this.escape,g=function(){"\n"!==f&&(p+="\n",f="\n")},b=this.options;for(b.time&&console.time("rendering");o=d.next();){if(l=o.entering,s=o.node,t=[],b.sourcepos){var y=s.sourcepos;y&&t.push(["data-sourcepos",String(y[0][0])+":"+String(y[0][1])+"-"+String(y[1][0])+":"+String(y[1][1])])}switch(s.type){case"Text":h(_(s.literal,!1));break;case"Softbreak":h(this.softbreak);break;case"Hardbreak":h(a("br",[],!0)),g();break;case"Emph":h(a(l?"em":"/em"));break;case"Strong":h(a(l?"strong":"/strong"));break;case"HtmlInline":h(b.safe?"":s.literal);break;case"CustomInline":l&&s.onEnter?h(s.onEnter):!l&&s.onExit&&h(s.onExit);break;case"Link":l?(b.safe&&c(s.destination)||t.push(["href",_(s.destination,!0)]),s.title&&t.push(["title",_(s.title,!0)]),h(a("a",t))):h(a("/a"));break;case"Image":l?(0===m&&h(b.safe&&c(s.destination)?'':'<img src=')));break;case"Code":h(a("code")+_(s.literal,!1)+a("/code"));break;case"Document":break;case"Paragraph":if(u=s.parent.parent,null!==u&&"List"===u.type&&u.listTight)break;l?(g(),h(a("p",t))):(h(a("/p")),g());break;case"BlockQuote":l?(g(),h(a("blockquote",t)),g()):(g(),h(a("/blockquote")),g());break;case"Item":l?h(a("li",t)):(h(a("/li")),g());break;case"List":if(r="Bullet"===s.listType?"ul":"ol",l){var v=s.listStart;null!==v&&1!==v&&t.push(["start",v.toString()]),g(),h(a(r,t)),g()}else g(),h(a("/"+r)),g();break;case"Heading":r="h"+s.level,l?(g(),h(a(r,t))):(h(a("/"+r)),g());break;case"CodeBlock":n=s.info?s.info.split(/\s+/):[],n.length>0&&n[0].length>0&&t.push(["class","language-"+_(n[0],!0)]),g(),h(a("pre")+a("code",t)),h(_(s.literal,!1)),h(a("/code")+a("/pre")),g();break;case"HtmlBlock":g(),h(b.safe?"":s.literal),g();break;case"CustomBlock":g(),l&&s.onEnter?h(s.onEnter):!l&&s.onExit&&h(s.onExit),g();break;case"ThematicBreak":g(),h(a("hr",t,!0)),g();break;default:throw"Unknown node type "+s.type}}return b.time&&console.timeEnd("rendering"),p};e.exports=r},function(e,t,n){"use strict";e.exports.version="0.24.0",e.exports.Node=n(114),e.exports.Parser=n(457),e.exports.HtmlRenderer=n(459),e.exports.XmlRenderer=n(463)},function(e,t,n){"use strict";function r(e){return{subject:"",delimiters:null,pos:0,refmap:{},match:J,peek:ee,spnl:te,parseBackticks:ne,parseBackslash:re,parseAutolink:oe,parseHtmlTag:ae,scanDelims:ie,handleDelim:se,parseLinkTitle:de,parseLinkDestination:pe,parseLinkLabel:fe,parseOpenBracket:me,parseCloseBracket:_e,parseBang:he,parseEntity:ge,parseString:be,parseNewline:ye,parseReference:ve,parseInline:Me,processEmphasis:ue,removeDelimiter:le,options:e||{},parse:Ee}}var o=n(114),a=n(51),i=n(462),s=a.normalizeURI,l=a.unescapeString,c=n(458),u=n(186).decodeHTML;n(1106);var d=10,p=42,f=95,m=96,h=91,_=93,g=60,b=33,y=92,v=38,M=40,E=41,S=58,w=39,D=34,T=a.ESCAPABLE,k="\\\\"+T,C="[^\\\\()\\x00-\\x20]",x="\\(("+C+"|"+k+"|\\\\)*\\)",O=a.ENTITY,L=a.reHtmlTag,j=new RegExp(/^[\u2000-\u206F\u2E00-\u2E7F\\'!"#\$%&\(\)\*\+,\-\.\/:;<=>\?@\[\]\^_`\{\|\}~]/),A=new RegExp('^(?:"('+k+'|[^"\\x00])*"|\'('+k+"|[^'\\x00])*'|\\(("+k+"|[^)\\x00])*\\))"),N=new RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|"+k+"|\\\\)*[>])"),P=new RegExp("^(?:"+C+"+|"+k+"|\\\\|"+x+")*"),I=new RegExp("^"+T),R=new RegExp("^"+O,"i"),F=/`+/,Y=/^`+/,B=/\.\.\./g,H=/--+/g,z=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,U=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,W=/^ *(?:\n *)?/,G=/^\s/,q=/\s+/g,V=/ *$/,K=/^ */,$=/^ *(?:\n|$)/,Q=new RegExp("^\\[(?:[^\\\\\\[\\]]|"+k+"|\\\\){0,1000}\\]"),Z=/^[^\n`\[\]\\!<&*_'"]+/m,X=function(e){var t=new o("Text");return t._literal=e,t},J=function(e){var t=e.exec(this.subject.slice(this.pos));return null===t?null:(this.pos+=t.index+t[0].length,t[0])},ee=function(){return this.pos1001?0:e.length},me=function(e){var t=this.pos;this.pos+=1;var n=X("[");return e.appendChild(n),this.delimiters={cc:h,numdelims:1,node:n,previous:this.delimiters,next:null,can_open:!0,can_close:!1,index:t,active:!0},null!==this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters),!0},he=function(e){var t=this.pos;if(this.pos+=1,this.peek()===h){this.pos+=1;var n=X("![");e.appendChild(n),this.delimiters={cc:b,numdelims:1,node:n,previous:this.delimiters,next:null,can_open:!0,can_close:!1,index:t+1,active:!0},null!==this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters)}else e.appendChild(X("!"));return!0},_e=function(e){var t,n,r,a,s,l,c=!1;for(this.pos+=1,t=this.pos,l=this.delimiters;null!==l&&l.cc!==h&&l.cc!==b;)l=l.previous;if(null===l)return e.appendChild(X("]")),!0;if(!l.active)return e.appendChild(X("]")),this.removeDelimiter(l),!0;if(n=l.cc===b,this.peek()===M)this.pos++,this.spnl()&&null!==(r=this.parseLinkDestination())&&this.spnl()&&(G.test(this.subject.charAt(this.pos-1))&&(a=this.parseLinkTitle()),!0)&&this.spnl()&&this.peek()===E&&(this.pos+=1,c=!0);else{var u=this.pos,d=this.pos,p=this.parseLinkLabel();s=0===p||2===p?this.subject.slice(l.index,t):this.subject.slice(d,d+p),0===p&&(this.pos=u);var f=this.refmap[i(s)];f&&(r=f.destination,a=f.title,c=!0)}if(c){var m=new o(n?"Image":"Link");m._destination=r,m._title=a||"";var _,g;for(_=l.node._next;_;)g=_._next,_.unlink(),m.appendChild(_),_=g;if(e.appendChild(m),this.processEmphasis(l.previous),l.node.unlink(),!n)for(l=this.delimiters;null!==l;)l.cc===h&&(l.active=!1),l=l.previous;return!0}return this.removeDelimiter(l),this.pos=t,e.appendChild(X("]")),!0},ge=function(e){var t;return!!(t=this.match(R))&&(e.appendChild(X(u(t))),!0)},be=function(e){var t;return!!(t=this.match(Z))&&(this.options.smart?e.appendChild(X(t.replace(B,"…").replace(H,function(e){var t=0,n=0;return e.length%3===0?n=e.length/3:e.length%2===0?t=e.length/2:e.length%3===2?(t=1,n=(e.length-2)/3):(t=2,n=(e.length-4)/3),"—".repeat(n)+"–".repeat(t)}))):e.appendChild(X(t)),!0)},ye=function(e){this.pos+=1;var t=e._lastChild;if(t&&"Text"===t.type&&" "===t._literal[t._literal.length-1]){var n=" "===t._literal[t._literal.length-2];t._literal=t._literal.replace(V,""),e.appendChild(new o(n?"Hardbreak":"Softbreak"))}else e.appendChild(new o("Softbreak"));return this.match(K),!0},ve=function(e,t){this.subject=e,this.pos=0;var n,r,o,a,s=this.pos;if(a=this.parseLinkLabel(),0===a)return 0;if(n=this.subject.substr(0,a),this.peek()!==S)return this.pos=s,0;if(this.pos++,this.spnl(),r=this.parseLinkDestination(),null===r||0===r.length)return this.pos=s,0;var l=this.pos;this.spnl(),o=this.parseLinkTitle(),null===o&&(o="",this.pos=l);var c=!0;if(null===this.match($)&&(""===o?c=!1:(o="",this.pos=l,c=null!==this.match($))),!c)return this.pos=s,0;var u=i(n);return""===u?(this.pos=s,0):(t[u]||(t[u]={destination:r,title:o}),this.pos-s)},Me=function(e){var t=!1,n=this.peek();if(n===-1)return!1;switch(n){case d:t=this.parseNewline(e);break;case y:t=this.parseBackslash(e);break;case m:t=this.parseBackticks(e);break;case p:case f:t=this.handleDelim(n,e);break;case w:case D:t=this.options.smart&&this.handleDelim(n,e);break;case h:t=this.parseOpenBracket(e);break;case b:t=this.parseBang(e);break;case _:t=this.parseCloseBracket(e);break;case g:t=this.parseAutolink(e)||this.parseHtmlTag(e);break;case v:t=this.parseEntity(e);break;default:t=this.parseString(e)}return t||(this.pos+=1,e.appendChild(X(c(n)))),!0},Ee=function(e){for(this.subject=e._string_content.trim(),this.pos=0,this.delimiters=null;this.parseInline(e););e._string_content=null,this.processEmphasis(null)};e.exports=r},function(e,t){"use strict";var n=/[ \t\r\n]+|[A-Z\xB5\xC0-\xD6\xD8-\xDF\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u0149\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u017F\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C5\u01C7\u01C8\u01CA\u01CB\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F0-\u01F2\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0345\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03AB\u03B0\u03C2\u03CF-\u03D1\u03D5\u03D6\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F0\u03F1\u03F4\u03F5\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u0587\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E96-\u1E9B\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F50\u1F52\u1F54\u1F56\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1F80-\u1FAF\u1FB2-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD2\u1FD3\u1FD6-\u1FDB\u1FE2-\u1FE4\u1FE6-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u2132\u2160-\u216F\u2183\u24B6-\u24CF\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0\uA7B1\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27]|\uD806[\uDCA0-\uDCBF]/g,r={A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","µ":"μ","À":"à","Á":"á","Â":"â","Ã":"ã","Ä":"ä","Å":"å","Æ":"æ","Ç":"ç","È":"è","É":"é","Ê":"ê","Ë":"ë","Ì":"ì","Í":"í","Î":"î","Ï":"ï","Ð":"ð","Ñ":"ñ","Ò":"ò","Ó":"ó","Ô":"ô","Õ":"õ","Ö":"ö","Ø":"ø","Ù":"ù","Ú":"ú","Û":"û","Ü":"ü","Ý":"ý","Þ":"þ","Ā":"ā","Ă":"ă","Ą":"ą","Ć":"ć","Ĉ":"ĉ","Ċ":"ċ","Č":"č","Ď":"ď","Đ":"đ","Ē":"ē","Ĕ":"ĕ","Ė":"ė","Ę":"ę","Ě":"ě","Ĝ":"ĝ","Ğ":"ğ","Ġ":"ġ","Ģ":"ģ","Ĥ":"ĥ","Ħ":"ħ","Ĩ":"ĩ","Ī":"ī","Ĭ":"ĭ","Į":"į","IJ":"ij","Ĵ":"ĵ","Ķ":"ķ","Ĺ":"ĺ","Ļ":"ļ","Ľ":"ľ","Ŀ":"ŀ","Ł":"ł","Ń":"ń","Ņ":"ņ","Ň":"ň","Ŋ":"ŋ","Ō":"ō","Ŏ":"ŏ","Ő":"ő","Œ":"œ","Ŕ":"ŕ","Ŗ":"ŗ","Ř":"ř","Ś":"ś","Ŝ":"ŝ","Ş":"ş","Š":"š","Ţ":"ţ","Ť":"ť","Ŧ":"ŧ","Ũ":"ũ","Ū":"ū","Ŭ":"ŭ","Ů":"ů","Ű":"ű","Ų":"ų","Ŵ":"ŵ","Ŷ":"ŷ","Ÿ":"ÿ","Ź":"ź","Ż":"ż","Ž":"ž","ſ":"s","Ɓ":"ɓ","Ƃ":"ƃ","Ƅ":"ƅ","Ɔ":"ɔ","Ƈ":"ƈ","Ɖ":"ɖ","Ɗ":"ɗ","Ƌ":"ƌ","Ǝ":"ǝ","Ə":"ə","Ɛ":"ɛ","Ƒ":"ƒ","Ɠ":"ɠ","Ɣ":"ɣ","Ɩ":"ɩ","Ɨ":"ɨ","Ƙ":"ƙ","Ɯ":"ɯ","Ɲ":"ɲ","Ɵ":"ɵ","Ơ":"ơ","Ƣ":"ƣ","Ƥ":"ƥ","Ʀ":"ʀ","Ƨ":"ƨ","Ʃ":"ʃ","Ƭ":"ƭ","Ʈ":"ʈ","Ư":"ư","Ʊ":"ʊ","Ʋ":"ʋ","Ƴ":"ƴ","Ƶ":"ƶ","Ʒ":"ʒ","Ƹ":"ƹ","Ƽ":"ƽ","DŽ":"dž","Dž":"dž","LJ":"lj","Lj":"lj","NJ":"nj","Nj":"nj","Ǎ":"ǎ","Ǐ":"ǐ","Ǒ":"ǒ","Ǔ":"ǔ","Ǖ":"ǖ","Ǘ":"ǘ","Ǚ":"ǚ","Ǜ":"ǜ","Ǟ":"ǟ","Ǡ":"ǡ","Ǣ":"ǣ","Ǥ":"ǥ","Ǧ":"ǧ","Ǩ":"ǩ","Ǫ":"ǫ","Ǭ":"ǭ","Ǯ":"ǯ","DZ":"dz","Dz":"dz","Ǵ":"ǵ","Ƕ":"ƕ","Ƿ":"ƿ","Ǹ":"ǹ","Ǻ":"ǻ","Ǽ":"ǽ","Ǿ":"ǿ","Ȁ":"ȁ","Ȃ":"ȃ","Ȅ":"ȅ","Ȇ":"ȇ","Ȉ":"ȉ","Ȋ":"ȋ","Ȍ":"ȍ","Ȏ":"ȏ","Ȑ":"ȑ","Ȓ":"ȓ","Ȕ":"ȕ","Ȗ":"ȗ","Ș":"ș","Ț":"ț","Ȝ":"ȝ","Ȟ":"ȟ","Ƞ":"ƞ","Ȣ":"ȣ","Ȥ":"ȥ","Ȧ":"ȧ","Ȩ":"ȩ","Ȫ":"ȫ","Ȭ":"ȭ","Ȯ":"ȯ","Ȱ":"ȱ","Ȳ":"ȳ","Ⱥ":"ⱥ","Ȼ":"ȼ","Ƚ":"ƚ","Ⱦ":"ⱦ","Ɂ":"ɂ","Ƀ":"ƀ","Ʉ":"ʉ","Ʌ":"ʌ","Ɇ":"ɇ","Ɉ":"ɉ","Ɋ":"ɋ","Ɍ":"ɍ","Ɏ":"ɏ","ͅ":"ι","Ͱ":"ͱ","Ͳ":"ͳ","Ͷ":"ͷ","Ϳ":"ϳ","Ά":"ά","Έ":"έ","Ή":"ή","Ί":"ί","Ό":"ό","Ύ":"ύ","Ώ":"ώ","Α":"α","Β":"β","Γ":"γ","Δ":"δ","Ε":"ε","Ζ":"ζ","Η":"η","Θ":"θ","Ι":"ι","Κ":"κ","Λ":"λ","Μ":"μ","Ν":"ν","Ξ":"ξ","Ο":"ο","Π":"π","Ρ":"ρ","Σ":"σ","Τ":"τ","Υ":"υ","Φ":"φ","Χ":"χ","Ψ":"ψ","Ω":"ω","Ϊ":"ϊ","Ϋ":"ϋ","ς":"σ","Ϗ":"ϗ","ϐ":"β","ϑ":"θ","ϕ":"φ","ϖ":"π","Ϙ":"ϙ","Ϛ":"ϛ","Ϝ":"ϝ","Ϟ":"ϟ","Ϡ":"ϡ","Ϣ":"ϣ","Ϥ":"ϥ","Ϧ":"ϧ","Ϩ":"ϩ","Ϫ":"ϫ","Ϭ":"ϭ","Ϯ":"ϯ","ϰ":"κ","ϱ":"ρ","ϴ":"θ","ϵ":"ε","Ϸ":"ϸ","Ϲ":"ϲ","Ϻ":"ϻ","Ͻ":"ͻ","Ͼ":"ͼ","Ͽ":"ͽ","Ѐ":"ѐ","Ё":"ё","Ђ":"ђ","Ѓ":"ѓ","Є":"є","Ѕ":"ѕ","І":"і","Ї":"ї","Ј":"ј","Љ":"љ","Њ":"њ","Ћ":"ћ","Ќ":"ќ","Ѝ":"ѝ","Ў":"ў","Џ":"џ","А":"а","Б":"б","В":"в","Г":"г","Д":"д","Е":"е","Ж":"ж","З":"з","И":"и","Й":"й","К":"к","Л":"л","М":"м","Н":"н","О":"о","П":"п","Р":"р","С":"с","Т":"т","У":"у","Ф":"ф","Х":"х","Ц":"ц","Ч":"ч","Ш":"ш","Щ":"щ","Ъ":"ъ","Ы":"ы","Ь":"ь","Э":"э","Ю":"ю","Я":"я","Ѡ":"ѡ","Ѣ":"ѣ","Ѥ":"ѥ","Ѧ":"ѧ","Ѩ":"ѩ","Ѫ":"ѫ","Ѭ":"ѭ","Ѯ":"ѯ","Ѱ":"ѱ","Ѳ":"ѳ","Ѵ":"ѵ","Ѷ":"ѷ","Ѹ":"ѹ","Ѻ":"ѻ","Ѽ":"ѽ","Ѿ":"ѿ","Ҁ":"ҁ","Ҋ":"ҋ","Ҍ":"ҍ","Ҏ":"ҏ","Ґ":"ґ","Ғ":"ғ","Ҕ":"ҕ","Җ":"җ","Ҙ":"ҙ","Қ":"қ","Ҝ":"ҝ","Ҟ":"ҟ","Ҡ":"ҡ","Ң":"ң","Ҥ":"ҥ","Ҧ":"ҧ","Ҩ":"ҩ","Ҫ":"ҫ","Ҭ":"ҭ","Ү":"ү","Ұ":"ұ","Ҳ":"ҳ","Ҵ":"ҵ","Ҷ":"ҷ","Ҹ":"ҹ","Һ":"һ","Ҽ":"ҽ","Ҿ":"ҿ","Ӏ":"ӏ","Ӂ":"ӂ","Ӄ":"ӄ","Ӆ":"ӆ","Ӈ":"ӈ","Ӊ":"ӊ","Ӌ":"ӌ","Ӎ":"ӎ","Ӑ":"ӑ","Ӓ":"ӓ","Ӕ":"ӕ","Ӗ":"ӗ","Ә":"ә","Ӛ":"ӛ","Ӝ":"ӝ","Ӟ":"ӟ","Ӡ":"ӡ","Ӣ":"ӣ","Ӥ":"ӥ","Ӧ":"ӧ","Ө":"ө","Ӫ":"ӫ","Ӭ":"ӭ","Ӯ":"ӯ","Ӱ":"ӱ","Ӳ":"ӳ","Ӵ":"ӵ","Ӷ":"ӷ","Ӹ":"ӹ","Ӻ":"ӻ","Ӽ":"ӽ","Ӿ":"ӿ","Ԁ":"ԁ","Ԃ":"ԃ","Ԅ":"ԅ","Ԇ":"ԇ","Ԉ":"ԉ","Ԋ":"ԋ","Ԍ":"ԍ","Ԏ":"ԏ","Ԑ":"ԑ","Ԓ":"ԓ","Ԕ":"ԕ","Ԗ":"ԗ","Ԙ":"ԙ","Ԛ":"ԛ","Ԝ":"ԝ","Ԟ":"ԟ","Ԡ":"ԡ","Ԣ":"ԣ","Ԥ":"ԥ","Ԧ":"ԧ","Ԩ":"ԩ","Ԫ":"ԫ","Ԭ":"ԭ","Ԯ":"ԯ","Ա":"ա","Բ":"բ","Գ":"գ","Դ":"դ","Ե":"ե","Զ":"զ","Է":"է","Ը":"ը","Թ":"թ","Ժ":"ժ","Ի":"ի","Լ":"լ","Խ":"խ","Ծ":"ծ","Կ":"կ","Հ":"հ","Ձ":"ձ","Ղ":"ղ","Ճ":"ճ","Մ":"մ","Յ":"յ","Ն":"ն","Շ":"շ","Ո":"ո","Չ":"չ","Պ":"պ","Ջ":"ջ","Ռ":"ռ","Ս":"ս","Վ":"վ","Տ":"տ","Ր":"ր","Ց":"ց","Ւ":"ւ","Փ":"փ","Ք":"ք","Օ":"օ","Ֆ":"ֆ","Ⴀ":"ⴀ","Ⴁ":"ⴁ","Ⴂ":"ⴂ","Ⴃ":"ⴃ","Ⴄ":"ⴄ","Ⴅ":"ⴅ","Ⴆ":"ⴆ","Ⴇ":"ⴇ","Ⴈ":"ⴈ","Ⴉ":"ⴉ","Ⴊ":"ⴊ","Ⴋ":"ⴋ","Ⴌ":"ⴌ","Ⴍ":"ⴍ","Ⴎ":"ⴎ","Ⴏ":"ⴏ","Ⴐ":"ⴐ","Ⴑ":"ⴑ","Ⴒ":"ⴒ","Ⴓ":"ⴓ","Ⴔ":"ⴔ","Ⴕ":"ⴕ","Ⴖ":"ⴖ","Ⴗ":"ⴗ","Ⴘ":"ⴘ","Ⴙ":"ⴙ","Ⴚ":"ⴚ","Ⴛ":"ⴛ","Ⴜ":"ⴜ","Ⴝ":"ⴝ","Ⴞ":"ⴞ","Ⴟ":"ⴟ","Ⴠ":"ⴠ","Ⴡ":"ⴡ","Ⴢ":"ⴢ","Ⴣ":"ⴣ","Ⴤ":"ⴤ","Ⴥ":"ⴥ","Ⴧ":"ⴧ","Ⴭ":"ⴭ","Ḁ":"ḁ","Ḃ":"ḃ","Ḅ":"ḅ","Ḇ":"ḇ","Ḉ":"ḉ","Ḋ":"ḋ","Ḍ":"ḍ","Ḏ":"ḏ","Ḑ":"ḑ","Ḓ":"ḓ","Ḕ":"ḕ","Ḗ":"ḗ","Ḙ":"ḙ","Ḛ":"ḛ","Ḝ":"ḝ","Ḟ":"ḟ","Ḡ":"ḡ","Ḣ":"ḣ","Ḥ":"ḥ","Ḧ":"ḧ","Ḩ":"ḩ","Ḫ":"ḫ","Ḭ":"ḭ","Ḯ":"ḯ","Ḱ":"ḱ","Ḳ":"ḳ","Ḵ":"ḵ","Ḷ":"ḷ","Ḹ":"ḹ","Ḻ":"ḻ","Ḽ":"ḽ","Ḿ":"ḿ","Ṁ":"ṁ","Ṃ":"ṃ","Ṅ":"ṅ","Ṇ":"ṇ","Ṉ":"ṉ","Ṋ":"ṋ","Ṍ":"ṍ","Ṏ":"ṏ","Ṑ":"ṑ","Ṓ":"ṓ","Ṕ":"ṕ","Ṗ":"ṗ","Ṙ":"ṙ","Ṛ":"ṛ","Ṝ":"ṝ","Ṟ":"ṟ","Ṡ":"ṡ","Ṣ":"ṣ","Ṥ":"ṥ","Ṧ":"ṧ","Ṩ":"ṩ","Ṫ":"ṫ","Ṭ":"ṭ","Ṯ":"ṯ","Ṱ":"ṱ","Ṳ":"ṳ","Ṵ":"ṵ","Ṷ":"ṷ","Ṹ":"ṹ","Ṻ":"ṻ","Ṽ":"ṽ","Ṿ":"ṿ","Ẁ":"ẁ","Ẃ":"ẃ","Ẅ":"ẅ","Ẇ":"ẇ","Ẉ":"ẉ","Ẋ":"ẋ","Ẍ":"ẍ","Ẏ":"ẏ","Ẑ":"ẑ","Ẓ":"ẓ","Ẕ":"ẕ","ẛ":"ṡ","Ạ":"ạ","Ả":"ả","Ấ":"ấ","Ầ":"ầ","Ẩ":"ẩ","Ẫ":"ẫ","Ậ":"ậ","Ắ":"ắ","Ằ":"ằ","Ẳ":"ẳ","Ẵ":"ẵ","Ặ":"ặ","Ẹ":"ẹ","Ẻ":"ẻ","Ẽ":"ẽ","Ế":"ế","Ề":"ề","Ể":"ể","Ễ":"ễ","Ệ":"ệ","Ỉ":"ỉ","Ị":"ị","Ọ":"ọ","Ỏ":"ỏ","Ố":"ố","Ồ":"ồ","Ổ":"ổ","Ỗ":"ỗ","Ộ":"ộ","Ớ":"ớ","Ờ":"ờ","Ở":"ở","Ỡ":"ỡ","Ợ":"ợ","Ụ":"ụ","Ủ":"ủ","Ứ":"ứ","Ừ":"ừ","Ử":"ử","Ữ":"ữ","Ự":"ự","Ỳ":"ỳ","Ỵ":"ỵ","Ỷ":"ỷ","Ỹ":"ỹ","Ỻ":"ỻ","Ỽ":"ỽ","Ỿ":"ỿ","Ἀ":"ἀ","Ἁ":"ἁ","Ἂ":"ἂ","Ἃ":"ἃ","Ἄ":"ἄ","Ἅ":"ἅ","Ἆ":"ἆ","Ἇ":"ἇ","Ἐ":"ἐ","Ἑ":"ἑ","Ἒ":"ἒ","Ἓ":"ἓ","Ἔ":"ἔ","Ἕ":"ἕ","Ἠ":"ἠ","Ἡ":"ἡ","Ἢ":"ἢ","Ἣ":"ἣ","Ἤ":"ἤ","Ἥ":"ἥ","Ἦ":"ἦ","Ἧ":"ἧ","Ἰ":"ἰ","Ἱ":"ἱ","Ἲ":"ἲ","Ἳ":"ἳ","Ἴ":"ἴ","Ἵ":"ἵ","Ἶ":"ἶ","Ἷ":"ἷ","Ὀ":"ὀ","Ὁ":"ὁ","Ὂ":"ὂ","Ὃ":"ὃ","Ὄ":"ὄ","Ὅ":"ὅ","Ὑ":"ὑ","Ὓ":"ὓ","Ὕ":"ὕ","Ὗ":"ὗ","Ὠ":"ὠ","Ὡ":"ὡ","Ὢ":"ὢ","Ὣ":"ὣ","Ὤ":"ὤ","Ὥ":"ὥ","Ὦ":"ὦ","Ὧ":"ὧ","Ᾰ":"ᾰ","Ᾱ":"ᾱ","Ὰ":"ὰ","Ά":"ά","ι":"ι","Ὲ":"ὲ","Έ":"έ","Ὴ":"ὴ","Ή":"ή","Ῐ":"ῐ","Ῑ":"ῑ","Ὶ":"ὶ","Ί":"ί","Ῠ":"ῠ","Ῡ":"ῡ","Ὺ":"ὺ","Ύ":"ύ","Ῥ":"ῥ","Ὸ":"ὸ","Ό":"ό","Ὼ":"ὼ","Ώ":"ώ","Ω":"ω","K":"k","Å":"å","Ⅎ":"ⅎ","Ⅰ":"ⅰ","Ⅱ":"ⅱ","Ⅲ":"ⅲ","Ⅳ":"ⅳ","Ⅴ":"ⅴ","Ⅵ":"ⅵ","Ⅶ":"ⅶ","Ⅷ":"ⅷ","Ⅸ":"ⅸ","Ⅹ":"ⅹ","Ⅺ":"ⅺ","Ⅻ":"ⅻ","Ⅼ":"ⅼ","Ⅽ":"ⅽ","Ⅾ":"ⅾ","Ⅿ":"ⅿ","Ↄ":"ↄ","Ⓐ":"ⓐ","Ⓑ":"ⓑ","Ⓒ":"ⓒ","Ⓓ":"ⓓ","Ⓔ":"ⓔ","Ⓕ":"ⓕ","Ⓖ":"ⓖ","Ⓗ":"ⓗ","Ⓘ":"ⓘ","Ⓙ":"ⓙ","Ⓚ":"ⓚ","Ⓛ":"ⓛ","Ⓜ":"ⓜ","Ⓝ":"ⓝ","Ⓞ":"ⓞ","Ⓟ":"ⓟ","Ⓠ":"ⓠ","Ⓡ":"ⓡ","Ⓢ":"ⓢ","Ⓣ":"ⓣ","Ⓤ":"ⓤ","Ⓥ":"ⓥ","Ⓦ":"ⓦ","Ⓧ":"ⓧ","Ⓨ":"ⓨ","Ⓩ":"ⓩ","Ⰰ":"ⰰ","Ⰱ":"ⰱ","Ⰲ":"ⰲ","Ⰳ":"ⰳ","Ⰴ":"ⰴ","Ⰵ":"ⰵ","Ⰶ":"ⰶ","Ⰷ":"ⰷ","Ⰸ":"ⰸ","Ⰹ":"ⰹ","Ⰺ":"ⰺ","Ⰻ":"ⰻ","Ⰼ":"ⰼ","Ⰽ":"ⰽ","Ⰾ":"ⰾ","Ⰿ":"ⰿ","Ⱀ":"ⱀ","Ⱁ":"ⱁ","Ⱂ":"ⱂ","Ⱃ":"ⱃ","Ⱄ":"ⱄ","Ⱅ":"ⱅ","Ⱆ":"ⱆ","Ⱇ":"ⱇ","Ⱈ":"ⱈ","Ⱉ":"ⱉ","Ⱊ":"ⱊ","Ⱋ":"ⱋ","Ⱌ":"ⱌ","Ⱍ":"ⱍ","Ⱎ":"ⱎ","Ⱏ":"ⱏ","Ⱐ":"ⱐ","Ⱑ":"ⱑ","Ⱒ":"ⱒ","Ⱓ":"ⱓ","Ⱔ":"ⱔ","Ⱕ":"ⱕ","Ⱖ":"ⱖ","Ⱗ":"ⱗ","Ⱘ":"ⱘ","Ⱙ":"ⱙ","Ⱚ":"ⱚ","Ⱛ":"ⱛ","Ⱜ":"ⱜ","Ⱝ":"ⱝ","Ⱞ":"ⱞ","Ⱡ":"ⱡ","Ɫ":"ɫ","Ᵽ":"ᵽ","Ɽ":"ɽ","Ⱨ":"ⱨ","Ⱪ":"ⱪ","Ⱬ":"ⱬ","Ɑ":"ɑ","Ɱ":"ɱ","Ɐ":"ɐ","Ɒ":"ɒ","Ⱳ":"ⱳ","Ⱶ":"ⱶ","Ȿ":"ȿ","Ɀ":"ɀ","Ⲁ":"ⲁ","Ⲃ":"ⲃ","Ⲅ":"ⲅ","Ⲇ":"ⲇ","Ⲉ":"ⲉ","Ⲋ":"ⲋ","Ⲍ":"ⲍ","Ⲏ":"ⲏ","Ⲑ":"ⲑ","Ⲓ":"ⲓ","Ⲕ":"ⲕ","Ⲗ":"ⲗ","Ⲙ":"ⲙ","Ⲛ":"ⲛ","Ⲝ":"ⲝ","Ⲟ":"ⲟ","Ⲡ":"ⲡ","Ⲣ":"ⲣ","Ⲥ":"ⲥ","Ⲧ":"ⲧ","Ⲩ":"ⲩ","Ⲫ":"ⲫ","Ⲭ":"ⲭ","Ⲯ":"ⲯ","Ⲱ":"ⲱ","Ⲳ":"ⲳ","Ⲵ":"ⲵ","Ⲷ":"ⲷ","Ⲹ":"ⲹ","Ⲻ":"ⲻ","Ⲽ":"ⲽ","Ⲿ":"ⲿ","Ⳁ":"ⳁ","Ⳃ":"ⳃ","Ⳅ":"ⳅ","Ⳇ":"ⳇ","Ⳉ":"ⳉ","Ⳋ":"ⳋ","Ⳍ":"ⳍ","Ⳏ":"ⳏ","Ⳑ":"ⳑ","Ⳓ":"ⳓ","Ⳕ":"ⳕ","Ⳗ":"ⳗ","Ⳙ":"ⳙ","Ⳛ":"ⳛ","Ⳝ":"ⳝ","Ⳟ":"ⳟ","Ⳡ":"ⳡ","Ⳣ":"ⳣ","Ⳬ":"ⳬ","Ⳮ":"ⳮ","Ⳳ":"ⳳ","Ꙁ":"ꙁ","Ꙃ":"ꙃ","Ꙅ":"ꙅ","Ꙇ":"ꙇ","Ꙉ":"ꙉ","Ꙋ":"ꙋ","Ꙍ":"ꙍ","Ꙏ":"ꙏ","Ꙑ":"ꙑ","Ꙓ":"ꙓ","Ꙕ":"ꙕ","Ꙗ":"ꙗ","Ꙙ":"ꙙ","Ꙛ":"ꙛ","Ꙝ":"ꙝ","Ꙟ":"ꙟ","Ꙡ":"ꙡ","Ꙣ":"ꙣ","Ꙥ":"ꙥ","Ꙧ":"ꙧ","Ꙩ":"ꙩ","Ꙫ":"ꙫ","Ꙭ":"ꙭ","Ꚁ":"ꚁ","Ꚃ":"ꚃ","Ꚅ":"ꚅ","Ꚇ":"ꚇ","Ꚉ":"ꚉ","Ꚋ":"ꚋ","Ꚍ":"ꚍ","Ꚏ":"ꚏ","Ꚑ":"ꚑ","Ꚓ":"ꚓ","Ꚕ":"ꚕ","Ꚗ":"ꚗ","Ꚙ":"ꚙ","Ꚛ":"ꚛ","Ꜣ":"ꜣ","Ꜥ":"ꜥ","Ꜧ":"ꜧ","Ꜩ":"ꜩ","Ꜫ":"ꜫ","Ꜭ":"ꜭ","Ꜯ":"ꜯ","Ꜳ":"ꜳ","Ꜵ":"ꜵ","Ꜷ":"ꜷ","Ꜹ":"ꜹ","Ꜻ":"ꜻ","Ꜽ":"ꜽ","Ꜿ":"ꜿ","Ꝁ":"ꝁ","Ꝃ":"ꝃ","Ꝅ":"ꝅ","Ꝇ":"ꝇ","Ꝉ":"ꝉ","Ꝋ":"ꝋ","Ꝍ":"ꝍ","Ꝏ":"ꝏ","Ꝑ":"ꝑ","Ꝓ":"ꝓ","Ꝕ":"ꝕ","Ꝗ":"ꝗ","Ꝙ":"ꝙ","Ꝛ":"ꝛ","Ꝝ":"ꝝ","Ꝟ":"ꝟ","Ꝡ":"ꝡ","Ꝣ":"ꝣ","Ꝥ":"ꝥ","Ꝧ":"ꝧ","Ꝩ":"ꝩ","Ꝫ":"ꝫ","Ꝭ":"ꝭ","Ꝯ":"ꝯ","Ꝺ":"ꝺ","Ꝼ":"ꝼ","Ᵹ":"ᵹ","Ꝿ":"ꝿ","Ꞁ":"ꞁ","Ꞃ":"ꞃ","Ꞅ":"ꞅ","Ꞇ":"ꞇ","Ꞌ":"ꞌ","Ɥ":"ɥ","Ꞑ":"ꞑ","Ꞓ":"ꞓ","Ꞗ":"ꞗ","Ꞙ":"ꞙ","Ꞛ":"ꞛ","Ꞝ":"ꞝ","Ꞟ":"ꞟ","Ꞡ":"ꞡ","Ꞣ":"ꞣ","Ꞥ":"ꞥ","Ꞧ":"ꞧ","Ꞩ":"ꞩ","Ɦ":"ɦ","Ɜ":"ɜ","Ɡ":"ɡ","Ɬ":"ɬ","Ʞ":"ʞ","Ʇ":"ʇ","A":"a","B":"b","C":"c","D":"d","E":"e","F":"f","G":"g","H":"h","I":"i","J":"j","K":"k","L":"l","M":"m","N":"n","O":"o","P":"p","Q":"q","R":"r","S":"s","T":"t","U":"u","V":"v","W":"w","X":"x","Y":"y","Z":"z","𐐀":"𐐨","𐐁":"𐐩","𐐂":"𐐪","𐐃":"𐐫","𐐄":"𐐬","𐐅":"𐐭","𐐆":"𐐮","𐐇":"𐐯","𐐈":"𐐰","𐐉":"𐐱","𐐊":"𐐲","𐐋":"𐐳","𐐌":"𐐴","𐐍":"𐐵","𐐎":"𐐶","𐐏":"𐐷","𐐐":"𐐸","𐐑":"𐐹","𐐒":"𐐺","𐐓":"𐐻","𐐔":"𐐼","𐐕":"𐐽","𐐖":"𐐾","𐐗":"𐐿","𐐘":"𐑀","𐐙":"𐑁","𐐚":"𐑂","𐐛":"𐑃","𐐜":"𐑄","𐐝":"𐑅","𐐞":"𐑆","𐐟":"𐑇","𐐠":"𐑈","𐐡":"𐑉","𐐢":"𐑊","𐐣":"𐑋","𐐤":"𐑌","𐐥":"𐑍","𐐦":"𐑎","𐐧":"𐑏","𑢠":"𑣀","𑢡":"𑣁","𑢢":"𑣂","𑢣":"𑣃","𑢤":"𑣄","𑢥":"𑣅","𑢦":"𑣆","𑢧":"𑣇","𑢨":"𑣈","𑢩":"𑣉","𑢪":"𑣊","𑢫":"𑣋","𑢬":"𑣌","𑢭":"𑣍","𑢮":"𑣎","𑢯":"𑣏","𑢰":"𑣐","𑢱":"𑣑","𑢲":"𑣒","𑢳":"𑣓","𑢴":"𑣔","𑢵":"𑣕","𑢶":"𑣖","𑢷":"𑣗","𑢸":"𑣘","𑢹":"𑣙","𑢺":"𑣚","𑢻":"𑣛","𑢼":"𑣜","𑢽":"𑣝","𑢾":"𑣞","𑢿":"𑣟","ß":"ss","İ":"i̇","ʼn":"ʼn","ǰ":"ǰ","ΐ":"ΐ","ΰ":"ΰ","և":"եւ","ẖ":"ẖ","ẗ":"ẗ","ẘ":"ẘ","ẙ":"ẙ","ẚ":"aʾ","ẞ":"ss","ὐ":"ὐ","ὒ":"ὒ","ὔ":"ὔ","ὖ":"ὖ","ᾀ":"ἀι","ᾁ":"ἁι","ᾂ":"ἂι","ᾃ":"ἃι","ᾄ":"ἄι","ᾅ":"ἅι","ᾆ":"ἆι","ᾇ":"ἇι","ᾈ":"ἀι","ᾉ":"ἁι","ᾊ":"ἂι","ᾋ":"ἃι","ᾌ":"ἄι","ᾍ":"ἅι","ᾎ":"ἆι","ᾏ":"ἇι","ᾐ":"ἠι","ᾑ":"ἡι","ᾒ":"ἢι","ᾓ":"ἣι","ᾔ":"ἤι","ᾕ":"ἥι","ᾖ":"ἦι","ᾗ":"ἧι","ᾘ":"ἠι","ᾙ":"ἡι","ᾚ":"ἢι","ᾛ":"ἣι","ᾜ":"ἤι","ᾝ":"ἥι","ᾞ":"ἦι","ᾟ":"ἧι","ᾠ":"ὠι","ᾡ":"ὡι","ᾢ":"ὢι","ᾣ":"ὣι","ᾤ":"ὤι","ᾥ":"ὥι","ᾦ":"ὦι","ᾧ":"ὧι","ᾨ":"ὠι","ᾩ":"ὡι","ᾪ":"ὢι","ᾫ":"ὣι","ᾬ":"ὤι","ᾭ":"ὥι","ᾮ":"ὦι","ᾯ":"ὧι","ᾲ":"ὰι","ᾳ":"αι","ᾴ":"άι","ᾶ":"ᾶ","ᾷ":"ᾶι","ᾼ":"αι","ῂ":"ὴι","ῃ":"ηι","ῄ":"ήι","ῆ":"ῆ","ῇ":"ῆι","ῌ":"ηι","ῒ":"ῒ","ΐ":"ΐ","ῖ":"ῖ","ῗ":"ῗ","ῢ":"ῢ","ΰ":"ΰ","ῤ":"ῤ","ῦ":"ῦ","ῧ":"ῧ","ῲ":"ὼι","ῳ":"ωι","ῴ":"ώι","ῶ":"ῶ","ῷ":"ῶι","ῼ":"ωι","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","ſt":"st","st":"st","ﬓ":"մն","ﬔ":"մե","ﬕ":"մի","ﬖ":"վն","ﬗ":"մխ"};e.exports=function(e){return e.slice(1,e.length-1).trim().replace(n,function(e){return r[e]||" "})}},function(e,t,n){"use strict";function r(e){return{softbreak:"\n",escape:o,options:e||{},render:l}}var o=n(51).escapeXml,a=function(e,t,n){var r="<"+e;if(t&&t.length>0)for(var o,a=0;void 0!==(o=t[a]);)r+=" "+o[0]+'="'+o[1]+'"',a++;return n&&(r+=" /"),r+=">"},i=/\<[^>]*\>/,s=function(e){return e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()},l=function(e){var t,n,r,o,l,c,u,d,p=e.walker(),f="",m="\n",h=0,_=0,g=" ",b=function(e){f+=h>0?e.replace(i,""):e,m=e},y=this.escape,v=function(){if("\n"!==m){f+="\n",m="\n";for(var e=_;e>0;e--)f+=g}},M=this.options;for(M.time&&console.time("rendering"),f+='\n',f+='\n';r=p.next();)if(l=r.entering,o=r.node,d=o.type,c=o.isContainer,u="ThematicBreak"===d||"Hardbreak"===d||"Softbreak"===d,n=s(d),l){switch(t=[],d){case"Document":t.push(["xmlns","http://commonmark.org/xml/1.0"]);break;case"List":null!==o.listType&&t.push(["type",o.listType.toLowerCase()]),null!==o.listStart&&t.push(["start",String(o.listStart)]),null!==o.listTight&&t.push(["tight",o.listTight?"true":"false"]);var E=o.listDelimiter;if(null!==E){var S="";S="."===E?"period":"paren",t.push(["delimiter",S])}break;case"CodeBlock":o.info&&t.push(["info",o.info]);break;case"Heading":t.push(["level",String(o.level)]);break;case"Link":case"Image":t.push(["destination",o.destination]),t.push(["title",o.title]);break;case"CustomInline":case"CustomBlock":t.push(["on_enter",o.onEnter]),t.push(["on_exit",o.onExit])}if(M.sourcepos){var w=o.sourcepos;w&&t.push(["sourcepos",String(w[0][0])+":"+String(w[0][1])+"-"+String(w[1][0])+":"+String(w[1][1])])}if(v(),b(a(n,t,u)),c)_+=1;else if(!c&&!u){var D=o.literal;D&&b(y(D)),b(a("/"+n))}}else _-=1,v(),b(a("/"+n));return M.time&&console.timeEnd("rendering"),f+="\n"};e.exports=r},function(e,t,n){function r(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}try{var o=n(170)}catch(e){var o=n(170)}var a=/\s+/,i=Object.prototype.toString;e.exports=function(e){return new r(e)},r.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array(),n=o(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},r.prototype.remove=function(e){if("[object RegExp]"==i.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=o(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},r.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n { @@ -88,7 +88,7 @@ export default class PlotlyGraph extends Component { PlotMethod = Plotly.react; } - return PlotMethod(id, figure.data, figure.layout, config).then( + return PlotMethod(id, figure.data, clone(figure.layout), config).then( () => { if (!this._hasPlotted) { this.bindEvents(); From 8e2462fb5f171af30c73320d0ece999988f94cd0 Mon Sep 17 00:00:00 2001 From: Valentijn Nieman Date: Tue, 28 Aug 2018 14:43:04 -0400 Subject: [PATCH 2/6] Test switching tabs without Graph resizing --- test/test_integration.py | 62 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/test/test_integration.py b/test/test_integration.py index 285770437..6bde36411 100644 --- a/test/test_integration.py +++ b/test/test_integration.py @@ -469,6 +469,68 @@ def test_tabs_with_children_undefined(self): self.snapshot('Tabs component with children undefined') + def test_graph_does_not_resize_in_tabs(self): + app = dash.Dash(__name__) + + app.layout = html.Div([ + html.H1('Dash Tabs component demo'), + dcc.Tabs(id="tabs-example", value='tab-1-example', children=[ + dcc.Tab(label='Tab One', value='tab-1-example', id='tab-1'), + dcc.Tab(label='Tab Two', value='tab-2-example', id='tab-2'), + ]), + html.Div(id='tabs-content-example') + ]) + + + @app.callback(Output('tabs-content-example', 'children'), + [Input('tabs-example', 'value')]) + def render_content(tab): + if tab == 'tab-1-example': + return html.Div([ + html.H3('Tab content 1'), + dcc.Graph( + id='graph-1-tabs', + figure={ + 'data': [{ + 'x': [1, 2, 3], + 'y': [3, 1, 2], + 'type': 'bar' + }] + } + ) + ]) + elif tab == 'tab-2-example': + return html.Div([ + html.H3('Tab content 2'), + dcc.Graph( + id='graph-2-tabs', + figure={ + 'data': [{ + 'x': [1, 2, 3], + 'y': [5, 10, 6], + 'type': 'bar' + }] + } + ) + ]) + self.startServer(app=app) + + tab_one = self.wait_for_element_by_css_selector('#tab-1') + tab_two = self.wait_for_element_by_css_selector('#tab-2') + + self.snapshot("Tabs with Graph - initial (graph should not resize)") + + tab_two.click() + time.sleep(1) + + self.snapshot("Tabs with Graph - clicked tab 2 (graph should not resize)") + + tab_one.click() + time.sleep(1) + + self.snapshot("Tabs with Graph - clicked tab 1 (graph should not resize)") + + def test_location_link(self): app = dash.Dash(__name__) From 3115f2105aa6956ad2c993dc836e7e0bc4048c20 Mon Sep 17 00:00:00 2001 From: Valentijn Nieman Date: Thu, 30 Aug 2018 12:02:11 -0400 Subject: [PATCH 3/6] Replace sleep with selenium wait api --- test/test_integration.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/test_integration.py b/test/test_integration.py index 6bde36411..00fed7cc3 100644 --- a/test/test_integration.py +++ b/test/test_integration.py @@ -15,6 +15,9 @@ from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import InvalidElementStateException +from selenium.webdriver.common.by import By +from selenium.webdriver.support.ui import WebDriverWait +from selenium.webdriver.support import expected_conditions as EC from textwrap import dedent try: @@ -518,15 +521,18 @@ def render_content(tab): tab_one = self.wait_for_element_by_css_selector('#tab-1') tab_two = self.wait_for_element_by_css_selector('#tab-2') + WebDriverWait(self.driver, 10).until( + EC.element_to_be_clickable((By.ID, "tab-1")), + EC.element_to_be_clickable((By.ID, "tab-2")) + ) + self.snapshot("Tabs with Graph - initial (graph should not resize)") tab_two.click() - time.sleep(1) self.snapshot("Tabs with Graph - clicked tab 2 (graph should not resize)") tab_one.click() - time.sleep(1) self.snapshot("Tabs with Graph - clicked tab 1 (graph should not resize)") From 03400628cd8df4a14e30486820d9e82aa442644f Mon Sep 17 00:00:00 2001 From: Valentijn Nieman Date: Thu, 30 Aug 2018 12:21:41 -0400 Subject: [PATCH 4/6] Wait for tab to be clickable in test --- test/test_integration.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_integration.py b/test/test_integration.py index 00fed7cc3..397df4c53 100644 --- a/test/test_integration.py +++ b/test/test_integration.py @@ -522,7 +522,6 @@ def render_content(tab): tab_two = self.wait_for_element_by_css_selector('#tab-2') WebDriverWait(self.driver, 10).until( - EC.element_to_be_clickable((By.ID, "tab-1")), EC.element_to_be_clickable((By.ID, "tab-2")) ) @@ -532,6 +531,10 @@ def render_content(tab): self.snapshot("Tabs with Graph - clicked tab 2 (graph should not resize)") + WebDriverWait(self.driver, 10).until( + EC.element_to_be_clickable((By.ID, "tab-1")) + ) + tab_one.click() self.snapshot("Tabs with Graph - clicked tab 1 (graph should not resize)") From 832f54212bd554aa0af6e7087968a822b6dde004 Mon Sep 17 00:00:00 2001 From: Valentijn Nieman Date: Fri, 7 Sep 2018 11:22:52 -0400 Subject: [PATCH 5/6] Removed useless snapshot --- test/test_integration.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/test_integration.py b/test/test_integration.py index b2a9852b4..b1b7f800f 100644 --- a/test/test_integration.py +++ b/test/test_integration.py @@ -448,8 +448,6 @@ def render_content(tab): self.startServer(app=app) - self.snapshot('tabs - without children') - initial_tab = self.wait_for_element_by_css_selector('#tab-2') tabs_content = self.wait_for_element_by_css_selector('#tabs-content') self.assertEqual(tabs_content.text, 'Test content 2') From 166f6c918595a952a381acdef76a698dcc3a665b Mon Sep 17 00:00:00 2001 From: Valentijn Nieman Date: Fri, 7 Sep 2018 11:40:28 -0400 Subject: [PATCH 6/6] Version bump to 0.28.3 --- CHANGELOG.md | 4 ++++ dash_core_components/version.py | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00de9df3e..0cf400d1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [0.28.2] - 2018-09-07 +### Fixed +- Fixed bug where Graph would resize randomly when rerendered, for example in a dcc.Tabs component. + ## [0.28.2] - 2018-09-06 ### Fixed - Fixed bug in Tabs component where initial tab content wasn't rendering, [#282](https://github.com/plotly/dash-core-components/issues/282) diff --git a/dash_core_components/version.py b/dash_core_components/version.py index 873054ed2..a4214c68e 100644 --- a/dash_core_components/version.py +++ b/dash_core_components/version.py @@ -1 +1 @@ -__version__ = '0.28.2' +__version__ = '0.28.3' diff --git a/package.json b/package.json index 4deed7145..f4477161b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dash-core-components", - "version": "0.28.2", + "version": "0.28.3", "description": "Core component suite for Dash", "repository": { "type": "git",