@adyen/bento-vue3 1.72.0 → 1.74.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 (333) hide show
  1. package/dist/@types/components.d.ts +2 -10
  2. package/dist/@types/index.d.ts +1543 -1703
  3. package/dist/@types/use-form-v4.d.ts +1 -1
  4. package/dist/accordion.js +1 -1
  5. package/dist/action-bar.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/avatar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/calendar.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/country.css +1 -1
  16. package/dist/assets/currency.css +1 -1
  17. package/dist/assets/data-grid-template.css +1 -1
  18. package/dist/assets/data-grid.css +1 -1
  19. package/dist/assets/date-picker.css +1 -1
  20. package/dist/assets/date-range-picker.css +1 -1
  21. package/dist/assets/dialog-page.css +1 -1
  22. package/dist/assets/dropdown-default-textbox.css +1 -1
  23. package/dist/assets/dropdown-tag.css +1 -1
  24. package/dist/assets/dropdown.css +1 -1
  25. package/dist/assets/file-uploader.css +1 -1
  26. package/dist/assets/filter-bar.css +1 -1
  27. package/dist/assets/form-layout-title.css +1 -1
  28. package/dist/assets/header-meta.css +1 -1
  29. package/dist/assets/header-with-views.css +1 -1
  30. package/dist/assets/input-field-password.css +1 -1
  31. package/dist/assets/input-field-phone-number.css +1 -1
  32. package/dist/assets/input-field.css +1 -1
  33. package/dist/assets/inspector.css +1 -1
  34. package/dist/assets/listbox-option-tag.css +1 -1
  35. package/dist/assets/loading-indicator.css +1 -1
  36. package/dist/assets/modal-fullscreen.css +1 -1
  37. package/dist/assets/pagination.css +1 -1
  38. package/dist/assets/popper-container.css +1 -1
  39. package/dist/assets/radio-group.css +1 -1
  40. package/dist/assets/radio-input.css +1 -1
  41. package/dist/assets/secondary-nav.css +1 -1
  42. package/dist/assets/segmented-control.css +1 -1
  43. package/dist/assets/selection-card-group.css +1 -1
  44. package/dist/assets/sidepanel.css +1 -1
  45. package/dist/assets/step.css +1 -1
  46. package/dist/assets/tab.css +1 -1
  47. package/dist/assets/textarea.css +1 -1
  48. package/dist/assets/timeline-item.css +1 -1
  49. package/dist/assets/toggle.css +1 -1
  50. package/dist/assets/tooltip.css +1 -1
  51. package/dist/assets/tutorial.css +1 -1
  52. package/dist/assets/use-cached-selected-values.css +1 -1
  53. package/dist/avatar.js +1 -1
  54. package/dist/button.js +3 -3
  55. package/dist/card.js +1 -1
  56. package/dist/checkbox.js +2 -2
  57. package/dist/chip.js +1 -1
  58. package/dist/chunks/{accordion-item.6etqAJV9.js → accordion-item.Bd3v6erb.js} +2 -2
  59. package/dist/chunks/{accordion-item.6etqAJV9.js.map → accordion-item.Bd3v6erb.js.map} +1 -1
  60. package/dist/chunks/{action-bar.DDLTN9TB.js → action-bar.BZ04Y7Yi.js} +5 -5
  61. package/dist/chunks/{action-bar.DDLTN9TB.js.map → action-bar.BZ04Y7Yi.js.map} +1 -1
  62. package/dist/chunks/{ai-button.DsNrcgpK.js → ai-button.DaRuea3x.js} +2 -2
  63. package/dist/chunks/{ai-button.DsNrcgpK.js.map → ai-button.DaRuea3x.js.map} +1 -1
  64. package/dist/chunks/{alert.Dzx5MzgE.js → alert.C2pusd-_.js} +3 -3
  65. package/dist/chunks/{alert.Dzx5MzgE.js.map → alert.C2pusd-_.js.map} +1 -1
  66. package/dist/chunks/{avatar.Dq59yj6m.js → avatar.P2Fkz2I6.js} +27 -26
  67. package/dist/chunks/avatar.P2Fkz2I6.js.map +1 -0
  68. package/dist/chunks/{base-modal.Djw4pVal.js → base-modal.UA93s_8c.js} +7 -7
  69. package/dist/chunks/base-modal.UA93s_8c.js.map +1 -0
  70. package/dist/chunks/{button-actions-with-menu.DaKPEgPd.js → button-actions-with-menu.BeQ-j1bv.js} +2 -2
  71. package/dist/chunks/{button-actions-with-menu.DaKPEgPd.js.map → button-actions-with-menu.BeQ-j1bv.js.map} +1 -1
  72. package/dist/chunks/{button-actions.D1eBtYgZ.js → button-actions.BQ3AFQqt.js} +13 -16
  73. package/dist/chunks/button-actions.BQ3AFQqt.js.map +1 -0
  74. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  75. package/dist/chunks/{button.C-MAa6ut.js → button.DhcxX2GJ.js} +2 -2
  76. package/dist/chunks/button.DhcxX2GJ.js.map +1 -0
  77. package/dist/chunks/{calendar.B1a_mV-Q.js → calendar.Cqjyxc69.js} +314 -310
  78. package/dist/chunks/calendar.Cqjyxc69.js.map +1 -0
  79. package/dist/chunks/{card.B9lWURmF.js → card.GxkxfBoV.js} +23 -23
  80. package/dist/chunks/card.GxkxfBoV.js.map +1 -0
  81. package/dist/chunks/{checkbox-group.CcgOK4yt.js → checkbox-group.8ebmaHsA.js} +4 -4
  82. package/dist/chunks/{checkbox-group.CcgOK4yt.js.map → checkbox-group.8ebmaHsA.js.map} +1 -1
  83. package/dist/chunks/{checkbox.73QYC0y8.js → checkbox.BI0dqARY.js} +4 -4
  84. package/dist/chunks/{checkbox.73QYC0y8.js.map → checkbox.BI0dqARY.js.map} +1 -1
  85. package/dist/chunks/{chip.CUwVpPVo.js → chip.DuLyhNCy.js} +2 -2
  86. package/dist/chunks/{chip.CUwVpPVo.js.map → chip.DuLyhNCy.js.map} +1 -1
  87. package/dist/chunks/{code-snippet.DL_1HNKV.js → code-snippet.CO78Nfj0.js} +7 -7
  88. package/dist/chunks/{code-snippet.DL_1HNKV.js.map → code-snippet.CO78Nfj0.js.map} +1 -1
  89. package/dist/chunks/{controls-group.CdTg-WDi.js → controls-group.cbGiHr7n.js} +2 -2
  90. package/dist/chunks/{controls-group.CdTg-WDi.js.map → controls-group.cbGiHr7n.js.map} +1 -1
  91. package/dist/chunks/{copy.Da1OGFTr.js → copy.ClKnDjMI.js} +5 -5
  92. package/dist/chunks/{copy.Da1OGFTr.js.map → copy.ClKnDjMI.js.map} +1 -1
  93. package/dist/chunks/country.DmnN9YIW.js +69 -0
  94. package/dist/chunks/country.DmnN9YIW.js.map +1 -0
  95. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
  96. package/dist/chunks/{currency.CN4UnCx8.js → currency.CBZMwm21.js} +55 -38
  97. package/dist/chunks/currency.CBZMwm21.js.map +1 -0
  98. package/dist/chunks/{dashboard-section.BXE7_Y9R.js → dashboard-section.CVttsom5.js} +3 -3
  99. package/dist/chunks/{dashboard-section.BXE7_Y9R.js.map → dashboard-section.CVttsom5.js.map} +1 -1
  100. package/dist/chunks/{dashed-underline.28J-9i5D.js → dashed-underline.r62L_XBr.js} +3 -3
  101. package/dist/chunks/{dashed-underline.28J-9i5D.js.map → dashed-underline.r62L_XBr.js.map} +1 -1
  102. package/dist/chunks/{data-grid-template.B13OrA1T.js → data-grid-template.CFt1NV_4.js} +4 -4
  103. package/dist/chunks/{data-grid-template.B13OrA1T.js.map → data-grid-template.CFt1NV_4.js.map} +1 -1
  104. package/dist/chunks/data-grid.BjPdbx50.js +4071 -0
  105. package/dist/chunks/data-grid.BjPdbx50.js.map +1 -0
  106. package/dist/chunks/{date-input.BqBdAO1E.js → date-format.B8RU7D42.js} +6 -6
  107. package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
  108. package/dist/chunks/date-picker.DSkvT_CA.js +234 -0
  109. package/dist/chunks/date-picker.DSkvT_CA.js.map +1 -0
  110. package/dist/chunks/date-range-picker.cmg75lC-.js +1117 -0
  111. package/dist/chunks/date-range-picker.cmg75lC-.js.map +1 -0
  112. package/dist/chunks/{date.4GAXrgy5.js → date.DZvVL-uz.js} +3 -3
  113. package/dist/chunks/{date.4GAXrgy5.js.map → date.DZvVL-uz.js.map} +1 -1
  114. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  115. package/dist/chunks/{dialog-page.1ZVnUqpT.js → dialog-page.zWrBSgBD.js} +3 -3
  116. package/dist/chunks/dialog-page.zWrBSgBD.js.map +1 -0
  117. package/dist/chunks/{dropdown-default-textbox.CGsOngY1.js → dropdown-default-textbox.MkU0tMf1.js} +29 -29
  118. package/dist/chunks/dropdown-default-textbox.MkU0tMf1.js.map +1 -0
  119. package/dist/chunks/{dropdown-tag.hIiGmmBD.js → dropdown-tag.DvQQIJsw.js} +134 -122
  120. package/dist/chunks/dropdown-tag.DvQQIJsw.js.map +1 -0
  121. package/dist/chunks/{dropdown.GyDAswAO.js → dropdown.bLsoTZbw.js} +350 -339
  122. package/dist/chunks/dropdown.bLsoTZbw.js.map +1 -0
  123. package/dist/chunks/{empty-state.BsKJ-1pT.js → empty-state.Be6M8ivH.js} +2 -2
  124. package/dist/chunks/{empty-state.BsKJ-1pT.js.map → empty-state.Be6M8ivH.js.map} +1 -1
  125. package/dist/chunks/es6.MoTTyETW.js.map +1 -1
  126. package/dist/chunks/{field-label.DSeawpYh.js → field-label.C97CrBI_.js} +3 -3
  127. package/dist/chunks/{field-label.DSeawpYh.js.map → field-label.C97CrBI_.js.map} +1 -1
  128. package/dist/chunks/{file-uploader.DELe6_NM.js → file-uploader.By0MTfKk.js} +87 -88
  129. package/dist/chunks/file-uploader.By0MTfKk.js.map +1 -0
  130. package/dist/chunks/filter-bar.nX73NKNC.js +2948 -0
  131. package/dist/chunks/filter-bar.nX73NKNC.js.map +1 -0
  132. package/dist/chunks/{fixed-scroller.BASYH576.js → fixed-scroller.Dmg8r9QP.js} +3 -3
  133. package/dist/chunks/{fixed-scroller.BASYH576.js.map → fixed-scroller.Dmg8r9QP.js.map} +1 -1
  134. package/dist/chunks/focus-trap.CpNGD7PH.js.map +1 -1
  135. package/dist/chunks/{footer-actions.Bqn-Jp0p.js → footer-actions.BO52wpv-.js} +3 -3
  136. package/dist/chunks/{footer-actions.Bqn-Jp0p.js.map → footer-actions.BO52wpv-.js.map} +1 -1
  137. package/dist/chunks/{form-layout-title.DdRqnXXi.js → form-layout-title.61ESsGAY.js} +20 -12
  138. package/dist/chunks/form-layout-title.61ESsGAY.js.map +1 -0
  139. package/dist/chunks/get-slot-text.DQlZEsId.js.map +1 -1
  140. package/dist/chunks/{header-meta.BXOpbsSR.js → header-meta.C4iaUsfq.js} +13 -10
  141. package/dist/chunks/{header-meta.BXOpbsSR.js.map → header-meta.C4iaUsfq.js.map} +1 -1
  142. package/dist/chunks/{header-with-views.afPw_Czi.js → header-with-views.BLW817ZC.js} +207 -207
  143. package/dist/chunks/header-with-views.BLW817ZC.js.map +1 -0
  144. package/dist/chunks/{header.9kRuPR3K.js → header.DARVAeE9.js} +3 -3
  145. package/dist/chunks/{header.9kRuPR3K.js.map → header.DARVAeE9.js.map} +1 -1
  146. package/dist/chunks/index.pdBj0KQU.js +15 -0
  147. package/dist/chunks/index.pdBj0KQU.js.map +1 -0
  148. package/dist/chunks/{info-icon.CRnO5lpq.js → info-icon.BhOm72U4.js} +3 -3
  149. package/dist/chunks/{info-icon.CRnO5lpq.js.map → info-icon.BhOm72U4.js.map} +1 -1
  150. package/dist/chunks/{input-field-password.JZkGOiMd.js → input-field-password.BtM3-txc.js} +8 -8
  151. package/dist/chunks/input-field-password.BtM3-txc.js.map +1 -0
  152. package/dist/chunks/{input-field-phone-number.CF5P0_yu.js → input-field-phone-number.oaNB69nM.js} +631 -631
  153. package/dist/chunks/{input-field-phone-number.CF5P0_yu.js.map → input-field-phone-number.oaNB69nM.js.map} +1 -1
  154. package/dist/chunks/{input-field.2S8zBviE.js → input-field.D_tADgPG.js} +5 -5
  155. package/dist/chunks/input-field.D_tADgPG.js.map +1 -0
  156. package/dist/chunks/{inspector.C-yVhM15.js → inspector.BKP15cx6.js} +4 -4
  157. package/dist/chunks/inspector.BKP15cx6.js.map +1 -0
  158. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
  159. package/dist/chunks/{listbox-option-tag.CtJUykfB.js → listbox-option-tag.uHSB7MO6.js} +9 -9
  160. package/dist/chunks/listbox-option-tag.uHSB7MO6.js.map +1 -0
  161. package/dist/chunks/loading-indicator.Db794TT5.js +33 -0
  162. package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -0
  163. package/dist/chunks/{modal-fullscreen.CIxazX33.js → modal-fullscreen.DTT-5rQX.js} +6 -6
  164. package/dist/chunks/{modal-fullscreen.CIxazX33.js.map → modal-fullscreen.DTT-5rQX.js.map} +1 -1
  165. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js → modal.vue_vue_type_script_setup_true_lang.c3Ma1oAL.js} +6 -6
  166. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js.map → modal.vue_vue_type_script_setup_true_lang.c3Ma1oAL.js.map} +1 -1
  167. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
  168. package/dist/chunks/{pagination.NDwXq6fh.js → pagination.D1Gdo5to.js} +5 -5
  169. package/dist/chunks/pagination.D1Gdo5to.js.map +1 -0
  170. package/dist/chunks/popover.types.BFFy1ChU.js +6 -0
  171. package/dist/chunks/{popover.types.Bp97CGc4.js.map → popover.types.BFFy1ChU.js.map} +1 -1
  172. package/dist/chunks/{popper-container.5cq-eu41.js → popper-container.Uod3yjsR.js} +2 -2
  173. package/dist/chunks/{popper-container.5cq-eu41.js.map → popper-container.Uod3yjsR.js.map} +1 -1
  174. package/dist/chunks/{promo-banner.ChT2zKkO.js → promo-banner.B-TLTLEd.js} +3 -3
  175. package/dist/chunks/promo-banner.B-TLTLEd.js.map +1 -0
  176. package/dist/chunks/radio-group.DWNqrkZ3.js +277 -0
  177. package/dist/chunks/radio-group.DWNqrkZ3.js.map +1 -0
  178. package/dist/chunks/{radio-input.odN9FOyr.js → radio-input.CBNE-AkM.js} +13 -14
  179. package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -0
  180. package/dist/chunks/{rich-text-editor.D770fUpS.js → rich-text-editor.BK9AivIm.js} +6 -6
  181. package/dist/chunks/{rich-text-editor.D770fUpS.js.map → rich-text-editor.BK9AivIm.js.map} +1 -1
  182. package/dist/chunks/{search-bar.rZ_38y4j.js → search-bar.BD_R-vgA.js} +4 -4
  183. package/dist/chunks/{search-bar.rZ_38y4j.js.map → search-bar.BD_R-vgA.js.map} +1 -1
  184. package/dist/chunks/{secondary-nav.BBE8HyDR.js → secondary-nav.Du2PL7Ok.js} +5 -5
  185. package/dist/chunks/secondary-nav.Du2PL7Ok.js.map +1 -0
  186. package/dist/chunks/{segmented-control.D0SoqGlC.js → segmented-control.BCHGDSrf.js} +47 -45
  187. package/dist/chunks/segmented-control.BCHGDSrf.js.map +1 -0
  188. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  189. package/dist/chunks/{selection-card-group.KK9ZPqiU.js → selection-card-group._RgLiMyQ.js} +5 -5
  190. package/dist/chunks/selection-card-group._RgLiMyQ.js.map +1 -0
  191. package/dist/chunks/{sidepanel.CyPW8jxA.js → sidepanel.CS9CfAWZ.js} +19 -19
  192. package/dist/chunks/{sidepanel.CyPW8jxA.js.map → sidepanel.CS9CfAWZ.js.map} +1 -1
  193. package/dist/chunks/{step.Ci-e1V9E.js → step.CoSuGK16.js} +4 -4
  194. package/dist/chunks/step.CoSuGK16.js.map +1 -0
  195. package/dist/chunks/{structured-list-item.CSkcduKn.js → structured-list-item.BTPh7SPj.js} +6 -6
  196. package/dist/chunks/{structured-list-item.CSkcduKn.js.map → structured-list-item.BTPh7SPj.js.map} +1 -1
  197. package/dist/chunks/{summary-grid.types.C-gcwqwB.js → summary-grid.types.ByQ4u19J.js} +6 -6
  198. package/dist/chunks/{summary-grid.types.C-gcwqwB.js.map → summary-grid.types.ByQ4u19J.js.map} +1 -1
  199. package/dist/chunks/{tab.8bEkiAkk.js → tab.CD5Eu6ql.js} +3 -3
  200. package/dist/chunks/tab.CD5Eu6ql.js.map +1 -0
  201. package/dist/chunks/{tag.BFYNxO6t.js → tag.CEmpyuYX.js} +2 -2
  202. package/dist/chunks/{tag.BFYNxO6t.js.map → tag.CEmpyuYX.js.map} +1 -1
  203. package/dist/chunks/textarea.C1jkfowf.js +246 -0
  204. package/dist/chunks/textarea.C1jkfowf.js.map +1 -0
  205. package/dist/chunks/{timeline-item.BiivSMPD.js → timeline-item.C8PA_w7m.js} +9 -9
  206. package/dist/chunks/timeline-item.C8PA_w7m.js.map +1 -0
  207. package/dist/chunks/{toast.DIhABAW8.js → toast.6oJx7SNq.js} +3 -3
  208. package/dist/chunks/{toast.DIhABAW8.js.map → toast.6oJx7SNq.js.map} +1 -1
  209. package/dist/chunks/toggle.Dd_NA8eH.js +143 -0
  210. package/dist/chunks/toggle.Dd_NA8eH.js.map +1 -0
  211. package/dist/chunks/tooltip.Dp9_ESm_.js +202 -0
  212. package/dist/chunks/tooltip.Dp9_ESm_.js.map +1 -0
  213. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js → tutorial.vue_vue_type_script_setup_true_lang.KvlJ_dl9.js} +6 -6
  214. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.KvlJ_dl9.js.map +1 -0
  215. package/dist/chunks/{use-cached-selected-values.CBOWMI4O.js → use-cached-selected-values.C32tjNKy.js} +114 -114
  216. package/dist/chunks/use-cached-selected-values.C32tjNKy.js.map +1 -0
  217. package/dist/chunks/{use-country-items.D_kamcYy.js → use-country-items.Dzbl2UsO.js} +7 -7
  218. package/dist/chunks/use-country-items.Dzbl2UsO.js.map +1 -0
  219. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  220. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
  221. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  222. package/dist/code-snippet.js +1 -1
  223. package/dist/country.js +1 -1
  224. package/dist/currency.js +1 -1
  225. package/dist/dashboard-template.js +1 -1
  226. package/dist/dashed-underline.js +1 -1
  227. package/dist/data-grid-template.js +1 -1
  228. package/dist/data-grid.js +1 -1
  229. package/dist/date-picker.js +5 -4
  230. package/dist/date-range-picker.js +5 -4
  231. package/dist/date.js +1 -1
  232. package/dist/dropdown.js +4 -4
  233. package/dist/empty-state.js +1 -1
  234. package/dist/file-uploader.js +1 -1
  235. package/dist/filter-bar.js +5 -4
  236. package/dist/form-layout.js +1 -1
  237. package/dist/header-with-views.js +1 -1
  238. package/dist/header.js +1 -1
  239. package/dist/index.js +405 -329
  240. package/dist/index.js.map +1 -1
  241. package/dist/info-icon.js +1 -1
  242. package/dist/input-field-password.js +1 -1
  243. package/dist/input-field-phone-number.js +1 -1
  244. package/dist/input-field.js +1 -1
  245. package/dist/inspector.js +1 -1
  246. package/dist/internal.js +12 -12
  247. package/dist/loading-indicator.js +1 -1
  248. package/dist/menu.js +1 -1
  249. package/dist/modal-fullscreen.js +1 -1
  250. package/dist/modal.js +2 -2
  251. package/dist/pagination.js +1 -1
  252. package/dist/popover.js +2 -2
  253. package/dist/popper-container.js +1 -1
  254. package/dist/promo-banner.js +1 -1
  255. package/dist/radio-group.js +2 -2
  256. package/dist/rich-text-editor.js +1 -1
  257. package/dist/search-bar.js +2 -2
  258. package/dist/secondary-nav.js +1 -1
  259. package/dist/segmented-control.js +1 -1
  260. package/dist/selection-card.js +1 -1
  261. package/dist/sidepanel.js +1 -1
  262. package/dist/stepper.js +1 -1
  263. package/dist/structured-list.js +1 -1
  264. package/dist/styles/bento-dark.css +25 -15
  265. package/dist/styles/bento-light.css +9 -3
  266. package/dist/styles/bento.css +9 -3
  267. package/dist/styles/legacy.css +9 -3
  268. package/dist/styles/styleguide.css +9 -3
  269. package/dist/summary-grid.js +1 -1
  270. package/dist/tabs.js +1 -1
  271. package/dist/tag.js +1 -1
  272. package/dist/textarea.js +1 -1
  273. package/dist/timeline.js +1 -1
  274. package/dist/toast.js +1 -1
  275. package/dist/toggle.js +1 -1
  276. package/dist/tutorial.js +1 -1
  277. package/dist/use-form-v4.js.map +1 -1
  278. package/dist/web-types.json +1 -1
  279. package/package.json +14 -12
  280. package/dist/chunks/avatar.Dq59yj6m.js.map +0 -1
  281. package/dist/chunks/base-modal.Djw4pVal.js.map +0 -1
  282. package/dist/chunks/button-actions.D1eBtYgZ.js.map +0 -1
  283. package/dist/chunks/button.C-MAa6ut.js.map +0 -1
  284. package/dist/chunks/calendar.B1a_mV-Q.js.map +0 -1
  285. package/dist/chunks/card.B9lWURmF.js.map +0 -1
  286. package/dist/chunks/country.RVvsGwuV.js +0 -99
  287. package/dist/chunks/country.RVvsGwuV.js.map +0 -1
  288. package/dist/chunks/currency.CN4UnCx8.js.map +0 -1
  289. package/dist/chunks/data-grid._xo6LEB-.js +0 -4010
  290. package/dist/chunks/data-grid._xo6LEB-.js.map +0 -1
  291. package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
  292. package/dist/chunks/date-picker.Bkz4GmyC.js +0 -319
  293. package/dist/chunks/date-picker.Bkz4GmyC.js.map +0 -1
  294. package/dist/chunks/date-range-picker.9Zlg9xnH.js +0 -1171
  295. package/dist/chunks/date-range-picker.9Zlg9xnH.js.map +0 -1
  296. package/dist/chunks/dialog-page.1ZVnUqpT.js.map +0 -1
  297. package/dist/chunks/dropdown-default-textbox.CGsOngY1.js.map +0 -1
  298. package/dist/chunks/dropdown-tag.hIiGmmBD.js.map +0 -1
  299. package/dist/chunks/dropdown.GyDAswAO.js.map +0 -1
  300. package/dist/chunks/file-uploader.DELe6_NM.js.map +0 -1
  301. package/dist/chunks/filter-bar.BLhRZzJa.js +0 -3005
  302. package/dist/chunks/filter-bar.BLhRZzJa.js.map +0 -1
  303. package/dist/chunks/form-layout-title.DdRqnXXi.js.map +0 -1
  304. package/dist/chunks/header-with-views.afPw_Czi.js.map +0 -1
  305. package/dist/chunks/i18n.B6g5VX0q.js +0 -3131
  306. package/dist/chunks/i18n.B6g5VX0q.js.map +0 -1
  307. package/dist/chunks/input-field-password.JZkGOiMd.js.map +0 -1
  308. package/dist/chunks/input-field.2S8zBviE.js.map +0 -1
  309. package/dist/chunks/inspector.C-yVhM15.js.map +0 -1
  310. package/dist/chunks/listbox-option-tag.CtJUykfB.js.map +0 -1
  311. package/dist/chunks/loading-indicator.VHi5tbZa.js +0 -44
  312. package/dist/chunks/loading-indicator.VHi5tbZa.js.map +0 -1
  313. package/dist/chunks/pagination.NDwXq6fh.js.map +0 -1
  314. package/dist/chunks/popover.types.Bp97CGc4.js +0 -6
  315. package/dist/chunks/promo-banner.ChT2zKkO.js.map +0 -1
  316. package/dist/chunks/radio-group.BNiif4On.js +0 -329
  317. package/dist/chunks/radio-group.BNiif4On.js.map +0 -1
  318. package/dist/chunks/radio-input.odN9FOyr.js.map +0 -1
  319. package/dist/chunks/secondary-nav.BBE8HyDR.js.map +0 -1
  320. package/dist/chunks/segmented-control.D0SoqGlC.js.map +0 -1
  321. package/dist/chunks/selection-card-group.KK9ZPqiU.js.map +0 -1
  322. package/dist/chunks/step.Ci-e1V9E.js.map +0 -1
  323. package/dist/chunks/tab.8bEkiAkk.js.map +0 -1
  324. package/dist/chunks/textarea.C7RmLKEx.js +0 -295
  325. package/dist/chunks/textarea.C7RmLKEx.js.map +0 -1
  326. package/dist/chunks/timeline-item.BiivSMPD.js.map +0 -1
  327. package/dist/chunks/toggle.C8k7NQ7y.js +0 -161
  328. package/dist/chunks/toggle.C8k7NQ7y.js.map +0 -1
  329. package/dist/chunks/tooltip.CEHc6lzU.js +0 -211
  330. package/dist/chunks/tooltip.CEHc6lzU.js.map +0 -1
  331. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js.map +0 -1
  332. package/dist/chunks/use-cached-selected-values.CBOWMI4O.js.map +0 -1
  333. package/dist/chunks/use-country-items.D_kamcYy.js.map +0 -1
