@contember/react-multipass-rendering 1.1.0-alpha.9 → 1.1.0-beta.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 (39) hide show
  1. package/dist/development/ChildrenAnalyzer.js +11 -5
  2. package/dist/development/ChildrenAnalyzer.js.map +1 -1
  3. package/dist/development/ChildrenAnalyzerError.js +4 -6
  4. package/dist/development/ChildrenAnalyzerError.js.map +1 -1
  5. package/dist/development/assertNever.js +3 -1
  6. package/dist/development/assertNever.js.map +1 -1
  7. package/dist/development/helpers/getErrorMessage.js +3 -1
  8. package/dist/development/helpers/getErrorMessage.js.map +1 -1
  9. package/dist/development/helpers/wrapError.js +14 -9
  10. package/dist/development/helpers/wrapError.js.map +1 -1
  11. package/dist/development/index.js +10 -4
  12. package/dist/development/nodeSpecs/BranchNode.js +3 -1
  13. package/dist/development/nodeSpecs/BranchNode.js.map +1 -1
  14. package/dist/development/nodeSpecs/Leaf.js +3 -1
  15. package/dist/development/nodeSpecs/Leaf.js.map +1 -1
  16. package/dist/production/ChildrenAnalyzer.js +11 -5
  17. package/dist/production/ChildrenAnalyzer.js.map +1 -1
  18. package/dist/production/ChildrenAnalyzerError.js +4 -6
  19. package/dist/production/ChildrenAnalyzerError.js.map +1 -1
  20. package/dist/production/assertNever.js +3 -1
  21. package/dist/production/assertNever.js.map +1 -1
  22. package/dist/production/helpers/getErrorMessage.js +3 -1
  23. package/dist/production/helpers/getErrorMessage.js.map +1 -1
  24. package/dist/production/helpers/wrapError.js +14 -9
  25. package/dist/production/helpers/wrapError.js.map +1 -1
  26. package/dist/production/index.js +10 -4
  27. package/dist/production/nodeSpecs/BranchNode.js +3 -1
  28. package/dist/production/nodeSpecs/BranchNode.js.map +1 -1
  29. package/dist/production/nodeSpecs/Leaf.js +3 -1
  30. package/dist/production/nodeSpecs/Leaf.js.map +1 -1
  31. package/dist/types/ChildrenAnalyzerError.d.ts +1 -2
  32. package/dist/types/ChildrenAnalyzerError.d.ts.map +1 -1
  33. package/dist/types/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.d.ts +1 -1
  34. package/dist/types/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.d.ts.map +1 -1
  35. package/dist/types/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +2 -2
  37. package/src/ChildrenAnalyzer.ts +1 -1
  38. package/src/ChildrenAnalyzerError.ts +2 -6
  39. package/src/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.ts +1 -1
@@ -24,8 +24,12 @@ const _ChildrenAnalyzer = class {
24
24
  }
25
25
  processChildren(children, initialStaticContext) {
26
26
  const processed = this.processNode(children, initialStaticContext, []);
27
- const rawResult = Array.isArray(processed) ? processed : [processed];
28
- return rawResult.filter((item) => item !== void 0);
27
+ const rawResult = Array.isArray(
28
+ processed
29
+ ) ? processed : [processed];
30
+ return rawResult.filter(
31
+ (item) => item !== void 0
32
+ );
29
33
  }
30
34
  processNode(node, staticContext, componentPath) {
31
35
  if (!node || typeof node === "string" || typeof node === "number" || typeof node === "boolean") {
@@ -113,7 +117,7 @@ const _ChildrenAnalyzer = class {
113
117
  break;
114
118
  }
115
119
  default:
116
- return assertNever(specification);
120
+ return assertNever();
117
121
  }
118
122
  }
119
123
  const processedChildren = this.processNode(children, staticContext, componentPath);
@@ -142,7 +146,7 @@ const _ChildrenAnalyzer = class {
142
146
  break;
143
147
  }
144
148
  default:
145
- return assertNever(specification);
149
+ return assertNever();
146
150
  }
147
151
  }
