projen 0.98.32 → 0.98.34

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 (557) hide show
  1. package/.jsii +1906 -626
  2. package/lib/ai-instructions.js +2 -2
  3. package/lib/awscdk/auto-discover.js +5 -5
  4. package/lib/awscdk/awscdk-app-java.js +1 -1
  5. package/lib/awscdk/awscdk-app-py.js +1 -1
  6. package/lib/awscdk/awscdk-app-ts.js +1 -1
  7. package/lib/awscdk/awscdk-construct.js +2 -2
  8. package/lib/awscdk/awscdk-deps-java.js +1 -1
  9. package/lib/awscdk/awscdk-deps-js.js +1 -1
  10. package/lib/awscdk/awscdk-deps-py.js +1 -1
  11. package/lib/awscdk/awscdk-deps.js +1 -1
  12. package/lib/awscdk/cdk-config.js +4 -4
  13. package/lib/awscdk/cdk-tasks.js +1 -1
  14. package/lib/awscdk/integration-test.js +1 -1
  15. package/lib/awscdk/internal.d.ts +1 -2
  16. package/lib/awscdk/lambda-extension.js +1 -1
  17. package/lib/awscdk/lambda-function.js +2 -2
  18. package/lib/awscdk/private/feature-flags-v2.const.d.ts +2 -3
  19. package/lib/awscdk/private/feature-flags-v2.const.js +4 -5
  20. package/lib/build/build-workflow.js +6 -7
  21. package/lib/cdk/auto-discover-base.js +2 -2
  22. package/lib/cdk/construct-lib.js +1 -1
  23. package/lib/cdk/integration-test-base.js +1 -1
  24. package/lib/cdk/jsii-docgen.js +1 -1
  25. package/lib/cdk/jsii-project.js +1 -1
  26. package/lib/cdk8s/auto-discover.js +2 -2
  27. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  28. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  29. package/lib/cdk8s/cdk8s-construct.js +1 -1
  30. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  31. package/lib/cdk8s/cdk8s-deps.js +1 -1
  32. package/lib/cdk8s/integration-test.js +1 -1
  33. package/lib/cdktf/cdktf-construct.js +1 -1
  34. package/lib/circleci/circleci.js +1 -1
  35. package/lib/cli/index.js +6 -3
  36. package/lib/component.js +1 -1
  37. package/lib/dependencies.js +1 -1
  38. package/lib/dev-env.js +1 -1
  39. package/lib/docker-compose/docker-compose-service.js +1 -1
  40. package/lib/docker-compose/docker-compose.js +1 -1
  41. package/lib/file.js +1 -1
  42. package/lib/gitattributes.js +1 -1
  43. package/lib/github/actions-provider.js +1 -1
  44. package/lib/github/auto-approve.js +1 -1
  45. package/lib/github/auto-merge.js +1 -1
  46. package/lib/github/auto-queue.js +1 -1
  47. package/lib/github/dependabot.js +1 -1
  48. package/lib/github/github-credentials.js +1 -1
  49. package/lib/github/github-project.js +1 -1
  50. package/lib/github/github.js +1 -1
  51. package/lib/github/merge-queue.js +1 -1
  52. package/lib/github/mergify.js +1 -1
  53. package/lib/github/pr-template.js +1 -1
  54. package/lib/github/private/util.d.ts +14 -0
  55. package/lib/github/private/util.js +20 -1
  56. package/lib/github/pull-request-backport.js +1 -1
  57. package/lib/github/pull-request-lint.js +1 -1
  58. package/lib/github/stale.js +1 -1
  59. package/lib/github/task-workflow-job.js +1 -1
  60. package/lib/github/task-workflow.js +1 -1
  61. package/lib/github/workflow-actions.js +1 -1
  62. package/lib/github/workflow-jobs.js +1 -1
  63. package/lib/github/workflow-steps.js +1 -1
  64. package/lib/github/workflows.js +1 -1
  65. package/lib/gitlab/configuration.js +1 -1
  66. package/lib/gitlab/gitlab-configuration.js +1 -1
  67. package/lib/gitlab/nested-configuration.js +1 -1
  68. package/lib/gitpod.js +1 -1
  69. package/lib/ignore-file.js +1 -1
  70. package/lib/ini.js +1 -1
  71. package/lib/java/java-project.js +1 -1
  72. package/lib/java/junit.js +1 -1
  73. package/lib/java/maven-compile.js +1 -1
  74. package/lib/java/maven-packaging.js +1 -1
  75. package/lib/java/maven-sample.js +1 -1
  76. package/lib/java/pom.js +2 -2
  77. package/lib/java/projenrc.js +1 -1
  78. package/lib/javascript/biome/biome-config.d.ts +126 -50
  79. package/lib/javascript/biome/biome-config.js +74 -39
  80. package/lib/javascript/biome/biome.js +1 -1
  81. package/lib/javascript/bundler.js +1 -1
  82. package/lib/javascript/eslint.js +1 -1
  83. package/lib/javascript/jest.js +4 -4
  84. package/lib/javascript/license-checker.js +1 -1
  85. package/lib/javascript/node-package.js +1 -1
  86. package/lib/javascript/node-project.d.ts +2 -2
  87. package/lib/javascript/node-project.js +3 -3
  88. package/lib/javascript/npm-config.js +1 -1
  89. package/lib/javascript/prettier.js +1 -1
  90. package/lib/javascript/projenrc.js +1 -1
  91. package/lib/javascript/typescript-config.js +2 -2
  92. package/lib/javascript/upgrade-dependencies.js +17 -9
  93. package/lib/javascript/yarnrc.js +1 -1
  94. package/lib/json-patch.js +1 -1
  95. package/lib/json.js +1 -1
  96. package/lib/license.js +1 -1
  97. package/lib/logger.js +1 -1
  98. package/lib/makefile.js +1 -1
  99. package/lib/object-file.js +1 -1
  100. package/lib/project-build.js +1 -1
  101. package/lib/project-tree.js +1 -1
  102. package/lib/project.js +1 -1
  103. package/lib/projects.js +1 -1
  104. package/lib/projenrc-json.js +2 -2
  105. package/lib/projenrc.js +1 -1
  106. package/lib/python/pip.js +1 -1
  107. package/lib/python/poetry.js +2 -2
  108. package/lib/python/projenrc.js +1 -1
  109. package/lib/python/pyproject-toml-file.js +1 -1
  110. package/lib/python/pytest-sample.js +1 -1
  111. package/lib/python/pytest.js +1 -1
  112. package/lib/python/python-project.js +1 -1
  113. package/lib/python/python-sample.js +1 -1
  114. package/lib/python/requirements-file.js +1 -1
  115. package/lib/python/setuppy.js +1 -1
  116. package/lib/python/setuptools.js +1 -1
  117. package/lib/python/uv-config.d.ts +437 -21
  118. package/lib/python/uv-config.js +437 -2
  119. package/lib/python/uv.js +1 -1
  120. package/lib/python/venv.js +1 -1
  121. package/lib/readme.js +1 -1
  122. package/lib/release/publisher.js +1 -1
  123. package/lib/release/release-trigger.js +1 -1
  124. package/lib/release/release.js +15 -18
  125. package/lib/renovatebot.js +1 -1
  126. package/lib/sample-file.js +2 -2
  127. package/lib/semver.js +1 -1
  128. package/lib/source-code.js +1 -1
  129. package/lib/task-runtime.js +1 -1
  130. package/lib/task.js +1 -1
  131. package/lib/tasks.js +1 -1
  132. package/lib/testing.js +1 -1
  133. package/lib/textfile.js +1 -1
  134. package/lib/toml.js +1 -1
  135. package/lib/typescript/projenrc-ts.js +1 -1
  136. package/lib/typescript/projenrc.js +1 -1
  137. package/lib/typescript/typescript-typedoc.js +1 -1
  138. package/lib/typescript/typescript.js +6 -6
  139. package/lib/version.js +2 -2
  140. package/lib/vscode/devcontainer.js +1 -1
  141. package/lib/vscode/extensions.js +1 -1
  142. package/lib/vscode/launch-config.js +1 -1
  143. package/lib/vscode/settings.js +1 -1
  144. package/lib/vscode/vscode.js +1 -1
  145. package/lib/web/next.js +3 -3
  146. package/lib/web/postcss.js +1 -1
  147. package/lib/web/react.js +4 -4
  148. package/lib/web/tailwind.js +1 -1
  149. package/lib/xmlfile.js +1 -1
  150. package/lib/yaml.js +1 -1
  151. package/node_modules/@oozcitak/dom/README.md +2 -4
  152. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js +7 -29
  153. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js.map +1 -1
  154. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js +3 -3
  155. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js.map +1 -1
  156. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js +14 -14
  157. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js.map +1 -1
  158. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js +40 -62
  159. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js.map +1 -1
  160. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js +53 -54
  161. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js.map +1 -1
  162. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js +14 -14
  163. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js.map +1 -1
  164. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js +29 -51
  165. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js.map +1 -1
  166. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js +11 -11
  167. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js.map +1 -1
  168. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js +25 -63
  169. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js.map +1 -1
  170. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js +79 -85
  171. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js.map +1 -1
  172. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.d.ts +1 -1
  173. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js +96 -153
  174. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js.map +1 -1
  175. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js +15 -37
  176. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js.map +1 -1
  177. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js +229 -404
  178. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js.map +1 -1
  179. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js +47 -109
  180. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js.map +1 -1
  181. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.d.ts +5 -1
  182. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js +19 -19
  183. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js.map +1 -1
  184. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js +69 -124
  185. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js.map +1 -1
  186. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js +11 -11
  187. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js.map +1 -1
  188. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js +20 -72
  189. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js.map +1 -1
  190. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js +12 -34
  191. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js.map +1 -1
  192. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js +183 -289
  193. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js.map +1 -1
  194. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js +2 -2
  195. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js.map +1 -1
  196. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js +65 -140
  197. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js.map +1 -1
  198. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js +63 -89
  199. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js.map +1 -1
  200. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js +6 -6
  201. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js.map +1 -1
  202. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js +141 -208
  203. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js.map +1 -1
  204. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js +13 -13
  205. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js.map +1 -1
  206. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js +1 -1
  207. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js.map +1 -1
  208. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js +16 -16
  209. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js.map +1 -1
  210. package/node_modules/@oozcitak/dom/lib/algorithm/index.js +42 -31
  211. package/node_modules/@oozcitak/dom/lib/algorithm/index.js.map +1 -1
  212. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js +12 -15
  213. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js.map +1 -1
  214. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js +20 -43
  215. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js.map +1 -1
  216. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js +20 -62
  217. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js.map +1 -1
  218. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js +53 -92
  219. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js.map +1 -1
  220. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js +13 -27
  221. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js.map +1 -1
  222. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js +40 -88
  223. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js.map +1 -1
  224. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js +41 -55
  225. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js.map +1 -1
  226. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js +13 -28
  227. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js.map +1 -1
  228. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js +14 -36
  229. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js.map +1 -1
  230. package/node_modules/@oozcitak/dom/lib/dom/DOMException.js +114 -204
  231. package/node_modules/@oozcitak/dom/lib/dom/DOMException.js.map +1 -1
  232. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js +51 -68
  233. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js.map +1 -1
  234. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js +32 -31
  235. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js.map +1 -1
  236. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js +105 -163
  237. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js.map +1 -1
  238. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.d.ts +1 -1
  239. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js +30 -73
  240. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js.map +1 -1
  241. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.d.ts +1 -1
  242. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js +198 -330
  243. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js.map +1 -1
  244. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js +3 -5
  245. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js.map +1 -1
  246. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js +29 -75
  247. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js.map +1 -1
  248. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.d.ts +1 -1
  249. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js +234 -393
  250. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js.map +1 -1
  251. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js +89 -137
  252. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js.map +1 -1
  253. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js +32 -57
  254. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js.map +1 -1
  255. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js +58 -64
  256. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js.map +1 -1
  257. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js +36 -88
  258. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js.map +1 -1
  259. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js +33 -60
  260. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js.map +1 -1
  261. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js +33 -47
  262. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js.map +1 -1
  263. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js +58 -42
  264. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js.map +1 -1
  265. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.d.ts +1 -1
  266. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js +375 -471
  267. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js.map +1 -1
  268. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js +29 -49
  269. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js.map +1 -1
  270. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js +69 -97
  271. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js.map +1 -1
  272. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js +66 -93
  273. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js.map +1 -1
  274. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js +33 -43
  275. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js.map +1 -1
  276. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js +9 -11
  277. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js.map +1 -1
  278. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js +73 -121
  279. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js.map +1 -1
  280. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js +19 -36
  281. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js.map +1 -1
  282. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js +174 -241
  283. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js.map +1 -1
  284. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js +22 -43
  285. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js.map +1 -1
  286. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js +13 -25
  287. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js.map +1 -1
  288. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js +12 -25
  289. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js.map +1 -1
  290. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js +34 -80
  291. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js.map +1 -1
  292. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js +15 -23
  293. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js.map +1 -1
  294. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js +46 -64
  295. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js.map +1 -1
  296. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js +21 -42
  297. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js.map +1 -1
  298. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js +6 -20
  299. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js.map +1 -1
  300. package/node_modules/@oozcitak/dom/lib/dom/index.js +92 -91
  301. package/node_modules/@oozcitak/dom/lib/dom/index.js.map +1 -1
  302. package/node_modules/@oozcitak/dom/lib/dom/interfaces.d.ts +28 -25
  303. package/node_modules/@oozcitak/dom/lib/dom/interfaces.js +9 -7
  304. package/node_modules/@oozcitak/dom/lib/dom/interfaces.js.map +1 -1
  305. package/node_modules/@oozcitak/dom/lib/index.js +5 -4
  306. package/node_modules/@oozcitak/dom/lib/index.js.map +1 -1
  307. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js +13 -15
  308. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js.map +1 -1
  309. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js +78 -128
  310. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js.map +1 -1
  311. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js +107 -123
  312. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js.map +1 -1
  313. package/node_modules/@oozcitak/dom/lib/parser/index.js +2 -1
  314. package/node_modules/@oozcitak/dom/lib/parser/index.js.map +1 -1
  315. package/node_modules/@oozcitak/dom/lib/parser/interfaces.d.ts +2 -2
  316. package/node_modules/@oozcitak/dom/lib/parser/interfaces.js +2 -1
  317. package/node_modules/@oozcitak/dom/lib/parser/interfaces.js.map +1 -1
  318. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js +10 -12
  319. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js.map +1 -1
  320. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js +23 -25
  321. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js.map +1 -1
  322. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js +405 -517
  323. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js.map +1 -1
  324. package/node_modules/@oozcitak/dom/lib/serializer/index.js +2 -1
  325. package/node_modules/@oozcitak/dom/lib/serializer/index.js.map +1 -1
  326. package/node_modules/@oozcitak/dom/lib/util/Cast.js +6 -8
  327. package/node_modules/@oozcitak/dom/lib/util/Cast.js.map +1 -1
  328. package/node_modules/@oozcitak/dom/lib/util/EmptySet.d.ts +13 -5
  329. package/node_modules/@oozcitak/dom/lib/util/EmptySet.js +33 -46
  330. package/node_modules/@oozcitak/dom/lib/util/EmptySet.js.map +1 -1
  331. package/node_modules/@oozcitak/dom/lib/util/Guard.js +47 -49
  332. package/node_modules/@oozcitak/dom/lib/util/Guard.js.map +1 -1
  333. package/node_modules/@oozcitak/dom/lib/util/index.js +4 -3
  334. package/node_modules/@oozcitak/dom/lib/util/index.js.map +1 -1
  335. package/node_modules/@oozcitak/dom/package.json +14 -41
  336. package/node_modules/@oozcitak/infra/LICENSE +21 -21
  337. package/node_modules/@oozcitak/infra/README.md +11 -13
  338. package/node_modules/@oozcitak/infra/lib/Base64.js +3 -3
  339. package/node_modules/@oozcitak/infra/lib/Base64.js.map +1 -1
  340. package/node_modules/@oozcitak/infra/lib/Byte.js +1 -1
  341. package/node_modules/@oozcitak/infra/lib/Byte.js.map +1 -1
  342. package/node_modules/@oozcitak/infra/lib/ByteSequence.js +19 -39
  343. package/node_modules/@oozcitak/infra/lib/ByteSequence.js.map +1 -1
  344. package/node_modules/@oozcitak/infra/lib/CodePoints.js +1 -0
  345. package/node_modules/@oozcitak/infra/lib/CodePoints.js.map +1 -1
  346. package/node_modules/@oozcitak/infra/lib/JSON.d.ts +1 -1
  347. package/node_modules/@oozcitak/infra/lib/JSON.js +18 -40
  348. package/node_modules/@oozcitak/infra/lib/JSON.js.map +1 -1
  349. package/node_modules/@oozcitak/infra/lib/List.d.ts +4 -4
  350. package/node_modules/@oozcitak/infra/lib/List.js +49 -173
  351. package/node_modules/@oozcitak/infra/lib/List.js.map +1 -1
  352. package/node_modules/@oozcitak/infra/lib/Map.d.ts +1 -1
  353. package/node_modules/@oozcitak/infra/lib/Map.js +43 -177
  354. package/node_modules/@oozcitak/infra/lib/Map.js.map +1 -1
  355. package/node_modules/@oozcitak/infra/lib/Namespace.js +1 -0
  356. package/node_modules/@oozcitak/infra/lib/Namespace.js.map +1 -1
  357. package/node_modules/@oozcitak/infra/lib/Queue.d.ts +1 -1
  358. package/node_modules/@oozcitak/infra/lib/Queue.js +2 -2
  359. package/node_modules/@oozcitak/infra/lib/Queue.js.map +1 -1
  360. package/node_modules/@oozcitak/infra/lib/Set.d.ts +1 -1
  361. package/node_modules/@oozcitak/infra/lib/Set.js +76 -254
  362. package/node_modules/@oozcitak/infra/lib/Set.js.map +1 -1
  363. package/node_modules/@oozcitak/infra/lib/Stack.d.ts +1 -1
  364. package/node_modules/@oozcitak/infra/lib/Stack.js +2 -2
  365. package/node_modules/@oozcitak/infra/lib/Stack.js.map +1 -1
  366. package/node_modules/@oozcitak/infra/lib/String.d.ts +2 -2
  367. package/node_modules/@oozcitak/infra/lib/String.js +75 -131
  368. package/node_modules/@oozcitak/infra/lib/String.js.map +1 -1
  369. package/node_modules/@oozcitak/infra/lib/index.js +46 -19
  370. package/node_modules/@oozcitak/infra/lib/index.js.map +1 -1
  371. package/node_modules/@oozcitak/infra/package.json +41 -54
  372. package/node_modules/@oozcitak/url/LICENSE +21 -21
  373. package/node_modules/@oozcitak/url/README.md +25 -27
  374. package/node_modules/@oozcitak/url/lib/URLAlgorithm.d.ts +3 -3
  375. package/node_modules/@oozcitak/url/lib/URLAlgorithm.js +287 -460
  376. package/node_modules/@oozcitak/url/lib/URLAlgorithm.js.map +1 -1
  377. package/node_modules/@oozcitak/url/lib/URLImpl.js +285 -331
  378. package/node_modules/@oozcitak/url/lib/URLImpl.js.map +1 -1
  379. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.d.ts +1 -1
  380. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js +71 -190
  381. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js.map +1 -1
  382. package/node_modules/@oozcitak/url/lib/index.js +3 -2
  383. package/node_modules/@oozcitak/url/lib/index.js.map +1 -1
  384. package/node_modules/@oozcitak/url/lib/interfaces.d.ts +2 -2
  385. package/node_modules/@oozcitak/url/lib/interfaces.js +2 -1
  386. package/node_modules/@oozcitak/url/lib/interfaces.js.map +1 -1
  387. package/node_modules/@oozcitak/url/package.json +42 -55
  388. package/node_modules/@oozcitak/util/LICENSE +21 -21
  389. package/node_modules/@oozcitak/util/README.md +8 -10
  390. package/node_modules/@oozcitak/util/lib/CompareCache.js +12 -12
  391. package/node_modules/@oozcitak/util/lib/CompareCache.js.map +1 -1
  392. package/node_modules/@oozcitak/util/lib/FixedSizeSet.d.ts +6 -6
  393. package/node_modules/@oozcitak/util/lib/FixedSizeSet.js +42 -117
  394. package/node_modules/@oozcitak/util/lib/FixedSizeSet.js.map +1 -1
  395. package/node_modules/@oozcitak/util/lib/Lazy.js +17 -19
  396. package/node_modules/@oozcitak/util/lib/Lazy.js.map +1 -1
  397. package/node_modules/@oozcitak/util/lib/ObjectCache.d.ts +4 -4
  398. package/node_modules/@oozcitak/util/lib/ObjectCache.js +44 -118
  399. package/node_modules/@oozcitak/util/lib/ObjectCache.js.map +1 -1
  400. package/node_modules/@oozcitak/util/lib/StringWalker.js +41 -47
  401. package/node_modules/@oozcitak/util/lib/StringWalker.js.map +1 -1
  402. package/node_modules/@oozcitak/util/lib/index.d.ts +23 -25
  403. package/node_modules/@oozcitak/util/lib/index.js +62 -88
  404. package/node_modules/@oozcitak/util/lib/index.js.map +1 -1
  405. package/node_modules/@oozcitak/util/package.json +37 -50
  406. package/node_modules/argparse/LICENSE +254 -0
  407. package/node_modules/argparse/README.md +84 -0
  408. package/node_modules/argparse/argparse.js +3707 -0
  409. package/node_modules/argparse/lib/sub.js +67 -0
  410. package/node_modules/argparse/lib/textwrap.js +440 -0
  411. package/node_modules/argparse/package.json +31 -0
  412. package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/README.md +36 -88
  413. package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/bin/js-yaml.js +17 -23
  414. package/node_modules/js-yaml/dist/js-yaml.js +3880 -0
  415. package/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
  416. package/node_modules/{xmlbuilder2/node_modules/js-yaml/dist/js-yaml.js → js-yaml/dist/js-yaml.mjs} +2926 -3075
  417. package/node_modules/js-yaml/index.js +47 -0
  418. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/dumper.js +205 -90
  419. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/exception.js +22 -10
  420. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/loader.js +149 -76
  421. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/core.js +1 -8
  422. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js → js-yaml/lib/schema/default.js} +1 -7
  423. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/json.js +1 -7
  424. package/node_modules/js-yaml/lib/schema.js +121 -0
  425. package/node_modules/js-yaml/lib/snippet.js +101 -0
  426. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/binary.js +4 -17
  427. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/float.js +2 -21
  428. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/int.js +18 -35
  429. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/null.js +2 -1
  430. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type.js +14 -9
  431. package/node_modules/js-yaml/package.json +66 -0
  432. package/node_modules/xmlbuilder2/README.md +8 -7
  433. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js +36 -37
  434. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js.map +1 -1
  435. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js +3 -3
  436. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js.map +1 -1
  437. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.d.ts +0 -1
  438. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js +235 -333
  439. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js.map +1 -1
  440. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js +271 -371
  441. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js.map +1 -1
  442. package/node_modules/xmlbuilder2/lib/builder/dom.js +13 -13
  443. package/node_modules/xmlbuilder2/lib/builder/dom.js.map +1 -1
  444. package/node_modules/xmlbuilder2/lib/builder/index.js +9 -8
  445. package/node_modules/xmlbuilder2/lib/builder/index.js.map +1 -1
  446. package/node_modules/xmlbuilder2/lib/constants.js +1 -0
  447. package/node_modules/xmlbuilder2/lib/constants.js.map +1 -1
  448. package/node_modules/xmlbuilder2/lib/index.js +7 -6
  449. package/node_modules/xmlbuilder2/lib/index.js.map +1 -1
  450. package/node_modules/xmlbuilder2/lib/interfaces.d.ts +25 -24
  451. package/node_modules/xmlbuilder2/lib/interfaces.js +1 -0
  452. package/node_modules/xmlbuilder2/lib/interfaces.js.map +1 -1
  453. package/node_modules/xmlbuilder2/lib/readers/BaseReader.js +53 -56
  454. package/node_modules/xmlbuilder2/lib/readers/BaseReader.js.map +1 -1
  455. package/node_modules/xmlbuilder2/lib/readers/JSONReader.js +7 -24
  456. package/node_modules/xmlbuilder2/lib/readers/JSONReader.js.map +1 -1
  457. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js +59 -77
  458. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js.map +1 -1
  459. package/node_modules/xmlbuilder2/lib/readers/XMLReader.js +61 -126
  460. package/node_modules/xmlbuilder2/lib/readers/XMLReader.js.map +1 -1
  461. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js +9 -26
  462. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js.map +1 -1
  463. package/node_modules/xmlbuilder2/lib/readers/index.js +5 -4
  464. package/node_modules/xmlbuilder2/lib/readers/index.js.map +1 -1
  465. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.d.ts +1 -0
  466. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js +14 -8
  467. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js.map +1 -1
  468. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js +474 -609
  469. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js.map +1 -1
  470. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js +48 -64
  471. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js.map +1 -1
  472. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js +54 -95
  473. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js.map +1 -1
  474. package/node_modules/xmlbuilder2/lib/writers/MapWriter.js +21 -36
  475. package/node_modules/xmlbuilder2/lib/writers/MapWriter.js.map +1 -1
  476. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js +131 -166
  477. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js.map +1 -1
  478. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.d.ts +1 -1
  479. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js +42 -56
  480. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js.map +1 -1
  481. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js +48 -62
  482. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js.map +1 -1
  483. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js +43 -59
  484. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js.map +1 -1
  485. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js +49 -89
  486. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js.map +1 -1
  487. package/node_modules/xmlbuilder2/lib/writers/index.js +6 -5
  488. package/node_modules/xmlbuilder2/lib/writers/index.js.map +1 -1
  489. package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js +2 -8
  490. package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js.LICENSE.txt +10 -0
  491. package/node_modules/xmlbuilder2/package.json +34 -52
  492. package/package.json +8 -13
  493. package/node_modules/sprintf-js/.npmignore +0 -1
  494. package/node_modules/sprintf-js/LICENSE +0 -24
  495. package/node_modules/sprintf-js/README.md +0 -88
  496. package/node_modules/sprintf-js/bower.json +0 -14
  497. package/node_modules/sprintf-js/demo/angular.html +0 -20
  498. package/node_modules/sprintf-js/dist/angular-sprintf.min.js +0 -4
  499. package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +0 -1
  500. package/node_modules/sprintf-js/dist/angular-sprintf.min.map +0 -1
  501. package/node_modules/sprintf-js/dist/sprintf.min.js +0 -4
  502. package/node_modules/sprintf-js/dist/sprintf.min.js.map +0 -1
  503. package/node_modules/sprintf-js/dist/sprintf.min.map +0 -1
  504. package/node_modules/sprintf-js/gruntfile.js +0 -36
  505. package/node_modules/sprintf-js/package.json +0 -22
  506. package/node_modules/sprintf-js/src/angular-sprintf.js +0 -18
  507. package/node_modules/sprintf-js/src/sprintf.js +0 -208
  508. package/node_modules/sprintf-js/test/test.js +0 -82
  509. package/node_modules/xmlbuilder2/node_modules/argparse/LICENSE +0 -21
  510. package/node_modules/xmlbuilder2/node_modules/argparse/README.md +0 -257
  511. package/node_modules/xmlbuilder2/node_modules/argparse/index.js +0 -3
  512. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append/constant.js +0 -47
  513. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append.js +0 -53
  514. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/count.js +0 -40
  515. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/help.js +0 -47
  516. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/constant.js +0 -43
  517. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/false.js +0 -27
  518. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/true.js +0 -26
  519. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store.js +0 -50
  520. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/subparsers.js +0 -149
  521. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/version.js +0 -47
  522. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action.js +0 -146
  523. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action_container.js +0 -482
  524. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argparse.js +0 -14
  525. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/error.js +0 -50
  526. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/exclusive.js +0 -54
  527. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/group.js +0 -75
  528. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument_parser.js +0 -1161
  529. package/node_modules/xmlbuilder2/node_modules/argparse/lib/const.js +0 -21
  530. package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/added_formatters.js +0 -87
  531. package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/formatter.js +0 -795
  532. package/node_modules/xmlbuilder2/node_modules/argparse/lib/namespace.js +0 -76
  533. package/node_modules/xmlbuilder2/node_modules/argparse/lib/utils.js +0 -57
  534. package/node_modules/xmlbuilder2/node_modules/argparse/package.json +0 -34
  535. package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.min.js +0 -1
  536. package/node_modules/xmlbuilder2/node_modules/js-yaml/index.js +0 -7
  537. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/mark.js +0 -76
  538. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +0 -25
  539. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema.js +0 -108
  540. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -93
  541. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -60
  542. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
  543. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml.js +0 -39
  544. package/node_modules/xmlbuilder2/node_modules/js-yaml/package.json +0 -49
  545. /package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/LICENSE +0 -0
  546. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/common.js +0 -0
  547. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/failsafe.js +0 -0
  548. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/bool.js +0 -0
  549. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/map.js +0 -0
  550. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/merge.js +0 -0
  551. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/omap.js +0 -0
  552. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/pairs.js +0 -0
  553. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/seq.js +0 -0
  554. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/set.js +0 -0
  555. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/str.js +0 -0
  556. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/timestamp.js +0 -0
  557. /package/node_modules/xmlbuilder2/{LICENSE → LICENSE.txt} +0 -0
