diff --git a/packages/dash-table/.Rbuildignore b/packages/dash-table/.Rbuildignore new file mode 100644 index 0000000000..e8bce567e1 --- /dev/null +++ b/packages/dash-table/.Rbuildignore @@ -0,0 +1,28 @@ +# ignore JS config files/folders +node_modules/ +coverage/ +src/ +lib/ +generator/ +datasets/ +.babelrc +.builderrc +.eslintrc +.npmignore + +# demo folder has special meaning in R +# this should hopefully make it still +# allow for the possibility to make R demos +demo/.*\.js +demo/.*\.html +demo/.*\.css + +# ignore python files/folders +setup.py +requirements.txt +MANIFEST.in +CHANGELOG.md +tests/ +.pylintrc +^.*\.Rproj$ +^\.Rproj\.user$ diff --git a/packages/dash-table/CHANGELOG.md b/packages/dash-table/CHANGELOG.md index 289b09f8d3..4b7d78ad10 100644 --- a/packages/dash-table/CHANGELOG.md +++ b/packages/dash-table/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Added +[#456](https://github.com/plotly/dash-table/issues/456) +- Support for dash-table is now available for R users of Dash. + ### Fixed [#434](https://github.com/plotly/dash-table/issues/434) - Fix CSS borders propeties overwrite style_* borders properties. diff --git a/packages/dash-table/DESCRIPTION b/packages/dash-table/DESCRIPTION new file mode 100644 index 0000000000..14c261b92c --- /dev/null +++ b/packages/dash-table/DESCRIPTION @@ -0,0 +1,15 @@ +Package: dashTable +Title: Dash table +Version: 3.7.0 +Authors @R: as.person(c(Chris P )) +Description: Dash table +Depends: R (>= 3.0.2) +Imports: dashR +Suggests: +License: MIT + file LICENSE +URL: https://github.com/plotly/dash-table +BugReports: https://github.com/plotly/dash-table/issues +Encoding: UTF-8 +LazyData: true +Author: Chris P [aut] +Maintainer: Chris P diff --git a/packages/dash-table/NAMESPACE b/packages/dash-table/NAMESPACE new file mode 100644 index 0000000000..02c8a7953e --- /dev/null +++ b/packages/dash-table/NAMESPACE @@ -0,0 +1,4 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +export(dashDataTable) +export(df_to_list) diff --git a/packages/dash-table/R/dashDataTable.R b/packages/dash-table/R/dashDataTable.R new file mode 100644 index 0000000000..d1658dfe27 --- /dev/null +++ b/packages/dash-table/R/dashDataTable.R @@ -0,0 +1,17 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dashDataTable <- function(active_cell=NULL, columns=NULL, locale_format=NULL, content_style=NULL, css=NULL, data=NULL, data_previous=NULL, data_timestamp=NULL, editable=NULL, end_cell=NULL, id=NULL, is_focused=NULL, merge_duplicate_headers=NULL, n_fixed_columns=NULL, n_fixed_rows=NULL, row_deletable=NULL, row_selectable=NULL, selected_cells=NULL, selected_rows=NULL, selected_row_ids=NULL, start_cell=NULL, style_as_list_view=NULL, pagination_mode=NULL, pagination_settings=NULL, navigation=NULL, column_conditional_dropdowns=NULL, column_static_dropdown=NULL, column_static_tooltip=NULL, column_conditional_tooltips=NULL, tooltips=NULL, tooltip_delay=NULL, tooltip_duration=NULL, filter=NULL, filtering=NULL, filtering_type=NULL, filtering_types=NULL, sorting=NULL, sorting_type=NULL, sort_by=NULL, sorting_treat_empty_string_as_none=NULL, style_table=NULL, style_cell=NULL, style_data=NULL, style_filter=NULL, style_header=NULL, style_cell_conditional=NULL, style_data_conditional=NULL, style_filter_conditional=NULL, style_header_conditional=NULL, virtualization=NULL, derived_filter_structure=NULL, derived_viewport_data=NULL, derived_viewport_indices=NULL, derived_viewport_row_ids=NULL, derived_viewport_selected_rows=NULL, derived_viewport_selected_row_ids=NULL, derived_virtual_data=NULL, derived_virtual_indices=NULL, derived_virtual_row_ids=NULL, derived_virtual_selected_rows=NULL, derived_virtual_selected_row_ids=NULL, dropdown_properties=NULL) { + + component <- list( + props = list(active_cell=active_cell, columns=columns, locale_format=locale_format, content_style=content_style, css=css, data=data, data_previous=data_previous, data_timestamp=data_timestamp, editable=editable, end_cell=end_cell, id=id, is_focused=is_focused, merge_duplicate_headers=merge_duplicate_headers, n_fixed_columns=n_fixed_columns, n_fixed_rows=n_fixed_rows, row_deletable=row_deletable, row_selectable=row_selectable, selected_cells=selected_cells, selected_rows=selected_rows, selected_row_ids=selected_row_ids, start_cell=start_cell, style_as_list_view=style_as_list_view, pagination_mode=pagination_mode, pagination_settings=pagination_settings, navigation=navigation, column_conditional_dropdowns=column_conditional_dropdowns, column_static_dropdown=column_static_dropdown, column_static_tooltip=column_static_tooltip, column_conditional_tooltips=column_conditional_tooltips, tooltips=tooltips, tooltip_delay=tooltip_delay, tooltip_duration=tooltip_duration, filter=filter, filtering=filtering, filtering_type=filtering_type, filtering_types=filtering_types, sorting=sorting, sorting_type=sorting_type, sort_by=sort_by, sorting_treat_empty_string_as_none=sorting_treat_empty_string_as_none, style_table=style_table, style_cell=style_cell, style_data=style_data, style_filter=style_filter, style_header=style_header, style_cell_conditional=style_cell_conditional, style_data_conditional=style_data_conditional, style_filter_conditional=style_filter_conditional, style_header_conditional=style_header_conditional, virtualization=virtualization, derived_filter_structure=derived_filter_structure, derived_viewport_data=derived_viewport_data, derived_viewport_indices=derived_viewport_indices, derived_viewport_row_ids=derived_viewport_row_ids, derived_viewport_selected_rows=derived_viewport_selected_rows, derived_viewport_selected_row_ids=derived_viewport_selected_row_ids, derived_virtual_data=derived_virtual_data, derived_virtual_indices=derived_virtual_indices, derived_virtual_row_ids=derived_virtual_row_ids, derived_virtual_selected_rows=derived_virtual_selected_rows, derived_virtual_selected_row_ids=derived_virtual_selected_row_ids, dropdown_properties=dropdown_properties), + type = 'DataTable', + namespace = 'dash_table', + propNames = c('active_cell', 'columns', 'locale_format', 'content_style', 'css', 'data', 'data_previous', 'data_timestamp', 'editable', 'end_cell', 'id', 'is_focused', 'merge_duplicate_headers', 'n_fixed_columns', 'n_fixed_rows', 'row_deletable', 'row_selectable', 'selected_cells', 'selected_rows', 'selected_row_ids', 'start_cell', 'style_as_list_view', 'pagination_mode', 'pagination_settings', 'navigation', 'column_conditional_dropdowns', 'column_static_dropdown', 'column_static_tooltip', 'column_conditional_tooltips', 'tooltips', 'tooltip_delay', 'tooltip_duration', 'filter', 'filtering', 'filtering_type', 'filtering_types', 'sorting', 'sorting_type', 'sort_by', 'sorting_treat_empty_string_as_none', 'style_table', 'style_cell', 'style_data', 'style_filter', 'style_header', 'style_cell_conditional', 'style_data_conditional', 'style_filter_conditional', 'style_header_conditional', 'virtualization', 'derived_filter_structure', 'derived_viewport_data', 'derived_viewport_indices', 'derived_viewport_row_ids', 'derived_viewport_selected_rows', 'derived_viewport_selected_row_ids', 'derived_virtual_data', 'derived_virtual_indices', 'derived_virtual_row_ids', 'derived_virtual_selected_rows', 'derived_virtual_selected_row_ids', 'dropdown_properties'), + package = 'dashTable' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} + diff --git a/packages/dash-table/R/df_to_list.R b/packages/dash-table/R/df_to_list.R new file mode 100644 index 0000000000..acf53eb96f --- /dev/null +++ b/packages/dash-table/R/df_to_list.R @@ -0,0 +1,8 @@ +df_to_list <- function(df) { + if(!(is.data.frame(df))) + stop("df_to_list requires a data.frame object; please verify that df is of the correct type.") + setNames(lapply(split(df, seq(nrow(df))), + FUN = function (x) { + as.list(x) + }), NULL) +} diff --git a/packages/dash-table/R/internal.R b/packages/dash-table/R/internal.R new file mode 100644 index 0000000000..1c3defb4c3 --- /dev/null +++ b/packages/dash-table/R/internal.R @@ -0,0 +1,15 @@ +.dashTable_js_metadata <- function() { + deps_metadata <- list(`dash_table` = structure(list(name = "dash_table", + version = "0", src = list(href = NULL, + file = "deps"), meta = NULL, + script = "bundle.js", + stylesheet = NULL, head = NULL, attachment = NULL, package = "dashTable", + all_files = FALSE), class = "html_dependency"), + `dash_table` = structure(list(name = "dash_table", + version = "0", src = list(href = NULL, + file = "deps"), meta = NULL, + script = "bundle.js.map", + stylesheet = NULL, head = NULL, attachment = NULL, package = "dashTable", + all_files = FALSE), class = "html_dependency")) + return(deps_metadata) +} diff --git a/packages/dash-table/inst/deps/bundle.js b/packages/dash-table/inst/deps/bundle.js new file mode 100644 index 0000000000..1fdc4d28d2 --- /dev/null +++ b/packages/dash-table/inst/deps/bundle.js @@ -0,0 +1,19 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.dash_table=t(require("react"),require("react-dom")):e.dash_table=t(e.React,e.ReactDOM)}(window,function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=155)}([function(e,t,n){e.exports=n(169)()},function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(11),o=n(18);function i(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return Object(o.a)(n)?t:Object(r.a)(function(t){return e(n,t)});default:return Object(o.a)(n)&&Object(o.a)(i)?t:Object(o.a)(n)?Object(r.a)(function(t){return e(t,i)}):Object(o.a)(i)?Object(r.a)(function(t){return e(n,t)}):e(n,i)}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a});n(51);var r=n(43);function o(e){var t,n=null;return function(){for(var o=arguments.length,i=new Array(o),a=0;a=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";var r=n(99),o=n(50),i=n(98),a=o.set,s=o.getterFor("String Iterator");i(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o,!0),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(126),o=n(8),i=n(23),a=n(39),s=n(22),u=s("iterator"),l=s("toStringTag"),c=o.values;for(var p in r){var f=i[p],h=f&&f.prototype;if(h){if(h[u]!==c)try{a(h,u,c)}catch(e){h[u]=c}if(h[l]||a(h,l,p),r[p])for(var d in o)if(h[d]!==o[d])try{a(h,d,o[d])}catch(e){h[d]=o[d]}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(18);function o(e){return function t(n){return 0===arguments.length||Object(r.a)(n)?t:e.apply(this,arguments)}}},function(e,t,n){"use strict";var r=n(23),o=n(29),i=n(33),a=n(57),s=n(19),u=n(41),l=n(66),c=n(24),p=n(62),f=n(55),h=n(77),d=n(22),g=n(138),v=n(139),b=n(167),m=n(87),y=n(27),w=n(25),x=n(45),_=n(63),k=n(64),O=n(65),S=n(168),E=n(54),A=n(35),C=n(68),j=n(39),T=n(58),R=n(79)("hidden"),P=n(50),D=P.set,F=P.getterFor("Symbol"),M=E.f,L=A.f,I=S.f,N=r.Symbol,q=r.JSON,B=q&&q.stringify,z=d("toPrimitive"),U=C.f,V=p("symbol-registry"),W=p("symbols"),H=p("op-symbols"),G=p("wks"),K=Object.prototype,$=r.QObject,Z=n(114),Y=!$||!$.prototype||!$.prototype.findChild,J=i&&c(function(){return 7!=O(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=M(K,t);r&&delete K[t],L(e,t,n),r&&e!==K&&L(K,t,r)}:L,Q=function(e,t){var n=W[e]=O(N.prototype);return D(n,{type:"Symbol",tag:e,description:t}),i||(n.description=t),n},X=Z&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof N},ee=function(e,t,n){return e===K&&ee(H,t,n),y(e),t=_(t,!0),y(n),o(W,t)?(n.enumerable?(o(e,R)&&e[R][t]&&(e[R][t]=!1),n=O(n,{enumerable:k(0,!1)})):(o(e,R)||L(e,R,k(1,{})),e[R][t]=!0),J(e,t,n)):L(e,t,n)},te=function(e,t){y(e);for(var n,r=b(t=x(t)),o=0,i=r.length;i>o;)ee(e,n=r[o++],t[n]);return e},ne=function(e){var t=U.call(this,e=_(e,!0));return!(this===K&&o(W,e)&&!o(H,e))&&(!(t||!o(this,e)||!o(W,e)||o(this,R)&&this[R][e])||t)},re=function(e,t){if(e=x(e),t=_(t,!0),e!==K||!o(W,t)||o(H,t)){var n=M(e,t);return!n||!o(W,t)||o(e,R)&&e[R][t]||(n.enumerable=!0),n}},oe=function(e){for(var t,n=I(x(e)),r=[],i=0;n.length>i;)o(W,t=n[i++])||o(l,t)||r.push(t);return r},ie=function(e){for(var t,n=e===K,r=I(n?H:x(e)),i=[],a=0;r.length>a;)!o(W,t=r[a++])||n&&!o(K,t)||i.push(W[t]);return i};Z||(u((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor");var e=void 0===arguments[0]?void 0:String(arguments[0]),t=h(e),n=function(e){this===K&&n.call(H,e),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),J(this,t,k(1,e))};return i&&Y&&J(K,t,{configurable:!0,set:n}),Q(t,e)}).prototype,"toString",function(){return F(this).tag}),C.f=ne,A.f=ee,E.f=re,n(80).f=S.f=oe,n(81).f=ie,i&&(L(N.prototype,"description",{configurable:!0,get:function(){return F(this).description}}),a||u(K,"propertyIsEnumerable",ne,{unsafe:!0})),g.f=function(e){return Q(d(e),e)}),s({global:!0,wrap:!0,forced:!Z,sham:!Z},{Symbol:N});for(var ae=T(G),se=0;ae.length>se;)v(ae[se++]);s({target:"Symbol",stat:!0,forced:!Z},{for:function(e){return o(V,e+="")?V[e]:V[e]=N(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol");for(var t in V)if(V[t]===e)return t},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),s({target:"Object",stat:!0,forced:!Z,sham:!i},{create:function(e,t){return void 0===t?O(e):te(O(e),t)},defineProperty:ee,defineProperties:te,getOwnPropertyDescriptor:re}),s({target:"Object",stat:!0,forced:!Z},{getOwnPropertyNames:oe,getOwnPropertySymbols:ie}),q&&s({target:"JSON",stat:!0,forced:!Z||c(function(){var e=N();return"[null]"!=B([e])||"{}"!=B({a:e})||"{}"!=B(Object(e))})},{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(w(t)||void 0!==e)&&!X(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),r[1]=t,B.apply(q,r)}}),N.prototype[z]||j(N.prototype,z,N.prototype.valueOf),f(N,"Symbol"),l[R]=!0},function(e,t,n){"use strict";var r=n(71)(1),o=n(70)("map");n(19)({target:"Array",proto:!0,forced:!o},{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(87),o=n(25),i=n(46),a=n(40),s=n(85),u=n(101),l=n(22)("isConcatSpreadable"),c=!n(24)(function(){var e=[];return e[l]=!1,e.concat()[0]!==e}),p=n(70)("concat"),f=function(e){if(!o(e))return!1;var t=e[l];return void 0!==t?!!t:r(e)},h=!c||!p;n(19)({target:"Array",proto:!0,forced:h},{concat:function(e){var t,n,r,o,l,c=i(this),p=u(c,0),h=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(p,h++,l)}return p.length=h,p}})},function(e,t,n){"use strict";var r=n(33),o=n(29),i=n(25),a=n(35).f,s=n(120),u=n(23).Symbol;if(r&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var l={},c=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof c?new u(e):void 0===e?u():u(e);return""===e&&(l[t]=!0),t};s(c,u);var p=c.prototype=u.prototype;p.constructor=c;var f=p.toString,h="Symbol(test)"==String(u("test")),d=/^Symbol\((.*)\)[^)]+$/;a(p,"description",{configurable:!0,get:function(){var e=i(this)?this.valueOf():this,t=f.call(e);if(o(l,e))return"";var n=h?t.slice(7,-1):t.replace(d,"$1");return""===n?void 0:n}}),n(19)({global:!0,forced:!0},{Symbol:c})}},function(e,t,n){n(139)("iterator")},function(e,t,n){"use strict";var r=n(71)(2),o=n(70)("filter");n(19)({target:"Array",proto:!0,forced:!o},{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}n.d(t,"a",function(){return r})},function(e,t,n){var r=n(23),o=n(54).f,i=n(39),a=n(41),s=n(95),u=n(120),l=n(82);e.exports=function(e,t){var n,c,p,f,h,d=e.target,g=e.global,v=e.stat;if(n=g?r:v?r[d]||s(d,{}):(r[d]||{}).prototype)for(c in t){if(f=t[c],p=e.noTargetGet?(h=o(n,c))&&h.value:n[c],!l(g?c:d+(v?".":"#")+c,e.forced)&&void 0!==p){if(typeof f==typeof p)continue;u(f,p)}(e.sham||p&&p.sham)&&i(f,"sham",!0),a(n,c,f,e)}}},function(e,t,n){var r=n(126),o=n(176),i=n(39),a=n(23);for(var s in r){var u=a[s],l=u&&u.prototype;if(l&&l.forEach!==o)try{i(l,"forEach",o)}catch(e){l.forEach=o}}},function(e,t,n){"use strict";n(8),n(7),n(9),n(10),n(160),n(14),n(51),n(13),n(164),n(106);function r(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",r=new Date((new Date).getTime()-864e5).toUTCString();document.cookie="".concat(e,"=;expires=").concat(r,";domain=").concat(t,";path=").concat(n)}},{key:"get",value:function(e){if(e.length)return e=e.toLowerCase(),(document.cookie.split(";").map(function(e){var t=e.split("=");return{id:t[0].trim(),value:t[1]}}).find(function(t){return e===t.id.toLocaleLowerCase()})||{}).value}},{key:"set",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",i=new Date((new Date).getTime()+63072e7).toUTCString(),a="".concat(t,"=").concat(n,";expires=").concat(i,";domain=").concat(r,";path=").concat(o);e.get(t)&&e.delete(t,r,o),document.cookie=a}}],(n=null)&&r(t.prototype,n),o&&r(t,o),e}(),i=n(5);function a(e,t){for(var n=0;n?@[\]^_`{|}~-])/g;function a(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function s(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var u=/&([a-z#][a-z0-9]{1,31});/gi,l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(148);function p(e,t){var n=0;return o(c,t)?c[t]:35===t.charCodeAt(0)&&l.test(t)&&a(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(n):e}var f=/[&<>"]/,h=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function g(e){return d[e]}t.assign=function(e){return[].slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=o,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(i,"$1")},t.isValidEntityCode=a,t.fromCodePoint=s,t.replaceEntities=function(e){return e.indexOf("&")<0?e:e.replace(u,p)},t.escapeHtml=function(e){return f.test(e)?e.replace(h,g):e}},function(e,t,n){var r=n(33),o=n(113),i=n(27),a=n(63),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(45),o=n(54).f,i=n(33),a=n(24)(function(){o(1)}),s=!i||a;n(19)({target:"Object",stat:!0,forced:s,sham:!i},{getOwnPropertyDescriptor:function(e,t){return o(r(e),t)}})},function(e,t,n){var r=n(46),o=n(58),i=n(24)(function(){o(1)});n(19)({target:"Object",stat:!0,forced:i},{keys:function(e){return o(r(e))}})},function(e,t,n){var r=n(128);n(19)({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){var r=n(35),o=n(64);e.exports=n(33)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(59),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(23),o=n(39),i=n(29),a=n(95),s=n(119),u=n(50),l=u.get,c=u.enforce,p=String(s).split("toString");n(62)("inspectSource",function(e){return s.call(e)}),(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),c(n).source=p.join("string"==typeof t?t:"")),e!==r?(u?!f&&e[t]&&(l=!0):delete e[t],l?e[t]=n:o(e,t,n)):l?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||s.call(this)})},function(e,t,n){"use strict";t.a=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});n(12),n(15),n(16),n(8),n(7),n(174),n(9),n(10);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return null!=e&&"object"===r(e)&&e.constructor===Object}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t||a(Object.values(e),Object.values(t),n)}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!e&&e.length===t.length&&!!e.every(function(e,r){var s=t[r];return e===s||n&&(Array.isArray(e)&&Array.isArray(s)&&a(e,s,n)||o(e)&&o(s)&&i(e,s,n))})}},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.Text="text",e.Markdown="markdown"}(r||(r={}))},function(e,t,n){var r=n(76),o=n(48);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(48);e.exports=function(e){return Object(r(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";e.exports=n(171)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},n(172),!0)},function(e,t,n){var r,o,i,a=n(156),s=n(25),u=n(39),l=n(29),c=n(79),p=n(66),f=n(23).WeakMap;if(a){var h=new f,d=h.get,g=h.has,v=h.set;r=function(e,t){return v.call(h,e,t),t},o=function(e){return d.call(h,e)||{}},i=function(e){return g.call(h,e)}}else{var b=c("state");p[b]=!0,r=function(e,t){return u(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(71)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(19)({target:"Array",proto:!0,forced:o},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(61)("find")},function(e,n){e.exports=t},function(e,t,n){var r; +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ +!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t0?r:n)(e)}},function(e,t,n){var r=n(84);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(22)("unscopables"),o=n(65),i=n(39),a=Array.prototype;null==a[r]&&i(a,r,o(null)),e.exports=function(e){a[r][e]=!0}},function(e,t,n){var r=n(23),o=n(95),i=r["__core-js_shared__"]||o("__core-js_shared__",{});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.0.1",mode:n(57)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(25);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(27),o=n(115),i=n(97),a=n(118),s=n(96),u=n(79)("IE_PROTO"),l=function(){},c=function(){var e,t=s("iframe"),n=i.length;for(t.style.display="none",a.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("