sequenceserver 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (667) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sequenceserver/api_errors.rb +24 -2
  3. data/lib/sequenceserver/blast/job.rb +41 -7
  4. data/lib/sequenceserver/blast/report.rb +36 -30
  5. data/lib/sequenceserver/config.rb +49 -27
  6. data/lib/sequenceserver/job.rb +13 -3
  7. data/lib/sequenceserver/job_remover.rb +25 -29
  8. data/lib/sequenceserver/refinements.rb +15 -0
  9. data/lib/sequenceserver/routes.rb +69 -7
  10. data/lib/sequenceserver/sequence.rb +8 -7
  11. data/lib/sequenceserver/sys.rb +2 -2
  12. data/lib/sequenceserver/version.rb +1 -1
  13. data/lib/sequenceserver/zip_file_generator.rb +56 -0
  14. data/lib/sequenceserver.rb +1 -0
  15. data/public/config.js +149 -143
  16. data/public/css/sequenceserver.css +44 -3
  17. data/public/css/sequenceserver.min.css +3 -3
  18. data/public/js/alignment_exporter.js +16 -8
  19. data/public/js/circos.js +370 -234
  20. data/public/js/cloud_share_modal.js +216 -0
  21. data/public/js/databases.js +144 -0
  22. data/public/js/databases_tree.js +42 -113
  23. data/public/js/dnd.js +164 -0
  24. data/public/js/error_modal.js +4 -11
  25. data/public/js/exporter.js +7 -3
  26. data/public/js/form.js +260 -0
  27. data/public/js/grapher.js +113 -106
  28. data/public/js/hit.js +80 -67
  29. data/public/js/hits_overview.js +2 -2
  30. data/public/js/hsp.js +343 -288
  31. data/public/js/jquery_world.js +4 -4
  32. data/public/js/mailto.js +36 -0
  33. data/public/js/options.js +84 -0
  34. data/public/js/query.js +319 -59
  35. data/public/js/report.js +315 -269
  36. data/public/js/report_root.js +75 -0
  37. data/public/js/search.js +28 -1011
  38. data/public/js/search_button.js +195 -0
  39. data/public/js/sequence.js +2409 -2411
  40. data/public/js/sequence_modal.js +152 -159
  41. data/public/js/share_url.js +23 -0
  42. data/public/js/sidebar.js +262 -83
  43. data/public/js/tests/database.spec.js +60 -0
  44. data/public/js/tests/mock_data/databases.json +91 -0
  45. data/public/js/tests/mock_data/long_response.json +269 -0
  46. data/public/js/tests/mock_data/short_response.json +2240 -0
  47. data/public/js/tests/report.spec.js +99 -0
  48. data/public/js/tests/search_button.spec.js +14 -0
  49. data/public/js/tests/search_query.spec.js +41 -0
  50. data/public/packages/circosJS@1.7.0.js +1640 -0
  51. data/public/packages/jquery-ui@1.11.4.js +16624 -0
  52. data/public/sequenceserver-report.min.js +2425 -19
  53. data/public/sequenceserver-search.min.js +2337 -15
  54. data/public/vendor/github/jspm/nodelibs-assert@0.1.0/index.js +2 -0
  55. data/public/vendor/github/jspm/{nodelibs-buffer@0.1.0 → nodelibs-assert@0.1.0}/package.json +1 -1
  56. data/public/vendor/github/jspm/nodelibs-assert@0.1.0.js +1 -0
  57. data/public/vendor/github/jspm/nodelibs-buffer@0.1.1/package.json +6 -0
  58. data/public/vendor/github/jspm/nodelibs-buffer@0.1.1.js +1 -0
  59. data/public/vendor/github/jspm/{nodelibs-process@0.1.1 → nodelibs-process@0.1.2}/package.json +2 -2
  60. data/public/vendor/github/jspm/nodelibs-process@0.1.2.js +1 -0
  61. data/public/vendor/github/jspm/nodelibs-vm@0.1.0/index.js +2 -0
  62. data/public/vendor/github/jspm/nodelibs-vm@0.1.0/package.json +6 -0
  63. data/public/vendor/github/jspm/nodelibs-vm@0.1.0.js +1 -0
  64. data/public/vendor/npm/assert@1.5.0/CHANGELOG.md +8 -0
  65. data/public/vendor/npm/assert@1.5.0/README.md +105 -0
  66. data/public/vendor/npm/assert@1.5.0/assert.js +327 -0
  67. data/public/vendor/npm/assert@1.5.0/package.json +32 -0
  68. data/public/vendor/npm/assert@1.5.0/test.js +288 -0
  69. data/public/vendor/npm/assert@1.5.0.js +1 -0
  70. data/public/vendor/npm/{base64-js@0.0.8/LICENSE.MIT → base64-js@1.5.1/LICENSE} +1 -1
  71. data/public/vendor/npm/{base64-js@0.0.8 → base64-js@1.5.1}/README.md +10 -7
  72. data/public/vendor/npm/base64-js@1.5.1/base64js.min.js +3 -0
  73. data/public/vendor/npm/base64-js@1.5.1/index.d.ts +3 -0
  74. data/public/vendor/npm/base64-js@1.5.1/index.js +151 -0
  75. data/public/vendor/npm/base64-js@1.5.1/package.json +47 -0
  76. data/public/vendor/npm/base64-js@1.5.1.js +1 -0
  77. data/public/vendor/npm/buffer@5.7.1/AUTHORS.md +70 -0
  78. data/public/vendor/npm/{buffer@3.4.3 → buffer@5.7.1}/README.md +111 -41
  79. data/public/vendor/npm/buffer@5.7.1/index.d.ts +186 -0
  80. data/public/vendor/npm/buffer@5.7.1/index.js +1817 -0
  81. data/public/vendor/npm/buffer@5.7.1/package.json +96 -0
  82. data/public/vendor/npm/buffer@5.7.1.js +1 -0
  83. data/public/vendor/npm/core-util-is@1.0.3/LICENSE +19 -0
  84. data/public/vendor/npm/core-util-is@1.0.3/lib/util.js +64 -0
  85. data/public/vendor/npm/{core-util-is@1.0.1 → core-util-is@1.0.3}/package.json +13 -1
  86. data/public/vendor/npm/core-util-is@1.0.3.js +1 -0
  87. data/public/vendor/npm/events@1.0.2/tests/add-listeners.js +2 -2
  88. data/public/vendor/npm/events@1.0.2/tests/check-listener-leaks.js +3 -3
  89. data/public/vendor/npm/events@1.0.2/tests/common.js +1 -1
  90. data/public/vendor/npm/events@1.0.2/tests/index.js +13 -13
  91. data/public/vendor/npm/events@1.0.2/tests/listeners-side-effects.js +2 -2
  92. data/public/vendor/npm/events@1.0.2/tests/listeners.js +2 -2
  93. data/public/vendor/npm/events@1.0.2/tests/max-listeners.js +2 -2
  94. data/public/vendor/npm/events@1.0.2/tests/modify-in-emit.js +2 -2
  95. data/public/vendor/npm/events@1.0.2/tests/num-args.js +2 -2
  96. data/public/vendor/npm/events@1.0.2/tests/once.js +2 -2
  97. data/public/vendor/npm/events@1.0.2/tests/remove-all-listeners.js +3 -3
  98. data/public/vendor/npm/events@1.0.2/tests/remove-listeners.js +3 -3
  99. data/public/vendor/npm/events@1.0.2/tests/set-max-listeners-side-effects.js +2 -2
  100. data/public/vendor/npm/events@1.0.2/tests/subclass.js +3 -3
  101. data/public/vendor/npm/events@1.0.2.js +1 -1
  102. data/public/vendor/npm/ieee754@1.2.1/LICENSE +11 -0
  103. data/public/vendor/npm/{ieee754@1.1.6 → ieee754@1.2.1}/README.md +12 -8
  104. data/public/vendor/npm/ieee754@1.2.1/index.d.ts +10 -0
  105. data/public/vendor/npm/{ieee754@1.1.6 → ieee754@1.2.1}/index.js +6 -6
  106. data/public/vendor/npm/ieee754@1.2.1/package.json +52 -0
  107. data/public/vendor/npm/ieee754@1.2.1.js +1 -0
  108. data/public/vendor/npm/{is-array@1.0.1 → indexof@0.0.1}/Makefile +3 -3
  109. data/public/vendor/npm/indexof@0.0.1/Readme.md +15 -0
  110. data/public/vendor/npm/indexof@0.0.1/component.json +10 -0
  111. data/public/vendor/npm/indexof@0.0.1/index.js +11 -0
  112. data/public/vendor/npm/indexof@0.0.1/package.json +12 -0
  113. data/public/vendor/npm/indexof@0.0.1.js +1 -0
  114. data/public/vendor/npm/inherits@2.0.1/inherits.js +1 -1
  115. data/public/vendor/npm/inherits@2.0.1.js +1 -1
  116. data/public/vendor/npm/isarray@0.0.1.js +1 -1
  117. data/public/vendor/npm/js-tokens@4.0.0/index.js +23 -0
  118. data/public/vendor/npm/js-tokens@4.0.0/package.json +30 -0
  119. data/public/vendor/npm/js-tokens@4.0.0.js +1 -0
  120. data/public/vendor/npm/loose-envify@1.4.0/LICENSE +21 -0
  121. data/public/vendor/npm/loose-envify@1.4.0/README.md +45 -0
  122. data/public/vendor/npm/loose-envify@1.4.0/cli.js +12 -0
  123. data/public/vendor/npm/loose-envify@1.4.0/custom.js +3 -0
  124. data/public/vendor/npm/loose-envify@1.4.0/index.js +5 -0
  125. data/public/vendor/npm/loose-envify@1.4.0/loose-envify.js +33 -0
  126. data/public/vendor/npm/loose-envify@1.4.0/package.json +36 -0
  127. data/public/vendor/npm/loose-envify@1.4.0/replace.js +52 -0
  128. data/public/vendor/npm/loose-envify@1.4.0.js +1 -0
  129. data/public/vendor/npm/object-assign@4.1.1/index.js +90 -0
  130. data/public/vendor/npm/object-assign@4.1.1/package.json +42 -0
  131. data/public/vendor/npm/object-assign@4.1.1.js +1 -0
  132. data/public/vendor/npm/path-browserify@0.0.0/index.js +1 -1
  133. data/public/vendor/npm/path-browserify@0.0.0.js +1 -1
  134. data/public/vendor/npm/{process@0.10.1 → process@0.11.10}/README.md +4 -1
  135. data/public/vendor/npm/process@0.11.10/browser.js +184 -0
  136. data/public/vendor/npm/{process@0.10.1 → process@0.11.10}/package.json +10 -1
  137. data/public/vendor/npm/process@0.11.10/test.js +185 -0
  138. data/public/vendor/npm/process@0.11.10.js +1 -0
  139. data/public/vendor/npm/react-dom@18.0.0/LICENSE +21 -0
  140. data/public/vendor/npm/react-dom@18.0.0/README.md +50 -0
  141. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server-legacy.browser.development.js +4771 -0
  142. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server-legacy.browser.production.min.js +85 -0
  143. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server-legacy.node.development.js +4813 -0
  144. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server-legacy.node.production.min.js +1705 -0
  145. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server.browser.development.js +4746 -0
  146. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server.browser.production.min.js +90 -0
  147. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server.node.development.js +4714 -0
  148. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server.node.production.min.js +1746 -0
  149. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-test-utils.development.js +1017 -0
  150. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-test-utils.production.min.js +617 -0
  151. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom.development.js +20092 -0
  152. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom.production.min.js +322 -0
  153. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom.profiling.min.js +364 -0
  154. data/public/vendor/npm/react-dom@18.0.0/client.js +27 -0
  155. data/public/vendor/npm/react-dom@18.0.0/index.js +23 -0
  156. data/public/vendor/npm/react-dom@18.0.0/package.json +62 -0
  157. data/public/vendor/npm/react-dom@18.0.0/profiling.js +23 -0
  158. data/public/vendor/npm/react-dom@18.0.0/server.browser.js +19 -0
  159. data/public/vendor/npm/react-dom@18.0.0/server.js +3 -0
  160. data/public/vendor/npm/react-dom@18.0.0/server.node.js +19 -0
  161. data/public/vendor/npm/react-dom@18.0.0/test-utils.js +9 -0
  162. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-server-legacy.browser.development.js +4770 -0
  163. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-server-legacy.browser.production.min.js +72 -0
  164. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-server.browser.development.js +4745 -0
  165. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-server.browser.production.min.js +74 -0
  166. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-test-utils.development.js +1013 -0
  167. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-test-utils.production.min.js +625 -0
  168. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom.development.js +20106 -0
  169. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom.production.min.js +269 -0
  170. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom.profiling.min.js +285 -0
  171. data/public/vendor/npm/react-dom@18.0.0.js +1 -0
  172. data/public/vendor/npm/react@18.0.0/LICENSE +21 -0
  173. data/public/vendor/npm/react@18.0.0/README.md +13 -0
  174. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-dev-runtime.development.js +837 -0
  175. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-dev-runtime.production.min.js +10 -0
  176. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-dev-runtime.profiling.min.js +10 -0
  177. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-runtime.development.js +849 -0
  178. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-runtime.production.min.js +38 -0
  179. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-runtime.profiling.min.js +38 -0
  180. data/public/vendor/npm/react@18.0.0/cjs/react.development.js +1746 -0
  181. data/public/vendor/npm/react@18.0.0/cjs/react.production.min.js +26 -0
  182. data/public/vendor/npm/react@18.0.0/cjs/react.shared-subset.development.js +10 -0
  183. data/public/vendor/npm/react@18.0.0/cjs/react.shared-subset.production.min.js +12 -0
  184. data/public/vendor/npm/react@18.0.0/index.js +9 -0
  185. data/public/vendor/npm/react@18.0.0/jsx-dev-runtime.js +9 -0
  186. data/public/vendor/npm/react@18.0.0/jsx-runtime.js +9 -0
  187. data/public/vendor/npm/react@18.0.0/package.json +47 -0
  188. data/public/vendor/npm/react@18.0.0/react.shared-subset.js +9 -0
  189. data/public/vendor/npm/react@18.0.0/umd/react.development.js +2186 -0
  190. data/public/vendor/npm/react@18.0.0/umd/react.production.min.js +33 -0
  191. data/public/vendor/npm/react@18.0.0/umd/react.profiling.min.js +33 -0
  192. data/public/vendor/npm/react@18.0.0.js +1 -0
  193. data/public/vendor/npm/readable-stream@1.1.14/LICENSE +18 -0
  194. data/public/vendor/npm/readable-stream@1.1.14/duplex.js +2 -0
  195. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/lib/_stream_duplex.js +5 -5
  196. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/lib/_stream_passthrough.js +3 -3
  197. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/lib/_stream_readable.js +10 -10
  198. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/lib/_stream_transform.js +4 -4
  199. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/lib/_stream_writable.js +6 -6
  200. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/package.json +1 -1
  201. data/public/vendor/npm/readable-stream@1.1.14/passthrough.js +2 -0
  202. data/public/vendor/npm/readable-stream@1.1.14/readable.js +13 -0
  203. data/public/vendor/npm/readable-stream@1.1.14/transform.js +2 -0
  204. data/public/vendor/npm/readable-stream@1.1.14/writable.js +2 -0
  205. data/public/vendor/npm/readable-stream@1.1.14.js +1 -0
  206. data/public/vendor/npm/scheduler@0.21.0/LICENSE +21 -0
  207. data/public/vendor/npm/scheduler@0.21.0/README.md +9 -0
  208. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler-unstable_mock.development.js +530 -0
  209. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler-unstable_mock.production.min.js +20 -0
  210. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler-unstable_post_task.development.js +153 -0
  211. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler-unstable_post_task.production.min.js +14 -0
  212. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler.development.js +444 -0
  213. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler.production.min.js +19 -0
  214. data/public/vendor/npm/scheduler@0.21.0/index.js +9 -0
  215. data/public/vendor/npm/scheduler@0.21.0/package.json +36 -0
  216. data/public/vendor/npm/scheduler@0.21.0/umd/scheduler-unstable_mock.development.js +701 -0
  217. data/public/vendor/npm/scheduler@0.21.0/umd/scheduler-unstable_mock.production.min.js +21 -0
  218. data/public/vendor/npm/scheduler@0.21.0/umd/scheduler.development.js +154 -0
  219. data/public/vendor/npm/scheduler@0.21.0/umd/scheduler.production.min.js +148 -0
  220. data/public/vendor/npm/scheduler@0.21.0/umd/scheduler.profiling.min.js +148 -0
  221. data/public/vendor/npm/scheduler@0.21.0/unstable_mock.js +9 -0
  222. data/public/vendor/npm/scheduler@0.21.0/unstable_post_task.js +9 -0
  223. data/public/vendor/npm/scheduler@0.21.0.js +1 -0
  224. data/public/vendor/npm/stream-browserify@1.0.0/index.js +7 -7
  225. data/public/vendor/npm/stream-browserify@1.0.0/test/buf.js +5 -5
  226. data/public/vendor/npm/stream-browserify@1.0.0.js +1 -1
  227. data/public/vendor/npm/string_decoder@0.10.31/index.js +2 -2
  228. data/public/vendor/npm/string_decoder@0.10.31.js +1 -1
  229. data/public/vendor/npm/util@0.10.3/support/isBuffer.js +1 -1
  230. data/public/vendor/npm/util@0.10.3/test/browser/inspect.js +2 -2
  231. data/public/vendor/npm/util@0.10.3/test/browser/is.js +3 -3
  232. data/public/vendor/npm/util@0.10.3/test/node/debug.js +4 -4
  233. data/public/vendor/npm/util@0.10.3/test/node/format.js +2 -2
  234. data/public/vendor/npm/util@0.10.3/test/node/inspect.js +3 -3
  235. data/public/vendor/npm/util@0.10.3/test/node/log.js +3 -3
  236. data/public/vendor/npm/util@0.10.3/test/node/util.js +3 -3
  237. data/public/vendor/npm/util@0.10.3/util.js +3 -3
  238. data/public/vendor/npm/util@0.10.3.js +1 -1
  239. data/public/vendor/npm/vm-browserify@0.0.4/LICENSE +18 -0
  240. data/public/vendor/npm/vm-browserify@0.0.4/example/run/bundle.js +376 -0
  241. data/public/vendor/npm/vm-browserify@0.0.4/example/run/entry.js +6 -0
  242. data/public/vendor/npm/vm-browserify@0.0.4/example/run/index.html +9 -0
  243. data/public/vendor/npm/vm-browserify@0.0.4/example/run/server.js +6 -0
  244. data/public/vendor/npm/vm-browserify@0.0.4/index.js +139 -0
  245. data/public/vendor/npm/vm-browserify@0.0.4/package.json +46 -0
  246. data/public/vendor/npm/vm-browserify@0.0.4/readme.markdown +67 -0
  247. data/public/vendor/npm/vm-browserify@0.0.4/test/vm.js +34 -0
  248. data/public/vendor/npm/vm-browserify@0.0.4.js +1 -0
  249. data/public/vendor/npm/webshim@1.15.8/Gruntfile.js +4 -4
  250. data/public/vendor/npm/webshim@1.15.8/build/combobuild.js +2 -2
  251. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/color-picker.js +1 -1
  252. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/10.js +1 -1
  253. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/11.js +1 -1
  254. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/17.js +1 -1
  255. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/5.js +1 -1
  256. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/6.js +1 -1
  257. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/9.js +1 -1
  258. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/es6.js +1 -1
  259. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/excanvas.js +1 -1
  260. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/form-number-date-ui.js +1 -1
  261. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/moxie/js/moxie-html4.js +1 -1
  262. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/moxie/js/moxie-swf.js +1 -1
  263. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/sizzle.js +1 -1
  264. data/public/vendor/npm/webshim@1.15.8/js-webshim/minified/shims/es6.js +1 -1
  265. data/public/vendor/npm/webshim@1.15.8/src/shims/color-picker.js +1 -1
  266. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/10.js +1 -1
  267. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/11.js +1 -1
  268. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/17.js +1 -1
  269. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/5.js +1 -1
  270. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/6.js +1 -1
  271. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/9.js +1 -1
  272. data/public/vendor/npm/webshim@1.15.8/src/shims/es6.js +1 -1
  273. data/public/vendor/npm/webshim@1.15.8/src/shims/excanvas.js +1 -1
  274. data/public/vendor/npm/webshim@1.15.8/src/shims/form-number-date-ui.js +1 -1
  275. data/public/vendor/npm/webshim@1.15.8/src/shims/moxie/js/moxie-html4.js +1 -1
  276. data/public/vendor/npm/webshim@1.15.8/src/shims/moxie/js/moxie-swf.js +1 -1
  277. data/public/vendor/npm/webshim@1.15.8/src/shims/sizzle.js +1 -1
  278. data/public/vendor/npm/webshim@1.15.8/tests/dist/jquery.js +1 -1
  279. data/public/vendor/npm/webshim@1.15.8/tests/jquery/unit/core.js +1 -1
  280. data/public/vendor/npm/webshim@1.15.8/tests/jquery/unit/event.js +1388 -711
  281. data/public/vendor/npm/webshim@1.15.8/tests/qunit/qunit.js +1 -1
  282. data/public/vendor/npm/webshim@1.15.8/tests/test-ext/jquery-1-custom.js +1 -1
  283. data/public/vendor/npm/webshim@1.15.8/tests/test-ext/jquery-2-custom.js +1 -1
  284. data/public/vendor/npm/webshim@1.15.8/tests/test-ext/punycode.js +1 -1
  285. data/public/vendor/system-polyfills.js +865 -1
  286. data/views/blastn_options.erb +291 -0
  287. data/views/blastp_options.erb +288 -0
  288. data/views/blastx_options.erb +318 -0
  289. data/views/error.erb +12 -0
  290. data/views/layout.erb +2 -30
  291. data/views/report.erb +0 -8
  292. data/views/search.erb +16 -9
  293. data/views/tblastn_options.erb +266 -0
  294. data/views/tblastx_options.erb +291 -0
  295. metadata +318 -439
  296. data/public/vendor/github/jspm/nodelibs-buffer@0.1.0.js +0 -1
  297. data/public/vendor/github/jspm/nodelibs-module@0.1.0/index.js +0 -1
  298. data/public/vendor/github/jspm/nodelibs-module@0.1.0.js +0 -1
  299. data/public/vendor/github/jspm/nodelibs-process@0.1.1.js +0 -1
  300. data/public/vendor/npm/amdefine@1.0.0/LICENSE +0 -58
  301. data/public/vendor/npm/amdefine@1.0.0/README.md +0 -171
  302. data/public/vendor/npm/amdefine@1.0.0/amdefine.js +0 -200
  303. data/public/vendor/npm/amdefine@1.0.0/intercept.js +0 -24
  304. data/public/vendor/npm/amdefine@1.0.0/package.json +0 -16
  305. data/public/vendor/npm/amdefine@1.0.0.js +0 -1
  306. data/public/vendor/npm/base62@0.1.1/LICENSE +0 -20
  307. data/public/vendor/npm/base62@0.1.1/Readme.md +0 -30
  308. data/public/vendor/npm/base62@0.1.1/base62.js +0 -28
  309. data/public/vendor/npm/base62@0.1.1/package.json +0 -21
  310. data/public/vendor/npm/base62@0.1.1/test/test.js +0 -13
  311. data/public/vendor/npm/base62@0.1.1.js +0 -1
  312. data/public/vendor/npm/base64-js@0.0.8/lib/b64.js +0 -125
  313. data/public/vendor/npm/base64-js@0.0.8/package.json +0 -34
  314. data/public/vendor/npm/base64-js@0.0.8/test/convert.js +0 -39
  315. data/public/vendor/npm/base64-js@0.0.8/test/url-safe.js +0 -15
  316. data/public/vendor/npm/base64-js@0.0.8.js +0 -1
  317. data/public/vendor/npm/buffer@3.4.3/index.js +0 -1533
  318. data/public/vendor/npm/buffer@3.4.3/package.json +0 -67
  319. data/public/vendor/npm/buffer@3.4.3/test/_polyfill.js +0 -152
  320. data/public/vendor/npm/buffer@3.4.3/test/base64.js +0 -33
  321. data/public/vendor/npm/buffer@3.4.3/test/basic.js +0 -58
  322. data/public/vendor/npm/buffer@3.4.3/test/compare.js +0 -53
  323. data/public/vendor/npm/buffer@3.4.3/test/constructor.js +0 -132
  324. data/public/vendor/npm/buffer@3.4.3/test/deprecated.js +0 -21
  325. data/public/vendor/npm/buffer@3.4.3/test/from-string.js +0 -105
  326. data/public/vendor/npm/buffer@3.4.3/test/methods.js +0 -109
  327. data/public/vendor/npm/buffer@3.4.3/test/node/README.txt +0 -1
  328. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer-ascii.js +0 -20
  329. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer-bytelength.js +0 -38
  330. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer-concat.js +0 -26
  331. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer-indexof.js +0 -78
  332. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer-inspect.js +0 -31
  333. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer.js +0 -804
  334. data/public/vendor/npm/buffer@3.4.3/test/node-es6/README.txt +0 -1
  335. data/public/vendor/npm/buffer@3.4.3/test/node-es6/test-buffer-arraybuffer.js +0 -37
  336. data/public/vendor/npm/buffer@3.4.3/test/node-es6/test-buffer-iterator.js +0 -32
  337. data/public/vendor/npm/buffer@3.4.3/test/slice.js +0 -33
  338. data/public/vendor/npm/buffer@3.4.3/test/static.js +0 -32
  339. data/public/vendor/npm/buffer@3.4.3/test/to-string.js +0 -106
  340. data/public/vendor/npm/buffer@3.4.3/test/write.js +0 -90
  341. data/public/vendor/npm/buffer@3.4.3.js +0 -1
  342. data/public/vendor/npm/core-util-is@1.0.1/float.patch +0 -604
  343. data/public/vendor/npm/core-util-is@1.0.1/lib/util.js +0 -66
  344. data/public/vendor/npm/core-util-is@1.0.1/util.js +0 -66
  345. data/public/vendor/npm/core-util-is@1.0.1.js +0 -1
  346. data/public/vendor/npm/envify@3.4.0/README.md +0 -145
  347. data/public/vendor/npm/envify@3.4.0/bin/envify +0 -17
  348. data/public/vendor/npm/envify@3.4.0/custom.js +0 -33
  349. data/public/vendor/npm/envify@3.4.0/index.js +0 -4
  350. data/public/vendor/npm/envify@3.4.0/package.json +0 -35
  351. data/public/vendor/npm/envify@3.4.0/visitors.js +0 -33
  352. data/public/vendor/npm/envify@3.4.0.js +0 -1
  353. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/bin/esparse.js +0 -90
  354. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/bin/esvalidate.js +0 -145
  355. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/esprima.js +0 -6191
  356. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/package.json +0 -72
  357. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/test/compat.js +0 -167
  358. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/test/reflect.js +0 -421
  359. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/test/run.js +0 -34
  360. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/test/runner.js +0 -418
  361. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/test/test.js +0 -34730
  362. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb.js +0 -1
  363. data/public/vendor/npm/ieee754@1.1.6/LICENSE +0 -56
  364. data/public/vendor/npm/ieee754@1.1.6/package.json +0 -34
  365. data/public/vendor/npm/ieee754@1.1.6/test/basic.js +0 -20
  366. data/public/vendor/npm/ieee754@1.1.6.js +0 -1
  367. data/public/vendor/npm/is-array@1.0.1/History.md +0 -11
  368. data/public/vendor/npm/is-array@1.0.1/Readme.md +0 -27
  369. data/public/vendor/npm/is-array@1.0.1/component.json +0 -13
  370. data/public/vendor/npm/is-array@1.0.1/index.js +0 -33
  371. data/public/vendor/npm/is-array@1.0.1/package.json +0 -10
  372. data/public/vendor/npm/is-array@1.0.1/test/test.html +0 -46
  373. data/public/vendor/npm/is-array@1.0.1.js +0 -1
  374. data/public/vendor/npm/jstransform@10.1.0/LICENSE +0 -201
  375. data/public/vendor/npm/jstransform@10.1.0/README.md +0 -98
  376. data/public/vendor/npm/jstransform@10.1.0/jestEnvironment.js +0 -3
  377. data/public/vendor/npm/jstransform@10.1.0/jestPreprocessor.js +0 -8
  378. data/public/vendor/npm/jstransform@10.1.0/package.json +0 -52
  379. data/public/vendor/npm/jstransform@10.1.0/polyfill/Object.es6.js +0 -54
  380. data/public/vendor/npm/jstransform@10.1.0/src/__tests__/jstransform-test.js +0 -246
  381. data/public/vendor/npm/jstransform@10.1.0/src/__tests__/jstransform-utils-test.js +0 -31
  382. data/public/vendor/npm/jstransform@10.1.0/src/docblock.js +0 -86
  383. data/public/vendor/npm/jstransform@10.1.0/src/jstransform.js +0 -180
  384. data/public/vendor/npm/jstransform@10.1.0/src/utils.js +0 -386
  385. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-arrow-function-visitors-test.js +0 -57
  386. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-call-spread-visitors-test.js +0 -46
  387. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-class-visitors-test.js +0 -463
  388. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-destructuring-visitors-test.js +0 -144
  389. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-es7-object-integration-test.js +0 -40
  390. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-object-concise-method-visitors-test.js +0 -47
  391. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-object-short-notation-visitors-test.js +0 -33
  392. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-rest-param-visitors-test.js +0 -119
  393. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-template-visitors-test.js +0 -138
  394. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es7-rest-property-helpers-test.js +0 -47
  395. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es7-spread-property-visitors-test.js +0 -90
  396. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/gen/generate-type-syntax-test.js +0 -40
  397. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/gen/type-syntax-test.rec.js +0 -846
  398. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/reserved-words-test.js +0 -40
  399. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-alias-syntax-test.js +0 -34
  400. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-class-syntax-test.js +0 -105
  401. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-function-syntax-test.js +0 -126
  402. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-interface-syntax-test.js +0 -29
  403. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-object-method-syntax-test.js +0 -65
  404. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-pattern-syntax-test.js +0 -45
  405. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-syntax-test.js +0 -46
  406. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-variable-declaration-syntax-test.js +0 -102
  407. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-arrow-function-visitors.js +0 -66
  408. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-call-spread-visitors.js +0 -72
  409. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-class-visitors.js +0 -316
  410. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-destructuring-visitors.js +0 -135
  411. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-object-concise-method-visitors.js +0 -28
  412. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-object-short-notation-visitors.js +0 -12
  413. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-rest-param-visitors.js +0 -45
  414. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-template-visitors.js +0 -90
  415. data/public/vendor/npm/jstransform@10.1.0/visitors/es7-rest-property-helpers.js +0 -80
  416. data/public/vendor/npm/jstransform@10.1.0/visitors/es7-spread-property-visitors.js +0 -56
  417. data/public/vendor/npm/jstransform@10.1.0/visitors/reserved-words-helper.js +0 -74
  418. data/public/vendor/npm/jstransform@10.1.0/visitors/reserved-words-visitors.js +0 -30
  419. data/public/vendor/npm/jstransform@10.1.0/visitors/type-syntax.js +0 -118
  420. data/public/vendor/npm/jstransform@10.1.0.js +0 -1
  421. data/public/vendor/npm/process@0.10.1/browser.js +0 -58
  422. data/public/vendor/npm/process@0.10.1.js +0 -1
  423. data/public/vendor/npm/qs@2.4.1/test/stringify.js +0 -162
  424. data/public/vendor/npm/react@0.13.3/README.md +0 -20
  425. data/public/vendor/npm/react@0.13.3/addons.js +0 -2
  426. data/public/vendor/npm/react@0.13.3/dist/JSXTransformer.js +0 -11346
  427. data/public/vendor/npm/react@0.13.3/dist/react-with-addons.js +0 -10483
  428. data/public/vendor/npm/react@0.13.3/dist/react-with-addons.min.js +0 -7297
  429. data/public/vendor/npm/react@0.13.3/dist/react.js +0 -9468
  430. data/public/vendor/npm/react@0.13.3/dist/react.min.js +0 -6764
  431. data/public/vendor/npm/react@0.13.3/lib/AutoFocusMixin.js +0 -9
  432. data/public/vendor/npm/react@0.13.3/lib/BeforeInputEventPlugin.js +0 -197
  433. data/public/vendor/npm/react@0.13.3/lib/CSSCore.js +0 -39
  434. data/public/vendor/npm/react@0.13.3/lib/CSSProperty.js +0 -123
  435. data/public/vendor/npm/react@0.13.3/lib/CSSPropertyOperations.js +0 -103
  436. data/public/vendor/npm/react@0.13.3/lib/CallbackQueue.js +0 -43
  437. data/public/vendor/npm/react@0.13.3/lib/ChangeEventPlugin.js +0 -174
  438. data/public/vendor/npm/react@0.13.3/lib/ClientReactRootIndex.js +0 -23
  439. data/public/vendor/npm/react@0.13.3/lib/DOMChildrenOperations.js +0 -57
  440. data/public/vendor/npm/react@0.13.3/lib/DOMProperty.js +0 -96
  441. data/public/vendor/npm/react@0.13.3/lib/DOMPropertyOperations.js +0 -99
  442. data/public/vendor/npm/react@0.13.3/lib/Danger.js +0 -67
  443. data/public/vendor/npm/react@0.13.3/lib/DefaultEventPluginOrder.js +0 -5
  444. data/public/vendor/npm/react@0.13.3/lib/EnterLeaveEventPlugin.js +0 -69
  445. data/public/vendor/npm/react@0.13.3/lib/EventConstants.js +0 -55
  446. data/public/vendor/npm/react@0.13.3/lib/EventListener.js +0 -34
  447. data/public/vendor/npm/react@0.13.3/lib/EventPluginHub.js +0 -103
  448. data/public/vendor/npm/react@0.13.3/lib/EventPluginRegistry.js +0 -115
  449. data/public/vendor/npm/react@0.13.3/lib/EventPluginUtils.js +0 -121
  450. data/public/vendor/npm/react@0.13.3/lib/EventPropagators.js +0 -62
  451. data/public/vendor/npm/react@0.13.3/lib/ExecutionEnvironment.js +0 -42
  452. data/public/vendor/npm/react@0.13.3/lib/FallbackCompositionState.js +0 -45
  453. data/public/vendor/npm/react@0.13.3/lib/HTMLDOMPropertyConfig.js +0 -155
  454. data/public/vendor/npm/react@0.13.3/lib/LinkedStateMixin.js +0 -8
  455. data/public/vendor/npm/react@0.13.3/lib/LinkedValueUtils.js +0 -74
  456. data/public/vendor/npm/react@0.13.3/lib/LocalEventTrapMixin.js +0 -26
  457. data/public/vendor/npm/react@0.13.3/lib/MobileSafariClickEventPlugin.js +0 -17
  458. data/public/vendor/npm/react@0.13.3/lib/Object.assign.js +0 -47
  459. data/public/vendor/npm/react@0.13.3/lib/PooledClass.js +0 -75
  460. data/public/vendor/npm/react@0.13.3/lib/React.js +0 -93
  461. data/public/vendor/npm/react@0.13.3/lib/ReactBrowserComponentMixin.js +0 -7
  462. data/public/vendor/npm/react@0.13.3/lib/ReactBrowserEventEmitter.js +0 -136
  463. data/public/vendor/npm/react@0.13.3/lib/ReactCSSTransitionGroup.js +0 -34
  464. data/public/vendor/npm/react@0.13.3/lib/ReactCSSTransitionGroupChild.js +0 -92
  465. data/public/vendor/npm/react@0.13.3/lib/ReactChildReconciler.js +0 -57
  466. data/public/vendor/npm/react@0.13.3/lib/ReactChildren.js +0 -67
  467. data/public/vendor/npm/react@0.13.3/lib/ReactClass.js +0 -338
  468. data/public/vendor/npm/react@0.13.3/lib/ReactComponent.js +0 -50
  469. data/public/vendor/npm/react@0.13.3/lib/ReactComponentBrowserEnvironment.js +0 -14
  470. data/public/vendor/npm/react@0.13.3/lib/ReactComponentEnvironment.js +0 -19
  471. data/public/vendor/npm/react@0.13.3/lib/ReactComponentWithPureRenderMixin.js +0 -7
  472. data/public/vendor/npm/react@0.13.3/lib/ReactCompositeComponent.js +0 -374
  473. data/public/vendor/npm/react@0.13.3/lib/ReactContext.js +0 -27
  474. data/public/vendor/npm/react@0.13.3/lib/ReactCurrentOwner.js +0 -32
  475. data/public/vendor/npm/react@0.13.3/lib/ReactDOM.js +0 -146
  476. data/public/vendor/npm/react@0.13.3/lib/ReactDOMButton.js +0 -35
  477. data/public/vendor/npm/react@0.13.3/lib/ReactDOMComponent.js +0 -267
  478. data/public/vendor/npm/react@0.13.3/lib/ReactDOMForm.js +0 -21
  479. data/public/vendor/npm/react@0.13.3/lib/ReactDOMIDOperations.js +0 -63
  480. data/public/vendor/npm/react@0.13.3/lib/ReactDOMIframe.js +0 -20
  481. data/public/vendor/npm/react@0.13.3/lib/ReactDOMImg.js +0 -21
  482. data/public/vendor/npm/react@0.13.3/lib/ReactDOMInput.js +0 -94
  483. data/public/vendor/npm/react@0.13.3/lib/ReactDOMOption.js +0 -23
  484. data/public/vendor/npm/react@0.13.3/lib/ReactDOMSelect.js +0 -112
  485. data/public/vendor/npm/react@0.13.3/lib/ReactDOMSelection.js +0 -103
  486. data/public/vendor/npm/react@0.13.3/lib/ReactDOMTextComponent.js +0 -38
  487. data/public/vendor/npm/react@0.13.3/lib/ReactDOMTextarea.js +0 -70
  488. data/public/vendor/npm/react@0.13.3/lib/ReactDefaultBatchingStrategy.js +0 -37
  489. data/public/vendor/npm/react@0.13.3/lib/ReactDefaultInjection.js +0 -93
  490. data/public/vendor/npm/react@0.13.3/lib/ReactDefaultPerf.js +0 -183
  491. data/public/vendor/npm/react@0.13.3/lib/ReactDefaultPerfAnalysis.js +0 -145
  492. data/public/vendor/npm/react@0.13.3/lib/ReactElement.js +0 -151
  493. data/public/vendor/npm/react@0.13.3/lib/ReactElementValidator.js +0 -218
  494. data/public/vendor/npm/react@0.13.3/lib/ReactEmptyComponent.js +0 -47
  495. data/public/vendor/npm/react@0.13.3/lib/ReactErrorUtils.js +0 -30
  496. data/public/vendor/npm/react@0.13.3/lib/ReactEventEmitterMixin.js +0 -12
  497. data/public/vendor/npm/react@0.13.3/lib/ReactEventListener.js +0 -93
  498. data/public/vendor/npm/react@0.13.3/lib/ReactFragment.js +0 -110
  499. data/public/vendor/npm/react@0.13.3/lib/ReactInjection.js +0 -27
  500. data/public/vendor/npm/react@0.13.3/lib/ReactInputSelection.js +0 -75
  501. data/public/vendor/npm/react@0.13.3/lib/ReactInstanceHandles.js +0 -113
  502. data/public/vendor/npm/react@0.13.3/lib/ReactInstanceMap.js +0 -47
  503. data/public/vendor/npm/react@0.13.3/lib/ReactLifeCycle.js +0 -9
  504. data/public/vendor/npm/react@0.13.3/lib/ReactLink.js +0 -16
  505. data/public/vendor/npm/react@0.13.3/lib/ReactMarkupChecksum.js +0 -17
  506. data/public/vendor/npm/react@0.13.3/lib/ReactMount.js +0 -347
  507. data/public/vendor/npm/react@0.13.3/lib/ReactMultiChild.js +0 -190
  508. data/public/vendor/npm/react@0.13.3/lib/ReactMultiChildUpdateTypes.js +0 -10
  509. data/public/vendor/npm/react@0.13.3/lib/ReactNativeComponent.js +0 -53
  510. data/public/vendor/npm/react@0.13.3/lib/ReactOwner.js +0 -21
  511. data/public/vendor/npm/react@0.13.3/lib/ReactPerf.js +0 -42
  512. data/public/vendor/npm/react@0.13.3/lib/ReactPropTransferer.js +0 -40
  513. data/public/vendor/npm/react@0.13.3/lib/ReactPropTypeLocationNames.js +0 -13
  514. data/public/vendor/npm/react@0.13.3/lib/ReactPropTypeLocations.js +0 -9
  515. data/public/vendor/npm/react@0.13.3/lib/ReactPropTypes.js +0 -225
  516. data/public/vendor/npm/react@0.13.3/lib/ReactPutListenerQueue.js +0 -31
  517. data/public/vendor/npm/react@0.13.3/lib/ReactReconcileTransaction.js +0 -66
  518. data/public/vendor/npm/react@0.13.3/lib/ReactReconciler.js +0 -44
  519. data/public/vendor/npm/react@0.13.3/lib/ReactRef.js +0 -36
  520. data/public/vendor/npm/react@0.13.3/lib/ReactRootIndex.js +0 -29
  521. data/public/vendor/npm/react@0.13.3/lib/ReactServerRendering.js +0 -44
  522. data/public/vendor/npm/react@0.13.3/lib/ReactServerRenderingTransaction.js +0 -47
  523. data/public/vendor/npm/react@0.13.3/lib/ReactStateSetters.js +0 -104
  524. data/public/vendor/npm/react@0.13.3/lib/ReactTestUtils.js +0 -249
  525. data/public/vendor/npm/react@0.13.3/lib/ReactTransitionChildMapping.js +0 -53
  526. data/public/vendor/npm/react@0.13.3/lib/ReactTransitionEvents.js +0 -68
  527. data/public/vendor/npm/react@0.13.3/lib/ReactTransitionGroup.js +0 -140
  528. data/public/vendor/npm/react@0.13.3/lib/ReactUpdateQueue.js +0 -107
  529. data/public/vendor/npm/react@0.13.3/lib/ReactUpdates.js +0 -139
  530. data/public/vendor/npm/react@0.13.3/lib/ReactWithAddons.js +0 -30
  531. data/public/vendor/npm/react@0.13.3/lib/SVGDOMPropertyConfig.js +0 -76
  532. data/public/vendor/npm/react@0.13.3/lib/SelectEventPlugin.js +0 -91
  533. data/public/vendor/npm/react@0.13.3/lib/ServerReactRootIndex.js +0 -29
  534. data/public/vendor/npm/react@0.13.3/lib/SimpleEventPlugin.js +0 -287
  535. data/public/vendor/npm/react@0.13.3/lib/SyntheticClipboardEvent.js +0 -11
  536. data/public/vendor/npm/react@0.13.3/lib/SyntheticCompositionEvent.js +0 -9
  537. data/public/vendor/npm/react@0.13.3/lib/SyntheticDragEvent.js +0 -9
  538. data/public/vendor/npm/react@0.13.3/lib/SyntheticEvent.js +0 -90
  539. data/public/vendor/npm/react@0.13.3/lib/SyntheticFocusEvent.js +0 -9
  540. data/public/vendor/npm/react@0.13.3/lib/SyntheticInputEvent.js +0 -9
  541. data/public/vendor/npm/react@0.13.3/lib/SyntheticKeyboardEvent.js +0 -43
  542. data/public/vendor/npm/react@0.13.3/lib/SyntheticMouseEvent.js +0 -38
  543. data/public/vendor/npm/react@0.13.3/lib/SyntheticTouchEvent.js +0 -19
  544. data/public/vendor/npm/react@0.13.3/lib/SyntheticUIEvent.js +0 -29
  545. data/public/vendor/npm/react@0.13.3/lib/SyntheticWheelEvent.js +0 -18
  546. data/public/vendor/npm/react@0.13.3/lib/Transaction.js +0 -90
  547. data/public/vendor/npm/react@0.13.3/lib/ViewportMetrics.js +0 -27
  548. data/public/vendor/npm/react@0.13.3/lib/accumulateInto.js +0 -26
  549. data/public/vendor/npm/react@0.13.3/lib/adler32.js +0 -32
  550. data/public/vendor/npm/react@0.13.3/lib/camelize.js +0 -30
  551. data/public/vendor/npm/react@0.13.3/lib/camelizeStyleName.js +0 -8
  552. data/public/vendor/npm/react@0.13.3/lib/cloneWithProps.js +0 -20
  553. data/public/vendor/npm/react@0.13.3/lib/containsNode.js +0 -20
  554. data/public/vendor/npm/react@0.13.3/lib/createArrayFromMixed.js +0 -15
  555. data/public/vendor/npm/react@0.13.3/lib/createFullPageComponent.js +0 -22
  556. data/public/vendor/npm/react@0.13.3/lib/createNodesFromMarkup.js +0 -39
  557. data/public/vendor/npm/react@0.13.3/lib/cx.js +0 -20
  558. data/public/vendor/npm/react@0.13.3/lib/dangerousStyleValue.js +0 -19
  559. data/public/vendor/npm/react@0.13.3/lib/emptyFunction.js +0 -32
  560. data/public/vendor/npm/react@0.13.3/lib/emptyObject.js +0 -9
  561. data/public/vendor/npm/react@0.13.3/lib/escapeTextContentForBrowser.js +0 -38
  562. data/public/vendor/npm/react@0.13.3/lib/findDOMNode.js +0 -31
  563. data/public/vendor/npm/react@0.13.3/lib/flattenChildren.js +0 -25
  564. data/public/vendor/npm/react@0.13.3/lib/focusNode.js +0 -27
  565. data/public/vendor/npm/react@0.13.3/lib/forEachAccumulated.js +0 -29
  566. data/public/vendor/npm/react@0.13.3/lib/getActiveElement.js +0 -27
  567. data/public/vendor/npm/react@0.13.3/lib/getEventCharCode.js +0 -50
  568. data/public/vendor/npm/react@0.13.3/lib/getEventKey.js +0 -72
  569. data/public/vendor/npm/react@0.13.3/lib/getEventModifierState.js +0 -45
  570. data/public/vendor/npm/react@0.13.3/lib/getEventTarget.js +0 -29
  571. data/public/vendor/npm/react@0.13.3/lib/getIteratorFn.js +0 -42
  572. data/public/vendor/npm/react@0.13.3/lib/getMarkupWrap.js +0 -73
  573. data/public/vendor/npm/react@0.13.3/lib/getNodeForCharacterOffset.js +0 -73
  574. data/public/vendor/npm/react@0.13.3/lib/getReactRootElementInContainer.js +0 -33
  575. data/public/vendor/npm/react@0.13.3/lib/getTextContentAccessor.js +0 -11
  576. data/public/vendor/npm/react@0.13.3/lib/getUnboundedScrollPosition.js +0 -38
  577. data/public/vendor/npm/react@0.13.3/lib/hyphenate.js +0 -31
  578. data/public/vendor/npm/react@0.13.3/lib/hyphenateStyleName.js +0 -8
  579. data/public/vendor/npm/react@0.13.3/lib/instantiateReactComponent.js +0 -55
  580. data/public/vendor/npm/react@0.13.3/lib/invariant.js +0 -26
  581. data/public/vendor/npm/react@0.13.3/lib/isEventSupported.js +0 -24
  582. data/public/vendor/npm/react@0.13.3/lib/isNode.js +0 -25
  583. data/public/vendor/npm/react@0.13.3/lib/isTextInputElement.js +0 -41
  584. data/public/vendor/npm/react@0.13.3/lib/isTextNode.js +0 -6
  585. data/public/vendor/npm/react@0.13.3/lib/joinClasses.js +0 -39
  586. data/public/vendor/npm/react@0.13.3/lib/keyMirror.js +0 -18
  587. data/public/vendor/npm/react@0.13.3/lib/keyOf.js +0 -34
  588. data/public/vendor/npm/react@0.13.3/lib/mapObject.js +0 -51
  589. data/public/vendor/npm/react@0.13.3/lib/memoizeStringOnly.js +0 -31
  590. data/public/vendor/npm/react@0.13.3/lib/onlyChild.js +0 -11
  591. data/public/vendor/npm/react@0.13.3/lib/performance.js +0 -8
  592. data/public/vendor/npm/react@0.13.3/lib/performanceNow.js +0 -7
  593. data/public/vendor/npm/react@0.13.3/lib/quoteAttributeValueForBrowser.js +0 -7
  594. data/public/vendor/npm/react@0.13.3/lib/setInnerHTML.js +0 -40
  595. data/public/vendor/npm/react@0.13.3/lib/setTextContent.js +0 -16
  596. data/public/vendor/npm/react@0.13.3/lib/shallowEqual.js +0 -42
  597. data/public/vendor/npm/react@0.13.3/lib/shouldUpdateReactComponent.js +0 -51
  598. data/public/vendor/npm/react@0.13.3/lib/toArray.js +0 -21
  599. data/public/vendor/npm/react@0.13.3/lib/traverseAllChildren.js +0 -104
  600. data/public/vendor/npm/react@0.13.3/lib/update.js +0 -78
  601. data/public/vendor/npm/react@0.13.3/lib/warning.js +0 -34
  602. data/public/vendor/npm/react@0.13.3/package.json +0 -34
  603. data/public/vendor/npm/react@0.13.3/react.js +0 -2
  604. data/public/vendor/npm/react@0.13.3.js +0 -1
  605. data/public/vendor/npm/readable-stream@1.1.13/duplex.js +0 -2
  606. data/public/vendor/npm/readable-stream@1.1.13/passthrough.js +0 -2
  607. data/public/vendor/npm/readable-stream@1.1.13/readable.js +0 -8
  608. data/public/vendor/npm/readable-stream@1.1.13/transform.js +0 -2
  609. data/public/vendor/npm/readable-stream@1.1.13/writable.js +0 -2
  610. data/public/vendor/npm/readable-stream@1.1.13.js +0 -1
  611. data/public/vendor/npm/source-map@0.1.31/CHANGELOG.md +0 -112
  612. data/public/vendor/npm/source-map@0.1.31/LICENSE +0 -28
  613. data/public/vendor/npm/source-map@0.1.31/Makefile.dryice.js +0 -89
  614. data/public/vendor/npm/source-map@0.1.31/README.md +0 -434
  615. data/public/vendor/npm/source-map@0.1.31/build/assert-shim.js +0 -58
  616. data/public/vendor/npm/source-map@0.1.31/build/mini-require.js +0 -154
  617. data/public/vendor/npm/source-map@0.1.31/build/prefix-source-map.jsm +0 -20
  618. data/public/vendor/npm/source-map@0.1.31/build/prefix-utils.jsm +0 -18
  619. data/public/vendor/npm/source-map@0.1.31/build/suffix-browser.js +0 -8
  620. data/public/vendor/npm/source-map@0.1.31/build/suffix-source-map.jsm +0 -6
  621. data/public/vendor/npm/source-map@0.1.31/build/suffix-utils.jsm +0 -21
  622. data/public/vendor/npm/source-map@0.1.31/build/test-prefix.js +0 -10
  623. data/public/vendor/npm/source-map@0.1.31/build/test-suffix.js +0 -5
  624. data/public/vendor/npm/source-map@0.1.31/lib/source-map/array-set.js +0 -49
  625. data/public/vendor/npm/source-map@0.1.31/lib/source-map/base64-vlq.js +0 -56
  626. data/public/vendor/npm/source-map@0.1.31/lib/source-map/base64.js +0 -44
  627. data/public/vendor/npm/source-map@0.1.31/lib/source-map/binary-search.js +0 -83
  628. data/public/vendor/npm/source-map@0.1.31/lib/source-map/source-map-consumer.js +0 -238
  629. data/public/vendor/npm/source-map@0.1.31/lib/source-map/source-map-generator.js +0 -231
  630. data/public/vendor/npm/source-map@0.1.31/lib/source-map/source-node.js +0 -234
  631. data/public/vendor/npm/source-map@0.1.31/lib/source-map/util.js +0 -207
  632. data/public/vendor/npm/source-map@0.1.31/lib/source-map.js +0 -4
  633. data/public/vendor/npm/source-map@0.1.31/package.json +0 -52
  634. data/public/vendor/npm/source-map@0.1.31/test/run-tests.js +0 -50
  635. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-api.js +0 -19
  636. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-array-set.js +0 -84
  637. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-base64-vlq.js +0 -17
  638. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-base64.js +0 -26
  639. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-binary-search.js +0 -37
  640. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-dog-fooding.js +0 -76
  641. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-source-map-consumer.js +0 -426
  642. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-source-map-generator.js +0 -480
  643. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-source-node.js +0 -307
  644. data/public/vendor/npm/source-map@0.1.31/test/source-map/util.js +0 -84
  645. data/public/vendor/npm/source-map@0.1.31.js +0 -1
  646. data/public/vendor/npm/through@2.3.8/LICENSE.APACHE2 +0 -15
  647. data/public/vendor/npm/through@2.3.8/LICENSE.MIT +0 -24
  648. data/public/vendor/npm/through@2.3.8/index.js +0 -93
  649. data/public/vendor/npm/through@2.3.8/package.json +0 -36
  650. data/public/vendor/npm/through@2.3.8/readme.markdown +0 -64
  651. data/public/vendor/npm/through@2.3.8/test/async.js +0 -26
  652. data/public/vendor/npm/through@2.3.8/test/auto-destroy.js +0 -26
  653. data/public/vendor/npm/through@2.3.8/test/buffering.js +0 -57
  654. data/public/vendor/npm/through@2.3.8/test/end.js +0 -37
  655. data/public/vendor/npm/through@2.3.8/test/index.js +0 -98
  656. data/public/vendor/npm/through@2.3.8/test.js +0 -2
  657. data/public/vendor/npm/through@2.3.8.js +0 -1
  658. data/views/_options.erb +0 -156
  659. /data/public/vendor/github/jspm/{nodelibs-buffer@0.1.0 → nodelibs-buffer@0.1.1}/index.js +0 -0
  660. /data/public/vendor/github/jspm/{nodelibs-process@0.1.1 → nodelibs-process@0.1.2}/index.js +0 -0
  661. /data/public/vendor/npm/{readable-stream@1.1.13 → assert@1.5.0}/LICENSE +0 -0
  662. /data/public/vendor/npm/{buffer@3.4.3 → buffer@5.7.1}/LICENSE +0 -0
  663. /data/public/vendor/npm/{core-util-is@1.0.1 → core-util-is@1.0.3}/README.md +0 -0
  664. /data/public/vendor/npm/{process@0.10.1 → process@0.11.10}/LICENSE +0 -0
  665. /data/public/vendor/npm/{process@0.10.1 → process@0.11.10}/index.js +0 -0
  666. /data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/README.md +0 -0
  667. /data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/float.patch +0 -0
