@perses-dev/clickhouse-plugin 0.6.0 → 0.7.0-beta.2

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 (211) hide show
  1. package/__mf/js/{ClickHouse.4e6199f7.js → ClickHouse.d554fc35.js} +4 -4
  2. package/__mf/js/async/1522.d8e80570.js +22 -0
  3. package/__mf/js/async/1616.8ee37fc2.js +1 -0
  4. package/__mf/js/async/2043.33c976ff.js +2 -0
  5. package/__mf/js/async/2650.27d5a53e.js +3 -0
  6. package/__mf/js/async/2901.98424a07.js +1 -0
  7. package/__mf/js/async/3181.7b46b8e9.js +2 -0
  8. package/__mf/js/async/392.54a0693e.js +2 -0
  9. package/__mf/js/async/3944.f70c2037.js +10 -0
  10. package/__mf/js/async/4077.5b0edb67.js +1 -0
  11. package/__mf/js/async/4121.0b653ee5.js +2 -0
  12. package/__mf/js/async/4496.23de7e47.js +1 -0
  13. package/__mf/js/async/4569.ffd2c654.js +7 -0
  14. package/__mf/js/async/{6155.1398a410.js.LICENSE.txt → 4569.ffd2c654.js.LICENSE.txt} +41 -1
  15. package/__mf/js/async/5002.2cee2f35.js +1 -0
  16. package/__mf/js/async/5071.fe3eb282.js +1 -0
  17. package/__mf/js/async/5440.6cfd6f26.js +2 -0
  18. package/__mf/js/async/5562.c5ce26e1.js +2 -0
  19. package/__mf/js/async/5587.9797bc5a.js +1 -0
  20. package/__mf/js/async/560.acc0c2d1.js +37 -0
  21. package/__mf/js/async/6045.93765a0a.js +1 -0
  22. package/__mf/js/async/6274.35dc924b.js +2 -0
  23. package/__mf/js/async/7192.f4e0055e.js +1 -0
  24. package/__mf/js/async/7862.306edb3f.js +2 -0
  25. package/__mf/js/async/7943.a43cb4a7.js +2 -0
  26. package/__mf/js/async/7968.a73d7acd.js +1 -0
  27. package/__mf/js/async/7978.e22f59c6.js +1 -0
  28. package/__mf/js/async/8356.d102e817.js +1 -0
  29. package/__mf/js/async/8470.4652ca18.js +2 -0
  30. package/__mf/js/async/873.cae3f07a.js +1 -0
  31. package/__mf/js/async/9001.0b1d67e2.js +102 -0
  32. package/__mf/js/async/9207.b184be58.js +1 -0
  33. package/__mf/js/async/9235.0aff6249.js +1 -0
  34. package/__mf/js/async/941.26e4a6ef.js +2 -0
  35. package/__mf/js/async/9588.a36eacf5.js +1 -0
  36. package/__mf/js/async/__federation_expose_ClickHouseDatasource.1eba91f6.js +2 -0
  37. package/__mf/js/async/__federation_expose_ClickHouseLogQuery.27676311.js +20 -0
  38. package/__mf/js/async/__federation_expose_ClickHouseTimeSeriesQuery.3d225a5d.js +20 -0
  39. package/__mf/js/{main.39993ad6.js → main.5353a8fc.js} +2 -2
  40. package/lib/bootstrap.js +2 -2
  41. package/lib/components/ClickQLEditor.d.ts +2 -2
  42. package/lib/components/ClickQLEditor.d.ts.map +1 -1
  43. package/lib/components/ClickQLEditor.js +3 -3
  44. package/lib/components/ClickQLEditor.js.map +1 -1
  45. package/lib/components/index.js +1 -1
  46. package/lib/components/index.js.map +1 -1
  47. package/lib/datasources/click-house-datasource/ClickHouseDatasource.d.ts +2 -2
  48. package/lib/datasources/click-house-datasource/ClickHouseDatasource.d.ts.map +1 -1
  49. package/lib/datasources/click-house-datasource/ClickHouseDatasource.js +2 -2
  50. package/lib/datasources/click-house-datasource/ClickHouseDatasource.js.map +1 -1
  51. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.d.ts +2 -2
  52. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.d.ts.map +1 -1
  53. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.js +1 -1
  54. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.js.map +1 -1
  55. package/lib/datasources/click-house-datasource/click-house-datasource-types.d.ts +3 -3
  56. package/lib/datasources/click-house-datasource/click-house-datasource-types.d.ts.map +1 -1
  57. package/lib/datasources/click-house-datasource/click-house-datasource-types.js.map +1 -1
  58. package/lib/datasources/click-house-datasource/index.js +3 -3
  59. package/lib/datasources/click-house-datasource/index.js.map +1 -1
  60. package/lib/datasources/index.js +1 -1
  61. package/lib/datasources/index.js.map +1 -1
  62. package/lib/getPluginModule.d.ts +1 -1
  63. package/lib/getPluginModule.d.ts.map +1 -1
  64. package/lib/getPluginModule.js +3 -1
  65. package/lib/getPluginModule.js.map +1 -1
  66. package/lib/index-federation.js +1 -1
  67. package/lib/index.js +3 -3
  68. package/lib/index.js.map +1 -1
  69. package/lib/model/click-house-client.d.ts +1 -1
  70. package/lib/model/click-house-client.d.ts.map +1 -1
  71. package/lib/model/click-house-client.js +3 -1
  72. package/lib/model/click-house-client.js.map +1 -1
  73. package/lib/model/click-house-data-types.d.ts +1 -1
  74. package/lib/model/click-house-data-types.d.ts.map +1 -1
  75. package/lib/model/click-house-data-types.js.map +1 -1
  76. package/lib/queries/click-house-log-query/ClickHouseLogQuery.d.ts +2 -2
  77. package/lib/queries/click-house-log-query/ClickHouseLogQuery.d.ts.map +1 -1
  78. package/lib/queries/click-house-log-query/ClickHouseLogQuery.js +4 -6
  79. package/lib/queries/click-house-log-query/ClickHouseLogQuery.js.map +1 -1
  80. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.d.ts +3 -3
  81. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.d.ts.map +1 -1
  82. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.js +9 -9
  83. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.js.map +1 -1
  84. package/lib/queries/click-house-log-query/click-house-log-query-types.d.ts +1 -1
  85. package/lib/queries/click-house-log-query/click-house-log-query-types.d.ts.map +1 -1
  86. package/lib/queries/click-house-log-query/click-house-log-query-types.js.map +1 -1
  87. package/lib/queries/click-house-log-query/get-click-house-log-data.d.ts +2 -2
  88. package/lib/queries/click-house-log-query/get-click-house-log-data.d.ts.map +1 -1
  89. package/lib/queries/click-house-log-query/get-click-house-log-data.js +4 -4
  90. package/lib/queries/click-house-log-query/get-click-house-log-data.js.map +1 -1
  91. package/lib/queries/click-house-log-query/index.js +4 -4
  92. package/lib/queries/click-house-log-query/index.js.map +1 -1
  93. package/lib/queries/click-house-time-series-query/ClickHouseQuery.d.ts +2 -2
  94. package/lib/queries/click-house-time-series-query/ClickHouseQuery.d.ts.map +1 -1
  95. package/lib/queries/click-house-time-series-query/ClickHouseQuery.js +4 -6
  96. package/lib/queries/click-house-time-series-query/ClickHouseQuery.js.map +1 -1
  97. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.d.ts +3 -3
  98. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.d.ts.map +1 -1
  99. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.js +9 -9
  100. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.js.map +1 -1
  101. package/lib/queries/click-house-time-series-query/click-house-query-types.d.ts +1 -1
  102. package/lib/queries/click-house-time-series-query/click-house-query-types.d.ts.map +1 -1
  103. package/lib/queries/click-house-time-series-query/click-house-query-types.js.map +1 -1
  104. package/lib/queries/click-house-time-series-query/get-click-house-data.d.ts +2 -2
  105. package/lib/queries/click-house-time-series-query/get-click-house-data.d.ts.map +1 -1
  106. package/lib/queries/click-house-time-series-query/get-click-house-data.js +5 -5
  107. package/lib/queries/click-house-time-series-query/get-click-house-data.js.map +1 -1
  108. package/lib/queries/click-house-time-series-query/index.js +4 -4
  109. package/lib/queries/click-house-time-series-query/index.js.map +1 -1
  110. package/lib/queries/index.js +2 -2
  111. package/lib/queries/index.js.map +1 -1
  112. package/lib/queries/query-editor-model.d.ts +1 -1
  113. package/lib/queries/query-editor-model.d.ts.map +1 -1
  114. package/lib/queries/query-editor-model.js +2 -2
  115. package/lib/queries/query-editor-model.js.map +1 -1
  116. package/lib/setup-tests.d.ts +1 -1
  117. package/lib/setup-tests.d.ts.map +1 -1
  118. package/lib/setup-tests.js +2 -2
  119. package/lib/setup-tests.js.map +1 -1
  120. package/mf-manifest.json +69 -98
  121. package/mf-stats.json +69 -102
  122. package/package.json +21 -13
  123. package/__mf/js/async/1616.c86fdd40.js +0 -1
  124. package/__mf/js/async/1728.a4ac7d54.js +0 -1
  125. package/__mf/js/async/1811.29b51780.js +0 -101
  126. package/__mf/js/async/1825.299edaf9.js +0 -1
  127. package/__mf/js/async/1969.ea0bd5b9.js +0 -1
  128. package/__mf/js/async/2043.13379b9d.js +0 -2
  129. package/__mf/js/async/2386.56de292b.js +0 -2
  130. package/__mf/js/async/3059.3d9dad23.js +0 -1
  131. package/__mf/js/async/3181.f3124eab.js +0 -2
  132. package/__mf/js/async/392.c8af2244.js +0 -2
  133. package/__mf/js/async/3981.9bd5679b.js +0 -3
  134. package/__mf/js/async/4121.b6afa425.js +0 -2
  135. package/__mf/js/async/4233.abbba3f6.js +0 -7
  136. package/__mf/js/async/4233.abbba3f6.js.LICENSE.txt +0 -39
  137. package/__mf/js/async/5002.9167d87e.js +0 -1
  138. package/__mf/js/async/5071.a039a221.js +0 -1
  139. package/__mf/js/async/5440.898ddc2f.js +0 -2
  140. package/__mf/js/async/5481.223427f5.js +0 -2
  141. package/__mf/js/async/5562.d4359565.js +0 -2
  142. package/__mf/js/async/5587.72383e00.js +0 -1
  143. package/__mf/js/async/599.e213c21c.js +0 -1
  144. package/__mf/js/async/6045.9b807b97.js +0 -1
  145. package/__mf/js/async/6155.1398a410.js +0 -2
  146. package/__mf/js/async/6274.22bd6f34.js +0 -2
  147. package/__mf/js/async/6688.abdc25f6.js +0 -2
  148. package/__mf/js/async/7177.96ff5c4d.js +0 -1
  149. package/__mf/js/async/7192.c1f998d2.js +0 -1
  150. package/__mf/js/async/7968.ae66f60b.js +0 -1
  151. package/__mf/js/async/7978.a58ed5ff.js +0 -1
  152. package/__mf/js/async/7984.549ad1a9.js +0 -22
  153. package/__mf/js/async/8356.eda63865.js +0 -1
  154. package/__mf/js/async/8470.3ae4fba1.js +0 -2
  155. package/__mf/js/async/873.e4ddcabf.js +0 -1
  156. package/__mf/js/async/9235.aeb9d818.js +0 -1
  157. package/__mf/js/async/941.11ea3ddf.js +0 -2
  158. package/__mf/js/async/9588.d09a1141.js +0 -1
  159. package/__mf/js/async/9754.9ea7778b.js +0 -10
  160. package/__mf/js/async/9836.75f99110.js +0 -1
  161. package/__mf/js/async/9877.8f08e12a.js +0 -38
  162. package/__mf/js/async/__federation_expose_ClickHouseDatasource.0e124aef.js +0 -2
  163. package/__mf/js/async/__federation_expose_ClickHouseLogQuery.605ad0d2.js +0 -20
  164. package/__mf/js/async/__federation_expose_ClickHouseTimeSeriesQuery.a7927056.js +0 -20
  165. package/__mf/js/async/__federation_expose_ClickHouseTimeSeriesQuery.a7927056.js.LICENSE.txt +0 -9
  166. package/lib/cjs/bootstrap.js +0 -26
  167. package/lib/cjs/components/ClickQLEditor.js +0 -72
  168. package/lib/cjs/components/constants.js +0 -41
  169. package/lib/cjs/components/index.js +0 -30
  170. package/lib/cjs/datasources/click-house-datasource/ClickHouseDatasource.js +0 -49
  171. package/lib/cjs/datasources/click-house-datasource/ClickHouseDatasourceEditor.js +0 -51
  172. package/lib/cjs/datasources/click-house-datasource/click-house-datasource-types.js +0 -16
  173. package/lib/cjs/datasources/click-house-datasource/index.js +0 -32
  174. package/lib/cjs/datasources/index.js +0 -30
  175. package/lib/cjs/env.d.js +0 -14
  176. package/lib/cjs/getPluginModule.js +0 -39
  177. package/lib/cjs/index-federation.js +0 -55
  178. package/lib/cjs/index.js +0 -38
  179. package/lib/cjs/model/click-house-client.js +0 -83
  180. package/lib/cjs/model/click-house-data-types.js +0 -16
  181. package/lib/cjs/queries/click-house-log-query/ClickHouseLogQuery.js +0 -45
  182. package/lib/cjs/queries/click-house-log-query/ClickHouseLogQueryEditor.js +0 -104
  183. package/lib/cjs/queries/click-house-log-query/click-house-log-query-types.js +0 -16
  184. package/lib/cjs/queries/click-house-log-query/get-click-house-log-data.js +0 -93
  185. package/lib/cjs/queries/click-house-log-query/index.js +0 -33
  186. package/lib/cjs/queries/click-house-time-series-query/ClickHouseQuery.js +0 -43
  187. package/lib/cjs/queries/click-house-time-series-query/ClickHouseQueryEditor.js +0 -104
  188. package/lib/cjs/queries/click-house-time-series-query/click-house-query-types.js +0 -16
  189. package/lib/cjs/queries/click-house-time-series-query/get-click-house-data.js +0 -116
  190. package/lib/cjs/queries/click-house-time-series-query/index.js +0 -33
  191. package/lib/cjs/queries/constants.js +0 -34
  192. package/lib/cjs/queries/index.js +0 -31
  193. package/lib/cjs/queries/query-editor-model.js +0 -53
  194. package/lib/cjs/setup-tests.js +0 -19
  195. /package/__mf/css/async/{4233.85c2cbf6.css → 4569.85c2cbf6.css} +0 -0
  196. /package/__mf/js/async/{7984.549ad1a9.js.LICENSE.txt → 1522.d8e80570.js.LICENSE.txt} +0 -0
  197. /package/__mf/js/async/{2043.13379b9d.js.LICENSE.txt → 2043.33c976ff.js.LICENSE.txt} +0 -0
  198. /package/__mf/js/async/{2386.56de292b.js.LICENSE.txt → 3181.7b46b8e9.js.LICENSE.txt} +0 -0
  199. /package/__mf/js/async/{392.c8af2244.js.LICENSE.txt → 392.54a0693e.js.LICENSE.txt} +0 -0
  200. /package/__mf/js/async/{9754.9ea7778b.js.LICENSE.txt → 3944.f70c2037.js.LICENSE.txt} +0 -0
  201. /package/__mf/js/async/{4121.b6afa425.js.LICENSE.txt → 4121.0b653ee5.js.LICENSE.txt} +0 -0
  202. /package/__mf/js/async/{5440.898ddc2f.js.LICENSE.txt → 5440.6cfd6f26.js.LICENSE.txt} +0 -0
  203. /package/__mf/js/async/{3181.f3124eab.js.LICENSE.txt → 5562.c5ce26e1.js.LICENSE.txt} +0 -0
  204. /package/__mf/js/async/{6274.22bd6f34.js.LICENSE.txt → 6274.35dc924b.js.LICENSE.txt} +0 -0
  205. /package/__mf/js/async/{5481.223427f5.js.LICENSE.txt → 7862.306edb3f.js.LICENSE.txt} +0 -0
  206. /package/__mf/js/async/{5562.d4359565.js.LICENSE.txt → 7943.a43cb4a7.js.LICENSE.txt} +0 -0
  207. /package/__mf/js/async/{8470.3ae4fba1.js.LICENSE.txt → 8470.4652ca18.js.LICENSE.txt} +0 -0
  208. /package/__mf/js/async/{6688.abdc25f6.js.LICENSE.txt → 941.26e4a6ef.js.LICENSE.txt} +0 -0
  209. /package/__mf/js/async/{941.11ea3ddf.js.LICENSE.txt → __federation_expose_ClickHouseDatasource.1eba91f6.js.LICENSE.txt} +0 -0
  210. /package/__mf/js/async/{__federation_expose_ClickHouseDatasource.0e124aef.js.LICENSE.txt → __federation_expose_ClickHouseLogQuery.27676311.js.LICENSE.txt} +0 -0
  211. /package/__mf/js/async/{__federation_expose_ClickHouseLogQuery.605ad0d2.js.LICENSE.txt → __federation_expose_ClickHouseTimeSeriesQuery.3d225a5d.js.LICENSE.txt} +0 -0
