@linyjs/plugin-docs 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/README.md +97 -0
  2. package/docs/api-reference/index.md +341 -0
  3. package/docs/best-practices/error-handling.md +462 -0
  4. package/docs/best-practices/naming-conventions.md +495 -0
  5. package/docs/best-practices/performance.md +532 -0
  6. package/docs/best-practices/security.md +620 -0
  7. package/docs/faq.md +323 -0
  8. package/docs/getting-started/first-plugin.md +358 -0
  9. package/docs/getting-started/installation.md +244 -0
  10. package/docs/getting-started/quick-start.md +174 -0
  11. package/docs/guides/client-module.md +598 -0
  12. package/docs/guides/data-persistence.md +536 -0
  13. package/docs/guides/permissions.md +440 -0
  14. package/docs/guides/server-module.md +371 -0
  15. package/docs/guides/ui-slots.md +475 -0
  16. package/docs/migration/v0-to-v1.md +354 -0
  17. package/examples/analytics-plugin/README.md +416 -0
  18. package/examples/analytics-plugin/dist/client/index.d.ts +36 -0
  19. package/examples/analytics-plugin/dist/client/index.js +173 -0
  20. package/examples/analytics-plugin/dist/index.d.ts +64 -0
  21. package/examples/analytics-plugin/dist/index.js +72 -0
  22. package/examples/analytics-plugin/dist/server/index.d.ts +119 -0
  23. package/examples/analytics-plugin/dist/server/index.js +313 -0
  24. package/examples/analytics-plugin/package.json +28 -0
  25. package/examples/analytics-plugin/src/client/index.tsx +410 -0
  26. package/examples/analytics-plugin/src/index.ts +71 -0
  27. package/examples/analytics-plugin/src/server/index.ts +348 -0
  28. package/examples/analytics-plugin/tsconfig.json +21 -0
  29. package/examples/blog-plugin/README.md +316 -0
  30. package/examples/blog-plugin/dist/client/index.d.ts +22 -0
  31. package/examples/blog-plugin/dist/client/index.js +197 -0
  32. package/examples/blog-plugin/dist/server/index.d.ts +5 -0
  33. package/examples/blog-plugin/dist/server/index.js +220 -0
  34. package/examples/blog-plugin/package.json +24 -0
  35. package/examples/blog-plugin/src/client/index.tsx +405 -0
  36. package/examples/blog-plugin/src/server/index.ts +240 -0
  37. package/examples/blog-plugin/tsconfig.json +16 -0
  38. package/examples/hello-world/README.md +101 -0
  39. package/examples/hello-world/dist/client/index.d.ts +5 -0
  40. package/examples/hello-world/dist/client/index.js +80 -0
  41. package/examples/hello-world/dist/server/index.d.ts +5 -0
  42. package/examples/hello-world/dist/server/index.js +38 -0
  43. package/examples/hello-world/node_modules/.package-lock.json +61 -0
  44. package/examples/hello-world/node_modules/@linyjs/client-module-interface/HOOKS_USAGE.md +281 -0
  45. package/examples/hello-world/node_modules/@linyjs/client-module-interface/IMPLEMENTATION_SUMMARY.md +166 -0
  46. package/examples/hello-world/node_modules/@linyjs/client-module-interface/QUICK_REFERENCE.md +130 -0
  47. package/examples/hello-world/node_modules/@linyjs/client-module-interface/README.md +214 -0
  48. package/examples/hello-world/node_modules/@linyjs/client-module-interface/package.json +26 -0
  49. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/application.ts +50 -0
  50. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/comparison-example.tsx +229 -0
  51. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/di.ts +127 -0
  52. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/domain.ts +52 -0
  53. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/hooks-example.tsx +275 -0
  54. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/hooks.ts +175 -0
  55. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/index.ts +87 -0
  56. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/interfaces.ts +117 -0
  57. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/router.ts +49 -0
  58. package/examples/hello-world/node_modules/@linyjs/client-module-interface/tsconfig.json +10 -0
  59. package/examples/hello-world/node_modules/@linyjs/server-module-interface/package.json +21 -0
  60. package/examples/hello-world/node_modules/@linyjs/server-module-interface/src/application.ts +21 -0
  61. package/examples/hello-world/node_modules/@linyjs/server-module-interface/src/di.ts +127 -0
  62. package/examples/hello-world/node_modules/@linyjs/server-module-interface/src/domain.ts +75 -0
  63. package/examples/hello-world/node_modules/@linyjs/server-module-interface/src/index.ts +55 -0
  64. package/examples/hello-world/node_modules/@linyjs/server-module-interface/src/interfaces.ts +58 -0
  65. package/examples/hello-world/node_modules/@linyjs/server-module-interface/tsconfig.json +8 -0
  66. package/examples/hello-world/node_modules/@types/react/LICENSE +21 -0
  67. package/examples/hello-world/node_modules/@types/react/README.md +15 -0
  68. package/examples/hello-world/node_modules/@types/react/canary.d.ts +129 -0
  69. package/examples/hello-world/node_modules/@types/react/compiler-runtime.d.ts +4 -0
  70. package/examples/hello-world/node_modules/@types/react/experimental.d.ts +184 -0
  71. package/examples/hello-world/node_modules/@types/react/global.d.ts +166 -0
  72. package/examples/hello-world/node_modules/@types/react/index.d.ts +4369 -0
  73. package/examples/hello-world/node_modules/@types/react/jsx-dev-runtime.d.ts +33 -0
  74. package/examples/hello-world/node_modules/@types/react/jsx-runtime.d.ts +24 -0
  75. package/examples/hello-world/node_modules/@types/react/package.json +210 -0
  76. package/examples/hello-world/node_modules/@types/react/ts5.0/canary.d.ts +129 -0
  77. package/examples/hello-world/node_modules/@types/react/ts5.0/experimental.d.ts +184 -0
  78. package/examples/hello-world/node_modules/@types/react/ts5.0/global.d.ts +166 -0
  79. package/examples/hello-world/node_modules/@types/react/ts5.0/index.d.ts +4356 -0
  80. package/examples/hello-world/node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts +33 -0
  81. package/examples/hello-world/node_modules/@types/react/ts5.0/jsx-runtime.d.ts +24 -0
  82. package/examples/hello-world/node_modules/csstype/LICENSE +19 -0
  83. package/examples/hello-world/node_modules/csstype/README.md +291 -0
  84. package/examples/hello-world/node_modules/csstype/index.d.ts +22569 -0
  85. package/examples/hello-world/node_modules/csstype/index.js.flow +6863 -0
  86. package/examples/hello-world/node_modules/csstype/package.json +70 -0
  87. package/examples/hello-world/node_modules/react/LICENSE +21 -0
  88. package/examples/hello-world/node_modules/react/README.md +37 -0
  89. package/examples/hello-world/node_modules/react/cjs/react-compiler-runtime.development.js +24 -0
  90. package/examples/hello-world/node_modules/react/cjs/react-compiler-runtime.production.js +16 -0
  91. package/examples/hello-world/node_modules/react/cjs/react-compiler-runtime.profiling.js +16 -0
  92. package/examples/hello-world/node_modules/react/cjs/react-jsx-dev-runtime.development.js +338 -0
  93. package/examples/hello-world/node_modules/react/cjs/react-jsx-dev-runtime.production.js +14 -0
  94. package/examples/hello-world/node_modules/react/cjs/react-jsx-dev-runtime.profiling.js +14 -0
  95. package/examples/hello-world/node_modules/react/cjs/react-jsx-dev-runtime.react-server.development.js +370 -0
  96. package/examples/hello-world/node_modules/react/cjs/react-jsx-dev-runtime.react-server.production.js +40 -0
  97. package/examples/hello-world/node_modules/react/cjs/react-jsx-runtime.development.js +352 -0
  98. package/examples/hello-world/node_modules/react/cjs/react-jsx-runtime.production.js +34 -0
  99. package/examples/hello-world/node_modules/react/cjs/react-jsx-runtime.profiling.js +34 -0
  100. package/examples/hello-world/node_modules/react/cjs/react-jsx-runtime.react-server.development.js +370 -0
  101. package/examples/hello-world/node_modules/react/cjs/react-jsx-runtime.react-server.production.js +40 -0
  102. package/examples/hello-world/node_modules/react/cjs/react.development.js +1284 -0
  103. package/examples/hello-world/node_modules/react/cjs/react.production.js +542 -0
  104. package/examples/hello-world/node_modules/react/cjs/react.react-server.development.js +848 -0
  105. package/examples/hello-world/node_modules/react/cjs/react.react-server.production.js +423 -0
  106. package/examples/hello-world/node_modules/react/compiler-runtime.js +14 -0
  107. package/examples/hello-world/node_modules/react/index.js +7 -0
  108. package/examples/hello-world/node_modules/react/jsx-dev-runtime.js +7 -0
  109. package/examples/hello-world/node_modules/react/jsx-dev-runtime.react-server.js +7 -0
  110. package/examples/hello-world/node_modules/react/jsx-runtime.js +7 -0
  111. package/examples/hello-world/node_modules/react/jsx-runtime.react-server.js +7 -0
  112. package/examples/hello-world/node_modules/react/package.json +51 -0
  113. package/examples/hello-world/node_modules/react/react.react-server.js +7 -0
  114. package/examples/hello-world/node_modules/typescript/LICENSE.txt +55 -0
  115. package/examples/hello-world/node_modules/typescript/README.md +50 -0
  116. package/examples/hello-world/node_modules/typescript/SECURITY.md +41 -0
  117. package/examples/hello-world/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  118. package/examples/hello-world/node_modules/typescript/bin/tsc +2 -0
  119. package/examples/hello-world/node_modules/typescript/bin/tsserver +2 -0
  120. package/examples/hello-world/node_modules/typescript/lib/_tsc.js +133818 -0
  121. package/examples/hello-world/node_modules/typescript/lib/_tsserver.js +659 -0
  122. package/examples/hello-world/node_modules/typescript/lib/_typingsInstaller.js +222 -0
  123. package/examples/hello-world/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
  124. package/examples/hello-world/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
  125. package/examples/hello-world/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
  126. package/examples/hello-world/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
  127. package/examples/hello-world/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
  128. package/examples/hello-world/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
  129. package/examples/hello-world/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
  130. package/examples/hello-world/node_modules/typescript/lib/lib.d.ts +22 -0
  131. package/examples/hello-world/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
  132. package/examples/hello-world/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
  133. package/examples/hello-world/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
  134. package/examples/hello-world/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
  135. package/examples/hello-world/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
  136. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
  137. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
  138. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
  139. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
  140. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
  141. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
  142. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
  143. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
  144. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
  145. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  146. package/examples/hello-world/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
  147. package/examples/hello-world/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
  148. package/examples/hello-world/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
  149. package/examples/hello-world/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
  150. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
  151. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
  152. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
  153. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
  154. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
  155. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
  156. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
  157. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
  158. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
  159. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  160. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
  161. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
  162. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
  163. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
  164. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
  165. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
  166. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
  167. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
  168. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
  169. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
  170. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
  171. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
  172. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
  173. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
  174. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
  175. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
  176. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
  177. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
  178. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
  179. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
  180. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
  181. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
  182. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  183. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
  184. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
  185. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
  186. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
  187. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
  188. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
  189. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
  190. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
  191. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
  192. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
  193. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
  194. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
  195. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
  196. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
  197. package/examples/hello-world/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
  198. package/examples/hello-world/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
  199. package/examples/hello-world/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
  200. package/examples/hello-world/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
  201. package/examples/hello-world/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
  202. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
  203. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
  204. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
  205. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
  206. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
  207. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
  208. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
  209. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
  210. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
  211. package/examples/hello-world/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
  212. package/examples/hello-world/node_modules/typescript/lib/lib.es6.d.ts +23 -0
  213. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
  214. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
  215. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
  216. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
  217. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
  218. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
  219. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
  220. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
  221. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
  222. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
  223. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
  224. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
  225. package/examples/hello-world/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
  226. package/examples/hello-world/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
  227. package/examples/hello-world/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
  228. package/examples/hello-world/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
  229. package/examples/hello-world/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
  230. package/examples/hello-world/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
  231. package/examples/hello-world/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
  232. package/examples/hello-world/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
  233. package/examples/hello-world/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
  234. package/examples/hello-world/node_modules/typescript/lib/tsc.js +8 -0
  235. package/examples/hello-world/node_modules/typescript/lib/tsserver.js +8 -0
  236. package/examples/hello-world/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
  237. package/examples/hello-world/node_modules/typescript/lib/tsserverlibrary.js +21 -0
  238. package/examples/hello-world/node_modules/typescript/lib/typesMap.json +497 -0
  239. package/examples/hello-world/node_modules/typescript/lib/typescript.d.ts +11437 -0
  240. package/examples/hello-world/node_modules/typescript/lib/typescript.js +200276 -0
  241. package/examples/hello-world/node_modules/typescript/lib/typingsInstaller.js +8 -0
  242. package/examples/hello-world/node_modules/typescript/lib/watchGuard.js +53 -0
  243. package/examples/hello-world/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
  244. package/examples/hello-world/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
  245. package/examples/hello-world/node_modules/typescript/package.json +120 -0
  246. package/examples/hello-world/package-lock.json +74 -0
  247. package/examples/hello-world/package.json +23 -0
  248. package/examples/hello-world/src/client/index.tsx +110 -0
  249. package/examples/hello-world/src/server/index.ts +42 -0
  250. package/examples/hello-world/tsconfig.json +16 -0
  251. package/package.json +42 -0
  252. package/src/cli.ts +321 -0