148
152
  if (!this.options.ignoreUnhandledNodes && !(typeof treeNode !== "string" && this.options.staticRenderFactoryName in treeNode)) {
@@ -160,5 +164,7 @@ __publicField(ChildrenAnalyzer, "defaultOptions", {
160
164
  staticContextFactoryName: "getStaticContext",
161
165
  staticRenderFactoryName: "staticRender"
162
166
  });
163
- export { ChildrenAnalyzer };
167
+ export {
168
+ ChildrenAnalyzer
169
+ };
164
170
  //# sourceMappingURL=ChildrenAnalyzer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChildrenAnalyzer.js","sources":["../../src/ChildrenAnalyzer.ts"],"sourcesContent":["import type { ElementType, ReactElement, ReactNode } from 'react'\nimport { assertNever } from './assertNever'\nimport type { BranchNodeList } from './BranchNodeList'\nimport { ChildrenAnalyzerError } from './ChildrenAnalyzerError'\nimport type { ChildrenAnalyzerOptions } from './ChildrenAnalyzerOptions'\nimport { getErrorMessage } from './helpers'\nimport type { LeafList } from './LeafList'\nimport type {\n\tDeclarationSiteNodeRepresentationFactory,\n\tRawNodeRepresentation,\n\tStaticContextFactory,\n\tSyntheticChildrenFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './nodeSpecs'\nimport { wrapError } from './helpers/wrapError'\n\nexport class ChildrenAnalyzer<\n\tAllLeavesRepresentation = any,\n\tAllBranchNodesRepresentation = never,\n\tStaticContext = undefined,\n> {\n\tprivate static defaultOptions: ChildrenAnalyzerOptions = {\n\t\tignoreRenderProps: true,\n\t\trenderPropsErrorMessage: 'Render props (functions as React component children) are not supported.',\n\n\t\tignoreUnhandledNodes: true,\n\t\tunhandledNodeErrorMessage: 'Encountered an unknown child.',\n\n\t\tstaticContextFactoryName: 'getStaticContext',\n\t\tstaticRenderFactoryName: 'staticRender',\n\t}\n\n\tprivate readonly leaves: LeafList<AllLeavesRepresentation, StaticContext>\n\tprivate readonly branchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>\n\tprivate readonly options: ChildrenAnalyzerOptions<StaticContext>\n\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tbranchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tdecider:\n\t\t\t| Partial<ChildrenAnalyzerOptions>\n\t\t\t| BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext> = [],\n\t\toptions: Partial<ChildrenAnalyzerOptions> = {},\n\t) {\n\t\tthis.leaves = leaves\n\n\t\tif (Array.isArray(decider)) {\n\t\t\tthis.branchNodes = decider\n\t\t} else {\n\t\t\tthis.branchNodes = []\n\t\t\toptions = decider\n\t\t}\n\t\tthis.options = { ...ChildrenAnalyzer.defaultOptions, ...options }\n\t}\n\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tinitialStaticContext: StaticContext,\n\t): Array<AllLeavesRepresentation | AllBranchNodesRepresentation> {\n\t\tconst processed = this.processNode(children, initialStaticContext, [])\n\n\t\tconst rawResult: Array<AllLeavesRepresentation | AllBranchNodesRepresentation | undefined> = Array.isArray(\n\t\t\tprocessed,\n\t\t)\n\t\t\t? processed\n\t\t\t: [processed]\n\n\t\treturn rawResult.filter(\n\t\t\t(item): item is AllLeavesRepresentation | AllBranchNodesRepresentation => item !== undefined,\n\t\t)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode | Function,\n\t\tstaticContext: StaticContext,\n\t\tcomponentPath: ReactElement[],\n\t): RawNodeRepresentation<AllLeavesRepresentation, AllBranchNodesRepresentation> {\n\t\tif (!node || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\tfor (const leaf of this.leaves) {\n\t\t\t\tconst specification = leaf.specification\n\t\t\t\tif (specification.type === 'useSite') {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (node === false || node === undefined || node === null) {\n\t\t\t\t// This adds seamless support for conditionals and such.\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tif (!this.options.ignoreUnhandledNodes) {\n\t\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t\t}\n\t\t\treturn undefined\n\t\t}\n\n\t\tif (typeof node === 'function') {\n\t\t\tif (this.options.ignoreRenderProps) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.renderPropsErrorMessage, node, staticContext))\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\tlet mapped: Array<AllLeavesRepresentation | AllBranchNodesRepresentation> = []\n\n\t\t\tfor (const subNode of node) {\n\t\t\t\tconst processed = this.processNode(subNode, staticContext, componentPath)\n\n\t\t\t\tif (processed !== undefined) {\n\t\t\t\t\tif (Array.isArray(processed)) {\n\t\t\t\t\t\tmapped = mapped.concat(processed)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmapped.push(processed)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn mapped\n\t\t}\n\n\t\tlet children: ReactNode = undefined\n\n\t\tif (!('type' in node)) {\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\tchildren = node.props.children\n\n\t\tif (typeof node.type === 'symbol') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\t// if (typeof node.type === 'string') {\n\t\t// \t// Typically a host component\n\t\t// \tif (!this.options.ignoreUnhandledNodes) {\n\t\t// \t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t// \t}\n\t\t// \treturn this.processNode(children, staticContext)\n\t\t// }\n\n\t\t// Component, PureComponent, FunctionComponent\n\n\t\tconst treeNode = node.type as ElementType &\n\t\t\t{\n\t\t\t\t[staticMethod in ValidFactoryName]:\n\t\t\t\t\t| StaticContextFactory<any, StaticContext>\n\t\t\t\t\t| SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\t\t| UnconstrainedLeafRepresentationFactory<any, AllLeavesRepresentation, StaticContext>\n\t\t\t\t\t| DeclarationSiteNodeRepresentationFactory<any, unknown, AllBranchNodesRepresentation, StaticContext>\n\t\t\t}\n\n\t\tcomponentPath = [...componentPath, node]\n\t\tif (typeof treeNode !== 'string') {\n\t\t\tif (this.options.staticContextFactoryName in treeNode) {\n\t\t\t\tconst staticContextFactory = treeNode[this.options.staticContextFactoryName] as StaticContextFactory<\n\t\t\t\t\tany,\n\t\t\t\t\tStaticContext\n\t\t\t\t>\n\t\t\t\ttry {\n\t\t\t\t\tstaticContext = staticContextFactory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticContextFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.options.staticRenderFactoryName in treeNode) {\n\t\t\t\tconst factory = treeNode[this.options.staticRenderFactoryName] as SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\ttry {\n\t\t\t\t\tchildren = factory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticRenderFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (const leaf of this.leaves) {\n\t\t\tconst specification = leaf.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as UnconstrainedLeafRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tconst processedChildren = this.processNode(children, staticContext, componentPath)\n\n\t\tfor (const branchNode of this.branchNodes) {\n\t\t\tconst specification = branchNode.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName, childrenRepresentationReducer } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as DeclarationSiteNodeRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tunknown,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, childrenRepresentationReducer(processedChildren), staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { factory, ComponentType } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn factory(node, processedChildren, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\t!this.options.ignoreUnhandledNodes &&\n\t\t\t!(typeof treeNode !== 'string' && this.options.staticRenderFactoryName in treeNode)\n\t\t) {\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t}\n\n\t\treturn processedChildren\n\t}\n}\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"ChildrenAnalyzer.js","sources":["../../src/ChildrenAnalyzer.ts"],"sourcesContent":["import type { ElementType, ReactElement, ReactNode } from 'react'\nimport { assertNever } from './assertNever'\nimport type { BranchNodeList } from './BranchNodeList'\nimport { ChildrenAnalyzerError } from './ChildrenAnalyzerError'\nimport type { ChildrenAnalyzerOptions } from './ChildrenAnalyzerOptions'\nimport { getErrorMessage } from './helpers'\nimport type { LeafList } from './LeafList'\nimport type {\n\tDeclarationSiteNodeRepresentationFactory,\n\tRawNodeRepresentation,\n\tStaticContextFactory,\n\tSyntheticChildrenFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './nodeSpecs'\nimport { wrapError } from './helpers/wrapError'\n\nexport class ChildrenAnalyzer<\n\tAllLeavesRepresentation = any,\n\tAllBranchNodesRepresentation = never,\n\tStaticContext = undefined,\n> {\n\tprivate static defaultOptions: ChildrenAnalyzerOptions = {\n\t\tignoreRenderProps: true,\n\t\trenderPropsErrorMessage: 'Render props (functions as React component children) are not supported.',\n\n\t\tignoreUnhandledNodes: true,\n\t\tunhandledNodeErrorMessage: 'Encountered an unknown child.',\n\n\t\tstaticContextFactoryName: 'getStaticContext',\n\t\tstaticRenderFactoryName: 'staticRender',\n\t}\n\n\tprivate readonly leaves: LeafList<AllLeavesRepresentation, StaticContext>\n\tprivate readonly branchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>\n\tprivate readonly options: ChildrenAnalyzerOptions<StaticContext>\n\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tbranchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tdecider:\n\t\t\t| Partial<ChildrenAnalyzerOptions>\n\t\t\t| BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext> = [],\n\t\toptions: Partial<ChildrenAnalyzerOptions> = {},\n\t) {\n\t\tthis.leaves = leaves\n\n\t\tif (Array.isArray(decider)) {\n\t\t\tthis.branchNodes = decider\n\t\t} else {\n\t\t\tthis.branchNodes = []\n\t\t\toptions = decider\n\t\t}\n\t\tthis.options = { ...ChildrenAnalyzer.defaultOptions, ...options }\n\t}\n\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tinitialStaticContext: StaticContext,\n\t): Array<AllLeavesRepresentation | AllBranchNodesRepresentation> {\n\t\tconst processed = this.processNode(children, initialStaticContext, [])\n\n\t\tconst rawResult: Array<AllLeavesRepresentation | AllBranchNodesRepresentation | undefined> = Array.isArray(\n\t\t\tprocessed,\n\t\t)\n\t\t\t? processed\n\t\t\t: [processed]\n\n\t\treturn rawResult.filter(\n\t\t\t(item): item is AllLeavesRepresentation | AllBranchNodesRepresentation => item !== undefined,\n\t\t)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode,\n\t\tstaticContext: StaticContext,\n\t\tcomponentPath: ReactElement[],\n\t): RawNodeRepresentation<AllLeavesRepresentation, AllBranchNodesRepresentation> {\n\t\tif (!node || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\tfor (const leaf of this.leaves) {\n\t\t\t\tconst specification = leaf.specification\n\t\t\t\tif (specification.type === 'useSite') {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (node === false || node === undefined || node === null) {\n\t\t\t\t// This adds seamless support for conditionals and such.\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tif (!this.options.ignoreUnhandledNodes) {\n\t\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t\t}\n\t\t\treturn undefined\n\t\t}\n\n\t\tif (typeof node === 'function') {\n\t\t\tif (this.options.ignoreRenderProps) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.renderPropsErrorMessage, node, staticContext))\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\tlet mapped: Array<AllLeavesRepresentation | AllBranchNodesRepresentation> = []\n\n\t\t\tfor (const subNode of node) {\n\t\t\t\tconst processed = this.processNode(subNode, staticContext, componentPath)\n\n\t\t\t\tif (processed !== undefined) {\n\t\t\t\t\tif (Array.isArray(processed)) {\n\t\t\t\t\t\tmapped = mapped.concat(processed)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmapped.push(processed)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn mapped\n\t\t}\n\n\t\tlet children: ReactNode = undefined\n\n\t\tif (!('type' in node)) {\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\tchildren = node.props.children\n\n\t\tif (typeof node.type === 'symbol') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\t// if (typeof node.type === 'string') {\n\t\t// \t// Typically a host component\n\t\t// \tif (!this.options.ignoreUnhandledNodes) {\n\t\t// \t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t// \t}\n\t\t// \treturn this.processNode(children, staticContext)\n\t\t// }\n\n\t\t// Component, PureComponent, FunctionComponent\n\n\t\tconst treeNode = node.type as ElementType &\n\t\t\t{\n\t\t\t\t[staticMethod in ValidFactoryName]:\n\t\t\t\t\t| StaticContextFactory<any, StaticContext>\n\t\t\t\t\t| SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\t\t| UnconstrainedLeafRepresentationFactory<any, AllLeavesRepresentation, StaticContext>\n\t\t\t\t\t| DeclarationSiteNodeRepresentationFactory<any, unknown, AllBranchNodesRepresentation, StaticContext>\n\t\t\t}\n\n\t\tcomponentPath = [...componentPath, node]\n\t\tif (typeof treeNode !== 'string') {\n\t\t\tif (this.options.staticContextFactoryName in treeNode) {\n\t\t\t\tconst staticContextFactory = treeNode[this.options.staticContextFactoryName] as StaticContextFactory<\n\t\t\t\t\tany,\n\t\t\t\t\tStaticContext\n\t\t\t\t>\n\t\t\t\ttry {\n\t\t\t\t\tstaticContext = staticContextFactory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticContextFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.options.staticRenderFactoryName in treeNode) {\n\t\t\t\tconst factory = treeNode[this.options.staticRenderFactoryName] as SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\ttry {\n\t\t\t\t\tchildren = factory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticRenderFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (const leaf of this.leaves) {\n\t\t\tconst specification = leaf.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as UnconstrainedLeafRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tconst processedChildren = this.processNode(children, staticContext, componentPath)\n\n\t\tfor (const branchNode of this.branchNodes) {\n\t\t\tconst specification = branchNode.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName, childrenRepresentationReducer } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as DeclarationSiteNodeRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tunknown,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, childrenRepresentationReducer(processedChildren), staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { factory, ComponentType } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn factory(node, processedChildren, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\t!this.options.ignoreUnhandledNodes &&\n\t\t\t!(typeof treeNode !== 'string' && this.options.staticRenderFactoryName in treeNode)\n\t\t) {\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t}\n\n\t\treturn processedChildren\n\t}\n}\n"],"names":[],"mappings":"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"}
@@ -6,14 +6,12 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  class ChildrenAnalyzerError extends Error {
8
8
  constructor(message, options) {
9
- super(message);
10
- __publicField(this, "cause");
9
+ super(message, options);
11
10
  __publicField(this, "details");
12
11
  this.details = options?.details;
13
- if (typeof options === "object" && "cause" in options) {
14
- this.cause = options.cause;
15
- }
16
12
  }
17
13
  }
18
- export { ChildrenAnalyzerError };
14
+ export {
15
+ ChildrenAnalyzerError
16
+ };
19
17
  //# sourceMappingURL=ChildrenAnalyzerError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChildrenAnalyzerError.js","sources":["../../src/ChildrenAnalyzerError.ts"],"sourcesContent":["export class ChildrenAnalyzerError extends Error {\n\tpublic cause?: unknown\n\tpublic details?: string\n\n\tconstructor(message: string, options?: { cause: unknown, details?: string }) {\n\t\tsuper(message)\n\t\tthis.details = options?.details\n\t\tif ((typeof options === 'object' && 'cause' in options)) {\n\t\t\tthis.cause = options.cause\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAAO,MAAM,8BAA8B,MAAM;AAAA,EAIhD,YAAY,SAAiB,SAAgD;AAC5E,UAAM,OAAO;AAJP;AACA;AAIN,SAAK,UAAU,SAAS;AACxB,QAAK,OAAO,YAAY,YAAY,WAAW,SAAU;AACxD,WAAK,QAAQ,QAAQ;AAAA,IACtB;AAAA,EACD;AACD;;"}
1
+ {"version":3,"file":"ChildrenAnalyzerError.js","sources":["../../src/ChildrenAnalyzerError.ts"],"sourcesContent":["export class ChildrenAnalyzerError extends Error {\n\tpublic details?: string\n\n\tconstructor(message: string, options?: { cause: Error, details?: string }) {\n\t\tsuper(message, options)\n\t\tthis.details = options?.details\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAAO,MAAM,8BAA8B,MAAM;AAAA,EAGhD,YAAY,SAAiB,SAA8C;AAC1E,UAAM,SAAS,OAAO;AAHhB;AAIN,SAAK,UAAU,SAAS;AAAA,EACzB;AACD;"}
@@ -1,5 +1,7 @@
1
1
  const assertNever = (_) => {
2
2
  throw new Error();
3
3
  };
4
- export { assertNever };
4
+ export {
5
+ assertNever
6
+ };
5
7
  //# sourceMappingURL=assertNever.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assertNever.js","sources":["../../src/assertNever.ts"],"sourcesContent":["export const assertNever = (_: never): never => {\n\tthrow new Error()\n}\n"],"names":[],"mappings":"AAAa,MAAA,cAAc,CAAC,MAAoB;AAC/C,QAAM,IAAI,MAAM;AACjB;;"}
1
+ {"version":3,"file":"assertNever.js","sources":["../../src/assertNever.ts"],"sourcesContent":["export const assertNever = (_: never): never => {\n\tthrow new Error()\n}\n"],"names":[],"mappings":"AAAa,MAAA,cAAc,CAAC,MAAoB;AAC/C,QAAM,IAAI,MAAM;AACjB;"}
@@ -1,5 +1,7 @@
1
1
  const getErrorMessage = (factory, node, staticContext) => {
2
2
  return typeof factory === "string" ? factory : factory(node, staticContext);
3
3
  };
4
- export { getErrorMessage };
4
+ export {
5
+ getErrorMessage
6
+ };
5
7
  //# sourceMappingURL=getErrorMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getErrorMessage.js","sources":["../../../src/helpers/getErrorMessage.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { ErrorMessageFactory } from '../ErrorMessageFactory'\n\nexport const getErrorMessage = <StaticContext>(\n\tfactory: ErrorMessageFactory<StaticContext>,\n\tnode: ReactNode,\n\tstaticContext: StaticContext,\n): string => {\n\treturn typeof factory === 'string' ? factory : factory(node, staticContext)\n}\n"],"names":[],"mappings":"AAGO,MAAM,kBAAkB,CAC9B,SACA,MACA,kBACY;AACZ,SAAO,OAAO,YAAY,WAAW,UAAU,QAAQ,MAAM,aAAa;AAC3E;;"}
1
+ {"version":3,"file":"getErrorMessage.js","sources":["../../../src/helpers/getErrorMessage.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { ErrorMessageFactory } from '../ErrorMessageFactory'\n\nexport const getErrorMessage = <StaticContext>(\n\tfactory: ErrorMessageFactory<StaticContext>,\n\tnode: ReactNode,\n\tstaticContext: StaticContext,\n): string => {\n\treturn typeof factory === 'string' ? factory : factory(node, staticContext)\n}\n"],"names":[],"mappings":"AAGO,MAAM,kBAAkB,CAC9B,SACA,MACA,kBACY;AACZ,SAAO,OAAO,YAAY,WAAW,UAAU,QAAQ,MAAM,aAAa;AAC3E;"}
@@ -13,15 +13,18 @@ const wrapError = (e, currentComponentName, methodName, path) => {
13
13
  continue;
14
14
  }
15
15
  try {
16
- const valuePrinted = JSON.stringify(value, (key2, value2) => {
17
- if (typeof value2 === "function") {
18
- return "(function)";
16
+ const valuePrinted = JSON.stringify(
17
+ value,
18
+ (key2, value2) => {
19
+ if (typeof value2 === "function") {
20
+ return "(function)";
21
+ }
22
+ if (React.isValidElement(value2)) {
23
+ return "(react element)";
24
+ }
25
+ return value2;
19
26
  }
20
- if (React.isValidElement(value2)) {
21
- return "(react element)";
22
- }
23
- return value2;
24
- });
27
+ );
25
28
  result += ` ${key}=${valuePrinted}`;
26
29
  } catch {
27
30
  result += ` ${key}=(failed to print a value)`;
@@ -42,5 +45,7 @@ ${e.message || "unknown error"}`;
42
45
  ${componentPath.join("\n")}`
43
46
  });
44
47
  };
45
- export { wrapError };
48
+ export {
49
+ wrapError
50
+ };
46
51
  //# sourceMappingURL=wrapError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wrapError.js","sources":["../../../src/helpers/wrapError.ts"],"sourcesContent":["import React, { ReactElement } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\n\nexport const wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {\n\tif (!(e instanceof Error)) {\n\t\tthrow e\n\t}\n\n\tconst componentPath = path.map((it, index) => {\n\t\tconst { children, ...props } = it.props\n\t\tconst printProps = (props: any) => {\n\t\t\tlet result = ''\n\t\t\tfor (const [key, value] of Object.entries(props)) {\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst valuePrinted = JSON.stringify(value, (key, value) => {\n\t\t\t\t\t\t\tif (typeof value === 'function') {\n\t\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t},\n\t\t\t\t\t)\n\t\t\t\t\tresult += ` ${key}=${valuePrinted}`\n\t\t\t\t} catch {\n\t\t\t\t\tresult += ` ${key}=(failed to print a value)`\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result\n\t\t}\n\t\tconst componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null\n\t\tconst propsPrinted = printProps(props)\n\t\tconst indent = ' '.repeat(index)\n\t\treturn `${indent}<${componentName ?? '???'}${propsPrinted}>`\n\t})\n\tconst errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\\n${e.message || 'unknown error'}`\n\n\tthrow new ChildrenAnalyzerError(errorMessage, {\n\t\tcause: e,\n\t\tdetails: `Component path:\\n${componentPath.join('\\n')}`,\n\t})\n}\n"],"names":[],"mappings":";;AAGO,MAAM,YAAY,CAAC,GAAY,sBAA8B,YAAoB,SAAgC;AACnH,MAAA,eAAe,QAAQ;AACpB,UAAA;AAAA,EACP;AAEA,QAAM,gBAAgB,KAAK,IAAI,CAAC,IAAI,UAAU;AACvC,UAAA,EAAE,aAAa,UAAU,GAAG;AAC5B,UAAA,aAAa,CAAC,WAAe;AAClC,UAAI,SAAS;AACb,iBAAW,CAAC,KAAK,UAAU,OAAO,QAAQ,MAAK,GAAG;AACjD,YAAI,UAAU,QAAW;AACxB;AAAA,QACD;AACI,YAAA;AACH,gBAAM,eAAe,KAAK,UAAU,OAAO,CAAC,MAAK,WAAU;AACrD,gBAAA,OAAO,WAAU,YAAY;AACzB,qBAAA;AAAA,YACR;AACI,gBAAA,MAAM,eAAe,MAAK,GAAG;AACzB,qBAAA;AAAA,YACR;AACO,mBAAA;AAAA,UAAA,CAET;AACA,oBAAU,IAAI,OAAO;AAAA,QAAA,QACpB;AACD,oBAAU,IAAI;AAAA,QACf;AAAA,MACD;AACO,aAAA;AAAA,IAAA;AAEF,UAAA,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AACzG,UAAA,eAAe,WAAW,KAAK;AAC/B,UAAA,SAAS,KAAK,OAAO,KAAK;AACzB,WAAA,GAAG,UAAU,iBAAiB,QAAQ;AAAA,EAAA,CAC7C;AACK,QAAA,eAAe,iCAAiC,2BAA2B;AAAA,EAAgB,EAAE,WAAW;AAExG,QAAA,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI;AAAA,EAAA,CACpD;AACF;;"}
1
+ {"version":3,"file":"wrapError.js","sources":["../../../src/helpers/wrapError.ts"],"sourcesContent":["import React, { ReactElement } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\n\nexport const wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {\n\tif (!(e instanceof Error)) {\n\t\tthrow e\n\t}\n\n\tconst componentPath = path.map((it, index) => {\n\t\tconst { children, ...props } = it.props\n\t\tconst printProps = (props: any) => {\n\t\t\tlet result = ''\n\t\t\tfor (const [key, value] of Object.entries(props)) {\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst valuePrinted = JSON.stringify(value, (key, value) => {\n\t\t\t\t\t\t\tif (typeof value === 'function') {\n\t\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t},\n\t\t\t\t\t)\n\t\t\t\t\tresult += ` ${key}=${valuePrinted}`\n\t\t\t\t} catch {\n\t\t\t\t\tresult += ` ${key}=(failed to print a value)`\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result\n\t\t}\n\t\tconst componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null\n\t\tconst propsPrinted = printProps(props)\n\t\tconst indent = ' '.repeat(index)\n\t\treturn `${indent}<${componentName ?? '???'}${propsPrinted}>`\n\t})\n\tconst errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\\n${e.message || 'unknown error'}`\n\n\tthrow new ChildrenAnalyzerError(errorMessage, {\n\t\tcause: e,\n\t\tdetails: `Component path:\\n${componentPath.join('\\n')}`,\n\t})\n}\n"],"names":["props","key","value"],"mappings":";;AAGO,MAAM,YAAY,CAAC,GAAY,sBAA8B,YAAoB,SAAgC;AACnH,MAAA,EAAE,aAAa,QAAQ;AACpB,UAAA;AAAA,EACP;AAEA,QAAM,gBAAgB,KAAK,IAAI,CAAC,IAAI,UAAU;AAC7C,UAAM,EAAE,aAAa,MAAM,IAAI,GAAG;AAC5B,UAAA,aAAa,CAACA,WAAe;AAClC,UAAI,SAAS;AACb,iBAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQA,MAAK,GAAG;AACjD,YAAI,UAAU,QAAW;AACxB;AAAA,QACD;AACI,YAAA;AACH,gBAAM,eAAe,KAAK;AAAA,YAAU;AAAA,YAAO,CAACC,MAAKC,WAAU;AACrD,kBAAA,OAAOA,WAAU,YAAY;AACzB,uBAAA;AAAA,cACR;AACI,kBAAA,MAAM,eAAeA,MAAK,GAAG;AACzB,uBAAA;AAAA,cACR;AACOA,qBAAAA;AAAAA,YACR;AAAA,UAAA;AAED,oBAAU,IAAI,OAAO;AAAA,QAAA,QACpB;AACD,oBAAU,IAAI;AAAA,QACf;AAAA,MACD;AACO,aAAA;AAAA,IAAA;AAEF,UAAA,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AACzG,UAAA,eAAe,WAAW,KAAK;AAC/B,UAAA,SAAS,KAAK,OAAO,KAAK;AACzB,WAAA,GAAG,UAAU,iBAAiB,QAAQ;AAAA,EAAA,CAC7C;AACK,QAAA,eAAe,iCAAiC,2BAA2B;AAAA,EAAgB,EAAE,WAAW;AAExG,QAAA,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI;AAAA,EAAA,CACpD;AACF;"}
@@ -1,5 +1,11 @@
1
- export { ChildrenAnalyzer } from "./ChildrenAnalyzer.js";
2
- export { ChildrenAnalyzerError } from "./ChildrenAnalyzerError.js";
3
- export { BranchNode } from "./nodeSpecs/BranchNode.js";
4
- export { Leaf } from "./nodeSpecs/Leaf.js";
1
+ import { ChildrenAnalyzer } from "./ChildrenAnalyzer.js";
2
+ import { ChildrenAnalyzerError } from "./ChildrenAnalyzerError.js";
3
+ import { BranchNode } from "./nodeSpecs/BranchNode.js";
4
+ import { Leaf } from "./nodeSpecs/Leaf.js";
5
+ export {
6
+ BranchNode,
7
+ ChildrenAnalyzer,
8
+ ChildrenAnalyzerError,
9
+ Leaf
10
+ };
5
11
  //# sourceMappingURL=index.js.map
@@ -35,5 +35,7 @@ __publicField(BranchNode, "defaultOptions", {
35
35
  childrenAreOptional: false,
36
36
  childrenAbsentErrorMessage: "Component must have children!"
37
37
  });
38
- export { BranchNode };
38
+ export {
39
+ BranchNode
40
+ };
39
41
  //# sourceMappingURL=BranchNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BranchNode.js","sources":["../../../src/nodeSpecs/BranchNode.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\nimport type { BranchNodeOptions } from './BranchNodeOptions'\nimport type { ChildrenRepresentationReducer, UseSiteBranchNodeRepresentationFactory, ValidFactoryName } from './types'\n\nclass BranchNode<\n\tProps extends {} = {},\n\tStaticContext = undefined,\n\tFactoryMethodName extends ValidFactoryName = string,\n\tChildrenRepresentation = any,\n\tReducedChildrenRepresentation = any,\n\tRepresentation = any,\n> {\n\tprivate static defaultOptions: BranchNodeOptions = {\n\t\tchildrenAreOptional: false,\n\t\tchildrenAbsentErrorMessage: 'Component must have children!',\n\t}\n\n\tpublic readonly specification: BranchNode.Specification<\n\t\tProps,\n\t\tStaticContext,\n\t\tFactoryMethodName,\n\t\tChildrenRepresentation,\n\t\tReducedChildrenRepresentation,\n\t\tRepresentation\n\t>\n\n\tpublic readonly options: BranchNodeOptions\n\n\tpublic constructor(\n\t\tfactoryMethodName: FactoryMethodName,\n\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t)\n\tpublic constructor(\n\t\tuseSiteFactory: UseSiteBranchNodeRepresentationFactory<\n\t\t\tProps,\n\t\t\tChildrenRepresentation,\n\t\t\tRepresentation,\n\t\t\tStaticContext\n\t\t>,\n\t\tComponentType?: ElementType<Props>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t)\n\tpublic constructor(\n\t\tfactory:\n\t\t\t| FactoryMethodName\n\t\t\t| UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>,\n\t\tcomponentOrReducer?:\n\t\t\t| ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>\n\t\t\t| ElementType<Props>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t) {\n\t\tif (typeof factory !== 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'declarationSite',\n\t\t\t\tfactoryMethodName: factory,\n\t\t\t\tchildrenRepresentationReducer: componentOrReducer as ChildrenRepresentationReducer<\n\t\t\t\t\tChildrenRepresentation,\n\t\t\t\t\tReducedChildrenRepresentation\n\t\t\t\t>,\n\t\t\t}\n\t\t} else if (typeof factory === 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'useSite',\n\t\t\t\tfactory,\n\t\t\t\tComponentType: componentOrReducer as ElementType<Props>,\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new ChildrenAnalyzerError('Invalid arguments')\n\t\t}\n\t\tthis.options = {\n\t\t\t...BranchNode.defaultOptions,\n\t\t\t...options,\n\t\t}\n\t}\n}\n\nnamespace BranchNode {\n\texport type Specification<\n\t\tProps extends {} = {},\n\t\tStaticContext = any,\n\t\tFactoryMethodName extends ValidFactoryName = string,\n\t\tChildrenRepresentation = any,\n\t\tReducedChildrenRepresentation = any,\n\t\tRepresentation = any,\n\t> =\n\t\t| {\n\t\t\t\ttype: 'declarationSite'\n\t\t\t\tfactoryMethodName: FactoryMethodName\n\t\t\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<\n\t\t\t\t\tChildrenRepresentation,\n\t\t\t\t\tReducedChildrenRepresentation\n\t\t\t\t>\n\t\t }\n\t\t| {\n\t\t\t\ttype: 'useSite'\n\t\t\t\tfactory: UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>\n\t\t\t\tComponentType?: ElementType<Props>\n\t\t }\n}\n\nexport { BranchNode }\n"],"names":[],"mappings":";;;;;;;AAKA,0BAOE;AAAA,EAgCM,YACN,SAGA,oBAGA,SACC;AAlCc;AASA;AA0BX,QAAA,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,QACnB,+BAA+B;AAAA,MAAA;AAAA,IAIhC,WACU,OAAO,YAAY,YAAY;AACzC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA,eAAe;AAAA,MAAA;AAAA,IAChB,OACM;AACA,YAAA,IAAI,sBAAsB,mBAAmB;AAAA,IACpD;AACA,SAAK,UAAU;AAAA,SACX,YAAW;AAAA,SACX;AAAA,IAAA;AAAA,EAEL;AACD;AAvEA;AAQgB,cARhB,YAQgB,kBAAoC;AAAA,EAClD,qBAAqB;AAAA,EACrB,4BAA4B;AAAA;;"}
1
+ {"version":3,"file":"BranchNode.js","sources":["../../../src/nodeSpecs/BranchNode.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\nimport type { BranchNodeOptions } from './BranchNodeOptions'\nimport type { ChildrenRepresentationReducer, UseSiteBranchNodeRepresentationFactory, ValidFactoryName } from './types'\n\nclass BranchNode<\n\tProps extends {} = {},\n\tStaticContext = undefined,\n\tFactoryMethodName extends ValidFactoryName = string,\n\tChildrenRepresentation = any,\n\tReducedChildrenRepresentation = any,\n\tRepresentation = any,\n> {\n\tprivate static defaultOptions: BranchNodeOptions = {\n\t\tchildrenAreOptional: false,\n\t\tchildrenAbsentErrorMessage: 'Component must have children!',\n\t}\n\n\tpublic readonly specification: BranchNode.Specification<\n\t\tProps,\n\t\tStaticContext,\n\t\tFactoryMethodName,\n\t\tChildrenRepresentation,\n\t\tReducedChildrenRepresentation,\n\t\tRepresentation\n\t>\n\n\tpublic readonly options: BranchNodeOptions\n\n\tpublic constructor(\n\t\tfactoryMethodName: FactoryMethodName,\n\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t)\n\tpublic constructor(\n\t\tuseSiteFactory: UseSiteBranchNodeRepresentationFactory<\n\t\t\tProps,\n\t\t\tChildrenRepresentation,\n\t\t\tRepresentation,\n\t\t\tStaticContext\n\t\t>,\n\t\tComponentType?: ElementType<Props>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t)\n\tpublic constructor(\n\t\tfactory:\n\t\t\t| FactoryMethodName\n\t\t\t| UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>,\n\t\tcomponentOrReducer?:\n\t\t\t| ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>\n\t\t\t| ElementType<Props>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t) {\n\t\tif (typeof factory !== 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'declarationSite',\n\t\t\t\tfactoryMethodName: factory,\n\t\t\t\tchildrenRepresentationReducer: componentOrReducer as ChildrenRepresentationReducer<\n\t\t\t\t\tChildrenRepresentation,\n\t\t\t\t\tReducedChildrenRepresentation\n\t\t\t\t>,\n\t\t\t}\n\t\t} else if (typeof factory === 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'useSite',\n\t\t\t\tfactory,\n\t\t\t\tComponentType: componentOrReducer as ElementType<Props>,\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new ChildrenAnalyzerError('Invalid arguments')\n\t\t}\n\t\tthis.options = {\n\t\t\t...BranchNode.defaultOptions,\n\t\t\t...options,\n\t\t}\n\t}\n}\n\nnamespace BranchNode {\n\texport type Specification<\n\t\tProps extends {} = {},\n\t\tStaticContext = any,\n\t\tFactoryMethodName extends ValidFactoryName = string,\n\t\tChildrenRepresentation = any,\n\t\tReducedChildrenRepresentation = any,\n\t\tRepresentation = any,\n\t> =\n\t\t| {\n\t\t\t\ttype: 'declarationSite'\n\t\t\t\tfactoryMethodName: FactoryMethodName\n\t\t\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<\n\t\t\t\t\tChildrenRepresentation,\n\t\t\t\t\tReducedChildrenRepresentation\n\t\t\t\t>\n\t\t }\n\t\t| {\n\t\t\t\ttype: 'useSite'\n\t\t\t\tfactory: UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>\n\t\t\t\tComponentType?: ElementType<Props>\n\t\t }\n}\n\nexport { BranchNode }\n"],"names":[],"mappings":";;;;;;;AAKA,MAAM,cAAN,MAOE;AAAA,EAgCM,YACN,SAGA,oBAGA,SACC;AAlCc;AASA;AA0BX,QAAA,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,QACnB,+BAA+B;AAAA,MAAA;AAAA,IAIhC,WACU,OAAO,YAAY,YAAY;AACzC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA,eAAe;AAAA,MAAA;AAAA,IAChB,OACM;AACA,YAAA,IAAI,sBAAsB,mBAAmB;AAAA,IACpD;AACA,SAAK,UAAU;AAAA,MACd,GAAG,YAAW;AAAA,MACd,GAAG;AAAA,IAAA;AAAA,EAEL;AACD;AAvEA,IAAM,aAAN;AAQC,cARK,YAQU,kBAAoC;AAAA,EAClD,qBAAqB;AAAA,EACrB,4BAA4B;AAAA;"}
@@ -21,5 +21,7 @@ class Leaf {
21
21
  }
22
22
  }
