@module-federation/enhanced 0.0.0-perf-devtools-20260107043700 → 0.0.0-perf-website-code-usage-20260914033703

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 (289) hide show
  1. package/README.md +1 -1
  2. package/dist/CHANGELOG.md +2678 -0
  3. package/dist/README.md +213 -0
  4. package/dist/rstestmigrate.md +140 -0
  5. package/dist/src/_virtual/_rolldown/runtime.js +47 -0
  6. package/dist/src/index.d.ts +22 -18
  7. package/dist/src/index.js +47 -41
  8. package/dist/src/index.js.map +1 -1
  9. package/dist/src/lib/Constants.js +136 -116
  10. package/dist/src/lib/Constants.js.map +1 -1
  11. package/dist/src/lib/container/AsyncBoundaryPlugin.d.ts +20 -16
  12. package/dist/src/lib/container/AsyncBoundaryPlugin.js +137 -196
  13. package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -1
  14. package/dist/src/lib/container/ContainerEntryDependency.d.ts +25 -23
  15. package/dist/src/lib/container/ContainerEntryDependency.js +37 -39
  16. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
  17. package/dist/src/lib/container/ContainerEntryModule.d.ts +104 -79
  18. package/dist/src/lib/container/ContainerEntryModule.js +213 -234
  19. package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
  20. package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +15 -10
  21. package/dist/src/lib/container/ContainerEntryModuleFactory.js +21 -25
  22. package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -1
  23. package/dist/src/lib/container/ContainerExposedDependency.d.ts +26 -23
  24. package/dist/src/lib/container/ContainerExposedDependency.js +47 -47
  25. package/dist/src/lib/container/ContainerExposedDependency.js.map +1 -1
  26. package/dist/src/lib/container/ContainerPlugin.d.ts +12 -8
  27. package/dist/src/lib/container/ContainerPlugin.js +144 -213
  28. package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
  29. package/dist/src/lib/container/ContainerReferencePlugin.d.ts +16 -12
  30. package/dist/src/lib/container/ContainerReferencePlugin.js +72 -101
  31. package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -1
  32. package/dist/src/lib/container/FallbackDependency.d.ts +24 -19
  33. package/dist/src/lib/container/FallbackDependency.js +46 -44
  34. package/dist/src/lib/container/FallbackDependency.js.map +1 -1
  35. package/dist/src/lib/container/FallbackItemDependency.d.ts +13 -8
  36. package/dist/src/lib/container/FallbackItemDependency.js +24 -24
  37. package/dist/src/lib/container/FallbackItemDependency.js.map +1 -1
  38. package/dist/src/lib/container/FallbackModule.d.ts +82 -71
  39. package/dist/src/lib/container/FallbackModule.js +133 -145
  40. package/dist/src/lib/container/FallbackModule.js.map +1 -1
  41. package/dist/src/lib/container/FallbackModuleFactory.d.ts +15 -10
  42. package/dist/src/lib/container/FallbackModuleFactory.js +20 -24
  43. package/dist/src/lib/container/FallbackModuleFactory.js.map +1 -1
  44. package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +11 -7
  45. package/dist/src/lib/container/HoistContainerReferencesPlugin.js +124 -188
  46. package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -1
  47. package/dist/src/lib/container/ModuleFederationPlugin.d.ts +20 -16
  48. package/dist/src/lib/container/ModuleFederationPlugin.js +151 -170
  49. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  50. package/dist/src/lib/container/RemoteModule.d.ts +83 -74
  51. package/dist/src/lib/container/RemoteModule.js +149 -153
  52. package/dist/src/lib/container/RemoteModule.js.map +1 -1
  53. package/dist/src/lib/container/RemoteRuntimeModule.d.ts +12 -7
  54. package/dist/src/lib/container/RemoteRuntimeModule.js +86 -120
  55. package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -1
  56. package/dist/src/lib/container/RemoteToExternalDependency.d.ts +13 -8
  57. package/dist/src/lib/container/RemoteToExternalDependency.js +25 -23
  58. package/dist/src/lib/container/RemoteToExternalDependency.js.map +1 -1
  59. package/dist/src/lib/container/constant.d.ts +3 -0
  60. package/dist/src/lib/container/constant.js +11 -14
  61. package/dist/src/lib/container/constant.js.map +1 -1
  62. package/dist/src/lib/container/options.d.ts +12 -3
  63. package/dist/src/lib/container/options.js +51 -69
  64. package/dist/src/lib/container/options.js.map +1 -1
  65. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.d.ts +14 -9
  66. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js +56 -64
  67. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js.map +1 -1
  68. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.d.ts +23 -19
  69. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js +70 -101
  70. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js.map +1 -1
  71. package/dist/src/lib/container/runtime/FederationModulesPlugin.d.ts +20 -16
  72. package/dist/src/lib/container/runtime/FederationModulesPlugin.js +38 -46
  73. package/dist/src/lib/container/runtime/FederationModulesPlugin.js.map +1 -1
  74. package/dist/src/lib/container/runtime/FederationRuntimeDependency.d.ts +9 -4
  75. package/dist/src/lib/container/runtime/FederationRuntimeDependency.js +16 -12
  76. package/dist/src/lib/container/runtime/FederationRuntimeDependency.js.map +1 -1
  77. package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +16 -11
  78. package/dist/src/lib/container/runtime/FederationRuntimeModule.js +39 -46
  79. package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +1 -1
  80. package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +31 -18
  81. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +263 -293
  82. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
  83. package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +9 -4
  84. package/dist/src/lib/container/runtime/getFederationGlobal.js +43 -41
  85. package/dist/src/lib/container/runtime/getFederationGlobal.js.map +1 -1
  86. package/dist/src/lib/container/runtime/normalizeToPosixPath.d.ts +5 -0
  87. package/dist/src/lib/container/runtime/normalizeToPosixPath.js +20 -0
  88. package/dist/src/lib/container/runtime/normalizeToPosixPath.js.map +1 -0
  89. package/dist/src/lib/container/runtime/utils.d.ts +22 -7
  90. package/dist/src/lib/container/runtime/utils.js +80 -102
  91. package/dist/src/lib/container/runtime/utils.js.map +1 -1
  92. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +15 -10
  93. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +27 -25
  94. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -1
  95. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +77 -67
  96. package/dist/src/lib/sharing/ConsumeSharedModule.js +190 -214
  97. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
  98. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +13 -9
  99. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +308 -472
  100. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  101. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +16 -11
  102. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +108 -123
  103. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
  104. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +14 -9
  105. package/dist/src/lib/sharing/ProvideForSharedDependency.js +25 -25
  106. package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -1
  107. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +44 -38
  108. package/dist/src/lib/sharing/ProvideSharedDependency.js +72 -74
  109. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
  110. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +91 -81
  111. package/dist/src/lib/sharing/ProvideSharedModule.js +177 -181
  112. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
  113. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +14 -9
  114. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +19 -25
  115. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
  116. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +27 -21
  117. package/dist/src/lib/sharing/ProvideSharedPlugin.js +341 -548
  118. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  119. package/dist/src/lib/sharing/SharePlugin.d.ts +55 -12
  120. package/dist/src/lib/sharing/SharePlugin.js +91 -91
  121. package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
  122. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +12 -7
  123. package/dist/src/lib/sharing/ShareRuntimeModule.js +81 -99
  124. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
  125. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +11 -7
  126. package/dist/src/lib/sharing/resolveMatchedConfigs.js +58 -71
  127. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
  128. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.d.ts +25 -0
  129. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js +85 -0
  130. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js.map +1 -0
  131. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.d.ts +41 -0
  132. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js +227 -0
  133. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js.map +1 -0
  134. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.d.ts +26 -0
  135. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js +32 -0
  136. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js.map +1 -0
  137. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.d.ts +32 -0
  138. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js +94 -0
  139. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js.map +1 -0
  140. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.d.ts +31 -0
  141. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js +49 -0
  142. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js.map +1 -0
  143. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.d.ts +22 -0
  144. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js +35 -0
  145. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js.map +1 -0
  146. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.d.ts +87 -0
  147. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js +144 -0
  148. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js.map +1 -0
  149. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.d.ts +16 -0
  150. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js +23 -0
  151. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js.map +1 -0
  152. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.d.ts +23 -0
  153. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js +163 -0
  154. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js.map +1 -0
  155. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.d.ts +22 -0
  156. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js +28 -0
  157. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js.map +1 -0
  158. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.d.ts +20 -0
  159. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js +44 -0
  160. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js.map +1 -0
  161. package/dist/src/lib/sharing/utils.d.ts +27 -23
  162. package/dist/src/lib/sharing/utils.js +224 -366
  163. package/dist/src/lib/sharing/utils.js.map +1 -1
  164. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.d.ts +11 -7
  165. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js +56 -75
  166. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js.map +1 -1
  167. package/dist/src/lib/startup/StartupHelpers.d.ts +11 -6
  168. package/dist/src/lib/startup/StartupHelpers.js +128 -178
  169. package/dist/src/lib/startup/StartupHelpers.js.map +1 -1
  170. package/dist/src/rspack.d.ts +3 -2
  171. package/dist/src/rspack.js +35 -10
  172. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +8 -4
  173. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -16
  174. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -1
  175. package/dist/src/runtime.d.ts +1 -1
  176. package/dist/src/runtime.js +11 -18
  177. package/dist/src/runtime.mjs +3 -0
  178. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +13 -5
  179. package/dist/src/schemas/container/ContainerPlugin.check.js +767 -1220
  180. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
  181. package/dist/src/schemas/container/ContainerPlugin.d.ts +267 -268
  182. package/dist/src/schemas/container/ContainerPlugin.js +269 -361
  183. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
  184. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +13 -5
  185. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +335 -443
  186. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
  187. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +102 -99
  188. package/dist/src/schemas/container/ContainerReferencePlugin.js +122 -162
  189. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
  190. package/dist/src/schemas/container/ExternalsType.check.d.ts +13 -5
  191. package/dist/src/schemas/container/ExternalsType.check.js +36 -62
  192. package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
  193. package/dist/src/schemas/container/ExternalsType.d.ts +5 -2
  194. package/dist/src/schemas/container/ExternalsType.js +8 -11
  195. package/dist/src/schemas/container/ExternalsType.js.map +1 -1
  196. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +3020 -4301
  197. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  198. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +828 -758
  199. package/dist/src/schemas/container/ModuleFederationPlugin.js +788 -993
  200. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  201. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +13 -5
  202. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +568 -739
  203. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
  204. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +197 -189
  205. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +212 -233
  206. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
  207. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +13 -5
  208. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +598 -775
  209. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
  210. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +184 -176
  211. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +196 -224
  212. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
  213. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts +12 -4
  214. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +285 -482
  215. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
  216. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +103 -100
  217. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +104 -126
  218. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
  219. package/dist/src/schemas/sharing/SharePlugin.check.d.ts +13 -5
  220. package/dist/src/schemas/sharing/SharePlugin.check.js +749 -794
  221. package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
  222. package/dist/src/schemas/sharing/SharePlugin.d.ts +245 -205
  223. package/dist/src/schemas/sharing/SharePlugin.js +256 -253
  224. package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
  225. package/dist/src/utils.d.ts +3 -0
  226. package/dist/src/utils.js +35 -26
  227. package/dist/src/utils.js.map +1 -1
  228. package/dist/src/webpack.d.ts +2 -2
  229. package/dist/src/webpack.js +6 -40
  230. package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +9 -7
  231. package/dist/src/wrapper/AsyncBoundaryPlugin.js +13 -17
  232. package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -1
  233. package/dist/src/wrapper/BaseWrapperPlugin.d.ts +32 -0
  234. package/dist/src/wrapper/BaseWrapperPlugin.js +43 -0
  235. package/dist/src/wrapper/BaseWrapperPlugin.js.map +1 -0
  236. package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +10 -7
  237. package/dist/src/wrapper/ConsumeSharedPlugin.js +13 -17
  238. package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -1
  239. package/dist/src/wrapper/ContainerPlugin.d.ts +9 -7
  240. package/dist/src/wrapper/ContainerPlugin.js +13 -17
  241. package/dist/src/wrapper/ContainerPlugin.js.map +1 -1
  242. package/dist/src/wrapper/ContainerReferencePlugin.d.ts +9 -7
  243. package/dist/src/wrapper/ContainerReferencePlugin.js +13 -17
  244. package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -1
  245. package/dist/src/wrapper/FederationModulesPlugin.d.ts +18 -10
  246. package/dist/src/wrapper/FederationModulesPlugin.js +20 -21
  247. package/dist/src/wrapper/FederationModulesPlugin.js.map +1 -1
  248. package/dist/src/wrapper/FederationRuntimePlugin.d.ts +11 -8
  249. package/dist/src/wrapper/FederationRuntimePlugin.js +19 -20
  250. package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -1
  251. package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +8 -5
  252. package/dist/src/wrapper/HoistContainerReferencesPlugin.js +13 -16
  253. package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -1
  254. package/dist/src/wrapper/ModuleFederationPlugin.d.ts +12 -9
  255. package/dist/src/wrapper/ModuleFederationPlugin.js +71 -104
  256. package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -1
  257. package/dist/src/wrapper/ProvideSharedPlugin.d.ts +10 -7
  258. package/dist/src/wrapper/ProvideSharedPlugin.js +13 -17
  259. package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -1
  260. package/dist/src/wrapper/SharePlugin.d.ts +10 -7
  261. package/dist/src/wrapper/SharePlugin.js +13 -17
  262. package/dist/src/wrapper/SharePlugin.js.map +1 -1
  263. package/dist/src/wrapper/TreeShakingSharedPlugin.d.ts +10 -0
  264. package/dist/src/wrapper/TreeShakingSharedPlugin.js +15 -0
  265. package/dist/src/wrapper/TreeShakingSharedPlugin.js.map +1 -0
  266. package/package.json +27 -29
  267. package/dist/package.json +0 -110
  268. package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +0 -57
  269. package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +0 -33
  270. package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +0 -4
  271. package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +0 -28
  272. package/dist/src/declarations/plugins/container/Template.d.ts +0 -198
  273. package/dist/src/declarations/plugins/container/WebpackError.d.ts +0 -33
  274. package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +0 -82
  275. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +0 -96
  276. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +0 -98
  277. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +0 -108
  278. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.d.ts +0 -20
  279. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js +0 -219
  280. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js.map +0 -1
  281. package/dist/src/prefetch.d.ts +0 -2
  282. package/dist/src/prefetch.js +0 -8
  283. package/dist/src/prefetch.js.map +0 -1
  284. package/dist/src/rspack.js.map +0 -1
  285. package/dist/src/runtime.js.map +0 -1
  286. package/dist/src/types/runtime.d.ts +0 -10
  287. package/dist/src/types/runtime.js +0 -3
  288. package/dist/src/types/runtime.js.map +0 -1
  289. package/dist/src/webpack.js.map +0 -1