@@ -1,49 +1,26 @@
1
1
  "use strict";
2
- var __values = (this && this.__values) || function(o) {
3
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
4
- if (m) return m.call(o);
5
- if (o && typeof o.length === "number") return {
6
- next: function () {
7
- if (o && i >= o.length) o = void 0;
8
- return { value: o && o[i++], done: !o };
9
- }
10
- };
11
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12
- };
13
- var __read = (this && this.__read) || function (o, n) {
14
- var m = typeof Symbol === "function" && o[Symbol.iterator];
15
- if (!m) return o;
16
- var i = m.call(o), r, ar = [], e;
17
- try {
18
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
19
- }
20
- catch (error) { e = { error: error }; }
21
- finally {
22
- try {
23
- if (r && !r.done && (m = i["return"])) m.call(i);
24
- }
25
- finally { if (e) throw e.error; }
26
- }
27
- return ar;
28
- };
29
- var __spread = (this && this.__spread) || function () {
30
- for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
31
- return ar;
32
- };
33
2
  Object.defineProperty(exports, "__esModule", { value: true });
34
- var DOMImpl_1 = require("../dom/DOMImpl");
35
- var DOMException_1 = require("../dom/DOMException");
36
- var interfaces_1 = require("../dom/interfaces");
37
- var util_1 = require("../util");
38
- var util_2 = require("@oozcitak/util");
39
- var infra_1 = require("@oozcitak/infra");
40
- var CustomElementAlgorithm_1 = require("./CustomElementAlgorithm");
41
- var TreeAlgorithm_1 = require("./TreeAlgorithm");
42
- var NodeIteratorAlgorithm_1 = require("./NodeIteratorAlgorithm");
43
- var ShadowTreeAlgorithm_1 = require("./ShadowTreeAlgorithm");
44
- var MutationObserverAlgorithm_1 = require("./MutationObserverAlgorithm");
45
- var DOMAlgorithm_1 = require("./DOMAlgorithm");
46
- var DocumentAlgorithm_1 = require("./DocumentAlgorithm");
3
+ exports.mutation_ensurePreInsertionValidity = mutation_ensurePreInsertionValidity;
4
+ exports.mutation_preInsert = mutation_preInsert;
5
+ exports.mutation_insert = mutation_insert;
6
+ exports.mutation_append = mutation_append;
7
+ exports.mutation_replace = mutation_replace;
8
+ exports.mutation_replaceAll = mutation_replaceAll;
9
+ exports.mutation_preRemove = mutation_preRemove;
10
+ exports.mutation_remove = mutation_remove;
11
+ const DOMImpl_1 = require("../dom/DOMImpl");
12
+ const DOMException_1 = require("../dom/DOMException");
13
+ const interfaces_1 = require("../dom/interfaces");
14
+ const util_1 = require("../util");
15
+ const util_2 = require("@oozcitak/util");
16
+ const infra_1 = require("@oozcitak/infra");
17
+ const CustomElementAlgorithm_1 = require("./CustomElementAlgorithm");
18
+ const TreeAlgorithm_1 = require("./TreeAlgorithm");
19
+ const NodeIteratorAlgorithm_1 = require("./NodeIteratorAlgorithm");
20
+ const ShadowTreeAlgorithm_1 = require("./ShadowTreeAlgorithm");
21
+ const MutationObserverAlgorithm_1 = require("./MutationObserverAlgorithm");
22
+ const DOMAlgorithm_1 = require("./DOMAlgorithm");
23
+ const DocumentAlgorithm_1 = require("./DocumentAlgorithm");
47
24
  /**
48
25
  * Ensures pre-insertion validity of a node into a parent before a
49
26
  * child.
@@ -53,10 +30,9 @@ var DocumentAlgorithm_1 = require("./DocumentAlgorithm");
53
30
  * @param child - child node to insert node before
54
31
  */
