@teqfw/di 0.22.0 → 0.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +159 -197
  2. package/RELEASE.md +9 -0
  3. package/bin/release/clean.sh +1 -0
  4. package/dist/esm.js +1 -0
  5. package/dist/umd.js +1 -0
  6. package/package.json +7 -10
  7. package/rollup.config.js +21 -0
  8. package/src/Api/Container/Resolver.js +16 -0
  9. package/src/Api/Container.js +2 -2
  10. package/src/Container/A/Composer.js +1 -2
  11. package/src/Container/A/Parser/Chunk/Def.js +25 -30
  12. package/src/Container/A/Parser/Chunk/V02X.js +70 -0
  13. package/src/Container/Resolver.js +4 -2
  14. package/src/Container.js +6 -6
  15. package/src/Defs.js +6 -11
  16. package/dist/di.cjs.js +0 -205
  17. package/dist/di.esm.js +0 -206
  18. package/docs/README.md +0 -6
  19. package/docs/app.vue +0 -5
  20. package/docs/assets/css/layout.css +0 -51
  21. package/docs/assets/css/vars.css +0 -6
  22. package/docs/components/AppFooter.vue +0 -47
  23. package/docs/components/AppHeader.vue +0 -79
  24. package/docs/content/index.md +0 -272
  25. package/docs/content/test.md +0 -20
  26. package/docs/layouts/default.vue +0 -83
  27. package/docs/nuxt.config.mjs +0 -11
  28. package/docs/package-lock.json +0 -14873
  29. package/docs/package.json +0 -25
  30. package/docs/pages/[...slug].vue +0 -6
  31. package/docs/pages/index.vue +0 -6
  32. package/docs/public/.nojekyll +0 -0
  33. package/docs/public/CNAME +0 -1
  34. package/docs/public/favicon.ico +0 -0
  35. package/docs/public/img/github.svg +0 -1
  36. package/docs/public/img/npm.png +0 -0
  37. package/docs/public/img/teqfw_di_container_steps.png +0 -0
  38. package/docs/server/tsconfig.json +0 -3
  39. package/docs/tsconfig.json +0 -4
  40. package/index.cjs +0 -5
  41. package/index.mjs +0 -6
  42. package/webpack.config.mjs +0 -15
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Default parser for object keys in format:
3
- * - Vnd_Pkg_Prj_Mod$FA
3
+ * - Ns_Module.export$$(post)
4
4
  *
5
5
  * @namespace TeqFw_Di_Container_A_Parser_Chunk_Def
6
6
  */
@@ -8,8 +8,8 @@ import Dto from '../../../../DepId.js';
8
8
  import Defs from '../../../../Defs.js';
9
9
 
10
10
  // VARS
