diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/Notebook_view/my_text_content.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/Notebook_view/my_text_content.xml index 9e9ebbe75b3b006d0d2268be2af9226f3de3bb1f..3da5e6df0c0654d28092149a43075f12adc643bf 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/Notebook_view/my_text_content.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/Notebook_view/my_text_content.xml @@ -139,7 +139,7 @@ _text - python: [(\'editor\', \'notebook_editor\'), (\'portal_type\', context.getPortalType()), (\'maximize\', \'listbox\' not in field.id)] + python: [(\'editor\', \'jsmd_editor\'), (\'portal_type\', context.getPortalType()), (\'maximize\', \'listbox\' not in field.id)] diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/cycler.data.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/cycler.data.xml index ba3a526cf597e96d65af2f5e726127467d001ed8..fb6eef164ee1620e2010273b627729c665eb6275 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/cycler.data.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/cycler.data.xml @@ -6,13 +6,17 @@ + + _Cacheable__manager_id + must_revalidate_http_cache + __name__ cycler.data content_type - application/octet-stream + application/wasm precondition diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/cycler.js.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/cycler.js.xml index 46a27fdd7015ef69438be95eec2a6e60e0994e76..03192c7c9d46bf4bee0d6f5ab9cf3d9372030654 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/cycler.js.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/cycler.js.xml @@ -6,6 +6,10 @@ + + _Cacheable__manager_id + must_revalidate_http_cache + __name__ cycler.js diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.css.css b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.css.css new file mode 100644 index 0000000000000000000000000000000000000000..34ca782a2419751f3d242427827198e6446575d4 --- /dev/null +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.css.css @@ -0,0 +1,7 @@ +div.code-block { + border-width: 1px; + border-style: solid; + border-color: #C3CCD0; + margin: 40px 10px; + padding-left: 10px; +} diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide_master.css.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.css.xml similarity index 75% rename from bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide_master.css.xml rename to bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.css.xml index 302deaed7d5fb793f13c4ff496699edcde32c39e..e16ecfdda49ef3169eee0d064dca75054a255eaa 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide_master.css.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.css.xml @@ -6,9 +6,13 @@ + + _Cacheable__manager_id + must_revalidate_http_cache + __name__ - iodide_master.css + gadget_jsmd_eval.css content_type diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.html.html b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.html.html index 6897c1c58fe422c330992b255a2ddfee73b4d4ef..681b08a5703aa96d21e57c317150717daf339be5 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.html.html +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.html.html @@ -8,6 +8,7 @@ JSMD Eval Gadget + diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.html.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.html.xml index b30a9eb6e1b752b49db1de8b7b94246fb67e1c74..3dd78f2a9bc6c1e922b973b8efd87e7ca299b338 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.html.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.html.xml @@ -6,6 +6,10 @@ + + _Cacheable__manager_id + must_revalidate_http_cache + __name__ gadget_jsmd_eval.html diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.js b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.js index 3e8228b9d1718d508ba82f2b612c0a68a1b76f7b..189102950d7d2c4912c24f5d5335f5e2ddbd427a 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.js +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.js @@ -6,12 +6,13 @@ var IODide = function createIODide() { return; }, - JSMDCell = function createJSMDCell(type, line_list) { + JSMDCell = function createJSMDCell(type, line_list, option) { this._type = type; this._line_list = line_list; + this._option = option; }, split_line_regex = /[\r\n|\n|\r]/, - cell_type_regexp = /^\%\% (\w+)$/; + cell_type_regexp = /^\%\% (\w+)/; window.iodide = new IODide(); @@ -67,16 +68,24 @@ var line_list = jsmd.split(split_line_regex), i, len = line_list.length, + code_type, current_line, current_type, + current_header, current_text_list, + option, next_type, cell_list = []; function pushNewCell() { if (current_type !== undefined) { + option = current_header.slice(current_type[0].length); + if (option !== '') { + option = JSON.parse(option); + } + cell_list.push(new JSMDCell(current_type[1], - current_text_list)); + current_text_list, option)); } } @@ -84,9 +93,10 @@ current_line = line_list[i]; next_type = current_line.match(cell_type_regexp); if (next_type) { - // New type detexted + // New type detected pushNewCell(); current_type = next_type; + current_header = current_line; current_text_list = []; } else if (current_text_list !== undefined) { current_text_list.push(current_line); @@ -253,8 +263,17 @@ }); } + function executeCodeCell(line_list, language) { + if (language === 'py') { + console.log(line_list); + console.log("We are processing Python code!!!"); + } else { + throw new Error('Unsupported code language: ' + language); + } + } + function executeCell(cell) { - if (cell._type === 'raw') { + if (cell._type === 'raw' || cell._type === 'meta' || cell._type === 'plugin') { // Do nothing... return; } @@ -273,6 +292,9 @@ if (cell._type === 'css') { return executeCssCell(cell._line_list); } + if (cell._type === 'code') { + return executeCodeCell(cell._line_list, cell._option.language); + } return executeUnknownCellType(cell); } diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.xml index 35ac36d6879352234209939f7cadc853e96ed7da..1ceebe53c23974d1c0899f20b00631ee1b34a99a 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.xml @@ -6,6 +6,10 @@ + + _Cacheable__manager_id + must_revalidate_http_cache + __name__ gadget_jsmd_eval.js diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.css.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.css.xml index 393f137992b4e707f7576f51e459398d0e70829b..da7bb5fa3075626d53ee95d50084a8fb9751c063 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.css.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.css.xml @@ -6,6 +6,10 @@ + + _Cacheable__manager_id + must_revalidate_http_cache + __name__ gadget_jsmd_viewer.css diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.html.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.html.xml index a36ccda15b32b6cdc5ea4fd87997804840373ab1..ae809e6eec333046ece1d938c11d79ddf31fb903 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.html.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.html.xml @@ -6,6 +6,10 @@ + + _Cacheable__manager_id + must_revalidate_http_cache + __name__ gadget_jsmd_viewer.html diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.js.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.js.xml index 37b65a09bf8098d92648caecfef927426838058e..673a440ee0e794f008249af0cf8ed1208e7e1ca3 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.js.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.js.xml @@ -6,6 +6,10 @@ + + _Cacheable__manager_id + must_revalidate_http_cache + __name__ gadget_jsmd_viewer.js diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_notebook.html.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_notebook.html.xml index 57a958d17fb81737807ef8f59f2bee7ae48a4fa1..6c9cc8dba8a8de4a561d7981b5148e2487585ff7 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_notebook.html.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_notebook.html.xml @@ -6,6 +6,10 @@ + + _Cacheable__manager_id + must_revalidate_http_cache + __name__ gadget_notebook.html diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_officejs_jio_notebook.js.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_officejs_jio_notebook.js.xml index 08f0359c7c2ab1054ebcad19b00d12ee9cc85732..5c933a7aa9fe833e820ce8a55b043340310cb12b 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_officejs_jio_notebook.js.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_officejs_jio_notebook.js.xml @@ -6,6 +6,10 @@ + + _Cacheable__manager_id + must_revalidate_http_cache + __name__ gadget_officejs_jio_notebook.js diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.ttf.bin b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.ttf.bin deleted file mode 100644 index 486b38c0d97a628ad0a4ed958d3aab17c422ed6f..0000000000000000000000000000000000000000 Binary files a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.ttf.bin and /dev/null differ diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.ttf.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.ttf.xml deleted file mode 100644 index ed6e99abb6fe8d5c3a223a81330d553c1adde807..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.ttf.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - __name__ - opensans.ttf - - - content_type - application/octet-stream - - - precondition - - - - title - - - - - - diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff.woff b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff.woff deleted file mode 100644 index df0c92a10b0f657823cd4649225024064e4a46f5..0000000000000000000000000000000000000000 Binary files a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff.woff and /dev/null differ diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff.xml deleted file mode 100644 index d8743b2a0b98dc5ba9ae9f8d61ee3a2967893abd..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - __name__ - opensans.woff - - - content_type - application/font-woff - - - precondition - - - - title - - - - - - diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff2.bin b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff2.bin deleted file mode 100644 index 90cc12ef57f71de30cd9f834cae98d4a3559fe32..0000000000000000000000000000000000000000 Binary files a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff2.bin and /dev/null differ diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff2.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff2.xml deleted file mode 100644 index a74a25f29680cb8c9bc7411bb0a1c3f11939735d..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensans.woff2.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - __name__ - opensans.woff2 - - - content_type - application/octet-stream - - - precondition - - - - title - - - - - - diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.ttf.bin b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.ttf.bin deleted file mode 100644 index d679304ef4d1eebdab9e85976980a9a692f2f7e5..0000000000000000000000000000000000000000 Binary files a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.ttf.bin and /dev/null differ diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.ttf.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.ttf.xml deleted file mode 100644 index 97af4a336ea414c9fe53e1afb907e0b17f552f44..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.ttf.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - __name__ - opensansbold.ttf - - - content_type - application/octet-stream - - - precondition - - - - title - - - - - - diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff.woff b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff.woff deleted file mode 100644 index 700d06a616abb1eb24f64f829ad1edac8f217624..0000000000000000000000000000000000000000 Binary files a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff.woff and /dev/null differ diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff.xml deleted file mode 100644 index 4e599d453b1e07010f850e08a39f0bd538dc44fe..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - __name__ - opensansbold.woff - - - content_type - application/font-woff - - - precondition - - - - title - - - - - - diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff2.bin b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff2.bin deleted file mode 100644 index 148ed5ef2f125b3a870da03d59efd523a4b6a167..0000000000000000000000000000000000000000 Binary files a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff2.bin and /dev/null differ diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff2.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff2.xml deleted file mode 100644 index 3dcd2e875308918c149482f5e10e299cf50fa98b..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansbold.woff2.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - __name__ - opensansbold.woff2 - - - content_type - application/octet-stream - - - precondition - - - - title - - - - - - diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansextrabold.woff2.bin b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansextrabold.woff2.bin deleted file mode 100644 index 5c114547773066a15678322a2aff84b85b94f5f2..0000000000000000000000000000000000000000 Binary files a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansextrabold.woff2.bin and /dev/null differ diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansextrabold.woff2.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansextrabold.woff2.xml deleted file mode 100644 index 16b059a45fc7e267ccd75b1077e4671b53424a96..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansextrabold.woff2.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - __name__ - opensansextrabold.woff2 - - - content_type - application/octet-stream - - - precondition - - - - title - - - - - - diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansitalic.woff2.bin b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansitalic.woff2.bin deleted file mode 100644 index 439d3657f9a15617b440311e7e9d29be2849f64d..0000000000000000000000000000000000000000 Binary files a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansitalic.woff2.bin and /dev/null differ diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansitalic.woff2.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansitalic.woff2.xml deleted file mode 100644 index b03e3dbb1c1b374d5d5cba18a0b9246c9672ce47..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts/opensansitalic.woff2.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - __name__ - opensansitalic.woff2 - - - content_type - application/octet-stream - - - precondition - - - - title - - - - - - diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide_master.css.css b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide_master.css.css deleted file mode 100644 index 14d48371081e1e63338c2b628a73eb0f95428151..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide_master.css.css +++ /dev/null @@ -1,4225 +0,0 @@ -/*! - * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome - * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) - */ -/* FONT PATH - * -------------------------- */ -@font-face { - font-family: 'FontAwesome'; - src: url(iodide.master.fonts/fontawesome-webfont.eot); - src: url(iodide.master.fonts/fontawesome-webfont.eot?#iefix&v=4.7.0) format('embedded-opentype'), url(iodide.master.fonts/fontawesome-webfont.woff2) format('woff2'), url(iodide.master.fonts/fontawesome-webfont.woff) format('woff'), url(iodide.master.fonts/fontawesome-webfont.ttf) format('truetype'), url(iodide.master.fonts/fontawesome-webfont.svg#fontawesomeregular) format('svg'); - font-weight: normal; - font-style: normal; -} -.fa { - display: inline-block; - font: normal normal normal 14px/1 FontAwesome; - font-size: inherit; - text-rendering: auto; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} -/* makes the font 33% larger relative to the icon container */ -.fa-lg { - font-size: 1.33333333em; - line-height: 0.75em; - vertical-align: -15%; -} -.fa-2x { - font-size: 2em; -} -.fa-3x { - font-size: 3em; -} -.fa-4x { - font-size: 4em; -} -.fa-5x { - font-size: 5em; -} -.fa-fw { - width: 1.28571429em; - text-align: center; -} -.fa-ul { - padding-left: 0; - margin-left: 2.14285714em; - list-style-type: none; -} -.fa-ul > li { - position: relative; -} -.fa-li { - position: absolute; - left: -2.14285714em; - width: 2.14285714em; - top: 0.14285714em; - text-align: center; -} -.fa-li.fa-lg { - left: -1.85714286em; -} -.fa-border { - padding: .2em .25em .15em; - border: solid 0.08em #eeeeee; - border-radius: .1em; -} -.fa-pull-left { - float: left; -} -.fa-pull-right { - float: right; -} -.fa.fa-pull-left { - margin-right: .3em; -} -.fa.fa-pull-right { - margin-left: .3em; -} -/* Deprecated as of 4.4.0 */ -.pull-right { - float: right; -} -.pull-left { - float: left; -} -.fa.pull-left { - margin-right: .3em; -} -.fa.pull-right { - margin-left: .3em; -} -.fa-spin { - -webkit-animation: fa-spin 2s infinite linear; - animation: fa-spin 2s infinite linear; -} -.fa-pulse { - -webkit-animation: fa-spin 1s infinite steps(8); - animation: fa-spin 1s infinite steps(8); -} -@-webkit-keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} -@keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} -.fa-rotate-90 { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"; - -webkit-transform: rotate(90deg); - -ms-transform: rotate(90deg); - transform: rotate(90deg); -} -.fa-rotate-180 { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); -} -.fa-rotate-270 { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"; - -webkit-transform: rotate(270deg); - -ms-transform: rotate(270deg); - transform: rotate(270deg); -} -.fa-flip-horizontal { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"; - -webkit-transform: scale(-1, 1); - -ms-transform: scale(-1, 1); - transform: scale(-1, 1); -} -.fa-flip-vertical { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"; - -webkit-transform: scale(1, -1); - -ms-transform: scale(1, -1); - transform: scale(1, -1); -} -:root .fa-rotate-90, -:root .fa-rotate-180, -:root .fa-rotate-270, -:root .fa-flip-horizontal, -:root .fa-flip-vertical { - filter: none; -} -.fa-stack { - position: relative; - display: inline-block; - width: 2em; - height: 2em; - line-height: 2em; - vertical-align: middle; -} -.fa-stack-1x, -.fa-stack-2x { - position: absolute; - left: 0; - width: 100%; - text-align: center; -} -.fa-stack-1x { - line-height: inherit; -} -.fa-stack-2x { - font-size: 2em; -} -.fa-inverse { - color: #ffffff; -} -/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen - readers do not read off random characters that represent icons */ -.fa-glass:before { - content: "\F000"; -} -.fa-music:before { - content: "\F001"; -} -.fa-search:before { - content: "\F002"; -} -.fa-envelope-o:before { - content: "\F003"; -} -.fa-heart:before { - content: "\F004"; -} -.fa-star:before { - content: "\F005"; -} -.fa-star-o:before { - content: "\F006"; -} -.fa-user:before { - content: "\F007"; -} -.fa-film:before { - content: "\F008"; -} -.fa-th-large:before { - content: "\F009"; -} -.fa-th:before { - content: "\F00A"; -} -.fa-th-list:before { - content: "\F00B"; -} -.fa-check:before { - content: "\F00C"; -} -.fa-remove:before, -.fa-close:before, -.fa-times:before { - content: "\F00D"; -} -.fa-search-plus:before { - content: "\F00E"; -} -.fa-search-minus:before { - content: "\F010"; -} -.fa-power-off:before { - content: "\F011"; -} -.fa-signal:before { - content: "\F012"; -} -.fa-gear:before, -.fa-cog:before { - content: "\F013"; -} -.fa-trash-o:before { - content: "\F014"; -} -.fa-home:before { - content: "\F015"; -} -.fa-file-o:before { - content: "\F016"; -} -.fa-clock-o:before { - content: "\F017"; -} -.fa-road:before { - content: "\F018"; -} -.fa-download:before { - content: "\F019"; -} -.fa-arrow-circle-o-down:before { - content: "\F01A"; -} -.fa-arrow-circle-o-up:before { - content: "\F01B"; -} -.fa-inbox:before { - content: "\F01C"; -} -.fa-play-circle-o:before { - content: "\F01D"; -} -.fa-rotate-right:before, -.fa-repeat:before { - content: "\F01E"; -} -.fa-refresh:before { - content: "\F021"; -} -.fa-list-alt:before { - content: "\F022"; -} -.fa-lock:before { - content: "\F023"; -} -.fa-flag:before { - content: "\F024"; -} -.fa-headphones:before { - content: "\F025"; -} -.fa-volume-off:before { - content: "\F026"; -} -.fa-volume-down:before { - content: "\F027"; -} -.fa-volume-up:before { - content: "\F028"; -} -.fa-qrcode:before { - content: "\F029"; -} -.fa-barcode:before { - content: "\F02A"; -} -.fa-tag:before { - content: "\F02B"; -} -.fa-tags:before { - content: "\F02C"; -} -.fa-book:before { - content: "\F02D"; -} -.fa-bookmark:before { - content: "\F02E"; -} -.fa-print:before { - content: "\F02F"; -} -.fa-camera:before { - content: "\F030"; -} -.fa-font:before { - content: "\F031"; -} -.fa-bold:before { - content: "\F032"; -} -.fa-italic:before { - content: "\F033"; -} -.fa-text-height:before { - content: "\F034"; -} -.fa-text-width:before { - content: "\F035"; -} -.fa-align-left:before { - content: "\F036"; -} -.fa-align-center:before { - content: "\F037"; -} -.fa-align-right:before { - content: "\F038"; -} -.fa-align-justify:before { - content: "\F039"; -} -.fa-list:before { - content: "\F03A"; -} -.fa-dedent:before, -.fa-outdent:before { - content: "\F03B"; -} -.fa-indent:before { - content: "\F03C"; -} -.fa-video-camera:before { - content: "\F03D"; -} -.fa-photo:before, -.fa-image:before, -.fa-picture-o:before { - content: "\F03E"; -} -.fa-pencil:before { - content: "\F040"; -} -.fa-map-marker:before { - content: "\F041"; -} -.fa-adjust:before { - content: "\F042"; -} -.fa-tint:before { - content: "\F043"; -} -.fa-edit:before, -.fa-pencil-square-o:before { - content: "\F044"; -} -.fa-share-square-o:before { - content: "\F045"; -} -.fa-check-square-o:before { - content: "\F046"; -} -.fa-arrows:before { - content: "\F047"; -} -.fa-step-backward:before { - content: "\F048"; -} -.fa-fast-backward:before { - content: "\F049"; -} -.fa-backward:before { - content: "\F04A"; -} -.fa-play:before { - content: "\F04B"; -} -.fa-pause:before { - content: "\F04C"; -} -.fa-stop:before { - content: "\F04D"; -} -.fa-forward:before { - content: "\F04E"; -} -.fa-fast-forward:before { - content: "\F050"; -} -.fa-step-forward:before { - content: "\F051"; -} -.fa-eject:before { - content: "\F052"; -} -.fa-chevron-left:before { - content: "\F053"; -} -.fa-chevron-right:before { - content: "\F054"; -} -.fa-plus-circle:before { - content: "\F055"; -} -.fa-minus-circle:before { - content: "\F056"; -} -.fa-times-circle:before { - content: "\F057"; -} -.fa-check-circle:before { - content: "\F058"; -} -.fa-question-circle:before { - content: "\F059"; -} -.fa-info-circle:before { - content: "\F05A"; -} -.fa-crosshairs:before { - content: "\F05B"; -} -.fa-times-circle-o:before { - content: "\F05C"; -} -.fa-check-circle-o:before { - content: "\F05D"; -} -.fa-ban:before { - content: "\F05E"; -} -.fa-arrow-left:before { - content: "\F060"; -} -.fa-arrow-right:before { - content: "\F061"; -} -.fa-arrow-up:before { - content: "\F062"; -} -.fa-arrow-down:before { - content: "\F063"; -} -.fa-mail-forward:before, -.fa-share:before { - content: "\F064"; -} -.fa-expand:before { - content: "\F065"; -} -.fa-compress:before { - content: "\F066"; -} -.fa-plus:before { - content: "\F067"; -} -.fa-minus:before { - content: "\F068"; -} -.fa-asterisk:before { - content: "\F069"; -} -.fa-exclamation-circle:before { - content: "\F06A"; -} -.fa-gift:before { - content: "\F06B"; -} -.fa-leaf:before { - content: "\F06C"; -} -.fa-fire:before { - content: "\F06D"; -} -.fa-eye:before { - content: "\F06E"; -} -.fa-eye-slash:before { - content: "\F070"; -} -.fa-warning:before, -.fa-exclamation-triangle:before { - content: "\F071"; -} -.fa-plane:before { - content: "\F072"; -} -.fa-calendar:before { - content: "\F073"; -} -.fa-random:before { - content: "\F074"; -} -.fa-comment:before { - content: "\F075"; -} -.fa-magnet:before { - content: "\F076"; -} -.fa-chevron-up:before { - content: "\F077"; -} -.fa-chevron-down:before { - content: "\F078"; -} -.fa-retweet:before { - content: "\F079"; -} -.fa-shopping-cart:before { - content: "\F07A"; -} -.fa-folder:before { - content: "\F07B"; -} -.fa-folder-open:before { - content: "\F07C"; -} -.fa-arrows-v:before { - content: "\F07D"; -} -.fa-arrows-h:before { - content: "\F07E"; -} -.fa-bar-chart-o:before, -.fa-bar-chart:before { - content: "\F080"; -} -.fa-twitter-square:before { - content: "\F081"; -} -.fa-facebook-square:before { - content: "\F082"; -} -.fa-camera-retro:before { - content: "\F083"; -} -.fa-key:before { - content: "\F084"; -} -.fa-gears:before, -.fa-cogs:before { - content: "\F085"; -} -.fa-comments:before { - content: "\F086"; -} -.fa-thumbs-o-up:before { - content: "\F087"; -} -.fa-thumbs-o-down:before { - content: "\F088"; -} -.fa-star-half:before { - content: "\F089"; -} -.fa-heart-o:before { - content: "\F08A"; -} -.fa-sign-out:before { - content: "\F08B"; -} -.fa-linkedin-square:before { - content: "\F08C"; -} -.fa-thumb-tack:before { - content: "\F08D"; -} -.fa-external-link:before { - content: "\F08E"; -} -.fa-sign-in:before { - content: "\F090"; -} -.fa-trophy:before { - content: "\F091"; -} -.fa-github-square:before { - content: "\F092"; -} -.fa-upload:before { - content: "\F093"; -} -.fa-lemon-o:before { - content: "\F094"; -} -.fa-phone:before { - content: "\F095"; -} -.fa-square-o:before { - content: "\F096"; -} -.fa-bookmark-o:before { - content: "\F097"; -} -.fa-phone-square:before { - content: "\F098"; -} -.fa-twitter:before { - content: "\F099"; -} -.fa-facebook-f:before, -.fa-facebook:before { - content: "\F09A"; -} -.fa-github:before { - content: "\F09B"; -} -.fa-unlock:before { - content: "\F09C"; -} -.fa-credit-card:before { - content: "\F09D"; -} -.fa-feed:before, -.fa-rss:before { - content: "\F09E"; -} -.fa-hdd-o:before { - content: "\F0A0"; -} -.fa-bullhorn:before { - content: "\F0A1"; -} -.fa-bell:before { - content: "\F0F3"; -} -.fa-certificate:before { - content: "\F0A3"; -} -.fa-hand-o-right:before { - content: "\F0A4"; -} -.fa-hand-o-left:before { - content: "\F0A5"; -} -.fa-hand-o-up:before { - content: "\F0A6"; -} -.fa-hand-o-down:before { - content: "\F0A7"; -} -.fa-arrow-circle-left:before { - content: "\F0A8"; -} -.fa-arrow-circle-right:before { - content: "\F0A9"; -} -.fa-arrow-circle-up:before { - content: "\F0AA"; -} -.fa-arrow-circle-down:before { - content: "\F0AB"; -} -.fa-globe:before { - content: "\F0AC"; -} -.fa-wrench:before { - content: "\F0AD"; -} -.fa-tasks:before { - content: "\F0AE"; -} -.fa-filter:before { - content: "\F0B0"; -} -.fa-briefcase:before { - content: "\F0B1"; -} -.fa-arrows-alt:before { - content: "\F0B2"; -} -.fa-group:before, -.fa-users:before { - content: "\F0C0"; -} -.fa-chain:before, -.fa-link:before { - content: "\F0C1"; -} -.fa-cloud:before { - content: "\F0C2"; -} -.fa-flask:before { - content: "\F0C3"; -} -.fa-cut:before, -.fa-scissors:before { - content: "\F0C4"; -} -.fa-copy:before, -.fa-files-o:before { - content: "\F0C5"; -} -.fa-paperclip:before { - content: "\F0C6"; -} -.fa-save:before, -.fa-floppy-o:before { - content: "\F0C7"; -} -.fa-square:before { - content: "\F0C8"; -} -.fa-navicon:before, -.fa-reorder:before, -.fa-bars:before { - content: "\F0C9"; -} -.fa-list-ul:before { - content: "\F0CA"; -} -.fa-list-ol:before { - content: "\F0CB"; -} -.fa-strikethrough:before { - content: "\F0CC"; -} -.fa-underline:before { - content: "\F0CD"; -} -.fa-table:before { - content: "\F0CE"; -} -.fa-magic:before { - content: "\F0D0"; -} -.fa-truck:before { - content: "\F0D1"; -} -.fa-pinterest:before { - content: "\F0D2"; -} -.fa-pinterest-square:before { - content: "\F0D3"; -} -.fa-google-plus-square:before { - content: "\F0D4"; -} -.fa-google-plus:before { - content: "\F0D5"; -} -.fa-money:before { - content: "\F0D6"; -} -.fa-caret-down:before { - content: "\F0D7"; -} -.fa-caret-up:before { - content: "\F0D8"; -} -.fa-caret-left:before { - content: "\F0D9"; -} -.fa-caret-right:before { - content: "\F0DA"; -} -.fa-columns:before { - content: "\F0DB"; -} -.fa-unsorted:before, -.fa-sort:before { - content: "\F0DC"; -} -.fa-sort-down:before, -.fa-sort-desc:before { - content: "\F0DD"; -} -.fa-sort-up:before, -.fa-sort-asc:before { - content: "\F0DE"; -} -.fa-envelope:before { - content: "\F0E0"; -} -.fa-linkedin:before { - content: "\F0E1"; -} -.fa-rotate-left:before, -.fa-undo:before { - content: "\F0E2"; -} -.fa-legal:before, -.fa-gavel:before { - content: "\F0E3"; -} -.fa-dashboard:before, -.fa-tachometer:before { - content: "\F0E4"; -} -.fa-comment-o:before { - content: "\F0E5"; -} -.fa-comments-o:before { - content: "\F0E6"; -} -.fa-flash:before, -.fa-bolt:before { - content: "\F0E7"; -} -.fa-sitemap:before { - content: "\F0E8"; -} -.fa-umbrella:before { - content: "\F0E9"; -} -.fa-paste:before, -.fa-clipboard:before { - content: "\F0EA"; -} -.fa-lightbulb-o:before { - content: "\F0EB"; -} -.fa-exchange:before { - content: "\F0EC"; -} -.fa-cloud-download:before { - content: "\F0ED"; -} -.fa-cloud-upload:before { - content: "\F0EE"; -} -.fa-user-md:before { - content: "\F0F0"; -} -.fa-stethoscope:before { - content: "\F0F1"; -} -.fa-suitcase:before { - content: "\F0F2"; -} -.fa-bell-o:before { - content: "\F0A2"; -} -.fa-coffee:before { - content: "\F0F4"; -} -.fa-cutlery:before { - content: "\F0F5"; -} -.fa-file-text-o:before { - content: "\F0F6"; -} -.fa-building-o:before { - content: "\F0F7"; -} -.fa-hospital-o:before { - content: "\F0F8"; -} -.fa-ambulance:before { - content: "\F0F9"; -} -.fa-medkit:before { - content: "\F0FA"; -} -.fa-fighter-jet:before { - content: "\F0FB"; -} -.fa-beer:before { - content: "\F0FC"; -} -.fa-h-square:before { - content: "\F0FD"; -} -.fa-plus-square:before { - content: "\F0FE"; -} -.fa-angle-double-left:before { - content: "\F100"; -} -.fa-angle-double-right:before { - content: "\F101"; -} -.fa-angle-double-up:before { - content: "\F102"; -} -.fa-angle-double-down:before { - content: "\F103"; -} -.fa-angle-left:before { - content: "\F104"; -} -.fa-angle-right:before { - content: "\F105"; -} -.fa-angle-up:before { - content: "\F106"; -} -.fa-angle-down:before { - content: "\F107"; -} -.fa-desktop:before { - content: "\F108"; -} -.fa-laptop:before { - content: "\F109"; -} -.fa-tablet:before { - content: "\F10A"; -} -.fa-mobile-phone:before, -.fa-mobile:before { - content: "\F10B"; -} -.fa-circle-o:before { - content: "\F10C"; -} -.fa-quote-left:before { - content: "\F10D"; -} -.fa-quote-right:before { - content: "\F10E"; -} -.fa-spinner:before { - content: "\F110"; -} -.fa-circle:before { - content: "\F111"; -} -.fa-mail-reply:before, -.fa-reply:before { - content: "\F112"; -} -.fa-github-alt:before { - content: "\F113"; -} -.fa-folder-o:before { - content: "\F114"; -} -.fa-folder-open-o:before { - content: "\F115"; -} -.fa-smile-o:before { - content: "\F118"; -} -.fa-frown-o:before { - content: "\F119"; -} -.fa-meh-o:before { - content: "\F11A"; -} -.fa-gamepad:before { - content: "\F11B"; -} -.fa-keyboard-o:before { - content: "\F11C"; -} -.fa-flag-o:before { - content: "\F11D"; -} -.fa-flag-checkered:before { - content: "\F11E"; -} -.fa-terminal:before { - content: "\F120"; -} -.fa-code:before { - content: "\F121"; -} -.fa-mail-reply-all:before, -.fa-reply-all:before { - content: "\F122"; -} -.fa-star-half-empty:before, -.fa-star-half-full:before, -.fa-star-half-o:before { - content: "\F123"; -} -.fa-location-arrow:before { - content: "\F124"; -} -.fa-crop:before { - content: "\F125"; -} -.fa-code-fork:before { - content: "\F126"; -} -.fa-unlink:before, -.fa-chain-broken:before { - content: "\F127"; -} -.fa-question:before { - content: "\F128"; -} -.fa-info:before { - content: "\F129"; -} -.fa-exclamation:before { - content: "\F12A"; -} -.fa-superscript:before { - content: "\F12B"; -} -.fa-subscript:before { - content: "\F12C"; -} -.fa-eraser:before { - content: "\F12D"; -} -.fa-puzzle-piece:before { - content: "\F12E"; -} -.fa-microphone:before { - content: "\F130"; -} -.fa-microphone-slash:before { - content: "\F131"; -} -.fa-shield:before { - content: "\F132"; -} -.fa-calendar-o:before { - content: "\F133"; -} -.fa-fire-extinguisher:before { - content: "\F134"; -} -.fa-rocket:before { - content: "\F135"; -} -.fa-maxcdn:before { - content: "\F136"; -} -.fa-chevron-circle-left:before { - content: "\F137"; -} -.fa-chevron-circle-right:before { - content: "\F138"; -} -.fa-chevron-circle-up:before { - content: "\F139"; -} -.fa-chevron-circle-down:before { - content: "\F13A"; -} -.fa-html5:before { - content: "\F13B"; -} -.fa-css3:before { - content: "\F13C"; -} -.fa-anchor:before { - content: "\F13D"; -} -.fa-unlock-alt:before { - content: "\F13E"; -} -.fa-bullseye:before { - content: "\F140"; -} -.fa-ellipsis-h:before { - content: "\F141"; -} -.fa-ellipsis-v:before { - content: "\F142"; -} -.fa-rss-square:before { - content: "\F143"; -} -.fa-play-circle:before { - content: "\F144"; -} -.fa-ticket:before { - content: "\F145"; -} -.fa-minus-square:before { - content: "\F146"; -} -.fa-minus-square-o:before { - content: "\F147"; -} -.fa-level-up:before { - content: "\F148"; -} -.fa-level-down:before { - content: "\F149"; -} -.fa-check-square:before { - content: "\F14A"; -} -.fa-pencil-square:before { - content: "\F14B"; -} -.fa-external-link-square:before { - content: "\F14C"; -} -.fa-share-square:before { - content: "\F14D"; -} -.fa-compass:before { - content: "\F14E"; -} -.fa-toggle-down:before, -.fa-caret-square-o-down:before { - content: "\F150"; -} -.fa-toggle-up:before, -.fa-caret-square-o-up:before { - content: "\F151"; -} -.fa-toggle-right:before, -.fa-caret-square-o-right:before { - content: "\F152"; -} -.fa-euro:before, -.fa-eur:before { - content: "\F153"; -} -.fa-gbp:before { - content: "\F154"; -} -.fa-dollar:before, -.fa-usd:before { - content: "\F155"; -} -.fa-rupee:before, -.fa-inr:before { - content: "\F156"; -} -.fa-cny:before, -.fa-rmb:before, -.fa-yen:before, -.fa-jpy:before { - content: "\F157"; -} -.fa-ruble:before, -.fa-rouble:before, -.fa-rub:before { - content: "\F158"; -} -.fa-won:before, -.fa-krw:before { - content: "\F159"; -} -.fa-bitcoin:before, -.fa-btc:before { - content: "\F15A"; -} -.fa-file:before { - content: "\F15B"; -} -.fa-file-text:before { - content: "\F15C"; -} -.fa-sort-alpha-asc:before { - content: "\F15D"; -} -.fa-sort-alpha-desc:before { - content: "\F15E"; -} -.fa-sort-amount-asc:before { - content: "\F160"; -} -.fa-sort-amount-desc:before { - content: "\F161"; -} -.fa-sort-numeric-asc:before { - content: "\F162"; -} -.fa-sort-numeric-desc:before { - content: "\F163"; -} -.fa-thumbs-up:before { - content: "\F164"; -} -.fa-thumbs-down:before { - content: "\F165"; -} -.fa-youtube-square:before { - content: "\F166"; -} -.fa-youtube:before { - content: "\F167"; -} -.fa-xing:before { - content: "\F168"; -} -.fa-xing-square:before { - content: "\F169"; -} -.fa-youtube-play:before { - content: "\F16A"; -} -.fa-dropbox:before { - content: "\F16B"; -} -.fa-stack-overflow:before { - content: "\F16C"; -} -.fa-instagram:before { - content: "\F16D"; -} -.fa-flickr:before { - content: "\F16E"; -} -.fa-adn:before { - content: "\F170"; -} -.fa-bitbucket:before { - content: "\F171"; -} -.fa-bitbucket-square:before { - content: "\F172"; -} -.fa-tumblr:before { - content: "\F173"; -} -.fa-tumblr-square:before { - content: "\F174"; -} -.fa-long-arrow-down:before { - content: "\F175"; -} -.fa-long-arrow-up:before { - content: "\F176"; -} -.fa-long-arrow-left:before { - content: "\F177"; -} -.fa-long-arrow-right:before { - content: "\F178"; -} -.fa-apple:before { - content: "\F179"; -} -.fa-windows:before { - content: "\F17A"; -} -.fa-android:before { - content: "\F17B"; -} -.fa-linux:before { - content: "\F17C"; -} -.fa-dribbble:before { - content: "\F17D"; -} -.fa-skype:before { - content: "\F17E"; -} -.fa-foursquare:before { - content: "\F180"; -} -.fa-trello:before { - content: "\F181"; -} -.fa-female:before { - content: "\F182"; -} -.fa-male:before { - content: "\F183"; -} -.fa-gittip:before, -.fa-gratipay:before { - content: "\F184"; -} -.fa-sun-o:before { - content: "\F185"; -} -.fa-moon-o:before { - content: "\F186"; -} -.fa-archive:before { - content: "\F187"; -} -.fa-bug:before { - content: "\F188"; -} -.fa-vk:before { - content: "\F189"; -} -.fa-weibo:before { - content: "\F18A"; -} -.fa-renren:before { - content: "\F18B"; -} -.fa-pagelines:before { - content: "\F18C"; -} -.fa-stack-exchange:before { - content: "\F18D"; -} -.fa-arrow-circle-o-right:before { - content: "\F18E"; -} -.fa-arrow-circle-o-left:before { - content: "\F190"; -} -.fa-toggle-left:before, -.fa-caret-square-o-left:before { - content: "\F191"; -} -.fa-dot-circle-o:before { - content: "\F192"; -} -.fa-wheelchair:before { - content: "\F193"; -} -.fa-vimeo-square:before { - content: "\F194"; -} -.fa-turkish-lira:before, -.fa-try:before { - content: "\F195"; -} -.fa-plus-square-o:before { - content: "\F196"; -} -.fa-space-shuttle:before { - content: "\F197"; -} -.fa-slack:before { - content: "\F198"; -} -.fa-envelope-square:before { - content: "\F199"; -} -.fa-wordpress:before { - content: "\F19A"; -} -.fa-openid:before { - content: "\F19B"; -} -.fa-institution:before, -.fa-bank:before, -.fa-university:before { - content: "\F19C"; -} -.fa-mortar-board:before, -.fa-graduation-cap:before { - content: "\F19D"; -} -.fa-yahoo:before { - content: "\F19E"; -} -.fa-google:before { - content: "\F1A0"; -} -.fa-reddit:before { - content: "\F1A1"; -} -.fa-reddit-square:before { - content: "\F1A2"; -} -.fa-stumbleupon-circle:before { - content: "\F1A3"; -} -.fa-stumbleupon:before { - content: "\F1A4"; -} -.fa-delicious:before { - content: "\F1A5"; -} -.fa-digg:before { - content: "\F1A6"; -} -.fa-pied-piper-pp:before { - content: "\F1A7"; -} -.fa-pied-piper-alt:before { - content: "\F1A8"; -} -.fa-drupal:before { - content: "\F1A9"; -} -.fa-joomla:before { - content: "\F1AA"; -} -.fa-language:before { - content: "\F1AB"; -} -.fa-fax:before { - content: "\F1AC"; -} -.fa-building:before { - content: "\F1AD"; -} -.fa-child:before { - content: "\F1AE"; -} -.fa-paw:before { - content: "\F1B0"; -} -.fa-spoon:before { - content: "\F1B1"; -} -.fa-cube:before { - content: "\F1B2"; -} -.fa-cubes:before { - content: "\F1B3"; -} -.fa-behance:before { - content: "\F1B4"; -} -.fa-behance-square:before { - content: "\F1B5"; -} -.fa-steam:before { - content: "\F1B6"; -} -.fa-steam-square:before { - content: "\F1B7"; -} -.fa-recycle:before { - content: "\F1B8"; -} -.fa-automobile:before, -.fa-car:before { - content: "\F1B9"; -} -.fa-cab:before, -.fa-taxi:before { - content: "\F1BA"; -} -.fa-tree:before { - content: "\F1BB"; -} -.fa-spotify:before { - content: "\F1BC"; -} -.fa-deviantart:before { - content: "\F1BD"; -} -.fa-soundcloud:before { - content: "\F1BE"; -} -.fa-database:before { - content: "\F1C0"; -} -.fa-file-pdf-o:before { - content: "\F1C1"; -} -.fa-file-word-o:before { - content: "\F1C2"; -} -.fa-file-excel-o:before { - content: "\F1C3"; -} -.fa-file-powerpoint-o:before { - content: "\F1C4"; -} -.fa-file-photo-o:before, -.fa-file-picture-o:before, -.fa-file-image-o:before { - content: "\F1C5"; -} -.fa-file-zip-o:before, -.fa-file-archive-o:before { - content: "\F1C6"; -} -.fa-file-sound-o:before, -.fa-file-audio-o:before { - content: "\F1C7"; -} -.fa-file-movie-o:before, -.fa-file-video-o:before { - content: "\F1C8"; -} -.fa-file-code-o:before { - content: "\F1C9"; -} -.fa-vine:before { - content: "\F1CA"; -} -.fa-codepen:before { - content: "\F1CB"; -} -.fa-jsfiddle:before { - content: "\F1CC"; -} -.fa-life-bouy:before, -.fa-life-buoy:before, -.fa-life-saver:before, -.fa-support:before, -.fa-life-ring:before { - content: "\F1CD"; -} -.fa-circle-o-notch:before { - content: "\F1CE"; -} -.fa-ra:before, -.fa-resistance:before, -.fa-rebel:before { - content: "\F1D0"; -} -.fa-ge:before, -.fa-empire:before { - content: "\F1D1"; -} -.fa-git-square:before { - content: "\F1D2"; -} -.fa-git:before { - content: "\F1D3"; -} -.fa-y-combinator-square:before, -.fa-yc-square:before, -.fa-hacker-news:before { - content: "\F1D4"; -} -.fa-tencent-weibo:before { - content: "\F1D5"; -} -.fa-qq:before { - content: "\F1D6"; -} -.fa-wechat:before, -.fa-weixin:before { - content: "\F1D7"; -} -.fa-send:before, -.fa-paper-plane:before { - content: "\F1D8"; -} -.fa-send-o:before, -.fa-paper-plane-o:before { - content: "\F1D9"; -} -.fa-history:before { - content: "\F1DA"; -} -.fa-circle-thin:before { - content: "\F1DB"; -} -.fa-header:before { - content: "\F1DC"; -} -.fa-paragraph:before { - content: "\F1DD"; -} -.fa-sliders:before { - content: "\F1DE"; -} -.fa-share-alt:before { - content: "\F1E0"; -} -.fa-share-alt-square:before { - content: "\F1E1"; -} -.fa-bomb:before { - content: "\F1E2"; -} -.fa-soccer-ball-o:before, -.fa-futbol-o:before { - content: "\F1E3"; -} -.fa-tty:before { - content: "\F1E4"; -} -.fa-binoculars:before { - content: "\F1E5"; -} -.fa-plug:before { - content: "\F1E6"; -} -.fa-slideshare:before { - content: "\F1E7"; -} -.fa-twitch:before { - content: "\F1E8"; -} -.fa-yelp:before { - content: "\F1E9"; -} -.fa-newspaper-o:before { - content: "\F1EA"; -} -.fa-wifi:before { - content: "\F1EB"; -} -.fa-calculator:before { - content: "\F1EC"; -} -.fa-paypal:before { - content: "\F1ED"; -} -.fa-google-wallet:before { - content: "\F1EE"; -} -.fa-cc-visa:before { - content: "\F1F0"; -} -.fa-cc-mastercard:before { - content: "\F1F1"; -} -.fa-cc-discover:before { - content: "\F1F2"; -} -.fa-cc-amex:before { - content: "\F1F3"; -} -.fa-cc-paypal:before { - content: "\F1F4"; -} -.fa-cc-stripe:before { - content: "\F1F5"; -} -.fa-bell-slash:before { - content: "\F1F6"; -} -.fa-bell-slash-o:before { - content: "\F1F7"; -} -.fa-trash:before { - content: "\F1F8"; -} -.fa-copyright:before { - content: "\F1F9"; -} -.fa-at:before { - content: "\F1FA"; -} -.fa-eyedropper:before { - content: "\F1FB"; -} -.fa-paint-brush:before { - content: "\F1FC"; -} -.fa-birthday-cake:before { - content: "\F1FD"; -} -.fa-area-chart:before { - content: "\F1FE"; -} -.fa-pie-chart:before { - content: "\F200"; -} -.fa-line-chart:before { - content: "\F201"; -} -.fa-lastfm:before { - content: "\F202"; -} -.fa-lastfm-square:before { - content: "\F203"; -} -.fa-toggle-off:before { - content: "\F204"; -} -.fa-toggle-on:before { - content: "\F205"; -} -.fa-bicycle:before { - content: "\F206"; -} -.fa-bus:before { - content: "\F207"; -} -.fa-ioxhost:before { - content: "\F208"; -} -.fa-angellist:before { - content: "\F209"; -} -.fa-cc:before { - content: "\F20A"; -} -.fa-shekel:before, -.fa-sheqel:before, -.fa-ils:before { - content: "\F20B"; -} -.fa-meanpath:before { - content: "\F20C"; -} -.fa-buysellads:before { - content: "\F20D"; -} -.fa-connectdevelop:before { - content: "\F20E"; -} -.fa-dashcube:before { - content: "\F210"; -} -.fa-forumbee:before { - content: "\F211"; -} -.fa-leanpub:before { - content: "\F212"; -} -.fa-sellsy:before { - content: "\F213"; -} -.fa-shirtsinbulk:before { - content: "\F214"; -} -.fa-simplybuilt:before { - content: "\F215"; -} -.fa-skyatlas:before { - content: "\F216"; -} -.fa-cart-plus:before { - content: "\F217"; -} -.fa-cart-arrow-down:before { - content: "\F218"; -} -.fa-diamond:before { - content: "\F219"; -} -.fa-ship:before { - content: "\F21A"; -} -.fa-user-secret:before { - content: "\F21B"; -} -.fa-motorcycle:before { - content: "\F21C"; -} -.fa-street-view:before { - content: "\F21D"; -} -.fa-heartbeat:before { - content: "\F21E"; -} -.fa-venus:before { - content: "\F221"; -} -.fa-mars:before { - content: "\F222"; -} -.fa-mercury:before { - content: "\F223"; -} -.fa-intersex:before, -.fa-transgender:before { - content: "\F224"; -} -.fa-transgender-alt:before { - content: "\F225"; -} -.fa-venus-double:before { - content: "\F226"; -} -.fa-mars-double:before { - content: "\F227"; -} -.fa-venus-mars:before { - content: "\F228"; -} -.fa-mars-stroke:before { - content: "\F229"; -} -.fa-mars-stroke-v:before { - content: "\F22A"; -} -.fa-mars-stroke-h:before { - content: "\F22B"; -} -.fa-neuter:before { - content: "\F22C"; -} -.fa-genderless:before { - content: "\F22D"; -} -.fa-facebook-official:before { - content: "\F230"; -} -.fa-pinterest-p:before { - content: "\F231"; -} -.fa-whatsapp:before { - content: "\F232"; -} -.fa-server:before { - content: "\F233"; -} -.fa-user-plus:before { - content: "\F234"; -} -.fa-user-times:before { - content: "\F235"; -} -.fa-hotel:before, -.fa-bed:before { - content: "\F236"; -} -.fa-viacoin:before { - content: "\F237"; -} -.fa-train:before { - content: "\F238"; -} -.fa-subway:before { - content: "\F239"; -} -.fa-medium:before { - content: "\F23A"; -} -.fa-yc:before, -.fa-y-combinator:before { - content: "\F23B"; -} -.fa-optin-monster:before { - content: "\F23C"; -} -.fa-opencart:before { - content: "\F23D"; -} -.fa-expeditedssl:before { - content: "\F23E"; -} -.fa-battery-4:before, -.fa-battery:before, -.fa-battery-full:before { - content: "\F240"; -} -.fa-battery-3:before, -.fa-battery-three-quarters:before { - content: "\F241"; -} -.fa-battery-2:before, -.fa-battery-half:before { - content: "\F242"; -} -.fa-battery-1:before, -.fa-battery-quarter:before { - content: "\F243"; -} -.fa-battery-0:before, -.fa-battery-empty:before { - content: "\F244"; -} -.fa-mouse-pointer:before { - content: "\F245"; -} -.fa-i-cursor:before { - content: "\F246"; -} -.fa-object-group:before { - content: "\F247"; -} -.fa-object-ungroup:before { - content: "\F248"; -} -.fa-sticky-note:before { - content: "\F249"; -} -.fa-sticky-note-o:before { - content: "\F24A"; -} -.fa-cc-jcb:before { - content: "\F24B"; -} -.fa-cc-diners-club:before { - content: "\F24C"; -} -.fa-clone:before { - content: "\F24D"; -} -.fa-balance-scale:before { - content: "\F24E"; -} -.fa-hourglass-o:before { - content: "\F250"; -} -.fa-hourglass-1:before, -.fa-hourglass-start:before { - content: "\F251"; -} -.fa-hourglass-2:before, -.fa-hourglass-half:before { - content: "\F252"; -} -.fa-hourglass-3:before, -.fa-hourglass-end:before { - content: "\F253"; -} -.fa-hourglass:before { - content: "\F254"; -} -.fa-hand-grab-o:before, -.fa-hand-rock-o:before { - content: "\F255"; -} -.fa-hand-stop-o:before, -.fa-hand-paper-o:before { - content: "\F256"; -} -.fa-hand-scissors-o:before { - content: "\F257"; -} -.fa-hand-lizard-o:before { - content: "\F258"; -} -.fa-hand-spock-o:before { - content: "\F259"; -} -.fa-hand-pointer-o:before { - content: "\F25A"; -} -.fa-hand-peace-o:before { - content: "\F25B"; -} -.fa-trademark:before { - content: "\F25C"; -} -.fa-registered:before { - content: "\F25D"; -} -.fa-creative-commons:before { - content: "\F25E"; -} -.fa-gg:before { - content: "\F260"; -} -.fa-gg-circle:before { - content: "\F261"; -} -.fa-tripadvisor:before { - content: "\F262"; -} -.fa-odnoklassniki:before { - content: "\F263"; -} -.fa-odnoklassniki-square:before { - content: "\F264"; -} -.fa-get-pocket:before { - content: "\F265"; -} -.fa-wikipedia-w:before { - content: "\F266"; -} -.fa-safari:before { - content: "\F267"; -} -.fa-chrome:before { - content: "\F268"; -} -.fa-firefox:before { - content: "\F269"; -} -.fa-opera:before { - content: "\F26A"; -} -.fa-internet-explorer:before { - content: "\F26B"; -} -.fa-tv:before, -.fa-television:before { - content: "\F26C"; -} -.fa-contao:before { - content: "\F26D"; -} -.fa-500px:before { - content: "\F26E"; -} -.fa-amazon:before { - content: "\F270"; -} -.fa-calendar-plus-o:before { - content: "\F271"; -} -.fa-calendar-minus-o:before { - content: "\F272"; -} -.fa-calendar-times-o:before { - content: "\F273"; -} -.fa-calendar-check-o:before { - content: "\F274"; -} -.fa-industry:before { - content: "\F275"; -} -.fa-map-pin:before { - content: "\F276"; -} -.fa-map-signs:before { - content: "\F277"; -} -.fa-map-o:before { - content: "\F278"; -} -.fa-map:before { - content: "\F279"; -} -.fa-commenting:before { - content: "\F27A"; -} -.fa-commenting-o:before { - content: "\F27B"; -} -.fa-houzz:before { - content: "\F27C"; -} -.fa-vimeo:before { - content: "\F27D"; -} -.fa-black-tie:before { - content: "\F27E"; -} -.fa-fonticons:before { - content: "\F280"; -} -.fa-reddit-alien:before { - content: "\F281"; -} -.fa-edge:before { - content: "\F282"; -} -.fa-credit-card-alt:before { - content: "\F283"; -} -.fa-codiepie:before { - content: "\F284"; -} -.fa-modx:before { - content: "\F285"; -} -.fa-fort-awesome:before { - content: "\F286"; -} -.fa-usb:before { - content: "\F287"; -} -.fa-product-hunt:before { - content: "\F288"; -} -.fa-mixcloud:before { - content: "\F289"; -} -.fa-scribd:before { - content: "\F28A"; -} -.fa-pause-circle:before { - content: "\F28B"; -} -.fa-pause-circle-o:before { - content: "\F28C"; -} -.fa-stop-circle:before { - content: "\F28D"; -} -.fa-stop-circle-o:before { - content: "\F28E"; -} -.fa-shopping-bag:before { - content: "\F290"; -} -.fa-shopping-basket:before { - content: "\F291"; -} -.fa-hashtag:before { - content: "\F292"; -} -.fa-bluetooth:before { - content: "\F293"; -} -.fa-bluetooth-b:before { - content: "\F294"; -} -.fa-percent:before { - content: "\F295"; -} -.fa-gitlab:before { - content: "\F296"; -} -.fa-wpbeginner:before { - content: "\F297"; -} -.fa-wpforms:before { - content: "\F298"; -} -.fa-envira:before { - content: "\F299"; -} -.fa-universal-access:before { - content: "\F29A"; -} -.fa-wheelchair-alt:before { - content: "\F29B"; -} -.fa-question-circle-o:before { - content: "\F29C"; -} -.fa-blind:before { - content: "\F29D"; -} -.fa-audio-description:before { - content: "\F29E"; -} -.fa-volume-control-phone:before { - content: "\F2A0"; -} -.fa-braille:before { - content: "\F2A1"; -} -.fa-assistive-listening-systems:before { - content: "\F2A2"; -} -.fa-asl-interpreting:before, -.fa-american-sign-language-interpreting:before { - content: "\F2A3"; -} -.fa-deafness:before, -.fa-hard-of-hearing:before, -.fa-deaf:before { - content: "\F2A4"; -} -.fa-glide:before { - content: "\F2A5"; -} -.fa-glide-g:before { - content: "\F2A6"; -} -.fa-signing:before, -.fa-sign-language:before { - content: "\F2A7"; -} -.fa-low-vision:before { - content: "\F2A8"; -} -.fa-viadeo:before { - content: "\F2A9"; -} -.fa-viadeo-square:before { - content: "\F2AA"; -} -.fa-snapchat:before { - content: "\F2AB"; -} -.fa-snapchat-ghost:before { - content: "\F2AC"; -} -.fa-snapchat-square:before { - content: "\F2AD"; -} -.fa-pied-piper:before { - content: "\F2AE"; -} -.fa-first-order:before { - content: "\F2B0"; -} -.fa-yoast:before { - content: "\F2B1"; -} -.fa-themeisle:before { - content: "\F2B2"; -} -.fa-google-plus-circle:before, -.fa-google-plus-official:before { - content: "\F2B3"; -} -.fa-fa:before, -.fa-font-awesome:before { - content: "\F2B4"; -} -.fa-handshake-o:before { - content: "\F2B5"; -} -.fa-envelope-open:before { - content: "\F2B6"; -} -.fa-envelope-open-o:before { - content: "\F2B7"; -} -.fa-linode:before { - content: "\F2B8"; -} -.fa-address-book:before { - content: "\F2B9"; -} -.fa-address-book-o:before { - content: "\F2BA"; -} -.fa-vcard:before, -.fa-address-card:before { - content: "\F2BB"; -} -.fa-vcard-o:before, -.fa-address-card-o:before { - content: "\F2BC"; -} -.fa-user-circle:before { - content: "\F2BD"; -} -.fa-user-circle-o:before { - content: "\F2BE"; -} -.fa-user-o:before { - content: "\F2C0"; -} -.fa-id-badge:before { - content: "\F2C1"; -} -.fa-drivers-license:before, -.fa-id-card:before { - content: "\F2C2"; -} -.fa-drivers-license-o:before, -.fa-id-card-o:before { - content: "\F2C3"; -} -.fa-quora:before { - content: "\F2C4"; -} -.fa-free-code-camp:before { - content: "\F2C5"; -} -.fa-telegram:before { - content: "\F2C6"; -} -.fa-thermometer-4:before, -.fa-thermometer:before, -.fa-thermometer-full:before { - content: "\F2C7"; -} -.fa-thermometer-3:before, -.fa-thermometer-three-quarters:before { - content: "\F2C8"; -} -.fa-thermometer-2:before, -.fa-thermometer-half:before { - content: "\F2C9"; -} -.fa-thermometer-1:before, -.fa-thermometer-quarter:before { - content: "\F2CA"; -} -.fa-thermometer-0:before, -.fa-thermometer-empty:before { - content: "\F2CB"; -} -.fa-shower:before { - content: "\F2CC"; -} -.fa-bathtub:before, -.fa-s15:before, -.fa-bath:before { - content: "\F2CD"; -} -.fa-podcast:before { - content: "\F2CE"; -} -.fa-window-maximize:before { - content: "\F2D0"; -} -.fa-window-minimize:before { - content: "\F2D1"; -} -.fa-window-restore:before { - content: "\F2D2"; -} -.fa-times-rectangle:before, -.fa-window-close:before { - content: "\F2D3"; -} -.fa-times-rectangle-o:before, -.fa-window-close-o:before { - content: "\F2D4"; -} -.fa-bandcamp:before { - content: "\F2D5"; -} -.fa-grav:before { - content: "\F2D6"; -} -.fa-etsy:before { - content: "\F2D7"; -} -.fa-imdb:before { - content: "\F2D8"; -} -.fa-ravelry:before { - content: "\F2D9"; -} -.fa-eercast:before { - content: "\F2DA"; -} -.fa-microchip:before { - content: "\F2DB"; -} -.fa-snowflake-o:before { - content: "\F2DC"; -} -.fa-superpowers:before { - content: "\F2DD"; -} -.fa-wpexplorer:before { - content: "\F2DE"; -} -.fa-meetup:before { - content: "\F2E0"; -} -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.sr-only-focusable:active, -.sr-only-focusable:focus { - position: static; - width: auto; - height: auto; - margin: 0; - overflow: visible; - clip: auto; -} -@font-face { - font-family: 'Open Sans'; - src: local('Open Sans Light'), - local('OpenSans-Light'), - url(iodide.master.fonts/opensanslight.woff2) format('woff2'), - url(iodide.master.fonts/opensanslight.woff) format('woff'), - url(iodide.master.fonts/opensanslight.ttf) format('truetype'); - font-weight: 300; - font-style: normal; -} - -@font-face { - font-family: 'Open Sans'; - src: local('Open Sans Light Italic'), - local('OpenSansLight-Italic'), - url(iodide.master.fonts/opensanslightitalic.woff2) format('woff2'), - url(iodide.master.fonts/opensanslightitalic.woff) format('woff'), - url(iodide.master.fonts/opensanslightitalic.ttf) format('truetype'); - font-weight: 300; - font-style: italic; -} - -@font-face { - font-family: 'Open Sans'; - src: local('Open Sans'), - local('OpenSans'), - url(iodide.master.fonts/opensans.woff2) format('woff2'), - url(iodide.master.fonts/opensans.woff) format('woff'), - url(iodide.master.fonts/opensans.ttf) format('truetype'); - font-weight: 400; - font-style: normal; -} - -@font-face { - font-family: 'Open Sans'; - src: local('Open Sans Italic'), - local('OpenSans-Italic'), - url(iodide.master.fonts/opensansitalic.woff2) format('woff2'), - url(iodide.master.fonts/opensansitalic.woff) format('woff'), - url(iodide.master.fonts/opensansitalic.ttf) format('truetype'); - font-weight: 400; - font-style: italic; -} - -@font-face { - font-family: 'Open Sans'; - src: local('Open Sans Semibold'), - local('OpenSans-Semibold'), - url(iodide.master.fonts/opensanssemibold.woff2) format('woff2'), - url(iodide.master.fonts/opensanssemibold.woff) format('woff'), - url(iodide.master.fonts/opensanssemibold.ttf) format('truetype'); - font-weight: 600; - font-style: normal; -} - -@font-face { - font-family: 'Open Sans'; - src: local('Open Sans Semibold Italic'), - local('OpenSans-SemiboldItalic'), - url(iodide.master.fonts/opensanssemibolditalic.woff2) format('woff2'), - url(iodide.master.fonts/opensanssemibolditalic.woff) format('woff'), - url(iodide.master.fonts/opensanssemibolditalic.ttf) format('truetype'); - font-weight: 600; - font-style: italic; -} - -@font-face { - font-family: 'Open Sans'; - src: local('Open Sans Bold'), - local('OpenSans-Bold'), - url(iodide.master.fonts/opensansbold.woff2) format('woff2'), - url(iodide.master.fonts/opensansbold.woff) format('woff'), - url(iodide.master.fonts/opensansbold.ttf) format('truetype'); - font-weight: 700; - font-style: normal; -} - -@font-face { - font-family: 'Open Sans'; - src: local('Open Sans Bold Italic'), - local('OpenSans-BoldItalic'), - url(iodide.master.fonts/opensansbolditalic.woff2) format('woff2'), - url(iodide.master.fonts/opensansbolditalic.woff) format('woff'), - url(iodide.master.fonts/opensansbolditalic.ttf) format('truetype'); - font-weight: 700; - font-style: italic; -} - -@font-face { - font-family: 'Open Sans'; - src: local('Open Sans Extrabold'), - local('OpenSans-Extrabold'), - url(iodide.master.fonts/opensansextrabold.woff2) format('woff2'), - url(iodide.master.fonts/opensansextrabold.woff) format('woff'), - url(iodide.master.fonts/opensansextrabold.ttf) format('truetype'); - font-weight: 800; - font-style: normal; -} - -@font-face { - font-family: 'Open Sans'; - src: local('Open Sans Extrabold Italic'), - local('OpenSans-ExtraboldItalic'), - url(iodide.master.fonts/opensansextrabolditalic.woff2) format('woff2'), - url(iodide.master.fonts/opensansextrabolditalic.woff) format('woff'), - url(iodide.master.fonts/opensansextrabolditalic.ttf) format('truetype'); - font-weight: 800; - font-style: italic; -} -.cm-s-eclipse span.cm-meta { color: #FF1717; } -.cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; } -.cm-s-eclipse span.cm-atom { color: #219; } -.cm-s-eclipse span.cm-number { color: #164; } -.cm-s-eclipse span.cm-def { color: #00f; } -.cm-s-eclipse span.cm-variable { color: black; } -.cm-s-eclipse span.cm-variable-2 { color: #0000C0; } -.cm-s-eclipse span.cm-variable-3, .cm-s-eclipse span.cm-type { color: #0000C0; } -.cm-s-eclipse span.cm-property { color: black; } -.cm-s-eclipse span.cm-operator { color: black; } -.cm-s-eclipse span.cm-comment { color: #3F7F5F; } -.cm-s-eclipse span.cm-string { color: #2A00FF; } -.cm-s-eclipse span.cm-string-2 { color: #f50; } -.cm-s-eclipse span.cm-qualifier { color: #555; } -.cm-s-eclipse span.cm-builtin { color: #30a; } -.cm-s-eclipse span.cm-bracket { color: #cc7; } -.cm-s-eclipse span.cm-tag { color: #170; } -.cm-s-eclipse span.cm-attribute { color: #00c; } -.cm-s-eclipse span.cm-link { color: #219; } -.cm-s-eclipse span.cm-error { color: #f00; } - -.cm-s-eclipse .CodeMirror-activeline-background { background: #e8f2ff; } -.cm-s-eclipse .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; } -/* BASICS */ - -.CodeMirror { - /* Set height, width, borders, and global font properties here */ - font-family: monospace; - height: 300px; - color: black; - direction: ltr; -} - -/* PADDING */ - -.CodeMirror-lines { - padding: 4px 0; /* Vertical padding around content */ -} -.CodeMirror pre { - padding: 0 4px; /* Horizontal padding of content */ -} - -.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { - background-color: white; /* The little square between H and V scrollbars */ -} - -/* GUTTER */ - -.CodeMirror-gutters { - border-right: 1px solid #ddd; - background-color: #f7f7f7; - white-space: nowrap; -} -.CodeMirror-linenumbers {} -.CodeMirror-linenumber { - padding: 0 3px 0 5px; - min-width: 20px; - text-align: right; - color: #999; - white-space: nowrap; -} - -.CodeMirror-guttermarker { color: black; } -.CodeMirror-guttermarker-subtle { color: #999; } - -/* CURSOR */ - -.CodeMirror-cursor { - border-left: 1px solid black; - border-right: none; - width: 0; -} -/* Shown when moving in bi-directional text */ -.CodeMirror div.CodeMirror-secondarycursor { - border-left: 1px solid silver; -} -.cm-fat-cursor .CodeMirror-cursor { - width: auto; - border: 0 !important; - background: #7e7; -} -.cm-fat-cursor div.CodeMirror-cursors { - z-index: 1; -} -.cm-fat-cursor-mark { - background-color: rgba(20, 255, 20, 0.5); - -webkit-animation: blink 1.06s steps(1) infinite; - -moz-animation: blink 1.06s steps(1) infinite; - animation: blink 1.06s steps(1) infinite; -} -.cm-animate-fat-cursor { - width: auto; - border: 0; - -webkit-animation: blink 1.06s steps(1) infinite; - -moz-animation: blink 1.06s steps(1) infinite; - animation: blink 1.06s steps(1) infinite; - background-color: #7e7; -} -@-moz-keyframes blink { - 0% {} - 50% { background-color: transparent; } - 100% {} -} -@-webkit-keyframes blink { - 0% {} - 50% { background-color: transparent; } - 100% {} -} -@keyframes blink { - 0% {} - 50% { background-color: transparent; } - 100% {} -} - -/* Can style cursor different in overwrite (non-insert) mode */ -.CodeMirror-overwrite .CodeMirror-cursor {} - -.cm-tab { display: inline-block; text-decoration: inherit; } - -.CodeMirror-rulers { - position: absolute; - left: 0; right: 0; top: -50px; bottom: -20px; - overflow: hidden; -} -.CodeMirror-ruler { - border-left: 1px solid #ccc; - top: 0; bottom: 0; - position: absolute; -} - -/* DEFAULT THEME */ - -.cm-s-default .cm-header {color: blue;} -.cm-s-default .cm-quote {color: #090;} -.cm-negative {color: #d44;} -.cm-positive {color: #292;} -.cm-header, .cm-strong {font-weight: bold;} -.cm-em {font-style: italic;} -.cm-link {text-decoration: underline;} -.cm-strikethrough {text-decoration: line-through;} - -.cm-s-default .cm-keyword {color: #708;} -.cm-s-default .cm-atom {color: #219;} -.cm-s-default .cm-number {color: #164;} -.cm-s-default .cm-def {color: #00f;} -.cm-s-default .cm-variable, -.cm-s-default .cm-punctuation, -.cm-s-default .cm-property, -.cm-s-default .cm-operator {} -.cm-s-default .cm-variable-2 {color: #05a;} -.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;} -.cm-s-default .cm-comment {color: #a50;} -.cm-s-default .cm-string {color: #a11;} -.cm-s-default .cm-string-2 {color: #f50;} -.cm-s-default .cm-meta {color: #555;} -.cm-s-default .cm-qualifier {color: #555;} -.cm-s-default .cm-builtin {color: #30a;} -.cm-s-default .cm-bracket {color: #997;} -.cm-s-default .cm-tag {color: #170;} -.cm-s-default .cm-attribute {color: #00c;} -.cm-s-default .cm-hr {color: #999;} -.cm-s-default .cm-link {color: #00c;} - -.cm-s-default .cm-error {color: #f00;} -.cm-invalidchar {color: #f00;} - -.CodeMirror-composing { border-bottom: 2px solid; } - -/* Default styles for common addons */ - -div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;} -div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;} -.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); } -.CodeMirror-activeline-background {background: #e8f2ff;} - -/* STOP */ - -/* The rest of this file contains styles related to the mechanics of - the editor. You probably shouldn't touch them. */ - -.CodeMirror { - position: relative; - overflow: hidden; - background: white; -} - -.CodeMirror-scroll { - overflow: scroll !important; /* Things will break if this is overridden */ - /* 30px is the magic margin used to hide the element's real scrollbars */ - /* See overflow: hidden in .CodeMirror */ - margin-bottom: -30px; margin-right: -30px; - padding-bottom: 30px; - height: 100%; - outline: none; /* Prevent dragging from highlighting the element */ - position: relative; -} -.CodeMirror-sizer { - position: relative; - border-right: 30px solid transparent; -} - -/* The fake, visible scrollbars. Used to force redraw during scrolling - before actual scrolling happens, thus preventing shaking and - flickering artifacts. */ -.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { - position: absolute; - z-index: 6; - display: none; -} -.CodeMirror-vscrollbar { - right: 0; top: 0; - overflow-x: hidden; - overflow-y: scroll; -} -.CodeMirror-hscrollbar { - bottom: 0; left: 0; - overflow-y: hidden; - overflow-x: scroll; -} -.CodeMirror-scrollbar-filler { - right: 0; bottom: 0; -} -.CodeMirror-gutter-filler { - left: 0; bottom: 0; -} - -.CodeMirror-gutters { - position: absolute; left: 0; top: 0; - min-height: 100%; - z-index: 3; -} -.CodeMirror-gutter { - white-space: normal; - height: 100%; - display: inline-block; - vertical-align: top; - margin-bottom: -30px; -} -.CodeMirror-gutter-wrapper { - position: absolute; - z-index: 4; - background: none !important; - border: none !important; -} -.CodeMirror-gutter-background { - position: absolute; - top: 0; bottom: 0; - z-index: 4; -} -.CodeMirror-gutter-elt { - position: absolute; - cursor: default; - z-index: 4; -} -.CodeMirror-gutter-wrapper ::selection { background-color: transparent } -.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent } - -.CodeMirror-lines { - cursor: text; - min-height: 1px; /* prevents collapsing before first draw */ -} -.CodeMirror pre { - /* Reset some styles that the rest of the page might have set */ - -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; - border-width: 0; - background: transparent; - font-family: inherit; - font-size: inherit; - margin: 0; - white-space: pre; - word-wrap: normal; - line-height: inherit; - color: inherit; - z-index: 2; - position: relative; - overflow: visible; - -webkit-tap-highlight-color: transparent; - -webkit-font-variant-ligatures: contextual; - font-variant-ligatures: contextual; -} -.CodeMirror-wrap pre { - word-wrap: break-word; - white-space: pre-wrap; - word-break: normal; -} - -.CodeMirror-linebackground { - position: absolute; - left: 0; right: 0; top: 0; bottom: 0; - z-index: 0; -} - -.CodeMirror-linewidget { - position: relative; - z-index: 2; - padding: 0.1px; /* Force widget margins to stay inside of the container */ -} - -.CodeMirror-widget {} - -.CodeMirror-rtl pre { direction: rtl; } - -.CodeMirror-code { - outline: none; -} - -/* Force content-box sizing for the elements where we expect it */ -.CodeMirror-scroll, -.CodeMirror-sizer, -.CodeMirror-gutter, -.CodeMirror-gutters, -.CodeMirror-linenumber { - -moz-box-sizing: content-box; - box-sizing: content-box; -} - -.CodeMirror-measure { - position: absolute; - width: 100%; - height: 0; - overflow: hidden; - visibility: hidden; -} - -.CodeMirror-cursor { - position: absolute; - pointer-events: none; -} -.CodeMirror-measure pre { position: static; } - -div.CodeMirror-cursors { - visibility: hidden; - position: relative; - z-index: 3; -} -div.CodeMirror-dragcursors { - visibility: visible; -} - -.CodeMirror-focused div.CodeMirror-cursors { - visibility: visible; -} - -.CodeMirror-selected { background: #d9d9d9; } -.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; } -.CodeMirror-crosshair { cursor: crosshair; } -.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; } -.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; } - -.cm-searching { - background-color: #ffa; - background-color: rgba(255, 255, 0, .4); -} - -/* Used to force a border model for a node */ -.cm-force-border { padding-right: .1px; } - -@media print { - /* Hide the cursor when printing */ - .CodeMirror div.CodeMirror-cursors { - visibility: hidden; - } -} - -/* See issue #2901 */ -.cm-tab-wrap-hack:after { content: ''; } - -/* Help users use markselection to safely style text background */ -span.CodeMirror-selectedtext { background: none; } -.CodeMirror-hints { - position: absolute; - z-index: 10; - overflow: hidden; - list-style: none; - - margin: 0; - padding: 2px; - - -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2); - -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2); - box-shadow: 2px 3px 5px rgba(0,0,0,.2); - border-radius: 3px; - border: 1px solid silver; - - background: white; - font-size: 90%; - font-family: monospace; - - max-height: 20em; - overflow-y: auto; -} - -.CodeMirror-hint { - margin: 0; - padding: 0 4px; - border-radius: 2px; - white-space: pre; - color: black; - cursor: pointer; -} - -li.CodeMirror-hint-active { - background: #08f; - color: white; -} -.ReactTable{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border:1px solid rgba(0,0,0,0.1);}.ReactTable *{box-sizing:border-box}.ReactTable .rt-table{-webkit-box-flex:1;-ms-flex:auto 1;flex:auto 1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:100%;border-collapse:collapse;overflow:auto}.ReactTable .rt-thead{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.ReactTable .rt-thead.-headerGroups{background:rgba(0,0,0,0.03);border-bottom:1px solid rgba(0,0,0,0.05)}.ReactTable .rt-thead.-filters{border-bottom:1px solid rgba(0,0,0,0.05);}.ReactTable .rt-thead.-filters input,.ReactTable .rt-thead.-filters select{border:1px solid rgba(0,0,0,0.1);background:#fff;padding:5px 7px;font-size:inherit;border-radius:3px;font-weight:normal;outline:none}.ReactTable .rt-thead.-filters .rt-th{border-right:1px solid rgba(0,0,0,0.02)}.ReactTable .rt-thead.-header{box-shadow:0 2px 15px 0 rgba(0,0,0,0.15)}.ReactTable .rt-thead .rt-tr{text-align:center}.ReactTable .rt-thead .rt-th,.ReactTable .rt-thead .rt-td{padding:5px 5px;line-height:normal;position:relative;border-right:1px solid rgba(0,0,0,0.05);transition:box-shadow .3s cubic-bezier(.175,.885,.32,1.275);box-shadow:inset 0 0 0 0 transparent;}.ReactTable .rt-thead .rt-th.-sort-asc,.ReactTable .rt-thead .rt-td.-sort-asc{box-shadow:inset 0 3px 0 0 rgba(0,0,0,0.6)}.ReactTable .rt-thead .rt-th.-sort-desc,.ReactTable .rt-thead .rt-td.-sort-desc{box-shadow:inset 0 -3px 0 0 rgba(0,0,0,0.6)}.ReactTable .rt-thead .rt-th.-cursor-pointer,.ReactTable .rt-thead .rt-td.-cursor-pointer{cursor:pointer}.ReactTable .rt-thead .rt-th:last-child,.ReactTable .rt-thead .rt-td:last-child{border-right:0}.ReactTable .rt-thead .rt-resizable-header{overflow:visible;}.ReactTable .rt-thead .rt-resizable-header:last-child{overflow:hidden}.ReactTable .rt-thead .rt-resizable-header-content{overflow:hidden;text-overflow:ellipsis}.ReactTable .rt-thead .rt-header-pivot{border-right-color:#f7f7f7}.ReactTable .rt-thead .rt-header-pivot:after,.ReactTable .rt-thead .rt-header-pivot:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.ReactTable .rt-thead .rt-header-pivot:after{border-color:rgba(255,255,255,0);border-left-color:#fff;border-width:8px;margin-top:-8px}.ReactTable .rt-thead .rt-header-pivot:before{border-color:rgba(102,102,102,0);border-left-color:#f7f7f7;border-width:10px;margin-top:-10px}.ReactTable .rt-tbody{-webkit-box-flex:99999;-ms-flex:99999 1 auto;flex:99999 1 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:auto;}.ReactTable .rt-tbody .rt-tr-group{border-bottom:solid 1px rgba(0,0,0,0.05);}.ReactTable .rt-tbody .rt-tr-group:last-child{border-bottom:0}.ReactTable .rt-tbody .rt-td{border-right:1px solid rgba(0,0,0,0.02);}.ReactTable .rt-tbody .rt-td:last-child{border-right:0}.ReactTable .rt-tbody .rt-expandable{cursor:pointer}.ReactTable .rt-tr-group{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.ReactTable .rt-tr{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.ReactTable .rt-th,.ReactTable .rt-td{-webkit-box-flex:1;-ms-flex:1 0 0px;flex:1 0 0;white-space:nowrap;text-overflow:ellipsis;padding:7px 5px;overflow:hidden;transition:.3s ease;transition-property:width,min-width,padding,opacity;}.ReactTable .rt-th.-hidden,.ReactTable .rt-td.-hidden{width:0 !important;min-width:0 !important;padding:0 !important;border:0 !important;opacity:0 !important}.ReactTable .rt-expander{display:inline-block;position:relative;margin:0;color:transparent;margin:0 10px;}.ReactTable .rt-expander:after{content:'';position:absolute;width:0;height:0;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-90deg);transform:translate(-50%,-50%) rotate(-90deg);border-left:5.04px solid transparent;border-right:5.04px solid transparent;border-top:7px solid rgba(0,0,0,0.8);transition:all .3s cubic-bezier(.175,.885,.32,1.275);cursor:pointer}.ReactTable .rt-expander.-open:after{-webkit-transform:translate(-50%,-50%) rotate(0);transform:translate(-50%,-50%) rotate(0)}.ReactTable .rt-resizer{display:inline-block;position:absolute;width:36px;top:0;bottom:0;right:-18px;cursor:col-resize;z-index:10}.ReactTable .rt-tfoot{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;box-shadow:0 0 15px 0 rgba(0,0,0,0.15);}.ReactTable .rt-tfoot .rt-td{border-right:1px solid rgba(0,0,0,0.05);}.ReactTable .rt-tfoot .rt-td:last-child{border-right:0}.ReactTable.-striped .rt-tr.-odd{background:rgba(0,0,0,0.03)}.ReactTable.-highlight .rt-tbody .rt-tr:not(.-padRow):hover{background:rgba(0,0,0,0.05)}.ReactTable .-pagination{z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:3px;box-shadow:0 0 15px 0 rgba(0,0,0,0.1);border-top:2px solid rgba(0,0,0,0.1);}.ReactTable .-pagination input,.ReactTable .-pagination select{border:1px solid rgba(0,0,0,0.1);background:#fff;padding:5px 7px;font-size:inherit;border-radius:3px;font-weight:normal;outline:none}.ReactTable .-pagination .-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:100%;height:100%;border:0;border-radius:3px;padding:6px;font-size:1em;color:rgba(0,0,0,0.6);background:rgba(0,0,0,0.1);transition:all .1s ease;cursor:pointer;outline:none;}.ReactTable .-pagination .-btn[disabled]{opacity:.5;cursor:default}.ReactTable .-pagination .-btn:not([disabled]):hover{background:rgba(0,0,0,0.3);color:#fff}.ReactTable .-pagination .-previous,.ReactTable .-pagination .-next{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:center}.ReactTable .-pagination .-center{-webkit-box-flex:1.5;-ms-flex:1.5;flex:1.5;text-align:center;margin-bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ReactTable .-pagination .-pageInfo{display:inline-block;margin:3px 10px;white-space:nowrap}.ReactTable .-pagination .-pageJump{display:inline-block;}.ReactTable .-pagination .-pageJump input{width:70px;text-align:center}.ReactTable .-pagination .-pageSizeOptions{margin:3px 10px}.ReactTable .rt-noData{display:block;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background:rgba(255,255,255,0.8);transition:all .3s ease;z-index:1;pointer-events:none;padding:20px;color:rgba(0,0,0,0.5)}.ReactTable .-loading{display:block;position:absolute;left:0;right:0;top:0;bottom:0;background:rgba(255,255,255,0.8);transition:all .3s ease;z-index:-1;opacity:0;pointer-events:none;}.ReactTable .-loading > div{position:absolute;display:block;text-align:center;width:100%;top:50%;left:0;font-size:15px;color:rgba(0,0,0,0.6);-webkit-transform:translateY(-52%);transform:translateY(-52%);transition:all .3s cubic-bezier(.25,.46,.45,.94)}.ReactTable .-loading.-active{opacity:1;z-index:2;pointer-events:all;}.ReactTable .-loading.-active > div{-webkit-transform:translateY(50%);transform:translateY(50%)}.ReactTable .rt-resizing .rt-th,.ReactTable .rt-resizing .rt-td{transition:none !important;cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@font-face{font-family:KaTeX_AMS;src:url(iodide.master.fonts/KaTeX_AMS-Regular.eot);src:url(iodide.master.fonts/KaTeX_AMS-Regular.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_AMS-Regular.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_AMS-Regular.woff) format('woff'),url(iodide.master.fonts/KaTeX_AMS-Regular.ttf) format('ttf');font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(iodide.master.fonts/KaTeX_Caligraphic-Bold.eot);src:url(iodide.master.fonts/KaTeX_Caligraphic-Bold.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Caligraphic-Bold.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Caligraphic-Bold.woff) format('woff'),url(iodide.master.fonts/KaTeX_Caligraphic-Bold.ttf) format('ttf');font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(iodide.master.fonts/KaTeX_Caligraphic-Regular.eot);src:url(iodide.master.fonts/KaTeX_Caligraphic-Regular.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Caligraphic-Regular.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Caligraphic-Regular.woff) format('woff'),url(iodide.master.fonts/KaTeX_Caligraphic-Regular.ttf) format('ttf');font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(iodide.master.fonts/KaTeX_Fraktur-Bold.eot);src:url(iodide.master.fonts/KaTeX_Fraktur-Bold.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Fraktur-Bold.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Fraktur-Bold.woff) format('woff'),url(iodide.master.fonts/KaTeX_Fraktur-Bold.ttf) format('ttf');font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(iodide.master.fonts/KaTeX_Fraktur-Regular.eot);src:url(iodide.master.fonts/KaTeX_Fraktur-Regular.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Fraktur-Regular.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Fraktur-Regular.woff) format('woff'),url(iodide.master.fonts/KaTeX_Fraktur-Regular.ttf) format('ttf');font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(iodide.master.fonts/KaTeX_Main-Bold.eot);src:url(iodide.master.fonts/KaTeX_Main-Bold.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Main-Bold.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Main-Bold.woff) format('woff'),url(iodide.master.fonts/KaTeX_Main-Bold.ttf) format('ttf');font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(iodide.master.fonts/KaTeX_Main-Italic.eot);src:url(iodide.master.fonts/KaTeX_Main-Italic.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Main-Italic.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Main-Italic.woff) format('woff'),url(iodide.master.fonts/KaTeX_Main-Italic.ttf) format('ttf');font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(iodide.master.fonts/KaTeX_Main-Regular.eot);src:url(iodide.master.fonts/KaTeX_Main-Regular.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Main-Regular.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Main-Regular.woff) format('woff'),url(iodide.master.fonts/KaTeX_Main-Regular.ttf) format('ttf');font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(iodide.master.fonts/KaTeX_Math-Italic.eot);src:url(iodide.master.fonts/KaTeX_Math-Italic.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Math-Italic.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Math-Italic.woff) format('woff'),url(iodide.master.fonts/KaTeX_Math-Italic.ttf) format('ttf');font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(iodide.master.fonts/KaTeX_SansSerif-Regular.eot);src:url(iodide.master.fonts/KaTeX_SansSerif-Regular.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_SansSerif-Regular.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_SansSerif-Regular.woff) format('woff'),url(iodide.master.fonts/KaTeX_SansSerif-Regular.ttf) format('ttf');font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(iodide.master.fonts/KaTeX_Script-Regular.eot);src:url(iodide.master.fonts/KaTeX_Script-Regular.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Script-Regular.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Script-Regular.woff) format('woff'),url(iodide.master.fonts/KaTeX_Script-Regular.ttf) format('ttf');font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(iodide.master.fonts/KaTeX_Size1-Regular.eot);src:url(iodide.master.fonts/KaTeX_Size1-Regular.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Size1-Regular.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Size1-Regular.woff) format('woff'),url(iodide.master.fonts/KaTeX_Size1-Regular.ttf) format('ttf');font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(iodide.master.fonts/KaTeX_Size2-Regular.eot);src:url(iodide.master.fonts/KaTeX_Size2-Regular.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Size2-Regular.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Size2-Regular.woff) format('woff'),url(iodide.master.fonts/KaTeX_Size2-Regular.ttf) format('ttf');font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(iodide.master.fonts/KaTeX_Size3-Regular.eot);src:url(iodide.master.fonts/KaTeX_Size3-Regular.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Size3-Regular.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Size3-Regular.woff) format('woff'),url(iodide.master.fonts/KaTeX_Size3-Regular.ttf) format('ttf');font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(iodide.master.fonts/KaTeX_Size4-Regular.eot);src:url(iodide.master.fonts/KaTeX_Size4-Regular.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Size4-Regular.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Size4-Regular.woff) format('woff'),url(iodide.master.fonts/KaTeX_Size4-Regular.ttf) format('ttf');font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(iodide.master.fonts/KaTeX_Typewriter-Regular.eot);src:url(iodide.master.fonts/KaTeX_Typewriter-Regular.eot#iefix) format('embedded-opentype'),url(iodide.master.fonts/KaTeX_Typewriter-Regular.woff2) format('woff2'),url(iodide.master.fonts/KaTeX_Typewriter-Regular.woff) format('woff'),url(iodide.master.fonts/KaTeX_Typewriter-Regular.ttf) format('ttf');font-weight:400;font-style:normal}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:inline-block;text-align:initial}.katex{font:400 1.21em KaTeX_Main;line-height:1.2;white-space:nowrap;text-indent:0}.katex .katex-html{display:inline-block}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .base,.katex .strut{display:inline-block}.katex .mathit{font-family:KaTeX_Math;font-style:italic}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .amsrm,.katex .mathbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr{font-family:KaTeX_Script}.katex .mathsf{font-family:KaTeX_SansSerif}.katex .mainit{font-family:KaTeX_Main;font-style:italic}.katex .textstyle>.mord+.mop{margin-left:.16667em}.katex .textstyle>.mord+.mbin{margin-left:.22222em}.katex .textstyle>.mord+.mrel{margin-left:.27778em}.katex .textstyle>.mop+.mop,.katex .textstyle>.mop+.mord,.katex .textstyle>.mord+.minner{margin-left:.16667em}.katex .textstyle>.mop+.mrel{margin-left:.27778em}.katex .textstyle>.mop+.minner{margin-left:.16667em}.katex .textstyle>.mbin+.minner,.katex .textstyle>.mbin+.mop,.katex .textstyle>.mbin+.mopen,.katex .textstyle>.mbin+.mord{margin-left:.22222em}.katex .textstyle>.mrel+.minner,.katex .textstyle>.mrel+.mop,.katex .textstyle>.mrel+.mopen,.katex .textstyle>.mrel+.mord{margin-left:.27778em}.katex .textstyle>.mclose+.mop{margin-left:.16667em}.katex .textstyle>.mclose+.mbin{margin-left:.22222em}.katex .textstyle>.mclose+.mrel{margin-left:.27778em}.katex .textstyle>.mclose+.minner,.katex .textstyle>.minner+.mop,.katex .textstyle>.minner+.mord,.katex .textstyle>.mpunct+.mclose,.katex .textstyle>.mpunct+.minner,.katex .textstyle>.mpunct+.mop,.katex .textstyle>.mpunct+.mopen,.katex .textstyle>.mpunct+.mord,.katex .textstyle>.mpunct+.mpunct,.katex .textstyle>.mpunct+.mrel{margin-left:.16667em}.katex .textstyle>.minner+.mbin{margin-left:.22222em}.katex .textstyle>.minner+.mrel{margin-left:.27778em}.katex .mclose+.mop,.katex .minner+.mop,.katex .mop+.mop,.katex .mop+.mord,.katex .mord+.mop,.katex .textstyle>.minner+.minner,.katex .textstyle>.minner+.mopen,.katex .textstyle>.minner+.mpunct{margin-left:.16667em}.katex .reset-textstyle.textstyle{font-size:1em}.katex .reset-textstyle.scriptstyle{font-size:.7em}.katex .reset-textstyle.scriptscriptstyle{font-size:.5em}.katex .reset-scriptstyle.textstyle{font-size:1.42857em}.katex .reset-scriptstyle.scriptstyle{font-size:1em}.katex .reset-scriptstyle.scriptscriptstyle{font-size:.71429em}.katex .reset-scriptscriptstyle.textstyle{font-size:2em}.katex .reset-scriptscriptstyle.scriptstyle{font-size:1.4em}.katex .reset-scriptscriptstyle.scriptscriptstyle{font-size:1em}.katex .style-wrap{position:relative}.katex .vlist{display:inline-block}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist .baseline-fix{display:inline-table;table-layout:fixed}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{width:100%}.katex .mfrac .frac-line:before{border-bottom-style:solid;border-bottom-width:1px;content:"";display:block}.katex .mfrac .frac-line:after{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block;margin-top:-1px}.katex .mspace{display:inline-block}.katex .mspace.negativethinspace{margin-left:-.16667em}.katex .mspace.thinspace{width:.16667em}.katex .mspace.mediumspace{width:.22222em}.katex .mspace.thickspace{width:.27778em}.katex .mspace.enspace{width:.5em}.katex .mspace.quad{width:1em}.katex .mspace.qquad{width:2em}.katex .llap,.katex .rlap{width:0;position:relative}.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .rlap>.inner{left:0}.katex .katex-logo .a{font-size:.75em;margin-left:-.32em;position:relative;top:-.2em}.katex .katex-logo .t{margin-left:-.23em}.katex .katex-logo .e{margin-left:-.1667em;position:relative;top:.2155em}.katex .katex-logo .x{margin-left:-.125em}.katex .rule{display:inline-block;border:0 solid;position:relative}.katex .overline .overline-line,.katex .underline .underline-line{width:100%}.katex .overline .overline-line:before,.katex .underline .underline-line:before{border-bottom-style:solid;border-bottom-width:1px;content:"";display:block}.katex .overline .overline-line:after,.katex .underline .underline-line:after{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block;margin-top:-1px}.katex .sqrt>.sqrt-sign{position:relative}.katex .sqrt .sqrt-line{width:100%}.katex .sqrt .sqrt-line:before{border-bottom-style:solid;border-bottom-width:1px;content:"";display:block}.katex .sqrt .sqrt-line:after{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block;margin-top:-1px}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer,.katex .sizing{display:inline-block}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:2em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:3.46em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:4.14em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.98em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.47142857em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.95714286em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.55714286em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.875em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.125em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.25em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.5em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.8em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.1625em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.5875em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:3.1125em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.77777778em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.88888889em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.6em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.92222222em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.3em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.76666667em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.7em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.8em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.9em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.2em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.44em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.73em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:2.07em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.49em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.58333333em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.66666667em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.75em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.83333333em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44166667em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.725em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.075em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.48611111em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.55555556em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.625em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.69444444em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.20138889em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.4375em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72916667em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.28901734em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.40462428em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.46242775em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.52023121em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.57803468em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69364162em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83236994em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.19653179em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.43930636em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.24154589em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.33816425em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.38647343em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.43478261em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.48309179em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.57971014em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69565217em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83574879em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20289855em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.20080321em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2811245em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.32128514em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.36144578em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.40160643em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48192771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57831325em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69477912em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8313253em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist>span,.katex .op-limits>.vlist>span{text-align:center}.katex .accent .accent-body>span{width:0}.katex .accent .accent-body.accent-vec>span{position:relative;left:.326em}.katex .mtable .vertical-separator{display:inline-block;margin:0 -.025em;border-right:.05em solid #000}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist{text-align:center}.katex .mtable .col-align-l>.vlist{text-align:left}.katex .mtable .col-align-r>.vlist{text-align:right}html, body { - font-family: 'Open Sans', sans-serif; - height: 100%; - margin: 0; - padding: 0; - font-size: 14px; - line-height: 1.42857143; - color: #333; - background-color: #fff; - overflow: hidden; - position: relative; -} - -div#page { - height: 100%; - overflow: hidden; -} - -div#notebook-container { - height: 100%; - width: 100%; - display: flex; - flex-direction: column; -} - -div#notebook-container.presentation-mode { - display: block; - overflow-y: auto; -} - -div#cells.editor { - position: fixed; - top: 50px; /*move down by .notebook-toolbar-container height*/ - left: 0px; - box-sizing: border-box; - height: calc(100% - 50px); /*subtract off .notebook-toolbar-container height*/ - width: 100%; - overflow-y: auto; - padding-top: 20px; - padding-left: 40px; - padding-right: 40px; - padding-bottom: 60px; -} - -div#cells.presentation { - position: inherit; - height: inherit; -} - -/************************************************/ -/* cell output styles */ - -.rep-container { - overflow-x: auto; -} - -.array-rep { - overflow-x: auto; -} - -.data-set-info { - color: #888; - font-style: italic; - font-size: 12px; - padding-top: 4px; - padding-bottom: 4px; -} - -div.error-output { -background: #fff1f4; -padding: 5px; -color: #a41c1c; -overflow-x: auto; -} - -div.promise-handler-state { - display:flex; - font-size:12px; - padding: 5px; - width: 180px; - background-color:#f9f9f9; - border: 1px solid #f1f1f1; - margin-top:2px; -} - -div.promise-handler-label { - width: 80px; - padding-left:5px; - font-weight:900; - text-transform:uppercase; -} - -div.promise-handler-status { - width:100px; - padding-left:5px; - text-align:center; - font-style:italic; - color: rgb(40,40,40) -} - -div.promise-handler-value { - margin-top:6px; -} - -.undefined-rep, .null-rep { - display: inline-block; -} - -/************************************************/ -/* header bar styles */ - -.notebook-toolbar-container { - background-color: black; - height: 50px -} - -.notebook-toolbar { - height:50px; - display: flex; - position: relative; - min-height: 56px; - align-items: center; - min-height:50px !important; -} - -div.editor-mode-controls { - width: 300px; -} - -div.view-controls { - width: 375px; - display:flex; - align-items:center; -} - -div.title-field { - width: calc( 100% - 260px - 300px ); -} - -div.title-field-contents { - display: flex; - width: 100%; -} - -.last-saved-text { - font-size: 11px; - color: lightgray; - font-style: italic; - width: 125px; - text-align: right; -} - -@media (max-width:1100px) { - - .last-saved-text { - display:none !important; - } - - div.view-controls { - width:200px; - } - - div.title-field { - width: calc( 100% - 260px - 200px) - } -} - -div.display-title { - color: white; - width: 100%; - text-align: center; -} - -div.display-title span { - padding-left: 15px; - padding-right: 15px; -} - -div.display-title span:after { - content: '\25BC'; - color: red; - padding-left: 5px -} - -input.page-title { - font-family: 'Open Sans'; - font-size: 14px; - border: none; - outline: none; - width:100%; - margin: auto; - text-align: center; - color: white; - background-color: black; -} - -input.page-title:focus { - font-size: 20px -} - -input.page-title.unrendered-title { - color: lightgray; -} - -h1.page-title span { - font-weight: 300; - font-size: 16px; -} - -div.notebook-actions { - display: flex; - justify-content: space-between; - padding: 3px -} - -div.cell-controls { - display: flex; - padding: 3px; - background-color: #fff; - justify-content: space-between -} - -div.page-mode { - margin-left: 10px; - color: #999; - font-size: 12px; - padding: 2px; - width: 150px; - display: flex -} - - - -/************************************************/ -/* et cetera styles */ - -div.iodide-tooltip { - font-size: 0.900rem; -} - -.katex-html { - display: none; -} - -.dependency-output { - padding-top: 10px; -} - -.dependency-container { - margin-bottom: 6px; -} - -.dependency-src { - font-size:13px; - margin: 3px 10px 3px 8px; - -} - -.dependency-src a { - color: black; - font-weight:normal -} - -.dependency-src a:hover { - text-decoration: underline -} -.dependency-status-explanation { - margin-left: 35px; - font-size: 11px; - color: red; - margin-top: -5px; -} - -.dependency-status-explanation:before { -} - -code { - padding: 0.2em 0.4em; - margin: 0; - background-color: rgba(27, 31, 35, 0.05); - border-radius: 3px; -} -.side-pane { - width:auto !important; - top: 50px !important; - border: none !important; - border-left: 2px solid lightgray !important; -} - -.pane-header { - position: sticky; - top: 0; - z-index: 10; - background: #fff; - padding-top: 1px; -} - -.pane-title { - margin: 5px; - margin-right: 0px; - display: flex; - justify-content: space-between; -} - -.pane-title h1 { - margin-top: 10px; - margin-left: 10px; -} - -.pane-title .menu-button { - width: 24px; - height: 24px; - padding-bottom:0px -} - -.pane-title .menu-button:hover { - outline: none; -} - -div.history-cells { - padding-left: 20px; - padding-right: 20px; -} - -div.history-cell { - width: inherit -} - -div.history-cells .CodeMirror { - height: auto; -} - -div.history-cells div.cell-container { - padding-right:0px; -} - -pre.history-item-code { - overflow: scroll; - padding:3px; -} - - - -div.history-content { - outline: 1px solid #f1f1f1; - width: calc(100% - 1px) -} - -div.history-date { - padding-left: 33px; - margin-top: 8px; - margin-bottom: 8px; - font-size: 12px; - color: gray; -} - -div.no-history { - font-size: 20px; - font-weight: bold; - color: lightgray; - margin-top: 60px; - margin-left: 30px; -} - -div.side-pane { - z-index: 200; - position: fixed; - right: 0; - top: 40px; - border: 2px solid gray; - border-right: none; - width: 75%; - overflow: auto; - height: 100%; - background-color: rgba(255, 255, 255); -} - -i.close-side-pane:hover { - outline: 1px solid lightgray; -} - -div.frozen-variables { - display: grid; - grid-template-columns: minmax(100px, min-content) 100px; - grid-column-gap: 0px; -} - -div.frozen-variable-name { - border: 1px solid #f1f1f1; - background: #f9f9f9; - font-family: monospace; - padding-left:5px; - padding-right:20px; - overflow-wrap: break-word; - max-width: calc(100% - 25px); -} - -div.frozen-variable-value { - border: 1px solid #f1f1f1; - background: #f9f9f9; - font-family: monospace; - color:gray; - justify-self: end; - white-space: pre; - padding-left:5px; - padding-right:5px; - width: 100%; -} - -div.declared-variables-list { -padding: 15px; -} - -div.declared-variable { - padding-bottom: 15px; -} - -div.declared-variable-name { - font-size: 14px; - font-family: monospace; - background: #f9f9f9; - border: 1px solid #f1f1f1; - padding: 1px 10px; - color: #000; -} - -div.declared-variable-value { - padding-left: 20px; -} - -div.app-info-message { - padding-left: 20px; - padding-right: 10px; - padding-top: 20px; -} - -div.app-message-when { - font-style:italic; - color:gray; - font-size:12px; -} -.medium-menu { - display: flex !important; - justify-content: space-between; - flex-flow: row wrap; - max-height:32px !important; -} - -.iodide-menu-item { - max-height:32px !important; - line-height:32px !important; - padding-top: 5px !important; - padding-bottom: 5px !important; -} - -.iodide-menu-divider { - margin-top: 6px !important; - margin-bottom: 6px !important; -} - -.secondary-menu-item { - text-align:right; - padding:0px !important; - padding-left:16px !important; -} - -.medium-menu div div { - display: flex !important; - float: none !important; - justify-content: space-between; - flex-flow: row wrap; -} - -.medium-menu div div div:first-child { - order: 1; - width: 20px; - justify-content: flex-end; - font-size: 12px; - - display: block; -} - -.menu-button { - color: #fafafa; - width: 40px !important; - height:40px !important; -} - -.menu-button:hover { - outline: 1px solid #fafafa -} - -.view-mode-toggle-from-presentation { - position: fixed; - right: 20px; - top: 10px; - z-index:100; -} - -.user-avatar { - height: 24px; - border-radius: 50%; -} -/* cell and cell container styles*/ - -div.cell-container { - padding-top: 5px; - padding-bottom: 5px; - padding-right: 5px; - padding-left: 5px; - margin-top: 15px; - margin-bottom: 15px; - outline: #f4f4f4 1px solid; - width: calc(100%); - /* put the .cell-menu-container and .cell-row-container in a row */ - display: flex; - flex-direction: row; -} - -/* These may need to be integrated into the presentation mode style sheets -but I don't see why we would have to do this immediately. -*/ - -div#cells.editor div.raw-dom-element { - overflow-x: scroll -} - -div#cells.presentation div.cell-container { - margin: 0 auto; - outline: none; - padding: 0px; -} - -div#cells.presentation .collapse-button { - display: none; - height: 0px -} - -div#cells.presentation div.cell-row.HIDDEN { - display: none; -} - -div#cells.presentation div.cell-menu-container { - display: none; - height: 0px; - width: 0px !important; -} - -div#cells.presentation div.cell-row.input { - padding:0px; -} - -.cell-menu-container { - width: 76px; - font-size:12px; - flex-shrink: 0; - flex-grow: 0; -} - -.cell-type-label { - text-align: right; - color: hsl(275, 12%, 75%); - cursor: pointer; - height: 18px; - border: 1px solid rgba(0,0,0,0); - display: flex; - align-items: center; - justify-content: flex-end; -} -.cell-type-label:hover { - background: #fbfbfb; - border: 1px solid #ddd; - color: hsl(275, 4%, 40%); -} - -.cell-status-indicators { - text-align: right; - padding-right: 6px; - color: hsla(275, 4%, 51%, 1); -} - -.warning-pill { - background-color: hsla(53, 80%, 86%, 1); - color: hsl(53, 35%, 48%); - height: 18px; - padding: 0 6px; - border: 1px solid hsla(53, 94%, 83%, 1); - border-radius: 3px; - display: inline-block; -} - -.cell-status-icons { - text-align: right; - padding: 0px 6px 0px 0px; -} - -.cell-status-icons svg { - fill: hsl(275, 12%, 75%); -} - - -div.cell-row-container { - width: calc(100% - 76px); /* 100% minus cell-menu-contatiner width*/ - flex-shrink: 0; - flex-grow: 0; -} - -div.cell-row { - display: flex; - padding: 1px; -} - -div#cells.editor div.cell-container.markdown div.cell-row.output { - overflow-x:hidden; -} - -div.collapse-button { - margin-right: 5px; - margin-left: 3px; - width: 18px; - flex-shrink: 0; - flex-grow: 0; -} - -div.collapse-button:hover { - background: #fbfbfb; - outline: 1px solid #ddd; - cursor: pointer; -} - -div.HIDDEN div.collapse-button-tooltip-wrapper { - width: calc(100% - 3px); /* 100% minus a .collapse-button width margin-right*/ - -} - -div.HIDDEN div.collapse-button { - width: calc(100% - 3px); - /* when collapsed, make the button visible*/ - background: #fdfdfd; - outline: 1px solid #ddd; - cursor: pointer; - height: 20px; -} - -div.main-component { - width: calc(100% - 25px); /* 100% minus .collapse-button width (including margins) */ - flex-shrink: 0; - flex-grow: 0; -} - -div.input div.main-component { - outline: 1px solid #f1f1f1; -} - -div.markdown div.input div.main-component { - outline: none; -} - - - -div.HIDDEN div.main-component { - height: 18px; - flex-shrink: 1; - flex-basis: 0px; - flex-grow: 0; - overflow: hidden; - outline: none; -} - - -div.selected-cell.editing-cell div.input div.main-component { - outline: 1px solid #bbb; -} -div.selected-cell.editing-cell { - outline: 1px solid #bbb; -} - -div.selected-cell { - outline: 2px solid #ccc; -} - -div.CodeMirror { - background: #f9f9f9; -} - -div.CodeMirror-gutters { - background: #fff; -} - -div.VISIBLE div.main-component div.CodeMirror { - height: auto -} - -div.SCROLL div.main-component div.CodeMirror { - height: auto; -} - -div.SCROLL div.main-component div.CodeMirror div.CodeMirror-scroll { - max-height: 300px; -} - -div.SCROLL.output .main-component { - max-height: 300px; - outline: 1px solid #ddd; - overflow-y: scroll; -} - - - -/* FIX ME i think this style is never used, double check it*/ -div.hidden-cell { - display: none; -} - -.cm-s-eclipse .CodeMirror-matchingbracket { - outline: 1px dotted #000; -} - - -.dependency-row { - display: flex; - align-items: center; -} - -.dependency-row a { - color: #337ab7; - text-decoration: none; - cursor: pointer; -} - -.dependency-row a:hover, -.dependency-row a:focus { - color: #23527c; - text-decoration: underline; -}/* - DEFAULT PRESENTATION - -loosely based on https://github.com/sindresorhus/github-markdown-css - -The default presentation stylesheet is about as vanilla as you can get for a report. - -We define the maximum width for all block-level elements to be 800px by default, -and allow some methods of breaking that convention when necessary (for instance, -when a user has a full-screen graphic they want to display). - -*/ - -.user-markdown { - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; - color: #24292e; - font-family: -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 16px; - line-height: 1.62; - word-wrap: break-word; -} - -/* this resets the div.cell-row-container to not have a margin for collapse + cell label buttons, -which is an additiona 50px. -*/ -div#cells.presentation div.cell-row-container { - width: 100%; -} - -/* in the editor view, there is 24px less room for the collapse-button. Let's get it back. */ -div#cells.presentation div.main-component { - width: 100%; -} - - -/* which side-effects are shown in the report view*/ -div#cells.presentation .side-effect-target { - max-width:800px; - margin: auto; -} - -div#cells.presentation div.side-effect-target div.hide-side-effect { - display: none; -} - - /* div#cells.presentation { - padding-top:30px; -} */ - -#cells.presentation .cell-container:first-child { - padding-top:30px; -} - - #cells.presentation .cell-container:last-child { - margin-bottom:60px; -} - -#cells.presentation .user-markdown { - padding-bottom: 10px; -} - - - -/* establish block-level elements to be a certain width. This -lets us create full width divs using css if necessary, while still -retaining the narrower column view for readability and flow. -*/ - -.user-markdown p, -.user-markdown h1, -.user-markdown h2, -.user-markdown h3, -.user-markdown h4, -.user-markdown h5, -.user-markdown h6, -.user-markdown ol, -.user-markdown ul, -.user-markdown pre, -.user-markdown address, -.user-markdown blockquote, -.user-markdown dl, -.user-markdown div, -.user-markdown fieldset, -.user-markdown form, -.user-markdown hr, -.user-markdown noscript, -.user-markdown table { - max-width:800px; - margin: auto; -} - -div#cells.editor .user-markdown p, -div#cells.editor .user-markdown h1, -div#cells.editor .user-markdown h2, -div#cells.editor .user-markdown h3, -div#cells.editor .user-markdown h4, -div#cells.editor .user-markdown h5, -div#cells.editor .user-markdown h6, -div#cells.editor .user-markdown ol, -div#cells.editor .user-markdown ul, -div#cells.editor .user-markdown pre, -div#cells.editor .user-markdown address, -div#cells.editor .user-markdown blockquote, -div#cells.editor .user-markdown dl, -div#cells.editor .user-markdown div, -div#cells.editor .user-markdown fieldset, -div#cells.editor .user-markdown form, -div#cells.editor .user-markdown hr, -div#cells.editor .user-markdown noscript, -div#cells.editor .user-markdown table { - margin-left: 0px; /* aligned with the */ -} - - -/* establish block-level elements to be a certain width */ - -@media (max-width:800px) { - .user-markdown p, - .user-markdown h1, - .user-markdown h2, - .user-markdown h3, - .user-markdown h4, - .user-markdown h5, - .user-markdown h6, - .user-markdown ol, - .user-markdown ul, - .user-markdown pre, - .user-markdown address, - .user-markdown blockquote, - .user-markdown dl, - .user-markdown div, - .user-markdown fieldset, - .user-markdown form, - .user-markdown hr, - .user-markdown noscript, - .user-markdown table { - max-width: calc(100% - 50px); - } -} - - -.user-markdown a { - background-color: transparent; -} - -.user-markdown a:active, -.user-markdown a:hover { - outline-width: 0; -} - -.user-markdown strong { - font-weight: inherit; -} - -.user-markdown strong { - font-weight: bolder; -} - -.user-markdown img { - border-style: none; -} - -.user-markdown code, -.user-markdown kbd, -.user-markdown pre { - font-family: monospace, monospace; - font-size: 1em; -} - -.user-markdown hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} - -.user-markdown input { - font: inherit; - margin: 0; -} - -.user-markdown input { - overflow: visible; -} - -.user-markdown [type="checkbox"] { - box-sizing: border-box; - padding: 0; -} - -.user-markdown * { - box-sizing: border-box; -} - -.user-markdown input { - font-family: inherit; - font-size: inherit; - line-height: inherit; -} - -.user-markdown a { - color: #0366d6; - text-decoration: none; -} - -.user-markdown a:hover { - text-decoration: underline; -} - -.user-markdown strong { - font-weight: 600; -} - -.user-markdown hr { - height: 0; - margin-top:15px; - margin-bottom:15px; - overflow: hidden; - background: transparent; - border: 0; - border-bottom: 1px solid #dfe2e5; -} - -.user-markdown hr::before { - display: table; - content: ""; -} - -.user-markdown hr::after { - display: table; - clear: both; - content: ""; -} - -.user-markdown table { - border-spacing: 0; - border-collapse: collapse; -} - -.user-markdown td, -.user-markdown th { - padding: 0; -} - -.user-markdown h1, -.user-markdown h2, -.user-markdown h3, -.user-markdown h4, -.user-markdown h5, -.user-markdown h6 { - margin-top: 0; - margin-bottom: 0; -} - -.user-markdown h1 { - font-size: 36px; - font-weight: 300; - margin-top:20px; -} - -.user-markdown h2 { - font-size: 24px; - font-weight: 900; -} - -.user-markdown h3 { - font-size: 20px; - font-weight: 600; -} - -.user-markdown h4 { - font-size: 16px; - font-weight: 600; -} - -.user-markdown h5 { - font-size: 14px; - font-weight: 600; -} - -.user-markdown h6 { - font-size: 12px; - font-weight: 600; -} - -.user-markdown p { - margin-top: 0; - margin-bottom: 10px; -} - -.user-markdown div+p { - margin-top:10px; /* add a bit of padding if there is a div in this markdown. */ -} - -.user-markdown - -.user-markdown ul, -.user-markdown ol { - padding-left: 0; - margin-top: 0; - margin-bottom: 0; -} - -.user-markdown ol ol, -.user-markdown ul ol { - list-style-type: lower-roman; -} - -.user-markdown ul ul ol, -.user-markdown ul ol ol, -.user-markdown ol ul ol, -.user-markdown ol ol ol { - list-style-type: lower-alpha; -} - -.user-markdown dd { - margin-left: 0; -} - -.user-markdown code { - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; - font-size: 12px; -} - -.user-markdown pre { - margin-top: 0; - margin-bottom: 0; - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; - font-size: 12px; -} - -.user-markdown::before { - display: table; - content: ""; -} - -.user-markdown::after { - display: table; - clear: both; - content: ""; -} - -.user-markdown>*:first-child { - margin-top: 0 !important; -} - -.user-markdown>*:last-child { - margin-bottom: 0 !important; -} - -.user-markdown a:not([href]) { - color: inherit; - text-decoration: none; -} - -.user-markdown .anchor { - float: left; - padding-right: 4px; - margin-left: -20px; - line-height: 1; -} - -.user-markdown .anchor:focus { - outline: none; -} - -.user-markdown p, -.user-markdown blockquote, -.user-markdown ul, -.user-markdown ol, -.user-markdown dl, -.user-markdown table, -.user-markdown pre { - margin-top: 0; - margin-bottom: 16px; -} - -.user-markdown hr { - height: 0.1em; - padding: 0; - background-color: #e1e4e8; - border: 0; -} - -.user-markdown blockquote { - padding: 0 1em; - color: #6a737d; - border-left: 0.15em solid #dfe2e5; -} - -.user-markdown blockquote>:first-child { - margin-top: 0; -} - -.user-markdown blockquote>:last-child { - margin-bottom: 0; -} - -.user-markdown kbd { - display: inline-block; - padding: 3px 5px; - font-size: 11px; - line-height: 10px; - color: #444d56; - vertical-align: middle; - background-color: #fafbfc; - border: solid 1px #c6cbd1; - border-bottom-color: #959da5; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #959da5; -} - -.user-markdown h1, -.user-markdown h2, -.user-markdown h3, -.user-markdown h4, -.user-markdown h5, -.user-markdown h6 { - margin-top: 24px; - margin-bottom: 16px; - font-weight: 600; - line-height: 1.25; -} - -.user-markdown h1:hover .anchor, -.user-markdown h2:hover .anchor, -.user-markdown h3:hover .anchor, -.user-markdown h4:hover .anchor, -.user-markdown h5:hover .anchor, -.user-markdown h6:hover .anchor { - text-decoration: none; -} - -.user-markdown h1 { - padding-bottom: 0.4em; - font-size: 2.3em; - font-weight: 300; -} - -.user-markdown h2 { - padding-bottom: 0.3em; - font-size: 1.5em; - font-weight: 300; - -} - -.user-markdown h3 { - font-size: 1.25em; -} - -.user-markdown h4 { - font-size: 1em; -} - -.user-markdown h5 { - font-size: 0.875em; -} - -.user-markdown h6 { - font-size: 0.85em; - color: #6a737d; -} - -.user-markdown ul, -.user-markdown ol { - padding-left: 2em; -} - -.user-markdown ul ul, -.user-markdown ul ol, -.user-markdown ol ol, -.user-markdown ol ul { - margin-top: 0; - margin-bottom: 0; -} - -.user-markdown li { - word-wrap: break-all; -} - -.user-markdown li>p { - margin-top: 16px; -} - -.user-markdown li+li { - margin-top: 0.25em; -} - -.user-markdown dl { - padding: 0; -} - -.user-markdown dl dt { - padding: 0; - margin-top: 16px; - font-size: 1em; - font-style: italic; - font-weight: 600; -} - -.user-markdown dl dd { - padding: 0 16px; - margin-bottom: 16px; -} - -.user-markdown table { - display: block; - width: 100%; - overflow: auto; -} - -.user-markdown table th { - font-weight: 600; -} - -.user-markdown table th, -.user-markdown table td { - padding: 6px 13px; - border: 1px solid #dfe2e5; -} - -.user-markdown table tr { - background-color: #fff; - border-top: 1px solid #c6cbd1; -} - -.user-markdown table tr:nth-child(2n) { - background-color: #f6f8fa; -} - -.user-markdown img { - max-width: 100%; - box-sizing: content-box; - background-color: #fff; -} - -.user-markdown img[align=right] { - padding-left: 20px; -} - -.user-markdown img[align=left] { - padding-right: 20px; -} - -.user-markdown code { - padding: 0.2em 0.4em; - margin: 0; - font-size: 85%; - background-color: rgba(27,31,35,0.05); - border-radius: 3px; -} - -.user-markdown pre { - word-wrap: normal; -} - -.user-markdown pre>code { - padding: 0; - margin: 0; - font-size: 100%; - word-break: normal; - white-space: pre; - background: transparent; - border: 0; -} - -.user-markdown .highlight { - margin-bottom: 16px; -} - -.user-markdown .highlight pre { - margin-bottom: 0; - word-break: normal; -} - -.user-markdown .highlight pre, -.user-markdown pre { - padding: 16px; - overflow: auto; - font-size: 85%; - line-height: 1.45; - background-color: #f6f8fa; - border-radius: 3px; -} - -.user-markdown pre code { - display: inline; - max-width: auto; - padding: 0; - margin: 0; - overflow: visible; - line-height: inherit; - word-wrap: normal; - background-color: transparent; - border: 0; -} - -.user-markdown .full-commit .btn-outline:not(:disabled):hover { - color: #005cc5; - border-color: #005cc5; -} - -.user-markdown kbd { - display: inline-block; - padding: 3px 5px; - font: 11px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; - line-height: 10px; - color: #444d56; - vertical-align: middle; - background-color: #fafbfc; - border: solid 1px #d1d5da; - border-bottom-color: #c6cbd1; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #c6cbd1; -} - -.user-markdown :checked+.radio-label { - position: relative; - z-index: 1; - border-color: #0366d6; -} - -.user-markdown .task-list-item { - list-style-type: none; -} - -.user-markdown .task-list-item+.task-list-item { - margin-top: 3px; -} - -.user-markdown .task-list-item input { - margin: 0 0.2em 0.25em -1.6em; - vertical-align: middle; -} - -.user-markdown hr { - border-bottom-color: #eee; -} - -/*# sourceMappingURL=iodide.master.css.map*/ \ No newline at end of file diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide_master.js.js b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide_master.js.js deleted file mode 100644 index 0296077a9fe7be893dff63dc0b396101875f1e61..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide_master.js.js +++ /dev/null @@ -1,121 +0,0 @@ -!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}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get: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=330)}([function(e,t,n){"use strict";(function(t){"production"===t.env.NODE_ENV?e.exports=n(331):e.exports=n(332)}).call(t,n(2))},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(334)(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},!0)}else e.exports=n(335)()}).call(t,n(2))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,u=[],c=!1,f=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++f1)for(var n=1;n=0||(i[n]=e[n]);if(r){var l=r(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var r=n(383);function o(){return e.exports=o=r||function(e){for(var t=1;t=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 i(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(277);var f=/[&<>"]/,d=/[&<>"]/g,p={"&":"&","<":"<",">":">",'"':"""};function h(e){return p[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var v=n(185);t.lib={},t.lib.mdurl=n(278),t.lib.ucmicro=n(590),t.assign=function(e){return Array.prototype.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(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,function(e,t,n){return t||function(e,t){var n=0;return o(c,t)?c[t]:35===t.charCodeAt(0)&&u.test(t)&&a(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?i(n):e}(e,n)})},t.isValidEntityCode=a,t.fromCodePoint=i,t.escapeHtml=function(e){return f.test(e)?e.replace(d,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return v.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t,n){var r; -/*! - Copyright (c) 2016 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ -/*! - Copyright (c) 2016 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ -!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var o=n.withTheme,v=void 0!==o&&o,_=n.flip,S=void 0===_?null:_,P=n.name,F=(0,h.default)(n,["withTheme","flip","name"]),z=(0,N.default)(t),U=z.themingEnabled||v||"string"==typeof P;j+=1,z.options.index=j,"production"!==e.env.NODE_ENV&&(0,b.default)(j<0,["Material-UI: you might have a memory leak.","The indexCounter is not supposed to grow that much."].join(" "));var B=function(t){function n(e,t){var r;(0,u.default)(this,n),r=(0,f.default)(this,(n.__proto__||(0,l.default)(n)).call(this,e,t)),Object.defineProperty((0,p.default)(r),"state",{configurable:!0,enumerable:!0,writable:!0,value:{}}),Object.defineProperty((0,p.default)(r),"disableStylesGeneration",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty((0,p.default)(r),"jss",{configurable:!0,enumerable:!0,writable:!0,value:null}),Object.defineProperty((0,p.default)(r),"sheetOptions",{configurable:!0,enumerable:!0,writable:!0,value:null}),Object.defineProperty((0,p.default)(r),"sheetsManager",{configurable:!0,enumerable:!0,writable:!0,value:D}),Object.defineProperty((0,p.default)(r),"stylesCreatorSaved",{configurable:!0,enumerable:!0,writable:!0,value:null}),Object.defineProperty((0,p.default)(r),"theme",{configurable:!0,enumerable:!0,writable:!0,value:null}),Object.defineProperty((0,p.default)(r),"unsubscribeId",{configurable:!0,enumerable:!0,writable:!0,value:null}),r.jss=r.context[C.jss]||A;var o=r.context.muiThemeProviderOptions;return o&&(o.sheetsManager&&(r.sheetsManager=o.sheetsManager),r.disableStylesGeneration=o.disableStylesGeneration),r.stylesCreatorSaved=z,r.sheetOptions=(0,s.default)({generateClassName:R},r.context[C.sheetOptions]),r.theme=U?T.default.initial(t)||I||(I=(0,O.default)()):L,r.attach(r.theme),r.cacheClasses={value:null,lastProp:null,lastJSS:{}},r}return(0,d.default)(n,t),(0,c.default)(n,[{key:"componentDidMount",value:function(){var e=this;U&&(this.unsubscribeId=T.default.subscribe(this.context,function(t){var n=e.theme;e.theme=t,e.attach(e.theme),e.setState({},function(){e.detach(n)})}))}},{key:"componentDidUpdate",value:function(){this.stylesCreatorSaved!==z&&"production"!==e.env.NODE_ENV&&(this.detach(this.theme),this.stylesCreatorSaved=z,this.attach(this.theme),this.forceUpdate())}},{key:"componentWillUnmount",value:function(){this.detach(this.theme),null!==this.unsubscribeId&&T.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"getClasses",value:function(){var t=this,n=!1;if(!this.disableStylesGeneration){var o=this.sheetsManager.get(this.stylesCreatorSaved).get(this.theme);o.sheet.classes!==this.cacheClasses.lastJSS&&(this.cacheClasses.lastJSS=o.sheet.classes,n=!0)}return this.props.classes!==this.cacheClasses.lastProp&&(this.cacheClasses.lastProp=this.props.classes,n=!0),n&&(this.props.classes?this.cacheClasses.value=(0,s.default)({},this.cacheClasses.lastJSS,(0,i.default)(this.props.classes).reduce(function(n,o){return"production"!==e.env.NODE_ENV&&(0,b.default)(t.cacheClasses.lastJSS[o]||t.disableStylesGeneration,["Material-UI: the key `".concat(o,"` ")+"provided to the classes property is not implemented in ".concat((0,w.default)(r),"."),"You can only override one of the following: ".concat((0,i.default)(t.cacheClasses.lastJSS).join(","))].join("\n")),"production"!==e.env.NODE_ENV&&(0,b.default)(!t.props.classes[o]||"string"==typeof t.props.classes[o],["Material-UI: the key `".concat(o,"` ")+"provided to the classes property is not valid for ".concat((0,w.default)(r),"."),"You need to provide a non empty string instead of: ".concat(t.props.classes[o],".")].join("\n")),t.props.classes[o]&&(n[o]="".concat(t.cacheClasses.lastJSS[o]," ").concat(t.props.classes[o])),n},{})):this.cacheClasses.value=this.cacheClasses.lastJSS),this.cacheClasses.value}},{key:"attach",value:function(t){if(!this.disableStylesGeneration){var n=this.stylesCreatorSaved,o=this.sheetsManager.get(n);o||(o=new m.default,this.sheetsManager.set(n,o));var a=o.get(t);if(a||(a={refs:0,sheet:null},o.set(t,a)),0===a.refs){var i=n.create(t,P),l=P;"production"===e.env.NODE_ENV||l||(l=(0,w.default)(r));var u=this.jss.createStyleSheet(i,(0,s.default)({meta:l,classNamePrefix:l,flip:"boolean"==typeof S?S:"rtl"===t.direction,link:!1},this.sheetOptions,n.options,{name:P},F));a.sheet=u,u.attach();var c=this.context[C.sheetsRegistry];c&&c.add(u)}a.refs+=1}}},{key:"detach",value:function(e){if(!this.disableStylesGeneration){var t=this.stylesCreatorSaved,n=this.sheetsManager.get(t),r=n.get(e);if(r.refs-=1,0===r.refs){n.delete(e),this.jss.removeStyleSheet(r.sheet);var o=this.context[C.sheetsRegistry];o&&o.remove(r.sheet)}}}},{key:"render",value:function(){var e=this.props,t=(e.classes,e.innerRef),n=(0,h.default)(e,["classes","innerRef"]),o=(0,M.default)({theme:this.theme,name:P});return v&&(o.theme=this.theme),g.default.createElement(r,(0,a.default)({},o,{classes:this.getClasses(),ref:t},n))}}]),n}(g.default.Component);return B.propTypes="production"!==e.env.NODE_ENV?{classes:y.default.object,innerRef:y.default.oneOfType([y.default.func,y.default.object])}:{},B.contextTypes=(0,s.default)({muiThemeProviderOptions:y.default.object},k.default,U?T.default.contextTypes:{}),"production"!==e.env.NODE_ENV&&(B.displayName=(0,E.default)(r,"WithStyles")),(0,x.default)(B,r),"production"!==e.env.NODE_ENV&&(B.Naked=r,B.options=n),B}};t.default=F}).call(t,n(2))},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(151);function o(e,t){for(var n=0;n2?r-2:0);for(var o=2;oa.a.dispatch(i[e](...t))));const c=window.navigator.oscpu||window.navigator.platform;let f="Unknown OS";-1!==c.indexOf("Win")&&(f="Windows"),-1!==c.indexOf("Mac")&&(f="MacOS"),-1!==c.indexOf("X11")&&(f="UNIX"),-1!==c.indexOf("Linux")&&(f="Linux");const d=()=>"MacOS"===f?"⌘":"Ctrl",p={};p.evaluateCell=new r.a({title:"Run Cell",keybindings:["mod+enter"],callback(){u.changeMode("command"),u.saveNotebook(!0),u.evaluateCell()}}),p.evaluateAllCells=new r.a({title:"Run All Cells",menuTitle:"Run All Cells",callback(){u.saveNotebook(!0),u.evaluateAllCells(Object(s.e)(),a.a)}}),p.evaluateCellAndSelectBelow=new r.a({title:"Evaluate Cell and Select Below",keybindings:["shift+enter"],keybindingPrecondition:s.h,callback(){u.changeMode("command"),u.saveNotebook(!0),u.evaluateCell();const e=Object(s.c)();null!==e?u.selectCell(e,!0):(u.addCell("code"),u.selectCell(Object(s.c)(),!0))}}),p.moveCellUp=new r.a({title:"Move Cell Up",displayKeybinding:"Shift+Up",keybindings:["shift+up"],keybindingPrecondition:s.f,preventDefaultKeybinding:!0,callback(){u.cellUp()}}),p.moveCellDown=new r.a({title:"Move Cell Down",displayKeybinding:"Shift+Down",keybindings:["shift+down"],keybindingPrecondition:s.f,preventDefaultKeybinding:!0,callback(){u.cellDown()}}),p.loginGithub=new r.a({title:"Login using GitHub",callback(){u.login()}}),p.logoutGithub=new r.a({title:"Logout",callback(){u.logout()}}),p.exportGist=new r.a({title:"Export Gist",callback(){u.exportGist()}}),p.selectUp=new r.a({title:"Select Cell Above",displayKeybinding:"Up",keybindings:["up"],keybindingPrecondition:s.f,preventDefaultKeybinding:!0,callback(){const e=Object(s.b)();null!==e&&u.selectCell(e,!0)}}),p.selectDown=new r.a({title:"Select Cell Down",displayKeybinding:"Down",keybindings:["down"],keybindingPrecondition:s.f,preventDefaultKeybinding:!0,callback(){const e=Object(s.c)();null!==e&&u.selectCell(e,!0)}}),p.addCellAbove=new r.a({title:"Add Cell Above",keybindings:["a"],displayKeybinding:"A",keybindingPrecondition:s.f,callback(){u.insertCell("code","above"),u.selectCell(Object(s.b)(),!0)}}),p.addCellBelow=new r.a({title:"Add Cell Below",keybindings:["b"],displayKeybinding:"B",keybindingPrecondition:s.f,callback(){u.insertCell("code","below"),u.selectCell(Object(s.c)(),!0)}}),p.deleteCell=new r.a({title:"Delete Cell",keybindings:["shift+backspace"],displayKeybinding:"Shift+Backspace",keybindingPrecondition:s.f,callback(){u.deleteCell()}}),p.changeToJavascriptCell=new r.a({title:"Change to Javascript",keybindings:["j"],displayKeybinding:"J",keybindingPrecondition:s.f,callback(){u.changeCellType("code","js")}}),p.changeToMarkdownCell=new r.a({title:"Change to Markdown",keybindings:["m"],displayKeybinding:"M",keybindingPrecondition:s.f,callback(){u.changeCellType("markdown")}}),p.changeToExternalResourceCell=new r.a({title:"Change to External Resource",keybindings:["e"],displayKeybinding:"E",keybindingPrecondition:s.f,callback(){u.changeCellType("external dependencies")}}),p.changeToRawCell=new r.a({title:"Change to Raw",keybindings:["r"],displayKeybinding:"R",keybindingPrecondition:s.f,callback(){u.changeCellType("raw")}}),p.changeToCSSCell=new r.a({title:"Change to CSS",keybindings:["c"],displayKeybinding:"C",keybindingPrecondition:s.f,callback(){u.changeCellType("css")}}),p.changeToPluginCell=new r.a({title:"Change to Plugin Loader",keybindings:["l"],displayKeybinding:"L",keybindingPrecondition:s.f,callback(){u.changeCellType("plugin")}}),p.toggleSkipCellInRunAll=new r.a({title:"Toggle Skipping Cell in Run All",keybindings:["s"],displayKeybinding:"S",keybindingPrecondition:s.f,callback(){u.setCellSkipInRunAll()}}),p.changeMode=new r.a({title:"Change Mode",callback(e){u.changeMode(e)}}),p.changeToMenuMode=new r.a({title:"Change to Menu Mode",callback(){u.changeMode("title-edit")}}),p.changeToEditMode=new r.a({title:"Change to Edit Mode",keybindings:["enter","return"],displayKeybinding:"Enter",keybindingPrecondition:s.f,preventDefaultKeybinding:!0,callback(){u.changeMode("edit")}}),p.changeToCommandMode=new r.a({title:"Change to Command Mode",keybindings:["esc"],preventDefaultKeybinding:!0,callback(){u.changeMode("command")}}),p.changeTitle=new r.a({title:"Change Title",callback(e){u.changePageTitle(e)}}),p.createNewNotebook=new r.a({title:"New Notebook",preventDefaultKeybinding:!0,callback(){u.newNotebook()}}),p.saveNotebook=new r.a({title:"Save Notebook",keybindings:["ctrl+s","meta+s"],displayKeybinding:`${d()}+S`,preventDefaultKeybinding:!0,callback(){u.saveNotebook()}}),p.exportNotebook=new r.a({title:"Export Notebook",keybindings:["ctrl+shift+e","meta+shift+e"],displayKeybinding:`Shift+${d()}+E`,callback(){u.exportNotebook()}}),p.exportNotebookAsReport=new r.a({title:"Export Notebook as Report",callback(){u.exportNotebook(!0,!1)}}),p.exportNotebookToClipboard=new r.a({title:"Export Notebook to Clipboard",callback(){u.exportNotebook(!1,!0),u.updateAppMessages({message:"Notebook copied to clipboard"})}}),p.clearVariables=new r.a({title:"Clear Variables",preventDefaultKeybinding:!0,callback(){u.clearVariables()}}),p.changeSidePaneWidth=new r.a({title:"Change Width of Side Pane",callback(e){u.changeSidePaneWidth(e)}}),p.toggleDeclaredVariablesPane=new r.a({title:"Toggle the Declared Variables Pane",menuTitle:"Declared Variables",keybindings:["ctrl+d","meta+d"],displayKeybinding:`${d()}+D`,preventDefaultKeybinding:!0,keybindingPrecondition:s.f,callback(){"declared variables"!==a.a.getState().sidePaneMode?u.changeSidePaneMode("declared variables"):u.changeSidePaneMode()}}),p.toggleHistoryPane=new r.a({title:"Toggle the History Pane",menuTitle:"History",keybindings:["ctrl+h","meta+h"],displayKeybinding:`${d()}+H`,preventDefaultKeybinding:!0,keybindingPrecondition:s.f,callback(){"history"!==a.a.getState().sidePaneMode?u.changeSidePaneMode("history"):u.changeSidePaneMode()}}),p.toggleAppInfoPane=new r.a({title:"Toggle the Iodide Info Pane",menuTitle:"App Messages",keybindings:["ctrl+i","meta+i"],displayKeybinding:`${d()}+I`,preventDefaultKeybinding:!0,keybindingPrecondition:s.f,callback(){"_APP_INFO"!==a.a.getState().sidePaneMode?u.changeSidePaneMode("_APP_INFO"):u.changeSidePaneMode()}}),p.setViewModeToEditor=new r.a({title:"Set View Mode to Editor",callback(){u.setViewMode("editor")}}),p.setViewModeToPresentation=new r.a({title:"Set View Mode to Presentation",callback(){u.setViewMode("presentation")}}),p.fileAnIssue=new o.a({title:"File an Issue",menuTitle:"File an Issue ...",url:"http://github.com/iodide-project/iodide/issues/new"}),p.seeAllExamples=new o.a({title:"See All Examples",menuTitle:"See All Examples ...",url:"http://github.com/iodide-project/iodide-examples/"}),t.a=p},function(e,t,n){var r;r=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),i=r||o||a,s=i&&(r?document.documentMode||6:+(a||o)[1]),l=!a&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!a&&/Chrome\//.test(e),f=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=!a&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var E=y&&(u||f&&(null==w||w<12.11)),k=n||i&&s>=9;function _(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,S=function(e,t){var n=e.className,r=_(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}};function O(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return O(e).appendChild(t)}function P(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var a=0;a=t)return i+(t-a);i+=s-a,i+=n-i%n,a=s+1}}m?D=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:i&&(D=function(e){try{e.select()}catch(e){}});var z=function(){this.id=null};function U(e,t){for(var n=0;n=t)return r+Math.min(i,t-o);if(o+=a-r,r=a+1,(o+=n-o%n)>=t)return r}}var G=[""];function K(e){for(;G.length<=e;)G.push(Y(G)+" ");return G[e]}function Y(e){return e[e.length-1]}function Q(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var re=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&re.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var o=(t+n)/2,a=r<0?Math.ceil(o):Math.floor(o);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function se(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],a=o.chunkSize();if(t=e.first&&tn?me(n,se(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?me(e.line,t):n<0?me(e.line,0):e}(t,se(e,t.line).text.length)}function ke(e,t){for(var n=[],r=0;r=t:a.to>t);(r||(r=[])).push(new Se(i,a.from,s?null:a.to))}}return r}(n,o,i),l=function(e,t,n){var r;if(e)for(var o=0;o=t:a.to>t)||a.from==t&&"bookmark"==i.type&&(!n||a.marker.insertLeft)){var s=null==a.from||(i.inclusiveLeft?a.from<=t:a.from0&&s)for(var b=0;b=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?ve(u.to,n)>=0:ve(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?ve(u.from,r)<=0:ve(u.from,r)<0)))return!0}}}function Ue(e){for(var t;t=Le(e);)e=t.find(-1,!0).line;return e}function Be(e,t){var n=se(e,t),r=Ue(n);return n==r?t:fe(r)}function He(e,t){if(t>e.lastLine())return t;var n,r=se(e,t);if(!We(e,r))return t;for(;n=Fe(r);)r=n.find(1,!0).line;return fe(r)+1}function We(e,t){var n=Ce&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Ke=null;function Ye(e,t,n){var r;Ke=null;for(var o=0;ot)return o;a.to==t&&(a.from!=a.to&&"before"==n?r=o:Ke=o),a.from==t&&(a.from!=a.to&&"before"!=n?r=o:Ke=o)}return null!=r?r:Ke}var Qe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,i=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(l,u){var c="ltr"==u?"L":"R";if(0==l.length||"ltr"==u&&!n.test(l))return!1;for(var f,d=l.length,p=[],h=0;h-1&&(r[t]=o.slice(0,a).concat(o.slice(a+1)))}}}function nt(e,t){var n=et(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o0}function it(e){e.prototype.on=function(e,t){Je(this,e,t)},e.prototype.off=function(e,t){tt(this,e,t)}}function st(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function lt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ut(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ct(e){st(e),lt(e)}function ft(e){return e.target||e.srcElement}function dt(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var pt,ht,mt=function(){if(i&&s<9)return!1;var e=P("div");return"draggable"in e||"dragDrop"in e}();function vt(e){if(null==pt){var t=P("span","​");T(e,P("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(pt=t.offsetWidth<=1&&t.offsetHeight>2&&!(i&&s<8))}var n=pt?P("span","​"):P("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function gt(e){if(null!=ht)return ht;var t=T(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return O(e),!(!n||n.left==n.right)&&(ht=r.right-n.right<3)}var yt,bt=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var a=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),i=a.indexOf("\r");-1!=i?(n.push(a.slice(0,i)),t+=i+1):(n.push(a),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},xt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},wt="oncopy"in(yt=P("div"))||(yt.setAttribute("oncopy","return;"),"function"==typeof yt.oncopy),Et=null;var kt={},_t={};function Ct(e){if("string"==typeof e&&_t.hasOwnProperty(e))e=_t[e];else if(e&&"string"==typeof e.name&&_t.hasOwnProperty(e.name)){var t=_t[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ct("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ct("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function St(e,t){t=Ct(t);var n=kt[t.name];if(!n)return St(e,"text/plain");var r=n(e,t);if(Ot.hasOwnProperty(t.name)){var o=Ot[t.name];for(var a in o)o.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r["_"+a]=r[a]),r[a]=o[a])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var i in t.modeProps)r[i]=t.modeProps[i];return r}var Ot={};function Tt(e,t){L(t,Ot.hasOwnProperty(e)?Ot[e]:Ot[e]={})}function Pt(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function Nt(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Mt(e,t,n){return!e.startState||e.startState(t,n)}var At=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};At.prototype.eol=function(){return this.pos>=this.string.length},At.prototype.sol=function(){return this.pos==this.lineStart},At.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},At.prototype.next=function(){if(this.post},At.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},At.prototype.skipToEnd=function(){this.pos=this.string.length},At.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},At.prototype.backUp=function(e){this.pos-=e},At.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},At.prototype.current=function(){return this.string.slice(this.start,this.pos)},At.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},At.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},At.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Rt=function(e,t){this.state=e,this.lookAhead=t},jt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function Dt(e,t,n,r){var o=[e.state.modeGen],a={};qt(e,t.text,e.doc.mode,n,function(e,t){return o.push(e,t)},a,r);for(var i=n.state,s=function(r){n.baseTokens=o;var s=e.state.overlays[r],l=1,u=0;n.state=!0,qt(e,t.text,s.mode,n,function(e,t){for(var n=l;ue&&o.splice(l,1,e,o[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Pt(e.doc.mode,r.state),a=Dt(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Lt(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new jt(r,!0,t);var a=function(e,t,n){for(var r,o,a=e.doc,i=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>i;--s){if(s<=a.first)return a.first;var l=se(a,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof Rt?u.lookAhead:0)<=a.modeFrontier))return s;var c=F(l.text,null,e.options.tabSize);(null==o||r>c)&&(o=s-1,r=c)}return o}(e,t,n),i=a>r.first&&se(r,a-1).stateAfter,s=i?jt.fromSaved(r,i,a):new jt(r,Mt(r.mode),a);return r.iter(a,t,function(n){Ft(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&rt.start)return a}throw new Error("Mode "+e.name+" failed to advance stream.")}jt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},jt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},jt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},jt.fromSaved=function(e,t,n){return t instanceof Rt?new jt(e,Pt(e.mode,t.state),n,t.lookAhead):new jt(e,Pt(e.mode,t),n)},jt.prototype.save=function(e){var t=!1!==e?Pt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Rt(t,this.maxLookAhead):t};var Bt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ht(e,t,n,r){var o,a,i=e.doc,s=i.mode,l=se(i,(t=Ee(i,t)).line),u=Lt(e,t.line,n),c=new At(l.text,e.options.tabSize,u);for(r&&(a=[]);(r||c.pose.options.maxHighlightLength?(s=!1,i&&Ft(e,t,r,f.pos),f.pos=t.length,l=null):l=Wt(Ut(n,f,r.state,d),a),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u1&&!/ /.test(e))return e;for(var n=t,r="",o=0;ou&&f.from<=u);d++);if(f.to>=c)return e(n,r,o,a,i,s,l);e(n,r.slice(0,f.to-u),o,a,null,s,l),a=null,r=r.slice(f.to-u),u=f.to}}}function en(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function tn(e,t,n){var r=e.markedSpans,o=e.text,a=0;if(r)for(var i,s,l,u,c,f,d,p=o.length,h=0,m=1,v="",g=0;;){if(g==h){l=u=c=f=s="",d=null,g=1/0;for(var y=[],b=void 0,x=0;xh||E.collapsed&&w.to==h&&w.from==h)?(null!=w.to&&w.to!=h&&g>w.to&&(g=w.to,u=""),E.className&&(l+=" "+E.className),E.css&&(s=(s?s+";":"")+E.css),E.startStyle&&w.from==h&&(c+=" "+E.startStyle),E.endStyle&&w.to==g&&(b||(b=[])).push(E.endStyle,w.to),E.title&&!f&&(f=E.title),E.collapsed&&(!d||De(d.marker,E)<0)&&(d=w)):w.from>h&&g>w.from&&(g=w.from)}if(b)for(var k=0;k=p)break;for(var C=Math.min(p,g);;){if(v){var S=h+v.length;if(!d){var O=S>C?v.slice(0,C-h):v;t.addToken(t,O,i?i+l:l,c,h+O.length==g?u:"",f,s)}if(S>=C){v=v.slice(C-h),h=C;break}h=S,c=""}v=o.slice(a,a=n[m++]),i=Yt(n[m++],t.cm.options)}}else for(var T=1;Tn)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function Pn(e,t,n,r){return An(e,Mn(e,t),n,r)}function Nn(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&a.push((l.bottom+u.top)/2-n.top)}}a.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(a=function(e,t,n,r){var o,a=Dn(t.map,n,r),l=a.node,u=a.start,c=a.end,f=a.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&oe(t.line.text.charAt(a.coverStart+u));)--u;for(;a.coverStart+c1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,o))}else{var p;u>0&&(f=r="right"),o=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(i&&s<9&&!u&&(!o||!o.left&&!o.right)){var h=l.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+tr(e.display),top:h.top,bottom:h.bottom}:jn}for(var m=o.top-t.rect.top,v=o.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,b=0;bt)&&(o=(a=l-s)-1,t>=l&&(i="right")),null!=o){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(i=n),"left"==n&&0==o)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],i="left";if("right"==n&&o==l-s)for(;u=0&&(n=e[o]).left==n.right;o--);return n}function Ln(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return i("before"==u?l-1:l,"before"==u);function c(e,t,n){var r=1==s[t].level;return i(n?e-1:e,r!=n)}var f=Ye(s,l,u),d=Ke,p=c(l,f,"before"==u);return null!=d&&(p.other=c(l,d,"before"!=u)),p}function Gn(e,t){var n=0;t=Ee(e.doc,t),e.options.lineWrapping||(n=tr(e.display)*t.ch);var r=se(e.doc,t.line),o=Ve(r)+En(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function Kn(e,t,n,r,o){var a=me(e,t,n);return a.xRel=o,r&&(a.outside=!0),a}function Yn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Kn(r.first,0,null,!0,-1);var o=de(r,n),a=r.first+r.size-1;if(o>a)return Kn(r.first+r.size-1,se(r,a).text.length,null,!0,1);t<0&&(t=0);for(var i=se(r,o);;){var s=Jn(e,i,o,t,n),l=Fe(i),u=l&&l.find(0,!0);if(!l||!(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0))return s;o=fe(i=u.to.line)}}function Qn(e,t,n,r){r-=Hn(t);var o=t.text.length,a=ie(function(t){return An(e,n,t-1).bottom<=r},o,0);return{begin:a,end:o=ie(function(t){return An(e,n,t).top>r},a,o)}}function Xn(e,t,n,r){return n||(n=Mn(e,t)),Qn(e,t,n,Wn(e,t,An(e,n,r),"line").top)}function Zn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Jn(e,t,n,r,o){o-=Ve(t);var a=Mn(e,t),i=Hn(t),s=0,l=t.text.length,u=!0,c=Xe(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?function(e,t,n,r,o,a,i){var s=Qn(e,t,r,i),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d=u||p.to<=l)){var h=1!=p.level,m=An(e,r,h?Math.min(u,p.to)-1:Math.max(l,p.from)).right,v=mv)&&(c=p,f=v)}}c||(c=o[o.length-1]);c.fromu&&(c={from:c.from,to:u,level:c.level});return c}:function(e,t,n,r,o,a,i){var s=ie(function(s){var l=o[s],u=1!=l.level;return Zn($n(e,me(n,u?l.to:l.from,u?"before":"after"),"line",t,r),a,i,!0)},0,o.length-1),l=o[s];if(s>0){var u=1!=l.level,c=$n(e,me(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Zn(c,a,i,!0)&&c.top>i&&(l=o[s-1])}return l})(e,t,n,a,c,r,o);s=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var d,p,h=null,m=null,v=ie(function(t){var n=An(e,a,t);return n.top+=i,n.bottom+=i,!!Zn(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=t,m=n),!0)},s,l),g=!1;if(m){var y=r-m.left=x.bottom}return Kn(n,v=ae(t.text,v,1),p,g,r-d)}function er(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Rn){Rn=P("pre");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(P("br"));Rn.appendChild(document.createTextNode("x"))}T(e.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),O(e.measure),n||1}function tr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=P("span","xxxxxxxxxx"),n=P("pre",[t]);T(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function nr(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,a=t.gutters.firstChild,i=0;a;a=a.nextSibling,++i)n[e.options.gutters[i]]=a.offsetLeft+a.clientLeft+o,r[e.options.gutters[i]]=a.clientWidth;return{fixedPos:rr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function rr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function or(e){var t=er(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/tr(e.display)-3);return function(o){if(We(e.doc,o))return 0;var a=0;if(o.widgets)for(var i=0;i=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r=e.display.viewTo||s.to().linet||t==n&&i.to==t)&&(r(Math.max(i.from,t),Math.min(i.to,n),1==i.level?"rtl":"ltr",a),o=!0)}o||r(t,n,"ltr")}(m,n||0,null==r?d:r,function(e,t,o,f){var v="ltr"==o,g=p(e,v?"left":"right"),y=p(t-1,v?"right":"left"),b=null==n&&0==e,x=null==r&&t==d,w=0==f,E=!m||f==m.length-1;if(y.top-g.top<=3){var k=(u?x:b)&&E,_=(u?b:x)&&w?s:(v?g:y).left,C=k?l:(v?y:g).right;c(_,g.top,C-_,g.bottom)}else{var S,O,T,P;v?(S=u&&b&&w?s:g.left,O=u?l:h(e,o,"before"),T=u?s:h(t,o,"after"),P=u&&x&&E?l:y.right):(S=u?h(e,o,"before"):s,O=!u&&b&&w?l:g.right,T=!u&&x&&E?s:y.left,P=u?h(t,o,"after"):l),c(S,g.top,O-S,g.bottom),g.bottom0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function hr(e){e.state.focused||(e.display.input.focus(),vr(e))}function mr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,gr(e))},100)}function vr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(nt(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),pr(e))}function gr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(nt(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function yr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||c<-.005)&&(ce(o.line,a),br(o.line),o.rest))for(var f=0;f=i&&(a=de(t,Ve(se(t,l))-e.wrapper.clientHeight),i=l)}return{from:a,to:Math.max(i,a+1)}}function wr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=rr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,a=r+"px",i=0;ia&&(t.bottom=t.top+a);var s=e.doc.height+kn(n),l=t.tops-r;if(t.topo+a){var c=Math.min(t.top,(u?s:t.bottom)-a);c!=o&&(i.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,d=Sn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),p=t.right-t.left>d;return p&&(t.right=t.left+d),t.left<10?i.scrollLeft=0:t.leftd+f-3&&(i.scrollLeft=t.right+(p?0:10)-d),i}function _r(e,t){null!=t&&(Or(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Cr(e){Or(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Sr(e,t,n){null==t&&null==n||Or(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Or(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Tr(e,Gn(e,t.from),Gn(e,t.to),t.margin))}function Tr(e,t,n,r){var o=kr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Sr(e,o.scrollLeft,o.scrollTop)}function Pr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||io(e,{top:t}),Nr(e,t,!0),n&&io(e),to(e,100))}function Nr(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Mr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,wr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Ar(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+kn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Cn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Rr=function(e,t,n){this.cm=n;var r=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(o),Je(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Je(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,i&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Rr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var a=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Rr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Rr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Rr.prototype.zeroWidthHack=function(){var e=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new z,this.disableVert=new z},Rr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)})},Rr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var jr=function(){};function Dr(e,t){t||(t=Ar(e));var n=e.display.barWidth,r=e.display.barHeight;Ir(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&yr(e),Ir(e,Ar(e)),n=e.display.barWidth,r=e.display.barHeight}function Ir(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}jr.prototype.update=function(){return{bottom:0,right:0}},jr.prototype.setScrollLeft=function(){},jr.prototype.setScrollTop=function(){},jr.prototype.clear=function(){};var Lr={native:Rr,null:jr};function Fr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Lr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Je(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Mr(e,t):Pr(e,t)},e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var zr=0;function Ur(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zr},t=e.curOp,on?on.ops.push(t):t.ownsGroup=on={ops:[t],delayedCallbacks:[]}}function Br(e){!function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ro(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Wr(e){var t=e.cm,n=t.display;e.updatedDisplay&&yr(t),e.barMeasure=Ar(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Pn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Cn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Sn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function qr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!h){var a=P("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-En(e.display))+"px;\n height: "+(t.bottom-t.top+Cn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var o;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?me(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?me(t.line,t.ch+1,"before"):t);for(var a=0;a<5;a++){var i=!1,s=$n(e,t),l=n&&n!=t?$n(e,n):s,u=kr(e,o={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(Pr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(i=!0)),null!=u.scrollLeft&&(Mr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(i=!0)),!i)break}return o}(t,Ee(r,e.scrollToPos.from),Ee(r,e.scrollToPos.to),e.scrollToPos.margin));var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var i=0;it)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Ce&&Be(e.doc,t)o.viewFrom?Zr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)Zr(e);else if(t<=o.viewFrom){var a=Jr(e,n,n+r,1);a?(o.view=o.view.slice(a.index),o.viewFrom=a.lineN,o.viewTo+=r):Zr(e)}else if(n>=o.viewTo){var i=Jr(e,t,t,-1);i?(o.view=o.view.slice(0,i.index),o.viewTo=i.lineN):Zr(e)}else{var s=Jr(e,t,t,-1),l=Jr(e,n,n+r,1);s&&l?(o.view=o.view.slice(0,s.index).concat(rn(e,s.lineN,l.lineN)).concat(o.view.slice(l.index)),o.viewTo+=r):Zr(e)}var u=o.externalMeasured;u&&(n=o.lineN&&t=r.viewTo)){var a=r.view[sr(e,t)];if(null!=a.node){var i=a.changes||(a.changes=[]);-1==U(i,n)&&i.push(n)}}}function Zr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Jr(e,t,n,r){var o,a=sr(e,t),i=e.display.view;if(!Ce||n==e.doc.first+e.doc.size)return{index:a,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(a==i.length-1)return null;o=s+i[a].size-t,a++}else o=s-t;t+=o,n+=o}for(;Be(e.doc,n)!=n;){if(a==(r<0?0:i.length-1))return null;n+=r*i[a-(r<0?1:0)].size,a+=r}return{index:a,lineN:n}}function eo(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Lt(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(a){if(r.line>=e.display.viewFrom){var i=a.styles,s=a.text.length>e.options.maxHighlightLength?Pt(t.mode,r.state):null,l=Dt(e,a,r,!0);s&&(r.state=s),a.styles=l.styles;var u=a.styleClasses,c=l.classes;c?a.styleClasses=c:u&&(a.styleClasses=null);for(var f=!i||i.length!=a.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&dn)return to(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&$r(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==eo(e))return!1;Er(e)&&(Zr(e),t.dims=nr(e));var o=r.first+r.size,a=Math.max(t.visible.from-e.options.viewportMargin,r.first),i=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFromi&&n.viewTo-i<20&&(i=Math.min(o,n.viewTo)),Ce&&(a=Be(e.doc,a),i=He(e.doc,i));var s=a!=n.viewFrom||i!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=rn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=rn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,sr(e,n)))),r.viewTo=n}(e,a,i),n.viewOffset=Ve(se(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=eo(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=A();if(!t||!M(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&M(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,o=e.options.lineNumbers,a=r.lineDiv,i=a.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f-1&&(p=!1),un(e,d,c,n)),p&&(O(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(he(e.options,c)))),i=d.node.nextSibling}else{var h=vn(e,d,c,n);a.insertBefore(h,i)}c+=d.size}for(;i;)i=s(i)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=A()&&(e.activeElt.focus(),e.anchorNode&&M(document.body,e.anchorNode)&&M(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,to(e,400)),n.updateLineNumbers=null,!0}function ao(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Sn(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+kn(e.display)-On(e),n.top)}),t.visible=xr(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&oo(e,t);r=!1){yr(e);var o=Ar(e);lr(e),Dr(e,o),lo(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function io(e,t){var n=new ro(e,t);if(oo(e,n)){yr(e),ao(e,n);var r=Ar(e);lr(e),Dr(e,r),lo(e,r),n.finish()}}function so(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function lo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Cn(e)+"px"}function uo(e){var t=e.display.gutters,n=e.options.gutters;O(t);for(var r=0;r-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}ro.prototype.signal=function(e,t){at(e,t)&&this.events.push(arguments)},ro.prototype.finish=function(){for(var e=0;es.clientWidth,c=s.scrollHeight>s.clientHeight;if(o&&u||a&&c){if(a&&y&&l)e:for(var d=t.target,p=i.view;d!=s;d=d.parentNode)for(var h=0;h=0&&ve(e,r.to())<=0)return n}return-1};var yo=function(e,t){this.anchor=e,this.head=t};function bo(e,t){var n=e[t];e.sort(function(e,t){return ve(e.from(),t.from())}),t=U(e,n);for(var r=1;r=0){var i=xe(a.from(),o.from()),s=be(a.to(),o.to()),l=a.empty()?o.from()==o.head:a.from()==a.head;r<=t&&--t,e.splice(--r,2,new yo(l?s:i,l?i:s))}}return new go(e,t)}function xo(e,t){return new go([new yo(e,t||e)],0)}function wo(e){return e.text?me(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Eo(e,t){if(ve(e,t.from)<0)return e;if(ve(e,t.to)<=0)return wo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=wo(t).ch-t.to.ch),me(n,r)}function ko(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}sn(e,"change",e,t)}function Po(e,t,n){!function e(r,o,a){if(r.linked)for(var i=0;is-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(a=function(e,t){return t?(jo(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}(o,o.lastOp==r)))i=Y(a.changes),0==ve(t.from,t.to)&&0==ve(t.from,i.to)?i.to=wo(t):a.changes.push(Ro(e,t));else{var l=Y(o.done);for(l&&l.ranges||Lo(e.sel,o.done),a={changes:[Ro(e,t)],generation:o.generation},o.done.push(a);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,i||nt(e,"historyAdded")}function Io(e,t,n,r){var o=e.history,a=r&&r.origin;n==o.lastSelOp||a&&o.lastSelOrigin==a&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==a||function(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,a,Y(o.done),t))?o.done[o.done.length-1]=t:Lo(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=a,o.lastSelOp=n,r&&!1!==r.clearRedo&&jo(o.undone)}function Lo(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Fo(e,t,n,r){var o=t["spans_"+e.id],a=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[a]=n.markedSpans),++a})}function zo(e){if(!e)return null;for(var t,n=0;n-1&&(Y(s)[f]=u[f],delete u[f])}}}return r}function Ho(e,t,n,r){if(r){var o=e.anchor;if(n){var a=ve(t,o)<0;a!=ve(n,o)<0?(o=t,t=n):a!=ve(t,n)<0&&(t=n)}return new yo(o,t)}return new yo(n||t,t)}function Wo(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Ko(e,new go([Ho(e.sel.primary(),t,n,o)],0),r)}function qo(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),a=0;a=t.ch:s.to>t.ch))){if(o&&(nt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(a.markedSpans){--i;continue}break}if(!l.atomic)continue;if(n){var u=l.find(r<0?1:-1),c=void 0;if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(u=ta(e,u,-r,u&&u.line==t.line?a:null)),u&&u.line==t.line&&(c=ve(u,n))&&(r<0?c<0:c>0))return Jo(e,u,t,r,o)}var f=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(f=ta(e,f,r,f.line==t.line?a:null)),f?Jo(e,f,t,r,o):null}}return t}function ea(e,t,n,r,o){var a=r||1,i=Jo(e,t,n,a,o)||!o&&Jo(e,t,n,a,!0)||Jo(e,t,n,-a,o)||!o&&Jo(e,t,n,-a,!0);return i||(e.cantEdit=!0,me(e.first,0))}function ta(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?Ee(e,me(t.line-1)):null:n>0&&t.ch==(r||se(e,t.line)).text.length?t.line0)){var c=[l,1],f=ve(u.from,s.from),d=ve(u.to,s.to);(f<0||!i.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(d>0||!i.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),o.splice.apply(o,c),l+=c.length-3}}return o}(e,t.from,t.to);if(r)for(var o=r.length-1;o>=0;--o)aa(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else aa(e,t)}}function aa(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ve(t.from,t.to)){var n=ko(e,t);Do(e,t,n,e.cm?e.cm.curOp.id:NaN),la(e,t,n,Pe(e,t));var r=[];Po(e,function(e,n){n||-1!=U(r,e.history)||(da(e.history,t),r.push(e.history)),la(e,t,null,Pe(e,t))})}}function ia(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,a=e.history,i=e.sel,s="undo"==t?a.done:a.undone,l="undo"==t?a.undone:a.done,u=0;u=0;--p){var h=d(p);if(h)return h.v}}}}function sa(e,t){if(0!=t&&(e.first+=t,e.sel=new go(Q(e.sel.ranges,function(e){return new yo(me(e.anchor.line+t,e.anchor.ch),me(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Qr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linea&&(t={from:t.from,to:me(a,se(e,a).text.length),text:[t.text[0]],origin:t.origin}),t.removed=le(e,t.from,t.to),n||(n=ko(e,t)),e.cm?function(e,t,n){var r=e.doc,o=e.display,a=t.from,i=t.to,s=!1,l=a.line;e.options.lineWrapping||(l=fe(Ue(se(r,a.line))),r.iter(l,i.line+1,function(e){if(e==o.maxLine)return s=!0,!0}));r.sel.contains(t.from,t.to)>-1&&ot(e);To(r,t,n,or(e)),e.options.lineWrapping||(r.iter(l,a.line+t.text.length,function(e){var t=$e(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var o=se(e,r).stateAfter;if(o&&(!(o instanceof Rt)||r+o.lookAhead1||!(this.children[0]instanceof ha))){var s=[];this.collapse(s),this.children=[new ha(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var i=o.lines.length%25+25,s=i;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==i&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=N("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ze(e,t.line,t,n,a)||t.line!=n.line&&ze(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ce=!0}a.addToHistory&&Do(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,function(e){u&&a.collapsed&&!u.options.lineWrapping&&Ue(e)==u.display.maxLine&&(s=!0),a.collapsed&&l!=t.line&&ce(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Se(a,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),a.collapsed&&e.iter(t.line,n.line+1,function(t){We(e,t)&&ce(t,0)}),a.clearOnEnter&&Je(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(_e=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++ya,a.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),a.collapsed)Qr(u,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var c=t.line;c<=n.line;c++)Xr(u,c,"text");a.atomic&&Xo(u.doc),sn(u,"markerAdded",u,a)}return a}ba.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ur(e),at(this,"clear")){var n=this.find();n&&sn(this,"clear",n.from,n.to)}for(var r=null,o=null,a=0;ae.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Qr(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Xo(e.doc)),e&&sn(e,"markerCleared",e,this,r,o),t&&Br(e),this.parent&&this.parent.clear()}},ba.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o=0;l--)oa(this,r[l]);s?Go(this,s):this.cm&&Cr(this.cm)}),undo:Yr(function(){ia(this,"undo")}),redo:Yr(function(){ia(this,"redo")}),undoSelection:Yr(function(){ia(this,"undo",!0)}),redoSelection:Yr(function(){ia(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=Ee(this,e),t=Ee(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(a){var i=a.markedSpans;if(i)for(var s=0;s=l.to||null==l.from&&o!=e.line||null!=l.from&&o==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++o}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=a,++n}),Ee(this,me(n,t))},indexFromPos:function(e){var t=(e=Ee(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var c=e.dataTransfer.getData("Text");if(c){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Yo(t.doc,xo(n,n)),f)for(var d=0;d=0;t--)ua(e.doc,"",r[t].from,r[t].to,"+delete");Cr(e)})}function $a(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ga(e,t,n){var r=$a(e,t.ch,n);return null==r?null:new me(t.line,r,n<0?"after":"before")}function Ka(e,t,n,r,o){if(e){var a=Xe(n,t.doc.direction);if(a){var i,s=o<0?Y(a):a[0],l=o<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Mn(t,n);i=o<0?n.text.length-1:0;var c=An(t,u,i).top;i=ie(function(e){return An(t,u,e).top==c},o<0==(1==s.level)?s.from:s.to-1,i),"before"==l&&(i=$a(n,i,1))}else i=o<0?s.to:s.from;return new me(r,i,l)}}return new me(r,o<0?n.text.length:0,o<0?"before":"after")}La.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},La.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},La.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},La.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},La.default=y?La.macDefault:La.pcDefault;var Ya={selectAll:na,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return Va(e,function(t){if(t.empty()){var n=se(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)o=new me(o.line,o.ch+1),e.replaceRange(a.charAt(o.ch-1)+a.charAt(o.ch-2),me(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var i=se(e.doc,o.line-1).text;i&&(o=new me(o.line,1),e.replaceRange(a.charAt(0)+e.doc.lineSeparator()+i.charAt(i.length-1),me(o.line-1,i.length-1),o,"+transpose"))}n.push(new yo(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){return $r(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(ve((o=u.ranges[o]).from(),t)<0||t.xRel>0)&&(ve(o.to(),t)>0||t.xRel<0)?function(e,t,n,r){var o=e.display,a=!1,u=Gr(e,function(t){l&&(o.scroller.draggable=!1),e.state.draggingText=!1,tt(o.wrapper.ownerDocument,"mouseup",u),tt(o.wrapper.ownerDocument,"mousemove",c),tt(o.scroller,"dragstart",f),tt(o.scroller,"drop",u),a||(st(t),r.addNew||Wo(e.doc,n,null,null,r.extend),l||i&&9==s?setTimeout(function(){o.wrapper.ownerDocument.body.focus(),o.input.focus()},20):o.input.focus())}),c=function(e){a=a||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return a=!0};l&&(o.scroller.draggable=!0);e.state.draggingText=u,u.copy=!r.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop();Je(o.wrapper.ownerDocument,"mouseup",u),Je(o.wrapper.ownerDocument,"mousemove",c),Je(o.scroller,"dragstart",f),Je(o.scroller,"drop",u),mr(e),setTimeout(function(){return o.input.focus()},20)}(e,r,t,a):function(e,t,n,r){var o=e.display,a=e.doc;st(t);var i,s,l=a.sel,u=l.ranges;r.addNew&&!r.extend?(s=a.sel.contains(n),i=s>-1?u[s]:new yo(n,n)):(i=a.sel.primary(),s=a.sel.primIndex);if("rectangle"==r.unit)r.addNew||(i=new yo(n,n)),n=ir(e,t,!0,!0),s=-1;else{var c=fi(e,n,r.unit);i=r.extend?Ho(i,c.anchor,c.head,r.extend):c}r.addNew?-1==s?(s=u.length,Ko(a,bo(u.concat([i]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==r.unit&&!r.extend?(Ko(a,bo(u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=a.sel):Vo(a,s,i,q):(s=0,Ko(a,new go([i],0),q),l=a.sel);var f=n;function d(t){if(0!=ve(f,t))if(f=t,"rectangle"==r.unit){for(var o=[],u=e.options.tabSize,c=F(se(a,n.line).text,n.ch,u),d=F(se(a,t.line).text,t.ch,u),p=Math.min(c,d),h=Math.max(c,d),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=se(a,m).text,y=$(g,p,u);p==h?o.push(new yo(me(m,y),me(m,y))):g.length>y&&o.push(new yo(me(m,y),me(m,$(g,h,u))))}o.length||o.push(new yo(n,n)),Ko(a,bo(l.ranges.slice(0,s).concat(o),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,x=i,w=fi(e,t,r.unit),E=x.anchor;ve(w.anchor,E)>0?(b=w.head,E=xe(x.from(),w.anchor)):(b=w.anchor,E=be(x.to(),w.head));var k=l.ranges.slice(0);k[s]=function(e,t){var n=t.anchor,r=t.head,o=se(e.doc,n.line);if(0==ve(n,r)&&n.sticky==r.sticky)return t;var a=Xe(o);if(!a)return t;var i=Ye(a,n.ch,n.sticky),s=a[i];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=i+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==a.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Ye(a,r.ch,r.sticky),f=c-i||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var d=a[u+(l?-1:0)],p=l==(1==d.level),h=p?d.from:d.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new yo(new me(n.line,h,m),r)}(e,new yo(Ee(a,E),b)),Ko(a,bo(k,s),q)}}var p=o.wrapper.getBoundingClientRect(),h=0;function m(t){e.state.selectingText=!1,h=1/0,st(t),o.input.focus(),tt(o.wrapper.ownerDocument,"mousemove",v),tt(o.wrapper.ownerDocument,"mouseup",g),a.history.lastSelOrigin=null}var v=Gr(e,function(t){dt(t)?function t(n){var i=++h;var s=ir(e,n,!0,"rectangle"==r.unit);if(!s)return;if(0!=ve(s,f)){e.curOp.focus=A(),d(s);var l=xr(o,a);(s.line>=l.to||s.linep.bottom?20:0;u&&setTimeout(Gr(e,function(){h==i&&(o.scroller.scrollTop+=u,t(n))}),50)}}(t):m(t)}),g=Gr(e,m);e.state.selectingText=g,Je(o.wrapper.ownerDocument,"mousemove",v),Je(o.wrapper.ownerDocument,"mouseup",g)}(e,r,t,a)}(t,r,a,e):ft(e)==n.scroller&&st(e):2==o?(r&&Wo(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==o&&(k?hi(t,e):mr(t)))}}function fi(e,t,n){if("char"==n)return new yo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new yo(me(t.line,0),Ee(e.doc,me(t.line+1,0)));var r=n(e,t);return new yo(r.from,r.to)}function di(e,t,n,r){var o,a;if(t.touches)o=t.touches[0].clientX,a=t.touches[0].clientY;else try{o=t.clientX,a=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&st(t);var i=e.display,s=i.lineDiv.getBoundingClientRect();if(a>s.bottom||!at(e,n))return ut(t);a-=s.top-i.viewOffset;for(var l=0;l=o)return nt(e,n,e,de(e.doc,a),e.options.gutters[l],t),ut(t)}}function pi(e,t){return di(e,t,"gutterClick",!0)}function hi(e,t){wn(e.display,t)||function(e,t){if(!at(e,"gutterContextMenu"))return!1;return di(e,t,"gutterContextMenu",!1)}(e,t)||rt(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function mi(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(e)}ui.prototype.compare=function(e,t,n){return this.time+400>e&&0==ve(t,this.pos)&&n==this.button};var vi={toString:function(){return"CodeMirror.Init"}},gi={},yi={};function bi(e){uo(e),Qr(e),wr(e)}function xi(e,t,n){if(!t!=!(n&&n!=vi)){var r=e.display.dragFunctions,o=t?Je:tt;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function wi(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Ge(e)),ar(e),Qr(e),zn(e),setTimeout(function(){return Dr(e)},100)}function Ei(e,t){var r=this;if(!(this instanceof Ei))return new Ei(e,t);this.options=t=t?L(t):{},L(gi,t,!1),co(t);var o=t.value;"string"==typeof o&&(o=new Ca(o,t.mode,null,t.lineSeparator,t.direction)),this.doc=o;var a=new Ei.inputStyles[t.inputStyle](this),u=this.display=new function(e,t,r){var o=this;this.input=r,o.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=N("div",null,"CodeMirror-code"),o.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=P("div",null,"CodeMirror-cursors"),o.measure=P("div",null,"CodeMirror-measure"),o.lineMeasure=P("div",null,"CodeMirror-measure"),o.lineSpace=N("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var a=N("div",[o.lineSpace],"CodeMirror-lines");o.mover=P("div",[a],null,"position: relative"),o.sizer=P("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=P("div",null,null,"position: absolute; height: "+B+"px; width: 1px;"),o.gutters=P("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=P("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=P("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),i&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&g||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,r.init(o)}(e,o,a);for(var c in u.wrapper.CodeMirror=this,uo(this),mi(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new z,keySeq:null,specialChars:null},t.autofocus&&!g&&u.input.focus(),i&&s<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(e){var t=e.display;Je(t.scroller,"mousedown",Gr(e,ci)),Je(t.scroller,"dblclick",i&&s<11?Gr(e,function(t){if(!rt(e,t)){var n=ir(e,t);if(n&&!pi(e,t)&&!wn(e.display,t)){st(t);var r=e.findWordAt(n);Wo(e.doc,r.anchor,r.head)}}}):function(t){return rt(e,t)||st(t)});k||Je(t.scroller,"contextmenu",function(t){return hi(e,t)});var n,r={end:0};function o(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function a(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}Je(t.scroller,"touchstart",function(o){if(!rt(e,o)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(o)&&!pi(e,o)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}}),Je(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Je(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!wn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var i,s=e.coordsChar(t.activeTouch,"page");i=!r.prev||a(r,r.prev)?new yo(s,s):!r.prev.prev||a(r,r.prev.prev)?e.findWordAt(s):new yo(me(s.line,0),Ee(e.doc,me(s.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),st(n)}o()}),Je(t.scroller,"touchcancel",o),Je(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Pr(e,t.scroller.scrollTop),Mr(e,t.scroller.scrollLeft,!0),nt(e,"scroll",e))}),Je(t.scroller,"mousewheel",function(t){return vo(e,t)}),Je(t.scroller,"DOMMouseScroll",function(t){return vo(e,t)}),Je(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){rt(e,t)||ct(t)},over:function(t){rt(e,t)||(!function(e,t){var n=ir(e,t);if(n){var r=document.createDocumentFragment();cr(e,n,r),e.display.dragCursor||(e.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,r)}}(e,t),ct(t))},start:function(t){return function(e,t){if(i&&(!e.state.draggingText||+new Date-Sa<100))ct(t);else if(!rt(e,t)&&!wn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var n=P("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:Gr(e,Oa),leave:function(t){rt(e,t)||Ta(e)}};var l=t.input.getField();Je(l,"keyup",function(t){return ai.call(e,t)}),Je(l,"keydown",Gr(e,oi)),Je(l,"keypress",Gr(e,ii)),Je(l,"focus",function(t){return vr(e,t)}),Je(l,"blur",function(t){return gr(e,t)})}(this),Ma(),Ur(this),this.curOp.forceUpdate=!0,No(this,o),t.autofocus&&!g||this.hasFocus()?setTimeout(I(vr,this),20):gr(this),yi)yi.hasOwnProperty(c)&&yi[c](r,t[c],vi);Er(this),t.finishInit&&t.finishInit(this);for(var p=0;p150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>a.first?F(se(a,t-1).text,null,i):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/i);p;--p)d+=i,f+="\t";if(d1)if(Ci&&Ci.text.join("\n")==t){if(r.ranges.length%Ci.text.length==0){u=[];for(var c=0;c=0;f--){var d=r.ranges[f],p=d.from(),h=d.to();d.empty()&&(n&&n>0?p=me(p.line,p.ch-n):e.state.overwrite&&!s?h=me(h.line,Math.min(se(a,h.line).text.length,h.ch+Y(l).length)):Ci&&Ci.lineWise&&Ci.text.join("\n")==t&&(p=h=me(p.line,0))),i=e.curOp.updateInput;var m={from:p,to:h,text:u?u[f%u.length]:l,origin:o||(s?"paste":e.state.cutIncoming?"cut":"+input")};oa(e.doc,m),sn(e,"inputRead",e,m)}t&&!s&&Pi(e,t),Cr(e),e.curOp.updateInput=i,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Ti(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||$r(t,function(){return Oi(t,n,0,null,"paste")}),!0}function Pi(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var a=e.getModeAt(o.head),i=!1;if(a.electricChars){for(var s=0;s-1){i=_i(e,o.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(se(e.doc,o.head.line).text.slice(0,o.head.ch))&&(i=_i(e,o.head.line,"smart"));i&&sn(e,"electricInput",e,o.head.line)}}}function Ni(e){for(var t=[],n=[],r=0;r=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=Ye(o,n.ch,n.sticky),i=o[a];if("ltr"==e.doc.direction&&i.level%2==0&&(r>0?i.to>n.ch:i.from=i.from&&d>=c.begin)){var p=f?"before":"after";return new me(n.line,d,p)}}var h=function(e,t,r){for(var a=function(e,t){return t?new me(n.line,l(e,1),"before"):new me(n.line,e,"after")};e>=0&&e0==(1!=i.level),u=s?r.begin:l(r.end,-1);if(i.from<=u&&u0?c.end:l(c.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:o.length-1,r,u(v)))?null:m}(e.cm,s,t,n):Ga(s,t,n))){if(r||(i=t.line+n)=e.first+e.size||(t=new me(i,t.ch,t.sticky),!(s=se(e,i))))return!1;t=Ka(o,e.cm,s,t.line,n)}else t=a;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,c="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||l(!d);d=!1){var p=s.text.charAt(t.ch)||"\n",h=te(p,f)?"w":c&&"\n"==p?"n":!c||/\s/.test(p)?null:"p";if(!c||d||h||(h="s"),u&&u!=h){n<0&&(n=1,l(),t.sticky="after");break}if(h&&(u=h),n>0&&!l(!d))break}var m=ea(e,t,a,i,!0);return ge(a,m)&&(m.hitSide=!0),m}function ji(e,t,n,r){var o,a,i=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*er(e.display),3);o=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;(a=Yn(e,s,o)).outside;){if(n<0?o<=0:o>=i.height){a.hitSide=!0;break}o+=5*n}return a}var Di=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ii(e,t){var n=Nn(e,t.line);if(!n||n.hidden)return null;var r=se(e.doc,t.line),o=Tn(n,r,t.line),a=Xe(r,e.doc.direction),i="left";a&&(i=Ye(a,t.ch)%2?"right":"left");var s=Dn(o.map,t.ch,i);return s.offset="right"==s.collapse?s.end:s.start,s}function Li(e,t){return t&&(e.bad=!0),e}function Fi(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Li(e.clipPos(me(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var o=0;o=t.display.viewTo||a.line=t.display.viewFrom&&Ii(t,o)||{node:l[0].measure.map[2],offset:0},c=a.liner.firstLine()&&(i=me(i.line-1,se(r.doc,i.line-1).length)),s.ch==se(r.doc,s.line).text.length&&s.lineo.viewTo-1)return!1;i.line==o.viewFrom||0==(e=sr(r,i.line))?(t=fe(o.view[0].line),n=o.view[0].node):(t=fe(o.view[e].line),n=o.view[e-1].node.nextSibling);var l,u,c=sr(r,s.line);if(c==o.view.length-1?(l=o.viewTo-1,u=o.lineDiv.lastChild):(l=fe(o.view[c+1].line)-1,u=o.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,o){var a="",i=!1,s=e.doc.lineSeparator();function l(){i&&(a+=s,i=!1)}function u(e){e&&(l(),a+=e)}function c(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void u(n||t.textContent.replace(/\u200b/g,""));var a,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(me(r,0),me(o+1,0),(m=+f,function(e){return e.id==m}));return void(d.length&&(a=d[0].find(0))&&u(le(e.doc,a.from,a.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p)$/i.test(t.nodeName);p&&l();for(var h=0;h1&&d.length>1;)if(Y(f)==Y(d))f.pop(),d.pop(),l--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var p=0,h=0,m=f[0],v=d[0],g=Math.min(m.length,v.length);pi.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var w=me(t,p),E=me(l,d.length?Y(d).length-h:0);return f.length>1||f[0]||ve(w,E)?(ua(r.doc,f,w,E,"+input"),!0):void 0},Di.prototype.ensurePolled=function(){this.forceCompositionEnd()},Di.prototype.reset=function(){this.forceCompositionEnd()},Di.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Di.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Di.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||$r(this.cm,function(){return Qr(e.cm)})},Di.prototype.setUneditable=function(e){e.contentEditable="false"},Di.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Gr(this.cm,Oi)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Di.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Di.prototype.onContextMenu=function(){},Di.prototype.resetPosition=function(){},Di.prototype.needsContentAttribute=!0;var Ui=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new z,this.hasSelection=!1,this.composing=null};Ui.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var o=this.textarea;function a(e){if(!rt(r,e)){if(r.somethingSelected())Si({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ni(r);Si({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,W):(n.prevInput="",o.value=t.text.join("\n"),D(o))}"cut"==e.type&&(r.state.cutIncoming=!0)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(o.style.width="0px"),Je(o,"input",function(){i&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),Je(o,"paste",function(e){rt(r,e)||Ti(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),Je(o,"cut",a),Je(o,"copy",a),Je(e.scroller,"paste",function(t){wn(e,t)||rt(r,t)||(r.state.pasteIncoming=!0,n.focus())}),Je(e.lineSpace,"selectstart",function(t){wn(e,t)||st(t)}),Je(o,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Je(o,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Ui.prototype.createField=function(e){this.wrapper=Ai(),this.textarea=this.wrapper.firstChild},Ui.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=ur(e);if(e.options.moveInputWithCursor){var o=$n(e,n.sel.primary().head,"div"),a=t.wrapper.getBoundingClientRect(),i=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+i.top-a.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+i.left-a.left))}return r},Ui.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ui.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&D(this.textarea),i&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",i&&s>=9&&(this.hasSelection=null))}},Ui.prototype.getField=function(){return this.textarea},Ui.prototype.supportsTouch=function(){return!1},Ui.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||A()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ui.prototype.blur=function(){this.textarea.blur()},Ui.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ui.prototype.receivedFocus=function(){this.slowPoll()},Ui.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ui.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Ui.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||xt(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(i&&s>=9&&this.hasSelection===o||y&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var a=o.charCodeAt(0);if(8203!=a||r||(r="​"),8666==a)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,o.length);l1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ui.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ui.prototype.onKeyPress=function(){i&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ui.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,o=t.textarea,a=ir(n,e),u=r.scroller.scrollTop;if(a&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&Gr(n,Ko)(n.doc,xo(a),W);var c=o.style.cssText,d=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var p,h=t.wrapper.getBoundingClientRect();if(o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(i?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(p=window.scrollY),r.input.focus(),l&&window.scrollTo(null,p),r.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=!0,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),i&&s>=9&&v(),k){ct(e);var m=function(){tt(window,"mouseup",m),setTimeout(g,20)};Je(window,"mouseup",m)}else setTimeout(g,50)}function v(){if(null!=o.selectionStart){var e=n.somethingSelected(),a="​"+(e?o.value:"");o.value="⇚",o.value=a,t.prevInput=e?"":"​",o.selectionStart=1,o.selectionEnd=a.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending=!1,t.wrapper.style.cssText=d,o.style.cssText=c,i&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=o.selectionStart){(!i||i&&s<9)&&v();var e=0,a=function(){r.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"​"==t.prevInput?Gr(n,na)(n):e++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(a,200)}}},Ui.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Ui.prototype.setUneditable=function(){},Ui.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,o,a){e.defaults[n]=r,o&&(t[n]=a?function(e,t,n){n!=vi&&o(e,t,n)}:o)}e.defineOption=n,e.Init=vi,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Co(e)},!0),n("indentUnit",2,Co,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){So(e),zn(e),Qr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var o=0;;){var a=e.text.indexOf(t,o);if(-1==a)break;o=a+t.length,n.push(me(r,a))}r++});for(var o=n.length-1;o>=0;o--)ua(e.doc,t,n[o],me(n[o].line,n[o].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=vi&&e.refresh()}),n("specialCharPlaceholder",Xt,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){mi(e),bi(e)},!0),n("keyMap","default",function(e,t,n){var r=qa(t),o=n!=vi&&qa(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,wi,!0),n("gutters",[],function(e){co(e.options),bi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?rr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Dr(e)},!0),n("scrollbarStyle","native",function(e){Fr(e),Dr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e){co(e.options),bi(e)},!0),n("firstLineNumber",1,bi,!0),n("lineNumberFormatter",function(e){return e},bi,!0),n("showCursorWhenSelecting",!1,lr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("readOnly",!1,function(e,t){"nocursor"==t&&(gr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,xi),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,lr,!0),n("singleCursorHeightPerLine",!0,lr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,So,!0),n("addModeClass",!1,So,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,So,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(Ei),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,o=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Gr(this,t[e])(this,n,o),nt(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](qa(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(_i(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&Cr(this));else{var a=o.from(),i=o.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),i.line-(i.ch?0:1))+1;for(var l=s;l0&&Vo(this.doc,r,new yo(a,u[r].to()),W)}}}),getTokenAt:function(e,t){return Ht(this,e,t)},getLineTokens:function(e,t){return Ht(this,me(e),t,!0)},getTokenTypeAt:function(e){e=Ee(this.doc,e);var t,n=It(this,se(this.doc,e.line)),r=0,o=(n.length-1)/2,a=e.ch;if(0==a)t=n[2];else for(;;){var i=r+o>>1;if((i?n[2*i-1]:0)>=a)o=i;else{if(!(n[2*i+1]a&&(e=a,o=!0),r=se(this.doc,e)}else r=e;return Wn(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-Ve(r):0)},defaultTextHeight:function(){return er(this.display)},defaultCharWidth:function(){return tr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var a,i,s,l=this.display,u=(e=$n(this,Ee(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)u=e.top;else if("above"==r||"near"==r){var f=Math.max(l.wrapper.clientHeight,this.doc.height),d=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(u=e.bottom),c+t.offsetWidth>d&&(c=d-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==o?(c=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?c=0:"middle"==o&&(c=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(a=this,i={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=kr(a,i)).scrollTop&&Pr(a,s.scrollTop),null!=s.scrollLeft&&Mr(a,s.scrollLeft))},triggerOnKeyDown:Kr(oi),triggerOnKeyPress:Kr(ii),triggerOnKeyUp:ai,triggerOnMouseDown:Kr(ci),execCommand:function(e){if(Ya.hasOwnProperty(e))return Ya[e].call(null,this)},triggerElectric:Kr(function(e){Pi(this,e)}),findPosH:function(e,t,n,r){var o=1;t<0&&(o=-1,t=-t);for(var a=Ee(this.doc,e),i=0;i0&&i(t.charAt(n-1));)--n;for(;r.5)&&ar(this),nt(this,"refresh",this)}),swapDoc:Kr(function(e){var t=this.doc;return t.cm=null,No(this,e),zn(this),this.display.input.reset(),Sr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,sn(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},it(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,a){e.registerHelper(t,r,a),n[t]._global.push({pred:o,val:a})}}(Ei);var Bi,Hi="iter insert remove copy getEditor constructor".split(" ");for(var Wi in Ca.prototype)Ca.prototype.hasOwnProperty(Wi)&&U(Hi,Wi)<0&&(Ei.prototype[Wi]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ca.prototype[Wi]));return it(Ca),Ei.inputStyles={textarea:Ui,contenteditable:Di},Ei.defineMode=function(e){Ei.defaults.mode||"null"==e||(Ei.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),kt[e]=t}.apply(this,arguments)},Ei.defineMIME=function(e,t){_t[e]=t},Ei.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ei.defineMIME("text/plain","null"),Ei.defineExtension=function(e,t){Ei.prototype[e]=t},Ei.defineDocExtension=function(e,t){Ca.prototype[e]=t},Ei.fromTextArea=function(e,t){if((t=t?L(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=A();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var o;if(e.form&&(Je(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var a=e.form;o=a.submit;try{var i=a.submit=function(){r(),a.submit=o,a.submit(),a.submit=i}}catch(e){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(tt(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=o))}},e.style.display="none";var s=Ei(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},(Bi=Ei).off=tt,Bi.on=Je,Bi.wheelEventPixels=mo,Bi.Doc=Ca,Bi.splitLines=bt,Bi.countColumn=F,Bi.findColumn=$,Bi.isWordChar=ee,Bi.Pass=H,Bi.signal=nt,Bi.Line=Vt,Bi.changeEnd=wo,Bi.scrollbarModel=Lr,Bi.Pos=me,Bi.cmpPos=ve,Bi.modes=kt,Bi.mimeModes=_t,Bi.resolveMode=Ct,Bi.getMode=St,Bi.modeExtensions=Ot,Bi.extendMode=Tt,Bi.copyState=Pt,Bi.startState=Mt,Bi.innerMode=Nt,Bi.commands=Ya,Bi.keyMap=La,Bi.keyName=Wa,Bi.isModifierKey=Ba,Bi.lookupKey=Ua,Bi.normalizeKeyMap=za,Bi.StringStream=At,Bi.SharedTextMarker=wa,Bi.TextMarker=ba,Bi.LineWidget=va,Bi.e_preventDefault=st,Bi.e_stopPropagation=lt,Bi.e_stop=ct,Bi.addClass=R,Bi.contains=M,Bi.rmClass=S,Bi.keyNames=Ra,Ei.version="5.37.0",Ei},e.exports=r()},function(e,t,n){"use strict";(function(e){t.__esModule=!0;var r=s(n(702)),o=s(n(705)),a=s(n(304)),i=s(n(305));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(t){var n=(0,r.default)(function(e,t){return!(0,o.default)(e,t)});return"production"!==e.env.NODE_ENV?(0,a.default)((0,i.default)(t,"pure"))(n(t)):n(t)}}).call(t,n(2))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(706))},function(e,t,n){var r=n(39),o=n(21),a=n(57),i=n(49),s=n(60),l=function(e,t,n){var u,c,f,d=e&l.F,p=e&l.G,h=e&l.S,m=e&l.P,v=e&l.B,g=e&l.W,y=p?o:o[t]||(o[t]={}),b=y.prototype,x=p?r:h?r[t]:(r[t]||{}).prototype;for(u in p&&(n=t),n)(c=!d&&x&&void 0!==x[u])&&s(y,u)||(f=c?x[u]:n[u],y[u]=p&&"function"!=typeof x[u]?n[u]:v&&c?a(f,r):g&&x[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):m&&"function"==typeof f?a(Function.call,f):f,m&&((y.virtual||(y.virtual={}))[u]=f,e&l.R&&b&&!b[u]&&i(b,u,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var r=n(142)("wks"),o=n(103),a=n(39).Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"g",function(){return c}),n.d(t,"a",function(){return f}),n.d(t,"d",function(){return u}),n.d(t,"c",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"f",function(){return a}),n.d(t,"h",function(){return o});var r=n(66);function o(){return"editor"===r.a.getState().viewMode}function a(){return"command"===r.a.getState().mode&&o()}function i(){return r.a.getState().cells}function s(){const{cells:e}=r.a.getState(),t=e.findIndex(e=>e.selected);if(t===e.length-1)return null;if(t>=0&&te.selected);if(0===t)return null;if(t>0&&t<=e.length-1)return e[t-1].id;throw new Error("no cell currently selected")}function u(e,t){return e[e.findIndex(e=>e.id===t)]}function c(e){const t=new Date(e),n=((new Date).getTime()-t.getTime())/1e3,r=Math.floor(n/86400);return Number.isNaN(r)||r<0||r>0?`${t.getDate()} ${t.toDateString().split(" ")[1]}`:0===r&&((n<60?"just now":n<120&&"1 minute ago")||n<3600&&`${Math.floor(n/60)} minutes ago`||n<7200&&"1 hour ago"||n<86400&&`${Math.floor(n/3600)} hours ago`)||1===r&&"Yesterday"||r<7&&`${r} days ago`||r<31&&`${Math.ceil(r/7)} weeks ago`}function f(e){return new Date(e).toUTCString()}},function(e,t,n){var r=n(58),o=n(216),a=n(136),i=Object.defineProperty;t.f=n(40)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(34),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,a.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(232)),o=i(n(433)),a="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function i(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===a(r.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":a(e)}},function(e,t,n){var r=n(156)("wks"),o=n(107),a=n(51).Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(442)),o=i(n(446)),a=i(n(34));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,a.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.temporarilySaveRunningCellID=g,t.updateAppMessages=y,t.importNotebook=b,t.importFromURL=function(e){return t=>(t(b(e)),t(y({message:"Notebook successfully imported from URL."})),Promise.resolve())},t.exportNotebook=function(e=!1,t=!1){return{type:"EXPORT_NOTEBOOK",exportAsReport:e,exportToClipboard:t}},t.saveNotebook=function(e=!1){return{type:"SAVE_NOTEBOOK",autosave:e}},t.loadNotebook=function(e){return{type:"LOAD_NOTEBOOK",title:e}},t.deleteNotebook=function(e){return{type:"DELETE_NOTEBOOK",title:e}},t.newNotebook=function(){return{type:"NEW_NOTEBOOK"}},t.clearVariables=function(){return{type:"CLEAR_VARIABLES"}},t.changePageTitle=function(e){return{type:"CHANGE_PAGE_TITLE",title:e}},t.changeMode=function(e){return{type:"CHANGE_MODE",mode:e}},t.setViewMode=function(e){return{type:"SET_VIEW_MODE",viewMode:e}},t.updateInputContent=function(e){return{type:"UPDATE_INPUT_CONTENT",content:e}},t.changeCellType=x,t.appendToEvalHistory=w,t.updateCellProperties=E,t.incrementExecutionNumber=k,t.updateUserVariables=_,t.addLanguage=C,t.evaluateCell=S,t.evaluateAllCells=function(e){return t=>{let n=Promise.resolve();e.forEach(e=>{"css"!==e.cellType||e.skipInRunAll||(n=n.then(()=>t(S(e.id))))}),e.forEach(e=>{"markdown"!==e.cellType||e.skipInRunAll||(n=n.then(()=>t(S(e.id))))}),e.forEach(e=>{"markdown"===e.cellType||"css"===e.cellType||e.skipInRunAll||(n=n.then(()=>t(S(e.id))))})}},t.setCellRowCollapsedState=function(e,t,n,r){return{type:"SET_CELL_ROW_COLLAPSE_STATE",viewMode:e,rowType:t,rowOverflow:n,cellId:r}},t.markCellNotRendered=function(){return{type:"MARK_CELL_NOT_RENDERED"}},t.login=function(){return window.open("/oauth/login/github","github_login","width=500,height=600").focus(),e=>{window.loginSuccess=(t=>{e((t=t,e=>{e({type:"LOGIN_SUCCESS",userData:t}),e(y({message:"You are logged in"}))}))}),window.loginFailure=(()=>e(e=>{e(y({message:"Login Failed"}))}))};var e},t.logout=function(){return e=>{fetch("/logout/").then(t=>{t.ok?(e({type:"LOGOUT"}),e(y({message:"Logged Out"}))):e(y({message:"Logout Failed"}))})}},t.exportGist=function(){const e="https://api.github.com";return(t,n)=>{const r=n(),o=Object(u.e)(r.title);let a,i=!1;const s={description:r.title,public:!0,files:{[o]:{content:Object(u.a)(r)}}};fetch(`${e}/gists?access_token=${r.userData.accessToken}`).then(e=>e.json()).then(t=>{if(!(a=t.filter(e=>e.description===s.description&&1===Object.keys(e.files).length&&Object.keys(e.files)[0]===o)).length)return fetch(`${e}/gists?access_token=${r.userData.accessToken}`,{body:JSON.stringify(s),method:"POST"});i=!0;const n=a[0].id;return fetch(`${e}/gists/${n}?access_token=${r.userData.accessToken}`,{body:JSON.stringify(s),method:"PATCH"})}).then(e=>e.json()).then(e=>{const n=i?"Updated Gist":"Exported to GitHub Gist";t(y({message:n,details:`${n}
Gist -\n Runnable notebook`}))})}},t.cellUp=function(){return{type:"CELL_UP"}},t.cellDown=function(){return{type:"CELL_DOWN"}},t.insertCell=function(e,t){return{type:"INSERT_CELL",cellType:e,direction:t}},t.addCell=function(e){return{type:"ADD_CELL",cellType:e}},t.selectCell=function(e,t=!1){return{type:"SELECT_CELL",id:e,scrollToCell:t}},t.deleteCell=function(){return{type:"DELETE_CELL"}},t.changeElementType=function(e){return{type:"CHANGE_ELEMENT_TYPE",elementType:e}},t.changeDOMElementID=function(e){return{type:"CHANGE_DOM_ELEMENT_ID",elemID:e}},t.changeSidePaneMode=function(e){return{type:"CHANGE_SIDE_PANE_MODE",mode:e}},t.changeSidePaneWidth=function(e){return{type:"CHANGE_SIDE_PANE_WIDTH",widthShift:e}},t.setCellSkipInRunAll=function(e){return(t,n)=>{let r=e;void 0===r&&(r=!Object(f.c)(n()).skipInRunAll),t(E(Object(f.c)(n()).id,{skipInRunAll:r}))}},t.saveEnvironment=function(e,t){return{type:"SAVE_ENVIRONMENT",updateObj:e,update:t}};var r=n(276),o=n.n(r),a=n(285),i=n.n(a),s=n(289),l=n.n(s),u=n(93),c=n(30),f=n(290),d=n(291),p=n(292);let h=Promise.resolve();const m=o()({html:!0});m.use(i.a).use(l.a);const v=n(25);function g(e){return{type:"TEMPORARILY_SAVE_RUNNING_CELL_ID",cellID:e}}function y(e){const{message:t}=e;let{details:n,when:r}=e;return void 0===r&&(r=(new Date).toString()),void 0===n&&(n=t),{type:"UPDATE_APP_MESSAGES",message:{message:t,details:n,when:r}}}function b(e){return{type:"IMPORT_NOTEBOOK",newState:e}}function x(e,t="js"){return(n,r)=>{Object(c.f)(r())&&n({type:"CHANGE_CELL_TYPE",cellType:e,language:t})}}function w(e,t){return{type:"APPEND_TO_EVAL_HISTORY",cellId:e,content:t}}function E(e,t){return{type:"UPDATE_CELL_PROPERTIES",cellId:e,updatedProperties:t}}function k(){return{type:"INCREMENT_EXECUTION_NUMBER"}}function _(){return{type:"UPDATE_USER_VARIABLES"}}function C(e){return{type:"ADD_LANGUAGE",languageDefinition:e}}function S(e){return(t,n)=>{let r,o;return"code"===(o=void 0===e?Object(f.c)(n()):Object(c.d)(n().cells,e)).cellType?r=h=h.then(()=>t((o=o,(e,t)=>{const n=t();let r,a;const i=o.content,s=n.languages[o.language].module,{evaluator:l}=n.languages[o.language];document.getElementById(`cell-${o.id}-side-effect-target`).innerHTML="",e(g(o.id));try{r=window[s][l](i)}catch(e){r=e,a="ERROR"}return Promise.resolve().then(()=>{const t={value:r,rendered:!0};"ERROR"===a&&(t.evalStatus=a),e(E(o.id,t)),e({type:"INCREMENT_EXECUTION_NUMBER"}),e(w(o.id,o.content)),e({type:"UPDATE_USER_VARIABLES"})}).then(d.b).then(()=>e(g(void 0)))}))):"markdown"===o.cellType?r=t(function(e){return t=>t(E(e.id,{value:m.render(e.content),rendered:!0,evalStatus:"SUCCESS"}))}(o)):"external dependencies"===o.cellType?r=t(function(e){return(t,n)=>{const r=[...n().externalDependencies],o=e.content.split("\n").filter(e=>"//"!==e.trim().slice(0,2)).filter(e=>!r.includes(e)).map(f.a);o.forEach(e=>{r.includes(e.src)||r.push(e.src)});const a=o.map(e=>e.status).includes("error")?"ERROR":"SUCCESS";t(E(e.id,{value:new Array(...[...e.value||[],...o]),rendered:!0,evalStatus:a})),o.length&&t(w(e.id,`// added external dependencies:\n${o.map(e=>`// ${e.src}`).join("\n")}`)),t({type:"INCREMENT_EXECUTION_NUMBER"}),t({type:"UPDATE_USER_VARIABLES"})}}(o)):"css"===o.cellType?r=t(function(e){return t=>{t(E(e.id,{value:e.content,rendered:!0,evalStatus:"SUCCESS"}))}}(o)):"plugin"===o.cellType?r="language"===JSON.parse(o.content).pluginType?h=h.then(()=>t(function(e){return t=>{let n,r,o,a;try{n=JSON.parse(e.content)}catch(e){r=`plugin definition failed to parse:\n${e.message}`,o="ERROR"}if(void 0===n.url)r='plugin definition missing "url"',o="ERROR",t(E(e.id,{value:r,evalStatus:o,rendered:!0}));else{const{url:i,keybinding:s,languageId:l,displayName:u}=n;a=new Promise((a,c)=>{const f=new XMLHttpRequest;f.addEventListener("progress",n=>{r=`downloading plugin: ${n.loaded} bytes loaded`,n.total>0&&(r+=`out of ${n.total} (${n.loaded/n.total}%)`),o="ASYNC_PENDING",t(E(e.id,{value:r,evalStatus:o,rendered:!0}))}),f.addEventListener("load",()=>{r=`${u} plugin downloaded, initializing`,t(E(e.id,{value:r,evalStatus:o,rendered:!0})),Promise.resolve(window.eval(f.responseText)).then(()=>{r=`${u} plugin ready`,o="SUCCESS",t(C(n)),1===s.length&&"string"==typeof s&&Object(p.a)([s],()=>t(x("code",l))),t(E(e.id,{value:r,evalStatus:o,rendered:!0})),a()})}),f.addEventListener("error",()=>{r=`${u} plugin failed to load`,o="ERROR",t(E(e.id,{value:r,evalStatus:o,rendered:!0})),c()}),f.open("GET",i,!0),f.send(),v.requireMode(n.codeMirrorMode,()=>{})})}return a}}(o))):t(y({message:'No loader for plugin type or missing "pluginType" entry'})):o.rendered=!1,r};var t}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){e.exports=!n(59)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(51),o=n(23),a=n(158),i=n(72),s=function(e,t,n){var l,u,c,f=e&s.F,d=e&s.G,p=e&s.S,h=e&s.P,m=e&s.B,v=e&s.W,g=d?o:o[t]||(o[t]={}),y=g.prototype,b=d?r:p?r[t]:(r[t]||{}).prototype;for(l in d&&(n=t),n)(u=!f&&b&&void 0!==b[l])&&l in g||(c=u?b[l]:n[l],g[l]=d&&"function"!=typeof b[l]?n[l]:m&&u?a(c,r):v&&b[l]==c?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):h&&"function"==typeof c?a(Function.call,c):c,h&&((g.virtual||(g.virtual={}))[l]=c,e&s.R&&y&&!y[l]&&i(y,l,c)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){"use strict";(function(e){var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=function(t){if("production"!==e.env.NODE_ENV&&"string"!=typeof t)throw new Error("Material-UI: capitalize(string) expects a string argument.");return t.charAt(0).toUpperCase()+t.slice(1)},t.contains=s,t.findIndex=l,t.find=function(e,t){var n=l(e,t);return n>-1?e[n]:void 0},t.createChainedFunction=function(){for(var t=arguments.length,n=new Array(t),r=0;r":">","<":"<",'"':""","'":"'"},s=/[&><"']/g;function l(e){return i[e]}if("undefined"!=typeof document){var u=document.createElement("span");n="textContent"in u?function(e,t){e.textContent=t}:function(e,t){e.innerText=t}}e.exports={contains:function(e,t){return-1!==o(e,t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return(""+e).replace(s,l)},hyphenate:function(e){return e.replace(a,"-$1").toLowerCase()},indexOf:o,setTextContent:n,clearNode:function(e){n(e,"")}}},function(e,t,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l{if("values"===e||"contains"===e)throw Error(`disallowed enum name: ${e}`);this[e]=e}),Object.freeze(this)}values(){return Object.keys(this)}contains(e){return Object.keys(this).indexOf(e)>=0}},o=new r("VISIBLE","SCROLL","HIDDEN"),a=new r("code","markdown","raw","css","external dependencies","plugin");t.b=a;const i=new r("UNEVALUATED","PENDING","ASYNC_PENDING","SUCCESS","ERROR");a.values(),i.values();function s(e){return{HIDDEN:"VISIBLE",VISIBLE:"SCROLL",SCROLL:"HIDDEN"}[e]}const l='{\n "pluginType": ""\n "languageId": "",\n "displayName": "",\n "codeMirrorMode": "",\n "keybinding": "",\n "url": "",\n "module": "",\n "evaluator": ""\n}';function u(e,t,n="js"){return{content:"plugin"===t?l:"",id:e,cellType:t,value:void 0,rendered:!1,selected:!1,asyncProcessCount:0,executionStatus:" ",evalStatus:"UNEVALUATED",rowSettings:function(e){switch(e){case"code":return{EXPLORE:{input:"VISIBLE",sideeffect:"VISIBLE",output:"VISIBLE"},REPORT:{input:"HIDDEN",sideeffect:"VISIBLE",output:"HIDDEN"}};case"markdown":return{EXPLORE:{input:"VISIBLE",output:"VISIBLE"},REPORT:{input:"VISIBLE",output:"VISIBLE"}};case"external dependencies":case"plugin":return{EXPLORE:{input:"VISIBLE",output:"VISIBLE"},REPORT:{input:"HIDDEN",output:"HIDDEN"}};case"css":case"raw":return{EXPLORE:{input:"VISIBLE"},REPORT:{input:"HIDDEN"}};default:throw Error(`Unsupported cellType: ${e}`)}}(t),skipInRunAll:!1,language:n}}const c={pluginType:"language",languageId:"js",displayName:"Javascript",codeMirrorMode:"javascript",module:"window",evaluator:"eval",keybinding:"j",url:""};function f(){return{title:"untitled",cells:[],languages:{js:c},languageLastUsed:"js",userDefinedVarNames:[],lastSaved:void 0,userData:{},mode:"command",viewMode:"editor",sidePaneMode:void 0,sidePaneWidth:562,history:[],externalDependencies:[],executionNumber:0,appMessages:[],autoSave:void 0,locallySaved:[],savedEnvironment:{},runningCellID:void 0}}function d(e){return Math.max(-1,...e.map(e=>e.id))+1}function p(){const e=function(e,t="code",n="js"){const r=d(e.cells);return e.cells.push(u(r,t,n)),e}(f());return e.cells[0].selected=!0,Object.assign(e)}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(8),i=n(48),s=n(1),l=n.n(s),u=n(69),c=n.n(u),f=n(30),d=n(38),p=n(67);class h extends o.a.Component{constructor(e){super(e),this.handleCollapseButtonClick=this.handleCollapseButtonClick.bind(this)}componentDidUpdate(){this.props.uncollapseOnUpdate&&this.props.actions.setCellRowCollapsedState("editor","input",p.g.SCROLL)}handleCollapseButtonClick(){"editor"===this.props.viewMode&&this.props.actions.setCellRowCollapsedState("editor",this.props.rowType,Object(p.f)(this.props.rowOverflow))}render(){return o.a.createElement("div",{className:`cell-row ${this.props.rowType} ${this.props.rowOverflow}`},o.a.createElement(c.a,{classes:{root:"collapse-button-tooltip-wrapper",tooltip:"iodide-tooltip"},placement:this.props.collapseTooltipPlacement,title:this.props.tooltipText,enterDelay:600},o.a.createElement("div",{className:"collapse-button",onClick:this.handleCollapseButtonClick})),o.a.createElement("div",{className:"main-component"},this.props.children))}}h.propTypes={executionString:l.a.string,viewMode:l.a.oneOf(["editor","presentation"]),rowOverflow:l.a.oneOf(p.g.values()),rowType:l.a.string,collapseTooltipPlacement:l.a.string.isRequired,actions:l.a.shape({setCellRowCollapsedState:l.a.func.isRequired}).isRequired,children:l.a.node},t.a=Object(a.b)(function(e,t){const n=Object(f.d)(e.cells,t.cellId);let r;switch(e.viewMode){case"editor":r="EXPLORE";break;case"presentation":r="REPORT";break;default:throw Error(`Unsupported viewMode: ${e.viewMode}`)}const o=n.rowSettings[r][t.rowType],a="input"===t.rowType&&"code"===n.cellType?`[${n.executionStatus}]`:"",i=n.selected&&"editor"===e.viewMode&&"edit"===e.mode&&"input"===t.rowType&&o===p.g.HIDDEN,s=o===p.g.HIDDEN?"bottom":"right",l=`click to ${{HIDDEN:"expand",VISIBLE:"scroll",SCROLL:"collapse"}[o]} this ${t.rowType}`;return{cellId:t.cellId,viewMode:e.viewMode,uncollapseOnUpdate:i,executionString:a,rowOverflow:o,collapseTooltipPlacement:s,tooltipText:l}},function(e){return{actions:Object(i.b)(d,e)}})(h)},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(382))},function(e,t,n){var r=n(139);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){var r=n(52),o=n(87);e.exports=n(65)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t,n){var r=n(236),o=n(154);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(a="data"+(t-r||""),!o)return a}for(var s=a,u=o.split("/"),c=0;c{if("editor"===this.props.viewMode){const e=!1;this.props.selected||this.props.actions.selectCell(this.props.cellId,e)}}),t}render(){const e=`cell-container ${this.props.cellType}${this.props.selected?" selected-cell":""}${this.props.editingCell?" editing-cell":""}`;return o.a.createElement("div",{id:`cell-${this.props.cellId}`,className:e,onMouseDown:this.handleCellClick},o.a.createElement(d.a,{cellId:this.props.cellId}),o.a.createElement("div",{className:"cell-row-container"},this.props.children))}}p.propTypes={selected:l.a.bool.isRequired,cellId:l.a.number.isRequired,children:l.a.node,editingCell:l.a.bool.isRequired,viewMode:l.a.oneOf(["editor","presentation"]),cellType:l.a.oneOf(f.b.values()),actions:l.a.shape({selectCell:l.a.func.isRequired}).isRequired};const h=Object(a.b)(function(e,t){const n=Object(c.d)(e.cells,t.cellId);return{cellId:n.id,selected:n.selected,editingCell:n.selected&&"edit"===e.mode,viewMode:e.viewMode,cellType:n.cellType}},function(e){return{actions:Object(i.b)(u,e)}})(p)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(8),i=n(48),s=n(1),l=n.n(s),u=n(306),c=n.n(u),f=n(713),d=(n.n(f),n(714)),p=(n.n(d),n(717)),h=(n.n(p),n(307)),m=(n.n(h),n(718)),v=(n.n(m),n(719)),g=(n.n(v),n(720)),y=(n.n(g),n(721)),b=(n.n(y),n(722)),x=(n.n(b),n(723)),w=(n.n(x),n(30)),E=n(38);{const e=n(25);e.modeUrl=`https://cdnjs.cloudflare.com/ajax/libs/codemirror/${e.version}/mode/%N/%N.js`,window.CodeMirror=e;const t={};function k(t,n){const r=e.modes[t].dependencies;if(!r)return n();const o=[];for(let t=0;t{0==(n-=1)&&e()}}(n,o.length);for(let t=0;t{if(Object.prototype.hasOwnProperty.call(e.modes,n))return k(n,r);if(Object.prototype.hasOwnProperty.call(t,n))return t[n].push(r);const o=e.modeUrl.replace(/%N/g,n),a=document.createElement("script");a.src=o;const i=document.getElementsByTagName("script")[0];t[n]=[r];const s=t[n];e.on(a,"load",()=>{k(n,()=>{for(let e=0;e{const t=this.editor.getCodeMirrorInstance();t.showHint(e,t.hint.javascript,{disableKeywords:!0,completeSingle:!1,completeOnSingleClick:!1})}),this.storeEditorElementRef=this.storeEditorElementRef.bind(this),this.handleFocusChange=this.handleFocusChange.bind(this),this.updateInputContent=this.updateInputContent.bind(this),this.storeEditorElementRef=this.storeEditorElementRef.bind(this)}componentDidMount(){this.props.thisCellBeingEdited&&this.refs.hasOwnProperty("editor")&&this.editor.focus()}componentDidUpdate(){this.props.thisCellBeingEdited?this.editor.focus():void 0!==this.editor.getCodeMirror().display.input.textarea&&this.editor.getCodeMirror().display.input.textarea.blur()}handleFocusChange(e){e&&"editor"===this.props.viewMode?this.props.thisCellBeingEdited||(this.props.actions.selectCell(this.props.cellId),this.props.actions.changeMode("edit")):e||"editor"!==this.props.viewMode||this.props.actions.changeMode("command")}storeEditorElementRef(e){this.editor=e,this.props.inputRef&&this.props.inputRef(e)}updateInputContent(e){this.props.actions.updateInputContent(e)}render(){const e=Object.assign({},{mode:this.props.languageIsAvailable?this.props.codeMirrorMode:"",lineWrapping:!1,matchBrackets:!0,autoCloseBrackets:!0,theme:"eclipse",autoRefresh:!0,lineNumbers:!0,keyMap:"sublime",extraKeys:{"Ctrl-Space":"javascript"===this.props.codeMirrorMode?this.autoComplete:void 0},comment:"javascript"===this.props.codeMirrorMode,readOnly:"presentation"===this.props.viewMode},this.props.editorOptions);return o.a.createElement("div",{className:"editor",style:this.props.containerStyle},o.a.createElement(c.a,{ref:this.storeEditorElementRef,value:this.props.content,options:e,onChange:this.updateInputContent,onFocusChange:this.handleFocusChange}))}}_.propTypes={cellId:l.a.number.isRequired,cellType:l.a.string,content:l.a.string,viewMode:l.a.oneOf(["editor","presentation"]),languageIsAvailable:l.a.bool,actions:l.a.shape({selectCell:l.a.func.isRequired,changeMode:l.a.func.isRequired,updateInputContent:l.a.func.isRequired}).isRequired,inputRef:l.a.func,containerStyle:l.a.object,editorOptions:l.a.object},t.a=Object(a.b)(function(e,t){const{cellId:n}=t,r=Object(w.d)(e.cells,n),o=r.language in e.languages?e.languages[r.language].module:null,a="code"===r.cellType?e.languages[r.language].codeMirrorMode:r.cellType;return{thisCellBeingEdited:r.selected&&"edit"===e.mode,viewMode:e.viewMode,cellType:r.cellType,content:r.content,cellId:n,codeMirrorMode:a,languageIsAvailable:"code"!==r.cellType||void 0!==window[o]}},function(e){return{actions:Object(i.b)(E,e)}})(_)},function(e,t,n){"use strict";t.c=g,t.b=function(e){b.unshift(e)};var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(732),l=n(733),u=n(734),c=n(741),f=n(743),d=n(744),p=n(745),h=n(746),m=n(747),v=n(781);function g(e,t=!1){for(const n of b)if(n.shouldHandle(e,t)){const r=n.render(e,t);if("string"==typeof r)return o.a.createElement("div",null,r);if(void 0!==r.tagName)return o.a.createElement("div",{dangerouslySetInnerHTML:{__html:r.outerHTML}});if(void 0!==r.type)return r;console.warn(`Unknown output handler result type from ${n}`)}}const y={shouldHandle:e=>void 0!==e&&"function"==typeof e.iodideRender,render:(e,t)=>{const n=e.iodideRender(t);if("string"==typeof n)return o.a.createElement("div",{dangerouslySetInnerHTML:{__html:n}})}},b=[{shouldHandle:e=>e instanceof Error,render:e=>{let{stack:t}=e;return e.lineNumber&&(t=`${e.name}: ${e.message}\n${t}`),o.a.createElement("div",{className:"error-output"},o.a.createElement("pre",null,t))}},s.a,l.a,y,u.a,c.a,f.a,d.a,p.a,m.a,h.a,v.a];class x extends o.a.Component{render(){if(!this.props.render||void 0===this.props.valueToRender)return o.a.createElement("div",{className:"empty-resultset"});const e=g(this.props.valueToRender);return void 0!==e?o.a.createElement("div",{className:"rep-container"},e):o.a.createElement("div",{className:"empty-resultset"})}}t.a=x,x.propTypes={render:i.a.bool.isRequired,valueToRender:i.a.any}},function(e,t,n){"use strict";(function(t){var n={};"production"!==t.env.NODE_ENV&&Object.freeze(n),e.exports=n}).call(t,n(2))},function(e,t,n){"use strict";(function(t){var r=n(56);if("production"!==t.env.NODE_ENV){r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?c(e,t):f(e,t)},t.fade=function(t,n){if("production"!==e.env.NODE_ENV&&(0,o.default)(t,"Material-UI: missing color argument in fade(".concat(t,", ").concat(n,").")),!t)return t;t=s(t),n=a(n),("rgb"===t.type||"hsl"===t.type)&&(t.type+="a");return t.values[3]=n,l(t)},t.darken=c,t.lighten=f;var o=r(n(14));function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return"production"!==e.env.NODE_ENV&&(0,o.default)(t>=n&&t<=r,"Material-UI: the value provided ".concat(t," is out of range [").concat(n,", ").concat(r,"].")),tr?r:t}function i(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb(".concat(n.map(function(e){return parseInt(e,16)}).join(", "),")"):""}function s(t){if("#"===t.charAt(0))return s(i(t));var n=t.indexOf("("),r=t.substring(0,n),o=t.substring(n+1,t.length-1).split(",");if(o=o.map(function(e){return parseFloat(e)}),"production"!==e.env.NODE_ENV&&-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(["Material-UI: unsupported `".concat(t,"` color."),"We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."].join("\n"));return{type:r,values:o}}function l(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")&&(n=n.map(function(e,t){return t<3?parseInt(e,10):e})),-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(e.type,"(").concat(n.join(", "),")")}function u(e){var t=s(e);if(-1!==t.type.indexOf("rgb")){var n=t.values.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}return t.values[2]/100}function c(t,n){if("production"!==e.env.NODE_ENV&&(0,o.default)(t,"Material-UI: missing color argument in darken(".concat(t,", ").concat(n,").")),!t)return t;if(t=s(t),n=a(n),-1!==t.type.indexOf("hsl"))t.values[2]*=1-n;else if(-1!==t.type.indexOf("rgb"))for(var r=0;r<3;r+=1)t.values[r]*=1-n;return l(t)}function f(t,n){if("production"!==e.env.NODE_ENV&&(0,o.default)(t,"Material-UI: missing color argument in lighten(".concat(t,", ").concat(n,").")),!t)return t;if(t=s(t),n=a(n),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*n;else if(-1!==t.type.indexOf("rgb"))for(var r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*n;return l(t)}}).call(t,n(2))},function(e,t,n){"use strict";(function(e){var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isNumber=t.isString=t.formatMs=t.duration=t.easing=void 0;var o=r(n(50)),a=r(n(4)),i=r(n(530)),s=r(n(14)),l={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};t.easing=l;var u={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};t.duration=u;var c=function(e){return"".concat(Math.round(e),"ms")};t.formatMs=c;var f=function(e){return"string"==typeof e};t.isString=f;var d=function(e){return!(0,i.default)(parseFloat(e))};t.isNumber=d;var p={easing:l,duration:u,create:function(){var t,n,r,i,p,h,m,v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=g.duration,n=void 0===t?u.standard:t,r=g.easing,i=void 0===r?l.easeInOut:r,p=g.delay,h=void 0===p?0:p,m=(0,a.default)(g,["duration","easing","delay"]),"production"!==e.env.NODE_ENV&&(0,s.default)(f(v)||Array.isArray(v),'Material-UI: argument "props" must be a string or Array.'),"production"!==e.env.NODE_ENV&&(0,s.default)(d(n)||f(n),'Material-UI: argument "duration" must be a number or a string but found '.concat(n,".")),"production"!==e.env.NODE_ENV&&(0,s.default)(f(i),'Material-UI: argument "easing" must be a string.'),"production"!==e.env.NODE_ENV&&(0,s.default)(d(h)||f(h),'Material-UI: argument "delay" must be a number or a string.'),"production"!==e.env.NODE_ENV&&(0,s.default)(0===(0,o.default)(m).length,"Material-UI: unrecognized argument(s) [".concat((0,o.default)(m).join(","),"]")),(Array.isArray(v)?v:[v]).map(function(e){return"".concat(e," ").concat("string"==typeof n?n:c(n)," ").concat(i," ").concat("string"==typeof h?h:c(h))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};t.default=p}).call(t,n(2))},function(e,t,n){"use strict";n.d(t,"c",function(){return v}),n.d(t,"d",function(){return g}),n.d(t,"a",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"e",function(){return x});var r=n(100),o=n.n(r),a=n(94),i=n.n(a),s=n(67),l=n(582),u=n.n(l);const c=["md","js","code","raw","resource","css","plugin"],f=new Map([["js","code"],["code","code"],["md","markdown"],["plugin","plugin"],["markdown","markdown"],["external","external dependencies"],["resource","external dependencies"],["raw","raw"],["css","css"]]),d=new Map([["plugin","plugin"],["code","code"],["markdown","md"],["external dependencies","resource"],["raw","raw"],["css","css"]]),p=["title","viewMode","lastSaved","languages","savedEnvironment"],h=["language","rowSettings.REPORT.input","rowSettings.REPORT.output","skipInRunAll"];function m(e,t,n){let r,o,a,l={};const u=e.indexOf("\n");-1===u?(a=e,o=""):(a=e.substring(0,u).trim(),o=e.substring(u+1).trim());const d=a.indexOf(" ");if(-1===d)r=a.toLowerCase();else{r=a.substring(0,d).toLowerCase();try{l=JSON.parse(a.substring(d+1))}catch(e){n.push({parseError:"failed to parse cell settings, using defaults",details:a,jsError:`${e.name}: ${e.message}`})}}let p;return p="meta"===r?function(e,t){let n;try{n=JSON.parse(e)}catch(r){t.push({parseError:"Failed to parse notebook settings from meta cell. Using default settings.",details:e,jsError:`${r.name}: ${r.message}`}),n={}}return{chunkType:"meta",iodideSettings:n}}(o,n):function(e,t,n,r,o,a){let l=f.get(e);-1===c.indexOf(e)&&(a.push({parseError:"invalid cell type, converted to js cell",details:`chunkType: ${e} chunkNum:${o} raw string: ${r}`}),l="code");const u=Object(s.c)(o,l);return u.content=t,Object.keys(n).forEach(e=>{i.a.includes(h,e)?i.a.set(u,e,n[e]):a.push({parseError:"invalid cell setting path",details:e})}),{chunkType:"cell",cell:u}}(r,o,l,e,t,n)}function v(e){const t=function(e){const t=[];return{chunkObjects:e.split("\n%%").map((e,t)=>{let n;return n=0===t&&"%%"===e.substring(0,2)?e.substring(2):e}).map(e=>e.trim()).filter(e=>""!==e).map((e,n)=>m(e,n,t)),parseWarnings:t}}(e),{chunkObjects:n}=t,{parseWarnings:r}=t;r.length>0&&console.warn("JSMD parse errors",r);const o=Object(s.a)(),a=n.filter(e=>"meta"===e.chunkType)[0];return a&&Object.assign(o,a.iodideSettings),n.filter(e=>"meta"!==e.chunkType).forEach(e=>{o.cells.push(e.cell)}),0===o.cells.length&&o.cells.push(Object(s.c)(0,"code")),o.cells[0].selected=!0,o}function g(e,t){const n=Object(s.e)(),r=e.cells.map(e=>{const t=Object(s.c)(0,e.cellType),n=function(e,t,n){const r={};return e.forEach(e=>{i.a.get(t,e)!==i.a.get(n,e)&&(r[e]=i.a.get(t,e))}),r}(h,e,t);let r=JSON.stringify(n),o=d.get(e.cellType);return`\n%% ${o="code"===o&&void 0===n.language?"js":o}${r="{}"===r?"":` ${r}`}\n${e.content}`}).join("\n").trim(),a={};for(const t of p)Object.prototype.hasOwnProperty.call(e,t)&&!o()(e[t],n[t])&&(a[t]=e[t]);a.lastExport=t;let l=JSON.stringify(a,void 0,2);return(l="{}"===l?"":`%% meta\n${l}\n\n`)+r}function y(e){return i.a.template(u.a)({NOTEBOOK_TITLE:e.title,APP_PATH_STRING:"https://iodide.io/master/",CSS_PATH_STRING:"https://iodide.io/master/",APP_VERSION_STRING:"master",JSMD:g(e,(new Date).toISOString())})}function b(e){return g(e,(new Date).toISOString())}function x(e){return`${e.replace(/[^a-z0-9]/gi,"-").toLowerCase()}.html`}},function(e,t,n){(function(e,r){var o; -/** - * @license - * Lodash - * Copyright JS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var a,i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",d=1,p=2,h=4,m=1,v=2,g=1,y=2,b=4,x=8,w=16,E=32,k=64,_=128,C=256,S=512,O=30,T="...",P=800,N=16,M=1,A=2,R=1/0,j=9007199254740991,D=1.7976931348623157e308,I=NaN,L=4294967295,F=L-1,z=L>>>1,U=[["ary",_],["bind",g],["bindKey",y],["curry",x],["curryRight",w],["flip",S],["partial",E],["partialRight",k],["rearg",C]],B="[object Arguments]",H="[object Array]",W="[object AsyncFunction]",q="[object Boolean]",V="[object Date]",$="[object DOMException]",G="[object Error]",K="[object Function]",Y="[object GeneratorFunction]",Q="[object Map]",X="[object Number]",Z="[object Null]",J="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ae="[object Undefined]",ie="[object WeakMap]",se="[object WeakSet]",le="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",fe="[object Float64Array]",de="[object Int8Array]",pe="[object Int16Array]",he="[object Int32Array]",me="[object Uint8Array]",ve="[object Uint8ClampedArray]",ge="[object Uint16Array]",ye="[object Uint32Array]",be=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,_e=RegExp(Ee.source),Ce=RegExp(ke.source),Se=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,Me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/[\\^$.*+?()[\]{}|]/g,Re=RegExp(Ae.source),je=/^\s+|\s+$/g,De=/^\s+/,Ie=/\s+$/,Le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,ze=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Be=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Ve=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Je+"]",nt="["+Ze+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",at="[a-z\\xdf-\\xf6\\xf8-\\xff]",it="[^\\ud800-\\udfff"+Je+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",lt="[^\\ud800-\\udfff]",ut="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+at+"|"+it+")",pt="(?:"+ft+"|"+it+")",ht="(?:"+nt+"|"+st+")"+"?",mt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[lt,ut,ct].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),vt="(?:"+[ot,ut,ct].join("|")+")"+mt,gt="(?:"+[lt+nt+"?",nt,ut,ct,et].join("|")+")",yt=RegExp("['’]","g"),bt=RegExp(nt,"g"),xt=RegExp(st+"(?="+st+")|"+gt+mt,"g"),wt=RegExp([ft+"?"+at+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+dt,"$"].join("|")+")",ft+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,vt].join("|"),"g"),Et=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),kt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_t=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ct=-1,St={};St[ce]=St[fe]=St[de]=St[pe]=St[he]=St[me]=St[ve]=St[ge]=St[ye]=!0,St[B]=St[H]=St[le]=St[q]=St[ue]=St[V]=St[G]=St[K]=St[Q]=St[X]=St[J]=St[te]=St[ne]=St[re]=St[ie]=!1;var Ot={};Ot[B]=Ot[H]=Ot[le]=Ot[ue]=Ot[q]=Ot[V]=Ot[ce]=Ot[fe]=Ot[de]=Ot[pe]=Ot[he]=Ot[Q]=Ot[X]=Ot[J]=Ot[te]=Ot[ne]=Ot[re]=Ot[oe]=Ot[me]=Ot[ve]=Ot[ge]=Ot[ye]=!0,Ot[G]=Ot[K]=Ot[ie]=!1;var Tt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pt=parseFloat,Nt=parseInt,Mt="object"==typeof e&&e&&e.Object===Object&&e,At="object"==typeof self&&self&&self.Object===Object&&self,Rt=Mt||At||Function("return this")(),jt="object"==typeof t&&t&&!t.nodeType&&t,Dt=jt&&"object"==typeof r&&r&&!r.nodeType&&r,It=Dt&&Dt.exports===jt,Lt=It&&Mt.process,Ft=function(){try{var e=Dt&&Dt.require&&Dt.require("util").types;return e||Lt&&Lt.binding&&Lt.binding("util")}catch(e){}}(),zt=Ft&&Ft.isArrayBuffer,Ut=Ft&&Ft.isDate,Bt=Ft&&Ft.isMap,Ht=Ft&&Ft.isRegExp,Wt=Ft&&Ft.isSet,qt=Ft&&Ft.isTypedArray;function Vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function $t(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o-1}function Zt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function wn(e,t){for(var n=e.length;n--&&ln(t,e[n],0)>-1;);return n}var En=pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function _n(e){return"\\"+Tt[e]}function Cn(e){return Et.test(e)}function Sn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function On(e,t){return function(n){return e(t(n))}}function Tn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n",""":'"',"'":"'"});var Dn=function e(t){var n,r=(t=null==t?Rt:Dn.defaults(Rt.Object(),t,Dn.pick(Rt,_t))).Array,o=t.Date,Ze=t.Error,Je=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,ot=t.TypeError,at=r.prototype,it=Je.prototype,st=tt.prototype,lt=t["__core-js_shared__"],ut=it.toString,ct=st.hasOwnProperty,ft=0,dt=(n=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",pt=st.toString,ht=ut.call(tt),mt=Rt._,vt=nt("^"+ut.call(ct).replace(Ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=It?t.Buffer:a,xt=t.Symbol,Et=t.Uint8Array,Tt=gt?gt.allocUnsafe:a,Mt=On(tt.getPrototypeOf,tt),At=tt.create,jt=st.propertyIsEnumerable,Dt=at.splice,Lt=xt?xt.isConcatSpreadable:a,Ft=xt?xt.iterator:a,on=xt?xt.toStringTag:a,pn=function(){try{var e=Ua(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),In=t.clearTimeout!==Rt.clearTimeout&&t.clearTimeout,Ln=o&&o.now!==Rt.Date.now&&o.now,Fn=t.setTimeout!==Rt.setTimeout&&t.setTimeout,zn=et.ceil,Un=et.floor,Bn=tt.getOwnPropertySymbols,Hn=gt?gt.isBuffer:a,Wn=t.isFinite,qn=at.join,Vn=On(tt.keys,tt),$n=et.max,Gn=et.min,Kn=o.now,Yn=t.parseInt,Qn=et.random,Xn=at.reverse,Zn=Ua(t,"DataView"),Jn=Ua(t,"Map"),er=Ua(t,"Promise"),tr=Ua(t,"Set"),nr=Ua(t,"WeakMap"),rr=Ua(tt,"create"),or=nr&&new nr,ar={},ir=fi(Zn),sr=fi(Jn),lr=fi(er),ur=fi(tr),cr=fi(nr),fr=xt?xt.prototype:a,dr=fr?fr.valueOf:a,pr=fr?fr.toString:a;function hr(e){if(Ts(e)&&!gs(e)&&!(e instanceof yr)){if(e instanceof gr)return e;if(ct.call(e,"__wrapped__"))return di(e)}return new gr(e)}var mr=function(){function e(){}return function(t){if(!Os(t))return{};if(At)return At(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function vr(){}function gr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function br(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ir(e,t,n,r,o,i){var s,l=t&d,u=t&p,c=t&h;if(n&&(s=o?n(e,r,o,i):n(e)),s!==a)return s;if(!Os(e))return e;var f=gs(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return oa(e,s)}else{var m=Wa(e),v=m==K||m==Y;if(ws(e))return Zo(e,l);if(m==J||m==B||v&&!o){if(s=u||v?{}:Va(e),!l)return u?function(e,t){return aa(e,Ha(e),t)}(e,function(e,t){return e&&aa(t,al(t),e)}(s,e)):function(e,t){return aa(e,Ba(e),t)}(e,Ar(s,e))}else{if(!Ot[m])return o?e:{};s=function(e,t,n){var r,o,a,i=e.constructor;switch(t){case le:return Jo(e);case q:case V:return new i(+e);case ue:return function(e,t){var n=t?Jo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ce:case fe:case de:case pe:case he:case me:case ve:case ge:case ye:return ea(e,n);case Q:return new i;case X:case re:return new i(e);case te:return(a=new(o=e).constructor(o.source,We.exec(o))).lastIndex=o.lastIndex,a;case ne:return new i;case oe:return r=e,dr?tt(dr.call(r)):{}}}(e,m,l)}}i||(i=new kr);var g=i.get(e);if(g)return g;if(i.set(e,s),Rs(e))return e.forEach(function(r){s.add(Ir(r,t,n,r,e,i))}),s;if(Ps(e))return e.forEach(function(r,o){s.set(o,Ir(r,t,n,o,e,i))}),s;var y=f?a:(c?u?Ra:Aa:u?al:ol)(e);return Gt(y||e,function(r,o){y&&(r=e[o=r]),Pr(s,o,Ir(r,t,n,o,e,i))}),s}function Lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var o=n[r],i=t[o],s=e[o];if(s===a&&!(o in e)||!i(s))return!1}return!0}function Fr(e,t,n){if("function"!=typeof e)throw new ot(l);return oi(function(){e.apply(a,n)},t)}function zr(e,t,n,r){var o=-1,a=Xt,s=!0,l=e.length,u=[],c=t.length;if(!l)return u;n&&(t=Jt(t,gn(n))),r?(a=Zt,s=!1):t.length>=i&&(a=bn,s=!1,t=new Er(t));e:for(;++o-1},xr.prototype.set=function(e,t){var n=this.__data__,r=Nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new br,map:new(Jn||xr),string:new br}},wr.prototype.delete=function(e){var t=Fa(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return Fa(this,e).get(e)},wr.prototype.has=function(e){return Fa(this,e).has(e)},wr.prototype.set=function(e,t){var n=Fa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Er.prototype.add=Er.prototype.push=function(e){return this.__data__.set(e,u),this},Er.prototype.has=function(e){return this.__data__.has(e)},kr.prototype.clear=function(){this.__data__=new xr,this.size=0},kr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},kr.prototype.get=function(e){return this.__data__.get(e)},kr.prototype.has=function(e){return this.__data__.has(e)},kr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xr){var r=n.__data__;if(!Jn||r.length0&&n(s)?t>1?Vr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var $r=ua(),Gr=ua(!0);function Kr(e,t){return e&&$r(e,t,ol)}function Yr(e,t){return e&&Gr(e,t,ol)}function Qr(e,t){return Qt(t,function(t){return _s(e[t])})}function Xr(e,t){for(var n=0,r=(t=Ko(t,e)).length;null!=e&&nt}function to(e,t){return null!=e&&ct.call(e,t)}function no(e,t){return null!=e&&t in tt(e)}function ro(e,t,n){for(var o=n?Zt:Xt,i=e[0].length,s=e.length,l=s,u=r(s),c=1/0,f=[];l--;){var d=e[l];l&&t&&(d=Jt(d,gn(t))),c=Gn(d.length,c),u[l]=!n&&(t||i>=120&&d.length>=120)?new Er(l&&d):a}d=e[0];var p=-1,h=u[0];e:for(;++p=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)})}function xo(e,t,n){for(var r=-1,o=t.length,a={};++r-1;)s!==e&&Dt.call(s,l,1),Dt.call(e,l,1);return e}function Eo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==a){var a=o;Ga(o)?Dt.call(e,o,1):Uo(e,o)}}return e}function ko(e,t){return e+Un(Qn()*(t-e+1))}function _o(e,t){var n="";if(!e||t<1||t>j)return n;do{t%2&&(n+=e),(t=Un(t/2))&&(e+=e)}while(t);return n}function Co(e,t){return ai(ti(e,t,Nl),e+"")}function So(e){return Cr(pl(e))}function Oo(e,t){var n=pl(e);return li(n,Dr(t,0,n.length))}function To(e,t,n,r){if(!Os(e))return e;for(var o=-1,i=(t=Ko(t,e)).length,s=i-1,l=e;null!=l&&++oa?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=r(a);++o>>1,i=e[a];null!==i&&!Ds(i)&&(n?i<=t:i=i){var c=t?null:_a(e);if(c)return Nn(c);s=!1,o=bn,u=new Er}else u=t?[]:l;e:for(;++r=r?e:Ao(e,t,n)}var Xo=In||function(e){return Rt.clearTimeout(e)};function Zo(e,t){if(t)return e.slice();var n=e.length,r=Tt?Tt(n):new e.constructor(n);return e.copy(r),r}function Jo(e){var t=new e.constructor(e.byteLength);return new Et(t).set(new Et(e)),t}function ea(e,t){var n=t?Jo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ta(e,t){if(e!==t){var n=e!==a,r=null===e,o=e==e,i=Ds(e),s=t!==a,l=null===t,u=t==t,c=Ds(t);if(!l&&!c&&!i&&e>t||i&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!i&&!c&&e1?n[o-1]:a,s=o>2?n[2]:a;for(i=e.length>3&&"function"==typeof i?(o--,i):a,s&&Ka(n[0],n[1],s)&&(i=o<3?a:i,o=1),t=tt(t);++r-1?o[i?t[s]:s]:a}}function ha(e){return Ma(function(t){var n=t.length,r=n,o=gr.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new ot(l);if(o&&!s&&"wrapper"==Da(i))var s=new gr([],!0)}for(r=s?r:n;++r1&&x.reverse(),d&&cl))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var f=-1,d=!0,p=n&v?new Er:a;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Gt(U,function(n){var r="_."+n[0];t&n[1]&&!Xt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Fe);return t?t[1].split(ze):[]}(r),n)))}function si(e){var t=0,n=0;return function(){var r=Kn(),o=N-(r-n);if(n=r,o>0){if(++t>=P)return arguments[0]}else t=0;return e.apply(a,arguments)}}function li(e,t){var n=-1,r=e.length,o=r-1;for(t=t===a?r:t;++n1?e[t-1]:a;return Ai(e,n="function"==typeof n?(e.pop(),n):a)});function zi(e){var t=hr(e);return t.__chain__=!0,t}function Ui(e,t){return t(e)}var Bi=Ma(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return jr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof yr&&Ga(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ui,args:[o],thisArg:a}),new gr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(a),e})):this.thru(o)});var Hi=ia(function(e,t,n){ct.call(e,n)?++e[n]:Rr(e,n,1)});var Wi=pa(vi),qi=pa(gi);function Vi(e,t){return(gs(e)?Gt:Ur)(e,La(t,3))}function $i(e,t){return(gs(e)?Kt:Br)(e,La(t,3))}var Gi=ia(function(e,t,n){ct.call(e,n)?e[n].push(t):Rr(e,n,[t])});var Ki=Co(function(e,t,n){var o=-1,a="function"==typeof t,i=bs(e)?r(e.length):[];return Ur(e,function(e){i[++o]=a?Vt(t,e,n):oo(e,t,n)}),i}),Yi=ia(function(e,t,n){Rr(e,n,t)});function Qi(e,t){return(gs(e)?Jt:ho)(e,La(t,3))}var Xi=ia(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Zi=Co(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ka(e,t[0],t[1])?t=[]:n>2&&Ka(t[0],t[1],t[2])&&(t=[t[0]]),bo(e,Vr(t,1),[])}),Ji=Ln||function(){return Rt.Date.now()};function es(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Sa(e,_,a,a,a,a,t)}function ts(e,t){var n;if("function"!=typeof t)throw new ot(l);return e=Bs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var ns=Co(function(e,t,n){var r=g;if(n.length){var o=Tn(n,Ia(ns));r|=E}return Sa(e,r,t,n,o)}),rs=Co(function(e,t,n){var r=g|y;if(n.length){var o=Tn(n,Ia(rs));r|=E}return Sa(t,r,e,n,o)});function os(e,t,n){var r,o,i,s,u,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new ot(l);function m(t){var n=r,i=o;return r=o=a,f=t,s=e.apply(i,n)}function v(e){var n=e-c;return c===a||n>=t||n<0||p&&e-f>=i}function g(){var e=Ji();if(v(e))return y(e);u=oi(g,function(e){var n=t-(e-c);return p?Gn(n,i-(e-f)):n}(e))}function y(e){return u=a,h&&r?m(e):(r=o=a,s)}function b(){var e=Ji(),n=v(e);if(r=arguments,o=this,c=e,n){if(u===a)return function(e){return f=e,u=oi(g,t),d?m(e):s}(c);if(p)return u=oi(g,t),m(c)}return u===a&&(u=oi(g,t)),s}return t=Ws(t)||0,Os(n)&&(d=!!n.leading,i=(p="maxWait"in n)?$n(Ws(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),b.cancel=function(){u!==a&&Xo(u),f=0,r=c=o=u=a},b.flush=function(){return u===a?s:y(Ji())},b}var as=Co(function(e,t){return Fr(e,1,t)}),is=Co(function(e,t,n){return Fr(e,Ws(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(l);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(ss.Cache||wr),n}function ls(e){if("function"!=typeof e)throw new ot(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=wr;var us=Yo(function(e,t){var n=(t=1==t.length&&gs(t[0])?Jt(t[0],gn(La())):Jt(Vr(t,1),gn(La()))).length;return Co(function(r){for(var o=-1,a=Gn(r.length,n);++o=t}),vs=ao(function(){return arguments}())?ao:function(e){return Ts(e)&&ct.call(e,"callee")&&!jt.call(e,"callee")},gs=r.isArray,ys=zt?gn(zt):function(e){return Ts(e)&&Jr(e)==le};function bs(e){return null!=e&&Ss(e.length)&&!_s(e)}function xs(e){return Ts(e)&&bs(e)}var ws=Hn||Wl,Es=Ut?gn(Ut):function(e){return Ts(e)&&Jr(e)==V};function ks(e){if(!Ts(e))return!1;var t=Jr(e);return t==G||t==$||"string"==typeof e.message&&"string"==typeof e.name&&!Ms(e)}function _s(e){if(!Os(e))return!1;var t=Jr(e);return t==K||t==Y||t==W||t==ee}function Cs(e){return"number"==typeof e&&e==Bs(e)}function Ss(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=j}function Os(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ts(e){return null!=e&&"object"==typeof e}var Ps=Bt?gn(Bt):function(e){return Ts(e)&&Wa(e)==Q};function Ns(e){return"number"==typeof e||Ts(e)&&Jr(e)==X}function Ms(e){if(!Ts(e)||Jr(e)!=J)return!1;var t=Mt(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==ht}var As=Ht?gn(Ht):function(e){return Ts(e)&&Jr(e)==te};var Rs=Wt?gn(Wt):function(e){return Ts(e)&&Wa(e)==ne};function js(e){return"string"==typeof e||!gs(e)&&Ts(e)&&Jr(e)==re}function Ds(e){return"symbol"==typeof e||Ts(e)&&Jr(e)==oe}var Is=qt?gn(qt):function(e){return Ts(e)&&Ss(e.length)&&!!St[Jr(e)]};var Ls=wa(po),Fs=wa(function(e,t){return e<=t});function zs(e){if(!e)return[];if(bs(e))return js(e)?Rn(e):oa(e);if(Ft&&e[Ft])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ft]());var t=Wa(e);return(t==Q?Sn:t==ne?Nn:pl)(e)}function Us(e){return e?(e=Ws(e))===R||e===-R?(e<0?-1:1)*D:e==e?e:0:0===e?e:0}function Bs(e){var t=Us(e),n=t%1;return t==t?n?t-n:t:0}function Hs(e){return e?Dr(Bs(e),0,L):0}function Ws(e){if("number"==typeof e)return e;if(Ds(e))return I;if(Os(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Os(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(je,"");var n=Ve.test(e);return n||Ge.test(e)?Nt(e.slice(2),n?2:8):qe.test(e)?I:+e}function qs(e){return aa(e,al(e))}function Vs(e){return null==e?"":Fo(e)}var $s=sa(function(e,t){if(Za(t)||bs(t))aa(t,ol(t),e);else for(var n in t)ct.call(t,n)&&Pr(e,n,t[n])}),Gs=sa(function(e,t){aa(t,al(t),e)}),Ks=sa(function(e,t,n,r){aa(t,al(t),e,r)}),Ys=sa(function(e,t,n,r){aa(t,ol(t),e,r)}),Qs=Ma(jr);var Xs=Co(function(e,t){e=tt(e);var n=-1,r=t.length,o=r>2?t[2]:a;for(o&&Ka(t[0],t[1],o)&&(r=1);++n1),t}),aa(e,Ra(e),n),r&&(n=Ir(n,d|p|h,Pa));for(var o=t.length;o--;)Uo(n,t[o]);return n});var ul=Ma(function(e,t){return null==e?{}:function(e,t){return xo(e,t,function(t,n){return el(e,n)})}(e,t)});function cl(e,t){if(null==e)return{};var n=Jt(Ra(e),function(e){return[e]});return t=La(t),xo(e,n,function(e,n){return t(e,n[0])})}var fl=Ca(ol),dl=Ca(al);function pl(e){return null==e?[]:yn(e,ol(e))}var hl=fa(function(e,t,n){return t=t.toLowerCase(),e+(n?ml(t):t)});function ml(e){return kl(Vs(e).toLowerCase())}function vl(e){return(e=Vs(e))&&e.replace(Ye,En).replace(bt,"")}var gl=fa(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),yl=fa(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bl=ca("toLowerCase");var xl=fa(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var wl=fa(function(e,t,n){return e+(n?" ":"")+kl(t)});var El=fa(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),kl=ca("toUpperCase");function _l(e,t,n){return e=Vs(e),(t=n?a:t)===a?function(e){return kt.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var Cl=Co(function(e,t){try{return Vt(e,a,t)}catch(e){return ks(e)?e:new Ze(e)}}),Sl=Ma(function(e,t){return Gt(t,function(t){t=ci(t),Rr(e,t,ns(e[t],e))}),e});function Ol(e){return function(){return e}}var Tl=ha(),Pl=ha(!0);function Nl(e){return e}function Ml(e){return uo("function"==typeof e?e:Ir(e,d))}var Al=Co(function(e,t){return function(n){return oo(n,e,t)}}),Rl=Co(function(e,t){return function(n){return oo(e,n,t)}});function jl(e,t,n){var r=ol(t),o=Qr(t,r);null!=n||Os(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Qr(t,ol(t)));var a=!(Os(n)&&"chain"in n&&!n.chain),i=_s(e);return Gt(o,function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=oa(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Dl(){}var Il=ya(Jt),Ll=ya(Yt),Fl=ya(rn);function zl(e){return Ya(e)?dn(ci(e)):function(e){return function(t){return Xr(t,e)}}(e)}var Ul=xa(),Bl=xa(!0);function Hl(){return[]}function Wl(){return!1}var ql=ga(function(e,t){return e+t},0),Vl=ka("ceil"),$l=ga(function(e,t){return e/t},1),Gl=ka("floor");var Kl,Yl=ga(function(e,t){return e*t},1),Ql=ka("round"),Xl=ga(function(e,t){return e-t},0);return hr.after=function(e,t){if("function"!=typeof t)throw new ot(l);return e=Bs(e),function(){if(--e<1)return t.apply(this,arguments)}},hr.ary=es,hr.assign=$s,hr.assignIn=Gs,hr.assignInWith=Ks,hr.assignWith=Ys,hr.at=Qs,hr.before=ts,hr.bind=ns,hr.bindAll=Sl,hr.bindKey=rs,hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},hr.chain=zi,hr.chunk=function(e,t,n){t=(n?Ka(e,t,n):t===a)?1:$n(Bs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,s=0,l=r(zn(o/t));io?0:o+n),(r=r===a||r>o?o:Bs(r))<0&&(r+=o),r=n>r?0:Hs(r);n>>0)?(e=Vs(e))&&("string"==typeof t||null!=t&&!As(t))&&!(t=Fo(t))&&Cn(e)?Qo(Rn(e),0,n):e.split(t,n):[]},hr.spread=function(e,t){if("function"!=typeof e)throw new ot(l);return t=null==t?0:$n(Bs(t),0),Co(function(n){var r=n[t],o=Qo(n,0,t);return r&&en(o,r),Vt(e,this,o)})},hr.tail=function(e){var t=null==e?0:e.length;return t?Ao(e,1,t):[]},hr.take=function(e,t,n){return e&&e.length?Ao(e,0,(t=n||t===a?1:Bs(t))<0?0:t):[]},hr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ao(e,(t=r-(t=n||t===a?1:Bs(t)))<0?0:t,r):[]},hr.takeRightWhile=function(e,t){return e&&e.length?Ho(e,La(t,3),!1,!0):[]},hr.takeWhile=function(e,t){return e&&e.length?Ho(e,La(t,3)):[]},hr.tap=function(e,t){return t(e),e},hr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ot(l);return Os(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),os(e,t,{leading:r,maxWait:t,trailing:o})},hr.thru=Ui,hr.toArray=zs,hr.toPairs=fl,hr.toPairsIn=dl,hr.toPath=function(e){return gs(e)?Jt(e,ci):Ds(e)?[e]:oa(ui(Vs(e)))},hr.toPlainObject=qs,hr.transform=function(e,t,n){var r=gs(e),o=r||ws(e)||Is(e);if(t=La(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:Os(e)&&_s(a)?mr(Mt(e)):{}}return(o?Gt:Kr)(e,function(e,r,o){return t(n,e,r,o)}),n},hr.unary=function(e){return es(e,1)},hr.union=Ti,hr.unionBy=Pi,hr.unionWith=Ni,hr.uniq=function(e){return e&&e.length?zo(e):[]},hr.uniqBy=function(e,t){return e&&e.length?zo(e,La(t,2)):[]},hr.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?zo(e,a,t):[]},hr.unset=function(e,t){return null==e||Uo(e,t)},hr.unzip=Mi,hr.unzipWith=Ai,hr.update=function(e,t,n){return null==e?e:Bo(e,t,Go(n))},hr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Bo(e,t,Go(n),r)},hr.values=pl,hr.valuesIn=function(e){return null==e?[]:yn(e,al(e))},hr.without=Ri,hr.words=_l,hr.wrap=function(e,t){return cs(Go(t),e)},hr.xor=ji,hr.xorBy=Di,hr.xorWith=Ii,hr.zip=Li,hr.zipObject=function(e,t){return Vo(e||[],t||[],Pr)},hr.zipObjectDeep=function(e,t){return Vo(e||[],t||[],To)},hr.zipWith=Fi,hr.entries=fl,hr.entriesIn=dl,hr.extend=Gs,hr.extendWith=Ks,jl(hr,hr),hr.add=ql,hr.attempt=Cl,hr.camelCase=hl,hr.capitalize=ml,hr.ceil=Vl,hr.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=Ws(n))==n?n:0),t!==a&&(t=(t=Ws(t))==t?t:0),Dr(Ws(e),t,n)},hr.clone=function(e){return Ir(e,h)},hr.cloneDeep=function(e){return Ir(e,d|h)},hr.cloneDeepWith=function(e,t){return Ir(e,d|h,t="function"==typeof t?t:a)},hr.cloneWith=function(e,t){return Ir(e,h,t="function"==typeof t?t:a)},hr.conformsTo=function(e,t){return null==t||Lr(e,t,ol(t))},hr.deburr=vl,hr.defaultTo=function(e,t){return null==e||e!=e?t:e},hr.divide=$l,hr.endsWith=function(e,t,n){e=Vs(e),t=Fo(t);var r=e.length,o=n=n===a?r:Dr(Bs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},hr.eq=ps,hr.escape=function(e){return(e=Vs(e))&&Ce.test(e)?e.replace(ke,kn):e},hr.escapeRegExp=function(e){return(e=Vs(e))&&Re.test(e)?e.replace(Ae,"\\$&"):e},hr.every=function(e,t,n){var r=gs(e)?Yt:Hr;return n&&Ka(e,t,n)&&(t=a),r(e,La(t,3))},hr.find=Wi,hr.findIndex=vi,hr.findKey=function(e,t){return an(e,La(t,3),Kr)},hr.findLast=qi,hr.findLastIndex=gi,hr.findLastKey=function(e,t){return an(e,La(t,3),Yr)},hr.floor=Gl,hr.forEach=Vi,hr.forEachRight=$i,hr.forIn=function(e,t){return null==e?e:$r(e,La(t,3),al)},hr.forInRight=function(e,t){return null==e?e:Gr(e,La(t,3),al)},hr.forOwn=function(e,t){return e&&Kr(e,La(t,3))},hr.forOwnRight=function(e,t){return e&&Yr(e,La(t,3))},hr.get=Js,hr.gt=hs,hr.gte=ms,hr.has=function(e,t){return null!=e&&qa(e,t,to)},hr.hasIn=el,hr.head=bi,hr.identity=Nl,hr.includes=function(e,t,n,r){e=bs(e)?e:pl(e),n=n&&!r?Bs(n):0;var o=e.length;return n<0&&(n=$n(o+n,0)),js(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&ln(e,t,n)>-1},hr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Bs(n);return o<0&&(o=$n(r+o,0)),ln(e,t,o)},hr.inRange=function(e,t,n){return t=Us(t),n===a?(n=t,t=0):n=Us(n),function(e,t,n){return e>=Gn(t,n)&&e<$n(t,n)}(e=Ws(e),t,n)},hr.invoke=rl,hr.isArguments=vs,hr.isArray=gs,hr.isArrayBuffer=ys,hr.isArrayLike=bs,hr.isArrayLikeObject=xs,hr.isBoolean=function(e){return!0===e||!1===e||Ts(e)&&Jr(e)==q},hr.isBuffer=ws,hr.isDate=Es,hr.isElement=function(e){return Ts(e)&&1===e.nodeType&&!Ms(e)},hr.isEmpty=function(e){if(null==e)return!0;if(bs(e)&&(gs(e)||"string"==typeof e||"function"==typeof e.splice||ws(e)||Is(e)||vs(e)))return!e.length;var t=Wa(e);if(t==Q||t==ne)return!e.size;if(Za(e))return!co(e).length;for(var n in e)if(ct.call(e,n))return!1;return!0},hr.isEqual=function(e,t){return io(e,t)},hr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?io(e,t,a,n):!!r},hr.isError=ks,hr.isFinite=function(e){return"number"==typeof e&&Wn(e)},hr.isFunction=_s,hr.isInteger=Cs,hr.isLength=Ss,hr.isMap=Ps,hr.isMatch=function(e,t){return e===t||so(e,t,za(t))},hr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,so(e,t,za(t),n)},hr.isNaN=function(e){return Ns(e)&&e!=+e},hr.isNative=function(e){if(Xa(e))throw new Ze(s);return lo(e)},hr.isNil=function(e){return null==e},hr.isNull=function(e){return null===e},hr.isNumber=Ns,hr.isObject=Os,hr.isObjectLike=Ts,hr.isPlainObject=Ms,hr.isRegExp=As,hr.isSafeInteger=function(e){return Cs(e)&&e>=-j&&e<=j},hr.isSet=Rs,hr.isString=js,hr.isSymbol=Ds,hr.isTypedArray=Is,hr.isUndefined=function(e){return e===a},hr.isWeakMap=function(e){return Ts(e)&&Wa(e)==ie},hr.isWeakSet=function(e){return Ts(e)&&Jr(e)==se},hr.join=function(e,t){return null==e?"":qn.call(e,t)},hr.kebabCase=gl,hr.last=ki,hr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==a&&(o=(o=Bs(n))<0?$n(r+o,0):Gn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,cn,o,!0)},hr.lowerCase=yl,hr.lowerFirst=bl,hr.lt=Ls,hr.lte=Fs,hr.max=function(e){return e&&e.length?Wr(e,Nl,eo):a},hr.maxBy=function(e,t){return e&&e.length?Wr(e,La(t,2),eo):a},hr.mean=function(e){return fn(e,Nl)},hr.meanBy=function(e,t){return fn(e,La(t,2))},hr.min=function(e){return e&&e.length?Wr(e,Nl,po):a},hr.minBy=function(e,t){return e&&e.length?Wr(e,La(t,2),po):a},hr.stubArray=Hl,hr.stubFalse=Wl,hr.stubObject=function(){return{}},hr.stubString=function(){return""},hr.stubTrue=function(){return!0},hr.multiply=Yl,hr.nth=function(e,t){return e&&e.length?yo(e,Bs(t)):a},hr.noConflict=function(){return Rt._===this&&(Rt._=mt),this},hr.noop=Dl,hr.now=Ji,hr.pad=function(e,t,n){e=Vs(e);var r=(t=Bs(t))?An(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return ba(Un(o),n)+e+ba(zn(o),n)},hr.padEnd=function(e,t,n){e=Vs(e);var r=(t=Bs(t))?An(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Qn();return Gn(e+o*(t-e+Pt("1e-"+((o+"").length-1))),t)}return ko(e,t)},hr.reduce=function(e,t,n){var r=gs(e)?tn:hn,o=arguments.length<3;return r(e,La(t,4),n,o,Ur)},hr.reduceRight=function(e,t,n){var r=gs(e)?nn:hn,o=arguments.length<3;return r(e,La(t,4),n,o,Br)},hr.repeat=function(e,t,n){return t=(n?Ka(e,t,n):t===a)?1:Bs(t),_o(Vs(e),t)},hr.replace=function(){var e=arguments,t=Vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hr.result=function(e,t,n){var r=-1,o=(t=Ko(t,e)).length;for(o||(o=1,e=a);++rj)return[];var n=L,r=Gn(e,L);t=La(t),e-=L;for(var o=vn(r,t);++n=i)return e;var l=n-An(r);if(l<1)return r;var u=s?Qo(s,0,l).join(""):e.slice(0,l);if(o===a)return u+r;if(s&&(l+=u.length-l),As(o)){if(e.slice(l).search(o)){var c,f=u;for(o.global||(o=nt(o.source,Vs(We.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var d=c.index;u=u.slice(0,d===a?l:d)}}else if(e.indexOf(Fo(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+r},hr.unescape=function(e){return(e=Vs(e))&&_e.test(e)?e.replace(Ee,jn):e},hr.uniqueId=function(e){var t=++ft;return Vs(e)+t},hr.upperCase=El,hr.upperFirst=kl,hr.each=Vi,hr.eachRight=$i,hr.first=bi,jl(hr,(Kl={},Kr(hr,function(e,t){ct.call(hr.prototype,t)||(Kl[t]=e)}),Kl),{chain:!1}),hr.VERSION="4.17.10",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){hr[e].placeholder=hr}),Gt(["drop","take"],function(e,t){yr.prototype[e]=function(n){n=n===a?1:$n(Bs(n),0);var r=this.__filtered__&&!t?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Gn(n,r.__takeCount__):r.__views__.push({size:Gn(n,L),type:e+(r.__dir__<0?"Right":"")}),r},yr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==M||3==n;yr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:La(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Gt(["head","last"],function(e,t){var n="take"+(t?"Right":"");yr.prototype[e]=function(){return this[n](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");yr.prototype[e]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Nl)},yr.prototype.find=function(e){return this.filter(e).head()},yr.prototype.findLast=function(e){return this.reverse().find(e)},yr.prototype.invokeMap=Co(function(e,t){return"function"==typeof e?new yr(this):this.map(function(n){return oo(n,e,t)})}),yr.prototype.reject=function(e){return this.filter(ls(La(e)))},yr.prototype.slice=function(e,t){e=Bs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=Bs(t))<0?n.dropRight(-t):n.take(t-e)),n)},yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},yr.prototype.toArray=function(){return this.take(L)},Kr(yr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=hr[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(hr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof yr,u=s[0],c=l||gs(t),f=function(e){var t=o.apply(hr,en([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=i&&!d,m=l&&!p;if(!i&&c){t=m?t:new yr(this);var v=e.apply(t,s);return v.__actions__.push({func:Ui,args:[f],thisArg:a}),new gr(v,d)}return h&&m?e.apply(this,s):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);hr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(gs(o)?o:[],e)}return this[n](function(n){return t.apply(gs(n)?n:[],e)})}}),Kr(yr.prototype,function(e,t){var n=hr[t];if(n){var r=n.name+"";(ar[r]||(ar[r]=[])).push({name:t,func:n})}}),ar[ma(a,y).name]=[{name:"wrapper",func:a}],yr.prototype.clone=function(){var e=new yr(this.__wrapped__);return e.__actions__=oa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=oa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=oa(this.__views__),e},yr.prototype.reverse=function(){if(this.__filtered__){var e=new yr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},yr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=gs(e),r=t<0,o=n?e.length:0,a=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},hr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=di(n);r.__index__=0,r.__values__=a,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof yr){var t=e;return this.__actions__.length&&(t=new yr(this)),(t=t.reverse()).__actions__.push({func:Ui,args:[Oi],thisArg:a}),new gr(t,this.__chain__)}return this.thru(Oi)},hr.prototype.toJSON=hr.prototype.valueOf=hr.prototype.value=function(){return Wo(this.__wrapped__,this.__actions__)},hr.prototype.first=hr.prototype.head,Ft&&(hr.prototype[Ft]=function(){return this}),hr}();Rt._=Dn,(o=function(){return Dn}.call(t,n,t,r))===a||(r.exports=o)}).call(this)}).call(t,n(9),n(182)(e))},function(e,t,n){var r=n(116),o={xHeight:.431,quad:1,num1:.677,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,supDrop:.386,subDrop:.05,axisHeight:.25,defaultRuleThickness:.04,bigOpSpacing1:.111,bigOpSpacing2:.166,bigOpSpacing3:.2,bigOpSpacing4:.6,bigOpSpacing5:.1,ptPerEm:10,emPerEx:.431,doubleRuleSep:.2,delim1:2.39,getDelim2:function(e){if(e.size===r.TEXT.size)return 1.01;if(e.size===r.SCRIPT.size)return.81;if(e.size===r.SCRIPTSCRIPT.size)return.71;throw new Error("Unexpected style size: "+e.size)}},a=n(640);e.exports={metrics:o,getCharacterMetrics:function(e,t){var n=a[t][e.charCodeAt(0)];if(n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}}},function(e,t,n){"use strict";const r={noCallback:"you must provide either a callback, a keybindingCalblack, or both (if the callbacks differ)",noKeybindingsWithCallback:"keybindingCallback supplied, but no keybindings were declared",argumentMustBeObject:"must provide an object as an argument",noTitleSupplied:"no title supplied",callbackIsNotFunction:"the callback supplied is not a function",keybindingsNotArray:"keybindings must be in the form of an array"};t.a=class{constructor(e){if(!(e instanceof Object&&e.constructor===Object))throw new TypeError(r.argumentMustBeObject);if(!e.keybindingCallback&&!e.callback)throw new TypeError(r.noCallback);if(e.keybindingCallback&&!e.keybindings)throw new TypeError(r.noKeybindingsWithCallback);if(e.keybindings&&!Array.isArray(e.keybindings))throw new TypeError(r.keybindingsNotArray);if("function"!=typeof e.callback&&void 0!==e.callback)throw new TypeError(r.callbackIsNotFunction);if(!e.title)throw new TypeError(r.noTitleSupplied);this.args=e,this.args.callback&&(this.args.callback=this.args.callback.bind(this)),this.args.keybindingCallback&&(this.args.keybindingCallback=this.args.keybindingCallback.bind(this))}get keybindingCallback(){return this.args.keybindingCallback||(e=>{"keybindingPrecondition"in this.args&&!this.args.keybindingPrecondition()||(this.args.preventDefaultKeybinding&&((e=e).preventDefault?e.preventDefault():e.returnValue=!1),this.args.callback())});var e}get keybindings(){return this.args.keybindings}get secondaryText(){return this.args.secondaryText}hasKeybinding(){return void 0!==this.args.keybindings&&0!==this.args.keybindings.length}get displayKeybinding(){return this.args.displayKeybinding||""}get callback(){return this.args.callback}get title(){return this.args.title}get menuTitle(){return this.args.menuTitle||this.args.title}}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1),i=n.n(a),s=n(193),l=n.n(s),u=n(191),c=(n.n(u),n(96)),f=n(119),d=Object.assign||function(e){for(var t=1;t{["task","submenuOnClick","onClick"].includes(e)||(this.extraMenuProps[e]=this.props[e])})}render(){return o.a.createElement(l.a,d({},this.extraMenuProps,{classes:{root:"iodide-menu-item"},key:this.props.task.title,onClick:()=>{this.props.task.callback(),this.props.onClick&&this.props.onClick(),this.props.submenuOnClick&&this.props.submenuOnClick(),document.querySelectorAll('div[class^="MuiBackdrop-"]').forEach(e=>{e.click()})}}),o.a.createElement(u.ListItemText,{classes:{root:"primary-menu-item"},primary:this.props.task.menuTitle}),o.a.createElement(u.ListItemText,{style:{marginRight:5},classes:{root:"secondary-menu-item"},primary:this.props.task.displayKeybinding||this.props.task.secondaryText}))}}t.a=p,p.propTypes={className:i.a.string,onClick:i.a.func,submenuOnClick:i.a.func,task:i.a.oneOfType([i.a.instanceOf(c.a),i.a.instanceOf(f.a)])},p.muiName="MenuItem"},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(708),i=n.n(a);t.a=class extends o.a.Component{render(){return o.a.createElement(i.a,{className:"iodide-menu-divider"})}}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i=0;u--)if(f[u]!=d[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!i(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function s(e){return null===e||void 0===e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}},function(e,t,n){var r=n(140),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(31).f,o=n(60),a=n(29)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(404)(!0);n(152)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";var r=n(424)(!0);n(233)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(57),o=n(251),a=n(252),i=n(58),s=n(101),l=n(253),u={},c={};(t=e.exports=function(e,t,n,f,d){var p,h,m,v,g=d?function(){return e}:l(e),y=r(n,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(a(g)){for(p=s(e.length);p>b;b++)if((v=t?y(i(h=e[b])[0],h[1]):y(e[b]))===u||v===c)return v}else for(m=g.call(e);!(h=m.next()).done;)if((v=o(m,y,h.value,t))===u||v===c)return v}).BREAK=u,t.RETURN=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"unnamed",t=arguments[1],n=arguments[2],i=n.jss,s=(0,a.default)(t),l=i.plugins.onCreateRule(e,s,n);if(l)return l;"@"===e[0]&&(0,r.default)(!1,"[JSS] Unknown at-rule %s",e);return new o.default(e,s,n)};var r=i(n(14)),o=i(n(76)),a=i(n(494));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"isBrowser",function(){return o});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map(function(e){return a(e,n)})}function s(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||i,n.isMergeableObject=n.isMergeableObject||r;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=a(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=s(e[o],t[o],n):r[o]=a(t[o],n)}),r}(e,t,n):a(t,n)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})};var l=s;t.default=l},function(e,t,n){"use strict";t.g=u,t.f=c,t.e=g,t.h=E,t.k=k,t.j=_,t.i=function(e,t,n){const r=Object(s.a)({scheme:"null"},n);return k(_(g(e,r),g(t,r),r,!0),r)},t.d=function(e,t){"string"==typeof e?e=k(g(e,t),t):"object"===Object(s.f)(e)&&(e=g(k(e,t),t));return e},t.b=function(e,t,n){"string"==typeof e?e=k(g(e,n),n):"object"===Object(s.f)(e)&&(e=k(e,n));"string"==typeof t?t=k(g(t,n),n):"object"===Object(s.f)(t)&&(t=k(t,n));return e===t},t.c=function(e,t){return e&&e.toString().replace(t&&t.iri?o.a.ESCAPE:r.b.ESCAPE,u)},t.l=function(e,t){return e&&e.toString().replace(t&&t.iri?o.a.PCT_ENCODED:r.b.PCT_ENCODED,c)};var r=n(266),o=n(543),a=n(181),i=n.n(a),s=n(180);const l={};function u(e){const t=e.charCodeAt(0);let n;return n=t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function c(e){let t="",n=0;const r=e.length;for(;n=194&&o<224){if(r-n>=6){const r=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&o)<<6|63&r)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(r-n>=9){const r=parseInt(e.substr(n+4,2),16),a=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&r)<<6|63&a)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function f(e,t){function n(e){const n=c(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,u).replace(t.PCT_ENCODED,s.e)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,u).replace(t.PCT_ENCODED,s.e)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,u).replace(t.PCT_ENCODED,s.e)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,u).replace(t.PCT_ENCODED,s.e)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,u).replace(t.PCT_ENCODED,s.e)),e}function d(e){return e.replace(/^0*(.*)/,"$1")||"0"}function p(e,t){const n=e.match(t.IPV4ADDRESS)||[],[,r]=n;return r?r.split(".").map(d).join("."):e}function h(e,t){const n=e.match(t.IPV6ADDRESS)||[],[,r,o]=n;if(r){const[e,n]=r.toLowerCase().split("::").reverse(),a=n?n.split(":").map(d):[],i=e.split(":").map(d),s=t.IPV4ADDRESS.test(i[i.length-1]),l=s?7:8,u=i.length-l,c=Array(l);for(let e=0;e{if(!t||"0"===t){const t=e[e.length-1];t&&t.index+t.length===n?t.length++:e.push({index:n,length:1})}return e},[]).sort((e,t)=>t.length-e.length)[0];let h;if(f&&f.length>1){const e=c.slice(0,f.index),t=c.slice(f.index+f.length);h=e.join(":")+"::"+t.join(":")}else h=c.join(":");return o&&(h+="%"+o),h}return e}t.a=l;const m=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,v=void 0==="".match(/(){0}/)[1];function g(e,t={}){const n={},a=!1!==t.iri?o.a:r.b;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);const s=e.match(m);if(s){v?(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5])):(n.scheme=s[1]||void 0,n.userinfo=-1!==e.indexOf("@")?s[3]:void 0,n.host=-1!==e.indexOf("//")?s[4]:void 0,n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=-1!==e.indexOf("?")?s[7]:void 0,n.fragment=-1!==e.indexOf("#")?s[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:void 0)),n.host&&(n.host=h(p(n.host,a),a)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");const o=l[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)f(n,a);else{if(n.host&&(t.domainHost||o&&o.domainHost))try{n.host=i.a.toASCII(n.host.replace(a.PCT_ENCODED,c).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}f(n,r.b)}o&&o.parse&&o.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}const y=/^\.\.?\//,b=/^\/\.(\/|$)/,x=/^\/\.\.(\/|$)/,w=/^\/?(?:.|\n)*?(?=\/|$)/;function E(e){const t=[];for(;e.length;)if(e.match(y))e=e.replace(y,"");else if(e.match(b))e=e.replace(b,"/");else if(e.match(x))e=e.replace(x,"/"),t.pop();else if("."===e||".."===e)e="";else{const n=e.match(w);if(!n)throw new Error("Unexpected dot segment condition");{const r=n[0];e=e.slice(r.length),t.push(r)}}return t.join("")}function k(e,t={}){const n=t.iri?o.a:r.b,a=[],s=l[(t.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize&&s.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||s&&s.domainHost)try{e.host=t.iri?i.a.toUnicode(e.host):i.a.toASCII(e.host.replace(n.PCT_ENCODED,c).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}f(e,n),"suffix"!==t.reference&&e.scheme&&(a.push(e.scheme),a.push(":"));const u=function(e,t){const n=!1!==t.iri?o.a:r.b,a=[];return void 0!==e.userinfo&&(a.push(e.userinfo),a.push("@")),void 0!==e.host&&a.push(h(p(String(e.host),n),n).replace(n.IPV6ADDRESS,(e,t,n)=>"["+t+(n?"%25"+n:"")+"]")),"number"==typeof e.port&&(a.push(":"),a.push(e.port.toString(10))),a.length?a.join(""):void 0}(e,t);if(void 0!==u&&("suffix"!==t.reference&&a.push("//"),a.push(u),e.path&&"/"!==e.path.charAt(0)&&a.push("/")),void 0!==e.path){let n=e.path;t.absolutePath||s&&s.absolutePath||(n=E(n)),void 0===u&&(n=n.replace(/^\/\//,"/%2F")),a.push(n)}return void 0!==e.query&&(a.push("?"),a.push(e.query)),void 0!==e.fragment&&(a.push("#"),a.push(e.fragment)),a.join("")}function _(e,t,n={},r){const o={};return r||(e=g(k(e,n),n),t=g(k(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=E(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=E(t.path||""),o.query=t.query):(t.path?("/"===t.path.charAt(0)?o.path=E(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=E(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}},function(e,t){function n(e,t,n,r){this.id=e,this.size=t,this.cramped=r,this.sizeMultiplier=n}n.prototype.sup=function(){return a[i[this.id]]},n.prototype.sub=function(){return a[s[this.id]]},n.prototype.fracNum=function(){return a[l[this.id]]},n.prototype.fracDen=function(){return a[u[this.id]]},n.prototype.cramp=function(){return a[c[this.id]]},n.prototype.cls=function(){return r[this.size]+(this.cramped?" cramped":" uncramped")},n.prototype.reset=function(){return o[this.size]};var r=["displaystyle textstyle","textstyle","scriptstyle","scriptscriptstyle"],o=["reset-textstyle","reset-textstyle","reset-scriptstyle","reset-scriptscriptstyle"],a=[new n(0,0,1,!1),new n(1,0,1,!0),new n(2,1,1,!1),new n(3,1,1,!0),new n(4,2,.7,!1),new n(5,2,.7,!0),new n(6,3,.5,!1),new n(7,3,.5,!0)],i=[4,5,4,5,6,7,6,7],s=[5,5,5,5,7,7,7,7],l=[2,3,4,5,6,7,6,7],u=[3,3,5,5,7,7,7,7],c=[1,1,3,3,5,5,7,7];e.exports={DISPLAY:a[0],TEXT:a[2],SCRIPT:a[4],SCRIPTSCRIPT:a[6]}},function(e,t,n){var r=n(287),o=n(95),a=n(118),i=n(45),s=["\\Gamma","\\Delta","\\Theta","\\Lambda","\\Xi","\\Pi","\\Sigma","\\Upsilon","\\Phi","\\Psi","\\Omega"],l=["ı","ȷ"],u=function(e,t,n,i,s){a[n][e]&&a[n][e].replace&&(e=a[n][e].replace);var l,u=o.getCharacterMetrics(e,t);return u?l=new r.symbolNode(e,u.height,u.depth,u.italic,u.skew,s):("undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"'"),l=new r.symbolNode(e,0,0,0,0,s)),i&&(l.style.color=i),l},c=function(e,t,n,r,o){if("mathord"===o)return f(e,t,n,r);if("textord"===o)return u(e,"Main-Regular",t,n,r.concat(["mathrm"]));throw new Error("unexpected type: "+o+" in mathDefault")},f=function(e,t,n,r){return/[0-9]/.test(e.charAt(0))||i.contains(l,e)||i.contains(s,e)?u(e,"Main-Italic",t,n,r.concat(["mainit"])):u(e,"Math-Italic",t,n,r.concat(["mathit"]))},d=function(e){var t=0,n=0,r=0;if(e.children)for(var o=0;ot&&(t=e.children[o].height),e.children[o].depth>n&&(n=e.children[o].depth),e.children[o].maxFontSize>r&&(r=e.children[o].maxFontSize);e.height=t,e.depth=n,e.maxFontSize=r},p=function(e,t,n){var o=new r.span(e,t);return d(o),n&&(o.style.color=n),o},h={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}};e.exports={fontMap:h,makeSymbol:u,mathsym:function(e,t,n,r){return"\\"===e||"main"===a[t][e].font?u(e,"Main-Regular",t,n,r):u(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:p,makeFragment:function(e){var t=new r.documentFragment(e);return d(t),t},makeVList:function(e,t,n,o){var a,i,s;if("individualShift"===t){var l=e;for(e=[l[0]],i=a=-l[0].shift-l[0].elem.depth,s=1;s",">"),n(a,i,h,":",":"),n(a,i,h,"≈","\\approx"),n(a,i,h,"≅","\\cong"),n(a,i,h,"≥","\\ge"),n(a,i,h,"≥","\\geq"),n(a,i,h,"←","\\gets"),n(a,i,h,">","\\gt"),n(a,i,h,"∈","\\in"),n(a,i,h,"∉","\\notin"),n(a,i,h,"⊂","\\subset"),n(a,i,h,"⊃","\\supset"),n(a,i,h,"⊆","\\subseteq"),n(a,i,h,"⊇","\\supseteq"),n(a,s,h,"⊈","\\nsubseteq"),n(a,s,h,"⊉","\\nsupseteq"),n(a,i,h,"⊨","\\models"),n(a,i,h,"←","\\leftarrow"),n(a,i,h,"≤","\\le"),n(a,i,h,"≤","\\leq"),n(a,i,h,"<","\\lt"),n(a,i,h,"≠","\\ne"),n(a,i,h,"≠","\\neq"),n(a,i,h,"→","\\rightarrow"),n(a,i,h,"→","\\to"),n(a,s,h,"≱","\\ngeq"),n(a,s,h,"≰","\\nleq"),n(a,i,m,null,"\\!"),n(a,i,m," ","\\ "),n(a,i,m," ","~"),n(a,i,m,null,"\\,"),n(a,i,m,null,"\\:"),n(a,i,m,null,"\\;"),n(a,i,m,null,"\\enspace"),n(a,i,m,null,"\\qquad"),n(a,i,m,null,"\\quad"),n(a,i,m," ","\\space"),n(a,i,"punct",",",","),n(a,i,"punct",";",";"),n(a,i,"punct",":","\\colon"),n(a,s,u,"⊼","\\barwedge"),n(a,s,u,"⊻","\\veebar"),n(a,i,u,"⊙","\\odot"),n(a,i,u,"⊕","\\oplus"),n(a,i,u,"⊗","\\otimes"),n(a,i,v,"∂","\\partial"),n(a,i,u,"⊘","\\oslash"),n(a,s,u,"⊚","\\circledcirc"),n(a,s,u,"⊡","\\boxdot"),n(a,i,u,"△","\\bigtriangleup"),n(a,i,u,"▽","\\bigtriangledown"),n(a,i,u,"†","\\dagger"),n(a,i,u,"⋄","\\diamond"),n(a,i,u,"⋆","\\star"),n(a,i,u,"◃","\\triangleleft"),n(a,i,u,"▹","\\triangleright"),n(a,i,p,"{","\\{"),n(a,i,c,"}","\\}"),n(a,i,p,"{","\\lbrace"),n(a,i,c,"}","\\rbrace"),n(a,i,p,"[","\\lbrack"),n(a,i,c,"]","\\rbrack"),n(a,i,p,"⌊","\\lfloor"),n(a,i,c,"⌋","\\rfloor"),n(a,i,p,"⌈","\\lceil"),n(a,i,c,"⌉","\\rceil"),n(a,i,v,"\\","\\backslash"),n(a,i,v,"∣","|"),n(a,i,v,"∣","\\vert"),n(a,i,v,"∥","\\|"),n(a,i,v,"∥","\\Vert"),n(a,i,h,"↑","\\uparrow"),n(a,i,h,"⇑","\\Uparrow"),n(a,i,h,"↓","\\downarrow"),n(a,i,h,"⇓","\\Downarrow"),n(a,i,h,"↕","\\updownarrow"),n(a,i,h,"⇕","\\Updownarrow"),n(a,a,d,"∐","\\coprod"),n(a,a,d,"⋁","\\bigvee"),n(a,a,d,"⋀","\\bigwedge"),n(a,a,d,"⨄","\\biguplus"),n(a,a,d,"⋂","\\bigcap"),n(a,a,d,"⋃","\\bigcup"),n(a,a,d,"∫","\\int"),n(a,a,d,"∫","\\intop"),n(a,a,d,"∬","\\iint"),n(a,a,d,"∭","\\iiint"),n(a,a,d,"∏","\\prod"),n(a,a,d,"∑","\\sum"),n(a,a,d,"⨂","\\bigotimes"),n(a,a,d,"⨁","\\bigoplus"),n(a,a,d,"⨀","\\bigodot"),n(a,a,d,"∮","\\oint"),n(a,a,d,"⨆","\\bigsqcup"),n(a,a,d,"∫","\\smallint"),n(a,i,"inner","…","\\ldots"),n(a,i,"inner","⋯","\\cdots"),n(a,i,"inner","⋱","\\ddots"),n(a,i,v,"⋮","\\vdots"),n(a,i,l,"´","\\acute"),n(a,i,l,"`","\\grave"),n(a,i,l,"¨","\\ddot"),n(a,i,l,"~","\\tilde"),n(a,i,l,"¯","\\bar"),n(a,i,l,"˘","\\breve"),n(a,i,l,"ˇ","\\check"),n(a,i,l,"^","\\hat"),n(a,i,l,"⃗","\\vec"),n(a,i,l,"˙","\\dot"),n(a,i,f,"ı","\\imath"),n(a,i,f,"ȷ","\\jmath"),n("text",i,m," ","\\ "),n("text",i,m," "," "),n("text",i,m," ","~");for(r=0;r<'0123456789/@."'.length;r++)n(a,i,v,o='0123456789/@."'.charAt(r),o);for(r=0;r<"0123456789`!@*()-=+[]'\";:?/.,".length;r++)n("text",i,v,o="0123456789`!@*()-=+[]'\";:?/.,".charAt(r),o);var g="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(r=0;r1&&void 0!==arguments[1]?arguments[1]:window,n=(0,o.default)(e);return n.defaultView||n.parentView||t};t.default=a},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==s){var l=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"polyfill",function(){return i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return i[e];var n,a=String(e);return(n=r[a.toLowerCase()])?n:(n=o[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null===n||void 0===n)return!1;if("string"==typeof t){var a;if(a=r[t.toLowerCase()])return a===n;if(a=o[t.toLowerCase()])return a===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91}; -/*! - * Programatically add the following - */ -for(a=97;a<123;a++)r[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)r[a-48]=a;for(a=1;a<13;a++)r["f"+a]=a+111;for(a=0;a<10;a++)r["numpad "+a]=a+96;var i=t.names=t.title={};for(a in r)i[r[a]]=a;for(var s in o)r[s]=o[s]},function(e,t,n){"use strict";(function(e){t.__esModule=!0,t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1)),o=s(n(0)),a=s(n(22)),i=n(674);function s(e){return e&&e.__esModule?e:{default:e}}var l=t.UNMOUNTED="unmounted",u=t.EXITED="exited",c=t.ENTERING="entering",f=t.ENTERED="entered",d=t.EXITING="exiting",p=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r)),a=r.transitionGroup,i=a&&!a.isMounting?n.enter:n.appear,s=void 0;return o.nextStatus=null,n.in?i?(s=u,o.nextStatus=c):s=f:s=n.unmountOnExit||n.mountOnEnter?l:u,o.state={status:s},o.nextCallback=null,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{transitionGroup:null}},t.prototype.componentDidMount=function(){this.updateStatus(!0)},t.prototype.componentWillReceiveProps=function(e){var t=(this.pendingState||this.state).status;e.in?(t===l&&this.setState({status:u}),t!==c&&t!==f&&(this.nextStatus=c)):t!==c&&t!==f||(this.nextStatus=d)},t.prototype.componentDidUpdate=function(){this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cancelNextCallback()},t.prototype.getTimeouts=function(){var e=this.props.timeout,t=void 0,n=void 0,r=void 0;return t=n=r=e,null!=e&&"number"!=typeof e&&(t=e.exit,n=e.enter,r=e.appear),{exit:t,enter:n,appear:r}},t.prototype.updateStatus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nextStatus;if(null!==t){this.nextStatus=null,this.cancelNextCallback();var n=a.default.findDOMNode(this);t===c?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:l})},t.prototype.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts();t||r?(this.props.onEnter(e,o),this.safeSetState({status:c},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a.enter,function(){n.safeSetState({status:f},function(){n.props.onEntered(e,o)})})})):this.safeSetState({status:f},function(){n.props.onEntered(e)})},t.prototype.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:d},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:u},function(){t.props.onExited(e)})})})):this.safeSetState({status:u},function(){t.props.onExited(e)})},t.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.prototype.safeSetState=function(e,t){var n=this;this.pendingState=e,t=this.setNextCallback(t),this.setState(e,function(){n.pendingState=null,t()})},t.prototype.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},t.prototype.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},t.prototype.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var a=o.default.Children.only(n);return o.default.cloneElement(a,r)},t}(o.default.Component);function h(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes="production"!==e.env.NODE_ENV?{children:r.oneOfType([r.func.isRequired,r.element.isRequired]).isRequired,in:r.bool,mountOnEnter:r.bool,unmountOnExit:r.bool,appear:r.bool,enter:r.bool,exit:r.bool,timeout:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0?r:n)(e)}},function(e,t,n){var r=n(142)("keys"),o=n(103);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(21),o=n(39),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(102)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(104),o=n(83),a=n(61),i=n(136),s=n(60),l=n(216),u=Object.getOwnPropertyDescriptor;t.f=n(40)?u:function(e,t){if(e=a(e),t=i(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(28),o=n(21),a=n(59);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],i={};i[e]=t(n),r(r.S+r.F*a(function(){n(1)}),"Object",i)}},function(e,t,n){var r=n(103)("meta"),o=n(42),a=n(60),i=n(31).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(59)(function(){return l(Object.preventExtensions({}))}),c=function(e){i(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return u&&f.NEED&&l(e)&&!a(e,r)&&c(e),e}}},function(e,t,n){t.f=n(29)},function(e,t,n){var r=n(39),o=n(21),a=n(102),i=n(148),s=n(31).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(58),o=n(393),a=n(143),i=n(141)("IE_PROTO"),s=function(){},l=function(){var e,t=n(217)("iframe"),r=a.length;for(t.style.display="none",n(394).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" -
- - - diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/python.html.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/python.html.xml deleted file mode 100644 index 81c072079c8d3fa14f29e130f6ce746083ebfb71..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/python.html.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - __name__ - python.html - - - content_type - text/html - - - precondition - - - - title - - - - - - diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/pytz.data.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/pytz.data.xml index bf003b11da7825a05043529b5843feb1ba5b2689..ff7142e7a0c9766234ac8a425b8286ea67367130 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/pytz.data.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/pytz.data.xml @@ -6,13 +6,17 @@
+ + _Cacheable__manager_id + must_revalidate_http_cache + __name__ pytz.data content_type - application/octet-stream + application/wasm precondition diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/pytz.js.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/pytz.js.xml index 6d03ea4171180eb1329a054bb226913527155b0a..e3e3533091ceb8674f3f52df0bf08c2a33b0bd07 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/pytz.js.xml +++ b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/pytz.js.xml @@ -6,6 +6,10 @@ + + _Cacheable__manager_id + must_revalidate_http_cache + __name__ pytz.js diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/renderedhtml.css.css b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/renderedhtml.css.css deleted file mode 100644 index 3fa60daac7cb009c6deacf7016be7cc49696c8d8..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/renderedhtml.css.css +++ /dev/null @@ -1,209 +0,0 @@ -.rendered_html { - overflow: auto; - max-height: 30em; - color: black; - /* any extras will just be numbers: */ -} -.rendered_html em { - font-style: italic; -} -.rendered_html strong { - font-weight: bold; -} -.rendered_html u { - text-decoration: underline; -} -.rendered_html :link { - text-decoration: underline; -} -.rendered_html :visited { - text-decoration: underline; -} -.rendered_html h1 { - font-size: 185.7%; - margin: 1.08em 0 0 0; - font-weight: bold; - line-height: 1.0; -} -.rendered_html h2 { - font-size: 157.1%; - margin: 1.27em 0 0 0; - font-weight: bold; - line-height: 1.0; -} -.rendered_html h3 { - font-size: 128.6%; - margin: 1.55em 0 0 0; - font-weight: bold; - line-height: 1.0; -} -.rendered_html h4 { - font-size: 100%; - margin: 2em 0 0 0; - font-weight: bold; - line-height: 1.0; -} -.rendered_html h5 { - font-size: 100%; - margin: 2em 0 0 0; - font-weight: bold; - line-height: 1.0; - font-style: italic; -} -.rendered_html h6 { - font-size: 100%; - margin: 2em 0 0 0; - font-weight: bold; - line-height: 1.0; - font-style: italic; -} -.rendered_html h1:first-child { - margin-top: 0.538em; -} -.rendered_html h2:first-child { - margin-top: 0.636em; -} -.rendered_html h3:first-child { - margin-top: 0.777em; -} -.rendered_html h4:first-child { - margin-top: 1em; -} -.rendered_html h5:first-child { - margin-top: 1em; -} -.rendered_html h6:first-child { - margin-top: 1em; -} -.rendered_html ul:not(.list-inline), -.rendered_html ol:not(.list-inline) { - padding-left: 2em; -} -.rendered_html ul { - list-style: disc; -} -.rendered_html ul ul { - list-style: square; - margin-top: 0; -} -.rendered_html ul ul ul { - list-style: circle; -} -.rendered_html ol { - list-style: decimal; -} -.rendered_html ol ol { - list-style: upper-alpha; - margin-top: 0; -} -.rendered_html ol ol ol { - list-style: lower-alpha; -} -.rendered_html ol ol ol ol { - list-style: lower-roman; -} -.rendered_html ol ol ol ol ol { - list-style: decimal; -} -.rendered_html * + ul { - margin-top: 1em; -} -.rendered_html * + ol { - margin-top: 1em; -} -.rendered_html hr { - color: black; - background-color: black; -} -.rendered_html pre { - margin: 1em 2em; - padding: 0px; - background-color: white; -} -.rendered_html code { - background-color: #eff0f1; -} -.rendered_html p code { - padding: 1px 5px; -} -.rendered_html pre code { - background-color: white; -} -.rendered_html pre, -.rendered_html code { - border: 0; - color: black; - font-size: 100%; -} -.rendered_html blockquote { - margin: 1em 2em; -} -.rendered_html table { - margin-left: auto; - margin-right: auto; - border: none; - border-collapse: collapse; - border-spacing: 0; - color: black; - font-size: 12px; - table-layout: fixed; -} -.rendered_html thead { - border-bottom: 1px solid black; - vertical-align: bottom; -} -.rendered_html tr, -.rendered_html th, -.rendered_html td { - text-align: right; - vertical-align: middle; - padding: 0.5em 0.5em; - line-height: normal; - white-space: normal; - max-width: none; - border: none; -} -.rendered_html th { - font-weight: bold; -} -.rendered_html tbody tr:nth-child(odd) { - background: #f5f5f5; -} -.rendered_html tbody tr:hover { - background: rgba(66, 165, 245, 0.2); -} -.rendered_html * + table { - margin-top: 1em; -} -.rendered_html p { - text-align: left; -} -.rendered_html * + p { - margin-top: 1em; -} -.rendered_html img { - display: block; - margin-left: auto; - margin-right: auto; -} -.rendered_html * + img { - margin-top: 1em; -} -.rendered_html img, -.rendered_html svg { - max-width: 100%; - height: auto; -} -.rendered_html img.unconfined, -.rendered_html svg.unconfined { - max-width: none; -} -.rendered_html .alert { - margin-bottom: initial; -} -.rendered_html * + .alert { - margin-top: 1em; -} -[dir="rtl"] .rendered_html p { - text-align: right; -} diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/renderedhtml.css.xml b/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/renderedhtml.css.xml deleted file mode 100644 index b880eefc27acf888d267fa523109f0ba3b8228ab..0000000000000000000000000000000000000000 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/renderedhtml.css.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - __name__ - renderedhtml.css - - - content_type - text/css - - - precondition - - - - title - - - - - - diff --git a/bt5/erp5_notebook_test/ModuleTemplateItem/notebook_module.xml b/bt5/erp5_notebook_test/ModuleTemplateItem/notebook_module.xml new file mode 100644 index 0000000000000000000000000000000000000000..25fda14b587565aee07bc999218348fda3ff9a7f --- /dev/null +++ b/bt5/erp5_notebook_test/ModuleTemplateItem/notebook_module.xml @@ -0,0 +1,96 @@ + + notebook_module + + + Access Transient Objects + Assignee + Assignor + Associate + Auditor + Author + Manager + + + Access contents information + Assignee + Assignor + Associate + Auditor + Author + Manager + + + Access session data + Assignee + Assignor + Associate + Auditor + Author + Manager + + + Add portal content + Assignor + Author + Manager + + + Add portal folders + Assignor + Author + Manager + + + Change local roles + Assignor + Manager + + + Copy or Move + Assignee + Assignor + Associate + Auditor + Author + Manager + + + Delete objects + Assignor + Manager + + + List folder contents + Assignee + Assignor + Associate + Auditor + Author + Manager + + + Modify portal content + Assignor + Manager + + + View + Assignee + Assignor + Associate + Auditor + Manager + + + View History + Assignee + Assignor + Associate + Auditor + Author + Manager + + + Notebook Module + Notebooks + \ No newline at end of file diff --git a/bt5/erp5_notebook_test/PathTemplateItem/notebook_module/notebook_test_purejs.xml b/bt5/erp5_notebook_test/PathTemplateItem/notebook_module/notebook_test_purejs.xml new file mode 100644 index 0000000000000000000000000000000000000000..24f78a87552135656c9787a0f8fca922c658119c --- /dev/null +++ b/bt5/erp5_notebook_test/PathTemplateItem/notebook_module/notebook_test_purejs.xml @@ -0,0 +1,4259 @@ + + + + + + + + + + _Access_contents_information_Permission + + + Assignee + Assignor + Manager + Owner + + + + + _Add_portal_content_Permission + + + Assignee + Assignor + Manager + Owner + + + + + _Change_local_roles_Permission + + + Assignor + Manager + + + + + _Modify_portal_content_Permission + + + Assignee + Assignor + Manager + Owner + + + + + _View_Permission + + + Assignee + Assignor + Manager + Owner + + + + + content_md5 + + + + + + description + + + + + + id + notebook_test_purejs + + + language + + + + + + portal_type + Notebook + + + short_title + + + + + + text_content + %% meta\n +{\n + "title": "Lecture-3-Matplotlib",\n + "lastSaved": "2018-10-16T13:50:00.550Z",\n + "languages": {\n + "js": {\n + "pluginType": "language",\n + "languageId": "js",\n + "displayName": "Javascript",\n + "codeMirrorMode": "javascript",\n + "module": "window",\n + "evaluator": "eval",\n + "keybinding": "j",\n + "url": ""\n + },\n + "py": {\n + "languageId": "py",\n + "displayName": "python",\n + "codeMirrorMode": "python",\n + "keybinding": "p",\n + "url": "https://iodide.io/pyodide-demo/pyodide.js",\n + "module": "pyodide",\n + "evaluator": "runPython",\n + "pluginType": "language"\n + }\n + },\n + "lastExport": "2018-10-16T13:50:03.563Z"\n +}\n +\n +%% plugin\n +{\n + "languageId": "py",\n + "displayName": "python",\n + "codeMirrorMode": "python",\n + "keybinding": "p",\n + "url": "https://iodide.io/pyodide-demo/pyodide.js",\n + "module": "pyodide",\n + "evaluator": "runPython",\n + "pluginType": "language"\n +}\n +\n +%% md\n +# Notebook JSMD Viewer Test\n +\n +%% md\n +This is a sample content for check the JS section can be executed in JSMD viewer.\n +\n +%% code {"language":"js"}\n +2 + 40 + + + title + Notebook test pure js + + + workflow_history + + AAAAAAAAAAI= + + + + + + + + + + + + + data + + + + document_publication_workflow + + AAAAAAAAAAM= + + + + edit_workflow + + AAAAAAAAAAQ= + + + + processing_status_workflow + + AAAAAAAAAAU= + + + + + + + + + + + + + + + + + + + action + + + + + + actor + zope + + + comment + + + + error_message + + + + time + + + + + + + + + + + 1553080507.54 + UTC + + + + + + + validation_state + draft + + + + + + + + + + + + + AAAAAAAAAAY= + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.60196.14387.38229 + + + state + current + + + time + + + + + + + + + + + 1554822032.22 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.60196.35205.3072 + + + state + current + + + time + + + + + + + + + 1554824357.4 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.60235.19016.55125 + + + state + current + + + time + + + + + + + + + 1554826187.44 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.60265.51822.50397 + + + state + current + + + time + + + + + + + + + 1554826250.94 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.60266.55641.60484 + + + state + current + + + time + + + + + + + + + 1554889170.96 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.61315.33837.443 + + + state + current + + + time + + + + + + + + + 1554890435.53 + UTC + + + + + + + + + + + + + + + + + + + + + action + + + + + + actor + zope + + + comment + + + + error_message + + + + external_processing_state + empty + + + serial + 0.0.0.0 + + + time + + + + + + + + + + + 1553080507.54 + UTC + + + + + + + + + + + + + + + + + AAAAAAAAAAc= + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52956.4237.9130 + + + state + current + + + time + + + + + + + + + + + 1554387762.17 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52958.46070.16913 + + + state + current + + + time + + + + + + + + + 1554388391.17 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52969.12207.42649 + + + state + current + + + time + + + + + + + + + 1554388559.48 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52971.64975.5358 + + + state + current + + + time + + + + + + + + + 1554388781.87 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52975.45746.18261 + + + state + current + + + time + + + + + + + + + 1554389037.3 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52979.62593.45516 + + + state + current + + + time + + + + + + + + + 1554389249.62 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52983.32366.23552 + + + state + current + + + time + + + + + + + + + 1554390497.1 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.53004.18684.580 + + + state + current + + + time + + + + + + + + + 1554391112.35 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.53014.35345.938 + + + state + current + + + time + + + + + + + + + 1554393353.95 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.53051.58933.38161 + + + state + current + + + time + + + + + + + + + 1554466990.66 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.54279.11663.6621 + + + state + current + + + time + + + + + + + + + 1554467179.88 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.54282.21727.17561 + + + state + current + + + time + + + + + + + + + 1554468740.69 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.54308.22605.14353 + + + state + current + + + time + + + + + + + + + 1554813987.53 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.60062.30080.54647 + + + state + current + + + time + + + + + + + + + 1554814697.78 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.60074.19432.44219 + + + state + current + + + time + + + + + + + + + 1554814986.26 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.60079.6845.57497 + + + state + current + + + time + + + + + + + + + 1554822013.16 + UTC + + + + + + + + + + + + + + + + + AAAAAAAAAAg= + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.51517.25137.34372 + + + state + current + + + time + + + + + + + + + + + 1554303060.66 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.51547.734.55756 + + + state + current + + + time + + + + + + + + + 1554303110.45 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.51547.55108.45465 + + + state + current + + + time + + + + + + + + + 1554303223.38 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.51549.47393.12134 + + + state + current + + + time + + + + + + + + + 1554305708.5 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.51591.9296.60910 + + + state + current + + + time + + + + + + + + + 1554367890.94 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52627.33813.60262 + + + state + current + + + time + + + + + + + + + 1554368098.37 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52630.63766.31675 + + + state + current + + + time + + + + + + + + + 1554368213.08 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52632.57987.13960 + + + state + current + + + time + + + + + + + + + 1554369119.21 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52647.64685.5137 + + + state + current + + + time + + + + + + + + + 1554369611.8 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52656.12893.22971 + + + state + current + + + time + + + + + + + + + 1554382924.31 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52878.4726.35635 + + + state + current + + + time + + + + + + + + + 1554384925.54 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52911.27901.64819 + + + state + current + + + time + + + + + + + + + 1554387126.14 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52948.6712.2901 + + + state + current + + + time + + + + + + + + + 1554387150.54 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52948.33364.58385 + + + state + current + + + time + + + + + + + + + 1554387338.4 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52951.41956.59750 + + + state + current + + + time + + + + + + + + + 1554387469.27 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.52953.53827.5205 + + + state + current + + + time + + + + + + + + + 1554387603.87 + UTC + + + + + + + + + + + + + + + + + AAAAAAAAAAk= + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.41487.26138.25070 + + + state + current + + + time + + + + + + + + + + + 1553703300.43 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.41551.475.256 + + + state + current + + + time + + + + + + + + + 1553783326.31 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.42884.50596.30890 + + + state + current + + + time + + + + + + + + + 1554196262.44 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.49767.2688.38041 + + + state + current + + + time + + + + + + + + + 1554196382.25 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.49769.2463.30941 + + + state + current + + + time + + + + + + + + + 1554197839.84 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.49793.21680.62003 + + + state + current + + + time + + + + + + + + + 1554198037.96 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.49796.41475.65177 + + + state + current + + + time + + + + + + + + + 1554198045.67 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.49796.49892.18244 + + + state + current + + + time + + + + + + + + + 1554198119.94 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.49797.65478.33262 + + + state + current + + + time + + + + + + + + + 1554198235.28 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.49799.60394.53299 + + + state + current + + + time + + + + + + + + + 1554299426.39 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.51486.28840.41472 + + + state + current + + + time + + + + + + + + + 1554299473.06 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.51487.14272.57463 + + + state + current + + + time + + + + + + + + + 1554299809.37 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.51492.53928.64529 + + + state + current + + + time + + + + + + + + + 1554300000.16 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.51496.181.31470 + + + state + current + + + time + + + + + + + + + 1554300193.04 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.51499.14256.44185 + + + state + current + + + time + + + + + + + + + 1554300276.8 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.51500.40207.9233 + + + state + current + + + time + + + + + + + + + 1554301283.01 + UTC + + + + + + + + + + + + + + + + + AAAAAAAAAAo= + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34395.33880.1553 + + + state + current + + + time + + + + + + + + + + + 1553273991.55 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34395.56311.22818 + + + state + current + + + time + + + + + + + + + 1553274262.45 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34400.24532.40021 + + + state + current + + + time + + + + + + + + + 1553534203.82 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.38732.47879.58999 + + + state + current + + + time + + + + + + + + + 1553608905.52 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.39977.49740.55825 + + + state + current + + + time + + + + + + + + + 1553611437.78 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.40019.63118.34662 + + + state + current + + + time + + + + + + + + + 1553611990.16 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.40029.11103.51746 + + + state + current + + + time + + + + + + + + + 1553612109.23 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.40031.10090.51404 + + + state + current + + + time + + + + + + + + + 1553612183.18 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.40032.25333.18739 + + + state + current + + + time + + + + + + + + + 1553620627.86 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.40173.8602.30771 + + + state + current + + + time + + + + + + + + + 1553621219.72 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.40182.65235.53674 + + + state + current + + + time + + + + + + + + + 1553677726.38 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.41124.50677.26692 + + + state + current + + + time + + + + + + + + + 1553678215.85 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.41132.61014.47581 + + + state + current + + + time + + + + + + + + + 1553695443.02 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.41420.3317.27255 + + + state + current + + + time + + + + + + + + + 1553695448.59 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.41420.9391.64256 + + + state + current + + + time + + + + + + + + + 1553699234.6 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.41483.15961.12817 + + + state + current + + + time + + + + + + + + + 1553699483.92 + UTC + + + + + + + + + + + + + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + error_message + + + + serial + 0.0.0.0 + + + state + current + + + time + + + + + + + + + + + 1553080507.53 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.31171.8249.43946 + + + state + current + + + time + + + + + + + + + 1553081203.89 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.31182.47955.6673 + + + state + current + + + time + + + + + + + + + 1553096428.56 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.31436.31199.49783 + + + state + current + + + time + + + + + + + + + 1553096538.85 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.31438.20595.38963 + + + state + current + + + time + + + + + + + + + 1553270409.83 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34336.10750.64000 + + + state + current + + + time + + + + + + + + + 1553270453.21 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34336.58123.38451 + + + state + current + + + time + + + + + + + + + 1553270551.83 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34338.34771.55534 + + + state + current + + + time + + + + + + + + + 1553270606.2 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34339.28631.2184 + + + state + current + + + time + + + + + + + + + 1553271689.77 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34357.32524.64614 + + + state + current + + + time + + + + + + + + + 1553271813.27 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34359.36343.49510 + + + state + current + + + time + + + + + + + + + 1553271972.57 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34362.13743.11212 + + + state + current + + + time + + + + + + + + + 1553272280.78 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34367.22703.60330 + + + state + current + + + time + + + + + + + + + 1553272455.28 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34370.16700.29883 + + + state + current + + + time + + + + + + + + + 1553272532.75 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34371.35785.48742 + + + state + current + + + time + + + + + + + + + 1553273645.47 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 974.34390.5982.58794 + + + state + current + + + time + + + + + + + + + 1553273971.01 + UTC + + + + + + + + + + + diff --git a/bt5/erp5_notebook_test/PathTemplateItem/notebook_module/notebook_test_python_basic.xml b/bt5/erp5_notebook_test/PathTemplateItem/notebook_module/notebook_test_python_basic.xml new file mode 100644 index 0000000000000000000000000000000000000000..51f39fed6b72d2e09e61fe078fe3f59d97f87984 --- /dev/null +++ b/bt5/erp5_notebook_test/PathTemplateItem/notebook_module/notebook_test_python_basic.xml @@ -0,0 +1,707 @@ + + + + + + + + + + _Access_contents_information_Permission + + + Assignee + Assignor + Manager + Owner + + + + + _Add_portal_content_Permission + + + Assignee + Assignor + Manager + Owner + + + + + _Change_local_roles_Permission + + + Assignor + Manager + + + + + _Modify_portal_content_Permission + + + Assignee + Assignor + Manager + Owner + + + + + _View_Permission + + + Assignee + Assignor + Manager + Owner + + + + + content_md5 + + + + + + description + + + + + + id + notebook_test_python_basic + + + language + + + + + + portal_type + Notebook + + + short_title + + + + + + text_content + %% meta\n +{\n + "title": "Lecture-3-Matplotlib",\n + "lastSaved": "2018-10-16T13:50:00.550Z",\n + "languages": {\n + "js": {\n + "pluginType": "language",\n + "languageId": "js",\n + "displayName": "Javascript",\n + "codeMirrorMode": "javascript",\n + "module": "window",\n + "evaluator": "eval",\n + "keybinding": "j",\n + "url": ""\n + },\n + "py": {\n + "languageId": "py",\n + "displayName": "python",\n + "codeMirrorMode": "python",\n + "keybinding": "p",\n + "url": "https://iodide.io/pyodide-demo/pyodide.js",\n + "module": "pyodide",\n + "evaluator": "runPython",\n + "pluginType": "language"\n + }\n + },\n + "lastExport": "2018-10-16T13:50:03.563Z"\n +}\n +\n +%% plugin\n +{\n + "languageId": "py",\n + "displayName": "python",\n + "codeMirrorMode": "python",\n + "keybinding": "p",\n + "url": "https://iodide.io/pyodide-demo/pyodide.js",\n + "module": "pyodide",\n + "evaluator": "runPython",\n + "pluginType": "language"\n +}\n +\n +%% md\n +# Notebook JSMD Viewer Basic Python Test\n +\n +%% md\n +This is a sample content for check the Python section can be executed in JSMD viewer.\n +\n +%% code {"language":"py"}\n +2 + 40 + + + title + Notebook test python basic + + + workflow_history + + AAAAAAAAAAI= + + + + + + + + + + + + + data + + + + document_publication_workflow + + AAAAAAAAAAM= + + + + edit_workflow + + AAAAAAAAAAQ= + + + + processing_status_workflow + + AAAAAAAAAAU= + + + + + + + + + + + + + + + + + + + action + + + + + + actor + zope + + + comment + + + + error_message + + + + time + + + + + + + + + + + 1555491600.85 + UTC + + + + + + + validation_state + draft + + + + + + + + + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + error_message + + + + serial + 0.0.0.0 + + + state + current + + + time + + + + + + + + + + + 1555491600.83 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + AAAAAAAAAAY= + + + + error_message + + + + serial + 0.0.0.0 + + + state + current + + + time + + + + + + + + + 1555491600.86 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 975.5820.943.6348 + + + state + current + + + time + + + + + + + + + 1555491625.73 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 975.5820.28117.55671 + + + state + current + + + time + + + + + + + + + 1555491680.35 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 975.5821.22240.44305 + + + state + current + + + time + + + + + + + + + 1555505646.03 + UTC + + + + + + + + + action + edit + + + actor + zope + + + comment + + + + + + error_message + + + + serial + 975.6054.6589.45414 + + + state + current + + + time + + + + + + + + + 1555505830.04 + UTC + + + + + + + + + + + + + + + + + + + + + action + + + + + + actor + zope + + + comment + + + + error_message + + + + external_processing_state + empty + + + serial + 0.0.0.0 + + + time + + + + + + + + + + + 1555491600.84 + UTC + + + + + + + + + action + detect_uploaded_file + + + actor + zope + + + comment + + + + error_message + + + + external_processing_state + uploaded + + + serial + 0.0.0.0 + + + time + + + + + + + + + 1555491600.84 + UTC + + + + + + + + + action + detect_converted_file + + + actor + zope + + + comment + + + + error_message + + + + external_processing_state + converted + + + serial + 0.0.0.0 + + + time + + + + + + + + + 1555491600.85 + UTC + + + + + + + + + + + + + + + + + + default + Object copied from ${source_item} + + + domain + erp5_ui + + + mapping + + + + source_item + /erp5/notebook_module/notebook_test_purejs + + + + + + message + Object copied from ${source_item} + + + + + diff --git a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts.xml b/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite.xml similarity index 79% rename from bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts.xml rename to bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite.xml index 41c2504c56c96d5790fdff98550d06a5508855ff..ca0045e0cf6ec97779a7fd8528f2c7538e534a35 100644 --- a/bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/iodide.master.fonts.xml +++ b/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite.xml @@ -2,7 +2,7 @@ - + @@ -14,7 +14,7 @@ id - iodide.master.fonts + renderjs_ui_notebook_zuite title diff --git a/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerJS.xml b/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerJS.xml new file mode 100644 index 0000000000000000000000000000000000000000..e01386ddb28ea23740ecb0fddb8278c3e4a65275 --- /dev/null +++ b/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerJS.xml @@ -0,0 +1,58 @@ + + + + + + + + + + _bind_names + + + + + + + + + + _asgns + + + + name_subpath + traverse_subpath + + + + + + + + + + + content_type + text/html + + + expand + 0 + + + id + testNotebookJSMDViewerJS + + + output_encoding + utf-8 + + + title + + + + + + diff --git a/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerJS.zpt b/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerJS.zpt new file mode 100644 index 0000000000000000000000000000000000000000..cd8700cbc5158203627c0a591948b9670b3f658e --- /dev/null +++ b/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerJS.zpt @@ -0,0 +1,57 @@ + + + +Test Notebook JSMD RenderJS UI + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test Notebook JSMD RenderJS UI
open${base_url}/web_site_module/renderjs_runner/#/notebook_module/notebook_test_purejs
waitForElementPresent//iframe
waitForElementPresent//iframe[contains(@src, 'gadget_jsmd_viewer.html')]
selectFrameindex=0
waitForElementPresent//body//iframe
selectFrameindex=0
waitForElementPresent//h1[contains(text(),'Notebook JSMD Viewer Test')]
waitForElementPresent//code[contains(text(),'42')]
+ + \ No newline at end of file diff --git a/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerPyBasic.xml b/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerPyBasic.xml new file mode 100644 index 0000000000000000000000000000000000000000..dbaf41ee727b228587d60d19b84873b4ddadfbff --- /dev/null +++ b/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerPyBasic.xml @@ -0,0 +1,58 @@ + + + + + + + + + + _bind_names + + + + + + + + + + _asgns + + + + name_subpath + traverse_subpath + + + + + + + + + + + content_type + text/html + + + expand + 0 + + + id + testNotebookJSMDViewerPyBasic + + + output_encoding + utf-8 + + + title + + + + + + diff --git a/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerPyBasic.zpt b/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerPyBasic.zpt new file mode 100644 index 0000000000000000000000000000000000000000..58475d6d272e271c303bef7571415495803b3379 --- /dev/null +++ b/bt5/erp5_notebook_test/PathTemplateItem/portal_tests/renderjs_ui_notebook_zuite/testNotebookJSMDViewerPyBasic.zpt @@ -0,0 +1,57 @@ + + + +Test Notebook JSMD RenderJS UI + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test Notebook JSMD RenderJS UI
open${base_url}/web_site_module/renderjs_runner/#/notebook_module/notebook_test_python_basic
waitForElementPresent//iframe
waitForElementPresent//iframe[contains(@src, 'gadget_jsmd_viewer.html')]
selectFrameindex=0
waitForElementPresent//body//iframe
selectFrameindex=0
waitForElementPresent//h1[contains(text(),'Notebook JSMD Viewer Basic Python Test')]
waitForElementPresent//code[contains(text(),'42')]
+ + \ No newline at end of file diff --git a/bt5/erp5_notebook_test/TestTemplateItem/portal_components/test.erp5.testNotebookRJS.py b/bt5/erp5_notebook_test/TestTemplateItem/portal_components/test.erp5.testNotebookRJS.py new file mode 100644 index 0000000000000000000000000000000000000000..291963fb1349b24e6b11319a7221d7ef7ac95135 --- /dev/null +++ b/bt5/erp5_notebook_test/TestTemplateItem/portal_components/test.erp5.testNotebookRJS.py @@ -0,0 +1,48 @@ +############################################################################## +# +# Copyright (c) 2019 Nexedi SARL and Contributors. All Rights Reserved. +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsability of assessing all potential +# consequences resulting from its eventual inadequacies and bugs +# End users who are looking for a ready-to-use solution with commercial +# garantees and support are strongly adviced to contract a Free Software +# Service Company +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +############################################################################## +import unittest + +from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import ERP5TypeFunctionalTestCase + +class TestNotebookRJSUI(ERP5TypeFunctionalTestCase): + foreground = 0 + run_only = "renderjs_ui_notebook_zuite" + + def getBusinessTemplateList(self): + return ( + 'erp5_web_renderjs_ui', + 'erp5_notebook', + 'erp5_notebook_test', + 'erp5_ui_test_core', + 'erp5_accounting', + 'erp5_test_result', + ) + +def test_suite(): + suite = unittest.TestSuite() + suite.addTest(unittest.makeSuite(TestNotebookRJSUI)) + return suite \ No newline at end of file diff --git a/bt5/erp5_notebook_test/TestTemplateItem/portal_components/test.erp5.testNotebookRJS.xml b/bt5/erp5_notebook_test/TestTemplateItem/portal_components/test.erp5.testNotebookRJS.xml new file mode 100644 index 0000000000000000000000000000000000000000..f9a255e27fcc7384a23f89019943662978276b94 --- /dev/null +++ b/bt5/erp5_notebook_test/TestTemplateItem/portal_components/test.erp5.testNotebookRJS.xml @@ -0,0 +1,123 @@ + + + + + + + + + + _recorded_property_dict + + AAAAAAAAAAI= + + + + default_reference + testNotebookRJS + + + description + + + + + + id + test.erp5.testNotebookRJS + + + portal_type + Test Component + + + sid + + + + + + text_content_error_message + + + + + + text_content_warning_message + + + + + + version + erp5 + + + workflow_history + + AAAAAAAAAAM= + + + + + + + + + + + + + data + + + + + + + + + + + + + + + data + + + + component_validation_workflow + + AAAAAAAAAAQ= + + + + + + + + + + + + + + + + + + + action + validate + + + validation_state + validated + + + + + + + diff --git a/bt5/erp5_notebook_test/bt/dependency_list b/bt5/erp5_notebook_test/bt/dependency_list new file mode 100644 index 0000000000000000000000000000000000000000..1c3aa5509a5177059ebfaad6e24805fd705b505f --- /dev/null +++ b/bt5/erp5_notebook_test/bt/dependency_list @@ -0,0 +1,7 @@ +erp5_notebook +erp5_ui_test_core +erp5_ui_test +erp5_web_renderjs_ui +erp5_gadget_interface_validator +erp5_accounting +erp5_test_result \ No newline at end of file diff --git a/bt5/erp5_notebook_test/bt/description b/bt5/erp5_notebook_test/bt/description new file mode 100644 index 0000000000000000000000000000000000000000..85fbc2c7d5e4dd9c1f2125db1d0ab59e51b9f89f --- /dev/null +++ b/bt5/erp5_notebook_test/bt/description @@ -0,0 +1 @@ +Notebook renderjs test suite \ No newline at end of file diff --git a/bt5/erp5_notebook_test/bt/template_format_version b/bt5/erp5_notebook_test/bt/template_format_version new file mode 100644 index 0000000000000000000000000000000000000000..56a6051ca2b02b04ef92d5150c9ef600403cb1de --- /dev/null +++ b/bt5/erp5_notebook_test/bt/template_format_version @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/bt5/erp5_notebook_test/bt/template_keep_workflow_path_list b/bt5/erp5_notebook_test/bt/template_keep_workflow_path_list new file mode 100644 index 0000000000000000000000000000000000000000..ec7c14c07a4d716a406cca9942b960df19dbdf20 --- /dev/null +++ b/bt5/erp5_notebook_test/bt/template_keep_workflow_path_list @@ -0,0 +1,2 @@ +notebook_module/notebook_test_purejs +notebook_module/notebook_test_python_basic \ No newline at end of file diff --git a/bt5/erp5_notebook_test/bt/template_module_id_list b/bt5/erp5_notebook_test/bt/template_module_id_list new file mode 100644 index 0000000000000000000000000000000000000000..3cc2430b48d9a8400e5e18d599db7863e4a32c3f --- /dev/null +++ b/bt5/erp5_notebook_test/bt/template_module_id_list @@ -0,0 +1 @@ +notebook_module \ No newline at end of file diff --git a/bt5/erp5_notebook_test/bt/template_path_list b/bt5/erp5_notebook_test/bt/template_path_list new file mode 100644 index 0000000000000000000000000000000000000000..7f2e7660c8c638f5ad1a33e557ebd2ae1889a029 --- /dev/null +++ b/bt5/erp5_notebook_test/bt/template_path_list @@ -0,0 +1,4 @@ +notebook_module/notebook_test_purejs +notebook_module/notebook_test_python_basic +portal_tests/renderjs_ui_notebook_zuite +portal_tests/renderjs_ui_notebook_zuite/** \ No newline at end of file diff --git a/bt5/erp5_notebook_test/bt/template_test_id_list b/bt5/erp5_notebook_test/bt/template_test_id_list new file mode 100644 index 0000000000000000000000000000000000000000..fa12ef60df99b7ee7c31827c2f62f18a966e582e --- /dev/null +++ b/bt5/erp5_notebook_test/bt/template_test_id_list @@ -0,0 +1 @@ +test.erp5.testNotebookRJS \ No newline at end of file diff --git a/bt5/erp5_notebook_test/bt/test_dependency_list b/bt5/erp5_notebook_test/bt/test_dependency_list new file mode 100644 index 0000000000000000000000000000000000000000..bff77e32d84989312efdf3b2caed2e39f9a513ed --- /dev/null +++ b/bt5/erp5_notebook_test/bt/test_dependency_list @@ -0,0 +1 @@ +erp5_full_text_mroonga_catalog \ No newline at end of file diff --git a/bt5/erp5_notebook_test/bt/title b/bt5/erp5_notebook_test/bt/title new file mode 100644 index 0000000000000000000000000000000000000000..dfb2157da14751bfef42ef9ec0dc86ca7b89561b --- /dev/null +++ b/bt5/erp5_notebook_test/bt/title @@ -0,0 +1 @@ +erp5_notebook_test \ No newline at end of file diff --git a/tests/__init__.py b/tests/__init__.py index 580935d622e98b70ce2b2f976a2339adbca29f28..5c5da1aaf8c706c7e18c225b545ed7c1fe792c30 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -35,9 +35,7 @@ class _ERP5(ERP5TypeTestSuite): component_re = re.compile(".*/([^/]+)/TestTemplateItem/portal_components" "/test\.[^.]+\.([^.]+).py$") for test_path in ( - glob('%s/product/*/tests/test*.py' % path) + - glob('%s/bt5/*/TestTemplateItem/test*.py' % path) + - glob('%s/bt5/*/TestTemplateItem/portal_components/test.*.test*.py' % path)): + glob('%s/bt5/erp5_notebook_test/TestTemplateItem/portal_components/test.*.test*.py' % path)): component_re_match = component_re.match(test_path) if component_re_match is not None: test_case = "%s:%s" % (component_re_match.group(1),