55
32
  function mutation_ensurePreInsertionValidity(node, parent, child) {
56
- var e_1, _a, e_2, _b, e_3, _c, e_4, _d;
57
- var parentNodeType = parent._nodeType;
58
- var nodeNodeType = node._nodeType;
59
- var childNodeType = child ? child._nodeType : null;
33
+ const parentNodeType = parent._nodeType;
34
+ const nodeNodeType = node._nodeType;
35
+ const childNodeType = child ? child._nodeType : null;
60
36
  /**
61
37
  * 1. If parent is not a Document, DocumentFragment, or Element node,
62
38
  * throw a "HierarchyRequestError" DOMException.
@@ -64,19 +40,19 @@ function mutation_ensurePreInsertionValidity(node, parent, child) {
64
40
  if (parentNodeType !== interfaces_1.NodeType.Document &&
65
41
  parentNodeType !== interfaces_1.NodeType.DocumentFragment &&
66
42
  parentNodeType !== interfaces_1.NodeType.Element)
67
- throw new DOMException_1.HierarchyRequestError("Only document, document fragment and element nodes can contain child nodes. Parent node is " + parent.nodeName + ".");
43
+ throw new DOMException_1.HierarchyRequestError(`Only document, document fragment and element nodes can contain child nodes. Parent node is ${parent.nodeName}.`);
68
44
  /**
69
45
  * 2. If node is a host-including inclusive ancestor of parent, throw a
70
46
  * "HierarchyRequestError" DOMException.
71
47
  */
72
- if (TreeAlgorithm_1.tree_isHostIncludingAncestorOf(parent, node, true))
73
- throw new DOMException_1.HierarchyRequestError("The node to be inserted cannot be an inclusive ancestor of parent node. Node is " + node.nodeName + ", parent node is " + parent.nodeName + ".");
48
+ if ((0, TreeAlgorithm_1.tree_isHostIncludingAncestorOf)(parent, node, true))
49
+ throw new DOMException_1.HierarchyRequestError(`The node to be inserted cannot be an inclusive ancestor of parent node. Node is ${node.nodeName}, parent node is ${parent.nodeName}.`);
74
50
  /**
75
51
  * 3. If child is not null and its parent is not parent, then throw a
76
52
  * "NotFoundError" DOMException.
77
53
  */
78
54
  if (child !== null && child._parent !== parent)
79
- throw new DOMException_1.NotFoundError("The reference child node cannot be found under parent node. Child node is " + child.nodeName + ", parent node is " + parent.nodeName + ".");
55
+ throw new DOMException_1.NotFoundError(`The reference child node cannot be found under parent node. Child node is ${child.nodeName}, parent node is ${parent.nodeName}.`);
80
56
  /**
81
57
  * 4. If node is not a DocumentFragment, DocumentType, Element, Text,
82
58
  * ProcessingInstruction, or Comment node, throw a "HierarchyRequestError"
@@ -89,7 +65,7 @@ function mutation_ensurePreInsertionValidity(node, parent, child) {
89
65
  nodeNodeType !== interfaces_1.NodeType.ProcessingInstruction &&
90
66
  nodeNodeType !== interfaces_1.NodeType.CData &&
91
67
  nodeNodeType !== interfaces_1.NodeType.Comment)
92
- throw new DOMException_1.HierarchyRequestError("Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is " + node.nodeName + ".");
68
+ throw new DOMException_1.HierarchyRequestError(`Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is ${node.nodeName}.`);
93
69
  /**
94
70
  * 5. If either node is a Text node and parent is a document, or node is a
95
71
  * doctype and parent is not a document, throw a "HierarchyRequestError"
@@ -97,10 +73,10 @@ function mutation_ensurePreInsertionValidity(node, parent, child) {
97
73
  */
98
74
  if (nodeNodeType === interfaces_1.NodeType.Text &&
99
75
  parentNodeType === interfaces_1.NodeType.Document)
100
- throw new DOMException_1.HierarchyRequestError("Cannot insert a text node as a child of a document node. Node is " + node.nodeName + ".");
76
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert a text node as a child of a document node. Node is ${node.nodeName}.`);
101
77
  if (nodeNodeType === interfaces_1.NodeType.DocumentType &&
102
78
  parentNodeType !== interfaces_1.NodeType.Document)
103
- throw new DOMException_1.HierarchyRequestError("A document type node can only be inserted under a document node. Parent node is " + parent.nodeName + ".");
79
+ throw new DOMException_1.HierarchyRequestError(`A document type node can only be inserted under a document node. Parent node is ${parent.nodeName}.`);
104
80
  /**
105
81
  * 6. If parent is a document, and any of the statements below, switched on
106
82
  * node, are true, throw a "HierarchyRequestError" DOMException.
@@ -118,114 +94,73 @@ function mutation_ensurePreInsertionValidity(node, parent, child) {
118
94
  */
119
95
  if (parentNodeType === interfaces_1.NodeType.Document) {
120
96
  if (nodeNodeType === interfaces_1.NodeType.DocumentFragment) {
121
- var eleCount = 0;
122
- try {
123
- for (var _e = __values(node._children), _f = _e.next(); !_f.done; _f = _e.next()) {
124
- var childNode = _f.value;
125
- if (childNode._nodeType === interfaces_1.NodeType.Element)
126
- eleCount++;
127
- else if (childNode._nodeType === interfaces_1.NodeType.Text)
128
- throw new DOMException_1.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is " + childNode.nodeName + ".");
129
- }
130
- }
131
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
132
- finally {
133
- try {
134
- if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
135
- }
136
- finally { if (e_1) throw e_1.error; }
97
+ let eleCount = 0;
98
+ for (const childNode of node._children) {
99
+ if (childNode._nodeType === interfaces_1.NodeType.Element)
100
+ eleCount++;
101
+ else if (childNode._nodeType === interfaces_1.NodeType.Text)
102
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert text a node as a child of a document node. Node is ${childNode.nodeName}.`);
137
103
  }