@@ -0,0 +1,542 @@
1
+ /**
2
+ * @license React
3
+ * react.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
13
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
14
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
15
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
16
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
17
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
18
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
19
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
20
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
21
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
22
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
23
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
24
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
25
+ function getIteratorFn(maybeIterable) {
26
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
27
+ maybeIterable =
28
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
29
+ maybeIterable["@@iterator"];
30
+ return "function" === typeof maybeIterable ? maybeIterable : null;
31
+ }
32
+ var ReactNoopUpdateQueue = {
33
+ isMounted: function () {
34
+ return !1;
35
+ },
36
+ enqueueForceUpdate: function () {},
37
+ enqueueReplaceState: function () {},
38
+ enqueueSetState: function () {}
39
+ },
40
+ assign = Object.assign,
41
+ emptyObject = {};
42
+ function Component(props, context, updater) {
43
+ this.props = props;
44
+ this.context = context;
45
+ this.refs = emptyObject;
46
+ this.updater = updater || ReactNoopUpdateQueue;
47
+ }
48
+ Component.prototype.isReactComponent = {};
49
+ Component.prototype.setState = function (partialState, callback) {
50
+ if (
51
+ "object" !== typeof partialState &&
52
+ "function" !== typeof partialState &&
53
+ null != partialState
54
+ )
55
+ throw Error(
56
+ "takes an object of state variables to update or a function which returns an object of state variables."
57
+ );
58
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
59
+ };
60
+ Component.prototype.forceUpdate = function (callback) {
61
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
62
+ };
63
+ function ComponentDummy() {}
64
+ ComponentDummy.prototype = Component.prototype;
65
+ function PureComponent(props, context, updater) {
66
+ this.props = props;
67
+ this.context = context;
68
+ this.refs = emptyObject;
69
+ this.updater = updater || ReactNoopUpdateQueue;
70
+ }
71
+ var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
72
+ pureComponentPrototype.constructor = PureComponent;
73
+ assign(pureComponentPrototype, Component.prototype);
74
+ pureComponentPrototype.isPureReactComponent = !0;
75
+ var isArrayImpl = Array.isArray;
76
+ function noop() {}
77
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null },
78
+ hasOwnProperty = Object.prototype.hasOwnProperty;
79
+ function ReactElement(type, key, props) {
80
+ var refProp = props.ref;
81
+ return {
82
+ $$typeof: REACT_ELEMENT_TYPE,
83
+ type: type,
84
+ key: key,
85
+ ref: void 0 !== refProp ? refProp : null,
86
+ props: props
87
+ };
88
+ }
89
+ function cloneAndReplaceKey(oldElement, newKey) {
90
+ return ReactElement(oldElement.type, newKey, oldElement.props);
91
+ }
92
+ function isValidElement(object) {
93
+ return (
94
+ "object" === typeof object &&
95
+ null !== object &&
96
+ object.$$typeof === REACT_ELEMENT_TYPE
97
+ );
98
+ }
99
+ function escape(key) {
100
+ var escaperLookup = { "=": "=0", ":": "=2" };
101
+ return (
102
+ "$" +
103
+ key.replace(/[=:]/g, function (match) {
104
+ return escaperLookup[match];
105
+ })
106
+ );
107
+ }
108
+ var userProvidedKeyEscapeRegex = /\/+/g;
109
+ function getElementKey(element, index) {
110
+ return "object" === typeof element && null !== element && null != element.key
111
+ ? escape("" + element.key)
112
+ : index.toString(36);
113
+ }
114
+ function resolveThenable(thenable) {
115
+ switch (thenable.status) {
116
+ case "fulfilled":
117
+ return thenable.value;
118
+ case "rejected":
119
+ throw thenable.reason;
120
+ default:
121
+ switch (
122
+ ("string" === typeof thenable.status
123
+ ? thenable.then(noop, noop)
124
+ : ((thenable.status = "pending"),
125
+ thenable.then(
126
+ function (fulfilledValue) {
127
+ "pending" === thenable.status &&
128
+ ((thenable.status = "fulfilled"),
129
+ (thenable.value = fulfilledValue));
130
+ },
131
+ function (error) {
132
+ "pending" === thenable.status &&
133
+ ((thenable.status = "rejected"), (thenable.reason = error));
134
+ }
135
+ )),
136
+ thenable.status)
137
+ ) {
138
+ case "fulfilled":
139
+ return thenable.value;
140
+ case "rejected":
141
+ throw thenable.reason;
142
+ }
143
+ }
144
+ throw thenable;
145
+ }
146
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
147
+ var type = typeof children;
148
+ if ("undefined" === type || "boolean" === type) children = null;
149
+ var invokeCallback = !1;
150
+ if (null === children) invokeCallback = !0;
151
+ else
152
+ switch (type) {
153
+ case "bigint":
154
+ case "string":
155
+ case "number":
156
+ invokeCallback = !0;
157
+ break;
158
+ case "object":
159
+ switch (children.$$typeof) {
160
+ case REACT_ELEMENT_TYPE:
161
+ case REACT_PORTAL_TYPE:
162
+ invokeCallback = !0;
163
+ break;
164
+ case REACT_LAZY_TYPE:
165
+ return (
166
+ (invokeCallback = children._init),
167
+ mapIntoArray(
168
+ invokeCallback(children._payload),
169
+ array,
170
+ escapedPrefix,
171
+ nameSoFar,
172
+ callback
173
+ )
174
+ );
175
+ }
176
+ }
177
+ if (invokeCallback)
178
+ return (
179
+ (callback = callback(children)),
180
+ (invokeCallback =
181
+ "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
182
+ isArrayImpl(callback)
183
+ ? ((escapedPrefix = ""),
184
+ null != invokeCallback &&
185
+ (escapedPrefix =
186
+ invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
187
+ mapIntoArray(callback, array, escapedPrefix, "", function (c) {
188
+ return c;
189
+ }))
190
+ : null != callback &&
191
+ (isValidElement(callback) &&
192
+ (callback = cloneAndReplaceKey(
193
+ callback,
194
+ escapedPrefix +
195
+ (null == callback.key ||
196
+ (children && children.key === callback.key)
197
+ ? ""
198
+ : ("" + callback.key).replace(
199
+ userProvidedKeyEscapeRegex,
200
+ "$&/"
201
+ ) + "/") +
202
+ invokeCallback
203
+ )),
204
+ array.push(callback)),
205
+ 1
206
+ );
207
+ invokeCallback = 0;
208
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
209
+ if (isArrayImpl(children))
210
+ for (var i = 0; i < children.length; i++)
211
+ (nameSoFar = children[i]),
212
+ (type = nextNamePrefix + getElementKey(nameSoFar, i)),
213
+ (invokeCallback += mapIntoArray(
214
+ nameSoFar,
215
+ array,
216
+ escapedPrefix,
217
+ type,
218
+ callback
219
+ ));
220
+ else if (((i = getIteratorFn(children)), "function" === typeof i))
221
+ for (
222
+ children = i.call(children), i = 0;
223
+ !(nameSoFar = children.next()).done;
224
+
225
+ )
226
+ (nameSoFar = nameSoFar.value),
227
+ (type = nextNamePrefix + getElementKey(nameSoFar, i++)),
228
+ (invokeCallback += mapIntoArray(
229
+ nameSoFar,
230
+ array,
231
+ escapedPrefix,
232
+ type,
233
+ callback
234
+ ));
235
+ else if ("object" === type) {
236
+ if ("function" === typeof children.then)
237
+ return mapIntoArray(
238
+ resolveThenable(children),
239
+ array,
240
+ escapedPrefix,
241
+ nameSoFar,
242
+ callback
243
+ );
244
+ array = String(children);
245
+ throw Error(
246
+ "Objects are not valid as a React child (found: " +
247
+ ("[object Object]" === array
248
+ ? "object with keys {" + Object.keys(children).join(", ") + "}"
249
+ : array) +
250
+ "). If you meant to render a collection of children, use an array instead."
251
+ );
252
+ }
253
+ return invokeCallback;
254
+ }
255
+ function mapChildren(children, func, context) {
256
+ if (null == children) return children;
257
+ var result = [],
258
+ count = 0;
259
+ mapIntoArray(children, result, "", "", function (child) {
260
+ return func.call(context, child, count++);
261
+ });
262
+ return result;
263
+ }
264
+ function lazyInitializer(payload) {
265
+ if (-1 === payload._status) {
266
+ var ctor = payload._result;
267
+ ctor = ctor();
268
+ ctor.then(
269
+ function (moduleObject) {
270
+ if (0 === payload._status || -1 === payload._status)
271
+ (payload._status = 1), (payload._result = moduleObject);
272
+ },
273
+ function (error) {
274
+ if (0 === payload._status || -1 === payload._status)
275
+ (payload._status = 2), (payload._result = error);
276
+ }
277
+ );
278
+ -1 === payload._status && ((payload._status = 0), (payload._result = ctor));
279
+ }
280
+ if (1 === payload._status) return payload._result.default;
281
+ throw payload._result;
282
+ }
283
+ var reportGlobalError =
284
+ "function" === typeof reportError
285
+ ? reportError
286
+ : function (error) {
287
+ if (
288
+ "object" === typeof window &&
289
+ "function" === typeof window.ErrorEvent
290
+ ) {
291
+ var event = new window.ErrorEvent("error", {
292
+ bubbles: !0,
293
+ cancelable: !0,
294
+ message:
295
+ "object" === typeof error &&
296
+ null !== error &&
297
+ "string" === typeof error.message
298
+ ? String(error.message)
299
+ : String(error),
300
+ error: error
301
+ });
302
+ if (!window.dispatchEvent(event)) return;
303
+ } else if (
304
+ "object" === typeof process &&
305
+ "function" === typeof process.emit
306
+ ) {
307
+ process.emit("uncaughtException", error);
308
+ return;
309
+ }
310
+ console.error(error);
311
+ },
312
+ Children = {
313
+ map: mapChildren,
314
+ forEach: function (children, forEachFunc, forEachContext) {
315
+ mapChildren(
316
+ children,
317
+ function () {
318
+ forEachFunc.apply(this, arguments);
319
+ },
320
+ forEachContext
321
+ );
322
+ },
323
+ count: function (children) {
324
+ var n = 0;
325
+ mapChildren(children, function () {
326
+ n++;
327
+ });
328
+ return n;
329
+ },
330
+ toArray: function (children) {
331
+ return (
332
+ mapChildren(children, function (child) {
333
+ return child;
334
+ }) || []
335
+ );
336
+ },
337
+ only: function (children) {
338
+ if (!isValidElement(children))
339
+ throw Error(
340
+ "React.Children.only expected to receive a single React element child."
341
+ );
342
+ return children;
343
+ }
344
+ };
345
+ exports.Activity = REACT_ACTIVITY_TYPE;
346
+ exports.Children = Children;
347
+ exports.Component = Component;
348
+ exports.Fragment = REACT_FRAGMENT_TYPE;
349
+ exports.Profiler = REACT_PROFILER_TYPE;
350
+ exports.PureComponent = PureComponent;
351
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
352
+ exports.Suspense = REACT_SUSPENSE_TYPE;
353
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
354
+ ReactSharedInternals;
355
+ exports.__COMPILER_RUNTIME = {
356
+ __proto__: null,
357
+ c: function (size) {
358
+ return ReactSharedInternals.H.useMemoCache(size);
359
+ }
360
+ };
361
+ exports.cache = function (fn) {
362
+ return function () {
363
+ return fn.apply(null, arguments);
364
+ };
365
+ };
366
+ exports.cacheSignal = function () {
367
+ return null;
368
+ };
369
+ exports.cloneElement = function (element, config, children) {
370
+ if (null === element || void 0 === element)
371
+ throw Error(
372
+ "The argument must be a React element, but you passed " + element + "."
373
+ );
374
+ var props = assign({}, element.props),
375
+ key = element.key;
376
+ if (null != config)
377
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
378
+ !hasOwnProperty.call(config, propName) ||
379
+ "key" === propName ||
380
+ "__self" === propName ||
381
+ "__source" === propName ||
382
+ ("ref" === propName && void 0 === config.ref) ||
383
+ (props[propName] = config[propName]);
384
+ var propName = arguments.length - 2;
385
+ if (1 === propName) props.children = children;
386
+ else if (1 < propName) {
387
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
388
+ childArray[i] = arguments[i + 2];
389
+ props.children = childArray;
390
+ }
391
+ return ReactElement(element.type, key, props);
392
+ };
393
+ exports.createContext = function (defaultValue) {
394
+ defaultValue = {
395
+ $$typeof: REACT_CONTEXT_TYPE,
396
+ _currentValue: defaultValue,
397
+ _currentValue2: defaultValue,
398
+ _threadCount: 0,
399
+ Provider: null,
400
+ Consumer: null
401
+ };
402
+ defaultValue.Provider = defaultValue;
403
+ defaultValue.Consumer = {
404
+ $$typeof: REACT_CONSUMER_TYPE,
405
+ _context: defaultValue
406
+ };
407
+ return defaultValue;
408
+ };
409
+ exports.createElement = function (type, config, children) {
410
+ var propName,
411
+ props = {},
412
+ key = null;
413
+ if (null != config)
414
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
415
+ hasOwnProperty.call(config, propName) &&
416
+ "key" !== propName &&
417
+ "__self" !== propName &&
418
+ "__source" !== propName &&
419
+ (props[propName] = config[propName]);
420
+ var childrenLength = arguments.length - 2;
421
+ if (1 === childrenLength) props.children = children;
422
+ else if (1 < childrenLength) {
423
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
424
+ childArray[i] = arguments[i + 2];
425
+ props.children = childArray;
426
+ }
427
+ if (type && type.defaultProps)
428
+ for (propName in ((childrenLength = type.defaultProps), childrenLength))
429
+ void 0 === props[propName] &&
430
+ (props[propName] = childrenLength[propName]);
431
+ return ReactElement(type, key, props);
432
+ };
433
+ exports.createRef = function () {
434
+ return { current: null };
435
+ };
436
+ exports.forwardRef = function (render) {
437
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
438
+ };
439
+ exports.isValidElement = isValidElement;
440
+ exports.lazy = function (ctor) {
441
+ return {
442
+ $$typeof: REACT_LAZY_TYPE,
443
+ _payload: { _status: -1, _result: ctor },
444
+ _init: lazyInitializer
445
+ };
446
+ };
447
+ exports.memo = function (type, compare) {
448
+ return {
449
+ $$typeof: REACT_MEMO_TYPE,
450
+ type: type,
451
+ compare: void 0 === compare ? null : compare
452
+ };
453
+ };
454
+ exports.startTransition = function (scope) {
455
+ var prevTransition = ReactSharedInternals.T,
456
+ currentTransition = {};
457
+ ReactSharedInternals.T = currentTransition;
458
+ try {
459
+ var returnValue = scope(),
460
+ onStartTransitionFinish = ReactSharedInternals.S;
461
+ null !== onStartTransitionFinish &&
462
+ onStartTransitionFinish(currentTransition, returnValue);
463
+ "object" === typeof returnValue &&
464
+ null !== returnValue &&
465
+ "function" === typeof returnValue.then &&
466
+ returnValue.then(noop, reportGlobalError);
467
+ } catch (error) {
468
+ reportGlobalError(error);
469
+ } finally {
470
+ null !== prevTransition &&
471
+ null !== currentTransition.types &&
472
+ (prevTransition.types = currentTransition.types),
473
+ (ReactSharedInternals.T = prevTransition);
474
+ }
475
+ };
476
+ exports.unstable_useCacheRefresh = function () {
477
+ return ReactSharedInternals.H.useCacheRefresh();
478
+ };
479
+ exports.use = function (usable) {
480
+ return ReactSharedInternals.H.use(usable);
481
+ };
482
+ exports.useActionState = function (action, initialState, permalink) {
483
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
484
+ };
485
+ exports.useCallback = function (callback, deps) {
486
+ return ReactSharedInternals.H.useCallback(callback, deps);
487
+ };
488
+ exports.useContext = function (Context) {
489
+ return ReactSharedInternals.H.useContext(Context);
490
+ };
491
+ exports.useDebugValue = function () {};
492
+ exports.useDeferredValue = function (value, initialValue) {
493
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
494
+ };
495
+ exports.useEffect = function (create, deps) {
496
+ return ReactSharedInternals.H.useEffect(create, deps);
497
+ };
498
+ exports.useEffectEvent = function (callback) {
499
+ return ReactSharedInternals.H.useEffectEvent(callback);
500
+ };
501
+ exports.useId = function () {
502
+ return ReactSharedInternals.H.useId();
503
+ };
504
+ exports.useImperativeHandle = function (ref, create, deps) {
505
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
506
+ };
507
+ exports.useInsertionEffect = function (create, deps) {
508
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
509
+ };
510
+ exports.useLayoutEffect = function (create, deps) {
511
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
512
+ };
513
+ exports.useMemo = function (create, deps) {
514
+ return ReactSharedInternals.H.useMemo(create, deps);
515
+ };
516
+ exports.useOptimistic = function (passthrough, reducer) {
517
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
518
+ };
519
+ exports.useReducer = function (reducer, initialArg, init) {
520
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
521
+ };
522
+ exports.useRef = function (initialValue) {
523
+ return ReactSharedInternals.H.useRef(initialValue);
524
+ };
525
+ exports.useState = function (initialState) {
526
+ return ReactSharedInternals.H.useState(initialState);
527
+ };
528
+ exports.useSyncExternalStore = function (
529
+ subscribe,
530
+ getSnapshot,
531
+ getServerSnapshot
532
+ ) {
533
+ return ReactSharedInternals.H.useSyncExternalStore(
534
+ subscribe,
535
+ getSnapshot,
536
+ getServerSnapshot
537
+ );
538
+ };
539
+ exports.useTransition = function () {
540
+ return ReactSharedInternals.H.useTransition();
541
+ };
542
+ exports.version = "19.2.7";