@preply/ds-docs 11.5.0 → 11.5.1

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 (158) hide show
  1. package/dist/assets/{00.LayoutFlex.stories-BqNKOxzc.js → 00.LayoutFlex.stories-BHaWJWDM.js} +1 -1
  2. package/dist/assets/{00.applications-CyJAiQf3.js → 00.applications-D_J6NM1u.js} +1 -1
  3. package/dist/assets/{00.favicons.guide-BwKV7LgZ.js → 00.favicons.guide-Bt-UuIyd.js} +1 -1
  4. package/dist/assets/{00.token-explorer-D3HQJ3dy.js → 00.token-explorer-DaWjizOC.js} +1 -1
  5. package/dist/assets/{00.using-responsive-props-CCkI1Tld.js → 00.using-responsive-props-u8e84XKC.js} +1 -1
  6. package/dist/assets/{01.semantic-tokens-BK7BLZcq.js → 01.semantic-tokens-D4PHkv6c.js} +1 -1
  7. package/dist/assets/{01.using-shorthand-props-CBbf3XxB.js → 01.using-shorthand-props-C_yM69l5.js} +1 -1
  8. package/dist/assets/{10.Combinations.stories-TKz5kBVj.js → 10.Combinations.stories-IPREYRw0.js} +1 -1
  9. package/dist/assets/{10.fonts.guide-UdXB_iOK.js → 10.fonts.guide-Ciq_ZNCo.js} +1 -1
  10. package/dist/assets/{10.ssr-C1u7dvjT.js → 10.ssr-BrqjyUR0.js} +1 -1
  11. package/dist/assets/{11.fonts.explorer-CDjnXfid.js → 11.fonts.explorer-DyvG8lOx.js} +1 -1
  12. package/dist/assets/{11.ssr.app-router-Cs4FOPhH.js → 11.ssr.app-router-rwNZtOr0.js} +1 -1
  13. package/dist/assets/{20.libraries-ioSyK1LY.js → 20.libraries-tF6QAbo1.js} +1 -1
  14. package/dist/assets/{2025-q4-ds-cleanup-DbXMK8WZ.js → 2025-q4-ds-cleanup-Cr6XG9X_.js} +1 -1
  15. package/dist/assets/{30.icons.explorer-6cQPOSNU.js → 30.icons.explorer-DVNm3Pm7.js} +1 -1
  16. package/dist/assets/{30.storybook-DlAnWMKK.js → 30.storybook-CaTUV-is.js} +1 -1
  17. package/dist/assets/{40.illustrations.explorer-B7_S_GNn.js → 40.illustrations.explorer-DD9wN_f4.js} +1 -1
  18. package/dist/assets/{60.components-jfwjYYtD.js → 60.components-QCH0w5DT.js} +1 -1
  19. package/dist/assets/{90.advanced-Do_Wb8pV.js → 90.advanced-7vm9OwgD.js} +1 -1
  20. package/dist/assets/{Accordion-DlAp8KmP.js → Accordion-DrTxWHkT.js} +1 -1
  21. package/dist/assets/{Accordion-D95NvT0Z.css → Accordion-WlRloI0g.css} +1 -1
  22. package/dist/assets/{Accordion.stories-C12F7sjW.js → Accordion.stories-CsCBLmfd.js} +1 -1
  23. package/dist/assets/{Accordion.tests.stories-CE9oHsW9.js → Accordion.tests.stories-DAOgB7S1.js} +1 -1
  24. package/dist/assets/{AlertBanner.primitives.stories-WvY-_iZh.js → AlertBanner.primitives.stories-DQdOIfAM.js} +1 -1
  25. package/dist/assets/{AlertBanner.stories-F7Vn8C02.js → AlertBanner.stories-CNtmHIeO.js} +1 -1
  26. package/dist/assets/{AlertBannerAction-BYa4kXiw.js → AlertBannerAction-DCnZmTB4.js} +9 -9
  27. package/dist/assets/{AlertDialog-D7FoU9Mo.js → AlertDialog-B5Se41e9.js} +1 -1
  28. package/dist/assets/{AlertDialog.stories-DKp7VN29.js → AlertDialog.stories-BjKs6Lok.js} +1 -1
  29. package/dist/assets/{Badge-DWIG0IOC.js → Badge-CW0c1rzN.js} +1 -1
  30. package/dist/assets/{Badge.stories-BMAaOyYW.js → Badge.stories-DyH7dMAW.js} +1 -1
  31. package/dist/assets/{Box-C3D0dCXP.js → Box-DDzEO3wG.js} +1 -1
  32. package/dist/assets/{Box.stories-BYLL5FQs.js → Box.stories-BMLrLf8t.js} +1 -1
  33. package/dist/assets/{BubbleCounter-C02fRH2E.js → BubbleCounter-D0mBKYuV.js} +1 -1
  34. package/dist/assets/{BubbleCounter.stories-DMwREIgs.js → BubbleCounter.stories-CE7zD5sq.js} +1 -1
  35. package/dist/assets/{Button-_0pS2khJ.js → Button-BUsGqnKd.js} +2 -2
  36. package/dist/assets/{Button.stories-DxmLSlgT.js → Button.stories-BfbELWzV.js} +1 -1
  37. package/dist/assets/{CalloutBanner.stories-YHmPUMKD.js → CalloutBanner.stories-DJOJlyln.js} +1 -1
  38. package/dist/assets/{CalloutBannerText-BcIjTCPR.js → CalloutBannerText-BtTvKbyc.js} +2 -2
  39. package/dist/assets/{Checkbox.stories-DMh-0H-W.js → Checkbox.stories-BGqsdvxH.js} +1 -1
  40. package/dist/assets/{Checkbox.tests.stories-BwjQYoFK.js → Checkbox.tests.stories-C-NewDy1.js} +1 -1
  41. package/dist/assets/{Chips.stories-_gpuOeIw.js → Chips.stories-Ya8zFO22.js} +1 -1
  42. package/dist/assets/{Color-6BZIO3FS-D9fH_9BP.js → Color-6BZIO3FS-B-9Fm1EP.js} +1 -1
  43. package/dist/assets/{ComposingDialogs.stories-BtoJMTfu.js → ComposingDialogs.stories-Dwo7Wyok.js} +1 -1
  44. package/dist/assets/{ComposingPopovers.stories-CBbifa2e.js → ComposingPopovers.stories-C7E6ohoH.js} +1 -1
  45. package/dist/assets/{CountryFlag-CqhLpgul.js → CountryFlag-BODAmrMA.js} +1 -1
  46. package/dist/assets/{CountryFlag.stories-DCh8nQ3R.js → CountryFlag.stories-wR6oVHnf.js} +1 -1
  47. package/dist/assets/{CountryFlag.test.stories-KdCwJQaC.js → CountryFlag.test.stories-C14d_nRG.js} +1 -1
  48. package/dist/assets/{Dialog-DJ_22m-M.js → Dialog-Yu9YbPdw.js} +1 -1
  49. package/dist/assets/{Dialog.primitives.stories-_LjNw1Aq.js → Dialog.primitives.stories-jFrwNXqd.js} +1 -1
  50. package/dist/assets/{Dialog.stories-BgLYxxSl.js → Dialog.stories-CsKNoRAL.js} +1 -1
  51. package/dist/assets/{Dialog.test.stories-CCA5_y47.js → Dialog.test.stories-Dz2nmavs.js} +1 -1
  52. package/dist/assets/{DialogActions-D5TuMAHt.js → DialogActions-CrOEH1KW.js} +1 -1
  53. package/dist/assets/{DialogCloseButton-V4tiko9-.js → DialogCloseButton-oIOLb2GZ.js} +3 -3
  54. package/dist/assets/{DismissibleChips-DIxEewPp.js → DismissibleChips-CRmvwQtT.js} +1 -1
  55. package/dist/assets/{DismissibleChips.stories-DTC-zjPX.js → DismissibleChips.stories--rvtEp3W.js} +1 -1
  56. package/dist/assets/{DocsRenderer-LL677BLK-4u1YXi13.js → DocsRenderer-LL677BLK-DsJe_gys.js} +1 -1
  57. package/dist/assets/{DropdownMenu-L_qQlJsT.js → DropdownMenu-BhyC7iIo.js} +11 -11
  58. package/dist/assets/{DropdownMenu-Dp5QD_2I.css → DropdownMenu-DK5srF7R.css} +1 -1
  59. package/dist/assets/{DropdownMenu.stories-CS1tMRg_.js → DropdownMenu.stories-DpgWrI7l.js} +1 -1
  60. package/dist/assets/{FormControl-B3jdXz5i.js → FormControl-DG7egvWs.js} +1 -1
  61. package/dist/assets/{FormControl.stories-D7X11Qhj.js → FormControl.stories-C0OPOmlx.js} +1 -1
  62. package/dist/assets/{Heading-DX-HCDkx.js → Heading-vZk25JM-.js} +1 -1
  63. package/dist/assets/{Heading.stories-DhvMfSFQ.js → Heading.stories-CFER10Qo.js} +1 -1
  64. package/dist/assets/{Icon-BItN7xKl.js → Icon-0niTGk4t.js} +1 -1
  65. package/dist/assets/{Icon-RSC-DjKuVLz1.js → Icon-RSC-BNWKvBW2.js} +1 -1
  66. package/dist/assets/{Icon.stories-FXAqY7I2.js → Icon.stories-DB5MuhGm.js} +1 -1
  67. package/dist/assets/IconButton-69CfWgKz.js +9 -0
  68. package/dist/assets/{IconTile.stories-IpimMCpQ.js → IconTile.stories-ByvkHwjg.js} +1 -1
  69. package/dist/assets/{Input-D6_jI5Uh.js → Input-D5QJivuW.js} +2 -2
  70. package/dist/assets/{IntegrationWithReactHookForm.stories-DsGQ7mGb.js → IntegrationWithReactHookForm.stories-T18t6WxS.js} +1 -1
  71. package/dist/assets/{IntlFormattedCurrency.stories-D53a5bAt.js → IntlFormattedCurrency.stories-BF1RCDv7.js} +1 -1
  72. package/dist/assets/{IntlFormattedDateTime.stories-BjHGvxyx.js → IntlFormattedDateTime.stories-CoilOAeY.js} +1 -1
  73. package/dist/assets/{LayoutFlex-CEOcocT6.js → LayoutFlex-Ca74XcC1.js} +1 -1
  74. package/dist/assets/{LayoutFlexItem-DJZHfd4G.js → LayoutFlexItem-Cc8MfuDK.js} +1 -1
  75. package/dist/assets/{LayoutGrid-Ce9ffWmL.js → LayoutGrid-C6Vvf74I.js} +1 -1
  76. package/dist/assets/{LayoutGrid.stories-CsbKauS5.js → LayoutGrid.stories-B12y4oON.js} +1 -1
  77. package/dist/assets/{LayoutGridItem-BtGWBhGr.js → LayoutGridItem-Bmlsy-Hl.js} +1 -1
  78. package/dist/assets/{Link.stories-DlsXh361.js → Link.stories-CbQnXOIu.js} +1 -1
  79. package/dist/assets/{MultiSelectChips-BvRx5YLq.js → MultiSelectChips-BzhRi2EC.js} +2 -2
  80. package/dist/assets/{MultiSelectChips.stories-2TW7F44B.js → MultiSelectChips.stories-D5VPTFyB.js} +1 -1
  81. package/dist/assets/{NativeSelectField.stories-DmBdDAYW.js → NativeSelectField.stories-BNW09yKI.js} +6 -6
  82. package/dist/assets/NumberField-BME7mYxn.js +6 -0
  83. package/dist/assets/{NumberField.stories-oR8Gegez.js → NumberField.stories-rBipFrXc.js} +1 -1
  84. package/dist/assets/{ObserveIntersection-Jf71_G5v.js → ObserveIntersection-B1ciJ546.js} +1 -1
  85. package/dist/assets/{ObserveIntersection.stories-C3o8aTAg.js → ObserveIntersection.stories-CfdIzzpg.js} +1 -1
  86. package/dist/assets/{OnboardingTooltip-ANaVB8Qh.js → OnboardingTooltip-IddlUs6s.js} +1 -1
  87. package/dist/assets/{OnboardingTooltip.stories-B2P2loQ_.js → OnboardingTooltip.stories-DyL-qxZr.js} +1 -1
  88. package/dist/assets/{OnboardingTooltip.tests.stories-zXUt0NJE.js → OnboardingTooltip.tests.stories-Bo02UP2_.js} +1 -1
  89. package/dist/assets/{OnboardingTour-ChdI2m_S.js → OnboardingTour-DXTaYFSg.js} +1 -1
  90. package/dist/assets/{OnboardingTour.stories-Bs8xxSkO.js → OnboardingTour.stories-BAq9wAlT.js} +2 -2
  91. package/dist/assets/{OnboardingTour.tests.stories-9KaTQw8J.js → OnboardingTour.tests.stories-DJeStnzI.js} +1 -1
  92. package/dist/assets/{PasswordField-CneYVFFH.js → PasswordField-BN7Fk1JN.js} +5 -5
  93. package/dist/assets/{PasswordField.stories-COup04RY.js → PasswordField.stories-ByfF9RQU.js} +1 -1
  94. package/dist/assets/{ProgressBar.stories-Bib8wp9b.js → ProgressBar.stories-BExsN1vA.js} +1 -1
  95. package/dist/assets/{ProgressSteps.stories-D8soXV_p.js → ProgressSteps.stories-CpofAtnD.js} +1 -1
  96. package/dist/assets/{PromoDialog-De2gYvXV.js → PromoDialog-0Z8NWpvb.js} +1 -1
  97. package/dist/assets/{RangeSlider-BczA6Et9.js → RangeSlider-CgR6JzNj.js} +1 -1
  98. package/dist/assets/{RangeSlider.stories-BfKXCzjC.js → RangeSlider.stories-CSlM_ZlZ.js} +1 -1
  99. package/dist/assets/{RatingInput.stories-BumN1i78.js → RatingInput.stories-DsmsN3i3.js} +1 -1
  100. package/dist/assets/{SelectField-Ci40lkHJ.js → SelectField-CO8g8POj.js} +5 -5
  101. package/dist/assets/{SelectField.stories-BzbCicRv.js → SelectField.stories-CTxS9Eeh.js} +1 -1
  102. package/dist/assets/{ShowOnIntersection-BiVPS7mQ.js → ShowOnIntersection-C4zRhYOZ.js} +2 -2
  103. package/dist/assets/{ShowOnIntersection.stories-Cq68GulS.js → ShowOnIntersection.stories-D08H1P_8.js} +1 -1
  104. package/dist/assets/{SingleSelectChips-Dgw0qYjB.js → SingleSelectChips-D0diRaYm.js} +2 -2
  105. package/dist/assets/{SingleSelectChips.stories-CTaYA6Yk.js → SingleSelectChips.stories-D4b9wYEW.js} +1 -1
  106. package/dist/assets/{Slider-DZQBnl2S.js → Slider-CV6iUw0B.js} +1 -1
  107. package/dist/assets/{Slider.stories-D0ZL0kqe.js → Slider.stories-D45GNmX0.js} +1 -1
  108. package/dist/assets/{Steps-D3cRQC3d.js → Steps-74_KvRyO.js} +1 -1
  109. package/dist/assets/{Steps.stories-DiKBPx9F.js → Steps.stories-tZBETY8Z.js} +1 -1
  110. package/dist/assets/{Switch.stories-wpsXwv-p.js → Switch.stories-ByuSsYNd.js} +1 -1
  111. package/dist/assets/{Text-BiCO96_r.js → Text-at08VF1d.js} +1 -1
  112. package/dist/assets/{Text.stories-Dn10lUJM.js → Text.stories-BtMMipQe.js} +1 -1
  113. package/dist/assets/TextField-BJ7Kei00.js +6 -0
  114. package/dist/assets/{TextField.stories-Dk6xmaqf.js → TextField.stories-CahPTkGl.js} +1 -1
  115. package/dist/assets/{TextHighlighted-Dau-4kMW.js → TextHighlighted-pTdCiBe0.js} +1 -1
  116. package/dist/assets/{TextHighlighted.stories-CP88FiIa.js → TextHighlighted.stories-Ce2GU7G3.js} +1 -1
  117. package/dist/assets/{TextInline-Cx8xE15e.js → TextInline-gqM1edPR.js} +1 -1
  118. package/dist/assets/{TextInline.stories-5LuYQY-N.js → TextInline.stories-D_SO39-W.js} +1 -1
  119. package/dist/assets/TextareaField-NW1OotsP.js +6 -0
  120. package/dist/assets/{TextareaField.stories-Bs7pC0n_.js → TextareaField.stories-D2SMqS5C.js} +1 -1
  121. package/dist/assets/{Toast-BZjsurC1.js → Toast-CGMAFCL5.js} +1 -1
  122. package/dist/assets/{Toast.stories-uzy2Iqxo.js → Toast.stories-DJjg_y8u.js} +1 -1
  123. package/dist/assets/{Tooltip-CX8T37NP.js → Tooltip-Bu-_YyPH.js} +1 -1
  124. package/dist/assets/{Tooltip.stories-GnmHp_bX.js → Tooltip.stories-7Jvlo0et.js} +1 -1
  125. package/dist/assets/{Tooltip.tests.stories-CoxZ2Mzn.js → Tooltip.tests.stories-B7s22F_Q.js} +1 -1
  126. package/dist/assets/{ai-integration-qIUPfaJz.js → ai-integration-CpdHOAn5.js} +1 -1
  127. package/dist/assets/{breakpoints-BHIftKDH.js → breakpoints-BVSRi6ht.js} +1 -1
  128. package/dist/assets/{breakpoints-BO0KD_ym.js → breakpoints-Co-SMTYq.js} +1 -1
  129. package/dist/assets/{breakpoints-BoWDpBQq.js → breakpoints-eS7Z7TJr.js} +1 -1
  130. package/dist/assets/{changelog-DMSLa5gf.js → changelog-Cl6TBUoP.js} +8 -1
  131. package/dist/assets/{constants-FY3oqVHd.js → constants-BRk8fyp8.js} +1 -1
  132. package/dist/assets/{createRequiredContext-9tmtQKcI.js → createRequiredContext-B8FlkWgj.js} +2 -2
  133. package/dist/assets/{dist-CKzY_Ph_.css → dist-CEs0aFF0.css} +1 -1
  134. package/dist/assets/{dist-CxlmHSsk.js → dist-QhLTxRNy.js} +1 -1
  135. package/dist/assets/{esm-raxNxvJf.js → esm-B9XcgzyC.js} +1 -1
  136. package/dist/assets/{fonts-explorer.stories-i_p7YItV.js → fonts-explorer.stories-C3atRwOK.js} +1 -1
  137. package/dist/assets/{getTokenVar-4EmFJzte.js → getTokenVar-Bs88KSBZ.js} +1 -1
  138. package/dist/assets/{gradientBorders-DJrc2s0y.js → gradientBorders-BbG3fAIU.js} +1 -1
  139. package/dist/assets/{hover-glItH_Lr.js → hover-Cfg4MhCw.js} +1 -1
  140. package/dist/assets/{hover-DNtNop2y.js → hover-D9U8Wv2F.js} +1 -1
  141. package/dist/assets/{hover-fkMFUnk3.js → hover-DGiHWh3e.js} +1 -1
  142. package/dist/assets/{iframe-Czcvpvgg.js → iframe-dOU5q7Ak.js} +4 -4
  143. package/dist/assets/{intro-CyzFu4JY.js → intro-C_TjoimS.js} +1 -1
  144. package/dist/assets/{migrating-from-less-2bmmx-e1.js → migrating-from-less-CSFfvwQw.js} +1 -1
  145. package/dist/assets/{tokens-DxS0cNj0.js → tokens-BGnlxsXa.js} +1 -1
  146. package/dist/assets/{tokens-DW7LgqLI.js → tokens-D7kbkVdd.js} +1 -1
  147. package/dist/assets/{tokens-iE0hKajS.js → tokens-DZ8IANNm.js} +1 -1
  148. package/dist/assets/{usePortalElement-BUBRjIYT.js → usePortalElement-WZQ90Rb6.js} +1 -1
  149. package/dist/assets/{welcome-BIdOz8Yn.js → welcome-8-BI09zG.js} +1 -1
  150. package/dist/assets/{zeroheight-BX9Z_BVr.js → zeroheight-ry_CctJ0.js} +1 -1
  151. package/dist/iframe.html +1 -1
  152. package/dist/preview-stats.json +13786 -13786
  153. package/dist/project.json +1 -1
  154. package/package.json +5 -5
  155. package/dist/assets/IconButton-sZZtNos_.js +0 -9
  156. package/dist/assets/NumberField-DW7lG9mg.js +0 -6
  157. package/dist/assets/TextField-C5bFUM0q.js +0 -6
  158. package/dist/assets/TextareaField-1Q9FqsHc.js +0 -6
