@pie-element/number-line 13.1.1 → 13.1.2-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/_virtual/_rolldown/runtime.js +11 -0
  4. package/dist/author/arrows.d.ts +28 -0
  5. package/dist/author/arrows.js +69 -0
  6. package/dist/author/card-bar.d.ts +20 -0
  7. package/dist/author/card-bar.js +41 -0
  8. package/dist/author/defaults.d.ts +178 -0
  9. package/dist/author/defaults.js +144 -0
  10. package/dist/author/domain.d.ts +15 -0
  11. package/dist/author/domain.js +54 -0
  12. package/dist/author/index.d.ts +23 -0
  13. package/dist/author/index.js +89 -0
  14. package/dist/author/main.d.ts +44 -0
  15. package/dist/author/main.js +485 -0
  16. package/dist/author/number-text-field.d.ts +13 -0
  17. package/dist/author/number-text-field.js +13 -0
  18. package/dist/author/point-config.d.ts +25 -0
  19. package/dist/author/point-config.js +69 -0
  20. package/dist/author/size.d.ts +24 -0
  21. package/dist/author/size.js +48 -0
  22. package/dist/author/ticks.d.ts +22 -0
  23. package/dist/author/ticks.js +115 -0
  24. package/dist/author/utils.d.ts +9 -0
  25. package/dist/author/utils.js +4 -0
  26. package/dist/browser/_baseSet-ycZx94p7.js +8672 -0
  27. package/dist/browser/_baseSet-ycZx94p7.js.map +1 -0
  28. package/dist/browser/author/index.js +40436 -0
  29. package/dist/browser/author/index.js.map +1 -0
  30. package/dist/browser/controller/index.js +823 -0
  31. package/dist/browser/controller/index.js.map +1 -0
  32. package/dist/browser/delivery/index.js +2 -0
  33. package/dist/browser/delivery-Dh8QdqpO.js +17950 -0
  34. package/dist/browser/delivery-Dh8QdqpO.js.map +1 -0
  35. package/dist/browser/number-line.css +2 -0
  36. package/dist/browser/uniqWith-CKN50xMI.js +17886 -0
  37. package/dist/browser/uniqWith-CKN50xMI.js.map +1 -0
  38. package/dist/controller/defaults.d.ts +58 -0
  39. package/dist/controller/defaults.js +50 -0
  40. package/dist/controller/index.d.ts +33 -0
  41. package/dist/controller/index.js +170 -0
  42. package/dist/controller/tickUtils.d.ts +20 -0
  43. package/dist/controller/tickUtils.js +254 -0
  44. package/dist/controller/utils.d.ts +9 -0
  45. package/dist/controller/utils.js +68 -0
  46. package/dist/delivery/data-converter.d.ts +64 -0
  47. package/dist/delivery/data-converter.js +70 -0
  48. package/dist/delivery/draggable/index.d.ts +33 -0
  49. package/dist/delivery/draggable/index.js +39 -0
  50. package/dist/delivery/index.d.ts +35 -0
  51. package/dist/delivery/index.js +109 -0
  52. package/dist/delivery/number-line/colors.d.ts +11 -0
  53. package/dist/delivery/number-line/colors.js +5 -0
  54. package/dist/delivery/number-line/feedback.d.ts +19 -0
  55. package/dist/delivery/number-line/feedback.js +57 -0
  56. package/dist/delivery/number-line/graph/arrow.d.ts +30 -0
  57. package/dist/delivery/number-line/graph/arrow.js +27 -0
  58. package/dist/delivery/number-line/graph/elements/base.d.ts +16 -0
  59. package/dist/delivery/number-line/graph/elements/base.js +11 -0
  60. package/dist/delivery/number-line/graph/elements/builder.d.ts +33 -0
  61. package/dist/delivery/number-line/graph/elements/builder.js +30 -0
  62. package/dist/delivery/number-line/graph/elements/line.d.ts +51 -0
  63. package/dist/delivery/number-line/graph/elements/line.js +189 -0
  64. package/dist/delivery/number-line/graph/elements/point.d.ts +43 -0
  65. package/dist/delivery/number-line/graph/elements/point.js +127 -0
  66. package/dist/delivery/number-line/graph/elements/ray.d.ts +43 -0
  67. package/dist/delivery/number-line/graph/elements/ray.js +130 -0
  68. package/dist/delivery/number-line/graph/index.d.ts +59 -0
  69. package/dist/delivery/number-line/graph/index.js +196 -0
  70. package/dist/delivery/number-line/graph/line.d.ts +46 -0
  71. package/dist/delivery/number-line/graph/line.js +27 -0
  72. package/dist/delivery/number-line/graph/stacks.d.ts +10 -0
  73. package/dist/delivery/number-line/graph/stacks.js +40 -0
  74. package/dist/delivery/number-line/graph/tick-utils.d.ts +73 -0
  75. package/dist/delivery/number-line/graph/tick-utils.js +297 -0
  76. package/dist/delivery/number-line/graph/ticks.d.ts +46 -0
  77. package/dist/delivery/number-line/graph/ticks.js +115 -0
  78. package/dist/delivery/number-line/index.d.ts +35 -0
  79. package/dist/delivery/number-line/index.js +218 -0
  80. package/dist/delivery/number-line/point-chooser/button.d.ts +31 -0
  81. package/dist/delivery/number-line/point-chooser/button.js +36 -0
  82. package/dist/delivery/number-line/point-chooser/img.d.ts +10 -0
  83. package/dist/delivery/number-line/point-chooser/img.js +4 -0
  84. package/dist/delivery/number-line/point-chooser/index.d.ts +37 -0
  85. package/dist/delivery/number-line/point-chooser/index.js +154 -0
  86. package/dist/delivery/number-line/point-chooser/styles.d.ts +192 -0
  87. package/dist/delivery/number-line/transitions/fade.d.ts +34 -0
  88. package/dist/delivery/number-line/transitions/fade.js +75 -0
  89. package/dist/delivery/number-line/transitions/index.d.ts +10 -0
  90. package/dist/index.d.ts +1 -0
  91. package/dist/index.iife.d.ts +8 -0
  92. package/dist/index.iife.js +201 -0
  93. package/dist/index.js +2 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +7 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +7 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js +8 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +5 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +9 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +26 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +6 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +11 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +12 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js +19 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js +31 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +13 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +8 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +27 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js +15 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +19 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +9 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +16 -0
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +12 -0
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +7 -0
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  216. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
  217. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  218. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
  219. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  220. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  221. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  222. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  223. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  224. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  225. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
  226. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  227. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js +6 -0
  228. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
  229. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
  230. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
  231. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
  232. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
  233. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  234. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  235. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  236. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  237. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  238. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +7 -0
  239. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
  240. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
  241. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  242. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
  243. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  244. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
  245. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  246. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +6 -0
  247. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +13 -0
  248. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +8 -0
  249. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
  250. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
  251. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  252. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  253. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  254. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  255. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  256. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  257. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
  258. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqualWith.js +9 -0
  259. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  260. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  261. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  262. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isNumber.js +9 -0
  263. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  264. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  265. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js +14 -0
  266. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  267. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  268. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  269. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  270. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  271. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
  272. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js +8 -0
  273. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/negate.js +17 -0
  274. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +4 -0
  275. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/omitBy.js +9 -0
  276. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pickBy.js +16 -0
  277. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +10 -0
  278. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  279. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  280. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +8 -0
  281. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +8 -0
  282. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
  283. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js +8 -0
  284. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
  285. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +7 -0
  286. package/package.json +78 -16
  287. package/CHANGELOG.json +0 -1247
  288. package/CHANGELOG.md +0 -2435
  289. package/LICENSE.md +0 -5
  290. package/README.md +0 -28
  291. package/configure/CHANGELOG.json +0 -827
  292. package/configure/CHANGELOG.md +0 -2082
  293. package/configure/lib/arrows.js +0 -89
  294. package/configure/lib/arrows.js.map +0 -1
  295. package/configure/lib/card-bar.js +0 -57
  296. package/configure/lib/card-bar.js.map +0 -1
  297. package/configure/lib/defaults.js +0 -177
  298. package/configure/lib/defaults.js.map +0 -1
  299. package/configure/lib/domain.js +0 -87
  300. package/configure/lib/domain.js.map +0 -1
  301. package/configure/lib/index.js +0 -176
  302. package/configure/lib/index.js.map +0 -1
  303. package/configure/lib/main.js +0 -815
  304. package/configure/lib/main.js.map +0 -1
  305. package/configure/lib/number-text-field.js +0 -26
  306. package/configure/lib/number-text-field.js.map +0 -1
  307. package/configure/lib/point-config.js +0 -84
  308. package/configure/lib/point-config.js.map +0 -1
  309. package/configure/lib/size.js +0 -66
  310. package/configure/lib/size.js.map +0 -1
  311. package/configure/lib/ticks.js +0 -234
  312. package/configure/lib/ticks.js.map +0 -1
  313. package/configure/lib/utils.js +0 -12
  314. package/configure/lib/utils.js.map +0 -1
  315. package/configure/package.json +0 -20
  316. package/controller/CHANGELOG.json +0 -332
  317. package/controller/CHANGELOG.md +0 -1360
  318. package/controller/lib/defaults.js +0 -56
  319. package/controller/lib/defaults.js.map +0 -1
  320. package/controller/lib/index.js +0 -430
  321. package/controller/lib/index.js.map +0 -1
  322. package/controller/lib/tickUtils.js +0 -294
  323. package/controller/lib/tickUtils.js.map +0 -1
  324. package/controller/lib/utils.js +0 -168
  325. package/controller/lib/utils.js.map +0 -1
  326. package/controller/package.json +0 -20
  327. package/demo.gif +0 -0
  328. package/docs/config-schema.json +0 -2532
  329. package/docs/config-schema.json.md +0 -1844
  330. package/docs/demo/config.js +0 -8
  331. package/docs/demo/generate.js +0 -39
  332. package/docs/demo/index.html +0 -1
  333. package/docs/pie-schema.json +0 -2461
  334. package/docs/pie-schema.json.md +0 -1228
  335. package/docs/schemas/config.json +0 -256
  336. package/lib/data-converter.js +0 -96
  337. package/lib/data-converter.js.map +0 -1
  338. package/lib/draggable/index.js +0 -114
  339. package/lib/draggable/index.js.map +0 -1
  340. package/lib/index.js +0 -196
  341. package/lib/index.js.map +0 -1
  342. package/lib/number-line/colors.js +0 -11
  343. package/lib/number-line/colors.js.map +0 -1
  344. package/lib/number-line/feedback.js +0 -92
  345. package/lib/number-line/feedback.js.map +0 -1
  346. package/lib/number-line/graph/arrow.js +0 -44
  347. package/lib/number-line/graph/arrow.js.map +0 -1
  348. package/lib/number-line/graph/elements/base.js +0 -20
  349. package/lib/number-line/graph/elements/base.js.map +0 -1
  350. package/lib/number-line/graph/elements/builder.js +0 -37
  351. package/lib/number-line/graph/elements/builder.js.map +0 -1
  352. package/lib/number-line/graph/elements/line.js +0 -259
  353. package/lib/number-line/graph/elements/line.js.map +0 -1
  354. package/lib/number-line/graph/elements/point.js +0 -204
  355. package/lib/number-line/graph/elements/point.js.map +0 -1
  356. package/lib/number-line/graph/elements/ray.js +0 -190
  357. package/lib/number-line/graph/elements/ray.js.map +0 -1
  358. package/lib/number-line/graph/index.js +0 -262
  359. package/lib/number-line/graph/index.js.map +0 -1
  360. package/lib/number-line/graph/line.js +0 -38
  361. package/lib/number-line/graph/line.js.map +0 -1
  362. package/lib/number-line/graph/stacks.js +0 -78
  363. package/lib/number-line/graph/stacks.js.map +0 -1
  364. package/lib/number-line/graph/tick-utils.js +0 -347
  365. package/lib/number-line/graph/tick-utils.js.map +0 -1
  366. package/lib/number-line/graph/ticks.js +0 -188
  367. package/lib/number-line/graph/ticks.js.map +0 -1
  368. package/lib/number-line/index.js +0 -384
  369. package/lib/number-line/index.js.map +0 -1
  370. package/lib/number-line/point-chooser/button.js +0 -49
  371. package/lib/number-line/point-chooser/button.js.map +0 -1
  372. package/lib/number-line/point-chooser/img.js +0 -8
  373. package/lib/number-line/point-chooser/img.js.map +0 -1
  374. package/lib/number-line/point-chooser/index.js +0 -197
  375. package/lib/number-line/point-chooser/index.js.map +0 -1
  376. package/lib/number-line/point-chooser/styles.js +0 -77
  377. package/lib/number-line/point-chooser/styles.js.map +0 -1
  378. package/lib/number-line/transitions/fade.js +0 -88
  379. package/lib/number-line/transitions/fade.js.map +0 -1
  380. package/lib/number-line/transitions/index.js +0 -14
  381. package/lib/number-line/transitions/index.js.map +0 -1
@@ -0,0 +1,201 @@
1
+ this.NumberLineElement=(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=e=>{let{position:t}=e;return t.left>t.right},d=e=>{let{position:t}=e;if(t.left<t.right)return e;let{leftPoint:n,rightPoint:r}=e;return{leftPoint:r,rightPoint:n,position:f(t),type:`line`}},f=e=>{let{left:t,right:n}=e;return{left:n,right:t}},p=e=>{if(e.type===`point`)return{type:`point`,pointType:e.pointType,domainPosition:e.position};if(e.type===`line`)return{type:`line`,size:e.position.right-e.position.left,domainPosition:e.position.left,leftPoint:e.leftPoint,rightPoint:e.rightPoint};if(e.type===`ray`)return{type:`ray`,domainPosition:e.position,pointType:e.pointType,direction:e.direction}},m=e=>{if(e.type===`point`)return{type:`point`,pointType:e.pointType,position:e.domainPosition};if(e.type===`line`)return{type:`line`,position:{left:e.domainPosition,right:e.domainPosition+e.size},leftPoint:e.leftPoint,rightPoint:e.rightPoint};if(e.type===`ray`)return{type:`ray`,position:e.domainPosition,pointType:e.pointType,direction:e.direction}},h=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+A(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+A(s,l);c+=j(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+A(s,l++),c+=j(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function N(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P={current:null},ee={transition:null},te={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:ee,ReactCurrentOwner:C};function F(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,e.act=F,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ee.transition;ee.transition={};try{e()}finally{ee.transition=t}},e.unstable_act=F,e.useCallback=function(e,t){return P.current.useCallback(e,t)},e.useContext=function(e){return P.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return P.current.useDeferredValue(e)},e.useEffect=function(e,t){return P.current.useEffect(e,t)},e.useId=function(){return P.current.useId()},e.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return P.current.useMemo(e,t)},e.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},e.useRef=function(e){return P.current.useRef(e)},e.useState=function(e){return P.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return P.current.useTransition()},e.version=`18.3.1`})),g=o(((e,t)=>{t.exports=h()}));function _(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var v=`$$material`;function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(null,arguments)}var b=!1;function x(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function S(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var C=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!b:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(S(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=x(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),w=`-ms-`,T=`-moz-`,E=`-webkit-`,D=`comm`,O=`rule`,k=`decl`,A=`@import`,j=`@keyframes`,M=`@layer`,N=Math.abs,P=String.fromCharCode,ee=Object.assign;function te(e,t){return ie(e,0)^45?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}function F(e){return e.trim()}function ne(e,t){return(e=t.exec(e))?e[0]:e}function I(e,t,n){return e.replace(t,n)}function re(e,t){return e.indexOf(t)}function ie(e,t){return e.charCodeAt(t)|0}function ae(e,t,n){return e.slice(t,n)}function oe(e){return e.length}function se(e){return e.length}function ce(e,t){return t.push(e),e}function le(e,t){return e.map(t).join(``)}var ue=1,de=1,fe=0,pe=0,me=0,he=``;function ge(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:ue,column:de,length:o,return:``}}function _e(e,t){return ee(ge(``,null,null,``,null,null,0),e,{length:-e.length},t)}function ve(){return me}function ye(){return me=pe>0?ie(he,--pe):0,de--,me===10&&(de=1,ue--),me}function be(){return me=pe<fe?ie(he,pe++):0,de++,me===10&&(de=1,ue++),me}function xe(){return ie(he,pe)}function Se(){return pe}function Ce(e,t){return ae(he,e,t)}function we(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Te(e){return ue=de=1,fe=oe(he=e),pe=0,[]}function Ee(e){return he=``,e}function De(e){return F(Ce(pe-1,Ae(e===91?e+2:e===40?e+1:e)))}function Oe(e){for(;(me=xe())&&me<33;)be();return we(e)>2||we(me)>3?``:` `}function ke(e,t){for(;--t&&be()&&!(me<48||me>102||me>57&&me<65||me>70&&me<97););return Ce(e,Se()+(t<6&&xe()==32&&be()==32))}function Ae(e){for(;be();)switch(me){case e:return pe;case 34:case 39:e!==34&&e!==39&&Ae(me);break;case 40:e===41&&Ae(e);break;case 92:be();break}return pe}function je(e,t){for(;be()&&e+me!==57&&!(e+me===84&&xe()===47););return`/*`+Ce(t,pe-1)+`*`+P(e===47?e:be())}function Me(e){for(;!we(xe());)be();return Ce(e,pe)}function Ne(e){return Ee(Pe(``,null,null,null,[``],e=Te(e),0,[0],e))}function Pe(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=be()){case 40:if(m!=108&&ie(C,d-1)==58){re(C+=I(De(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=De(v);break;case 9:case 10:case 13:case 32:C+=Oe(m);break;case 92:C+=ke(Se()-1,7);continue;case 47:switch(xe()){case 42:case 47:ce(Ie(je(be(),Se()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=oe(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=I(C,/\f/g,``)),p>0&&oe(C)-d&&ce(p>32?Le(C+`;`,r,n,d-1):Le(I(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(ce(S=Fe(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Pe(C,t,S,S,b,a,d,s,x);else switch(f===99&&ie(C,3)===110?100:f){case 100:case 108:case 109:case 115:Pe(e,S,S,r&&ce(Fe(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Pe(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+oe(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&ye()==125)continue}switch(C+=P(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(oe(C)-1)*_,_=1;break;case 64:xe()===45&&(C+=De(be())),f=xe(),u=d=oe(y=C+=Me(Se())),v++;break;case 45:m===45&&oe(C)==2&&(h=0)}}return a}function Fe(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=se(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=ae(e,d+1,d=N(h=o[m])),y=e;_<p;++_)(y=F(h>0?f[_]+` `+v:I(v,/&\f/g,f[_])))&&(c[g++]=y);return ge(e,t,n,i===0?O:s,c,l,u)}function Ie(e,t,n){return ge(e,t,n,D,P(ve()),ae(e,2,-2),0)}function Le(e,t,n,r){return ge(e,t,n,k,ae(e,0,r),ae(e,r+1,-1),r)}function Re(e,t){for(var n=``,r=se(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function ze(e,t,n,r){switch(e.type){case M:if(e.children.length)break;case A:case k:return e.return=e.return||e.value;case D:return``;case j:return e.return=e.value+`{`+Re(e.children,r)+`}`;case O:e.value=e.props.join(`,`)}return oe(n=Re(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Be(e){var t=se(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Ve(e){return function(t){t.root||(t=t.return)&&e(t)}}function He(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ue=function(e,t,n){for(var r=0,i=0;r=i,i=xe(),r===38&&i===12&&(t[n]=1),!we(i);)be();return Ce(e,pe)},We=function(e,t){var n=-1,r=44;do switch(we(r)){case 0:r===38&&xe()===12&&(t[n]=1),e[n]+=Ue(pe-1,t,n);break;case 2:e[n]+=De(r);break;case 4:if(r===44){e[++n]=xe()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=P(r)}while(r=be());return e},Ge=function(e,t){return Ee(We(Te(e),t))},Ke=new WeakMap,qe=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ke.get(n))&&!r){Ke.set(e,!0);for(var i=[],a=Ge(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Je=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function Ye(e,t){switch(te(e,t)){case 5103:return E+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+T+e+w+e+e;case 6828:case 4268:return E+e+w+e+e;case 6165:return E+e+w+`flex-`+e+e;case 5187:return E+e+I(e,/(\w+).+(:[^]+)/,E+`box-$1$2`+w+`flex-$1$2`)+e;case 5443:return E+e+w+`flex-item-`+I(e,/flex-|-self/,``)+e;case 4675:return E+e+w+`flex-line-pack`+I(e,/align-content|flex-|-self/,``)+e;case 5548:return E+e+w+I(e,`shrink`,`negative`)+e;case 5292:return E+e+w+I(e,`basis`,`preferred-size`)+e;case 6060:return E+`box-`+I(e,`-grow`,``)+E+e+w+I(e,`grow`,`positive`)+e;case 4554:return E+I(e,/([^-])(transform)/g,`$1`+E+`$2`)+e;case 6187:return I(I(I(e,/(zoom-|grab)/,E+`$1`),/(image-set)/,E+`$1`),e,``)+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,E+`box-pack:$3`+w+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+E+e+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,E+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(oe(e)-1-t>6)switch(ie(e,t+1)){case 109:if(ie(e,t+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,`$1`+E+`$2-$3$1`+T+(ie(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~re(e,`stretch`)?Ye(I(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(ie(e,t+1)!==115)break;case 6444:switch(ie(e,oe(e)-3-(~re(e,`!important`)&&10))){case 107:return I(e,`:`,`:`+E)+e;case 101:return I(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+E+(ie(e,14)===45?`inline-`:``)+`box$3$1`+E+`$2$3$1`+w+`$2box$3`)+e}break;case 5936:switch(ie(e,t+11)){case 114:return E+e+w+I(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return E+e+w+I(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return E+e+w+I(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return E+e+w+e+e}return e}var Xe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case k:e.return=Ye(e.value,e.length);break;case j:return Re([_e(e,{value:I(e.value,`@`,`@`+E)})],r);case O:if(e.length)return le(e.props,function(t){switch(ne(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Re([_e(e,{props:[I(t,/:(read-\w+)/,`:`+T+`$1`)]})],r);case`::placeholder`:return Re([_e(e,{props:[I(t,/:(plac\w+)/,`:`+E+`input-$1`)]}),_e(e,{props:[I(t,/:(plac\w+)/,`:`+T+`$1`)]}),_e(e,{props:[I(t,/:(plac\w+)/,w+`input-$1`)]})],r)}return``})}}],Ze=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Xe,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[qe,Je],l,u=[ze,Ve(function(e){l.insert(e)})],d=Be(c.concat(r,u)),f=function(e){return Re(Ne(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new C({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Qe=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),$e=o(((e,t)=>{t.exports=Qe()})),et=o(((e,t)=>{var n=$e(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),tt=!0;function nt(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var rt=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||tt===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},it=function(e,t,n){rt(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function at(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ot={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},st=!1,ct=/[A-Z]|^ms/g,lt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ut=function(e){return e.charCodeAt(1)===45},dt=function(e){return e!=null&&typeof e!=`boolean`},ft=He(function(e){return ut(e)?e:e.replace(ct,`-$&`).toLowerCase()}),pt=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(lt,function(e,t,n){return vt={name:t,styles:n,next:vt},t})}return ot[e]!==1&&!ut(e)&&typeof t==`number`&&t!==0?t+`px`:t},mt=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function ht(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return vt={name:i.name,styles:i.styles,next:vt},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)vt={name:o.name,styles:o.styles,next:vt},o=o.next;return a.styles+`;`}return gt(e,t,n);case`function`:if(e!==void 0){var s=vt,c=n(e);return vt=s,ht(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function gt(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ht(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:dt(s)&&(r+=ft(a)+`:`+pt(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&st)throw Error(mt);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)dt(o[c])&&(r+=ft(a)+`:`+pt(a,o[c])+`;`);else{var l=ht(e,t,o);switch(a){case`animation`:case`animationName`:r+=ft(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var _t=/label:\s*([^\s;{]+)\s*(;|$)/g,vt;function yt(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;vt=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=ht(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=ht(n,t,e[o]),r&&(i+=a[o]);_t.lastIndex=0;for(var s=``,c;(c=_t.exec(i))!==null;)s+=`-`+c[1];return{name:at(i)+s,styles:i,next:vt}}var L=l(g()),bt=function(e){return e()},xt=L.useInsertionEffect?L.useInsertionEffect:!1,St=xt||bt,Ct=xt||L.useLayoutEffect,wt=L.createContext(typeof HTMLElement<`u`?Ze({key:`css`}):null),Tt=wt.Provider,Et=function(e){return(0,L.forwardRef)(function(t,n){return e(t,(0,L.useContext)(wt),n)})},Dt=L.createContext({}),Ot={}.hasOwnProperty,kt=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,At=function(e,t){var n={};for(var r in t)Ot.call(t,r)&&(n[r]=t[r]);return n[kt]=e,n},jt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return rt(t,n,r),St(function(){return it(t,n,r)}),null},Mt=Et(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[kt],a=[r],o=``;typeof e.className==`string`?o=nt(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=yt(a,void 0,L.useContext(Dt));o+=t.key+`-`+s.name;var c={};for(var l in e)Ot.call(e,l)&&l!==`css`&&l!==kt&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),L.createElement(L.Fragment,null,L.createElement(jt,{cache:t,serialized:s,isStringTag:typeof i==`string`}),L.createElement(i,c))}),Nt=l(et()),Pt=function(e,t){var n=arguments;if(t==null||!Ot.call(t,`css`))return L.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Mt,i[1]=At(e,t);for(var a=2;a<r;a++)i[a]=n[a];return L.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(Pt||={});var Ft=Et(function(e,t){var n=e.styles,r=yt([n],void 0,L.useContext(Dt)),i=L.useRef();return Ct(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Ct(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&it(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function It(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return yt(t)}function Lt(){var e=It.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var Rt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,zt=He(function(e){return Rt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Bt=!1,Vt=zt,Ht=function(e){return e!==`theme`},Ut=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?Vt:Ht},Wt=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},Gt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return rt(t,n,r),St(function(){return it(t,n,r)}),null},Kt=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=Wt(t,n,r),c=s||Ut(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=Et(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=L.useContext(Dt)}typeof e.className==`string`?a=nt(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=yt(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?Ut(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),L.createElement(L.Fragment,null,L.createElement(Gt,{cache:t,serialized:m,isStringTag:typeof r==`string`}),L.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return o===void 0&&Bt?`NO_COMPONENT_SELECTOR`:`.`+o}}),h.withComponent=function(t,r){return e(t,y({},n,r,{shouldForwardProp:Wt(h,r,!0)})).apply(void 0,d)},h}},qt=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),Jt=Kt.bind(null);qt.forEach(function(e){Jt[e]=Jt(e)});var Yt=()=>null,R=new Proxy(Yt,{get:()=>Yt}),Xt=o((e=>{var t=g(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),z=o(((e,t)=>{t.exports=Xt()}))(),Zt=new Map,Qt={insert:void 0},$t=(e,t)=>{let n=Ze(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n},en;if(typeof document==`object`&&(en=document.querySelector(`[name="emotion-insertion-point"]`),!en)){en=document.createElement(`meta`),en.setAttribute(`name`,`emotion-insertion-point`),en.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend(en)}function tn(e,t){if(e||t){class n extends C{insert(e,t){return Qt.insert?Qt.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=en),super.insert(e,t))}}let r=$t({key:`css`,insertionPoint:e?en:void 0},n);if(t){let e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}function nn(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=L.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&Zt.has(e))return Zt.get(e);let r=tn(t,n);return Zt.set(e,r),r},[t,n]);return i?(0,z.jsx)(Tt,{value:i,children:r}):r}function rn(e){return e==null||Object.keys(e).length===0}function an(e){let{styles:t,defaultTheme:n={}}=e;return(0,z.jsx)(Ft,{styles:typeof t==`function`?e=>t(rn(e)?n:e):t})}function on(e,t){return Jt(e,t)}function sn(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var cn=[];function ln(e){return cn[0]=e,yt(cn)}var un=o((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),dn=o(((e,t)=>{t.exports=un()}))();function fn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function pn(e){if(L.isValidElement(e)||(0,dn.isValidElementType)(e)||!fn(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=pn(e[n])}),t}function mn(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return fn(e)&&fn(t)&&Object.keys(t).forEach(i=>{L.isValidElement(t[i])||(0,dn.isValidElementType)(t[i])?r[i]=t[i]:fn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&fn(e[i])?r[i]=mn(e[i],t[i],n):n.clone?r[i]=fn(t[i])?pn(t[i]):t[i]:r[i]=t[i]}),r}var hn=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function gn(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=hn(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,...i}}function _n(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith(`@container`)).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}function vn(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function yn(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function bn(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var xn={borderRadius:4};function Sn(e,t){return t?mn(e,t,{clone:!1}):e}var Cn={xs:0,sm:600,md:900,lg:1200,xl:1536},wn={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${Cn[e]}px)`},Tn={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Cn[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function En(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||wn;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||wn;return Object.keys(t).reduce((i,a)=>{if(vn(e.keys,a)){let e=yn(r.containerQueries?r:Tn,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||Cn).includes(a)){let r=e.up(a);i[r]=n(t[a],a)}else{let e=a;i[e]=t[e]}return i},{})}return n(t)}function Dn(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function On(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function kn(e){if(typeof e!=`string`)throw Error(_(7));return e.charAt(0).toUpperCase()+e.slice(1)}function An(e,t,n=!0){if(!t||typeof t!=`string`)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:null,e);if(n!=null)return n}return t.split(`.`).reduce((e,t)=>e&&e[t]!=null?e[t]:null,e)}function jn(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:An(e,n)||r,t&&(i=t(i,r,e)),i}function Mn(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=An(o,r)||{};return En(e,a,e=>{let r=jn(s,i,e);return e===r&&typeof e==`string`&&(r=jn(s,i,`${t}${e==="default"?``:kn(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function Nn(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Pn={m:`margin`,p:`padding`},Fn={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},In={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},Ln=Nn(e=>{if(e.length>2)if(In[e])e=In[e];else return[e];let[t,n]=e.split(``),r=Pn[t],i=Fn[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),Rn=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],zn=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],Bn=[...Rn,...zn];function Vn(e,t,n,r){let i=An(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function Hn(e){return Vn(e,`spacing`,8,`spacing`)}function Un(e,t){return typeof t==`string`||t==null?t:e(t)}function Wn(e,t){return n=>e.reduce((e,r)=>(e[r]=Un(t,n),e),{})}function Gn(e,t,n,r){if(!t.includes(n))return null;let i=Wn(Ln(n),r),a=e[n];return En(e,a,i)}function Kn(e,t){let n=Hn(e.theme);return Object.keys(e).map(r=>Gn(e,t,r,n)).reduce(Sn,{})}function qn(e){return Kn(e,Rn)}qn.propTypes={},qn.filterProps=Rn;function Jn(e){return Kn(e,zn)}Jn.propTypes={},Jn.filterProps=zn;function Yn(e){return Kn(e,Bn)}Yn.propTypes={},Yn.filterProps=Bn;function Xn(e=8,t=Hn({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function Zn(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Sn(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Qn(e){return typeof e==`number`?`${e}px solid`:e}function $n(e,t){return Mn({prop:e,themeKey:`borders`,transform:t})}var er=$n(`border`,Qn),tr=$n(`borderTop`,Qn),nr=$n(`borderRight`,Qn),rr=$n(`borderBottom`,Qn),ir=$n(`borderLeft`,Qn),ar=$n(`borderColor`),or=$n(`borderTopColor`),sr=$n(`borderRightColor`),cr=$n(`borderBottomColor`),lr=$n(`borderLeftColor`),ur=$n(`outline`,Qn),dr=$n(`outlineColor`),fr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=Vn(e.theme,`shape.borderRadius`,4,`borderRadius`);return En(e,e.borderRadius,e=>({borderRadius:Un(t,e)}))}return null};fr.propTypes={},fr.filterProps=[`borderRadius`],Zn(er,tr,nr,rr,ir,ar,or,sr,cr,lr,fr,ur,dr);var pr=e=>{if(e.gap!==void 0&&e.gap!==null){let t=Vn(e.theme,`spacing`,8,`gap`);return En(e,e.gap,e=>({gap:Un(t,e)}))}return null};pr.propTypes={},pr.filterProps=[`gap`];var mr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=Vn(e.theme,`spacing`,8,`columnGap`);return En(e,e.columnGap,e=>({columnGap:Un(t,e)}))}return null};mr.propTypes={},mr.filterProps=[`columnGap`];var hr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=Vn(e.theme,`spacing`,8,`rowGap`);return En(e,e.rowGap,e=>({rowGap:Un(t,e)}))}return null};hr.propTypes={},hr.filterProps=[`rowGap`],Zn(pr,mr,hr,Mn({prop:`gridColumn`}),Mn({prop:`gridRow`}),Mn({prop:`gridAutoFlow`}),Mn({prop:`gridAutoColumns`}),Mn({prop:`gridAutoRows`}),Mn({prop:`gridTemplateColumns`}),Mn({prop:`gridTemplateRows`}),Mn({prop:`gridTemplateAreas`}),Mn({prop:`gridArea`}));function gr(e,t){return t===`grey`?t:e}Zn(Mn({prop:`color`,themeKey:`palette`,transform:gr}),Mn({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:gr}),Mn({prop:`backgroundColor`,themeKey:`palette`,transform:gr}));function _r(e){return e<=1&&e!==0?`${e*100}%`:e}var vr=Mn({prop:`width`,transform:_r}),yr=e=>e.maxWidth!==void 0&&e.maxWidth!==null?En(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Cn[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:_r(t)}}):null;yr.filterProps=[`maxWidth`];var br=Mn({prop:`minWidth`,transform:_r}),xr=Mn({prop:`height`,transform:_r}),Sr=Mn({prop:`maxHeight`,transform:_r}),Cr=Mn({prop:`minHeight`,transform:_r});Mn({prop:`size`,cssProperty:`width`,transform:_r}),Mn({prop:`size`,cssProperty:`height`,transform:_r}),Zn(vr,yr,br,xr,Sr,Cr,Mn({prop:`boxSizing`}));var wr={border:{themeKey:`borders`,transform:Qn},borderTop:{themeKey:`borders`,transform:Qn},borderRight:{themeKey:`borders`,transform:Qn},borderBottom:{themeKey:`borders`,transform:Qn},borderLeft:{themeKey:`borders`,transform:Qn},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:Qn},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:fr},color:{themeKey:`palette`,transform:gr},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:gr},backgroundColor:{themeKey:`palette`,transform:gr},p:{style:Jn},pt:{style:Jn},pr:{style:Jn},pb:{style:Jn},pl:{style:Jn},px:{style:Jn},py:{style:Jn},padding:{style:Jn},paddingTop:{style:Jn},paddingRight:{style:Jn},paddingBottom:{style:Jn},paddingLeft:{style:Jn},paddingX:{style:Jn},paddingY:{style:Jn},paddingInline:{style:Jn},paddingInlineStart:{style:Jn},paddingInlineEnd:{style:Jn},paddingBlock:{style:Jn},paddingBlockStart:{style:Jn},paddingBlockEnd:{style:Jn},m:{style:qn},mt:{style:qn},mr:{style:qn},mb:{style:qn},ml:{style:qn},mx:{style:qn},my:{style:qn},margin:{style:qn},marginTop:{style:qn},marginRight:{style:qn},marginBottom:{style:qn},marginLeft:{style:qn},marginX:{style:qn},marginY:{style:qn},marginInline:{style:qn},marginInlineStart:{style:qn},marginInlineEnd:{style:qn},marginBlock:{style:qn},marginBlockStart:{style:qn},marginBlockEnd:{style:qn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:pr},rowGap:{style:hr},columnGap:{style:mr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:_r},maxWidth:{style:yr},minWidth:{transform:_r},height:{transform:_r},maxHeight:{transform:_r},minHeight:{transform:_r},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}};function Tr(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function Er(e,t){return typeof e==`function`?e(t):e}function Dr(){function e(e,t,n,r){let i={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};let{cssProperty:o=e,themeKey:s,transform:c,style:l}=a;if(t==null)return null;if(s===`typography`&&t===`inherit`)return{[e]:t};let u=An(n,s)||{};return l?l(i):En(i,t,t=>{let n=jn(u,c,t);return t===n&&typeof t==`string`&&(n=jn(u,c,`${e}${t==="default"?``:kn(t)}`,t)),o===!1?n:{[o]:n}})}function t(n){let{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;let o=i.unstable_sxConfig??wr;function s(n){let r=n;if(typeof n==`function`)r=n(i);else if(typeof n!=`object`)return n;if(!r)return null;let s=Dn(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=Er(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=Sn(l,e(n,a,i,o));else{let e=En({theme:i},a,e=>({[n]:e}));Tr(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=Sn(l,e)}else l=Sn(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":_n(i,On(c,l))}:_n(i,On(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var Or=Dr();Or.filterProps=[`sx`];function kr(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Ar(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=gn(n),c=Xn(i),l=mn({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...xn,...a}},o);return l=bn(l),l.applyStyles=kr,l=t.reduce((e,t)=>mn(e,t),l),l.unstable_sxConfig={...wr,...o?.unstable_sxConfig},l.unstable_sx=function(e){return Or({sx:e,theme:this})},l}function jr(e){return Object.keys(e).length===0}function Mr(e=null){let t=L.useContext(Dt);return!t||jr(t)?e:t}var Nr=Ar();function Pr(e=Nr){return Mr(e)}function Fr(e){let t=ln(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ir({styles:e,themeId:t,defaultTheme:n={}}){let r=Pr(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>Fr(typeof e==`function`?e(i):e)):Fr(a)),(0,z.jsx)(an,{styles:a})}var Lr=e=>e,Rr=(()=>{let e=Lr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Lr}}})();function zr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=zr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Br(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=zr(e))&&(r&&(r+=` `),r+=t);return r}var Vr={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function Hr(e,t,n=`Mui`){let r=Vr[t];return r?`${n}-${r}`:`${Rr.generate(e)}-${t}`}function Ur(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=Hr(e,t,n)}),r}function Wr(e){let{variants:t,...n}=e,r={variants:t,style:ln(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=ln(e.style))}),r}var Gr=Ar();function Kr(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function qr(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Jr(e){return e?(t,n)=>n[e]:null}function Yr(e,t,n){e.theme=$r(e.theme)?n:e.theme[t]||e.theme}function Xr(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Xr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?qr(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?qr(ln(i),n):i}return Zr(e,r.variants,[t],n)}return r?.isProcessed?n?qr(ln(r.style),n):r.style:n?qr(ln(r),n):r}function Zr(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?qr(ln(o.style(i)),r):o.style(i))):n.push(r?qr(ln(o.style),r):o.style)}return n}function Qr(e={}){let{themeId:t,defaultTheme:n=Gr,rootShouldForwardProp:r=Kr,slotShouldForwardProp:i=Kr}=e;function a(e){Yr(e,t,n)}return(e,t={})=>{sn(e,e=>e.filter(e=>e!==Or));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=Jr(ti(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=Kr;o===`Root`||o===`root`?m=r:o?m=i:ei(e)&&(m=void 0);let h=on(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Xr(t,e,t.theme.modularCssLayers?d:void 0)};if(fn(e)){let t=Wr(e);return function(e){return t.variants?Xr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?qr(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Xr(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Zr(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(Or),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=h(...r,...i,...o);return e.muiName&&(s.muiName=e.muiName),s};return h.withConfig&&(_.withConfig=h.withConfig),_}}function $r(e){for(let t in e)return!1;return!0}function ei(e){return typeof e==`string`&&e.charCodeAt(0)>96}function ti(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ni(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=ni(i[t],o[t],n)}}}else a===`className`&&n&&t.className?r.className=Br(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}var ri=typeof window<`u`?L.useLayoutEffect:L.useEffect;function ii(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function ai(e,t=0,n=1){return ii(e,t,n)}function oi(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function si(e){if(e.type)return e;if(e.charAt(0)===`#`)return si(oi(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(_(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(_(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var ci=e=>{let t=si(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},li=(e,t)=>{try{return ci(e)}catch{return e}};function ui(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function di(e){e=si(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),ui({type:s,values:c})}function fi(e){e=si(e);let t=e.type===`hsl`||e.type===`hsla`?si(di(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pi(e,t){let n=fi(e),r=fi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function mi(e,t){return e=si(e),t=ai(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,ui(e)}function hi(e,t,n){try{return mi(e,t)}catch{return e}}function gi(e,t){if(e=si(e),t=ai(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ui(e)}function _i(e,t,n){try{return gi(e,t)}catch{return e}}function vi(e,t){if(e=si(e),t=ai(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ui(e)}function yi(e,t,n){try{return vi(e,t)}catch{return e}}function bi(e,t=.15){return fi(e)>.5?gi(e,t):vi(e,t)}function xi(e,t,n){try{return bi(e,t)}catch{return e}}var Si=L.createContext(null);function Ci(){return L.useContext(Si)}var wi=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function Ti(e,t){return typeof t==`function`?t(e):{...e,...t}}function Ei(e){let{children:t,theme:n}=e,r=Ci(),i=L.useMemo(()=>{let e=r===null?{...n}:Ti(r,n);return e!=null&&(e[wi]=r!==null),e},[n,r]);return(0,z.jsx)(Si.Provider,{value:i,children:t})}var Di=L.createContext();function Oi({value:e,...t}){return(0,z.jsx)(Di.Provider,{value:e??!0,...t})}var ki=()=>L.useContext(Di)??!1,Ai=L.createContext(void 0);function ji({value:e,children:t}){return(0,z.jsx)(Ai.Provider,{value:e,children:t})}function Mi(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?ni(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?ni(i,r,t.components.mergeClassNameAndStyle):r}function Ni({props:e,name:t}){return Mi({props:e,name:t,theme:{components:L.useContext(Ai)}})}var Pi=0;function Fi(e){let[t,n]=L.useState(e),r=e||t;return L.useEffect(()=>{t??(Pi+=1,n(`mui-${Pi}`))},[t]),r}var Ii={...L}.useId;function Li(e){if(Ii!==void 0){let t=Ii();return e??t}return Fi(e)}function Ri(e){let t=Mr(),n=Li()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,ri(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,z.jsx)(Ir,{styles:i}):null}var zi={};function Bi(e,t,n,r=!1){return L.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Vi(e){let{children:t,theme:n,themeId:r}=e,i=Mr(zi),a=Ci()||zi,o=Bi(r,i,n),s=Bi(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=Ri(o);return(0,z.jsx)(Ei,{theme:s,children:(0,z.jsx)(Dt.Provider,{value:o,children:(0,z.jsx)(Oi,{value:c,children:(0,z.jsxs)(ji,{value:r?o[r].components:o.components,children:[l,t]})})})})}var Hi={theme:void 0};function Ui(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Hi.theme=r.theme,i=Wr(e(Hi)),t=i,n=r.theme),i}}var Wi=`mode`,Gi=`color-scheme`,Ki=`data-color-scheme`;function qi(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=Wi,colorSchemeStorageKey:a=Gi,attribute:o=Ki,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
2
+ ${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
3
+ ${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
4
+ ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,z.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
5
+ try {
6
+ let colorScheme = '';
7
+ const mode = localStorage.getItem('${i}') || '${t}';
8
+ const dark = localStorage.getItem('${a}-dark') || '${r}';
9
+ const light = localStorage.getItem('${a}-light') || '${n}';
10
+ if (mode === 'system') {
11
+ // handle system mode
12
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
13
+ if (mql.matches) {
14
+ colorScheme = dark
15
+ } else {
16
+ colorScheme = light
17
+ }
18
+ }
19
+ if (mode === 'light') {
20
+ colorScheme = light;
21
+ }
22
+ if (mode === 'dark') {
23
+ colorScheme = dark;
24
+ }
25
+ if (colorScheme) {
26
+ ${l}
27
+ }
28
+ } catch(e){}})();`}},`mui-color-scheme-init`)}function Ji(){}var Yi=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Ji;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function Xi(){}function Zi(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Qi(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function $i(e){return Qi(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function ea(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Wi,colorSchemeStorageKey:o=Gi,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=Yi,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=L.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=L.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=L.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=L.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Zi(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=L.useState(l||!d);L.useEffect(()=>{v(!0)},[]);let y=$i(h),b=L.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Zi(r)}})},[f,t]),x=L.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Qi(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=L.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=L.useRef(S);return C.current=S,L.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),L.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||Xi,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||Xi,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||Xi;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var ta=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function na(e){let{themeId:t,theme:n={},modeStorageKey:r=Wi,colorSchemeStorageKey:i=Gi,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=L.createContext(void 0),u=()=>L.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=L.useRef(!1),E=Ci(),D=L.useContext(l),O=!!D&&!b,k=L.useMemo(()=>u||(typeof n==`function`?n():n),[u]),A=k[t],j=A||k,{colorSchemes:M=d,components:N=f,cssVarPrefix:P}=j,ee=Object.keys(M).filter(e=>!!M[e]).join(`,`),te=L.useMemo(()=>ee.split(`,`),[ee]),F=typeof o==`string`?o:o.light,ne=typeof o==`string`?o:o.dark,{mode:I,setMode:re,systemMode:ie,lightColorScheme:ae,darkColorScheme:oe,colorScheme:se,setColorScheme:ce}=ea({supportedColorSchemes:te,defaultLightColorScheme:F,defaultDarkColorScheme:ne,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:M[F]&&M[ne]?S:M[j.defaultColorScheme]?.palette?.mode||j.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),le=I,ue=se;O&&(le=D.mode,ue=D.colorScheme);let de=ue||j.defaultColorScheme;j.vars&&!C&&(de=j.defaultColorScheme);let fe=L.useMemo(()=>{let e=j.generateThemeVars?.()||j.vars,t={...j,components:N,colorSchemes:M,cssVarPrefix:P,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),de){let e=M[de];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[j,de,N,M,P]),pe=j.colorSchemeSelector;ri(()=>{if(ue&&y&&pe&&pe!==`media`){let e=pe,t=pe;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...te.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,ue));else{let e=t.replace(`%s`,ue).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||te.forEach(e=>{y.removeAttribute(t.replace(ue,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,ue)}}},[ue,pe,y,te]),L.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(ta)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[ue,h,v]),L.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let me=L.useMemo(()=>({allColorSchemes:te,colorScheme:ue,darkColorScheme:oe,lightColorScheme:ae,mode:le,setColorScheme:ce,setMode:re,systemMode:ie}),[te,ue,oe,ae,le,ce,re,ie,fe.colorSchemeSelector]),he=!0;(x||j.cssVariables===!1||O&&E?.cssVarPrefix===P)&&(he=!1);let ge=(0,z.jsxs)(L.Fragment,{children:[(0,z.jsx)(Vi,{themeId:A?t:void 0,theme:fe,children:c}),he&&(0,z.jsx)(an,{styles:fe.generateStyleSheets?.()||[]})]});return O?ge:(0,z.jsx)(l.Provider,{value:me,children:ge})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>qi({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function ra(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var ia=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},aa=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},oa=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function sa(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return aa(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=oa(e,t);Object.assign(i,{[r]:c}),ia(a,e,`var(${r})`,s),ia(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function ca(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=sa(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=sa(n,t);p=mn(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=sa(h,t);p=mn(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=mn(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function la(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function ua(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function da(e,t){return L.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var fa={black:`#000`,white:`#fff`},pa={50:`#fafafa`,100:`#f5f5f5`,200:`#eeeeee`,300:`#e0e0e0`,400:`#bdbdbd`,500:`#9e9e9e`,600:`#757575`,700:`#616161`,800:`#424242`,900:`#212121`,A100:`#f5f5f5`,A200:`#eeeeee`,A400:`#bdbdbd`,A700:`#616161`},ma={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},ha={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},ga={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},_a={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},va={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},ya={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function ba(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:fa.white,default:fa.white},action:{active:`rgba(0, 0, 0, 0.54)`,hover:`rgba(0, 0, 0, 0.04)`,hoverOpacity:.04,selected:`rgba(0, 0, 0, 0.08)`,selectedOpacity:.08,disabled:`rgba(0, 0, 0, 0.26)`,disabledBackground:`rgba(0, 0, 0, 0.12)`,disabledOpacity:.38,focus:`rgba(0, 0, 0, 0.12)`,focusOpacity:.12,activatedOpacity:.12}}}var xa=ba();function Sa(){return{text:{primary:fa.white,secondary:`rgba(255, 255, 255, 0.7)`,disabled:`rgba(255, 255, 255, 0.5)`,icon:`rgba(255, 255, 255, 0.5)`},divider:`rgba(255, 255, 255, 0.12)`,background:{paper:`#121212`,default:`#121212`},action:{active:fa.white,hover:`rgba(255, 255, 255, 0.08)`,hoverOpacity:.08,selected:`rgba(255, 255, 255, 0.16)`,selectedOpacity:.16,disabled:`rgba(255, 255, 255, 0.3)`,disabledBackground:`rgba(255, 255, 255, 0.12)`,disabledOpacity:.38,focus:`rgba(255, 255, 255, 0.12)`,focusOpacity:.12,activatedOpacity:.24}}}var Ca=Sa();function wa(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=vi(e.main,i):t===`dark`&&(e.dark=gi(e.main,a)))}function Ta(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function Ea(e=`light`){return e===`dark`?{main:_a[200],light:_a[50],dark:_a[400]}:{main:_a[700],light:_a[400],dark:_a[800]}}function Da(e=`light`){return e===`dark`?{main:ma[200],light:ma[50],dark:ma[400]}:{main:ma[500],light:ma[300],dark:ma[700]}}function Oa(e=`light`){return e===`dark`?{main:ha[500],light:ha[300],dark:ha[700]}:{main:ha[700],light:ha[400],dark:ha[800]}}function ka(e=`light`){return e===`dark`?{main:va[400],light:va[300],dark:va[700]}:{main:va[700],light:va[500],dark:va[900]}}function Aa(e=`light`){return e===`dark`?{main:ya[400],light:ya[300],dark:ya[700]}:{main:ya[800],light:ya[500],dark:ya[900]}}function ja(e=`light`){return e===`dark`?{main:ga[400],light:ga[300],dark:ga[700]}:{main:`#ed6c02`,light:ga[500],dark:ga[900]}}function Ma(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Na(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Ea(t),s=e.secondary||Da(t),c=e.error||Oa(t),l=e.info||ka(t),u=e.success||Aa(t),d=e.warning||ja(t);function f(e){return i?Ma(e):pi(e,Ca.text.primary)>=n?Ca.text.primary:xa.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(_(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(_(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(Ta(i,e,`light`,a,r),Ta(i,e,`dark`,o,r)):(wa(e,`light`,a,r),wa(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=ba():t===`dark`&&(m=Sa()),mn({common:{...fa},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:pa,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function Pa(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function Fa(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function Ia(e){return Math.round(e*1e5)/1e5}var La={textTransform:`uppercase`},Ra=`"Roboto", "Helvetica", "Arial", sans-serif`;function za(e,t){let{fontFamily:n=Ra,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Ra?{letterSpacing:`${Ia(i/t)}em`}:{},...a,...l});return mn({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,La),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,La),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var Ba=.2,Va=.14,Ha=.12;function Ua(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ba})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Va})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ha})`].join(`,`)}var Wa=[`none`,Ua(0,2,1,-1,0,1,1,0,0,1,3,0),Ua(0,3,1,-2,0,2,2,0,0,1,5,0),Ua(0,3,3,-2,0,3,4,0,0,1,8,0),Ua(0,2,4,-1,0,4,5,0,0,1,10,0),Ua(0,3,5,-1,0,5,8,0,0,1,14,0),Ua(0,3,5,-1,0,6,10,0,0,1,18,0),Ua(0,4,5,-2,0,7,10,1,0,2,16,1),Ua(0,5,5,-3,0,8,10,1,0,3,14,2),Ua(0,5,6,-3,0,9,12,1,0,3,16,2),Ua(0,6,6,-3,0,10,14,1,0,4,18,3),Ua(0,6,7,-4,0,11,15,1,0,4,20,3),Ua(0,7,8,-4,0,12,17,2,0,5,22,4),Ua(0,7,8,-4,0,13,19,2,0,5,24,4),Ua(0,7,9,-4,0,14,21,2,0,5,26,4),Ua(0,8,9,-5,0,15,22,2,0,6,28,5),Ua(0,8,10,-5,0,16,24,2,0,6,30,5),Ua(0,8,11,-5,0,17,26,2,0,6,32,5),Ua(0,9,11,-5,0,18,28,2,0,7,34,6),Ua(0,9,12,-6,0,19,29,2,0,7,36,6),Ua(0,10,13,-6,0,20,31,3,0,8,38,7),Ua(0,10,13,-6,0,21,33,3,0,8,40,7),Ua(0,10,14,-6,0,22,35,3,0,8,42,7),Ua(0,11,14,-7,0,23,36,3,0,9,44,8),Ua(0,11,15,-7,0,24,38,3,0,9,46,8)],Ga={easeInOut:`cubic-bezier(0.4, 0, 0.2, 1)`,easeOut:`cubic-bezier(0.0, 0, 0.2, 1)`,easeIn:`cubic-bezier(0.4, 0, 1, 1)`,sharp:`cubic-bezier(0.4, 0, 0.6, 1)`},Ka={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qa(e){return`${Math.round(e)}ms`}function Ja(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ya(e){let t={...Ga,...e.easing},n={...Ka,...e.duration};return{getAutoHeightDuration:Ja,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:qa(i)} ${a} ${typeof o==`string`?o:qa(o)}`).join(`,`)},...e,easing:t,duration:n}}var Xa={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Za(e){return fn(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function Qa(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!Za(a)||i.startsWith(`unstable_`)?delete e[i]:fn(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
29
+
30
+ const theme = ${JSON.stringify(t,null,2)};
31
+
32
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
33
+ theme.transitions = createTransitions(theme.transitions || {});
34
+
35
+ export default theme;`}function $a(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var eo=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function to(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:mi(t,eo(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${$a(n)})`:vi(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${$a(n)})`:gi(t,n)}})}function no(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(_(20));let d=Na({...a,colorSpace:l}),f=Ar(e),p=mn(f,{mixins:Fa(f.breakpoints,r),palette:d,shadows:Wa.slice(),typography:za(d,s),transitions:Ya(o),zIndex:{...Xa}});return p=mn(p,u),p=t.reduce((e,t)=>mn(e,t),p),p.unstable_sxConfig={...wr,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Or({sx:e,theme:this})},p.toRuntimeSource=Qa,to(p),p}function ro(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var io=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=ro(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ao(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function oo(e){return e===`dark`?io:[]}function so(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Na({...t,colorSpace:i});return{palette:o,opacity:{...ao(o.mode),...n},overlays:r||oo(o.mode),...a}}function co(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var lo=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],uo=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return lo(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function fo(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function B(e,t,n){!e[t]&&n&&(e[t]=n)}function po(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:di(e)}function mo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=li(po(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
36
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function ho(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var go=e=>{try{return e()}catch{}},_o=(e=`mui`)=>ra(e);function vo(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=so({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=no({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...ao(a),...n?.opacity},overlays:n?.overlays||oo(a)},s}function yo(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=co,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=_o(a),{[f]:m,light:h,dark:g,...v}=n,y={...v},b=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(b=!0),!b)throw Error(_(21,f));let x;o&&(x=`oklch`);let S=vo(x,y,b,u,f);h&&!y.light&&vo(x,y,h,void 0,`light`),g&&!y.dark&&vo(x,y,g,void 0,`dark`);let C={defaultColorScheme:f,...S,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:y,font:{...Pa(S.typography),...S.font},spacing:ho(u.spacing)};Object.keys(C.colorSchemes).forEach(e=>{let t=C.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(B(t.common,`background`,`#fff`),B(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(B(t.common,`background`,`#000`),B(t.common,`onBackground`,`#fff`));function r(e,t,n){if(x){let r;return e===hi&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===_i&&(r=`#000 ${(n*100).toFixed(0)}%`),e===yi&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${x}, ${t}, ${r})`}return e(t,n)}if(fo(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){B(t.Alert,`errorColor`,r(_i,o?p(`palette-error-light`):t.error.light,.6)),B(t.Alert,`infoColor`,r(_i,o?p(`palette-info-light`):t.info.light,.6)),B(t.Alert,`successColor`,r(_i,o?p(`palette-success-light`):t.success.light,.6)),B(t.Alert,`warningColor`,r(_i,o?p(`palette-warning-light`):t.warning.light,.6)),B(t.Alert,`errorFilledBg`,n(`palette-error-main`)),B(t.Alert,`infoFilledBg`,n(`palette-info-main`)),B(t.Alert,`successFilledBg`,n(`palette-success-main`)),B(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),B(t.Alert,`errorFilledColor`,go(()=>t.getContrastText(t.error.main))),B(t.Alert,`infoFilledColor`,go(()=>t.getContrastText(t.info.main))),B(t.Alert,`successFilledColor`,go(()=>t.getContrastText(t.success.main))),B(t.Alert,`warningFilledColor`,go(()=>t.getContrastText(t.warning.main))),B(t.Alert,`errorStandardBg`,r(yi,o?p(`palette-error-light`):t.error.light,.9)),B(t.Alert,`infoStandardBg`,r(yi,o?p(`palette-info-light`):t.info.light,.9)),B(t.Alert,`successStandardBg`,r(yi,o?p(`palette-success-light`):t.success.light,.9)),B(t.Alert,`warningStandardBg`,r(yi,o?p(`palette-warning-light`):t.warning.light,.9)),B(t.Alert,`errorIconColor`,n(`palette-error-main`)),B(t.Alert,`infoIconColor`,n(`palette-info-main`)),B(t.Alert,`successIconColor`,n(`palette-success-main`)),B(t.Alert,`warningIconColor`,n(`palette-warning-main`)),B(t.AppBar,`defaultBg`,n(`palette-grey-100`)),B(t.Avatar,`defaultBg`,n(`palette-grey-400`)),B(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),B(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),B(t.Chip,`defaultBorder`,n(`palette-grey-400`)),B(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),B(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),B(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),B(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),B(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),B(t.LinearProgress,`primaryBg`,r(yi,o?p(`palette-primary-main`):t.primary.main,.62)),B(t.LinearProgress,`secondaryBg`,r(yi,o?p(`palette-secondary-main`):t.secondary.main,.62)),B(t.LinearProgress,`errorBg`,r(yi,o?p(`palette-error-main`):t.error.main,.62)),B(t.LinearProgress,`infoBg`,r(yi,o?p(`palette-info-main`):t.info.main,.62)),B(t.LinearProgress,`successBg`,r(yi,o?p(`palette-success-main`):t.success.main,.62)),B(t.LinearProgress,`warningBg`,r(yi,o?p(`palette-warning-light`):t.warning.main,.62)),B(t.Skeleton,`bg`,x?r(hi,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),B(t.Slider,`primaryTrack`,r(yi,o?p(`palette-primary-main`):t.primary.main,.62)),B(t.Slider,`secondaryTrack`,r(yi,o?p(`palette-secondary-main`):t.secondary.main,.62)),B(t.Slider,`errorTrack`,r(yi,o?p(`palette-error-main`):t.error.main,.62)),B(t.Slider,`infoTrack`,r(yi,o?p(`palette-info-main`):t.info.main,.62)),B(t.Slider,`successTrack`,r(yi,o?p(`palette-success-main`):t.success.main,.62)),B(t.Slider,`warningTrack`,r(yi,o?p(`palette-warning-main`):t.warning.main,.62));let e=x?r(_i,o?p(`palette-background-default`):t.background.default,.6825):xi(t.background.default,.8);B(t.SnackbarContent,`bg`,e),B(t.SnackbarContent,`color`,go(()=>x?Ca.text.primary:t.getContrastText(e))),B(t.SpeedDialAction,`fabHoverBg`,xi(t.background.paper,.15)),B(t.StepConnector,`border`,n(`palette-grey-400`)),B(t.StepContent,`border`,n(`palette-grey-400`)),B(t.Switch,`defaultColor`,n(`palette-common-white`)),B(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),B(t.Switch,`primaryDisabledColor`,r(yi,o?p(`palette-primary-main`):t.primary.main,.62)),B(t.Switch,`secondaryDisabledColor`,r(yi,o?p(`palette-secondary-main`):t.secondary.main,.62)),B(t.Switch,`errorDisabledColor`,r(yi,o?p(`palette-error-main`):t.error.main,.62)),B(t.Switch,`infoDisabledColor`,r(yi,o?p(`palette-info-main`):t.info.main,.62)),B(t.Switch,`successDisabledColor`,r(yi,o?p(`palette-success-main`):t.success.main,.62)),B(t.Switch,`warningDisabledColor`,r(yi,o?p(`palette-warning-main`):t.warning.main,.62)),B(t.TableCell,`border`,r(yi,hi(o?p(`palette-divider`):t.divider,1),.88)),B(t.Tooltip,`bg`,r(hi,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){B(t.Alert,`errorColor`,r(yi,o?p(`palette-error-light`):t.error.light,.6)),B(t.Alert,`infoColor`,r(yi,o?p(`palette-info-light`):t.info.light,.6)),B(t.Alert,`successColor`,r(yi,o?p(`palette-success-light`):t.success.light,.6)),B(t.Alert,`warningColor`,r(yi,o?p(`palette-warning-light`):t.warning.light,.6)),B(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),B(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),B(t.Alert,`successFilledBg`,n(`palette-success-dark`)),B(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),B(t.Alert,`errorFilledColor`,go(()=>t.getContrastText(t.error.dark))),B(t.Alert,`infoFilledColor`,go(()=>t.getContrastText(t.info.dark))),B(t.Alert,`successFilledColor`,go(()=>t.getContrastText(t.success.dark))),B(t.Alert,`warningFilledColor`,go(()=>t.getContrastText(t.warning.dark))),B(t.Alert,`errorStandardBg`,r(_i,o?p(`palette-error-light`):t.error.light,.9)),B(t.Alert,`infoStandardBg`,r(_i,o?p(`palette-info-light`):t.info.light,.9)),B(t.Alert,`successStandardBg`,r(_i,o?p(`palette-success-light`):t.success.light,.9)),B(t.Alert,`warningStandardBg`,r(_i,o?p(`palette-warning-light`):t.warning.light,.9)),B(t.Alert,`errorIconColor`,n(`palette-error-main`)),B(t.Alert,`infoIconColor`,n(`palette-info-main`)),B(t.Alert,`successIconColor`,n(`palette-success-main`)),B(t.Alert,`warningIconColor`,n(`palette-warning-main`)),B(t.AppBar,`defaultBg`,n(`palette-grey-900`)),B(t.AppBar,`darkBg`,n(`palette-background-paper`)),B(t.AppBar,`darkColor`,n(`palette-text-primary`)),B(t.Avatar,`defaultBg`,n(`palette-grey-600`)),B(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),B(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),B(t.Chip,`defaultBorder`,n(`palette-grey-700`)),B(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),B(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),B(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),B(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),B(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),B(t.LinearProgress,`primaryBg`,r(_i,o?p(`palette-primary-main`):t.primary.main,.5)),B(t.LinearProgress,`secondaryBg`,r(_i,o?p(`palette-secondary-main`):t.secondary.main,.5)),B(t.LinearProgress,`errorBg`,r(_i,o?p(`palette-error-main`):t.error.main,.5)),B(t.LinearProgress,`infoBg`,r(_i,o?p(`palette-info-main`):t.info.main,.5)),B(t.LinearProgress,`successBg`,r(_i,o?p(`palette-success-main`):t.success.main,.5)),B(t.LinearProgress,`warningBg`,r(_i,o?p(`palette-warning-main`):t.warning.main,.5)),B(t.Skeleton,`bg`,x?r(hi,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),B(t.Slider,`primaryTrack`,r(_i,o?p(`palette-primary-main`):t.primary.main,.5)),B(t.Slider,`secondaryTrack`,r(_i,o?p(`palette-secondary-main`):t.secondary.main,.5)),B(t.Slider,`errorTrack`,r(_i,o?p(`palette-error-main`):t.error.main,.5)),B(t.Slider,`infoTrack`,r(_i,o?p(`palette-info-main`):t.info.main,.5)),B(t.Slider,`successTrack`,r(_i,o?p(`palette-success-main`):t.success.main,.5)),B(t.Slider,`warningTrack`,r(_i,o?p(`palette-warning-light`):t.warning.main,.5));let e=x?r(yi,o?p(`palette-background-default`):t.background.default,.985):xi(t.background.default,.98);B(t.SnackbarContent,`bg`,e),B(t.SnackbarContent,`color`,go(()=>x?xa.text.primary:t.getContrastText(e))),B(t.SpeedDialAction,`fabHoverBg`,xi(t.background.paper,.15)),B(t.StepConnector,`border`,n(`palette-grey-600`)),B(t.StepContent,`border`,n(`palette-grey-600`)),B(t.Switch,`defaultColor`,n(`palette-grey-300`)),B(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),B(t.Switch,`primaryDisabledColor`,r(_i,o?p(`palette-primary-main`):t.primary.main,.55)),B(t.Switch,`secondaryDisabledColor`,r(_i,o?p(`palette-secondary-main`):t.secondary.main,.55)),B(t.Switch,`errorDisabledColor`,r(_i,o?p(`palette-error-main`):t.error.main,.55)),B(t.Switch,`infoDisabledColor`,r(_i,o?p(`palette-info-main`):t.info.main,.55)),B(t.Switch,`successDisabledColor`,r(_i,o?p(`palette-success-main`):t.success.main,.55)),B(t.Switch,`warningDisabledColor`,r(_i,o?p(`palette-warning-light`):t.warning.main,.55)),B(t.TableCell,`border`,r(_i,hi(o?p(`palette-divider`):t.divider,1),.68)),B(t.Tooltip,`bg`,r(hi,o?p(`palette-grey-700`):t.grey[700],.92))}o||(mo(t.background,`default`),mo(t.background,`paper`),mo(t.common,`background`),mo(t.common,`onBackground`),mo(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&B(t[e],`mainChannel`,li(po(n.main))),n.light&&B(t[e],`lightChannel`,li(po(n.light))),n.dark&&B(t[e],`darkChannel`,li(po(n.dark))),n.contrastText&&B(t[e],`contrastTextChannel`,li(po(n.contrastText))),e===`text`&&(mo(t[e],`primary`),mo(t[e],`secondary`)),e===`action`&&(n.active&&mo(t[e],`active`),n.selected&&mo(t[e],`selected`)))})}),C=t.reduce((e,t)=>mn(e,t),C);let w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:uo(C),enableContrastVars:o},{vars:T,generateThemeVars:E,generateStyleSheets:D}=ca(C,w);return C.vars=T,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=E,C.generateStyleSheets=D,C.generateSpacing=function(){return Xn(u.spacing,Hn(this))},C.getColorSchemeSelector=la(c),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...wr,...u?.unstable_sxConfig},C.unstable_sx=function(e){return Or({sx:e,theme:this})},C.toRuntimeSource=Qa,C}function bo(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Na({...n===!0?{}:n.palette,mode:t})})}function xo(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return no(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=no({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},bo(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},bo(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),yo({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var So=xo();function Co(){let e=Pr(So);return e.$$material||e}function wo(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var To=e=>wo(e)&&e!==`classes`,V=Qr({themeId:v,defaultTheme:So,rootShouldForwardProp:To});function Eo({theme:e,...t}){let n=`$$material`in e?e[v]:void 0;return(0,z.jsx)(Vi,{...t,themeId:n?v:void 0,theme:n||e})}var Do={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Oo,useColorScheme:ko,getInitColorSchemeScript:Ao}=na({themeId:v,theme:()=>xo({cssVariables:!0}),colorSchemeStorageKey:Do.colorSchemeStorageKey,modeStorageKey:Do.modeStorageKey,defaultColorScheme:{light:Do.defaultLightColorScheme,dark:Do.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:za(e.palette,e.typography)};return t.unstable_sx=function(e){return Or({sx:e,theme:this})},t}}),jo=Oo;function Mo({theme:e,...t}){let n=L.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[v]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,z.jsx)(Eo,{theme:n,...t}):(0,z.jsx)(jo,{theme:e,...t})}var No=kn;function Po(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}var Fo=Ui;function Io(e){return Ni(e)}function Lo(e){return Hr(`MuiSvgIcon`,e)}Ur(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Ro=e=>{let{color:t,fontSize:n,classes:r}=e;return ua({root:[`root`,t!==`inherit`&&`color${No(t)}`,`fontSize${No(n)}`]},Lo,r)},zo=V(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${No(n.color)}`],t[`fontSize${No(n.fontSize)}`]]}})(Fo(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Bo=L.forwardRef(function(e,t){let n=Io({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=L.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};return l||(h.viewBox=d),(0,z.jsxs)(zo,{as:o,className:Br(Ro(m).root,i),focusable:`false`,color:c,"aria-hidden":u?void 0:!0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,z.jsx)(`title`,{children:u}):null]})});Bo.muiName=`SvgIcon`;function Vo(e,t){function n(t,n){return(0,z.jsx)(Bo,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Bo.muiName,L.memo(L.forwardRef(n))}function Ho(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Uo=Ho,Wo=da;function Go(e){return e&&e.ownerDocument||document}var Ko=Go;function qo(e){return Go(e).defaultView||window}var Jo=qo;function Yo(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var Xo=ri,Zo=Li;function Qo(e){let t=L.useRef(e);return ri(()=>{t.current=e}),L.useRef((...e)=>(0,t.current)(...e)).current}var $o=Qo;function es(...e){let t=L.useRef(void 0),n=L.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return L.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var ts=es;function ns(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function rs(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{ns(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=Br(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=Br(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function is(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var as={};function os(e,t){let n=L.useRef(as);return n.current===as&&(n.current=e(t)),n}var ss=class e{static create(){return new e}static use(){let t=os(e.create).current,[n,r]=L.useState(!1);return t.shouldMount=n,t.setShouldMount=r,L.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=ls(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function cs(){return ss.use()}function ls(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function us(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ds(e,t){return ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ds(e,t)}function fs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ds(e,t)}function ps(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function ms(e,t){e.classList?e.classList.add(t):ps(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function hs(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function gs(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=hs(e.className,t):e.setAttribute(`class`,hs(e.className&&e.className.baseVal||``,t))}var _s=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,M(x);else{var t=n(l);t!==null&&N(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&N(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}var k;if(typeof v==`function`)k=function(){v(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=O,k=function(){j.postMessage(null)}}else k=function(){g(O,0)};function M(e){C=e,S||(S=!0,k())}function N(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,M(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,N(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,M(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),vs=o(((e,t)=>{t.exports=_s()})),ys=o((e=>{var t=g(),n=vs();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function p(e){return l.call(f,e)?!0:l.call(d,e)?!1:u.test(e)?f[e]=!0:(d[e]=!0,!1)}function m(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function h(e,t,n,r){if(t==null||m(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){v[e]=new _(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];v[t]=new _(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){v[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){v[e]=new _(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){v[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){v[e]=new _(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){v[e]=new _(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){v[e]=new _(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){v[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){v[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new _(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){v[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function x(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(h(t,n,i,r)&&(n=null),r||i===null?p(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var S=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for(`react.element`),w=Symbol.for(`react.portal`),T=Symbol.for(`react.fragment`),E=Symbol.for(`react.strict_mode`),D=Symbol.for(`react.profiler`),O=Symbol.for(`react.provider`),k=Symbol.for(`react.context`),A=Symbol.for(`react.forward_ref`),j=Symbol.for(`react.suspense`),M=Symbol.for(`react.suspense_list`),N=Symbol.for(`react.memo`),P=Symbol.for(`react.lazy`),ee=Symbol.for(`react.offscreen`),te=Symbol.iterator;function F(e){return typeof e!=`object`||!e?null:(e=te&&e[te]||e[`@@iterator`],typeof e==`function`?e:null)}var ne=Object.assign,I;function re(e){if(I===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||``}return`
37
+ `+I+e}var ie=!1;function ae(e,t){if(!e||ie)return``;ie=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
38
+ `),a=r.stack.split(`
39
+ `),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
40
+ `+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{ie=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?re(e):``}function oe(e){switch(e.tag){case 5:return re(e.type);case 16:return re(`Lazy`);case 13:return re(`Suspense`);case 19:return re(`SuspenseList`);case 0:case 2:case 15:return e=ae(e.type,!1),e;case 11:return e=ae(e.type.render,!1),e;case 1:return e=ae(e.type,!0),e;default:return``}}function se(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case T:return`Fragment`;case w:return`Portal`;case D:return`Profiler`;case E:return`StrictMode`;case j:return`Suspense`;case M:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case k:return(e.displayName||`Context`)+`.Consumer`;case O:return(e._context.displayName||`Context`)+`.Provider`;case A:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case N:return t=e.displayName||null,t===null?se(e.type)||`Memo`:t;case P:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}function ce(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return se(t);case 8:return t===E?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function le(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function ue(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function de(e){var t=ue(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fe(e){e._valueTracker||=de(e)}function pe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ue(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function me(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function he(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ge(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=le(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function _e(e,t){t=t.checked,t!=null&&x(e,`checked`,t,!1)}function ve(e,t){_e(e,t);var n=le(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?be(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&be(e,t.type,le(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ye(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function be(e,t,n){(t!==`number`||me(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var xe=Array.isArray;function Se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+le(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ce(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return ne({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function we(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(xe(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:le(n)}}function Te(e,t){var n=le(t.value),r=le(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Ee(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function De(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Oe(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?De(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var ke,Ae=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(ke||=document.createElement(`div`),ke.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=ke.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function je(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Me={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ne=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Me).forEach(function(e){Ne.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Me[t]=Me[e]})});function Pe(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Me.hasOwnProperty(e)&&Me[e]?(``+t).trim():t+`px`}function Fe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Pe(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Ie=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Le(e,t){if(t){if(Ie[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Re(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var ze=null;function Be(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ve=null,He=null,Ue=null;function We(e){if(e=Hi(e)){if(typeof Ve!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Wi(t),Ve(e.stateNode,e.type,t))}}function Ge(e){He?Ue?Ue.push(e):Ue=[e]:He=e}function Ke(){if(He){var e=He,t=Ue;if(Ue=He=null,We(e),t)for(e=0;e<t.length;e++)We(t[e])}}function qe(e,t){return e(t)}function Je(){}var Ye=!1;function Xe(e,t,n){if(Ye)return e(t,n);Ye=!0;try{return qe(e,t,n)}finally{Ye=!1,(He!==null||Ue!==null)&&(Je(),Ke())}}function Ze(e,t){var n=e.stateNode;if(n===null)return null;var i=Wi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var Qe=!1;if(c)try{var $e={};Object.defineProperty($e,"passive",{get:function(){Qe=!0}}),window.addEventListener(`test`,$e,$e),window.removeEventListener(`test`,$e,$e)}catch{Qe=!1}function et(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var tt=!1,nt=null,rt=!1,it=null,at={onError:function(e){tt=!0,nt=e}};function ot(e,t,n,r,i,a,o,s,c){tt=!1,nt=null,et.apply(at,arguments)}function st(e,t,n,i,a,o,s,c,l){if(ot.apply(this,arguments),tt){if(tt){var u=nt;tt=!1,nt=null}else throw Error(r(198));rt||(rt=!0,it=u)}}function ct(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function lt(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ut(e){if(ct(e)!==e)throw Error(r(188))}function dt(e){var t=e.alternate;if(!t){if(t=ct(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return ut(a),e;if(o===i)return ut(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function ft(e){return e=dt(e),e===null?null:pt(e)}function pt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pt(e);if(t!==null)return t;e=e.sibling}return null}var mt=n.unstable_scheduleCallback,ht=n.unstable_cancelCallback,gt=n.unstable_shouldYield,_t=n.unstable_requestPaint,vt=n.unstable_now,yt=n.unstable_getCurrentPriorityLevel,L=n.unstable_ImmediatePriority,bt=n.unstable_UserBlockingPriority,xt=n.unstable_NormalPriority,St=n.unstable_LowPriority,Ct=n.unstable_IdlePriority,wt=null,Tt=null;function Et(e){if(Tt&&typeof Tt.onCommitFiberRoot==`function`)try{Tt.onCommitFiberRoot(wt,e,void 0,(e.current.flags&128)==128)}catch{}}var Dt=Math.clz32?Math.clz32:At,Ot=Math.log,kt=Math.LN2;function At(e){return e>>>=0,e===0?32:31-(Ot(e)/kt|0)|0}var jt=64,Mt=4194304;function Nt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Pt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Nt(a))):r=Nt(s)}else o=n&~i,o===0?a!==0&&(r=Nt(a)):r=Nt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Dt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function It(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Dt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ft(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Lt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Rt(){var e=jt;return jt<<=1,!(jt&4194240)&&(jt=64),e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=n}function Vt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Dt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Ht(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Dt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ut=0;function Wt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Gt,Kt,qt,Jt,Yt,R=!1,Xt=[],z=null,Zt=null,Qt=null,$t=new Map,en=new Map,tn=[],nn=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function rn(e,t){switch(e){case`focusin`:case`focusout`:z=null;break;case`dragenter`:case`dragleave`:Zt=null;break;case`mouseover`:case`mouseout`:Qt=null;break;case`pointerover`:case`pointerout`:$t.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:en.delete(t.pointerId)}}function an(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Hi(t),t!==null&&Kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function on(e,t,n,r,i){switch(t){case`focusin`:return z=an(z,e,t,n,r,i),!0;case`dragenter`:return Zt=an(Zt,e,t,n,r,i),!0;case`mouseover`:return Qt=an(Qt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return $t.set(a,an($t.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,en.set(a,an(en.get(a)||null,e,t,n,r,i)),!0}return!1}function sn(e){var t=Vi(e.target);if(t!==null){var n=ct(t);if(n!==null){if(t=n.tag,t===13){if(t=lt(n),t!==null){e.blockedOn=t,Yt(e.priority,function(){qt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ze=r,n.target.dispatchEvent(r),ze=null}else return t=Hi(n),t!==null&&Kt(t),e.blockedOn=n,!1;t.shift()}return!0}function ln(e,t,n){cn(e)&&n.delete(t)}function un(){R=!1,z!==null&&cn(z)&&(z=null),Zt!==null&&cn(Zt)&&(Zt=null),Qt!==null&&cn(Qt)&&(Qt=null),$t.forEach(ln),en.forEach(ln)}function dn(e,t){e.blockedOn===t&&(e.blockedOn=null,R||(R=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,un)))}function fn(e){function t(t){return dn(t,e)}if(0<Xt.length){dn(Xt[0],e);for(var n=1;n<Xt.length;n++){var r=Xt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(z!==null&&dn(z,e),Zt!==null&&dn(Zt,e),Qt!==null&&dn(Qt,e),$t.forEach(t),en.forEach(t),n=0;n<tn.length;n++)r=tn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tn.length&&(n=tn[0],n.blockedOn===null);)sn(n),n.blockedOn===null&&tn.shift()}var pn=S.ReactCurrentBatchConfig,mn=!0;function hn(e,t,n,r){var i=Ut,a=pn.transition;pn.transition=null;try{Ut=1,_n(e,t,n,r)}finally{Ut=i,pn.transition=a}}function gn(e,t,n,r){var i=Ut,a=pn.transition;pn.transition=null;try{Ut=4,_n(e,t,n,r)}finally{Ut=i,pn.transition=a}}function _n(e,t,n,r){if(mn){var i=yn(e,t,n,r);if(i===null)pi(e,t,r,vn,n),rn(e,r);else if(on(i,e,t,n,r))r.stopPropagation();else if(rn(e,r),t&4&&-1<nn.indexOf(e)){for(;i!==null;){var a=Hi(i);if(a!==null&&Gt(a),a=yn(e,t,n,r),a===null&&pi(e,t,r,vn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else pi(e,t,r,null,n)}}var vn=null;function yn(e,t,n,r){if(vn=null,e=Be(r),e=Vi(e),e!==null)if(t=ct(e),t===null)e=null;else if(n=t.tag,n===13){if(e=lt(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return vn=e,null}function bn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(yt()){case L:return 1;case bt:return 4;case xt:case St:return 16;case Ct:return 536870912;default:return 16}default:return 16}}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Cn=i.slice(e,1<r?1-r:void 0)}function Tn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function En(){return!0}function Dn(){return!1}function On(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?En:Dn,this.isPropagationStopped=Dn,this}return ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=En)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=En)},persist:function(){},isPersistent:En}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},An=On(kn),jn=ne({},kn,{view:0,detail:0}),Mn=On(jn),Nn,Pn,Fn,In=ne({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Fn&&(Fn&&e.type===`mousemove`?(Nn=e.screenX-Fn.screenX,Pn=e.screenY-Fn.screenY):Pn=Nn=0,Fn=e),Nn)},movementY:function(e){return`movementY`in e?e.movementY:Pn}}),Ln=On(In),Rn=On(ne({},In,{dataTransfer:0})),zn=On(ne({},jn,{relatedTarget:0})),Bn=On(ne({},kn,{animationName:0,elapsedTime:0,pseudoElement:0})),Vn=On(ne({},kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Hn=On(ne({},kn,{data:0})),Un={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Wn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Gn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gn[e])?!!t[e]:!1}function qn(){return Kn}var Jn=On(ne({},jn,{key:function(e){if(e.key){var t=Un[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Tn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Wn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qn,charCode:function(e){return e.type===`keypress`?Tn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Tn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Yn=On(ne({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Xn=On(ne({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qn})),Zn=On(ne({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Qn=On(ne({},In,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),$n=[9,13,27,32],er=c&&`CompositionEvent`in window,tr=null;c&&`documentMode`in document&&(tr=document.documentMode);var nr=c&&`TextEvent`in window&&!tr,rr=c&&(!er||tr&&8<tr&&11>=tr),ir=` `,ar=!1;function or(e,t){switch(e){case`keyup`:return $n.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function sr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var cr=!1;function lr(e,t){switch(e){case`compositionend`:return sr(t);case`keypress`:return t.which===32?(ar=!0,ir):null;case`textInput`:return e=t.data,e===ir&&ar?null:e;default:return null}}function ur(e,t){if(cr)return e===`compositionend`||!er&&or(e,t)?(e=wn(),Cn=Sn=xn=null,cr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return rr&&t.locale!==`ko`?null:t.data;default:return null}}var dr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!dr[e.type]:t===`textarea`}function pr(e,t,n,r){Ge(r),t=hi(t,`onChange`),0<t.length&&(n=new An(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var mr=null,hr=null;function gr(e){si(e,0)}function _r(e){if(pe(Ui(e)))return e}function vr(e,t){if(e===`change`)return t}var yr=!1;if(c){var br;if(c){var xr=`oninput`in document;if(!xr){var Sr=document.createElement(`div`);Sr.setAttribute(`oninput`,`return;`),xr=typeof Sr.oninput==`function`}br=xr}else br=!1;yr=br&&(!document.documentMode||9<document.documentMode)}function Cr(){mr&&(mr.detachEvent(`onpropertychange`,wr),hr=mr=null)}function wr(e){if(e.propertyName===`value`&&_r(hr)){var t=[];pr(t,hr,e,Be(e)),Xe(gr,t)}}function Tr(e,t,n){e===`focusin`?(Cr(),mr=t,hr=n,mr.attachEvent(`onpropertychange`,wr)):e===`focusout`&&Cr()}function Er(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return _r(hr)}function Dr(e,t){if(e===`click`)return _r(t)}function Or(e,t){if(e===`input`||e===`change`)return _r(t)}function kr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ar=typeof Object.is==`function`?Object.is:kr;function jr(e,t){if(Ar(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Ar(e[i],t[i]))return!1}return!0}function Mr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nr(e,t){var n=Mr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Mr(n)}}function Pr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fr(){for(var e=window,t=me();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=me(e.document)}return t}function Ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Lr(e){var t=Fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pr(n.ownerDocument.documentElement,n)){if(r!==null&&Ir(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Nr(n,a);var o=Nr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Rr=c&&`documentMode`in document&&11>=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==me(r)||(r=zr,`selectionStart`in r&&Ir(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&jr(Vr,r)||(Vr=r,r=hi(Br,`onSelect`),0<r.length&&(t=new An(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=zr)))}function Wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Gr={animationend:Wr(`Animation`,`AnimationEnd`),animationiteration:Wr(`Animation`,`AnimationIteration`),animationstart:Wr(`Animation`,`AnimationStart`),transitionend:Wr(`Transition`,`TransitionEnd`)},Kr={},qr={};c&&(qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),`TransitionEvent`in window||delete Gr.transitionend.transition);function Jr(e){if(Kr[e])return Kr[e];if(!Gr[e])return e;var t=Gr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qr)return Kr[e]=t[n];return e}var Yr=Jr(`animationend`),Xr=Jr(`animationiteration`),Zr=Jr(`animationstart`),Qr=Jr(`transitionend`),$r=new Map,ei=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function ti(e,t){$r.set(e,t),o(t,[e])}for(var ni=0;ni<ei.length;ni++){var ri=ei[ni];ti(ri.toLowerCase(),`on`+(ri[0].toUpperCase()+ri.slice(1)))}ti(Yr,`onAnimationEnd`),ti(Xr,`onAnimationIteration`),ti(Zr,`onAnimationStart`),ti(`dblclick`,`onDoubleClick`),ti(`focusin`,`onFocus`),ti(`focusout`,`onBlur`),ti(Qr,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ii=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),ai=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ii));function oi(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,st(r,t,void 0,e),e.currentTarget=null}function si(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;oi(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;oi(i,s,l),a=c}}}if(rt)throw e=it,rt=!1,it=null,e}function ci(e,t){var n=t[Ri];n===void 0&&(n=t[Ri]=new Set);var r=e+`__bubble`;n.has(r)||(fi(t,e,2,!1),n.add(r))}function li(e,t,n){var r=0;t&&(r|=4),fi(n,e,r,t)}var ui=`_reactListening`+Math.random().toString(36).slice(2);function di(e){if(!e[ui]){e[ui]=!0,i.forEach(function(t){t!==`selectionchange`&&(ai.has(t)||li(t,!1,e),li(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ui]||(t[ui]=!0,li(`selectionchange`,!1,t))}}function fi(e,t,n,r){switch(bn(t)){case 1:var i=hn;break;case 4:i=gn;break;default:i=_n}n=i.bind(null,t,n,e),i=void 0,!Qe||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function pi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Vi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}Xe(function(){var r=a,i=Be(n),o=[];a:{var s=$r.get(e);if(s!==void 0){var c=An,l=e;switch(e){case`keypress`:if(Tn(n)===0)break a;case`keydown`:case`keyup`:c=Jn;break;case`focusin`:l=`focus`,c=zn;break;case`focusout`:l=`blur`,c=zn;break;case`beforeblur`:case`afterblur`:c=zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Ln;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Rn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Xn;break;case Yr:case Xr:case Zr:c=Bn;break;case Qr:c=Zn;break;case`scroll`:c=Mn;break;case`wheel`:c=Qn;break;case`copy`:case`cut`:case`paste`:c=Vn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Yn}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=Ze(p,f),h!=null&&u.push(mi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==ze&&(l=n.relatedTarget||n.fromElement)&&(Vi(l)||l[Li]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Vi(l):null,l!==null&&(d=ct(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Ln,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Yn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ui(c),m=l==null?s:Ui(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Vi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=gi(m))p++;for(m=0,h=f;h;h=gi(h))m++;for(;0<p-m;)u=gi(u),p--;for(;0<m-p;)f=gi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=gi(u),f=gi(f)}u=null}else u=null;c!==null&&_i(o,s,c,u,!1),l!==null&&d!==null&&_i(o,d,l,u,!0)}}a:{if(s=r?Ui(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=vr;else if(fr(s))if(yr)g=Or;else{g=Er;var _=Tr}else (c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Dr);if(g&&=g(e,r)){pr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&be(s,`number`,s.value)}switch(_=r?Ui(r):window,e){case`focusin`:(fr(_)||_.contentEditable===`true`)&&(zr=_,Br=r,Vr=null);break;case`focusout`:Vr=Br=zr=null;break;case`mousedown`:Hr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Hr=!1,Ur(o,n,i);break;case`selectionchange`:if(Rr)break;case`keydown`:case`keyup`:Ur(o,n,i)}var v;if(er)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else cr?or(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(rr&&n.locale!==`ko`&&(cr||y!==`onCompositionStart`?y===`onCompositionEnd`&&cr&&(v=wn()):(xn=i,Sn=`value`in xn?xn.value:xn.textContent,cr=!0)),_=hi(r,y),0<_.length&&(y=new Hn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=sr(n),v!==null&&(y.data=v)))),(v=nr?lr(e,n):ur(e,n))&&(r=hi(r,`onBeforeInput`),0<r.length&&(i=new Hn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}si(o,t)})}function mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Ze(e,n),a!=null&&r.unshift(mi(e,a,i)),a=Ze(e,t),a!=null&&r.push(mi(e,a,i))),e=e.return}return r}function gi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _i(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=Ze(n,a),c!=null&&o.unshift(mi(n,c,s))):i||(c=Ze(n,a),c!=null&&o.push(mi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var vi=/\r\n?/g,yi=/\u0000|\uFFFD/g;function bi(e){return(typeof e==`string`?e:``+e).replace(vi,`
41
+ `).replace(yi,``)}function xi(e,t,n){if(t=bi(t),bi(e)!==t&&n)throw Error(r(425))}function Si(){}var Ci=null,wi=null;function Ti(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ei=typeof setTimeout==`function`?setTimeout:void 0,Di=typeof clearTimeout==`function`?clearTimeout:void 0,Oi=typeof Promise==`function`?Promise:void 0,ki=typeof queueMicrotask==`function`?queueMicrotask:Oi===void 0?Ei:function(e){return Oi.resolve(null).then(e).catch(Ai)};function Ai(e){setTimeout(function(){throw e})}function ji(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),fn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);fn(t)}function Mi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Ni(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Pi=Math.random().toString(36).slice(2),Fi=`__reactFiber$`+Pi,Ii=`__reactProps$`+Pi,Li=`__reactContainer$`+Pi,Ri=`__reactEvents$`+Pi,zi=`__reactListeners$`+Pi,Bi=`__reactHandles$`+Pi;function Vi(e){var t=e[Fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Li]||n[Fi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ni(e);e!==null;){if(n=e[Fi])return n;e=Ni(e)}return t}e=n,n=e.parentNode}return null}function Hi(e){return e=e[Fi]||e[Li],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ui(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Wi(e){return e[Ii]||null}var Gi=[],Ki=-1;function qi(e){return{current:e}}function Ji(e){0>Ki||(e.current=Gi[Ki],Gi[Ki]=null,Ki--)}function Yi(e,t){Ki++,Gi[Ki]=e.current,e.current=t}var Xi={},Zi=qi(Xi),Qi=qi(!1),$i=Xi;function ea(e,t){var n=e.type.contextTypes;if(!n)return Xi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ta(e){return e=e.childContextTypes,e!=null}function na(){Ji(Qi),Ji(Zi)}function ra(e,t,n){if(Zi.current!==Xi)throw Error(r(168));Yi(Zi,t),Yi(Qi,n)}function ia(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,ce(e)||`Unknown`,a));return ne({},n,i)}function aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xi,$i=Zi.current,Yi(Zi,e),Yi(Qi,Qi.current),!0}function oa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ia(e,t,$i),i.__reactInternalMemoizedMergedChildContext=e,Ji(Qi),Ji(Zi),Yi(Zi,e)):Ji(Qi),Yi(Qi,n)}var sa=null,ca=!1,la=!1;function ua(e){sa===null?sa=[e]:sa.push(e)}function da(e){ca=!0,ua(e)}function fa(){if(!la&&sa!==null){la=!0;var e=0,t=Ut;try{var n=sa;for(Ut=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sa=null,ca=!1}catch(t){throw sa!==null&&(sa=sa.slice(e+1)),mt(L,fa),t}finally{Ut=t,la=!1}}return null}var pa=[],ma=0,ha=null,ga=0,_a=[],va=0,ya=null,ba=1,xa=``;function Sa(e,t){pa[ma++]=ga,pa[ma++]=ha,ha=e,ga=t}function Ca(e,t,n){_a[va++]=ba,_a[va++]=xa,_a[va++]=ya,ya=e;var r=ba;e=xa;var i=32-Dt(r)-1;r&=~(1<<i),n+=1;var a=32-Dt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ba=1<<32-Dt(t)+i|n<<i|r,xa=a+e}else ba=1<<a|n<<i|r,xa=e}function wa(e){e.return!==null&&(Sa(e,1),Ca(e,1,0))}function Ta(e){for(;e===ha;)ha=pa[--ma],pa[ma]=null,ga=pa[--ma],pa[ma]=null;for(;e===ya;)ya=_a[--va],_a[va]=null,xa=_a[--va],_a[va]=null,ba=_a[--va],_a[va]=null}var Ea=null,Da=null,Oa=!1,ka=null;function Aa(e,t){var n=nu(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ja(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Ea=e,Da=Mi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Ea=e,Da=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=ya===null?null:{id:ba,overflow:xa},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=nu(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ea=e,Da=null,!0);default:return!1}}function Ma(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Na(e){if(Oa){var t=Da;if(t){var n=t;if(!ja(e,t)){if(Ma(e))throw Error(r(418));t=Mi(n.nextSibling);var i=Ea;t&&ja(e,t)?Aa(i,n):(e.flags=e.flags&-4097|2,Oa=!1,Ea=e)}}else{if(Ma(e))throw Error(r(418));e.flags=e.flags&-4097|2,Oa=!1,Ea=e}}}function Pa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ea=e}function Fa(e){if(e!==Ea)return!1;if(!Oa)return Pa(e),Oa=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Ti(e.type,e.memoizedProps)),t&&=Da){if(Ma(e))throw Ia(),Error(r(418));for(;t;)Aa(e,t),t=Mi(t.nextSibling)}if(Pa(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Da=Mi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Da=null}}else Da=Ea?Mi(e.stateNode.nextSibling):null;return!0}function Ia(){for(var e=Da;e;)e=Mi(e.nextSibling)}function La(){Da=Ea=null,Oa=!1}function Ra(e){ka===null?ka=[e]:ka.push(e)}var za=S.ReactCurrentBatchConfig;function Ba(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Va(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ha(e){var t=e._init;return t(e._payload)}function Ua(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=au(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=lu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===T?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===P&&Ha(i)===t.type)?(r=a(t,n.props),r.ref=Ba(e,t,n),r.return=e,r):(r=ou(n.type,n.key,n.props,null,e.mode,r),r.ref=Ba(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=uu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=su(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=lu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case C:return n=ou(t.type,t.key,t.props,null,e.mode,n),n.ref=Ba(e,null,t),n.return=e,n;case w:return t=uu(t,e.mode,n),t.return=e,t;case P:var r=t._init;return f(e,r(t._payload),n)}if(xe(t)||F(t))return t=su(t,e.mode,n,null),t.return=e,t;Va(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case C:return n.key===i?l(e,t,n,r):null;case w:return n.key===i?u(e,t,n,r):null;case P:return i=n._init,p(e,t,i(n._payload),r)}if(xe(n)||F(n))return i===null?d(e,t,n,r,null):null;Va(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case C:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case w:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case P:var a=r._init;return m(e,t,n,a(r._payload),i)}if(xe(r)||F(r))return e=e.get(n)||null,d(t,e,r,i,null);Va(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Oa&&Sa(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Oa&&Sa(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Oa&&Sa(r,h),l}function g(a,s,c,l){var u=F(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Oa&&Sa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Oa&&Sa(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Oa&&Sa(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===T&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case C:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===T){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===P&&Ha(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ba(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===T?(r=su(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=ou(i.type,i.key,i.props,null,e.mode,o),o.ref=Ba(e,r,i),o.return=e,e=o)}return s(e);case w:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=uu(i,e.mode,o),r.return=e,e=r}return s(e);case P:return l=i._init,_(e,r,l(i._payload),o)}if(xe(i))return h(e,r,i,o);if(F(i))return g(e,r,i,o);Va(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=lu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Wa=Ua(!0),Ga=Ua(!1),Ka=qi(null),qa=null,Ja=null,Ya=null;function Xa(){Ya=Ja=qa=null}function Za(e){var t=Ka.current;Ji(Ka),e._currentValue=t}function Qa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function $a(e,t){qa=e,Ya=Ja=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Hs=!0),e.firstContext=null)}function eo(e){var t=e._currentValue;if(Ya!==e)if(e={context:e,memoizedValue:t,next:null},Ja===null){if(qa===null)throw Error(r(308));Ja=e,qa.dependencies={lanes:0,firstContext:e}}else Ja=Ja.next=e;return t}var to=null;function no(e){to===null?to=[e]:to.push(e)}function ro(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,no(t)):(n.next=i.next,i.next=n),t.interleaved=n,io(e,r)}function io(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ao=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function so(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xc&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,io(e,n)}return i=r.interleaved,i===null?(t.next=t,no(r)):(t.next=i.next,i.next=t),r.interleaved=t,io(e,n)}function uo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ht(e,n)}}function fo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function B(e,t,n,r){var i=e.updateQueue;ao=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=ne({},d,f);break a;case 2:ao=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);il|=o,e.lanes=o,e.memoizedState=d}}function po(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var mo={},ho=qi(mo),go=qi(mo),_o=qi(mo);function vo(e){if(e===mo)throw Error(r(174));return e}function yo(e,t){switch(Yi(_o,t),Yi(go,e),Yi(ho,mo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oe(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Oe(t,e)}Ji(ho),Yi(ho,t)}function bo(){Ji(ho),Ji(go),Ji(_o)}function xo(e){vo(_o.current);var t=vo(ho.current),n=Oe(t,e.type);t!==n&&(Yi(go,e),Yi(ho,n))}function So(e){go.current===e&&(Ji(ho),Ji(go))}var Co=qi(0);function wo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var To=[];function V(){for(var e=0;e<To.length;e++)To[e]._workInProgressVersionPrimary=null;To.length=0}var Eo=S.ReactCurrentDispatcher,Do=S.ReactCurrentBatchConfig,Oo=0,ko=null,Ao=null,jo=null,Mo=!1,No=!1,Po=0,Fo=0;function Io(){throw Error(r(321))}function Lo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ar(e[n],t[n]))return!1;return!0}function Ro(e,t,n,i,a,o){if(Oo=o,ko=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eo.current=e===null||e.memoizedState===null?Ss:Cs,e=n(i,a),No){o=0;do{if(No=!1,Po=0,25<=o)throw Error(r(301));o+=1,jo=Ao=null,t.updateQueue=null,Eo.current=ws,e=n(i,a)}while(No)}if(Eo.current=xs,t=Ao!==null&&Ao.next!==null,Oo=0,jo=Ao=ko=null,Mo=!1,t)throw Error(r(300));return e}function zo(){var e=Po!==0;return Po=0,e}function Bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jo===null?ko.memoizedState=jo=e:jo=jo.next=e,jo}function Vo(){if(Ao===null){var e=ko.alternate;e=e===null?null:e.memoizedState}else e=Ao.next;var t=jo===null?ko.memoizedState:jo.next;if(t!==null)jo=t,Ao=e;else{if(e===null)throw Error(r(310));Ao=e,e={memoizedState:Ao.memoizedState,baseState:Ao.baseState,baseQueue:Ao.baseQueue,queue:Ao.queue,next:null},jo===null?ko.memoizedState=jo=e:jo=jo.next=e}return jo}function Ho(e,t){return typeof t==`function`?t(e):t}function Uo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Ao,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Oo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,ko.lanes|=d,il|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Ar(i,t.memoizedState)||(Hs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,ko.lanes|=o,il|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Ar(o,t.memoizedState)||(Hs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Go(){}function Ko(e,t){var n=ko,i=Vo(),a=t(),o=!Ar(i.memoizedState,a);if(o&&(i.memoizedState=a,Hs=!0),i=i.queue,is(Yo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||jo!==null&&jo.memoizedState.tag&1){if(n.flags|=2048,$o(9,Jo.bind(null,n,i,a,t),void 0,null),Zc===null)throw Error(r(349));Oo&30||qo(n,t,a)}return a}function qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jo(e,t,n,r){t.value=n,t.getSnapshot=r,Xo(t)&&Zo(e)}function Yo(e,t,n){return n(function(){Xo(t)&&Zo(e)})}function Xo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ar(e,n)}catch{return!0}}function Zo(e){var t=io(e,1);t!==null&&wl(t,e,1,-1)}function Qo(e){var t=Bo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:e},t.queue=e,e=e.dispatch=gs.bind(null,ko,e),[t.memoizedState,e]}function $o(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function es(){return Vo().memoizedState}function ts(e,t,n,r){var i=Bo();ko.flags|=e,i.memoizedState=$o(1|t,n,void 0,r===void 0?null:r)}function ns(e,t,n,r){var i=Vo();r=r===void 0?null:r;var a=void 0;if(Ao!==null){var o=Ao.memoizedState;if(a=o.destroy,r!==null&&Lo(r,o.deps)){i.memoizedState=$o(t,n,a,r);return}}ko.flags|=e,i.memoizedState=$o(1|t,n,a,r)}function rs(e,t){return ts(8390656,8,e,t)}function is(e,t){return ns(2048,8,e,t)}function as(e,t){return ns(4,2,e,t)}function os(e,t){return ns(4,4,e,t)}function ss(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cs(e,t,n){return n=n==null?null:n.concat([e]),ns(4,4,ss.bind(null,t,e),n)}function ls(){}function us(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ds(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fs(e,t,n){return Oo&21?(Ar(n,t)||(n=Rt(),ko.lanes|=n,il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Hs=!0),e.memoizedState=n)}function ps(e,t){var n=Ut;Ut=n!==0&&4>n?n:4,e(!0);var r=Do.transition;Do.transition={};try{e(!1),t()}finally{Ut=n,Do.transition=r}}function ms(){return Vo().memoizedState}function hs(e,t,n){var r=Cl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_s(e))ys(t,n);else if(n=ro(e,t,n,r),n!==null){var i=Sl();wl(n,e,r,i),bs(n,t,r)}}function gs(e,t,n){var r=Cl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_s(e))ys(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ar(s,o)){var c=t.interleaved;c===null?(i.next=i,no(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=ro(e,t,i,r),n!==null&&(i=Sl(),wl(n,e,r,i),bs(n,t,r))}}function _s(e){var t=e.alternate;return e===ko||t!==null&&t===ko}function ys(e,t){No=Mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bs(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ht(e,n)}}var xs={readContext:eo,useCallback:Io,useContext:Io,useEffect:Io,useImperativeHandle:Io,useInsertionEffect:Io,useLayoutEffect:Io,useMemo:Io,useReducer:Io,useRef:Io,useState:Io,useDebugValue:Io,useDeferredValue:Io,useTransition:Io,useMutableSource:Io,useSyncExternalStore:Io,useId:Io,unstable_isNewReconciler:!1},Ss={readContext:eo,useCallback:function(e,t){return Bo().memoizedState=[e,t===void 0?null:t],e},useContext:eo,useEffect:rs,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),ts(4194308,4,ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return ts(4,2,e,t)},useMemo:function(e,t){var n=Bo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hs.bind(null,ko,e),[r.memoizedState,e]},useRef:function(e){var t=Bo();return e={current:e},t.memoizedState=e},useState:Qo,useDebugValue:ls,useDeferredValue:function(e){return Bo().memoizedState=e},useTransition:function(){var e=Qo(!1),t=e[0];return e=ps.bind(null,e[1]),Bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ko,a=Bo();if(Oa){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Zc===null)throw Error(r(349));Oo&30||qo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Yo.bind(null,i,o,e),[e]),i.flags|=2048,$o(9,Jo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Bo(),t=Zc.identifierPrefix;if(Oa){var n=xa,r=ba;n=(r&~(1<<32-Dt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Po++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Fo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Cs={readContext:eo,useCallback:us,useContext:eo,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Uo,useRef:es,useState:function(){return Uo(Ho)},useDebugValue:ls,useDeferredValue:function(e){return fs(Vo(),Ao.memoizedState,e)},useTransition:function(){return[Uo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:ms,unstable_isNewReconciler:!1},ws={readContext:eo,useCallback:us,useContext:eo,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Wo,useRef:es,useState:function(){return Wo(Ho)},useDebugValue:ls,useDeferredValue:function(e){var t=Vo();return Ao===null?t.memoizedState=e:fs(t,Ao.memoizedState,e)},useTransition:function(){return[Wo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:ms,unstable_isNewReconciler:!1};function Ts(e,t){if(e&&e.defaultProps){for(var n in t=ne({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Es(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ds={isMounted:function(e){return(e=e._reactInternals)?ct(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Sl(),i=Cl(e),a=co(r,i);a.payload=t,n!=null&&(a.callback=n),t=lo(e,a,i),t!==null&&(wl(t,e,i,r),uo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Sl(),i=Cl(e),a=co(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=lo(e,a,i),t!==null&&(wl(t,e,i,r),uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Sl(),r=Cl(e),i=co(n,r);i.tag=2,t!=null&&(i.callback=t),t=lo(e,i,r),t!==null&&(wl(t,e,r,n),uo(t,e,r))}};function Os(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!jr(n,r)||!jr(i,a):!0}function ks(e,t,n){var r=!1,i=Xi,a=t.contextType;return typeof a==`object`&&a?a=eo(a):(i=ta(t)?$i:Zi.current,r=t.contextTypes,a=(r=r!=null)?ea(e,i):Xi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ds,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function As(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ds.enqueueReplaceState(t,t.state,null)}function js(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},oo(e);var a=t.contextType;typeof a==`object`&&a?i.context=eo(a):(a=ta(t)?$i:Zi.current,i.context=ea(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Es(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Ds.enqueueReplaceState(i,i.state,null),B(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Ms(e,t){try{var n=``,r=t;do n+=oe(r),r=r.return;while(r);var i=n}catch(e){i=`
42
+ Error generating stack: `+e.message+`
43
+ `+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ns(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ps(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Fs=typeof WeakMap==`function`?WeakMap:Map;function Is(e,t,n){n=co(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fl||(fl=!0,pl=r),Ps(e,t)},n}function Ls(e,t,n){n=co(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ps(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ps(e,t),typeof r!=`function`&&(ml===null?ml=new Set([this]):ml.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Rs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Fs;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Yl.bind(null,e,t,n),t.then(e,e))}function zs(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null?!0:t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Bs(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=co(-1,1),t.tag=2,lo(n,t,1))),n.lanes|=1),e)}var Vs=S.ReactCurrentOwner,Hs=!1;function Us(e,t,n,r){t.child=e===null?Ga(t,null,n,r):Wa(t,e.child,n,r)}function Ws(e,t,n,r,i){n=n.render;var a=t.ref;return $a(t,i),r=Ro(e,t,n,r,a,i),n=zo(),e!==null&&!Hs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uc(e,t,i)):(Oa&&n&&wa(t),t.flags|=1,Us(e,t,r,i),t.child)}function Gs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ru(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Ks(e,t,a,r,i)):(e=ou(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?jr:n,n(o,r)&&e.ref===t.ref)return uc(e,t,i)}return t.flags|=1,e=au(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ks(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(jr(a,r)&&e.ref===t.ref)if(Hs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Hs=!0);else return t.lanes=e.lanes,uc(e,t,i)}return Ys(e,t,n,r,i)}function qs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Yi(tl,el),el|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Yi(tl,el),el|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Yi(tl,el),el|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Yi(tl,el),el|=r;return Us(e,t,i,n),t.child}function Js(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ys(e,t,n,r,i){var a=ta(n)?$i:Zi.current;return a=ea(t,a),$a(t,i),n=Ro(e,t,n,r,a,i),r=zo(),e!==null&&!Hs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uc(e,t,i)):(Oa&&r&&wa(t),t.flags|=1,Us(e,t,n,i),t.child)}function Xs(e,t,n,r,i){if(ta(n)){var a=!0;aa(t)}else a=!1;if($a(t,i),t.stateNode===null)lc(e,t),ks(t,n,r),js(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=eo(l):(l=ta(n)?$i:Zi.current,l=ea(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&As(t,o,r,l),ao=!1;var f=t.memoizedState;o.state=f,B(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Qi.current||ao?(typeof u==`function`&&(Es(t,n,u,r),c=t.memoizedState),(s=ao||Os(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,so(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Ts(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=eo(c):(c=ta(n)?$i:Zi.current,c=ea(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&As(t,o,r,c),ao=!1,f=t.memoizedState,o.state=f,B(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Qi.current||ao?(typeof p==`function`&&(Es(t,n,p,r),m=t.memoizedState),(l=ao||Os(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Zs(e,t,n,r,a,i)}function Zs(e,t,n,r,i,a){Js(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&oa(t,n,!1),uc(e,t,a);r=t.stateNode,Vs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Wa(t,e.child,null,a),t.child=Wa(t,null,s,a)):Us(e,t,s,a),t.memoizedState=r.state,i&&oa(t,n,!0),t.child}function Qs(e){var t=e.stateNode;t.pendingContext?ra(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ra(e,t.context,!1),yo(e,t.containerInfo)}function $s(e,t,n,r,i){return La(),Ra(i),t.flags|=256,Us(e,t,n,r),t.child}var ec={dehydrated:null,treeContext:null,retryLane:0};function tc(e){return{baseLanes:e,cachePool:null,transitions:null}}function nc(e,t,n){var r=t.pendingProps,i=Co.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Yi(Co,i&1),e===null)return Na(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=cu(o,r,0,null),e=su(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=tc(n),t.memoizedState=ec,e):rc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return ac(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=au(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=su(a,o,n,null),a.flags|=2):a=au(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?tc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=ec,r}return a=e.child,e=a.sibling,r=au(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function rc(e,t){return t=cu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function ic(e,t,n,r){return r!==null&&Ra(r),Wa(t,e.child,null,n),e=rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ac(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ns(Error(r(422))),ic(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=cu({mode:`visible`,children:i.children},a,0,null),o=su(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Wa(t,e.child,null,s),t.child.memoizedState=tc(s),t.memoizedState=ec,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return ic(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Ns(o,i,void 0),ic(e,t,s,i)}if(c=(s&e.childLanes)!==0,Hs||c){if(i=Zc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,io(e,a),wl(i,e,a,-1))}return Rl(),i=Ns(Error(r(421))),ic(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Zl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Da=Mi(a.nextSibling),Ea=t,Oa=!0,ka=null,e!==null&&(_a[va++]=ba,_a[va++]=xa,_a[va++]=ya,ba=e.id,xa=e.overflow,ya=t),t=rc(t,i.children),t.flags|=4096,t)}function oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qa(e.return,t,n)}function sc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function cc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Us(e,t,r.children,n),r=Co.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&oc(e,n,t);else if(e.tag===19)oc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Yi(Co,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&wo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&wo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sc(t,!0,n,null,a);break;case`together`:sc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function uc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),il|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=au(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=au(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dc(e,t,n){switch(t.tag){case 3:Qs(t),La();break;case 5:xo(t);break;case 1:ta(t.type)&&aa(t);break;case 4:yo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Yi(Ka,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Yi(Co,Co.current&1),e=uc(e,t,n),e===null?null:e.sibling):nc(e,t,n):(Yi(Co,Co.current&1),t.flags|=128,null);Yi(Co,Co.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return cc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Yi(Co,Co.current),r)break;return null;case 22:case 23:return t.lanes=0,qs(e,t,n)}return uc(e,t,n)}var fc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},pc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,vo(ho.current);var o=null;switch(n){case`input`:i=he(e,i),r=he(e,r),o=[];break;case`select`:i=ne({},i,{value:void 0}),r=ne({},r,{value:void 0}),o=[];break;case`textarea`:i=Ce(e,i),r=Ce(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Si)}Le(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&ci(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},mc=function(e,t,n,r){n!==r&&(t.flags|=4)};function hc(e,t){if(!Oa)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function gc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _c(e,t,n){var i=t.pendingProps;switch(Ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gc(t),null;case 1:return ta(t.type)&&na(),gc(t),null;case 3:return i=t.stateNode,bo(),Ji(Qi),Ji(Zi),V(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Fa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ka!==null&&(Ol(ka),ka=null))),gc(t),null;case 5:So(t);var o=vo(_o.current);if(n=t.type,e!==null&&t.stateNode!=null)pc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return gc(t),null}if(e=vo(ho.current),Fa(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Fi]=t,i[Ii]=s,e=(t.mode&1)!=0,n){case`dialog`:ci(`cancel`,i),ci(`close`,i);break;case`iframe`:case`object`:case`embed`:ci(`load`,i);break;case`video`:case`audio`:for(o=0;o<ii.length;o++)ci(ii[o],i);break;case`source`:ci(`error`,i);break;case`img`:case`image`:case`link`:ci(`error`,i),ci(`load`,i);break;case`details`:ci(`toggle`,i);break;case`input`:ge(i,s),ci(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},ci(`invalid`,i);break;case`textarea`:we(i,s),ci(`invalid`,i)}for(var c in Le(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&ci(`scroll`,i)}switch(n){case`input`:fe(i),ye(i,s,!0);break;case`textarea`:fe(i),Ee(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Si)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=De(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Fi]=t,e[Ii]=i,fc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Re(n,i),n){case`dialog`:ci(`cancel`,e),ci(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:ci(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ii.length;o++)ci(ii[o],e);o=i;break;case`source`:ci(`error`,e),o=i;break;case`img`:case`image`:case`link`:ci(`error`,e),ci(`load`,e),o=i;break;case`details`:ci(`toggle`,e),o=i;break;case`input`:ge(e,i),o=he(e,i),ci(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=ne({},i,{value:void 0}),ci(`invalid`,e);break;case`textarea`:we(e,i),o=Ce(e,i),ci(`invalid`,e);break;default:o=i}for(s in Le(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Fe(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Ae(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&je(e,u):typeof u==`number`&&je(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&ci(`scroll`,e):u!=null&&x(e,s,u,c))}switch(n){case`input`:fe(e),ye(e,i,!1);break;case`textarea`:fe(e),Ee(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+le(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Se(e,!!i.multiple,i.defaultValue,!0):Se(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Si)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return gc(t),null;case 6:if(e&&t.stateNode!=null)mc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=vo(_o.current),vo(ho.current),Fa(t)){if(i=t.stateNode,n=t.memoizedProps,i[Fi]=t,(s=i.nodeValue!==n)&&(e=Ea,e!==null))switch(e.tag){case 3:xi(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&xi(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Fi]=t,t.stateNode=i}return gc(t),null;case 13:if(Ji(Co),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Oa&&Da!==null&&t.mode&1&&!(t.flags&128))Ia(),La(),t.flags|=98560,s=!1;else if(s=Fa(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Fi]=t}else La(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gc(t),s=!1}else ka!==null&&(Ol(ka),ka=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Co.current&1?nl===0&&(nl=3):Rl())),t.updateQueue!==null&&(t.flags|=4),gc(t),null);case 4:return bo(),e===null&&di(t.stateNode.containerInfo),gc(t),null;case 10:return Za(t.type._context),gc(t),null;case 17:return ta(t.type)&&na(),gc(t),null;case 19:if(Ji(Co),s=t.memoizedState,s===null)return gc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)hc(s,!1);else{if(nl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=wo(e),c!==null){for(t.flags|=128,hc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Yi(Co,Co.current&1|2),t.child}e=e.sibling}s.tail!==null&&vt()>ul&&(t.flags|=128,i=!0,hc(s,!1),t.lanes=4194304)}else{if(!i)if(e=wo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Oa)return gc(t),null}else 2*vt()-s.renderingStartTime>ul&&n!==1073741824&&(t.flags|=128,i=!0,hc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(gc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=vt(),t.sibling=null,n=Co.current,Yi(Co,i?n&1|2:n&1),t);case 22:case 23:return Pl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?el&1073741824&&(gc(t),t.subtreeFlags&6&&(t.flags|=8192)):gc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function vc(e,t){switch(Ta(t),t.tag){case 1:return ta(t.type)&&na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bo(),Ji(Qi),Ji(Zi),V(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return So(t),null;case 13:if(Ji(Co),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ji(Co),null;case 4:return bo(),null;case 10:return Za(t.type._context),null;case 22:case 23:return Pl(),null;case 24:return null;default:return null}}var yc=!1,bc=!1,xc=typeof WeakSet==`function`?WeakSet:Set,H=null;function Sc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Jl(e,t,n)}else n.current=null}function Cc(e,t,n){try{n()}catch(n){Jl(e,t,n)}}var wc=!1;function Tc(e,t){if(Ci=mn,e=Fr(),Ir(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(wi={focusedElem:e,selectionRange:n},mn=!1,H=t;H!==null;)if(t=H,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ts(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Jl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return h=wc,wc=!1,h}function Ec(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Cc(t,n,a)}i=i.next}while(i!==r)}}function Dc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Oc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function kc(e){var t=e.alternate;t!==null&&(e.alternate=null,kc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fi],delete t[Ii],delete t[Ri],delete t[zi],delete t[Bi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ac(e){return e.tag===5||e.tag===3||e.tag===4}function jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ac(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Si));else if(r!==4&&(e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}function Nc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Nc(e,t,n),e=e.sibling;e!==null;)Nc(e,t,n),e=e.sibling}var Pc=null,Fc=!1;function Ic(e,t,n){for(n=n.child;n!==null;)U(e,t,n),n=n.sibling}function U(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount==`function`)try{Tt.onCommitFiberUnmount(wt,n)}catch{}switch(n.tag){case 5:bc||Sc(n,t);case 6:var r=Pc,i=Fc;Pc=null,Ic(e,t,n),Pc=r,Fc=i,Pc!==null&&(Fc?(e=Pc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pc.removeChild(n.stateNode));break;case 18:Pc!==null&&(Fc?(e=Pc,n=n.stateNode,e.nodeType===8?ji(e.parentNode,n):e.nodeType===1&&ji(e,n),fn(e)):ji(Pc,n.stateNode));break;case 4:r=Pc,i=Fc,Pc=n.stateNode.containerInfo,Fc=!0,Ic(e,t,n),Pc=r,Fc=i;break;case 0:case 11:case 14:case 15:if(!bc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Cc(n,t,o),i=i.next}while(i!==r)}Ic(e,t,n);break;case 1:if(!bc&&(Sc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Jl(n,t,e)}Ic(e,t,n);break;case 21:Ic(e,t,n);break;case 22:n.mode&1?(bc=(r=bc)||n.memoizedState!==null,Ic(e,t,n),bc=r):Ic(e,t,n);break;default:Ic(e,t,n)}}function Lc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xc),t.forEach(function(t){var r=Ql.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Rc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Pc=c.stateNode,Fc=!1;break a;case 3:Pc=c.stateNode.containerInfo,Fc=!0;break a;case 4:Pc=c.stateNode.containerInfo,Fc=!0;break a}c=c.return}if(Pc===null)throw Error(r(160));U(o,s,a),Pc=null,Fc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Jl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zc(t,e),t=t.sibling}function zc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rc(t,e),Bc(e),i&4){try{Ec(3,e,e.return),Dc(3,e)}catch(t){Jl(e,e.return,t)}try{Ec(5,e,e.return)}catch(t){Jl(e,e.return,t)}}break;case 1:Rc(t,e),Bc(e),i&512&&n!==null&&Sc(n,n.return);break;case 5:if(Rc(t,e),Bc(e),i&512&&n!==null&&Sc(n,n.return),e.flags&32){var a=e.stateNode;try{je(a,``)}catch(t){Jl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&_e(a,o),Re(c,s);var u=Re(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Fe(a,f):d===`dangerouslySetInnerHTML`?Ae(a,f):d===`children`?je(a,f):x(a,d,f,u)}switch(c){case`input`:ve(a,o);break;case`textarea`:Te(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Se(a,!!o.multiple,o.multiple?[]:``,!1):Se(a,!!o.multiple,o.defaultValue,!0)):Se(a,!!o.multiple,m,!1)}a[Ii]=o}catch(t){Jl(e,e.return,t)}}break;case 6:if(Rc(t,e),Bc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Jl(e,e.return,t)}}break;case 3:if(Rc(t,e),Bc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{fn(t.containerInfo)}catch(t){Jl(e,e.return,t)}break;case 4:Rc(t,e),Bc(e);break;case 13:Rc(t,e),Bc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(ll=vt())),i&4&&Lc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(bc=(u=bc)||d,Rc(t,e),bc=u):Rc(t,e),Bc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(H=e,d=e.child;d!==null;){for(f=H=d;H!==null;){switch(p=H,m=p.child,p.tag){case 0:case 11:case 14:case 15:Ec(4,p,p.return);break;case 1:Sc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Jl(i,n,e)}}break;case 5:Sc(p,p.return);break;case 22:if(p.memoizedState!==null){Wc(f);continue}}m===null?Wc(f):(m.return=p,H=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Pe(`display`,s))}catch(t){Jl(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Jl(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Rc(t,e),Bc(e),i&4&&Lc(e);break;case 21:break;default:Rc(t,e),Bc(e)}}function Bc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Ac(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(je(a,``),i.flags&=-33),Nc(e,jc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Mc(e,jc(e),o);break;default:throw Error(r(161))}}catch(t){Jl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vc(e,t,n){H=e,Hc(e,t,n)}function Hc(e,t,n){for(var r=(e.mode&1)!=0;H!==null;){var i=H,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||yc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||bc;s=yc;var l=bc;if(yc=o,(bc=c)&&!l)for(H=i;H!==null;)o=H,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Gc(i):(c.return=o,H=c);for(;a!==null;)H=a,Hc(a,t,n),a=a.sibling;H=i,yc=s,bc=l}Uc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,H=a):Uc(e,t,n)}}function Uc(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:bc||Dc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!bc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Ts(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&po(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}po(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&fn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}bc||t.flags&512&&Oc(t)}catch(e){Jl(t,t.return,e)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function Wc(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function Gc(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Dc(4,t)}catch(e){Jl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Jl(t,i,e)}}var a=t.return;try{Oc(t)}catch(e){Jl(t,a,e)}break;case 5:var o=t.return;try{Oc(t)}catch(e){Jl(t,o,e)}}}catch(e){Jl(t,t.return,e)}if(t===e){H=null;break}var s=t.sibling;if(s!==null){s.return=t.return,H=s;break}H=t.return}}var Kc=Math.ceil,qc=S.ReactCurrentDispatcher,Jc=S.ReactCurrentOwner,Yc=S.ReactCurrentBatchConfig,Xc=0,Zc=null,Qc=null,$c=0,el=0,tl=qi(0),nl=0,rl=null,il=0,al=0,ol=0,sl=null,cl=null,ll=0,ul=1/0,dl=null,fl=!1,pl=null,ml=null,hl=!1,gl=null,_l=0,vl=0,yl=null,bl=-1,xl=0;function Sl(){return Xc&6?vt():bl===-1?bl=vt():bl}function Cl(e){return e.mode&1?Xc&2&&$c!==0?$c&-$c:za.transition===null?(e=Ut,e===0?(e=window.event,e=e===void 0?16:bn(e.type),e):e):(xl===0&&(xl=Rt()),xl):1}function wl(e,t,n,i){if(50<vl)throw vl=0,yl=null,Error(r(185));Bt(e,n,i),(!(Xc&2)||e!==Zc)&&(e===Zc&&(!(Xc&2)&&(al|=n),nl===4&&Al(e,$c)),Tl(e,i),n===1&&Xc===0&&!(t.mode&1)&&(ul=vt()+500,ca&&fa()))}function Tl(e,t){var n=e.callbackNode;It(e,t);var r=Pt(e,e===Zc?$c:0);if(r===0)n!==null&&ht(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ht(n),t===1)e.tag===0?da(jl.bind(null,e)):ua(jl.bind(null,e)),ki(function(){!(Xc&6)&&fa()}),n=null;else{switch(Wt(r)){case 1:n=L;break;case 4:n=bt;break;case 16:n=xt;break;case 536870912:n=Ct;break;default:n=xt}n=eu(n,El.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function El(e,t){if(bl=-1,xl=0,Xc&6)throw Error(r(327));var n=e.callbackNode;if(Kl()&&e.callbackNode!==n)return null;var i=Pt(e,e===Zc?$c:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=zl(e,i);else{t=i;var a=Xc;Xc|=2;var o=Ll();(Zc!==e||$c!==t)&&(dl=null,ul=vt()+500,Fl(e,t));do try{Vl();break}catch(t){Il(e,t)}while(1);Xa(),qc.current=o,Xc=a,Qc===null?(Zc=null,$c=0,t=nl):t=0}if(t!==0){if(t===2&&(a=Lt(e),a!==0&&(i=a,t=Dl(e,a))),t===1)throw n=rl,Fl(e,0),Al(e,i),Tl(e,vt()),n;if(t===6)Al(e,i);else{if(a=e.current.alternate,!(i&30)&&!kl(a)&&(t=zl(e,i),t===2&&(o=Lt(e),o!==0&&(i=o,t=Dl(e,o))),t===1))throw n=rl,Fl(e,0),Al(e,i),Tl(e,vt()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Wl(e,cl,dl);break;case 3:if(Al(e,i),(i&130023424)===i&&(t=ll+500-vt(),10<t)){if(Pt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Sl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ei(Wl.bind(null,e,cl,dl),t);break}Wl(e,cl,dl);break;case 4:if(Al(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Dt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=vt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Kc(i/1960))-i,10<i){e.timeoutHandle=Ei(Wl.bind(null,e,cl,dl),i);break}Wl(e,cl,dl);break;case 5:Wl(e,cl,dl);break;default:throw Error(r(329))}}}return Tl(e,vt()),e.callbackNode===n?El.bind(null,e):null}function Dl(e,t){var n=sl;return e.current.memoizedState.isDehydrated&&(Fl(e,t).flags|=256),e=zl(e,t),e!==2&&(t=cl,cl=n,t!==null&&Ol(t)),e}function Ol(e){cl===null?cl=e:cl.push.apply(cl,e)}function kl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ar(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Al(e,t){for(t&=~ol,t&=~al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Dt(t),r=1<<n;e[n]=-1,t&=~r}}function jl(e){if(Xc&6)throw Error(r(327));Kl();var t=Pt(e,0);if(!(t&1))return Tl(e,vt()),null;var n=zl(e,t);if(e.tag!==0&&n===2){var i=Lt(e);i!==0&&(t=i,n=Dl(e,i))}if(n===1)throw n=rl,Fl(e,0),Al(e,t),Tl(e,vt()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wl(e,cl,dl),Tl(e,vt()),null}function Ml(e,t){var n=Xc;Xc|=1;try{return e(t)}finally{Xc=n,Xc===0&&(ul=vt()+500,ca&&fa())}}function Nl(e){gl!==null&&gl.tag===0&&!(Xc&6)&&Kl();var t=Xc;Xc|=1;var n=Yc.transition,r=Ut;try{if(Yc.transition=null,Ut=1,e)return e()}finally{Ut=r,Yc.transition=n,Xc=t,!(Xc&6)&&fa()}}function Pl(){el=tl.current,Ji(tl)}function Fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Di(n)),Qc!==null)for(n=Qc.return;n!==null;){var r=n;switch(Ta(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&na();break;case 3:bo(),Ji(Qi),Ji(Zi),V();break;case 5:So(r);break;case 4:bo();break;case 13:Ji(Co);break;case 19:Ji(Co);break;case 10:Za(r.type._context);break;case 22:case 23:Pl()}n=n.return}if(Zc=e,Qc=e=au(e.current,null),$c=el=t,nl=0,rl=null,ol=al=il=0,cl=sl=null,to!==null){for(t=0;t<to.length;t++)if(n=to[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}to=null}return e}function Il(e,t){do{var n=Qc;try{if(Xa(),Eo.current=xs,Mo){for(var i=ko.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Mo=!1}if(Oo=0,jo=Ao=ko=null,No=!1,Po=0,Jc.current=null,n===null||n.return===null){nl=1,rl=t,Qc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=$c,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=zs(s);if(m!==null){m.flags&=-257,Bs(m,s,c,o,t),m.mode&1&&Rs(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Rs(o,u,t),Rl();break a}l=Error(r(426))}}else if(Oa&&c.mode&1){var _=zs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Bs(_,s,c,o,t),Ra(Ms(l,c));break a}}o=l=Ms(l,c),nl!==4&&(nl=2),sl===null?sl=[o]:sl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Is(o,l,t);fo(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(ml===null||!ml.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Ls(o,c,t);fo(o,x);break a}}o=o.return}while(o!==null)}Ul(n)}catch(e){t=e,Qc===n&&n!==null&&(Qc=n=n.return);continue}break}while(1)}function Ll(){var e=qc.current;return qc.current=xs,e===null?xs:e}function Rl(){(nl===0||nl===3||nl===2)&&(nl=4),Zc===null||!(il&268435455)&&!(al&268435455)||Al(Zc,$c)}function zl(e,t){var n=Xc;Xc|=2;var i=Ll();(Zc!==e||$c!==t)&&(dl=null,Fl(e,t));do try{Bl();break}catch(t){Il(e,t)}while(1);if(Xa(),Xc=n,qc.current=i,Qc!==null)throw Error(r(261));return Zc=null,$c=0,nl}function Bl(){for(;Qc!==null;)Hl(Qc)}function Vl(){for(;Qc!==null&&!gt();)Hl(Qc)}function Hl(e){var t=$l(e.alternate,e,el);e.memoizedProps=e.pendingProps,t===null?Ul(e):Qc=t,Jc.current=null}function Ul(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=vc(n,t),n!==null){n.flags&=32767,Qc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{nl=6,Qc=null;return}}else if(n=_c(n,t,el),n!==null){Qc=n;return}if(t=t.sibling,t!==null){Qc=t;return}Qc=t=e}while(t!==null);nl===0&&(nl=5)}function Wl(e,t,n){var r=Ut,i=Yc.transition;try{Yc.transition=null,Ut=1,Gl(e,t,n,r)}finally{Yc.transition=i,Ut=r}return null}function Gl(e,t,n,i){do Kl();while(gl!==null);if(Xc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Vt(e,o),e===Zc&&(Qc=Zc=null,$c=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||hl||(hl=!0,eu(xt,function(){return Kl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Yc.transition,Yc.transition=null;var s=Ut;Ut=1;var c=Xc;Xc|=4,Jc.current=null,Tc(e,n),zc(n,e),Lr(wi),mn=!!Ci,wi=Ci=null,e.current=n,Vc(n,e,a),_t(),Xc=c,Ut=s,Yc.transition=o}else e.current=n;if(hl&&(hl=!1,gl=e,_l=a),o=e.pendingLanes,o===0&&(ml=null),Et(n.stateNode,i),Tl(e,vt()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(fl)throw fl=!1,e=pl,pl=null,e;return _l&1&&e.tag!==0&&Kl(),o=e.pendingLanes,o&1?e===yl?vl++:(vl=0,yl=e):vl=0,fa(),null}function Kl(){if(gl!==null){var e=Wt(_l),t=Yc.transition,n=Ut;try{if(Yc.transition=null,Ut=16>e?16:e,gl===null)var i=!1;else{if(e=gl,gl=null,_l=0,Xc&6)throw Error(r(331));var a=Xc;for(Xc|=4,H=e.current;H!==null;){var o=H,s=o.child;if(H.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(H=u;H!==null;){var d=H;switch(d.tag){case 0:case 11:case 15:Ec(8,d,o)}var f=d.child;if(f!==null)f.return=d,H=f;else for(;H!==null;){d=H;var p=d.sibling,m=d.return;if(kc(d),d===u){H=null;break}if(p!==null){p.return=m,H=p;break}H=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}H=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,H=s;else b:for(;H!==null;){if(o=H,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ec(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,H=v;break b}H=o.return}}var y=e.current;for(H=y;H!==null;){s=H;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,H=b;else b:for(s=y;H!==null;){if(c=H,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Dc(9,c)}}catch(e){Jl(c,c.return,e)}if(c===s){H=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,H=x;break b}H=c.return}}if(Xc=a,fa(),Tt&&typeof Tt.onPostCommitFiberRoot==`function`)try{Tt.onPostCommitFiberRoot(wt,e)}catch{}i=!0}return i}finally{Ut=n,Yc.transition=t}}return!1}function ql(e,t,n){t=Ms(n,t),t=Is(e,t,1),e=lo(e,t,1),t=Sl(),e!==null&&(Bt(e,1,t),Tl(e,t))}function Jl(e,t,n){if(e.tag===3)ql(e,e,n);else for(;t!==null;){if(t.tag===3){ql(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ml===null||!ml.has(r))){e=Ms(n,e),e=Ls(t,e,1),t=lo(t,e,1),e=Sl(),t!==null&&(Bt(t,1,e),Tl(t,e));break}}t=t.return}}function Yl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Sl(),e.pingedLanes|=e.suspendedLanes&n,Zc===e&&($c&n)===n&&(nl===4||nl===3&&($c&130023424)===$c&&500>vt()-ll?Fl(e,0):ol|=n),Tl(e,t)}function Xl(e,t){t===0&&(e.mode&1?(t=Mt,Mt<<=1,!(Mt&130023424)&&(Mt=4194304)):t=1);var n=Sl();e=io(e,t),e!==null&&(Bt(e,t,n),Tl(e,n))}function Zl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xl(e,n)}function Ql(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Xl(e,n)}var $l=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qi.current)Hs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Hs=!1,dc(e,t,n);Hs=!!(e.flags&131072)}else Hs=!1,Oa&&t.flags&1048576&&Ca(t,ga,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;lc(e,t),e=t.pendingProps;var a=ea(t,Zi.current);$a(t,n),a=Ro(null,t,i,e,a,n);var o=zo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ta(i)?(o=!0,aa(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,oo(t),a.updater=Ds,t.stateNode=a,a._reactInternals=t,js(t,i,e,n),t=Zs(null,t,i,!0,o,n)):(t.tag=0,Oa&&o&&wa(t),Us(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(lc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=iu(i),e=Ts(i,e),a){case 0:t=Ys(null,t,i,e,n);break a;case 1:t=Xs(null,t,i,e,n);break a;case 11:t=Ws(null,t,i,e,n);break a;case 14:t=Gs(null,t,i,Ts(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(i,a),Ys(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(i,a),Xs(e,t,i,a,n);case 3:a:{if(Qs(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,so(e,t),B(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ms(Error(r(423)),t),t=$s(e,t,i,n,a);break a}else if(i!==a){a=Ms(Error(r(424)),t),t=$s(e,t,i,n,a);break a}else for(Da=Mi(t.stateNode.containerInfo.firstChild),Ea=t,Oa=!0,ka=null,n=Ga(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(La(),i===a){t=uc(e,t,n);break a}Us(e,t,i,n)}t=t.child}return t;case 5:return xo(t),e===null&&Na(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ti(i,a)?s=null:o!==null&&Ti(i,o)&&(t.flags|=32),Js(e,t),Us(e,t,s,n),t.child;case 6:return e===null&&Na(t),null;case 13:return nc(e,t,n);case 4:return yo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Wa(t,null,i,n):Us(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(i,a),Ws(e,t,i,a,n);case 7:return Us(e,t,t.pendingProps,n),t.child;case 8:return Us(e,t,t.pendingProps.children,n),t.child;case 12:return Us(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Yi(Ka,i._currentValue),i._currentValue=s,o!==null)if(Ar(o.value,s)){if(o.children===a.children&&!Qi.current){t=uc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=co(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Qa(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Qa(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Us(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,$a(t,n),a=eo(a),i=i(a),t.flags|=1,Us(e,t,i,n),t.child;case 14:return i=t.type,a=Ts(i,t.pendingProps),a=Ts(i.type,a),Gs(e,t,i,a,n);case 15:return Ks(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(i,a),lc(e,t),t.tag=1,ta(i)?(e=!0,aa(t)):e=!1,$a(t,n),ks(t,i,a),js(t,i,a,n),Zs(null,t,i,!0,e,n);case 19:return cc(e,t,n);case 22:return qs(e,t,n)}throw Error(r(156,t.tag))};function eu(e,t){return mt(e,t)}function tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nu(e,t,n,r){return new tu(e,t,n,r)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function iu(e){if(typeof e==`function`)return+!!ru(e);if(e!=null){if(e=e.$$typeof,e===A)return 11;if(e===N)return 14}return 2}function au(e,t){var n=e.alternate;return n===null?(n=nu(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ou(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ru(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case T:return su(n.children,a,o,t);case E:s=8,a|=8;break;case D:return e=nu(12,n,t,a|2),e.elementType=D,e.lanes=o,e;case j:return e=nu(13,n,t,a),e.elementType=j,e.lanes=o,e;case M:return e=nu(19,n,t,a),e.elementType=M,e.lanes=o,e;case ee:return cu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case O:s=10;break a;case k:s=9;break a;case A:s=11;break a;case N:s=14;break a;case P:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=nu(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function su(e,t,n,r){return e=nu(7,e,r,t),e.lanes=n,e}function cu(e,t,n,r){return e=nu(22,e,r,t),e.elementType=ee,e.lanes=n,e.stateNode={isHidden:!1},e}function lu(e,t,n){return e=nu(6,e,null,t),e.lanes=n,e}function uu(e,t,n){return t=nu(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function du(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function fu(e,t,n,r,i,a,o,s,c){return e=new du(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=nu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},oo(a),e}function pu(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:w,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function mu(e){if(!e)return Xi;e=e._reactInternals;a:{if(ct(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(ta(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(ta(n))return ia(e,n,t)}return t}function hu(e,t,n,r,i,a,o,s,c){return e=fu(n,r,!0,e,i,a,o,s,c),e.context=mu(null),n=e.current,r=Sl(),i=Cl(n),a=co(r,i),a.callback=t??null,lo(n,a,i),e.current.lanes=i,Bt(e,i,r),Tl(e,r),e}function gu(e,t,n,r){var i=t.current,a=Sl(),o=Cl(i);return n=mu(n),t.context===null?t.context=n:t.pendingContext=n,t=co(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=lo(i,t,o),e!==null&&(wl(e,i,o,a),uo(e,i,o)),o}function _u(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function vu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yu(e,t){vu(e,t),(e=e.alternate)&&vu(e,t)}function bu(){return null}var xu=typeof reportError==`function`?reportError:function(e){console.error(e)};function Su(e){this._internalRoot=e}Cu.prototype.render=Su.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));gu(e,t,null,null)},Cu.prototype.unmount=Su.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nl(function(){gu(null,e,null,null)}),t[Li]=null}};function Cu(e){this._internalRoot=e}Cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Jt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tn.length&&t!==0&&t<tn[n].priority;n++);tn.splice(n,0,e),n===0&&sn(e)}};function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Eu(){}function Du(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=_u(o);a.call(e)}}var o=hu(t,r,e,0,null,!1,!1,``,Eu);return e._reactRootContainer=o,e[Li]=o.current,di(e.nodeType===8?e.parentNode:e),Nl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=_u(c);s.call(e)}}var c=fu(e,0,!1,null,null,!1,!1,``,Eu);return e._reactRootContainer=c,e[Li]=c.current,di(e.nodeType===8?e.parentNode:e),Nl(function(){gu(t,c,n,r)}),c}function Ou(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=_u(o);s.call(e)}}gu(t,o,e,i)}else o=Du(n,t,e,i,r);return _u(o)}Gt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Nt(t.pendingLanes);n!==0&&(Ht(t,n|1),Tl(t,vt()),!(Xc&6)&&(ul=vt()+500,fa()))}break;case 13:Nl(function(){var t=io(e,1);t!==null&&wl(t,e,1,Sl())}),yu(e,1)}},Kt=function(e){if(e.tag===13){var t=io(e,134217728);t!==null&&wl(t,e,134217728,Sl()),yu(e,134217728)}},qt=function(e){if(e.tag===13){var t=Cl(e),n=io(e,t);n!==null&&wl(n,e,t,Sl()),yu(e,t)}},Jt=function(){return Ut},Yt=function(e,t){var n=Ut;try{return Ut=e,t()}finally{Ut=n}},Ve=function(e,t,n){switch(t){case`input`:if(ve(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Wi(i);if(!a)throw Error(r(90));pe(i),ve(i,a)}}}break;case`textarea`:Te(e,n);break;case`select`:t=n.value,t!=null&&Se(e,!!n.multiple,t,!1)}},qe=Ml,Je=Nl;var ku={usingClientEntryPoint:!1,Events:[Hi,Ui,Wi,Ge,Ke,Ml]},Au={findFiberByHostInstance:Vi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},ju={bundleType:Au.bundleType,version:Au.version,rendererPackageName:Au.rendererPackageName,rendererConfig:Au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ft(e),e===null?null:e.stateNode},findFiberByHostInstance:Au.findFiberByHostInstance||bu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mu.isDisabled&&Mu.supportsFiber)try{wt=Mu.inject(ju),Tt=Mu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ku,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wu(t))throw Error(r(200));return pu(e,t,null,n)},e.createRoot=function(e,t){if(!wu(e))throw Error(r(299));var n=!1,i=``,a=xu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=fu(e,1,!1,null,null,n,!1,i,a),e[Li]=t.current,di(e.nodeType===8?e.parentNode:e),new Su(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=ft(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Nl(e)},e.hydrate=function(e,t,n){if(!Tu(t))throw Error(r(200));return Ou(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!wu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=xu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=hu(t,null,e,1,n??null,a,!1,o,s),e[Li]=t.current,di(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Cu(t)},e.render=function(e,t,n){if(!Tu(t))throw Error(r(200));return Ou(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Tu(e))throw Error(r(40));return e._reactRootContainer?(Nl(function(){Ou(null,null,e,!1,function(){e._reactRootContainer=null,e[Li]=null})}),!0):!1},e.unstable_batchedUpdates=Ml,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Tu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Ou(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),bs=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=ys()})),xs={disabled:!1},Ss=L.createContext(null),Cs=function(e){return e.scrollTop},ws=l(bs()),Ts=`unmounted`,Es=`exited`,Ds=`entering`,Os=`entered`,ks=`exiting`,As=function(e){fs(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=Es,r.appearStatus=Ds):o=Os:o=t.unmountOnExit||t.mountOnEnter?Ts:Es,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Es}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=Ds):(n===`entering`||n===`entered`)&&(t=ks)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ws.findDOMNode(this);n&&Cs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Ts})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ws.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||xs.disabled){this.safeSetState({status:Os},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Ds},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Os},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ws.findDOMNode(this);if(!t||xs.disabled){this.safeSetState({status:Es},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:ks},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Es},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ws.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=us(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return L.createElement(Ss.Provider,{value:null},typeof n==`function`?n(e,r):L.cloneElement(L.Children.only(n),r))},t}(L.Component);As.contextType=Ss,As.propTypes={};function js(){}As.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:js,onEntering:js,onEntered:js,onExit:js,onExiting:js,onExited:js},As.UNMOUNTED=Ts,As.EXITED=Es,As.ENTERING=Ds,As.ENTERED=Os,As.EXITING=ks;var Ms=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ms(e,t)})},Ns=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return gs(e,t)})},Ps=function(e){fs(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&Cs(e),r&&(this.appliedClasses[t][n]=r,Ms(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Ns(e,r),i&&Ns(e,i),a&&Ns(e,a)},n.render=function(){var e=this.props;e.classNames;var t=us(e,[`classNames`]);return L.createElement(As,y({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(L.Component);Ps.defaultProps={classNames:``},Ps.propTypes={};function Fs(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Is(e,t){var n=function(e){return t&&(0,L.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&L.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Ls(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function Rs(e,t,n){return n[t]==null?e.props[t]:n[t]}function zs(e,t){return Is(e.children,function(n){return(0,L.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Rs(n,`appear`,e),enter:Rs(n,`enter`,e),exit:Rs(n,`exit`,e)})})}function Bs(e,t,n){var r=Is(e.children),i=Ls(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,L.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,L.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,L.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Rs(o,`exit`,e),enter:Rs(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,L.cloneElement)(o,{in:!1}):c&&s&&(0,L.isValidElement)(l)&&(i[a]=(0,L.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:Rs(o,`exit`,e),enter:Rs(o,`enter`,e)}))}}),i}var Vs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Hs={component:`div`,childFactory:function(e){return e}},Us=function(e){fs(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Fs(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?zs(e,r):Bs(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=Is(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=y({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=us(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Vs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?L.createElement(Ss.Provider,{value:i},a):L.createElement(Ss.Provider,{value:i},L.createElement(t,r,a))},t}(L.Component);Us.propTypes={},Us.defaultProps=Hs;var Ws=[];function Gs(e){L.useEffect(e,Ws)}var Ks=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function qs(){let e=os(Ks.create).current;return Gs(e.disposeEffect),e}function Js(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=L.useState(!1),f=Br(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=Br(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),L.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,z.jsx)(`span`,{className:f,style:p,children:(0,z.jsx)(`span`,{className:m})})}var Ys=Ur(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Xs=550,Zs=Lt`
44
+ 0% {
45
+ transform: scale(0);
46
+ opacity: 0.1;
47
+ }
48
+
49
+ 100% {
50
+ transform: scale(1);
51
+ opacity: 0.3;
52
+ }
53
+ `,Qs=Lt`
54
+ 0% {
55
+ opacity: 1;
56
+ }
57
+
58
+ 100% {
59
+ opacity: 0;
60
+ }
61
+ `,$s=Lt`
62
+ 0% {
63
+ transform: scale(1);
64
+ }
65
+
66
+ 50% {
67
+ transform: scale(0.92);
68
+ }
69
+
70
+ 100% {
71
+ transform: scale(1);
72
+ }
73
+ `,ec=V(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),tc=V(Js,{name:`MuiTouchRipple`,slot:`Ripple`})`
74
+ opacity: 0;
75
+ position: absolute;
76
+
77
+ &.${Ys.rippleVisible} {
78
+ opacity: 0.3;
79
+ transform: scale(1);
80
+ animation-name: ${Zs};
81
+ animation-duration: ${Xs}ms;
82
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
83
+ }
84
+
85
+ &.${Ys.ripplePulsate} {
86
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
87
+ }
88
+
89
+ & .${Ys.child} {
90
+ opacity: 1;
91
+ display: block;
92
+ width: 100%;
93
+ height: 100%;
94
+ border-radius: 50%;
95
+ background-color: currentColor;
96
+ }
97
+
98
+ & .${Ys.childLeaving} {
99
+ opacity: 0;
100
+ animation-name: ${Qs};
101
+ animation-duration: ${Xs}ms;
102
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
103
+ }
104
+
105
+ & .${Ys.childPulsate} {
106
+ position: absolute;
107
+ /* @noflip */
108
+ left: 0px;
109
+ top: 0;
110
+ animation-name: ${$s};
111
+ animation-duration: 2500ms;
112
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
113
+ animation-iteration-count: infinite;
114
+ animation-delay: 200ms;
115
+ }
116
+ `,nc=L.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=Io({props:e,name:`MuiTouchRipple`}),[o,s]=L.useState([]),c=L.useRef(0),l=L.useRef(null);L.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=L.useRef(!1),d=qs(),f=L.useRef(null),p=L.useRef(null),m=L.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,z.jsx)(tc,{classes:{ripple:Br(r.ripple,Ys.ripple),rippleVisible:Br(r.rippleVisible,Ys.rippleVisible),ripplePulsate:Br(r.ripplePulsate,Ys.ripplePulsate),child:Br(r.child,Ys.child),childLeaving:Br(r.childLeaving,Ys.childLeaving),childPulsate:Br(r.childPulsate,Ys.childPulsate)},timeout:Xs,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=L.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=L.useCallback(()=>{h({},{pulsate:!0})},[h]),_=L.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return L.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,z.jsx)(ec,{className:Br(Ys.root,r.root,i),ref:p,...a,children:(0,z.jsx)(Us,{component:null,exit:!0,children:o})})});function rc(e){return Hr(`MuiButtonBase`,e)}var ic=Ur(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),ac=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=ua({root:[`root`,t&&`disabled`,n&&`focusVisible`]},rc,i);return n&&r&&(a.root+=` ${r}`),a},oc=V(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${ic.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),sc=L.forwardRef(function(e,t){let n=Io({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:O=0,TouchRippleProps:k,touchRippleRef:A,type:j,...M}=n,N=L.useRef(null),P=cs(),ee=ts(P.ref,A),[te,F]=L.useState(!1);c&&te&&F(!1),L.useImperativeHandle(r,()=>({focusVisible:()=>{F(!0),N.current.focus()}}),[]);let ne=P.shouldMount&&!l&&!c;L.useEffect(()=>{te&&d&&!l&&P.pulsate()},[l,d,te,P]);let I=cc(P,`start`,S,u),re=cc(P,`stop`,g,u),ie=cc(P,`stop`,_,u),ae=cc(P,`stop`,w,u),oe=cc(P,`stop`,e=>{te&&e.preventDefault(),C&&C(e)},u),se=cc(P,`start`,D,u),ce=cc(P,`stop`,T,u),le=cc(P,`stop`,E,u),ue=cc(P,`stop`,e=>{is(e.target)||F(!1),m&&m(e)},!1),de=$o(e=>{N.current||=e.currentTarget,is(e.target)&&(F(!0),y&&y(e)),v&&v(e)}),fe=()=>{let e=N.current;return e?e.tagName===`BUTTON`?!1:!(e.tagName===`A`&&e.href):s&&s!==`button`},pe=$o(e=>{d&&!e.repeat&&te&&e.key===` `&&P.stop(e,()=>{P.start(e)}),e.target===e.currentTarget&&fe()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&fe()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),me=$o(e=>{d&&e.key===` `&&te&&!e.defaultPrevented&&P.stop(e,()=>{P.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&fe()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),he=s;he===`button`&&(M.href||M.to)&&(he=p);let ge={};if(he===`button`){let e=!!M.formAction;ge.type=j===void 0&&!e?`button`:j,ge.disabled=c}else !M.href&&!M.to&&(ge.role=`button`),c&&(ge[`aria-disabled`]=c);let _e=ts(t,N),ve={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:te},ye=ac(ve);return(0,z.jsxs)(oc,{as:he,className:Br(ye.root,o),ownerState:ve,onBlur:ue,onClick:h,onContextMenu:re,onFocus:de,onKeyDown:pe,onKeyUp:me,onMouseDown:I,onMouseLeave:oe,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ce,onTouchMove:le,onTouchStart:se,ref:_e,tabIndex:c?-1:O,type:j,...ge,...M,children:[a,ne?(0,z.jsx)(nc,{ref:ee,center:i,...k}):null]})});function cc(e,t,n,r=!1){return $o(i=>(n&&n(i),r||e[t](i),!0))}function lc(e){return typeof e.main==`string`}function uc(e,t=[]){if(!lc(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function dc(e=[]){return([,t])=>t&&uc(t,e)}function fc(e){return Hr(`MuiCircularProgress`,e)}Ur(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var pc=44,mc=Lt`
117
+ 0% {
118
+ transform: rotate(0deg);
119
+ }
120
+
121
+ 100% {
122
+ transform: rotate(360deg);
123
+ }
124
+ `,hc=Lt`
125
+ 0% {
126
+ stroke-dasharray: 1px, 200px;
127
+ stroke-dashoffset: 0;
128
+ }
129
+
130
+ 50% {
131
+ stroke-dasharray: 100px, 200px;
132
+ stroke-dashoffset: -15px;
133
+ }
134
+
135
+ 100% {
136
+ stroke-dasharray: 1px, 200px;
137
+ stroke-dashoffset: -126px;
138
+ }
139
+ `,gc=typeof mc==`string`?null:It`
140
+ animation: ${mc} 1.4s linear infinite;
141
+ `,_c=typeof hc==`string`?null:It`
142
+ animation: ${hc} 1.4s ease-in-out infinite;
143
+ `,vc=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return ua({root:[`root`,n,`color${No(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${No(n)}`,i&&`circleDisableShrink`]},fc,t)},yc=V(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${No(n.color)}`]]}})(Fo(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:gc||{animation:`${mc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(dc()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),bc=V(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),xc=V(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${No(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Fo(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:_c||{animation:`${hc} 1.4s ease-in-out infinite`}}]}))),H=V(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(Fo(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),Sc=L.forwardRef(function(e,t){let n=Io({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d=`indeterminate`,...f}=n,p={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d,enableTrackSlot:o},m=vc(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((pc-l)/2);h.strokeDasharray=e.toFixed(3),_[`aria-valuenow`]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform=`rotate(-90deg)`}return(0,z.jsx)(yc,{className:Br(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,z.jsxs)(bc,{className:m.svg,ownerState:p,viewBox:`${pc/2} ${pc/2} ${pc} ${pc}`,children:[o?(0,z.jsx)(H,{className:m.track,ownerState:p,cx:pc,cy:pc,r:(pc-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,z.jsx)(xc,{className:m.circle,style:h,ownerState:p,cx:pc,cy:pc,r:(pc-l)/2,fill:`none`,strokeWidth:l})]})})});function Cc(e){return Hr(`MuiButton`,e)}var wc=Ur(`MuiButton`,`root.text.textInherit.textPrimary.textSecondary.textSuccess.textError.textInfo.textWarning.outlined.outlinedInherit.outlinedPrimary.outlinedSecondary.outlinedSuccess.outlinedError.outlinedInfo.outlinedWarning.contained.containedInherit.containedPrimary.containedSecondary.containedSuccess.containedError.containedInfo.containedWarning.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.textSizeSmall.textSizeMedium.textSizeLarge.outlinedSizeSmall.outlinedSizeMedium.outlinedSizeLarge.containedSizeSmall.containedSizeMedium.containedSizeLarge.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.iconSizeSmall.iconSizeMedium.iconSizeLarge.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),Tc=L.createContext({}),Ec=L.createContext(void 0),Dc=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=ua({root:[`root`,o&&`loading`,a,`${a}${No(t)}`,`size${No(i)}`,`${a}Size${No(i)}`,`color${No(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${No(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${No(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${No(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Cc,c);return{...c,...l}},Oc=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],kc=V(sc,{shouldForwardProp:e=>To(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${No(n.color)}`],t[`size${No(n.size)}`],t[`${n.variant}Size${No(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Fo(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${wc.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&e.loadingPosition===`start`,style:{"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`}}},{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${wc.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${wc.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${wc.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(dc()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${wc.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${wc.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${wc.loading}`]:{color:`transparent`}}}]}})),Ac=V(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${No(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...Oc]})),jc=V(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${No(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Oc]})),Mc=V(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),Nc=V(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),Pc=L.forwardRef(function(e,t){let n=L.useContext(Tc),r=L.useContext(Ec),i=Io({props:ni(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=Zo(h),T=_??(0,z.jsx)(Sc,{"aria-labelledby":w,color:`inherit`,size:16}),E={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},D=Dc(E),O=(b||g&&v===`start`)&&(0,z.jsx)(Ac,{className:D.startIcon,ownerState:E,children:b||(0,z.jsx)(Nc,{className:D.loadingIconPlaceholder,ownerState:E})}),k=(f||g&&v===`end`)&&(0,z.jsx)(jc,{className:D.endIcon,ownerState:E,children:f||(0,z.jsx)(Nc,{className:D.loadingIconPlaceholder,ownerState:E})}),A=r||``,j=typeof g==`boolean`?(0,z.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,z.jsx)(Mc,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:M,...N}=D;return(0,z.jsxs)(kc,{ownerState:E,className:Br(n.className,D.root,c,A),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:Br(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:N,children:[O,v!==`end`&&j,a,v===`end`&&j,k]})}),Fc=V(Pc)({fontSize:`0.9em`,marginLeft:8,minWidth:32,height:32,"& span":{"& svg":{width:`1.3em !important`,height:`1.3em !important`}}}),Ic=({label:e,onClick:t,disabled:n,title:r})=>(0,z.jsx)(Fc,{title:r,onClick:t,disabled:n,size:`small`,variant:`contained`,children:e});Ic.propTypes={disabled:R.bool,label:R.oneOfType([R.string,R.object]),onClick:R.func,title:R.string},Ic.defaultProps={disabled:!1,label:`Add`,onClick:()=>{},title:``};var U=e=>typeof e==`string`,Lc=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Rc=e=>e==null?``:``+e,zc=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Bc=/###/g,Vc=e=>e&&e.indexOf(`###`)>-1?e.replace(Bc,`.`):e,Hc=e=>!e||U(e),Uc=(e,t,n)=>{let r=U(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Hc(e))return{};let t=Vc(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Hc(e)?{}:{obj:e,k:Vc(r[i])}},Wc=(e,t,n)=>{let{obj:r,k:i}=Uc(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Uc(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Uc(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Gc=(e,t,n,r)=>{let{obj:i,k:a}=Uc(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Kc=(e,t)=>{let{obj:n,k:r}=Uc(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},qc=(e,t,n)=>{let r=Kc(e,n);return r===void 0?Kc(t,n):r},Jc=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?U(e[r])||e[r]instanceof String||U(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Jc(e[r],t[r],n):e[r]=t[r]);return e},Yc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Xc={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},Zc=e=>U(e)?e.replace(/[&<>"'\/]/g,e=>Xc[e]):e,Qc=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},$c=[` `,`,`,`?`,`!`,`;`],el=new Qc(20),tl=(e,t,n)=>{t||=``,n||=``;let r=$c.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=el.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},nl=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},rl=e=>e?.replace(/_/g,`-`),il={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},al=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||il,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(U(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},ol=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},sl=class extends ol{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):U(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Kc(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!U(n)?s:nl(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Wc(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(U(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Kc(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Jc(s,n,i):s={...s,...n},Wc(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},cl={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},ll=Symbol(`i18next/PATH_KEY`);function ul(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===ll?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function dl(e,t){let{[ll]:n}=e(ul()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var fl={},pl=e=>!U(e)&&typeof e!=`boolean`&&typeof e!=`number`,ml=class e extends ol{constructor(e,t={}){super(),zc([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=al.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=pl(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!tl(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:U(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:U(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=dl(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?dl(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!U(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=pl(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(U(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:pl(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&U(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=U(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!U(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=U(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=cl.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return U(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?dl(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!U(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(U(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!fl[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(fl[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!U(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},hl=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=al.create(`languageUtils`)}getScriptPartFromCode(e){if(e=rl(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=rl(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(U(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),U(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return U(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):U(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},gl={zero:0,one:1,two:2,few:3,many:4,other:5},_l={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},vl=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=al.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=rl(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),_l;if(!e.match(/-|_/))return _l;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>gl[e]-gl[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},yl=(e,t,n,r=`.`,i=!0)=>{let a=qc(e,t,n);return!a&&i&&U(n)&&(a=nl(e,n,r),a===void 0&&(a=nl(t,n,r))),a},bl=e=>e.replace(/\$/g,`$$$$`),xl=class{constructor(e={}){this.logger=al.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Zc:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?Yc(i):a||`{{`,this.suffix=o?Yc(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Yc(d):f||Yc(`$t(`),this.nestingSuffix=p?Yc(p):m||Yc(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=yl(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(yl(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>bl(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?bl(this.escape(e)):bl(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=U(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !U(a)&&!this.useRawValueToEscape&&(a=Rc(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${Yc(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!U(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!U(i))return i;U(i)||(i=Rc(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},Sl=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Cl=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(rl(r),i),t[o]=s),s(n)}},wl=e=>(t,n,r)=>e(rl(n),r)(t),Tl=class{constructor(e={}){this.logger=al.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Cl:wl;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Cl(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Sl(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},El=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Dl=class extends ol{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=al.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Gc(n.loaded,[i],a),El(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();U(e)&&(e=this.languageUtils.toResolveHierarchy(e)),U(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Ol=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),U(e[1])&&(t.defaultValue=e[1]),U(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),kl=e=>(U(e.ns)&&(e.ns=[e.ns]),U(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),U(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),Al=()=>{},jl=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Ml=`__i18next_supportNoticeShown`,Nl=()=>!!(typeof globalThis<`u`&&globalThis[Ml]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),Pl=()=>{typeof globalThis<`u`&&(globalThis[Ml]=!0)},Fl=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),Il=class e extends ol{constructor(e={},t){if(super(),this.options=kl(e),this.services={},this.logger=al,this.modules={external:[]},jl(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(U(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=Ol();this.options={...n,...this.options,...kl(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Fl(this)&&!Nl()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),Pl());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?al.init(r(this.modules.logger),this.options):al.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Tl;let t=new hl(this.options);this.store=new sl(this.options.resources,this.options);let i=this.services;i.logger=al,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new vl(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new xl(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Dl(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new ml(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=Al,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=Lc(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Al){let n=t,r=U(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Lc();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Al,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&cl.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Lc();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=U(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(U(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=dl(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=dl(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=dl(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return U(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Lc();return this.options.ns?(U(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Lc();U(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new hl(Ol());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Al){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new sl(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Ol().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new xl(n)}return a.translator=new ml(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();Il.createInstance,Il.dir,Il.init,Il.loadResources,Il.reloadResources,Il.use,Il.changeLanguage,Il.getFixedT,Il.t,Il.exists,Il.setDefaultNamespace,Il.hasLoadedNamespace,Il.loadNamespaces,Il.loadLanguages,Il.init({fallbackLng:`en`,lng:`en`,debug:!0,resources:{en:{translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},ebsr:{part:`Part {{index}}`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`},imageClozeAssociation:{reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`}},graphing:{point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,redo:`Redo`,reset:`Reset`},mathInline:{primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`}},es:{translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},ebsr:{part:`Parte {{index}}`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`},imageClozeAssociation:{reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`}},graphing:{point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,redo:`Rehacer`,reset:`Reiniciar`},mathInline:{primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`}}}});var Ll={translator:{...Il,t:(e,t)=>{let{lng:n}=t;switch(n){case`en_US`:case`en-US`:t.lng=`en`;break;case`es_ES`:case`es-ES`:case`es_MX`:case`es-MX`:t.lng=`es`;break;default:break}return Il.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},Rl=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaIAAAB6CAYAAAD9EVeZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA35pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoyQzdFRkQ1NzFFMjA2ODExOTRGRkRERDNFOEEwRDAxQyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0M0FGNEM3RUQwRDkxMUU0OTU5RUVDMkZDN0NCQzRBRCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0M0FGNEM3REQwRDkxMUU0OTU5RUVDMkZDN0NCQzRBRCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNCAoTWFjaW50b3NoKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjY1QUZDN0I3MEUyMDY4MTE4MDgzOUE0REM2MTYyOUQyIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6NjFjZTg0NmMtMTg3ZS0xMTc4LWE4YmItZWNkODU4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`,{translator:zl}=Ll,Bl=41,Vl=42,Hl=V(`svg`)({fill:`black`,cursor:`pointer`,transition:`opacity 100ms linear`,"&:hover":{opacity:`0.5`}}),Ul=()=>(0,z.jsxs)(Hl,{fill:`#000000`,height:`24`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,z.jsx)(`path`,{d:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z`}),(0,z.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]}),Wl={pf:0,lff:1,lef:2,lfe:3,lee:4,rfn:5,rfp:6,ren:7,rep:8},Gl=V(`a`)(({$iconIndex:e,$active:t})=>({display:`inline-block`,width:Vl,height:Bl,position:`relative`,top:`1px`,cursor:`pointer`,background:`url(${Rl}) -${e*Vl}px 0px`,...t&&{backgroundPosition:`-${e*Vl}px -${2*Bl}px`},"&:hover":{textDecoration:`none`,backgroundPosition:`-${e*Vl}px -${Bl}px`},...t&&{"&:hover":{backgroundPosition:`-${e*Vl}px -${2*Bl}px`}}})),Kl=e=>{let{iconKey:t,active:n,onClick:r}=e;return(0,z.jsx)(`span`,{role:`presentation`,onClick:r,children:(0,z.jsx)(Gl,{$iconIndex:Wl[t.toLowerCase()]??0,$active:n,children:`\xA0`})},t)};Kl.propTypes={iconKey:R.string.isRequired,active:R.bool,onClick:R.func};var ql=Kl,Jl=V(`div`)({width:`55%`,padding:`1px`,"-webkit-touch-callout":`none`,"-webkit-user-select":`none`,"-khtml-user-select":`none`,"-moz-user-select":`none`,"-ms-user-select":`none`,"user-select":`none`}),Yl=({selectPoint:e,selected:t,icons:n})=>(0,z.jsx)(Jl,{children:n.map(n=>{let r=n===t,i=r?()=>{}:e.bind(null,n);return(0,z.jsx)(ql,{iconKey:n.toLowerCase(),active:r,onClick:i},n.toLowerCase())})});Yl.propTypes={selectPoint:R.func.isRequired,selected:R.string,icons:R.array};var Xl=V(`div`)({display:`flex`,justifyContent:`space-between`,borderRadius:`4px`,padding:`1px`}),Zl=V(`div`)({display:`flex`,paddingTop:`7px`}),Ql=V(`span`)({position:`relative`,top:`3px`,width:`30px`}),$l=class e extends L.Component{static defaultProps={showDeleteButton:!1,elementType:e.DEFAULT_TYPE,icons:[`pf`,`lff`,`lef`,`lfe`,`lee`,`rfn`,`rfp`,`ren`,`rep`]};static propTypes={elementType:R.string,showDeleteButton:R.bool,onDeleteClick:R.func.isRequired,onElementType:R.func.isRequired,onUndoElement:R.func.isRequired,onClearElements:R.func.isRequired,icons:R.array,language:R.string};render(){let{elementType:e,showDeleteButton:t,onDeleteClick:n,onUndoElement:r,onClearElements:i,icons:a,onElementType:o,language:s}=this.props;return(0,z.jsxs)(Xl,{children:[(0,z.jsx)(Yl,{selected:e,selectPoint:o,icons:a}),(0,z.jsxs)(Zl,{children:[t&&(0,z.jsx)(Ql,{onClick:n,children:(0,z.jsx)(Ul,{})}),(0,z.jsx)(Ic,{onClick:r,label:zl.t(`common:undo`,{lng:s})}),(0,z.jsx)(Ic,{onClick:i,label:zl.t(`numberLine.clearAll`,{lng:s})})]})]})}};$l.DEFAULT_TYPE=`pf`;var eu={epsilon:1e-12,matrix:`Matrix`,number:`number`,precision:64,predictable:!1,randomSeed:null};function tu(e){"@babel/helpers - typeof";return tu=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tu(e)}function nu(e){return typeof e==`number`}function ru(e){return e&&e.constructor.prototype.isBigNumber===!0||!1}function iu(e){return e&&tu(e)===`object`&&Object.getPrototypeOf(e).isComplex===!0||!1}function au(e){return e&&tu(e)===`object`&&Object.getPrototypeOf(e).isFraction===!0||!1}function ou(e){return e&&e.constructor.prototype.isUnit===!0||!1}function su(e){return typeof e==`string`}var cu=Array.isArray;function lu(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function uu(e){return Array.isArray(e)||lu(e)}function du(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function fu(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function pu(e){return e&&e.constructor.prototype.isRange===!0||!1}function mu(e){return e&&e.constructor.prototype.isIndex===!0||!1}function hu(e){return typeof e==`boolean`}function gu(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function _u(e){return e&&e.constructor.prototype.isHelp===!0||!1}function vu(e){return typeof e==`function`}function yu(e){return e instanceof Date}function bu(e){return e instanceof RegExp}function xu(e){return!!(e&&tu(e)===`object`&&e.constructor===Object&&!iu(e)&&!au(e))}function Su(e){return e===null}function Cu(e){return e===void 0}function wu(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Tu(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function Eu(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Du(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ou(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function ku(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Au(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function ju(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function Mu(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function Nu(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function Pu(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function Fu(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Iu(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function Lu(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ru(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function zu(e){return e&&e.constructor.prototype.isChain===!0||!1}function Bu(e){var t=tu(e);return t===`object`?e===null?`null`:Array.isArray(e)?`Array`:e instanceof Date?`Date`:e instanceof RegExp?`RegExp`:ru(e)?`BigNumber`:iu(e)?`Complex`:au(e)?`Fraction`:lu(e)?`Matrix`:ou(e)?`Unit`:mu(e)?`Index`:pu(e)?`Range`:gu(e)?`ResultSet`:Nu(e)?e.type:zu(e)?`Chain`:_u(e)?`Help`:`Object`:t===`function`?`Function`:t}function Vu(e){"@babel/helpers - typeof";return Vu=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Vu(e)}function Hu(e){var t=Vu(e);if(t===`number`||t===`string`||t===`boolean`||e==null)return e;if(typeof e.clone==`function`)return e.clone();if(Array.isArray(e))return e.map(function(e){return Hu(e)});if(e instanceof Date)return new Date(e.valueOf());if(ru(e))return e;if(e instanceof RegExp)throw TypeError(`Cannot clone `+e);return Uu(e,Hu)}function Uu(e,t){var n={};for(var r in e)Ku(e,r)&&(n[r]=t(e[r]));return n}function Wu(e,t){for(var n in t)Ku(t,n)&&(e[n]=t[n]);return e}function Gu(e,t){var n,r,i;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,i=e.length;r<i;r++)if(!Gu(e[r],t[r]))return!1;return!0}else if(typeof e==`function`)return e===t;else if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!Gu(e[n],t[n]))return!1;for(n in t)if(!(n in e)||!Gu(e[n],t[n]))return!1;return!0}else return e===t}function Ku(e,t){return e&&Object.hasOwnProperty.call(e,t)}function qu(e,t){for(var n={},r=0;r<t.length;r++){var i=t[r],a=e[i];a!==void 0&&(n[i]=a)}return n}var Ju=[`Matrix`,`Array`],Yu=[`number`,`BigNumber`,`Fraction`];function Xu(){return Xu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xu.apply(this,arguments)}var Zu=function(e){if(e)throw Error(`The global config is readonly.
144
+ Please create a mathjs instance if you want to change the default configuration.
145
+ Example:
146
+
147
+ import { create, all } from 'mathjs';
148
+ const mathjs = create(all);
149
+ mathjs.config({ number: 'BigNumber' });
150
+ `);return Object.freeze(eu)};Xu(Zu,eu,{MATRIX_OPTIONS:Ju,NUMBER_OPTIONS:Yu});var Qu=o(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define([],r):typeof e==`object`?t.exports=r():n.typed=r()})(e,function(){function e(){return!0}function t(){return!1}function n(){}function r(){var i=[{name:`number`,test:function(e){return typeof e==`number`}},{name:`string`,test:function(e){return typeof e==`string`}},{name:`boolean`,test:function(e){return typeof e==`boolean`}},{name:`Function`,test:function(e){return typeof e==`function`}},{name:`Array`,test:Array.isArray},{name:`Date`,test:function(e){return e instanceof Date}},{name:`RegExp`,test:function(e){return e instanceof RegExp}},{name:`Object`,test:function(e){return typeof e==`object`&&!!e&&e.constructor===Object}},{name:`null`,test:function(e){return e===null}},{name:`undefined`,test:function(e){return e===void 0}}],a={name:`any`,test:e},o=[],s=[],c={types:i,conversions:s,ignore:o};function l(e){var t=fe(c.types,function(t){return t.name===e});if(t)return t;if(e===`any`)return a;var n=fe(c.types,function(t){return t.name.toLowerCase()===e.toLowerCase()});throw TypeError(`Unknown type "`+e+`"`+(n?`. Did you mean "`+n.name+`"?`:``))}function u(e){return e===a?999:c.types.indexOf(e)}function d(e){var t=fe(c.types,function(t){return t.test(e)});if(t)return t.name;throw TypeError(`Value has unknown type. Value: `+e)}function f(e,t){if(!e.signatures)throw TypeError(`Function is no typed-function`);var n;if(typeof t==`string`){n=t.split(`,`);for(var r=0;r<n.length;r++)n[r]=n[r].trim()}else if(Array.isArray(t))n=t;else throw TypeError(`String array or a comma separated string expected`);var i=n.join(`,`),a=e.signatures[i];if(a)return a;throw TypeError(`Signature not found (signature: `+(e.name||`unnamed`)+`(`+n.join(`, `)+`))`)}function p(e,t){var n=d(e);if(t===n)return e;for(var r=0;r<c.conversions.length;r++){var i=c.conversions[r];if(i.from===n&&i.to===t)return i.convert(e)}throw Error(`Cannot convert from `+n+` to `+t)}function m(e){return e.map(function(e){var t=e.types.map(C);return(e.restParam?`...`:``)+t.join(`|`)}).join(`,`)}function h(e,t){var n=e.indexOf(`...`)===0,r=(n?e.length>3?e.slice(3):`any`:e).split(`|`).map(re).filter(ie).filter(I),i=j(t,r),a=r.map(function(e){var t=l(e);return{name:e,typeIndex:u(t),test:t.test,conversion:null,conversionIndex:-1}}),o=i.map(function(e){var n=l(e.from);return{name:e.from,typeIndex:u(n),test:n.test,conversion:e,conversionIndex:t.indexOf(e)}});return{types:a.concat(o),restParam:n}}function g(e,t,n){var r=[];return e.trim()!==``&&(r=e.split(`,`).map(re).map(function(e,t,r){var i=h(e,n);if(i.restParam&&t!==r.length-1)throw SyntaxError(`Unexpected rest parameter "`+e+`": only allowed for the last parameter`);return i})),r.some(oe)?null:{params:r,fn:t}}function _(e){var t=ce(e);return t?t.restParam:!1}function v(e){return e.types.some(function(e){return e.conversion!=null})}function y(t){if(!t||t.types.length===0)return e;if(t.types.length===1)return l(t.types[0].name).test;if(t.types.length===2){var n=l(t.types[0].name).test,r=l(t.types[1].name).test;return function(e){return n(e)||r(e)}}else{var i=t.types.map(function(e){return l(e.name).test});return function(e){for(var t=0;t<i.length;t++)if(i[t](e))return!0;return!1}}}function b(e){var t,n,r;if(_(e)){t=se(e).map(y);var i=t.length,a=y(ce(e)),o=function(e){for(var t=i;t<e.length;t++)if(!a(e[t]))return!1;return!0};return function(e){for(var n=0;n<t.length;n++)if(!t[n](e[n]))return!1;return o(e)&&e.length>=i+1}}else if(e.length===0)return function(e){return e.length===0};else if(e.length===1)return n=y(e[0]),function(e){return n(e[0])&&e.length===1};else if(e.length===2)return n=y(e[0]),r=y(e[1]),function(e){return n(e[0])&&r(e[1])&&e.length===2};else return t=e.map(y),function(e){for(var n=0;n<t.length;n++)if(!t[n](e[n]))return!1;return e.length===t.length}}function x(e,t){return t<e.params.length?e.params[t]:_(e.params)?ce(e.params):null}function S(e,t,n){var r=x(e,t);return(r?n?r.types.filter(w):r.types:[]).map(C)}function C(e){return e.name}function w(e){return e.conversion===null||e.conversion===void 0}function T(e,t){var n=pe(me(e,function(e){return S(e,t,!1)}));return n.indexOf(`any`)===-1?n:[`any`]}function E(e,t,n){var r,i,a=e||`unnamed`,o=n,s;for(s=0;s<t.length;s++){var c=o.filter(function(e){var n=y(x(e,s));return(s<e.params.length||_(e.params))&&n(t[s])});if(c.length===0){if(i=T(o,s),i.length>0){var l=d(t[s]);return r=TypeError(`Unexpected type of argument in function `+a+` (expected: `+i.join(` or `)+`, actual: `+l+`, index: `+s+`)`),r.data={category:`wrongType`,fn:a,index:s,actual:l,expected:i},r}}else o=c}var u=o.map(function(e){return _(e.params)?1/0:e.params.length});if(t.length<Math.min.apply(null,u))return i=T(o,s),r=TypeError(`Too few arguments in function `+a+` (expected: `+i.join(` or `)+`, index: `+t.length+`)`),r.data={category:`tooFewArgs`,fn:a,index:t.length,expected:i},r;var f=Math.max.apply(null,u);return t.length>f?(r=TypeError(`Too many arguments in function `+a+` (expected: `+f+`, actual: `+t.length+`)`),r.data={category:`tooManyArgs`,fn:a,index:t.length,expectedLength:f},r):(r=TypeError(`Arguments of type "`+t.join(`, `)+`" do not match any of the defined signatures of function `+a+`.`),r.data={category:`mismatch`,actual:t.map(d)},r)}function D(e){for(var t=999,n=0;n<e.types.length;n++)w(e.types[n])&&(t=Math.min(t,e.types[n].typeIndex));return t}function O(e){for(var t=999,n=0;n<e.types.length;n++)w(e.types[n])||(t=Math.min(t,e.types[n].conversionIndex));return t}function k(e,t){var n=e.restParam-t.restParam;return n!==0||(n=v(e)-v(t),n!==0)||(n=D(e)-D(t),n!==0)?n:O(e)-O(t)}function A(e,t){var n=Math.min(e.params.length,t.params.length),r,i=e.params.some(v)-t.params.some(v);if(i!==0)return i;for(r=0;r<n;r++)if(i=v(e.params[r])-v(t.params[r]),i!==0)return i;for(r=0;r<n;r++)if(i=k(e.params[r],t.params[r]),i!==0)return i;return e.params.length-t.params.length}function j(e,t){var n={};return e.forEach(function(e){t.indexOf(e.from)===-1&&t.indexOf(e.to)!==-1&&!n[e.from]&&(n[e.from]=e)}),Object.keys(n).map(function(e){return n[e]})}function M(e,t){var n=t;if(e.some(v)){var r=_(e),i=e.map(N);n=function(){for(var e=[],n=r?arguments.length-1:arguments.length,a=0;a<n;a++)e[a]=i[a](arguments[a]);return r&&(e[n]=arguments[n].map(i[n])),t.apply(this,e)}}var a=n;if(_(e)){var o=e.length-1;a=function(){return n.apply(this,le(arguments,0,o).concat([le(arguments,o)]))}}return a}function N(e){var t,n,r,i,a=[],o=[];switch(e.types.forEach(function(e){e.conversion&&(a.push(l(e.conversion.from).test),o.push(e.conversion.convert))}),o.length){case 0:return function(e){return e};case 1:return t=a[0],r=o[0],function(e){return t(e)?r(e):e};case 2:return t=a[0],n=a[1],r=o[0],i=o[1],function(e){return t(e)?r(e):n(e)?i(e):e};default:return function(e){for(var t=0;t<o.length;t++)if(a[t](e))return o[t](e);return e}}}function P(e){var t={};return e.forEach(function(e){e.params.some(v)||ee(e.params,!0).forEach(function(n){t[m(n)]=e.fn})}),t}function ee(e,t){function n(e,r,i){if(r<e.length){var a=e[r],o=t?a.types.filter(w):a.types,s;if(a.restParam){var c=o.filter(w);s=c.length<o.length?[c,o]:[o]}else s=o.map(function(e){return[e]});return me(s,function(t){return n(e,r+1,i.concat([t]))})}else return[i.map(function(t,n){return{types:t,restParam:n===e.length-1&&_(e)}})]}return n(e,0,[])}function te(e,t){for(var n=Math.max(e.params.length,t.params.length),r=0;r<n;r++)if(!de(S(e,r,!0),S(t,r,!0)))return!1;var i=e.params.length,a=t.params.length,o=_(e.params),s=_(t.params);return o?s?i===a:a>=i:s?i>=a:i===a}function F(e,r){if(Object.keys(r).length===0)throw SyntaxError(`No signatures provided`);var i=[];Object.keys(r).map(function(e){return g(e,r[e],c.conversions)}).filter(ae).forEach(function(e){var t=fe(i,function(t){return te(t,e)});if(t)throw TypeError(`Conflicting signatures "`+m(t.params)+`" and "`+m(e.params)+`".`);i.push(e)});var a=me(i,function(e){return(e?ee(e.params,!1):[]).map(function(t){return{params:t,fn:e.fn}})}).filter(ae);a.sort(A);var o=a[0]&&a[0].params.length<=2&&!_(a[0].params),s=a[1]&&a[1].params.length<=2&&!_(a[1].params),l=a[2]&&a[2].params.length<=2&&!_(a[2].params),u=a[3]&&a[3].params.length<=2&&!_(a[3].params),d=a[4]&&a[4].params.length<=2&&!_(a[4].params),f=a[5]&&a[5].params.length<=2&&!_(a[5].params),p=o&&s&&l&&u&&d&&f,h=a.map(function(e){return b(e.params)}),v=o?y(a[0].params[0]):t,x=s?y(a[1].params[0]):t,S=l?y(a[2].params[0]):t,C=u?y(a[3].params[0]):t,w=d?y(a[4].params[0]):t,T=f?y(a[5].params[0]):t,E=o?y(a[0].params[1]):t,D=s?y(a[1].params[1]):t,O=l?y(a[2].params[1]):t,k=u?y(a[3].params[1]):t,j=d?y(a[4].params[1]):t,N=f?y(a[5].params[1]):t,F=a.map(function(e){return M(e.params,e.fn)}),ne=o?F[0]:n,I=s?F[1]:n,re=l?F[2]:n,ie=u?F[3]:n,oe=d?F[4]:n,se=f?F[5]:n,ce=o?a[0].params.length:-1,le=s?a[1].params.length:-1,ue=l?a[2].params.length:-1,de=u?a[3].params.length:-1,pe=d?a[4].params.length:-1,he=f?a[5].params.length:-1,ge=p?6:0,_e=a.length,ve=function(){"use strict";for(var t=ge;t<_e;t++)if(h[t](arguments))return F[t].apply(this,arguments);return c.onMismatch(e,arguments,a)},ye=function e(t,n){"use strict";return arguments.length===ce&&v(t)&&E(n)?ne.apply(e,arguments):arguments.length===le&&x(t)&&D(n)?I.apply(e,arguments):arguments.length===ue&&S(t)&&O(n)?re.apply(e,arguments):arguments.length===de&&C(t)&&k(n)?ie.apply(e,arguments):arguments.length===pe&&w(t)&&j(n)?oe.apply(e,arguments):arguments.length===he&&T(t)&&N(n)?se.apply(e,arguments):ve.apply(e,arguments)};try{Object.defineProperty(ye,"name",{value:e})}catch{}return ye.signatures=P(a),ye}function ne(e,t,n){throw E(e,t,n)}function I(e){return c.ignore.indexOf(e)===-1}function re(e){return e.trim()}function ie(e){return!!e}function ae(e){return e!==null}function oe(e){return e.types.length===0}function se(e){return e.slice(0,e.length-1)}function ce(e){return e[e.length-1]}function le(e,t,n){return Array.prototype.slice.call(e,t,n)}function ue(e,t){return e.indexOf(t)!==-1}function de(e,t){for(var n=0;n<e.length;n++)if(ue(t,e[n]))return!0;return!1}function fe(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function pe(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return Object.keys(t)}function me(e,t){return Array.prototype.concat.apply([],e.map(t))}function he(e){for(var t=``,n=0;n<e.length;n++){var r=e[n];if((typeof r.signatures==`object`||typeof r.signature==`string`)&&r.name!==``){if(t===``)t=r.name;else if(t!==r.name){var i=Error(`Function names do not match (expected: `+t+`, actual: `+r.name+`)`);throw i.data={actual:r.name,expected:t},i}}}return t}function ge(e){var t,n={};function r(e,r){if(n.hasOwnProperty(e)&&r!==n[e])throw t=Error(`Signature "`+e+`" is defined twice`),t.data={signature:e},t}for(var i=0;i<e.length;i++){var a=e[i];if(typeof a.signatures==`object`)for(var o in a.signatures)a.signatures.hasOwnProperty(o)&&(r(o,a.signatures[o]),n[o]=a.signatures[o]);else if(typeof a.signature==`string`)r(a.signature,a),n[a.signature]=a;else throw t=TypeError(`Function is no typed-function (index: `+i+`)`),t.data={index:i},t}return n}return c=F(`typed`,{"string, Object":F,Object:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return F(he(t),e)},"...Function":function(e){return F(he(e),ge(e))},"string, ...Function":function(e,t){return F(e,ge(t))}}),c.create=r,c.types=i,c.conversions=s,c.ignore=o,c.onMismatch=ne,c.throwMismatchError=ne,c.createError=E,c.convert=p,c.find=f,c.addType=function(e,t){if(!e||typeof e.name!=`string`||typeof e.test!=`function`)throw TypeError(`Object with properties {name: string, test: function} expected`);if(t!==!1){for(var n=0;n<c.types.length;n++)if(c.types[n].name===`Object`){c.types.splice(n,0,e);return}}c.types.push(e)},c.addConversion=function(e){if(!e||typeof e.from!=`string`||typeof e.to!=`string`||typeof e.convert!=`function`)throw TypeError(`Object with properties {from: string, to: string, convert: function} expected`);c.conversions.push(e)},c}return r()})}));function $u(e){return typeof e==`boolean`?!0:isFinite(e)?e===Math.round(e):!1}var ed=Math.sign||function(e){return e>0?1:e<0?-1:0},td=Math.log2||function(e){return Math.log(e)/Math.LN2},nd=Math.log10||function(e){return Math.log(e)/Math.LN10},rd=Math.log1p||function(e){return Math.log(e+1)},id=Math.cbrt||function(e){if(e===0)return e;var t=e<0,n;return t&&(e=-e),isFinite(e)?(n=Math.exp(Math.log(e)/3),n=(e/(n*n)+2*n)/3):n=e,t?-n:n},ad=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function od(e,t){if(typeof t==`function`)return t(e);if(e===1/0)return`Infinity`;if(e===-1/0)return`-Infinity`;if(isNaN(e))return`NaN`;var n=`auto`,r;switch(t&&(t.notation&&(n=t.notation),nu(t)?r=t:nu(t.precision)&&(r=t.precision)),n){case`fixed`:return ld(e,r);case`exponential`:return ud(e,r);case`engineering`:return cd(e,r);case`auto`:return dd(e,r,t&&t).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return e===`.`?t:e+t});default:throw Error(`Unknown notation "`+n+`". Choose "auto", "exponential", or "fixed".`)}}function sd(e){var t=String(e).toLowerCase().match(/^0*?(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw SyntaxError(`Invalid number `+e);var n=t[1],r=t[2],i=parseFloat(t[4]||`0`),a=r.indexOf(`.`);i+=a===-1?r.length-1:a-1;var o=r.replace(`.`,``).replace(/^0*/,function(e){return i-=e.length,``}).replace(/0*$/,``).split(``).map(function(e){return parseInt(e)});return o.length===0&&(o.push(0),i++),{sign:n,coefficients:o,exponent:i}}function cd(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=fd(sd(e),t),r=n.exponent,i=n.coefficients,a=r%3==0?r:r<0?r-3-r%3:r-r%3;if(nu(t))for(;t>i.length||r-a+1>i.length;)i.push(0);else for(var o=Math.abs(r-a)-(i.length-1),s=0;s<o;s++)i.push(0);for(var c=Math.abs(r-a),l=1;c>0;)l++,c--;var u=i.slice(l).join(``),d=nu(t)&&u.length||u.match(/[1-9]/)?`.`+u:``,f=i.slice(0,l).join(``)+d+`e`+(r>=0?`+`:``)+a.toString();return n.sign+f}function ld(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=sd(e),r=typeof t==`number`?fd(n,n.exponent+1+t):n,i=r.coefficients,a=r.exponent+1,o=a+(t||0);return i.length<o&&(i=i.concat(pd(o-i.length))),a<0&&(i=pd(-a+1).concat(i),a=1),a<i.length&&i.splice(a,0,a===0?`0.`:`.`),r.sign+i.join(``)}function ud(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=sd(e),r=t?fd(n,t):n,i=r.coefficients,a=r.exponent;i.length<t&&(i=i.concat(pd(t-i.length)));var o=i.shift();return r.sign+o+(i.length>0?`.`+i.join(``):``)+`e`+(a>=0?`+`:``)+a}function dd(e,t,n){if(isNaN(e)||!isFinite(e))return String(e);var r=n&&n.lowerExp!==void 0?n.lowerExp:-3,i=n&&n.upperExp!==void 0?n.upperExp:5,a=sd(e),o=t?fd(a,t):a;if(o.exponent<r||o.exponent>=i)return ud(e,t);var s=o.coefficients,c=o.exponent;s.length<t&&(s=s.concat(pd(t-s.length))),s=s.concat(pd(c-s.length+1+(s.length<t?t-s.length:0))),s=pd(-c).concat(s);var l=c>0?c:0;return l<s.length-1&&s.splice(l+1,0,`.`),o.sign+s.join(``)}function fd(e,t){for(var n={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},r=n.coefficients;t<=0;)r.unshift(0),n.exponent++,t++;if(r.length>t&&r.splice(t,r.length-t)[0]>=5){var i=t-1;for(r[i]++;r[i]===10;)r.pop(),i===0&&(r.unshift(0),n.exponent++,i++),i--,r[i]++}return n}function pd(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function md(e){return e.toExponential().replace(/e.*$/,``).replace(/^0\.?0*|\./,``).length}var hd=2**-52||2220446049250313e-31;function gd(e,t,n){if(n==null)return e===t;if(e===t)return!0;if(isNaN(e)||isNaN(t))return!1;if(isFinite(e)&&isFinite(t)){var r=Math.abs(e-t);return r<hd?!0:r<=Math.max(Math.abs(e),Math.abs(t))*n}return!1}function _d(e,t){if(typeof t==`function`)return t(e);if(!e.isFinite())return e.isNaN()?`NaN`:e.gt(0)?`Infinity`:`-Infinity`;var n=`auto`,r;switch(t!==void 0&&(t.notation&&(n=t.notation),typeof t==`number`?r=t:t.precision&&(r=t.precision)),n){case`fixed`:return bd(e,r);case`exponential`:return yd(e,r);case`engineering`:return vd(e,r);case`auto`:var i=t&&t.lowerExp!==void 0?t.lowerExp:-3,a=t&&t.upperExp!==void 0?t.upperExp:5;if(e.isZero())return`0`;var o,s=e.toSignificantDigits(r),c=s.e;return o=c>=i&&c<a?s.toFixed():yd(e,r),o.replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return e===`.`?t:e+t});default:throw Error(`Unknown notation "`+n+`". Choose "auto", "exponential", or "fixed".`)}}function vd(e,t){var n=e.e,r=n%3==0?n:n<0?n-3-n%3:n-n%3,i=e.mul(10**-r),a=i.toPrecision(t);return a.indexOf(`e`)!==-1&&(a=i.toString()),a+`e`+(n>=0?`+`:``)+r.toString()}function yd(e,t){return t===void 0?e.toExponential():e.toExponential(t-1)}function bd(e,t){return e.toFixed(t)}function xd(e){"@babel/helpers - typeof";return xd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xd(e)}function Sd(e,t){return typeof e==`number`?od(e,t):ru(e)?_d(e,t):wd(e)?!t||t.fraction!==`decimal`?e.s*e.n+`/`+e.d:e.toString():Array.isArray(e)?Cd(e,t):su(e)?`"`+e+`"`:typeof e==`function`?e.syntax?String(e.syntax):`function`:e&&xd(e)===`object`?typeof e.format==`function`?e.format(t):e&&e.toString(t)!=={}.toString()?e.toString(t):`{`+Object.keys(e).map(function(n){return`"`+n+`": `+Sd(e[n],t)}).join(`, `)+`}`:String(e)}function Cd(e,t){if(Array.isArray(e)){for(var n=`[`,r=e.length,i=0;i<r;i++)i!==0&&(n+=`, `),n+=Cd(e[i],t);return n+=`]`,n}else return Sd(e,t)}function wd(e){return e&&xd(e)===`object`&&typeof e.s==`number`&&typeof e.n==`number`&&typeof e.d==`number`||!1}function Td(e,t,n){if(!(this instanceof Td))throw SyntaxError(`Constructor must be called with the new operator`);this.actual=e,this.expected=t,this.relation=n,this.message=`Dimension mismatch (`+(Array.isArray(e)?`[`+e.join(`, `)+`]`:e)+` `+(this.relation||`!=`)+` `+(Array.isArray(t)?`[`+t.join(`, `)+`]`:t)+`)`,this.stack=Error().stack}Td.prototype=RangeError(),Td.prototype.constructor=RangeError,Td.prototype.name=`DimensionError`,Td.prototype.isDimensionError=!0;function Ed(e,t,n){if(!(this instanceof Ed))throw SyntaxError(`Constructor must be called with the new operator`);this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=n),this.min!==void 0&&this.index<this.min?this.message=`Index out of range (`+this.index+` < `+this.min+`)`:this.max!==void 0&&this.index>=this.max?this.message=`Index out of range (`+this.index+` > `+(this.max-1)+`)`:this.message=`Index out of range (`+this.index+`)`,this.stack=Error().stack}Ed.prototype=RangeError(),Ed.prototype.constructor=RangeError,Ed.prototype.name=`IndexError`,Ed.prototype.isIndexError=!0;function Dd(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function Od(e,t,n){var r,i=e.length;if(i!==t[n])throw new Td(i,t[n]);if(n<t.length-1){var a=n+1;for(r=0;r<i;r++){var o=e[r];if(!Array.isArray(o))throw new Td(t.length-1,t.length,`<`);Od(e[r],t,a)}}else for(r=0;r<i;r++)if(Array.isArray(e[r]))throw new Td(t.length+1,t.length,`>`)}function kd(e,t){if(t.length===0){if(Array.isArray(e))throw new Td(e.length,0)}else Od(e,t,0)}function Ad(e,t){if(!nu(e)||!$u(e))throw TypeError(`Index must be an integer (value: `+e+`)`);if(e<0||typeof t==`number`&&e>=t)throw new Ed(e,t)}function jd(e,t,n){if(!Array.isArray(e)||!Array.isArray(t))throw TypeError(`Array expected`);if(t.length===0)throw Error(`Resizing to scalar is not supported`);return t.forEach(function(e){if(!nu(e)||!$u(e)||e<0)throw TypeError(`Invalid size, must contain positive integers (size: `+Sd(t)+`)`)}),Md(e,t,0,n===void 0?0:n),e}function Md(e,t,n,r){var i,a,o=e.length,s=t[n],c=Math.min(o,s);if(e.length=s,n<t.length-1){var l=n+1;for(i=0;i<c;i++)a=e[i],Array.isArray(a)||(a=[a],e[i]=a),Md(a,t,l,r);for(i=c;i<s;i++)a=[],e[i]=a,Md(a,t,l,r)}else{for(i=0;i<c;i++)for(;Array.isArray(e[i]);)e[i]=e[i][0];for(i=c;i<s;i++)e[i]=r}}function Nd(e,t){var n=Ld(e),r;function i(e){return e.reduce(function(e,t){return e*t})}if(!Array.isArray(e)||!Array.isArray(t))throw TypeError(`Array expected`);if(t.length===0)throw new Td(0,i(Dd(e)),`!=`);for(var a=1,o=0;o<t.length;o++)a*=t[o];if(n.length!==a)throw new Td(i(t),i(Dd(e)),`!=`);try{r=Pd(n,t)}catch(n){throw n instanceof Td?new Td(i(t),i(Dd(e)),`!=`):n}return r}function Pd(e,t){for(var n=e,r,i=t.length-1;i>0;i--){var a=t[i];r=[];for(var o=n.length/a,s=0;s<o;s++)r.push(n.slice(s*a,(s+1)*a));n=r}return n}function Fd(e,t,n,r){var i=r||Dd(e);if(n)for(var a=0;a<n;a++)e=[e],i.unshift(1);for(e=Id(e,t,0);i.length<t;)i.push(1);return e}function Id(e,t,n){var r,i;if(Array.isArray(e)){var a=n+1;for(r=0,i=e.length;r<i;r++)e[r]=Id(e[r],t,a)}else for(var o=n;o<t;o++)e=[e];return e}function Ld(e){if(!Array.isArray(e))return e;var t=[];return e.forEach(function e(n){Array.isArray(n)?n.forEach(e):t.push(n)}),t}function Rd(e,t){for(var n,r=0,i=0;i<e.length;i++){var a=e[i],o=Array.isArray(a);if(i===0&&o&&(r=a.length),o&&a.length!==r)return;var s=o?Rd(a,t):t(a);if(n===void 0)n=s;else if(n!==s)return`mixed`}return n}function W(e,t,n,r){function i(r){var i=qu(r,t.map(Vd));return zd(e,t,r),n(i)}return i.isFactory=!0,i.fn=e,i.dependencies=t.slice().sort(),r&&(i.meta=r),i}function zd(e,t,n){if(!t.filter(function(e){return!Bd(e)}).every(function(e){return n[e]!==void 0})){var r=t.filter(function(e){return n[e]===void 0});throw Error(`Cannot create function "${e}", some dependencies are missing: ${r.map(function(e){return`"${e}"`}).join(`, `)}.`)}}function Bd(e){return e&&e[0]===`?`}function Vd(e){return e&&e[0]===`?`?e.slice(1):e}var Hd=l(Qu()),Ud=function(){return Ud=Hd.default.create,Hd.default},Wd=W(`typed`,[`?BigNumber`,`?Complex`,`?DenseMatrix`,`?Fraction`],function(e){var t=e.BigNumber,n=e.Complex,r=e.DenseMatrix,i=e.Fraction,a=Ud();return a.types=[{name:`number`,test:nu},{name:`Complex`,test:iu},{name:`BigNumber`,test:ru},{name:`Fraction`,test:au},{name:`Unit`,test:ou},{name:`string`,test:su},{name:`Chain`,test:zu},{name:`Array`,test:cu},{name:`Matrix`,test:lu},{name:`DenseMatrix`,test:du},{name:`SparseMatrix`,test:fu},{name:`Range`,test:pu},{name:`Index`,test:mu},{name:`boolean`,test:hu},{name:`ResultSet`,test:gu},{name:`Help`,test:_u},{name:`function`,test:vu},{name:`Date`,test:yu},{name:`RegExp`,test:bu},{name:`null`,test:Su},{name:`undefined`,test:Cu},{name:`AccessorNode`,test:wu},{name:`ArrayNode`,test:Tu},{name:`AssignmentNode`,test:Eu},{name:`BlockNode`,test:Du},{name:`ConditionalNode`,test:Ou},{name:`ConstantNode`,test:ku},{name:`FunctionNode`,test:ju},{name:`FunctionAssignmentNode`,test:Au},{name:`IndexNode`,test:Mu},{name:`Node`,test:Nu},{name:`ObjectNode`,test:Pu},{name:`OperatorNode`,test:Fu},{name:`ParenthesisNode`,test:Iu},{name:`RangeNode`,test:Lu},{name:`SymbolNode`,test:Ru},{name:`Object`,test:xu}],a.conversions=[{from:`number`,to:`BigNumber`,convert:function(e){if(t||Gd(e),md(e)>15)throw TypeError(`Cannot implicitly convert a number with >15 significant digits to BigNumber (value: `+e+`). Use function bignumber(x) to convert to BigNumber.`);return new t(e)}},{from:`number`,to:`Complex`,convert:function(e){return n||Kd(e),new n(e,0)}},{from:`number`,to:`string`,convert:function(e){return e+``}},{from:`BigNumber`,to:`Complex`,convert:function(e){return n||Kd(e),new n(e.toNumber(),0)}},{from:`Fraction`,to:`BigNumber`,convert:function(e){throw TypeError(`Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.`)}},{from:`Fraction`,to:`Complex`,convert:function(e){return n||Kd(e),new n(e.valueOf(),0)}},{from:`number`,to:`Fraction`,convert:function(e){i||Jd(e);var t=new i(e);if(t.valueOf()!==e)throw TypeError(`Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: `+e+`). Use function fraction(x) to convert to Fraction.`);return t}},{from:`string`,to:`number`,convert:function(e){var t=Number(e);if(isNaN(t))throw Error(`Cannot convert "`+e+`" to a number`);return t}},{from:`string`,to:`BigNumber`,convert:function(e){t||Gd(e);try{return new t(e)}catch{throw Error(`Cannot convert "`+e+`" to BigNumber`)}}},{from:`string`,to:`Fraction`,convert:function(e){i||Jd(e);try{return new i(e)}catch{throw Error(`Cannot convert "`+e+`" to Fraction`)}}},{from:`string`,to:`Complex`,convert:function(e){n||Kd(e);try{return new n(e)}catch{throw Error(`Cannot convert "`+e+`" to Complex`)}}},{from:`boolean`,to:`number`,convert:function(e){return+e}},{from:`boolean`,to:`BigNumber`,convert:function(e){return t||Gd(e),new t(+e)}},{from:`boolean`,to:`Fraction`,convert:function(e){return i||Jd(e),new i(+e)}},{from:`boolean`,to:`string`,convert:function(e){return String(e)}},{from:`Array`,to:`Matrix`,convert:function(e){return r||qd(),new r(e)}},{from:`Matrix`,to:`Array`,convert:function(e){return e.valueOf()}}],a});function Gd(e){throw Error(`Cannot convert value ${e} into a BigNumber: no class 'BigNumber' provided`)}function Kd(e){throw Error(`Cannot convert value ${e} into a Complex number: no class 'Complex' provided`)}function qd(){throw Error(`Cannot convert array into a Matrix: no class 'DenseMatrix' provided`)}function Jd(e){throw Error(`Cannot convert value ${e} into a Fraction, no class 'Fraction' provided.`)}var Yd=9e15,Xd=1e9,Zd=`0123456789abcdef`,Qd=`2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058`,$d=`3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789`,ef={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Yd,maxE:Yd,crypto:!1},tf,nf,G=!0,rf=`[DecimalError] `,af=rf+`Invalid argument: `,of=rf+`Precision limit exceeded`,sf=rf+`crypto unavailable`,cf=`[object Decimal]`,lf=Math.floor,uf=Math.pow,df=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ff=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,pf=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,mf=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,hf=1e7,K=7,gf=9007199254740991,_f=Qd.length-1,vf=$d.length-1,q={toStringTag:cf};q.absoluteValue=q.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),J(e)},q.ceil=function(){return J(new this.constructor(this),this.e+1,2)},q.clampedTo=q.clamp=function(e,t){var n,r=this,i=r.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(af+t);return n=r.cmp(e),n<0?e:r.cmp(t)>0?t:new i(r)},q.comparedTo=q.cmp=function(e){var t,n,r,i,a=this,o=a.d,s=(e=new a.constructor(e)).d,c=a.s,l=e.s;if(!o||!s)return!c||!l?NaN:c===l?o===s?0:!o^c<0?1:-1:c;if(!o[0]||!s[0])return o[0]?c:s[0]?-l:0;if(c!==l)return c;if(a.e!==e.e)return a.e>e.e^c<0?1:-1;for(r=o.length,i=s.length,t=0,n=r<i?r:i;t<n;++t)if(o[t]!==s[t])return o[t]>s[t]^c<0?1:-1;return r===i?0:r>i^c<0?1:-1},q.cosine=q.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+K,r.rounding=1,n=Cf(r,Hf(r,n)),r.precision=e,r.rounding=t,J(nf==2||nf==3?n.neg():n,e,t,!0)):new r(1):new r(NaN)},q.cubeRoot=q.cbrt=function(){var e,t,n,r,i,a,o,s,c,l,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(G=!1,a=u.s*uf(u.s*u,1/3),!a||Math.abs(a)==1/0?(n=yf(u.d),e=u.e,(a=(e-n.length+1)%3)&&(n+=a==1||a==-2?`0`:`00`),a=uf(n,1/3),e=lf((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?n=`5e`+e:(n=a.toExponential(),n=n.slice(0,n.indexOf(`e`)+1)+e),r=new d(n),r.s=u.s):r=new d(a.toString()),o=(e=d.precision)+3;;)if(s=r,c=s.times(s).times(s),l=c.plus(u),r=wf(l.plus(u).times(s),l.plus(c),o+2,1),yf(s.d).slice(0,o)===(n=yf(r.d)).slice(0,o))if(n=n.slice(o-3,o+1),n==`9999`||!i&&n==`4999`){if(!i&&(J(s,e+1,0),s.times(s).times(s).eq(u))){r=s;break}o+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)==`5`)&&(J(r,e+1,1),t=!r.times(r).times(r).eq(u));break}return G=!0,J(r,e,d.rounding,t)},q.decimalPlaces=q.dp=function(){var e,t=this.d,n=NaN;if(t){if(e=t.length-1,n=(e-lf(this.e/K))*K,e=t[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},q.dividedBy=q.div=function(e){return wf(this,new this.constructor(e))},q.dividedToIntegerBy=q.divToInt=function(e){var t=this,n=t.constructor;return J(wf(t,new n(e),0,1,1),n.precision,n.rounding)},q.equals=q.eq=function(e){return this.cmp(e)===0},q.floor=function(){return J(new this.constructor(this),this.e+1,3)},q.greaterThan=q.gt=function(e){return this.cmp(e)>0},q.greaterThanOrEqualTo=q.gte=function(e){var t=this.cmp(e);return t==1||t===0},q.hyperbolicCosine=q.cosh=function(){var e,t,n,r,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;n=o.precision,r=o.rounding,o.precision=n+Math.max(a.e,a.sd())+4,o.rounding=1,i=a.d.length,i<32?(e=Math.ceil(i/3),t=(1/Vf(4,e)).toString()):(e=16,t=`2.3283064365386962890625e-10`),a=Bf(o,1,a.times(t),new o(1),!0);for(var c,l=e,u=new o(8);l--;)c=a.times(a),a=s.minus(c.times(u.minus(c.times(u))));return J(a,o.precision=n,o.rounding=r,!0)},q.hyperbolicSine=q.sinh=function(){var e,t,n,r,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,n=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,r=i.d.length,r<3)i=Bf(a,2,i,i,!0);else{e=1.4*Math.sqrt(r),e=e>16?16:e|0,i=i.times(1/Vf(5,e)),i=Bf(a,2,i,i,!0);for(var o,s=new a(5),c=new a(16),l=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(c.times(o).plus(l))))}return a.precision=t,a.rounding=n,J(i,t,n,!0)},q.hyperbolicTangent=q.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,wf(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},q.inverseCosine=q.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,i=t.rounding;return n===-1?e.isZero()?Of(t,r+4,i).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=i,e.times(2)):n===0?e.isNeg()?Of(t,r,i):new t(0):new t(NaN)},q.inverseHyperbolicCosine=q.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,G=!1,n=n.times(n).minus(1).sqrt().plus(n),G=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},q.inverseHyperbolicSine=q.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,G=!1,n=n.times(n).plus(1).sqrt().plus(n),G=!0,r.precision=e,r.rounding=t,n.ln())},q.inverseHyperbolicTangent=q.atanh=function(){var e,t,n,r,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?J(new a(i),e,t,!0):(a.precision=n=r-i.e,i=wf(i.plus(1),new a(1).minus(i),n+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5))):new a(NaN)},q.inverseSine=q.asin=function(){var e,t,n,r,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),n=a.precision,r=a.rounding,t===-1?(a.precision=n+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=r,i.times(2)):t===0?(e=Of(a,n+4,r).times(.5),e.s=i.s,e):new a(NaN))},q.inverseTangent=q.atan=function(){var e,t,n,r,i,a,o,s,c,l=this,u=l.constructor,d=u.precision,f=u.rounding;if(!l.isFinite()){if(!l.s)return new u(NaN);if(d+4<=vf)return o=Of(u,d+4,f).times(.5),o.s=l.s,o}else if(l.isZero())return new u(l);else if(l.abs().eq(1)&&d+4<=vf)return o=Of(u,d+4,f).times(.25),o.s=l.s,o;for(u.precision=s=d+10,u.rounding=1,n=Math.min(28,s/K+2|0),e=n;e;--e)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(G=!1,t=Math.ceil(s/K),r=1,c=l.times(l),o=new u(l),i=l;e!==-1;)if(i=i.times(c),a=o.minus(i.div(r+=2)),i=i.times(c),o=a.plus(i.div(r+=2)),o.d[t]!==void 0)for(e=t;o.d[e]===a.d[e]&&e--;);return n&&(o=o.times(2<<n-1)),G=!0,J(o,u.precision=d,u.rounding=f,!0)},q.isFinite=function(){return!!this.d},q.isInteger=q.isInt=function(){return!!this.d&&lf(this.e/K)>this.d.length-2},q.isNaN=function(){return!this.s},q.isNegative=q.isNeg=function(){return this.s<0},q.isPositive=q.isPos=function(){return this.s>0},q.isZero=function(){return!!this.d&&this.d[0]===0},q.lessThan=q.lt=function(e){return this.cmp(e)<0},q.lessThanOrEqualTo=q.lte=function(e){return this.cmp(e)<1},q.logarithm=q.log=function(e){var t,n,r,i,a,o,s,c,l=this,u=l.constructor,d=u.precision,f=u.rounding,p=5;if(e==null)e=new u(10),t=!0;else{if(e=new u(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(n=l.d,l.s<0||!n||!n[0]||l.eq(1))return new u(n&&!n[0]?-1/0:l.s==1?n?0:1/0:NaN);if(t)if(n.length>1)a=!0;else{for(i=n[0];i%10==0;)i/=10;a=i!==1}if(G=!1,s=d+p,o=Ff(l,s),r=t?Df(u,s+10):Ff(e,s),c=wf(o,r,s,1),xf(c.d,i=d,f))do if(s+=10,o=Ff(l,s),r=t?Df(u,s+10):Ff(e,s),c=wf(o,r,s,1),!a){+yf(c.d).slice(i+1,i+15)+1==0x5af3107a4000&&(c=J(c,d+1,0));break}while(xf(c.d,i+=10,f));return G=!0,J(c,d,f)},q.minus=q.sub=function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p=this,m=p.constructor;if(e=new m(e),!p.d||!e.d)return!p.s||!e.s?e=new m(NaN):p.d?e.s=-e.s:e=new m(e.d||p.s!==e.s?p:NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(l=p.d,f=e.d,s=m.precision,c=m.rounding,!l[0]||!f[0]){if(f[0])e.s=-e.s;else if(l[0])e=new m(p);else return new m(c===3?-0:0);return G?J(e,s,c):e}if(n=lf(e.e/K),u=lf(p.e/K),l=l.slice(),a=u-n,a){for(d=a<0,d?(t=l,a=-a,o=f.length):(t=f,n=u,o=l.length),r=Math.max(Math.ceil(s/K),o)+2,a>r&&(a=r,t.length=1),t.reverse(),r=a;r--;)t.push(0);t.reverse()}else{for(r=l.length,o=f.length,d=r<o,d&&(o=r),r=0;r<o;r++)if(l[r]!=f[r]){d=l[r]<f[r];break}a=0}for(d&&(t=l,l=f,f=t,e.s=-e.s),o=l.length,r=f.length-o;r>0;--r)l[o++]=0;for(r=f.length;r>a;){if(l[--r]<f[r]){for(i=r;i&&l[--i]===0;)l[i]=hf-1;--l[i],l[r]+=hf}l[r]-=f[r]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(e.d=l,e.e=Ef(l,n),G?J(e,s,c):e):new m(c===3?-0:0)},q.modulo=q.mod=function(e){var t,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?J(new r(n),r.precision,r.rounding):(G=!1,r.modulo==9?(t=wf(n,e.abs(),0,3,1),t.s*=e.s):t=wf(n,e,0,r.modulo,1),t=t.times(e),G=!0,n.minus(t))},q.naturalExponential=q.exp=function(){return Pf(this)},q.naturalLogarithm=q.ln=function(){return Ff(this)},q.negated=q.neg=function(){var e=new this.constructor(this);return e.s=-e.s,J(e)},q.plus=q.add=function(e){var t,n,r,i,a,o,s,c,l,u,d=this,f=d.constructor;if(e=new f(e),!d.d||!e.d)return!d.s||!e.s?e=new f(NaN):d.d||(e=new f(e.d||d.s===e.s?d:NaN)),e;if(d.s!=e.s)return e.s=-e.s,d.minus(e);if(l=d.d,u=e.d,s=f.precision,c=f.rounding,!l[0]||!u[0])return u[0]||(e=new f(d)),G?J(e,s,c):e;if(a=lf(d.e/K),r=lf(e.e/K),l=l.slice(),i=a-r,i){for(i<0?(n=l,i=-i,o=u.length):(n=u,r=a,o=l.length),a=Math.ceil(s/K),o=a>o?a+1:o+1,i>o&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(o=l.length,i=u.length,o-i<0&&(i=o,n=u,u=l,l=n),t=0;i;)t=(l[--i]=l[i]+u[i]+t)/hf|0,l[i]%=hf;for(t&&(l.unshift(t),++r),o=l.length;l[--o]==0;)l.pop();return e.d=l,e.e=Ef(l,r),G?J(e,s,c):e},q.precision=q.sd=function(e){var t,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(af+e);return n.d?(t=kf(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},q.round=function(){var e=this,t=e.constructor;return J(new t(e),e.e+1,t.rounding)},q.sine=q.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+K,r.rounding=1,n=zf(r,Hf(r,n)),r.precision=e,r.rounding=t,J(nf>2?n.neg():n,e,t,!0)):new r(NaN)},q.squareRoot=q.sqrt=function(){var e,t,n,r,i,a,o=this,s=o.d,c=o.e,l=o.s,u=o.constructor;if(l!==1||!s||!s[0])return new u(!l||l<0&&(!s||s[0])?NaN:s?o:1/0);for(G=!1,l=Math.sqrt(+o),l==0||l==1/0?(t=yf(s),(t.length+c)%2==0&&(t+=`0`),l=Math.sqrt(t),c=lf((c+1)/2)-(c<0||c%2),l==1/0?t=`5e`+c:(t=l.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+c),r=new u(t)):r=new u(l.toString()),n=(c=u.precision)+3;;)if(a=r,r=a.plus(wf(o,a,n+2,1)).times(.5),yf(a.d).slice(0,n)===(t=yf(r.d)).slice(0,n))if(t=t.slice(n-3,n+1),t==`9999`||!i&&t==`4999`){if(!i&&(J(a,c+1,0),a.times(a).eq(o))){r=a;break}n+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)==`5`)&&(J(r,c+1,1),e=!r.times(r).eq(o));break}return G=!0,J(r,c,u.rounding,e)},q.tangent=q.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,n=n.sin(),n.s=1,n=wf(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,J(nf==2||nf==4?n.neg():n,e,t,!0)):new r(NaN)},q.times=q.mul=function(e){var t,n,r,i,a,o,s,c,l,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(e.s*=u.s,!f||!f[0]||!p||!p[0])return new d(!e.s||f&&!f[0]&&!p||p&&!p[0]&&!f?NaN:!f||!p?e.s/0:e.s*0);for(n=lf(u.e/K)+lf(e.e/K),c=f.length,l=p.length,c<l&&(a=f,f=p,p=a,o=c,c=l,l=o),a=[],o=c+l,r=o;r--;)a.push(0);for(r=l;--r>=0;){for(t=0,i=c+r;i>r;)s=a[i]+p[r]*f[i-r-1]+t,a[i--]=s%hf|0,t=s/hf|0;a[i]=(a[i]+t)%hf|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=Ef(a,n),G?J(e,d.precision,d.rounding):e},q.toBinary=function(e,t){return Uf(this,2,e,t)},q.toDecimalPlaces=q.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(bf(e,0,Xd),t===void 0?t=r.rounding:bf(t,0,8),J(n,e+n.e+1,t))},q.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Tf(r,!0):(bf(e,0,Xd),t===void 0?t=i.rounding:bf(t,0,8),r=J(new i(r),e+1,t),n=Tf(r,!0,e+1)),r.isNeg()&&!r.isZero()?`-`+n:n},q.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?n=Tf(i):(bf(e,0,Xd),t===void 0?t=a.rounding:bf(t,0,8),r=J(new a(i),e+i.e+1,t),n=Tf(r,!1,e+r.e+1)),i.isNeg()&&!i.isZero()?`-`+n:n},q.toFraction=function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p=this,m=p.d,h=p.constructor;if(!m)return new h(p);if(l=n=new h(1),r=c=new h(0),t=new h(r),a=t.e=kf(m)-p.e-1,o=a%K,t.d[0]=uf(10,o<0?K+o:o),e==null)e=a>0?t:l;else{if(s=new h(e),!s.isInt()||s.lt(l))throw Error(af+s);e=s.gt(t)?a>0?t:l:s}for(G=!1,s=new h(yf(m)),u=h.precision,h.precision=a=m.length*K*2;d=wf(s,t,0,1,1),i=n.plus(d.times(r)),i.cmp(e)!=1;)n=r,r=i,i=l,l=c.plus(d.times(i)),c=i,i=t,t=s.minus(d.times(i)),s=i;return i=wf(e.minus(n),r,0,1,1),c=c.plus(i.times(l)),n=n.plus(i.times(r)),c.s=l.s=p.s,f=wf(l,r,a,1).minus(p).abs().cmp(wf(c,n,a,1).minus(p).abs())<1?[l,r]:[c,n],h.precision=u,G=!0,f},q.toHexadecimal=q.toHex=function(e,t){return Uf(this,16,e,t)},q.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),e==null){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),t===void 0?t=r.rounding:bf(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&=n.s,e}return e.d[0]?(G=!1,n=wf(n,e,0,t,1).times(e),G=!0,J(n)):(e.s=n.s,n=e),n},q.toNumber=function(){return+this},q.toOctal=function(e,t){return Uf(this,8,e,t)},q.toPower=q.pow=function(e){var t,n,r,i,a,o,s=this,c=s.constructor,l=+(e=new c(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new c(uf(+s,l));if(s=new c(s),s.eq(1))return s;if(r=c.precision,a=c.rounding,e.eq(1))return J(s,r,a);if(t=lf(e.e/K),t>=e.d.length-1&&(n=l<0?-l:l)<=gf)return i=jf(c,s,n,r),e.s<0?new c(1).div(i):J(i,r,a);if(o=s.s,o<0){if(t<e.d.length-1)return new c(NaN);if(e.d[t]&1||(o=1),s.e==0&&s.d[0]==1&&s.d.length==1)return s.s=o,s}return n=uf(+s,l),t=n==0||!isFinite(n)?lf(l*(Math.log(`0.`+yf(s.d))/Math.LN10+s.e+1)):new c(n+``).e,t>c.maxE+1||t<c.minE-1?new c(t>0?o/0:0):(G=!1,c.rounding=s.s=1,n=Math.min(12,(t+``).length),i=Pf(e.times(Ff(s,r+n)),r),i.d&&(i=J(i,r+5,1),xf(i.d,r,a)&&(t=r+10,i=J(Pf(e.times(Ff(s,t+n)),t),t+5,1),+yf(i.d).slice(r+1,r+15)+1==0x5af3107a4000&&(i=J(i,r+1,0)))),i.s=o,G=!0,c.rounding=a,J(i,r,a))},q.toPrecision=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Tf(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(bf(e,1,Xd),t===void 0?t=i.rounding:bf(t,0,8),r=J(new i(r),e,t),n=Tf(r,e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?`-`+n:n},q.toSignificantDigits=q.toSD=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(bf(e,1,Xd),t===void 0?t=r.rounding:bf(t,0,8)),J(new r(n),e,t)},q.toString=function(){var e=this,t=e.constructor,n=Tf(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?`-`+n:n},q.truncated=q.trunc=function(){return J(new this.constructor(this),this.e+1,1)},q.valueOf=q.toJSON=function(){var e=this,t=e.constructor,n=Tf(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?`-`+n:n};function yf(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=K-r.length,n&&(a+=Af(n)),a+=r;o=e[t],r=o+``,n=K-r.length,n&&(a+=Af(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}function bf(e,t,n){if(e!==~~e||e<t||e>n)throw Error(af+e)}function xf(e,t,n,r){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=K,i=0):(i=Math.ceil((t+1)/K),t%=K),a=uf(10,K-t),s=e[i]%a|0,r==null?t<3?(t==0?s=s/100|0:t==1&&(s=s/10|0),o=n<4&&s==99999||n>3&&s==49999||s==5e4||s==0):o=(n<4&&s+1==a||n>3&&s+1==a/2)&&(e[i+1]/a/100|0)==uf(10,t-2)-1||(s==a/2||s==0)&&(e[i+1]/a/100|0)==0:t<4?(t==0?s=s/1e3|0:t==1?s=s/100|0:t==2&&(s=s/10|0),o=(r||n<4)&&s==9999||!r&&n>3&&s==4999):o=((r||n<4)&&s+1==a||!r&&n>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==uf(10,t-3)-1,o}function Sf(e,t,n){for(var r,i=[0],a,o=0,s=e.length;o<s;){for(a=i.length;a--;)i[a]*=t;for(i[0]+=Zd.indexOf(e.charAt(o++)),r=0;r<i.length;r++)i[r]>n-1&&(i[r+1]===void 0&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}function Cf(e,t){var n,r,i;if(t.isZero())return t;r=t.d.length,r<32?(n=Math.ceil(r/3),i=(1/Vf(4,n)).toString()):(n=16,i=`2.3283064365386962890625e-10`),e.precision+=n,t=Bf(e,1,t.times(i),new e(1));for(var a=n;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,t}var wf=(function(){function e(e,t,n){var r,i=0,a=e.length;for(e=e.slice();a--;)r=e[a]*t+i,e[a]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=+(e[n]<t[n]),e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,a,o,s,c){var l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k=r.constructor,A=r.s==i.s?1:-1,j=r.d,M=i.d;if(!j||!j[0]||!M||!M[0])return new k(!r.s||!i.s||(j?M&&j[0]==M[0]:!M)?NaN:j&&j[0]==0||!M?A*0:A/0);for(c?(p=1,u=r.e-i.e):(c=hf,p=K,u=lf(r.e/p)-lf(i.e/p)),D=M.length,T=j.length,_=new k(A),v=_.d=[],d=0;M[d]==(j[d]||0);d++);if(M[d]>(j[d]||0)&&u--,a==null?(S=a=k.precision,o=k.rounding):S=s?a+(r.e-i.e)+1:a,S<0)v.push(1),m=!0;else{if(S=S/p+2|0,d=0,D==1){for(f=0,M=M[0],S++;(d<T||f)&&S--;d++)C=f*c+(j[d]||0),v[d]=C/M|0,f=C%M|0;m=f||d<T}else{for(f=c/(M[0]+1)|0,f>1&&(M=e(M,f,c),j=e(j,f,c),D=M.length,T=j.length),w=D,y=j.slice(0,D),b=y.length;b<D;)y[b++]=0;O=M.slice(),O.unshift(0),E=M[0],M[1]>=c/2&&++E;do f=0,l=t(M,y,D,b),l<0?(x=y[0],D!=b&&(x=x*c+(y[1]||0)),f=x/E|0,f>1?(f>=c&&(f=c-1),h=e(M,f,c),g=h.length,b=y.length,l=t(h,y,g,b),l==1&&(f--,n(h,D<g?O:M,g,c))):(f==0&&(l=f=1),h=M.slice()),g=h.length,g<b&&h.unshift(0),n(y,h,b,c),l==-1&&(b=y.length,l=t(M,y,D,b),l<1&&(f++,n(y,D<b?O:M,b,c))),b=y.length):l===0&&(f++,y=[0]),v[d++]=f,l&&y[0]?y[b++]=j[w]||0:(y=[j[w]],b=1);while((w++<T||y[0]!==void 0)&&S--);m=y[0]!==void 0}v[0]||v.shift()}if(p==1)_.e=u,tf=m;else{for(d=1,f=v[0];f>=10;f/=10)d++;_.e=d+u*p-1,J(_,s?a+_.e+1:a,o,m)}return _}})();function J(e,t,n,r){var i,a,o,s,c,l,u,d,f,p=e.constructor;out:if(t!=null){if(d=e.d,!d)return e;for(i=1,s=d[0];s>=10;s/=10)i++;if(a=t-i,a<0)a+=K,o=t,u=d[f=0],c=u/uf(10,i-o-1)%10|0;else if(f=Math.ceil((a+1)/K),s=d.length,f>=s)if(r){for(;s++<=f;)d.push(0);u=c=0,i=1,a%=K,o=a-K+1}else break out;else{for(u=s=d[f],i=1;s>=10;s/=10)i++;a%=K,o=a-K+i,c=o<0?0:u/uf(10,i-o-1)%10|0}if(r=r||t<0||d[f+1]!==void 0||(o<0?u:u%uf(10,i-o-1)),l=n<4?(c||r)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||r||n==6&&(a>0?o>0?u/uf(10,i-o):0:d[f-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,l?(t-=e.e+1,d[0]=uf(10,(K-t%K)%K),e.e=-t||0):d[0]=e.e=0,e;if(a==0?(d.length=f,s=1,f--):(d.length=f+1,s=uf(10,K-a),d[f]=o>0?(u/uf(10,i-o)%uf(10,o)|0)*s:0),l)for(;;)if(f==0){for(a=1,o=d[0];o>=10;o/=10)a++;for(o=d[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,d[0]==hf&&(d[0]=1));break}else{if(d[f]+=s,d[f]!=hf)break;d[f--]=0,s=1}for(a=d.length;d[--a]===0;)d.pop()}return G&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function Tf(e,t,n){if(!e.isFinite())return If(e);var r,i=e.e,a=yf(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+Af(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(e.e<0?`e`:`e+`)+e.e):i<0?(a=`0.`+Af(-i-1)+a,n&&(r=n-o)>0&&(a+=Af(r))):i>=o?(a+=Af(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+Af(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=Af(r))),a}function Ef(e,t){var n=e[0];for(t*=K;n>=10;n/=10)t++;return t}function Df(e,t,n){if(t>_f)throw G=!0,n&&(e.precision=n),Error(of);return J(new e(Qd),t,1,!0)}function Of(e,t,n){if(t>vf)throw Error(of);return J(new e($d),t,n,!0)}function kf(e){var t=e.length-1,n=t*K+1;if(t=e[t],t){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function Af(e){for(var t=``;e--;)t+=`0`;return t}function jf(e,t,n,r){var i,a=new e(1),o=Math.ceil(r/K+4);for(G=!1;;){if(n%2&&(a=a.times(t),Wf(a.d,o)&&(i=!0)),n=lf(n/2),n===0){n=a.d.length-1,i&&a.d[n]===0&&++a.d[n];break}t=t.times(t),Wf(t.d,o)}return G=!0,a}function Mf(e){return e.d[e.d.length-1]&1}function Nf(e,t,n){for(var r,i,a=new e(t[0]),o=0;++o<t.length;){if(i=new e(t[o]),!i.s){a=i;break}r=a.cmp(i),(r===n||r===0&&a.s===n)&&(a=i)}return a}function Pf(e,t){var n,r,i,a,o,s,c,l=0,u=0,d=0,f=e.constructor,p=f.rounding,m=f.precision;if(!e.d||!e.d[0]||e.e>17)return new f(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(G=!1,c=m):c=t,s=new f(.03125);e.e>-2;)e=e.times(s),d+=5;for(r=Math.log(uf(2,d))/Math.LN10*2+5|0,c+=r,n=a=o=new f(1),f.precision=c;;){if(a=J(a.times(e),c,1),n=n.times(++u),s=o.plus(wf(a,n,c,1)),yf(s.d).slice(0,c)===yf(o.d).slice(0,c)){for(i=d;i--;)o=J(o.times(o),c,1);if(t==null)if(l<3&&xf(o.d,c-r,p,l))f.precision=c+=10,n=a=s=new f(1),u=0,l++;else return J(o,f.precision=m,p,G=!0);else return f.precision=m,o}o=s}}function Ff(e,t){var n,r,i,a,o,s,c,l,u,d,f,p=1,m=10,h=e,g=h.d,_=h.constructor,v=_.rounding,y=_.precision;if(h.s<0||!g||!g[0]||!h.e&&g[0]==1&&g.length==1)return new _(g&&!g[0]?-1/0:h.s==1?g?0:h:NaN);if(t==null?(G=!1,u=y):u=t,_.precision=u+=m,n=yf(g),r=n.charAt(0),Math.abs(a=h.e)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=yf(h.d),r=n.charAt(0),p++;a=h.e,r>1?(h=new _(`0.`+n),a++):h=new _(r+`.`+n.slice(1))}else return l=Df(_,u+2,y).times(a+``),h=Ff(new _(r+`.`+n.slice(1)),u-m).plus(l),_.precision=y,t==null?J(h,y,v,G=!0):h;for(d=h,c=o=h=wf(h.minus(1),h.plus(1),u,1),f=J(h.times(h),u,1),i=3;;){if(o=J(o.times(f),u,1),l=c.plus(wf(o,new _(i),u,1)),yf(l.d).slice(0,u)===yf(c.d).slice(0,u))if(c=c.times(2),a!==0&&(c=c.plus(Df(_,u+2,y).times(a+``))),c=wf(c,new _(p),u,1),t==null)if(xf(c.d,u-m,v,s))_.precision=u+=m,l=o=h=wf(d.minus(1),d.plus(1),u,1),f=J(h.times(h),u,1),i=s=1;else return J(c,_.precision=y,v,G=!0);else return _.precision=y,c;c=l,i+=2}}function If(e){return String(e.s*e.s/0)}function Lf(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;r++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(r,i),t){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%K,n<0&&(r+=K),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=K;r<i;)e.d.push(+t.slice(r,r+=K));t=t.slice(r),r=K-t.length}else r-=i;for(;r--;)t+=`0`;e.d.push(+t),G&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function Rf(e,t){var n,r,i,a,o,s,c,l,u;if(t.indexOf(`_`)>-1){if(t=t.replace(/(\d)_(?=\d)/g,`$1`),mf.test(t))return Lf(e,t)}else if(t===`Infinity`||t===`NaN`)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(ff.test(t))n=16,t=t.toLowerCase();else if(df.test(t))n=2;else if(pf.test(t))n=8;else throw Error(af+t);for(a=t.search(/p/i),a>0?(c=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),a=t.indexOf(`.`),o=a>=0,r=e.constructor,o&&(t=t.replace(`.`,``),s=t.length,a=s-a,i=jf(r,new r(n),a,a*2)),l=Sf(t,n,hf),u=l.length-1,a=u;l[a]===0;--a)l.pop();return a<0?new r(e.s*0):(e.e=Ef(l,u),e.d=l,G=!1,o&&(e=wf(e,i,s*4)),c&&(e=e.times(Math.abs(c)<54?uf(2,c):Mp.pow(2,c))),G=!0,e)}function zf(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:Bf(e,2,t,t);n=1.4*Math.sqrt(r),n=n>16?16:n|0,t=t.times(1/Vf(5,n)),t=Bf(e,2,t,t);for(var i,a=new e(5),o=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}function Bf(e,t,n,r,i){var a,o,s,c,l=1,u=e.precision,d=Math.ceil(u/K);for(G=!1,c=n.times(n),s=new e(r);;){if(o=wf(s.times(c),new e(t++*t++),u,1),s=i?r.plus(o):r.minus(o),r=wf(o.times(c),new e(t++*t++),u,1),o=s.plus(r),o.d[d]!==void 0){for(a=d;o.d[a]===s.d[a]&&a--;);if(a==-1)break}a=s,s=r,r=o,o=a,l++}return G=!0,o.d.length=d+1,o}function Vf(e,t){for(var n=e;--t;)n*=e;return n}function Hf(e,t){var n,r=t.s<0,i=Of(e,e.precision,1),a=i.times(.5);if(t=t.abs(),t.lte(a))return nf=r?4:1,t;if(n=t.divToInt(i),n.isZero())nf=r?3:2;else{if(t=t.minus(n.times(i)),t.lte(a))return nf=Mf(n)?r?2:3:r?4:1,t;nf=Mf(n)?r?1:4:r?3:2}return t.minus(i).abs()}function Uf(e,t,n,r){var i,a,o,s,c,l,u,d,f,p=e.constructor,m=n!==void 0;if(m?(bf(n,1,Xd),r===void 0?r=p.rounding:bf(r,0,8)):(n=p.precision,r=p.rounding),!e.isFinite())u=If(e);else{for(u=Tf(e),o=u.indexOf(`.`),m?(i=2,t==16?n=n*4-3:t==8&&(n=n*3-2)):i=t,o>=0&&(u=u.replace(`.`,``),f=new p(1),f.e=u.length-o,f.d=Sf(Tf(f),10,i),f.e=f.d.length),d=Sf(u,10,i),a=c=d.length;d[--c]==0;)d.pop();if(!d[0])u=m?`0p+0`:`0`;else{if(o<0?a--:(e=new p(e),e.d=d,e.e=a,e=wf(e,f,n,r,0,i),d=e.d,a=e.e,l=tf),o=d[n],s=i/2,l||=d[n+1]!==void 0,l=r<4?(o!==void 0||l)&&(r===0||r===(e.s<0?3:2)):o>s||o===s&&(r===4||l||r===6&&d[n-1]&1||r===(e.s<0?8:7)),d.length=n,l)for(;++d[--n]>i-1;)d[n]=0,n||(++a,d.unshift(1));for(c=d.length;!d[c-1];--c);for(o=0,u=``;o<c;o++)u+=Zd.charAt(d[o]);if(m){if(c>1)if(t==16||t==8){for(o=t==16?4:3,--c;c%o;c++)u+=`0`;for(d=Sf(u,i,t),c=d.length;!d[c-1];--c);for(o=1,u=`1.`;o<c;o++)u+=Zd.charAt(d[o])}else u=u.charAt(0)+`.`+u.slice(1);u=u+(a<0?`p`:`p+`)+a}else if(a<0){for(;++a;)u=`0`+u;u=`0.`+u}else if(++a>c)for(a-=c;a--;)u+=`0`;else a<c&&(u=u.slice(0,a)+`.`+u.slice(a))}u=(t==16?`0x`:t==2?`0b`:t==8?`0o`:``)+u}return e.s<0?`-`+u:u}function Wf(e,t){if(e.length>t)return e.length=t,!0}function Gf(e){return new this(e).abs()}function Kf(e){return new this(e).acos()}function qf(e){return new this(e).acosh()}function Jf(e,t){return new this(e).plus(t)}function Yf(e){return new this(e).asin()}function Xf(e){return new this(e).asinh()}function Zf(e){return new this(e).atan()}function Qf(e){return new this(e).atanh()}function $f(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,a=r+4;return!e.s||!t.s?n=new this(NaN):!e.d&&!t.d?(n=Of(this,a,1).times(t.s>0?.25:.75),n.s=e.s):!t.d||e.isZero()?(n=t.s<0?Of(this,r,i):new this(0),n.s=e.s):!e.d||t.isZero()?(n=Of(this,a,1).times(.5),n.s=e.s):t.s<0?(this.precision=a,this.rounding=1,n=this.atan(wf(e,t,a,1)),t=Of(this,a,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(wf(e,t,a,1)),n}function ep(e){return new this(e).cbrt()}function tp(e){return J(e=new this(e),e.e+1,2)}function np(e,t,n){return new this(e).clamp(t,n)}function rp(e){if(!e||typeof e!=`object`)throw Error(rf+`Object expected`);var t,n,r,i=e.defaults===!0,a=[`precision`,1,Xd,`rounding`,0,8,`toExpNeg`,-Yd,0,`toExpPos`,0,Yd,`maxE`,0,Yd,`minE`,-Yd,0,`modulo`,0,9];for(t=0;t<a.length;t+=3)if(n=a[t],i&&(this[n]=ef[n]),(r=e[n])!==void 0)if(lf(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(af+n+`: `+r);if(n=`crypto`,i&&(this[n]=ef[n]),(r=e[n])!==void 0)if(r===!0||r===!1||r===0||r===1)if(r)if(typeof crypto<`u`&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(sf);else this[n]=!1;else throw Error(af+n+`: `+r);return this}function ip(e){return new this(e).cos()}function ap(e){return new this(e).cosh()}function op(e){var t,n,r;function i(e){var t,n,r,a=this;if(!(a instanceof i))return new i(e);if(a.constructor=i,dp(e)){a.s=e.s,G?!e.d||e.e>i.maxE?(a.e=NaN,a.d=null):e.e<i.minE?(a.e=0,a.d=[0]):(a.e=e.e,a.d=e.d.slice()):(a.e=e.e,a.d=e.d?e.d.slice():e.d);return}if(r=typeof e,r===`number`){if(e===0){a.s=1/e<0?-1:1,a.e=0,a.d=[0];return}if(e<0?(e=-e,a.s=-1):a.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;G?t>i.maxE?(a.e=NaN,a.d=null):t<i.minE?(a.e=0,a.d=[0]):(a.e=t,a.d=[e]):(a.e=t,a.d=[e]);return}if(e*0!=0){e||(a.s=NaN),a.e=NaN,a.d=null;return}return Lf(a,e.toString())}if(r===`string`)return(n=e.charCodeAt(0))===45?(e=e.slice(1),a.s=-1):(n===43&&(e=e.slice(1)),a.s=1),mf.test(e)?Lf(a,e):Rf(a,e);if(r===`bigint`)return e<0?(e=-e,a.s=-1):a.s=1,Lf(a,e.toString());throw Error(af+e)}if(i.prototype=q,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=rp,i.clone=op,i.isDecimal=dp,i.abs=Gf,i.acos=Kf,i.acosh=qf,i.add=Jf,i.asin=Yf,i.asinh=Xf,i.atan=Zf,i.atanh=Qf,i.atan2=$f,i.cbrt=ep,i.ceil=tp,i.clamp=np,i.cos=ip,i.cosh=ap,i.div=sp,i.exp=cp,i.floor=lp,i.hypot=up,i.ln=fp,i.log=pp,i.log10=hp,i.log2=mp,i.max=gp,i.min=_p,i.mod=vp,i.mul=yp,i.pow=bp,i.random=xp,i.round=Sp,i.sign=Cp,i.sin=wp,i.sinh=Tp,i.sqrt=Ep,i.sub=Dp,i.sum=Op,i.tan=kp,i.tanh=Ap,i.trunc=jp,e===void 0&&(e={}),e&&e.defaults!==!0)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`maxE`,`minE`,`modulo`,`crypto`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function sp(e,t){return new this(e).div(t)}function cp(e){return new this(e).exp()}function lp(e){return J(e=new this(e),e.e+1,3)}function up(){var e,t,n=new this(0);for(G=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return G=!0,new this(1/0);n=t}return G=!0,n.sqrt()}function dp(e){return e instanceof Mp||e&&e.toStringTag===cf||!1}function fp(e){return new this(e).ln()}function pp(e,t){return new this(e).log(t)}function mp(e){return new this(e).log(2)}function hp(e){return new this(e).log(10)}function gp(){return Nf(this,arguments,-1)}function _p(){return Nf(this,arguments,1)}function vp(e,t){return new this(e).mod(t)}function yp(e,t){return new this(e).mul(t)}function bp(e,t){return new this(e).pow(t)}function xp(e){var t,n,r,i,a=0,o=new this(1),s=[];if(e===void 0?e=this.precision:bf(e,1,Xd),r=Math.ceil(e/K),!this.crypto)for(;a<r;)s[a++]=Math.random()*1e7|0;else if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));a<r;)i=t[a],i>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);a<r;)i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((t[a+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=r/4}else throw Error(sf);for(r=s[--a],e%=K,r&&e&&(i=uf(10,K-e),s[a]=(r/i|0)*i);s[a]===0;a--)s.pop();if(a<0)n=0,s=[0];else{for(n=-1;s[0]===0;n-=K)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<K&&(n-=K-r)}return o.e=n,o.d=s,o}function Sp(e){return J(e=new this(e),e.e+1,this.rounding)}function Cp(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function wp(e){return new this(e).sin()}function Tp(e){return new this(e).sinh()}function Ep(e){return new this(e).sqrt()}function Dp(e,t){return new this(e).sub(t)}function Op(){var e=0,t=arguments,n=new this(t[e]);for(G=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return G=!0,J(n,this.precision,this.rounding)}function kp(e){return new this(e).tan()}function Ap(e){return new this(e).tanh()}function jp(e){return J(e=new this(e),e.e+1,1)}q[Symbol.for(`nodejs.util.inspect.custom`)]=q.toString,q[Symbol.toStringTag]=`Decimal`;var Mp=q.constructor=op(ef);Qd=new Mp(Qd),$d=new Mp($d);var Np=W(`BigNumber`,[`?on`,`config`],function(e){var t=e.on,n=e.config,r=Mp.clone({precision:n.precision,modulo:9});return r.prototype.type=`BigNumber`,r.prototype.isBigNumber=!0,r.prototype.toJSON=function(){return{mathjs:`BigNumber`,value:this.toString()}},r.fromJSON=function(e){return new r(e.value)},t&&t(`config`,function(e,t){e.precision!==t.precision&&r.config({precision:e.precision})}),r},{isClass:!0}),Pp=Math.cosh||function(e){return Math.abs(e)<1e-9?1-e:(Math.exp(e)+Math.exp(-e))*.5},Fp=Math.sinh||function(e){return Math.abs(e)<1e-9?e:(Math.exp(e)-Math.exp(-e))*.5},Ip=e=>{let t=Math.sin(.5*e);return-2*t*t},Lp=function(e,t){return e=Math.abs(e),t=Math.abs(t),e<t&&([e,t]=[t,e]),e<1e8?Math.sqrt(e*e+t*t):(t/=e,e*Math.sqrt(1+t*t))},Rp=function(){throw SyntaxError(`Invalid Param`)};function zp(e,t){let n=Math.abs(e),r=Math.abs(t);return e===0?Math.log(r):t===0?Math.log(n):n<3e3&&r<3e3?Math.log(e*e+t*t)*.5:(e*=.5,t*=.5,.5*Math.log(e*e+t*t)+Math.LN2)}var Bp={re:0,im:0},Vp=function(e,t){let n=Bp;if(e==null)n.re=n.im=0;else if(t!==void 0)n.re=e,n.im=t;else switch(typeof e){case`object`:if(`im`in e&&`re`in e)n.re=e.re,n.im=e.im;else if(`abs`in e&&`arg`in e){if(!isFinite(e.abs)&&isFinite(e.arg))return Y.INFINITY;n.re=e.abs*Math.cos(e.arg),n.im=e.abs*Math.sin(e.arg)}else if(`r`in e&&`phi`in e){if(!isFinite(e.r)&&isFinite(e.phi))return Y.INFINITY;n.re=e.r*Math.cos(e.phi),n.im=e.r*Math.sin(e.phi)}else e.length===2?(n.re=e[0],n.im=e[1]):Rp();break;case`string`:n.im=n.re=0;let t=e.replace(/_/g,``).match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),r=1,i=0;t===null&&Rp();for(let e=0;e<t.length;e++){let a=t[e];a===` `||a===` `||a===`
151
+ `||(a===`+`?r++:a===`-`?i++:a===`i`||a===`I`?(r+i===0&&Rp(),t[e+1]!==` `&&!isNaN(t[e+1])?(n.im+=parseFloat((i%2?`-`:``)+t[e+1]),e++):n.im+=parseFloat((i%2?`-`:``)+`1`),r=i=0):((r+i===0||isNaN(a))&&Rp(),t[e+1]===`i`||t[e+1]===`I`?(n.im+=parseFloat((i%2?`-`:``)+a),e++):n.re+=parseFloat((i%2?`-`:``)+a),r=i=0))}r+i>0&&Rp();break;case`number`:n.im=0,n.re=e;break;default:Rp()}return isNaN(n.re)||isNaN(n.im),n};function Y(e,t){if(!(this instanceof Y))return new Y(e,t);let n=Vp(e,t);this.re=n.re,this.im=n.im}Y.prototype={re:0,im:0,sign:function(){let e=Lp(this.re,this.im);return new Y(this.re/e,this.im/e)},add:function(e,t){let n=Vp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im));return r||i?r&&i?Y.NAN:Y.INFINITY:new Y(this.re+n.re,this.im+n.im)},sub:function(e,t){let n=Vp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im));return r||i?r&&i?Y.NAN:Y.INFINITY:new Y(this.re-n.re,this.im-n.im)},mul:function(e,t){let n=Vp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im)),a=this.re===0&&this.im===0,o=n.re===0&&n.im===0;return r&&o||i&&a?Y.NAN:r||i?Y.INFINITY:n.im===0&&this.im===0?new Y(this.re*n.re,0):new Y(this.re*n.re-this.im*n.im,this.re*n.im+this.im*n.re)},div:function(e,t){let n=Vp(e,t),r=this.isInfinite(),i=!(isFinite(n.re)&&isFinite(n.im)),a=this.re===0&&this.im===0,o=n.re===0&&n.im===0;if(a&&o||r&&i)return Y.NAN;if(o||r)return Y.INFINITY;if(a||i)return Y.ZERO;if(n.im===0)return new Y(this.re/n.re,this.im/n.re);if(Math.abs(n.re)<Math.abs(n.im)){let e=n.re/n.im,t=n.re*e+n.im;return new Y((this.re*e+this.im)/t,(this.im*e-this.re)/t)}else{let e=n.im/n.re,t=n.im*e+n.re;return new Y((this.re+this.im*e)/t,(this.im-this.re*e)/t)}},pow:function(e,t){let n=Vp(e,t),r=this.re===0&&this.im===0;if(n.re===0&&n.im===0)return Y.ONE;if(n.im===0){if(this.im===0&&this.re>0)return new Y(this.re**+n.re,0);if(this.re===0)switch((n.re%4+4)%4){case 0:return new Y(this.im**+n.re,0);case 1:return new Y(0,this.im**+n.re);case 2:return new Y(-(this.im**+n.re),0);case 3:return new Y(0,-(this.im**+n.re))}}if(r&&n.re>0)return Y.ZERO;let i=Math.atan2(this.im,this.re),a=zp(this.re,this.im),o=Math.exp(n.re*a-n.im*i),s=n.im*a+n.re*i;return new Y(o*Math.cos(s),o*Math.sin(s))},sqrt:function(){let e=this.re,t=this.im;if(t===0)return e>=0?new Y(Math.sqrt(e),0):new Y(0,Math.sqrt(-e));let n=Lp(e,t),r=Math.sqrt(.5*(n+Math.abs(e))),i=Math.abs(t)/(2*r);return e>=0?new Y(r,t<0?-i:i):new Y(i,t<0?-r:r)},exp:function(){let e=Math.exp(this.re);return this.im===0?new Y(e,0):new Y(e*Math.cos(this.im),e*Math.sin(this.im))},expm1:function(){let e=this.re,t=this.im;return new Y(Math.expm1(e)*Math.cos(t)+Ip(t),Math.exp(e)*Math.sin(t))},log:function(){let e=this.re,t=this.im;return t===0&&e>0?new Y(Math.log(e),0):new Y(zp(e,t),Math.atan2(t,e))},abs:function(){return Lp(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){let e=this.re,t=this.im;return new Y(Math.sin(e)*Pp(t),Math.cos(e)*Fp(t))},cos:function(){let e=this.re,t=this.im;return new Y(Math.cos(e)*Pp(t),-Math.sin(e)*Fp(t))},tan:function(){let e=2*this.re,t=2*this.im,n=Math.cos(e)+Pp(t);return new Y(Math.sin(e)/n,Fp(t)/n)},cot:function(){let e=2*this.re,t=2*this.im,n=Math.cos(e)-Pp(t);return new Y(-Math.sin(e)/n,Fp(t)/n)},sec:function(){let e=this.re,t=this.im,n=.5*Pp(2*t)+.5*Math.cos(2*e);return new Y(Math.cos(e)*Pp(t)/n,Math.sin(e)*Fp(t)/n)},csc:function(){let e=this.re,t=this.im,n=.5*Pp(2*t)-.5*Math.cos(2*e);return new Y(Math.sin(e)*Pp(t)/n,-Math.cos(e)*Fp(t)/n)},asin:function(){let e=this.re,t=this.im,n=new Y(t*t-e*e+1,-2*e*t).sqrt(),r=new Y(n.re-t,n.im+e).log();return new Y(r.im,-r.re)},acos:function(){let e=this.re,t=this.im,n=new Y(t*t-e*e+1,-2*e*t).sqrt(),r=new Y(n.re-t,n.im+e).log();return new Y(Math.PI/2-r.im,r.re)},atan:function(){let e=this.re,t=this.im;if(e===0){if(t===1)return new Y(0,1/0);if(t===-1)return new Y(0,-1/0)}let n=e*e+(1-t)*(1-t),r=new Y((1-t*t-e*e)/n,-2*e/n).log();return new Y(-.5*r.im,.5*r.re)},acot:function(){let e=this.re,t=this.im;if(t===0)return new Y(Math.atan2(1,e),0);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).atan():new Y(e/n,-t/n).atan()},asec:function(){let e=this.re,t=this.im;if(e===0&&t===0)return new Y(0,1/0);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).acos():new Y(e/n,-t/n).acos()},acsc:function(){let e=this.re,t=this.im;if(e===0&&t===0)return new Y(Math.PI/2,1/0);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).asin():new Y(e/n,-t/n).asin()},sinh:function(){let e=this.re,t=this.im;return new Y(Fp(e)*Math.cos(t),Pp(e)*Math.sin(t))},cosh:function(){let e=this.re,t=this.im;return new Y(Pp(e)*Math.cos(t),Fp(e)*Math.sin(t))},tanh:function(){let e=2*this.re,t=2*this.im,n=Pp(e)+Math.cos(t);return new Y(Fp(e)/n,Math.sin(t)/n)},coth:function(){let e=2*this.re,t=2*this.im,n=Pp(e)-Math.cos(t);return new Y(Fp(e)/n,-Math.sin(t)/n)},csch:function(){let e=this.re,t=this.im,n=Math.cos(2*t)-Pp(2*e);return new Y(-2*Fp(e)*Math.cos(t)/n,2*Pp(e)*Math.sin(t)/n)},sech:function(){let e=this.re,t=this.im,n=Math.cos(2*t)+Pp(2*e);return new Y(2*Pp(e)*Math.cos(t)/n,-2*Fp(e)*Math.sin(t)/n)},asinh:function(){let e=this.re,t=this.im;if(t===0){if(e===0)return new Y(0,0);let t=Math.abs(e),n=Math.log(t+Math.sqrt(t*t+1));return new Y(e<0?-n:n,0)}let n=new Y(e*e-t*t+1,2*e*t).sqrt();return new Y(e+n.re,t+n.im).log()},acosh:function(){let e=this.re,t=this.im;if(t===0){if(e>1)return new Y(Math.log(e+Math.sqrt(e-1)*Math.sqrt(e+1)),0);if(e<-1){let t=Math.sqrt(e*e-1);return new Y(Math.log(-e+t),Math.PI)}return new Y(0,Math.acos(e))}let n=new Y(e-1,t).sqrt(),r=new Y(e+1,t).sqrt();return new Y(e+n.re*r.re-n.im*r.im,t+n.re*r.im+n.im*r.re).log()},atanh:function(){let e=this.re,t=this.im;if(t===0){if(e===0)return new Y(0,0);if(e===1)return new Y(1/0,0);if(e===-1)return new Y(-1/0,0);if(-1<e&&e<1)return new Y(.5*Math.log((1+e)/(1-e)),0);if(e>1){let t=(e+1)/(e-1);return new Y(.5*Math.log(t),-Math.PI/2)}let t=(1+e)/(1-e);return new Y(.5*Math.log(-t),Math.PI/2)}let n=1-e,r=1+e,i=n*n+t*t;if(i===0)return new Y(e===-1?0:e/0,t===0?0:t/0);let a=(r*n-t*t)/i,o=(t*n+r*t)/i;return new Y(zp(a,o)/2,Math.atan2(o,a)/2)},acoth:function(){let e=this.re,t=this.im;if(e===0&&t===0)return new Y(0,Math.PI/2);let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).atanh():new Y(e/n,-t/n).atanh()},acsch:function(){let e=this.re,t=this.im;if(t===0){if(e===0)return new Y(1/0,0);let t=1/e;return new Y(Math.log(t+Math.sqrt(t*t+1)),0)}let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).asinh():new Y(e/n,-t/n).asinh()},asech:function(){let e=this.re,t=this.im;if(this.isZero())return Y.INFINITY;let n=e*e+t*t;return n===0?new Y(e===0?0:e/0,t===0?0:-t/0).acosh():new Y(e/n,-t/n).acosh()},inverse:function(){if(this.isZero())return Y.INFINITY;if(this.isInfinite())return Y.ZERO;let e=this.re,t=this.im,n=e*e+t*t;return new Y(e/n,-t/n)},conjugate:function(){return new Y(this.re,-this.im)},neg:function(){return new Y(-this.re,-this.im)},ceil:function(e){return e=10**(e||0),new Y(Math.ceil(this.re*e)/e,Math.ceil(this.im*e)/e)},floor:function(e){return e=10**(e||0),new Y(Math.floor(this.re*e)/e,Math.floor(this.im*e)/e)},round:function(e){return e=10**(e||0),new Y(Math.round(this.re*e)/e,Math.round(this.im*e)/e)},equals:function(e,t){let n=Vp(e,t);return Math.abs(n.re-this.re)<=Y.EPSILON&&Math.abs(n.im-this.im)<=Y.EPSILON},clone:function(){return new Y(this.re,this.im)},toString:function(){let e=this.re,t=this.im,n=``;return this.isNaN()?`NaN`:this.isInfinite()?`Infinity`:(Math.abs(e)<Y.EPSILON&&(e=0),Math.abs(t)<Y.EPSILON&&(t=0),t===0?n+e:(e===0?t<0&&(t=-t,n+=`-`):(n+=e,n+=` `,t<0?(t=-t,n+=`-`):n+=`+`,n+=` `),t!==1&&(n+=t),n+`i`))},toVector:function(){return[this.re,this.im]},valueOf:function(){return this.im===0?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return this.im===0&&this.re===0},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!this.isFinite()}},Y.ZERO=new Y(0,0),Y.ONE=new Y(1,0),Y.I=new Y(0,1),Y.PI=new Y(Math.PI,0),Y.E=new Y(Math.E,0),Y.INFINITY=new Y(1/0,1/0),Y.NAN=new Y(NaN,NaN),Y.EPSILON=1e-15;function Hp(e){"@babel/helpers - typeof";return Hp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Hp(e)}var Up=W(`Complex`,[],function(){return Y.prototype.type=`Complex`,Y.prototype.isComplex=!0,Y.prototype.toJSON=function(){return{mathjs:`Complex`,re:this.re,im:this.im}},Y.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},Y.prototype.format=function(e){var t=``,n=this.im,r=this.re,i=od(this.re,e),a=od(this.im,e),o=nu(e)?e:e?e.precision:null;if(o!==null){var s=10**-o;Math.abs(r/n)<s&&(r=0),Math.abs(n/r)<s&&(n=0)}return t=n===0?i:r===0?n===1?`i`:n===-1?`-i`:a+`i`:n<0?n===-1?i+` - i`:i+` - `+a.substring(1)+`i`:n===1?i+` + i`:i+` + `+a+`i`,t},Y.fromPolar=function(e){switch(arguments.length){case 1:var t=arguments[0];if(Hp(t)===`object`)return Y(t);throw TypeError(`Input has to be an object with r and phi keys.`);case 2:var n=arguments[0],r=arguments[1];if(nu(n)){if(ou(r)&&r.hasBase(`ANGLE`)&&(r=r.toNumber(`rad`)),nu(r))return new Y({r:n,phi:r});throw TypeError(`Phi is not a number nor an angle unit.`)}else throw TypeError(`Radius r is not a number.`);default:throw SyntaxError(`Wrong number of arguments in function fromPolar`)}},Y.prototype.valueOf=Y.prototype.toString,Y.fromJSON=function(e){return new Y(e)},Y.compare=function(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0},Y},{isClass:!0}),Wp=2e3,X={s:1,n:0,d:1};function Gp(e,t){if(isNaN(e=parseInt(e,10)))throw tm();return e*t}function Kp(e,t){if(t===0)throw em();var n=Object.create($p.prototype);n.s=e<0?-1:1,e=e<0?-e:e;var r=Qp(e,t);return n.n=e/r,n.d=t/r,n}function qp(e){for(var t={},n=e,r=2,i=4;i<=n;){for(;n%r===0;)n/=r,t[r]=(t[r]||0)+1;i+=1+2*r++}return n===e?t[e]=(t[e]||0)+1:n>1&&(t[n]=(t[n]||0)+1),t}var Jp=function(e,t){var n=0,r=1,i=1,a=0,o=0,s=0,c=1,l=1,u=0,d=1,f=1,p=1,m=1e7,h;if(e!=null)if(t!==void 0){if(n=e,r=t,i=n*r,n%1!=0||r%1!=0)throw nm()}else switch(typeof e){case`object`:if(`d`in e&&`n`in e)n=e.n,r=e.d,`s`in e&&(n*=e.s);else if(0 in e)n=e[0],1 in e&&(r=e[1]);else throw tm();i=n*r;break;case`number`:if(e<0&&(i=e,e=-e),e%1==0)n=e;else if(e>0){for(e>=1&&(l=10**Math.floor(1+Math.log(e)/Math.LN10),e/=l);d<=m&&p<=m;)if(h=(u+f)/(d+p),e===h){d+p<=m?(n=u+f,r=d+p):p>d?(n=f,r=p):(n=u,r=d);break}else e>h?(u+=f,d+=p):(f+=u,p+=d),d>m?(n=f,r=p):(n=u,r=d);n*=l}else (isNaN(e)||isNaN(t))&&(r=n=NaN);break;case`string`:if(d=e.match(/\d+|./g),d===null)throw tm();if(d[u]===`-`?(i=-1,u++):d[u]===`+`&&u++,d.length===u+1?o=Gp(d[u++],i):d[u+1]===`.`||d[u]===`.`?(d[u]!==`.`&&(a=Gp(d[u++],i)),u++,(u+1===d.length||d[u+1]===`(`&&d[u+3]===`)`||d[u+1]===`'`&&d[u+3]===`'`)&&(o=Gp(d[u],i),c=10**d[u].length,u++),(d[u]===`(`&&d[u+2]===`)`||d[u]===`'`&&d[u+2]===`'`)&&(s=Gp(d[u+1],i),l=10**d[u+1].length-1,u+=3)):d[u+1]===`/`||d[u+1]===`:`?(o=Gp(d[u],i),c=Gp(d[u+2],1),u+=3):d[u+3]===`/`&&d[u+1]===` `&&(a=Gp(d[u],i),o=Gp(d[u+2],i),c=Gp(d[u+4],1),u+=5),d.length<=u){r=c*l,i=n=s+r*a+l*o;break}default:throw tm()}if(r===0)throw em();X.s=i<0?-1:1,X.n=Math.abs(n),X.d=Math.abs(r)};function Yp(e,t,n){for(var r=1;t>0;e=e*e%n,t>>=1)t&1&&(r=r*e%n);return r}function Xp(e,t){for(;t%2==0;t/=2);for(;t%5==0;t/=5);if(t===1)return 0;for(var n=10%t,r=1;n!==1;r++)if(n=n*10%t,r>Wp)return 0;return r}function Zp(e,t,n){for(var r=1,i=Yp(10,n,t),a=0;a<300;a++){if(r===i)return a;r=r*10%t,i=i*10%t}return 0}function Qp(e,t){if(!e)return t;if(!t)return e;for(;;){if(e%=t,!e)return t;if(t%=e,!t)return e}}function $p(e,t){if(Jp(e,t),this instanceof $p)e=Qp(X.d,X.n),this.s=X.s,this.n=X.n/e,this.d=X.d/e;else return Kp(X.s*X.n,X.d)}var em=function(){return Error(`Division by Zero`)},tm=function(){return Error(`Invalid argument`)},nm=function(){return Error(`Parameters must be integer`)};$p.prototype={s:1,n:0,d:1,abs:function(){return Kp(this.n,this.d)},neg:function(){return Kp(-this.s*this.n,this.d)},add:function(e,t){return Jp(e,t),Kp(this.s*this.n*X.d+X.s*this.d*X.n,this.d*X.d)},sub:function(e,t){return Jp(e,t),Kp(this.s*this.n*X.d-X.s*this.d*X.n,this.d*X.d)},mul:function(e,t){return Jp(e,t),Kp(this.s*X.s*this.n*X.n,this.d*X.d)},div:function(e,t){return Jp(e,t),Kp(this.s*X.s*this.n*X.d,this.d*X.n)},clone:function(){return Kp(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new $p(NaN);if(e===void 0)return Kp(this.s*this.n%this.d,1);if(Jp(e,t),X.n===0&&this.d===0)throw em();return Kp(this.s*(X.d*this.n)%(X.n*this.d),X.d*this.d)},gcd:function(e,t){return Jp(e,t),Kp(Qp(X.n,this.n)*Qp(X.d,this.d),X.d*this.d)},lcm:function(e,t){return Jp(e,t),X.n===0&&this.n===0?Kp(0,1):Kp(X.n*this.n,Qp(X.n,this.n)*Qp(X.d,this.d))},ceil:function(e){return e=10**(e||0),isNaN(this.n)||isNaN(this.d)?new $p(NaN):Kp(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return e=10**(e||0),isNaN(this.n)||isNaN(this.d)?new $p(NaN):Kp(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return e=10**(e||0),isNaN(this.n)||isNaN(this.d)?new $p(NaN):Kp(Math.round(e*this.s*this.n/this.d),e)},roundTo:function(e,t){return Jp(e,t),Kp(this.s*Math.round(this.n*X.d/(this.d*X.n))*X.n,X.d)},inverse:function(){return Kp(this.s*this.d,this.n)},pow:function(e,t){if(Jp(e,t),X.d===1)return X.s<0?Kp((this.s*this.d)**+X.n,this.n**+X.n):Kp((this.s*this.n)**+X.n,this.d**+X.n);if(this.s<0)return null;var n=qp(this.n),r=qp(this.d),i=1,a=1;for(var o in n)if(o!==`1`){if(o===`0`){i=0;break}if(n[o]*=X.n,n[o]%X.d===0)n[o]/=X.d;else return null;i*=o**+n[o]}for(var o in r)if(o!==`1`){if(r[o]*=X.n,r[o]%X.d===0)r[o]/=X.d;else return null;a*=o**+r[o]}return X.s<0?Kp(a,i):Kp(i,a)},equals:function(e,t){return Jp(e,t),this.s*this.n*X.d===X.s*X.n*this.d},compare:function(e,t){Jp(e,t);var n=this.s*this.n*X.d-X.s*X.n*this.d;return(0<n)-(n<0)},simplify:function(e){if(isNaN(this.n)||isNaN(this.d))return this;e||=.001;for(var t=this.abs(),n=t.toContinued(),r=1;r<n.length;r++){for(var i=Kp(n[r-1],1),a=r-2;a>=0;a--)i=i.inverse().add(n[a]);if(Math.abs(i.sub(t).valueOf())<e)return i.mul(this.s)}return this},divisible:function(e,t){return Jp(e,t),!(!(X.n*this.d)||this.n*X.d%(X.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(e){var t,n=``,r=this.n,i=this.d;return this.s<0&&(n+=`-`),i===1?n+=r:(e&&(t=Math.floor(r/i))>0&&(n+=t,n+=` `,r%=i),n+=r,n+=`/`,n+=i),n},toLatex:function(e){var t,n=``,r=this.n,i=this.d;return this.s<0&&(n+=`-`),i===1?n+=r:(e&&(t=Math.floor(r/i))>0&&(n+=t,r%=i),n+=`\\frac{`,n+=r,n+=`}{`,n+=i,n+=`}`),n},toContinued:function(){var e,t=this.n,n=this.d,r=[];if(isNaN(t)||isNaN(n))return r;do r.push(Math.floor(t/n)),e=t%n,t=n,n=e;while(t!==1);return r},toString:function(e){var t=this.n,n=this.d;if(isNaN(t)||isNaN(n))return`NaN`;e||=15;var r=Xp(t,n),i=Zp(t,n,r),a=this.s<0?`-`:``;if(a+=t/n|0,t%=n,t*=10,t&&(a+=`.`),r){for(var o=i;o--;)a+=t/n|0,t%=n,t*=10;a+=`(`;for(var o=r;o--;)a+=t/n|0,t%=n,t*=10;a+=`)`}else for(var o=e;t&&o--;)a+=t/n|0,t%=n,t*=10;return a}};var rm=W(`Fraction`,[],function(){return $p.prototype.type=`Fraction`,$p.prototype.isFraction=!0,$p.prototype.toJSON=function(){return{mathjs:`Fraction`,n:this.s*this.n,d:this.d}},$p.fromJSON=function(e){return new $p(e)},$p},{isClass:!0}),im=W(`Matrix`,[],function(){function e(){if(!(this instanceof e))throw SyntaxError(`Constructor must be called with the new operator`)}return e.prototype.type=`Matrix`,e.prototype.isMatrix=!0,e.prototype.storage=function(){throw Error(`Cannot invoke storage on a Matrix interface`)},e.prototype.datatype=function(){throw Error(`Cannot invoke datatype on a Matrix interface`)},e.prototype.create=function(e,t){throw Error(`Cannot invoke create on a Matrix interface`)},e.prototype.subset=function(e,t,n){throw Error(`Cannot invoke subset on a Matrix interface`)},e.prototype.get=function(e){throw Error(`Cannot invoke get on a Matrix interface`)},e.prototype.set=function(e,t,n){throw Error(`Cannot invoke set on a Matrix interface`)},e.prototype.resize=function(e,t){throw Error(`Cannot invoke resize on a Matrix interface`)},e.prototype.reshape=function(e,t){throw Error(`Cannot invoke reshape on a Matrix interface`)},e.prototype.clone=function(){throw Error(`Cannot invoke clone on a Matrix interface`)},e.prototype.size=function(){throw Error(`Cannot invoke size on a Matrix interface`)},e.prototype.map=function(e,t){throw Error(`Cannot invoke map on a Matrix interface`)},e.prototype.forEach=function(e){throw Error(`Cannot invoke forEach on a Matrix interface`)},e.prototype.toArray=function(){throw Error(`Cannot invoke toArray on a Matrix interface`)},e.prototype.valueOf=function(){throw Error(`Cannot invoke valueOf on a Matrix interface`)},e.prototype.format=function(e){throw Error(`Cannot invoke format on a Matrix interface`)},e.prototype.toString=function(){throw Error(`Cannot invoke toString on a Matrix interface`)},e},{isClass:!0}),am=W(`DenseMatrix`,[`Matrix`],function(e){var t=e.Matrix;function n(e,t){if(!(this instanceof n))throw SyntaxError(`Constructor must be called with the new operator`);if(t&&!su(t))throw Error(`Invalid datatype: `+t);if(lu(e))e.type===`DenseMatrix`?(this._data=Hu(e._data),this._size=Hu(e._size),this._datatype=t||e._datatype):(this._data=e.toArray(),this._size=e.size(),this._datatype=t||e._datatype);else if(e&&cu(e.data)&&cu(e.size))this._data=e.data,this._size=e.size,kd(this._data,this._size),this._datatype=t||e.datatype;else if(cu(e))this._data=l(e),this._size=Dd(this._data),kd(this._data,this._size),this._datatype=t;else if(e)throw TypeError(`Unsupported type of data (`+Bu(e)+`)`);else this._data=[],this._size=[0],this._datatype=t}n.prototype=new t,n.prototype.createDenseMatrix=function(e,t){return new n(e,t)},n.prototype.type=`DenseMatrix`,n.prototype.isDenseMatrix=!0,n.prototype.getDataType=function(){return Rd(this._data,Bu)},n.prototype.storage=function(){return`dense`},n.prototype.datatype=function(){return this._datatype},n.prototype.create=function(e,t){return new n(e,t)},n.prototype.subset=function(e,t,n){switch(arguments.length){case 1:return r(this,e);case 2:case 3:return a(this,e,t,n);default:throw SyntaxError(`Wrong number of arguments`)}},n.prototype.get=function(e){if(!cu(e))throw TypeError(`Array expected`);if(e.length!==this._size.length)throw new Td(e.length,this._size.length);for(var t=0;t<e.length;t++)Ad(e[t],this._size[t]);for(var n=this._data,r=0,i=e.length;r<i;r++){var a=e[r];Ad(a,n.length),n=n[a]}return n},n.prototype.set=function(e,t,n){if(!cu(e))throw TypeError(`Array expected`);if(e.length<this._size.length)throw new Td(e.length,this._size.length,`<`);var r,i,a,o=e.map(function(e){return e+1});c(this,o,n);var s=this._data;for(r=0,i=e.length-1;r<i;r++)a=e[r],Ad(a,s.length),s=s[a];return a=e[e.length-1],Ad(a,s.length),s[a]=t,this};function r(e,t){if(!mu(t))throw TypeError(`Invalid index`);if(t.isScalar())return e.get(t.min());var r=t.size();if(r.length!==e._size.length)throw new Td(r.length,e._size.length);for(var a=t.min(),o=t.max(),s=0,c=e._size.length;s<c;s++)Ad(a[s],e._size[s]),Ad(o[s],e._size[s]);return new n(i(e._data,t,r.length,0),e._datatype)}function i(e,t,n,r){var a=r===n-1,o=t.dimension(r);return a?o.map(function(t){return Ad(t,e.length),e[t]}).valueOf():o.map(function(a){Ad(a,e.length);var o=e[a];return i(o,t,n,r+1)}).valueOf()}function a(e,t,n,r){if(!t||t.isIndex!==!0)throw TypeError(`Invalid index`);var i=t.size(),a=t.isScalar(),s;if(lu(n)?(s=n.size(),n=n.valueOf()):s=Dd(n),a){if(s.length!==0)throw TypeError(`Scalar expected`);e.set(t.min(),n,r)}else{if(i.length<e._size.length)throw new Td(i.length,e._size.length,`<`);if(s.length<i.length){for(var l=0,u=0;i[l]===1&&s[l]===1;)l++;for(;i[l]===1;)u++,l++;n=Fd(n,i.length,u,s)}if(!Gu(i,s))throw new Td(i,s,`>`);c(e,t.max().map(function(e){return e+1}),r);var d=i.length;o(e._data,t,n,d,0)}return e}function o(e,t,n,r,i){var a=i===r-1,s=t.dimension(i);a?s.forEach(function(t,r){Ad(t),e[t]=n[r[0]]}):s.forEach(function(a,s){Ad(a),o(e[a],t,n[s[0]],r,i+1)})}n.prototype.resize=function(e,t,n){if(!uu(e))throw TypeError(`Array or Matrix expected`);var r=e.valueOf().map(function(e){return Array.isArray(e)&&e.length===1?e[0]:e});return s(n?this.clone():this,r,t)};function s(e,t,n){if(t.length===0){for(var r=e._data;cu(r);)r=r[0];return r}return e._size=t.slice(0),e._data=jd(e._data,e._size,n),e}n.prototype.reshape=function(e,t){var n=t?this.clone():this;return n._data=Nd(n._data,e),n._size=e.slice(0),n};function c(e,t,n){for(var r=e._size.slice(0),i=!1;r.length<t.length;)r.push(0),i=!0;for(var a=0,o=t.length;a<o;a++)t[a]>r[a]&&(r[a]=t[a],i=!0);i&&s(e,r,n)}n.prototype.clone=function(){return new n({data:Hu(this._data),size:Hu(this._size),datatype:this._datatype})},n.prototype.size=function(){return this._size.slice(0)},n.prototype.map=function(e){var t=this,r=function n(r,i){return cu(r)?r.map(function(e,t){return n(e,i.concat(t))}):e(r,i,t)}(this._data,[]);return new n(r,this._datatype===void 0?void 0:Rd(r,Bu))},n.prototype.forEach=function(e){var t=this;(function n(r,i){cu(r)?r.forEach(function(e,t){n(e,i.concat(t))}):e(r,i,t)})(this._data,[])},n.prototype.toArray=function(){return Hu(this._data)},n.prototype.valueOf=function(){return this._data},n.prototype.format=function(e){return Sd(this._data,e)},n.prototype.toString=function(){return Sd(this._data)},n.prototype.toJSON=function(){return{mathjs:`DenseMatrix`,data:this._data,size:this._size,datatype:this._datatype}},n.prototype.diagonal=function(e){if(e){if(ru(e)&&(e=e.toNumber()),!nu(e)||!$u(e))throw TypeError(`The parameter k must be an integer number`)}else e=0;for(var t=e>0?e:0,r=e<0?-e:0,i=this._size[0],a=this._size[1],o=Math.min(i-r,a-t),s=[],c=0;c<o;c++)s[c]=this._data[c+r][c+t];return new n({data:s,size:[o],datatype:this._datatype})},n.diagonal=function(e,t,r,i){if(!cu(e))throw TypeError(`Array expected, size parameter`);if(e.length!==2)throw Error(`Only two dimensions matrix are supported`);if(e=e.map(function(e){if(ru(e)&&(e=e.toNumber()),!nu(e)||!$u(e)||e<1)throw Error(`Size values must be positive integers`);return e}),r){if(ru(r)&&(r=r.toNumber()),!nu(r)||!$u(r))throw TypeError(`The parameter k must be an integer number`)}else r=0;var a=r>0?r:0,o=r<0?-r:0,s=e[0],c=e[1],l=Math.min(s-o,c-a),u;if(cu(t)){if(t.length!==l)throw Error(`Invalid value array length`);u=function(e){return t[e]}}else if(lu(t)){var d=t.size();if(d.length!==1||d[0]!==l)throw Error(`Invalid matrix length`);u=function(e){return t.get([e])}}else u=function(){return t};i||=ru(u(0))?u(0).mul(0):0;var f=[];if(e.length>0){f=jd(f,e,i);for(var p=0;p<l;p++)f[p+o][p+a]=u(p)}return new n({data:f,size:[s,c]})},n.fromJSON=function(e){return new n(e)},n.prototype.swapRows=function(e,t){if(!nu(e)||!$u(e)||!nu(t)||!$u(t))throw Error(`Row index must be positive integers`);if(this._size.length!==2)throw Error(`Only two dimensional matrix is supported`);return Ad(e,this._size[0]),Ad(t,this._size[0]),n._swapRows(e,t,this._data),this},n._swapRows=function(e,t,n){var r=n[e];n[e]=n[t],n[t]=r};function l(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];cu(r)?e[t]=l(r):r&&r.isMatrix===!0&&(e[t]=l(r.valueOf()))}return e}return n},{isClass:!0});function om(e,t,n){return e&&typeof e.map==`function`?e.map(function(e){return om(e,t,n)}):t(e)}var sm=`number`,cm=`number, number`;function lm(e){return Math.abs(e)}lm.signature=sm;function um(e,t){return e+t}um.signature=cm;function dm(e,t){return e-t}dm.signature=cm;function fm(e,t){return e*t}fm.signature=cm;function pm(e,t){return e/t}pm.signature=cm;function mm(e){return-e}mm.signature=sm;function hm(e){return e}hm.signature=sm;function gm(e){return id(e)}gm.signature=sm;function _m(e){return Math.ceil(e)}_m.signature=sm;function vm(e){return e*e*e}vm.signature=sm;function ym(e){return Math.exp(e)}ym.signature=sm;function bm(e){return ad(e)}bm.signature=sm;function xm(e){return e>0?Math.floor(e):Math.ceil(e)}xm.signature=sm;function Sm(e){return Math.floor(e)}Sm.signature=sm;function Cm(e,t){if(!$u(e)||!$u(t))throw Error(`Parameters in function gcd must be integer numbers`);for(var n;t!==0;)n=e%t,e=t,t=n;return e<0?-e:e}Cm.signature=cm;function wm(e,t){if(!$u(e)||!$u(t))throw Error(`Parameters in function lcm must be integer numbers`);if(e===0||t===0)return 0;for(var n,r=e*t;t!==0;)n=t,t=e%n,e=n;return Math.abs(r/e)}wm.signature=cm;function Tm(e){return Math.log(e)}Tm.signature=sm;function Em(e){return nd(e)}Em.signature=sm;function Dm(e){return td(e)}Dm.signature=sm;function Om(e){return rd(e)}Om.signature=sm;function km(e,t){if(t>0)return e-t*Math.floor(e/t);if(t===0)return e;throw Error(`Cannot calculate mod for a negative divisor`)}km.signature=cm;function Am(e,t){var n=t<0;if(n&&(t=-t),t===0)throw Error(`Root must be non-zero`);if(e<0&&Math.abs(t)%2!=1)throw Error(`Root must be odd when a is negative.`);if(e===0)return n?1/0:0;if(!isFinite(e))return n?0:e;var r=Math.abs(e)**(1/t);return r=e<0?-r:r,n?1/r:r}Am.signature=cm;function jm(e){return ed(e)}jm.signature=sm;function Mm(e){return Math.sqrt(e)}Mm.signature=sm;function Nm(e){return e*e}Nm.signature=sm;function Pm(e,t){var n,r,i,a=0,o=1,s=1,c=0;if(!$u(e)||!$u(t))throw Error(`Parameters in function xgcd must be integer numbers`);for(;t;)r=Math.floor(e/t),i=e-r*t,n=a,a=o-r*a,o=n,n=s,s=c-r*s,c=n,e=t,t=i;return e<0?[-e,-o,-c]:[e,e?o:0,c]}Pm.signature=cm;function Fm(e,t){return e*e<1&&t===1/0||e*e>1&&t===-1/0?0:e**+t}Fm.signature=cm;function Im(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return parseFloat(ld(e,t))}Im.signature=cm;function Lm(e){return Math.abs(e)}Lm.signature=sm;function Rm(e,t,n){if(n==null)return e.eq(t);if(e.eq(t))return!0;if(e.isNaN()||t.isNaN())return!1;if(e.isFinite()&&t.isFinite()){var r=e.minus(t).abs();if(r.isZero())return!0;var i=e.constructor.max(e.abs(),t.abs());return r.lte(i.times(n))}return!1}function zm(e,t,n){return gd(e.re,t.re,n)&&gd(e.im,t.im,n)}var Bm=`equalScalar`,Vm=W(Bm,[`typed`,`config`],function(e){var t=e.typed,n=e.config;return t(Bm,{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,t){return gd(e,t,n.epsilon)},"BigNumber, BigNumber":function(e,t){return e.eq(t)||Rm(e,t,n.epsilon)},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,t){return zm(e,t,n.epsilon)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw Error(`Cannot compare units with different base`);return this(e.value,t.value)}})});W(Bm,[`typed`,`config`],function(e){var t=e.typed,n=e.config;return t(Bm,{"number, number":function(e,t){return gd(e,t,n.epsilon)}})});var Hm=W(`SparseMatrix`,[`typed`,`equalScalar`,`Matrix`],function(e){var t=e.typed,n=e.equalScalar,r=e.Matrix;function i(e,t){if(!(this instanceof i))throw SyntaxError(`Constructor must be called with the new operator`);if(t&&!su(t))throw Error(`Invalid datatype: `+t);if(lu(e))a(this,e,t);else if(e&&cu(e.index)&&cu(e.ptr)&&cu(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if(cu(e))o(this,e,t);else if(e)throw TypeError(`Unsupported type of data (`+Bu(e)+`)`);else this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}function a(e,t,n){t.type===`SparseMatrix`?(e._values=t._values?Hu(t._values):void 0,e._index=Hu(t._index),e._ptr=Hu(t._ptr),e._size=Hu(t._size),e._datatype=n||t._datatype):o(e,t.valueOf(),n||t._datatype)}function o(e,r,i){e._values=[],e._index=[],e._ptr=[],e._datatype=i;var a=r.length,o=0,s=n,c=0;if(su(i)&&(s=t.find(n,[i,i])||n,c=t.convert(0,i)),a>0){var l=0;do{e._ptr.push(e._index.length);for(var u=0;u<a;u++){var d=r[u];if(cu(d)){if(l===0&&o<d.length&&(o=d.length),l<d.length){var f=d[l];s(f,c)||(e._values.push(f),e._index.push(u))}}else l===0&&o<1&&(o=1),s(d,c)||(e._values.push(d),e._index.push(u))}l++}while(l<o)}e._ptr.push(e._index.length),e._size=[a,o]}i.prototype=new r,i.prototype.createSparseMatrix=function(e,t){return new i(e,t)},i.prototype.type=`SparseMatrix`,i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return Rd(this._values,Bu)},i.prototype.storage=function(){return`sparse`},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(e,t){return new i(e,t)},i.prototype.density=function(){var e=this._size[0],t=this._size[1];return e!==0&&t!==0?this._index.length/(e*t):0},i.prototype.subset=function(e,t,n){if(!this._values)throw Error(`Cannot invoke subset on a Pattern only matrix`);switch(arguments.length){case 1:return s(this,e);case 2:case 3:return c(this,e,t,n);default:throw SyntaxError(`Wrong number of arguments`)}};function s(e,t){if(!mu(t))throw TypeError(`Invalid index`);if(t.isScalar())return e.get(t.min());var n=t.size();if(n.length!==e._size.length)throw new Td(n.length,e._size.length);var r,a,o,s,c=t.min(),l=t.max();for(r=0,a=e._size.length;r<a;r++)Ad(c[r],e._size[r]),Ad(l[r],e._size[r]);var u=e._values,d=e._index,f=e._ptr,p=t.dimension(0),m=t.dimension(1),h=[],g=[];p.forEach(function(e,t){g[e]=t[0],h[e]=!0});var _=u?[]:void 0,v=[],y=[];return m.forEach(function(e){for(y.push(v.length),o=f[e],s=f[e+1];o<s;o++)r=d[o],h[r]===!0&&(v.push(g[r]),_&&_.push(u[o]))}),y.push(v.length),new i({values:_,index:v,ptr:y,size:n,datatype:e._datatype})}function c(e,t,n,r){if(!t||t.isIndex!==!0)throw TypeError(`Invalid index`);var i=t.size(),a=t.isScalar(),o;if(lu(n)?(o=n.size(),n=n.toArray()):o=Dd(n),a){if(o.length!==0)throw TypeError(`Scalar expected`);e.set(t.min(),n,r)}else{if(i.length!==1&&i.length!==2)throw new Td(i.length,e._size.length,`<`);if(o.length<i.length){for(var s=0,c=0;i[s]===1&&o[s]===1;)s++;for(;i[s]===1;)c++,s++;n=Fd(n,i.length,c,o)}if(!Gu(i,o))throw new Td(i,o,`>`);for(var l=t.min()[0],u=t.min()[1],d=o[0],f=o[1],p=0;p<d;p++)for(var m=0;m<f;m++){var h=n[p][m];e.set([p+l,m+u],h,r)}}return e}i.prototype.get=function(e){if(!cu(e))throw TypeError(`Array expected`);if(e.length!==this._size.length)throw new Td(e.length,this._size.length);if(!this._values)throw Error(`Cannot invoke get on a Pattern only matrix`);var t=e[0],n=e[1];Ad(t,this._size[0]),Ad(n,this._size[1]);var r=l(t,this._ptr[n],this._ptr[n+1],this._index);return r<this._ptr[n+1]&&this._index[r]===t?this._values[r]:0},i.prototype.set=function(e,r,i){if(!cu(e))throw TypeError(`Array expected`);if(e.length!==this._size.length)throw new Td(e.length,this._size.length);if(!this._values)throw Error(`Cannot invoke set on a Pattern only matrix`);var a=e[0],o=e[1],s=this._size[0],c=this._size[1],p=n,m=0;su(this._datatype)&&(p=t.find(n,[this._datatype,this._datatype])||n,m=t.convert(0,this._datatype)),(a>s-1||o>c-1)&&(f(this,Math.max(a+1,s),Math.max(o+1,c),i),s=this._size[0],c=this._size[1]),Ad(a,s),Ad(o,c);var h=l(a,this._ptr[o],this._ptr[o+1],this._index);return h<this._ptr[o+1]&&this._index[h]===a?p(r,m)?u(h,o,this._values,this._index,this._ptr):this._values[h]=r:d(h,a,o,r,this._values,this._index,this._ptr),this};function l(e,t,n,r){if(n-t===0)return n;for(var i=t;i<n;i++)if(r[i]===e)return i;return t}function u(e,t,n,r,i){n.splice(e,1),r.splice(e,1);for(var a=t+1;a<i.length;a++)i[a]--}function d(e,t,n,r,i,a,o){i.splice(e,0,r),a.splice(e,0,t);for(var s=n+1;s<o.length;s++)o[s]++}i.prototype.resize=function(e,t,n){if(!uu(e))throw TypeError(`Array or Matrix expected`);var r=e.valueOf().map(function(e){return Array.isArray(e)&&e.length===1?e[0]:e});if(r.length!==2)throw Error(`Only two dimensions matrix are supported`);return r.forEach(function(e){if(!nu(e)||!$u(e)||e<0)throw TypeError(`Invalid size, must contain positive integers (size: `+Sd(r)+`)`)}),f(n?this.clone():this,r[0],r[1],t)};function f(e,r,i,a){var o=a||0,s=n,c=0;su(e._datatype)&&(s=t.find(n,[e._datatype,e._datatype])||n,c=t.convert(0,e._datatype),o=t.convert(o,e._datatype));var l=!s(o,c),u=e._size[0],d=e._size[1],f,p,m;if(i>d){for(p=d;p<i;p++)if(e._ptr[p]=e._values.length,l)for(f=0;f<u;f++)e._values.push(o),e._index.push(f);e._ptr[i]=e._values.length}else i<d&&(e._ptr.splice(i+1,d-i),e._values.splice(e._ptr[i],e._values.length),e._index.splice(e._ptr[i],e._index.length));if(d=i,r>u){if(l){var h=0;for(p=0;p<d;p++){e._ptr[p]=e._ptr[p]+h,m=e._ptr[p+1]+h;var g=0;for(f=u;f<r;f++,g++)e._values.splice(m+g,0,o),e._index.splice(m+g,0,f),h++}e._ptr[d]=e._values.length}}else if(r<u){var _=0;for(p=0;p<d;p++){e._ptr[p]=e._ptr[p]-_;var v=e._ptr[p],y=e._ptr[p+1]-_;for(m=v;m<y;m++)f=e._index[m],f>r-1&&(e._values.splice(m,1),e._index.splice(m,1),_++)}e._ptr[p]=e._values.length}return e._size[0]=r,e._size[1]=i,e}i.prototype.reshape=function(e,t){if(!cu(e))throw TypeError(`Array expected`);if(e.length!==2)throw Error(`Sparse matrices can only be reshaped in two dimensions`);if(e.forEach(function(t){if(!nu(t)||!$u(t)||t<0)throw TypeError(`Invalid size, must contain positive integers (size: `+Sd(e)+`)`)}),this._size[0]*this._size[1]!==e[0]*e[1])throw Error(`Reshaping sparse matrix will result in the wrong number of elements`);var n=t?this.clone():this;if(this._size[0]===e[0]&&this._size[1]===e[1])return n;for(var r=[],i=0;i<n._ptr.length;i++)for(var a=0;a<n._ptr[i+1]-n._ptr[i];a++)r.push(i);for(var o=n._values.slice(),s=n._index.slice(),c=0;c<n._index.length;c++){var u=s[c],f=r[c],p=u*n._size[1]+f;r[c]=p%e[1],s[c]=Math.floor(p/e[1])}n._values.length=0,n._index.length=0,n._ptr.length=e[1]+1,n._size=e.slice();for(var m=0;m<n._ptr.length;m++)n._ptr[m]=0;for(var h=0;h<o.length;h++){var g=s[h],_=r[h],v=o[h];d(l(g,n._ptr[_],n._ptr[_+1],n._index),g,_,v,n._values,n._index,n._ptr)}return n},i.prototype.clone=function(){return new i({values:this._values?Hu(this._values):void 0,index:Hu(this._index),ptr:Hu(this._ptr),size:Hu(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(e,t){if(!this._values)throw Error(`Cannot invoke map on a Pattern only matrix`);var n=this,r=this._size[0],i=this._size[1];return p(this,0,r-1,0,i-1,function(t,r,i){return e(t,[r,i],n)},t)};function p(e,r,a,o,s,c,l){var u=[],d=[],f=[],p=n,m=0;su(e._datatype)&&(p=t.find(n,[e._datatype,e._datatype])||n,m=t.convert(0,e._datatype));for(var h=function(e,t,n){e=c(e,t,n),p(e,m)||(u.push(e),d.push(t))},g=o;g<=s;g++){f.push(u.length);var _=e._ptr[g],v=e._ptr[g+1];if(l)for(var y=_;y<v;y++){var b=e._index[y];b>=r&&b<=a&&h(e._values[y],b-r,g-o)}else{for(var x={},S=_;S<v;S++){var C=e._index[S];x[C]=e._values[S]}for(var w=r;w<=a;w++)h(w in x?x[w]:0,w-r,g-o)}}return f.push(u.length),new i({values:u,index:d,ptr:f,size:[a-r+1,s-o+1]})}i.prototype.forEach=function(e,t){if(!this._values)throw Error(`Cannot invoke forEach on a Pattern only matrix`);for(var n=this,r=this._size[0],i=this._size[1],a=0;a<i;a++){var o=this._ptr[a],s=this._ptr[a+1];if(t)for(var c=o;c<s;c++){var l=this._index[c];e(this._values[c],[l,a],n)}else{for(var u={},d=o;d<s;d++){var f=this._index[d];u[f]=this._values[d]}for(var p=0;p<r;p++)e(p in u?u[p]:0,[p,a],n)}}},i.prototype.toArray=function(){return m(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return m(this._values,this._index,this._ptr,this._size,!1)};function m(e,t,n,r,i){var a=r[0],o=r[1],s=[],c,l;for(c=0;c<a;c++)for(s[c]=[],l=0;l<o;l++)s[c][l]=0;for(l=0;l<o;l++)for(var u=n[l],d=n[l+1],f=u;f<d;f++)c=t[f],s[c][l]=e?i?Hu(e[f]):e[f]:1;return s}return i.prototype.format=function(e){for(var t=this._size[0],n=this._size[1],r=this.density(),i=`Sparse Matrix [`+Sd(t,e)+` x `+Sd(n,e)+`] density: `+Sd(r,e)+`
152
+ `,a=0;a<n;a++)for(var o=this._ptr[a],s=this._ptr[a+1],c=o;c<s;c++){var l=this._index[c];i+=`
153
+ (`+Sd(l,e)+`, `+Sd(a,e)+`) ==> `+(this._values?Sd(this._values[c],e):`X`)}return i},i.prototype.toString=function(){return Sd(this.toArray())},i.prototype.toJSON=function(){return{mathjs:`SparseMatrix`,values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(e){if(e){if(ru(e)&&(e=e.toNumber()),!nu(e)||!$u(e))throw TypeError(`The parameter k must be an integer number`)}else e=0;var t=e>0?e:0,n=e<0?-e:0,r=this._size[0],a=this._size[1],o=Math.min(r-n,a-t),s=[],c=[],l=[];l[0]=0;for(var u=t;u<a&&s.length<o;u++)for(var d=this._ptr[u],f=this._ptr[u+1],p=d;p<f;p++){var m=this._index[p];if(m===u-t+n){s.push(this._values[p]),c[s.length-1]=m-n;break}}return l.push(s.length),new i({values:s,index:c,ptr:l,size:[o,1]})},i.fromJSON=function(e){return new i(e)},i.diagonal=function(e,r,a,o,s){if(!cu(e))throw TypeError(`Array expected, size parameter`);if(e.length!==2)throw Error(`Only two dimensions matrix are supported`);if(e=e.map(function(e){if(ru(e)&&(e=e.toNumber()),!nu(e)||!$u(e)||e<1)throw Error(`Size values must be positive integers`);return e}),a){if(ru(a)&&(a=a.toNumber()),!nu(a)||!$u(a))throw TypeError(`The parameter k must be an integer number`)}else a=0;var c=n,l=0;su(s)&&(c=t.find(n,[s,s])||n,l=t.convert(0,s));var u=a>0?a:0,d=a<0?-a:0,f=e[0],p=e[1],m=Math.min(f-d,p-u),h;if(cu(r)){if(r.length!==m)throw Error(`Invalid value array length`);h=function(e){return r[e]}}else if(lu(r)){var g=r.size();if(g.length!==1||g[0]!==m)throw Error(`Invalid matrix length`);h=function(e){return r.get([e])}}else h=function(){return r};for(var _=[],v=[],y=[],b=0;b<p;b++){y.push(_.length);var x=b-u;if(x>=0&&x<m){var S=h(x);c(S,l)||(v.push(x+d),_.push(S))}}return y.push(_.length),new i({values:_,index:v,ptr:y,size:[f,p]})},i.prototype.swapRows=function(e,t){if(!nu(e)||!$u(e)||!nu(t)||!$u(t))throw Error(`Row index must be positive integers`);if(this._size.length!==2)throw Error(`Only two dimensional matrix is supported`);return Ad(e,this._size[0]),Ad(t,this._size[0]),i._swapRows(e,t,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(e,t,n,r,i){for(var a=r[e],o=r[e+1],s=a;s<o;s++)i(n[s],t[s])},i._swapRows=function(e,t,n,r,i,a){for(var o=0;o<n;o++){var s=a[o],c=a[o+1],u=l(e,s,c,i),d=l(t,s,c,i);if(u<c&&d<c&&i[u]===e&&i[d]===t){if(r){var f=r[u];r[u]=r[d],r[d]=f}continue}if(u<c&&i[u]===e&&(d>=c||i[d]!==t)){var p=r?r[u]:void 0;i.splice(d,0,t),r&&r.splice(d,0,p),i.splice(d<=u?u+1:u,1),r&&r.splice(d<=u?u+1:u,1);continue}if(d<c&&i[d]===t&&(u>=c||i[u]!==e)){var m=r?r[d]:void 0;i.splice(u,0,e),r&&r.splice(u,0,m),i.splice(u<=d?d+1:d,1),r&&r.splice(u<=d?d+1:d,1)}}},i},{isClass:!0}),Um=W(`number`,[`typed`],function(e){var t=e.typed,n=t(`number`,{"":function(){return 0},number:function(e){return e},string:function(e){if(e===`NaN`)return NaN;var t=Number(e);if(isNaN(t))throw SyntaxError(`String "`+e+`" is no valid number`);if([`0b`,`0o`,`0x`].includes(e.substring(0,2))){if(t>2**32-1)throw SyntaxError(`String "${e}" is out of range`);t&2147483648&&(t=-1*~(t-1))}return t},BigNumber:function(e){return e.toNumber()},Fraction:function(e){return e.valueOf()},Unit:function(e){throw Error(`Second argument with valueless unit expected`)},null:function(e){return 0},"Unit, string | Unit":function(e,t){return e.toNumber(t)},"Array | Matrix":function(e){return om(e,this)}});return n.fromJSON=function(e){return parseFloat(e.value)},n}),Wm=W(`bignumber`,[`typed`,`BigNumber`],function(e){var t=e.typed,n=e.BigNumber;return t(`bignumber`,{"":function(){return new n(0)},number:function(e){return new n(e+``)},string:function(e){return new n(e)},BigNumber:function(e){return e},Fraction:function(e){return new n(e.n).div(e.d).times(e.s)},null:function(e){return new n(0)},"Array | Matrix":function(e){return om(e,this)}})}),Gm=W(`fraction`,[`typed`,`Fraction`],function(e){var t=e.typed,n=e.Fraction;return t(`fraction`,{number:function(e){if(!isFinite(e)||isNaN(e))throw Error(e+` cannot be represented as a fraction`);return new n(e)},string:function(e){return new n(e)},"number, number":function(e,t){return new n(e,t)},null:function(e){return new n(0)},BigNumber:function(e){return new n(e.toString())},Fraction:function(e){return e},Object:function(e){return new n(e)},"Array | Matrix":function(e){return om(e,this)}})}),Km=`matrix`,qm=W(Km,[`typed`,`Matrix`,`DenseMatrix`,`SparseMatrix`],function(e){var t=e.typed;e.Matrix;var n=e.DenseMatrix,r=e.SparseMatrix;return t(Km,{"":function(){return i([])},string:function(e){return i([],e)},"string, string":function(e,t){return i([],e,t)},Array:function(e){return i(e)},Matrix:function(e){return i(e,e.storage())},"Array | Matrix, string":i,"Array | Matrix, string, string":i});function i(e,t,i){if(t===`dense`||t==="default"||t===void 0)return new n(e,i);if(t===`sparse`)return new r(e,i);throw TypeError(`Unknown matrix type `+JSON.stringify(t)+`.`)}}),Jm=`unaryMinus`,Ym=W(Jm,[`typed`],function(e){var t=e.typed;return t(Jm,{number:mm,Complex:function(e){return e.neg()},BigNumber:function(e){return e.neg()},Fraction:function(e){return e.neg()},Unit:function(e){var t=e.clone();return t.value=this(e.value),t},"Array | Matrix":function(e){return om(e,this,!0)}})}),Xm=`abs`,Zm=W(Xm,[`typed`],function(e){var t=e.typed;return t(Xm,{number:lm,Complex:function(e){return e.abs()},BigNumber:function(e){return e.abs()},Fraction:function(e){return e.abs()},"Array | Matrix":function(e){return om(e,this,!0)},Unit:function(e){return e.abs()}})}),Qm=`addScalar`,$m=W(Qm,[`typed`],function(e){var t=e.typed;return t(Qm,{"number, number":um,"Complex, Complex":function(e,t){return e.add(t)},"BigNumber, BigNumber":function(e,t){return e.plus(t)},"Fraction, Fraction":function(e,t){return e.add(t)},"Unit, Unit":function(e,t){if(e.value===null||e.value===void 0)throw Error(`Parameter x contains a unit with undefined value`);if(t.value===null||t.value===void 0)throw Error(`Parameter y contains a unit with undefined value`);if(!e.equalBase(t))throw Error(`Units do not match`);var n=e.clone();return n.value=this(n.value,t.value),n.fixPrefix=!1,n}})}),eh=W(`algorithm11`,[`typed`,`equalScalar`],function(e){var t=e.typed,n=e.equalScalar;return function(e,r,i,a){var o=e._values,s=e._index,c=e._ptr,l=e._size,u=e._datatype;if(!o)throw Error(`Cannot perform operation on Pattern Sparse Matrix and Scalar value`);var d=l[0],f=l[1],p,m=n,h=0,g=i;typeof u==`string`&&(p=u,m=t.find(n,[p,p]),h=t.convert(0,p),r=t.convert(r,p),g=t.find(i,[p,p]));for(var _=[],v=[],y=[],b=0;b<f;b++){y[b]=v.length;for(var x=c[b],S=c[b+1],C=x;C<S;C++){var w=s[C],T=a?g(r,o[C]):g(o[C],r);m(T,h)||(v.push(w),_.push(T))}}return y[f]=v.length,e.createSparseMatrix({values:_,index:v,ptr:y,size:[d,f],datatype:p})}}),th=W(`algorithm14`,[`typed`],function(e){var t=e.typed;return function(e,r,i,a){var o=e._data,s=e._size,c=e._datatype,l,u=i;typeof c==`string`&&(l=c,r=t.convert(r,l),u=t.find(i,[l,l]));var d=s.length>0?n(u,0,s,s[0],o,r,a):[];return e.createDenseMatrix({data:d,size:Hu(s),datatype:l})};function n(e,t,r,i,a,o,s){var c=[];if(t===r.length-1)for(var l=0;l<i;l++)c[l]=s?e(o,a[l]):e(a[l],o);else for(var u=0;u<i;u++)c[u]=n(e,t+1,r,r[t+1],a[u],o,s);return c}}),nh=W(`algorithm01`,[`typed`],function(e){var t=e.typed;return function(e,n,r,i){var a=e._data,o=e._size,s=e._datatype,c=n._values,l=n._index,u=n._ptr,d=n._size,f=n._datatype;if(o.length!==d.length)throw new Td(o.length,d.length);if(o[0]!==d[0]||o[1]!==d[1])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+d+`)`);if(!c)throw Error(`Cannot perform operation on Dense Matrix and Pattern Sparse Matrix`);var p=o[0],m=o[1],h=typeof s==`string`&&s===f?s:void 0,g=h?t.find(r,[h,h]):r,_,v,y=[];for(_=0;_<p;_++)y[_]=[];var b=[],x=[];for(v=0;v<m;v++){for(var S=v+1,C=u[v],w=u[v+1],T=C;T<w;T++)_=l[T],b[_]=i?g(c[T],a[_][v]):g(a[_][v],c[T]),x[_]=S;for(_=0;_<p;_++)x[_]===S?y[_][v]=b[_]:y[_][v]=a[_][v]}return e.createDenseMatrix({data:y,size:[p,m],datatype:h})}}),rh=W(`algorithm04`,[`typed`,`equalScalar`],function(e){var t=e.typed,n=e.equalScalar;return function(e,r,i){var a=e._values,o=e._index,s=e._ptr,c=e._size,l=e._datatype,u=r._values,d=r._index,f=r._ptr,p=r._size,m=r._datatype;if(c.length!==p.length)throw new Td(c.length,p.length);if(c[0]!==p[0]||c[1]!==p[1])throw RangeError(`Dimension mismatch. Matrix A (`+c+`) must match Matrix B (`+p+`)`);var h=c[0],g=c[1],_,v=n,y=0,b=i;typeof l==`string`&&l===m&&(_=l,v=t.find(n,[_,_]),y=t.convert(0,_),b=t.find(i,[_,_]));var x=a&&u?[]:void 0,S=[],C=[],w=a&&u?[]:void 0,T=a&&u?[]:void 0,E=[],D=[],O,k,A,j,M;for(k=0;k<g;k++){C[k]=S.length;var N=k+1;for(j=s[k],M=s[k+1],A=j;A<M;A++)O=o[A],S.push(O),E[O]=N,w&&(w[O]=a[A]);for(j=f[k],M=f[k+1],A=j;A<M;A++)if(O=d[A],E[O]===N){if(w){var P=b(w[O],u[A]);v(P,y)?E[O]=null:w[O]=P}}else S.push(O),D[O]=N,T&&(T[O]=u[A]);if(w&&T)for(A=C[k];A<S.length;)O=S[A],E[O]===N?(x[A]=w[O],A++):D[O]===N?(x[A]=T[O],A++):S.splice(A,1)}return C[g]=S.length,e.createSparseMatrix({values:x,index:S,ptr:C,size:[h,g],datatype:_})}}),ih=W(`algorithm10`,[`typed`,`DenseMatrix`],function(e){var t=e.typed,n=e.DenseMatrix;return function(e,r,i,a){var o=e._values,s=e._index,c=e._ptr,l=e._size,u=e._datatype;if(!o)throw Error(`Cannot perform operation on Pattern Sparse Matrix and Scalar value`);var d=l[0],f=l[1],p,m=i;typeof u==`string`&&(p=u,r=t.convert(r,p),m=t.find(i,[p,p]));for(var h=[],g=[],_=[],v=0;v<f;v++){for(var y=v+1,b=c[v],x=c[v+1],S=b;S<x;S++){var C=s[S];g[C]=o[S],_[C]=y}for(var w=0;w<d;w++)v===0&&(h[w]=[]),_[w]===y?h[w][v]=a?m(r,g[w]):m(g[w],r):h[w][v]=r}return new n({data:h,size:[d,f],datatype:p})}}),ah=W(`algorithm13`,[`typed`],function(e){var t=e.typed;return function(e,r,i){var a=e._data,o=e._size,s=e._datatype,c=r._data,l=r._size,u=r._datatype,d=[];if(o.length!==l.length)throw new Td(o.length,l.length);for(var f=0;f<o.length;f++){if(o[f]!==l[f])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+l+`)`);d[f]=o[f]}var p,m=i;typeof s==`string`&&s===u&&(p=s,m=t.find(i,[p,p]));var h=d.length>0?n(m,0,d,d[0],a,c):[];return e.createDenseMatrix({data:h,size:d,datatype:p})};function n(e,t,r,i,a,o){var s=[];if(t===r.length-1)for(var c=0;c<i;c++)s[c]=e(a[c],o[c]);else for(var l=0;l<i;l++)s[l]=n(e,t+1,r,r[t+1],a[l],o[l]);return s}}),oh=W(`algorithm02`,[`typed`,`equalScalar`],function(e){var t=e.typed,n=e.equalScalar;return function(e,r,i,a){var o=e._data,s=e._size,c=e._datatype,l=r._values,u=r._index,d=r._ptr,f=r._size,p=r._datatype;if(s.length!==f.length)throw new Td(s.length,f.length);if(s[0]!==f[0]||s[1]!==f[1])throw RangeError(`Dimension mismatch. Matrix A (`+s+`) must match Matrix B (`+f+`)`);if(!l)throw Error(`Cannot perform operation on Dense Matrix and Pattern Sparse Matrix`);var m=s[0],h=s[1],g,_=n,v=0,y=i;typeof c==`string`&&c===p&&(g=c,_=t.find(n,[g,g]),v=t.convert(0,g),y=t.find(i,[g,g]));for(var b=[],x=[],S=[],C=0;C<h;C++){S[C]=x.length;for(var w=d[C],T=d[C+1],E=w;E<T;E++){var D=u[E],O=a?y(l[E],o[D][C]):y(o[D][C],l[E]);_(O,v)||(x.push(D),b.push(O))}}return S[h]=x.length,r.createSparseMatrix({values:b,index:x,ptr:S,size:[m,h],datatype:g})}}),sh=W(`algorithm03`,[`typed`],function(e){var t=e.typed;return function(e,n,r,i){var a=e._data,o=e._size,s=e._datatype,c=n._values,l=n._index,u=n._ptr,d=n._size,f=n._datatype;if(o.length!==d.length)throw new Td(o.length,d.length);if(o[0]!==d[0]||o[1]!==d[1])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+d+`)`);if(!c)throw Error(`Cannot perform operation on Dense Matrix and Pattern Sparse Matrix`);var p=o[0],m=o[1],h,g=0,_=r;typeof s==`string`&&s===f&&(h=s,g=t.convert(0,h),_=t.find(r,[h,h]));for(var v=[],y=0;y<p;y++)v[y]=[];for(var b=[],x=[],S=0;S<m;S++){for(var C=S+1,w=u[S],T=u[S+1],E=w;E<T;E++){var D=l[E];b[D]=i?_(c[E],a[D][S]):_(a[D][S],c[E]),x[D]=C}for(var O=0;O<p;O++)x[O]===C?v[O][S]=b[O]:v[O][S]=i?_(g,a[O][S]):_(a[O][S],g)}return e.createDenseMatrix({data:v,size:[p,m],datatype:h})}}),ch=W(`algorithm05`,[`typed`,`equalScalar`],function(e){var t=e.typed,n=e.equalScalar;return function(e,r,i){var a=e._values,o=e._index,s=e._ptr,c=e._size,l=e._datatype,u=r._values,d=r._index,f=r._ptr,p=r._size,m=r._datatype;if(c.length!==p.length)throw new Td(c.length,p.length);if(c[0]!==p[0]||c[1]!==p[1])throw RangeError(`Dimension mismatch. Matrix A (`+c+`) must match Matrix B (`+p+`)`);var h=c[0],g=c[1],_,v=n,y=0,b=i;typeof l==`string`&&l===m&&(_=l,v=t.find(n,[_,_]),y=t.convert(0,_),b=t.find(i,[_,_]));var x=a&&u?[]:void 0,S=[],C=[],w=x?[]:void 0,T=x?[]:void 0,E=[],D=[],O,k,A,j;for(k=0;k<g;k++){C[k]=S.length;var M=k+1;for(A=s[k],j=s[k+1];A<j;A++)O=o[A],S.push(O),E[O]=M,w&&(w[O]=a[A]);for(A=f[k],j=f[k+1];A<j;A++)O=d[A],E[O]!==M&&S.push(O),D[O]=M,T&&(T[O]=u[A]);if(x)for(A=C[k];A<S.length;){O=S[A];var N=E[O],P=D[O];if(N===M||P===M){var ee=N===M?w[O]:y,te=P===M?T[O]:y,F=b(ee,te);v(F,y)?S.splice(A,1):(x.push(F),A++)}}}return C[g]=S.length,e.createSparseMatrix({values:x,index:S,ptr:C,size:[h,g],datatype:_})}}),lh=W(`algorithm12`,[`typed`,`DenseMatrix`],function(e){var t=e.typed,n=e.DenseMatrix;return function(e,r,i,a){var o=e._values,s=e._index,c=e._ptr,l=e._size,u=e._datatype;if(!o)throw Error(`Cannot perform operation on Pattern Sparse Matrix and Scalar value`);var d=l[0],f=l[1],p,m=i;typeof u==`string`&&(p=u,r=t.convert(r,p),m=t.find(i,[p,p]));for(var h=[],g=[],_=[],v=0;v<f;v++){for(var y=v+1,b=c[v],x=c[v+1],S=b;S<x;S++){var C=s[S];g[C]=o[S],_[C]=y}for(var w=0;w<d;w++)v===0&&(h[w]=[]),_[w]===y?h[w][v]=a?m(r,g[w]):m(g[w],r):h[w][v]=a?m(r,0):m(0,r)}return new n({data:h,size:[d,f],datatype:p})}}),uh=`mod`,dh=W(uh,[`typed`,`matrix`,`equalScalar`,`DenseMatrix`],function(e){var t=e.typed,n=e.matrix,r=e.equalScalar,i=e.DenseMatrix,a=oh({typed:t,equalScalar:r}),o=sh({typed:t}),s=ch({typed:t,equalScalar:r}),c=eh({typed:t,equalScalar:r}),l=lh({typed:t,DenseMatrix:i}),u=ah({typed:t}),d=th({typed:t});return t(uh,{"number, number":km,"BigNumber, BigNumber":function(e,t){if(t.isNeg())throw Error(`Cannot calculate mod for a negative divisor`);return t.isZero()?e:e.mod(t)},"Fraction, Fraction":function(e,t){if(t.compare(0)<0)throw Error(`Cannot calculate mod for a negative divisor`);return e.compare(0)>=0?e.mod(t):e.mod(t).add(t).mod(t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return c(e,t,this,!1)},"DenseMatrix, any":function(e,t){return d(e,t,this,!1)},"any, SparseMatrix":function(e,t){return l(t,e,this,!0)},"any, DenseMatrix":function(e,t){return d(t,e,this,!0)},"Array, any":function(e,t){return d(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return d(n(t),e,this,!0).valueOf()}})}),fh=W(`multiplyScalar`,[`typed`],function(e){var t=e.typed;return t(`multiplyScalar`,{"number, number":fm,"Complex, Complex":function(e,t){return e.mul(t)},"BigNumber, BigNumber":function(e,t){return e.times(t)},"Fraction, Fraction":function(e,t){return e.mul(t)},"number | Fraction | BigNumber | Complex, Unit":function(e,t){var n=t.clone();return n.value=n.value===null?n._normalize(e):this(n.value,e),n},"Unit, number | Fraction | BigNumber | Complex":function(e,t){var n=e.clone();return n.value=n.value===null?n._normalize(t):this(n.value,t),n},"Unit, Unit":function(e,t){return e.multiply(t)}})}),ph=`multiply`,mh=W(ph,[`typed`,`matrix`,`addScalar`,`multiplyScalar`,`equalScalar`,`dot`],function(e){var t=e.typed,n=e.matrix,r=e.addScalar,i=e.multiplyScalar,a=e.equalScalar,o=e.dot,s=eh({typed:t,equalScalar:a}),c=th({typed:t});function l(e,t){switch(e.length){case 1:switch(t.length){case 1:if(e[0]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Vectors must have the same length`);break;case 2:if(e[0]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Vector length (`+e[0]+`) must match Matrix rows (`+t[0]+`)`);break;default:throw Error(`Can only multiply a 1 or 2 dimensional matrix (Matrix B has `+t.length+` dimensions)`)}break;case 2:switch(t.length){case 1:if(e[1]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Matrix columns (`+e[1]+`) must match Vector length (`+t[0]+`)`);break;case 2:if(e[1]!==t[0])throw RangeError(`Dimension mismatch in multiplication. Matrix A columns (`+e[1]+`) must match Matrix B rows (`+t[0]+`)`);break;default:throw Error(`Can only multiply a 1 or 2 dimensional matrix (Matrix B has `+t.length+` dimensions)`)}break;default:throw Error(`Can only multiply a 1 or 2 dimensional matrix (Matrix A has `+e.length+` dimensions)`)}}function u(e,t,n){if(n===0)throw Error(`Cannot multiply two empty vectors`);return o(e,t)}function d(e,t){if(t.storage()!==`dense`)throw Error(`Support for SparseMatrix not implemented`);return f(e,t)}function f(e,n){var a=e._data,o=e._size,s=e._datatype,c=n._data,l=n._size,u=n._datatype,d=o[0],f=l[1],p,m=r,h=i;s&&u&&s===u&&typeof s==`string`&&(p=s,m=t.find(r,[p,p]),h=t.find(i,[p,p]));for(var g=[],_=0;_<f;_++){for(var v=h(a[0],c[0][_]),y=1;y<d;y++)v=m(v,h(a[y],c[y][_]));g[_]=v}return e.createDenseMatrix({data:g,size:[f],datatype:p})}var p=t(`_multiplyMatrixVector`,{"DenseMatrix, any":h,"SparseMatrix, any":v}),m=t(`_multiplyMatrixMatrix`,{"DenseMatrix, DenseMatrix":g,"DenseMatrix, SparseMatrix":_,"SparseMatrix, DenseMatrix":y,"SparseMatrix, SparseMatrix":b});function h(e,n){var a=e._data,o=e._size,s=e._datatype,c=n._data,l=n._datatype,u=o[0],d=o[1],f,p=r,m=i;s&&l&&s===l&&typeof s==`string`&&(f=s,p=t.find(r,[f,f]),m=t.find(i,[f,f]));for(var h=[],g=0;g<u;g++){for(var _=a[g],v=m(_[0],c[0]),y=1;y<d;y++)v=p(v,m(_[y],c[y]));h[g]=v}return e.createDenseMatrix({data:h,size:[u],datatype:f})}function g(e,n){var a=e._data,o=e._size,s=e._datatype,c=n._data,l=n._size,u=n._datatype,d=o[0],f=o[1],p=l[1],m,h=r,g=i;s&&u&&s===u&&typeof s==`string`&&(m=s,h=t.find(r,[m,m]),g=t.find(i,[m,m]));for(var _=[],v=0;v<d;v++){var y=a[v];_[v]=[];for(var b=0;b<p;b++){for(var x=g(y[0],c[0][b]),S=1;S<f;S++)x=h(x,g(y[S],c[S][b]));_[v][b]=x}}return e.createDenseMatrix({data:_,size:[d,p],datatype:m})}function _(e,n){var o=e._data,s=e._size,c=e._datatype,l=n._values,u=n._index,d=n._ptr,f=n._size,p=n._datatype;if(!l)throw Error(`Cannot multiply Dense Matrix times Pattern only Matrix`);var m=s[0],h=f[1],g,_=r,v=i,y=a,b=0;c&&p&&c===p&&typeof c==`string`&&(g=c,_=t.find(r,[g,g]),v=t.find(i,[g,g]),y=t.find(a,[g,g]),b=t.convert(0,g));for(var x=[],S=[],C=[],w=n.createSparseMatrix({values:x,index:S,ptr:C,size:[m,h],datatype:g}),T=0;T<h;T++){C[T]=S.length;var E=d[T],D=d[T+1];if(D>E)for(var O=0,k=0;k<m;k++){for(var A=k+1,j=void 0,M=E;M<D;M++){var N=u[M];O===A?j=_(j,v(o[k][N],l[M])):(j=v(o[k][N],l[M]),O=A)}O===A&&!y(j,b)&&(S.push(k),x.push(j))}}return C[h]=S.length,w}function v(e,n){var o=e._values,s=e._index,c=e._ptr,l=e._datatype;if(!o)throw Error(`Cannot multiply Pattern only Matrix times Dense Matrix`);var u=n._data,d=n._datatype,f=e._size[0],p=n._size[0],m=[],h=[],g=[],_,v=r,y=i,b=a,x=0;l&&d&&l===d&&typeof l==`string`&&(_=l,v=t.find(r,[_,_]),y=t.find(i,[_,_]),b=t.find(a,[_,_]),x=t.convert(0,_));var S=[],C=[];g[0]=0;for(var w=0;w<p;w++){var T=u[w];if(!b(T,x))for(var E=c[w],D=c[w+1],O=E;O<D;O++){var k=s[O];C[k]?S[k]=v(S[k],y(T,o[O])):(C[k]=!0,h.push(k),S[k]=y(T,o[O]))}}for(var A=h.length,j=0;j<A;j++)m[j]=S[h[j]];return g[1]=h.length,e.createSparseMatrix({values:m,index:h,ptr:g,size:[f,1],datatype:_})}function y(e,n){var o=e._values,s=e._index,c=e._ptr,l=e._datatype;if(!o)throw Error(`Cannot multiply Pattern only Matrix times Dense Matrix`);var u=n._data,d=n._datatype,f=e._size[0],p=n._size[0],m=n._size[1],h,g=r,_=i,v=a,y=0;l&&d&&l===d&&typeof l==`string`&&(h=l,g=t.find(r,[h,h]),_=t.find(i,[h,h]),v=t.find(a,[h,h]),y=t.convert(0,h));for(var b=[],x=[],S=[],C=e.createSparseMatrix({values:b,index:x,ptr:S,size:[f,m],datatype:h}),w=[],T=[],E=0;E<m;E++){S[E]=x.length;for(var D=E+1,O=0;O<p;O++){var k=u[O][E];if(!v(k,y))for(var A=c[O],j=c[O+1],M=A;M<j;M++){var N=s[M];T[N]===D?w[N]=g(w[N],_(k,o[M])):(T[N]=D,x.push(N),w[N]=_(k,o[M]))}}for(var P=S[E],ee=x.length,te=P;te<ee;te++)b[te]=w[x[te]]}return S[m]=x.length,C}function b(e,n){var a=e._values,o=e._index,s=e._ptr,c=e._datatype,l=n._values,u=n._index,d=n._ptr,f=n._datatype,p=e._size[0],m=n._size[1],h=a&&l,g,_=r,v=i;c&&f&&c===f&&typeof c==`string`&&(g=c,_=t.find(r,[g,g]),v=t.find(i,[g,g]));for(var y=h?[]:void 0,b=[],x=[],S=e.createSparseMatrix({values:y,index:b,ptr:x,size:[p,m],datatype:g}),C=h?[]:void 0,w=[],T,E,D,O,k,A,j,M,N=0;N<m;N++){x[N]=b.length;var P=N+1;for(k=d[N],A=d[N+1],O=k;O<A;O++)if(M=u[O],h)for(E=s[M],D=s[M+1],T=E;T<D;T++)j=o[T],w[j]===P?C[j]=_(C[j],v(l[O],a[T])):(w[j]=P,b.push(j),C[j]=v(l[O],a[T]));else for(E=s[M],D=s[M+1],T=E;T<D;T++)j=o[T],w[j]!==P&&(w[j]=P,b.push(j));if(h)for(var ee=x[N],te=b.length,F=ee;F<te;F++)y[F]=C[b[F]]}return x[m]=b.length,S}return t(ph,Wu({"Array, Array":function(e,t){l(Dd(e),Dd(t));var r=this(n(e),n(t));return lu(r)?r.valueOf():r},"Matrix, Matrix":function(e,t){var n=e.size(),r=t.size();return l(n,r),n.length===1?r.length===1?u(e,t,n[0]):d(e,t):r.length===1?p(e,t):m(e,t)},"Matrix, Array":function(e,t){return this(e,n(t))},"Array, Matrix":function(e,t){return this(n(e,t.storage()),t)},"SparseMatrix, any":function(e,t){return s(e,t,i,!1)},"DenseMatrix, any":function(e,t){return c(e,t,i,!1)},"any, SparseMatrix":function(e,t){return s(t,e,i,!0)},"any, DenseMatrix":function(e,t){return c(t,e,i,!0)},"Array, any":function(e,t){return c(n(e),t,i,!1).valueOf()},"any, Array":function(e,t){return c(n(t),e,i,!0).valueOf()},"any, any":i,"any, any, ...any":function(e,t,n){for(var r=this(e,t),i=0;i<n.length;i++)r=this(r,n[i]);return r}},i.signatures))}),hh=`subtract`,gh=W(hh,[`typed`,`matrix`,`equalScalar`,`addScalar`,`unaryMinus`,`DenseMatrix`],function(e){var t=e.typed,n=e.matrix,r=e.equalScalar,i=e.addScalar,a=e.unaryMinus,o=e.DenseMatrix,s=nh({typed:t}),c=sh({typed:t}),l=ch({typed:t,equalScalar:r}),u=ih({typed:t,DenseMatrix:o}),d=ah({typed:t}),f=th({typed:t});return t(hh,{"number, number":function(e,t){return e-t},"Complex, Complex":function(e,t){return e.sub(t)},"BigNumber, BigNumber":function(e,t){return e.minus(t)},"Fraction, Fraction":function(e,t){return e.sub(t)},"Unit, Unit":function(e,t){if(e.value===null)throw Error(`Parameter x contains a unit with undefined value`);if(t.value===null)throw Error(`Parameter y contains a unit with undefined value`);if(!e.equalBase(t))throw Error(`Units do not match`);var n=e.clone();return n.value=this(n.value,t.value),n.fixPrefix=!1,n},"SparseMatrix, SparseMatrix":function(e,t){return _h(e,t),l(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return _h(e,t),c(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return _h(e,t),s(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return _h(e,t),d(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return u(e,a(t),i)},"DenseMatrix, any":function(e,t){return f(e,t,this)},"any, SparseMatrix":function(e,t){return u(t,e,this,!0)},"any, DenseMatrix":function(e,t){return f(t,e,this,!0)},"Array, any":function(e,t){return f(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return f(n(t),e,this,!0).valueOf()}})});function _h(e,t){var n=e.size(),r=t.size();if(n.length!==r.length)throw new Td(n.length,r.length)}var vh=W(`algorithm07`,[`typed`,`DenseMatrix`],function(e){var t=e.typed,n=e.DenseMatrix;return function(e,i,a){var o=e._size,s=e._datatype,c=i._size,l=i._datatype;if(o.length!==c.length)throw new Td(o.length,c.length);if(o[0]!==c[0]||o[1]!==c[1])throw RangeError(`Dimension mismatch. Matrix A (`+o+`) must match Matrix B (`+c+`)`);var u=o[0],d=o[1],f,p=0,m=a;typeof s==`string`&&s===l&&(f=s,p=t.convert(0,f),m=t.find(a,[f,f]));var h,g,_=[];for(h=0;h<u;h++)_[h]=[];var v=[],y=[],b=[],x=[];for(g=0;g<d;g++){var S=g+1;for(r(e,g,b,v,S),r(i,g,x,y,S),h=0;h<u;h++){var C=b[h]===S?v[h]:p,w=x[h]===S?y[h]:p;_[h][g]=m(C,w)}}return new n({data:_,size:[u,d],datatype:f})};function r(e,t,n,r,i){for(var a=e._values,o=e._index,s=e._ptr,c=s[t],l=s[t+1];c<l;c++){var u=o[c];n[u]=i,r[u]=a[c]}}}),yh=`conj`,bh=W(yh,[`typed`],function(e){var t=e.typed;return t(yh,{number:function(e){return e},BigNumber:function(e){return e},Complex:function(e){return e.conjugate()},"Array | Matrix":function(e){return om(e,this)}})}),xh=`identity`,Sh=W(xh,[`typed`,`config`,`matrix`,`BigNumber`,`DenseMatrix`,`SparseMatrix`],function(e){var t=e.typed,n=e.config,r=e.matrix,i=e.BigNumber,a=e.DenseMatrix,o=e.SparseMatrix;return t(xh,{"":function(){return n.matrix===`Matrix`?r([]):[]},string:function(e){return r(e)},"number | BigNumber":function(e){return c(e,e,n.matrix===`Matrix`?`dense`:void 0)},"number | BigNumber, string":function(e,t){return c(e,e,t)},"number | BigNumber, number | BigNumber":function(e,t){return c(e,t,n.matrix===`Matrix`?`dense`:void 0)},"number | BigNumber, number | BigNumber, string":function(e,t,n){return c(e,t,n)},Array:function(e){return s(e)},"Array, string":function(e,t){return s(e,t)},Matrix:function(e){return s(e.valueOf(),e.storage())},"Matrix, string":function(e,t){return s(e.valueOf(),t)}});function s(e,t){switch(e.length){case 0:return t?r(t):[];case 1:return c(e[0],e[0],t);case 2:return c(e[0],e[1],t);default:throw Error(`Vector containing two values expected`)}}function c(e,t,n){var r=ru(e)||ru(t)?i:null;if(ru(e)&&(e=e.toNumber()),ru(t)&&(t=t.toNumber()),!$u(e)||e<1||!$u(t)||t<1)throw Error(`Parameters in function identity must be positive integers`);var s=r?new i(1):1,c=r?new r(0):0,l=[e,t];if(n){if(n===`sparse`)return o.diagonal(l,s,0,c);if(n===`dense`)return a.diagonal(l,s,0,c);throw TypeError(`Unknown matrix type "${n}"`)}for(var u=jd([],l,c),d=e<t?e:t,f=0;f<d;f++)u[f][f]=s;return u}});function Ch(){throw Error(`No "bignumber" implementation available`)}function wh(){throw Error(`No "fraction" implementation available`)}function Th(){throw Error(`No "matrix" implementation available`)}var Eh=`size`,Dh=W(Eh,[`typed`,`config`,`?matrix`],function(e){var t=e.typed,n=e.config,r=e.matrix;return t(Eh,{Matrix:function(e){return e.create(e.size())},Array:Dd,string:function(e){return n.matrix===`Array`?[e.length]:r([e.length])},"number | Complex | BigNumber | Unit | boolean | null":function(e){return n.matrix===`Array`?[]:r?r([]):Th()}})}),Oh=W(`numeric`,[`number`,`?bignumber`,`?fraction`],function(e){var t=e.number,n=e.bignumber,r=e.fraction,i={string:!0,number:!0,BigNumber:!0,Fraction:!0},a={number:function(e){return t(e)},BigNumber:n?function(e){return n(e)}:Ch,Fraction:r?function(e){return r(e)}:wh};return function(e,t){var n=Bu(e);if(!(n in i))throw TypeError(`Cannot convert `+e+` of type "`+n+`"; valid input types are `+Object.keys(i).join(`, `));if(!(t in a))throw TypeError(`Cannot convert `+e+` to type "`+t+`"; valid output types are `+Object.keys(a).join(`, `));return t===n?e:a[t](e)}}),kh=`divideScalar`,Ah=W(kh,[`typed`,`numeric`],function(e){var t=e.typed,n=e.numeric;return t(kh,{"number, number":function(e,t){return e/t},"Complex, Complex":function(e,t){return e.div(t)},"BigNumber, BigNumber":function(e,t){return e.div(t)},"Fraction, Fraction":function(e,t){return e.div(t)},"Unit, number | Fraction | BigNumber":function(e,t){var r=e.clone(),i=n(1,Bu(t));return r.value=this(r.value===null?r._normalize(i):r.value,t),r},"number | Fraction | BigNumber, Unit":function(e,t){var r=t.clone();r=r.pow(-1);var i=n(1,Bu(e));return r.value=this(e,t.value===null?t._normalize(i):t.value),r},"Unit, Unit":function(e,t){return e.divide(t)}})}),jh=`equal`,Mh=W(jh,[`typed`,`matrix`,`equalScalar`,`DenseMatrix`],function(e){var t=e.typed,n=e.matrix,r=e.equalScalar,i=e.DenseMatrix,a=sh({typed:t}),o=vh({typed:t,DenseMatrix:i}),s=lh({typed:t,DenseMatrix:i}),c=ah({typed:t}),l=th({typed:t});return t(jh,{"any, any":function(e,t){return e===null?t===null:t===null?e===null:e===void 0?t===void 0:t===void 0?e===void 0:r(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,r)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,r,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,r,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,r)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return s(e,t,r,!1)},"DenseMatrix, any":function(e,t){return l(e,t,r,!1)},"any, SparseMatrix":function(e,t){return s(t,e,r,!0)},"any, DenseMatrix":function(e,t){return l(t,e,r,!0)},"Array, any":function(e,t){return l(n(e),t,r,!1).valueOf()},"any, Array":function(e,t){return l(n(t),e,r,!0).valueOf()}})});W(jh,[`typed`,`equalScalar`],function(e){var t=e.typed,n=e.equalScalar;return t(jh,{"any, any":function(e,t){return e===null?t===null:t===null?e===null:e===void 0?t===void 0:t===void 0?e===void 0:n(e,t)}})});var Nh=`smaller`,Ph=W(Nh,[`typed`,`config`,`matrix`,`DenseMatrix`],function(e){var t=e.typed,n=e.config,r=e.matrix,i=e.DenseMatrix,a=sh({typed:t}),o=vh({typed:t,DenseMatrix:i}),s=lh({typed:t,DenseMatrix:i}),c=ah({typed:t}),l=th({typed:t});return t(Nh,{"boolean, boolean":function(e,t){return e<t},"number, number":function(e,t){return e<t&&!gd(e,t,n.epsilon)},"BigNumber, BigNumber":function(e,t){return e.lt(t)&&!Rm(e,t,n.epsilon)},"Fraction, Fraction":function(e,t){return e.compare(t)===-1},"Complex, Complex":function(e,t){throw TypeError(`No ordering relation is defined for complex numbers`)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw Error(`Cannot compare units with different base`);return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,t){return l(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return l(r(t),e,this,!0).valueOf()}})}),Fh=`smallerEq`,Ih=W(Fh,[`typed`,`config`,`matrix`,`DenseMatrix`],function(e){var t=e.typed,n=e.config,r=e.matrix,i=e.DenseMatrix,a=sh({typed:t}),o=vh({typed:t,DenseMatrix:i}),s=lh({typed:t,DenseMatrix:i}),c=ah({typed:t}),l=th({typed:t});return t(Fh,{"boolean, boolean":function(e,t){return e<=t},"number, number":function(e,t){return e<=t||gd(e,t,n.epsilon)},"BigNumber, BigNumber":function(e,t){return e.lte(t)||Rm(e,t,n.epsilon)},"Fraction, Fraction":function(e,t){return e.compare(t)!==1},"Complex, Complex":function(){throw TypeError(`No ordering relation is defined for complex numbers`)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw Error(`Cannot compare units with different base`);return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,t){return l(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return l(r(t),e,this,!0).valueOf()}})}),Lh=`larger`,Rh=W(Lh,[`typed`,`config`,`matrix`,`DenseMatrix`],function(e){var t=e.typed,n=e.config,r=e.matrix,i=e.DenseMatrix,a=sh({typed:t}),o=vh({typed:t,DenseMatrix:i}),s=lh({typed:t,DenseMatrix:i}),c=ah({typed:t}),l=th({typed:t});return t(Lh,{"boolean, boolean":function(e,t){return e>t},"number, number":function(e,t){return e>t&&!gd(e,t,n.epsilon)},"BigNumber, BigNumber":function(e,t){return e.gt(t)&&!Rm(e,t,n.epsilon)},"Fraction, Fraction":function(e,t){return e.compare(t)===1},"Complex, Complex":function(){throw TypeError(`No ordering relation is defined for complex numbers`)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw Error(`Cannot compare units with different base`);return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,t){return l(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return l(r(t),e,this,!0).valueOf()}})}),zh=`largerEq`,Bh=W(zh,[`typed`,`config`,`matrix`,`DenseMatrix`],function(e){var t=e.typed,n=e.config,r=e.matrix,i=e.DenseMatrix,a=sh({typed:t}),o=vh({typed:t,DenseMatrix:i}),s=lh({typed:t,DenseMatrix:i}),c=ah({typed:t}),l=th({typed:t});return t(zh,{"boolean, boolean":function(e,t){return e>=t},"number, number":function(e,t){return e>=t||gd(e,t,n.epsilon)},"BigNumber, BigNumber":function(e,t){return e.gte(t)||Rm(e,t,n.epsilon)},"Fraction, Fraction":function(e,t){return e.compare(t)!==-1},"Complex, Complex":function(){throw TypeError(`No ordering relation is defined for complex numbers`)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw Error(`Cannot compare units with different base`);return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,t){return l(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return l(r(t),e,this,!0).valueOf()}})}),Vh=W(`FibonacciHeap`,[`smaller`,`larger`],function(e){var t=e.smaller,n=e.larger,r=1/Math.log((1+Math.sqrt(5))/2);function i(){if(!(this instanceof i))throw SyntaxError(`Constructor must be called with the new operator`);this._minimum=null,this._size=0}i.prototype.type=`FibonacciHeap`,i.prototype.isFibonacciHeap=!0,i.prototype.insert=function(e,n){var r={key:e,value:n,degree:0};if(this._minimum){var i=this._minimum;r.left=i,r.right=i.right,i.right=r,r.right.left=r,t(e,i.key)&&(this._minimum=r)}else r.left=r,r.right=r,this._minimum=r;return this._size++,r},i.prototype.size=function(){return this._size},i.prototype.clear=function(){this._minimum=null,this._size=0},i.prototype.isEmpty=function(){return this._size===0},i.prototype.extractMinimum=function(){var e=this._minimum;if(e===null)return e;for(var t=this._minimum,n=e.degree,r=e.child;n>0;){var i=r.right;r.left.right=r.right,r.right.left=r.left,r.left=t,r.right=t.right,t.right=r,r.right.left=r,r.parent=null,r=i,n--}return e.left.right=e.right,e.right.left=e.left,e===e.right?t=null:(t=e.right,t=l(t,this._size)),this._size--,this._minimum=t,e},i.prototype.remove=function(e){this._minimum=a(this._minimum,e,-1),this.extractMinimum()};function a(e,n,r){n.key=r;var i=n.parent;return i&&t(n.key,i.key)&&(o(e,n,i),s(e,i)),t(n.key,e.key)&&(e=n),e}function o(e,t,n){t.left.right=t.right,t.right.left=t.left,n.degree--,n.child===t&&(n.child=t.right),n.degree===0&&(n.child=null),t.left=e,t.right=e.right,e.right=t,t.right.left=t,t.parent=null,t.mark=!1}function s(e,t){var n=t.parent;n&&(t.mark?(o(e,t,n),s(n)):t.mark=!0)}var c=function(e,t){e.left.right=e.right,e.right.left=e.left,e.parent=t,t.child?(e.left=t.child,e.right=t.child.right,t.child.right=e,e.right.left=e):(t.child=e,e.right=e,e.left=e),t.degree++,e.mark=!1};function l(e,i){var a=Math.floor(Math.log(i)*r)+1,o=Array(a),s=0,l=e;if(l)for(s++,l=l.right;l!==e;)s++,l=l.right;for(var u;s>0;){for(var d=l.degree,f=l.right;u=o[d],u;){if(n(l.key,u.key)){var p=u;u=l,l=p}c(u,l),o[d]=null,d++}o[d]=l,l=f,s--}e=null;for(var m=0;m<a;m++)u=o[m],u&&(e?(u.left.right=u.right,u.right.left=u.left,u.left=e,u.right=e.right,e.right=u,u.right.left=u,t(u.key,e.key)&&(e=u)):e=u);return e}return i},{isClass:!0}),Hh=W(`Spa`,[`addScalar`,`equalScalar`,`FibonacciHeap`],function(e){var t=e.addScalar,n=e.equalScalar,r=e.FibonacciHeap;function i(){if(!(this instanceof i))throw SyntaxError(`Constructor must be called with the new operator`);this._values=[],this._heap=new r}return i.prototype.type=`Spa`,i.prototype.isSpa=!0,i.prototype.set=function(e,t){if(this._values[e])this._values[e].value=t;else{var n=this._heap.insert(e,t);this._values[e]=n}},i.prototype.get=function(e){var t=this._values[e];return t?t.value:0},i.prototype.accumulate=function(e,n){var r=this._values[e];r?r.value=t(r.value,n):(r=this._heap.insert(e,n),this._values[e]=r)},i.prototype.forEach=function(e,t,r){var i=this._heap,a=this._values,o=[],s=i.extractMinimum();for(s&&o.push(s);s&&s.key<=t;)s.key>=e&&(n(s.value,0)||r(s.key,s.value,this)),s=i.extractMinimum(),s&&o.push(s);for(var c=0;c<o.length;c++){var l=o[c];s=i.insert(l.key,l.value),a[s.key]=s}},i.prototype.swap=function(e,t){var n=this._values[e],r=this._values[t];if(!n&&r)n=this._heap.insert(e,r.value),this._heap.remove(r),this._values[e]=n,this._values[t]=void 0;else if(n&&!r)r=this._heap.insert(t,n.value),this._heap.remove(n),this._values[t]=r,this._values[e]=void 0;else if(n&&r){var i=n.value;n.value=r.value,r.value=i}},i},{isClass:!0}),Uh=`add`,Wh=W(Uh,[`typed`,`matrix`,`addScalar`,`equalScalar`,`DenseMatrix`,`SparseMatrix`],function(e){var t=e.typed,n=e.matrix,r=e.addScalar,i=e.equalScalar,a=e.DenseMatrix;e.SparseMatrix;var o=nh({typed:t}),s=rh({typed:t,equalScalar:i}),c=ih({typed:t,DenseMatrix:a}),l=ah({typed:t}),u=th({typed:t});return t(Uh,Wu({"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,r)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,r,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,r,!0)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,r)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"DenseMatrix, any":function(e,t){return u(e,t,r,!1)},"SparseMatrix, any":function(e,t){return c(e,t,r,!1)},"any, DenseMatrix":function(e,t){return u(t,e,r,!0)},"any, SparseMatrix":function(e,t){return c(t,e,r,!0)},"Array, any":function(e,t){return u(n(e),t,r,!1).valueOf()},"any, Array":function(e,t){return u(n(t),e,r,!0).valueOf()},"any, any":r,"any, any, ...any":function(e,t,n){for(var r=this(e,t),i=0;i<n.length;i++)r=this(r,n[i]);return r}},r.signatures))}),Gh=`dot`,Kh=W(Gh,[`typed`,`addScalar`,`multiplyScalar`,`conj`,`size`],function(e){var t=e.typed,n=e.addScalar,r=e.multiplyScalar,i=e.conj,a=e.size;return t(Gh,{"Array | DenseMatrix, Array | DenseMatrix":s,"SparseMatrix, SparseMatrix":c});function o(e,t){var n=l(e),r=l(t),i,a;if(n.length===1)i=n[0];else if(n.length===2&&n[1]===1)i=n[0];else throw RangeError(`Expected a column vector, instead got a matrix of size (`+n.join(`, `)+`)`);if(r.length===1)a=r[0];else if(r.length===2&&r[1]===1)a=r[0];else throw RangeError(`Expected a column vector, instead got a matrix of size (`+r.join(`, `)+`)`);if(i!==a)throw RangeError(`Vectors must have equal length (`+i+` != `+a+`)`);if(i===0)throw RangeError(`Cannot calculate the dot product of empty vectors`);return i}function s(e,a){var s=o(e,a),c=lu(e)?e._data:e,u=lu(e)?e._datatype:void 0,d=lu(a)?a._data:a,f=lu(a)?a._datatype:void 0,p=l(e).length===2,m=l(a).length===2,h=n,g=r;if(u&&f&&u===f&&typeof u==`string`){var _=u;h=t.find(n,[_,_]),g=t.find(r,[_,_])}if(!p&&!m){for(var v=g(i(c[0]),d[0]),y=1;y<s;y++)v=h(v,g(i(c[y]),d[y]));return v}if(!p&&m){for(var b=g(i(c[0]),d[0][0]),x=1;x<s;x++)b=h(b,g(i(c[x]),d[x][0]));return b}if(p&&!m){for(var S=g(i(c[0][0]),d[0]),C=1;C<s;C++)S=h(S,g(i(c[C][0]),d[C]));return S}if(p&&m){for(var w=g(i(c[0][0]),d[0][0]),T=1;T<s;T++)w=h(w,g(i(c[T][0]),d[T][0]));return w}}function c(e,t){o(e,t);for(var i=e._index,a=e._values,s=t._index,c=t._values,l=0,u=n,d=r,f=0,p=0;f<i.length&&p<s.length;){var m=i[f],h=s[p];if(m<h){f++;continue}if(m>h){p++;continue}m===h&&(l=u(l,d(a[f],c[p])),f++,p++)}return l}function l(e){return lu(e)?e.size():a(e)}}),qh=`lup`,Jh=W(qh,[`typed`,`matrix`,`abs`,`addScalar`,`divideScalar`,`multiplyScalar`,`subtract`,`larger`,`equalScalar`,`unaryMinus`,`DenseMatrix`,`SparseMatrix`,`Spa`],function(e){var t=e.typed,n=e.matrix,r=e.abs,i=e.addScalar,a=e.divideScalar,o=e.multiplyScalar,s=e.subtract,c=e.larger,l=e.equalScalar,u=e.unaryMinus,d=e.DenseMatrix,f=e.SparseMatrix,p=e.Spa;return t(qh,{DenseMatrix:function(e){return m(e)},SparseMatrix:function(e){return h(e)},Array:function(e){var t=m(n(e));return{L:t.L.valueOf(),U:t.U.valueOf(),p:t.p}}});function m(e){var t=e._size[0],n=e._size[1],u=Math.min(t,n),f=Hu(e._data),p=[],m=[t,u],h=[],g=[u,n],_,v,y,b=[];for(_=0;_<t;_++)b[_]=_;for(v=0;v<n;v++){if(v>0)for(_=0;_<t;_++){var x=Math.min(_,v),S=0;for(y=0;y<x;y++)S=i(S,o(f[_][y],f[y][v]));f[_][v]=s(f[_][v],S)}var C=v,w=0,T=0;for(_=v;_<t;_++){var E=f[_][v],D=r(E);c(D,w)&&(C=_,w=D,T=E)}if(v!==C&&(b[v]=[b[C],b[C]=b[v]][0],d._swapRows(v,C,f)),v<t)for(_=v+1;_<t;_++){var O=f[_][v];l(O,0)||(f[_][v]=a(f[_][v],T))}}for(v=0;v<n;v++)for(_=0;_<t;_++){if(v===0&&(_<n&&(h[_]=[]),p[_]=[]),_<v){_<n&&(h[_][v]=f[_][v]),v<t&&(p[_][v]=0);continue}if(_===v){_<n&&(h[_][v]=f[_][v]),v<t&&(p[_][v]=1);continue}_<n&&(h[_][v]=0),v<t&&(p[_][v]=f[_][v])}var k=new d({data:p,size:m}),A=new d({data:h,size:g}),j=[];for(_=0,u=b.length;_<u;_++)j[b[_]]=_;return{L:k,U:A,p:j,toString:function(){return`L: `+this.L.toString()+`
154
+ U: `+this.U.toString()+`
155
+ P: `+this.p}}}function h(e){var t=e._size[0],n=e._size[1],i=Math.min(t,n),s=e._values,d=e._index,m=e._ptr,h=[],g=[],_=[],v=[t,i],y=[],b=[],x=[],S=[i,n],C,w,T,E=[],D=[];for(C=0;C<t;C++)E[C]=C,D[C]=C;var O=function(e,t){var n=D[e],r=D[t];E[n]=t,E[r]=e,D[e]=r,D[t]=n},k=function(){var e=new p;w<t&&(_.push(h.length),h.push(1),g.push(w)),x.push(y.length);var n=m[w],i=m[w+1];for(T=n;T<i;T++)C=d[T],e.set(E[C],s[T]);w>0&&e.forEach(0,w-1,function(t,n){f._forEachRow(t,h,g,_,function(r,i){r>t&&e.accumulate(r,u(o(i,n)))})});var D=w,k=e.get(w),A=r(k);e.forEach(w+1,t-1,function(e,t){var n=r(t);c(n,A)&&(D=e,A=n,k=t)}),w!==D&&(f._swapRows(w,D,v[1],h,g,_),f._swapRows(w,D,S[1],y,b,x),e.swap(w,D),O(w,D)),e.forEach(0,t-1,function(e,t){e<=w?(y.push(t),b.push(e)):(t=a(t,k),l(t,0)||(h.push(t),g.push(e)))})};for(w=0;w<n;w++)k();return x.push(y.length),_.push(h.length),{L:new f({values:h,index:g,ptr:_,size:v}),U:new f({values:y,index:b,ptr:x,size:S}),p:E,toString:function(){return`L: `+this.L.toString()+`
156
+ U: `+this.U.toString()+`
157
+ P: `+this.p}}}}),Yh=`det`,Xh=W(Yh,[`typed`,`matrix`,`subtract`,`multiply`,`unaryMinus`,`lup`],function(e){var t=e.typed,n=e.matrix,r=e.subtract,i=e.multiply,a=e.unaryMinus,o=e.lup;return t(Yh,{any:function(e){return Hu(e)},"Array | Matrix":function(e){var t;switch(lu(e)?t=e.size():Array.isArray(e)?(e=n(e),t=e.size()):t=[],t.length){case 0:return Hu(e);case 1:if(t[0]===1)return Hu(e.valueOf()[0]);throw RangeError(`Matrix must be square (size: `+Sd(t)+`)`);case 2:var r=t[0],i=t[1];if(r===i)return s(e.clone().valueOf(),r,i);throw RangeError(`Matrix must be square (size: `+Sd(t)+`)`);default:throw RangeError(`Matrix must be two dimensional (size: `+Sd(t)+`)`)}}});function s(e,t,n){if(t===1)return Hu(e[0][0]);if(t===2)return r(i(e[0][0],e[1][1]),i(e[1][0],e[0][1]));for(var s=o(e),c=s.U[0][0],l=1;l<t;l++)c=i(c,s.U[l][l]);for(var u=0,d=0,f=[];;){for(;f[d];)d++;if(d>=t)break;for(var p=d,m=0;!f[s.p[p]];)f[s.p[p]]=!0,p=s.p[p],m++;m%2==0&&u++}return u%2==0?c:a(c)}}),Zh=`inv`,Qh=W(Zh,[`typed`,`matrix`,`divideScalar`,`addScalar`,`multiply`,`unaryMinus`,`det`,`identity`,`abs`],function(e){var t=e.typed,n=e.matrix,r=e.divideScalar,i=e.addScalar,a=e.multiply,o=e.unaryMinus,s=e.det,c=e.identity,l=e.abs;return t(Zh,{"Array | Matrix":function(e){var t=lu(e)?e.size():Dd(e);switch(t.length){case 1:if(t[0]===1)return lu(e)?n([r(1,e.valueOf()[0])]):[r(1,e[0])];throw RangeError(`Matrix must be square (size: `+Sd(t)+`)`);case 2:var i=t[0],a=t[1];if(i===a)return lu(e)?n(u(e.valueOf(),i,a),e.storage()):u(e,i,a);throw RangeError(`Matrix must be square (size: `+Sd(t)+`)`);default:throw RangeError(`Matrix must be two dimensional (size: `+Sd(t)+`)`)}},any:function(e){return r(1,e)}});function u(e,t,n){var u,d,f,p,m;if(t===1){if(p=e[0][0],p===0)throw Error(`Cannot calculate inverse, determinant is zero`);return[[r(1,p)]]}else if(t===2){var h=s(e);if(h===0)throw Error(`Cannot calculate inverse, determinant is zero`);return[[r(e[1][1],h),r(o(e[0][1]),h)],[r(o(e[1][0]),h),r(e[0][0],h)]]}else{var g=e.concat();for(u=0;u<t;u++)g[u]=g[u].concat();for(var _=c(t).valueOf(),v=0;v<n;v++){var y=l(g[v][v]),b=v;for(u=v+1;u<t;)l(g[u][v])>y&&(y=l(g[u][v]),b=u),u++;if(y===0)throw Error(`Cannot calculate inverse, determinant is zero`);u=b,u!==v&&(m=g[v],g[v]=g[u],g[u]=m,m=_[v],_[v]=_[u],_[u]=m);var x=g[v],S=_[v];for(u=0;u<t;u++){var C=g[u],w=_[u];if(u!==v){if(C[v]!==0){for(f=r(o(C[v]),x[v]),d=v;d<n;d++)C[d]=i(C[d],a(f,x[d]));for(d=0;d<n;d++)w[d]=i(w[d],a(f,S[d]))}}else{for(f=x[v],d=v;d<n;d++)C[d]=r(C[d],f);for(d=0;d<n;d++)w[d]=r(w[d],f)}}}return _}}}),$h=W(`divide`,[`typed`,`matrix`,`multiply`,`equalScalar`,`divideScalar`,`inv`],function(e){var t=e.typed,n=e.matrix,r=e.multiply,i=e.equalScalar,a=e.divideScalar,o=e.inv,s=eh({typed:t,equalScalar:i}),c=th({typed:t});return t(`divide`,Wu({"Array | Matrix, Array | Matrix":function(e,t){return r(e,o(t))},"DenseMatrix, any":function(e,t){return c(e,t,a,!1)},"SparseMatrix, any":function(e,t){return s(e,t,a,!1)},"Array, any":function(e,t){return c(n(e),t,a,!1).valueOf()},"any, Array | Matrix":function(e,t){return r(e,o(t))}},a.signatures))}),eg=Up({}),tg=Np({config:Zu}),ng=im({}),rg=rm({}),ig=am({Matrix:ng}),ag=Wd({BigNumber:tg,Complex:eg,DenseMatrix:ig,Fraction:rg}),og=Vm({config:Zu,typed:ag}),sg=Um({typed:ag}),cg=fh({typed:ag}),lg=Gm({Fraction:rg,typed:ag}),ug=Ym({typed:ag}),dg=$m({typed:ag}),fg=bh({typed:ag}),pg=Hm({Matrix:ng,equalScalar:og,typed:ag}),mg=qm({DenseMatrix:ig,Matrix:ng,SparseMatrix:pg,typed:ag}),hg=dh({DenseMatrix:ig,equalScalar:og,matrix:mg,typed:ag}),gg=Sh({BigNumber:tg,DenseMatrix:ig,SparseMatrix:pg,config:Zu,matrix:mg,typed:ag}),_g=Dh({matrix:mg,config:Zu,typed:ag}),vg=Ph({DenseMatrix:ig,config:Zu,matrix:mg,typed:ag}),yg=Rh({DenseMatrix:ig,config:Zu,matrix:mg,typed:ag}),bg=Vh({larger:yg,smaller:vg}),xg=Wh({DenseMatrix:ig,SparseMatrix:pg,addScalar:dg,equalScalar:og,matrix:mg,typed:ag}),Sg=Kh({addScalar:dg,conj:fg,multiplyScalar:cg,size:_g,typed:ag}),Cg=Zm({typed:ag}),wg=mh({addScalar:dg,dot:Sg,equalScalar:og,matrix:mg,multiplyScalar:cg,typed:ag}),Tg=Bh({DenseMatrix:ig,config:Zu,matrix:mg,typed:ag}),Eg=Oh({bignumber:Wm({BigNumber:tg,typed:ag}),fraction:lg,number:sg}),Dg=Ih({DenseMatrix:ig,config:Zu,matrix:mg,typed:ag}),Og=gh({DenseMatrix:ig,addScalar:dg,equalScalar:og,matrix:mg,typed:ag,unaryMinus:ug}),kg=Mh({DenseMatrix:ig,equalScalar:og,matrix:mg,typed:ag}),Ag=Ah({numeric:Eg,typed:ag}),jg=$h({divideScalar:Ag,equalScalar:og,inv:Qh({abs:Cg,addScalar:dg,det:Xh({lup:Jh({DenseMatrix:ig,Spa:Hh({FibonacciHeap:bg,addScalar:dg,equalScalar:og}),SparseMatrix:pg,abs:Cg,addScalar:dg,divideScalar:Ag,equalScalar:og,larger:yg,matrix:mg,multiplyScalar:cg,subtract:Og,typed:ag,unaryMinus:ug}),matrix:mg,multiply:wg,subtract:Og,typed:ag,unaryMinus:ug}),divideScalar:Ag,identity:gg,matrix:mg,multiply:wg,typed:ag,unaryMinus:ug}),matrix:mg,multiply:wg,typed:ag}),Mg=typeof global==`object`&&global&&global.Object===Object&&global,Ng=typeof self==`object`&&self&&self.Object===Object&&self,Pg=Mg||Ng||Function(`return this`)(),Fg=Pg.Symbol,Ig=Object.prototype,Lg=Ig.hasOwnProperty,Rg=Ig.toString,zg=Fg?Fg.toStringTag:void 0;function Bg(e){var t=Lg.call(e,zg),n=e[zg];try{e[zg]=void 0;var r=!0}catch{}var i=Rg.call(e);return r&&(t?e[zg]=n:delete e[zg]),i}var Vg=Object.prototype.toString;function Hg(e){return Vg.call(e)}var Ug=`[object Null]`,Wg=`[object Undefined]`,Gg=Fg?Fg.toStringTag:void 0;function Kg(e){return e==null?e===void 0?Wg:Ug:Gg&&Gg in Object(e)?Bg(e):Hg(e)}function qg(e){return typeof e==`object`&&!!e}var Jg=Array.isArray;function Yg(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var Xg=`[object AsyncFunction]`,Zg=`[object Function]`,Qg=`[object GeneratorFunction]`,$g=`[object Proxy]`;function e_(e){if(!Yg(e))return!1;var t=Kg(e);return t==Zg||t==Qg||t==Xg||t==$g}var t_=Pg[`__core-js_shared__`],n_=function(){var e=/[^.]+$/.exec(t_&&t_.keys&&t_.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function r_(e){return!!n_&&n_ in e}var i_=Function.prototype.toString;function a_(e){if(e!=null){try{return i_.call(e)}catch{}try{return e+``}catch{}}return``}var o_=/[\\^$.*+?()[\]{}|]/g,s_=/^\[object .+?Constructor\]$/,c_=Function.prototype,l_=Object.prototype,u_=c_.toString,d_=l_.hasOwnProperty,f_=RegExp(`^`+u_.call(d_).replace(o_,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p_(e){return!Yg(e)||r_(e)?!1:(e_(e)?f_:s_).test(a_(e))}function m_(e,t){return e?.[t]}function h_(e,t){var n=m_(e,t);return p_(n)?n:void 0}var g_=h_(Pg,`WeakMap`),__=Object.create,v_=function(){function e(){}return function(t){if(!Yg(t))return{};if(__)return __(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function y_(){}function b_(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var x_=function(){try{var e=h_(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function S_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function C_(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function w_(e){return e!==e}function T_(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function E_(e,t,n){return t===t?T_(e,t,n):C_(e,w_,n)}function D_(e,t){return!!(e!=null&&e.length)&&E_(e,t,0)>-1}var O_=9007199254740991,k_=/^(?:0|[1-9]\d*)$/;function A_(e,t){var n=typeof e;return t??=O_,!!t&&(n==`number`||n!=`symbol`&&k_.test(e))&&e>-1&&e%1==0&&e<t}function j_(e,t,n){t==`__proto__`&&x_?x_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function M_(e,t){return e===t||e!==e&&t!==t}var N_=Object.prototype.hasOwnProperty;function P_(e,t,n){var r=e[t];(!(N_.call(e,t)&&M_(r,n))||n===void 0&&!(t in e))&&j_(e,t,n)}function F_(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?j_(n,s,c):P_(n,s,c)}return n}var I_=9007199254740991;function L_(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=I_}function R_(e){return e!=null&&L_(e.length)&&!e_(e)}var z_=Object.prototype;function B_(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||z_)}function V_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var H_=`[object Arguments]`;function U_(e){return qg(e)&&Kg(e)==H_}var W_=Object.prototype,G_=W_.hasOwnProperty,K_=W_.propertyIsEnumerable,q_=U_(function(){return arguments}())?U_:function(e){return qg(e)&&G_.call(e,`callee`)&&!K_.call(e,`callee`)};function J_(){return!1}var Y_=typeof exports==`object`&&exports&&!exports.nodeType&&exports,X_=Y_&&typeof module==`object`&&module&&!module.nodeType&&module,Z_=X_&&X_.exports===Y_?Pg.Buffer:void 0,Q_=(Z_?Z_.isBuffer:void 0)||J_,$_=`[object Arguments]`,ev=`[object Array]`,tv=`[object Boolean]`,nv=`[object Date]`,rv=`[object Error]`,iv=`[object Function]`,av=`[object Map]`,ov=`[object Number]`,sv=`[object Object]`,cv=`[object RegExp]`,lv=`[object Set]`,uv=`[object String]`,dv=`[object WeakMap]`,fv=`[object ArrayBuffer]`,pv=`[object DataView]`,mv=`[object Float32Array]`,hv=`[object Float64Array]`,gv=`[object Int8Array]`,_v=`[object Int16Array]`,vv=`[object Int32Array]`,yv=`[object Uint8Array]`,bv=`[object Uint8ClampedArray]`,xv=`[object Uint16Array]`,Sv=`[object Uint32Array]`,Cv={};Cv[mv]=Cv[hv]=Cv[gv]=Cv[_v]=Cv[vv]=Cv[yv]=Cv[bv]=Cv[xv]=Cv[Sv]=!0,Cv[$_]=Cv[ev]=Cv[fv]=Cv[tv]=Cv[pv]=Cv[nv]=Cv[rv]=Cv[iv]=Cv[av]=Cv[ov]=Cv[sv]=Cv[cv]=Cv[lv]=Cv[uv]=Cv[dv]=!1;function wv(e){return qg(e)&&L_(e.length)&&!!Cv[Kg(e)]}function Tv(e){return function(t){return e(t)}}var Ev=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Dv=Ev&&typeof module==`object`&&module&&!module.nodeType&&module,Ov=Dv&&Dv.exports===Ev&&Mg.process,kv=function(){try{return Dv&&Dv.require&&Dv.require(`util`).types||Ov&&Ov.binding&&Ov.binding(`util`)}catch{}}(),Av=kv&&kv.isTypedArray,jv=Av?Tv(Av):wv,Mv=Object.prototype.hasOwnProperty;function Nv(e,t){var n=Jg(e),r=!n&&q_(e),i=!n&&!r&&Q_(e),a=!n&&!r&&!i&&jv(e),o=n||r||i||a,s=o?V_(e.length,String):[],c=s.length;for(var l in e)(t||Mv.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||A_(l,c)))&&s.push(l);return s}function Pv(e,t){return function(n){return e(t(n))}}var Fv=Pv(Object.keys,Object),Iv=Object.prototype.hasOwnProperty;function Lv(e){if(!B_(e))return Fv(e);var t=[];for(var n in Object(e))Iv.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Rv(e){return R_(e)?Nv(e):Lv(e)}function zv(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Bv=Object.prototype.hasOwnProperty;function Vv(e){if(!Yg(e))return zv(e);var t=B_(e),n=[];for(var r in e)r==`constructor`&&(t||!Bv.call(e,r))||n.push(r);return n}function Hv(e){return R_(e)?Nv(e,!0):Vv(e)}var Uv=h_(Object,`create`);function Wv(){this.__data__=Uv?Uv(null):{},this.size=0}function Gv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var Kv=`__lodash_hash_undefined__`,qv=Object.prototype.hasOwnProperty;function Jv(e){var t=this.__data__;if(Uv){var n=t[e];return n===Kv?void 0:n}return qv.call(t,e)?t[e]:void 0}var Yv=Object.prototype.hasOwnProperty;function Xv(e){var t=this.__data__;return Uv?t[e]!==void 0:Yv.call(t,e)}var Zv=`__lodash_hash_undefined__`;function Qv(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Uv&&t===void 0?Zv:t,this}function $v(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$v.prototype.clear=Wv,$v.prototype.delete=Gv,$v.prototype.get=Jv,$v.prototype.has=Xv,$v.prototype.set=Qv;function ey(){this.__data__=[],this.size=0}function ty(e,t){for(var n=e.length;n--;)if(M_(e[n][0],t))return n;return-1}var ny=Array.prototype.splice;function ry(e){var t=this.__data__,n=ty(t,e);return n<0?!1:(n==t.length-1?t.pop():ny.call(t,n,1),--this.size,!0)}function iy(e){var t=this.__data__,n=ty(t,e);return n<0?void 0:t[n][1]}function ay(e){return ty(this.__data__,e)>-1}function oy(e,t){var n=this.__data__,r=ty(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function sy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}sy.prototype.clear=ey,sy.prototype.delete=ry,sy.prototype.get=iy,sy.prototype.has=ay,sy.prototype.set=oy;var cy=h_(Pg,`Map`);function ly(){this.size=0,this.__data__={hash:new $v,map:new(cy||sy),string:new $v}}function uy(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function dy(e,t){var n=e.__data__;return uy(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function fy(e){var t=dy(this,e).delete(e);return this.size-=+!!t,t}function py(e){return dy(this,e).get(e)}function my(e){return dy(this,e).has(e)}function hy(e,t){var n=dy(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function gy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gy.prototype.clear=ly,gy.prototype.delete=fy,gy.prototype.get=py,gy.prototype.has=my,gy.prototype.set=hy;function _y(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var vy=Pv(Object.getPrototypeOf,Object);function yy(){this.__data__=new sy,this.size=0}function by(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function xy(e){return this.__data__.get(e)}function Sy(e){return this.__data__.has(e)}var Cy=200;function wy(e,t){var n=this.__data__;if(n instanceof sy){var r=n.__data__;if(!cy||r.length<Cy-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new gy(r)}return n.set(e,t),this.size=n.size,this}function Ty(e){var t=this.__data__=new sy(e);this.size=t.size}Ty.prototype.clear=yy,Ty.prototype.delete=by,Ty.prototype.get=xy,Ty.prototype.has=Sy,Ty.prototype.set=wy;function Ey(e,t){return e&&F_(t,Rv(t),e)}function Dy(e,t){return e&&F_(t,Hv(t),e)}var Oy=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ky=Oy&&typeof module==`object`&&module&&!module.nodeType&&module,Ay=ky&&ky.exports===Oy?Pg.Buffer:void 0,jy=Ay?Ay.allocUnsafe:void 0;function My(e,t){if(t)return e.slice();var n=e.length,r=jy?jy(n):new e.constructor(n);return e.copy(r),r}function Ny(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Py(){return[]}var Fy=Object.prototype.propertyIsEnumerable,Iy=Object.getOwnPropertySymbols,Ly=Iy?function(e){return e==null?[]:(e=Object(e),Ny(Iy(e),function(t){return Fy.call(e,t)}))}:Py;function Ry(e,t){return F_(e,Ly(e),t)}var zy=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)_y(t,Ly(e)),e=vy(e);return t}:Py;function By(e,t){return F_(e,zy(e),t)}function Vy(e,t,n){var r=t(e);return Jg(e)?r:_y(r,n(e))}function Hy(e){return Vy(e,Rv,Ly)}function Uy(e){return Vy(e,Hv,zy)}var Wy=h_(Pg,`DataView`),Gy=h_(Pg,`Promise`),Ky=h_(Pg,`Set`),qy=`[object Map]`,Jy=`[object Object]`,Yy=`[object Promise]`,Xy=`[object Set]`,Zy=`[object WeakMap]`,Qy=`[object DataView]`,$y=a_(Wy),eb=a_(cy),tb=a_(Gy),nb=a_(Ky),rb=a_(g_),ib=Kg;(Wy&&ib(new Wy(new ArrayBuffer(1)))!=Qy||cy&&ib(new cy)!=qy||Gy&&ib(Gy.resolve())!=Yy||Ky&&ib(new Ky)!=Xy||g_&&ib(new g_)!=Zy)&&(ib=function(e){var t=Kg(e),n=t==Jy?e.constructor:void 0,r=n?a_(n):``;if(r)switch(r){case $y:return Qy;case eb:return qy;case tb:return Yy;case nb:return Xy;case rb:return Zy}return t});var ab=ib,ob=Object.prototype.hasOwnProperty;function sb(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&ob.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var cb=Pg.Uint8Array;function lb(e){var t=new e.constructor(e.byteLength);return new cb(t).set(new cb(e)),t}function ub(e,t){var n=t?lb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var db=/\w*$/;function fb(e){var t=new e.constructor(e.source,db.exec(e));return t.lastIndex=e.lastIndex,t}var pb=Fg?Fg.prototype:void 0,mb=pb?pb.valueOf:void 0;function hb(e){return mb?Object(mb.call(e)):{}}function gb(e,t){var n=t?lb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var _b=`[object Boolean]`,vb=`[object Date]`,yb=`[object Map]`,bb=`[object Number]`,xb=`[object RegExp]`,Sb=`[object Set]`,Cb=`[object String]`,wb=`[object Symbol]`,Tb=`[object ArrayBuffer]`,Eb=`[object DataView]`,Db=`[object Float32Array]`,Ob=`[object Float64Array]`,kb=`[object Int8Array]`,Ab=`[object Int16Array]`,jb=`[object Int32Array]`,Mb=`[object Uint8Array]`,Nb=`[object Uint8ClampedArray]`,Pb=`[object Uint16Array]`,Fb=`[object Uint32Array]`;function Ib(e,t,n){var r=e.constructor;switch(t){case Tb:return lb(e);case _b:case vb:return new r(+e);case Eb:return ub(e,n);case Db:case Ob:case kb:case Ab:case jb:case Mb:case Nb:case Pb:case Fb:return gb(e,n);case yb:return new r;case bb:case Cb:return new r(e);case xb:return fb(e);case Sb:return new r;case wb:return hb(e)}}function Lb(e){return typeof e.constructor==`function`&&!B_(e)?v_(vy(e)):{}}var Rb=`[object Map]`;function zb(e){return qg(e)&&ab(e)==Rb}var Bb=kv&&kv.isMap,Vb=Bb?Tv(Bb):zb,Hb=`[object Set]`;function Ub(e){return qg(e)&&ab(e)==Hb}var Wb=kv&&kv.isSet,Gb=Wb?Tv(Wb):Ub,Kb=1,qb=2,Jb=4,Yb=`[object Arguments]`,Xb=`[object Array]`,Zb=`[object Boolean]`,Qb=`[object Date]`,$b=`[object Error]`,ex=`[object Function]`,tx=`[object GeneratorFunction]`,nx=`[object Map]`,rx=`[object Number]`,ix=`[object Object]`,ax=`[object RegExp]`,ox=`[object Set]`,sx=`[object String]`,cx=`[object Symbol]`,lx=`[object WeakMap]`,ux=`[object ArrayBuffer]`,dx=`[object DataView]`,fx=`[object Float32Array]`,px=`[object Float64Array]`,mx=`[object Int8Array]`,hx=`[object Int16Array]`,gx=`[object Int32Array]`,_x=`[object Uint8Array]`,vx=`[object Uint8ClampedArray]`,yx=`[object Uint16Array]`,bx=`[object Uint32Array]`,xx={};xx[Yb]=xx[Xb]=xx[ux]=xx[dx]=xx[Zb]=xx[Qb]=xx[fx]=xx[px]=xx[mx]=xx[hx]=xx[gx]=xx[nx]=xx[rx]=xx[ix]=xx[ax]=xx[ox]=xx[sx]=xx[cx]=xx[_x]=xx[vx]=xx[yx]=xx[bx]=!0,xx[$b]=xx[ex]=xx[lx]=!1;function Sx(e,t,n,r,i,a){var o,s=t&Kb,c=t&qb,l=t&Jb;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Yg(e))return e;var u=Jg(e);if(u){if(o=sb(e),!s)return b_(e,o)}else{var d=ab(e),f=d==ex||d==tx;if(Q_(e))return My(e,s);if(d==ix||d==Yb||f&&!i){if(o=c||f?{}:Lb(e),!s)return c?By(e,Dy(o,e)):Ry(e,Ey(o,e))}else{if(!xx[d])return i?e:{};o=Ib(e,d,s)}}a||=new Ty;var p=a.get(e);if(p)return p;a.set(e,o),Gb(e)?e.forEach(function(r){o.add(Sx(r,t,n,r,e,a))}):Vb(e)&&e.forEach(function(r,i){o.set(i,Sx(r,t,n,i,e,a))});var m=u?void 0:(l?c?Uy:Hy:c?Hv:Rv)(e);return S_(m||e,function(r,i){m&&(i=r,r=e[i]),P_(o,i,Sx(r,t,n,i,e,a))}),o}var Cx=1,wx=4;function Tx(e){return Sx(e,Cx|wx)}var Ex=`__lodash_hash_undefined__`;function Dx(e){return this.__data__.set(e,Ex),this}function Ox(e){return this.__data__.has(e)}function kx(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new gy;++t<n;)this.add(e[t])}kx.prototype.add=kx.prototype.push=Dx,kx.prototype.has=Ox;function Ax(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function jx(e,t){return e.has(t)}var Mx=1,Nx=2;function Px(e,t,n,r,i,a){var o=n&Mx,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Nx?new kx:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Ax(t,function(e,t){if(!jx(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function Fx(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Ix(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Lx=1,Rx=2,zx=`[object Boolean]`,Bx=`[object Date]`,Vx=`[object Error]`,Hx=`[object Map]`,Ux=`[object Number]`,Wx=`[object RegExp]`,Gx=`[object Set]`,Kx=`[object String]`,qx=`[object Symbol]`,Jx=`[object ArrayBuffer]`,Yx=`[object DataView]`,Xx=Fg?Fg.prototype:void 0,Zx=Xx?Xx.valueOf:void 0;function Qx(e,t,n,r,i,a,o){switch(n){case Yx:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Jx:return!(e.byteLength!=t.byteLength||!a(new cb(e),new cb(t)));case zx:case Bx:case Ux:return M_(+e,+t);case Vx:return e.name==t.name&&e.message==t.message;case Wx:case Kx:return e==t+``;case Hx:var s=Fx;case Gx:var c=r&Lx;if(s||=Ix,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Rx,o.set(e,t);var u=Px(s(e),s(t),r,i,a,o);return o.delete(e),u;case qx:if(Zx)return Zx.call(e)==Zx.call(t)}return!1}var $x=1,eS=Object.prototype.hasOwnProperty;function tS(e,t,n,r,i,a){var o=n&$x,s=Hy(e),c=s.length;if(c!=Hy(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:eS.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var nS=1,rS=`[object Arguments]`,iS=`[object Array]`,aS=`[object Object]`,oS=Object.prototype.hasOwnProperty;function sS(e,t,n,r,i,a){var o=Jg(e),s=Jg(t),c=o?iS:ab(e),l=s?iS:ab(t);c=c==rS?aS:c,l=l==rS?aS:l;var u=c==aS,d=l==aS,f=c==l;if(f&&Q_(e)){if(!Q_(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Ty,o||jv(e)?Px(e,t,n,r,i,a):Qx(e,t,c,n,r,i,a);if(!(n&nS)){var p=u&&oS.call(e,`__wrapped__`),m=d&&oS.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Ty,i(h,g,n,r,a)}}return f?(a||=new Ty,tS(e,t,n,r,i,a)):!1}function cS(e,t,n,r,i){return e===t?!0:e==null||t==null||!qg(e)&&!qg(t)?e!==e&&t!==t:sS(e,t,n,r,cS,i)}function lS(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function uS(e,t){return cS(e,t)}var dS=`[object Number]`;function fS(e){return typeof e==`number`||qg(e)&&Kg(e)==dS}var pS=Ky&&1/Ix(new Ky([,-0]))[1]==1/0?function(e){return new Ky(e)}:y_,mS=200;function hS(e,t,n){var r=-1,i=D_,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=lS;else if(a>=mS){var l=t?null:pS(e);if(l)return Ix(l);o=!1,i=jx,c=new kx}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function gS(e,t){return t=typeof t==`function`?t:void 0,e&&e.length?hS(e,void 0,t):[]}var _S=(e,t,n)=>{if(!kg(hg(Cg(e),Cg(n)),0))throw Error(`start point must be divisible by interval`);if(kg(e,t))return[];let r=Og(t,hg(t,Cg(n))),i=yg(n,0)?`positive`:`negative`;if(i===`negative`&&Tg(t,e))throw Error(`start must be > than end when doing a negative decrement`);if(i===`positive`&&Dg(t,e))throw Error(`start must be < end when doing increments`);let a;a=i===`positive`?Dg:kg(r,t)?Tg:yg;let o=[],s=e;for(;a(s,r);)o.push(s),s=xg(s,n);return o},vS=(e,t)=>`Can only do a positive or negative range, but got: start: ${e} and end:${t}`,yS=(e,t,n)=>{if(e=lg(e),t=lg(t),n=lg(n),yg(Cg(Og(t,e)),Cg(t)))throw Error(vS(e,t));let r={start:Cg(e),end:Cg(t),interval:Cg(n),multiplier:vg(n,0)?-1:1},i=hg(r.start,r.interval),a=_S(yg(i,0)?xg(Og(r.start,i),r.interval):r.start,r.end,r.interval),o=r.multiplier===-1?a.map(e=>wg(e,-1)):a;return vg(n,0)&&o.reverse(),o},bS=(e,t)=>(e=lg(e),t=lg(t),vg(e,t)?e:t),xS=(e,t)=>(e=lg(e),t=lg(t),yg(e,t)?e:t),SS=(e,t,n)=>{e=lg(e),t=lg(t),n=lg(n);let r=yg(t,0)?yS(xS(0,e),t,n):[];return gS((vg(e,0)?yS(bS(0,t),e,wg(n,-1)):[]).concat(r),kg)},CS=(e,t,n)=>{n||=2;let r=10**-n/2;return Math.abs(e-t)<r},wS=(e,t,n)=>vg(DS(e),DS(t))?t:yg(DS(e),DS(n))?n:e,TS=(e,t)=>{let n=sg(wg(10,jg(lg(e.max-e.min),t)));return{min:n,max:sg(wg(20,n))}},ES=(e,t)=>kg(hg(e,t),0),DS=e=>{if(Yg(e))return lg(e.n*e.s,e.d);if(fS(e))return lg(e)},OS=(e,t,n,r)=>{let i=r?r.limit!==!1:!0,a=TS(e,t),o=i?wS(DS(n.minor),a.min,a.max):DS(n.minor),s=i?wS(DS(n.major),o,wg(o,20)):DS(n.major);if(!ES(s,o)){let e=jg(s,o);return{minor:o,major:wg(o,e<=2?2:Math.round(e))}}return{major:s,minor:o}},kS=(e,t,n,r)=>(n=OS(e,t,n,r),SS(e.min,e.max,n.minor).filter(t=>Dg(t,lg(e.max))).map(e=>{let t=`minor`;return CS(sg(hg(e,n.major)),0)&&(t=`major`),{x:e,type:t}})),AS=(e,t,n,r)=>kS(e,t,n,r).map(e=>r.fraction?e:{...e,x:sg(e.x)||0}),jS=(e,t,n,r)=>{r=xS(bS(r,t),e);let i=r.mod(n),a,o=n.div(2);if(Tg(Cg(i),o)){let e=n.sub(Cg(i)),t=Tg(r,0)?`add`:`sub`;a=r[t](e)}else{let e=Tg(r,0)?`sub`:`add`;a=r[e](Cg(i))}return a},MS=(e,t,n,r)=>sg(jS(lg(e),lg(t),lg(n),lg(r)));function NS(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function PS(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function FS(e){let t,n,r;e.length===2?(t=e===NS||e===PS?e:IS,n=e,r=e):(t=NS,n=(t,n)=>NS(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function IS(){return 0}function LS(e){return e===null?NaN:+e}var RS=FS(NS),zS=RS.right;RS.left,FS(LS).center;var BS=Math.sqrt(50),VS=Math.sqrt(10),HS=Math.sqrt(2);function US(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=BS?10:a>=VS?5:a>=HS?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?US(e,t,n*2):[s,c,l]}function WS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?US(t,e,n):US(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function GS(e,t,n){return t=+t,e=+e,n=+n,US(e,t,n)[2]}function KS(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?GS(t,e,n):GS(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function qS(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function JS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function YS(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function XS(){}var ZS=.7,QS=1/ZS,$S=`\\s*([+-]?\\d+)\\s*`,eC=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,tC=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,nC=/^#([0-9a-f]{3,8})$/,rC=RegExp(`^rgb\\(${$S},${$S},${$S}\\)$`),iC=RegExp(`^rgb\\(${tC},${tC},${tC}\\)$`),aC=RegExp(`^rgba\\(${$S},${$S},${$S},${eC}\\)$`),oC=RegExp(`^rgba\\(${tC},${tC},${tC},${eC}\\)$`),sC=RegExp(`^hsl\\(${eC},${tC},${tC}\\)$`),cC=RegExp(`^hsla\\(${eC},${tC},${tC},${eC}\\)$`),lC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};JS(XS,mC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uC,formatHex:uC,formatHex8:dC,formatHsl:fC,formatRgb:pC,toString:pC});function uC(){return this.rgb().formatHex()}function dC(){return this.rgb().formatHex8()}function fC(){return DC(this).formatHsl()}function pC(){return this.rgb().formatRgb()}function mC(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=nC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?hC(t):n===3?new yC(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?gC(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?gC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=rC.exec(e))?new yC(t[1],t[2],t[3],1):(t=iC.exec(e))?new yC(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=aC.exec(e))?gC(t[1],t[2],t[3],t[4]):(t=oC.exec(e))?gC(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=sC.exec(e))?EC(t[1],t[2]/100,t[3]/100,1):(t=cC.exec(e))?EC(t[1],t[2]/100,t[3]/100,t[4]):lC.hasOwnProperty(e)?hC(lC[e]):e===`transparent`?new yC(NaN,NaN,NaN,0):null}function hC(e){return new yC(e>>16&255,e>>8&255,e&255,1)}function gC(e,t,n,r){return r<=0&&(e=t=n=NaN),new yC(e,t,n,r)}function _C(e){return e instanceof XS||(e=mC(e)),e?(e=e.rgb(),new yC(e.r,e.g,e.b,e.opacity)):new yC}function vC(e,t,n,r){return arguments.length===1?_C(e):new yC(e,t,n,r??1)}function yC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}JS(yC,vC,YS(XS,{brighter(e){return e=e==null?QS:QS**+e,new yC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ZS:ZS**+e,new yC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yC(wC(this.r),wC(this.g),wC(this.b),CC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bC,formatHex:bC,formatHex8:xC,formatRgb:SC,toString:SC}));function bC(){return`#${TC(this.r)}${TC(this.g)}${TC(this.b)}`}function xC(){return`#${TC(this.r)}${TC(this.g)}${TC(this.b)}${TC((isNaN(this.opacity)?1:this.opacity)*255)}`}function SC(){let e=CC(this.opacity);return`${e===1?`rgb(`:`rgba(`}${wC(this.r)}, ${wC(this.g)}, ${wC(this.b)}${e===1?`)`:`, ${e})`}`}function CC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function TC(e){return e=wC(e),(e<16?`0`:``)+e.toString(16)}function EC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new kC(e,t,n,r)}function DC(e){if(e instanceof kC)return new kC(e.h,e.s,e.l,e.opacity);if(e instanceof XS||(e=mC(e)),!e)return new kC;if(e instanceof kC)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new kC(o,s,c,e.opacity)}function OC(e,t,n,r){return arguments.length===1?DC(e):new kC(e,t,n,r??1)}function kC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}JS(kC,OC,YS(XS,{brighter(e){return e=e==null?QS:QS**+e,new kC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ZS:ZS**+e,new kC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new yC(MC(e>=240?e-240:e+120,i,r),MC(e,i,r),MC(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new kC(AC(this.h),jC(this.s),jC(this.l),CC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=CC(this.opacity);return`${e===1?`hsl(`:`hsla(`}${AC(this.h)}, ${jC(this.s)*100}%, ${jC(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function AC(e){return e=(e||0)%360,e<0?e+360:e}function jC(e){return Math.max(0,Math.min(1,e||0))}function MC(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var NC=e=>()=>e;function PC(e,t){return function(n){return e+n*t}}function FC(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function IC(e){return(e=+e)==1?LC:function(t,n){return n-t?FC(t,n,e):NC(isNaN(t)?n:t)}}function LC(e,t){var n=t-e;return n?PC(e,n):NC(isNaN(e)?t:e)}var RC=(function e(t){var n=IC(t);function r(e,t){var r=n((e=vC(e)).r,(t=vC(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=LC(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function zC(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function BC(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function VC(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=XC(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function HC(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function UC(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function WC(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=XC(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var GC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,KC=new RegExp(GC.source,`g`);function qC(e){return function(){return e}}function JC(e){return function(t){return e(t)+``}}function YC(e,t){var n=GC.lastIndex=KC.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=GC.exec(e))&&(i=KC.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:UC(r,i)})),n=KC.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?JC(c[0].x):qC(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function XC(e,t){var n=typeof t,r;return t==null||n===`boolean`?NC(t):(n===`number`?UC:n===`string`?(r=mC(t))?(t=r,RC):YC:t instanceof mC?RC:t instanceof Date?HC:BC(t)?zC:Array.isArray(t)?VC:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?WC:UC)(e,t)}function ZC(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function QC(e){return function(){return e}}function $C(e){return+e}var ew=[0,1];function tw(e){return e}function nw(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:QC(isNaN(t)?NaN:.5)}function rw(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function iw(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=nw(i,r),a=n(o,a)):(r=nw(r,i),a=n(a,o)),function(e){return a(r(e))}}function aw(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=nw(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=zS(e,t,1,r)-1;return a[n](i[n](t))}}function ow(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sw(){var e=ew,t=ew,n=XC,r,i,a,o=tw,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==tw&&(o=rw(e[0],e[n-1])),s=n>2?aw:iw,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),UC))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,$C),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=ZC,u()},d.clamp=function(e){return arguments.length?(o=e?!0:tw,u()):o!==tw},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function cw(){return sw()(tw,tw)}function lw(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function uw(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function dw(e){return e=uw(Math.abs(e)),e?e[1]:NaN}function fw(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function pw(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var mw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hw(e){if(!(t=mw.exec(e)))throw Error(`invalid format: `+e);var t;return new gw({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}hw.prototype=gw.prototype;function gw(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}gw.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function _w(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var vw;function yw(e,t){var n=uw(e,t);if(!n)return vw=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(vw=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+uw(e,Math.max(0,t+a-1))[0]}function bw(e,t){var n=uw(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var xw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:lw,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>bw(e*100,t),r:bw,s:yw,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Sw(e){return e}var Cw=Array.prototype.map,ww=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Tw(e){var t=e.grouping===void 0||e.thousands===void 0?Sw:fw(Cw.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Sw:pw(Cw.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=hw(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):xw[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=xw[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=_w(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&vw!==void 0?ww[8+vw/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(dw(t)/3)))*3,r=10**-n,i=l((e=hw(e),e.type=`f`,e),{suffix:ww[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var Ew,Dw,Ow;kw({thousands:`,`,grouping:[3],currency:[`$`,``]});function kw(e){return Ew=Tw(e),Dw=Ew.format,Ow=Ew.formatPrefix,Ew}function Aw(e){return Math.max(0,-dw(Math.abs(e)))}function jw(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(dw(t)/3)))*3-dw(Math.abs(e)))}function Mw(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,dw(t)-dw(e))+1}function Nw(e,t,n,r){var i=KS(e,t,n),a;switch(r=hw(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=jw(i,o))&&(r.precision=a),Ow(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=Mw(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Aw(i))&&(r.precision=a-(r.type===`%`)*2);break}return Dw(r)}function Pw(e){var t=e.domain;return e.ticks=function(e){var n=t();return WS(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return Nw(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=GS(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function Fw(){var e=cw();return e.copy=function(){return ow(e,Fw())},qS.apply(e,arguments),Pw(e)}var Iw={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Lw(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Iw.hasOwnProperty(t)?{space:Iw[t],local:e}:e}function Rw(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function zw(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Bw(e){var t=Lw(e);return(t.local?zw:Rw)(t)}function Vw(){}function Hw(e){return e==null?Vw:function(){return this.querySelector(e)}}function Uw(e){typeof e!=`function`&&(e=Hw(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new jE(r,this._parents)}function Ww(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Gw(){return[]}function Kw(e){return e==null?Gw:function(){return this.querySelectorAll(e)}}function qw(e){return function(){return Ww(e.apply(this,arguments))}}function Jw(e){e=typeof e==`function`?qw(e):Kw(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new jE(r,i)}function Yw(e){return function(){return this.matches(e)}}function Xw(e){return function(t){return t.matches(e)}}var Zw=Array.prototype.find;function Qw(e){return function(){return Zw.call(this.children,e)}}function $w(){return this.firstElementChild}function eT(e){return this.select(e==null?$w:Qw(typeof e==`function`?e:Xw(e)))}var tT=Array.prototype.filter;function nT(){return Array.from(this.children)}function rT(e){return function(){return tT.call(this.children,e)}}function iT(e){return this.selectAll(e==null?nT:rT(typeof e==`function`?e:Xw(e)))}function aT(e){typeof e!=`function`&&(e=Yw(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new jE(r,this._parents)}function oT(e){return Array(e.length)}function sT(){return new jE(this._enter||this._groups.map(oT),this._parents)}function cT(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}cT.prototype={constructor:cT,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function lT(e){return function(){return e}}function uT(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new cT(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function dT(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new cT(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function fT(e){return e.__data__}function pT(e,t){if(!arguments.length)return Array.from(this,fT);var n=t?dT:uT,r=this._parents,i=this._groups;typeof e!=`function`&&(e=lT(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=mT(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new jE(o,r),o._enter=s,o._exit=c,o}function mT(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function hT(){return new jE(this._exit||this._groups.map(oT),this._parents)}function gT(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function _T(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new jE(s,this._parents)}function vT(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function yT(e){e||=bT;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new jE(i,this._parents).order()}function bT(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function xT(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function ST(){return Array.from(this)}function CT(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function wT(){let e=0;for(let t of this)++e;return e}function TT(){return!this.node()}function ET(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function DT(e){return function(){this.removeAttribute(e)}}function OT(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kT(e,t){return function(){this.setAttribute(e,t)}}function AT(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function jT(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function MT(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function NT(e,t){var n=Lw(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?OT:DT:typeof t==`function`?n.local?MT:jT:n.local?AT:kT)(n,t))}function PT(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function FT(e){return function(){this.style.removeProperty(e)}}function IT(e,t,n){return function(){this.style.setProperty(e,t,n)}}function LT(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function RT(e,t,n){return arguments.length>1?this.each((t==null?FT:typeof t==`function`?LT:IT)(e,t,n??``)):zT(this.node(),e)}function zT(e,t){return e.style.getPropertyValue(t)||PT(e).getComputedStyle(e,null).getPropertyValue(t)}function BT(e){return function(){delete this[e]}}function VT(e,t){return function(){this[e]=t}}function HT(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function UT(e,t){return arguments.length>1?this.each((t==null?BT:typeof t==`function`?HT:VT)(e,t)):this.node()[e]}function WT(e){return e.trim().split(/^|\s+/)}function GT(e){return e.classList||new KT(e)}function KT(e){this._node=e,this._names=WT(e.getAttribute(`class`)||``)}KT.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function qT(e,t){for(var n=GT(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function JT(e,t){for(var n=GT(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function YT(e){return function(){qT(this,e)}}function XT(e){return function(){JT(this,e)}}function ZT(e,t){return function(){(t.apply(this,arguments)?qT:JT)(this,e)}}function QT(e,t){var n=WT(e+``);if(arguments.length<2){for(var r=GT(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?ZT:t?YT:XT)(n,t))}function $T(){this.textContent=``}function eE(e){return function(){this.textContent=e}}function tE(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function nE(e){return arguments.length?this.each(e==null?$T:(typeof e==`function`?tE:eE)(e)):this.node().textContent}function rE(){this.innerHTML=``}function iE(e){return function(){this.innerHTML=e}}function aE(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function oE(e){return arguments.length?this.each(e==null?rE:(typeof e==`function`?aE:iE)(e)):this.node().innerHTML}function sE(){this.nextSibling&&this.parentNode.appendChild(this)}function cE(){return this.each(sE)}function lE(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function uE(){return this.each(lE)}function dE(e){var t=typeof e==`function`?e:Bw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function fE(){return null}function pE(e,t){var n=typeof e==`function`?e:Bw(e),r=t==null?fE:typeof t==`function`?t:Hw(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function mE(){var e=this.parentNode;e&&e.removeChild(this)}function hE(){return this.each(mE)}function gE(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _E(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function vE(e){return this.select(e?_E:gE)}function yE(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function bE(e){return function(t){e.call(this,t,this.__data__)}}function xE(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function SE(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function CE(e,t,n){return function(){var r=this.__on,i,a=bE(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function wE(e,t,n){var r=xE(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?CE:SE,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function TE(e,t,n){var r=PT(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function EE(e,t){return function(){return TE(this,e,t)}}function DE(e,t){return function(){return TE(this,e,t.apply(this,arguments))}}function OE(e,t){return this.each((typeof t==`function`?DE:EE)(e,t))}function*kE(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var AE=[null];function jE(e,t){this._groups=e,this._parents=t}function ME(){return new jE([[document.documentElement]],AE)}function NE(){return this}jE.prototype=ME.prototype={constructor:jE,select:Uw,selectAll:Jw,selectChild:eT,selectChildren:iT,filter:aT,data:pT,enter:sT,exit:hT,join:gT,merge:_T,selection:NE,order:vT,sort:yT,call:xT,nodes:ST,node:CT,size:wT,empty:TT,each:ET,attr:NT,style:RT,property:UT,classed:QT,text:nE,html:oE,raise:cE,lower:uE,append:dE,insert:pE,remove:hE,clone:vE,datum:yE,on:wE,dispatch:OE,[Symbol.iterator]:kE};function PE(e){return typeof e==`string`?new jE([[document.querySelector(e)]],[document.documentElement]):new jE([[e]],AE)}function FE(e){let t;for(;t=e.sourceEvent;)e=t;return e}function IE(e,t){if(e=FE(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var LE=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,RE=({size:e,children:t})=>(e=LE(e),(0,z.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));RE.propTypes={size:R.number,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired};var zE=({size:e,children:t,sx:n})=>(0,z.jsx)(RE,{size:e,children:(0,z.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});zE.propTypes={size:R.oneOfType([R.string,R.number]),children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,sx:R.object};var BE=({fill:e})=>(0,z.jsx)(`polygon`,{points:`17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7`,fill:e});BE.propTypes={fill:R.string.isRequired};var VE=({fill:e})=>(0,z.jsx)(`polygon`,{transform:`translate(2, 0)`,points:`34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3`,fill:e});VE.propTypes={fill:R.string.isRequired};var HE=({fill:e})=>(0,z.jsx)(`path`,{transform:`translate(1, 0)`,d:`M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z`,fill:e});HE.propTypes={fill:R.string.isRequired};var UE=({fill:e})=>(0,z.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});UE.propTypes={fill:R.string.isRequired};var WE=({fill:e})=>(0,z.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});WE.propTypes={fill:R.string.isRequired};var GE=(e,t)=>{class n extends L.Component{static propTypes={iconSet:R.oneOf([`emoji`,`check`]),shape:R.oneOf([`round`,`square`]),category:R.oneOf([`feedback`,void 0]),open:R.bool,size:R.oneOfType([R.number,R.string]),fg:R.string,bg:R.string};static defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,size:30,fg:`#4aaf46`,bg:`#f8ffe2`};render(){let{iconSet:n,shape:r,category:i,open:a,size:o,fg:s,bg:c}=this.props,l=n===`check`?(0,z.jsx)(e,{fill:s}):(0,z.jsx)(t,{fill:s}),u=n===`check`?(0,z.jsx)(e,{fill:c}):(0,z.jsx)(t,{fill:c});return a?(0,z.jsx)(zE,{size:o,children:u}):(0,z.jsxs)(zE,{size:o,children:[i===`feedback`?r===`round`?(0,z.jsx)(HE,{fill:c}):(0,z.jsx)(VE,{fill:c}):r===`round`?(0,z.jsx)(UE,{fill:c}):(0,z.jsx)(WE,{fill:c}),l]})}}return n},KE=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,z.jsx)(`path`,{d:`M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2
158
+ c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,z.jsx)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e}),(0,z.jsx)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e})]});KE.propTypes={fill:R.string.isRequired};var qE=({fill:e,x:t=0,y:n=0})=>(0,z.jsx)(`polygon`,{transform:`translate(${t}, ${n})`,points:`19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4`,fill:e});qE.propTypes={fill:R.string.isRequired,x:R.number,y:R.number};var JE=GE(qE,KE);JE.propTypes={iconSet:R.oneOf([`emoji`,`check`]),shape:R.oneOf([`round`,`square`]),category:R.oneOf([`feedback`,void 0]),open:R.bool,fg:R.string,bg:R.string,size:R.oneOfType([R.string,R.number])},JE.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var YE=({bgFill:e,fgFill:t})=>(0,z.jsxs)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-283 359 34 35`,style:{enableBackground:`new -283 359 34 35`},children:[(0,z.jsx)(`circle`,{cx:`-266`,cy:`375.9`,r:`14`,fill:e}),(0,z.jsx)(`path`,{d:`M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z
159
+ M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z`,fill:e}),(0,z.jsx)(`polygon`,{points:`-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6`,fill:t})]});YE.propTypes={bgFill:R.string.isRequired,fgFill:R.string.isRequired};var XE=({bgFill:e,fgFill:t,borderFill:n})=>(0,z.jsxs)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-129.5 127 34 35`,style:{enableBackground:`new -129.5 127 34 35`},children:[(0,z.jsx)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5
160
+ C-97.4,153.5-104.3,160.4-112.9,160.4z`}),(0,z.jsx)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z`}),(0,z.jsx)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e}),(0,z.jsx)(`path`,{d:`M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z
161
+ M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z`,fill:n}),(0,z.jsx)(`polygon`,{points:`-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2`,fill:t})]});XE.propTypes={bgFill:R.string.isRequired,fgFill:R.string.isRequired,borderFill:R.string.isRequired};var ZE=V(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),QE=({open:e,size:t})=>(0,z.jsx)(ZE,{size:t,children:e?(0,z.jsx)(YE,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,z.jsx)(XE,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});QE.propTypes={open:R.bool,size:R.string},QE.defaultProps={open:!1};var $E=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,z.jsx)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e}),(0,z.jsx)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e})]});$E.propTypes={fill:R.string.isRequired};var eD=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,z.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,z.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,z.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});eD.propTypes={fill:R.string.isRequired};var tD=GE($E,eD);tD.propTypes={iconSet:R.oneOf([`emoji`,`check`]),shape:R.oneOf([`round`,`square`]),category:R.oneOf([`feedback`,void 0]),open:R.bool,fg:R.string,bg:R.string,size:R.oneOfType([R.string,R.number])},tD.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var nD=({fill:e})=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,z.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});nD.propTypes={fill:R.string.isRequired};var rD=({fill:e})=>(0,z.jsx)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e});rD.propTypes={fill:R.string.isRequired};var iD=({fill:e})=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,z.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,z.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
162
+ C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});iD.propTypes={fill:R.string.isRequired};var aD=class extends L.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,z.jsxs)(zE,{children:[(0,z.jsx)(rD,{fill:n}),(0,z.jsx)(nD,{fill:t})]}),emoji:(0,z.jsxs)(zE,{children:[(0,z.jsx)(rD,{fill:n}),(0,z.jsx)(iD,{fill:t})]}),feedback:{check:(0,z.jsxs)(zE,{children:[(0,z.jsx)(rD,{fill:n}),(0,z.jsx)(iD,{fill:t})]}),emoji:(0,z.jsxs)(zE,{children:[(0,z.jsx)(rD,{fill:n}),(0,z.jsx)(iD,{fill:t})]}),square:{check:(0,z.jsxs)(zE,{children:[(0,z.jsx)(rD,{fill:n}),(0,z.jsx)(nD,{fill:t})]}),emoji:(0,z.jsxs)(zE,{children:[(0,z.jsx)(rD,{fill:n}),(0,z.jsx)(iD,{fill:t})]}),open:{check:(0,z.jsx)(zE,{children:(0,z.jsx)(nD,{fill:n})}),emoji:(0,z.jsx)(zE,{children:(0,z.jsx)(iD,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};aD.propTypes={iconSet:R.oneOf([`emoji`,`check`,void 0]),shape:R.oneOf([`square`,void 0]),category:R.oneOf([`feedback`,void 0]),open:R.bool,fg:R.string,bg:R.string},aD.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var oD=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,z.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,z.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});oD.propTypes={fill:R.string.isRequired};var sD=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,z.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,z.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,z.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});sD.propTypes={fill:R.string.isRequired};var cD=GE(oD,sD);cD.propTypes={iconSet:R.oneOf([`emoji`,`check`]),shape:R.oneOf([`round`,`square`]),category:R.oneOf([`feedback`,void 0]),open:R.bool,fg:R.string,bg:R.string,size:R.oneOfType([R.string,R.number])},cD.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};var lD=({fill:e})=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`rect`,{x:`-115`,y:`136.7`,width:`3`,height:`3`,fill:e}),(0,z.jsx)(`polygon`,{points:`-112,147.7 -112,141.7 -115.8,141.7 -115.8,143.7 -114,143.7 -114,147.7 -116.2,147.7 -116.2,149.7 -109.8,149.7 -109.8,147.7`,fill:e})]});lD.propTypes={fill:R.string.isRequired};var uD=({fill:e})=>(0,z.jsx)(`path`,{d:`M-113,158.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105,158.5-113,158.5z
163
+ M-113,130.5c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-105.6,130.5-113,130.5z`,fill:e});uD.propTypes={fill:R.string.isRequired};var dD=({fill:e=`#FFFFFF`})=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-111.7,160.9c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5C-96.2,154-103.1,160.9-111.7,160.9z`}),(0,z.jsx)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-112,159.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-104,159.5-112,159.5z`}),(0,z.jsx)(`circle`,{cx:`-113`,cy:`144`,r:`14`,fill:e})]});dD.propTypes={fill:R.string};var fD=({children:e,size:t})=>{let n=LE(t);return(0,z.jsx)(`div`,{style:{height:n,width:n,display:`inline-block`,position:`relative`},children:(0,z.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`-129 128 34 34`,children:e})})};fD.propTypes={children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,size:R.oneOfType([R.string,R.number])};var pD=class extends L.Component{render(){let{iconSet:e,open:t,fg:n=`#1a9cff`,bg:r=`#bce2ff`,border:i=`#bbe3fd`}=this.props,a=(0,z.jsx)(lD,{fill:n}),o={check:(0,z.jsxs)(fD,{size:this.props.size,children:[(0,z.jsx)(dD,{}),a,(0,z.jsx)(uD,{fill:i})]}),emoji:(0,z.jsxs)(fD,{size:this.props.size,children:[(0,z.jsx)(dD,{}),a,(0,z.jsx)(uD,{fill:i})]}),open:{check:(0,z.jsxs)(fD,{size:this.props.size,children:[(0,z.jsx)(`circle`,{cx:`-113`,cy:`144`,r:`14`,fill:`#FFFFFF`}),(0,z.jsx)(lD,{fill:r}),(0,z.jsx)(uD,{fill:`#FFFFFF`})]}),emoji:(0,z.jsxs)(fD,{size:this.props.size,children:[(0,z.jsx)(`circle`,{cx:`-113`,cy:`144`,r:`14`,fill:`#FFFFFF`}),(0,z.jsx)(lD,{fill:r}),(0,z.jsx)(uD,{fill:i})]})}};return t===!0?o.open[e]:o[e]}};pD.propTypes={iconSet:R.oneOf([`emoji`,`check`]),open:R.bool,fg:R.string,bg:R.string,border:R.string,size:R.oneOfType([R.string,R.number])},pD.defaultProps={iconSet:`check`,open:!1,fg:`#1a9cff`,bg:`#bce2ff`,border:`#bbe3fd`,size:30};function mD(e){return typeof e==`string`}function hD(e){return e?.ref||null}var gD=e=>e.scrollTop;function _D(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function vD(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function yD(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function bD(e){return`scale(${e}, ${e**2})`}var xD={entering:{opacity:1,transform:bD(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:bD(.75)},exited:{opacity:0,transform:bD(.75)}},SD={opacity:0,transform:bD(.75),visibility:`hidden`},CD=L.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=qs(),_=L.useRef(),v=Co(),y=L.useRef(null),b=ts(y,hD(i),t),x=_D(y,l),S=_D(y,(e,t)=>{gD(e);let{duration:n,delay:r,easing:i}=yD({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=_D(y,c),w=_D(y,f),T=_D(y,e=>{let{duration:t,delay:n,easing:r}=yD({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=bD(.75),u&&u(e)}),E=_D(y,e=>{e.style.transition=``,d&&d(e)});return(0,z.jsx)(As,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=vD(e,o,xD,SD,p,i.props.style);return L.cloneElement(i,{style:r,ref:b,...n})}})});CD&&(CD.muiSupportAuto=!0);function wD(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function TD(e){let t=Go(e);return t.body===e?qo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ED(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function DD(e){return parseFloat(qo(e).getComputedStyle(e).paddingRight)||0}function OD(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function kD(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!OD(e);t&&n&&ED(e,i)})}function AD(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function jD(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(TD(r)){let e=wD(qo(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${DD(r)+e}px`;let t=Go(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${DD(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Go(r).body;else{let t=r.parentElement,n=qo(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function MD(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var ND=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ED(e.modalRef,!1);let r=MD(t);kD(t,e.mount,e.modalRef,r,!0);let i=AD(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=AD(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=jD(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=AD(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&ED(e.modalRef,t),kD(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&ED(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function PD(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var FD=PD;function ID(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var LD=ID,RD=`data-mui-focusable`;function zD(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${RD}]`):null}var BD=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function VD(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function HD(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function UD(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||HD(e))}function WD(e){let t=[],n=[];return Array.from(e.querySelectorAll(BD)).forEach((e,r)=>{let i=VD(e);i===-1||!UD(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function GD(){return!0}function KD(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=WD,isEnabled:o=GD,open:s}=e,c=L.useRef(!1),l=L.useRef(null),u=L.useRef(null),d=L.useRef(null),f=L.useRef(null),p=L.useRef(!1),m=L.useRef(null),h=es(hD(t),m),g=L.useRef(null);L.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),L.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=LD(Go(m.current)),t=zD(m.current)??m.current;return FD(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),L.useEffect(()=>{if(!s||!m.current)return;let e=Go(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&LD(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=LD(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(FD(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=LD(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,z.jsxs)(L.Fragment,{children:[(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),L.cloneElement(t,{ref:h,onFocus:_}),(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function qD(e){return typeof e==`function`?e():e}var JD=L.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=L.useState(null),s=es(L.isValidElement(n)?hD(n):null,t);if(ri(()=>{i||o(qD(r)||document.body)},[r,i]),ri(()=>{if(a&&!i)return Yo(t,a),()=>{Yo(t,null)}},[t,a,i]),i){if(L.isValidElement(n)){let e={ref:s};return L.cloneElement(n,e)}return n}return a&&ws.createPortal(n,a)});function YD(e,t,n){return e===void 0||mD(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function XD(e,t,n){return typeof e==`function`?e(t,n):e}function ZD(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function QD(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function $D(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=Br(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=ZD({...i,...r}),s=QD(r),c=QD(i),l=t(o),u=Br(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function eO(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=XD(d[e],i),{props:{component:h,...g},internalRef:_}=$D({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=es(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,YD(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var tO={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},nO={opacity:0,visibility:`hidden`},rO=L.forwardRef(function(e,t){let n=Co(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=L.useRef(null),y=ts(v,hD(o),t),b=_D(v,d),x=_D(v,(e,t)=>{gD(e);let r=yD({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=_D(v,u),C=_D(v,m),w=_D(v,e=>{let t=yD({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=_D(v,e=>{e.style.transition=``,p&&p(e)});return(0,z.jsx)(As,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=vD(e,c,tO,nO,h,o.props.style);return L.cloneElement(o,{style:r,ref:y,...n})}})});function iO(e){return Hr(`MuiBackdrop`,e)}Ur(`MuiBackdrop`,[`root`,`invisible`]);var aO=e=>{let{classes:t,invisible:n}=e;return ua({root:[`root`,n&&`invisible`]},iO,t)},oO=V(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),sO=L.forwardRef(function(e,t){let n=Io({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=aO(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=eO(`root`,{elementType:oO,externalForwardedProps:_,className:Br(g.root,i),ownerState:h}),[b,x]=eO(`transition`,{elementType:rO,externalForwardedProps:_,ownerState:h});return(0,z.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,z.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function cO(e){return typeof e==`function`?e():e}function lO(e){return e?e.props.hasOwnProperty(`in`):!1}var uO=()=>{},dO=new ND;function fO(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=L.useRef({}),f=L.useRef(null),p=L.useRef(null),m=es(p,u),[h,g]=L.useState(!l),_=lO(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Go(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{dO.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Qo(()=>{let e=cO(t)||y().body;dO.add(b(),e),p.current&&x()}),C=()=>dO.isTopModal(b()),w=Qo(e=>{f.current=e,e&&(l&&C()?x():p.current&&ED(p.current,v))}),T=L.useCallback(()=>{dO.remove(b(),v)},[v]);L.useEffect(()=>()=>{T()},[T]),L.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=ZD(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:Po(()=>{g(!1),a&&a()},s?.props.onEnter??uO),onExited:Po(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??uO)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function pO(e){return Hr(`MuiModal`,e)}Ur(`MuiModal`,[`root`,`hidden`,`backdrop`]);var mO=e=>{let{open:t,exited:n,classes:r}=e;return ua({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},pO,r)},hO=V(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Fo(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),gO=V(sO,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),_O=L.forwardRef(function(e,t){let n=Io({name:`MuiModal`,props:e}),{BackdropComponent:r=gO,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,k={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:A,getBackdropProps:j,getTransitionProps:M,portalRef:N,isTopModal:P,exited:ee,hasTransition:te}=fO({...k,rootRef:t}),F={...k,exited:ee},ne=mO(F),I={};if(c.props.tabIndex===void 0&&(I.tabIndex=`-1`),te){let{onEnter:e,onExited:t}=M();I.onEnter=e,I.onExited=t}let re={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ie,ae]=eO(`root`,{ref:t,elementType:hO,externalForwardedProps:{...re,...O,component:u},getSlotProps:A,ownerState:F,className:Br(o,ne?.root,!F.open&&F.exited&&ne?.hidden)}),[oe,se]=eO(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>j({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:Br(i?.className,ne?.backdrop),ownerState:F});return!b&&!w&&(!te||ee)?null:(0,z.jsx)(JD,{ref:N,container:l,disablePortal:g,children:(0,z.jsxs)(ie,{...ae,children:[!y&&r?(0,z.jsx)(oe,{...se}):null,(0,z.jsx)(KD,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:P,open:w,children:L.cloneElement(c,I)})]})})});function vO(e){return Hr(`MuiPaper`,e)}Ur(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var yO=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ua({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},vO,i)},bO=V(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(Fo(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),xO=L.forwardRef(function(e,t){let n=Io({props:e,name:`MuiPaper`}),r=Co(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c};return(0,z.jsx)(bO,{as:a,ownerState:u,className:Br(yO(u).root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${mi(`#fff`,ro(o))}, ${mi(`#fff`,ro(o))})`}},...l.style}})});function SO(e){return Hr(`MuiPopover`,e)}Ur(`MuiPopover`,[`root`,`paper`]);function CO(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function wO(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function TO(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function EO(e){return typeof e==`function`?e():e}var DO=e=>{let{classes:t}=e;return ua({root:[`root`],paper:[`paper`]},SO,t)},OO=V(_O,{name:`MuiPopover`,slot:`Root`})({}),kO=V(xO,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),AO=L.forwardRef(function(e,t){let n=Io({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=L.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=DO(w),E=L.useCallback(()=>{if(s===`anchorPosition`)return o;let e=EO(i),t=(e&&e.nodeType===1?e:Ko(C.current).body).getBoundingClientRect();return{top:t.top+CO(t,a.vertical),left:t.left+wO(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=L.useCallback(e=>({vertical:CO(e,_.vertical),horizontal:wO(e,_.horizontal)}),[_.horizontal,_.vertical]),O=L.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:TO(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Jo(EO(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:TO(n)}},[i,s,E,D,f]),[k,A]=L.useState(p),j=L.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)},[O]);L.useEffect(()=>(x&&window.addEventListener(`scroll`,j),()=>window.removeEventListener(`scroll`,j)),[i,x,j]);let M=()=>{j()},N=()=>{A(!1)};L.useEffect(()=>{p&&j()}),L.useImperativeHandle(r,()=>p?{updatePosition:()=>{j()}}:null,[p,j]),L.useEffect(()=>{if(!p)return;let e=Uo(()=>{j()}),t=Jo(EO(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,j]);let P=y,ee={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[te,F]=eO(`transition`,{elementType:CD,externalForwardedProps:ee,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),M()},onExited:t=>{e.onExited?.(t),N()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!te.muiSupportAuto&&(P=void 0);let ne=u||(i?Ko(EO(i)).body:void 0),[I,{slots:re,slotProps:ie,...ae}]=eO(`root`,{ref:t,elementType:OO,externalForwardedProps:{...ee,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:rs(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:ne,open:p},ownerState:w,className:Br(T.root,l)}),[oe,se]=eO(`paper`,{ref:C,className:T.paper,elementType:kO,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:k?void 0:{opacity:0}},ownerState:w});return(0,z.jsx)(I,{...ae,...!mD(I)&&{slots:re,slotProps:ie,disableScrollLock:x},children:(0,z.jsx)(te,{...F,timeout:P,children:(0,z.jsx)(oe,{...se,children:c})})})}),jO={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},MO={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},NO=s({background:()=>nk,backgroundDark:()=>rk,black:()=>fk,blueGrey100:()=>yk,blueGrey300:()=>bk,blueGrey600:()=>xk,blueGrey900:()=>Sk,border:()=>ck,borderDark:()=>uk,borderGray:()=>dk,borderLight:()=>lk,buttonBorder:()=>kk,buttonHoverBg:()=>Ak,correct:()=>RO,correctSecondary:()=>zO,correctTertiary:()=>BO,correctWithIcon:()=>VO,defaults:()=>Z,disabled:()=>IO,disabledSecondary:()=>LO,dropdownBackground:()=>ak,fadedPrimary:()=>ZO,focusChecked:()=>hk,focusCheckedBorder:()=>gk,focusUnchecked:()=>_k,focusUncheckedBorder:()=>vk,incorrect:()=>HO,incorrectSecondary:()=>WO,incorrectWithIcon:()=>UO,keyBoardFocusIndicator:()=>Ok,keypadButton:()=>Ck,keypadButtonHover:()=>Ek,keypadButtonOperator:()=>wk,keypadButtonOperatorHover:()=>Dk,keypadEmptyPlaceholder:()=>Tk,missing:()=>GO,missingWithIcon:()=>KO,primary:()=>qO,primaryDark:()=>YO,primaryLight:()=>JO,primaryText:()=>XO,secondary:()=>QO,secondaryBackground:()=>ik,secondaryDark:()=>ek,secondaryLight:()=>$O,secondaryText:()=>tk,tertiary:()=>ok,tertiaryLight:()=>sk,text:()=>FO,transparent:()=>mk,v:()=>PO,visualElementsColors:()=>jk,white:()=>pk}),Z={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,CORRECT:ya[500],CORRECT_SECONDARY:ya[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ga[500],INCORRECT_SECONDARY:ha[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:ha[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:MO[500],PRIMARY_LIGHT:MO[200],PRIMARY_DARK:MO[800],SECONDARY:jO.A400,SECONDARY_LIGHT:jO[200],SECONDARY_DARK:jO[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#C0C3CF`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(Z);var PO=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Q=PO(`pie`),FO=()=>Q(`text`,Z.TEXT),IO=()=>Q(`disabled`,Z.DISABLED),LO=()=>Q(`disabled-secondary`,Z.DISABLED_SECONDARY),RO=()=>Q(`correct`,Z.CORRECT),zO=()=>Q(`correct-secondary`,Z.CORRECT_SECONDARY),BO=()=>Q(`correct-tertiary`,Z.CORRECT_TERTIARY),VO=()=>Q(`correct-icon`,Z.CORRECT_WITH_ICON),HO=()=>Q(`incorrect`,Z.INCORRECT),UO=()=>Q(`incorrect-icon`,Z.INCORRECT_WITH_ICON),WO=()=>Q(`incorrect-secondary`,Z.INCORRECT_SECONDARY),GO=()=>Q(`missing`,Z.MISSING),KO=()=>Q(`missing-icon`,Z.MISSING_WITH_ICON),qO=()=>Q(`primary`,Z.PRIMARY),JO=()=>Q(`primary-light`,Z.PRIMARY_LIGHT),YO=()=>Q(`primary-dark`,Z.PRIMARY_DARK),XO=()=>Q(`primary-text`,`text`,Z.TEXT),ZO=()=>Q(`faded-primary`,Z.FADED_PRIMARY),QO=()=>Q(`secondary`,Z.SECONDARY),$O=()=>Q(`secondary-light`,Z.SECONDARY_LIGHT),ek=()=>Q(`secondary-dark`,Z.SECONDARY_DARK),tk=()=>Q(`secondary-text`,`text`,Z.TEXT),nk=()=>Q(`background`,Z.BACKGROUND),rk=()=>Q(`background-dark`,Z.BACKGROUND_DARK),ik=()=>Q(`secondary-background`,Z.SECONDARY_BACKGROUND),ak=()=>Q(`dropdown-background`,Z.DROPDOWN_BACKGROUND),ok=()=>Q(`tertiary`,Z.TERTIARY),sk=()=>Q(`tertiary-light`,Z.TERTIARY_LIGHT),ck=()=>Q(`border`,Z.BORDER),lk=()=>Q(`border-light`,Z.BORDER_LIGHT),uk=()=>Q(`border-dark`,Z.BORDER_DARK),dk=()=>Q(`border-gray`,Z.BORDER_GRAY),fk=()=>Q(`black`,Z.BLACK),pk=()=>Q(`white`,Z.WHITE),mk=()=>Z.TRANSPARENT,hk=()=>Q(`focus-checked`,Z.FOCUS_CHECKED),gk=()=>Q(`focus-checked-border`,Z.FOCUS_CHECKED_BORDER),_k=()=>Q(`focus-unchecked`,Z.FOCUS_UNCHECKED),vk=()=>Q(`focus-unchecked-border`,Z.FOCUS_UNCHECKED_BORDER),yk=()=>Q(`blue-grey-100`,Z.BLUE_GREY100),bk=()=>Q(`blue-grey-300`,Z.BLUE_GREY300),xk=()=>Q(`blue-grey-600`,Z.BLUE_GREY600),Sk=()=>Q(`blue-grey-900`,Z.BLUE_GREY900),Ck=()=>Q(`keypad-button`,Z.KEYPAD_BUTTON),wk=()=>Q(`keypad-button-operator`,Z.KEYPAD_BUTTON_OPERATOR),Tk=()=>Q(`keypad-empty-placeholder`,Z.KEYPAD_EMPTY_PLACEHOLDER),Ek=()=>Q(`keypad-button-hover`,Z.KEYPAD_BUTTON_HOVER),Dk=()=>Q(`keypad-button-operator-hover`,Z.KEYPAD_BUTTON_OPERATOR_HOVER),Ok=()=>Q(`keyboard-focus-indicator`,Z.KEY_BOARD_FOCUS_INDICATOR),kk=()=>Q(`button-border`,Z.BUTTON_BORDER),Ak=()=>Q(`button-hover-bg`,Z.BUTTON_HOVER_BG),jk={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Mk=V(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Nk=V(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${IO()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${RO()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${HO()})`}}),Pk=V(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),Fk=class extends L.Component{static propTypes={correctness:R.string,feedback:R.string};nodeRef=L.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,z.jsx)(Ps,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,z.jsx)(Pk,{ref:this.nodeRef,children:(0,z.jsx)(Mk,{children:(0,z.jsx)(Nk,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,z.jsx)(`div`,{children:(0,z.jsx)(Us,{children:this.renderFeedback()})})}};function Ik(){return()=>{}}var Lk=s({Correct:()=>Uk,Incorrect:()=>Wk,NothingSubmitted:()=>Kk,PartiallyCorrect:()=>Gk}),Rk=Ik(`pie-libs:render-ui:response-indicators`),zk=V(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Bk=V(AO)({cursor:`pointer`}),Vk=V(`div`)({padding:`0`,borderRadius:`4px`}),Hk=(e,t)=>{class n extends L.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Rk(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,z.jsxs)(zk,{hasFeedback:!!n,children:[(0,z.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,z.jsx)(e,{})}),n&&(0,z.jsx)(Bk,{PaperComponent:Vk,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,z.jsx)(Fk,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:R.string},n},Uk=Hk(JE,`correct`),Wk=Hk(tD,`incorrect`),Gk=Hk(cD,`partially-correct`),Kk=Hk(aD,`nothing-submitted`);function qk(e){return Hr(`MuiCollapse`,e)}Ur(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Jk=e=>{let{orientation:t,classes:n}=e;return ua({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},qk,n)},Yk=V(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(Fo(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),Xk=V(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Zk=V(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Qk=L.forwardRef(function(e,t){let n=Io({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Ka.standard,TransitionComponent:x=As,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Jk(C),T=Co(),E=qs(),D=L.useRef(null),O=L.useRef(),k=typeof o==`number`?`${o}px`:o,A=g===`horizontal`,j=A?`width`:`height`,M=L.useRef(null),N=ts(t,M),P=()=>D.current?D.current[A?`clientWidth`:`clientHeight`]:0,ee=_D(M,(e,t)=>{D.current&&A&&(D.current.style.position=`absolute`),e.style[j]=k,u&&u(e,t)}),te=_D(M,(e,t)=>{let n=P();D.current&&A&&(D.current.style.position=``);let{duration:r,easing:i}=yD({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[j]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),F=_D(M,(e,t)=>{e.style[j]=`auto`,d&&d(e,t)}),ne=_D(M,e=>{e.style[j]=`${P()}px`,p&&p(e)}),I=_D(M,m),re=_D(M,e=>{let t=P(),{duration:n,easing:r}=yD({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[j]=k,e.style.transitionTimingFunction=r,h&&h(e)}),ie=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(M.current,e)},ae={slots:_,slotProps:v,component:s},[oe,se]=eO(`root`,{ref:N,className:Br(w.root,a),elementType:Yk,externalForwardedProps:ae,ownerState:C,additionalProps:{style:{[A?`minWidth`:`minHeight`]:k,...y}}}),[ce,le]=eO(`wrapper`,{ref:D,className:w.wrapper,elementType:Xk,externalForwardedProps:ae,ownerState:C}),[ue,de]=eO(`wrapperInner`,{className:w.wrapperInner,elementType:Zk,externalForwardedProps:ae,ownerState:C});return(0,z.jsx)(x,{in:l,onEnter:ee,onEntered:F,onEntering:te,onExit:ne,onExited:I,onExiting:re,addEndListener:ie,nodeRef:M,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,z.jsx)(oe,{...se,className:Br(se.className,{entered:w.entered,exited:!l&&k===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,z.jsx)(ce,{...le,ownerState:r,children:(0,z.jsx)(ue,{...de,ownerState:r,children:i})})})}})});Qk&&(Qk.muiSupportAuto=!0);var $k=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,eA=null;function tA(e){return typeof window>`u`||window.MathJax?.version?Promise.resolve():eA||(eA=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[]},tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i,enableAssistiveMml:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||$k,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)}),eA)}function nA(){let e=window.MathJax?.startup?.document;if(typeof e?.assistiveMml==`function`)try{e.assistiveMml().updateDocument?.()}catch(e){console.warn(`[mathjax-renderer] Failed to attach assistive MathML:`,e)}}function rA(e={}){return async t=>{if(await tA(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),nA()}}var iA=null;function aA(){return iA||=rA({accessibility:!0,useSingleDollar:!0}),iA}var oA=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;return t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body,await aA()(n),t?n.innerHTML:void 0},sA=V(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),cA=V(Qk)(({theme:e})=>({paddingTop:e.spacing(2)})),lA=class extends L.Component{static propTypes={className:R.string,children:R.object,labels:R.shape({visible:R.string,hidden:R.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){oA(this.root)}componentDidUpdate(){oA(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,z.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,z.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,z.jsx)(sA,{children:r})}),(0,z.jsx)(cA,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}},uA=Vo((0,z.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),dA=Vo((0,z.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),fA=V(`div`)({display:`flex`,flexDirection:`column`}),pA=V(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),mA=V(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),hA=V(Pc)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),gA=e=>{class t extends L.Component{static propTypes={session:R.object,onSessionChange:R.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,z.jsxs)(fA,{children:[(0,z.jsxs)(pA,{children:[(0,z.jsxs)(hA,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,z.jsx)(mA,{children:(0,z.jsx)(dA,{})}),`Undo`]}),(0,z.jsxs)(hA,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,z.jsx)(mA,{children:(0,z.jsx)(uA,{})}),`Start Over`]})]}),(0,z.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},_A=xo({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),vA=V(`div`)({"& table, th, td":{fontSize:`inherit`}}),yA=class extends L.Component{static propTypes={className:R.string,children:R.array,extraCSSRules:R.shape({names:R.arrayOf(R.string),rules:R.string}),fontSizeFactor:R.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,z.jsx)(nn,{injectFirst:!0,children:(0,z.jsxs)(Mo,{theme:_A,children:[i?.rules?(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.extraCSSRules { ${i.rules} }`}}):null,(0,z.jsx)(vA,{className:`${t} extraCSSRules`,...a,...o&&{style:o},children:e})]})})}},bA=V(yA)({display:`flex`,flexDirection:`column`,position:`relative`}),xA=class extends L.Component{static propTypes={ariaLabel:R.string,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,role:R.string,extraCSSRules:R.shape({names:R.arrayOf(R.string),rules:R.string}),fontSizeFactor:R.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,z.jsx)(bA,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},SA=class extends L.Component{static propTypes={tag:R.string,className:R.string,html:R.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,z.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:n}})}};function CA({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var wA=L.createContext(void 0);function TA(){return L.useContext(wA)}function EA(e){return Hr(`MuiFormLabel`,e)}var DA=Ur(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),OA=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return ua({root:[`root`,`color${No(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},EA,t)},kA=V(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Fo(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(dc()).map(([t])=>({props:{color:t},style:{[`&.${DA.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${DA.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${DA.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),AA=V(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Fo(({theme:e})=>({[`&.${DA.error}`]:{color:(e.vars||e).palette.error.main}}))),jA=L.forwardRef(function(e,t){let n=Io({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=CA({props:n,muiFormControl:TA(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=OA(m);return(0,z.jsxs)(kA,{as:o,ownerState:m,className:Br(h.root,i),ref:t,...f,children:[r,p.required&&(0,z.jsxs)(AA,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function MA(e){return Hr(`MuiInputLabel`,e)}Ur(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var NA=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=ua({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${No(r)}`,o],asterisk:[s&&`asterisk`]},MA,t);return{...t,...c}},PA=V(jA,{shouldForwardProp:e=>To(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${DA.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Fo(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),FA=L.forwardRef(function(e,t){let n=Io({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=TA(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=CA({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=NA(f);return(0,z.jsx)(PA,{"data-shrink":u,ref:t,className:Br(p.root,s),...c,ownerState:f,classes:p})});function IA(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function LA(e,t=!1){return e&&(IA(e.value)&&e.value!==``||t&&IA(e.defaultValue)&&e.defaultValue!==``)}function RA(e){return e.startAdornment}function zA(e){return Hr(`MuiFormControl`,e)}Ur(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var BA=e=>{let{classes:t,margin:n,fullWidth:r}=e;return ua({root:[`root`,n!==`none`&&`margin${No(n)}`,r&&`fullWidth`]},zA,t)},VA=V(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${No(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),HA=V(L.forwardRef(function(e,t){let n=Io({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=BA(_),[y,b]=L.useState(()=>{let e=!1;return r&&L.Children.forEach(r,t=>{if(!Wo(t,[`Input`,`Select`]))return;let n=Wo(t,[`Select`])?t.props.input:t;n&&RA(n.props)&&(e=!0)}),e}),[x,S]=L.useState(()=>{let e=!1;return r&&L.Children.forEach(r,t=>{Wo(t,[`Input`,`Select`])&&(LA(t.props,!0)||LA(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=L.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;L.useRef(!1);let E=L.useCallback(()=>{S(!0)},[]),D=L.useCallback(()=>{S(!1)},[]),O=L.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,z.jsx)(wA.Provider,{value:O,children:(0,z.jsx)(VA,{as:o,ownerState:_,className:Br(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),UA=V(FA)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),WA=({label:e,className:t,children:n})=>(0,z.jsxs)(HA,{className:t,children:[(0,z.jsx)(UA,{shrink:!0,children:e}),n]});WA.propTypes={label:R.oneOfType([R.string,R.object]).isRequired,className:R.string,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired};var GA=V(`div`)(({theme:e,tagName:t})=>({'&:not(.MathJax) > table:not([role="presentation"])':{borderCollapse:`collapse`},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)':{backgroundColor:`#f6f8fa`,color:e.palette.common.black},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td':{backgroundColor:`#f6f8fa`,color:e.palette.common.black},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},"&:not(.MathJax) > table td > p.kds-indent":{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:FO()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${FO()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),KA=/\\embed\{newLine\}\[\]/g,qA=`\\newline `,JA=class extends L.Component{static propTypes={prompt:R.string,tagName:R.string,className:R.string,onClick:R.func,defaultClassName:R.string,autoplayAudioEnabled:R.bool,customAudioButton:R.shape({playImage:R.string,pauseImage:R.string})};static defaultProps={onClick:()=>{}};parsedText=e=>{let{customAudioButton:t}=this.props,n=document.createElement(`div`);n.innerHTML=e;let r=n.querySelector(`audio`);if(r){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,r.getAttribute(`src`)),r.removeAttribute(`src`),r.setAttribute(`id`,`pie-prompt-audio-player`),r.appendChild(e),t){r.style.display=`none`;let e=document.createElement(`div`);e.id=`play-audio-button`,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,backgroundImage:`url(${t.pauseImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),r.parentNode.insertBefore(e,r)}}return n.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=document.getElementById(`play-audio-button`),r=document.getElementById(`pie-prompt-audio-player`);if(e&&r&&r.play().then(()=>{n&&t&&r.addEventListener(`ended`,a)}).catch(e=>{console.error(`Error playing audio`,e)}),!n||!r||!t)return;let i=()=>{r.paused&&(n.style.backgroundImage.includes(t.pauseImage)||r.play())},a=()=>{n.style.backgroundImage=`url(${t.playImage})`},o=()=>{Object.assign(n.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},s=()=>{Object.assign(n.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};n.addEventListener(`click`,i),r.addEventListener(`play`,o),r.addEventListener(`pause`,s),r.addEventListener(`ended`,a),this._handlePlayClick=i,this._handleAudioPlay=o,this._handleAudioPause=s,this._handleAudioEnded=a}removeCustomAudioButtonListeners(){let e=document.getElementById(`play-audio-button`),t=document.querySelector(`audio`);!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=document.getElementById(`preview-prompt`);e&&typeof oA==`function`&&oA(e)}alignImages(){document.querySelectorAll(`#preview-prompt`).forEach(e=>{let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}})}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``}`.trim();return(0,z.jsx)(GA,{as:t||`div`,id:`preview-prompt`,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(KA,qA)}})}},YA=e=>(0,z.jsx)(z.Fragment,{children:L.Children.map(e.children,t=>L.cloneElement(t,{"data-pie-readable":e.false===void 0}))});YA.propTypes={children:R.node,false:R.bool};var XA=e=>(0,z.jsx)(z.Fragment,{children:L.Children.map(e.children,t=>L.cloneElement(t,{"data-pie-purpose":e.purpose}))});XA.propTypes={children:R.node,purpose:R.string};var ZA;typeof window<`u`&&(ZA=new DOMParser);var QA=e=>ZA.parseFromString(e,`text/html`).body.textContent,$A=e=>{if(!e)return!1;let t=QA(e);return!!(t&&t.trim())},ej;typeof window<`u`&&(ej=new DOMParser);var tj=e=>{if(!e)return!1;let t=ej.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},nj=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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`;function rj(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}function ij(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:XD(n,r),{props:s,internalRef:c}=$D({...a,externalSlotProps:o}),l=es(c,o?.ref,e.additionalProps?.ref);return YD(t,{...s,ref:l},r)}var aj=L.createContext({});function oj(e){return Hr(`MuiList`,e)}Ur(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var sj=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ua({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},oj,t)},cj=V(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),lj=L.forwardRef(function(e,t){let n=Io({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=L.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=sj(d);return(0,z.jsx)(aj.Provider,{value:u,children:(0,z.jsxs)(cj,{as:a,className:Br(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),uj=wD;function dj(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fj(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pj(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function mj(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!pj(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var hj=L.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=L.useRef(null),p=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xo(()=>{r&&f.current.focus()},[r]),L.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${uj(Jo(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=LD(Ko(t));if(n===`ArrowDown`)e.preventDefault(),mj(t,r,c,s,dj);else if(n===`ArrowUp`)e.preventDefault(),mj(t,r,c,s,fj);else if(n===`Home`)e.preventDefault(),mj(t,null,c,s,dj);else if(n===`End`)e.preventDefault(),mj(t,null,c,s,fj);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&pj(r,i);i.previousKeyMatched&&(c||mj(t,r,!1,s,dj,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=ts(f,t),g=-1;L.Children.forEach(a,(e,t)=>{if(!L.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=L.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),L.cloneElement(e,t)}return e});return(0,z.jsx)(lj,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function gj(e){return Hr(`MuiMenu`,e)}Ur(`MuiMenu`,[`root`,`paper`,`list`]);var _j={vertical:`top`,horizontal:`right`},vj={vertical:`top`,horizontal:`left`},yj=e=>{let{classes:t}=e;return ua({root:[`root`],paper:[`paper`],list:[`list`]},gj,t)},bj=V(AO,{shouldForwardProp:e=>To(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),xj=V(kO,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),Sj=V(hj,{name:`MuiMenu`,slot:`List`})({outline:0}),Cj=L.forwardRef(function(e,t){let n=Io({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=ki(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=yj(b),S=r&&!o&&l,C=L.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;L.Children.map(i,(e,t)=>{L.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=ij({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[k,A]=eO(`paper`,{className:x.paper,elementType:xj,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[j,M]=eO(`list`,{className:Br(x.list,s.className),elementType:Sj,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),N=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,z.jsx)(bj,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?_j:vj,slots:{root:g.root,paper:k,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:A,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...N,onEntering:(...e)=>{w(...e),N?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,z.jsx)(j,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...M,children:i})})}),wj=({slotProps:e,...t})=>(0,z.jsx)(Cj,{...t,disableScrollLock:!0,hideBackdrop:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,pointerEvents:`none`,...e?.root?.style}},paper:{...e?.paper,style:{pointerEvents:`auto`,...e?.paper?.style}}}}),Tj=s({Collapsible:()=>lA,EnableAudioAutoplayImage:()=>nj,Feedback:()=>Fk,HtmlAndMath:()=>SA,InlineMenu:()=>wj,InputContainer:()=>WA,PreviewLayout:()=>xA,PreviewPrompt:()=>JA,Purpose:()=>XA,Readable:()=>YA,UiLayout:()=>yA,color:()=>NO,hasMedia:()=>tj,hasText:()=>$A,indicators:()=>Lk,transformDataHeadings:()=>rj,withUndoReset:()=>gA}),Ej=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Dj(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function Oj(e){return`nodeType`in e}function kj(e){return e?Dj(e)?e:Oj(e)?e.ownerDocument?.defaultView??window:window:window}function Aj(e){let{Document:t}=kj(e);return e instanceof t}function jj(e){return Dj(e)?!1:e instanceof kj(e).HTMLElement}function Mj(e){return e instanceof kj(e).SVGElement}function Nj(e){return e?Dj(e)?e.document:Oj(e)?Aj(e)?e:jj(e)||Mj(e)?e.ownerDocument:document:document:document}var Pj=Ej?L.useLayoutEffect:L.useEffect;function Fj(e){let t=(0,L.useRef)(e);return Pj(()=>{t.current=e}),(0,L.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current==null?void 0:t.current(...n)},[])}function Ij(){let e=(0,L.useRef)(null);return[(0,L.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,L.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function Lj(e,t){t===void 0&&(t=[e]);let n=(0,L.useRef)(e);return Pj(()=>{n.current!==e&&(n.current=e)},t),n}function Rj(e,t){let n=(0,L.useRef)();return(0,L.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function zj(e){let t=Fj(e),n=(0,L.useRef)(null);return[n,(0,L.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function Bj(e){let t=(0,L.useRef)();return(0,L.useEffect)(()=>{t.current=e},[e]),t.current}var Vj={};function Hj(e,t){return(0,L.useMemo)(()=>{if(t)return t;let n=Vj[e]==null?0:Vj[e]+1;return Vj[e]=n,e+`-`+n},[e,t])}function Uj(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var Wj=Uj(1),Gj=Uj(-1);function Kj(e){return`clientX`in e&&`clientY`in e}function qj(e){if(!e)return!1;let{KeyboardEvent:t}=kj(e.target);return t&&e instanceof t}function Jj(e){if(!e)return!1;let{TouchEvent:t}=kj(e.target);return t&&e instanceof t}function Yj(e){if(Jj(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Kj(e)?{x:e.clientX,y:e.clientY}:null}var Xj=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function Zj(e){return e.matches(Xj)?e:e.querySelector(Xj)}var Qj={display:`none`};function $j(e){let{id:t,value:n}=e;return L.createElement(`div`,{id:t,style:Qj},n)}function eM(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return L.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function tM(){let[e,t]=(0,L.useState)(``);return{announce:(0,L.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var nM=(0,L.createContext)(null);function rM(e){let t=(0,L.useContext)(nM);(0,L.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function iM(){let[e]=(0,L.useState)(()=>new Set),t=(0,L.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,L.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var aM={draggable:`
164
+ To pick up a draggable item, press the space bar.
165
+ While dragging, use the arrow keys to move the item.
166
+ Press space again to drop the item in its new position, or press escape to cancel.
167
+ `},oM={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function sM(e){let{announcements:t=oM,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=aM}=e,{announce:a,announcement:o}=tM(),s=Hj(`DndLiveRegion`),[c,l]=(0,L.useState)(!1);if((0,L.useEffect)(()=>{l(!0)},[]),rM((0,L.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=L.createElement(L.Fragment,null,L.createElement($j,{id:r,value:i.draggable}),L.createElement(eM,{id:s,announcement:o}));return n?(0,ws.createPortal)(u,n):u}var cM;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(cM||={});function lM(){}var uM=Object.freeze({x:0,y:0});function dM(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function fM(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function pM(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var mM=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=pM(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(dM)};function hM(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function gM(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:uM}function _M(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var vM=_M(1);function yM(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function bM(e,t,n){let r=yM(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var xM={ignoreTransform:!1};function SM(e,t){t===void 0&&(t=xM);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=kj(e).getComputedStyle(e);t&&(n=bM(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function CM(e){return SM(e,{ignoreTransform:!0})}function wM(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function TM(e,t){return t===void 0&&(t=kj(e).getComputedStyle(e)),t.position===`fixed`}function EM(e,t){t===void 0&&(t=kj(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`?n.test(r):!1})}function DM(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(Aj(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!jj(i)||Mj(i)||n.includes(i))return n;let a=kj(e).getComputedStyle(i);return i!==e&&EM(i,a)&&n.push(i),TM(i,a)?n:r(i.parentNode)}return e?r(e):n}function OM(e){let[t]=DM(e,1);return t??null}function kM(e){return!Ej||!e?null:Dj(e)?e:Oj(e)?Aj(e)||e===Nj(e).scrollingElement?window:jj(e)?e:null:null}function AM(e){return Dj(e)?e.scrollX:e.scrollLeft}function jM(e){return Dj(e)?e.scrollY:e.scrollTop}function MM(e){return{x:AM(e),y:jM(e)}}var NM;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(NM||={});function PM(e){return!Ej||!e?!1:e===document.scrollingElement}function FM(e){let t={x:0,y:0},n=PM(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var IM={x:.2,y:.2};function LM(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=IM);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=FM(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=NM.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=NM.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=NM.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=NM.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function RM(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function zM(e){return e.reduce((e,t)=>Wj(e,MM(t)),uM)}function BM(e){return e.reduce((e,t)=>e+AM(t),0)}function VM(e){return e.reduce((e,t)=>e+jM(t),0)}function HM(e,t){if(t===void 0&&(t=SM),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);OM(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var UM=[[`x`,[`left`,`right`],BM],[`y`,[`top`,`bottom`],VM]],WM=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=DM(t),r=zM(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of UM)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},GM=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function KM(e){let{EventTarget:t}=kj(e);return e instanceof t?e:Nj(e)}function qM(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t?r>t.y:!1}var JM;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(JM||={});function YM(e){e.preventDefault()}function XM(e){e.stopPropagation()}var ZM;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(ZM||={});var QM={start:[ZM.Space,ZM.Enter],cancel:[ZM.Esc],end:[ZM.Space,ZM.Enter,ZM.Tab]},$M=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ZM.Right:return{...n,x:n.x+25};case ZM.Left:return{...n,x:n.x-25};case ZM.Down:return{...n,y:n.y+25};case ZM.Up:return{...n,y:n.y-25}}},eN=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new GM(Nj(t)),this.windowListeners=new GM(kj(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(JM.Resize,this.handleCancel),this.windowListeners.add(JM.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(JM.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&HM(n),t(uM)}handleKeyDown(e){if(qj(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=QM,coordinateGetter:a=$M,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:uM;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=Gj(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=FM(n),p=RM(n),m={x:Math.min(i===ZM.Right?p.right-p.width/2:p.right,Math.max(i===ZM.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===ZM.Down?p.bottom-p.height/2:p.bottom,Math.max(i===ZM.Down?p.top:p.top+p.height/2,u.y))},h=i===ZM.Right&&!s||i===ZM.Left&&!c,g=i===ZM.Down&&!l||i===ZM.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===ZM.Right&&e<=d.x||i===ZM.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===ZM.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}else if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===ZM.Down&&e<=d.y||i===ZM.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===ZM.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,Wj(Gj(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};eN.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=QM,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function tN(e){return!!(e&&`distance`in e)}function nN(e){return!!(e&&`delay`in e)}var rN=class{constructor(e,t,n){n===void 0&&(n=KM(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=Nj(i),this.documentListeners=new GM(this.document),this.listeners=new GM(n),this.windowListeners=new GM(kj(i)),this.initialCoordinates=Yj(r)??uM,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(JM.Resize,this.handleCancel),this.windowListeners.add(JM.DragStart,YM),this.windowListeners.add(JM.VisibilityChange,this.handleCancel),this.windowListeners.add(JM.ContextMenu,YM),this.documentListeners.add(JM.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(tN(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(JM.Click,XM,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(JM.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=Yj(e)??uM,s=Gj(n,o);if(!t&&a){if(tN(a)){if(a.tolerance!=null&&qM(s,a.tolerance))return this.handleCancel();if(qM(s,a.distance))return this.handleStart()}if(nN(a)&&qM(s,a.tolerance))return this.handleCancel();this.handlePending(a,s);return}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===ZM.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},iN={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},aN=class extends rN{constructor(e){let{event:t}=e,n=Nj(t.target);super(e,iN,n)}};aN.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var oN={move:{name:`mousemove`},end:{name:`mouseup`}},sN;(function(e){e[e.RightClick=2]=`RightClick`})(sN||={});var cN=class extends rN{constructor(e){super(e,oN,Nj(e.event.target))}};cN.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===sN.RightClick?!1:(r?.({event:n}),!0)}}];var lN={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},uN=class extends rN{constructor(e){super(e,lN)}static setup(){return window.addEventListener(lN.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(lN.move.name,e)};function e(){}}};uN.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var dN;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(dN||={});var fN;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(fN||={});function pN(e){let{acceleration:t,activator:n=dN.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=fN.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=hN({delta:d,disabled:!a}),[m,h]=Ij(),g=(0,L.useRef)({x:0,y:0}),_=(0,L.useRef)({x:0,y:0}),v=(0,L.useMemo)(()=>{switch(n){case dN.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case dN.DraggableRect:return i}},[n,i,c]),y=(0,L.useRef)(null),b=(0,L.useCallback)(()=>{let e=y.current;if(!e)return;let t=g.current.x*_.current.x,n=g.current.y*_.current.y;e.scrollBy(t,n)},[]),x=(0,L.useMemo)(()=>s===fN.TreeOrder?[...l].reverse():l,[s,l]);(0,L.useEffect)(()=>{if(!a||!l.length||!v){h();return}for(let e of x){if(r?.(e)===!1)continue;let n=u[l.indexOf(e)];if(!n)continue;let{direction:i,speed:a}=LM(e,n,v,t,f);for(let e of[`x`,`y`])p[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0){h(),y.current=e,m(b,o),g.current=a,_.current=i;return}}g.current={x:0,y:0},_.current={x:0,y:0},h()},[t,b,r,h,a,o,JSON.stringify(v),JSON.stringify(p),m,l,x,u,JSON.stringify(f)])}var mN={x:{[NM.Backward]:!1,[NM.Forward]:!1},y:{[NM.Backward]:!1,[NM.Forward]:!1}};function hN(e){let{delta:t,disabled:n}=e,r=Bj(t);return Rj(e=>{if(n||!r||!e)return mN;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[NM.Backward]:e.x[NM.Backward]||i.x===-1,[NM.Forward]:e.x[NM.Forward]||i.x===1},y:{[NM.Backward]:e.y[NM.Backward]||i.y===-1,[NM.Forward]:e.y[NM.Forward]||i.y===1}}},[n,t,r])}function gN(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return Rj(e=>t==null?null:r??e??null,[r,t])}function _N(e,t){return(0,L.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var vN;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(vN||={});var yN;(function(e){e.Optimized=`optimized`})(yN||={});var bN=new Map;function xN(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,L.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,L.useRef)(e),d=g(),f=Lj(d),p=(0,L.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,L.useRef)(null),h=Rj(t=>{if(d&&!n)return bN;if(!t||t===bN||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new WM(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,L.useEffect)(()=>{u.current=e},[e]),(0,L.useEffect)(()=>{d||p()},[n,d]),(0,L.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,L.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:a!=null};function g(){switch(l){case vN.Always:return!1;case vN.BeforeDragging:return n;default:return!n}}}function SN(e,t){return Rj(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function CN(e,t){return SN(e,t)}function wN(e){let{callback:t,disabled:n}=e,r=Fj(t),i=(0,L.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,L.useEffect)(()=>()=>i?.disconnect(),[i]),i}function TN(e){let{callback:t,disabled:n}=e,r=Fj(t),i=(0,L.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,L.useEffect)(()=>()=>i?.disconnect(),[i]),i}function EN(e){return new WM(SM(e),e)}function DN(e,t,n){t===void 0&&(t=EN);let[r,i]=(0,L.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=wN({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=TN({callback:a});return Pj(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function ON(e){return gM(e,SN(e))}var kN=[];function AN(e){let t=(0,L.useRef)(e),n=Rj(n=>e?n&&n!==kN&&e&&t.current&&e.parentNode===t.current.parentNode?n:DM(e):kN,[e]);return(0,L.useEffect)(()=>{t.current=e},[e]),n}function jN(e){let[t,n]=(0,L.useState)(null),r=(0,L.useRef)(e),i=(0,L.useCallback)(e=>{let t=kM(e.target);t&&n(e=>e?(e.set(t,MM(t)),new Map(e)):null)},[]);return(0,L.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=kM(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,MM(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{kM(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,L.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>Wj(e,t),uM):zM(e):uM,[e,t])}function MN(e,t){t===void 0&&(t=[]);let n=(0,L.useRef)(null);return(0,L.useEffect)(()=>{n.current=null},t),(0,L.useEffect)(()=>{let t=e!==uM;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?Gj(e,n.current):uM}function NN(e){(0,L.useEffect)(()=>{if(!Ej)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function PN(e,t){return(0,L.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function FN(e){return(0,L.useMemo)(()=>e?wM(e):null,[e])}var IN=[];function LN(e,t){t===void 0&&(t=SM);let[n]=e,r=FN(n?kj(n):null),[i,a]=(0,L.useState)(IN);function o(){a(()=>e.length?e.map(e=>PM(e)?r:new WM(t(e),e)):IN)}let s=TN({callback:o});return Pj(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function RN(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return jj(t)?t:e}function zN(e){let{measure:t}=e,[n,r]=(0,L.useState)(null),i=TN({callback:(0,L.useCallback)(e=>{for(let{target:n}of e)if(jj(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=zj((0,L.useCallback)(e=>{let n=RN(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,L.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var BN=[{sensor:aN,options:{}},{sensor:eN,options:{}}],VN={current:{}},HN={draggable:{measure:CM},droppable:{measure:CM,strategy:vN.WhileDragging,frequency:yN.Optimized},dragOverlay:{measure:SM}},UN=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},WN={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new UN,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:lM},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:HN,measureDroppableContainers:lM,windowRect:null,measuringScheduled:!1},GN={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:lM,draggableNodes:new Map,over:null,measureDroppableContainers:lM},KN=(0,L.createContext)(GN),qN=(0,L.createContext)(WN);function JN(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new UN}}}function YN(e,t){switch(t.type){case cM.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case cM.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case cM.DragEnd:case cM.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case cM.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new UN(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case cM.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new UN(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case cM.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new UN(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function XN(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,L.useContext)(KN),a=Bj(r),o=Bj(n?.id);return(0,L.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!qj(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=Zj(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function ZN(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function QN(e){return(0,L.useMemo)(()=>({draggable:{...HN.draggable,...e?.draggable},droppable:{...HN.droppable,...e?.droppable},dragOverlay:{...HN.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function $N(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,L.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;Pj(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=gM(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=OM(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var eP=(0,L.createContext)({...uM,scaleX:1,scaleY:1}),tP;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(tP||={});var nP=(0,L.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=BN,collisionDetection:o=mM,measuring:s,modifiers:c,...l}=e,[u,d]=(0,L.useReducer)(YN,void 0,JN),[f,p]=iM(),[m,h]=(0,L.useState)(tP.Uninitialized),g=m===tP.Initialized,{draggable:{active:_,nodes:v,translate:y},droppable:{containers:b}}=u,x=_==null?null:v.get(_),S=(0,L.useRef)({initial:null,translated:null}),C=(0,L.useMemo)(()=>_==null?null:{id:_,data:x?.data??VN,rect:S},[_,x]),w=(0,L.useRef)(null),[T,E]=(0,L.useState)(null),[D,O]=(0,L.useState)(null),k=Lj(l,Object.values(l)),A=Hj(`DndDescribedBy`,t),j=(0,L.useMemo)(()=>b.getEnabled(),[b]),M=QN(s),{droppableRects:N,measureDroppableContainers:P,measuringScheduled:ee}=xN(j,{dragging:g,dependencies:[y.x,y.y],config:M.droppable}),te=gN(v,_),F=(0,L.useMemo)(()=>D?Yj(D):null,[D]),ne=Me(),I=CN(te,M.draggable.measure);$N({activeNode:_==null?null:v.get(_),config:ne.layoutShiftCompensation,initialRect:I,measure:M.draggable.measure});let re=DN(te,M.draggable.measure,I),ie=DN(te?te.parentElement:null),ae=(0,L.useRef)({activatorEvent:null,active:null,activeNode:te,collisionRect:null,collisions:null,droppableRects:N,draggableNodes:v,draggingNode:null,draggingNodeRect:null,droppableContainers:b,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),oe=b.getNodeFor(ae.current.over?.id),se=zN({measure:M.dragOverlay.measure}),ce=se.nodeRef.current??te,le=g?se.rect??re:null,ue=!!(se.nodeRef.current&&se.rect),de=ON(ue?null:re),fe=FN(ce?kj(ce):null),pe=AN(g?oe??te:null),me=LN(pe),he=ZN(c,{transform:{x:y.x-de.x,y:y.y-de.y,scaleX:1,scaleY:1},activatorEvent:D,active:C,activeNodeRect:re,containerNodeRect:ie,draggingNodeRect:le,over:ae.current.over,overlayNodeRect:se.rect,scrollableAncestors:pe,scrollableAncestorRects:me,windowRect:fe}),ge=F?Wj(F,y):null,_e=jN(pe),ve=MN(_e),ye=MN(_e,[re]),be=Wj(he,ve),xe=le?vM(le,he):null,Se=C&&xe?o({active:C,collisionRect:xe,droppableRects:N,droppableContainers:j,pointerCoordinates:ge}):null,Ce=fM(Se,`id`),[we,Te]=(0,L.useState)(null),Ee=hM(ue?he:Wj(he,ye),we?.rect??null,re),De=(0,L.useRef)(null),Oe=(0,L.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(w.current==null)return;let i=v.get(w.current);if(!i)return;let a=e.nativeEvent;De.current=new n({active:w.current,activeNode:i,event:a,options:r,context:ae,onAbort(e){if(!v.get(e))return;let{onDragAbort:t}=k.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!v.get(e))return;let{onDragPending:i}=k.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=w.current;if(t==null)return;let n=v.get(t);if(!n)return;let{onDragStart:r}=k.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:S}};(0,ws.unstable_batchedUpdates)(()=>{r?.(i),h(tP.Initializing),d({type:cM.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),E(De.current),O(a)})},onMove(e){d({type:cM.DragMove,coordinates:e})},onEnd:o(cM.DragEnd),onCancel:o(cM.DragCancel)});function o(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ae.current,o=null;if(t&&i){let{cancelDrop:s}=k.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===cM.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=cM.DragCancel)}w.current=null,(0,ws.unstable_batchedUpdates)(()=>{d({type:e}),h(tP.Uninitialized),Te(null),E(null),O(null),De.current=null;let t=e===cM.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=k.current[t];e?.(o),f({type:t,event:o})}})}}},[v]),ke=_N(a,(0,L.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=v.get(r);if(w.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},w.current=r,Oe(n,t))},[v,Oe]));NN(a),Pj(()=>{re&&m===tP.Initializing&&h(tP.Initialized)},[re,m]),(0,L.useEffect)(()=>{let{onDragMove:e}=k.current,{active:t,activatorEvent:n,collisions:r,over:i}=ae.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:be.x,y:be.y},over:i};(0,ws.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[be.x,be.y]),(0,L.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ae.current;if(!e||w.current==null||!t||!i)return;let{onDragOver:a}=k.current,o=r.get(Ce),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,ws.unstable_batchedUpdates)(()=>{Te(s),a?.(c),f({type:`onDragOver`,event:c})})},[Ce]),Pj(()=>{ae.current={activatorEvent:D,active:C,activeNode:te,collisionRect:xe,collisions:Se,droppableRects:N,draggableNodes:v,draggingNode:ce,draggingNodeRect:le,droppableContainers:b,over:we,scrollableAncestors:pe,scrollAdjustedTranslate:be},S.current={initial:le,translated:xe}},[C,te,Se,xe,v,ce,le,N,b,we,pe,be]),pN({...ne,delta:y,draggingRect:xe,pointerCoordinates:ge,scrollableAncestors:pe,scrollableAncestorRects:me});let Ae=(0,L.useMemo)(()=>({active:C,activeNode:te,activeNodeRect:re,activatorEvent:D,collisions:Se,containerNodeRect:ie,dragOverlay:se,draggableNodes:v,droppableContainers:b,droppableRects:N,over:we,measureDroppableContainers:P,scrollableAncestors:pe,scrollableAncestorRects:me,measuringConfiguration:M,measuringScheduled:ee,windowRect:fe}),[C,te,re,D,Se,ie,se,v,b,N,we,P,pe,me,M,ee,fe]),je=(0,L.useMemo)(()=>({activatorEvent:D,activators:ke,active:C,activeNodeRect:re,ariaDescribedById:{draggable:A},dispatch:d,draggableNodes:v,over:we,measureDroppableContainers:P}),[D,ke,C,re,d,A,v,we,P]);return L.createElement(nM.Provider,{value:p},L.createElement(KN.Provider,{value:je},L.createElement(qN.Provider,{value:Ae},L.createElement(eP.Provider,{value:Ee},i)),L.createElement(XN,{disabled:n?.restoreFocus===!1})),L.createElement(sM,{...n,hiddenTextDescribedById:A}));function Me(){let e=T?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=g&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),rP=(0,L.createContext)(null),iP=`button`,aP=`Draggable`;function oP(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=Hj(aP),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,L.useContext)(KN),{role:p=iP,roleDescription:m=`draggable`,tabIndex:h=0}=i??{},g=c?.id===t,_=(0,L.useContext)(g?eP:rP),[v,y]=zj(),[b,x]=zj(),S=PN(o,t),C=Lj(n);return Pj(()=>(d.set(t,{id:t,key:a,node:v,activatorNode:b,data:C}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,L.useMemo)(()=>({role:p,tabIndex:h,"aria-disabled":r,"aria-pressed":g&&p===iP?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,h,g,m,u.draggable]),isDragging:g,listeners:r?void 0:S,node:v,over:f,setNodeRef:y,setActivatorNodeRef:x,transform:_}}function sP({id:e,disabled:t,grid:n,bounds:r,onMouseDown:i,onDragStart:a,onDragMove:o,onDragEnd:s,children:c}){let{attributes:l,listeners:u,setNodeRef:d,transform:f}=oP({id:e,disabled:t}),p=n&&n[0]?n[0]:null,m=f?.x??0;p&&(m=Math.round(m/p)*p),r&&(typeof r.left==`number`&&(m=Math.max(r.left,m)),typeof r.right==`number`&&(m=Math.min(r.right,m)));let h=m,g=!!f,_=e=>{let t=e;return p&&(t=Math.round(t/p)*p),r&&(typeof r.left==`number`&&(t=Math.max(r.left,t)),typeof r.right==`number`&&(t=Math.min(r.right,t))),t};return rM({onDragStart(n){n.active.id!==e||t||a?.()},onDragMove(n){if(n.active.id!==e||t)return;let r=n.delta.x||0;o?.(_(r))},onDragEnd(n){if(n.active.id!==e||t)return;let r=n.delta.x||0;s?.(_(r))}}),c({setNodeRef:d,attributes:l,listeners:u,translateX:h,isDragging:g,onMouseDown:e=>{e.nativeEvent.preventDefault(),i?.(e)}})}var cP=`150ms`,lP=V(`circle`)(({$selected:e,$disabled:t,$correct:n,$empty:r})=>({cursor:`pointer`,transition:`r ${cP} linear,
168
+ opacity ${cP} linear,
169
+ fill ${cP} linear,
170
+ stroke ${cP} linear`,stroke:qO(),fill:qO(),"&.dnd-kit-dragging":{opacity:.25,r:`10px`},"&:hover":{stroke:YO()},...e&&{stroke:YO()},...t&&{cursor:`not-allowed`,opacity:.8},...n===!0&&{cursor:`inherit`,stroke:RO(),fill:RO()},...n===!1&&{cursor:`inherit`,stroke:HO(),fill:HO()},...r&&{fill:`white`}})),uP=class extends L.Component{static defaultProps={y:0,selected:!1,empty:!1,disabled:!1,correct:void 0};static propTypes={interval:R.number.isRequired,position:R.number.isRequired,bounds:R.shape({left:R.number.isRequired,right:R.number.isRequired}),selected:R.bool,disabled:R.bool,correct:R.bool,empty:R.bool,y:R.number,onMove:R.func.isRequired,onClick:R.func,onDrag:R.func,onDragStop:R.func,onDragStart:R.func};static contextTypes={xScale:R.func.isRequired,snapValue:R.func.isRequired};render(){let{onDragStop:e,onDragStart:t,onDrag:n,onClick:r,onMove:i,interval:a,y:o,bounds:s,selected:c,position:l,disabled:u,correct:d,empty:f}=this.props,{snapValue:p,xScale:m}=this.context,h=m(a)-m(0),g=e=>{let t=e+m(0);return p(l+m.invert(t))},_=s?{left:s.left/a*h,right:s.right/a*h}:null;return(0,z.jsx)(sP,{id:`point-${l}-${o}`,disabled:u,grid:[h],bounds:_,onMouseDown:e=>e.nativeEvent.preventDefault(),onDragStart:()=>{t&&t()},onDragMove:e=>{let t=g(e);n&&n(t)},onDragEnd:t=>{if(e&&e(),Math.abs(t)<h/10){r&&r();return}i(g(t))},children:({setNodeRef:e,attributes:t,listeners:n,translateX:r,isDragging:i,onMouseDown:a})=>(0,z.jsxs)(`g`,{ref:e,onMouseDown:a,transform:`translate(${r}, 0)`,...t,...n,children:[(0,z.jsx)(`circle`,{r:`20`,strokeWidth:`3`,style:{fill:`transparent`,pointerEvents:`visibleStroke`},cx:m(l),cy:o,stroke:c?YO():`none`}),(0,z.jsx)(lP,{r:`5`,strokeWidth:`3`,cx:m(l),cy:o,$selected:c,$disabled:u,$correct:d,$empty:f,className:i?`dnd-kit-dragging`:void 0})]})})}},dP=()=>({interval:R.number.isRequired,domain:R.shape({min:R.number.isRequired,max:R.number.isRequired})}),fP=`150ms`,pP=V(`g`)(({$disabled:e,$selected:t,$correct:n})=>({"& .line-handle":{stroke:qO(),cursor:`pointer`,strokeWidth:`5px`,transition:`opacity ${fP} linear,
171
+ stroke-width ${fP} linear,
172
+ stroke ${fP} linear`},"&.dnd-kit-dragging":{opacity:.6,"& .line-handle":{opacity:1,strokeWidth:`12px`}},...e&&{cursor:`not-allowed`,opacity:.8},...t&&{"& .line-handle":{stroke:YO()}},...n===!0&&{"& .line-handle":{cursor:`inherit`,stroke:RO()}},...n===!1&&{"& .line-handle":{cursor:`inherit`,stroke:HO()}}})),mP=class extends L.Component{static propTypes={...dP(),empty:R.shape({left:R.bool.isRequired,right:R.bool.isRequired}).isRequired,position:R.shape({left:R.number.isRequired,right:R.number.isRequired}).isRequired,y:R.number,selected:R.bool,disabled:R.bool,correct:R.bool,onMoveLine:R.func.isRequired,onToggleSelect:R.func.isRequired,onDragStart:R.func,onDragStop:R.func};static defaultProps={selected:!1,y:0,disabled:!1,correct:void 0};static contextTypes={xScale:R.func.isRequired,snapValue:R.func.isRequired};constructor(e){super(e),this.state={left:null,right:null}}UNSAFE_componentWillReceiveProps(e){if(e){let{position:t}=e;this.setState({left:t.left,right:t.right})}}onDrag(e,t){let{domain:n}=this.props;if(t>=n.min&&t<=n.max){let n={};n[e]=t,this.setState(n)}}onMove(e,t){let{position:n}=this.props,r={left:n.left,right:n.right};r[e]=t,this.props.onMoveLine(r)}render(){let{interval:e,empty:t,position:n,domain:r,y:i,selected:a,disabled:o,correct:s}=this.props,{xScale:c}=this.context,{onDrag:l,onMove:u}=this,d=u.bind(this,`left`),f=u.bind(this,`right`),p=l.bind(this,`left`),m=l.bind(this,`right`),h=fS(this.state.left)?this.state.left:n.left,g=fS(this.state.right)?this.state.right:n.right,_=c(e)-c(0),v=e=>e.nativeEvent.preventDefault(),y=()=>{this.props.onToggleSelect()},b=()=>{this.props.onToggleSelect()},x=e=>{if(Math.abs(e)<_/10){this.props.onToggleSelect();return}let t=c.invert(e+c(0)),r={left:n.left+t,right:n.right+t};uS(r,this.props.position)||this.props.onMoveLine(r)},S={left:(r.min-n.left)/e*_,right:(r.max-n.right)/e*_},C={interval:e,selected:a,disabled:o,correct:s};return(0,z.jsx)(sP,{id:`line-${n.left}-${n.right}-${i}`,disabled:o,grid:[_],bounds:S,onMouseDown:v,onDragEnd:x,children:({setNodeRef:e,attributes:l,listeners:u,translateX:_,isDragging:v,onMouseDown:x})=>(0,z.jsx)(pP,{ref:e,$disabled:o,$selected:a,$correct:s,className:v?`dnd-kit-dragging`:void 0,onMouseDown:x,...l,children:(0,z.jsxs)(`g`,{transform:`translate(${_}, ${i})`,children:[(0,z.jsx)(`rect`,{x:c(h),width:Math.abs(c(g)-c(h)),fill:`red`,fillOpacity:`0.0`,y:`-8`,height:16,onClick:b}),(0,z.jsx)(`line`,{className:`line-handle`,x1:c(h),x2:c(g),onClick:y,...u}),(0,z.jsx)(uP,{...C,empty:t.left,bounds:{left:r.min-n.left,right:r.max-n.left},position:n.left,onDrag:p,onMove:d,onClick:b}),(0,z.jsx)(uP,{...C,empty:t.right,bounds:{left:r.min-n.right,right:r.max-n.right},position:n.right,onDrag:m,onMove:f,onClick:b})]})})})}},hP=YO(),gP=RO(),_P=HO(),vP=V(`path`)({fill:qO()});function yP({x:e,y:t,direction:n,className:r}){let i=`translate(${e||0},${t})`;return n&&n===`right`&&(i+=` rotate(180)`),(0,z.jsx)(vP,{d:`m 0,0 8,-5 0,10 -8,-5`,transform:i,className:r})}yP.propTypes={y:R.number,x:R.number,direction:R.oneOf([`left`,`right`]),className:R.string},yP.defaultProps={y:0,x:0,direction:`left`};var bP=V(`g`)(({$selected:e,$correct:t})=>({"& line":{cursor:`pointer`,strokeWidth:`5px`,stroke:qO()},"& line, & .arrow":{transition:`stroke 150ms linear, fill 150ms linear`},...e&&{"& line":{stroke:hP},"& .arrow":{fill:hP,strokeWidth:`1px`,stroke:hP}},...t===!0&&{"& line":{stroke:gP},"& .arrow":{fill:gP,strokeWidth:`1px`,stroke:gP}},...t===!1&&{"& line":{stroke:_P},"& .arrow":{fill:_P,strokeWidth:`1px`,stroke:_P}}})),xP=V(yP)(({$correct:e,$selected:t})=>({fill:qO(),...e===!0&&{fill:gP,"--arrow-color":gP},...e===!1&&{fill:_P,"--arrow-color":_P},...t&&{fill:hP,"--arrow-color":hP}})),SP=class extends L.Component{static propTypes={...dP(),width:R.number.isRequired,selected:R.bool,disabled:R.bool,empty:R.bool,direction:R.oneOf([`positive`,`negative`]),y:R.number,position:R.number.isRequired,onMove:R.func.isRequired,onToggleSelect:R.func.isRequired};static defaultProps={selected:!1,direction:`positive`,y:0,disabled:!1};static contextTypes={xScale:R.func.isRequired,snapValue:R.func.isRequired};constructor(e){super(e),this.state={dragPosition:null}}drag(e){let{domain:t}=this.props;e>=t.min&&e<=t.max&&this.setState({dragPosition:e})}stopDrag(){this.setState({dragPosition:null})}render(){let{interval:e,empty:t,position:n,direction:r,domain:i,y:a,selected:o,disabled:s,width:c,correct:l}=this.props,{xScale:u}=this.context,d=this.drag.bind(this),f=this.stopDrag.bind(this),p=fS(this.state.dragPosition)?this.state.dragPosition:n,m=r===`positive`,h=m?p:i.min,g=m?i.max:p,_=m?u(h):8,v=m?c-8:u(g),y=m?c:0,b=m?`right`:`left`;return(0,z.jsxs)(bP,{$selected:o,$correct:l,transform:`translate(0, ${a})`,children:[(0,z.jsx)(`line`,{onClick:s?()=>{}:this.props.onToggleSelect,className:`line-handle`,x1:_,x2:v}),(0,z.jsx)(uP,{disabled:s,correct:l,selected:o,empty:t,interval:e,bounds:{left:i.min-n,right:i.max-n},position:n,onDrag:d,onDragStop:f,onMove:this.props.onMove,onClick:this.props.onToggleSelect}),(0,z.jsx)(xP,{x:y,$correct:l,$selected:o,direction:b})]})}},CP=!0;function wP(e,t){if(!CP){if(e)return;var n=`Warning: `+t;typeof console<`u`&&console.warn(n);try{throw Error(n)}catch{}}}o((e=>{Object.defineProperty(e,"__esModule",{value:!0})}))();function TP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EP(){return EP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EP.apply(this,arguments)}function DP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function OP(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function kP(e){return function(t){DP(n,t);function n(){for(var n,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i))||this,TP(OP(OP(n)),`cachedTheme`,void 0),TP(OP(OP(n)),`lastOuterTheme`,void 0),TP(OP(OP(n)),`lastTheme`,void 0),TP(OP(OP(n)),`renderProvider`,function(t){var r=n.props.children;return L.createElement(e.Provider,{value:n.getTheme(t)},r)}),n}var r=n.prototype;return r.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,typeof this.lastTheme==`function`){var t=this.props.theme;this.cachedTheme=t(e)}else{var n=this.props.theme;this.cachedTheme=e?EP({},e,n):n}return this.cachedTheme},r.render=function(){return this.props.children?L.createElement(e.Consumer,null,this.renderProvider):null},n}(L.Component)}function AP(e){return function(t){var n=L.forwardRef(function(n,r){return L.createElement(e.Consumer,null,function(e){return L.createElement(t,EP({theme:e,ref:r},n))})});return(0,Nt.default)(n,t),n}}function jP(e){return function(){return L.useContext(e)}}function MP(e){return{context:e,withTheme:AP(e),useTheme:jP(e),ThemeProvider:kP(e)}}var NP=(0,L.createContext)(),PP=MP(NP);PP.withTheme,PP.ThemeProvider,PP.useTheme;var FP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},IP=(typeof window>`u`?`undefined`:FP(window))===`object`&&(typeof document>`u`?`undefined`:FP(document))===`object`&&document.nodeType===9;function LP(e){"@babel/helpers - typeof";return LP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},LP(e)}function RP(e,t){if(LP(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(LP(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zP(e){var t=RP(e,`string`);return LP(t)==`symbol`?t:t+``}function BP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,zP(r.key),r)}}function VP(e,t,n){return t&&BP(e.prototype,t),n&&BP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var HP={}.constructor;function UP(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(UP);if(e.constructor!==HP)return e;var t={};for(var n in e)t[n]=UP(e[n]);return t}function WP(e,t,n){e===void 0&&(e=`unnamed`);var r=n.jss,i=UP(t);return r.plugins.onCreateRule(e,i,n)||(e[0],null)}var GP=function(e,t){for(var n=``,r=0;r<e.length&&e[r]!==`!important`;r++)n&&(n+=t),n+=e[r];return n},KP=function(e){if(!Array.isArray(e))return e;var t=``;if(Array.isArray(e[0]))for(var n=0;n<e.length&&e[n]!==`!important`;n++)t&&(t+=`, `),t+=GP(e[n],` `);else t=GP(e,`, `);return e[e.length-1]===`!important`&&(t+=` !important`),t};function qP(e){return e&&e.format===!1?{linebreak:``,space:``}:{linebreak:`
173
+ `,space:` `}}function JP(e,t){for(var n=``,r=0;r<t;r++)n+=` `;return n+e}function YP(e,t,n){n===void 0&&(n={});var r=``;if(!t)return r;var i=n.indent,a=i===void 0?0:i,o=t.fallbacks;n.format===!1&&(a=-1/0);var s=qP(n),c=s.linebreak,l=s.space;if(e&&a++,o)if(Array.isArray(o))for(var u=0;u<o.length;u++){var d=o[u];for(var f in d){var p=d[f];p!=null&&(r&&(r+=c),r+=JP(f+`:`+l+KP(p)+`;`,a))}}else for(var m in o){var h=o[m];h!=null&&(r&&(r+=c),r+=JP(m+`:`+l+KP(h)+`;`,a))}for(var g in t){var _=t[g];_!=null&&g!==`fallbacks`&&(r&&(r+=c),r+=JP(g+`:`+l+KP(_)+`;`,a))}return!r&&!n.allowEmpty||!e?r:(a--,r&&=``+c+r+c,JP(``+e+l+`{`+r,a)+JP(`}`,a))}var XP=/([[\].#*$><+~=|^:(),"'`\s])/g,ZP=typeof CSS<`u`&&CSS.escape,QP=(function(e){return ZP?ZP(e):e.replace(XP,`\\$1`)}),$P=function(){function e(e,t,n){this.type=`style`,this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}var t=e.prototype;return t.prop=function(e,t,n){if(t===void 0)return this.style[e];var r=n?n.force:!1;if(!r&&this.style[e]===t)return this;var i=t;(!n||n.process!==!1)&&(i=this.options.jss.plugins.onChangeValue(t,e,this));var a=i==null||i===!1,o=e in this.style;if(a&&!o&&!r)return this;var s=a&&o;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var c=this.options.sheet;return c&&c.attached,this},e}(),eF=function(e){fs(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this,a=r.selector,o=r.scoped,s=r.sheet,c=r.generateId;return a?i.selectorText=a:o!==!1&&(i.id=c(Fs(Fs(i)),s),i.selectorText=`.`+QP(i.id)),i}var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];typeof n==`object`?Array.isArray(n)&&(e[t]=KP(n)):e[t]=n}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?y({},e,{allowEmpty:!0}):e;return YP(this.selectorText,this.style,n)},VP(t,[{key:`selector`,set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;!n||!t||t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}($P),tF={onCreateRule:function(e,t,n){return e[0]===`@`||n.parent&&n.parent.type===`keyframes`?null:new eF(e,t,n)}},nF={indent:1,children:!0},rF=/@([\w-]+)/,iF=function(){function e(e,t,n){this.type=`conditional`,this.isProcessed=!1,this.key=e;var r=e.match(rF);for(var i in this.at=r?r[1]:`unknown`,this.query=n.name||`@`+this.at,this.options=n,this.rules=new DF(y({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){e===void 0&&(e=nF);var t=qP(e).linebreak;if(e.indent??=nF.indent,e.children??=nF.children,e.children===!1)return this.query+` {}`;var n=this.rules.toString(e);return n?this.query+` {`+t+n+t+`}`:``},e}(),aF=/@container|@media|@supports\s+/,oF={onCreateRule:function(e,t,n){return aF.test(e)?new iF(e,t,n):null}},sF={indent:1,children:!0},cF=/@keyframes\s+([\w-]+)/,lF=function(){function e(e,t,n){this.type=`keyframes`,this.at=`@keyframes`,this.isProcessed=!1;var r=e.match(cF);r&&r[1]?this.name=r[1]:this.name=`noname`,this.key=this.type+`-`+this.name,this.options=n;var i=n.scoped,a=n.sheet,o=n.generateId;for(var s in this.id=i===!1?this.name:QP(o(this,a)),this.rules=new DF(y({},n,{parent:this})),t)this.rules.add(s,t[s],y({},n,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(e){e===void 0&&(e=sF);var t=qP(e).linebreak;if(e.indent??=sF.indent,e.children??=sF.children,e.children===!1)return this.at+` `+this.id+` {}`;var n=this.rules.toString(e);return n&&=``+t+n+t,this.at+` `+this.id+` {`+n+`}`},e}(),uF=/@keyframes\s+/,dF=/\$([\w-]+)/g,fF=function(e,t){return typeof e==`string`?e.replace(dF,function(e,n){return n in t?t[n]:e}):e},pF=function(e,t,n){var r=e[t],i=fF(r,n);i!==r&&(e[t]=i)},mF={onCreateRule:function(e,t,n){return typeof e==`string`&&uF.test(e)?new lF(e,t,n):null},onProcessStyle:function(e,t,n){return t.type!==`style`||!n?e:(`animation-name`in e&&pF(e,`animation-name`,n.keyframes),`animation`in e&&pF(e,`animation`,n.keyframes),e)},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case`animation`:return fF(e,r.keyframes);case`animation-name`:return fF(e,r.keyframes);default:return e}}},hF=function(e){fs(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?y({},e,{allowEmpty:!0}):e;return YP(this.key,this.style,n)},t}($P),gF={onCreateRule:function(e,t,n){return n.parent&&n.parent.type===`keyframes`?new hF(e,t,n):null}},_F=function(){function e(e,t,n){this.type=`font-face`,this.at=`@font-face`,this.isProcessed=!1,this.key=e,this.style=t,this.options=n}var t=e.prototype;return t.toString=function(e){var t=qP(e).linebreak;if(Array.isArray(this.style)){for(var n=``,r=0;r<this.style.length;r++)n+=YP(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return YP(this.at,this.style,e)},e}(),vF=/@font-face/,yF={onCreateRule:function(e,t,n){return vF.test(e)?new _F(e,t,n):null}},bF=function(){function e(e,t,n){this.type=`viewport`,this.at=`@viewport`,this.isProcessed=!1,this.key=e,this.style=t,this.options=n}var t=e.prototype;return t.toString=function(e){return YP(this.key,this.style,e)},e}(),xF={onCreateRule:function(e,t,n){return e===`@viewport`||e===`@-ms-viewport`?new bF(e,t,n):null}},SF=function(){function e(e,t,n){this.type=`simple`,this.isProcessed=!1,this.key=e,this.value=t,this.options=n}var t=e.prototype;return t.toString=function(e){if(Array.isArray(this.value)){for(var t=``,n=0;n<this.value.length;n++)t+=this.key+` `+this.value[n]+`;`,this.value[n+1]&&(t+=`
174
+ `);return t}return this.key+` `+this.value+`;`},e}(),CF={"@charset":!0,"@import":!0,"@namespace":!0},wF=[tF,oF,mF,gF,yF,xF,{onCreateRule:function(e,t,n){return e in CF?new SF(e,t,n):null}}],TF={process:!0},EF={force:!0,process:!0},DF=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,o=r.jss,s=r.Renderer,c=r.generateId,l=r.scoped,u=y({classes:this.classes,parent:i,sheet:a,jss:o,Renderer:s,generateId:c,scoped:l,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+`-d`+ this.counter++),this.raw[d]=t,d in this.classes&&(u.selector=`.`+QP(this.classes[d]));var f=WP(d,t,u);if(!f)return null;this.register(f);var p=u.index===void 0?this.index.length:u.index;return this.index.splice(p,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var a=n;return i!==-1&&(a=y({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof eF?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof lF&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof eF?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof lF&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if(typeof(arguments.length<=0?void 0:arguments[0])==`string`?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){r===void 0&&(r=TF);var i=this.options,a=i.jss.plugins,o=i.sheet;if(t.rules instanceof e){t.rules.update(n,r);return}var s=t.style;if(a.onUpdate(n,t,o,r),r.process&&s&&s!==t.style){for(var c in a.onProcessStyle(t.style,t,o),t.style){var l=t.style[c];l!==s[c]&&t.prop(c,l,EF)}for(var u in s){var d=t.style[u],f=s[u];d==null&&d!==f&&t.prop(u,null,EF)}}},t.toString=function(e){for(var t=``,n=this.options.sheet,r=n?n.options.link:!1,i=qP(e).linebreak,a=0;a<this.index.length;a++){var o=this.index[a].toString(e);!o&&!r||(t&&(t+=i),t+=o)}return t},e}(),OF=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=y({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new DF(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?(this.deployed&&(r?r.push(i):(this.insertRule(i),this.queue&&=(this.queue.forEach(this.insertRule,this),void 0))),i):(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?(this.deployed&&this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t=typeof e==`object`?e:this.rules.get(e);return!t||this.attached&&!t.renderable?!1:(this.rules.remove(t),this.attached&&t.renderable&&this.renderer?this.renderer.deleteRule(t.renderable):!0)},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),kF=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){t===void 0&&(t={queue:`external`});var n=this.plugins[t.queue];n.indexOf(e)===-1&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),AF=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(t.indexOf(e)===-1){if(t.length===0||n>=this.index){t.push(e);return}for(var r=0;r<t.length;r++)if(t[r].options.index>n){t.splice(r,0,e);return}}},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=e===void 0?{}:e,n=t.attached,r=us(t,[`attached`]),i=qP(r).linebreak,a=``,o=0;o<this.registry.length;o++){var s=this.registry[o];n!=null&&s.attached!==n||(a&&(a+=i),a+=s.toString(r))}return a},VP(e,[{key:`index`,get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}()),jF=typeof globalThis<`u`?globalThis:typeof window<`u`&&window.Math===Math?window:typeof self<`u`&&self.Math===Math?self:Function(`return this`)(),MF=`2f1acc6c3a606b082e5eef5e54414ffb`;jF[MF]??(jF[MF]=0);var NF=jF[MF]++,PF=function(e){e===void 0&&(e={});var t=0;return function(n,r){t+=1;var i=``,a=``;return r&&(r.options.classNamePrefix&&(a=r.options.classNamePrefix),r.options.jss.id!=null&&(i=String(r.options.jss.id))),e.minify?``+(a||`c`)+NF+i+t:a+n.key+`-`+NF+(i?`-`+i:``)+`-`+t}},FF=function(e){var t;return function(){return t||=e(),t}},IF=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch{return``}},LF=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=KP(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf(`!important`):-1,a=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,a,i>-1?`important`:``)}}catch{return!1}return!0},RF=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch{}},zF=function(e,t){return e.selectorText=t,e.selectorText===t},BF=FF(function(){return document.querySelector(`head`)});function VF(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function HF(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function UF(e){for(var t=BF(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(r.nodeType===8&&r.nodeValue.trim()===e)return r}return null}function WF(e){var t=AF.registry;if(t.length>0){var n=VF(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=HF(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&typeof r==`string`){var i=UF(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function GF(e,t){var n=t.insertionPoint,r=WF(t);if(r!==!1&&r.parent){r.parent.insertBefore(e,r.node);return}if(n&&typeof n.nodeType==`number`){var i=n,a=i.parentNode;a&&a.insertBefore(e,i.nextSibling);return}BF().appendChild(e)}var KF=FF(function(){var e=document.querySelector(`meta[property="csp-nonce"]`);return e?e.getAttribute(`content`):null}),qF=function(e,t,n){try{`insertRule`in e?e.insertRule(t,n):`appendRule`in e&&e.appendRule(t)}catch{return!1}return e.cssRules[n]},JF=function(e,t){var n=e.cssRules.length;return t===void 0||t>n?n:t},YF=function(){var e=document.createElement(`style`);return e.textContent=`
175
+ `,e},XF=function(){function e(e){this.getPropertyValue=IF,this.setProperty=LF,this.removeProperty=RF,this.setSelector=zF,this.hasInsertedRules=!1,this.cssRules=[],e&&AF.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||YF(),this.element.setAttribute(`data-jss`,``),n&&this.element.setAttribute(`media`,n),r&&this.element.setAttribute(`data-meta`,r);var a=KF();a&&this.element.setAttribute(`nonce`,a)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){GF(this.element,this.sheet.options);var e=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
176
+ `)}},t.deploy=function(){var e=this.sheet;if(e){if(e.options.link){this.insertRules(e.rules);return}this.element.textContent=`
177
+ `+e.toString()+`
178
+ `}},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(n===void 0&&(n=this.element.sheet),e.rules){var r=e,i=n;if(e.type===`conditional`||e.type===`keyframes`){var a=JF(n,t);if(i=qF(n,r.toString({children:!1}),a),i===!1)return!1;this.refCssRule(e,a,i)}return this.insertRules(r.rules,i),i}var o=e.toString();if(!o)return!1;var s=JF(n,t),c=qF(n,o,s);return c===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(e,s,c),c)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof OF&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return n===-1?!1:(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return n===-1?!1:(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ZF=0,QF=function(){function e(e){this.id=ZF++,this.version=`10.10.0`,this.plugins=new kF,this.options={id:{minify:!1},createGenerateId:PF,Renderer:IP?XF:null,plugins:[]},this.generateId=PF({minify:!1});for(var t=0;t<wF.length;t++)this.plugins.use(wF[t],{queue:`internal`});this.setup(e)}var t=e.prototype;return t.setup=function(e){return e===void 0&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=y({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),e.insertionPoint!=null&&(this.options.insertionPoint=e.insertionPoint),`Renderer`in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){t===void 0&&(t={});var n=t.index;typeof n!=`number`&&(n=AF.index===0?0:AF.index+1);var r=new OF(e,y({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),AF.remove(e),this},t.createRule=function(e,t,n){if(t===void 0&&(t={}),n===void 0&&(n={}),typeof e==`object`)return this.createRule(void 0,e,t);var r=y({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||=this.generateId,r.classes||={},r.keyframes||={};var i=WP(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),$F=function(e){return new QF(e)},eI=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return t.refs===0&&t.sheet.attach(),t.refs++,t.sheet;wP(!1,`[JSS] SheetsManager: can't find sheet to manage`)},t.unmanage=function(e){var t=this.sheets.get(e);t?t.refs>0&&(t.refs--,t.refs===0&&t.sheet.detach()):wP(!1,`SheetsManager: can't find sheet to unmanage`)},VP(e,[{key:`size`,get:function(){return this.length}}]),e}(),tI=typeof CSS==`object`&&CSS!=null&&`number`in CSS;function nI(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if(i===`function`)t||={},t[n]=r;else if(i===`object`&&r!==null&&!Array.isArray(r)){var a=nI(r);a&&(t||={},t[n]=a)}}return t}$F();var rI=Date.now(),iI=`fnValues`+rI,aI=`fnStyle`+ ++rI,oI=function(){return{onCreateRule:function(e,t,n){if(typeof t!=`function`)return null;var r=WP(e,{},n);return r[aI]=t,r},onProcessStyle:function(e,t){if(iI in t||aI in t)return e;var n={};for(var r in e){var i=e[r];typeof i==`function`&&(delete e[r],n[r]=i)}return t[iI]=n,e},onUpdate:function(e,t,n,r){var i=t,a=i[aI];a&&(i.style=a(e)||{});var o=i[iI];if(o)for(var s in o)i.prop(s,o[s](e),r)}}};function sI(e){var t,n=e.Symbol;return typeof n==`function`?n.observable?t=n.observable:(t=n(`observable`),n.observable=t):t=`@@observable`,t}var cI=sI(typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:typeof module<`u`?module:Function(`return this`)()),lI=function(e){return e&&e[cI]&&e===e[cI]()},uI=function(e){return{onCreateRule:function(t,n,r){if(!lI(n))return null;var i=n,a=WP(t,{},r);return i.subscribe(function(t){for(var n in t)a.prop(n,t[n],e)}),a},onProcessRule:function(t){if(!(t&&t.type!==`style`)){var n=t,r=n.style,i=function(t){var i=r[t];if(!lI(i))return`continue`;delete r[t],i.subscribe({next:function(r){n.prop(t,r,e)}})};for(var a in r)if(i(a)===`continue`)continue}}}},dI=/;\n/,fI=function(e){for(var t={},n=e.split(dI),r=0;r<n.length;r++){var i=(n[r]||``).trim();if(i){var a=i.indexOf(`:`);if(a!==-1){var o=i.substr(0,a).trim();t[o]=i.substr(a+1).trim()}}}return t},pI=function(e){typeof e.style==`string`&&(e.style=fI(e.style))};function mI(){return{onProcessRule:pI}}var hI=`@global`,gI=`@global `,_I=function(){function e(e,t,n){for(var r in this.type=`global`,this.at=hI,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new DF(y({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),vI=function(){function e(e,t,n){this.type=`global`,this.at=hI,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(gI.length);this.rule=n.jss.createRule(r,t,y({},n,{parent:this}))}var t=e.prototype;return t.toString=function(e){return this.rule?this.rule.toString(e):``},e}(),yI=/\s*,\s*/g;function bI(e,t){for(var n=e.split(yI),r=``,i=0;i<n.length;i++)r+=t+` `+n[i].trim(),n[i+1]&&(r+=`, `);return r}function xI(e,t){var n=e.options,r=e.style,i=r?r[hI]:null;if(i){for(var a in i)t.addRule(a,i[a],y({},n,{selector:bI(a,e.selector)}));delete r[hI]}}function SI(e,t){var n=e.options,r=e.style;for(var i in r)if(!(i[0]!==`@`||i.substr(0,hI.length)!==hI)){var a=bI(i.substr(hI.length),e.selector);t.addRule(a,r[i],y({},n,{selector:a})),delete r[i]}}function CI(){function e(e,t,n){if(!e)return null;if(e===hI)return new _I(e,t,n);if(e[0]===`@`&&e.substr(0,gI.length)===gI)return new vI(e,t,n);var r=n.parent;return r&&(r.type===`global`||r.options.parent&&r.options.parent.type===`global`)&&(n.scoped=!1),!n.selector&&n.scoped===!1&&(n.selector=e),null}function t(e,t){e.type!==`style`||!t||(xI(e,t),SI(e,t))}return{onCreateRule:e,onProcessRule:t}}var wI=function(e){return e&&typeof e==`object`&&!Array.isArray(e)},TI=`extendCurrValue`+Date.now();function EI(e,t,n,r){if(typeof e.extend==`string`){if(!n)return;var i=n.getRule(e.extend);if(!i||i===t)return;var a=i.options.parent;if(a){var o=a.rules.raw[e.extend];OI(o,t,n,r)}return}if(Array.isArray(e.extend)){for(var s=0;s<e.extend.length;s++){var c=e.extend[s];OI(typeof c==`string`?y({},e,{extend:c}):e.extend[s],t,n,r)}return}for(var l in e.extend){if(l===`extend`){OI(e.extend.extend,t,n,r);continue}if(wI(e.extend[l])){l in r||(r[l]={}),OI(e.extend[l],t,n,r[l]);continue}r[l]=e.extend[l]}}function DI(e,t,n,r){for(var i in e)if(i!==`extend`){if(wI(r[i])&&wI(e[i])){OI(e[i],t,n,r[i]);continue}if(wI(e[i])){r[i]=OI(e[i],t,n);continue}r[i]=e[i]}}function OI(e,t,n,r){return r===void 0&&(r={}),EI(e,t,n,r),DI(e,t,n,r),r}function kI(){function e(e,t,n){return`extend`in e?OI(e,t,n):e}function t(e,t,n){if(t!==`extend`)return e;if(e==null||e===!1){for(var r in n[TI])n.prop(r,null);return n[TI]=null,null}if(typeof e==`object`){for(var i in e)n.prop(i,e[i]);n[TI]=e}return null}return{onProcessStyle:e,onChangeValue:t}}var AI=/\s*,\s*/g,jI=/&/g,MI=/\$([\w-]+)/g;function NI(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(AI),r=e.split(AI),i=``,a=0;a<n.length;a++)for(var o=n[a],s=0;s<r.length;s++){var c=r[s];i&&(i+=`, `),i+=c.indexOf(`&`)===-1?o+` `+c:c.replace(jI,o)}return i}function n(e,t,n){if(n)return y({},n,{index:n.index+1});var r=e.options.nestingLevel;r=r===void 0?1:r+1;var i=y({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}function r(r,i,a){if(i.type!==`style`)return r;var o=i,s=o.options.parent,c,l;for(var u in r){var d=u.indexOf(`&`)!==-1,f=u[0]===`@`;if(!(!d&&!f)){if(c=n(o,s,c),d){var p=t(u,o.selector);l||=e(s,a),p=p.replace(MI,l);var m=o.key+`-`+u;`replaceRule`in s?s.replaceRule(m,r[u],y({},c,{selector:p})):s.addRule(m,r[u],y({},c,{selector:p}))}else f&&s.addRule(u,{},c).addRule(o.key,r[u],{selector:o.selector});delete r[u]}}return r}return{onProcessStyle:r}}function PI(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(!PI(e,t[n]))return!1;return!0}if(t.indexOf(` `)>-1)return PI(e,t.split(` `));var r=e.options.parent;if(t[0]===`$`){var i=r.getRule(t.substr(1));return!i||i===e?!1:(r.classes[e.key]+=` `+r.classes[i.key],!0)}return r.classes[e.key]+=` `+t,!0}function FI(){function e(e,t){return`composes`in e?(PI(t,e.composes),delete e.composes,e):e}return{onProcessStyle:e}}var II=/[A-Z]/g,LI=/^ms-/,RI={};function zI(e){return`-`+e.toLowerCase()}function BI(e){if(RI.hasOwnProperty(e))return RI[e];var t=e.replace(II,zI);return RI[e]=LI.test(t)?`-`+t:t}function VI(e){var t={};for(var n in e){var r=n.indexOf(`--`)===0?n:BI(n);t[r]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(VI):t.fallbacks=VI(e.fallbacks)),t}function HI(){function e(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=VI(e[t]);return e}return VI(e)}function t(e,t,n){if(t.indexOf(`--`)===0)return e;var r=BI(t);return t===r?e:(n.prop(r,e),null)}return{onProcessStyle:e,onChangeValue:t}}var $=tI&&CSS?CSS.px:`px`,UI=tI&&CSS?CSS.ms:`ms`,WI=tI&&CSS?CSS.percent:`%`,GI={"animation-delay":UI,"animation-duration":UI,"background-position":$,"background-position-x":$,"background-position-y":$,"background-size":$,border:$,"border-bottom":$,"border-bottom-left-radius":$,"border-bottom-right-radius":$,"border-bottom-width":$,"border-left":$,"border-left-width":$,"border-radius":$,"border-right":$,"border-right-width":$,"border-top":$,"border-top-left-radius":$,"border-top-right-radius":$,"border-top-width":$,"border-width":$,"border-block":$,"border-block-end":$,"border-block-end-width":$,"border-block-start":$,"border-block-start-width":$,"border-block-width":$,"border-inline":$,"border-inline-end":$,"border-inline-end-width":$,"border-inline-start":$,"border-inline-start-width":$,"border-inline-width":$,"border-start-start-radius":$,"border-start-end-radius":$,"border-end-start-radius":$,"border-end-end-radius":$,margin:$,"margin-bottom":$,"margin-left":$,"margin-right":$,"margin-top":$,"margin-block":$,"margin-block-end":$,"margin-block-start":$,"margin-inline":$,"margin-inline-end":$,"margin-inline-start":$,padding:$,"padding-bottom":$,"padding-left":$,"padding-right":$,"padding-top":$,"padding-block":$,"padding-block-end":$,"padding-block-start":$,"padding-inline":$,"padding-inline-end":$,"padding-inline-start":$,"mask-position-x":$,"mask-position-y":$,"mask-size":$,height:$,width:$,"min-height":$,"max-height":$,"min-width":$,"max-width":$,bottom:$,left:$,top:$,right:$,inset:$,"inset-block":$,"inset-block-end":$,"inset-block-start":$,"inset-inline":$,"inset-inline-end":$,"inset-inline-start":$,"box-shadow":$,"text-shadow":$,"column-gap":$,"column-rule":$,"column-rule-width":$,"column-width":$,"font-size":$,"font-size-delta":$,"letter-spacing":$,"text-decoration-thickness":$,"text-indent":$,"text-stroke":$,"text-stroke-width":$,"word-spacing":$,motion:$,"motion-offset":$,outline:$,"outline-offset":$,"outline-width":$,perspective:$,"perspective-origin-x":WI,"perspective-origin-y":WI,"transform-origin":WI,"transform-origin-x":WI,"transform-origin-y":WI,"transform-origin-z":WI,"transition-delay":UI,"transition-duration":UI,"vertical-align":$,"flex-basis":$,"shape-margin":$,size:$,gap:$,grid:$,"grid-gap":$,"row-gap":$,"grid-row-gap":$,"grid-column-gap":$,"grid-template-rows":$,"grid-template-columns":$,"grid-auto-rows":$,"grid-auto-columns":$,"box-shadow-x":$,"box-shadow-y":$,"box-shadow-blur":$,"box-shadow-spread":$,"font-line-height":$,"text-shadow-x":$,"text-shadow-y":$,"text-shadow-blur":$};function KI(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var qI=KI(GI);function JI(e,t,n){if(t==null)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=JI(e,t[r],n);else if(typeof t==`object`)if(e===`fallbacks`)for(var i in t)t[i]=JI(i,t[i],n);else for(var a in t)t[a]=JI(e+`-`+a,t[a],n);else if(typeof t==`number`&&isNaN(t)===!1){var o=n[e]||qI[e];return o&&!(t===0&&o===$)?typeof o==`function`?o(t).toString():``+t+o:t.toString()}return t}function YI(e){e===void 0&&(e={});var t=KI(e);function n(e,n){if(n.type!==`style`)return e;for(var r in e)e[r]=JI(r,e[r],t);return e}function r(e,n){return JI(n,e,t)}return{onProcessStyle:n,onChangeValue:r}}var XI={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},ZI={position:!0,size:!0},QI={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},$I={border:{radius:`border-radius`,image:`border-image`,width:`border-width`,style:`border-style`,color:`border-color`},"border-bottom":{width:`border-bottom-width`,style:`border-bottom-style`,color:`border-bottom-color`},"border-top":{width:`border-top-width`,style:`border-top-style`,color:`border-top-color`},"border-left":{width:`border-left-width`,style:`border-left-style`,color:`border-left-color`},"border-right":{width:`border-right-width`,style:`border-right-style`,color:`border-right-color`},background:{size:`background-size`,image:`background-image`},font:{style:`font-style`,variant:`font-variant`,weight:`font-weight`,stretch:`font-stretch`,size:`font-size`,family:`font-family`,lineHeight:`line-height`,"line-height":`line-height`},flex:{grow:`flex-grow`,basis:`flex-basis`,direction:`flex-direction`,wrap:`flex-wrap`,flow:`flex-flow`,shrink:`flex-shrink`},align:{self:`align-self`,items:`align-items`,content:`align-content`},grid:{"template-columns":`grid-template-columns`,templateColumns:`grid-template-columns`,"template-rows":`grid-template-rows`,templateRows:`grid-template-rows`,"template-areas":`grid-template-areas`,templateAreas:`grid-template-areas`,template:`grid-template`,"auto-columns":`grid-auto-columns`,autoColumns:`grid-auto-columns`,"auto-rows":`grid-auto-rows`,autoRows:`grid-auto-rows`,"auto-flow":`grid-auto-flow`,autoFlow:`grid-auto-flow`,row:`grid-row`,column:`grid-column`,"row-start":`grid-row-start`,rowStart:`grid-row-start`,"row-end":`grid-row-end`,rowEnd:`grid-row-end`,"column-start":`grid-column-start`,columnStart:`grid-column-start`,"column-end":`grid-column-end`,columnEnd:`grid-column-end`,area:`grid-area`,gap:`grid-gap`,"row-gap":`grid-row-gap`,rowGap:`grid-row-gap`,"column-gap":`grid-column-gap`,columnGap:`grid-column-gap`}};function eL(e,t,n){return e.map(function(e){return nL(e,t,n,!1,!0)})}function tL(e,t,n,r){return n[t]==null?e:e.length===0?[]:Array.isArray(e[0])?tL(e[0],t,n,r):typeof e[0]==`object`?eL(e,t,r):[e]}function nL(e,t,n,r,i){if(!(QI[t]||$I[t]))return[];var a=[];if($I[t]&&(e=rL(e,n,$I[t],r)),Object.keys(e).length)for(var o in QI[t]){if(e[o]){Array.isArray(e[o])?a.push(ZI[o]===null?e[o]:e[o].join(` `)):a.push(e[o]);continue}QI[t][o]!=null&&a.push(QI[t][o])}return!a.length||i?a:[a]}function rL(e,t,n,r){for(var i in n){var a=n[i];if(e[i]!==void 0&&(r||!t.prop(a))){var o,s=iL((o={},o[a]=e[i],o),t)[a];r?t.style.fallbacks[a]=s:t.style[a]=s}delete e[i]}return e}function iL(e,t,n){for(var r in e){var i=e[r];if(Array.isArray(i)){if(!Array.isArray(i[0])){if(r===`fallbacks`){for(var a=0;a<e.fallbacks.length;a++)e.fallbacks[a]=iL(e.fallbacks[a],t,!0);continue}e[r]=tL(i,r,XI,t),e[r].length||delete e[r]}}else if(typeof i==`object`){if(r===`fallbacks`){e.fallbacks=iL(e.fallbacks,t,!0);continue}e[r]=nL(i,r,t,n),e[r].length||delete e[r]}else e[r]===``&&delete e[r]}return e}function aL(){function e(e,t){if(!e||t.type!==`style`)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=iL(e[n],t);return e}return iL(e,t)}return{onProcessStyle:e}}function oL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sL(e){if(Array.isArray(e))return oL(e)}function cL(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function lL(e,t){if(e){if(typeof e==`string`)return oL(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oL(e,t):void 0}}function uL(){throw TypeError(`Invalid attempt to spread non-iterable instance.
179
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dL(e){return sL(e)||cL(e)||lL(e)||uL()}var fL=``,pL=``,mL=``,hL=``,gL=IP&&`ontouchstart`in document.documentElement;if(IP){var _L={Moz:`-moz-`,ms:`-ms-`,O:`-o-`,Webkit:`-webkit-`},vL=document.createElement(`p`).style,yL=`Transform`;for(var bL in _L)if(bL+yL in vL){fL=bL,pL=_L[bL];break}fL===`Webkit`&&`msHyphens`in vL&&(fL=`ms`,pL=_L.ms,hL=`edge`),fL===`Webkit`&&`-apple-trailing-word`in vL&&(mL=`apple`)}var xL={js:fL,css:pL,vendor:mL,browser:hL,isTouch:gL};function SL(e){return e[1]===`-`||xL.js===`ms`?e:`@`+xL.css+`keyframes`+e.substr(10)}var CL={noPrefill:[`appearance`],supportedProperty:function(e){return e===`appearance`?xL.js===`ms`?`-webkit-`+e:xL.css+e:!1}},wL={noPrefill:[`color-adjust`],supportedProperty:function(e){return e===`color-adjust`?xL.js===`Webkit`?xL.css+`print-`+e:e:!1}},TL=/[-\s]+(.)?/g;function EL(e,t){return t?t.toUpperCase():``}function DL(e){return e.replace(TL,EL)}function OL(e){return DL(`-`+e)}var kL={noPrefill:[`mask`],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if(xL.js===`Webkit`){var n=`mask-image`;if(DL(n)in t)return e;if(xL.js+OL(n)in t)return xL.css+e}return e}},AL={noPrefill:[`text-orientation`],supportedProperty:function(e){return e===`text-orientation`?xL.vendor===`apple`&&!xL.isTouch?xL.css+e:e:!1}},jL={noPrefill:[`transform`],supportedProperty:function(e,t,n){return e===`transform`?n.transform?e:xL.css+e:!1}},ML={noPrefill:[`transition`],supportedProperty:function(e,t,n){return e===`transition`?n.transition?e:xL.css+e:!1}},NL={noPrefill:[`writing-mode`],supportedProperty:function(e){return e===`writing-mode`?xL.js===`Webkit`||xL.js===`ms`&&xL.browser!==`edge`?xL.css+e:e:!1}},PL={noPrefill:[`user-select`],supportedProperty:function(e){return e===`user-select`?xL.js===`Moz`||xL.js===`ms`||xL.vendor===`apple`?xL.css+e:e:!1}},FL={supportedProperty:function(e,t){return/^break-/.test(e)?xL.js===`Webkit`?`WebkitColumn`+OL(e)in t?xL.css+`column-`+e:!1:xL.js===`Moz`&&`page`+OL(e)in t?`page-`+e:!1:!1}},IL={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(xL.js===`Moz`)return e;var n=e.replace(`-inline`,``);return xL.js+OL(n)in t?xL.css+n:!1}},LL={supportedProperty:function(e,t){return DL(e)in t?e:!1}},RL={supportedProperty:function(e,t){var n=OL(e);return e[0]===`-`||e[0]===`-`&&e[1]===`-`?e:xL.js+n in t?xL.css+e:xL.js!==`Webkit`&&`Webkit`+n in t?`-webkit-`+e:!1}},zL={supportedProperty:function(e){return e.substring(0,11)===`scroll-snap`?xL.js===`ms`?``+xL.css+e:e:!1}},BL={supportedProperty:function(e){return e===`overscroll-behavior`?xL.js===`ms`?xL.css+`scroll-chaining`:e:!1}},VL={"flex-grow":`flex-positive`,"flex-shrink":`flex-negative`,"flex-basis":`flex-preferred-size`,"justify-content":`flex-pack`,order:`flex-order`,"align-items":`flex-align`,"align-content":`flex-line-pack`},HL={supportedProperty:function(e,t){var n=VL[e];return n&&xL.js+OL(n)in t?xL.css+n:!1}},UL={flex:`box-flex`,"flex-grow":`box-flex`,"flex-direction":[`box-orient`,`box-direction`],order:`box-ordinal-group`,"align-items":`box-align`,"flex-flow":[`box-orient`,`box-direction`],"justify-content":`box-pack`},WL=Object.keys(UL),GL=function(e){return xL.css+e},KL=[CL,wL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,HL,{supportedProperty:function(e,t,n){var r=n.multiple;if(WL.indexOf(e)>-1){var i=UL[e];if(!Array.isArray(i))return xL.js+OL(i)in t?xL.css+i:!1;if(!r)return!1;for(var a=0;a<i.length;a++)if(!(xL.js+OL(i[0])in t))return!1;return i.map(GL)}return!1}}],qL=KL.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),JL=KL.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,dL(t.noPrefill)),e},[]),YL,XL={};if(IP){YL=document.createElement(`p`);var ZL=window.getComputedStyle(document.documentElement,``);for(var QL in ZL)isNaN(QL)||(XL[ZL[QL]]=ZL[QL]);JL.forEach(function(e){return delete XL[e]})}function $L(e,t){if(t===void 0&&(t={}),!YL)return e;if(XL[e]!=null)return XL[e];(e===`transition`||e===`transform`)&&(t[e]=e in YL.style);for(var n=0;n<qL.length&&(XL[e]=qL[n](e,YL.style,t),!XL[e]);n++);try{YL.style[e]=``}catch{return!1}return XL[e]}var eR={},tR={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},nR=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,rR;function iR(e,t,n){return t===`var`?`var`:t===`all`?`all`:n===`all`?`, all`:(t?$L(t):`, `+$L(n))||t||n}IP&&(rR=document.createElement(`p`));function aR(e,t){var n=t;if(!rR||e===`content`)return t;if(typeof n!=`string`||!isNaN(parseInt(n,10)))return n;var r=e+n;if(eR[r]!=null)return eR[r];try{rR.style[e]=n}catch{return eR[r]=!1,!1}if(tR[e])n=n.replace(nR,iR);else if(rR.style[e]===``&&(n=xL.css+n,n===`-ms-flex`&&(rR.style[e]=`-ms-flexbox`),rR.style[e]=n,rR.style[e]===``))return eR[r]=!1,!1;return rR.style[e]=``,eR[r]=n,eR[r]}function oR(){function e(e){if(e.type===`keyframes`){var t=e;t.at=SL(t.at)}}function t(e){for(var n in e){var r=e[n];if(n===`fallbacks`&&Array.isArray(r)){e[n]=r.map(t);continue}var i=!1,a=$L(n);a&&a!==n&&(i=!0);var o=!1,s=aR(a,KP(r));s&&s!==r&&(o=!0),(i||o)&&(i&&delete e[n],e[a||n]=s||r)}return e}function n(e,n){return n.type===`style`?t(e):e}function r(e,t){return aR(t,KP(e))||e}return{onProcessRule:e,onProcessStyle:n,onChangeValue:r}}function sR(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if(n.type!==`style`)return t;for(var r={},i=Object.keys(t).sort(e),a=0;a<i.length;a++)r[i[a]]=t[i[a]];return r}}}var cR=function(e){return e===void 0&&(e={}),{plugins:[oI(),uI(e.observable),mI(),CI(),kI(),NI(),FI(),HI(),YI(e.defaultUnit),aL(),oR(),sR()]}},lR=1e4,uR=$F(cR()),dR=function(e){e===void 0&&(e=uR);var t=new Map,n=0,r,i=function(){return(!r||r.rules.index.length>lR)&&(r=e.createStyleSheet().attach()),r};function a(){var e=arguments,r=JSON.stringify(e),a=t.get(r);if(a)return a.className;var o=[];for(var s in e){var c=e[s];if(!Array.isArray(c)){o.push(c);continue}for(var l=0;l<c.length;l++)o.push(c[l])}for(var u={},d=[],f=0;f<o.length;f++){var p=o[f];if(p){var m=p;if(typeof p==`string`){var h=t.get(p);h&&(h.labels.length&&d.push.apply(d,h.labels),m=h.style)}m.label&&d.indexOf(m.label)===-1&&d.push(m.label),Object.assign(u,m)}}delete u.label;var g=(d.length===0?`css`:d.join(`-`))+`-`+ n++;i().addRule(g,u);var _=i().classes[g],v={style:u,labels:d,className:_};return t.set(r,v),t.set(_,v),_}return a.getSheet=i,a}(),fR=function(e){return e.displayName||e.name||`Component`},pR=function(e){var t,n;return function(){for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];if(Array.isArray(t)&&i.length===t.length){for(var o=!0,s=0;s<i.length;s++)i[s]!==t[s]&&(o=!1);if(o)return n}return t=i,n=e.apply(void 0,i),n}},mR=function(e,t){var n=y({},e);for(var r in t)n[r]=r in n?n[r]+` `+t[r]:t[r];return n},hR=-(2**53-1)||-1e9,gR=function(){return hR++},_R=(0,L.createContext)({classNamePrefix:``,disableStylesGeneration:!1,isSSR:!IP}),vR=new Map,yR=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new eI),n[t];var r=vR.get(t);return r||(r=new eI,vR.set(t,r)),r},bR=function(e){var t=e.sheet,n=e.context,r=e.index,i=e.theme;t&&(yR(n,r).manage(i),n.registry&&n.registry.add(t))},xR=function(e){e.sheet&&yR(e.context,e.index).unmanage(e.theme)},SR=$F(cR()),CR=new WeakMap,wR=function(e){return CR.get(e)},TR=function(e,t){CR.set(e,t)},ER=function(e){var t=e.styles;return typeof t==`function`?t(e.theme):t};function DR(e,t){var n;e.context.id&&e.context.id.minify!=null&&(n=e.context.id.minify);var r=e.context.classNamePrefix||``;e.name&&!n&&(r+=e.name.replace(/\s/g,`-`)+`-`);var i=``;return e.name&&(i=e.name+`, `),i+=typeof e.styles==`function`?`Themed`:`Unthemed`,y({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:r,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}var OR=function(e){if(!e.context.disableStylesGeneration){var t=yR(e.context,e.index),n=t.get(e.theme);if(n)return n;var r=e.context.jss||SR,i=ER(e),a=nI(i),o=r.createStyleSheet(i,DR(e,a!==null));return TR(o,{dynamicStyles:a,styles:i}),t.add(e.theme,o),o}},kR=function(e,t){for(var n in t)e.deleteRule(t[n])},AR=function(e,t,n){for(var r in n)t.updateOne(n[r],e)},jR=function(e,t){var n=wR(e);if(n){var r={};for(var i in n.dynamicStyles)for(var a=e.rules.index.length,o=e.addRule(i,n.dynamicStyles[i]),s=a;s<e.rules.index.length;s++){var c=e.rules.index[s];e.updateOne(c,t),r[o===c?i:c.key]=c}return r}},MR=function(e,t){if(!t)return e.classes;var n=wR(e);if(!n)return e.classes;var r={};for(var i in n.styles)r[i]=e.classes[i],i in t&&(r[i]+=` `+e.classes[t[i].key]);return r};function NR(e){return e?L.useEffect:L.useInsertionEffect||L.useLayoutEffect}var PR={},FR=function(e,t){t===void 0&&(t={});var n=t,r=n.index,i=r===void 0?gR():r,a=n.theming,o=n.name,s=us(n,[`index`,`theming`,`name`]),c=a&&a.context||NP,l=function(t){return typeof e==`function`&&(t||(0,L.useContext)(c))||PR},u={};return function(t){var n=(0,L.useRef)(!0),r=(0,L.useContext)(_R),a=l(t&&t.theme),c=(0,L.useMemo)(function(){var n=OR({context:r,styles:e,name:o,theme:a,index:i,sheetOptions:s});return n&&r.isSSR&&bR({index:i,context:r,sheet:n,theme:a}),[n,n?jR(n,t):null]},[r,a]),d=c[0],f=c[1];NR(r.isSSR)(function(){d&&f&&!n.current&&AR(t,d,f)},[t]),NR(r.isSSR)(function(){return d&&bR({index:i,context:r,sheet:d,theme:a}),function(){d&&(xR({index:i,context:r,sheet:d,theme:a}),f&&kR(d,f))}},[d]);var p=(0,L.useMemo)(function(){return d&&f?MR(d,f):u},[d,f]);return(0,L.useDebugValue)(p),(0,L.useDebugValue)(a===PR?`No theme`:a),(0,L.useEffect)(function(){n.current=!1}),p}},IR=function(e){return e.children||null},LR=function(e,t){t===void 0&&(t={});var n=t,r=n.index,i=r===void 0?gR():r,a=n.theming,o=n.injectTheme,s=us(n,[`index`,`theming`,`injectTheme`]),c=a?a.context:NP;return function(t){t===void 0&&(t=IR);var n=fR(t),r=pR(function(e,t){return t?mR(e,t):e}),l=FR(e,Object.assign(s,{theming:a,index:i,name:n})),u=(0,L.forwardRef)(function(e,n){var i=(0,L.useContext)(c),a=y({},e);o&&a.theme==null&&(a.theme=i);var s=r(l(a),e.classes);return(0,L.createElement)(t,y({},a,{classes:s,ref:n}))});return u.displayName=`WithStyles(`+n+`)`,u.defaultProps=y({},t.defaultProps),u.InnerComponent=t,(0,Nt.default)(u,t)}};(function(e){return e===void 0&&(e=dR),function(t,n){var r=arguments;if(n&&n.css){var i=e(n.css),a=Object.assign({},n);a.className=n.className?n.className+` `+i:i,delete a.css,r[1]=a}return L.createElement.apply(void 0,r)}})();var RR={root:{strokeWidth:2,stroke:qO()}};function zR({y:e,width:t,classes:n}){return(0,z.jsx)(`line`,{x1:0,y1:e,x2:t,y2:e,className:n.root})}zR.propTypes={y:R.number.isRequired,width:R.number.isRequired,classes:R.object.isRequired};var BR=LR(RR)(zR),VR=V(`text`)({userSelect:`none`,textAlign:`center`,fill:qO()}),HR=V(`line`)({stroke:qO()}),UR=R.shape({major:(e,t)=>{},minor:(e,t,n)=>{if(e[t]<=0)return Error(`Invalid prop ${t} must be > 0. ${n}`)}}).isRequired,WR=class extends L.Component{static propTypes={y:R.number.isRequired,x:R.number.isRequired,major:R.bool,fraction:R.bool,xScale:R.func,type:R.string};static defaultProps={major:!1};constructor(e){super(e),this.wasRendered=!1,this.state={textBox:{width:0,height:0,x:0,y:0}},this.resizeObserver=null}updateTextBox(){if(this.text){let{width:e,height:t,x:n,y:r}=this.text.getBBox();this.text.setAttribute(`x`,e/2*-1),this.setState({textBox:{width:e,height:t,x:n,y:r}})}}componentDidMount(){this.resizeObserver=new ResizeObserver(()=>{this.updateTextBox()}),this.text&&this.resizeObserver.observe(this.text)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}render(){let{x:e,y:t,type:n,xScale:r,fraction:i}=this.props,a=i&&e.n!==e.d&&e.n!==0&&e.d!==1,o=n===`major`,s=o?20:10,{width:c=0,height:l=0,x:u=0,y:d=0}=this.state.textBox,f=i?a?(0,z.jsxs)(L.Fragment,{children:[(0,z.jsx)(`tspan`,{x:`0`,dy:`0.71em`,children:e.n*e.s}),(0,z.jsx)(`tspan`,{x:`0`,dy:`1.11em`,children:e.d})]}):e.n*e.s:Number(e.toFixed(3));return(0,z.jsxs)(`g`,{opacity:`1`,transform:`translate(${r(e)}, ${t})`,children:[(0,z.jsx)(HR,{y1:s/2*-1,y2:s/2,x1:`0.5`,x2:`0.5`}),a&&(0,z.jsx)(HR,{x1:u,x2:u+c,y1:d+l/2,y2:d+l/2}),o&&(0,z.jsx)(VR,{ref:e=>this.text=e,y:`14`,width:`10`,dy:`0.71em`,textAnchor:a&&`middle`,children:f})]})}},GR=class extends L.Component{static contextTypes={xScale:R.func.isRequired};static propTypes={domain:R.shape({min:R.number.isRequired,max:R.number.isRequired}).isRequired,fraction:R.bool,width:R.number,ticks:UR,y:R.number.isRequired};render(){let{domain:e,width:t,ticks:n,y:r,fraction:i}=this.props,{xScale:a}=this.context;return(0,z.jsx)(`g`,{children:AS(e,t,n,{fraction:i}).map(({x:e,type:t})=>(0,z.jsx)(WR,{fraction:i,x:e,y:r,type:t,xScale:a},`${e}-${t}-${i}`))})}};function KR(e){let t=[new qR(e)];this.add=function(n){let r=t.find(e=>e.add(n));return t.indexOf(r)===-1&&(r=new qR(e),t.push(r),r.add(n)),t.indexOf(r)}}function qR(e){let t=[];this.add=function(i){let a=r(i);return a.left<e.min||a.right>e.max||t.some(e=>n(e,a))?!1:(t.push(i),!0)},this.elements=function(){return t};let n=(e,t)=>{let n=r(e),i=t.left<n.left&&t.right<n.left,a=t.left>n.right&&t.right>n.right;return!(i||a)},r=t=>{let{type:n,position:r}=t;switch(n){case`point`:return{left:r,right:r};case`line`:return r;case`ray`:return t.direction===`positive`?{left:r,right:e.max}:{left:e.min,right:r};default:return null}}}var JR=200,YR=`fade-transition`,XR=`
180
+ .${YR}-appear {
181
+ opacity: 0;
182
+ }
183
+ .${YR}-appear-active {
184
+ opacity: 1;
185
+ transition: opacity ${JR}ms ease-in;
186
+ }
187
+ .${YR}-enter {
188
+ opacity: 0;
189
+ }
190
+ .${YR}-enter-active {
191
+ opacity: 1;
192
+ transition: opacity ${JR}ms ease-in;
193
+ }
194
+ .${YR}-exit {
195
+ opacity: 1;
196
+ }
197
+ .${YR}-exit-active {
198
+ opacity: 0;
199
+ transition: opacity ${JR}ms ease-in;
200
+ }
201
+ `,ZR=e=>{let t=(0,L.useRef)(null),n=L.Children.only(e.children);return(0,L.useEffect)(()=>{if(!document.getElementById(`${YR}-styles`)){let e=document.createElement(`style`);e.id=`${YR}-styles`,e.textContent=XR,document.head.appendChild(e)}},[]),(0,z.jsx)(Ps,{...e,nodeRef:t,appear:!0,classNames:{enter:`${YR}-enter`,enterActive:`${YR}-enter-active`,exit:`${YR}-exit`,exitActive:`${YR}-exit-active`,appear:`${YR}-appear`,appearActive:`${YR}-appear-active`},timeout:JR,children:(0,z.jsx)(`g`,{ref:t,children:n})})};ZR.propTypes={children:R.node,in:R.bool,mountOnEnter:R.bool,unmountOnExit:R.bool,appear:R.bool,enter:R.bool,exit:R.bool,timeout:R.oneOfType([R.number,R.shape({enter:R.number,exit:R.number})]),addEndListener:R.func,onEnter:R.func,onEntering:R.func,onEntered:R.func,onExit:R.func,onExiting:R.func,onExited:R.func};var QR=(e,t,n,r)=>{if(e===void 0||t===void 0||n===void 0)throw Error(`missing min/max/width`);return Fw().domain([e,t]).range([r,n-r])},$R=class extends L.Component{static childContextTypes={xScale:R.func.isRequired,snapValue:R.func.isRequired};static propTypes={domain:R.shape({min:R.number.isRequired,max:R.number.isRequired}).isRequired,ticks:R.shape({minor:R.number,major:R.number}).isRequired,fraction:R.bool,width:R.number.isRequired,height:R.number.isRequired,onToggleElement:R.func.isRequired,onMoveElement:R.func.isRequired,onAddElement:R.func.isRequired,debug:R.bool,elements:R.array,disabled:R.bool,onDeselectElements:R.func,arrows:R.shape({left:R.bool,right:R.bool})};static defaultProps={debug:!1};constructor(e){super(e),this.state={}}xScaleFn(){let{domain:e,width:t}=this.props,{max:n,min:r}=e||{},i=20;return n&&(i=n.toString().length*4+15),QR(r,n,t,i)}snapValueFn(){let{domain:e,ticks:t}=this.props;return MS.bind(null,e.min,e.max,t.minor)}getChildContext(){return{xScale:this.xScaleFn(),snapValue:this.snapValueFn()}}onRectClick(e){let{elements:t,disabled:n}=this.props;if(!n)if(t.some(e=>e.selected))this.props.onDeselectElements();else{let t=IE(e,this.rect),n=this.xScaleFn().invert(t[0]);this.addElement(n)}}componentDidMount(){PE(this.rect).on(`click`,this.onRectClick.bind(this))}addElement(e){let t=this.snapValueFn()(e);this.props.onAddElement(t)}render(){let{domain:e,width:t,ticks:n,height:r,onToggleElement:i,onMoveElement:a,disabled:o,fraction:s}=this.props,{arrows:c}=this.props;c||={left:!0,right:!0};let{min:l,max:u}=e;if(e.max<=e.min)return(0,z.jsxs)(`div`,{children:[e.max,` is less than or equal to `,e.min]});{let d=r-30,f=new KR(e),p=this.props.elements.map((e,r)=>{let s=f.add(e);if(s===-1)throw Error(`stack index is -1, cant add element`);let c={key:r,y:d-s*25,selected:e.selected&&!o,interval:n.minor,disabled:o,correct:e.correct},p=i.bind(null,r,e),m=a.bind(null,r,e);if(e.type===`line`){let t={left:e.leftPoint===`empty`,right:e.rightPoint===`empty`};return(0,L.createElement)(mP,{...c,domain:{min:l,max:u},onMoveLine:m,onToggleSelect:p,position:e.position,empty:t,key:r})}else if(e.type===`point`){let t={left:l-e.position,right:u-e.position};return(0,L.createElement)(uP,{...c,empty:e.pointType===`empty`,position:e.position,bounds:t,onClick:p,onMove:m,key:r})}else if(e.type===`ray`)return(0,L.createElement)(SP,{...c,domain:{min:l,max:u},direction:e.direction,position:e.position,onMove:m,onToggleSelect:p,width:t,empty:e.pointType===`empty`,key:r})});return(0,z.jsx)(nP,{children:(0,z.jsx)(`div`,{style:{display:`inline-block`},children:(0,z.jsxs)(`svg`,{width:t,height:s?r+20:r,children:[!1,(0,z.jsx)(BR,{y:d,width:t}),c.left&&(0,z.jsx)(yP,{y:d}),c.right&&(0,z.jsx)(yP,{x:t,y:d,direction:`right`}),(0,z.jsx)(GR,{y:d,domain:e,width:t,ticks:n,fraction:s}),(0,z.jsx)(`rect`,{ref:e=>this.rect=e,fill:qO(),fillOpacity:`0.0`,width:t,height:r}),(0,z.jsx)(Us,{component:`g`,children:p.map((e,t)=>(0,z.jsx)(ZR,{children:e},t))})]})})})}}},ez=`height ease-in 300ms, opacity ease-in 300ms`,tz=V(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:ez,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:ez,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),nz=e=>{let{show:t,children:n,className:r}=e,i=(0,L.useRef)(null);return(0,z.jsx)(Ps,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,z.jsx)(tz,{ref:i,className:r,children:n})})};nz.propTypes={show:R.bool.isRequired,className:R.string,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired};function rz(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function iz(e,t){return!e||rz(e)?e:rz(e.default)?e.default:t&&rz(e[t])?e[t]:t&&rz(e[t]?.default)?e[t].default:e}var az=iz(YA,`Readable`)||iz(cz.Readable,`Readable`),oz=Tj,sz=oz.default,cz=sz&&typeof sz==`object`?sz:oz,{translator:lz}=Ll,uz={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},dz=V(`div`)(()=>({width:`100%`,cursor:`pointer`})),fz=V(`div`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`})),pz=V(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${FO()})`,fontWeight:`normal`,...uz})),mz=V(`div`)(()=>({position:`absolute`,width:`25px`,"&.enter":{opacity:`0`},"&.enter-active":{opacity:`1`,transition:`opacity 0.3s ease-in`},"&.exit":{opacity:`1`},"&.exit-active":{opacity:`0`,transition:`opacity 0.3s ease-in`}})),hz=V(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),gz=class e extends L.Component{static propTypes={onToggle:R.func,toggled:R.bool,show:R.bool,hideMessage:R.string,showMessage:R.string,className:R.string,language:R.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=L.createRef(),this.closedIconRef=L.createRef(),e.defaultProps={...e.defaultProps,showMessage:lz.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:lz.t(`common:hideCorrectAnswer`,{lng:t.language})}}onClick(){this.props.onToggle(!this.props.toggled)}onTouch(e){e.preventDefault(),this.props.onToggle(!this.props.toggled)}UNSAFE_componentWillReceiveProps(t){this.setState({show:t.show}),t.language!==this.props?.language&&(e.defaultProps={...e.defaultProps,showMessage:lz.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:lz.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,z.jsx)(dz,{className:e,children:(0,z.jsx)(nz,{show:this.state.show,children:(0,z.jsxs)(fz,{onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,z.jsxs)(hz,{children:[(0,z.jsx)(Ps,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,z.jsx)(mz,{ref:this.openIconRef,children:(0,z.jsx)(QE,{open:t},`correct-open`)})}),(0,z.jsx)(Ps,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,z.jsx)(mz,{ref:this.closedIconRef,children:(0,z.jsx)(QE,{open:t},`correct-closed`)})})]}),(0,z.jsx)(az,{false:!0,children:(0,z.jsx)(pz,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}},_z=e=>{switch(e){case`unanswered`:return aD;case`correct`:return JE;case`incorrect`:return tD;case`partial`:return cD;case`info`:return pD;default:return}},vz=V(`div`)(({$type:e})=>({marginTop:`10px`,backgroundColor:`#dddddd`,padding:`10px`,display:`flex`,alignItems:`center`,...e===`correct`&&{backgroundColor:RO()},...e===`incorrect`&&{backgroundColor:HO()},"& svg":{height:`30px`},"& h1":{padding:`0px`,margin:`0px`}})),yz=V(`span`)({paddingLeft:`5px`,userSelect:`none`}),bz=e=>{let{type:t,width:n,message:r}=e,i=_z(t),a=(0,L.useRef)(null);return(0,z.jsx)(Us,{children:(0,z.jsx)(Ps,{classNames:`fb`,timeout:300,nodeRef:a,children:(0,z.jsxs)(vz,{ref:a,$type:t,style:{width:n},children:[(0,z.jsx)(i,{iconSet:`emoji`,shape:`square`}),(0,z.jsx)(yz,{dangerouslySetInnerHTML:{__html:r}})]},`panel`)},`fb`)})};bz.propTypes={width:R.number,message:R.string,type:R.string};function xz(e,t,n,r){if(t.startsWith(`p`))return{position:e,type:`point`,pointType:t.endsWith(`e`)?`empty`:`full`};if(t.startsWith(`l`)){let i=e+r<=n.max?e:e-r,a=i+r;return{type:`line`,leftPoint:t.charAt(1)===`e`?`empty`:`full`,rightPoint:t.charAt(2)===`e`?`empty`:`full`,position:{left:i,right:a}}}else if(t.startsWith(`r`)){let n=t.charAt(1)===`f`;return{type:`ray`,direction:t.charAt(2)===`p`?`positive`:`negative`,pointType:n?`full`:`empty`,position:e}}}function Sz(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function Cz(e,t){return!e||Sz(e)?e:Sz(e.default)?e.default:t&&Sz(e[t])?e[t]:t&&Sz(e[t]?.default)?e[t].default:e}var wz=Cz(yA,`UiLayout`)||Cz(kz.UiLayout,`UiLayout`),Tz=Cz(JA,`PreviewPrompt`)||Cz(kz.PreviewPrompt,`PreviewPrompt`),Ez=Cz(lA,`Collapsible`)||Cz(kz.Collapsible,`Collapsible`),Dz=Tj,Oz=Dz.default,kz=Oz&&typeof Oz==`object`?Oz:Dz,{translator:Az}=Ll,jz=V(wz)(({$colorContrast:e})=>({color:FO(),backgroundColor:nk(),...e===`black_on_rose`&&{backgroundColor:`mistyrose`},...e===`white_on_black`&&{backgroundColor:`black`,"--correct-answer-toggle-label-color":`white`,"--tick-color":`white`,"--line-stroke":`white`,"--arrow-color":`white`,"--point-stroke":`white`,"--point-fill":`black`}})),Mz=V(`div`)(({$colorContrast:e})=>({boxSizing:`unset`,color:FO(),backgroundColor:nk(),...e===`black_on_rose`&&{backgroundColor:`mistyrose`},...e===`white_on_black`&&{backgroundColor:`black`,"--correct-answer-toggle-label-color":`white`,"--tick-color":`white`,"--line-stroke":`white`,"--arrow-color":`white`,"--point-stroke":`white`,"--point-fill":`black`}})),Nz=V(`div`)({textAlign:`center`,pointerEvents:`none`,userSelect:`none`}),Pz=V(`div`)({marginBottom:`16px`}),Fz=V(`div`)({verticalAlign:`middle`,marginBottom:`16px`}),Iz=V(Ez)(({theme:e})=>({paddingBottom:e.spacing(2)})),Lz=class extends L.Component{static propTypes={onMoveElement:R.func.isRequired,onDeleteElements:R.func.isRequired,onAddElement:R.func.isRequired,onUndoElement:R.func.isRequired,onClearElements:R.func.isRequired,model:R.object.isRequired,answer:R.array};constructor(e,t){super(e,t);let n=e.model.graph?e.model.graph.initialType:null;n=n?n.toLowerCase():$l.DEFAULT_TYPE,this.state={selectedElements:[],elementType:n,answers:e.answer}}toggleElement(e){let t=[];t=this.state.selectedElements.indexOf(e)===-1?this.state.selectedElements.concat([e]):this.state.selectedElements.filter(t=>t!==e),this.setState({selectedElements:t})}elementTypeSelected(e){this.setState({elementType:e})}addElement(e){if(this.hasMaxNoOfPoints()){this.setState({showMaxPointsWarning:!0}),setTimeout(()=>{this.setState({showMaxPointsWarning:!1})},2e3);return}let{ticks:t,domain:n,availableTypes:r}=this.props.model.graph;if(r&&!r[this.state.elementType.toUpperCase()])return;let i=xz(e,this.state.elementType,n,t.minor);if(i){let{answers:e}=this.state;e.some(e=>uS(e,i))||(e.push(i),this.setState({answers:e}),this.props.onAddElement(i))}}hasMaxNoOfPoints(){let{answer:e,model:{graph:{maxNumberOfPoints:t}}}=this.props;return fS(t)&&t>0&&(e||[]).length>=t}UNSAFE_componentWillReceiveProps(e){let{answer:t}=e;uS(this.state.answers,t)||this.setState({showCorrectAnswer:!1,answers:t})}deselectElements(){this.setState({selectedElements:[]})}getSize(e,t,n,r){let{model:{graph:i}}=this.props;return i&&i[e]?Math.max(t,Math.min(n,i[e])):r}undo(){let{answers:e}=this.state,{onUndoElement:t}=this.props;e.pop(),this.setState({answers:e}),t()}clearAll(){let{onClearElements:e}=this.props;this.setState({answers:[]}),e()}render(){let{model:e,onDeleteElements:t,onMoveElement:n,minWidth:r=400,maxWidth:i=1600,maxHeight:a}=this.props,{showCorrectAnswer:o,answers:s,selectedElements:c,showMaxPointsWarning:l,elementType:u}=this.state,{corrected:d={correct:[],incorrect:[]},disabled:f,extraCSSRules:p,graph:m,correctResponse:h,prompt:g,emptyAnswer:_,feedback:v,colorContrast:y,language:b,teacherInstructions:x}=e,S=this.addElement.bind(this),C=!f&&c&&c.length>0,{ticks:w,domain:T,arrows:E,maxNumberOfPoints:D,height:O=100,availableTypes:k,title:A,fraction:j}=m,M=this.getSize(`width`,r,i,600),N=x&&($A(x)||tj(x)),P={disabled:f,domain:T,ticks:w,width:M,height:(O>a?a:O)||100,arrows:E,fraction:j},ee=o&&h?(h||[]).map(e=>(e.correct=!0,e)):(s||[]).map((e,t)=>{let n=Tx(e);return n.selected=c.indexOf(t)!==-1,d.correct.includes(t)?n.correct=!0:d.incorrect.includes(t)?n.correct=!1:n.correct=void 0,n}),te=()=>D==1?Az.t(`numberLine.addElementLimit_one`,{lng:b,count:1}):Az.t(`numberLine.addElementLimit_other`,{lng:b,count:D}),F=()=>{t(c),s=s.filter((e,t)=>!c.some(e=>e===t)),this.setState({selectedElements:[],answers:s})},ne=()=>{if(k)return Object.keys(k).filter(e=>k[e]).map(e=>e.toLowerCase())},I=e=>{this.setState({showCorrectAnswer:e})},re=P.width-20;return(0,z.jsxs)(jz,{extraCSSRules:p,$colorContrast:y,children:[N&&(0,z.jsx)(Iz,{labels:{hidden:`Show Teacher Instructions`,visible:`Hide Teacher Instructions`},children:(0,z.jsx)(Tz,{prompt:x})}),g&&(0,z.jsx)(Fz,{children:(0,z.jsx)(Tz,{prompt:g})}),(0,z.jsxs)(Mz,{$colorContrast:y,style:{width:M},children:[(0,z.jsx)(Pz,{style:{width:re},children:(0,z.jsx)(gz,{show:Jg(h)&&h.length&&!_,toggled:o,onToggle:I,initialValue:!1,language:b})}),!f&&(0,z.jsx)($l,{elementType:u,showDeleteButton:C,onDeleteClick:F,onElementType:this.elementTypeSelected.bind(this),onClearElements:this.clearAll.bind(this),onUndoElement:this.undo.bind(this),icons:ne(),language:b}),(0,z.jsx)($R,{...P,elements:ee,onAddElement:S,onMoveElement:n,onToggleElement:this.toggleElement.bind(this),onDeselectElements:this.deselectElements.bind(this),debug:!1}),A&&(0,z.jsx)(Nz,{dangerouslySetInnerHTML:{__html:A}}),l&&(0,z.jsx)(bz,{type:`info`,width:re,message:te()}),v&&!o&&(0,z.jsx)(bz,{...v,width:re})]})]})}},Rz=o((e=>{var t=bs();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}))(),zz=class extends HTMLElement{constructor(){super(),this._root=null,this._mathObserver=null,this._mathRenderPending=!1}_scheduleMathRender=()=>{this._mathRenderPending||(this._mathRenderPending=!0,requestAnimationFrame(()=>{this._mathObserver&&this._mathObserver.disconnect(),oA(this),this._mathRenderPending=!1,setTimeout(()=>{this._mathObserver&&this._mathObserver.observe(this,{childList:!0,subtree:!0,characterData:!1})},50)}))};_initMathObserver(){this._mathObserver||(this._mathObserver=new MutationObserver(()=>{this._scheduleMathRender()}),this._mathObserver.observe(this,{childList:!0,subtree:!0,characterData:!1}))}_disconnectMathObserver(){this._mathObserver&&=(this._mathObserver.disconnect(),null)}set model(e){this._model=e,this._applyInitialElements(),this._render(),this.dispatch(`model-set`)}set session(e){this._session=e,this._applyInitialElements(),this._render()}get session(){return this._session}connectedCallback(){this._initMathObserver(),this._render()}isComplete(){return this._session?(this._session.answer||[]).length>0:!1}dispatch(e){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:{complete:this.isComplete()}}))}dispatchSessionChanged(){this.dispatch(`session-changed`)}addElement(e){this._session&&(this._session.answer=this._session.answer||[],this._session.answer.push(p(e)),this.dispatchSessionChanged(),this._render())}moveElement(e,t,n){if(!this._session.answer[e])throw Error(`cant find element at index: `,e);if(t.type===`line`&&n.left===n.right){this._render();return}t.position=n;let r=t.type===`line`&&u(t)?d(t):t;this._session.answer.splice(e,1,p(r)),this.dispatchSessionChanged(),this._render()}deleteElements(e){this._session.answer=this._session.answer.filter((t,n)=>!e.some(e=>e===n)),this.dispatchSessionChanged(),this._render()}undoElement(){this._session.answer.pop(),this.dispatchSessionChanged(),this._render()}clearElements(){this._session.answer=[],this.dispatchSessionChanged(),this._render()}_applyInitialElements(){this._model&&this._model.graph&&this._model.graph.initialElements&&this._session&&(!this._session.answer||!this._session.answer.length)&&(this._session.answer=Tx(this._model.graph.initialElements))}_render(){if(this._model&&this._session){this._session.answer||this._applyInitialElements();let e=(this._session.answer||[]).map(m),t=Tx(this._model);t.correctResponse=t.correctResponse&&t.correctResponse.map(m);let n={model:t,answer:e,onAddElement:this.addElement.bind(this),onMoveElement:this.moveElement.bind(this),onDeleteElements:this.deleteElements.bind(this),onUndoElement:this.undoElement.bind(this),onClearElements:this.clearElements.bind(this)},r=L.createElement(Lz,n);this._root||=(0,Rz.createRoot)(this),this._root.render(r),this._scheduleMathRender()}}disconnectedCallback(){this._disconnectMathObserver(),this._root&&this._root.unmount()}};return typeof window<`u`&&!customElements.get(`number-line-element`)&&customElements.define(`number-line-element`,zz),zz})();