@@ -1,799 +1,754 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validate = void 0;
4
- // @ts-nocheck
5
- /* eslint-disable */
6
- /*
7
- * This file was automatically generated.
8
- * DO NOT MODIFY BY HAND.
9
- */
10
- exports.validate = a;
11
- exports.default = a;
12
- const r = {
13
- type: 'object',
14
- additionalProperties: !1,
15
- properties: {
16
- eager: { type: 'boolean' },
17
- exclude: { $ref: '#/definitions/IncludeExcludeOptions' },
18
- include: { $ref: '#/definitions/IncludeExcludeOptions' },
19
- import: { anyOf: [{ enum: [!1] }, { $ref: '#/definitions/SharedItem' }] },
20
- packageName: { type: 'string', minLength: 1 },
21
- requiredVersion: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
22
- shareKey: { type: 'string', minLength: 1 },
23
- shareScope: {
24
- anyOf: [
25
- { type: 'string', minLength: 1 },
26
- { type: 'array', items: { type: 'string', minLength: 1 } },
27
- ],
28
- },
29
- singleton: { type: 'boolean' },
30
- strictVersion: { type: 'boolean' },
31
- version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
32
- request: { type: 'string', minLength: 1 },
33
- layer: { type: 'string', minLength: 1 },
34
- issuerLayer: { type: 'string', minLength: 1 },
35
- allowNodeModulesSuffixMatch: { type: 'boolean' },
36
- },
37
- }, e = {
38
- type: 'object',
39
- properties: {
40
- request: { type: ['string', 'object'] },
41
- version: { type: 'string' },
42
- fallbackVersion: { type: 'string' },
43
- },
44
- additionalProperties: !1,
45
- anyOf: [
46
- { required: ['request'] },
47
- { required: ['version'] },
48
- { required: ['fallbackVersion'] },
49
- ],
50
- }, t = Object.prototype.hasOwnProperty;
51
- function s(n, { instancePath: o = '', parentData: a, parentDataProperty: i, rootData: l = n, } = {}) {
52
- let p = null, f = 0;
53
- if (0 === f) {
54
- if (!n || 'object' != typeof n || Array.isArray(n))
55
- return (s.errors = [{ params: { type: 'object' } }]), !1;
56
- {
57
- const o = f;
58
- for (const e in n)
59
- if (!t.call(r.properties, e))
60
- return (s.errors = [{ params: { additionalProperty: e } }]), !1;
61
- if (o === f) {
62
- if (void 0 !== n.eager) {
63
- const r = f;
64
- if ('boolean' != typeof n.eager)
65
- return (s.errors = [{ params: { type: 'boolean' } }]), !1;
66
- var u = r === f;
67
- }
68
- else
69
- u = !0;
70
- if (u) {
71
- if (void 0 !== n.exclude) {
72
- let r = n.exclude;
73
- const t = f, o = f, a = f;
74
- let i = !1;
75
- const l = f;
76
- if (r && 'object' == typeof r && !Array.isArray(r)) {
77
- let e;
78
- if (void 0 === r.request && (e = 'request')) {
79
- const r = { params: { missingProperty: e } };
80
- null === p ? (p = [r]) : p.push(r), f++;
81
- }
82
- }
83
- var c = l === f;
84
- if (((i = i || c), !i)) {
85
- const e = f;
86
- if (r && 'object' == typeof r && !Array.isArray(r)) {
87
- let e;
88
- if (void 0 === r.version && (e = 'version')) {
89
- const r = { params: { missingProperty: e } };
90
- null === p ? (p = [r]) : p.push(r), f++;
91
- }
92
- }
93
- if (((c = e === f), (i = i || c), !i)) {
94
- const e = f;
95
- if (r && 'object' == typeof r && !Array.isArray(r)) {
96
- let e;
97
- if (void 0 === r.fallbackVersion && (e = 'fallbackVersion')) {
98
- const r = { params: { missingProperty: e } };
99
- null === p ? (p = [r]) : p.push(r), f++;
100
- }
101
- }
102
- (c = e === f), (i = i || c);
103
- }
104
- }
105
- if (!i) {
106
- const r = { params: {} };
107
- return (null === p ? (p = [r]) : p.push(r), f++, (s.errors = p), !1);
108
- }
109
- if (((f = a),
110
- null !== p && (a ? (p.length = a) : (p = null)),
111
- f === o)) {
112
- if (!r || 'object' != typeof r || Array.isArray(r))
113
- return (s.errors = [{ params: { type: 'object' } }]), !1;
114
- {
115
- const t = f;
116
- for (const e in r)
117
- if ('request' !== e &&
118
- 'version' !== e &&
119
- 'fallbackVersion' !== e)
120
- return ((s.errors = [{ params: { additionalProperty: e } }]), !1);
121
- if (t === f) {
122
- if (void 0 !== r.request) {
123
- let t = r.request;
124
- const n = f;
125
- if ('string' != typeof t &&
126
- (!t || 'object' != typeof t || Array.isArray(t)))
127
- return ((s.errors = [
128
- { params: { type: e.properties.request.type } },
129
- ]),
130
- !1);
131
- var y = n === f;
132
- }
133
- else
134
- y = !0;
135
- if (y) {
136
- if (void 0 !== r.version) {
137
- const e = f;
138
- if ('string' != typeof r.version)
139
- return ((s.errors = [{ params: { type: 'string' } }]), !1);
140
- y = e === f;
141
- }
142
- else
143
- y = !0;
144
- if (y)
145
- if (void 0 !== r.fallbackVersion) {
146
- const e = f;
147
- if ('string' != typeof r.fallbackVersion)
148
- return ((s.errors = [{ params: { type: 'string' } }]), !1);
149
- y = e === f;
150
- }
151
- else
152
- y = !0;
153
- }
154
- }
155
- }
156
- }
157
- u = t === f;
158
- }
159
- else
160
- u = !0;
161
- if (u) {
162
- if (void 0 !== n.include) {
163
- let r = n.include;
164
- const t = f, o = f, a = f;
165
- let i = !1;
166
- const l = f;
167
- if (r && 'object' == typeof r && !Array.isArray(r)) {
168
- let e;
169
- if (void 0 === r.request && (e = 'request')) {
170
- const r = { params: { missingProperty: e } };
171
- null === p ? (p = [r]) : p.push(r), f++;
172
- }
173
- }
174
- var h = l === f;
175
- if (((i = i || h), !i)) {
176
- const e = f;
177
- if (r && 'object' == typeof r && !Array.isArray(r)) {
178
- let e;
179
- if (void 0 === r.version && (e = 'version')) {
180
- const r = { params: { missingProperty: e } };
181
- null === p ? (p = [r]) : p.push(r), f++;
182
- }
183
- }
184
- if (((h = e === f), (i = i || h), !i)) {
185
- const e = f;
186
- if (r && 'object' == typeof r && !Array.isArray(r)) {
187
- let e;
188
- if (void 0 === r.fallbackVersion &&
189
- (e = 'fallbackVersion')) {
190
- const r = { params: { missingProperty: e } };
191
- null === p ? (p = [r]) : p.push(r), f++;
192
- }
193
- }
194
- (h = e === f), (i = i || h);
195
- }
196
- }
197
- if (!i) {
198
- const r = { params: {} };
199
- return (null === p ? (p = [r]) : p.push(r), f++, (s.errors = p), !1);
200
- }
201
- if (((f = a),
202
- null !== p && (a ? (p.length = a) : (p = null)),
203
- f === o)) {
204
- if (!r || 'object' != typeof r || Array.isArray(r))
205
- return (s.errors = [{ params: { type: 'object' } }]), !1;
206
- {
207
- const t = f;
208
- for (const e in r)
209
- if ('request' !== e &&
210
- 'version' !== e &&
211
- 'fallbackVersion' !== e)
212
- return ((s.errors = [{ params: { additionalProperty: e } }]), !1);
213
- if (t === f) {
214
- if (void 0 !== r.request) {
215
- let t = r.request;
216
- const n = f;
217
- if ('string' != typeof t &&
218
- (!t || 'object' != typeof t || Array.isArray(t)))
219
- return ((s.errors = [
220
- { params: { type: e.properties.request.type } },
221
- ]),
222
- !1);
223
- var g = n === f;
224
- }
225
- else
226
- g = !0;
227
- if (g) {
228
- if (void 0 !== r.version) {
229
- const e = f;
230
- if ('string' != typeof r.version)
231
- return ((s.errors = [{ params: { type: 'string' } }]), !1);
232
- g = e === f;
233
- }
234
- else
235
- g = !0;
236
- if (g)
237
- if (void 0 !== r.fallbackVersion) {
238
- const e = f;
239
- if ('string' != typeof r.fallbackVersion)
240
- return ((s.errors = [{ params: { type: 'string' } }]), !1);
241
- g = e === f;
242
- }
243
- else
244
- g = !0;
245
- }
246
- }
247
- }
248
- }
249
- u = t === f;
250
- }
251
- else
252
- u = !0;
253
- if (u) {
254
- if (void 0 !== n.import) {
255
- let e = n.import;
256
- const t = f, o = f;
257
- let a = !1;
258
- const i = f;
259
- if (!1 !== e) {
260
- const e = {
261
- params: {
262
- allowedValues: r.properties.import.anyOf[0].enum,
263
- },
264
- };
265
- null === p ? (p = [e]) : p.push(e), f++;
266
- }
267
- var m = i === f;
268
- if (((a = a || m), !a)) {
269
- const r = f;
270
- if (f == f)
271
- if ('string' == typeof e) {
272
- if (e.length < 1) {
273
- const r = { params: {} };
274
- null === p ? (p = [r]) : p.push(r), f++;
275
- }
276
- }
277
- else {
278
- const r = { params: { type: 'string' } };
279
- null === p ? (p = [r]) : p.push(r), f++;
280
- }
281
- (m = r === f), (a = a || m);
282
- }
283
- if (!a) {
284
- const r = { params: {} };
285
- return (null === p ? (p = [r]) : p.push(r), f++, (s.errors = p), !1);
286
- }
287
- (f = o),
288
- null !== p && (o ? (p.length = o) : (p = null)),
289
- (u = t === f);
290
- }
291
- else
292
- u = !0;
293
- if (u) {
294
- if (void 0 !== n.packageName) {
295
- let r = n.packageName;
296
- const e = f;
297
- if (f === e) {
298
- if ('string' != typeof r)
299
- return (s.errors = [{ params: { type: 'string' } }]), !1;
300
- if (r.length < 1)
301
- return (s.errors = [{ params: {} }]), !1;
302
- }
303
- u = e === f;
304
- }
305
- else
306
- u = !0;
307
- if (u) {
308
- if (void 0 !== n.requiredVersion) {
309
- let e = n.requiredVersion;
310
- const t = f, o = f;
311
- let a = !1;
312
- const i = f;
313
- if (!1 !== e) {
314
- const e = {
315
- params: {
316
- allowedValues: r.properties.requiredVersion.anyOf[0].enum,
317
- },
318
- };
319
- null === p ? (p = [e]) : p.push(e), f++;
320
- }
321
- var d = i === f;
322
- if (((a = a || d), !a)) {
323
- const r = f;
324
- if ('string' != typeof e) {
325
- const r = { params: { type: 'string' } };
326
- null === p ? (p = [r]) : p.push(r), f++;
327
- }
328
- (d = r === f), (a = a || d);
329
- }
330
- if (!a) {
331
- const r = { params: {} };
332
- return (null === p ? (p = [r]) : p.push(r),
333
- f++,
334
- (s.errors = p),
335
- !1);
336
- }
337
- (f = o),
338
- null !== p && (o ? (p.length = o) : (p = null)),
339
- (u = t === f);
340
- }
341
- else
342
- u = !0;
343
- if (u) {
344
- if (void 0 !== n.shareKey) {
345
- let r = n.shareKey;
346
- const e = f;
347
- if (f === e) {
348
- if ('string' != typeof r)
349
- return ((s.errors = [{ params: { type: 'string' } }]), !1);
350
- if (r.length < 1)
351
- return (s.errors = [{ params: {} }]), !1;
352
- }
353
- u = e === f;
354
- }
355
- else
356
- u = !0;
357
- if (u) {
358
- if (void 0 !== n.shareScope) {
359
- let r = n.shareScope;
360
- const e = f, t = f;
361
- let o = !1;
362
- const a = f;
363
- if (f === a)
364
- if ('string' == typeof r) {
365
- if (r.length < 1) {
366
- const r = { params: {} };
367
- null === p ? (p = [r]) : p.push(r), f++;
368
- }
369
- }
370
- else {
371
- const r = { params: { type: 'string' } };
372
- null === p ? (p = [r]) : p.push(r), f++;
373
- }
374
- var v = a === f;
375
- if (((o = o || v), !o)) {
376
- const e = f;
377
- if (f === e)
378
- if (Array.isArray(r)) {
379
- const e = r.length;
380
- for (let t = 0; t < e; t++) {
381
- let e = r[t];
382
- const s = f;
383
- if (f === s)
384
- if ('string' == typeof e) {
385
- if (e.length < 1) {
386
- const r = { params: {} };
387
- null === p ? (p = [r]) : p.push(r), f++;
388
- }
389
- }
390
- else {
391
- const r = { params: { type: 'string' } };
392
- null === p ? (p = [r]) : p.push(r), f++;
393
- }
394
- if (s !== f)
395
- break;
396
- }
397
- }
398
- else {
399
- const r = { params: { type: 'array' } };
400
- null === p ? (p = [r]) : p.push(r), f++;
401
- }
402
- (v = e === f), (o = o || v);
403
- }
404
- if (!o) {
405
- const r = { params: {} };
406
- return (null === p ? (p = [r]) : p.push(r),
407
- f++,
408
- (s.errors = p),
409
- !1);
410
- }
411
- (f = t),
412
- null !== p && (t ? (p.length = t) : (p = null)),
413
- (u = e === f);
414
- }
415
- else
416
- u = !0;
417
- if (u) {
418
- if (void 0 !== n.singleton) {
419
- const r = f;
420
- if ('boolean' != typeof n.singleton)
421
- return ((s.errors = [{ params: { type: 'boolean' } }]), !1);
422
- u = r === f;
423
- }
424
- else
425
- u = !0;
426
- if (u) {
427
- if (void 0 !== n.strictVersion) {
428
- const r = f;
429
- if ('boolean' != typeof n.strictVersion)
430
- return ((s.errors = [{ params: { type: 'boolean' } }]),
431
- !1);
432
- u = r === f;
433
- }
434
- else
435
- u = !0;
436
- if (u) {
437
- if (void 0 !== n.version) {
438
- let e = n.version;
439
- const t = f, o = f;
440
- let a = !1;
441
- const i = f;
442
- if (!1 !== e) {
443
- const e = {
444
- params: {
445
- allowedValues: r.properties.version.anyOf[0].enum,
446
- },
447
- };
448
- null === p ? (p = [e]) : p.push(e), f++;
449
- }
450
- var b = i === f;
451
- if (((a = a || b), !a)) {
452
- const r = f;
453
- if ('string' != typeof e) {
454
- const r = { params: { type: 'string' } };
455
- null === p ? (p = [r]) : p.push(r), f++;
456
- }
457
- (b = r === f), (a = a || b);
458
- }
459
- if (!a) {
460
- const r = { params: {} };
461
- return (null === p ? (p = [r]) : p.push(r),
462
- f++,
463
- (s.errors = p),
464
- !1);
465
- }
466
- (f = o),
467
- null !== p && (o ? (p.length = o) : (p = null)),
468
- (u = t === f);
469
- }
470
- else
471
- u = !0;
472
- if (u) {
473
- if (void 0 !== n.request) {
474
- let r = n.request;
475
- const e = f;
476
- if (f === e) {
477
- if ('string' != typeof r)
478
- return ((s.errors = [
479
- { params: { type: 'string' } },
480
- ]),
481
- !1);
482
- if (r.length < 1)
483
- return (s.errors = [{ params: {} }]), !1;
484
- }
485
- u = e === f;
486
- }
487
- else
488
- u = !0;
489
- if (u) {
490
- if (void 0 !== n.layer) {
491
- let r = n.layer;
492
- const e = f;
493
- if (f === e) {
494
- if ('string' != typeof r)
495
- return ((s.errors = [
496
- { params: { type: 'string' } },
497
- ]),
498
- !1);
499
- if (r.length < 1)
500
- return (s.errors = [{ params: {} }]), !1;
501
- }
502
- u = e === f;
503
- }
504
- else
505
- u = !0;
506
- if (u) {
507
- if (void 0 !== n.issuerLayer) {
508
- let r = n.issuerLayer;
509
- const e = f;
510
- if (f === e) {
511
- if ('string' != typeof r)
512
- return ((s.errors = [
513
- { params: { type: 'string' } },
514
- ]),
515
- !1);
516
- if (r.length < 1)
517
- return ((s.errors = [{ params: {} }]), !1);
518
- }
519
- u = e === f;
520
- }
521
- else
522
- u = !0;
523
- if (u)
524
- if (void 0 !== n.allowNodeModulesSuffixMatch) {
525
- const r = f;
526
- if ('boolean' !=
527
- typeof n.allowNodeModulesSuffixMatch)
528
- return ((s.errors = [
529
- { params: { type: 'boolean' } },
530
- ]),
531
- !1);
532
- u = r === f;
533
- }
534
- else
535
- u = !0;
536
- }
537
- }
538
- }
539
- }
540
- }
541
- }
542
- }
543
- }
544
- }
545
- }
546
- }
547
- }
548
- }
549
- }
550
- }
551
- }
552
- return (s.errors = p), 0 === f;
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.js');
3
+
4
+ //#region src/schemas/sharing/SharePlugin.check.ts
5
+ var SharePlugin_check_exports = /* @__PURE__ */ require_runtime.__exportAll({
6
+ default: () => SharePlugin_check_default,
7
+ validate: () => validate
8
+ });
9
+ function n(o, { instancePath: i = "", parentData: a, parentDataProperty: l, rootData: p = o } = {}) {
10
+ let f = null, u = 0;
11
+ if (0 === u) {
12
+ if (!o || "object" != typeof o || Array.isArray(o)) return n.errors = [{ params: { type: "object" } }], !1;
13
+ {
14
+ const i = u;
15
+ for (const r in o) if (!s.call(e.properties, r)) return n.errors = [{ params: { additionalProperty: r } }], !1;
16
+ if (i === u) {
17
+ if (void 0 !== o.eager) {
18
+ const e = u;
19
+ if ("boolean" != typeof o.eager) return n.errors = [{ params: { type: "boolean" } }], !1;
20
+ var c = e === u;
21
+ } else c = !0;
22
+ if (c) {
23
+ if (void 0 !== o.exclude) {
24
+ let e = o.exclude;
25
+ const t = u, s = u, i = u;
26
+ let a = !1;
27
+ const l = u;
28
+ if (e && "object" == typeof e && !Array.isArray(e)) {
29
+ let r;
30
+ if (void 0 === e.request && (r = "request")) {
31
+ const e = { params: { missingProperty: r } };
32
+ null === f ? f = [e] : f.push(e), u++;
33
+ }
34
+ }
35
+ var y = l === u;
36
+ if (a = a || y, !a) {
37
+ const r = u;
38
+ if (e && "object" == typeof e && !Array.isArray(e)) {
39
+ let r;
40
+ if (void 0 === e.version && (r = "version")) {
41
+ const e = { params: { missingProperty: r } };
42
+ null === f ? f = [e] : f.push(e), u++;
43
+ }
44
+ }
45
+ if (y = r === u, a = a || y, !a) {
46
+ const r = u;
47
+ if (e && "object" == typeof e && !Array.isArray(e)) {
48
+ let r;
49
+ if (void 0 === e.fallbackVersion && (r = "fallbackVersion")) {
50
+ const e = { params: { missingProperty: r } };
51
+ null === f ? f = [e] : f.push(e), u++;
52
+ }
53
+ }
54
+ y = r === u, a = a || y;
55
+ }
56
+ }
57
+ if (!a) {
58
+ const e = { params: {} };
59
+ return null === f ? f = [e] : f.push(e), u++, n.errors = f, !1;
60
+ }
61
+ if (u = i, null !== f && (i ? f.length = i : f = null), u === s) {
62
+ if (!e || "object" != typeof e || Array.isArray(e)) return n.errors = [{ params: { type: "object" } }], !1;
63
+ {
64
+ const t = u;
65
+ for (const r in e) if ("request" !== r && "version" !== r && "fallbackVersion" !== r) return n.errors = [{ params: { additionalProperty: r } }], !1;
66
+ if (t === u) {
67
+ if (void 0 !== e.request) {
68
+ let t = e.request;
69
+ const s = u;
70
+ if ("string" != typeof t && (!t || "object" != typeof t || Array.isArray(t))) return n.errors = [{ params: { type: r.properties.request.type } }], !1;
71
+ var m = s === u;
72
+ } else m = !0;
73
+ if (m) {
74
+ if (void 0 !== e.version) {
75
+ const r = u;
76
+ if ("string" != typeof e.version) return n.errors = [{ params: { type: "string" } }], !1;
77
+ m = r === u;
78
+ } else m = !0;
79
+ if (m) if (void 0 !== e.fallbackVersion) {
80
+ const r = u;
81
+ if ("string" != typeof e.fallbackVersion) return n.errors = [{ params: { type: "string" } }], !1;
82
+ m = r === u;
83
+ } else m = !0;
84
+ }
85
+ }
86
+ }
87
+ }
88
+ c = t === u;
89
+ } else c = !0;
90
+ if (c) {
91
+ if (void 0 !== o.include) {
92
+ let e = o.include;
93
+ const t = u, s = u, i = u;
94
+ let a = !1;
95
+ const l = u;
96
+ if (e && "object" == typeof e && !Array.isArray(e)) {
97
+ let r;
98
+ if (void 0 === e.request && (r = "request")) {
99
+ const e = { params: { missingProperty: r } };
100
+ null === f ? f = [e] : f.push(e), u++;
101
+ }
102
+ }
103
+ var h = l === u;
104
+ if (a = a || h, !a) {
105
+ const r = u;
106
+ if (e && "object" == typeof e && !Array.isArray(e)) {
107
+ let r;
108
+ if (void 0 === e.version && (r = "version")) {
109
+ const e = { params: { missingProperty: r } };
110
+ null === f ? f = [e] : f.push(e), u++;
111
+ }
112
+ }
113
+ if (h = r === u, a = a || h, !a) {
114
+ const r = u;
115
+ if (e && "object" == typeof e && !Array.isArray(e)) {
116
+ let r;
117
+ if (void 0 === e.fallbackVersion && (r = "fallbackVersion")) {
118
+ const e = { params: { missingProperty: r } };
119
+ null === f ? f = [e] : f.push(e), u++;
120
+ }
121
+ }
122
+ h = r === u, a = a || h;
123
+ }
124
+ }
125
+ if (!a) {
126
+ const e = { params: {} };
127
+ return null === f ? f = [e] : f.push(e), u++, n.errors = f, !1;
128
+ }
129
+ if (u = i, null !== f && (i ? f.length = i : f = null), u === s) {
130
+ if (!e || "object" != typeof e || Array.isArray(e)) return n.errors = [{ params: { type: "object" } }], !1;
131
+ {
132
+ const t = u;
133
+ for (const r in e) if ("request" !== r && "version" !== r && "fallbackVersion" !== r) return n.errors = [{ params: { additionalProperty: r } }], !1;
134
+ if (t === u) {
135
+ if (void 0 !== e.request) {
136
+ let t = e.request;
137
+ const s = u;
138
+ if ("string" != typeof t && (!t || "object" != typeof t || Array.isArray(t))) return n.errors = [{ params: { type: r.properties.request.type } }], !1;
139
+ var g = s === u;
140
+ } else g = !0;
141
+ if (g) {
142
+ if (void 0 !== e.version) {
143
+ const r = u;
144
+ if ("string" != typeof e.version) return n.errors = [{ params: { type: "string" } }], !1;
145
+ g = r === u;
146
+ } else g = !0;
147
+ if (g) if (void 0 !== e.fallbackVersion) {
148
+ const r = u;
149
+ if ("string" != typeof e.fallbackVersion) return n.errors = [{ params: { type: "string" } }], !1;
150
+ g = r === u;
151
+ } else g = !0;
152
+ }
153
+ }
154
+ }
155
+ }
156
+ c = t === u;
157
+ } else c = !0;
158
+ if (c) {
159
+ if (void 0 !== o.import) {
160
+ let r = o.import;
161
+ const t = u, s = u;
162
+ let i = !1;
163
+ const a = u;
164
+ if (!1 !== r) {
165
+ const r = { params: { allowedValues: e.properties.import.anyOf[0].enum } };
166
+ null === f ? f = [r] : f.push(r), u++;
167
+ }
168
+ var d = a === u;
169
+ if (i = i || d, !i) {
170
+ const e = u;
171
+ if (u == u) if ("string" == typeof r) {
172
+ if (r.length < 1) {
173
+ const e = { params: {} };
174
+ null === f ? f = [e] : f.push(e), u++;
175
+ }
176
+ } else {
177
+ const e = { params: { type: "string" } };
178
+ null === f ? f = [e] : f.push(e), u++;
179
+ }
180
+ d = e === u, i = i || d;
181
+ }
182
+ if (!i) {
183
+ const e = { params: {} };
184
+ return null === f ? f = [e] : f.push(e), u++, n.errors = f, !1;
185
+ }
186
+ u = s, null !== f && (s ? f.length = s : f = null), c = t === u;
187
+ } else c = !0;
188
+ if (c) {
189
+ if (void 0 !== o.packageName) {
190
+ let e = o.packageName;
191
+ const r = u;
192
+ if (u === r) {
193
+ if ("string" != typeof e) return n.errors = [{ params: { type: "string" } }], !1;
194
+ if (e.length < 1) return n.errors = [{ params: {} }], !1;
195
+ }
196
+ c = r === u;
197
+ } else c = !0;
198
+ if (c) {
199
+ if (void 0 !== o.requiredVersion) {
200
+ let r = o.requiredVersion;
201
+ const t = u, s = u;
202
+ let i = !1;
203
+ const a = u;
204
+ if (!1 !== r) {
205
+ const r = { params: { allowedValues: e.properties.requiredVersion.anyOf[0].enum } };
206
+ null === f ? f = [r] : f.push(r), u++;
207
+ }
208
+ var v = a === u;
209
+ if (i = i || v, !i) {
210
+ const e = u;
211
+ if ("string" != typeof r) {
212
+ const e = { params: { type: "string" } };
213
+ null === f ? f = [e] : f.push(e), u++;
214
+ }
215
+ v = e === u, i = i || v;
216
+ }
217
+ if (!i) {
218
+ const e = { params: {} };
219
+ return null === f ? f = [e] : f.push(e), u++, n.errors = f, !1;
220
+ }
221
+ u = s, null !== f && (s ? f.length = s : f = null), c = t === u;
222
+ } else c = !0;
223
+ if (c) {
224
+ if (void 0 !== o.shareKey) {
225
+ let e = o.shareKey;
226
+ const r = u;
227
+ if (u === r) {
228
+ if ("string" != typeof e) return n.errors = [{ params: { type: "string" } }], !1;
229
+ if (e.length < 1) return n.errors = [{ params: {} }], !1;
230
+ }
231
+ c = r === u;
232
+ } else c = !0;
233
+ if (c) {
234
+ if (void 0 !== o.shareScope) {
235
+ let e = o.shareScope;
236
+ const r = u, t = u;
237
+ let s = !1;
238
+ const i = u;
239
+ if (u === i) if ("string" == typeof e) {
240
+ if (e.length < 1) {
241
+ const e = { params: {} };
242
+ null === f ? f = [e] : f.push(e), u++;
243
+ }
244
+ } else {
245
+ const e = { params: { type: "string" } };
246
+ null === f ? f = [e] : f.push(e), u++;
247
+ }
248
+ var b = i === u;
249
+ if (s = s || b, !s) {
250
+ const r = u;
251
+ if (u === r) if (Array.isArray(e)) {
252
+ const r = e.length;
253
+ for (let t = 0; t < r; t++) {
254
+ let r = e[t];
255
+ const s = u;
256
+ if (u === s) if ("string" == typeof r) {
257
+ if (r.length < 1) {
258
+ const e = { params: {} };
259
+ null === f ? f = [e] : f.push(e), u++;
260
+ }
261
+ } else {
262
+ const e = { params: { type: "string" } };
263
+ null === f ? f = [e] : f.push(e), u++;
264
+ }
265
+ if (s !== u) break;
266
+ }
267
+ } else {
268
+ const e = { params: { type: "array" } };
269
+ null === f ? f = [e] : f.push(e), u++;
270
+ }
271
+ b = r === u, s = s || b;
272
+ }
273
+ if (!s) {
274
+ const e = { params: {} };
275
+ return null === f ? f = [e] : f.push(e), u++, n.errors = f, !1;
276
+ }
277
+ u = t, null !== f && (t ? f.length = t : f = null), c = r === u;
278
+ } else c = !0;
279
+ if (c) {
280
+ if (void 0 !== o.singleton) {
281
+ const e = u;
282
+ if ("boolean" != typeof o.singleton) return n.errors = [{ params: { type: "boolean" } }], !1;
283
+ c = e === u;
284
+ } else c = !0;
285
+ if (c) {
286
+ if (void 0 !== o.strictVersion) {
287
+ const e = u;
288
+ if ("boolean" != typeof o.strictVersion) return n.errors = [{ params: { type: "boolean" } }], !1;
289
+ c = e === u;
290
+ } else c = !0;
291
+ if (c) {
292
+ if (void 0 !== o.treeShaking) {
293
+ let e = o.treeShaking;
294
+ const r = u, s = u;
295
+ let i = !1;
296
+ const a = u;
297
+ if ("boolean" != typeof e) {
298
+ const e = { params: { type: "boolean" } };
299
+ null === f ? f = [e] : f.push(e), u++;
300
+ }
301
+ var A = a === u;
302
+ if (i = i || A, !i) {
303
+ const r = u;
304
+ if (u == u) if (e && "object" == typeof e && !Array.isArray(e)) {
305
+ const r = u;
306
+ for (const r in e) if ("usedExports" !== r && "mode" !== r && "filename" !== r) {
307
+ const e = { params: { additionalProperty: r } };
308
+ null === f ? f = [e] : f.push(e), u++;
309
+ break;
310
+ }
311
+ if (r === u) {
312
+ if (void 0 !== e.usedExports) {
313
+ let r = e.usedExports;
314
+ const t = u;
315
+ if (u === t) if (Array.isArray(r)) {
316
+ const e = r.length;
317
+ for (let t = 0; t < e; t++) {
318
+ let e = r[t];
319
+ const s = u;
320
+ if (u === s) if ("string" == typeof e) {
321
+ if (e.length < 1) {
322
+ const e = { params: {} };
323
+ null === f ? f = [e] : f.push(e), u++;
324
+ }
325
+ } else {
326
+ const e = { params: { type: "string" } };
327
+ null === f ? f = [e] : f.push(e), u++;
328
+ }
329
+ if (s !== u) break;
330
+ }
331
+ } else {
332
+ const e = { params: { type: "array" } };
333
+ null === f ? f = [e] : f.push(e), u++;
334
+ }
335
+ var P = t === u;
336
+ } else P = !0;
337
+ if (P) {
338
+ if (void 0 !== e.mode) {
339
+ let r = e.mode;
340
+ const s = u;
341
+ if ("string" != typeof r) {
342
+ const e = { params: { type: "string" } };
343
+ null === f ? f = [e] : f.push(e), u++;
344
+ }
345
+ if ("server-calc" !== r && "runtime-infer" !== r) {
346
+ const e = { params: { allowedValues: t.properties.mode.enum } };
347
+ null === f ? f = [e] : f.push(e), u++;
348
+ }
349
+ P = s === u;
350
+ } else P = !0;
351
+ if (P) if (void 0 !== e.filename) {
352
+ const r = u;
353
+ if ("string" != typeof e.filename) {
354
+ const e = { params: { type: "string" } };
355
+ null === f ? f = [e] : f.push(e), u++;
356
+ }
357
+ P = r === u;
358
+ } else P = !0;
359
+ }
360
+ }
361
+ } else {
362
+ const e = { params: { type: "object" } };
363
+ null === f ? f = [e] : f.push(e), u++;
364
+ }
365
+ A = r === u, i = i || A;
366
+ }
367
+ if (!i) {
368
+ const e = { params: {} };
369
+ return null === f ? f = [e] : f.push(e), u++, n.errors = f, !1;
370
+ }
371
+ u = s, null !== f && (s ? f.length = s : f = null), c = r === u;
372
+ } else c = !0;
373
+ if (c) {
374
+ if (void 0 !== o.independentShareFileName) {
375
+ let e = o.independentShareFileName;
376
+ const r = u;
377
+ if (u === r) {
378
+ if ("string" != typeof e) return n.errors = [{ params: { type: "string" } }], !1;
379
+ if (e.length < 1) return n.errors = [{ params: {} }], !1;
380
+ }
381
+ c = r === u;
382
+ } else c = !0;
383
+ if (c) {
384
+ if (void 0 !== o.version) {
385
+ let r = o.version;
386
+ const t = u, s = u;
387
+ let i = !1;
388
+ const a = u;
389
+ if (!1 !== r) {
390
+ const r = { params: { allowedValues: e.properties.version.anyOf[0].enum } };
391
+ null === f ? f = [r] : f.push(r), u++;
392
+ }
393
+ var j = a === u;
394
+ if (i = i || j, !i) {
395
+ const e = u;
396
+ if ("string" != typeof r) {
397
+ const e = { params: { type: "string" } };
398
+ null === f ? f = [e] : f.push(e), u++;
399
+ }
400
+ j = e === u, i = i || j;
401
+ }
402
+ if (!i) {
403
+ const e = { params: {} };
404
+ return null === f ? f = [e] : f.push(e), u++, n.errors = f, !1;
405
+ }
406
+ u = s, null !== f && (s ? f.length = s : f = null), c = t === u;
407
+ } else c = !0;
408
+ if (c) {
409
+ if (void 0 !== o.request) {
410
+ let e = o.request;
411
+ const r = u;
412
+ if (u === r) {
413
+ if ("string" != typeof e) return n.errors = [{ params: { type: "string" } }], !1;
414
+ if (e.length < 1) return n.errors = [{ params: {} }], !1;
415
+ }
416
+ c = r === u;
417
+ } else c = !0;
418
+ if (c) {
419
+ if (void 0 !== o.layer) {
420
+ let e = o.layer;
421
+ const r = u;
422
+ if (u === r) {
423
+ if ("string" != typeof e) return n.errors = [{ params: { type: "string" } }], !1;
424
+ if (e.length < 1) return n.errors = [{ params: {} }], !1;
425
+ }
426
+ c = r === u;
427
+ } else c = !0;
428
+ if (c) {
429
+ if (void 0 !== o.issuerLayer) {
430
+ let e = o.issuerLayer;
431
+ const r = u;
432
+ if (u === r) {
433
+ if ("string" != typeof e) return n.errors = [{ params: { type: "string" } }], !1;
434
+ if (e.length < 1) return n.errors = [{ params: {} }], !1;
435
+ }
436
+ c = r === u;
437
+ } else c = !0;
438
+ if (c) if (void 0 !== o.allowNodeModulesSuffixMatch) {
439
+ const e = u;
440
+ if ("boolean" != typeof o.allowNodeModulesSuffixMatch) return n.errors = [{ params: { type: "boolean" } }], !1;
441
+ c = e === u;
442
+ } else c = !0;
443
+ }
444
+ }
445
+ }
446
+ }
447
+ }
448
+ }
449
+ }
450
+ }
451
+ }
452
+ }
453
+ }
454
+ }
455
+ }
456
+ }
457
+ }
458
+ }
459
+ }
460
+ }
461
+ return n.errors = f, 0 === u;
553
462
  }
554
- function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, rootData: a = r, } = {}) {
555
- let i = null, l = 0;
556
- if (0 === l) {
557
- if (!r || 'object' != typeof r || Array.isArray(r))
558
- return (n.errors = [{ params: { type: 'object' } }]), !1;
559
- for (const t in r) {
560
- let o = r[t];
561
- const f = l, u = l;
562
- let c = !1;
563
- const y = l;
564
- s(o, {
565
- instancePath: e + '/' + t.replace(/~/g, '~0').replace(/\//g, '~1'),
566
- parentData: r,
567
- parentDataProperty: t,
568
- rootData: a,
569
- }) || ((i = null === i ? s.errors : i.concat(s.errors)), (l = i.length));
570
- var p = y === l;
571
- if (((c = c || p), !c)) {
572
- const r = l;
573
- if (l == l)
574
- if ('string' == typeof o) {
575
- if (o.length < 1) {
576
- const r = { params: {} };
577
- null === i ? (i = [r]) : i.push(r), l++;
578
- }
579
- }
580
- else {
581
- const r = { params: { type: 'string' } };
582
- null === i ? (i = [r]) : i.push(r), l++;
583
- }
584
- (p = r === l), (c = c || p);
585
- }
586
- if (!c) {
587
- const r = { params: {} };
588
- return null === i ? (i = [r]) : i.push(r), l++, (n.errors = i), !1;
589
- }
590
- if (((l = u), null !== i && (u ? (i.length = u) : (i = null)), f !== l))
591
- break;
592
- }
593
- }
594
- return (n.errors = i), 0 === l;
463
+ function o(e, { instancePath: r = "", parentData: t, parentDataProperty: s, rootData: i = e } = {}) {
464
+ let a = null, l = 0;
465
+ if (0 === l) {
466
+ if (!e || "object" != typeof e || Array.isArray(e)) return o.errors = [{ params: { type: "object" } }], !1;
467
+ for (const t in e) {
468
+ let s = e[t];
469
+ const f = l, u = l;
470
+ let c = !1;
471
+ const y = l;
472
+ n(s, {
473
+ instancePath: r + "/" + t.replace(/~/g, "~0").replace(/\//g, "~1"),
474
+ parentData: e,
475
+ parentDataProperty: t,
476
+ rootData: i
477
+ }) || (a = null === a ? n.errors : a.concat(n.errors), l = a.length);
478
+ var p = y === l;
479
+ if (c = c || p, !c) {
480
+ const e = l;
481
+ if (l == l) if ("string" == typeof s) {
482
+ if (s.length < 1) {
483
+ const e = { params: {} };
484
+ null === a ? a = [e] : a.push(e), l++;
485
+ }
486
+ } else {
487
+ const e = { params: { type: "string" } };
488
+ null === a ? a = [e] : a.push(e), l++;
489
+ }
490
+ p = e === l, c = c || p;
491
+ }
492
+ if (!c) {
493
+ const e = { params: {} };
494
+ return null === a ? a = [e] : a.push(e), l++, o.errors = a, !1;
495
+ }
496
+ if (l = u, null !== a && (u ? a.length = u : a = null), f !== l) break;
497
+ }
498
+ }
499
+ return o.errors = a, 0 === l;
595
500
  }
596
- function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, rootData: a = r, } = {}) {
597
- let i = null, l = 0;
598
- const p = l;
599
- let f = !1;
600
- const u = l;
601
- if (l === u)
602
- if (Array.isArray(r)) {
603
- const t = r.length;
604
- for (let s = 0; s < t; s++) {
605
- let t = r[s];
606
- const o = l, p = l;
607
- let f = !1;
608
- const u = l;
609
- if (l == l)
610
- if ('string' == typeof t) {
611
- if (t.length < 1) {
612
- const r = { params: {} };
613
- null === i ? (i = [r]) : i.push(r), l++;
614
- }
615
- }
616
- else {
617
- const r = { params: { type: 'string' } };
618
- null === i ? (i = [r]) : i.push(r), l++;
619
- }
620
- var c = u === l;
621
- if (((f = f || c), !f)) {
622
- const o = l;
623
- n(t, {
624
- instancePath: e + '/' + s,
625
- parentData: r,
626
- parentDataProperty: s,
627
- rootData: a,
628
- }) ||
629
- ((i = null === i ? n.errors : i.concat(n.errors)), (l = i.length)),
630
- (c = o === l),
631
- (f = f || c);
632
- }
633
- if (f)
634
- (l = p), null !== i && (p ? (i.length = p) : (i = null));
635
- else {
636
- const r = { params: {} };
637
- null === i ? (i = [r]) : i.push(r), l++;
638
- }
639
- if (o !== l)
640
- break;
641
- }
642
- }
643
- else {
644
- const r = { params: { type: 'array' } };
645
- null === i ? (i = [r]) : i.push(r), l++;
646
- }
647
- var y = u === l;
648
- if (((f = f || y), !f)) {
649
- const o = l;
650
- n(r, {
651
- instancePath: e,
652
- parentData: t,
653
- parentDataProperty: s,
654
- rootData: a,
655
- }) || ((i = null === i ? n.errors : i.concat(n.errors)), (l = i.length)),
656
- (y = o === l),
657
- (f = f || y);
658
- }
659
- if (!f) {
660
- const r = { params: {} };
661
- return null === i ? (i = [r]) : i.push(r), l++, (o.errors = i), !1;
662
- }
663
- return ((l = p),
664
- null !== i && (p ? (i.length = p) : (i = null)),
665
- (o.errors = i),
666
- 0 === l);
501
+ function i(e, { instancePath: r = "", parentData: t, parentDataProperty: s, rootData: n = e } = {}) {
502
+ let a = null, l = 0;
503
+ const p = l;
504
+ let f = !1;
505
+ const u = l;
506
+ if (l === u) if (Array.isArray(e)) {
507
+ const t = e.length;
508
+ for (let s = 0; s < t; s++) {
509
+ let t = e[s];
510
+ const i = l, p = l;
511
+ let f = !1;
512
+ const u = l;
513
+ if (l == l) if ("string" == typeof t) {
514
+ if (t.length < 1) {
515
+ const e = { params: {} };
516
+ null === a ? a = [e] : a.push(e), l++;
517
+ }
518
+ } else {
519
+ const e = { params: { type: "string" } };
520
+ null === a ? a = [e] : a.push(e), l++;
521
+ }
522
+ var c = u === l;
523
+ if (f = f || c, !f) {
524
+ const i = l;
525
+ o(t, {
526
+ instancePath: r + "/" + s,
527
+ parentData: e,
528
+ parentDataProperty: s,
529
+ rootData: n
530
+ }) || (a = null === a ? o.errors : a.concat(o.errors), l = a.length), c = i === l, f = f || c;
531
+ }
532
+ if (f) l = p, null !== a && (p ? a.length = p : a = null);
533
+ else {
534
+ const e = { params: {} };
535
+ null === a ? a = [e] : a.push(e), l++;
536
+ }
537
+ if (i !== l) break;
538
+ }
539
+ } else {
540
+ const e = { params: { type: "array" } };
541
+ null === a ? a = [e] : a.push(e), l++;
542
+ }
543
+ var y = u === l;
544
+ if (f = f || y, !f) {
545
+ const i = l;
546
+ o(e, {
547
+ instancePath: r,
548
+ parentData: t,
549
+ parentDataProperty: s,
550
+ rootData: n
551
+ }) || (a = null === a ? o.errors : a.concat(o.errors), l = a.length), y = i === l, f = f || y;
552
+ }
553
+ if (!f) {
554
+ const e = { params: {} };
555
+ return null === a ? a = [e] : a.push(e), l++, i.errors = a, !1;
556
+ }
557
+ return l = p, null !== a && (p ? a.length = p : a = null), i.errors = a, 0 === l;
667
558
  }
668
- function a(r, { instancePath: e = '', parentData: t, parentDataProperty: s, rootData: n = r, } = {}) {
669
- let i = null, l = 0;
670
- if (0 === l) {
671
- if (!r || 'object' != typeof r || Array.isArray(r))
672
- return (a.errors = [{ params: { type: 'object' } }]), !1;
673
- {
674
- let t;
675
- if (void 0 === r.shared && (t = 'shared'))
676
- return (a.errors = [{ params: { missingProperty: t } }]), !1;
677
- {
678
- const t = l;
679
- for (const e in r)
680
- if ('async' !== e &&
681
- 'shareScope' !== e &&
682
- 'shared' !== e &&
683
- 'experiments' !== e)
684
- return (a.errors = [{ params: { additionalProperty: e } }]), !1;
685
- if (t === l) {
686
- if (void 0 !== r.async) {
687
- const e = l;
688
- if ('boolean' != typeof r.async)
689
- return (a.errors = [{ params: { type: 'boolean' } }]), !1;
690
- var p = e === l;
691
- }
692
- else
693
- p = !0;
694
- if (p) {
695
- if (void 0 !== r.shareScope) {
696
- let e = r.shareScope;
697
- const t = l, s = l;
698
- let n = !1;
699
- const o = l;
700
- if (l === o)
701
- if ('string' == typeof e) {
702
- if (e.length < 1) {
703
- const r = { params: {} };
704
- null === i ? (i = [r]) : i.push(r), l++;
705
- }
706
- }
707
- else {
708
- const r = { params: { type: 'string' } };
709
- null === i ? (i = [r]) : i.push(r), l++;
710
- }
711
- var f = o === l;
712
- if (((n = n || f), !n)) {
713
- const r = l;
714
- if (l === r)
715
- if (Array.isArray(e)) {
716
- const r = e.length;
717
- for (let t = 0; t < r; t++) {
718
- let r = e[t];
719
- const s = l;
720
- if (l === s)
721
- if ('string' == typeof r) {
722
- if (r.length < 1) {
723
- const r = { params: {} };
724
- null === i ? (i = [r]) : i.push(r), l++;
725
- }
726
- }
727
- else {
728
- const r = { params: { type: 'string' } };
729
- null === i ? (i = [r]) : i.push(r), l++;
730
- }
731
- if (s !== l)
732
- break;
733
- }
734
- }
735
- else {
736
- const r = { params: { type: 'array' } };
737
- null === i ? (i = [r]) : i.push(r), l++;
738
- }
739
- (f = r === l), (n = n || f);
740
- }
741
- if (!n) {
742
- const r = { params: {} };
743
- return (null === i ? (i = [r]) : i.push(r), l++, (a.errors = i), !1);
744
- }
745
- (l = s),
746
- null !== i && (s ? (i.length = s) : (i = null)),
747
- (p = t === l);
748
- }
749
- else
750
- p = !0;
751
- if (p) {
752
- if (void 0 !== r.shared) {
753
- const t = l;
754
- o(r.shared, {
755
- instancePath: e + '/shared',
756
- parentData: r,
757
- parentDataProperty: 'shared',
758
- rootData: n,
759
- }) ||
760
- ((i = null === i ? o.errors : i.concat(o.errors)),
761
- (l = i.length)),
762
- (p = t === l);
763
- }
764
- else
765
- p = !0;
766
- if (p)
767
- if (void 0 !== r.experiments) {
768
- let e = r.experiments;
769
- const t = l;
770
- if (l === t) {
771
- if (!e || 'object' != typeof e || Array.isArray(e))
772
- return (a.errors = [{ params: { type: 'object' } }]), !1;
773
- {
774
- const r = l;
775
- for (const r in e)
776
- if ('allowNodeModulesSuffixMatch' !== r)
777
- return ((a.errors = [
778
- { params: { additionalProperty: r } },
779
- ]),
780
- !1);
781
- if (r === l &&
782
- void 0 !== e.allowNodeModulesSuffixMatch &&
783
- 'boolean' != typeof e.allowNodeModulesSuffixMatch)
784
- return ((a.errors = [{ params: { type: 'boolean' } }]), !1);
785
- }
786
- }
787
- p = t === l;
788
- }
789
- else
790
- p = !0;
791
- }
792
- }
793
- }
794
- }
795
- }
796
- }
797
- return (a.errors = i), 0 === l;
559
+ function a(e, { instancePath: r = "", parentData: t, parentDataProperty: s, rootData: n = e } = {}) {
560
+ let o = null, l = 0;
561
+ if (0 === l) {
562
+ if (!e || "object" != typeof e || Array.isArray(e)) return a.errors = [{ params: { type: "object" } }], !1;
563
+ {
564
+ let t;
565
+ if (void 0 === e.shared && (t = "shared")) return a.errors = [{ params: { missingProperty: t } }], !1;
566
+ {
567
+ const t = l;
568
+ for (const r in e) if ("async" !== r && "shareScope" !== r && "shared" !== r && "experiments" !== r) return a.errors = [{ params: { additionalProperty: r } }], !1;
569
+ if (t === l) {
570
+ if (void 0 !== e.async) {
571
+ const r = l;
572
+ if ("boolean" != typeof e.async) return a.errors = [{ params: { type: "boolean" } }], !1;
573
+ var p = r === l;
574
+ } else p = !0;
575
+ if (p) {
576
+ if (void 0 !== e.shareScope) {
577
+ let r = e.shareScope;
578
+ const t = l, s = l;
579
+ let n = !1;
580
+ const i = l;
581
+ if (l === i) if ("string" == typeof r) {
582
+ if (r.length < 1) {
583
+ const e = { params: {} };
584
+ null === o ? o = [e] : o.push(e), l++;
585
+ }
586
+ } else {
587
+ const e = { params: { type: "string" } };
588
+ null === o ? o = [e] : o.push(e), l++;
589
+ }
590
+ var f = i === l;
591
+ if (n = n || f, !n) {
592
+ const e = l;
593
+ if (l === e) if (Array.isArray(r)) {
594
+ const e = r.length;
595
+ for (let t = 0; t < e; t++) {
596
+ let e = r[t];
597
+ const s = l;
598
+ if (l === s) if ("string" == typeof e) {
599
+ if (e.length < 1) {
600
+ const e = { params: {} };
601
+ null === o ? o = [e] : o.push(e), l++;
602
+ }
603
+ } else {
604
+ const e = { params: { type: "string" } };
605
+ null === o ? o = [e] : o.push(e), l++;
606
+ }
607
+ if (s !== l) break;
608
+ }
609
+ } else {
610
+ const e = { params: { type: "array" } };
611
+ null === o ? o = [e] : o.push(e), l++;
612
+ }
613
+ f = e === l, n = n || f;
614
+ }
615
+ if (!n) {
616
+ const e = { params: {} };
617
+ return null === o ? o = [e] : o.push(e), l++, a.errors = o, !1;
618
+ }
619
+ l = s, null !== o && (s ? o.length = s : o = null), p = t === l;
620
+ } else p = !0;
621
+ if (p) {
622
+ if (void 0 !== e.shared) {
623
+ const t = l;
624
+ i(e.shared, {
625
+ instancePath: r + "/shared",
626
+ parentData: e,
627
+ parentDataProperty: "shared",
628
+ rootData: n
629
+ }) || (o = null === o ? i.errors : o.concat(i.errors), l = o.length), p = t === l;
630
+ } else p = !0;
631
+ if (p) if (void 0 !== e.experiments) {
632
+ let r = e.experiments;
633
+ const t = l;
634
+ if (l === t) {
635
+ if (!r || "object" != typeof r || Array.isArray(r)) return a.errors = [{ params: { type: "object" } }], !1;
636
+ {
637
+ const e = l;
638
+ for (const e in r) if ("allowNodeModulesSuffixMatch" !== e) return a.errors = [{ params: { additionalProperty: e } }], !1;
639
+ if (e === l && void 0 !== r.allowNodeModulesSuffixMatch && "boolean" != typeof r.allowNodeModulesSuffixMatch) return a.errors = [{ params: { type: "boolean" } }], !1;
640
+ }
641
+ }
642
+ p = t === l;
643
+ } else p = !0;
644
+ }
645
+ }
646
+ }
647
+ }
648
+ }
649
+ }
650
+ return a.errors = o, 0 === l;
798
651
  }
652
+ var validate, SharePlugin_check_default, e, r, t, s;
653
+ var init_SharePlugin_check = require_runtime.__esmMin((() => {
654
+ validate = a;
655
+ SharePlugin_check_default = a;
656
+ e = {
657
+ type: "object",
658
+ additionalProperties: !1,
659
+ properties: {
660
+ eager: { type: "boolean" },
661
+ exclude: { $ref: "#/definitions/IncludeExcludeOptions" },
662
+ include: { $ref: "#/definitions/IncludeExcludeOptions" },
663
+ import: { anyOf: [{ enum: [!1] }, { $ref: "#/definitions/SharedItem" }] },
664
+ packageName: {
665
+ type: "string",
666
+ minLength: 1
667
+ },
668
+ requiredVersion: { anyOf: [{ enum: [!1] }, { type: "string" }] },
669
+ shareKey: {
670
+ type: "string",
671
+ minLength: 1
672
+ },
673
+ shareScope: { anyOf: [{
674
+ type: "string",
675
+ minLength: 1
676
+ }, {
677
+ type: "array",
678
+ items: {
679
+ type: "string",
680
+ minLength: 1
681
+ }
682
+ }] },
683
+ singleton: { type: "boolean" },
684
+ strictVersion: { type: "boolean" },
685
+ treeShaking: { anyOf: [{ type: "boolean" }, { $ref: "#/definitions/TreeShakingConfig" }] },
686
+ independentShareFileName: {
687
+ type: "string",
688
+ minLength: 1
689
+ },
690
+ version: { anyOf: [{ enum: [!1] }, { type: "string" }] },
691
+ request: {
692
+ type: "string",
693
+ minLength: 1
694
+ },
695
+ layer: {
696
+ type: "string",
697
+ minLength: 1
698
+ },
699
+ issuerLayer: {
700
+ type: "string",
701
+ minLength: 1
702
+ },
703
+ allowNodeModulesSuffixMatch: { type: "boolean" }
704
+ }
705
+ }, r = {
706
+ type: "object",
707
+ properties: {
708
+ request: { type: ["string", "object"] },
709
+ version: { type: "string" },
710
+ fallbackVersion: { type: "string" }
711
+ },
712
+ additionalProperties: !1,
713
+ anyOf: [
714
+ { required: ["request"] },
715
+ { required: ["version"] },
716
+ { required: ["fallbackVersion"] }
717
+ ]
718
+ }, t = {
719
+ type: "object",
720
+ additionalProperties: !1,
721
+ properties: {
722
+ usedExports: {
723
+ type: "array",
724
+ items: {
725
+ type: "string",
726
+ minLength: 1
727
+ }
728
+ },
729
+ mode: {
730
+ type: "string",
731
+ enum: ["server-calc", "runtime-infer"]
732
+ },
733
+ filename: { type: "string" }
734
+ }
735
+ }, s = Object.prototype.hasOwnProperty;
736
+ }));
737
+
738
+ //#endregion
739
+ init_SharePlugin_check();
740
+ Object.defineProperty(exports, 'SharePlugin_check_exports', {
741
+ enumerable: true,
742
+ get: function () {
743
+ return SharePlugin_check_exports;
744
+ }
745
+ });
746
+ exports.default = SharePlugin_check_default;
747
+ Object.defineProperty(exports, 'init_SharePlugin_check', {
748
+ enumerable: true,
749
+ get: function () {
750
+ return init_SharePlugin_check;
751
+ }
752
+ });
753
+ exports.validate = validate;
799
754
  //# sourceMappingURL=SharePlugin.check.js.map