@@ -0,0 +1,4813 @@
1
+ /* */
2
+ (function(process) {
3
+ 'use strict';
4
+ if (process.env.NODE_ENV !== "production") {
5
+ (function() {
6
+ 'use strict';
7
+ var React = require('react');
8
+ var stream = require('stream');
9
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
10
+ function warn(format) {
11
+ {
12
+ {
13
+ for (var _len = arguments.length,
14
+ args = new Array(_len > 1 ? _len - 1 : 0),
15
+ _key = 1; _key < _len; _key++) {
16
+ args[_key - 1] = arguments[_key];
17
+ }
18
+ printWarning('warn', format, args);
19
+ }
20
+ }
21
+ }
22
+ function error(format) {
23
+ {
24
+ {
25
+ for (var _len2 = arguments.length,
26
+ args = new Array(_len2 > 1 ? _len2 - 1 : 0),
27
+ _key2 = 1; _key2 < _len2; _key2++) {
28
+ args[_key2 - 1] = arguments[_key2];
29
+ }
30
+ printWarning('error', format, args);
31
+ }
32
+ }
33
+ }
34
+ function printWarning(level, format, args) {
35
+ {
36
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
37
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
38
+ if (stack !== '') {
39
+ format += '%s';
40
+ args = args.concat([stack]);
41
+ }
42
+ var argsWithFormat = args.map(function(item) {
43
+ return String(item);
44
+ });
45
+ argsWithFormat.unshift('Warning: ' + format);
46
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
47
+ }
48
+ }
49
+ function _inheritsLoose(subClass, superClass) {
50
+ subClass.prototype = Object.create(superClass.prototype);
51
+ subClass.prototype.constructor = subClass;
52
+ subClass.__proto__ = superClass;
53
+ }
54
+ function scheduleWork(callback) {
55
+ callback();
56
+ }
57
+ function beginWriting(destination) {}
58
+ var prevWasCommentSegmenter = false;
59
+ function writeChunk(destination, chunk) {
60
+ writeChunkAndReturn(destination, chunk);
61
+ }
62
+ function writeChunkAndReturn(destination, chunk) {
63
+ if (prevWasCommentSegmenter) {
64
+ prevWasCommentSegmenter = false;
65
+ if (chunk[0] !== '<') {
66
+ destination.push('<!-- -->');
67
+ }
68
+ }
69
+ if (chunk === '<!-- -->') {
70
+ prevWasCommentSegmenter = true;
71
+ return true;
72
+ }
73
+ return destination.push(chunk);
74
+ }
75
+ function completeWriting(destination) {}
76
+ function close(destination) {
77
+ destination.push(null);
78
+ }
79
+ function stringToChunk(content) {
80
+ return content;
81
+ }
82
+ function stringToPrecomputedChunk(content) {
83
+ return content;
84
+ }
85
+ function closeWithError(destination, error) {
86
+ destination.destroy(error);
87
+ }
88
+ function typeName(value) {
89
+ {
90
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
91
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
92
+ return type;
93
+ }
94
+ }
95
+ function willCoercionThrow(value) {
96
+ {
97
+ try {
98
+ testStringCoercion(value);
99
+ return false;
100
+ } catch (e) {
101
+ return true;
102
+ }
103
+ }
104
+ }
105
+ function testStringCoercion(value) {
106
+ return '' + value;
107
+ }
108
+ function checkAttributeStringCoercion(value, attributeName) {
109
+ {
110
+ if (willCoercionThrow(value)) {
111
+ error('The provided `%s` attribute is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', attributeName, typeName(value));
112
+ return testStringCoercion(value);
113
+ }
114
+ }
115
+ }
116
+ function checkCSSPropertyStringCoercion(value, propName) {
117
+ {
118
+ if (willCoercionThrow(value)) {
119
+ error('The provided `%s` CSS property is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));
120
+ return testStringCoercion(value);
121
+ }
122
+ }
123
+ }
124
+ function checkHtmlStringCoercion(value) {
125
+ {
126
+ if (willCoercionThrow(value)) {
127
+ error('The provided HTML markup uses a value of unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
128
+ return testStringCoercion(value);
129
+ }
130
+ }
131
+ }
132
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
133
+ var RESERVED = 0;
134
+ var STRING = 1;
135
+ var BOOLEANISH_STRING = 2;
136
+ var BOOLEAN = 3;
137
+ var OVERLOADED_BOOLEAN = 4;
138
+ var NUMERIC = 5;
139
+ var POSITIVE_NUMERIC = 6;
140
+ var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
141
+ var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
142
+ var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
143
+ var illegalAttributeNameCache = {};
144
+ var validatedAttributeNameCache = {};
145
+ function isAttributeNameSafe(attributeName) {
146
+ if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
147
+ return true;
148
+ }
149
+ if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
150
+ return false;
151
+ }
152
+ if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
153
+ validatedAttributeNameCache[attributeName] = true;
154
+ return true;
155
+ }
156
+ illegalAttributeNameCache[attributeName] = true;
157
+ {
158
+ error('Invalid attribute name: `%s`', attributeName);
159
+ }
160
+ return false;
161
+ }
162
+ function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
163
+ if (propertyInfo !== null && propertyInfo.type === RESERVED) {
164
+ return false;
165
+ }
166
+ switch (typeof value) {
167
+ case 'function':
168
+ case 'symbol':
169
+ return true;
170
+ case 'boolean':
171
+ {
172
+ if (isCustomComponentTag) {
173
+ return false;
174
+ }
175
+ if (propertyInfo !== null) {
176
+ return !propertyInfo.acceptsBooleans;
177
+ } else {
178
+ var prefix = name.toLowerCase().slice(0, 5);
179
+ return prefix !== 'data-' && prefix !== 'aria-';
180
+ }
181
+ }
182
+ default:
183
+ return false;
184
+ }
185
+ }
186
+ function getPropertyInfo(name) {
187
+ return properties.hasOwnProperty(name) ? properties[name] : null;
188
+ }
189
+ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
190
+ this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
191
+ this.attributeName = attributeName;
192
+ this.attributeNamespace = attributeNamespace;
193
+ this.mustUseProperty = mustUseProperty;
194
+ this.propertyName = name;
195
+ this.type = type;
196
+ this.sanitizeURL = sanitizeURL;
197
+ this.removeEmptyString = removeEmptyString;
198
+ }
199
+ var properties = {};
200
+ var reservedProps = ['children', 'dangerouslySetInnerHTML', 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
201
+ reservedProps.forEach(function(name) {
202
+ properties[name] = new PropertyInfoRecord(name, RESERVED, false, name, null, false, false);
203
+ });
204
+ [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function(_ref) {
205
+ var name = _ref[0],
206
+ attributeName = _ref[1];
207
+ properties[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false);
208
+ });
209
+ ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function(name) {
210
+ properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name.toLowerCase(), null, false, false);
211
+ });
212
+ ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function(name) {
213
+ properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name, null, false, false);
214
+ });
215
+ ['allowFullScreen', 'async', 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', 'itemScope'].forEach(function(name) {
216
+ properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, name.toLowerCase(), null, false, false);
217
+ });
218
+ ['checked', 'multiple', 'muted', 'selected'].forEach(function(name) {
219
+ properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, name, null, false, false);
220
+ });
221
+ ['capture', 'download'].forEach(function(name) {
222
+ properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, name, null, false, false);
223
+ });
224
+ ['cols', 'rows', 'size', 'span'].forEach(function(name) {
225
+ properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, name, null, false, false);
226
+ });
227
+ ['rowSpan', 'start'].forEach(function(name) {
228
+ properties[name] = new PropertyInfoRecord(name, NUMERIC, false, name.toLowerCase(), null, false, false);
229
+ });
230
+ var CAMELIZE = /[\-\:]([a-z])/g;
231
+ var capitalize = function(token) {
232
+ return token[1].toUpperCase();
233
+ };
234
+ ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function(attributeName) {
235
+ var name = attributeName.replace(CAMELIZE, capitalize);
236
+ properties[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false);
237
+ });
238
+ ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function(attributeName) {
239
+ var name = attributeName.replace(CAMELIZE, capitalize);
240
+ properties[name] = new PropertyInfoRecord(name, STRING, false, attributeName, 'http://www.w3.org/1999/xlink', false, false);
241
+ });
242
+ ['xml:base', 'xml:lang', 'xml:space'].forEach(function(attributeName) {
243
+ var name = attributeName.replace(CAMELIZE, capitalize);
244
+ properties[name] = new PropertyInfoRecord(name, STRING, false, attributeName, 'http://www.w3.org/XML/1998/namespace', false, false);
245
+ });
246
+ ['tabIndex', 'crossOrigin'].forEach(function(attributeName) {
247
+ properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, false, false);
248
+ });
249
+ var xlinkHref = 'xlinkHref';
250
+ properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, 'xlink:href', 'http://www.w3.org/1999/xlink', true, false);
251
+ ['src', 'href', 'action', 'formAction'].forEach(function(attributeName) {
252
+ properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, true, true);
253
+ });
254
+ var isUnitlessNumber = {
255
+ animationIterationCount: true,
256
+ aspectRatio: true,
257
+ borderImageOutset: true,
258
+ borderImageSlice: true,
259
+ borderImageWidth: true,
260
+ boxFlex: true,
261
+ boxFlexGroup: true,
262
+ boxOrdinalGroup: true,
263
+ columnCount: true,
264
+ columns: true,
265
+ flex: true,
266
+ flexGrow: true,
267
+ flexPositive: true,
268
+ flexShrink: true,
269
+ flexNegative: true,
270
+ flexOrder: true,
271
+ gridArea: true,
272
+ gridRow: true,
273
+ gridRowEnd: true,
274
+ gridRowSpan: true,
275
+ gridRowStart: true,
276
+ gridColumn: true,
277
+ gridColumnEnd: true,
278
+ gridColumnSpan: true,
279
+ gridColumnStart: true,
280
+ fontWeight: true,
281
+ lineClamp: true,
282
+ lineHeight: true,
283
+ opacity: true,
284
+ order: true,
285
+ orphans: true,
286
+ tabSize: true,
287
+ widows: true,
288
+ zIndex: true,
289
+ zoom: true,
290
+ fillOpacity: true,
291
+ floodOpacity: true,
292
+ stopOpacity: true,
293
+ strokeDasharray: true,
294
+ strokeDashoffset: true,
295
+ strokeMiterlimit: true,
296
+ strokeOpacity: true,
297
+ strokeWidth: true
298
+ };
299
+ function prefixKey(prefix, key) {
300
+ return prefix + key.charAt(0).toUpperCase() + key.substring(1);
301
+ }
302
+ var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
303
+ Object.keys(isUnitlessNumber).forEach(function(prop) {
304
+ prefixes.forEach(function(prefix) {
305
+ isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
306
+ });
307
+ });
308
+ var hasReadOnlyValue = {
309
+ button: true,
310
+ checkbox: true,
311
+ image: true,
312
+ hidden: true,
313
+ radio: true,
314
+ reset: true,
315
+ submit: true
316
+ };
317
+ function checkControlledValueProps(tagName, props) {
318
+ {
319
+ if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {
320
+ error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
321
+ }
322
+ if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {
323
+ error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
324
+ }
325
+ }
326
+ }
327
+ function isCustomComponent(tagName, props) {
328
+ if (tagName.indexOf('-') === -1) {
329
+ return typeof props.is === 'string';
330
+ }
331
+ switch (tagName) {
332
+ case 'annotation-xml':
333
+ case 'color-profile':
334
+ case 'font-face':
335
+ case 'font-face-src':
336
+ case 'font-face-uri':
337
+ case 'font-face-format':
338
+ case 'font-face-name':
339
+ case 'missing-glyph':
340
+ return false;
341
+ default:
342
+ return true;
343
+ }
344
+ }
345
+ var ariaProperties = {
346
+ 'aria-current': 0,
347
+ 'aria-description': 0,
348
+ 'aria-details': 0,
349
+ 'aria-disabled': 0,
350
+ 'aria-hidden': 0,
351
+ 'aria-invalid': 0,
352
+ 'aria-keyshortcuts': 0,
353
+ 'aria-label': 0,
354
+ 'aria-roledescription': 0,
355
+ 'aria-autocomplete': 0,
356
+ 'aria-checked': 0,
357
+ 'aria-expanded': 0,
358
+ 'aria-haspopup': 0,
359
+ 'aria-level': 0,
360
+ 'aria-modal': 0,
361
+ 'aria-multiline': 0,
362
+ 'aria-multiselectable': 0,
363
+ 'aria-orientation': 0,
364
+ 'aria-placeholder': 0,
365
+ 'aria-pressed': 0,
366
+ 'aria-readonly': 0,
367
+ 'aria-required': 0,
368
+ 'aria-selected': 0,
369
+ 'aria-sort': 0,
370
+ 'aria-valuemax': 0,
371
+ 'aria-valuemin': 0,
372
+ 'aria-valuenow': 0,
373
+ 'aria-valuetext': 0,
374
+ 'aria-atomic': 0,
375
+ 'aria-busy': 0,
376
+ 'aria-live': 0,
377
+ 'aria-relevant': 0,
378
+ 'aria-dropeffect': 0,
379
+ 'aria-grabbed': 0,
380
+ 'aria-activedescendant': 0,
381
+ 'aria-colcount': 0,
382
+ 'aria-colindex': 0,
383
+ 'aria-colspan': 0,
384
+ 'aria-controls': 0,
385
+ 'aria-describedby': 0,
386
+ 'aria-errormessage': 0,
387
+ 'aria-flowto': 0,
388
+ 'aria-labelledby': 0,
389
+ 'aria-owns': 0,
390
+ 'aria-posinset': 0,
391
+ 'aria-rowcount': 0,
392
+ 'aria-rowindex': 0,
393
+ 'aria-rowspan': 0,
394
+ 'aria-setsize': 0
395
+ };
396
+ var warnedProperties = {};
397
+ var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
398
+ var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
399
+ function validateProperty(tagName, name) {
400
+ {
401
+ if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) {
402
+ return true;
403
+ }
404
+ if (rARIACamel.test(name)) {
405
+ var ariaName = 'aria-' + name.slice(4).toLowerCase();
406
+ var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
407
+ if (correctName == null) {
408
+ error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
409
+ warnedProperties[name] = true;
410
+ return true;
411
+ }
412
+ if (name !== correctName) {
413
+ error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
414
+ warnedProperties[name] = true;
415
+ return true;
416
+ }
417
+ }
418
+ if (rARIA.test(name)) {
419
+ var lowerCasedName = name.toLowerCase();
420
+ var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
421
+ if (standardName == null) {
422
+ warnedProperties[name] = true;
423
+ return false;
424
+ }
425
+ if (name !== standardName) {
426
+ error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
427
+ warnedProperties[name] = true;
428
+ return true;
429
+ }
430
+ }
431
+ }
432
+ return true;
433
+ }
434
+ function warnInvalidARIAProps(type, props) {
435
+ {
436
+ var invalidProps = [];
437
+ for (var key in props) {
438
+ var isValid = validateProperty(type, key);
439
+ if (!isValid) {
440
+ invalidProps.push(key);
441
+ }
442
+ }
443
+ var unknownPropString = invalidProps.map(function(prop) {
444
+ return '`' + prop + '`';
445
+ }).join(', ');
446
+ if (invalidProps.length === 1) {
447
+ error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
448
+ } else if (invalidProps.length > 1) {
449
+ error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
450
+ }
451
+ }
452
+ }
453
+ function validateProperties(type, props) {
454
+ if (isCustomComponent(type, props)) {
455
+ return;
456
+ }
457
+ warnInvalidARIAProps(type, props);
458
+ }
459
+ var didWarnValueNull = false;
460
+ function validateProperties$1(type, props) {
461
+ {
462
+ if (type !== 'input' && type !== 'textarea' && type !== 'select') {
463
+ return;
464
+ }
465
+ if (props != null && props.value === null && !didWarnValueNull) {
466
+ didWarnValueNull = true;
467
+ if (type === 'select' && props.multiple) {
468
+ error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
469
+ } else {
470
+ error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
471
+ }
472
+ }
473
+ }
474
+ }
475
+ var possibleStandardNames = {
476
+ accept: 'accept',
477
+ acceptcharset: 'acceptCharset',
478
+ 'accept-charset': 'acceptCharset',
479
+ accesskey: 'accessKey',
480
+ action: 'action',
481
+ allowfullscreen: 'allowFullScreen',
482
+ alt: 'alt',
483
+ as: 'as',
484
+ async: 'async',
485
+ autocapitalize: 'autoCapitalize',
486
+ autocomplete: 'autoComplete',
487
+ autocorrect: 'autoCorrect',
488
+ autofocus: 'autoFocus',
489
+ autoplay: 'autoPlay',
490
+ autosave: 'autoSave',
491
+ capture: 'capture',
492
+ cellpadding: 'cellPadding',
493
+ cellspacing: 'cellSpacing',
494
+ challenge: 'challenge',
495
+ charset: 'charSet',
496
+ checked: 'checked',
497
+ children: 'children',
498
+ cite: 'cite',
499
+ class: 'className',
500
+ classid: 'classID',
501
+ classname: 'className',
502
+ cols: 'cols',
503
+ colspan: 'colSpan',
504
+ content: 'content',
505
+ contenteditable: 'contentEditable',
506
+ contextmenu: 'contextMenu',
507
+ controls: 'controls',
508
+ controlslist: 'controlsList',
509
+ coords: 'coords',
510
+ crossorigin: 'crossOrigin',
511
+ dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
512
+ data: 'data',
513
+ datetime: 'dateTime',
514
+ default: 'default',
515
+ defaultchecked: 'defaultChecked',
516
+ defaultvalue: 'defaultValue',
517
+ defer: 'defer',
518
+ dir: 'dir',
519
+ disabled: 'disabled',
520
+ disablepictureinpicture: 'disablePictureInPicture',
521
+ disableremoteplayback: 'disableRemotePlayback',
522
+ download: 'download',
523
+ draggable: 'draggable',
524
+ enctype: 'encType',
525
+ enterkeyhint: 'enterKeyHint',
526
+ for: 'htmlFor',
527
+ form: 'form',
528
+ formmethod: 'formMethod',
529
+ formaction: 'formAction',
530
+ formenctype: 'formEncType',
531
+ formnovalidate: 'formNoValidate',
532
+ formtarget: 'formTarget',
533
+ frameborder: 'frameBorder',
534
+ headers: 'headers',
535
+ height: 'height',
536
+ hidden: 'hidden',
537
+ high: 'high',
538
+ href: 'href',
539
+ hreflang: 'hrefLang',
540
+ htmlfor: 'htmlFor',
541
+ httpequiv: 'httpEquiv',
542
+ 'http-equiv': 'httpEquiv',
543
+ icon: 'icon',
544
+ id: 'id',
545
+ imagesizes: 'imageSizes',
546
+ imagesrcset: 'imageSrcSet',
547
+ innerhtml: 'innerHTML',
548
+ inputmode: 'inputMode',
549
+ integrity: 'integrity',
550
+ is: 'is',
551
+ itemid: 'itemID',
552
+ itemprop: 'itemProp',
553
+ itemref: 'itemRef',
554
+ itemscope: 'itemScope',
555
+ itemtype: 'itemType',
556
+ keyparams: 'keyParams',
557
+ keytype: 'keyType',
558
+ kind: 'kind',
559
+ label: 'label',
560
+ lang: 'lang',
561
+ list: 'list',
562
+ loop: 'loop',
563
+ low: 'low',
564
+ manifest: 'manifest',
565
+ marginwidth: 'marginWidth',
566
+ marginheight: 'marginHeight',
567
+ max: 'max',
568
+ maxlength: 'maxLength',
569
+ media: 'media',
570
+ mediagroup: 'mediaGroup',
571
+ method: 'method',
572
+ min: 'min',
573
+ minlength: 'minLength',
574
+ multiple: 'multiple',
575
+ muted: 'muted',
576
+ name: 'name',
577
+ nomodule: 'noModule',
578
+ nonce: 'nonce',
579
+ novalidate: 'noValidate',
580
+ open: 'open',
581
+ optimum: 'optimum',
582
+ pattern: 'pattern',
583
+ placeholder: 'placeholder',
584
+ playsinline: 'playsInline',
585
+ poster: 'poster',
586
+ preload: 'preload',
587
+ profile: 'profile',
588
+ radiogroup: 'radioGroup',
589
+ readonly: 'readOnly',
590
+ referrerpolicy: 'referrerPolicy',
591
+ rel: 'rel',
592
+ required: 'required',
593
+ reversed: 'reversed',
594
+ role: 'role',
595
+ rows: 'rows',
596
+ rowspan: 'rowSpan',
597
+ sandbox: 'sandbox',
598
+ scope: 'scope',
599
+ scoped: 'scoped',
600
+ scrolling: 'scrolling',
601
+ seamless: 'seamless',
602
+ selected: 'selected',
603
+ shape: 'shape',
604
+ size: 'size',
605
+ sizes: 'sizes',
606
+ span: 'span',
607
+ spellcheck: 'spellCheck',
608
+ src: 'src',
609
+ srcdoc: 'srcDoc',
610
+ srclang: 'srcLang',
611
+ srcset: 'srcSet',
612
+ start: 'start',
613
+ step: 'step',
614
+ style: 'style',
615
+ summary: 'summary',
616
+ tabindex: 'tabIndex',
617
+ target: 'target',
618
+ title: 'title',
619
+ type: 'type',
620
+ usemap: 'useMap',
621
+ value: 'value',
622
+ width: 'width',
623
+ wmode: 'wmode',
624
+ wrap: 'wrap',
625
+ about: 'about',
626
+ accentheight: 'accentHeight',
627
+ 'accent-height': 'accentHeight',
628
+ accumulate: 'accumulate',
629
+ additive: 'additive',
630
+ alignmentbaseline: 'alignmentBaseline',
631
+ 'alignment-baseline': 'alignmentBaseline',
632
+ allowreorder: 'allowReorder',
633
+ alphabetic: 'alphabetic',
634
+ amplitude: 'amplitude',
635
+ arabicform: 'arabicForm',
636
+ 'arabic-form': 'arabicForm',
637
+ ascent: 'ascent',
638
+ attributename: 'attributeName',
639
+ attributetype: 'attributeType',
640
+ autoreverse: 'autoReverse',
641
+ azimuth: 'azimuth',
642
+ basefrequency: 'baseFrequency',
643
+ baselineshift: 'baselineShift',
644
+ 'baseline-shift': 'baselineShift',
645
+ baseprofile: 'baseProfile',
646
+ bbox: 'bbox',
647
+ begin: 'begin',
648
+ bias: 'bias',
649
+ by: 'by',
650
+ calcmode: 'calcMode',
651
+ capheight: 'capHeight',
652
+ 'cap-height': 'capHeight',
653
+ clip: 'clip',
654
+ clippath: 'clipPath',
655
+ 'clip-path': 'clipPath',
656
+ clippathunits: 'clipPathUnits',
657
+ cliprule: 'clipRule',
658
+ 'clip-rule': 'clipRule',
659
+ color: 'color',
660
+ colorinterpolation: 'colorInterpolation',
661
+ 'color-interpolation': 'colorInterpolation',
662
+ colorinterpolationfilters: 'colorInterpolationFilters',
663
+ 'color-interpolation-filters': 'colorInterpolationFilters',
664
+ colorprofile: 'colorProfile',
665
+ 'color-profile': 'colorProfile',
666
+ colorrendering: 'colorRendering',
667
+ 'color-rendering': 'colorRendering',
668
+ contentscripttype: 'contentScriptType',
669
+ contentstyletype: 'contentStyleType',
670
+ cursor: 'cursor',
671
+ cx: 'cx',
672
+ cy: 'cy',
673
+ d: 'd',
674
+ datatype: 'datatype',
675
+ decelerate: 'decelerate',
676
+ descent: 'descent',
677
+ diffuseconstant: 'diffuseConstant',
678
+ direction: 'direction',
679
+ display: 'display',
680
+ divisor: 'divisor',
681
+ dominantbaseline: 'dominantBaseline',
682
+ 'dominant-baseline': 'dominantBaseline',
683
+ dur: 'dur',
684
+ dx: 'dx',
685
+ dy: 'dy',
686
+ edgemode: 'edgeMode',
687
+ elevation: 'elevation',
688
+ enablebackground: 'enableBackground',
689
+ 'enable-background': 'enableBackground',
690
+ end: 'end',
691
+ exponent: 'exponent',
692
+ externalresourcesrequired: 'externalResourcesRequired',
693
+ fill: 'fill',
694
+ fillopacity: 'fillOpacity',
695
+ 'fill-opacity': 'fillOpacity',
696
+ fillrule: 'fillRule',
697
+ 'fill-rule': 'fillRule',
698
+ filter: 'filter',
699
+ filterres: 'filterRes',
700
+ filterunits: 'filterUnits',
701
+ floodopacity: 'floodOpacity',
702
+ 'flood-opacity': 'floodOpacity',
703
+ floodcolor: 'floodColor',
704
+ 'flood-color': 'floodColor',
705
+ focusable: 'focusable',
706
+ fontfamily: 'fontFamily',
707
+ 'font-family': 'fontFamily',
708
+ fontsize: 'fontSize',
709
+ 'font-size': 'fontSize',
710
+ fontsizeadjust: 'fontSizeAdjust',
711
+ 'font-size-adjust': 'fontSizeAdjust',
712
+ fontstretch: 'fontStretch',
713
+ 'font-stretch': 'fontStretch',
714
+ fontstyle: 'fontStyle',
715
+ 'font-style': 'fontStyle',
716
+ fontvariant: 'fontVariant',
717
+ 'font-variant': 'fontVariant',
718
+ fontweight: 'fontWeight',
719
+ 'font-weight': 'fontWeight',
720
+ format: 'format',
721
+ from: 'from',
722
+ fx: 'fx',
723
+ fy: 'fy',
724
+ g1: 'g1',
725
+ g2: 'g2',
726
+ glyphname: 'glyphName',
727
+ 'glyph-name': 'glyphName',
728
+ glyphorientationhorizontal: 'glyphOrientationHorizontal',
729
+ 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
730
+ glyphorientationvertical: 'glyphOrientationVertical',
731
+ 'glyph-orientation-vertical': 'glyphOrientationVertical',
732
+ glyphref: 'glyphRef',
733
+ gradienttransform: 'gradientTransform',
734
+ gradientunits: 'gradientUnits',
735
+ hanging: 'hanging',
736
+ horizadvx: 'horizAdvX',
737
+ 'horiz-adv-x': 'horizAdvX',
738
+ horizoriginx: 'horizOriginX',
739
+ 'horiz-origin-x': 'horizOriginX',
740
+ ideographic: 'ideographic',
741
+ imagerendering: 'imageRendering',
742
+ 'image-rendering': 'imageRendering',
743
+ in2: 'in2',
744
+ in: 'in',
745
+ inlist: 'inlist',
746
+ intercept: 'intercept',
747
+ k1: 'k1',
748
+ k2: 'k2',
749
+ k3: 'k3',
750
+ k4: 'k4',
751
+ k: 'k',
752
+ kernelmatrix: 'kernelMatrix',
753
+ kernelunitlength: 'kernelUnitLength',
754
+ kerning: 'kerning',
755
+ keypoints: 'keyPoints',
756
+ keysplines: 'keySplines',
757
+ keytimes: 'keyTimes',
758
+ lengthadjust: 'lengthAdjust',
759
+ letterspacing: 'letterSpacing',
760
+ 'letter-spacing': 'letterSpacing',
761
+ lightingcolor: 'lightingColor',
762
+ 'lighting-color': 'lightingColor',
763
+ limitingconeangle: 'limitingConeAngle',
764
+ local: 'local',
765
+ markerend: 'markerEnd',
766
+ 'marker-end': 'markerEnd',
767
+ markerheight: 'markerHeight',
768
+ markermid: 'markerMid',
769
+ 'marker-mid': 'markerMid',
770
+ markerstart: 'markerStart',
771
+ 'marker-start': 'markerStart',
772
+ markerunits: 'markerUnits',
773
+ markerwidth: 'markerWidth',
774
+ mask: 'mask',
775
+ maskcontentunits: 'maskContentUnits',
776
+ maskunits: 'maskUnits',
777
+ mathematical: 'mathematical',
778
+ mode: 'mode',
779
+ numoctaves: 'numOctaves',
780
+ offset: 'offset',
781
+ opacity: 'opacity',
782
+ operator: 'operator',
783
+ order: 'order',
784
+ orient: 'orient',
785
+ orientation: 'orientation',
786
+ origin: 'origin',
787
+ overflow: 'overflow',
788
+ overlineposition: 'overlinePosition',
789
+ 'overline-position': 'overlinePosition',
790
+ overlinethickness: 'overlineThickness',
791
+ 'overline-thickness': 'overlineThickness',
792
+ paintorder: 'paintOrder',
793
+ 'paint-order': 'paintOrder',
794
+ panose1: 'panose1',
795
+ 'panose-1': 'panose1',
796
+ pathlength: 'pathLength',
797
+ patterncontentunits: 'patternContentUnits',
798
+ patterntransform: 'patternTransform',
799
+ patternunits: 'patternUnits',
800
+ pointerevents: 'pointerEvents',
801
+ 'pointer-events': 'pointerEvents',
802
+ points: 'points',
803
+ pointsatx: 'pointsAtX',
804
+ pointsaty: 'pointsAtY',
805
+ pointsatz: 'pointsAtZ',
806
+ prefix: 'prefix',
807
+ preservealpha: 'preserveAlpha',
808
+ preserveaspectratio: 'preserveAspectRatio',
809
+ primitiveunits: 'primitiveUnits',
810
+ property: 'property',
811
+ r: 'r',
812
+ radius: 'radius',
813
+ refx: 'refX',
814
+ refy: 'refY',
815
+ renderingintent: 'renderingIntent',
816
+ 'rendering-intent': 'renderingIntent',
817
+ repeatcount: 'repeatCount',
818
+ repeatdur: 'repeatDur',
819
+ requiredextensions: 'requiredExtensions',
820
+ requiredfeatures: 'requiredFeatures',
821
+ resource: 'resource',
822
+ restart: 'restart',
823
+ result: 'result',
824
+ results: 'results',
825
+ rotate: 'rotate',
826
+ rx: 'rx',
827
+ ry: 'ry',
828
+ scale: 'scale',
829
+ security: 'security',
830
+ seed: 'seed',
831
+ shaperendering: 'shapeRendering',
832
+ 'shape-rendering': 'shapeRendering',
833
+ slope: 'slope',
834
+ spacing: 'spacing',
835
+ specularconstant: 'specularConstant',
836
+ specularexponent: 'specularExponent',
837
+ speed: 'speed',
838
+ spreadmethod: 'spreadMethod',
839
+ startoffset: 'startOffset',
840
+ stddeviation: 'stdDeviation',
841
+ stemh: 'stemh',
842
+ stemv: 'stemv',
843
+ stitchtiles: 'stitchTiles',
844
+ stopcolor: 'stopColor',
845
+ 'stop-color': 'stopColor',
846
+ stopopacity: 'stopOpacity',
847
+ 'stop-opacity': 'stopOpacity',
848
+ strikethroughposition: 'strikethroughPosition',
849
+ 'strikethrough-position': 'strikethroughPosition',
850
+ strikethroughthickness: 'strikethroughThickness',
851
+ 'strikethrough-thickness': 'strikethroughThickness',
852
+ string: 'string',
853
+ stroke: 'stroke',
854
+ strokedasharray: 'strokeDasharray',
855
+ 'stroke-dasharray': 'strokeDasharray',
856
+ strokedashoffset: 'strokeDashoffset',
857
+ 'stroke-dashoffset': 'strokeDashoffset',
858
+ strokelinecap: 'strokeLinecap',
859
+ 'stroke-linecap': 'strokeLinecap',
860
+ strokelinejoin: 'strokeLinejoin',
861
+ 'stroke-linejoin': 'strokeLinejoin',
862
+ strokemiterlimit: 'strokeMiterlimit',
863
+ 'stroke-miterlimit': 'strokeMiterlimit',
864
+ strokewidth: 'strokeWidth',
865
+ 'stroke-width': 'strokeWidth',
866
+ strokeopacity: 'strokeOpacity',
867
+ 'stroke-opacity': 'strokeOpacity',
868
+ suppresscontenteditablewarning: 'suppressContentEditableWarning',
869
+ suppresshydrationwarning: 'suppressHydrationWarning',
870
+ surfacescale: 'surfaceScale',
871
+ systemlanguage: 'systemLanguage',
872
+ tablevalues: 'tableValues',
873
+ targetx: 'targetX',
874
+ targety: 'targetY',
875
+ textanchor: 'textAnchor',
876
+ 'text-anchor': 'textAnchor',
877
+ textdecoration: 'textDecoration',
878
+ 'text-decoration': 'textDecoration',
879
+ textlength: 'textLength',
880
+ textrendering: 'textRendering',
881
+ 'text-rendering': 'textRendering',
882
+ to: 'to',
883
+ transform: 'transform',
884
+ typeof: 'typeof',
885
+ u1: 'u1',
886
+ u2: 'u2',
887
+ underlineposition: 'underlinePosition',
888
+ 'underline-position': 'underlinePosition',
889
+ underlinethickness: 'underlineThickness',
890
+ 'underline-thickness': 'underlineThickness',
891
+ unicode: 'unicode',
892
+ unicodebidi: 'unicodeBidi',
893
+ 'unicode-bidi': 'unicodeBidi',
894
+ unicoderange: 'unicodeRange',
895
+ 'unicode-range': 'unicodeRange',
896
+ unitsperem: 'unitsPerEm',
897
+ 'units-per-em': 'unitsPerEm',
898
+ unselectable: 'unselectable',
899
+ valphabetic: 'vAlphabetic',
900
+ 'v-alphabetic': 'vAlphabetic',
901
+ values: 'values',
902
+ vectoreffect: 'vectorEffect',
903
+ 'vector-effect': 'vectorEffect',
904
+ version: 'version',
905
+ vertadvy: 'vertAdvY',
906
+ 'vert-adv-y': 'vertAdvY',
907
+ vertoriginx: 'vertOriginX',
908
+ 'vert-origin-x': 'vertOriginX',
909
+ vertoriginy: 'vertOriginY',
910
+ 'vert-origin-y': 'vertOriginY',
911
+ vhanging: 'vHanging',
912
+ 'v-hanging': 'vHanging',
913
+ videographic: 'vIdeographic',
914
+ 'v-ideographic': 'vIdeographic',
915
+ viewbox: 'viewBox',
916
+ viewtarget: 'viewTarget',
917
+ visibility: 'visibility',
918
+ vmathematical: 'vMathematical',
919
+ 'v-mathematical': 'vMathematical',
920
+ vocab: 'vocab',
921
+ widths: 'widths',
922
+ wordspacing: 'wordSpacing',
923
+ 'word-spacing': 'wordSpacing',
924
+ writingmode: 'writingMode',
925
+ 'writing-mode': 'writingMode',
926
+ x1: 'x1',
927
+ x2: 'x2',
928
+ x: 'x',
929
+ xchannelselector: 'xChannelSelector',
930
+ xheight: 'xHeight',
931
+ 'x-height': 'xHeight',
932
+ xlinkactuate: 'xlinkActuate',
933
+ 'xlink:actuate': 'xlinkActuate',
934
+ xlinkarcrole: 'xlinkArcrole',
935
+ 'xlink:arcrole': 'xlinkArcrole',
936
+ xlinkhref: 'xlinkHref',
937
+ 'xlink:href': 'xlinkHref',
938
+ xlinkrole: 'xlinkRole',
939
+ 'xlink:role': 'xlinkRole',
940
+ xlinkshow: 'xlinkShow',
941
+ 'xlink:show': 'xlinkShow',
942
+ xlinktitle: 'xlinkTitle',
943
+ 'xlink:title': 'xlinkTitle',
944
+ xlinktype: 'xlinkType',
945
+ 'xlink:type': 'xlinkType',
946
+ xmlbase: 'xmlBase',
947
+ 'xml:base': 'xmlBase',
948
+ xmllang: 'xmlLang',
949
+ 'xml:lang': 'xmlLang',
950
+ xmlns: 'xmlns',
951
+ 'xml:space': 'xmlSpace',
952
+ xmlnsxlink: 'xmlnsXlink',
953
+ 'xmlns:xlink': 'xmlnsXlink',
954
+ xmlspace: 'xmlSpace',
955
+ y1: 'y1',
956
+ y2: 'y2',
957
+ y: 'y',
958
+ ychannelselector: 'yChannelSelector',
959
+ z: 'z',
960
+ zoomandpan: 'zoomAndPan'
961
+ };
962
+ var validateProperty$1 = function() {};
963
+ {
964
+ var warnedProperties$1 = {};
965
+ var EVENT_NAME_REGEX = /^on./;
966
+ var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
967
+ var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
968
+ var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
969
+ validateProperty$1 = function(tagName, name, value, eventRegistry) {
970
+ if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
971
+ return true;
972
+ }
973
+ var lowerCasedName = name.toLowerCase();
974
+ if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
975
+ error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
976
+ warnedProperties$1[name] = true;
977
+ return true;
978
+ }
979
+ if (eventRegistry != null) {
980
+ var registrationNameDependencies = eventRegistry.registrationNameDependencies,
981
+ possibleRegistrationNames = eventRegistry.possibleRegistrationNames;
982
+ if (registrationNameDependencies.hasOwnProperty(name)) {
983
+ return true;
984
+ }
985
+ var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
986
+ if (registrationName != null) {
987
+ error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
988
+ warnedProperties$1[name] = true;
989
+ return true;
990
+ }
991
+ if (EVENT_NAME_REGEX.test(name)) {
992
+ error('Unknown event handler property `%s`. It will be ignored.', name);
993
+ warnedProperties$1[name] = true;
994
+ return true;
995
+ }
996
+ } else if (EVENT_NAME_REGEX.test(name)) {
997
+ if (INVALID_EVENT_NAME_REGEX.test(name)) {
998
+ error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
999
+ }
1000
+ warnedProperties$1[name] = true;
1001
+ return true;
1002
+ }
1003
+ if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
1004
+ return true;
1005
+ }
1006
+ if (lowerCasedName === 'innerhtml') {
1007
+ error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
1008
+ warnedProperties$1[name] = true;
1009
+ return true;
1010
+ }
1011
+ if (lowerCasedName === 'aria') {
1012
+ error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
1013
+ warnedProperties$1[name] = true;
1014
+ return true;
1015
+ }
1016
+ if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
1017
+ error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
1018
+ warnedProperties$1[name] = true;
1019
+ return true;
1020
+ }
1021
+ if (typeof value === 'number' && isNaN(value)) {
1022
+ error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
1023
+ warnedProperties$1[name] = true;
1024
+ return true;
1025
+ }
1026
+ var propertyInfo = getPropertyInfo(name);
1027
+ var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
1028
+ if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
1029
+ var standardName = possibleStandardNames[lowerCasedName];
1030
+ if (standardName !== name) {
1031
+ error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
1032
+ warnedProperties$1[name] = true;
1033
+ return true;
1034
+ }
1035
+ } else if (!isReserved && name !== lowerCasedName) {
1036
+ error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);
1037
+ warnedProperties$1[name] = true;
1038
+ return true;
1039
+ }
1040
+ if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
1041
+ if (value) {
1042
+ error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
1043
+ } else {
1044
+ error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
1045
+ }
1046
+ warnedProperties$1[name] = true;
1047
+ return true;
1048
+ }
1049
+ if (isReserved) {
1050
+ return true;
1051
+ }
1052
+ if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
1053
+ warnedProperties$1[name] = true;
1054
+ return false;
1055
+ }
1056
+ if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
1057
+ error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
1058
+ warnedProperties$1[name] = true;
1059
+ return true;
1060
+ }
1061
+ return true;
1062
+ };
1063
+ }
1064
+ var warnUnknownProperties = function(type, props, eventRegistry) {
1065
+ {
1066
+ var unknownProps = [];
1067
+ for (var key in props) {
1068
+ var isValid = validateProperty$1(type, key, props[key], eventRegistry);
1069
+ if (!isValid) {
1070
+ unknownProps.push(key);
1071
+ }
1072
+ }
1073
+ var unknownPropString = unknownProps.map(function(prop) {
1074
+ return '`' + prop + '`';
1075
+ }).join(', ');
1076
+ if (unknownProps.length === 1) {
1077
+ error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
1078
+ } else if (unknownProps.length > 1) {
1079
+ error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
1080
+ }
1081
+ }
1082
+ };
1083
+ function validateProperties$2(type, props, eventRegistry) {
1084
+ if (isCustomComponent(type, props)) {
1085
+ return;
1086
+ }
1087
+ warnUnknownProperties(type, props, eventRegistry);
1088
+ }
1089
+ var warnValidStyle = function() {};
1090
+ {
1091
+ var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
1092
+ var msPattern = /^-ms-/;
1093
+ var hyphenPattern = /-(.)/g;
1094
+ var badStyleValueWithSemicolonPattern = /;\s*$/;
1095
+ var warnedStyleNames = {};
1096
+ var warnedStyleValues = {};
1097
+ var warnedForNaNValue = false;
1098
+ var warnedForInfinityValue = false;
1099
+ var camelize = function(string) {
1100
+ return string.replace(hyphenPattern, function(_, character) {
1101
+ return character.toUpperCase();
1102
+ });
1103
+ };
1104
+ var warnHyphenatedStyleName = function(name) {
1105
+ if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
1106
+ return;
1107
+ }
1108
+ warnedStyleNames[name] = true;
1109
+ error('Unsupported style property %s. Did you mean %s?', name, camelize(name.replace(msPattern, 'ms-')));
1110
+ };
1111
+ var warnBadVendoredStyleName = function(name) {
1112
+ if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
1113
+ return;
1114
+ }
1115
+ warnedStyleNames[name] = true;
1116
+ error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
1117
+ };
1118
+ var warnStyleValueWithSemicolon = function(name, value) {
1119
+ if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
1120
+ return;
1121
+ }
1122
+ warnedStyleValues[value] = true;
1123
+ error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
1124
+ };
1125
+ var warnStyleValueIsNaN = function(name, value) {
1126
+ if (warnedForNaNValue) {
1127
+ return;
1128
+ }
1129
+ warnedForNaNValue = true;
1130
+ error('`NaN` is an invalid value for the `%s` css style property.', name);
1131
+ };
1132
+ var warnStyleValueIsInfinity = function(name, value) {
1133
+ if (warnedForInfinityValue) {
1134
+ return;
1135
+ }
1136
+ warnedForInfinityValue = true;
1137
+ error('`Infinity` is an invalid value for the `%s` css style property.', name);
1138
+ };
1139
+ warnValidStyle = function(name, value) {
1140
+ if (name.indexOf('-') > -1) {
1141
+ warnHyphenatedStyleName(name);
1142
+ } else if (badVendoredStyleNamePattern.test(name)) {
1143
+ warnBadVendoredStyleName(name);
1144
+ } else if (badStyleValueWithSemicolonPattern.test(value)) {
1145
+ warnStyleValueWithSemicolon(name, value);
1146
+ }
1147
+ if (typeof value === 'number') {
1148
+ if (isNaN(value)) {
1149
+ warnStyleValueIsNaN(name, value);
1150
+ } else if (!isFinite(value)) {
1151
+ warnStyleValueIsInfinity(name, value);
1152
+ }
1153
+ }
1154
+ };
1155
+ }
1156
+ var warnValidStyle$1 = warnValidStyle;
1157
+ var matchHtmlRegExp = /["'&<>]/;
1158
+ function escapeHtml(string) {
1159
+ {
1160
+ checkHtmlStringCoercion(string);
1161
+ }
1162
+ var str = '' + string;
1163
+ var match = matchHtmlRegExp.exec(str);
1164
+ if (!match) {
1165
+ return str;
1166
+ }
1167
+ var escape;
1168
+ var html = '';
1169
+ var index;
1170
+ var lastIndex = 0;
1171
+ for (index = match.index; index < str.length; index++) {
1172
+ switch (str.charCodeAt(index)) {
1173
+ case 34:
1174
+ escape = '&quot;';
1175
+ break;
1176
+ case 38:
1177
+ escape = '&amp;';
1178
+ break;
1179
+ case 39:
1180
+ escape = '&#x27;';
1181
+ break;
1182
+ case 60:
1183
+ escape = '&lt;';
1184
+ break;
1185
+ case 62:
1186
+ escape = '&gt;';
1187
+ break;
1188
+ default:
1189
+ continue;
1190
+ }
1191
+ if (lastIndex !== index) {
1192
+ html += str.substring(lastIndex, index);
1193
+ }
1194
+ lastIndex = index + 1;
1195
+ html += escape;
1196
+ }
1197
+ return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
1198
+ }
1199
+ function escapeTextForBrowser(text) {
1200
+ if (typeof text === 'boolean' || typeof text === 'number') {
1201
+ return '' + text;
1202
+ }
1203
+ return escapeHtml(text);
1204
+ }
1205
+ var uppercasePattern = /([A-Z])/g;
1206
+ var msPattern$1 = /^ms-/;
1207
+ function hyphenateStyleName(name) {
1208
+ return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern$1, '-ms-');
1209
+ }
1210
+ var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
1211
+ var didWarn = false;
1212
+ function sanitizeURL(url) {
1213
+ {
1214
+ if (!didWarn && isJavaScriptProtocol.test(url)) {
1215
+ didWarn = true;
1216
+ error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
1217
+ }
1218
+ }
1219
+ }
1220
+ var isArrayImpl = Array.isArray;
1221
+ function isArray(a) {
1222
+ return isArrayImpl(a);
1223
+ }
1224
+ var startInlineScript = stringToPrecomputedChunk('<script>');
1225
+ var endInlineScript = stringToPrecomputedChunk('</script>');
1226
+ var startScriptSrc = stringToPrecomputedChunk('<script src="');
1227
+ var startModuleSrc = stringToPrecomputedChunk('<script type="module" src="');
1228
+ var endAsyncScript = stringToPrecomputedChunk('" async=""></script>');
1229
+ function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules) {
1230
+ var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
1231
+ var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('<script nonce="' + escapeTextForBrowser(nonce) + '">');
1232
+ var bootstrapChunks = [];
1233
+ if (bootstrapScriptContent !== undefined) {
1234
+ bootstrapChunks.push(inlineScriptWithNonce, stringToChunk(escapeTextForBrowser(bootstrapScriptContent)), endInlineScript);
1235
+ }
1236
+ if (bootstrapScripts !== undefined) {
1237
+ for (var i = 0; i < bootstrapScripts.length; i++) {
1238
+ bootstrapChunks.push(startScriptSrc, stringToChunk(escapeTextForBrowser(bootstrapScripts[i])), endAsyncScript);
1239
+ }
1240
+ }
1241
+ if (bootstrapModules !== undefined) {
1242
+ for (var _i = 0; _i < bootstrapModules.length; _i++) {
1243
+ bootstrapChunks.push(startModuleSrc, stringToChunk(escapeTextForBrowser(bootstrapModules[_i])), endAsyncScript);
1244
+ }
1245
+ }
1246
+ return {
1247
+ bootstrapChunks: bootstrapChunks,
1248
+ startInlineScript: inlineScriptWithNonce,
1249
+ placeholderPrefix: stringToPrecomputedChunk(idPrefix + 'P:'),
1250
+ segmentPrefix: stringToPrecomputedChunk(idPrefix + 'S:'),
1251
+ boundaryPrefix: idPrefix + 'B:',
1252
+ idPrefix: idPrefix,
1253
+ nextSuspenseID: 0,
1254
+ sentCompleteSegmentFunction: false,
1255
+ sentCompleteBoundaryFunction: false,
1256
+ sentClientRenderFunction: false
1257
+ };
1258
+ }
1259
+ var ROOT_HTML_MODE = 0;
1260
+ var HTML_MODE = 1;
1261
+ var SVG_MODE = 2;
1262
+ var MATHML_MODE = 3;
1263
+ var HTML_TABLE_MODE = 4;
1264
+ var HTML_TABLE_BODY_MODE = 5;
1265
+ var HTML_TABLE_ROW_MODE = 6;
1266
+ var HTML_COLGROUP_MODE = 7;
1267
+ function createFormatContext(insertionMode, selectedValue) {
1268
+ return {
1269
+ insertionMode: insertionMode,
1270
+ selectedValue: selectedValue
1271
+ };
1272
+ }
1273
+ function getChildFormatContext(parentContext, type, props) {
1274
+ switch (type) {
1275
+ case 'select':
1276
+ return createFormatContext(HTML_MODE, props.value != null ? props.value : props.defaultValue);
1277
+ case 'svg':
1278
+ return createFormatContext(SVG_MODE, null);
1279
+ case 'math':
1280
+ return createFormatContext(MATHML_MODE, null);
1281
+ case 'foreignObject':
1282
+ return createFormatContext(HTML_MODE, null);
1283
+ case 'table':
1284
+ return createFormatContext(HTML_TABLE_MODE, null);
1285
+ case 'thead':
1286
+ case 'tbody':
1287
+ case 'tfoot':
1288
+ return createFormatContext(HTML_TABLE_BODY_MODE, null);
1289
+ case 'colgroup':
1290
+ return createFormatContext(HTML_COLGROUP_MODE, null);
1291
+ case 'tr':
1292
+ return createFormatContext(HTML_TABLE_ROW_MODE, null);
1293
+ }
1294
+ if (parentContext.insertionMode >= HTML_TABLE_MODE) {
1295
+ return createFormatContext(HTML_MODE, null);
1296
+ }
1297
+ if (parentContext.insertionMode === ROOT_HTML_MODE) {
1298
+ return createFormatContext(HTML_MODE, null);
1299
+ }
1300
+ return parentContext;
1301
+ }
1302
+ var UNINITIALIZED_SUSPENSE_BOUNDARY_ID = null;
1303
+ function assignSuspenseBoundaryID(responseState) {
1304
+ var generatedID = responseState.nextSuspenseID++;
1305
+ return stringToPrecomputedChunk(responseState.boundaryPrefix + generatedID.toString(16));
1306
+ }
1307
+ function makeId(responseState, treeId, localId) {
1308
+ var idPrefix = responseState.idPrefix;
1309
+ var id = ':' + idPrefix + 'R' + treeId;
1310
+ if (localId > 0) {
1311
+ id += 'H' + localId.toString(32);
1312
+ }
1313
+ return id + ':';
1314
+ }
1315
+ function encodeHTMLTextNode(text) {
1316
+ return escapeTextForBrowser(text);
1317
+ }
1318
+ var textSeparator = stringToPrecomputedChunk('<!-- -->');
1319
+ function pushTextInstance(target, text, responseState) {
1320
+ if (text === '') {
1321
+ return;
1322
+ }
1323
+ target.push(stringToChunk(encodeHTMLTextNode(text)), textSeparator);
1324
+ }
1325
+ var styleNameCache = new Map();
1326
+ function processStyleName(styleName) {
1327
+ var chunk = styleNameCache.get(styleName);
1328
+ if (chunk !== undefined) {
1329
+ return chunk;
1330
+ }
1331
+ var result = stringToPrecomputedChunk(escapeTextForBrowser(hyphenateStyleName(styleName)));
1332
+ styleNameCache.set(styleName, result);
1333
+ return result;
1334
+ }
1335
+ var styleAttributeStart = stringToPrecomputedChunk(' style="');
1336
+ var styleAssign = stringToPrecomputedChunk(':');
1337
+ var styleSeparator = stringToPrecomputedChunk(';');
1338
+ function pushStyle(target, responseState, style) {
1339
+ if (typeof style !== 'object') {
1340
+ throw new Error('The `style` prop expects a mapping from style properties to values, ' + "not a string. For example, style={{marginRight: spacing + 'em'}} when " + 'using JSX.');
1341
+ }
1342
+ var isFirst = true;
1343
+ for (var styleName in style) {
1344
+ if (!hasOwnProperty.call(style, styleName)) {
1345
+ continue;
1346
+ }
1347
+ var styleValue = style[styleName];
1348
+ if (styleValue == null || typeof styleValue === 'boolean' || styleValue === '') {
1349
+ continue;
1350
+ }
1351
+ var nameChunk = void 0;
1352
+ var valueChunk = void 0;
1353
+ var isCustomProperty = styleName.indexOf('--') === 0;
1354
+ if (isCustomProperty) {
1355
+ nameChunk = stringToChunk(escapeTextForBrowser(styleName));
1356
+ {
1357
+ checkCSSPropertyStringCoercion(styleValue, styleName);
1358
+ }
1359
+ valueChunk = stringToChunk(escapeTextForBrowser(('' + styleValue).trim()));
1360
+ } else {
1361
+ {
1362
+ warnValidStyle$1(styleName, styleValue);
1363
+ }
1364
+ nameChunk = processStyleName(styleName);
1365
+ if (typeof styleValue === 'number') {
1366
+ if (styleValue !== 0 && !hasOwnProperty.call(isUnitlessNumber, styleName)) {
1367
+ valueChunk = stringToChunk(styleValue + 'px');
1368
+ } else {
1369
+ valueChunk = stringToChunk('' + styleValue);
1370
+ }
1371
+ } else {
1372
+ {
1373
+ checkCSSPropertyStringCoercion(styleValue, styleName);
1374
+ }
1375
+ valueChunk = stringToChunk(escapeTextForBrowser(('' + styleValue).trim()));
1376
+ }
1377
+ }
1378
+ if (isFirst) {
1379
+ isFirst = false;
1380
+ target.push(styleAttributeStart, nameChunk, styleAssign, valueChunk);
1381
+ } else {
1382
+ target.push(styleSeparator, nameChunk, styleAssign, valueChunk);
1383
+ }
1384
+ }
1385
+ if (!isFirst) {
1386
+ target.push(attributeEnd);
1387
+ }
1388
+ }
1389
+ var attributeSeparator = stringToPrecomputedChunk(' ');
1390
+ var attributeAssign = stringToPrecomputedChunk('="');
1391
+ var attributeEnd = stringToPrecomputedChunk('"');
1392
+ var attributeEmptyString = stringToPrecomputedChunk('=""');
1393
+ function pushAttribute(target, responseState, name, value) {
1394
+ switch (name) {
1395
+ case 'style':
1396
+ {
1397
+ pushStyle(target, responseState, value);
1398
+ return;
1399
+ }
1400
+ case 'defaultValue':
1401
+ case 'defaultChecked':
1402
+ case 'innerHTML':
1403
+ case 'suppressContentEditableWarning':
1404
+ case 'suppressHydrationWarning':
1405
+ return;
1406
+ }
1407
+ if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
1408
+ return;
1409
+ }
1410
+ var propertyInfo = getPropertyInfo(name);
1411
+ if (propertyInfo !== null) {
1412
+ switch (typeof value) {
1413
+ case 'function':
1414
+ case 'symbol':
1415
+ return;
1416
+ case 'boolean':
1417
+ {
1418
+ if (!propertyInfo.acceptsBooleans) {
1419
+ return;
1420
+ }
1421
+ }
1422
+ }
1423
+ var attributeName = propertyInfo.attributeName;
1424
+ var attributeNameChunk = stringToChunk(attributeName);
1425
+ switch (propertyInfo.type) {
1426
+ case BOOLEAN:
1427
+ if (value) {
1428
+ target.push(attributeSeparator, attributeNameChunk, attributeEmptyString);
1429
+ }
1430
+ return;
1431
+ case OVERLOADED_BOOLEAN:
1432
+ if (value === true) {
1433
+ target.push(attributeSeparator, attributeNameChunk, attributeEmptyString);
1434
+ } else if (value === false)
1435
+ ;
1436
+ else {
1437
+ target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
1438
+ }
1439
+ return;
1440
+ case NUMERIC:
1441
+ if (!isNaN(value)) {
1442
+ target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
1443
+ }
1444
+ break;
1445
+ case POSITIVE_NUMERIC:
1446
+ if (!isNaN(value) && value >= 1) {
1447
+ target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
1448
+ }
1449
+ break;
1450
+ default:
1451
+ if (propertyInfo.sanitizeURL) {
1452
+ {
1453
+ checkAttributeStringCoercion(value, attributeName);
1454
+ }
1455
+ value = '' + value;
1456
+ sanitizeURL(value);
1457
+ }
1458
+ target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
1459
+ }
1460
+ } else if (isAttributeNameSafe(name)) {
1461
+ switch (typeof value) {
1462
+ case 'function':
1463
+ case 'symbol':
1464
+ return;
1465
+ case 'boolean':
1466
+ {
1467
+ var prefix = name.toLowerCase().slice(0, 5);
1468
+ if (prefix !== 'data-' && prefix !== 'aria-') {
1469
+ return;
1470
+ }
1471
+ }
1472
+ }
1473
+ target.push(attributeSeparator, stringToChunk(name), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
1474
+ }
1475
+ }
1476
+ var endOfStartTag = stringToPrecomputedChunk('>');
1477
+ var endOfStartTagSelfClosing = stringToPrecomputedChunk('/>');
1478
+ function pushInnerHTML(target, innerHTML, children) {
1479
+ if (innerHTML != null) {
1480
+ if (children != null) {
1481
+ throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');
1482
+ }
1483
+ if (typeof innerHTML !== 'object' || !('__html' in innerHTML)) {
1484
+ throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');
1485
+ }
1486
+ var html = innerHTML.__html;
1487
+ if (html !== null && html !== undefined) {
1488
+ {
1489
+ checkHtmlStringCoercion(html);
1490
+ }
1491
+ target.push(stringToChunk('' + html));
1492
+ }
1493
+ }
1494
+ }
1495
+ var didWarnDefaultInputValue = false;
1496
+ var didWarnDefaultChecked = false;
1497
+ var didWarnDefaultSelectValue = false;
1498
+ var didWarnDefaultTextareaValue = false;
1499
+ var didWarnInvalidOptionChildren = false;
1500
+ var didWarnInvalidOptionInnerHTML = false;
1501
+ var didWarnSelectedSetOnOption = false;
1502
+ function checkSelectProp(props, propName) {
1503
+ {
1504
+ var value = props[propName];
1505
+ if (value != null) {
1506
+ var array = isArray(value);
1507
+ if (props.multiple && !array) {
1508
+ error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.', propName);
1509
+ } else if (!props.multiple && array) {
1510
+ error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.', propName);
1511
+ }
1512
+ }
1513
+ }
1514
+ }
1515
+ function pushStartSelect(target, props, responseState) {
1516
+ {
1517
+ checkControlledValueProps('select', props);
1518
+ checkSelectProp(props, 'value');
1519
+ checkSelectProp(props, 'defaultValue');
1520
+ if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultSelectValue) {
1521
+ error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components');
1522
+ didWarnDefaultSelectValue = true;
1523
+ }
1524
+ }
1525
+ target.push(startChunkForTag('select'));
1526
+ var children = null;
1527
+ var innerHTML = null;
1528
+ for (var propKey in props) {
1529
+ if (hasOwnProperty.call(props, propKey)) {
1530
+ var propValue = props[propKey];
1531
+ if (propValue == null) {
1532
+ continue;
1533
+ }
1534
+ switch (propKey) {
1535
+ case 'children':
1536
+ children = propValue;
1537
+ break;
1538
+ case 'dangerouslySetInnerHTML':
1539
+ innerHTML = propValue;
1540
+ break;
1541
+ case 'defaultValue':
1542
+ case 'value':
1543
+ break;
1544
+ default:
1545
+ pushAttribute(target, responseState, propKey, propValue);
1546
+ break;
1547
+ }
1548
+ }
1549
+ }
1550
+ target.push(endOfStartTag);
1551
+ pushInnerHTML(target, innerHTML, children);
1552
+ return children;
1553
+ }
1554
+ function flattenOptionChildren(children) {
1555
+ var content = '';
1556
+ React.Children.forEach(children, function(child) {
1557
+ if (child == null) {
1558
+ return;
1559
+ }
1560
+ content += child;
1561
+ {
1562
+ if (!didWarnInvalidOptionChildren && typeof child !== 'string' && typeof child !== 'number') {
1563
+ didWarnInvalidOptionChildren = true;
1564
+ error('Cannot infer the option value of complex children. ' + 'Pass a `value` prop or use a plain string as children to <option>.');
1565
+ }
1566
+ }
1567
+ });
1568
+ return content;
1569
+ }
1570
+ var selectedMarkerAttribute = stringToPrecomputedChunk(' selected=""');
1571
+ function pushStartOption(target, props, responseState, formatContext) {
1572
+ var selectedValue = formatContext.selectedValue;
1573
+ target.push(startChunkForTag('option'));
1574
+ var children = null;
1575
+ var value = null;
1576
+ var selected = null;
1577
+ var innerHTML = null;
1578
+ for (var propKey in props) {
1579
+ if (hasOwnProperty.call(props, propKey)) {
1580
+ var propValue = props[propKey];
1581
+ if (propValue == null) {
1582
+ continue;
1583
+ }
1584
+ switch (propKey) {
1585
+ case 'children':
1586
+ children = propValue;
1587
+ break;
1588
+ case 'selected':
1589
+ selected = propValue;
1590
+ {
1591
+ if (!didWarnSelectedSetOnOption) {
1592
+ error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
1593
+ didWarnSelectedSetOnOption = true;
1594
+ }
1595
+ }
1596
+ break;
1597
+ case 'dangerouslySetInnerHTML':
1598
+ innerHTML = propValue;
1599
+ break;
1600
+ case 'value':
1601
+ value = propValue;
1602
+ default:
1603
+ pushAttribute(target, responseState, propKey, propValue);
1604
+ break;
1605
+ }
1606
+ }
1607
+ }
1608
+ if (selectedValue != null) {
1609
+ var stringValue;
1610
+ if (value !== null) {
1611
+ {
1612
+ checkAttributeStringCoercion(value, 'value');
1613
+ }
1614
+ stringValue = '' + value;
1615
+ } else {
1616
+ {
1617
+ if (innerHTML !== null) {
1618
+ if (!didWarnInvalidOptionInnerHTML) {
1619
+ didWarnInvalidOptionInnerHTML = true;
1620
+ error('Pass a `value` prop if you set dangerouslyInnerHTML so React knows ' + 'which value should be selected.');
1621
+ }
1622
+ }
1623
+ }
1624
+ stringValue = flattenOptionChildren(children);
1625
+ }
1626
+ if (isArray(selectedValue)) {
1627
+ for (var i = 0; i < selectedValue.length; i++) {
1628
+ {
1629
+ checkAttributeStringCoercion(selectedValue[i], 'value');
1630
+ }
1631
+ var v = '' + selectedValue[i];
1632
+ if (v === stringValue) {
1633
+ target.push(selectedMarkerAttribute);
1634
+ break;
1635
+ }
1636
+ }
1637
+ } else {
1638
+ {
1639
+ checkAttributeStringCoercion(selectedValue, 'select.value');
1640
+ }
1641
+ if ('' + selectedValue === stringValue) {
1642
+ target.push(selectedMarkerAttribute);
1643
+ }
1644
+ }
1645
+ } else if (selected) {
1646
+ target.push(selectedMarkerAttribute);
1647
+ }
1648
+ target.push(endOfStartTag);
1649
+ pushInnerHTML(target, innerHTML, children);
1650
+ return children;
1651
+ }
1652
+ function pushInput(target, props, responseState) {
1653
+ {
1654
+ checkControlledValueProps('input', props);
1655
+ if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnDefaultChecked) {
1656
+ error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', 'A component', props.type);
1657
+ didWarnDefaultChecked = true;
1658
+ }
1659
+ if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultInputValue) {
1660
+ error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', 'A component', props.type);
1661
+ didWarnDefaultInputValue = true;
1662
+ }
1663
+ }
1664
+ target.push(startChunkForTag('input'));
1665
+ var value = null;
1666
+ var defaultValue = null;
1667
+ var checked = null;
1668
+ var defaultChecked = null;
1669
+ for (var propKey in props) {
1670
+ if (hasOwnProperty.call(props, propKey)) {
1671
+ var propValue = props[propKey];
1672
+ if (propValue == null) {
1673
+ continue;
1674
+ }
1675
+ switch (propKey) {
1676
+ case 'children':
1677
+ case 'dangerouslySetInnerHTML':
1678
+ throw new Error('input' + " is a self-closing tag and must neither have `children` nor " + 'use `dangerouslySetInnerHTML`.');
1679
+ case 'defaultChecked':
1680
+ defaultChecked = propValue;
1681
+ break;
1682
+ case 'defaultValue':
1683
+ defaultValue = propValue;
1684
+ break;
1685
+ case 'checked':
1686
+ checked = propValue;
1687
+ break;
1688
+ case 'value':
1689
+ value = propValue;
1690
+ break;
1691
+ default:
1692
+ pushAttribute(target, responseState, propKey, propValue);
1693
+ break;
1694
+ }
1695
+ }
1696
+ }
1697
+ if (checked !== null) {
1698
+ pushAttribute(target, responseState, 'checked', checked);
1699
+ } else if (defaultChecked !== null) {
1700
+ pushAttribute(target, responseState, 'checked', defaultChecked);
1701
+ }
1702
+ if (value !== null) {
1703
+ pushAttribute(target, responseState, 'value', value);
1704
+ } else if (defaultValue !== null) {
1705
+ pushAttribute(target, responseState, 'value', defaultValue);
1706
+ }
1707
+ target.push(endOfStartTagSelfClosing);
1708
+ return null;
1709
+ }
1710
+ function pushStartTextArea(target, props, responseState) {
1711
+ {
1712
+ checkControlledValueProps('textarea', props);
1713
+ if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultTextareaValue) {
1714
+ error('Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components');
1715
+ didWarnDefaultTextareaValue = true;
1716
+ }
1717
+ }
1718
+ target.push(startChunkForTag('textarea'));
1719
+ var value = null;
1720
+ var defaultValue = null;
1721
+ var children = null;
1722
+ for (var propKey in props) {
1723
+ if (hasOwnProperty.call(props, propKey)) {
1724
+ var propValue = props[propKey];
1725
+ if (propValue == null) {
1726
+ continue;
1727
+ }
1728
+ switch (propKey) {
1729
+ case 'children':
1730
+ children = propValue;
1731
+ break;
1732
+ case 'value':
1733
+ value = propValue;
1734
+ break;
1735
+ case 'defaultValue':
1736
+ defaultValue = propValue;
1737
+ break;
1738
+ case 'dangerouslySetInnerHTML':
1739
+ throw new Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.');
1740
+ default:
1741
+ pushAttribute(target, responseState, propKey, propValue);
1742
+ break;
1743
+ }
1744
+ }
1745
+ }
1746
+ if (value === null && defaultValue !== null) {
1747
+ value = defaultValue;
1748
+ }
1749
+ target.push(endOfStartTag);
1750
+ if (children != null) {
1751
+ {
1752
+ error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
1753
+ }
1754
+ if (value != null) {
1755
+ throw new Error('If you supply `defaultValue` on a <textarea>, do not pass children.');
1756
+ }
1757
+ if (isArray(children)) {
1758
+ if (children.length > 1) {
1759
+ throw new Error('<textarea> can only have at most one child.');
1760
+ }
1761
+ {
1762
+ checkHtmlStringCoercion(children[0]);
1763
+ }
1764
+ value = '' + children[0];
1765
+ }
1766
+ {
1767
+ checkHtmlStringCoercion(children);
1768
+ }
1769
+ value = '' + children;
1770
+ }
1771
+ if (typeof value === 'string' && value[0] === '\n') {
1772
+ target.push(leadingNewline);
1773
+ }
1774
+ if (value !== null) {
1775
+ {
1776
+ checkAttributeStringCoercion(value, 'value');
1777
+ }
1778
+ target.push(stringToChunk(encodeHTMLTextNode('' + value)));
1779
+ }
1780
+ return null;
1781
+ }
1782
+ function pushSelfClosing(target, props, tag, responseState) {
1783
+ target.push(startChunkForTag(tag));
1784
+ for (var propKey in props) {
1785
+ if (hasOwnProperty.call(props, propKey)) {
1786
+ var propValue = props[propKey];
1787
+ if (propValue == null) {
1788
+ continue;
1789
+ }
1790
+ switch (propKey) {
1791
+ case 'children':
1792
+ case 'dangerouslySetInnerHTML':
1793
+ throw new Error(tag + " is a self-closing tag and must neither have `children` nor " + 'use `dangerouslySetInnerHTML`.');
1794
+ default:
1795
+ pushAttribute(target, responseState, propKey, propValue);
1796
+ break;
1797
+ }
1798
+ }
1799
+ }
1800
+ target.push(endOfStartTagSelfClosing);
1801
+ return null;
1802
+ }
1803
+ function pushStartMenuItem(target, props, responseState) {
1804
+ target.push(startChunkForTag('menuitem'));
1805
+ for (var propKey in props) {
1806
+ if (hasOwnProperty.call(props, propKey)) {
1807
+ var propValue = props[propKey];
1808
+ if (propValue == null) {
1809
+ continue;
1810
+ }
1811
+ switch (propKey) {
1812
+ case 'children':
1813
+ case 'dangerouslySetInnerHTML':
1814
+ throw new Error('menuitems cannot have `children` nor `dangerouslySetInnerHTML`.');
1815
+ default:
1816
+ pushAttribute(target, responseState, propKey, propValue);
1817
+ break;
1818
+ }
1819
+ }
1820
+ }
1821
+ target.push(endOfStartTag);
1822
+ return null;
1823
+ }
1824
+ function pushStartGenericElement(target, props, tag, responseState) {
1825
+ target.push(startChunkForTag(tag));
1826
+ var children = null;
1827
+ var innerHTML = null;
1828
+ for (var propKey in props) {
1829
+ if (hasOwnProperty.call(props, propKey)) {
1830
+ var propValue = props[propKey];
1831
+ if (propValue == null) {
1832
+ continue;
1833
+ }
1834
+ switch (propKey) {
1835
+ case 'children':
1836
+ children = propValue;
1837
+ break;
1838
+ case 'dangerouslySetInnerHTML':
1839
+ innerHTML = propValue;
1840
+ break;
1841
+ default:
1842
+ pushAttribute(target, responseState, propKey, propValue);
1843
+ break;
1844
+ }
1845
+ }
1846
+ }
1847
+ target.push(endOfStartTag);
1848
+ pushInnerHTML(target, innerHTML, children);
1849
+ if (typeof children === 'string') {
1850
+ target.push(stringToChunk(encodeHTMLTextNode(children)));
1851
+ return null;
1852
+ }
1853
+ return children;
1854
+ }
1855
+ function pushStartCustomElement(target, props, tag, responseState) {
1856
+ target.push(startChunkForTag(tag));
1857
+ var children = null;
1858
+ var innerHTML = null;
1859
+ for (var propKey in props) {
1860
+ if (hasOwnProperty.call(props, propKey)) {
1861
+ var propValue = props[propKey];
1862
+ if (propValue == null) {
1863
+ continue;
1864
+ }
1865
+ switch (propKey) {
1866
+ case 'children':
1867
+ children = propValue;
1868
+ break;
1869
+ case 'dangerouslySetInnerHTML':
1870
+ innerHTML = propValue;
1871
+ break;
1872
+ case 'style':
1873
+ pushStyle(target, responseState, propValue);
1874
+ break;
1875
+ case 'suppressContentEditableWarning':
1876
+ case 'suppressHydrationWarning':
1877
+ break;
1878
+ default:
1879
+ if (isAttributeNameSafe(propKey) && typeof propValue !== 'function' && typeof propValue !== 'symbol') {
1880
+ target.push(attributeSeparator, stringToChunk(propKey), attributeAssign, stringToChunk(escapeTextForBrowser(propValue)), attributeEnd);
1881
+ }
1882
+ break;
1883
+ }
1884
+ }
1885
+ }
1886
+ target.push(endOfStartTag);
1887
+ pushInnerHTML(target, innerHTML, children);
1888
+ return children;
1889
+ }
1890
+ var leadingNewline = stringToPrecomputedChunk('\n');
1891
+ function pushStartPreformattedElement(target, props, tag, responseState) {
1892
+ target.push(startChunkForTag(tag));
1893
+ var children = null;
1894
+ var innerHTML = null;
1895
+ for (var propKey in props) {
1896
+ if (hasOwnProperty.call(props, propKey)) {
1897
+ var propValue = props[propKey];
1898
+ if (propValue == null) {
1899
+ continue;
1900
+ }
1901
+ switch (propKey) {
1902
+ case 'children':
1903
+ children = propValue;
1904
+ break;
1905
+ case 'dangerouslySetInnerHTML':
1906
+ innerHTML = propValue;
1907
+ break;
1908
+ default:
1909
+ pushAttribute(target, responseState, propKey, propValue);
1910
+ break;
1911
+ }
1912
+ }
1913
+ }
1914
+ target.push(endOfStartTag);
1915
+ if (innerHTML != null) {
1916
+ if (children != null) {
1917
+ throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');
1918
+ }
1919
+ if (typeof innerHTML !== 'object' || !('__html' in innerHTML)) {
1920
+ throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');
1921
+ }
1922
+ var html = innerHTML.__html;
1923
+ if (html !== null && html !== undefined) {
1924
+ if (typeof html === 'string' && html.length > 0 && html[0] === '\n') {
1925
+ target.push(leadingNewline, stringToChunk(html));
1926
+ } else {
1927
+ {
1928
+ checkHtmlStringCoercion(html);
1929
+ }
1930
+ target.push(stringToChunk('' + html));
1931
+ }
1932
+ }
1933
+ }
1934
+ if (typeof children === 'string' && children[0] === '\n') {
1935
+ target.push(leadingNewline);
1936
+ }
1937
+ return children;
1938
+ }
1939
+ var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/;
1940
+ var validatedTagCache = new Map();
1941
+ function startChunkForTag(tag) {
1942
+ var tagStartChunk = validatedTagCache.get(tag);
1943
+ if (tagStartChunk === undefined) {
1944
+ if (!VALID_TAG_REGEX.test(tag)) {
1945
+ throw new Error("Invalid tag: " + tag);
1946
+ }
1947
+ tagStartChunk = stringToPrecomputedChunk('<' + tag);
1948
+ validatedTagCache.set(tag, tagStartChunk);
1949
+ }
1950
+ return tagStartChunk;
1951
+ }
1952
+ var DOCTYPE = stringToPrecomputedChunk('<!DOCTYPE html>');
1953
+ function pushStartInstance(target, type, props, responseState, formatContext) {
1954
+ {
1955
+ validateProperties(type, props);
1956
+ validateProperties$1(type, props);
1957
+ validateProperties$2(type, props, null);
1958
+ if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
1959
+ error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
1960
+ }
1961
+ if (formatContext.insertionMode !== SVG_MODE && formatContext.insertionMode !== MATHML_MODE) {
1962
+ if (type.indexOf('-') === -1 && typeof props.is !== 'string' && type.toLowerCase() !== type) {
1963
+ error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
1964
+ }
1965
+ }
1966
+ }
1967
+ switch (type) {
1968
+ case 'select':
1969
+ return pushStartSelect(target, props, responseState);
1970
+ case 'option':
1971
+ return pushStartOption(target, props, responseState, formatContext);
1972
+ case 'textarea':
1973
+ return pushStartTextArea(target, props, responseState);
1974
+ case 'input':
1975
+ return pushInput(target, props, responseState);
1976
+ case 'menuitem':
1977
+ return pushStartMenuItem(target, props, responseState);
1978
+ case 'listing':
1979
+ case 'pre':
1980
+ {
1981
+ return pushStartPreformattedElement(target, props, type, responseState);
1982
+ }
1983
+ case 'area':
1984
+ case 'base':
1985
+ case 'br':
1986
+ case 'col':
1987
+ case 'embed':
1988
+ case 'hr':
1989
+ case 'img':
1990
+ case 'keygen':
1991
+ case 'link':
1992
+ case 'meta':
1993
+ case 'param':
1994
+ case 'source':
1995
+ case 'track':
1996
+ case 'wbr':
1997
+ {
1998
+ return pushSelfClosing(target, props, type, responseState);
1999
+ }
2000
+ case 'annotation-xml':
2001
+ case 'color-profile':
2002
+ case 'font-face':
2003
+ case 'font-face-src':
2004
+ case 'font-face-uri':
2005
+ case 'font-face-format':
2006
+ case 'font-face-name':
2007
+ case 'missing-glyph':
2008
+ {
2009
+ return pushStartGenericElement(target, props, type, responseState);
2010
+ }
2011
+ case 'html':
2012
+ {
2013
+ if (formatContext.insertionMode === ROOT_HTML_MODE) {
2014
+ target.push(DOCTYPE);
2015
+ }
2016
+ return pushStartGenericElement(target, props, type, responseState);
2017
+ }
2018
+ default:
2019
+ {
2020
+ if (type.indexOf('-') === -1 && typeof props.is !== 'string') {
2021
+ return pushStartGenericElement(target, props, type, responseState);
2022
+ } else {
2023
+ return pushStartCustomElement(target, props, type, responseState);
2024
+ }
2025
+ }
2026
+ }
2027
+ }
2028
+ var endTag1 = stringToPrecomputedChunk('</');
2029
+ var endTag2 = stringToPrecomputedChunk('>');
2030
+ function pushEndInstance(target, type, props) {
2031
+ switch (type) {
2032
+ case 'area':
2033
+ case 'base':
2034
+ case 'br':
2035
+ case 'col':
2036
+ case 'embed':
2037
+ case 'hr':
2038
+ case 'img':
2039
+ case 'input':
2040
+ case 'keygen':
2041
+ case 'link':
2042
+ case 'meta':
2043
+ case 'param':
2044
+ case 'source':
2045
+ case 'track':
2046
+ case 'wbr':
2047
+ {
2048
+ break;
2049
+ }
2050
+ default:
2051
+ {
2052
+ target.push(endTag1, stringToChunk(type), endTag2);
2053
+ }
2054
+ }
2055
+ }
2056
+ function writeCompletedRoot(destination, responseState) {
2057
+ var bootstrapChunks = responseState.bootstrapChunks;
2058
+ var i = 0;
2059
+ for (; i < bootstrapChunks.length - 1; i++) {
2060
+ writeChunk(destination, bootstrapChunks[i]);
2061
+ }
2062
+ if (i < bootstrapChunks.length) {
2063
+ return writeChunkAndReturn(destination, bootstrapChunks[i]);
2064
+ }
2065
+ return true;
2066
+ }
2067
+ var placeholder1 = stringToPrecomputedChunk('<template id="');
2068
+ var placeholder2 = stringToPrecomputedChunk('"></template>');
2069
+ function writePlaceholder(destination, responseState, id) {
2070
+ writeChunk(destination, placeholder1);
2071
+ writeChunk(destination, responseState.placeholderPrefix);
2072
+ var formattedID = stringToChunk(id.toString(16));
2073
+ writeChunk(destination, formattedID);
2074
+ return writeChunkAndReturn(destination, placeholder2);
2075
+ }
2076
+ var startCompletedSuspenseBoundary = stringToPrecomputedChunk('<!--$-->');
2077
+ var startPendingSuspenseBoundary1 = stringToPrecomputedChunk('<!--$?--><template id="');
2078
+ var startPendingSuspenseBoundary2 = stringToPrecomputedChunk('"></template>');
2079
+ var startClientRenderedSuspenseBoundary = stringToPrecomputedChunk('<!--$!-->');
2080
+ var endSuspenseBoundary = stringToPrecomputedChunk('<!--/$-->');
2081
+ function writeStartCompletedSuspenseBoundary(destination, responseState) {
2082
+ return writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
2083
+ }
2084
+ function writeStartPendingSuspenseBoundary(destination, responseState, id) {
2085
+ writeChunk(destination, startPendingSuspenseBoundary1);
2086
+ if (id === null) {
2087
+ throw new Error('An ID must have been assigned before we can complete the boundary.');
2088
+ }
2089
+ writeChunk(destination, id);
2090
+ return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
2091
+ }
2092
+ function writeStartClientRenderedSuspenseBoundary(destination, responseState) {
2093
+ return writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
2094
+ }
2095
+ function writeEndCompletedSuspenseBoundary(destination, responseState) {
2096
+ return writeChunkAndReturn(destination, endSuspenseBoundary);
2097
+ }
2098
+ function writeEndPendingSuspenseBoundary(destination, responseState) {
2099
+ return writeChunkAndReturn(destination, endSuspenseBoundary);
2100
+ }
2101
+ function writeEndClientRenderedSuspenseBoundary(destination, responseState) {
2102
+ return writeChunkAndReturn(destination, endSuspenseBoundary);
2103
+ }
2104
+ var startSegmentHTML = stringToPrecomputedChunk('<div hidden id="');
2105
+ var startSegmentHTML2 = stringToPrecomputedChunk('">');
2106
+ var endSegmentHTML = stringToPrecomputedChunk('</div>');
2107
+ var startSegmentSVG = stringToPrecomputedChunk('<svg aria-hidden="true" style="display:none" id="');
2108
+ var startSegmentSVG2 = stringToPrecomputedChunk('">');
2109
+ var endSegmentSVG = stringToPrecomputedChunk('</svg>');
2110
+ var startSegmentMathML = stringToPrecomputedChunk('<math aria-hidden="true" style="display:none" id="');
2111
+ var startSegmentMathML2 = stringToPrecomputedChunk('">');
2112
+ var endSegmentMathML = stringToPrecomputedChunk('</math>');
2113
+ var startSegmentTable = stringToPrecomputedChunk('<table hidden id="');
2114
+ var startSegmentTable2 = stringToPrecomputedChunk('">');
2115
+ var endSegmentTable = stringToPrecomputedChunk('</table>');
2116
+ var startSegmentTableBody = stringToPrecomputedChunk('<table hidden><tbody id="');
2117
+ var startSegmentTableBody2 = stringToPrecomputedChunk('">');
2118
+ var endSegmentTableBody = stringToPrecomputedChunk('</tbody></table>');
2119
+ var startSegmentTableRow = stringToPrecomputedChunk('<table hidden><tr id="');
2120
+ var startSegmentTableRow2 = stringToPrecomputedChunk('">');
2121
+ var endSegmentTableRow = stringToPrecomputedChunk('</tr></table>');
2122
+ var startSegmentColGroup = stringToPrecomputedChunk('<table hidden><colgroup id="');
2123
+ var startSegmentColGroup2 = stringToPrecomputedChunk('">');
2124
+ var endSegmentColGroup = stringToPrecomputedChunk('</colgroup></table>');
2125
+ function writeStartSegment(destination, responseState, formatContext, id) {
2126
+ switch (formatContext.insertionMode) {
2127
+ case ROOT_HTML_MODE:
2128
+ case HTML_MODE:
2129
+ {
2130
+ writeChunk(destination, startSegmentHTML);
2131
+ writeChunk(destination, responseState.segmentPrefix);
2132
+ writeChunk(destination, stringToChunk(id.toString(16)));
2133
+ return writeChunkAndReturn(destination, startSegmentHTML2);
2134
+ }
2135
+ case SVG_MODE:
2136
+ {
2137
+ writeChunk(destination, startSegmentSVG);
2138
+ writeChunk(destination, responseState.segmentPrefix);
2139
+ writeChunk(destination, stringToChunk(id.toString(16)));
2140
+ return writeChunkAndReturn(destination, startSegmentSVG2);
2141
+ }
2142
+ case MATHML_MODE:
2143
+ {
2144
+ writeChunk(destination, startSegmentMathML);
2145
+ writeChunk(destination, responseState.segmentPrefix);
2146
+ writeChunk(destination, stringToChunk(id.toString(16)));
2147
+ return writeChunkAndReturn(destination, startSegmentMathML2);
2148
+ }
2149
+ case HTML_TABLE_MODE:
2150
+ {
2151
+ writeChunk(destination, startSegmentTable);
2152
+ writeChunk(destination, responseState.segmentPrefix);
2153
+ writeChunk(destination, stringToChunk(id.toString(16)));
2154
+ return writeChunkAndReturn(destination, startSegmentTable2);
2155
+ }
2156
+ case HTML_TABLE_BODY_MODE:
2157
+ {
2158
+ writeChunk(destination, startSegmentTableBody);
2159
+ writeChunk(destination, responseState.segmentPrefix);
2160
+ writeChunk(destination, stringToChunk(id.toString(16)));
2161
+ return writeChunkAndReturn(destination, startSegmentTableBody2);
2162
+ }
2163
+ case HTML_TABLE_ROW_MODE:
2164
+ {
2165
+ writeChunk(destination, startSegmentTableRow);
2166
+ writeChunk(destination, responseState.segmentPrefix);
2167
+ writeChunk(destination, stringToChunk(id.toString(16)));
2168
+ return writeChunkAndReturn(destination, startSegmentTableRow2);
2169
+ }
2170
+ case HTML_COLGROUP_MODE:
2171
+ {
2172
+ writeChunk(destination, startSegmentColGroup);
2173
+ writeChunk(destination, responseState.segmentPrefix);
2174
+ writeChunk(destination, stringToChunk(id.toString(16)));
2175
+ return writeChunkAndReturn(destination, startSegmentColGroup2);
2176
+ }
2177
+ default:
2178
+ {
2179
+ throw new Error('Unknown insertion mode. This is a bug in React.');
2180
+ }
2181
+ }
2182
+ }
2183
+ function writeEndSegment(destination, formatContext) {
2184
+ switch (formatContext.insertionMode) {
2185
+ case ROOT_HTML_MODE:
2186
+ case HTML_MODE:
2187
+ {
2188
+ return writeChunkAndReturn(destination, endSegmentHTML);
2189
+ }
2190
+ case SVG_MODE:
2191
+ {
2192
+ return writeChunkAndReturn(destination, endSegmentSVG);
2193
+ }
2194
+ case MATHML_MODE:
2195
+ {
2196
+ return writeChunkAndReturn(destination, endSegmentMathML);
2197
+ }
2198
+ case HTML_TABLE_MODE:
2199
+ {
2200
+ return writeChunkAndReturn(destination, endSegmentTable);
2201
+ }
2202
+ case HTML_TABLE_BODY_MODE:
2203
+ {
2204
+ return writeChunkAndReturn(destination, endSegmentTableBody);
2205
+ }
2206
+ case HTML_TABLE_ROW_MODE:
2207
+ {
2208
+ return writeChunkAndReturn(destination, endSegmentTableRow);
2209
+ }
2210
+ case HTML_COLGROUP_MODE:
2211
+ {
2212
+ return writeChunkAndReturn(destination, endSegmentColGroup);
2213
+ }
2214
+ default:
2215
+ {
2216
+ throw new Error('Unknown insertion mode. This is a bug in React.');
2217
+ }
2218
+ }
2219
+ }
2220
+ var completeSegmentFunction = 'function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}';
2221
+ var completeBoundaryFunction = 'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}';
2222
+ var clientRenderFunction = 'function $RX(a){if(a=document.getElementById(a))a=a.previousSibling,a.data="$!",a._reactRetry&&a._reactRetry()}';
2223
+ var completeSegmentScript1Full = stringToPrecomputedChunk(completeSegmentFunction + ';$RS("');
2224
+ var completeSegmentScript1Partial = stringToPrecomputedChunk('$RS("');
2225
+ var completeSegmentScript2 = stringToPrecomputedChunk('","');
2226
+ var completeSegmentScript3 = stringToPrecomputedChunk('")</script>');
2227
+ function writeCompletedSegmentInstruction(destination, responseState, contentSegmentID) {
2228
+ writeChunk(destination, responseState.startInlineScript);
2229
+ if (!responseState.sentCompleteSegmentFunction) {
2230
+ responseState.sentCompleteSegmentFunction = true;
2231
+ writeChunk(destination, completeSegmentScript1Full);
2232
+ } else {
2233
+ writeChunk(destination, completeSegmentScript1Partial);
2234
+ }
2235
+ writeChunk(destination, responseState.segmentPrefix);
2236
+ var formattedID = stringToChunk(contentSegmentID.toString(16));
2237
+ writeChunk(destination, formattedID);
2238
+ writeChunk(destination, completeSegmentScript2);
2239
+ writeChunk(destination, responseState.placeholderPrefix);
2240
+ writeChunk(destination, formattedID);
2241
+ return writeChunkAndReturn(destination, completeSegmentScript3);
2242
+ }
2243
+ var completeBoundaryScript1Full = stringToPrecomputedChunk(completeBoundaryFunction + ';$RC("');
2244
+ var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("');
2245
+ var completeBoundaryScript2 = stringToPrecomputedChunk('","');
2246
+ var completeBoundaryScript3 = stringToPrecomputedChunk('")</script>');
2247
+ function writeCompletedBoundaryInstruction(destination, responseState, boundaryID, contentSegmentID) {
2248
+ writeChunk(destination, responseState.startInlineScript);
2249
+ if (!responseState.sentCompleteBoundaryFunction) {
2250
+ responseState.sentCompleteBoundaryFunction = true;
2251
+ writeChunk(destination, completeBoundaryScript1Full);
2252
+ } else {
2253
+ writeChunk(destination, completeBoundaryScript1Partial);
2254
+ }
2255
+ if (boundaryID === null) {
2256
+ throw new Error('An ID must have been assigned before we can complete the boundary.');
2257
+ }
2258
+ var formattedContentID = stringToChunk(contentSegmentID.toString(16));
2259
+ writeChunk(destination, boundaryID);
2260
+ writeChunk(destination, completeBoundaryScript2);
2261
+ writeChunk(destination, responseState.segmentPrefix);
2262
+ writeChunk(destination, formattedContentID);
2263
+ return writeChunkAndReturn(destination, completeBoundaryScript3);
2264
+ }
2265
+ var clientRenderScript1Full = stringToPrecomputedChunk(clientRenderFunction + ';$RX("');
2266
+ var clientRenderScript1Partial = stringToPrecomputedChunk('$RX("');
2267
+ var clientRenderScript2 = stringToPrecomputedChunk('")</script>');
2268
+ function writeClientRenderBoundaryInstruction(destination, responseState, boundaryID) {
2269
+ writeChunk(destination, responseState.startInlineScript);
2270
+ if (!responseState.sentClientRenderFunction) {
2271
+ responseState.sentClientRenderFunction = true;
2272
+ writeChunk(destination, clientRenderScript1Full);
2273
+ } else {
2274
+ writeChunk(destination, clientRenderScript1Partial);
2275
+ }
2276
+ if (boundaryID === null) {
2277
+ throw new Error('An ID must have been assigned before we can complete the boundary.');
2278
+ }
2279
+ writeChunk(destination, boundaryID);
2280
+ return writeChunkAndReturn(destination, clientRenderScript2);
2281
+ }
2282
+ function createResponseState$1(generateStaticMarkup, identifierPrefix) {
2283
+ var responseState = createResponseState(identifierPrefix, undefined);
2284
+ return {
2285
+ bootstrapChunks: responseState.bootstrapChunks,
2286
+ startInlineScript: responseState.startInlineScript,
2287
+ placeholderPrefix: responseState.placeholderPrefix,
2288
+ segmentPrefix: responseState.segmentPrefix,
2289
+ boundaryPrefix: responseState.boundaryPrefix,
2290
+ idPrefix: responseState.idPrefix,
2291
+ nextSuspenseID: responseState.nextSuspenseID,
2292
+ sentCompleteSegmentFunction: responseState.sentCompleteSegmentFunction,
2293
+ sentCompleteBoundaryFunction: responseState.sentCompleteBoundaryFunction,
2294
+ sentClientRenderFunction: responseState.sentClientRenderFunction,
2295
+ generateStaticMarkup: generateStaticMarkup
2296
+ };
2297
+ }
2298
+ function createRootFormatContext() {
2299
+ return {
2300
+ insertionMode: HTML_MODE,
2301
+ selectedValue: null
2302
+ };
2303
+ }
2304
+ function pushTextInstance$1(target, text, responseState) {
2305
+ if (responseState.generateStaticMarkup) {
2306
+ target.push(stringToChunk(escapeTextForBrowser(text)));
2307
+ } else {
2308
+ pushTextInstance(target, text);
2309
+ }
2310
+ }
2311
+ function writeStartCompletedSuspenseBoundary$1(destination, responseState) {
2312
+ if (responseState.generateStaticMarkup) {
2313
+ return true;
2314
+ }
2315
+ return writeStartCompletedSuspenseBoundary(destination);
2316
+ }
2317
+ function writeStartClientRenderedSuspenseBoundary$1(destination, responseState) {
2318
+ if (responseState.generateStaticMarkup) {
2319
+ return true;
2320
+ }
2321
+ return writeStartClientRenderedSuspenseBoundary(destination);
2322
+ }
2323
+ function writeEndCompletedSuspenseBoundary$1(destination, responseState) {
2324
+ if (responseState.generateStaticMarkup) {
2325
+ return true;
2326
+ }
2327
+ return writeEndCompletedSuspenseBoundary(destination);
2328
+ }
2329
+ function writeEndClientRenderedSuspenseBoundary$1(destination, responseState) {
2330
+ if (responseState.generateStaticMarkup) {
2331
+ return true;
2332
+ }
2333
+ return writeEndClientRenderedSuspenseBoundary(destination);
2334
+ }
2335
+ var assign = Object.assign;
2336
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
2337
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
2338
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
2339
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
2340
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
2341
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
2342
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
2343
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
2344
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
2345
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
2346
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
2347
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
2348
+ var REACT_SCOPE_TYPE = Symbol.for('react.scope');
2349
+ var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode');
2350
+ var REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden');
2351
+ var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
2352
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2353
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
2354
+ function getIteratorFn(maybeIterable) {
2355
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
2356
+ return null;
2357
+ }
2358
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2359
+ if (typeof maybeIterator === 'function') {
2360
+ return maybeIterator;
2361
+ }
2362
+ return null;
2363
+ }
2364
+ function getWrappedName(outerType, innerType, wrapperName) {
2365
+ var displayName = outerType.displayName;
2366
+ if (displayName) {
2367
+ return displayName;
2368
+ }
2369
+ var functionName = innerType.displayName || innerType.name || '';
2370
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
2371
+ }
2372
+ function getContextName(type) {
2373
+ return type.displayName || 'Context';
2374
+ }
2375
+ function getComponentNameFromType(type) {
2376
+ if (type == null) {
2377
+ return null;
2378
+ }
2379
+ {
2380
+ if (typeof type.tag === 'number') {
2381
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
2382
+ }
2383
+ }
2384
+ if (typeof type === 'function') {
2385
+ return type.displayName || type.name || null;
2386
+ }
2387
+ if (typeof type === 'string') {
2388
+ return type;
2389
+ }
2390
+ switch (type) {
2391
+ case REACT_FRAGMENT_TYPE:
2392
+ return 'Fragment';
2393
+ case REACT_PORTAL_TYPE:
2394
+ return 'Portal';
2395
+ case REACT_PROFILER_TYPE:
2396
+ return 'Profiler';
2397
+ case REACT_STRICT_MODE_TYPE:
2398
+ return 'StrictMode';
2399
+ case REACT_SUSPENSE_TYPE:
2400
+ return 'Suspense';
2401
+ case REACT_SUSPENSE_LIST_TYPE:
2402
+ return 'SuspenseList';
2403
+ }
2404
+ if (typeof type === 'object') {
2405
+ switch (type.$$typeof) {
2406
+ case REACT_CONTEXT_TYPE:
2407
+ var context = type;
2408
+ return getContextName(context) + '.Consumer';
2409
+ case REACT_PROVIDER_TYPE:
2410
+ var provider = type;
2411
+ return getContextName(provider._context) + '.Provider';
2412
+ case REACT_FORWARD_REF_TYPE:
2413
+ return getWrappedName(type, type.render, 'ForwardRef');
2414
+ case REACT_MEMO_TYPE:
2415
+ var outerName = type.displayName || null;
2416
+ if (outerName !== null) {
2417
+ return outerName;
2418
+ }
2419
+ return getComponentNameFromType(type.type) || 'Memo';
2420
+ case REACT_LAZY_TYPE:
2421
+ {
2422
+ var lazyComponent = type;
2423
+ var payload = lazyComponent._payload;
2424
+ var init = lazyComponent._init;
2425
+ try {
2426
+ return getComponentNameFromType(init(payload));
2427
+ } catch (x) {
2428
+ return null;
2429
+ }
2430
+ }
2431
+ }
2432
+ }
2433
+ return null;
2434
+ }
2435
+ var disabledDepth = 0;
2436
+ var prevLog;
2437
+ var prevInfo;
2438
+ var prevWarn;
2439
+ var prevError;
2440
+ var prevGroup;
2441
+ var prevGroupCollapsed;
2442
+ var prevGroupEnd;
2443
+ function disabledLog() {}
2444
+ disabledLog.__reactDisabledLog = true;
2445
+ function disableLogs() {
2446
+ {
2447
+ if (disabledDepth === 0) {
2448
+ prevLog = console.log;
2449
+ prevInfo = console.info;
2450
+ prevWarn = console.warn;
2451
+ prevError = console.error;
2452
+ prevGroup = console.group;
2453
+ prevGroupCollapsed = console.groupCollapsed;
2454
+ prevGroupEnd = console.groupEnd;
2455
+ var props = {
2456
+ configurable: true,
2457
+ enumerable: true,
2458
+ value: disabledLog,
2459
+ writable: true
2460
+ };
2461
+ Object.defineProperties(console, {
2462
+ info: props,
2463
+ log: props,
2464
+ warn: props,
2465
+ error: props,
2466
+ group: props,
2467
+ groupCollapsed: props,
2468
+ groupEnd: props
2469
+ });
2470
+ }
2471
+ disabledDepth++;
2472
+ }
2473
+ }
2474
+ function reenableLogs() {
2475
+ {
2476
+ disabledDepth--;
2477
+ if (disabledDepth === 0) {
2478
+ var props = {
2479
+ configurable: true,
2480
+ enumerable: true,
2481
+ writable: true
2482
+ };
2483
+ Object.defineProperties(console, {
2484
+ log: assign({}, props, {value: prevLog}),
2485
+ info: assign({}, props, {value: prevInfo}),
2486
+ warn: assign({}, props, {value: prevWarn}),
2487
+ error: assign({}, props, {value: prevError}),
2488
+ group: assign({}, props, {value: prevGroup}),
2489
+ groupCollapsed: assign({}, props, {value: prevGroupCollapsed}),
2490
+ groupEnd: assign({}, props, {value: prevGroupEnd})
2491
+ });
2492
+ }
2493
+ if (disabledDepth < 0) {
2494
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
2495
+ }
2496
+ }
2497
+ }
2498
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2499
+ var prefix;
2500
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
2501
+ {
2502
+ if (prefix === undefined) {
2503
+ try {
2504
+ throw Error();
2505
+ } catch (x) {
2506
+ var match = x.stack.trim().match(/\n( *(at )?)/);
2507
+ prefix = match && match[1] || '';
2508
+ }
2509
+ }
2510
+ return '\n' + prefix + name;
2511
+ }
2512
+ }
2513
+ var reentry = false;
2514
+ var componentFrameCache;
2515
+ {
2516
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
2517
+ componentFrameCache = new PossiblyWeakMap();
2518
+ }
2519
+ function describeNativeComponentFrame(fn, construct) {
2520
+ if (!fn || reentry) {
2521
+ return '';
2522
+ }
2523
+ {
2524
+ var frame = componentFrameCache.get(fn);
2525
+ if (frame !== undefined) {
2526
+ return frame;
2527
+ }
2528
+ }
2529
+ var control;
2530
+ reentry = true;
2531
+ var previousPrepareStackTrace = Error.prepareStackTrace;
2532
+ Error.prepareStackTrace = undefined;
2533
+ var previousDispatcher;
2534
+ {
2535
+ previousDispatcher = ReactCurrentDispatcher.current;
2536
+ ReactCurrentDispatcher.current = null;
2537
+ disableLogs();
2538
+ }
2539
+ try {
2540
+ if (construct) {
2541
+ var Fake = function() {
2542
+ throw Error();
2543
+ };
2544
+ Object.defineProperty(Fake.prototype, 'props', {set: function() {
2545
+ throw Error();
2546
+ }});
2547
+ if (typeof Reflect === 'object' && Reflect.construct) {
2548
+ try {
2549
+ Reflect.construct(Fake, []);
2550
+ } catch (x) {
2551
+ control = x;
2552
+ }
2553
+ Reflect.construct(fn, [], Fake);
2554
+ } else {
2555
+ try {
2556
+ Fake.call();
2557
+ } catch (x) {
2558
+ control = x;
2559
+ }
2560
+ fn.call(Fake.prototype);
2561
+ }
2562
+ } else {
2563
+ try {
2564
+ throw Error();
2565
+ } catch (x) {
2566
+ control = x;
2567
+ }
2568
+ fn();
2569
+ }
2570
+ } catch (sample) {
2571
+ if (sample && control && typeof sample.stack === 'string') {
2572
+ var sampleLines = sample.stack.split('\n');
2573
+ var controlLines = control.stack.split('\n');
2574
+ var s = sampleLines.length - 1;
2575
+ var c = controlLines.length - 1;
2576
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2577
+ c--;
2578
+ }
2579
+ for (; s >= 1 && c >= 0; s--, c--) {
2580
+ if (sampleLines[s] !== controlLines[c]) {
2581
+ if (s !== 1 || c !== 1) {
2582
+ do {
2583
+ s--;
2584
+ c--;
2585
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
2586
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
2587
+ if (fn.displayName && _frame.includes('<anonymous>')) {
2588
+ _frame = _frame.replace('<anonymous>', fn.displayName);
2589
+ }
2590
+ {
2591
+ if (typeof fn === 'function') {
2592
+ componentFrameCache.set(fn, _frame);
2593
+ }
2594
+ }
2595
+ return _frame;
2596
+ }
2597
+ } while (s >= 1 && c >= 0);
2598
+ }
2599
+ break;
2600
+ }
2601
+ }
2602
+ }
2603
+ } finally {
2604
+ reentry = false;
2605
+ {
2606
+ ReactCurrentDispatcher.current = previousDispatcher;
2607
+ reenableLogs();
2608
+ }
2609
+ Error.prepareStackTrace = previousPrepareStackTrace;
2610
+ }
2611
+ var name = fn ? fn.displayName || fn.name : '';
2612
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
2613
+ {
2614
+ if (typeof fn === 'function') {
2615
+ componentFrameCache.set(fn, syntheticFrame);
2616
+ }
2617
+ }
2618
+ return syntheticFrame;
2619
+ }
2620
+ function describeClassComponentFrame(ctor, source, ownerFn) {
2621
+ {
2622
+ return describeNativeComponentFrame(ctor, true);
2623
+ }
2624
+ }
2625
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
2626
+ {
2627
+ return describeNativeComponentFrame(fn, false);
2628
+ }
2629
+ }
2630
+ function shouldConstruct(Component) {
2631
+ var prototype = Component.prototype;
2632
+ return !!(prototype && prototype.isReactComponent);
2633
+ }
2634
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2635
+ if (type == null) {
2636
+ return '';
2637
+ }
2638
+ if (typeof type === 'function') {
2639
+ {
2640
+ return describeNativeComponentFrame(type, shouldConstruct(type));
2641
+ }
2642
+ }
2643
+ if (typeof type === 'string') {
2644
+ return describeBuiltInComponentFrame(type);
2645
+ }
2646
+ switch (type) {
2647
+ case REACT_SUSPENSE_TYPE:
2648
+ return describeBuiltInComponentFrame('Suspense');
2649
+ case REACT_SUSPENSE_LIST_TYPE:
2650
+ return describeBuiltInComponentFrame('SuspenseList');
2651
+ }
2652
+ if (typeof type === 'object') {
2653
+ switch (type.$$typeof) {
2654
+ case REACT_FORWARD_REF_TYPE:
2655
+ return describeFunctionComponentFrame(type.render);
2656
+ case REACT_MEMO_TYPE:
2657
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2658
+ case REACT_LAZY_TYPE:
2659
+ {
2660
+ var lazyComponent = type;
2661
+ var payload = lazyComponent._payload;
2662
+ var init = lazyComponent._init;
2663
+ try {
2664
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2665
+ } catch (x) {}
2666
+ }
2667
+ }
2668
+ }
2669
+ return '';
2670
+ }
2671
+ var loggedTypeFailures = {};
2672
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2673
+ function setCurrentlyValidatingElement(element) {
2674
+ {
2675
+ if (element) {
2676
+ var owner = element._owner;
2677
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2678
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
2679
+ } else {
2680
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
2681
+ }
2682
+ }
2683
+ }
2684
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
2685
+ {
2686
+ var has = Function.call.bind(hasOwnProperty);
2687
+ for (var typeSpecName in typeSpecs) {
2688
+ if (has(typeSpecs, typeSpecName)) {
2689
+ var error$1 = void 0;
2690
+ try {
2691
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
2692
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2693
+ err.name = 'Invariant Violation';
2694
+ throw err;
2695
+ }
2696
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2697
+ } catch (ex) {
2698
+ error$1 = ex;
2699
+ }
2700
+ if (error$1 && !(error$1 instanceof Error)) {
2701
+ setCurrentlyValidatingElement(element);
2702
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
2703
+ setCurrentlyValidatingElement(null);
2704
+ }
2705
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2706
+ loggedTypeFailures[error$1.message] = true;
2707
+ setCurrentlyValidatingElement(element);
2708
+ error('Failed %s type: %s', location, error$1.message);
2709
+ setCurrentlyValidatingElement(null);
2710
+ }
2711
+ }
2712
+ }
2713
+ }
2714
+ }
2715
+ var warnedAboutMissingGetChildContext;
2716
+ {
2717
+ warnedAboutMissingGetChildContext = {};
2718
+ }
2719
+ var emptyContextObject = {};
2720
+ {
2721
+ Object.freeze(emptyContextObject);
2722
+ }
2723
+ function getMaskedContext(type, unmaskedContext) {
2724
+ {
2725
+ var contextTypes = type.contextTypes;
2726
+ if (!contextTypes) {
2727
+ return emptyContextObject;
2728
+ }
2729
+ var context = {};
2730
+ for (var key in contextTypes) {
2731
+ context[key] = unmaskedContext[key];
2732
+ }
2733
+ {
2734
+ var name = getComponentNameFromType(type) || 'Unknown';
2735
+ checkPropTypes(contextTypes, context, 'context', name);
2736
+ }
2737
+ return context;
2738
+ }
2739
+ }
2740
+ function processChildContext(instance, type, parentContext, childContextTypes) {
2741
+ {
2742
+ if (typeof instance.getChildContext !== 'function') {
2743
+ {
2744
+ var componentName = getComponentNameFromType(type) || 'Unknown';
2745
+ if (!warnedAboutMissingGetChildContext[componentName]) {
2746
+ warnedAboutMissingGetChildContext[componentName] = true;
2747
+ error('%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
2748
+ }
2749
+ }
2750
+ return parentContext;
2751
+ }
2752
+ var childContext = instance.getChildContext();
2753
+ for (var contextKey in childContext) {
2754
+ if (!(contextKey in childContextTypes)) {
2755
+ throw new Error((getComponentNameFromType(type) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes.");
2756
+ }
2757
+ }
2758
+ {
2759
+ var name = getComponentNameFromType(type) || 'Unknown';
2760
+ checkPropTypes(childContextTypes, childContext, 'child context', name);
2761
+ }
2762
+ return assign({}, parentContext, childContext);
2763
+ }
2764
+ }
2765
+ var rendererSigil;
2766
+ {
2767
+ rendererSigil = {};
2768
+ }
2769
+ var rootContextSnapshot = null;
2770
+ var currentActiveSnapshot = null;
2771
+ function popNode(prev) {
2772
+ {
2773
+ prev.context._currentValue2 = prev.parentValue;
2774
+ }
2775
+ }
2776
+ function pushNode(next) {
2777
+ {
2778
+ next.context._currentValue2 = next.value;
2779
+ }
2780
+ }
2781
+ function popToNearestCommonAncestor(prev, next) {
2782
+ if (prev === next)
2783
+ ;
2784
+ else {
2785
+ popNode(prev);
2786
+ var parentPrev = prev.parent;
2787
+ var parentNext = next.parent;
2788
+ if (parentPrev === null) {
2789
+ if (parentNext !== null) {
2790
+ throw new Error('The stacks must reach the root at the same time. This is a bug in React.');
2791
+ }
2792
+ } else {
2793
+ if (parentNext === null) {
2794
+ throw new Error('The stacks must reach the root at the same time. This is a bug in React.');
2795
+ }
2796
+ popToNearestCommonAncestor(parentPrev, parentNext);
2797
+ }
2798
+ pushNode(next);
2799
+ }
2800
+ }
2801
+ function popAllPrevious(prev) {
2802
+ popNode(prev);
2803
+ var parentPrev = prev.parent;
2804
+ if (parentPrev !== null) {
2805
+ popAllPrevious(parentPrev);
2806
+ }
2807
+ }
2808
+ function pushAllNext(next) {
2809
+ var parentNext = next.parent;
2810
+ if (parentNext !== null) {
2811
+ pushAllNext(parentNext);
2812
+ }
2813
+ pushNode(next);
2814
+ }
2815
+ function popPreviousToCommonLevel(prev, next) {
2816
+ popNode(prev);
2817
+ var parentPrev = prev.parent;
2818
+ if (parentPrev === null) {
2819
+ throw new Error('The depth must equal at least at zero before reaching the root. This is a bug in React.');
2820
+ }
2821
+ if (parentPrev.depth === next.depth) {
2822
+ popToNearestCommonAncestor(parentPrev, next);
2823
+ } else {
2824
+ popPreviousToCommonLevel(parentPrev, next);
2825
+ }
2826
+ }
2827
+ function popNextToCommonLevel(prev, next) {
2828
+ var parentNext = next.parent;
2829
+ if (parentNext === null) {
2830
+ throw new Error('The depth must equal at least at zero before reaching the root. This is a bug in React.');
2831
+ }
2832
+ if (prev.depth === parentNext.depth) {
2833
+ popToNearestCommonAncestor(prev, parentNext);
2834
+ } else {
2835
+ popNextToCommonLevel(prev, parentNext);
2836
+ }
2837
+ pushNode(next);
2838
+ }
2839
+ function switchContext(newSnapshot) {
2840
+ var prev = currentActiveSnapshot;
2841
+ var next = newSnapshot;
2842
+ if (prev !== next) {
2843
+ if (prev === null) {
2844
+ pushAllNext(next);
2845
+ } else if (next === null) {
2846
+ popAllPrevious(prev);
2847
+ } else if (prev.depth === next.depth) {
2848
+ popToNearestCommonAncestor(prev, next);
2849
+ } else if (prev.depth > next.depth) {
2850
+ popPreviousToCommonLevel(prev, next);
2851
+ } else {
2852
+ popNextToCommonLevel(prev, next);
2853
+ }
2854
+ currentActiveSnapshot = next;
2855
+ }
2856
+ }
2857
+ function pushProvider(context, nextValue) {
2858
+ var prevValue;
2859
+ {
2860
+ prevValue = context._currentValue2;
2861
+ context._currentValue2 = nextValue;
2862
+ {
2863
+ if (context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && context._currentRenderer2 !== rendererSigil) {
2864
+ error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
2865
+ }
2866
+ context._currentRenderer2 = rendererSigil;
2867
+ }
2868
+ }
2869
+ var prevNode = currentActiveSnapshot;
2870
+ var newNode = {
2871
+ parent: prevNode,
2872
+ depth: prevNode === null ? 0 : prevNode.depth + 1,
2873
+ context: context,
2874
+ parentValue: prevValue,
2875
+ value: nextValue
2876
+ };
2877
+ currentActiveSnapshot = newNode;
2878
+ return newNode;
2879
+ }
2880
+ function popProvider(context) {
2881
+ var prevSnapshot = currentActiveSnapshot;
2882
+ if (prevSnapshot === null) {
2883
+ throw new Error('Tried to pop a Context at the root of the app. This is a bug in React.');
2884
+ }
2885
+ {
2886
+ if (prevSnapshot.context !== context) {
2887
+ error('The parent context is not the expected context. This is probably a bug in React.');
2888
+ }
2889
+ }
2890
+ {
2891
+ var _value = prevSnapshot.parentValue;
2892
+ if (_value === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) {
2893
+ prevSnapshot.context._currentValue2 = prevSnapshot.context._defaultValue;
2894
+ } else {
2895
+ prevSnapshot.context._currentValue2 = _value;
2896
+ }
2897
+ {
2898
+ if (context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && context._currentRenderer2 !== rendererSigil) {
2899
+ error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
2900
+ }
2901
+ context._currentRenderer2 = rendererSigil;
2902
+ }
2903
+ }
2904
+ return currentActiveSnapshot = prevSnapshot.parent;
2905
+ }
2906
+ function getActiveContext() {
2907
+ return currentActiveSnapshot;
2908
+ }
2909
+ function readContext(context) {
2910
+ var value = context._currentValue2;
2911
+ return value;
2912
+ }
2913
+ function get(key) {
2914
+ return key._reactInternals;
2915
+ }
2916
+ function set(key, value) {
2917
+ key._reactInternals = value;
2918
+ }
2919
+ var didWarnAboutNoopUpdateForComponent = {};
2920
+ var didWarnAboutDeprecatedWillMount = {};
2921
+ var didWarnAboutUninitializedState;
2922
+ var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
2923
+ var didWarnAboutLegacyLifecyclesAndDerivedState;
2924
+ var didWarnAboutUndefinedDerivedState;
2925
+ var warnOnUndefinedDerivedState;
2926
+ var warnOnInvalidCallback;
2927
+ var didWarnAboutDirectlyAssigningPropsToState;
2928
+ var didWarnAboutContextTypeAndContextTypes;
2929
+ var didWarnAboutInvalidateContextType;
2930
+ {
2931
+ didWarnAboutUninitializedState = new Set();
2932
+ didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
2933
+ didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
2934
+ didWarnAboutDirectlyAssigningPropsToState = new Set();
2935
+ didWarnAboutUndefinedDerivedState = new Set();
2936
+ didWarnAboutContextTypeAndContextTypes = new Set();
2937
+ didWarnAboutInvalidateContextType = new Set();
2938
+ var didWarnOnInvalidCallback = new Set();
2939
+ warnOnInvalidCallback = function(callback, callerName) {
2940
+ if (callback === null || typeof callback === 'function') {
2941
+ return;
2942
+ }
2943
+ var key = callerName + '_' + callback;
2944
+ if (!didWarnOnInvalidCallback.has(key)) {
2945
+ didWarnOnInvalidCallback.add(key);
2946
+ error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
2947
+ }
2948
+ };
2949
+ warnOnUndefinedDerivedState = function(type, partialState) {
2950
+ if (partialState === undefined) {
2951
+ var componentName = getComponentNameFromType(type) || 'Component';
2952
+ if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
2953
+ didWarnAboutUndefinedDerivedState.add(componentName);
2954
+ error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
2955
+ }
2956
+ }
2957
+ };
2958
+ }
2959
+ function warnNoop(publicInstance, callerName) {
2960
+ {
2961
+ var _constructor = publicInstance.constructor;
2962
+ var componentName = _constructor && getComponentNameFromType(_constructor) || 'ReactClass';
2963
+ var warningKey = componentName + '.' + callerName;
2964
+ if (didWarnAboutNoopUpdateForComponent[warningKey]) {
2965
+ return;
2966
+ }
2967
+ error('%s(...): Can only update a mounting component. ' + 'This usually means you called %s() outside componentWillMount() on the server. ' + 'This is a no-op.\n\nPlease check the code for the %s component.', callerName, callerName, componentName);
2968
+ didWarnAboutNoopUpdateForComponent[warningKey] = true;
2969
+ }
2970
+ }
2971
+ var classComponentUpdater = {
2972
+ isMounted: function(inst) {
2973
+ return false;
2974
+ },
2975
+ enqueueSetState: function(inst, payload, callback) {
2976
+ var internals = get(inst);
2977
+ if (internals.queue === null) {
2978
+ warnNoop(inst, 'setState');
2979
+ } else {
2980
+ internals.queue.push(payload);
2981
+ {
2982
+ if (callback !== undefined && callback !== null) {
2983
+ warnOnInvalidCallback(callback, 'setState');
2984
+ }
2985
+ }
2986
+ }
2987
+ },
2988
+ enqueueReplaceState: function(inst, payload, callback) {
2989
+ var internals = get(inst);
2990
+ internals.replace = true;
2991
+ internals.queue = [payload];
2992
+ {
2993
+ if (callback !== undefined && callback !== null) {
2994
+ warnOnInvalidCallback(callback, 'setState');
2995
+ }
2996
+ }
2997
+ },
2998
+ enqueueForceUpdate: function(inst, callback) {
2999
+ var internals = get(inst);
3000
+ if (internals.queue === null) {
3001
+ warnNoop(inst, 'forceUpdate');
3002
+ } else {
3003
+ {
3004
+ if (callback !== undefined && callback !== null) {
3005
+ warnOnInvalidCallback(callback, 'setState');
3006
+ }
3007
+ }
3008
+ }
3009
+ }
3010
+ };
3011
+ function applyDerivedStateFromProps(instance, ctor, getDerivedStateFromProps, prevState, nextProps) {
3012
+ var partialState = getDerivedStateFromProps(nextProps, prevState);
3013
+ {
3014
+ warnOnUndefinedDerivedState(ctor, partialState);
3015
+ }
3016
+ var newState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState);
3017
+ return newState;
3018
+ }
3019
+ function constructClassInstance(ctor, props, maskedLegacyContext) {
3020
+ var context = emptyContextObject;
3021
+ var contextType = ctor.contextType;
3022
+ {
3023
+ if ('contextType' in ctor) {
3024
+ var isValid = contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined;
3025
+ if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
3026
+ didWarnAboutInvalidateContextType.add(ctor);
3027
+ var addendum = '';
3028
+ if (contextType === undefined) {
3029
+ addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';
3030
+ } else if (typeof contextType !== 'object') {
3031
+ addendum = ' However, it is set to a ' + typeof contextType + '.';
3032
+ } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
3033
+ addendum = ' Did you accidentally pass the Context.Provider instead?';
3034
+ } else if (contextType._context !== undefined) {
3035
+ addendum = ' Did you accidentally pass the Context.Consumer instead?';
3036
+ } else {
3037
+ addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
3038
+ }
3039
+ error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentNameFromType(ctor) || 'Component', addendum);
3040
+ }
3041
+ }
3042
+ }
3043
+ if (typeof contextType === 'object' && contextType !== null) {
3044
+ context = readContext(contextType);
3045
+ } else {
3046
+ context = maskedLegacyContext;
3047
+ }
3048
+ var instance = new ctor(props, context);
3049
+ {
3050
+ if (typeof ctor.getDerivedStateFromProps === 'function' && (instance.state === null || instance.state === undefined)) {
3051
+ var componentName = getComponentNameFromType(ctor) || 'Component';
3052
+ if (!didWarnAboutUninitializedState.has(componentName)) {
3053
+ didWarnAboutUninitializedState.add(componentName);
3054
+ error('`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
3055
+ }
3056
+ }
3057
+ if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
3058
+ var foundWillMountName = null;
3059
+ var foundWillReceivePropsName = null;
3060
+ var foundWillUpdateName = null;
3061
+ if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
3062
+ foundWillMountName = 'componentWillMount';
3063
+ } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
3064
+ foundWillMountName = 'UNSAFE_componentWillMount';
3065
+ }
3066
+ if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
3067
+ foundWillReceivePropsName = 'componentWillReceiveProps';
3068
+ } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
3069
+ foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
3070
+ }
3071
+ if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
3072
+ foundWillUpdateName = 'componentWillUpdate';
3073
+ } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
3074
+ foundWillUpdateName = 'UNSAFE_componentWillUpdate';
3075
+ }
3076
+ if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
3077
+ var _componentName = getComponentNameFromType(ctor) || 'Component';
3078
+ var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
3079
+ if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
3080
+ didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
3081
+ error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://reactjs.org/link/unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : '', foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : '', foundWillUpdateName !== null ? "\n " + foundWillUpdateName : '');
3082
+ }
3083
+ }
3084
+ }
3085
+ }
3086
+ return instance;
3087
+ }
3088
+ function checkClassInstance(instance, ctor, newProps) {
3089
+ {
3090
+ var name = getComponentNameFromType(ctor) || 'Component';
3091
+ var renderPresent = instance.render;
3092
+ if (!renderPresent) {
3093
+ if (ctor.prototype && typeof ctor.prototype.render === 'function') {
3094
+ error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
3095
+ } else {
3096
+ error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
3097
+ }
3098
+ }
3099
+ if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
3100
+ error('getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
3101
+ }
3102
+ if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
3103
+ error('getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
3104
+ }
3105
+ if (instance.propTypes) {
3106
+ error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
3107
+ }
3108
+ if (instance.contextType) {
3109
+ error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
3110
+ }
3111
+ {
3112
+ if (instance.contextTypes) {
3113
+ error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
3114
+ }
3115
+ if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
3116
+ didWarnAboutContextTypeAndContextTypes.add(ctor);
3117
+ error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
3118
+ }
3119
+ }
3120
+ if (typeof instance.componentShouldUpdate === 'function') {
3121
+ error('%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
3122
+ }
3123
+ if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
3124
+ error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentNameFromType(ctor) || 'A pure component');
3125
+ }
3126
+ if (typeof instance.componentDidUnmount === 'function') {
3127
+ error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
3128
+ }
3129
+ if (typeof instance.componentDidReceiveProps === 'function') {
3130
+ error('%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name);
3131
+ }
3132
+ if (typeof instance.componentWillRecieveProps === 'function') {
3133
+ error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
3134
+ }
3135
+ if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
3136
+ error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
3137
+ }
3138
+ var hasMutatedProps = instance.props !== newProps;
3139
+ if (instance.props !== undefined && hasMutatedProps) {
3140
+ error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
3141
+ }
3142
+ if (instance.defaultProps) {
3143
+ error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
3144
+ }
3145
+ if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
3146
+ didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
3147
+ error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentNameFromType(ctor));
3148
+ }
3149
+ if (typeof instance.getDerivedStateFromProps === 'function') {
3150
+ error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
3151
+ }
3152
+ if (typeof instance.getDerivedStateFromError === 'function') {
3153
+ error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
3154
+ }
3155
+ if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
3156
+ error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
3157
+ }
3158
+ var _state = instance.state;
3159
+ if (_state && (typeof _state !== 'object' || isArray(_state))) {
3160
+ error('%s.state: must be set to an object or null', name);
3161
+ }
3162
+ if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
3163
+ error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
3164
+ }
3165
+ }
3166
+ }
3167
+ function callComponentWillMount(type, instance) {
3168
+ var oldState = instance.state;
3169
+ if (typeof instance.componentWillMount === 'function') {
3170
+ {
3171
+ if (instance.componentWillMount.__suppressDeprecationWarning !== true) {
3172
+ var componentName = getComponentNameFromType(type) || 'Unknown';
3173
+ if (!didWarnAboutDeprecatedWillMount[componentName]) {
3174
+ warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code from componentWillMount to componentDidMount (preferred in most cases) ' + 'or the constructor.\n' + '\nPlease update the following components: %s', componentName);
3175
+ didWarnAboutDeprecatedWillMount[componentName] = true;
3176
+ }
3177
+ }
3178
+ }
3179
+ instance.componentWillMount();
3180
+ }
3181
+ if (typeof instance.UNSAFE_componentWillMount === 'function') {
3182
+ instance.UNSAFE_componentWillMount();
3183
+ }
3184
+ if (oldState !== instance.state) {
3185
+ {
3186
+ error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentNameFromType(type) || 'Component');
3187
+ }
3188
+ classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
3189
+ }
3190
+ }
3191
+ function processUpdateQueue(internalInstance, inst, props, maskedLegacyContext) {
3192
+ if (internalInstance.queue !== null && internalInstance.queue.length > 0) {
3193
+ var oldQueue = internalInstance.queue;
3194
+ var oldReplace = internalInstance.replace;
3195
+ internalInstance.queue = null;
3196
+ internalInstance.replace = false;
3197
+ if (oldReplace && oldQueue.length === 1) {
3198
+ inst.state = oldQueue[0];
3199
+ } else {
3200
+ var nextState = oldReplace ? oldQueue[0] : inst.state;
3201
+ var dontMutate = true;
3202
+ for (var i = oldReplace ? 1 : 0; i < oldQueue.length; i++) {
3203
+ var partial = oldQueue[i];
3204
+ var partialState = typeof partial === 'function' ? partial.call(inst, nextState, props, maskedLegacyContext) : partial;
3205
+ if (partialState != null) {
3206
+ if (dontMutate) {
3207
+ dontMutate = false;
3208
+ nextState = assign({}, nextState, partialState);
3209
+ } else {
3210
+ assign(nextState, partialState);
3211
+ }
3212
+ }
3213
+ }
3214
+ inst.state = nextState;
3215
+ }
3216
+ } else {
3217
+ internalInstance.queue = null;
3218
+ }
3219
+ }
3220
+ function mountClassInstance(instance, ctor, newProps, maskedLegacyContext) {
3221
+ {
3222
+ checkClassInstance(instance, ctor, newProps);
3223
+ }
3224
+ var initialState = instance.state !== undefined ? instance.state : null;
3225
+ instance.updater = classComponentUpdater;
3226
+ instance.props = newProps;
3227
+ instance.state = initialState;
3228
+ var internalInstance = {
3229
+ queue: [],
3230
+ replace: false
3231
+ };
3232
+ set(instance, internalInstance);
3233
+ var contextType = ctor.contextType;
3234
+ if (typeof contextType === 'object' && contextType !== null) {
3235
+ instance.context = readContext(contextType);
3236
+ } else {
3237
+ instance.context = maskedLegacyContext;
3238
+ }
3239
+ {
3240
+ if (instance.state === newProps) {
3241
+ var componentName = getComponentNameFromType(ctor) || 'Component';
3242
+ if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
3243
+ didWarnAboutDirectlyAssigningPropsToState.add(componentName);
3244
+ error('%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
3245
+ }
3246
+ }
3247
+ }
3248
+ var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
3249
+ if (typeof getDerivedStateFromProps === 'function') {
3250
+ instance.state = applyDerivedStateFromProps(instance, ctor, getDerivedStateFromProps, initialState, newProps);
3251
+ }
3252
+ if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
3253
+ callComponentWillMount(ctor, instance);
3254
+ processUpdateQueue(internalInstance, instance, newProps, maskedLegacyContext);
3255
+ }
3256
+ }
3257
+ var emptyTreeContext = {
3258
+ id: 1,
3259
+ overflow: ''
3260
+ };
3261
+ function getTreeId(context) {
3262
+ var overflow = context.overflow;
3263
+ var idWithLeadingBit = context.id;
3264
+ var id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit);
3265
+ return id.toString(32) + overflow;
3266
+ }
3267
+ function pushTreeContext(baseContext, totalChildren, index) {
3268
+ var baseIdWithLeadingBit = baseContext.id;
3269
+ var baseOverflow = baseContext.overflow;
3270
+ var baseLength = getBitLength(baseIdWithLeadingBit) - 1;
3271
+ var baseId = baseIdWithLeadingBit & ~(1 << baseLength);
3272
+ var slot = index + 1;
3273
+ var length = getBitLength(totalChildren) + baseLength;
3274
+ if (length > 30) {
3275
+ var numberOfOverflowBits = baseLength - baseLength % 5;
3276
+ var newOverflowBits = (1 << numberOfOverflowBits) - 1;
3277
+ var newOverflow = (baseId & newOverflowBits).toString(32);
3278
+ var restOfBaseId = baseId >> numberOfOverflowBits;
3279
+ var restOfBaseLength = baseLength - numberOfOverflowBits;
3280
+ var restOfLength = getBitLength(totalChildren) + restOfBaseLength;
3281
+ var restOfNewBits = slot << restOfBaseLength;
3282
+ var id = restOfNewBits | restOfBaseId;
3283
+ var overflow = newOverflow + baseOverflow;
3284
+ return {
3285
+ id: 1 << restOfLength | id,
3286
+ overflow: overflow
3287
+ };
3288
+ } else {
3289
+ var newBits = slot << baseLength;
3290
+ var _id = newBits | baseId;
3291
+ var _overflow = baseOverflow;
3292
+ return {
3293
+ id: 1 << length | _id,
3294
+ overflow: _overflow
3295
+ };
3296
+ }
3297
+ }
3298
+ function getBitLength(number) {
3299
+ return 32 - clz32(number);
3300
+ }
3301
+ function getLeadingBit(id) {
3302
+ return 1 << getBitLength(id) - 1;
3303
+ }
3304
+ var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback;
3305
+ var log = Math.log;
3306
+ var LN2 = Math.LN2;
3307
+ function clz32Fallback(x) {
3308
+ var asUint = x >>> 0;
3309
+ if (asUint === 0) {
3310
+ return 32;
3311
+ }
3312
+ return 31 - (log(asUint) / LN2 | 0) | 0;
3313
+ }
3314
+ function is(x, y) {
3315
+ return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
3316
+ ;
3317
+ }
3318
+ var objectIs = typeof Object.is === 'function' ? Object.is : is;
3319
+ var currentlyRenderingComponent = null;
3320
+ var currentlyRenderingTask = null;
3321
+ var firstWorkInProgressHook = null;
3322
+ var workInProgressHook = null;
3323
+ var isReRender = false;
3324
+ var didScheduleRenderPhaseUpdate = false;
3325
+ var localIdCounter = 0;
3326
+ var renderPhaseUpdates = null;
3327
+ var numberOfReRenders = 0;
3328
+ var RE_RENDER_LIMIT = 25;
3329
+ var isInHookUserCodeInDev = false;
3330
+ var currentHookNameInDev;
3331
+ function resolveCurrentlyRenderingComponent() {
3332
+ if (currentlyRenderingComponent === null) {
3333
+ throw new Error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
3334
+ }
3335
+ {
3336
+ if (isInHookUserCodeInDev) {
3337
+ error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://reactjs.org/link/rules-of-hooks');
3338
+ }
3339
+ }
3340
+ return currentlyRenderingComponent;
3341
+ }
3342
+ function areHookInputsEqual(nextDeps, prevDeps) {
3343
+ if (prevDeps === null) {
3344
+ {
3345
+ error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
3346
+ }
3347
+ return false;
3348
+ }
3349
+ {
3350
+ if (nextDeps.length !== prevDeps.length) {
3351
+ error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, "[" + nextDeps.join(', ') + "]", "[" + prevDeps.join(', ') + "]");
3352
+ }
3353
+ }
3354
+ for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
3355
+ if (objectIs(nextDeps[i], prevDeps[i])) {
3356
+ continue;
3357
+ }
3358
+ return false;
3359
+ }
3360
+ return true;
3361
+ }
3362
+ function createHook() {
3363
+ if (numberOfReRenders > 0) {
3364
+ throw new Error('Rendered more hooks than during the previous render');
3365
+ }
3366
+ return {
3367
+ memoizedState: null,
3368
+ queue: null,
3369
+ next: null
3370
+ };
3371
+ }
3372
+ function createWorkInProgressHook() {
3373
+ if (workInProgressHook === null) {
3374
+ if (firstWorkInProgressHook === null) {
3375
+ isReRender = false;
3376
+ firstWorkInProgressHook = workInProgressHook = createHook();
3377
+ } else {
3378
+ isReRender = true;
3379
+ workInProgressHook = firstWorkInProgressHook;
3380
+ }
3381
+ } else {
3382
+ if (workInProgressHook.next === null) {
3383
+ isReRender = false;
3384
+ workInProgressHook = workInProgressHook.next = createHook();
3385
+ } else {
3386
+ isReRender = true;
3387
+ workInProgressHook = workInProgressHook.next;
3388
+ }
3389
+ }
3390
+ return workInProgressHook;
3391
+ }
3392
+ function prepareToUseHooks(task, componentIdentity) {
3393
+ currentlyRenderingComponent = componentIdentity;
3394
+ currentlyRenderingTask = task;
3395
+ {
3396
+ isInHookUserCodeInDev = false;
3397
+ }
3398
+ localIdCounter = 0;
3399
+ }
3400
+ function finishHooks(Component, props, children, refOrContext) {
3401
+ while (didScheduleRenderPhaseUpdate) {
3402
+ didScheduleRenderPhaseUpdate = false;
3403
+ localIdCounter = 0;
3404
+ numberOfReRenders += 1;
3405
+ workInProgressHook = null;
3406
+ children = Component(props, refOrContext);
3407
+ }
3408
+ resetHooksState();
3409
+ return children;
3410
+ }
3411
+ function checkDidRenderIdHook() {
3412
+ var didRenderIdHook = localIdCounter !== 0;
3413
+ return didRenderIdHook;
3414
+ }
3415
+ function resetHooksState() {
3416
+ {
3417
+ isInHookUserCodeInDev = false;
3418
+ }
3419
+ currentlyRenderingComponent = null;
3420
+ currentlyRenderingTask = null;
3421
+ didScheduleRenderPhaseUpdate = false;
3422
+ firstWorkInProgressHook = null;
3423
+ numberOfReRenders = 0;
3424
+ renderPhaseUpdates = null;
3425
+ workInProgressHook = null;
3426
+ }
3427
+ function readContext$1(context) {
3428
+ {
3429
+ if (isInHookUserCodeInDev) {
3430
+ error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
3431
+ }
3432
+ }
3433
+ return readContext(context);
3434
+ }
3435
+ function useContext(context) {
3436
+ {
3437
+ currentHookNameInDev = 'useContext';
3438
+ }
3439
+ resolveCurrentlyRenderingComponent();
3440
+ return readContext(context);
3441
+ }
3442
+ function basicStateReducer(state, action) {
3443
+ return typeof action === 'function' ? action(state) : action;
3444
+ }
3445
+ function useState(initialState) {
3446
+ {
3447
+ currentHookNameInDev = 'useState';
3448
+ }
3449
+ return useReducer(basicStateReducer, initialState);
3450
+ }
3451
+ function useReducer(reducer, initialArg, init) {
3452
+ {
3453
+ if (reducer !== basicStateReducer) {
3454
+ currentHookNameInDev = 'useReducer';
3455
+ }
3456
+ }
3457
+ currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3458
+ workInProgressHook = createWorkInProgressHook();
3459
+ if (isReRender) {
3460
+ var queue = workInProgressHook.queue;
3461
+ var dispatch = queue.dispatch;
3462
+ if (renderPhaseUpdates !== null) {
3463
+ var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
3464
+ if (firstRenderPhaseUpdate !== undefined) {
3465
+ renderPhaseUpdates.delete(queue);
3466
+ var newState = workInProgressHook.memoizedState;
3467
+ var update = firstRenderPhaseUpdate;
3468
+ do {
3469
+ var action = update.action;
3470
+ {
3471
+ isInHookUserCodeInDev = true;
3472
+ }
3473
+ newState = reducer(newState, action);
3474
+ {
3475
+ isInHookUserCodeInDev = false;
3476
+ }
3477
+ update = update.next;
3478
+ } while (update !== null);
3479
+ workInProgressHook.memoizedState = newState;
3480
+ return [newState, dispatch];
3481
+ }
3482
+ }
3483
+ return [workInProgressHook.memoizedState, dispatch];
3484
+ } else {
3485
+ {
3486
+ isInHookUserCodeInDev = true;
3487
+ }
3488
+ var initialState;
3489
+ if (reducer === basicStateReducer) {
3490
+ initialState = typeof initialArg === 'function' ? initialArg() : initialArg;
3491
+ } else {
3492
+ initialState = init !== undefined ? init(initialArg) : initialArg;
3493
+ }
3494
+ {
3495
+ isInHookUserCodeInDev = false;
3496
+ }
3497
+ workInProgressHook.memoizedState = initialState;
3498
+ var _queue = workInProgressHook.queue = {
3499
+ last: null,
3500
+ dispatch: null
3501
+ };
3502
+ var _dispatch = _queue.dispatch = dispatchAction.bind(null, currentlyRenderingComponent, _queue);
3503
+ return [workInProgressHook.memoizedState, _dispatch];
3504
+ }
3505
+ }
3506
+ function useMemo(nextCreate, deps) {
3507
+ currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3508
+ workInProgressHook = createWorkInProgressHook();
3509
+ var nextDeps = deps === undefined ? null : deps;
3510
+ if (workInProgressHook !== null) {
3511
+ var prevState = workInProgressHook.memoizedState;
3512
+ if (prevState !== null) {
3513
+ if (nextDeps !== null) {
3514
+ var prevDeps = prevState[1];
3515
+ if (areHookInputsEqual(nextDeps, prevDeps)) {
3516
+ return prevState[0];
3517
+ }
3518
+ }
3519
+ }
3520
+ }
3521
+ {
3522
+ isInHookUserCodeInDev = true;
3523
+ }
3524
+ var nextValue = nextCreate();
3525
+ {
3526
+ isInHookUserCodeInDev = false;
3527
+ }
3528
+ workInProgressHook.memoizedState = [nextValue, nextDeps];
3529
+ return nextValue;
3530
+ }
3531
+ function useRef(initialValue) {
3532
+ currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3533
+ workInProgressHook = createWorkInProgressHook();
3534
+ var previousRef = workInProgressHook.memoizedState;
3535
+ if (previousRef === null) {
3536
+ var ref = {current: initialValue};
3537
+ {
3538
+ Object.seal(ref);
3539
+ }
3540
+ workInProgressHook.memoizedState = ref;
3541
+ return ref;
3542
+ } else {
3543
+ return previousRef;
3544
+ }
3545
+ }
3546
+ function useLayoutEffect(create, inputs) {
3547
+ {
3548
+ currentHookNameInDev = 'useLayoutEffect';
3549
+ error('useLayoutEffect does nothing on the server, because its effect cannot ' + "be encoded into the server renderer's output format. This will lead " + 'to a mismatch between the initial, non-hydrated UI and the intended ' + 'UI. To avoid this, useLayoutEffect should only be used in ' + 'components that render exclusively on the client. ' + 'See https://reactjs.org/link/uselayouteffect-ssr for common fixes.');
3550
+ }
3551
+ }
3552
+ function dispatchAction(componentIdentity, queue, action) {
3553
+ if (numberOfReRenders >= RE_RENDER_LIMIT) {
3554
+ throw new Error('Too many re-renders. React limits the number of renders to prevent ' + 'an infinite loop.');
3555
+ }
3556
+ if (componentIdentity === currentlyRenderingComponent) {
3557
+ didScheduleRenderPhaseUpdate = true;
3558
+ var update = {
3559
+ action: action,
3560
+ next: null
3561
+ };
3562
+ if (renderPhaseUpdates === null) {
3563
+ renderPhaseUpdates = new Map();
3564
+ }
3565
+ var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
3566
+ if (firstRenderPhaseUpdate === undefined) {
3567
+ renderPhaseUpdates.set(queue, update);
3568
+ } else {
3569
+ var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
3570
+ while (lastRenderPhaseUpdate.next !== null) {
3571
+ lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
3572
+ }
3573
+ lastRenderPhaseUpdate.next = update;
3574
+ }
3575
+ }
3576
+ }
3577
+ function useCallback(callback, deps) {
3578
+ return useMemo(function() {
3579
+ return callback;
3580
+ }, deps);
3581
+ }
3582
+ function useMutableSource(source, getSnapshot, subscribe) {
3583
+ resolveCurrentlyRenderingComponent();
3584
+ return getSnapshot(source._source);
3585
+ }
3586
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
3587
+ if (getServerSnapshot === undefined) {
3588
+ throw new Error('Missing getServerSnapshot, which is required for ' + 'server-rendered content. Will revert to client rendering.');
3589
+ }
3590
+ return getServerSnapshot();
3591
+ }
3592
+ function useDeferredValue(value) {
3593
+ resolveCurrentlyRenderingComponent();
3594
+ return value;
3595
+ }
3596
+ function unsupportedStartTransition() {
3597
+ throw new Error('startTransition cannot be called during server rendering.');
3598
+ }
3599
+ function useTransition() {
3600
+ resolveCurrentlyRenderingComponent();
3601
+ return [false, unsupportedStartTransition];
3602
+ }
3603
+ function useId() {
3604
+ var task = currentlyRenderingTask;
3605
+ var treeId = getTreeId(task.treeContext);
3606
+ var responseState = currentResponseState;
3607
+ if (responseState === null) {
3608
+ throw new Error('Invalid hook call. Hooks can only be called inside of the body of a function component.');
3609
+ }
3610
+ var localId = localIdCounter++;
3611
+ return makeId(responseState, treeId, localId);
3612
+ }
3613
+ function noop() {}
3614
+ var Dispatcher = {
3615
+ readContext: readContext$1,
3616
+ useContext: useContext,
3617
+ useMemo: useMemo,
3618
+ useReducer: useReducer,
3619
+ useRef: useRef,
3620
+ useState: useState,
3621
+ useInsertionEffect: noop,
3622
+ useLayoutEffect: useLayoutEffect,
3623
+ useCallback: useCallback,
3624
+ useImperativeHandle: noop,
3625
+ useEffect: noop,
3626
+ useDebugValue: noop,
3627
+ useDeferredValue: useDeferredValue,
3628
+ useTransition: useTransition,
3629
+ useId: useId,
3630
+ useMutableSource: useMutableSource,
3631
+ useSyncExternalStore: useSyncExternalStore
3632
+ };
3633
+ var currentResponseState = null;
3634
+ function setCurrentResponseState(responseState) {
3635
+ currentResponseState = responseState;
3636
+ }
3637
+ function getStackByComponentStackNode(componentStack) {
3638
+ try {
3639
+ var info = '';
3640
+ var node = componentStack;
3641
+ do {
3642
+ switch (node.tag) {
3643
+ case 0:
3644
+ info += describeBuiltInComponentFrame(node.type, null, null);
3645
+ break;
3646
+ case 1:
3647
+ info += describeFunctionComponentFrame(node.type, null, null);
3648
+ break;
3649
+ case 2:
3650
+ info += describeClassComponentFrame(node.type, null, null);
3651
+ break;
3652
+ }
3653
+ node = node.parent;
3654
+ } while (node);
3655
+ return info;
3656
+ } catch (x) {
3657
+ return '\nError generating stack: ' + x.message + '\n' + x.stack;
3658
+ }
3659
+ }
3660
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
3661
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
3662
+ var PENDING = 0;
3663
+ var COMPLETED = 1;
3664
+ var FLUSHED = 2;
3665
+ var ABORTED = 3;
3666
+ var ERRORED = 4;
3667
+ var OPEN = 0;
3668
+ var CLOSING = 1;
3669
+ var CLOSED = 2;
3670
+ var DEFAULT_PROGRESSIVE_CHUNK_SIZE = 12800;
3671
+ function defaultErrorHandler(error) {
3672
+ console['error'](error);
3673
+ }
3674
+ function noop$1() {}
3675
+ function createRequest(children, responseState, rootFormatContext, progressiveChunkSize, onError, onAllReady, onShellReady, onShellError, onFatalError) {
3676
+ var pingedTasks = [];
3677
+ var abortSet = new Set();
3678
+ var request = {
3679
+ destination: null,
3680
+ responseState: responseState,
3681
+ progressiveChunkSize: progressiveChunkSize === undefined ? DEFAULT_PROGRESSIVE_CHUNK_SIZE : progressiveChunkSize,
3682
+ status: OPEN,
3683
+ fatalError: null,
3684
+ nextSegmentId: 0,
3685
+ allPendingTasks: 0,
3686
+ pendingRootTasks: 0,
3687
+ completedRootSegment: null,
3688
+ abortableTasks: abortSet,
3689
+ pingedTasks: pingedTasks,
3690
+ clientRenderedBoundaries: [],
3691
+ completedBoundaries: [],
3692
+ partialBoundaries: [],
3693
+ onError: onError === undefined ? defaultErrorHandler : onError,
3694
+ onAllReady: onAllReady === undefined ? noop$1 : onAllReady,
3695
+ onShellReady: onShellReady === undefined ? noop$1 : onShellReady,
3696
+ onShellError: onShellError === undefined ? noop$1 : onShellError,
3697
+ onFatalError: onFatalError === undefined ? noop$1 : onFatalError
3698
+ };
3699
+ var rootSegment = createPendingSegment(request, 0, null, rootFormatContext);
3700
+ rootSegment.parentFlushed = true;
3701
+ var rootTask = createTask(request, children, null, rootSegment, abortSet, emptyContextObject, rootContextSnapshot, emptyTreeContext);
3702
+ pingedTasks.push(rootTask);
3703
+ return request;
3704
+ }
3705
+ function pingTask(request, task) {
3706
+ var pingedTasks = request.pingedTasks;
3707
+ pingedTasks.push(task);
3708
+ if (pingedTasks.length === 1) {
3709
+ scheduleWork(function() {
3710
+ return performWork(request);
3711
+ });
3712
+ }
3713
+ }
3714
+ function createSuspenseBoundary(request, fallbackAbortableTasks) {
3715
+ return {
3716
+ id: UNINITIALIZED_SUSPENSE_BOUNDARY_ID,
3717
+ rootSegmentID: -1,
3718
+ parentFlushed: false,
3719
+ pendingTasks: 0,
3720
+ forceClientRender: false,
3721
+ completedSegments: [],
3722
+ byteSize: 0,
3723
+ fallbackAbortableTasks: fallbackAbortableTasks
3724
+ };
3725
+ }
3726
+ function createTask(request, node, blockedBoundary, blockedSegment, abortSet, legacyContext, context, treeContext) {
3727
+ request.allPendingTasks++;
3728
+ if (blockedBoundary === null) {
3729
+ request.pendingRootTasks++;
3730
+ } else {
3731
+ blockedBoundary.pendingTasks++;
3732
+ }
3733
+ var task = {
3734
+ node: node,
3735
+ ping: function() {
3736
+ return pingTask(request, task);
3737
+ },
3738
+ blockedBoundary: blockedBoundary,
3739
+ blockedSegment: blockedSegment,
3740
+ abortSet: abortSet,
3741
+ legacyContext: legacyContext,
3742
+ context: context,
3743
+ treeContext: treeContext
3744
+ };
3745
+ {
3746
+ task.componentStack = null;
3747
+ }
3748
+ abortSet.add(task);
3749
+ return task;
3750
+ }
3751
+ function createPendingSegment(request, index, boundary, formatContext) {
3752
+ return {
3753
+ status: PENDING,
3754
+ id: -1,
3755
+ index: index,
3756
+ parentFlushed: false,
3757
+ chunks: [],
3758
+ children: [],
3759
+ formatContext: formatContext,
3760
+ boundary: boundary
3761
+ };
3762
+ }
3763
+ var currentTaskInDEV = null;
3764
+ function getCurrentStackInDEV() {
3765
+ {
3766
+ if (currentTaskInDEV === null || currentTaskInDEV.componentStack === null) {
3767
+ return '';
3768
+ }
3769
+ return getStackByComponentStackNode(currentTaskInDEV.componentStack);
3770
+ }
3771
+ }
3772
+ function pushBuiltInComponentStackInDEV(task, type) {
3773
+ {
3774
+ task.componentStack = {
3775
+ tag: 0,
3776
+ parent: task.componentStack,
3777
+ type: type
3778
+ };
3779
+ }
3780
+ }
3781
+ function pushFunctionComponentStackInDEV(task, type) {
3782
+ {
3783
+ task.componentStack = {
3784
+ tag: 1,
3785
+ parent: task.componentStack,
3786
+ type: type
3787
+ };
3788
+ }
3789
+ }
3790
+ function pushClassComponentStackInDEV(task, type) {
3791
+ {
3792
+ task.componentStack = {
3793
+ tag: 2,
3794
+ parent: task.componentStack,
3795
+ type: type
3796
+ };
3797
+ }
3798
+ }
3799
+ function popComponentStackInDEV(task) {
3800
+ {
3801
+ if (task.componentStack === null) {
3802
+ error('Unexpectedly popped too many stack frames. This is a bug in React.');
3803
+ } else {
3804
+ task.componentStack = task.componentStack.parent;
3805
+ }
3806
+ }
3807
+ }
3808
+ function logRecoverableError(request, error) {
3809
+ var onError = request.onError;
3810
+ onError(error);
3811
+ }
3812
+ function fatalError(request, error) {
3813
+ var onShellError = request.onShellError;
3814
+ onShellError(error);
3815
+ var onFatalError = request.onFatalError;
3816
+ onFatalError(error);
3817
+ if (request.destination !== null) {
3818
+ request.status = CLOSED;
3819
+ closeWithError(request.destination, error);
3820
+ } else {
3821
+ request.status = CLOSING;
3822
+ request.fatalError = error;
3823
+ }
3824
+ }
3825
+ function renderSuspenseBoundary(request, task, props) {
3826
+ pushBuiltInComponentStackInDEV(task, 'Suspense');
3827
+ var parentBoundary = task.blockedBoundary;
3828
+ var parentSegment = task.blockedSegment;
3829
+ var fallback = props.fallback;
3830
+ var content = props.children;
3831
+ var fallbackAbortSet = new Set();
3832
+ var newBoundary = createSuspenseBoundary(request, fallbackAbortSet);
3833
+ var insertionIndex = parentSegment.chunks.length;
3834
+ var boundarySegment = createPendingSegment(request, insertionIndex, newBoundary, parentSegment.formatContext);
3835
+ parentSegment.children.push(boundarySegment);
3836
+ var contentRootSegment = createPendingSegment(request, 0, null, parentSegment.formatContext);
3837
+ contentRootSegment.parentFlushed = true;
3838
+ task.blockedBoundary = newBoundary;
3839
+ task.blockedSegment = contentRootSegment;
3840
+ try {
3841
+ renderNode(request, task, content);
3842
+ contentRootSegment.status = COMPLETED;
3843
+ queueCompletedSegment(newBoundary, contentRootSegment);
3844
+ if (newBoundary.pendingTasks === 0) {
3845
+ popComponentStackInDEV(task);
3846
+ return;
3847
+ }
3848
+ } catch (error) {
3849
+ contentRootSegment.status = ERRORED;
3850
+ logRecoverableError(request, error);
3851
+ newBoundary.forceClientRender = true;
3852
+ } finally {
3853
+ task.blockedBoundary = parentBoundary;
3854
+ task.blockedSegment = parentSegment;
3855
+ }
3856
+ var suspendedFallbackTask = createTask(request, fallback, parentBoundary, boundarySegment, fallbackAbortSet, task.legacyContext, task.context, task.treeContext);
3857
+ {
3858
+ suspendedFallbackTask.componentStack = task.componentStack;
3859
+ }
3860
+ request.pingedTasks.push(suspendedFallbackTask);
3861
+ popComponentStackInDEV(task);
3862
+ }
3863
+ function renderHostElement(request, task, type, props) {
3864
+ pushBuiltInComponentStackInDEV(task, type);
3865
+ var segment = task.blockedSegment;
3866
+ var children = pushStartInstance(segment.chunks, type, props, request.responseState, segment.formatContext);
3867
+ var prevContext = segment.formatContext;
3868
+ segment.formatContext = getChildFormatContext(prevContext, type, props);
3869
+ renderNode(request, task, children);
3870
+ segment.formatContext = prevContext;
3871
+ pushEndInstance(segment.chunks, type);
3872
+ popComponentStackInDEV(task);
3873
+ }
3874
+ function shouldConstruct$1(Component) {
3875
+ return Component.prototype && Component.prototype.isReactComponent;
3876
+ }
3877
+ function renderWithHooks(request, task, Component, props, secondArg) {
3878
+ var componentIdentity = {};
3879
+ prepareToUseHooks(task, componentIdentity);
3880
+ var result = Component(props, secondArg);
3881
+ return finishHooks(Component, props, result, secondArg);
3882
+ }
3883
+ function finishClassComponent(request, task, instance, Component, props) {
3884
+ var nextChildren = instance.render();
3885
+ {
3886
+ if (instance.props !== props) {
3887
+ if (!didWarnAboutReassigningProps) {
3888
+ error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentNameFromType(Component) || 'a component');
3889
+ }
3890
+ didWarnAboutReassigningProps = true;
3891
+ }
3892
+ }
3893
+ {
3894
+ var childContextTypes = Component.childContextTypes;
3895
+ if (childContextTypes !== null && childContextTypes !== undefined) {
3896
+ var previousContext = task.legacyContext;
3897
+ var mergedContext = processChildContext(instance, Component, previousContext, childContextTypes);
3898
+ task.legacyContext = mergedContext;
3899
+ renderNodeDestructive(request, task, nextChildren);
3900
+ task.legacyContext = previousContext;
3901
+ return;
3902
+ }
3903
+ }
3904
+ renderNodeDestructive(request, task, nextChildren);
3905
+ }
3906
+ function renderClassComponent(request, task, Component, props) {
3907
+ pushClassComponentStackInDEV(task, Component);
3908
+ var maskedContext = getMaskedContext(Component, task.legacyContext);
3909
+ var instance = constructClassInstance(Component, props, maskedContext);
3910
+ mountClassInstance(instance, Component, props, maskedContext);
3911
+ finishClassComponent(request, task, instance, Component, props);
3912
+ popComponentStackInDEV(task);
3913
+ }
3914
+ var didWarnAboutBadClass = {};
3915
+ var didWarnAboutModulePatternComponent = {};
3916
+ var didWarnAboutContextTypeOnFunctionComponent = {};
3917
+ var didWarnAboutGetDerivedStateOnFunctionComponent = {};
3918
+ var didWarnAboutReassigningProps = false;
3919
+ var didWarnAboutGenerators = false;
3920
+ var didWarnAboutMaps = false;
3921
+ var hasWarnedAboutUsingContextAsConsumer = false;
3922
+ function renderIndeterminateComponent(request, task, Component, props) {
3923
+ var legacyContext;
3924
+ {
3925
+ legacyContext = getMaskedContext(Component, task.legacyContext);
3926
+ }
3927
+ pushFunctionComponentStackInDEV(task, Component);
3928
+ {
3929
+ if (Component.prototype && typeof Component.prototype.render === 'function') {
3930
+ var componentName = getComponentNameFromType(Component) || 'Unknown';
3931
+ if (!didWarnAboutBadClass[componentName]) {
3932
+ error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);
3933
+ didWarnAboutBadClass[componentName] = true;
3934
+ }
3935
+ }
3936
+ }
3937
+ var value = renderWithHooks(request, task, Component, props, legacyContext);
3938
+ var hasId = checkDidRenderIdHook();
3939
+ {
3940
+ if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
3941
+ var _componentName = getComponentNameFromType(Component) || 'Unknown';
3942
+ if (!didWarnAboutModulePatternComponent[_componentName]) {
3943
+ error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);
3944
+ didWarnAboutModulePatternComponent[_componentName] = true;
3945
+ }
3946
+ }
3947
+ }
3948
+ if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
3949
+ {
3950
+ var _componentName2 = getComponentNameFromType(Component) || 'Unknown';
3951
+ if (!didWarnAboutModulePatternComponent[_componentName2]) {
3952
+ error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName2, _componentName2, _componentName2);
3953
+ didWarnAboutModulePatternComponent[_componentName2] = true;
3954
+ }
3955
+ }
3956
+ mountClassInstance(value, Component, props, legacyContext);
3957
+ finishClassComponent(request, task, value, Component, props);
3958
+ } else {
3959
+ {
3960
+ validateFunctionComponentInDev(Component);
3961
+ }
3962
+ if (hasId) {
3963
+ var prevTreeContext = task.treeContext;
3964
+ var totalChildren = 1;
3965
+ var index = 0;
3966
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, index);
3967
+ try {
3968
+ renderNodeDestructive(request, task, value);
3969
+ } finally {
3970
+ task.treeContext = prevTreeContext;
3971
+ }
3972
+ } else {
3973
+ renderNodeDestructive(request, task, value);
3974
+ }
3975
+ }
3976
+ popComponentStackInDEV(task);
3977
+ }
3978
+ function validateFunctionComponentInDev(Component) {
3979
+ {
3980
+ if (Component) {
3981
+ if (Component.childContextTypes) {
3982
+ error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
3983
+ }
3984
+ }
3985
+ if (typeof Component.getDerivedStateFromProps === 'function') {
3986
+ var _componentName3 = getComponentNameFromType(Component) || 'Unknown';
3987
+ if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) {
3988
+ error('%s: Function components do not support getDerivedStateFromProps.', _componentName3);
3989
+ didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true;
3990
+ }
3991
+ }
3992
+ if (typeof Component.contextType === 'object' && Component.contextType !== null) {
3993
+ var _componentName4 = getComponentNameFromType(Component) || 'Unknown';
3994
+ if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) {
3995
+ error('%s: Function components do not support contextType.', _componentName4);
3996
+ didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true;
3997
+ }
3998
+ }
3999
+ }
4000
+ }
4001
+ function resolveDefaultProps(Component, baseProps) {
4002
+ if (Component && Component.defaultProps) {
4003
+ var props = assign({}, baseProps);
4004
+ var defaultProps = Component.defaultProps;
4005
+ for (var propName in defaultProps) {
4006
+ if (props[propName] === undefined) {
4007
+ props[propName] = defaultProps[propName];
4008
+ }
4009
+ }
4010
+ return props;
4011
+ }
4012
+ return baseProps;
4013
+ }
4014
+ function renderForwardRef(request, task, type, props, ref) {
4015
+ pushFunctionComponentStackInDEV(task, type.render);
4016
+ var children = renderWithHooks(request, task, type.render, props, ref);
4017
+ var hasId = checkDidRenderIdHook();
4018
+ if (hasId) {
4019
+ var prevTreeContext = task.treeContext;
4020
+ var totalChildren = 1;
4021
+ var index = 0;
4022
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, index);
4023
+ try {
4024
+ renderNodeDestructive(request, task, children);
4025
+ } finally {
4026
+ task.treeContext = prevTreeContext;
4027
+ }
4028
+ } else {
4029
+ renderNodeDestructive(request, task, children);
4030
+ }
4031
+ popComponentStackInDEV(task);
4032
+ }
4033
+ function renderMemo(request, task, type, props, ref) {
4034
+ var innerType = type.type;
4035
+ var resolvedProps = resolveDefaultProps(innerType, props);
4036
+ renderElement(request, task, innerType, resolvedProps, ref);
4037
+ }
4038
+ function renderContextConsumer(request, task, context, props) {
4039
+ {
4040
+ if (context._context === undefined) {
4041
+ if (context !== context.Consumer) {
4042
+ if (!hasWarnedAboutUsingContextAsConsumer) {
4043
+ hasWarnedAboutUsingContextAsConsumer = true;
4044
+ error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
4045
+ }
4046
+ }
4047
+ } else {
4048
+ context = context._context;
4049
+ }
4050
+ }
4051
+ var render = props.children;
4052
+ {
4053
+ if (typeof render !== 'function') {
4054
+ error('A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.');
4055
+ }
4056
+ }
4057
+ var newValue = readContext(context);
4058
+ var newChildren = render(newValue);
4059
+ renderNodeDestructive(request, task, newChildren);
4060
+ }
4061
+ function renderContextProvider(request, task, type, props) {
4062
+ var context = type._context;
4063
+ var value = props.value;
4064
+ var children = props.children;
4065
+ var prevSnapshot;
4066
+ {
4067
+ prevSnapshot = task.context;
4068
+ }
4069
+ task.context = pushProvider(context, value);
4070
+ renderNodeDestructive(request, task, children);
4071
+ task.context = popProvider(context);
4072
+ {
4073
+ if (prevSnapshot !== task.context) {
4074
+ error('Popping the context provider did not return back to the original snapshot. This is a bug in React.');
4075
+ }
4076
+ }
4077
+ }
4078
+ function renderLazyComponent(request, task, lazyComponent, props, ref) {
4079
+ pushBuiltInComponentStackInDEV(task, 'Lazy');
4080
+ var payload = lazyComponent._payload;
4081
+ var init = lazyComponent._init;
4082
+ var Component = init(payload);
4083
+ var resolvedProps = resolveDefaultProps(Component, props);
4084
+ renderElement(request, task, Component, resolvedProps, ref);
4085
+ popComponentStackInDEV(task);
4086
+ }
4087
+ function renderElement(request, task, type, props, ref) {
4088
+ if (typeof type === 'function') {
4089
+ if (shouldConstruct$1(type)) {
4090
+ renderClassComponent(request, task, type, props);
4091
+ return;
4092
+ } else {
4093
+ renderIndeterminateComponent(request, task, type, props);
4094
+ return;
4095
+ }
4096
+ }
4097
+ if (typeof type === 'string') {
4098
+ renderHostElement(request, task, type, props);
4099
+ return;
4100
+ }
4101
+ switch (type) {
4102
+ case REACT_LEGACY_HIDDEN_TYPE:
4103
+ case REACT_DEBUG_TRACING_MODE_TYPE:
4104
+ case REACT_STRICT_MODE_TYPE:
4105
+ case REACT_PROFILER_TYPE:
4106
+ case REACT_FRAGMENT_TYPE:
4107
+ {
4108
+ renderNodeDestructive(request, task, props.children);
4109
+ return;
4110
+ }
4111
+ case REACT_SUSPENSE_LIST_TYPE:
4112
+ {
4113
+ pushBuiltInComponentStackInDEV(task, 'SuspenseList');
4114
+ renderNodeDestructive(request, task, props.children);
4115
+ popComponentStackInDEV(task);
4116
+ return;
4117
+ }
4118
+ case REACT_SCOPE_TYPE:
4119
+ {
4120
+ throw new Error('ReactDOMServer does not yet support scope components.');
4121
+ }
4122
+ case REACT_SUSPENSE_TYPE:
4123
+ {
4124
+ {
4125
+ renderSuspenseBoundary(request, task, props);
4126
+ }
4127
+ return;
4128
+ }
4129
+ }
4130
+ if (typeof type === 'object' && type !== null) {
4131
+ switch (type.$$typeof) {
4132
+ case REACT_FORWARD_REF_TYPE:
4133
+ {
4134
+ renderForwardRef(request, task, type, props, ref);
4135
+ return;
4136
+ }
4137
+ case REACT_MEMO_TYPE:
4138
+ {
4139
+ renderMemo(request, task, type, props, ref);
4140
+ return;
4141
+ }
4142
+ case REACT_PROVIDER_TYPE:
4143
+ {
4144
+ renderContextProvider(request, task, type, props);
4145
+ return;
4146
+ }
4147
+ case REACT_CONTEXT_TYPE:
4148
+ {
4149
+ renderContextConsumer(request, task, type, props);
4150
+ return;
4151
+ }
4152
+ case REACT_LAZY_TYPE:
4153
+ {
4154
+ renderLazyComponent(request, task, type, props);
4155
+ return;
4156
+ }
4157
+ }
4158
+ }
4159
+ var info = '';
4160
+ {
4161
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
4162
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
4163
+ }
4164
+ }
4165
+ throw new Error('Element type is invalid: expected a string (for built-in ' + 'components) or a class/function (for composite components) ' + ("but got: " + (type == null ? type : typeof type) + "." + info));
4166
+ }
4167
+ function validateIterable(iterable, iteratorFn) {
4168
+ {
4169
+ if (typeof Symbol === 'function' && iterable[Symbol.toStringTag] === 'Generator') {
4170
+ if (!didWarnAboutGenerators) {
4171
+ error('Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.');
4172
+ }
4173
+ didWarnAboutGenerators = true;
4174
+ }
4175
+ if (iterable.entries === iteratorFn) {
4176
+ if (!didWarnAboutMaps) {
4177
+ error('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
4178
+ }
4179
+ didWarnAboutMaps = true;
4180
+ }
4181
+ }
4182
+ }
4183
+ function renderNodeDestructive(request, task, node) {
4184
+ task.node = node;
4185
+ if (typeof node === 'object' && node !== null) {
4186
+ switch (node.$$typeof) {
4187
+ case REACT_ELEMENT_TYPE:
4188
+ {
4189
+ var element = node;
4190
+ var type = element.type;
4191
+ var props = element.props;
4192
+ var ref = element.ref;
4193
+ renderElement(request, task, type, props, ref);
4194
+ return;
4195
+ }
4196
+ case REACT_PORTAL_TYPE:
4197
+ throw new Error('Portals are not currently supported by the server renderer. ' + 'Render them conditionally so that they only appear on the client render.');
4198
+ case REACT_LAZY_TYPE:
4199
+ {
4200
+ {
4201
+ var lazyNode = node;
4202
+ var payload = lazyNode._payload;
4203
+ var init = lazyNode._init;
4204
+ var resolvedNode = init(payload);
4205
+ renderNodeDestructive(request, task, resolvedNode);
4206
+ return;
4207
+ }
4208
+ }
4209
+ }
4210
+ if (isArray(node)) {
4211
+ renderChildrenArray(request, task, node);
4212
+ return;
4213
+ }
4214
+ var iteratorFn = getIteratorFn(node);
4215
+ if (iteratorFn) {
4216
+ {
4217
+ validateIterable(node, iteratorFn);
4218
+ }
4219
+ var iterator = iteratorFn.call(node);
4220
+ if (iterator) {
4221
+ var step = iterator.next();
4222
+ if (!step.done) {
4223
+ var children = [];
4224
+ do {
4225
+ children.push(step.value);
4226
+ step = iterator.next();
4227
+ } while (!step.done);
4228
+ renderChildrenArray(request, task, children);
4229
+ return;
4230
+ }
4231
+ return;
4232
+ }
4233
+ }
4234
+ var childString = Object.prototype.toString.call(node);
4235
+ throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(node).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.');
4236
+ }
4237
+ if (typeof node === 'string') {
4238
+ pushTextInstance$1(task.blockedSegment.chunks, node, request.responseState);
4239
+ return;
4240
+ }
4241
+ if (typeof node === 'number') {
4242
+ pushTextInstance$1(task.blockedSegment.chunks, '' + node, request.responseState);
4243
+ return;
4244
+ }
4245
+ {
4246
+ if (typeof node === 'function') {
4247
+ error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
4248
+ }
4249
+ }
4250
+ }
4251
+ function renderChildrenArray(request, task, children) {
4252
+ var totalChildren = children.length;
4253
+ for (var i = 0; i < totalChildren; i++) {
4254
+ var prevTreeContext = task.treeContext;
4255
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
4256
+ try {
4257
+ renderNode(request, task, children[i]);
4258
+ } finally {
4259
+ task.treeContext = prevTreeContext;
4260
+ }
4261
+ }
4262
+ }
4263
+ function spawnNewSuspendedTask(request, task, x) {
4264
+ var segment = task.blockedSegment;
4265
+ var insertionIndex = segment.chunks.length;
4266
+ var newSegment = createPendingSegment(request, insertionIndex, null, segment.formatContext);
4267
+ segment.children.push(newSegment);
4268
+ var newTask = createTask(request, task.node, task.blockedBoundary, newSegment, task.abortSet, task.legacyContext, task.context, task.treeContext);
4269
+ {
4270
+ if (task.componentStack !== null) {
4271
+ newTask.componentStack = task.componentStack.parent;
4272
+ }
4273
+ }
4274
+ var ping = newTask.ping;
4275
+ x.then(ping, ping);
4276
+ }
4277
+ function renderNode(request, task, node) {
4278
+ var previousFormatContext = task.blockedSegment.formatContext;
4279
+ var previousLegacyContext = task.legacyContext;
4280
+ var previousContext = task.context;
4281
+ var previousComponentStack = null;
4282
+ {
4283
+ previousComponentStack = task.componentStack;
4284
+ }
4285
+ try {
4286
+ return renderNodeDestructive(request, task, node);
4287
+ } catch (x) {
4288
+ resetHooksState();
4289
+ if (typeof x === 'object' && x !== null && typeof x.then === 'function') {
4290
+ spawnNewSuspendedTask(request, task, x);
4291
+ task.blockedSegment.formatContext = previousFormatContext;
4292
+ task.legacyContext = previousLegacyContext;
4293
+ task.context = previousContext;
4294
+ switchContext(previousContext);
4295
+ {
4296
+ task.componentStack = previousComponentStack;
4297
+ }
4298
+ return;
4299
+ } else {
4300
+ task.blockedSegment.formatContext = previousFormatContext;
4301
+ task.legacyContext = previousLegacyContext;
4302
+ task.context = previousContext;
4303
+ switchContext(previousContext);
4304
+ {
4305
+ task.componentStack = previousComponentStack;
4306
+ }
4307
+ throw x;
4308
+ }
4309
+ }
4310
+ }
4311
+ function erroredTask(request, boundary, segment, error) {
4312
+ logRecoverableError(request, error);
4313
+ if (boundary === null) {
4314
+ fatalError(request, error);
4315
+ } else {
4316
+ boundary.pendingTasks--;
4317
+ if (!boundary.forceClientRender) {
4318
+ boundary.forceClientRender = true;
4319
+ if (boundary.parentFlushed) {
4320
+ request.clientRenderedBoundaries.push(boundary);
4321
+ }
4322
+ }
4323
+ }
4324
+ request.allPendingTasks--;
4325
+ if (request.allPendingTasks === 0) {
4326
+ var onAllReady = request.onAllReady;
4327
+ onAllReady();
4328
+ }
4329
+ }
4330
+ function abortTaskSoft(task) {
4331
+ var request = this;
4332
+ var boundary = task.blockedBoundary;
4333
+ var segment = task.blockedSegment;
4334
+ segment.status = ABORTED;
4335
+ finishedTask(request, boundary, segment);
4336
+ }
4337
+ function abortTask(task) {
4338
+ var request = this;
4339
+ var boundary = task.blockedBoundary;
4340
+ var segment = task.blockedSegment;
4341
+ segment.status = ABORTED;
4342
+ if (boundary === null) {
4343
+ request.allPendingTasks--;
4344
+ if (request.status !== CLOSED) {
4345
+ request.status = CLOSED;
4346
+ if (request.destination !== null) {
4347
+ close(request.destination);
4348
+ }
4349
+ }
4350
+ } else {
4351
+ boundary.pendingTasks--;
4352
+ if (!boundary.forceClientRender) {
4353
+ boundary.forceClientRender = true;
4354
+ if (boundary.parentFlushed) {
4355
+ request.clientRenderedBoundaries.push(boundary);
4356
+ }
4357
+ }
4358
+ boundary.fallbackAbortableTasks.forEach(abortTask, request);
4359
+ boundary.fallbackAbortableTasks.clear();
4360
+ request.allPendingTasks--;
4361
+ if (request.allPendingTasks === 0) {
4362
+ var onAllReady = request.onAllReady;
4363
+ onAllReady();
4364
+ }
4365
+ }
4366
+ }
4367
+ function queueCompletedSegment(boundary, segment) {
4368
+ if (segment.chunks.length === 0 && segment.children.length === 1 && segment.children[0].boundary === null) {
4369
+ var childSegment = segment.children[0];
4370
+ childSegment.id = segment.id;
4371
+ childSegment.parentFlushed = true;
4372
+ if (childSegment.status === COMPLETED) {
4373
+ queueCompletedSegment(boundary, childSegment);
4374
+ }
4375
+ } else {
4376
+ var completedSegments = boundary.completedSegments;
4377
+ completedSegments.push(segment);
4378
+ }
4379
+ }
4380
+ function finishedTask(request, boundary, segment) {
4381
+ if (boundary === null) {
4382
+ if (segment.parentFlushed) {
4383
+ if (request.completedRootSegment !== null) {
4384
+ throw new Error('There can only be one root segment. This is a bug in React.');
4385
+ }
4386
+ request.completedRootSegment = segment;
4387
+ }
4388
+ request.pendingRootTasks--;
4389
+ if (request.pendingRootTasks === 0) {
4390
+ request.onShellError = noop$1;
4391
+ var onShellReady = request.onShellReady;
4392
+ onShellReady();
4393
+ }
4394
+ } else {
4395
+ boundary.pendingTasks--;
4396
+ if (boundary.forceClientRender)
4397
+ ;
4398
+ else if (boundary.pendingTasks === 0) {
4399
+ if (segment.parentFlushed) {
4400
+ if (segment.status === COMPLETED) {
4401
+ queueCompletedSegment(boundary, segment);
4402
+ }
4403
+ }
4404
+ if (boundary.parentFlushed) {
4405
+ request.completedBoundaries.push(boundary);
4406
+ }
4407
+ boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request);
4408
+ boundary.fallbackAbortableTasks.clear();
4409
+ } else {
4410
+ if (segment.parentFlushed) {
4411
+ if (segment.status === COMPLETED) {
4412
+ queueCompletedSegment(boundary, segment);
4413
+ var completedSegments = boundary.completedSegments;
4414
+ if (completedSegments.length === 1) {
4415
+ if (boundary.parentFlushed) {
4416
+ request.partialBoundaries.push(boundary);
4417
+ }
4418
+ }
4419
+ }
4420
+ }
4421
+ }
4422
+ }
4423
+ request.allPendingTasks--;
4424
+ if (request.allPendingTasks === 0) {
4425
+ var onAllReady = request.onAllReady;
4426
+ onAllReady();
4427
+ }
4428
+ }
4429
+ function retryTask(request, task) {
4430
+ var segment = task.blockedSegment;
4431
+ if (segment.status !== PENDING) {
4432
+ return;
4433
+ }
4434
+ switchContext(task.context);
4435
+ var prevTaskInDEV = null;
4436
+ {
4437
+ prevTaskInDEV = currentTaskInDEV;
4438
+ currentTaskInDEV = task;
4439
+ }
4440
+ try {
4441
+ renderNodeDestructive(request, task, task.node);
4442
+ task.abortSet.delete(task);
4443
+ segment.status = COMPLETED;
4444
+ finishedTask(request, task.blockedBoundary, segment);
4445
+ } catch (x) {
4446
+ resetHooksState();
4447
+ if (typeof x === 'object' && x !== null && typeof x.then === 'function') {
4448
+ var ping = task.ping;
4449
+ x.then(ping, ping);
4450
+ } else {
4451
+ task.abortSet.delete(task);
4452
+ segment.status = ERRORED;
4453
+ erroredTask(request, task.blockedBoundary, segment, x);
4454
+ }
4455
+ } finally {
4456
+ {
4457
+ currentTaskInDEV = prevTaskInDEV;
4458
+ }
4459
+ }
4460
+ }
4461
+ function performWork(request) {
4462
+ if (request.status === CLOSED) {
4463
+ return;
4464
+ }
4465
+ var prevContext = getActiveContext();
4466
+ var prevDispatcher = ReactCurrentDispatcher$1.current;
4467
+ ReactCurrentDispatcher$1.current = Dispatcher;
4468
+ var prevGetCurrentStackImpl;
4469
+ {
4470
+ prevGetCurrentStackImpl = ReactDebugCurrentFrame$1.getCurrentStack;
4471
+ ReactDebugCurrentFrame$1.getCurrentStack = getCurrentStackInDEV;
4472
+ }
4473
+ var prevResponseState = currentResponseState;
4474
+ setCurrentResponseState(request.responseState);
4475
+ try {
4476
+ var pingedTasks = request.pingedTasks;
4477
+ var i;
4478
+ for (i = 0; i < pingedTasks.length; i++) {
4479
+ var task = pingedTasks[i];
4480
+ retryTask(request, task);
4481
+ }
4482
+ pingedTasks.splice(0, i);
4483
+ if (request.destination !== null) {
4484
+ flushCompletedQueues(request, request.destination);
4485
+ }
4486
+ } catch (error) {
4487
+ logRecoverableError(request, error);
4488
+ fatalError(request, error);
4489
+ } finally {
4490
+ setCurrentResponseState(prevResponseState);
4491
+ ReactCurrentDispatcher$1.current = prevDispatcher;
4492
+ {
4493
+ ReactDebugCurrentFrame$1.getCurrentStack = prevGetCurrentStackImpl;
4494
+ }
4495
+ if (prevDispatcher === Dispatcher) {
4496
+ switchContext(prevContext);
4497
+ }
4498
+ }
4499
+ }
4500
+ function flushSubtree(request, destination, segment) {
4501
+ segment.parentFlushed = true;
4502
+ switch (segment.status) {
4503
+ case PENDING:
4504
+ {
4505
+ var segmentID = segment.id = request.nextSegmentId++;
4506
+ return writePlaceholder(destination, request.responseState, segmentID);
4507
+ }
4508
+ case COMPLETED:
4509
+ {
4510
+ segment.status = FLUSHED;
4511
+ var r = true;
4512
+ var chunks = segment.chunks;
4513
+ var chunkIdx = 0;
4514
+ var children = segment.children;
4515
+ for (var childIdx = 0; childIdx < children.length; childIdx++) {
4516
+ var nextChild = children[childIdx];
4517
+ for (; chunkIdx < nextChild.index; chunkIdx++) {
4518
+ writeChunk(destination, chunks[chunkIdx]);
4519
+ }
4520
+ r = flushSegment(request, destination, nextChild);
4521
+ }
4522
+ for (; chunkIdx < chunks.length - 1; chunkIdx++) {
4523
+ writeChunk(destination, chunks[chunkIdx]);
4524
+ }
4525
+ if (chunkIdx < chunks.length) {
4526
+ r = writeChunkAndReturn(destination, chunks[chunkIdx]);
4527
+ }
4528
+ return r;
4529
+ }
4530
+ default:
4531
+ {
4532
+ throw new Error('Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.');
4533
+ }
4534
+ }
4535
+ }
4536
+ function flushSegment(request, destination, segment) {
4537
+ var boundary = segment.boundary;
4538
+ if (boundary === null) {
4539
+ return flushSubtree(request, destination, segment);
4540
+ }
4541
+ boundary.parentFlushed = true;
4542
+ if (boundary.forceClientRender) {
4543
+ writeStartClientRenderedSuspenseBoundary$1(destination, request.responseState);
4544
+ flushSubtree(request, destination, segment);
4545
+ return writeEndClientRenderedSuspenseBoundary$1(destination, request.responseState);
4546
+ } else if (boundary.pendingTasks > 0) {
4547
+ boundary.rootSegmentID = request.nextSegmentId++;
4548
+ if (boundary.completedSegments.length > 0) {
4549
+ request.partialBoundaries.push(boundary);
4550
+ }
4551
+ var id = boundary.id = assignSuspenseBoundaryID(request.responseState);
4552
+ writeStartPendingSuspenseBoundary(destination, request.responseState, id);
4553
+ flushSubtree(request, destination, segment);
4554
+ return writeEndPendingSuspenseBoundary(destination, request.responseState);
4555
+ } else if (boundary.byteSize > request.progressiveChunkSize) {
4556
+ boundary.rootSegmentID = request.nextSegmentId++;
4557
+ request.completedBoundaries.push(boundary);
4558
+ writeStartPendingSuspenseBoundary(destination, request.responseState, boundary.id);
4559
+ flushSubtree(request, destination, segment);
4560
+ return writeEndPendingSuspenseBoundary(destination, request.responseState);
4561
+ } else {
4562
+ writeStartCompletedSuspenseBoundary$1(destination, request.responseState);
4563
+ var completedSegments = boundary.completedSegments;
4564
+ if (completedSegments.length !== 1) {
4565
+ throw new Error('A previously unvisited boundary must have exactly one root segment. This is a bug in React.');
4566
+ }
4567
+ var contentSegment = completedSegments[0];
4568
+ flushSegment(request, destination, contentSegment);
4569
+ return writeEndCompletedSuspenseBoundary$1(destination, request.responseState);
4570
+ }
4571
+ }
4572
+ function flushClientRenderedBoundary(request, destination, boundary) {
4573
+ return writeClientRenderBoundaryInstruction(destination, request.responseState, boundary.id);
4574
+ }
4575
+ function flushSegmentContainer(request, destination, segment) {
4576
+ writeStartSegment(destination, request.responseState, segment.formatContext, segment.id);
4577
+ flushSegment(request, destination, segment);
4578
+ return writeEndSegment(destination, segment.formatContext);
4579
+ }
4580
+ function flushCompletedBoundary(request, destination, boundary) {
4581
+ var completedSegments = boundary.completedSegments;
4582
+ var i = 0;
4583
+ for (; i < completedSegments.length; i++) {
4584
+ var segment = completedSegments[i];
4585
+ flushPartiallyCompletedSegment(request, destination, boundary, segment);
4586
+ }
4587
+ completedSegments.length = 0;
4588
+ return writeCompletedBoundaryInstruction(destination, request.responseState, boundary.id, boundary.rootSegmentID);
4589
+ }
4590
+ function flushPartialBoundary(request, destination, boundary) {
4591
+ var completedSegments = boundary.completedSegments;
4592
+ var i = 0;
4593
+ for (; i < completedSegments.length; i++) {
4594
+ var segment = completedSegments[i];
4595
+ if (!flushPartiallyCompletedSegment(request, destination, boundary, segment)) {
4596
+ i++;
4597
+ completedSegments.splice(0, i);
4598
+ return false;
4599
+ }
4600
+ }
4601
+ completedSegments.splice(0, i);
4602
+ return true;
4603
+ }
4604
+ function flushPartiallyCompletedSegment(request, destination, boundary, segment) {
4605
+ if (segment.status === FLUSHED) {
4606
+ return true;
4607
+ }
4608
+ var segmentID = segment.id;
4609
+ if (segmentID === -1) {
4610
+ var rootSegmentID = segment.id = boundary.rootSegmentID;
4611
+ if (rootSegmentID === -1) {
4612
+ throw new Error('A root segment ID must have been assigned by now. This is a bug in React.');
4613
+ }
4614
+ return flushSegmentContainer(request, destination, segment);
4615
+ } else {
4616
+ flushSegmentContainer(request, destination, segment);
4617
+ return writeCompletedSegmentInstruction(destination, request.responseState, segmentID);
4618
+ }
4619
+ }
4620
+ function flushCompletedQueues(request, destination) {
4621
+ try {
4622
+ var completedRootSegment = request.completedRootSegment;
4623
+ if (completedRootSegment !== null && request.pendingRootTasks === 0) {
4624
+ flushSegment(request, destination, completedRootSegment);
4625
+ request.completedRootSegment = null;
4626
+ writeCompletedRoot(destination, request.responseState);
4627
+ }
4628
+ var clientRenderedBoundaries = request.clientRenderedBoundaries;
4629
+ var i;
4630
+ for (i = 0; i < clientRenderedBoundaries.length; i++) {
4631
+ var boundary = clientRenderedBoundaries[i];
4632
+ if (!flushClientRenderedBoundary(request, destination, boundary)) {
4633
+ request.destination = null;
4634
+ i++;
4635
+ clientRenderedBoundaries.splice(0, i);
4636
+ return;
4637
+ }
4638
+ }
4639
+ clientRenderedBoundaries.splice(0, i);
4640
+ var completedBoundaries = request.completedBoundaries;
4641
+ for (i = 0; i < completedBoundaries.length; i++) {
4642
+ var _boundary = completedBoundaries[i];
4643
+ if (!flushCompletedBoundary(request, destination, _boundary)) {
4644
+ request.destination = null;
4645
+ i++;
4646
+ completedBoundaries.splice(0, i);
4647
+ return;
4648
+ }
4649
+ }
4650
+ completedBoundaries.splice(0, i);
4651
+ completeWriting(destination);
4652
+ beginWriting(destination);
4653
+ var partialBoundaries = request.partialBoundaries;
4654
+ for (i = 0; i < partialBoundaries.length; i++) {
4655
+ var _boundary2 = partialBoundaries[i];
4656
+ if (!flushPartialBoundary(request, destination, _boundary2)) {
4657
+ request.destination = null;
4658
+ i++;
4659
+ partialBoundaries.splice(0, i);
4660
+ return;
4661
+ }
4662
+ }
4663
+ partialBoundaries.splice(0, i);
4664
+ var largeBoundaries = request.completedBoundaries;
4665
+ for (i = 0; i < largeBoundaries.length; i++) {
4666
+ var _boundary3 = largeBoundaries[i];
4667
+ if (!flushCompletedBoundary(request, destination, _boundary3)) {
4668
+ request.destination = null;
4669
+ i++;
4670
+ largeBoundaries.splice(0, i);
4671
+ return;
4672
+ }
4673
+ }
4674
+ largeBoundaries.splice(0, i);
4675
+ } finally {
4676
+ if (request.allPendingTasks === 0 && request.pingedTasks.length === 0 && request.clientRenderedBoundaries.length === 0 && request.completedBoundaries.length === 0) {
4677
+ {
4678
+ if (request.abortableTasks.size !== 0) {
4679
+ error('There was still abortable task at the root when we closed. This is a bug in React.');
4680
+ }
4681
+ }
4682
+ close(destination);
4683
+ }
4684
+ }
4685
+ }
4686
+ function startWork(request) {
4687
+ scheduleWork(function() {
4688
+ return performWork(request);
4689
+ });
4690
+ }
4691
+ function startFlowing(request, destination) {
4692
+ if (request.status === CLOSING) {
4693
+ request.status = CLOSED;
4694
+ closeWithError(destination, request.fatalError);
4695
+ return;
4696
+ }
4697
+ if (request.status === CLOSED) {
4698
+ return;
4699
+ }
4700
+ if (request.destination !== null) {
4701
+ return;
4702
+ }
4703
+ request.destination = destination;
4704
+ try {
4705
+ flushCompletedQueues(request, destination);
4706
+ } catch (error) {
4707
+ logRecoverableError(request, error);
4708
+ fatalError(request, error);
4709
+ }
4710
+ }
4711
+ function abort(request) {
4712
+ try {
4713
+ var abortableTasks = request.abortableTasks;
4714
+ abortableTasks.forEach(abortTask, request);
4715
+ abortableTasks.clear();
4716
+ if (request.destination !== null) {
4717
+ flushCompletedQueues(request, request.destination);
4718
+ }
4719
+ } catch (error) {
4720
+ logRecoverableError(request, error);
4721
+ fatalError(request, error);
4722
+ }
4723
+ }
4724
+ var ReactVersion = '18.0.0-fc46dba67-20220329';
4725
+ function onError() {}
4726
+ function renderToStringImpl(children, options, generateStaticMarkup) {
4727
+ var didFatal = false;
4728
+ var fatalError = null;
4729
+ var result = '';
4730
+ var destination = {
4731
+ push: function(chunk) {
4732
+ if (chunk !== null) {
4733
+ result += chunk;
4734
+ }
4735
+ return true;
4736
+ },
4737
+ destroy: function(error) {
4738
+ didFatal = true;
4739
+ fatalError = error;
4740
+ }
4741
+ };
4742
+ var readyToStream = false;
4743
+ function onShellReady() {
4744
+ readyToStream = true;
4745
+ }
4746
+ var request = createRequest(children, createResponseState$1(generateStaticMarkup, options ? options.identifierPrefix : undefined), createRootFormatContext(), Infinity, onError, undefined, onShellReady, undefined, undefined);
4747
+ startWork(request);
4748
+ abort(request);
4749
+ startFlowing(request, destination);
4750
+ if (didFatal) {
4751
+ throw fatalError;
4752
+ }
4753
+ if (!readyToStream) {
4754
+ throw new Error('A component suspended while responding to synchronous input. This ' + 'will cause the UI to be replaced with a loading indicator. To fix, ' + 'updates that suspend should be wrapped with startTransition.');
4755
+ }
4756
+ return result;
4757
+ }
4758
+ function renderToString(children, options) {
4759
+ return renderToStringImpl(children, options, false);
4760
+ }
4761
+ function renderToStaticMarkup(children, options) {
4762
+ return renderToStringImpl(children, options, true);
4763
+ }
4764
+ var ReactMarkupReadableStream = function(_Readable) {
4765
+ _inheritsLoose(ReactMarkupReadableStream, _Readable);
4766
+ function ReactMarkupReadableStream() {
4767
+ var _this;
4768
+ _this = _Readable.call(this, {}) || this;
4769
+ _this.request = null;
4770
+ _this.startedFlowing = false;
4771
+ return _this;
4772
+ }
4773
+ var _proto = ReactMarkupReadableStream.prototype;
4774
+ _proto._destroy = function _destroy(err, callback) {
4775
+ abort(this.request);
4776
+ callback(err);
4777
+ };
4778
+ _proto._read = function _read(size) {
4779
+ if (this.startedFlowing) {
4780
+ startFlowing(this.request, this);
4781
+ }
4782
+ };
4783
+ return ReactMarkupReadableStream;
4784
+ }(stream.Readable);
4785
+ function onError$1() {}
4786
+ function renderToNodeStreamImpl(children, options, generateStaticMarkup) {
4787
+ function onAllReady() {
4788
+ destination.startedFlowing = true;
4789
+ startFlowing(request, destination);
4790
+ }
4791
+ var destination = new ReactMarkupReadableStream();
4792
+ var request = createRequest(children, createResponseState$1(false, options ? options.identifierPrefix : undefined), createRootFormatContext(), Infinity, onError$1, onAllReady, undefined, undefined);
4793
+ destination.request = request;
4794
+ startWork(request);
4795
+ return destination;
4796
+ }
4797
+ function renderToNodeStream(children, options) {
4798
+ {
4799
+ error('renderToNodeStream is deprecated. Use renderToPipeableStream instead.');
4800
+ }
4801
+ return renderToNodeStreamImpl(children, options);
4802
+ }
4803
+ function renderToStaticNodeStream(children, options) {
4804
+ return renderToNodeStreamImpl(children, options);
4805
+ }
4806
+ exports.renderToNodeStream = renderToNodeStream;
4807
+ exports.renderToStaticMarkup = renderToStaticMarkup;
4808
+ exports.renderToStaticNodeStream = renderToStaticNodeStream;
4809
+ exports.renderToString = renderToString;
4810
+ exports.version = ReactVersion;
4811
+ })();
4812
+ }
4813
+ })(require('process'));