23
23
  }
24
- export { Leaf };
24
+ export {
25
+ Leaf
26
+ };
25
27
  //# sourceMappingURL=Leaf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Leaf.js","sources":["../../../src/nodeSpecs/Leaf.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport type {\n\tConstrainedLeafRepresentationFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './types'\n\nclass Leaf<\n\tProps extends {} = {},\n\tStaticContext = any,\n\tFactoryMethodName extends ValidFactoryName = string,\n\tRepresentation = any,\n> {\n\tpublic readonly specification: Leaf.Specification<FactoryMethodName, Representation, Props, StaticContext>\n\n\tpublic constructor(factoryMethodName: FactoryMethodName)\n\tpublic constructor(staticFactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>)\n\tpublic constructor(\n\t\tstaticFactory: ConstrainedLeafRepresentationFactory<Props, Representation, StaticContext>,\n\t\tComponentType: ElementType<Props>,\n\t)\n\tpublic constructor(\n\t\tfactory: FactoryMethodName | UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>,\n\t\tComponentType?: ElementType<Props>,\n\t) {\n\t\tif (typeof factory === 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'useSite',\n\t\t\t\tComponentType,\n\t\t\t\tfactory,\n\t\t\t}\n\t\t} else {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'declarationSite',\n\t\t\t\tfactoryMethodName: factory,\n\t\t\t}\n\t\t}\n\t}\n}\n\nnamespace Leaf {\n\texport type Specification<\n\t\tFactoryMethodName extends ValidFactoryName,\n\t\tRepresentation,\n\t\tProps extends {},\n\t\tStaticContext,\n\t> =\n\t\t| {\n\t\t\t\ttype: 'declarationSite'\n\t\t\t\tfactoryMethodName: FactoryMethodName\n\t\t }\n\t\t| {\n\t\t\t\ttype: 'useSite'\n\t\t\t\tfactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>\n\t\t\t\tComponentType?: ElementType<Props>\n\t\t }\n}\n\nexport { Leaf }\n"],"names":[],"mappings":";;;;;;AAOA,MAAM,KAKJ;AAAA,EASM,YACN,SACA,eACC;AAXc;AAYX,QAAA,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MAAA;AAAA,IACD,OACM;AACN,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,MAAA;AAAA,IAErB;AAAA,EACD;AACD;;"}
1
+ {"version":3,"file":"Leaf.js","sources":["../../../src/nodeSpecs/Leaf.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport type {\n\tConstrainedLeafRepresentationFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './types'\n\nclass Leaf<\n\tProps extends {} = {},\n\tStaticContext = any,\n\tFactoryMethodName extends ValidFactoryName = string,\n\tRepresentation = any,\n> {\n\tpublic readonly specification: Leaf.Specification<FactoryMethodName, Representation, Props, StaticContext>\n\n\tpublic constructor(factoryMethodName: FactoryMethodName)\n\tpublic constructor(staticFactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>)\n\tpublic constructor(\n\t\tstaticFactory: ConstrainedLeafRepresentationFactory<Props, Representation, StaticContext>,\n\t\tComponentType: ElementType<Props>,\n\t)\n\tpublic constructor(\n\t\tfactory: FactoryMethodName | UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>,\n\t\tComponentType?: ElementType<Props>,\n\t) {\n\t\tif (typeof factory === 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'useSite',\n\t\t\t\tComponentType,\n\t\t\t\tfactory,\n\t\t\t}\n\t\t} else {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'declarationSite',\n\t\t\t\tfactoryMethodName: factory,\n\t\t\t}\n\t\t}\n\t}\n}\n\nnamespace Leaf {\n\texport type Specification<\n\t\tFactoryMethodName extends ValidFactoryName,\n\t\tRepresentation,\n\t\tProps extends {},\n\t\tStaticContext,\n\t> =\n\t\t| {\n\t\t\t\ttype: 'declarationSite'\n\t\t\t\tfactoryMethodName: FactoryMethodName\n\t\t }\n\t\t| {\n\t\t\t\ttype: 'useSite'\n\t\t\t\tfactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>\n\t\t\t\tComponentType?: ElementType<Props>\n\t\t }\n}\n\nexport { Leaf }\n"],"names":[],"mappings":";;;;;;AAOA,MAAM,KAKJ;AAAA,EASM,YACN,SACA,eACC;AAXc;AAYX,QAAA,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MAAA;AAAA,IACD,OACM;AACN,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,MAAA;AAAA,IAErB;AAAA,EACD;AACD;"}
@@ -24,8 +24,12 @@ const _ChildrenAnalyzer = class {
24
24
  }
25
25
  processChildren(children, initialStaticContext) {
26
26
  const processed = this.processNode(children, initialStaticContext, []);
27
- const rawResult = Array.isArray(processed) ? processed : [processed];
28
- return rawResult.filter((item) => item !== void 0);
27
+ const rawResult = Array.isArray(
28
+ processed
29
+ ) ? processed : [processed];
30
+ return rawResult.filter(
31
+ (item) => item !== void 0
32
+ );
29
33
  }
30
34
  processNode(node, staticContext, componentPath) {
31
35
  if (!node || typeof node === "string" || typeof node === "number" || typeof node === "boolean") {
@@ -113,7 +117,7 @@ const _ChildrenAnalyzer = class {
113
117
  break;
114
118
  }
115
119
  default:
116
- return assertNever(specification);
120
+ return assertNever();
117
121
  }
118
122
  }
119
123
  const processedChildren = this.processNode(children, staticContext, componentPath);
@@ -142,7 +146,7 @@ const _ChildrenAnalyzer = class {
142
146
  break;
143
147
  }
144
148
  default:
145
- return assertNever(specification);
149
+ return assertNever();
146
150
  }
147
151
  }