@@ -1,4 +1,4 @@
1
- import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{T as r,w as i}from"./dist-DtfJeYQK.js";import{t as a}from"./jsx-runtime-C2wGStra.js";import{n as o,t as s}from"./Icon-BItN7xKl.js";import{n as c,t as l}from"./CountryFlag-CqhLpgul.js";var u,d,f=t((()=>{u=e(n(),1),d=typeof document<`u`?u.useLayoutEffect:()=>{}}));function ee(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function te(e){return ee(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}var p,m,h=t((()=>{p=e=>e?.ownerDocument??document,m=e=>e&&`window`in e&&e.window===e?e:p(e).defaultView||window}));function g(){return ne}var ne,re=t((()=>{ne=!1}));function ie(e,t){if(!g())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:te(n)?n.host:n.parentNode}return!1}function _(e){return g()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}var v,ae=t((()=>{h(),re(),v=(e=document)=>{if(!g())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}}));function oe(e,t,n,r){return g()?new se(e,t,n,r):e.createTreeWalker(t,n,r)}var se,ce=t((()=>{ae(),re(),se=class{get currentNode(){return this._currentNode}set currentNode(e){if(!ie(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return ie(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if(typeof this.filter==`function`?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}else return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if(typeof this.filter==`function`?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter==`function`)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}}}));function le(e){if(ue())e.focus({preventScroll:!0});else{let t=de(e);e.focus(),fe(t)}}function ue(){if(y==null){y=!1;try{document.createElement(`div`).focus({get preventScroll(){return y=!0,!0}})}catch{}}return y}function de(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function fe(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var y,pe=t((()=>{y=null}));function me(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function he(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function ge(e){let t=null;return()=>(t??=e(),t)}var _e,ve,ye,be=t((()=>{_e=ge(function(){return he(/^Mac/i)}),ve=ge(function(){return me(/Chrome/i)}),ye=ge(function(){return me(/Android/i)})}));function xe(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=b.get(t.target);r||(r=new Set,b.set(t.target,r),t.target.addEventListener(`transitioncancel`,n,{once:!0})),r.add(t.propertyName)},n=t=>{if(!e(t)||!t.target)return;let r=b.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),b.delete(t.target)),b.size===0)){for(let e of x)e();x.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}function Se(){for(let[e]of b)`isConnected`in e&&!e.isConnected&&b.delete(e)}function Ce(e){requestAnimationFrame(()=>{Se(),b.size===0?e():x.add(e)})}var b,x,we=t((()=>{b=new Map,x=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,xe):xe())}));function Te(e){return e.pointerType===``&&e.isTrusted?!0:ye()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}var Ee=t((()=>{be()}));function De(e){let t=m(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function Oe(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function S(e,t){return ke?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&De(e)&&Oe(e,t)&&(!e.parentElement||S(e.parentElement,e))}var ke,Ae=t((()=>{h(),ke=typeof Element<`u`&&`checkVisibility`in Element.prototype}));function je(e){return e.matches(Pe)&&S(e)&&!Ne(e)}function Me(e){return e.matches(Fe)&&S(e)&&!Ne(e)}function Ne(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var C,Pe,Fe,Ie=t((()=>{Ae(),C=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],Pe=C.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`,C.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),Fe=C.join(`:not([hidden]):not([tabindex="-1"]),`)})),w=t((()=>{ce(),ae(),h(),pe(),we(),f(),be(),Ee(),Ie()})),T,Le=t((()=>{e(n(),1),T=!1}));function E(e,t){for(let n of Ge)n(e,t)}function Re(e){return!(e.metaKey||!_e()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function D(e){j=!0,Re(e)&&(k=`keyboard`,E(`keyboard`,e))}function O(e){k=`pointer`,(e.type===`mousedown`||e.type===`pointerdown`)&&(j=!0,E(`pointer`,e))}function ze(e){Te(e)&&(j=!0,k=`virtual`)}function Be(e){e.target===window||e.target===document||T||!e.isTrusted||(!j&&!M&&(k=`virtual`,E(`virtual`,e)),j=!1,M=!1)}function Ve(){T||(j=!1,M=!0)}function He(e){if(typeof window>`u`||typeof document>`u`||A.get(m(e)))return;let t=m(e),n=p(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){j=!0,r.apply(this,arguments)},n.addEventListener(`keydown`,D,!0),n.addEventListener(`keyup`,D,!0),n.addEventListener(`click`,ze,!0),t.addEventListener(`focus`,Be,!0),t.addEventListener(`blur`,Ve,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,O,!0),n.addEventListener(`pointermove`,O,!0),n.addEventListener(`pointerup`,O,!0)),t.addEventListener(`beforeunload`,()=>{Ke(e)},{once:!0}),A.set(t,{focus:r})}function Ue(e){let t=p(e),n;return t.readyState===`loading`?(n=()=>{He(e)},t.addEventListener(`DOMContentLoaded`,n)):He(e),()=>Ke(e,n)}function We(){return k}var k,Ge,A,j,M,Ke,qe=t((()=>{Le(),w(),e(n(),1),k=null,Ge=new Set,A=new Map,j=!1,M=!1,Ke=(e,t)=>{let n=m(e),r=p(e);t&&r.removeEventListener(`DOMContentLoaded`,t),A.has(n)&&(n.HTMLElement.prototype.focus=A.get(n).focus,r.removeEventListener(`keydown`,D,!0),r.removeEventListener(`keyup`,D,!0),r.removeEventListener(`click`,ze,!0),n.removeEventListener(`focus`,Be,!0),n.removeEventListener(`blur`,Ve,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,O,!0),r.removeEventListener(`pointermove`,O,!0),r.removeEventListener(`pointerup`,O,!0)),A.delete(n))},typeof document<`u`&&Ue()}));function Je(e){let t=p(e),n=v(t);if(We()===`virtual`){let r=n;Ce(()=>{v(t)===r&&e.isConnected&&le(e)})}else le(e)}var Ye=t((()=>{qe(),w()})),Xe=t((()=>{qe(),Ye()}));function Ze(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,B.useRef)(null),o=(0,B.useRef)(null),s=(0,B.useRef)([]),{parentNode:c}=(0,B.useContext)(V)||{},l=(0,B.useMemo)(()=>new W({scopeRef:s}),[s]);d(()=>{let e=c||G.root;if(G.getTreeNode(e.scopeRef)&&U&&!L(U,e.scopeRef)){let t=G.getTreeNode(U);t&&(e=t)}e.addChild(l),G.addNode(l)},[l,c]),d(()=>{let e=G.getTreeNode(s);e&&(e.contain=!!n)},[n]),d(()=>{let e=a.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==o.current;)t.push(e),e.addEventListener(H,n),e=e.nextSibling;return s.current=t,()=>{for(let e of t)e.removeEventListener(H,n)}},[t]),ot(s,r,n),tt(s,n),ct(s,r,n),at(s,i),(0,B.useEffect)(()=>{let e=v(p(s.current?s.current[0]:void 0)),t=null;if(F(e,s.current)){for(let n of G.traverse())n.scopeRef&&F(e,n.scopeRef.current)&&(t=n);t===G.getTreeNode(s)&&(U=t.scopeRef)}},[s]),d(()=>()=>{let e=G.getTreeNode(s)?.parent?.scopeRef??null;(s===U||L(s,U))&&(!e||G.getTreeNode(e))&&(U=e),G.removeTreeNode(s)},[s]);let u=(0,B.useMemo)(()=>$e(s),[]),f=(0,B.useMemo)(()=>({focusManager:u,parentNode:l}),[l,u]);return B.createElement(V.Provider,{value:f},B.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,B.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function Qe(){return(0,B.useContext)(V)?.focusManager}function $e(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||v(p(n[0]??void 0)),c=n[0].previousElementSibling,l=z(N(n),{tabbable:i,accept:o},n);l.currentNode=F(s,n)?s:c;let u=l.nextNode();return!u&&a&&(l.currentNode=c,u=l.nextNode()),u&&R(u,!0),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||v(p(n[0]??void 0)),c=n[n.length-1].nextElementSibling,l=z(N(n),{tabbable:i,accept:o},n);l.currentNode=F(s,n)?s:c;let u=l.previousNode();return!u&&a&&(l.currentNode=c,u=l.previousNode()),u&&R(u,!0),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=z(N(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&R(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=z(N(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&R(o,!0),o}}}function N(e){return e[0].parentElement}function P(e){let t=G.getTreeNode(U);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function et(e){if(e.checked)return!0;let t=[];return t=e.form?[...e.form?.elements?.namedItem(e.name)??[]]:[...p(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(e=>!e.form),t?!t.some(e=>e.checked):!1}function tt(e,t){let n=(0,B.useRef)(void 0),r=(0,B.useRef)(void 0);d(()=>{let i=e.current;if(!t){r.current&&=(cancelAnimationFrame(r.current),void 0);return}let a=p(i?i[0]:void 0),o=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!P(e)||t.isComposing)return;let n=v(a),r=e.current;if(!r||!F(n,r))return;let i=z(N(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||=(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&R(o,!0)},s=t=>{(!U||L(U,e))&&F(_(t),e.current)?(U=e,n.current=_(t)):P(e)&&!I(_(t),e)?n.current?n.current.focus():U&&U.current&&it(U.current):P(e)&&(n.current=_(t))},c=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=We(),i=(r===`virtual`||r===null)&&ye()&&ve(),o=v(a);if(!i&&o&&P(e)&&!I(o,e)){U=e;let r=_(t);if(r&&r.isConnected){var s;n.current=r,(s=n.current)==null||s.focus()}else U.current&&it(U.current)}})};return a.addEventListener(`keydown`,o,!1),a.addEventListener(`focusin`,s,!1),i?.forEach(e=>e.addEventListener(`focusin`,s,!1)),i?.forEach(e=>e.addEventListener(`focusout`,c,!1)),()=>{a.removeEventListener(`keydown`,o,!1),a.removeEventListener(`focusin`,s,!1),i?.forEach(e=>e.removeEventListener(`focusin`,s,!1)),i?.forEach(e=>e.removeEventListener(`focusout`,c,!1))}},[e,t]),d(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function nt(e){return I(e)}function F(e,t){return!e||!t?!1:t.some(t=>t.contains(e))}function I(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of G.traverse(G.getTreeNode(t)))if(n&&F(e,n.current))return!0;return!1}function L(e,t){let n=G.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function R(e,t=!1){if(e!=null&&!t)try{Je(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function rt(e,t=!0){let n=e[0].previousElementSibling,r=N(e),i=z(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=N(e),i=z(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function it(e,t=!0){R(rt(e,t))}function at(e,t){let n=B.useRef(t);(0,B.useEffect)(()=>{n.current&&(U=e,!F(v(p(e.current?e.current[0]:void 0)),U.current)&&e.current&&it(e.current)),n.current=!1},[e])}function ot(e,t,n){d(()=>{if(t||n)return;let r=e.current,i=p(r?r[0]:void 0),a=t=>{let n=_(t);F(n,e.current)?U=e:nt(n)||(U=null)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,t,n])}function st(e){let t=G.getTreeNode(U);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function ct(e,t,n){let r=(0,B.useRef)(typeof document<`u`?v(p(e.current?e.current[0]:void 0)):null);d(()=>{let r=e.current,i=p(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!U||L(U,e))&&F(v(i),e.current)&&(U=e)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,n]),d(()=>{let r=p(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!P(e)||t.isComposing)return;let n=r.activeElement;if(!I(n,e)||!st(e))return;let i=G.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=z(r.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if((!a||!a.isConnected||a===r.body)&&(a=void 0,i.nodeToRestore=void 0),(!s||!I(s,e))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(I(s,e));t.preventDefault(),t.stopPropagation(),s?R(s,!0):nt(a)?R(a,!0):n.blur()}};return n||r.addEventListener(`keydown`,i,!0),()=>{n||r.removeEventListener(`keydown`,i,!0)}},[e,t,n]),d(()=>{let n=p(e.current?e.current[0]:void 0);if(!t)return;let i=G.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let r=G.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=v(n);if(t&&i&&(a&&I(a,e)||a===n.body&&st(e))){let t=G.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){lt(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&G.getTreeNode(n.scopeRef)){lt(rt(n.scopeRef.current,!0));return}n=n.parent}}})}}},[e,t])}function lt(e){e.dispatchEvent(new CustomEvent(H,{bubbles:!0,cancelable:!0}))&&R(e)}function z(e,t,n){let r=t?.tabbable?Me:je,i=p(e?.nodeType===Node.ELEMENT_NODE?e:null),a=oe(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return t!=null&&t.from?.contains(e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!et(e)||a.currentNode.tagName===`INPUT`&&a.currentNode.type===`radio`&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||F(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}var B,V,H,U,ut,W,G,dt=t((()=>{w(),Xe(),B=e(n(),1),V=B.createContext(null),H=`react-aria-focus-scope-restore`,U=null,ut=class e{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new W({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&F(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new W({scopeRef:null}),this.fastMap.set(null,this.root)}},W=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},G=new ut})),ft=t((()=>{dt()}));function pt({children:e}){let[t,n]=(0,K.useState)(null);return(0,ht.jsx)(gt.Provider,{value:{lastFocused:t,setLastFocused:n},children:e})}function mt({onFocus:e}={}){let{lastFocused:t,setLastFocused:n}=(0,K.useContext)(gt),r=(0,K.useRef)(null);return(0,K.useEffect)(()=>{let e=r.current;return()=>{n(t=>t===e?null:t)}},[n]),{ref:r,onFocus:t=>{n(t.target),e?.(t)},tabIndex:t&&t!==r.current?-1:0}}var K,ht,gt,_t=t((()=>{K=e(n(),1),ht=a(),gt=(0,K.createContext)({lastFocused:null,setLastFocused:()=>{}})})),vt=t((()=>{_t()})),yt,bt,xt,St,Ct,q,wt=t((()=>{yt=`list__UY85S`,bt=`listItem__vsKB0`,xt=`button__oyd7U`,St=`label__-b8dX`,Ct=`counter__ATUei`,q={list:yt,listItem:bt,button:xt,label:St,counter:Ct}}));function Tt({orientation:e,children:t}){return(0,Ot.jsx)(kt.Provider,{value:e,children:t})}function Et(){let e=(0,Dt.useContext)(kt),t=`ArrowRight`,n=`ArrowLeft`;return e===`vertical`&&(t=`ArrowDown`,n=`ArrowUp`),{orientation:e,nextKey:t,previousKey:n}}var Dt,Ot,kt,At=t((()=>{Dt=e(n(),1),Ot=a(),kt=(0,Dt.createContext)(`horizontal`)})),jt=t((()=>{At()}));function J({children:e,orientation:t=X}){return(0,Y.jsx)(Tt,{orientation:t,children:(0,Y.jsx)(pt,{children:e})})}function Mt({children:e,...t}){return(0,Y.jsx)(`li`,{...t,className:q.listItem,children:e})}function Nt({children:e,counter:t,...n}){return(0,Y.jsxs)(`span`,{...n,className:q.label,children:[e,t!==void 0&&(0,Y.jsx)(Pt,{children:t})]})}function Pt({children:e,...t}){return(0,Y.jsx)(`span`,{"data-testid":`chip-counter`,...t,className:q.counter,children:e})}var Ft,Y,X,Z,Q,It=t((()=>{ft(),Ft=e(n(),1),vt(),wt(),o(),jt(),c(),i(),Y=a(),X=`horizontal`,Z=(0,Ft.forwardRef)(function({children:e,orientation:t=X,...n},r){return(0,Y.jsx)(`ul`,{...n,ref:r,className:q.list,"data-orientation":t,children:(0,Y.jsx)(Ze,{children:e})})}),Q=(0,Ft.forwardRef)(function({children:e,onKeyDown:t,variant:n,icon:i,countryFlagCode:a,...o},c){let{ref:u,...d}=mt(o),f=Qe(),{nextKey:ee,previousKey:te}=Et(),p=e=>{if(t?.(e),!e.defaultPrevented)switch(e.key){case ee:f?.focusNext({wrap:!0});break;case te:f?.focusPrevious({wrap:!0});break;case`Home`:f?.focusFirst();break;case`End`:f?.focusLast();break}},m=r(c,u);return(0,Y.jsxs)(`button`,{...o,...d,type:`button`,onKeyDown:p,ref:m,className:q.button,"data-variant":n,children:[i&&(0,Y.jsx)(s,{dataset:{testid:`chip-icon`},svg:i}),a&&!i&&(0,Y.jsx)(l,{code:a,size:`medium`,dataset:{testid:`chip-country-flag`},alt:``}),e]})});try{J.displayName=`ChipsRoot`,J.__docgenInfo={description:``,displayName:`ChipsRoot`,props:{orientation:{defaultValue:{value:`horizontal`},description:``,name:`orientation`,required:!1,type:{name:`enum`,value:[{value:`"horizontal"`},{value:`"vertical"`}]}}}}}catch{}try{Mt.displayName=`ChipListItem`,Mt.__docgenInfo={description:``,displayName:`ChipListItem`,props:{}}}catch{}try{Nt.displayName=`ChipLabel`,Nt.__docgenInfo={description:``,displayName:`ChipLabel`,props:{counter:{defaultValue:null,description:``,name:`counter`,required:!1,type:{name:`enum`,value:[{value:`number`}]}}}}}catch{}try{Pt.displayName=`ChipCounter`,Pt.__docgenInfo={description:``,displayName:`ChipCounter`,props:{}}}catch{}try{X.displayName=`DEFAULT_ORIENTATION`,X.__docgenInfo={description:`Chips anatomy:
1
+ import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{T as r,w as i}from"./dist-DtfJeYQK.js";import{t as a}from"./jsx-runtime-C2wGStra.js";import{n as o,t as s}from"./Icon-0niTGk4t.js";import{n as c,t as l}from"./CountryFlag-BODAmrMA.js";var u,d,f=t((()=>{u=e(n(),1),d=typeof document<`u`?u.useLayoutEffect:()=>{}}));function ee(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function te(e){return ee(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}var p,m,h=t((()=>{p=e=>e?.ownerDocument??document,m=e=>e&&`window`in e&&e.window===e?e:p(e).defaultView||window}));function g(){return ne}var ne,re=t((()=>{ne=!1}));function ie(e,t){if(!g())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:te(n)?n.host:n.parentNode}return!1}function _(e){return g()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}var v,ae=t((()=>{h(),re(),v=(e=document)=>{if(!g())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}}));function oe(e,t,n,r){return g()?new se(e,t,n,r):e.createTreeWalker(t,n,r)}var se,ce=t((()=>{ae(),re(),se=class{get currentNode(){return this._currentNode}set currentNode(e){if(!ie(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return ie(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if(typeof this.filter==`function`?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}else return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if(typeof this.filter==`function`?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter==`function`)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}}}));function le(e){if(ue())e.focus({preventScroll:!0});else{let t=de(e);e.focus(),fe(t)}}function ue(){if(y==null){y=!1;try{document.createElement(`div`).focus({get preventScroll(){return y=!0,!0}})}catch{}}return y}function de(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function fe(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var y,pe=t((()=>{y=null}));function me(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function he(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function ge(e){let t=null;return()=>(t??=e(),t)}var _e,ve,ye,be=t((()=>{_e=ge(function(){return he(/^Mac/i)}),ve=ge(function(){return me(/Chrome/i)}),ye=ge(function(){return me(/Android/i)})}));function xe(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=b.get(t.target);r||(r=new Set,b.set(t.target,r),t.target.addEventListener(`transitioncancel`,n,{once:!0})),r.add(t.propertyName)},n=t=>{if(!e(t)||!t.target)return;let r=b.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),b.delete(t.target)),b.size===0)){for(let e of x)e();x.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}function Se(){for(let[e]of b)`isConnected`in e&&!e.isConnected&&b.delete(e)}function Ce(e){requestAnimationFrame(()=>{Se(),b.size===0?e():x.add(e)})}var b,x,we=t((()=>{b=new Map,x=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,xe):xe())}));function Te(e){return e.pointerType===``&&e.isTrusted?!0:ye()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}var Ee=t((()=>{be()}));function De(e){let t=m(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function Oe(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function S(e,t){return ke?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&De(e)&&Oe(e,t)&&(!e.parentElement||S(e.parentElement,e))}var ke,Ae=t((()=>{h(),ke=typeof Element<`u`&&`checkVisibility`in Element.prototype}));function je(e){return e.matches(Pe)&&S(e)&&!Ne(e)}function Me(e){return e.matches(Fe)&&S(e)&&!Ne(e)}function Ne(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var C,Pe,Fe,Ie=t((()=>{Ae(),C=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],Pe=C.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`,C.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),Fe=C.join(`:not([hidden]):not([tabindex="-1"]),`)})),w=t((()=>{ce(),ae(),h(),pe(),we(),f(),be(),Ee(),Ie()})),T,Le=t((()=>{e(n(),1),T=!1}));function E(e,t){for(let n of Ge)n(e,t)}function Re(e){return!(e.metaKey||!_e()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function D(e){j=!0,Re(e)&&(k=`keyboard`,E(`keyboard`,e))}function O(e){k=`pointer`,(e.type===`mousedown`||e.type===`pointerdown`)&&(j=!0,E(`pointer`,e))}function ze(e){Te(e)&&(j=!0,k=`virtual`)}function Be(e){e.target===window||e.target===document||T||!e.isTrusted||(!j&&!M&&(k=`virtual`,E(`virtual`,e)),j=!1,M=!1)}function Ve(){T||(j=!1,M=!0)}function He(e){if(typeof window>`u`||typeof document>`u`||A.get(m(e)))return;let t=m(e),n=p(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){j=!0,r.apply(this,arguments)},n.addEventListener(`keydown`,D,!0),n.addEventListener(`keyup`,D,!0),n.addEventListener(`click`,ze,!0),t.addEventListener(`focus`,Be,!0),t.addEventListener(`blur`,Ve,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,O,!0),n.addEventListener(`pointermove`,O,!0),n.addEventListener(`pointerup`,O,!0)),t.addEventListener(`beforeunload`,()=>{Ke(e)},{once:!0}),A.set(t,{focus:r})}function Ue(e){let t=p(e),n;return t.readyState===`loading`?(n=()=>{He(e)},t.addEventListener(`DOMContentLoaded`,n)):He(e),()=>Ke(e,n)}function We(){return k}var k,Ge,A,j,M,Ke,qe=t((()=>{Le(),w(),e(n(),1),k=null,Ge=new Set,A=new Map,j=!1,M=!1,Ke=(e,t)=>{let n=m(e),r=p(e);t&&r.removeEventListener(`DOMContentLoaded`,t),A.has(n)&&(n.HTMLElement.prototype.focus=A.get(n).focus,r.removeEventListener(`keydown`,D,!0),r.removeEventListener(`keyup`,D,!0),r.removeEventListener(`click`,ze,!0),n.removeEventListener(`focus`,Be,!0),n.removeEventListener(`blur`,Ve,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,O,!0),r.removeEventListener(`pointermove`,O,!0),r.removeEventListener(`pointerup`,O,!0)),A.delete(n))},typeof document<`u`&&Ue()}));function Je(e){let t=p(e),n=v(t);if(We()===`virtual`){let r=n;Ce(()=>{v(t)===r&&e.isConnected&&le(e)})}else le(e)}var Ye=t((()=>{qe(),w()})),Xe=t((()=>{qe(),Ye()}));function Ze(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,B.useRef)(null),o=(0,B.useRef)(null),s=(0,B.useRef)([]),{parentNode:c}=(0,B.useContext)(V)||{},l=(0,B.useMemo)(()=>new W({scopeRef:s}),[s]);d(()=>{let e=c||G.root;if(G.getTreeNode(e.scopeRef)&&U&&!L(U,e.scopeRef)){let t=G.getTreeNode(U);t&&(e=t)}e.addChild(l),G.addNode(l)},[l,c]),d(()=>{let e=G.getTreeNode(s);e&&(e.contain=!!n)},[n]),d(()=>{let e=a.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==o.current;)t.push(e),e.addEventListener(H,n),e=e.nextSibling;return s.current=t,()=>{for(let e of t)e.removeEventListener(H,n)}},[t]),ot(s,r,n),tt(s,n),ct(s,r,n),at(s,i),(0,B.useEffect)(()=>{let e=v(p(s.current?s.current[0]:void 0)),t=null;if(F(e,s.current)){for(let n of G.traverse())n.scopeRef&&F(e,n.scopeRef.current)&&(t=n);t===G.getTreeNode(s)&&(U=t.scopeRef)}},[s]),d(()=>()=>{let e=G.getTreeNode(s)?.parent?.scopeRef??null;(s===U||L(s,U))&&(!e||G.getTreeNode(e))&&(U=e),G.removeTreeNode(s)},[s]);let u=(0,B.useMemo)(()=>$e(s),[]),f=(0,B.useMemo)(()=>({focusManager:u,parentNode:l}),[l,u]);return B.createElement(V.Provider,{value:f},B.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,B.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function Qe(){return(0,B.useContext)(V)?.focusManager}function $e(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||v(p(n[0]??void 0)),c=n[0].previousElementSibling,l=z(N(n),{tabbable:i,accept:o},n);l.currentNode=F(s,n)?s:c;let u=l.nextNode();return!u&&a&&(l.currentNode=c,u=l.nextNode()),u&&R(u,!0),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||v(p(n[0]??void 0)),c=n[n.length-1].nextElementSibling,l=z(N(n),{tabbable:i,accept:o},n);l.currentNode=F(s,n)?s:c;let u=l.previousNode();return!u&&a&&(l.currentNode=c,u=l.previousNode()),u&&R(u,!0),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=z(N(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&R(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=z(N(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&R(o,!0),o}}}function N(e){return e[0].parentElement}function P(e){let t=G.getTreeNode(U);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function et(e){if(e.checked)return!0;let t=[];return t=e.form?[...e.form?.elements?.namedItem(e.name)??[]]:[...p(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(e=>!e.form),t?!t.some(e=>e.checked):!1}function tt(e,t){let n=(0,B.useRef)(void 0),r=(0,B.useRef)(void 0);d(()=>{let i=e.current;if(!t){r.current&&=(cancelAnimationFrame(r.current),void 0);return}let a=p(i?i[0]:void 0),o=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!P(e)||t.isComposing)return;let n=v(a),r=e.current;if(!r||!F(n,r))return;let i=z(N(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||=(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&R(o,!0)},s=t=>{(!U||L(U,e))&&F(_(t),e.current)?(U=e,n.current=_(t)):P(e)&&!I(_(t),e)?n.current?n.current.focus():U&&U.current&&it(U.current):P(e)&&(n.current=_(t))},c=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=We(),i=(r===`virtual`||r===null)&&ye()&&ve(),o=v(a);if(!i&&o&&P(e)&&!I(o,e)){U=e;let r=_(t);if(r&&r.isConnected){var s;n.current=r,(s=n.current)==null||s.focus()}else U.current&&it(U.current)}})};return a.addEventListener(`keydown`,o,!1),a.addEventListener(`focusin`,s,!1),i?.forEach(e=>e.addEventListener(`focusin`,s,!1)),i?.forEach(e=>e.addEventListener(`focusout`,c,!1)),()=>{a.removeEventListener(`keydown`,o,!1),a.removeEventListener(`focusin`,s,!1),i?.forEach(e=>e.removeEventListener(`focusin`,s,!1)),i?.forEach(e=>e.removeEventListener(`focusout`,c,!1))}},[e,t]),d(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function nt(e){return I(e)}function F(e,t){return!e||!t?!1:t.some(t=>t.contains(e))}function I(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of G.traverse(G.getTreeNode(t)))if(n&&F(e,n.current))return!0;return!1}function L(e,t){let n=G.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function R(e,t=!1){if(e!=null&&!t)try{Je(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function rt(e,t=!0){let n=e[0].previousElementSibling,r=N(e),i=z(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=N(e),i=z(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function it(e,t=!0){R(rt(e,t))}function at(e,t){let n=B.useRef(t);(0,B.useEffect)(()=>{n.current&&(U=e,!F(v(p(e.current?e.current[0]:void 0)),U.current)&&e.current&&it(e.current)),n.current=!1},[e])}function ot(e,t,n){d(()=>{if(t||n)return;let r=e.current,i=p(r?r[0]:void 0),a=t=>{let n=_(t);F(n,e.current)?U=e:nt(n)||(U=null)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,t,n])}function st(e){let t=G.getTreeNode(U);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function ct(e,t,n){let r=(0,B.useRef)(typeof document<`u`?v(p(e.current?e.current[0]:void 0)):null);d(()=>{let r=e.current,i=p(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!U||L(U,e))&&F(v(i),e.current)&&(U=e)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,n]),d(()=>{let r=p(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!P(e)||t.isComposing)return;let n=r.activeElement;if(!I(n,e)||!st(e))return;let i=G.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=z(r.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if((!a||!a.isConnected||a===r.body)&&(a=void 0,i.nodeToRestore=void 0),(!s||!I(s,e))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(I(s,e));t.preventDefault(),t.stopPropagation(),s?R(s,!0):nt(a)?R(a,!0):n.blur()}};return n||r.addEventListener(`keydown`,i,!0),()=>{n||r.removeEventListener(`keydown`,i,!0)}},[e,t,n]),d(()=>{let n=p(e.current?e.current[0]:void 0);if(!t)return;let i=G.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let r=G.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=v(n);if(t&&i&&(a&&I(a,e)||a===n.body&&st(e))){let t=G.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){lt(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&G.getTreeNode(n.scopeRef)){lt(rt(n.scopeRef.current,!0));return}n=n.parent}}})}}},[e,t])}function lt(e){e.dispatchEvent(new CustomEvent(H,{bubbles:!0,cancelable:!0}))&&R(e)}function z(e,t,n){let r=t?.tabbable?Me:je,i=p(e?.nodeType===Node.ELEMENT_NODE?e:null),a=oe(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return t!=null&&t.from?.contains(e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!et(e)||a.currentNode.tagName===`INPUT`&&a.currentNode.type===`radio`&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||F(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}var B,V,H,U,ut,W,G,dt=t((()=>{w(),Xe(),B=e(n(),1),V=B.createContext(null),H=`react-aria-focus-scope-restore`,U=null,ut=class e{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new W({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&F(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new W({scopeRef:null}),this.fastMap.set(null,this.root)}},W=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},G=new ut})),ft=t((()=>{dt()}));function pt({children:e}){let[t,n]=(0,K.useState)(null);return(0,ht.jsx)(gt.Provider,{value:{lastFocused:t,setLastFocused:n},children:e})}function mt({onFocus:e}={}){let{lastFocused:t,setLastFocused:n}=(0,K.useContext)(gt),r=(0,K.useRef)(null);return(0,K.useEffect)(()=>{let e=r.current;return()=>{n(t=>t===e?null:t)}},[n]),{ref:r,onFocus:t=>{n(t.target),e?.(t)},tabIndex:t&&t!==r.current?-1:0}}var K,ht,gt,_t=t((()=>{K=e(n(),1),ht=a(),gt=(0,K.createContext)({lastFocused:null,setLastFocused:()=>{}})})),vt=t((()=>{_t()})),yt,bt,xt,St,Ct,q,wt=t((()=>{yt=`list__UY85S`,bt=`listItem__vsKB0`,xt=`button__oyd7U`,St=`label__-b8dX`,Ct=`counter__ATUei`,q={list:yt,listItem:bt,button:xt,label:St,counter:Ct}}));function Tt({orientation:e,children:t}){return(0,Ot.jsx)(kt.Provider,{value:e,children:t})}function Et(){let e=(0,Dt.useContext)(kt),t=`ArrowRight`,n=`ArrowLeft`;return e===`vertical`&&(t=`ArrowDown`,n=`ArrowUp`),{orientation:e,nextKey:t,previousKey:n}}var Dt,Ot,kt,At=t((()=>{Dt=e(n(),1),Ot=a(),kt=(0,Dt.createContext)(`horizontal`)})),jt=t((()=>{At()}));function J({children:e,orientation:t=X}){return(0,Y.jsx)(Tt,{orientation:t,children:(0,Y.jsx)(pt,{children:e})})}function Mt({children:e,...t}){return(0,Y.jsx)(`li`,{...t,className:q.listItem,children:e})}function Nt({children:e,counter:t,...n}){return(0,Y.jsxs)(`span`,{...n,className:q.label,children:[e,t!==void 0&&(0,Y.jsx)(Pt,{children:t})]})}function Pt({children:e,...t}){return(0,Y.jsx)(`span`,{"data-testid":`chip-counter`,...t,className:q.counter,children:e})}var Ft,Y,X,Z,Q,It=t((()=>{ft(),Ft=e(n(),1),vt(),wt(),o(),jt(),c(),i(),Y=a(),X=`horizontal`,Z=(0,Ft.forwardRef)(function({children:e,orientation:t=X,...n},r){return(0,Y.jsx)(`ul`,{...n,ref:r,className:q.list,"data-orientation":t,children:(0,Y.jsx)(Ze,{children:e})})}),Q=(0,Ft.forwardRef)(function({children:e,onKeyDown:t,variant:n,icon:i,countryFlagCode:a,...o},c){let{ref:u,...d}=mt(o),f=Qe(),{nextKey:ee,previousKey:te}=Et(),p=e=>{if(t?.(e),!e.defaultPrevented)switch(e.key){case ee:f?.focusNext({wrap:!0});break;case te:f?.focusPrevious({wrap:!0});break;case`Home`:f?.focusFirst();break;case`End`:f?.focusLast();break}},m=r(c,u);return(0,Y.jsxs)(`button`,{...o,...d,type:`button`,onKeyDown:p,ref:m,className:q.button,"data-variant":n,children:[i&&(0,Y.jsx)(s,{dataset:{testid:`chip-icon`},svg:i}),a&&!i&&(0,Y.jsx)(l,{code:a,size:`medium`,dataset:{testid:`chip-country-flag`},alt:``}),e]})});try{J.displayName=`ChipsRoot`,J.__docgenInfo={description:``,displayName:`ChipsRoot`,props:{orientation:{defaultValue:{value:`horizontal`},description:``,name:`orientation`,required:!1,type:{name:`enum`,value:[{value:`"horizontal"`},{value:`"vertical"`}]}}}}}catch{}try{Mt.displayName=`ChipListItem`,Mt.__docgenInfo={description:``,displayName:`ChipListItem`,props:{}}}catch{}try{Nt.displayName=`ChipLabel`,Nt.__docgenInfo={description:``,displayName:`ChipLabel`,props:{counter:{defaultValue:null,description:``,name:`counter`,required:!1,type:{name:`enum`,value:[{value:`number`}]}}}}}catch{}try{Pt.displayName=`ChipCounter`,Pt.__docgenInfo={description:``,displayName:`ChipCounter`,props:{}}}catch{}try{X.displayName=`DEFAULT_ORIENTATION`,X.__docgenInfo={description:`Chips anatomy:
2
2
 
3
3
  <ChipsRoot>
4
4
  <ChipsList>
@@ -8,4 +8,4 @@ import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2
8
8
  </ChipButton>
9
9
  </ChipListItem>
10
10
  </ChipsList>
11
- </ChipsRoot>`,displayName:`DEFAULT_ORIENTATION`,props:{}}}catch{}try{Z.displayName=`ChipsList`,Z.__docgenInfo={description:``,displayName:`ChipsList`,props:{orientation:{defaultValue:{value:`horizontal`},description:``,name:`orientation`,required:!1,type:{name:`enum`,value:[{value:`"horizontal"`},{value:`"vertical"`}]}}}}}catch{}try{Q.displayName=`ChipButton`,Q.__docgenInfo={description:``,displayName:`ChipButton`,props:{variant:{defaultValue:null,description:``,name:`variant`,required:!1,type:{name:`enum`,value:[{value:`"dismissible"`}]}},icon:{defaultValue:null,description:``,name:`icon`,required:!1,type:{name:`enum`,value:[{value:`ComponentClass<SVGAttributes<SVGElement>, any>`},{value:`FunctionComponent<SVGAttributes<SVGElement>>`},{value:`ReactElement<any, string | JSXElementConstructor<any>>`}]}},countryFlagCode:{defaultValue:null,description:``,name:`countryFlagCode`,required:!1,type:{name:`enum`,value:[{value:`"id"`},{value:`"at"`},{value:`"is"`},{value:`"af"`},{value:`"ax"`},{value:`"al"`},{value:`"dz"`},{value:`"as"`},{value:`"ad"`},{value:`"ao"`},{value:`"ai"`},{value:`"aq"`},{value:`"ag"`},{value:`"ar"`},{value:`"am"`},{value:`"aw"`},{value:`"sh-ac"`},{value:`"asean"`},{value:`"au"`},{value:`"az"`},{value:`"bs"`},{value:`"bh"`},{value:`"bd"`},{value:`"bb"`},{value:`"es-pv"`},{value:`"by"`},{value:`"be"`},{value:`"bz"`},{value:`"bj"`},{value:`"bm"`},{value:`"bt"`},{value:`"bo"`},{value:`"bq"`},{value:`"ba"`},{value:`"bw"`},{value:`"bv"`},{value:`"br"`},{value:`"io"`},{value:`"bn"`},{value:`"bg"`},{value:`"bf"`},{value:`"bi"`},{value:`"cv"`},{value:`"kh"`},{value:`"cm"`},{value:`"ca"`},{value:`"ic"`},{value:`"es-ct"`},{value:`"ky"`},{value:`"cf"`},{value:`"cefta"`},{value:`"td"`},{value:`"cl"`},{value:`"cn"`},{value:`"cx"`},{value:`"cp"`},{value:`"cc"`},{value:`"co"`},{value:`"km"`},{value:`"ck"`},{value:`"cr"`},{value:`"hr"`},{value:`"cu"`},{value:`"cw"`},{value:`"cy"`},{value:`"cz"`},{value:`"ci"`},{value:`"cd"`},{value:`"dk"`},{value:`"dg"`},{value:`"dj"`},{value:`"dm"`},{value:`"do"`},{value:`"eac"`},{value:`"ec"`},{value:`"eg"`},{value:`"sv"`},{value:`"gb-eng"`},{value:`"gq"`},{value:`"er"`},{value:`"ee"`},{value:`"sz"`},{value:`"et"`},{value:`"eu"`},{value:`"fk"`},{value:`"fo"`},{value:`"fm"`},{value:`"fj"`},{value:`"fi"`},{value:`"fr"`},{value:`"gf"`},{value:`"pf"`},{value:`"tf"`},{value:`"ga"`},{value:`"es-ga"`},{value:`"gm"`},{value:`"ge"`},{value:`"de"`},{value:`"gh"`},{value:`"gi"`},{value:`"gr"`},{value:`"gl"`},{value:`"gd"`},{value:`"gp"`},{value:`"gu"`},{value:`"gt"`},{value:`"gg"`},{value:`"gn"`},{value:`"gw"`},{value:`"gy"`},{value:`"ht"`},{value:`"hm"`},{value:`"va"`},{value:`"hn"`},{value:`"hk"`},{value:`"hu"`},{value:`"in"`},{value:`"ir"`},{value:`"iq"`},{value:`"ie"`},{value:`"im"`},{value:`"il"`},{value:`"it"`},{value:`"jm"`},{value:`"jp"`},{value:`"je"`},{value:`"jo"`},{value:`"kz"`},{value:`"ke"`},{value:`"ki"`},{value:`"xk"`},{value:`"kw"`},{value:`"kg"`},{value:`"la"`},{value:`"lv"`},{value:`"arab"`},{value:`"lb"`},{value:`"ls"`},{value:`"lr"`},{value:`"ly"`},{value:`"li"`},{value:`"lt"`},{value:`"lu"`},{value:`"mo"`},{value:`"mg"`},{value:`"mw"`},{value:`"my"`},{value:`"mv"`},{value:`"ml"`},{value:`"mt"`},{value:`"mh"`},{value:`"mq"`},{value:`"mr"`},{value:`"mu"`},{value:`"yt"`},{value:`"mx"`},{value:`"md"`},{value:`"mc"`},{value:`"mn"`},{value:`"me"`},{value:`"ms"`},{value:`"ma"`},{value:`"mz"`},{value:`"mm"`},{value:`"na"`},{value:`"nr"`},{value:`"np"`},{value:`"nl"`},{value:`"nc"`},{value:`"nz"`},{value:`"ni"`},{value:`"ne"`},{value:`"ng"`},{value:`"nu"`},{value:`"nf"`},{value:`"kp"`},{value:`"mk"`},{value:`"gb-nir"`},{value:`"mp"`},{value:`"no"`},{value:`"om"`},{value:`"pc"`},{value:`"pk"`},{value:`"pw"`},{value:`"pa"`},{value:`"pg"`},{value:`"py"`},{value:`"pe"`},{value:`"ph"`},{value:`"pn"`},{value:`"pl"`},{value:`"pt"`},{value:`"pr"`},{value:`"qa"`},{value:`"cg"`},{value:`"ro"`},{value:`"ru"`},{value:`"rw"`},{value:`"re"`},{value:`"bl"`},{value:`"sh-hl"`},{value:`"sh"`},{value:`"kn"`},{value:`"lc"`},{value:`"mf"`},{value:`"pm"`},{value:`"vc"`},{value:`"ws"`},{value:`"sm"`},{value:`"st"`},{value:`"sa"`},{value:`"gb-sct"`},{value:`"sn"`},{value:`"rs"`},{value:`"sc"`},{value:`"sl"`},{value:`"sg"`},{value:`"sx"`},{value:`"sk"`},{value:`"si"`},{value:`"sb"`},{value:`"so"`},{value:`"za"`},{value:`"gs"`},{value:`"kr"`},{value:`"ss"`},{value:`"es"`},{value:`"lk"`},{value:`"ps"`},{value:`"sd"`},{value:`"sr"`},{value:`"sj"`},{value:`"se"`},{value:`"ch"`},{value:`"sy"`},{value:`"tw"`},{value:`"tj"`},{value:`"tz"`},{value:`"th"`},{value:`"tl"`},{value:`"tg"`},{value:`"tk"`},{value:`"to"`},{value:`"tt"`},{value:`"sh-ta"`},{value:`"tn"`},{value:`"tm"`},{value:`"tc"`},{value:`"tv"`},{value:`"tr"`},{value:`"ug"`},{value:`"ua"`},{value:`"ae"`},{value:`"gb"`},{value:`"un"`},{value:`"um"`},{value:`"us"`},{value:`"uy"`},{value:`"uz"`},{value:`"vu"`},{value:`"ve"`},{value:`"vn"`},{value:`"vg"`},{value:`"vi"`},{value:`"gb-wls"`},{value:`"wf"`},{value:`"eh"`},{value:`"ye"`},{value:`"zm"`},{value:`"zw"`}]}}}}}catch{}}));function Lt(e){let t=(0,$.createContext)(null);return t.displayName=`${e}.Provider`,[t.Provider,()=>{let n=(0,$.useContext)(t);if(!n)throw Error(`${e} context must be used within its Provider`);return n}]}var $,Rt=t((()=>{$=e(n(),1)}));export{Mt as a,X as c,Qe as d,Nt as i,It as l,Rt as n,Z as o,Q as r,J as s,Lt as t,ft as u};
11
+ </ChipsRoot>`,displayName:`DEFAULT_ORIENTATION`,props:{}}}catch{}try{Z.displayName=`ChipsList`,Z.__docgenInfo={description:``,displayName:`ChipsList`,props:{orientation:{defaultValue:{value:`horizontal`},description:``,name:`orientation`,required:!1,type:{name:`enum`,value:[{value:`"horizontal"`},{value:`"vertical"`}]}}}}}catch{}try{Q.displayName=`ChipButton`,Q.__docgenInfo={description:``,displayName:`ChipButton`,props:{variant:{defaultValue:null,description:``,name:`variant`,required:!1,type:{name:`enum`,value:[{value:`"dismissible"`}]}},icon:{defaultValue:null,description:``,name:`icon`,required:!1,type:{name:`enum`,value:[{value:`ComponentClass<SVGAttributes<SVGElement>, any>`},{value:`FunctionComponent<SVGAttributes<SVGElement>>`},{value:`ReactElement<any, string | JSXElementConstructor<any>>`}]}},countryFlagCode:{defaultValue:null,description:``,name:`countryFlagCode`,required:!1,type:{name:`enum`,value:[{value:`"id"`},{value:`"is"`},{value:`"af"`},{value:`"ax"`},{value:`"al"`},{value:`"dz"`},{value:`"as"`},{value:`"ad"`},{value:`"ao"`},{value:`"ai"`},{value:`"aq"`},{value:`"ag"`},{value:`"ar"`},{value:`"am"`},{value:`"aw"`},{value:`"sh-ac"`},{value:`"asean"`},{value:`"au"`},{value:`"at"`},{value:`"az"`},{value:`"bs"`},{value:`"bh"`},{value:`"bd"`},{value:`"bb"`},{value:`"es-pv"`},{value:`"by"`},{value:`"be"`},{value:`"bz"`},{value:`"bj"`},{value:`"bm"`},{value:`"bt"`},{value:`"bo"`},{value:`"bq"`},{value:`"ba"`},{value:`"bw"`},{value:`"bv"`},{value:`"br"`},{value:`"io"`},{value:`"bn"`},{value:`"bg"`},{value:`"bf"`},{value:`"bi"`},{value:`"cv"`},{value:`"kh"`},{value:`"cm"`},{value:`"ca"`},{value:`"ic"`},{value:`"es-ct"`},{value:`"ky"`},{value:`"cf"`},{value:`"cefta"`},{value:`"td"`},{value:`"cl"`},{value:`"cn"`},{value:`"cx"`},{value:`"cp"`},{value:`"cc"`},{value:`"co"`},{value:`"km"`},{value:`"ck"`},{value:`"cr"`},{value:`"hr"`},{value:`"cu"`},{value:`"cw"`},{value:`"cy"`},{value:`"cz"`},{value:`"ci"`},{value:`"cd"`},{value:`"dk"`},{value:`"dg"`},{value:`"dj"`},{value:`"dm"`},{value:`"do"`},{value:`"eac"`},{value:`"ec"`},{value:`"eg"`},{value:`"sv"`},{value:`"gb-eng"`},{value:`"gq"`},{value:`"er"`},{value:`"ee"`},{value:`"sz"`},{value:`"et"`},{value:`"eu"`},{value:`"fk"`},{value:`"fo"`},{value:`"fm"`},{value:`"fj"`},{value:`"fi"`},{value:`"fr"`},{value:`"gf"`},{value:`"pf"`},{value:`"tf"`},{value:`"ga"`},{value:`"es-ga"`},{value:`"gm"`},{value:`"ge"`},{value:`"de"`},{value:`"gh"`},{value:`"gi"`},{value:`"gr"`},{value:`"gl"`},{value:`"gd"`},{value:`"gp"`},{value:`"gu"`},{value:`"gt"`},{value:`"gg"`},{value:`"gn"`},{value:`"gw"`},{value:`"gy"`},{value:`"ht"`},{value:`"hm"`},{value:`"va"`},{value:`"hn"`},{value:`"hk"`},{value:`"hu"`},{value:`"in"`},{value:`"ir"`},{value:`"iq"`},{value:`"ie"`},{value:`"im"`},{value:`"il"`},{value:`"it"`},{value:`"jm"`},{value:`"jp"`},{value:`"je"`},{value:`"jo"`},{value:`"kz"`},{value:`"ke"`},{value:`"ki"`},{value:`"xk"`},{value:`"kw"`},{value:`"kg"`},{value:`"la"`},{value:`"lv"`},{value:`"arab"`},{value:`"lb"`},{value:`"ls"`},{value:`"lr"`},{value:`"ly"`},{value:`"li"`},{value:`"lt"`},{value:`"lu"`},{value:`"mo"`},{value:`"mg"`},{value:`"mw"`},{value:`"my"`},{value:`"mv"`},{value:`"ml"`},{value:`"mt"`},{value:`"mh"`},{value:`"mq"`},{value:`"mr"`},{value:`"mu"`},{value:`"yt"`},{value:`"mx"`},{value:`"md"`},{value:`"mc"`},{value:`"mn"`},{value:`"me"`},{value:`"ms"`},{value:`"ma"`},{value:`"mz"`},{value:`"mm"`},{value:`"na"`},{value:`"nr"`},{value:`"np"`},{value:`"nl"`},{value:`"nc"`},{value:`"nz"`},{value:`"ni"`},{value:`"ne"`},{value:`"ng"`},{value:`"nu"`},{value:`"nf"`},{value:`"kp"`},{value:`"mk"`},{value:`"gb-nir"`},{value:`"mp"`},{value:`"no"`},{value:`"om"`},{value:`"pc"`},{value:`"pk"`},{value:`"pw"`},{value:`"pa"`},{value:`"pg"`},{value:`"py"`},{value:`"pe"`},{value:`"ph"`},{value:`"pn"`},{value:`"pl"`},{value:`"pt"`},{value:`"pr"`},{value:`"qa"`},{value:`"cg"`},{value:`"ro"`},{value:`"ru"`},{value:`"rw"`},{value:`"re"`},{value:`"bl"`},{value:`"sh-hl"`},{value:`"sh"`},{value:`"kn"`},{value:`"lc"`},{value:`"mf"`},{value:`"pm"`},{value:`"vc"`},{value:`"ws"`},{value:`"sm"`},{value:`"st"`},{value:`"sa"`},{value:`"gb-sct"`},{value:`"sn"`},{value:`"rs"`},{value:`"sc"`},{value:`"sl"`},{value:`"sg"`},{value:`"sx"`},{value:`"sk"`},{value:`"si"`},{value:`"sb"`},{value:`"so"`},{value:`"za"`},{value:`"gs"`},{value:`"kr"`},{value:`"ss"`},{value:`"es"`},{value:`"lk"`},{value:`"ps"`},{value:`"sd"`},{value:`"sr"`},{value:`"sj"`},{value:`"se"`},{value:`"ch"`},{value:`"sy"`},{value:`"tw"`},{value:`"tj"`},{value:`"tz"`},{value:`"th"`},{value:`"tl"`},{value:`"tg"`},{value:`"tk"`},{value:`"to"`},{value:`"tt"`},{value:`"sh-ta"`},{value:`"tn"`},{value:`"tm"`},{value:`"tc"`},{value:`"tv"`},{value:`"tr"`},{value:`"ug"`},{value:`"ua"`},{value:`"ae"`},{value:`"gb"`},{value:`"un"`},{value:`"um"`},{value:`"us"`},{value:`"uy"`},{value:`"uz"`},{value:`"vu"`},{value:`"ve"`},{value:`"vn"`},{value:`"vg"`},{value:`"vi"`},{value:`"gb-wls"`},{value:`"wf"`},{value:`"eh"`},{value:`"ye"`},{value:`"zm"`},{value:`"zw"`}]}}}}}catch{}}));function Lt(e){let t=(0,$.createContext)(null);return t.displayName=`${e}.Provider`,[t.Provider,()=>{let n=(0,$.useContext)(t);if(!n)throw Error(`${e} context must be used within its Provider`);return n}]}var $,Rt=t((()=>{$=e(n(),1)}));export{Mt as a,X as c,Qe as d,Nt as i,It as l,Rt as n,Z as o,Q as r,J as s,Lt as t,ft as u};