@@ -28,10 +28,50 @@
28
28
  * MIT Licence
29
29
  */
30
30
 
31
+ /**
32
+ * match-sorter-utils
33
+ *
34
+ * Copyright (c) TanStack
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE.md file in the root directory of this source tree.
38
+ *
39
+ * @license MIT
40
+ */
41
+
42
+ /**
43
+ * react-table
44
+ *
45
+ * Copyright (c) TanStack
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE.md file in the root directory of this source tree.
49
+ *
50
+ * @license MIT
51
+ */
52
+
53
+ /**
54
+ * table-core
55
+ *
56
+ * Copyright (c) TanStack
57
+ *
58
+ * This source code is licensed under the MIT license found in the
59
+ * LICENSE.md file in the root directory of this source tree.
60
+ *
61
+ * @license MIT
62
+ */
63
+
31
64
  /**
32
65
  * @license Fraction.js v4.3.7 31/08/2023
33
66
  * https://www.xarg.org/2014/03/rational-numbers-in-javascript/
34
67
  *
35
68
  * Copyright (c) 2023, Robert Eisele (robert@raw.org)
36
69
  * Dual licensed under the MIT or GPL Version 2 licenses.
37
- **/
70
+ **/
71
+
72
+ /**
73
+ * @name match-sorter
74
+ * @license MIT license.
75
+ * @copyright (c) 2099 Kent C. Dodds
76
+ * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
77
+ */
@@ -0,0 +1 @@
1
+ "use strict";(self.chunk_ClickHouse_0_7_0_beta_2=self.chunk_ClickHouse_0_7_0_beta_2||[]).push([["5002"],{19597(e,r,t){t.d(r,{A:()=>n});function n(e){var r=Object.create(null);return function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}}},37696(e,r,t){t.d(r,{J:()=>v});var n,o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=t(19597),i=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,a.A)(function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()}),d=function(e,r){switch(e){case"animation":case"animationName":if("string"==typeof r)return r.replace(l,function(e,r,t){return n={name:r,styles:t,next:n},r})}return 1===o[e]||s(e)||"number"!=typeof r||0===r?r:r+"px"};function f(e,r,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return n={name:t.name,styles:t.styles,next:n},t.name;if(void 0!==t.styles){var o=t.next;if(void 0!==o)for(;void 0!==o;)n={name:o.name,styles:o.styles,next:n},o=o.next;return t.styles+";"}return function(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=f(e,r,t[o])+";";else for(var a in t){var i=t[a];if("object"!=typeof i)null!=r&&void 0!==r[i]?n+=a+"{"+r[i]+"}":u(i)&&(n+=c(a)+":"+d(a,i)+";");else if(Array.isArray(i)&&"string"==typeof i[0]&&(null==r||void 0===r[i[0]]))for(var l=0;l<i.length;l++)u(i[l])&&(n+=c(a)+":"+d(a,i[l])+";");else{var s=f(e,r,i);switch(a){case"animation":case"animationName":n+=c(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}}return n}(e,r,t);case"function":if(void 0!==e){var a=n,i=t(e);return n=a,f(e,r,i)}}if(null==r)return t;var l=r[t];return void 0!==l?l:t}var m=/label:\s*([^\s;{]+)\s*(;|$)/g;function v(e,r,t){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o,a=!0,i="";n=void 0;var l=e[0];null==l||void 0===l.raw?(a=!1,i+=f(t,r,l)):i+=l[0];for(var s=1;s<e.length;s++)i+=f(t,r,e[s]),a&&(i+=l[s]);m.lastIndex=0;for(var u="";null!==(o=m.exec(i));)u+="-"+o[1];return{name:function(e){for(var r,t=0,n=0,o=e.length;o>=4;++n,o-=4)r=(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((r>>>16)*59797<<16),r^=r>>>24,t=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)^(65535&t)*0x5bd1e995+((t>>>16)*59797<<16);switch(o){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t^=255&e.charCodeAt(n),t=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)}return t^=t>>>13,(((t=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16))^t>>>15)>>>0).toString(36)}(i)+u,styles:i,next:n}}},68102(e,r,t){t.d(r,{A:()=>n});function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.chunk_ClickHouse_0_7_0_beta_2=self.chunk_ClickHouse_0_7_0_beta_2||[]).push([["5071"],{50293(t,e,n){n.d(e,{F:()=>r});function r(t,e){let n=Math.abs(t).toString().padStart(e,"0");return(t<0?"-":"")+n}},350(t,e,n){n.d(e,{E:()=>i,q:()=>a});let r={};function a(){return r}function i(t){r=t}},37908(t,e,n){n.d(e,{C:()=>a});var r=n(50293);let a={y(t,e){let n=t.getFullYear(),a=n>0?n:1-n;return(0,r.F)("yy"===e?a%100:a,e.length)},M(t,e){let n=t.getMonth();return"M"===e?String(n+1):(0,r.F)(n+1,2)},d:(t,e)=>(0,r.F)(t.getDate(),e.length),a(t,e){let n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(t,e)=>(0,r.F)(t.getHours()%12||12,e.length),H:(t,e)=>(0,r.F)(t.getHours(),e.length),m:(t,e)=>(0,r.F)(t.getMinutes(),e.length),s:(t,e)=>(0,r.F)(t.getSeconds(),e.length),S(t,e){let n=e.length,a=Math.trunc(t.getMilliseconds()*Math.pow(10,n-3));return(0,r.F)(a,e.length)}}},72710(t,e,n){n.d(e,{m:()=>i});let r=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},a=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},i={p:a,P:(t,e)=>{let n,i=t.match(/(P+)(p+)?/)||[],o=i[1],u=i[2];if(!u)return r(t,e);switch(o){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",r(o,e)).replace("{{time}}",a(u,e))}}},63134(t,e,n){n.d(e,{G:()=>a});var r=n(4721);function a(t){let e=(0,r.a)(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),t-n}},79147(t,e,n){n.d(e,{x:()=>a});var r=n(12015);function a(t,...e){let n=r.w.bind(null,t||e.find(t=>"object"==typeof t));return e.map(n)}},43743(t,e,n){n.d(e,{Ss:()=>s,ef:()=>o,xM:()=>u});let r=/^D+$/,a=/^Y+$/,i=["D","DD","YY","YYYY"];function o(t){return r.test(t)}function u(t){return a.test(t)}function s(t,e,n){var r,a,o;let u,s=(r=t,a=e,o=n,u="Y"===r[0]?"years":"days of the month",`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${a}\`) for formatting ${u} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(s),i.includes(t))throw RangeError(s)}},30439(t,e,n){n.d(e,{BM:()=>s,Ki:()=>r,Mf:()=>u,Z7:()=>d,_P:()=>l,my:()=>a,s0:()=>o,w4:()=>i});let r=365.2425,a=6048e5,i=864e5,o=36e5,u=0x1e18558,s=2629746,d=7889238,l=Symbol.for("constructDateFrom")},12015(t,e,n){n.d(e,{w:()=>a});var r=n(30439);function a(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&r._P in t?t[r._P](e):t instanceof Date?new t.constructor(e):new Date(e)}},72077(t,e,n){n.d(e,{m:()=>u});var r=n(63134),a=n(79147),i=n(30439),o=n(18109);function u(t,e,n){let[u,s]=(0,a.x)(n?.in,t,e),d=(0,o.o)(u),l=(0,o.o)(s);return Math.round((d-(0,r.G)(d)-(l-(0,r.G)(l)))/i.w4)}},96962(t,e,n){n.d(e,{_J:()=>h,GP:()=>F,m:()=>w.m,Yq:()=>F});var r=n(67671),a=n(350),i=n(4398),o=n(92913),u=n(51528),s=n(55578),d=n(33191),l=n(50293),c=n(37908);let h={G:function(t,e,n){let r=+(t.getFullYear()>0);switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){let e=t.getFullYear();return n.ordinalNumber(e>0?e:1-e,{unit:"year"})}return c.C.y(t,e)},Y:function(t,e,n,r){let a=(0,d.h)(t,r),i=a>0?a:1-a;if("YY"===e){let t=i%100;return(0,l.F)(t,2)}return"Yo"===e?n.ordinalNumber(i,{unit:"year"}):(0,l.F)(i,e.length)},R:function(t,e){let n=(0,u.p)(t);return(0,l.F)(n,e.length)},u:function(t,e){let n=t.getFullYear();return(0,l.F)(n,e.length)},Q:function(t,e,n){let r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return(0,l.F)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){let r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return(0,l.F)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){let r=t.getMonth();switch(e){case"M":case"MM":return c.C.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){let r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return(0,l.F)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){let a=(0,s.N)(t,r);return"wo"===e?n.ordinalNumber(a,{unit:"week"}):(0,l.F)(a,e.length)},I:function(t,e,n){let r=(0,o.s)(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):(0,l.F)(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getDate(),{unit:"date"}):c.C.d(t,e)},D:function(t,e,n){let r=(0,i.F)(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,l.F)(r,e.length)},E:function(t,e,n){let r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){let a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return(0,l.F)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){let a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return(0,l.F)(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){let r=t.getDay(),a=0===r?7:r;switch(e){case"i":return String(a);case"ii":return(0,l.F)(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){let r,a=t.getHours();switch(r=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){let r,a=t.getHours();switch(r=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return c.C.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getHours(),{unit:"hour"}):c.C.H(t,e)},K:function(t,e,n){let r=t.getHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):(0,l.F)(r,e.length)},k:function(t,e,n){let r=t.getHours();return(0===r&&(r=24),"ko"===e)?n.ordinalNumber(r,{unit:"hour"}):(0,l.F)(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):c.C.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getSeconds(),{unit:"second"}):c.C.s(t,e)},S:function(t,e){return c.C.S(t,e)},X:function(t,e,n){let r=t.getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return f(r);case"XXXX":case"XX":return g(r);default:return g(r,":")}},x:function(t,e,n){let r=t.getTimezoneOffset();switch(e){case"x":return f(r);case"xxxx":case"xx":return g(r);default:return g(r,":")}},O:function(t,e,n){let r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+m(r,":");default:return"GMT"+g(r,":")}},z:function(t,e,n){let r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+m(r,":");default:return"GMT"+g(r,":")}},t:function(t,e,n){let r=Math.trunc(t/1e3);return(0,l.F)(r,e.length)},T:function(t,e,n){return(0,l.F)(+t,e.length)}};function m(t,e=""){let n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),i=r%60;return 0===i?n+String(a):n+String(a)+e+(0,l.F)(i,2)}function f(t,e){return t%60==0?(t>0?"-":"+")+(0,l.F)(Math.abs(t)/60,2):g(t,e)}function g(t,e=""){let n=Math.abs(t);return(t>0?"-":"+")+(0,l.F)(Math.trunc(n/60),2)+e+(0,l.F)(n%60,2)}var w=n(72710),b=n(43743),y=n(268),p=n(4721);let v=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,k=/^'([^]*?)'?$/,x=/''/g,P=/[a-zA-Z]/;function F(t,e,n){let i=(0,a.q)(),o=n?.locale??i.locale??r.c,u=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,d=(0,p.a)(t,n?.in);if(!(0,y.f)(d))throw RangeError("Invalid time value");let l=e.match(M).map(t=>{let e=t[0];return"p"===e||"P"===e?(0,w.m[e])(t,o.formatLong):t}).join("").match(v).map(t=>{if("''"===t)return{isToken:!1,value:"'"};let e=t[0];if("'"===e){var n;let e;return{isToken:!1,value:(e=(n=t).match(k))?e[1].replace(x,"'"):n}}if(h[e])return{isToken:!0,value:t};if(e.match(P))throw RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}});o.localize.preprocessor&&(l=o.localize.preprocessor(d,l));let c={firstWeekContainsDate:u,weekStartsOn:s,locale:o};return l.map(r=>{if(!r.isToken)return r.value;let a=r.value;return(!n?.useAdditionalWeekYearTokens&&(0,b.xM)(a)||!n?.useAdditionalDayOfYearTokens&&(0,b.ef)(a))&&(0,b.Ss)(a,e,String(t)),(0,h[a[0]])(d,a,o.localize,c)}).join("")}},4398(t,e,n){n.d(e,{F:()=>o});var r=n(72077),a=n(96058),i=n(4721);function o(t,e){let n=(0,i.a)(t,e?.in);return(0,r.m)(n,(0,a.D)(n))+1}},92913(t,e,n){n.d(e,{s:()=>u});var r=n(30439),a=n(29350),i=n(16363),o=n(4721);function u(t,e){let n=(0,o.a)(t,e?.in);return Math.round(((0,a.b)(n)-(0,i.w)(n))/r.my)+1}},51528(t,e,n){n.d(e,{p:()=>o});var r=n(12015),a=n(29350),i=n(4721);function o(t,e){let n=(0,i.a)(t,e?.in),o=n.getFullYear(),u=(0,r.w)(n,0);u.setFullYear(o+1,0,4),u.setHours(0,0,0,0);let s=(0,a.b)(u),d=(0,r.w)(n,0);d.setFullYear(o,0,4),d.setHours(0,0,0,0);let l=(0,a.b)(d);return n.getTime()>=s.getTime()?o+1:n.getTime()>=l.getTime()?o:o-1}},55578(t,e,n){n.d(e,{N:()=>u});var r=n(30439),a=n(53819),i=n(16558),o=n(4721);function u(t,e){let n=(0,o.a)(t,e?.in);return Math.round(((0,a.k)(n,e)-(0,i.b)(n,e))/r.my)+1}},33191(t,e,n){n.d(e,{h:()=>u});var r=n(350),a=n(12015),i=n(53819),o=n(4721);function u(t,e){let n=(0,o.a)(t,e?.in),u=n.getFullYear(),s=(0,r.q)(),d=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=(0,a.w)(e?.in||t,0);l.setFullYear(u+1,0,d),l.setHours(0,0,0,0);let c=(0,i.k)(l,e),h=(0,a.w)(e?.in||t,0);h.setFullYear(u,0,d),h.setHours(0,0,0,0);let m=(0,i.k)(h,e);return+n>=+c?u+1:+n>=+m?u:u-1}},15708(t,e,n){n.d(e,{$:()=>r});function r(t){return t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)}},268(t,e,n){n.d(e,{f:()=>i});var r=n(15708),a=n(4721);function i(t){return!(!(0,r.$)(t)&&"number"!=typeof t||isNaN(+(0,a.a)(t)))}},67671(t,e,n){var r;n.d(e,{c:()=>l});let a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(t){return (e={})=>{let n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}let o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(t){return(e,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&t.formattingValues){let e=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):e;r=t.formattingValues[a]||t.formattingValues[e]}else{let e=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;r=t.values[a]||t.values[e]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function d(t){return(e,n={})=>{let r,a=n.width,i=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;let u=o[0],s=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(s)?function(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}(s,t=>t.test(u)):function(t,e){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}(s,t=>t.test(u));return r=t.valueCallback?t.valueCallback(d):d,{value:r=n.valueCallback?n.valueCallback(r):r,rest:e.slice(u.length)}}}let l={code:"en-US",formatDistance:(t,e,n)=>{let r,i=a[t];if(r="string"==typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),n?.addSuffix)if(n.comparison&&n.comparison>0)return"in "+r;else return r+" ago";return r},formatLong:o,formatRelative:(t,e,n,r)=>u[t],localize:{ordinalNumber:(t,e)=>{let n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{let n=t.match(r.matchPattern);if(!n)return null;let a=n[0],i=t.match(r.parsePattern);if(!i)return null;let o=r.valueCallback?r.valueCallback(i[0]):i[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(a.length)}}),era:d({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:d({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:d({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:d({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},18109(t,e,n){n.d(e,{o:()=>a});var r=n(4721);function a(t,e){let n=(0,r.a)(t,e?.in);return n.setHours(0,0,0,0),n}},29350(t,e,n){n.d(e,{b:()=>a});var r=n(53819);function a(t,e){return(0,r.k)(t,{...e,weekStartsOn:1})}},16363(t,e,n){n.d(e,{w:()=>o});var r=n(12015),a=n(51528),i=n(29350);function o(t,e){let n=(0,a.p)(t,e),o=(0,r.w)(e?.in||t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),(0,i.b)(o)}},53819(t,e,n){n.d(e,{k:()=>i});var r=n(350),a=n(4721);function i(t,e){let n=(0,r.q)(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=(0,a.a)(t,e?.in),u=o.getDay();return o.setDate(o.getDate()-(7*(u<i)+u-i)),o.setHours(0,0,0,0),o}},16558(t,e,n){n.d(e,{b:()=>u});var r=n(350),a=n(12015),i=n(33191),o=n(53819);function u(t,e){let n=(0,r.q)(),u=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=(0,i.h)(t,e),d=(0,a.w)(e?.in||t,0);return d.setFullYear(s,0,u),d.setHours(0,0,0,0),(0,o.k)(d,e)}},96058(t,e,n){n.d(e,{D:()=>a});var r=n(4721);function a(t,e){let n=(0,r.a)(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}},4721(t,e,n){n.d(e,{a:()=>a});var r=n(12015);function a(t,e){return(0,r.w)(e||t,t)}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 5440.6cfd6f26.js.LICENSE.txt */
2
+ "use strict";(self.chunk_ClickHouse_0_7_0_beta_2=self.chunk_ClickHouse_0_7_0_beta_2||[]).push([["5440"],{53299(e,t,r){r.r(t),r.d(t,{useFetchers:()=>rU,unstable_HistoryRouter:()=>rv,useLoaderData:()=>tk,ScrollRestoration:()=>rS,Route:()=>tW,MemoryRouter:()=>tI,useMatches:()=>tL,redirect:()=>et,useOutletContext:()=>tc,createRoutesFromElements:()=>tG,useLinkClickHandler:()=>rC,useRouteError:()=>tU,generatePath:()=>M,replace:()=>en,useHref:()=>tr,useParams:()=>th,UNSAFE_ViewTransitionContext:()=>ro,useRoutes:()=>tp,useSubmit:()=>rk,UNSAFE_NavigationContext:()=>e8,Navigate:()=>tz,UNSAFE_ErrorResponseImpl:()=>ea,UNSAFE_FetchersContext:()=>ri,useAsyncError:()=>tj,createRoutesFromChildren:()=>tG,unstable_usePrompt:()=>rF,useFetcher:()=>rA,useBlocker:()=>tO,createHashRouter:()=>rn,UNSAFE_useRouteId:()=>tC,useMatch:()=>ti,useNavigation:()=>tP,HashRouter:()=>rm,useFormAction:()=>r_,useResolvedPath:()=>tf,defer:()=>ee,Router:()=>t$,Routes:()=>tV,useActionData:()=>tA,useRouteLoaderData:()=>t_,Await:()=>tJ,matchPath:()=>O,UNSAFE_DataRouterContext:()=>e3,BrowserRouter:()=>rp,NavigationType:()=>c,Form:()=>rE,UNSAFE_RouteContext:()=>te,createSearchParams:()=>t3,RouterProvider:()=>rh,UNSAFE_LocationContext:()=>e6,parsePath:()=>P,Outlet:()=>tH,createMemoryRouter:()=>t0,UNSAFE_useScrollRestoration:()=>rM,useNavigate:()=>ts,matchRoutes:()=>_,createPath:()=>C,resolvePath:()=>I,useInRouterContext:()=>tn,useOutlet:()=>td,useAsyncValue:()=>tT,useViewTransitionState:()=>rN,Link:()=>rw,AbortedDeferredError:()=>Q,renderMatches:()=>tQ,NavLink:()=>rb,UNSAFE_DataRouterStateContext:()=>e5,json:()=>G,useSearchParams:()=>rP,redirectDocument:()=>er,useBeforeUnload:()=>rO,useLocation:()=>ta,createBrowserRouter:()=>rr,isRouteErrorResponse:()=>eo,useNavigationType:()=>to,useRevalidator:()=>tD});var n,a,o,i,l,s,u,c,d,h,f,p=r(70451),m=r(20231);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}(n=c||(c={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";let y="popstate";function g(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let o=s(null==n?t.length-1:n),i=c.Pop,l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(e,r,n){void 0===r&&(r=null);let a=x(t?t[o].pathname:"/",e,r,n);return S("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:C(e)}return{get index(){return o},get action(){return i},get location(){return t[o]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?P(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i=c.Push;let n=u(e,r);o+=1,t.splice(o,t.length,n),a&&l&&l({action:i,location:n,delta:1})},replace(e,r){i=c.Replace;let n=u(e,r);t[o]=n,a&&l&&l({action:i,location:n,delta:0})},go(e){i=c.Pop;let r=s(o+e),n=t[r];o=r,l&&l({action:i,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function w(e){return void 0===e&&(e={}),D(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return x("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:C(t)},null,e)}function b(e){return void 0===e&&(e={}),D(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=P(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),x("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:C(t))},function(e,t){S("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function E(e,t){if(!1===e||null==e)throw Error(t)}function S(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function R(e,t){return{usr:e.state,key:e.key,idx:t}}function x(e,t,r,n){return void 0===r&&(r=null),v({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?P(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function C(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function P(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function D(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=c.Pop,s=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){l=c.Pop;let e=d(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:C(e);return E(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==u&&(u=0,i.replaceState(v({},i.state,{idx:u}),""));let p={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw Error("A history only accepts one active listener");return a.addEventListener(y,h),s=e,()=>{a.removeEventListener(y,h),s=null}},createHref:e=>t(a,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=c.Push;let n=x(p.location,e,t);r&&r(n,e);let h=R(n,u=d()+1),f=p.createHref(n);try{i.pushState(h,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=c.Replace;let n=x(p.location,e,t);r&&r(n,e);let a=R(n,u=d()),h=p.createHref(n);i.replaceState(a,"",h),o&&s&&s({action:l,location:p.location,delta:0})},go:e=>i.go(e)};return p}(a=d||(d={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";let L=new Set(["lazy","caseSensitive","path","id","index","children"]);function k(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(E(!0!==e.index||!e.children,"Cannot specify children on an index route"),E(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=v({},e,t(e),{id:i});return n[i]=r,r}{let r=v({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=k(e.children,t,o,n)),r}})}function _(e,t,r){return void 0===r&&(r="/"),A(e,t,r,!1)}function A(e,t,r,n){let a=N(("string"==typeof t?P(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(E(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let h=K([a,d.relativePath]),f=n.concat(d);t.children&&t.children.length>0&&(E(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+h+'".'),e(t.children,r,f,h)),(null!=t.path||t.index)&&r.push({path:h,score:(l=h,s=t.index,c=(u=l.split("/")).length,u.some(j)&&(c+=-2),s&&(c+=2),u.filter(e=>!j(e)).reduce((e,t)=>e+(T.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null,l=F(a);for(let e=0;null==i&&e<o.length;++e)i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:K([o,c.pathname]),pathnameBase:Y(K([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=K([o,c.pathnameBase]))}return i}(o[e],l,n);return i}function U(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let T=/^:[\w-]+$/,j=e=>"*"===e;function M(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(S(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return E("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function O(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),S("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return S(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}let B=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function I(e,t){let r;void 0===t&&(t="/");let{pathname:n,search:a="",hash:o=""}="string"==typeof e?P(e):e;if(n){let e;(e=n,B.test(e))?r=n:(n.includes("//")&&S(!1,"Pathnames cannot have embedded double slashes - normalizing "+n+" -> "+(n=J(n))),r=n.startsWith("/")?z(n.substring(1),"/"):z(n,t))}else r=t;return{pathname:r,search:q(a),hash:X(o)}}function z(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function H(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function W(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function $(e,t){let r=W(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function V(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=P(e):(E(!(a=v({},e)).pathname||!a.pathname.includes("?"),H("?","pathname","search",a)),E(!a.pathname||!a.pathname.includes("#"),H("#","pathname","hash",a)),E(!a.search||!a.search.includes("#"),H("#","search","hash",a)));let i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=I(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}let J=e=>e.replace(/\/\/+/g,"/"),K=e=>J(e.join("/")),Y=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",X=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",G=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),v({},r,{headers:n}))};class Q extends Error{}class Z{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],E(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new Q("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof Q)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return E(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let ee=function(e,t){return void 0===t&&(t={}),new Z(e,"number"==typeof t?{status:t}:t)},et=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,v({},r,{headers:n}))},er=(e,t)=>{let r=et(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},en=(e,t)=>{let r=et(e,t);return r.headers.set("X-Remix-Replace","true"),r};class ea{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function eo(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let ei=["post","put","patch","delete"],el=new Set(ei),es=new Set(["get",...ei]),eu=new Set([301,302,303,307,308]),ec=new Set([307,308]),ed={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},eh={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ef={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ep=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,em=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ev="remix-router-transitions";function ey(e){let t,r,n,a,o,i,l=e.window?e.window:"u">typeof window?window:void 0,s=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,u=!s;if(E(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=em;let h={},f=k(e.routes,t,void 0,h),p=e.basename||"/",m=e.dataStrategy||eD,y=e.patchRoutesOnNavigation,g=v({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),w=null,b=new Set,R=null,C=null,P=null,D=null!=e.hydrationData,L=_(f,e.history.location,p),T=!1,j=null;if(null==L&&!y){let t=eI(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eB(f);L=r,j={[n.id]:t}}if(L&&!e.hydrationData&&to(L,f,e.history.location.pathname).active&&(L=null),L)if(L.some(e=>e.route.lazy))n=!1;else if(L.some(e=>e.route.loader))if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=L.findIndex(e=>void 0!==r[e.route.id]);n=L.slice(0,e+1).every(e=>!eS(e.route,t,r))}else n=L.every(e=>!eS(e.route,t,r))}else n=null!=e.hydrationData;else n=!0;else if(n=!1,L=[],g.v7_partialHydration){let t=to(null,f,e.history.location.pathname);t.active&&t.matches&&(T=!0,L=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:L,initialized:n,navigation:ed,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||j,fetchers:new Map,blockers:new Map},O=c.Pop,F=!1,B=!1,I=new Map,z=null,H=!1,W=!1,$=[],V=new Set,J=new Map,K=0,Y=-1,q=new Map,X=new Set,G=new Map,Q=new Map,Z=new Set,ee=new Map,et=new Map;function er(e,t){void 0===t&&(t={}),M=v({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(Z.has(t)?n.push(t):r.push(t))}),Z.forEach(e=>{M.fetchers.has(e)||J.has(e)||n.push(e)}),[...b].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),g.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>eQ(e))):n.forEach(e=>Z.delete(e))}function en(t,n,a){var o,i;let l,s,{flushSync:u}=void 0===a?{}:a,d=null!=M.actionData&&null!=M.navigation.formMethod&&eY(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(o=t.state)?void 0:o._isRedirect)!==!0;l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?M.actionData:null;let h=n.loaderData?eO(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,ef));let m=!0===F||null!=M.navigation.formMethod&&eY(M.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(f=r,r=void 0),H||O===c.Pop||(O===c.Push?e.history.push(t,t.state):O===c.Replace&&e.history.replace(t,t.state)),O===c.Pop){let e=I.get(M.location.pathname);e&&e.has(t.pathname)?s={currentLocation:M.location,nextLocation:t}:I.has(t.pathname)&&(s={currentLocation:t,nextLocation:M.location})}else if(B){let e=I.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(M.location.pathname,e)),s={currentLocation:M.location,nextLocation:t}}er(v({},n,{actionData:l,loaderData:h,historyAction:O,location:t,initialized:!0,navigation:ed,revalidation:"idle",restoreScrollPosition:ta(t,n.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:s,flushSync:!0===u}),O=c.Pop,F=!1,B=!1,H=!1,W=!1,$=[]}async function ea(t,r){if("number"==typeof t)return void e.history.go(t);let n=eg(M.location,M.matches,p,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=ew(g.v7_normalizeFormMethod,!1,n,r),l=M.location,s=x(M.location,a,r&&r.state);s=v({},s,e.history.encodeLocation(s));let u=r&&null!=r.replace?r.replace:void 0,d=c.Push;!0===u?d=c.Replace:!1===u||null!=o&&eY(o.formMethod)&&o.formAction===M.location.pathname+M.location.search&&(d=c.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,f=!0===(r&&r.flushSync),m=te({currentLocation:l,nextLocation:s,historyAction:d});return m?void e6(m,{state:"blocked",location:s,proceed(){e6(m,{state:"proceeding",proceed:void 0,reset:void 0,location:s}),ea(t,r)},reset(){let e=new Map(M.blockers);e.set(m,ef),er({blockers:e})}}):await ei(d,s,{submission:o,pendingError:i,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:f})}async function ei(t,n,a){var i,l,s,u;let c;o&&o.abort(),o=null,O=t,H=!0===(a&&a.startUninterruptedRevalidation),i=M.location,l=M.matches,R&&P&&(R[tn(i,l)]=P()),F=!0===(a&&a.preventScrollReset),B=!0===(a&&a.enableViewTransition);let h=r||f,m=a&&a.overrideNavigation,y=null!=a&&a.initialHydration&&M.matches&&M.matches.length>0&&!T?M.matches:_(h,n,p),g=!0===(a&&a.flushSync);if(y&&M.initialized&&!W&&(s=M.location,u=n,s.pathname===u.pathname&&s.search===u.search&&(""===s.hash?""!==u.hash:s.hash===u.hash||""!==u.hash||!1))&&!(a&&a.submission&&eY(a.submission.formMethod)))return void en(n,{matches:y},{flushSync:g});let w=to(y,h,n.pathname);if(w.active&&w.matches&&(y=w.matches),!y){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);en(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:g});return}o=new AbortController;let b=eU(e.history,n,o.signal,a&&a.submission);if(a&&a.pendingError)c=[eN(y).route.id,{type:d.error,error:a.pendingError}];else if(a&&a.submission&&eY(a.submission.formMethod)){let t=await el(b,n,a.submission,y,w.active,{replace:a.replace,flushSync:g});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(e$(r)&&eo(r.error)&&404===r.error.status){o=null,en(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}y=t.matches||y,c=t.pendingActionResult,m=e1(n,a.submission),g=!1,w.active=!1,b=eU(e.history,b.url,b.signal)}let{shortCircuited:E,matches:S,loaderData:x,errors:C}=await es(b,n,y,w.active,m,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,g,c);E||(o=null,en(n,v({matches:S||y},eF(c),{loaderData:x,errors:C})))}async function el(t,r,n,a,o,i){var l;let s;if(void 0===i&&(i={}),eT(),er({navigation:{state:"submitting",location:r,formMethod:(l=n).formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text}},{flushSync:!0===i.flushSync}),o){let e=await ti(a,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eN(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:d.error,error:e.error}]}}if(e.matches)a=e.matches;else{let{notFoundMatches:e,error:t,route:n}=tt(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:d.error,error:t}]}}}let u=eZ(a,r);if(u.route.action||u.route.lazy){if(s=(await eP("action",M,t,[u],a,null))[u.route.id],t.signal.aborted)return{shortCircuited:!0}}else s={type:d.error,error:eI(405,{method:t.method,pathname:r.pathname,routeId:u.route.id})};if(eV(s)){let r;return r=i&&null!=i.replace?i.replace:eA(s.response.headers.get("Location"),new URL(t.url),p,e.history)===M.location.pathname+M.location.search,await ex(t,s,!0,{submission:n,replace:r}),{shortCircuited:!0}}if(eW(s))throw eI(400,{type:"defer-action"});if(e$(s)){let e=eN(a,u.route.id);return!0!==(i&&i.replace)&&(O=c.Push),{matches:a,pendingActionResult:[e.route.id,s]}}return{matches:a,pendingActionResult:[u.route.id,s]}}async function es(t,n,a,i,l,s,u,c,d,h,m){let y=l||e1(n,s),w=s||u||e0(y),b=!H&&(!g.v7_partialHydration||!d);if(i){if(b){let e=ey(m);er(v({navigation:y},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eN(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let E=r||f,[S,R]=eE(e.history,M,a,w,n,g.v7_partialHydration&&!0===d,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,E,p,m);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||S&&S.some(t=>t.route.id===e)),Y=++K,0===S.length&&0===R.length){let e=e5();return en(n,v({matches:a,loaderData:{},errors:m&&e$(m[1])?{[m[0]]:m[1].error}:null},eF(m),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!i){e.navigation=y;let t=ey(m);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=M.fetchers.get(e.key),r=e7(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),er(e,{flushSync:h})}R.forEach(e=>{e2(e.key),e.controller&&J.set(e.key,e.controller)});let x=()=>R.forEach(e=>e2(e.key));o&&o.signal.addEventListener("abort",x);let{loaderResults:C,fetcherResults:P}=await ek(M,a,S,R,t);if(t.signal.aborted)return{shortCircuited:!0};o&&o.signal.removeEventListener("abort",x),R.forEach(e=>J.delete(e.key));let D=ez(C);if(D)return await ex(t,D.result,!0,{replace:c}),{shortCircuited:!0};if(D=ez(P))return X.add(D.key),await ex(t,D.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:L,errors:k}=eM(M,a,C,m,R,P,ee);ee.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ee.delete(t)})}),g.v7_partialHydration&&d&&M.errors&&(k=v({},M.errors,k));let _=e5(),A=e9(Y),U=_||A||R.length>0;return v({matches:a,loaderData:L,errors:k},U?{fetchers:new Map(M.fetchers)}:{})}function ey(e){if(e&&!e$(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eb(t,n,a,i,l,s,u,c,d){var h,m;function v(e){if(!e.route.action&&!e.route.lazy){let e=eI(405,{method:d.formMethod,pathname:a,routeId:n});return eH(t,n,e,{flushSync:u}),!0}return!1}if(eT(),G.delete(t),!s&&v(i))return;let y=M.fetchers.get(t);ej(t,(h=d,m=y,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:m?m.data:void 0}),{flushSync:u});let w=new AbortController,b=eU(e.history,a,w.signal,d);if(s){let e=await ti(l,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eH(t,n,e.error,{flushSync:u});if(!e.matches)return void eH(t,n,eI(404,{pathname:a}),{flushSync:u});if(v(i=eZ(l=e.matches,a)))return}J.set(t,w);let S=K,R=(await eP("action",M,b,[i],l,t))[i.route.id];if(b.signal.aborted){J.get(t)===w&&J.delete(t);return}if(g.v7_fetcherPersist&&Z.has(t)){if(eV(R)||e$(R))return void ej(t,e4(void 0))}else{if(eV(R))return(J.delete(t),Y>S)?void ej(t,e4(void 0)):(X.add(t),ej(t,e7(d)),ex(b,R,!1,{fetcherSubmission:d,preventScrollReset:c}));if(e$(R))return void eH(t,n,R.error)}if(eW(R))throw eI(400,{type:"defer-action"});let x=M.navigation.location||M.location,C=eU(e.history,x,w.signal),P=r||f,D="idle"!==M.navigation.state?_(P,M.navigation.location,p):M.matches;E(D,"Didn't find any matches after fetcher action");let L=++K;q.set(t,L);let k=e7(d,R.data);M.fetchers.set(t,k);let[A,U]=eE(e.history,M,D,d,x,!1,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,P,p,[i.route.id,R]);U.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=e7(void 0,r?r.data:void 0);M.fetchers.set(t,n),e2(t),e.controller&&J.set(t,e.controller)}),er({fetchers:new Map(M.fetchers)});let T=()=>U.forEach(e=>e2(e.key));w.signal.addEventListener("abort",T);let{loaderResults:j,fetcherResults:F}=await ek(M,D,A,U,C);if(w.signal.aborted)return;w.signal.removeEventListener("abort",T),q.delete(t),J.delete(t),U.forEach(e=>J.delete(e.key));let N=ez(j);if(N)return ex(C,N.result,!1,{preventScrollReset:c});if(N=ez(F))return X.add(N.key),ex(C,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eM(M,D,j,void 0,U,F,ee);if(M.fetchers.has(t)){let e=e4(R.data);M.fetchers.set(t,e)}e9(L),"loading"===M.navigation.state&&L>Y?(E(O,"Expected pending action"),o&&o.abort(),en(M.navigation.location,{matches:D,loaderData:B,errors:I,fetchers:new Map(M.fetchers)})):(er({errors:I,loaderData:eO(M.loaderData,B,D,I),fetchers:new Map(M.fetchers)}),W=!1)}async function eR(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);ej(t,e7(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=eU(e.history,n,d.signal);if(i){let e=await ti(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eH(t,r,e.error,{flushSync:l});if(!e.matches)return void eH(t,r,eI(404,{pathname:n}),{flushSync:l});a=eZ(o=e.matches,n)}J.set(t,d);let f=K,p=(await eP("loader",M,h,[a],o,t))[a.route.id];if(eW(p)&&(p=await eG(p,h.signal,!0)||p),J.get(t)===d&&J.delete(t),!h.signal.aborted){if(Z.has(t))return void ej(t,e4(void 0));if(eV(p))if(Y>f)return void ej(t,e4(void 0));else{X.add(t),await ex(h,p,!1,{preventScrollReset:s});return}if(e$(p))return void eH(t,r,p.error);E(!eW(p),"Unhandled fetcher deferred data"),ej(t,e4(p.data))}}async function ex(t,r,n,a){let{submission:i,fetcherSubmission:u,preventScrollReset:d,replace:h}=void 0===a?{}:a;r.response.headers.has("X-Remix-Revalidate")&&(W=!0);let f=r.response.headers.get("Location");E(f,"Expected a Location header on the redirect Response"),f=eA(f,new URL(t.url),p,e.history);let m=x(M.location,f,{_isRedirect:!0});if(s){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(ep.test(f)){let r=e.history.createURL(f);t=r.origin!==l.location.origin||null==N(r.pathname,p)}if(t)return void(h?l.location.replace(f):l.location.assign(f))}o=null;let y=!0===h||r.response.headers.has("X-Remix-Replace")?c.Replace:c.Push,{formMethod:g,formAction:w,formEncType:b}=M.navigation;!i&&!u&&g&&w&&b&&(i=e0(M.navigation));let S=i||u;if(ec.has(r.response.status)&&S&&eY(S.formMethod))await ei(y,m,{submission:v({},S,{formAction:f}),preventScrollReset:d||F,enableViewTransition:n?B:void 0});else{let e=e1(m,i);await ei(y,m,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:d||F,enableViewTransition:n?B:void 0})}}async function eP(e,r,n,a,o,i){let l,s={};try{l=await eL(m,e,r,n,a,o,i,h,t)}catch(e){return a.forEach(t=>{s[t.route.id]={type:d.error,error:e}}),s}for(let[e,t]of Object.entries(l)){var u;if(eK((u=t).result)&&eu.has(u.result.status)){let r=t.result;s[e]={type:d.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(E(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ep.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=eg(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,o,p,g.v7_relativeSplatPath)}}else s[e]=await e_(t)}return s}async function ek(t,r,n,a,o){let i=t.matches,l=eP("loader",t,o,n,r,null),s=Promise.all(a.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:d.error,error:eI(404,{pathname:r.path})}});{let n=(await eP("loader",t,eU(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,c=(await s).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eq(r,u,o.signal,i,t.loaderData),eX(r,c,a)]),{loaderResults:u,fetcherResults:c}}function eT(){W=!0,$.push(...tr()),G.forEach((e,t)=>{J.has(t)&&V.add(t),e2(t)})}function ej(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),er({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eH(e,t,r,n){void 0===n&&(n={});let a=eN(M.matches,t);eQ(e),er({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eJ(e){return Q.set(e,(Q.get(e)||0)+1),Z.has(e)&&Z.delete(e),M.fetchers.get(e)||eh}function eQ(e){let t=M.fetchers.get(e);J.has(e)&&!(t&&"loading"===t.state&&q.has(e))&&e2(e),G.delete(e),q.delete(e),X.delete(e),g.v7_fetcherPersist&&Z.delete(e),V.delete(e),M.fetchers.delete(e)}function e2(e){let t=J.get(e);t&&(t.abort(),J.delete(e))}function e3(e){for(let t of e){let e=e4(eJ(t).data);M.fetchers.set(t,e)}}function e5(){let e=[],t=!1;for(let r of X){let n=M.fetchers.get(r);E(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return e3(e),t}function e9(e){let t=[];for(let[r,n]of q)if(n<e){let e=M.fetchers.get(r);E(e,"Expected fetcher: "+r),"loading"===e.state&&(e2(r),q.delete(r),t.push(r))}return e3(t),t.length>0}function e8(e){M.blockers.delete(e),et.delete(e)}function e6(e,t){let r=M.blockers.get(e)||ef;E("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),er({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===et.size)return;et.size>1&&S(!1,"A router only supports one blocker at a time");let a=Array.from(et.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=eI(404,{pathname:e}),{matches:n,route:a}=eB(r||f);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ee.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ee.delete(n))}),t}function tn(e,t){return C&&C(e,t.map(e=>U(e,M.loaderData)))||e.key}function ta(e,t){if(R){let r=R[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(y){if(!e)return{active:!0,matches:A(t,r,p,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:A(t,r,p,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!y)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||f,s=h;try{await y({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||eC(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(f=[...f])}if(a.aborted)return{type:"aborted"};let u=_(l,n,p);if(u)return{type:"success",matches:u};let c=A(l,n,p,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return a={get basename(){return p},get future(){return g},get state(){return M},get routes(){return f},get window(){return l},initialize:function(){if(w=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(i){i(),i=void 0;return}S(0===et.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=te({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{i=e});e.history.go(-1*a),e6(o,{state:"blocked",location:n,proceed(){e6(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(o,ef),er({blockers:e})}});return}return ei(r,n)}),s){var t=l,r=I;try{let e=t.sessionStorage.getItem(ev);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ev,JSON.stringify(r))}catch(e){S(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,I);l.addEventListener("pagehide",e),z=()=>l.removeEventListener("pagehide",e)}return M.initialized||ei(c.Pop,M.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,r){if(R=e,P=t,C=r||null,!D&&M.navigation===ed){D=!0;let e=ta(M.location,M.matches);null!=e&&er({restoreScrollPosition:e})}return()=>{R=null,P=null,C=null}},navigate:ea,fetch:function(e,t,n,a){if(u)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e2(e);let o=!0===(a&&a.flushSync),i=r||f,l=eg(M.location,M.matches,p,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=_(i,l,p),c=to(s,i,l);if(c.active&&c.matches&&(s=c.matches),!s)return void eH(e,t,eI(404,{pathname:l}),{flushSync:o});let{path:d,submission:h,error:m}=ew(g.v7_normalizeFormMethod,!0,l,a);if(m)return void eH(e,t,m,{flushSync:o});let v=eZ(s,d),y=!0===(a&&a.preventScrollReset);h&&eY(h.formMethod)?eb(e,t,d,v,s,c.active,o,y,h):(G.set(e,{routeId:t,path:d}),eR(e,t,d,v,s,c.active,o,y,h))},revalidate:function(){if(eT(),er({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void ei(M.historyAction,M.location,{startUninterruptedRevalidation:!0});ei(O||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===B})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eJ,deleteFetcher:function(e){let t=(Q.get(e)||0)-1;t<=0?(Q.delete(e),Z.add(e),g.v7_fetcherPersist||eQ(e)):Q.set(e,t),er({fetchers:new Map(M.fetchers)})},dispose:function(){w&&w(),z&&z(),b.clear(),o&&o.abort(),M.fetchers.forEach((e,t)=>eQ(t)),M.blockers.forEach((e,t)=>e8(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||ef;return et.get(e)!==t&&et.set(e,t),r},deleteBlocker:e8,patchRoutes:function(e,n){let a=null==r;eC(e,n,r||f,h,t),a&&(f=[...f],er({}))},_internalFetchControllers:J,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){r=k(e,t,void 0,h={})}}}function eg(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=V(a||".",$(s,o),N(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eQ(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:K([r,c.pathname])),C(c)}function ew(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!es.has(a.toLowerCase())))return{path:r,error:eI(405,{method:n.formMethod})};let l=()=>({path:r,error:eI(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eH(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eY(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eY(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(E("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=eT(n.formData),i=n.formData;else if(n.body instanceof FormData)o=eT(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=ej(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=ej(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eY(d.formMethod))return{path:r,submission:d};let h=P(r);return t&&h.search&&eQ(h.search)&&o.append("index",""),h.search="?"+o,{path:C(h),submission:d}}function eb(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function eE(e,t,r,n,a,o,i,l,s,u,c,d,h,f,p,m){let y=m?e$(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),w=e.createURL(a),b=r;o&&t.errors?b=eb(r,Object.keys(t.errors)[0],!0):m&&e$(m[1])&&(b=eb(r,m[0]));let E=m?m[1].statusCode:void 0,S=i&&E&&E>=400,R=b.filter((e,r)=>{var a,i,u;let c,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(o)return eS(h,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],u=e,c=!i||u.route.id!==i.route.id,d=void 0===a[u.route.id],c||d||s.some(t=>t===e.route.id))return!0;let f=t.matches[r];return ex(e,v({currentUrl:g,currentParams:f.params,nextUrl:w,nextParams:e.params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&(l||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||eR(f,e))}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let i=_(f,e.path,p);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let s=t.fetchers.get(a),d=eZ(i,e.path),m=!1;h.has(a)?m=!1:u.has(a)?(u.delete(a),m=!0):m=s&&"idle"!==s.state&&void 0===s.data?l:ex(d,v({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&l})),m&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[R,x]}function eS(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function eR(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ex(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function eC(e,t,r,n,a){var o;let i;if(e){let t=n[e];E(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=k(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function eP(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];E(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;S(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||L.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,v({},t(a),{lazy:void 0}))}async function eD(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function eL(e,t,r,n,a,o,i,l,s,u){let c=o.map(e=>e.route.lazy?eP(e.route,s,l):void 0),h=o.map((e,r)=>{let o=c[r],i=a.some(t=>t.route.id===e.route.id),l=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?ek(t,n,e,o,r,u):Promise.resolve({type:d.data,result:void 0}));return v({},e,{shouldLoad:i,resolve:l})}),f=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(c)}catch(e){}return f}async function ek(e,t,r,n,a,o){let i,l,s=n=>{let i,s=new Promise((e,t)=>i=t);l=()=>i(),t.signal.addEventListener("abort",l);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([s(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else if(await n,a=r.route[e])i=await s(a);else{if("action"!==e)return{type:d.data,result:void 0};let n=new URL(t.url),a=n.pathname+n.search;throw eI(405,{method:t.method,pathname:a,routeId:r.route.id})}else if(a)i=await s(a);else{let e=new URL(t.url),r=e.pathname+e.search;throw eI(404,{pathname:r})}E(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:d.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function e_(e){var t,r,n,a,o,i,l,s,u;let{result:c,type:h}=e;if(eK(c)){let e;try{let t=c.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==c.body?null:await c.json():await c.text()}catch(e){return{type:d.error,error:e}}return h===d.error?{type:d.error,error:new ea(c.status,c.statusText,e),statusCode:c.status,headers:c.headers}:{type:d.data,data:e,statusCode:c.status,headers:c.headers}}if(h===d.error)return eJ(c)?c.data instanceof Error?{type:d.error,error:c.data,statusCode:null==(n=c.init)?void 0:n.status,headers:null!=(a=c.init)&&a.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:new ea((null==(t=c.init)?void 0:t.status)||500,void 0,c.data),statusCode:eo(c)?c.status:void 0,headers:null!=(r=c.init)&&r.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:c,statusCode:eo(c)?c.status:void 0};return(u=c)&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:d.deferred,deferredData:c,statusCode:null==(o=c.init)?void 0:o.status,headers:(null==(i=c.init)?void 0:i.headers)&&new Headers(c.init.headers)}:eJ(c)?{type:d.data,data:c.data,statusCode:null==(l=c.init)?void 0:l.status,headers:null!=(s=c.init)&&s.headers?new Headers(c.init.headers):void 0}:{type:d.data,data:c}}function eA(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(ep.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e);if(a.includes(n.protocol))throw Error("Invalid redirect location");let o=null!=N(n.pathname,r);if(n.origin===t.origin&&o)return J(n.pathname)+n.search+n.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw Error("Invalid redirect location")}catch(e){}return e}function eU(e,t,r,n){let a=e.createURL(eH(t)).toString(),o={signal:r};if(n&&eY(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=eT(n.formData):o.body=n.formData}return new Request(a,o)}function eT(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function ej(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eM(e,t,r,n,a,o,i){let l,s,u,c,d,h,{loaderData:f,errors:p}=(s={},u=null,c=!1,d={},h=n&&e$(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(E(!eV(a),"Cannot handle redirect results in processLoaderData"),e$(a)){let e=a.error;void 0!==h&&(e=h,h=void 0),u=u||{},1;{let r=eN(t,n);null==u[r.route.id]&&(u[r.route.id]=e)}s[n]=void 0,c||(c=!0,l=eo(a.error)?a.error.status:500),a.headers&&(d[n]=a.headers)}else eW(a)?(i.set(n,a.deferredData),s[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||c||(l=a.statusCode)):(s[n]=a.data,a.statusCode&&200!==a.statusCode&&!c&&(l=a.statusCode)),a.headers&&(d[n]=a.headers)}),void 0!==h&&n&&(u={[n[0]]:h},s[n[0]]=void 0),{loaderData:s,errors:u,statusCode:l||200,loaderHeaders:d});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(E(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(e$(i)){let t=eN(e.matches,null==n?void 0:n.route.id);p&&p[t.route.id]||(p=v({},p,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eV(i))E(!1,"Unhandled fetcher revalidation redirect");else if(eW(i))E(!1,"Unhandled fetcher deferred data");else{let t=e4(i.data);e.fetchers.set(r,t)}}),{loaderData:f,errors:p}}function eO(e,t,r,n){let a=v({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eF(e){return e?e$(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eN(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eB(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eI(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new ea(e||500,l,Error(s),!0)}function ez(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eV(n))return{key:r,result:n}}}function eH(e){let t="string"==typeof e?P(e):e;return C(v({},t,{hash:""}))}function eW(e){return e.type===d.deferred}function e$(e){return e.type===d.error}function eV(e){return(e&&e.type)===d.redirect}function eJ(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eK(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eY(e){return el.has(e.toLowerCase())}async function eq(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!eR(c,u)&&(a&&a[u.route.id])!==void 0;eW(s)&&d&&await eG(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eX(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eW(l)&&(E(i,"Expected an AbortController for revalidating fetcher deferred result"),await eG(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eG(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function eQ(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eZ(e,t){let r="string"==typeof t?P(t).search:t.search;if(e[e.length-1].route.index&&eQ(r||""))return e[e.length-1];let n=W(e);return n[n.length-1]}function e0(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function e1(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function e7(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function e4(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function e2(){return(e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}Symbol("deferred");let e3=p.createContext(null),e5=p.createContext(null),e9=p.createContext(null),e8=p.createContext(null),e6=p.createContext(null),te=p.createContext({outlet:null,matches:[],isDataRoute:!1}),tt=p.createContext(null);function tr(e,t){let{relative:r}=void 0===t?{}:t;tn()||E(!1);let{basename:n,navigator:a}=p.useContext(e8),{hash:o,pathname:i,search:l}=tf(e,{relative:r}),s=i;return"/"!==n&&(s="/"===i?n:K([n,i])),a.createHref({pathname:s,search:l,hash:o})}function tn(){return null!=p.useContext(e6)}function ta(){return tn()||E(!1),p.useContext(e6).location}function to(){return p.useContext(e6).navigationType}function ti(e){tn()||E(!1);let{pathname:t}=ta();return p.useMemo(()=>O(e,F(t)),[t,e])}function tl(e){p.useContext(e8).static||p.useLayoutEffect(e)}function ts(){let{isDataRoute:e}=p.useContext(te);return e?function(){let{router:e}=tS(tb.UseNavigateStable),t=tx(tE.UseNavigateStable),r=p.useRef(!1);return tl(()=>{r.current=!0}),p.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,e2({fromRouteId:t},a)))},[e,t])}():function(){tn()||E(!1);let e=p.useContext(e3),{basename:t,future:r,navigator:n}=p.useContext(e8),{matches:a}=p.useContext(te),{pathname:o}=ta(),i=JSON.stringify($(a,r.v7_relativeSplatPath)),l=p.useRef(!1);return tl(()=>{l.current=!0}),p.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let s=V(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:K([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}let tu=p.createContext(null);function tc(){return p.useContext(tu)}function td(e){let t=p.useContext(te).outlet;return t?p.createElement(tu.Provider,{value:e},t):t}function th(){let{matches:e}=p.useContext(te),t=e[e.length-1];return t?t.params:{}}function tf(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=p.useContext(e8),{matches:a}=p.useContext(te),{pathname:o}=ta(),i=JSON.stringify($(a,n.v7_relativeSplatPath));return p.useMemo(()=>V(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function tp(e,t){return tm(e,t)}function tm(e,t,r,n){let a;tn()||E(!1);let{navigator:o}=p.useContext(e8),{matches:i}=p.useContext(te),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let d=ta();if(t){var h;let e="string"==typeof t?P(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||E(!1),a=e}else a=d;let f=a.pathname||"/",m=f;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=_(e,{pathname:m}),y=tw(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:K([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:K([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&y?p.createElement(e6.Provider,{value:{location:e2({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:c.Pop}},y):y}let tv=p.createElement(function(){let e=tU(),t=eo(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class ty extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?p.createElement(te.Provider,{value:this.props.routeContext},p.createElement(tt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tg(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(e3);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(te.Provider,{value:t},n)}function tw(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==void 0);e>=0||E(!1),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){s=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let c,d=!1,h=null,f=null;r&&(c=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||tv,s&&(u<0&&0===a?(o="route-fallback",tF[o]||(tF[o]=!0),d=!0,f=null):u===a&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=c?h:d?f:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(tg,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?p.createElement(ty,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var tb=((o=tb||{}).UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o),tE=((i=tE||{}).UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i);function tS(e){let t=p.useContext(e3);return t||E(!1),t}function tR(e){let t=p.useContext(e5);return t||E(!1),t}function tx(e){let t,r=((t=p.useContext(te))||E(!1),t),n=r.matches[r.matches.length-1];return n.route.id||E(!1),n.route.id}function tC(){return tx(tE.UseRouteId)}function tP(){return tR(tE.UseNavigation).navigation}function tD(){let e=tS(tb.UseRevalidator),t=tR(tE.UseRevalidator);return p.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function tL(){let{matches:e,loaderData:t}=tR(tE.UseMatches);return p.useMemo(()=>e.map(e=>U(e,t)),[e,t])}function tk(){let e=tR(tE.UseLoaderData),t=tx(tE.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function t_(e){return tR(tE.UseRouteLoaderData).loaderData[e]}function tA(){let e=tR(tE.UseActionData),t=tx(tE.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function tU(){var e;let t=p.useContext(tt),r=tR(tE.UseRouteError),n=tx(tE.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function tT(){let e=p.useContext(e9);return null==e?void 0:e._data}function tj(){let e=p.useContext(e9);return null==e?void 0:e._error}let tM=0;function tO(e){let{router:t,basename:r}=tS(tb.UseBlocker),n=tR(tE.UseBlocker),[a,o]=p.useState(""),i=p.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:e2({},n,{pathname:N(n.pathname,r)||n.pathname}),nextLocation:e2({},a,{pathname:N(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return p.useEffect(()=>{let e=String(++tM);return o(e),()=>t.deleteBlocker(e)},[t]),p.useEffect(()=>{""!==a&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):ef}let tF={};function tN(e,t){(null==e||e.v7_startTransition,(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath,t)&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}let tB=p.startTransition;function tI(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=p.useRef();null==i.current&&(i.current=g({initialEntries:n,initialIndex:a,v5Compat:!0}));let l=i.current,[s,u]=p.useState({action:l.action,location:l.location}),{v7_startTransition:c}=o||{},d=p.useCallback(e=>{c&&tB?tB(()=>u(e)):u(e)},[u,c]);return p.useLayoutEffect(()=>l.listen(d),[l,d]),p.useEffect(()=>tN(o),[o]),p.createElement(t$,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:o})}function tz(e){let{to:t,replace:r,state:n,relative:a}=e;tn()||E(!1);let{future:o,static:i}=p.useContext(e8),{matches:l}=p.useContext(te),{pathname:s}=ta(),u=ts(),c=JSON.stringify(V(t,$(l,o.v7_relativeSplatPath),s,"path"===a));return p.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:a}),[u,c,a,r,n]),null}function tH(e){return td(e.context)}function tW(e){E(!1)}function t$(e){let{basename:t="/",children:r=null,location:n,navigationType:a=c.Pop,navigator:o,static:i=!1,future:l}=e;tn()&&E(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:o,static:i,future:e2({v7_relativeSplatPath:!1},l)}),[s,l,o,i]);"string"==typeof n&&(n=P(n));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=n,y=p.useMemo(()=>{let e=N(d,s);return null==e?null:{location:{pathname:e,search:h,hash:f,state:m,key:v},navigationType:a}},[s,d,h,f,m,v,a]);return null==y?null:p.createElement(e8.Provider,{value:u},p.createElement(e6.Provider,{children:r,value:y}))}function tV(e){let{children:t,location:r}=e;return tm(tG(t),r)}function tJ(e){let{children:t,errorElement:r,resolve:n}=e;return p.createElement(tq,{resolve:n,errorElement:r},p.createElement(tX,null,t))}var tK=((l=tK||{})[l.pending=0]="pending",l[l.success=1]="success",l[l.error=2]="error",l);let tY=new Promise(()=>{});class tq extends p.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=tK.pending;if(r instanceof Promise)if(this.state.error){a=tK.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?tK.error:"_data"in n?tK.success:tK.pending:(a=tK.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=tK.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===tK.error&&n._error instanceof Q)throw tY;if(a===tK.error&&!t)throw n._error;if(a===tK.error)return p.createElement(e9.Provider,{value:n,children:t});if(a===tK.success)return p.createElement(e9.Provider,{value:n,children:e});throw n}}function tX(e){let{children:t}=e,r=tT(),n="function"==typeof t?t(r):t;return p.createElement(p.Fragment,null,n)}function tG(e,t){void 0===t&&(t=[]);let r=[];return p.Children.forEach(e,(e,n)=>{if(!p.isValidElement(e))return;let a=[...t,n];if(e.type===p.Fragment)return void r.push.apply(r,tG(e.props.children,a));e.type!==tW&&E(!1),e.props.index&&e.props.children&&E(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=tG(e.props.children,a)),r.push(o)}),r}function tQ(e){return tw(e)}function tZ(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function t0(e,t){return ey({basename:null==t?void 0:t.basename,future:e2({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:g({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function t1(){return(t1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function t7(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}let t4="application/x-www-form-urlencoded";function t2(e){return null!=e&&"string"==typeof e.tagName}function t3(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let t5=null,t9=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t8(e){return null==e||t9.has(e)?e:null}let t6=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],re=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],rt=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function rr(e,t){return ey({basename:null==t?void 0:t.basename,future:t1({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:w({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||ra(),routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rn(e,t){return ey({basename:null==t?void 0:t.basename,future:t1({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:b({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||ra(),routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function ra(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=t1({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new ea(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let ro=p.createContext({isTransitioning:!1}),ri=p.createContext(new Map),rl=p.startTransition,rs=m.flushSync,ru=p.useId;function rc(e){rs?rs(e):e()}class rd{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function rh(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[i,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[c,d]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),y=p.useRef(new Map),{v7_startTransition:g}=n||{},w=p.useCallback(e=>{if(g)rl?rl(e):e();else e()},[g]),b=p.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?rc(()=>o(e)):w(()=>o(e)));if(a){rc(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{rc(()=>o(e))});t.finished.finally(()=>{rc(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})})}),rc(()=>f(t));return}h?(c&&c.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,h,c,y,w]);p.useLayoutEffect(()=>r.subscribe(b),[r,b]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new rd)},[s]),p.useEffect(()=>{if(c&&i&&r.window){let e=c.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})}),f(t)}},[w,i,c,r.window]),p.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,h,a.location,i]),p.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[s.isTransitioning,m]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",R=p.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.useEffect(()=>tN(n,r.future),[n,r.future]),p.createElement(p.Fragment,null,p.createElement(e3.Provider,{value:R},p.createElement(e5.Provider,{value:a},p.createElement(ri.Provider,{value:y.current},p.createElement(ro.Provider,{value:s},p.createElement(t$,{basename:S,location:a.location,navigationType:a.historyAction,navigator:E,future:x},a.initialized||r.future.v7_partialHydration?p.createElement(rf,{routes:r.routes,future:r.future,state:a}):t))))),null)}let rf=p.memo(function(e){let{routes:t,future:r,state:n}=e;return tm(t,void 0,n,r)});function rp(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=w({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rl?rl(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rm(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=b({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rl?rl(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rv(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=p.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},s=p.useCallback(e=>{l&&rl?rl(()=>i(e)):i(e)},[i,l]);return p.useLayoutEffect(()=>a.listen(s),[a,s]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let ry="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,rg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rw=p.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:u,preventScrollReset:c,viewTransition:d}=e,h=t7(e,t6),{basename:f}=p.useContext(e8),m=!1;if("string"==typeof u&&rg.test(u)&&(r=u,ry))try{let e=new URL(window.location.href),t=new URL(u.startsWith("//")?e.protocol+u:u),r=N(t.pathname,f);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let v=tr(u,{relative:a}),y=rC(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:a,viewTransition:d});return p.createElement("a",t1({},h,{href:r||v,onClick:m||o?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:s}))}),rb=p.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:u,children:c}=e,d=t7(e,re),h=tf(s,{relative:d.relative}),f=ta(),m=p.useContext(e5),{navigator:v,basename:y}=p.useContext(e8),g=null!=m&&rN(h)&&!0===u,w=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,b=f.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(b=b.toLowerCase(),E=E?E.toLowerCase():null,w=w.toLowerCase()),E&&y&&(E=N(E,y)||E);let S="/"!==w&&w.endsWith("/")?w.length-1:w.length,R=b===w||!i&&b.startsWith(w)&&"/"===b.charAt(S),x=null!=E&&(E===w||!i&&E.startsWith(w)&&"/"===E.charAt(w.length)),C={isActive:R,isPending:x,isTransitioning:g},P=R?n:void 0;r="function"==typeof o?o(C):[o,R?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let D="function"==typeof l?l(C):l;return p.createElement(rw,t1({},d,{"aria-current":P,className:r,ref:t,style:D,to:s,viewTransition:u}),"function"==typeof c?c(C):c)}),rE=p.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l="get",action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:h}=e,f=t7(e,rt),m=rk(),v=r_(s,{relative:c}),y="get"===l.toLowerCase()?"get":"post";return p.createElement("form",t1({ref:t,method:y,action:v,onSubmit:a?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:h})}},f))});function rS(e){let{getKey:t,storageKey:r}=e;return rM({getKey:t,storageKey:r}),null}function rR(e){let t=p.useContext(e3);return t||E(!1),t}function rx(e){let t=p.useContext(e5);return t||E(!1),t}function rC(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=ts(),u=ta(),c=tf(e,{relative:i});return p.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:C(u)===C(c),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[u,s,c,n,a,r,e,o,i,l])}function rP(e){let t=p.useRef(t3(e)),r=p.useRef(!1),n=ta(),a=p.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=t3(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=ts(),i=p.useCallback((e,t)=>{let n=t3("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(s=h||(h={})).UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState",(u=f||(f={})).UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration";let rD=0,rL=()=>"__"+String(++rD)+"__";function rk(){let{router:e}=rR(h.UseSubmit),{basename:t}=p.useContext(e8),r=tC();return p.useCallback(function(n,a){if(void 0===a&&(a={}),"u"<typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(t2(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?N(i,t):null,r=e.getAttribute("method")||"get",a=t8(e.getAttribute("enctype"))||t4,o=new FormData(e)}else if(t2(e)&&"button"===e.tagName.toLowerCase()||t2(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?N(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=t8(e.getAttribute("formenctype"))||t8(i.getAttribute("enctype"))||t4,o=new FormData(i,e),!function(){if(null===t5)try{new FormData(document.createElement("form"),0),t5=!1}catch(e){t5=!0}return t5}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(t2(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=t4,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||rL();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function r_(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=p.useContext(e8),a=p.useContext(te);a||E(!1);let[o]=a.matches.slice(-1),i=t1({},tf(e||".",{relative:r})),l=ta();if(null==e){i.search=l.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:K([n,i.pathname])),C(i)}function rA(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=rR(h.UseFetcher),a=rx(f.UseFetcher),o=p.useContext(ri),i=p.useContext(te),l=null==(t=i.matches[i.matches.length-1])?void 0:t.route.id;o||E(!1),i||E(!1),null==l&&E(!1);let s=ru?ru():"",[u,c]=p.useState(r||s);r&&r!==u?c(r):u||c(rL()),p.useEffect(()=>(n.getFetcher(u),()=>{n.deleteFetcher(u)}),[n,u]);let d=p.useCallback((e,t)=>{l||E(!1),n.fetch(u,l,e,t)},[u,l,n]),m=rk(),v=p.useCallback((e,t)=>{m(e,t1({},t,{navigate:!1,fetcherKey:u}))},[u,m]),y=p.useMemo(()=>p.forwardRef((e,t)=>p.createElement(rE,t1({},e,{navigate:!1,fetcherKey:u,ref:t}))),[u]),g=a.fetchers.get(u)||eh,w=o.get(u);return p.useMemo(()=>t1({Form:y,submit:v,load:d},g,{data:w}),[y,v,d,g,w])}function rU(){return Array.from(rx(f.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return t1({},r,{key:t})})}let rT="react-router-scroll-positions",rj={};function rM(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=rR(h.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=rx(f.UseScrollRestoration),{basename:i}=p.useContext(e8),l=ta(),s=tL(),u=tP();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};p.useEffect(()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,t])}(p.useCallback(()=>{"idle"===u.state&&(rj[(t?t(l,s):null)||l.key]=window.scrollY);try{sessionStorage.setItem(r||rT,JSON.stringify(rj))}catch(e){}window.history.scrollRestoration="auto"},[r,t,u.state,l,s])),"u">typeof document&&(p.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||rT);e&&(rj=JSON.parse(e))}catch(e){}},[r]),p.useLayoutEffect(()=>{let e=t&&"/"!==i?(e,r)=>t(t1({},e,{pathname:N(e.pathname,i)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(rj,()=>window.scrollY,e);return()=>r&&r()},[n,i,t]),p.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==o&&window.scrollTo(0,0)}},[l,a,o]))}function rO(e,t){let{capture:r}=t||{};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function rF(e){let{when:t,message:r}=e,n=tO(t);p.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),p.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function rN(e,t){void 0===t&&(t={});let r=p.useContext(ro);null==r&&E(!1);let{basename:n}=rR(h.useViewTransitionState),a=tf(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=N(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=N(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=O(a.pathname,i)||null!=O(a.pathname,o)}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 5562.c5ce26e1.js.LICENSE.txt */
2
+ "use strict";(self.chunk_ClickHouse_0_7_0_beta_2=self.chunk_ClickHouse_0_7_0_beta_2||[]).push([["5562"],{2192(e,r,_){var o=_(70451),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,_){var o,n={},u=null,a=null;for(o in void 0!==_&&(u=""+_),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(a=r.ref),r)s.call(r,o)&&!l.hasOwnProperty(o)&&(n[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===n[o]&&(n[o]=r[o]);return{$$typeof:t,type:e,key:u,ref:a,props:n,_owner:f.current}}r.Fragment=n,r.jsx=u,r.jsxs=u},62540(e,r,_){e.exports=_(2192)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.chunk_ClickHouse_0_7_0_beta_2=self.chunk_ClickHouse_0_7_0_beta_2||[]).push([["5587"],{75150(e,t,s){s.r(t),s.d(t,{toNestErrors:()=>a,validateFieldsNatively:()=>l});var i=s(72694);let r=(e,t,s)=>{if(e&&"reportValidity"in e){let r=(0,i.get)(s,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},l=(e,t)=>{for(let s in t.fields){let i=t.fields[s];i&&i.ref&&"reportValidity"in i.ref?r(i.ref,s,e):i.refs&&i.refs.forEach(t=>r(t,s,e))}},a=(e,t)=>{t.shouldUseNativeValidation&&l(e,t);let s={};for(let r in e){let l=(0,i.get)(t.fields,r),a=Object.assign(e[r]||{},{ref:l&&l.ref});if(f(t.names||Object.keys(e),r)){let e=Object.assign({},(0,i.get)(s,r));(0,i.set)(e,"root",a),(0,i.set)(s,r,e)}else(0,i.set)(s,r,a)}return s},f=(e,t)=>e.some(e=>e.startsWith(t+"."))}}]);
@@ -0,0 +1,37 @@
1
+ (self.chunk_ClickHouse_0_7_0_beta_2=self.chunk_ClickHouse_0_7_0_beta_2||[]).push([["560"],{42927(e,t,r){"use strict";r.d(t,{A:()=>T});var o=r(70451),n=r(11750),a=r(81023),i=r(59238),p=r(32560),l=r(22402),s=r(62540);let c=(0,l.A)((0,s.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),u=(0,l.A)((0,s.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),d=(0,l.A)((0,s.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var m=r(24726),h=r(83926),f=r(29009),y=r(46733);function v(e){return(0,y.Ay)("MuiCheckbox",e)}let g=(0,f.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var b=r(77308),A=r(23434),x=r(26952),w=r(72052),k=r(64606),R=r(73397);let C=(0,b.A)(p.A,{shouldForwardProp:e=>(0,h.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,m.A)(r.size)}`],"default"!==r.color&&t[`color${(0,m.A)(r.color)}`]]}})((0,A.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,i.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,i.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t},style:{[`&.${g.checked}, &.${g.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${g.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),$=(0,s.jsx)(u,{}),M=(0,s.jsx)(c,{}),S=(0,s.jsx)(d,{}),T=o.forwardRef(function(e,t){let r=(0,w.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:i=$,color:p="primary",icon:l=M,indeterminate:c=!1,indeterminateIcon:u=S,inputProps:d,size:h="medium",disableRipple:f=!1,className:y,slots:g={},slotProps:b={},...A}=r,x=c?u:l,T=c?u:i,O={...r,disableRipple:f,color:p,indeterminate:c,size:h},L=(e=>{let{classes:t,indeterminate:r,color:o,size:n}=e,i={root:["root",r&&"indeterminate",`color${(0,m.A)(o)}`,`size${(0,m.A)(n)}`]},p=(0,a.A)(i,v,t);return{...t,...p}})(O),E=b.input??d,[z,P]=(0,R.A)("root",{ref:t,elementType:C,className:(0,n.A)(L.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:b,...A},ownerState:O,additionalProps:{type:"checkbox",icon:o.cloneElement(x,{fontSize:x.props.fontSize??h}),checkedIcon:o.cloneElement(T,{fontSize:T.props.fontSize??h}),disableRipple:f,slots:g,slotProps:{input:(0,k.A)("function"==typeof E?E(O):E,{"data-indeterminate":c})}}});return(0,s.jsx)(z,{...P,classes:L})})},57438(e,t,r){"use strict";r.d(t,{A:()=>A});var o=r(70451),n=r(11750),a=r(59238),i=r(81023),p=r(93399),l=r(24726),s=r(77308),c=r(56599),u=r(23434),d=r(26952),m=r(72052),h=r(88091),f=r(82561),y=r(95279),v=r(62540);let g={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},b=(0,s.A)(h.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`underline${(0,l.A)(r.underline)}`],"button"===r.component&&t.button]}})((0,u.A)(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter((0,d.A)()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:(0,a.X4)(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,a.X4)(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:(0,a.X4)(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${f.A.focusVisible}`]:{outline:"auto"}}}]}))),A=o.forwardRef(function(e,t){let r=(0,m.b)({props:e,name:"MuiLink"}),s=(0,c.A)(),{className:u,color:d="primary",component:h="a",onBlur:A,onFocus:x,TypographyClasses:w,underline:k="always",variant:R="inherit",sx:C,...$}=r,[M,S]=o.useState(!1),T={...r,color:d,component:h,focusVisible:M,underline:k,variant:R},O=(e=>{let{classes:t,component:r,focusVisible:o,underline:n}=e,a={root:["root",`underline${(0,l.A)(n)}`,"button"===r&&"button",o&&"focusVisible"]};return(0,i.A)(a,f.t,t)})(T);return(0,v.jsx)(b,{color:d,className:(0,n.A)(O.root,u),classes:w,component:h,onBlur:e=>{(0,p.A)(e.target)||S(!1),A&&A(e)},onFocus:e=>{(0,p.A)(e.target)&&S(!0),x&&x(e)},ref:t,ownerState:T,variant:R,...$,sx:[...void 0===g[d]?[{color:d}]:[],...Array.isArray(C)?C:[C]],style:{...$.style,..."always"===k&&"inherit"!==d&&!g[d]&&{"--Link-underlineColor":(({theme:e,ownerState:t})=>{let r=t.color,o=(0,y.Yn)(e,`palette.${r}.main`,!1)||(0,y.Yn)(e,`palette.${r}`,!1)||t.color,n=(0,y.Yn)(e,`palette.${r}.mainChannel`)||(0,y.Yn)(e,`palette.${r}Channel`);return"vars"in e&&n?`rgba(${n} / 0.4)`:(0,a.X4)(o,.4)})({theme:s,ownerState:T})}}})})},82561(e,t,r){"use strict";r.d(t,{A:()=>i,t:()=>a});var o=r(29009),n=r(46733);function a(e){return(0,n.Ay)("MuiLink",e)}let i=(0,o.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"])},33313(e,t,r){"use strict";r.d(t,{A:()=>A});var o=r(70451),n=r(11750),a=r(81023),i=r(59238),p=r(69402),l=r(77308),s=r(23434),c=r(72052),u=r(29009),d=r(46733);function m(e){return(0,d.Ay)("MuiSkeleton",e)}(0,u.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var h=r(62540);let f=(0,p.keyframes)`
2
+ 0% {
3
+ opacity: 1;
4
+ }
5
+
6
+ 50% {
7
+ opacity: 0.4;
8
+ }
9
+
10
+ 100% {
11
+ opacity: 1;
12
+ }
13
+ `,y=(0,p.keyframes)`
14
+ 0% {
15
+ transform: translateX(-100%);
16
+ }
17
+
18
+ 50% {
19
+ /* +0.5s of delay between each loop */
20
+ transform: translateX(100%);
21
+ }
22
+
23
+ 100% {
24
+ transform: translateX(100%);
25
+ }
26
+ `,v="string"!=typeof f?(0,p.css)`
27
+ animation: ${f} 2s ease-in-out 0.5s infinite;
28
+ `:null,g="string"!=typeof y?(0,p.css)`
29
+ &::after {
30
+ animation: ${y} 2s linear 0.5s infinite;
31
+ }
32
+ `:null,b=(0,l.A)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((0,s.A)(({theme:e})=>{let t=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",r=parseFloat(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,i.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:v||{animation:`${f} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
33
+ 90deg,
34
+ transparent,
35
+ ${(e.vars||e).palette.action.hover},
36
+ transparent
37
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:g||{"&::after":{animation:`${y} 2s linear 0.5s infinite`}}}]}})),A=o.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:p="span",height:l,style:s,variant:u="text",width:d,...f}=r,y={...r,animation:o,component:p,variant:u,hasChildren:!!f.children},v=(e=>{let{classes:t,variant:r,animation:o,hasChildren:n,width:i,height:p}=e;return(0,a.A)({root:["root",r,o,n&&"withChildren",n&&!i&&"fitContent",n&&!p&&"heightAuto"]},m,t)})(y);return(0,h.jsx)(b,{as:p,ref:t,className:(0,n.A)(v.root,i),ownerState:y,...f,style:{width:d,height:l,...s}})})},65211(e,t,r){"use strict";r.d(t,{A:()=>E});var o=r(70451),n=r(11750),a=r(3725),i=r(81023),p=r(59238),l=r(35216),s=r(93399),c=r(30443),u=r(77308),d=r(56599),m=r(23434),h=r(72052),f=r(24726),y=r(46823),v=r(48865),g=r(32398),b=r(29424),A=r(63392),x=r(2203),w=r(73397),k=r(32751),R=r(62540);let C=(0,u.A)(v.A,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((0,m.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${k.A.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${k.A.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${k.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${k.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${k.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${k.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${k.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${k.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),$=(0,u.A)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,f.A)(r.placement.split("-")[0])}`]]}})((0,m.A)(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,p.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${k.A.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${k.A.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${k.A.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${k.A.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Math.round(16/14*1e5)/1e5}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${k.A.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${k.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${k.A.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${k.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${k.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${k.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${k.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${k.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${k.A.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${k.A.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),M=(0,u.A)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((0,m.A)(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,p.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))),S=!1,T=new a.E,O={x:0,y:0};function L(e,t){return(r,...o)=>{t&&t(r,...o),e(r,...o)}}let E=o.forwardRef(function(e,t){let r=(0,h.b)({props:e,name:"MuiTooltip"}),{arrow:p=!1,children:u,classes:m,components:E={},componentsProps:z={},describeChild:P=!1,disableFocusListener:_=!1,disableHoverListener:j=!1,disableInteractive:B=!1,disableTouchListener:H=!1,enterDelay:I=100,enterNextDelay:V=0,enterTouchDelay:W=700,followCursor:X=!1,id:F,leaveDelay:N=0,leaveTouchDelay:D=1500,onClose:U,onOpen:Y,open:q,placement:Q="bottom",PopperComponent:Z,PopperProps:G={},slotProps:J={},slots:K={},title:ee,TransitionComponent:et,TransitionProps:er,...eo}=r,en=o.isValidElement(u)?u:(0,R.jsx)("span",{children:u}),ea=(0,d.A)(),ei=(0,l.I)(),[ep,el]=o.useState(),[es,ec]=o.useState(null),eu=o.useRef(!1),ed=B||X,em=(0,a.A)(),eh=(0,a.A)(),ef=(0,a.A)(),ey=(0,a.A)(),[ev,eg]=(0,x.A)({controlled:q,default:!1,name:"Tooltip",state:"open"}),eb=ev,eA=(0,A.A)(F),ex=o.useRef(),ew=(0,g.A)(()=>{void 0!==ex.current&&(document.body.style.WebkitUserSelect=ex.current,ex.current=void 0),ey.clear()});o.useEffect(()=>ew,[ew]);let ek=e=>{T.clear(),S=!0,eg(!0),Y&&!eb&&Y(e)},eR=(0,g.A)(e=>{T.start(800+N,()=>{S=!1}),eg(!1),U&&eb&&U(e),em.start(ea.transitions.duration.shortest,()=>{eu.current=!1})}),eC=e=>{eu.current&&"touchstart"!==e.type||(ep&&ep.removeAttribute("title"),eh.clear(),ef.clear(),I||S&&V?eh.start(S?V:I,()=>{ek(e)}):ek(e))},e$=e=>{eh.clear(),ef.start(N,()=>{eR(e)})},[,eM]=o.useState(!1),eS=e=>{(0,s.A)(e.target)||(eM(!1),e$(e))},eT=e=>{ep||el(e.currentTarget),(0,s.A)(e.target)&&(eM(!0),eC(e))},eO=e=>{eu.current=!0;let t=en.props;t.onTouchStart&&t.onTouchStart(e)};o.useEffect(()=>{if(eb)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&eR(e)}},[eR,eb]);let eL=(0,b.A)((0,c.A)(en),el,t);ee||0===ee||(eb=!1);let eE=o.useRef(),ez={},eP="string"==typeof ee;P?(ez.title=eb||!eP||j?null:ee,ez["aria-describedby"]=eb?eA:null):(ez["aria-label"]=eP?ee:null,ez["aria-labelledby"]=eb&&!eP?eA:null);let e_={...ez,...eo,...en.props,className:(0,n.A)(eo.className,en.props.className),onTouchStart:eO,ref:eL,...X?{onMouseMove:e=>{let t=en.props;t.onMouseMove&&t.onMouseMove(e),O={x:e.clientX,y:e.clientY},eE.current&&eE.current.update()}}:{}},ej={};H||(e_.onTouchStart=e=>{eO(e),ef.clear(),em.clear(),ew(),ex.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ey.start(W,()=>{document.body.style.WebkitUserSelect=ex.current,eC(e)})},e_.onTouchEnd=e=>{en.props.onTouchEnd&&en.props.onTouchEnd(e),ew(),ef.start(D,()=>{eR(e)})}),!j&&(e_.onMouseOver=L(eC,e_.onMouseOver),e_.onMouseLeave=L(e$,e_.onMouseLeave),ed||(ej.onMouseOver=eC,ej.onMouseLeave=e$)),!_&&(e_.onFocus=L(eT,e_.onFocus),e_.onBlur=L(eS,e_.onBlur),ed||(ej.onFocus=eT,ej.onBlur=eS));let eB={...r,isRtl:ei,arrow:p,disableInteractive:ed,placement:Q,PopperComponentProp:Z,touch:eu.current},eH="function"==typeof J.popper?J.popper(eB):J.popper,eI=o.useMemo(()=>{let e=[{name:"arrow",enabled:!!es,options:{element:es,padding:4}}];return G.popperOptions?.modifiers&&(e=e.concat(G.popperOptions.modifiers)),eH?.popperOptions?.modifiers&&(e=e.concat(eH.popperOptions.modifiers)),{...G.popperOptions,...eH?.popperOptions,modifiers:e}},[es,G.popperOptions,eH?.popperOptions]),eV=(e=>{let{classes:t,disableInteractive:r,arrow:o,touch:n,placement:a}=e,p={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",n&&"touch",`tooltipPlacement${(0,f.A)(a.split("-")[0])}`],arrow:["arrow"]};return(0,i.A)(p,k.E,t)})(eB),eW="function"==typeof J.transition?J.transition(eB):J.transition,eX={slots:{popper:E.Popper,transition:E.Transition??et,tooltip:E.Tooltip,arrow:E.Arrow,...K},slotProps:{arrow:J.arrow??z.arrow,popper:{...G,...eH??z.popper},tooltip:J.tooltip??z.tooltip,transition:{...er,...eW??z.transition}}},[eF,eN]=(0,w.A)("popper",{elementType:C,externalForwardedProps:eX,ownerState:eB,className:(0,n.A)(eV.popper,G?.className)}),[eD,eU]=(0,w.A)("transition",{elementType:y.A,externalForwardedProps:eX,ownerState:eB}),[eY,eq]=(0,w.A)("tooltip",{elementType:$,className:eV.tooltip,externalForwardedProps:eX,ownerState:eB}),[eQ,eZ]=(0,w.A)("arrow",{elementType:M,className:eV.arrow,externalForwardedProps:eX,ownerState:eB,ref:ec});return(0,R.jsxs)(o.Fragment,{children:[o.cloneElement(en,e_),(0,R.jsx)(eF,{as:Z??v.A,placement:Q,anchorEl:X?{getBoundingClientRect:()=>({top:O.y,left:O.x,right:O.x,bottom:O.y,width:0,height:0})}:ep,popperRef:eE,open:!!ep&&eb,id:eA,transition:!0,...ej,...eN,popperOptions:eI,children:({TransitionProps:e})=>(0,R.jsx)(eD,{timeout:ea.transitions.duration.shorter,...e,...eU,children:(0,R.jsxs)(eY,{...eq,children:[ee,p?(0,R.jsx)(eQ,{...eZ}):null]})})})]})})},32751(e,t,r){"use strict";r.d(t,{A:()=>i,E:()=>a});var o=r(29009),n=r(46733);function a(e){return(0,n.Ay)("MuiTooltip",e)}let i=(0,o.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"])},8072(e,t,r){"use strict";r.d(t,{A:()=>s});var o=r(70451),n=r(31789),a=r(70320),i=r(45827);let p={...o}.useSyncExternalStore;function l(e={}){let{themeId:t}=e;return function(e,r={}){let l=(0,i.A)();l&&t&&(l=l[t]||l);let s="u">typeof window&&void 0!==window.matchMedia,{defaultMatches:c=!1,matchMedia:u=s?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:m=!1}=(0,a.A)({name:"MuiUseMediaQuery",props:r,theme:l}),h="function"==typeof e?e(l):e;return(h=h.replace(/^@media( ?)/m,"")).includes("print")&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."),(void 0!==p?function(e,t,r,n,a){let i=o.useCallback(()=>t,[t]),l=o.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(null!==n){let{matches:t}=n(e);return()=>t}return i},[i,e,n,a,r]),[s,c]=o.useMemo(()=>{if(null===r)return[i,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[i,r,e]);return p(c,s,l)}:function(e,t,r,a,i){let[p,l]=o.useState(()=>i&&r?r(e).matches:a?a(e).matches:t);return(0,n.A)(()=>{if(!r)return;let t=r(e),o=()=>{l(t.matches)};return o(),t.addEventListener("change",o),()=>{t.removeEventListener("change",o)}},[e,r]),p})(h,c,u,d,m)}}l();let s=l({themeId:r(93724).A})},29917(e,t,r){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((o=r(1448))&&o.__esModule?o:{default:o}).default)("M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12M8.8,14L10,12.8V4H14V12.8L15.2,14H8.8Z","PinOutline")},40362(e,t,r){"use strict";var o=r(56441);function n(){}function a(){}a.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,a,i){if(i!==o){var p=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:n};return r.PropTypes=r,r}},62688(e,t,r){e.exports=r(40362)()},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},85180(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>a});var o=r(70451);function n(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:"contentBoxSize"===t?e.contentRect["inlineSize"===r?"width":"height"]:void 0}function a(e){void 0===e&&(e={});var t,r,a,i,p,l,s=e.onResize,c=(0,o.useRef)(void 0);c.current=s;var u=e.round||Math.round,d=(0,o.useRef)(),m=(0,o.useState)({width:void 0,height:void 0}),h=m[0],f=m[1],y=(0,o.useRef)(!1);(0,o.useEffect)(function(){return y.current=!1,function(){y.current=!0}},[]);var v=(0,o.useRef)({width:void 0,height:void 0}),g=(t=(0,o.useCallback)(function(t){return d.current&&d.current.box===e.box&&d.current.round===u||(d.current={box:e.box,round:u,instance:new ResizeObserver(function(t){var r=t[0],o="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",a=n(r,o,"inlineSize"),i=n(r,o,"blockSize"),p=a?u(a):void 0,l=i?u(i):void 0;if(v.current.width!==p||v.current.height!==l){var s={width:p,height:l};v.current.width=p,v.current.height=l,c.current?c.current(s):y.current||f(s)}})}),d.current.instance.observe(t,{box:e.box}),function(){d.current&&d.current.instance.unobserve(t)}},[e.box,u]),r=e.ref,a=(0,o.useRef)(null),(i=(0,o.useRef)(null)).current=r,p=(0,o.useRef)(null),(0,o.useEffect)(function(){l()}),l=(0,o.useCallback)(function(){var e=p.current,r=i.current,o=e||(r?r instanceof Element?r:r.current:null);a.current&&a.current.element===o&&a.current.subscriber===t||(a.current&&a.current.cleanup&&a.current.cleanup(),a.current={element:o,subscriber:t,cleanup:o?t(o):void 0})},[t]),(0,o.useEffect)(function(){return function(){a.current&&a.current.cleanup&&(a.current.cleanup(),a.current=null)}},[]),(0,o.useCallback)(function(e){p.current=e,l()},[l]));return(0,o.useMemo)(function(){return{ref:g,width:h.width,height:h.height}},[g,h.width,h.height])}}}]);