@pie-element/categorize 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 (265) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/author/defaults.d.ts +223 -0
  4. package/dist/author/defaults.js +170 -0
  5. package/dist/author/design/builder.d.ts +10 -0
  6. package/dist/author/design/builder.js +24 -0
  7. package/dist/author/design/buttons.d.ts +28 -0
  8. package/dist/author/design/buttons.js +36 -0
  9. package/dist/author/design/categories/RowLabel.d.ts +23 -0
  10. package/dist/author/design/categories/RowLabel.js +47 -0
  11. package/dist/author/design/categories/alternateResponses.d.ts +31 -0
  12. package/dist/author/design/categories/alternateResponses.js +62 -0
  13. package/dist/author/design/categories/category.d.ts +44 -0
  14. package/dist/author/design/categories/category.js +98 -0
  15. package/dist/author/design/categories/choice-preview.d.ts +25 -0
  16. package/dist/author/design/categories/choice-preview.js +60 -0
  17. package/dist/author/design/categories/droppable-placeholder.d.ts +11 -0
  18. package/dist/author/design/categories/droppable-placeholder.js +71 -0
  19. package/dist/author/design/categories/index.d.ts +41 -0
  20. package/dist/author/design/categories/index.js +146 -0
  21. package/dist/author/design/choices/choice.d.ts +11 -0
  22. package/dist/author/design/choices/choice.js +129 -0
  23. package/dist/author/design/choices/config.d.ts +21 -0
  24. package/dist/author/design/choices/config.js +33 -0
  25. package/dist/author/design/choices/index.d.ts +41 -0
  26. package/dist/author/design/choices/index.js +110 -0
  27. package/dist/author/design/header.d.ts +24 -0
  28. package/dist/author/design/header.js +49 -0
  29. package/dist/author/design/index.d.ts +52 -0
  30. package/dist/author/design/index.js +417 -0
  31. package/dist/author/design/input-header.d.ts +39 -0
  32. package/dist/author/design/input-header.js +69 -0
  33. package/dist/author/design/utils.d.ts +9 -0
  34. package/dist/author/design/utils.js +7 -0
  35. package/dist/author/index.d.ts +51 -0
  36. package/dist/author/index.js +87 -0
  37. package/dist/author/main.d.ts +23 -0
  38. package/dist/author/main.js +30 -0
  39. package/dist/author/utils.d.ts +16 -0
  40. package/dist/author/utils.js +17 -0
  41. package/dist/browser/author/index.js +2047 -0
  42. package/dist/browser/author/index.js.map +1 -0
  43. package/dist/browser/categorize.css +2 -0
  44. package/dist/browser/controller/index.js +299 -0
  45. package/dist/browser/controller/index.js.map +1 -0
  46. package/dist/browser/delivery/index.js +1051 -0
  47. package/dist/browser/delivery/index.js.map +1 -0
  48. package/dist/browser/dist-BaJrqHFp.js +50183 -0
  49. package/dist/browser/dist-BaJrqHFp.js.map +1 -0
  50. package/dist/browser/dist-BsrA0RFp.js +2938 -0
  51. package/dist/browser/dist-BsrA0RFp.js.map +1 -0
  52. package/dist/controller/defaults.d.ts +34 -0
  53. package/dist/controller/defaults.js +29 -0
  54. package/dist/controller/index.d.ts +61 -0
  55. package/dist/controller/index.js +155 -0
  56. package/dist/controller/utils.d.ts +20 -0
  57. package/dist/controller/utils.js +35 -0
  58. package/dist/delivery/categorize/categories.d.ts +34 -0
  59. package/dist/delivery/categorize/categories.js +66 -0
  60. package/dist/delivery/categorize/category.d.ts +28 -0
  61. package/dist/delivery/categorize/category.js +48 -0
  62. package/dist/delivery/categorize/choice.d.ts +27 -0
  63. package/dist/delivery/categorize/choice.js +94 -0
  64. package/dist/delivery/categorize/choices.d.ts +39 -0
  65. package/dist/delivery/categorize/choices.js +51 -0
  66. package/dist/delivery/categorize/droppable-placeholder.d.ts +32 -0
  67. package/dist/delivery/categorize/droppable-placeholder.js +64 -0
  68. package/dist/delivery/categorize/grid-content.d.ts +25 -0
  69. package/dist/delivery/categorize/grid-content.js +39 -0
  70. package/dist/delivery/categorize/index.d.ts +57 -0
  71. package/dist/delivery/categorize/index.js +260 -0
  72. package/dist/delivery/index.d.ts +27 -0
  73. package/dist/delivery/index.js +152 -0
  74. package/dist/index.d.ts +1 -0
  75. package/dist/index.iife.d.ts +8 -0
  76. package/dist/index.iife.js +152 -0
  77. package/dist/index.js +2 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  187. package/package.json +77 -17
  188. package/CHANGELOG.json +0 -1637
  189. package/CHANGELOG.md +0 -2536
  190. package/LICENSE.md +0 -5
  191. package/README.md +0 -5
  192. package/configure/CHANGELOG.json +0 -1202
  193. package/configure/CHANGELOG.md +0 -2119
  194. package/configure/lib/defaults.js +0 -222
  195. package/configure/lib/defaults.js.map +0 -1
  196. package/configure/lib/design/builder.js +0 -55
  197. package/configure/lib/design/builder.js.map +0 -1
  198. package/configure/lib/design/buttons.js +0 -59
  199. package/configure/lib/design/buttons.js.map +0 -1
  200. package/configure/lib/design/categories/RowLabel.js +0 -66
  201. package/configure/lib/design/categories/RowLabel.js.map +0 -1
  202. package/configure/lib/design/categories/alternateResponses.js +0 -116
  203. package/configure/lib/design/categories/alternateResponses.js.map +0 -1
  204. package/configure/lib/design/categories/category.js +0 -153
  205. package/configure/lib/design/categories/category.js.map +0 -1
  206. package/configure/lib/design/categories/choice-preview.js +0 -79
  207. package/configure/lib/design/categories/choice-preview.js.map +0 -1
  208. package/configure/lib/design/categories/droppable-placeholder.js +0 -93
  209. package/configure/lib/design/categories/droppable-placeholder.js.map +0 -1
  210. package/configure/lib/design/categories/index.js +0 -256
  211. package/configure/lib/design/categories/index.js.map +0 -1
  212. package/configure/lib/design/choices/choice.js +0 -187
  213. package/configure/lib/design/choices/choice.js.map +0 -1
  214. package/configure/lib/design/choices/config.js +0 -58
  215. package/configure/lib/design/choices/config.js.map +0 -1
  216. package/configure/lib/design/choices/index.js +0 -197
  217. package/configure/lib/design/choices/index.js.map +0 -1
  218. package/configure/lib/design/header.js +0 -71
  219. package/configure/lib/design/header.js.map +0 -1
  220. package/configure/lib/design/index.js +0 -727
  221. package/configure/lib/design/index.js.map +0 -1
  222. package/configure/lib/design/input-header.js +0 -105
  223. package/configure/lib/design/input-header.js.map +0 -1
  224. package/configure/lib/design/utils.js +0 -12
  225. package/configure/lib/design/utils.js.map +0 -1
  226. package/configure/lib/index.js +0 -147
  227. package/configure/lib/index.js.map +0 -1
  228. package/configure/lib/main.js +0 -44
  229. package/configure/lib/main.js.map +0 -1
  230. package/configure/lib/utils.js +0 -43
  231. package/configure/lib/utils.js.map +0 -1
  232. package/configure/package.json +0 -32
  233. package/controller/CHANGELOG.json +0 -452
  234. package/controller/CHANGELOG.md +0 -1377
  235. package/controller/lib/defaults.js +0 -33
  236. package/controller/lib/defaults.js.map +0 -1
  237. package/controller/lib/index.js +0 -479
  238. package/controller/lib/index.js.map +0 -1
  239. package/controller/lib/utils.js +0 -69
  240. package/controller/lib/utils.js.map +0 -1
  241. package/controller/package.json +0 -18
  242. package/docs/config-schema.json +0 -2897
  243. package/docs/config-schema.json.md +0 -2138
  244. package/docs/demo/config.js +0 -8
  245. package/docs/demo/generate.js +0 -357
  246. package/docs/demo/index.html +0 -1
  247. package/docs/demo/session.js +0 -12
  248. package/docs/pie-schema.json +0 -1784
  249. package/docs/pie-schema.json.md +0 -1046
  250. package/lib/categorize/categories.js +0 -135
  251. package/lib/categorize/categories.js.map +0 -1
  252. package/lib/categorize/category.js +0 -67
  253. package/lib/categorize/category.js.map +0 -1
  254. package/lib/categorize/choice.js +0 -140
  255. package/lib/categorize/choice.js.map +0 -1
  256. package/lib/categorize/choices.js +0 -99
  257. package/lib/categorize/choices.js.map +0 -1
  258. package/lib/categorize/droppable-placeholder.js +0 -84
  259. package/lib/categorize/droppable-placeholder.js.map +0 -1
  260. package/lib/categorize/grid-content.js +0 -55
  261. package/lib/categorize/grid-content.js.map +0 -1
  262. package/lib/categorize/index.js +0 -450
  263. package/lib/categorize/index.js.map +0 -1
  264. package/lib/index.js +0 -316
  265. package/lib/index.js.map +0 -1
