"use strict";function a(b){"@babel/helpers - typeof";return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},a(b)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var b=j(require("react")),c=require("react-i18next"),d=j(require("./contexts/config/index.js")),e=h(require("./App.js")),f=require("./utils/i18n.js"),g=require("react-router-dom");require("./css/main.scss");function h(a){return a&&a.__esModule?a:{default:a}}function i(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(i=function(a){return a?c:b})(a)}function j(b,c){if(!c&&b&&b.__esModule)return b;if(null===b||"object"!==a(b)&&"function"!=typeof b)return{default:b};var d=i(c);if(d&&d.has(b))return d.get(b);var e={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in b)if("default"!=g&&Object.prototype.hasOwnProperty.call(b,g)){var h=f?Object.getOwnPropertyDescriptor(b,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=b[g]}return e["default"]=b,d&&d.set(b,e),e}var k=function(a){var e=a.children,g=(0,b.useContext)(d.ConfigContext),h=(0,b.useMemo)(function(){return(0,f.init)({explorerDir:g.options.explorerDir,locale:g.options.locale})},[g.options.explorerDir,g.options.locale]);return b["default"].createElement(c.I18nextProvider,{i18n:h},e)},l=function(a){var c=a.children,e=(0,b.useContext)(d.ConfigContext),f=g.MemoryRouter,h=e.options.routerType?e.options.routerType:e.constants.MEMORY_ROUTER;if(h===e.constants.HASH_ROUTER)f=g.HashRouter;else if(h!==e.constants.MEMORY_ROUTER)throw new Error("Unsupported router type: '".concat(e.options.routerType,"'. Available options: ").concat(e.constants.MEMORY_ROUTER,", ").concat(e.constants.HASH_ROUTER));return b["default"].createElement(f,null,c)},m=function(a){var c=a.options,f=a.apis,g=a.encodedApis,h=a.apps,i=a.docs;return b["default"].createElement(d["default"],{options:c,apis:f,encodedApis:g,apps:h,docs:i},b["default"].createElement(k,null,b["default"].createElement(l,null,b["default"].createElement(e["default"],null))))},n=m;exports["default"]=n;