138
104
  if (eleCount > 1) {
139
- throw new DOMException_1.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has " + eleCount + " element nodes.");
105
+ throw new DOMException_1.HierarchyRequestError(`A document node can only have one document element node. Document fragment to be inserted has ${eleCount} element nodes.`);
140
106
  }
141
107
  else if (eleCount === 1) {
142
- try {
143
- for (var _g = __values(parent._children), _h = _g.next(); !_h.done; _h = _g.next()) {
144
- var ele = _h.value;
145
- if (ele._nodeType === interfaces_1.NodeType.Element)
146
- throw new DOMException_1.HierarchyRequestError("The document node already has a document element node.");
147
- }
148
- }
149
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
150
- finally {
151
- try {
152
- if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
153
- }
154
- finally { if (e_2) throw e_2.error; }
108
+ for (const ele of parent._children) {
109
+ if (ele._nodeType === interfaces_1.NodeType.Element)
110
+ throw new DOMException_1.HierarchyRequestError(`The document node already has a document element node.`);
155
111
  }
156
112
  if (child) {
157
113
  if (childNodeType === interfaces_1.NodeType.DocumentType)
158
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node.");
159
- var doctypeChild = child._nextSibling;
114
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node.`);
115
+ let doctypeChild = child._nextSibling;
160
116
  while (doctypeChild) {
161
117
  if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
162
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node.");
118
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node.`);
163
119
  doctypeChild = doctypeChild._nextSibling;
164
120
  }
165
121
  }
166
122
  }
167
123
  }
168
124
  else if (nodeNodeType === interfaces_1.NodeType.Element) {
169
- try {
170
- for (var _j = __values(parent._children), _k = _j.next(); !_k.done; _k = _j.next()) {
171
- var ele = _k.value;
172
- if (ele._nodeType === interfaces_1.NodeType.Element)
173
- throw new DOMException_1.HierarchyRequestError("Document already has a document element node. Node is " + node.nodeName + ".");
174
- }
175
- }
176
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
177
- finally {
178
- try {
179
- if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
180
- }
181
- finally { if (e_3) throw e_3.error; }
125
+ for (const ele of parent._children) {
126
+ if (ele._nodeType === interfaces_1.NodeType.Element)
127
+ throw new DOMException_1.HierarchyRequestError(`Document already has a document element node. Node is ${node.nodeName}.`);
182
128
  }
183
129
  if (child) {
184
130
  if (childNodeType === interfaces_1.NodeType.DocumentType)
185
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node. Node is " + node.nodeName + ".");
186
- var doctypeChild = child._nextSibling;
131
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${node.nodeName}.`);
132
+ let doctypeChild = child._nextSibling;
187
133
  while (doctypeChild) {
188
134
  if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
189
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node. Node is " + node.nodeName + ".");
135
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${node.nodeName}.`);
190
136
  doctypeChild = doctypeChild._nextSibling;
191
137
  }
192
138
  }
193
139
  }
194
140
  else if (nodeNodeType === interfaces_1.NodeType.DocumentType) {
195
- try {
196
- for (var _l = __values(parent._children), _m = _l.next(); !_m.done; _m = _l.next()) {
197
- var ele = _m.value;
198
- if (ele._nodeType === interfaces_1.NodeType.DocumentType)
199
- throw new DOMException_1.HierarchyRequestError("Document already has a document type node. Node is " + node.nodeName + ".");
200
- }
201
- }
202
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
203
- finally {
204
- try {
205
- if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
206
- }
207
- finally { if (e_4) throw e_4.error; }
141
+ for (const ele of parent._children) {
142
+ if (ele._nodeType === interfaces_1.NodeType.DocumentType)
143
+ throw new DOMException_1.HierarchyRequestError(`Document already has a document type node. Node is ${node.nodeName}.`);
208
144
  }
209
145
  if (child) {
210
- var elementChild = child._previousSibling;
146
+ let elementChild = child._previousSibling;
211
147
  while (elementChild) {
212
148
  if (elementChild._nodeType === interfaces_1.NodeType.Element)
213
- throw new DOMException_1.HierarchyRequestError("Cannot insert a document type node before an element node. Node is " + node.nodeName + ".");
149
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${node.nodeName}.`);
214
150
  elementChild = elementChild._previousSibling;
215
151
  }
216
152
  }
217
153
  else {
218
- var elementChild = parent._firstChild;
154
+ let elementChild = parent._firstChild;
219
155
  while (elementChild) {
220
156
  if (elementChild._nodeType === interfaces_1.NodeType.Element)
221
- throw new DOMException_1.HierarchyRequestError("Cannot insert a document type node before an element node. Node is " + node.nodeName + ".");
157
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${node.nodeName}.`);
222
158
  elementChild = elementChild._nextSibling;
223
159
  }
224
160
  }
225
161
  }
226
162
  }
227
163
  }
228
- exports.mutation_ensurePreInsertionValidity = mutation_ensurePreInsertionValidity;
229
164
  /**
230
165
  * Ensures pre-insertion validity of a node into a parent before a
231
166
  * child, then adopts the node to the tree and inserts it.
@@ -244,14 +179,13 @@ function mutation_preInsert(node, parent, child) {
244
179
  * 6. Return node.
245
180
  */
246
181
  mutation_ensurePreInsertionValidity(node, parent, child);
247
- var referenceChild = child;
182
+ let referenceChild = child;
248
183
  if (referenceChild === node)
249
184
  referenceChild = node._nextSibling;
250
- DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
185
+ (0, DocumentAlgorithm_1.document_adopt)(node, parent._nodeDocument);
251
186
  mutation_insert(node, parent, referenceChild);
252
187
  return node;
253
188
  }
254
- exports.mutation_preInsert = mutation_preInsert;
255
189
  /**
256
190
  * Inserts a node into a parent node before the given child node.
257
191
  *
@@ -261,7 +195,6 @@ exports.mutation_preInsert = mutation_preInsert;
261
195
  * @param suppressObservers - whether to notify observers
262
196
  */
