@commercetools/nimbus 0.0.9-rc5 → 0.0.9-rc7
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.
- package/dist/accordion.d.ts +157 -0
- package/dist/alert.d.ts +173 -0
- package/dist/avatar.d.ts +70 -0
- package/dist/badge.d.ts +102 -0
- package/dist/box.d.ts +14 -0
- package/dist/button.d.ts +38 -0
- package/dist/calendar.d.ts +26 -0
- package/dist/card.d.ts +134 -0
- package/dist/checkbox.d.ts +73 -0
- package/dist/chunks/Button-DOBmPkg6.js +2 -0
- package/dist/chunks/Button-DOBmPkg6.js.map +1 -0
- package/dist/chunks/Button-Dtn-lV5G.js +79 -0
- package/dist/chunks/Button-Dtn-lV5G.js.map +1 -0
- package/dist/chunks/DateField-C2G53tNO.js +2564 -0
- package/dist/chunks/DateField-C2G53tNO.js.map +1 -0
- package/dist/chunks/DateField-D0hZjHMU.js +2 -0
- package/dist/chunks/DateField-D0hZjHMU.js.map +1 -0
- package/dist/chunks/Dialog-CFCn7n-k.js +2 -0
- package/dist/chunks/Dialog-CFCn7n-k.js.map +1 -0
- package/dist/chunks/Dialog-DsJ3jo2g.js +870 -0
- package/dist/chunks/Dialog-DsJ3jo2g.js.map +1 -0
- package/dist/chunks/FocusScope-B6O_mZ9T.js +627 -0
- package/dist/chunks/FocusScope-B6O_mZ9T.js.map +1 -0
- package/dist/chunks/FocusScope-Dz6kDOQY.js +2 -0
- package/dist/chunks/FocusScope-Dz6kDOQY.js.map +1 -0
- package/dist/chunks/Form-DdaqVtM4.js +8 -0
- package/dist/chunks/Form-DdaqVtM4.js.map +1 -0
- package/dist/chunks/Form-DqkTf3LZ.js +2 -0
- package/dist/chunks/Form-DqkTf3LZ.js.map +1 -0
- package/dist/chunks/Group-BMf2x0bV.js +78 -0
- package/dist/chunks/Group-BMf2x0bV.js.map +1 -0
- package/dist/chunks/Group-DR52Cv_h.js +2 -0
- package/dist/chunks/Group-DR52Cv_h.js.map +1 -0
- package/dist/chunks/Hidden-BxRZGdEW.js +2 -0
- package/dist/chunks/Hidden-BxRZGdEW.js.map +1 -0
- package/dist/chunks/Hidden-D6Lfpu1U.js +35 -0
- package/dist/chunks/Hidden-D6Lfpu1U.js.map +1 -0
- package/dist/chunks/Input-C6fX3A5E.js +43 -0
- package/dist/chunks/Input-C6fX3A5E.js.map +1 -0
- package/dist/chunks/Input-CRt1BJ4n.js +2 -0
- package/dist/chunks/Input-CRt1BJ4n.js.map +1 -0
- package/dist/chunks/ListBox-CHhUqc7T.js +18 -0
- package/dist/chunks/ListBox-CHhUqc7T.js.map +1 -0
- package/dist/chunks/ListBox-DH3lufv2.js +3071 -0
- package/dist/chunks/ListBox-DH3lufv2.js.map +1 -0
- package/dist/chunks/LiveAnnouncer-B6177m92.js +52 -0
- package/dist/chunks/LiveAnnouncer-B6177m92.js.map +1 -0
- package/dist/chunks/LiveAnnouncer-CwEWPU8b.js +2 -0
- package/dist/chunks/LiveAnnouncer-CwEWPU8b.js.map +1 -0
- package/dist/chunks/NumberFormatter-DewVDY5w.js +2 -0
- package/dist/chunks/NumberFormatter-DewVDY5w.js.map +1 -0
- package/dist/chunks/NumberFormatter-DgOUVrge.js +120 -0
- package/dist/chunks/NumberFormatter-DgOUVrge.js.map +1 -0
- package/dist/chunks/OverlayArrow-B1kv2W8j.js +479 -0
- package/dist/chunks/OverlayArrow-B1kv2W8j.js.map +1 -0
- package/dist/chunks/OverlayArrow-DsxKFiKE.js +2 -0
- package/dist/chunks/OverlayArrow-DsxKFiKE.js.map +1 -0
- package/dist/chunks/RSPContexts-CxXY5Uko.js +11 -0
- package/dist/chunks/RSPContexts-CxXY5Uko.js.map +1 -0
- package/dist/chunks/RSPContexts-qzadeFSO.js +2 -0
- package/dist/chunks/RSPContexts-qzadeFSO.js.map +1 -0
- package/dist/chunks/SSRProvider-D8lZ0o6A.js +51 -0
- package/dist/chunks/SSRProvider-D8lZ0o6A.js.map +1 -0
- package/dist/chunks/SSRProvider-DZRLwxPS.js +2 -0
- package/dist/chunks/SSRProvider-DZRLwxPS.js.map +1 -0
- package/dist/chunks/Text-BWSfeB9p.js +2 -0
- package/dist/chunks/Text-BWSfeB9p.js.map +1 -0
- package/dist/chunks/Text-DOcU1ycg.js +6 -0
- package/dist/chunks/Text-DOcU1ycg.js.map +1 -0
- package/dist/chunks/TextArea-D-S_3q08.js +42 -0
- package/dist/chunks/TextArea-D-S_3q08.js.map +1 -0
- package/dist/chunks/TextArea-Ud71sffr.js +2 -0
- package/dist/chunks/TextArea-Ud71sffr.js.map +1 -0
- package/dist/chunks/VisuallyHidden-BpUTcba_.js +41 -0
- package/dist/chunks/VisuallyHidden-BpUTcba_.js.map +1 -0
- package/dist/chunks/VisuallyHidden-BxenYie4.js +2 -0
- package/dist/chunks/VisuallyHidden-BxenYie4.js.map +1 -0
- package/dist/chunks/accordion-8pelAIyn.js +2 -0
- package/dist/chunks/accordion-8pelAIyn.js.map +1 -0
- package/dist/chunks/accordion-Dc3IqP_d.js +221 -0
- package/dist/chunks/accordion-Dc3IqP_d.js.map +1 -0
- package/dist/chunks/alert-DSpVYhCa.js +186 -0
- package/dist/chunks/alert-DSpVYhCa.js.map +1 -0
- package/dist/chunks/alert-DxoCjJDr.js +2 -0
- package/dist/chunks/alert-DxoCjJDr.js.map +1 -0
- package/dist/chunks/avatar-Aa0LrRpo.js +2 -0
- package/dist/chunks/avatar-Aa0LrRpo.js.map +1 -0
- package/dist/chunks/avatar-p4QfPsxN.js +37 -0
- package/dist/chunks/avatar-p4QfPsxN.js.map +1 -0
- package/dist/chunks/avatar.recipe-BV5OkaPx.js +39 -0
- package/dist/chunks/avatar.recipe-BV5OkaPx.js.map +1 -0
- package/dist/chunks/avatar.recipe-aGNBZhVF.js +2 -0
- package/dist/chunks/avatar.recipe-aGNBZhVF.js.map +1 -0
- package/dist/chunks/badge-BFbBB0US.js +2 -0
- package/dist/chunks/badge-BFbBB0US.js.map +1 -0
- package/dist/chunks/badge-CbqLqIo9.js +76 -0
- package/dist/chunks/badge-CbqLqIo9.js.map +1 -0
- package/dist/chunks/box-DD4jYgS7.js +11 -0
- package/dist/chunks/box-DD4jYgS7.js.map +1 -0
- package/dist/chunks/box-FU6tRPFs.js +2 -0
- package/dist/chunks/box-FU6tRPFs.js.map +1 -0
- package/dist/chunks/button-Ckftvc2h.js +66 -0
- package/dist/chunks/button-Ckftvc2h.js.map +1 -0
- package/dist/chunks/button-vfAeHh1t.js +2 -0
- package/dist/chunks/button-vfAeHh1t.js.map +1 -0
- package/dist/chunks/button.recipe-DHk13lGU.js +2 -0
- package/dist/chunks/button.recipe-DHk13lGU.js.map +1 -0
- package/dist/chunks/button.recipe-DbFAOebT.js +191 -0
- package/dist/chunks/button.recipe-DbFAOebT.js.map +1 -0
- package/dist/chunks/calendar-Bz_gsrGo.js +1577 -0
- package/dist/chunks/calendar-Bz_gsrGo.js.map +1 -0
- package/dist/chunks/calendar-Cs2rHplP.js +2 -0
- package/dist/chunks/calendar-Cs2rHplP.js.map +1 -0
- package/dist/chunks/calendar.recipe-RdPylgdo.js +101 -0
- package/dist/chunks/calendar.recipe-RdPylgdo.js.map +1 -0
- package/dist/chunks/calendar.recipe-gUaUNltl.js +2 -0
- package/dist/chunks/calendar.recipe-gUaUNltl.js.map +1 -0
- package/dist/chunks/card-B0BsL4ol.js +2 -0
- package/dist/chunks/card-B0BsL4ol.js.map +1 -0
- package/dist/chunks/card-CQwHrkIF.js +138 -0
- package/dist/chunks/card-CQwHrkIF.js.map +1 -0
- package/dist/chunks/checkbox-C5jtHkVZ.js +89 -0
- package/dist/chunks/checkbox-C5jtHkVZ.js.map +1 -0
- package/dist/chunks/checkbox-Cwb_QZjZ.js +2 -0
- package/dist/chunks/checkbox-Cwb_QZjZ.js.map +1 -0
- package/dist/chunks/code-CI8aUhmu.js +6 -0
- package/dist/chunks/code-CI8aUhmu.js.map +1 -0
- package/dist/chunks/code-Dg4Larbo.js +2 -0
- package/dist/chunks/code-Dg4Larbo.js.map +1 -0
- package/dist/chunks/combobox--lHdni2Z.js +1896 -0
- package/dist/chunks/combobox--lHdni2Z.js.map +1 -0
- package/dist/chunks/combobox-BACFWgP3.js +2 -0
- package/dist/chunks/combobox-BACFWgP3.js.map +1 -0
- package/dist/chunks/combobox.recipe-BzaPWi66.js +2 -0
- package/dist/chunks/combobox.recipe-BzaPWi66.js.map +1 -0
- package/dist/chunks/combobox.recipe-KVsma6zb.js +382 -0
- package/dist/chunks/combobox.recipe-KVsma6zb.js.map +1 -0
- package/dist/chunks/context-BmQ51HC8.js +2 -0
- package/dist/chunks/context-BmQ51HC8.js.map +1 -0
- package/dist/chunks/context-CgP0qpkX.js +94 -0
- package/dist/chunks/context-CgP0qpkX.js.map +1 -0
- package/dist/chunks/date-input-9oZMESC7.js +2 -0
- package/dist/chunks/date-input-9oZMESC7.js.map +1 -0
- package/dist/chunks/date-input-DK9U-Nh8.js +16 -0
- package/dist/chunks/date-input-DK9U-Nh8.js.map +1 -0
- package/dist/chunks/date-input.recipe-BcsevQtW.js +119 -0
- package/dist/chunks/date-input.recipe-BcsevQtW.js.map +1 -0
- package/dist/chunks/date-input.recipe-Cf9e8VAr.js +2 -0
- package/dist/chunks/date-input.recipe-Cf9e8VAr.js.map +1 -0
- package/dist/chunks/date-picker-CwXGnIiO.js +2 -0
- package/dist/chunks/date-picker-CwXGnIiO.js.map +1 -0
- package/dist/chunks/date-picker-ShPOqwXi.js +487 -0
- package/dist/chunks/date-picker-ShPOqwXi.js.map +1 -0
- package/dist/chunks/date-picker.recipe-5Avb06qp.js +2 -0
- package/dist/chunks/date-picker.recipe-5Avb06qp.js.map +1 -0
- package/dist/chunks/date-picker.recipe-BJ79OJaw.js +82 -0
- package/dist/chunks/date-picker.recipe-BJ79OJaw.js.map +1 -0
- package/dist/chunks/dialog-C1HRMUcF.js +33 -0
- package/dist/chunks/dialog-C1HRMUcF.js.map +1 -0
- package/dist/chunks/dialog-amEwvIoM.js +2 -0
- package/dist/chunks/dialog-amEwvIoM.js.map +1 -0
- package/dist/chunks/extractStyleProps-CxgBrz3O.js +11 -0
- package/dist/chunks/extractStyleProps-CxgBrz3O.js.map +1 -0
- package/dist/chunks/extractStyleProps-lyk7D-zN.js +2 -0
- package/dist/chunks/extractStyleProps-lyk7D-zN.js.map +1 -0
- package/dist/chunks/filterDOMProps-BS2lrgFA.js +2 -0
- package/dist/chunks/filterDOMProps-BS2lrgFA.js.map +1 -0
- package/dist/chunks/filterDOMProps-D6KHYVBX.js +25 -0
- package/dist/chunks/filterDOMProps-D6KHYVBX.js.map +1 -0
- package/dist/chunks/focusSafely-D_uW2Kp-.js +58 -0
- package/dist/chunks/focusSafely-D_uW2Kp-.js.map +1 -0
- package/dist/chunks/focusSafely-DuMeO0J4.js +2 -0
- package/dist/chunks/focusSafely-DuMeO0J4.js.map +1 -0
- package/dist/chunks/form-field-BUoO6HEy.js +11 -0
- package/dist/chunks/form-field-BUoO6HEy.js.map +1 -0
- package/dist/chunks/form-field-Dr8lL5SU.js +309 -0
- package/dist/chunks/form-field-Dr8lL5SU.js.map +1 -0
- package/dist/chunks/getScrollParent-DE66eQI-.js +15 -0
- package/dist/chunks/getScrollParent-DE66eQI-.js.map +1 -0
- package/dist/chunks/getScrollParent-Dc1cnLDE.js +2 -0
- package/dist/chunks/getScrollParent-Dc1cnLDE.js.map +1 -0
- package/dist/chunks/grid-CLVDMJAz.js +14 -0
- package/dist/chunks/grid-CLVDMJAz.js.map +1 -0
- package/dist/chunks/grid-xr2A-OqD.js +2 -0
- package/dist/chunks/grid-xr2A-OqD.js.map +1 -0
- package/dist/chunks/icon-CjRXcxB9.js +31 -0
- package/dist/chunks/icon-CjRXcxB9.js.map +1 -0
- package/dist/chunks/icon-D50i-dqv.js +2 -0
- package/dist/chunks/icon-D50i-dqv.js.map +1 -0
- package/dist/chunks/icon-button-1V59UrF-.js +14 -0
- package/dist/chunks/icon-button-1V59UrF-.js.map +1 -0
- package/dist/chunks/icon-button-CE-LnFNq.js +2 -0
- package/dist/chunks/icon-button-CE-LnFNq.js.map +1 -0
- package/dist/chunks/image-DCirAAnr.js +2 -0
- package/dist/chunks/image-DCirAAnr.js.map +1 -0
- package/dist/chunks/image-rXPA3shk.js +8 -0
- package/dist/chunks/image-rXPA3shk.js.map +1 -0
- package/dist/chunks/kbd-BKH_SGCC.js +6 -0
- package/dist/chunks/kbd-BKH_SGCC.js.map +1 -0
- package/dist/chunks/kbd-Bhv8ae1I.js +2 -0
- package/dist/chunks/kbd-Bhv8ae1I.js.map +1 -0
- package/dist/chunks/link-1lfvUDKX.js +49 -0
- package/dist/chunks/link-1lfvUDKX.js.map +1 -0
- package/dist/chunks/link-CCDnA-Z-.js +2 -0
- package/dist/chunks/link-CCDnA-Z-.js.map +1 -0
- package/dist/chunks/link.recipe-CG3leGAx.js +2 -0
- package/dist/chunks/link.recipe-CG3leGAx.js.map +1 -0
- package/dist/chunks/link.recipe-CbFF3IUG.js +51 -0
- package/dist/chunks/link.recipe-CbFF3IUG.js.map +1 -0
- package/dist/chunks/list-8yfreyzi.js +2 -0
- package/dist/chunks/list-8yfreyzi.js.map +1 -0
- package/dist/chunks/list-B21joBrq.js +13 -0
- package/dist/chunks/list-B21joBrq.js.map +1 -0
- package/dist/chunks/loading-spinner-B2I1CsuC.js +2 -0
- package/dist/chunks/loading-spinner-B2I1CsuC.js.map +1 -0
- package/dist/chunks/loading-spinner-CJh2luQX.js +137 -0
- package/dist/chunks/loading-spinner-CJh2luQX.js.map +1 -0
- package/dist/chunks/make-element-focusable-ByC0LOwU.js +2 -0
- package/dist/chunks/make-element-focusable-ByC0LOwU.js.map +1 -0
- package/dist/chunks/make-element-focusable-urU2Yczu.js +22 -0
- package/dist/chunks/make-element-focusable-urU2Yczu.js.map +1 -0
- package/dist/chunks/mergeProps-BeIu4MsM.js +2 -0
- package/dist/chunks/mergeProps-BeIu4MsM.js.map +1 -0
- package/dist/chunks/mergeProps-DAjoWNOq.js +128 -0
- package/dist/chunks/mergeProps-DAjoWNOq.js.map +1 -0
- package/dist/chunks/multiline-text-input-B8v-mx89.js +12 -0
- package/dist/chunks/multiline-text-input-B8v-mx89.js.map +1 -0
- package/dist/chunks/multiline-text-input-BS9tsQnR.js +116 -0
- package/dist/chunks/multiline-text-input-BS9tsQnR.js.map +1 -0
- package/dist/chunks/nimbus-provider-CFSRgGKt.js +1530 -0
- package/dist/chunks/nimbus-provider-CFSRgGKt.js.map +1 -0
- package/dist/chunks/nimbus-provider-jZPLt7_j.js +2 -0
- package/dist/chunks/nimbus-provider-jZPLt7_j.js.map +1 -0
- package/dist/chunks/number-5qMXmHyn.js +21 -0
- package/dist/chunks/number-5qMXmHyn.js.map +1 -0
- package/dist/chunks/number-CnrRPi4_.js +2 -0
- package/dist/chunks/number-CnrRPi4_.js.map +1 -0
- package/dist/chunks/number-input-BFA-uYaI.js +652 -0
- package/dist/chunks/number-input-BFA-uYaI.js.map +1 -0
- package/dist/chunks/number-input-CDaEIN66.js +2 -0
- package/dist/chunks/number-input-CDaEIN66.js.map +1 -0
- package/dist/chunks/number-input.recipe-2n6A2w0m.js +2 -0
- package/dist/chunks/number-input.recipe-2n6A2w0m.js.map +1 -0
- package/dist/chunks/number-input.recipe-CbLyhXgE.js +209 -0
- package/dist/chunks/number-input.recipe-CbLyhXgE.js.map +1 -0
- package/dist/chunks/password-input-CEUQjqeT.js +50 -0
- package/dist/chunks/password-input-CEUQjqeT.js.map +1 -0
- package/dist/chunks/password-input-CYZ0QR0V.js +2 -0
- package/dist/chunks/password-input-CYZ0QR0V.js.map +1 -0
- package/dist/chunks/radio-input-5mFGE9qS.js +2 -0
- package/dist/chunks/radio-input-5mFGE9qS.js.map +1 -0
- package/dist/chunks/radio-input-cone4teU.js +319 -0
- package/dist/chunks/radio-input-cone4teU.js.map +1 -0
- package/dist/chunks/radio-input.recipe-DdXB4lqs.js +2 -0
- package/dist/chunks/radio-input.recipe-DdXB4lqs.js.map +1 -0
- package/dist/chunks/radio-input.recipe-QYiFg_Kf.js +75 -0
- package/dist/chunks/radio-input.recipe-QYiFg_Kf.js.map +1 -0
- package/dist/chunks/scrollIntoView-B01y55fg.js +2 -0
- package/dist/chunks/scrollIntoView-B01y55fg.js.map +1 -0
- package/dist/chunks/scrollIntoView-Dtwi5Vrc.js +83 -0
- package/dist/chunks/scrollIntoView-Dtwi5Vrc.js.map +1 -0
- package/dist/chunks/select-BZ2LnuaW.js +791 -0
- package/dist/chunks/select-BZ2LnuaW.js.map +1 -0
- package/dist/chunks/select-CSp1HFJF.js +2 -0
- package/dist/chunks/select-CSp1HFJF.js.map +1 -0
- package/dist/chunks/select.recipe-DS5ZRkug.js +203 -0
- package/dist/chunks/select.recipe-DS5ZRkug.js.map +1 -0
- package/dist/chunks/select.recipe-DUHFWlQt.js +2 -0
- package/dist/chunks/select.recipe-DUHFWlQt.js.map +1 -0
- package/dist/chunks/simple-grid-CHgTayx6.js +2 -0
- package/dist/chunks/simple-grid-CHgTayx6.js.map +1 -0
- package/dist/chunks/simple-grid-D6PoDK0-.js +14 -0
- package/dist/chunks/simple-grid-D6PoDK0-.js.map +1 -0
- package/dist/chunks/stack-__ugxVHD.js +11 -0
- package/dist/chunks/stack-__ugxVHD.js.map +1 -0
- package/dist/chunks/stack-wFUhYQQb.js +2 -0
- package/dist/chunks/stack-wFUhYQQb.js.map +1 -0
- package/dist/chunks/switch-CZji_hBH.js +2 -0
- package/dist/chunks/switch-CZji_hBH.js.map +1 -0
- package/dist/chunks/switch-QvuLHJL-.js +78 -0
- package/dist/chunks/switch-QvuLHJL-.js.map +1 -0
- package/dist/chunks/switch.recipe-D3gb3Xj_.js +100 -0
- package/dist/chunks/switch.recipe-D3gb3Xj_.js.map +1 -0
- package/dist/chunks/switch.recipe-DHopLj_g.js +2 -0
- package/dist/chunks/switch.recipe-DHopLj_g.js.map +1 -0
- package/dist/chunks/tag-group-JxvggHdo.js +1347 -0
- package/dist/chunks/tag-group-JxvggHdo.js.map +1 -0
- package/dist/chunks/tag-group-v87SYIPj.js +2 -0
- package/dist/chunks/tag-group-v87SYIPj.js.map +1 -0
- package/dist/chunks/text-BTD3oGaQ.js +24 -0
- package/dist/chunks/text-BTD3oGaQ.js.map +1 -0
- package/dist/chunks/text-BjzNgHxv.js +2 -0
- package/dist/chunks/text-BjzNgHxv.js.map +1 -0
- package/dist/chunks/text-input-CpABYE1g.js +17 -0
- package/dist/chunks/text-input-CpABYE1g.js.map +1 -0
- package/dist/chunks/text-input-Ov6DSJhs.js +2 -0
- package/dist/chunks/text-input-Ov6DSJhs.js.map +1 -0
- package/dist/chunks/text-input.recipe-CGpq33Pp.js +64 -0
- package/dist/chunks/text-input.recipe-CGpq33Pp.js.map +1 -0
- package/dist/chunks/text-input.recipe-DxzvFMOB.js +2 -0
- package/dist/chunks/text-input.recipe-DxzvFMOB.js.map +1 -0
- package/dist/chunks/time-input-BIUdp4gX.js +2 -0
- package/dist/chunks/time-input-BIUdp4gX.js.map +1 -0
- package/dist/chunks/time-input-DS6RgF12.js +129 -0
- package/dist/chunks/time-input-DS6RgF12.js.map +1 -0
- package/dist/chunks/toggle-button-group-0a-aeCiH.js +265 -0
- package/dist/chunks/toggle-button-group-0a-aeCiH.js.map +1 -0
- package/dist/chunks/toggle-button-group-BdLaFCWe.js +2 -0
- package/dist/chunks/toggle-button-group-BdLaFCWe.js.map +1 -0
- package/dist/chunks/tooltip-BdwdWMCL.js +273 -0
- package/dist/chunks/tooltip-BdwdWMCL.js.map +1 -0
- package/dist/chunks/tooltip-_9ZfCa2D.js +2 -0
- package/dist/chunks/tooltip-_9ZfCa2D.js.map +1 -0
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.js +2 -0
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.js.map +1 -0
- package/dist/chunks/tooltip.recipe-D9fYIQZz.js +24 -0
- package/dist/chunks/tooltip.recipe-D9fYIQZz.js.map +1 -0
- package/dist/chunks/useButton-BRqxk71F.js +2 -0
- package/dist/chunks/useButton-BRqxk71F.js.map +1 -0
- package/dist/chunks/useButton-CGSIlDH9.js +48 -0
- package/dist/chunks/useButton-CGSIlDH9.js.map +1 -0
- package/dist/chunks/useCollator-PO0ZNDFD.js +12 -0
- package/dist/chunks/useCollator-PO0ZNDFD.js.map +1 -0
- package/dist/chunks/useCollator-ajK3YU47.js +2 -0
- package/dist/chunks/useCollator-ajK3YU47.js.map +1 -0
- package/dist/chunks/useControlledState-D0L6S_5r.js +2 -0
- package/dist/chunks/useControlledState-D0L6S_5r.js.map +1 -0
- package/dist/chunks/useControlledState-u436Wbp1.js +31 -0
- package/dist/chunks/useControlledState-u436Wbp1.js.map +1 -0
- package/dist/chunks/useDateFormatter-BYTqyfPM.js +2 -0
- package/dist/chunks/useDateFormatter-BYTqyfPM.js.map +1 -0
- package/dist/chunks/useDateFormatter-CZ3YJIiV.js +1581 -0
- package/dist/chunks/useDateFormatter-CZ3YJIiV.js.map +1 -0
- package/dist/chunks/useEvent-9hDa8zoA.js +22 -0
- package/dist/chunks/useEvent-9hDa8zoA.js.map +1 -0
- package/dist/chunks/useEvent-DCXRKhH2.js +2 -0
- package/dist/chunks/useEvent-DCXRKhH2.js.map +1 -0
- package/dist/chunks/useField-3jug3XBb.js +36 -0
- package/dist/chunks/useField-3jug3XBb.js.map +1 -0
- package/dist/chunks/useField-BeaT9Ud9.js +2 -0
- package/dist/chunks/useField-BeaT9Ud9.js.map +1 -0
- package/dist/chunks/useFocus-CP2rlXSg.js +2 -0
- package/dist/chunks/useFocus-CP2rlXSg.js.map +1 -0
- package/dist/chunks/useFocus-mfjoACQ_.js +184 -0
- package/dist/chunks/useFocus-mfjoACQ_.js.map +1 -0
- package/dist/chunks/useFocusRing-C4z9NtLP.js +2 -0
- package/dist/chunks/useFocusRing-C4z9NtLP.js.map +1 -0
- package/dist/chunks/useFocusRing-C8yOnkHj.js +34 -0
- package/dist/chunks/useFocusRing-C8yOnkHj.js.map +1 -0
- package/dist/chunks/useFocusWithin-BENrOz43.js +2 -0
- package/dist/chunks/useFocusWithin-BENrOz43.js.map +1 -0
- package/dist/chunks/useFocusWithin-CLd9itwe.js +55 -0
- package/dist/chunks/useFocusWithin-CLd9itwe.js.map +1 -0
- package/dist/chunks/useFocusable-C7jAQfqU.js +2 -0
- package/dist/chunks/useFocusable-C7jAQfqU.js.map +1 -0
- package/dist/chunks/useFocusable-IwGfkXQG.js +75 -0
- package/dist/chunks/useFocusable-IwGfkXQG.js.map +1 -0
- package/dist/chunks/useFormReset-Bt5-6Arg.js +2 -0
- package/dist/chunks/useFormReset-Bt5-6Arg.js.map +1 -0
- package/dist/chunks/useFormReset-CzGCrdxu.js +21 -0
- package/dist/chunks/useFormReset-CzGCrdxu.js.map +1 -0
- package/dist/chunks/useFormValidation-BSXga2hX.js +2 -0
- package/dist/chunks/useFormValidation-BSXga2hX.js.map +1 -0
- package/dist/chunks/useFormValidation-BcDTI6Mp.js +179 -0
- package/dist/chunks/useFormValidation-BcDTI6Mp.js.map +1 -0
- package/dist/chunks/useHover-ByIffPdS.js +2 -0
- package/dist/chunks/useHover-ByIffPdS.js.map +1 -0
- package/dist/chunks/useHover-CbdI4C89.js +85 -0
- package/dist/chunks/useHover-CbdI4C89.js.map +1 -0
- package/dist/chunks/useLabel-As7K6zBZ.js +2 -0
- package/dist/chunks/useLabel-As7K6zBZ.js.map +1 -0
- package/dist/chunks/useLabel-Dd6M1Y4b.js +24 -0
- package/dist/chunks/useLabel-Dd6M1Y4b.js.map +1 -0
- package/dist/chunks/useLabels-B-BeKbzR.js +2 -0
- package/dist/chunks/useLabels-B-BeKbzR.js.map +1 -0
- package/dist/chunks/useLabels-B1BLA0b7.js +18 -0
- package/dist/chunks/useLabels-B1BLA0b7.js.map +1 -0
- package/dist/chunks/useLocalizedStringFormatter-CDXOVKSV.js +2 -0
- package/dist/chunks/useLocalizedStringFormatter-CDXOVKSV.js.map +1 -0
- package/dist/chunks/useLocalizedStringFormatter-JGrQYmnh.js +97 -0
- package/dist/chunks/useLocalizedStringFormatter-JGrQYmnh.js.map +1 -0
- package/dist/chunks/useNumberFormatter-DS6s5teN.js +2 -0
- package/dist/chunks/useNumberFormatter-DS6s5teN.js.map +1 -0
- package/dist/chunks/useNumberFormatter-Dx-esBDc.js +14 -0
- package/dist/chunks/useNumberFormatter-Dx-esBDc.js.map +1 -0
- package/dist/chunks/useObjectRef-4v2MxSjQ.js +2 -0
- package/dist/chunks/useObjectRef-4v2MxSjQ.js.map +1 -0
- package/dist/chunks/useObjectRef-CaJ5pgjX.js +30 -0
- package/dist/chunks/useObjectRef-CaJ5pgjX.js.map +1 -0
- package/dist/chunks/usePress-C9YKhG_e.js +8 -0
- package/dist/chunks/usePress-C9YKhG_e.js.map +1 -0
- package/dist/chunks/usePress-dJvNd3G7.js +526 -0
- package/dist/chunks/usePress-dJvNd3G7.js.map +1 -0
- package/dist/chunks/useSingleSelectListState-CwUhrKQb.js +2 -0
- package/dist/chunks/useSingleSelectListState-CwUhrKQb.js.map +1 -0
- package/dist/chunks/useSingleSelectListState-DovbyYzZ.js +269 -0
- package/dist/chunks/useSingleSelectListState-DovbyYzZ.js.map +1 -0
- package/dist/chunks/useSpinButton-D16epD7I.js +432 -0
- package/dist/chunks/useSpinButton-D16epD7I.js.map +1 -0
- package/dist/chunks/useSpinButton-UFcBxg8e.js +2 -0
- package/dist/chunks/useSpinButton-UFcBxg8e.js.map +1 -0
- package/dist/chunks/useTextField-DFfK-BZg.js +88 -0
- package/dist/chunks/useTextField-DFfK-BZg.js.map +1 -0
- package/dist/chunks/useTextField-lejiPfpS.js +2 -0
- package/dist/chunks/useTextField-lejiPfpS.js.map +1 -0
- package/dist/chunks/useToggle-BUU7amte.js +2 -0
- package/dist/chunks/useToggle-BUU7amte.js.map +1 -0
- package/dist/chunks/useToggle-Cp-w42gr.js +50 -0
- package/dist/chunks/useToggle-Cp-w42gr.js.map +1 -0
- package/dist/chunks/useToggleState-B5pE_WmM.js +2 -0
- package/dist/chunks/useToggleState-B5pE_WmM.js.map +1 -0
- package/dist/chunks/useToggleState-Bz5rAf4C.js +19 -0
- package/dist/chunks/useToggleState-Bz5rAf4C.js.map +1 -0
- package/dist/chunks/useUpdateEffect-CCDx8D4X.js +14 -0
- package/dist/chunks/useUpdateEffect-CCDx8D4X.js.map +1 -0
- package/dist/chunks/useUpdateEffect-sk3kiVGz.js +2 -0
- package/dist/chunks/useUpdateEffect-sk3kiVGz.js.map +1 -0
- package/dist/chunks/utils-BzPwFwlw.js +2 -0
- package/dist/chunks/utils-BzPwFwlw.js.map +1 -0
- package/dist/chunks/utils-DTmE9QvG.js +128 -0
- package/dist/chunks/utils-DTmE9QvG.js.map +1 -0
- package/dist/chunks/utils-XbOVivul.js +2 -0
- package/dist/chunks/utils-XbOVivul.js.map +1 -0
- package/dist/chunks/utils-wW2ZswvI.js +231 -0
- package/dist/chunks/utils-wW2ZswvI.js.map +1 -0
- package/dist/chunks/visually-hidden-Qd_t4hAG.js +2 -0
- package/dist/chunks/visually-hidden-Qd_t4hAG.js.map +1 -0
- package/dist/chunks/visually-hidden-T2B120j4.js +11 -0
- package/dist/chunks/visually-hidden-T2B120j4.js.map +1 -0
- package/dist/code.d.ts +10 -0
- package/dist/combobox.d.ts +275 -0
- package/dist/components/accordion.cjs +2 -0
- package/dist/components/accordion.cjs.map +1 -0
- package/dist/components/accordion.es.js +10 -0
- package/dist/components/accordion.es.js.map +1 -0
- package/dist/components/alert.cjs +2 -0
- package/dist/components/alert.cjs.map +1 -0
- package/dist/components/alert.es.js +10 -0
- package/dist/components/alert.es.js.map +1 -0
- package/dist/components/avatar.cjs +2 -0
- package/dist/components/avatar.cjs.map +1 -0
- package/dist/components/avatar.es.js +5 -0
- package/dist/components/avatar.es.js.map +1 -0
- package/dist/components/badge.cjs +2 -0
- package/dist/components/badge.cjs.map +1 -0
- package/dist/components/badge.es.js +5 -0
- package/dist/components/badge.es.js.map +1 -0
- package/dist/components/box.cjs +2 -0
- package/dist/components/box.cjs.map +1 -0
- package/dist/components/box.es.js +5 -0
- package/dist/components/box.es.js.map +1 -0
- package/dist/components/button.cjs +2 -0
- package/dist/components/button.cjs.map +1 -0
- package/dist/components/button.es.js +5 -0
- package/dist/components/button.es.js.map +1 -0
- package/dist/components/calendar.cjs +2 -0
- package/dist/components/calendar.cjs.map +1 -0
- package/dist/components/calendar.es.js +5 -0
- package/dist/components/calendar.es.js.map +1 -0
- package/dist/components/card.cjs +2 -0
- package/dist/components/card.cjs.map +1 -0
- package/dist/components/card.es.js +8 -0
- package/dist/components/card.es.js.map +1 -0
- package/dist/components/checkbox.cjs +2 -0
- package/dist/components/checkbox.cjs.map +1 -0
- package/dist/components/checkbox.es.js +5 -0
- package/dist/components/checkbox.es.js.map +1 -0
- package/dist/components/code.cjs +2 -0
- package/dist/components/code.cjs.map +1 -0
- package/dist/components/code.es.js +5 -0
- package/dist/components/code.es.js.map +1 -0
- package/dist/components/combobox.cjs +2 -0
- package/dist/components/combobox.cjs.map +1 -0
- package/dist/components/combobox.es.js +8 -0
- package/dist/components/combobox.es.js.map +1 -0
- package/dist/components/components.cjs +2 -0
- package/dist/components/components.cjs.map +1 -0
- package/dist/components/components.es.js +125 -0
- package/dist/components/components.es.js.map +1 -0
- package/dist/components/date-input.cjs +2 -0
- package/dist/components/date-input.cjs.map +1 -0
- package/dist/components/date-input.es.js +5 -0
- package/dist/components/date-input.es.js.map +1 -0
- package/dist/components/date-picker.cjs +2 -0
- package/dist/components/date-picker.cjs.map +1 -0
- package/dist/components/date-picker.es.js +5 -0
- package/dist/components/date-picker.es.js.map +1 -0
- package/dist/components/dialog.cjs +2 -0
- package/dist/components/dialog.cjs.map +1 -0
- package/dist/components/dialog.es.js +5 -0
- package/dist/components/dialog.es.js.map +1 -0
- package/dist/components/flex.cjs +2 -0
- package/dist/components/flex.cjs.map +1 -0
- package/dist/components/flex.es.js +5 -0
- package/dist/components/flex.es.js.map +1 -0
- package/dist/components/form-field.cjs +2 -0
- package/dist/components/form-field.cjs.map +1 -0
- package/dist/components/form-field.es.js +11 -0
- package/dist/components/form-field.es.js.map +1 -0
- package/dist/components/grid.cjs +2 -0
- package/dist/components/grid.cjs.map +1 -0
- package/dist/components/grid.es.js +5 -0
- package/dist/components/grid.es.js.map +1 -0
- package/dist/components/heading.cjs +2 -0
- package/dist/components/heading.cjs.map +1 -0
- package/dist/components/heading.es.js +5 -0
- package/dist/components/heading.es.js.map +1 -0
- package/dist/components/icon-button.cjs +2 -0
- package/dist/components/icon-button.cjs.map +1 -0
- package/dist/components/icon-button.es.js +5 -0
- package/dist/components/icon-button.es.js.map +1 -0
- package/dist/components/icon.cjs +2 -0
- package/dist/components/icon.cjs.map +1 -0
- package/dist/components/icon.es.js +5 -0
- package/dist/components/icon.es.js.map +1 -0
- package/dist/components/image.cjs +2 -0
- package/dist/components/image.cjs.map +1 -0
- package/dist/components/image.es.js +5 -0
- package/dist/components/image.es.js.map +1 -0
- package/dist/components/kbd.cjs +2 -0
- package/dist/components/kbd.cjs.map +1 -0
- package/dist/components/kbd.es.js +5 -0
- package/dist/components/kbd.es.js.map +1 -0
- package/dist/components/link.cjs +2 -0
- package/dist/components/link.cjs.map +1 -0
- package/dist/components/link.es.js +5 -0
- package/dist/components/link.es.js.map +1 -0
- package/dist/components/list.cjs +2 -0
- package/dist/components/list.cjs.map +1 -0
- package/dist/components/list.es.js +8 -0
- package/dist/components/list.es.js.map +1 -0
- package/dist/components/loading-spinner.cjs +2 -0
- package/dist/components/loading-spinner.cjs.map +1 -0
- package/dist/components/loading-spinner.es.js +5 -0
- package/dist/components/loading-spinner.es.js.map +1 -0
- package/dist/components/multiline-text-input.cjs +2 -0
- package/dist/components/multiline-text-input.cjs.map +1 -0
- package/dist/components/multiline-text-input.es.js +5 -0
- package/dist/components/multiline-text-input.es.js.map +1 -0
- package/dist/components/nimbus-provider.cjs +2 -0
- package/dist/components/nimbus-provider.cjs.map +1 -0
- package/dist/components/nimbus-provider.es.js +8 -0
- package/dist/components/nimbus-provider.es.js.map +1 -0
- package/dist/components/number-input.cjs +2 -0
- package/dist/components/number-input.cjs.map +1 -0
- package/dist/components/number-input.es.js +5 -0
- package/dist/components/number-input.es.js.map +1 -0
- package/dist/components/password-input.cjs +2 -0
- package/dist/components/password-input.cjs.map +1 -0
- package/dist/components/password-input.es.js +5 -0
- package/dist/components/password-input.es.js.map +1 -0
- package/dist/components/radio-input.cjs +2 -0
- package/dist/components/radio-input.cjs.map +1 -0
- package/dist/components/radio-input.es.js +7 -0
- package/dist/components/radio-input.es.js.map +1 -0
- package/dist/components/select.cjs +2 -0
- package/dist/components/select.cjs.map +1 -0
- package/dist/components/select.es.js +9 -0
- package/dist/components/select.es.js.map +1 -0
- package/dist/components/simple-grid.cjs +2 -0
- package/dist/components/simple-grid.cjs.map +1 -0
- package/dist/components/simple-grid.es.js +5 -0
- package/dist/components/simple-grid.es.js.map +1 -0
- package/dist/components/stack.cjs +2 -0
- package/dist/components/stack.cjs.map +1 -0
- package/dist/components/stack.es.js +5 -0
- package/dist/components/stack.es.js.map +1 -0
- package/dist/components/switch.cjs +2 -0
- package/dist/components/switch.cjs.map +1 -0
- package/dist/components/switch.es.js +5 -0
- package/dist/components/switch.es.js.map +1 -0
- package/dist/components/table.cjs +2 -0
- package/dist/components/table.cjs.map +1 -0
- package/dist/components/table.es.js +5 -0
- package/dist/components/table.es.js.map +1 -0
- package/dist/components/tag-group.cjs +2 -0
- package/dist/components/tag-group.cjs.map +1 -0
- package/dist/components/tag-group.es.js +5 -0
- package/dist/components/tag-group.es.js.map +1 -0
- package/dist/components/text-input.cjs +2 -0
- package/dist/components/text-input.cjs.map +1 -0
- package/dist/components/text-input.es.js +5 -0
- package/dist/components/text-input.es.js.map +1 -0
- package/dist/components/text.cjs +2 -0
- package/dist/components/text.cjs.map +1 -0
- package/dist/components/text.es.js +5 -0
- package/dist/components/text.es.js.map +1 -0
- package/dist/components/time-input.cjs +2 -0
- package/dist/components/time-input.cjs.map +1 -0
- package/dist/components/time-input.es.js +5 -0
- package/dist/components/time-input.es.js.map +1 -0
- package/dist/components/toggle-button-group.cjs +2 -0
- package/dist/components/toggle-button-group.cjs.map +1 -0
- package/dist/components/toggle-button-group.es.js +7 -0
- package/dist/components/toggle-button-group.es.js.map +1 -0
- package/dist/components/tooltip.cjs +2 -0
- package/dist/components/tooltip.cjs.map +1 -0
- package/dist/components/tooltip.es.js +9 -0
- package/dist/components/tooltip.es.js.map +1 -0
- package/dist/components/visually-hidden.cjs +2 -0
- package/dist/components/visually-hidden.cjs.map +1 -0
- package/dist/components/visually-hidden.es.js +5 -0
- package/dist/components/visually-hidden.es.js.map +1 -0
- package/dist/components.d.ts +2668 -0
- package/dist/date-input.d.ts +94 -0
- package/dist/date-picker.d.ts +164 -0
- package/dist/dialog.d.ts +33 -0
- package/dist/flex.d.ts +5 -0
- package/dist/form-field.d.ts +131 -0
- package/dist/grid.d.ts +28 -0
- package/dist/heading.d.ts +5 -0
- package/dist/icon-button.d.ts +53 -0
- package/dist/icon.d.ts +99 -0
- package/dist/image.d.ts +18 -0
- package/dist/index.cjs +1 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +934 -748
- package/dist/index.es.js +308 -22041
- package/dist/index.es.js.map +1 -1
- package/dist/kbd.d.ts +10 -0
- package/dist/link.d.ts +92 -0
- package/dist/list.d.ts +21 -0
- package/dist/loading-spinner.d.ts +88 -0
- package/dist/multiline-text-input.d.ts +76 -0
- package/dist/nimbus-provider.d.ts +23 -0
- package/dist/number-input.d.ts +143 -0
- package/dist/password-input.d.ts +74 -0
- package/dist/radio-input.d.ts +70 -0
- package/dist/select.d.ts +143 -0
- package/dist/setup-jsdom-polyfills.cjs.map +1 -1
- package/dist/setup-jsdom-polyfills.es.js.map +1 -1
- package/dist/simple-grid.d.ts +28 -0
- package/dist/stack.d.ts +14 -0
- package/dist/switch.d.ts +75 -0
- package/dist/table.d.ts +5 -0
- package/dist/tag-group.d.ts +99 -0
- package/dist/text-input.d.ts +68 -0
- package/dist/text.d.ts +20 -0
- package/dist/time-input.d.ts +102 -0
- package/dist/toggle-button-group.d.ts +107 -0
- package/dist/tooltip.d.ts +134 -0
- package/dist/visually-hidden.d.ts +15 -0
- package/package.json +6 -5
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
let t = null;
|
|
2
|
+
function s(o, e = "assertive", i = 7e3) {
|
|
3
|
+
t ? t.announce(o, e, i) : (t = new r(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? t.announce(o, e, i) : setTimeout(() => {
|
|
4
|
+
t != null && t.isAttached() && (t == null || t.announce(o, e, i));
|
|
5
|
+
}, 100));
|
|
6
|
+
}
|
|
7
|
+
function h(o) {
|
|
8
|
+
t && t.clear(o);
|
|
9
|
+
}
|
|
10
|
+
class r {
|
|
11
|
+
isAttached() {
|
|
12
|
+
var e;
|
|
13
|
+
return (e = this.node) === null || e === void 0 ? void 0 : e.isConnected;
|
|
14
|
+
}
|
|
15
|
+
createLog(e) {
|
|
16
|
+
let i = document.createElement("div");
|
|
17
|
+
return i.setAttribute("role", "log"), i.setAttribute("aria-live", e), i.setAttribute("aria-relevant", "additions"), i;
|
|
18
|
+
}
|
|
19
|
+
destroy() {
|
|
20
|
+
this.node && (document.body.removeChild(this.node), this.node = null);
|
|
21
|
+
}
|
|
22
|
+
announce(e, i = "assertive", a = 7e3) {
|
|
23
|
+
var d, l;
|
|
24
|
+
if (!this.node) return;
|
|
25
|
+
let n = document.createElement("div");
|
|
26
|
+
typeof e == "object" ? (n.setAttribute("role", "img"), n.setAttribute("aria-labelledby", e["aria-labelledby"])) : n.textContent = e, i === "assertive" ? (d = this.assertiveLog) === null || d === void 0 || d.appendChild(n) : (l = this.politeLog) === null || l === void 0 || l.appendChild(n), e !== "" && setTimeout(() => {
|
|
27
|
+
n.remove();
|
|
28
|
+
}, a);
|
|
29
|
+
}
|
|
30
|
+
clear(e) {
|
|
31
|
+
this.node && ((!e || e === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!e || e === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
|
|
32
|
+
}
|
|
33
|
+
constructor() {
|
|
34
|
+
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
|
|
35
|
+
border: 0,
|
|
36
|
+
clip: "rect(0 0 0 0)",
|
|
37
|
+
clipPath: "inset(50%)",
|
|
38
|
+
height: "1px",
|
|
39
|
+
margin: "-1px",
|
|
40
|
+
overflow: "hidden",
|
|
41
|
+
padding: 0,
|
|
42
|
+
position: "absolute",
|
|
43
|
+
width: "1px",
|
|
44
|
+
whiteSpace: "nowrap"
|
|
45
|
+
}), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
s as $,
|
|
50
|
+
h as a
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=LiveAnnouncer-B6177m92.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveAnnouncer-B6177m92.js","sources":["../../../../node_modules/.pnpm/@react-aria+live-announcer@3.4.3/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $319e236875307eab$var$liveAnnouncer = null;\nfunction $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n // @ts-ignore\n if (!(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.isAttached()) $319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n }, 100);\n else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $319e236875307eab$export$d10ae4f68404609a(assertiveness) {\n if ($319e236875307eab$var$liveAnnouncer) $319e236875307eab$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $319e236875307eab$export$d8686216b8b81b2f() {\n if ($319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer.destroy();\n $319e236875307eab$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $319e236875307eab$var$LiveAnnouncer {\n isAttached() {\n var _this_node;\n return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n var _this_assertiveLog, _this_politeLog;\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 ? void 0 : _this_assertiveLog.appendChild(node);\n else (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 ? void 0 : _this_politeLog.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n}\n\n\nexport {$319e236875307eab$export$a9b970dcc4ae71a9 as announce, $319e236875307eab$export$d10ae4f68404609a as clearAnnouncer, $319e236875307eab$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.module.js.map\n"],"names":["$319e236875307eab$var$liveAnnouncer","$319e236875307eab$export$a9b970dcc4ae71a9","message","assertiveness","timeout","$319e236875307eab$var$LiveAnnouncer","$319e236875307eab$export$d10ae4f68404609a","_this_node","ariaLive","node","_this_assertiveLog","_this_politeLog"],"mappings":"AAWA,IAAIA,IAAsC;AAC1C,SAASC,EAA0CC,GAASC,IAAgB,aAAaC,IAAU,KAAgD;AAC/I,EAAKJ,IAaEA,EAAoC,SAASE,GAASC,GAAeC,CAAO,KAZ/EJ,IAAsC,IAAIK,EAAqC,IAQzE,OAAO,4BAA6B,YAAY,2BAA2B,OAAO,OAAS,OAG5FL,EAAoC,SAASE,GAASC,GAAeC,CAAO,IAH8B,WAAW,MAAI;AAC1H,IAAIJ,KAAwC,QAAkEA,EAAoC,iBAAcA,KAAwC,QAAkEA,EAAoC,SAASE,GAASC,GAAeC,CAAO;AAAA,EACzV,GAAE,GAAG;AAGd;AACA,SAASE,EAA0CH,GAAe;AAC9D,EAAIH,KAAqCA,EAAoC,MAAMG,CAAa;AACpG;AAaA,MAAME,EAAoC;AAAA,EACtC,aAAa;AACT,QAAIE;AACJ,YAAQA,IAAa,KAAK,UAAU,QAAQA,MAAe,SAAS,SAASA,EAAW;AAAA,EAChG;AAAA,EACI,UAAUC,GAAU;AAChB,QAAIC,IAAO,SAAS,cAAc,KAAK;AACvC,WAAAA,EAAK,aAAa,QAAQ,KAAK,GAC/BA,EAAK,aAAa,aAAaD,CAAQ,GACvCC,EAAK,aAAa,iBAAiB,WAAW,GACvCA;AAAA,EACf;AAAA,EACI,UAAU;AACN,IAAK,KAAK,SACV,SAAS,KAAK,YAAY,KAAK,IAAI,GAC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,GACxC,KAAK,KAAK,YAAY,KAAK,SAAS,GACpC,SAAS,KAAK,QAAQ,KAAK,IAAI;AAAA,EAE3C;AACA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";let t=null;function l(o,e="assertive",i=7e3){t?t.announce(o,e,i):(t=new h,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?t.announce(o,e,i):setTimeout(()=>{t!=null&&t.isAttached()&&(t==null||t.announce(o,e,i))},100))}function s(o){t&&t.clear(o)}class h{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let i=document.createElement("div");return i.setAttribute("role","log"),i.setAttribute("aria-live",e),i.setAttribute("aria-relevant","additions"),i}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,i="assertive",r=7e3){var d,a;if(!this.node)return;let n=document.createElement("div");typeof e=="object"?(n.setAttribute("role","img"),n.setAttribute("aria-labelledby",e["aria-labelledby"])):n.textContent=e,i==="assertive"?(d=this.assertiveLog)===null||d===void 0||d.appendChild(n):(a=this.politeLog)===null||a===void 0||a.appendChild(n),e!==""&&setTimeout(()=>{n.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}exports.$319e236875307eab$export$a9b970dcc4ae71a9=l;exports.$319e236875307eab$export$d10ae4f68404609a=s;
|
|
2
|
+
//# sourceMappingURL=LiveAnnouncer-CwEWPU8b.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveAnnouncer-CwEWPU8b.js","sources":["../../../../node_modules/.pnpm/@react-aria+live-announcer@3.4.3/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $319e236875307eab$var$liveAnnouncer = null;\nfunction $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n // @ts-ignore\n if (!(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.isAttached()) $319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n }, 100);\n else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $319e236875307eab$export$d10ae4f68404609a(assertiveness) {\n if ($319e236875307eab$var$liveAnnouncer) $319e236875307eab$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $319e236875307eab$export$d8686216b8b81b2f() {\n if ($319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer.destroy();\n $319e236875307eab$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $319e236875307eab$var$LiveAnnouncer {\n isAttached() {\n var _this_node;\n return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n var _this_assertiveLog, _this_politeLog;\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 ? void 0 : _this_assertiveLog.appendChild(node);\n else (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 ? void 0 : _this_politeLog.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n}\n\n\nexport {$319e236875307eab$export$a9b970dcc4ae71a9 as announce, $319e236875307eab$export$d10ae4f68404609a as clearAnnouncer, $319e236875307eab$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.module.js.map\n"],"names":["$319e236875307eab$var$liveAnnouncer","$319e236875307eab$export$a9b970dcc4ae71a9","message","assertiveness","timeout","$319e236875307eab$var$LiveAnnouncer","$319e236875307eab$export$d10ae4f68404609a","_this_node","ariaLive","node","_this_assertiveLog","_this_politeLog"],"mappings":"aAWA,IAAIA,EAAsC,KAC1C,SAASC,EAA0CC,EAASC,EAAgB,YAAaC,EAAU,IAAgD,CAC1IJ,EAaEA,EAAoC,SAASE,EAASC,EAAeC,CAAO,GAZ/EJ,EAAsC,IAAIK,GAQpC,OAAO,0B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G,CAACA,GAAiBA,IAAkB,WAAa,KAAK,YAAW,KAAK,UAAU,UAAY,IACzG,CACI,aAAa,CACT,KAAK,KAAO,KACZ,KAAK,aAAe,KACpB,KAAK,UAAY,KACb,OAAO,SAAa,MACpB,KAAK,KAAO,SAAS,cAAc,KAAK,EACxC,KAAK,KAAK,QAAQ,cAAgB,OAElC,OAAO,OAAO,KAAK,KAAK,MAAO,CAC3B,OAAQ,EACR,KAAM,gBACN,SAAU,aACV,OAAQ,MACR,OAAQ,OACR,SAAU,SACV,QAAS,EACT,SAAU,WACV,MAAO,MACP,WAAY,QAC5B,CAAa,EACD,KAAK,aAAe,KAAK,UAAU,WAAW,EAC9C,KAAK,KAAK,YAAY,KAAK,YAAY,EACvC,KAAK,UAAY,KAAK,UAAU,QAAQ,EACxC,KAAK,KAAK,YAAY,KAAK,SAAS,EACpC,SAAS,KAAK,QAAQ,KAAK,IAAI,EAE3C,CACA","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";let f=new Map,u=!1;try{u=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let l=!1;try{l=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const c={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class p{format(t){let e="";if(!u&&this.options.signDisplay!=null?e=d(this.numberFormatter,this.options.signDisplay,t):e=this.numberFormatter.format(t),this.options.style==="unit"&&!l){var i;let{unit:a,unitDisplay:s="short",locale:n}=this.resolvedOptions();if(!a)return e;let o=(i=c[a])===null||i===void 0?void 0:i[s];e+=o[n]||o.default}return e}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,e){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(e)}`}formatRangeToParts(t,e){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let i=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(e);return[...i.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!u&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!l&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,e={}){this.numberFormatter=m(t,e),this.options=e}}function m(r,t={}){let{numberingSystem:e}=t;if(e&&r.includes("-nu-")&&(r.includes("-u-")||(r+="-u-"),r+=`-nu-${e}`),t.style==="unit"&&!l){var i;let{unit:n,unitDisplay:o="short"}=t;if(!n)throw new Error('unit option must be provided with style: "unit"');if(!(!((i=c[n])===null||i===void 0)&&i[o]))throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let a=r+(t?Object.entries(t).sort((n,o)=>n[0]<o[0]?-1:1).join():"");if(f.has(a))return f.get(a);let s=new Intl.NumberFormat(r,t);return f.set(a,s),s}function d(r,t,e){if(t==="auto")return r.format(e);if(t==="never")return r.format(Math.abs(e));{let i=!1;if(t==="always"?i=e>0||Object.is(e,0):t==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):i=e>0),i){let a=r.format(-e),s=r.format(e),n=a.replace(s,"").replace(/\u200e|\u061C/,"");return[...n].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(s,"!!!").replace(n,"+").replace("!!!",s)}else return r.format(e)}}exports.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5=p;
|
|
2
|
+
//# sourceMappingURL=NumberFormatter-DewVDY5w.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberFormatter-DewVDY5w.js","sources":["../../../../node_modules/.pnpm/@internationalized+number@3.6.3/node_modules/@internationalized/number/dist/NumberFormatter.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ let $488c6ddbf4ef74c2$var$formatterCache = new Map();\nlet $488c6ddbf4ef74c2$var$supportsSignDisplay = false;\ntry {\n $488c6ddbf4ef74c2$var$supportsSignDisplay = new Intl.NumberFormat('de-DE', {\n signDisplay: 'exceptZero'\n }).resolvedOptions().signDisplay === 'exceptZero';\n// eslint-disable-next-line no-empty\n} catch {}\nlet $488c6ddbf4ef74c2$var$supportsUnit = false;\ntry {\n $488c6ddbf4ef74c2$var$supportsUnit = new Intl.NumberFormat('de-DE', {\n style: 'unit',\n unit: 'degree'\n }).resolvedOptions().style === 'unit';\n// eslint-disable-next-line no-empty\n} catch {}\n// Polyfill for units since Safari doesn't support them yet. See https://bugs.webkit.org/show_bug.cgi?id=215438.\n// Currently only polyfilling the unit degree in narrow format for ColorSlider in our supported locales.\n// Values were determined by switching to each locale manually in Chrome.\nconst $488c6ddbf4ef74c2$var$UNITS = {\n degree: {\n narrow: {\n default: \"\\xb0\",\n 'ja-JP': \" \\u5EA6\",\n 'zh-TW': \"\\u5EA6\",\n 'sl-SI': \" \\xb0\"\n }\n }\n};\nclass $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 {\n /** Formats a number value as a string, according to the locale and options provided to the constructor. */ format(value) {\n let res = '';\n if (!$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null) res = $488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, value);\n else res = this.numberFormatter.format(value);\n if (this.options.style === 'unit' && !$488c6ddbf4ef74c2$var$supportsUnit) {\n var _UNITS_unit;\n let { unit: unit, unitDisplay: unitDisplay = 'short', locale: locale } = this.resolvedOptions();\n if (!unit) return res;\n let values = (_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0 ? void 0 : _UNITS_unit[unitDisplay];\n res += values[locale] || values.default;\n }\n return res;\n }\n /** Formats a number to an array of parts such as separators, digits, punctuation, and more. */ formatToParts(value) {\n // TODO: implement signDisplay for formatToParts\n return this.numberFormatter.formatToParts(value);\n }\n /** Formats a number range as a string. */ formatRange(start, end) {\n if (typeof this.numberFormatter.formatRange === 'function') return this.numberFormatter.formatRange(start, end);\n if (end < start) throw new RangeError('End date must be >= start date');\n // Very basic fallback for old browsers.\n return `${this.format(start)} \\u{2013} ${this.format(end)}`;\n }\n /** Formats a number range as an array of parts. */ formatRangeToParts(start, end) {\n if (typeof this.numberFormatter.formatRangeToParts === 'function') return this.numberFormatter.formatRangeToParts(start, end);\n if (end < start) throw new RangeError('End date must be >= start date');\n let startParts = this.numberFormatter.formatToParts(start);\n let endParts = this.numberFormatter.formatToParts(end);\n return [\n ...startParts.map((p)=>({\n ...p,\n source: 'startRange'\n })),\n {\n type: 'literal',\n value: \" \\u2013 \",\n source: 'shared'\n },\n ...endParts.map((p)=>({\n ...p,\n source: 'endRange'\n }))\n ];\n }\n /** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {\n let options = this.numberFormatter.resolvedOptions();\n if (!$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null) options = {\n ...options,\n signDisplay: this.options.signDisplay\n };\n if (!$488c6ddbf4ef74c2$var$supportsUnit && this.options.style === 'unit') options = {\n ...options,\n style: 'unit',\n unit: this.options.unit,\n unitDisplay: this.options.unitDisplay\n };\n return options;\n }\n constructor(locale, options = {}){\n this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options);\n this.options = options;\n }\n}\nfunction $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options = {}) {\n let { numberingSystem: numberingSystem } = options;\n if (numberingSystem && locale.includes('-nu-')) {\n if (!locale.includes('-u-')) locale += '-u-';\n locale += `-nu-${numberingSystem}`;\n }\n if (options.style === 'unit' && !$488c6ddbf4ef74c2$var$supportsUnit) {\n var _UNITS_unit;\n let { unit: unit, unitDisplay: unitDisplay = 'short' } = options;\n if (!unit) throw new Error('unit option must be provided with style: \"unit\"');\n if (!((_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0 ? void 0 : _UNITS_unit[unitDisplay])) throw new Error(`Unsupported unit ${unit} with unitDisplay = ${unitDisplay}`);\n options = {\n ...options,\n style: 'decimal'\n };\n }\n let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : '');\n if ($488c6ddbf4ef74c2$var$formatterCache.has(cacheKey)) return $488c6ddbf4ef74c2$var$formatterCache.get(cacheKey);\n let numberFormatter = new Intl.NumberFormat(locale, options);\n $488c6ddbf4ef74c2$var$formatterCache.set(cacheKey, numberFormatter);\n return numberFormatter;\n}\nfunction $488c6ddbf4ef74c2$export$711b50b3c525e0f2(numberFormat, signDisplay, num) {\n if (signDisplay === 'auto') return numberFormat.format(num);\n else if (signDisplay === 'never') return numberFormat.format(Math.abs(num));\n else {\n let needsPositiveSign = false;\n if (signDisplay === 'always') needsPositiveSign = num > 0 || Object.is(num, 0);\n else if (signDisplay === 'exceptZero') {\n if (Object.is(num, -0) || Object.is(num, 0)) num = Math.abs(num);\n else needsPositiveSign = num > 0;\n }\n if (needsPositiveSign) {\n let negative = numberFormat.format(-num);\n let noSign = numberFormat.format(num);\n // ignore RTL/LTR marker character\n let minus = negative.replace(noSign, '').replace(/\\u200e|\\u061C/, '');\n if ([\n ...minus\n ].length !== 1) console.warn('@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case');\n let positive = negative.replace(noSign, '!!!').replace(minus, '+').replace('!!!', noSign);\n return positive;\n } else return numberFormat.format(num);\n }\n}\n\n\nexport {$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 as NumberFormatter, $488c6ddbf4ef74c2$export$711b50b3c525e0f2 as numberFormatSignDisplayPolyfill};\n//# sourceMappingURL=NumberFormatter.module.js.map\n"],"names":["$488c6ddbf4ef74c2$var$formatterCache","$488c6ddbf4ef74c2$var$supportsSignDisplay","$488c6ddbf4ef74c2$var$supportsUnit","$488c6ddbf4ef74c2$var$UNITS","$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5","value","res","$488c6ddbf4ef74c2$export$711b50b3c525e0f2","_UNITS_unit","unit","unitDisplay","locale","values","start","end","startParts","endParts","p","options","$488c6ddbf4ef74c2$var$getCachedNumberFormatter","numberingSystem","cacheKey","a","b","numberFormatter","numberFormat","signDisplay","num","needsPositiveSign","negative","noSign","minus"],"mappings":"aAUI,IAAIA,EAAuC,IAAI,IAC/CC,EAA4C,GAChD,GAAI,CACAA,EAA4C,IAAI,KAAK,aAAa,QAAS,CACvE,YAAa,YACrB,CAAK,EAAE,kBAAkB,cAAgB,YAEzC,MAAS,CAAA,CACT,IAAIC,EAAqC,GACzC,GAAI,CACAA,EAAqC,IAAI,KAAK,aAAa,QAAS,CAChE,MAAO,OACP,KAAM,QACd,CAAK,EAAE,kBAAkB,QAAU,MAEnC,MAAS,CAAA,CAIT,MAAMC,EAA8B,CAChC,OAAQ,CACJ,OAAQ,CACJ,QAAS,IACT,QAAS,KACT,QAAS,IACT,QAAS,IACrB,CACA,CACA,EACA,MAAMC,CAA0C,CACgE,OAAOC,EAAO,CACtH,IAAIC,EAAM,GAGV,GAFI,CAACL,GAA6C,KAAK,QAAQ,aAAe,KAAMK,EAAMC,EAA0C,KAAK,gBAAiB,KAAK,QAAQ,YAAaF,CAAK,EACpLC,EAAM,KAAK,gBAAgB,OAAOD,CAAK,EACxC,KAA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AgB,OAAQ,OAAOD,EAAa,OAAOE,CAAG,EACrD,GAAID,IAAgB,QAAS,OAAOD,EAAa,OAAO,KAAK,IAAIE,CAAG,CAAC,EACrE,CACD,IAAIC,EAAoB,GAMxB,GALIF,IAAgB,SAAUE,EAAoBD,EAAM,GAAK,OAAO,GAAGA,EAAK,CAAC,EACpED,IAAgB,eACjB,OAAO,GAAGC,EAAK,EAAE,GAAK,OAAO,GAAGA,EAAK,CAAC,EAAGA,EAAM,KAAK,IAAIA,CAAG,EAC1DC,EAAoBD,EAAM,GAE/BC,EAAmB,CACnB,IAAIC,EAAWJ,EAAa,OAAO,CAACE,CAAG,EACnCG,EAASL,EAAa,OAAOE,CAAG,EAEhCI,EAAQF,EAAS,QAAQC,EAAQ,EAAE,EAAE,QAAQ,gBAAiB,EAAE,EACpE,MAAI,CACA,GAAGC,CACN,EAAC,SAAW,GAAG,QAAQ,KAAK,0EAA0E,EACxFF,EAAS,QAAQC,EAAQ,KAAK,EAAE,QAAQC,EAAO,GAAG,EAAE,QAAQ,MAAOD,CAAM,CAEpG,KAAe,QAAOL,EAAa,OAAOE,CAAG,CAC7C,CACA","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
let u = /* @__PURE__ */ new Map(), f = !1;
|
|
2
|
+
try {
|
|
3
|
+
f = new Intl.NumberFormat("de-DE", {
|
|
4
|
+
signDisplay: "exceptZero"
|
|
5
|
+
}).resolvedOptions().signDisplay === "exceptZero";
|
|
6
|
+
} catch {
|
|
7
|
+
}
|
|
8
|
+
let l = !1;
|
|
9
|
+
try {
|
|
10
|
+
l = new Intl.NumberFormat("de-DE", {
|
|
11
|
+
style: "unit",
|
|
12
|
+
unit: "degree"
|
|
13
|
+
}).resolvedOptions().style === "unit";
|
|
14
|
+
} catch {
|
|
15
|
+
}
|
|
16
|
+
const c = {
|
|
17
|
+
degree: {
|
|
18
|
+
narrow: {
|
|
19
|
+
default: "°",
|
|
20
|
+
"ja-JP": " 度",
|
|
21
|
+
"zh-TW": "度",
|
|
22
|
+
"sl-SI": " °"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
class d {
|
|
27
|
+
/** Formats a number value as a string, according to the locale and options provided to the constructor. */
|
|
28
|
+
format(t) {
|
|
29
|
+
let e = "";
|
|
30
|
+
if (!f && this.options.signDisplay != null ? e = m(this.numberFormatter, this.options.signDisplay, t) : e = this.numberFormatter.format(t), this.options.style === "unit" && !l) {
|
|
31
|
+
var i;
|
|
32
|
+
let { unit: a, unitDisplay: s = "short", locale: n } = this.resolvedOptions();
|
|
33
|
+
if (!a) return e;
|
|
34
|
+
let o = (i = c[a]) === null || i === void 0 ? void 0 : i[s];
|
|
35
|
+
e += o[n] || o.default;
|
|
36
|
+
}
|
|
37
|
+
return e;
|
|
38
|
+
}
|
|
39
|
+
/** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
|
|
40
|
+
formatToParts(t) {
|
|
41
|
+
return this.numberFormatter.formatToParts(t);
|
|
42
|
+
}
|
|
43
|
+
/** Formats a number range as a string. */
|
|
44
|
+
formatRange(t, e) {
|
|
45
|
+
if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(t, e);
|
|
46
|
+
if (e < t) throw new RangeError("End date must be >= start date");
|
|
47
|
+
return `${this.format(t)} – ${this.format(e)}`;
|
|
48
|
+
}
|
|
49
|
+
/** Formats a number range as an array of parts. */
|
|
50
|
+
formatRangeToParts(t, e) {
|
|
51
|
+
if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(t, e);
|
|
52
|
+
if (e < t) throw new RangeError("End date must be >= start date");
|
|
53
|
+
let i = this.numberFormatter.formatToParts(t), a = this.numberFormatter.formatToParts(e);
|
|
54
|
+
return [
|
|
55
|
+
...i.map((s) => ({
|
|
56
|
+
...s,
|
|
57
|
+
source: "startRange"
|
|
58
|
+
})),
|
|
59
|
+
{
|
|
60
|
+
type: "literal",
|
|
61
|
+
value: " – ",
|
|
62
|
+
source: "shared"
|
|
63
|
+
},
|
|
64
|
+
...a.map((s) => ({
|
|
65
|
+
...s,
|
|
66
|
+
source: "endRange"
|
|
67
|
+
}))
|
|
68
|
+
];
|
|
69
|
+
}
|
|
70
|
+
/** Returns the resolved formatting options based on the values passed to the constructor. */
|
|
71
|
+
resolvedOptions() {
|
|
72
|
+
let t = this.numberFormatter.resolvedOptions();
|
|
73
|
+
return !f && this.options.signDisplay != null && (t = {
|
|
74
|
+
...t,
|
|
75
|
+
signDisplay: this.options.signDisplay
|
|
76
|
+
}), !l && this.options.style === "unit" && (t = {
|
|
77
|
+
...t,
|
|
78
|
+
style: "unit",
|
|
79
|
+
unit: this.options.unit,
|
|
80
|
+
unitDisplay: this.options.unitDisplay
|
|
81
|
+
}), t;
|
|
82
|
+
}
|
|
83
|
+
constructor(t, e = {}) {
|
|
84
|
+
this.numberFormatter = p(t, e), this.options = e;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function p(r, t = {}) {
|
|
88
|
+
let { numberingSystem: e } = t;
|
|
89
|
+
if (e && r.includes("-nu-") && (r.includes("-u-") || (r += "-u-"), r += `-nu-${e}`), t.style === "unit" && !l) {
|
|
90
|
+
var i;
|
|
91
|
+
let { unit: n, unitDisplay: o = "short" } = t;
|
|
92
|
+
if (!n) throw new Error('unit option must be provided with style: "unit"');
|
|
93
|
+
if (!(!((i = c[n]) === null || i === void 0) && i[o])) throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);
|
|
94
|
+
t = {
|
|
95
|
+
...t,
|
|
96
|
+
style: "decimal"
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
let a = r + (t ? Object.entries(t).sort((n, o) => n[0] < o[0] ? -1 : 1).join() : "");
|
|
100
|
+
if (u.has(a)) return u.get(a);
|
|
101
|
+
let s = new Intl.NumberFormat(r, t);
|
|
102
|
+
return u.set(a, s), s;
|
|
103
|
+
}
|
|
104
|
+
function m(r, t, e) {
|
|
105
|
+
if (t === "auto") return r.format(e);
|
|
106
|
+
if (t === "never") return r.format(Math.abs(e));
|
|
107
|
+
{
|
|
108
|
+
let i = !1;
|
|
109
|
+
if (t === "always" ? i = e > 0 || Object.is(e, 0) : t === "exceptZero" && (Object.is(e, -0) || Object.is(e, 0) ? e = Math.abs(e) : i = e > 0), i) {
|
|
110
|
+
let a = r.format(-e), s = r.format(e), n = a.replace(s, "").replace(/\u200e|\u061C/, "");
|
|
111
|
+
return [
|
|
112
|
+
...n
|
|
113
|
+
].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), a.replace(s, "!!!").replace(n, "+").replace("!!!", s);
|
|
114
|
+
} else return r.format(e);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
export {
|
|
118
|
+
d as $
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=NumberFormatter-DgOUVrge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberFormatter-DgOUVrge.js","sources":["../../../../node_modules/.pnpm/@internationalized+number@3.6.3/node_modules/@internationalized/number/dist/NumberFormatter.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ let $488c6ddbf4ef74c2$var$formatterCache = new Map();\nlet $488c6ddbf4ef74c2$var$supportsSignDisplay = false;\ntry {\n $488c6ddbf4ef74c2$var$supportsSignDisplay = new Intl.NumberFormat('de-DE', {\n signDisplay: 'exceptZero'\n }).resolvedOptions().signDisplay === 'exceptZero';\n// eslint-disable-next-line no-empty\n} catch {}\nlet $488c6ddbf4ef74c2$var$supportsUnit = false;\ntry {\n $488c6ddbf4ef74c2$var$supportsUnit = new Intl.NumberFormat('de-DE', {\n style: 'unit',\n unit: 'degree'\n }).resolvedOptions().style === 'unit';\n// eslint-disable-next-line no-empty\n} catch {}\n// Polyfill for units since Safari doesn't support them yet. See https://bugs.webkit.org/show_bug.cgi?id=215438.\n// Currently only polyfilling the unit degree in narrow format for ColorSlider in our supported locales.\n// Values were determined by switching to each locale manually in Chrome.\nconst $488c6ddbf4ef74c2$var$UNITS = {\n degree: {\n narrow: {\n default: \"\\xb0\",\n 'ja-JP': \" \\u5EA6\",\n 'zh-TW': \"\\u5EA6\",\n 'sl-SI': \" \\xb0\"\n }\n }\n};\nclass $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 {\n /** Formats a number value as a string, according to the locale and options provided to the constructor. */ format(value) {\n let res = '';\n if (!$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null) res = $488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, value);\n else res = this.numberFormatter.format(value);\n if (this.options.style === 'unit' && !$488c6ddbf4ef74c2$var$supportsUnit) {\n var _UNITS_unit;\n let { unit: unit, unitDisplay: unitDisplay = 'short', locale: locale } = this.resolvedOptions();\n if (!unit) return res;\n let values = (_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0 ? void 0 : _UNITS_unit[unitDisplay];\n res += values[locale] || values.default;\n }\n return res;\n }\n /** Formats a number to an array of parts such as separators, digits, punctuation, and more. */ formatToParts(value) {\n // TODO: implement signDisplay for formatToParts\n return this.numberFormatter.formatToParts(value);\n }\n /** Formats a number range as a string. */ formatRange(start, end) {\n if (typeof this.numberFormatter.formatRange === 'function') return this.numberFormatter.formatRange(start, end);\n if (end < start) throw new RangeError('End date must be >= start date');\n // Very basic fallback for old browsers.\n return `${this.format(start)} \\u{2013} ${this.format(end)}`;\n }\n /** Formats a number range as an array of parts. */ formatRangeToParts(start, end) {\n if (typeof this.numberFormatter.formatRangeToParts === 'function') return this.numberFormatter.formatRangeToParts(start, end);\n if (end < start) throw new RangeError('End date must be >= start date');\n let startParts = this.numberFormatter.formatToParts(start);\n let endParts = this.numberFormatter.formatToParts(end);\n return [\n ...startParts.map((p)=>({\n ...p,\n source: 'startRange'\n })),\n {\n type: 'literal',\n value: \" \\u2013 \",\n source: 'shared'\n },\n ...endParts.map((p)=>({\n ...p,\n source: 'endRange'\n }))\n ];\n }\n /** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {\n let options = this.numberFormatter.resolvedOptions();\n if (!$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null) options = {\n ...options,\n signDisplay: this.options.signDisplay\n };\n if (!$488c6ddbf4ef74c2$var$supportsUnit && this.options.style === 'unit') options = {\n ...options,\n style: 'unit',\n unit: this.options.unit,\n unitDisplay: this.options.unitDisplay\n };\n return options;\n }\n constructor(locale, options = {}){\n this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options);\n this.options = options;\n }\n}\nfunction $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options = {}) {\n let { numberingSystem: numberingSystem } = options;\n if (numberingSystem && locale.includes('-nu-')) {\n if (!locale.includes('-u-')) locale += '-u-';\n locale += `-nu-${numberingSystem}`;\n }\n if (options.style === 'unit' && !$488c6ddbf4ef74c2$var$supportsUnit) {\n var _UNITS_unit;\n let { unit: unit, unitDisplay: unitDisplay = 'short' } = options;\n if (!unit) throw new Error('unit option must be provided with style: \"unit\"');\n if (!((_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0 ? void 0 : _UNITS_unit[unitDisplay])) throw new Error(`Unsupported unit ${unit} with unitDisplay = ${unitDisplay}`);\n options = {\n ...options,\n style: 'decimal'\n };\n }\n let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : '');\n if ($488c6ddbf4ef74c2$var$formatterCache.has(cacheKey)) return $488c6ddbf4ef74c2$var$formatterCache.get(cacheKey);\n let numberFormatter = new Intl.NumberFormat(locale, options);\n $488c6ddbf4ef74c2$var$formatterCache.set(cacheKey, numberFormatter);\n return numberFormatter;\n}\nfunction $488c6ddbf4ef74c2$export$711b50b3c525e0f2(numberFormat, signDisplay, num) {\n if (signDisplay === 'auto') return numberFormat.format(num);\n else if (signDisplay === 'never') return numberFormat.format(Math.abs(num));\n else {\n let needsPositiveSign = false;\n if (signDisplay === 'always') needsPositiveSign = num > 0 || Object.is(num, 0);\n else if (signDisplay === 'exceptZero') {\n if (Object.is(num, -0) || Object.is(num, 0)) num = Math.abs(num);\n else needsPositiveSign = num > 0;\n }\n if (needsPositiveSign) {\n let negative = numberFormat.format(-num);\n let noSign = numberFormat.format(num);\n // ignore RTL/LTR marker character\n let minus = negative.replace(noSign, '').replace(/\\u200e|\\u061C/, '');\n if ([\n ...minus\n ].length !== 1) console.warn('@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case');\n let positive = negative.replace(noSign, '!!!').replace(minus, '+').replace('!!!', noSign);\n return positive;\n } else return numberFormat.format(num);\n }\n}\n\n\nexport {$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 as NumberFormatter, $488c6ddbf4ef74c2$export$711b50b3c525e0f2 as numberFormatSignDisplayPolyfill};\n//# sourceMappingURL=NumberFormatter.module.js.map\n"],"names":["$488c6ddbf4ef74c2$var$formatterCache","$488c6ddbf4ef74c2$var$supportsSignDisplay","$488c6ddbf4ef74c2$var$supportsUnit","$488c6ddbf4ef74c2$var$UNITS","$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5","value","res","$488c6ddbf4ef74c2$export$711b50b3c525e0f2","_UNITS_unit","unit","unitDisplay","locale","values","start","end","startParts","endParts","p","options","$488c6ddbf4ef74c2$var$getCachedNumberFormatter","numberingSystem","cacheKey","a","b","numberFormatter","numberFormat","signDisplay","num","needsPositiveSign","negative","noSign","minus"],"mappings":"AAUI,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