diff --git a/.gitignore b/.gitignore index 6dabb74..e981363 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,10 @@ *.swp npm-debug.log - /coverage /debug /dist /node_modules - .nyc_output -.envrc \ No newline at end of file +.envrc +docs/dist +.DS_Store diff --git a/.npmignore b/.npmignore index 1cab9b4..54c9b2c 100644 --- a/.npmignore +++ b/.npmignore @@ -8,14 +8,12 @@ npm-debug.log /demo /dev-server /doc -/docker /entrypoints /node_modules /src /test /webpack -Dockerfile .babelrc .coveralls.yml .gitignore diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 74f71a9..190a035 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,9 +21,3 @@ npm run build Please add tests for your code before posting a pull request. You can run the test suite with `npm run test` or `npm run test:watch` to automatically reload when files are modified. - -## Docker Tools - -I recommend using docker for development because it enforces environmental consistency. - -For information about contributing with Docker, see the [README in ./docker](https://github.com/microlinkhq/react-json-view/blob/master/docker/README.md#contributing-to-this-project-using-docker). diff --git a/LICENSE b/LICENSE.md similarity index 100% rename from LICENSE rename to LICENSE.md diff --git a/README.md b/README.md index 6c37876..64b1651 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ +

- react-json-view + + react-json-view
react-json-view
@@ -11,10 +13,7 @@ **react-json-view** (rjv) is a React component for displaying and editing javascript **arrays** and **JSON objects**. -
- Output Example 1 - Output Example 2 -
+![](https://raw.githubusercontent.com/microlinkhq/react-json-view/docs/docs/assets/banner.png) ### Highlights @@ -158,3 +157,10 @@ Check [react-json-view.microlink.io](https://react-json-view.microlink.io/) to s **rjv** supports any base-16 theme. You can supply your own base-16 theme object. To better understand custom themes, take a look at [my example implementation](https://github.com/microlinkhq/react-json-view/blob/7c154b9a7d83ea89dce2c171ebdf4d163ff49233/dev-server/src/index.js#L135) and the [base-16 theme styling guidelines](https://github.com/chriskempson/base16/blob/master/styling.md). + +## License + +**react-json-view** © [microlink.io](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/cards/blob/master/LICENSE.md) License.
+Authored by [Mac Gainor](https://github.com/mac-s-g) and maintained by [Kiko Beats](https://kikobeats.com) with help from [contributors](https://github.com/microlinkhq/cards/contributors). + +> [microlink.io](https://microlink.io) · GitHub [microlink.io](https://github.com/microlinkhq) · X [@microlinkhq](https://x.com/microlinkhq) diff --git a/demo/dist/index.html b/demo/dist/index.html deleted file mode 100644 index 8cb97d9..0000000 --- a/demo/dist/index.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - RJV Demo - - - - - - - - - - -
-
- - -
- - - diff --git a/demo/dist/main.js b/demo/dist/main.js deleted file mode 100644 index 9de663e..0000000 --- a/demo/dist/main.js +++ /dev/null @@ -1,12 +0,0 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("ReactDOM"),require("React")):"function"==typeof define&&define.amd?define(["ReactDOM","React"],t):"object"==typeof exports?exports.reactJsonView=t(require("ReactDOM"),require("React")):e.reactJsonView=t(e.ReactDOM,e.React)}(self,((e,t)=>(()=>{var n={9735:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},294:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},1733:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},8974:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},6933:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},523:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},1223:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},1233:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},2847:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},8120:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},6305:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},525:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},4124:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},7167:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},4582:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},7096:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},9887:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},7199:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},1985:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},8093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},1615:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},9063:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},9446:(e,t,n)=>{"use strict";function a(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var r=n(1308);t.threezerotwofour=a(r);var o=n(9735);t.apathy=a(o);var i=n(294);t.ashes=a(i);var s=n(1733);t.atelierDune=a(s);var l=n(8974);t.atelierForest=a(l);var u=n(6933);t.atelierHeath=a(u);var c=n(523);t.atelierLakeside=a(c);var p=n(1223);t.atelierSeaside=a(p);var d=n(1233);t.bespin=a(d);var h=n(2847);t.brewer=a(h);var b=n(8120);t.bright=a(b);var f=n(6305);t.chalk=a(f);var v=n(525);t.codeschool=a(v);var g=n(4124);t.colors=a(g);var m=n(7167);t.default=a(m);var y=n(4582);t.eighties=a(y);var E=n(7096);t.embers=a(E);var k=n(9887);t.flat=a(k);var S=n(7199);t.google=a(S);var w=n(1985);t.grayscale=a(w);var x=n(8093);t.greenscreen=a(x);var C=n(1615);t.harmonic=a(C);var O=n(9063);t.hopscotch=a(O);var j=n(9033);t.isotope=a(j);var A=n(4112);t.marrakesh=a(A);var M=n(9600);t.mocha=a(M);var F=n(1240);t.monokai=a(F);var D=n(9768);t.ocean=a(D);var _=n(8293);t.paraiso=a(_);var I=n(3093);t.pop=a(I);var P=n(1951);t.railscasts=a(P);var T=n(6368);t.shapeshifter=a(T);var N=n(2317);t.solarized=a(N);var R=n(1091);t.summerfruit=a(R);var B=n(6943);t.tomorrow=a(B);var z=n(5670);t.tube=a(z);var L=n(2536);t.twilight=a(L)},9033:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},4112:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},9600:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},1240:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},9768:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},8293:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},3093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},1951:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},6368:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},2317:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},1091:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},1308:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},6943:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},5670:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},2536:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},6481:(e,t,n)=>{var a=n(4176),r={};for(var o in a)a.hasOwnProperty(o)&&(r[a[o]]=o);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in i)if(i.hasOwnProperty(s)){if(!("channels"in i[s]))throw new Error("missing channels property: "+s);if(!("labels"in i[s]))throw new Error("missing channel labels property: "+s);if(i[s].labels.length!==i[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=i[s].channels,u=i[s].labels;delete i[s].channels,delete i[s].labels,Object.defineProperty(i[s],"channels",{value:l}),Object.defineProperty(i[s],"labels",{value:u})}i.rgb.hsl=function(e){var t,n,a=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.min(a,r,o),s=Math.max(a,r,o),l=s-i;return s===i?t=0:a===s?t=(r-o)/l:r===s?t=2+(o-a)/l:o===s&&(t=4+(a-r)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+s)/2,[t,100*(s===i?0:n<=.5?l/(s+i):l/(2-s-i)),100*n]},i.rgb.hsv=function(e){var t,n,a,r,o,i=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(i,s,l),c=u-Math.min(i,s,l),p=function(e){return(u-e)/6/c+.5};return 0===c?r=o=0:(o=c/u,t=p(i),n=p(s),a=p(l),i===u?r=a-n:s===u?r=1/3+t-a:l===u&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*u]},i.rgb.hwb=function(e){var t=e[0],n=e[1],a=e[2];return[i.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,a))),100*(a=1-1/255*Math.max(t,Math.max(n,a)))]},i.rgb.cmyk=function(e){var t,n=e[0]/255,a=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-a,1-r)))/(1-t)||0),100*((1-a-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var t=r[e];if(t)return t;var n,o,i,s=1/0;for(var l in a)if(a.hasOwnProperty(l)){var u=a[l],c=(o=e,i=u,Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*t+.7152*n+.0722*a),100*(.0193*t+.1192*n+.9505*a)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),n=t[0],a=t[1],r=t[2];return a/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(n-a),200*(a-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},i.hsl.rgb=function(e){var t,n,a,r,o,i=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),r=[0,0,0];for(var u=0;u<3;u++)(a=i+1/3*-(u-1))<0&&a++,a>1&&a--,o=6*a<1?t+6*(n-t)*a:2*a<1?n:3*a<2?t+(n-t)*(2/3-a)*6:t,r[u]=255*o;return r},i.hsl.hsv=function(e){var t=e[0],n=e[1]/100,a=e[2]/100,r=n,o=Math.max(a,.01);return n*=(a*=2)<=1?a:2-a,r*=o<=1?o:2-o,[t,100*(0===a?2*r/(o+r):2*n/(a+n)),100*((a+n)/2)]},i.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,a=e[2]/100,r=Math.floor(t)%6,o=t-Math.floor(t),i=255*a*(1-n),s=255*a*(1-n*o),l=255*a*(1-n*(1-o));switch(a*=255,r){case 0:return[a,l,i];case 1:return[s,a,i];case 2:return[i,a,l];case 3:return[i,s,a];case 4:return[l,i,a];case 5:return[a,i,s]}},i.hsv.hsl=function(e){var t,n,a,r=e[0],o=e[1]/100,i=e[2]/100,s=Math.max(i,.01);return a=(2-o)*i,n=o*s,[r,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(a/=2)]},i.hwb.rgb=function(e){var t,n,a,r,o,i,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,p=u+c;switch(p>1&&(u/=p,c/=p),a=6*l-(t=Math.floor(6*l)),1&t&&(a=1-a),r=u+a*((n=1-c)-u),t){default:case 6:case 0:o=n,i=r,s=u;break;case 1:o=r,i=n,s=u;break;case 2:o=u,i=n,s=r;break;case 3:o=u,i=r,s=n;break;case 4:o=r,i=u,s=n;break;case 5:o=n,i=u,s=r}return[255*o,255*i,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},i.xyz.rgb=function(e){var t,n,a,r=e[0]/100,o=e[1]/100,i=e[2]/100;return n=-.9689*r+1.8758*o+.0415*i,a=.0557*r+-.204*o+1.057*i,t=(t=3.2406*r+-1.5372*o+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(a=Math.min(Math.max(0,a),1))]},i.xyz.lab=function(e){var t=e[0],n=e[1],a=e[2];return n/=100,a/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},i.lab.xyz=function(e){var t,n,a,r=e[0];t=e[1]/500+(n=(r+16)/116),a=n-e[2]/200;var o=Math.pow(n,3),i=Math.pow(t,3),s=Math.pow(a,3);return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,[t*=95.047,n*=100,a*=108.883]},i.lab.lch=function(e){var t,n=e[0],a=e[1],r=e[2];return(t=360*Math.atan2(r,a)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(a*a+r*r),t]},i.lch.lab=function(e){var t,n=e[0],a=e[1];return t=e[2]/360*2*Math.PI,[n,a*Math.cos(t),a*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],n=e[1],a=e[2],r=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(r=Math.round(r/50)))return 30;var o=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===r&&(o+=60),o},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],n=e[1],a=e[2];return t===n&&n===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var a=parseInt(n,16);return[a>>16&255,a>>8&255,255&a]},i.rgb.hcg=function(e){var t,n=e[0]/255,a=e[1]/255,r=e[2]/255,o=Math.max(Math.max(n,a),r),i=Math.min(Math.min(n,a),r),s=o-i;return t=s<=0?0:o===n?(a-r)/s%6:o===a?2+(r-n)/s:4+(n-a)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?i/(1-s):0)]},i.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=1,r=0;return(a=n<.5?2*t*n:2*t*(1-n))<1&&(r=(n-.5*a)/(1-a)),[e[0],100*a,100*r]},i.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=t*n,r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},i.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0===n)return[255*a,255*a,255*a];var r,o=[0,0,0],i=t%1*6,s=i%1,l=1-s;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return r=(1-n)*a,[255*(n*o[0]+r),255*(n*o[1]+r),255*(n*o[2]+r)]},i.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},i.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},i.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,a=n-t,r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},4732:(e,t,n)=>{var a=n(6481),r=n(1157),o={};Object.keys(a).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:a[e].channels}),Object.defineProperty(o[e],"labels",{value:a[e].labels});var t=r(e);Object.keys(t).forEach((function(n){var a=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var a=n.length,r=0;r1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))})),e.exports=o},1157:(e,t,n)=>{var a=n(6481);function r(e){var t=function(){for(var e={},t=Object.keys(a),n=t.length,r=0;r{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4877:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},6138:(e,t,n)=>{var a=n(4877),r=n(301),o=Object.hasOwnProperty,i=Object.create(null);for(var s in a)o.call(a,s)&&(i[a[s]]=s);var l=e.exports={to:{},get:{}};function u(e,t,n){return Math.min(Math.max(t,e),n)}function c(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,r,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=t[2],t=t[1],n=0;n<3;n++){var s=2*n;i[n]=parseInt(t.slice(s,s+2),16)}r&&(i[3]=parseInt(r,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(r=(t=t[1])[3],n=0;n<3;n++)i[n]=parseInt(t[n]+t[n],16);r&&(i[3]=parseInt(r+r,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)i[n]=parseInt(t[n+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(a,t[1])?((i=a[t[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(n=0;n<3;n++)i[n]=u(i[n],0,255);return i[3]=u(i[3],0,1),i},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=r(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=r(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=r(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+a+"%)":"rgba("+t+"%, "+n+"%, "+a+"%, "+e[3]+")"},l.to.hsl=function(){var e=r(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=r(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return i[e.slice(0,3)]}},3639:(e,t,n)=>{"use strict";var a=n(6138),r=n(4732),o=[].slice,i=["keyword","gray","hex"],s={};Object.keys(r).forEach((function(e){s[o.call(r[e].labels).sort().join("")]=e}));var l={};function u(e,t){if(!(this instanceof u))return new u(e,t);if(t&&t in i&&(t=null),t&&!(t in r))throw new Error("Unknown model: "+t);var n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof u)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var p=a.get(e);if(null===p)throw new Error("Unable to parse color from string: "+e);this.model=p.model,c=r[this.model].channels,this.color=p.value.slice(0,c),this.valpha="number"==typeof p.value[c]?p.value[c]:1}else if(e.length){this.model=t||"rgb",c=r[this.model].channels;var h=o.call(e,0,c);this.color=d(h,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var b=Object.keys(e);"alpha"in e&&(b.splice(b.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var f=b.sort().join("");if(!(f in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[f];var v=r[this.model].labels,g=[];for(n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return u.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),a=this.rgb(),r=void 0===t?.5:t,o=2*r-1,i=n.alpha()-a.alpha(),s=((o*i==-1?o:(o+i)/(1+o*i))+1)/2,l=1-s;return u.rgb(s*n.red()+l*a.red(),s*n.green()+l*a.green(),s*n.blue()+l*a.blue(),n.alpha()*r+a.alpha()*(1-r))}},Object.keys(r).forEach((function(e){if(-1===i.indexOf(e)){var t=r[e].channels;u.prototype[e]=function(){if(this.model===e)return new u(this);if(arguments.length)return new u(arguments,e);var n,a="number"==typeof arguments[t]?t:this.valpha;return new u((n=r[this.model][e].raw(this.color),Array.isArray(n)?n:[n]).concat(a),e)},u[e]=function(n){return"number"==typeof n&&(n=d(o.call(arguments),t)),new u(n,e)}}})),e.exports=u},2326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var a=n(3535),r=n.n(a)()(!1);r.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Open+Sans);"]),r.push([e.id,'#mac-react-container{font-family:"Open Sans";padding:20px}#mac-react-container .header-1{font-size:28px;margin-right:5px;margin-bottom:3px}#mac-react-container .header-2{font-size:22px;margin-right:5px;margin-bottom:5px;font-style:italic}',""]);const o=r},143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var a=n(3535),r=n.n(a)()(!1);r.push([e.id,".rjv-demo .rjv-settings,.rjv-demo .rjv-source{vertical-align:top;display:inline-block;margin-top:5px;margin-right:10px;min-width:300px;max-width:400px}.rjv-demo .rjv-settings .rjv-input,.rjv-demo .rjv-source .rjv-input{margin-bottom:5px}.rjv-demo .rjv-settings .rjv-input .rjv-label,.rjv-demo .rjv-source .rjv-input .rjv-label{padding:.5em;font-size:14px;font-weight:bold}.rjv-demo .rjv-header{position:relative}.rjv-demo .rjv-header .rjv-logo{width:100px;position:absolute;right:0px;top:0px;cursor:pointer}.rjv-demo .rjv-header .github-btn{display:block;position:absolute;right:0px;top:48px}",""]);const o=r},6392:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var a=n(3535),r=n.n(a)()(!1);r.push([e.id,'.github-btn{font:bold 11px/14px "Helvetica Neue",Helvetica,Arial,sans-serif;height:20px;overflow:hidden}.gh-btn,.gh-count,.gh-ico{float:left}.gh-btn,.gh-count{padding:2px 5px 2px 4px;color:#333;text-decoration:none;white-space:nowrap;cursor:pointer;border-radius:3px}.gh-btn{background-color:#eee;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fcfcfc), color-stop(100%, #eee));background-image:-webkit-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:-moz-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:-ms-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:-o-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:linear-gradient(to bottom, #fcfcfc 0, #eee 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fcfcfc", endColorstr="#eeeeee", GradientType=0);background-repeat:no-repeat;border:1px solid #d5d5d5}.gh-btn:hover,.gh-btn:focus{text-decoration:none;background-color:#ddd;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, #eee), color-stop(100%, #ddd));background-image:-webkit-linear-gradient(top, #eee 0, #ddd 100%);background-image:-moz-linear-gradient(top, #eee 0, #ddd 100%);background-image:-ms-linear-gradient(top, #eee 0, #ddd 100%);background-image:-o-linear-gradient(top, #eee 0, #ddd 100%);background-image:linear-gradient(to bottom, #eee 0, #ddd 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#eeeeee", endColorstr="#dddddd", GradientType=0);border-color:#ccc}.gh-btn:active{background-image:none;background-color:#dcdcdc;border-color:#b5b5b5;box-shadow:inset 0 2px 4px rgba(0,0,0,.15)}.gh-ico{width:14px;height:14px;margin-right:4px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjQwcHgiIGhlaWdodD0iNDBweCIgdmlld0JveD0iMTIgMTIgNDAgNDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMTIgMTIgNDAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiMzMzMzMzMiIGQ9Ik0zMiAxMy40Yy0xMC41IDAtMTkgOC41LTE5IDE5YzAgOC40IDUuNSAxNS41IDEzIDE4YzEgMC4yIDEuMy0wLjQgMS4zLTAuOWMwLTAuNSAwLTEuNyAwLTMuMiBjLTUuMyAxLjEtNi40LTIuNi02LjQtMi42QzIwIDQxLjYgMTguOCA0MSAxOC44IDQxYy0xLjctMS4yIDAuMS0xLjEgMC4xLTEuMWMxLjkgMC4xIDIuOSAyIDIuOSAyYzEuNyAyLjkgNC41IDIuMSA1LjUgMS42IGMwLjItMS4yIDAuNy0yLjEgMS4yLTIuNmMtNC4yLTAuNS04LjctMi4xLTguNy05LjRjMC0yLjEgMC43LTMuNyAyLTUuMWMtMC4yLTAuNS0wLjgtMi40IDAuMi01YzAgMCAxLjYtMC41IDUuMiAyIGMxLjUtMC40IDMuMS0wLjcgNC44LTAuN2MxLjYgMCAzLjMgMC4yIDQuNyAwLjdjMy42LTIuNCA1LjItMiA1LjItMmMxIDIuNiAwLjQgNC42IDAuMiA1YzEuMiAxLjMgMiAzIDIgNS4xYzAgNy4zLTQuNSA4LjktOC43IDkuNCBjMC43IDAuNiAxLjMgMS43IDEuMyAzLjVjMCAyLjYgMCA0LjYgMCA1LjJjMCAwLjUgMC40IDEuMSAxLjMgMC45YzcuNS0yLjYgMTMtOS43IDEzLTE4LjFDNTEgMjEuOSA0Mi41IDEzLjQgMzIgMTMuNHoiLz48L3N2Zz4=");background-size:100% 100%;background-repeat:no-repeat}.gh-count{position:relative;display:none;margin-left:4px;background-color:#fafafa;border:1px solid #d4d4d4}.gh-count:hover,.gh-count:focus{color:#4183c4}.gh-count:before,.gh-count:after{content:"";position:absolute;display:inline-block;width:0;height:0;border-color:transparent;border-style:solid}.gh-count:before{top:50%;left:-3px;margin-top:-4px;border-width:4px 4px 4px 0;border-right-color:#fafafa}.gh-count:after{top:50%;left:-4px;z-index:-1;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#d4d4d4}.github-btn-large{height:30px}.github-btn-large .gh-btn,.github-btn-large .gh-count{padding:3px 10px 3px 8px;font-size:16px;line-height:22px;border-radius:4px}.github-btn-large .gh-ico{width:20px;height:20px}.github-btn-large .gh-count{margin-left:6px}.github-btn-large .gh-count:before{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0}.github-btn-large .gh-count:after{left:-6px;margin-top:-7px;border-width:7px 7px 7px 0}',""]);const o=r},97:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var a=n(3535),r=n.n(a)()(!1);r.push([e.id,".Select{position:relative}.Select input::-webkit-contacts-auto-fill-button,.Select input::-webkit-credentials-auto-fill-button{display:none !important}.Select input::-ms-clear{display:none !important}.Select input::-ms-reveal{display:none !important}.Select,.Select div,.Select input,.Select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.Select.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.Select.is-searchable.is-open>.Select-control{cursor:text}.Select.is-searchable.is-focused:not(.is-open)>.Select-control{cursor:text}.Select.is-focused>.Select-control{background:#fff}.Select.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1);background:#fff}.Select.has-value.is-clearable.Select--single>.Select-control .Select-value{padding-right:42px}.Select.has-value.Select--single>.Select-control .Select-value .Select-value-label,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus{color:#007eff;outline:none;text-decoration:underline}.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus{background:#fff}.Select.has-value.is-pseudo-focused .Select-input{opacity:0}.Select.is-open .Select-arrow,.Select .Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select.Select--rtl{direction:rtl;text-align:right}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b3b3;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none;background:#fff}.Select-placeholder,.Select--single>.Select-control .Select-value{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:17px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:16px}.Select-loading{-webkit-animation:Select-animation-spin 400ms infinite linear;-o-animation:Select-animation-spin 400ms infinite linear;animation:Select-animation-spin 400ms infinite linear;width:16px;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block;position:relative;vertical-align:middle}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn 200ms;-o-animation:Select-animation-fadeIn 200ms;animation:Select-animation-fadeIn 200ms;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select--rtl .Select-arrow-zone{padding-right:0;padding-left:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0;position:relative}.Select-control>*:last-child{padding-right:5px}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{position:absolute;display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0, 0, 0, 0);overflow:hidden;float:left}@-webkit-keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.Select--rtl .Select-input{margin-left:0;margin-right:10px}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:hover,.Select--multi .Select-value-icon:focus{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.Select--rtl .Select-value{margin-left:0;margin-right:5px}.Select--multi.Select--rtl .Select-value-icon{border-right:none;border-left:1px solid #c2e0ff;border-left:1px solid rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:hover,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:active{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}",""]);const o=r},3535:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"==typeof btoa){var r=(i=a,s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([r]).join("\n")}var i,s,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,a){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(a)for(var o=0;o{"use strict";var t,n="object"==typeof Reflect?Reflect:null,a=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,a){function r(n){e.removeListener(t,o),a(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}f(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&f(e,"error",t,n)}(e,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,a){var r,o,i,u;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),i=o[t]),void 0===i)i=o[t]=n,++e._eventsCount;else if("function"==typeof i?i=o[t]=a?[n,i]:[i,n]:a?i.unshift(n):i.push(n),(r=l(e))>0&&i.length>r&&!i.warned){i.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=i.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=c.bind(a);return r.listener=n,a.wrapFn=r,r}function d(e,t,n){var a=e._events;if(void 0===a)return[];var r=a[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var u=l.length,c=b(l,u);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){i=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4263:e=>{"use strict";var t=function(e){};e.exports=function(e,n){for(var a=arguments.length,r=new Array(a>2?a-2:0),o=2;o{e.exports.Dispatcher=n(9808)},9808:(e,t,n)=>{"use strict";function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(4263),o=function(){function e(){a(this,"_callbacks",void 0),a(this,"_isDispatching",void 0),a(this,"_isHandled",void 0),a(this,"_isPending",void 0),a(this,"_lastID",void 0),a(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=e.prototype;return t.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},t.unregister=function(e){this._callbacks[e]||r(!1),delete this._callbacks[e]},t.waitFor=function(e){this._isDispatching||r(!1);for(var t=0;t{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},3989:(e,t,n)=>{var a="__lodash_placeholder__",r=32,o=1/0,i=NaN,s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",r],["partialRight",64],["rearg",256]],l="[object Function]",u="[object GeneratorFunction]",c=/^\s+|\s+$/g,p=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,d=/\{\n\/\* \[wrapped with (.+)\] \*/,h=/,? & /,b=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,v=/^\[object .+?Constructor\]$/,g=/^0o[0-7]+$/i,m=/^(?:0|[1-9]\d*)$/,y=parseInt,E="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,k="object"==typeof self&&self&&self.Object===Object&&self,S=E||k||Function("return this")();function w(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 x(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,a){var r=e.length,o=n+(a?1:-1);for(;a?o--:++o-1}function C(e){return e!=e}function O(e,t){for(var n=-1,r=e.length,o=0,i=[];++n2?A:void 0);function q(e){if(!te(e)||function(e){return!!I&&I in e}(e))return!1;var t=function(e){var t=te(e)?N.call(e):"";return t==l||t==u}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?R:v;return t.test(function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function K(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n,a=te(n=e.prototype)?B(n):{},r=e.apply(a,t);return te(r)?r:a}}function W(e,t,n,a,r,o,i,s,l,u){var c=128&t,p=1&t,d=2&t,h=24&t,b=512&t,f=d?void 0:K(e);return function v(){for(var g=arguments.length,m=Array(g),y=g;y--;)m[y]=arguments[y];if(h)var E=Y(v),k=function(e,t){for(var n=e.length,a=0;n--;)e[n]===t&&a++;return a}(m,E);if(a&&(m=function(e,t,n,a){for(var r=-1,o=e.length,i=n.length,s=-1,l=t.length,u=z(o-i,0),c=Array(l+u),p=!a;++s1&&m.reverse(),c&&l1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(p,"{\n/* [wrapped with "+t+"] */\n")}function Q(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||m.test(e))&&e>-1&&e%1==0&&e{"use strict";var a=n(2985);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},2736:(e,t,n)=>{e.exports=n(6186)()},2985:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("undefined"!=typeof XDomainRequest)return t(null),null;var n=new XMLHttpRequest;return n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&200===n.status&&t(JSON.parse(n.responseText))},n.open("GET",e,!0),n.send(),n},e.exports=t.default},3442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["className","type","size"]);delete i.namespace,delete i.repo;var l,u,c,d=this.state.count,h=s.classNames((c=t,(u=t)in(l={"github-btn":!0,"github-btn-large":"large"===o})?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c,l));return r.default.createElement("span",a({},i,{className:h}),r.default.createElement("a",{className:"gh-btn",href:this.getRepoUrl(),target:"_blank"},r.default.createElement("span",{className:"gh-ico","aria-hidden":"true"}),r.default.createElement("span",{className:"gh-text"},p[n])),r.default.createElement("a",{className:"gh-count",target:"_blank",href:this.getCountUrl(),style:this.getCountStyle()},d))},t}(r.default.Component);h.displayName="GitHubButton",h.propTypes={className:o.default.string,type:o.default.oneOf(["stargazers","watchers","forks"]).isRequired,namespace:o.default.string.isRequired,repo:o.default.string.isRequired,size:o.default.oneOf(["large"])},t.default=h,e.exports=t.default},7027:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classNames=function(e){return Object.keys(e).filter((function(t){return e[t]})).join(" ")}},8225:(e,t,n)=>{"use strict";var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",a({},r,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(o.Component);b.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},b.defaultProps={minWidth:1,injectStyles:!0},t.A=b},301:(e,t,n)=>{"use strict";var a=n(8336),r=Array.prototype.concat,o=Array.prototype.slice,i=e.exports=function(e){for(var t=[],n=0,i=e.length;n{var a=n(4710),r=n(2326);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:"head",singleton:!1};a(r,o);e.exports=r.locals||{}},8896:(e,t,n)=>{var a=n(4710),r=n(143);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:"head",singleton:!1};a(r,o);e.exports=r.locals||{}},8071:(e,t,n)=>{var a=n(4710),r=n(6392);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:"head",singleton:!1};a(r,o);e.exports=r.locals||{}},2132:(e,t,n)=>{var a=n(4710),r=n(97);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:"head",singleton:!1};a(r,o);e.exports=r.locals||{}},4710:(e,t,n)=>{"use strict";var a,r=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n{"use strict";e.exports=t},1845:t=>{"use strict";t.exports=e},7500:(e,t)=>{var n; -/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;return(()=>{"use strict";var e=r(1845),t=r.n(e),n=r(4883),a=r.n(n);function o(e){return o="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(e)}function i(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=o(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function s(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;t-1)return!1;if(a.filterOption)return a.filterOption.call(r,e,t);if(!t)return!0;var o=String(e[a.valueKey]),i=String(e[a.labelKey]);return a.ignoreAccents&&("label"!==a.matchProp&&(o=O(o)),"value"!==a.matchProp&&(i=O(i))),a.ignoreCase&&("label"!==a.matchProp&&(o=o.toLowerCase()),"value"!==a.matchProp&&(i=i.toLowerCase())),"start"===a.matchPos?"label"!==a.matchProp&&o.substr(0,t.length)===t||"value"!==a.matchProp&&i.substr(0,t.length)===t:"label"!==a.matchProp&&o.indexOf(t)>=0||"value"!==a.matchProp&&i.indexOf(t)>=0}))}function A(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,o=e.instancePrefix,i=(e.labelKey,e.onFocus),s=e.onOptionRef,l=e.onSelect,u=e.optionClassName,c=e.optionComponent,p=e.optionRenderer,d=e.options,h=e.removeValue,b=e.selectValue,f=e.valueArray,v=e.valueKey,g=c;return d.map((function(e,c){var d=f&&f.some((function(t){return t[v]==e[v]})),m=e===t,y=w()(u,{"Select-option":!0,"is-selected":d,"is-focused":m,"is-disabled":e.disabled});return a().createElement(g,{className:y,focusOption:n,inputValue:r,instancePrefix:o,isDisabled:e.disabled,isFocused:m,isSelected:d,key:"option-"+c+"-"+e[v],onFocus:i,onSelect:l,option:e,optionIndex:c,ref:function(e){s(e,m)},removeValue:h,selectValue:b},p(e,c,r))}))}var M="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},F=(function(){function e(e){this.value=e}function t(t){var n,a;function r(n,a){try{var i=t[n](a),s=i.value;s instanceof e?Promise.resolve(s.value).then((function(e){r("next",e)}),(function(e){r("throw",e)})):o(i.done?"return":"normal",i.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?r(n.key,n.arg):a=null}this._invoke=function(e,t){return new Promise((function(o,i){var s={key:e,arg:t,resolve:o,reject:i,next:null};a?a=a.next=s:(n=a=s,r(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),D=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n},N=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},R=function(e){function t(e){F(this,t);var n=N(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return P(t,e),D(t,[{key:"blockEvent",value:function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)}},{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(e){this.dragging=!0}},{key:"handleTouchStart",value:function(e){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,o=w()(this.props.className,t.className);return t.disabled?a().createElement("div",{className:o,onMouseDown:this.blockEvent,onClick:this.blockEvent},this.props.children):a().createElement("div",{className:o,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(a().Component);R.propTypes={children:E().node,className:E().string,instancePrefix:E().string.isRequired,isDisabled:E().bool,isFocused:E().bool,isSelected:E().bool,onFocus:E().func,onSelect:E().func,onUnfocus:E().func,option:E().object.isRequired,optionIndex:E().number};var B=function(e){function t(e){F(this,t);var n=N(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return P(t,e),D(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(e){this.dragging=!0}},{key:"handleTouchStart",value:function(e){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return a().createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){var e="Select-value-label";return this.props.onClick||this.props.value.href?a().createElement("a",{className:e,href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):a().createElement("span",{className:e,role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return a().createElement("div",{className:w()("Select-value",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(a().Component);B.propTypes={children:E().node,disabled:E().bool,id:E().string,onClick:E().func,onRemove:E().func,value:E().object.isRequired}; -/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/react-select -*/ -var z=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},L=E().oneOfType([E().string,E().node]),V=E().oneOfType([E().string,E().number]),q=1,K=function(t){function n(e){F(this,n);var t=N(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return["clearValue","focusOption","handleInputBlur","handleInputChange","handleInputFocus","handleInputValueChange","handleKeyDown","handleMenuScroll","handleMouseDown","handleMouseDownOnArrow","handleMouseDownOnMenu","handleRequired","handleTouchOutside","handleTouchMove","handleTouchStart","handleTouchEnd","handleTouchEndClearValue","handleValueClick","getOptionLabel","onOptionRef","removeValue","selectValue"].forEach((function(e){return t[e]=t[e].bind(t)})),t.state={inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1},t}return P(n,t),D(n,[{key:"componentWillMount",value:function(){this._instancePrefix="react-select-"+(this.props.instanceId||++q)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:this.handleRequired(e[0],this.props.multi)})}},{key:"componentDidMount",value:function(){void 0!==this.props.autofocus&&"undefined"!=typeof console&&console.warn("Warning: The autofocus prop has changed to autoFocus, support will be removed after react-select@1.0"),(this.props.autoFocus||this.props.autofocus)&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){var t=this.getValueArray(e.value,e);e.required?this.setState({required:this.handleRequired(t[0],e.multi)}):this.props.required&&this.setState({required:!1})}},{key:"componentDidUpdate",value:function(t,n){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var a=(0,e.findDOMNode)(this.focused),r=(0,e.findDOMNode)(this.menu),o=r.scrollTop,i=o+r.offsetHeight,s=a.offsetTop,l=s+a.offsetHeight;(o>s||id.bottom?c.scrollTop=u.offsetTop+u.clientHeight-c.offsetHeight:p.topt.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"handleRequired",value:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e,t){var n=this,a="object"===(void 0===t?"undefined":M(t))?t:this.props;if(a.multi){if("string"==typeof e&&(e=e.split(a.delimiter)),!Array.isArray(e)){if(null==e)return[];e=[e]}return e.map((function(e){return n.expandValue(e,a)})).filter((function(e){return e}))}var r=this.expandValue(e,a);return r?[r]:[]}},{key:"expandValue",value:function(e,t){var n=void 0===e?"undefined":M(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var a=t.options,r=t.valueKey;if(a)for(var o=0;oa&&this.focusOption(n[a+1])}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter((function(n){return n[t.props.valueKey]!==e[t.props.valueKey]}))),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:this.handleInputValueChange("")},this.focus))}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map((function(e,t){return{option:e,index:t}})).filter((function(e){return!e.option.disabled}));if(this._scrollToFocusedOptionOnUpdate=!0,this.state.isOpen){if(t.length){for(var n=-1,a=0;a0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){n=(r=n-this.props.pageSize)<0?0:r}else if("page_down"===e){var r;n=(r=n+this.props.pageSize)>t.length-1?t.length-1:r}-1===n&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}}else this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)})}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return a().createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},a().createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:a().createElement("div",{className:"Select-placeholder"},this.props.placeholder);var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map((function(e,t){return a().createElement(o,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||!1===e.clearableValue,key:"value-"+t+"-"+e[n.props.valueKey],onClick:i,onRemove:n.removeValue,value:e},r(e,t),a().createElement("span",{className:"Select-aria-only"}," "))})):this.state.inputValue?void 0:(t&&(i=null),a().createElement(o,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:i,value:e[0]},r(e[0])))}},{key:"renderInput",value:function(e,t){var n,r=this,o=w()("Select-input",this.props.inputProps.className),i=!!this.state.isOpen,s=w()((_(n={},this._instancePrefix+"-list",i),_(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),l=I({},this.props.inputProps,{role:"combobox","aria-expanded":""+i,"aria-owns":s,"aria-haspopup":""+i,"aria-activedescendant":i?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:o,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(l);if(this.props.disabled||!this.props.searchable){var u=this.props.inputProps,c=(u.inputClassName,T(u,["inputClassName"])),p=w()(_({},this._instancePrefix+"-list",i));return a().createElement("div",I({},c,{role:"combobox","aria-expanded":i,"aria-owns":p,"aria-activedescendant":i?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:o,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},"aria-disabled":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?a().createElement(k.A,I({id:this.props.id},l,{minWidth:"5"})):a().createElement("div",{className:o,key:"input-wrap"},a().createElement("input",I({id:this.props.id},l)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.clearRenderer();return a().createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},t)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?a().createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var a="function"==typeof this.props.filterOptions?this.props.filterOptions:j;return a(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey,trimFilter:this.props.trimFilter})}return n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,removeValue:this.removeValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?a().createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map((function(e){return z(e[t.props.valueKey])})).join(this.props.delimiter);return a().createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map((function(e,n){return a().createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:z(e[t.props.valueKey]),disabled:t.props.disabled})}))}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,a=this.state.focusedOption||e;if(a&&!a.disabled){var r=-1;if(t.some((function(e,t){var o=e[n]===a[n];return o&&(r=t),o})),-1!==r)return r}for(var o=0;oe.length)&&(t=e.length);for(var n=0,a=Array(t);n1?a-1:0),o=1;o1?a-1:0),o=1;o1?a-1:0),o=1;o1?a-1:0),o=1;o1?a-1:0),o=1;o2?n-2:0),r=2;r1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=t.defaultBase16,r=void 0===a?we:a,o=t.base16Themes,i=_e(n,void 0===o?null:o);i&&(n=Se(Se({},i),n));for(var s=xe.reduce((function(e,t){return e[t]=n[t]||r[t],e}),{}),l=Object.keys(n).reduce((function(e,t){return-1===xe.indexOf(t)?(e[t]=n[t],e):e}),{}),u=e(s),c=je(l,u),p=arguments.length,d=new Array(p>3?p-3:0),h=3;h=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}(r);try{for(p.s();!(s=p.n()).done;){c=c[s.value]}}catch(e){p.e(e)}finally{p.f()}return i?"array"==ue(c)?c.splice(a,1):delete c[a]:null!==a?c[a]=o:u=o,e.set(t,"global","src",u),u},e.deepCopy=function(t,n){var a,r=ue(t),o=n.shift();return"array"==r?a=ze(t):"object"==r&&(a=u({},t)),void 0!==o&&(a[o]=e.deepCopy(t[o],n)),a},e}return m(t,e),d(t)}(Le.EventEmitter));Ve.register(qe.handleAction.bind(qe));const Ke=qe;var We=function(e){function t(e){var n;return c(this,t),(n=v(this,t,[e])).toggleCollapsed=function(){n.setState({collapsed:!n.state.collapsed},(function(){Ke.set(n.props.rjvId,n.props.namespace,"collapsed",n.state.collapsed)}))},n.getFunctionDisplay=function(e){var t=n.props;return e?a().createElement("span",null,n.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),a().createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},a().createElement("span",null,"{"),a().createElement("span",Pe(t.theme,"ellipsis"),"..."),a().createElement("span",null,"}"))):n.props.value.toString().slice(9,-1)},n.state={collapsed:Ke.get(e.rjvId,e.namespace,"collapsed",!0)},n}return m(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=this.state.collapsed;return a().createElement("div",Pe(e.theme,"function"),a().createElement(Te,Object.assign({type_name:"function"},e)),a().createElement("span",Object.assign({},Pe(e.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}])}(a().PureComponent),Ue=function(e){function t(){return c(this,t),v(this,t,arguments)}return m(t,e),d(t,[{key:"render",value:function(){return a().createElement("div",Pe(this.props.theme,"nan"),"NaN")}}])}(a().PureComponent),He=function(e){function t(){return c(this,t),v(this,t,arguments)}return m(t,e),d(t,[{key:"render",value:function(){return a().createElement("div",Pe(this.props.theme,"null"),"NULL")}}])}(a().PureComponent),Ye=function(e){function t(){return c(this,t),v(this,t,arguments)}return m(t,e),d(t,[{key:"render",value:function(){var e=this.props;return a().createElement("div",Pe(e.theme,"integer"),a().createElement(Te,Object.assign({type_name:"int"},e)),this.props.value)}}])}(a().PureComponent),Je=function(e){function t(){return c(this,t),v(this,t,arguments)}return m(t,e),d(t,[{key:"render",value:function(){var e=this.props;return a().createElement("div",Pe(e.theme,"regexp"),a().createElement(Te,Object.assign({type_name:"regexp"},e)),this.props.value.toString())}}])}(a().PureComponent),$e=function(e){function t(e){var n;return c(this,t),(n=v(this,t,[e])).toggleCollapsed=function(){n.setState({collapsed:!n.state.collapsed},(function(){Ke.set(n.props.rjvId,n.props.namespace,"collapsed",n.state.collapsed)}))},n.state={collapsed:Ke.get(e.rjvId,e.namespace,"collapsed",!0)},n}return m(t,e),d(t,[{key:"render",value:function(){this.state.collapsed;var e=this.props,t=e.collapseStringsAfterLength,n=e.theme,r=e.value,o={style:{cursor:"default"}};return"integer"===ue(t)&&r.length>t&&(o.style.cursor="pointer",this.state.collapsed&&(r=a().createElement("span",null,r.substring(0,t),a().createElement("span",Pe(n,"ellipsis")," ...")))),a().createElement("div",Pe(n,"string"),a().createElement(Te,Object.assign({type_name:"string"},e)),a().createElement("span",Object.assign({className:"string-value"},o,{onClick:this.toggleCollapsed}),'"',r,'"'))}}])}(a().PureComponent),Ge=function(e){function t(){return c(this,t),v(this,t,arguments)}return m(t,e),d(t,[{key:"render",value:function(){return a().createElement("div",Pe(this.props.theme,"undefined"),"undefined")}}])}(a().PureComponent);function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?i:null,namespace:o.splice(0,o.length-1),existing_value:s,variable_removed:!1,key_name:null};"object"===ue(s)?Ve.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:l,data:e}):Ve.dispatch({name:"VARIABLE_ADDED",rjvId:l,data:u(u({},e),{},{new_value:[].concat(ze(s),[null])})})}})))},e.getRemoveObject=function(t){var n=e.props,r=n.theme,o=(n.hover,n.namespace),i=n.name,s=n.src,l=n.rjvId;if(1!==o.length)return a().createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},a().createElement(Dt,Object.assign({className:"click-to-remove-icon"},Pe(r,"removeVarIcon"),{onClick:function(){Ve.dispatch({name:"VARIABLE_REMOVED",rjvId:l,data:{name:i,namespace:o.splice(0,o.length-1),existing_value:s,variable_removed:!0}})}})))},e.render=function(){var t=e.props,n=t.theme,r=t.onDelete,o=t.onAdd,i=t.enableClipboard,s=t.src,l=t.namespace,u=t.rowHovered;return a().createElement("div",Object.assign({},Pe(n,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),i?a().createElement(Rt,{rowHovered:u,clickCallback:i,src:s,theme:n,namespace:l}):null,!1!==o?e.getAddAttribute(u):null,!1!==r?e.getRemoveObject(u):null)},e}return m(t,e),d(t)}(a().PureComponent);function Lt(e){var t=e.parent_type,n=e.namespace,r=e.quotesOnKeys,o=e.theme,i=e.jsvRoot,s=e.name,l=e.displayArrayKey,u=e.name?e.name:"";return!i||!1!==s&&null!==s?"array"==t?l?a().createElement("span",Object.assign({},Pe(o,"array-key"),{key:n}),a().createElement("span",{className:"array-key"},u),a().createElement("span",Pe(o,"colon"),":")):a().createElement("span",null):a().createElement("span",Object.assign({},Pe(o,"object-name"),{key:n}),a().createElement("span",{className:"object-key"},r&&a().createElement("span",{style:{verticalAlign:"top"}},'"'),a().createElement("span",null,u),r&&a().createElement("span",{style:{verticalAlign:"top"}},'"')),a().createElement("span",Pe(o,"colon"),":")):a().createElement("span",null)}function Vt(e){var t=e.theme;switch(e.iconStyle){case"triangle":return a().createElement(Mt,Object.assign({},Pe(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return a().createElement(Ot,Object.assign({},Pe(t,"expanded-icon"),{className:"expanded-icon"}));default:return a().createElement(xt,Object.assign({},Pe(t,"expanded-icon"),{className:"expanded-icon"}))}}function qt(e){var t=e.theme;switch(e.iconStyle){case"triangle":return a().createElement(At,Object.assign({},Pe(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return a().createElement(jt,Object.assign({},Pe(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return a().createElement(Ct,Object.assign({},Pe(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var Kt=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],Wt=function(e){function t(e){var n;return c(this,t),(n=v(this,t,[e])).toggleCollapsed=function(e){var t=[];for(var a in n.state.expanded)t.push(n.state.expanded[a]);t[e]=!t[e],n.setState({expanded:t})},n.state={expanded:[]},n}return m(t,e),d(t,[{key:"getExpandedIcon",value:function(e){var t=this.props,n=t.theme,r=t.iconStyle;return this.state.expanded[e]?a().createElement(Vt,{theme:n,iconStyle:r}):a().createElement(qt,{theme:n,iconStyle:r})}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,r=t.groupArraysAfterLength,o=(t.depth,t.name),i=t.theme,s=t.jsvRoot,l=t.namespace,u=(t.parent_type,le(t,Kt)),c=0,p=5*this.props.indentWidth;s||(c=5*this.props.indentWidth);var d=r,h=Math.ceil(n.length/d);return a().createElement("div",Object.assign({className:"object-key-val"},Pe(i,s?"jsv-root":"objectKeyVal",{paddingLeft:c})),a().createElement(Lt,this.props),a().createElement("span",null,a().createElement(zt,Object.assign({size:n.length},this.props))),ze(Array(h)).map((function(t,r){return a().createElement("div",Object.assign({key:r,className:"object-key-val array-group"},Pe(i,"objectKeyVal",{marginLeft:6,paddingLeft:p})),a().createElement("span",Pe(i,"brace-row"),a().createElement("div",Object.assign({className:"icon-container"},Pe(i,"icon-container"),{onClick:function(t){e.toggleCollapsed(r)}}),e.getExpandedIcon(r)),e.state.expanded[r]?a().createElement(Jt,Object.assign({key:o+r,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:r*d,src:n.slice(r*d,r*d+d),namespace:l,type:"array",parent_type:"array_group",theme:i},u)):a().createElement("span",Object.assign({},Pe(i,"brace"),{onClick:function(t){e.toggleCollapsed(r)},className:"array-group-brace"}),"[",a().createElement("div",Object.assign({},Pe(i,"array-group-meta-data"),{className:"array-group-meta-data"}),a().createElement("span",Object.assign({className:"object-size"},Pe(i,"object-size")),r*d," - ",r*d+d>n.length?n.length:r*d+d)),"]")))})))}}])}(a().PureComponent),Ut=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],Ht=function(e){function t(e){var n;c(this,t),(n=v(this,t,[e])).toggleCollapsed=function(){n.setState({expanded:!n.state.expanded},(function(){Ke.set(n.props.rjvId,n.props.namespace,"expanded",n.state.expanded)}))},n.getObjectContent=function(e,t,r){return a().createElement("div",{className:"pushed-content object-container"},a().createElement("div",Object.assign({className:"object-content"},Pe(n.props.theme,"pushed-content")),n.renderObjectContents(t,r)))},n.getEllipsis=function(){return 0===n.state.size?null:a().createElement("div",Object.assign({},Pe(n.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:n.toggleCollapsed}),"...")},n.getObjectMetaData=function(e){var t=n.props,r=(t.rjvId,t.theme,n.state),o=r.size,i=r.hovered;return a().createElement(zt,Object.assign({rowHovered:i,size:o},n.props))},n.renderObjectContents=function(e,t){var r,o=n.props,i=o.depth,s=o.parent_type,l=o.index_offset,u=o.groupArraysAfterLength,c=o.namespace,p=n.state.object_type,d=[],h=Object.keys(e||{});return n.props.sortKeys&&"array"!==p&&(h=h.sort()),h.forEach((function(o){if(r=new Yt(o,e[o]),"array_group"===s&&l&&(r.name=parseInt(r.name)+l),e.hasOwnProperty(o))if("object"===r.type)d.push(a().createElement(Jt,Object.assign({key:r.name,depth:i+1,name:r.name,src:r.value,namespace:c.concat(r.name),parent_type:p},t)));else if("array"===r.type){var h=Jt;u&&r.value.length>u&&(h=Wt),d.push(a().createElement(h,Object.assign({key:r.name,depth:i+1,name:r.name,src:r.value,namespace:c.concat(r.name),type:"array",parent_type:p},t)))}else d.push(a().createElement(Bt,Object.assign({key:r.name+"_"+c,variable:r,singleIndent:5,namespace:c,type:n.props.type},t)));else;})),d};var r=t.getState(e);return n.state=u(u({},r),{},{prevProps:{}}),n}return m(t,e),d(t,[{key:"getBraceStart",value:function(e,t){var n=this,r=this.props,o=r.src,i=r.theme,s=r.iconStyle;if("array_group"===r.parent_type)return a().createElement("span",null,a().createElement("span",Pe(i,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(o):null);var l=t?Vt:qt;return a().createElement("span",null,a().createElement("span",Object.assign({onClick:function(e){n.toggleCollapsed()}},Pe(i,"brace-row")),a().createElement("div",Object.assign({className:"icon-container"},Pe(i,"icon-container")),a().createElement(l,{theme:i,iconStyle:s})),a().createElement(Lt,this.props),a().createElement("span",Pe(i,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(o):null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.depth,r=t.src,o=(t.namespace,t.name,t.type,t.parent_type),i=t.theme,s=t.jsvRoot,l=t.iconStyle,c=le(t,Ut),p=this.state,d=p.object_type,h=p.expanded,b={};return s||"array_group"===o?"array_group"===o&&(b.borderLeft=0,b.display="inline"):b.paddingLeft=5*this.props.indentWidth,a().createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(u(u({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(u(u({},e.state),{},{hovered:!1}))}},Pe(i,s?"jsv-root":"objectKeyVal",b)),this.getBraceStart(d,h),h?this.getObjectContent(n,r,u({theme:i,iconStyle:l},c)):this.getEllipsis(),a().createElement("span",{className:"brace-row"},a().createElement("span",{style:u(u({},Pe(i,"brace").style),{},{paddingLeft:h?"3px":"0px"})},"array"===d?"]":"}"),h?null:this.getObjectMetaData(r)))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var a=n.prevProps;return e.src!==a.src||e.collapsed!==a.collapsed||e.name!==a.name||e.namespace!==a.namespace||e.rjvId!==a.rjvId?u(u({},t.getState(e)),{},{prevProps:e}):null}}])}(a().PureComponent);Ht.getState=function(e){var t=Object.keys(e.src).length,n=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:ue(e.src),namespace:e.namespace}))&&0!==t;return{expanded:Ke.get(e.rjvId,e.namespace,"expanded",n),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var Yt=d((function e(t,n){c(this,e),this.name=t,this.value=n,this.type=ue(n)}));ie(Ht);const Jt=Ht;var $t=function(e){function t(){var e;c(this,t);for(var n=arguments.length,r=new Array(n),o=0;oi.groupArraysAfterLength&&(l=Wt),a().createElement("div",{className:"pretty-json-container object-container"},a().createElement("div",{className:"object-content"},a().createElement(l,Object.assign({namespace:s,depth:0,jsvRoot:!0},i))))},e}return m(t,e),d(t)}(a().PureComponent),Gt=function(e){function t(e){var n;return c(this,t),(n=v(this,t,[e])).closeModal=function(){Ve.dispatch({rjvId:n.props.rjvId,name:"RESET"})},n.submit=function(){n.props.submit(n.state.input)},n.state={input:e.input?e.input:""},n}return m(t,e),d(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.theme,r=t.rjvId,o=t.isValid,i=this.state.input,s=o(i);return a().createElement("div",Object.assign({className:"key-modal-request"},Pe(n,"key-modal-request"),{onClick:this.closeModal}),a().createElement("div",Object.assign({},Pe(n,"key-modal"),{onClick:function(e){e.stopPropagation()}}),a().createElement("div",Pe(n,"key-modal-label"),"Key Name:"),a().createElement("div",{style:{position:"relative"}},a().createElement("input",Object.assign({},Pe(n,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:i,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){s&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),s?a().createElement(Tt,Object.assign({},Pe(n,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),a().createElement("span",Pe(n,"key-modal-cancel"),a().createElement(It,Object.assign({},Pe(n,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Ve.dispatch({rjvId:r,name:"RESET"})}})))))}}])}(a().PureComponent),Qt=function(e){function t(){var e;c(this,t);for(var n=arguments.length,a=new Array(n),r=0;r.Select-control,\n .Select-option,\n .Select-option.is-selected,\n .Select-option.is-focused {\n background-color: ").concat(this.state.siteTheme.bgColor,";\n color: ").concat(this.state.siteTheme.color,";\n }\n .Select-option.is-focused {\n opacity: 0.8;\n }\n .Select.has-value.Select--single>.Select-control .Select-value .Select-value-label, .Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label {\n color: ").concat(this.state.siteTheme.color,";\n }\n ")),a().createElement("div",{className:"rjv-demo"},a().createElement("div",{className:"rjv-header"},a().createElement("div",{className:"header-1"},"@microlink/react-json-view"),a().createElement("img",{className:"rjv-logo",src:"https://raw.githubusercontent.com/microlinkhq/react-json-view/master/doc/rjv-icon-alt.png",onClick:function(){window.open("https://github.com/microlinkhq/react-json-view","_blank")}}),a().createElement(nn(),{type:"stargazers",namespace:"microlinkhq",repo:"react-json-view"})),a().createElement(en,{name:!1,collapsed:d,style:{padding:"10px",borderRadius:"3px",margin:"10px 0px"},theme:c,src:n,collapseStringsAfterLength:r,onEdit:!!i&&function(t){console.log(t),e.setState({src:t.updated_src})},onDelete:!!s&&function(t){console.log(t),e.setState({src:t.updated_src})},onAdd:!!o&&function(t){console.log(t),e.setState({src:t.updated_src})},displayObjectSize:l,enableClipboard:u,indentWidth:h,displayDataTypes:b,iconStyle:p}),a().createElement("div",{className:"rjv-settings"},a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Theme:"),this.getThemeInput(c)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Icon Style:"),this.getIconStyleInput(p)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Enable Edit:"),this.getEditInput(i)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Enable Add:"),this.getAddInput(o)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Enable Delete:"),this.getDeleteInput(s)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Enable Clipboard:"),this.getEnableClipboardInput(u))),a().createElement("div",{className:"rjv-settings"},a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Display Data Types:"),this.getDataTypesInput(b)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Display Object Size:"),this.getObjectSizeInput(l)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Indent Width:"),this.getIndentWidthInput(h)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Collapsed:"),this.getCollapsedInput(d)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Collapse Strings After Length:"),this.getCollapsedStringsInput(r))),this.getNotes(i,o)))}}])}(a().PureComponent));rn.defaultProps={theme:"rjv-default",src:null,collapsed:!1,collapseStringsAfter:15,onAdd:!0,onEdit:!0,onDelete:!0,displayObjectSize:!0,enableClipboard:!0,indentWidth:4,displayDataTypes:!0,iconStyle:"triangle"};const on=rn;function sn(){return a().createElement("div",{className:"mac-react"},a().createElement(on,null))}r(8077);var ln=document.getElementById("mac-react-container");t().render(React.createElement("div",{className:"app-entry"},React.createElement(sn,null)),ln)})(),{}})())); \ No newline at end of file diff --git a/doc/edit-complete-1.png b/doc/edit-complete-1.png deleted file mode 100644 index 319375d..0000000 Binary files a/doc/edit-complete-1.png and /dev/null differ diff --git a/doc/edit-init-1.png b/doc/edit-init-1.png deleted file mode 100644 index 2137138..0000000 Binary files a/doc/edit-init-1.png and /dev/null differ diff --git a/doc/edit-input-1.png b/doc/edit-input-1.png deleted file mode 100644 index ffc7169..0000000 Binary files a/doc/edit-input-1.png and /dev/null differ diff --git a/doc/example-usage.js b/doc/example-usage.js deleted file mode 100644 index 1c975db..0000000 --- a/doc/example-usage.js +++ /dev/null @@ -1,61 +0,0 @@ - -import ReactJson from 'react-json-view'; - -//you have some json to display -let my_important_json = { - test: 'this is a test string', - another_sibling: 45, - basic_array: [1, 2, 3], - how_will_floats_do: -2.757, - parent: { - sibling1: true, - sibling2: false, - sibling3: null, - sibling4: 'test', - 'last-sibling': { - grand_child: NaN, - 'grand-child-func': (a) => { - let b = 5; - return a.push(b); - } - } - }, - number: 1234 -} - -//so put it on the page! - - - -//---------------------------------------------------------------- - - -// ES6 with React -import ReactJson from 'react-json-view'; - -... - -... - - -//---------------------------------------------------------------- - - - - -... - - - - -... - \ No newline at end of file diff --git a/doc/output-example-12.png b/doc/output-example-12.png deleted file mode 100644 index bdfb04b..0000000 Binary files a/doc/output-example-12.png and /dev/null differ diff --git a/doc/output-example-14.png b/doc/output-example-14.png deleted file mode 100644 index 9ee0170..0000000 Binary files a/doc/output-example-14.png and /dev/null differ diff --git a/doc/output-example-15.png b/doc/output-example-15.png deleted file mode 100644 index 10f8c37..0000000 Binary files a/doc/output-example-15.png and /dev/null differ diff --git a/doc/output-example-monokai-2.png b/doc/output-example-monokai-2.png deleted file mode 100644 index a71ab74..0000000 Binary files a/doc/output-example-monokai-2.png and /dev/null differ diff --git a/doc/output-example-solarized-2.png b/doc/output-example-solarized-2.png deleted file mode 100644 index 51991c4..0000000 Binary files a/doc/output-example-solarized-2.png and /dev/null differ diff --git a/doc/source-example-8.png b/doc/source-example-8.png deleted file mode 100644 index 602336f..0000000 Binary files a/doc/source-example-8.png and /dev/null differ diff --git a/doc/source-example-9.png b/doc/source-example-9.png deleted file mode 100644 index 072b338..0000000 Binary files a/doc/source-example-9.png and /dev/null differ diff --git a/docs/assets/banner.png b/docs/assets/banner.png new file mode 100644 index 0000000..48eaf23 Binary files /dev/null and b/docs/assets/banner.png differ diff --git a/demo/src/style/images/favicon.ico b/docs/assets/favicon.ico similarity index 100% rename from demo/src/style/images/favicon.ico rename to docs/assets/favicon.ico diff --git a/doc/rjv-icon-alt.png b/docs/assets/rjv-icon-alt.png similarity index 100% rename from doc/rjv-icon-alt.png rename to docs/assets/rjv-icon-alt.png diff --git a/doc/rjv-icon-alt.svg b/docs/assets/rjv-icon-alt.svg similarity index 100% rename from doc/rjv-icon-alt.svg rename to docs/assets/rjv-icon-alt.svg diff --git a/doc/rjv-icon.png b/docs/assets/rjv-icon.png similarity index 100% rename from doc/rjv-icon.png rename to docs/assets/rjv-icon.png diff --git a/doc/rjv-icon.svg b/docs/assets/rjv-icon.svg similarity index 100% rename from doc/rjv-icon.svg rename to docs/assets/rjv-icon.svg diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..9c1e589 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,38 @@ + + + + react-json-view + + + + + + + + + + + +
+ + + diff --git a/demo/src/js/components/Demo.js b/docs/src/js/components/Demo.js similarity index 96% rename from demo/src/js/components/Demo.js rename to docs/src/js/components/Demo.js index eefe98f..7ba5dac 100644 --- a/demo/src/js/components/Demo.js +++ b/docs/src/js/components/Demo.js @@ -1,12 +1,10 @@ import React from 'react' import ReactSelect from 'react-select' import ReactJson from './../../../../src/js/index' -import GitHubButton from 'react-github-button' import Code from './../helpers/Code' import './../../style/scss/rjv-demo.scss' import 'react-select/dist/react-select.css' -import 'react-github-button/assets/style.css' // index entrypoint component class Demo extends React.PureComponent { @@ -180,21 +178,6 @@ class Demo extends React.PureComponent {
@microlink/react-json-view
- { - window.open( - 'https://github.com/microlinkhq/react-json-view', - '_blank' - ) - }} - /> -