11
- /** @type {RegExp} expression for default object key (Ns_Module[.|#]export$[F|A][S|I]) */
12
- const REGEXP = /^((([A-Z])[A-Za-z0-9_]*)((#|\.)?([A-Za-z0-9_]*)((\$)([F|A])?([S|I])?)?)?)$/;
11
+ /** @type {RegExp} expression for default object key (Ns_Module.export$$(post)) */
12
+ const REGEXP = /^((([A-Z])[A-Za-z0-9_]*)((\.)?([A-Za-z0-9_]*)((\$)?(\$)?)?)?(\(([A-Za-z0-9_,]*)\))?)$/;
13
13
 
14
14
  /**
15
15
  * @implements TeqFw_Di_Api_Container_Parser_Chunk
@@ -28,42 +28,37 @@ export default class TeqFw_Di_Container_A_Parser_Chunk_Def {
28
28
  if (parts) {
29
29
  res.moduleName = parts[2];
30
30
  if (parts[5] === '.') {
31
- // App_Service.export...
32
- if (parts[8] === '$') {
33
- // App_Service.export$...
34
- res.composition = Defs.COMPOSE_FACTORY;
31
+ // Ns_Module.export...
32
+ if ((parts[7] === '$') || (parts[7] === '$$')) {
33
+ // Ns_Module.export$...
34
+ res.composition = Defs.COMP_F;
35
35
  res.exportName = parts[6];
36
- res.life = (parts[10] === Defs.LIFE_INSTANCE)
37
- ? Defs.LIFE_INSTANCE : Defs.LIFE_SINGLETON;
36
+ res.life = (parts[7] === '$') ? Defs.LIFE_S : Defs.LIFE_I;
38
37
  } else {
39
- res.composition = ((parts[8] === undefined) || (parts[8] === Defs.COMPOSE_AS_IS))
40
- ? Defs.COMPOSE_AS_IS : Defs.COMPOSE_FACTORY;
41
- res.exportName = parts[6];
42
- res.life = ((parts[8] === undefined) || (parts[10] === Defs.LIFE_SINGLETON))
43
- ? Defs.LIFE_SINGLETON : Defs.LIFE_INSTANCE;
38
+ res.composition = Defs.COMP_A;
39
+ res.life = Defs.LIFE_S;
40
+ // res.exportName = (parts[6]) ? parts[6] : 'default';
41
+ res.exportName = (parts[6] !== '') ? parts[6] : 'default';
44
42
  }
45
-
46
-
47
- } else if (parts[8] === '$') {
48
- // App_Logger$FS
49
- res.composition = ((parts[9] === undefined) || (parts[9] === Defs.COMPOSE_FACTORY))
50
- ? Defs.COMPOSE_FACTORY : Defs.COMPOSE_AS_IS;
43
+ } else if ((parts[7] === '$') || parts[7] === '$$') {
44
+ // Ns_Module$$
45
+ res.composition = Defs.COMP_F;
51
46
  res.exportName = 'default';
52
- if (parts[10]) {
53
- res.life = (parts[10] === Defs.LIFE_SINGLETON) ? Defs.LIFE_SINGLETON : Defs.LIFE_INSTANCE;
54
- } else {
55
- res.life = (res.composition === Defs.COMPOSE_FACTORY) ? Defs.LIFE_SINGLETON : Defs.LIFE_INSTANCE;
56
- }
47
+ res.life = (parts[7] === '$') ? Defs.LIFE_S : Defs.LIFE_I;
57
48
  } else {
58
- // App_Service
59
- res.composition = Defs.COMPOSE_AS_IS;
60
- res.exportName = 'default';
61
- res.life = Defs.LIFE_SINGLETON;
49
+ // Ns_Module (es6 module)
50
+ res.composition = undefined;
51
+ res.exportName = undefined;
52
+ res.life = undefined;
53
+ }
54
+ // wrappers
55
+ if (parts[11]) {
56
+ res.wrappers = parts[11].split(',');
62
57
  }
63
58
  }
64
59
 
65
60
  // we should always use singletons for as-is exports
66
- if ((res.composition === Defs.COMPOSE_AS_IS) && (res.life === Defs.LIFE_INSTANCE))
61
+ if ((res.composition === Defs.COMP_A) && (res.life === Defs.LIFE_I))
67
62
  throw new Error(`Export is not a function and should be used as a singleton only: '${res.value}'.`);
68
63
  return res;
69
64
  }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Default parser for object keys in format:
3
+ * - Ns_Module[.|#]export$[F|A][S|I]
4
+ *
5
+ * @namespace TeqFw_Di_Container_A_Parser_Chunk_V02X
6
+ */
7
+ import Dto from '../../../../DepId.js';
8
+ import Defs from '../../../../Defs.js';
9
+
10
+ // VARS
11
+ /** @type {RegExp} expression for default object key (Ns_Module[.|#]export$[F|A][S|I]) */
12
+ const REGEXP = /^((([A-Z])[A-Za-z0-9_]*)((#|\.)?([A-Za-z0-9_]*)((\$)([F|A])?([S|I])?)?)?)$/;
13
+
14
+ /**
15
+ * @implements TeqFw_Di_Api_Container_Parser_Chunk
16
+ */
17
+ export default class TeqFw_Di_Container_A_Parser_Chunk_V02X {
18
+
19
+ canParse(depId) {
20
+ // default parser always trys to parse the depId
21
+ return true;
22
+ }
23
+
24
+ parse(objectKey) {
25
+ const res = new Dto();
26
+ res.value = objectKey;
27
+ const parts = REGEXP.exec(objectKey);
28
+ if (parts) {
29
+ res.moduleName = parts[2];
30
+ if (parts[5] === '.') {
31
+ // App_Service.export...
32
+ if (parts[8] === '$') {
33
+ // App_Service.export$...
34
+ res.composition = Defs.COMP_F;
35
+ res.exportName = parts[6];
36
+ res.life = (parts[10] === Defs.LIFE_I)
37
+ ? Defs.LIFE_I : Defs.LIFE_S;
38
+ } else {
39
+ res.composition = ((parts[8] === undefined) || (parts[8] === Defs.COMP_A))
40
+ ? Defs.COMP_A : Defs.COMP_F;
41
+ res.exportName = parts[6];
42
+ res.life = ((parts[8] === undefined) || (parts[10] === Defs.LIFE_S))
43
+ ? Defs.LIFE_S : Defs.LIFE_I;
44
+ }
45
+
46
+
47
+ } else if (parts[8] === '$') {
48
+ // App_Logger$FS
49
+ res.composition = ((parts[9] === undefined) || (parts[9] === Defs.COMP_F))
50
+ ? Defs.COMP_F : Defs.COMP_A;
51
+ res.exportName = 'default';
52
+ if (parts[10]) {
53
+ res.life = (parts[10] === Defs.LIFE_S) ? Defs.LIFE_S : Defs.LIFE_I;
54
+ } else {
55
+ res.life = (res.composition === Defs.COMP_F) ? Defs.LIFE_S : Defs.LIFE_I;
56
+ }
57
+ } else {
58
+ // App_Service (es6 module)
59
+ res.composition = undefined;
60
+ res.exportName = undefined;
61
+ res.life = undefined;
62
+ }
63
+ }
64
+
65
+ // we should always use singletons for as-is exports
66
+ if ((res.composition === Defs.COMP_A) && (res.life === Defs.LIFE_I))
67
+ throw new Error(`Export is not a function and should be used as a singleton only: '${res.value}'.`);
68
+ return res;
69
+ }
70
+ }
@@ -7,7 +7,6 @@
7
7
  * - every package has sources with the same extensions (*.js, *.mjs, *.es6, ...)
8
8
  * - namespaces can be nested (App_Web_ => ./@app/web/..., App_Web_Api_ => ./@app/web_api/...)
9
9
  */
10
- import Defs from '../Defs.js';
11
10
 
12
11
  // VARS
13
12
  const KEY_EXT = 'ext';
@@ -21,6 +20,9 @@ const KEY_PATH = 'root';
21
20
  const NSS = '_';
22
21
 
23
22
  // MAIN
23
+ /**
24
+ * @implements TeqFw_Di_Api_Container_Resolver
25
+ */
24
26
  export default class TeqFw_Di_Container_Resolver {
25
27
 
26
28
  constructor() {
@@ -37,7 +39,7 @@ export default class TeqFw_Di_Container_Resolver {
37
39
  const norm = lead.replace(/\\/g, '/'); // replace all windows path separators
38
40
  const root = (_isWindows) ? `file://${norm}` : norm;
39
41
  _regNs[ns] = {
40
- [KEY_EXT]: ext ?? Defs.EXT,
42
+ [KEY_EXT]: ext ?? 'js',
41
43
  [KEY_NS]: ns,
42
44
  [KEY_PATH]: root,
43
45
  };
package/src/Container.js CHANGED
@@ -69,18 +69,18 @@ export default class TeqFw_Di_Container {
69
69
  log(`Object '${depId}' is requested.`);
70
70
  // return container itself if requested
71
71
  if (
72
- (depId === Defs.KEY_CONTAINER) ||
73
- (depId === Defs.KEY_CONTAINER_NS)
72
+ (depId === Defs.ID) ||
73
+ (depId === Defs.ID_FQN)
74
74
  ) {
75
75
  log(`Container itself is returned.`);
76
- return _regSingles[Defs.KEY_CONTAINER];
76
+ return _regSingles[Defs.ID];
77
77
  }
78
78
  // parse the `objectKey` and get the structured DTO
79
79
  const parsed = _parser.parse(depId);
80
80
  // modify original key according to some rules (replacements, etc.)
81
81
  const key = _preProcessor.modify(parsed, stack);
82
82
  // return existing singleton
83
- if (key.life === Defs.LIFE_SINGLETON) {
83
+ if (key.life === Defs.LIFE_S) {
84
84
  const singleId = getSingletonId(key);
85
85
  if (_regSingles[singleId]) {
86
86
  log(`Existing singleton '${singleId}' is returned.`);
@@ -115,7 +115,7 @@ export default class TeqFw_Di_Container {
115
115
  log(`Object '${depId}' is created.`);
116
116
 
117
117
  // save singletons
118
- if (key.life === Defs.LIFE_SINGLETON) {
118
+ if (key.life === Defs.LIFE_S) {
119
119
  const singleId = getSingletonId(key);
120
120
  _regSingles[singleId] = res;
121
121
  log(`Object '${depId}' is saved as singleton.`);
@@ -144,6 +144,6 @@ export default class TeqFw_Di_Container {
144
144
  this.setResolver = (data) => _resolver = data;
145
145
 
146
146
  // MAIN
147
- _regSingles[Defs.KEY_CONTAINER] = this;
147
+ _regSingles[Defs.ID] = this;
148
148
  }
149
149
  };
package/src/Defs.js CHANGED
@@ -3,17 +3,12 @@
3
3
  * @namespace TeqFw_Di_Defs
4
4
  */
5
5
  export default {
6
- COMPOSE_AS_IS: 'A',
7
- COMPOSE_FACTORY: 'F',
8
- EXT: 'js',
9
- KEY_CONTAINER: 'container',
10
- KEY_CONTAINER_NS: 'TeqFw_Di_Container$',
11
- LIFE_INSTANCE: 'I',
12
- LIFE_SINGLETON: 'S',
13
- /**
14
- * @deprecated use TeqFw_Core_Shared_Defaults.DI_WRAP_PROXY
15
- */
16
- WRAP_PROXY: 'proxy',
6
+ COMP_A: 'A', // composition: as-is
7
+ COMP_F: 'F', // composition: factory
8
+ ID: 'container', // default ID for container itself
9
+ ID_FQN: 'TeqFw_Di_Container$', // default Full Qualified Name for container itself
10
+ LIFE_I: 'I', // lifestyle: instance
11
+ LIFE_S: 'S', // lifestyle: singleton
17
12
 
18
13
  /**
19
14
  * Return 'true' if function is a class definition.
package/dist/di.cjs.js DELETED
@@ -1,205 +0,0 @@
1
- /*
2
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
3
- * This devtool is neither made for production nor for readable output files.
4
- * It uses "eval()" calls to create a separate source file in the browser devtools.
5
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
- * or disable the default devtool with "devtool: false".
7
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
- */
9
- /******/ (() => { // webpackBootstrap
10
- /******/ var __webpack_modules__ = ({
11
-
12
- /***/ "./src lazy recursive":
13
- /*!*******************************************!*\
14
- !*** ./src/ lazy strict namespace object ***!
15
- \*******************************************/
16
- /***/ ((module) => {
17
-
18
- eval("function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(() => {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = () => ([]);\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = \"./src lazy recursive\";\nmodule.exports = webpackEmptyAsyncContext;\n\n//# sourceURL=webpack://@teqfw/di/./src/_lazy_strict_namespace_object?");
19
-
20
- /***/ }),
21
-
22
- /***/ "./index.cjs":
23
- /*!*******************!*\
24
- !*** ./index.cjs ***!
25
- \*******************/
26
- /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
27
-
28
- eval("/**\n * Entry point to build web bundle (Common JS).\n */\nconst {default: Container} = __webpack_require__(/*! ./src/Container.js */ \"./src/Container.js\");\nwindow.TeqFwDi = Container;\n\n\n//# sourceURL=webpack://@teqfw/di/./index.cjs?");
29
-
30
- /***/ }),
31
-
32
- /***/ "./src/Container.js":
33
- /*!**************************!*\
34
- !*** ./src/Container.js ***!
35
- \**************************/
36
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
37
-
38
- "use strict";
39
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TeqFw_Di_Container)\n/* harmony export */ });\n/* harmony import */ var _Container_A_Composer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Container/A/Composer.js */ \"./src/Container/A/Composer.js\");\n/* harmony import */ var _Defs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Defs.js */ \"./src/Defs.js\");\n/* harmony import */ var _Container_Parser_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Container/Parser.js */ \"./src/Container/Parser.js\");\n/* harmony import */ var _Container_PreProcessor_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Container/PreProcessor.js */ \"./src/Container/PreProcessor.js\");\n/* harmony import */ var _Container_PostProcessor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Container/PostProcessor.js */ \"./src/Container/PostProcessor.js\");\n/* harmony import */ var _Container_Resolver_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Container/Resolver.js */ \"./src/Container/Resolver.js\");\n/**\n * The Object Container (composition root).\n * @namespace TeqFw_Di_Container\n */\n\n\n\n\n\n\n\n// FUNCS\n/**\n * ID to store singletons in the internal registry.\n * @param {TeqFw_Di_DepId} key\n * @return {string}\n */\nfunction getSingletonId(key) {\n return `${key.moduleName}#${key.exportName}`;\n}\n\n// MAIN\n/**\n * @implements TeqFw_Di_Api_Container\n */\nclass TeqFw_Di_Container {\n\n constructor() {\n // VARS\n let _composer = new _Container_A_Composer_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n let _debug = false;\n let _parser = new _Container_Parser_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]();\n let _preProcessor = new _Container_PreProcessor_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]();\n let _postProcessor = new _Container_PostProcessor_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"]();\n\n /**\n * Registry for paths for loaded es6 modules.\n *\n * @type {Object<string, string>}\n */\n const _regPaths = {};\n /**\n * Registry to store singletons.\n * @type {Object<string, *>}\n */\n const _regSingles = {};\n let _resolver = new _Container_Resolver_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"]();\n\n // FUNCS\n\n function log() {\n if (_debug) console.log(...arguments);\n }\n\n // INSTANCE METHODS\n\n this.get = async function (runtimeDepId) {\n return this.compose(runtimeDepId, []);\n };\n\n /**\n * This method is 'private' for the npm package. It is used in the Composer only.\n *\n * @param {string} depId runtime dependency ID\n * @param {string[]} stack set of the depId to detect circular dependencies\n * @return {Promise<*>}\n */\n this.compose = async function (depId, stack = []) {\n log(`Object '${depId}' is requested.`);\n // return container itself if requested\n if (\n (depId === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].KEY_CONTAINER) ||\n (depId === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].KEY_CONTAINER_NS)\n ) {\n log(`Container itself is returned.`);\n return _regSingles[_Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].KEY_CONTAINER];\n }\n // parse the `objectKey` and get the structured DTO\n const parsed = _parser.parse(depId);\n // modify original key according to some rules (replacements, etc.)\n const key = _preProcessor.modify(parsed, stack);\n // return existing singleton\n if (key.life === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_SINGLETON) {\n const singleId = getSingletonId(key);\n if (_regSingles[singleId]) {\n log(`Existing singleton '${singleId}' is returned.`);\n return _regSingles[singleId];\n }\n }\n // resolve path to es6 module if not resolved before\n if (!_regPaths[key.moduleName]) {\n log(`ES6 module '${key.moduleName}' is not resolved yet`);\n // convert module name to the path to es6-module file with a sources\n _regPaths[key.moduleName] = _resolver.resolve(key.moduleName);\n }\n\n // load es6 module\n let module;\n const path = _regPaths[key.moduleName];\n try {\n module = await __webpack_require__(\"./src lazy recursive\")(path);\n log(`ES6 module '${key.moduleName}' is loaded from '${path}'.`);\n } catch (e) {\n console.error(\n e?.message,\n `Object key: \"${depId}\".`,\n `Path: \"${path}\".`,\n `Stack: ${JSON.stringify(stack)}`\n );\n throw e;\n }\n // create object using the composer then modify it in post-processor\n let res = await _composer.create(key, module, stack, this);\n res = await _postProcessor.modify(res, key, stack);\n log(`Object '${depId}' is created.`);\n\n // save singletons\n if (key.life === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_SINGLETON) {\n const singleId = getSingletonId(key);\n _regSingles[singleId] = res;\n log(`Object '${depId}' is saved as singleton.`);\n }\n return res;\n };\n\n this.getParser = () => _parser;\n\n this.getPreProcessor = () => _preProcessor;\n\n this.getPostProcessor = () => _postProcessor;\n this.getResolver = () => _resolver;\n\n this.setDebug = function (data) {\n _debug = data;\n _composer.setDebug(data);\n };\n\n this.setParser = (data) => _parser = data;\n\n this.setPreProcessor = (data) => _preProcessor = data;\n\n this.setPostProcessor = (data) => _postProcessor = data;\n\n this.setResolver = (data) => _resolver = data;\n\n // MAIN\n _regSingles[_Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].KEY_CONTAINER] = this;\n }\n};\n\n//# sourceURL=webpack://@teqfw/di/./src/Container.js?");
40
-
41
- /***/ }),
42
-
43
- /***/ "./src/Container/A/Composer.js":
44
- /*!*************************************!*\
45
- !*** ./src/Container/A/Composer.js ***!
46
- \*************************************/
47
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
48
-
49
- "use strict";
50
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TeqFw_Di_Container_A_Composer)\n/* harmony export */ });\n/* harmony import */ var _Defs_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Defs.js */ \"./src/Defs.js\");\n/* harmony import */ var _Composer_A_SpecParser_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Composer/A/SpecParser.js */ \"./src/Container/A/Composer/A/SpecParser.js\");\n/**\n * The composer creates requested objects. It uses the container to create dependencies.\n *\n * @namespace TeqFw_Di_Container_A_Composer\n */\n\n\n\nclass TeqFw_Di_Container_A_Composer {\n\n constructor() {\n // VARS\n let _debug = false;\n\n // FUNCS\n function log(msg) {\n if (_debug) console.log(msg);\n }\n\n // INSTANCE METHODS\n\n /**\n * Returns or creates and returns the requested object.\n *\n * @param {TeqFw_Di_DepId} depId\n * @param {Object} module - imported es6 module\n * @param {string[]} stack - array of the parent objects IDs to prevent dependency loop\n * @param {TeqFw_Di_Container} container - to create dependencies for requested object\n * @return {Promise<*>}\n */\n this.create = async function (depId, module, stack, container) {\n if (stack.includes(depId.value))\n throw new Error(`Circular dependency for '${depId.value}'. Parents are: ${JSON.stringify(stack)}`);\n if (depId.exportName) {\n // use export from the es6-module\n const stackNew = [...stack, depId.value];\n const {[depId.exportName]: exp} = module;\n if (depId.composition === _Defs_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].COMPOSE_FACTORY) {\n if (typeof exp === 'function') {\n // create deps for factory function\n const deps = (0,_Composer_A_SpecParser_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(exp);\n if (deps.length) log(`Deps for object '${depId.value}' are: ${JSON.stringify(deps)}`);\n const spec = {};\n for (const dep of deps)\n spec[dep] = await container.compose(dep, stackNew);\n // create a new object with the factory function\n const res = (_Defs_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isClass(exp)) ? new exp(spec) : exp(spec);\n if (res instanceof Promise)\n return await res;\n else\n return res;\n } else\n // just clone the export\n return Object.assign({}, exp);\n } else\n // just return the export (w/o factory function)\n return exp;\n } else {\n // TODO: this is almost useless option\n return module;\n }\n };\n\n this.setDebug = function (data) {\n _debug = data;\n };\n\n // MAIN\n }\n};\n\n//# sourceURL=webpack://@teqfw/di/./src/Container/A/Composer.js?");
51
-
52
- /***/ }),
53
-
54
- /***/ "./src/Container/A/Composer/A/SpecParser.js":
55
- /*!**************************************************!*\
56
- !*** ./src/Container/A/Composer/A/SpecParser.js ***!
57
- \**************************************************/
58
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
59
-
60
- "use strict";
61
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Defs_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Defs.js */ \"./src/Defs.js\");\n/**\n * This function analyses specification of dependencies extracted from the text definition of the function itself.\n *\n * This is a local module and is used only inside the `TeqFw_Di_Container_A_Composer` space.\n *\n * @namespace TeqFw_Di_Container_A_Composer_A_SpecParser\n */\n\n\n// VARS\nconst FUNC = /(function)*\\s*\\w*\\s*\\(\\s*\\{([^\\}]*)\\}/s;\nconst CLASS = /constructor\\s*\\(\\s*\\{([^\\}]*)\\}/s;\n\n// FUNCS\n\n/**\n * Internal function to analyze extracted parameters.\n *\n * @param {string} params\n * @return {string[]}\n * @private\n */\nfunction _analyze(params) {\n const res = [];\n // create wrapper for arguments and collect dependencies using Proxy\n try {\n const fn = new Function(`{${params}}`, 'return');\n const spec = new Proxy({}, {\n get: (target, prop) => res.push(prop),\n });\n // run wrapper and return dependencies\n fn(spec);\n } catch (e) {\n const msg = `Cannot analyze the deps specification:${params}\\n`\n + `\\nPlease, be sure that spec does not contain extra ')' in a comments.`\n + `\\n\\nError: ${e}`;\n throw new Error(msg);\n }\n return res;\n}\n\n/**\n * @param {Function|Object} exp\n * @return {string[]}\n */\nfunction _analyzeClass(exp) {\n const res = [];\n // extract arguments from constructor\n const def = exp.toString();\n const parts = CLASS.exec(def);\n if (parts) {\n res.push(..._analyze(parts[1]));\n } // else: constructor does not have arguments\n return res;\n}\n\n/**\n * @param {Function|Object} exp\n * @return {string[]}\n */\nfunction _analyzeFunc(exp) {\n const res = [];\n // extract arguments from factory function\n const def = exp.toString();\n const parts = FUNC.exec(def);\n if (parts) {\n res.push(..._analyze(parts[2]));\n } // else: constructor does not have arguments\n return res;\n}\n\n// MAIN\n/**\n * @param {Function|Object} exp\n * @return {string[]}\n */\n/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(exp) {\n if (typeof exp === 'function') {\n if (_Defs_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isClass(exp)) {\n return _analyzeClass(exp);\n } else {\n return _analyzeFunc(exp);\n }\n } else\n return [];\n}\n\n//# sourceURL=webpack://@teqfw/di/./src/Container/A/Composer/A/SpecParser.js?");
62
-
63
- /***/ }),
64
-
65
- /***/ "./src/Container/A/Parser/Chunk/Def.js":
66
- /*!*********************************************!*\
67
- !*** ./src/Container/A/Parser/Chunk/Def.js ***!
68
- \*********************************************/
69
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
70
-
71
- "use strict";
72
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TeqFw_Di_Container_A_Parser_Chunk_Def)\n/* harmony export */ });\n/* harmony import */ var _DepId_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../DepId.js */ \"./src/DepId.js\");\n/* harmony import */ var _Defs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Defs.js */ \"./src/Defs.js\");\n/**\n * Default parser for object keys in format:\n * - Vnd_Pkg_Prj_Mod$FA\n *\n * @namespace TeqFw_Di_Container_A_Parser_Chunk_Def\n */\n\n\n\n// VARS\n/** @type {RegExp} expression for default object key (Ns_Module[.|#]export$[F|A][S|I]) */\nconst REGEXP = /^((([A-Z])[A-Za-z0-9_]*)((#|\\.)?([A-Za-z0-9]*)((\\$)([F|A])?([S|I])?)?)?)$/;\n\n/**\n * @implements TeqFw_Di_Api_Container_Parser_Chunk\n */\nclass TeqFw_Di_Container_A_Parser_Chunk_Def {\n\n canParse(depId) {\n // default parser always trys to parse the depId\n return true;\n }\n\n parse(objectKey) {\n const res = new _DepId_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n res.value = objectKey;\n const parts = REGEXP.exec(objectKey);\n if (parts) {\n res.moduleName = parts[2];\n if (parts[5] === '.') {\n // App_Service.export...\n if (parts[8] === '$') {\n // App_Service.export$...\n res.composition = _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].COMPOSE_FACTORY;\n res.exportName = parts[6];\n res.life = (parts[10] === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_INSTANCE)\n ? _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_INSTANCE : _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_SINGLETON;\n } else {\n res.composition = ((parts[8] === undefined) || (parts[8] === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].COMPOSE_AS_IS))\n ? _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].COMPOSE_AS_IS : _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].COMPOSE_FACTORY;\n res.exportName = parts[6];\n res.life = ((parts[8] === undefined) || (parts[10] === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_SINGLETON))\n ? _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_SINGLETON : _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_INSTANCE;\n }\n\n\n } else if (parts[8] === '$') {\n // App_Logger$FS\n res.composition = ((parts[9] === undefined) || (parts[9] === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].COMPOSE_FACTORY))\n ? _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].COMPOSE_FACTORY : _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].COMPOSE_AS_IS;\n res.exportName = 'default';\n if (parts[10]) {\n res.life = (parts[10] === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_SINGLETON) ? _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_SINGLETON : _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_INSTANCE;\n } else {\n res.life = (res.composition === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].COMPOSE_FACTORY) ? _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_SINGLETON : _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_INSTANCE;\n }\n } else {\n // App_Service\n res.composition = _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].COMPOSE_AS_IS;\n res.exportName = 'default';\n res.life = _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_SINGLETON;\n }\n }\n\n // we should always use singletons for as-is exports\n if ((res.composition === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].COMPOSE_AS_IS) && (res.life === _Defs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].LIFE_INSTANCE))\n throw new Error(`Export is not a function and should be used as a singleton only: '${res.value}'.`);\n return res;\n }\n}\n\n//# sourceURL=webpack://@teqfw/di/./src/Container/A/Parser/Chunk/Def.js?");
73
-
74
- /***/ }),
75
-
76
- /***/ "./src/Container/Parser.js":
77
- /*!*********************************!*\
78
- !*** ./src/Container/Parser.js ***!
79
- \*********************************/
80
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
81
-
82
- "use strict";
83
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TeqFw_Di_Container_Parser)\n/* harmony export */ });\n/* harmony import */ var _A_Parser_Chunk_Def_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./A/Parser/Chunk/Def.js */ \"./src/Container/A/Parser/Chunk/Def.js\");\n/**\n * The parser for the runtime dependency ID contains multiple chunks. Each npm package can have its own format for\n * a `depId`. The parser calls the chunks one by one to parse the string ID as a structure and returns the first result.\n * If none of the chunks processed the `depId`, the parser calls the default chunk.\n */\n\n\n/**\n * @implements TeqFw_Di_Api_Container_Parser\n */\nclass TeqFw_Di_Container_Parser {\n constructor() {\n // VARS\n /**\n * The default chunk to parse the depId if no other chunks have parsed this depId.\n *\n * @type {TeqFw_Di_Api_Container_Parser_Chunk}\n */\n let _defaultChunk = new _A_Parser_Chunk_Def_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n /**\n * The array of the chunks to parse dependency IDs.\n * @type {TeqFw_Di_Api_Container_Parser_Chunk[]}\n */\n const _chunks = [];\n\n // INSTANCE METHODS\n\n this.addChunk = function (chunk) {\n _chunks.push(chunk);\n };\n\n this.parse = function (depId) {\n let res;\n for (const one of _chunks)\n if (one.canParse(depId)) {\n res = one.parse(depId);\n break;\n }\n if (!res)\n res = _defaultChunk?.parse(depId);\n return res;\n };\n\n this.setDefaultChunk = function (chunk) {\n _defaultChunk = chunk;\n };\n }\n};\n\n//# sourceURL=webpack://@teqfw/di/./src/Container/Parser.js?");
84
-
85
- /***/ }),
86
-
87
- /***/ "./src/Container/PostProcessor.js":
88
- /*!****************************************!*\
89
- !*** ./src/Container/PostProcessor.js ***!
90
- \****************************************/
91
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
92
-
93
- "use strict";
94
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TeqFw_Di_Container_PostProcessor)\n/* harmony export */ });\n/**\n * The post-processor handles the result object after composition and before returning.\n *\n * @implements TeqFw_Di_Api_Container_PostProcessor\n */\nclass TeqFw_Di_Container_PostProcessor {\n\n constructor() {\n // VARS\n\n /**\n * The array of the chunks to modify dependency IDs.\n * @type {TeqFw_Di_Api_Container_PostProcessor_Chunk[]}\n */\n const _chunks = [];\n\n // INSTANCE METHODS\n\n this.addChunk = function (chunk) {\n _chunks.push(chunk);\n };\n\n this.modify = async function (obj, depId, stack) {\n let res = obj;\n for (const one of _chunks) {\n res = one.modify(res, depId, stack);\n if (res instanceof Promise) res = await res;\n }\n return res;\n };\n }\n};\n\n//# sourceURL=webpack://@teqfw/di/./src/Container/PostProcessor.js?");
95
-
96
- /***/ }),
97
-
98
- /***/ "./src/Container/PreProcessor.js":
99
- /*!***************************************!*\
100
- !*** ./src/Container/PreProcessor.js ***!
101
- \***************************************/
102
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
103
-
104
- "use strict";
105
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TeqFw_Di_Container_PreProcessor)\n/* harmony export */ });\n/**\n * The preprocessor handles object keys after the parsing but before creating any objects.\n * A replacement rules can be implemented here.\n * Every handler is a function with 2 arguments:\n * - objectKey: current key after processing with other handlers;\n * - originalKey: the key before any processing;\n *\n * @implements TeqFw_Di_Api_Container_PreProcessor\n */\nclass TeqFw_Di_Container_PreProcessor {\n\n constructor() {\n // VARS\n\n /**\n * The array of the chunks to modify dependency IDs.\n * @type {TeqFw_Di_Api_Container_PreProcessor_Chunk[]}\n */\n const _chunks = [];\n\n // INSTANCE METHODS\n\n this.addChunk = function (chunk) {\n _chunks.push(chunk);\n };\n\n this.modify = function (depId, stack) {\n let res = depId;\n for (const one of _chunks)\n res = one.modify(res, depId, stack);\n return res;\n };\n }\n};\n\n//# sourceURL=webpack://@teqfw/di/./src/Container/PreProcessor.js?");
106
-
107
- /***/ }),
108
-
109
- /***/ "./src/Container/Resolver.js":
110
- /*!***********************************!*\
111
- !*** ./src/Container/Resolver.js ***!
112
- \***********************************/
113
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
114
-
115
- "use strict";
116
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TeqFw_Di_Container_Resolver)\n/* harmony export */ });\n/* harmony import */ var _Defs_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Defs.js */ \"./src/Defs.js\");\n/**\n * The Resolver should convert ES6 module name into the path to the sources (file path or URL).\n *\n * This is a base resolver that considers that:\n * - module name is Zend1-compatible ('Vendor_Package_Module')\n * - every namespace is bound to some real path ('Vendor_Package_' => '.../node_modules/@vendor/package/src/...)\n * - every package has sources with the same extensions (*.js, *.mjs, *.es6, ...)\n * - namespaces can be nested (App_Web_ => ./@app/web/..., App_Web_Api_ => ./@app/web_api/...)\n */\n\n\n// VARS\nconst KEY_EXT = 'ext';\nconst KEY_NS = 'ns';\nconst KEY_PATH = 'root';\n/**\n * Namespace parts separator.\n *\n * @type {string}\n */\nconst NSS = '_';\n\n// MAIN\nclass TeqFw_Di_Container_Resolver {\n\n constructor() {\n // VARS\n const _regNs = {};\n let _namespaces = [];\n let _ps = '/'; // web & unix path separator\n\n // INSTANCE METHODS\n\n this.addNamespaceRoot = function (ns, path, ext) {\n _regNs[ns] = {\n [KEY_EXT]: ext ?? _Defs_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].EXT,\n [KEY_NS]: ns,\n [KEY_PATH]: path,\n };\n _namespaces = Object.keys(_regNs).sort((a, b) => b.localeCompare(a));\n };\n\n /**\n * Convert the module name to the path of the source files .\n * @param {string} moduleName 'Vendor_Package_Module'\n * @return {string} '/home/user/app/node_modules/@vendor/package/src/Module.js'\n */\n this.resolve = function (moduleName) {\n let root, ext, ns;\n for (ns of _namespaces) {\n if (moduleName.startsWith(ns)) {\n root = _regNs[ns][KEY_PATH];\n ext = _regNs[ns][KEY_EXT];\n break;\n }\n }\n if (root && ext) {\n let tail = moduleName.replace(ns, '');\n if (tail.indexOf(NSS) === 0) tail = tail.replace(NSS, '');\n const file = tail.replaceAll(NSS, _ps);\n return `${root}${_ps}${file}.${ext}`;\n } else return moduleName;\n };\n }\n};\n\n//# sourceURL=webpack://@teqfw/di/./src/Container/Resolver.js?");
117
-
118
- /***/ }),
119
-
120
- /***/ "./src/Defs.js":
121
- /*!*********************!*\
122
- !*** ./src/Defs.js ***!
123
- \*********************/
124
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
125
-
126
- "use strict";
127
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/**\n * Hardcoded constants and useful utilities for the package.\n * @namespace TeqFw_Di_Defs\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n COMPOSE_AS_IS: 'A',\n COMPOSE_FACTORY: 'F',\n EXT: 'js',\n KEY_CONTAINER: 'container',\n KEY_CONTAINER_NS: 'TeqFw_Di_Container$',\n LIFE_INSTANCE: 'I',\n LIFE_SINGLETON: 'S',\n /**\n * @deprecated use TeqFw_Core_Shared_Defaults.DI_WRAP_PROXY\n */\n WRAP_PROXY: 'proxy',\n\n /**\n * Return 'true' if function is a class definition.\n * See: https://stackoverflow.com/a/29094018/4073821\n *\n * @param {function} fn\n * @return {boolean}\n */\n isClass(fn) {\n const proto = Object.getOwnPropertyDescriptor(fn, 'prototype');\n return proto && !proto.writable;\n },\n});\n\n//# sourceURL=webpack://@teqfw/di/./src/Defs.js?");
128
-
129
- /***/ }),
130
-
131
- /***/ "./src/DepId.js":
132
- /*!**********************!*\
133
- !*** ./src/DepId.js ***!
134
- \**********************/
135
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
136
-
137
- "use strict";
138
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TeqFw_Di_DepId)\n/* harmony export */ });\n/**\n * This is a DTO that represents the structure of an ID for a runtime dependency.\n * @namespace TeqFw_Di_DepId\n */\nclass TeqFw_Di_DepId {\n /**\n * The name of an export of the module.\n * @type {string}\n */\n exportName;\n /**\n * Composition type (see Defs.COMPOSE_): use the export as Factory (F) or return as-is (A).\n * @type {string}\n */\n composition;\n /**\n * Lifestyle type (see Defs.LIFE_): singleton (S) or instance (I).\n * @type {string}\n */\n life;\n /**\n * The code for ES6 module that can be converted to the path to this es6 module.\n * @type {string}\n */\n moduleName;\n /**\n * Object key value.\n * @type {string}\n */\n value;\n /**\n * List of wrappers to decorate the result.\n * @type {string[]}\n */\n wrappers = [];\n}\n\n//# sourceURL=webpack://@teqfw/di/./src/DepId.js?");
139
-
140
- /***/ })
141
-
142
- /******/ });
143
- /************************************************************************/
144
- /******/ // The module cache
145
- /******/ var __webpack_module_cache__ = {};
146
- /******/
147
- /******/ // The require function
148
- /******/ function __webpack_require__(moduleId) {
149
- /******/ // Check if module is in cache
150
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
151
- /******/ if (cachedModule !== undefined) {
152
- /******/ return cachedModule.exports;
153
- /******/ }
154
- /******/ // Create a new module (and put it into the cache)
155
- /******/ var module = __webpack_module_cache__[moduleId] = {
156
- /******/ // no module.id needed
157
- /******/ // no module.loaded needed
158
- /******/ exports: {}
159
- /******/ };
160
- /******/
161
- /******/ // Execute the module function
162
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
163
- /******/
164
- /******/ // Return the exports of the module
165
- /******/ return module.exports;
166
- /******/ }
167
- /******/
168
- /************************************************************************/
169
- /******/ /* webpack/runtime/define property getters */
170
- /******/ (() => {
171
- /******/ // define getter functions for harmony exports
172
- /******/ __webpack_require__.d = (exports, definition) => {
173
- /******/ for(var key in definition) {
174
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
175
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
176
- /******/ }
177
- /******/ }
178
- /******/ };
179
- /******/ })();
180
- /******/
181
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
182
- /******/ (() => {
183
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
184
- /******/ })();
185
- /******/
186
- /******/ /* webpack/runtime/make namespace object */
187
- /******/ (() => {
188
- /******/ // define __esModule on exports
189
- /******/ __webpack_require__.r = (exports) => {
190
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
191
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
192
- /******/ }
193
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
194
- /******/ };
195
- /******/ })();
196
- /******/
197
- /************************************************************************/
198
- /******/
199
- /******/ // startup
200
- /******/ // Load entry module and return exports
201
- /******/ // This entry module can't be inlined because the eval devtool is used.
202
- /******/ var __webpack_exports__ = __webpack_require__("./index.cjs");
203
- /******/
204
- /******/ })()
205
- ;