148
152
  if (!this.options.ignoreUnhandledNodes && !(typeof treeNode !== "string" && this.options.staticRenderFactoryName in treeNode)) {
@@ -160,5 +164,7 @@ __publicField(ChildrenAnalyzer, "defaultOptions", {
160
164
  staticContextFactoryName: "getStaticContext",
161
165
  staticRenderFactoryName: "staticRender"
162
166
  });
163
- export { ChildrenAnalyzer };
167
+ export {
168
+ ChildrenAnalyzer
169
+ };
164
170
  //# sourceMappingURL=ChildrenAnalyzer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChildrenAnalyzer.js","sources":["../../src/ChildrenAnalyzer.ts"],"sourcesContent":["import type { ElementType, ReactElement, ReactNode } from 'react'\nimport { assertNever } from './assertNever'\nimport type { BranchNodeList } from './BranchNodeList'\nimport { ChildrenAnalyzerError } from './ChildrenAnalyzerError'\nimport type { ChildrenAnalyzerOptions } from './ChildrenAnalyzerOptions'\nimport { getErrorMessage } from './helpers'\nimport type { LeafList } from './LeafList'\nimport type {\n\tDeclarationSiteNodeRepresentationFactory,\n\tRawNodeRepresentation,\n\tStaticContextFactory,\n\tSyntheticChildrenFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './nodeSpecs'\nimport { wrapError } from './helpers/wrapError'\n\nexport class ChildrenAnalyzer<\n\tAllLeavesRepresentation = any,\n\tAllBranchNodesRepresentation = never,\n\tStaticContext = undefined,\n> {\n\tprivate static defaultOptions: ChildrenAnalyzerOptions = {\n\t\tignoreRenderProps: true,\n\t\trenderPropsErrorMessage: 'Render props (functions as React component children) are not supported.',\n\n\t\tignoreUnhandledNodes: true,\n\t\tunhandledNodeErrorMessage: 'Encountered an unknown child.',\n\n\t\tstaticContextFactoryName: 'getStaticContext',\n\t\tstaticRenderFactoryName: 'staticRender',\n\t}\n\n\tprivate readonly leaves: LeafList<AllLeavesRepresentation, StaticContext>\n\tprivate readonly branchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>\n\tprivate readonly options: ChildrenAnalyzerOptions<StaticContext>\n\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tbranchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tdecider:\n\t\t\t| Partial<ChildrenAnalyzerOptions>\n\t\t\t| BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext> = [],\n\t\toptions: Partial<ChildrenAnalyzerOptions> = {},\n\t) {\n\t\tthis.leaves = leaves\n\n\t\tif (Array.isArray(decider)) {\n\t\t\tthis.branchNodes = decider\n\t\t} else {\n\t\t\tthis.branchNodes = []\n\t\t\toptions = decider\n\t\t}\n\t\tthis.options = { ...ChildrenAnalyzer.defaultOptions, ...options }\n\t}\n\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tinitialStaticContext: StaticContext,\n\t): Array<AllLeavesRepresentation | AllBranchNodesRepresentation> {\n\t\tconst processed = this.processNode(children, initialStaticContext, [])\n\n\t\tconst rawResult: Array<AllLeavesRepresentation | AllBranchNodesRepresentation | undefined> = Array.isArray(\n\t\t\tprocessed,\n\t\t)\n\t\t\t? processed\n\t\t\t: [processed]\n\n\t\treturn rawResult.filter(\n\t\t\t(item): item is AllLeavesRepresentation | AllBranchNodesRepresentation => item !== undefined,\n\t\t)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode | Function,\n\t\tstaticContext: StaticContext,\n\t\tcomponentPath: ReactElement[],\n\t): RawNodeRepresentation<AllLeavesRepresentation, AllBranchNodesRepresentation> {\n\t\tif (!node || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\tfor (const leaf of this.leaves) {\n\t\t\t\tconst specification = leaf.specification\n\t\t\t\tif (specification.type === 'useSite') {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (node === false || node === undefined || node === null) {\n\t\t\t\t// This adds seamless support for conditionals and such.\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tif (!this.options.ignoreUnhandledNodes) {\n\t\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t\t}\n\t\t\treturn undefined\n\t\t}\n\n\t\tif (typeof node === 'function') {\n\t\t\tif (this.options.ignoreRenderProps) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.renderPropsErrorMessage, node, staticContext))\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\tlet mapped: Array<AllLeavesRepresentation | AllBranchNodesRepresentation> = []\n\n\t\t\tfor (const subNode of node) {\n\t\t\t\tconst processed = this.processNode(subNode, staticContext, componentPath)\n\n\t\t\t\tif (processed !== undefined) {\n\t\t\t\t\tif (Array.isArray(processed)) {\n\t\t\t\t\t\tmapped = mapped.concat(processed)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmapped.push(processed)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn mapped\n\t\t}\n\n\t\tlet children: ReactNode = undefined\n\n\t\tif (!('type' in node)) {\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\tchildren = node.props.children\n\n\t\tif (typeof node.type === 'symbol') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\t// if (typeof node.type === 'string') {\n\t\t// \t// Typically a host component\n\t\t// \tif (!this.options.ignoreUnhandledNodes) {\n\t\t// \t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t// \t}\n\t\t// \treturn this.processNode(children, staticContext)\n\t\t// }\n\n\t\t// Component, PureComponent, FunctionComponent\n\n\t\tconst treeNode = node.type as ElementType &\n\t\t\t{\n\t\t\t\t[staticMethod in ValidFactoryName]:\n\t\t\t\t\t| StaticContextFactory<any, StaticContext>\n\t\t\t\t\t| SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\t\t| UnconstrainedLeafRepresentationFactory<any, AllLeavesRepresentation, StaticContext>\n\t\t\t\t\t| DeclarationSiteNodeRepresentationFactory<any, unknown, AllBranchNodesRepresentation, StaticContext>\n\t\t\t}\n\n\t\tcomponentPath = [...componentPath, node]\n\t\tif (typeof treeNode !== 'string') {\n\t\t\tif (this.options.staticContextFactoryName in treeNode) {\n\t\t\t\tconst staticContextFactory = treeNode[this.options.staticContextFactoryName] as StaticContextFactory<\n\t\t\t\t\tany,\n\t\t\t\t\tStaticContext\n\t\t\t\t>\n\t\t\t\ttry {\n\t\t\t\t\tstaticContext = staticContextFactory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticContextFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.options.staticRenderFactoryName in treeNode) {\n\t\t\t\tconst factory = treeNode[this.options.staticRenderFactoryName] as SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\ttry {\n\t\t\t\t\tchildren = factory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticRenderFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (const leaf of this.leaves) {\n\t\t\tconst specification = leaf.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as UnconstrainedLeafRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tconst processedChildren = this.processNode(children, staticContext, componentPath)\n\n\t\tfor (const branchNode of this.branchNodes) {\n\t\t\tconst specification = branchNode.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName, childrenRepresentationReducer } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as DeclarationSiteNodeRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tunknown,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, childrenRepresentationReducer(processedChildren), staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { factory, ComponentType } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn factory(node, processedChildren, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\t!this.options.ignoreUnhandledNodes &&\n\t\t\t!(typeof treeNode !== 'string' && this.options.staticRenderFactoryName in treeNode)\n\t\t) {\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t}\n\n\t\treturn processedChildren\n\t}\n}\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"ChildrenAnalyzer.js","sources":["../../src/ChildrenAnalyzer.ts"],"sourcesContent":["import type { ElementType, ReactElement, ReactNode } from 'react'\nimport { assertNever } from './assertNever'\nimport type { BranchNodeList } from './BranchNodeList'\nimport { ChildrenAnalyzerError } from './ChildrenAnalyzerError'\nimport type { ChildrenAnalyzerOptions } from './ChildrenAnalyzerOptions'\nimport { getErrorMessage } from './helpers'\nimport type { LeafList } from './LeafList'\nimport type {\n\tDeclarationSiteNodeRepresentationFactory,\n\tRawNodeRepresentation,\n\tStaticContextFactory,\n\tSyntheticChildrenFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './nodeSpecs'\nimport { wrapError } from './helpers/wrapError'\n\nexport class ChildrenAnalyzer<\n\tAllLeavesRepresentation = any,\n\tAllBranchNodesRepresentation = never,\n\tStaticContext = undefined,\n> {\n\tprivate static defaultOptions: ChildrenAnalyzerOptions = {\n\t\tignoreRenderProps: true,\n\t\trenderPropsErrorMessage: 'Render props (functions as React component children) are not supported.',\n\n\t\tignoreUnhandledNodes: true,\n\t\tunhandledNodeErrorMessage: 'Encountered an unknown child.',\n\n\t\tstaticContextFactoryName: 'getStaticContext',\n\t\tstaticRenderFactoryName: 'staticRender',\n\t}\n\n\tprivate readonly leaves: LeafList<AllLeavesRepresentation, StaticContext>\n\tprivate readonly branchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>\n\tprivate readonly options: ChildrenAnalyzerOptions<StaticContext>\n\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tbranchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tdecider:\n\t\t\t| Partial<ChildrenAnalyzerOptions>\n\t\t\t| BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext> = [],\n\t\toptions: Partial<ChildrenAnalyzerOptions> = {},\n\t) {\n\t\tthis.leaves = leaves\n\n\t\tif (Array.isArray(decider)) {\n\t\t\tthis.branchNodes = decider\n\t\t} else {\n\t\t\tthis.branchNodes = []\n\t\t\toptions = decider\n\t\t}\n\t\tthis.options = { ...ChildrenAnalyzer.defaultOptions, ...options }\n\t}\n\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tinitialStaticContext: StaticContext,\n\t): Array<AllLeavesRepresentation | AllBranchNodesRepresentation> {\n\t\tconst processed = this.processNode(children, initialStaticContext, [])\n\n\t\tconst rawResult: Array<AllLeavesRepresentation | AllBranchNodesRepresentation | undefined> = Array.isArray(\n\t\t\tprocessed,\n\t\t)\n\t\t\t? processed\n\t\t\t: [processed]\n\n\t\treturn rawResult.filter(\n\t\t\t(item): item is AllLeavesRepresentation | AllBranchNodesRepresentation => item !== undefined,\n\t\t)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode,\n\t\tstaticContext: StaticContext,\n\t\tcomponentPath: ReactElement[],\n\t): RawNodeRepresentation<AllLeavesRepresentation, AllBranchNodesRepresentation> {\n\t\tif (!node || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\tfor (const leaf of this.leaves) {\n\t\t\t\tconst specification = leaf.specification\n\t\t\t\tif (specification.type === 'useSite') {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (node === false || node === undefined || node === null) {\n\t\t\t\t// This adds seamless support for conditionals and such.\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tif (!this.options.ignoreUnhandledNodes) {\n\t\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t\t}\n\t\t\treturn undefined\n\t\t}\n\n\t\tif (typeof node === 'function') {\n\t\t\tif (this.options.ignoreRenderProps) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.renderPropsErrorMessage, node, staticContext))\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\tlet mapped: Array<AllLeavesRepresentation | AllBranchNodesRepresentation> = []\n\n\t\t\tfor (const subNode of node) {\n\t\t\t\tconst processed = this.processNode(subNode, staticContext, componentPath)\n\n\t\t\t\tif (processed !== undefined) {\n\t\t\t\t\tif (Array.isArray(processed)) {\n\t\t\t\t\t\tmapped = mapped.concat(processed)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmapped.push(processed)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn mapped\n\t\t}\n\n\t\tlet children: ReactNode = undefined\n\n\t\tif (!('type' in node)) {\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\tchildren = node.props.children\n\n\t\tif (typeof node.type === 'symbol') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\t// if (typeof node.type === 'string') {\n\t\t// \t// Typically a host component\n\t\t// \tif (!this.options.ignoreUnhandledNodes) {\n\t\t// \t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t// \t}\n\t\t// \treturn this.processNode(children, staticContext)\n\t\t// }\n\n\t\t// Component, PureComponent, FunctionComponent\n\n\t\tconst treeNode = node.type as ElementType &\n\t\t\t{\n\t\t\t\t[staticMethod in ValidFactoryName]:\n\t\t\t\t\t| StaticContextFactory<any, StaticContext>\n\t\t\t\t\t| SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\t\t| UnconstrainedLeafRepresentationFactory<any, AllLeavesRepresentation, StaticContext>\n\t\t\t\t\t| DeclarationSiteNodeRepresentationFactory<any, unknown, AllBranchNodesRepresentation, StaticContext>\n\t\t\t}\n\n\t\tcomponentPath = [...componentPath, node]\n\t\tif (typeof treeNode !== 'string') {\n\t\t\tif (this.options.staticContextFactoryName in treeNode) {\n\t\t\t\tconst staticContextFactory = treeNode[this.options.staticContextFactoryName] as StaticContextFactory<\n\t\t\t\t\tany,\n\t\t\t\t\tStaticContext\n\t\t\t\t>\n\t\t\t\ttry {\n\t\t\t\t\tstaticContext = staticContextFactory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticContextFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.options.staticRenderFactoryName in treeNode) {\n\t\t\t\tconst factory = treeNode[this.options.staticRenderFactoryName] as SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\ttry {\n\t\t\t\t\tchildren = factory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticRenderFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (const leaf of this.leaves) {\n\t\t\tconst specification = leaf.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as UnconstrainedLeafRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tconst processedChildren = this.processNode(children, staticContext, componentPath)\n\n\t\tfor (const branchNode of this.branchNodes) {\n\t\t\tconst specification = branchNode.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName, childrenRepresentationReducer } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as DeclarationSiteNodeRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tunknown,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, childrenRepresentationReducer(processedChildren), staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { factory, ComponentType } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn factory(node, processedChildren, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\t!this.options.ignoreUnhandledNodes &&\n\t\t\t!(typeof treeNode !== 'string' && this.options.staticRenderFactoryName in treeNode)\n\t\t) {\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t}\n\n\t\treturn processedChildren\n\t}\n}\n"],"names":[],"mappings":"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"}
@@ -6,14 +6,12 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  class ChildrenAnalyzerError extends Error {
8
8
  constructor(message, options) {
9
- super(message);
10
- __publicField(this, "cause");
9
+ super(message, options);
11
10
  __publicField(this, "details");
12
11
  this.details = options?.details;
13
- if (typeof options === "object" && "cause" in options) {
14
- this.cause = options.cause;
15
- }
16
12
  }
17
13
  }
18
- export { ChildrenAnalyzerError };
14
+ export {
15
+ ChildrenAnalyzerError
16
+ };
19
17
  //# sourceMappingURL=ChildrenAnalyzerError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChildrenAnalyzerError.js","sources":["../../src/ChildrenAnalyzerError.ts"],"sourcesContent":["export class ChildrenAnalyzerError extends Error {\n\tpublic cause?: unknown\n\tpublic details?: string\n\n\tconstructor(message: string, options?: { cause: unknown, details?: string }) {\n\t\tsuper(message)\n\t\tthis.details = options?.details\n\t\tif ((typeof options === 'object' && 'cause' in options)) {\n\t\t\tthis.cause = options.cause\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAAO,MAAM,8BAA8B,MAAM;AAAA,EAIhD,YAAY,SAAiB,SAAgD;AAC5E,UAAM,OAAO;AAJP;AACA;AAIN,SAAK,UAAU,SAAS;AACxB,QAAK,OAAO,YAAY,YAAY,WAAW,SAAU;AACxD,WAAK,QAAQ,QAAQ;AAAA,IACtB;AAAA,EACD;AACD;;"}
1
+ {"version":3,"file":"ChildrenAnalyzerError.js","sources":["../../src/ChildrenAnalyzerError.ts"],"sourcesContent":["export class ChildrenAnalyzerError extends Error {\n\tpublic details?: string\n\n\tconstructor(message: string, options?: { cause: Error, details?: string }) {\n\t\tsuper(message, options)\n\t\tthis.details = options?.details\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAAO,MAAM,8BAA8B,MAAM;AAAA,EAGhD,YAAY,SAAiB,SAA8C;AAC1E,UAAM,SAAS,OAAO;AAHhB;AAIN,SAAK,UAAU,SAAS;AAAA,EACzB;AACD;"}
@@ -1,5 +1,7 @@
1
1
  const assertNever = (_) => {
2
2
  throw new Error();
3
3
  };
4
- export { assertNever };
4
+ export {
5
+ assertNever
6
+ };
5
7
  //# sourceMappingURL=assertNever.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assertNever.js","sources":["../../src/assertNever.ts"],"sourcesContent":["export const assertNever = (_: never): never => {\n\tthrow new Error()\n}\n"],"names":[],"mappings":"AAAa,MAAA,cAAc,CAAC,MAAoB;AAC/C,QAAM,IAAI,MAAM;AACjB;;"}
1
+ {"version":3,"file":"assertNever.js","sources":["../../src/assertNever.ts"],"sourcesContent":["export const assertNever = (_: never): never => {\n\tthrow new Error()\n}\n"],"names":[],"mappings":"AAAa,MAAA,cAAc,CAAC,MAAoB;AAC/C,QAAM,IAAI,MAAM;AACjB;"}
@@ -1,5 +1,7 @@
1
1
  const getErrorMessage = (factory, node, staticContext) => {
2
2
  return typeof factory === "string" ? factory : factory(node, staticContext);
3
3
  };
4
- export { getErrorMessage };
4
+ export {
5
+ getErrorMessage
6
+ };
5
7
  //# sourceMappingURL=getErrorMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getErrorMessage.js","sources":["../../../src/helpers/getErrorMessage.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { ErrorMessageFactory } from '../ErrorMessageFactory'\n\nexport const getErrorMessage = <StaticContext>(\n\tfactory: ErrorMessageFactory<StaticContext>,\n\tnode: ReactNode,\n\tstaticContext: StaticContext,\n): string => {\n\treturn typeof factory === 'string' ? factory : factory(node, staticContext)\n}\n"],"names":[],"mappings":"AAGO,MAAM,kBAAkB,CAC9B,SACA,MACA,kBACY;AACZ,SAAO,OAAO,YAAY,WAAW,UAAU,QAAQ,MAAM,aAAa;AAC3E;;"}
1
+ {"version":3,"file":"getErrorMessage.js","sources":["../../../src/helpers/getErrorMessage.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { ErrorMessageFactory } from '../ErrorMessageFactory'\n\nexport const getErrorMessage = <StaticContext>(\n\tfactory: ErrorMessageFactory<StaticContext>,\n\tnode: ReactNode,\n\tstaticContext: StaticContext,\n): string => {\n\treturn typeof factory === 'string' ? factory : factory(node, staticContext)\n}\n"],"names":[],"mappings":"AAGO,MAAM,kBAAkB,CAC9B,SACA,MACA,kBACY;AACZ,SAAO,OAAO,YAAY,WAAW,UAAU,QAAQ,MAAM,aAAa;AAC3E;"}
@@ -13,15 +13,18 @@ const wrapError = (e, currentComponentName, methodName, path) => {
13
13
  continue;
14
14
  }
15
15
  try {
16
- const valuePrinted = JSON.stringify(value, (key2, value2) => {
17
- if (typeof value2 === "function") {
18
- return "(function)";
16
+ const valuePrinted = JSON.stringify(
17
+ value,
18
+ (key2, value2) => {
19
+ if (typeof value2 === "function") {
20
+ return "(function)";
21
+ }
22
+ if (React.isValidElement(value2)) {
23
+ return "(react element)";
24
+ }
25
+ return value2;
19
26
  }
20
- if (React.isValidElement(value2)) {
21
- return "(react element)";
22
- }
23
- return value2;
24
- });
27
+ );
25
28
  result += ` ${key}=${valuePrinted}`;
26
29
  } catch {
27
30
  result += ` ${key}=(failed to print a value)`;
@@ -42,5 +45,7 @@ ${e.message || "unknown error"}`;
42
45
  ${componentPath.join("\n")}`
43
46
  });
44
47
  };
45
- export { wrapError };
48
+ export {
49
+ wrapError
50
+ };
46
51
  //# sourceMappingURL=wrapError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wrapError.js","sources":["../../../src/helpers/wrapError.ts"],"sourcesContent":["import React, { ReactElement } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\n\nexport const wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {\n\tif (!(e instanceof Error)) {\n\t\tthrow e\n\t}\n\n\tconst componentPath = path.map((it, index) => {\n\t\tconst { children, ...props } = it.props\n\t\tconst printProps = (props: any) => {\n\t\t\tlet result = ''\n\t\t\tfor (const [key, value] of Object.entries(props)) {\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst valuePrinted = JSON.stringify(value, (key, value) => {\n\t\t\t\t\t\t\tif (typeof value === 'function') {\n\t\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t},\n\t\t\t\t\t)\n\t\t\t\t\tresult += ` ${key}=${valuePrinted}`\n\t\t\t\t} catch {\n\t\t\t\t\tresult += ` ${key}=(failed to print a value)`\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result\n\t\t}\n\t\tconst componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null\n\t\tconst propsPrinted = printProps(props)\n\t\tconst indent = ' '.repeat(index)\n\t\treturn `${indent}<${componentName ?? '???'}${propsPrinted}>`\n\t})\n\tconst errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\\n${e.message || 'unknown error'}`\n\n\tthrow new ChildrenAnalyzerError(errorMessage, {\n\t\tcause: e,\n\t\tdetails: `Component path:\\n${componentPath.join('\\n')}`,\n\t})\n}\n"],"names":[],"mappings":";;AAGO,MAAM,YAAY,CAAC,GAAY,sBAA8B,YAAoB,SAAgC;AACnH,MAAA,eAAe,QAAQ;AACpB,UAAA;AAAA,EACP;AAEA,QAAM,gBAAgB,KAAK,IAAI,CAAC,IAAI,UAAU;AACvC,UAAA,EAAE,aAAa,UAAU,GAAG;AAC5B,UAAA,aAAa,CAAC,WAAe;AAClC,UAAI,SAAS;AACb,iBAAW,CAAC,KAAK,UAAU,OAAO,QAAQ,MAAK,GAAG;AACjD,YAAI,UAAU,QAAW;AACxB;AAAA,QACD;AACI,YAAA;AACH,gBAAM,eAAe,KAAK,UAAU,OAAO,CAAC,MAAK,WAAU;AACrD,gBAAA,OAAO,WAAU,YAAY;AACzB,qBAAA;AAAA,YACR;AACI,gBAAA,MAAM,eAAe,MAAK,GAAG;AACzB,qBAAA;AAAA,YACR;AACO,mBAAA;AAAA,UAAA,CAET;AACA,oBAAU,IAAI,OAAO;AAAA,QAAA,QACpB;AACD,oBAAU,IAAI;AAAA,QACf;AAAA,MACD;AACO,aAAA;AAAA,IAAA;AAEF,UAAA,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AACzG,UAAA,eAAe,WAAW,KAAK;AAC/B,UAAA,SAAS,KAAK,OAAO,KAAK;AACzB,WAAA,GAAG,UAAU,iBAAiB,QAAQ;AAAA,EAAA,CAC7C;AACK,QAAA,eAAe,iCAAiC,2BAA2B;AAAA,EAAgB,EAAE,WAAW;AAExG,QAAA,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI;AAAA,EAAA,CACpD;AACF;;"}
1
+ {"version":3,"file":"wrapError.js","sources":["../../../src/helpers/wrapError.ts"],"sourcesContent":["import React, { ReactElement } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\n\nexport const wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {\n\tif (!(e instanceof Error)) {\n\t\tthrow e\n\t}\n\n\tconst componentPath = path.map((it, index) => {\n\t\tconst { children, ...props } = it.props\n\t\tconst printProps = (props: any) => {\n\t\t\tlet result = ''\n\t\t\tfor (const [key, value] of Object.entries(props)) {\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst valuePrinted = JSON.stringify(value, (key, value) => {\n\t\t\t\t\t\t\tif (typeof value === 'function') {\n\t\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t},\n\t\t\t\t\t)\n\t\t\t\t\tresult += ` ${key}=${valuePrinted}`\n\t\t\t\t} catch {\n\t\t\t\t\tresult += ` ${key}=(failed to print a value)`\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result\n\t\t}\n\t\tconst componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null\n\t\tconst propsPrinted = printProps(props)\n\t\tconst indent = ' '.repeat(index)\n\t\treturn `${indent}<${componentName ?? '???'}${propsPrinted}>`\n\t})\n\tconst errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\\n${e.message || 'unknown error'}`\n\n\tthrow new ChildrenAnalyzerError(errorMessage, {\n\t\tcause: e,\n\t\tdetails: `Component path:\\n${componentPath.join('\\n')}`,\n\t})\n}\n"],"names":["props","key","value"],"mappings":";;AAGO,MAAM,YAAY,CAAC,GAAY,sBAA8B,YAAoB,SAAgC;AACnH,MAAA,EAAE,aAAa,QAAQ;AACpB,UAAA;AAAA,EACP;AAEA,QAAM,gBAAgB,KAAK,IAAI,CAAC,IAAI,UAAU;AAC7C,UAAM,EAAE,aAAa,MAAM,IAAI,GAAG;AAC5B,UAAA,aAAa,CAACA,WAAe;AAClC,UAAI,SAAS;AACb,iBAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQA,MAAK,GAAG;AACjD,YAAI,UAAU,QAAW;AACxB;AAAA,QACD;AACI,YAAA;AACH,gBAAM,eAAe,KAAK;AAAA,YAAU;AAAA,YAAO,CAACC,MAAKC,WAAU;AACrD,kBAAA,OAAOA,WAAU,YAAY;AACzB,uBAAA;AAAA,cACR;AACI,kBAAA,MAAM,eAAeA,MAAK,GAAG;AACzB,uBAAA;AAAA,cACR;AACOA,qBAAAA;AAAAA,YACR;AAAA,UAAA;AAED,oBAAU,IAAI,OAAO;AAAA,QAAA,QACpB;AACD,oBAAU,IAAI;AAAA,QACf;AAAA,MACD;AACO,aAAA;AAAA,IAAA;AAEF,UAAA,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AACzG,UAAA,eAAe,WAAW,KAAK;AAC/B,UAAA,SAAS,KAAK,OAAO,KAAK;AACzB,WAAA,GAAG,UAAU,iBAAiB,QAAQ;AAAA,EAAA,CAC7C;AACK,QAAA,eAAe,iCAAiC,2BAA2B;AAAA,EAAgB,EAAE,WAAW;AAExG,QAAA,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI;AAAA,EAAA,CACpD;AACF;"}
@@ -1,5 +1,11 @@
1
- export { ChildrenAnalyzer } from "./ChildrenAnalyzer.js";
2
- export { ChildrenAnalyzerError } from "./ChildrenAnalyzerError.js";
3
- export { BranchNode } from "./nodeSpecs/BranchNode.js";
4
- export { Leaf } from "./nodeSpecs/Leaf.js";
1
+ import { ChildrenAnalyzer } from "./ChildrenAnalyzer.js";
2
+ import { ChildrenAnalyzerError } from "./ChildrenAnalyzerError.js";
3
+ import { BranchNode } from "./nodeSpecs/BranchNode.js";
4
+ import { Leaf } from "./nodeSpecs/Leaf.js";
5
+ export {
6
+ BranchNode,
7
+ ChildrenAnalyzer,
8
+ ChildrenAnalyzerError,
9
+ Leaf
10
+ };
5
11
  //# sourceMappingURL=index.js.map
@@ -35,5 +35,7 @@ __publicField(BranchNode, "defaultOptions", {
35
35
  childrenAreOptional: false,
36
36
  childrenAbsentErrorMessage: "Component must have children!"
37
37
  });
38
- export { BranchNode };
38
+ export {
39
+ BranchNode
40
+ };
39
41
  //# sourceMappingURL=BranchNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BranchNode.js","sources":["../../../src/nodeSpecs/BranchNode.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\nimport type { BranchNodeOptions } from './BranchNodeOptions'\nimport type { ChildrenRepresentationReducer, UseSiteBranchNodeRepresentationFactory, ValidFactoryName } from './types'\n\nclass BranchNode<\n\tProps extends {} = {},\n\tStaticContext = undefined,\n\tFactoryMethodName extends ValidFactoryName = string,\n\tChildrenRepresentation = any,\n\tReducedChildrenRepresentation = any,\n\tRepresentation = any,\n> {\n\tprivate static defaultOptions: BranchNodeOptions = {\n\t\tchildrenAreOptional: false,\n\t\tchildrenAbsentErrorMessage: 'Component must have children!',\n\t}\n\n\tpublic readonly specification: BranchNode.Specification<\n\t\tProps,\n\t\tStaticContext,\n\t\tFactoryMethodName,\n\t\tChildrenRepresentation,\n\t\tReducedChildrenRepresentation,\n\t\tRepresentation\n\t>\n\n\tpublic readonly options: BranchNodeOptions\n\n\tpublic constructor(\n\t\tfactoryMethodName: FactoryMethodName,\n\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t)\n\tpublic constructor(\n\t\tuseSiteFactory: UseSiteBranchNodeRepresentationFactory<\n\t\t\tProps,\n\t\t\tChildrenRepresentation,\n\t\t\tRepresentation,\n\t\t\tStaticContext\n\t\t>,\n\t\tComponentType?: ElementType<Props>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t)\n\tpublic constructor(\n\t\tfactory:\n\t\t\t| FactoryMethodName\n\t\t\t| UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>,\n\t\tcomponentOrReducer?:\n\t\t\t| ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>\n\t\t\t| ElementType<Props>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t) {\n\t\tif (typeof factory !== 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'declarationSite',\n\t\t\t\tfactoryMethodName: factory,\n\t\t\t\tchildrenRepresentationReducer: componentOrReducer as ChildrenRepresentationReducer<\n\t\t\t\t\tChildrenRepresentation,\n\t\t\t\t\tReducedChildrenRepresentation\n\t\t\t\t>,\n\t\t\t}\n\t\t} else if (typeof factory === 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'useSite',\n\t\t\t\tfactory,\n\t\t\t\tComponentType: componentOrReducer as ElementType<Props>,\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new ChildrenAnalyzerError('Invalid arguments')\n\t\t}\n\t\tthis.options = {\n\t\t\t...BranchNode.defaultOptions,\n\t\t\t...options,\n\t\t}\n\t}\n}\n\nnamespace BranchNode {\n\texport type Specification<\n\t\tProps extends {} = {},\n\t\tStaticContext = any,\n\t\tFactoryMethodName extends ValidFactoryName = string,\n\t\tChildrenRepresentation = any,\n\t\tReducedChildrenRepresentation = any,\n\t\tRepresentation = any,\n\t> =\n\t\t| {\n\t\t\t\ttype: 'declarationSite'\n\t\t\t\tfactoryMethodName: FactoryMethodName\n\t\t\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<\n\t\t\t\t\tChildrenRepresentation,\n\t\t\t\t\tReducedChildrenRepresentation\n\t\t\t\t>\n\t\t }\n\t\t| {\n\t\t\t\ttype: 'useSite'\n\t\t\t\tfactory: UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>\n\t\t\t\tComponentType?: ElementType<Props>\n\t\t }\n}\n\nexport { BranchNode }\n"],"names":[],"mappings":";;;;;;;AAKA,0BAOE;AAAA,EAgCM,YACN,SAGA,oBAGA,SACC;AAlCc;AASA;AA0BX,QAAA,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,QACnB,+BAA+B;AAAA,MAAA;AAAA,IAIhC,WACU,OAAO,YAAY,YAAY;AACzC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA,eAAe;AAAA,MAAA;AAAA,IAChB,OACM;AACA,YAAA,IAAI,sBAAsB,mBAAmB;AAAA,IACpD;AACA,SAAK,UAAU;AAAA,SACX,YAAW;AAAA,SACX;AAAA,IAAA;AAAA,EAEL;AACD;AAvEA;AAQgB,cARhB,YAQgB,kBAAoC;AAAA,EAClD,qBAAqB;AAAA,EACrB,4BAA4B;AAAA;;"}
1
+ {"version":3,"file":"BranchNode.js","sources":["../../../src/nodeSpecs/BranchNode.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\nimport type { BranchNodeOptions } from './BranchNodeOptions'\nimport type { ChildrenRepresentationReducer, UseSiteBranchNodeRepresentationFactory, ValidFactoryName } from './types'\n\nclass BranchNode<\n\tProps extends {} = {},\n\tStaticContext = undefined,\n\tFactoryMethodName extends ValidFactoryName = string,\n\tChildrenRepresentation = any,\n\tReducedChildrenRepresentation = any,\n\tRepresentation = any,\n> {\n\tprivate static defaultOptions: BranchNodeOptions = {\n\t\tchildrenAreOptional: false,\n\t\tchildrenAbsentErrorMessage: 'Component must have children!',\n\t}\n\n\tpublic readonly specification: BranchNode.Specification<\n\t\tProps,\n\t\tStaticContext,\n\t\tFactoryMethodName,\n\t\tChildrenRepresentation,\n\t\tReducedChildrenRepresentation,\n\t\tRepresentation\n\t>\n\n\tpublic readonly options: BranchNodeOptions\n\n\tpublic constructor(\n\t\tfactoryMethodName: FactoryMethodName,\n\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t)\n\tpublic constructor(\n\t\tuseSiteFactory: UseSiteBranchNodeRepresentationFactory<\n\t\t\tProps,\n\t\t\tChildrenRepresentation,\n\t\t\tRepresentation,\n\t\t\tStaticContext\n\t\t>,\n\t\tComponentType?: ElementType<Props>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t)\n\tpublic constructor(\n\t\tfactory:\n\t\t\t| FactoryMethodName\n\t\t\t| UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>,\n\t\tcomponentOrReducer?:\n\t\t\t| ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>\n\t\t\t| ElementType<Props>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t) {\n\t\tif (typeof factory !== 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'declarationSite',\n\t\t\t\tfactoryMethodName: factory,\n\t\t\t\tchildrenRepresentationReducer: componentOrReducer as ChildrenRepresentationReducer<\n\t\t\t\t\tChildrenRepresentation,\n\t\t\t\t\tReducedChildrenRepresentation\n\t\t\t\t>,\n\t\t\t}\n\t\t} else if (typeof factory === 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'useSite',\n\t\t\t\tfactory,\n\t\t\t\tComponentType: componentOrReducer as ElementType<Props>,\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new ChildrenAnalyzerError('Invalid arguments')\n\t\t}\n\t\tthis.options = {\n\t\t\t...BranchNode.defaultOptions,\n\t\t\t...options,\n\t\t}\n\t}\n}\n\nnamespace BranchNode {\n\texport type Specification<\n\t\tProps extends {} = {},\n\t\tStaticContext = any,\n\t\tFactoryMethodName extends ValidFactoryName = string,\n\t\tChildrenRepresentation = any,\n\t\tReducedChildrenRepresentation = any,\n\t\tRepresentation = any,\n\t> =\n\t\t| {\n\t\t\t\ttype: 'declarationSite'\n\t\t\t\tfactoryMethodName: FactoryMethodName\n\t\t\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<\n\t\t\t\t\tChildrenRepresentation,\n\t\t\t\t\tReducedChildrenRepresentation\n\t\t\t\t>\n\t\t }\n\t\t| {\n\t\t\t\ttype: 'useSite'\n\t\t\t\tfactory: UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>\n\t\t\t\tComponentType?: ElementType<Props>\n\t\t }\n}\n\nexport { BranchNode }\n"],"names":[],"mappings":";;;;;;;AAKA,MAAM,cAAN,MAOE;AAAA,EAgCM,YACN,SAGA,oBAGA,SACC;AAlCc;AASA;AA0BX,QAAA,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,QACnB,+BAA+B;AAAA,MAAA;AAAA,IAIhC,WACU,OAAO,YAAY,YAAY;AACzC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA,eAAe;AAAA,MAAA;AAAA,IAChB,OACM;AACA,YAAA,IAAI,sBAAsB,mBAAmB;AAAA,IACpD;AACA,SAAK,UAAU;AAAA,MACd,GAAG,YAAW;AAAA,MACd,GAAG;AAAA,IAAA;AAAA,EAEL;AACD;AAvEA,IAAM,aAAN;AAQC,cARK,YAQU,kBAAoC;AAAA,EAClD,qBAAqB;AAAA,EACrB,4BAA4B;AAAA;"}
@@ -21,5 +21,7 @@ class Leaf {
21
21
  }
22
22
  }
