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AAML,CAChB,CACF,CACA,OAAOG,CACT,CACF,CFrBgC,CAAqB3C,EAAKE,IGJ3C,SAAqCnB,EAAGmE,GACrD,GAAKnE,EAAL,CACA,GAAiB,iBAANA,EAAgB,OAAO,EAAiBA,EAAGmE,GACtD,IAAIC,EAAInE,OAAOM,UAAU8D,SAAS5D,KAAKT,GAAGjB,MAAM,GAAI,GAEpD,MADU,WAANqF,GAAkBpE,EAAEwB,cAAa4C,EAAIpE,EAAEwB,YAAY8C,MAC7C,QAANF,GAAqB,QAANA,EAAoB/C,MAAMkD,KAAKvE,GACxC,cAANoE,GAAqB,2CAA2CI,KAAKJ,GAAW,EAAiBpE,EAAGmE,QAAxG,CALc,CAMhB,CHHgE,CAA2BlD,EAAKE,IILjF,WACb,MAAM,IAAIa,UAAU,4IACtB,CJGsG,IDIzEjC,EAAGsD,EAAA,GAAEoB,EAAUpB,EAAA,UAAAJ,EAAAA,EAAA,GACnCE,GAAqB,GAAA1B,EAAA,GACvB1B,EAA4B,kBAAf0E,EAA2BA,KAAgBA,GAAc,CAAC,GAAG1B,GAAO,KAAG,GAEvF,CAAC,EACF,C","sources":["webpack://mfe-feature-toggles/./node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://mfe-feature-toggles/./node_modules/systemjs-webpack-interop/public-path.js","webpack://mfe-feature-toggles/webpack/bootstrap","webpack://mfe-feature-toggles/webpack/runtime/__system_context__","webpack://mfe-feature-toggles/webpack/runtime/define property getters","webpack://mfe-feature-toggles/webpack/runtime/hasOwnProperty shorthand","webpack://mfe-feature-toggles/webpack/runtime/make namespace object","webpack://mfe-feature-toggles/webpack/runtime/publicPath","webpack://mfe-feature-toggles/./node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://mfe-feature-toggles/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://mfe-feature-toggles/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://mfe-feature-toggles/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://mfe-feature-toggles/./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack://mfe-feature-toggles/./node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack://mfe-feature-toggles/./src/mfesFTs/admissionsAdminFTs.js","webpack://mfe-feature-toggles/./src/mfesFTs/admissionsFTs.js","webpack://mfe-feature-toggles/./src/mfesFTs/recruitmentAdminFTs.js","webpack://mfe-feature-toggles/./src/mfesFTs/recruitmentFTs.js","webpack://mfe-feature-toggles/./src/izi-mfe-feature-toggles.js","webpack://mfe-feature-toggles/./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://mfe-feature-toggles/./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://mfe-feature-toggles/./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://mfe-feature-toggles/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://mfe-feature-toggles/./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js"],"sourcesContent":["const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.y = __system_context__;","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","export const admissionsAdminFTs = {\r\n admissionAdminDocumentWaitingDeliveryCard: { dev: true, sit: true, uat: false, prod: false },\r\n}","export const admissionsFTs = {};\r\n","export const recruitmentAdminFTs = {\r\n recruitmentAdminApprovalFlow: { dev: true, sit: false, uat: false, prod: false },\r\n};\r\n","export const recruitmentFTs = {\r\n}","import { admissionsAdminFTs, admissionsFTs, recruitmentAdminFTs, recruitmentFTs } from \"./mfesFTs\";\r\n\r\nexport const featureToggles = env =>\r\n Object.entries({\r\n ...admissionsAdminFTs,\r\n ...admissionsFTs,\r\n ...recruitmentAdminFTs,\r\n ...recruitmentFTs,\r\n }).reduce(\r\n (treatedFeatureToggles, [key, valueByEnv]) => ({\r\n ...treatedFeatureToggles,\r\n [key]: typeof valueByEnv === \"boolean\" ? valueByEnv : !!(valueByEnv || {})[env || \"\"],\r\n }),\r\n {},\r\n );\r\n","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}"],"names":["resolveDirectory","exports","rootDirLevel","meta","url","console","error","Error","urlString","rootDirectoryLevel","a","document","createElement","href","pathname","numDirsProcessed","index","length","finalPath","slice","protocol","host","Number","isInteger","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","module","__webpack_modules__","y","__system_context__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","p","autoPublicPath","_arrayLikeToArray","arr","len","i","arr2","Array","_typeof","iterator","constructor","_defineProperty","arg","input","hint","prim","toPrimitive","res","TypeError","String","configurable","writable","admissionsAdminFTs","admissionAdminDocumentWaitingDeliveryCard","dev","sit","uat","prod","admissionsFTs","recruitmentAdminFTs","recruitmentAdminApprovalFlow","recruitmentFTs","featureToggles","env","entries","_objectSpread","reduce","treatedFeatureToggles","_ref","_ref2","isArray","_i","_s","_e","_x","_r","_arr","_n","_d","next","done","push","err","minLen","n","toString","name","from","test","valueByEnv"],"sourceRoot":""}