@@ -1,3131 +0,0 @@
1
- import { getCurrentInstance as Nt, inject as Cn, shallowRef as hn, ref as Fe, computed as ce, onBeforeMount as pr, watch as Xt, onMounted as Tr, onUnmounted as Or, defineComponent as Vt, h as Pn, createVNode as gr, Text as Lr, Fragment as Sn } from "vue";
2
- import "vue-i18n";
3
- /*!
4
- * shared v9.14.5
5
- * (c) 2025 kazuya kawaguchi
6
- * Released under the MIT License.
7
- */
8
- function Ee(e, t) {
9
- typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
10
- }
11
- const jt = {};
12
- function Dn(e) {
13
- jt[e] || (jt[e] = !0, Ee(e));
14
- }
15
- const Te = typeof window < "u";
16
- let se, Se;
17
- if (process.env.NODE_ENV !== "production") {
18
- const e = Te && window.performance;
19
- e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
20
- e.clearMeasures && (se = (t) => {
21
- e.mark(t);
22
- }, Se = (t, n, r) => {
23
- e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
24
- });
25
- }
26
- const Ir = /\{([0-9a-zA-Z]+)\}/g;
27
- function Wt(e, ...t) {
28
- return t.length === 1 && w(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ir, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
29
- }
30
- const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), vr = (e, t, n) => Ar({ l: e, k: t, s: n }), Ar = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Q = (e) => typeof e == "number" && isFinite(e), br = (e) => yn(e) === "[object Date]", Ve = (e) => yn(e) === "[object RegExp]", pt = (e) => U(e) && Object.keys(e).length === 0, z = Object.assign, Cr = Object.create, Y = (e = null) => Cr(e);
31
- let Jt;
32
- const pe = () => Jt || (Jt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : Y());
33
- function qt(e) {
34
- return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
35
- }
36
- function Qt(e) {
37
- return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
38
- }
39
- function hr(e) {
40
- return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, a) => `${s}="${Qt(a)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, a) => `${s}='${Qt(a)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && Ee("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3")), [
41
- // In href, src, action, formaction attributes
42
- /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
43
- // In style attributes within url()
44
- /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi
45
- ].forEach((r) => {
46
- e = e.replace(r, "$1javascript&#58;");
47
- }), e;
48
- }
49
- const Pr = Object.prototype.hasOwnProperty;
50
- function ue(e, t) {
51
- return Pr.call(e, t);
52
- }
53
- const J = Array.isArray, x = (e) => typeof e == "function", C = (e) => typeof e == "string", H = (e) => typeof e == "boolean", w = (e) => e !== null && typeof e == "object", Sr = (e) => w(e) && x(e.then) && x(e.catch), Rn = Object.prototype.toString, yn = (e) => Rn.call(e), U = (e) => {
54
- if (!w(e))
55
- return !1;
56
- const t = Object.getPrototypeOf(e);
57
- return t === null || t.constructor === Object;
58
- }, Dr = (e) => e == null ? "" : J(e) || U(e) && e.toString === Rn ? JSON.stringify(e, null, 2) : String(e);
59
- function Rr(e, t = "") {
60
- return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
61
- }
62
- const Zt = 2;
63
- function yr(e, t = 0, n = e.length) {
64
- const r = e.split(/\r?\n/);
65
- let s = 0;
66
- const a = [];
67
- for (let i = 0; i < r.length; i++)
68
- if (s += r[i].length + 1, s >= t) {
69
- for (let c = i - Zt; c <= i + Zt || n > s; c++) {
70
- if (c < 0 || c >= r.length)
71
- continue;
72
- const u = c + 1;
73
- a.push(`${u}${" ".repeat(3 - String(u).length)}| ${r[c]}`);
74
- const E = r[c].length;
75
- if (c === i) {
76
- const g = t - (s - E) + 1, I = Math.max(1, n > s ? E - g : n - t);
77
- a.push(" | " + " ".repeat(g) + "^".repeat(I));
78
- } else if (c > i) {
79
- if (n > s) {
80
- const g = Math.max(Math.min(n - s, E), 1);
81
- a.push(" | " + "^".repeat(g));
82
- }
83
- s += E + 1;
84
- }
85
- }
86
- break;
87
- }
88
- return a.join(`
89
- `);
90
- }
91
- function Tt(e) {
92
- let t = e;
93
- return () => ++t;
94
- }
95
- function kr() {
96
- const e = /* @__PURE__ */ new Map();
97
- return {
98
- events: e,
99
- on(n, r) {
100
- const s = e.get(n);
101
- s && s.push(r) || e.set(n, [r]);
102
- },
103
- off(n, r) {
104
- const s = e.get(n);
105
- s && s.splice(s.indexOf(r) >>> 0, 1);
106
- },
107
- emit(n, r) {
108
- (e.get(n) || []).slice().map((s) => s(r)), (e.get("*") || []).slice().map((s) => s(n, r));
109
- }
110
- };
111
- }
112
- const ut = (e) => !w(e) || J(e);
113
- function _t(e, t) {
114
- if (ut(e) || ut(t))
115
- throw new Error("Invalid value");
116
- const n = [{ src: e, des: t }];
117
- for (; n.length; ) {
118
- const { src: r, des: s } = n.pop();
119
- Object.keys(r).forEach((a) => {
120
- a !== "__proto__" && (w(r[a]) && !w(s[a]) && (s[a] = Array.isArray(r[a]) ? [] : Y()), ut(s[a]) || ut(r[a]) ? s[a] = r[a] : n.push({ src: r[a], des: s[a] }));
121
- });
122
- }
123
- }
124
- /*!
125
- * message-compiler v9.14.5
126
- * (c) 2025 kazuya kawaguchi
127
- * Released under the MIT License.
128
- */
129
- function Mr(e, t, n) {
130
- return { line: e, column: t, offset: n };
131
- }
132
- function mt(e, t, n) {
133
- return { start: e, end: t };
134
- }
135
- const Fr = /\{([0-9a-zA-Z]+)\}/g;
136
- function kn(e, ...t) {
137
- return t.length === 1 && Ur(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Fr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
138
- }
139
- const Mn = Object.assign, zt = (e) => typeof e == "string", Ur = (e) => e !== null && typeof e == "object";
140
- function Fn(e, t = "") {
141
- return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
142
- }
143
- const Ot = {
144
- USE_MODULO_SYNTAX: 1,
145
- __EXTEND_POINT__: 2
146
- }, wr = {
147
- [Ot.USE_MODULO_SYNTAX]: "Use modulo before '{{0}}'."
148
- };
149
- function Vr(e, t, ...n) {
150
- const r = kn(wr[e], ...n || []), s = { message: String(r), code: e };
151
- return t && (s.location = t), s;
152
- }
153
- const y = {
154
- // tokenizer error codes
155
- EXPECTED_TOKEN: 1,
156
- INVALID_TOKEN_IN_PLACEHOLDER: 2,
157
- UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
158
- UNKNOWN_ESCAPE_SEQUENCE: 4,
159
- INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
160
- UNBALANCED_CLOSING_BRACE: 6,
161
- UNTERMINATED_CLOSING_BRACE: 7,
162
- EMPTY_PLACEHOLDER: 8,
163
- NOT_ALLOW_NEST_PLACEHOLDER: 9,
164
- INVALID_LINKED_FORMAT: 10,
165
- // parser error codes
166
- MUST_HAVE_MESSAGES_IN_PLURAL: 11,
167
- UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
168
- UNEXPECTED_EMPTY_LINKED_KEY: 13,
169
- UNEXPECTED_LEXICAL_ANALYSIS: 14,
170
- // generator error codes
171
- UNHANDLED_CODEGEN_NODE_TYPE: 15,
172
- // minifier error codes
173
- UNHANDLED_MINIFIER_NODE_TYPE: 16,
174
- // Special value for higher-order compilers to pick up the last code
175
- // to avoid collision of error codes. This should always be kept as the last
176
- // item.
177
- __EXTEND_POINT__: 17
178
- }, Wr = {
179
- // tokenizer error messages
180
- [y.EXPECTED_TOKEN]: "Expected token: '{0}'",
181
- [y.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
182
- [y.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
183
- [y.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
184
- [y.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
185
- [y.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
186
- [y.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
187
- [y.EMPTY_PLACEHOLDER]: "Empty placeholder",
188
- [y.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
189
- [y.INVALID_LINKED_FORMAT]: "Invalid linked format",
190
- // parser error messages
191
- [y.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
192
- [y.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
193
- [y.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
194
- [y.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
195
- // generator error messages
196
- [y.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
197
- // minimizer error messages
198
- [y.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
199
- };
200
- function $e(e, t, n = {}) {
201
- const { domain: r, messages: s, args: a } = n, i = kn((s || Wr)[e] || "", ...a || []), c = new SyntaxError(String(i));
202
- return c.code = e, t && (c.location = t), c.domain = r, c;
203
- }
204
- function $r(e) {
205
- throw e;
206
- }
207
- const Yr = /<\/?[\w\s="/.':;#-\/]+>/, Gr = (e) => Yr.test(e), de = " ", Hr = "\r", ee = `
208
- `, xr = "\u2028", Kr = "\u2029";
209
- function Br(e) {
210
- const t = e;
211
- let n = 0, r = 1, s = 1, a = 0;
212
- const i = (L) => t[L] === Hr && t[L + 1] === ee, c = (L) => t[L] === ee, u = (L) => t[L] === Kr, E = (L) => t[L] === xr, g = (L) => i(L) || c(L) || u(L) || E(L), I = () => n, p = () => r, h = () => s, k = () => a, P = (L) => i(L) || u(L) || E(L) ? ee : t[L], S = () => P(n), M = () => P(n + a);
213
- function R() {
214
- return a = 0, g(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
215
- }
216
- function f() {
217
- return i(n + a) && a++, a++, t[n + a];
218
- }
219
- function m() {
220
- n = 0, r = 1, s = 1, a = 0;
221
- }
222
- function O(L = 0) {
223
- a = L;
224
- }
225
- function N() {
226
- const L = n + a;
227
- for (; L !== n; )
228
- R();
229
- a = 0;
230
- }
231
- return {
232
- index: I,
233
- line: p,
234
- column: h,
235
- peekOffset: k,
236
- charAt: P,
237
- currentChar: S,
238
- currentPeek: M,
239
- next: R,
240
- peek: f,
241
- reset: m,
242
- resetPeek: O,
243
- skipToPeek: N
244
- };
245
- }
246
- const Le = void 0, Xr = ".", en = "'", jr = "tokenizer";
247
- function Jr(e, t = {}) {
248
- const n = t.location !== !1, r = Br(e), s = () => r.index(), a = () => Mr(r.line(), r.column(), r.index()), i = a(), c = s(), u = {
249
- currentType: 14,
250
- offset: c,
251
- startLoc: i,
252
- endLoc: i,
253
- lastType: 14,
254
- lastOffset: c,
255
- lastStartLoc: i,
256
- lastEndLoc: i,
257
- braceNest: 0,
258
- inLinked: !1,
259
- text: ""
260
- }, E = () => u, { onError: g } = t;
261
- function I(l, o, d, ...D) {
262
- const B = E();
263
- if (o.column += d, o.offset += d, g) {
264
- const G = n ? mt(B.startLoc, o) : null, $ = $e(l, G, {
265
- domain: jr,
266
- args: D
267
- });
268
- g($);
269
- }
270
- }
271
- function p(l, o, d) {
272
- l.endLoc = a(), l.currentType = o;
273
- const D = { type: o };
274
- return n && (D.loc = mt(l.startLoc, l.endLoc)), d != null && (D.value = d), D;
275
- }
276
- const h = (l) => p(
277
- l,
278
- 14
279
- /* TokenTypes.EOF */
280
- );
281
- function k(l, o) {
282
- return l.currentChar() === o ? (l.next(), o) : (I(y.EXPECTED_TOKEN, a(), 0, o), "");
283
- }
284
- function P(l) {
285
- let o = "";
286
- for (; l.currentPeek() === de || l.currentPeek() === ee; )
287
- o += l.currentPeek(), l.peek();
288
- return o;
289
- }
290
- function S(l) {
291
- const o = P(l);
292
- return l.skipToPeek(), o;
293
- }
294
- function M(l) {
295
- if (l === Le)
296
- return !1;
297
- const o = l.charCodeAt(0);
298
- return o >= 97 && o <= 122 || // a-z
299
- o >= 65 && o <= 90 || // A-Z
300
- o === 95;
301
- }
302
- function R(l) {
303
- if (l === Le)
304
- return !1;
305
- const o = l.charCodeAt(0);
306
- return o >= 48 && o <= 57;
307
- }
308
- function f(l, o) {
309
- const { currentType: d } = o;
310
- if (d !== 2)
311
- return !1;
312
- P(l);
313
- const D = M(l.currentPeek());
314
- return l.resetPeek(), D;
315
- }
316
- function m(l, o) {
317
- const { currentType: d } = o;
318
- if (d !== 2)
319
- return !1;
320
- P(l);
321
- const D = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), B = R(D);
322
- return l.resetPeek(), B;
323
- }
324
- function O(l, o) {
325
- const { currentType: d } = o;
326
- if (d !== 2)
327
- return !1;
328
- P(l);
329
- const D = l.currentPeek() === en;
330
- return l.resetPeek(), D;
331
- }
332
- function N(l, o) {
333
- const { currentType: d } = o;
334
- if (d !== 8)
335
- return !1;
336
- P(l);
337
- const D = l.currentPeek() === ".";
338
- return l.resetPeek(), D;
339
- }
340
- function L(l, o) {
341
- const { currentType: d } = o;
342
- if (d !== 9)
343
- return !1;
344
- P(l);
345
- const D = M(l.currentPeek());
346
- return l.resetPeek(), D;
347
- }
348
- function b(l, o) {
349
- const { currentType: d } = o;
350
- if (!(d === 8 || d === 12))
351
- return !1;
352
- P(l);
353
- const D = l.currentPeek() === ":";
354
- return l.resetPeek(), D;
355
- }
356
- function A(l, o) {
357
- const { currentType: d } = o;
358
- if (d !== 10)
359
- return !1;
360
- const D = () => {
361
- const G = l.currentPeek();
362
- return G === "{" ? M(l.peek()) : G === "@" || G === "%" || G === "|" || G === ":" || G === "." || G === de || !G ? !1 : G === ee ? (l.peek(), D()) : F(l, !1);
363
- }, B = D();
364
- return l.resetPeek(), B;
365
- }
366
- function K(l) {
367
- P(l);
368
- const o = l.currentPeek() === "|";
369
- return l.resetPeek(), o;
370
- }
371
- function ae(l) {
372
- const o = P(l), d = l.currentPeek() === "%" && l.peek() === "{";
373
- return l.resetPeek(), {
374
- isModulo: d,
375
- hasSpace: o.length > 0
376
- };
377
- }
378
- function F(l, o = !0) {
379
- const d = (B = !1, G = "", $ = !1) => {
380
- const _ = l.currentPeek();
381
- return _ === "{" ? G === "%" ? !1 : B : _ === "@" || !_ ? G === "%" ? !0 : B : _ === "%" ? (l.peek(), d(B, "%", !0)) : _ === "|" ? G === "%" || $ ? !0 : !(G === de || G === ee) : _ === de ? (l.peek(), d(!0, de, $)) : _ === ee ? (l.peek(), d(!0, ee, $)) : !0;
382
- }, D = d();
383
- return o && l.resetPeek(), D;
384
- }
385
- function Z(l, o) {
386
- const d = l.currentChar();
387
- return d === Le ? Le : o(d) ? (l.next(), d) : null;
388
- }
389
- function Ye(l) {
390
- const o = l.charCodeAt(0);
391
- return o >= 97 && o <= 122 || // a-z
392
- o >= 65 && o <= 90 || // A-Z
393
- o >= 48 && o <= 57 || // 0-9
394
- o === 95 || // _
395
- o === 36;
396
- }
397
- function Ge(l) {
398
- return Z(l, Ye);
399
- }
400
- function _e(l) {
401
- const o = l.charCodeAt(0);
402
- return o >= 97 && o <= 122 || // a-z
403
- o >= 65 && o <= 90 || // A-Z
404
- o >= 48 && o <= 57 || // 0-9
405
- o === 95 || // _
406
- o === 36 || // $
407
- o === 45;
408
- }
409
- function He(l) {
410
- return Z(l, _e);
411
- }
412
- function xe(l) {
413
- const o = l.charCodeAt(0);
414
- return o >= 48 && o <= 57;
415
- }
416
- function Ke(l) {
417
- return Z(l, xe);
418
- }
419
- function Be(l) {
420
- const o = l.charCodeAt(0);
421
- return o >= 48 && o <= 57 || // 0-9
422
- o >= 65 && o <= 70 || // A-F
423
- o >= 97 && o <= 102;
424
- }
425
- function Xe(l) {
426
- return Z(l, Be);
427
- }
428
- function le(l) {
429
- let o = "", d = "";
430
- for (; o = Ke(l); )
431
- d += o;
432
- return d;
433
- }
434
- function Re(l) {
435
- S(l);
436
- const o = l.currentChar();
437
- return o !== "%" && I(y.EXPECTED_TOKEN, a(), 0, o), l.next(), "%";
438
- }
439
- function ye(l) {
440
- let o = "";
441
- for (; ; ) {
442
- const d = l.currentChar();
443
- if (d === "{" || d === "}" || d === "@" || d === "|" || !d)
444
- break;
445
- if (d === "%")
446
- if (F(l))
447
- o += d, l.next();
448
- else
449
- break;
450
- else if (d === de || d === ee)
451
- if (F(l))
452
- o += d, l.next();
453
- else {
454
- if (K(l))
455
- break;
456
- o += d, l.next();
457
- }
458
- else
459
- o += d, l.next();
460
- }
461
- return o;
462
- }
463
- function je(l) {
464
- S(l);
465
- let o = "", d = "";
466
- for (; o = He(l); )
467
- d += o;
468
- return l.currentChar() === Le && I(y.UNTERMINATED_CLOSING_BRACE, a(), 0), d;
469
- }
470
- function Je(l) {
471
- S(l);
472
- let o = "";
473
- return l.currentChar() === "-" ? (l.next(), o += `-${le(l)}`) : o += le(l), l.currentChar() === Le && I(y.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
474
- }
475
- function qe(l) {
476
- return l !== en && l !== ee;
477
- }
478
- function it(l) {
479
- S(l), k(l, "'");
480
- let o = "", d = "";
481
- for (; o = Z(l, qe); )
482
- o === "\\" ? d += Qe(l) : d += o;
483
- const D = l.currentChar();
484
- return D === ee || D === Le ? (I(y.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), D === ee && (l.next(), k(l, "'")), d) : (k(l, "'"), d);
485
- }
486
- function Qe(l) {
487
- const o = l.currentChar();
488
- switch (o) {
489
- case "\\":
490
- case "'":
491
- return l.next(), `\\${o}`;
492
- case "u":
493
- return ke(l, o, 4);
494
- case "U":
495
- return ke(l, o, 6);
496
- default:
497
- return I(y.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
498
- }
499
- }
500
- function ke(l, o, d) {
501
- k(l, o);
502
- let D = "";
503
- for (let B = 0; B < d; B++) {
504
- const G = Xe(l);
505
- if (!G) {
506
- I(y.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${D}${l.currentChar()}`);
507
- break;
508
- }
509
- D += G;
510
- }
511
- return `\\${o}${D}`;
512
- }
513
- function Ze(l) {
514
- return l !== "{" && l !== "}" && l !== de && l !== ee;
515
- }
516
- function ze(l) {
517
- S(l);
518
- let o = "", d = "";
519
- for (; o = Z(l, Ze); )
520
- d += o;
521
- return d;
522
- }
523
- function et(l) {
524
- let o = "", d = "";
525
- for (; o = Ge(l); )
526
- d += o;
527
- return d;
528
- }
529
- function v(l) {
530
- const o = (d) => {
531
- const D = l.currentChar();
532
- return D === "{" || D === "%" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === de ? d : (d += D, l.next(), o(d));
533
- };
534
- return o("");
535
- }
536
- function V(l) {
537
- S(l);
538
- const o = k(
539
- l,
540
- "|"
541
- /* TokenChars.Pipe */
542
- );
543
- return S(l), o;
544
- }
545
- function tt(l, o) {
546
- let d = null;
547
- switch (l.currentChar()) {
548
- case "{":
549
- return o.braceNest >= 1 && I(y.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), l.next(), d = p(
550
- o,
551
- 2,
552
- "{"
553
- /* TokenChars.BraceLeft */
554
- ), S(l), o.braceNest++, d;
555
- case "}":
556
- return o.braceNest > 0 && o.currentType === 2 && I(y.EMPTY_PLACEHOLDER, a(), 0), l.next(), d = p(
557
- o,
558
- 3,
559
- "}"
560
- /* TokenChars.BraceRight */
561
- ), o.braceNest--, o.braceNest > 0 && S(l), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), d;
562
- case "@":
563
- return o.braceNest > 0 && I(y.UNTERMINATED_CLOSING_BRACE, a(), 0), d = be(l, o) || h(o), o.braceNest = 0, d;
564
- default: {
565
- let B = !0, G = !0, $ = !0;
566
- if (K(l))
567
- return o.braceNest > 0 && I(y.UNTERMINATED_CLOSING_BRACE, a(), 0), d = p(o, 1, V(l)), o.braceNest = 0, o.inLinked = !1, d;
568
- if (o.braceNest > 0 && (o.currentType === 5 || o.currentType === 6 || o.currentType === 7))
569
- return I(y.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, nt(l, o);
570
- if (B = f(l, o))
571
- return d = p(o, 5, je(l)), S(l), d;
572
- if (G = m(l, o))
573
- return d = p(o, 6, Je(l)), S(l), d;
574
- if ($ = O(l, o))
575
- return d = p(o, 7, it(l)), S(l), d;
576
- if (!B && !G && !$)
577
- return d = p(o, 13, ze(l)), I(y.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, d.value), S(l), d;
578
- break;
579
- }
580
- }
581
- return d;
582
- }
583
- function be(l, o) {
584
- const { currentType: d } = o;
585
- let D = null;
586
- const B = l.currentChar();
587
- switch ((d === 8 || d === 9 || d === 12 || d === 10) && (B === ee || B === de) && I(y.INVALID_LINKED_FORMAT, a(), 0), B) {
588
- case "@":
589
- return l.next(), D = p(
590
- o,
591
- 8,
592
- "@"
593
- /* TokenChars.LinkedAlias */
594
- ), o.inLinked = !0, D;
595
- case ".":
596
- return S(l), l.next(), p(
597
- o,
598
- 9,
599
- "."
600
- /* TokenChars.LinkedDot */
601
- );
602
- case ":":
603
- return S(l), l.next(), p(
604
- o,
605
- 10,
606
- ":"
607
- /* TokenChars.LinkedDelimiter */
608
- );
609
- default:
610
- return K(l) ? (D = p(o, 1, V(l)), o.braceNest = 0, o.inLinked = !1, D) : N(l, o) || b(l, o) ? (S(l), be(l, o)) : L(l, o) ? (S(l), p(o, 12, et(l))) : A(l, o) ? (S(l), B === "{" ? tt(l, o) || D : p(o, 11, v(l))) : (d === 8 && I(y.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, nt(l, o));
611
- }
612
- }
613
- function nt(l, o) {
614
- let d = {
615
- type: 14
616
- /* TokenTypes.EOF */
617
- };
618
- if (o.braceNest > 0)
619
- return tt(l, o) || h(o);
620
- if (o.inLinked)
621
- return be(l, o) || h(o);
622
- switch (l.currentChar()) {
623
- case "{":
624
- return tt(l, o) || h(o);
625
- case "}":
626
- return I(y.UNBALANCED_CLOSING_BRACE, a(), 0), l.next(), p(
627
- o,
628
- 3,
629
- "}"
630
- /* TokenChars.BraceRight */
631
- );
632
- case "@":
633
- return be(l, o) || h(o);
634
- default: {
635
- if (K(l))
636
- return d = p(o, 1, V(l)), o.braceNest = 0, o.inLinked = !1, d;
637
- const { isModulo: B, hasSpace: G } = ae(l);
638
- if (B)
639
- return G ? p(o, 0, ye(l)) : p(o, 4, Re(l));
640
- if (F(l))
641
- return p(o, 0, ye(l));
642
- break;
643
- }
644
- }
645
- return d;
646
- }
647
- function vt() {
648
- const { currentType: l, offset: o, startLoc: d, endLoc: D } = u;
649
- return u.lastType = l, u.lastOffset = o, u.lastStartLoc = d, u.lastEndLoc = D, u.offset = s(), u.startLoc = a(), r.currentChar() === Le ? p(
650
- u,
651
- 14
652
- /* TokenTypes.EOF */
653
- ) : nt(r, u);
654
- }
655
- return {
656
- nextToken: vt,
657
- currentOffset: s,
658
- currentPosition: a,
659
- context: E
660
- };
661
- }
662
- const qr = "parser", Qr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
663
- function Zr(e, t, n) {
664
- switch (e) {
665
- case "\\\\":
666
- return "\\";
667
- // eslint-disable-next-line no-useless-escape
668
- case "\\'":
669
- return "'";
670
- default: {
671
- const r = parseInt(t || n, 16);
672
- return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
673
- }
674
- }
675
- }
676
- function zr(e = {}) {
677
- const t = e.location !== !1, { onError: n, onWarn: r } = e;
678
- function s(f, m, O, N, ...L) {
679
- const b = f.currentPosition();
680
- if (b.offset += N, b.column += N, n) {
681
- const A = t ? mt(O, b) : null, K = $e(m, A, {
682
- domain: qr,
683
- args: L
684
- });
685
- n(K);
686
- }
687
- }
688
- function a(f, m, O, N, ...L) {
689
- const b = f.currentPosition();
690
- if (b.offset += N, b.column += N, r) {
691
- const A = t ? mt(O, b) : null;
692
- r(Vr(m, A, L));
693
- }
694
- }
695
- function i(f, m, O) {
696
- const N = { type: f };
697
- return t && (N.start = m, N.end = m, N.loc = { start: O, end: O }), N;
698
- }
699
- function c(f, m, O, N) {
700
- t && (f.end = m, f.loc && (f.loc.end = O));
701
- }
702
- function u(f, m) {
703
- const O = f.context(), N = i(3, O.offset, O.startLoc);
704
- return N.value = m, c(N, f.currentOffset(), f.currentPosition()), N;
705
- }
706
- function E(f, m) {
707
- const O = f.context(), { lastOffset: N, lastStartLoc: L } = O, b = i(5, N, L);
708
- return b.index = parseInt(m, 10), f.nextToken(), c(b, f.currentOffset(), f.currentPosition()), b;
709
- }
710
- function g(f, m, O) {
711
- const N = f.context(), { lastOffset: L, lastStartLoc: b } = N, A = i(4, L, b);
712
- return A.key = m, O === !0 && (A.modulo = !0), f.nextToken(), c(A, f.currentOffset(), f.currentPosition()), A;
713
- }
714
- function I(f, m) {
715
- const O = f.context(), { lastOffset: N, lastStartLoc: L } = O, b = i(9, N, L);
716
- return b.value = m.replace(Qr, Zr), f.nextToken(), c(b, f.currentOffset(), f.currentPosition()), b;
717
- }
718
- function p(f) {
719
- const m = f.nextToken(), O = f.context(), { lastOffset: N, lastStartLoc: L } = O, b = i(8, N, L);
720
- return m.type !== 12 ? (s(f, y.UNEXPECTED_EMPTY_LINKED_MODIFIER, O.lastStartLoc, 0), b.value = "", c(b, N, L), {
721
- nextConsumeToken: m,
722
- node: b
723
- }) : (m.value == null && s(f, y.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, ie(m)), b.value = m.value || "", c(b, f.currentOffset(), f.currentPosition()), {
724
- node: b
725
- });
726
- }
727
- function h(f, m) {
728
- const O = f.context(), N = i(7, O.offset, O.startLoc);
729
- return N.value = m, c(N, f.currentOffset(), f.currentPosition()), N;
730
- }
731
- function k(f) {
732
- const m = f.context(), O = i(6, m.offset, m.startLoc);
733
- let N = f.nextToken();
734
- if (N.type === 9) {
735
- const L = p(f);
736
- O.modifier = L.node, N = L.nextConsumeToken || f.nextToken();
737
- }
738
- switch (N.type !== 10 && s(f, y.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(N)), N = f.nextToken(), N.type === 2 && (N = f.nextToken()), N.type) {
739
- case 11:
740
- N.value == null && s(f, y.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(N)), O.key = h(f, N.value || "");
741
- break;
742
- case 5:
743
- N.value == null && s(f, y.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(N)), O.key = g(f, N.value || "");
744
- break;
745
- case 6:
746
- N.value == null && s(f, y.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(N)), O.key = E(f, N.value || "");
747
- break;
748
- case 7:
749
- N.value == null && s(f, y.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(N)), O.key = I(f, N.value || "");
750
- break;
751
- default: {
752
- s(f, y.UNEXPECTED_EMPTY_LINKED_KEY, m.lastStartLoc, 0);
753
- const L = f.context(), b = i(7, L.offset, L.startLoc);
754
- return b.value = "", c(b, L.offset, L.startLoc), O.key = b, c(O, L.offset, L.startLoc), {
755
- nextConsumeToken: N,
756
- node: O
757
- };
758
- }
759
- }
760
- return c(O, f.currentOffset(), f.currentPosition()), {
761
- node: O
762
- };
763
- }
764
- function P(f) {
765
- const m = f.context(), O = m.currentType === 1 ? f.currentOffset() : m.offset, N = m.currentType === 1 ? m.endLoc : m.startLoc, L = i(2, O, N);
766
- L.items = [];
767
- let b = null, A = null;
768
- do {
769
- const F = b || f.nextToken();
770
- switch (b = null, F.type) {
771
- case 0:
772
- F.value == null && s(f, y.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(F)), L.items.push(u(f, F.value || ""));
773
- break;
774
- case 6:
775
- F.value == null && s(f, y.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(F)), L.items.push(E(f, F.value || ""));
776
- break;
777
- case 4:
778
- A = !0;
779
- break;
780
- case 5:
781
- F.value == null && s(f, y.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(F)), L.items.push(g(f, F.value || "", !!A)), A && (a(f, Ot.USE_MODULO_SYNTAX, m.lastStartLoc, 0, ie(F)), A = null);
782
- break;
783
- case 7:
784
- F.value == null && s(f, y.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(F)), L.items.push(I(f, F.value || ""));
785
- break;
786
- case 8: {
787
- const Z = k(f);
788
- L.items.push(Z.node), b = Z.nextConsumeToken || null;
789
- break;
790
- }
791
- }
792
- } while (m.currentType !== 14 && m.currentType !== 1);
793
- const K = m.currentType === 1 ? m.lastOffset : f.currentOffset(), ae = m.currentType === 1 ? m.lastEndLoc : f.currentPosition();
794
- return c(L, K, ae), L;
795
- }
796
- function S(f, m, O, N) {
797
- const L = f.context();
798
- let b = N.items.length === 0;
799
- const A = i(1, m, O);
800
- A.cases = [], A.cases.push(N);
801
- do {
802
- const K = P(f);
803
- b || (b = K.items.length === 0), A.cases.push(K);
804
- } while (L.currentType !== 14);
805
- return b && s(f, y.MUST_HAVE_MESSAGES_IN_PLURAL, O, 0), c(A, f.currentOffset(), f.currentPosition()), A;
806
- }
807
- function M(f) {
808
- const m = f.context(), { offset: O, startLoc: N } = m, L = P(f);
809
- return m.currentType === 14 ? L : S(f, O, N, L);
810
- }
811
- function R(f) {
812
- const m = Jr(f, Mn({}, e)), O = m.context(), N = i(0, O.offset, O.startLoc);
813
- return t && N.loc && (N.loc.source = f), N.body = M(m), e.onCacheKey && (N.cacheKey = e.onCacheKey(f)), O.currentType !== 14 && s(m, y.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, f[O.offset] || ""), c(N, m.currentOffset(), m.currentPosition()), N;
814
- }
815
- return { parse: R };
816
- }
817
- function ie(e) {
818
- if (e.type === 14)
819
- return "EOF";
820
- const t = (e.value || "").replace(/\r?\n/gu, "\\n");
821
- return t.length > 10 ? t.slice(0, 9) + "…" : t;
822
- }
823
- function ea(e, t = {}) {
824
- const n = {
825
- ast: e,
826
- helpers: /* @__PURE__ */ new Set()
827
- };
828
- return { context: () => n, helper: (a) => (n.helpers.add(a), a) };
829
- }
830
- function tn(e, t) {
831
- for (let n = 0; n < e.length; n++)
832
- $t(e[n], t);
833
- }
834
- function $t(e, t) {
835
- switch (e.type) {
836
- case 1:
837
- tn(e.cases, t), t.helper(
838
- "plural"
839
- /* HelperNameMap.PLURAL */
840
- );
841
- break;
842
- case 2:
843
- tn(e.items, t);
844
- break;
845
- case 6: {
846
- $t(e.key, t), t.helper(
847
- "linked"
848
- /* HelperNameMap.LINKED */
849
- ), t.helper(
850
- "type"
851
- /* HelperNameMap.TYPE */
852
- );
853
- break;
854
- }
855
- case 5:
856
- t.helper(
857
- "interpolate"
858
- /* HelperNameMap.INTERPOLATE */
859
- ), t.helper(
860
- "list"
861
- /* HelperNameMap.LIST */
862
- );
863
- break;
864
- case 4:
865
- t.helper(
866
- "interpolate"
867
- /* HelperNameMap.INTERPOLATE */
868
- ), t.helper(
869
- "named"
870
- /* HelperNameMap.NAMED */
871
- );
872
- break;
873
- }
874
- }
875
- function ta(e, t = {}) {
876
- const n = ea(e);
877
- n.helper(
878
- "normalize"
879
- /* HelperNameMap.NORMALIZE */
880
- ), e.body && $t(e.body, n);
881
- const r = n.context();
882
- e.helpers = Array.from(r.helpers);
883
- }
884
- function na(e) {
885
- const t = e.body;
886
- return t.type === 2 ? nn(t) : t.cases.forEach((n) => nn(n)), e;
887
- }
888
- function nn(e) {
889
- if (e.items.length === 1) {
890
- const t = e.items[0];
891
- (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
892
- } else {
893
- const t = [];
894
- for (let n = 0; n < e.items.length; n++) {
895
- const r = e.items[n];
896
- if (!(r.type === 3 || r.type === 9) || r.value == null)
897
- break;
898
- t.push(r.value);
899
- }
900
- if (t.length === e.items.length) {
901
- e.static = Fn(t);
902
- for (let n = 0; n < e.items.length; n++) {
903
- const r = e.items[n];
904
- (r.type === 3 || r.type === 9) && delete r.value;
905
- }
906
- }
907
- }
908
- }
909
- const ra = "minifier";
910
- function Ue(e) {
911
- switch (e.t = e.type, e.type) {
912
- case 0: {
913
- const t = e;
914
- Ue(t.body), t.b = t.body, delete t.body;
915
- break;
916
- }
917
- case 1: {
918
- const t = e, n = t.cases;
919
- for (let r = 0; r < n.length; r++)
920
- Ue(n[r]);
921
- t.c = n, delete t.cases;
922
- break;
923
- }
924
- case 2: {
925
- const t = e, n = t.items;
926
- for (let r = 0; r < n.length; r++)
927
- Ue(n[r]);
928
- t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
929
- break;
930
- }
931
- case 3:
932
- case 9:
933
- case 8:
934
- case 7: {
935
- const t = e;
936
- t.value && (t.v = t.value, delete t.value);
937
- break;
938
- }
939
- case 6: {
940
- const t = e;
941
- Ue(t.key), t.k = t.key, delete t.key, t.modifier && (Ue(t.modifier), t.m = t.modifier, delete t.modifier);
942
- break;
943
- }
944
- case 5: {
945
- const t = e;
946
- t.i = t.index, delete t.index;
947
- break;
948
- }
949
- case 4: {
950
- const t = e;
951
- t.k = t.key, delete t.key;
952
- break;
953
- }
954
- default:
955
- throw $e(y.UNHANDLED_MINIFIER_NODE_TYPE, null, {
956
- domain: ra,
957
- args: [e.type]
958
- });
959
- }
960
- delete e.type;
961
- }
962
- const aa = "parser";
963
- function sa(e, t) {
964
- const { filename: n, breakLineCode: r, needIndent: s } = t, a = t.location !== !1, i = {
965
- filename: n,
966
- code: "",
967
- column: 1,
968
- line: 1,
969
- offset: 0,
970
- map: void 0,
971
- breakLineCode: r,
972
- needIndent: s,
973
- indentLevel: 0
974
- };
975
- a && e.loc && (i.source = e.loc.source);
976
- const c = () => i;
977
- function u(P, S) {
978
- i.code += P;
979
- }
980
- function E(P, S = !0) {
981
- const M = S ? r : "";
982
- u(s ? M + " ".repeat(P) : M);
983
- }
984
- function g(P = !0) {
985
- const S = ++i.indentLevel;
986
- P && E(S);
987
- }
988
- function I(P = !0) {
989
- const S = --i.indentLevel;
990
- P && E(S);
991
- }
992
- function p() {
993
- E(i.indentLevel);
994
- }
995
- return {
996
- context: c,
997
- push: u,
998
- indent: g,
999
- deindent: I,
1000
- newline: p,
1001
- helper: (P) => `_${P}`,
1002
- needIndent: () => i.needIndent
1003
- };
1004
- }
1005
- function la(e, t) {
1006
- const { helper: n } = e;
1007
- e.push(`${n(
1008
- "linked"
1009
- /* HelperNameMap.LINKED */
1010
- )}(`), We(e, t.key), t.modifier ? (e.push(", "), We(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
1011
- }
1012
- function oa(e, t) {
1013
- const { helper: n, needIndent: r } = e;
1014
- e.push(`${n(
1015
- "normalize"
1016
- /* HelperNameMap.NORMALIZE */
1017
- )}([`), e.indent(r());
1018
- const s = t.items.length;
1019
- for (let a = 0; a < s && (We(e, t.items[a]), a !== s - 1); a++)
1020
- e.push(", ");
1021
- e.deindent(r()), e.push("])");
1022
- }
1023
- function ia(e, t) {
1024
- const { helper: n, needIndent: r } = e;
1025
- if (t.cases.length > 1) {
1026
- e.push(`${n(
1027
- "plural"
1028
- /* HelperNameMap.PLURAL */
1029
- )}([`), e.indent(r());
1030
- const s = t.cases.length;
1031
- for (let a = 0; a < s && (We(e, t.cases[a]), a !== s - 1); a++)
1032
- e.push(", ");
1033
- e.deindent(r()), e.push("])");
1034
- }
1035
- }
1036
- function ca(e, t) {
1037
- t.body ? We(e, t.body) : e.push("null");
1038
- }
1039
- function We(e, t) {
1040
- const { helper: n } = e;
1041
- switch (t.type) {
1042
- case 0:
1043
- ca(e, t);
1044
- break;
1045
- case 1:
1046
- ia(e, t);
1047
- break;
1048
- case 2:
1049
- oa(e, t);
1050
- break;
1051
- case 6:
1052
- la(e, t);
1053
- break;
1054
- case 8:
1055
- e.push(JSON.stringify(t.value), t);
1056
- break;
1057
- case 7:
1058
- e.push(JSON.stringify(t.value), t);
1059
- break;
1060
- case 5:
1061
- e.push(`${n(
1062
- "interpolate"
1063
- /* HelperNameMap.INTERPOLATE */
1064
- )}(${n(
1065
- "list"
1066
- /* HelperNameMap.LIST */
1067
- )}(${t.index}))`, t);
1068
- break;
1069
- case 4:
1070
- e.push(`${n(
1071
- "interpolate"
1072
- /* HelperNameMap.INTERPOLATE */
1073
- )}(${n(
1074
- "named"
1075
- /* HelperNameMap.NAMED */
1076
- )}(${JSON.stringify(t.key)}))`, t);
1077
- break;
1078
- case 9:
1079
- e.push(JSON.stringify(t.value), t);
1080
- break;
1081
- case 3:
1082
- e.push(JSON.stringify(t.value), t);
1083
- break;
1084
- default:
1085
- throw $e(y.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1086
- domain: aa,
1087
- args: [t.type]
1088
- });
1089
- }
1090
- }
1091
- const ua = (e, t = {}) => {
1092
- const n = zt(t.mode) ? t.mode : "normal", r = zt(t.filename) ? t.filename : "message.intl";
1093
- t.sourceMap;
1094
- const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
1095
- `, a = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], c = sa(e, {
1096
- filename: r,
1097
- breakLineCode: s,
1098
- needIndent: a
1099
- });
1100
- c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(a), i.length > 0 && (c.push(`const { ${Fn(i.map((g) => `${g}: _${g}`), ", ")} } = ctx`), c.newline()), c.push("return "), We(c, e), c.deindent(a), c.push("}"), delete e.helpers;
1101
- const { code: u, map: E } = c.context();
1102
- return {
1103
- ast: e,
1104
- code: u,
1105
- map: E ? E.toJSON() : void 0
1106
- // eslint-disable-line @typescript-eslint/no-explicit-any
1107
- };
1108
- };
1109
- function fa(e, t = {}) {
1110
- const n = Mn({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, c = zr(n).parse(e);
1111
- return r ? (a && na(c), s && Ue(c), { ast: c, code: "" }) : (ta(c, n), ua(c, n));
1112
- }
1113
- /*!
1114
- * core-base v9.14.5
1115
- * (c) 2025 kazuya kawaguchi
1116
- * Released under the MIT License.
1117
- */
1118
- function _a() {
1119
- typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (pe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (pe().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (pe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1120
- }
1121
- function fe(e) {
1122
- return w(e) && Yt(e) === 0 && (ue(e, "b") || ue(e, "body"));
1123
- }
1124
- const Un = ["b", "body"];
1125
- function ma(e) {
1126
- return ve(e, Un);
1127
- }
1128
- const wn = ["c", "cases"];
1129
- function Ea(e) {
1130
- return ve(e, wn, []);
1131
- }
1132
- const Vn = ["s", "static"];
1133
- function da(e) {
1134
- return ve(e, Vn);
1135
- }
1136
- const Wn = ["i", "items"];
1137
- function Na(e) {
1138
- return ve(e, Wn, []);
1139
- }
1140
- const $n = ["t", "type"];
1141
- function Yt(e) {
1142
- return ve(e, $n);
1143
- }
1144
- const Yn = ["v", "value"];
1145
- function ft(e, t) {
1146
- const n = ve(e, Yn);
1147
- if (n != null)
1148
- return n;
1149
- throw at(t);
1150
- }
1151
- const Gn = ["m", "modifier"];
1152
- function pa(e) {
1153
- return ve(e, Gn);
1154
- }
1155
- const Hn = ["k", "key"];
1156
- function Ta(e) {
1157
- const t = ve(e, Hn);
1158
- if (t)
1159
- return t;
1160
- throw at(
1161
- 6
1162
- /* NodeTypes.Linked */
1163
- );
1164
- }
1165
- function ve(e, t, n) {
1166
- for (let r = 0; r < t.length; r++) {
1167
- const s = t[r];
1168
- if (ue(e, s) && e[s] != null)
1169
- return e[s];
1170
- }
1171
- return n;
1172
- }
1173
- const xn = [
1174
- ...Un,
1175
- ...wn,
1176
- ...Vn,
1177
- ...Wn,
1178
- ...Hn,
1179
- ...Gn,
1180
- ...Yn,
1181
- ...$n
1182
- ];
1183
- function at(e) {
1184
- return new Error(`unhandled node type: ${e}`);
1185
- }
1186
- const Ae = [];
1187
- Ae[
1188
- 0
1189
- /* States.BEFORE_PATH */
1190
- ] = {
1191
- w: [
1192
- 0
1193
- /* States.BEFORE_PATH */
1194
- ],
1195
- i: [
1196
- 3,
1197
- 0
1198
- /* Actions.APPEND */
1199
- ],
1200
- "[": [
1201
- 4
1202
- /* States.IN_SUB_PATH */
1203
- ],
1204
- o: [
1205
- 7
1206
- /* States.AFTER_PATH */
1207
- ]
1208
- };
1209
- Ae[
1210
- 1
1211
- /* States.IN_PATH */
1212
- ] = {
1213
- w: [
1214
- 1
1215
- /* States.IN_PATH */
1216
- ],
1217
- ".": [
1218
- 2
1219
- /* States.BEFORE_IDENT */
1220
- ],
1221
- "[": [
1222
- 4
1223
- /* States.IN_SUB_PATH */
1224
- ],
1225
- o: [
1226
- 7
1227
- /* States.AFTER_PATH */
1228
- ]
1229
- };
1230
- Ae[
1231
- 2
1232
- /* States.BEFORE_IDENT */
1233
- ] = {
1234
- w: [
1235
- 2
1236
- /* States.BEFORE_IDENT */
1237
- ],
1238
- i: [
1239
- 3,
1240
- 0
1241
- /* Actions.APPEND */
1242
- ],
1243
- 0: [
1244
- 3,
1245
- 0
1246
- /* Actions.APPEND */
1247
- ]
1248
- };
1249
- Ae[
1250
- 3
1251
- /* States.IN_IDENT */
1252
- ] = {
1253
- i: [
1254
- 3,
1255
- 0
1256
- /* Actions.APPEND */
1257
- ],
1258
- 0: [
1259
- 3,
1260
- 0
1261
- /* Actions.APPEND */
1262
- ],
1263
- w: [
1264
- 1,
1265
- 1
1266
- /* Actions.PUSH */
1267
- ],
1268
- ".": [
1269
- 2,
1270
- 1
1271
- /* Actions.PUSH */
1272
- ],
1273
- "[": [
1274
- 4,
1275
- 1
1276
- /* Actions.PUSH */
1277
- ],
1278
- o: [
1279
- 7,
1280
- 1
1281
- /* Actions.PUSH */
1282
- ]
1283
- };
1284
- Ae[
1285
- 4
1286
- /* States.IN_SUB_PATH */
1287
- ] = {
1288
- "'": [
1289
- 5,
1290
- 0
1291
- /* Actions.APPEND */
1292
- ],
1293
- '"': [
1294
- 6,
1295
- 0
1296
- /* Actions.APPEND */
1297
- ],
1298
- "[": [
1299
- 4,
1300
- 2
1301
- /* Actions.INC_SUB_PATH_DEPTH */
1302
- ],
1303
- "]": [
1304
- 1,
1305
- 3
1306
- /* Actions.PUSH_SUB_PATH */
1307
- ],
1308
- o: 8,
1309
- l: [
1310
- 4,
1311
- 0
1312
- /* Actions.APPEND */
1313
- ]
1314
- };
1315
- Ae[
1316
- 5
1317
- /* States.IN_SINGLE_QUOTE */
1318
- ] = {
1319
- "'": [
1320
- 4,
1321
- 0
1322
- /* Actions.APPEND */
1323
- ],
1324
- o: 8,
1325
- l: [
1326
- 5,
1327
- 0
1328
- /* Actions.APPEND */
1329
- ]
1330
- };
1331
- Ae[
1332
- 6
1333
- /* States.IN_DOUBLE_QUOTE */
1334
- ] = {
1335
- '"': [
1336
- 4,
1337
- 0
1338
- /* Actions.APPEND */
1339
- ],
1340
- o: 8,
1341
- l: [
1342
- 6,
1343
- 0
1344
- /* Actions.APPEND */
1345
- ]
1346
- };
1347
- const Oa = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1348
- function ga(e) {
1349
- return Oa.test(e);
1350
- }
1351
- function La(e) {
1352
- const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
1353
- return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1354
- }
1355
- function Ia(e) {
1356
- if (e == null)
1357
- return "o";
1358
- switch (e.charCodeAt(0)) {
1359
- case 91:
1360
- // [
1361
- case 93:
1362
- // ]
1363
- case 46:
1364
- // .
1365
- case 34:
1366
- // "
1367
- case 39:
1368
- return e;
1369
- case 95:
1370
- // _
1371
- case 36:
1372
- // $
1373
- case 45:
1374
- return "i";
1375
- case 9:
1376
- // Tab (HT)
1377
- case 10:
1378
- // Newline (LF)
1379
- case 13:
1380
- // Return (CR)
1381
- case 160:
1382
- // No-break space (NBSP)
1383
- case 65279:
1384
- // Byte Order Mark (BOM)
1385
- case 8232:
1386
- // Line Separator (LS)
1387
- case 8233:
1388
- return "w";
1389
- }
1390
- return "i";
1391
- }
1392
- function va(e) {
1393
- const t = e.trim();
1394
- return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ga(t) ? La(t) : "*" + t;
1395
- }
1396
- function Aa(e) {
1397
- const t = [];
1398
- let n = -1, r = 0, s = 0, a, i, c, u, E, g, I;
1399
- const p = [];
1400
- p[
1401
- 0
1402
- /* Actions.APPEND */
1403
- ] = () => {
1404
- i === void 0 ? i = c : i += c;
1405
- }, p[
1406
- 1
1407
- /* Actions.PUSH */
1408
- ] = () => {
1409
- i !== void 0 && (t.push(i), i = void 0);
1410
- }, p[
1411
- 2
1412
- /* Actions.INC_SUB_PATH_DEPTH */
1413
- ] = () => {
1414
- p[
1415
- 0
1416
- /* Actions.APPEND */
1417
- ](), s++;
1418
- }, p[
1419
- 3
1420
- /* Actions.PUSH_SUB_PATH */
1421
- ] = () => {
1422
- if (s > 0)
1423
- s--, r = 4, p[
1424
- 0
1425
- /* Actions.APPEND */
1426
- ]();
1427
- else {
1428
- if (s = 0, i === void 0 || (i = va(i), i === !1))
1429
- return !1;
1430
- p[
1431
- 1
1432
- /* Actions.PUSH */
1433
- ]();
1434
- }
1435
- };
1436
- function h() {
1437
- const k = e[n + 1];
1438
- if (r === 5 && k === "'" || r === 6 && k === '"')
1439
- return n++, c = "\\" + k, p[
1440
- 0
1441
- /* Actions.APPEND */
1442
- ](), !0;
1443
- }
1444
- for (; r !== null; )
1445
- if (n++, a = e[n], !(a === "\\" && h())) {
1446
- if (u = Ia(a), I = Ae[r], E = I[u] || I.l || 8, E === 8 || (r = E[0], E[1] !== void 0 && (g = p[E[1]], g && (c = a, g() === !1))))
1447
- return;
1448
- if (r === 7)
1449
- return t;
1450
- }
1451
- }
1452
- const rn = /* @__PURE__ */ new Map();
1453
- function ba(e, t) {
1454
- return w(e) ? e[t] : null;
1455
- }
1456
- function Ca(e, t) {
1457
- if (!w(e))
1458
- return null;
1459
- let n = rn.get(t);
1460
- if (n || (n = Aa(t), n && rn.set(t, n)), !n)
1461
- return null;
1462
- const r = n.length;
1463
- let s = e, a = 0;
1464
- for (; a < r; ) {
1465
- const i = n[a];
1466
- if (xn.includes(i) && fe(s))
1467
- return null;
1468
- const c = s[i];
1469
- if (c === void 0 || x(s))
1470
- return null;
1471
- s = c, a++;
1472
- }
1473
- return s;
1474
- }
1475
- const ha = (e) => e, Pa = (e) => "", Sa = "text", Da = (e) => e.length === 0 ? "" : Rr(e), Ra = Dr;
1476
- function an(e, t) {
1477
- return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
1478
- }
1479
- function ya(e) {
1480
- const t = Q(e.pluralIndex) ? e.pluralIndex : -1;
1481
- return e.named && (Q(e.named.count) || Q(e.named.n)) ? Q(e.named.count) ? e.named.count : Q(e.named.n) ? e.named.n : t : t;
1482
- }
1483
- function ka(e, t) {
1484
- t.count || (t.count = e), t.n || (t.n = e);
1485
- }
1486
- function Ma(e = {}) {
1487
- const t = e.locale, n = ya(e), r = w(e.pluralRules) && C(t) && x(e.pluralRules[t]) ? e.pluralRules[t] : an, s = w(e.pluralRules) && C(t) && x(e.pluralRules[t]) ? an : void 0, a = (M) => M[r(n, M.length, s)], i = e.list || [], c = (M) => i[M], u = e.named || Y();
1488
- Q(e.pluralIndex) && ka(n, u);
1489
- const E = (M) => u[M];
1490
- function g(M) {
1491
- const R = x(e.messages) ? e.messages(M) : w(e.messages) ? e.messages[M] : !1;
1492
- return R || (e.parent ? e.parent.message(M) : Pa);
1493
- }
1494
- const I = (M) => e.modifiers ? e.modifiers[M] : ha, p = U(e.processor) && x(e.processor.normalize) ? e.processor.normalize : Da, h = U(e.processor) && x(e.processor.interpolate) ? e.processor.interpolate : Ra, k = U(e.processor) && C(e.processor.type) ? e.processor.type : Sa, S = {
1495
- list: c,
1496
- named: E,
1497
- plural: a,
1498
- linked: (M, ...R) => {
1499
- const [f, m] = R;
1500
- let O = "text", N = "";
1501
- R.length === 1 ? w(f) ? (N = f.modifier || N, O = f.type || O) : C(f) && (N = f || N) : R.length === 2 && (C(f) && (N = f || N), C(m) && (O = m || O));
1502
- const L = g(M)(S), b = (
1503
- // The message in vnode resolved with linked are returned as an array by processor.nomalize
1504
- O === "vnode" && J(L) && N ? L[0] : L
1505
- );
1506
- return N ? I(N)(b, O) : b;
1507
- },
1508
- message: g,
1509
- type: k,
1510
- interpolate: h,
1511
- normalize: p,
1512
- values: z(Y(), i, u)
1513
- };
1514
- return S;
1515
- }
1516
- let st = null;
1517
- function Fa(e) {
1518
- st = e;
1519
- }
1520
- function Ua(e, t, n) {
1521
- st && st.emit("i18n:init", {
1522
- timestamp: Date.now(),
1523
- i18n: e,
1524
- version: t,
1525
- meta: n
1526
- });
1527
- }
1528
- const wa = /* @__PURE__ */ Va(
1529
- "function:translate"
1530
- /* IntlifyDevToolsHooks.FunctionTranslate */
1531
- );
1532
- function Va(e) {
1533
- return (t) => st && st.emit(e, t);
1534
- }
1535
- const Kn = Ot.__EXTEND_POINT__, he = Tt(Kn), te = {
1536
- NOT_FOUND_KEY: Kn,
1537
- // 2
1538
- FALLBACK_TO_TRANSLATE: he(),
1539
- // 3
1540
- CANNOT_FORMAT_NUMBER: he(),
1541
- // 4
1542
- FALLBACK_TO_NUMBER_FORMAT: he(),
1543
- // 5
1544
- CANNOT_FORMAT_DATE: he(),
1545
- // 6
1546
- FALLBACK_TO_DATE_FORMAT: he(),
1547
- // 7
1548
- EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: he(),
1549
- // 8
1550
- __EXTEND_POINT__: he()
1551
- // 9
1552
- }, Wa = {
1553
- [te.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
1554
- [te.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
1555
- [te.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
1556
- [te.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
1557
- [te.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
1558
- [te.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
1559
- [te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
1560
- };
1561
- function De(e, ...t) {
1562
- return Wt(Wa[e], ...t);
1563
- }
1564
- const Bn = y.__EXTEND_POINT__, Pe = Tt(Bn), q = {
1565
- INVALID_ARGUMENT: Bn,
1566
- // 17
1567
- INVALID_DATE_ARGUMENT: Pe(),
1568
- // 18
1569
- INVALID_ISO_DATE_ARGUMENT: Pe(),
1570
- // 19
1571
- NOT_SUPPORT_NON_STRING_MESSAGE: Pe(),
1572
- // 20
1573
- NOT_SUPPORT_LOCALE_PROMISE_VALUE: Pe(),
1574
- // 21
1575
- NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: Pe(),
1576
- // 22
1577
- NOT_SUPPORT_LOCALE_TYPE: Pe(),
1578
- // 23
1579
- __EXTEND_POINT__: Pe()
1580
- // 24
1581
- };
1582
- function me(e) {
1583
- return $e(e, null, process.env.NODE_ENV !== "production" ? { messages: $a } : void 0);
1584
- }
1585
- const $a = {
1586
- [q.INVALID_ARGUMENT]: "Invalid arguments",
1587
- [q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1588
- [q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
1589
- [q.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
1590
- [q.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
1591
- [q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
1592
- [q.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
1593
- };
1594
- function Gt(e, t) {
1595
- return t.locale != null ? sn(t.locale) : sn(e.locale);
1596
- }
1597
- let At;
1598
- function sn(e) {
1599
- if (C(e))
1600
- return e;
1601
- if (x(e)) {
1602
- if (e.resolvedOnce && At != null)
1603
- return At;
1604
- if (e.constructor.name === "Function") {
1605
- const t = e();
1606
- if (Sr(t))
1607
- throw me(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1608
- return At = t;
1609
- } else
1610
- throw me(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1611
- } else
1612
- throw me(q.NOT_SUPPORT_LOCALE_TYPE);
1613
- }
1614
- function Ya(e, t, n) {
1615
- return [.../* @__PURE__ */ new Set([
1616
- n,
1617
- ...J(t) ? t : w(t) ? Object.keys(t) : C(t) ? [t] : [n]
1618
- ])];
1619
- }
1620
- function Xn(e, t, n) {
1621
- const r = C(n) ? n : lt, s = e;
1622
- s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
1623
- let a = s.__localeChainCache.get(r);
1624
- if (!a) {
1625
- a = [];
1626
- let i = [n];
1627
- for (; J(i); )
1628
- i = ln(a, i, t);
1629
- const c = J(t) || !U(t) ? t : t.default ? t.default : null;
1630
- i = C(c) ? [c] : c, J(i) && ln(a, i, !1), s.__localeChainCache.set(r, a);
1631
- }
1632
- return a;
1633
- }
1634
- function ln(e, t, n) {
1635
- let r = !0;
1636
- for (let s = 0; s < t.length && H(r); s++) {
1637
- const a = t[s];
1638
- C(a) && (r = Ga(e, t[s], n));
1639
- }
1640
- return r;
1641
- }
1642
- function Ga(e, t, n) {
1643
- let r;
1644
- const s = t.split("-");
1645
- do {
1646
- const a = s.join("-");
1647
- r = Ha(e, a, n), s.splice(-1, 1);
1648
- } while (s.length && r === !0);
1649
- return r;
1650
- }
1651
- function Ha(e, t, n) {
1652
- let r = !1;
1653
- if (!e.includes(t) && (r = !0, t)) {
1654
- r = t[t.length - 1] !== "!";
1655
- const s = t.replace(/!/g, "");
1656
- e.push(s), (J(n) || U(n)) && n[s] && (r = n[s]);
1657
- }
1658
- return r;
1659
- }
1660
- const xa = "9.14.5", gt = -1, lt = "en-US", Et = "", on = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1661
- function Ka() {
1662
- return {
1663
- upper: (e, t) => t === "text" && C(e) ? e.toUpperCase() : t === "vnode" && w(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1664
- lower: (e, t) => t === "text" && C(e) ? e.toLowerCase() : t === "vnode" && w(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1665
- capitalize: (e, t) => t === "text" && C(e) ? on(e) : t === "vnode" && w(e) && "__v_isVNode" in e ? on(e.children) : e
1666
- };
1667
- }
1668
- let jn;
1669
- function cn(e) {
1670
- jn = e;
1671
- }
1672
- let Jn;
1673
- function Ba(e) {
1674
- Jn = e;
1675
- }
1676
- let qn;
1677
- function Xa(e) {
1678
- qn = e;
1679
- }
1680
- let Qn = null;
1681
- const ja = /* @__NO_SIDE_EFFECTS__ */ (e) => {
1682
- Qn = e;
1683
- }, Ja = /* @__NO_SIDE_EFFECTS__ */ () => Qn;
1684
- let Zn = null;
1685
- const un = (e) => {
1686
- Zn = e;
1687
- }, qa = () => Zn;
1688
- let fn = 0;
1689
- function Qa(e = {}) {
1690
- const t = x(e.onWarn) ? e.onWarn : Ee, n = C(e.version) ? e.version : xa, r = C(e.locale) || x(e.locale) ? e.locale : lt, s = x(r) ? lt : r, a = J(e.fallbackLocale) || U(e.fallbackLocale) || C(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = U(e.messages) ? e.messages : bt(s), c = U(e.datetimeFormats) ? e.datetimeFormats : bt(s), u = U(e.numberFormats) ? e.numberFormats : bt(s), E = z(Y(), e.modifiers, Ka()), g = e.pluralRules || Y(), I = x(e.missing) ? e.missing : null, p = H(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, h = H(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, k = !!e.fallbackFormat, P = !!e.unresolving, S = x(e.postTranslation) ? e.postTranslation : null, M = U(e.processor) ? e.processor : null, R = H(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, f = !!e.escapeParameter, m = x(e.messageCompiler) ? e.messageCompiler : jn;
1691
- process.env.NODE_ENV !== "production" && x(e.messageCompiler) && Dn(De(te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1692
- const O = x(e.messageResolver) ? e.messageResolver : Jn || ba, N = x(e.localeFallbacker) ? e.localeFallbacker : qn || Ya, L = w(e.fallbackContext) ? e.fallbackContext : void 0, b = e, A = w(b.__datetimeFormatters) ? b.__datetimeFormatters : /* @__PURE__ */ new Map(), K = w(b.__numberFormatters) ? b.__numberFormatters : /* @__PURE__ */ new Map(), ae = w(b.__meta) ? b.__meta : {};
1693
- fn++;
1694
- const F = {
1695
- version: n,
1696
- cid: fn,
1697
- locale: r,
1698
- fallbackLocale: a,
1699
- messages: i,
1700
- modifiers: E,
1701
- pluralRules: g,
1702
- missing: I,
1703
- missingWarn: p,
1704
- fallbackWarn: h,
1705
- fallbackFormat: k,
1706
- unresolving: P,
1707
- postTranslation: S,
1708
- processor: M,
1709
- warnHtmlMessage: R,
1710
- escapeParameter: f,
1711
- messageCompiler: m,
1712
- messageResolver: O,
1713
- localeFallbacker: N,
1714
- fallbackContext: L,
1715
- onWarn: t,
1716
- __meta: ae
1717
- };
1718
- return F.datetimeFormats = c, F.numberFormats = u, F.__datetimeFormatters = A, F.__numberFormatters = K, process.env.NODE_ENV !== "production" && (F.__v_emitter = b.__v_emitter != null ? b.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Ua(F, n, ae), F;
1719
- }
1720
- const bt = (e) => ({ [e]: Y() });
1721
- function Lt(e, t) {
1722
- return e instanceof RegExp ? e.test(t) : e;
1723
- }
1724
- function zn(e, t) {
1725
- return e instanceof RegExp ? e.test(t) : e;
1726
- }
1727
- function Ht(e, t, n, r, s) {
1728
- const { missing: a, onWarn: i } = e;
1729
- if (process.env.NODE_ENV !== "production") {
1730
- const c = e.__v_emitter;
1731
- c && c.emit("missing", {
1732
- locale: n,
1733
- key: t,
1734
- type: s,
1735
- groupId: `${s}:${t}`
1736
- });
1737
- }
1738
- if (a !== null) {
1739
- const c = a(e, n, t, s);
1740
- return C(c) ? c : t;
1741
- } else
1742
- return process.env.NODE_ENV !== "production" && zn(r, t) && i(De(te.NOT_FOUND_KEY, { key: t, locale: n })), t;
1743
- }
1744
- function rt(e, t, n) {
1745
- const r = e;
1746
- r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
1747
- }
1748
- function er(e, t) {
1749
- return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
1750
- }
1751
- function Za(e, t) {
1752
- const n = t.indexOf(e);
1753
- if (n === -1)
1754
- return !1;
1755
- for (let r = n + 1; r < t.length; r++)
1756
- if (er(e, t[r]))
1757
- return !0;
1758
- return !1;
1759
- }
1760
- function Ct(e) {
1761
- return (n) => za(n, e);
1762
- }
1763
- function za(e, t) {
1764
- const n = ma(t);
1765
- if (n == null)
1766
- throw at(
1767
- 0
1768
- /* NodeTypes.Resource */
1769
- );
1770
- if (Yt(n) === 1) {
1771
- const a = Ea(n);
1772
- return e.plural(a.reduce((i, c) => [
1773
- ...i,
1774
- _n(e, c)
1775
- ], []));
1776
- } else
1777
- return _n(e, n);
1778
- }
1779
- function _n(e, t) {
1780
- const n = da(t);
1781
- if (n != null)
1782
- return e.type === "text" ? n : e.normalize([n]);
1783
- {
1784
- const r = Na(t).reduce((s, a) => [...s, Pt(e, a)], []);
1785
- return e.normalize(r);
1786
- }
1787
- }
1788
- function Pt(e, t) {
1789
- const n = Yt(t);
1790
- switch (n) {
1791
- case 3:
1792
- return ft(t, n);
1793
- case 9:
1794
- return ft(t, n);
1795
- case 4: {
1796
- const r = t;
1797
- if (ue(r, "k") && r.k)
1798
- return e.interpolate(e.named(r.k));
1799
- if (ue(r, "key") && r.key)
1800
- return e.interpolate(e.named(r.key));
1801
- throw at(n);
1802
- }
1803
- case 5: {
1804
- const r = t;
1805
- if (ue(r, "i") && Q(r.i))
1806
- return e.interpolate(e.list(r.i));
1807
- if (ue(r, "index") && Q(r.index))
1808
- return e.interpolate(e.list(r.index));
1809
- throw at(n);
1810
- }
1811
- case 6: {
1812
- const r = t, s = pa(r), a = Ta(r);
1813
- return e.linked(Pt(e, a), s ? Pt(e, s) : void 0, e.type);
1814
- }
1815
- case 7:
1816
- return ft(t, n);
1817
- case 8:
1818
- return ft(t, n);
1819
- default:
1820
- throw new Error(`unhandled node on format message part: ${n}`);
1821
- }
1822
- }
1823
- const es = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1824
- function tr(e, t) {
1825
- t && Gr(e) && Ee(Wt(es, { source: e }));
1826
- }
1827
- const nr = (e) => e;
1828
- let we = Y();
1829
- function rr(e) {
1830
- e.code === Ot.USE_MODULO_SYNTAX && Ee(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
1831
- reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
1832
- (message compiler warning message: ${e.message})`);
1833
- }
1834
- function ar(e, t = {}) {
1835
- let n = !1;
1836
- const r = t.onError || $r;
1837
- return t.onError = (s) => {
1838
- n = !0, r(s);
1839
- }, { ...fa(e, t), detectError: n };
1840
- }
1841
- const ts = /* @__NO_SIDE_EFFECTS__ */ (e, t) => {
1842
- if (!C(e))
1843
- throw me(q.NOT_SUPPORT_NON_STRING_MESSAGE);
1844
- process.env.NODE_ENV !== "production" && (t.onWarn = rr);
1845
- {
1846
- const n = H(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1847
- process.env.NODE_ENV !== "production" && tr(e, n);
1848
- const s = (t.onCacheKey || nr)(e), a = we[s];
1849
- if (a)
1850
- return a;
1851
- const { code: i, detectError: c } = ar(e, t), u = new Function(`return ${i}`)();
1852
- return c ? u : we[s] = u;
1853
- }
1854
- };
1855
- function ns(e, t) {
1856
- if (process.env.NODE_ENV !== "production" && (t.onWarn = rr), __INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && C(e)) {
1857
- const n = H(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1858
- process.env.NODE_ENV !== "production" && tr(e, n);
1859
- const s = (t.onCacheKey || nr)(e), a = we[s];
1860
- if (a)
1861
- return a;
1862
- const { ast: i, detectError: c } = ar(e, {
1863
- ...t,
1864
- location: process.env.NODE_ENV !== "production",
1865
- jit: !0
1866
- }), u = Ct(i);
1867
- return c ? u : we[s] = u;
1868
- } else {
1869
- if (process.env.NODE_ENV !== "production" && !fe(e))
1870
- return Ee(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
1871
- const n = e.cacheKey;
1872
- if (n) {
1873
- const r = we[n];
1874
- return r || (we[n] = Ct(e));
1875
- } else
1876
- return Ct(e);
1877
- }
1878
- }
1879
- const mn = () => "", oe = (e) => x(e);
1880
- function En(e, ...t) {
1881
- const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: i, messages: c } = e, [u, E] = St(...t), g = H(E.missingWarn) ? E.missingWarn : e.missingWarn, I = H(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, p = H(E.escapeParameter) ? E.escapeParameter : e.escapeParameter, h = !!E.resolvedMessage, k = C(E.default) || H(E.default) ? H(E.default) ? a ? u : () => u : E.default : n ? a ? u : () => u : "", P = n || k !== "", S = Gt(e, E);
1882
- p && rs(E);
1883
- let [M, R, f] = h ? [
1884
- u,
1885
- S,
1886
- c[S] || Y()
1887
- ] : sr(e, u, S, i, I, g), m = M, O = u;
1888
- if (!h && !(C(m) || fe(m) || oe(m)) && P && (m = k, O = m), !h && (!(C(m) || fe(m) || oe(m)) || !C(R)))
1889
- return s ? gt : u;
1890
- if (process.env.NODE_ENV !== "production" && C(m) && e.messageCompiler == null)
1891
- return Ee(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u;
1892
- let N = !1;
1893
- const L = () => {
1894
- N = !0;
1895
- }, b = oe(m) ? m : lr(e, u, R, m, O, L);
1896
- if (N)
1897
- return m;
1898
- const A = os(e, R, f, E), K = Ma(A), ae = as(e, b, K);
1899
- let F = r ? r(ae, u) : ae;
1900
- if (p && C(F) && (F = hr(F)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1901
- const Z = {
1902
- timestamp: Date.now(),
1903
- key: C(u) ? u : oe(m) ? m.key : "",
1904
- locale: R || (oe(m) ? m.locale : ""),
1905
- format: C(m) ? m : oe(m) ? m.source : "",
1906
- message: F
1907
- };
1908
- Z.meta = z({}, e.__meta, /* @__PURE__ */ Ja() || {}), wa(Z);
1909
- }
1910
- return F;
1911
- }
1912
- function rs(e) {
1913
- J(e.list) ? e.list = e.list.map((t) => C(t) ? qt(t) : t) : w(e.named) && Object.keys(e.named).forEach((t) => {
1914
- C(e.named[t]) && (e.named[t] = qt(e.named[t]));
1915
- });
1916
- }
1917
- function sr(e, t, n, r, s, a) {
1918
- const { messages: i, onWarn: c, messageResolver: u, localeFallbacker: E } = e, g = E(e, r, n);
1919
- let I = Y(), p, h = null, k = n, P = null;
1920
- const S = "translate";
1921
- for (let M = 0; M < g.length; M++) {
1922
- if (p = P = g[M], process.env.NODE_ENV !== "production" && n !== p && !er(n, p) && Lt(s, t) && c(De(te.FALLBACK_TO_TRANSLATE, {
1923
- key: t,
1924
- target: p
1925
- })), process.env.NODE_ENV !== "production" && n !== p) {
1926
- const O = e.__v_emitter;
1927
- O && O.emit("fallback", {
1928
- type: S,
1929
- key: t,
1930
- from: k,
1931
- to: P,
1932
- groupId: `${S}:${t}`
1933
- });
1934
- }
1935
- I = i[p] || Y();
1936
- let R = null, f, m;
1937
- if (process.env.NODE_ENV !== "production" && Te && (R = window.performance.now(), f = "intlify-message-resolve-start", m = "intlify-message-resolve-end", se && se(f)), (h = u(I, t)) === null && (h = I[t]), process.env.NODE_ENV !== "production" && Te) {
1938
- const O = window.performance.now(), N = e.__v_emitter;
1939
- N && R && h && N.emit("message-resolve", {
1940
- type: "message-resolve",
1941
- key: t,
1942
- message: h,
1943
- time: O - R,
1944
- groupId: `${S}:${t}`
1945
- }), f && m && se && Se && (se(m), Se("intlify message resolve", f, m));
1946
- }
1947
- if (C(h) || fe(h) || oe(h))
1948
- break;
1949
- if (!Za(p, g)) {
1950
- const O = Ht(
1951
- e,
1952
- // eslint-disable-line @typescript-eslint/no-explicit-any
1953
- t,
1954
- p,
1955
- a,
1956
- S
1957
- );
1958
- O !== t && (h = O);
1959
- }
1960
- k = P;
1961
- }
1962
- return [h, p, I];
1963
- }
1964
- function lr(e, t, n, r, s, a) {
1965
- const { messageCompiler: i, warnHtmlMessage: c } = e;
1966
- if (oe(r)) {
1967
- const p = r;
1968
- return p.locale = p.locale || n, p.key = p.key || t, p;
1969
- }
1970
- if (i == null) {
1971
- const p = () => r;
1972
- return p.locale = n, p.key = t, p;
1973
- }
1974
- let u = null, E, g;
1975
- process.env.NODE_ENV !== "production" && Te && (u = window.performance.now(), E = "intlify-message-compilation-start", g = "intlify-message-compilation-end", se && se(E));
1976
- const I = i(r, ss(e, n, s, r, c, a));
1977
- if (process.env.NODE_ENV !== "production" && Te) {
1978
- const p = window.performance.now(), h = e.__v_emitter;
1979
- h && u && h.emit("message-compilation", {
1980
- type: "message-compilation",
1981
- message: r,
1982
- time: p - u,
1983
- groupId: `translate:${t}`
1984
- }), E && g && se && Se && (se(g), Se("intlify message compilation", E, g));
1985
- }
1986
- return I.locale = n, I.key = t, I.source = r, I;
1987
- }
1988
- function as(e, t, n) {
1989
- let r = null, s, a;
1990
- process.env.NODE_ENV !== "production" && Te && (r = window.performance.now(), s = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", se && se(s));
1991
- const i = t(n);
1992
- if (process.env.NODE_ENV !== "production" && Te) {
1993
- const c = window.performance.now(), u = e.__v_emitter;
1994
- u && r && u.emit("message-evaluation", {
1995
- type: "message-evaluation",
1996
- value: i,
1997
- time: c - r,
1998
- groupId: `translate:${t.key}`
1999
- }), s && a && se && Se && (se(a), Se("intlify message evaluation", s, a));
2000
- }
2001
- return i;
2002
- }
2003
- function St(...e) {
2004
- const [t, n, r] = e, s = Y();
2005
- if (!C(t) && !Q(t) && !oe(t) && !fe(t))
2006
- throw me(q.INVALID_ARGUMENT);
2007
- const a = Q(t) ? String(t) : (oe(t), t);
2008
- return Q(n) ? s.plural = n : C(n) ? s.default = n : U(n) && !pt(n) ? s.named = n : J(n) && (s.list = n), Q(r) ? s.plural = r : C(r) ? s.default = r : U(r) && z(s, r), [a, s];
2009
- }
2010
- function ss(e, t, n, r, s, a) {
2011
- return {
2012
- locale: t,
2013
- key: n,
2014
- warnHtmlMessage: s,
2015
- onError: (i) => {
2016
- if (a && a(i), process.env.NODE_ENV !== "production") {
2017
- const c = ls(r), u = `Message compilation error: ${i.message}`, E = i.location && c && yr(c, i.location.start.offset, i.location.end.offset), g = e.__v_emitter;
2018
- g && c && g.emit("compile-error", {
2019
- message: c,
2020
- error: i.message,
2021
- start: i.location && i.location.start.offset,
2022
- end: i.location && i.location.end.offset,
2023
- groupId: `translate:${n}`
2024
- }), console.error(E ? `${u}
2025
- ${E}` : u);
2026
- } else
2027
- throw i;
2028
- },
2029
- onCacheKey: (i) => vr(t, n, i)
2030
- };
2031
- }
2032
- function ls(e) {
2033
- if (C(e))
2034
- return e;
2035
- if (e.loc && e.loc.source)
2036
- return e.loc.source;
2037
- }
2038
- function os(e, t, n, r) {
2039
- const { modifiers: s, pluralRules: a, messageResolver: i, fallbackLocale: c, fallbackWarn: u, missingWarn: E, fallbackContext: g } = e, p = {
2040
- locale: t,
2041
- modifiers: s,
2042
- pluralRules: a,
2043
- messages: (h) => {
2044
- let k = i(n, h);
2045
- if (k == null && g) {
2046
- const [, , P] = sr(g, h, t, c, u, E);
2047
- k = i(P, h);
2048
- }
2049
- if (C(k) || fe(k)) {
2050
- let P = !1;
2051
- const M = lr(e, h, t, k, h, () => {
2052
- P = !0;
2053
- });
2054
- return P ? mn : M;
2055
- } else return oe(k) ? k : mn;
2056
- }
2057
- };
2058
- return e.processor && (p.processor = e.processor), r.list && (p.list = r.list), r.named && (p.named = r.named), Q(r.plural) && (p.pluralIndex = r.plural), p;
2059
- }
2060
- const dn = typeof Intl < "u", or = {
2061
- dateTimeFormat: dn && typeof Intl.DateTimeFormat < "u",
2062
- numberFormat: dn && typeof Intl.NumberFormat < "u"
2063
- };
2064
- function Nn(e, ...t) {
2065
- const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: i } = e, { __datetimeFormatters: c } = e;
2066
- if (process.env.NODE_ENV !== "production" && !or.dateTimeFormat)
2067
- return a(De(te.CANNOT_FORMAT_DATE)), Et;
2068
- const [u, E, g, I] = Dt(...t), p = H(g.missingWarn) ? g.missingWarn : e.missingWarn, h = H(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, k = !!g.part, P = Gt(e, g), S = i(
2069
- e,
2070
- // eslint-disable-line @typescript-eslint/no-explicit-any
2071
- s,
2072
- P
2073
- );
2074
- if (!C(u) || u === "")
2075
- return new Intl.DateTimeFormat(P, I).format(E);
2076
- let M = {}, R, f = null, m = P, O = null;
2077
- const N = "datetime format";
2078
- for (let A = 0; A < S.length; A++) {
2079
- if (R = O = S[A], process.env.NODE_ENV !== "production" && P !== R && Lt(h, u) && a(De(te.FALLBACK_TO_DATE_FORMAT, {
2080
- key: u,
2081
- target: R
2082
- })), process.env.NODE_ENV !== "production" && P !== R) {
2083
- const K = e.__v_emitter;
2084
- K && K.emit("fallback", {
2085
- type: N,
2086
- key: u,
2087
- from: m,
2088
- to: O,
2089
- groupId: `${N}:${u}`
2090
- });
2091
- }
2092
- if (M = n[R] || {}, f = M[u], U(f))
2093
- break;
2094
- Ht(e, u, R, p, N), m = O;
2095
- }
2096
- if (!U(f) || !C(R))
2097
- return r ? gt : u;
2098
- let L = `${R}__${u}`;
2099
- pt(I) || (L = `${L}__${JSON.stringify(I)}`);
2100
- let b = c.get(L);
2101
- return b || (b = new Intl.DateTimeFormat(R, z({}, f, I)), c.set(L, b)), k ? b.formatToParts(E) : b.format(E);
2102
- }
2103
- const ir = [
2104
- "localeMatcher",
2105
- "weekday",
2106
- "era",
2107
- "year",
2108
- "month",
2109
- "day",
2110
- "hour",
2111
- "minute",
2112
- "second",
2113
- "timeZoneName",
2114
- "formatMatcher",
2115
- "hour12",
2116
- "timeZone",
2117
- "dateStyle",
2118
- "timeStyle",
2119
- "calendar",
2120
- "dayPeriod",
2121
- "numberingSystem",
2122
- "hourCycle",
2123
- "fractionalSecondDigits"
2124
- ];
2125
- function Dt(...e) {
2126
- const [t, n, r, s] = e, a = Y();
2127
- let i = Y(), c;
2128
- if (C(t)) {
2129
- const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
2130
- if (!u)
2131
- throw me(q.INVALID_ISO_DATE_ARGUMENT);
2132
- const E = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
2133
- c = new Date(E);
2134
- try {
2135
- c.toISOString();
2136
- } catch {
2137
- throw me(q.INVALID_ISO_DATE_ARGUMENT);
2138
- }
2139
- } else if (br(t)) {
2140
- if (isNaN(t.getTime()))
2141
- throw me(q.INVALID_DATE_ARGUMENT);
2142
- c = t;
2143
- } else if (Q(t))
2144
- c = t;
2145
- else
2146
- throw me(q.INVALID_ARGUMENT);
2147
- return C(n) ? a.key = n : U(n) && Object.keys(n).forEach((u) => {
2148
- ir.includes(u) ? i[u] = n[u] : a[u] = n[u];
2149
- }), C(r) ? a.locale = r : U(r) && (i = r), U(s) && (i = s), [a.key || "", c, a, i];
2150
- }
2151
- function pn(e, t, n) {
2152
- const r = e;
2153
- for (const s in n) {
2154
- const a = `${t}__${s}`;
2155
- r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
2156
- }
2157
- }
2158
- function Tn(e, ...t) {
2159
- const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: i } = e, { __numberFormatters: c } = e;
2160
- if (process.env.NODE_ENV !== "production" && !or.numberFormat)
2161
- return a(De(te.CANNOT_FORMAT_NUMBER)), Et;
2162
- const [u, E, g, I] = Rt(...t), p = H(g.missingWarn) ? g.missingWarn : e.missingWarn, h = H(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, k = !!g.part, P = Gt(e, g), S = i(
2163
- e,
2164
- // eslint-disable-line @typescript-eslint/no-explicit-any
2165
- s,
2166
- P
2167
- );
2168
- if (!C(u) || u === "")
2169
- return new Intl.NumberFormat(P, I).format(E);
2170
- let M = {}, R, f = null, m = P, O = null;
2171
- const N = "number format";
2172
- for (let A = 0; A < S.length; A++) {
2173
- if (R = O = S[A], process.env.NODE_ENV !== "production" && P !== R && Lt(h, u) && a(De(te.FALLBACK_TO_NUMBER_FORMAT, {
2174
- key: u,
2175
- target: R
2176
- })), process.env.NODE_ENV !== "production" && P !== R) {
2177
- const K = e.__v_emitter;
2178
- K && K.emit("fallback", {
2179
- type: N,
2180
- key: u,
2181
- from: m,
2182
- to: O,
2183
- groupId: `${N}:${u}`
2184
- });
2185
- }
2186
- if (M = n[R] || {}, f = M[u], U(f))
2187
- break;
2188
- Ht(e, u, R, p, N), m = O;
2189
- }
2190
- if (!U(f) || !C(R))
2191
- return r ? gt : u;
2192
- let L = `${R}__${u}`;
2193
- pt(I) || (L = `${L}__${JSON.stringify(I)}`);
2194
- let b = c.get(L);
2195
- return b || (b = new Intl.NumberFormat(R, z({}, f, I)), c.set(L, b)), k ? b.formatToParts(E) : b.format(E);
2196
- }
2197
- const cr = [
2198
- "localeMatcher",
2199
- "style",
2200
- "currency",
2201
- "currencyDisplay",
2202
- "currencySign",
2203
- "useGrouping",
2204
- "minimumIntegerDigits",
2205
- "minimumFractionDigits",
2206
- "maximumFractionDigits",
2207
- "minimumSignificantDigits",
2208
- "maximumSignificantDigits",
2209
- "compactDisplay",
2210
- "notation",
2211
- "signDisplay",
2212
- "unit",
2213
- "unitDisplay",
2214
- "roundingMode",
2215
- "roundingPriority",
2216
- "roundingIncrement",
2217
- "trailingZeroDisplay"
2218
- ];
2219
- function Rt(...e) {
2220
- const [t, n, r, s] = e, a = Y();
2221
- let i = Y();
2222
- if (!Q(t))
2223
- throw me(q.INVALID_ARGUMENT);
2224
- const c = t;
2225
- return C(n) ? a.key = n : U(n) && Object.keys(n).forEach((u) => {
2226
- cr.includes(u) ? i[u] = n[u] : a[u] = n[u];
2227
- }), C(r) ? a.locale = r : U(r) && (i = r), U(s) && (i = s), [a.key || "", c, a, i];
2228
- }
2229
- function On(e, t, n) {
2230
- const r = e;
2231
- for (const s in n) {
2232
- const a = `${t}__${s}`;
2233
- r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
2234
- }
2235
- }
2236
- _a();
2237
- /*!
2238
- * vue-i18n v9.14.5
2239
- * (c) 2025 kazuya kawaguchi
2240
- * Released under the MIT License.
2241
- */
2242
- const is = "9.14.5";
2243
- function cs() {
2244
- typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (pe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (pe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (pe().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (pe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (pe().__INTLIFY_PROD_DEVTOOLS__ = !1);
2245
- }
2246
- const ur = te.__EXTEND_POINT__, Ne = Tt(ur), re = {
2247
- FALLBACK_TO_ROOT: ur,
2248
- // 9
2249
- NOT_SUPPORTED_PRESERVE: Ne(),
2250
- // 10
2251
- NOT_SUPPORTED_FORMATTER: Ne(),
2252
- // 11
2253
- NOT_SUPPORTED_PRESERVE_DIRECTIVE: Ne(),
2254
- // 12
2255
- NOT_SUPPORTED_GET_CHOICE_INDEX: Ne(),
2256
- // 13
2257
- COMPONENT_NAME_LEGACY_COMPATIBLE: Ne(),
2258
- // 14
2259
- NOT_FOUND_PARENT_SCOPE: Ne(),
2260
- // 15
2261
- IGNORE_OBJ_FLATTEN: Ne(),
2262
- // 16
2263
- NOTICE_DROP_ALLOW_COMPOSITION: Ne(),
2264
- // 17
2265
- NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG: Ne()
2266
- // 18
2267
- }, us = {
2268
- [re.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
2269
- [re.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
2270
- [re.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
2271
- [re.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
2272
- [re.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
2273
- [re.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
2274
- [re.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
2275
- [re.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
2276
- [re.NOTICE_DROP_ALLOW_COMPOSITION]: "'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",
2277
- [re.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]: "'translateExistCompatible' option will be dropped in the next major version."
2278
- };
2279
- function dt(e, ...t) {
2280
- return Wt(us[e], ...t);
2281
- }
2282
- const fr = q.__EXTEND_POINT__, ne = Tt(fr), X = {
2283
- // composer module errors
2284
- UNEXPECTED_RETURN_TYPE: fr,
2285
- // 24
2286
- // legacy module errors
2287
- INVALID_ARGUMENT: ne(),
2288
- // 25
2289
- // i18n module errors
2290
- MUST_BE_CALL_SETUP_TOP: ne(),
2291
- // 26
2292
- NOT_INSTALLED: ne(),
2293
- // 27
2294
- NOT_AVAILABLE_IN_LEGACY_MODE: ne(),
2295
- // 28
2296
- // directive module errors
2297
- REQUIRED_VALUE: ne(),
2298
- // 29
2299
- INVALID_VALUE: ne(),
2300
- // 30
2301
- // vue-devtools errors
2302
- CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: ne(),
2303
- // 31
2304
- NOT_INSTALLED_WITH_PROVIDE: ne(),
2305
- // 32
2306
- // unexpected error
2307
- UNEXPECTED_ERROR: ne(),
2308
- // 33
2309
- // not compatible legacy vue-i18n constructor
2310
- NOT_COMPATIBLE_LEGACY_VUE_I18N: ne(),
2311
- // 34
2312
- // bridge support vue 2.x only
2313
- BRIDGE_SUPPORT_VUE_2_ONLY: ne(),
2314
- // 35
2315
- // need to define `i18n` option in `allowComposition: true` and `useScope: 'local' at `useI18n``
2316
- MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: ne(),
2317
- // 36
2318
- // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
2319
- NOT_AVAILABLE_COMPOSITION_IN_LEGACY: ne(),
2320
- // 37
2321
- // for enhancement
2322
- __EXTEND_POINT__: ne()
2323
- // 38
2324
- };
2325
- function Ie(e, ...t) {
2326
- return $e(e, null, process.env.NODE_ENV !== "production" ? { messages: fs, args: t } : void 0);
2327
- }
2328
- const fs = {
2329
- [X.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2330
- [X.INVALID_ARGUMENT]: "Invalid argument",
2331
- [X.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
2332
- [X.NOT_INSTALLED]: "Need to install with `app.use` function",
2333
- [X.UNEXPECTED_ERROR]: "Unexpected error",
2334
- [X.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
2335
- [X.REQUIRED_VALUE]: "Required in value: {0}",
2336
- [X.INVALID_VALUE]: "Invalid value",
2337
- [X.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
2338
- [X.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
2339
- [X.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2340
- [X.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
2341
- [X.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",
2342
- [X.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
2343
- }, yt = /* @__PURE__ */ Oe("__translateVNode"), kt = /* @__PURE__ */ Oe("__datetimeParts"), Mt = /* @__PURE__ */ Oe("__numberParts"), Ft = /* @__PURE__ */ Oe("__enableEmitter"), Ut = /* @__PURE__ */ Oe("__disableEmitter"), _s = Oe("__setPluralRules"), _r = /* @__PURE__ */ Oe("__injectWithOption"), wt = /* @__PURE__ */ Oe("__dispose");
2344
- function ot(e) {
2345
- if (!w(e) || fe(e))
2346
- return e;
2347
- for (const t in e)
2348
- if (ue(e, t))
2349
- if (!t.includes("."))
2350
- w(e[t]) && ot(e[t]);
2351
- else {
2352
- const n = t.split("."), r = n.length - 1;
2353
- let s = e, a = !1;
2354
- for (let i = 0; i < r; i++) {
2355
- if (n[i] === "__proto__")
2356
- throw new Error(`unsafe key: ${n[i]}`);
2357
- if (n[i] in s || (s[n[i]] = Y()), !w(s[n[i]])) {
2358
- process.env.NODE_ENV !== "production" && Ee(dt(re.IGNORE_OBJ_FLATTEN, {
2359
- key: n[i]
2360
- })), a = !0;
2361
- break;
2362
- }
2363
- s = s[n[i]];
2364
- }
2365
- if (a || (fe(s) ? xn.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !fe(s)) {
2366
- const i = s[n[r]];
2367
- w(i) && ot(i);
2368
- }
2369
- }
2370
- return e;
2371
- }
2372
- function xt(e, t) {
2373
- const { messages: n, __i18n: r, messageResolver: s, flatJson: a } = t, i = U(n) ? n : J(r) ? Y() : { [e]: Y() };
2374
- if (J(r) && r.forEach((c) => {
2375
- if ("locale" in c && "resource" in c) {
2376
- const { locale: u, resource: E } = c;
2377
- u ? (i[u] = i[u] || Y(), _t(E, i[u])) : _t(E, i);
2378
- } else
2379
- C(c) && _t(JSON.parse(c), i);
2380
- }), s == null && a)
2381
- for (const c in i)
2382
- ue(i, c) && ot(i[c]);
2383
- return i;
2384
- }
2385
- function mr(e) {
2386
- return e.type;
2387
- }
2388
- function ms(e, t, n) {
2389
- let r = w(t.messages) ? t.messages : Y();
2390
- "__i18nGlobal" in n && (r = xt(e.locale.value, {
2391
- messages: r,
2392
- __i18n: n.__i18nGlobal
2393
- }));
2394
- const s = Object.keys(r);
2395
- s.length && s.forEach((a) => {
2396
- e.mergeLocaleMessage(a, r[a]);
2397
- });
2398
- {
2399
- if (w(t.datetimeFormats)) {
2400
- const a = Object.keys(t.datetimeFormats);
2401
- a.length && a.forEach((i) => {
2402
- e.mergeDateTimeFormat(i, t.datetimeFormats[i]);
2403
- });
2404
- }
2405
- if (w(t.numberFormats)) {
2406
- const a = Object.keys(t.numberFormats);
2407
- a.length && a.forEach((i) => {
2408
- e.mergeNumberFormat(i, t.numberFormats[i]);
2409
- });
2410
- }
2411
- }
2412
- }
2413
- function gn(e) {
2414
- return gr(Lr, null, e, 0);
2415
- }
2416
- const Ln = "__INTLIFY_META__", In = () => [], Es = () => !1;
2417
- let vn = 0;
2418
- function An(e) {
2419
- return (t, n, r, s) => e(n, r, Nt() || void 0, s);
2420
- }
2421
- const ds = /* @__NO_SIDE_EFFECTS__ */ () => {
2422
- const e = Nt();
2423
- let t = null;
2424
- return e && (t = mr(e)[Ln]) ? { [Ln]: t } : null;
2425
- };
2426
- function Ns(e = {}, t) {
2427
- const { __root: n, __injectWithOption: r } = e, s = n === void 0, a = e.flatJson, i = Te ? Fe : hn, c = !!e.translateExistCompatible;
2428
- process.env.NODE_ENV !== "production" && c && Dn(dt(re.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
2429
- let u = H(e.inheritLocale) ? e.inheritLocale : !0;
2430
- const E = i(
2431
- // prettier-ignore
2432
- n && u ? n.locale.value : C(e.locale) ? e.locale : lt
2433
- ), g = i(
2434
- // prettier-ignore
2435
- n && u ? n.fallbackLocale.value : C(e.fallbackLocale) || J(e.fallbackLocale) || U(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : E.value
2436
- ), I = i(xt(E.value, e)), p = i(U(e.datetimeFormats) ? e.datetimeFormats : { [E.value]: {} }), h = i(U(e.numberFormats) ? e.numberFormats : { [E.value]: {} });
2437
- let k = n ? n.missingWarn : H(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, P = n ? n.fallbackWarn : H(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, S = n ? n.fallbackRoot : H(e.fallbackRoot) ? e.fallbackRoot : !0, M = !!e.fallbackFormat, R = x(e.missing) ? e.missing : null, f = x(e.missing) ? An(e.missing) : null, m = x(e.postTranslation) ? e.postTranslation : null, O = n ? n.warnHtmlMessage : H(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter;
2438
- const L = n ? n.modifiers : U(e.modifiers) ? e.modifiers : {};
2439
- let b = e.pluralRules || n && n.pluralRules, A;
2440
- A = (() => {
2441
- s && un(null);
2442
- const _ = {
2443
- version: is,
2444
- locale: E.value,
2445
- fallbackLocale: g.value,
2446
- messages: I.value,
2447
- modifiers: L,
2448
- pluralRules: b,
2449
- missing: f === null ? void 0 : f,
2450
- missingWarn: k,
2451
- fallbackWarn: P,
2452
- fallbackFormat: M,
2453
- unresolving: !0,
2454
- postTranslation: m === null ? void 0 : m,
2455
- warnHtmlMessage: O,
2456
- escapeParameter: N,
2457
- messageResolver: e.messageResolver,
2458
- messageCompiler: e.messageCompiler,
2459
- __meta: { framework: "vue" }
2460
- };
2461
- _.datetimeFormats = p.value, _.numberFormats = h.value, _.__datetimeFormatters = U(A) ? A.__datetimeFormatters : void 0, _.__numberFormatters = U(A) ? A.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = U(A) ? A.__v_emitter : void 0);
2462
- const T = Qa(_);
2463
- return s && un(T), T;
2464
- })(), rt(A, E.value, g.value);
2465
- function ae() {
2466
- return [
2467
- E.value,
2468
- g.value,
2469
- I.value,
2470
- p.value,
2471
- h.value
2472
- ];
2473
- }
2474
- const F = ce({
2475
- get: () => E.value,
2476
- set: (_) => {
2477
- E.value = _, A.locale = E.value;
2478
- }
2479
- }), Z = ce({
2480
- get: () => g.value,
2481
- set: (_) => {
2482
- g.value = _, A.fallbackLocale = g.value, rt(A, E.value, _);
2483
- }
2484
- }), Ye = ce(() => I.value), Ge = /* @__PURE__ */ ce(() => p.value), _e = /* @__PURE__ */ ce(() => h.value);
2485
- function He() {
2486
- return x(m) ? m : null;
2487
- }
2488
- function xe(_) {
2489
- m = _, A.postTranslation = _;
2490
- }
2491
- function Ke() {
2492
- return R;
2493
- }
2494
- function Be(_) {
2495
- _ !== null && (f = An(_)), R = _, A.missing = f;
2496
- }
2497
- function Xe(_, T) {
2498
- return _ !== "translate" || !T.resolvedMessage;
2499
- }
2500
- const le = (_, T, W, j, ge, ct) => {
2501
- ae();
2502
- let Me;
2503
- try {
2504
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (A.fallbackContext = n ? qa() : void 0), Me = _(A);
2505
- } finally {
2506
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (A.fallbackContext = void 0);
2507
- }
2508
- if (W !== "translate exists" && // for not `te` (e.g `t`)
2509
- Q(Me) && Me === gt || W === "translate exists" && !Me) {
2510
- const [Ce, Nr] = T();
2511
- if (process.env.NODE_ENV !== "production" && n && C(Ce) && Xe(W, Nr) && (S && (Lt(P, Ce) || zn(k, Ce)) && Ee(dt(re.FALLBACK_TO_ROOT, {
2512
- key: Ce,
2513
- type: W
2514
- })), process.env.NODE_ENV !== "production")) {
2515
- const { __v_emitter: Bt } = A;
2516
- Bt && S && Bt.emit("fallback", {
2517
- type: W,
2518
- key: Ce,
2519
- to: "global",
2520
- groupId: `${W}:${Ce}`
2521
- });
2522
- }
2523
- return n && S ? j(n) : ge(Ce);
2524
- } else {
2525
- if (ct(Me))
2526
- return Me;
2527
- throw Ie(X.UNEXPECTED_RETURN_TYPE);
2528
- }
2529
- };
2530
- function Re(..._) {
2531
- return le((T) => Reflect.apply(En, null, [T, ..._]), () => St(..._), "translate", (T) => Reflect.apply(T.t, T, [..._]), (T) => T, (T) => C(T));
2532
- }
2533
- function ye(..._) {
2534
- const [T, W, j] = _;
2535
- if (j && !w(j))
2536
- throw Ie(X.INVALID_ARGUMENT);
2537
- return Re(T, W, z({ resolvedMessage: !0 }, j || {}));
2538
- }
2539
- function je(..._) {
2540
- return le((T) => Reflect.apply(Nn, null, [T, ..._]), () => Dt(..._), "datetime format", (T) => Reflect.apply(T.d, T, [..._]), () => Et, (T) => C(T));
2541
- }
2542
- function Je(..._) {
2543
- return le((T) => Reflect.apply(Tn, null, [T, ..._]), () => Rt(..._), "number format", (T) => Reflect.apply(T.n, T, [..._]), () => Et, (T) => C(T));
2544
- }
2545
- function qe(_) {
2546
- return _.map((T) => C(T) || Q(T) || H(T) ? gn(String(T)) : T);
2547
- }
2548
- const Qe = {
2549
- normalize: qe,
2550
- interpolate: (_) => _,
2551
- type: "vnode"
2552
- };
2553
- function ke(..._) {
2554
- return le(
2555
- (T) => {
2556
- let W;
2557
- const j = T;
2558
- try {
2559
- j.processor = Qe, W = Reflect.apply(En, null, [j, ..._]);
2560
- } finally {
2561
- j.processor = null;
2562
- }
2563
- return W;
2564
- },
2565
- () => St(..._),
2566
- "translate",
2567
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2568
- (T) => T[yt](..._),
2569
- (T) => [gn(T)],
2570
- (T) => J(T)
2571
- );
2572
- }
2573
- function Ze(..._) {
2574
- return le(
2575
- (T) => Reflect.apply(Tn, null, [T, ..._]),
2576
- () => Rt(..._),
2577
- "number format",
2578
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2579
- (T) => T[Mt](..._),
2580
- In,
2581
- (T) => C(T) || J(T)
2582
- );
2583
- }
2584
- function ze(..._) {
2585
- return le(
2586
- (T) => Reflect.apply(Nn, null, [T, ..._]),
2587
- () => Dt(..._),
2588
- "datetime format",
2589
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2590
- (T) => T[kt](..._),
2591
- In,
2592
- (T) => C(T) || J(T)
2593
- );
2594
- }
2595
- function et(_) {
2596
- b = _, A.pluralRules = b;
2597
- }
2598
- function v(_, T) {
2599
- return le(() => {
2600
- if (!_)
2601
- return !1;
2602
- const W = C(T) ? T : E.value, j = be(W), ge = A.messageResolver(j, _);
2603
- return c ? ge != null : fe(ge) || oe(ge) || C(ge);
2604
- }, () => [_], "translate exists", (W) => Reflect.apply(W.te, W, [_, T]), Es, (W) => H(W));
2605
- }
2606
- function V(_) {
2607
- let T = null;
2608
- const W = Xn(A, g.value, E.value);
2609
- for (let j = 0; j < W.length; j++) {
2610
- const ge = I.value[W[j]] || {}, ct = A.messageResolver(ge, _);
2611
- if (ct != null) {
2612
- T = ct;
2613
- break;
2614
- }
2615
- }
2616
- return T;
2617
- }
2618
- function tt(_) {
2619
- const T = V(_);
2620
- return T ?? (n ? n.tm(_) || {} : {});
2621
- }
2622
- function be(_) {
2623
- return I.value[_] || {};
2624
- }
2625
- function nt(_, T) {
2626
- if (a) {
2627
- const W = { [_]: T };
2628
- for (const j in W)
2629
- ue(W, j) && ot(W[j]);
2630
- T = W[_];
2631
- }
2632
- I.value[_] = T, A.messages = I.value;
2633
- }
2634
- function vt(_, T) {
2635
- I.value[_] = I.value[_] || {};
2636
- const W = { [_]: T };
2637
- if (a)
2638
- for (const j in W)
2639
- ue(W, j) && ot(W[j]);
2640
- T = W[_], _t(T, I.value[_]), A.messages = I.value;
2641
- }
2642
- function l(_) {
2643
- return p.value[_] || {};
2644
- }
2645
- function o(_, T) {
2646
- p.value[_] = T, A.datetimeFormats = p.value, pn(A, _, T);
2647
- }
2648
- function d(_, T) {
2649
- p.value[_] = z(p.value[_] || {}, T), A.datetimeFormats = p.value, pn(A, _, T);
2650
- }
2651
- function D(_) {
2652
- return h.value[_] || {};
2653
- }
2654
- function B(_, T) {
2655
- h.value[_] = T, A.numberFormats = h.value, On(A, _, T);
2656
- }
2657
- function G(_, T) {
2658
- h.value[_] = z(h.value[_] || {}, T), A.numberFormats = h.value, On(A, _, T);
2659
- }
2660
- vn++, n && Te && (Xt(n.locale, (_) => {
2661
- u && (E.value = _, A.locale = _, rt(A, E.value, g.value));
2662
- }), Xt(n.fallbackLocale, (_) => {
2663
- u && (g.value = _, A.fallbackLocale = _, rt(A, E.value, g.value));
2664
- }));
2665
- const $ = {
2666
- id: vn,
2667
- locale: F,
2668
- fallbackLocale: Z,
2669
- get inheritLocale() {
2670
- return u;
2671
- },
2672
- set inheritLocale(_) {
2673
- u = _, _ && n && (E.value = n.locale.value, g.value = n.fallbackLocale.value, rt(A, E.value, g.value));
2674
- },
2675
- get availableLocales() {
2676
- return Object.keys(I.value).sort();
2677
- },
2678
- messages: Ye,
2679
- get modifiers() {
2680
- return L;
2681
- },
2682
- get pluralRules() {
2683
- return b || {};
2684
- },
2685
- get isGlobal() {
2686
- return s;
2687
- },
2688
- get missingWarn() {
2689
- return k;
2690
- },
2691
- set missingWarn(_) {
2692
- k = _, A.missingWarn = k;
2693
- },
2694
- get fallbackWarn() {
2695
- return P;
2696
- },
2697
- set fallbackWarn(_) {
2698
- P = _, A.fallbackWarn = P;
2699
- },
2700
- get fallbackRoot() {
2701
- return S;
2702
- },
2703
- set fallbackRoot(_) {
2704
- S = _;
2705
- },
2706
- get fallbackFormat() {
2707
- return M;
2708
- },
2709
- set fallbackFormat(_) {
2710
- M = _, A.fallbackFormat = M;
2711
- },
2712
- get warnHtmlMessage() {
2713
- return O;
2714
- },
2715
- set warnHtmlMessage(_) {
2716
- O = _, A.warnHtmlMessage = _;
2717
- },
2718
- get escapeParameter() {
2719
- return N;
2720
- },
2721
- set escapeParameter(_) {
2722
- N = _, A.escapeParameter = _;
2723
- },
2724
- t: Re,
2725
- getLocaleMessage: be,
2726
- setLocaleMessage: nt,
2727
- mergeLocaleMessage: vt,
2728
- getPostTranslationHandler: He,
2729
- setPostTranslationHandler: xe,
2730
- getMissingHandler: Ke,
2731
- setMissingHandler: Be,
2732
- [_s]: et
2733
- };
2734
- return $.datetimeFormats = Ge, $.numberFormats = _e, $.rt = ye, $.te = v, $.tm = tt, $.d = je, $.n = Je, $.getDateTimeFormat = l, $.setDateTimeFormat = o, $.mergeDateTimeFormat = d, $.getNumberFormat = D, $.setNumberFormat = B, $.mergeNumberFormat = G, $[_r] = r, $[yt] = ke, $[kt] = ze, $[Mt] = Ze, process.env.NODE_ENV !== "production" && ($[Ft] = (_) => {
2735
- A.__v_emitter = _;
2736
- }, $[Ut] = () => {
2737
- A.__v_emitter = void 0;
2738
- }), $;
2739
- }
2740
- const Kt = {
2741
- tag: {
2742
- type: [String, Object]
2743
- },
2744
- locale: {
2745
- type: String
2746
- },
2747
- scope: {
2748
- type: String,
2749
- // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
2750
- validator: (e) => e === "parent" || e === "global",
2751
- default: "parent"
2752
- /* ComponentI18nScope */
2753
- },
2754
- i18n: {
2755
- type: Object
2756
- }
2757
- };
2758
- function ps({ slots: e }, t) {
2759
- return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
2760
- ...r,
2761
- // prettier-ignore
2762
- ...s.type === Sn ? s.children : [s]
2763
- ], []) : t.reduce((n, r) => {
2764
- const s = e[r];
2765
- return s && (n[r] = s()), n;
2766
- }, Y());
2767
- }
2768
- function Er(e) {
2769
- return Sn;
2770
- }
2771
- z({
2772
- keypath: {
2773
- type: String,
2774
- required: !0
2775
- },
2776
- plural: {
2777
- type: [Number, String],
2778
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2779
- validator: (e) => Q(e) || !isNaN(e)
2780
- }
2781
- }, Kt);
2782
- function Ts(e) {
2783
- return J(e) && !C(e[0]);
2784
- }
2785
- function dr(e, t, n, r) {
2786
- const { slots: s, attrs: a } = t;
2787
- return () => {
2788
- const i = { part: !0 };
2789
- let c = Y();
2790
- e.locale && (i.locale = e.locale), C(e.format) ? i.key = e.format : w(e.format) && (C(e.format.key) && (i.key = e.format.key), c = Object.keys(e.format).reduce((p, h) => n.includes(h) ? z(Y(), p, { [h]: e.format[h] }) : p, Y()));
2791
- const u = r(e.value, i, c);
2792
- let E = [i.key];
2793
- J(u) ? E = u.map((p, h) => {
2794
- const k = s[p.type], P = k ? k({ [p.type]: p.value, index: h, parts: u }) : [p.value];
2795
- return Ts(P) && (P[0].key = `${p.type}-${h}`), P;
2796
- }) : C(u) && (E = [u]);
2797
- const g = z(Y(), a), I = C(e.tag) || w(e.tag) ? e.tag : Er();
2798
- return Pn(I, g, E);
2799
- };
2800
- }
2801
- z({
2802
- value: {
2803
- type: Number,
2804
- required: !0
2805
- },
2806
- format: {
2807
- type: [String, Object]
2808
- }
2809
- }, Kt);
2810
- z({
2811
- value: {
2812
- type: [Number, Date],
2813
- required: !0
2814
- },
2815
- format: {
2816
- type: [String, Object]
2817
- }
2818
- }, Kt);
2819
- function bn(e, t) {
2820
- }
2821
- const Os = /* @__PURE__ */ Oe("global-vue-i18n");
2822
- function It(e = {}) {
2823
- const t = Nt();
2824
- if (t == null)
2825
- throw Ie(X.MUST_BE_CALL_SETUP_TOP);
2826
- if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
2827
- throw Ie(X.NOT_INSTALLED);
2828
- const n = gs(t), r = Is(n), s = mr(t), a = Ls(e, s);
2829
- if (__VUE_I18N_LEGACY_API__ && n.mode === "legacy" && !e.__useComponent) {
2830
- if (!n.allowComposition)
2831
- throw Ie(X.NOT_AVAILABLE_IN_LEGACY_MODE);
2832
- return Cs(t, a, r, e);
2833
- }
2834
- if (a === "global")
2835
- return ms(r, e, s), r;
2836
- if (a === "parent") {
2837
- let u = vs(n, t, e.__useComponent);
2838
- return u == null && (process.env.NODE_ENV !== "production" && Ee(dt(re.NOT_FOUND_PARENT_SCOPE)), u = r), u;
2839
- }
2840
- const i = n;
2841
- let c = i.__getInstance(t);
2842
- if (c == null) {
2843
- const u = z({}, e);
2844
- "__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), c = Ns(u), i.__composerExtend && (c[wt] = i.__composerExtend(c)), bs(i, t, c), i.__setInstance(t, c);
2845
- }
2846
- return c;
2847
- }
2848
- function gs(e) {
2849
- {
2850
- const t = Cn(e.isCE ? Os : e.appContext.app.__VUE_I18N_SYMBOL__);
2851
- if (!t)
2852
- throw Ie(e.isCE ? X.NOT_INSTALLED_WITH_PROVIDE : X.UNEXPECTED_ERROR);
2853
- return t;
2854
- }
2855
- }
2856
- function Ls(e, t) {
2857
- return pt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
2858
- }
2859
- function Is(e) {
2860
- return e.mode === "composition" ? e.global : e.global.__composer;
2861
- }
2862
- function vs(e, t, n = !1) {
2863
- let r = null;
2864
- const s = t.root;
2865
- let a = As(t, n);
2866
- for (; a != null; ) {
2867
- const i = e;
2868
- if (e.mode === "composition")
2869
- r = i.__getInstance(a);
2870
- else if (__VUE_I18N_LEGACY_API__) {
2871
- const c = i.__getInstance(a);
2872
- c != null && (r = c.__composer, n && r && !r[_r] && (r = null));
2873
- }
2874
- if (r != null || s === a)
2875
- break;
2876
- a = a.parent;
2877
- }
2878
- return r;
2879
- }
2880
- function As(e, t = !1) {
2881
- return e == null ? null : t && e.vnode.ctx || e.parent;
2882
- }
2883
- function bs(e, t, n) {
2884
- let r = null;
2885
- Tr(() => {
2886
- if (process.env.NODE_ENV !== "production" && t.vnode.el) {
2887
- t.vnode.el.__VUE_I18N__ = n, r = kr();
2888
- const s = n;
2889
- s[Ft] && s[Ft](r), r.on("*", bn);
2890
- }
2891
- }, t), Or(() => {
2892
- const s = n;
2893
- process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*", bn), s[Ut] && s[Ut](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
2894
- const a = s[wt];
2895
- a && (a(), delete s[wt]);
2896
- }, t);
2897
- }
2898
- function Cs(e, t, n, r = {}) {
2899
- const s = t === "local", a = hn(null);
2900
- if (s && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
2901
- throw Ie(X.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
2902
- const i = H(r.inheritLocale) ? r.inheritLocale : !C(r.locale), c = Fe(
2903
- // prettier-ignore
2904
- !s || i ? n.locale.value : C(r.locale) ? r.locale : lt
2905
- ), u = Fe(
2906
- // prettier-ignore
2907
- !s || i ? n.fallbackLocale.value : C(r.fallbackLocale) || J(r.fallbackLocale) || U(r.fallbackLocale) || r.fallbackLocale === !1 ? r.fallbackLocale : c.value
2908
- ), E = Fe(xt(c.value, r)), g = Fe(U(r.datetimeFormats) ? r.datetimeFormats : { [c.value]: {} }), I = Fe(U(r.numberFormats) ? r.numberFormats : { [c.value]: {} }), p = s ? n.missingWarn : H(r.missingWarn) || Ve(r.missingWarn) ? r.missingWarn : !0, h = s ? n.fallbackWarn : H(r.fallbackWarn) || Ve(r.fallbackWarn) ? r.fallbackWarn : !0, k = s ? n.fallbackRoot : H(r.fallbackRoot) ? r.fallbackRoot : !0, P = !!r.fallbackFormat, S = x(r.missing) ? r.missing : null, M = x(r.postTranslation) ? r.postTranslation : null, R = s ? n.warnHtmlMessage : H(r.warnHtmlMessage) ? r.warnHtmlMessage : !0, f = !!r.escapeParameter, m = s ? n.modifiers : U(r.modifiers) ? r.modifiers : {}, O = r.pluralRules || s && n.pluralRules;
2909
- function N() {
2910
- return [
2911
- c.value,
2912
- u.value,
2913
- E.value,
2914
- g.value,
2915
- I.value
2916
- ];
2917
- }
2918
- const L = ce({
2919
- get: () => a.value ? a.value.locale.value : c.value,
2920
- set: (v) => {
2921
- a.value && (a.value.locale.value = v), c.value = v;
2922
- }
2923
- }), b = ce({
2924
- get: () => a.value ? a.value.fallbackLocale.value : u.value,
2925
- set: (v) => {
2926
- a.value && (a.value.fallbackLocale.value = v), u.value = v;
2927
- }
2928
- }), A = ce(() => a.value ? a.value.messages.value : E.value), K = ce(() => g.value), ae = ce(() => I.value);
2929
- function F() {
2930
- return a.value ? a.value.getPostTranslationHandler() : M;
2931
- }
2932
- function Z(v) {
2933
- a.value && a.value.setPostTranslationHandler(v);
2934
- }
2935
- function Ye() {
2936
- return a.value ? a.value.getMissingHandler() : S;
2937
- }
2938
- function Ge(v) {
2939
- a.value && a.value.setMissingHandler(v);
2940
- }
2941
- function _e(v) {
2942
- return N(), v();
2943
- }
2944
- function He(...v) {
2945
- return a.value ? _e(() => Reflect.apply(a.value.t, null, [...v])) : _e(() => "");
2946
- }
2947
- function xe(...v) {
2948
- return a.value ? Reflect.apply(a.value.rt, null, [...v]) : "";
2949
- }
2950
- function Ke(...v) {
2951
- return a.value ? _e(() => Reflect.apply(a.value.d, null, [...v])) : _e(() => "");
2952
- }
2953
- function Be(...v) {
2954
- return a.value ? _e(() => Reflect.apply(a.value.n, null, [...v])) : _e(() => "");
2955
- }
2956
- function Xe(v) {
2957
- return a.value ? a.value.tm(v) : {};
2958
- }
2959
- function le(v, V) {
2960
- return a.value ? a.value.te(v, V) : !1;
2961
- }
2962
- function Re(v) {
2963
- return a.value ? a.value.getLocaleMessage(v) : {};
2964
- }
2965
- function ye(v, V) {
2966
- a.value && (a.value.setLocaleMessage(v, V), E.value[v] = V);
2967
- }
2968
- function je(v, V) {
2969
- a.value && a.value.mergeLocaleMessage(v, V);
2970
- }
2971
- function Je(v) {
2972
- return a.value ? a.value.getDateTimeFormat(v) : {};
2973
- }
2974
- function qe(v, V) {
2975
- a.value && (a.value.setDateTimeFormat(v, V), g.value[v] = V);
2976
- }
2977
- function it(v, V) {
2978
- a.value && a.value.mergeDateTimeFormat(v, V);
2979
- }
2980
- function Qe(v) {
2981
- return a.value ? a.value.getNumberFormat(v) : {};
2982
- }
2983
- function ke(v, V) {
2984
- a.value && (a.value.setNumberFormat(v, V), I.value[v] = V);
2985
- }
2986
- function Ze(v, V) {
2987
- a.value && a.value.mergeNumberFormat(v, V);
2988
- }
2989
- const ze = {
2990
- get id() {
2991
- return a.value ? a.value.id : -1;
2992
- },
2993
- locale: L,
2994
- fallbackLocale: b,
2995
- messages: A,
2996
- datetimeFormats: K,
2997
- numberFormats: ae,
2998
- get inheritLocale() {
2999
- return a.value ? a.value.inheritLocale : i;
3000
- },
3001
- set inheritLocale(v) {
3002
- a.value && (a.value.inheritLocale = v);
3003
- },
3004
- get availableLocales() {
3005
- return a.value ? a.value.availableLocales : Object.keys(E.value);
3006
- },
3007
- get modifiers() {
3008
- return a.value ? a.value.modifiers : m;
3009
- },
3010
- get pluralRules() {
3011
- return a.value ? a.value.pluralRules : O;
3012
- },
3013
- get isGlobal() {
3014
- return a.value ? a.value.isGlobal : !1;
3015
- },
3016
- get missingWarn() {
3017
- return a.value ? a.value.missingWarn : p;
3018
- },
3019
- set missingWarn(v) {
3020
- a.value && (a.value.missingWarn = v);
3021
- },
3022
- get fallbackWarn() {
3023
- return a.value ? a.value.fallbackWarn : h;
3024
- },
3025
- set fallbackWarn(v) {
3026
- a.value && (a.value.missingWarn = v);
3027
- },
3028
- get fallbackRoot() {
3029
- return a.value ? a.value.fallbackRoot : k;
3030
- },
3031
- set fallbackRoot(v) {
3032
- a.value && (a.value.fallbackRoot = v);
3033
- },
3034
- get fallbackFormat() {
3035
- return a.value ? a.value.fallbackFormat : P;
3036
- },
3037
- set fallbackFormat(v) {
3038
- a.value && (a.value.fallbackFormat = v);
3039
- },
3040
- get warnHtmlMessage() {
3041
- return a.value ? a.value.warnHtmlMessage : R;
3042
- },
3043
- set warnHtmlMessage(v) {
3044
- a.value && (a.value.warnHtmlMessage = v);
3045
- },
3046
- get escapeParameter() {
3047
- return a.value ? a.value.escapeParameter : f;
3048
- },
3049
- set escapeParameter(v) {
3050
- a.value && (a.value.escapeParameter = v);
3051
- },
3052
- t: He,
3053
- getPostTranslationHandler: F,
3054
- setPostTranslationHandler: Z,
3055
- getMissingHandler: Ye,
3056
- setMissingHandler: Ge,
3057
- rt: xe,
3058
- d: Ke,
3059
- n: Be,
3060
- tm: Xe,
3061
- te: le,
3062
- getLocaleMessage: Re,
3063
- setLocaleMessage: ye,
3064
- mergeLocaleMessage: je,
3065
- getDateTimeFormat: Je,
3066
- setDateTimeFormat: qe,
3067
- mergeDateTimeFormat: it,
3068
- getNumberFormat: Qe,
3069
- setNumberFormat: ke,
3070
- mergeNumberFormat: Ze
3071
- };
3072
- function et(v) {
3073
- v.locale.value = c.value, v.fallbackLocale.value = u.value, Object.keys(E.value).forEach((V) => {
3074
- v.mergeLocaleMessage(V, E.value[V]);
3075
- }), Object.keys(g.value).forEach((V) => {
3076
- v.mergeDateTimeFormat(V, g.value[V]);
3077
- }), Object.keys(I.value).forEach((V) => {
3078
- v.mergeNumberFormat(V, I.value[V]);
3079
- }), v.escapeParameter = f, v.fallbackFormat = P, v.fallbackRoot = k, v.fallbackWarn = h, v.missingWarn = p, v.warnHtmlMessage = R;
3080
- }
3081
- return pr(() => {
3082
- if (e.proxy == null || e.proxy.$i18n == null)
3083
- throw Ie(X.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
3084
- const v = a.value = e.proxy.$i18n.__composer;
3085
- t === "global" ? (c.value = v.locale.value, u.value = v.fallbackLocale.value, E.value = v.messages.value, g.value = v.datetimeFormats.value, I.value = v.numberFormats.value) : s && et(v);
3086
- }), ze;
3087
- }
3088
- cs();
3089
- __INTLIFY_JIT_COMPILATION__ ? cn(ns) : cn(ts);
3090
- Ba(Ca);
3091
- Xa(Xn);
3092
- if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
3093
- const e = pe();
3094
- e.__INTLIFY__ = !0, Fa(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
3095
- }
3096
- process.env.NODE_ENV;
3097
- let ht = null;
3098
- const Ss = (e, t = !1) => {
3099
- var a, i;
3100
- const n = Nt(), r = (i = (a = n == null ? void 0 : n.appContext) == null ? void 0 : a.app) == null ? void 0 : i.__VUE_I18N_SYMBOL__, s = ce({
3101
- get() {
3102
- return ht.locale;
3103
- },
3104
- set(c) {
3105
- ht.locale = c;
3106
- }
3107
- });
3108
- {
3109
- if (!t) {
3110
- const { t: E, d: g, te: I, n: p, locale: h } = It({ messages: e == null ? void 0 : e.messages });
3111
- return {
3112
- locale: h,
3113
- t: E,
3114
- tc: E,
3115
- d: g,
3116
- te: I,
3117
- n: p
3118
- };
3119
- }
3120
- const c = Cn(r), u = c == null ? void 0 : c.global;
3121
- return u && (ht = u), {
3122
- locale: s
3123
- };
3124
- }
3125
- }, Ds = () => "i18n-t", Rs = (e) => ({ keypath: e });
3126
- export {
3127
- Rs as a,
3128
- Ds as g,
3129
- Ss as u
3130
- };
3131
- //# sourceMappingURL=i18n.B6g5VX0q.js.map