23
23
  }
24
- export { Leaf };
24
+ export {
25
+ Leaf
26
+ };
25
27
  //# sourceMappingURL=Leaf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Leaf.js","sources":["../../../src/nodeSpecs/Leaf.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport type {\n\tConstrainedLeafRepresentationFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './types'\n\nclass Leaf<\n\tProps extends {} = {},\n\tStaticContext = any,\n\tFactoryMethodName extends ValidFactoryName = string,\n\tRepresentation = any,\n> {\n\tpublic readonly specification: Leaf.Specification<FactoryMethodName, Representation, Props, StaticContext>\n\n\tpublic constructor(factoryMethodName: FactoryMethodName)\n\tpublic constructor(staticFactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>)\n\tpublic constructor(\n\t\tstaticFactory: ConstrainedLeafRepresentationFactory<Props, Representation, StaticContext>,\n\t\tComponentType: ElementType<Props>,\n\t)\n\tpublic constructor(\n\t\tfactory: FactoryMethodName | UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>,\n\t\tComponentType?: ElementType<Props>,\n\t) {\n\t\tif (typeof factory === 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'useSite',\n\t\t\t\tComponentType,\n\t\t\t\tfactory,\n\t\t\t}\n\t\t} else {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'declarationSite',\n\t\t\t\tfactoryMethodName: factory,\n\t\t\t}\n\t\t}\n\t}\n}\n\nnamespace Leaf {\n\texport type Specification<\n\t\tFactoryMethodName extends ValidFactoryName,\n\t\tRepresentation,\n\t\tProps extends {},\n\t\tStaticContext,\n\t> =\n\t\t| {\n\t\t\t\ttype: 'declarationSite'\n\t\t\t\tfactoryMethodName: FactoryMethodName\n\t\t }\n\t\t| {\n\t\t\t\ttype: 'useSite'\n\t\t\t\tfactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>\n\t\t\t\tComponentType?: ElementType<Props>\n\t\t }\n}\n\nexport { Leaf }\n"],"names":[],"mappings":";;;;;;AAOA,MAAM,KAKJ;AAAA,EASM,YACN,SACA,eACC;AAXc;AAYX,QAAA,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MAAA;AAAA,IACD,OACM;AACN,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,MAAA;AAAA,IAErB;AAAA,EACD;AACD;;"}