263
197
  function mutation_insert(node, parent, child, suppressObservers) {
264
- var e_5, _a;
265
198
  // Optimized common case
266
199
  if (child === null && node._nodeType !== interfaces_1.NodeType.DocumentFragment) {
267
200
  mutation_insert_single(node, parent, suppressObservers);
@@ -271,7 +204,7 @@ function mutation_insert(node, parent, child, suppressObservers) {
271
204
  * 1. Let count be the number of children of node if it is a
272
205
  * DocumentFragment node, and one otherwise.
273
206
  */
274
- var count = (node._nodeType === interfaces_1.NodeType.DocumentFragment ?
207
+ const count = (node._nodeType === interfaces_1.NodeType.DocumentFragment ?
275
208
  node._children.size : 1);
276
209
  /**
277
210
  * 2. If child is non-null, then:
@@ -286,24 +219,14 @@ function mutation_insert(node, parent, child, suppressObservers) {
286
219
  * offset by count.
287
220
  */
288
221
  if (DOMImpl_1.dom.rangeList.size !== 0) {
289
- var index_1 = TreeAlgorithm_1.tree_index(child);
290
- try {
291
- for (var _b = __values(DOMImpl_1.dom.rangeList), _c = _b.next(); !_c.done; _c = _b.next()) {
292
- var range = _c.value;
293
- if (range._start[0] === parent && range._start[1] > index_1) {
294
- range._start[1] += count;
295
- }
296
- if (range._end[0] === parent && range._end[1] > index_1) {
297
- range._end[1] += count;
298
- }
222
+ const index = (0, TreeAlgorithm_1.tree_index)(child);
223
+ for (const range of DOMImpl_1.dom.rangeList) {
224
+ if (range._start[0] === parent && range._start[1] > index) {
225
+ range._start[1] += count;
299
226
  }
300
- }
301
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
302
- finally {
303
- try {
304
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
227
+ if (range._end[0] === parent && range._end[1] > index) {
228
+ range._end[1] += count;
305
229
  }
306
- finally { if (e_5) throw e_5.error; }
307
230
  }
308
231
  }
309
232
  }
@@ -311,7 +234,8 @@ function mutation_insert(node, parent, child, suppressObservers) {
311
234
  * 3. Let nodes be node’s children, if node is a DocumentFragment node;
312
235
  * otherwise « node ».
313
236
  */
314
- var nodes = node._nodeType === interfaces_1.NodeType.DocumentFragment ? new (Array.bind.apply(Array, __spread([void 0], node._children)))() : [node];
237
+ const nodes = node._nodeType === interfaces_1.NodeType.DocumentFragment ?
238
+ new Array(...node._children) : [node];
315
239
  /**
316
240
  * 4. If node is a DocumentFragment node, remove its children with the
317
241
  * suppress observers flag set.
@@ -327,29 +251,29 @@ function mutation_insert(node, parent, child, suppressObservers) {
327
251
  */
328
252
  if (DOMImpl_1.dom.features.mutationObservers) {
329
253
  if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
330
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(node, [], nodes, null, null);
254
+ (0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(node, [], nodes, null, null);
331
255
  }
332
256
  }
333
257
  /**
334
258
  * 6. Let previousSibling be child’s previous sibling or parent’s last
335
259
  * child if child is null.
336
260
  */
337
- var previousSibling = (child ? child._previousSibling : parent._lastChild);
338
- var index = child === null ? -1 : TreeAlgorithm_1.tree_index(child);
261
+ const previousSibling = (child ? child._previousSibling : parent._lastChild);
262
+ let index = child === null ? -1 : (0, TreeAlgorithm_1.tree_index)(child);
339
263
  /**
340
264
  * 7. For each node in nodes, in tree order:
341
265
  */
342
- for (var i = 0; i < nodes.length; i++) {
343
- var node_1 = nodes[i];
344
- if (util_1.Guard.isElementNode(node_1)) {
266
+ for (let i = 0; i < nodes.length; i++) {
267
+ const node = nodes[i];
268
+ if (util_1.Guard.isElementNode(node)) {
345
269
  // set document element node
346
270
  if (util_1.Guard.isDocumentNode(parent)) {
347
- parent._documentElement = node_1;
271
+ parent._documentElement = node;
348
272
  }
349
273
  // mark that the document has namespaces
350
- if (!node_1._nodeDocument._hasNamespaces && (node_1._namespace !== null ||
351
- node_1._namespacePrefix !== null)) {
352
- node_1._nodeDocument._hasNamespaces = true;
274
+ if (!node._nodeDocument._hasNamespaces && (node._namespace !== null ||
275
+ node._namespacePrefix !== null)) {
276
+ node._nodeDocument._hasNamespaces = true;
353
277
  }
354
278
  }
355
279
  /**
@@ -357,42 +281,42 @@ function mutation_insert(node, parent, child, suppressObservers) {
357
281
  * 7.2. Otherwise, insert node into parent’s children before child’s
358
282
  * index.
359
283
  */
360
- node_1._parent = parent;
284
+ node._parent = parent;
361
285
  if (child === null) {
362
- infra_1.set.append(parent._children, node_1);
286
+ infra_1.set.append(parent._children, node);
363
287
  }
364
288
  else {
365
- infra_1.set.insert(parent._children, node_1, index);
289
+ infra_1.set.insert(parent._children, node, index);
366
290
  index++;
367
291
  }
368
292
  // assign siblings and children for quick lookups
369
293
  if (parent._firstChild === null) {
370
- node_1._previousSibling = null;
371
- node_1._nextSibling = null;
372
- parent._firstChild = node_1;
373
- parent._lastChild = node_1;
294
+ node._previousSibling = null;
295
+ node._nextSibling = null;
296
+ parent._firstChild = node;
297
+ parent._lastChild = node;
374
298
  }
375
299
  else {
376
- var prev = (child ? child._previousSibling : parent._lastChild);
377
- var next = (child ? child : null);
378
- node_1._previousSibling = prev;
379
- node_1._nextSibling = next;
300
+ const prev = (child ? child._previousSibling : parent._lastChild);
301
+ const next = (child ? child : null);
302
+ node._previousSibling = prev;
303
+ node._nextSibling = next;
380
304
  if (prev)
381
- prev._nextSibling = node_1;
305
+ prev._nextSibling = node;
382
306
  if (next)
383
- next._previousSibling = node_1;
307
+ next._previousSibling = node;
384
308
  if (!prev)
385
- parent._firstChild = node_1;
309
+ parent._firstChild = node;
386
310
  if (!next)
387
- parent._lastChild = node_1;
311
+ parent._lastChild = node;
388
312
  }
389
313
  /**
390
314
  * 7.3. If parent is a shadow host and node is a slotable, then
391
315
  * assign a slot for node.
392
316
  */
393
317
  if (DOMImpl_1.dom.features.slots) {
394
- if (parent._shadowRoot !== null && util_1.Guard.isSlotable(node_1)) {
395
- ShadowTreeAlgorithm_1.shadowTree_assignASlot(node_1);
318
+ if (parent._shadowRoot !== null && util_1.Guard.isSlotable(node)) {
319
+ (0, ShadowTreeAlgorithm_1.shadowTree_assignASlot)(node);
396
320
  }
397
321
  }
398
322
  /**
@@ -400,8 +324,8 @@ function mutation_insert(node, parent, child, suppressObservers) {
400
324
  * steps for parent.
401
325
  */
402
326
  if (DOMImpl_1.dom.features.steps) {
403
- if (util_1.Guard.isTextNode(node_1)) {
404
- DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
327
+ if (util_1.Guard.isTextNode(node)) {
328
+ (0, DOMAlgorithm_1.dom_runChildTextContentChangeSteps)(parent);
405
329
  }
406
330
  }
407
331
  /**
@@ -410,53 +334,53 @@ function mutation_insert(node, parent, child, suppressObservers) {
410
334
  * a slot change for parent.
411
335
  */
412
336
  if (DOMImpl_1.dom.features.slots) {
413
- if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
414
- util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
415
- ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
337
+ if (util_1.Guard.isShadowRoot((0, TreeAlgorithm_1.tree_rootNode)(parent)) &&
338
+ util_1.Guard.isSlot(parent) && (0, util_2.isEmpty)(parent._assignedNodes)) {
339
+ (0, ShadowTreeAlgorithm_1.shadowTree_signalASlotChange)(parent);
416
340
  }
417
341
  }
418
342
  /**
419
343
  * 7.6. Run assign slotables for a tree with node's root.
420
344
  */
421
345
  if (DOMImpl_1.dom.features.slots) {
422
- ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(node_1));
346
+ (0, ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree)((0, TreeAlgorithm_1.tree_rootNode)(node));
423
347
  }
424
348
  /**
425
349
  * 7.7. For each shadow-including inclusive descendant
426
350
  * inclusiveDescendant of node, in shadow-including tree
427
351
  * order:
428
352
  */
429
- var inclusiveDescendant = TreeAlgorithm_1.tree_getFirstDescendantNode(node_1, true, true);
353
+ let inclusiveDescendant = (0, TreeAlgorithm_1.tree_getFirstDescendantNode)(node, true, true);
430
354
  while (inclusiveDescendant !== null) {
431
355
  /**
432
356
  * 7.7.1. Run the insertion steps with inclusiveDescendant.
433
357
  */
434
358
  if (DOMImpl_1.dom.features.steps) {
435
- DOMAlgorithm_1.dom_runInsertionSteps(inclusiveDescendant);
359
+ (0, DOMAlgorithm_1.dom_runInsertionSteps)(inclusiveDescendant);
436
360
  }
437
361
  if (DOMImpl_1.dom.features.customElements) {
438
362
  /**
439
363
  * 7.7.2. If inclusiveDescendant is connected, then:
440
364
  */
441
365
  if (util_1.Guard.isElementNode(inclusiveDescendant) &&
442
- ShadowTreeAlgorithm_1.shadowTree_isConnected(inclusiveDescendant)) {
366
+ (0, ShadowTreeAlgorithm_1.shadowTree_isConnected)(inclusiveDescendant)) {
443
367
  if (util_1.Guard.isCustomElementNode(inclusiveDescendant)) {
444
368
  /**
445
369
  * 7.7.2.1. If inclusiveDescendant is custom, then enqueue a custom
446
370
  * element callback reaction with inclusiveDescendant, callback name
447
371
  * "connectedCallback", and an empty argument list.
448
372
  */
449
- CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(inclusiveDescendant, "connectedCallback", []);
373
+ (0, CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction)(inclusiveDescendant, "connectedCallback", []);
450
374
  }
451
375
  else {
452
376
  /**
453
377
  * 7.7.2.2. Otherwise, try to upgrade inclusiveDescendant.
454
378
  */
455
- CustomElementAlgorithm_1.customElement_tryToUpgrade(inclusiveDescendant);
379
+ (0, CustomElementAlgorithm_1.customElement_tryToUpgrade)(inclusiveDescendant);
456
380
  }
457
381
  }
458
382
  }
459
- inclusiveDescendant = TreeAlgorithm_1.tree_getNextDescendantNode(node_1, inclusiveDescendant, true, true);
383
+ inclusiveDescendant = (0, TreeAlgorithm_1.tree_getNextDescendantNode)(node, inclusiveDescendant, true, true);
460
384
  }
461
385
  }
462
386
  /**
@@ -465,11 +389,10 @@ function mutation_insert(node, parent, child, suppressObservers) {
465
389
  */
466
390
  if (DOMImpl_1.dom.features.mutationObservers) {
467
391
  if (!suppressObservers) {
468
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, nodes, [], previousSibling, child);
392
+ (0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(parent, nodes, [], previousSibling, child);
469
393
  }
470
394
  }
471
395
  }
472
- exports.mutation_insert = mutation_insert;
473
396
  /**
474
397
  * Inserts a node into a parent node. Optimized routine for the common case where
475
398
  * node is not a document fragment node and it has no child nodes.
@@ -500,7 +423,7 @@ function mutation_insert_single(node, parent, suppressObservers) {
500
423
  * 6. Let previousSibling be child’s previous sibling or parent’s last
501
424
  * child if child is null.
502
425
  */
503
- var previousSibling = parent._lastChild;
426
+ const previousSibling = parent._lastChild;
504
427
  // set document element node
505
428
  if (util_1.Guard.isElementNode(node)) {
506
429
  // set document element node
@@ -529,7 +452,7 @@ function mutation_insert_single(node, parent, suppressObservers) {
529
452
  parent._lastChild = node;
530
453
  }
531
454
  else {
532
- var prev = parent._lastChild;
455
+ const prev = parent._lastChild;
533
456
  node._previousSibling = prev;
534
457
  node._nextSibling = null;
535
458
  if (prev)
@@ -544,7 +467,7 @@ function mutation_insert_single(node, parent, suppressObservers) {
544
467
  */
545
468
  if (DOMImpl_1.dom.features.slots) {
546
469
  if (parent._shadowRoot !== null && util_1.Guard.isSlotable(node)) {
547
- ShadowTreeAlgorithm_1.shadowTree_assignASlot(node);
470
+ (0, ShadowTreeAlgorithm_1.shadowTree_assignASlot)(node);
548
471
  }
549
472
  }
550
473
  /**
@@ -553,7 +476,7 @@ function mutation_insert_single(node, parent, suppressObservers) {
553
476
  */
554
477
  if (DOMImpl_1.dom.features.steps) {
555
478
  if (util_1.Guard.isTextNode(node)) {
556
- DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
479
+ (0, DOMAlgorithm_1.dom_runChildTextContentChangeSteps)(parent);
557
480
  }
558
481
  }
559
482
  /**
@@ -562,16 +485,16 @@ function mutation_insert_single(node, parent, suppressObservers) {
562
485
  * a slot change for parent.
563
486
  */
564
487
  if (DOMImpl_1.dom.features.slots) {
565
- if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
566
- util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
567
- ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
488
+ if (util_1.Guard.isShadowRoot((0, TreeAlgorithm_1.tree_rootNode)(parent)) &&
489
+ util_1.Guard.isSlot(parent) && (0, util_2.isEmpty)(parent._assignedNodes)) {
490
+ (0, ShadowTreeAlgorithm_1.shadowTree_signalASlotChange)(parent);
568
491
  }
569
492
  }
570
493
  /**
571
494
  * 7.6. Run assign slotables for a tree with node's root.
572
495
  */
573
496
  if (DOMImpl_1.dom.features.slots) {
574
- ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(node));
497
+ (0, ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree)((0, TreeAlgorithm_1.tree_rootNode)(node));
575
498
  }
576
499
  /**
577
500
  * 7.7. For each shadow-including inclusive descendant
@@ -580,27 +503,27 @@ function mutation_insert_single(node, parent, suppressObservers) {
580
503
  * 7.7.1. Run the insertion steps with inclusiveDescendant.
581
504
  */
582
505
  if (DOMImpl_1.dom.features.steps) {
583
- DOMAlgorithm_1.dom_runInsertionSteps(node);
506
+ (0, DOMAlgorithm_1.dom_runInsertionSteps)(node);
584
507
  }
585
508
  if (DOMImpl_1.dom.features.customElements) {
586
509
  /**
587
510
  * 7.7.2. If inclusiveDescendant is connected, then:
588
511
  */
589
512
  if (util_1.Guard.isElementNode(node) &&
590
- ShadowTreeAlgorithm_1.shadowTree_isConnected(node)) {
513
+ (0, ShadowTreeAlgorithm_1.shadowTree_isConnected)(node)) {
591
514
  if (util_1.Guard.isCustomElementNode(node)) {
592
515
  /**
593
516
  * 7.7.2.1. If inclusiveDescendant is custom, then enqueue a custom
594
517
  * element callback reaction with inclusiveDescendant, callback name
595
518
  * "connectedCallback", and an empty argument list.
596
519
  */
597
- CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(node, "connectedCallback", []);
520
+ (0, CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction)(node, "connectedCallback", []);
598
521
  }
599
522
  else {
600
523
  /**
601
524
  * 7.7.2.2. Otherwise, try to upgrade inclusiveDescendant.
602
525
  */
603
- CustomElementAlgorithm_1.customElement_tryToUpgrade(node);
526
+ (0, CustomElementAlgorithm_1.customElement_tryToUpgrade)(node);
604
527
  }
605
528
  }
606
529
  }
@@ -610,7 +533,7 @@ function mutation_insert_single(node, parent, suppressObservers) {
610
533
  */
611
534
  if (DOMImpl_1.dom.features.mutationObservers) {
612
535
  if (!suppressObservers) {
613
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, [node], [], previousSibling, null);
536
+ (0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(parent, [node], [], previousSibling, null);
614
537
  }
615
538
  }
616
539
  }
@@ -626,7 +549,6 @@ function mutation_append(node, parent) {
626
549
  */
627
550
  return mutation_preInsert(node, parent, null);
628
551
  }
629
- exports.mutation_append = mutation_append;
630
552
  /**
631
553
  * Replaces a node with another node.
632
554
  *
@@ -635,7 +557,6 @@ exports.mutation_append = mutation_append;
635
557
  * @param parent - parent node to receive node
636
558
  */
637
559
  function mutation_replace(child, node, parent) {
638
- var e_6, _a, e_7, _b, e_8, _c, e_9, _d;
639
560
  /**
640
561
  * 1. If parent is not a Document, DocumentFragment, or Element node,
641
562
  * throw a "HierarchyRequestError" DOMException.
@@ -643,19 +564,19 @@ function mutation_replace(child, node, parent) {
643
564
  if (parent._nodeType !== interfaces_1.NodeType.Document &&
644
565
  parent._nodeType !== interfaces_1.NodeType.DocumentFragment &&
645
566
  parent._nodeType !== interfaces_1.NodeType.Element)
646
- throw new DOMException_1.HierarchyRequestError("Only document, document fragment and element nodes can contain child nodes. Parent node is " + parent.nodeName + ".");
567
+ throw new DOMException_1.HierarchyRequestError(`Only document, document fragment and element nodes can contain child nodes. Parent node is ${parent.nodeName}.`);
647
568
  /**
648
569
  * 2. If node is a host-including inclusive ancestor of parent, throw a
649
570
  * "HierarchyRequestError" DOMException.
650
571
  */
651
- if (TreeAlgorithm_1.tree_isHostIncludingAncestorOf(parent, node, true))
652
- throw new DOMException_1.HierarchyRequestError("The node to be inserted cannot be an ancestor of parent node. Node is " + node.nodeName + ", parent node is " + parent.nodeName + ".");
572
+ if ((0, TreeAlgorithm_1.tree_isHostIncludingAncestorOf)(parent, node, true))
573
+ throw new DOMException_1.HierarchyRequestError(`The node to be inserted cannot be an ancestor of parent node. Node is ${node.nodeName}, parent node is ${parent.nodeName}.`);
653
574
  /**
654
575
  * 3. If child’s parent is not parent, then throw a "NotFoundError"
655
576
  * DOMException.
656
577
  */
657
578
  if (child._parent !== parent)
658
- throw new DOMException_1.NotFoundError("The reference child node cannot be found under parent node. Child node is " + child.nodeName + ", parent node is " + parent.nodeName + ".");
579
+ throw new DOMException_1.NotFoundError(`The reference child node cannot be found under parent node. Child node is ${child.nodeName}, parent node is ${parent.nodeName}.`);
659
580
  /**
660
581
  * 4. If node is not a DocumentFragment, DocumentType, Element, Text,
661
582
  * ProcessingInstruction, or Comment node, throw a "HierarchyRequestError"
@@ -668,7 +589,7 @@ function mutation_replace(child, node, parent) {
668
589
  node._nodeType !== interfaces_1.NodeType.ProcessingInstruction &&
669
590
  node._nodeType !== interfaces_1.NodeType.CData &&
670
591
  node._nodeType !== interfaces_1.NodeType.Comment)
671
- throw new DOMException_1.HierarchyRequestError("Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is " + node.nodeName + ".");
592
+ throw new DOMException_1.HierarchyRequestError(`Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is ${node.nodeName}.`);
672
593
  /**
673
594
  * 5. If either node is a Text node and parent is a document, or node is a
674
595
  * doctype and parent is not a document, throw a "HierarchyRequestError"
@@ -676,10 +597,10 @@ function mutation_replace(child, node, parent) {
676
597
  */
677
598
  if (node._nodeType === interfaces_1.NodeType.Text &&
678
599
  parent._nodeType === interfaces_1.NodeType.Document)
679
- throw new DOMException_1.HierarchyRequestError("Cannot insert a text node as a child of a document node. Node is " + node.nodeName + ".");
600
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert a text node as a child of a document node. Node is ${node.nodeName}.`);
680
601
  if (node._nodeType === interfaces_1.NodeType.DocumentType &&
681
602
  parent._nodeType !== interfaces_1.NodeType.Document)
682
- throw new DOMException_1.HierarchyRequestError("A document type node can only be inserted under a document node. Parent node is " + parent.nodeName + ".");
603
+ throw new DOMException_1.HierarchyRequestError(`A document type node can only be inserted under a document node. Parent node is ${parent.nodeName}.`);
683
604
  /**
684
605
  * 6. If parent is a document, and any of the statements below, switched on
685
606
  * node, are true, throw a "HierarchyRequestError" DOMException.
@@ -696,90 +617,50 @@ function mutation_replace(child, node, parent) {
696
617
  */
697
618
  if (parent._nodeType === interfaces_1.NodeType.Document) {
698
619
  if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
699
- var eleCount = 0;
700
- try {
701
- for (var _e = __values(node._children), _f = _e.next(); !_f.done; _f = _e.next()) {
702
- var childNode = _f.value;
703
- if (childNode._nodeType === interfaces_1.NodeType.Element)
704
- eleCount++;
705
- else if (childNode._nodeType === interfaces_1.NodeType.Text)
706
- throw new DOMException_1.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is " + childNode.nodeName + ".");
707
- }
708
- }
709
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
710
- finally {
711
- try {
712
- if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
713
- }
714
- finally { if (e_6) throw e_6.error; }
620
+ let eleCount = 0;
621
+ for (const childNode of node._children) {
622
+ if (childNode._nodeType === interfaces_1.NodeType.Element)
623
+ eleCount++;
624
+ else if (childNode._nodeType === interfaces_1.NodeType.Text)
625
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert text a node as a child of a document node. Node is ${childNode.nodeName}.`);
715
626
  }
716
627
  if (eleCount > 1) {
717
- throw new DOMException_1.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has " + eleCount + " element nodes.");
628
+ throw new DOMException_1.HierarchyRequestError(`A document node can only have one document element node. Document fragment to be inserted has ${eleCount} element nodes.`);
718
629
  }
719
630
  else if (eleCount === 1) {
720
- try {
721
- for (var _g = __values(parent._children), _h = _g.next(); !_h.done; _h = _g.next()) {
722
- var ele = _h.value;
723
- if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
724
- throw new DOMException_1.HierarchyRequestError("The document node already has a document element node.");
725
- }
726
- }
727
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
728
- finally {
729
- try {
730
- if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
731
- }
732
- finally { if (e_7) throw e_7.error; }
631
+ for (const ele of parent._children) {
632
+ if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
633
+ throw new DOMException_1.HierarchyRequestError(`The document node already has a document element node.`);
733
634
  }
734
- var doctypeChild = child._nextSibling;
635
+ let doctypeChild = child._nextSibling;
735
636
  while (doctypeChild) {
736
637
  if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
737
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node.");
638
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node.`);
738
639
  doctypeChild = doctypeChild._nextSibling;
739
640
  }
740
641
  }
741
642
  }
742
643
  else if (node._nodeType === interfaces_1.NodeType.Element) {
743
- try {
744
- for (var _j = __values(parent._children), _k = _j.next(); !_k.done; _k = _j.next()) {
745
- var ele = _k.value;
746
- if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
747
- throw new DOMException_1.HierarchyRequestError("Document already has a document element node. Node is " + node.nodeName + ".");
748
- }
644
+ for (const ele of parent._children) {
645
+ if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
646
+ throw new DOMException_1.HierarchyRequestError(`Document already has a document element node. Node is ${node.nodeName}.`);
749
647
  }
750
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
751
- finally {
752
- try {
753
- if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
754
- }
755
- finally { if (e_8) throw e_8.error; }
756
- }
757
- var doctypeChild = child._nextSibling;
648
+ let doctypeChild = child._nextSibling;
758
649
  while (doctypeChild) {
759
650
  if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
760
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node. Node is " + node.nodeName + ".");
651
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${node.nodeName}.`);
761
652
  doctypeChild = doctypeChild._nextSibling;
762
653
  }
763
654
  }
764
655
  else if (node._nodeType === interfaces_1.NodeType.DocumentType) {
765
- try {
766
- for (var _l = __values(parent._children), _m = _l.next(); !_m.done; _m = _l.next()) {
767
- var ele = _m.value;
768
- if (ele._nodeType === interfaces_1.NodeType.DocumentType && ele !== child)
769
- throw new DOMException_1.HierarchyRequestError("Document already has a document type node. Node is " + node.nodeName + ".");
770
- }
656
+ for (const ele of parent._children) {
657
+ if (ele._nodeType === interfaces_1.NodeType.DocumentType && ele !== child)
658
+ throw new DOMException_1.HierarchyRequestError(`Document already has a document type node. Node is ${node.nodeName}.`);
771
659
  }
772
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
773
- finally {
774
- try {
775
- if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
776
- }
777
- finally { if (e_9) throw e_9.error; }
778
- }
779
- var elementChild = child._previousSibling;
660
+ let elementChild = child._previousSibling;
780
661
  while (elementChild) {
781
662
  if (elementChild._nodeType === interfaces_1.NodeType.Element)
782
- throw new DOMException_1.HierarchyRequestError("Cannot insert a document type node before an element node. Node is " + node.nodeName + ".");
663
+ throw new DOMException_1.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${node.nodeName}.`);
783
664
  elementChild = elementChild._previousSibling;
784
665
  }
785
666
  }
@@ -789,16 +670,16 @@ function mutation_replace(child, node, parent) {
789
670
  * 8. If reference child is node, set it to node’s next sibling.
790
671
  * 8. Let previousSibling be child’s previous sibling.
791
672
  */
792
- var referenceChild = child._nextSibling;
673
+ let referenceChild = child._nextSibling;
793
674
  if (referenceChild === node)
794
675
  referenceChild = node._nextSibling;
795
- var previousSibling = child._previousSibling;
676
+ let previousSibling = child._previousSibling;
796
677
  /**
797
678
  * 10. Adopt node into parent’s node document.
798
679
  * 11. Let removedNodes be the empty list.
799
680
  */
800
- DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
801
- var removedNodes = [];
681
+ (0, DocumentAlgorithm_1.document_adopt)(node, parent._nodeDocument);
682
+ const removedNodes = [];
802
683
  /**
803
684
  * 12. If child’s parent is not null, then:
804
685
  */
@@ -815,7 +696,7 @@ function mutation_replace(child, node, parent) {
815
696
  * 13. Let nodes be node’s children if node is a DocumentFragment node;
816
697
  * otherwise [node].
817
698
  */
818
- var nodes = [];
699
+ let nodes = [];
819
700
  if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
820
701
  nodes = Array.from(node._children);
821
702
  }
@@ -832,14 +713,13 @@ function mutation_replace(child, node, parent) {
832
713
  * previousSibling, and reference child.
833
714
  */
834
715
  if (DOMImpl_1.dom.features.mutationObservers) {
835
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, nodes, removedNodes, previousSibling, referenceChild);
716
+ (0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(parent, nodes, removedNodes, previousSibling, referenceChild);
836
717
  }
837
718
  /**
838
719
  * 16. Return child.
839
720
  */
840
721
  return child;
841
722
  }
842
- exports.mutation_replace = mutation_replace;
843
723
  /**
844
724
  * Replaces all nodes of a parent with the given node.
845
725
  *
@@ -847,46 +727,35 @@ exports.mutation_replace = mutation_replace;
847
727
  * @param parent - parent node to receive node
848
728
  */
849
729
  function mutation_replaceAll(node, parent) {
850
- var e_10, _a;
851
730
  /**
852
731
  * 1. If node is not null, adopt node into parent’s node document.
853
732
  */
854
733
  if (node !== null) {
855
- DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
734
+ (0, DocumentAlgorithm_1.document_adopt)(node, parent._nodeDocument);
856
735
  }
857
736
  /**
858
737
  * 2. Let removedNodes be parent’s children.
859
738
  */
860
- var removedNodes = Array.from(parent._children);
739
+ const removedNodes = Array.from(parent._children);
861
740
  /**
862
741
  * 3. Let addedNodes be the empty list.
863
742
  * 4. If node is DocumentFragment node, then set addedNodes to node’s
864
743
  * children.
865
744
  * 5. Otherwise, if node is non-null, set addedNodes to [node].
866
745
  */
867
- var addedNodes = [];
746
+ let addedNodes = [];
868
747
  if (node && node._nodeType === interfaces_1.NodeType.DocumentFragment) {
869
748
  addedNodes = Array.from(node._children);
870
749
  }
871
750
  else if (node !== null) {
872
751
  addedNodes.push(node);
873
752
  }
874
- try {
875
- /**
876
- * 6. Remove all parent’s children, in tree order, with the suppress
877
- * observers flag set.
878
- */
879
- for (var removedNodes_1 = __values(removedNodes), removedNodes_1_1 = removedNodes_1.next(); !removedNodes_1_1.done; removedNodes_1_1 = removedNodes_1.next()) {
880
- var childNode = removedNodes_1_1.value;
881
- mutation_remove(childNode, parent, true);
882
- }
883
- }
884
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
885
- finally {
886
- try {
887
- if (removedNodes_1_1 && !removedNodes_1_1.done && (_a = removedNodes_1.return)) _a.call(removedNodes_1);
888
- }
889
- finally { if (e_10) throw e_10.error; }
753
+ /**
754
+ * 6. Remove all parent’s children, in tree order, with the suppress
755
+ * observers flag set.
756
+ */
757
+ for (const childNode of removedNodes) {
758
+ mutation_remove(childNode, parent, true);
890
759
  }
891
760
  /**
892
761
  * 7. If node is not null, then insert node into parent before null with the
@@ -900,10 +769,9 @@ function mutation_replaceAll(node, parent) {
900
769
  * null, and null.
901
770
  */
902
771
  if (DOMImpl_1.dom.features.mutationObservers) {
903
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, addedNodes, removedNodes, null, null);
772
+ (0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(parent, addedNodes, removedNodes, null, null);
904
773
  }
905
774
  }
906
- exports.mutation_replaceAll = mutation_replaceAll;
907
775
  /**
908
776
  * Ensures pre-removal validity of a child node from a parent, then
909
777
  * removes it.
@@ -919,11 +787,10 @@ function mutation_preRemove(child, parent) {
919
787
  * 3. Return child.
920
788
  */
921
789
  if (child._parent !== parent)
922
- throw new DOMException_1.NotFoundError("The child node cannot be found under parent node. Child node is " + child.nodeName + ", parent node is " + parent.nodeName + ".");
790
+ throw new DOMException_1.NotFoundError(`The child node cannot be found under parent node. Child node is ${child.nodeName}, parent node is ${parent.nodeName}.`);
923
791
  mutation_remove(child, parent);
924
792
  return child;
925
793
  }
926
- exports.mutation_preRemove = mutation_preRemove;
927
794
  /**
928
795
  * Removes a child node from its parent.
929
796
  *
@@ -932,65 +799,44 @@ exports.mutation_preRemove = mutation_preRemove;
932
799
  * @param suppressObservers - whether to notify observers
933
800
  */
934
801
  function mutation_remove(node, parent, suppressObservers) {
935
- var e_11, _a, e_12, _b, e_13, _c, e_14, _d;
936
802
  if (DOMImpl_1.dom.rangeList.size !== 0) {
937
803
  /**
938
804
  * 1. Let index be node’s index.
939
805
  */
940
- var index = TreeAlgorithm_1.tree_index(node);
941
- try {
942
- /**
943
- * 2. For each live range whose start node is an inclusive descendant of
944
- * node, set its start to (parent, index).
945
- * 3. For each live range whose end node is an inclusive descendant of
946
- * node, set its end to (parent, index).
947
- */
948
- for (var _e = __values(DOMImpl_1.dom.rangeList), _f = _e.next(); !_f.done; _f = _e.next()) {
949
- var range = _f.value;
950
- if (TreeAlgorithm_1.tree_isDescendantOf(node, range._start[0], true)) {
951
- range._start = [parent, index];
952
- }
953
- if (TreeAlgorithm_1.tree_isDescendantOf(node, range._end[0], true)) {
954
- range._end = [parent, index];
955
- }
956
- if (range._start[0] === parent && range._start[1] > index) {
957
- range._start[1]--;
958
- }
959
- if (range._end[0] === parent && range._end[1] > index) {
960
- range._end[1]--;
961
- }
806
+ const index = (0, TreeAlgorithm_1.tree_index)(node);
807
+ /**
808
+ * 2. For each live range whose start node is an inclusive descendant of
809
+ * node, set its start to (parent, index).
810
+ * 3. For each live range whose end node is an inclusive descendant of
811
+ * node, set its end to (parent, index).
812
+ */
813
+ for (const range of DOMImpl_1.dom.rangeList) {
814
+ if ((0, TreeAlgorithm_1.tree_isDescendantOf)(node, range._start[0], true)) {
815
+ range._start = [parent, index];
962
816
  }
963
- }
964
- catch (e_11_1) { e_11 = { error: e_11_1 }; }
965
- finally {
966
- try {
967
- if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
817
+ if ((0, TreeAlgorithm_1.tree_isDescendantOf)(node, range._end[0], true)) {
818
+ range._end = [parent, index];
968
819
  }
969
- finally { if (e_11) throw e_11.error; }
970
- }
971
- try {
972
- /**
973
- * 4. For each live range whose start node is parent and start offset is
974
- * greater than index, decrease its start offset by 1.
975
- * 5. For each live range whose end node is parent and end offset is greater
976
- * than index, decrease its end offset by 1.
977
- */
978
- for (var _g = __values(DOMImpl_1.dom.rangeList), _h = _g.next(); !_h.done; _h = _g.next()) {
979
- var range = _h.value;
980
- if (range._start[0] === parent && range._start[1] > index) {
981
- range._start[1] -= 1;
982
- }
983
- if (range._end[0] === parent && range._end[1] > index) {
984
- range._end[1] -= 1;
985
- }
820
+ if (range._start[0] === parent && range._start[1] > index) {
821
+ range._start[1]--;
822
+ }
823
+ if (range._end[0] === parent && range._end[1] > index) {
824
+ range._end[1]--;
986
825
  }
987
826
  }
988
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
989
- finally {
990
- try {
991
- if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
827
+ /**
828
+ * 4. For each live range whose start node is parent and start offset is
829
+ * greater than index, decrease its start offset by 1.
830
+ * 5. For each live range whose end node is parent and end offset is greater
831
+ * than index, decrease its end offset by 1.
832
+ */
833
+ for (const range of DOMImpl_1.dom.rangeList) {
834
+ if (range._start[0] === parent && range._start[1] > index) {
835
+ range._start[1] -= 1;
836
+ }
837
+ if (range._end[0] === parent && range._end[1] > index) {
838
+ range._end[1] -= 1;
992
839
  }
993
- finally { if (e_12) throw e_12.error; }
994
840
  }
995
841
  }
996
842
  /**
@@ -999,28 +845,18 @@ function mutation_remove(node, parent, suppressObservers) {
999
845
  * and iterator.
1000
846
  */
1001
847
  if (DOMImpl_1.dom.features.steps) {
1002
- try {
1003
- for (var _j = __values(NodeIteratorAlgorithm_1.nodeIterator_iteratorList()), _k = _j.next(); !_k.done; _k = _j.next()) {
1004
- var iterator = _k.value;
1005
- if (iterator._root._nodeDocument === node._nodeDocument) {
1006
- DOMAlgorithm_1.dom_runNodeIteratorPreRemovingSteps(iterator, node);
1007
- }
848
+ for (const iterator of (0, NodeIteratorAlgorithm_1.nodeIterator_iteratorList)()) {
849
+ if (iterator._root._nodeDocument === node._nodeDocument) {
850
+ (0, DOMAlgorithm_1.dom_runNodeIteratorPreRemovingSteps)(iterator, node);
1008
851
  }
1009
852
  }
1010
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
1011
- finally {
1012
- try {
1013
- if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
1014
- }
1015
- finally { if (e_13) throw e_13.error; }
1016
- }
1017
853
  }
1018
854
  /**
1019
855
  * 7. Let oldPreviousSibling be node’s previous sibling.
1020
856
  * 8. Let oldNextSibling be node’s next sibling.
1021
857
  */
1022
- var oldPreviousSibling = node._previousSibling;
1023
- var oldNextSibling = node._nextSibling;
858
+ const oldPreviousSibling = node._previousSibling;
859
+ const oldNextSibling = node._nextSibling;
1024
860
  // set document element node
1025
861
  if (util_1.Guard.isDocumentNode(parent) && util_1.Guard.isElementNode(node)) {
1026
862
  parent._documentElement = null;
@@ -1031,8 +867,8 @@ function mutation_remove(node, parent, suppressObservers) {
1031
867
  node._parent = null;
1032
868
  parent._children.delete(node);
1033
869
  // assign siblings and children for quick lookups
1034
- var prev = node._previousSibling;
1035
- var next = node._nextSibling;
870
+ const prev = node._previousSibling;
871
+ const next = node._nextSibling;
1036
872
  node._previousSibling = null;
1037
873
  node._nextSibling = null;
1038
874
  if (prev)
@@ -1048,8 +884,8 @@ function mutation_remove(node, parent, suppressObservers) {
1048
884
  * slot.
1049
885
  */
1050
886
  if (DOMImpl_1.dom.features.slots) {
1051
- if (util_1.Guard.isSlotable(node) && node._assignedSlot !== null && ShadowTreeAlgorithm_1.shadowTree_isAssigned(node)) {
1052
- ShadowTreeAlgorithm_1.shadowTree_assignSlotables(node._assignedSlot);
887
+ if (util_1.Guard.isSlotable(node) && node._assignedSlot !== null && (0, ShadowTreeAlgorithm_1.shadowTree_isAssigned)(node)) {
888
+ (0, ShadowTreeAlgorithm_1.shadowTree_assignSlotables)(node._assignedSlot);
1053
889
  }
1054
890
  }
1055
891
  /**
@@ -1058,9 +894,9 @@ function mutation_remove(node, parent, suppressObservers) {
1058
894
  * parent.
1059
895
  */
1060
896
  if (DOMImpl_1.dom.features.slots) {
1061
- if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
1062
- util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
1063
- ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
897
+ if (util_1.Guard.isShadowRoot((0, TreeAlgorithm_1.tree_rootNode)(parent)) &&
898
+ util_1.Guard.isSlot(parent) && (0, util_2.isEmpty)(parent._assignedNodes)) {
899
+ (0, ShadowTreeAlgorithm_1.shadowTree_signalASlotChange)(parent);
1064
900
  }
1065
901
  }
1066
902
  /**
@@ -1069,17 +905,17 @@ function mutation_remove(node, parent, suppressObservers) {
1069
905
  * 12.2. Run assign slotables for a tree with node.
1070
906
  */
1071
907
  if (DOMImpl_1.dom.features.slots) {
1072
- var descendant_1 = TreeAlgorithm_1.tree_getFirstDescendantNode(node, true, false, function (e) { return util_1.Guard.isSlot(e); });
1073
- if (descendant_1 !== null) {
1074
- ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(parent));
1075
- ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(node);
908
+ const descendant = (0, TreeAlgorithm_1.tree_getFirstDescendantNode)(node, true, false, (e) => util_1.Guard.isSlot(e));
909
+ if (descendant !== null) {
910
+ (0, ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree)((0, TreeAlgorithm_1.tree_rootNode)(parent));
911
+ (0, ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree)(node);
1076
912
  }
1077
913
  }
1078
914
  /**
1079
915
  * 13. Run the removing steps with node and parent.
1080
916
  */
1081
917
  if (DOMImpl_1.dom.features.steps) {
1082
- DOMAlgorithm_1.dom_runRemovingSteps(node, parent);
918
+ (0, DOMAlgorithm_1.dom_runRemovingSteps)(node, parent);
1083
919
  }
1084
920
  /**
1085
921
  * 14. If node is custom, then enqueue a custom element callback
@@ -1088,20 +924,20 @@ function mutation_remove(node, parent, suppressObservers) {
1088
924
  */
1089
925
  if (DOMImpl_1.dom.features.customElements) {
1090
926
  if (util_1.Guard.isCustomElementNode(node)) {
1091
- CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(node, "disconnectedCallback", []);
927
+ (0, CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction)(node, "disconnectedCallback", []);
1092
928
  }
1093
929
  }
1094
930
  /**
1095
931
  * 15. For each shadow-including descendant descendant of node,
1096
932
  * in shadow-including tree order, then:
1097
933
  */
1098
- var descendant = TreeAlgorithm_1.tree_getFirstDescendantNode(node, false, true);
934
+ let descendant = (0, TreeAlgorithm_1.tree_getFirstDescendantNode)(node, false, true);
1099
935
  while (descendant !== null) {
1100
936
  /**
1101
937
  * 15.1. Run the removing steps with descendant.
1102
938
  */
1103
939
  if (DOMImpl_1.dom.features.steps) {
1104
- DOMAlgorithm_1.dom_runRemovingSteps(descendant, node);
940
+ (0, DOMAlgorithm_1.dom_runRemovingSteps)(descendant, node);
1105
941
  }
1106
942
  /**
1107
943
  * 15.2. If descendant is custom, then enqueue a custom element
@@ -1110,10 +946,10 @@ function mutation_remove(node, parent, suppressObservers) {
1110
946
  */
1111
947
  if (DOMImpl_1.dom.features.customElements) {
1112
948
  if (util_1.Guard.isCustomElementNode(descendant)) {
1113
- CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(descendant, "disconnectedCallback", []);
949
+ (0, CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction)(descendant, "disconnectedCallback", []);
1114
950
  }
1115
951
  }
1116
- descendant = TreeAlgorithm_1.tree_getNextDescendantNode(node, descendant, false, true);
952
+ descendant = (0, TreeAlgorithm_1.tree_getNextDescendantNode)(node, descendant, false, true);
1117
953
  }
1118
954
  /**
1119
955
  * 16. For each inclusive ancestor inclusiveAncestor of parent, and
@@ -1125,28 +961,18 @@ function mutation_remove(node, parent, suppressObservers) {
1125
961
  * observer list.
1126
962
  */
1127
963
  if (DOMImpl_1.dom.features.mutationObservers) {
1128
- var inclusiveAncestor = TreeAlgorithm_1.tree_getFirstAncestorNode(parent, true);
964
+ let inclusiveAncestor = (0, TreeAlgorithm_1.tree_getFirstAncestorNode)(parent, true);
1129
965
  while (inclusiveAncestor !== null) {
1130
- try {
1131
- for (var _l = (e_14 = void 0, __values(inclusiveAncestor._registeredObserverList)), _m = _l.next(); !_m.done; _m = _l.next()) {
1132
- var registered = _m.value;
1133
- if (registered.options.subtree) {
1134
- node._registeredObserverList.push({
1135
- observer: registered.observer,
1136
- options: registered.options,
1137
- source: registered
1138
- });
1139
- }
966
+ for (const registered of inclusiveAncestor._registeredObserverList) {
967
+ if (registered.options.subtree) {
968
+ node._registeredObserverList.push({
969
+ observer: registered.observer,
970
+ options: registered.options,
971
+ source: registered
972
+ });
1140
973
  }
1141
974
  }
1142
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
1143
- finally {
1144
- try {
1145
- if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
1146
- }
1147
- finally { if (e_14) throw e_14.error; }
1148
- }
1149
- inclusiveAncestor = TreeAlgorithm_1.tree_getNextAncestorNode(parent, inclusiveAncestor, true);
975
+ inclusiveAncestor = (0, TreeAlgorithm_1.tree_getNextAncestorNode)(parent, inclusiveAncestor, true);
1150
976
  }
1151
977
  }
1152
978
  /**
@@ -1156,7 +982,7 @@ function mutation_remove(node, parent, suppressObservers) {
1156
982
  */
1157
983
  if (DOMImpl_1.dom.features.mutationObservers) {
1158
984
  if (!suppressObservers) {
1159
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, [], [node], oldPreviousSibling, oldNextSibling);
985
+ (0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(parent, [], [node], oldPreviousSibling, oldNextSibling);
1160
986
  }
1161
987
  }
1162
988
  /**
@@ -1165,9 +991,8 @@ function mutation_remove(node, parent, suppressObservers) {
1165
991
  */
1166
992
  if (DOMImpl_1.dom.features.steps) {
1167
993
  if (util_1.Guard.isTextNode(node)) {
1168
- DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
994
+ (0, DOMAlgorithm_1.dom_runChildTextContentChangeSteps)(parent);
1169
995
  }
1170
996
  }
1171
997
  }
1172
- exports.mutation_remove = mutation_remove;
1173
998
  //# sourceMappingURL=MutationAlgorithm.js.map