@@ -0,0 +1,2938 @@
1
+ //#region \0rolldown/runtime.js
2
+ 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) => {
3
+ let r = {};
4
+ for (var i in e) t(r, i, {
5
+ get: e[i],
6
+ enumerable: !0
7
+ });
8
+ return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
9
+ }, c = (e, i, o, s) => {
10
+ 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, {
11
+ get: ((e) => i[e]).bind(null, d),
12
+ enumerable: !(s = n(i, d)) || s.enumerable
13
+ });
14
+ return e;
15
+ }, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
16
+ value: n,
17
+ enumerable: !0
18
+ }) : a, n)), u = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
19
+ if (typeof require < "u") return require.apply(this, arguments);
20
+ throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
21
+ }), d = /* @__PURE__ */ o(((e, t) => {
22
+ var n = 1e3, r = n * 60, i = r * 60, a = i * 24, o = a * 7, s = a * 365.25;
23
+ t.exports = function(e, t) {
24
+ t ||= {};
25
+ var n = typeof e;
26
+ if (n === "string" && e.length > 0) return c(e);
27
+ if (n === "number" && isFinite(e)) return t.long ? u(e) : l(e);
28
+ throw Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(e));
29
+ };
30
+ function c(e) {
31
+ if (e = String(e), !(e.length > 100)) {
32
+ var t = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);
33
+ if (t) {
34
+ var c = parseFloat(t[1]);
35
+ switch ((t[2] || "ms").toLowerCase()) {
36
+ case "years":
37
+ case "year":
38
+ case "yrs":
39
+ case "yr":
40
+ case "y": return c * s;
41
+ case "weeks":
42
+ case "week":
43
+ case "w": return c * o;
44
+ case "days":
45
+ case "day":
46
+ case "d": return c * a;
47
+ case "hours":
48
+ case "hour":
49
+ case "hrs":
50
+ case "hr":
51
+ case "h": return c * i;
52
+ case "minutes":
53
+ case "minute":
54
+ case "mins":
55
+ case "min":
56
+ case "m": return c * r;
57
+ case "seconds":
58
+ case "second":
59
+ case "secs":
60
+ case "sec":
61
+ case "s": return c * n;
62
+ case "milliseconds":
63
+ case "millisecond":
64
+ case "msecs":
65
+ case "msec":
66
+ case "ms": return c;
67
+ default: return;
68
+ }
69
+ }
70
+ }
71
+ }
72
+ function l(e) {
73
+ var t = Math.abs(e);
74
+ return t >= a ? Math.round(e / a) + "d" : t >= i ? Math.round(e / i) + "h" : t >= r ? Math.round(e / r) + "m" : t >= n ? Math.round(e / n) + "s" : e + "ms";
75
+ }
76
+ function u(e) {
77
+ var t = Math.abs(e);
78
+ return t >= a ? d(e, t, a, "day") : t >= i ? d(e, t, i, "hour") : t >= r ? d(e, t, r, "minute") : t >= n ? d(e, t, n, "second") : e + " ms";
79
+ }
80
+ function d(e, t, n, r) {
81
+ var i = t >= n * 1.5;
82
+ return Math.round(e / n) + " " + r + (i ? "s" : "");
83
+ }
84
+ })), f = /* @__PURE__ */ o(((e, t) => {
85
+ function n(e) {
86
+ n.debug = n, n.default = n, n.coerce = c, n.disable = o, n.enable = i, n.enabled = s, n.humanize = d(), n.destroy = l, Object.keys(e).forEach((t) => {
87
+ n[t] = e[t];
88
+ }), n.names = [], n.skips = [], n.formatters = {};
89
+ function t(e) {
90
+ let t = 0;
91
+ for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n), t |= 0;
92
+ return n.colors[Math.abs(t) % n.colors.length];
93
+ }
94
+ n.selectColor = t;
95
+ function n(e) {
96
+ let t, i = null, a, o;
97
+ function s(...e) {
98
+ if (!s.enabled) return;
99
+ let r = s, i = Number(/* @__PURE__ */ new Date());
100
+ r.diff = i - (t || i), r.prev = t, r.curr = i, t = i, e[0] = n.coerce(e[0]), typeof e[0] != "string" && e.unshift("%O");
101
+ let a = 0;
102
+ e[0] = e[0].replace(/%([a-zA-Z%])/g, (t, i) => {
103
+ if (t === "%%") return "%";
104
+ a++;
105
+ let o = n.formatters[i];
106
+ if (typeof o == "function") {
107
+ let n = e[a];
108
+ t = o.call(r, n), e.splice(a, 1), a--;
109
+ }
110
+ return t;
111
+ }), n.formatArgs.call(r, e), (r.log || n.log).apply(r, e);
112
+ }
113
+ return s.namespace = e, s.useColors = n.useColors(), s.color = n.selectColor(e), s.extend = r, s.destroy = n.destroy, Object.defineProperty(s, "enabled", {
114
+ enumerable: !0,
115
+ configurable: !1,
116
+ get: () => i === null ? (a !== n.namespaces && (a = n.namespaces, o = n.enabled(e)), o) : i,
117
+ set: (e) => {
118
+ i = e;
119
+ }
120
+ }), typeof n.init == "function" && n.init(s), s;
121
+ }
122
+ function r(e, t) {
123
+ let r = n(this.namespace + (t === void 0 ? ":" : t) + e);
124
+ return r.log = this.log, r;
125
+ }
126
+ function i(e) {
127
+ n.save(e), n.namespaces = e, n.names = [], n.skips = [];
128
+ let t = (typeof e == "string" ? e : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
129
+ for (let e of t) e[0] === "-" ? n.skips.push(e.slice(1)) : n.names.push(e);
130
+ }
131
+ function a(e, t) {
132
+ let n = 0, r = 0, i = -1, a = 0;
133
+ for (; n < e.length;) if (r < t.length && (t[r] === e[n] || t[r] === "*")) t[r] === "*" ? (i = r, a = n, r++) : (n++, r++);
134
+ else if (i !== -1) r = i + 1, a++, n = a;
135
+ else return !1;
136
+ for (; r < t.length && t[r] === "*";) r++;
137
+ return r === t.length;
138
+ }
139
+ function o() {
140
+ let e = [...n.names, ...n.skips.map((e) => "-" + e)].join(",");
141
+ return n.enable(""), e;
142
+ }
143
+ function s(e) {
144
+ for (let t of n.skips) if (a(e, t)) return !1;
145
+ for (let t of n.names) if (a(e, t)) return !0;
146
+ return !1;
147
+ }
148
+ function c(e) {
149
+ return e instanceof Error ? e.stack || e.message : e;
150
+ }
151
+ function l() {
152
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
153
+ }
154
+ return n.enable(n.load()), n;
155
+ }
156
+ t.exports = n;
157
+ })), p = /* @__PURE__ */ o(((e, t) => {
158
+ e.formatArgs = r, e.save = i, e.load = a, e.useColors = n, e.storage = o(), e.destroy = (() => {
159
+ let e = !1;
160
+ return () => {
161
+ e || (e = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
162
+ };
163
+ })(), e.colors = /* @__PURE__ */ "#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33".split(".");
164
+ function n() {
165
+ if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return !0;
166
+ if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return !1;
167
+ let e;
168
+ return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator < "u" && navigator.userAgent && (e = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(e[1], 10) >= 31 || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
169
+ }
170
+ function r(e) {
171
+ if (e[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors) return;
172
+ let n = "color: " + this.color;
173
+ e.splice(1, 0, n, "color: inherit");
174
+ let r = 0, i = 0;
175
+ e[0].replace(/%[a-zA-Z%]/g, (e) => {
176
+ e !== "%%" && (r++, e === "%c" && (i = r));
177
+ }), e.splice(i, 0, n);
178
+ }
179
+ e.log = console.debug || console.log || (() => {});
180
+ function i(t) {
181
+ try {
182
+ t ? e.storage.setItem("debug", t) : e.storage.removeItem("debug");
183
+ } catch {}
184
+ }
185
+ function a() {
186
+ let t;
187
+ try {
188
+ t = e.storage.getItem("debug") || e.storage.getItem("DEBUG");
189
+ } catch {}
190
+ return !t && typeof process < "u" && "env" in process && (t = process.env.DEBUG), t;
191
+ }
192
+ function o() {
193
+ try {
194
+ return localStorage;
195
+ } catch {}
196
+ }
197
+ t.exports = f()(e);
198
+ var { formatters: s } = t.exports;
199
+ s.j = function(e) {
200
+ try {
201
+ return JSON.stringify(e);
202
+ } catch (e) {
203
+ return "[UnexpectedJSONParseError]: " + e.message;
204
+ }
205
+ };
206
+ })), m = {
207
+ translation: {
208
+ categorize: {
209
+ limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
210
+ maxChoicesPerCategoryRestriction: "To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s]."
211
+ },
212
+ ebsr: { part: "Part {{index}}" },
213
+ numberLine: {
214
+ addElementLimit_one: "You can only add {{count}} element",
215
+ addElementLimit_other: "You can only add {{count}} elements",
216
+ clearAll: "Clear all"
217
+ },
218
+ imageClozeAssociation: {
219
+ reachedLimit_one: "You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.",
220
+ reachedLimit_other: "Full"
221
+ },
222
+ drawingResponse: {
223
+ fillColor: "Fill color",
224
+ outlineColor: "Outline color",
225
+ noFill: "No fill",
226
+ lightblue: "Light blue",
227
+ lightyellow: "Light yellow",
228
+ red: "Red",
229
+ orange: "Orange",
230
+ yellow: "Yellow",
231
+ violet: "Violet",
232
+ blue: "Blue",
233
+ green: "Green",
234
+ white: "White",
235
+ black: "Black",
236
+ onDoubleClick: "Double click to edit this text. Press Enter to submit."
237
+ },
238
+ charting: {
239
+ addCategory: "Add category",
240
+ actions: "Actions",
241
+ add: "Add",
242
+ delete: "Delete",
243
+ newLabel: "New label",
244
+ reachedLimit_other: "There can't be more than {{count}} categories.",
245
+ keyLegend: {
246
+ incorrectAnswer: "Student incorrect answer",
247
+ correctAnswer: "Student correct answer",
248
+ correctKeyAnswer: "Answer key correct"
249
+ }
250
+ },
251
+ graphing: {
252
+ point: "Point",
253
+ circle: "Circle",
254
+ line: "Line",
255
+ parabola: "Parabola",
256
+ absolute: "Absolute Value",
257
+ exponential: "Exponential",
258
+ polygon: "Polygon",
259
+ ray: "Ray",
260
+ segment: "Segment",
261
+ sine: "Sine",
262
+ vector: "Vector",
263
+ label: "Label",
264
+ redo: "Redo",
265
+ reset: "Reset"
266
+ },
267
+ 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." },
268
+ multipleChoice: {
269
+ minSelections: "Select at least {{minSelections}}.",
270
+ maxSelections_one: "Only {{maxSelections}} answer is allowed.",
271
+ maxSelections_other: "Only {{maxSelections}} answers are allowed.",
272
+ minmaxSelections_equal: "Select {{minSelections}}.",
273
+ minmaxSelections_range: "Select between {{minSelections}} and {{maxSelections}}."
274
+ },
275
+ selectText: {
276
+ correctAnswerSelected: "Correct",
277
+ correctAnswerNotSelected: "Correct Answer Not Selected",
278
+ incorrectSelection: "Incorrect Selection",
279
+ key: "Key"
280
+ }
281
+ },
282
+ common: {
283
+ undo: "Undo",
284
+ clearAll: "Clear all",
285
+ correct: "Correct",
286
+ incorrect: "Incorrect",
287
+ showCorrectAnswer: "Show correct answer",
288
+ hideCorrectAnswer: "Hide correct answer",
289
+ 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.",
290
+ warning: "Warning",
291
+ showNote: "Show Note",
292
+ hideNote: "Hide Note",
293
+ cancel: "Cancel"
294
+ }
295
+ }, h = {
296
+ translation: {
297
+ categorize: {
298
+ limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
299
+ maxChoicesPerCategoryRestriction: "Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta"
300
+ },
301
+ ebsr: { part: "Parte {{index}}" },
302
+ numberLine: {
303
+ addElementLimit_one: "Solo puedes agregar {{count}} elemento",
304
+ addElementLimit_other: "Solo puedes agregar {{count}} elementos",
305
+ clearAll: "Borrar todo"
306
+ },
307
+ imageClozeAssociation: {
308
+ reachedLimit_one: "Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
309
+ reachedLimit_other: "Lleno"
310
+ },
311
+ drawingResponse: {
312
+ fillColor: "Color de relleno",
313
+ outlineColor: "Color del contorno",
314
+ noFill: "Sin relleno",
315
+ lightblue: "Azul claro",
316
+ lightyellow: "Amarillo claro",
317
+ red: "Rojo",
318
+ orange: "Naranja",
319
+ yellow: "Amarillo",
320
+ violet: "Violeta",
321
+ blue: "Azul",
322
+ green: "Verde",
323
+ white: "Blanco",
324
+ black: "Negro",
325
+ onDoubleClick: "Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar"
326
+ },
327
+ charting: {
328
+ addCategory: "Añadir categoría",
329
+ actions: "Acciones",
330
+ add: "Añadir",
331
+ delete: "Eliminar",
332
+ newLabel: "Nueva etiqueta",
333
+ reachedLimit_other: "No puede haber más de {{count}} categorías.",
334
+ keyLegend: {
335
+ incorrectAnswer: "Respuesta incorrecta del estudiante",
336
+ correctAnswer: "Respuesta correcta del estudiante",
337
+ correctKeyAnswer: "Clave de respuesta correcta"
338
+ }
339
+ },
340
+ graphing: {
341
+ point: "Punto",
342
+ circle: "Circulo",
343
+ line: "Línea",
344
+ parabola: "Parábola",
345
+ absolute: "Valor absoluto",
346
+ exponential: "Exponencial",
347
+ polygon: "Polígono",
348
+ ray: "Semirrecta",
349
+ segment: "Segmento ",
350
+ sine: "Seno",
351
+ vector: "Vector",
352
+ label: "Etiqueta",
353
+ redo: "Rehacer",
354
+ reset: "Reiniciar"
355
+ },
356
+ 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." },
357
+ multipleChoice: {
358
+ minSelections: "Seleccione al menos {{minSelections}}.",
359
+ maxSelections_one: "Sólo se permite {{maxSelections}} respuesta.",
360
+ maxSelections_other: "Sólo se permiten {{maxSelections}} respuestas.",
361
+ minmaxSelections_equal: "Seleccione {{minSelections}}.",
362
+ minmaxSelections_range: "Seleccione entre {{minSelections}} y {{maxSelections}}."
363
+ },
364
+ selectText: {
365
+ correctAnswerSelected: "Respuesta Correcta",
366
+ correctAnswerNotSelected: "Respuesta Correcta No Seleccionada",
367
+ incorrectSelection: "Selección Incorrecta",
368
+ key: "Clave"
369
+ }
370
+ },
371
+ common: {
372
+ undo: "Deshacer",
373
+ clearAll: "Borrar todo",
374
+ correct: "Correct",
375
+ incorrect: "Incorrect",
376
+ showCorrectAnswer: "Mostrar respuesta correcta",
377
+ hideCorrectAnswer: "Ocultar respuesta correcta",
378
+ 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.",
379
+ warning: "Advertencia",
380
+ showNote: "Mostrar Nota",
381
+ hideNote: "Ocultar Nota",
382
+ cancel: "Cancelar"
383
+ }
384
+ }, g = (e) => typeof e == "string", _ = () => {
385
+ let e, t, n = new Promise((n, r) => {
386
+ e = n, t = r;
387
+ });
388
+ return n.resolve = e, n.reject = t, n;
389
+ }, v = (e) => e == null ? "" : "" + e, y = (e, t, n) => {
390
+ e.forEach((e) => {
391
+ t[e] && (n[e] = t[e]);
392
+ });
393
+ }, ee = /###/g, b = (e) => e && e.indexOf("###") > -1 ? e.replace(ee, ".") : e, x = (e) => !e || g(e), S = (e, t, n) => {
394
+ let r = g(t) ? t.split(".") : t, i = 0;
395
+ for (; i < r.length - 1;) {
396
+ if (x(e)) return {};
397
+ let t = b(r[i]);
398
+ !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
399
+ }
400
+ return x(e) ? {} : {
401
+ obj: e,
402
+ k: b(r[i])
403
+ };
404
+ }, te = (e, t, n) => {
405
+ let { obj: r, k: i } = S(e, t, Object);
406
+ if (r !== void 0 || t.length === 1) {
407
+ r[i] = n;
408
+ return;
409
+ }
410
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = S(e, o, Object);
411
+ for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = S(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
412
+ s.obj[`${s.k}.${a}`] = n;
413
+ }, ne = (e, t, n, r) => {
414
+ let { obj: i, k: a } = S(e, t, Object);
415
+ i[a] = i[a] || [], i[a].push(n);
416
+ }, C = (e, t) => {
417
+ let { obj: n, k: r } = S(e, t);
418
+ if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
419
+ }, w = (e, t, n) => {
420
+ let r = C(e, n);
421
+ return r === void 0 ? C(t, n) : r;
422
+ }, re = (e, t, n) => {
423
+ for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? g(e[r]) || e[r] instanceof String || g(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : re(e[r], t[r], n) : e[r] = t[r]);
424
+ return e;
425
+ }, T = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), ie = {
426
+ "&": "&amp;",
427
+ "<": "&lt;",
428
+ ">": "&gt;",
429
+ "\"": "&quot;",
430
+ "'": "&#39;",
431
+ "/": "&#x2F;"
432
+ }, ae = (e) => g(e) ? e.replace(/[&<>"'\/]/g, (e) => ie[e]) : e, oe = class {
433
+ constructor(e) {
434
+ this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
435
+ }
436
+ getRegExp(e) {
437
+ let t = this.regExpMap.get(e);
438
+ if (t !== void 0) return t;
439
+ let n = new RegExp(e);
440
+ return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
441
+ }
442
+ }, se = [
443
+ " ",
444
+ ",",
445
+ "?",
446
+ "!",
447
+ ";"
448
+ ], ce = new oe(20), le = (e, t, n) => {
449
+ t ||= "", n ||= "";
450
+ let r = se.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
451
+ if (r.length === 0) return !0;
452
+ let i = ce.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
453
+ if (!a) {
454
+ let t = e.indexOf(n);
455
+ t > 0 && !i.test(e.substring(0, t)) && (a = !0);
456
+ }
457
+ return a;
458
+ }, ue = (e, t, n = ".") => {
459
+ if (!e) return;
460
+ if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
461
+ let r = t.split(n), i = e;
462
+ for (let e = 0; e < r.length;) {
463
+ if (!i || typeof i != "object") return;
464
+ let t, a = "";
465
+ for (let o = e; o < r.length; ++o) if (o !== e && (a += n), a += r[o], t = i[a], t !== void 0) {
466
+ if ([
467
+ "string",
468
+ "number",
469
+ "boolean"
470
+ ].indexOf(typeof t) > -1 && o < r.length - 1) continue;
471
+ e += o - e + 1;
472
+ break;
473
+ }
474
+ i = t;
475
+ }
476
+ return i;
477
+ }, E = (e) => e?.replace(/_/g, "-"), de = {
478
+ type: "logger",
479
+ log(e) {
480
+ this.output("log", e);
481
+ },
482
+ warn(e) {
483
+ this.output("warn", e);
484
+ },
485
+ error(e) {
486
+ this.output("error", e);
487
+ },
488
+ output(e, t) {
489
+ console?.[e]?.apply?.(console, t);
490
+ }
491
+ }, D = new class e {
492
+ constructor(e, t = {}) {
493
+ this.init(e, t);
494
+ }
495
+ init(e, t = {}) {
496
+ this.prefix = t.prefix || "i18next:", this.logger = e || de, this.options = t, this.debug = t.debug;
497
+ }
498
+ log(...e) {
499
+ return this.forward(e, "log", "", !0);
500
+ }
501
+ warn(...e) {
502
+ return this.forward(e, "warn", "", !0);
503
+ }
504
+ error(...e) {
505
+ return this.forward(e, "error", "");
506
+ }
507
+ deprecate(...e) {
508
+ return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
509
+ }
510
+ forward(e, t, n, r) {
511
+ return r && !this.debug ? null : (g(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
512
+ }
513
+ create(t) {
514
+ return new e(this.logger, {
515
+ prefix: `${this.prefix}:${t}:`,
516
+ ...this.options
517
+ });
518
+ }
519
+ clone(t) {
520
+ return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
521
+ }
522
+ }(), fe = class {
523
+ constructor() {
524
+ this.observers = {};
525
+ }
526
+ on(e, t) {
527
+ return e.split(" ").forEach((e) => {
528
+ this.observers[e] || (this.observers[e] = /* @__PURE__ */ new Map());
529
+ let n = this.observers[e].get(t) || 0;
530
+ this.observers[e].set(t, n + 1);
531
+ }), this;
532
+ }
533
+ off(e, t) {
534
+ if (this.observers[e]) {
535
+ if (!t) {
536
+ delete this.observers[e];
537
+ return;
538
+ }
539
+ this.observers[e].delete(t);
540
+ }
541
+ }
542
+ emit(e, ...t) {
543
+ this.observers[e] && Array.from(this.observers[e].entries()).forEach(([e, n]) => {
544
+ for (let r = 0; r < n; r++) e(...t);
545
+ }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([n, r]) => {
546
+ for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
547
+ });
548
+ }
549
+ }, pe = class extends fe {
550
+ constructor(e, t = {
551
+ ns: ["translation"],
552
+ defaultNS: "translation"
553
+ }) {
554
+ super(), this.data = e || {}, this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = !0);
555
+ }
556
+ addNamespaces(e) {
557
+ this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
558
+ }
559
+ removeNamespaces(e) {
560
+ let t = this.options.ns.indexOf(e);
561
+ t > -1 && this.options.ns.splice(t, 1);
562
+ }
563
+ getResource(e, t, n, r = {}) {
564
+ let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
565
+ e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : g(n) && i ? o.push(...n.split(i)) : o.push(n)));
566
+ let s = C(this.data, o);
567
+ return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !g(n) ? s : ue(this.data?.[e]?.[t], n, i);
568
+ }
569
+ addResource(e, t, n, r, i = { silent: !1 }) {
570
+ let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
571
+ n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), te(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
572
+ }
573
+ addResources(e, t, n, r = { silent: !1 }) {
574
+ for (let r in n) (g(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
575
+ r.silent || this.emit("added", e, t, n);
576
+ }
577
+ addResourceBundle(e, t, n, r, i, a = {
578
+ silent: !1,
579
+ skipCopy: !1
580
+ }) {
581
+ let o = [e, t];
582
+ e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
583
+ let s = C(this.data, o) || {};
584
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? re(s, n, i) : s = {
585
+ ...s,
586
+ ...n
587
+ }, te(this.data, o, s), a.silent || this.emit("added", e, t, n);
588
+ }
589
+ removeResourceBundle(e, t) {
590
+ this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
591
+ }
592
+ hasResourceBundle(e, t) {
593
+ return this.getResource(e, t) !== void 0;
594
+ }
595
+ getResourceBundle(e, t) {
596
+ return t ||= this.options.defaultNS, this.getResource(e, t);
597
+ }
598
+ getDataByLanguage(e) {
599
+ return this.data[e];
600
+ }
601
+ hasLanguageSomeTranslations(e) {
602
+ let t = this.getDataByLanguage(e);
603
+ return !!(t && Object.keys(t) || []).find((e) => t[e] && Object.keys(t[e]).length > 0);
604
+ }
605
+ toJSON() {
606
+ return this.data;
607
+ }
608
+ }, me = {
609
+ processors: {},
610
+ addPostProcessor(e) {
611
+ this.processors[e.name] = e;
612
+ },
613
+ handle(e, t, n, r, i) {
614
+ return e.forEach((e) => {
615
+ t = this.processors[e]?.process(t, n, r, i) ?? t;
616
+ }), t;
617
+ }
618
+ }, he = Symbol("i18next/PATH_KEY");
619
+ function ge() {
620
+ let e = [], t = Object.create(null), n;
621
+ return t.get = (r, i) => (n?.revoke?.(), i === he ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
622
+ }
623
+ function O(e, t) {
624
+ let { [he]: n } = e(ge()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
625
+ if (n.length > 1 && i) {
626
+ let e = t?.ns, a = Array.isArray(e) ? e : null;
627
+ if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
628
+ }
629
+ return n.join(r);
630
+ }
631
+ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number", ye = class e extends fe {
632
+ constructor(e, t = {}) {
633
+ super(), y([
634
+ "resourceStore",
635
+ "languageUtils",
636
+ "pluralResolver",
637
+ "interpolator",
638
+ "backendConnector",
639
+ "i18nFormat",
640
+ "utils"
641
+ ], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = D.create("translator");
642
+ }
643
+ changeLanguage(e) {
644
+ e && (this.language = e);
645
+ }
646
+ exists(e, t = { interpolation: {} }) {
647
+ let n = { ...t };
648
+ if (e == null) return !1;
649
+ let r = this.resolve(e, n);
650
+ if (r?.res === void 0) return !1;
651
+ let i = ve(r.res);
652
+ return !(n.returnObjects === !1 && i);
653
+ }
654
+ extractFromKey(e, t) {
655
+ let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
656
+ n === void 0 && (n = ":");
657
+ 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 && !le(e, n, r);
658
+ if (a && !o) {
659
+ let t = e.match(this.interpolator.nestingRegexp);
660
+ if (t && t.length > 0) return {
661
+ key: e,
662
+ namespaces: g(i) ? [i] : i
663
+ };
664
+ let a = e.split(n);
665
+ (n !== r || n === r && this.options.ns.indexOf(a[0]) > -1) && (i = a.shift()), e = a.join(r);
666
+ }
667
+ return {
668
+ key: e,
669
+ namespaces: g(i) ? [i] : i
670
+ };
671
+ }
672
+ translate(t, n, r) {
673
+ let i = typeof n == "object" ? { ...n } : n;
674
+ if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
675
+ typeof t == "function" && (t = O(t, {
676
+ ...this.options,
677
+ ...i
678
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? O(e, {
679
+ ...this.options,
680
+ ...i
681
+ }) : String(e));
682
+ 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;
683
+ u === void 0 && (u = ":");
684
+ let d = i.lng || this.language, f = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
685
+ if (d?.toLowerCase() === "cimode") return f ? a ? {
686
+ res: `${l}${u}${s}`,
687
+ usedKey: s,
688
+ exactUsedKey: s,
689
+ usedLng: d,
690
+ usedNS: l,
691
+ usedParams: this.getUsedParamsDetails(i)
692
+ } : `${l}${u}${s}` : a ? {
693
+ res: s,
694
+ usedKey: s,
695
+ exactUsedKey: s,
696
+ usedLng: d,
697
+ usedNS: l,
698
+ usedParams: this.getUsedParamsDetails(i)
699
+ } : s;
700
+ let p = this.resolve(t, i), m = p?.res, h = p?.usedKey || s, _ = p?.exactUsedKey || s, v = [
701
+ "[object Number]",
702
+ "[object Function]",
703
+ "[object RegExp]"
704
+ ], y = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, ee = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !g(i.count), x = e.hasDefaultValue(i), S = b ? this.pluralResolver.getSuffix(d, i.count, i) : "", te = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", ne = b && !i.ordinal && i.count === 0, C = ne && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${te}`] || i.defaultValue, w = m;
705
+ ee && !m && x && (w = C);
706
+ let re = ve(w), T = Object.prototype.toString.apply(w);
707
+ if (ee && w && re && v.indexOf(T) < 0 && !(g(y) && Array.isArray(w))) {
708
+ if (!i.returnObjects && !this.options.returnObjects) {
709
+ this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
710
+ let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, w, {
711
+ ...i,
712
+ ns: c
713
+ }) : `key '${s} (${this.language})' returned an object instead of string.`;
714
+ return a ? (p.res = e, p.usedParams = this.getUsedParamsDetails(i), p) : e;
715
+ }
716
+ if (o) {
717
+ let e = Array.isArray(w), t = e ? [] : {}, n = e ? _ : h;
718
+ for (let e in w) if (Object.prototype.hasOwnProperty.call(w, e)) {
719
+ let r = `${n}${o}${e}`;
720
+ x && !m ? t[e] = this.translate(r, {
721
+ ...i,
722
+ defaultValue: ve(C) ? C[e] : void 0,
723
+ joinArrays: !1,
724
+ ns: c
725
+ }) : t[e] = this.translate(r, {
726
+ ...i,
727
+ joinArrays: !1,
728
+ ns: c
729
+ }), t[e] === r && (t[e] = w[e]);
730
+ }
731
+ m = t;
732
+ }
733
+ } else if (ee && g(y) && Array.isArray(m)) m = m.join(y), m &&= this.extendTranslation(m, t, i, r);
734
+ else {
735
+ let e = !1, n = !1;
736
+ !this.isValidLookup(m) && x && (e = !0, m = C), this.isValidLookup(m) || (n = !0, m = s);
737
+ let a = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n ? void 0 : m, c = x && C !== m && this.options.updateMissing;
738
+ if (n || e || c) {
739
+ if (this.logger.log(c ? "updateKey" : "missingKey", d, l, s, c ? C : m), o) {
740
+ let e = this.resolve(s, {
741
+ ...i,
742
+ keySeparator: !1
743
+ });
744
+ 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.");
745
+ }
746
+ let e = [], t = this.languageUtils.getFallbackCodes(this.options.fallbackLng, i.lng || this.language);
747
+ if (this.options.saveMissingTo === "fallback" && t && t[0]) for (let n = 0; n < t.length; n++) e.push(t[n]);
748
+ else this.options.saveMissingTo === "all" ? e = this.languageUtils.toResolveHierarchy(i.lng || this.language) : e.push(i.lng || this.language);
749
+ let n = (e, t, n) => {
750
+ let r = x && n !== m ? n : a;
751
+ 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);
752
+ };
753
+ this.options.saveMissing && (this.options.saveMissingPlurals && b ? e.forEach((e) => {
754
+ let t = this.pluralResolver.getSuffixes(e, i);
755
+ ne && i[`defaultValue${this.options.pluralSeparator}zero`] && t.indexOf(`${this.options.pluralSeparator}zero`) < 0 && t.push(`${this.options.pluralSeparator}zero`), t.forEach((t) => {
756
+ n([e], s + t, i[`defaultValue${t}`] || C);
757
+ });
758
+ }) : n(e, s, C));
759
+ }
760
+ 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));
761
+ }
762
+ return a ? (p.res = m, p.usedParams = this.getUsedParamsDetails(i), p) : m;
763
+ }
764
+ extendTranslation(e, t, n, r, i) {
765
+ if (this.i18nFormat?.parse) e = this.i18nFormat.parse(e, {
766
+ ...this.options.interpolation.defaultVariables,
767
+ ...n
768
+ }, n.lng || this.language || r.usedLng, r.usedNS, r.usedKey, { resolved: r });
769
+ else if (!n.skipInterpolation) {
770
+ n.interpolation && this.interpolator.init({
771
+ ...n,
772
+ interpolation: {
773
+ ...this.options.interpolation,
774
+ ...n.interpolation
775
+ }
776
+ });
777
+ let a = g(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
778
+ if (a) {
779
+ let t = e.match(this.interpolator.nestingRegexp);
780
+ o = t && t.length;
781
+ }
782
+ let s = n.replace && !g(n.replace) ? n.replace : n;
783
+ if (this.options.interpolation.defaultVariables && (s = {
784
+ ...this.options.interpolation.defaultVariables,
785
+ ...s
786
+ }), e = this.interpolator.interpolate(e, s, n.lng || this.language || r.usedLng, n), a) {
787
+ let t = e.match(this.interpolator.nestingRegexp), r = t && t.length;
788
+ o < r && (n.nest = !1);
789
+ }
790
+ !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();
791
+ }
792
+ let a = n.postProcess || this.options.postProcess, o = g(a) ? [a] : a;
793
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = me.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
794
+ i18nResolved: {
795
+ ...r,
796
+ usedParams: this.getUsedParamsDetails(n)
797
+ },
798
+ ...n
799
+ } : n, this)), e;
800
+ }
801
+ resolve(e, t = {}) {
802
+ let n, r, i, a, o;
803
+ return g(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? O(e, {
804
+ ...this.options,
805
+ ...t
806
+ }) : e)), e.forEach((e) => {
807
+ if (this.isValidLookup(n)) return;
808
+ let s = this.extractFromKey(e, t), c = s.key;
809
+ r = c;
810
+ let l = s.namespaces;
811
+ this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
812
+ let u = t.count !== void 0 && !g(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (g(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
813
+ l.forEach((e) => {
814
+ this.isValidLookup(n) || (o = e, !_e[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (_e[`${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) => {
815
+ if (this.isValidLookup(n)) return;
816
+ a = r;
817
+ let o = [c];
818
+ if (this.i18nFormat?.addLookupKeys) this.i18nFormat.addLookupKeys(o, c, r, e, t);
819
+ else {
820
+ let e;
821
+ u && (e = this.pluralResolver.getSuffix(r, t.count, t));
822
+ let n = `${this.options.pluralSeparator}zero`, i = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
823
+ 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) {
824
+ let r = `${c}${this.options.contextSeparator || "_"}${t.context}`;
825
+ 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));
826
+ }
827
+ }
828
+ let s;
829
+ for (; s = o.pop();) this.isValidLookup(n) || (i = s, n = this.getResource(r, e, s, t));
830
+ }));
831
+ });
832
+ }), {
833
+ res: n,
834
+ usedKey: r,
835
+ exactUsedKey: i,
836
+ usedLng: a,
837
+ usedNS: o
838
+ };
839
+ }
840
+ isValidLookup(e) {
841
+ return e !== void 0 && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
842
+ }
843
+ getResource(e, t, n, r = {}) {
844
+ return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e, t, n, r) : this.resourceStore.getResource(e, t, n, r);
845
+ }
846
+ getUsedParamsDetails(e = {}) {
847
+ let t = [
848
+ "defaultValue",
849
+ "ordinal",
850
+ "context",
851
+ "replace",
852
+ "lng",
853
+ "lngs",
854
+ "fallbackLng",
855
+ "ns",
856
+ "keySeparator",
857
+ "nsSeparator",
858
+ "returnObjects",
859
+ "returnDetails",
860
+ "joinArrays",
861
+ "postProcess",
862
+ "interpolation"
863
+ ], n = e.replace && !g(e.replace), r = n ? e.replace : e;
864
+ if (n && e.count !== void 0 && (r.count = e.count), this.options.interpolation.defaultVariables && (r = {
865
+ ...this.options.interpolation.defaultVariables,
866
+ ...r
867
+ }), !n) {
868
+ r = { ...r };
869
+ for (let e of t) delete r[e];
870
+ }
871
+ return r;
872
+ }
873
+ static hasDefaultValue(e) {
874
+ for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
875
+ return !1;
876
+ }
877
+ }, be = class {
878
+ constructor(e) {
879
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = D.create("languageUtils");
880
+ }
881
+ getScriptPartFromCode(e) {
882
+ if (e = E(e), !e || e.indexOf("-") < 0) return null;
883
+ let t = e.split("-");
884
+ return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
885
+ }
886
+ getLanguagePartFromCode(e) {
887
+ if (e = E(e), !e || e.indexOf("-") < 0) return e;
888
+ let t = e.split("-");
889
+ return this.formatLanguageCode(t[0]);
890
+ }
891
+ formatLanguageCode(e) {
892
+ if (g(e) && e.indexOf("-") > -1) {
893
+ let t;
894
+ try {
895
+ t = Intl.getCanonicalLocales(e)[0];
896
+ } catch {}
897
+ return t && this.options.lowerCaseLng && (t = t.toLowerCase()), t || (this.options.lowerCaseLng ? e.toLowerCase() : e);
898
+ }
899
+ return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
900
+ }
901
+ isSupportedCode(e) {
902
+ return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1;
903
+ }
904
+ getBestMatchFromCodes(e) {
905
+ if (!e) return null;
906
+ let t;
907
+ return e.forEach((e) => {
908
+ if (t) return;
909
+ let n = this.formatLanguageCode(e);
910
+ (!this.options.supportedLngs || this.isSupportedCode(n)) && (t = n);
911
+ }), !t && this.options.supportedLngs && e.forEach((e) => {
912
+ if (t) return;
913
+ let n = this.getScriptPartFromCode(e);
914
+ if (this.isSupportedCode(n)) return t = n;
915
+ let r = this.getLanguagePartFromCode(e);
916
+ if (this.isSupportedCode(r)) return t = r;
917
+ t = this.options.supportedLngs.find((e) => {
918
+ 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;
919
+ });
920
+ }), t ||= this.getFallbackCodes(this.options.fallbackLng)[0], t;
921
+ }
922
+ getFallbackCodes(e, t) {
923
+ if (!e) return [];
924
+ if (typeof e == "function" && (e = e(t)), g(e) && (e = [e]), Array.isArray(e)) return e;
925
+ if (!t) return e.default || [];
926
+ let n = e[t];
927
+ return n ||= e[this.getScriptPartFromCode(t)], n ||= e[this.formatLanguageCode(t)], n ||= e[this.getLanguagePartFromCode(t)], n ||= e.default, n || [];
928
+ }
929
+ toResolveHierarchy(e, t) {
930
+ let n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), r = [], i = (e) => {
931
+ e && (this.isSupportedCode(e) ? r.push(e) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
932
+ };
933
+ return g(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))) : g(e) && i(this.formatLanguageCode(e)), n.forEach((e) => {
934
+ r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
935
+ }), r;
936
+ }
937
+ }, xe = {
938
+ zero: 0,
939
+ one: 1,
940
+ two: 2,
941
+ few: 3,
942
+ many: 4,
943
+ other: 5
944
+ }, Se = {
945
+ select: (e) => e === 1 ? "one" : "other",
946
+ resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
947
+ }, Ce = class {
948
+ constructor(e, t = {}) {
949
+ this.languageUtils = e, this.options = t, this.logger = D.create("pluralResolver"), this.pluralRulesCache = {};
950
+ }
951
+ clearCache() {
952
+ this.pluralRulesCache = {};
953
+ }
954
+ getRule(e, t = {}) {
955
+ let n = E(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
956
+ cleanedCode: n,
957
+ type: r
958
+ });
959
+ if (i in this.pluralRulesCache) return this.pluralRulesCache[i];
960
+ let a;
961
+ try {
962
+ a = new Intl.PluralRules(n, { type: r });
963
+ } catch {
964
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), Se;
965
+ if (!e.match(/-|_/)) return Se;
966
+ let n = this.languageUtils.getLanguagePartFromCode(e);
967
+ a = this.getRule(n, t);
968
+ }
969
+ return this.pluralRulesCache[i] = a, a;
970
+ }
971
+ needsPlural(e, t = {}) {
972
+ let n = this.getRule(e, t);
973
+ return n ||= this.getRule("dev", t), n?.resolvedOptions().pluralCategories.length > 1;
974
+ }
975
+ getPluralFormsOfKey(e, t, n = {}) {
976
+ return this.getSuffixes(e, n).map((e) => `${t}${e}`);
977
+ }
978
+ getSuffixes(e, t = {}) {
979
+ let n = this.getRule(e, t);
980
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => xe[e] - xe[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
981
+ }
982
+ getSuffix(e, t, n = {}) {
983
+ let r = this.getRule(e, n);
984
+ 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));
985
+ }
986
+ }, we = (e, t, n, r = ".", i = !0) => {
987
+ let a = w(e, t, n);
988
+ return !a && i && g(n) && (a = ue(e, n, r), a === void 0 && (a = ue(t, n, r))), a;
989
+ }, Te = (e) => e.replace(/\$/g, "$$$$"), Ee = class {
990
+ constructor(e = {}) {
991
+ this.logger = D.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
992
+ }
993
+ init(e = {}) {
994
+ e.interpolation ||= { escapeValue: !0 };
995
+ 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;
996
+ this.escape = t === void 0 ? ae : t, this.escapeValue = n === void 0 ? !0 : n, this.useRawValueToEscape = r === void 0 ? !1 : r, this.prefix = i ? T(i) : a || "{{", this.suffix = o ? T(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? T(d) : f || T("$t("), this.nestingSuffix = p ? T(p) : m || T(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ === void 0 ? !1 : _, this.resetRegExp();
997
+ }
998
+ reset() {
999
+ this.options && this.init(this.options);
1000
+ }
1001
+ resetRegExp() {
1002
+ let e = (e, t) => e?.source === t ? (e.lastIndex = 0, e) : new RegExp(t, "g");
1003
+ 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}`);
1004
+ }
1005
+ interpolate(e, t, n, r) {
1006
+ let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
1007
+ if (e.indexOf(this.formatSeparator) < 0) {
1008
+ let i = we(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
1009
+ return this.alwaysFormat ? this.format(i, void 0, n, {
1010
+ ...r,
1011
+ ...t,
1012
+ interpolationkey: e
1013
+ }) : i;
1014
+ }
1015
+ let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
1016
+ return this.format(we(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
1017
+ ...r,
1018
+ ...t,
1019
+ interpolationkey: a
1020
+ });
1021
+ };
1022
+ this.resetRegExp();
1023
+ let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
1024
+ return [{
1025
+ regex: this.regexpUnescape,
1026
+ safeValue: (e) => Te(e)
1027
+ }, {
1028
+ regex: this.regexp,
1029
+ safeValue: (e) => this.escapeValue ? Te(this.escape(e)) : Te(e)
1030
+ }].forEach((t) => {
1031
+ for (o = 0; i = t.regex.exec(e);) {
1032
+ let n = i[1].trim();
1033
+ if (a = c(n), a === void 0) if (typeof l == "function") {
1034
+ let t = l(e, i, r);
1035
+ a = g(t) ? t : "";
1036
+ } else if (r && Object.prototype.hasOwnProperty.call(r, n)) a = "";
1037
+ else if (u) {
1038
+ a = i[0];
1039
+ continue;
1040
+ } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
1041
+ else !g(a) && !this.useRawValueToEscape && (a = v(a));
1042
+ let s = t.safeValue(a);
1043
+ 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;
1044
+ }
1045
+ }), e;
1046
+ }
1047
+ nest(e, t, n = {}) {
1048
+ let r, i, a, o = (e, t) => {
1049
+ let n = this.nestingOptionsSeparator;
1050
+ if (e.indexOf(n) < 0) return e;
1051
+ let r = e.split(RegExp(`${T(n)}[ ]*{`)), i = `{${r[1]}`;
1052
+ e = r[0], i = this.interpolate(i, a);
1053
+ let o = i.match(/'/g), s = i.match(/"/g);
1054
+ ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
1055
+ try {
1056
+ a = JSON.parse(i), t && (a = {
1057
+ ...t,
1058
+ ...a
1059
+ });
1060
+ } catch (t) {
1061
+ return this.logger.warn(`failed parsing options string in nesting for key ${e}`, t), `${e}${n}${i}`;
1062
+ }
1063
+ return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, e;
1064
+ };
1065
+ for (; r = this.nestingRegexp.exec(e);) {
1066
+ let s = [];
1067
+ a = { ...n }, a = a.replace && !g(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
1068
+ let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
1069
+ 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 && !g(i)) return i;
1070
+ g(i) || (i = v(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, {
1071
+ ...n,
1072
+ interpolationkey: r[1].trim()
1073
+ }), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
1074
+ }
1075
+ return e;
1076
+ }
1077
+ }, De = (e) => {
1078
+ let t = e.toLowerCase().trim(), n = {};
1079
+ if (e.indexOf("(") > -1) {
1080
+ let r = e.split("(");
1081
+ t = r[0].toLowerCase().trim();
1082
+ let i = r[1].substring(0, r[1].length - 1);
1083
+ t === "currency" && i.indexOf(":") < 0 ? n.currency ||= i.trim() : t === "relativetime" && i.indexOf(":") < 0 ? n.range ||= i.trim() : i.split(";").forEach((e) => {
1084
+ if (e) {
1085
+ let [t, ...r] = e.split(":"), i = r.join(":").trim().replace(/^'+|'+$/g, ""), a = t.trim();
1086
+ n[a] || (n[a] = i), i === "false" && (n[a] = !1), i === "true" && (n[a] = !0), isNaN(i) || (n[a] = parseInt(i, 10));
1087
+ }
1088
+ });
1089
+ }
1090
+ return {
1091
+ formatName: t,
1092
+ formatOptions: n
1093
+ };
1094
+ }, Oe = (e) => {
1095
+ let t = {};
1096
+ return (n, r, i) => {
1097
+ let a = i;
1098
+ i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (a = {
1099
+ ...a,
1100
+ [i.interpolationkey]: void 0
1101
+ });
1102
+ let o = r + JSON.stringify(a), s = t[o];
1103
+ return s || (s = e(E(r), i), t[o] = s), s(n);
1104
+ };
1105
+ }, ke = (e) => (t, n, r) => e(E(n), r)(t), Ae = class {
1106
+ constructor(e = {}) {
1107
+ this.logger = D.create("formatter"), this.options = e, this.init(e);
1108
+ }
1109
+ init(e, t = { interpolation: {} }) {
1110
+ this.formatSeparator = t.interpolation.formatSeparator || ",";
1111
+ let n = t.cacheInBuiltFormats ? Oe : ke;
1112
+ this.formats = {
1113
+ number: n((e, t) => {
1114
+ let n = new Intl.NumberFormat(e, { ...t });
1115
+ return (e) => n.format(e);
1116
+ }),
1117
+ currency: n((e, t) => {
1118
+ let n = new Intl.NumberFormat(e, {
1119
+ ...t,
1120
+ style: "currency"
1121
+ });
1122
+ return (e) => n.format(e);
1123
+ }),
1124
+ datetime: n((e, t) => {
1125
+ let n = new Intl.DateTimeFormat(e, { ...t });
1126
+ return (e) => n.format(e);
1127
+ }),
1128
+ relativetime: n((e, t) => {
1129
+ let n = new Intl.RelativeTimeFormat(e, { ...t });
1130
+ return (e) => n.format(e, t.range || "day");
1131
+ }),
1132
+ list: n((e, t) => {
1133
+ let n = new Intl.ListFormat(e, { ...t });
1134
+ return (e) => n.format(e);
1135
+ })
1136
+ };
1137
+ }
1138
+ add(e, t) {
1139
+ this.formats[e.toLowerCase().trim()] = t;
1140
+ }
1141
+ addCached(e, t) {
1142
+ this.formats[e.toLowerCase().trim()] = Oe(t);
1143
+ }
1144
+ format(e, t, n, r = {}) {
1145
+ let i = t.split(this.formatSeparator);
1146
+ if (i.length > 1 && i[0].indexOf("(") > 1 && i[0].indexOf(")") < 0 && i.find((e) => e.indexOf(")") > -1)) {
1147
+ let e = i.findIndex((e) => e.indexOf(")") > -1);
1148
+ i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
1149
+ }
1150
+ return i.reduce((e, t) => {
1151
+ let { formatName: i, formatOptions: a } = De(t);
1152
+ if (this.formats[i]) {
1153
+ let t = e;
1154
+ try {
1155
+ let o = r?.formatParams?.[r.interpolationkey] || {}, s = o.locale || o.lng || r.locale || r.lng || n;
1156
+ t = this.formats[i](e, s, {
1157
+ ...a,
1158
+ ...r,
1159
+ ...o
1160
+ });
1161
+ } catch (e) {
1162
+ this.logger.warn(e);
1163
+ }
1164
+ return t;
1165
+ } else this.logger.warn(`there was no format function for ${i}`);
1166
+ return e;
1167
+ }, e);
1168
+ }
1169
+ }, je = (e, t) => {
1170
+ e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
1171
+ }, Me = class extends fe {
1172
+ constructor(e, t, n, r = {}) {
1173
+ super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = D.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);
1174
+ }
1175
+ queueLoad(e, t, n, r) {
1176
+ let i = {}, a = {}, o = {}, s = {};
1177
+ return e.forEach((e) => {
1178
+ let r = !0;
1179
+ t.forEach((t) => {
1180
+ let o = `${e}|${t}`;
1181
+ !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)));
1182
+ }), r || (o[e] = !0);
1183
+ }), (Object.keys(i).length || Object.keys(a).length) && this.queue.push({
1184
+ pending: a,
1185
+ pendingCount: Object.keys(a).length,
1186
+ loaded: {},
1187
+ errors: [],
1188
+ callback: r
1189
+ }), {
1190
+ toLoad: Object.keys(i),
1191
+ pending: Object.keys(a),
1192
+ toLoadLanguages: Object.keys(o),
1193
+ toLoadNamespaces: Object.keys(s)
1194
+ };
1195
+ }
1196
+ loaded(e, t, n) {
1197
+ let r = e.split("|"), i = r[0], a = r[1];
1198
+ 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);
1199
+ let o = {};
1200
+ this.queue.forEach((n) => {
1201
+ ne(n.loaded, [i], a), je(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
1202
+ o[e] || (o[e] = {});
1203
+ let t = n.loaded[e];
1204
+ t.length && t.forEach((t) => {
1205
+ o[e][t] === void 0 && (o[e][t] = !0);
1206
+ });
1207
+ }), n.done = !0, n.errors.length ? n.callback(n.errors) : n.callback());
1208
+ }), this.emit("loaded", o), this.queue = this.queue.filter((e) => !e.done);
1209
+ }
1210
+ read(e, t, n, r = 0, i = this.retryTimeout, a) {
1211
+ if (!e.length) return a(null, {});
1212
+ if (this.readingCalls >= this.maxParallelReads) {
1213
+ this.waitingReads.push({
1214
+ lng: e,
1215
+ ns: t,
1216
+ fcName: n,
1217
+ tried: r,
1218
+ wait: i,
1219
+ callback: a
1220
+ });
1221
+ return;
1222
+ }
1223
+ this.readingCalls++;
1224
+ let o = (o, s) => {
1225
+ if (this.readingCalls--, this.waitingReads.length > 0) {
1226
+ let e = this.waitingReads.shift();
1227
+ this.read(e.lng, e.ns, e.fcName, e.tried, e.wait, e.callback);
1228
+ }
1229
+ if (o && s && r < this.maxRetries) {
1230
+ setTimeout(() => {
1231
+ this.read.call(this, e, t, n, r + 1, i * 2, a);
1232
+ }, i);
1233
+ return;
1234
+ }
1235
+ a(o, s);
1236
+ }, s = this.backend[n].bind(this.backend);
1237
+ if (s.length === 2) {
1238
+ try {
1239
+ let n = s(e, t);
1240
+ n && typeof n.then == "function" ? n.then((e) => o(null, e)).catch(o) : o(null, n);
1241
+ } catch (e) {
1242
+ o(e);
1243
+ }
1244
+ return;
1245
+ }
1246
+ return s(e, t, o);
1247
+ }
1248
+ prepareLoading(e, t, n = {}, r) {
1249
+ if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), r && r();
1250
+ g(e) && (e = this.languageUtils.toResolveHierarchy(e)), g(t) && (t = [t]);
1251
+ let i = this.queueLoad(e, t, n, r);
1252
+ if (!i.toLoad.length) return i.pending.length || r(), null;
1253
+ i.toLoad.forEach((e) => {
1254
+ this.loadOne(e);
1255
+ });
1256
+ }
1257
+ load(e, t, n) {
1258
+ this.prepareLoading(e, t, {}, n);
1259
+ }
1260
+ reload(e, t, n) {
1261
+ this.prepareLoading(e, t, { reload: !0 }, n);
1262
+ }
1263
+ loadOne(e, t = "") {
1264
+ let n = e.split("|"), r = n[0], i = n[1];
1265
+ this.read(r, i, "read", void 0, void 0, (n, a) => {
1266
+ 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);
1267
+ });
1268
+ }
1269
+ saveMissing(e, t, n, r, i, a = {}, o = () => {}) {
1270
+ if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(t)) {
1271
+ 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!!!");
1272
+ return;
1273
+ }
1274
+ if (!(n == null || n === "")) {
1275
+ if (this.backend?.create) {
1276
+ let s = {
1277
+ ...a,
1278
+ isUpdate: i
1279
+ }, c = this.backend.create.bind(this.backend);
1280
+ if (c.length < 6) try {
1281
+ let i;
1282
+ 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);
1283
+ } catch (e) {
1284
+ o(e);
1285
+ }
1286
+ else c(e, t, n, r, o, s);
1287
+ }
1288
+ !e || !e[0] || this.store.addResource(e[0], t, n, r);
1289
+ }
1290
+ }
1291
+ }, Ne = () => ({
1292
+ debug: !1,
1293
+ initAsync: !0,
1294
+ ns: ["translation"],
1295
+ defaultNS: ["translation"],
1296
+ fallbackLng: ["dev"],
1297
+ fallbackNS: !1,
1298
+ supportedLngs: !1,
1299
+ nonExplicitSupportedLngs: !1,
1300
+ load: "all",
1301
+ preload: !1,
1302
+ simplifyPluralSuffix: !0,
1303
+ keySeparator: ".",
1304
+ nsSeparator: ":",
1305
+ pluralSeparator: "_",
1306
+ contextSeparator: "_",
1307
+ partialBundledLanguages: !1,
1308
+ saveMissing: !1,
1309
+ updateMissing: !1,
1310
+ saveMissingTo: "fallback",
1311
+ saveMissingPlurals: !0,
1312
+ missingKeyHandler: !1,
1313
+ missingInterpolationHandler: !1,
1314
+ postProcess: !1,
1315
+ postProcessPassResolved: !1,
1316
+ returnNull: !1,
1317
+ returnEmptyString: !0,
1318
+ returnObjects: !1,
1319
+ joinArrays: !1,
1320
+ returnedObjectHandler: !1,
1321
+ parseMissingKeyHandler: !1,
1322
+ appendNamespaceToMissingKey: !1,
1323
+ appendNamespaceToCIMode: !1,
1324
+ overloadTranslationOptionHandler: (e) => {
1325
+ let t = {};
1326
+ if (typeof e[1] == "object" && (t = e[1]), g(e[1]) && (t.defaultValue = e[1]), g(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
1327
+ let n = e[3] || e[2];
1328
+ Object.keys(n).forEach((e) => {
1329
+ t[e] = n[e];
1330
+ });
1331
+ }
1332
+ return t;
1333
+ },
1334
+ interpolation: {
1335
+ escapeValue: !0,
1336
+ format: (e) => e,
1337
+ prefix: "{{",
1338
+ suffix: "}}",
1339
+ formatSeparator: ",",
1340
+ unescapePrefix: "-",
1341
+ nestingPrefix: "$t(",
1342
+ nestingSuffix: ")",
1343
+ nestingOptionsSeparator: ",",
1344
+ maxReplaces: 1e3,
1345
+ skipOnVariables: !0
1346
+ },
1347
+ cacheInBuiltFormats: !0
1348
+ }), Pe = (e) => (g(e.ns) && (e.ns = [e.ns]), g(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), g(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), Fe = () => {}, Ie = (e) => {
1349
+ Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
1350
+ typeof e[t] == "function" && (e[t] = e[t].bind(e));
1351
+ });
1352
+ }, Le = "__i18next_supportNoticeShown", Re = () => !!(typeof globalThis < "u" && globalThis[Le] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), ze = () => {
1353
+ typeof globalThis < "u" && (globalThis[Le] = !0);
1354
+ }, Be = (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)), k = class e extends fe {
1355
+ constructor(e = {}, t) {
1356
+ if (super(), this.options = Pe(e), this.services = {}, this.logger = D, this.modules = { external: [] }, Ie(this), t && !this.isInitialized && !e.isClone) {
1357
+ if (!this.options.initAsync) return this.init(e, t), this;
1358
+ setTimeout(() => {
1359
+ this.init(e, t);
1360
+ }, 0);
1361
+ }
1362
+ }
1363
+ init(e = {}, t) {
1364
+ this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (g(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
1365
+ let n = Ne();
1366
+ this.options = {
1367
+ ...n,
1368
+ ...this.options,
1369
+ ...Pe(e)
1370
+ }, this.options.interpolation = {
1371
+ ...n.interpolation,
1372
+ ...this.options.interpolation
1373
+ }, 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 && !Be(this) && !Re() && (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 💙"), ze());
1374
+ let r = (e) => e ? typeof e == "function" ? new e() : e : null;
1375
+ if (!this.options.isClone) {
1376
+ this.modules.logger ? D.init(r(this.modules.logger), this.options) : D.init(null, this.options);
1377
+ let e;
1378
+ e = this.modules.formatter ? this.modules.formatter : Ae;
1379
+ let t = new be(this.options);
1380
+ this.store = new pe(this.options.resources, this.options);
1381
+ let i = this.services;
1382
+ i.logger = D, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new Ce(t, {
1383
+ prepend: this.options.pluralSeparator,
1384
+ simplifyPluralSuffix: this.options.simplifyPluralSuffix
1385
+ }), 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 Ee(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Me(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
1386
+ this.emit(e, ...t);
1387
+ }), 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 ye(this.services, this.options), this.translator.on("*", (e, ...t) => {
1388
+ this.emit(e, ...t);
1389
+ }), this.modules.external.forEach((e) => {
1390
+ e.init && e.init(this);
1391
+ });
1392
+ }
1393
+ if (this.format = this.options.interpolation.format, t ||= Fe, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1394
+ let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1395
+ e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
1396
+ }
1397
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), [
1398
+ "getResource",
1399
+ "hasResourceBundle",
1400
+ "getResourceBundle",
1401
+ "getDataByLanguage"
1402
+ ].forEach((e) => {
1403
+ this[e] = (...t) => this.store[e](...t);
1404
+ }), [
1405
+ "addResource",
1406
+ "addResources",
1407
+ "addResourceBundle",
1408
+ "removeResourceBundle"
1409
+ ].forEach((e) => {
1410
+ this[e] = (...t) => (this.store[e](...t), this);
1411
+ });
1412
+ let i = _(), a = () => {
1413
+ let e = (e, n) => {
1414
+ 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);
1415
+ };
1416
+ if (this.languages && !this.isInitialized) return e(null, this.t.bind(this));
1417
+ this.changeLanguage(this.options.lng, e);
1418
+ };
1419
+ return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
1420
+ }
1421
+ loadResources(e, t = Fe) {
1422
+ let n = t, r = g(e) ? e : this.language;
1423
+ if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
1424
+ if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
1425
+ let e = [], t = (t) => {
1426
+ t && t !== "cimode" && this.services.languageUtils.toResolveHierarchy(t).forEach((t) => {
1427
+ t !== "cimode" && e.indexOf(t) < 0 && e.push(t);
1428
+ });
1429
+ };
1430
+ 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) => {
1431
+ !e && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(e);
1432
+ });
1433
+ } else n(null);
1434
+ }
1435
+ reloadResources(e, t, n) {
1436
+ let r = _();
1437
+ 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 ||= Fe, this.services.backendConnector.reload(e, t, (e) => {
1438
+ r.resolve(), n(e);
1439
+ }), r;
1440
+ }
1441
+ use(e) {
1442
+ if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1443
+ if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1444
+ 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" && me.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1445
+ }
1446
+ setResolvedLanguage(e) {
1447
+ if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
1448
+ for (let e = 0; e < this.languages.length; e++) {
1449
+ let t = this.languages[e];
1450
+ if (!(["cimode", "dev"].indexOf(t) > -1) && this.store.hasLanguageSomeTranslations(t)) {
1451
+ this.resolvedLanguage = t;
1452
+ break;
1453
+ }
1454
+ }
1455
+ !this.resolvedLanguage && this.languages.indexOf(e) < 0 && this.store.hasLanguageSomeTranslations(e) && (this.resolvedLanguage = e, this.languages.unshift(e));
1456
+ }
1457
+ }
1458
+ changeLanguage(e, t) {
1459
+ this.isLanguageChangingTo = e;
1460
+ let n = _();
1461
+ this.emit("languageChanging", e);
1462
+ let r = (e) => {
1463
+ this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
1464
+ }, i = (i, a) => {
1465
+ 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));
1466
+ }, a = (t) => {
1467
+ !e && !t && this.services.languageDetector && (t = []);
1468
+ let n = g(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(g(t) ? [t] : t);
1469
+ a && (this.language || r(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector?.cacheUserLanguage?.(a)), this.loadResources(a, (e) => {
1470
+ i(e, a);
1471
+ });
1472
+ };
1473
+ 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;
1474
+ }
1475
+ getFixedT(e, t, n) {
1476
+ let r = (e, t, ...i) => {
1477
+ let a;
1478
+ 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);
1479
+ let o = {
1480
+ ...this.options,
1481
+ ...a
1482
+ };
1483
+ typeof a.keyPrefix == "function" && (a.keyPrefix = O(a.keyPrefix, o));
1484
+ let s = this.options.keySeparator || ".", c;
1485
+ return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = O(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = O(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
1486
+ };
1487
+ return g(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
1488
+ }
1489
+ t(...e) {
1490
+ return this.translator?.translate(...e);
1491
+ }
1492
+ exists(...e) {
1493
+ return this.translator?.exists(...e);
1494
+ }
1495
+ setDefaultNamespace(e) {
1496
+ this.options.defaultNS = e;
1497
+ }
1498
+ hasLoadedNamespace(e, t = {}) {
1499
+ if (!this.isInitialized) return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
1500
+ if (!this.languages || !this.languages.length) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
1501
+ let n = t.lng || this.resolvedLanguage || this.languages[0], r = this.options ? this.options.fallbackLng : !1, i = this.languages[this.languages.length - 1];
1502
+ if (n.toLowerCase() === "cimode") return !0;
1503
+ let a = (e, t) => {
1504
+ let n = this.services.backendConnector.state[`${e}|${t}`];
1505
+ return n === -1 || n === 0 || n === 2;
1506
+ };
1507
+ if (t.precheck) {
1508
+ let e = t.precheck(this, a);
1509
+ if (e !== void 0) return e;
1510
+ }
1511
+ return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
1512
+ }
1513
+ loadNamespaces(e, t) {
1514
+ let n = _();
1515
+ return this.options.ns ? (g(e) && (e = [e]), e.forEach((e) => {
1516
+ this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
1517
+ }), this.loadResources((e) => {
1518
+ n.resolve(), t && t(e);
1519
+ }), n) : (t && t(), Promise.resolve());
1520
+ }
1521
+ loadLanguages(e, t) {
1522
+ let n = _();
1523
+ g(e) && (e = [e]);
1524
+ let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
1525
+ return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
1526
+ n.resolve(), t && t(e);
1527
+ }), n) : (t && t(), Promise.resolve());
1528
+ }
1529
+ dir(e) {
1530
+ if (e ||= this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language), !e) return "rtl";
1531
+ try {
1532
+ let t = new Intl.Locale(e);
1533
+ if (t && t.getTextInfo) {
1534
+ let e = t.getTextInfo();
1535
+ if (e && e.direction) return e.direction;
1536
+ }
1537
+ } catch {}
1538
+ let t = /* @__PURE__ */ "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 be(Ne());
1539
+ return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1540
+ }
1541
+ static createInstance(t = {}, n) {
1542
+ let r = new e(t, n);
1543
+ return r.createInstance = e.createInstance, r;
1544
+ }
1545
+ cloneInstance(t = {}, n = Fe) {
1546
+ let r = t.forkResourceStore;
1547
+ r && delete t.forkResourceStore;
1548
+ let i = {
1549
+ ...this.options,
1550
+ ...t,
1551
+ isClone: !0
1552
+ }, a = new e(i);
1553
+ if ((t.debug !== void 0 || t.prefix !== void 0) && (a.logger = a.logger.clone(t)), [
1554
+ "store",
1555
+ "services",
1556
+ "language"
1557
+ ].forEach((e) => {
1558
+ a[e] = this[e];
1559
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new pe(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) {
1560
+ let e = {
1561
+ ...Ne().interpolation,
1562
+ ...this.options.interpolation,
1563
+ ...t.interpolation
1564
+ }, n = {
1565
+ ...i,
1566
+ interpolation: e
1567
+ };
1568
+ a.services.interpolator = new Ee(n);
1569
+ }
1570
+ return a.translator = new ye(a.services, i), a.translator.on("*", (e, ...t) => {
1571
+ a.emit(e, ...t);
1572
+ }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
1573
+ }
1574
+ toJSON() {
1575
+ return {
1576
+ options: this.options,
1577
+ store: this.store,
1578
+ language: this.language,
1579
+ languages: this.languages,
1580
+ resolvedLanguage: this.resolvedLanguage
1581
+ };
1582
+ }
1583
+ }.createInstance();
1584
+ //#endregion
1585
+ //#region ../../lib-react/translator/dist/index.js
1586
+ k.createInstance, k.dir, k.init, k.loadResources, k.reloadResources, k.use, k.changeLanguage, k.getFixedT, k.t, k.exists, k.setDefaultNamespace, k.hasLoadedNamespace, k.loadNamespaces, k.loadLanguages, k.init({
1587
+ fallbackLng: "en",
1588
+ lng: "en",
1589
+ debug: !0,
1590
+ resources: {
1591
+ en: m,
1592
+ es: h
1593
+ }
1594
+ });
1595
+ var Ve = {
1596
+ translator: {
1597
+ ...k,
1598
+ t: (e, t) => {
1599
+ let { lng: n } = t;
1600
+ switch (n) {
1601
+ case "en_US":
1602
+ case "en-US":
1603
+ t.lng = "en";
1604
+ break;
1605
+ case "es_ES":
1606
+ case "es-ES":
1607
+ case "es_MX":
1608
+ case "es-MX":
1609
+ t.lng = "es";
1610
+ break;
1611
+ default: break;
1612
+ }
1613
+ return k.t(e, {
1614
+ lng: n,
1615
+ ...t
1616
+ });
1617
+ }
1618
+ },
1619
+ languageOptions: [{
1620
+ value: "en_US",
1621
+ label: "English (US)"
1622
+ }, {
1623
+ value: "es_ES",
1624
+ label: "Spanish"
1625
+ }]
1626
+ }, He = /* @__PURE__ */ l(p(), 1), A = (0, He.default)("@pie-lib:categorize:scoring"), Ue = (e) => !e || !e.weighting ? [] : e.weighting.enabled && e.weighting && e.weighting.rules || [], We = (e, t) => {
1627
+ if (A("partial? ", e), !(!e || !e.enabled)) {
1628
+ let n = e.rules.find((e) => e.category === t);
1629
+ return n && n.rules || [];
1630
+ }
1631
+ }, Ge = (e, t) => new Promise((n) => {
1632
+ A("categories: ", e, "scoring: ", t);
1633
+ let r = Ue(t), i = e.map((e) => ({
1634
+ ...r.find((t) => t.category === e.id) || { points: 1 },
1635
+ category: e.id
1636
+ }));
1637
+ A("weights: ", i);
1638
+ let a = e.reduce((e, t) => {
1639
+ let n = i.find((e) => e.category === t.id);
1640
+ return e += n.points;
1641
+ }, 0);
1642
+ A("total: ", a);
1643
+ let o = e.map((e) => {
1644
+ let n = i.find((t) => t.category === e.id).points;
1645
+ if (A("category: ", e), e.correct === !0) return {
1646
+ category: e.id,
1647
+ score: n,
1648
+ points: n
1649
+ };
1650
+ {
1651
+ let r = We(t.partial, e.id);
1652
+ if (A("partial rules for category: ", r), r) {
1653
+ let t = (e.choices || []).filter((e) => e.correct).length;
1654
+ A("correctCount: ", t);
1655
+ let i = r.find((e) => e.count === t);
1656
+ A("rule: ", i), i ||= {
1657
+ percent: 0,
1658
+ count: t
1659
+ };
1660
+ let a = n * (i.percent / 100);
1661
+ return {
1662
+ category: e.id,
1663
+ score: a,
1664
+ points: n,
1665
+ partial: {
1666
+ correctChoices: t,
1667
+ rule: i
1668
+ }
1669
+ };
1670
+ } else return {
1671
+ category: e.id,
1672
+ score: 0,
1673
+ points: n
1674
+ };
1675
+ }
1676
+ }), s = o.reduce((e, t) => e += t.score, 0);
1677
+ A("weightedScore: ", s), n({
1678
+ score: parseFloat((s / a).toFixed(2), 10),
1679
+ details: {
1680
+ weighted: {
1681
+ total: a,
1682
+ score: s
1683
+ },
1684
+ categories: o
1685
+ }
1686
+ });
1687
+ }), Ke = typeof global == "object" && global && global.Object === Object && global, qe = typeof self == "object" && self && self.Object === Object && self, j = Ke || qe || Function("return this")(), M = j.Symbol, Je = Object.prototype, Ye = Je.hasOwnProperty, Xe = Je.toString, N = M ? M.toStringTag : void 0;
1688
+ function Ze(e) {
1689
+ var t = Ye.call(e, N), n = e[N];
1690
+ try {
1691
+ e[N] = void 0;
1692
+ var r = !0;
1693
+ } catch {}
1694
+ var i = Xe.call(e);
1695
+ return r && (t ? e[N] = n : delete e[N]), i;
1696
+ }
1697
+ //#endregion
1698
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
1699
+ var Qe = Object.prototype.toString;
1700
+ function $e(e) {
1701
+ return Qe.call(e);
1702
+ }
1703
+ //#endregion
1704
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
1705
+ var et = "[object Null]", tt = "[object Undefined]", nt = M ? M.toStringTag : void 0;
1706
+ function P(e) {
1707
+ return e == null ? e === void 0 ? tt : et : nt && nt in Object(e) ? Ze(e) : $e(e);
1708
+ }
1709
+ //#endregion
1710
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
1711
+ function F(e) {
1712
+ return typeof e == "object" && !!e;
1713
+ }
1714
+ //#endregion
1715
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
1716
+ var rt = "[object Symbol]";
1717
+ function it(e) {
1718
+ return typeof e == "symbol" || F(e) && P(e) == rt;
1719
+ }
1720
+ //#endregion
1721
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
1722
+ function at(e, t) {
1723
+ for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
1724
+ return i;
1725
+ }
1726
+ //#endregion
1727
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
1728
+ var I = Array.isArray, ot = Infinity, st = M ? M.prototype : void 0, ct = st ? st.toString : void 0;
1729
+ function lt(e) {
1730
+ if (typeof e == "string") return e;
1731
+ if (I(e)) return at(e, lt) + "";
1732
+ if (it(e)) return ct ? ct.call(e) : "";
1733
+ var t = e + "";
1734
+ return t == "0" && 1 / e == -ot ? "-0" : t;
1735
+ }
1736
+ //#endregion
1737
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
1738
+ function L(e) {
1739
+ var t = typeof e;
1740
+ return e != null && (t == "object" || t == "function");
1741
+ }
1742
+ //#endregion
1743
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js
1744
+ function ut(e) {
1745
+ return e;
1746
+ }
1747
+ //#endregion
1748
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
1749
+ var dt = "[object AsyncFunction]", ft = "[object Function]", pt = "[object GeneratorFunction]", mt = "[object Proxy]";
1750
+ function ht(e) {
1751
+ if (!L(e)) return !1;
1752
+ var t = P(e);
1753
+ return t == ft || t == pt || t == dt || t == mt;
1754
+ }
1755
+ //#endregion
1756
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
1757
+ var gt = j["__core-js_shared__"], _t = function() {
1758
+ var e = /[^.]+$/.exec(gt && gt.keys && gt.keys.IE_PROTO || "");
1759
+ return e ? "Symbol(src)_1." + e : "";
1760
+ }();
1761
+ function vt(e) {
1762
+ return !!_t && _t in e;
1763
+ }
1764
+ //#endregion
1765
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
1766
+ var yt = Function.prototype.toString;
1767
+ function R(e) {
1768
+ if (e != null) {
1769
+ try {
1770
+ return yt.call(e);
1771
+ } catch {}
1772
+ try {
1773
+ return e + "";
1774
+ } catch {}
1775
+ }
1776
+ return "";
1777
+ }
1778
+ //#endregion
1779
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
1780
+ var bt = /[\\^$.*+?()[\]{}|]/g, xt = /^\[object .+?Constructor\]$/, St = Function.prototype, Ct = Object.prototype, wt = St.toString, Tt = Ct.hasOwnProperty, Et = RegExp("^" + wt.call(Tt).replace(bt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1781
+ function Dt(e) {
1782
+ return !L(e) || vt(e) ? !1 : (ht(e) ? Et : xt).test(R(e));
1783
+ }
1784
+ //#endregion
1785
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
1786
+ function Ot(e, t) {
1787
+ return e?.[t];
1788
+ }
1789
+ //#endregion
1790
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
1791
+ function z(e, t) {
1792
+ var n = Ot(e, t);
1793
+ return Dt(n) ? n : void 0;
1794
+ }
1795
+ //#endregion
1796
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
1797
+ var kt = z(j, "WeakMap"), At = Object.create, jt = function() {
1798
+ function e() {}
1799
+ return function(t) {
1800
+ if (!L(t)) return {};
1801
+ if (At) return At(t);
1802
+ e.prototype = t;
1803
+ var n = new e();
1804
+ return e.prototype = void 0, n;
1805
+ };
1806
+ }();
1807
+ //#endregion
1808
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
1809
+ function Mt(e, t) {
1810
+ var n = -1, r = e.length;
1811
+ for (t ||= Array(r); ++n < r;) t[n] = e[n];
1812
+ return t;
1813
+ }
1814
+ //#endregion
1815
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
1816
+ var Nt = function() {
1817
+ try {
1818
+ var e = z(Object, "defineProperty");
1819
+ return e({}, "", {}), e;
1820
+ } catch {}
1821
+ }();
1822
+ //#endregion
1823
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js
1824
+ function Pt(e, t) {
1825
+ for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1;);
1826
+ return e;
1827
+ }
1828
+ //#endregion
1829
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
1830
+ var Ft = 9007199254740991, It = /^(?:0|[1-9]\d*)$/;
1831
+ function Lt(e, t) {
1832
+ var n = typeof e;
1833
+ return t ??= Ft, !!t && (n == "number" || n != "symbol" && It.test(e)) && e > -1 && e % 1 == 0 && e < t;
1834
+ }
1835
+ //#endregion
1836
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
1837
+ function Rt(e, t, n) {
1838
+ t == "__proto__" && Nt ? Nt(e, t, {
1839
+ configurable: !0,
1840
+ enumerable: !0,
1841
+ value: n,
1842
+ writable: !0
1843
+ }) : e[t] = n;
1844
+ }
1845
+ //#endregion
1846
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js
1847
+ function zt(e, t) {
1848
+ return e === t || e !== e && t !== t;
1849
+ }
1850
+ //#endregion
1851
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
1852
+ var Bt = Object.prototype.hasOwnProperty;
1853
+ function Vt(e, t, n) {
1854
+ var r = e[t];
1855
+ (!(Bt.call(e, t) && zt(r, n)) || n === void 0 && !(t in e)) && Rt(e, t, n);
1856
+ }
1857
+ //#endregion
1858
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
1859
+ function B(e, t, n, r) {
1860
+ var i = !n;
1861
+ n ||= {};
1862
+ for (var a = -1, o = t.length; ++a < o;) {
1863
+ var s = t[a], c = r ? r(n[s], e[s], s, n, e) : void 0;
1864
+ c === void 0 && (c = e[s]), i ? Rt(n, s, c) : Vt(n, s, c);
1865
+ }
1866
+ return n;
1867
+ }
1868
+ //#endregion
1869
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
1870
+ var Ht = 9007199254740991;
1871
+ function Ut(e) {
1872
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ht;
1873
+ }
1874
+ //#endregion
1875
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
1876
+ function Wt(e) {
1877
+ return e != null && Ut(e.length) && !ht(e);
1878
+ }
1879
+ //#endregion
1880
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
1881
+ var Gt = Object.prototype;
1882
+ function Kt(e) {
1883
+ var t = e && e.constructor;
1884
+ return e === (typeof t == "function" && t.prototype || Gt);
1885
+ }
1886
+ //#endregion
1887
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
1888
+ function qt(e, t) {
1889
+ for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
1890
+ return r;
1891
+ }
1892
+ //#endregion
1893
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
1894
+ var Jt = "[object Arguments]";
1895
+ function Yt(e) {
1896
+ return F(e) && P(e) == Jt;
1897
+ }
1898
+ //#endregion
1899
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
1900
+ var Xt = Object.prototype, Zt = Xt.hasOwnProperty, Qt = Xt.propertyIsEnumerable, $t = Yt(function() {
1901
+ return arguments;
1902
+ }()) ? Yt : function(e) {
1903
+ return F(e) && Zt.call(e, "callee") && !Qt.call(e, "callee");
1904
+ };
1905
+ //#endregion
1906
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
1907
+ function en() {
1908
+ return !1;
1909
+ }
1910
+ //#endregion
1911
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
1912
+ var tn = typeof exports == "object" && exports && !exports.nodeType && exports, nn = tn && typeof module == "object" && module && !module.nodeType && module, rn = nn && nn.exports === tn ? j.Buffer : void 0, V = (rn ? rn.isBuffer : void 0) || en, an = "[object Arguments]", on = "[object Array]", sn = "[object Boolean]", cn = "[object Date]", ln = "[object Error]", un = "[object Function]", dn = "[object Map]", fn = "[object Number]", pn = "[object Object]", mn = "[object RegExp]", hn = "[object Set]", gn = "[object String]", _n = "[object WeakMap]", vn = "[object ArrayBuffer]", yn = "[object DataView]", bn = "[object Float32Array]", xn = "[object Float64Array]", Sn = "[object Int8Array]", Cn = "[object Int16Array]", wn = "[object Int32Array]", Tn = "[object Uint8Array]", En = "[object Uint8ClampedArray]", Dn = "[object Uint16Array]", On = "[object Uint32Array]", H = {};
1913
+ H[bn] = H[xn] = H[Sn] = H[Cn] = H[wn] = H[Tn] = H[En] = H[Dn] = H[On] = !0, H[an] = H[on] = H[vn] = H[sn] = H[yn] = H[cn] = H[ln] = H[un] = H[dn] = H[fn] = H[pn] = H[mn] = H[hn] = H[gn] = H[_n] = !1;
1914
+ function kn(e) {
1915
+ return F(e) && Ut(e.length) && !!H[P(e)];
1916
+ }
1917
+ //#endregion
1918
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
1919
+ function An(e) {
1920
+ return function(t) {
1921
+ return e(t);
1922
+ };
1923
+ }
1924
+ //#endregion
1925
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
1926
+ var jn = typeof exports == "object" && exports && !exports.nodeType && exports, U = jn && typeof module == "object" && module && !module.nodeType && module, Mn = U && U.exports === jn && Ke.process, W = function() {
1927
+ try {
1928
+ return U && U.require && U.require("util").types || Mn && Mn.binding && Mn.binding("util");
1929
+ } catch {}
1930
+ }(), Nn = W && W.isTypedArray, Pn = Nn ? An(Nn) : kn, Fn = Object.prototype.hasOwnProperty;
1931
+ function In(e, t) {
1932
+ var n = I(e), r = !n && $t(e), i = !n && !r && V(e), a = !n && !r && !i && Pn(e), o = n || r || i || a, s = o ? qt(e.length, String) : [], c = s.length;
1933
+ for (var l in e) (t || Fn.call(e, l)) && !(o && (l == "length" || i && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || Lt(l, c))) && s.push(l);
1934
+ return s;
1935
+ }
1936
+ //#endregion
1937
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
1938
+ function Ln(e, t) {
1939
+ return function(n) {
1940
+ return e(t(n));
1941
+ };
1942
+ }
1943
+ //#endregion
1944
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
1945
+ var Rn = Ln(Object.keys, Object), zn = Object.prototype.hasOwnProperty;
1946
+ function Bn(e) {
1947
+ if (!Kt(e)) return Rn(e);
1948
+ var t = [];
1949
+ for (var n in Object(e)) zn.call(e, n) && n != "constructor" && t.push(n);
1950
+ return t;
1951
+ }
1952
+ //#endregion
1953
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js
1954
+ function Vn(e) {
1955
+ return Wt(e) ? In(e) : Bn(e);
1956
+ }
1957
+ //#endregion
1958
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
1959
+ function Hn(e) {
1960
+ var t = [];
1961
+ if (e != null) for (var n in Object(e)) t.push(n);
1962
+ return t;
1963
+ }
1964
+ //#endregion
1965
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
1966
+ var Un = Object.prototype.hasOwnProperty;
1967
+ function Wn(e) {
1968
+ if (!L(e)) return Hn(e);
1969
+ var t = Kt(e), n = [];
1970
+ for (var r in e) r == "constructor" && (t || !Un.call(e, r)) || n.push(r);
1971
+ return n;
1972
+ }
1973
+ //#endregion
1974
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
1975
+ function Gn(e) {
1976
+ return Wt(e) ? In(e, !0) : Wn(e);
1977
+ }
1978
+ //#endregion
1979
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
1980
+ var Kn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, qn = /^\w*$/;
1981
+ function Jn(e, t) {
1982
+ if (I(e)) return !1;
1983
+ var n = typeof e;
1984
+ return n == "number" || n == "symbol" || n == "boolean" || e == null || it(e) ? !0 : qn.test(e) || !Kn.test(e) || t != null && e in Object(t);
1985
+ }
1986
+ //#endregion
1987
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
1988
+ var Yn = z(Object, "create");
1989
+ //#endregion
1990
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
1991
+ function Xn() {
1992
+ this.__data__ = Yn ? Yn(null) : {}, this.size = 0;
1993
+ }
1994
+ //#endregion
1995
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
1996
+ function Zn(e) {
1997
+ var t = this.has(e) && delete this.__data__[e];
1998
+ return this.size -= +!!t, t;
1999
+ }
2000
+ //#endregion
2001
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
2002
+ var Qn = "__lodash_hash_undefined__", $n = Object.prototype.hasOwnProperty;
2003
+ function er(e) {
2004
+ var t = this.__data__;
2005
+ if (Yn) {
2006
+ var n = t[e];
2007
+ return n === Qn ? void 0 : n;
2008
+ }
2009
+ return $n.call(t, e) ? t[e] : void 0;
2010
+ }
2011
+ //#endregion
2012
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
2013
+ var tr = Object.prototype.hasOwnProperty;
2014
+ function nr(e) {
2015
+ var t = this.__data__;
2016
+ return Yn ? t[e] !== void 0 : tr.call(t, e);
2017
+ }
2018
+ //#endregion
2019
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
2020
+ var rr = "__lodash_hash_undefined__";
2021
+ function ir(e, t) {
2022
+ var n = this.__data__;
2023
+ return this.size += +!this.has(e), n[e] = Yn && t === void 0 ? rr : t, this;
2024
+ }
2025
+ //#endregion
2026
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
2027
+ function G(e) {
2028
+ var t = -1, n = e == null ? 0 : e.length;
2029
+ for (this.clear(); ++t < n;) {
2030
+ var r = e[t];
2031
+ this.set(r[0], r[1]);
2032
+ }
2033
+ }
2034
+ G.prototype.clear = Xn, G.prototype.delete = Zn, G.prototype.get = er, G.prototype.has = nr, G.prototype.set = ir;
2035
+ //#endregion
2036
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
2037
+ function ar() {
2038
+ this.__data__ = [], this.size = 0;
2039
+ }
2040
+ //#endregion
2041
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
2042
+ function or(e, t) {
2043
+ for (var n = e.length; n--;) if (zt(e[n][0], t)) return n;
2044
+ return -1;
2045
+ }
2046
+ //#endregion
2047
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
2048
+ var sr = Array.prototype.splice;
2049
+ function cr(e) {
2050
+ var t = this.__data__, n = or(t, e);
2051
+ return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : sr.call(t, n, 1), --this.size, !0);
2052
+ }
2053
+ //#endregion
2054
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
2055
+ function lr(e) {
2056
+ var t = this.__data__, n = or(t, e);
2057
+ return n < 0 ? void 0 : t[n][1];
2058
+ }
2059
+ //#endregion
2060
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
2061
+ function ur(e) {
2062
+ return or(this.__data__, e) > -1;
2063
+ }
2064
+ //#endregion
2065
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
2066
+ function dr(e, t) {
2067
+ var n = this.__data__, r = or(n, e);
2068
+ return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
2069
+ }
2070
+ //#endregion
2071
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
2072
+ function K(e) {
2073
+ var t = -1, n = e == null ? 0 : e.length;
2074
+ for (this.clear(); ++t < n;) {
2075
+ var r = e[t];
2076
+ this.set(r[0], r[1]);
2077
+ }
2078
+ }
2079
+ K.prototype.clear = ar, K.prototype.delete = cr, K.prototype.get = lr, K.prototype.has = ur, K.prototype.set = dr;
2080
+ //#endregion
2081
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
2082
+ var fr = z(j, "Map");
2083
+ //#endregion
2084
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
2085
+ function pr() {
2086
+ this.size = 0, this.__data__ = {
2087
+ hash: new G(),
2088
+ map: new (fr || K)(),
2089
+ string: new G()
2090
+ };
2091
+ }
2092
+ //#endregion
2093
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
2094
+ function mr(e) {
2095
+ var t = typeof e;
2096
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
2097
+ }
2098
+ //#endregion
2099
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
2100
+ function hr(e, t) {
2101
+ var n = e.__data__;
2102
+ return mr(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
2103
+ }
2104
+ //#endregion
2105
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
2106
+ function gr(e) {
2107
+ var t = hr(this, e).delete(e);
2108
+ return this.size -= +!!t, t;
2109
+ }
2110
+ //#endregion
2111
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
2112
+ function _r(e) {
2113
+ return hr(this, e).get(e);
2114
+ }
2115
+ //#endregion
2116
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
2117
+ function vr(e) {
2118
+ return hr(this, e).has(e);
2119
+ }
2120
+ //#endregion
2121
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
2122
+ function yr(e, t) {
2123
+ var n = hr(this, e), r = n.size;
2124
+ return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
2125
+ }
2126
+ //#endregion
2127
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
2128
+ function q(e) {
2129
+ var t = -1, n = e == null ? 0 : e.length;
2130
+ for (this.clear(); ++t < n;) {
2131
+ var r = e[t];
2132
+ this.set(r[0], r[1]);
2133
+ }
2134
+ }
2135
+ q.prototype.clear = pr, q.prototype.delete = gr, q.prototype.get = _r, q.prototype.has = vr, q.prototype.set = yr;
2136
+ //#endregion
2137
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
2138
+ var br = "Expected a function";
2139
+ function xr(e, t) {
2140
+ if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(br);
2141
+ var n = function() {
2142
+ var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
2143
+ if (a.has(i)) return a.get(i);
2144
+ var o = e.apply(this, r);
2145
+ return n.cache = a.set(i, o) || a, o;
2146
+ };
2147
+ return n.cache = new (xr.Cache || q)(), n;
2148
+ }
2149
+ xr.Cache = q;
2150
+ //#endregion
2151
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
2152
+ var Sr = 500;
2153
+ function Cr(e) {
2154
+ var t = xr(e, function(e) {
2155
+ return n.size === Sr && n.clear(), e;
2156
+ }), n = t.cache;
2157
+ return t;
2158
+ }
2159
+ //#endregion
2160
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
2161
+ var wr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Tr = /\\(\\)?/g, Er = Cr(function(e) {
2162
+ var t = [];
2163
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(wr, function(e, n, r, i) {
2164
+ t.push(r ? i.replace(Tr, "$1") : n || e);
2165
+ }), t;
2166
+ });
2167
+ //#endregion
2168
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js
2169
+ function Dr(e) {
2170
+ return e == null ? "" : lt(e);
2171
+ }
2172
+ //#endregion
2173
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
2174
+ function Or(e, t) {
2175
+ return I(e) ? e : Jn(e, t) ? [e] : Er(Dr(e));
2176
+ }
2177
+ //#endregion
2178
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
2179
+ var kr = Infinity;
2180
+ function J(e) {
2181
+ if (typeof e == "string" || it(e)) return e;
2182
+ var t = e + "";
2183
+ return t == "0" && 1 / e == -kr ? "-0" : t;
2184
+ }
2185
+ //#endregion
2186
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
2187
+ function Ar(e, t) {
2188
+ t = Or(t, e);
2189
+ for (var n = 0, r = t.length; e != null && n < r;) e = e[J(t[n++])];
2190
+ return n && n == r ? e : void 0;
2191
+ }
2192
+ //#endregion
2193
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js
2194
+ function jr(e, t, n) {
2195
+ var r = e == null ? void 0 : Ar(e, t);
2196
+ return r === void 0 ? n : r;
2197
+ }
2198
+ //#endregion
2199
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js
2200
+ function Mr(e, t) {
2201
+ for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
2202
+ return e;
2203
+ }
2204
+ //#endregion
2205
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js
2206
+ var Nr = Ln(Object.getPrototypeOf, Object);
2207
+ //#endregion
2208
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.js
2209
+ function Pr(e, t, n) {
2210
+ var r = -1, i = e.length;
2211
+ t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
2212
+ for (var a = Array(i); ++r < i;) a[r] = e[r + t];
2213
+ return a;
2214
+ }
2215
+ //#endregion
2216
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
2217
+ function Fr() {
2218
+ this.__data__ = new K(), this.size = 0;
2219
+ }
2220
+ //#endregion
2221
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
2222
+ function Ir(e) {
2223
+ var t = this.__data__, n = t.delete(e);
2224
+ return this.size = t.size, n;
2225
+ }
2226
+ //#endregion
2227
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
2228
+ function Lr(e) {
2229
+ return this.__data__.get(e);
2230
+ }
2231
+ //#endregion
2232
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
2233
+ function Rr(e) {
2234
+ return this.__data__.has(e);
2235
+ }
2236
+ //#endregion
2237
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
2238
+ var zr = 200;
2239
+ function Br(e, t) {
2240
+ var n = this.__data__;
2241
+ if (n instanceof K) {
2242
+ var r = n.__data__;
2243
+ if (!fr || r.length < zr - 1) return r.push([e, t]), this.size = ++n.size, this;
2244
+ n = this.__data__ = new q(r);
2245
+ }
2246
+ return n.set(e, t), this.size = n.size, this;
2247
+ }
2248
+ //#endregion
2249
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
2250
+ function Y(e) {
2251
+ var t = this.__data__ = new K(e);
2252
+ this.size = t.size;
2253
+ }
2254
+ Y.prototype.clear = Fr, Y.prototype.delete = Ir, Y.prototype.get = Lr, Y.prototype.has = Rr, Y.prototype.set = Br;
2255
+ //#endregion
2256
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
2257
+ function Vr(e, t) {
2258
+ return e && B(t, Vn(t), e);
2259
+ }
2260
+ //#endregion
2261
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
2262
+ function Hr(e, t) {
2263
+ return e && B(t, Gn(t), e);
2264
+ }
2265
+ //#endregion
2266
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
2267
+ var Ur = typeof exports == "object" && exports && !exports.nodeType && exports, Wr = Ur && typeof module == "object" && module && !module.nodeType && module, Gr = Wr && Wr.exports === Ur ? j.Buffer : void 0, Kr = Gr ? Gr.allocUnsafe : void 0;
2268
+ function qr(e, t) {
2269
+ if (t) return e.slice();
2270
+ var n = e.length, r = Kr ? Kr(n) : new e.constructor(n);
2271
+ return e.copy(r), r;
2272
+ }
2273
+ //#endregion
2274
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
2275
+ function Jr(e, t) {
2276
+ for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
2277
+ var o = e[n];
2278
+ t(o, n, e) && (a[i++] = o);
2279
+ }
2280
+ return a;
2281
+ }
2282
+ //#endregion
2283
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
2284
+ function Yr() {
2285
+ return [];
2286
+ }
2287
+ //#endregion
2288
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
2289
+ var Xr = Object.prototype.propertyIsEnumerable, Zr = Object.getOwnPropertySymbols, Qr = Zr ? function(e) {
2290
+ return e == null ? [] : (e = Object(e), Jr(Zr(e), function(t) {
2291
+ return Xr.call(e, t);
2292
+ }));
2293
+ } : Yr;
2294
+ //#endregion
2295
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
2296
+ function $r(e, t) {
2297
+ return B(e, Qr(e), t);
2298
+ }
2299
+ //#endregion
2300
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
2301
+ var ei = Object.getOwnPropertySymbols ? function(e) {
2302
+ for (var t = []; e;) Mr(t, Qr(e)), e = Nr(e);
2303
+ return t;
2304
+ } : Yr;
2305
+ //#endregion
2306
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
2307
+ function ti(e, t) {
2308
+ return B(e, ei(e), t);
2309
+ }
2310
+ //#endregion
2311
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
2312
+ function ni(e, t, n) {
2313
+ var r = t(e);
2314
+ return I(e) ? r : Mr(r, n(e));
2315
+ }
2316
+ //#endregion
2317
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
2318
+ function ri(e) {
2319
+ return ni(e, Vn, Qr);
2320
+ }
2321
+ //#endregion
2322
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
2323
+ function ii(e) {
2324
+ return ni(e, Gn, ei);
2325
+ }
2326
+ //#endregion
2327
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
2328
+ var ai = z(j, "DataView"), oi = z(j, "Promise"), si = z(j, "Set"), ci = "[object Map]", li = "[object Object]", ui = "[object Promise]", di = "[object Set]", fi = "[object WeakMap]", pi = "[object DataView]", mi = R(ai), hi = R(fr), gi = R(oi), _i = R(si), vi = R(kt), X = P;
2329
+ (ai && X(new ai(/* @__PURE__ */ new ArrayBuffer(1))) != pi || fr && X(new fr()) != ci || oi && X(oi.resolve()) != ui || si && X(new si()) != di || kt && X(new kt()) != fi) && (X = function(e) {
2330
+ var t = P(e), n = t == li ? e.constructor : void 0, r = n ? R(n) : "";
2331
+ if (r) switch (r) {
2332
+ case mi: return pi;
2333
+ case hi: return ci;
2334
+ case gi: return ui;
2335
+ case _i: return di;
2336
+ case vi: return fi;
2337
+ }
2338
+ return t;
2339
+ });
2340
+ var Z = X, yi = Object.prototype.hasOwnProperty;
2341
+ function bi(e) {
2342
+ var t = e.length, n = new e.constructor(t);
2343
+ return t && typeof e[0] == "string" && yi.call(e, "index") && (n.index = e.index, n.input = e.input), n;
2344
+ }
2345
+ //#endregion
2346
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
2347
+ var xi = j.Uint8Array;
2348
+ //#endregion
2349
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
2350
+ function Si(e) {
2351
+ var t = new e.constructor(e.byteLength);
2352
+ return new xi(t).set(new xi(e)), t;
2353
+ }
2354
+ //#endregion
2355
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
2356
+ function Ci(e, t) {
2357
+ var n = t ? Si(e.buffer) : e.buffer;
2358
+ return new e.constructor(n, e.byteOffset, e.byteLength);
2359
+ }
2360
+ //#endregion
2361
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
2362
+ var wi = /\w*$/;
2363
+ function Ti(e) {
2364
+ var t = new e.constructor(e.source, wi.exec(e));
2365
+ return t.lastIndex = e.lastIndex, t;
2366
+ }
2367
+ //#endregion
2368
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
2369
+ var Ei = M ? M.prototype : void 0, Di = Ei ? Ei.valueOf : void 0;
2370
+ function Oi(e) {
2371
+ return Di ? Object(Di.call(e)) : {};
2372
+ }
2373
+ //#endregion
2374
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
2375
+ function ki(e, t) {
2376
+ var n = t ? Si(e.buffer) : e.buffer;
2377
+ return new e.constructor(n, e.byteOffset, e.length);
2378
+ }
2379
+ //#endregion
2380
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
2381
+ var Ai = "[object Boolean]", ji = "[object Date]", Mi = "[object Map]", Ni = "[object Number]", Pi = "[object RegExp]", Fi = "[object Set]", Ii = "[object String]", Li = "[object Symbol]", Ri = "[object ArrayBuffer]", zi = "[object DataView]", Bi = "[object Float32Array]", Vi = "[object Float64Array]", Hi = "[object Int8Array]", Ui = "[object Int16Array]", Wi = "[object Int32Array]", Gi = "[object Uint8Array]", Ki = "[object Uint8ClampedArray]", qi = "[object Uint16Array]", Ji = "[object Uint32Array]";
2382
+ function Yi(e, t, n) {
2383
+ var r = e.constructor;
2384
+ switch (t) {
2385
+ case Ri: return Si(e);
2386
+ case Ai:
2387
+ case ji: return new r(+e);
2388
+ case zi: return Ci(e, n);
2389
+ case Bi:
2390
+ case Vi:
2391
+ case Hi:
2392
+ case Ui:
2393
+ case Wi:
2394
+ case Gi:
2395
+ case Ki:
2396
+ case qi:
2397
+ case Ji: return ki(e, n);
2398
+ case Mi: return new r();
2399
+ case Ni:
2400
+ case Ii: return new r(e);
2401
+ case Pi: return Ti(e);
2402
+ case Fi: return new r();
2403
+ case Li: return Oi(e);
2404
+ }
2405
+ }
2406
+ //#endregion
2407
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
2408
+ function Xi(e) {
2409
+ return typeof e.constructor == "function" && !Kt(e) ? jt(Nr(e)) : {};
2410
+ }
2411
+ //#endregion
2412
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
2413
+ var Zi = "[object Map]";
2414
+ function Qi(e) {
2415
+ return F(e) && Z(e) == Zi;
2416
+ }
2417
+ //#endregion
2418
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
2419
+ var $i = W && W.isMap, ea = $i ? An($i) : Qi, ta = "[object Set]";
2420
+ function na(e) {
2421
+ return F(e) && Z(e) == ta;
2422
+ }
2423
+ //#endregion
2424
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
2425
+ var ra = W && W.isSet, ia = ra ? An(ra) : na, aa = 1, oa = 2, sa = 4, ca = "[object Arguments]", la = "[object Array]", ua = "[object Boolean]", da = "[object Date]", fa = "[object Error]", pa = "[object Function]", ma = "[object GeneratorFunction]", ha = "[object Map]", ga = "[object Number]", _a = "[object Object]", va = "[object RegExp]", ya = "[object Set]", ba = "[object String]", xa = "[object Symbol]", Sa = "[object WeakMap]", Ca = "[object ArrayBuffer]", wa = "[object DataView]", Ta = "[object Float32Array]", Ea = "[object Float64Array]", Da = "[object Int8Array]", Oa = "[object Int16Array]", ka = "[object Int32Array]", Aa = "[object Uint8Array]", ja = "[object Uint8ClampedArray]", Ma = "[object Uint16Array]", Na = "[object Uint32Array]", Q = {};
2426
+ Q[ca] = Q[la] = Q[Ca] = Q[wa] = Q[ua] = Q[da] = Q[Ta] = Q[Ea] = Q[Da] = Q[Oa] = Q[ka] = Q[ha] = Q[ga] = Q[_a] = Q[va] = Q[ya] = Q[ba] = Q[xa] = Q[Aa] = Q[ja] = Q[Ma] = Q[Na] = !0, Q[fa] = Q[pa] = Q[Sa] = !1;
2427
+ function Pa(e, t, n, r, i, a) {
2428
+ var o, s = t & aa, c = t & oa, l = t & sa;
2429
+ if (n && (o = i ? n(e, r, i, a) : n(e)), o !== void 0) return o;
2430
+ if (!L(e)) return e;
2431
+ var u = I(e);
2432
+ if (u) {
2433
+ if (o = bi(e), !s) return Mt(e, o);
2434
+ } else {
2435
+ var d = Z(e), f = d == pa || d == ma;
2436
+ if (V(e)) return qr(e, s);
2437
+ if (d == _a || d == ca || f && !i) {
2438
+ if (o = c || f ? {} : Xi(e), !s) return c ? ti(e, Hr(o, e)) : $r(e, Vr(o, e));
2439
+ } else {
2440
+ if (!Q[d]) return i ? e : {};
2441
+ o = Yi(e, d, s);
2442
+ }
2443
+ }
2444
+ a ||= new Y();
2445
+ var p = a.get(e);
2446
+ if (p) return p;
2447
+ a.set(e, o), ia(e) ? e.forEach(function(r) {
2448
+ o.add(Pa(r, t, n, r, e, a));
2449
+ }) : ea(e) && e.forEach(function(r, i) {
2450
+ o.set(i, Pa(r, t, n, i, e, a));
2451
+ });
2452
+ var m = u ? void 0 : (l ? c ? ii : ri : c ? Gn : Vn)(e);
2453
+ return Pt(m || e, function(r, i) {
2454
+ m && (i = r, r = e[i]), Vt(o, i, Pa(r, t, n, i, e, a));
2455
+ }), o;
2456
+ }
2457
+ //#endregion
2458
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/clone.js
2459
+ var Fa = 4;
2460
+ function Ia(e) {
2461
+ return Pa(e, Fa);
2462
+ }
2463
+ //#endregion
2464
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js
2465
+ var La = "__lodash_hash_undefined__";
2466
+ function Ra(e) {
2467
+ return this.__data__.set(e, La), this;
2468
+ }
2469
+ //#endregion
2470
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
2471
+ function za(e) {
2472
+ return this.__data__.has(e);
2473
+ }
2474
+ //#endregion
2475
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
2476
+ function Ba(e) {
2477
+ var t = -1, n = e == null ? 0 : e.length;
2478
+ for (this.__data__ = new q(); ++t < n;) this.add(e[t]);
2479
+ }
2480
+ Ba.prototype.add = Ba.prototype.push = Ra, Ba.prototype.has = za;
2481
+ //#endregion
2482
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js
2483
+ function Va(e, t) {
2484
+ for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
2485
+ return !1;
2486
+ }
2487
+ //#endregion
2488
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
2489
+ function Ha(e, t) {
2490
+ return e.has(t);
2491
+ }
2492
+ //#endregion
2493
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js
2494
+ var Ua = 1, Wa = 2;
2495
+ function Ga(e, t, n, r, i, a) {
2496
+ var o = n & Ua, s = e.length, c = t.length;
2497
+ if (s != c && !(o && c > s)) return !1;
2498
+ var l = a.get(e), u = a.get(t);
2499
+ if (l && u) return l == t && u == e;
2500
+ var d = -1, f = !0, p = n & Wa ? new Ba() : void 0;
2501
+ for (a.set(e, t), a.set(t, e); ++d < s;) {
2502
+ var m = e[d], h = t[d];
2503
+ if (r) var g = o ? r(h, m, d, t, e, a) : r(m, h, d, e, t, a);
2504
+ if (g !== void 0) {
2505
+ if (g) continue;
2506
+ f = !1;
2507
+ break;
2508
+ }
2509
+ if (p) {
2510
+ if (!Va(t, function(e, t) {
2511
+ if (!Ha(p, t) && (m === e || i(m, e, n, r, a))) return p.push(t);
2512
+ })) {
2513
+ f = !1;
2514
+ break;
2515
+ }
2516
+ } else if (!(m === h || i(m, h, n, r, a))) {
2517
+ f = !1;
2518
+ break;
2519
+ }
2520
+ }
2521
+ return a.delete(e), a.delete(t), f;
2522
+ }
2523
+ //#endregion
2524
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js
2525
+ function Ka(e) {
2526
+ var t = -1, n = Array(e.size);
2527
+ return e.forEach(function(e, r) {
2528
+ n[++t] = [r, e];
2529
+ }), n;
2530
+ }
2531
+ //#endregion
2532
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
2533
+ function qa(e) {
2534
+ var t = -1, n = Array(e.size);
2535
+ return e.forEach(function(e) {
2536
+ n[++t] = e;
2537
+ }), n;
2538
+ }
2539
+ //#endregion
2540
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js
2541
+ var Ja = 1, Ya = 2, Xa = "[object Boolean]", Za = "[object Date]", Qa = "[object Error]", $a = "[object Map]", eo = "[object Number]", to = "[object RegExp]", no = "[object Set]", ro = "[object String]", io = "[object Symbol]", ao = "[object ArrayBuffer]", oo = "[object DataView]", so = M ? M.prototype : void 0, co = so ? so.valueOf : void 0;
2542
+ function lo(e, t, n, r, i, a, o) {
2543
+ switch (n) {
2544
+ case oo:
2545
+ if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
2546
+ e = e.buffer, t = t.buffer;
2547
+ case ao: return !(e.byteLength != t.byteLength || !a(new xi(e), new xi(t)));
2548
+ case Xa:
2549
+ case Za:
2550
+ case eo: return zt(+e, +t);
2551
+ case Qa: return e.name == t.name && e.message == t.message;
2552
+ case to:
2553
+ case ro: return e == t + "";
2554
+ case $a: var s = Ka;
2555
+ case no:
2556
+ var c = r & Ja;
2557
+ if (s ||= qa, e.size != t.size && !c) return !1;
2558
+ var l = o.get(e);
2559
+ if (l) return l == t;
2560
+ r |= Ya, o.set(e, t);
2561
+ var u = Ga(s(e), s(t), r, i, a, o);
2562
+ return o.delete(e), u;
2563
+ case io: if (co) return co.call(e) == co.call(t);
2564
+ }
2565
+ return !1;
2566
+ }
2567
+ //#endregion
2568
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js
2569
+ var uo = 1, fo = Object.prototype.hasOwnProperty;
2570
+ function po(e, t, n, r, i, a) {
2571
+ var o = n & uo, s = ri(e), c = s.length;
2572
+ if (c != ri(t).length && !o) return !1;
2573
+ for (var l = c; l--;) {
2574
+ var u = s[l];
2575
+ if (!(o ? u in t : fo.call(t, u))) return !1;
2576
+ }
2577
+ var d = a.get(e), f = a.get(t);
2578
+ if (d && f) return d == t && f == e;
2579
+ var p = !0;
2580
+ a.set(e, t), a.set(t, e);
2581
+ for (var m = o; ++l < c;) {
2582
+ u = s[l];
2583
+ var h = e[u], g = t[u];
2584
+ if (r) var _ = o ? r(g, h, u, t, e, a) : r(h, g, u, e, t, a);
2585
+ if (!(_ === void 0 ? h === g || i(h, g, n, r, a) : _)) {
2586
+ p = !1;
2587
+ break;
2588
+ }
2589
+ m ||= u == "constructor";
2590
+ }
2591
+ if (p && !m) {
2592
+ var v = e.constructor, y = t.constructor;
2593
+ v != y && "constructor" in e && "constructor" in t && !(typeof v == "function" && v instanceof v && typeof y == "function" && y instanceof y) && (p = !1);
2594
+ }
2595
+ return a.delete(e), a.delete(t), p;
2596
+ }
2597
+ //#endregion
2598
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js
2599
+ var mo = 1, ho = "[object Arguments]", go = "[object Array]", _o = "[object Object]", vo = Object.prototype.hasOwnProperty;
2600
+ function yo(e, t, n, r, i, a) {
2601
+ var o = I(e), s = I(t), c = o ? go : Z(e), l = s ? go : Z(t);
2602
+ c = c == ho ? _o : c, l = l == ho ? _o : l;
2603
+ var u = c == _o, d = l == _o, f = c == l;
2604
+ if (f && V(e)) {
2605
+ if (!V(t)) return !1;
2606
+ o = !0, u = !1;
2607
+ }
2608
+ if (f && !u) return a ||= new Y(), o || Pn(e) ? Ga(e, t, n, r, i, a) : lo(e, t, c, n, r, i, a);
2609
+ if (!(n & mo)) {
2610
+ var p = u && vo.call(e, "__wrapped__"), m = d && vo.call(t, "__wrapped__");
2611
+ if (p || m) {
2612
+ var h = p ? e.value() : e, g = m ? t.value() : t;
2613
+ return a ||= new Y(), i(h, g, n, r, a);
2614
+ }
2615
+ }
2616
+ return f ? (a ||= new Y(), po(e, t, n, r, i, a)) : !1;
2617
+ }
2618
+ //#endregion
2619
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js
2620
+ function bo(e, t, n, r, i) {
2621
+ return e === t ? !0 : e == null || t == null || !F(e) && !F(t) ? e !== e && t !== t : yo(e, t, n, r, bo, i);
2622
+ }
2623
+ //#endregion
2624
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js
2625
+ var xo = 1, So = 2;
2626
+ function Co(e, t, n, r) {
2627
+ var i = n.length, a = i, o = !r;
2628
+ if (e == null) return !a;
2629
+ for (e = Object(e); i--;) {
2630
+ var s = n[i];
2631
+ if (o && s[2] ? s[1] !== e[s[0]] : !(s[0] in e)) return !1;
2632
+ }
2633
+ for (; ++i < a;) {
2634
+ s = n[i];
2635
+ var c = s[0], l = e[c], u = s[1];
2636
+ if (o && s[2]) {
2637
+ if (l === void 0 && !(c in e)) return !1;
2638
+ } else {
2639
+ var d = new Y();
2640
+ if (r) var f = r(l, u, c, e, t, d);
2641
+ if (!(f === void 0 ? bo(u, l, xo | So, r, d) : f)) return !1;
2642
+ }
2643
+ }
2644
+ return !0;
2645
+ }
2646
+ //#endregion
2647
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js
2648
+ function wo(e) {
2649
+ return e === e && !L(e);
2650
+ }
2651
+ //#endregion
2652
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js
2653
+ function To(e) {
2654
+ for (var t = Vn(e), n = t.length; n--;) {
2655
+ var r = t[n], i = e[r];
2656
+ t[n] = [
2657
+ r,
2658
+ i,
2659
+ wo(i)
2660
+ ];
2661
+ }
2662
+ return t;
2663
+ }
2664
+ //#endregion
2665
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js
2666
+ function Eo(e, t) {
2667
+ return function(n) {
2668
+ return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
2669
+ };
2670
+ }
2671
+ //#endregion
2672
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js
2673
+ function Do(e) {
2674
+ var t = To(e);
2675
+ return t.length == 1 && t[0][2] ? Eo(t[0][0], t[0][1]) : function(n) {
2676
+ return n === e || Co(n, e, t);
2677
+ };
2678
+ }
2679
+ //#endregion
2680
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js
2681
+ function Oo(e, t) {
2682
+ return e != null && t in Object(e);
2683
+ }
2684
+ //#endregion
2685
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js
2686
+ function ko(e, t, n) {
2687
+ t = Or(t, e);
2688
+ for (var r = -1, i = t.length, a = !1; ++r < i;) {
2689
+ var o = J(t[r]);
2690
+ if (!(a = e != null && n(e, o))) break;
2691
+ e = e[o];
2692
+ }
2693
+ return a || ++r != i ? a : (i = e == null ? 0 : e.length, !!i && Ut(i) && Lt(o, i) && (I(e) || $t(e)));
2694
+ }
2695
+ //#endregion
2696
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js
2697
+ function Ao(e, t) {
2698
+ return e != null && ko(e, t, Oo);
2699
+ }
2700
+ //#endregion
2701
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js
2702
+ var jo = 1, Mo = 2;
2703
+ function No(e, t) {
2704
+ return Jn(e) && wo(t) ? Eo(J(e), t) : function(n) {
2705
+ var r = jr(n, e);
2706
+ return r === void 0 && r === t ? Ao(n, e) : bo(t, r, jo | Mo);
2707
+ };
2708
+ }
2709
+ //#endregion
2710
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js
2711
+ function Po(e) {
2712
+ return function(t) {
2713
+ return t?.[e];
2714
+ };
2715
+ }
2716
+ //#endregion
2717
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js
2718
+ function Fo(e) {
2719
+ return function(t) {
2720
+ return Ar(t, e);
2721
+ };
2722
+ }
2723
+ //#endregion
2724
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js
2725
+ function Io(e) {
2726
+ return Jn(e) ? Po(J(e)) : Fo(e);
2727
+ }
2728
+ //#endregion
2729
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js
2730
+ function Lo(e) {
2731
+ return typeof e == "function" ? e : e == null ? ut : typeof e == "object" ? I(e) ? No(e[0], e[1]) : Do(e) : Io(e);
2732
+ }
2733
+ //#endregion
2734
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js
2735
+ function Ro(e) {
2736
+ var t = e == null ? 0 : e.length;
2737
+ return t ? e[t - 1] : void 0;
2738
+ }
2739
+ //#endregion
2740
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_parent.js
2741
+ function zo(e, t) {
2742
+ return t.length < 2 ? e : Ar(e, Pr(t, 0, -1));
2743
+ }
2744
+ //#endregion
2745
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js
2746
+ var Bo = "[object Map]", Vo = "[object Set]", Ho = Object.prototype.hasOwnProperty;
2747
+ function Uo(e) {
2748
+ if (e == null) return !0;
2749
+ if (Wt(e) && (I(e) || typeof e == "string" || typeof e.splice == "function" || V(e) || Pn(e) || $t(e))) return !e.length;
2750
+ var t = Z(e);
2751
+ if (t == Bo || t == Vo) return !e.size;
2752
+ if (Kt(e)) return !Bn(e).length;
2753
+ for (var n in e) if (Ho.call(e, n)) return !1;
2754
+ return !0;
2755
+ }
2756
+ //#endregion
2757
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnset.js
2758
+ var Wo = Object.prototype.hasOwnProperty;
2759
+ function Go(e, t) {
2760
+ t = Or(t, e);
2761
+ var n = -1, r = t.length;
2762
+ if (!r) return !0;
2763
+ for (; ++n < r;) {
2764
+ var i = J(t[n]);
2765
+ if (i === "__proto__" && !Wo.call(e, "__proto__") || (i === "constructor" || i === "prototype") && n < r - 1) return !1;
2766
+ }
2767
+ var a = zo(e, t);
2768
+ return a == null || delete a[J(Ro(t))];
2769
+ }
2770
+ //#endregion
2771
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePullAt.js
2772
+ var Ko = Array.prototype.splice;
2773
+ function qo(e, t) {
2774
+ for (var n = e ? t.length : 0, r = n - 1; n--;) {
2775
+ var i = t[n];
2776
+ if (n == r || i !== a) {
2777
+ var a = i;
2778
+ Lt(i) ? Ko.call(e, i, 1) : Go(e, i);
2779
+ }
2780
+ }
2781
+ return e;
2782
+ }
2783
+ //#endregion
2784
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/remove.js
2785
+ function Jo(e, t) {
2786
+ var n = [];
2787
+ if (!(e && e.length)) return n;
2788
+ var r = -1, i = [], a = e.length;
2789
+ for (t = Lo(t, 3); ++r < a;) {
2790
+ var o = e[r];
2791
+ t(o, r, e) && (n.push(o), i.push(r));
2792
+ }
2793
+ return qo(e, i), n;
2794
+ }
2795
+ //#endregion
2796
+ //#region ../../lib-react/categorize/dist/index.js
2797
+ var $ = (0, He.default)("@pie-lib:categorize"), Yo = (e, t, n) => (t ||= [], t.reduce((t, r) => {
2798
+ let i = Xo(e, r, n - t.count);
2799
+ return t.out.push(i.array), t.count += i.count || 0, t;
2800
+ }, {
2801
+ out: [],
2802
+ count: 0
2803
+ }).out), Xo = (e, t, n) => {
2804
+ if (t ||= [], n === 0) {
2805
+ let n = t.filter((t) => t !== e);
2806
+ return {
2807
+ array: n,
2808
+ count: t.length - n.length
2809
+ };
2810
+ } else {
2811
+ let r = t.reduce((t, r) => (r === e ? t.count < n && (t.count += 1, t.out.push(r)) : t.out.push(r), t), {
2812
+ out: [],
2813
+ count: 0
2814
+ });
2815
+ return {
2816
+ array: r.out,
2817
+ count: r.count
2818
+ };
2819
+ }
2820
+ }, Zo = (e, t) => (t ||= [], t.reduce((e, t) => {
2821
+ if ($("choice: ----> ", t.id, "categoryCount: ", t.categoryCount), t.categoryCount === void 0 || t.categoryCount === 0) return e;
2822
+ {
2823
+ let n = e.map((e) => e.choices);
2824
+ return Yo(t.id, n, t.categoryCount).map((t, n) => ({
2825
+ category: e[n].category,
2826
+ alternateResponses: e[n].alternateResponses,
2827
+ choices: t
2828
+ }));
2829
+ }
2830
+ }, e)), Qo = (e, t) => (t ||= [], t.reduce((e, t) => {
2831
+ if ($("choice: ----> ", t.id, "categoryCount: ", t.categoryCount), t.categoryCount === void 0 || t.categoryCount === 0) return e;
2832
+ {
2833
+ let n = {};
2834
+ e.forEach((e) => (e.alternateResponses || []).forEach((e, t) => {
2835
+ t in n || (n[t] = []), n[t].push(e);
2836
+ }));
2837
+ let r = [];
2838
+ return Object.keys(n).forEach((e) => {
2839
+ n[e] = Yo(t.id, n[e], t.categoryCount), n[e].forEach((e, t) => {
2840
+ r[t] || (r[t] = []), r[t].push(e);
2841
+ });
2842
+ }), e.map((e, t) => ({
2843
+ category: e.category,
2844
+ alternateResponses: r[t] || e.alternateResponses,
2845
+ choices: e.choices
2846
+ }));
2847
+ }
2848
+ }, e)), $o = (e, t) => {
2849
+ let n = t.reduce((t, n) => t + es(e, n.choices), 0);
2850
+ return $("[countInAnswer] choiceId:", e, t), n;
2851
+ }, es = (e, t) => (t || []).filter((t) => t === e).length, ts = (e, t) => !e || !e.id || !Array.isArray(t) ? 0 : t.reduce((t, n) => t + (n.choices || []).filter((t) => t && t.id === e.id).length, 0), ns = (e, t) => t.filter((t) => t.category !== e), rs = (e, t, n) => t.map((t) => {
2852
+ if (!n || t.category === n) {
2853
+ let n = Ia(t.choices);
2854
+ return Jo(n, (t) => t === e), {
2855
+ ...t,
2856
+ choices: n
2857
+ };
2858
+ } else return t;
2859
+ }), is = (e, t, n) => n.map((n) => n.category === t ? (n.choices = n.choices.reduce((t, n) => (n.id === e.id ? t.findIndex((t) => t.id === e.id) === -1 && t.push(n) : t.push(n), t), []), n) : (n.choices = (n.choices || []).filter((t) => t !== e.id), n)), as = (e, t, n, r) => ($("[removeChoiceFromCategory] choiceIndex:", n), r.map((r) => {
2860
+ if (r.category === t) {
2861
+ let t = Ia(r.choices), i = t.findIndex((t, r) => t === e && r >= n);
2862
+ return i !== -1 && t.splice(i, 1), {
2863
+ ...r,
2864
+ choices: t
2865
+ };
2866
+ } else return r;
2867
+ })), os = (e, t, n, r, i) => (i || []).map((e) => {
2868
+ if (e?.category === t) {
2869
+ let t = (e?.alternateResponses || []).map((e, t) => (t === r && (e || []).splice(n, 1), e));
2870
+ return {
2871
+ ...e,
2872
+ alternateResponses: t
2873
+ };
2874
+ }
2875
+ return e;
2876
+ }), ss = (e, t, n, r, i) => ($("[moveChoiceToCategory] choice: ", e, "from: ", t, "to: ", n, "answers: ", i), t === n ? i : (t && (i = as(e, t, r, i)), i.findIndex((e) => e.category === n) === -1 ? (i.push({
2877
+ category: n,
2878
+ choices: [e]
2879
+ }), i) : i.map((t) => t.category === n ? (t.choices = t.choices || [], t.choices.push(e), t) : t))), cs = (e, t, n, r, i, a, o) => ($("[moveChoiceToAlternate] choice: ", e, "from: ", t, "to: ", n, "answers: ", i, "chocieIndex: ", r), t === n ? i : i.map((r) => (r.category === n && (o !== 0 && r.alternateResponses && (r.alternateResponses[a] = (r.alternateResponses[a] || []).filter((t) => t !== e)), r.alternateResponses || (r.alternateResponses = [], r.alternateResponses[a] = []), r.alternateResponses[a].push(e)), r.category === t && o !== 0 && r.alternateResponses && r.alternateResponses[a] && (r.alternateResponses[a] = r.alternateResponses[a].filter((t) => t !== e)), r))), ls = (e, t) => e.categoryCount > 0 ? ts(e, t) < e.categoryCount : !0, us = (e, t) => t.reduce((e, t) => {
2880
+ let n = e.copyOfPossibleResponse.findIndex((e) => t && e === t.id);
2881
+ return n >= 0 ? (e.builtChoices.push({
2882
+ ...t,
2883
+ correct: !0
2884
+ }), e.copyOfPossibleResponse = [...e.copyOfPossibleResponse.slice(0, n), ...e.copyOfPossibleResponse.slice(n + 1)]) : (e.builtChoices.push({
2885
+ ...t,
2886
+ correct: !1
2887
+ }), e.allChoicesAreCorrect = !1), e;
2888
+ }, {
2889
+ builtChoices: [],
2890
+ copyOfPossibleResponse: [...e],
2891
+ allChoicesAreCorrect: !0
2892
+ }), ds = (e, t) => t.reduce((t, n) => {
2893
+ let r = e[n.id] || [], i = n.choices || [], { builtChoices: a, allChoicesAreCorrect: o } = us(r, i), s = i.length === r.length;
2894
+ return t.builtCategories.push({
2895
+ ...n,
2896
+ correct: o && s,
2897
+ choices: a
2898
+ }), t.correct = t.correct && o && s, t;
2899
+ }, {
2900
+ builtCategories: [],
2901
+ correct: !0
2902
+ }), fs = (e) => e ? e.reduce((e, t) => (e[0] ? e[0][t.category] = t.choices : e.push({ [t.category]: t.choices }), t.alternateResponses && t.alternateResponses.forEach((n, r) => {
2903
+ e[r + 1] ? e[r + 1][t.category] = n : e.push({ [t.category]: n });
2904
+ }), e), []) : [], ps = (e, t, n) => (e ||= [], n ||= [], t ||= [], e.map((e) => {
2905
+ let { choices: r = [] } = n.find((t) => t.category === e.id) || {};
2906
+ return {
2907
+ ...e,
2908
+ choices: r.map((e) => t.find((t) => t.id === e))
2909
+ };
2910
+ })), ms = (e, t, n, r) => {
2911
+ e ||= [], t ||= [], n ||= [];
2912
+ let i = fs(r) || [], a = ps(e, t, n), o, s;
2913
+ if (i.length) {
2914
+ let e = i.reduce((e, t) => {
2915
+ let { builtCategories: n, correct: r } = ds(t, a);
2916
+ return e.bestResponse === null || !e.entirelyCorrect && r ? {
2917
+ bestResponse: t,
2918
+ builtCategories: n,
2919
+ entirelyCorrect: r
2920
+ } : e;
2921
+ }, {
2922
+ bestResponse: null,
2923
+ builtCategories: [],
2924
+ entirelyCorrect: !1
2925
+ });
2926
+ a = e.builtCategories, o = e.bestResponse, s = e.entirelyCorrect;
2927
+ }
2928
+ return {
2929
+ choices: t.map((e) => ls(e, a) ? e : { empty: !0 }),
2930
+ categories: a,
2931
+ correct: s,
2932
+ bestResponse: o
2933
+ };
2934
+ };
2935
+ //#endregion
2936
+ export { Ve as $, Pn as A, Nt as B, Nr as C, Or as D, J as E, B as F, I as G, ht as H, Vt as I, F as J, at as K, zt as L, $t as M, qt as N, Gn as O, Wt as P, Ge as Q, Rt as R, Y as S, jr as T, ut as U, Mt as V, L as W, M as X, P as Y, j as Z, Xi as _, rs as a, Jr as b, Qo as c, os as d, p as et, Go as f, Pa as g, bo as h, $o as i, l as it, V as j, Vn as k, as as l, Po as m, is as n, s as nt, Zo as o, Uo as p, it as q, ss as r, u as rt, ns as s, ms as t, o as tt, cs as u, ki as v, Mr as w, qr as x, ii as y, Lt as z };
2937
+
2938
+ //# sourceMappingURL=dist-BsrA0RFp.js.map