1
+ {"version":3,"file":"Leaf.js","sources":["../../../src/nodeSpecs/Leaf.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport type {\n\tConstrainedLeafRepresentationFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './types'\n\nclass Leaf<\n\tProps extends {} = {},\n\tStaticContext = any,\n\tFactoryMethodName extends ValidFactoryName = string,\n\tRepresentation = any,\n> {\n\tpublic readonly specification: Leaf.Specification<FactoryMethodName, Representation, Props, StaticContext>\n\n\tpublic constructor(factoryMethodName: FactoryMethodName)\n\tpublic constructor(staticFactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>)\n\tpublic constructor(\n\t\tstaticFactory: ConstrainedLeafRepresentationFactory<Props, Representation, StaticContext>,\n\t\tComponentType: ElementType<Props>,\n\t)\n\tpublic constructor(\n\t\tfactory: FactoryMethodName | UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>,\n\t\tComponentType?: ElementType<Props>,\n\t) {\n\t\tif (typeof factory === 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'useSite',\n\t\t\t\tComponentType,\n\t\t\t\tfactory,\n\t\t\t}\n\t\t} else {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'declarationSite',\n\t\t\t\tfactoryMethodName: factory,\n\t\t\t}\n\t\t}\n\t}\n}\n\nnamespace Leaf {\n\texport type Specification<\n\t\tFactoryMethodName extends ValidFactoryName,\n\t\tRepresentation,\n\t\tProps extends {},\n\t\tStaticContext,\n\t> =\n\t\t| {\n\t\t\t\ttype: 'declarationSite'\n\t\t\t\tfactoryMethodName: FactoryMethodName\n\t\t }\n\t\t| {\n\t\t\t\ttype: 'useSite'\n\t\t\t\tfactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>\n\t\t\t\tComponentType?: ElementType<Props>\n\t\t }\n}\n\nexport { Leaf }\n"],"names":[],"mappings":";;;;;;AAOA,MAAM,KAKJ;AAAA,EASM,YACN,SACA,eACC;AAXc;AAYX,QAAA,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MAAA;AAAA,IACD,OACM;AACN,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,MAAA;AAAA,IAErB;AAAA,EACD;AACD;"}
@@ -1,8 +1,7 @@
1
1
  export declare class ChildrenAnalyzerError extends Error {
2
- cause?: unknown;
3
2
  details?: string;
4
3
  constructor(message: string, options?: {
5
- cause: unknown;
4
+ cause: Error;
6
5
  details?: string;
7
6
  });
8
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ChildrenAnalyzerError.d.ts","sourceRoot":"","sources":["../../src/ChildrenAnalyzerError.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAsB,SAAQ,KAAK;IACxC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;gBAEX,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;CAO3E"}
1
+ {"version":3,"file":"ChildrenAnalyzerError.d.ts","sourceRoot":"","sources":["../../src/ChildrenAnalyzerError.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAsB,SAAQ,KAAK;IACxC,OAAO,CAAC,EAAE,MAAM,CAAA;gBAEX,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;CAIzE"}
@@ -1,3 +1,3 @@
1
1
  import type { ReactElement, ReactText } from 'react';
2
- export declare type UnconstrainedLeafRepresentationFactory<Props extends {}, Representation, StaticContext> = (node: ReactText | ReactElement<Props, any> | boolean | null | undefined | {}, staticContext: StaticContext) => Representation;
2
+ export declare type UnconstrainedLeafRepresentationFactory<Props extends {}, Representation, StaticContext> = (node: ReactText | ReactElement<Props, any> | boolean | null | undefined, staticContext: StaticContext) => Representation;
3
3
  //# sourceMappingURL=UnconstrainedLeafRepresentationFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnconstrainedLeafRepresentationFactory.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEpD,oBAAY,sCAAsC,CAAC,KAAK,SAAS,EAAE,EAAE,cAAc,EAAE,aAAa,IAAI,CACrG,IAAI,EAAE,SAAS,GAAG,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,EAAE,EAC5E,aAAa,EAAE,aAAa,KACxB,cAAc,CAAA"}
1
+ {"version":3,"file":"UnconstrainedLeafRepresentationFactory.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEpD,oBAAY,sCAAsC,CAAC,KAAK,SAAS,EAAE,EAAE,cAAc,EAAE,aAAa,IAAI,CACrG,IAAI,EAAE,SAAS,GAAG,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EACvE,aAAa,EAAE,aAAa,KACxB,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/.pnpm/@types+react@17.0.30/node_modules/@types/react/global.d.ts","../../../../node_modules/.pnpm/csstype@3.0.11/node_modules/csstype/index.d.ts","../../../../node_modules/.pnpm/@types+prop-types@15.7.4/node_modules/@types/prop-types/index.d.ts","../../../../node_modules/.pnpm/@types+scheduler@0.16.2/node_modules/@types/scheduler/tracing.d.ts","../../../../node_modules/.pnpm/@types+react@17.0.30/node_modules/@types/react/index.d.ts","../../../../node_modules/.pnpm/@types+react@17.0.30/node_modules/@types/react/jsx-runtime.d.ts","../../src/nodeSpecs/types/ChildrenRepresentationReducer.ts","../../src/nodeSpecs/types/ConstrainedLeafRepresentationFactory.ts","../../src/nodeSpecs/types/DeclarationSiteNodeRepresentationFactory.ts","../../src/nodeSpecs/types/RepresentationFactorySite.ts","../../src/nodeSpecs/types/StaticContextFactory.ts","../../src/nodeSpecs/types/SyntheticChildrenFactory.ts","../../src/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.ts","../../src/nodeSpecs/types/UseSiteBranchNodeRepresentationFactory.ts","../../src/nodeSpecs/types/ValidFactoryName.ts","../../src/nodeSpecs/types/index.ts","../../src/ChildrenAnalyzerError.ts","../../src/nodeSpecs/BranchNodeOptions.ts","../../src/nodeSpecs/BranchNode.ts","../../src/nodeSpecs/Leaf.ts","../../src/nodeSpecs/RawNodeRepresentation.ts","../../src/nodeSpecs/index.ts","../../src/BranchNodeList.ts","../../src/assertNever.ts","../../src/ErrorMessageFactory.ts","../../src/ChildrenAnalyzerOptions.ts","../../src/helpers/getErrorMessage.ts","../../src/helpers/index.ts","../../src/LeafList.ts","../../src/helpers/wrapError.ts","../../src/ChildrenAnalyzer.ts","../../src/index.ts","../../../../node_modules/.pnpm/@types+argparse@1.0.38/node_modules/@types/argparse/index.d.ts","../../../../node_modules/.pnpm/@babel+types@7.15.6/node_modules/@babel/types/lib/index.d.ts","../../../../node_modules/.pnpm/@types+babel__generator@7.6.3/node_modules/@types/babel__generator/index.d.ts","../../../../node_modules/.pnpm/@babel+types@7.17.10/node_modules/@babel/types/lib/index.d.ts","../../../../node_modules/.pnpm/@babel+parser@7.15.8/node_modules/@babel/parser/typings/babel-parser.d.ts","../../../../node_modules/.pnpm/@types+babel__template@7.4.1/node_modules/@types/babel__template/index.d.ts","../../../../node_modules/.pnpm/@types+babel__traverse@7.14.2/node_modules/@types/babel__traverse/index.d.ts","../../../../node_modules/.pnpm/@types+babel__core@7.1.16/node_modules/@types/babel__core/index.d.ts","../../../../node_modules/.pnpm/@types+blueimp-md5@2.18.0/node_modules/@types/blueimp-md5/index.d.ts","../../../../node_modules/.pnpm/@types+chai@4.3.0/node_modules/@types/chai/index.d.ts","../../../../node_modules/.pnpm/@types+chai-subset@1.3.3/node_modules/@types/chai-subset/index.d.ts","../../../../node_modules/.pnpm/@types+classnames@2.2.10/node_modules/@types/classnames/types.d.ts","../../../../node_modules/.pnpm/@types+classnames@2.2.10/node_modules/@types/classnames/index.d.ts","../../../../node_modules/.pnpm/@types+cookie@0.4.1/node_modules/@types/cookie/index.d.ts","../../../../node_modules/.pnpm/@types+debounce@1.2.0/node_modules/@types/debounce/index.d.ts","../../../../node_modules/.pnpm/@types+eslint@8.4.2/node_modules/@types/eslint/helpers.d.ts","../../../../node_modules/.pnpm/@types+json-schema@7.0.11/node_modules/@types/json-schema/index.d.ts","../../../../node_modules/.pnpm/@types+estree@0.0.51/node_modules/@types/estree/index.d.ts","../../../../node_modules/.pnpm/@types+eslint@8.4.2/node_modules/@types/eslint/index.d.ts","../../../../node_modules/.pnpm/@types+eslint-scope@3.7.3/node_modules/@types/eslint-scope/index.d.ts","../../../../node_modules/.pnpm/@types+geojson@7946.0.8/node_modules/@types/geojson/index.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/assert.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/globals.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/buffer.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/child_process.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/cluster.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/console.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/constants.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/crypto.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/dgram.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/dns.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/domain.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/events.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/fs.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/http.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/http2.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/https.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/inspector.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/module.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/net.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/os.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/path.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/process.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/punycode.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/querystring.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/readline.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/repl.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream/web.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/timers.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/tls.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/trace_events.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/tty.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/url.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/util.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/v8.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/vm.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/wasi.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/zlib.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/globals.global.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/index.d.ts","../../../../node_modules/.pnpm/@types+minimatch@3.0.5/node_modules/@types/minimatch/index.d.ts","../../../../node_modules/.pnpm/@types+glob@7.2.0/node_modules/@types/glob/index.d.ts","../../../../node_modules/.pnpm/@types+graceful-fs@4.1.5/node_modules/@types/graceful-fs/index.d.ts","../../../../node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts","../../../../node_modules/.pnpm/@types+hast@2.3.4/node_modules/@types/hast/index.d.ts","../../../../node_modules/.pnpm/@types+html-minifier-terser@5.1.2/node_modules/@types/html-minifier-terser/index.d.ts","../../../../node_modules/.pnpm/@types+is-function@1.0.1/node_modules/@types/is-function/index.d.ts","../../../../node_modules/.pnpm/@types+is-hotkey@0.1.5/node_modules/@types/is-hotkey/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-lib-coverage@2.0.3/node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-lib-report@3.0.0/node_modules/@types/istanbul-lib-report/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-reports@3.0.1/node_modules/@types/istanbul-reports/index.d.ts","../../../../node_modules/.pnpm/@types+js-levenshtein@1.1.0/node_modules/@types/js-levenshtein/index.d.ts","../../../../node_modules/.pnpm/@types+leaflet@1.7.5/node_modules/@types/leaflet/index.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/common.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/array.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/collection.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/date.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/function.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/lang.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/math.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/number.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/object.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/seq.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/string.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/util.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/index.d.ts","../../../../node_modules/.pnpm/@types+mdast@3.0.10/node_modules/@types/mdast/index.d.ts","../../../../node_modules/.pnpm/@types+mime@2.0.3/node_modules/@types/mime/index.d.ts","../../../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/index.d.ts","../../../../node_modules/.pnpm/@types+node-fetch@2.6.1/node_modules/@types/node-fetch/externals.d.ts","../../../../node_modules/.pnpm/@types+node-fetch@2.6.1/node_modules/@types/node-fetch/index.d.ts","../../../../node_modules/.pnpm/@types+normalize-package-data@2.4.1/node_modules/@types/normalize-package-data/index.d.ts","../../../../node_modules/.pnpm/@types+npmlog@4.1.3/node_modules/@types/npmlog/index.d.ts","../../../../node_modules/.pnpm/@types+parse-json@4.0.0/node_modules/@types/parse-json/index.d.ts","../../../../node_modules/.pnpm/@types+parse5@5.0.3/node_modules/@types/parse5/index.d.ts","../../../../node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/index.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/messages.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/serializer.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/parser.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/index.d.ts","../../../../node_modules/.pnpm/@types+pg@8.6.5/node_modules/@types/pg/index.d.ts","../../../../node_modules/.pnpm/@types+pretty-hrtime@1.0.1/node_modules/@types/pretty-hrtime/index.d.ts","../../../../node_modules/.pnpm/@types+qs@6.9.7/node_modules/@types/qs/index.d.ts","../../../../node_modules/.pnpm/@types+react-dom@17.0.9/node_modules/@types/react-dom/index.d.ts","../../../../node_modules/.pnpm/@types+react-leaflet@2.8.2/node_modules/@types/react-leaflet/index.d.ts","../../../../node_modules/.pnpm/@types+react-syntax-highlighter@11.0.5/node_modules/@types/react-syntax-highlighter/index.d.ts","../../../../node_modules/.pnpm/@types+react-test-renderer@17.0.1/node_modules/@types/react-test-renderer/index.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/Transition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/CSSTransition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/TransitionGroup.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/SwitchTransition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/config.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/index.d.ts","../../../../node_modules/.pnpm/@types+scheduler@0.16.2/node_modules/@types/scheduler/index.d.ts","../../../../node_modules/.pnpm/@types+source-list-map@0.1.2/node_modules/@types/source-list-map/index.d.ts","../../../../node_modules/.pnpm/@types+stack-utils@2.0.1/node_modules/@types/stack-utils/index.d.ts","../../../../node_modules/.pnpm/@types+tapable@1.0.8/node_modules/@types/tapable/index.d.ts","../../../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.d.ts","../../../../node_modules/.pnpm/@types+uglify-js@3.13.1/node_modules/@types/uglify-js/index.d.ts","../../../../node_modules/.pnpm/@types+uuid@8.3.1/node_modules/@types/uuid/index.d.ts","../../../../node_modules/.pnpm/anymatch@3.1.2/node_modules/anymatch/index.d.ts","../../../../node_modules/.pnpm/source-map@0.7.3/node_modules/source-map/source-map.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/Source.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/CompatSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/ConcatSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/OriginalSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/PrefixSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/RawSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/ReplaceSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/SizeOnlySource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/SourceMapSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/index.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/CachedSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/index.d.ts","../../../../node_modules/.pnpm/@types+webpack@4.41.31/node_modules/@types/webpack/index.d.ts","../../../../node_modules/.pnpm/@types+webpack-env@1.16.3/node_modules/@types/webpack-env/index.d.ts","../../../../node_modules/.pnpm/@types+ws@8.2.0/node_modules/@types/ws/index.d.ts","../../../../node_modules/.pnpm/@types+yargs-parser@20.2.1/node_modules/@types/yargs-parser/index.d.ts","../../../../node_modules/.pnpm/@types+yargs@16.0.4/node_modules/@types/yargs/index.d.ts","../../../../node_modules/.pnpm/@types+yauzl@2.9.2/node_modules/@types/yauzl/index.d.ts","../../../../node_modules/.pnpm/@types+node@15.0.2/node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"a8fe23ae87c3e9d2877032cafeb290f2ebe0c51e216d175a0408b10915ebe9f0","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"ea0aa24a32c073b8639aa1f3130ba0add0f0f2f76b314d9ba988a5cb91d7e3c4","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"414bfceec07e8d48af9dfdac2608a905ddcd1bfd44233907c218de7d4b48a1f1","affectsGlobalScope":true},"af7fd2870746deed40e130fc0a3966de74e8f52a97ec114d0fbb35876ab05ca9","a9c21d8c1022cf7c134e33b95bd38d792b1353749e4312b8bf184baf1c6e6186","a2d99deb45290e2ad3be8e8db687f498eaa5f857ddc0f081045911d2408d6f65","2c4b09e2886389ac8a6fb4a763de72b30fd22b29ad194bd7a7b966f409e2d20c","f46736b4c4956a380050bbe5fc4dc914bfc70e7561cd6a6889d0854bbad6c053","cfb7cbd7db2fb7f997b2cf652191042e72e322b9c04c161cfd8b74f759ab6ab5","09128331d23e062378d0354e5b9cf8da6ff27dd61d1942966d730b1f22e80e7f","b55cca46fb09eaa6a9a211b7bbe8da422a85371ba823a20d5b75ce47159b15be","867982da569cd55c28d3c2178a67e32d2ad58002b815f623a3049aa39a3a6c5c","da33c798c79471b84e7325268e2b07d5659dab29e44e222cec3a4261d75c11a8","457190a697618a8153922ff3142e8a306a6db160b92acee3de08206a4b3659f5","39d498b6d70eec29dc48196d9afc1e1c9cea5b1816f8e00b9bc5063a99658aec","81d8157c53cd3457cefeee525e509da21a28e61e131d6c23cdb99570d4f171c0","7327aedbd450b22a519aff0b7e4f93553463b578136415764de7727ebddf2d44","cdfa71e29fc4507f0beabef37debe8e361ac525d5b22b0c02588855dea59a948","a24a9885385ca27603b8bdf0f7b19ea2f045cb7e38a85458a7c7908c0cd9b111","bd48adca38f6d32cec918e4dffe5e5b4a71cfe27dd2e26fb5dd07b23fd7ed1f7","795a8d3c1116f076ad63ca53a0e9cc9e37e9a8b3fa87078fdc9cead9819aa9c2","cbc10012d95a4d49ad93e7a8f99749a4861080bc5e8e5ac3b5771eee66e4827f","d1c97f31e1d15d00eb424d8328cef49991ef84cc1415e714bc13c5432a9f2075","6901ceca3adc070f8e77e6e6eff53f44aed701cc191faa75bcf821e8bb6c03d6","d71ec1da745c53611f1b05cd8041e5f3d54764bf6dcecf97b2b2b38438540873","6fd0fb51989798e07e6c10b02d0a72fa3145856d3f38ef8bd193a104c534c9f4","4e7afa7c39db022e830595e3651298ab1971a1495c5ea18b84e6eb6410fe0f6f","0824ca5fd22451f71eaf191d84b6c615fda92ca9f809dc4448109a285fbad977","4be009506533c6c1b7459f91238e0a0a09822fe5f391089aa52c8364529e5679","2d6b75242f3e60cbe3976167258cc323e0d1e39353f870c4037b35d075a3a75f","dc3b172ee27054dbcedcf5007b78c256021db936f6313a9ce9a3ecbb503fd646","f82348f8ac4f637d6ad76ef5d45577ccc0c59fbd25d8c44d55349a71a90e195a","8dfed5c91ad36e69e6da6b7e49be929d4e19666db2b651aa839c485170a2902c","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","4aaf84a5ac87bad3211f041fab85de5cc42e5954c3ed56842faf6f08167e6202","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","d0b0a00cf31968a33baeaadf974ce4e5e7edf58cea5288765293f41ba5e72b3a","5ee005d57eb5b0e887f8451463ac412dc22e6868534f51f061166311f6c8baf5",{"version":"c8747693e5872ad5ef3aa016731a06915e1c34dae987829d9aa5bd40c7a2c54b","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"dc688638e386342faae164e68ac0205274b6731e70ac1a45921f3ce3aa083795","d22e870fef25a052477d24f34356470262881420c8b058c89d86392de6502c42","117ffeecf6c55e25b6446f449ad079029b5e7317399b0a693858faaaea5ca73e","8dc552d17d8515805274740c4902367436a73295c4109bc29f897f35b0604da7",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","a1c79f857f5c7754e14c93949dad8cfefcd7df2ecc0dc9dd79a30fd493e28449","8d9d743d7c21d105be24d154834a94557671c0ab0fc7f7329d3076784a80aa93","dc33ce27fbeaf0ea3da556c80a6cc8af9d13eb443088c8f25cdc39fca8e756f6","8c2e6e491e1a08855b8bf70820184ff66ae0d43f7cf0311fc680e6d860af211c","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"43978f18d1165eea81040bc9bfac1a551717f5cc9bd0f13b31bf490c5fcdc75f","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","ad4b60488fb1e562bf375dac9299815f7028bf667d9b5887b2d01d501b7d1ddd","246341c3a7a2638cf830d690e69de1e6085a102c6a30596435b050e6ac86c11a","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"aa8fe22e10f78a67b2ffbcc614b45fe258ff9e71d53ddb56e75fa7883c530270","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","fa9859478a480a6dfe625d204d5a3a38810b60933ac2b36ba77126cace1d44d3","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"f3e8bcce378a26bc672fce0ec05affabbbbfa18493b76f24c39136dea87100d0","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"e51bee3200733b1f58818b5a9ea90fcd61c5b8afa3a0378391991f3696826a65","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","e70339a3d63f806c43f24250c42aa0000093923457b0ed7dfc10e0ac910ebca9","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","d88ecca73348e7c337541c4b8b60a50aca5e87384f6b8a422fc6603c637e4c21","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"e704d7faa97765900963ac1ef5c675cb4c354f2a7fc9fbc104052e14bd65d614","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","cddf5c26907c0b8378bc05543161c11637b830da9fadf59e02a11e675d11e180","3d2cd8f3047fff04a71e7037a6a4cb9f4accb28dbd8c0d83164d414811025af0","70b34c8420d6226ed565d55f47fe04912d0ca0ad128825c5a06e018a3498db32","de1d6e224048139baf7494237a9231be6bab9e990fb239c7825bfd38b06d8c90","077b139efd1a6318805a8b24f05e7af37946d9bf9426bcb4866b45b61e6aac90","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","15a58e61533036fb08dfd567fa7b1f799acdedf0cacf5cbc93bbed0f0520e87f","fc60dd4cc43dfcc885eb2928d7464a32c16b7f1ea89e4d0f02937c18b0a67737","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","378df8bbbb9e3f6fca05d58f644aab538e1062eab5e778fb0b83d41125df246d","d88a479cccf787b4aa82362150fbeba5211a32dbfafa7b92ba6995ecaf9a1a89","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","c24ad9be9adf28f0927e3d9d9e9cec1c677022356f241ccbbfb97bfe8fb3d1a1","0ec0998e2d085e8ea54266f547976ae152c9dd6cdb9ac4d8a520a230f5ebae84","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","82251920b05f30981c9a4109cb5f3169dce4b477effc845c6d781044a30e7672","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","9fa6b83a35e897f340858995ca5d77e901d89fd18644cd4c9e8a4afe0b2e6363",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},"2a2e2c6463bcf3c59f31bc9ab4b6ef963bbf7dffb049cd017e2c1834e3adca63","be27a64e821a3e5af838650e4aa25805c60f057d0c37a9762c378d19d364b3e6","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","fda7ad096a1619fbae01b3d869cc82e29116f22be50133ac8fb08cee21279acd","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","c555dd691dd05955e99cd93dd99c685a65e5287813ccb5e6bfde951183248e26","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","fa5c2d3fcd8e227e180815df0a0903ed4b116400452af8a75ac5b68e5e1de9da","c0a3ea3aee13c4946a6aefce3a6ab9292a40a29f6622cde0fda0b1067a1a1f5f","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc","b4dfafe583b829a382edccbe32303535d0785f0c02ba7f04418e2a81de97af8a","1a37d640c94c0215e62511590bac215dd0b3bfcc287a567fc5fe87ab10894754",{"version":"cffd3848b7af4922d70028c805b7df5e8f0eac4a8d2410b0f55b47ca62c6c3a8","affectsGlobalScope":true},"60aaac5fb1858fbd4c4eb40e01706eb227eed9eca5c665564bd146971280dbd3","30688eab034d1aa3bbe4d8f2c7f462ddaec9f30f1a38a306a4728a9a06a58b11","e03334588c63840b7054accd0b90f29c5890db6a6555ac0869a78a23297f1396","42287355b5372067743496816f5dfaf877fad5ce60645209b91db6aee8de898f","c220410b8e956fa157ce4e5e6ac871f0f433aa120c334d906ff1f5e2c7369e95","960a68ced7820108787135bdae5265d2cc4b511b7dcfd5b8f213432a8483daf1","ed3b711f533ddb3a5451f4c4bb0df3a0b95e9d0433b3b7834644dd1718d06d31","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","67fc055eb86a0632e2e072838f889ffe1754083cb13c8c80a06a7d895d877aae","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","3833c70307dc3d2b46cb6f2a8b6a90e4d7e7367a21ab18c481d7de0909a43e67","2887592574fcdfd087647c539dcb0fbe5af2521270dad4a37f9d17c16190d579","9d74c7330800b325bb19cc8c1a153a612c080a60094e1ab6cfb6e39cf1b88c36","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","4fb0b7d532aa6fb850b6cd2f1ee4f00802d877b5c66a51903bc1fb0624126349","b90c59ac4682368a01c83881b814738eb151de8a58f52eb7edadea2bcffb11b9","8560a87b2e9f8e2c3808c8f6172c9b7eb6c9b08cb9f937db71c285ecf292c81d","ffe3931ff864f28d80ae2f33bd11123ad3d7bad9896b910a1e61504cc093e1f5","083c1bd82f8dc3a1ed6fc9e8eaddf141f7c05df418eca386598821e045253af9","274ebe605bd7f71ce161f9f5328febc7d547a2929f803f04b44ec4a7d8729517","6ca0207e70d985a24396583f55836b10dc181063ab6069733561bfde404d1bad","5908142efeaab38ffdf43927ee0af681ae77e0d7672b956dfb8b6c705dbfe106","f772b188b943549b5c5eb803133314b8aa7689eced80eed0b70e2f30ca07ab9c","0026b816ef05cfbf290e8585820eef0f13250438669107dfc44482bac007b14f","05d64cc1118031b29786632a9a0f6d7cf1dcacb303f27023a466cf3cdc860538","e0fff9119e1a5d2fdd46345734126cd6cb99c2d98a9debf0257047fe3937cc3f","d84398556ba4595ee6be554671da142cfe964cbdebb2f0c517a10f76f2b016c0","e275297155ec3251200abbb334c7f5641fecc68b2a9573e40eed50dff7584762","cd6a7c1c2a6461c6868601ca2144a41f8ee6d4a85d4b4cf1deb651e6c2ebc9e5",{"version":"3a1e422f919c70fca66e94dc641ad8d9732b3d2533ac047b8a9aaca9eea3aa10","affectsGlobalScope":true},"d7a041dfebb4e5ab34e9a6771436bd96e9ad7c42728f89a87a0d77dcab766f56","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":6,"useDefineForClassFields":true},"fileIdsList":[[81,142],[142],[79,80,82,83,84,142],[79,142],[79,82,142],[87,142],[89,142],[95,96,142],[93,94,95,142],[114,115,142,149,150],[115,142,149],[142,153],[142,158],[142,159],[98,142],[142,163,165,166,167,168,169,170,171,172,173,174,175],[142,163,164,166,167,168,169,170,171,172,173,174,175],[142,164,165,166,167,168,169,170,171,172,173,174,175],[142,163,164,165,167,168,169,170,171,172,173,174,175],[142,163,164,165,166,168,169,170,171,172,173,174,175],[142,163,164,165,166,167,169,170,171,172,173,174,175],[142,163,164,165,166,167,168,170,171,172,173,174,175],[142,163,164,165,166,167,168,169,171,172,173,174,175],[142,163,164,165,166,167,168,169,170,172,173,174,175],[142,163,164,165,166,167,168,169,170,171,173,174,175],[142,163,164,165,166,167,168,169,170,171,172,174,175],[142,163,164,165,166,167,168,169,170,171,172,173,175],[142,163,164,165,166,167,168,169,170,171,172,173,174],[117,141,142,178,179,230],[99,142],[102,142],[103,108,142],[104,114,115,122,131,141,142],[104,105,114,122,142],[106,142],[107,108,115,123,142],[108,131,138,142],[109,111,114,122,142],[110,142],[111,112,142],[113,114,142],[114,142],[114,115,116,131,141,142],[114,115,116,131,142],[117,122,131,141,142],[114,115,117,118,122,131,138,141,142],[117,119,131,138,141,142],[99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148],[114,120,142],[121,141,142],[111,114,122,131,142],[123,142],[124,142],[102,125,142],[126,140,142,146],[127,142],[128,142],[114,129,142],[129,130,142,144],[114,131,132,133,142],[131,133,142],[131,132,142],[134,142],[135,142],[114,136,137,142],[136,137,142],[108,122,138,142],[139,142],[122,140,142],[103,117,128,141,142],[108,142],[131,142,143],[142,144],[142,145],[103,108,114,116,125,131,141,142,144,146],[131,142,147],[114,131,138,142,149,185,186,189,190],[50,142],[50,142,162],[50,142,195],[50,142,197],[142,197,198,199,200,201],[46,47,48,49,142],[142,207],[142,149,212,213,214,215,216,217,218,219,220,221,222],[142,211,212,221],[142,212,221],[142,204,211,212,221],[142,212],[108,142,211,221],[142,211,212,213,214,215,216,217,218,219,220,222],[108,142,149,206,207,208,210,223],[114,117,119,122,131,138,141,142,147,149],[142,227],[114,131,142,149],[117,131,142,149],[142,149,186,187,188],[142,149],[131,142,149,186],[51,67,142],[50,51,62,67,68,69,71,73,74,75,142],[51,142],[51,70,142],[50,51,142],[50,51,70,142],[51,72,142],[50,51,62,142],[51,62,67,71,76,142],[50,51,61,62,63,142],[50,51,61,142],[51,61,63,64,65,66,142],[51,52,53,54,55,56,57,58,59,60,142]],"referencedMap":[[82,1],[79,2],[81,2],[78,2],[85,3],[80,4],[83,5],[84,4],[86,2],[88,6],[87,2],[90,7],[89,2],[91,2],[92,2],[97,8],[93,2],[96,9],[95,2],[98,2],[151,10],[152,11],[154,12],[155,2],[156,2],[157,2],[158,2],[159,13],[160,14],[161,2],[94,2],[162,15],[164,16],[165,17],[163,18],[166,19],[167,20],[168,21],[169,22],[170,23],[171,24],[172,25],[173,26],[174,27],[175,28],[176,12],[177,2],[150,2],[179,2],[180,29],[99,30],[100,30],[102,31],[103,32],[104,33],[105,34],[106,35],[107,36],[108,37],[109,38],[110,39],[111,40],[112,40],[113,41],[114,42],[115,43],[116,44],[101,2],[148,2],[117,45],[118,46],[119,47],[149,48],[120,49],[121,50],[122,51],[123,52],[124,53],[125,54],[126,55],[127,56],[128,57],[129,58],[130,59],[131,60],[133,61],[132,62],[134,63],[135,64],[136,65],[137,66],[138,67],[139,68],[140,69],[141,70],[142,71],[143,72],[144,73],[145,74],[146,75],[147,76],[181,2],[182,42],[183,2],[184,2],[190,77],[191,2],[48,2],[192,2],[193,78],[194,79],[195,80],[196,78],[198,81],[200,78],[197,78],[199,81],[201,2],[202,82],[46,2],[50,83],[51,78],[203,2],[49,2],[204,2],[205,2],[206,2],[208,84],[153,2],[209,2],[225,2],[223,85],[222,86],[213,87],[214,88],[215,88],[216,87],[217,87],[218,87],[219,89],[212,90],[220,86],[221,91],[224,92],[226,93],[227,2],[228,94],[229,95],[210,2],[47,2],[178,96],[189,97],[186,98],[188,99],[187,98],[185,2],[207,2],[211,2],[10,2],[11,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[41,2],[37,2],[38,2],[39,2],[40,2],[8,2],[42,2],[43,2],[44,2],[1,2],[9,2],[45,2],[68,100],[76,101],[62,102],[71,103],[70,104],[74,100],[69,102],[72,105],[73,106],[75,107],[77,108],[64,109],[63,102],[65,110],[66,102],[67,111],[52,102],[53,104],[54,102],[55,102],[56,102],[57,104],[58,104],[59,104],[60,102],[61,112]],"exportedModulesMap":[[82,1],[79,2],[81,2],[78,2],[85,3],[80,4],[83,5],[84,4],[86,2],[88,6],[87,2],[90,7],[89,2],[91,2],[92,2],[97,8],[93,2],[96,9],[95,2],[98,2],[151,10],[152,11],[154,12],[155,2],[156,2],[157,2],[158,2],[159,13],[160,14],[161,2],[94,2],[162,15],[164,16],[165,17],[163,18],[166,19],[167,20],[168,21],[169,22],[170,23],[171,24],[172,25],[173,26],[174,27],[175,28],[176,12],[177,2],[150,2],[179,2],[180,29],[99,30],[100,30],[102,31],[103,32],[104,33],[105,34],[106,35],[107,36],[108,37],[109,38],[110,39],[111,40],[112,40],[113,41],[114,42],[115,43],[116,44],[101,2],[148,2],[117,45],[118,46],[119,47],[149,48],[120,49],[121,50],[122,51],[123,52],[124,53],[125,54],[126,55],[127,56],[128,57],[129,58],[130,59],[131,60],[133,61],[132,62],[134,63],[135,64],[136,65],[137,66],[138,67],[139,68],[140,69],[141,70],[142,71],[143,72],[144,73],[145,74],[146,75],[147,76],[181,2],[182,42],[183,2],[184,2],[190,77],[191,2],[48,2],[192,2],[193,78],[194,79],[195,80],[196,78],[198,81],[200,78],[197,78],[199,81],[201,2],[202,82],[46,2],[50,83],[51,78],[203,2],[49,2],[204,2],[205,2],[206,2],[208,84],[153,2],[209,2],[225,2],[223,85],[222,86],[213,87],[214,88],[215,88],[216,87],[217,87],[218,87],[219,89],[212,90],[220,86],[221,91],[224,92],[226,93],[227,2],[228,94],[229,95],[210,2],[47,2],[178,96],[189,97],[186,98],[188,99],[187,98],[185,2],[207,2],[211,2],[10,2],[11,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[41,2],[37,2],[38,2],[39,2],[40,2],[8,2],[42,2],[43,2],[44,2],[1,2],[9,2],[45,2],[68,100],[76,101],[62,102],[71,103],[70,104],[74,100],[69,102],[72,105],[73,106],[75,107],[77,108],[64,109],[63,102],[65,110],[66,102],[67,111],[52,102],[53,104],[54,102],[55,102],[56,102],[57,104],[58,104],[59,104],[60,102],[61,112]],"semanticDiagnosticsPerFile":[82,79,81,78,85,80,83,84,86,88,87,90,89,91,92,97,93,96,95,98,151,152,154,155,156,157,158,159,160,161,94,162,164,165,163,166,167,168,169,170,171,172,173,174,175,176,177,150,179,180,99,100,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,101,148,117,118,119,149,120,121,122,123,124,125,126,127,128,129,130,131,133,132,134,135,136,137,138,139,140,141,142,143,144,145,146,147,181,182,183,184,190,191,48,192,193,194,195,196,198,200,197,199,201,202,46,50,51,203,49,204,205,206,208,153,209,225,223,222,213,214,215,216,217,218,219,212,220,221,224,226,227,228,229,210,47,178,189,186,188,187,185,207,211,10,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,41,37,38,39,40,8,42,43,44,1,9,45,68,76,62,71,70,74,69,72,73,75,77,64,63,65,66,67,52,53,54,55,56,57,58,59,60,61]},"version":"4.3.5"}
1
+ {"program":{"fileNames":["../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/.pnpm/@types+react@18.0.25/node_modules/@types/react/global.d.ts","../../../../node_modules/.pnpm/csstype@3.1.1/node_modules/csstype/index.d.ts","../../../../node_modules/.pnpm/@types+prop-types@15.7.5/node_modules/@types/prop-types/index.d.ts","../../../../node_modules/.pnpm/@types+scheduler@0.16.2/node_modules/@types/scheduler/tracing.d.ts","../../../../node_modules/.pnpm/@types+react@18.0.25/node_modules/@types/react/index.d.ts","../../../../node_modules/.pnpm/@types+react@18.0.25/node_modules/@types/react/jsx-runtime.d.ts","../../src/nodeSpecs/types/ChildrenRepresentationReducer.ts","../../src/nodeSpecs/types/ConstrainedLeafRepresentationFactory.ts","../../src/nodeSpecs/types/DeclarationSiteNodeRepresentationFactory.ts","../../src/nodeSpecs/types/RepresentationFactorySite.ts","../../src/nodeSpecs/types/StaticContextFactory.ts","../../src/nodeSpecs/types/SyntheticChildrenFactory.ts","../../src/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.ts","../../src/nodeSpecs/types/UseSiteBranchNodeRepresentationFactory.ts","../../src/nodeSpecs/types/ValidFactoryName.ts","../../src/nodeSpecs/types/index.ts","../../src/ChildrenAnalyzerError.ts","../../src/nodeSpecs/BranchNodeOptions.ts","../../src/nodeSpecs/BranchNode.ts","../../src/nodeSpecs/Leaf.ts","../../src/nodeSpecs/RawNodeRepresentation.ts","../../src/nodeSpecs/index.ts","../../src/BranchNodeList.ts","../../src/assertNever.ts","../../src/ErrorMessageFactory.ts","../../src/ChildrenAnalyzerOptions.ts","../../src/helpers/getErrorMessage.ts","../../src/helpers/index.ts","../../src/LeafList.ts","../../src/helpers/wrapError.ts","../../src/ChildrenAnalyzer.ts","../../src/index.ts","../../../../node_modules/.pnpm/@types+argparse@1.0.38/node_modules/@types/argparse/index.d.ts","../../../../node_modules/.pnpm/@babel+types@7.20.0/node_modules/@babel/types/lib/index.d.ts","../../../../node_modules/.pnpm/@types+babel__generator@7.6.4/node_modules/@types/babel__generator/index.d.ts","../../../../node_modules/.pnpm/@babel+parser@7.20.1/node_modules/@babel/parser/typings/babel-parser.d.ts","../../../../node_modules/.pnpm/@types+babel__template@7.4.1/node_modules/@types/babel__template/index.d.ts","../../../../node_modules/.pnpm/@types+babel__traverse@7.18.2/node_modules/@types/babel__traverse/index.d.ts","../../../../node_modules/.pnpm/@types+babel__core@7.1.19/node_modules/@types/babel__core/index.d.ts","../../../../node_modules/.pnpm/@types+blueimp-md5@2.18.0/node_modules/@types/blueimp-md5/index.d.ts","../../../../node_modules/.pnpm/@types+chai@4.3.3/node_modules/@types/chai/index.d.ts","../../../../node_modules/.pnpm/@types+chai-subset@1.3.3/node_modules/@types/chai-subset/index.d.ts","../../../../node_modules/.pnpm/@types+classnames@2.2.10/node_modules/@types/classnames/types.d.ts","../../../../node_modules/.pnpm/@types+classnames@2.2.10/node_modules/@types/classnames/index.d.ts","../../../../node_modules/.pnpm/@types+cookie@0.4.1/node_modules/@types/cookie/index.d.ts","../../../../node_modules/.pnpm/@types+debounce@1.2.0/node_modules/@types/debounce/index.d.ts","../../../../node_modules/.pnpm/@types+eslint@8.4.9/node_modules/@types/eslint/helpers.d.ts","../../../../node_modules/.pnpm/@types+estree@0.0.51/node_modules/@types/estree/index.d.ts","../../../../node_modules/.pnpm/@types+json-schema@7.0.11/node_modules/@types/json-schema/index.d.ts","../../../../node_modules/.pnpm/@types+eslint@8.4.9/node_modules/@types/eslint/index.d.ts","../../../../node_modules/.pnpm/@types+eslint-scope@3.7.4/node_modules/@types/eslint-scope/index.d.ts","../../../../node_modules/.pnpm/@types+geojson@7946.0.10/node_modules/@types/geojson/index.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/assert.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/assert/strict.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/globals.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/async_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/buffer.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/child_process.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/cluster.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/console.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/constants.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/crypto.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/dgram.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/dns.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/dns/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/domain.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/events.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/fs.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/fs/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/http.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/http2.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/https.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/inspector.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/module.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/net.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/os.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/path.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/process.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/punycode.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/querystring.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/readline.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/repl.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/stream.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/stream/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/stream/web.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/string_decoder.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/test.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/timers.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/timers/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/tls.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/trace_events.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/tty.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/url.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/util.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/v8.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/vm.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/wasi.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/worker_threads.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/zlib.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/globals.global.d.ts","../../../../node_modules/.pnpm/@types+node@16.18.3/node_modules/@types/node/ts4.8/index.d.ts","../../../../node_modules/.pnpm/@types+minimatch@5.1.2/node_modules/@types/minimatch/index.d.ts","../../../../node_modules/.pnpm/@types+glob@8.0.0/node_modules/@types/glob/index.d.ts","../../../../node_modules/.pnpm/@types+graceful-fs@4.1.5/node_modules/@types/graceful-fs/index.d.ts","../../../../node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts","../../../../node_modules/.pnpm/@types+hast@2.3.4/node_modules/@types/hast/index.d.ts","../../../../node_modules/.pnpm/@types+html-minifier-terser@5.1.2/node_modules/@types/html-minifier-terser/index.d.ts","../../../../node_modules/.pnpm/@types+is-function@1.0.1/node_modules/@types/is-function/index.d.ts","../../../../node_modules/.pnpm/@types+is-hotkey@0.1.5/node_modules/@types/is-hotkey/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-lib-coverage@2.0.4/node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-lib-report@3.0.0/node_modules/@types/istanbul-lib-report/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-reports@3.0.1/node_modules/@types/istanbul-reports/index.d.ts","../../../../node_modules/.pnpm/@types+js-levenshtein@1.1.0/node_modules/@types/js-levenshtein/index.d.ts","../../../../node_modules/.pnpm/@types+leaflet@1.9.0/node_modules/@types/leaflet/index.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/common.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/array.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/collection.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/date.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/function.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/lang.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/math.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/number.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/object.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/seq.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/string.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/common/util.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.187/node_modules/@types/lodash/index.d.ts","../../../../node_modules/.pnpm/@types+mdast@3.0.10/node_modules/@types/mdast/index.d.ts","../../../../node_modules/.pnpm/@types+mime@2.0.3/node_modules/@types/mime/index.d.ts","../../../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/index.d.ts","../../../../node_modules/.pnpm/@types+node-fetch@2.6.1/node_modules/@types/node-fetch/externals.d.ts","../../../../node_modules/.pnpm/@types+node-fetch@2.6.1/node_modules/@types/node-fetch/index.d.ts","../../../../node_modules/.pnpm/@types+normalize-package-data@2.4.1/node_modules/@types/normalize-package-data/index.d.ts","../../../../node_modules/.pnpm/@types+npmlog@4.1.4/node_modules/@types/npmlog/index.d.ts","../../../../node_modules/.pnpm/@types+parse-json@4.0.0/node_modules/@types/parse-json/index.d.ts","../../../../node_modules/.pnpm/@types+parse5@5.0.3/node_modules/@types/parse5/index.d.ts","../../../../node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/index.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/messages.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/serializer.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/parser.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/index.d.ts","../../../../node_modules/.pnpm/@types+pg@8.6.5/node_modules/@types/pg/index.d.ts","../../../../node_modules/.pnpm/@types+pretty-hrtime@1.0.1/node_modules/@types/pretty-hrtime/index.d.ts","../../../../node_modules/.pnpm/@types+qs@6.9.7/node_modules/@types/qs/index.d.ts","../../../../node_modules/.pnpm/@types+react-dom@18.0.8/node_modules/@types/react-dom/index.d.ts","../../../../node_modules/.pnpm/@types+react-syntax-highlighter@11.0.5/node_modules/@types/react-syntax-highlighter/index.d.ts","../../../../node_modules/.pnpm/@types+react-test-renderer@18.0.0/node_modules/@types/react-test-renderer/index.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.5/node_modules/@types/react-transition-group/Transition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.5/node_modules/@types/react-transition-group/CSSTransition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.5/node_modules/@types/react-transition-group/TransitionGroup.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.5/node_modules/@types/react-transition-group/SwitchTransition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.5/node_modules/@types/react-transition-group/config.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.5/node_modules/@types/react-transition-group/index.d.ts","../../../../node_modules/.pnpm/@types+scheduler@0.16.2/node_modules/@types/scheduler/index.d.ts","../../../../node_modules/.pnpm/@types+source-list-map@0.1.2/node_modules/@types/source-list-map/index.d.ts","../../../../node_modules/.pnpm/@types+stack-utils@2.0.1/node_modules/@types/stack-utils/index.d.ts","../../../../node_modules/.pnpm/@types+tapable@1.0.8/node_modules/@types/tapable/index.d.ts","../../../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.d.ts","../../../../node_modules/.pnpm/@types+uglify-js@3.17.1/node_modules/@types/uglify-js/index.d.ts","../../../../node_modules/.pnpm/@types+uuid@8.3.1/node_modules/@types/uuid/index.d.ts","../../../../node_modules/.pnpm/anymatch@3.1.2/node_modules/anymatch/index.d.ts","../../../../node_modules/.pnpm/source-map@0.7.4/node_modules/source-map/source-map.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/Source.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/CompatSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/ConcatSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/OriginalSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/PrefixSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/RawSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/ReplaceSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/SizeOnlySource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/SourceMapSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/index.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/CachedSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/index.d.ts","../../../../node_modules/.pnpm/@types+webpack@4.41.33/node_modules/@types/webpack/index.d.ts","../../../../node_modules/.pnpm/@types+webpack-env@1.18.0/node_modules/@types/webpack-env/index.d.ts","../../../../node_modules/.pnpm/@types+ws@8.5.3/node_modules/@types/ws/index.d.ts","../../../../node_modules/.pnpm/@types+yargs-parser@21.0.0/node_modules/@types/yargs-parser/index.d.ts","../../../../node_modules/.pnpm/@types+yargs@16.0.4/node_modules/@types/yargs/index.d.ts","../../../../node_modules/.pnpm/@types+yauzl@2.10.0/node_modules/@types/yauzl/index.d.ts","../../../../node_modules/.pnpm/@types+node@15.0.2/node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f5c28122bee592cfaf5c72ed7bcc47f453b79778ffa6e301f45d21a0970719d4","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","3eb679a56cab01203a1ba7edeade937f6a2a4c718513b2cd930b579807fa9359","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"3f149f903dd20dfeb7c80e228b659f0e436532de772469980dbd00702cc05cc1","affectsGlobalScope":true},{"version":"1272277fe7daa738e555eb6cc45ded42cc2d0f76c07294142283145d49e96186","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"cd483c056da900716879771893a3c9772b66c3c88f8943b4205aec738a94b1d0","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"ff667ee99e5a28c3dc5063a3cfd4d3436699e3fb035d4451037da7f567da542a","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"c37f8a49593a0030eecb51bbfa270e709bec9d79a6cc3bb851ef348d4e6b26f8","affectsGlobalScope":true},{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"1c29793071152b207c01ea1954e343be9a44d85234447b2b236acae9e709a383","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"d8d8dd5b60bde2305e6140d63ddb04f82a539d02c8c80fc9651b6db261e7f3be","affectsGlobalScope":true},"af7fd2870746deed40e130fc0a3966de74e8f52a97ec114d0fbb35876ab05ca9",{"version":"a9c21d8c1022cf7c134e33b95bd38d792b1353749e4312b8bf184baf1c6e6186","signature":"ddab1d948442f1d89ae405e4b401fe9c5c024caf1e8cd64f5241d3e3f8598ef4"},{"version":"a2d99deb45290e2ad3be8e8db687f498eaa5f857ddc0f081045911d2408d6f65","signature":"dbcc123713b5e336e96eb286ebbdd780bfbe668026a7f3600442d0e00da0b52e"},{"version":"2c4b09e2886389ac8a6fb4a763de72b30fd22b29ad194bd7a7b966f409e2d20c","signature":"6dc1b0194bf045d628f8f91565d62d337a3f33f58a01820476f2a25e1fe07060"},{"version":"f46736b4c4956a380050bbe5fc4dc914bfc70e7561cd6a6889d0854bbad6c053","signature":"2df86603e790f78e27c4001e27e43bb51a4f35b4d042efd2ef44bcb5a4d3e0ea"},{"version":"cfb7cbd7db2fb7f997b2cf652191042e72e322b9c04c161cfd8b74f759ab6ab5","signature":"53f66b4853a4ecdf639738b12ba49313bc64a08c2f0c5b2f9c9eab16530714e4"},{"version":"09128331d23e062378d0354e5b9cf8da6ff27dd61d1942966d730b1f22e80e7f","signature":"3cd3779457f28b868abaaf82f3169ee22f5d92aa03facfba7f0bcb1f94edb941"},{"version":"b5c303499a3c43d8170ed36dc7b3f233524ff3e99f8f3319960165537b387ce8","signature":"46239da18783f14365d4f7ee8a877e2b460077895160c9467b09059686ca2b6e"},{"version":"867982da569cd55c28d3c2178a67e32d2ad58002b815f623a3049aa39a3a6c5c","signature":"1e9a076f79cace7eacade413bc3570b42dfa92cc05f39a7414300c797e237695"},{"version":"da33c798c79471b84e7325268e2b07d5659dab29e44e222cec3a4261d75c11a8","signature":"f1df3133e8cb16200bb265761db43e8e9babab2cd772d6d693e5c9b8db47d553"},{"version":"457190a697618a8153922ff3142e8a306a6db160b92acee3de08206a4b3659f5","signature":"ac2f98183ecd3fbae9b7af51efeefe3bcaa2acf6f150fe776afe73444b3a7d43"},{"version":"e4b30974841000a2f00e89ac2cfa8a063766e69131e31ee521267af0bab4cfd5","signature":"ec33c9ae91ebe33329992a166653817225f9ebc08835c8bac7270a6be763d55c"},{"version":"81d8157c53cd3457cefeee525e509da21a28e61e131d6c23cdb99570d4f171c0","signature":"d519308aedac3bb98d355832e80d9d988570ef945649255bcc0988b91a6157d6"},{"version":"7327aedbd450b22a519aff0b7e4f93553463b578136415764de7727ebddf2d44","signature":"2c1c6fe63c4985cfb439f248eca2fba14446a21c3c7afc254c85c492ceb7174a"},{"version":"cdfa71e29fc4507f0beabef37debe8e361ac525d5b22b0c02588855dea59a948","signature":"4a744a8145a44cb9a0df124bc8b86c448fa9bf8f176ac8e9c5777cae919b0bad"},{"version":"a24a9885385ca27603b8bdf0f7b19ea2f045cb7e38a85458a7c7908c0cd9b111","signature":"dbf49314dfdf7aca89ba2f94cd2965b993342f0e09331e67cc1a6aa9b68c5377"},{"version":"bd48adca38f6d32cec918e4dffe5e5b4a71cfe27dd2e26fb5dd07b23fd7ed1f7","signature":"2b8997bd989157a95291c8106ae6d8851d1400176d68a56e88b1ae1da3467682"},{"version":"795a8d3c1116f076ad63ca53a0e9cc9e37e9a8b3fa87078fdc9cead9819aa9c2","signature":"8759a3cc437838b7010f3b7682b4a4b829492aecf077900b30690765ef7fe70a"},{"version":"cbc10012d95a4d49ad93e7a8f99749a4861080bc5e8e5ac3b5771eee66e4827f","signature":"01dfd1b7093a72fbeb99bb685007420857a0808d7760dd49f3b45c22544afc5c"},{"version":"d1c97f31e1d15d00eb424d8328cef49991ef84cc1415e714bc13c5432a9f2075","signature":"3b159dcd4b21b084fe4c3d98f76b16865ca61692a09db5bf45e10d4b729c7da5"},{"version":"6901ceca3adc070f8e77e6e6eff53f44aed701cc191faa75bcf821e8bb6c03d6","signature":"4ef5e4999e4ba505b9067a73b3a9976ad85a5b924fc3442e1dd8a25dcdc08269"},{"version":"d71ec1da745c53611f1b05cd8041e5f3d54764bf6dcecf97b2b2b38438540873","signature":"b297960be66224fd76bfde7bd766b088925c078c614f372a09f71e43f786cfaa"},{"version":"6fd0fb51989798e07e6c10b02d0a72fa3145856d3f38ef8bd193a104c534c9f4","signature":"bc357378e04884500ad2f6a3636329a539ec6ffe27f53d79e48a9afa4e307840"},{"version":"4e7afa7c39db022e830595e3651298ab1971a1495c5ea18b84e6eb6410fe0f6f","signature":"269a87c5c17b5b68c57d356fb7f91e44c149613d55dd22311da9907cf5f1f161"},{"version":"0824ca5fd22451f71eaf191d84b6c615fda92ca9f809dc4448109a285fbad977","signature":"d862f114953bcdafaa15f4e06ec6bd5d9d6a9a8b1e156442537277ca99d669c3"},{"version":"41b13b050c1acadbfdc8bdc4fd94a63e39a21389b888d94f6c77a4715310683d","signature":"bf4aab488f9439a4747dd85d2f7e626fe74949feee5d003e84189001471dbe1a"},{"version":"2d6b75242f3e60cbe3976167258cc323e0d1e39353f870c4037b35d075a3a75f","signature":"5b4e64ff6293018f7ff8339962af83025fb9df590afdf8dba5fb57fbb0b5a08d"},"dc3b172ee27054dbcedcf5007b78c256021db936f6313a9ce9a3ecbb503fd646","497d9c40ac3fbb712314a26d91994a3c0770b0e742918f4f58c722c5514263be","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","7ec238b220ea991b6643e24191b1f552a65956d5f6de4c6144e700b9985265d8","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","dae3d1adc67ac3dbd1cd471889301339ec439837b5df565982345be20c8fca9a","5426e62886b7be7806312d31a00e8f7dccd6fe63ba9bbefe99ee2eab29cc48a3","5ee005d57eb5b0e887f8451463ac412dc22e6868534f51f061166311f6c8baf5",{"version":"127bf414ca8ced28c9738b91a935121009d03bbc136668db980bd1ba18976b2b","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"dc688638e386342faae164e68ac0205274b6731e70ac1a45921f3ce3aa083795","d22e870fef25a052477d24f34356470262881420c8b058c89d86392de6502c42","117ffeecf6c55e25b6446f449ad079029b5e7317399b0a693858faaaea5ca73e","8dc552d17d8515805274740c4902367436a73295c4109bc29f897f35b0604da7",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"a1c79f857f5c7754e14c93949dad8cfefcd7df2ecc0dc9dd79a30fd493e28449","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","3adc8ac088388fd10b0e9cd3fa08abbebed9172577807394a241466ccb98f411","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","a3b6c93a9838b8c94c6998e85646d6f2d07c20ecfe1e235dba62158b29451391","4911d4c3a7f7c11bad0e2cec329a19a385d10ea83b0b69c76e032359e388f624","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"2f6c9750131d5d2fdaba85c164a930dc07d2d7e7e8970b89d32864aa6c72620c","affectsGlobalScope":true},"56d13f223ab40f71840795f5bef2552a397a70666ee60878222407f3893fb8d0",{"version":"4ffef5c4698e94e49dcf150e3270bad2b24a2aeab48b24acbe7c1366edff377d","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","67a12e6c992d3f770078bacc562f767cf6142ae4453759a482f8f5ed30a99027","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","c993aac3b6d4a4620ef9651497069eb84806a131420e4f158ea9396fb8eb9b8c","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","06ccebc2c2db57d6bdbca63b71c4ae5e6ddc42d972fd8f122d4c1a28aa111b25",{"version":"81e8508d1e82278f5d3fee936f267e00c308af36219bfcee2631f9513c9c4017","affectsGlobalScope":true},"413a4be7f94f631235bbc83dad36c4d15e5a2ff02bca1efdbd03636d6454631b","20c468256fd68d3ef1fa53526e76d51d6aa91711e84d72c0343589b99238287e","4198acced75d48a039c078734c4efca7788ff8c78609c270a2b63ec20e3e1676","8d4c16a26d59e3ce49741a7d4a6e8206b884e226cf308667c7778a0b2c0fee7f","ee3bad055a79f188626b1a7046f04ab151fdd3581e55c51d32face175bd9d06f","d61c7c41eb1960b1285e242fd102c162b65c0522985b839fadda59874308a170",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"1805e0e4d1ed00f6361db25dff6887c7fa9b5b39f32599a34e8551da7daaa9c2","d10f4929cd610c26926d6784fc3f9f4120b789c03081b5d65fb2d2670a00fa04","fb0989383c6109f20281b3d31265293daefdd76d0d30551782c1654e93704f48","a4210a84a82b3e7a8cec5b2f3616e46d523f4f10cc1576d8f2fb89d0987b341e",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","22d48bfb37261136423ac687f1fa7bd4dda3083f767416d409a8260cf92bc8fc","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","f142151303f0792b81eff90b554081d2b78b146a83a4bc573228338e70afa420","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","698ab660b477b9c2cd5ccbd99e7e7df8b4a6134c1f5711fa615ed7aab51cb7f7","33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637","a4471d2bdba495b2a6a30b8765d5e0282fa7009d88345a9528f73c37869d3b93",{"version":"aee7013623e7632fba449d4df1da92925b27d9b816cb05546044dbfe54c88ef4","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","c9d70d3d7191a66a81cb554557f8ed1cf736ea8397c44a864fe52689de18865a","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"1aad825534c73852a1f3275e527d729a2c0640f539198fdfdfeb83b839851910","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"e3685a8957b4e2af64c3f04a58289ee0858a649dbcd963a2b897fe85858ae18a","963d59066dd6742da1918a6213a209bcc205b8ee53b1876ee2b4e6d80f97c85e","a55ca8b5f8c6a8535bb26fac1e10132a5338234ca3d5b9ed739fbc8ef41c8075","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","cddf5c26907c0b8378bc05543161c11637b830da9fadf59e02a11e675d11e180","3d2cd8f3047fff04a71e7037a6a4cb9f4accb28dbd8c0d83164d414811025af0","70b34c8420d6226ed565d55f47fe04912d0ca0ad128825c5a06e018a3498db32","de1d6e224048139baf7494237a9231be6bab9e990fb239c7825bfd38b06d8c90","077b139efd1a6318805a8b24f05e7af37946d9bf9426bcb4866b45b61e6aac90","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","15a58e61533036fb08dfd567fa7b1f799acdedf0cacf5cbc93bbed0f0520e87f","890eadd0631576dc5994a2e12cba56387e20afd8851352c0108e4fe09dc3a308","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","9c41e412e6d07b29d8772641d4016dec5984225f7ecc2008bd8173ff14465047","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"2a2e2c6463bcf3c59f31bc9ab4b6ef963bbf7dffb049cd017e2c1834e3adca63","be27a64e821a3e5af838650e4aa25805c60f057d0c37a9762c378d19d364b3e6","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","df38da6685578ac3d0e4ce2d20f3d59462ee53959b8263d2532ec9cec48ae098","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","c555dd691dd05955e99cd93dd99c685a65e5287813ccb5e6bfde951183248e26","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","fa5c2d3fcd8e227e180815df0a0903ed4b116400452af8a75ac5b68e5e1de9da","c0a3ea3aee13c4946a6aefce3a6ab9292a40a29f6622cde0fda0b1067a1a1f5f","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc","e4dd91dd4789a109aab51d8a0569a282369fcda9ba6f2b2297bc61bacfb1a042",{"version":"cffd3848b7af4922d70028c805b7df5e8f0eac4a8d2410b0f55b47ca62c6c3a8","affectsGlobalScope":true},"408cc7117448f4994a1f50468648a2d06eff4112a7707dbef6ceea76d2684707","30688eab034d1aa3bbe4d8f2c7f462ddaec9f30f1a38a306a4728a9a06a58b11","e03334588c63840b7054accd0b90f29c5890db6a6555ac0869a78a23297f1396","c3052485f32a96bfde75a2976c1238995522584ba464f04ff16a8a40af5e50d1","c220410b8e956fa157ce4e5e6ac871f0f433aa120c334d906ff1f5e2c7369e95","960a68ced7820108787135bdae5265d2cc4b511b7dcfd5b8f213432a8483daf1","5e8db4872785292074b394d821ae2fc10e4f8edc597776368aebbe8aefb24422","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","67fc055eb86a0632e2e072838f889ffe1754083cb13c8c80a06a7d895d877aae","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","3833c70307dc3d2b46cb6f2a8b6a90e4d7e7367a21ab18c481d7de0909a43e67","2887592574fcdfd087647c539dcb0fbe5af2521270dad4a37f9d17c16190d579","9dcd1a6ae84def6ce3e80b27a367912e5b8e9f15c039143820ab76f7ceb8f3ab","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","4fb0b7d532aa6fb850b6cd2f1ee4f00802d877b5c66a51903bc1fb0624126349","b90c59ac4682368a01c83881b814738eb151de8a58f52eb7edadea2bcffb11b9","8560a87b2e9f8e2c3808c8f6172c9b7eb6c9b08cb9f937db71c285ecf292c81d","ffe3931ff864f28d80ae2f33bd11123ad3d7bad9896b910a1e61504cc093e1f5","083c1bd82f8dc3a1ed6fc9e8eaddf141f7c05df418eca386598821e045253af9","274ebe605bd7f71ce161f9f5328febc7d547a2929f803f04b44ec4a7d8729517","6ca0207e70d985a24396583f55836b10dc181063ab6069733561bfde404d1bad","5908142efeaab38ffdf43927ee0af681ae77e0d7672b956dfb8b6c705dbfe106","f772b188b943549b5c5eb803133314b8aa7689eced80eed0b70e2f30ca07ab9c","0026b816ef05cfbf290e8585820eef0f13250438669107dfc44482bac007b14f","05d64cc1118031b29786632a9a0f6d7cf1dcacb303f27023a466cf3cdc860538","e0fff9119e1a5d2fdd46345734126cd6cb99c2d98a9debf0257047fe3937cc3f","d84398556ba4595ee6be554671da142cfe964cbdebb2f0c517a10f76f2b016c0","e275297155ec3251200abbb334c7f5641fecc68b2a9573e40eed50dff7584762","1fc49547f60101e7fac0d9113a52c29178be082d46d7525009aebafdbb170a69",{"version":"401845ce10d4d9848a8e39f5004446eef7c3db2de5e9341b8a17c9b00aefcc0a","affectsGlobalScope":true},"b4358a89fcd9c579f84a6c68e2ce44ca91b07e4db3f8f403c2b7a72c1a1e04b6","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438","65dfa4bc49ccd1355789abb6ae215b302a5b050fdee9651124fe7e826f33113c"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":6,"useDefineForClassFields":true},"fileIdsList":[[88,151],[151],[88,89,90,91,92,151],[88,90,151],[95,151],[97,151],[102,104,151],[101,102,103,151],[122,123,151,158,159],[123,151,158],[151,162],[151,167],[151,168],[106,151],[151,172,174,175,176,177,178,179,180,181,182,183,184],[151,172,173,175,176,177,178,179,180,181,182,183,184],[151,173,174,175,176,177,178,179,180,181,182,183,184],[151,172,173,174,176,177,178,179,180,181,182,183,184],[151,172,173,174,175,177,178,179,180,181,182,183,184],[151,172,173,174,175,176,178,179,180,181,182,183,184],[151,172,173,174,175,176,177,179,180,181,182,183,184],[151,172,173,174,175,176,177,178,180,181,182,183,184],[151,172,173,174,175,176,177,178,179,181,182,183,184],[151,172,173,174,175,176,177,178,179,180,182,183,184],[151,172,173,174,175,176,177,178,179,180,181,183,184],[151,172,173,174,175,176,177,178,179,180,181,182,184],[151,172,173,174,175,176,177,178,179,180,181,182,183],[125,150,151,187,188,238],[107,151],[110,151],[111,116,142,151],[112,122,123,130,139,150,151],[112,113,122,130,151],[114,151],[115,116,123,131,151],[116,139,147,151],[117,119,122,130,151],[118,151],[119,120,151],[121,122,151],[122,151],[122,123,124,139,150,151],[122,123,124,139,151],[125,130,139,150,151],[122,123,125,126,130,139,147,150,151],[125,127,139,147,150,151],[107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157],[122,128,151],[129,150,151],[119,122,130,139,151],[131,151],[132,151],[110,133,151],[134,149,151,155],[135,151],[136,151],[122,137,151],[137,138,151,153],[111,122,139,140,141,151],[111,139,141,151],[139,140,151],[142,151],[143,151],[122,145,146,151],[145,146,151],[116,130,147,151],[148,151],[130,149,151],[111,125,136,150,151],[116,151],[139,151,152],[151,153],[151,154],[111,116,122,124,133,139,150,151,153,155],[139,151,156],[122,139,147,151,158,194,195,198,199],[59,151],[59,151,203],[59,151,205],[151,205,206,207,208,209],[55,56,57,58,151],[151,215],[151,158,220,221,222,223,224,225,226,227,228,229,230],[151,219,220,229],[151,220,229],[151,212,219,220,229],[151,220],[116,151,219,229],[151,219,220,221,222,223,224,225,226,227,228,230],[116,151,158,214,215,216,218,231],[122,125,127,139,147,150,151,156,158],[151,235],[122,139,151,158],[125,139,151,158],[151,158,195,196,197],[151,158],[139,151,158,195],[60,76,151],[59,60,71,76,77,78,80,82,83,84,151],[60,151],[60,79,151],[59,60,151],[59,60,79,151],[60,81,151],[59,60,71,151],[60,71,76,80,85,151],[59,60,70,71,72,151],[59,60,70,151],[60,70,72,73,74,75,151],[60,61,62,63,64,65,66,67,68,69,151],[76],[59,77,80,83],[79],[59],[59,79],[81],[71,76,80,85],[59,70,72],[59,70],[70,72,73,74,75],[61,62,63,64,65,66,67,68,69]],"referencedMap":[[90,1],[88,2],[87,2],[93,3],[89,1],[91,4],[92,1],[94,2],[96,5],[95,2],[98,6],[97,2],[99,2],[100,2],[105,7],[101,2],[104,8],[102,2],[106,2],[160,9],[161,10],[163,11],[164,2],[165,2],[166,2],[167,2],[168,12],[169,13],[170,2],[103,2],[171,14],[173,15],[174,16],[172,17],[175,18],[176,19],[177,20],[178,21],[179,22],[180,23],[181,24],[182,25],[183,26],[184,27],[185,11],[186,2],[159,2],[188,2],[189,28],[107,29],[108,29],[110,30],[111,31],[112,32],[113,33],[114,34],[115,35],[116,36],[117,37],[118,38],[119,39],[120,39],[121,40],[122,41],[123,42],[124,43],[109,2],[157,2],[125,44],[126,45],[127,46],[158,47],[128,48],[129,49],[130,50],[131,51],[132,52],[133,53],[134,54],[135,55],[136,56],[137,57],[138,58],[139,59],[141,60],[140,61],[142,62],[143,63],[144,2],[145,64],[146,65],[147,66],[148,67],[149,68],[150,69],[151,70],[152,71],[153,72],[154,73],[155,74],[156,75],[190,2],[191,41],[192,2],[193,2],[199,76],[200,2],[57,2],[201,2],[202,77],[203,78],[204,77],[206,79],[208,77],[205,77],[207,79],[209,2],[210,80],[55,2],[59,81],[60,77],[211,2],[58,2],[212,2],[213,2],[214,2],[216,82],[162,2],[217,2],[233,2],[231,83],[230,84],[221,85],[222,86],[223,86],[224,85],[225,85],[226,85],[227,87],[220,88],[228,84],[229,89],[232,90],[234,91],[235,2],[236,92],[237,93],[218,2],[56,2],[187,94],[198,95],[195,96],[197,97],[196,96],[194,2],[215,2],[219,2],[11,2],[12,2],[14,2],[13,2],[2,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[3,2],[4,2],[26,2],[23,2],[24,2],[25,2],[27,2],[28,2],[29,2],[5,2],[30,2],[31,2],[32,2],[33,2],[6,2],[34,2],[35,2],[36,2],[37,2],[7,2],[38,2],[43,2],[44,2],[39,2],[40,2],[41,2],[42,2],[8,2],[48,2],[45,2],[46,2],[47,2],[49,2],[9,2],[50,2],[51,2],[52,2],[53,2],[1,2],[10,2],[54,2],[77,98],[85,99],[71,100],[80,101],[79,102],[83,98],[78,100],[81,103],[82,104],[84,105],[86,106],[73,107],[72,100],[74,108],[75,100],[76,109],[61,100],[62,102],[63,100],[64,100],[65,100],[66,102],[67,102],[68,102],[69,100],[70,110]],"exportedModulesMap":[[90,1],[88,2],[87,2],[93,3],[89,1],[91,4],[92,1],[94,2],[96,5],[95,2],[98,6],[97,2],[99,2],[100,2],[105,7],[101,2],[104,8],[102,2],[106,2],[160,9],[161,10],[163,11],[164,2],[165,2],[166,2],[167,2],[168,12],[169,13],[170,2],[103,2],[171,14],[173,15],[174,16],[172,17],[175,18],[176,19],[177,20],[178,21],[179,22],[180,23],[181,24],[182,25],[183,26],[184,27],[185,11],[186,2],[159,2],[188,2],[189,28],[107,29],[108,29],[110,30],[111,31],[112,32],[113,33],[114,34],[115,35],[116,36],[117,37],[118,38],[119,39],[120,39],[121,40],[122,41],[123,42],[124,43],[109,2],[157,2],[125,44],[126,45],[127,46],[158,47],[128,48],[129,49],[130,50],[131,51],[132,52],[133,53],[134,54],[135,55],[136,56],[137,57],[138,58],[139,59],[141,60],[140,61],[142,62],[143,63],[144,2],[145,64],[146,65],[147,66],[148,67],[149,68],[150,69],[151,70],[152,71],[153,72],[154,73],[155,74],[156,75],[190,2],[191,41],[192,2],[193,2],[199,76],[200,2],[57,2],[201,2],[202,77],[203,78],[204,77],[206,79],[208,77],[205,77],[207,79],[209,2],[210,80],[55,2],[59,81],[60,77],[211,2],[58,2],[212,2],[213,2],[214,2],[216,82],[162,2],[217,2],[233,2],[231,83],[230,84],[221,85],[222,86],[223,86],[224,85],[225,85],[226,85],[227,87],[220,88],[228,84],[229,89],[232,90],[234,91],[235,2],[236,92],[237,93],[218,2],[56,2],[187,94],[198,95],[195,96],[197,97],[196,96],[194,2],[215,2],[219,2],[11,2],[12,2],[14,2],[13,2],[2,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[3,2],[4,2],[26,2],[23,2],[24,2],[25,2],[27,2],[28,2],[29,2],[5,2],[30,2],[31,2],[32,2],[33,2],[6,2],[34,2],[35,2],[36,2],[37,2],[7,2],[38,2],[43,2],[44,2],[39,2],[40,2],[41,2],[42,2],[8,2],[48,2],[45,2],[46,2],[47,2],[49,2],[9,2],[50,2],[51,2],[52,2],[53,2],[1,2],[10,2],[54,2],[77,111],[85,112],[80,113],[79,114],[83,111],[81,115],[82,116],[84,114],[86,117],[73,118],[74,119],[76,120],[62,114],[66,114],[67,114],[68,114],[70,121]],"semanticDiagnosticsPerFile":[90,88,87,93,89,91,92,94,96,95,98,97,99,100,105,101,104,102,106,160,161,163,164,165,166,167,168,169,170,103,171,173,174,172,175,176,177,178,179,180,181,182,183,184,185,186,159,188,189,107,108,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,109,157,125,126,127,158,128,129,130,131,132,133,134,135,136,137,138,139,141,140,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,190,191,192,193,199,200,57,201,202,203,204,206,208,205,207,209,210,55,59,60,211,58,212,213,214,216,162,217,233,231,230,221,222,223,224,225,226,227,220,228,229,232,234,235,236,237,218,56,187,198,195,197,196,194,215,219,11,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,34,35,36,37,7,38,43,44,39,40,41,42,8,48,45,46,47,49,9,50,51,52,53,1,10,54,77,85,71,80,79,83,78,81,82,84,86,73,72,74,75,76,61,62,63,64,65,66,67,68,69,70]},"version":"4.7.4"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contember/react-multipass-rendering",
3
3
  "license": "Apache-2.0",
4
- "version": "1.1.0-alpha.9",
4
+ "version": "1.1.0-beta.1",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/production/index.js",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "typings": "./dist/types/index.d.ts",
21
21
  "peerDependencies": {
22
- "react": "^17"
22
+ "react": "^17 || ^18"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "pnpm run build:js:dev && pnpm run build:js:prod",
@@ -80,7 +80,7 @@ export class ChildrenAnalyzer<
80
80
  }
81
81
 
82
82
  private processNode(
83
- node: ReactNode | Function,
83
+ node: ReactNode,
84
84
  staticContext: StaticContext,
85
85
  componentPath: ReactElement[],
86
86
  ): RawNodeRepresentation<AllLeavesRepresentation, AllBranchNodesRepresentation> {
@@ -1,12 +1,8 @@
1
1
  export class ChildrenAnalyzerError extends Error {
2
- public cause?: unknown
3
2
  public details?: string
4
3
 
5
- constructor(message: string, options?: { cause: unknown, details?: string }) {
6
- super(message)
4
+ constructor(message: string, options?: { cause: Error, details?: string }) {
5
+ super(message, options)
7
6
  this.details = options?.details
8
- if ((typeof options === 'object' && 'cause' in options)) {
9
- this.cause = options.cause
10
- }
11
7
  }
12
8
  }
@@ -1,6 +1,6 @@
1
1
  import type { ReactElement, ReactText } from 'react'
2
2
 
3
3
  export type UnconstrainedLeafRepresentationFactory<Props extends {}, Representation, StaticContext> = (
4
- node: ReactText | ReactElement<Props, any> | boolean | null | undefined | {},
4
+ node: ReactText | ReactElement<Props, any> | boolean | null | undefined,
5
5
  staticContext: StaticContext,
6
6
  ) => Representation