From 74d78a41106d93ffae09c45f5e46c1feb8c1dbe6 Mon Sep 17 00:00:00 2001 From: will0684 Date: Thu, 7 Nov 2024 16:13:39 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20583f8?= =?UTF-8?q?f9c4628b4aae24a43d3c99ce1034148fc29=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1122/merge/1067.bca37ecf.iframe.bundle.js | 1 + .../1122/merge/1106.ffac6997.iframe.bundle.js | 1 + .../1122/merge/1644.0eb91916.iframe.bundle.js | 2 + ...1644.0eb91916.iframe.bundle.js.LICENSE.txt | 5 + .../1122/merge/1905.af0799ef.iframe.bundle.js | 18 + .../merge/1905.af0799ef.iframe.bundle.js.map | 1 + .../1122/merge/1989.e204463b.iframe.bundle.js | 1 + .../1122/merge/2433.b6f5e0d9.iframe.bundle.js | 1 + .../1122/merge/2789.c64b6d14.iframe.bundle.js | 1 + .../1122/merge/5009.02b9c1bb.iframe.bundle.js | 1 + .../1122/merge/5416.a301e60a.iframe.bundle.js | 1 + .../1122/merge/5633.b6772411.iframe.bundle.js | 1 + .../1122/merge/5903.1a244564.iframe.bundle.js | 1 + .../1122/merge/6621.2d12d24c.iframe.bundle.js | 1 + .../1122/merge/6660.612db3df.iframe.bundle.js | 1 + .../1122/merge/6947.1f156c65.iframe.bundle.js | 1 + .../1122/merge/7172.ae3be924.iframe.bundle.js | 79 +++ ...7172.ae3be924.iframe.bundle.js.LICENSE.txt | 16 + .../merge/7172.ae3be924.iframe.bundle.js.map | 1 + .../1122/merge/7300.5225bdd8.iframe.bundle.js | 2 + ...7300.5225bdd8.iframe.bundle.js.LICENSE.txt | 9 + .../1122/merge/740.158867f2.iframe.bundle.js | 1 + .../1122/merge/7431.ef3dc8a3.iframe.bundle.js | 1 + .../1122/merge/7730.7cfd88b8.iframe.bundle.js | 1 + .../1122/merge/7892.de35f55f.iframe.bundle.js | 1 + .../1122/merge/8109.53130052.iframe.bundle.js | 1 + .../1122/merge/8677.0fc30c33.iframe.bundle.js | 1 + .../1122/merge/8704.236b0a71.iframe.bundle.js | 2 + ...8704.236b0a71.iframe.bundle.js.LICENSE.txt | 8 + ...-CEBD-4DD1-BDF5-FC7DD4834CCA_4_5005_c.jpeg | Bin 0 -> 32526 bytes .../1122/merge/9845.e416d8eb.iframe.bundle.js | 405 +++++++++++++ ...9845.e416d8eb.iframe.bundle.js.LICENSE.txt | 41 ++ .../merge/9845.e416d8eb.iframe.bundle.js.map | 1 + .../1122/merge/9890.33db1246.iframe.bundle.js | 1 + .../Button-stories.7b074acc.iframe.bundle.js | 1 + .../Configure-mdx.7c52a640.iframe.bundle.js | 1 + .../Header-stories.893e588d.iframe.bundle.js | 1 + .../Page-stories.e836c553.iframe.bundle.js | 1 + ...onButton-stories.71ba959e.iframe.bundle.js | 1 + ...ms-Alert-stories.584910a6.iframe.bundle.js | 1 + ...s-Banner-stories.8107e0e6.iframe.bundle.js | 1 + ...eadcrumb-stories.2b17b2b4.iframe.bundle.js | 1 + ...CheckBox-stories.019fe15d.iframe.bundle.js | 1 + ...DSButton-stories.9fad6f96.iframe.bundle.js | 1 + ...Modified-stories.34890765.iframe.bundle.js | 1 + ...rorLabel-stories.3775661c.iframe.bundle.js | 1 + ...ms-Image-stories.ad25b1dc.iframe.bundle.js | 1 + ...oms-Link-stories.f29ee695.iframe.bundle.js | 1 + ...ectField-stories.ac5e371f.iframe.bundle.js | 1 + ...extField-stories.d0b51db3.iframe.bundle.js | 1 + ...jectInfo-stories.db43bd7f.iframe.bundle.js | 1 + ...ioButton-stories.83f7cb48.iframe.bundle.js | 1 + ...dioField-stories.9b9ba767.iframe.bundle.js | 1 + ...earchBar-stories.7d172e00.iframe.bundle.js | 1 + ...ectField-stories.fcd97497.iframe.bundle.js | 1 + ...Contents-stories.730f76dc.iframe.bundle.js | 1 + ...extField-stories.74233c05.iframe.bundle.js | 1 + refs/pull/1122/merge/chevron-right.svg | 12 + refs/pull/1122/merge/chrome.png | Bin 0 -> 67688 bytes refs/pull/1122/merge/close-x-menu.svg | 3 + refs/pull/1122/merge/close-x.svg | 3 + refs/pull/1122/merge/comment_bubble.svg | 3 + refs/pull/1122/merge/cta_icon.svg | 3 + refs/pull/1122/merge/danger_img.svg | 3 + refs/pull/1122/merge/edge.png | Bin 0 -> 219543 bytes refs/pull/1122/merge/favicon.ico | Bin 0 -> 5430 bytes refs/pull/1122/merge/favicon.svg | 7 + refs/pull/1122/merge/feedback-icon-white.svg | 3 + refs/pull/1122/merge/feedback-icon.svg | 3 + refs/pull/1122/merge/firefox.svg | 111 ++++ refs/pull/1122/merge/footer_bg_img.svg | 9 + ...ntRender-stories.a7c913d8.iframe.bundle.js | 1 + ...ticleCTA-stories.170727b0.iframe.bundle.js | 1 + ...ithImage-stories.bb74fb71.iframe.bundle.js | 1 + ...s-Button-stories.fd314746.iframe.bundle.js | 1 + ...Fragment-stories.c99142a7.iframe.bundle.js | 1 + ...eContent-stories.b69e9898.iframe.bundle.js | 1 + ...Collapse-stories.b8dbc23c.iframe.bundle.js | 1 + ...eContent-stories.8e5beed6.iframe.bundle.js | 1 + ...tContent-stories.041ec840.iframe.bundle.js | 1 + ...ithImage-stories.5c4b8d6a.iframe.bundle.js | 1 + refs/pull/1122/merge/iframe.html | 481 +++++++++++++++ refs/pull/1122/merge/image1.png | Bin 0 -> 979895 bytes refs/pull/1122/merge/image2.png | Bin 0 -> 169907 bytes refs/pull/1122/merge/index.html | 167 ++++++ refs/pull/1122/merge/index.json | 1 + refs/pull/1122/merge/info_img.svg | 3 + refs/pull/1122/merge/landscape.png | Bin 0 -> 9561 bytes .../1122/merge/locales/default/common.json | 0 refs/pull/1122/merge/locales/en/common.json | 556 ++++++++++++++++++ .../1122/merge/locales/en/multiSelect.json | 5 + refs/pull/1122/merge/locales/fr/common.json | 546 +++++++++++++++++ .../1122/merge/locales/fr/multiSelect.json | 5 + .../1122/merge/main.24decff9.iframe.bundle.js | 1 + ...ules-CTA-stories.4cec2e6b.iframe.bundle.js | 1 + ...les-Card-stories.82229a33.iframe.bundle.js | 1 + ...Collapse-stories.fc091182.iframe.bundle.js | 1 + ...ualAlert-stories.63cbd4f4.iframe.bundle.js | 1 + ...lipboard-stories.19b3a107.iframe.bundle.js | 1 + ...-Details-stories.63b4df78.iframe.bundle.js | 1 + ...ErrorBox-stories.dec072d8.iframe.bundle.js | 1 + ...ckWidget-stories.e65eac63.iframe.bundle.js | 1 + ...s-Filter-stories.7d4d00ac.iframe.bundle.js | 1 + ...-Heading-stories.33acd72c.iframe.bundle.js | 1 + ...les-List-stories.da02be4e.iframe.bundle.js | 1 + ...les-Menu-stories.ab2331e6.iframe.bundle.js | 1 + ...istField-stories.883d8de1.iframe.bundle.js | 1 + ...extField-stories.1c8a8646.iframe.bundle.js | 1 + ...es-Quote-stories.b2a8cb40.iframe.bundle.js | 1 + ...urveyCTA-stories.fec0d3e4.iframe.bundle.js | 1 + ...tonField-stories.a54c9ffc.iframe.bundle.js | 1 + ...opNavBar-stories.216729ee.iframe.bundle.js | 1 + ...Projects-stories.77046f19.iframe.bundle.js | 1 + ...eUpdates-stories.396f5efb.iframe.bundle.js | 1 + ...s-Footer-stories.6667c72c.iframe.bundle.js | 1 + ...HelpIcon-stories.894cff51.iframe.bundle.js | 1 + ...s-Layout-stories.cf0cf27f.iframe.bundle.js | 1 + ...seBanner-stories.e9739465.iframe.bundle.js | 1 + ...AProblem-stories.8416e430.iframe.bundle.js | 1 + refs/pull/1122/merge/placeholder.png | Bin 0 -> 1368 bytes refs/pull/1122/merge/plus.svg | 3 + refs/pull/1122/merge/project.json | 1 + refs/pull/1122/merge/projects/en/dc-1.1.jpg | Bin 0 -> 86455 bytes refs/pull/1122/merge/projects/en/dc-1.2.jpg | Bin 0 -> 58505 bytes refs/pull/1122/merge/projects/en/dc-1.3.jpg | Bin 0 -> 85676 bytes refs/pull/1122/merge/projects/en/dc-2.1.jpg | Bin 0 -> 35028 bytes refs/pull/1122/merge/projects/en/dc-2.2.jpg | Bin 0 -> 79850 bytes refs/pull/1122/merge/projects/en/dc-2.3.jpg | Bin 0 -> 45856 bytes refs/pull/1122/merge/projects/en/dc-3.1.jpg | Bin 0 -> 44881 bytes refs/pull/1122/merge/projects/en/dc-4.1.jpg | Bin 0 -> 60118 bytes refs/pull/1122/merge/projects/fr/dc-1.1.jpg | Bin 0 -> 95423 bytes refs/pull/1122/merge/projects/fr/dc-1.2.jpg | Bin 0 -> 62474 bytes refs/pull/1122/merge/projects/fr/dc-1.3.jpg | Bin 0 -> 88335 bytes refs/pull/1122/merge/projects/fr/dc-2.1.jpg | Bin 0 -> 39178 bytes refs/pull/1122/merge/projects/fr/dc-2.2.jpg | Bin 0 -> 83029 bytes refs/pull/1122/merge/projects/fr/dc-2.3.jpg | Bin 0 -> 49003 bytes refs/pull/1122/merge/projects/fr/dc-3.1.jpg | Bin 0 -> 50564 bytes refs/pull/1122/merge/projects/fr/dc-4.1.jpg | Bin 0 -> 63191 bytes .../runtime~main.77d8d5cb.iframe.bundle.js | 1 + refs/pull/1122/merge/safari.png | Bin 0 -> 14337 bytes .../manager-bundle.js | 333 +++++++++++ .../manager-bundle.js.LEGAL.txt | 40 ++ .../essentials-actions-4/manager-bundle.js | 3 + .../manager-bundle.js.LEGAL.txt | 0 .../manager-bundle.js | 12 + .../manager-bundle.js.LEGAL.txt | 0 .../essentials-controls-3/manager-bundle.js | 60 ++ .../manager-bundle.js.LEGAL.txt | 18 + .../essentials-measure-8/manager-bundle.js | 3 + .../manager-bundle.js.LEGAL.txt | 0 .../essentials-outline-9/manager-bundle.js | 3 + .../manager-bundle.js.LEGAL.txt | 0 .../essentials-toolbars-7/manager-bundle.js | 3 + .../manager-bundle.js.LEGAL.txt | 0 .../essentials-viewport-6/manager-bundle.js | 3 + .../manager-bundle.js.LEGAL.txt | 0 .../interactions-11/manager-bundle.js | 35 ++ .../manager-bundle.js.LEGAL.txt | 0 .../merge/sb-addons/links-2/manager-bundle.js | 3 + .../links-2/manager-bundle.js.LEGAL.txt | 0 .../sb-addons/onboarding-1/manager-bundle.js | 433 ++++++++++++++ .../onboarding-1/manager-bundle.js.LEGAL.txt | 0 .../common-manager-bundle.js | 3 + .../common-manager-bundle.js.LEGAL.txt | 0 .../1122/merge/sb-common-assets/fonts.css | 31 + .../nunito-sans-bold-italic.woff2 | Bin 0 -> 49460 bytes .../sb-common-assets/nunito-sans-bold.woff2 | Bin 0 -> 47144 bytes .../sb-common-assets/nunito-sans-italic.woff2 | Bin 0 -> 49620 bytes .../nunito-sans-regular.woff2 | Bin 0 -> 47072 bytes .../WithTooltip-KJL26V4Q-5LS5AN27.js | 1 + .../1122/merge/sb-manager/chunk-B3YDJJJH.js | 347 +++++++++++ .../1122/merge/sb-manager/chunk-BLWCBWKL.js | 9 + .../1122/merge/sb-manager/chunk-GUVK2GTO.js | 6 + .../1122/merge/sb-manager/chunk-LFRML3ZV.js | 186 ++++++ .../1122/merge/sb-manager/chunk-MC7RAF2B.js | 274 +++++++++ .../1122/merge/sb-manager/chunk-ZR5JZWHI.js | 1 + .../sb-manager/formatter-2WMMO6ZP-JI7RHVTW.js | 58 ++ .../merge/sb-manager/globals-module-info.js | 1 + .../1122/merge/sb-manager/globals-runtime.js | 1 + refs/pull/1122/merge/sb-manager/globals.js | 1 + refs/pull/1122/merge/sb-manager/index.js | 1 + refs/pull/1122/merge/sb-manager/runtime.js | 1 + .../syntaxhighlighter-BP7B2CQK-WOJYHKQR.js | 1 + refs/pull/1122/merge/sb-preview/globals.js | 1 + refs/pull/1122/merge/sb-preview/runtime.js | 156 +++++ refs/pull/1122/merge/sig-blk-en.svg | 8 + refs/pull/1122/merge/sig-blk-fr.svg | 8 + refs/pull/1122/merge/splash-image.png | Bin 0 -> 289385 bytes refs/pull/1122/merge/splash-mobile.png | Bin 0 -> 289385 bytes .../static/media/accessibility.b812909c.png | Bin 0 -> 42336 bytes .../static/media/addon-library.7d60eaf1.png | Bin 0 -> 467366 bytes .../merge/static/media/assets.74434bfb.png | Bin 0 -> 3899 bytes .../merge/static/media/context.0aaeed46.png | Bin 0 -> 6119 bytes .../merge/static/media/discord.94236f1b.svg | 15 + .../1122/merge/static/media/docs.78ff2c00.png | Bin 0 -> 27875 bytes .../static/media/figma-plugin.92feae99.png | Bin 0 -> 44246 bytes .../merge/static/media/github.b486cb15.svg | 3 + .../merge/static/media/image1.0e3cd7a4.png | Bin 0 -> 979895 bytes .../merge/static/media/image2.5cd709f8.png | Bin 0 -> 169907 bytes .../merge/static/media/landscape.3f5f9f3b.png | Bin 0 -> 9561 bytes .../static/media/placeholder.930d0a7a.png | Bin 0 -> 1368 bytes .../merge/static/media/share.b661f220.png | Bin 0 -> 40767 bytes .../merge/static/media/styling.6ea0e96c.png | Bin 0 -> 7237 bytes .../merge/static/media/testing.6f11ce8b.png | Bin 0 -> 49313 bytes .../merge/static/media/theming.3ca117fd.png | Bin 0 -> 44374 bytes .../merge/static/media/tutorials.91d32fdc.svg | 12 + .../merge/static/media/up-caret.46f2ce0b.svg | 3 + .../merge/static/media/youtube.c48860fc.svg | 4 + refs/pull/1122/merge/success_img.svg | 3 + refs/pull/1122/merge/up-caret.svg | 3 + .../1122/merge/updates-projectsbanner.png | Bin 0 -> 46769 bytes refs/pull/1122/merge/warning_img.svg | 3 + refs/pull/1122/merge/wmms-blk.svg | 14 + 213 files changed, 4701 insertions(+) create mode 100644 refs/pull/1122/merge/1067.bca37ecf.iframe.bundle.js create mode 100644 refs/pull/1122/merge/1106.ffac6997.iframe.bundle.js create mode 100644 refs/pull/1122/merge/1644.0eb91916.iframe.bundle.js create mode 100644 refs/pull/1122/merge/1644.0eb91916.iframe.bundle.js.LICENSE.txt create mode 100644 refs/pull/1122/merge/1905.af0799ef.iframe.bundle.js create mode 100644 refs/pull/1122/merge/1905.af0799ef.iframe.bundle.js.map create mode 100644 refs/pull/1122/merge/1989.e204463b.iframe.bundle.js create mode 100644 refs/pull/1122/merge/2433.b6f5e0d9.iframe.bundle.js create mode 100644 refs/pull/1122/merge/2789.c64b6d14.iframe.bundle.js create mode 100644 refs/pull/1122/merge/5009.02b9c1bb.iframe.bundle.js create mode 100644 refs/pull/1122/merge/5416.a301e60a.iframe.bundle.js create mode 100644 refs/pull/1122/merge/5633.b6772411.iframe.bundle.js create mode 100644 refs/pull/1122/merge/5903.1a244564.iframe.bundle.js create mode 100644 refs/pull/1122/merge/6621.2d12d24c.iframe.bundle.js create mode 100644 refs/pull/1122/merge/6660.612db3df.iframe.bundle.js create mode 100644 refs/pull/1122/merge/6947.1f156c65.iframe.bundle.js create mode 100644 refs/pull/1122/merge/7172.ae3be924.iframe.bundle.js create mode 100644 refs/pull/1122/merge/7172.ae3be924.iframe.bundle.js.LICENSE.txt create mode 100644 refs/pull/1122/merge/7172.ae3be924.iframe.bundle.js.map create mode 100644 refs/pull/1122/merge/7300.5225bdd8.iframe.bundle.js create mode 100644 refs/pull/1122/merge/7300.5225bdd8.iframe.bundle.js.LICENSE.txt create mode 100644 refs/pull/1122/merge/740.158867f2.iframe.bundle.js create mode 100644 refs/pull/1122/merge/7431.ef3dc8a3.iframe.bundle.js create mode 100644 refs/pull/1122/merge/7730.7cfd88b8.iframe.bundle.js create mode 100644 refs/pull/1122/merge/7892.de35f55f.iframe.bundle.js create mode 100644 refs/pull/1122/merge/8109.53130052.iframe.bundle.js create mode 100644 refs/pull/1122/merge/8677.0fc30c33.iframe.bundle.js create mode 100644 refs/pull/1122/merge/8704.236b0a71.iframe.bundle.js create mode 100644 refs/pull/1122/merge/8704.236b0a71.iframe.bundle.js.LICENSE.txt create mode 100644 refs/pull/1122/merge/981A606F-CEBD-4DD1-BDF5-FC7DD4834CCA_4_5005_c.jpeg create mode 100644 refs/pull/1122/merge/9845.e416d8eb.iframe.bundle.js create mode 100644 refs/pull/1122/merge/9845.e416d8eb.iframe.bundle.js.LICENSE.txt create mode 100644 refs/pull/1122/merge/9845.e416d8eb.iframe.bundle.js.map create mode 100644 refs/pull/1122/merge/9890.33db1246.iframe.bundle.js create mode 100644 refs/pull/1122/merge/Button-stories.7b074acc.iframe.bundle.js create mode 100644 refs/pull/1122/merge/Configure-mdx.7c52a640.iframe.bundle.js create mode 100644 refs/pull/1122/merge/Header-stories.893e588d.iframe.bundle.js create mode 100644 refs/pull/1122/merge/Page-stories.e836c553.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-ActionButton-stories.71ba959e.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-Alert-stories.584910a6.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-Banner-stories.8107e0e6.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-Breadcrumb-stories.2b17b2b4.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-CheckBox-stories.019fe15d.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-DSButton-stories.9fad6f96.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-DateModified-stories.34890765.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-ErrorLabel-stories.3775661c.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-Image-stories.ad25b1dc.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-Link-stories.f29ee695.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-MultiSelectField-stories.ac5e371f.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-MultiTextField-stories.d0b51db3.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-ProjectInfo-stories.db43bd7f.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-RadioButton-stories.83f7cb48.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-RadioField-stories.9b9ba767.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-SearchBar-stories.7d172e00.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-SelectField-stories.fcd97497.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-TableOfContents-stories.730f76dc.iframe.bundle.js create mode 100644 refs/pull/1122/merge/atoms-TextField-stories.74233c05.iframe.bundle.js create mode 100644 refs/pull/1122/merge/chevron-right.svg create mode 100644 refs/pull/1122/merge/chrome.png create mode 100644 refs/pull/1122/merge/close-x-menu.svg create mode 100644 refs/pull/1122/merge/close-x.svg create mode 100644 refs/pull/1122/merge/comment_bubble.svg create mode 100644 refs/pull/1122/merge/cta_icon.svg create mode 100644 refs/pull/1122/merge/danger_img.svg create mode 100644 refs/pull/1122/merge/edge.png create mode 100644 refs/pull/1122/merge/favicon.ico create mode 100644 refs/pull/1122/merge/favicon.svg create mode 100644 refs/pull/1122/merge/feedback-icon-white.svg create mode 100644 refs/pull/1122/merge/feedback-icon.svg create mode 100644 refs/pull/1122/merge/firefox.svg create mode 100644 refs/pull/1122/merge/footer_bg_img.svg create mode 100644 refs/pull/1122/merge/fragment_renderer-FragmentRender-stories.a7c913d8.iframe.bundle.js create mode 100644 refs/pull/1122/merge/fragment_renderer-fragment_components-ArticleCTA-stories.170727b0.iframe.bundle.js create mode 100644 refs/pull/1122/merge/fragment_renderer-fragment_components-BasicTextWithImage-stories.bb74fb71.iframe.bundle.js create mode 100644 refs/pull/1122/merge/fragment_renderer-fragment_components-Button-stories.fd314746.iframe.bundle.js create mode 100644 refs/pull/1122/merge/fragment_renderer-fragment_components-ImageFragment-stories.c99142a7.iframe.bundle.js create mode 100644 refs/pull/1122/merge/fragment_renderer-fragment_components-ImageVerticalLineContent-stories.b69e9898.iframe.bundle.js create mode 100644 refs/pull/1122/merge/fragment_renderer-fragment_components-ImageWithCollapse-stories.b8dbc23c.iframe.bundle.js create mode 100644 refs/pull/1122/merge/fragment_renderer-fragment_components-QuoteVerticalLineContent-stories.8e5beed6.iframe.bundle.js create mode 100644 refs/pull/1122/merge/fragment_renderer-fragment_components-TextContent-stories.041ec840.iframe.bundle.js create mode 100644 refs/pull/1122/merge/fragment_renderer-fragment_components-TextWithImage-stories.5c4b8d6a.iframe.bundle.js create mode 100644 refs/pull/1122/merge/iframe.html create mode 100644 refs/pull/1122/merge/image1.png create mode 100644 refs/pull/1122/merge/image2.png create mode 100644 refs/pull/1122/merge/index.html create mode 100644 refs/pull/1122/merge/index.json create mode 100644 refs/pull/1122/merge/info_img.svg create mode 100644 refs/pull/1122/merge/landscape.png create mode 100644 refs/pull/1122/merge/locales/default/common.json create mode 100644 refs/pull/1122/merge/locales/en/common.json create mode 100644 refs/pull/1122/merge/locales/en/multiSelect.json create mode 100644 refs/pull/1122/merge/locales/fr/common.json create mode 100644 refs/pull/1122/merge/locales/fr/multiSelect.json create mode 100644 refs/pull/1122/merge/main.24decff9.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-CTA-stories.4cec2e6b.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-Card-stories.82229a33.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-Collapse-stories.fc091182.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-ContextualAlert-stories.63cbd4f4.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-CopyToClipboard-stories.19b3a107.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-Details-stories.63b4df78.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-ErrorBox-stories.dec072d8.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-FeedbackWidget-stories.e65eac63.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-Filter-stories.7d4d00ac.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-Heading-stories.33acd72c.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-List-stories.da02be4e.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-Menu-stories.ab2331e6.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-OptionalListField-stories.883d8de1.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-OptionalTextField-stories.1c8a8646.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-Quote-stories.b2a8cb40.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-SurveyCTA-stories.fec0d3e4.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-TextButtonField-stories.a54c9ffc.iframe.bundle.js create mode 100644 refs/pull/1122/merge/molecules-TopNavBar-stories.216729ee.iframe.bundle.js create mode 100644 refs/pull/1122/merge/organisms-ExploreProjects-stories.77046f19.iframe.bundle.js create mode 100644 refs/pull/1122/merge/organisms-ExploreUpdates-stories.396f5efb.iframe.bundle.js create mode 100644 refs/pull/1122/merge/organisms-Footer-stories.6667c72c.iframe.bundle.js create mode 100644 refs/pull/1122/merge/organisms-HelpIcon-stories.894cff51.iframe.bundle.js create mode 100644 refs/pull/1122/merge/organisms-Layout-stories.cf0cf27f.iframe.bundle.js create mode 100644 refs/pull/1122/merge/organisms-PhaseBanner-stories.e9739465.iframe.bundle.js create mode 100644 refs/pull/1122/merge/organisms-ReportAProblem-stories.8416e430.iframe.bundle.js create mode 100644 refs/pull/1122/merge/placeholder.png create mode 100644 refs/pull/1122/merge/plus.svg create mode 100644 refs/pull/1122/merge/project.json create mode 100644 refs/pull/1122/merge/projects/en/dc-1.1.jpg create mode 100644 refs/pull/1122/merge/projects/en/dc-1.2.jpg create mode 100644 refs/pull/1122/merge/projects/en/dc-1.3.jpg create mode 100644 refs/pull/1122/merge/projects/en/dc-2.1.jpg create mode 100644 refs/pull/1122/merge/projects/en/dc-2.2.jpg create mode 100644 refs/pull/1122/merge/projects/en/dc-2.3.jpg create mode 100644 refs/pull/1122/merge/projects/en/dc-3.1.jpg create mode 100644 refs/pull/1122/merge/projects/en/dc-4.1.jpg create mode 100644 refs/pull/1122/merge/projects/fr/dc-1.1.jpg create mode 100644 refs/pull/1122/merge/projects/fr/dc-1.2.jpg create mode 100644 refs/pull/1122/merge/projects/fr/dc-1.3.jpg create mode 100644 refs/pull/1122/merge/projects/fr/dc-2.1.jpg create mode 100644 refs/pull/1122/merge/projects/fr/dc-2.2.jpg create mode 100644 refs/pull/1122/merge/projects/fr/dc-2.3.jpg create mode 100644 refs/pull/1122/merge/projects/fr/dc-3.1.jpg create mode 100644 refs/pull/1122/merge/projects/fr/dc-4.1.jpg create mode 100644 refs/pull/1122/merge/runtime~main.77d8d5cb.iframe.bundle.js create mode 100644 refs/pull/1122/merge/safari.png create mode 100644 refs/pull/1122/merge/sb-addons/chromatic-com-storybook-10/manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-addons/essentials-actions-4/manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/essentials-actions-4/manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-addons/essentials-backgrounds-5/manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-addons/essentials-controls-3/manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/essentials-controls-3/manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-addons/essentials-measure-8/manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-addons/essentials-outline-9/manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-addons/essentials-toolbars-7/manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-addons/essentials-viewport-6/manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-addons/interactions-11/manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/interactions-11/manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-addons/links-2/manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/links-2/manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-addons/onboarding-1/manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/onboarding-1/manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js create mode 100644 refs/pull/1122/merge/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt create mode 100644 refs/pull/1122/merge/sb-common-assets/fonts.css create mode 100644 refs/pull/1122/merge/sb-common-assets/nunito-sans-bold-italic.woff2 create mode 100644 refs/pull/1122/merge/sb-common-assets/nunito-sans-bold.woff2 create mode 100644 refs/pull/1122/merge/sb-common-assets/nunito-sans-italic.woff2 create mode 100644 refs/pull/1122/merge/sb-common-assets/nunito-sans-regular.woff2 create mode 100644 refs/pull/1122/merge/sb-manager/WithTooltip-KJL26V4Q-5LS5AN27.js create mode 100644 refs/pull/1122/merge/sb-manager/chunk-B3YDJJJH.js create mode 100644 refs/pull/1122/merge/sb-manager/chunk-BLWCBWKL.js create mode 100644 refs/pull/1122/merge/sb-manager/chunk-GUVK2GTO.js create mode 100644 refs/pull/1122/merge/sb-manager/chunk-LFRML3ZV.js create mode 100644 refs/pull/1122/merge/sb-manager/chunk-MC7RAF2B.js create mode 100644 refs/pull/1122/merge/sb-manager/chunk-ZR5JZWHI.js create mode 100644 refs/pull/1122/merge/sb-manager/formatter-2WMMO6ZP-JI7RHVTW.js create mode 100644 refs/pull/1122/merge/sb-manager/globals-module-info.js create mode 100644 refs/pull/1122/merge/sb-manager/globals-runtime.js create mode 100644 refs/pull/1122/merge/sb-manager/globals.js create mode 100644 refs/pull/1122/merge/sb-manager/index.js create mode 100644 refs/pull/1122/merge/sb-manager/runtime.js create mode 100644 refs/pull/1122/merge/sb-manager/syntaxhighlighter-BP7B2CQK-WOJYHKQR.js create mode 100644 refs/pull/1122/merge/sb-preview/globals.js create mode 100644 refs/pull/1122/merge/sb-preview/runtime.js create mode 100644 refs/pull/1122/merge/sig-blk-en.svg create mode 100644 refs/pull/1122/merge/sig-blk-fr.svg create mode 100644 refs/pull/1122/merge/splash-image.png create mode 100644 refs/pull/1122/merge/splash-mobile.png create mode 100644 refs/pull/1122/merge/static/media/accessibility.b812909c.png create mode 100644 refs/pull/1122/merge/static/media/addon-library.7d60eaf1.png create mode 100644 refs/pull/1122/merge/static/media/assets.74434bfb.png create mode 100644 refs/pull/1122/merge/static/media/context.0aaeed46.png create mode 100644 refs/pull/1122/merge/static/media/discord.94236f1b.svg create mode 100644 refs/pull/1122/merge/static/media/docs.78ff2c00.png create mode 100644 refs/pull/1122/merge/static/media/figma-plugin.92feae99.png create mode 100644 refs/pull/1122/merge/static/media/github.b486cb15.svg create mode 100644 refs/pull/1122/merge/static/media/image1.0e3cd7a4.png create mode 100644 refs/pull/1122/merge/static/media/image2.5cd709f8.png create mode 100644 refs/pull/1122/merge/static/media/landscape.3f5f9f3b.png create mode 100644 refs/pull/1122/merge/static/media/placeholder.930d0a7a.png create mode 100644 refs/pull/1122/merge/static/media/share.b661f220.png create mode 100644 refs/pull/1122/merge/static/media/styling.6ea0e96c.png create mode 100644 refs/pull/1122/merge/static/media/testing.6f11ce8b.png create mode 100644 refs/pull/1122/merge/static/media/theming.3ca117fd.png create mode 100644 refs/pull/1122/merge/static/media/tutorials.91d32fdc.svg create mode 100644 refs/pull/1122/merge/static/media/up-caret.46f2ce0b.svg create mode 100644 refs/pull/1122/merge/static/media/youtube.c48860fc.svg create mode 100644 refs/pull/1122/merge/success_img.svg create mode 100644 refs/pull/1122/merge/up-caret.svg create mode 100644 refs/pull/1122/merge/updates-projectsbanner.png create mode 100644 refs/pull/1122/merge/warning_img.svg create mode 100644 refs/pull/1122/merge/wmms-blk.svg diff --git a/refs/pull/1122/merge/1067.bca37ecf.iframe.bundle.js b/refs/pull/1122/merge/1067.bca37ecf.iframe.bundle.js new file mode 100644 index 0000000000..1a650d9f0d --- /dev/null +++ b/refs/pull/1122/merge/1067.bca37ecf.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[1067],{"./node_modules/@storybook/blocks/dist/Color-PRSJMWNM.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ColorControl:()=>ColorControl,default:()=>Color_default});var chunk_GWAJ4KRU=__webpack_require__("./node_modules/@storybook/blocks/dist/chunk-GWAJ4KRU.mjs"),react=__webpack_require__("./node_modules/next/dist/compiled/react/index.js");function u(){return(u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function i(e){var t=(0,react.useRef)(e),n=(0,react.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]}),[p,g]),C=x[0],E=x[1],H=x[2];return(0,react.useEffect)((function(){return H}),[H]),react.createElement("div",u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))})),g=function(e){return e.filter(Boolean).join(" ")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g(["react-colorful__pointer",r.className]);return react.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},react.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function(e){return L(C(e))},C=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b(parseInt(e.substring(6,8),16)/255,2):1}},E=function(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},H=function(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?N({h:E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},q=function(e){var r=y(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},k=function(e){var r=y(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},z=function(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b(255*o)):"";return"#"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},S=react.memo((function(r){var t=r.hue,n=r.onChange,o=g(["react-colorful__hue",r.className]);return react.createElement("div",{className:o},react.createElement(m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":b(t),"aria-valuemax":"360","aria-valuemin":"0"},react.createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))})),T=react.memo((function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return react.createElement("div",{className:"react-colorful__saturation",style:o},react.createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b(t.s)+"%, Brightness "+b(t.v)+"%"},react.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))})),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=(0,react.useState)((function(){return e.toHsva(t)})),s=c[0],f=c[1],v=(0,react.useRef)({color:t,hsva:s});(0,react.useEffect)((function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}}),[t,e]),(0,react.useEffect)((function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))}),[s,e,u]);var d=(0,react.useCallback)((function(e){f((function(r){return Object.assign({},r,e)}))}),[]);return[s,d]}var R,ColorSpace2,V="undefined"!=typeof window?react.useLayoutEffect:react.useEffect,J=new Map,Q=function(e){V((function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=R||__webpack_require__.nc;n&&t.setAttribute("nonce",n),r.head.appendChild(t)}}),[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=(0,react.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react.createElement("div",u({},s,{ref:f,className:m}),react.createElement(T,{hsva:d,onChange:h}),react.createElement(S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+k(Object.assign({},n,{a:0}))+", "+k(Object.assign({},n,{a:1}))+")"},l=g(["react-colorful__alpha",t]),u=b(100*n.a);return react.createElement("div",{className:l},react.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),react.createElement(m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},react.createElement(p,{className:"react-colorful__alpha-pointer",left:n.a,color:k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=(0,react.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react.createElement("div",u({},s,{ref:f,className:m}),react.createElement(T,{hsva:d,onChange:h}),react.createElement(S,{hue:d.h,onChange:h}),react.createElement(ee,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:H,fromHsva:k,equal:P},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:z,fromHsva:function(e){var r=I(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:P},color_convert=__webpack_require__("./node_modules/color-convert/index.js"),color_convert_default=__webpack_require__.n(color_convert),throttle=__webpack_require__("./node_modules/lodash/throttle.js"),throttle_default=__webpack_require__.n(throttle),dist=__webpack_require__("./node_modules/@storybook/theming/dist/index.mjs"),components_dist=__webpack_require__("./node_modules/@storybook/components/dist/index.mjs"),icons_dist=__webpack_require__("./node_modules/@storybook/icons/dist/index.mjs"),Wrapper=dist.I4.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),PickerTooltip=(0,dist.I4)(components_dist.kR)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),TooltipContent=dist.I4.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Note=(0,dist.I4)(components_dist._)((({theme})=>({fontFamily:theme.typography.fonts.base}))),Swatches=dist.I4.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=dist.I4.div((({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius}))),Swatch=({value,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), url('data:image/svg+xml;charset=utf-8,'), linear-gradient(#fff, #fff)`;return react.createElement(SwatchColor,{...props,style:{...style,backgroundImage}})},Input=(0,dist.I4)(components_dist.lV.Input)((({theme,readOnly})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:theme.typography.fonts.base}))),ToggleIcon=(0,dist.I4)(icons_dist.QDE)((({theme})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:theme.input.color}))),ColorSpace=((ColorSpace2=ColorSpace||{}).RGB="rgb",ColorSpace2.HSL="hsl",ColorSpace2.HEX="hex",ColorSpace2),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,RGB_REGEXP=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,HSL_REGEXP=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,HEX_REGEXP=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,SHORTHEX_REGEXP=/^\s*#?([0-9a-f]{3})\s*$/i,ColorPicker={hex:function(r){return react.createElement(U,u({},r,{colorModel:W}))},rgb:function(r){return react.createElement(re,u({},r,{colorModel:Ee}))},hsl:function(r){return react.createElement(re,u({},r,{colorModel:le}))}},fallbackColor={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return[0,0,0,1];let[,x,y,z,a=1]=match;return[x,y,z,a].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r,g,b,a]=stringToArgs(value),[h,s,l]=color_convert_default().rgb.hsl([r,g,b])||[0,0,0];return{valid,value,keyword:color_convert_default().rgb.keyword([r,g,b]),colorSpace:"rgb",rgb:value,hsl:`hsla(${h}, ${s}%, ${l}%, ${a})`,hex:`#${color_convert_default().rgb.hex([r,g,b]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h,s,l,a]=stringToArgs(value),[r,g,b]=color_convert_default().hsl.rgb([h,s,l])||[0,0,0];return{valid,value,keyword:color_convert_default().hsl.keyword([h,s,l]),colorSpace:"hsl",rgb:`rgba(${r}, ${g}, ${b}, ${a})`,hsl:value,hex:`#${color_convert_default().hsl.hex([h,s,l]).toLowerCase()}`}}let plain=value.replace("#",""),rgb=color_convert_default().keyword.rgb(plain)||color_convert_default().hex.rgb(plain),hsl=color_convert_default().rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith("#"))valid=HEX_REGEXP.test(mapped);else try{color_convert_default().keyword.hex(mapped)}catch{valid=!1}return{valid,value:mapped,keyword:color_convert_default().rgb.keyword(rgb),colorSpace:"hex",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},useColorInput=(initialValue,onChange)=>{let[value,setValue]=(0,react.useState)(initialValue||""),[color,setColor]=(0,react.useState)((()=>parseValue(value))),[colorSpace,setColorSpace]=(0,react.useState)(color?.colorSpace||"hex");(0,react.useEffect)((()=>{let nextValue=initialValue||"",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||"hex")}),[initialValue]);let realValue=(0,react.useMemo)((()=>((value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if("hex"!==colorSpace)return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith("#"))try{return`#${color_convert_default().keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r,g,b]=short[1].split("");return`#${r}${r}${g}${g}${b}${b}`})(value,color,colorSpace).toLowerCase()),[value,color,colorSpace]),updateValue=(0,react.useCallback)((update=>{let parsed=parseValue(update),v=parsed?.value||update||"";setValue(v),""===v&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value))}),[onChange]),cycleColorSpace=(0,react.useCallback)((()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||"";setValue(update),onChange(update)}),[color,colorSpace,onChange]);return{value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\s*/,"").toLowerCase(),ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1,argType})=>{let throttledOnChange=(0,react.useCallback)(throttle_default()(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,throttledOnChange),{presets,addPreset}=((presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=(0,react.useState)(currentColor?.valid?[currentColor]:[]);(0,react.useEffect)((()=>{void 0===currentColor&&setSelectedColors([])}),[currentColor]);let presets=(0,react.useMemo)((()=>(presetColors||[]).map((preset=>"string"==typeof preset?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color))).concat(selectedColors).filter(Boolean).slice(-27)),[presetColors,selectedColors]),addPreset=(0,react.useCallback)((color=>{color?.valid&&(presets.some((preset=>id(preset[colorSpace])===id(color[colorSpace])))||setSelectedColors((arr=>arr.concat(color))))}),[colorSpace,presets]);return{presets,addPreset}})(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace],readonly=!!argType?.table?.readonly;return react.createElement(Wrapper,{"aria-readonly":readonly},react.createElement(PickerTooltip,{startOpen,trigger:readonly?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:react.createElement(TooltipContent,null,react.createElement(Picker,{color:"transparent"===realValue?"#000000":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&react.createElement(Swatches,null,presets.map(((preset,index)=>react.createElement(components_dist.kR,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:react.createElement(Note,{note:preset.keyword||preset.value})},react.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)}))))))},react.createElement(Swatch,{value:realValue,style:{margin:4}})),react.createElement(Input,{id:(0,chunk_GWAJ4KRU.Z)(name),value,onChange:e=>updateValue(e.target.value),onFocus:e=>e.target.select(),readOnly:readonly,placeholder:"Choose color..."}),value?react.createElement(ToggleIcon,{onClick:cycleColorSpace}):null)},Color_default=ColorControl}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/1106.ffac6997.iframe.bundle.js b/refs/pull/1122/merge/1106.ffac6997.iframe.bundle.js new file mode 100644 index 0000000000..84526fad14 --- /dev/null +++ b/refs/pull/1122/merge/1106.ffac6997.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[1106],{"./node_modules/next/dist/client/components/router-reducer/router-reducer-types.js":(module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{ACTION_FAST_REFRESH:function(){return ACTION_FAST_REFRESH},ACTION_NAVIGATE:function(){return ACTION_NAVIGATE},ACTION_PREFETCH:function(){return ACTION_PREFETCH},ACTION_REFRESH:function(){return ACTION_REFRESH},ACTION_RESTORE:function(){return ACTION_RESTORE},ACTION_SERVER_ACTION:function(){return ACTION_SERVER_ACTION},ACTION_SERVER_PATCH:function(){return ACTION_SERVER_PATCH},PrefetchCacheEntryStatus:function(){return PrefetchCacheEntryStatus},PrefetchKind:function(){return PrefetchKind},isThenable:function(){return isThenable}});const ACTION_REFRESH="refresh",ACTION_NAVIGATE="navigate",ACTION_RESTORE="restore",ACTION_SERVER_PATCH="server-patch",ACTION_PREFETCH="prefetch",ACTION_FAST_REFRESH="fast-refresh",ACTION_SERVER_ACTION="server-action";var PrefetchKind,PrefetchCacheEntryStatus;function isThenable(value){return value&&("object"==typeof value||"function"==typeof value)&&"function"==typeof value.then}!function(PrefetchKind){PrefetchKind.AUTO="auto",PrefetchKind.FULL="full",PrefetchKind.TEMPORARY="temporary"}(PrefetchKind||(PrefetchKind={})),function(PrefetchCacheEntryStatus){PrefetchCacheEntryStatus.fresh="fresh",PrefetchCacheEntryStatus.reusable="reusable",PrefetchCacheEntryStatus.expired="expired",PrefetchCacheEntryStatus.stale="stale"}(PrefetchCacheEntryStatus||(PrefetchCacheEntryStatus={})),("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},"./node_modules/next/dist/client/get-domain-locale.js":(module,exports,__webpack_require__)=>{"use strict";var process=__webpack_require__("./node_modules/process/browser.js");Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}});const _normalizetrailingslash=__webpack_require__("./node_modules/next/dist/client/normalize-trailing-slash.js"),basePath=process.env.__NEXT_ROUTER_BASEPATH||"";function getDomainLocale(path,locale,locales,domainLocales){if(process.env.__NEXT_I18N_SUPPORT){const normalizeLocalePath=__webpack_require__("./node_modules/next/dist/client/normalize-locale-path.js").normalizeLocalePath,detectDomainLocale=__webpack_require__("./node_modules/next/dist/client/detect-domain-locale.js").detectDomainLocale,target=locale||normalizeLocalePath(path,locales).detectedLocale,domain=detectDomainLocale(domainLocales,void 0,target);if(domain){const proto="http"+(domain.http?"":"s")+"://",finalLocale=target===domain.defaultLocale?"":"/"+target;return""+proto+domain.domain+(0,_normalizetrailingslash.normalizePathTrailingSlash)(""+basePath+finalLocale+path)}return!1}return!1}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},"./node_modules/next/dist/client/link.js":(module,exports,__webpack_require__)=>{var process=__webpack_require__("./node_modules/process/browser.js");Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _default}});const _interop_require_default=__webpack_require__("./node_modules/@swc/helpers/cjs/_interop_require_default.cjs"),_jsxruntime=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),_react=_interop_require_default._(__webpack_require__("./node_modules/next/dist/compiled/react/index.js")),_resolvehref=__webpack_require__("./node_modules/next/dist/client/resolve-href.js"),_islocalurl=__webpack_require__("./node_modules/next/dist/shared/lib/router/utils/is-local-url.js"),_formaturl=__webpack_require__("./node_modules/next/dist/shared/lib/router/utils/format-url.js"),_utils=__webpack_require__("./node_modules/next/dist/shared/lib/utils.js"),_addlocale=__webpack_require__("./node_modules/next/dist/client/add-locale.js"),_routercontextsharedruntime=__webpack_require__("./node_modules/next/dist/shared/lib/router-context.shared-runtime.js"),_approutercontextsharedruntime=__webpack_require__("./node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js"),_useintersection=__webpack_require__("./node_modules/next/dist/client/use-intersection.js"),_getdomainlocale=__webpack_require__("./node_modules/next/dist/client/get-domain-locale.js"),_addbasepath=__webpack_require__("./node_modules/next/dist/client/add-base-path.js"),_routerreducertypes=__webpack_require__("./node_modules/next/dist/client/components/router-reducer/router-reducer-types.js"),prefetched=new Set;function prefetch(router,href,as,options,appOptions,isAppRouter){if("undefined"==typeof window)return;if(!isAppRouter&&!(0,_islocalurl.isLocalURL)(href))return;if(!options.bypassPrefetchedCheck){const locale=void 0!==options.locale?options.locale:"locale"in router?router.locale:void 0,prefetchedKey=href+"%"+as+"%"+locale;if(prefetched.has(prefetchedKey))return;prefetched.add(prefetchedKey)}(async()=>isAppRouter?router.prefetch(href,appOptions):router.prefetch(href,as,options))().catch((err=>{0}))}function formatStringOrUrl(urlObjOrString){return"string"==typeof urlObjOrString?urlObjOrString:(0,_formaturl.formatUrl)(urlObjOrString)}const _default=_react.default.forwardRef((function LinkComponent(props,forwardedRef){let children;const{href:hrefProp,as:asProp,children:childrenProp,prefetch:prefetchProp=null,passHref,replace,shallow,scroll,locale,onClick,onMouseEnter:onMouseEnterProp,onTouchStart:onTouchStartProp,legacyBehavior=!1,...restProps}=props;children=childrenProp,!legacyBehavior||"string"!=typeof children&&"number"!=typeof children||(children=(0,_jsxruntime.jsx)("a",{children}));const pagesRouter=_react.default.useContext(_routercontextsharedruntime.RouterContext),appRouter=_react.default.useContext(_approutercontextsharedruntime.AppRouterContext),router=null!=pagesRouter?pagesRouter:appRouter,isAppRouter=!pagesRouter,prefetchEnabled=!1!==prefetchProp,appPrefetchKind=null===prefetchProp?_routerreducertypes.PrefetchKind.AUTO:_routerreducertypes.PrefetchKind.FULL;const{href,as}=_react.default.useMemo((()=>{if(!pagesRouter){const resolvedHref=formatStringOrUrl(hrefProp);return{href:resolvedHref,as:asProp?formatStringOrUrl(asProp):resolvedHref}}const[resolvedHref,resolvedAs]=(0,_resolvehref.resolveHref)(pagesRouter,hrefProp,!0);return{href:resolvedHref,as:asProp?(0,_resolvehref.resolveHref)(pagesRouter,asProp):resolvedAs||resolvedHref}}),[pagesRouter,hrefProp,asProp]),previousHref=_react.default.useRef(href),previousAs=_react.default.useRef(as);let child;legacyBehavior&&(child=_react.default.Children.only(children));const childRef=legacyBehavior?child&&"object"==typeof child&&child.ref:forwardedRef,[setIntersectionRef,isVisible,resetVisible]=(0,_useintersection.useIntersection)({rootMargin:"200px"}),setRef=_react.default.useCallback((el=>{previousAs.current===as&&previousHref.current===href||(resetVisible(),previousAs.current=as,previousHref.current=href),setIntersectionRef(el),childRef&&("function"==typeof childRef?childRef(el):"object"==typeof childRef&&(childRef.current=el))}),[as,childRef,href,resetVisible,setIntersectionRef]);_react.default.useEffect((()=>{router&&isVisible&&prefetchEnabled&&prefetch(router,href,as,{locale},{kind:appPrefetchKind},isAppRouter)}),[as,href,isVisible,locale,prefetchEnabled,null==pagesRouter?void 0:pagesRouter.locale,router,isAppRouter,appPrefetchKind]);const childProps={ref:setRef,onClick(e){legacyBehavior||"function"!=typeof onClick||onClick(e),legacyBehavior&&child.props&&"function"==typeof child.props.onClick&&child.props.onClick(e),router&&(e.defaultPrevented||function linkClicked(e,router,href,as,replace,shallow,scroll,locale,isAppRouter){const{nodeName}=e.currentTarget;if("A"===nodeName.toUpperCase()&&(function isModifiedEvent(event){const target=event.currentTarget.getAttribute("target");return target&&"_self"!==target||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey||event.nativeEvent&&2===event.nativeEvent.which}(e)||!isAppRouter&&!(0,_islocalurl.isLocalURL)(href)))return;e.preventDefault();const navigate=()=>{const routerScroll=null==scroll||scroll;"beforePopState"in router?router[replace?"replace":"push"](href,as,{shallow,locale,scroll:routerScroll}):router[replace?"replace":"push"](as||href,{scroll:routerScroll})};isAppRouter?_react.default.startTransition(navigate):navigate()}(e,router,href,as,replace,shallow,scroll,locale,isAppRouter))},onMouseEnter(e){legacyBehavior||"function"!=typeof onMouseEnterProp||onMouseEnterProp(e),legacyBehavior&&child.props&&"function"==typeof child.props.onMouseEnter&&child.props.onMouseEnter(e),router&&(!prefetchEnabled&&isAppRouter||prefetch(router,href,as,{locale,priority:!0,bypassPrefetchedCheck:!0},{kind:appPrefetchKind},isAppRouter))},onTouchStart:process.env.__NEXT_LINK_NO_TOUCH_START?void 0:function onTouchStart(e){legacyBehavior||"function"!=typeof onTouchStartProp||onTouchStartProp(e),legacyBehavior&&child.props&&"function"==typeof child.props.onTouchStart&&child.props.onTouchStart(e),router&&(!prefetchEnabled&&isAppRouter||prefetch(router,href,as,{locale,priority:!0,bypassPrefetchedCheck:!0},{kind:appPrefetchKind},isAppRouter))}};if((0,_utils.isAbsoluteUrl)(as))childProps.href=as;else if(!legacyBehavior||passHref||"a"===child.type&&!("href"in child.props)){const curLocale=void 0!==locale?locale:null==pagesRouter?void 0:pagesRouter.locale,localeDomain=(null==pagesRouter?void 0:pagesRouter.isLocaleDomain)&&(0,_getdomainlocale.getDomainLocale)(as,curLocale,null==pagesRouter?void 0:pagesRouter.locales,null==pagesRouter?void 0:pagesRouter.domainLocales);childProps.href=localeDomain||(0,_addbasepath.addBasePath)((0,_addlocale.addLocale)(as,curLocale,null==pagesRouter?void 0:pagesRouter.defaultLocale))}return legacyBehavior?_react.default.cloneElement(child,childProps):(0,_jsxruntime.jsx)("a",{...restProps,...childProps,children})}));("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},"./node_modules/next/dist/client/normalize-locale-path.js":(module,exports,__webpack_require__)=>{"use strict";var process=__webpack_require__("./node_modules/process/browser.js");Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"normalizeLocalePath",{enumerable:!0,get:function(){return normalizeLocalePath}});const normalizeLocalePath=(pathname,locales)=>process.env.__NEXT_I18N_SUPPORT?__webpack_require__("./node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js").normalizeLocalePath(pathname,locales):{pathname,detectedLocale:void 0};("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},"./node_modules/next/dist/client/use-intersection.js":(module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});const _react=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),_requestidlecallback=__webpack_require__("./node_modules/next/dist/client/request-idle-callback.js"),hasIntersectionObserver="function"==typeof IntersectionObserver,observers=new Map,idList=[];function observe(element,callback,options){const{id,observer,elements}=function createObserver(options){const id={root:options.root||null,margin:options.rootMargin||""},existing=idList.find((obj=>obj.root===id.root&&obj.margin===id.margin));let instance;if(existing&&(instance=observers.get(existing),instance))return instance;const elements=new Map,observer=new IntersectionObserver((entries=>{entries.forEach((entry=>{const callback=elements.get(entry.target),isVisible=entry.isIntersecting||entry.intersectionRatio>0;callback&&isVisible&&callback(isVisible)}))}),options);return instance={id,observer,elements},idList.push(id),observers.set(id,instance),instance}(options);return elements.set(element,callback),observer.observe(element),function unobserve(){if(elements.delete(element),observer.unobserve(element),0===elements.size){observer.disconnect(),observers.delete(id);const index=idList.findIndex((obj=>obj.root===id.root&&obj.margin===id.margin));index>-1&&idList.splice(index,1)}}}function useIntersection(param){let{rootRef,rootMargin,disabled}=param;const isDisabled=disabled||!hasIntersectionObserver,[visible,setVisible]=(0,_react.useState)(!1),elementRef=(0,_react.useRef)(null),setElement=(0,_react.useCallback)((element=>{elementRef.current=element}),[]);(0,_react.useEffect)((()=>{if(hasIntersectionObserver){if(isDisabled||visible)return;const element=elementRef.current;if(element&&element.tagName){return observe(element,(isVisible=>isVisible&&setVisible(isVisible)),{root:null==rootRef?void 0:rootRef.current,rootMargin})}}else if(!visible){const idleCallback=(0,_requestidlecallback.requestIdleCallback)((()=>setVisible(!0)));return()=>(0,_requestidlecallback.cancelIdleCallback)(idleCallback)}}),[isDisabled,rootMargin,rootRef,visible,elementRef.current]);const resetVisible=(0,_react.useCallback)((()=>{setVisible(!1)}),[]);return[setElement,visible,resetVisible]}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},"./node_modules/next/link.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/next/dist/client/link.js")}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/1644.0eb91916.iframe.bundle.js b/refs/pull/1122/merge/1644.0eb91916.iframe.bundle.js new file mode 100644 index 0000000000..7b9a4b7c72 --- /dev/null +++ b/refs/pull/1122/merge/1644.0eb91916.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 1644.0eb91916.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[1644],{"./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>_inheritsLoose});var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");function _inheritsLoose(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,(0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__.A)(t,o)}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}__webpack_require__.d(__webpack_exports__,{A:()=>_objectWithoutPropertiesLoose})},"./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}__webpack_require__.d(__webpack_exports__,{A:()=>_setPrototypeOf})},"./node_modules/classnames/index.js":(module,exports)=>{var __WEBPACK_AMD_DEFINE_RESULT__;!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes="",i=0;i{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>react_bootstrap_esm_Modal});var classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames);const canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement);var optionsSupported=!1,onceSupported=!1;try{var options={get passive(){return optionsSupported=!0},get once(){return onceSupported=optionsSupported=!0}};canUseDOM&&(window.addEventListener("test",options,options),window.removeEventListener("test",options,!0))}catch(e){}const esm_addEventListener=function addEventListener(node,eventName,handler,options){if(options&&"boolean"!=typeof options&&!onceSupported){var once=options.once,capture=options.capture,wrappedHandler=handler;!onceSupported&&once&&(wrappedHandler=handler.__once||function onceHandler(event){this.removeEventListener(eventName,onceHandler,capture),handler.call(this,event)},handler.__once=wrappedHandler),node.addEventListener(eventName,wrappedHandler,optionsSupported?options:capture)}node.addEventListener(eventName,handler,options)};function ownerDocument(node){return node&&node.ownerDocument||document}const esm_removeEventListener=function removeEventListener(node,eventName,handler,options){var capture=options&&"boolean"!=typeof options?options.capture:options;node.removeEventListener(eventName,handler,capture),handler.__once&&node.removeEventListener(eventName,handler.__once,capture)};var size;function scrollbarSize(recalc){if((!size&&0!==size||recalc)&&canUseDOM){var scrollDiv=document.createElement("div");scrollDiv.style.position="absolute",scrollDiv.style.top="-9999px",scrollDiv.style.width="50px",scrollDiv.style.height="50px",scrollDiv.style.overflow="scroll",document.body.appendChild(scrollDiv),size=scrollDiv.offsetWidth-scrollDiv.clientWidth,document.body.removeChild(scrollDiv)}return size}var react=__webpack_require__("./node_modules/next/dist/compiled/react/index.js");const esm_useCommittedRef=function useCommittedRef(value){const ref=(0,react.useRef)(value);return(0,react.useEffect)((()=>{ref.current=value}),[value]),ref};function useEventCallback(fn){const ref=esm_useCommittedRef(fn);return(0,react.useCallback)((function(...args){return ref.current&&ref.current(...args)}),[ref])}const toFnRef=ref=>ref&&"function"!=typeof ref?value=>{ref.current=value}:ref;const esm_useMergedRefs=function useMergedRefs(refA,refB){return(0,react.useMemo)((()=>function mergeRefs(refA,refB){const a=toFnRef(refA),b=toFnRef(refB);return value=>{a&&a(value),b&&b(value)}}(refA,refB)),[refA,refB])};function useWillUnmount(fn){const onUnmount=function useUpdatedRef(value){const valueRef=(0,react.useRef)(value);return valueRef.current=value,valueRef}(fn);(0,react.useEffect)((()=>()=>onUnmount.current()),[])}function getComputedStyle(node,psuedoElement){return function ownerWindow(node){var doc=ownerDocument(node);return doc&&doc.defaultView||window}(node).getComputedStyle(node,psuedoElement)}var rUpper=/([A-Z])/g;var msPattern=/^ms-/;function hyphenateStyleName(string){return function hyphenate(string){return string.replace(rUpper,"-$1").toLowerCase()}(string).replace(msPattern,"-ms-")}var supportedTransforms=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const css=function style(node,property){var css="",transforms="";if("string"==typeof property)return node.style.getPropertyValue(hyphenateStyleName(property))||getComputedStyle(node).getPropertyValue(hyphenateStyleName(property));Object.keys(property).forEach((function(key){var value=property[key];value||0===value?!function isTransform(value){return!(!value||!supportedTransforms.test(value))}(key)?css+=hyphenateStyleName(key)+": "+value+";":transforms+=key+"("+value+") ":node.style.removeProperty(hyphenateStyleName(key))})),transforms&&(css+="transform: "+transforms+";"),node.style.cssText+=";"+css};const esm_listen=function listen(node,eventName,handler,options){return esm_addEventListener(node,eventName,handler,options),function(){esm_removeEventListener(node,eventName,handler,options)}};function emulateTransitionEnd(element,duration,padding){void 0===padding&&(padding=5);var called=!1,handle=setTimeout((function(){called||function triggerEvent(node,eventName,bubbles,cancelable){if(void 0===bubbles&&(bubbles=!1),void 0===cancelable&&(cancelable=!0),node){var event=document.createEvent("HTMLEvents");event.initEvent(eventName,bubbles,cancelable),node.dispatchEvent(event)}}(element,"transitionend",!0)}),duration+padding),remove=esm_listen(element,"transitionend",(function(){called=!0}),{once:!0});return function(){clearTimeout(handle),remove()}}function transitionEnd(element,handler,duration,padding){null==duration&&(duration=function parseDuration(node){var str=css(node,"transitionDuration")||"",mult=-1===str.indexOf("ms")?1e3:1;return parseFloat(str)*mult}(element)||0);var removeEmulate=emulateTransitionEnd(element,duration,padding),remove=esm_listen(element,"transitionend",handler);return function(){removeEmulate(),remove()}}function activeElement(doc){void 0===doc&&(doc=ownerDocument());try{var active=doc.activeElement;return active&&active.nodeName?active:null}catch(e){return doc.body}}function contains(context,node){return context.contains?context.contains(node):context.compareDocumentPosition?context===node||!!(16&context.compareDocumentPosition(node)):void 0}var react_dom=__webpack_require__("./node_modules/next/dist/compiled/react-dom/index.js");const OPEN_DATA_ATTRIBUTE=function dataAttr(property){return`data-rr-ui-${property}`}("modal-open");const esm_ModalManager=class ModalManager{constructor({ownerDocument,handleContainerOverflow=!0,isRTL=!1}={}){this.handleContainerOverflow=handleContainerOverflow,this.isRTL=isRTL,this.modals=[],this.ownerDocument=ownerDocument}getScrollbarWidth(){return function getBodyScrollbarWidth(ownerDocument=document){const window=ownerDocument.defaultView;return Math.abs(window.innerWidth-ownerDocument.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(_modal){}removeModalAttributes(_modal){}setContainerStyle(containerState){const style={overflow:"hidden"},paddingProp=this.isRTL?"paddingLeft":"paddingRight",container=this.getElement();containerState.style={overflow:container.style.overflow,[paddingProp]:container.style[paddingProp]},containerState.scrollBarWidth&&(style[paddingProp]=`${parseInt(css(container,paddingProp)||"0",10)+containerState.scrollBarWidth}px`),container.setAttribute(OPEN_DATA_ATTRIBUTE,""),css(container,style)}reset(){[...this.modals].forEach((m=>this.remove(m)))}removeContainerStyle(containerState){const container=this.getElement();container.removeAttribute(OPEN_DATA_ATTRIBUTE),Object.assign(container.style,containerState.style)}add(modal){let modalIdx=this.modals.indexOf(modal);return-1!==modalIdx?modalIdx:(modalIdx=this.modals.length,this.modals.push(modal),this.setModalAttributes(modal),0!==modalIdx||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),modalIdx)}remove(modal){const modalIdx=this.modals.indexOf(modal);-1!==modalIdx&&(this.modals.splice(modalIdx,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(modal))}isTopModal(modal){return!!this.modals.length&&this.modals[this.modals.length-1]===modal}},Context=(0,react.createContext)(canUseDOM?window:void 0);Context.Provider;function useWindow(){return(0,react.useContext)(Context)}const resolveContainerRef=(ref,document)=>canUseDOM?null==ref?(document||ownerDocument()).body:("function"==typeof ref&&(ref=ref()),ref&&"current"in ref&&(ref=ref.current),ref&&("nodeType"in ref||ref.getBoundingClientRect)?ref:null):null;const isReactNative=void 0!==__webpack_require__.g&&__webpack_require__.g.navigator&&"ReactNative"===__webpack_require__.g.navigator.product,useIsomorphicEffect="undefined"!=typeof document||isReactNative?react.useLayoutEffect:react.useEffect;const esm_NoopTransition=function NoopTransition({children,in:inProp,onExited,mountOnEnter,unmountOnExit}){const ref=(0,react.useRef)(null),hasEnteredRef=(0,react.useRef)(inProp),handleExited=useEventCallback(onExited);(0,react.useEffect)((()=>{inProp?hasEnteredRef.current=!0:handleExited(ref.current)}),[inProp,handleExited]);const combinedRef=esm_useMergedRefs(ref,children.ref),child=(0,react.cloneElement)(children,{ref:combinedRef});return inProp?child:unmountOnExit||!hasEnteredRef.current&&mountOnEnter?null:child};function getReactVersion(){const parts=react.version.split(".");return{major:+parts[0],minor:+parts[1],patch:+parts[2]}}const _excluded=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function useRTGTransitionProps(_ref){let{onEnter,onEntering,onEntered,onExit,onExiting,onExited,addEndListener,children}=_ref,props=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(_ref,_excluded);const{major}=getReactVersion(),childRef=major>=19?children.props.ref:children.ref,nodeRef=(0,react.useRef)(null),mergedRef=esm_useMergedRefs(nodeRef,"function"==typeof children?null:childRef),normalize=callback=>param=>{callback&&nodeRef.current&&callback(nodeRef.current,param)},handleEnter=(0,react.useCallback)(normalize(onEnter),[onEnter]),handleEntering=(0,react.useCallback)(normalize(onEntering),[onEntering]),handleEntered=(0,react.useCallback)(normalize(onEntered),[onEntered]),handleExit=(0,react.useCallback)(normalize(onExit),[onExit]),handleExiting=(0,react.useCallback)(normalize(onExiting),[onExiting]),handleExited=(0,react.useCallback)(normalize(onExited),[onExited]),handleAddEndListener=(0,react.useCallback)(normalize(addEndListener),[addEndListener]);return Object.assign({},props,{nodeRef},onEnter&&{onEnter:handleEnter},onEntering&&{onEntering:handleEntering},onEntered&&{onEntered:handleEntered},onExit&&{onExit:handleExit},onExiting&&{onExiting:handleExiting},onExited&&{onExited:handleExited},addEndListener&&{addEndListener:handleAddEndListener},{children:"function"==typeof children?(status,innerProps)=>children(status,Object.assign({},innerProps,{ref:mergedRef})):(0,react.cloneElement)(children,{ref:mergedRef})})}var jsx_runtime=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js");const RTGTransition_excluded=["component"];const esm_RTGTransition=react.forwardRef(((_ref,ref)=>{let{component:Component}=_ref;const transitionProps=useRTGTransitionProps(function RTGTransition_objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(_ref,RTGTransition_excluded));return(0,jsx_runtime.jsx)(Component,Object.assign({ref},transitionProps))}));function ImperativeTransition({children,in:inProp,onExited,onEntered,transition}){const[exited,setExited]=(0,react.useState)(!inProp);inProp&&exited&&setExited(!1);const ref=function useTransition({in:inProp,onTransition}){const ref=(0,react.useRef)(null),isInitialRef=(0,react.useRef)(!0),handleTransition=useEventCallback(onTransition);return useIsomorphicEffect((()=>{if(!ref.current)return;let stale=!1;return handleTransition({in:inProp,element:ref.current,initial:isInitialRef.current,isStale:()=>stale}),()=>{stale=!0}}),[inProp,handleTransition]),useIsomorphicEffect((()=>(isInitialRef.current=!1,()=>{isInitialRef.current=!0})),[]),ref}({in:!!inProp,onTransition:options=>{Promise.resolve(transition(options)).then((()=>{options.isStale()||(options.in?null==onEntered||onEntered(options.element,options.initial):(setExited(!0),null==onExited||onExited(options.element)))}),(error=>{throw options.in||setExited(!0),error}))}}),combinedRef=esm_useMergedRefs(ref,children.ref);return exited&&!inProp?null:(0,react.cloneElement)(children,{ref:combinedRef})}function renderTransition(component,runTransition,props){return component?(0,jsx_runtime.jsx)(esm_RTGTransition,Object.assign({},props,{component})):runTransition?(0,jsx_runtime.jsx)(ImperativeTransition,Object.assign({},props,{transition:runTransition})):(0,jsx_runtime.jsx)(esm_NoopTransition,Object.assign({},props))}const Modal_excluded=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let manager;function useModalManager(provided){const window=useWindow(),modalManager=provided||function getManager(window){return manager||(manager=new esm_ModalManager({ownerDocument:null==window?void 0:window.document})),manager}(window),modal=(0,react.useRef)({dialog:null,backdrop:null});return Object.assign(modal.current,{add:()=>modalManager.add(modal.current),remove:()=>modalManager.remove(modal.current),isTopModal:()=>modalManager.isTopModal(modal.current),setDialogRef:(0,react.useCallback)((ref=>{modal.current.dialog=ref}),[]),setBackdropRef:(0,react.useCallback)((ref=>{modal.current.backdrop=ref}),[])})}const Modal=(0,react.forwardRef)(((_ref,ref)=>{let{show=!1,role="dialog",className,style,children,backdrop=!0,keyboard=!0,onBackdropClick,onEscapeKeyDown,transition,runTransition,backdropTransition,runBackdropTransition,autoFocus=!0,enforceFocus=!0,restoreFocus=!0,restoreFocusOptions,renderDialog,renderBackdrop=props=>(0,jsx_runtime.jsx)("div",Object.assign({},props)),manager:providedManager,container:containerRef,onShow,onHide=()=>{},onExit,onExited,onExiting,onEnter,onEntering,onEntered}=_ref,rest=function Modal_objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(_ref,Modal_excluded);const ownerWindow=useWindow(),container=function useWaitForDOMRef(ref,onResolved){const window=useWindow(),[resolvedRef,setRef]=(0,react.useState)((()=>resolveContainerRef(ref,null==window?void 0:window.document)));if(!resolvedRef){const earlyRef=resolveContainerRef(ref);earlyRef&&setRef(earlyRef)}return(0,react.useEffect)((()=>{onResolved&&resolvedRef&&onResolved(resolvedRef)}),[onResolved,resolvedRef]),(0,react.useEffect)((()=>{const nextRef=resolveContainerRef(ref);nextRef!==resolvedRef&&setRef(nextRef)}),[ref,resolvedRef]),resolvedRef}(containerRef),modal=useModalManager(providedManager),isMounted=function useMounted(){const mounted=(0,react.useRef)(!0),isMounted=(0,react.useRef)((()=>mounted.current));return(0,react.useEffect)((()=>(mounted.current=!0,()=>{mounted.current=!1})),[]),isMounted.current}(),prevShow=function usePrevious(value){const ref=(0,react.useRef)(null);return(0,react.useEffect)((()=>{ref.current=value})),ref.current}(show),[exited,setExited]=(0,react.useState)(!show),lastFocusRef=(0,react.useRef)(null);(0,react.useImperativeHandle)(ref,(()=>modal),[modal]),canUseDOM&&!prevShow&&show&&(lastFocusRef.current=activeElement(null==ownerWindow?void 0:ownerWindow.document)),show&&exited&&setExited(!1);const handleShow=useEventCallback((()=>{if(modal.add(),removeKeydownListenerRef.current=esm_listen(document,"keydown",handleDocumentKeyDown),removeFocusListenerRef.current=esm_listen(document,"focus",(()=>setTimeout(handleEnforceFocus)),!0),onShow&&onShow(),autoFocus){var _modal$dialog$ownerDo,_modal$dialog;const currentActiveElement=activeElement(null!=(_modal$dialog$ownerDo=null==(_modal$dialog=modal.dialog)?void 0:_modal$dialog.ownerDocument)?_modal$dialog$ownerDo:null==ownerWindow?void 0:ownerWindow.document);modal.dialog&¤tActiveElement&&!contains(modal.dialog,currentActiveElement)&&(lastFocusRef.current=currentActiveElement,modal.dialog.focus())}})),handleHide=useEventCallback((()=>{var _lastFocusRef$current;(modal.remove(),null==removeKeydownListenerRef.current||removeKeydownListenerRef.current(),null==removeFocusListenerRef.current||removeFocusListenerRef.current(),restoreFocus)&&(null==(_lastFocusRef$current=lastFocusRef.current)||null==_lastFocusRef$current.focus||_lastFocusRef$current.focus(restoreFocusOptions),lastFocusRef.current=null)}));(0,react.useEffect)((()=>{show&&container&&handleShow()}),[show,container,handleShow]),(0,react.useEffect)((()=>{exited&&handleHide()}),[exited,handleHide]),useWillUnmount((()=>{handleHide()}));const handleEnforceFocus=useEventCallback((()=>{if(!enforceFocus||!isMounted()||!modal.isTopModal())return;const currentActiveElement=activeElement(null==ownerWindow?void 0:ownerWindow.document);modal.dialog&¤tActiveElement&&!contains(modal.dialog,currentActiveElement)&&modal.dialog.focus()})),handleBackdropClick=useEventCallback((e=>{e.target===e.currentTarget&&(null==onBackdropClick||onBackdropClick(e),!0===backdrop&&onHide())})),handleDocumentKeyDown=useEventCallback((e=>{keyboard&&function isEscKey(e){return"Escape"===e.code||27===e.keyCode}(e)&&modal.isTopModal()&&(null==onEscapeKeyDown||onEscapeKeyDown(e),e.defaultPrevented||onHide())})),removeFocusListenerRef=(0,react.useRef)(),removeKeydownListenerRef=(0,react.useRef)();if(!container)return null;const dialogProps=Object.assign({role,ref:modal.setDialogRef,"aria-modal":"dialog"===role||void 0},rest,{style,className,tabIndex:-1});let dialog=renderDialog?renderDialog(dialogProps):(0,jsx_runtime.jsx)("div",Object.assign({},dialogProps,{children:react.cloneElement(children,{role:"document"})}));dialog=renderTransition(transition,runTransition,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!show,onExit,onExiting,onExited:(...args)=>{setExited(!0),null==onExited||onExited(...args)},onEnter,onEntering,onEntered,children:dialog});let backdropElement=null;return backdrop&&(backdropElement=renderBackdrop({ref:modal.setBackdropRef,onClick:handleBackdropClick}),backdropElement=renderTransition(backdropTransition,runBackdropTransition,{in:!!show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:backdropElement})),(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:react_dom.createPortal((0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[backdropElement,dialog]}),container)})}));Modal.displayName="Modal";const esm_Modal=Object.assign(Modal,{Manager:esm_ModalManager});var toArray=Function.prototype.bind.call(Function.prototype.call,[].slice);function qsa(element,selector){return toArray(element.querySelectorAll(selector))}function replaceClassName(origClass,classToRemove){return origClass.replace(new RegExp("(^|\\s)"+classToRemove+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Selector_FIXED_CONTENT=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Selector_STICKY_CONTENT=".sticky-top",Selector_NAVBAR_TOGGLER=".navbar-toggler";class BootstrapModalManager extends esm_ModalManager{adjustAndStore(prop,element,adjust){const actual=element.style[prop];element.dataset[prop]=actual,css(element,{[prop]:`${parseFloat(css(element,prop))+adjust}px`})}restore(prop,element){const value=element.dataset[prop];void 0!==value&&(delete element.dataset[prop],css(element,{[prop]:value}))}setContainerStyle(containerState){super.setContainerStyle(containerState);const container=this.getElement();if(function addClass(element,className){element.classList?element.classList.add(className):function hasClass(element,className){return element.classList?!!className&&element.classList.contains(className):-1!==(" "+(element.className.baseVal||element.className)+" ").indexOf(" "+className+" ")}(element,className)||("string"==typeof element.className?element.className=element.className+" "+className:element.setAttribute("class",(element.className&&element.className.baseVal||"")+" "+className))}(container,"modal-open"),!containerState.scrollBarWidth)return;const paddingProp=this.isRTL?"paddingLeft":"paddingRight",marginProp=this.isRTL?"marginLeft":"marginRight";qsa(container,Selector_FIXED_CONTENT).forEach((el=>this.adjustAndStore(paddingProp,el,containerState.scrollBarWidth))),qsa(container,Selector_STICKY_CONTENT).forEach((el=>this.adjustAndStore(marginProp,el,-containerState.scrollBarWidth))),qsa(container,Selector_NAVBAR_TOGGLER).forEach((el=>this.adjustAndStore(marginProp,el,containerState.scrollBarWidth)))}removeContainerStyle(containerState){super.removeContainerStyle(containerState);const container=this.getElement();!function removeClass(element,className){element.classList?element.classList.remove(className):"string"==typeof element.className?element.className=replaceClassName(element.className,className):element.setAttribute("class",replaceClassName(element.className&&element.className.baseVal||"",className))}(container,"modal-open");const paddingProp=this.isRTL?"paddingLeft":"paddingRight",marginProp=this.isRTL?"marginLeft":"marginRight";qsa(container,Selector_FIXED_CONTENT).forEach((el=>this.restore(paddingProp,el))),qsa(container,Selector_STICKY_CONTENT).forEach((el=>this.restore(marginProp,el))),qsa(container,Selector_NAVBAR_TOGGLER).forEach((el=>this.restore(marginProp,el)))}}let sharedManager;var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),inheritsLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");const config_disabled=!1,TransitionGroupContext=react.createContext(null);var ENTERING="entering",ENTERED="entered",Transition=function(_React$Component){function Transition(props,context){var _this;_this=_React$Component.call(this,props,context)||this;var initialStatus,appear=context&&!context.isMounting?props.enter:props.appear;return _this.appearStatus=null,props.in?appear?(initialStatus="exited",_this.appearStatus="entering"):initialStatus="entered":initialStatus=props.unmountOnExit||props.mountOnEnter?"unmounted":"exited",_this.state={status:initialStatus},_this.nextCallback=null,_this}(0,inheritsLoose.A)(Transition,_React$Component),Transition.getDerivedStateFromProps=function getDerivedStateFromProps(_ref,prevState){return _ref.in&&"unmounted"===prevState.status?{status:"exited"}:null};var _proto=Transition.prototype;return _proto.componentDidMount=function componentDidMount(){this.updateStatus(!0,this.appearStatus)},_proto.componentDidUpdate=function componentDidUpdate(prevProps){var nextStatus=null;if(prevProps!==this.props){var status=this.state.status;this.props.in?"entering"!==status&&"entered"!==status&&(nextStatus="entering"):"entering"!==status&&"entered"!==status||(nextStatus="exiting")}this.updateStatus(!1,nextStatus)},_proto.componentWillUnmount=function componentWillUnmount(){this.cancelNextCallback()},_proto.getTimeouts=function getTimeouts(){var exit,enter,appear,timeout=this.props.timeout;return exit=enter=appear=timeout,null!=timeout&&"number"!=typeof timeout&&(exit=timeout.exit,enter=timeout.enter,appear=void 0!==timeout.appear?timeout.appear:enter),{exit,enter,appear}},_proto.updateStatus=function updateStatus(mounting,nextStatus){if(void 0===mounting&&(mounting=!1),null!==nextStatus)if(this.cancelNextCallback(),"entering"===nextStatus){if(this.props.unmountOnExit||this.props.mountOnEnter){var node=this.props.nodeRef?this.props.nodeRef.current:react_dom.findDOMNode(this);node&&function forceReflow(node){node.scrollTop}(node)}this.performEnter(mounting)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},_proto.performEnter=function performEnter(mounting){var _this2=this,enter=this.props.enter,appearing=this.context?this.context.isMounting:mounting,_ref2=this.props.nodeRef?[appearing]:[react_dom.findDOMNode(this),appearing],maybeNode=_ref2[0],maybeAppearing=_ref2[1],timeouts=this.getTimeouts(),enterTimeout=appearing?timeouts.appear:timeouts.enter;!mounting&&!enter||config_disabled?this.safeSetState({status:"entered"},(function(){_this2.props.onEntered(maybeNode)})):(this.props.onEnter(maybeNode,maybeAppearing),this.safeSetState({status:"entering"},(function(){_this2.props.onEntering(maybeNode,maybeAppearing),_this2.onTransitionEnd(enterTimeout,(function(){_this2.safeSetState({status:"entered"},(function(){_this2.props.onEntered(maybeNode,maybeAppearing)}))}))})))},_proto.performExit=function performExit(){var _this3=this,exit=this.props.exit,timeouts=this.getTimeouts(),maybeNode=this.props.nodeRef?void 0:react_dom.findDOMNode(this);exit&&!config_disabled?(this.props.onExit(maybeNode),this.safeSetState({status:"exiting"},(function(){_this3.props.onExiting(maybeNode),_this3.onTransitionEnd(timeouts.exit,(function(){_this3.safeSetState({status:"exited"},(function(){_this3.props.onExited(maybeNode)}))}))}))):this.safeSetState({status:"exited"},(function(){_this3.props.onExited(maybeNode)}))},_proto.cancelNextCallback=function cancelNextCallback(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},_proto.safeSetState=function safeSetState(nextState,callback){callback=this.setNextCallback(callback),this.setState(nextState,callback)},_proto.setNextCallback=function setNextCallback(callback){var _this4=this,active=!0;return this.nextCallback=function(event){active&&(active=!1,_this4.nextCallback=null,callback(event))},this.nextCallback.cancel=function(){active=!1},this.nextCallback},_proto.onTransitionEnd=function onTransitionEnd(timeout,handler){this.setNextCallback(handler);var node=this.props.nodeRef?this.props.nodeRef.current:react_dom.findDOMNode(this),doesNotHaveTimeoutOrListener=null==timeout&&!this.props.addEndListener;if(node&&!doesNotHaveTimeoutOrListener){if(this.props.addEndListener){var _ref3=this.props.nodeRef?[this.nextCallback]:[node,this.nextCallback],maybeNode=_ref3[0],maybeNextCallback=_ref3[1];this.props.addEndListener(maybeNode,maybeNextCallback)}null!=timeout&&setTimeout(this.nextCallback,timeout)}else setTimeout(this.nextCallback,0)},_proto.render=function render(){var status=this.state.status;if("unmounted"===status)return null;var _this$props=this.props,children=_this$props.children,childProps=(_this$props.in,_this$props.mountOnEnter,_this$props.unmountOnExit,_this$props.appear,_this$props.enter,_this$props.exit,_this$props.timeout,_this$props.addEndListener,_this$props.onEnter,_this$props.onEntering,_this$props.onEntered,_this$props.onExit,_this$props.onExiting,_this$props.onExited,_this$props.nodeRef,(0,objectWithoutPropertiesLoose.A)(_this$props,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return react.createElement(TransitionGroupContext.Provider,{value:null},"function"==typeof children?children(status,childProps):react.cloneElement(react.Children.only(children),childProps))},Transition}(react.Component);function noop(){}Transition.contextType=TransitionGroupContext,Transition.propTypes={},Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},Transition.UNMOUNTED="unmounted",Transition.EXITED="exited",Transition.ENTERING="entering",Transition.ENTERED="entered",Transition.EXITING="exiting";const esm_Transition=Transition;function transitionEndListener_parseDuration(node,property){const str=css(node,property)||"",mult=-1===str.indexOf("ms")?1e3:1;return parseFloat(str)*mult}function transitionEndListener(element,handler){const duration=transitionEndListener_parseDuration(element,"transitionDuration"),delay=transitionEndListener_parseDuration(element,"transitionDelay"),remove=transitionEnd(element,(e=>{e.target===element&&(remove(),handler(e))}),duration+delay)}const esm_TransitionWrapper=react.forwardRef((({onEnter,onEntering,onEntered,onExit,onExiting,onExited,addEndListener,children,childRef,...props},ref)=>{const nodeRef=(0,react.useRef)(null),mergedRef=esm_useMergedRefs(nodeRef,childRef),attachRef=r=>{mergedRef(function safeFindDOMNode(componentOrElement){return componentOrElement&&"setState"in componentOrElement?react_dom.findDOMNode(componentOrElement):null!=componentOrElement?componentOrElement:null}(r))},normalize=callback=>param=>{callback&&nodeRef.current&&callback(nodeRef.current,param)},handleEnter=(0,react.useCallback)(normalize(onEnter),[onEnter]),handleEntering=(0,react.useCallback)(normalize(onEntering),[onEntering]),handleEntered=(0,react.useCallback)(normalize(onEntered),[onEntered]),handleExit=(0,react.useCallback)(normalize(onExit),[onExit]),handleExiting=(0,react.useCallback)(normalize(onExiting),[onExiting]),handleExited=(0,react.useCallback)(normalize(onExited),[onExited]),handleAddEndListener=(0,react.useCallback)(normalize(addEndListener),[addEndListener]);return(0,jsx_runtime.jsx)(esm_Transition,{ref,...props,onEnter:handleEnter,onEntered:handleEntered,onEntering:handleEntering,onExit:handleExit,onExited:handleExited,onExiting:handleExiting,addEndListener:handleAddEndListener,nodeRef,children:"function"==typeof children?(status,innerProps)=>children(status,{...innerProps,ref:attachRef}):react.cloneElement(children,{ref:attachRef})})})),fadeStyles={[ENTERING]:"show",[ENTERED]:"show"},Fade=react.forwardRef((({className,children,transitionClasses={},onEnter,...rest},ref)=>{const props={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...rest},handleEnter=(0,react.useCallback)(((node,isAppearing)=>{!function triggerBrowserReflow(node){node.offsetHeight}(node),null==onEnter||onEnter(node,isAppearing)}),[onEnter]),{major}=getReactVersion(),childRef=major>=19?children.props.ref:children.ref;return(0,jsx_runtime.jsx)(esm_TransitionWrapper,{ref,addEndListener:transitionEndListener,...props,onEnter:handleEnter,childRef,children:(status,innerProps)=>react.cloneElement(children,{...innerProps,className:classnames_default()("fade",className,children.props.className,fadeStyles[status],transitionClasses[status])})})}));Fade.displayName="Fade";const esm_Fade=Fade,DEFAULT_BREAKPOINTS=["xxl","xl","lg","md","sm","xs"],ThemeContext=react.createContext({prefixes:{},breakpoints:DEFAULT_BREAKPOINTS,minBreakpoint:"xs"}),{Consumer,Provider}=ThemeContext;function useBootstrapPrefix(prefix,defaultPrefix){const{prefixes}=(0,react.useContext)(ThemeContext);return prefix||prefixes[defaultPrefix]||defaultPrefix}const ModalBody=react.forwardRef((({className,bsPrefix,as:Component="div",...props},ref)=>(bsPrefix=useBootstrapPrefix(bsPrefix,"modal-body"),(0,jsx_runtime.jsx)(Component,{ref,className:classnames_default()(className,bsPrefix),...props}))));ModalBody.displayName="ModalBody";const esm_ModalBody=ModalBody,esm_ModalContext=react.createContext({onHide(){}}),ModalDialog=react.forwardRef((({bsPrefix,className,contentClassName,centered,size,fullscreen,children,scrollable,...props},ref)=>{const dialogClass=`${bsPrefix=useBootstrapPrefix(bsPrefix,"modal")}-dialog`,fullScreenClass="string"==typeof fullscreen?`${bsPrefix}-fullscreen-${fullscreen}`:`${bsPrefix}-fullscreen`;return(0,jsx_runtime.jsx)("div",{...props,ref,className:classnames_default()(dialogClass,className,size&&`${bsPrefix}-${size}`,centered&&`${dialogClass}-centered`,scrollable&&`${dialogClass}-scrollable`,fullscreen&&fullScreenClass),children:(0,jsx_runtime.jsx)("div",{className:classnames_default()(`${bsPrefix}-content`,contentClassName),children})})}));ModalDialog.displayName="ModalDialog";const esm_ModalDialog=ModalDialog,ModalFooter=react.forwardRef((({className,bsPrefix,as:Component="div",...props},ref)=>(bsPrefix=useBootstrapPrefix(bsPrefix,"modal-footer"),(0,jsx_runtime.jsx)(Component,{ref,className:classnames_default()(className,bsPrefix),...props}))));ModalFooter.displayName="ModalFooter";const esm_ModalFooter=ModalFooter;var prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types);const propTypes={"aria-label":prop_types_default().string,onClick:prop_types_default().func,variant:prop_types_default().oneOf(["white"])},CloseButton=react.forwardRef((({className,variant,"aria-label":ariaLabel="Close",...props},ref)=>(0,jsx_runtime.jsx)("button",{ref,type:"button",className:classnames_default()("btn-close",variant&&`btn-close-${variant}`,className),"aria-label":ariaLabel,...props})));CloseButton.displayName="CloseButton",CloseButton.propTypes=propTypes;const esm_CloseButton=CloseButton,esm_AbstractModalHeader=react.forwardRef((({closeLabel="Close",closeVariant,closeButton=!1,onHide,children,...props},ref)=>{const context=(0,react.useContext)(esm_ModalContext),handleClick=useEventCallback((()=>{null==context||context.onHide(),null==onHide||onHide()}));return(0,jsx_runtime.jsxs)("div",{ref,...props,children:[children,closeButton&&(0,jsx_runtime.jsx)(esm_CloseButton,{"aria-label":closeLabel,variant:closeVariant,onClick:handleClick})]})})),ModalHeader=react.forwardRef((({bsPrefix,className,closeLabel="Close",closeButton=!1,...props},ref)=>(bsPrefix=useBootstrapPrefix(bsPrefix,"modal-header"),(0,jsx_runtime.jsx)(esm_AbstractModalHeader,{ref,...props,className:classnames_default()(className,bsPrefix),closeLabel,closeButton}))));ModalHeader.displayName="ModalHeader";const esm_ModalHeader=ModalHeader,DivStyledAsH4=(className="h4",react.forwardRef(((p,ref)=>(0,jsx_runtime.jsx)("div",{...p,ref,className:classnames_default()(p.className,className)}))));var className;const ModalTitle=react.forwardRef((({className,bsPrefix,as:Component=DivStyledAsH4,...props},ref)=>(bsPrefix=useBootstrapPrefix(bsPrefix,"modal-title"),(0,jsx_runtime.jsx)(Component,{ref,className:classnames_default()(className,bsPrefix),...props}))));ModalTitle.displayName="ModalTitle";const esm_ModalTitle=ModalTitle;function DialogTransition(props){return(0,jsx_runtime.jsx)(esm_Fade,{...props,timeout:null})}function BackdropTransition(props){return(0,jsx_runtime.jsx)(esm_Fade,{...props,timeout:null})}const Modal_Modal=react.forwardRef((({bsPrefix,className,style,dialogClassName,contentClassName,children,dialogAs:Dialog=esm_ModalDialog,"data-bs-theme":dataBsTheme,"aria-labelledby":ariaLabelledby,"aria-describedby":ariaDescribedby,"aria-label":ariaLabel,show=!1,animation=!0,backdrop=!0,keyboard=!0,onEscapeKeyDown,onShow,onHide,container,autoFocus=!0,enforceFocus=!0,restoreFocus=!0,restoreFocusOptions,onEntered,onExit,onExiting,onEnter,onEntering,onExited,backdropClassName,manager:propsManager,...props},ref)=>{const[modalStyle,setStyle]=(0,react.useState)({}),[animateStaticModal,setAnimateStaticModal]=(0,react.useState)(!1),waitingForMouseUpRef=(0,react.useRef)(!1),ignoreBackdropClickRef=(0,react.useRef)(!1),removeStaticModalAnimationRef=(0,react.useRef)(null),[modal,setModalRef]=function useCallbackRef(){return(0,react.useState)(null)}(),mergedRef=esm_useMergedRefs(ref,setModalRef),handleHide=useEventCallback(onHide),isRTL=function useIsRTL(){const{dir}=(0,react.useContext)(ThemeContext);return"rtl"===dir}();bsPrefix=useBootstrapPrefix(bsPrefix,"modal");const modalContext=(0,react.useMemo)((()=>({onHide:handleHide})),[handleHide]);function getModalManager(){return propsManager||function getSharedManager(options){return sharedManager||(sharedManager=new BootstrapModalManager(options)),sharedManager}({isRTL})}function updateDialogStyle(node){if(!canUseDOM)return;const containerIsOverflowing=getModalManager().getScrollbarWidth()>0,modalIsOverflowing=node.scrollHeight>ownerDocument(node).documentElement.clientHeight;setStyle({paddingRight:containerIsOverflowing&&!modalIsOverflowing?scrollbarSize():void 0,paddingLeft:!containerIsOverflowing&&modalIsOverflowing?scrollbarSize():void 0})}const handleWindowResize=useEventCallback((()=>{modal&&updateDialogStyle(modal.dialog)}));useWillUnmount((()=>{esm_removeEventListener(window,"resize",handleWindowResize),null==removeStaticModalAnimationRef.current||removeStaticModalAnimationRef.current()}));const handleDialogMouseDown=()=>{waitingForMouseUpRef.current=!0},handleMouseUp=e=>{waitingForMouseUpRef.current&&modal&&e.target===modal.dialog&&(ignoreBackdropClickRef.current=!0),waitingForMouseUpRef.current=!1},handleStaticModalAnimation=()=>{setAnimateStaticModal(!0),removeStaticModalAnimationRef.current=transitionEnd(modal.dialog,(()=>{setAnimateStaticModal(!1)}))},handleClick=e=>{"static"!==backdrop?ignoreBackdropClickRef.current||e.target!==e.currentTarget?ignoreBackdropClickRef.current=!1:null==onHide||onHide():(e=>{e.target===e.currentTarget&&handleStaticModalAnimation()})(e)},renderBackdrop=(0,react.useCallback)((backdropProps=>(0,jsx_runtime.jsx)("div",{...backdropProps,className:classnames_default()(`${bsPrefix}-backdrop`,backdropClassName,!animation&&"show")})),[animation,backdropClassName,bsPrefix]),baseModalStyle={...style,...modalStyle};baseModalStyle.display="block";return(0,jsx_runtime.jsx)(esm_ModalContext.Provider,{value:modalContext,children:(0,jsx_runtime.jsx)(esm_Modal,{show,ref:mergedRef,backdrop,container,keyboard:!0,autoFocus,enforceFocus,restoreFocus,restoreFocusOptions,onEscapeKeyDown:e=>{keyboard?null==onEscapeKeyDown||onEscapeKeyDown(e):(e.preventDefault(),"static"===backdrop&&handleStaticModalAnimation())},onShow,onHide,onEnter:(node,isAppearing)=>{node&&updateDialogStyle(node),null==onEnter||onEnter(node,isAppearing)},onEntering:(node,isAppearing)=>{null==onEntering||onEntering(node,isAppearing),esm_addEventListener(window,"resize",handleWindowResize)},onEntered,onExit:node=>{null==removeStaticModalAnimationRef.current||removeStaticModalAnimationRef.current(),null==onExit||onExit(node)},onExiting,onExited:node=>{node&&(node.style.display=""),null==onExited||onExited(node),esm_removeEventListener(window,"resize",handleWindowResize)},manager:getModalManager(),transition:animation?DialogTransition:void 0,backdropTransition:animation?BackdropTransition:void 0,renderBackdrop,renderDialog:dialogProps=>(0,jsx_runtime.jsx)("div",{role:"dialog",...dialogProps,style:baseModalStyle,className:classnames_default()(className,bsPrefix,animateStaticModal&&`${bsPrefix}-static`,!animation&&"show"),onClick:backdrop?handleClick:void 0,onMouseUp:handleMouseUp,"data-bs-theme":dataBsTheme,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledby,"aria-describedby":ariaDescribedby,children:(0,jsx_runtime.jsx)(Dialog,{...props,onMouseDown:handleDialogMouseDown,className:dialogClassName,contentClassName,children})})})})}));Modal_Modal.displayName="Modal";const react_bootstrap_esm_Modal=Object.assign(Modal_Modal,{Body:esm_ModalBody,Header:esm_ModalHeader,Title:esm_ModalTitle,Footer:esm_ModalFooter,Dialog:esm_ModalDialog,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150})}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/1644.0eb91916.iframe.bundle.js.LICENSE.txt b/refs/pull/1122/merge/1644.0eb91916.iframe.bundle.js.LICENSE.txt new file mode 100644 index 0000000000..827f2732cb --- /dev/null +++ b/refs/pull/1122/merge/1644.0eb91916.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,5 @@ +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ diff --git a/refs/pull/1122/merge/1905.af0799ef.iframe.bundle.js b/refs/pull/1122/merge/1905.af0799ef.iframe.bundle.js new file mode 100644 index 0000000000..90487ae3a4 --- /dev/null +++ b/refs/pull/1122/merge/1905.af0799ef.iframe.bundle.js @@ -0,0 +1,18 @@ +"use strict";(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[1905],{"./node_modules/@storybook/addon-docs/dist/DocsRenderer-K4EAMTCU.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{DocsRenderer:()=>DocsRenderer});var react=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),client=__webpack_require__("./node_modules/next/dist/compiled/react-dom/client.js"),nodes=new Map,WithCallback=({callback,children})=>{let once=(0,react.useRef)();return(0,react.useLayoutEffect)((()=>{once.current!==callback&&(once.current=callback,callback())}),[callback]),children},getReactRoot=async(el,rootOptions)=>{let root=nodes.get(el);return root||(root=client.createRoot(el,rootOptions),nodes.set(el,root)),root},chunk_GWAJ4KRU=__webpack_require__("./node_modules/@storybook/addon-docs/node_modules/@storybook/blocks/dist/chunk-GWAJ4KRU.mjs"),dist=__webpack_require__("./node_modules/@storybook/theming/dist/index.mjs"),chunk_QN4WKJDJ=__webpack_require__("./node_modules/@storybook/theming/dist/chunk-QN4WKJDJ.mjs"),components_dist=__webpack_require__("./node_modules/@storybook/components/dist/index.mjs"),chunk_WDXN43AK=__webpack_require__("./node_modules/@storybook/components/dist/chunk-WDXN43AK.mjs"),polished_esm=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),icons_dist=__webpack_require__("./node_modules/@storybook/addon-docs/node_modules/@storybook/icons/dist/index.mjs"),pickBy=__webpack_require__("./node_modules/lodash/pickBy.js"),pickBy_default=__webpack_require__.n(pickBy),csf_dist=__webpack_require__("./node_modules/@storybook/csf/dist/index.mjs"),external_STORYBOOK_MODULE_CLIENT_LOGGER_=__webpack_require__("@storybook/client-logger");function n(){return n=Object.assign?Object.assign.bind():function(t){for(var n=1;n(t[n.toLowerCase()]=n,t)),{for:"htmlFor"}),o={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],a=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,_=/mailto:/i,u=/\n{2,}$/,i=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,s=/^ *> ?/gm,l=/^ {2,}\n/,f=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,d=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,p=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,m=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,g=/^(?:\n *)*\n/,y=/\r\n?/g,h=/^\[\^([^\]]+)](:.*)\n/,k=/^\[\^([^\]]+)]/,x=/\f/g,b=/^\s*?\[(x|\s)\]/,$=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,v=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,S=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,z=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,w=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,A=/^)/,E=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,L=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,M=/^\{.*\}$/,O=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,I=/^<([^ >]+@[^ >]+)>/,j=/^<([^ >]+:\/[^ >]+)>/,B=/-([a-z])?/gi,R=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,T=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,C=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,D=/^\[([^\]]*)\] ?\[([^\]]*)\]/,F=/(\[|\])/g,N=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,P=/\t/g,Z=/^ *\| */,G=/(^ *\||\| *$)/g,H=/ *$/,q=/^ *:-+: *$/,U=/^ *:-+ *$/,V=/^ *-+: *$/,W=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,Q=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,X=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,J=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,K=/^\\([^0-9A-Za-z\s])/,Y=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,tt=/^\n+/,nt=/^([ \t]*)/,et=/\\([^\\])/g,rt=/ *\n+$/,ot=/(?:^|\n)( *)$/,ct="(?:\\d+\\.)",at="(?:[*+-])";function _t(t){return"( *)("+(1===t?ct:at)+") +"}const ut=_t(1),it=_t(2);function st(t){return new RegExp("^"+(1===t?ut:it))}const lt=st(1),ft=st(2);function dt(t){return new RegExp("^"+(1===t?ut:it)+"[^\\n]*(?:\\n(?!\\1"+(1===t?ct:at)+" )[^\\n]*)*(\\n|$)","gm")}const pt=dt(1),mt=dt(2);function gt(t){const n=1===t?ct:at;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const yt=gt(1),ht=gt(2);function kt(t,n){const e=1===n,r=e?yt:ht,o=e?pt:mt,c=e?lt:ft;return{t(t,n,e){const o=ot.exec(e);return o&&(n.o||!n._&&!n.u)?r.exec(t=o[1]+t):null},i:Ht.HIGH,l(t,n,r){const a=e?+t[2]:void 0,_=t[0].replace(u,"\n").match(o);let i=!1;return{p:_.map((function(t,e){const o=c.exec(t)[0].length,a=new RegExp("^ {1,"+o+"}","gm"),u=t.replace(a,"").replace(c,""),s=e===_.length-1,l=-1!==u.indexOf("\n\n")||s&&i;i=l;const f=r._,d=r.o;let p;r.o=!0,l?(r._=!1,p=u.replace(rt,"\n\n")):(r._=!0,p=u.replace(rt,""));const m=n(p,r);return r._=f,r.o=d,m})),m:e,g:a}},h:(n,e,r)=>t(n.m?"ol":"ul",{key:r.k,start:n.g},n.p.map((function(n,o){return t("li",{key:o},e(n,r))})))}}const xt=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,bt=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,$t=[i,d,p,$,S,v,A,R,pt,yt,mt,ht],vt=[...$t,/^[^\n]+(?: \n|\n{2,})/,z,L];function St(t){return t.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function zt(t){return V.test(t)?"right":q.test(t)?"center":U.test(t)?"left":null}function wt(t,n,e){const r=e.$;e.$=!0;const o=n(t.trim(),e);e.$=r;let c=[[]];return o.forEach((function(t,n){"tableSeparator"===t.type?0!==n&&n!==o.length-1&&c.push([]):("text"!==t.type||null!=o[n+1]&&"tableSeparator"!==o[n+1].type||(t.v=t.v.replace(H,"")),c[c.length-1].push(t))})),c}function At(t,n,e){e._=!0;const r=wt(t[1],n,e),o=t[2].replace(G,"").split("|").map(zt),c=function(t,n,e){return t.trim().split("\n").map((function(t){return wt(t,n,e)}))}(t[3],n,e);return e._=!1,{S:o,A:c,L:r,type:"table"}}function Et(t,n){return null==t.S[n]?{}:{textAlign:t.S[n]}}function Lt(t){return function(n,e){return e._?t.exec(n):null}}function Mt(t){return function(n,e){return e._||e.u?t.exec(n):null}}function Ot(t){return function(n,e){return e._||e.u?null:t.exec(n)}}function It(t){return function(n){return t.exec(n)}}function jt(t,n,e){if(n._||n.u)return null;if(e&&!e.endsWith("\n"))return null;let r="";t.split("\n").every((t=>!$t.some((n=>n.test(t)))&&(r+=t+"\n",t.trim())));const o=r.trimEnd();return""==o?null:[r,o]}function Bt(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(t){return null}return t}function Rt(t){return t.replace(et,"$1")}function Tt(t,n,e){const r=e._||!1,o=e.u||!1;e._=!0,e.u=!0;const c=t(n,e);return e._=r,e.u=o,c}function Ct(t,n,e){const r=e._||!1,o=e.u||!1;e._=!1,e.u=!0;const c=t(n,e);return e._=r,e.u=o,c}function Dt(t,n,e){return e._=!1,t(n,e)}const Ft=(t,n,e)=>({v:Tt(n,t[1],e)});function Nt(){return{}}function Pt(){return null}function Zt(...t){return t.filter(Boolean).join(" ")}function Gt(t,n,e){let r=t;const o=n.split(".");for(;o.length&&(r=r[o[0]],void 0!==r);)o.shift();return r||e}var Ht,t;function qt(e,u={}){u.overrides=u.overrides||{},u.slugify=u.slugify||St,u.namedCodesToUnicode=u.namedCodesToUnicode?n({},o,u.namedCodesToUnicode):o;const G=u.createElement||react.createElement;function H(t,e,...r){const o=Gt(u.overrides,`${t}.props`,{});return G(function(t,n){const e=Gt(n,t);return e?"function"==typeof e||"object"==typeof e&&"render"in e?e:Gt(n,`${t}.component`,t):t}(t,u.overrides),n({},e,o,{className:Zt(null==e?void 0:e.className,o.className)||void 0}),...r)}function q(n){let e=!1;u.forceInline?e=!0:u.forceBlock||(e=!1===N.test(n));const r=ct(ot(e?n:`${n.trimEnd().replace(tt,"")}\n\n`,{_:e}));for(;"string"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===u.wrapper)return r;const o=u.wrapper||(e?"span":"div");let c;if(r.length>1||u.forceWrapper)c=r;else{if(1===r.length)return c=r[0],"string"==typeof c?H("span",{key:"outer"},c):c;c=null}return react.createElement(o,{key:"outer"},c)}function U(n){const e=n.match(a);return e?e.reduce((function(n,e,o){const c=e.indexOf("=");if(-1!==c){const a=(t=e.slice(0,c),-1!==t.indexOf("-")&&null===t.match(E)&&(t=t.replace(B,(function(t,n){return n.toUpperCase()}))),t).trim(),_=function(t){const n=t[0];return('"'===n||"'"===n)&&t.length>=2&&t[t.length-1]===n?t.slice(1,-1):t}(e.slice(c+1).trim()),u=r[a]||a,i=n[u]=function(t,n){return"style"===t?n.split(/;\s?/).reduce((function(t,n){const e=n.slice(0,n.indexOf(":"));return t[e.replace(/(-[a-z])/g,(t=>t[1].toUpperCase()))]=n.slice(e.length+1).trim(),t}),{}):"href"===t?Bt(n):(n.match(M)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(a,_);"string"==typeof i&&(z.test(i)||L.test(i))&&(n[u]=react.cloneElement(q(i.trim()),{key:o}))}else"style"!==e&&(n[r[e]||e]=!0);var t;return n}),{}):null}const V=[],et={},rt={blockQuote:{t:Ot(i),i:Ht.HIGH,l:(t,n,e)=>({v:n(t[0].replace(s,""),e)}),h:(t,n,e)=>H("blockquote",{key:e.k},n(t.v,e))},breakLine:{t:It(l),i:Ht.HIGH,l:Nt,h:(t,n,e)=>H("br",{key:e.k})},breakThematic:{t:Ot(f),i:Ht.HIGH,l:Nt,h:(t,n,e)=>H("hr",{key:e.k})},codeBlock:{t:Ot(p),i:Ht.MAX,l:t=>({v:t[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(t,e,r)=>H("pre",{key:r.k},H("code",n({},t.O,{className:t.M?`lang-${t.M}`:""}),t.v))},codeFenced:{t:Ot(d),i:Ht.MAX,l:t=>({O:U(t[3]||""),v:t[4],M:t[2]||void 0,type:"codeBlock"})},codeInline:{t:Mt(m),i:Ht.LOW,l:t=>({v:t[2]}),h:(t,n,e)=>H("code",{key:e.k},t.v)},footnote:{t:Ot(h),i:Ht.MAX,l:t=>(V.push({I:t[2],j:t[1]}),{}),h:Pt},footnoteReference:{t:Lt(k),i:Ht.HIGH,l:t=>({v:t[1],B:`#${u.slugify(t[1])}`}),h:(t,n,e)=>H("a",{key:e.k,href:Bt(t.B)},H("sup",{key:e.k},t.v))},gfmTask:{t:Lt(b),i:Ht.HIGH,l:t=>({R:"x"===t[1].toLowerCase()}),h:(t,n,e)=>H("input",{checked:t.R,key:e.k,readOnly:!0,type:"checkbox"})},heading:{t:Ot(u.enforceAtxHeadings?v:$),i:Ht.HIGH,l:(t,n,e)=>({v:Tt(n,t[2],e),T:u.slugify(t[2]),C:t[1].length}),h:(t,n,e)=>H(`h${t.C}`,{id:t.T,key:e.k},n(t.v,e))},headingSetext:{t:Ot(S),i:Ht.MAX,l:(t,n,e)=>({v:Tt(n,t[1],e),C:"="===t[2]?1:2,type:"heading"})},htmlComment:{t:It(A),i:Ht.HIGH,l:()=>({}),h:Pt},image:{t:Mt(bt),i:Ht.HIGH,l:t=>({D:t[1],B:Rt(t[2]),F:t[3]}),h:(t,n,e)=>H("img",{key:e.k,alt:t.D||void 0,title:t.F||void 0,src:Bt(t.B)})},link:{t:Lt(xt),i:Ht.LOW,l:(t,n,e)=>({v:Ct(n,t[1],e),B:Rt(t[2]),F:t[3]}),h:(t,n,e)=>H("a",{key:e.k,href:Bt(t.B),title:t.F},n(t.v,e))},linkAngleBraceStyleDetector:{t:Lt(j),i:Ht.MAX,l:t=>({v:[{v:t[1],type:"text"}],B:t[1],type:"link"})},linkBareUrlDetector:{t:(t,n)=>n.N?null:Lt(O)(t,n),i:Ht.MAX,l:t=>({v:[{v:t[1],type:"text"}],B:t[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Lt(I),i:Ht.MAX,l(t){let n=t[1],e=t[1];return _.test(e)||(e="mailto:"+e),{v:[{v:n.replace("mailto:",""),type:"text"}],B:e,type:"link"}}},orderedList:kt(H,1),unorderedList:kt(H,2),newlineCoalescer:{t:Ot(g),i:Ht.LOW,l:Nt,h:()=>"\n"},paragraph:{t:jt,i:Ht.LOW,l:Ft,h:(t,n,e)=>H("p",{key:e.k},n(t.v,e))},ref:{t:Lt(T),i:Ht.MAX,l:t=>(et[t[1]]={B:t[2],F:t[4]},{}),h:Pt},refImage:{t:Mt(C),i:Ht.MAX,l:t=>({D:t[1]||void 0,P:t[2]}),h:(t,n,e)=>H("img",{key:e.k,alt:t.D,src:Bt(et[t.P].B),title:et[t.P].F})},refLink:{t:Lt(D),i:Ht.MAX,l:(t,n,e)=>({v:n(t[1],e),Z:n(t[0].replace(F,"\\$1"),e),P:t[2]}),h:(t,n,e)=>et[t.P]?H("a",{key:e.k,href:Bt(et[t.P].B),title:et[t.P].F},n(t.v,e)):H("span",{key:e.k},n(t.Z,e))},table:{t:Ot(R),i:Ht.HIGH,l:At,h:(t,n,e)=>H("table",{key:e.k},H("thead",null,H("tr",null,t.L.map((function(r,o){return H("th",{key:o,style:Et(t,o)},n(r,e))})))),H("tbody",null,t.A.map((function(r,o){return H("tr",{key:o},r.map((function(r,o){return H("td",{key:o,style:Et(t,o)},n(r,e))})))}))))},tableSeparator:{t:function(t,n){return n.$?(n._=!0,Z.exec(t)):null},i:Ht.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:It(Y),i:Ht.MIN,l:t=>({v:t[0].replace(w,((t,n)=>u.namedCodesToUnicode[n]?u.namedCodesToUnicode[n]:t))}),h:t=>t.v},textBolded:{t:Mt(W),i:Ht.MED,l:(t,n,e)=>({v:n(t[2],e)}),h:(t,n,e)=>H("strong",{key:e.k},n(t.v,e))},textEmphasized:{t:Mt(Q),i:Ht.LOW,l:(t,n,e)=>({v:n(t[2],e)}),h:(t,n,e)=>H("em",{key:e.k},n(t.v,e))},textEscaped:{t:Mt(K),i:Ht.HIGH,l:t=>({v:t[1],type:"text"})},textMarked:{t:Mt(X),i:Ht.LOW,l:Ft,h:(t,n,e)=>H("mark",{key:e.k},n(t.v,e))},textStrikethroughed:{t:Mt(J),i:Ht.LOW,l:Ft,h:(t,n,e)=>H("del",{key:e.k},n(t.v,e))}};!0!==u.disableParsingRawHTML&&(rt.htmlBlock={t:It(z),i:Ht.HIGH,l(t,n,e){const[,r]=t[3].match(nt),o=new RegExp(`^${r}`,"gm"),a=t[3].replace(o,""),_=(u=a,vt.some((t=>t.test(u)))?Dt:Tt);var u;const i=t[1].toLowerCase(),s=-1!==c.indexOf(i);e.N=e.N||"a"===i;const l=s?t[3]:_(n,a,e);return e.N=!1,{O:U(t[2]),v:l,G:s,H:s?i:t[1]}},h:(t,e,r)=>H(t.H,n({key:r.k},t.O),t.G?t.v:e(t.v,r))},rt.htmlSelfClosing={t:It(L),i:Ht.HIGH,l:t=>({O:U(t[2]||""),H:t[1]}),h:(t,e,r)=>H(t.H,n({},t.O,{key:r.k}))});const ot=function(t){let n=Object.keys(t);function e(r,o){let c=[],a="";for(;r;){let _=0;for(;_{let{children:r,options:o}=n,c=function(t,n){if(null==t)return{};var e,r,o={},c=Object.keys(t);for(r=0;r=0||(o[e]=t[e]);return o}(n,e);return react.cloneElement(qt(r,o),c)};var memoizerific=__webpack_require__("./node_modules/memoizerific/memoizerific.js"),memoizerific_default=__webpack_require__.n(memoizerific),uniq=__webpack_require__("./node_modules/lodash/uniq.js"),uniq_default=__webpack_require__.n(uniq),cloneDeep=__webpack_require__("./node_modules/lodash/cloneDeep.js"),cloneDeep_default=__webpack_require__.n(cloneDeep),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),docs_tools_dist=__webpack_require__("./node_modules/@storybook/docs-tools/dist/index.mjs"),telejson_dist=__webpack_require__("./node_modules/telejson/dist/index.mjs"),external_STORYBOOK_MODULE_CORE_EVENTS_=__webpack_require__("@storybook/core-events"),esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),tocbot=__webpack_require__("./node_modules/tocbot/index.js"),external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("@storybook/channels"),Wrapper=dist.I4.div(components_dist.YV,(({theme})=>({backgroundColor:"light"===theme.base?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:theme.appBorderRadius,border:`1px dashed ${theme.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:(0,polished_esm.No)(.3,theme.color.defaultText),fontSize:theme.typography.size.s2}))),EmptyBlock=props=>react.createElement(Wrapper,{...props,className:"docblock-emptyblock sb-unstyled"}),StyledSyntaxHighlighter=(0,dist.I4)(components_dist.bF)((({theme})=>({fontSize:theme.typography.size.s2-1+"px",lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}))),SourceSkeletonWrapper=dist.I4.div((({theme})=>({background:theme.background.content,borderRadius:theme.appBorderRadius,border:`1px solid ${theme.appBorderColor}`,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}))),SourceSkeletonPlaceholder=dist.I4.div((({theme})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${dist.v_}`]:{margin:0}}))),SourceSkeleton=()=>react.createElement(SourceSkeletonWrapper,null,react.createElement(SourceSkeletonPlaceholder,null),react.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}})),Source=({isLoading,error,language,code,dark,format:format2=!1,...rest})=>{let{typography}=(0,dist.DP)();if(isLoading)return react.createElement(SourceSkeleton,null);if(error)return react.createElement(EmptyBlock,null,error);let syntaxHighlighter=react.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,format:format2,language,className:"docblock-source sb-unstyled",...rest},code);if(typeof dark>"u")return syntaxHighlighter;let overrideTheme=dark?chunk_QN4WKJDJ.Zj.dark:chunk_QN4WKJDJ.Zj.light;return react.createElement(dist.NP,{theme:(0,dist.C6)({...overrideTheme,fontCode:typography.fonts.mono,fontBase:typography.fonts.base})},syntaxHighlighter)},toGlobalSelector=element=>`& :where(${element}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${element}))`,Title=dist.I4.h1(components_dist.YV,(({theme})=>({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.bold,lineHeight:"32px","@media (min-width: 600px)":{fontSize:theme.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}))),Subtitle=dist.I4.h2(components_dist.YV,(({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,"@media (min-width: 600px)":{fontSize:theme.typography.size.m1,lineHeight:"28px",marginBottom:24},color:(0,polished_esm.No)(.25,theme.color.defaultText)}))),DocsContent=dist.I4.div((({theme})=>{let reset={fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},headers={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},code={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:"light"===theme.base?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:"light"===theme.base?(0,polished_esm.No)(.1,theme.color.defaultText):(0,polished_esm.No)(.3,theme.color.defaultText),backgroundColor:"light"===theme.base?theme.color.lighter:theme.color.border};return{maxWidth:1e3,width:"100%",[toGlobalSelector("a")]:{...reset,fontSize:"inherit",lineHeight:"24px",color:theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[toGlobalSelector("blockquote")]:{...reset,margin:"16px 0",borderLeft:`4px solid ${theme.color.medium}`,padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[toGlobalSelector("div")]:reset,[toGlobalSelector("dl")]:{...reset,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[toGlobalSelector("h1")]:{...reset,...headers,fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h2")]:{...reset,...headers,fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`},[toGlobalSelector("h3")]:{...reset,...headers,fontSize:`${theme.typography.size.m1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h4")]:{...reset,...headers,fontSize:`${theme.typography.size.s3}px`},[toGlobalSelector("h5")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`},[toGlobalSelector("h6")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},[toGlobalSelector("hr")]:{border:"0 none",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},[toGlobalSelector("img")]:{maxWidth:"100%"},[toGlobalSelector("li")]:{...reset,fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":code},[toGlobalSelector("ol")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[toGlobalSelector("p")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":code},[toGlobalSelector("pre")]:{...reset,fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[toGlobalSelector("span")]:{...reset,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${theme.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[toGlobalSelector("table")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===theme.base?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${theme.appBorderColor}`,color:theme.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[toGlobalSelector("ul")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}})),DocsWrapper=dist.I4.div((({theme})=>({background:theme.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem","@media (min-width: 600px)":{}}))),DocsPageWrapper=({children,toc})=>react.createElement(DocsWrapper,{className:"sbdocs sbdocs-wrapper"},react.createElement(DocsContent,{className:"sbdocs sbdocs-content"},children),toc),getBlockBackgroundStyle=theme=>({borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${theme.appBorderColor}`}),Bar=(0,dist.I4)(components_dist.px)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Wrapper2=dist.I4.div({display:"flex",alignItems:"center",gap:4}),IconPlaceholder=dist.I4.div((({theme})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:theme.appBorderColor,animation:`${theme.animation.glow} 1.5s ease-in-out infinite`}))),ZoomContext=(0,react.createContext)({scale:1}),{window:globalWindow}=external_STORYBOOK_MODULE_GLOBAL_.global,IFrame=class extends react.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id}=this.props;this.iframe=globalWindow.document.getElementById(id)}shouldComponentUpdate(nextProps){let{scale}=nextProps;return scale!==this.props.scale&&this.setIframeBodyStyle({width:100*scale+"%",height:100*scale+"%",transform:`scale(${1/scale})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}render(){let{id,title,src,allowFullScreen,scale,...rest}=this.props;return react.createElement("iframe",{id,title,src,...allowFullScreen?{allow:"fullscreen"}:{},loading:"lazy",...rest})}},{PREVIEW_URL}=external_STORYBOOK_MODULE_GLOBAL_.global,BASE_URL=PREVIEW_URL||"iframe.html",storyBlockIdFromId=({story,primary})=>`story--${story.id}${primary?"--primary":""}`,InlineStory=props=>{let storyRef=(0,react.useRef)(),[showLoader,setShowLoader]=(0,react.useState)(!0),[error,setError]=(0,react.useState)(),{story,height,autoplay,forceInitialArgs,renderStoryToElement}=props;return(0,react.useEffect)((()=>{if(!story||!storyRef.current)return()=>{};let element=storyRef.current,cleanup=renderStoryToElement(story,element,{showMain:()=>{},showError:({title,description})=>setError(new Error(`${title} - ${description}`)),showException:err=>setError(err)},{autoplay,forceInitialArgs});return setShowLoader(!1),()=>{Promise.resolve().then((()=>cleanup()))}}),[autoplay,renderStoryToElement,story]),error?react.createElement("pre",null,react.createElement(components_dist.Df,{error})):react.createElement(react.Fragment,null,height?react.createElement("style",null,`#${storyBlockIdFromId(props)} { min-height: ${height}; transform: translateZ(0); overflow: auto }`):null,showLoader&&react.createElement(StorySkeleton,null),react.createElement("div",{ref:storyRef,id:`${storyBlockIdFromId(props)}-inner`,"data-name":story.name}))},IFrameStory=({story,height="500px"})=>react.createElement("div",{style:{width:"100%",height}},react.createElement(ZoomContext.Consumer,null,(({scale})=>react.createElement(IFrame,{key:"iframe",id:`iframe--${story.id}`,title:story.name,src:(0,components_dist.jZ)(BASE_URL,story.id,{viewMode:"story"}),allowFullScreen:!0,scale,style:{width:"100%",height:"100%",border:"0 none"}})))),Story=props=>{let{inline}=props;return react.createElement("div",{id:storyBlockIdFromId(props),className:"sb-story sb-unstyled","data-story-block":"true"},inline?react.createElement(InlineStory,{...props}):react.createElement(IFrameStory,{...props}))},StorySkeleton=()=>react.createElement(components_dist.aH,null),ChildrenContainer=dist.I4.div((({isColumn,columns,layout})=>({display:isColumn||!columns?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:isColumn?"column":"row","& .innerZoomElementWrapper > *":isColumn?{width:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"inline-block"}})),(({layout="padded"})=>"centered"===layout||"padded"===layout?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}),(({layout="padded"})=>"centered"===layout?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}),(({columns})=>columns&&columns>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${columns} - 20px)`}}:{})),StyledSource=(0,dist.I4)(Source)((({theme})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:"none",background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":(0,polished_esm.e$)(.05,theme.background.content),color:theme.color.lightest,button:{background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":(0,polished_esm.e$)(.05,theme.background.content)}}))),PreviewContainer=dist.I4.div((({theme,withSource,isExpanded})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...getBlockBackgroundStyle(theme),borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0,"h3 + &":{marginTop:"16px"}})),(({withToolbar})=>withToolbar&&{paddingTop:40}));function getStoryId(children){if(1===react.Children.count(children)){let elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=(0,dist.I4)((({isLoading,storyId,baseUrl,zoom,resetZoom,...rest})=>react.createElement(Bar,{...rest},react.createElement(Wrapper2,{key:"left"},isLoading?[1,2,3].map((key=>react.createElement(IconPlaceholder,{key}))):react.createElement(react.Fragment,null,react.createElement(components_dist.K0,{key:"zoomin",onClick:e=>{e.preventDefault(),zoom(.8)},title:"Zoom in"},react.createElement(icons_dist.PU,null)),react.createElement(components_dist.K0,{key:"zoomout",onClick:e=>{e.preventDefault(),zoom(1.25)},title:"Zoom out"},react.createElement(icons_dist.LoD,null)),react.createElement(components_dist.K0,{key:"zoomreset",onClick:e=>{e.preventDefault(),resetZoom()},title:"Reset zoom"},react.createElement(icons_dist.wV5,null)))))))({position:"absolute",top:0,left:0,right:0,height:40}),Relative=dist.I4.div({overflow:"hidden",position:"relative"}),Preview=({isLoading,isColumn,columns,children,withSource,withToolbar=!1,isExpanded=!1,additionalActions,className,layout="padded",...props})=>{let[expanded,setExpanded]=(0,react.useState)(isExpanded),{source,actionItem}=((withSource,expanded,setExpanded)=>{switch(!0){case!(!withSource||!withSource.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>setExpanded(!1)}};case expanded:return{source:react.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>setExpanded(!1)}};default:return{source:react.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>setExpanded(!0)}}}})(withSource,expanded,setExpanded),[scale,setScale]=(0,react.useState)(1),previewClasses=[className].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),defaultActionItems=withSource?[actionItem]:[],[additionalActionItems,setAdditionalActionItems]=(0,react.useState)(additionalActions?[...additionalActions]:[]),actionItems=[...defaultActionItems,...additionalActionItems],{window:globalWindow4}=external_STORYBOOK_MODULE_GLOBAL_.global,copyToClipboard=(0,react.useCallback)((async text=>{let{createCopyToClipboardFunction}=await Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/components/dist/index.mjs"));createCopyToClipboardFunction()}),[]);return react.createElement(PreviewContainer,{withSource,withToolbar,...props,className:previewClasses.join(" ")},withToolbar&&react.createElement(PositionedToolbar,{isLoading,border:!0,zoom:z=>setScale(scale*z),resetZoom:()=>setScale(1),storyId:getStoryId(children),baseUrl:"./iframe.html"}),react.createElement(ZoomContext.Provider,{value:{scale}},react.createElement(Relative,{className:"docs-story",onCopyCapture:withSource&&(e=>{let selection=globalWindow4.getSelection();selection&&"Range"===selection.type||(e.preventDefault(),0===additionalActionItems.filter((item=>"Copied"===item.title)).length&©ToClipboard(source.props.code).then((()=>{setAdditionalActionItems([...additionalActionItems,{title:"Copied",onClick:()=>{}}]),globalWindow4.setTimeout((()=>setAdditionalActionItems(additionalActionItems.filter((item=>"Copied"!==item.title)))),1500)})))})},react.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout},react.createElement(components_dist.GP.Element,{scale},Array.isArray(children)?children.map(((child,i)=>react.createElement("div",{key:i},child))):react.createElement("div",null,children))),react.createElement(chunk_WDXN43AK.E7,{actionItems}))),withSource&&expanded&&source)};(0,dist.I4)(Preview)((()=>({".docs-story":{paddingTop:32,paddingBottom:40}})));var Table=dist.I4.table((({theme})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:(0,components_dist.zb)({theme}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:theme.typography.size.s1}}}))),ArgJsDoc=({tags})=>{let params=(tags.params||[]).filter((x=>x.description)),hasDisplayableParams=0!==params.length,hasDisplayableDeprecated=null!=tags.deprecated,hasDisplayableReturns=null!=tags.returns&&null!=tags.returns.description;return hasDisplayableParams||hasDisplayableReturns||hasDisplayableDeprecated?react.createElement(react.Fragment,null,react.createElement(Table,null,react.createElement("tbody",null,hasDisplayableDeprecated&&react.createElement("tr",{key:"deprecated"},react.createElement("td",{colSpan:2},react.createElement("strong",null,"Deprecated"),": ",tags.deprecated.toString())),hasDisplayableParams&¶ms.map((x=>react.createElement("tr",{key:x.name},react.createElement("td",null,react.createElement("code",null,x.name)),react.createElement("td",null,x.description)))),hasDisplayableReturns&&react.createElement("tr",{key:"returns"},react.createElement("td",null,react.createElement("code",null,"Returns")),react.createElement("td",null,tags.returns.description))))):null},Summary=dist.I4.div((({isExpanded})=>({display:"flex",flexDirection:isExpanded?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100}))),Text=dist.I4.span(components_dist.zb,(({theme,simple=!1})=>({flex:"0 0 auto",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...simple&&{background:"transparent",border:"0 none",paddingLeft:0}}))),ExpandButton=dist.I4.button((({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,marginBottom:"4px",background:"none",border:"none"}))),Expandable=dist.I4.div(components_dist.zb,(({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,fontSize:theme.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"}))),Detail=dist.I4.div((({theme,width})=>({width,minWidth:200,maxWidth:800,padding:15,fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}}))),ChevronUpIcon=(0,dist.I4)(icons_dist.tN5)({marginLeft:4}),ChevronDownIcon=(0,dist.I4)(icons_dist.abt)({marginLeft:4}),EmptyArg=()=>react.createElement("span",null,"-"),ArgText=({text,simple})=>react.createElement(Text,{simple},text),calculateDetailWidth=memoizerific_default()(1e3)((detail=>{let lines=detail.split(/\r?\n/);return`${Math.max(...lines.map((x=>x.length)))}ch`})),renderSummaryItems=(summaryItems,isExpanded=!0)=>{let items=summaryItems;return isExpanded||(items=summaryItems.slice(0,8)),items.map((item=>react.createElement(ArgText,{key:item,text:""===item?'""':item})))},ArgSummary=({value:value2,initialExpandedArgs})=>{let{summary,detail}=value2,[isOpen,setIsOpen]=(0,react.useState)(!1),[isExpanded,setIsExpanded]=(0,react.useState)(initialExpandedArgs||!1);if(null==summary)return null;let summaryAsString="function"==typeof summary.toString?summary.toString():summary;if(null==detail){if(/[(){}[\]<>]/.test(summaryAsString))return react.createElement(ArgText,{text:summaryAsString});let summaryItems=(summary=>{if(!summary)return[summary];let summaryItems=summary.split("|").map((value2=>value2.trim()));return uniq_default()(summaryItems)})(summaryAsString),itemsCount=summaryItems.length;return itemsCount>8?react.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),react.createElement(ExpandButton,{onClick:()=>setIsExpanded(!isExpanded)},isExpanded?"Show less...":`Show ${itemsCount-8} more...`)):react.createElement(Summary,null,renderSummaryItems(summaryItems))}return react.createElement(components_dist.o4,{closeOnOutsideClick:!0,placement:"bottom",visible:isOpen,onVisibleChange:isVisible=>{setIsOpen(isVisible)},tooltip:react.createElement(Detail,{width:calculateDetailWidth(detail)},react.createElement(components_dist.bF,{language:"jsx",format:!1},detail))},react.createElement(Expandable,{className:"sbdocs-expandable"},react.createElement("span",null,summaryAsString),isOpen?react.createElement(ChevronUpIcon,null):react.createElement(ChevronDownIcon,null)))},ArgValue=({value:value2,initialExpandedArgs})=>null==value2?react.createElement(EmptyArg,null):react.createElement(ArgSummary,{value:value2,initialExpandedArgs}),Label=dist.I4.label((({theme})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:theme.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${theme.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:(0,polished_esm.No)(.5,theme.color.defaultText),background:"transparent","&:hover":{boxShadow:`${(0,polished_esm.mI)(.3,theme.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${(0,polished_esm.mI)(.05,theme.appBorderColor)} 0 0 0 2px inset`,color:(0,polished_esm.mI)(1,theme.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:theme.boolean.selectedBackground,boxShadow:"light"===theme.base?`${(0,polished_esm.mI)(.1,theme.appBorderColor)} 0 0 2px`:`${theme.appBorderColor} 0 0 0 1px`,color:theme.color.defaultText,padding:"7px 15px"}}))),FormInput=(0,dist.I4)(components_dist.lV.Input)((({readOnly})=>({opacity:readOnly?.5:1}))),FlexSpaced=dist.I4.div((({theme})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:"light"===theme.base?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}))),Wrapper3=dist.I4.label({display:"flex"}),FormInput2=(0,dist.I4)(components_dist.lV.Input)((({readOnly})=>({opacity:readOnly?.5:1}))),selectedKey=(value2,options)=>{let entry=options&&Object.entries(options).find((([_key,val])=>val===value2));return entry?entry[0]:void 0},selectedKeys=(value2,options)=>value2&&options?Object.entries(options).filter((entry=>value2.includes(entry[1]))).map((entry=>entry[0])):[],selectedValues=(keys,options)=>keys&&options&&keys.map((key=>options[key])),Wrapper4=dist.I4.div((({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),(props=>{if("true"===props["aria-readonly"])return{input:{cursor:"not-allowed"}}})),Text2=dist.I4.span({"[aria-readonly=true] &":{opacity:.5}}),Label2=dist.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),CheckboxControl=({name,options,value:value2,onChange,isInline,argType})=>{if(!options)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Checkbox with no options: ${name}`),react.createElement(react.Fragment,null,"-");let initial=selectedKeys(value2,options),[selected,setSelected]=(0,react.useState)(initial),readonly=!!argType?.table?.readonly,handleChange=e=>{let option=e.target.value,updated=[...selected];updated.includes(option)?updated.splice(updated.indexOf(option),1):updated.push(option),onChange(selectedValues(updated,options)),setSelected(updated)};(0,react.useEffect)((()=>{setSelected(selectedKeys(value2,options))}),[value2]);let controlId=(0,chunk_GWAJ4KRU.Z)(name);return react.createElement(Wrapper4,{"aria-readonly":readonly,isInline},Object.keys(options).map(((key,index)=>{let id=`${controlId}-${index}`;return react.createElement(Label2,{key:id,htmlFor:id},react.createElement("input",{type:"checkbox",disabled:readonly,id,name:id,value:key,onChange:handleChange,checked:selected?.includes(key)}),react.createElement(Text2,null,key))})))},Wrapper5=dist.I4.div((({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),(props=>{if("true"===props["aria-readonly"])return{input:{cursor:"not-allowed"}}})),Text3=dist.I4.span({"[aria-readonly=true] &":{opacity:.5}}),Label3=dist.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),RadioControl=({name,options,value:value2,onChange,isInline,argType})=>{if(!options)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Radio with no options: ${name}`),react.createElement(react.Fragment,null,"-");let selection=selectedKey(value2,options),controlId=(0,chunk_GWAJ4KRU.Z)(name),readonly=!!argType?.table?.readonly;return react.createElement(Wrapper5,{"aria-readonly":readonly,isInline},Object.keys(options).map(((key,index)=>{let id=`${controlId}-${index}`;return react.createElement(Label3,{key:id,htmlFor:id},react.createElement("input",{type:"radio",id,name:id,disabled:readonly,value:key,onChange:e=>onChange(options[e.currentTarget.value]),checked:key===selection}),react.createElement(Text3,null,key))})))},OptionsSelect=dist.I4.select({appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},(({theme})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:theme.input.color||"inherit",background:theme.input.background,borderRadius:theme.input.borderRadius,boxShadow:`${theme.input.border} 0 0 0 1px inset`,fontSize:theme.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:theme.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}}))),SelectWrapper=dist.I4.span((({theme})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:theme.textMutedColor,path:{fill:theme.textMutedColor}}}))),SingleSelect=({name,value:value2,options,onChange,argType})=>{let selection=selectedKey(value2,options)||"Choose option...",controlId=(0,chunk_GWAJ4KRU.Z)(name),readonly=!!argType?.table?.readonly;return react.createElement(SelectWrapper,null,react.createElement(icons_dist.abt,null),react.createElement(OptionsSelect,{disabled:readonly,id:controlId,value:selection,onChange:e=>{onChange(options[e.currentTarget.value])}},react.createElement("option",{key:"no-selection",disabled:!0},"Choose option..."),Object.keys(options).map((key=>react.createElement("option",{key,value:key},key)))))},MultiSelect=({name,value:value2,options,onChange,argType})=>{let selection=selectedKeys(value2,options),controlId=(0,chunk_GWAJ4KRU.Z)(name),readonly=!!argType?.table?.readonly;return react.createElement(SelectWrapper,null,react.createElement(OptionsSelect,{disabled:readonly,id:controlId,multiple:!0,value:selection,onChange:e=>{let selection2=Array.from(e.currentTarget.options).filter((option=>option.selected)).map((option=>option.value));onChange(selectedValues(selection2,options))}},Object.keys(options).map((key=>react.createElement("option",{key,value:key},key)))))},SelectControl=props=>{let{name,options}=props;return options?props.isMulti?react.createElement(MultiSelect,{...props}):react.createElement(SingleSelect,{...props}):(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Select with no options: ${name}`),react.createElement(react.Fragment,null,"-"))},normalizeOptions=(options,labels)=>Array.isArray(options)?options.reduce(((acc,item)=>(acc[labels?.[item]||String(item)]=item,acc)),{}):options,Controls={check:CheckboxControl,"inline-check":CheckboxControl,radio:RadioControl,"inline-radio":RadioControl,select:SelectControl,"multi-select":SelectControl},OptionsControl=props=>{let{type="select",labels,argType}=props,normalized={...props,argType,options:argType?normalizeOptions(argType.options,labels):{},isInline:type.includes("inline"),isMulti:type.includes("multi")},Control=Controls[type];if(Control)return react.createElement(Control,{...normalized});throw new Error(`Unknown options type: ${type}`)};function getObjectType(obj){return null===obj||"object"!=typeof obj||Array.isArray(obj)||"function"!=typeof obj[Symbol.iterator]?Object.prototype.toString.call(obj).slice(8,-1):"Iterable"}function isComponentWillChange(oldValue,newValue){let oldType=getObjectType(oldValue),newType=getObjectType(newValue);return("Function"===oldType||"Function"===newType)&&newType!==oldType}var JsonAddValue=class extends react.Component{constructor(props){super(props),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey,inputRefValue}=this.state,{onlyValue}=this.props;inputRefKey&&"function"==typeof inputRefKey.focus&&inputRefKey.focus(),onlyValue&&inputRefValue&&"function"==typeof inputRefValue.focus&&inputRefValue.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.onSubmit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd,onlyValue,onSubmitValueParser,keyPath,deep}=this.props,{inputRefKey,inputRefValue}=this.state,result={};if(!onlyValue){if(!inputRefKey.value)return;result.key=inputRefKey.value}result.newValue=onSubmitValueParser(!1,keyPath,deep,result.key,inputRefValue.value),handleAdd(result)}refInputKey(node){this.state.inputRefKey=node}refInputValue(node){this.state.inputRefValue=node}render(){let{handleCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep}=this.props,addButtonElementLayout=(0,react.cloneElement)(addButtonElement,{onClick:this.onSubmit}),cancelButtonElementLayout=(0,react.cloneElement)(cancelButtonElement,{onClick:handleCancel}),inputElementValue=inputElementGenerator("value",keyPath,deep),inputElementValueLayout=(0,react.cloneElement)(inputElementValue,{placeholder:"Value",ref:this.refInputValue}),inputElementKeyLayout=null;if(!onlyValue){let inputElementKey=inputElementGenerator("key",keyPath,deep);inputElementKeyLayout=(0,react.cloneElement)(inputElementKey,{placeholder:"Key",ref:this.refInputKey})}return react.createElement("span",{className:"rejt-add-value-node"},inputElementKeyLayout,inputElementValueLayout,cancelButtonElementLayout,addButtonElementLayout)}};JsonAddValue.defaultProps={onlyValue:!1,addButtonElement:react.createElement("button",null,"+"),cancelButtonElement:react.createElement("button",null,"c")};var JsonArray=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={data:props.data,name:props.name,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState((state=>({collapsed:!state.collapsed})))}handleRemoveItem(index){return()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[index];beforeRemoveAction(index,keyPath,deep,oldValue).then((()=>{let deltaUpdateResult={keyPath,deep,key:index,oldValue,type:"REMOVE_DELTA_TYPE"};data.splice(index,1),this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult)})).catch(logger4.error)}}handleAddValueAdd({newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(data.length,keyPath,deep,newValue).then((()=>{let newData=[...data,newValue];this.setState({data:newData}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],newData),onDeltaUpdate({type:"ADD_DELTA_TYPE",keyPath,deep,key:newData.length-1,newValue})})).catch(logger4.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key,value:value2}){return new Promise(((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeUpdateAction(key,keyPath,deep,oldValue,value2).then((()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"UPDATE_DELTA_TYPE",keyPath,deep,key,newValue:value2,oldValue}),resolve(void 0)})).catch(reject)}))}renderCollapsed(){let{name,data,keyPath,deep}=this.state,{handleRemove,readOnly,getStyle,dataType,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react.createElement("span",{className:"rejt-collapsed"},react.createElement("span",{className:"rejt-collapsed-text",style:collapsed,onClick:this.handleCollapseMode},"[...] ",data.length," ",1===data.length?"item":"items"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,addFormVisible,nextDeep}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,delimiter,ul,addForm}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=(0,react.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus}),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react.createElement("span",{className:"rejt-not-collapsed"},react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"["),!addFormVisible&&addItemButton,react.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},data.map(((item,index)=>react.createElement(JsonNode,{key:index,name:index.toString(),data:item,keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveItem(index),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})))),!isReadOnly&&addFormVisible&&react.createElement("div",{className:"rejt-add-form",style:addForm},react.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"]"),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{dataType,getStyle}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return react.createElement("div",{className:"rejt-array-node"},react.createElement("span",{onClick:this.handleCollapseMode},react.createElement("span",{className:"rejt-name",style:style.name},name," :"," ")),value2)}};JsonArray.defaultProps={keyPath:[],deep:0,minusMenuElement:react.createElement("span",null," - "),plusMenuElement:react.createElement("span",null," + ")};var JsonFunctionValue=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,readOnlyResult=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!readOnlyResult&&"function"==typeof inputRef.focus&&inputRef.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.handleEdit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value);handleUpdateValue({value:newValue,key:name}).then((()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit()})).catch(logger4.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(node){this.state.inputRef=node}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,textareaElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),result=null,minusElement=null,resultOnlyResult=readOnly(name,originalValue,keyPath,deep,dataType);if(editEnabled&&!resultOnlyResult){let textareaElement=textareaElementGenerator("value",comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=(0,react.cloneElement)(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=(0,react.cloneElement)(cancelButtonElement,{onClick:this.handleCancelEdit}),textareaElementLayout=(0,react.cloneElement)(textareaElement,{ref:this.refInput,defaultValue:originalValue});result=react.createElement("span",{className:"rejt-edit-form",style:style.editForm},textareaElementLayout," ",cancelButtonElementLayout,editButtonElementLayout),minusElement=null}else{result=react.createElement("span",{className:"rejt-value",style:style.value,onClick:resultOnlyResult?null:this.handleEditMode},value2);let minusMenuLayout=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus});minusElement=resultOnlyResult?null:minusMenuLayout}return react.createElement("li",{className:"rejt-function-value-node",style:style.li},react.createElement("span",{className:"rejt-name",style:style.name},name," :"," "),result,minusElement)}};JsonFunctionValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:react.createElement("button",null,"e"),cancelButtonElement:react.createElement("button",null,"c"),minusMenuElement:react.createElement("span",null," - ")};var JsonNode=class extends react.Component{constructor(props){super(props),this.state={data:props.data,name:props.name,keyPath:props.keyPath,deep:props.deep}}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}render(){let{data,name,keyPath,deep}=this.state,{isCollapsed,handleRemove,handleUpdateValue,onUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,readOnlyTrue=()=>!0,dataType=getObjectType(data);switch(dataType){case"Error":return react.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly:readOnlyTrue,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"Object":return react.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"Array":return react.createElement(JsonArray,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"String":return react.createElement(JsonValue,{name,value:`"${data}"`,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Number":return react.createElement(JsonValue,{name,value:data,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Boolean":return react.createElement(JsonValue,{name,value:data?"true":"false",originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Date":return react.createElement(JsonValue,{name,value:data.toISOString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Null":return react.createElement(JsonValue,{name,value:"null",originalValue:"null",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Undefined":return react.createElement(JsonValue,{name,value:"undefined",originalValue:"undefined",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Function":return react.createElement(JsonFunctionValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,textareaElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Symbol":return react.createElement(JsonValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});default:return null}}};JsonNode.defaultProps={keyPath:[],deep:0};var JsonObject=class extends react.Component{constructor(props){super(props);let keyPath=-1===props.deep?[]:[...props.keyPath,props.name];this.state={name:props.name,data:props.data,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key,newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(key,keyPath,deep,newValue).then((()=>{data[key]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"ADD_DELTA_TYPE",keyPath,deep,key,newValue})})).catch(logger4.error)}handleRemoveValue(key){return()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeRemoveAction(key,keyPath,deep,oldValue).then((()=>{let deltaUpdateResult={keyPath,deep,key,oldValue,type:"REMOVE_DELTA_TYPE"};delete data[key],this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult)})).catch(logger4.error)}}handleCollapseMode(){this.setState((state=>({collapsed:!state.collapsed})))}handleEditValue({key,value:value2}){return new Promise(((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeUpdateAction(key,keyPath,deep,oldValue,value2).then((()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"UPDATE_DELTA_TYPE",keyPath,deep,key,newValue:value2,oldValue}),resolve()})).catch(reject)}))}renderCollapsed(){let{name,keyPath,deep,data}=this.state,{handleRemove,readOnly,dataType,getStyle,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react.createElement("span",{className:"rejt-collapsed"},react.createElement("span",{className:"rejt-collapsed-text",style:collapsed,onClick:this.handleCollapseMode},"{...}"," ",keyList.length," ",1===keyList.length?"key":"keys"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,nextDeep,addFormVisible}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,addForm,ul,delimiter}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=(0,react.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus}),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus}),list=keyList.map((key=>react.createElement(JsonNode,{key,name:key,data:data[key],keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveValue(key),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})));return react.createElement("span",{className:"rejt-not-collapsed"},react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"{"),!isReadOnly&&addItemButton,react.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},list),!isReadOnly&&addFormVisible&&react.createElement("div",{className:"rejt-add-form",style:addForm},react.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"}"),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{getStyle,dataType}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return react.createElement("div",{className:"rejt-object-node"},react.createElement("span",{onClick:this.handleCollapseMode},react.createElement("span",{className:"rejt-name",style:style.name},name," :"," ")),value2)}};JsonObject.defaultProps={keyPath:[],deep:0,minusMenuElement:react.createElement("span",null," - "),plusMenuElement:react.createElement("span",null," + ")};var JsonValue=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,isReadOnly=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!isReadOnly&&"function"==typeof inputRef.focus&&inputRef.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.handleEdit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value);handleUpdateValue({value:newValue,key:name}).then((()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit()})).catch(logger4.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(node){this.state.inputRef=node}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,inputElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),isReadOnly=readOnly(name,originalValue,keyPath,deep,dataType),isEditing=editEnabled&&!isReadOnly,inputElement=inputElementGenerator("value",comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=(0,react.cloneElement)(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=(0,react.cloneElement)(cancelButtonElement,{onClick:this.handleCancelEdit}),inputElementLayout=(0,react.cloneElement)(inputElement,{ref:this.refInput,defaultValue:JSON.stringify(originalValue)}),minusMenuLayout=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus});return react.createElement("li",{className:"rejt-value-node",style:style.li},react.createElement("span",{className:"rejt-name",style:style.name},name," : "),isEditing?react.createElement("span",{className:"rejt-edit-form",style:style.editForm},inputElementLayout," ",cancelButtonElementLayout,editButtonElementLayout):react.createElement("span",{className:"rejt-value",style:style.value,onClick:isReadOnly?null:this.handleEditMode},String(value2)),!isReadOnly&&!isEditing&&minusMenuLayout)}};JsonValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:react.createElement("button",null,"e"),cancelButtonElement:react.createElement("button",null,"c"),minusMenuElement:react.createElement("span",null," - ")};var object={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},array={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},value={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};var JsonTree=class extends react.Component{constructor(props){super(props),this.state={data:props.data,rootName:props.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data||props.rootName!==state.rootName?{data:props.data,rootName:props.rootName}:null}onUpdate(key,data){this.setState({data}),this.props.onFullyUpdate(data)}removeRoot(){this.onUpdate(null,null)}render(){let{data,rootName}=this.state,{isCollapsed,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElement,textareaElement,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser,fallback=null}=this.props,dataType=getObjectType(data),readOnlyFunction=readOnly;"Boolean"===getObjectType(readOnly)&&(readOnlyFunction=()=>readOnly);let inputElementFunction=inputElement;inputElement&&"Function"!==getObjectType(inputElement)&&(inputElementFunction=()=>inputElement);let textareaElementFunction=textareaElement;return textareaElement&&"Function"!==getObjectType(textareaElement)&&(textareaElementFunction=()=>textareaElement),"Object"===dataType||"Array"===dataType?react.createElement("div",{className:"rejt-tree"},react.createElement(JsonNode,{data,name:rootName,deep:-1,isCollapsed,onUpdate:this.onUpdate,onDeltaUpdate,readOnly:readOnlyFunction,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator:inputElementFunction,textareaElementGenerator:textareaElementFunction,minusMenuElement,plusMenuElement,handleRemove:this.removeRoot,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})):fallback}};JsonTree.defaultProps={rootName:"root",isCollapsed:(keyPath,deep)=>-1!==deep,getStyle:(keyName,data,keyPath,deep,dataType)=>{switch(dataType){case"Object":case"Error":return object;case"Array":return array;default:return value}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(isEditMode,keyPath,deep,name,rawValue)=>function parse3(string){let result=string;if(0===result.indexOf("function"))return(0,eval)(`(${result})`);try{result=JSON.parse(string)}catch{}return result}(rawValue),inputElement:()=>react.createElement("input",null),textareaElement:()=>react.createElement("textarea",null),fallback:null};var{window:globalWindow2}=external_STORYBOOK_MODULE_GLOBAL_.global,Wrapper6=dist.I4.div((({theme})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:theme.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:theme.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:theme.color.lighter,borderColor:theme.appBorderColor}}))),ButtonInline=dist.I4.button((({theme,primary})=>({border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:"transparent",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?"bold":"normal",cursor:"pointer",order:primary?"initial":9}))),ActionAddIcon=(0,dist.I4)(icons_dist.REV)((({theme,disabled})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.textMutedColor,"&:hover":disabled?{}:{color:theme.color.ancillary},"svg + &":{marginLeft:0}}))),ActionSubstractIcon=(0,dist.I4)(icons_dist.Qpb)((({theme,disabled})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.textMutedColor,"&:hover":disabled?{}:{color:theme.color.negative},"svg + &":{marginLeft:0}}))),Input=dist.I4.input((({theme,placeholder})=>({outline:0,margin:placeholder?1:"1px 0",padding:"3px 4px",color:theme.color.defaultText,background:theme.background.app,border:`1px solid ${theme.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:"Key"===placeholder?80:120,"&:focus":{border:`1px solid ${theme.color.secondary}`}}))),RawButton=(0,dist.I4)(components_dist.K0)((({theme})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:theme.background.bar,border:`1px solid ${theme.appBorderColor}`,borderRadius:3,color:theme.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}}))),RawInput=(0,dist.I4)(components_dist.lV.Textarea)((({theme})=>({flex:1,padding:"7px 6px",fontFamily:theme.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:theme.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}))),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=event=>{event.currentTarget.dispatchEvent(new globalWindow2.KeyboardEvent("keydown",ENTER_EVENT))},selectValue=event=>{event.currentTarget.select()},getCustomStyleFunction=theme=>()=>({name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),ObjectControl=({name,value:value2,onChange,argType})=>{let theme=(0,dist.DP)(),data=(0,react.useMemo)((()=>value2&&cloneDeep_default()(value2)),[value2]),hasData=null!=data,[showRaw,setShowRaw]=(0,react.useState)(!hasData),[parseError,setParseError]=(0,react.useState)(null),readonly=!!argType?.table?.readonly,updateRaw=(0,react.useCallback)((raw=>{try{raw&&onChange(JSON.parse(raw)),setParseError(void 0)}catch(e){setParseError(e)}}),[onChange]),[forceVisible,setForceVisible]=(0,react.useState)(!1),onForceVisible=(0,react.useCallback)((()=>{onChange({}),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react.useRef)(null);if((0,react.useEffect)((()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),!hasData)return react.createElement(components_dist.$n,{disabled:readonly,id:(0,chunk_GWAJ4KRU.Y)(name),onClick:onForceVisible},"Set object");let rawJSONForm=react.createElement(RawInput,{ref:htmlElRef,id:(0,chunk_GWAJ4KRU.Z)(name),name,defaultValue:null===value2?"":JSON.stringify(value2,null,2),onBlur:event=>updateRaw(event.target.value),placeholder:"Edit JSON string...",autoFocus:forceVisible,valid:parseError?"error":null,readOnly:readonly}),isObjectOrArray=Array.isArray(value2)||"object"==typeof value2&&value2?.constructor===Object;return react.createElement(Wrapper6,{"aria-readonly":readonly},isObjectOrArray&&react.createElement(RawButton,{onClick:e=>{e.preventDefault(),setShowRaw((v=>!v))}},showRaw?react.createElement(icons_dist.dbI,null):react.createElement(icons_dist.bMW,null),react.createElement("span",null,"RAW")),showRaw?rawJSONForm:react.createElement(JsonTree,{readOnly:readonly||!isObjectOrArray,isCollapsed:isObjectOrArray?void 0:()=>!0,data,rootName:name,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:react.createElement(ButtonInline,{type:"button"},"Cancel"),editButtonElement:react.createElement(ButtonInline,{type:"submit"},"Save"),addButtonElement:react.createElement(ButtonInline,{type:"submit",primary:!0},"Save"),plusMenuElement:react.createElement(ActionAddIcon,null),minusMenuElement:react.createElement(ActionSubstractIcon,null),inputElement:(_,__,___,key)=>key?react.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react.createElement(Input,null),fallback:rawJSONForm}))},RangeInput=dist.I4.input((({theme,min,max,value:value2,disabled})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.e$)(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.e$)(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.a)(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.a)(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:disabled?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${(0,polished_esm.B3)(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${(0,polished_esm.B3)(theme.appBorderColor,.2)}`,cursor:disabled?"not-allowed":"grab",appearance:"none",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${(0,polished_esm.e$)(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:disabled?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:(0,polished_esm.B3)(theme.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:theme.color.secondary,boxShadow:`0 0px 5px 0px ${theme.color.secondary}`}},"&::-moz-range-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.e$)(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.e$)(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.a)(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.a)(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:disabled?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${(0,polished_esm.B3)(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${(0,polished_esm.B3)(theme.appBorderColor,.2)}`,cursor:disabled?"not-allowed":"grap",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${(0,polished_esm.e$)(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.e$)(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.e$)(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.a)(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${(0,polished_esm.a)(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${theme.input.background}`,border:`1px solid ${(0,polished_esm.B3)(theme.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}))),RangeLabel=dist.I4.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),RangeCurrentAndMaxLabel=(0,dist.I4)(RangeLabel)((({numberOFDecimalsPlaces,max})=>({width:`${numberOFDecimalsPlaces+2*max.toString().length+3}ch`,textAlign:"right",flexShrink:0}))),RangeWrapper=dist.I4.div({display:"flex",alignItems:"center",width:"100%"});var Wrapper7=dist.I4.label({display:"flex"}),MaxLength=dist.I4.div((({isMaxed})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:isMaxed?"red":void 0}))),FileInput=(0,dist.I4)(components_dist.lV.Input)({padding:10});var LazyColorControl=(0,react.lazy)((()=>Promise.all([__webpack_require__.e(8677),__webpack_require__.e(5416)]).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/addon-docs/node_modules/@storybook/blocks/dist/Color-PRSJMWNM.mjs")))),Controls2={array:ObjectControl,object:ObjectControl,boolean:({name,value:value2,onChange,onBlur,onFocus,argType})=>{let onSetFalse=(0,react.useCallback)((()=>onChange(!1)),[onChange]),readonly=!!argType?.table?.readonly;if(void 0===value2)return react.createElement(components_dist.$n,{variant:"outline",size:"medium",id:(0,chunk_GWAJ4KRU.Y)(name),onClick:onSetFalse,disabled:readonly},"Set boolean");let controlId=(0,chunk_GWAJ4KRU.Z)(name),parsedValue="string"==typeof value2?(value2=>"true"===value2)(value2):value2;return react.createElement(Label,{"aria-disabled":readonly,htmlFor:controlId,"aria-label":name},react.createElement("input",{id:controlId,type:"checkbox",onChange:e=>onChange(e.target.checked),checked:parsedValue,role:"switch",disabled:readonly,name,onBlur,onFocus}),react.createElement("span",{"aria-hidden":"true"},"False"),react.createElement("span",{"aria-hidden":"true"},"True"))},color:props=>react.createElement(react.Suspense,{fallback:react.createElement("div",null)},react.createElement(LazyColorControl,{...props})),date:({name,value:value2,onChange,onFocus,onBlur,argType})=>{let[valid,setValid]=(0,react.useState)(!0),dateRef=(0,react.useRef)(),timeRef=(0,react.useRef)(),readonly=!!argType?.table?.readonly;(0,react.useEffect)((()=>{!1!==valid&&(dateRef&&dateRef.current&&(dateRef.current.value=(value2=>{let date=new Date(value2);return`${`000${date.getFullYear()}`.slice(-4)}-${`0${date.getMonth()+1}`.slice(-2)}-${`0${date.getDate()}`.slice(-2)}`})(value2)),timeRef&&timeRef.current&&(timeRef.current.value=(value2=>{let date=new Date(value2);return`${`0${date.getHours()}`.slice(-2)}:${`0${date.getMinutes()}`.slice(-2)}`})(value2)))}),[value2]);let controlId=(0,chunk_GWAJ4KRU.Z)(name);return react.createElement(FlexSpaced,null,react.createElement(FormInput,{type:"date",max:"9999-12-31",ref:dateRef,id:`${controlId}-date`,name:`${controlId}-date`,readOnly:readonly,onChange:e=>{let parsed=(value2=>{let[year,month,day]=value2.split("-"),result=new Date;return result.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result})(e.target.value),result=new Date(value2);result.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());let time=result.getTime();time&&onChange(time),setValid(!!time)},onFocus,onBlur}),react.createElement(FormInput,{type:"time",id:`${controlId}-time`,name:`${controlId}-time`,ref:timeRef,onChange:e=>{let parsed=(value2=>{let[hours,minutes]=value2.split(":"),result=new Date;return result.setHours(parseInt(hours,10)),result.setMinutes(parseInt(minutes,10)),result})(e.target.value),result=new Date(value2);result.setHours(parsed.getHours()),result.setMinutes(parsed.getMinutes());let time=result.getTime();time&&onChange(time),setValid(!!time)},readOnly:readonly,onFocus,onBlur}),valid?null:react.createElement("div",null,"invalid"))},number:({name,value:value2,onChange,min,max,step,onBlur,onFocus,argType})=>{let[inputValue,setInputValue]=(0,react.useState)("number"==typeof value2?value2:""),[forceVisible,setForceVisible]=(0,react.useState)(!1),[parseError,setParseError]=(0,react.useState)(null),readonly=!!argType?.table?.readonly,handleChange=(0,react.useCallback)((event=>{setInputValue(event.target.value);let result=parseFloat(event.target.value);Number.isNaN(result)?setParseError(new Error(`'${event.target.value}' is not a number`)):(onChange(result),setParseError(null))}),[onChange,setParseError]),onForceVisible=(0,react.useCallback)((()=>{setInputValue("0"),onChange(0),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react.useRef)(null);return(0,react.useEffect)((()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),(0,react.useEffect)((()=>{inputValue!==("number"==typeof value2?value2:"")&&setInputValue(value2)}),[value2]),void 0===value2?react.createElement(components_dist.$n,{variant:"outline",size:"medium",id:(0,chunk_GWAJ4KRU.Y)(name),onClick:onForceVisible,disabled:readonly},"Set number"):react.createElement(Wrapper3,null,react.createElement(FormInput2,{ref:htmlElRef,id:(0,chunk_GWAJ4KRU.Z)(name),type:"number",onChange:handleChange,size:"flex",placeholder:"Edit number...",value:inputValue,valid:parseError?"error":null,autoFocus:forceVisible,readOnly:readonly,name,min,max,step,onFocus,onBlur}))},check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:({name,value:value2,onChange,min=0,max=100,step=1,onBlur,onFocus,argType})=>{let hasValue=void 0!==value2,numberOFDecimalsPlaces=(0,react.useMemo)((()=>function getNumberOfDecimalPlaces(number){let match=number.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}(step)),[step]),readonly=!!argType?.table?.readonly;return react.createElement(RangeWrapper,{"aria-readonly":readonly},react.createElement(RangeLabel,null,min),react.createElement(RangeInput,{id:(0,chunk_GWAJ4KRU.Z)(name),type:"range",disabled:readonly,onChange:event=>{onChange((value2=>{let result=parseFloat(value2);return Number.isNaN(result)?void 0:result})(event.target.value))},name,value:value2,min,max,step,onFocus,onBlur}),react.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces,max},hasValue?value2.toFixed(numberOFDecimalsPlaces):"--"," / ",max))},text:({name,value:value2,onChange,onFocus,onBlur,maxLength,argType})=>{let readonly=!!argType?.table?.readonly,[forceVisible,setForceVisible]=(0,react.useState)(!1),onForceVisible=(0,react.useCallback)((()=>{onChange(""),setForceVisible(!0)}),[setForceVisible]);if(void 0===value2)return react.createElement(components_dist.$n,{variant:"outline",size:"medium",disabled:readonly,id:(0,chunk_GWAJ4KRU.Y)(name),onClick:onForceVisible},"Set string");let isValid="string"==typeof value2;return react.createElement(Wrapper7,null,react.createElement(components_dist.lV.Textarea,{id:(0,chunk_GWAJ4KRU.Z)(name),maxLength,onChange:event=>{onChange(event.target.value)},disabled:readonly,size:"flex",placeholder:"Edit string...",autoFocus:forceVisible,valid:isValid?null:"error",name,value:isValid?value2:"",onFocus,onBlur}),maxLength&&react.createElement(MaxLength,{isMaxed:value2?.length===maxLength},value2?.length??0," / ",maxLength))},file:({onChange,name,accept="image/*",value:value2,argType})=>{let inputElement=(0,react.useRef)(null),readonly=argType?.control?.readOnly;return(0,react.useEffect)((()=>{null==value2&&inputElement.current&&(inputElement.current.value=null)}),[value2,name]),react.createElement(FileInput,{ref:inputElement,id:(0,chunk_GWAJ4KRU.Z)(name),type:"file",name,multiple:!0,disabled:readonly,onChange:function handleFileChange(e){if(!e.target.files)return;let fileUrls=Array.from(e.target.files).map((file=>URL.createObjectURL(file)));onChange(fileUrls),function revokeOldUrls(urls){urls.forEach((url=>{url.startsWith("blob:")&&URL.revokeObjectURL(url)}))}(value2)},accept,size:"flex"})}},NoControl=()=>react.createElement(react.Fragment,null,"-"),ArgControl=({row,arg,updateArgs,isHovered})=>{let{key,control}=row,[isFocused,setFocused]=(0,react.useState)(!1),[boxedValue,setBoxedValue]=(0,react.useState)({value:arg});(0,react.useEffect)((()=>{isFocused||setBoxedValue({value:arg})}),[isFocused,arg]);let onChange=(0,react.useCallback)((argVal=>(setBoxedValue({value:argVal}),updateArgs({[key]:argVal}),argVal)),[updateArgs,key]),onBlur=(0,react.useCallback)((()=>setFocused(!1)),[]),onFocus=(0,react.useCallback)((()=>setFocused(!0)),[]);if(!control||control.disable){return isHovered&&(!0!==control?.disable&&"function"!==row?.type?.name)?react.createElement(components_dist.N_,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):react.createElement(NoControl,null)}let props={name:key,argType:row,value:boxedValue.value,onChange,onBlur,onFocus},Control=Controls2[control.type]||NoControl;return react.createElement(Control,{...props,...control,controlType:control.type})},Name=dist.I4.span({fontWeight:"bold"}),Required=dist.I4.span((({theme})=>({color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:"help"}))),Description=dist.I4.div((({theme})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:theme.color.secondary}},code:{...(0,components_dist.zb)({theme}),fontSize:12,fontFamily:theme.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}))),Type=dist.I4.div((({theme,hasDescription})=>({color:"light"===theme.base?(0,polished_esm.No)(.1,theme.color.defaultText):(0,polished_esm.No)(.2,theme.color.defaultText),marginTop:hasDescription?4:0}))),TypeWithJsDoc=dist.I4.div((({theme,hasDescription})=>({color:"light"===theme.base?(0,polished_esm.No)(.1,theme.color.defaultText):(0,polished_esm.No)(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12}))),StyledTd=dist.I4.td((({theme,expandable})=>({paddingLeft:expandable?"40px !important":"20px !important"}))),ArgRow=props=>{let[isHovered,setIsHovered]=(0,react.useState)(!1),{row,updateArgs,compact,expandable,initialExpandedArgs}=props,{name,description}=row,table=row.table||{},type=table.type||(value2=row.type)&&{summary:"string"==typeof value2?value2:value2.name},defaultValue=table.defaultValue||row.defaultValue,required=row.type?.required,hasDescription=null!=description&&""!==description;var value2;return react.createElement("tr",{onMouseEnter:()=>setIsHovered(!0),onMouseLeave:()=>setIsHovered(!1)},react.createElement(StyledTd,{expandable},react.createElement(Name,null,name),required?react.createElement(Required,{title:"Required"},"*"):null),compact?null:react.createElement("td",null,hasDescription&&react.createElement(Description,null,react.createElement(index_modern,null,description)),null!=table.jsDocTags?react.createElement(react.Fragment,null,react.createElement(TypeWithJsDoc,{hasDescription},react.createElement(ArgValue,{value:type,initialExpandedArgs})),react.createElement(ArgJsDoc,{tags:table.jsDocTags})):react.createElement(Type,{hasDescription},react.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:react.createElement("td",null,react.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?react.createElement("td",null,react.createElement(ArgControl,{...props,isHovered})):null)},ExpanderIconDown=(0,dist.I4)(icons_dist.D3D)((({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===theme.base?(0,polished_esm.No)(.25,theme.color.defaultText):(0,polished_esm.No)(.3,theme.color.defaultText),border:"none",display:"inline-block"}))),ExpanderIconRight=(0,dist.I4)(icons_dist.vKP)((({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===theme.base?(0,polished_esm.No)(.25,theme.color.defaultText):(0,polished_esm.No)(.3,theme.color.defaultText),border:"none",display:"inline-block"}))),FlexWrapper=dist.I4.span((({theme})=>({display:"flex",lineHeight:"20px",alignItems:"center"}))),Section=dist.I4.td((({theme})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s1-1,color:"light"===theme.base?(0,polished_esm.No)(.4,theme.color.defaultText):(0,polished_esm.No)(.6,theme.color.defaultText),background:`${theme.background.app} !important`,"& ~ td":{background:`${theme.background.app} !important`}}))),Subsection=dist.I4.td((({theme})=>({position:"relative",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.app}))),StyledTd2=dist.I4.td((()=>({position:"relative"}))),StyledTr=dist.I4.tr((({theme})=>({"&:hover > td":{backgroundColor:`${(0,polished_esm.a)(.005,theme.background.app)} !important`,boxShadow:`${theme.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}}))),ClickIntercept=dist.I4.button((()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}))),SectionRow=({level="section",label,children,initialExpanded=!0,colSpan=3})=>{let[expanded,setExpanded]=(0,react.useState)(initialExpanded),Level="subsection"===level?Subsection:Section,itemCount=children?.length||0,caption="subsection"===level?`${itemCount} item${1!==itemCount?"s":""}`:"",helperText=`${expanded?"Hide":"Show"} ${"subsection"===level?itemCount:label} item${1!==itemCount?"s":""}`;return react.createElement(react.Fragment,null,react.createElement(StyledTr,{title:helperText},react.createElement(Level,{colSpan:1},react.createElement(ClickIntercept,{onClick:e=>setExpanded(!expanded),tabIndex:0},helperText),react.createElement(FlexWrapper,null,expanded?react.createElement(ExpanderIconDown,null):react.createElement(ExpanderIconRight,null),label)),react.createElement(StyledTd2,{colSpan:colSpan-1},react.createElement(ClickIntercept,{onClick:e=>setExpanded(!expanded),tabIndex:-1,style:{outline:"none"}},helperText),expanded?null:caption)),expanded?children:null)},Row=dist.I4.div((({theme})=>({display:"flex",gap:16,borderBottom:`1px solid ${theme.appBorderColor}`,"&:last-child":{borderBottom:0}}))),Column=dist.I4.div((({numColumn})=>({display:"flex",flexDirection:"column",flex:numColumn||1,gap:5,padding:"12px 20px"}))),SkeletonText=dist.I4.div((({theme,width,height})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,width:width||"100%",height:height||16,borderRadius:3}))),columnWidth=[2,4,2,2],Skeleton=()=>react.createElement(react.Fragment,null,react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"})))),Wrapper8=dist.I4.div((({inAddonPanel,theme})=>({height:inAddonPanel?"100%":"auto",display:"flex",border:inAddonPanel?"none":`1px solid ${theme.appBorderColor}`,borderRadius:inAddonPanel?0:theme.appBorderRadius,padding:inAddonPanel?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:theme.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"}))),Links=dist.I4.div((({theme})=>({display:"flex",fontSize:theme.typography.size.s2-1,gap:25}))),Divider=dist.I4.div((({theme})=>({width:1,height:16,backgroundColor:theme.appBorderColor}))),Empty=({inAddonPanel})=>{let[isLoading,setIsLoading]=(0,react.useState)(!0);return(0,react.useEffect)((()=>{let load=setTimeout((()=>{setIsLoading(!1)}),100);return()=>clearTimeout(load)}),[]),isLoading?null:react.createElement(Wrapper8,{inAddonPanel},react.createElement(components_dist.Q2,{title:inAddonPanel?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:react.createElement(react.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:react.createElement(Links,null,inAddonPanel&&react.createElement(react.Fragment,null,react.createElement(components_dist.N_,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},react.createElement(icons_dist.npA,null)," Watch 5m video"),react.createElement(Divider,null),react.createElement(components_dist.N_,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},react.createElement(icons_dist.pyG,null)," Read docs")),!inAddonPanel&&react.createElement(components_dist.N_,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},react.createElement(icons_dist.pyG,null)," Learn how to set that up"))}))},TableWrapper=dist.I4.table((({theme,compact,inAddonPanel})=>({"&&":{borderSpacing:0,color:theme.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:theme.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...compact?null:{width:"35%"}},"td:nth-of-type(3)":{...compact?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...compact?null:{width:"25%"}},th:{color:"light"===theme.base?(0,polished_esm.No)(.25,theme.color.defaultText):(0,polished_esm.No)(.45,theme.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:inAddonPanel?0:1,marginRight:inAddonPanel?0:1,tbody:{...inAddonPanel?null:{filter:"light"===theme.base?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:theme.background.content,borderTop:`1px solid ${theme.appBorderColor}`},...inAddonPanel?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${theme.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${theme.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${theme.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${theme.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:theme.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:theme.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:theme.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:theme.appBorderRadius}}}}}))),StyledIconButton=(0,dist.I4)(components_dist.K0)((({theme})=>({margin:"-4px -12px -4px 0"}))),ControlHeadingWrapper=dist.I4.span({display:"flex",justifyContent:"space-between"}),sortFns={alpha:(a,b)=>a.name.localeCompare(b.name),requiredFirst:(a,b)=>+!!b.type?.required-+!!a.type?.required||a.name.localeCompare(b.name),none:void 0},ArgsTable=props=>{let{updateArgs,resetArgs,compact,inAddonPanel,initialExpandedArgs,sort="none",isLoading}=props;if("error"in props){let{error}=props;return react.createElement(EmptyBlock,null,error," ",react.createElement(components_dist.N_,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},react.createElement(icons_dist.pyG,null)," Read the docs"))}if(isLoading)return react.createElement(Skeleton,null);let{rows,args,globals}="rows"in props&&props,groups=((rows,sort)=>{let sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach((([key,row])=>{let{category,subcategory}=row?.table||{};if(category){let section=sections.sections[category]||{ungrouped:[],subsections:{}};if(subcategory){let subsection=section.subsections[subcategory]||[];subsection.push({key,...row}),section.subsections[subcategory]=subsection}else section.ungrouped.push({key,...row});sections.sections[category]=section}else if(subcategory){let subsection=sections.ungroupedSubsections[subcategory]||[];subsection.push({key,...row}),sections.ungroupedSubsections[subcategory]=subsection}else sections.ungrouped.push({key,...row})}));let sortFn=sortFns[sort],sortSubsection=record=>sortFn?Object.keys(record).reduce(((acc,cur)=>({...acc,[cur]:record[cur].sort(sortFn)})),{}):record;return{ungrouped:sections.ungrouped.sort(sortFn),ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce(((acc,cur)=>({...acc,[cur]:{ungrouped:sections.sections[cur].ungrouped.sort(sortFn),subsections:sortSubsection(sections.sections[cur].subsections)}})),{})}})(pickBy_default()(rows,(row=>!row?.table?.disable&&((row,args,globals)=>{try{return(0,csf_dist.hX)(row,args,globals)}catch(err){return external_STORYBOOK_MODULE_CLIENT_LOGGER_.once.warn(err.message),!1}})(row,args||{},globals||{}))),sort),hasNoUngrouped=0===groups.ungrouped.length,hasNoSections=0===Object.entries(groups.sections).length,hasNoUngroupedSubsections=0===Object.entries(groups.ungroupedSubsections).length;if(hasNoUngrouped&&hasNoSections&&hasNoUngroupedSubsections)return react.createElement(Empty,{inAddonPanel});let colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);let expandable=Object.keys(groups.sections).length>0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return react.createElement(components_dist.dL,null,react.createElement(TableWrapper,{compact,inAddonPanel,className:"docblock-argstable sb-unstyled"},react.createElement("thead",{className:"docblock-argstable-head"},react.createElement("tr",null,react.createElement("th",null,react.createElement("span",null,"Name")),compact?null:react.createElement("th",null,react.createElement("span",null,"Description")),compact?null:react.createElement("th",null,react.createElement("span",null,"Default")),updateArgs?react.createElement("th",null,react.createElement(ControlHeadingWrapper,null,"Control"," ",!isLoading&&resetArgs&&react.createElement(StyledIconButton,{onClick:()=>resetArgs(),title:"Reset controls"},react.createElement(icons_dist.ejX,{"aria-hidden":!0})))):null)),react.createElement("tbody",{className:"docblock-argstable-body"},groups.ungrouped.map((row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common}))),Object.entries(groups.ungroupedSubsections).map((([subcategory,subsection])=>react.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))))),Object.entries(groups.sections).map((([category,section])=>react.createElement(SectionRow,{key:category,label:category,level:"section",colSpan},section.ungrouped.map((row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common}))),Object.entries(section.subsections).map((([subcategory,subsection])=>react.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common}))))))))))))},TabbedArgsTable=({tabs,...props})=>{let entries=Object.entries(tabs);return 1===entries.length?react.createElement(ArgsTable,{...entries[0][1],...props}):react.createElement(components_dist._j,null,entries.map(((entry,index)=>{let[label,table]=entry,id=`prop_table_div_${label}`,argsTableProps=0===index?props:{sort:props.sort};return react.createElement("div",{key:id,id,title:label},(({active})=>active?react.createElement(ArgsTable,{key:`prop_table_${label}`,...table,...argsTableProps}):null))})))};dist.I4.div((({theme})=>({marginRight:30,fontSize:`${theme.typography.size.s1}px`,color:"light"===theme.base?(0,polished_esm.No)(.4,theme.color.defaultText):(0,polished_esm.No)(.6,theme.color.defaultText)}))),dist.I4.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),dist.I4.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),dist.I4.div(components_dist.YV,(({theme})=>({...getBlockBackgroundStyle(theme),margin:"25px 0 40px",padding:"30px 20px"}))),dist.I4.div((({theme})=>({fontWeight:theme.typography.weight.bold,color:theme.color.defaultText}))),dist.I4.div((({theme})=>({color:"light"===theme.base?(0,polished_esm.No)(.2,theme.color.defaultText):(0,polished_esm.No)(.6,theme.color.defaultText)}))),dist.I4.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),dist.I4.div((({theme})=>({flex:1,textAlign:"center",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===theme.base?(0,polished_esm.No)(.4,theme.color.defaultText):(0,polished_esm.No)(.6,theme.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}))),dist.I4.div({display:"flex",flexDirection:"row"}),dist.I4.div((({background})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background,content:'""'}}))),dist.I4.div((({theme})=>({...getBlockBackgroundStyle(theme),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}))),dist.I4.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),dist.I4.div({flex:1,display:"flex",flexDirection:"row"}),dist.I4.div({display:"flex",alignItems:"flex-start"}),dist.I4.div({flex:"0 0 30%"}),dist.I4.div({flex:1}),dist.I4.div((({theme})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:"light"===theme.base?(0,polished_esm.No)(.4,theme.color.defaultText):(0,polished_esm.No)(.6,theme.color.defaultText)}))),dist.I4.div((({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"})));dist.I4.div((({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2}))),dist.I4.div((({theme})=>({...getBlockBackgroundStyle(theme),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}))),dist.I4.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),dist.I4.div({display:"flex",flexFlow:"row wrap"});var anchorBlockIdFromId=storyId=>`anchor--${storyId}`,Anchor=({storyId,children})=>react.createElement("div",{id:anchorBlockIdFromId(storyId),className:"sb-anchor"},children);external_STORYBOOK_MODULE_GLOBAL_.global&&void 0===external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__&&(external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__=(0,react.createContext)(null),external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__:(0,react.createContext)(null),useOf=(moduleExportOrType,validTypes)=>(0,react.useContext)(DocsContext).resolveOf(moduleExportOrType,validTypes),getComponentName=component=>{if(component)return"string"==typeof component?component.includes("-")?component.split("-").map((part=>part.charAt(0).toUpperCase()+part.slice(1))).join(""):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name};function argsHash(args){return(0,telejson_dist.As)(args,{allowFunction:!1})}var SourceContext=(0,react.createContext)({sources:{}}),SourceContainer=({children,channel})=>{let[sources,setSources]=(0,react.useState)({});return(0,react.useEffect)((()=>{let handleSnippetRendered=(idOrEvent,inputSource=null,inputFormat=!1)=>{let{id,args,source,format:format2}="string"==typeof idOrEvent?{id:idOrEvent,source:inputSource,format:inputFormat}:idOrEvent,hash=args?argsHash(args):"--unknown--";setSources((current=>({...current,[id]:{...current[id],[hash]:{code:source,format:format2}}})))};return channel.on(docs_tools_dist.Op,handleSnippetRendered),()=>channel.off(docs_tools_dist.Op,handleSnippetRendered)}),[]),react.createElement(SourceContext.Provider,{value:{sources}},children)},getSnippet=({snippet,storyContext,typeFromProps,transformFromProps})=>{let{__isArgsStory:isArgsStory}=storyContext.parameters,sourceParameters=storyContext.parameters.docs?.source||{},type=typeFromProps||sourceParameters.type||docs_tools_dist.Y1.AUTO;if(void 0!==sourceParameters.code)return sourceParameters.code;let code=type===docs_tools_dist.Y1.DYNAMIC||type===docs_tools_dist.Y1.AUTO&&snippet&&isArgsStory?snippet:sourceParameters.originalSource||"";return(transformFromProps??sourceParameters.transform)?.(code,storyContext)||code},useSourceProps=(props,docsContext,sourceContext)=>{let story,{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(of)story=docsContext.resolveOf(of,["story"]).story;else try{story=docsContext.storyById()}catch{}let sourceParameters=story?.parameters?.docs?.source||{},{code}=props,format2=props.format??sourceParameters.format,language=props.language??sourceParameters.language??"jsx",dark=props.dark??sourceParameters.dark??!1;if(!code&&!story)return{error:"Oh no! The source is not available."};if(code)return{code,format:format2,language,dark};let storyContext=docsContext.getStoryContext(story),argsForSource=props.__forceInitialArgs?storyContext.initialArgs:storyContext.unmappedArgs,source=((storyId,args,sourceContext)=>{let{sources}=sourceContext,sourceMap=sources?.[storyId];return sourceMap?.[argsHash(args)]||sourceMap?.["--unknown--"]||{code:""}})(story.id,argsForSource,sourceContext);return format2=source.format??story.parameters.docs?.source?.format??!1,{code:getSnippet({snippet:source.code,storyContext:{...storyContext,args:argsForSource},typeFromProps:props.type,transformFromProps:props.transform}),format:format2,language,dark}};function useStory(storyId,context){let stories=function useStories(storyIds,context){let[storiesById,setStories]=(0,react.useState)({});return(0,react.useEffect)((()=>{Promise.all(storyIds.map((async storyId=>{let story=await context.loadStory(storyId);setStories((current=>current[storyId]===story?current:{...current,[storyId]:story}))})))})),storyIds.map((storyId=>{if(storiesById[storyId])return storiesById[storyId];try{return context.storyById(storyId)}catch{return null}}))}([storyId],context);return stories&&stories[0]}var Story2=(props={__forceInitialArgs:!1,__primary:!1})=>{let context=(0,react.useContext)(DocsContext),storyId=((props,context)=>{let{of,meta}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return meta&&context.referenceMeta(meta,!1),context.resolveOf(of||"story",["story"]).story.id})(props,context),story=useStory(storyId,context);if(!story)return react.createElement(StorySkeleton,null);let storyProps=((props,story,context)=>{let{parameters={}}=story||{},{docs={}}=parameters,storyParameters=docs.story||{};if(docs.disable)return null;if(props.inline??storyParameters.inline)return{story,inline:!0,height:props.height??storyParameters.height,autoplay:props.autoplay??storyParameters.autoplay??!1,forceInitialArgs:!!props.__forceInitialArgs,primary:!!props.__primary,renderStoryToElement:context.renderStoryToElement};return{story,inline:!1,height:props.height??storyParameters.height??storyParameters.iframeHeight??"100px",primary:!!props.__primary}})(props,story,context);return storyProps?react.createElement(Story,{...storyProps}):null},Canvas=props=>{let docsContext=(0,react.useContext)(DocsContext),sourceContext=(0,react.useContext)(SourceContext),{of,source}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story}=useOf(of||"story",["story"]),sourceProps=useSourceProps({...source,...of&&{of}},docsContext,sourceContext),layout=props.layout??story.parameters.layout??story.parameters.docs?.canvas?.layout??"padded",withToolbar=props.withToolbar??story.parameters.docs?.canvas?.withToolbar??!1,additionalActions=props.additionalActions??story.parameters.docs?.canvas?.additionalActions,sourceState=props.sourceState??story.parameters.docs?.canvas?.sourceState??"hidden",className=props.className??story.parameters.docs?.canvas?.className;return react.createElement(Preview,{withSource:"none"===sourceState?void 0:sourceProps,isExpanded:"shown"===sourceState,withToolbar,additionalActions,className,layout},react.createElement(Story2,{of:of||story.moduleExport,meta:props.meta,...props.story}))},useArgsIfDefined=(story,context)=>{let storyContext=story?context.getStoryContext(story):{args:{}},{id:storyId}=story||{id:"none"},[args,setArgs]=(0,react.useState)(storyContext.args);(0,react.useEffect)((()=>{let onArgsUpdated=changed=>{changed.storyId===storyId&&setArgs(changed.args)};return context.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_ARGS_UPDATED,onArgsUpdated),()=>context.channel.off(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_ARGS_UPDATED,onArgsUpdated)}),[storyId,context.channel]);let updateArgs=(0,react.useCallback)((updatedArgs=>context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.UPDATE_STORY_ARGS,{storyId,updatedArgs})),[storyId,context.channel]),resetArgs=(0,react.useCallback)((argNames=>context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.RESET_STORY_ARGS,{storyId,argNames})),[storyId,context.channel]);return story&&[args,updateArgs,resetArgs]};function extractComponentArgTypes2(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error("Args unsupported. See Args documentation for your framework.");return extractArgTypes(component)}var Controls3=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let context=(0,react.useContext)(DocsContext),{story}=context.resolveOf(of||"story",["story"]),{parameters,argTypes,component,subcomponents}=story,controlsParameters=parameters.docs?.controls||{},include=props.include??controlsParameters.include,exclude=props.exclude??controlsParameters.exclude,sort=props.sort??controlsParameters.sort,[args,updateArgs,resetArgs]=((story,context)=>{let result=useArgsIfDefined(story,context);if(!result)throw new Error("No result when story was defined");return result})(story,context),[globals]=((story,context)=>{let storyContext=context.getStoryContext(story),[globals,setGlobals]=(0,react.useState)(storyContext.globals);return(0,react.useEffect)((()=>{let onGlobalsUpdated=changed=>{setGlobals(changed.globals)};return context.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.GLOBALS_UPDATED,onGlobalsUpdated),()=>context.channel.off(external_STORYBOOK_MODULE_CORE_EVENTS_.GLOBALS_UPDATED,onGlobalsUpdated)}),[context.channel]),[globals]})(story,context),filteredArgTypes=(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(argTypes,include,exclude);if(!(subcomponents&&Object.keys(subcomponents).length>0))return Object.keys(filteredArgTypes).length>0||Object.keys(args).length>0?react.createElement(ArgsTable,{rows:filteredArgTypes,sort,args,globals,updateArgs,resetArgs}):null;let mainComponentName=getComponentName(component),subcomponentTabs=Object.fromEntries(Object.entries(subcomponents).map((([key,comp])=>[key,{rows:(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(extractComponentArgTypes2(comp,parameters),include,exclude),sort}]))),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return react.createElement(TabbedArgsTable,{tabs,sort,args,globals,updateArgs,resetArgs})},{document:document2}=external_STORYBOOK_MODULE_GLOBAL_.global,CodeOrSourceMdx=({className,children,...rest})=>{if("string"!=typeof className&&("string"!=typeof children||!children.match(/[\n\r]/g)))return react.createElement(components_dist.Cy,null,children);let language=className&&className.split("-");return react.createElement(Source,{language:language&&language[1]||"text",format:!1,code:children,...rest})};function dist_navigate(context,url){context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.NAVIGATE_URL,url)}var DescriptionType2,dist_A=components_dist.dK.a,AnchorInPage=({hash,children})=>{let context=(0,react.useContext)(DocsContext);return react.createElement(dist_A,{href:hash,target:"_self",onClick:event=>{let id=hash.substring(1);document2.getElementById(id)&&dist_navigate(context,hash)}},children)},AnchorMdx=props=>{let{href,target,children,...rest}=props,context=(0,react.useContext)(DocsContext);return!href||"_blank"===target||/^https?:\/\//.test(href)?react.createElement(dist_A,{...props}):href.startsWith("#")?react.createElement(AnchorInPage,{hash:href},children):react.createElement(dist_A,{href,onClick:event=>{0===event.button&&!event.altKey&&!event.ctrlKey&&!event.metaKey&&!event.shiftKey&&(event.preventDefault(),dist_navigate(context,event.currentTarget.getAttribute("href")))},target,...rest},children)},SUPPORTED_MDX_HEADERS=["h1","h2","h3","h4","h5","h6"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce(((acc,headerType)=>({...acc,[headerType]:(0,dist.I4)(headerType)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})})),{}),OcticonAnchor=dist.I4.a((()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"}))),HeaderWithOcticonAnchor=({as,id,children,...rest})=>{let context=(0,react.useContext)(DocsContext),OcticonHeader=OcticonHeaders[as],hash=`#${id}`;return react.createElement(OcticonHeader,{id,...rest},react.createElement(OcticonAnchor,{"aria-hidden":"true",href:hash,tabIndex:-1,target:"_self",onClick:event=>{document2.getElementById(id)&&dist_navigate(context,hash)}},react.createElement(icons_dist.qYV,null)),children)},HeaderMdx=props=>{let{as,id,children,...rest}=props;if(id)return react.createElement(HeaderWithOcticonAnchor,{as,id,...rest},children);let Component4=as,{as:omittedAs,...withoutAs}=props;return react.createElement(Component4,{...(0,components_dist.mc)(withoutAs,as)})},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce(((acc,headerType)=>({...acc,[headerType]:props=>react.createElement(HeaderMdx,{as:headerType,...props})})),{}),Markdown2=props=>{if(!props.children)return null;if("string"!=typeof props.children)throw new Error(esm.A`The Markdown block only accepts children as a single string, but children were of type: '${typeof props.children}' + This is often caused by not wrapping the child in a template string. + + This is invalid: + + # Some heading + A paragraph + + + Instead do: + + {\` + # Some heading + A paragraph + \`} + + `);return react.createElement(index_modern,{...props,options:{forceBlock:!0,overrides:{code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx,...props?.options?.overrides},...props?.options}})},DescriptionType=((DescriptionType2=DescriptionType||{}).INFO="info",DescriptionType2.NOTES="notes",DescriptionType2.DOCGEN="docgen",DescriptionType2.AUTO="auto",DescriptionType2),DescriptionContainer=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let markdown=(resolvedOf=>{switch(resolvedOf.type){case"story":return resolvedOf.story.parameters.docs?.description?.story||null;case"meta":{let{parameters,component}=resolvedOf.preparedMeta,metaDescription=parameters.docs?.description?.component;return metaDescription||parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}case"component":{let{component,projectAnnotations:{parameters}}=resolvedOf;return parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${resolvedOf.type}`)}})(useOf(of||"meta"));return markdown?react.createElement(Markdown2,null,markdown):null},Wrapper10=dist.I4.div((({theme})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}}))),Content=dist.I4.div((({theme})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${theme.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:theme.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:theme.color.secondary,textDecoration:"none"}}))),Heading=dist.I4.p((({theme})=>({fontWeight:600,fontSize:"0.875em",color:theme.textColor,textTransform:"uppercase",marginBottom:10}))),OptionalTitle=({title})=>null===title?null:"string"==typeof title?react.createElement(Heading,null,title):title,TableOfContents=({title,disable,headingSelector,contentsSelector,ignoreSelector,unsafeTocbotOptions})=>((0,react.useEffect)((()=>{let configuration={tocSelector:".toc-wrapper",contentSelector:contentsSelector??".sbdocs-content",headingSelector:headingSelector??"h3",ignoreSelector:ignoreSelector??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...unsafeTocbotOptions},timeout=setTimeout((()=>tocbot.Ts(configuration)),100);return()=>{clearTimeout(timeout),tocbot.zr()}}),[disable]),react.createElement(react.Fragment,null,react.createElement(Wrapper10,null,disable?null:react.createElement(Content,null,react.createElement(OptionalTitle,{title:title||null}),react.createElement("div",{className:"toc-wrapper"}))))),{document:document3,window:globalWindow3}=external_STORYBOOK_MODULE_GLOBAL_.global,DocsContainer=({context,theme,children})=>{let toc;try{toc=context.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc}catch{toc=context?.projectAnnotations?.parameters?.docs?.toc}return(0,react.useEffect)((()=>{let url;try{if(url=new URL(globalWindow3.parent.location.toString()),url.hash){let element=document3.getElementById(url.hash.substring(1));element&&setTimeout((()=>{!function scrollToElement(element,block="start"){element.scrollIntoView({behavior:"smooth",block,inline:"nearest"})}(element)}),200)}}catch{}})),react.createElement(DocsContext.Provider,{value:context},react.createElement(SourceContainer,{channel:context.channel},react.createElement(dist.NP,{theme:(0,dist.D8)(theme)},react.createElement(DocsPageWrapper,{toc:toc?react.createElement(TableOfContents,{className:"sbdocs sbdocs-toc--custom",...toc}):null},children))))},STORY_KIND_PATH_SEPARATOR=/\s*\/\s*/,Title2=props=>{let preparedMeta,{children,of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");try{preparedMeta=useOf(of||"meta",["meta"]).preparedMeta}catch(error){if(children&&!error.message.includes("did you forget to use ?"))throw error}let content=children||(title=>{let groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups?.[groups?.length-1]||title})(preparedMeta?.title);return content?react.createElement(Title,{className:"sbdocs-title sb-unstyled"},content):null},Subtitle2=props=>{let preparedMeta,{of,children}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");try{preparedMeta=useOf(of||"meta",["meta"]).preparedMeta}catch(error){if(children&&!error.message.includes("did you forget to use ?"))throw error}let{componentSubtitle,docs}=preparedMeta?.parameters||{};componentSubtitle&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)("Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle");let content=children||docs?.subtitle||componentSubtitle;return content?react.createElement(Subtitle,{className:"sbdocs-subtitle sb-unstyled"},content):null},Subheading=({children,disableAnchor})=>{if(disableAnchor||"string"!=typeof children)return react.createElement(components_dist.H3,null,children);let tagID=globalThis.encodeURIComponent(children.toLowerCase());return react.createElement(HeaderMdx,{as:"h3",id:tagID},children)},DocsStory=({of,expanded=!0,withToolbar:withToolbarProp=!1,__forceInitialArgs=!1,__primary=!1})=>{let{story}=useOf(of||"story",["story"]),withToolbar=story.parameters.docs?.canvas?.withToolbar??withToolbarProp;return react.createElement(Anchor,{storyId:story.id},expanded&&react.createElement(react.Fragment,null,react.createElement(Subheading,null,story.name),react.createElement(DescriptionContainer,{of})),react.createElement(Canvas,{of,withToolbar,story:{__forceInitialArgs,__primary},source:{__forceInitialArgs}}))},Primary=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile}=useOf(of||"meta",["meta"]),primaryStory=(0,react.useContext)(DocsContext).componentStoriesFromCSFFile(csfFile)[0];return primaryStory?react.createElement(DocsStory,{of:primaryStory.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},StyledHeading=(0,dist.I4)((({children,disableAnchor,...props})=>{if(disableAnchor||"string"!=typeof children)return react.createElement(components_dist.H2,null,children);let tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,"-");return react.createElement(HeaderMdx,{as:"h2",id:tagID,...props},children)}))((({theme})=>({fontSize:theme.typography.size.s2-1+"px",fontWeight:theme.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:theme.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}))),Stories=({title="Stories",includePrimary=!0})=>{let{componentStories,projectAnnotations,getStoryContext}=(0,react.useContext)(DocsContext),stories=componentStories(),{stories:{filter}={filter:void 0}}=projectAnnotations.parameters?.docs||{};return filter&&(stories=stories.filter((story=>filter(story,getStoryContext(story))))),stories.some((story=>story.tags?.includes("autodocs")))&&(stories=stories.filter((story=>story.tags?.includes("autodocs")))),includePrimary||(stories=stories.slice(1)),stories&&0!==stories.length?react.createElement(react.Fragment,null,react.createElement(StyledHeading,null,title),stories.map((story=>story&&react.createElement(DocsStory,{key:story.id,of:story.moduleExport,expanded:!0,__forceInitialArgs:!0})))):null},DocsPage=()=>{let resolvedOf=useOf("meta",["meta"]),{stories}=resolvedOf.csfFile,isSingleStory=1===Object.keys(stories).length;return react.createElement(react.Fragment,null,react.createElement(Title2,null),react.createElement(Subtitle2,null),react.createElement(DescriptionContainer,{of:"meta"}),isSingleStory?react.createElement(DescriptionContainer,{of:"story"}):null,react.createElement(Primary,null),react.createElement(Controls3,null),isSingleStory?null:react.createElement(Stories,null))};function Docs({context,docsParameter}){let Container=docsParameter.container||DocsContainer,Page=docsParameter.page||DocsPage;return react.createElement(Container,{context,theme:docsParameter.theme},react.createElement(Page,null))}var ExternalDocsContext=class extends external_STORYBOOK_MODULE_PREVIEW_API_.DocsContext{constructor(channel,store,renderStoryToElement,processMetaExports){super(channel,store,renderStoryToElement,[]),this.channel=channel,this.store=store,this.renderStoryToElement=renderStoryToElement,this.processMetaExports=processMetaExports,this.referenceMeta=(metaExports,attach)=>{let csfFile=this.processMetaExports(metaExports);this.referenceCSFFile(csfFile),super.referenceMeta(metaExports,attach)}}},ConstantMap=class{constructor(prefix){this.prefix=prefix,this.entries=new Map}get(key){return this.entries.has(key)||this.entries.set(key,`${this.prefix}${this.entries.size}`),this.entries.get(key)}};external_STORYBOOK_MODULE_PREVIEW_API_.Preview;var defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends react.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err)}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:react.createElement(react.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise(((resolve,reject)=>{__webpack_require__.e(8109).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/addon-docs/node_modules/@mdx-js/react/index.js")).then((({MDXProvider})=>(async(node,el,rootOptions)=>{let root=await getReactRoot(el,rootOptions);return new Promise((resolve=>{root.render(react.createElement(WithCallback,{callback:()=>resolve(null)},node))}))})(react.createElement(ErrorBoundary,{showException:reject,key:Math.random()},react.createElement(MDXProvider,{components},react.createElement(TDocs,{context,docsParameter}))),element))).then((()=>resolve()))}))},this.unmount=element=>{((el,shouldUseNewRootApi)=>{let root=nodes.get(el);root&&(root.unmount(),nodes.delete(el))})(element)}}};__webpack_require__("./node_modules/@storybook/addon-docs/dist/chunk-GN5PWX3D.mjs")},"./node_modules/@storybook/addon-docs/node_modules/@storybook/blocks/dist/chunk-GWAJ4KRU.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Y:()=>getControlSetterButtonId,Z:()=>getControlId});var getControlId=value=>`control-${value.replace(/\s+/g,"-")}`,getControlSetterButtonId=value=>`set-${value.replace(/\s+/g,"-")}`},"./node_modules/@storybook/addon-docs/node_modules/@storybook/icons/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{D3D:()=>ChevronDownIcon,LoD:()=>ZoomOutIcon,PU:()=>ZoomIcon,QDE:()=>MarkupIcon,Qpb:()=>SubtractIcon,REV:()=>AddIcon,abt:()=>ChevronSmallDownIcon,bMW:()=>EyeIcon,dbI:()=>EyeCloseIcon,ejX:()=>UndoIcon,npA:()=>VideoIcon,pyG:()=>DocumentIcon,qYV:()=>LinkIcon,tN5:()=>ChevronSmallUpIcon,vKP:()=>ChevronRightIcon,wV5:()=>ZoomResetIcon});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),ZoomIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:color})))),ZoomOutIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:color})))),ZoomResetIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:color})))),EyeIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:color})))),EyeCloseIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:color})))),VideoIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M2.5 10a.5.5 0 100-1 .5.5 0 000 1z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4a2 2 0 012-2h6a2 2 0 012 2v.5l3.189-2.391A.5.5 0 0114 2.5v9a.5.5 0 01-.804.397L10 9.5v.5a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm9 0v1.5a.5.5 0 00.8.4L13 3.5v7L9.8 8.1a.5.5 0 00-.8.4V10a1 1 0 01-1 1H2a1 1 0 01-1-1V4a1 1 0 011-1h6a1 1 0 011 1z",fill:color})))),DocumentIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:color})))),MarkupIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:color})))),AddIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:color})))),SubtractIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:color})))),LinkIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:color})))),ChevronDownIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:color})))),ChevronRightIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:color})))),ChevronSmallUpIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:color})))),ChevronSmallDownIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:color})))),UndoIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:color}))))}}]); +//# sourceMappingURL=1905.af0799ef.iframe.bundle.js.map \ No newline at end of file diff --git a/refs/pull/1122/merge/1905.af0799ef.iframe.bundle.js.map b/refs/pull/1122/merge/1905.af0799ef.iframe.bundle.js.map new file mode 100644 index 0000000000..7ff11b79e1 --- /dev/null +++ b/refs/pull/1122/merge/1905.af0799ef.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"1905.af0799ef.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;AAwDA","sources":["webpack://service-canada-labs/./node_modules/@storybook/addon-docs/node_modules/@storybook/blocks/dist/index.mjs"],"sourcesContent":["import { getControlSetterButtonId, getControlId } from './chunk-GWAJ4KRU.mjs';\nimport React17, { createContext, lazy, useState, useCallback, useRef, useEffect, Component, cloneElement, useMemo, Suspense, useContext, Children } from 'react';\nimport { styled, ignoreSsrWarning, useTheme, themes, ThemeProvider, convert, ensure } from '@storybook/theming';\nimport { withReset, SyntaxHighlighter, FlexBar, codeCommon, Form, IconButton, components, Zoom, ActionBar, Button, Link, ResetWrapper, Code, nameSpaceClassNames, H3, H2, Loader, EmptyTabContent, TabsState, ErrorFormatter, getStoryHref, WithTooltipPure } from '@storybook/components';\nimport { transparentize, darken, opacify, lighten, rgba } from 'polished';\nimport { global } from '@storybook/global';\nimport { ChevronSmallUpIcon, ChevronSmallDownIcon, AddIcon, SubtractIcon, ChevronDownIcon as ChevronDownIcon$1, ChevronRightIcon, ZoomIcon, ZoomOutIcon, ZoomResetIcon, EyeCloseIcon, EyeIcon, DocumentIcon, UndoIcon, VideoIcon, LinkIcon } from '@storybook/icons';\nimport pickBy from 'lodash/pickBy.js';\nimport { includeConditionalArg } from '@storybook/csf';\nimport { deprecate, once, logger } from '@storybook/client-logger';\nimport Markdown from 'markdown-to-jsx';\nimport memoize from 'memoizerific';\nimport uniq from 'lodash/uniq.js';\nimport cloneDeep from 'lodash/cloneDeep.js';\nimport { filterArgTypes, composeConfigs, Preview as Preview$1, DocsContext as DocsContext$1 } from '@storybook/preview-api';\nimport { SNIPPET_RENDERED, SourceType } from '@storybook/docs-tools';\nimport { stringify } from 'telejson';\nimport { GLOBALS_UPDATED, STORY_ARGS_UPDATED, UPDATE_STORY_ARGS, RESET_STORY_ARGS, NAVIGATE_URL } from '@storybook/core-events';\nimport dedent from 'ts-dedent';\nimport * as tocbot from 'tocbot';\nimport { Channel } from '@storybook/channels';\n\nvar Wrapper=styled.div(withReset,({theme})=>({backgroundColor:theme.base===\"light\"?\"rgba(0,0,0,.01)\":\"rgba(255,255,255,.01)\",borderRadius:theme.appBorderRadius,border:`1px dashed ${theme.appBorderColor}`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:20,margin:\"25px 0 40px\",color:transparentize(.3,theme.color.defaultText),fontSize:theme.typography.size.s2})),EmptyBlock=props=>React17.createElement(Wrapper,{...props,className:\"docblock-emptyblock sb-unstyled\"});var StyledSyntaxHighlighter=styled(SyntaxHighlighter)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,lineHeight:\"19px\",margin:\"25px 0 40px\",borderRadius:theme.appBorderRadius,boxShadow:theme.base===\"light\"?\"rgba(0, 0, 0, 0.10) 0 1px 3px 0\":\"rgba(0, 0, 0, 0.20) 0 2px 5px 0\",\"pre.prismjs\":{padding:20,background:\"inherit\"}}));var SourceSkeletonWrapper=styled.div(({theme})=>({background:theme.background.content,borderRadius:theme.appBorderRadius,border:`1px solid ${theme.appBorderColor}`,boxShadow:theme.base===\"light\"?\"rgba(0, 0, 0, 0.10) 0 1px 3px 0\":\"rgba(0, 0, 0, 0.20) 0 2px 5px 0\",margin:\"25px 0 40px\",padding:\"20px 20px 20px 22px\"})),SourceSkeletonPlaceholder=styled.div(({theme})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,height:17,marginTop:1,width:\"60%\",[`&:first-child${ignoreSsrWarning}`]:{margin:0}})),SourceSkeleton=()=>React17.createElement(SourceSkeletonWrapper,null,React17.createElement(SourceSkeletonPlaceholder,null),React17.createElement(SourceSkeletonPlaceholder,{style:{width:\"80%\"}}),React17.createElement(SourceSkeletonPlaceholder,{style:{width:\"30%\"}}),React17.createElement(SourceSkeletonPlaceholder,{style:{width:\"80%\"}})),Source=({isLoading,error,language,code,dark,format:format2=!1,...rest})=>{let{typography}=useTheme();if(isLoading)return React17.createElement(SourceSkeleton,null);if(error)return React17.createElement(EmptyBlock,null,error);let syntaxHighlighter=React17.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,format:format2,language,className:\"docblock-source sb-unstyled\",...rest},code);if(typeof dark>\"u\")return syntaxHighlighter;let overrideTheme=dark?themes.dark:themes.light;return React17.createElement(ThemeProvider,{theme:convert({...overrideTheme,fontCode:typography.fonts.mono,fontBase:typography.fonts.base})},syntaxHighlighter)};var toGlobalSelector=element=>`& :where(${element}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${element}))`,breakpoint=600,Title=styled.h1(withReset,({theme})=>({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.bold,lineHeight:\"32px\",[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.l1,lineHeight:\"36px\",marginBottom:\"16px\"}})),Subtitle=styled.h2(withReset,({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:\"20px\",borderBottom:\"none\",marginBottom:15,[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.m1,lineHeight:\"28px\",marginBottom:24},color:transparentize(.25,theme.color.defaultText)})),DocsContent=styled.div(({theme})=>{let reset={fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",WebkitTapHighlightColor:\"rgba(0, 0, 0, 0)\",WebkitOverflowScrolling:\"touch\"},headers={margin:\"20px 0 8px\",padding:0,cursor:\"text\",position:\"relative\",color:theme.color.defaultText,\"&:first-of-type\":{marginTop:0,paddingTop:0},\"&:hover a.anchor\":{textDecoration:\"none\"},\"& code\":{fontSize:\"inherit\"}},code={lineHeight:1,margin:\"0 2px\",padding:\"3px 5px\",whiteSpace:\"nowrap\",borderRadius:3,fontSize:theme.typography.size.s2-1,border:theme.base===\"light\"?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:theme.base===\"light\"?transparentize(.1,theme.color.defaultText):transparentize(.3,theme.color.defaultText),backgroundColor:theme.base===\"light\"?theme.color.lighter:theme.color.border};return {maxWidth:1e3,width:\"100%\",[toGlobalSelector(\"a\")]:{...reset,fontSize:\"inherit\",lineHeight:\"24px\",color:theme.color.secondary,textDecoration:\"none\",\"&.absent\":{color:\"#cc0000\"},\"&.anchor\":{display:\"block\",paddingLeft:30,marginLeft:-30,cursor:\"pointer\",position:\"absolute\",top:0,left:0,bottom:0}},[toGlobalSelector(\"blockquote\")]:{...reset,margin:\"16px 0\",borderLeft:`4px solid ${theme.color.medium}`,padding:\"0 15px\",color:theme.color.dark,\"& > :first-of-type\":{marginTop:0},\"& > :last-child\":{marginBottom:0}},[toGlobalSelector(\"div\")]:reset,[toGlobalSelector(\"dl\")]:{...reset,margin:\"16px 0\",padding:0,\"& dt\":{fontSize:\"14px\",fontWeight:\"bold\",fontStyle:\"italic\",padding:0,margin:\"16px 0 4px\"},\"& dt:first-of-type\":{padding:0},\"& dt > :first-of-type\":{marginTop:0},\"& dt > :last-child\":{marginBottom:0},\"& dd\":{margin:\"0 0 16px\",padding:\"0 15px\"},\"& dd > :first-of-type\":{marginTop:0},\"& dd > :last-child\":{marginBottom:0}},[toGlobalSelector(\"h1\")]:{...reset,...headers,fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector(\"h2\")]:{...reset,...headers,fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`},[toGlobalSelector(\"h3\")]:{...reset,...headers,fontSize:`${theme.typography.size.m1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector(\"h4\")]:{...reset,...headers,fontSize:`${theme.typography.size.s3}px`},[toGlobalSelector(\"h5\")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`},[toGlobalSelector(\"h6\")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},[toGlobalSelector(\"hr\")]:{border:\"0 none\",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},[toGlobalSelector(\"img\")]:{maxWidth:\"100%\"},[toGlobalSelector(\"li\")]:{...reset,fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:\"24px\",\"& + li\":{marginTop:\".25em\"},\"& ul, & ol\":{marginTop:\".25em\",marginBottom:0},\"& code\":code},[toGlobalSelector(\"ol\")]:{...reset,margin:\"16px 0\",paddingLeft:30,\"& :first-of-type\":{marginTop:0},\"& :last-child\":{marginBottom:0}},[toGlobalSelector(\"p\")]:{...reset,margin:\"16px 0\",fontSize:theme.typography.size.s2,lineHeight:\"24px\",color:theme.color.defaultText,\"& code\":code},[toGlobalSelector(\"pre\")]:{...reset,fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",lineHeight:\"18px\",padding:\"11px 1rem\",whiteSpace:\"pre-wrap\",color:\"inherit\",borderRadius:3,margin:\"1rem 0\",\"&:not(.prismjs)\":{background:\"transparent\",border:\"none\",borderRadius:0,padding:0,margin:0},\"& pre, &.prismjs\":{padding:15,margin:0,whiteSpace:\"pre-wrap\",color:\"inherit\",fontSize:\"13px\",lineHeight:\"19px\",code:{color:\"inherit\",fontSize:\"inherit\"}},\"& code\":{whiteSpace:\"pre\"},\"& code, & tt\":{border:\"none\"}},[toGlobalSelector(\"span\")]:{...reset,\"&.frame\":{display:\"block\",overflow:\"hidden\",\"& > span\":{border:`1px solid ${theme.color.medium}`,display:\"block\",float:\"left\",overflow:\"hidden\",margin:\"13px 0 0\",padding:7,width:\"auto\"},\"& span img\":{display:\"block\",float:\"left\"},\"& span span\":{clear:\"both\",color:theme.color.darkest,display:\"block\",padding:\"5px 0 0\"}},\"&.align-center\":{display:\"block\",overflow:\"hidden\",clear:\"both\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px auto 0\",textAlign:\"center\"},\"& span img\":{margin:\"0 auto\",textAlign:\"center\"}},\"&.align-right\":{display:\"block\",overflow:\"hidden\",clear:\"both\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px 0 0\",textAlign:\"right\"},\"& span img\":{margin:0,textAlign:\"right\"}},\"&.float-left\":{display:\"block\",marginRight:13,overflow:\"hidden\",float:\"left\",\"& span\":{margin:\"13px 0 0\"}},\"&.float-right\":{display:\"block\",marginLeft:13,overflow:\"hidden\",float:\"right\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px auto 0\",textAlign:\"right\"}}},[toGlobalSelector(\"table\")]:{...reset,margin:\"16px 0\",fontSize:theme.typography.size.s2,lineHeight:\"24px\",padding:0,borderCollapse:\"collapse\",\"& tr\":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},\"& tr:nth-of-type(2n)\":{backgroundColor:theme.base===\"dark\"?theme.color.darker:theme.color.lighter},\"& tr th\":{fontWeight:\"bold\",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:\"6px 13px\"},\"& tr td\":{border:`1px solid ${theme.appBorderColor}`,color:theme.color.defaultText,margin:0,padding:\"6px 13px\"},\"& tr th :first-of-type, & tr td :first-of-type\":{marginTop:0},\"& tr th :last-child, & tr td :last-child\":{marginBottom:0}},[toGlobalSelector(\"ul\")]:{...reset,margin:\"16px 0\",paddingLeft:30,\"& :first-of-type\":{marginTop:0},\"& :last-child\":{marginBottom:0},listStyle:\"disc\"}}}),DocsWrapper=styled.div(({theme})=>({background:theme.background.content,display:\"flex\",justifyContent:\"center\",padding:\"4rem 20px\",minHeight:\"100vh\",boxSizing:\"border-box\",gap:\"3rem\",[`@media (min-width: ${breakpoint}px)`]:{}})),DocsPageWrapper=({children,toc})=>React17.createElement(DocsWrapper,{className:\"sbdocs sbdocs-wrapper\"},React17.createElement(DocsContent,{className:\"sbdocs sbdocs-content\"},children),toc);var getBlockBackgroundStyle=theme=>({borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:theme.base===\"light\"?\"rgba(0, 0, 0, 0.10) 0 1px 3px 0\":\"rgba(0, 0, 0, 0.20) 0 2px 5px 0\",border:`1px solid ${theme.appBorderColor}`});var Bar=styled(FlexBar)({position:\"absolute\",left:0,right:0,top:0,transition:\"transform .2s linear\"}),Wrapper2=styled.div({display:\"flex\",alignItems:\"center\",gap:4}),IconPlaceholder=styled.div(({theme})=>({width:14,height:14,borderRadius:2,margin:\"0 7px\",backgroundColor:theme.appBorderColor,animation:`${theme.animation.glow} 1.5s ease-in-out infinite`})),Toolbar=({isLoading,storyId,baseUrl,zoom,resetZoom,...rest})=>React17.createElement(Bar,{...rest},React17.createElement(Wrapper2,{key:\"left\"},isLoading?[1,2,3].map(key=>React17.createElement(IconPlaceholder,{key})):React17.createElement(React17.Fragment,null,React17.createElement(IconButton,{key:\"zoomin\",onClick:e=>{e.preventDefault(),zoom(.8);},title:\"Zoom in\"},React17.createElement(ZoomIcon,null)),React17.createElement(IconButton,{key:\"zoomout\",onClick:e=>{e.preventDefault(),zoom(1.25);},title:\"Zoom out\"},React17.createElement(ZoomOutIcon,null)),React17.createElement(IconButton,{key:\"zoomreset\",onClick:e=>{e.preventDefault(),resetZoom();},title:\"Reset zoom\"},React17.createElement(ZoomResetIcon,null)))));var ZoomContext=createContext({scale:1});var{window:globalWindow}=global,IFrame=class extends Component{constructor(){super(...arguments);this.iframe=null;}componentDidMount(){let{id}=this.props;this.iframe=globalWindow.document.getElementById(id);}shouldComponentUpdate(nextProps){let{scale}=nextProps;return scale!==this.props.scale&&this.setIframeBodyStyle({width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:\"top left\"}),!1}setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}render(){let{id,title,src,allowFullScreen,scale,...rest}=this.props;return React17.createElement(\"iframe\",{id,title,src,...allowFullScreen?{allow:\"fullscreen\"}:{},loading:\"lazy\",...rest})}};var{PREVIEW_URL}=global,BASE_URL=PREVIEW_URL||\"iframe.html\",storyBlockIdFromId=({story,primary})=>`story--${story.id}${primary?\"--primary\":\"\"}`,InlineStory=props=>{let storyRef=useRef(),[showLoader,setShowLoader]=useState(!0),[error,setError]=useState(),{story,height,autoplay,forceInitialArgs,renderStoryToElement}=props;return useEffect(()=>{if(!(story&&storyRef.current))return ()=>{};let element=storyRef.current,cleanup=renderStoryToElement(story,element,{showMain:()=>{},showError:({title,description})=>setError(new Error(`${title} - ${description}`)),showException:err=>setError(err)},{autoplay,forceInitialArgs});return setShowLoader(!1),()=>{Promise.resolve().then(()=>cleanup());}},[autoplay,renderStoryToElement,story]),error?React17.createElement(\"pre\",null,React17.createElement(ErrorFormatter,{error})):React17.createElement(React17.Fragment,null,height?React17.createElement(\"style\",null,`#${storyBlockIdFromId(props)} { min-height: ${height}; transform: translateZ(0); overflow: auto }`):null,showLoader&&React17.createElement(StorySkeleton,null),React17.createElement(\"div\",{ref:storyRef,id:`${storyBlockIdFromId(props)}-inner`,\"data-name\":story.name}))},IFrameStory=({story,height=\"500px\"})=>React17.createElement(\"div\",{style:{width:\"100%\",height}},React17.createElement(ZoomContext.Consumer,null,({scale})=>React17.createElement(IFrame,{key:\"iframe\",id:`iframe--${story.id}`,title:story.name,src:getStoryHref(BASE_URL,story.id,{viewMode:\"story\"}),allowFullScreen:!0,scale,style:{width:\"100%\",height:\"100%\",border:\"0 none\"}}))),Story=props=>{let{inline}=props;return React17.createElement(\"div\",{id:storyBlockIdFromId(props),className:\"sb-story sb-unstyled\",\"data-story-block\":\"true\"},inline?React17.createElement(InlineStory,{...props}):React17.createElement(IFrameStory,{...props}))},StorySkeleton=()=>React17.createElement(Loader,null);var ChildrenContainer=styled.div(({isColumn,columns,layout})=>({display:isColumn||!columns?\"block\":\"flex\",position:\"relative\",flexWrap:\"wrap\",overflow:\"auto\",flexDirection:isColumn?\"column\":\"row\",\"& .innerZoomElementWrapper > *\":isColumn?{width:layout!==\"fullscreen\"?\"calc(100% - 20px)\":\"100%\",display:\"block\"}:{maxWidth:layout!==\"fullscreen\"?\"calc(100% - 20px)\":\"100%\",display:\"inline-block\"}}),({layout=\"padded\"})=>layout===\"centered\"||layout===\"padded\"?{padding:\"30px 20px\",\"& .innerZoomElementWrapper > *\":{width:\"auto\",border:\"10px solid transparent!important\"}}:{},({layout=\"padded\"})=>layout===\"centered\"?{display:\"flex\",justifyContent:\"center\",justifyItems:\"center\",alignContent:\"center\",alignItems:\"center\"}:{},({columns})=>columns&&columns>1?{\".innerZoomElementWrapper > *\":{minWidth:`calc(100% / ${columns} - 20px)`}}:{}),StyledSource=styled(Source)(({theme})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:\"none\",background:theme.base===\"light\"?\"rgba(0, 0, 0, 0.85)\":darken(.05,theme.background.content),color:theme.color.lightest,button:{background:theme.base===\"light\"?\"rgba(0, 0, 0, 0.85)\":darken(.05,theme.background.content)}})),PreviewContainer=styled.div(({theme,withSource,isExpanded})=>({position:\"relative\",overflow:\"hidden\",margin:\"25px 0 40px\",...getBlockBackgroundStyle(theme),borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0,\"h3 + &\":{marginTop:\"16px\"}}),({withToolbar})=>withToolbar&&{paddingTop:40}),getSource=(withSource,expanded,setExpanded)=>{switch(!0){case!!(withSource&&withSource.error):return {source:null,actionItem:{title:\"No code available\",className:\"docblock-code-toggle docblock-code-toggle--disabled\",disabled:!0,onClick:()=>setExpanded(!1)}};case expanded:return {source:React17.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:\"Hide code\",className:\"docblock-code-toggle docblock-code-toggle--expanded\",onClick:()=>setExpanded(!1)}};default:return {source:React17.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:\"Show code\",className:\"docblock-code-toggle\",onClick:()=>setExpanded(!0)}}}};function getStoryId(children){if(Children.count(children)===1){let elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=styled(Toolbar)({position:\"absolute\",top:0,left:0,right:0,height:40}),Relative=styled.div({overflow:\"hidden\",position:\"relative\"}),Preview=({isLoading,isColumn,columns,children,withSource,withToolbar=!1,isExpanded=!1,additionalActions,className,layout=\"padded\",...props})=>{let[expanded,setExpanded]=useState(isExpanded),{source,actionItem}=getSource(withSource,expanded,setExpanded),[scale,setScale]=useState(1),previewClasses=[className].concat([\"sbdocs\",\"sbdocs-preview\",\"sb-unstyled\"]),defaultActionItems=withSource?[actionItem]:[],[additionalActionItems,setAdditionalActionItems]=useState(additionalActions?[...additionalActions]:[]),actionItems=[...defaultActionItems,...additionalActionItems],{window:globalWindow4}=global,copyToClipboard=useCallback(async text=>{let{createCopyToClipboardFunction}=await import('@storybook/components');createCopyToClipboardFunction();},[]),onCopyCapture=e=>{let selection=globalWindow4.getSelection();selection&&selection.type===\"Range\"||(e.preventDefault(),additionalActionItems.filter(item=>item.title===\"Copied\").length===0&©ToClipboard(source.props.code).then(()=>{setAdditionalActionItems([...additionalActionItems,{title:\"Copied\",onClick:()=>{}}]),globalWindow4.setTimeout(()=>setAdditionalActionItems(additionalActionItems.filter(item=>item.title!==\"Copied\")),1500);}));};return React17.createElement(PreviewContainer,{withSource,withToolbar,...props,className:previewClasses.join(\" \")},withToolbar&&React17.createElement(PositionedToolbar,{isLoading,border:!0,zoom:z=>setScale(scale*z),resetZoom:()=>setScale(1),storyId:getStoryId(children),baseUrl:\"./iframe.html\"}),React17.createElement(ZoomContext.Provider,{value:{scale}},React17.createElement(Relative,{className:\"docs-story\",onCopyCapture:withSource&&onCopyCapture},React17.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout},React17.createElement(Zoom.Element,{scale},Array.isArray(children)?children.map((child,i)=>React17.createElement(\"div\",{key:i},child)):React17.createElement(\"div\",null,children))),React17.createElement(ActionBar,{actionItems}))),withSource&&expanded&&source)};styled(Preview)(()=>({\".docs-story\":{paddingTop:32,paddingBottom:40}}));var Table=styled.table(({theme})=>({\"&&\":{borderCollapse:\"collapse\",borderSpacing:0,border:\"none\",tr:{border:\"none !important\",background:\"none\"},\"td, th\":{padding:0,border:\"none\",width:\"auto!important\"},marginTop:0,marginBottom:0,\"th:first-of-type, td:first-of-type\":{paddingLeft:0},\"th:last-of-type, td:last-of-type\":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,\"&:not(:first-of-type)\":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:\"none\",border:\"none\"},code:codeCommon({theme}),div:{span:{fontWeight:\"bold\"}},\"& code\":{margin:0,display:\"inline-block\",fontSize:theme.typography.size.s1}}})),ArgJsDoc=({tags})=>{let params=(tags.params||[]).filter(x=>x.description),hasDisplayableParams=params.length!==0,hasDisplayableDeprecated=tags.deprecated!=null,hasDisplayableReturns=tags.returns!=null&&tags.returns.description!=null;return !hasDisplayableParams&&!hasDisplayableReturns&&!hasDisplayableDeprecated?null:React17.createElement(React17.Fragment,null,React17.createElement(Table,null,React17.createElement(\"tbody\",null,hasDisplayableDeprecated&&React17.createElement(\"tr\",{key:\"deprecated\"},React17.createElement(\"td\",{colSpan:2},React17.createElement(\"strong\",null,\"Deprecated\"),\": \",tags.deprecated.toString())),hasDisplayableParams&¶ms.map(x=>React17.createElement(\"tr\",{key:x.name},React17.createElement(\"td\",null,React17.createElement(\"code\",null,x.name)),React17.createElement(\"td\",null,x.description))),hasDisplayableReturns&&React17.createElement(\"tr\",{key:\"returns\"},React17.createElement(\"td\",null,React17.createElement(\"code\",null,\"Returns\")),React17.createElement(\"td\",null,tags.returns.description)))))};var ITEMS_BEFORE_EXPANSION=8,Summary=styled.div(({isExpanded})=>({display:\"flex\",flexDirection:isExpanded?\"column\":\"row\",flexWrap:\"wrap\",alignItems:\"flex-start\",marginBottom:\"-4px\",minWidth:100})),Text=styled.span(codeCommon,({theme,simple=!1})=>({flex:\"0 0 auto\",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,wordBreak:\"break-word\",whiteSpace:\"normal\",maxWidth:\"100%\",margin:0,marginRight:\"4px\",marginBottom:\"4px\",paddingTop:\"2px\",paddingBottom:\"2px\",lineHeight:\"13px\",...simple&&{background:\"transparent\",border:\"0 none\",paddingLeft:0}})),ExpandButton=styled.button(({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,marginBottom:\"4px\",background:\"none\",border:\"none\"})),Expandable=styled.div(codeCommon,({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,fontSize:theme.typography.size.s1,margin:0,whiteSpace:\"nowrap\",display:\"flex\",alignItems:\"center\"})),Detail=styled.div(({theme,width})=>({width,minWidth:200,maxWidth:800,padding:15,fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,boxSizing:\"content-box\",\"& code\":{padding:\"0 !important\"}})),ChevronUpIcon=styled(ChevronSmallUpIcon)({marginLeft:4}),ChevronDownIcon=styled(ChevronSmallDownIcon)({marginLeft:4}),EmptyArg=()=>React17.createElement(\"span\",null,\"-\"),ArgText=({text,simple})=>React17.createElement(Text,{simple},text),calculateDetailWidth=memoize(1e3)(detail=>{let lines=detail.split(/\\r?\\n/);return `${Math.max(...lines.map(x=>x.length))}ch`}),getSummaryItems=summary=>{if(!summary)return [summary];let summaryItems=summary.split(\"|\").map(value2=>value2.trim());return uniq(summaryItems)},renderSummaryItems=(summaryItems,isExpanded=!0)=>{let items=summaryItems;return isExpanded||(items=summaryItems.slice(0,ITEMS_BEFORE_EXPANSION)),items.map(item=>React17.createElement(ArgText,{key:item,text:item===\"\"?'\"\"':item}))},ArgSummary=({value:value2,initialExpandedArgs})=>{let{summary,detail}=value2,[isOpen,setIsOpen]=useState(!1),[isExpanded,setIsExpanded]=useState(initialExpandedArgs||!1);if(summary==null)return null;let summaryAsString=typeof summary.toString==\"function\"?summary.toString():summary;if(detail==null){if(/[(){}[\\]<>]/.test(summaryAsString))return React17.createElement(ArgText,{text:summaryAsString});let summaryItems=getSummaryItems(summaryAsString),itemsCount=summaryItems.length;return itemsCount>ITEMS_BEFORE_EXPANSION?React17.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),React17.createElement(ExpandButton,{onClick:()=>setIsExpanded(!isExpanded)},isExpanded?\"Show less...\":`Show ${itemsCount-ITEMS_BEFORE_EXPANSION} more...`)):React17.createElement(Summary,null,renderSummaryItems(summaryItems))}return React17.createElement(WithTooltipPure,{closeOnOutsideClick:!0,placement:\"bottom\",visible:isOpen,onVisibleChange:isVisible=>{setIsOpen(isVisible);},tooltip:React17.createElement(Detail,{width:calculateDetailWidth(detail)},React17.createElement(SyntaxHighlighter,{language:\"jsx\",format:!1},detail))},React17.createElement(Expandable,{className:\"sbdocs-expandable\"},React17.createElement(\"span\",null,summaryAsString),isOpen?React17.createElement(ChevronUpIcon,null):React17.createElement(ChevronDownIcon,null)))},ArgValue=({value:value2,initialExpandedArgs})=>value2==null?React17.createElement(EmptyArg,null):React17.createElement(ArgSummary,{value:value2,initialExpandedArgs});var Label=styled.label(({theme})=>({lineHeight:\"18px\",alignItems:\"center\",marginBottom:8,display:\"inline-block\",position:\"relative\",whiteSpace:\"nowrap\",background:theme.boolean.background,borderRadius:\"3em\",padding:1,'&[aria-disabled=\"true\"]':{opacity:.5,input:{cursor:\"not-allowed\"}},input:{appearance:\"none\",width:\"100%\",height:\"100%\",position:\"absolute\",left:0,top:0,margin:0,padding:0,border:\"none\",background:\"transparent\",cursor:\"pointer\",borderRadius:\"3em\",\"&:focus\":{outline:\"none\",boxShadow:`${theme.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:\"center\",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:\"1\",cursor:\"pointer\",display:\"inline-block\",padding:\"7px 15px\",transition:\"all 100ms ease-out\",userSelect:\"none\",borderRadius:\"3em\",color:transparentize(.5,theme.color.defaultText),background:\"transparent\",\"&:hover\":{boxShadow:`${opacify(.3,theme.appBorderColor)} 0 0 0 1px inset`},\"&:active\":{boxShadow:`${opacify(.05,theme.appBorderColor)} 0 0 0 2px inset`,color:opacify(1,theme.appBorderColor)},\"&:first-of-type\":{paddingRight:8},\"&:last-of-type\":{paddingLeft:8}},\"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type\":{background:theme.boolean.selectedBackground,boxShadow:theme.base===\"light\"?`${opacify(.1,theme.appBorderColor)} 0 0 2px`:`${theme.appBorderColor} 0 0 0 1px`,color:theme.color.defaultText,padding:\"7px 15px\"}})),parse=value2=>value2===\"true\",BooleanControl=({name,value:value2,onChange,onBlur,onFocus,argType})=>{let onSetFalse=useCallback(()=>onChange(!1),[onChange]),readonly=!!argType?.table?.readonly;if(value2===void 0)return React17.createElement(Button,{variant:\"outline\",size:\"medium\",id:getControlSetterButtonId(name),onClick:onSetFalse,disabled:readonly},\"Set boolean\");let controlId=getControlId(name),parsedValue=typeof value2==\"string\"?parse(value2):value2;return React17.createElement(Label,{\"aria-disabled\":readonly,htmlFor:controlId,\"aria-label\":name},React17.createElement(\"input\",{id:controlId,type:\"checkbox\",onChange:e=>onChange(e.target.checked),checked:parsedValue,role:\"switch\",disabled:readonly,name,onBlur,onFocus}),React17.createElement(\"span\",{\"aria-hidden\":\"true\"},\"False\"),React17.createElement(\"span\",{\"aria-hidden\":\"true\"},\"True\"))};var parseDate=value2=>{let[year,month,day]=value2.split(\"-\"),result=new Date;return result.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result},parseTime=value2=>{let[hours,minutes]=value2.split(\":\"),result=new Date;return result.setHours(parseInt(hours,10)),result.setMinutes(parseInt(minutes,10)),result},formatDate=value2=>{let date=new Date(value2),year=`000${date.getFullYear()}`.slice(-4),month=`0${date.getMonth()+1}`.slice(-2),day=`0${date.getDate()}`.slice(-2);return `${year}-${month}-${day}`},formatTime=value2=>{let date=new Date(value2),hours=`0${date.getHours()}`.slice(-2),minutes=`0${date.getMinutes()}`.slice(-2);return `${hours}:${minutes}`},FormInput=styled(Form.Input)(({readOnly})=>({opacity:readOnly?.5:1})),FlexSpaced=styled.div(({theme})=>({flex:1,display:\"flex\",input:{marginLeft:10,flex:1,height:32,\"&::-webkit-calendar-picker-indicator\":{opacity:.5,height:12,filter:theme.base===\"light\"?void 0:\"invert(1)\"}},\"input:first-of-type\":{marginLeft:0,flexGrow:4},\"input:last-of-type\":{flexGrow:3}})),DateControl=({name,value:value2,onChange,onFocus,onBlur,argType})=>{let[valid,setValid]=useState(!0),dateRef=useRef(),timeRef=useRef(),readonly=!!argType?.table?.readonly;useEffect(()=>{valid!==!1&&(dateRef&&dateRef.current&&(dateRef.current.value=formatDate(value2)),timeRef&&timeRef.current&&(timeRef.current.value=formatTime(value2)));},[value2]);let onDateChange=e=>{let parsed=parseDate(e.target.value),result=new Date(value2);result.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());let time=result.getTime();time&&onChange(time),setValid(!!time);},onTimeChange=e=>{let parsed=parseTime(e.target.value),result=new Date(value2);result.setHours(parsed.getHours()),result.setMinutes(parsed.getMinutes());let time=result.getTime();time&&onChange(time),setValid(!!time);},controlId=getControlId(name);return React17.createElement(FlexSpaced,null,React17.createElement(FormInput,{type:\"date\",max:\"9999-12-31\",ref:dateRef,id:`${controlId}-date`,name:`${controlId}-date`,readOnly:readonly,onChange:onDateChange,onFocus,onBlur}),React17.createElement(FormInput,{type:\"time\",id:`${controlId}-time`,name:`${controlId}-time`,ref:timeRef,onChange:onTimeChange,readOnly:readonly,onFocus,onBlur}),valid?null:React17.createElement(\"div\",null,\"invalid\"))};var Wrapper3=styled.label({display:\"flex\"}),parse2=value2=>{let result=parseFloat(value2);return Number.isNaN(result)?void 0:result},format=value2=>value2!=null?String(value2):\"\",FormInput2=styled(Form.Input)(({readOnly})=>({opacity:readOnly?.5:1})),NumberControl=({name,value:value2,onChange,min,max,step,onBlur,onFocus,argType})=>{let[inputValue,setInputValue]=useState(typeof value2==\"number\"?value2:\"\"),[forceVisible,setForceVisible]=useState(!1),[parseError,setParseError]=useState(null),readonly=!!argType?.table?.readonly,handleChange=useCallback(event=>{setInputValue(event.target.value);let result=parseFloat(event.target.value);Number.isNaN(result)?setParseError(new Error(`'${event.target.value}' is not a number`)):(onChange(result),setParseError(null));},[onChange,setParseError]),onForceVisible=useCallback(()=>{setInputValue(\"0\"),onChange(0),setForceVisible(!0);},[setForceVisible]),htmlElRef=useRef(null);return useEffect(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),useEffect(()=>{inputValue!==(typeof value2==\"number\"?value2:\"\")&&setInputValue(value2);},[value2]),value2===void 0?React17.createElement(Button,{variant:\"outline\",size:\"medium\",id:getControlSetterButtonId(name),onClick:onForceVisible,disabled:readonly},\"Set number\"):React17.createElement(Wrapper3,null,React17.createElement(FormInput2,{ref:htmlElRef,id:getControlId(name),type:\"number\",onChange:handleChange,size:\"flex\",placeholder:\"Edit number...\",value:inputValue,valid:parseError?\"error\":null,autoFocus:forceVisible,readOnly:readonly,name,min,max,step,onFocus,onBlur}))};var selectedKey=(value2,options)=>{let entry=options&&Object.entries(options).find(([_key,val])=>val===value2);return entry?entry[0]:void 0},selectedKeys=(value2,options)=>value2&&options?Object.entries(options).filter(entry=>value2.includes(entry[1])).map(entry=>entry[0]):[],selectedValues=(keys,options)=>keys&&options&&keys.map(key=>options[key]);var Wrapper4=styled.div(({isInline})=>isInline?{display:\"flex\",flexWrap:\"wrap\",alignItems:\"flex-start\",label:{display:\"inline-flex\",marginRight:15}}:{label:{display:\"flex\"}},props=>{if(props[\"aria-readonly\"]===\"true\")return {input:{cursor:\"not-allowed\"}}}),Text2=styled.span({\"[aria-readonly=true] &\":{opacity:.5}}),Label2=styled.label({lineHeight:\"20px\",alignItems:\"center\",marginBottom:8,\"&:last-child\":{marginBottom:0},input:{margin:0,marginRight:6}}),CheckboxControl=({name,options,value:value2,onChange,isInline,argType})=>{if(!options)return logger.warn(`Checkbox with no options: ${name}`),React17.createElement(React17.Fragment,null,\"-\");let initial=selectedKeys(value2,options),[selected,setSelected]=useState(initial),readonly=!!argType?.table?.readonly,handleChange=e=>{let option=e.target.value,updated=[...selected];updated.includes(option)?updated.splice(updated.indexOf(option),1):updated.push(option),onChange(selectedValues(updated,options)),setSelected(updated);};useEffect(()=>{setSelected(selectedKeys(value2,options));},[value2]);let controlId=getControlId(name);return React17.createElement(Wrapper4,{\"aria-readonly\":readonly,isInline},Object.keys(options).map((key,index)=>{let id=`${controlId}-${index}`;return React17.createElement(Label2,{key:id,htmlFor:id},React17.createElement(\"input\",{type:\"checkbox\",disabled:readonly,id,name:id,value:key,onChange:handleChange,checked:selected?.includes(key)}),React17.createElement(Text2,null,key))}))};var Wrapper5=styled.div(({isInline})=>isInline?{display:\"flex\",flexWrap:\"wrap\",alignItems:\"flex-start\",label:{display:\"inline-flex\",marginRight:15}}:{label:{display:\"flex\"}},props=>{if(props[\"aria-readonly\"]===\"true\")return {input:{cursor:\"not-allowed\"}}}),Text3=styled.span({\"[aria-readonly=true] &\":{opacity:.5}}),Label3=styled.label({lineHeight:\"20px\",alignItems:\"center\",marginBottom:8,\"&:last-child\":{marginBottom:0},input:{margin:0,marginRight:6}}),RadioControl=({name,options,value:value2,onChange,isInline,argType})=>{if(!options)return logger.warn(`Radio with no options: ${name}`),React17.createElement(React17.Fragment,null,\"-\");let selection=selectedKey(value2,options),controlId=getControlId(name),readonly=!!argType?.table?.readonly;return React17.createElement(Wrapper5,{\"aria-readonly\":readonly,isInline},Object.keys(options).map((key,index)=>{let id=`${controlId}-${index}`;return React17.createElement(Label3,{key:id,htmlFor:id},React17.createElement(\"input\",{type:\"radio\",id,name:id,disabled:readonly,value:key,onChange:e=>onChange(options[e.currentTarget.value]),checked:key===selection}),React17.createElement(Text3,null,key))}))};var styleResets={appearance:\"none\",border:\"0 none\",boxSizing:\"inherit\",display:\" block\",margin:\" 0\",background:\"transparent\",padding:0,fontSize:\"inherit\",position:\"relative\"},OptionsSelect=styled.select(styleResets,({theme})=>({boxSizing:\"border-box\",position:\"relative\",padding:\"6px 10px\",width:\"100%\",color:theme.input.color||\"inherit\",background:theme.input.background,borderRadius:theme.input.borderRadius,boxShadow:`${theme.input.border} 0 0 0 1px inset`,fontSize:theme.typography.size.s2-1,lineHeight:\"20px\",\"&:focus\":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:\"none\"},\"&[disabled]\":{cursor:\"not-allowed\",opacity:.5},\"::placeholder\":{color:theme.textMutedColor},\"&[multiple]\":{overflow:\"auto\",padding:0,option:{display:\"block\",padding:\"6px 10px\",marginLeft:1,marginRight:1}}})),SelectWrapper=styled.span(({theme})=>({display:\"inline-block\",lineHeight:\"normal\",overflow:\"hidden\",position:\"relative\",verticalAlign:\"top\",width:\"100%\",svg:{position:\"absolute\",zIndex:1,pointerEvents:\"none\",height:\"12px\",marginTop:\"-6px\",right:\"12px\",top:\"50%\",fill:theme.textMutedColor,path:{fill:theme.textMutedColor}}})),NO_SELECTION=\"Choose option...\",SingleSelect=({name,value:value2,options,onChange,argType})=>{let handleChange=e=>{onChange(options[e.currentTarget.value]);},selection=selectedKey(value2,options)||NO_SELECTION,controlId=getControlId(name),readonly=!!argType?.table?.readonly;return React17.createElement(SelectWrapper,null,React17.createElement(ChevronSmallDownIcon,null),React17.createElement(OptionsSelect,{disabled:readonly,id:controlId,value:selection,onChange:handleChange},React17.createElement(\"option\",{key:\"no-selection\",disabled:!0},NO_SELECTION),Object.keys(options).map(key=>React17.createElement(\"option\",{key,value:key},key))))},MultiSelect=({name,value:value2,options,onChange,argType})=>{let handleChange=e=>{let selection2=Array.from(e.currentTarget.options).filter(option=>option.selected).map(option=>option.value);onChange(selectedValues(selection2,options));},selection=selectedKeys(value2,options),controlId=getControlId(name),readonly=!!argType?.table?.readonly;return React17.createElement(SelectWrapper,null,React17.createElement(OptionsSelect,{disabled:readonly,id:controlId,multiple:!0,value:selection,onChange:handleChange},Object.keys(options).map(key=>React17.createElement(\"option\",{key,value:key},key))))},SelectControl=props=>{let{name,options}=props;return options?props.isMulti?React17.createElement(MultiSelect,{...props}):React17.createElement(SingleSelect,{...props}):(logger.warn(`Select with no options: ${name}`),React17.createElement(React17.Fragment,null,\"-\"))};var normalizeOptions=(options,labels)=>Array.isArray(options)?options.reduce((acc,item)=>(acc[labels?.[item]||String(item)]=item,acc),{}):options,Controls={check:CheckboxControl,\"inline-check\":CheckboxControl,radio:RadioControl,\"inline-radio\":RadioControl,select:SelectControl,\"multi-select\":SelectControl},OptionsControl=props=>{let{type=\"select\",labels,argType}=props,normalized={...props,argType,options:argType?normalizeOptions(argType.options,labels):{},isInline:type.includes(\"inline\"),isMulti:type.includes(\"multi\")},Control=Controls[type];if(Control)return React17.createElement(Control,{...normalized});throw new Error(`Unknown options type: ${type}`)};var VALUE=\"value\",KEY=\"key\";var ERROR=\"Error\",OBJECT=\"Object\",ARRAY=\"Array\",STRING=\"String\",NUMBER=\"Number\",BOOLEAN=\"Boolean\",DATE=\"Date\",NULL=\"Null\",UNDEFINED=\"Undefined\",FUNCTION=\"Function\",SYMBOL=\"Symbol\";var ADD_DELTA_TYPE=\"ADD_DELTA_TYPE\",REMOVE_DELTA_TYPE=\"REMOVE_DELTA_TYPE\",UPDATE_DELTA_TYPE=\"UPDATE_DELTA_TYPE\";function getObjectType(obj){return obj!==null&&typeof obj==\"object\"&&!Array.isArray(obj)&&typeof obj[Symbol.iterator]==\"function\"?\"Iterable\":Object.prototype.toString.call(obj).slice(8,-1)}function isComponentWillChange(oldValue,newValue){let oldType=getObjectType(oldValue),newType=getObjectType(newValue);return (oldType===\"Function\"||newType===\"Function\")&&newType!==oldType}var JsonAddValue=class extends Component{constructor(props){super(props),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this);}componentDidMount(){let{inputRefKey,inputRefValue}=this.state,{onlyValue}=this.props;inputRefKey&&typeof inputRefKey.focus==\"function\"&&inputRefKey.focus(),onlyValue&&inputRefValue&&typeof inputRefValue.focus==\"function\"&&inputRefValue.focus(),document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.onSubmit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.props.handleCancel()));}onSubmit(){let{handleAdd,onlyValue,onSubmitValueParser,keyPath,deep}=this.props,{inputRefKey,inputRefValue}=this.state,result={};if(!onlyValue){if(!inputRefKey.value)return;result.key=inputRefKey.value;}result.newValue=onSubmitValueParser(!1,keyPath,deep,result.key,inputRefValue.value),handleAdd(result);}refInputKey(node){this.state.inputRefKey=node;}refInputValue(node){this.state.inputRefValue=node;}render(){let{handleCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep}=this.props,addButtonElementLayout=cloneElement(addButtonElement,{onClick:this.onSubmit}),cancelButtonElementLayout=cloneElement(cancelButtonElement,{onClick:handleCancel}),inputElementValue=inputElementGenerator(VALUE,keyPath,deep),inputElementValueLayout=cloneElement(inputElementValue,{placeholder:\"Value\",ref:this.refInputValue}),inputElementKeyLayout=null;if(!onlyValue){let inputElementKey=inputElementGenerator(KEY,keyPath,deep);inputElementKeyLayout=cloneElement(inputElementKey,{placeholder:\"Key\",ref:this.refInputKey});}return React17.createElement(\"span\",{className:\"rejt-add-value-node\"},inputElementKeyLayout,inputElementValueLayout,cancelButtonElementLayout,addButtonElementLayout)}};JsonAddValue.defaultProps={onlyValue:!1,addButtonElement:React17.createElement(\"button\",null,\"+\"),cancelButtonElement:React17.createElement(\"button\",null,\"c\")};var JsonArray=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={data:props.data,name:props.name,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleRemoveItem(index){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[index];beforeRemoveAction(index,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key:index,oldValue,type:REMOVE_DELTA_TYPE};data.splice(index,1),this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleAddValueAdd({newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(data.length,keyPath,deep,newValue).then(()=>{let newData=[...data,newValue];this.setState({data:newData}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],newData),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key:newData.length-1,newValue});}).catch(logger4.error);}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleEditValue({key,value:value2}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeUpdateAction(key,keyPath,deep,oldValue,value2).then(()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key,newValue:value2,oldValue}),resolve(void 0);}).catch(reject);})}renderCollapsed(){let{name,data,keyPath,deep}=this.state,{handleRemove,readOnly,getStyle,dataType,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus});return React17.createElement(\"span\",{className:\"rejt-collapsed\"},React17.createElement(\"span\",{className:\"rejt-collapsed-text\",style:collapsed,onClick:this.handleCollapseMode},\"[...] \",data.length,\" \",data.length===1?\"item\":\"items\"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,addFormVisible,nextDeep}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,delimiter,ul,addForm}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=cloneElement(plusMenuElement,{onClick:this.handleAddMode,className:\"rejt-plus-menu\",style:plus}),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus});return React17.createElement(\"span\",{className:\"rejt-not-collapsed\"},React17.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"[\"),!addFormVisible&&addItemButton,React17.createElement(\"ul\",{className:\"rejt-not-collapsed-list\",style:ul},data.map((item,index)=>React17.createElement(JsonNode,{key:index,name:index.toString(),data:item,keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveItem(index),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}))),!isReadOnly&&addFormVisible&&React17.createElement(\"div\",{className:\"rejt-add-form\",style:addForm},React17.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),React17.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"]\"),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{dataType,getStyle}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return React17.createElement(\"div\",{className:\"rejt-array-node\"},React17.createElement(\"span\",{onClick:this.handleCollapseMode},React17.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" :\",\" \")),value2)}};JsonArray.defaultProps={keyPath:[],deep:0,minusMenuElement:React17.createElement(\"span\",null,\" - \"),plusMenuElement:React17.createElement(\"span\",null,\" + \")};var JsonFunctionValue=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this);}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,readOnlyResult=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!readOnlyResult&&typeof inputRef.focus==\"function\"&&inputRef.focus();}componentDidMount(){document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.handleEdit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value);handleUpdateValue({value:newValue,key:name}).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,textareaElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),result=null,minusElement=null,resultOnlyResult=readOnly(name,originalValue,keyPath,deep,dataType);if(editEnabled&&!resultOnlyResult){let textareaElement=textareaElementGenerator(VALUE,comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=cloneElement(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=cloneElement(cancelButtonElement,{onClick:this.handleCancelEdit}),textareaElementLayout=cloneElement(textareaElement,{ref:this.refInput,defaultValue:originalValue});result=React17.createElement(\"span\",{className:\"rejt-edit-form\",style:style.editForm},textareaElementLayout,\" \",cancelButtonElementLayout,editButtonElementLayout),minusElement=null;}else {result=React17.createElement(\"span\",{className:\"rejt-value\",style:style.value,onClick:resultOnlyResult?null:this.handleEditMode},value2);let minusMenuLayout=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:style.minus});minusElement=resultOnlyResult?null:minusMenuLayout;}return React17.createElement(\"li\",{className:\"rejt-function-value-node\",style:style.li},React17.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" :\",\" \"),result,minusElement)}};JsonFunctionValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:React17.createElement(\"button\",null,\"e\"),cancelButtonElement:React17.createElement(\"button\",null,\"c\"),minusMenuElement:React17.createElement(\"span\",null,\" - \")};var JsonNode=class extends Component{constructor(props){super(props),this.state={data:props.data,name:props.name,keyPath:props.keyPath,deep:props.deep};}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}render(){let{data,name,keyPath,deep}=this.state,{isCollapsed,handleRemove,handleUpdateValue,onUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,readOnlyTrue=()=>!0,dataType=getObjectType(data);switch(dataType){case ERROR:return React17.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly:readOnlyTrue,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case OBJECT:return React17.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case ARRAY:return React17.createElement(JsonArray,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case STRING:return React17.createElement(JsonValue,{name,value:`\"${data}\"`,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NUMBER:return React17.createElement(JsonValue,{name,value:data,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case BOOLEAN:return React17.createElement(JsonValue,{name,value:data?\"true\":\"false\",originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case DATE:return React17.createElement(JsonValue,{name,value:data.toISOString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NULL:return React17.createElement(JsonValue,{name,value:\"null\",originalValue:\"null\",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case UNDEFINED:return React17.createElement(JsonValue,{name,value:\"undefined\",originalValue:\"undefined\",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case FUNCTION:return React17.createElement(JsonFunctionValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,textareaElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case SYMBOL:return React17.createElement(JsonValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});default:return null}}};JsonNode.defaultProps={keyPath:[],deep:0};var JsonObject=class extends Component{constructor(props){super(props);let keyPath=props.deep===-1?[]:[...props.keyPath,props.name];this.state={name:props.name,data:props.data,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleAddValueAdd({key,newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(key,keyPath,deep,newValue).then(()=>{data[key]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key,newValue});}).catch(logger4.error);}handleRemoveValue(key){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeRemoveAction(key,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key,oldValue,type:REMOVE_DELTA_TYPE};delete data[key],this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleEditValue({key,value:value2}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeUpdateAction(key,keyPath,deep,oldValue,value2).then(()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key,newValue:value2,oldValue}),resolve();}).catch(reject);})}renderCollapsed(){let{name,keyPath,deep,data}=this.state,{handleRemove,readOnly,dataType,getStyle,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus});return React17.createElement(\"span\",{className:\"rejt-collapsed\"},React17.createElement(\"span\",{className:\"rejt-collapsed-text\",style:collapsed,onClick:this.handleCollapseMode},\"{...}\",\" \",keyList.length,\" \",keyList.length===1?\"key\":\"keys\"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,nextDeep,addFormVisible}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,addForm,ul,delimiter}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=cloneElement(plusMenuElement,{onClick:this.handleAddMode,className:\"rejt-plus-menu\",style:plus}),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus}),list=keyList.map(key=>React17.createElement(JsonNode,{key,name:key,data:data[key],keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveValue(key),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}));return React17.createElement(\"span\",{className:\"rejt-not-collapsed\"},React17.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"{\"),!isReadOnly&&addItemButton,React17.createElement(\"ul\",{className:\"rejt-not-collapsed-list\",style:ul},list),!isReadOnly&&addFormVisible&&React17.createElement(\"div\",{className:\"rejt-add-form\",style:addForm},React17.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),React17.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"}\"),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{getStyle,dataType}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return React17.createElement(\"div\",{className:\"rejt-object-node\"},React17.createElement(\"span\",{onClick:this.handleCollapseMode},React17.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" :\",\" \")),value2)}};JsonObject.defaultProps={keyPath:[],deep:0,minusMenuElement:React17.createElement(\"span\",null,\" - \"),plusMenuElement:React17.createElement(\"span\",null,\" + \")};var JsonValue=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this);}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,isReadOnly=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!isReadOnly&&typeof inputRef.focus==\"function\"&&inputRef.focus();}componentDidMount(){document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.handleEdit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value);handleUpdateValue({value:newValue,key:name}).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,inputElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),isReadOnly=readOnly(name,originalValue,keyPath,deep,dataType),isEditing=editEnabled&&!isReadOnly,inputElement=inputElementGenerator(VALUE,comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=cloneElement(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=cloneElement(cancelButtonElement,{onClick:this.handleCancelEdit}),inputElementLayout=cloneElement(inputElement,{ref:this.refInput,defaultValue:JSON.stringify(originalValue)}),minusMenuLayout=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:style.minus});return React17.createElement(\"li\",{className:\"rejt-value-node\",style:style.li},React17.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" : \"),isEditing?React17.createElement(\"span\",{className:\"rejt-edit-form\",style:style.editForm},inputElementLayout,\" \",cancelButtonElementLayout,editButtonElementLayout):React17.createElement(\"span\",{className:\"rejt-value\",style:style.value,onClick:isReadOnly?null:this.handleEditMode},String(value2)),!isReadOnly&&!isEditing&&minusMenuLayout)}};JsonValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:React17.createElement(\"button\",null,\"e\"),cancelButtonElement:React17.createElement(\"button\",null,\"c\"),minusMenuElement:React17.createElement(\"span\",null,\" - \")};var object={minus:{color:\"red\"},plus:{color:\"green\"},collapsed:{color:\"grey\"},delimiter:{},ul:{padding:\"0px\",margin:\"0 0 0 25px\",listStyle:\"none\"},name:{color:\"#2287CD\"},addForm:{}},array={minus:{color:\"red\"},plus:{color:\"green\"},collapsed:{color:\"grey\"},delimiter:{},ul:{padding:\"0px\",margin:\"0 0 0 25px\",listStyle:\"none\"},name:{color:\"#2287CD\"},addForm:{}},value={minus:{color:\"red\"},editForm:{},value:{color:\"#7bba3d\"},li:{minHeight:\"22px\",lineHeight:\"22px\",outline:\"0px\"},name:{color:\"#2287CD\"}};function parse3(string){let result=string;if(result.indexOf(\"function\")===0)return (0, eval)(`(${result})`);try{result=JSON.parse(string);}catch{}return result}var JsonTree=class extends Component{constructor(props){super(props),this.state={data:props.data,rootName:props.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data||props.rootName!==state.rootName?{data:props.data,rootName:props.rootName}:null}onUpdate(key,data){this.setState({data}),this.props.onFullyUpdate(data);}removeRoot(){this.onUpdate(null,null);}render(){let{data,rootName}=this.state,{isCollapsed,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElement,textareaElement,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser,fallback=null}=this.props,dataType=getObjectType(data),readOnlyFunction=readOnly;getObjectType(readOnly)===\"Boolean\"&&(readOnlyFunction=()=>readOnly);let inputElementFunction=inputElement;inputElement&&getObjectType(inputElement)!==\"Function\"&&(inputElementFunction=()=>inputElement);let textareaElementFunction=textareaElement;return textareaElement&&getObjectType(textareaElement)!==\"Function\"&&(textareaElementFunction=()=>textareaElement),dataType===\"Object\"||dataType===\"Array\"?React17.createElement(\"div\",{className:\"rejt-tree\"},React17.createElement(JsonNode,{data,name:rootName,deep:-1,isCollapsed,onUpdate:this.onUpdate,onDeltaUpdate,readOnly:readOnlyFunction,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator:inputElementFunction,textareaElementGenerator:textareaElementFunction,minusMenuElement,plusMenuElement,handleRemove:this.removeRoot,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})):fallback}};JsonTree.defaultProps={rootName:\"root\",isCollapsed:(keyPath,deep)=>deep!==-1,getStyle:(keyName,data,keyPath,deep,dataType)=>{switch(dataType){case\"Object\":case\"Error\":return object;case\"Array\":return array;default:return value}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(isEditMode,keyPath,deep,name,rawValue)=>parse3(rawValue),inputElement:()=>React17.createElement(\"input\",null),textareaElement:()=>React17.createElement(\"textarea\",null),fallback:null};var {window:globalWindow2}=global,Wrapper6=styled.div(({theme})=>({position:\"relative\",display:\"flex\",'&[aria-readonly=\"true\"]':{opacity:.5},\".rejt-tree\":{marginLeft:\"1rem\",fontSize:\"13px\"},\".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed\":{\"& > svg\":{opacity:0,transition:\"opacity 0.2s\"}},\".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed\":{\"& > svg\":{opacity:1}},\".rejt-edit-form button\":{display:\"none\"},\".rejt-add-form\":{marginLeft:10},\".rejt-add-value-node\":{display:\"inline-flex\",alignItems:\"center\"},\".rejt-name\":{lineHeight:\"22px\"},\".rejt-not-collapsed-delimiter\":{lineHeight:\"22px\"},\".rejt-plus-menu\":{marginLeft:5},\".rejt-object-node > span > *, .rejt-array-node > span > *\":{position:\"relative\",zIndex:2},\".rejt-object-node, .rejt-array-node\":{position:\"relative\"},\".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before\":{content:'\"\"',position:\"absolute\",top:0,display:\"block\",width:\"100%\",marginLeft:\"-1rem\",padding:\"0 4px 0 1rem\",height:22},\".rejt-collapsed::before, .rejt-not-collapsed::before\":{zIndex:1,background:\"transparent\",borderRadius:4,transition:\"background 0.2s\",pointerEvents:\"none\",opacity:.1},\".rejt-object-node:hover, .rejt-array-node:hover\":{\"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before\":{background:theme.color.secondary}},\".rejt-collapsed::after, .rejt-not-collapsed::after\":{content:'\"\"',position:\"absolute\",display:\"inline-block\",pointerEvents:\"none\",width:0,height:0},\".rejt-collapsed::after\":{left:-8,top:8,borderTop:\"3px solid transparent\",borderBottom:\"3px solid transparent\",borderLeft:\"3px solid rgba(153,153,153,0.6)\"},\".rejt-not-collapsed::after\":{left:-10,top:10,borderTop:\"3px solid rgba(153,153,153,0.6)\",borderLeft:\"3px solid transparent\",borderRight:\"3px solid transparent\"},\".rejt-value\":{display:\"inline-block\",border:\"1px solid transparent\",borderRadius:4,margin:\"1px 0\",padding:\"0 4px\",cursor:\"text\",color:theme.color.defaultText},\".rejt-value-node:hover > .rejt-value\":{background:theme.color.lighter,borderColor:theme.appBorderColor}})),ButtonInline=styled.button(({theme,primary})=>({border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:\"transparent\",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?\"bold\":\"normal\",cursor:\"pointer\",order:primary?\"initial\":9})),ActionAddIcon=styled(AddIcon)(({theme,disabled})=>({display:\"inline-block\",verticalAlign:\"middle\",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?\"not-allowed\":\"pointer\",color:theme.textMutedColor,\"&:hover\":disabled?{}:{color:theme.color.ancillary},\"svg + &\":{marginLeft:0}})),ActionSubstractIcon=styled(SubtractIcon)(({theme,disabled})=>({display:\"inline-block\",verticalAlign:\"middle\",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?\"not-allowed\":\"pointer\",color:theme.textMutedColor,\"&:hover\":disabled?{}:{color:theme.color.negative},\"svg + &\":{marginLeft:0}})),Input=styled.input(({theme,placeholder})=>({outline:0,margin:placeholder?1:\"1px 0\",padding:\"3px 4px\",color:theme.color.defaultText,background:theme.background.app,border:`1px solid ${theme.appBorderColor}`,borderRadius:4,lineHeight:\"14px\",width:placeholder===\"Key\"?80:120,\"&:focus\":{border:`1px solid ${theme.color.secondary}`}})),RawButton=styled(IconButton)(({theme})=>({position:\"absolute\",zIndex:2,top:2,right:2,height:21,padding:\"0 3px\",background:theme.background.bar,border:`1px solid ${theme.appBorderColor}`,borderRadius:3,color:theme.textMutedColor,fontSize:\"9px\",fontWeight:\"bold\",textDecoration:\"none\",span:{marginLeft:3,marginTop:1}})),RawInput=styled(Form.Textarea)(({theme})=>({flex:1,padding:\"7px 6px\",fontFamily:theme.typography.fonts.mono,fontSize:\"12px\",lineHeight:\"18px\",\"&::placeholder\":{fontFamily:theme.typography.fonts.base,fontSize:\"13px\"},\"&:placeholder-shown\":{padding:\"7px 10px\"}})),ENTER_EVENT={bubbles:!0,cancelable:!0,key:\"Enter\",code:\"Enter\",keyCode:13},dispatchEnterKey=event=>{event.currentTarget.dispatchEvent(new globalWindow2.KeyboardEvent(\"keydown\",ENTER_EVENT));},selectValue=event=>{event.currentTarget.select();},getCustomStyleFunction=theme=>()=>({name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:\"none\",margin:\"0 0 0 1rem\",padding:0},li:{outline:0}}),ObjectControl=({name,value:value2,onChange,argType})=>{let theme=useTheme(),data=useMemo(()=>value2&&cloneDeep(value2),[value2]),hasData=data!=null,[showRaw,setShowRaw]=useState(!hasData),[parseError,setParseError]=useState(null),readonly=!!argType?.table?.readonly,updateRaw=useCallback(raw=>{try{raw&&onChange(JSON.parse(raw)),setParseError(void 0);}catch(e){setParseError(e);}},[onChange]),[forceVisible,setForceVisible]=useState(!1),onForceVisible=useCallback(()=>{onChange({}),setForceVisible(!0);},[setForceVisible]),htmlElRef=useRef(null);if(useEffect(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),!hasData)return React17.createElement(Button,{disabled:readonly,id:getControlSetterButtonId(name),onClick:onForceVisible},\"Set object\");let rawJSONForm=React17.createElement(RawInput,{ref:htmlElRef,id:getControlId(name),name,defaultValue:value2===null?\"\":JSON.stringify(value2,null,2),onBlur:event=>updateRaw(event.target.value),placeholder:\"Edit JSON string...\",autoFocus:forceVisible,valid:parseError?\"error\":null,readOnly:readonly}),isObjectOrArray=Array.isArray(value2)||typeof value2==\"object\"&&value2?.constructor===Object;return React17.createElement(Wrapper6,{\"aria-readonly\":readonly},isObjectOrArray&&React17.createElement(RawButton,{onClick:e=>{e.preventDefault(),setShowRaw(v=>!v);}},showRaw?React17.createElement(EyeCloseIcon,null):React17.createElement(EyeIcon,null),React17.createElement(\"span\",null,\"RAW\")),showRaw?rawJSONForm:React17.createElement(JsonTree,{readOnly:readonly||!isObjectOrArray,isCollapsed:isObjectOrArray?void 0:()=>!0,data,rootName:name,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:React17.createElement(ButtonInline,{type:\"button\"},\"Cancel\"),editButtonElement:React17.createElement(ButtonInline,{type:\"submit\"},\"Save\"),addButtonElement:React17.createElement(ButtonInline,{type:\"submit\",primary:!0},\"Save\"),plusMenuElement:React17.createElement(ActionAddIcon,null),minusMenuElement:React17.createElement(ActionSubstractIcon,null),inputElement:(_,__,___,key)=>key?React17.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):React17.createElement(Input,null),fallback:rawJSONForm}))};var RangeInput=styled.input(({theme,min,max,value:value2,disabled})=>({\"&\":{width:\"100%\",backgroundColor:\"transparent\",appearance:\"none\"},\"&::-webkit-slider-runnable-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:\"100%\",height:6,cursor:disabled?\"not-allowed\":\"pointer\"},\"&::-webkit-slider-thumb\":{marginTop:\"-6px\",width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:\"50px\",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?\"not-allowed\":\"grab\",appearance:\"none\",background:`${theme.input.background}`,transition:\"all 150ms ease-out\",\"&:hover\":{background:`${darken(.05,theme.input.background)}`,transform:\"scale3d(1.1, 1.1, 1.1) translateY(-1px)\",transition:\"all 50ms ease-out\"},\"&:active\":{background:`${theme.input.background}`,transform:\"scale3d(1, 1, 1) translateY(0px)\",cursor:disabled?\"not-allowed\":\"grab\"}},\"&:focus\":{outline:\"none\",\"&::-webkit-slider-runnable-track\":{borderColor:rgba(theme.color.secondary,.4)},\"&::-webkit-slider-thumb\":{borderColor:theme.color.secondary,boxShadow:`0 0px 5px 0px ${theme.color.secondary}`}},\"&::-moz-range-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:\"100%\",height:6,cursor:disabled?\"not-allowed\":\"pointer\",outline:\"none\"},\"&::-moz-range-thumb\":{width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:\"50px\",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?\"not-allowed\":\"grap\",background:`${theme.input.background}`,transition:\"all 150ms ease-out\",\"&:hover\":{background:`${darken(.05,theme.input.background)}`,transform:\"scale3d(1.1, 1.1, 1.1) translateY(-1px)\",transition:\"all 50ms ease-out\"},\"&:active\":{background:`${theme.input.background}`,transform:\"scale3d(1, 1, 1) translateY(0px)\",cursor:\"grabbing\"}},\"&::-ms-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,color:\"transparent\",width:\"100%\",height:\"6px\",cursor:\"pointer\"},\"&::-ms-fill-lower\":{borderRadius:6},\"&::-ms-fill-upper\":{borderRadius:6},\"&::-ms-thumb\":{width:16,height:16,background:`${theme.input.background}`,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:50,cursor:\"grab\",marginTop:0},\"@supports (-ms-ime-align:auto)\":{\"input[type=range]\":{margin:\"0\"}}})),RangeLabel=styled.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:\"nowrap\",fontFeatureSettings:\"tnum\",fontVariantNumeric:\"tabular-nums\",\"[aria-readonly=true] &\":{opacity:.5}}),RangeCurrentAndMaxLabel=styled(RangeLabel)(({numberOFDecimalsPlaces,max})=>({width:`${numberOFDecimalsPlaces+max.toString().length*2+3}ch`,textAlign:\"right\",flexShrink:0})),RangeWrapper=styled.div({display:\"flex\",alignItems:\"center\",width:\"100%\"});function getNumberOfDecimalPlaces(number){let match=number.toString().match(/(?:\\.(\\d+))?(?:[eE]([+-]?\\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}var RangeControl=({name,value:value2,onChange,min=0,max=100,step=1,onBlur,onFocus,argType})=>{let handleChange=event=>{onChange(parse2(event.target.value));},hasValue=value2!==void 0,numberOFDecimalsPlaces=useMemo(()=>getNumberOfDecimalPlaces(step),[step]),readonly=!!argType?.table?.readonly;return React17.createElement(RangeWrapper,{\"aria-readonly\":readonly},React17.createElement(RangeLabel,null,min),React17.createElement(RangeInput,{id:getControlId(name),type:\"range\",disabled:readonly,onChange:handleChange,name,value:value2,min,max,step,onFocus,onBlur}),React17.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces,max},hasValue?value2.toFixed(numberOFDecimalsPlaces):\"--\",\" / \",max))};var Wrapper7=styled.label({display:\"flex\"}),MaxLength=styled.div(({isMaxed})=>({marginLeft:\"0.75rem\",paddingTop:\"0.35rem\",color:isMaxed?\"red\":void 0})),TextControl=({name,value:value2,onChange,onFocus,onBlur,maxLength,argType})=>{let handleChange=event=>{onChange(event.target.value);},readonly=!!argType?.table?.readonly,[forceVisible,setForceVisible]=useState(!1),onForceVisible=useCallback(()=>{onChange(\"\"),setForceVisible(!0);},[setForceVisible]);if(value2===void 0)return React17.createElement(Button,{variant:\"outline\",size:\"medium\",disabled:readonly,id:getControlSetterButtonId(name),onClick:onForceVisible},\"Set string\");let isValid=typeof value2==\"string\";return React17.createElement(Wrapper7,null,React17.createElement(Form.Textarea,{id:getControlId(name),maxLength,onChange:handleChange,disabled:readonly,size:\"flex\",placeholder:\"Edit string...\",autoFocus:forceVisible,valid:isValid?null:\"error\",name,value:isValid?value2:\"\",onFocus,onBlur}),maxLength&&React17.createElement(MaxLength,{isMaxed:value2?.length===maxLength},value2?.length??0,\" / \",maxLength))};var FileInput=styled(Form.Input)({padding:10});function revokeOldUrls(urls){urls.forEach(url=>{url.startsWith(\"blob:\")&&URL.revokeObjectURL(url);});}var FilesControl=({onChange,name,accept=\"image/*\",value:value2,argType})=>{let inputElement=useRef(null),readonly=argType?.control?.readOnly;function handleFileChange(e){if(!e.target.files)return;let fileUrls=Array.from(e.target.files).map(file=>URL.createObjectURL(file));onChange(fileUrls),revokeOldUrls(value2);}return useEffect(()=>{value2==null&&inputElement.current&&(inputElement.current.value=null);},[value2,name]),React17.createElement(FileInput,{ref:inputElement,id:getControlId(name),type:\"file\",name,multiple:!0,disabled:readonly,onChange:handleFileChange,accept,size:\"flex\"})};var LazyColorControl=lazy(()=>import('./Color-PRSJMWNM.mjs')),ColorControl=props=>React17.createElement(Suspense,{fallback:React17.createElement(\"div\",null)},React17.createElement(LazyColorControl,{...props}));var Controls2={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,\"inline-check\":OptionsControl,radio:OptionsControl,\"inline-radio\":OptionsControl,select:OptionsControl,\"multi-select\":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=()=>React17.createElement(React17.Fragment,null,\"-\"),ArgControl=({row,arg,updateArgs,isHovered})=>{let{key,control}=row,[isFocused,setFocused]=useState(!1),[boxedValue,setBoxedValue]=useState({value:arg});useEffect(()=>{isFocused||setBoxedValue({value:arg});},[isFocused,arg]);let onChange=useCallback(argVal=>(setBoxedValue({value:argVal}),updateArgs({[key]:argVal}),argVal),[updateArgs,key]),onBlur=useCallback(()=>setFocused(!1),[]),onFocus=useCallback(()=>setFocused(!0),[]);if(!control||control.disable){let canBeSetup=control?.disable!==!0&&row?.type?.name!==\"function\";return isHovered&&canBeSetup?React17.createElement(Link,{href:\"https://storybook.js.org/docs/react/essentials/controls\",target:\"_blank\",withArrow:!0},\"Setup controls\"):React17.createElement(NoControl,null)}let props={name:key,argType:row,value:boxedValue.value,onChange,onBlur,onFocus},Control=Controls2[control.type]||NoControl;return React17.createElement(Control,{...props,...control,controlType:control.type})};var Name=styled.span({fontWeight:\"bold\"}),Required=styled.span(({theme})=>({color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:\"help\"})),Description=styled.div(({theme})=>({\"&&\":{p:{margin:\"0 0 10px 0\"},a:{color:theme.color.secondary}},code:{...codeCommon({theme}),fontSize:12,fontFamily:theme.typography.fonts.mono},\"& code\":{margin:0,display:\"inline-block\"},\"& pre > code\":{whiteSpace:\"pre-wrap\"}})),Type=styled.div(({theme,hasDescription})=>({color:theme.base===\"light\"?transparentize(.1,theme.color.defaultText):transparentize(.2,theme.color.defaultText),marginTop:hasDescription?4:0})),TypeWithJsDoc=styled.div(({theme,hasDescription})=>({color:theme.base===\"light\"?transparentize(.1,theme.color.defaultText):transparentize(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12})),StyledTd=styled.td(({theme,expandable})=>({paddingLeft:expandable?\"40px !important\":\"20px !important\"})),toSummary=value2=>value2&&{summary:typeof value2==\"string\"?value2:value2.name},ArgRow=props=>{let[isHovered,setIsHovered]=useState(!1),{row,updateArgs,compact,expandable,initialExpandedArgs}=props,{name,description}=row,table=row.table||{},type=table.type||toSummary(row.type),defaultValue=table.defaultValue||row.defaultValue,required=row.type?.required,hasDescription=description!=null&&description!==\"\";return React17.createElement(\"tr\",{onMouseEnter:()=>setIsHovered(!0),onMouseLeave:()=>setIsHovered(!1)},React17.createElement(StyledTd,{expandable},React17.createElement(Name,null,name),required?React17.createElement(Required,{title:\"Required\"},\"*\"):null),compact?null:React17.createElement(\"td\",null,hasDescription&&React17.createElement(Description,null,React17.createElement(Markdown,null,description)),table.jsDocTags!=null?React17.createElement(React17.Fragment,null,React17.createElement(TypeWithJsDoc,{hasDescription},React17.createElement(ArgValue,{value:type,initialExpandedArgs})),React17.createElement(ArgJsDoc,{tags:table.jsDocTags})):React17.createElement(Type,{hasDescription},React17.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:React17.createElement(\"td\",null,React17.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?React17.createElement(\"td\",null,React17.createElement(ArgControl,{...props,isHovered})):null)};var ExpanderIconDown=styled(ChevronDownIcon$1)(({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:theme.base===\"light\"?transparentize(.25,theme.color.defaultText):transparentize(.3,theme.color.defaultText),border:\"none\",display:\"inline-block\"})),ExpanderIconRight=styled(ChevronRightIcon)(({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:theme.base===\"light\"?transparentize(.25,theme.color.defaultText):transparentize(.3,theme.color.defaultText),border:\"none\",display:\"inline-block\"})),FlexWrapper=styled.span(({theme})=>({display:\"flex\",lineHeight:\"20px\",alignItems:\"center\"})),Section=styled.td(({theme})=>({position:\"relative\",letterSpacing:\"0.35em\",textTransform:\"uppercase\",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s1-1,color:theme.base===\"light\"?transparentize(.4,theme.color.defaultText):transparentize(.6,theme.color.defaultText),background:`${theme.background.app} !important`,\"& ~ td\":{background:`${theme.background.app} !important`}})),Subsection=styled.td(({theme})=>({position:\"relative\",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.app})),StyledTd2=styled.td(()=>({position:\"relative\"})),StyledTr=styled.tr(({theme})=>({\"&:hover > td\":{backgroundColor:`${lighten(.005,theme.background.app)} !important`,boxShadow:`${theme.color.mediumlight} 0 - 1px 0 0 inset`,cursor:\"row-resize\"}})),ClickIntercept=styled.button(()=>({background:\"none\",border:\"none\",padding:\"0\",font:\"inherit\",position:\"absolute\",top:0,bottom:0,left:0,right:0,height:\"100%\",width:\"100%\",color:\"transparent\",cursor:\"row-resize !important\"})),SectionRow=({level=\"section\",label,children,initialExpanded=!0,colSpan=3})=>{let[expanded,setExpanded]=useState(initialExpanded),Level=level===\"subsection\"?Subsection:Section,itemCount=children?.length||0,caption=level===\"subsection\"?`${itemCount} item${itemCount!==1?\"s\":\"\"}`:\"\",helperText=`${expanded?\"Hide\":\"Show\"} ${level===\"subsection\"?itemCount:label} item${itemCount!==1?\"s\":\"\"}`;return React17.createElement(React17.Fragment,null,React17.createElement(StyledTr,{title:helperText},React17.createElement(Level,{colSpan:1},React17.createElement(ClickIntercept,{onClick:e=>setExpanded(!expanded),tabIndex:0},helperText),React17.createElement(FlexWrapper,null,expanded?React17.createElement(ExpanderIconDown,null):React17.createElement(ExpanderIconRight,null),label)),React17.createElement(StyledTd2,{colSpan:colSpan-1},React17.createElement(ClickIntercept,{onClick:e=>setExpanded(!expanded),tabIndex:-1,style:{outline:\"none\"}},helperText),expanded?null:caption)),expanded?children:null)};var Row=styled.div(({theme})=>({display:\"flex\",gap:16,borderBottom:`1px solid ${theme.appBorderColor}`,\"&:last-child\":{borderBottom:0}})),Column=styled.div(({numColumn})=>({display:\"flex\",flexDirection:\"column\",flex:numColumn||1,gap:5,padding:\"12px 20px\"})),SkeletonText=styled.div(({theme,width,height})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,width:width||\"100%\",height:height||16,borderRadius:3})),columnWidth=[2,4,2,2],Skeleton=()=>React17.createElement(React17.Fragment,null,React17.createElement(Row,null,React17.createElement(Column,{numColumn:columnWidth[0]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[1]},React17.createElement(SkeletonText,{width:\"30%\"})),React17.createElement(Column,{numColumn:columnWidth[2]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[3]},React17.createElement(SkeletonText,{width:\"60%\"}))),React17.createElement(Row,null,React17.createElement(Column,{numColumn:columnWidth[0]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[1]},React17.createElement(SkeletonText,{width:\"80%\"}),React17.createElement(SkeletonText,{width:\"30%\"})),React17.createElement(Column,{numColumn:columnWidth[2]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[3]},React17.createElement(SkeletonText,{width:\"60%\"}))),React17.createElement(Row,null,React17.createElement(Column,{numColumn:columnWidth[0]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[1]},React17.createElement(SkeletonText,{width:\"80%\"}),React17.createElement(SkeletonText,{width:\"30%\"})),React17.createElement(Column,{numColumn:columnWidth[2]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[3]},React17.createElement(SkeletonText,{width:\"60%\"}))),React17.createElement(Row,null,React17.createElement(Column,{numColumn:columnWidth[0]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[1]},React17.createElement(SkeletonText,{width:\"80%\"}),React17.createElement(SkeletonText,{width:\"30%\"})),React17.createElement(Column,{numColumn:columnWidth[2]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[3]},React17.createElement(SkeletonText,{width:\"60%\"}))));var Wrapper8=styled.div(({inAddonPanel,theme})=>({height:inAddonPanel?\"100%\":\"auto\",display:\"flex\",border:inAddonPanel?\"none\":`1px solid ${theme.appBorderColor}`,borderRadius:inAddonPanel?0:theme.appBorderRadius,padding:inAddonPanel?0:40,alignItems:\"center\",justifyContent:\"center\",flexDirection:\"column\",gap:15,background:theme.background.content,boxShadow:\"rgba(0, 0, 0, 0.10) 0 1px 3px 0\"})),Links=styled.div(({theme})=>({display:\"flex\",fontSize:theme.typography.size.s2-1,gap:25})),Divider=styled.div(({theme})=>({width:1,height:16,backgroundColor:theme.appBorderColor})),Empty=({inAddonPanel})=>{let[isLoading,setIsLoading]=useState(!0);return useEffect(()=>{let load=setTimeout(()=>{setIsLoading(!1);},100);return ()=>clearTimeout(load)},[]),isLoading?null:React17.createElement(Wrapper8,{inAddonPanel},React17.createElement(EmptyTabContent,{title:inAddonPanel?\"Interactive story playground\":\"Args table with interactive controls couldn't be auto-generated\",description:React17.createElement(React17.Fragment,null,\"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.\"),footer:React17.createElement(Links,null,inAddonPanel&&React17.createElement(React17.Fragment,null,React17.createElement(Link,{href:\"https://youtu.be/0gOfS6K0x0E\",target:\"_blank\",withArrow:!0},React17.createElement(VideoIcon,null),\" Watch 5m video\"),React17.createElement(Divider,null),React17.createElement(Link,{href:\"https://storybook.js.org/docs/essentials/controls\",target:\"_blank\",withArrow:!0},React17.createElement(DocumentIcon,null),\" Read docs\")),!inAddonPanel&&React17.createElement(Link,{href:\"https://storybook.js.org/docs/essentials/controls\",target:\"_blank\",withArrow:!0},React17.createElement(DocumentIcon,null),\" Learn how to set that up\"))}))};var TableWrapper=styled.table(({theme,compact,inAddonPanel})=>({\"&&\":{borderSpacing:0,color:theme.color.defaultText,\"td, th\":{padding:0,border:\"none\",verticalAlign:\"top\",textOverflow:\"ellipsis\"},fontSize:theme.typography.size.s2-1,lineHeight:\"20px\",textAlign:\"left\",width:\"100%\",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?0:40,\"thead th:first-of-type, td:first-of-type\":{width:\"25%\"},\"th:first-of-type, td:first-of-type\":{paddingLeft:20},\"th:nth-of-type(2), td:nth-of-type(2)\":{...compact?null:{width:\"35%\"}},\"td:nth-of-type(3)\":{...compact?null:{width:\"15%\"}},\"th:last-of-type, td:last-of-type\":{paddingRight:20,...compact?null:{width:\"25%\"}},th:{color:theme.base===\"light\"?transparentize(.25,theme.color.defaultText):transparentize(.45,theme.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:\"10px\",paddingBottom:\"10px\",\"&:not(:first-of-type)\":{paddingLeft:15,paddingRight:15},\"&:last-of-type\":{paddingRight:20}},marginLeft:inAddonPanel?0:1,marginRight:inAddonPanel?0:1,tbody:{...inAddonPanel?null:{filter:theme.base===\"light\"?\"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))\":\"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))\"},\"> tr > *\":{background:theme.background.content,borderTop:`1px solid ${theme.appBorderColor}`},...inAddonPanel?null:{\"> tr:first-of-type > *\":{borderBlockStart:`1px solid ${theme.appBorderColor}`},\"> tr:last-of-type > *\":{borderBlockEnd:`1px solid ${theme.appBorderColor}`},\"> tr > *:first-of-type\":{borderInlineStart:`1px solid ${theme.appBorderColor}`},\"> tr > *:last-of-type\":{borderInlineEnd:`1px solid ${theme.appBorderColor}`},\"> tr:first-of-type > td:first-of-type\":{borderTopLeftRadius:theme.appBorderRadius},\"> tr:first-of-type > td:last-of-type\":{borderTopRightRadius:theme.appBorderRadius},\"> tr:last-of-type > td:first-of-type\":{borderBottomLeftRadius:theme.appBorderRadius},\"> tr:last-of-type > td:last-of-type\":{borderBottomRightRadius:theme.appBorderRadius}}}}})),StyledIconButton=styled(IconButton)(({theme})=>({margin:\"-4px -12px -4px 0\"})),ControlHeadingWrapper=styled.span({display:\"flex\",justifyContent:\"space-between\"});var sortFns={alpha:(a,b)=>a.name.localeCompare(b.name),requiredFirst:(a,b)=>+!!b.type?.required-+!!a.type?.required||a.name.localeCompare(b.name),none:void 0},groupRows=(rows,sort)=>{let sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach(([key,row])=>{let{category,subcategory}=row?.table||{};if(category){let section=sections.sections[category]||{ungrouped:[],subsections:{}};if(!subcategory)section.ungrouped.push({key,...row});else {let subsection=section.subsections[subcategory]||[];subsection.push({key,...row}),section.subsections[subcategory]=subsection;}sections.sections[category]=section;}else if(subcategory){let subsection=sections.ungroupedSubsections[subcategory]||[];subsection.push({key,...row}),sections.ungroupedSubsections[subcategory]=subsection;}else sections.ungrouped.push({key,...row});});let sortFn=sortFns[sort],sortSubsection=record=>sortFn?Object.keys(record).reduce((acc,cur)=>({...acc,[cur]:record[cur].sort(sortFn)}),{}):record;return {ungrouped:sections.ungrouped.sort(sortFn),ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce((acc,cur)=>({...acc,[cur]:{ungrouped:sections.sections[cur].ungrouped.sort(sortFn),subsections:sortSubsection(sections.sections[cur].subsections)}}),{})}},safeIncludeConditionalArg=(row,args,globals)=>{try{return includeConditionalArg(row,args,globals)}catch(err){return once.warn(err.message),!1}},ArgsTable=props=>{let{updateArgs,resetArgs,compact,inAddonPanel,initialExpandedArgs,sort=\"none\",isLoading}=props;if(\"error\"in props){let{error}=props;return React17.createElement(EmptyBlock,null,error,\"\\xA0\",React17.createElement(Link,{href:\"http://storybook.js.org/docs/\",target:\"_blank\",withArrow:!0},React17.createElement(DocumentIcon,null),\" Read the docs\"))}if(isLoading)return React17.createElement(Skeleton,null);let{rows,args,globals}=\"rows\"in props&&props,groups=groupRows(pickBy(rows,row=>!row?.table?.disable&&safeIncludeConditionalArg(row,args||{},globals||{})),sort),hasNoUngrouped=groups.ungrouped.length===0,hasNoSections=Object.entries(groups.sections).length===0,hasNoUngroupedSubsections=Object.entries(groups.ungroupedSubsections).length===0;if(hasNoUngrouped&&hasNoSections&&hasNoUngroupedSubsections)return React17.createElement(Empty,{inAddonPanel});let colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);let expandable=Object.keys(groups.sections).length>0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return React17.createElement(ResetWrapper,null,React17.createElement(TableWrapper,{compact,inAddonPanel,className:\"docblock-argstable sb-unstyled\"},React17.createElement(\"thead\",{className:\"docblock-argstable-head\"},React17.createElement(\"tr\",null,React17.createElement(\"th\",null,React17.createElement(\"span\",null,\"Name\")),compact?null:React17.createElement(\"th\",null,React17.createElement(\"span\",null,\"Description\")),compact?null:React17.createElement(\"th\",null,React17.createElement(\"span\",null,\"Default\")),updateArgs?React17.createElement(\"th\",null,React17.createElement(ControlHeadingWrapper,null,\"Control\",\" \",!isLoading&&resetArgs&&React17.createElement(StyledIconButton,{onClick:()=>resetArgs(),title:\"Reset controls\"},React17.createElement(UndoIcon,{\"aria-hidden\":!0})))):null)),React17.createElement(\"tbody\",{className:\"docblock-argstable-body\"},groups.ungrouped.map(row=>React17.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common})),Object.entries(groups.ungroupedSubsections).map(([subcategory,subsection])=>React17.createElement(SectionRow,{key:subcategory,label:subcategory,level:\"subsection\",colSpan},subsection.map(row=>React17.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))),Object.entries(groups.sections).map(([category,section])=>React17.createElement(SectionRow,{key:category,label:category,level:\"section\",colSpan},section.ungrouped.map(row=>React17.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common})),Object.entries(section.subsections).map(([subcategory,subsection])=>React17.createElement(SectionRow,{key:subcategory,label:subcategory,level:\"subsection\",colSpan},subsection.map(row=>React17.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))))))))};var TabbedArgsTable=({tabs,...props})=>{let entries=Object.entries(tabs);return entries.length===1?React17.createElement(ArgsTable,{...entries[0][1],...props}):React17.createElement(TabsState,null,entries.map((entry,index)=>{let[label,table]=entry,id=`prop_table_div_${label}`,Component4=\"div\",argsTableProps=index===0?props:{sort:props.sort};return React17.createElement(Component4,{key:id,id,title:label},({active})=>active?React17.createElement(ArgsTable,{key:`prop_table_${label}`,...table,...argsTableProps}):null)}))};var Label4=styled.div(({theme})=>({marginRight:30,fontSize:`${theme.typography.size.s1}px`,color:theme.base===\"light\"?transparentize(.4,theme.color.defaultText):transparentize(.6,theme.color.defaultText)})),Sample=styled.div({overflow:\"hidden\",whiteSpace:\"nowrap\",textOverflow:\"ellipsis\"}),TypeSpecimen=styled.div({display:\"flex\",flexDirection:\"row\",alignItems:\"baseline\",\"&:not(:last-child)\":{marginBottom:\"1rem\"}}),Wrapper9=styled.div(withReset,({theme})=>({...getBlockBackgroundStyle(theme),margin:\"25px 0 40px\",padding:\"30px 20px\"})),Typeset=({fontFamily,fontSizes,fontWeight,sampleText,...props})=>React17.createElement(Wrapper9,{...props,className:\"docblock-typeset sb-unstyled\"},fontSizes.map(size=>React17.createElement(TypeSpecimen,{key:size},React17.createElement(Label4,null,size),React17.createElement(Sample,{style:{fontFamily,fontSize:size,fontWeight,lineHeight:1.2}},sampleText||\"Was he a beast if music could move him so?\"))));var ItemTitle=styled.div(({theme})=>({fontWeight:theme.typography.weight.bold,color:theme.color.defaultText})),ItemSubtitle=styled.div(({theme})=>({color:theme.base===\"light\"?transparentize(.2,theme.color.defaultText):transparentize(.6,theme.color.defaultText)})),ItemDescription=styled.div({flex:\"0 0 30%\",lineHeight:\"20px\",marginTop:5}),SwatchLabel=styled.div(({theme})=>({flex:1,textAlign:\"center\",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:\"hidden\",color:theme.base===\"light\"?transparentize(.4,theme.color.defaultText):transparentize(.6,theme.color.defaultText),\"> div\":{display:\"inline-block\",overflow:\"hidden\",maxWidth:\"100%\",textOverflow:\"ellipsis\"},span:{display:\"block\",marginTop:2}})),SwatchLabels=styled.div({display:\"flex\",flexDirection:\"row\"}),Swatch=styled.div(({background})=>({position:\"relative\",flex:1,\"&::before\":{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background,content:'\"\"'}})),SwatchColors=styled.div(({theme})=>({...getBlockBackgroundStyle(theme),display:\"flex\",flexDirection:\"row\",height:50,marginBottom:5,overflow:\"hidden\",backgroundColor:\"white\",backgroundImage:\"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)\",backgroundClip:\"padding-box\"})),SwatchSpecimen=styled.div({display:\"flex\",flexDirection:\"column\",flex:1,position:\"relative\",marginBottom:30}),Swatches=styled.div({flex:1,display:\"flex\",flexDirection:\"row\"}),Item=styled.div({display:\"flex\",alignItems:\"flex-start\"}),ListName=styled.div({flex:\"0 0 30%\"}),ListSwatches=styled.div({flex:1}),ListHeading=styled.div(({theme})=>({display:\"flex\",flexDirection:\"row\",alignItems:\"center\",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:theme.base===\"light\"?transparentize(.4,theme.color.defaultText):transparentize(.6,theme.color.defaultText)})),List=styled.div(({theme})=>({fontSize:theme.typography.size.s2,lineHeight:\"20px\",display:\"flex\",flexDirection:\"column\"}));function renderSwatch(color,index){return React17.createElement(Swatch,{key:`${color}-${index}`,title:color,background:color})}function renderSwatchLabel(color,index,colorDescription){return React17.createElement(SwatchLabel,{key:`${color}-${index}`,title:color},React17.createElement(\"div\",null,color,colorDescription&&React17.createElement(\"span\",null,colorDescription)))}function renderSwatchSpecimen(colors){if(Array.isArray(colors))return React17.createElement(SwatchSpecimen,null,React17.createElement(SwatchColors,null,colors.map((color,index)=>renderSwatch(color,index))),React17.createElement(SwatchLabels,null,colors.map((color,index)=>renderSwatchLabel(color,index))));let swatchElements=[],labelElements=[];for(let colorKey in colors){let colorValue=colors[colorKey];swatchElements.push(renderSwatch(colorValue,swatchElements.length)),labelElements.push(renderSwatchLabel(colorKey,labelElements.length,colorValue));}return React17.createElement(SwatchSpecimen,null,React17.createElement(SwatchColors,null,swatchElements),React17.createElement(SwatchLabels,null,labelElements))}var ColorItem=({title,subtitle,colors})=>React17.createElement(Item,null,React17.createElement(ItemDescription,null,React17.createElement(ItemTitle,null,title),React17.createElement(ItemSubtitle,null,subtitle)),React17.createElement(Swatches,null,renderSwatchSpecimen(colors))),ColorPalette=({children,...props})=>React17.createElement(ResetWrapper,null,React17.createElement(List,{...props,className:\"docblock-colorpalette sb-unstyled\"},React17.createElement(ListHeading,null,React17.createElement(ListName,null,\"Name\"),React17.createElement(ListSwatches,null,\"Swatches\")),children));var ItemLabel=styled.div(({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2})),ItemSpecimen=styled.div(({theme})=>({...getBlockBackgroundStyle(theme),overflow:\"hidden\",height:40,width:40,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flex:\"none\",\"> img, > svg\":{width:20,height:20}})),Item2=styled.div({display:\"inline-flex\",flexDirection:\"row\",alignItems:\"center\",flex:\"0 1 calc(20% - 10px)\",minWidth:120,margin:\"0px 10px 30px 0\"}),List2=styled.div({display:\"flex\",flexFlow:\"row wrap\"}),IconItem=({name,children})=>React17.createElement(Item2,null,React17.createElement(ItemSpecimen,null,children),React17.createElement(ItemLabel,null,name)),IconGallery=({children,...props})=>React17.createElement(ResetWrapper,null,React17.createElement(List2,{...props,className:\"docblock-icongallery sb-unstyled\"},children));var anchorBlockIdFromId=storyId=>`anchor--${storyId}`,Anchor=({storyId,children})=>React17.createElement(\"div\",{id:anchorBlockIdFromId(storyId),className:\"sb-anchor\"},children);global&&global.__DOCS_CONTEXT__===void 0&&(global.__DOCS_CONTEXT__=createContext(null),global.__DOCS_CONTEXT__.displayName=\"DocsContext\");var DocsContext=global?global.__DOCS_CONTEXT__:createContext(null);var useOf=(moduleExportOrType,validTypes)=>useContext(DocsContext).resolveOf(moduleExportOrType,validTypes);var titleCase=str=>str.split(\"-\").map(part=>part.charAt(0).toUpperCase()+part.slice(1)).join(\"\"),getComponentName=component=>{if(component)return typeof component==\"string\"?component.includes(\"-\")?titleCase(component):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name};function scrollToElement(element,block=\"start\"){element.scrollIntoView({behavior:\"smooth\",block,inline:\"nearest\"});}function extractComponentArgTypes(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error(\"Args unsupported. See Args documentation for your framework.\");return extractArgTypes(component)}function getArgTypesFromResolved(resolved){if(resolved.type===\"component\"){let{component:component2,projectAnnotations:{parameters:parameters2}}=resolved;return {argTypes:extractComponentArgTypes(component2,parameters2),parameters:parameters2,component:component2}}if(resolved.type===\"meta\"){let{preparedMeta:{argTypes:argTypes2,parameters:parameters2,component:component2,subcomponents:subcomponents2}}=resolved;return {argTypes:argTypes2,parameters:parameters2,component:component2,subcomponents:subcomponents2}}let{story:{argTypes,parameters,component,subcomponents}}=resolved;return {argTypes,parameters,component,subcomponents}}var ArgTypes=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let resolved=useOf(of||\"meta\"),{argTypes,parameters,component,subcomponents}=getArgTypesFromResolved(resolved),argTypesParameters=parameters.docs?.argTypes||{},include=props.include??argTypesParameters.include,exclude=props.exclude??argTypesParameters.exclude,sort=props.sort??argTypesParameters.sort,filteredArgTypes=filterArgTypes(argTypes,include,exclude);if(!(!!subcomponents&&Object.keys(subcomponents).length>0))return React17.createElement(ArgsTable,{rows:filteredArgTypes,sort});let mainComponentName=getComponentName(component),subcomponentTabs=Object.fromEntries(Object.entries(subcomponents).map(([key,comp])=>[key,{rows:filterArgTypes(extractComponentArgTypes(comp,parameters),include,exclude),sort}])),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return React17.createElement(TabbedArgsTable,{tabs,sort})};function argsHash(args){return stringify(args,{allowFunction:!1})}var SourceContext=createContext({sources:{}}),UNKNOWN_ARGS_HASH=\"--unknown--\",SourceContainer=({children,channel})=>{let[sources,setSources]=useState({});return useEffect(()=>{let handleSnippetRendered=(idOrEvent,inputSource=null,inputFormat=!1)=>{let{id,args=void 0,source,format:format2}=typeof idOrEvent==\"string\"?{id:idOrEvent,source:inputSource,format:inputFormat}:idOrEvent,hash=args?argsHash(args):UNKNOWN_ARGS_HASH;setSources(current=>({...current,[id]:{...current[id],[hash]:{code:source,format:format2}}}));};return channel.on(SNIPPET_RENDERED,handleSnippetRendered),()=>channel.off(SNIPPET_RENDERED,handleSnippetRendered)},[]),React17.createElement(SourceContext.Provider,{value:{sources}},children)};var getStorySource=(storyId,args,sourceContext)=>{let{sources}=sourceContext,sourceMap=sources?.[storyId];return sourceMap?.[argsHash(args)]||sourceMap?.[UNKNOWN_ARGS_HASH]||{code:\"\"}},getSnippet=({snippet,storyContext,typeFromProps,transformFromProps})=>{let{__isArgsStory:isArgsStory}=storyContext.parameters,sourceParameters=storyContext.parameters.docs?.source||{},type=typeFromProps||sourceParameters.type||SourceType.AUTO;if(sourceParameters.code!==void 0)return sourceParameters.code;let code=type===SourceType.DYNAMIC||type===SourceType.AUTO&&snippet&&isArgsStory?snippet:sourceParameters.originalSource||\"\";return (transformFromProps??sourceParameters.transform)?.(code,storyContext)||code},useSourceProps=(props,docsContext,sourceContext)=>{let story,{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");if(of)story=docsContext.resolveOf(of,[\"story\"]).story;else try{story=docsContext.storyById();}catch{}let sourceParameters=story?.parameters?.docs?.source||{},{code}=props,format2=props.format??sourceParameters.format,language=props.language??sourceParameters.language??\"jsx\",dark=props.dark??sourceParameters.dark??!1;if(!code&&!story)return {error:\"Oh no! The source is not available.\"};if(code)return {code,format:format2,language,dark};let storyContext=docsContext.getStoryContext(story),argsForSource=props.__forceInitialArgs?storyContext.initialArgs:storyContext.unmappedArgs,source=getStorySource(story.id,argsForSource,sourceContext);return format2=source.format??story.parameters.docs?.source?.format??!1,{code:getSnippet({snippet:source.code,storyContext:{...storyContext,args:argsForSource},typeFromProps:props.type,transformFromProps:props.transform}),format:format2,language,dark}},Source2=props=>{let sourceContext=useContext(SourceContext),docsContext=useContext(DocsContext),sourceProps=useSourceProps(props,docsContext,sourceContext);return React17.createElement(Source,{...sourceProps})};function useStory(storyId,context){let stories=useStories([storyId],context);return stories&&stories[0]}function useStories(storyIds,context){let[storiesById,setStories]=useState({});return useEffect(()=>{Promise.all(storyIds.map(async storyId=>{let story=await context.loadStory(storyId);setStories(current=>current[storyId]===story?current:{...current,[storyId]:story});}));}),storyIds.map(storyId=>{if(storiesById[storyId])return storiesById[storyId];try{return context.storyById(storyId)}catch{return null}})}var getStoryId2=(props,context)=>{let{of,meta}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");return meta&&context.referenceMeta(meta,!1),context.resolveOf(of||\"story\",[\"story\"]).story.id},getStoryProps=(props,story,context)=>{let{parameters={}}=story||{},{docs={}}=parameters,storyParameters=docs.story||{};if(docs.disable)return null;if(props.inline??storyParameters.inline??!1){let height2=props.height??storyParameters.height,autoplay=props.autoplay??storyParameters.autoplay??!1;return {story,inline:!0,height:height2,autoplay,forceInitialArgs:!!props.__forceInitialArgs,primary:!!props.__primary,renderStoryToElement:context.renderStoryToElement}}let height=props.height??storyParameters.height??storyParameters.iframeHeight??\"100px\";return {story,inline:!1,height,primary:!!props.__primary}},Story2=(props={__forceInitialArgs:!1,__primary:!1})=>{let context=useContext(DocsContext),storyId=getStoryId2(props,context),story=useStory(storyId,context);if(!story)return React17.createElement(StorySkeleton,null);let storyProps=getStoryProps(props,story,context);return storyProps?React17.createElement(Story,{...storyProps}):null};var Canvas=props=>{let docsContext=useContext(DocsContext),sourceContext=useContext(SourceContext),{of,source}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let{story}=useOf(of||\"story\",[\"story\"]),sourceProps=useSourceProps({...source,...of&&{of}},docsContext,sourceContext),layout=props.layout??story.parameters.layout??story.parameters.docs?.canvas?.layout??\"padded\",withToolbar=props.withToolbar??story.parameters.docs?.canvas?.withToolbar??!1,additionalActions=props.additionalActions??story.parameters.docs?.canvas?.additionalActions,sourceState=props.sourceState??story.parameters.docs?.canvas?.sourceState??\"hidden\",className=props.className??story.parameters.docs?.canvas?.className;return React17.createElement(Preview,{withSource:sourceState===\"none\"?void 0:sourceProps,isExpanded:sourceState===\"shown\",withToolbar,additionalActions,className,layout},React17.createElement(Story2,{of:of||story.moduleExport,meta:props.meta,...props.story}))};var useGlobals=(story,context)=>{let storyContext=context.getStoryContext(story),[globals,setGlobals]=useState(storyContext.globals);return useEffect(()=>{let onGlobalsUpdated=changed=>{setGlobals(changed.globals);};return context.channel.on(GLOBALS_UPDATED,onGlobalsUpdated),()=>context.channel.off(GLOBALS_UPDATED,onGlobalsUpdated)},[context.channel]),[globals]};var useArgs=(story,context)=>{let result=useArgsIfDefined(story,context);if(!result)throw new Error(\"No result when story was defined\");return result},useArgsIfDefined=(story,context)=>{let storyContext=story?context.getStoryContext(story):{args:{}},{id:storyId}=story||{id:\"none\"},[args,setArgs]=useState(storyContext.args);useEffect(()=>{let onArgsUpdated=changed=>{changed.storyId===storyId&&setArgs(changed.args);};return context.channel.on(STORY_ARGS_UPDATED,onArgsUpdated),()=>context.channel.off(STORY_ARGS_UPDATED,onArgsUpdated)},[storyId,context.channel]);let updateArgs=useCallback(updatedArgs=>context.channel.emit(UPDATE_STORY_ARGS,{storyId,updatedArgs}),[storyId,context.channel]),resetArgs=useCallback(argNames=>context.channel.emit(RESET_STORY_ARGS,{storyId,argNames}),[storyId,context.channel]);return story&&[args,updateArgs,resetArgs]};function extractComponentArgTypes2(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error(\"Args unsupported. See Args documentation for your framework.\");return extractArgTypes(component)}var Controls3=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let context=useContext(DocsContext),{story}=context.resolveOf(of||\"story\",[\"story\"]),{parameters,argTypes,component,subcomponents}=story,controlsParameters=parameters.docs?.controls||{},include=props.include??controlsParameters.include,exclude=props.exclude??controlsParameters.exclude,sort=props.sort??controlsParameters.sort,[args,updateArgs,resetArgs]=useArgs(story,context),[globals]=useGlobals(story,context),filteredArgTypes=filterArgTypes(argTypes,include,exclude);if(!(!!subcomponents&&Object.keys(subcomponents).length>0))return Object.keys(filteredArgTypes).length>0||Object.keys(args).length>0?React17.createElement(ArgsTable,{rows:filteredArgTypes,sort,args,globals,updateArgs,resetArgs}):null;let mainComponentName=getComponentName(component),subcomponentTabs=Object.fromEntries(Object.entries(subcomponents).map(([key,comp])=>[key,{rows:filterArgTypes(extractComponentArgTypes2(comp,parameters),include,exclude),sort}])),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return React17.createElement(TabbedArgsTable,{tabs,sort,args,globals,updateArgs,resetArgs})};var {document:document2}=global,assertIsFn=val=>{if(typeof val!=\"function\")throw new Error(`Expected story function, got: ${val}`);return val},AddContext=props=>{let{children,...rest}=props,parentContext=React17.useContext(DocsContext);return React17.createElement(DocsContext.Provider,{value:{...parentContext,...rest}},children)},CodeOrSourceMdx=({className,children,...rest})=>{if(typeof className!=\"string\"&&(typeof children!=\"string\"||!children.match(/[\\n\\r]/g)))return React17.createElement(Code,null,children);let language=className&&className.split(\"-\");return React17.createElement(Source,{language:language&&language[1]||\"text\",format:!1,code:children,...rest})};function navigate(context,url){context.channel.emit(NAVIGATE_URL,url);}var A=components.a,AnchorInPage=({hash,children})=>{let context=useContext(DocsContext);return React17.createElement(A,{href:hash,target:\"_self\",onClick:event=>{let id=hash.substring(1);document2.getElementById(id)&&navigate(context,hash);}},children)},AnchorMdx=props=>{let{href,target,children,...rest}=props,context=useContext(DocsContext);return !href||target===\"_blank\"||/^https?:\\/\\//.test(href)?React17.createElement(A,{...props}):href.startsWith(\"#\")?React17.createElement(AnchorInPage,{hash:href},children):React17.createElement(A,{href,onClick:event=>{event.button===0&&!event.altKey&&!event.ctrlKey&&!event.metaKey&&!event.shiftKey&&(event.preventDefault(),navigate(context,event.currentTarget.getAttribute(\"href\")));},target,...rest},children)},SUPPORTED_MDX_HEADERS=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:styled(headerType)({\"& svg\":{position:\"relative\",top:\"-0.1em\",visibility:\"hidden\"},\"&:hover svg\":{visibility:\"visible\"}})}),{}),OcticonAnchor=styled.a(()=>({float:\"left\",lineHeight:\"inherit\",paddingRight:\"10px\",marginLeft:\"-24px\",color:\"inherit\"})),HeaderWithOcticonAnchor=({as,id,children,...rest})=>{let context=useContext(DocsContext),OcticonHeader=OcticonHeaders[as],hash=`#${id}`;return React17.createElement(OcticonHeader,{id,...rest},React17.createElement(OcticonAnchor,{\"aria-hidden\":\"true\",href:hash,tabIndex:-1,target:\"_self\",onClick:event=>{document2.getElementById(id)&&navigate(context,hash);}},React17.createElement(LinkIcon,null)),children)},HeaderMdx=props=>{let{as,id,children,...rest}=props;if(id)return React17.createElement(HeaderWithOcticonAnchor,{as,id,...rest},children);let Component4=as,{as:omittedAs,...withoutAs}=props;return React17.createElement(Component4,{...nameSpaceClassNames(withoutAs,as)})},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:props=>React17.createElement(HeaderMdx,{as:headerType,...props})}),{});var Markdown2=props=>{if(!props.children)return null;if(typeof props.children!=\"string\")throw new Error(dedent`The Markdown block only accepts children as a single string, but children were of type: '${typeof props.children}'\n This is often caused by not wrapping the child in a template string.\n \n This is invalid:\n \n # Some heading\n A paragraph\n \n\n Instead do:\n \n {\\`\n # Some heading\n A paragraph\n \\`}\n \n `);return React17.createElement(Markdown,{...props,options:{forceBlock:!0,overrides:{code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx,...props?.options?.overrides},...props?.options}})};var DescriptionType=(DescriptionType2=>(DescriptionType2.INFO=\"info\",DescriptionType2.NOTES=\"notes\",DescriptionType2.DOCGEN=\"docgen\",DescriptionType2.AUTO=\"auto\",DescriptionType2))(DescriptionType||{}),getDescriptionFromResolvedOf=resolvedOf=>{switch(resolvedOf.type){case\"story\":return resolvedOf.story.parameters.docs?.description?.story||null;case\"meta\":{let{parameters,component}=resolvedOf.preparedMeta,metaDescription=parameters.docs?.description?.component;return metaDescription||parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}case\"component\":{let{component,projectAnnotations:{parameters}}=resolvedOf;return parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${resolvedOf.type}`)}},DescriptionContainer=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let resolvedOf=useOf(of||\"meta\"),markdown=getDescriptionFromResolvedOf(resolvedOf);return markdown?React17.createElement(Markdown2,null,markdown):null};var Wrapper10=styled.div(({theme})=>({width:\"10rem\",\"@media (max-width: 768px)\":{display:\"none\"}})),Content=styled.div(({theme})=>({position:\"fixed\",bottom:0,top:0,width:\"10rem\",paddingTop:\"4rem\",paddingBottom:\"2rem\",overflowY:\"auto\",fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",WebkitTapHighlightColor:\"rgba(0, 0, 0, 0)\",WebkitOverflowScrolling:\"touch\",\"& *\":{boxSizing:\"border-box\"},\"& > .toc-wrapper > .toc-list\":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,\".toc-list\":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,\".toc-list\":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`}}},\"& .toc-list-item\":{position:\"relative\",listStyleType:\"none\",marginLeft:20,paddingTop:3,paddingBottom:3},\"& .toc-list-item::before\":{content:'\"\"',position:\"absolute\",height:\"100%\",top:0,left:0,transform:\"translateX(calc(-2px - 20px))\",borderLeft:`solid 2px ${theme.color.mediumdark}`,opacity:0,transition:\"opacity 0.2s\"},\"& .toc-list-item.is-active-li::before\":{opacity:1},\"& .toc-list-item > a\":{color:theme.color.defaultText,textDecoration:\"none\"},\"& .toc-list-item.is-active-li > a\":{fontWeight:600,color:theme.color.secondary,textDecoration:\"none\"}})),Heading=styled.p(({theme})=>({fontWeight:600,fontSize:\"0.875em\",color:theme.textColor,textTransform:\"uppercase\",marginBottom:10})),OptionalTitle=({title})=>title===null?null:typeof title==\"string\"?React17.createElement(Heading,null,title):title,TableOfContents=({title,disable,headingSelector,contentsSelector,ignoreSelector,unsafeTocbotOptions})=>(useEffect(()=>{let configuration={tocSelector:\".toc-wrapper\",contentSelector:contentsSelector??\".sbdocs-content\",headingSelector:headingSelector??\"h3\",ignoreSelector:ignoreSelector??\".docs-story *, .skip-toc\",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...unsafeTocbotOptions},timeout=setTimeout(()=>tocbot.init(configuration),100);return ()=>{clearTimeout(timeout),tocbot.destroy();}},[disable]),React17.createElement(React17.Fragment,null,React17.createElement(Wrapper10,null,disable?null:React17.createElement(Content,null,React17.createElement(OptionalTitle,{title:title||null}),React17.createElement(\"div\",{className:\"toc-wrapper\"})))));var {document:document3,window:globalWindow3}=global,DocsContainer=({context,theme,children})=>{let toc;try{toc=context.resolveOf(\"meta\",[\"meta\"]).preparedMeta.parameters?.docs?.toc;}catch{toc=context?.projectAnnotations?.parameters?.docs?.toc;}return useEffect(()=>{let url;try{if(url=new URL(globalWindow3.parent.location.toString()),url.hash){let element=document3.getElementById(url.hash.substring(1));element&&setTimeout(()=>{scrollToElement(element);},200);}}catch{}}),React17.createElement(DocsContext.Provider,{value:context},React17.createElement(SourceContainer,{channel:context.channel},React17.createElement(ThemeProvider,{theme:ensure(theme)},React17.createElement(DocsPageWrapper,{toc:toc?React17.createElement(TableOfContents,{className:\"sbdocs sbdocs-toc--custom\",...toc}):null},children))))};var STORY_KIND_PATH_SEPARATOR=/\\s*\\/\\s*/,extractTitle=title=>{let groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups?.[groups?.length-1]||title},Title2=props=>{let{children,of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let preparedMeta;try{preparedMeta=useOf(of||\"meta\",[\"meta\"]).preparedMeta;}catch(error){if(children&&!error.message.includes(\"did you forget to use ?\"))throw error}let content=children||extractTitle(preparedMeta?.title);return content?React17.createElement(Title,{className:\"sbdocs-title sb-unstyled\"},content):null};var DEPRECATION_MIGRATION_LINK=\"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle\",Subtitle2=props=>{let{of,children}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let preparedMeta;try{preparedMeta=useOf(of||\"meta\",[\"meta\"]).preparedMeta;}catch(error){if(children&&!error.message.includes(\"did you forget to use ?\"))throw error}let{componentSubtitle,docs}=preparedMeta?.parameters||{};componentSubtitle&&deprecate(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${DEPRECATION_MIGRATION_LINK}`);let content=children||docs?.subtitle||componentSubtitle;return content?React17.createElement(Subtitle,{className:\"sbdocs-subtitle sb-unstyled\"},content):null};var Subheading=({children,disableAnchor})=>{if(disableAnchor||typeof children!=\"string\")return React17.createElement(H3,null,children);let tagID=globalThis.encodeURIComponent(children.toLowerCase());return React17.createElement(HeaderMdx,{as:\"h3\",id:tagID},children)};var DocsStory=({of,expanded=!0,withToolbar:withToolbarProp=!1,__forceInitialArgs=!1,__primary=!1})=>{let{story}=useOf(of||\"story\",[\"story\"]),withToolbar=story.parameters.docs?.canvas?.withToolbar??withToolbarProp;return React17.createElement(Anchor,{storyId:story.id},expanded&&React17.createElement(React17.Fragment,null,React17.createElement(Subheading,null,story.name),React17.createElement(DescriptionContainer,{of})),React17.createElement(Canvas,{of,withToolbar,story:{__forceInitialArgs,__primary},source:{__forceInitialArgs}}))};var Primary=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let{csfFile}=useOf(of||\"meta\",[\"meta\"]),primaryStory=useContext(DocsContext).componentStoriesFromCSFFile(csfFile)[0];return primaryStory?React17.createElement(DocsStory,{of:primaryStory.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null};var Heading2=({children,disableAnchor,...props})=>{if(disableAnchor||typeof children!=\"string\")return React17.createElement(H2,null,children);let tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,\"-\");return React17.createElement(HeaderMdx,{as:\"h2\",id:tagID,...props},children)};var StyledHeading=styled(Heading2)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,fontWeight:theme.typography.weight.bold,lineHeight:\"16px\",letterSpacing:\"0.35em\",textTransform:\"uppercase\",color:theme.textMutedColor,border:0,marginBottom:\"12px\",\"&:first-of-type\":{marginTop:\"56px\"}})),Stories=({title=\"Stories\",includePrimary=!0})=>{let{componentStories,projectAnnotations,getStoryContext}=useContext(DocsContext),stories=componentStories(),{stories:{filter}={filter:void 0}}=projectAnnotations.parameters?.docs||{};return filter&&(stories=stories.filter(story=>filter(story,getStoryContext(story)))),stories.some(story=>story.tags?.includes(\"autodocs\"))&&(stories=stories.filter(story=>story.tags?.includes(\"autodocs\"))),includePrimary||(stories=stories.slice(1)),!stories||stories.length===0?null:React17.createElement(React17.Fragment,null,React17.createElement(StyledHeading,null,title),stories.map(story=>story&&React17.createElement(DocsStory,{key:story.id,of:story.moduleExport,expanded:!0,__forceInitialArgs:!0})))};var DocsPage=()=>{let resolvedOf=useOf(\"meta\",[\"meta\"]),{stories}=resolvedOf.csfFile,isSingleStory=Object.keys(stories).length===1;return React17.createElement(React17.Fragment,null,React17.createElement(Title2,null),React17.createElement(Subtitle2,null),React17.createElement(DescriptionContainer,{of:\"meta\"}),isSingleStory?React17.createElement(DescriptionContainer,{of:\"story\"}):null,React17.createElement(Primary,null),React17.createElement(Controls3,null),isSingleStory?null:React17.createElement(Stories,null))};function Docs({context,docsParameter}){let Container=docsParameter.container||DocsContainer,Page=docsParameter.page||DocsPage;return React17.createElement(Container,{context,theme:docsParameter.theme},React17.createElement(Page,null))}var ExternalDocsContext=class extends DocsContext$1{constructor(channel,store,renderStoryToElement,processMetaExports){super(channel,store,renderStoryToElement,[]);this.channel=channel;this.store=store;this.renderStoryToElement=renderStoryToElement;this.processMetaExports=processMetaExports;this.referenceMeta=(metaExports,attach)=>{let csfFile=this.processMetaExports(metaExports);this.referenceCSFFile(csfFile),super.referenceMeta(metaExports,attach);};}};var ConstantMap=class{constructor(prefix){this.prefix=prefix;this.entries=new Map;}get(key){return this.entries.has(key)||this.entries.set(key,`${this.prefix}${this.entries.size}`),this.entries.get(key)}},ExternalPreview=class extends Preview$1{constructor(projectAnnotations){super(path=>Promise.resolve(this.moduleExportsByImportPath[path]),()=>composeConfigs([{parameters:{docs:{story:{inline:!0}}}},this.projectAnnotations]),new Channel({}));this.projectAnnotations=projectAnnotations;this.importPaths=new ConstantMap(\"./importPath/\");this.titles=new ConstantMap(\"title-\");this.storyIndex={v:5,entries:{}};this.moduleExportsByImportPath={};this.processMetaExports=metaExports=>{let importPath=this.importPaths.get(metaExports);this.moduleExportsByImportPath[importPath]=metaExports;let title=metaExports.default.title||this.titles.get(metaExports),csfFile=this.storyStoreValue.processCSFFileWithCache(metaExports,importPath,title);return Object.values(csfFile.stories).forEach(({id,name})=>{this.storyIndex.entries[id]={id,importPath,title,name,type:\"story\"};}),this.onStoriesChanged({storyIndex:this.storyIndex}),csfFile};this.docsContext=()=>new ExternalDocsContext(this.channel,this.storyStoreValue,this.renderStoryToElement.bind(this),this.processMetaExports.bind(this));}async getStoryIndexFromServer(){return this.storyIndex}};function usePreview(projectAnnotations){let previewRef=useRef();return previewRef.current||(previewRef.current=new ExternalPreview(projectAnnotations)),previewRef.current}function ExternalDocs({projectAnnotationsList,children}){let projectAnnotations=composeConfigs(projectAnnotationsList),preview2=usePreview(projectAnnotations),docsParameter={...projectAnnotations.parameters?.docs,page:()=>children};return React17.createElement(Docs,{docsParameter,context:preview2.docsContext()})}var preview,ExternalDocsContainer=({projectAnnotations,children})=>(preview||(preview=new ExternalPreview(projectAnnotations)),React17.createElement(DocsContext.Provider,{value:preview.docsContext()},React17.createElement(ThemeProvider,{theme:ensure(themes.light)},children)));var Meta=({of})=>{let context=useContext(DocsContext);of&&context.referenceMeta(of,!0);try{let primary=context.storyById();return React17.createElement(Anchor,{storyId:primary.id})}catch{return null}};var Unstyled=props=>React17.createElement(\"div\",{...props,className:\"sb-unstyled\"});var Wrapper11=({children})=>React17.createElement(\"div\",{style:{fontFamily:\"sans-serif\"}},children);var PRIMARY_STORY=\"^\";\n\nexport { AddContext, Anchor, AnchorMdx, ArgTypes, BooleanControl, Canvas, CodeOrSourceMdx, ColorControl, ColorItem, ColorPalette, Controls3 as Controls, DateControl, DescriptionContainer as Description, DescriptionType, Docs, DocsContainer, DocsContext, DocsPage, DocsStory, ExternalDocs, ExternalDocsContainer, FilesControl, HeaderMdx, HeadersMdx, Heading2 as Heading, IconGallery, IconItem, Markdown2 as Markdown, Meta, NumberControl, ObjectControl, OptionsControl, PRIMARY_STORY, Primary, ArgsTable as PureArgsTable, RangeControl, Source2 as Source, SourceContainer, SourceContext, Stories, Story2 as Story, Subheading, Subtitle2 as Subtitle, TextControl, Title2 as Title, Typeset, UNKNOWN_ARGS_HASH, Unstyled, Wrapper11 as Wrapper, anchorBlockIdFromId, argsHash, assertIsFn, extractTitle, format, formatDate, formatTime, getStoryId2 as getStoryId, getStoryProps, parse2 as parse, parseDate, parseTime, useOf, useSourceProps };\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/refs/pull/1122/merge/1989.e204463b.iframe.bundle.js b/refs/pull/1122/merge/1989.e204463b.iframe.bundle.js new file mode 100644 index 0000000000..9dca4a0c9e --- /dev/null +++ b/refs/pull/1122/merge/1989.e204463b.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[1989],{"./components/atoms/CheckBox.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{o:()=>CheckBox});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),prop_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);function CheckBox(param){let{checked=!1,value="true",showRequiredLabel=!1,...props}=param;const ifControlledProps=props.uncontrolled?{}:{checked};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"block leading-tight relative pl-40px h-46px clear-left".concat(props.className?" "+props.className:" mb-4"),children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input",{className:"control-input cursor-pointer appearance-none w-40px h-40px absolute left-0 m-0 z-1 opacity-0",id:props.id,name:props.name,value,type:"checkbox",onChange:e=>props.onChange(props.uncontrolled?!e.currentTarget.checked:checked,props.name,value),"aria-required":props.required,"aria-invalid":props.error?"true":void 0,"data-cy":props.dataCy,"data-testid":props.dataTestId,...ifControlledProps}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("label",{className:"checkbox-label control-label inline-block cursor-pointer pt-4px pb-5px px-15px text-sm lg:text-p leading-tight sm:leading-6 ".concat(props.bolded?"font-semibold":"font-normal"," font-body").concat(props.error?" text-error-border-red":void 0),htmlFor:props.id,children:[showRequiredLabel?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("b",{className:"text-error-border-red","aria-hidden":"true",children:"*"}):void 0," ",props.label," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"sr-only",children:props.expandState})]})]})}CheckBox.propTypes={className:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,checked:prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,name:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired,error:prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool,required:prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool,showRequiredLabel:prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool,onChange:prop_types__WEBPACK_IMPORTED_MODULE_1___default().func,uncontrolled:prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool,bolded:prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool,dataCy:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,dataTestId:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string},CheckBox.__docgenInfo={description:"check box component for forms",methods:[],displayName:"CheckBox",props:{checked:{defaultValue:{value:"false",computed:!1},description:"whether or not the checkbox is checked",type:{name:"bool"},required:!1},value:{defaultValue:{value:'"true"',computed:!1},description:"the value of the field when the checkbox is checked",type:{name:"string"},required:!1},showRequiredLabel:{defaultValue:{value:"false",computed:!1},description:'show the "* ... (required)" in the label. in lists, this isn\'t necessary, but for an individual checkbox without a parent fieldset this is required',type:{name:"bool"},required:!1},className:{description:"additional css for the component",type:{name:"string"},required:!1},name:{description:"the name of the checkbox",type:{name:"string"},required:!0},id:{description:"the id of the checkbox",type:{name:"string"},required:!0},label:{description:"the label for the checkbox",type:{name:"string"},required:!0},error:{description:"whether or not there is an error",type:{name:"bool"},required:!1},required:{description:"whether or not the field is required",type:{name:"bool"},required:!1},onChange:{description:"callback to handle change in checked state, takes three arguments, the checked state, the name and the value",type:{name:"func"},required:!1},uncontrolled:{description:"boolean flag to specify that this input should not be controlled by react",type:{name:"bool"},required:!1},bolded:{description:"boolean flag to specify when label content should be bolded",type:{name:"bool"},required:!1},dataCy:{description:"testing selector for cypress",type:{name:"string"},required:!1},dataTestId:{description:"testing selector for unit tests",type:{name:"string"},required:!1}}}},"./components/atoms/ErrorLabel.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{r:()=>ErrorLabel});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),prop_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);function ErrorLabel(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"error-label border-l-4 border-error-border-red px-3 py-1 bg-error-background-red font-body font-bold mb-5px text-sm lg:text-p ".concat(props.className),children:props.message})}ErrorLabel.propTypes={message:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired,className:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string},ErrorLabel.__docgenInfo={description:"error label component that is used with form inputs to display error messages",methods:[],displayName:"ErrorLabel",props:{message:{description:"",type:{name:"string"},required:!0},className:{description:"Prop for adding some classes",type:{name:"string"},required:!1}}}},"./components/atoms/MultiTextField.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>MultiTextField});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),prop_types__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__),_ErrorLabel__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./components/atoms/ErrorLabel.js"),next_i18next__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/next-i18next/dist/esm/index.js");function MultiTextField(param){let{spellCheck=!0,wrap="soft",...props}=param;const{t}=(0,next_i18next__WEBPACK_IMPORTED_MODULE_2__.Bd)("common");return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"block leading-tight".concat(props.className?" "+props.className:" mb-12"),children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("label",{className:"block leading-tight text-sm lg:text-p font-body mb-5px ".concat(props.boldLabel?"font-bold":""),htmlFor:props.id,children:[props.required?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("b",{className:"text-error-border-red","aria-hidden":"true",children:"*"}):void 0," ",props.label," "]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{id:props.describedby,className:"text-sm lg:text-g mb-5 leading-30px",children:t("doNotInclude")}),props.error?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ErrorLabel__WEBPACK_IMPORTED_MODULE_1__.r,{message:props.error}):void 0,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("textarea",{className:"text-input font-body w-full min-h-40px shadow-sm text-form-input-gray border-2 py-6px px-12px ".concat(props.error?"border-error-border-red":"border-black"),id:props.id,name:props.name,placeholder:props.placeholder,onChange:e=>props.onChange(e.currentTarget.value),cols:props.cols,rows:props.rows,spellCheck,wrap,required:props.required,"data-testid":props.dataTestId,"data-cy":props.dataCy,"aria-describedby":props.describedby,children:props.value})]})}MultiTextField.propTypes={className:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,id:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string.isRequired,name:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,error:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,required:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,spellCheck:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,boldLabel:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,wrap:prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf(["soft","hard"]),placeholder:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,rows:prop_types__WEBPACK_IMPORTED_MODULE_3___default().number,cols:prop_types__WEBPACK_IMPORTED_MODULE_3___default().number,minLength:prop_types__WEBPACK_IMPORTED_MODULE_3___default().number,maxLength:prop_types__WEBPACK_IMPORTED_MODULE_3___default().number,onChange:prop_types__WEBPACK_IMPORTED_MODULE_3___default().func,dataTestId:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,dataCy:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,describedby:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string},MultiTextField.__docgenInfo={description:"multi line text field",methods:[],displayName:"MultiTextField",props:{spellCheck:{defaultValue:{value:"true",computed:!1},description:"whether or not spellchecking is enabled for this field, by default it is",type:{name:"bool"},required:!1},wrap:{defaultValue:{value:'"soft"',computed:!1},description:"whether to soft wrap or hard wrap the field",type:{name:"enum",value:[{value:'"soft"',computed:!1},{value:'"hard"',computed:!1}]},required:!1},className:{description:"additional css for the component",type:{name:"string"},required:!1},id:{description:"the id of the multi text field",type:{name:"string"},required:!0},name:{description:"the name of the multi text field",type:{name:"string"},required:!0},label:{description:"the label for the multi text field",type:{name:"string"},required:!0},value:{description:"the value for the multi text field",type:{name:"string"},required:!1},error:{description:"message to display if there is an error",type:{name:"string"},required:!1},required:{description:"whether or not the field is required",type:{name:"bool"},required:!1},boldLabel:{description:"whether or not the label is bold",type:{name:"bool"},required:!1},placeholder:{description:"the placeholder for the multi text field",type:{name:"string"},required:!1},rows:{description:"how much lines should the multi text field show",type:{name:"number"},required:!1},cols:{description:"how much columns should the multi text field show",type:{name:"number"},required:!1},minLength:{description:"the minimum length of characters for the multi text field",type:{name:"number"},required:!1},maxLength:{description:"the maximum length of characters for the multi text field",type:{name:"number"},required:!1},onChange:{description:"call back for when the value of the multi text field changes",type:{name:"func"},required:!1},dataTestId:{description:"unit test selector",type:{name:"string"},required:!1},dataCy:{description:"cypress selector",type:{name:"string"},required:!1},describedby:{description:"aria-describedby label id",type:{name:"string"},required:!1}}}},"./components/atoms/RadioField.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>RadioField});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),prop_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);function RadioField(param){let{checked=!1,value="true",...props}=param;const ifControlledProps=props.uncontrolled?{}:{checked};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"block leading-tight relative pl-40px h-40px clear-left mb-10px".concat(props.className?" "+props.className:""),children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input",{className:"control-input cursor-pointer appearance-none w-40px h-40px absolute left-0 m-0 z-1 opacity-0",id:props.id,name:props.name,value,type:"radio",onChange:e=>props.onChange(props.uncontrolled?!e.currentTarget.checked:checked,props.name,value),"aria-required":props.required,"aria-invalid":props.error?"true":void 0,"data-cy":props.dataCy,"data-testid":props.dataTestId,...ifControlledProps}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("label",{className:"radio-field-label control-label inline-block cursor-pointer pt-4px pb-5px px-15px text-sm lg:text-p leading-tight sm:leading-6 font-normal font-body".concat(props.error?" text-error-border-red":void 0),htmlFor:props.id,onClick:()=>props.onChange(checked,props.name,value),children:props.label})]})}RadioField.propTypes={className:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,checked:prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,name:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired,error:prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool,required:prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool,id:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired,onChange:prop_types__WEBPACK_IMPORTED_MODULE_1___default().func,uncontrolled:prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool,dataCy:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,dataTestId:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string},RadioField.__docgenInfo={description:"radio field",methods:[],displayName:"RadioField",props:{checked:{defaultValue:{value:"false",computed:!1},description:"whether or not the checkbox is checked",type:{name:"bool"},required:!1},value:{defaultValue:{value:'"true"',computed:!1},description:"the value of the field when the checkbox is checked",type:{name:"string"},required:!1},className:{description:"additional css for the component",type:{name:"string"},required:!1},name:{description:"the name of the checkbox",type:{name:"string"},required:!0},error:{description:"whether or not there is an error",type:{name:"bool"},required:!1},required:{description:"whether or not the field is required",type:{name:"bool"},required:!1},id:{description:"the id of the checkbox",type:{name:"string"},required:!0},label:{description:"the label for the checkbox",type:{name:"string"},required:!0},onChange:{description:"callback to handle change in checked state, takes three arguments, the checked state, the name and the value",type:{name:"func"},required:!1},uncontrolled:{description:"boolean flag to specify that this input should not be controlled by react",type:{name:"bool"},required:!1},dataCy:{description:"testing selector for cypress",type:{name:"string"},required:!1},dataTestId:{description:"testing selector for unit tests",type:{name:"string"},required:!1}}}},"./components/atoms/TextField.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>TextField});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),prop_types__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__),_ErrorLabel__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./components/atoms/ErrorLabel.js"),next_i18next__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/next-i18next/dist/esm/index.js");function TextField(param){let{value="",type="text",...props}=param;const{t}=(0,next_i18next__WEBPACK_IMPORTED_MODULE_2__.Bd)("common"),ifControlledProps=props.uncontrolled?{}:{value};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"block leading-tight".concat(props.className?" "+props.className:" mb-10px"),children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("label",{className:"block leading-tight text-sm lg:text-p font-body mb-5 ".concat(props.boldLabel?"font-bold":""),htmlFor:props.id,children:[props.required?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("b",{className:"text-error-border-red","aria-hidden":"true",children:"*"}):void 0," ",props.label," "]}),props.describedby?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{id:props.describedby,className:"text-xs lg:text-sm mb-5 leading-30px",children:t("doNotInclude")}):"",props.error?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ErrorLabel__WEBPACK_IMPORTED_MODULE_1__.r,{message:props.error}):void 0,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input",{className:"text-input font-body w-full lg:w-3/4 min-h-40px shadow-sm text-form-input-gray border-2 py-6px px-12px ".concat(props.error?"border-error-border-red":"border-black"," ").concat(props.exclude?"exclude":""),id:props.id,"aria-describedby":props.describedby,name:props.name,placeholder:props.placeholder,type,min:props.min,max:props.max,step:props.step,"aria-required":props.required,"aria-invalid":props.error?"true":void 0,onChange:e=>props.onChange(e.currentTarget.value),...ifControlledProps,"data-testid":props.dataTestId,"data-cy":props.dataCy,autoComplete:props.autoComplete})]})}TextField.propTypes={className:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,id:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string.isRequired,name:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string.isRequired,required:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,value:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,placeholder:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,type:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,onChange:prop_types__WEBPACK_IMPORTED_MODULE_3___default().func,error:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,boldLabel:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,uncontrolled:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,min:prop_types__WEBPACK_IMPORTED_MODULE_3___default().number,max:prop_types__WEBPACK_IMPORTED_MODULE_3___default().number,step:prop_types__WEBPACK_IMPORTED_MODULE_3___default().number,dataTestId:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,dataCy:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,exclude:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,describedby:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,autocomplete:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string},TextField.__docgenInfo={description:"text field component",methods:[],displayName:"TextField",props:{value:{defaultValue:{value:'""',computed:!1},description:"value of the text field",type:{name:"string"},required:!1},type:{defaultValue:{value:'"text"',computed:!1},description:"the type of the input",type:{name:"string"},required:!1},className:{description:"additional css for the component",type:{name:"string"},required:!1},id:{description:"the id of the text field",type:{name:"string"},required:!0},name:{description:"the name of the text field",type:{name:"string"},required:!0},label:{description:"the label of the text field",type:{name:"string"},required:!0},required:{description:"whether ot not the field is required",type:{name:"bool"},required:!1},placeholder:{description:"placeholder for the text field,",type:{name:"string"},required:!1},onChange:{description:"call back for when the value of the text field changes",type:{name:"func"},required:!1},error:{description:"message to display if there is an error",type:{name:"string"},required:!1},boldLabel:{description:"if label should be bold",type:{name:"bool"},required:!1},uncontrolled:{description:"boolean flag to specify that this input should be uncontrolled by react",type:{name:"bool"},required:!1},min:{description:"min value allowed",type:{name:"number"},required:!1},max:{description:"max value allowed",type:{name:"number"},required:!1},step:{description:"the legal number of intervals",type:{name:"number"},required:!1},dataTestId:{description:"unit test selector",type:{name:"string"},required:!1},dataCy:{description:"cypress tests selector",type:{name:"string"},required:!1},exclude:{description:"Exclude option for adding exclude class to the textfield",type:{name:"bool"},required:!1},describedby:{description:"aria-describedby label id",type:{name:"string"},required:!1},autocomplete:{description:"Option to enable autocomplete on field",type:{name:"string"},required:!1}}}},"./components/molecules/OptionalTextField.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{o:()=>OptionalTextField});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),_atoms_CheckBox__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./components/atoms/CheckBox.js"),_atoms_TextField__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./components/atoms/TextField.js"),_atoms_MultiTextField__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./components/atoms/MultiTextField.js"),_atoms_RadioField__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./components/atoms/RadioField.js"),next_i18next__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/next-i18next/dist/esm/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);function OptionalTextField(param){let{controlType="checkbox",...props}=param,[showTextField,setShowTextField]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(props.checked||!1);const[expandState,setExpandState]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)("collapsed"),{t}=(0,next_i18next__WEBPACK_IMPORTED_MODULE_6__.Bd)("common");let handleCheckChange=(wasChecked,name,value)=>{wasChecked?(setShowTextField(!1),setExpandState(t("collapsed"))):(setShowTextField(!0),setExpandState(t("expanded"))),props.onControlChange&&props.onControlChange(wasChecked,name,value)};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:["checkbox"===controlType&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_atoms_CheckBox__WEBPACK_IMPORTED_MODULE_2__.o,{label:props.controlLabel,id:props.controlId,name:props.controlName,className:props.checkBoxStyle,checked:props.checked,uncontrolled:props.uncontrolled,value:props.controlValue,onChange:handleCheckChange,dataTestId:props.controlDataTestId,required:props.controlRequired,dataCy:props.controlDataCy,expandState}),"radiofield"===controlType&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_atoms_RadioField__WEBPACK_IMPORTED_MODULE_5__.A,{label:props.controlLabel,id:props.controlId,name:props.controlName,checked:props.checked,uncontrolled:props.uncontrolled,value:props.controlValue,onChange:handleCheckChange,required:props.controlRequired,dataTestId:props.controlDataTestId,dataCy:props.controlDataCy}),props.uncontrolled&&showTextField||props.checked?props.multiText?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_atoms_MultiTextField__WEBPACK_IMPORTED_MODULE_4__.f,{label:props.textFieldLabel,placeholder:props.textFieldPlaceHolder,name:props.textFieldName,id:props.textFieldId,value:props.textFieldValue,boldLabel:props.textLabelBold,rows:props.rows,cols:props.cols,spellCheck:props.spellCheck,wrap:props.wrap,required:props.textFieldRequired,onChange:props.onTextFieldChange?props.onTextFieldChange:()=>{},dataTestId:props.textFieldDataTestId,dataCy:props.textFieldDataCy,error:props.error,describedby:props.describedby}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_atoms_TextField__WEBPACK_IMPORTED_MODULE_3__.A,{label:props.textFieldLabel,placeholder:props.textFieldPlaceHolder,name:props.textFieldName,id:props.textFieldId,value:props.textFieldValue,boldLabel:props.textLabelBold,uncontrolled:props.uncontrolled,required:props.textFieldRequired,onChange:props.onTextFieldChange?props.onTextFieldChange:()=>{},dataTestId:props.textFieldDataTestId,describedby:props.describedby,dataCy:props.textFieldDataCy}):void 0]})}OptionalTextField.propTypes={controlType:prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["checkbox","radiofield"]),controlId:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,textFieldId:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,controlName:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,textFieldName:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,controlLabel:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,textFieldLabel:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,textLabelBold:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool,controlValue:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,textFieldValue:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,textFieldPlaceHolder:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,checked:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool,uncontrolled:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool,controlRequired:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool,textFieldRequired:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool,controlDataTestId:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,textFieldDataTestId:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,controlDataCy:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,textFieldDataCy:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,onControlChange:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func,onTextFieldChange:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func,multiText:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool,rows:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number,cols:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number,minLength:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number,maxLength:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number,wrap:prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["hard","soft"]),spellCheck:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool,error:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,describedby:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,checkBoxStyle:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string},OptionalTextField.__docgenInfo={description:"An optional text box that is enabled by a checkbox",methods:[],displayName:"OptionalTextField",props:{controlType:{defaultValue:{value:'"checkbox"',computed:!1},description:"the type of field that should be used",type:{name:"enum",value:[{value:'"checkbox"',computed:!1},{value:'"radiofield"',computed:!1}]},required:!1},controlId:{description:"the id for the checkbox",type:{name:"string"},required:!0},textFieldId:{description:"the id for the text field",type:{name:"string"},required:!0},controlName:{description:"the name for the checkbox",type:{name:"string"},required:!0},textFieldName:{description:"the name for the text field",type:{name:"string"},required:!0},controlLabel:{description:"the label for the checkbox",type:{name:"string"},required:!0},textFieldLabel:{description:"the label for the text field",type:{name:"string"},required:!0},textLabelBold:{description:"whether or not the text label is bold",type:{name:"bool"},required:!1},controlValue:{description:"the value for the checkbox",type:{name:"string"},required:!1},textFieldValue:{description:"the value for the text field",type:{name:"string"},required:!1},textFieldPlaceHolder:{description:"text field placeholder",type:{name:"string"},required:!1},checked:{description:"whether or not the checkbox is checked",type:{name:"bool"},required:!1},uncontrolled:{description:"boolean flag to denote whether or not the inputs are controlled",type:{name:"bool"},required:!1},controlRequired:{description:"whether or not the control is required",type:{name:"bool"},required:!1},textFieldRequired:{description:"whether or not the text field is required",type:{name:"bool"},required:!1},controlDataTestId:{description:"the test id for the checkbox to select in unit tests",type:{name:"string"},required:!1},textFieldDataTestId:{description:"the test id for the text field to select in unit tests",type:{name:"string"},required:!1},controlDataCy:{description:"the cypress selector for the checkbox",type:{name:"string"},required:!1},textFieldDataCy:{description:"the cypress selector for the text field",type:{name:"string"},required:!1},onControlChange:{description:"callback when the checkbox changes",type:{name:"func"},required:!1},onTextFieldChange:{description:"callback when the text field changes",type:{name:"func"},required:!1},multiText:{description:"whether or not its a multi text field",type:{name:"bool"},required:!1},rows:{description:"how much lines should the multi text field show",type:{name:"number"},required:!1},cols:{description:"how much columns the multi text field has",type:{name:"number"},required:!1},minLength:{description:"the minimum amount of characters for the multi text field",type:{name:"number"},required:!1},maxLength:{description:"the maximum amount of characters for the multi text field",type:{name:"number"},required:!1},wrap:{description:"the wrap preference for the multi text field",type:{name:"enum",value:[{value:'"hard"',computed:!1},{value:'"soft"',computed:!1}]},required:!1},spellCheck:{description:"whether or not to spellcheck for the multi text field",type:{name:"bool"},required:!1},error:{description:"message to display if there is an error",type:{name:"string"},required:!1},describedby:{description:"aria-describedby label id",type:{name:"string"},required:!1},checkBoxStyle:{description:"Styling for checkbox",type:{name:"string"},required:!1}}}},"?6a05":()=>{}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/2433.b6f5e0d9.iframe.bundle.js b/refs/pull/1122/merge/2433.b6f5e0d9.iframe.bundle.js new file mode 100644 index 0000000000..244e7bb520 --- /dev/null +++ b/refs/pull/1122/merge/2433.b6f5e0d9.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[2433],{"./node_modules/memoizerific sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/memoizerific sync recursive",module.exports=webpackEmptyContext}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/2789.c64b6d14.iframe.bundle.js b/refs/pull/1122/merge/2789.c64b6d14.iframe.bundle.js new file mode 100644 index 0000000000..d601c66676 --- /dev/null +++ b/refs/pull/1122/merge/2789.c64b6d14.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[2789],{"./components/atoms/ActionButton.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{r:()=>ActionButton});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),prop_types__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__),next_link__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/next/link.js"),next_link__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/next/dist/compiled/react/index.js");function ActionButton(props){const style="primary"===props.style?"text-multi-neutrals-white bg-multi-blue-blue70 hover:bg-multi-blue-blue60g focus:bg-multi-blue-blue60g":"secondary"===props.style?"text-multi-blue-blue60b bg-multi-neutrals-grey30a hover:bg-multi-neutrals-grey50a focus:bg-multi-neutrals-grey60":"tertiary"===props.style?"text-multi-neutrals-black bg-white hover:bg-multi-neutrals-grey50a focus:bg-multi-neutrals-grey60":"supertask"===props.style?"text-multi-neutrals-white bg-specific-green-green50 hover:bg-specific-green-green70 focus:bg-sepcific-green-green70":"danger"===props.style?"text-multi-neutrals-white bg-specific-red-red50 hover:bg-specific-red-red70 focus:bg-specific-red-red70":"link"===props.style?"text-multi-blue-blue60c hover:text-multi-blue-blue50b focus:text-multi-blue-blue60f":"";return(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((()=>{let link=document.getElementById(props.id);link&&link.addEventListener("keydown",(event=>{"Spacebar"!==event.key&&" "!==event.key||(event.preventDefault(),link.click())}))})),props.href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(next_link__WEBPACK_IMPORTED_MODULE_1___default(),{href:props.href,"aria-label":"".concat(props.ariaLabel?props.ariaLabel:void 0),className:"flex flex-row ".concat(style," focus:ring focus:ring-offset-4 ring-multi-blue-blue60f py-2 px-4 rounded w-fit text-mobilebody lg:text-p font-body ").concat(props.custom),onClick:props.onClick,id:props.id,"data-testid":props.dataTestId,"data-cy":props.dataCy||props.id,"data-cy-button":props.dataCyButton,disabled:props.disabled,role:"button",draggable:"false",lang:props.lang,children:[props.icon&&!props.iconEnd?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:props.icon,"data-testid":props.dataTestId}):void 0,props.text,props.children,props.icon&&props.iconEnd?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"".concat(props.icon," ").concat(props.iconStyle),"data-testid":props.dataTestId}):void 0]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button",{"aria-expanded":"".concat(props.ariaExpanded?props.ariaExpanded:void 0),"aria-label":"".concat(props.ariaLabel?props.ariaLabel:void 0),className:"flex flex-row ".concat(style," focus:ring focus:ring-offset-4 ring-multi-blue-blue60f py-2 px-4 rounded w-fit text-mobilebody lg:text-p font-body ").concat(props.custom),onClick:props.onClick,type:props.type,id:props.id,"data-testid":props.dataTestId,"data-cy":props.dataCy||props.id,"data-cy-button":props.dataCyButton,disabled:props.disabled,"data-gc-analytics-submit":props.analyticsTracking?"submit":void 0,children:[props.icon&&!props.iconEnd?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:props.icon,"data-testid":props.dataTestId}):void 0,props.imageSource&&props.imageAlt?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("img",{src:props.imageSource,alt:props.imageAlt}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:props.imageSpanClass,"data-testid":props.dataTestId,children:props.imageSpanText})]}):void 0,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span",{className:"flex",children:[props.text,props.expandIcon]}),props.children,props.icon&&props.iconEnd?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"".concat(props.icon," ").concat(props.iconStyle),"data-testid":props.dataTestId}):void 0]})}ActionButton.propTypes={icon:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,iconEnd:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,iconStyle:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,text:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,href:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,id:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string.isRequired,lang:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,type:prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf(["submit","reset"]),secondary:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,tertiary:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,custom:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,onClick:prop_types__WEBPACK_IMPORTED_MODULE_3___default().func,style:prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf(["supertask","primary","secondary","danger","link","tertiary"]),children:prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,prop_types__WEBPACK_IMPORTED_MODULE_3___default().element,prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default().element)]),dataTestId:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,dataCy:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,dataCyButton:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,disabled:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,analyticsTracking:prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool,expandIcon:prop_types__WEBPACK_IMPORTED_MODULE_3___default().object,ariaExpanded:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,ariaLabel:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,imageSource:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,imageAlt:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,imageSpanText:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string,imageSpanClass:prop_types__WEBPACK_IMPORTED_MODULE_3___default().string},ActionButton.__docgenInfo={description:"Button component",methods:[],displayName:"ActionButton",props:{icon:{description:"This will add an icon inside the button when needed",type:{name:"string"},required:!1},iconEnd:{description:"This is for placing an icon at the end of the component",type:{name:"bool"},required:!1},iconStyle:{description:"This will add styles to the icon span inside the button when needed",type:{name:"string"},required:!1},text:{description:"The text that the button will display",type:{name:"string"},required:!1},href:{description:"Style link as a button when there's a href",type:{name:"string"},required:!1},id:{description:"Identify which button being clicked",type:{name:"string"},required:!0},lang:{description:"Lang attribute for links that do not match the language of the top level document",type:{name:"string"},required:!1},type:{description:"the type of the button",type:{name:"enum",value:[{value:'"submit"',computed:!1},{value:'"reset"',computed:!1}]},required:!1},secondary:{description:"Secondary color styling option",type:{name:"bool"},required:!1},tertiary:{description:"Tertiary color styling option",type:{name:"bool"},required:!1},custom:{description:"Custom button styling option",type:{name:"string"},required:!1},onClick:{description:"Callback for a click event on the button",type:{name:"func"},required:!1},style:{description:"User must input one of the follow button styles to apply\nto their button. To apply the link style, the user must\nalso add a value to the href prop",type:{name:"enum",value:[{value:'"supertask"',computed:!1},{value:'"primary"',computed:!1},{value:'"secondary"',computed:!1},{value:'"danger"',computed:!1},{value:'"link"',computed:!1},{value:'"tertiary"',computed:!1}]},required:!1},children:{description:"any other elements you want to add to the button",type:{name:"union",value:[{name:"string"},{name:"element"},{name:"arrayOf",value:{name:"element"}}]},required:!1},dataTestId:{description:"Test id for unit test",type:{name:"string"},required:!1},dataCy:{description:"Test id for e2e test",type:{name:"string"},required:!1},dataCyButton:{description:"Test id for e2e test",type:{name:"string"},required:!1},disabled:{description:"Enabled or disabled the button",type:{name:"bool"},required:!1},analyticsTracking:{description:"For tracking reset or submit on forms for analytics",type:{name:"bool"},required:!1},expandIcon:{description:"Expand icon that will show the Feedback as popup",type:{name:"object"},required:!1},ariaExpanded:{description:"Aria expanded state",type:{name:"string"},required:!1},ariaLabel:{description:"Aria label",type:{name:"string"},required:!1},imageSource:{description:"Image source",type:{name:"string"},required:!1},imageAlt:{description:"Image alt",type:{name:"string"},required:!1},imageSpanText:{description:"Image span text",type:{name:"string"},required:!1},imageSpanClass:{description:"Image span classname",type:{name:"string"},required:!1}}}},"./components/atoms/ErrorLabel.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{r:()=>ErrorLabel});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),prop_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);function ErrorLabel(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"error-label border-l-4 border-error-border-red px-3 py-1 bg-error-background-red font-body font-bold mb-5px text-sm lg:text-p ".concat(props.className),children:props.message})}ErrorLabel.propTypes={message:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired,className:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string},ErrorLabel.__docgenInfo={description:"error label component that is used with form inputs to display error messages",methods:[],displayName:"ErrorLabel",props:{message:{description:"",type:{name:"string"},required:!0},className:{description:"Prop for adding some classes",type:{name:"string"},required:!1}}}},"./components/molecules/FeedbackWidget.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__,S:()=>FeedbackWidget});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__),next_i18next__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/next-i18next/dist/esm/index.js"),_atoms_ActionButton__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./components/atoms/ActionButton.js"),joi__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/joi/dist/joi-browser.min.js"),joi__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(joi__WEBPACK_IMPORTED_MODULE_4__),_atoms_ErrorLabel__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./components/atoms/ErrorLabel.js"),focus_trap_react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/focus-trap-react/dist/focus-trap-react.js"),focus_trap_react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(focus_trap_react__WEBPACK_IMPORTED_MODULE_6__),react_lock_scroll__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react-lock-scroll/build/index.js"),react_lock_scroll__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_lock_scroll__WEBPACK_IMPORTED_MODULE_7__),_lib_utils_stripFeedback__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./lib/utils/stripFeedback.js"),process=__webpack_require__("./node_modules/process/browser.js");const FeedbackWidget=param=>{let{showFeedback,toggleForm,projectName,path}=param;const[submitted,setSubmitted]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1),[feedbackClose,setFeedbackClose]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1),{t}=(0,next_i18next__WEBPACK_IMPORTED_MODULE_2__.Bd)("common"),[response,setResponse]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(t("thankYouFeedback")),email=process.env.NEXT_PUBLIC_NOTIFY_REPORT_A_PROBLEM_EMAIL,[count,setCount]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(2e3);react_lock_scroll__WEBPACK_IMPORTED_MODULE_7___default()(showFeedback),(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((()=>{showFeedback||(setFeedbackError(""),setFeedback(""))}),[showFeedback]);const formSchema=joi__WEBPACK_IMPORTED_MODULE_4___default().object({feedback:joi__WEBPACK_IMPORTED_MODULE_4___default().string().required().error((errors=>(errors.forEach((error=>{error.code,error.message=t("feedbackRequired")})),errors)))});const[feedback,setFeedback]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(""),[feedbackError,setFeedbackError]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(""),feedbackObject=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)({feedbackToSend:{project:"",pageUrl:"",feedback:""}});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:showFeedback?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(focus_trap_react__WEBPACK_IMPORTED_MODULE_6___default(),{focusTrapOptions:{initialFocus:!1,fallbackFocus:"#feedbackClose"},children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"fixed top-0 left-0 w-screen h-full flex justify-center items-center",style:{background:"rgba(71, 71, 71, 0.8)"},children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"w-auto mx-12 md:mx-24 bg-white shadow-lg border-black border-4","data-testid":"feedbackDropdown",children:[submitted?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{role:"status",className:"w-full",children:feedbackClose?"":(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"".concat(response===t("thankYouFeedback")?"bg-custom-green-darker font-bold":"bg-circle-color"," text-white flex py-2"),children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"layout-container flex",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span",{className:"flex flex-col text-xs lg:text-sm font-body mt-2 mb-4 w-full",children:[response,response===t("sorryFeedback")?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_atoms_ActionButton__WEBPACK_IMPORTED_MODULE_3__.r,{id:"link-mail",ariaLabel:"Service Canada email",dataCy:"link-mail",dataTestId:"link-mail",href:"mailto:".concat(email),text:email,custom:"w-max text-xs lg:text-sm underline outline-none focus:outline-white-solid"}):""]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"w-1/4 flex justify-end",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_atoms_ActionButton__WEBPACK_IMPORTED_MODULE_3__.r,{id:"feedbackClose",ariaLabel:"Close the expanded feedback section",dataCy:"closeButton",dataTestId:"closeButton",custom:"font-body text-gray-dark-100 flex -py-1 mt-2.5 lg:mt-0 outline-none focus:outline-white-solid items-center",imageSource:"/close-x.svg",imageAlt:"Close button",imageSpanClass:"text-xs text-white leading-4 lg:text-sm underline ml-1 lg:ml-2 lg:leading-10",imageSpanText:t("close"),onClick:()=>setFeedbackClose(!0),tabindex:"-1"})})]})})}):"",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"layout-container text-gray-dark-100 pb-4",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"pt-4",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_atoms_ActionButton__WEBPACK_IMPORTED_MODULE_3__.r,{id:"feedbackClose",ariaLabel:"Close the expanded feedback section",dataCy:"closeButton",dataTestId:"closeButton",custom:"flex float-right font-body text-gray-dark-100 flex mt-2.5 lg:mt-0 outline-none focus:outline-white-solid items-center",imageSource:"/close-x.svg",imageAlt:"Close button",imageSpanClass:"text-xs leading-4 lg:text-sm underline ml-2 lg:leading-10",imageSpanText:t("close"),onClick:()=>{toggleForm(),setCount(2e3)}})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("h2",{className:"text-h4 lg:text-h3 lg:text-sm font-display pt-6 mb-4 w-48 sm:w-auto",children:t("improveService")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("ul",{className:"list-outside list-disc px-6 pb-3",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("li",{className:"text-xs lg:text-sm pt-2 pb-1 font-body",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("strong",{children:t("reportAProblemNoReply")})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("li",{className:"text-xs lg:text-sm font-body mb-0",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("strong",{children:t("confidential")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_atoms_ActionButton__WEBPACK_IMPORTED_MODULE_3__.r,{ariaLabel:"Privacy page link",id:"link-privacyPage",dataCy:"link-privacyPage",dataTestId:"link-privacyPage",href:t("privacyLink"),text:t("reportAProblemPrivacyStatement"),custom:"text-xs lg:text-sm underline ml-2 outline-none focus:outline-white-solid"})]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("form",{"data-gc-analytics-formname":"ESDC|EDSC:ServiceCanadaLabsFeedback-Form","data-gc-analytics-collect":'[{"value":"input,select","emptyField":"N/A"}]',className:"w-full",action:"#",onSubmit:async e=>{e.preventDefault(),await setFeedbackError("");const formData={feedback};var cleanedFeedback=(0,_lib_utils_stripFeedback__WEBPACK_IMPORTED_MODULE_8__.m)(formData.feedback);feedbackObject.current.feedbackToSend={project:projectName,pageUrl:path,feedback:cleanedFeedback};const{error}=formSchema.validate(formData,{abortEarly:!1,allowUnknown:!0});if(void 0===error){const response=await fetch("/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(feedbackObject.current.feedbackToSend)});201===response.status||200===response.status?(await setResponse(t("thankYouFeedback")),setFeedback(""),setCount(2e3)):await setResponse(t("sorryFeedback")),setSubmitted(!0),setFeedbackClose(!1),function setFocusAfterSubmit(){document.getElementById("feedbackButton").focus()}()}else setFeedbackError(error.message)},"aria-live":"polite",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("label",{htmlFor:"feedbackTextArea",className:"text-xs lg:text-sm font-body",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("b",{className:"text-error-border-red mr-1","aria-hidden":"true",children:"*"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("b",{children:t("doBetter")})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{id:"feedbackInfo",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"text-xs lg:text-sm my-2",children:t("doNotInclude")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("p",{className:"text-xs lg:text-sm mb-1 mt-4",children:[count,t("maximum2000")]})]}),feedbackError?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_atoms_ErrorLabel__WEBPACK_IMPORTED_MODULE_5__.r,{message:feedbackError,className:"text-black mt-4"}):void 0,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("textarea",{"aria-describedby":"feedbackInfo",id:"feedbackTextArea",name:"feedbackTextArea",maxLength:"2000",rows:"5",className:"text-input font-body w-full min-h-40px shadow-sm text-form-input-gray border-2 border-gray-dark-100 my-2 py-6px px-12px rounded",value:feedback,onChange:e=>setFeedback(e.currentTarget.value),onInput:e=>setCount(2e3-e.currentTarget.value.length),"aria-required":"true"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_atoms_ActionButton__WEBPACK_IMPORTED_MODULE_3__.r,{id:"feedback-submit",ariaLabel:"Submit feedback",custom:"outline-none focus:outline-black-solid rounded block w-full lg:w-auto lg:px-12 text-xs lg:text-sm py-2 mt-2 font-bold bg-custom-blue-blue text-white border border-custom-blue-blue active:bg-custom-blue-dark hover:bg-custom-blue-light flex justify-center",type:"submit",dataCy:"feedback-submit",dataTestId:"feedback-submit",text:t("reportAProblemSubmit"),analyticsTracking:!0})]})]})]})})}):""})};FeedbackWidget.propTypes={feedbackActive:prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool};const __WEBPACK_DEFAULT_EXPORT__=FeedbackWidget;FeedbackWidget.__docgenInfo={description:"Displays the PhaseBanner on the page",methods:[],displayName:"FeedbackWidget",props:{feedbackActive:{description:"This is for showing the feedback component",type:{name:"bool"},required:!1}}}},"./lib/utils/stripFeedback.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function stripFeedback(feedbackToClean){return feedbackToClean=(feedbackToClean=(feedbackToClean=(feedbackToClean=(feedbackToClean=feedbackToClean.replaceAll(/[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ -]?\d[ABCEGHJ-NPRSTV-Z]\d/gim,"### ###")).replaceAll(/(\d{3}\s*\d{3}\s*\d{3}|\d{3}\D*\d{3}\D*\d{3})/gm,"### ### ###")).replaceAll(/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*/gim,"####@####.####")).replaceAll(/(\+\d{1,2}\s?)?1?\-?\.?\s?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}/gm,"# ### ### ###")).replaceAll(/(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?/gm,"# ### ### ###")}__webpack_require__.d(__webpack_exports__,{m:()=>stripFeedback})},"?6a05":()=>{}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/5009.02b9c1bb.iframe.bundle.js b/refs/pull/1122/merge/5009.02b9c1bb.iframe.bundle.js new file mode 100644 index 0000000000..b82c0ad8fc --- /dev/null +++ b/refs/pull/1122/merge/5009.02b9c1bb.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[5009],{"./node_modules/@storybook/components/dist/syntaxhighlighter-BP7B2CQK.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SyntaxHighlighter:()=>_chunk_WDXN43AK_mjs__WEBPACK_IMPORTED_MODULE_0__.bF,createCopyToClipboardFunction:()=>_chunk_WDXN43AK_mjs__WEBPACK_IMPORTED_MODULE_0__.zH,default:()=>_chunk_WDXN43AK_mjs__WEBPACK_IMPORTED_MODULE_0__.L0,supportedLanguages:()=>_chunk_WDXN43AK_mjs__WEBPACK_IMPORTED_MODULE_0__.Uv});var _chunk_WDXN43AK_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/components/dist/chunk-WDXN43AK.mjs")}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/5416.a301e60a.iframe.bundle.js b/refs/pull/1122/merge/5416.a301e60a.iframe.bundle.js new file mode 100644 index 0000000000..3a6e89fa90 --- /dev/null +++ b/refs/pull/1122/merge/5416.a301e60a.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[5416],{"./node_modules/@storybook/addon-docs/node_modules/@storybook/blocks/dist/Color-PRSJMWNM.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ColorControl:()=>ColorControl,default:()=>Color_default});var chunk_GWAJ4KRU=__webpack_require__("./node_modules/@storybook/addon-docs/node_modules/@storybook/blocks/dist/chunk-GWAJ4KRU.mjs"),react=__webpack_require__("./node_modules/next/dist/compiled/react/index.js");function u(){return(u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function i(e){var t=(0,react.useRef)(e),n=(0,react.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]}),[p,g]),C=x[0],E=x[1],H=x[2];return(0,react.useEffect)((function(){return H}),[H]),react.createElement("div",u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))})),g=function(e){return e.filter(Boolean).join(" ")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g(["react-colorful__pointer",r.className]);return react.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},react.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function(e){return L(C(e))},C=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b(parseInt(e.substring(6,8),16)/255,2):1}},E=function(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},H=function(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?N({h:E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},q=function(e){var r=y(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},k=function(e){var r=y(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},z=function(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b(255*o)):"";return"#"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},S=react.memo((function(r){var t=r.hue,n=r.onChange,o=g(["react-colorful__hue",r.className]);return react.createElement("div",{className:o},react.createElement(m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":b(t),"aria-valuemax":"360","aria-valuemin":"0"},react.createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))})),T=react.memo((function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return react.createElement("div",{className:"react-colorful__saturation",style:o},react.createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b(t.s)+"%, Brightness "+b(t.v)+"%"},react.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))})),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=(0,react.useState)((function(){return e.toHsva(t)})),s=c[0],f=c[1],v=(0,react.useRef)({color:t,hsva:s});(0,react.useEffect)((function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}}),[t,e]),(0,react.useEffect)((function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))}),[s,e,u]);var d=(0,react.useCallback)((function(e){f((function(r){return Object.assign({},r,e)}))}),[]);return[s,d]}var R,ColorSpace2,V="undefined"!=typeof window?react.useLayoutEffect:react.useEffect,J=new Map,Q=function(e){V((function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=R||__webpack_require__.nc;n&&t.setAttribute("nonce",n),r.head.appendChild(t)}}),[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=(0,react.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react.createElement("div",u({},s,{ref:f,className:m}),react.createElement(T,{hsva:d,onChange:h}),react.createElement(S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+k(Object.assign({},n,{a:0}))+", "+k(Object.assign({},n,{a:1}))+")"},l=g(["react-colorful__alpha",t]),u=b(100*n.a);return react.createElement("div",{className:l},react.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),react.createElement(m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},react.createElement(p,{className:"react-colorful__alpha-pointer",left:n.a,color:k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=(0,react.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react.createElement("div",u({},s,{ref:f,className:m}),react.createElement(T,{hsva:d,onChange:h}),react.createElement(S,{hue:d.h,onChange:h}),react.createElement(ee,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:H,fromHsva:k,equal:P},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:z,fromHsva:function(e){var r=I(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:P},color_convert=__webpack_require__("./node_modules/color-convert/index.js"),color_convert_default=__webpack_require__.n(color_convert),throttle=__webpack_require__("./node_modules/lodash/throttle.js"),throttle_default=__webpack_require__.n(throttle),dist=__webpack_require__("./node_modules/@storybook/theming/dist/index.mjs"),components_dist=__webpack_require__("./node_modules/@storybook/components/dist/index.mjs"),icons_dist=__webpack_require__("./node_modules/@storybook/addon-docs/node_modules/@storybook/icons/dist/index.mjs"),Wrapper=dist.I4.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),PickerTooltip=(0,dist.I4)(components_dist.kR)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),TooltipContent=dist.I4.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Note=(0,dist.I4)(components_dist._)((({theme})=>({fontFamily:theme.typography.fonts.base}))),Swatches=dist.I4.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=dist.I4.div((({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius}))),Swatch=({value,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), url('data:image/svg+xml;charset=utf-8,'), linear-gradient(#fff, #fff)`;return react.createElement(SwatchColor,{...props,style:{...style,backgroundImage}})},Input=(0,dist.I4)(components_dist.lV.Input)((({theme,readOnly})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:theme.typography.fonts.base}))),ToggleIcon=(0,dist.I4)(icons_dist.QDE)((({theme})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:theme.input.color}))),ColorSpace=((ColorSpace2=ColorSpace||{}).RGB="rgb",ColorSpace2.HSL="hsl",ColorSpace2.HEX="hex",ColorSpace2),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,RGB_REGEXP=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,HSL_REGEXP=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,HEX_REGEXP=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,SHORTHEX_REGEXP=/^\s*#?([0-9a-f]{3})\s*$/i,ColorPicker={hex:function(r){return react.createElement(U,u({},r,{colorModel:W}))},rgb:function(r){return react.createElement(re,u({},r,{colorModel:Ee}))},hsl:function(r){return react.createElement(re,u({},r,{colorModel:le}))}},fallbackColor={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return[0,0,0,1];let[,x,y,z,a=1]=match;return[x,y,z,a].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r,g,b,a]=stringToArgs(value),[h,s,l]=color_convert_default().rgb.hsl([r,g,b])||[0,0,0];return{valid,value,keyword:color_convert_default().rgb.keyword([r,g,b]),colorSpace:"rgb",rgb:value,hsl:`hsla(${h}, ${s}%, ${l}%, ${a})`,hex:`#${color_convert_default().rgb.hex([r,g,b]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h,s,l,a]=stringToArgs(value),[r,g,b]=color_convert_default().hsl.rgb([h,s,l])||[0,0,0];return{valid,value,keyword:color_convert_default().hsl.keyword([h,s,l]),colorSpace:"hsl",rgb:`rgba(${r}, ${g}, ${b}, ${a})`,hsl:value,hex:`#${color_convert_default().hsl.hex([h,s,l]).toLowerCase()}`}}let plain=value.replace("#",""),rgb=color_convert_default().keyword.rgb(plain)||color_convert_default().hex.rgb(plain),hsl=color_convert_default().rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith("#"))valid=HEX_REGEXP.test(mapped);else try{color_convert_default().keyword.hex(mapped)}catch{valid=!1}return{valid,value:mapped,keyword:color_convert_default().rgb.keyword(rgb),colorSpace:"hex",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},useColorInput=(initialValue,onChange)=>{let[value,setValue]=(0,react.useState)(initialValue||""),[color,setColor]=(0,react.useState)((()=>parseValue(value))),[colorSpace,setColorSpace]=(0,react.useState)(color?.colorSpace||"hex");(0,react.useEffect)((()=>{let nextValue=initialValue||"",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||"hex")}),[initialValue]);let realValue=(0,react.useMemo)((()=>((value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if("hex"!==colorSpace)return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith("#"))try{return`#${color_convert_default().keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r,g,b]=short[1].split("");return`#${r}${r}${g}${g}${b}${b}`})(value,color,colorSpace).toLowerCase()),[value,color,colorSpace]),updateValue=(0,react.useCallback)((update=>{let parsed=parseValue(update),v=parsed?.value||update||"";setValue(v),""===v&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value))}),[onChange]),cycleColorSpace=(0,react.useCallback)((()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||"";setValue(update),onChange(update)}),[color,colorSpace,onChange]);return{value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\s*/,"").toLowerCase(),ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1,argType})=>{let throttledOnChange=(0,react.useCallback)(throttle_default()(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,throttledOnChange),{presets,addPreset}=((presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=(0,react.useState)(currentColor?.valid?[currentColor]:[]);(0,react.useEffect)((()=>{void 0===currentColor&&setSelectedColors([])}),[currentColor]);let presets=(0,react.useMemo)((()=>(presetColors||[]).map((preset=>"string"==typeof preset?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color))).concat(selectedColors).filter(Boolean).slice(-27)),[presetColors,selectedColors]),addPreset=(0,react.useCallback)((color=>{color?.valid&&(presets.some((preset=>id(preset[colorSpace])===id(color[colorSpace])))||setSelectedColors((arr=>arr.concat(color))))}),[colorSpace,presets]);return{presets,addPreset}})(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace],readonly=!!argType?.table?.readonly;return react.createElement(Wrapper,{"aria-readonly":readonly},react.createElement(PickerTooltip,{startOpen,trigger:readonly?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:react.createElement(TooltipContent,null,react.createElement(Picker,{color:"transparent"===realValue?"#000000":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&react.createElement(Swatches,null,presets.map(((preset,index)=>react.createElement(components_dist.kR,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:react.createElement(Note,{note:preset.keyword||preset.value})},react.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)}))))))},react.createElement(Swatch,{value:realValue,style:{margin:4}})),react.createElement(Input,{id:(0,chunk_GWAJ4KRU.Z)(name),value,onChange:e=>updateValue(e.target.value),onFocus:e=>e.target.select(),readOnly:readonly,placeholder:"Choose color..."}),value?react.createElement(ToggleIcon,{onClick:cycleColorSpace}):null)},Color_default=ColorControl}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/5633.b6772411.iframe.bundle.js b/refs/pull/1122/merge/5633.b6772411.iframe.bundle.js new file mode 100644 index 0000000000..2007632d90 --- /dev/null +++ b/refs/pull/1122/merge/5633.b6772411.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[5633],{"./node_modules/@storybook/nextjs/dist/images/next-image.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>next_image_default});var chunk_ETFXNGLC_defaultLoader=({src,width,quality=75})=>{let missingValues=[];if(src||missingValues.push("src"),width||missingValues.push("width"),missingValues.length>0)throw new Error(`Next Image Optimization requires ${missingValues.join(", ")} to be provided. Make sure you pass them as props to the \`next/image\` component. Received: ${JSON.stringify({src,width,quality})}`);let url=new URL(src,window.location.href);return!url.searchParams.has("w")&&!url.searchParams.has("q")&&(url.searchParams.set("w",width.toString()),url.searchParams.set("q",quality.toString())),src.startsWith("http://")||src.startsWith("https://")?url.toString():url.toString().slice(url.origin.length)},next_image=(__webpack_require__("./node_modules/@storybook/nextjs/dist/chunk-BLWNPPTR.mjs"),__webpack_require__("./node_modules/next/image.js")),image_default=__webpack_require__.n(next_image),react=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),image_context=__webpack_require__("./node_modules/@storybook/nextjs/dist/image-context.mjs"),OriginalNextImage=image_default(),{getImageProps:originalGetImageProps}=next_image,ImageContext=image_context.Z,MockedNextImage=react.forwardRef((({loader,...props},ref)=>{let imageParameters=react.useContext(ImageContext);return react.createElement(OriginalNextImage,{ref,...imageParameters,...props,loader:loader??chunk_ETFXNGLC_defaultLoader})}));MockedNextImage.displayName="NextImage";var next_image_default=MockedNextImage},"./node_modules/next/dist/client/image-component.js":(module,exports,__webpack_require__)=>{var process=__webpack_require__("./node_modules/process/browser.js");Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return Image}});const _interop_require_default=__webpack_require__("./node_modules/@swc/helpers/cjs/_interop_require_default.cjs"),_interop_require_wildcard=__webpack_require__("./node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"),_jsxruntime=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),_react=_interop_require_wildcard._(__webpack_require__("./node_modules/next/dist/compiled/react/index.js")),_reactdom=_interop_require_default._(__webpack_require__("./node_modules/next/dist/compiled/react-dom/index.js")),_head=_interop_require_default._(__webpack_require__("./node_modules/next/dist/shared/lib/head.js")),_getimgprops=__webpack_require__("./node_modules/next/dist/shared/lib/get-img-props.js"),_imageconfig=__webpack_require__("./node_modules/next/dist/shared/lib/image-config.js"),_imageconfigcontextsharedruntime=__webpack_require__("./node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js"),_routercontextsharedruntime=(__webpack_require__("./node_modules/next/dist/shared/lib/utils/warn-once.js"),__webpack_require__("./node_modules/next/dist/shared/lib/router-context.shared-runtime.js")),_imageloader=_interop_require_default._(__webpack_require__("./node_modules/next/dist/shared/lib/image-loader.js")),configEnv=process.env.__NEXT_IMAGE_OPTS;function handleLoading(img,placeholder,onLoadRef,onLoadingCompleteRef,setBlurComplete,unoptimized,sizesInput){const src=null==img?void 0:img.src;if(!img||img["data-loaded-src"]===src)return;img["data-loaded-src"]=src;("decode"in img?img.decode():Promise.resolve()).catch((()=>{})).then((()=>{if(img.parentElement&&img.isConnected){if("empty"!==placeholder&&setBlurComplete(!0),null==onLoadRef?void 0:onLoadRef.current){const event=new Event("load");Object.defineProperty(event,"target",{writable:!1,value:img});let prevented=!1,stopped=!1;onLoadRef.current({...event,nativeEvent:event,currentTarget:img,target:img,isDefaultPrevented:()=>prevented,isPropagationStopped:()=>stopped,persist:()=>{},preventDefault:()=>{prevented=!0,event.preventDefault()},stopPropagation:()=>{stopped=!0,event.stopPropagation()}})}(null==onLoadingCompleteRef?void 0:onLoadingCompleteRef.current)&&onLoadingCompleteRef.current(img)}}))}function getDynamicProps(fetchPriority){return Boolean(_react.use)?{fetchPriority}:{fetchpriority:fetchPriority}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);const ImageElement=(0,_react.forwardRef)(((param,forwardedRef)=>{let{src,srcSet,sizes,height,width,decoding,className,style,fetchPriority,placeholder,loading,unoptimized,fill,onLoadRef,onLoadingCompleteRef,setBlurComplete,setShowAltText,sizesInput,onLoad,onError,...rest}=param;return(0,_jsxruntime.jsx)("img",{...rest,...getDynamicProps(fetchPriority),loading,width,height,decoding,"data-nimg":fill?"fill":"1",className,style,sizes,srcSet,src,ref:(0,_react.useCallback)((img=>{forwardedRef&&("function"==typeof forwardedRef?forwardedRef(img):"object"==typeof forwardedRef&&(forwardedRef.current=img)),img&&(onError&&(img.src=img.src),img.complete&&handleLoading(img,placeholder,onLoadRef,onLoadingCompleteRef,setBlurComplete))}),[src,placeholder,onLoadRef,onLoadingCompleteRef,setBlurComplete,onError,unoptimized,sizesInput,forwardedRef]),onLoad:event=>{handleLoading(event.currentTarget,placeholder,onLoadRef,onLoadingCompleteRef,setBlurComplete)},onError:event=>{setShowAltText(!0),"empty"!==placeholder&&setBlurComplete(!0),onError&&onError(event)}})}));function ImagePreload(param){let{isAppRouter,imgAttributes}=param;const opts={as:"image",imageSrcSet:imgAttributes.srcSet,imageSizes:imgAttributes.sizes,crossOrigin:imgAttributes.crossOrigin,referrerPolicy:imgAttributes.referrerPolicy,...getDynamicProps(imgAttributes.fetchPriority)};return isAppRouter&&_reactdom.default.preload?(_reactdom.default.preload(imgAttributes.src,opts),null):(0,_jsxruntime.jsx)(_head.default,{children:(0,_jsxruntime.jsx)("link",{rel:"preload",href:imgAttributes.srcSet?void 0:imgAttributes.src,...opts},"__nimg-"+imgAttributes.src+imgAttributes.srcSet+imgAttributes.sizes)})}const Image=(0,_react.forwardRef)(((props,forwardedRef)=>{const isAppRouter=!(0,_react.useContext)(_routercontextsharedruntime.RouterContext),configContext=(0,_react.useContext)(_imageconfigcontextsharedruntime.ImageConfigContext),config=(0,_react.useMemo)((()=>{const c=configEnv||configContext||_imageconfig.imageConfigDefault,allSizes=[...c.deviceSizes,...c.imageSizes].sort(((a,b)=>a-b)),deviceSizes=c.deviceSizes.sort(((a,b)=>a-b));return{...c,allSizes,deviceSizes}}),[configContext]),{onLoad,onLoadingComplete}=props,onLoadRef=(0,_react.useRef)(onLoad);(0,_react.useEffect)((()=>{onLoadRef.current=onLoad}),[onLoad]);const onLoadingCompleteRef=(0,_react.useRef)(onLoadingComplete);(0,_react.useEffect)((()=>{onLoadingCompleteRef.current=onLoadingComplete}),[onLoadingComplete]);const[blurComplete,setBlurComplete]=(0,_react.useState)(!1),[showAltText,setShowAltText]=(0,_react.useState)(!1),{props:imgAttributes,meta:imgMeta}=(0,_getimgprops.getImgProps)(props,{defaultLoader:_imageloader.default,imgConf:config,blurComplete,showAltText});return(0,_jsxruntime.jsxs)(_jsxruntime.Fragment,{children:[(0,_jsxruntime.jsx)(ImageElement,{...imgAttributes,unoptimized:imgMeta.unoptimized,placeholder:imgMeta.placeholder,fill:imgMeta.fill,onLoadRef,onLoadingCompleteRef,setBlurComplete,setShowAltText,sizesInput:props.sizes,ref:forwardedRef}),imgMeta.priority?(0,_jsxruntime.jsx)(ImagePreload,{isAppRouter,imgAttributes}):null]})}));("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},"./node_modules/next/dist/shared/lib/amp-context.shared-runtime.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"AmpStateContext",{enumerable:!0,get:function(){return AmpStateContext}});const AmpStateContext=__webpack_require__("./node_modules/@swc/helpers/cjs/_interop_require_default.cjs")._(__webpack_require__("./node_modules/next/dist/compiled/react/index.js")).default.createContext({})},"./node_modules/next/dist/shared/lib/amp-mode.js":(__unused_webpack_module,exports)=>{"use strict";function isInAmpMode(param){let{ampFirst=!1,hybrid=!1,hasQuery=!1}=void 0===param?{}:param;return ampFirst||hybrid&&hasQuery}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isInAmpMode",{enumerable:!0,get:function(){return isInAmpMode}})},"./node_modules/next/dist/shared/lib/get-img-props.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"getImgProps",{enumerable:!0,get:function(){return getImgProps}});__webpack_require__("./node_modules/next/dist/shared/lib/utils/warn-once.js");const _imageblursvg=__webpack_require__("./node_modules/next/dist/shared/lib/image-blur-svg.js"),_imageconfig=__webpack_require__("./node_modules/next/dist/shared/lib/image-config.js");function isStaticRequire(src){return void 0!==src.default}new Map;function getInt(x){return void 0===x?x:"number"==typeof x?Number.isFinite(x)?x:NaN:"string"==typeof x&&/^[0-9]+$/.test(x)?parseInt(x,10):NaN}function generateImgAttrs(param){let{config,src,unoptimized,width,quality,sizes,loader}=param;if(unoptimized)return{src,srcSet:void 0,sizes:void 0};const{widths,kind}=function getWidths(param,width,sizes){let{deviceSizes,allSizes}=param;if(sizes){const viewportWidthRe=/(^|\s)(1?\d?\d)vw/g,percentSizes=[];for(let match;match=viewportWidthRe.exec(sizes);match)percentSizes.push(parseInt(match[2]));if(percentSizes.length){const smallestRatio=.01*Math.min(...percentSizes);return{widths:allSizes.filter((s=>s>=deviceSizes[0]*smallestRatio)),kind:"w"}}return{widths:allSizes,kind:"w"}}return"number"!=typeof width?{widths:deviceSizes,kind:"w"}:{widths:[...new Set([width,2*width].map((w=>allSizes.find((p=>p>=w))||allSizes[allSizes.length-1])))],kind:"x"}}(config,width,sizes),last=widths.length-1;return{sizes:sizes||"w"!==kind?sizes:"100vw",srcSet:widths.map(((w,i)=>loader({config,src,quality,width:w})+" "+("w"===kind?w:i+1)+kind)).join(", "),src:loader({config,src,quality,width:widths[last]})}}function getImgProps(param,_state){let{src,sizes,unoptimized=!1,priority=!1,loading,className,quality,width,height,fill=!1,style,overrideSrc,onLoad,onLoadingComplete,placeholder="empty",blurDataURL,fetchPriority,decoding="async",layout,objectFit,objectPosition,lazyBoundary,lazyRoot,...rest}=param;const{imgConf,showAltText,blurComplete,defaultLoader}=_state;let config,c=imgConf||_imageconfig.imageConfigDefault;if("allSizes"in c)config=c;else{const allSizes=[...c.deviceSizes,...c.imageSizes].sort(((a,b)=>a-b)),deviceSizes=c.deviceSizes.sort(((a,b)=>a-b));config={...c,allSizes,deviceSizes}}if(void 0===defaultLoader)throw new Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let loader=rest.loader||defaultLoader;delete rest.loader,delete rest.srcSet;const isDefaultLoader="__next_img_default"in loader;if(isDefaultLoader){if("custom"===config.loader)throw new Error('Image with src "'+src+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{const customImageLoader=loader;loader=obj=>{const{config:_,...opts}=obj;return customImageLoader(opts)}}if(layout){"fill"===layout&&(fill=!0);const layoutToSizes={responsive:"100vw",fill:"100vw"},layoutStyle={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[layout];layoutStyle&&(style={...style,...layoutStyle});const layoutSizes=layoutToSizes[layout];layoutSizes&&!sizes&&(sizes=layoutSizes)}let blurWidth,blurHeight,staticSrc="",widthInt=getInt(width),heightInt=getInt(height);if(function isStaticImport(src){return"object"==typeof src&&(isStaticRequire(src)||function isStaticImageData(src){return void 0!==src.src}(src))}(src)){const staticImageData=isStaticRequire(src)?src.default:src;if(!staticImageData.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(staticImageData));if(!staticImageData.height||!staticImageData.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(staticImageData));if(blurWidth=staticImageData.blurWidth,blurHeight=staticImageData.blurHeight,blurDataURL=blurDataURL||staticImageData.blurDataURL,staticSrc=staticImageData.src,!fill)if(widthInt||heightInt){if(widthInt&&!heightInt){const ratio=widthInt/staticImageData.width;heightInt=Math.round(staticImageData.height*ratio)}else if(!widthInt&&heightInt){const ratio=heightInt/staticImageData.height;widthInt=Math.round(staticImageData.width*ratio)}}else widthInt=staticImageData.width,heightInt=staticImageData.height}src="string"==typeof src?src:staticSrc;let isLazy=!priority&&("lazy"===loading||void 0===loading);(!src||src.startsWith("data:")||src.startsWith("blob:"))&&(unoptimized=!0,isLazy=!1),config.unoptimized&&(unoptimized=!0),isDefaultLoader&&src.endsWith(".svg")&&!config.dangerouslyAllowSVG&&(unoptimized=!0),priority&&(fetchPriority="high");const qualityInt=getInt(quality);const imgStyle=Object.assign(fill?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit,objectPosition}:{},showAltText?{}:{color:"transparent"},style),backgroundImage=blurComplete||"empty"===placeholder?null:"blur"===placeholder?'url("data:image/svg+xml;charset=utf-8,'+(0,_imageblursvg.getImageBlurSvg)({widthInt,heightInt,blurWidth,blurHeight,blurDataURL:blurDataURL||"",objectFit:imgStyle.objectFit})+'")':'url("'+placeholder+'")';let placeholderStyle=backgroundImage?{backgroundSize:imgStyle.objectFit||"cover",backgroundPosition:imgStyle.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage}:{};const imgAttributes=generateImgAttrs({config,src,unoptimized,width:widthInt,quality:qualityInt,sizes,loader});return{props:{...rest,loading:isLazy?"lazy":loading,fetchPriority,width:widthInt,height:heightInt,decoding,className,style:{...imgStyle,...placeholderStyle},sizes:imgAttributes.sizes,srcSet:imgAttributes.srcSet,src:overrideSrc||imgAttributes.src},meta:{unoptimized,priority,placeholder,fill}}}},"./node_modules/next/dist/shared/lib/head.js":(module,exports,__webpack_require__)=>{var process=__webpack_require__("./node_modules/process/browser.js");Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{default:function(){return _default},defaultHead:function(){return defaultHead}});const _interop_require_default=__webpack_require__("./node_modules/@swc/helpers/cjs/_interop_require_default.cjs"),_interop_require_wildcard=__webpack_require__("./node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"),_jsxruntime=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),_react=_interop_require_wildcard._(__webpack_require__("./node_modules/next/dist/compiled/react/index.js")),_sideeffect=_interop_require_default._(__webpack_require__("./node_modules/next/dist/shared/lib/side-effect.js")),_ampcontextsharedruntime=__webpack_require__("./node_modules/next/dist/shared/lib/amp-context.shared-runtime.js"),_headmanagercontextsharedruntime=__webpack_require__("./node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js"),_ampmode=__webpack_require__("./node_modules/next/dist/shared/lib/amp-mode.js");__webpack_require__("./node_modules/next/dist/shared/lib/utils/warn-once.js");function defaultHead(inAmpMode){void 0===inAmpMode&&(inAmpMode=!1);const head=[(0,_jsxruntime.jsx)("meta",{charSet:"utf-8"})];return inAmpMode||head.push((0,_jsxruntime.jsx)("meta",{name:"viewport",content:"width=device-width"})),head}function onlyReactElement(list,child){return"string"==typeof child||"number"==typeof child?list:child.type===_react.default.Fragment?list.concat(_react.default.Children.toArray(child.props.children).reduce(((fragmentList,fragmentChild)=>"string"==typeof fragmentChild||"number"==typeof fragmentChild?fragmentList:fragmentList.concat(fragmentChild)),[])):list.concat(child)}const METATYPES=["name","httpEquiv","charSet","itemProp"];function reduceComponents(headChildrenElements,props){const{inAmpMode}=props;return headChildrenElements.reduce(onlyReactElement,[]).reverse().concat(defaultHead(inAmpMode).reverse()).filter(function unique(){const keys=new Set,tags=new Set,metaTypes=new Set,metaCategories={};return h=>{let isUnique=!0,hasKey=!1;if(h.key&&"number"!=typeof h.key&&h.key.indexOf("$")>0){hasKey=!0;const key=h.key.slice(h.key.indexOf("$")+1);keys.has(key)?isUnique=!1:keys.add(key)}switch(h.type){case"title":case"base":tags.has(h.type)?isUnique=!1:tags.add(h.type);break;case"meta":for(let i=0,len=METATYPES.length;i{const key=c.key||i;if(process.env.__NEXT_OPTIMIZE_FONTS&&!inAmpMode&&"link"===c.type&&c.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((url=>c.props.href.startsWith(url)))){const newProps={...c.props||{}};return newProps["data-href"]=newProps.href,newProps.href=void 0,newProps["data-optimized-fonts"]=!0,_react.default.cloneElement(c,newProps)}return _react.default.cloneElement(c,{key})}))}const _default=function Head(param){let{children}=param;const ampState=(0,_react.useContext)(_ampcontextsharedruntime.AmpStateContext),headManager=(0,_react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);return(0,_jsxruntime.jsx)(_sideeffect.default,{reduceComponentsToState:reduceComponents,headManager,inAmpMode:(0,_ampmode.isInAmpMode)(ampState),children})};("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},"./node_modules/next/dist/shared/lib/image-blur-svg.js":(__unused_webpack_module,exports)=>{"use strict";function getImageBlurSvg(param){let{widthInt,heightInt,blurWidth,blurHeight,blurDataURL,objectFit}=param;const svgWidth=blurWidth?40*blurWidth:widthInt,svgHeight=blurHeight?40*blurHeight:heightInt,viewBox=svgWidth&&svgHeight?"viewBox='0 0 "+svgWidth+" "+svgHeight+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+viewBox+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(viewBox?"none":"contain"===objectFit?"xMidYMid":"cover"===objectFit?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+blurDataURL+"'/%3E%3C/svg%3E"}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},"./node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ImageConfigContext",{enumerable:!0,get:function(){return ImageConfigContext}});const _react=__webpack_require__("./node_modules/@swc/helpers/cjs/_interop_require_default.cjs")._(__webpack_require__("./node_modules/next/dist/compiled/react/index.js")),_imageconfig=__webpack_require__("./node_modules/next/dist/shared/lib/image-config.js"),ImageConfigContext=_react.default.createContext(_imageconfig.imageConfigDefault)},"./node_modules/next/dist/shared/lib/image-config.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{VALID_LOADERS:function(){return VALID_LOADERS},imageConfigDefault:function(){return imageConfigDefault}});const VALID_LOADERS=["default","imgix","cloudinary","akamai","custom"],imageConfigDefault={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",localPatterns:void 0,remotePatterns:[],unoptimized:!1}},"./node_modules/next/dist/shared/lib/image-external.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var process=__webpack_require__("./node_modules/process/browser.js");Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{default:function(){return _default},getImageProps:function(){return getImageProps}});const _interop_require_default=__webpack_require__("./node_modules/@swc/helpers/cjs/_interop_require_default.cjs"),_getimgprops=__webpack_require__("./node_modules/next/dist/shared/lib/get-img-props.js"),_imagecomponent=__webpack_require__("./node_modules/next/dist/client/image-component.js"),_imageloader=_interop_require_default._(__webpack_require__("./node_modules/next/dist/shared/lib/image-loader.js"));function getImageProps(imgProps){const{props}=(0,_getimgprops.getImgProps)(imgProps,{defaultLoader:_imageloader.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[key,value]of Object.entries(props))void 0===value&&delete props[key];return{props}}const _default=_imagecomponent.Image},"./node_modules/next/dist/shared/lib/image-loader.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var process=__webpack_require__("./node_modules/process/browser.js");function defaultLoader(param){let{config,src,width,quality}=param;return config.path+"?url="+encodeURIComponent(src)+"&w="+width+"&q="+(quality||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _default}}),defaultLoader.__next_img_default=!0;const _default=defaultLoader},"./node_modules/next/dist/shared/lib/side-effect.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return SideEffect}});const _react=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),isServer="undefined"==typeof window,useClientOnlyLayoutEffect=isServer?()=>{}:_react.useLayoutEffect,useClientOnlyEffect=isServer?()=>{}:_react.useEffect;function SideEffect(props){const{headManager,reduceComponentsToState}=props;function emitChange(){if(headManager&&headManager.mountedInstances){const headElements=_react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean));headManager.updateHead(reduceComponentsToState(headElements,props))}}var _headManager_mountedInstances;isServer&&(null==headManager||null==(_headManager_mountedInstances=headManager.mountedInstances)||_headManager_mountedInstances.add(props.children),emitChange());return useClientOnlyLayoutEffect((()=>{var _headManager_mountedInstances;return null==headManager||null==(_headManager_mountedInstances=headManager.mountedInstances)||_headManager_mountedInstances.add(props.children),()=>{var _headManager_mountedInstances;null==headManager||null==(_headManager_mountedInstances=headManager.mountedInstances)||_headManager_mountedInstances.delete(props.children)}})),useClientOnlyLayoutEffect((()=>(headManager&&(headManager._pendingUpdate=emitChange),()=>{headManager&&(headManager._pendingUpdate=emitChange)}))),useClientOnlyEffect((()=>(headManager&&headManager._pendingUpdate&&(headManager._pendingUpdate(),headManager._pendingUpdate=null),()=>{headManager&&headManager._pendingUpdate&&(headManager._pendingUpdate(),headManager._pendingUpdate=null)}))),null}},"./node_modules/next/dist/shared/lib/utils/warn-once.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"warnOnce",{enumerable:!0,get:function(){return warnOnce}});let warnOnce=_=>{}},"./node_modules/next/image.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/next/dist/shared/lib/image-external.js")}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/5903.1a244564.iframe.bundle.js b/refs/pull/1122/merge/5903.1a244564.iframe.bundle.js new file mode 100644 index 0000000000..cb0d6a0653 --- /dev/null +++ b/refs/pull/1122/merge/5903.1a244564.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[5903],{"./node_modules/@storybook/components/dist/formatter-2WMMO6ZP.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{formatter:()=>formatter});var memoizerific__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/memoizerific/memoizerific.js"),memoizerific__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_0__),console=__webpack_require__("./node_modules/console-browserify/index.js"),Ks=Object.defineProperty,Yr=(t8,e)=>{for(var r in e)Ks(t8,r,{get:e[r],enumerable:!0})},jr=(t8,e,r)=>{if(!e.has(t8))throw TypeError("Cannot "+r)},Q=(t8,e,r)=>(jr(t8,e,"read from private field"),r?r.call(t8):e.get(t8)),Ur={};Yr(Ur,{languages:()=>zs,options:()=>Ys,parsers:()=>Hr,printers:()=>To});var v=(t8,e,r,n)=>{if(!t8||null!=e)return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},we="string",be="array",Te="cursor",oe="indent",ue="align",xe="trim",ee="group",le="fill",ce="if-break",pe="indent-if-break",ke="line-suffix",Be="line-suffix-boundary",G="line",Le="label",he="break-parent",ft=new Set([Te,oe,ue,xe,ee,le,ce,pe,ke,Be,G,Le,he]);var Fe=function Xs(t8){if("string"==typeof t8)return we;if(Array.isArray(t8))return be;if(!t8)return;let{type:e}=t8;return ft.has(e)?e:void 0};function Zs(t8){let e=null===t8?"null":typeof t8;if("string"!==e&&"object"!==e)return`Unexpected doc '${e}', \nExpected it to be 'string' or 'object'.`;if(Fe(t8))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t8);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=(t8=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t8))([...ft].map((s=>`'${s}'`)));return`Unexpected doc.type '${t8.type}'.\nExpected it to be ${n}.`}var mt=class extends Error{name="InvalidDocError";constructor(e){super(Zs(e)),this.doc=e}},dt=()=>{};function R(t8){return{type:oe,contents:t8}}function Jr(t8,e){return{type:ue,contents:e,n:t8}}function E(t8,e={}){return dt(e.expandedStates),{type:ee,id:e.id,contents:t8,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function gt(t8){return{type:le,parts:t8}}function fe(t8,e="",r={}){return{type:ce,breakContents:t8,flatContents:e,groupId:r.groupId}}var re={type:he},A={type:G},b={type:G,soft:!0},S=[{type:G,hard:!0},re],rn=[{type:G,hard:!0,literal:!0},re];function Y(t8,e){let r=[];for(let n=0;n{if(!t8||null!=e)return Array.isArray(e)||"string"==typeof e?e[r<0?e.length+r:r]:e.at(r)};function Ct(t8,e){if("string"==typeof t8)return e(t8);let r=new Map;return n(t8);function n(i){if(r.has(i))return r.get(i);let a=function s(i){switch(Fe(i)){case be:return e(i.map(n));case le:return e({...i,parts:i.parts.map(n)});case ce:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case ee:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case ue:case oe:case pe:case Le:case ke:return e({...i,contents:n(i.contents)});case we:case Te:case xe:case Be:case G:case he:return e(i);default:throw new mt(i)}}(i);return r.set(i,a),a}}function nn(t8){return Ct(t8,(e=>function ni(t8){switch(Fe(t8)){case le:if(t8.parts.every((e=>""===e)))return"";break;case ee:if(!(t8.contents||t8.id||t8.break||t8.expandedStates))return"";if(t8.contents.type===ee&&t8.contents.id===t8.id&&t8.contents.break===t8.break&&t8.contents.expandedStates===t8.expandedStates)return t8.contents;break;case ue:case oe:case pe:case ke:if(!t8.contents)return"";break;case ce:if(!t8.flatContents&&!t8.breakContents)return"";break;case be:{let e=[];for(let r of t8){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];"string"==typeof n&&"string"==typeof me(!1,e,-1)?e[e.length-1]+=n:e.push(n),e.push(...s)}return 0===e.length?"":1===e.length?e[0]:e}case we:case Te:case xe:case Be:case G:case Le:case he:break;default:throw new mt(t8)}return t8}(e)))}function T(t8,e=rn){return Ct(t8,(r=>"string"==typeof r?Y(e,r.split("\n")):r))}var sn=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}};var on=function si(t8,e){let r=!0===e||"'"===e?"'":'"',n="'"===r?'"':"'",s=0,i=0;for(let a of t8)a===r?s++:a===n&&i++;return s>i?n:r};var O;O=new WeakMap;var un=class{constructor(e){((t8,e,r)=>{if(e.has(t8))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t8):e.set(t8,r)})(this,O,void 0),((t8,e,r,n)=>{jr(t8,e,"write to private field"),n?n.call(t8,r):e.set(t8,r)})(this,O,new Set(e))}getLeadingWhitespaceCount(e){let r=Q(this,O),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return Q(this,O).has(e.charAt(0))}hasTrailingWhitespace(e){return Q(this,O).has(me(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${function sr(t8){if("string"!=typeof t8)throw new TypeError("Expected a string");return t8.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}([...Q(this,O)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return e.split(s)}hasWhitespaceCharacter(e){let r=Q(this,O);return Array.prototype.some.call(e,(n=>r.has(n)))}hasNonWhitespaceCharacter(e){let r=Q(this,O);return Array.prototype.some.call(e,(n=>!r.has(n)))}isWhitespaceOnly(e){let r=Q(this,O);return Array.prototype.every.call(e,(n=>r.has(n)))}},H=new un(["\t","\n","\f","\r"," "]);var Pe=function oi(t8){return"front-matter"===t8?.type},ui=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens"]),li=new Set(["if","else if","for","switch","case"]);function ln(t8,e){var r;if("text"===t8.type||"comment"===t8.type||Pe(t8)||"yaml"===t8.type||"toml"===t8.type)return null;if("attribute"===t8.type&&delete e.value,"docType"===t8.type&&delete e.value,"angularControlFlowBlock"===t8.type&&null!=(r=e.parameters)&&r.children)for(let n of e.parameters.children)li.has(t8.name)?delete n.expression:n.expression=n.expression.trim()}ln.ignoredProperties=ui;var cn=ln,ci=t8=>String(t8).split(/[/\\]/).pop();function pn(t8,e){if(!e)return;let r=ci(e).toLowerCase();return t8.find((n=>{var s,i;return(null==(s=n.extensions)?void 0:s.some((a=>r.endsWith(a))))||(null==(i=n.filenames)?void 0:i.some((a=>a.toLowerCase()===r)))}))}var Ne=function hi(t8,e){let r=t8.plugins.flatMap((s=>s.languages??[])),n=function pi(t8,e){if(e)return t8.find((({name:r})=>r.toLowerCase()===e))??t8.find((({aliases:r})=>r?.includes(e)))??t8.find((({extensions:r})=>r?.includes(`.${e}`)))}(r,e.language)??pn(r,e.physicalFile)??pn(r,e.file)??void e.physicalFile;return n?.parsers[0]},hn="inline",fn={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},mn="normal",dn={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};var de=function fi(t8){return"element"===t8.type&&!t8.hasExplicitNamespace&&!["html","svg"].includes(t8.namespace)},ar=t8=>(t8=>v(!1,t8,/^[\t\f\r ]*\n/g,""))(H.trimEnd(t8)),gn=t8=>{let e=t8,r=H.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=H.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function _t(t8,e){return!!("ieConditionalComment"===t8.type&&t8.lastChild&&!t8.lastChild.isSelfClosing&&!t8.lastChild.endSourceSpan||"ieConditionalComment"===t8.type&&!t8.complete||ge(t8)&&t8.children.some((r=>"text"!==r.type&&"interpolation"!==r.type))||Dt(t8,e)&&!V(t8)&&"interpolation"!==t8.type)}function Ge(t8){return!("attribute"===t8.type||!t8.parent||!t8.prev)&&function di(t8){return"comment"===t8.type&&"prettier-ignore"===t8.value.trim()}(t8.prev)}function N(t8){return"text"===t8.type||"comment"===t8.type}function V(t8){return"element"===t8.type&&("script"===t8.fullName||"style"===t8.fullName||"svg:style"===t8.fullName||"svg:script"===t8.fullName||de(t8)&&("script"===t8.name||"style"===t8.name))}function or(t8){return kn(t8).startsWith("pre")}function _n(t8,e){var s,i;let r=function n(){return!Pe(t8)&&"angularControlFlowBlock"!==t8.type&&(!("text"!==t8.type&&"interpolation"!==t8.type||!t8.prev||"text"!==t8.prev.type&&"interpolation"!==t8.prev.type)||!(!t8.parent||"none"===t8.parent.cssDisplay)&&(!!ge(t8.parent)||!(!t8.prev&&("root"===t8.parent.type||ge(t8)&&t8.parent||V(t8.parent)||Ke(t8.parent,e)||!function Ai(t8){return!je(t8)&&"inline-block"!==t8}(t8.parent.cssDisplay))||t8.prev&&!function yi(t8){return!je(t8)}(t8.prev.cssDisplay))))}();return r&&!t8.prev&&null!=(i=null==(s=t8.parent)?void 0:s.tagDefinition)&&i.ignoreFirstLf?"interpolation"===t8.type:r}function En(t8,e){return!Pe(t8)&&"angularControlFlowBlock"!==t8.type&&(!("text"!==t8.type&&"interpolation"!==t8.type||!t8.next||"text"!==t8.next.type&&"interpolation"!==t8.next.type)||!(!t8.parent||"none"===t8.parent.cssDisplay)&&(!!ge(t8.parent)||!(!t8.next&&("root"===t8.parent.type||ge(t8)&&t8.parent||V(t8.parent)||Ke(t8.parent,e)||!function Di(t8){return!je(t8)&&"inline-block"!==t8}(t8.parent.cssDisplay))||t8.next&&!function vi(t8){return!je(t8)}(t8.next.cssDisplay))))}function An(t8){return function wi(t8){return!je(t8)&&"inline-block"!==t8}(t8.cssDisplay)&&!V(t8)}function Ye(t8){return Pe(t8)||t8.next&&t8.sourceSpan.end&&t8.sourceSpan.end.line+10&&(["body","script","style"].includes(t8.name)||t8.children.some((e=>function Ci(t8){var e;return null==(e=t8.children)?void 0:e.some((r=>"text"!==r.type))}(e))))||t8.firstChild&&t8.firstChild===t8.lastChild&&"text"!==t8.firstChild.type&&yn(t8.firstChild)&&(!t8.lastChild.isTrailingSpaceSensitive||wn(t8.lastChild))}function ur(t8){return"element"===t8.type&&t8.children.length>0&&(["html","head","ul","ol","select"].includes(t8.name)||t8.cssDisplay.startsWith("table")&&"table-cell"!==t8.cssDisplay)}function Et(t8){return bn(t8)||t8.prev&&function gi(t8){return bn(t8)||"element"===t8.type&&"br"===t8.fullName||vn(t8)}(t8.prev)||vn(t8)}function vn(t8){return yn(t8)&&wn(t8)}function yn(t8){return t8.hasLeadingSpaces&&(t8.prev?t8.prev.sourceSpan.end.linet8.sourceSpan.end.line:"root"===t8.parent.type||t8.parent.endSourceSpan&&t8.parent.endSourceSpan.start.line>t8.sourceSpan.end.line)}function bn(t8){switch(t8.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t8.name)}return!1}function At(t8){return t8.lastChild?At(t8.lastChild):t8}function Tn(t8){if(t8)switch(t8){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t8.endsWith("json")||t8.endsWith("importmap")||"speculationrules"===t8)return"json"}}function lr(t8,e){return function Si(t8,e){let{name:r,attrMap:n}=t8;if("script"!==r||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t8.attrMap;return i||s?Ne(e,{language:i})??Tn(s):"babel"}(t8,e)??function Ei(t8,e){if("style"!==t8.name)return;let{lang:r}=t8.attrMap;return r?Ne(e,{language:r}):"css"}(t8,e)??function _i(t8,e){if(!Dt(t8,e))return;let{attrMap:r}=t8;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Ne(e,{language:s})??Tn(n)}(t8,e)}function je(t8){return"block"===t8||"list-item"===t8||t8.startsWith("table")}function ge(t8){return kn(t8).startsWith("pre")}function kn(t8){return"element"===t8.type&&(!t8.namespace||de(t8))&&dn[t8.name]||mn}function cr(t8,e=function Ti(t8){let e=Number.POSITIVE_INFINITY;for(let r of t8.split("\n")){if(0===r.length)continue;let n=H.getLeadingWhitespaceCount(r);if(0===n)return 0;r.length!==n&&nr.slice(e))).join("\n")}function pr(t8){return v(!1,v(!1,t8,"'","'"),""",'"')}function L(t8){return pr(t8.value)}var xi=new Set(["template","style","script"]);function Ke(t8,e){return Ce(t8,e)&&!xi.has(t8.fullName)}function Ce(t8,e){return"vue"===e.parser&&"element"===t8.type&&"root"===t8.parent.type&&"html"!==t8.fullName.toLowerCase()}function Dt(t8,e){return Ce(t8,e)&&(Ke(t8,e)||t8.attrMap.lang&&"html"!==t8.attrMap.lang)}function vt(t8,e=t8.value){return t8.parent.isWhitespaceSensitive?t8.parent.isIndentationSensitive?T(e):T(cr(ar(e)),S):Y(A,H.split(e))}function yt(t8,e){return Ce(t8,e)&&"script"===t8.name}function wt(t8){return t8>=9&&t8<=32||160==t8}function hr(t8){return 48<=t8&&t8<=57}function bt(t8){return t8>=97&&t8<=122||t8>=65&&t8<=90}function fr(t8){return 10===t8||13===t8}function mr(t8){return 48<=t8&&t8<=55}function dr(t8){return 39===t8||34===t8||96===t8}var ki=/-+([a-z0-9])/g;var Tt,t8,ne=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,10==r.charCodeAt(s)){i--;let u=r.substring(0,s-1).lastIndexOf("\n");a=u>0?s-u:s}else a--;for(;s0;){let o=r.charCodeAt(s);s++,e--,10==o?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(null!=s){s>n.length-1&&(s=n.length-1);let i=s,a=0,o=0;for(;a0&&(s--,a++,"\n"!=n[s]||++o!=r););for(a=0,o=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},Bi=[function Fi(t8){t8.walk((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){let r=e.children[0];1===r.value.length?e.removeChild(r):r.value=r.value.slice(1)}}))},function Pi(t8){let e=r=>{var n,s;return"element"===r.type&&"ieConditionalStartComment"===(null==(n=r.prev)?void 0:n.type)&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&"ieConditionalEndComment"===(null==(s=r.firstChild)?void 0:s.type)&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t8.walk((r=>{if(r.children)for(let n=0;n{if(n.children)for(let s=0;s"cdata"===e.type),(e=>``))},function $i(t8,e){if("html"===e.parser)return;let r=/{{(.+?)}}/s;t8.walk((n=>{if(function Cn(t8){return t8.children&&!V(t8)}(n))for(let s of n.children){if("text"!==s.type)continue;let i=s.sourceSpan.start,a=null,o=s.value.split(r);for(let u=0;u0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new f(i,a)}))}n.removeChild(s)}}))},function Oi(t8){t8.walk((e=>{if(!e.children)return;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===H.trim(e.children[0].value).length)return e.hasDanglingSpaces=e.children.length>0,void(e.children=[]);let r=function Sn(t8){return V(t8)||"interpolation"===t8.type||or(t8)}(e),n=or(e);if(!r)for(let s=0;s{r.cssDisplay=function xn(t8,e){var n;if(Ce(t8,e))return"block";if("comment"===(null==(n=t8.prev)?void 0:n.type)){let s=t8.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(s)return s[1]}let r=!1;if("element"===t8.type&&"svg"===t8.namespace){if(!function bi(t8,e){let r=t8;for(;r;){if(e(r))return!0;r=r.parent}return!1}(t8,(s=>"svg:foreignObject"===s.fullName)))return"svg"===t8.name?"inline-block":"block";r=!0}switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===t8.type&&(!t8.namespace||r||de(t8))&&fn[t8.name]||hn}}(r,e)}))},function Mi(t8){t8.walk((e=>{e.isSelfClosing=!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)}))},function qi(t8,e){t8.walk((r=>{"element"===r.type&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))}))},function Vi(t8,e){t8.walk((r=>{let{children:n}=r;if(n){if(0===n.length)return void(r.isDanglingSpaceSensitive=An(r));for(let s of n)s.isLeadingSpaceSensitive=_n(s,e),s.isTrailingSpaceSensitive=En(s,e);for(let s=0;s{var n,s;return"element"===r.type&&0===r.attrs.length&&1===r.children.length&&"text"===r.firstChild.type&&!H.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&"text"===(null==(n=r.prev)?void 0:n.type)&&"text"===(null==(s=r.next)?void 0:s.type)};t8.walk((r=>{if(r.children)for(let n=0;n`+s.firstChild.value+``+a.value,i.sourceSpan=new f(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}}))}];var In=function Li(t8,e){for(let r of Bi)r(t8,e);return t8};function Rn(t8){return/^\s*/.test(t8)}function se(t8){return t8.sourceSpan.start.offset}function ie(t8){return t8.sourceSpan.end.offset}var On=async function Ui(t8,e){if("yaml"===t8.lang){let r=t8.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return function en(t8){return Jr({type:"root"},t8)}([t8.startDelimiter,S,n,n?S:"",t8.endDelimiter])}},Mn=new Proxy((()=>{}),{get:()=>Mn}),gr=Mn;var xt=function Wi(t8){return Array.isArray(t8)&&t8.length>0};function Qe(t8,e){return[t8.isSelfClosing?"":zi(t8,e),Xe(t8,e)]}function zi(t8,e){return t8.lastChild&&Ae(t8.lastChild)?"":[Gi(t8,e),kt(t8,e)]}function Xe(t8,e){return(t8.next?j(t8.next):Ee(t8.parent))?"":[_e(t8,e),U(t8,e)]}function Gi(t8,e){return Ee(t8)?_e(t8.lastChild,e):""}function U(t8,e){return Ae(t8)?kt(t8.parent,e):Je(t8)?Bt(t8.next):""}function kt(t8,e){if(gr(!t8.isSelfClosing),qn(t8,e))return"";switch(t8.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(t8.isSelfClosing)return"/>";default:return">"}}function qn(t8,e){return!t8.isSelfClosing&&!t8.endSourceSpan&&(Ge(t8)||_t(t8.parent,e))}function j(t8){return t8.prev&&"docType"!==t8.prev.type&&"angularControlFlowBlock"!==t8.type&&!N(t8.prev)&&t8.isLeadingSpaceSensitive&&!t8.hasLeadingSpaces}function Ee(t8){var e;return(null==(e=t8.lastChild)?void 0:e.isTrailingSpaceSensitive)&&!t8.lastChild.hasTrailingSpaces&&!N(At(t8.lastChild))&&!ge(t8)}function Ae(t8){return!t8.next&&!t8.hasTrailingSpaces&&t8.isTrailingSpaceSensitive&&N(At(t8))}function Je(t8){return t8.next&&!N(t8.next)&&N(t8)&&t8.isTrailingSpaceSensitive&&!t8.hasTrailingSpaces}function Ze(t8){return!t8.prev&&t8.isLeadingSpaceSensitive&&!t8.hasLeadingSpaces}function ji(t8,e,r){var m;let{node:n}=t8;if(!xt(n.attrs))return n.isSelfClosing?" ":"";let s="comment"===(null==(m=n.prev)?void 0:m.type)&&function Yi(t8){let e=t8.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return!!e&&(!e[1]||e[1].split(/\s+/))}(n.prev.value),i="boolean"==typeof s?()=>s:Array.isArray(s)?d=>s.includes(d.rawName):()=>!1,a=t8.map((({node:d})=>i(d)?T(e.originalText.slice(se(d),ie(d))):r()),"attrs"),o="element"===n.type&&"script"===n.fullName&&1===n.attrs.length&&"src"===n.attrs[0].fullName&&0===n.children.length,p=e.singleAttributePerLine&&n.attrs.length>1&&!Ce(n,e)?S:A,l=[R([o?" ":A,Y(p,a)])];return n.firstChild&&Ze(n.firstChild)||n.isSelfClosing&&Ee(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?A:b),l}function Ki(t8){return t8.firstChild&&Ze(t8.firstChild)?"":Lt(t8)}function et(t8,e,r){let{node:n}=t8;return[tt(n,e),ji(t8,e,r),n.isSelfClosing?"":Ki(n)]}function tt(t8,e){return t8.prev&&Je(t8.prev)?"":[W(t8,e),Bt(t8)]}function W(t8,e){return Ze(t8)?Lt(t8.parent):j(t8)?_e(t8.prev,e):""}function Bt(t8){switch(t8.type){case"ieConditionalComment":case"ieConditionalStartComment":return`\x3c!--[if ${t8.condition}`;case"ieConditionalEndComment":return"\x3c!--\x3c!--\x3e<${t8.rawName}`;default:return`<${t8.rawName}`}}function Lt(t8){switch(gr(!t8.isSelfClosing),t8.type){case"ieConditionalComment":return"]>";case"element":if(t8.condition)return">\x3c!--"}}var Cr=new WeakMap;var $e=function Qi(t8,e){let{root:r}=t8;return Cr.has(r)||Cr.set(r,r.children.some((n=>yt(n,e)&&["ts","typescript"].includes(n.attrMap.lang)))),Cr.get(r)};var Ft=function Xi(t8,e){if(!t8.endSourceSpan)return"";let r=t8.startSourceSpan.end.offset;t8.firstChild&&Ze(t8.firstChild)&&(r-=Lt(t8).length);let n=t8.endSourceSpan.start.offset;return t8.lastChild&&Ae(t8.lastChild)?n+=kt(t8,e).length:Ee(t8)&&(n-=_e(t8.lastChild,e).length),e.originalText.slice(r,n)};function Hn(t8){return"\t"===t8||"\n"===t8||"\f"===t8||"\r"===t8||" "===t8}var Ji=/^[ \t\n\r\u000c]+/,Zi=/^[, \t\n\r\u000c]+/,ea=/^[^ \t\n\r\u000c]+/,ta=/[,]+$/,Vn=/^\d+$/,ra=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;var Un=function na(t8){let r,n,s,i,a,u,e=t8.length,o=0;function p(C){let _2,D=C.exec(t8.substring(o));if(D)return[_2]=D,o+=_2.length,_2}let l=[];for(;;){if(p(Zi),o>=e){if(0===l.length)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(ea),n=[],","===r.slice(-1)?(r=r.replace(ta,""),d()):m()}function m(){for(p(Ji),s="",i="in descriptor";;){if(a=t8.charAt(o),"in descriptor"===i)if(Hn(a))s&&(n.push(s),s="",i="after descriptor");else{if(","===a)return o+=1,s&&n.push(s),void d();if("("===a)s+=a,i="in parens";else{if(""===a)return s&&n.push(s),void d();s+=a}}else if("in parens"===i)if(")"===a)s+=a,i="in descriptor";else{if(""===a)return n.push(s),void d();s+=a}else if("after descriptor"===i&&!Hn(a)){if(""===a)return void d();i="in descriptor",o-=1}o+=1}}function d(){let _2,D,P2,B,g,y2,$,w2,q2,C=!1,c={};for(B=0;B{s=n(a,o)});let i=await e(t8,r,e);return s?E(i):De(i)}var Wn={width:"w",height:"h",density:"x"},ia=Object.keys(Wn);var zn=function sa(t8){if("srcset"===t8.node.fullName&&("img"===t8.parent.fullName||"source"===t8.parent.fullName))return()=>function aa(t8){let e=Un(t8),r=ia.filter((l=>e.some((m=>Object.prototype.hasOwnProperty.call(m,l)))));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=Wn[n],i=e.map((l=>l.source.value)),a=Math.max(...i.map((l=>l.length))),o=e.map((l=>l[n]?String(l[n].value):"")),u=o.map((l=>{let m=l.indexOf(".");return-1===m?l.length:m})),p=Math.max(...u);return De(Y([",",A],i.map(((l,m)=>{let d=[l],C=o[m];if(C){let _2=a-l.length+1,D=p-u[m],P2=" ".repeat(_2+D);d.push(fe(P2," "),C+s)}return d}))))}(L(t8.node))};var Gn=function oa(t8,e){let{node:r}=t8,n=L(r);if("class"===r.fullName&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/).join(" ")};function Yn(t8,e){let{node:r}=t8,n=L(t8.node).trim();if("style"===r.fullName&&!e.parentParser&&!n.includes("{{"))return async s=>De(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}async function jn(t8,e,r,n){let s=L(r.node),{left:i,operator:a,right:o}=function ua(t8){let e=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,s=t8.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=v(!1,s[1].trim(),n,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];if(!u.some(((p,l)=>!p&&(0===l||u.slice(l+1).some(Boolean)))))return{left:u.filter(Boolean).join(","),operator:s[2],right:i.for}}(s),u=$e(r,n);return[E(await x(`function _(${i}) {}`,t8,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await x(o,t8,{parser:u?"__ts_expression":"__js_expression"})]}function Kn(t8,e,r){let{node:n}=r;return x(`type T<${L(n)}> = any`,t8,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},K)}function Jn(t8,e,{parseWithTs:r}){return x(t8,e,{parser:r?"__ts_expression":"__js_expression"},K)}var Zn=function la(t8,e){if("vue"!==e.parser)return;let{node:r}=t8,n=r.fullName;if("v-for"===n)return jn;if("generic"===n&&yt(r.parent,e))return Kn;let s=L(r),i=$e(t8,e);return function Bn(t8){let e=t8.fullName;return"#"===e.charAt(0)||"slot-scope"===e||"v-slot"===e||e.startsWith("v-slot:")}(r)||function Ln(t8,e){let r=t8.parent;if(!Ce(r,e))return!1;let n=r.fullName,s=t8.fullName;return"script"===n&&"setup"===s||"style"===n&&"vars"===s}(r,e)?a=>function Qn(t8,e,{parseWithTs:r}){return x(`function _(${t8}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}(s,a,{parseWithTs:i}):n.startsWith("@")||n.startsWith("v-on:")?a=>function ca(t8,e,{parseWithTs:r}){return function Xn(t8){let n=t8.trim();return/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/.test(n)||/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$_a-z][\w$]*])*$/i.test(n)}(t8)?Jn(t8,e,{parseWithTs:r}):x(t8,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},K)}(s,a,{parseWithTs:i}):n.startsWith(":")||n.startsWith("v-bind:")?a=>function pa(t8,e,{parseWithTs:r}){return x(t8,e,{parser:r?"__vue_ts_expression":"__vue_expression"},K)}(s,a,{parseWithTs:i}):n.startsWith("v-")?a=>Jn(s,a,{parseWithTs:i}):void 0},Sr=/{{(.+?)}}/s;function _r({parser:t8}){return(e,r,n)=>x(L(n.node),e,{parser:t8,trailingComma:"none"},K)}var ha=_r({parser:"__ng_action"}),fa=_r({parser:"__ng_binding"}),ma=_r({parser:"__ng_directive"});var ts=function da(t8,e){if("angular"!==e.parser)return;let{node:r}=t8,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return ha;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return fa;if(n.startsWith("*"))return ma;let s=L(r);return/^i18n(?:-.+)?$/.test(n)?()=>De(gt(vt(r,s.trim())),!s.includes("@@")):Sr.test(s)?i=>async function es(t8,e){let r=[];for(let[n,s]of t8.split(Sr).entries())if(n%2==0)r.push(T(s));else try{r.push(E(["{{",R([A,await x(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0,trailingComma:"none"})]),A,"}}"]))}catch{r.push("{{",T(s),"}}")}return r}(s,i):void 0};function Ca(t8){return async(e,r,n,s)=>{let i=await t8(e,r,n,s);if(i)return i=Ct(i,(a=>"string"==typeof a?v(!1,a,'"',"""):a)),[n.node.rawName,'="',E(i),'"']}}var rs=function ga(t8,e){let{node:r}=t8;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||"lwc"===e.parser&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[zn,Yn,Gn,Zn,ts]){let s=n(t8,e);if(s)return Ca(s)}}};var ns=function Sa(t8,e,r,n){let{node:s}=r,i=n.originalText.slice(s.sourceSpan.start.offset,s.sourceSpan.end.offset);return/^\s*$/.test(i)?"":x(i,t8,{parser:"__ng_directive",__isInHtmlAttribute:!1,trailingComma:"none"},K)},_a=new Set(["if","else if","for","switch","case"]);var ss=function Ea(t8,e){let{node:r}=t8;switch(r.type){case"element":if(V(r)||"interpolation"===r.type)return;if(!r.isSelfClosing&&Dt(r,e)){let n=lr(r,e);return n?async(s,i)=>{let a=Ft(r,e),o=/^\s*$/.test(a),u="";return o||(u=await s(ar(a),{parser:n,__embeddedInHtml:!0}),o=""===u),[W(r,e),E(et(t8,e,i)),o?"":S,u,o?"":S,Qe(r,e),U(r,e)]}:void 0}break;case"text":if(V(r.parent)){let n=lr(r.parent,e);if(n)return async s=>{let i="markdown"===n?cr(r.value.replace(/^[^\S\n]*\n/,"")):r.value,a={parser:n,__embeddedInHtml:!0};if("html"===e.parser&&"babel"===n){let o="script",{attrMap:u}=r.parent;u&&("module"===u.type||"text/babel"===u.type&&"module"===u["data-type"])&&(o="module"),a.__babelSourceType=o}return[re,W(r,e),await s(i,a,{stripTrailingHardline:!0}),U(r,e)]}}else if("interpolation"===r.parent.type)return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===e.parser?(s.parser="__ng_interpolation",s.trailingComma="none"):"vue"===e.parser?s.parser=$e(t8,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[R([A,await n(r.value,s)]),r.parent.next&&j(r.parent.next)?" ":A]};break;case"attribute":return rs(t8,e);case"front-matter":return n=>On(r,n);case"angularControlFlowBlockParameters":return _a.has(t8.parent.name)?ns:void 0}};function rt(t8,e,r){let n=t8.node;return Ge(n)?[W(n,e),T(e.originalText.slice(se(n)+(n.prev&&Je(n.prev)?Bt(n).length:0),ie(n)-(n.next&&j(n.next)?_e(n,e).length:0))),U(n,e)]:r()}function Pt(t8,e){return N(t8)&&N(e)?t8.isTrailingSpaceSensitive?t8.hasTrailingSpaces?Et(e)?S:A:"":Et(e)?S:b:Je(t8)&&(Ge(e)||e.firstChild||e.isSelfClosing||"element"===e.type&&e.attrs.length>0)||"element"===t8.type&&t8.isSelfClosing&&j(e)?"":!e.isLeadingSpaceSensitive||Et(e)||j(e)&&t8.lastChild&&Ae(t8.lastChild)&&t8.lastChild.lastChild&&Ae(t8.lastChild.lastChild)?S:e.hasLeadingSpaces?A:b}function Oe(t8,e,r){let{node:n}=t8;if(ur(n))return[re,...t8.map((i=>{let a=i.node,o=a.prev?Pt(a.prev,a):"";return[o?[o,Ye(a.prev)?S:""]:"",rt(i,e,r)]}),"children")];let s=n.children.map((()=>Symbol("")));return t8.map(((i,a)=>{let o=i.node;if(N(o)){if(o.prev&&N(o.prev)){let _2=Pt(o.prev,o);if(_2)return Ye(o.prev)?[S,S,rt(i,e,r)]:[_2,rt(i,e,r)]}return rt(i,e,r)}let u=[],p=[],l=[],m=[],d=o.prev?Pt(o.prev,o):"",C=o.next?Pt(o,o.next):"";return d&&(Ye(o.prev)?u.push(S,S):d===S?u.push(S):N(o.prev)?p.push(d):p.push(fe("",b,{groupId:s[a-1]}))),C&&(Ye(o)?N(o.next)&&m.push(S,S):C===S?N(o.next)&&m.push(S):l.push(C)),[...u,E([...p,E([rt(i,e,r),...l],{id:s[a]})]),...m]}),"children")}function is(t8,e,r){let{node:n}=t8;if(_t(n,e))return[W(n,e),E(et(t8,e,r)),T(Ft(n,e)),...Qe(n,e),U(n,e)];let s=1===n.children.length&&"interpolation"===n.firstChild.type&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>E([E(et(t8,e,r),{id:i}),l,Qe(n,e)]);return 0===n.children.length?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?A:""):a([Dn(n)?re:"",(l=[s?fe(b,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?A:"text"===n.firstChild.type&&n.isWhitespaceSensitive&&n.isIndentationSensitive?function Zr(t8){return Jr(Number.NEGATIVE_INFINITY,t8)}(b):b,Oe(t8,e,r)],s?function tn(t8,e){return{type:pe,contents:t8,groupId:e.groupId,negate:e.negate}}(l,{groupId:i}):!V(n)&&!Ke(n,e)||"root"!==n.parent.type||"vue"!==e.parser||e.vueIndentScriptAndStyle?R(l):l),(n.next?j(n.next):Ee(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?fe(b,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?A:("comment"===n.lastChild.type||"text"===n.lastChild.type&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t8.ancestors.length-1)}}$`).test(n.lastChild.value)?"":b]);var l}var as=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function os(t8,e,r){let{node:n}=t8,s=[];(function Aa(t8){let{previous:e}=t8;return"angularControlFlowBlock"===e?.type&&!us(t8.previous)})(t8)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",E(r("parameters")),")"),s.push(" {");let i=us(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(R([S,Oe(t8,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),E(s,{shouldBreak:!0})}function us(t8){var e,r;return!("angularControlFlowBlock"===(null==(e=t8.next)?void 0:e.type)&&null!=(r=as.get(t8.name))&&r.has(t8.next.name))}var nt=null;function st(t8){if(null!==nt&&(nt.property,1)){let e=nt;return nt=st.prototype=null,e}return nt=st.prototype=t8??Object.create(null),new st}for(let t8=0;t8<=10;t8++)st();var cs=function va(t8,e="type"){return function Er(t8){return st(t8)}(t8),function r(n){let s=n[e],i=t8[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}};var ms,ds,Ta={preprocess:In,print:function ba(t8,e,r){let{node:n}=t8;switch(n.type){case"front-matter":return T(n.raw);case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[E(Oe(t8,e,r)),S];case"element":case"ieConditionalComment":return is(t8,e,r);case"angularControlFlowBlock":return os(t8,e,r);case"angularControlFlowBlockParameters":return function ls(t8,e,r){return[R([b,Y([";",A],t8.map(r,"children"))]),b]}(t8,0,r);case"angularControlFlowBlockParameter":return H.trim(n.expression);case"ieConditionalStartComment":case"ieConditionalEndComment":return[tt(n),Xe(n)];case"interpolation":return[tt(n,e),...t8.map(r,"children"),Xe(n,e)];case"text":{if("interpolation"===n.parent.type){let i=/\n[^\S\n]*$/,a=i.test(n.value);return[T(a?n.value.replace(i,""):n.value),a?S:""]}let s=nn([W(n,e),...vt(n),U(n,e)]);return Array.isArray(s)?gt(s):s}case"docType":return[E([tt(n,e)," ",v(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),Xe(n,e)];case"comment":return[W(n,e),T(e.originalText.slice(se(n),ie(n))),U(n,e)];case"attribute":{if(null===n.value)return n.rawName;let s=pr(n.value),i=on(s,'"');return[n.rawName,"=",i,T('"'===i?v(!1,s,'"',"""):v(!1,s,"'","'")),i]}default:throw new sn(n,"HTML")}},insertPragma:function $n(t8){return"\x3c!-- @format --\x3e\n\n"+t8},massageAstNode:cn,embed:ss,getVisitorKeys:cs({"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[]})},fs=Ta,Hr={};Yr(Hr,{angular:()=>vo,html:()=>Do,lwc:()=>wo,vue:()=>yo}),function(t8){t8[t8.Emulated=0]="Emulated",t8[t8.None=2]="None",t8[t8.ShadowDom=3]="ShadowDom"}(ms||(ms={})),function(t8){t8[t8.OnPush=0]="OnPush",t8[t8.Default=1]="Default"}(ds||(ds={}));var X,gs,F,It,Ar_name="custom-elements",Dr_name="no-errors-schema";function it(t8){if(":"!=t8[0])return[null,t8];let e=t8.indexOf(":",1);if(-1===e)throw new Error(`Unsupported format "${t8}" expecting ":namespace:name"`);return[t8.slice(1,e),t8.slice(e+1)]}function vr(t8){return"ng-container"===it(t8)[1]}function yr(t8){return"ng-content"===it(t8)[1]}function Me(t8){return null===t8?null:it(t8)[0]}function qe(t8,e){return t8?`:${t8}:${e}`:e}function wr(){return It||(It={},Nt(X.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Nt(X.STYLE,["*|style"]),Nt(X.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Nt(X.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),It}function Nt(t8,e){for(let r of e)It[r.toLowerCase()]=t8}!function(t8){t8[t8.NONE=0]="NONE",t8[t8.HTML=1]="HTML",t8[t8.STYLE=2]="STYLE",t8[t8.SCRIPT=3]="SCRIPT",t8[t8.URL=4]="URL",t8[t8.RESOURCE_URL=5]="RESOURCE_URL"}(X||(X={})),function(t8){t8[t8.Error=0]="Error",t8[t8.Warning=1]="Warning",t8[t8.Ignore=2]="Ignore"}(gs||(gs={})),function(t8){t8[t8.RAW_TEXT=0]="RAW_TEXT",t8[t8.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t8[t8.PARSABLE_DATA=2]="PARSABLE_DATA"}(F||(F={}));var Rt=class{},Fa=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],Cs=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Pa=Array.from(Cs).reduce(((t8,[e,r])=>(t8.set(e,r),t8)),new Map),$t=class extends Rt{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Fa.forEach((e=>{let r=new Map,n=new Set,[s,i]=e.split("|"),a=i.split(","),[o,u]=s.split("^");o.split(",").forEach((l=>{this._schema.set(l.toLowerCase(),r),this._eventSchema.set(l.toLowerCase(),n)}));let p=u&&this._schema.get(u.toLowerCase());if(p){for(let[l,m]of p)r.set(l,m);for(let l of this._eventSchema.get(u.toLowerCase()))n.add(l)}a.forEach((l=>{if(l.length>0)switch(l[0]){case"*":n.add(l.substring(1));break;case"!":r.set(l.substring(1),"boolean");break;case"#":r.set(l.substring(1),"number");break;case"%":r.set(l.substring(1),"object");break;default:r.set(l,"string")}}))}))}hasProperty(e,r,n){if(n.some((i=>i.name===Dr_name)))return!0;if(e.indexOf("-")>-1){if(vr(e)||yr(e))return!1;if(n.some((i=>i.name===Ar_name)))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return!!(r.some((n=>n.name===Dr_name))||e.indexOf("-")>-1&&(vr(e)||yr(e)||r.some((n=>n.name===Ar_name))))||this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let s=wr()[e+"|"+r];return s||(s=wr()["*|"+r],s||X.NONE)}getMappedPropName(e){return Cs.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...\nIf '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map((n=>Pa.get(n)??n))}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return function Nn(t8){return t8.replace(ki,((...e)=>e[1].toUpperCase()))}(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(function Na(t8){switch(t8){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(e)&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};var Ss,at,h=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=F.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:u=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach((p=>this.closedByChildren[p]=!0)),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=u??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return"object"==typeof this.contentType?(void 0===e?void 0:this.contentType[e])??this.contentType.default:this.contentType}};function He(t8){return at||(Ss=new h({canSelfClose:!0}),at=Object.assign(Object.create(null),{base:new h({isVoid:!0}),meta:new h({isVoid:!0}),area:new h({isVoid:!0}),embed:new h({isVoid:!0}),link:new h({isVoid:!0}),img:new h({isVoid:!0}),input:new h({isVoid:!0}),param:new h({isVoid:!0}),hr:new h({isVoid:!0}),br:new h({isVoid:!0}),source:new h({isVoid:!0}),track:new h({isVoid:!0}),wbr:new h({isVoid:!0}),p:new h({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new h({closedByChildren:["tbody","tfoot"]}),tbody:new h({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new h({closedByChildren:["tbody"],closedByParent:!0}),tr:new h({closedByChildren:["tr"],closedByParent:!0}),td:new h({closedByChildren:["td","th"],closedByParent:!0}),th:new h({closedByChildren:["td","th"],closedByParent:!0}),col:new h({isVoid:!0}),svg:new h({implicitNamespacePrefix:"svg"}),foreignObject:new h({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new h({implicitNamespacePrefix:"math"}),li:new h({closedByChildren:["li"],closedByParent:!0}),dt:new h({closedByChildren:["dt","dd"]}),dd:new h({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new h({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new h({closedByChildren:["optgroup"],closedByParent:!0}),option:new h({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new h({ignoreFirstLf:!0}),listing:new h({ignoreFirstLf:!0}),style:new h({contentType:F.RAW_TEXT}),script:new h({contentType:F.RAW_TEXT}),title:new h({contentType:{default:F.ESCAPABLE_RAW_TEXT,svg:F.PARSABLE_DATA}}),textarea:new h({contentType:F.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),(new $t).allKnownElementNames().forEach((e=>{!at[e]&&null===Me(e)&&(at[e]=new h({canSelfClose:!1}))}))),at[t8]??Ss}var ve=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Ot=class extends ve{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},Mt=class extends ve{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},qt=class extends ve{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Ht=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i}visit(e,r){return e.visitExpansionCase(this,r)}},Vt=class extends ve{constructor(e,r,n,s,i,a,o){super(n,o),this.name=e,this.value=r,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.type="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},z=class extends ve{constructor(e,r,n,s,i,a=null,o=null,u){super(s,u),this.name=e,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=o,this.type="element"}visit(e,r){return e.visitElement(this,r)}},Ut=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="comment"}visit(e,r){return e.visitComment(this,r)}},Wt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="docType"}visit(e,r){return e.visitDocType(this,r)}},J=class{constructor(e,r,n,s,i,a=null){this.name=e,this.parameters=r,this.children=n,this.sourceSpan=s,this.startSourceSpan=i,this.endSourceSpan=a,this.type="block"}visit(e,r){return e.visitBlock(this,r)}},ot=class{constructor(e,r){this.expression=e,this.sourceSpan=r,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitBlockParameter(this,r)}};function zt(t8,e,r=null){let n=[],s=t8.visit?i=>t8.visit(i,r)||i.visit(t8,r):i=>i.visit(t8,r);return e.forEach((i=>{let a=s(i);a&&n.push(a)})),n}var ut=class{constructor(){}visitElement(e,r){this.visitChildren(r,(n=>{n(e.attrs),n(e.children)}))}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,(n=>{n(e.cases)}))}visitExpansionCase(e,r){}visitBlock(e,r){this.visitChildren(r,(n=>{n(e.parameters),n(e.children)}))}visitBlockParameter(e,r){}visitChildren(e,r){let n=[],s=this;return r((function i(a){a&&n.push(zt(s,a,e))})),Array.prototype.concat.apply([],n)}},Ve={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"};Ve.ngsp="";var $a=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var Tr=new class t2{static fromArray(e){return e?(function _s(t8,e){if(null!=e&&(!Array.isArray(e)||2!=e.length))throw new Error(`Expected '${t8}' to be an array, [start, end].`);if(null!=e){let r=e[0],n=e[1];$a.forEach((s=>{if(s.test(r)||s.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)}))}}("interpolation",e),new t2(e[0],e[1])):Tr}constructor(e,r){this.start=e,this.end=r}}("{{","}}"),ct=class extends Re{constructor(e,r,n){super(n,e),this.tokenType=r}},Fr=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};var jt,ro=/\r\n?/g;function Ue(t8){return`Unexpected character "${0===t8?"EOF":String.fromCharCode(t8)}"`}function ws(t8){return`Unknown entity "${t8}" - use the "&#;" or "&#x;" syntax`}!function(t8){t8.HEX="hexadecimal",t8.DEC="decimal"}(jt||(jt={}));var pt=class{constructor(e){this.error=e}},Pr=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Tr,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map((i=>i.codePointAt(0)||0)),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let s=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new Nr(e,s):new Kt(e,s),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(ro,"\n")}tokenize(){for(;0!==this._cursor.peek();){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):!this._tokenizeBlocks||this._inInterpolation||this._isInExpansionCase()||this._isInExpansionForm()||!this._attemptCharCode(125)?this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,(()=>this._isTextEnd()),(()=>this._isTagStart())):this._consumeBlockEnd(e)}catch(r){this.handleError(r)}}this._beginToken(30),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn((n=>wt(n)?!e:!xs(n)||(e=!0,!1))),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._beginToken(25,e);let r=this._endToken([this._getBlockName()]);if(40===this._cursor.peek()){if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(k),!this._attemptCharCode(41))return void(r.type=29);this._attemptCharCodeUntilFn(k)}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(ks);41!==this._cursor.peek()&&0!==this._cursor.peek();){this._beginToken(28);let e=this._cursor.clone(),r=null,n=0;for(;59!==this._cursor.peek()&&0!==this._cursor.peek()||null!==r;){let s=this._cursor.peek();if(92===s)this._cursor.advance();else if(s===r)r=null;else if(null===r&&dr(s))r=s;else if(40===s&&null===r)n++;else if(41===s&&null===r){if(0===n)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(ks)}}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function oo(t8){return 125!==t8}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._cursor.peek()){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(null===this._currentTokenStart)throw new ct("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(null===this._currentTokenType)throw new ct("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');let n=new ct(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new pt(n)}handleError(e){if(e instanceof ht&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof pt))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return!!function uo(t8,e){return Ts(t8)===Ts(e)}(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Ue(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()this._attemptStr("--\x3e"))),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,(()=>62===this._cursor.peek())),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("]]>"))),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,(()=>62===this._cursor.peek())),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let n,e=this._cursor.clone(),r="";for(;58!==this._cursor.peek()&&!so(this._cursor.peek());)this._cursor.advance();return 58===this._cursor.peek()?(r=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn(bs,""===r?0:1),[r,this._cursor.getChars(n)]}_consumeTagOpen(e){let r,n,s,i=[];try{if(!bt(this._cursor.peek()))throw this._createError(Ue(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),n=s.parts[0],r=s.parts[1],this._attemptCharCodeUntilFn(k);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();){let[o,u]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(k),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(k);let p=this._consumeAttributeValue();i.push({prefix:o,name:u,value:p})}else i.push({prefix:o,name:u});this._attemptCharCodeUntilFn(k)}this._consumeTagOpenEnd()}catch(o){if(o instanceof pt)return void(s?s.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw o}if(this._canSelfClose&&2===this.tokens[this.tokens.length-1].type)return;let a=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),a===F.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):a===F.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,(()=>!!(this._attemptCharCode(60)&&this._attemptCharCode(47)&&(this._attemptCharCodeUntilFn(k),this._attemptStrCaseInsensitive(e?`${e}:${r}`:r)))&&(this._attemptCharCodeUntilFn(k),this._attemptCharCode(62)))),this._beginToken(3),this._requireCharCodeUntilFn((s=>62===s),3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let e=this._cursor.peek();if(39===e||34===e)throw this._createError(Ue(e),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(39===this._cursor.peek()||34===this._cursor.peek()){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=()=>bs(this._cursor.peek());e=this._consumeWithInterpolation(16,17,r,r)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(k),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(k),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(k),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let s=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(k),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(k)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(k),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(k),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(k),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,s){this._beginToken(e);let i=[];for(;!n();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(r,o,s),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let s=[];this._beginToken(e,r),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,o=!1;for(;0!==this._cursor.peek()&&(null===n||!n());){let u=this._cursor.clone();if(this._isTagStart())return this._cursor=u,s.push(this._getProcessedChars(i,u)),void this._endToken(s);if(null===a){if(this._attemptStr(this._interpolationConfig.end))return s.push(this._getProcessedChars(i,u)),s.push(this._interpolationConfig.end),void this._endToken(s);this._attemptStr("//")&&(o=!0)}let p=this._cursor.peek();this._cursor.advance(),92===p?this._cursor.advance():p===a?a=null:!o&&null===a&&dr(p)&&(a=p)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||0===this._cursor.peek()||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||125===this._cursor.peek()&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||125===this._cursor.peek()))}_isTagStart(){if(60===this._cursor.peek()){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||47===r||33===r)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&64===this._cursor.peek()){let e=this._cursor.clone();if(e.advance(),xs(e.peek()))return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&22===this._expansionCaseStack[this._expansionCaseStack.length-1]}_isInExpansionForm(){return this._expansionCaseStack.length>0&&20===this._expansionCaseStack[this._expansionCaseStack.length-1]}isExpansionFormStart(){if(123!==this._cursor.peek())return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}_handleFullNameStackForTagOpen(e,r){let n=qe(e,r);(0===this._fullNameStack.length||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=qe(e,r);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function k(t8){return!wt(t8)||0===t8}function bs(t8){return wt(t8)||62===t8||60===t8||47===t8||39===t8||34===t8||61===t8||0===t8}function so(t8){return(t8<97||12257)}function io(t8){return 59===t8||0===t8||!function Fn(t8){return t8>=97&&t8<=102||t8>=65&&t8<=70||hr(t8)}(t8)}function ao(t8){return 59===t8||0===t8||!bt(t8)}function Ts(t8){return t8>=97&&t8<=122?t8-97+65:t8}function xs(t8){return bt(t8)||hr(t8)||95===t8}function ks(t8){return 59!==t8&&k(t8)}var Kt=class t3{constructor(e,r){if(e instanceof t3){this.file=e.file,this.input=e.input,this.end=e.end;let n=e.state;this.state={peek:n.peek,offset:n.offset,line:n.line,column:n.column}}else{if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new t3(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,r){let n=e=e||this;if(r)for(;this.diff(e)>0&&-1!==r.indexOf(e.peek());)n===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):s;return new f(s,i,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new ht('Unexpected character "EOF"',this);let r=this.charAt(e.offset);10===r?(e.line++,e.column=0):fr(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new ne(e.file,e.state.offset,e.state.line,e.state.column)}},Nr=class t4 extends Kt{constructor(e,r){e instanceof t4?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t4(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(92===e())if(this.internalState={...this.state},this.advanceState(this.internalState),110===e())this.state.peek=10;else if(114===e())this.state.peek=13;else if(118===e())this.state.peek=11;else if(116===e())this.state.peek=9;else if(98===e())this.state.peek=8;else if(102===e())this.state.peek=12;else if(117===e())if(this.advanceState(this.internalState),123===e()){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;125!==e();)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(120===e()){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(mr(e())){let r="",n=0,s=this.clone();for(;mr(e())&&n<3;)s=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=s.internalState}else fr(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),s=parseInt(n,16);if(isNaN(s))throw e.state=e.internalState,new ht("Invalid hexadecimal escape sequence",e);return s}},ht=class{constructor(e,r){this.msg=e,this.cursor=r}},I=class t5 extends Re{static create(e,r,n){return new t5(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},$r=class{constructor(e,r){this.rootNodes=e,this.errors=r}},Qt=class{constructor(e){this.getTagDefinition=e}parse(e,r,n,s=!1,i){let a=D=>(P2,...B)=>D(P2.toLowerCase(),...B),o=s?this.getTagDefinition:a(this.getTagDefinition),u=D=>o(D).getContentType(),p=s?i:a(i),m=function Ps(t8,e,r,n={}){let s=new Pr(new Se(t8,e),r,n);return s.tokenize(),new Fr(function lo(t8){let r,e=[];for(let n=0;n{let g=p(D,P2,B,c);return void 0!==g?g:u(D)}:u,n),d=n&&n.canSelfClose||!1,C=n&&n.allowHtmComponentClosingTags||!1,_2=new Or(m.tokens,o,d,C,s);return _2.build(),new $r(_2.rootNodes,m.errors.concat(_2.errors))}},Or=class t6{constructor(e,r,n,s,i){this.tokens=e,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=s,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;30!==this._peek.type;)0===this._peek.type||4===this._peek.type?this._consumeStartTag(this._advance()):3===this._peek.type?(this._closeVoidElement(),this._consumeEndTag(this._advance())):12===this._peek.type?(this._closeVoidElement(),this._consumeCdata(this._advance())):10===this._peek.type?(this._closeVoidElement(),this._consumeComment(this._advance())):5===this._peek.type||7===this._peek.type||6===this._peek.type?(this._closeVoidElement(),this._consumeText(this._advance())):20===this._peek.type?this._consumeExpansion(this._advance()):25===this._peek.type?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):27===this._peek.type?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):29===this._peek.type?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):18===this._peek.type?this._consumeDocType(this._advance()):this._advance();for(let e of this._containerStack)e instanceof J&&this.errors.push(I.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new f(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),o=new f(r.sourceSpan.start,s.sourceSpan.end,r.sourceSpan.fullStart);return new Ht(e.parts[0],i.rootNodes,a,e.sourceSpan,o)}_collectExpansionExpTokens(e){let r=[],n=[22];for(;;){if((20===this._peek.type||22===this._peek.type)&&n.push(this._peek.type),23===this._peek.type){if(!Ns(n,22))return this.errors.push(I.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0===n.length)return r}if(24===this._peek.type){if(!Ns(n,20))return this.errors.push(I.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(30===this._peek.type)return this.errors.push(I.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&"\n"==r[0]){let n=this._getClosestParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],n=e.sourceSpan,s=e.parts[0];if(s.length>0&&"\n"===s[0]){let i=this._getContainer();null!=i&&0===i.children.length&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)e=this._advance(),r.push(e),8===e.type?s+=e.parts.join("").replace(/&([^;]+);/g,Is):9===e.type?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Ot(s,new f(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getContainer();e instanceof z&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;14===this._peek.type;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(2===this._peek.type){this._advance(),a=!0;let C=this.getTagDefinition(i);this.canSelfClose||C.canSelfClose||null!==Me(i)||C.isVoid||this.errors.push(I.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else 1===this._peek.type&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,u=new f(e.sourceSpan.start,o,e.sourceSpan.fullStart),p=new f(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new f(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),m=new z(i,s,[],u,p,void 0,l),d=this._getContainer();this._pushContainer(m,d instanceof z&&this.getTagDefinition(d.name).isClosedByChild(m.name)),a?this._popContainer(i,z,u):4===e.type&&(this._popContainer(i,z,null),this.errors.push(I.create(i,u,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&0===e.parts.length?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(I.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(r,z,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(I.create(r,e.sourceSpan,n))}}_popContainer(e,r,n){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(Me(a.name)?a.name===e:(null==e||a.name.toLowerCase()===e.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=null!==n?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(a instanceof J||a instanceof z&&!this.getTagDefinition(a.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let s,r=qe(e.parts[0],e.parts[1]),n=e.sourceSpan.end;15===this._peek.type&&(s=this._advance());let o,u,i="",a=[];if(16===this._peek.type)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){let m=this._advance();a.push(m),17===m.type?i+=m.parts.join("").replace(/&([^;]+);/g,Is):9===m.type?i+=m.parts[0]:i+=m.parts.join(""),u=n=m.sourceSpan.end}15===this._peek.type&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new f(s?.sourceSpan.start??o.start,u,s?.sourceSpan.fullStart??o.fullStart);return new Vt(r,i,new f(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let r=[];for(;28===this._peek.type;){let o=this._advance();r.push(new ot(o.parts[0],o.sourceSpan))}26===this._peek.type&&this._advance();let n=this._peek.sourceSpan.fullStart,s=new f(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new f(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new J(e.parts[0],r,[],s,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,J,e.sourceSpan)||this.errors.push(I.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;28===this._peek.type;){let o=this._advance();r.push(new ot(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,s=new f(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new f(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new J(e.parts[0],r,[],s,i);this._pushContainer(a,!1),this._popContainer(null,J,null),this.errors.push(I.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof z)return this._containerStack[e];return null}_addToParent(e){let r=this._getContainer();null===r?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r,n){if(""===e&&(""===(e=this.getTagDefinition(r).implicitNamespacePrefix||"")&&null!=n)){let s=it(n.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=Me(n.name))}return qe(e,r)}};function Ns(t8,e){return t8.length>0&&t8[t8.length-1]===e}function Is(t8,e){return void 0!==Ve[e]?Ve[e]||t8:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t8}var Xt=class extends Qt{constructor(){super(He)}parse(e,r,n,s=!1,i){return super.parse(e,r,n,s,i)}},Mr=null,co=()=>(Mr||(Mr=new Xt),Mr);function qr(t8,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:s=!1,getTagContentType:i,tokenizeAngularBlocks:a=!1}=e;return co().parse(t8,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a},s,i)}var po=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");var Rs=function ho(t8){let e=t8.match(po);if(!e)return{content:t8};let{startDelimiter:r,language:n,value:s="",endDelimiter:i}=e.groups,a=n.trim()||"yaml";if("+++"===r&&(a="toml"),"yaml"!==a&&r!==i)return{content:t8};let[o]=e;return{frontMatter:{type:"front-matter",lang:a,value:s,startDelimiter:r,endDelimiter:i,raw:o.replace(/\n$/,"")},content:v(!1,o,/[^\n]/g," ")+t8.slice(o.length)}};var $s=function fo(t8,e){let r=new SyntaxError(t8+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)},Os=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),Jt=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),Zt={attrs:!0,children:!0},Ms=new Set(["parent"]),er=class t7{constructor(e={}){for(let r of new Set([...Ms,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in Zt&&(r=r.map((n=>this.createChild(n)))),!Ms.has(e))return void(this[e]=r);Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in Zt){let s=this[n];if(s){let i=mo(s,(a=>a.map(e)));r!==s&&(r||(r=new t7({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in Zt||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in Zt){let n=this[r];if(n)for(let s=0;s[e.fullName,e.value])))}};function mo(t8,e){let r=t8.map(e);return r.some(((n,s)=>n!==t8[s]))?r:t8}var go=[{regex:/^(\[if([^\]]*)]>)(.*?){try{return[!0,e(i,o).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new f(o,u)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:v(!1,s.trim(),/\s+/g," "),sourceSpan:t8.sourceSpan,startSourceSpan:new f(t8.sourceSpan.start,o),endSourceSpan:new f(u,t8.sourceSpan.end)}}},{regex:/^\[if([^\]]*)]>p(...c)?F.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:"angular"===n||void 0});if("vue"===n){if(l.some((w2=>"docType"===w2.type&&"html"===w2.value||"element"===w2.type&&"html"===w2.name.toLowerCase())))return Vs(t8,Ws,r);let g,y2=()=>g??(g=qr(t8,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u})),$=w2=>y2().rootNodes.find((({startSourceSpan:q2})=>q2&&q2.start.offset===w2.startSourceSpan.start.offset))??w2;for(let[w2,q2]of l.entries()){let{endSourceSpan:Wr2,startSourceSpan:js}=q2;if(null===Wr2)m=y2().errors,l[w2]=$(q2);else if(Ao(q2,r)){let zr2=y2().errors.find((Gr2=>Gr2.span.start.offset>js.start.offset&&Gr2.span.start.offset0&&Hs(m[0]);let d=c=>{let g=c.name.startsWith(":")?c.name.slice(1).split(":")[0]:null,y2=c.nameSpan.toString(),$=null!==g&&y2.startsWith(`${g}:`),w2=$?y2.slice(g.length+1):y2;c.name=w2,c.namespace=g,c.hasExplicitNamespace=$},_2=(c,g)=>{let y2=c.toLowerCase();return g(y2)?y2:c};return zt(new class extends ut{visit(c){(c=>{switch(c.type){case"element":d(c);for(let g of c.attrs)d(g),g.valueSpan?(g.value=g.valueSpan.toString(),/["']/.test(g.value[0])&&(g.value=g.value.slice(1,-1))):g.value=null;break;case"comment":c.value=c.sourceSpan.toString().slice(4,-3);break;case"text":c.value=c.sourceSpan.toString()}})(c),(c=>{if("element"===c.type){let g=He(u?c.name:c.name.toLowerCase());!c.namespace||c.namespace===g.implicitNamespacePrefix||de(c)?c.tagDefinition=g:c.tagDefinition=He("")}})(c),(c=>{if("element"===c.type&&(i&&(!c.namespace||c.namespace===c.tagDefinition.implicitNamespacePrefix||de(c))&&(c.name=_2(c.name,(g=>Os.has(g)))),a))for(let g of c.attrs)g.namespace||(g.name=_2(g.name,(y2=>Jt.has(c.name)&&(Jt.get("*").has(y2)||Jt.get(c.name).has(y2)))))})(c),(c=>{c.sourceSpan&&c.endSourceSpan&&(c.sourceSpan=new f(c.sourceSpan.start,c.endSourceSpan.end))})(c)}},l),l}function Ao(t8,e){var n;if("element"!==t8.type||"template"!==t8.name)return!1;let r=null==(n=t8.attrs.find((s=>"lang"===s.name)))?void 0:n.value;return!r||"html"===Ne(e,{language:r})}function Hs(t8){let{msg:e,span:{start:r,end:n}}=t8;throw $s(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t8})}function Us(t8,e,r={},n=!0){let{frontMatter:s,content:i}=n?Rs(t8):{frontMatter:null,content:t8},a=new Se(t8,r.filepath),o=new ne(a,0,0,0),u=o.moveBy(t8.length),p={type:"root",sourceSpan:new f(o,u),children:Vs(i,e,r)};if(s){let d=new ne(a,0,0,0),C=d.moveBy(s.raw.length);s.sourceSpan=new f(d,C),p.children.unshift(s)}let l=new er(p),m=(d,C)=>{let{offset:_2}=C,B=Us(v(!1,t8.slice(0,_2),/[^\n\r]/g," ")+d,e,r,!1);B.sourceSpan=new f(C,me(!1,B.children,-1).sourceSpan.end);let c=B.children[0];return c.length===_2?B.children.shift():(c.sourceSpan=new f(c.sourceSpan.start.moveBy(_2),c.sourceSpan.end),c.value=c.value.slice(_2)),B};return l.walk((d=>{if("comment"===d.type){let C=function qs(t8,e){if(t8.value)for(let{regex:r,parse:n}of go){let s=t8.value.match(r);if(s)return n(t8,e,s)}return null}(d,m);C&&d.parent.replaceChild(d,C)}!function Eo(t8){if("block"===t8.type){if(t8.name=v(!1,t8.name.toLowerCase(),/\s+/g," ").trim(),t8.type="angularControlFlowBlock",!xt(t8.parameters))return void delete t8.parameters;for(let e of t8.parameters)e.type="angularControlFlowBlockParameter";t8.parameters={type:"angularControlFlowBlockParameters",children:t8.parameters,sourceSpan:new f(t8.parameters[0].sourceSpan.start,me(!1,t8.parameters,-1).sourceSpan.end)}}}(d)})),l}function tr(t8){return{parse:(e,r)=>Us(e,t8,r),hasPragma:Rn,astFormat:"html",locStart:se,locEnd:ie}}var Ws={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},Do=tr(Ws),vo=tr({name:"angular"}),yo=tr({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText:(t8,e,r,n)=>"html"!==t8.toLowerCase()&&!r&&("template"!==t8||n.some((({name:s,value:i})=>"lang"===s&&"html"!==i&&""!==i&&void 0!==i)))}),wo=tr({name:"lwc",canSelfClose:!1}),zs=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],Vr={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Ys={bracketSameLine:Vr.bracketSameLine,htmlWhitespaceSensitivity:{category:"HTML",type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Vr.singleAttributePerLine,vueIndentScriptAndStyle:{category:"HTML",type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},To={html:fs},dh=Ur,lu=Object.create,$e2=Object.defineProperty,fu=Object.getOwnPropertyDescriptor,Fu=Object.getOwnPropertyNames,pu=Object.getPrototypeOf,du=Object.prototype.hasOwnProperty,Me2=(e,t8)=>()=>(t8||e((t8={exports:{}}).exports,t8),t8.exports),We=(e,t8)=>{for(var r in t8)$e2(e,r,{get:t8[r],enumerable:!0})},nr2=(e,t8,r,n)=>{if(t8&&"object"==typeof t8||"function"==typeof t8)for(let o of Fu(t8))!du.call(e,o)&&o!==r&&$e2(e,o,{get:()=>t8[o],enumerable:!(n=fu(t8,o))||n.enumerable});return e},he2=(e,t8,r)=>(r=null!=e?lu(pu(e)):{},nr2(!t8&&e&&e.__esModule?r:$e2(r,"default",{value:e,enumerable:!0}),e)),ht2=(e,t8,r)=>{if(t8.has(e))throw TypeError("Cannot add the same private member more than once");t8 instanceof WeakSet?t8.add(e):t8.set(e,r)},ce2=(e,t8,r)=>(((e,t8,r)=>{if(!t8.has(e))throw TypeError("Cannot "+r)})(e,t8,"access private method"),r),or2=Me2((gt2=>{function ur2(){}function gu(e,t8,r,n,o){for(var u=0,i=t8.length,s=0,D=0;up.length?F2:p})),a.value=e.join(c)}else a.value=e.join(r.slice(s,s+a.count));s+=a.count,a.added||(D+=a.count)}}var f2=t8[i-1];return i>1&&"string"==typeof f2.value&&(f2.added||f2.removed)&&e.equals("",f2.value)&&(t8[i-2].value+=f2.value,t8.pop()),t8}Object.defineProperty(gt2,"__esModule",{value:!0}),gt2.default=ur2,ur2.prototype={diff:function(t8,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var u=this;function i(F2){return o?(setTimeout((function(){o(void 0,F2)}),0),!0):F2}t8=this.castInput(t8),r=this.castInput(r),t8=this.removeEmpty(this.tokenize(t8));var s=(r=this.removeEmpty(this.tokenize(r))).length,D=t8.length,a=1,c=s+D;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var d=[{newPos:-1,components:[]}],f2=this.extractCommon(d[0],r,t8,0);if(d[0].newPos+1>=s&&f2+1>=D)return i([{value:this.join(r),count:r.length}]);function p(){for(var F2=-1*a;F2<=a;F2+=2){var m=void 0,E2=d[F2-1],C=d[F2+1],g=(C?C.newPos:0)-F2;E2&&(d[F2-1]=void 0);var h2=E2&&E2.newPos+1=s&&g+1>=D)return i(gu(u,m.components,r,t8,u.useLongestToken));d[F2]=m}else d[F2]=void 0}var e;a++}if(o)!function F2(){setTimeout((function(){if(a>c)return o();p()||F2()}),0)}();else for(;a<=c;){var l=p();if(l)return l}},pushComponent:function(t8,r,n){var o=t8[t8.length-1];o&&o.added===r&&o.removed===n?t8[t8.length-1]={count:o.count+1,added:r,removed:n}:t8.push({count:1,added:r,removed:n})},extractCommon:function(t8,r,n,o){for(var u=r.length,i=n.length,s=t8.newPos,D=s-o,a=0;s+1{Object.defineProperty(ye,"__esModule",{value:!0}),ye.diffArrays=function _u(e,t8,r){return ge2.diff(e,t8,r)},ye.arrayDiff=void 0;var ge2=new(function Bu(e){return e&&e.__esModule?e:{default:e}}(or2()).default);ye.arrayDiff=ge2,ge2.tokenize=function(e){return e.slice()},ge2.join=ge2.removeEmpty=function(e){return e}})),Pe2=Me2(((ps2,jr2)=>{var Yr2=new Proxy(String,{get:()=>Yr2});jr2.exports=Yr2})),Fn2={};We(Fn2,{default:()=>uo2,shouldHighlight:()=>no2});var no2,uo2,pn2=((e,t8)=>()=>(e&&(t8=e(e=0)),t8))((()=>{no2=()=>!1,uo2=String})),yn2=Me2((Ft2=>{Object.defineProperty(Ft2,"__esModule",{value:!0}),Ft2.codeFrameColumns=gn2,Ft2.default=function ao2(e,t8,r,n={}){if(!En2){En2=!0;let u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";new Error(u).name="DeprecationWarning",console.warn(new Error(u))}return r=Math.max(r,0),gn2(e,{start:{column:r,line:t8}},n)};var e,jt2,dn2=(pn2(),e=Fn2,nr2($e2({},"__esModule",{value:!0}),e)),mn2=function oo2(e,t8){if(!t8&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=hn2(t8);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=o?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}(Pe2(),!0);function hn2(e){if("function"!=typeof WeakMap)return null;var t8=new WeakMap,r=new WeakMap;return(hn2=function(n){return n?r:t8})(e)}var En2=!1;var Cn2=/\r\n|[\n\r\u2028\u2029]/;function gn2(e,t8,r={}){let n=(r.highlightCode||r.forceColor)&&(0,dn2.shouldHighlight)(r),o=function io2(e){return e?(null!=jt2||(jt2=new mn2.default.constructor({enabled:!0,level:1})),jt2):mn2.default}(r.forceColor),u=function so2(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(o),i=(F2,m)=>n?F2(m):m,s=e.split(Cn2),{start:D,end:a,markerLines:c}=function Do2(e,t8,r){let n=Object.assign({column:0,line:-1},e.start),o=Object.assign({},n,e.end),{linesAbove:u=2,linesBelow:i=3}=r||{},s=n.line,D=n.column,a=o.line,c=o.column,d=Math.max(s-(u+1),0),f2=Math.min(t8.length,a+i);-1===s&&(d=0),-1===a&&(f2=t8.length);let p=a-s,l={};if(p)for(let F2=0;F2<=p;F2++){let m=F2+s;if(D)if(0===F2){let E2=t8[m-1].length;l[m]=[D,E2-D+1]}else if(F2===p)l[m]=[0,c];else{let E2=t8[m-F2].length;l[m]=[0,E2]}else l[m]=!0}else l[s]=D===c?!D||[D,0]:[D,c-D];return{start:d,end:f2,markerLines:l}}(t8,s,r),d=t8.start&&"number"==typeof t8.start.column,f2=String(a).length,l=(n?(0,dn2.default)(e,r):e).split(Cn2,a).slice(D,a).map(((F2,m)=>{let E2=D+1+m,g=` ${` ${E2}`.slice(-f2)} |`,h2=c[E2],B=!c[E2+1];if(h2){let Z="";if(Array.isArray(h2)){let $=F2.slice(0,Math.max(h2[0]-1,0)).replace(/[^\t]/g," "),Q2=h2[1]||1;Z=["\n ",i(u.gutter,g.replace(/\d/g," "))," ",$,i(u.marker,"^").repeat(Q2)].join(""),B&&r.message&&(Z+=" "+i(u.message,r.message))}return[i(u.marker,">"),i(u.gutter,g),F2.length>0?` ${F2}`:"",Z].join("")}return` ${i(u.gutter,g)}${F2.length>0?` ${F2}`:""}`})).join("\n");return r.message&&!d&&(l=`${" ".repeat(f2+1)}${r.message}\n${l}`),n?o.reset(l):l}})),tr2={};We(tr2,{__debug:()=>ri2,check:()=>ei2,doc:()=>er2,format:()=>cu,formatWithCursor:()=>au,getSupportInfo:()=>ti2,util:()=>Qt2,version:()=>Du});var ee2=(e,t8,r,n)=>{if(!e||null!=t8)return t8.replaceAll?t8.replaceAll(r,n):r.global?t8.replace(r,n):t8.split(r).join(n)},Kn2=he2(ir2(),1),M="string",j2="array",W2="cursor",T2="indent",S2="align",v2="trim",_="group",k2="fill",x2="if-break",P="indent-if-break",L2="line-suffix",I2="line-suffix-boundary",A2="line",O2="label",b2="break-parent",Ue2=new Set([W2,T2,S2,v2,_,k2,x2,P,L2,I2,A2,O2,b2]);var U2=function xu(e){if("string"==typeof e)return M;if(Array.isArray(e))return j2;if(!e)return;let{type:t8}=e;return Ue2.has(t8)?t8:void 0};function bu(e){let t8=null===e?"null":typeof e;if("string"!==t8&&"object"!==t8)return`Unexpected doc '${t8}', \nExpected it to be 'string' or 'object'.`;if(U2(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...Ue2].map((o=>`'${o}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${n}.`}var yt2=class extends Error{name="InvalidDocError";constructor(t8){super(bu(t8)),this.doc=t8}},q=yt2,sr2={};var Ae2=function wu(e,t8,r,n){let o=[e];for(;o.length>0;){let u=o.pop();if(u===sr2){r(o.pop());continue}r&&o.push(u,sr2);let i=U2(u);if(!i)throw new q(u);if(!1!==t8?.(u))switch(i){case j2:case k2:{let s=i===j2?u:u.parts;for(let a=s.length-1;a>=0;--a)o.push(s[a]);break}case x2:o.push(u.flatContents,u.breakContents);break;case _:if(n&&u.expandedStates)for(let D=u.expandedStates.length-1;D>=0;--D)o.push(u.expandedStates[D]);else o.push(u.contents);break;case S2:case T2:case P:case O2:case L2:o.push(u.contents);break;case M:case W2:case v2:case I2:case A2:case b2:break;default:throw new q(u)}}},ze=()=>{};function ie2(e){return{type:T2,contents:e}}function oe2(e,t8){return{type:S2,contents:t8,n:e}}function At2(e,t8={}){return ze(t8.expandedStates),{type:_,id:t8.id,contents:e,break:!!t8.shouldBreak,expandedStates:t8.expandedStates}}function Ge2(e){return{type:k2,parts:e}}function Be2(e){return{type:L2,contents:e}}var dr2={type:I2},le2={type:b2},mr2={type:v2},_e2={type:A2,hard:!0},Bt2={type:A2,hard:!0,literal:!0},Ke2={type:A2},Er2={type:A2,soft:!0},G2=[_e2,le2],He2=[Bt2,le2],xe2={type:W2};function ke2(e,t8){let r=[];for(let n=0;n0){for(let o=0;o{if(!e||null!=t8)return Array.isArray(t8)||"string"==typeof t8?t8[r<0?t8.length+r:r]:t8.at(r)};function be2(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function _t2(e,t8){let r;switch(t8){case"\n":r=/\n/g;break;case"\r":r=/\r/g;break;case"\r\n":r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t8)}.`)}let n=e.match(r);return n?n.length:0}var _r2=e=>!(function Ar2(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}(e)||function Br(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}(e)),Nu=/[^\x20-\x7F]/;var we2=function Tu(e){if(!e)return 0;if(!Nu.test(e))return e.length;e=e.replace(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g," ");let t8=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t8+=_r2(n)?1:2)}return t8},br2=e=>{if(Array.isArray(e))return e;if(e.type!==k2)throw new Error(`Expect doc to be 'array' or '${k2}'.`);return e.parts};function Ne2(e,t8){if("string"==typeof e)return t8(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let i=function o(u){switch(U2(u)){case j2:return t8(u.map(n));case k2:return t8({...u,parts:u.parts.map(n)});case x2:return t8({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case _:{let{expandedStates:i,contents:s}=u;return i?(i=i.map(n),s=i[0]):s=n(s),t8({...u,contents:s,expandedStates:i})}case S2:case T2:case P:case O2:case L2:return t8({...u,contents:n(u.contents)});case M:case W2:case v2:case I2:case A2:case b2:return t8(u);default:throw new q(u)}}(u);return r.set(u,i),i}}function Je2(e,t8,r){let n=r,o=!1;return Ae2(e,(function u(i){if(o)return!1;let s=t8(i);void 0!==s&&(o=!0,n=s)})),n}function Su(e){if(e.type===_&&e.break||e.type===A2&&e.hard||e.type===b2)return!0}function xr(e){if(e.length>0){let t8=y(!1,e,-1);!t8.expandedStates&&!t8.break&&(t8.break="propagated")}return null}function vu(e){return e.type!==A2||e.hard?e.type===x2?e.flatContents:e:e.soft?"":" "}function kr(e){for(e=[...e];e.length>=2&&y(!1,e,-2).type===A2&&y(!1,e,-1).type===b2;)e.length-=2;if(e.length>0){let t8=Oe2(y(!1,e,-1));e[e.length-1]=t8}return e}function Oe2(e){switch(U2(e)){case S2:case T2:case P:case _:case L2:case O2:{let t8=Oe2(e.contents);return{...e,contents:t8}}case x2:return{...e,breakContents:Oe2(e.breakContents),flatContents:Oe2(e.flatContents)};case k2:return{...e,parts:kr(e.parts)};case j2:return kr(e);case M:return e.replace(/[\n\r]*$/,"");case W2:case v2:case I2:case A2:case b2:break;default:throw new q(e)}return e}function Xe2(e){return Oe2(function Lu(e){return Ne2(e,(t8=>function Pu(e){switch(U2(e)){case k2:if(e.parts.every((t8=>""===t8)))return"";break;case _:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===_&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case S2:case T2:case P:case L2:if(!e.contents)return"";break;case x2:if(!e.flatContents&&!e.breakContents)return"";break;case j2:{let t8=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];"string"==typeof n&&"string"==typeof y(!1,t8,-1)?t8[t8.length-1]+=n:t8.push(n),t8.push(...o)}return 0===t8.length?"":1===t8.length?t8[0]:t8}case M:case W2:case v2:case I2:case A2:case O2:case b2:break;default:throw new q(e)}return e}(t8)))}(e))}function Iu(e){if(e.type===A2)return!0}function Ze2(e,t8){return e.type===O2?{...e,contents:t8(e.contents)}:t8(e)}var R2=Symbol("MODE_BREAK"),K2=Symbol("MODE_FLAT"),Te2=Symbol("cursor");function Ru(e,t8){return xt2(e,{type:"indent"},t8)}function Yu(e,t8,r){return t8===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t8<0?xt2(e,{type:"dedent"},r):t8?"root"===t8.type?{...e,root:e}:xt2(e,{type:"string"==typeof t8?"stringAlign":"numberAlign",n:t8},r):e}function xt2(e,t8,r){let n="dedent"===t8.type?e.queue.slice(0,-1):[...e.queue,t8],o="",u=0,i=0,s=0;for(let l of n)switch(l.type){case"indent":c(),r.useTabs?D(1):a(r.tabWidth);break;case"stringAlign":c(),o+=l.n,u+=l.n.length;break;case"numberAlign":i+=1,s+=l.n;break;default:throw new Error(`Unexpected type '${l.type}'`)}return f2(),{...e,value:o,length:u,queue:n};function D(l){o+="\t".repeat(l),u+=r.tabWidth*l}function a(l){o+=" ".repeat(l),u+=l}function c(){r.useTabs?function d(){i>0&&D(i),p()}():f2()}function f2(){s>0&&a(s),p()}function p(){i=0,s=0}}function kt2(e){let t8=0,r=0,n=e.length;e:for(;n--;){let o=e[n];if(o!==Te2)for(let u=o.length-1;u>=0;u--){let i=o[u];if(" "!==i&&"\t"!==i){e[n]=o.slice(0,u+1);break e}t8++}else r++}if(t8>0||r>0)for(e.length=n+1;r-- >0;)e.push(Te2);return t8}function Qe2(e,t8,r,n,o,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t8.length,s=[e],D=[];for(;r>=0;){if(0===s.length){if(0===i)return!0;s.push(t8[--i]);continue}let{mode:a,doc:c}=s.pop();switch(U2(c)){case M:D.push(c),r-=we2(c);break;case j2:case k2:{let d=br2(c);for(let f2=d.length-1;f2>=0;f2--)s.push({mode:a,doc:d[f2]});break}case T2:case S2:case P:case O2:s.push({mode:a,doc:c.contents});break;case v2:r+=kt2(D);break;case _:{if(u&&c.break)return!1;let d=c.break?R2:a,f2=c.expandedStates&&d===R2?y(!1,c.expandedStates,-1):c.contents;s.push({mode:d,doc:f2});break}case x2:{let f2=(c.groupId?o[c.groupId]||K2:a)===R2?c.breakContents:c.flatContents;f2&&s.push({mode:a,doc:f2});break}case A2:if(a===R2||c.hard)return!0;c.soft||(D.push(" "),r--);break;case L2:n=!0;break;case I2:if(n)return!1}}return!1}function fe2(e,t8){let r={},n=t8.printWidth,o=be2(t8.endOfLine),u=0,i=[{ind:{value:"",length:0,queue:[]},mode:R2,doc:e}],s=[],D=!1,a=[],c=0;for(function Or2(e){let t8=new Set,r=[];Ae2(e,(function n(u){if(u.type===b2&&xr(r),u.type===_){if(r.push(u),t8.has(u))return!1;t8.add(u)}}),(function o(u){u.type===_&&r.pop().break&&xr(r)}),!0)}(e);i.length>0;){let{ind:f2,mode:p,doc:l}=i.pop();switch(U2(l)){case M:{let F2="\n"!==o?ee2(!1,l,"\n",o):l;s.push(F2),i.length>0&&(u+=we2(F2));break}case j2:for(let F2=l.length-1;F2>=0;F2--)i.push({ind:f2,mode:p,doc:l[F2]});break;case W2:if(c>=2)throw new Error("There are too many 'cursor' in doc.");s.push(Te2),c++;break;case T2:i.push({ind:Ru(f2,t8),mode:p,doc:l.contents});break;case S2:i.push({ind:Yu(f2,l.n,t8),mode:p,doc:l.contents});break;case v2:u-=kt2(s);break;case _:switch(p){case K2:if(!D){i.push({ind:f2,mode:l.break?R2:K2,doc:l.contents});break}case R2:{D=!1;let F2={ind:f2,mode:K2,doc:l.contents},m=n-u,E2=a.length>0;if(!l.break&&Qe2(F2,i,m,E2,r))i.push(F2);else if(l.expandedStates){let C=y(!1,l.expandedStates,-1);if(l.break){i.push({ind:f2,mode:R2,doc:C});break}for(let g=1;g=l.expandedStates.length){i.push({ind:f2,mode:R2,doc:C});break}{let h2=l.expandedStates[g],B={ind:f2,mode:K2,doc:h2};if(Qe2(B,i,m,E2,r)){i.push(B);break}}}}else i.push({ind:f2,mode:R2,doc:l.contents});break}}l.id&&(r[l.id]=y(!1,i,-1).mode);break;case k2:{let F2=n-u,{parts:m}=l;if(0===m.length)break;let[E2,C]=m,g={ind:f2,mode:K2,doc:E2},h2={ind:f2,mode:R2,doc:E2},B=Qe2(g,[],F2,a.length>0,r,!0);if(1===m.length){B?i.push(g):i.push(h2);break}let Z={ind:f2,mode:K2,doc:C},$={ind:f2,mode:R2,doc:C};if(2===m.length){B?i.push(Z,g):i.push($,h2);break}m.splice(0,2);let Q2={ind:f2,mode:p,doc:Ge2(m)},rr2=m[0];Qe2({ind:f2,mode:K2,doc:[E2,C,rr2]},[],F2,a.length>0,r,!0)?i.push(Q2,Z,g):B?i.push(Q2,$,g):i.push(Q2,$,h2);break}case x2:case P:{let F2=l.groupId?r[l.groupId]:p;if(F2===R2){let m=l.type===x2?l.breakContents:l.negate?l.contents:ie2(l.contents);m&&i.push({ind:f2,mode:p,doc:m})}if(F2===K2){let m=l.type===x2?l.flatContents:l.negate?ie2(l.contents):l.contents;m&&i.push({ind:f2,mode:p,doc:m})}break}case L2:a.push({ind:f2,mode:p,doc:l.contents});break;case I2:a.length>0&&i.push({ind:f2,mode:p,doc:_e2});break;case A2:switch(p){case K2:if(!l.hard){l.soft||(s.push(" "),u+=1);break}D=!0;case R2:if(a.length>0){i.push({ind:f2,mode:p,doc:l},...a.reverse()),a.length=0;break}l.literal?f2.root?(s.push(o,f2.root.value),u=f2.root.length):(s.push(o),u=0):(u-=kt2(s),s.push(o+f2.value),u=f2.length)}break;case O2:i.push({ind:f2,mode:p,doc:l.contents});break;case b2:break;default:throw new q(l)}0===i.length&&a.length>0&&(i.push(...a.reverse()),a.length=0)}let d=s.indexOf(Te2);if(-1!==d){let f2=s.indexOf(Te2,d+1),p=s.slice(0,d).join(""),l=s.slice(d+1,f2).join("");return{formatted:p+l+s.slice(f2+1).join(""),cursorNodeStart:p.length,cursorNodeText:l}}return{formatted:s.join("")}}function J2(e){var t8;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...J2(n));else{let o=J2(n);""!==o&&r.push(o)}return r}return e.type===x2?{...e,breakContents:J2(e.breakContents),flatContents:J2(e.flatContents)}:e.type===_?{...e,contents:J2(e.contents),expandedStates:null==(t8=e.expandedStates)?void 0:t8.map(J2)}:e.type===k2?{type:"fill",parts:e.parts.map(J2)}:e.contents?{...e,contents:J2(e.contents)}:e}var Fe2=function ju(e,t8,r=0){let n=0;for(let o=r;o"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:"Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.",cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:"Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.",cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function et2({plugins:e=[],showDeprecated:t8=!1}={}){let r=e.flatMap((o=>o.languages??[])),n=[];for(let o of function $u(e){let t8=[];for(let[r,n]of Object.entries(e)){let o={name:r,...n};Array.isArray(o.default)&&(o.default=y(!1,o.default,-1).value),t8.push(o)}return t8}(Object.assign({},...e.map((({options:u})=>u)),Lr)))!t8&&o.deprecated||(Array.isArray(o.choices)&&(t8||(o.choices=o.choices.filter((u=>!u.deprecated))),"parser"===o.name&&(o.choices=[...o.choices,...Vu(o.choices,r,e)])),o.pluginDefaults=Object.fromEntries(e.filter((u=>{var i;return void 0!==(null==(i=u.defaultOptions)?void 0:i[o.name])})).map((u=>[u.name,u.defaultOptions[o.name]]))),n.push(o));return{languages:r,options:n}}function*Vu(e,t8,r){let n=new Set(e.map((o=>o.value)));for(let o of t8)if(o.parsers)for(let u of o.parsers)if(!n.has(u)){n.add(u);let i=r.find((D=>D.parsers&&Object.prototype.hasOwnProperty.call(D.parsers,u))),s=o.name;null!=i&&i.name&&(s+=` (plugin: ${i.name})`),yield{value:u,description:s}}}var Mu=e=>String(e).split(/[/\\]/).pop();function Ir(e,t8){if(!t8)return;let r=Mu(t8).toLowerCase();return e.find((n=>{var o,u;return(null==(o=n.extensions)?void 0:o.some((i=>r.endsWith(i))))||(null==(u=n.filenames)?void 0:u.some((i=>i.toLowerCase()===r)))}))}var Rr=function Uu(e,t8){let r=e.plugins.flatMap((o=>o.languages??[])),n=function Wu(e,t8){if(t8)return e.find((({name:r})=>r.toLowerCase()===t8))??e.find((({aliases:r})=>r?.includes(t8)))??e.find((({extensions:r})=>r?.includes(`.${t8}`)))}(r,t8.language)??Ir(r,t8.physicalFile)??Ir(r,t8.file)??void t8.physicalFile;return n?.parsers[0]},te2={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map((r=>te2.value(r))).join(", ")}]`;let t8=Object.keys(e);return 0===t8.length?"{}":`{ ${t8.map((r=>`${te2.key(r)}: ${te2.value(e[r])}`)).join(", ")} }`},pair:({key:e,value:t8})=>te2.value({[e]:t8})},bt2=he2(Pe2(),1),se2=he2(Pe2(),1),tt2=Symbol.for("vnopts.VALUE_NOT_EXIST"),pe2=Symbol.for("vnopts.VALUE_UNCHANGED"),$r2=" ".repeat(2);function Mr2(e,t8,r,n){return[`Invalid ${se2.default.red(n.key(e))} value.`,`Expected ${se2.default.blue(r)},`,`but received ${t8===tt2?se2.default.gray("nothing"):se2.default.red(n.value(t8))}.`].join(" ")}function Ur2({text:e,list:t8},r){let n=[];return e&&n.push(`- ${se2.default.blue(e)}`),t8&&n.push([`- ${se2.default.blue(t8.title)}:`].concat(t8.values.map((o=>Ur2(o,r-$r2.length).replace(/^|\n/g,`$&${$r2}`)))).join("\n")),zr(n,r)}function zr(e,t8){if(1===e.length)return e[0];let[r,n]=e,[o,u]=e.map((i=>i.split("\n",1)[0].length));return o>t8&&o>u?n:r}var Nt2=he2(Pe2(),1),wt2=[],Gr=[];var rt2=(e,t8,{descriptor:r,logger:n,schemas:o})=>{let u=[`Ignored unknown option ${Nt2.default.yellow(r.pair({key:e,value:t8}))}.`],i=Object.keys(o).sort().find((s=>function Ot2(e,t8){if(e===t8)return 0;let r=e;e.length>t8.length&&(e=t8,t8=r);let n=e.length,o=t8.length;for(;n>0&&e.charCodeAt(~-n)===t8.charCodeAt(~-o);)n--,o--;let u=0;for(;us?a>s?s+1:a:a>D?D+1:a;return s}(e,s)<3));i&&u.push(`Did you mean ${Nt2.default.blue(r.key(i))}?`),n.warn(u.join(" "))},zu=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];var w=class{static create(t8){return function Gu(e,t8){let r=new e(t8),n=Object.create(r);for(let o of zu)o in t8&&(n[o]=Ku(t8[o],r,w.prototype[o].length));return n}(this,t8)}constructor(t8){this.name=t8.name}default(t8){}expected(t8){return"nothing"}validate(t8,r){return!1}deprecated(t8,r){return!1}forward(t8,r){}redirect(t8,r){}overlap(t8,r,n){return t8}preprocess(t8,r){return t8}postprocess(t8,r){return pe2}};function Ku(e,t8,r){return"function"==typeof e?(...n)=>e(...n.slice(0,r-1),t8,...n.slice(r-1)):()=>e}var nt2=class extends w{constructor(t8){super(t8),this._sourceName=t8.sourceName}expected(t8){return t8.schemas[this._sourceName].expected(t8)}validate(t8,r){return r.schemas[this._sourceName].validate(t8,r)}redirect(t8,r){return this._sourceName}},ut2=class extends w{expected(){return"anything"}validate(){return!0}},ot2=class extends w{constructor({valueSchema:t8,name:r=t8.name,...n}){super({...n,name:r}),this._valueSchema=t8}expected(t8){let{text:r,list:n}=t8.normalizeExpectedResult(this._valueSchema.expected(t8));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t8,r){if(!Array.isArray(t8))return!1;let n=[];for(let o of t8){let u=r.normalizeValidateResult(this._valueSchema.validate(o,r),o);!0!==u&&n.push(u.value)}return 0===n.length||{value:n}}deprecated(t8,r){let n=[];for(let o of t8){let u=r.normalizeDeprecatedResult(this._valueSchema.deprecated(o,r),o);!1!==u&&n.push(...u.map((({value:i})=>({value:[i]}))))}return n}forward(t8,r){let n=[];for(let o of t8){let u=r.normalizeForwardResult(this._valueSchema.forward(o,r),o);n.push(...u.map(Kr2))}return n}redirect(t8,r){let n=[],o=[];for(let u of t8){let i=r.normalizeRedirectResult(this._valueSchema.redirect(u,r),u);"remain"in i&&n.push(i.remain),o.push(...i.redirect.map(Kr2))}return 0===n.length?{redirect:o}:{redirect:o,remain:n}}overlap(t8,r){return t8.concat(r)}};function Kr2({from:e,to:t8}){return{from:[e],to:t8}}var it2=class extends w{expected(){return"true or false"}validate(t8){return"boolean"==typeof t8}};function qr2(e,t8){let r=Object.create(null);for(let n of e){let o=n[t8];if(r[o])throw new Error(`Duplicate ${t8} ${JSON.stringify(o)}`);r[o]=n}return r}function en2(e,t8){if(e===t8)return 0;let r=typeof e,n=typeof t8,o=["undefined","object","boolean","number","string"];return r!==n?o.indexOf(r)-o.indexOf(n):"string"!==r?Number(e)-Number(t8):e.localeCompare(t8)}function Tt2(e){return void 0===e?{}:e}function St2(e){if("string"==typeof e)return{text:e};let{text:t8,list:r}=e;return function Hu(e,t8){if(!e)throw new Error(t8)}(void 0!==(t8||r),"Unexpected `expected` result, there should be at least one field."),r?{text:t8,list:{title:r.title,values:r.values.map(St2)}}:{text:t8}}function vt2(e,t8){return!0===e||(!1===e?{value:t8}:e)}function Pt2(e,t8,r=!1){return!1!==e&&(!0===e?!!r||[{value:t8}]:"value"in e?[e]:0!==e.length&&e)}function Hr2(e,t8){return"string"==typeof e||"key"in e?{from:t8,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t8,to:e.to}}function st2(e,t8){return void 0===e?[]:Array.isArray(e)?e.map((r=>Hr2(r,t8))):[Hr2(e,t8)]}function Lt2(e,t8){let r=st2("object"==typeof e&&"redirect"in e?e.redirect:e,t8);return 0===r.length?{remain:t8,redirect:r}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}var It2,Dt2=class extends w{constructor(t8){super(t8),this._choices=function Jr2(e,t8){let r=new Map;for(let n of e){let o=n[t8];if(r.has(o))throw new Error(`Duplicate ${t8} ${JSON.stringify(o)}`);r.set(o,n)}return r}(t8.choices.map((r=>r&&"object"==typeof r?r:{value:r})),"value")}expected({descriptor:t8}){let r=Array.from(this._choices.keys()).map((i=>this._choices.get(i))).filter((({hidden:i})=>!i)).map((i=>i.value)).sort(en2).map(t8.value),n=r.slice(0,-2),o=r.slice(-2);return{text:n.concat(o.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t8){return this._choices.has(t8)}deprecated(t8){let r=this._choices.get(t8);return!(!r||!r.deprecated)&&{value:t8}}forward(t8){let r=this._choices.get(t8);return r?r.forward:void 0}redirect(t8){let r=this._choices.get(t8);return r?r.redirect:void 0}},at2=class extends w{expected(){return"a number"}validate(t8,r){return"number"==typeof t8}},ct2=class extends at2{expected(){return"an integer"}validate(t8,r){return!0===r.normalizeValidateResult(super.validate(t8,r),t8)&&function Qr2(e){return e===Math.floor(e)}(t8)}},Le2=class extends w{expected(){return"a string"}validate(t8){return"string"==typeof t8}},rn2=te2,nn2=rt2,un2=(e,t8,r)=>{let{text:n,list:o}=r.normalizeExpectedResult(r.schemas[e].expected(r)),u=[];return n&&u.push(Mr2(e,t8,n,r.descriptor)),o&&u.push([Mr2(e,t8,o.title,r.descriptor)].concat(o.values.map((i=>Ur2(i,r.loggerPrintWidth)))).join("\n")),zr(u,r.loggerPrintWidth)},on2=(e,t8,{descriptor:r})=>{let n=[`${bt2.default.yellow("string"==typeof e?r.key(e):r.pair(e))} is deprecated`];return t8&&n.push(`we now treat it as ${bt2.default.blue("string"==typeof t8?r.key(t8):r.pair(t8))}`),n.join("; ")+"."},lt=class{constructor(t8,r){let{logger:n=console,loggerPrintWidth:o=80,descriptor:u=rn2,unknown:i=nn2,invalid:s=un2,deprecated:D=on2,missing:a=(()=>!1),required:c=(()=>!1),preprocess:d=(p=>p),postprocess:f2=(()=>pe2)}=r||{};this._utils={descriptor:u,logger:n||{warn:()=>{}},loggerPrintWidth:o,schemas:qr2(t8,"name"),normalizeDefaultResult:Tt2,normalizeExpectedResult:St2,normalizeDeprecatedResult:Pt2,normalizeForwardResult:st2,normalizeRedirectResult:Lt2,normalizeValidateResult:vt2},this._unknownHandler=i,this._invalidHandler=function tn2(e){return(...t8)=>{let r=e(...t8);return"string"==typeof r?new Error(r):r}}(s),this._deprecatedHandler=D,this._identifyMissing=(p,l)=>!(p in l)||a(p,l),this._identifyRequired=c,this._preprocess=d,this._postprocess=f2,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=function Xr2(){let e=Object.create(null);return t8=>{let r=JSON.stringify(t8);return!!e[r]||(e[r]=!0,!1)}}()}normalize(t8){let r={},o=[this._preprocess(t8,this._utils)],u=()=>{for(;0!==o.length;){let i=o.shift(),s=this._applyNormalization(i,r);o.push(...s)}};u();for(let i of Object.keys(this._utils.schemas)){let s=this._utils.schemas[i];if(!(i in r)){let D=Tt2(s.default(this._utils));"value"in D&&o.push({[i]:D.value})}}u();for(let i of Object.keys(this._utils.schemas)){if(!(i in r))continue;let s=this._utils.schemas[i],D=r[i],a=s.postprocess(D,this._utils);a!==pe2&&(this._applyValidation(a,i,s),r[i]=a)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t8,r){let n=[],{knownKeys:o,unknownKeys:u}=this._partitionOptionKeys(t8);for(let i of o){let s=this._utils.schemas[i],D=s.preprocess(t8[i],this._utils);this._applyValidation(D,i,s);let a=({from:p,to:l})=>{n.push("string"==typeof l?{[l]:p}:{[l.key]:l.value})},c=({value:p,redirectTo:l})=>{let F2=Pt2(s.deprecated(p,this._utils),D,!0);if(!1!==F2)if(!0===F2)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,l,this._utils));else for(let{value:m}of F2){let E2={key:i,value:m};if(!this._hasDeprecationWarned(E2)){let C="string"==typeof l?{key:l,value:m}:l;this._utils.logger.warn(this._deprecatedHandler(E2,C,this._utils))}}};st2(s.forward(D,this._utils),D).forEach(a);let f2=Lt2(s.redirect(D,this._utils),D);if(f2.redirect.forEach(a),"remain"in f2){let p=f2.remain;r[i]=i in r?s.overlap(r[i],p,this._utils):p,c({value:p})}for(let{from:p,to:l}of f2.redirect)c({value:p,redirectTo:l})}for(let i of u){let s=t8[i];this._applyUnknownHandler(i,s,r,((D,a)=>{n.push({[D]:a})}))}return n}_applyRequiredCheck(t8){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t8)&&this._identifyRequired(r))throw this._invalidHandler(r,tt2,this._utils)}_partitionOptionKeys(t8){let[r,n]=function Zr2(e,t8){let r=[],n=[];for(let o of e)t8(o)?r.push(o):n.push(o);return[r,n]}(Object.keys(t8).filter((o=>!this._identifyMissing(o,t8))),(o=>o in this._utils.schemas));return{knownKeys:r,unknownKeys:n}}_applyValidation(t8,r,n){let o=vt2(n.validate(t8,this._utils),t8);if(!0!==o)throw this._invalidHandler(r,o.value,this._utils)}_applyUnknownHandler(t8,r,n,o){let u=this._unknownHandler(t8,r,this._utils);if(u)for(let i of Object.keys(u)){if(this._identifyMissing(i,u))continue;let s=u[i];i in this._utils.schemas?o(i,s):n[i]=s}}_applyPostprocess(t8){let r=this._postprocess(t8,this._utils);if(r!==pe2){if(r.delete)for(let n of r.delete)delete t8[n];if(r.override){let{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(r.override);for(let u of n){let i=r.override[u];this._applyValidation(i,u,this._utils.schemas[u]),t8[u]=i}for(let u of o){let i=r.override[u];this._applyUnknownHandler(u,i,t8,((s,D)=>{let a=this._utils.schemas[s];this._applyValidation(D,s,a),t8[s]=D}))}}}}};function Zu(e,{isCLI:t8,optionInfos:r,FlagSchema:n}){let i,{name:o}=e,u={name:o},s={};switch(e.type){case"int":i=ct2,t8&&(u.preprocess=Number);break;case"string":case"path":i=Le2;break;case"choice":i=Dt2,u.choices=e.choices.map((D=>null!=D&&D.redirect?{...D,redirect:{to:{key:e.name,value:D.redirect}}}:D));break;case"boolean":i=it2;break;case"flag":i=n,u.flags=r.flatMap((D=>[D.alias,D.description&&D.name,D.oppositeDescription&&`no-${D.name}`].filter(Boolean)));break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?u.validate=(D,a,c)=>e.exception(D)||a.validate(D,c):u.validate=(D,a,c)=>void 0===D||a.validate(D,c),e.redirect&&(s.redirect=D=>D?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t8&&!e.array){let D=u.preprocess||(a=>a);u.preprocess=(a,c,d)=>c.preprocess(D(Array.isArray(a)?y(!1,a,-1):a),d)}return e.array?ot2.create({...t8?{preprocess:D=>Array.isArray(D)?D:[D]}:{},...s,valueSchema:i.create(u)}):i.create({...u,...s})}var sn2=function Ju(e,t8,{logger:r=!1,isCLI:n=!1,passThrough:o=!1,FlagSchema:u,descriptor:i}={}){if(n){if(!u)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=te2;let s=o?Array.isArray(o)?(f2,p)=>o.includes(f2)?{[f2]:p}:void 0:(f2,p)=>({[f2]:p}):(f2,p,l)=>{let{_:F2,...m}=l.schemas;return rt2(f2,p,{...l,schemas:m})},D=function Xu(e,{isCLI:t8,FlagSchema:r}){let n=[];t8&&n.push(ut2.create({name:"_"}));for(let o of e)n.push(Zu(o,{isCLI:t8,optionInfos:e,FlagSchema:r})),o.alias&&t8&&n.push(nt2.create({name:o.alias,sourceName:o.name}));return n}(t8,{isCLI:n,FlagSchema:u}),a=new lt(D,{logger:r,unknown:s,descriptor:i}),c=!1!==r;c&&It2&&(a._hasDeprecationWarned=It2);let d=a.normalize(e);return c&&(It2=a._hasDeprecationWarned),d};function Rt2(e,t8){if(!t8)throw new Error("parserName is required.");for(let n=e.length-1;n>=0;n--){let o=e[n];if(o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,t8))return o}let r=`Couldn't resolve parser "${t8}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Se2(r)}function ft2({plugins:e,parser:t8}){return Yt(Rt2(e,t8),t8)}function Yt(e,t8){let r=e.parsers[t8];return"function"==typeof r?r():r}var cn2={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};var re2=async function Qu(e,t8={}){var d;let r={...e};if(!r.parser){if(!r.filepath)throw new ve2("No parser and no file path given, couldn't infer a parser.");if(r.parser=Rr(r,{physicalFile:r.filepath}),!r.parser)throw new ve2(`No parser could be inferred for file "${r.filepath}".`)}let n=et2({plugins:e.plugins,showDeprecated:!0}).options,o={...cn2,...Object.fromEntries(n.filter((f2=>void 0!==f2.default)).map((f2=>[f2.name,f2.default])))},u=Rt2(r.plugins,r.parser),i=await Yt(u,r.parser);r.astFormat=i.astFormat,r.locEnd=i.locEnd,r.locStart=i.locStart;let s=null!=(d=u.printers)&&d[i.astFormat]?u:function Dn2(e,t8){if(!t8)throw new Error("astFormat is required.");for(let n=e.length-1;n>=0;n--){let o=e[n];if(o.printers&&Object.prototype.hasOwnProperty.call(o.printers,t8))return o}let r=`Couldn't find plugin for AST format "${t8}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Se2(r)}(r.plugins,i.astFormat),D=await function an2(e,t8){let r=e.printers[t8];return"function"==typeof r?r():r}(s,i.astFormat);r.printer=D;let c={...o,...s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter((([,f2])=>void 0!==f2))):{}};for(let[f2,p]of Object.entries(c))(null===r[f2]||void 0===r[f2])&&(r[f2]=p);return"json"===r.parser&&(r.trailingComma="none"),sn2(r,n,{passThrough:Object.keys(cn2),...t8})},ln2=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),eo=e=>Object.keys(e).filter((t8=>!ln2.has(t8)));var H2=function to(e){return e?t8=>e(t8,ln2):eo};var fn2=function ro2(e,t8){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t8;if(!r)return e;let o=H2(n),u=r.ignoredProperties??new Set;return function i(s,D){if(null===s||"object"!=typeof s)return s;if(Array.isArray(s))return s.map((f2=>i(f2,D))).filter(Boolean);let a={},c=new Set(o(s));for(let f2 in s)!Object.prototype.hasOwnProperty.call(s,f2)||u.has(f2)||(c.has(f2)?a[f2]=i(s[f2],s):a[f2]=s[f2]);let d=r(s,a,D);if(null!==d)return d??a}(e)},An2=he2(yn2(),1);var Ie,$t2,de2,pt2,De2=async function co2(e,t8){let o,r=await ft2(t8),n=r.preprocess?r.preprocess(e,t8):e;t8.originalText=n;try{o=await r.parse(n,t8,t8)}catch(u){!function lo2(e,t8){let{loc:r}=e;if(r){let n=(0,An2.codeFrameColumns)(t8,r,{highlightCode:!0});throw e.message+="\n"+n,e.codeFrame=n,e}throw e}(u,e)}return{text:n,ast:o}};Ie=new WeakSet,$t2=function(t8){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t8<0)return n;return-1},de2=new WeakSet,pt2=function*(){let{stack:t8}=this;for(let r=t8.length-3;r>=0;r-=2){let n=t8[r];Array.isArray(n)||(yield n)}};var Bn2=class{constructor(t8){ht2(this,Ie),ht2(this,de2),this.stack=[t8]}get key(){let{stack:t8,siblings:r}=this;return y(!1,t8,null===r?-2:-4)??null}get index(){return null===this.siblings?null:y(!1,this.stack,-2)}get node(){return y(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return null!==this.siblings}get siblings(){let{stack:t8}=this,r=y(!1,t8,-3);return Array.isArray(r)?r:null}get next(){let{siblings:t8}=this;return null===t8?null:t8[this.index+1]}get previous(){let{siblings:t8}=this;return null===t8?null:t8[this.index-1]}get isFirst(){return 0===this.index}get isLast(){let{siblings:t8,index:r}=this;return null!==t8&&r===t8.length-1}get isRoot(){return 1===this.stack.length}get root(){return this.stack[0]}get ancestors(){return[...ce2(this,de2,pt2).call(this)]}getName(){let{stack:t8}=this,{length:r}=t8;return r>1?y(!1,t8,-2):null}getValue(){return y(!1,this.stack,-1)}getNode(t8=0){let r=ce2(this,Ie,$t2).call(this,t8);return-1===r?null:this.stack[r]}getParentNode(t8=0){return this.getNode(t8+1)}call(t8,...r){let{stack:n}=this,{length:o}=n,u=y(!1,n,-1);for(let i of r)u=u[i],n.push(i,u);try{return t8(this)}finally{n.length=o}}callParent(t8,r=0){let n=ce2(this,Ie,$t2).call(this,r+1),o=this.stack.splice(n+1);try{return t8(this)}finally{this.stack.push(...o)}}each(t8,...r){let{stack:n}=this,{length:o}=n,u=y(!1,n,-1);for(let i of r)u=u[i],n.push(i,u);try{for(let i=0;i{n[u]=t8(o,u,i)}),...r),n}match(...t8){let r=this.stack.length-1,n=null,o=this.stack[r--];for(let u of t8){if(void 0===o)return!1;let i=null;if("number"==typeof n&&(i=n,n=this.stack[r--],o=this.stack[r--]),u&&!u(o,n,i))return!1;n=this.stack[r--],o=this.stack[r--]}return!0}findAncestor(t8){for(let r of ce2(this,de2,pt2).call(this))if(t8(r))return r}hasAncestor(t8){for(let r of ce2(this,de2,pt2).call(this))if(t8(r))return!0;return!1}},_n2=new Proxy((()=>{}),{get:()=>_n2}),Re2=_n2;function me2(e){return(t8,r,n)=>{let o=!(null==n||!n.backwards);if(!1===r)return!1;let{length:u}=t8,i=r;for(;i>=0&&i0};var kn2=function mo2(e){return null!==e&&"object"==typeof e};function*Wt2(e,t8){let{getVisitorKeys:r,filter:n=(()=>!0)}=t8,o=u=>kn2(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let s of i)o(s)&&(yield s);else o(i)&&(yield i)}}function Ut2(e,t8){(e.comments??(e.comments=[])).push(t8),t8.printed=!1,t8.nodeDescription=function Eo2(e){let t8=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t8+(r?" "+r:"")}(e)}function ne2(e,t8){t8.leading=!0,t8.trailing=!1,Ut2(e,t8)}function X2(e,t8,r){t8.leading=!1,t8.trailing=!1,r&&(t8.marker=r),Ut2(e,t8)}function ue2(e,t8){t8.leading=!1,t8.trailing=!0,Ut2(e,t8)}var zt2=new WeakMap;function Et2(e,t8){if(zt2.has(e))return zt2.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:o},locStart:u,locEnd:i}=t8;if(!n)return[];let s=(r?.(e,t8)??[...Wt2(e,{getVisitorKeys:H2(o)})]).flatMap((D=>n(D)?[D]:Et2(D,t8)));return s.sort(((D,a)=>u(D)-u(a)||i(D)-i(a))),zt2.set(e,s),s}function On2(e,t8,r,n){let a,c,{locStart:o,locEnd:u}=r,i=o(t8),s=u(t8),D=Et2(e,r),d=0,f2=D.length;for(;d>1,l=D[p],F2=o(l),m=u(l);if(F2<=i&&s<=m)return On2(l,t8,r,l);if(m<=i)a=l,d=p+1;else{if(!(s<=F2))throw new Error("Comment location overlaps with node location");c=l,f2=p}}if("TemplateLiteral"===n?.type){let{quasis:p}=n,l=Kt2(p,t8,r);a&&Kt2(p,a,r)!==l&&(a=null),c&&Kt2(p,c,r)!==l&&(c=null)}return{enclosingNode:n,precedingNode:a,followingNode:c}}var Gt=()=>!1;var Tn2=e=>!/[\S\n\u2028\u2029]/.test(e);function Co2(e,t8,r,n){let{comment:o,precedingNode:u}=r[n],{locStart:i,locEnd:s}=t8,D=i(o);if(u)for(let a=n-1;a>=0;a--){let{comment:c,precedingNode:d}=r[a];if(d!==u||!Tn2(e.slice(s(c),D)))break;D=i(c)}return V2(e,D,{backwards:!0})}function ho2(e,t8,r,n){let{comment:o,followingNode:u}=r[n],{locStart:i,locEnd:s}=t8,D=s(o);if(u)for(let a=n+1;a0;--i){let{comment:a,precedingNode:c,followingNode:d}=e[i-1];Re2.strictEqual(c,n),Re2.strictEqual(d,o);let f2=t8.originalText.slice(t8.locEnd(a),u);if(!((null==(D=(s=t8.printer).isGap)?void 0:D.call(s,f2,t8))??/^[\s(]*$/.test(f2)))break;u=t8.locStart(a)}for(let[a,{comment:c}]of e.entries())a1&&a.comments.sort(((c,d)=>t8.locStart(c)-t8.locStart(d)));e.length=0}function Kt2(e,t8,r){let n=r.locStart(t8)-1;for(let o=1;o!n.has(D))).length)return{leading:"",trailing:""};let s,u=[],i=[];return e.each((()=>{let D=e.node;if(null!=n&&n.has(D))return;let{leading:a,trailing:c}=D;a?u.push(function yo2(e,t8){var c;let r=e.node,n=[Sn2(e,t8)],{printer:o,originalText:u,locStart:i,locEnd:s}=t8;if(null!=(c=o.isBlockComment)&&c.call(o,r)){let d=V2(u,s(r))?V2(u,i(r),{backwards:!0})?G2:Ke2:" ";n.push(d)}else n.push(G2);let a=Y2(u,N2(u,s(r)));return!1!==a&&V2(u,a)&&n.push(G2),n}(e,t8)):c&&(s=function Ao2(e,t8,r){var a;let n=e.node,o=Sn2(e,t8),{printer:u,originalText:i,locStart:s}=t8,D=null==(a=u.isBlockComment)?void 0:a.call(u,n);if(null!=r&&r.hasLineSuffix&&(null==r||!r.isBlock)||V2(i,s(n),{backwards:!0})){let c=Ye2(i,s(n));return{doc:Be2([G2,c?G2:"",o]),isBlock:D,hasLineSuffix:!0}}return!D||null!=r&&r.hasLineSuffix?{doc:[Be2([" ",o]),le2],isBlock:D,hasLineSuffix:!0}:{doc:[" ",o],isBlock:D,hasLineSuffix:!1}}(e,t8,s),i.push(s.doc))}),"comments"),{leading:u,trailing:i}}async function Ln2(e,t8,r,n,o){let{embeddedLanguageFormatting:u,printer:{embed:i,hasPrettierIgnore:s=(()=>!1),getVisitorKeys:D}}=r;if(!i||"auto"!==u)return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let a=H2(i.getVisitorKeys??D),c=[];!function p(){let{node:l}=e;if(null===l||"object"!=typeof l||s(e))return;for(let m of a(l))Array.isArray(l[m])?e.each(p,m):e.call(p,m);let F2=i(e,r);if(F2){if("function"==typeof F2)return void c.push({print:F2,node:l,pathStack:[...e.stack]});o.set(l,F2)}}();let d=e.stack;for(let{print:l,node:F2,pathStack:m}of c)try{e.stack=m;let E2=await l(f2,t8,e,r);E2&&o.set(F2,E2)}catch(E2){if(globalThis.PRETTIER_DEBUG)throw E2}function f2(l,F2){return async function _o2(e,t8,r,n){let o=await re2({...r,...t8,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:u}=await De2(e,o),i=await n(u,o);return Xe2(i)}(l,F2,r,n)}e.stack=d}var Rn2=function ko(e,t8){let{originalText:r,[Symbol.for("comments")]:n,locStart:o,locEnd:u,[Symbol.for("printedComments")]:i}=t8,{node:s}=e,D=o(s),a=u(s);for(let c of n)o(c)>=D&&u(c)<=a&&i.add(c);return r.slice(D,a)};async function je2(e,t8){({ast:e}=await Ht2(e,t8));let r=new Map,n=new Bn2(e),u=new Map;await Ln2(n,s,t8,je2,u);let i=await Yn2(n,t8,s,void 0,u);return function Pn(e){let{[Symbol.for("comments")]:t8,[Symbol.for("printedComments")]:r}=e;for(let n of t8){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}(t8),i;function s(a,c){return void 0===a||a===n?D(c):Array.isArray(a)?n.call((()=>D(c)),...a):n.call((()=>D(c)),a)}function D(a){let c=n.node;if(null==c)return"";let d=c&&"object"==typeof c&&void 0===a;if(d&&r.has(c))return r.get(c);let f2=Yn2(n,t8,s,a,u);return d&&r.set(c,f2),f2}}function Yn2(e,t8,r,n,o){var D;let s,{node:u}=e,{printer:i}=t8;return s=null!=(D=i.hasPrettierIgnore)&&D.call(i,e)?Rn2(e,t8):o.has(u)?o.get(u):i.print(e,t8,r,n),u===t8.cursorNode&&(s=Ze2(s,(a=>[xe2,a,xe2]))),i.printComment&&(!i.willPrintOwnComments||!i.willPrintOwnComments(e,t8))&&(s=function vn2(e,t8,r){let{leading:n,trailing:o}=Bo(e,r);return n||o?Ze2(t8,(u=>[n,u,o])):t8}(e,s,t8)),s}async function Ht2(e,t8){let r=e.comments??[];t8[Symbol.for("comments")]=r,t8[Symbol.for("tokens")]=e.tokens??[],t8[Symbol.for("printedComments")]=new Set,function Nn2(e,t8){let{comments:r}=e;if(delete e.comments,!Mt2(r)||!t8.printer.canAttachComment)return;let n=[],{locStart:o,locEnd:u,printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:s={}},originalText:D}=t8,{ownLine:a=Gt,endOfLine:c=Gt,remaining:d=Gt}=s,f2=r.map(((p,l)=>({...On2(e,p,t8),comment:p,text:D,options:t8,ast:e,isLastComment:r.length-1===l})));for(let[p,l]of f2.entries()){let $,{comment:F2,precedingNode:m,enclosingNode:E2,followingNode:C,text:g,options:h2,ast:B,isLastComment:Z}=l;if("json"===h2.parser||"json5"===h2.parser||"__js_expression"===h2.parser||"__ts_expression"===h2.parser||"__vue_expression"===h2.parser||"__vue_ts_expression"===h2.parser){if(o(F2)-o(B)<=0){ne2(B,F2);continue}if(u(F2)-u(B)>=0){ue2(B,F2);continue}}if(i?$=[l]:(F2.enclosingNode=E2,F2.precedingNode=m,F2.followingNode=C,$=[F2,g,h2,B,Z]),Co2(g,h2,f2,p))F2.placement="ownLine",a(...$)||(C?ne2(C,F2):m?ue2(m,F2):X2(E2||B,F2));else if(ho2(g,h2,f2,p))F2.placement="endOfLine",c(...$)||(m?ue2(m,F2):C?ne2(C,F2):X2(E2||B,F2));else if(F2.placement="remaining",!d(...$))if(m&&C){let Q2=n.length;Q2>0&&n[Q2-1].followingNode!==C&&wn2(n,h2),n.push(l)}else m?ue2(m,F2):C?ne2(C,F2):X2(E2||B,F2)}if(wn2(n,t8),!i)for(let p of r)delete p.precedingNode,delete p.enclosingNode,delete p.followingNode}(e,t8);let{printer:{preprocess:n}}=t8;return{ast:e=n?await n(e,t8):e,comments:r}}var bo2=({parser:e})=>"json"===e||"json5"===e||"json-stringify"===e;function jn2(e){let t8=e.length-1;for(;;){let r=e[t8];if("Program"!==r?.type&&"File"!==r?.type)break;t8--}return e.slice(0,t8+1)}function qt2(e,t8,r,n,o=[],u){let{locStart:i,locEnd:s}=r,D=i(e),a=s(e);if(!(t8>a||t8n);let s=e.slice(n,o).search(/\S/),D=-1===s;if(!D)for(n+=s;o>n&&!/\S/.test(e[o-1]);--o);let d,f2,a=qt2(r,n,t8,((p,l)=>Vn2(t8,p,l)),[],"rangeStart"),c=D?a:qt2(r,o,t8,(p=>Vn2(t8,p)),[],"rangeEnd");if(!a||!c)return{rangeStart:0,rangeEnd:0};if(bo2(t8)){let p=function wo2(e,t8){let r=[e.node,...e.parentNodes],n=new Set([t8.node,...t8.parentNodes]);return r.find((o=>$n2.has(o.type)&&n.has(o)))}(a,c);d=p,f2=p}else({startNode:d,endNode:f2}=function Oo(e,t8,{locStart:r,locEnd:n}){let o=e.node,u=t8.node;if(o===u)return{startNode:o,endNode:u};let i=r(e.node);for(let D of jn2(t8.parentNodes)){if(!(r(D)>=i))break;u=D}let s=n(t8.node);for(let D of jn2(e.parentNodes)){if(!(n(D)<=s))break;if(o=D,o===u)break}return{startNode:o,endNode:u}}(a,c,t8));return{rangeStart:Math.min(u(d),u(f2)),rangeEnd:Math.max(i(d),i(f2))}}var Wn2=function So2(e,t8){let{cursorOffset:r,locStart:n,locEnd:o}=t8,u=H2(t8.printer.getVisitorKeys),i=D=>n(D)<=r&&o(D)>=r,s=e;for(let D of function*bn2(e,t8){let r=[e];for(let n=0;n=0&&(t8.cursorNode=Wn2(n,t8));let u=await je2(n,t8);r>0&&(u=qe2([G2,u],r,t8.tabWidth));let i=fe2(u,t8);if(r>0){let D=i.formatted.trim();void 0!==i.cursorNodeStart&&(i.cursorNodeStart-=i.formatted.indexOf(D)),i.formatted=D+be2(t8.endOfLine)}let s=t8[Symbol.for("comments")];if(t8.cursorOffset>=0){let D,a,c,d,f2;if(t8.cursorNode&&i.cursorNodeText?(D=t8.locStart(t8.cursorNode),a=o.slice(D,t8.locEnd(t8.cursorNode)),c=t8.cursorOffset-D,d=i.cursorNodeStart,f2=i.cursorNodeText):(D=0,a=o,c=t8.cursorOffset,d=0,f2=i.formatted),a===f2)return{formatted:i.formatted,cursorOffset:d+c,comments:s};let p=a.split("");p.splice(c,0,Un2);let l=f2.split(""),F2=(0,Kn2.diffArrays)(p,l),m=d;for(let E2 of F2)if(E2.removed){if(E2.value.includes(Un2))break}else m+=E2.count;return{formatted:i.formatted,cursorOffset:m,comments:s}}return{formatted:i.formatted,cursorOffset:-1,comments:s}}function Jt2(e,t8,r){return"number"!=typeof t8||Number.isNaN(t8)||t8<0||t8>e.length?r:t8}function zn2(e,t8){let{cursorOffset:r,rangeStart:n,rangeEnd:o}=t8;return r=Jt2(e,r,-1),n=Jt2(e,n,0),o=Jt2(e,o,e.length),{...t8,cursorOffset:r,rangeStart:n,rangeEnd:o}}function Jn2(e,t8){let{cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:u}=zn2(e,t8),i=e.charAt(0)===Hn2;if(i&&(e=e.slice(1),r--,n--,o--),"auto"===u&&(u=function hr2(e){let t8=e.indexOf("\r");return t8>=0?"\n"===e.charAt(t8+1)?"crlf":"cr":"lf"}(e)),e.includes("\r")){let s=D=>_t2(e.slice(0,Math.max(D,0)),"\r\n");r-=s(r),n-=s(n),o-=s(o),e=function gr2(e){return ee2(!1,e,/\r\n?/g,"\n")}(e)}return{hasBOM:i,text:e,options:zn2(e,{...t8,cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:u})}}async function Gn2(e,t8){let r=await ft2(t8);return!r.hasPragma||r.hasPragma(e)}async function Xt2(e,t8){let u,{hasBOM:r,text:n,options:o}=Jn2(e,await re2(t8));return o.rangeStart>=o.rangeEnd&&""!==n||o.requirePragma&&!await Gn2(n,o)?{formatted:e,cursorOffset:t8.cursorOffset,comments:[]}:(o.rangeStart>0||o.rangeEndo&&t8.cursorOffset<=u?t8.cursorOffset-o:-1,endOfLine:"lf"},a),d=c.formatted.trimEnd(),{cursorOffset:f2}=t8;f2>u?f2+=d.length-i.length:c.cursorOffset>=0&&(f2=c.cursorOffset+o);let p=n.slice(0,o)+d+n.slice(u);if("lf"!==t8.endOfLine){let l=be2(t8.endOfLine);f2>=0&&"\r\n"===l&&(f2+=_t2(p.slice(0,f2),"\n")),p=ee2(!1,p,"\n",l)}return{formatted:p,cursorOffset:f2,comments:c.comments}}(n,o):(!o.requirePragma&&o.insertPragma&&o.printer.insertPragma&&!await Gn2(n,o)&&(n=o.printer.insertPragma(n)),u=await qn2(n,o)),r&&(u.formatted=Hn2+u.formatted,u.cursorOffset>=0&&u.cursorOffset++),u)}var Qt2={};We(Qt2,{addDanglingComment:()=>X2,addLeadingComment:()=>ne2,addTrailingComment:()=>ue2,getAlignmentSize:()=>Fe2,getIndentSize:()=>nu,getMaxContinuousCount:()=>ru,getNextNonSpaceNonCommentCharacter:()=>iu,getNextNonSpaceNonCommentCharacterIndex:()=>Go,getStringWidth:()=>we2,hasNewline:()=>V2,hasNewlineInRange:()=>uu,hasSpaces:()=>ou,isNextLineEmpty:()=>Jo,isNextLineEmptyAfterIndex:()=>Ct2,isPreviousLineEmpty:()=>Ho,makeString:()=>su,skip:()=>me2,skipEverythingButNewLine:()=>mt2,skipInlineComment:()=>Ee2,skipNewline:()=>Y2,skipSpaces:()=>N2,skipToLineEnd:()=>dt2,skipTrailingComment:()=>Ce2,skipWhitespace:()=>xn2});var Ee2=function Lo(e,t8){if(!1===t8)return!1;if("/"===e.charAt(t8)&&"*"===e.charAt(t8+1))for(let r=t8+2;rMath.max(n,o.length/t8.length)),0)};var nu=function Vo(e,t8){let r=e.lastIndexOf("\n");return-1===r?0:Fe2(e.slice(r+1).match(/^[\t ]*/)[0],t8)};var uu=function $o(e,t8,r){for(let n=t8;ns===n?s:D===t8?"\\"+D:D||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(s)?s:"\\"+s)));return t8+u+t8};function Go(e,t8){return 2===arguments.length||"number"==typeof t8?Ve2(e,t8):function zo(e,t8,r){return Ve2(e,r(t8))}(...arguments)}function Ho(e,t8){return 2===arguments.length||"number"==typeof t8?Ye2(e,t8):function Ko(e,t8,r){return Ye2(e,r(t8))}(...arguments)}function Jo(e,t8){return 2===arguments.length||"number"==typeof t8?Ct2(e,t8):function qo(e,t8,r){return Ct2(e,r(t8))}(...arguments)}var er2={};We(er2,{builders:()=>Xo,printer:()=>Zo,utils:()=>Qo});var Xo={join:ke2,line:Ke2,softline:Er2,hardline:G2,literalline:He2,group:At2,conditionalGroup:function fr2(e,t8){return At2(e[0],{...t8,expandedStates:e})},fill:Ge2,lineSuffix:Be2,lineSuffixBoundary:dr2,cursor:xe2,breakParent:le2,ifBreak:function Fr2(e,t8="",r={}){return{type:x2,breakContents:e,flatContents:t8,groupId:r.groupId}},trim:mr2,indent:ie2,indentIfBreak:function pr2(e,t8){return{type:P,contents:e,groupId:t8.groupId,negate:t8.negate}},align:oe2,addAlignmentToDoc:qe2,markAsRoot:function cr2(e){return oe2({type:"root"},e)},dedentToRoot:function ar2(e){return oe2(Number.NEGATIVE_INFINITY,e)},dedent:function lr2(e){return oe2(-1,e)},hardlineWithoutBreakParent:_e2,literallineWithoutBreakParent:Bt2,label:function Cr2(e,t8){return e?{type:O2,label:e,contents:t8}:t8},concat:e=>e},Zo={printDocToString:fe2},Qo={willBreak:function wr2(e){return Je2(e,Su,!1)},traverseDoc:Ae2,findInDoc:Je2,mapDoc:Ne2,removeLines:function Nr2(e){return Ne2(e,vu)},stripTrailingHardline:Xe2,replaceEndOfLine:function Tr2(e,t8=He2){return Ne2(e,(r=>"string"==typeof r?ke2(t8,r.split("\n")):r))},canBreak:function Sr2(e){return Je2(e,Iu,!1)}},Du="3.1.1";function ae(e,t8=1){return async(...r)=>{let n=r[t8]??{},o=n.plugins??[];return r[t8]={...n,plugins:Array.isArray(o)?o:Object.values(o)},e(...r)}}var au=ae(Xt2);async function cu(e,t8){let{formatted:r}=await au(e,{...t8,cursorOffset:-1});return r}async function ei2(e,t8){return await cu(e,t8)===e}var ti2=ae(et2,0),ri2={parse:ae((async function Xn2(e,t8,r){let{text:n,options:o}=Jn2(e,await re2(t8)),u=await De2(n,o);return r&&(r.preprocessForPrint&&(u.ast=await Ht2(u.ast,o)),r.massage&&(u.ast=fn2(u.ast,o))),u})),formatAST:ae((async function Zn2(e,t8){return t8=await re2(t8),fe2(await je2(e,t8),t8)})),formatDoc:ae((async function Qn2(e,t8){let r=function Pr2(e){let t8=Object.create(null),r=new Set;return function n(u,i,s){var D,a;if("string"==typeof u)return JSON.stringify(u);if(Array.isArray(u)){let c=u.map(n).filter(Boolean);return 1===c.length?c[0]:`[${c.join(", ")}]`}if(u.type===A2){let c=(null==(D=s?.[i+1])?void 0:D.type)===b2;return u.literal?c?"literalline":"literallineWithoutBreakParent":u.hard?c?"hardline":"hardlineWithoutBreakParent":u.soft?"softline":"line"}if(u.type===b2)return(null==(a=s?.[i-1])?void 0:a.type)===A2&&s[i-1].hard?void 0:"breakParent";if(u.type===v2)return"trim";if(u.type===T2)return"indent("+n(u.contents)+")";if(u.type===S2)return u.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(u.contents)+")":u.n<0?"dedent("+n(u.contents)+")":"root"===u.n.type?"markAsRoot("+n(u.contents)+")":"align("+JSON.stringify(u.n)+", "+n(u.contents)+")";if(u.type===x2)return"ifBreak("+n(u.breakContents)+(u.flatContents?", "+n(u.flatContents):"")+(u.groupId?(u.flatContents?"":', ""')+`, { groupId: ${o(u.groupId)} }`:"")+")";if(u.type===P){let c=[];u.negate&&c.push("negate: true"),u.groupId&&c.push(`groupId: ${o(u.groupId)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(u.contents)}${d})`}if(u.type===_){let c=[];u.break&&"propagated"!==u.break&&c.push("shouldBreak: true"),u.id&&c.push(`id: ${o(u.id)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return u.expandedStates?`conditionalGroup([${u.expandedStates.map((f2=>n(f2))).join(",")}]${d})`:`group(${n(u.contents)}${d})`}if(u.type===k2)return`fill([${u.parts.map((c=>n(c))).join(", ")}])`;if(u.type===L2)return"lineSuffix("+n(u.contents)+")";if(u.type===I2)return"lineSuffixBoundary";if(u.type===O2)return`label(${JSON.stringify(u.label)}, ${n(u.contents)})`;throw new Error("Unknown doc type "+u.type)}(J2(e));function o(u){if("symbol"!=typeof u)return JSON.stringify(String(u));if(u in t8)return t8[u];let i=u.description||"symbol";for(let s=0;;s++){let D=i+(s>0?` #${s}`:"");if(!r.has(D))return r.add(D),t8[u]=`Symbol.for(${JSON.stringify(D)})`}}}(e),{formatted:n}=await Xt2(r,{...t8,parser:"__js_expression"});return n})),printToDoc:ae((async function eu(e,t8){t8=await re2(t8);let{ast:r}=await De2(e,t8);return je2(r,t8)})),printDocToString:ae((async function tu(e,t8){return fe2(e,await re2(t8))}))},qc=tr2;var formatter=memoizerific__WEBPACK_IMPORTED_MODULE_0___default()(2)((async(type,source)=>!1===type?source:"dedent"===type||!0===type?function dedent(templ){for(var values=[],_i2=1;_i2{__webpack_require__.d(__webpack_exports__,{JAe:()=>faTriangleExclamation,XkK:()=>faChevronRight,mEO:()=>faCircleInfo});const faCircleInfo={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},faChevronRight={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},faTriangleExclamation={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]}},"./node_modules/@fortawesome/react-fontawesome/index.es.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{g:()=>FontAwesomeIcon});var console=__webpack_require__("./node_modules/console-browserify/index.js");const noop=()=>{};let _WINDOW={},_DOCUMENT={},_MUTATION_OBSERVER=null,_PERFORMANCE={mark:noop,measure:noop};try{"undefined"!=typeof window&&(_WINDOW=window),"undefined"!=typeof document&&(_DOCUMENT=document),"undefined"!=typeof MutationObserver&&(_MUTATION_OBSERVER=MutationObserver),"undefined"!=typeof performance&&(_PERFORMANCE=performance)}catch(e){}const{userAgent=""}=_WINDOW.navigator||{},WINDOW=_WINDOW,DOCUMENT=_DOCUMENT,MUTATION_OBSERVER=_MUTATION_OBSERVER,PERFORMANCE=_PERFORMANCE,IS_DOM=(WINDOW.document,!!DOCUMENT.documentElement&&!!DOCUMENT.head&&"function"==typeof DOCUMENT.addEventListener&&"function"==typeof DOCUMENT.createElement),IS_IE=~userAgent.indexOf("MSIE")||~userAgent.indexOf("Trident/");var a="classic",t="duotone",r="sharp",o="sharp-duotone",c=[a,t,r,o],bt_kit={fak:"kit","fa-kit":"kit"},bt_kit_duotone={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},ho={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},u$1=[1,2,3,4,5,6,7,8,9,10],m$1=u$1.concat([11,12,13,14,15,16,17,18,19,20]),t$1={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},yo=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",t$1.GROUP,t$1.SWAP_OPACITY,t$1.PRIMARY,t$1.SECONDARY].concat(u$1.map((o=>"".concat(o,"x")))).concat(m$1.map((o=>"w-".concat(o)))),So_kit={kit:"fak"},So_kit_duotone={"kit-duotone":"fakd"};const UNITS_IN_GRID=16,DEFAULT_CSS_PREFIX="fa",DEFAULT_REPLACEMENT_CLASS="svg-inline--fa",DATA_FA_I2SVG="data-fa-i2svg",DATA_FA_PSEUDO_ELEMENT="data-fa-pseudo-element",DATA_FA_PSEUDO_ELEMENT_PENDING="data-fa-pseudo-element-pending",DATA_PREFIX="data-prefix",DATA_ICON="data-icon",MUTATION_APPROACH_ASYNC="async",TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS=["HTML","HEAD","STYLE","SCRIPT"],PRODUCTION=(()=>{try{return!0}catch(e$$1){return!1}})(),FAMILIES=[a,r,o];function familyProxy(obj){return new Proxy(obj,{get:(target,prop)=>prop in target?target[prop]:target[a]})}const _PREFIX_TO_STYLE={...ho};_PREFIX_TO_STYLE[a]={...ho[a],...bt_kit,...bt_kit_duotone};const PREFIX_TO_STYLE=familyProxy(_PREFIX_TO_STYLE),_STYLE_TO_PREFIX={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};_STYLE_TO_PREFIX[a]={..._STYLE_TO_PREFIX[a],...So_kit,...So_kit_duotone};const STYLE_TO_PREFIX=familyProxy(_STYLE_TO_PREFIX),_PREFIX_TO_LONG_STYLE={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};_PREFIX_TO_LONG_STYLE[a]={..._PREFIX_TO_LONG_STYLE[a],fak:"fa-kit"};const PREFIX_TO_LONG_STYLE=familyProxy(_PREFIX_TO_LONG_STYLE),_LONG_STYLE_TO_PREFIX={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};_LONG_STYLE_TO_PREFIX[a]={..._LONG_STYLE_TO_PREFIX[a],"fa-kit":"fak"};const LONG_STYLE_TO_PREFIX=familyProxy(_LONG_STYLE_TO_PREFIX),ICON_SELECTION_SYNTAX_PATTERN=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,LAYERS_TEXT_CLASSNAME="fa-layers-text",FONT_FAMILY_PATTERN=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,ATTRIBUTES_WATCHED_FOR_MUTATION=(familyProxy({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}}),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),DUOTONE_CLASSES=t$1,prefixes=new Set;Object.keys(STYLE_TO_PREFIX[a]).map(prefixes.add.bind(prefixes)),Object.keys(STYLE_TO_PREFIX[r]).map(prefixes.add.bind(prefixes)),Object.keys(STYLE_TO_PREFIX[o]).map(prefixes.add.bind(prefixes));const RESERVED_CLASSES=["kit",...yo],initial=WINDOW.FontAwesomeConfig||{};if(DOCUMENT&&"function"==typeof DOCUMENT.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((_ref=>{let[attr,key]=_ref;const val=function coerce(val){return""===val||"false"!==val&&("true"===val||val)}(function getAttrConfig(attr){var element=DOCUMENT.querySelector("script["+attr+"]");if(element)return element.getAttribute(attr)}(attr));null!=val&&(initial[key]=val)}))}const _default={styleDefault:"solid",familyDefault:"classic",cssPrefix:DEFAULT_CSS_PREFIX,replacementClass:DEFAULT_REPLACEMENT_CLASS,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};initial.familyPrefix&&(initial.cssPrefix=initial.familyPrefix);const _config={..._default,...initial};_config.autoReplaceSvg||(_config.observeMutations=!1);const config={};Object.keys(_default).forEach((key=>{Object.defineProperty(config,key,{enumerable:!0,set:function(val){_config[key]=val,_onChangeCb.forEach((cb=>cb(config)))},get:function(){return _config[key]}})})),Object.defineProperty(config,"familyPrefix",{enumerable:!0,set:function(val){_config.cssPrefix=val,_onChangeCb.forEach((cb=>cb(config)))},get:function(){return _config.cssPrefix}}),WINDOW.FontAwesomeConfig=config;const _onChangeCb=[];const d$2=UNITS_IN_GRID,meaninglessTransform={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};const idPool="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function nextUniqueId(){let size=12,id="";for(;size-- >0;)id+=idPool[62*Math.random()|0];return id}function toArray(obj){const array=[];for(let i=(obj||[]).length>>>0;i--;)array[i]=obj[i];return array}function classArray(node){return node.classList?toArray(node.classList):(node.getAttribute("class")||"").split(" ").filter((i=>i))}function htmlEscape(str){return"".concat(str).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function joinStyles(styles){return Object.keys(styles||{}).reduce(((acc,styleName)=>acc+"".concat(styleName,": ").concat(styles[styleName].trim(),";")),"")}function transformIsMeaningful(transform){return transform.size!==meaninglessTransform.size||transform.x!==meaninglessTransform.x||transform.y!==meaninglessTransform.y||transform.rotate!==meaninglessTransform.rotate||transform.flipX||transform.flipY}var baseStyles=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function css(){const dcp=DEFAULT_CSS_PREFIX,drc=DEFAULT_REPLACEMENT_CLASS,fp=config.cssPrefix,rc=config.replacementClass;let s=baseStyles;if(fp!==dcp||rc!==drc){const dPatt=new RegExp("\\.".concat(dcp,"\\-"),"g"),customPropPatt=new RegExp("\\--".concat(dcp,"\\-"),"g"),rPatt=new RegExp("\\.".concat(drc),"g");s=s.replace(dPatt,".".concat(fp,"-")).replace(customPropPatt,"--".concat(fp,"-")).replace(rPatt,".".concat(rc))}return s}let _cssInserted=!1;function ensureCss(){config.autoAddCss&&!_cssInserted&&(!function insertCss(css){if(!css||!IS_DOM)return;const style=DOCUMENT.createElement("style");style.setAttribute("type","text/css"),style.innerHTML=css;const headChildren=DOCUMENT.head.childNodes;let beforeChild=null;for(let i=headChildren.length-1;i>-1;i--){const child=headChildren[i],tagName=(child.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(tagName)>-1&&(beforeChild=child)}return DOCUMENT.head.insertBefore(style,beforeChild),css}(css()),_cssInserted=!0)}var InjectCSS={mixout:()=>({dom:{css,insertCss:ensureCss}}),hooks:()=>({beforeDOMElementCreation(){ensureCss()},beforeI2svg(){ensureCss()}})};const w$1=WINDOW||{};w$1.___FONT_AWESOME___||(w$1.___FONT_AWESOME___={}),w$1.___FONT_AWESOME___.styles||(w$1.___FONT_AWESOME___.styles={}),w$1.___FONT_AWESOME___.hooks||(w$1.___FONT_AWESOME___.hooks={}),w$1.___FONT_AWESOME___.shims||(w$1.___FONT_AWESOME___.shims=[]);var namespace=w$1.___FONT_AWESOME___;const functions=[],listener=function(){DOCUMENT.removeEventListener("DOMContentLoaded",listener),loaded=1,functions.map((fn=>fn()))};let loaded=!1;function toHtml(abstractNodes){const{tag,attributes={},children=[]}=abstractNodes;return"string"==typeof abstractNodes?htmlEscape(abstractNodes):"<".concat(tag," ").concat(function joinAttributes(attributes){return Object.keys(attributes||{}).reduce(((acc,attributeName)=>acc+"".concat(attributeName,'="').concat(htmlEscape(attributes[attributeName]),'" ')),"").trim()}(attributes),">").concat(children.map(toHtml).join(""),"")}function iconFromMapping(mapping,prefix,iconName){if(mapping&&mapping[prefix]&&mapping[prefix][iconName])return{prefix,iconName,icon:mapping[prefix][iconName]}}IS_DOM&&(loaded=(DOCUMENT.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(DOCUMENT.readyState),loaded||DOCUMENT.addEventListener("DOMContentLoaded",listener));var reduce=function fastReduceObject(subject,fn,initialValue,thisContext){var i,key,result,keys=Object.keys(subject),length=keys.length,iterator=void 0!==thisContext?function bindInternal4(func,thisContext){return function(a,b,c,d){return func.call(thisContext,a,b,c,d)}}(fn,thisContext):fn;for(void 0===initialValue?(i=1,result=subject[keys[0]]):(i=0,result=initialValue);i=55296&&value<=56319&&counter{const icon=icons[iconName];return!!icon.icon?acc[icon.iconName]=icon.icon:acc[iconName]=icon,acc}),{})}function defineIcons(prefix,icons){let params=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks=!1}=params,normalized=normalizeIcons(icons);"function"!=typeof namespace.hooks.addPack||skipHooks?namespace.styles[prefix]={...namespace.styles[prefix]||{},...normalized}:namespace.hooks.addPack(prefix,normalizeIcons(icons)),"fas"===prefix&&defineIcons("fa",icons)}const{styles,shims}=namespace,LONG_STYLE={[a]:Object.values(PREFIX_TO_LONG_STYLE[a]),[r]:Object.values(PREFIX_TO_LONG_STYLE[r]),[o]:Object.values(PREFIX_TO_LONG_STYLE[o])};let _defaultUsablePrefix=null,_byUnicode={},_byLigature={},_byOldName={},_byOldUnicode={},_byAlias={};const PREFIXES={[a]:Object.keys(PREFIX_TO_STYLE[a]),[r]:Object.keys(PREFIX_TO_STYLE[r]),[o]:Object.keys(PREFIX_TO_STYLE[o])};function getIconName(cssPrefix,cls){const parts=cls.split("-"),prefix=parts[0],iconName=parts.slice(1).join("-");return prefix!==cssPrefix||""===iconName||function isReserved(name){return~RESERVED_CLASSES.indexOf(name)}(iconName)?null:iconName}const build=()=>{const lookup=reducer=>reduce(styles,((o$$1,style,prefix)=>(o$$1[prefix]=reduce(style,reducer,{}),o$$1)),{});_byUnicode=lookup(((acc,icon,iconName)=>{if(icon[3]&&(acc[icon[3]]=iconName),icon[2]){icon[2].filter((a$$1=>"number"==typeof a$$1)).forEach((alias=>{acc[alias.toString(16)]=iconName}))}return acc})),_byLigature=lookup(((acc,icon,iconName)=>{if(acc[iconName]=iconName,icon[2]){icon[2].filter((a$$1=>"string"==typeof a$$1)).forEach((alias=>{acc[alias]=iconName}))}return acc})),_byAlias=lookup(((acc,icon,iconName)=>{const aliases=icon[2];return acc[iconName]=iconName,aliases.forEach((alias=>{acc[alias]=iconName})),acc}));const hasRegular="far"in styles||config.autoFetchSvg,shimLookups=reduce(shims,((acc,shim)=>{const maybeNameMaybeUnicode=shim[0];let prefix=shim[1];const iconName=shim[2];return"far"!==prefix||hasRegular||(prefix="fas"),"string"==typeof maybeNameMaybeUnicode&&(acc.names[maybeNameMaybeUnicode]={prefix,iconName}),"number"==typeof maybeNameMaybeUnicode&&(acc.unicodes[maybeNameMaybeUnicode.toString(16)]={prefix,iconName}),acc}),{names:{},unicodes:{}});_byOldName=shimLookups.names,_byOldUnicode=shimLookups.unicodes,_defaultUsablePrefix=getCanonicalPrefix(config.styleDefault,{family:config.familyDefault})};function byUnicode(prefix,unicode){return(_byUnicode[prefix]||{})[unicode]}function byAlias(prefix,alias){return(_byAlias[prefix]||{})[alias]}function byOldName(name){return _byOldName[name]||{prefix:null,iconName:null}}function getDefaultUsablePrefix(){return _defaultUsablePrefix}!function onChange(cb){return _onChangeCb.push(cb),()=>{_onChangeCb.splice(_onChangeCb.indexOf(cb),1)}}((c$$1=>{_defaultUsablePrefix=getCanonicalPrefix(c$$1.styleDefault,{family:config.familyDefault})})),build();const emptyCanonicalIcon=()=>({prefix:null,iconName:null,rest:[]});function getCanonicalPrefix(styleOrPrefix){let params=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family=a}=params,style=PREFIX_TO_STYLE[family][styleOrPrefix],prefix=STYLE_TO_PREFIX[family][styleOrPrefix]||STYLE_TO_PREFIX[family][style],defined=styleOrPrefix in namespace.styles?styleOrPrefix:null;return prefix||defined||null}const PREFIXES_FOR_FAMILY={[a]:Object.keys(PREFIX_TO_LONG_STYLE[a]),[r]:Object.keys(PREFIX_TO_LONG_STYLE[r]),[o]:Object.keys(PREFIX_TO_LONG_STYLE[o])};function getCanonicalIcon(values){let params=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups=!1}=params,famProps={[a]:"".concat(config.cssPrefix,"-").concat(a),[r]:"".concat(config.cssPrefix,"-").concat(r),[o]:"".concat(config.cssPrefix,"-").concat(o)};let givenPrefix=null,family=a;const nonDuotoneFamilyIds=c.filter((familyId=>familyId!==t));nonDuotoneFamilyIds.forEach((familyId=>{(values.includes(famProps[familyId])||values.some((v$$1=>PREFIXES_FOR_FAMILY[familyId].includes(v$$1))))&&(family=familyId)}));const canonical=values.reduce(((acc,cls)=>{const iconName=getIconName(config.cssPrefix,cls);if(styles[cls]?(cls=LONG_STYLE[family].includes(cls)?LONG_STYLE_TO_PREFIX[family][cls]:cls,givenPrefix=cls,acc.prefix=cls):PREFIXES[family].indexOf(cls)>-1?(givenPrefix=cls,acc.prefix=getCanonicalPrefix(cls,{family})):iconName?acc.iconName=iconName:cls===config.replacementClass||nonDuotoneFamilyIds.some((familyName=>cls===famProps[familyName]))||acc.rest.push(cls),!skipLookups&&acc.prefix&&acc.iconName){const shim="fa"===givenPrefix?byOldName(acc.iconName):{},aliasIconName=byAlias(acc.prefix,acc.iconName);shim.prefix&&(givenPrefix=null),acc.iconName=shim.iconName||aliasIconName||acc.iconName,acc.prefix=shim.prefix||acc.prefix,"far"!==acc.prefix||styles.far||!styles.fas||config.autoFetchSvg||(acc.prefix="fas")}return acc}),emptyCanonicalIcon());return(values.includes("fa-brands")||values.includes("fab"))&&(canonical.prefix="fab"),(values.includes("fa-duotone")||values.includes("fad"))&&(canonical.prefix="fad"),canonical.prefix||family!==r||!styles.fass&&!config.autoFetchSvg||(canonical.prefix="fass",canonical.iconName=byAlias(canonical.prefix,canonical.iconName)||canonical.iconName),canonical.prefix||family!==o||!styles.fasds&&!config.autoFetchSvg||(canonical.prefix="fasds",canonical.iconName=byAlias(canonical.prefix,canonical.iconName)||canonical.iconName),"fa"!==canonical.prefix&&"fa"!==givenPrefix||(canonical.prefix=getDefaultUsablePrefix()||"fas"),canonical}let _plugins=[],_hooks={};const providers={},defaultProviderKeys=Object.keys(providers);function chainHooks(hook,accumulator){for(var _len=arguments.length,args=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)args[_key-2]=arguments[_key];return(_hooks[hook]||[]).forEach((hookFn=>{accumulator=hookFn.apply(null,[accumulator,...args])})),accumulator}function callHooks(hook){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];(_hooks[hook]||[]).forEach((hookFn=>{hookFn.apply(null,args)}))}function callProvided(){const hook=arguments[0],args=Array.prototype.slice.call(arguments,1);return providers[hook]?providers[hook].apply(null,args):void 0}function findIconDefinition(iconLookup){"fa"===iconLookup.prefix&&(iconLookup.prefix="fas");let{iconName}=iconLookup;const prefix=iconLookup.prefix||getDefaultUsablePrefix();if(iconName)return iconName=byAlias(prefix,iconName)||iconName,iconFromMapping(library.definitions,prefix,iconName)||iconFromMapping(namespace.styles,prefix,iconName)}const library=new class Library{constructor(){this.definitions={}}add(){for(var _len=arguments.length,definitions=new Array(_len),_key=0;_key<_len;_key++)definitions[_key]=arguments[_key];const additions=definitions.reduce(this._pullDefinitions,{});Object.keys(additions).forEach((key=>{this.definitions[key]={...this.definitions[key]||{},...additions[key]},defineIcons(key,additions[key]);const longPrefix=PREFIX_TO_LONG_STYLE[a][key];longPrefix&&defineIcons(longPrefix,additions[key]),build()}))}reset(){this.definitions={}}_pullDefinitions(additions,definition){const normalized=definition.prefix&&definition.iconName&&definition.icon?{0:definition}:definition;return Object.keys(normalized).map((key=>{const{prefix,iconName,icon}=normalized[key],aliases=icon[2];additions[prefix]||(additions[prefix]={}),aliases.length>0&&aliases.forEach((alias=>{"string"==typeof alias&&(additions[prefix][alias]=icon)})),additions[prefix][iconName]=icon})),additions}},dom={i2svg:function(){let params=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return IS_DOM?(callHooks("beforeI2svg",params),callProvided("pseudoElements2svg",params),callProvided("i2svg",params)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let params=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot}=params;!1===config.autoReplaceSvg&&(config.autoReplaceSvg=!0),config.observeMutations=!0,function domready(fn){IS_DOM&&(loaded?setTimeout(fn,0):functions.push(fn))}((()=>{autoReplace({autoReplaceSvgRoot}),callHooks("watch",params)}))}},parse={icon:icon=>{if(null===icon)return null;if("object"==typeof icon&&icon.prefix&&icon.iconName)return{prefix:icon.prefix,iconName:byAlias(icon.prefix,icon.iconName)||icon.iconName};if(Array.isArray(icon)&&2===icon.length){const iconName=0===icon[1].indexOf("fa-")?icon[1].slice(3):icon[1],prefix=getCanonicalPrefix(icon[0]);return{prefix,iconName:byAlias(prefix,iconName)||iconName}}if("string"==typeof icon&&(icon.indexOf("".concat(config.cssPrefix,"-"))>-1||icon.match(ICON_SELECTION_SYNTAX_PATTERN))){const canonicalIcon=getCanonicalIcon(icon.split(" "),{skipLookups:!0});return{prefix:canonicalIcon.prefix||getDefaultUsablePrefix(),iconName:byAlias(canonicalIcon.prefix,canonicalIcon.iconName)||canonicalIcon.iconName}}if("string"==typeof icon){const prefix=getDefaultUsablePrefix();return{prefix,iconName:byAlias(prefix,icon)||icon}}}},api={noAuto:()=>{config.autoReplaceSvg=!1,config.observeMutations=!1,callHooks("noAuto")},config,dom,parse,library,findIconDefinition,toHtml},autoReplace=function(){let params=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot=DOCUMENT}=params;(Object.keys(namespace.styles).length>0||config.autoFetchSvg)&&IS_DOM&&config.autoReplaceSvg&&api.dom.i2svg({node:autoReplaceSvgRoot})};function domVariants(val,abstractCreator){return Object.defineProperty(val,"abstract",{get:abstractCreator}),Object.defineProperty(val,"html",{get:function(){return val.abstract.map((a=>toHtml(a)))}}),Object.defineProperty(val,"node",{get:function(){if(!IS_DOM)return;const container=DOCUMENT.createElement("div");return container.innerHTML=val.html,container.children}}),val}function makeInlineSvgAbstract(params){const{icons:{main,mask},prefix,iconName,transform,symbol,title,maskId,titleId,extra,watchable=!1}=params,{width,height}=mask.found?mask:main,isUploadedIcon="fak"===prefix,attrClass=[config.replacementClass,iconName?"".concat(config.cssPrefix,"-").concat(iconName):""].filter((c=>-1===extra.classes.indexOf(c))).filter((c=>""!==c||!!c)).concat(extra.classes).join(" ");let content={children:[],attributes:{...extra.attributes,"data-prefix":prefix,"data-icon":iconName,class:attrClass,role:extra.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(width," ").concat(height)}};const uploadedIconWidthStyle=isUploadedIcon&&!~extra.classes.indexOf("fa-fw")?{width:"".concat(width/height*16*.0625,"em")}:{};watchable&&(content.attributes[DATA_FA_I2SVG]=""),title&&(content.children.push({tag:"title",attributes:{id:content.attributes["aria-labelledby"]||"title-".concat(titleId||nextUniqueId())},children:[title]}),delete content.attributes.title);const args={...content,prefix,iconName,main,mask,maskId,transform,symbol,styles:{...uploadedIconWidthStyle,...extra.styles}},{children,attributes}=mask.found&&main.found?callProvided("generateAbstractMask",args)||{children:[],attributes:{}}:callProvided("generateAbstractIcon",args)||{children:[],attributes:{}};return args.children=children,args.attributes=attributes,symbol?function asSymbol(_ref){let{prefix,iconName,children,attributes,symbol}=_ref;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...attributes,id:!0===symbol?"".concat(prefix,"-").concat(config.cssPrefix,"-").concat(iconName):symbol},children}]}]}(args):function asIcon(_ref){let{children,main,mask,attributes,styles,transform}=_ref;if(transformIsMeaningful(transform)&&main.found&&!mask.found){const{width,height}=main,offset={x:width/height/2,y:.5};attributes.style=joinStyles({...styles,"transform-origin":"".concat(offset.x+transform.x/16,"em ").concat(offset.y+transform.y/16,"em")})}return[{tag:"svg",attributes,children}]}(args)}function makeLayersTextAbstract(params){const{content,width,height,transform,title,extra,watchable=!1}=params,attributes={...extra.attributes,...title?{title}:{},class:extra.classes.join(" ")};watchable&&(attributes[DATA_FA_I2SVG]="");const styles={...extra.styles};transformIsMeaningful(transform)&&(styles.transform=function transformForCss(_ref2){let{transform,width=UNITS_IN_GRID,height=UNITS_IN_GRID,startCentered=!1}=_ref2,val="";return val+=startCentered&&IS_IE?"translate(".concat(transform.x/d$2-width/2,"em, ").concat(transform.y/d$2-height/2,"em) "):startCentered?"translate(calc(-50% + ".concat(transform.x/d$2,"em), calc(-50% + ").concat(transform.y/d$2,"em)) "):"translate(".concat(transform.x/d$2,"em, ").concat(transform.y/d$2,"em) "),val+="scale(".concat(transform.size/d$2*(transform.flipX?-1:1),", ").concat(transform.size/d$2*(transform.flipY?-1:1),") "),val+="rotate(".concat(transform.rotate,"deg) "),val}({transform,startCentered:!0,width,height}),styles["-webkit-transform"]=styles.transform);const styleString=joinStyles(styles);styleString.length>0&&(attributes.style=styleString);const val=[];return val.push({tag:"span",attributes,children:[content]}),title&&val.push({tag:"span",attributes:{class:"sr-only"},children:[title]}),val}const{styles:styles$1}=namespace;function asFoundIcon(icon){const width=icon[0],height=icon[1],[vectorData]=icon.slice(4);let element=null;return element=Array.isArray(vectorData)?{tag:"g",attributes:{class:"".concat(config.cssPrefix,"-").concat(DUOTONE_CLASSES.GROUP)},children:[{tag:"path",attributes:{class:"".concat(config.cssPrefix,"-").concat(DUOTONE_CLASSES.SECONDARY),fill:"currentColor",d:vectorData[0]}},{tag:"path",attributes:{class:"".concat(config.cssPrefix,"-").concat(DUOTONE_CLASSES.PRIMARY),fill:"currentColor",d:vectorData[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:vectorData}},{found:!0,width,height,icon:element}}const missingIconResolutionMixin={found:!1,width:512,height:512};function findIcon(iconName,prefix){let givenPrefix=prefix;return"fa"===prefix&&null!==config.styleDefault&&(prefix=getDefaultUsablePrefix()),new Promise(((resolve,reject)=>{if("fa"===givenPrefix){const shim=byOldName(iconName)||{};iconName=shim.iconName||iconName,prefix=shim.prefix||prefix}if(iconName&&prefix&&styles$1[prefix]&&styles$1[prefix][iconName]){return resolve(asFoundIcon(styles$1[prefix][iconName]))}!function maybeNotifyMissing(iconName,prefix){PRODUCTION||config.showMissingIcons||!iconName||console.error('Icon with name "'.concat(iconName,'" and prefix "').concat(prefix,'" is missing.'))}(iconName,prefix),resolve({...missingIconResolutionMixin,icon:config.showMissingIcons&&iconName&&callProvided("missingIconAbstract")||{}})}))}const noop$1=()=>{},p$2=config.measurePerformance&&PERFORMANCE&&PERFORMANCE.mark&&PERFORMANCE.measure?PERFORMANCE:{mark:noop$1,measure:noop$1},end=name=>{p$2.mark("".concat('FA "6.6.0"'," ").concat(name," ends")),p$2.measure("".concat('FA "6.6.0"'," ").concat(name),"".concat('FA "6.6.0"'," ").concat(name," begins"),"".concat('FA "6.6.0"'," ").concat(name," ends"))};var perf={begin:name=>(p$2.mark("".concat('FA "6.6.0"'," ").concat(name," begins")),()=>end(name)),end};const noop$2=()=>{};function isWatched(node){return"string"==typeof(node.getAttribute?node.getAttribute(DATA_FA_I2SVG):null)}function createElementNS(tag){return DOCUMENT.createElementNS("http://www.w3.org/2000/svg",tag)}function createElement(tag){return DOCUMENT.createElement(tag)}function convertSVG(abstractObj){let params=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn="svg"===abstractObj.tag?createElementNS:createElement}=params;if("string"==typeof abstractObj)return DOCUMENT.createTextNode(abstractObj);const tag=ceFn(abstractObj.tag);Object.keys(abstractObj.attributes||[]).forEach((function(key){tag.setAttribute(key,abstractObj.attributes[key])}));return(abstractObj.children||[]).forEach((function(child){tag.appendChild(convertSVG(child,{ceFn}))})),tag}const mutators={replace:function(mutation){const node=mutation[0];if(node.parentNode)if(mutation[1].forEach((abstract=>{node.parentNode.insertBefore(convertSVG(abstract),node)})),null===node.getAttribute(DATA_FA_I2SVG)&&config.keepOriginalSource){let comment=DOCUMENT.createComment(function nodeAsComment(node){let comment=" ".concat(node.outerHTML," ");return comment="".concat(comment,"Font Awesome fontawesome.com "),comment}(node));node.parentNode.replaceChild(comment,node)}else node.remove()},nest:function(mutation){const node=mutation[0],abstract=mutation[1];if(~classArray(node).indexOf(config.replacementClass))return mutators.replace(mutation);const forSvg=new RegExp("".concat(config.cssPrefix,"-.*"));if(delete abstract[0].attributes.id,abstract[0].attributes.class){const splitClasses=abstract[0].attributes.class.split(" ").reduce(((acc,cls)=>(cls===config.replacementClass||cls.match(forSvg)?acc.toSvg.push(cls):acc.toNode.push(cls),acc)),{toNode:[],toSvg:[]});abstract[0].attributes.class=splitClasses.toSvg.join(" "),0===splitClasses.toNode.length?node.removeAttribute("class"):node.setAttribute("class",splitClasses.toNode.join(" "))}const newInnerHTML=abstract.map((a=>toHtml(a))).join("\n");node.setAttribute(DATA_FA_I2SVG,""),node.innerHTML=newInnerHTML}};function performOperationSync(op){op()}function perform(mutations,callback){const callbackFunction="function"==typeof callback?callback:noop$2;if(0===mutations.length)callbackFunction();else{let frame=performOperationSync;config.mutateApproach===MUTATION_APPROACH_ASYNC&&(frame=WINDOW.requestAnimationFrame||performOperationSync),frame((()=>{const mutator=function getMutator(){return!0===config.autoReplaceSvg?mutators.replace:mutators[config.autoReplaceSvg]||mutators.replace}(),mark=perf.begin("mutate");mutations.map(mutator),mark(),callbackFunction()}))}}let disabled=!1;function disableObservation(){disabled=!0}function enableObservation(){disabled=!1}let mo$1=null;function observe(options){if(!MUTATION_OBSERVER)return;if(!config.observeMutations)return;const{treeCallback=noop$2,nodeCallback=noop$2,pseudoElementsCallback=noop$2,observeMutationsRoot=DOCUMENT}=options;mo$1=new MUTATION_OBSERVER((objects=>{if(disabled)return;const defaultPrefix=getDefaultUsablePrefix();toArray(objects).forEach((mutationRecord=>{if("childList"===mutationRecord.type&&mutationRecord.addedNodes.length>0&&!isWatched(mutationRecord.addedNodes[0])&&(config.searchPseudoElements&&pseudoElementsCallback(mutationRecord.target),treeCallback(mutationRecord.target)),"attributes"===mutationRecord.type&&mutationRecord.target.parentNode&&config.searchPseudoElements&&pseudoElementsCallback(mutationRecord.target.parentNode),"attributes"===mutationRecord.type&&isWatched(mutationRecord.target)&&~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName))if("class"===mutationRecord.attributeName&&function hasPrefixAndIcon(node){const prefix=node.getAttribute?node.getAttribute(DATA_PREFIX):null,icon=node.getAttribute?node.getAttribute(DATA_ICON):null;return prefix&&icon}(mutationRecord.target)){const{prefix,iconName}=getCanonicalIcon(classArray(mutationRecord.target));mutationRecord.target.setAttribute(DATA_PREFIX,prefix||defaultPrefix),iconName&&mutationRecord.target.setAttribute(DATA_ICON,iconName)}else(function hasBeenReplaced(node){return node&&node.classList&&node.classList.contains&&node.classList.contains(config.replacementClass)})(mutationRecord.target)&&nodeCallback(mutationRecord.target)}))})),IS_DOM&&mo$1.observe(observeMutationsRoot,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function classParser(node){const existingPrefix=node.getAttribute("data-prefix"),existingIconName=node.getAttribute("data-icon"),innerText=void 0!==node.innerText?node.innerText.trim():"";let val=getCanonicalIcon(classArray(node));return val.prefix||(val.prefix=getDefaultUsablePrefix()),existingPrefix&&existingIconName&&(val.prefix=existingPrefix,val.iconName=existingIconName),val.iconName&&val.prefix||(val.prefix&&innerText.length>0&&(val.iconName=function byLigature(prefix,ligature){return(_byLigature[prefix]||{})[ligature]}(val.prefix,node.innerText)||byUnicode(val.prefix,toHex(node.innerText))),!val.iconName&&config.autoFetchSvg&&node.firstChild&&node.firstChild.nodeType===Node.TEXT_NODE&&(val.iconName=node.firstChild.data)),val}function parseMeta(node){let parser=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName,prefix,rest:extraClasses}=classParser(node),extraAttributes=function attributesParser(node){const extraAttributes=toArray(node.attributes).reduce(((acc,attr)=>("class"!==acc.name&&"style"!==acc.name&&(acc[attr.name]=attr.value),acc)),{}),title=node.getAttribute("title"),titleId=node.getAttribute("data-fa-title-id");return config.autoA11y&&(title?extraAttributes["aria-labelledby"]="".concat(config.replacementClass,"-title-").concat(titleId||nextUniqueId()):(extraAttributes["aria-hidden"]="true",extraAttributes.focusable="false")),extraAttributes}(node),pluginMeta=chainHooks("parseNodeAttributes",{},node);let extraStyles=parser.styleParser?function styleParser(node){const style=node.getAttribute("style");let val=[];return style&&(val=style.split(";").reduce(((acc,style)=>{const styles=style.split(":"),prop=styles[0],value=styles.slice(1);return prop&&value.length>0&&(acc[prop]=value.join(":").trim()),acc}),{})),val}(node):[];return{iconName,title:node.getAttribute("title"),titleId:node.getAttribute("data-fa-title-id"),prefix,transform:meaninglessTransform,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:extraClasses,styles:extraStyles,attributes:extraAttributes},...pluginMeta}}const{styles:styles$2}=namespace;function generateMutation(node){const nodeMeta="nest"===config.autoReplaceSvg?parseMeta(node,{styleParser:!1}):parseMeta(node);return~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)?callProvided("generateLayersText",node,nodeMeta):callProvided("generateSvgReplacementMutation",node,nodeMeta)}let knownPrefixes=new Set;function onTree(root){let callback=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!IS_DOM)return Promise.resolve();const htmlClassList=DOCUMENT.documentElement.classList,hclAdd=suffix=>htmlClassList.add("".concat("fontawesome-i2svg","-").concat(suffix)),hclRemove=suffix=>htmlClassList.remove("".concat("fontawesome-i2svg","-").concat(suffix)),prefixes=config.autoFetchSvg?knownPrefixes:FAMILIES.map((f$$1=>"fa-".concat(f$$1))).concat(Object.keys(styles$2));prefixes.includes("fa")||prefixes.push("fa");const prefixesDomQuery=[".".concat(LAYERS_TEXT_CLASSNAME,":not([").concat(DATA_FA_I2SVG,"])")].concat(prefixes.map((p$$1=>".".concat(p$$1,":not([").concat(DATA_FA_I2SVG,"])")))).join(", ");if(0===prefixesDomQuery.length)return Promise.resolve();let candidates=[];try{candidates=toArray(root.querySelectorAll(prefixesDomQuery))}catch(e$$1){}if(!(candidates.length>0))return Promise.resolve();hclAdd("pending"),hclRemove("complete");const mark=perf.begin("onTree"),mutations=candidates.reduce(((acc,node)=>{try{const mutation=generateMutation(node);mutation&&acc.push(mutation)}catch(e$$1){PRODUCTION||"MissingIcon"===e$$1.name&&console.error(e$$1)}return acc}),[]);return new Promise(((resolve,reject)=>{Promise.all(mutations).then((resolvedMutations=>{perform(resolvedMutations,(()=>{hclAdd("active"),hclAdd("complete"),hclRemove("pending"),"function"==typeof callback&&callback(),mark(),resolve()}))})).catch((e$$1=>{mark(),reject(e$$1)}))}))}function onNode(node){let callback=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;generateMutation(node).then((mutation=>{mutation&&perform([mutation],callback)}))}FAMILIES.map((family=>{knownPrefixes.add("fa-".concat(family))})),Object.keys(PREFIX_TO_STYLE[a]).map(knownPrefixes.add.bind(knownPrefixes)),Object.keys(PREFIX_TO_STYLE[r]).map(knownPrefixes.add.bind(knownPrefixes)),Object.keys(PREFIX_TO_STYLE[o]).map(knownPrefixes.add.bind(knownPrefixes)),knownPrefixes=[...knownPrefixes];const render=function(iconDefinition){let params=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform=meaninglessTransform,symbol=!1,mask=null,maskId=null,title=null,titleId=null,classes=[],attributes={},styles={}}=params;if(!iconDefinition)return;const{prefix,iconName,icon}=iconDefinition;return domVariants({type:"icon",...iconDefinition},(()=>(callHooks("beforeDOMElementCreation",{iconDefinition,params}),config.autoA11y&&(title?attributes["aria-labelledby"]="".concat(config.replacementClass,"-title-").concat(titleId||nextUniqueId()):(attributes["aria-hidden"]="true",attributes.focusable="false")),makeInlineSvgAbstract({icons:{main:asFoundIcon(icon),mask:mask?asFoundIcon(mask.icon):{found:!1,width:null,height:null,icon:{}}},prefix,iconName,transform:{...meaninglessTransform,...transform},symbol,title,maskId,titleId,extra:{attributes,styles,classes}}))))};var ReplaceElements={mixout(){return{icon:(next=render,function(maybeIconDefinition){let params=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const iconDefinition=(maybeIconDefinition||{}).icon?maybeIconDefinition:findIconDefinition(maybeIconDefinition||{});let{mask}=params;return mask&&(mask=(mask||{}).icon?mask:findIconDefinition(mask||{})),next(iconDefinition,{...params,mask})})};var next},hooks:()=>({mutationObserverCallbacks:accumulator=>(accumulator.treeCallback=onTree,accumulator.nodeCallback=onNode,accumulator)}),provides(providers$$1){providers$$1.i2svg=function(params){const{node=DOCUMENT,callback=()=>{}}=params;return onTree(node,callback)},providers$$1.generateSvgReplacementMutation=function(node,nodeMeta){const{iconName,title,titleId,prefix,transform,symbol,mask,maskId,extra}=nodeMeta;return new Promise(((resolve,reject)=>{Promise.all([findIcon(iconName,prefix),mask.iconName?findIcon(mask.iconName,mask.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((_ref=>{let[main,mask]=_ref;resolve([node,makeInlineSvgAbstract({icons:{main,mask},prefix,iconName,transform,symbol,maskId,title,titleId,extra,watchable:!0})])})).catch(reject)}))},providers$$1.generateAbstractIcon=function(_ref2){let{children,attributes,main,transform,styles}=_ref2;const styleString=joinStyles(styles);let nextChild;return styleString.length>0&&(attributes.style=styleString),transformIsMeaningful(transform)&&(nextChild=callProvided("generateAbstractTransformGrouping",{main,transform,containerWidth:main.width,iconWidth:main.width})),children.push(nextChild||main.icon),{children,attributes}}}},Layers={mixout:()=>({layer(assembler){let params=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes=[]}=params;return domVariants({type:"layer"},(()=>{callHooks("beforeDOMElementCreation",{assembler,params});let children=[];return assembler((args=>{Array.isArray(args)?args.map((a=>{children=children.concat(a.abstract)})):children=children.concat(args.abstract)})),[{tag:"span",attributes:{class:["".concat(config.cssPrefix,"-layers"),...classes].join(" ")},children}]}))}})},LayersCounter={mixout:()=>({counter(content){let params=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title=null,classes=[],attributes={},styles={}}=params;return domVariants({type:"counter",content},(()=>(callHooks("beforeDOMElementCreation",{content,params}),function makeLayersCounterAbstract(params){const{content,title,extra}=params,attributes={...extra.attributes,...title?{title}:{},class:extra.classes.join(" ")},styleString=joinStyles(extra.styles);styleString.length>0&&(attributes.style=styleString);const val=[];return val.push({tag:"span",attributes,children:[content]}),title&&val.push({tag:"span",attributes:{class:"sr-only"},children:[title]}),val}({content:content.toString(),title,extra:{attributes,styles,classes:["".concat(config.cssPrefix,"-layers-counter"),...classes]}}))))}})},LayersText={mixout:()=>({text(content){let params=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform=meaninglessTransform,title=null,classes=[],attributes={},styles={}}=params;return domVariants({type:"text",content},(()=>(callHooks("beforeDOMElementCreation",{content,params}),makeLayersTextAbstract({content,transform:{...meaninglessTransform,...transform},title,extra:{attributes,styles,classes:["".concat(config.cssPrefix,"-layers-text"),...classes]}}))))}}),provides(providers$$1){providers$$1.generateLayersText=function(node,nodeMeta){const{title,transform,extra}=nodeMeta;let width=null,height=null;if(IS_IE){const computedFontSize=parseInt(getComputedStyle(node).fontSize,10),boundingClientRect=node.getBoundingClientRect();width=boundingClientRect.width/computedFontSize,height=boundingClientRect.height/computedFontSize}return config.autoA11y&&!title&&(extra.attributes["aria-hidden"]="true"),Promise.resolve([node,makeLayersTextAbstract({content:node.innerHTML,width,height,transform,title,extra,watchable:!0})])}}};const CLEAN_CONTENT_PATTERN=new RegExp('"',"ug"),SECONDARY_UNICODE_RANGE=[1105920,1112319],_FONT_FAMILY_WEIGHT_TO_PREFIX={FontAwesome:{normal:"fas",400:"fas"},"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"},"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},FONT_FAMILY_WEIGHT_TO_PREFIX=Object.keys(_FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(((acc,key)=>(acc[key.toLowerCase()]=_FONT_FAMILY_WEIGHT_TO_PREFIX[key],acc)),{}),FONT_FAMILY_WEIGHT_FALLBACK=Object.keys(FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(((acc,fontFamily)=>{const weights=FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamily];return acc[fontFamily]=weights[900]||[...Object.entries(weights)][0][1],acc}),{});function replaceForPosition(node,position){const pendingAttribute="".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(":","-"));return new Promise(((resolve,reject)=>{if(null!==node.getAttribute(pendingAttribute))return resolve();const alreadyProcessedPseudoElement=toArray(node.children).filter((c=>c.getAttribute(DATA_FA_PSEUDO_ELEMENT)===position))[0],styles=WINDOW.getComputedStyle(node,position),fontFamily=styles.getPropertyValue("font-family"),fontFamilyMatch=fontFamily.match(FONT_FAMILY_PATTERN),fontWeight=styles.getPropertyValue("font-weight"),content=styles.getPropertyValue("content");if(alreadyProcessedPseudoElement&&!fontFamilyMatch)return node.removeChild(alreadyProcessedPseudoElement),resolve();if(fontFamilyMatch&&"none"!==content&&""!==content){const content=styles.getPropertyValue("content");let prefix=function getPrefix(fontFamily,fontWeight){const fontFamilySanitized=fontFamily.replace(/^['"]|['"]$/g,"").toLowerCase(),fontWeightInteger=parseInt(fontWeight),fontWeightSanitized=isNaN(fontWeightInteger)?"normal":fontWeightInteger;return(FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamilySanitized]||{})[fontWeightSanitized]||FONT_FAMILY_WEIGHT_FALLBACK[fontFamilySanitized]}(fontFamily,fontWeight);const{value:hexValue,isSecondary}=function hexValueFromContent(content){const cleaned=content.replace(CLEAN_CONTENT_PATTERN,""),codePoint=function codePointAt(string,index){const size=string.length;let second,first=string.charCodeAt(index);return first>=55296&&first<=56319&&size>index+1&&(second=string.charCodeAt(index+1),second>=56320&&second<=57343)?1024*(first-55296)+second-56320+65536:first}(cleaned,0),isPrependTen=codePoint>=SECONDARY_UNICODE_RANGE[0]&&codePoint<=SECONDARY_UNICODE_RANGE[1],isDoubled=2===cleaned.length&&cleaned[0]===cleaned[1];return{value:toHex(isDoubled?cleaned[0]:cleaned),isSecondary:isPrependTen||isDoubled}}(content),isV4=fontFamilyMatch[0].startsWith("FontAwesome");let iconName=byUnicode(prefix,hexValue),iconIdentifier=iconName;if(isV4){const iconName4=function byOldUnicode(unicode){const oldUnicode=_byOldUnicode[unicode],newUnicode=byUnicode("fas",unicode);return oldUnicode||(newUnicode?{prefix:"fas",iconName:newUnicode}:null)||{prefix:null,iconName:null}}(hexValue);iconName4.iconName&&iconName4.prefix&&(iconName=iconName4.iconName,prefix=iconName4.prefix)}if(!iconName||isSecondary||alreadyProcessedPseudoElement&&alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX)===prefix&&alreadyProcessedPseudoElement.getAttribute(DATA_ICON)===iconIdentifier)resolve();else{node.setAttribute(pendingAttribute,iconIdentifier),alreadyProcessedPseudoElement&&node.removeChild(alreadyProcessedPseudoElement);const meta=function blankMeta(){return{iconName:null,title:null,titleId:null,prefix:null,transform:meaninglessTransform,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),{extra}=meta;extra.attributes[DATA_FA_PSEUDO_ELEMENT]=position,findIcon(iconName,prefix).then((main=>{const abstract=makeInlineSvgAbstract({...meta,icons:{main,mask:emptyCanonicalIcon()},prefix,iconName:iconIdentifier,extra,watchable:!0}),element=DOCUMENT.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===position?node.insertBefore(element,node.firstChild):node.appendChild(element),element.outerHTML=abstract.map((a=>toHtml(a))).join("\n"),node.removeAttribute(pendingAttribute),resolve()})).catch(reject)}}else resolve()}))}function replace(node){return Promise.all([replaceForPosition(node,"::before"),replaceForPosition(node,"::after")])}function processable(node){return!(node.parentNode===document.head||~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase())||node.getAttribute(DATA_FA_PSEUDO_ELEMENT)||node.parentNode&&"svg"===node.parentNode.tagName)}function searchPseudoElements(root){if(IS_DOM)return new Promise(((resolve,reject)=>{const operations=toArray(root.querySelectorAll("*")).filter(processable).map(replace),end=perf.begin("searchPseudoElements");disableObservation(),Promise.all(operations).then((()=>{end(),enableObservation(),resolve()})).catch((()=>{end(),enableObservation(),reject()}))}))}var PseudoElements={hooks:()=>({mutationObserverCallbacks:accumulator=>(accumulator.pseudoElementsCallback=searchPseudoElements,accumulator)}),provides(providers){providers.pseudoElements2svg=function(params){const{node=DOCUMENT}=params;config.searchPseudoElements&&searchPseudoElements(node)}}};let _unwatched=!1;var MutationObserver$1={mixout:()=>({dom:{unwatch(){disableObservation(),_unwatched=!0}}}),hooks:()=>({bootstrap(){observe(chainHooks("mutationObserverCallbacks",{}))},noAuto(){!function disconnect(){mo$1&&mo$1.disconnect()}()},watch(params){const{observeMutationsRoot}=params;_unwatched?enableObservation():observe(chainHooks("mutationObserverCallbacks",{observeMutationsRoot}))}})};const parseTransformString=transformString=>transformString.toLowerCase().split(" ").reduce(((acc,n)=>{const parts=n.toLowerCase().split("-"),first=parts[0];let rest=parts.slice(1).join("-");if(first&&"h"===rest)return acc.flipX=!0,acc;if(first&&"v"===rest)return acc.flipY=!0,acc;if(rest=parseFloat(rest),isNaN(rest))return acc;switch(first){case"grow":acc.size=acc.size+rest;break;case"shrink":acc.size=acc.size-rest;break;case"left":acc.x=acc.x-rest;break;case"right":acc.x=acc.x+rest;break;case"up":acc.y=acc.y-rest;break;case"down":acc.y=acc.y+rest;break;case"rotate":acc.rotate=acc.rotate+rest}return acc}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var PowerTransforms={mixout:()=>({parse:{transform:transformString=>parseTransformString(transformString)}}),hooks:()=>({parseNodeAttributes(accumulator,node){const transformString=node.getAttribute("data-fa-transform");return transformString&&(accumulator.transform=parseTransformString(transformString)),accumulator}}),provides(providers){providers.generateAbstractTransformGrouping=function(_ref){let{main,transform,containerWidth,iconWidth}=_ref;const outer={transform:"translate(".concat(containerWidth/2," 256)")},innerTranslate="translate(".concat(32*transform.x,", ").concat(32*transform.y,") "),innerScale="scale(".concat(transform.size/16*(transform.flipX?-1:1),", ").concat(transform.size/16*(transform.flipY?-1:1),") "),innerRotate="rotate(".concat(transform.rotate," 0 0)"),inner={transform:"".concat(innerTranslate," ").concat(innerScale," ").concat(innerRotate)},operations_path={transform:"translate(".concat(iconWidth/2*-1," -256)")};return{tag:"g",attributes:{...outer},children:[{tag:"g",attributes:{...inner},children:[{tag:main.icon.tag,children:main.icon.children,attributes:{...main.icon.attributes,...operations_path}}]}]}}}};const ALL_SPACE={x:0,y:0,width:"100%",height:"100%"};function fillBlack(abstract){let force=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return abstract.attributes&&(abstract.attributes.fill||force)&&(abstract.attributes.fill="black"),abstract}var Masks={hooks:()=>({parseNodeAttributes(accumulator,node){const maskData=node.getAttribute("data-fa-mask"),mask=maskData?getCanonicalIcon(maskData.split(" ").map((i=>i.trim()))):emptyCanonicalIcon();return mask.prefix||(mask.prefix=getDefaultUsablePrefix()),accumulator.mask=mask,accumulator.maskId=node.getAttribute("data-fa-mask-id"),accumulator}}),provides(providers){providers.generateAbstractMask=function(_ref){let{children,attributes,main,mask,maskId:explicitMaskId,transform}=_ref;const{width:mainWidth,icon:mainPath}=main,{width:maskWidth,icon:maskPath}=mask,trans=function transformForSvg(_ref){let{transform,containerWidth,iconWidth}=_ref;const outer={transform:"translate(".concat(containerWidth/2," 256)")},innerTranslate="translate(".concat(32*transform.x,", ").concat(32*transform.y,") "),innerScale="scale(".concat(transform.size/16*(transform.flipX?-1:1),", ").concat(transform.size/16*(transform.flipY?-1:1),") "),innerRotate="rotate(".concat(transform.rotate," 0 0)");return{outer,inner:{transform:"".concat(innerTranslate," ").concat(innerScale," ").concat(innerRotate)},path:{transform:"translate(".concat(iconWidth/2*-1," -256)")}}}({transform,containerWidth:maskWidth,iconWidth:mainWidth}),maskRect={tag:"rect",attributes:{...ALL_SPACE,fill:"white"}},maskInnerGroupChildrenMixin=mainPath.children?{children:mainPath.children.map(fillBlack)}:{},maskInnerGroup={tag:"g",attributes:{...trans.inner},children:[fillBlack({tag:mainPath.tag,attributes:{...mainPath.attributes,...trans.path},...maskInnerGroupChildrenMixin})]},maskOuterGroup={tag:"g",attributes:{...trans.outer},children:[maskInnerGroup]},maskId="mask-".concat(explicitMaskId||nextUniqueId()),clipId="clip-".concat(explicitMaskId||nextUniqueId()),maskTag={tag:"mask",attributes:{...ALL_SPACE,id:maskId,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[maskRect,maskOuterGroup]},defs={tag:"defs",children:[{tag:"clipPath",attributes:{id:clipId},children:(abstract=maskPath,"g"===abstract.tag?abstract.children:[abstract])},maskTag]};var abstract;return children.push(defs,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(clipId,")"),mask:"url(#".concat(maskId,")"),...ALL_SPACE}}),{children,attributes}}}},MissingIconIndicator={provides(providers){let reduceMotion=!1;WINDOW.matchMedia&&(reduceMotion=WINDOW.matchMedia("(prefers-reduced-motion: reduce)").matches),providers.missingIconAbstract=function(){const gChildren=[],FILL={fill:"currentColor"},ANIMATION_BASE={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};gChildren.push({tag:"path",attributes:{...FILL,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const OPACITY_ANIMATE={...ANIMATION_BASE,attributeName:"opacity"},dot={tag:"circle",attributes:{...FILL,cx:"256",cy:"364",r:"28"},children:[]};return reduceMotion||dot.children.push({tag:"animate",attributes:{...ANIMATION_BASE,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...OPACITY_ANIMATE,values:"1;0;1;1;0;1;"}}),gChildren.push(dot),gChildren.push({tag:"path",attributes:{...FILL,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:reduceMotion?[]:[{tag:"animate",attributes:{...OPACITY_ANIMATE,values:"1;0;0;0;0;1;"}}]}),reduceMotion||gChildren.push({tag:"path",attributes:{...FILL,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...OPACITY_ANIMATE,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:gChildren}}}};!function registerPlugins(nextPlugins,_ref){let{mixoutsTo:obj}=_ref;return _plugins=nextPlugins,_hooks={},Object.keys(providers).forEach((k=>{-1===defaultProviderKeys.indexOf(k)&&delete providers[k]})),_plugins.forEach((plugin=>{const mixout=plugin.mixout?plugin.mixout():{};if(Object.keys(mixout).forEach((tk=>{"function"==typeof mixout[tk]&&(obj[tk]=mixout[tk]),"object"==typeof mixout[tk]&&Object.keys(mixout[tk]).forEach((sk=>{obj[tk]||(obj[tk]={}),obj[tk][sk]=mixout[tk][sk]}))})),plugin.hooks){const hooks=plugin.hooks();Object.keys(hooks).forEach((hook=>{_hooks[hook]||(_hooks[hook]=[]),_hooks[hook].push(hooks[hook])}))}plugin.provides&&plugin.provides(providers)})),obj}([InjectCSS,ReplaceElements,Layers,LayersCounter,LayersText,PseudoElements,MutationObserver$1,PowerTransforms,Masks,MissingIconIndicator,{hooks:()=>({parseNodeAttributes(accumulator,node){const symbolData=node.getAttribute("data-fa-symbol"),symbol=null!==symbolData&&(""===symbolData||symbolData);return accumulator.symbol=symbol,accumulator}})}],{mixoutsTo:api});const parse$1=api.parse,icon=api.icon;var prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),index_es_console=__webpack_require__("./node_modules/console-browserify/index.js");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0||!Array.isArray(value)&&value?_defineProperty({},key,value):{}}var defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},FontAwesomeIcon=react.forwardRef((function(props,ref){var allProps=_objectSpread2(_objectSpread2({},defaultProps),props),iconArgs=allProps.icon,maskArgs=allProps.mask,symbol=allProps.symbol,className=allProps.className,title=allProps.title,titleId=allProps.titleId,maskId=allProps.maskId,iconLookup=normalizeIconArgs(iconArgs),classes=objectWithKey("classes",[].concat(_toConsumableArray(function classList(props){var _classes,beat=props.beat,fade=props.fade,beatFade=props.beatFade,bounce=props.bounce,shake=props.shake,flash=props.flash,spin=props.spin,spinPulse=props.spinPulse,spinReverse=props.spinReverse,pulse=props.pulse,fixedWidth=props.fixedWidth,inverse=props.inverse,border=props.border,listItem=props.listItem,flip=props.flip,size=props.size,rotation=props.rotation,pull=props.pull,classes=(_defineProperty(_classes={"fa-beat":beat,"fa-fade":fade,"fa-beat-fade":beatFade,"fa-bounce":bounce,"fa-shake":shake,"fa-flash":flash,"fa-spin":spin,"fa-spin-reverse":spinReverse,"fa-spin-pulse":spinPulse,"fa-pulse":pulse,"fa-fw":fixedWidth,"fa-inverse":inverse,"fa-border":border,"fa-li":listItem,"fa-flip":!0===flip,"fa-flip-horizontal":"horizontal"===flip||"both"===flip,"fa-flip-vertical":"vertical"===flip||"both"===flip},"fa-".concat(size),null!=size),_defineProperty(_classes,"fa-rotate-".concat(rotation),null!=rotation&&0!==rotation),_defineProperty(_classes,"fa-pull-".concat(pull),null!=pull),_defineProperty(_classes,"fa-swap-opacity",props.swapOpacity),_classes);return Object.keys(classes).map((function(key){return classes[key]?key:null})).filter((function(key){return key}))}(allProps)),_toConsumableArray((className||"").split(" ")))),transform=objectWithKey("transform","string"==typeof allProps.transform?parse$1.transform(allProps.transform):allProps.transform),mask=objectWithKey("mask",normalizeIconArgs(maskArgs)),renderedIcon=icon(iconLookup,_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},classes),transform),mask),{},{symbol,title,titleId,maskId}));if(!renderedIcon)return function log(){var _console;!index_es_PRODUCTION&&index_es_console&&"function"==typeof index_es_console.error&&(_console=index_es_console).error.apply(_console,arguments)}("Could not find icon",iconLookup),null;var abstract=renderedIcon.abstract,extraProps={ref};return Object.keys(allProps).forEach((function(key){defaultProps.hasOwnProperty(key)||(extraProps[key]=allProps[key])})),convertCurry(abstract[0],extraProps)}));FontAwesomeIcon.displayName="FontAwesomeIcon",FontAwesomeIcon.propTypes={beat:prop_types_default().bool,border:prop_types_default().bool,beatFade:prop_types_default().bool,bounce:prop_types_default().bool,className:prop_types_default().string,fade:prop_types_default().bool,flash:prop_types_default().bool,mask:prop_types_default().oneOfType([prop_types_default().object,prop_types_default().array,prop_types_default().string]),maskId:prop_types_default().string,fixedWidth:prop_types_default().bool,inverse:prop_types_default().bool,flip:prop_types_default().oneOf([!0,!1,"horizontal","vertical","both"]),icon:prop_types_default().oneOfType([prop_types_default().object,prop_types_default().array,prop_types_default().string]),listItem:prop_types_default().bool,pull:prop_types_default().oneOf(["right","left"]),pulse:prop_types_default().bool,rotation:prop_types_default().oneOf([0,90,180,270]),shake:prop_types_default().bool,size:prop_types_default().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:prop_types_default().bool,spinPulse:prop_types_default().bool,spinReverse:prop_types_default().bool,symbol:prop_types_default().oneOfType([prop_types_default().bool,prop_types_default().string]),title:prop_types_default().string,titleId:prop_types_default().string,transform:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().object]),swapOpacity:prop_types_default().bool};var convertCurry=function convert(createElement,element){var extraProps=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof element)return element;var children=(element.children||[]).map((function(child){return convert(createElement,child)})),mixins=Object.keys(element.attributes||{}).reduce((function(acc,key){var val=element.attributes[key];switch(key){case"class":acc.attrs.className=val,delete element.attributes.class;break;case"style":acc.attrs.style=function styleToObject(style){return style.split(";").map((function(s){return s.trim()})).filter((function(s){return s})).reduce((function(acc,pair){var i=pair.indexOf(":"),prop=camelize(pair.slice(0,i)),value=pair.slice(i+1).trim();return prop.startsWith("webkit")?acc[function capitalize(val){return val.charAt(0).toUpperCase()+val.slice(1)}(prop)]=value:acc[prop]=value,acc}),{})}(val);break;default:0===key.indexOf("aria-")||0===key.indexOf("data-")?acc.attrs[key.toLowerCase()]=val:acc.attrs[camelize(key)]=val}return acc}),{attrs:{}}),_extraProps$style=extraProps.style,existingStyle=void 0===_extraProps$style?{}:_extraProps$style,remaining=_objectWithoutProperties(extraProps,_excluded);return mixins.attrs.style=_objectSpread2(_objectSpread2({},mixins.attrs.style),existingStyle),createElement.apply(void 0,[element.tag,_objectSpread2(_objectSpread2({},mixins.attrs),remaining)].concat(_toConsumableArray(children)))}.bind(null,react.createElement)}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/6660.612db3df.iframe.bundle.js b/refs/pull/1122/merge/6660.612db3df.iframe.bundle.js new file mode 100644 index 0000000000..31c8550cb5 --- /dev/null +++ b/refs/pull/1122/merge/6660.612db3df.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[6660],{"./node_modules/@storybook/components/dist/WithTooltip-KJL26V4Q.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{WithToolTipState:()=>_chunk_V2RRM4BX_mjs__WEBPACK_IMPORTED_MODULE_0__.v,WithTooltip:()=>_chunk_V2RRM4BX_mjs__WEBPACK_IMPORTED_MODULE_0__.v,WithTooltipPure:()=>_chunk_V2RRM4BX_mjs__WEBPACK_IMPORTED_MODULE_0__.o});var _chunk_V2RRM4BX_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/components/dist/chunk-V2RRM4BX.mjs")}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/6947.1f156c65.iframe.bundle.js b/refs/pull/1122/merge/6947.1f156c65.iframe.bundle.js new file mode 100644 index 0000000000..82dc94d8a3 --- /dev/null +++ b/refs/pull/1122/merge/6947.1f156c65.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[6947],{"./components/atoms/Image.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{_:()=>Image});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),prop_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);function Image(props){const{src,alt,rounded="",className=""}=props;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("img",{src,alt,className:"".concat(className," ").concat(rounded)})})}Image.propTypes={id:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,alt:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,src:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired,className:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,rounded:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string},Image.__docgenInfo={description:"",methods:[],displayName:"Image",props:{id:{description:"The text that the image tag will display",type:{name:"string"},required:!1},alt:{description:"Alternate text will be displayed in place of an image.",type:{name:"string"},required:!1},src:{description:"Identify source of image",type:{name:"string"},required:!0},className:{description:"css overrides for image",type:{name:"string"},required:!1},rounded:{description:"Enables rounded corners for image",type:{name:"string"},required:!1}}}},"./components/atoms/Link.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{N:()=>Link});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),prop_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);function Link(param){let{target="_self",href="#",...props}=param,basicStyle="";switch(props.linkStyle){case"basicStyleWithEmphasis":basicStyle="underline text-multi-blue-blue70b font-body text-mobilebody lg:text-p font-bold text-mobileh5 leading-33px hover:text-multi-blue-blue50b";break;case"titleLink":basicStyle="underline text-multi-blue-blue70b font-header text-mobilebody lg:text-p leading-23px font-bold hover:text-multi-blue-blue50b";break;case"smfooterBlue":basicStyle="text-multi-blue-blue70b font-body leading-20px text-browserh7 hover:underline";break;case"smfooterWhite":basicStyle="text-multi-neutrals-white font-body text-browserh7 leading-20px font-regular hover:text-multi-neutrals-white hover:underline focus:ring-1 focus:ring-white";break;case"smBreadcrumbs":basicStyle="text-multi-blue-blue70b font-body text-mobilebody lg:text-p leading-23px font-regular hover:text-multi-blue-blue50b";break;case"cardActionLink":basicStyle="text-multi-blue-blue70b font-body text-mobilebody lg:text-p underline leading-28px font-regular hover:text-multi-blue-blue50b";break;default:basicStyle="underline underline-offset-4 text-multi-blue-blue70b font-body text-mobilebody lg:text-p leading-33px hover:text-multi-blue-blue50b"}const Component=props.component||"a";return"a"!==Component?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Component,{href,disabled:props.disabled,lang:props.lang,target,"aria-label":props.ariaLabel||props.text,role:"link",className:"".concat(basicStyle),children:props.text}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("a",{href,className:"".concat(basicStyle),id:props.id,disabled:props.disabled,lang:props.lang,target,"aria-label":props.ariaLabel||props.text,locale:props.locale,onClick:props.onClick?props.onClick:void 0,"data-gc-analytics-customclick":props.dataGcAnalyticsCustomClick,children:props.text})}Link.propTypes={text:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,abbr:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,href:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,target:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,id:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired,lang:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,className:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,analyticsTracking:prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool,ariaLabel:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string,component:prop_types__WEBPACK_IMPORTED_MODULE_1___default().elementType},Link.__docgenInfo={description:"",methods:[],displayName:"Link",props:{target:{defaultValue:{value:'"_self"',computed:!1},description:"Target attribute to tell the browser where the linked document should be loaded.",type:{name:"string"},required:!1},href:{defaultValue:{value:'"#"',computed:!1},description:"Style link as a Text Link when there's a href",type:{name:"string"},required:!1},text:{description:"The text that Text Link will display",type:{name:"string"},required:!1},abbr:{description:"Abbrivation for text",type:{name:"string"},required:!1},id:{description:"Identify which Text Link being clicked",type:{name:"string"},required:!0},lang:{description:"Lang attribute for links that do not match the language of the top level document",type:{name:"string"},required:!1},className:{description:"css overrides for Link",type:{name:"string"},required:!1},analyticsTracking:{description:"For tracking on click of forms for analytics",type:{name:"bool"},required:!1},ariaLabel:{description:"use ariaLabel to provide more descriptive text for a link (screen reader friendly)",type:{name:"string"},required:!1},component:{description:"Allow user to use configurable component, default is html anchor tag",type:{name:"elementType"},required:!1}}}},"./components/organisms/Footer.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{w:()=>Footer});var jsx_runtime=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),Link=__webpack_require__("./components/atoms/Link.js"),esm=__webpack_require__("./node_modules/next-i18next/dist/esm/index.js");function MainBand(props){const{t}=(0,esm.Bd)("common");return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("h3",{className:"pt-[22px] text-multi-neutrals-white font-body font-bold text-[19px]",children:t("footerTitle")}),(0,jsx_runtime.jsxs)("nav",{className:"pb-6",role:"navigation","aria-labelledby":"accessibleSectionHeader1",children:[(0,jsx_runtime.jsx)("h2",{className:"sr-only",id:"accessibleSectionHeader1",children:t("aboutGovernment")}),(0,jsx_runtime.jsx)("ul",{className:"md:grid md:grid-cols-2 lg:grid-cols-3 flex flex-col gap-1 text-xs ml-0",children:props.landscapeLinks.map(((key,index)=>(0,jsx_runtime.jsx)("li",{className:"".concat(0===index?"footerLine pb-[22px] relative":""," text-white w-64 sm:w-56 lg:w-80 my-2.5 list-none ml-0 text-xs"),children:(0,jsx_runtime.jsx)(Link.N,{id:"LandscapeLink"+index,href:t("landscapeLinks.link.".concat(key)),text:t("landscapeLinks.text.".concat(key)),linkStyle:"smfooterWhite",target:props.target})},key+index)))})]})]})}MainBand.__docgenInfo={description:"",methods:[],displayName:"MainBand"};var Image=__webpack_require__("./components/atoms/Image.js");const brandLinksDefaultEn=[{href:"https://www.canada.ca/en/social.html",text:"Social media"},{href:"https://www.canada.ca/en/mobile.html",text:"Mobile applications"},{href:"https://www.canada.ca/en/government/about.html",text:"About Canada.ca"},{href:"https://www.canada.ca/en/transparency/terms.html",text:"Terms and conditions"},{href:"https://www.canada.ca/en/transparency/privacy.html",text:"Privacy"}],brandLinksDefaultFr=[{href:"https://www.canada.ca/fr/sociaux.html",text:"Médias sociaux"},{href:"https://www.canada.ca/fr/mobile.html",text:"Applications mobiles"},{href:"https://www.canada.ca/fr/gouvernement/a-propos.html",text:"À propos de Canada.ca"},{href:"https://www.canada.ca/fr/transparence/avis.html",text:"Avis"},{href:"https://www.canada.ca/fr/transparence/confidentialite.html",text:"Confidentialité"}];function SubFooterBand(props){return(0,jsx_runtime.jsx)("div",{className:"bg-[#F8F8F8]",children:(0,jsx_runtime.jsxs)("div",{className:"lg:container mx-auto ".concat(props.isAuthenticated?"min-h-[86px]":"min-h-[96px]"," ").concat(props.error?"items-center":""," flex justify-between"),children:[props.error?(0,jsx_runtime.jsxs)("div",{children:[(0,jsx_runtime.jsx)("a",{id:"top_btn",href:props.btnLink,className:"sm:hidden float-left cursor-pointer pr-3",children:"Top of page / Haut de la page"}),(0,jsx_runtime.jsx)("img",{src:"/upArrow.svg",alt:"",className:"pt-2 sm:hidden"})]}):(0,jsx_runtime.jsx)("section",{className:"flex items-center",children:(0,jsx_runtime.jsx)("nav",{role:"navigation",children:(0,jsx_runtime.jsx)("ul",{className:"flex flex-col md:flex-row whitespace-nowrap pt-4",children:props.brandLinks?props.brandLinks.map(((param,index)=>{let{href,text,onClick}=param;return(0,jsx_runtime.jsx)("li",{className:"".concat(0===index?"":"md:list-disc"," pr-4 mb-[17px] list-inside list-none text-xxs ml-6"),children:(0,jsx_runtime.jsx)(Link.N,{onClick:onClick||void 0,id:"footerLink"+index,href,text,linkStyle:"smfooterBlue",target:props.target})},index)})):(locale=props.locale,"en"===locale?brandLinksDefaultEn:brandLinksDefaultFr).map(((param,index)=>{let{href,text}=param;return(0,jsx_runtime.jsx)("li",{className:"".concat(0===index?"":"md:list-disc"," pr-4 mb-[17px] list-inside list-none text-xxs ml-6"),children:(0,jsx_runtime.jsx)(Link.N,{onClick:props.onClick?props.onClick:void 0,id:"footerLink"+index,href,text,linkStyle:"smfooterBlue",target:props.target})},index)}))})})}),(0,jsx_runtime.jsx)("div",{className:"".concat((props.error,"items-center")," min-h-[96px] flex mr-[5px]"),children:(0,jsx_runtime.jsx)(Image._,{className:"".concat(props.error?"h-[40px] w-auto":"h-[25px] md:h-[40px] w-full mr-2"," my-[15px]"),src:props.logo,alt:"Symbol of the Government of Canada"})})]})});var locale}SubFooterBand.__docgenInfo={description:"",methods:[],displayName:"SubFooterBand"};const landscapeLinkKeys=["contacts","departments","about","jobs","taxes","canadaAndWorld","immigration","environment","finance","travel","nationalSecurity","innovation","business","culture","indigenous","benefit","policing","veterans","health","transport","youth"],Footer=param=>{let{error,id,brandLinks,target,onClick,btnLink,preFooterTitle,preFooterLink,preFooterLinkText,contactLink="https://www.canada.ca/en/contact.html",lang,withMainBand=!0}=param;return(0,jsx_runtime.jsxs)("footer",{id,"data-testid":"footer",children:[preFooterTitle&&preFooterLink?(0,jsx_runtime.jsx)("div",{className:"bg-multi-blue-blue70c",children:(0,jsx_runtime.jsxs)("div",{className:"lg:container mx-auto px-6 pb-[22px]",children:[(0,jsx_runtime.jsx)("h3",{className:"pt-[22px] text-multi-neutrals-white font-body font-bold text-[19px]",children:preFooterTitle}),(0,jsx_runtime.jsx)(Link.N,{id:"",href:preFooterLink,text:preFooterLinkText,linkStyle:"smfooterWhite"})]})}):"",(0,jsx_runtime.jsx)("div",{className:"bg-multi-blue-blue70 bg-no-repeat bg-clip-border sm:bg-right-bottom bg-bottom",style:{backgroundImage:"url(/footer_bg_img.svg)"},children:(0,jsx_runtime.jsx)("div",{className:"lg:container mx-auto px-6",children:(0,jsx_runtime.jsx)(MainBand,{landscapeLinks:landscapeLinkKeys,target})})}),(0,jsx_runtime.jsx)(SubFooterBand,{locale:lang,container:"container",brandLinks,onClick,target,logo:"/wmms-blk.svg",error,btnLink})]})};Footer.propTypes={id:prop_types_default().string.isRequired,btnLink:prop_types_default().string.isRequired,error:prop_types_default().bool,contactLink:prop_types_default().string,brandLinks:prop_types_default().arrayOf(prop_types_default().shape({id:prop_types_default().string,text:prop_types_default().string,href:prop_types_default().string}).isRequired),target:prop_types_default().string,onClick:prop_types_default().func,contextualBandLinks:prop_types_default().arrayOf(prop_types_default().shape({key:prop_types_default().string,text:prop_types_default().string,link:prop_types_default().string})),preFooterTitle:prop_types_default().string,preFooterLink:prop_types_default().string,preFooterLinkText:prop_types_default().string},Footer.__docgenInfo={description:"",methods:[],displayName:"Footer",props:{contactLink:{defaultValue:{value:'"https://www.canada.ca/en/contact.html"',computed:!1},description:"Allow user to pass in their own contact link",type:{name:"string"},required:!1},withMainBand:{defaultValue:{value:"true",computed:!1},required:!1},id:{description:"id of this component",type:{name:"string"},required:!0},btnLink:{description:'Add the path Link to the top of your page for the "to the Top" button in mobile',type:{name:"string"},required:!0},error:{description:"If true will display the error page version of the footer component",type:{name:"bool"},required:!1},brandLinks:{description:"List of links to display on the footer",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!1},text:{name:"string",required:!1},href:{name:"string",required:!1}}}},required:!1},target:{description:"Specifies where to open the linked document",type:{name:"string"},required:!1},onClick:{description:"Handle onclick on the footer media link",type:{name:"func"},required:!1},contextualBandLinks:{description:"List of menu items to display in dropdown with links",type:{name:"arrayOf",value:{name:"shape",value:{key:{name:"string",required:!1},text:{name:"string",required:!1},link:{name:"string",required:!1}}}},required:!1},preFooterTitle:{description:"",type:{name:"string"},required:!1},preFooterLink:{description:"",type:{name:"string"},required:!1},preFooterLinkText:{description:"",type:{name:"string"},required:!1}}}}}]); \ No newline at end of file diff --git a/refs/pull/1122/merge/7172.ae3be924.iframe.bundle.js b/refs/pull/1122/merge/7172.ae3be924.iframe.bundle.js new file mode 100644 index 0000000000..50d0eeaf0b --- /dev/null +++ b/refs/pull/1122/merge/7172.ae3be924.iframe.bundle.js @@ -0,0 +1,79 @@ +/*! For license information please see 7172.ae3be924.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunkservice_canada_labs=self.webpackChunkservice_canada_labs||[]).push([[7172],{"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}__webpack_require__.d(__webpack_exports__,{A:()=>_assertThisInitialized})},"./node_modules/@babel/runtime/helpers/esm/extends.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e_extends})},"./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}__webpack_require__.d(__webpack_exports__,{A:()=>_getPrototypeOf})},"./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>_inheritsLoose});var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");function _inheritsLoose(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,(0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__.A)(t,o)}},"./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}__webpack_require__.d(__webpack_exports__,{A:()=>_isNativeReflectConstruct})},"./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}__webpack_require__.d(__webpack_exports__,{A:()=>_setPrototypeOf})},"./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var react__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{i:()=>useInsertionEffectWithLayoutFallback,s:()=>useInsertionEffectAlwaysWithSyncFallback});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),useInsertionEffect=!!(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__,2))).useInsertionEffect&&(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__,2))).useInsertionEffect,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect||function syncFallback(create){return create()},useInsertionEffectWithLayoutFallback=useInsertionEffect||react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect},"./node_modules/@radix-ui/react-compose-refs/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>useComposedRefs,t:()=>composeRefs});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/index.js");function composeRefs(...refs){return node=>refs.forEach((ref=>function setRef(ref,value){"function"==typeof ref?ref(value):null!=ref&&(ref.current=value)}(ref,node)))}function useComposedRefs(...refs){return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(composeRefs(...refs),refs)}},"./node_modules/@radix-ui/react-slot/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{DX:()=>Slot});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),Slot=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((props,forwardedRef)=>{const{children,...slotProps}=props,childrenArray=react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children),slottable=childrenArray.find(isSlottable);if(slottable){const newElement=slottable.props.children,newChildren=childrenArray.map((child=>child===slottable?react__WEBPACK_IMPORTED_MODULE_0__.Children.count(newElement)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(newElement)?newElement.props.children:null:child));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(SlotClone,{...slotProps,ref:forwardedRef,children:react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(newElement)?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(newElement,void 0,newChildren):null})}return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(SlotClone,{...slotProps,ref:forwardedRef,children})}));Slot.displayName="Slot";var SlotClone=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((props,forwardedRef)=>{const{children,...slotProps}=props;if(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(children)){const childrenRef=function getElementRef(element){let getter=Object.getOwnPropertyDescriptor(element.props,"ref")?.get,mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning;if(mayWarn)return element.ref;if(getter=Object.getOwnPropertyDescriptor(element,"ref")?.get,mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning,mayWarn)return element.props.ref;return element.props.ref||element.ref}(children);return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(children,{...mergeProps(slotProps,children.props),ref:forwardedRef?(0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_2__.t)(forwardedRef,childrenRef):childrenRef})}return react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):null}));SlotClone.displayName="SlotClone";var Slottable=({children})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children});function isSlottable(child){return react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(child)&&child.type===Slottable}function mergeProps(slotProps,childProps){const overrideProps={...childProps};for(const propName in childProps){const slotPropValue=slotProps[propName],childPropValue=childProps[propName];/^on[A-Z]/.test(propName)?slotPropValue&&childPropValue?overrideProps[propName]=(...args)=>{childPropValue(...args),slotPropValue(...args)}:slotPropValue&&(overrideProps[propName]=slotPropValue):"style"===propName?overrideProps[propName]={...slotPropValue,...childPropValue}:"className"===propName&&(overrideProps[propName]=[slotPropValue,childPropValue].filter(Boolean).join(" "))}return{...slotProps,...overrideProps}}},"./node_modules/@storybook/components/dist/chunk-FD4M6EBV.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0)&&(target[key]=source[key]);return target}__webpack_require__.d(__webpack_exports__,{i:()=>_objectWithoutPropertiesLoose,r:()=>_extends})},"./node_modules/@storybook/components/dist/chunk-GN5PWX3D.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{P$:()=>__commonJS,VA:()=>__export,f1:()=>__toESM});var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__toESM=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod))},"./node_modules/@storybook/components/dist/chunk-V2RRM4BX.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{o:()=>WithTooltipPure,v:()=>WithToolTipState});var _chunk_FD4M6EBV_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@storybook/components/dist/chunk-FD4M6EBV.mjs"),_chunk_GN5PWX3D_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@storybook/components/dist/chunk-GN5PWX3D.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/next/dist/compiled/react-dom/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@storybook/theming/dist/index.mjs"),_storybook_theming__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@storybook/theming/dist/chunk-QN4WKJDJ.mjs"),_storybook_global__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("@storybook/global"),memoizerific__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/memoizerific/memoizerific.js"),memoizerific__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_3__),console=__webpack_require__("./node_modules/console-browserify/index.js"),require_react_fast_compare=(0,_chunk_GN5PWX3D_mjs__WEBPACK_IMPORTED_MODULE_4__.P$)({"../../node_modules/react-fast-compare/index.js"(exports,module){var hasElementType=typeof Element<"u",hasMap="function"==typeof Map,hasSet="function"==typeof Set,hasArrayBuffer="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==typeof a&&"object"==typeof b){if(a.constructor!==b.constructor)return!1;var length,i,keys,it;if(Array.isArray(a)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(!equal(a[i],b[i]))return!1;return!0}if(hasMap&&a instanceof Map&&b instanceof Map){if(a.size!==b.size)return!1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return!1;for(it=a.entries();!(i=it.next()).done;)if(!equal(i.value[1],b.get(i.value[0])))return!1;return!0}if(hasSet&&a instanceof Set&&b instanceof Set){if(a.size!==b.size)return!1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(b)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(a[i]!==b[i])return!1;return!0}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf&&"function"==typeof a.valueOf&&"function"==typeof b.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString&&"function"==typeof a.toString&&"function"==typeof b.toString)return a.toString()===b.toString();if((length=(keys=Object.keys(a)).length)!==Object.keys(b).length)return!1;for(i=length;0!=i--;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return!1;if(hasElementType&&a instanceof Element)return!1;for(i=length;0!=i--;)if(("_owner"!==keys[i]&&"__v"!==keys[i]&&"__o"!==keys[i]||!a.$$typeof)&&!equal(a[keys[i]],b[keys[i]]))return!1;return!0}return a!=a&&b!=b}module.exports=function(a,b){try{return equal(a,b)}catch(error){if((error.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw error}}}}),fromEntries=function(entries){return entries.reduce((function(acc,_ref){var key=_ref[0],value=_ref[1];return acc[key]=value,acc}),{})},useIsomorphicLayoutEffect=typeof window<"u"&&window.document&&window.document.createElement?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect,top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce((function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end])}),[]),placements=[].concat(basePlacements,[auto]).reduce((function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end])}),[]),modifierPhases=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null}function getWindow(node){if(null==node)return window;if("[object Window]"!==node.toString()){var ownerDocument=node.ownerDocument;return ownerDocument&&ownerDocument.defaultView||window}return node}function isElement(node){return node instanceof getWindow(node).Element||node instanceof Element}function isHTMLElement(node){return node instanceof getWindow(node).HTMLElement||node instanceof HTMLElement}function isShadowRoot(node){return!(typeof ShadowRoot>"u")&&(node instanceof getWindow(node).ShadowRoot||node instanceof ShadowRoot)}var applyStyles_default={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach((function(name){var style=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach((function(name2){var value=attributes[name2];!1===value?element.removeAttribute(name2):element.setAttribute(name2,!0===value?"":value)})))}))},effect:function effect(_ref2){var state=_ref2.state,initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(state.elements.popper.style,initialStyles.popper),state.styles=initialStyles,state.elements.arrow&&Object.assign(state.elements.arrow.style,initialStyles.arrow),function(){Object.keys(state.elements).forEach((function(name){var element=state.elements[name],attributes=state.attributes[name]||{},style=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]).reduce((function(style2,property){return style2[property]="",style2}),{});!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach((function(attribute){element.removeAttribute(attribute)})))}))}},requires:["computeStyles"]};function getBasePlacement(placement){return placement.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var uaData=navigator.userAgentData;return null!=uaData&&uaData.brands&&Array.isArray(uaData.brands)?uaData.brands.map((function(item){return item.brand+"/"+item.version})).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(element,includeScale,isFixedStrategy){void 0===includeScale&&(includeScale=!1),void 0===isFixedStrategy&&(isFixedStrategy=!1);var clientRect=element.getBoundingClientRect(),scaleX=1,scaleY=1;includeScale&&isHTMLElement(element)&&(scaleX=element.offsetWidth>0&&round(clientRect.width)/element.offsetWidth||1,scaleY=element.offsetHeight>0&&round(clientRect.height)/element.offsetHeight||1);var visualViewport=(isElement(element)?getWindow(element):window).visualViewport,addVisualOffsets=!isLayoutViewport()&&isFixedStrategy,x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX,y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY,width=clientRect.width/scaleX,height=clientRect.height/scaleY;return{width,height,top:y,right:x+width,bottom:y+height,left:x,x,y}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width,height}}function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function getComputedStyle(element){return getWindow(element).getComputedStyle(element)}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getParentNode(element){return"html"===getNodeName(element)?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getTrueOffsetParent(element){return isHTMLElement(element)&&"fixed"!==getComputedStyle(element).position?element.offsetParent:null}function getOffsetParent(element){for(var window2=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&"static"===getComputedStyle(offsetParent).position;)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&("html"===getNodeName(offsetParent)||"body"===getNodeName(offsetParent)&&"static"===getComputedStyle(offsetParent).position)?window2:offsetParent||function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(element)&&"fixed"===getComputedStyle(element).position)return null;var currentNode=getParentNode(element);for(isShadowRoot(currentNode)&&(currentNode=currentNode.host);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle(currentNode);if("none"!==css.transform||"none"!==css.perspective||"paint"===css.contain||-1!==["transform","perspective"].indexOf(css.willChange)||isFirefox&&"filter"===css.willChange||isFirefox&&css.filter&&"none"!==css.filter)return currentNode;currentNode=currentNode.parentNode}return null}(element)||window2}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y"}function within(min2,value,max2){return max(min2,min(value,max2))}function mergePaddingObject(paddingObject){return Object.assign({},{top:0,right:0,bottom:0,left:0},paddingObject)}function expandToHashMap(value,keys){return keys.reduce((function(hashMap,key){return hashMap[key]=value,hashMap}),{})}function getVariation(placement){return placement.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(_ref2){var _Object$assign2,popper2=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=void 0===_offsets$x?0:_offsets$x,_offsets$y=offsets.y,y=void 0===_offsets$y?0:_offsets$y,_ref3="function"==typeof roundOffsets?roundOffsets({x,y}):{x,y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=left,sideY=top,win=window;if(adaptive){var offsetParent=getOffsetParent(popper2),heightProp="clientHeight",widthProp="clientWidth";if(offsetParent===getWindow(popper2)&&("static"!==getComputedStyle(offsetParent=getDocumentElement(popper2)).position&&"absolute"===position&&(heightProp="scrollHeight",widthProp="scrollWidth")),placement===top||(placement===left||placement===right)&&variation===end)sideY=bottom,y-=(isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp])-popperRect.height,y*=gpuAcceleration?1:-1;if(placement===left||(placement===top||placement===bottom)&&variation===end)sideX=right,x-=(isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp])-popperRect.width,x*=gpuAcceleration?1:-1}var _Object$assign,commonStyles=Object.assign({position},adaptive&&unsetSides),_ref4=!0===roundOffsets?function roundOffsetsByDPR(_ref,win){var x=_ref.x,y=_ref.y,dpr=win.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}({x,y},getWindow(popper2)):{x,y};return x=_ref4.x,y=_ref4.y,gpuAcceleration?Object.assign({},commonStyles,((_Object$assign={})[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign)):Object.assign({},commonStyles,((_Object$assign2={})[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}var passive={passive:!0};var hash={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,(function(matched){return hash[matched]}))}var hash2={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,(function(matched){return hash2[matched]}))}function getWindowScroll(node){var win=getWindow(node);return{scrollLeft:win.pageXOffset,scrollTop:win.pageYOffset}}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function isScrollParent(element){var _getComputedStyle=getComputedStyle(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}function getScrollParent(node){return["html","body","#document"].indexOf(getNodeName(node))>=0?node.ownerDocument.body:isHTMLElement(node)&&isScrollParent(node)?node:getScrollParent(getParentNode(node))}function listScrollParents(element,list){var _element$ownerDocumen;void 0===list&&(list=[]);var scrollParent=getScrollParent(element),isBody=scrollParent===(null==(_element$ownerDocumen=element.ownerDocument)?void 0:_element$ownerDocumen.body),win=getWindow(scrollParent),target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getClientRectFromMixedType(element,clippingParent,strategy){return clippingParent===viewport?rectToClientRect(function getViewportRect(element,strategy){var win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport,width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){width=visualViewport.width,height=visualViewport.height;var layoutViewport=isLayoutViewport();(layoutViewport||!layoutViewport&&"fixed"===strategy)&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop)}return{width,height,x:x+getWindowScrollBarX(element),y}}(element,strategy)):isElement(clippingParent)?function getInnerBoundingClientRect(element,strategy){var rect=getBoundingClientRect(element,!1,"fixed"===strategy);return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}(clippingParent,strategy):rectToClientRect(function getDocumentRect(element){var _element$ownerDocumen,html=getDocumentElement(element),winScroll=getWindowScroll(element),body=null==(_element$ownerDocumen=element.ownerDocument)?void 0:_element$ownerDocumen.body,width=max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),height=max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),x=-winScroll.scrollLeft+getWindowScrollBarX(element),y=-winScroll.scrollTop;return"rtl"===getComputedStyle(body||html).direction&&(x+=max(html.clientWidth,body?body.clientWidth:0)-width),{width,height,x,y}}(getDocumentElement(element)))}function getClippingRect(element,boundary,rootBoundary,strategy){var mainClippingParents="clippingParents"===boundary?function getClippingParents(element){var clippingParents2=listScrollParents(getParentNode(element)),clipperElement=["absolute","fixed"].indexOf(getComputedStyle(element).position)>=0&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents2.filter((function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&"body"!==getNodeName(clippingParent)})):[]}(element):[].concat(boundary),clippingParents2=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents2[0],clippingRect=clippingParents2.reduce((function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent,strategy);return accRect.top=max(rect.top,accRect.top),accRect.right=min(rect.right,accRect.right),accRect.bottom=min(rect.bottom,accRect.bottom),accRect.left=max(rect.left,accRect.left),accRect}),getClientRectFromMixedType(element,firstClippingParent,strategy));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function computeOffsets(_ref){var offsets,reference2=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference2.x+reference2.width/2-element.width/2,commonY=reference2.y+reference2.height/2-element.height/2;switch(basePlacement){case top:offsets={x:commonX,y:reference2.y-element.height};break;case bottom:offsets={x:commonX,y:reference2.y+reference2.height};break;case right:offsets={x:reference2.x+reference2.width,y:commonY};break;case left:offsets={x:reference2.x-element.width,y:commonY};break;default:offsets={x:reference2.x,y:reference2.y}}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(null!=mainAxis){var len="y"===mainAxis?"height":"width";switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference2[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference2[len]/2-element[len]/2)}}return offsets}function detectOverflow(state,options){void 0===options&&(options={});var _options=options,_options$placement=_options.placement,placement=void 0===_options$placement?state.placement:_options$placement,_options$strategy=_options.strategy,strategy=void 0===_options$strategy?state.strategy:_options$strategy,_options$boundary=_options.boundary,boundary=void 0===_options$boundary?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=void 0===_options$rootBoundary?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=void 0===_options$elementConte?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=void 0!==_options$altBoundary&&_options$altBoundary,_options$padding=_options.padding,padding=void 0===_options$padding?0:_options$padding,paddingObject=mergePaddingObject("number"!=typeof padding?padding:expandToHashMap(padding,basePlacements)),altContext=elementContext===popper?reference:popper,popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary,strategy),referenceClientRect=getBoundingClientRect(state.elements.reference),popperOffsets2=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:"absolute",placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets2)),elementClientRect=elementContext===popper?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset2=offsetData[placement];Object.keys(overflowOffsets).forEach((function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1,axis=[top,bottom].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset2[axis]*multiply}))}return overflowOffsets}function getSideOffsets(overflow,rect,preventedOffsets){return void 0===preventedOffsets&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return[top,right,bottom,left].some((function(side){return overflow[side]>=0}))}function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){void 0===isFixed&&(isFixed=!1);var isOffsetParentAnElement=isHTMLElement(offsetParent),offsetParentIsScaled=isHTMLElement(offsetParent)&&function isElementScaled(element){var rect=element.getBoundingClientRect(),scaleX=round(rect.width)/element.offsetWidth||1,scaleY=round(rect.height)/element.offsetHeight||1;return 1!==scaleX||1!==scaleY}(offsetParent),documentElement=getDocumentElement(offsetParent),rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled,isFixed),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&(("body"!==getNodeName(offsetParent)||isScrollParent(documentElement))&&(scroll=function getNodeScroll(node){return node!==getWindow(node)&&isHTMLElement(node)?function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}(node):getWindowScroll(node)}(offsetParent)),isHTMLElement(offsetParent)?((offsets=getBoundingClientRect(offsetParent,!0)).x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):documentElement&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function order(modifiers){var map=new Map,visited=new Set,result=[];function sort(modifier){visited.add(modifier.name),[].concat(modifier.requires||[],modifier.requiresIfExists||[]).forEach((function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier)}})),result.push(modifier)}return modifiers.forEach((function(modifier){map.set(modifier.name,modifier)})),modifiers.forEach((function(modifier){visited.has(modifier.name)||sort(modifier)})),result}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return!args.some((function(element){return!(element&&"function"==typeof element.getBoundingClientRect)}))}var createPopper=function popperGenerator(generatorOptions){void 0===generatorOptions&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers2=void 0===_generatorOptions$def?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=void 0===_generatorOptions$def2?DEFAULT_OPTIONS:_generatorOptions$def2;return function(reference2,popper2,options){void 0===options&&(options=defaultOptions);var fn2,pending,state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference2,popper:popper2},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state,setOptions:function(setOptionsAction){var options2="function"==typeof setOptionsAction?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,state.options,options2),state.scrollParents={reference:isElement(reference2)?listScrollParents(reference2):reference2.contextElement?listScrollParents(reference2.contextElement):[],popper:listScrollParents(popper2)};var orderedModifiers=function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce((function(acc,phase){return acc.concat(orderedModifiers.filter((function(modifier){return modifier.phase===phase})))}),[])}(function mergeByName(modifiers){var merged=modifiers.reduce((function(merged2,current){var existing=merged2[current.name];return merged2[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current,merged2}),{});return Object.keys(merged).map((function(key){return merged[key]}))}([].concat(defaultModifiers2,state.options.modifiers)));return state.orderedModifiers=orderedModifiers.filter((function(m){return m.enabled})),function runModifierEffects(){state.orderedModifiers.forEach((function(_ref){var name=_ref.name,_ref$options=_ref.options,options2=void 0===_ref$options?{}:_ref$options,effect4=_ref.effect;if("function"==typeof effect4){var cleanupFn=effect4({state,name,instance,options:options2}),noopFn=function(){};effectCleanupFns.push(cleanupFn||noopFn)}}))}(),instance.update()},forceUpdate:function(){if(!isDestroyed){var _state$elements=state.elements,reference3=_state$elements.reference,popper3=_state$elements.popper;if(areValidElements(reference3,popper3)){state.rects={reference:getCompositeRect(reference3,getOffsetParent(popper3),"fixed"===state.options.strategy),popper:getLayoutRect(popper3)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach((function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)}));for(var index=0;index=0?-1:1,_ref="function"==typeof offset2?offset2(Object.assign({},rects,{placement})):offset2,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}(placement,state.rects,offset2),acc}),{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;null!=state.modifiersData.popperOffsets&&(state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y),state.modifiersData[name]=data}},{name:"flip",enabled:!0,phase:"main",fn:function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(!state.modifiersData[name]._skip){for(var _options$mainAxis=options.mainAxis,checkMainAxis=void 0===_options$mainAxis||_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=void 0===_options$altAxis||_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=void 0===_options$flipVariatio||_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements,preferredPlacement=state.options.placement,basePlacement=getBasePlacement(preferredPlacement),fallbackPlacements=specifiedFallbackPlacements||(basePlacement===preferredPlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto)return[];var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)]}(preferredPlacement)),placements2=[preferredPlacement].concat(fallbackPlacements).reduce((function(acc,placement2){return acc.concat(getBasePlacement(placement2)===auto?function computeAutoPlacement(state,options){void 0===options&&(options={});var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=void 0===_options$allowedAutoP?placements:_options$allowedAutoP,variation=getVariation(placement),placements2=variation?flipVariations?variationPlacements:variationPlacements.filter((function(placement2){return getVariation(placement2)===variation})):basePlacements,allowedPlacements=placements2.filter((function(placement2){return allowedAutoPlacements.indexOf(placement2)>=0}));0===allowedPlacements.length&&(allowedPlacements=placements2);var overflows=allowedPlacements.reduce((function(acc,placement2){return acc[placement2]=detectOverflow(state,{placement:placement2,boundary,rootBoundary,padding})[getBasePlacement(placement2)],acc}),{});return Object.keys(overflows).sort((function(a,b){return overflows[a]-overflows[b]}))}(state,{placement:placement2,boundary,rootBoundary,padding,flipVariations,allowedAutoPlacements}):placement2)}),[]),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements2[0],i=0;i=0,len=isVertical?"width":"height",overflow=detectOverflow(state,{placement,boundary,rootBoundary,altBoundary,padding}),mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:top;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[];if(checkMainAxis&&checks.push(overflow[_basePlacement]<=0),checkAltAxis&&checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0),checks.every((function(check){return check}))){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks)}if(makeFallbackChecks)for(var _loop=function(_i2){var fittingPlacement=placements2.find((function(placement2){var checks2=checksMap.get(placement2);if(checks2)return checks2.slice(0,_i2).every((function(check){return check}))}));if(fittingPlacement)return firstFittingPlacement=fittingPlacement,"break"},_i=flipVariations?3:1;_i>0;_i--){if("break"===_loop(_i))break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=void 0===_options$mainAxis||_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=void 0!==_options$altAxis&&_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=void 0===_options$tether||_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=void 0===_options$tetherOffset?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary,rootBoundary,padding,altBoundary}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis=function getAltAxis(axis){return"x"===axis?"y":"x"}(mainAxis),popperOffsets2=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue="function"==typeof tetherOffset?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,normalizedTetherOffsetValue="number"==typeof tetherOffsetValue?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue),offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null,data={x:0,y:0};if(popperOffsets2){if(checkMainAxis){var _offsetModifierState$,mainSide="y"===mainAxis?top:left,altSide="y"===mainAxis?bottom:right,len="y"===mainAxis?"height":"width",offset2=popperOffsets2[mainAxis],min2=offset2+overflow[mainSide],max2=offset2-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen=variation===start?referenceRect[len]:popperRect[len],maxLen=variation===start?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,referenceRect[len],arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis,arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow),clientOffset=arrowOffsetParent?"y"===mainAxis?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0,offsetModifierValue=null!=(_offsetModifierState$=offsetModifierState?.[mainAxis])?_offsetModifierState$:0,tetherMax=offset2+maxOffset-offsetModifierValue,preventedOffset=within(tether?min(min2,offset2+minOffset-offsetModifierValue-clientOffset):min2,offset2,tether?max(max2,tetherMax):max2);popperOffsets2[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset2}if(checkAltAxis){var _offsetModifierState$2,_mainSide="x"===mainAxis?top:left,_altSide="x"===mainAxis?bottom:right,_offset=popperOffsets2[altAxis],_len="y"===altAxis?"height":"width",_min=_offset+overflow[_mainSide],_max=_offset-overflow[_altSide],isOriginSide=-1!==[top,left].indexOf(basePlacement),_offsetModifierValue=null!=(_offsetModifierState$2=offsetModifierState?.[altAxis])?_offsetModifierState$2:0,_tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis,_tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max,_preventedOffset=tether&&isOriginSide?function withinMaxClamp(min2,value,max2){var v=within(min2,value,max2);return v>max2?max2:v}(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets2[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset}state.modifiersData[name]=data}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets2=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),len=[left,right].indexOf(basePlacement)>=0?"height":"width";if(arrowElement&&popperOffsets2){var paddingObject=function(padding,state){return mergePaddingObject("number"!=typeof(padding="function"==typeof padding?padding(Object.assign({},state.rects,{placement:state.placement})):padding)?padding:expandToHashMap(padding,basePlacements))}(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp="y"===axis?top:left,maxProp="y"===axis?bottom:right,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len],startDiff=popperOffsets2[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?"y"===axis?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min2=paddingObject[minProp],max2=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset2=within(min2,center,max2),axisProp=axis;state.modifiersData[name]=((_state$modifiersData$={})[axisProp]=offset2,_state$modifiersData$.centerOffset=offset2-center,_state$modifiersData$)}},effect:function effect2(_ref2){var state=_ref2.state,_options$element=_ref2.options.element,arrowElement=void 0===_options$element?"[data-popper-arrow]":_options$element;null!=arrowElement&&("string"==typeof arrowElement&&!(arrowElement=state.elements.popper.querySelector(arrowElement))||contains(state.elements.popper,arrowElement)&&(state.elements.arrow=arrowElement))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:"reference"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets,popperEscapeOffsets,isReferenceHidden,hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped})}}]}),import_react_fast_compare=(0,_chunk_GN5PWX3D_mjs__WEBPACK_IMPORTED_MODULE_4__.f1)(require_react_fast_compare()),EMPTY_MODIFIERS=[];function useGetLatest(val){var ref=react__WEBPACK_IMPORTED_MODULE_0__.useRef(val);return ref.current=val,react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){return ref.current}),[])}var noop=function(){};function generateBoundingClientRect(x,y){return void 0===x&&(x=0),void 0===y&&(y=0),function(){return{width:0,height:0,top:y,right:x,bottom:y,left:x,x:0,y:0,toJSON:function(){return null}}}}var _excluded=["styles","attributes"],virtualElement={getBoundingClientRect:generateBoundingClientRect()},defaultConfig={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function usePopperTooltip(config,popperOptions){var _popperProps$state,_popperProps$state$mo,_popperProps$state$mo2;void 0===config&&(config={}),void 0===popperOptions&&(popperOptions={});var finalConfig=Object.keys(defaultConfig).reduce((function(config2,key){var _extends2;return(0,_chunk_FD4M6EBV_mjs__WEBPACK_IMPORTED_MODULE_5__.r)({},config2,((_extends2={})[key]=void 0!==config2[key]?config2[key]:defaultConfig[key],_extends2))}),config),defaultModifiers2=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return[{name:"offset",options:{offset:finalConfig.offset}}]}),Array.isArray(finalConfig.offset)?finalConfig.offset:[]),finalPopperOptions=(0,_chunk_FD4M6EBV_mjs__WEBPACK_IMPORTED_MODULE_5__.r)({},popperOptions,{placement:popperOptions.placement||finalConfig.placement,modifiers:popperOptions.modifiers||defaultModifiers2}),_React$useState=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),triggerRef=_React$useState[0],setTriggerRef=_React$useState[1],_React$useState2=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),tooltipRef=_React$useState2[0],setTooltipRef=_React$useState2[1],_useControlledState=function useControlledState(_ref){var initial=_ref.initial,value=_ref.value,_ref$onChange=_ref.onChange,onChange=void 0===_ref$onChange?noop:_ref$onChange;if(void 0===initial&&void 0===value)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var _React$useState=react__WEBPACK_IMPORTED_MODULE_0__.useState(initial),state=_React$useState[0],setState=_React$useState[1],getLatest=useGetLatest(state),set=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(updater){var state2=getLatest(),updatedState="function"==typeof updater?updater(state2):updater;"function"==typeof updatedState.persist&&updatedState.persist(),setState(updatedState),"function"==typeof onChange&&onChange(updatedState)}),[getLatest,onChange]),isControlled=void 0!==value;return[isControlled?value:state,isControlled?onChange:set]}({initial:finalConfig.defaultVisible,value:finalConfig.visible,onChange:finalConfig.onVisibleChange}),visible=_useControlledState[0],setVisible=_useControlledState[1],timer=react__WEBPACK_IMPORTED_MODULE_0__.useRef();react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){return function(){return clearTimeout(timer.current)}}),[]);var _usePopper=function(referenceElement,popperElement,options){void 0===options&&(options={});var prevOptions=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),optionsWithDefaults={onFirstUpdate:options.onFirstUpdate,placement:options.placement||"bottom",strategy:options.strategy||"absolute",modifiers:options.modifiers||EMPTY_MODIFIERS},_React$useState=react__WEBPACK_IMPORTED_MODULE_0__.useState({styles:{popper:{position:optionsWithDefaults.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),state=_React$useState[0],setState=_React$useState[1],updateStateModifier=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(_ref){var state2=_ref.state,elements=Object.keys(state2.elements);react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync((function(){setState({styles:fromEntries(elements.map((function(element){return[element,state2.styles[element]||{}]}))),attributes:fromEntries(elements.map((function(element){return[element,state2.attributes[element]]})))})}))},requires:["computeStyles"]}}),[]),popperOptions=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){var newOptions={onFirstUpdate:optionsWithDefaults.onFirstUpdate,placement:optionsWithDefaults.placement,strategy:optionsWithDefaults.strategy,modifiers:[].concat(optionsWithDefaults.modifiers,[updateStateModifier,{name:"applyStyles",enabled:!1}])};return(0,import_react_fast_compare.default)(prevOptions.current,newOptions)?prevOptions.current||newOptions:(prevOptions.current=newOptions,newOptions)}),[optionsWithDefaults.onFirstUpdate,optionsWithDefaults.placement,optionsWithDefaults.strategy,optionsWithDefaults.modifiers,updateStateModifier]),popperInstanceRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef();return useIsomorphicLayoutEffect((function(){popperInstanceRef.current&&popperInstanceRef.current.setOptions(popperOptions)}),[popperOptions]),useIsomorphicLayoutEffect((function(){if(null!=referenceElement&&null!=popperElement){var popperInstance=(options.createPopper||createPopper)(referenceElement,popperElement,popperOptions);return popperInstanceRef.current=popperInstance,function(){popperInstance.destroy(),popperInstanceRef.current=null}}}),[referenceElement,popperElement,options.createPopper]),{state:popperInstanceRef.current?popperInstanceRef.current.state:null,styles:state.styles,attributes:state.attributes,update:popperInstanceRef.current?popperInstanceRef.current.update:null,forceUpdate:popperInstanceRef.current?popperInstanceRef.current.forceUpdate:null}}(finalConfig.followCursor?virtualElement:triggerRef,tooltipRef,finalPopperOptions),styles=_usePopper.styles,attributes=_usePopper.attributes,popperProps=(0,_chunk_FD4M6EBV_mjs__WEBPACK_IMPORTED_MODULE_5__.i)(_usePopper,_excluded),update=popperProps.update,getLatest=useGetLatest({visible,triggerRef,tooltipRef,finalConfig}),isTriggeredBy=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(trigger){return Array.isArray(finalConfig.trigger)?finalConfig.trigger.includes(trigger):finalConfig.trigger===trigger}),Array.isArray(finalConfig.trigger)?finalConfig.trigger:[finalConfig.trigger]),hideTooltip=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){clearTimeout(timer.current),timer.current=window.setTimeout((function(){return setVisible(!1)}),finalConfig.delayHide)}),[finalConfig.delayHide,setVisible]),showTooltip=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){clearTimeout(timer.current),timer.current=window.setTimeout((function(){return setVisible(!0)}),finalConfig.delayShow)}),[finalConfig.delayShow,setVisible]),toggleTooltip=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){getLatest().visible?hideTooltip():showTooltip()}),[getLatest,hideTooltip,showTooltip]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(getLatest().finalConfig.closeOnOutsideClick){var handleClickOutside=function(event){var _event$composedPath,_getLatest=getLatest(),tooltipRef2=_getLatest.tooltipRef,triggerRef2=_getLatest.triggerRef,target=(null==event.composedPath||null==(_event$composedPath=event.composedPath())?void 0:_event$composedPath[0])||event.target;target instanceof Node&&null!=tooltipRef2&&null!=triggerRef2&&!tooltipRef2.contains(target)&&!triggerRef2.contains(target)&&hideTooltip()};return document.addEventListener("mousedown",handleClickOutside),function(){return document.removeEventListener("mousedown",handleClickOutside)}}}),[getLatest,hideTooltip]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=triggerRef&&isTriggeredBy("click"))return triggerRef.addEventListener("click",toggleTooltip),function(){return triggerRef.removeEventListener("click",toggleTooltip)}}),[triggerRef,isTriggeredBy,toggleTooltip]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=triggerRef&&isTriggeredBy("double-click"))return triggerRef.addEventListener("dblclick",toggleTooltip),function(){return triggerRef.removeEventListener("dblclick",toggleTooltip)}}),[triggerRef,isTriggeredBy,toggleTooltip]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=triggerRef&&isTriggeredBy("right-click")){var preventDefaultAndToggle=function(event){event.preventDefault(),toggleTooltip()};return triggerRef.addEventListener("contextmenu",preventDefaultAndToggle),function(){return triggerRef.removeEventListener("contextmenu",preventDefaultAndToggle)}}}),[triggerRef,isTriggeredBy,toggleTooltip]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=triggerRef&&isTriggeredBy("focus"))return triggerRef.addEventListener("focus",showTooltip),triggerRef.addEventListener("blur",hideTooltip),function(){triggerRef.removeEventListener("focus",showTooltip),triggerRef.removeEventListener("blur",hideTooltip)}}),[triggerRef,isTriggeredBy,showTooltip,hideTooltip]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=triggerRef&&isTriggeredBy("hover"))return triggerRef.addEventListener("mouseenter",showTooltip),triggerRef.addEventListener("mouseleave",hideTooltip),function(){triggerRef.removeEventListener("mouseenter",showTooltip),triggerRef.removeEventListener("mouseleave",hideTooltip)}}),[triggerRef,isTriggeredBy,showTooltip,hideTooltip]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=tooltipRef&&isTriggeredBy("hover")&&getLatest().finalConfig.interactive)return tooltipRef.addEventListener("mouseenter",showTooltip),tooltipRef.addEventListener("mouseleave",hideTooltip),function(){tooltipRef.removeEventListener("mouseenter",showTooltip),tooltipRef.removeEventListener("mouseleave",hideTooltip)}}),[tooltipRef,isTriggeredBy,showTooltip,hideTooltip,getLatest]);var isReferenceHidden=null==popperProps||null==(_popperProps$state=popperProps.state)||null==(_popperProps$state$mo=_popperProps$state.modifiersData)||null==(_popperProps$state$mo2=_popperProps$state$mo.hide)?void 0:_popperProps$state$mo2.isReferenceHidden;react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){finalConfig.closeOnTriggerHidden&&isReferenceHidden&&hideTooltip()}),[finalConfig.closeOnTriggerHidden,hideTooltip,isReferenceHidden]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(finalConfig.followCursor&&null!=triggerRef)return triggerRef.addEventListener("mousemove",setMousePosition),function(){return triggerRef.removeEventListener("mousemove",setMousePosition)};function setMousePosition(_ref){var clientX=_ref.clientX,clientY=_ref.clientY;virtualElement.getBoundingClientRect=generateBoundingClientRect(clientX,clientY),update?.()}}),[finalConfig.followCursor,triggerRef,update]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=tooltipRef&&null!=update&&null!=finalConfig.mutationObserverOptions){var observer=new MutationObserver(update);return observer.observe(tooltipRef,finalConfig.mutationObserverOptions),function(){return observer.disconnect()}}}),[finalConfig.mutationObserverOptions,tooltipRef,update]);return(0,_chunk_FD4M6EBV_mjs__WEBPACK_IMPORTED_MODULE_5__.r)({getArrowProps:function(args){return void 0===args&&(args={}),(0,_chunk_FD4M6EBV_mjs__WEBPACK_IMPORTED_MODULE_5__.r)({},args,attributes.arrow,{style:(0,_chunk_FD4M6EBV_mjs__WEBPACK_IMPORTED_MODULE_5__.r)({},args.style,styles.arrow),"data-popper-arrow":!0})},getTooltipProps:function(args){return void 0===args&&(args={}),(0,_chunk_FD4M6EBV_mjs__WEBPACK_IMPORTED_MODULE_5__.r)({},args,{style:(0,_chunk_FD4M6EBV_mjs__WEBPACK_IMPORTED_MODULE_5__.r)({},args.style,styles.popper)},attributes.popper,{"data-popper-interactive":finalConfig.interactive})},setTooltipRef,setTriggerRef,tooltipRef,triggerRef,visible},popperProps)}var match=memoizerific__WEBPACK_IMPORTED_MODULE_3___default()(1e3)(((requests,actual,value,fallback=0)=>actual.split("-")[0]===requests?value:fallback)),Arrow=_storybook_theming__WEBPACK_IMPORTED_MODULE_6__.I4.div({position:"absolute",borderStyle:"solid"},(({placement})=>{let x=0,y=0;switch(!0){case placement.startsWith("left")||placement.startsWith("right"):y=8;break;case placement.startsWith("top")||placement.startsWith("bottom"):x=8}return{transform:`translate3d(${x}px, ${y}px, 0px)`}}),(({theme,color,placement})=>({bottom:`${match("top",placement,"-8px","auto")}`,top:`${match("bottom",placement,"-8px","auto")}`,right:`${match("left",placement,"-8px","auto")}`,left:`${match("right",placement,"-8px","auto")}`,borderBottomWidth:`${match("top",placement,"0",8)}px`,borderTopWidth:`${match("bottom",placement,"0",8)}px`,borderRightWidth:`${match("left",placement,"0",8)}px`,borderLeftWidth:`${match("right",placement,"0",8)}px`,borderTopColor:match("top",placement,theme.color[color]||color||"light"===theme.base?(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_7__.Zt)(theme.background.app):theme.background.app,"transparent"),borderBottomColor:match("bottom",placement,theme.color[color]||color||"light"===theme.base?(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_7__.Zt)(theme.background.app):theme.background.app,"transparent"),borderLeftColor:match("left",placement,theme.color[color]||color||"light"===theme.base?(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_7__.Zt)(theme.background.app):theme.background.app,"transparent"),borderRightColor:match("right",placement,theme.color[color]||color||"light"===theme.base?(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_7__.Zt)(theme.background.app):theme.background.app,"transparent")}))),Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_6__.I4.div((({hidden})=>({display:hidden?"none":"inline-block",zIndex:2147483647})),(({theme,color,hasChrome})=>hasChrome?{background:theme.color[color]||color||"light"===theme.base?(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_7__.Zt)(theme.background.app):theme.background.app,filter:"\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ",borderRadius:theme.appBorderRadius,fontSize:theme.typography.size.s1}:{})),Tooltip=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({placement="top",hasChrome=!0,children,arrowProps={},tooltipRef,color,withArrows,...props},ref)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper,{"data-testid":"tooltip",hasChrome,ref,...props,color},hasChrome&&withArrows&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Arrow,{placement,...arrowProps,color}),children)));Tooltip.displayName="Tooltip";var{document:document2}=_storybook_global__WEBPACK_IMPORTED_MODULE_2__.global,TargetContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_6__.I4.div` + display: inline-block; + cursor: ${props=>"hover"===props.trigger||props.trigger.includes("hover")?"default":"pointer"}; +`,TargetSvgContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_6__.I4.g` + cursor: ${props=>"hover"===props.trigger||props.trigger.includes("hover")?"default":"pointer"}; +`,WithTooltipPure=({svg=!1,trigger="click",closeOnOutsideClick=!1,placement="top",modifiers=[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome=!0,defaultVisible=!1,withArrows,offset:offset2,tooltip,children,closeOnTriggerHidden,mutationObserverOptions,delayHide,visible,interactive,delayShow,strategy,followCursor,onVisibleChange,...props})=>{let Container=svg?TargetSvgContainer:TargetContainer,{getArrowProps,getTooltipProps,setTooltipRef,setTriggerRef,visible:isVisible,state}=usePopperTooltip({trigger,placement,defaultVisible,delayHide,interactive,closeOnOutsideClick,closeOnTriggerHidden,onVisibleChange,delayShow,followCursor,mutationObserverOptions,visible,offset:offset2},{modifiers,strategy}),tooltipComponent=react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tooltip,{placement:state?.placement,ref:setTooltipRef,hasChrome,arrowProps:getArrowProps(),withArrows,...getTooltipProps()},"function"==typeof tooltip?tooltip({onHide:()=>onVisibleChange(!1)}):tooltip);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Container,{trigger,ref:setTriggerRef,...props},children),isVisible&&react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal(tooltipComponent,document2.body))},WithToolTipState=({startOpen=!1,onVisibleChange:onChange,...rest})=>{let[tooltipShown,setTooltipShown]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(startOpen),onVisibilityChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((visibility=>{onChange&&!1===onChange(visibility)||setTooltipShown(visibility)}),[onChange]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let hide2=()=>onVisibilityChange(!1);document2.addEventListener("keydown",hide2,!1);let iframes=Array.from(document2.getElementsByTagName("iframe")),unbinders=[];return iframes.forEach((iframe=>{let bind=()=>{try{iframe.contentWindow.document&&(iframe.contentWindow.document.addEventListener("click",hide2),unbinders.push((()=>{try{iframe.contentWindow.document.removeEventListener("click",hide2)}catch{}})))}catch{}};bind(),iframe.addEventListener("load",bind),unbinders.push((()=>{iframe.removeEventListener("load",bind)}))})),()=>{document2.removeEventListener("keydown",hide2),unbinders.forEach((unbind=>{unbind()}))}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(WithTooltipPure,{...rest,visible:tooltipShown,onVisibleChange:onVisibilityChange})}},"./node_modules/@storybook/components/dist/chunk-WDXN43AK.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{E7:()=>ActionBar,FK:()=>ScrollArea,bF:()=>SyntaxHighlighter2,zH:()=>createCopyToClipboardFunction,Uv:()=>supportedLanguages,L0:()=>syntaxhighlighter_default});var chunk_FD4M6EBV=__webpack_require__("./node_modules/@storybook/components/dist/chunk-FD4M6EBV.mjs"),chunk_GN5PWX3D=__webpack_require__("./node_modules/@storybook/components/dist/chunk-GN5PWX3D.mjs"),require_markdown=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/lang/markdown.js"(exports,module){function markdown(Prism){!function(Prism2){var inner=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(pattern){return pattern=pattern.replace(//g,(function(){return inner})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+pattern+")")}var tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return tableCell})),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism2.languages.markdown=Prism2.languages.extend("markup",{}),Prism2.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Prism2.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism2.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism2.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:createInline(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:createInline(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(token){["url","bold","italic","strike","code-snippet"].forEach((function(inside){token!==inside&&(Prism2.languages.markdown[token].inside.content.inside[inside]=Prism2.languages.markdown[inside])}))})),Prism2.hooks.add("after-tokenize",(function(env){"markdown"!==env.language&&"md"!==env.language||function walkTokens(tokens){if(tokens&&"string"!=typeof tokens)for(var i=0,l=tokens.length;i",quot:'"'},fromCodePoint=String.fromCodePoint||String.fromCharCode;Prism2.languages.md=Prism2.languages.markdown}(Prism)}module.exports=markdown,markdown.displayName="markdown",markdown.aliases=["md"]}}),require_yaml=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/lang/yaml.js"(exports,module){function yaml(Prism){!function(Prism2){var anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ \t]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ \t]+"+tag.source+")?)",plainKey=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),string=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(value,flags){flags=(flags||"").replace(/m/g,"")+"m";var pattern=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return properties})).replace(/<>/g,(function(){return value}));return RegExp(pattern,flags)}Prism2.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return properties}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return properties})).replace(/<>/g,(function(){return"(?:"+plainKey+"|"+string+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},Prism2.languages.yml=Prism2.languages.yaml}(Prism)}module.exports=yaml,yaml.displayName="yaml",yaml.aliases=["yml"]}}),require_typescript=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/lang/typescript.js"(exports,module){function typescript(Prism){!function(Prism2){Prism2.languages.typescript=Prism2.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Prism2.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Prism2.languages.typescript.parameter,delete Prism2.languages.typescript["literal-property"];var typeInside=Prism2.languages.extend("typescript",{});delete typeInside["class-name"],Prism2.languages.typescript["class-name"].inside=typeInside,Prism2.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:typeInside}}}}),Prism2.languages.ts=Prism2.languages.typescript}(Prism)}module.exports=typescript,typescript.displayName="typescript",typescript.aliases=["ts"]}}),require_jsx=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/lang/jsx.js"(exports,module){function jsx(Prism){!function(Prism2){var javascript=Prism2.util.clone(Prism2.languages.javascript),space=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,spread=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re(source,flags){return source=source.replace(//g,(function(){return space})).replace(//g,(function(){return braces})).replace(//g,(function(){return spread})),RegExp(source,flags)}spread=re(spread).source,Prism2.languages.jsx=Prism2.languages.extend("markup",javascript),Prism2.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),Prism2.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,Prism2.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,Prism2.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,Prism2.languages.jsx.tag.inside.comment=javascript.comment,Prism2.languages.insertBefore("inside","attr-name",{spread:{pattern:re(//.source),inside:Prism2.languages.jsx}},Prism2.languages.jsx.tag),Prism2.languages.insertBefore("inside","special-attr",{script:{pattern:re(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism2.languages.jsx}}},Prism2.languages.jsx.tag);var stringifyToken=function(token){return token?"string"==typeof token?token:"string"==typeof token.content?token.content:token.content.map(stringifyToken).join(""):""},walkTokens=function(tokens){for(var openedTags=[],i=0;i0&&openedTags[openedTags.length-1].tagName===stringifyToken(token.content[0].content[1])&&openedTags.pop():"/>"===token.content[token.content.length-1].content||openedTags.push({tagName:stringifyToken(token.content[0].content[1]),openedBraces:0}):openedTags.length>0&&"punctuation"===token.type&&"{"===token.content?openedTags[openedTags.length-1].openedBraces++:openedTags.length>0&&openedTags[openedTags.length-1].openedBraces>0&&"punctuation"===token.type&&"}"===token.content?openedTags[openedTags.length-1].openedBraces--:notTagNorBrace=!0),(notTagNorBrace||"string"==typeof token)&&openedTags.length>0&&0===openedTags[openedTags.length-1].openedBraces){var plainText=stringifyToken(token);i0&&("string"==typeof tokens[i-1]||"plain-text"===tokens[i-1].type)&&(plainText=stringifyToken(tokens[i-1])+plainText,tokens.splice(i-1,1),i--),tokens[i]=new Prism2.Token("plain-text",plainText,null,plainText)}token.content&&"string"!=typeof token.content&&walkTokens(token.content)}};Prism2.hooks.add("after-tokenize",(function(env){"jsx"!==env.language&&"tsx"!==env.language||walkTokens(env.tokens)}))}(Prism)}module.exports=jsx,jsx.displayName="jsx",jsx.aliases=[]}}),require_tsx=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/lang/tsx.js"(exports,module){var refractorJsx=require_jsx(),refractorTypescript=require_typescript();function tsx(Prism){Prism.register(refractorJsx),Prism.register(refractorTypescript),function(Prism2){var typescript=Prism2.util.clone(Prism2.languages.typescript);Prism2.languages.tsx=Prism2.languages.extend("jsx",typescript),delete Prism2.languages.tsx.parameter,delete Prism2.languages.tsx["literal-property"];var tag=Prism2.languages.tsx.tag;tag.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag.pattern.source+")",tag.pattern.flags),tag.lookbehind=!0}(Prism)}module.exports=tsx,tsx.displayName="tsx",tsx.aliases=[]}}),require_clike=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/lang/clike.js"(exports,module){function clike(Prism){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}module.exports=clike,clike.displayName="clike",clike.aliases=[]}}),require_javascript=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/lang/javascript.js"(exports,module){function javascript(Prism){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript}module.exports=javascript,javascript.displayName="javascript",javascript.aliases=["js"]}}),require_css=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/lang/css.js"(exports,module){function css(Prism){!function(Prism2){var string=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism2.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+string.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+string.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},Prism2.languages.css.atrule.inside.rest=Prism2.languages.css;var markup=Prism2.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"))}(Prism)}module.exports=css,css.displayName="css",css.aliases=[]}}),require_markup=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/lang/markup.js"(exports,module){function markup(Prism){Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(env){"entity"===env.type&&(env.attributes.title=env.content.value.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(tagName,lang){var includedCdataInside={};includedCdataInside["language-"+lang]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[lang]},includedCdataInside.cdata=/^$/i;var inside={"included-cdata":{pattern://i,inside:includedCdataInside}};inside["language-"+lang]={pattern:/[\s\S]+/,inside:Prism.languages[lang]};var def={};def[tagName]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return tagName})),"i"),lookbehind:!0,greedy:!0,inside},Prism.languages.insertBefore("markup","cdata",def)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(attrName,lang){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+attrName+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[lang,"language-"+lang],inside:Prism.languages[lang]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml}module.exports=markup,markup.displayName="markup",markup.aliases=["html","mathml","svg","xml","ssml","atom","rss"]}}),require_immutable=(0,chunk_GN5PWX3D.P$)({"../../node_modules/xtend/immutable.js"(exports,module){module.exports=function extend(){for(var target={},i=0;i4&&"data"===normal.slice(0,4)&&valid.test(value)&&("-"===value.charAt(4)?prop=function datasetToProperty(attribute){var value=attribute.slice(5).replace(dash,camelcase);return"data"+value.charAt(0).toUpperCase()+value.slice(1)}(value):value=function datasetToAttribute(property){var value=property.slice(4);return dash.test(value)?property:(value=value.replace(cap,kebab),"-"!==value.charAt(0)&&(value="-"+value),"data"+value)}(value),Type=DefinedInfo),new Type(prop,value))};var valid=/^data[-\w.:]+$/i,dash=/-[a-z]/g,cap=/[A-Z]/g;function kebab($0){return"-"+$0.toLowerCase()}function camelcase($0){return $0.charAt(1).toUpperCase()}}}),require_hast_util_parse_selector=(0,chunk_GN5PWX3D.P$)({"../../node_modules/hast-util-parse-selector/index.js"(exports,module){module.exports=function parse(selector,defaultTagName){for(var subvalue,previous,match,value=selector||"",name=defaultTagName||"div",props={},start=0;start",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),require_character_reference_invalid=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/node_modules/character-reference-invalid/index.json"(exports,module){module.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}}}),require_is_decimal=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/node_modules/is-decimal/index.js"(exports,module){module.exports=function decimal(character){var code="string"==typeof character?character.charCodeAt(0):character;return code>=48&&code<=57}}}),require_is_hexadecimal=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/node_modules/is-hexadecimal/index.js"(exports,module){module.exports=function hexadecimal(character){var code="string"==typeof character?character.charCodeAt(0):character;return code>=97&&code<=102||code>=65&&code<=70||code>=48&&code<=57}}}),require_is_alphabetical=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/node_modules/is-alphabetical/index.js"(exports,module){module.exports=function alphabetical(character){var code="string"==typeof character?character.charCodeAt(0):character;return code>=97&&code<=122||code>=65&&code<=90}}}),require_is_alphanumerical=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/node_modules/is-alphanumerical/index.js"(exports,module){var alphabetical=require_is_alphabetical(),decimal=require_is_decimal();module.exports=function alphanumerical(character){return alphabetical(character)||decimal(character)}}}),require_decode_entity_browser=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js"(exports,module){var el;module.exports=function decodeEntity(characters){var char,entity="&"+characters+";";return(el=el||document.createElement("i")).innerHTML=entity,(59!==(char=el.textContent).charCodeAt(char.length-1)||"semi"===characters)&&char!==entity&&char}}}),require_parse_entities=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/node_modules/parse-entities/index.js"(exports,module){var legacy=require_character_entities_legacy(),invalid=require_character_reference_invalid(),decimal=require_is_decimal(),hexadecimal=require_is_hexadecimal(),alphanumerical=require_is_alphanumerical(),decodeEntity=require_decode_entity_browser();module.exports=function parseEntities(value,options){var option,key,settings={};for(key in options||(options={}),defaults)option=options[key],settings[key]=option??defaults[key];return(settings.position.indent||settings.position.start)&&(settings.indent=settings.position.indent||[],settings.position=settings.position.start),function parse(value,settings){var entityCharacters,namedEntity,terminated,characters,character,reference,following,warning,reason,output,entity,begin,start,type,test,prev,next,diff,end,additional=settings.additional,nonTerminated=settings.nonTerminated,handleText=settings.text,handleReference=settings.reference,handleWarning=settings.warning,textContext=settings.textContext,referenceContext=settings.referenceContext,warningContext=settings.warningContext,pos=settings.position,indent=settings.indent||[],length=value.length,index=0,lines=-1,column=pos.column||1,line=pos.line||1,queue="",result=[];for("string"==typeof additional&&(additional=additional.charCodeAt(0)),prev=now(),warning=handleWarning?parseError:noop,index--,length++;++index65535&&(output+=fromCharCode((reference-=65536)>>>10|55296),reference=56320|1023&reference),reference=output+fromCharCode(reference))):type!==name&&warning(4,diff)),reference?(flush(),prev=now(),index=end-1,column+=end-start+1,result.push(reference),(next=now()).offset++,handleReference&&handleReference.call(referenceContext,reference,{start:prev,end:next},value.slice(start-1,end)),prev=next):(characters=value.slice(start-1,end),queue+=characters,column+=characters.length,index=end-1)}else 10===character&&(line++,lines++,column=0),character==character?(queue+=fromCharCode(character),column++):flush();return result.join("");function now(){return{line,column,offset:index+(pos.offset||0)}}function parseError(code,offset){var position=now();position.column+=offset,position.offset+=offset,handleWarning.call(warningContext,messages[code],position,code)}function flush(){queue&&(result.push(queue),handleText&&handleText.call(textContext,queue,{start:prev,end:now()}),queue="")}}(value,settings)};var own={}.hasOwnProperty,fromCharCode=String.fromCharCode,noop=Function.prototype,defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},name="named",hexa="hexadecimal",deci="decimal",bases={};bases[hexa]=16,bases[deci]=10;var tests={};tests[name]=alphanumerical,tests[deci]=decimal,tests[hexa]=hexadecimal;var messages={};function prohibited(code){return code>=55296&&code<=57343||code>1114111}function disallowed(code){return code>=1&&code<=8||11===code||code>=13&&code<=31||code>=127&&code<=159||code>=64976&&code<=65007||!(65535&~code)||65534==(65535&code)}messages[1]="Named character references must be terminated by a semicolon",messages[2]="Numeric character references must be terminated by a semicolon",messages[3]="Named character references cannot be empty",messages[4]="Numeric character references cannot be empty",messages[5]="Named character references must be known",messages[6]="Numeric character references cannot be disallowed",messages[7]="Numeric character references cannot be outside the permissible Unicode range"}}),require_prism_core=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(exports,module){var Prism=function(_self2){var lang=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,uniqueId=0,plainTextGrammar={},_={manual:_self2.Prism&&_self2.Prism.manual,disableWorkerMessageHandler:_self2.Prism&&_self2.Prism.disableWorkerMessageHandler,util:{encode:function encode(tokens){return tokens instanceof Token?new Token(tokens.type,encode(tokens.content),tokens.alias):Array.isArray(tokens)?tokens.map(encode):tokens.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(err){var src=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack)||[])[1];if(src){var scripts=document.getElementsByTagName("script");for(var i in scripts)if(scripts[i].src==src)return scripts[i]}return null}},isActive:function(element,className,defaultActivation){for(var no="no-"+className;element;){var classList=element.classList;if(classList.contains(className))return!0;if(classList.contains(no))return!1;element=element.parentElement}return!!defaultActivation}},languages:{plain:plainTextGrammar,plaintext:plainTextGrammar,text:plainTextGrammar,txt:plainTextGrammar,extend:function(id,redef){var lang2=_.util.clone(_.languages[id]);for(var key in redef)lang2[key]=redef[key];return lang2},insertBefore:function(inside,before,insert,root){var grammar=(root=root||_.languages)[inside],ret={};for(var token in grammar)if(grammar.hasOwnProperty(token)){if(token==before)for(var newToken in insert)insert.hasOwnProperty(newToken)&&(ret[newToken]=insert[newToken]);insert.hasOwnProperty(token)||(ret[token]=grammar[token])}var old=root[inside];return root[inside]=ret,_.languages.DFS(_.languages,(function(key,value){value===old&&key!=inside&&(this[key]=ret)})),ret},DFS:function DFS(o,callback,type,visited){visited=visited||{};var objId=_.util.objId;for(var i in o)if(o.hasOwnProperty(i)){callback.call(o,i,o[i],type||i);var property=o[i],propertyType=_.util.type(property);"Object"!==propertyType||visited[objId(property)]?"Array"===propertyType&&!visited[objId(property)]&&(visited[objId(property)]=!0,DFS(property,callback,i,visited)):(visited[objId(property)]=!0,DFS(property,callback,null,visited))}}},plugins:{},highlightAll:function(async,callback){_.highlightAllUnder(document,async,callback)},highlightAllUnder:function(container,async,callback){var env={callback,container,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};_.hooks.run("before-highlightall",env),env.elements=Array.prototype.slice.apply(env.container.querySelectorAll(env.selector)),_.hooks.run("before-all-elements-highlight",env);for(var element,i=0;element=env.elements[i++];)_.highlightElement(element,!0===async,env.callback)},highlightElement:function(element,async,callback){var language=_.util.getLanguage(element),grammar=_.languages[language];_.util.setLanguage(element,language);var parent=element.parentElement;parent&&"pre"===parent.nodeName.toLowerCase()&&_.util.setLanguage(parent,language);var env={element,language,grammar,code:element.textContent};function insertHighlightedCode(highlightedCode){env.highlightedCode=highlightedCode,_.hooks.run("before-insert",env),env.element.innerHTML=env.highlightedCode,_.hooks.run("after-highlight",env),_.hooks.run("complete",env),callback&&callback.call(env.element)}if(_.hooks.run("before-sanity-check",env),(parent=env.element.parentElement)&&"pre"===parent.nodeName.toLowerCase()&&!parent.hasAttribute("tabindex")&&parent.setAttribute("tabindex","0"),!env.code)return _.hooks.run("complete",env),void(callback&&callback.call(env.element));if(_.hooks.run("before-highlight",env),env.grammar)if(async&&_self2.Worker){var worker=new Worker(_.filename);worker.onmessage=function(evt){insertHighlightedCode(evt.data)},worker.postMessage(JSON.stringify({language:env.language,code:env.code,immediateClose:!0}))}else insertHighlightedCode(_.highlight(env.code,env.grammar,env.language));else insertHighlightedCode(_.util.encode(env.code))},highlight:function(text,grammar,language){var env={code:text,grammar,language};if(_.hooks.run("before-tokenize",env),!env.grammar)throw new Error('The language "'+env.language+'" has no grammar.');return env.tokens=_.tokenize(env.code,env.grammar),_.hooks.run("after-tokenize",env),Token.stringify(_.util.encode(env.tokens),env.language)},tokenize:function(text,grammar){var rest=grammar.rest;if(rest){for(var token in rest)grammar[token]=rest[token];delete grammar.rest}var tokenList=new LinkedList;return addAfter(tokenList,tokenList.head,text),matchGrammar(text,tokenList,grammar,tokenList.head,0),function toArray(list){for(var array=[],node=list.head.next;node!==list.tail;)array.push(node.value),node=node.next;return array}(tokenList)},hooks:{all:{},add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[],hooks[name].push(callback)},run:function(name,env){var callbacks=_.hooks.all[name];if(callbacks&&callbacks.length)for(var callback,i=0;callback=callbacks[i++];)callback(env)}},Token};function Token(type,content,alias,matchedStr){this.type=type,this.content=content,this.alias=alias,this.length=0|(matchedStr||"").length}function matchPattern(pattern,pos,text,lookbehind){pattern.lastIndex=pos;var match=pattern.exec(text);if(match&&lookbehind&&match[1]){var lookbehindLength=match[1].length;match.index+=lookbehindLength,match[0]=match[0].slice(lookbehindLength)}return match}function matchGrammar(text,tokenList,grammar,startNode,startPos,rematch){for(var token in grammar)if(grammar.hasOwnProperty(token)&&grammar[token]){var patterns=grammar[token];patterns=Array.isArray(patterns)?patterns:[patterns];for(var j=0;j=rematch.reach);pos+=currentNode.value.length,currentNode=currentNode.next){var str=currentNode.value;if(tokenList.length>text.length)return;if(!(str instanceof Token)){var match,removeCount=1;if(greedy){if(!(match=matchPattern(pattern,pos,text,lookbehind))||match.index>=text.length)break;var from=match.index,to=match.index+match[0].length,p=pos;for(p+=currentNode.value.length;from>=p;)p+=(currentNode=currentNode.next).value.length;if(pos=p-=currentNode.value.length,currentNode.value instanceof Token)continue;for(var k=currentNode;k!==tokenList.tail&&(prematch.reach&&(rematch.reach=reach);var removeFrom=currentNode.prev;if(before&&(removeFrom=addAfter(tokenList,removeFrom,before),pos+=before.length),removeRange(tokenList,removeFrom,removeCount),currentNode=addAfter(tokenList,removeFrom,new Token(token,inside?_.tokenize(matchStr,inside):matchStr,alias,matchStr)),after&&addAfter(tokenList,currentNode,after),removeCount>1){var nestedRematch={cause:token+","+j,reach};matchGrammar(text,tokenList,grammar,currentNode.prev,pos,nestedRematch),rematch&&nestedRematch.reach>rematch.reach&&(rematch.reach=nestedRematch.reach)}}}}}}function LinkedList(){var head={value:null,prev:null,next:null},tail={value:null,prev:head,next:null};head.next=tail,this.head=head,this.tail=tail,this.length=0}function addAfter(list,node,value){var next=node.next,newNode={value,prev:node,next};return node.next=newNode,next.prev=newNode,list.length++,newNode}function removeRange(list,node,count){for(var next=node.next,i=0;i"+env.content+""},!_self2.document)return _self2.addEventListener&&(_.disableWorkerMessageHandler||_self2.addEventListener("message",(function(evt){var message=JSON.parse(evt.data),lang2=message.language,code=message.code,immediateClose=message.immediateClose;_self2.postMessage(_.highlight(code,_.languages[lang2],lang2)),immediateClose&&_self2.close()}),!1)),_;var script=_.util.currentScript();function highlightAutomaticallyCallback(){_.manual||_.highlightAll()}if(script&&(_.filename=script.src,script.hasAttribute("data-manual")&&(_.manual=!0)),!_.manual){var readyState=document.readyState;"loading"===readyState||"interactive"===readyState&&script&&script.defer?document.addEventListener("DOMContentLoaded",highlightAutomaticallyCallback):window.requestAnimationFrame?window.requestAnimationFrame(highlightAutomaticallyCallback):window.setTimeout(highlightAutomaticallyCallback,16)}return _}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});typeof module<"u"&&module.exports&&(module.exports=Prism),typeof __webpack_require__.g<"u"&&(__webpack_require__.g.Prism=Prism)}}),require_core=(0,chunk_GN5PWX3D.P$)({"../../node_modules/refractor/core.js"(exports,module){var ctx="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof __webpack_require__.g?__webpack_require__.g:{},restore=function capture(){var defined="Prism"in ctx,current=defined?ctx.Prism:void 0;return function restore2(){defined?ctx.Prism=current:delete ctx.Prism,defined=void 0,current=void 0}}();ctx.Prism={manual:!0,disableWorkerMessageHandler:!0};var h=require_hastscript(),decode=require_parse_entities(),Prism=require_prism_core(),markup=require_markup(),css=require_css(),clike=require_clike(),js=require_javascript();restore();var own={}.hasOwnProperty;function Refractor(){}Refractor.prototype=Prism;var refract=new Refractor;function register(grammar){if("function"!=typeof grammar||!grammar.displayName)throw new Error("Expected `function` for `grammar`, got `"+grammar+"`");void 0===refract.languages[grammar.displayName]&&grammar(refract)}module.exports=refract,refract.highlight=function highlight(value,name){var grammar,sup=Prism.highlight;if("string"!=typeof value)throw new Error("Expected `string` for `value`, got `"+value+"`");if("Object"===refract.util.type(name))grammar=name,name=null;else{if("string"!=typeof name)throw new Error("Expected `string` for `name`, got `"+name+"`");if(!own.call(refract.languages,name))throw new Error("Unknown language: `"+name+"` is not registered");grammar=refract.languages[name]}return sup.call(this,value,grammar,name)},refract.register=register,refract.alias=function alias(name,alias2){var key,list,length,index,languages=refract.languages,map=name;for(key in alias2&&((map={})[name]=alias2),map)for(list=map[key],length=(list="string"==typeof list?[list]:list).length,index=-1;++index>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+envVars),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism2.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+envVars),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},commandAfterHeredoc.inside=Prism2.languages.bash;for(var toBeCopied=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside=insideString.variable[1].inside,i=0;i/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),flags)}Prism2.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+Prism2.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),Prism2.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+Prism2.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),Prism2.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),Prism2.languages.insertBefore("javascript","keyword",{imports:{pattern:withId(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:Prism2.languages.javascript},exports:{pattern:withId(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:Prism2.languages.javascript}}),Prism2.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),Prism2.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),Prism2.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:withId(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var maybeClassNameTokens=["function","function-variable","method","method-variable","property-access"],i=0;i0)){var mutationEnd=findClosingBracket(/^\{$/,/^\}$/);if(-1===mutationEnd)continue;for(var i=currentIndex;i=0&&addAlias(varToken,"variable-input")}}}}function getToken(offset){return validTokens[currentIndex+offset]}function isTokenType(types,offset){offset=offset||0;for(var i2=0;i2arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:{},stylesheet=arguments.length>2?arguments[2]:void 0;return function getClassNameCombinations(classNames){if(0===classNames.length||1===classNames.length)return classNames;var key=classNames.join(".");return classNameCombinations[key]||(classNameCombinations[key]=function powerSetPermutations(arr){var arrLength=arr.length;return 0===arrLength||1===arrLength?arr:2===arrLength?[arr[0],arr[1],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0])]:3===arrLength?[arr[0],arr[1],arr[2],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2]),"".concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0])]:arrLength>=4?[arr[0],arr[1],arr[2],arr[3],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3]),"".concat(arr[3],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1],".").concat(arr[0])]:void 0}(classNames)),classNameCombinations[key]}(classNames.filter((function(className){return"token"!==className}))).reduce((function(styleObject,className){return _objectSpread(_objectSpread({},styleObject),stylesheet[className])}),elementStyle)}function createClassNameString(classNames){return classNames.join(" ")}function createElement(_ref){var node=_ref.node,stylesheet=_ref.stylesheet,_ref$style=_ref.style,style=void 0===_ref$style?{}:_ref$style,useInlineStyles=_ref.useInlineStyles,key=_ref.key,properties=node.properties,type=node.type,TagName=node.tagName,value=node.value;if("text"===type)return value;if(TagName){var props,childrenCreator=function createChildren(stylesheet,useInlineStyles){var childrenCount=0;return function(children){return childrenCount+=1,children.map((function(child,i){return createElement({node:child,stylesheet,useInlineStyles,key:"code-segment-".concat(childrenCount,"-").concat(i)})}))}}(stylesheet,useInlineStyles);if(useInlineStyles){var allStylesheetSelectors=Object.keys(stylesheet).reduce((function(classes,selector){return selector.split(".").forEach((function(className2){classes.includes(className2)||classes.push(className2)})),classes}),[]),startingClassName=properties.className&&properties.className.includes("token")?["token"]:[],className=properties.className&&startingClassName.concat(properties.className.filter((function(className2){return!allStylesheetSelectors.includes(className2)})));props=_objectSpread(_objectSpread({},properties),{},{className:createClassNameString(className)||void 0,style:createStyleObject(properties.className,Object.assign({},properties.style,style),stylesheet)})}else props=_objectSpread(_objectSpread({},properties),{},{className:createClassNameString(properties.className)});var children=childrenCreator(node.children);return react.createElement(TagName,(0,chunk_FD4M6EBV.r)({key},props),children)}}var checkForListedLanguage_default=function(astGenerator,language){return-1!==astGenerator.listLanguages().indexOf(language)},_excluded=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ownKeys2(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:[],newTree=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=0;i2&&void 0!==arguments[2]?arguments[2]:[];return wrapLines||className.length>0?function createWrappedLine(children2,lineNumber2){return createLineElement({children:children2,lineNumber:lineNumber2,lineNumberStyle,largestLineNumber,showInlineLineNumbers,lineProps,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers,wrapLongLines})}(children2,lineNumber2,className):function createUnwrappedLine(children2,lineNumber2){if(showLineNumbers&&lineNumber2&&showInlineLineNumbers){var inlineLineNumberStyle=assembleLineNumberStyles(lineNumberStyle,lineNumber2,largestLineNumber);children2.unshift(getInlineLineNumber(lineNumber2,inlineLineNumberStyle))}return children2}(children2,lineNumber2)}for(var _loop=function(){var node=tree[index],value=node.children[0].value;if(function getNewLines(str){return str.match(newLineRegex)}(value)){var splitValue=value.split("\n");splitValue.forEach((function(text,i){var lineNumber2=showLineNumbers&&newTree.length+startingLineNumber,newChild={type:"text",value:"".concat(text,"\n")};if(0===i){var _line=createLine(tree.slice(lastLineBreakIndex+1,index).concat(createLineElement({children:[newChild],className:node.properties.className})),lineNumber2);newTree.push(_line)}else if(i===splitValue.length-1){var stringChild=tree[index+1]&&tree[index+1].children&&tree[index+1].children[0],lastLineInPreviousSpan={type:"text",value:"".concat(text)};if(stringChild){var newElem=createLineElement({children:[lastLineInPreviousSpan],className:node.properties.className});tree.splice(index+1,0,newElem)}else{var _line2=createLine([lastLineInPreviousSpan],lineNumber2,node.properties.className);newTree.push(_line2)}}else{var _line3=createLine([newChild],lineNumber2,node.properties.className);newTree.push(_line3)}})),lastLineBreakIndex=index}index++};index=0)&&Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}(_ref7,_excluded);astGenerator=astGenerator||defaultAstGenerator;var allLineNumbers=showLineNumbers?react.createElement(AllLineNumbers,{containerStyle:lineNumberContainerStyle,codeStyle:codeTagProps.style||{},numberStyle:lineNumberStyle,startingLineNumber,codeString:code}):null,defaultPreStyle=style.hljs||style['pre[class*="language-"]']||{backgroundColor:"#fff"},generatorClassName=isHighlightJs(astGenerator)?"hljs":"prismjs",preProps=useInlineStyles?Object.assign({},rest,{style:Object.assign({},defaultPreStyle,customStyle)}):Object.assign({},rest,{className:rest.className?"".concat(generatorClassName," ").concat(rest.className):generatorClassName,style:Object.assign({},customStyle)});if(codeTagProps.style=_objectSpread2(_objectSpread2({},codeTagProps.style),{},wrapLongLines?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"}),!astGenerator)return react.createElement(PreTag,preProps,allLineNumbers,react.createElement(CodeTag,codeTagProps,code));(void 0===wrapLines&&renderer||wrapLongLines)&&(wrapLines=!0),renderer=renderer||defaultRenderer;var defaultCodeValue=[{type:"text",value:code}],codeTree=function getCodeTree(_ref6){var astGenerator=_ref6.astGenerator,language=_ref6.language,code=_ref6.code,defaultCodeValue=_ref6.defaultCodeValue;if(isHighlightJs(astGenerator)){var hasLanguage=checkForListedLanguage_default(astGenerator,language);return"text"===language?{value:defaultCodeValue,language:"text"}:hasLanguage?astGenerator.highlight(language,code):astGenerator.highlightAuto(code)}try{return language&&"text"!==language?{value:astGenerator.highlight(code,language)}:{value:defaultCodeValue}}catch{return{value:defaultCodeValue}}}({astGenerator,language,code,defaultCodeValue});null===codeTree.language&&(codeTree.value=defaultCodeValue);var rows=processLines(codeTree,wrapLines,lineProps,showLineNumbers,showInlineLineNumbers,startingLineNumber,codeTree.value.length+startingLineNumber,lineNumberStyle,wrapLongLines);return react.createElement(PreTag,preProps,react.createElement(CodeTag,codeTagProps,!showInlineLineNumbers&&allLineNumbers,renderer({rows,stylesheet:style,useInlineStyles})))}}(import_core.default,{});SyntaxHighlighter.registerLanguage=function(_,language){return import_core.default.register(language)},SyntaxHighlighter.alias=function(name,aliases){return import_core.default.alias(name,aliases)};var prism_light_default=SyntaxHighlighter,Container=dist.I4.div((({theme})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:theme.background.content,zIndex:1}))),ActionButton=dist.I4.button((({theme})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:theme.color.defaultText,background:theme.background.content,fontSize:12,lineHeight:"16px",fontFamily:theme.typography.fonts.base,fontWeight:theme.typography.weight.bold,borderTop:`1px solid ${theme.appBorderColor}`,borderLeft:`1px solid ${theme.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${theme.appBorderColor}`},"& + *":{borderLeft:`1px solid ${theme.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${theme.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}})),(({disabled})=>disabled&&{cursor:"not-allowed",opacity:.5}));ActionButton.displayName="ActionButton";var ActionBar=({actionItems,...props})=>react.createElement(Container,{...props},actionItems.map((({title,className,onClick,disabled},index)=>react.createElement(ActionButton,{key:index,className,onClick,disabled},title)))),$8927f6f2acc4f386$export$250ffa63cdc0d034=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((primitive,node)=>{let Node=(0,react.forwardRef)(((props,forwardedRef)=>{let{asChild,...primitiveProps}=props,Comp=asChild?react_slot_dist.DX:node;return(0,react.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,react.createElement)(Comp,(0,chunk_FD4M6EBV.r)({},primitiveProps,{ref:forwardedRef}))}));return Node.displayName=`Primitive.${node}`,{...primitive,[node]:Node}}),{});function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs){return(0,react.useCallback)(function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs){return node=>refs.forEach((ref=>function $6ed0406888f73fc4$var$setRef(ref,value){"function"==typeof ref?ref(value):null!=ref&&(ref.current=value)}(ref,node)))}(...refs),refs)}var $9f79659886946c16$export$e5c5a5f917a5871c=globalThis?.document?react.useLayoutEffect:()=>{};var $921a889cee6df7e8$export$99c2b779aa4e8b8b=props=>{let{present,children}=props,presence=function $921a889cee6df7e8$var$usePresence(present){let[node1,setNode]=(0,react.useState)(),stylesRef=(0,react.useRef)({}),prevPresentRef=(0,react.useRef)(present),prevAnimationNameRef=(0,react.useRef)("none"),initialState=present?"mounted":"unmounted",[state,send]=function $fe963b355347cc68$export$3e6543de14f8614f(initialState,machine){return(0,react.useReducer)(((state,event)=>machine[state][event]??state),initialState)}(initialState,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,react.useEffect)((()=>{let currentAnimationName=$921a889cee6df7e8$var$getAnimationName(stylesRef.current);prevAnimationNameRef.current="mounted"===state?currentAnimationName:"none"}),[state]),$9f79659886946c16$export$e5c5a5f917a5871c((()=>{let styles=stylesRef.current,wasPresent=prevPresentRef.current;if(wasPresent!==present){let prevAnimationName=prevAnimationNameRef.current,currentAnimationName=$921a889cee6df7e8$var$getAnimationName(styles);send(present?"MOUNT":"none"===currentAnimationName||"none"===styles?.display?"UNMOUNT":wasPresent&&prevAnimationName!==currentAnimationName?"ANIMATION_OUT":"UNMOUNT"),prevPresentRef.current=present}}),[present,send]),$9f79659886946c16$export$e5c5a5f917a5871c((()=>{if(node1){let handleAnimationEnd=event=>{let isCurrentAnimation=$921a889cee6df7e8$var$getAnimationName(stylesRef.current).includes(event.animationName);event.target===node1&&isCurrentAnimation&&(0,react_dom.flushSync)((()=>send("ANIMATION_END")))},handleAnimationStart=event=>{event.target===node1&&(prevAnimationNameRef.current=$921a889cee6df7e8$var$getAnimationName(stylesRef.current))};return node1.addEventListener("animationstart",handleAnimationStart),node1.addEventListener("animationcancel",handleAnimationEnd),node1.addEventListener("animationend",handleAnimationEnd),()=>{node1.removeEventListener("animationstart",handleAnimationStart),node1.removeEventListener("animationcancel",handleAnimationEnd),node1.removeEventListener("animationend",handleAnimationEnd)}}send("ANIMATION_END")}),[node1,send]),{isPresent:["mounted","unmountSuspended"].includes(state),ref:(0,react.useCallback)((node=>{node&&(stylesRef.current=getComputedStyle(node)),setNode(node)}),[])}}(present),child="function"==typeof children?children({present:presence.isPresent}):react.Children.only(children),ref=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(presence.ref,child.ref);return"function"==typeof children||presence.isPresent?(0,react.cloneElement)(child,{ref}):null};function $921a889cee6df7e8$var$getAnimationName(styles){return styles?.animationName||"none"}function $c512c27ab02ef895$var$composeContextScopes(...scopes){let baseScope=scopes[0];if(1===scopes.length)return baseScope;let createScope1=()=>{let scopeHooks=scopes.map((createScope=>({useScope:createScope(),scopeName:createScope.scopeName})));return function(overrideScopes){let nextScopes1=scopeHooks.reduce(((nextScopes,{useScope,scopeName})=>({...nextScopes,...useScope(overrideScopes)[`__scope${scopeName}`]})),{});return(0,react.useMemo)((()=>({[`__scope${baseScope.scopeName}`]:nextScopes1})),[nextScopes1])}};return createScope1.scopeName=baseScope.scopeName,createScope1}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback){let callbackRef=(0,react.useRef)(callback);return(0,react.useEffect)((()=>{callbackRef.current=callback})),(0,react.useMemo)((()=>(...args)=>{var _callbackRef$current;return null===(_callbackRef$current=callbackRef.current)||void 0===_callbackRef$current?void 0:_callbackRef$current.call(callbackRef,...args)}),[])}$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";var $f631663db3294ace$var$DirectionContext=(0,react.createContext)(void 0);function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler,ourEventHandler,{checkForDefaultPrevented=!0}={}){return function(event){if(originalEventHandler?.(event),!1===checkForDefaultPrevented||!event.defaultPrevented)return ourEventHandler?.(event)}}var[$57acba87d6e25586$var$createScrollAreaContext,$57acba87d6e25586$export$488468afe3a6f2b1]=function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName,createContextScopeDeps=[]){let defaultContexts=[],createScope=()=>{let scopeContexts=defaultContexts.map((defaultContext=>(0,react.createContext)(defaultContext)));return function(scope){let contexts=scope?.[scopeName]||scopeContexts;return(0,react.useMemo)((()=>({[`__scope${scopeName}`]:{...scope,[scopeName]:contexts}})),[scope,contexts])}};return createScope.scopeName=scopeName,[function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName,defaultContext){let BaseContext=(0,react.createContext)(defaultContext),index=defaultContexts.length;function Provider(props){let{scope,children,...context}=props,Context=scope?.[scopeName][index]||BaseContext,value=(0,react.useMemo)((()=>context),Object.values(context));return(0,react.createElement)(Context.Provider,{value},children)}return defaultContexts=[...defaultContexts,defaultContext],Provider.displayName=rootComponentName+"Provider",[Provider,function useContext$1(consumerName,scope){let Context=scope?.[scopeName][index]||BaseContext,context=(0,react.useContext)(Context);if(context)return context;if(void 0!==defaultContext)return defaultContext;throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``)}]},$c512c27ab02ef895$var$composeContextScopes(createScope,...createContextScopeDeps)]}("ScrollArea"),[$57acba87d6e25586$var$ScrollAreaProvider,$57acba87d6e25586$var$useScrollAreaContext]=$57acba87d6e25586$var$createScrollAreaContext("ScrollArea"),$57acba87d6e25586$export$ccf8d8d7bbf3c2cc=(0,react.forwardRef)(((props,forwardedRef)=>{let{__scopeScrollArea,type="hover",dir,scrollHideDelay=600,...scrollAreaProps}=props,[scrollArea,setScrollArea]=(0,react.useState)(null),[viewport,setViewport]=(0,react.useState)(null),[content,setContent]=(0,react.useState)(null),[scrollbarX,setScrollbarX]=(0,react.useState)(null),[scrollbarY,setScrollbarY]=(0,react.useState)(null),[cornerWidth,setCornerWidth]=(0,react.useState)(0),[cornerHeight,setCornerHeight]=(0,react.useState)(0),[scrollbarXEnabled,setScrollbarXEnabled]=(0,react.useState)(!1),[scrollbarYEnabled,setScrollbarYEnabled]=(0,react.useState)(!1),composedRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,(node=>setScrollArea(node))),direction=function $f631663db3294ace$export$b39126d51d94e6f3(localDir){let globalDir=(0,react.useContext)($f631663db3294ace$var$DirectionContext);return localDir||globalDir||"ltr"}(dir);return(0,react.createElement)($57acba87d6e25586$var$ScrollAreaProvider,{scope:__scopeScrollArea,type,dir:direction,scrollHideDelay,scrollArea,viewport,onViewportChange:setViewport,content,onContentChange:setContent,scrollbarX,onScrollbarXChange:setScrollbarX,scrollbarXEnabled,onScrollbarXEnabledChange:setScrollbarXEnabled,scrollbarY,onScrollbarYChange:setScrollbarY,scrollbarYEnabled,onScrollbarYEnabledChange:setScrollbarYEnabled,onCornerWidthChange:setCornerWidth,onCornerHeightChange:setCornerHeight},(0,react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,(0,chunk_FD4M6EBV.r)({dir:direction},scrollAreaProps,{ref:composedRefs,style:{position:"relative","--radix-scroll-area-corner-width":cornerWidth+"px","--radix-scroll-area-corner-height":cornerHeight+"px",...props.style}})))})),$57acba87d6e25586$export$a21cbf9f11fca853=(0,react.forwardRef)(((props,forwardedRef)=>{let{__scopeScrollArea,children,...viewportProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaViewport",__scopeScrollArea),composedRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,(0,react.useRef)(null),context.onViewportChange);return(0,react.createElement)(react.Fragment,null,(0,react.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,(0,chunk_FD4M6EBV.r)({"data-radix-scroll-area-viewport":""},viewportProps,{ref:composedRefs,style:{overflowX:context.scrollbarXEnabled?"scroll":"hidden",overflowY:context.scrollbarYEnabled?"scroll":"hidden",...props.style}}),(0,react.createElement)("div",{ref:context.onContentChange,style:{minWidth:"100%",display:"table"}},children)))})),$57acba87d6e25586$export$2fabd85d0eba3c57=(0,react.forwardRef)(((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaScrollbar",props.__scopeScrollArea),{onScrollbarXEnabledChange,onScrollbarYEnabledChange}=context,isHorizontal="horizontal"===props.orientation;return(0,react.useEffect)((()=>(isHorizontal?onScrollbarXEnabledChange(!0):onScrollbarYEnabledChange(!0),()=>{isHorizontal?onScrollbarXEnabledChange(!1):onScrollbarYEnabledChange(!1)})),[isHorizontal,onScrollbarXEnabledChange,onScrollbarYEnabledChange]),"hover"===context.type?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarHover,(0,chunk_FD4M6EBV.r)({},scrollbarProps,{ref:forwardedRef,forceMount})):"scroll"===context.type?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarScroll,(0,chunk_FD4M6EBV.r)({},scrollbarProps,{ref:forwardedRef,forceMount})):"auto"===context.type?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarAuto,(0,chunk_FD4M6EBV.r)({},scrollbarProps,{ref:forwardedRef,forceMount})):"always"===context.type?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarVisible,(0,chunk_FD4M6EBV.r)({},scrollbarProps,{ref:forwardedRef})):null})),$57acba87d6e25586$var$ScrollAreaScrollbarHover=(0,react.forwardRef)(((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaScrollbar",props.__scopeScrollArea),[visible,setVisible]=(0,react.useState)(!1);return(0,react.useEffect)((()=>{let scrollArea=context.scrollArea,hideTimer=0;if(scrollArea){let handlePointerEnter=()=>{window.clearTimeout(hideTimer),setVisible(!0)},handlePointerLeave=()=>{hideTimer=window.setTimeout((()=>setVisible(!1)),context.scrollHideDelay)};return scrollArea.addEventListener("pointerenter",handlePointerEnter),scrollArea.addEventListener("pointerleave",handlePointerLeave),()=>{window.clearTimeout(hideTimer),scrollArea.removeEventListener("pointerenter",handlePointerEnter),scrollArea.removeEventListener("pointerleave",handlePointerLeave)}}}),[context.scrollArea,context.scrollHideDelay]),(0,react.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||visible},(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarAuto,(0,chunk_FD4M6EBV.r)({"data-state":visible?"visible":"hidden"},scrollbarProps,{ref:forwardedRef})))})),$57acba87d6e25586$var$ScrollAreaScrollbarScroll=(0,react.forwardRef)(((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaScrollbar",props.__scopeScrollArea),isHorizontal="horizontal"===props.orientation,debounceScrollEnd=$57acba87d6e25586$var$useDebounceCallback((()=>send("SCROLL_END")),100),[state,send]=function $6c2e24571c90391f$export$3e6543de14f8614f(initialState,machine){return(0,react.useReducer)(((state,event)=>machine[state][event]??state),initialState)}("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return(0,react.useEffect)((()=>{if("idle"===state){let hideTimer=window.setTimeout((()=>send("HIDE")),context.scrollHideDelay);return()=>window.clearTimeout(hideTimer)}}),[state,context.scrollHideDelay,send]),(0,react.useEffect)((()=>{let viewport=context.viewport,scrollDirection=isHorizontal?"scrollLeft":"scrollTop";if(viewport){let prevScrollPos=viewport[scrollDirection],handleScroll=()=>{let scrollPos=viewport[scrollDirection];prevScrollPos!==scrollPos&&(send("SCROLL"),debounceScrollEnd()),prevScrollPos=scrollPos};return viewport.addEventListener("scroll",handleScroll),()=>viewport.removeEventListener("scroll",handleScroll)}}),[context.viewport,isHorizontal,send,debounceScrollEnd]),(0,react.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||"hidden"!==state},(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarVisible,(0,chunk_FD4M6EBV.r)({"data-state":"hidden"===state?"hidden":"visible"},scrollbarProps,{ref:forwardedRef,onPointerEnter:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter,(()=>send("POINTER_ENTER"))),onPointerLeave:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave,(()=>send("POINTER_LEAVE")))})))})),$57acba87d6e25586$var$ScrollAreaScrollbarAuto=(0,react.forwardRef)(((props,forwardedRef)=>{let context=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaScrollbar",props.__scopeScrollArea),{forceMount,...scrollbarProps}=props,[visible,setVisible]=(0,react.useState)(!1),isHorizontal="horizontal"===props.orientation,handleResize=$57acba87d6e25586$var$useDebounceCallback((()=>{if(context.viewport){let isOverflowX=context.viewport.offsetWidth{let{orientation="vertical",...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaScrollbar",props.__scopeScrollArea),thumbRef=(0,react.useRef)(null),pointerOffsetRef=(0,react.useRef)(0),[sizes,setSizes]=(0,react.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),thumbRatio=$57acba87d6e25586$var$getThumbRatio(sizes.viewport,sizes.content),commonProps={...scrollbarProps,sizes,onSizesChange:setSizes,hasThumb:thumbRatio>0&&thumbRatio<1,onThumbChange:thumb=>thumbRef.current=thumb,onThumbPointerUp:()=>pointerOffsetRef.current=0,onThumbPointerDown:pointerPos=>pointerOffsetRef.current=pointerPos};function getScrollPosition(pointerPos,dir){return function $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos,pointerOffset,sizes,dir="ltr"){let thumbSizePx=$57acba87d6e25586$var$getThumbSize(sizes),thumbCenter=thumbSizePx/2,offset=pointerOffset||thumbCenter,thumbOffsetFromEnd=thumbSizePx-offset,minPointerPos=sizes.scrollbar.paddingStart+offset,maxPointerPos=sizes.scrollbar.size-sizes.scrollbar.paddingEnd-thumbOffsetFromEnd,maxScrollPos=sizes.content-sizes.viewport,scrollRange="ltr"===dir?[0,maxScrollPos]:[-1*maxScrollPos,0];return $57acba87d6e25586$var$linearScale([minPointerPos,maxPointerPos],scrollRange)(pointerPos)}(pointerPos,pointerOffsetRef.current,sizes,dir)}return"horizontal"===orientation?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarX,(0,chunk_FD4M6EBV.r)({},commonProps,{ref:forwardedRef,onThumbPositionChange:()=>{if(context.viewport&&thumbRef.current){let offset=$57acba87d6e25586$var$getThumbOffsetFromScroll(context.viewport.scrollLeft,sizes,context.dir);thumbRef.current.style.transform=`translate3d(${offset}px, 0, 0)`}},onWheelScroll:scrollPos=>{context.viewport&&(context.viewport.scrollLeft=scrollPos)},onDragScroll:pointerPos=>{context.viewport&&(context.viewport.scrollLeft=getScrollPosition(pointerPos,context.dir))}})):"vertical"===orientation?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarY,(0,chunk_FD4M6EBV.r)({},commonProps,{ref:forwardedRef,onThumbPositionChange:()=>{if(context.viewport&&thumbRef.current){let offset=$57acba87d6e25586$var$getThumbOffsetFromScroll(context.viewport.scrollTop,sizes);thumbRef.current.style.transform=`translate3d(0, ${offset}px, 0)`}},onWheelScroll:scrollPos=>{context.viewport&&(context.viewport.scrollTop=scrollPos)},onDragScroll:pointerPos=>{context.viewport&&(context.viewport.scrollTop=getScrollPosition(pointerPos))}})):null})),$57acba87d6e25586$var$ScrollAreaScrollbarX=(0,react.forwardRef)(((props,forwardedRef)=>{let{sizes,onSizesChange,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaScrollbar",props.__scopeScrollArea),[computedStyle,setComputedStyle]=(0,react.useState)(),ref=(0,react.useRef)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onScrollbarXChange);return(0,react.useEffect)((()=>{ref.current&&setComputedStyle(getComputedStyle(ref.current))}),[ref]),(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarImpl,(0,chunk_FD4M6EBV.r)({"data-orientation":"horizontal"},scrollbarProps,{ref:composeRefs,sizes,style:{bottom:0,left:"rtl"===context.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===context.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":$57acba87d6e25586$var$getThumbSize(sizes)+"px",...props.style},onThumbPointerDown:pointerPos=>props.onThumbPointerDown(pointerPos.x),onDragScroll:pointerPos=>props.onDragScroll(pointerPos.x),onWheelScroll:(event,maxScrollPos)=>{if(context.viewport){let scrollPos=context.viewport.scrollLeft+event.deltaX;props.onWheelScroll(scrollPos),$57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos)&&event.preventDefault()}},onResize:()=>{ref.current&&context.viewport&&computedStyle&&onSizesChange({content:context.viewport.scrollWidth,viewport:context.viewport.offsetWidth,scrollbar:{size:ref.current.clientWidth,paddingStart:$57acba87d6e25586$var$toInt(computedStyle.paddingLeft),paddingEnd:$57acba87d6e25586$var$toInt(computedStyle.paddingRight)}})}}))})),$57acba87d6e25586$var$ScrollAreaScrollbarY=(0,react.forwardRef)(((props,forwardedRef)=>{let{sizes,onSizesChange,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaScrollbar",props.__scopeScrollArea),[computedStyle,setComputedStyle]=(0,react.useState)(),ref=(0,react.useRef)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onScrollbarYChange);return(0,react.useEffect)((()=>{ref.current&&setComputedStyle(getComputedStyle(ref.current))}),[ref]),(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarImpl,(0,chunk_FD4M6EBV.r)({"data-orientation":"vertical"},scrollbarProps,{ref:composeRefs,sizes,style:{top:0,right:"ltr"===context.dir?0:void 0,left:"rtl"===context.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":$57acba87d6e25586$var$getThumbSize(sizes)+"px",...props.style},onThumbPointerDown:pointerPos=>props.onThumbPointerDown(pointerPos.y),onDragScroll:pointerPos=>props.onDragScroll(pointerPos.y),onWheelScroll:(event,maxScrollPos)=>{if(context.viewport){let scrollPos=context.viewport.scrollTop+event.deltaY;props.onWheelScroll(scrollPos),$57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos)&&event.preventDefault()}},onResize:()=>{ref.current&&context.viewport&&computedStyle&&onSizesChange({content:context.viewport.scrollHeight,viewport:context.viewport.offsetHeight,scrollbar:{size:ref.current.clientHeight,paddingStart:$57acba87d6e25586$var$toInt(computedStyle.paddingTop),paddingEnd:$57acba87d6e25586$var$toInt(computedStyle.paddingBottom)}})}}))})),[$57acba87d6e25586$var$ScrollbarProvider,$57acba87d6e25586$var$useScrollbarContext]=$57acba87d6e25586$var$createScrollAreaContext("ScrollAreaScrollbar"),$57acba87d6e25586$var$ScrollAreaScrollbarImpl=(0,react.forwardRef)(((props,forwardedRef)=>{let{__scopeScrollArea,sizes,hasThumb,onThumbChange,onThumbPointerUp,onThumbPointerDown,onThumbPositionChange,onDragScroll,onWheelScroll,onResize,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaScrollbar",__scopeScrollArea),[scrollbar,setScrollbar]=(0,react.useState)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,(node=>setScrollbar(node))),rectRef=(0,react.useRef)(null),prevWebkitUserSelectRef=(0,react.useRef)(""),viewport=context.viewport,maxScrollPos=sizes.content-sizes.viewport,handleWheelScroll=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onWheelScroll),handleThumbPositionChange=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPositionChange),handleResize=$57acba87d6e25586$var$useDebounceCallback(onResize,10);function handleDragScroll(event){if(rectRef.current){let x=event.clientX-rectRef.current.left,y=event.clientY-rectRef.current.top;onDragScroll({x,y})}}return(0,react.useEffect)((()=>{let handleWheel=event=>{let element=event.target;scrollbar?.contains(element)&&handleWheelScroll(event,maxScrollPos)};return document.addEventListener("wheel",handleWheel,{passive:!1}),()=>document.removeEventListener("wheel",handleWheel,{passive:!1})}),[viewport,scrollbar,maxScrollPos,handleWheelScroll]),(0,react.useEffect)(handleThumbPositionChange,[sizes,handleThumbPositionChange]),$57acba87d6e25586$var$useResizeObserver(scrollbar,handleResize),$57acba87d6e25586$var$useResizeObserver(context.content,handleResize),(0,react.createElement)($57acba87d6e25586$var$ScrollbarProvider,{scope:__scopeScrollArea,scrollbar,hasThumb,onThumbChange:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbChange),onThumbPointerUp:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerUp),onThumbPositionChange:handleThumbPositionChange,onThumbPointerDown:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerDown)},(0,react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,(0,chunk_FD4M6EBV.r)({},scrollbarProps,{ref:composeRefs,style:{position:"absolute",...scrollbarProps.style},onPointerDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown,(event=>{0===event.button&&(event.target.setPointerCapture(event.pointerId),rectRef.current=scrollbar.getBoundingClientRect(),prevWebkitUserSelectRef.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",context.viewport&&(context.viewport.style.scrollBehavior="auto"),handleDragScroll(event))})),onPointerMove:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove,handleDragScroll),onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp,(event=>{let element=event.target;element.hasPointerCapture(event.pointerId)&&element.releasePointerCapture(event.pointerId),document.body.style.webkitUserSelect=prevWebkitUserSelectRef.current,context.viewport&&(context.viewport.style.scrollBehavior=""),rectRef.current=null}))})))})),$57acba87d6e25586$export$9fba1154677d7cd2=(0,react.forwardRef)(((props,forwardedRef)=>{let{forceMount,...thumbProps}=props,scrollbarContext=$57acba87d6e25586$var$useScrollbarContext("ScrollAreaThumb",props.__scopeScrollArea);return(0,react.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||scrollbarContext.hasThumb},(0,react.createElement)($57acba87d6e25586$var$ScrollAreaThumbImpl,(0,chunk_FD4M6EBV.r)({ref:forwardedRef},thumbProps)))})),$57acba87d6e25586$var$ScrollAreaThumbImpl=(0,react.forwardRef)(((props,forwardedRef)=>{let{__scopeScrollArea,style,...thumbProps}=props,scrollAreaContext=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaThumb",__scopeScrollArea),scrollbarContext=$57acba87d6e25586$var$useScrollbarContext("ScrollAreaThumb",__scopeScrollArea),{onThumbPositionChange}=scrollbarContext,composedRef=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,(node=>scrollbarContext.onThumbChange(node))),removeUnlinkedScrollListenerRef=(0,react.useRef)(),debounceScrollEnd=$57acba87d6e25586$var$useDebounceCallback((()=>{removeUnlinkedScrollListenerRef.current&&(removeUnlinkedScrollListenerRef.current(),removeUnlinkedScrollListenerRef.current=void 0)}),100);return(0,react.useEffect)((()=>{let viewport=scrollAreaContext.viewport;if(viewport){let handleScroll=()=>{if(debounceScrollEnd(),!removeUnlinkedScrollListenerRef.current){let listener=$57acba87d6e25586$var$addUnlinkedScrollListener(viewport,onThumbPositionChange);removeUnlinkedScrollListenerRef.current=listener,onThumbPositionChange()}};return onThumbPositionChange(),viewport.addEventListener("scroll",handleScroll),()=>viewport.removeEventListener("scroll",handleScroll)}}),[scrollAreaContext.viewport,debounceScrollEnd,onThumbPositionChange]),(0,react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,(0,chunk_FD4M6EBV.r)({"data-state":scrollbarContext.hasThumb?"visible":"hidden"},thumbProps,{ref:composedRef,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...style},onPointerDownCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownCapture,(event=>{let thumbRect=event.target.getBoundingClientRect(),x=event.clientX-thumbRect.left,y=event.clientY-thumbRect.top;scrollbarContext.onThumbPointerDown({x,y})})),onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp,scrollbarContext.onThumbPointerUp)}))})),$57acba87d6e25586$export$56969d565df7cc4b=(0,react.forwardRef)(((props,forwardedRef)=>{let context=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaCorner",props.__scopeScrollArea),hasBothScrollbarsVisible=!(!context.scrollbarX||!context.scrollbarY);return"scroll"!==context.type&&hasBothScrollbarsVisible?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaCornerImpl,(0,chunk_FD4M6EBV.r)({},props,{ref:forwardedRef})):null})),$57acba87d6e25586$var$ScrollAreaCornerImpl=(0,react.forwardRef)(((props,forwardedRef)=>{let{__scopeScrollArea,...cornerProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext("ScrollAreaCorner",__scopeScrollArea),[width1,setWidth]=(0,react.useState)(0),[height1,setHeight]=(0,react.useState)(0),hasSize=!(!width1||!height1);return $57acba87d6e25586$var$useResizeObserver(context.scrollbarX,(()=>{var _context$scrollbarX;let height=(null===(_context$scrollbarX=context.scrollbarX)||void 0===_context$scrollbarX?void 0:_context$scrollbarX.offsetHeight)||0;context.onCornerHeightChange(height),setHeight(height)})),$57acba87d6e25586$var$useResizeObserver(context.scrollbarY,(()=>{var _context$scrollbarY;let width=(null===(_context$scrollbarY=context.scrollbarY)||void 0===_context$scrollbarY?void 0:_context$scrollbarY.offsetWidth)||0;context.onCornerWidthChange(width),setWidth(width)})),hasSize?(0,react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,(0,chunk_FD4M6EBV.r)({},cornerProps,{ref:forwardedRef,style:{width:width1,height:height1,position:"absolute",right:"ltr"===context.dir?0:void 0,left:"rtl"===context.dir?0:void 0,bottom:0,...props.style}})):null}));function $57acba87d6e25586$var$toInt(value){return value?parseInt(value,10):0}function $57acba87d6e25586$var$getThumbRatio(viewportSize,contentSize){let ratio=viewportSize/contentSize;return isNaN(ratio)?0:ratio}function $57acba87d6e25586$var$getThumbSize(sizes){let ratio=$57acba87d6e25586$var$getThumbRatio(sizes.viewport,sizes.content),scrollbarPadding=sizes.scrollbar.paddingStart+sizes.scrollbar.paddingEnd,thumbSize=(sizes.scrollbar.size-scrollbarPadding)*ratio;return Math.max(thumbSize,18)}function $57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes,dir="ltr"){let thumbSizePx=$57acba87d6e25586$var$getThumbSize(sizes),scrollbarPadding=sizes.scrollbar.paddingStart+sizes.scrollbar.paddingEnd,scrollbar=sizes.scrollbar.size-scrollbarPadding,maxScrollPos=sizes.content-sizes.viewport,maxThumbPos=scrollbar-thumbSizePx,scrollWithoutMomentum=function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value,[min,max]){return Math.min(max,Math.max(min,value))}(scrollPos,"ltr"===dir?[0,maxScrollPos]:[-1*maxScrollPos,0]);return $57acba87d6e25586$var$linearScale([0,maxScrollPos],[0,maxThumbPos])(scrollWithoutMomentum)}function $57acba87d6e25586$var$linearScale(input,output){return value=>{if(input[0]===input[1]||output[0]===output[1])return output[0];let ratio=(output[1]-output[0])/(input[1]-input[0]);return output[0]+ratio*(value-input[0])}}function $57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos){return scrollPos>0&&scrollPos{}))=>{let prevPosition={left:node.scrollLeft,top:node.scrollTop},rAF=0;return function loop(){let position={left:node.scrollLeft,top:node.scrollTop},isHorizontalScroll=prevPosition.left!==position.left,isVerticalScroll=prevPosition.top!==position.top;(isHorizontalScroll||isVerticalScroll)&&handler(),prevPosition=position,rAF=window.requestAnimationFrame(loop)}(),()=>window.cancelAnimationFrame(rAF)};function $57acba87d6e25586$var$useDebounceCallback(callback,delay){let handleCallback=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback),debounceTimerRef=(0,react.useRef)(0);return(0,react.useEffect)((()=>()=>window.clearTimeout(debounceTimerRef.current)),[]),(0,react.useCallback)((()=>{window.clearTimeout(debounceTimerRef.current),debounceTimerRef.current=window.setTimeout(handleCallback,delay)}),[handleCallback,delay])}function $57acba87d6e25586$var$useResizeObserver(element,onResize){let handleResize=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onResize);$9f79659886946c16$export$e5c5a5f917a5871c((()=>{let rAF=0;if(element){let resizeObserver=new ResizeObserver((()=>{cancelAnimationFrame(rAF),rAF=window.requestAnimationFrame(handleResize)}));return resizeObserver.observe(element),()=>{window.cancelAnimationFrame(rAF),resizeObserver.unobserve(element)}}}),[element,handleResize])}var $57acba87d6e25586$export$be92b6f5f03c0fe9=$57acba87d6e25586$export$ccf8d8d7bbf3c2cc,$57acba87d6e25586$export$d5c6c08dc2d3ca7=$57acba87d6e25586$export$a21cbf9f11fca853,$57acba87d6e25586$export$9a4e88b92edfce6b=$57acba87d6e25586$export$2fabd85d0eba3c57,$57acba87d6e25586$export$6521433ed15a34db=$57acba87d6e25586$export$9fba1154677d7cd2,$57acba87d6e25586$export$ac61190d9fc311a9=$57acba87d6e25586$export$56969d565df7cc4b,ScrollAreaRoot=(0,dist.I4)($57acba87d6e25586$export$be92b6f5f03c0fe9)((({scrollbarsize,offset})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${scrollbarsize+offset}px`,"--radix-scroll-area-thumb-width":`${scrollbarsize}px`}))),ScrollAreaViewport=(0,dist.I4)($57acba87d6e25586$export$d5c6c08dc2d3ca7)({width:"100%",height:"100%"}),ScrollAreaScrollbar=(0,dist.I4)($57acba87d6e25586$export$9a4e88b92edfce6b)((({offset,horizontal,vertical})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:offset,marginTop:offset,marginBottom:"true"===horizontal&&"true"===vertical?0:offset},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:offset,marginLeft:offset,marginRight:"true"===horizontal&&"true"===vertical?0:offset}}))),ScrollAreaThumb=(0,dist.I4)($57acba87d6e25586$export$6521433ed15a34db)((({theme})=>({flex:1,background:theme.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}}))),ScrollArea=(0,react.forwardRef)((({children,horizontal=!1,vertical=!1,offset=2,scrollbarSize=6,className},ref)=>react.createElement(ScrollAreaRoot,{scrollbarsize:scrollbarSize,offset,className},react.createElement(ScrollAreaViewport,{ref},children),horizontal&&react.createElement(ScrollAreaScrollbar,{orientation:"horizontal",offset,horizontal:horizontal.toString(),vertical:vertical.toString()},react.createElement(ScrollAreaThumb,null)),vertical&&react.createElement(ScrollAreaScrollbar,{orientation:"vertical",offset,horizontal:horizontal.toString(),vertical:vertical.toString()},react.createElement(ScrollAreaThumb,null)),horizontal&&vertical&&react.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null))));ScrollArea.displayName="ScrollArea";var{navigator:chunk_WDXN43AK_navigator,document:document2,window:globalWindow}=external_STORYBOOK_MODULE_GLOBAL_.global,supportedLanguages={jsextra:js_extras_default,jsx:jsx_default,json:json_default,yml:yaml_default,md:markdown_default,bash:bash_default,css:css_default,html:markup_default,tsx:tsx_default,typescript:typescript_default,graphql:graphql_default};Object.entries(supportedLanguages).forEach((([key,val])=>{prism_light_default.registerLanguage(key,val)}));var themedSyntax=memoizerific_default()(2)((theme=>Object.entries(theme.code||{}).reduce(((acc,[key,val])=>({...acc,[`* .${key}`]:val})),{}))),copyToClipboard=createCopyToClipboardFunction();function createCopyToClipboardFunction(){return chunk_WDXN43AK_navigator?.clipboard?text=>chunk_WDXN43AK_navigator.clipboard.writeText(text):async text=>{let tmp=document2.createElement("TEXTAREA"),focus=document2.activeElement;tmp.value=text,document2.body.appendChild(tmp),tmp.select(),document2.execCommand("copy"),document2.body.removeChild(tmp),focus.focus()}}var Wrapper=dist.I4.div((({theme})=>({position:"relative",overflow:"hidden",color:theme.color.defaultText})),(({theme,bordered})=>bordered?{border:`1px solid ${theme.appBorderColor}`,borderRadius:theme.borderRadius,background:theme.background.content}:{}),(({showLineNumbers})=>showLineNumbers?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{})),Scroller=(0,dist.I4)((({children,className})=>react.createElement(ScrollArea,{horizontal:!0,vertical:!0,className},children)))({position:"relative"},(({theme})=>themedSyntax(theme))),Pre=dist.I4.pre((({theme,padded})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:padded?theme.layoutMargin:0}))),Code=dist.I4.div((({theme})=>({flex:1,paddingLeft:2,paddingRight:theme.layoutMargin,opacity:1,fontFamily:theme.typography.fonts.mono}))),processLineNumber=row=>{let children=[...row.children],lineNumberNode=children[0],lineNumber=lineNumberNode.children[0].value,processedLineNumberNode={...lineNumberNode,children:[],properties:{...lineNumberNode.properties,"data-line-number":lineNumber,style:{...lineNumberNode.properties.style,userSelect:"auto"}}};return children[0]=processedLineNumberNode,{...row,children}},defaultRenderer2=({rows,stylesheet,useInlineStyles})=>rows.map(((node,i)=>createElement({node:processLineNumber(node),stylesheet,useInlineStyles,key:`code-segement${i}`}))),SyntaxHighlighter2=({children,language="jsx",copyable=!1,bordered=!1,padded=!1,format=!0,formatter=null,className=null,showLineNumbers=!1,...rest})=>{if("string"!=typeof children||!children.trim())return null;let[highlightableCode,setHighlightableCode]=(0,react.useState)("");(0,react.useEffect)((()=>{formatter?formatter(format,children).then(setHighlightableCode):setHighlightableCode(children.trim())}),[children,format,formatter]);let[copied,setCopied]=(0,react.useState)(!1),onClick=(0,react.useCallback)((e=>{e.preventDefault(),copyToClipboard(highlightableCode).then((()=>{setCopied(!0),globalWindow.setTimeout((()=>setCopied(!1)),1500)})).catch(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.error)}),[highlightableCode]),renderer=((renderer,showLineNumbers)=>showLineNumbers?renderer?({rows,...rest})=>renderer({rows:rows.map((row=>processLineNumber(row))),...rest}):defaultRenderer2:renderer)(rest.renderer,showLineNumbers);return react.createElement(Wrapper,{bordered,padded,showLineNumbers,className},react.createElement(Scroller,null,react.createElement(prism_light_default,{padded:padded||bordered,language,showLineNumbers,showInlineLineNumbers:showLineNumbers,useInlineStyles:!1,PreTag:Pre,CodeTag:Code,lineNumberContainerStyle:{},...rest,renderer},highlightableCode)),copyable?react.createElement(ActionBar,{actionItems:[{title:copied?"Copied":"Copy",onClick}]}):null)};SyntaxHighlighter2.registerLanguage=(...args)=>prism_light_default.registerLanguage(...args);var syntaxhighlighter_default=SyntaxHighlighter2},"./node_modules/@storybook/components/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$n:()=>Button,Cy:()=>Code,Q2:()=>EmptyTabContent,Df:()=>ErrorFormatter,px:()=>FlexBar,lV:()=>Form,H2:()=>H2,H3:()=>H3,K0:()=>IconButton,N_:()=>Link2,aH:()=>Loader,dL:()=>ResetWrapper,bF:()=>SyntaxHighlighter2,_j:()=>TabsState,_:()=>TooltipNote,kR:()=>WithTooltip,o4:()=>WithTooltipPure,GP:()=>Zoom,zb:()=>codeCommon,dK:()=>components2,createCopyToClipboardFunction:()=>chunk_WDXN43AK.zH,jZ:()=>getStoryHref,mc:()=>nameSpaceClassNames,YV:()=>withReset});var react_dialog_dist_namespaceObject={};__webpack_require__.r(react_dialog_dist_namespaceObject),__webpack_require__.d(react_dialog_dist_namespaceObject,{Close:()=>Close,Content:()=>Content,Description:()=>Description,Dialog:()=>Dialog,DialogClose:()=>DialogClose,DialogContent:()=>DialogContent,DialogDescription:()=>DialogDescription,DialogOverlay:()=>DialogOverlay,DialogPortal:()=>DialogPortal,DialogTitle:()=>DialogTitle,DialogTrigger:()=>DialogTrigger,Overlay:()=>Overlay,Portal:()=>dist_Portal,Root:()=>react_dialog_dist_Root,Title:()=>Title,Trigger:()=>Trigger,WarningProvider:()=>WarningProvider,createDialogScope:()=>createDialogScope});var chunk_WDXN43AK=__webpack_require__("./node_modules/@storybook/components/dist/chunk-WDXN43AK.mjs"),chunk_V2RRM4BX=__webpack_require__("./node_modules/@storybook/components/dist/chunk-V2RRM4BX.mjs"),chunk_FD4M6EBV=__webpack_require__("./node_modules/@storybook/components/dist/chunk-FD4M6EBV.mjs"),chunk_GN5PWX3D=__webpack_require__("./node_modules/@storybook/components/dist/chunk-GN5PWX3D.mjs"),react=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),react_namespaceObject=__webpack_require__.t(react,2),dist=__webpack_require__("./node_modules/@storybook/theming/dist/index.mjs"),chunk_QN4WKJDJ=__webpack_require__("./node_modules/@storybook/theming/dist/chunk-QN4WKJDJ.mjs"),icons_dist=__webpack_require__("./node_modules/@storybook/icons/dist/index.mjs");function composeEventHandlers(originalEventHandler,ourEventHandler,{checkForDefaultPrevented=!0}={}){return function handleEvent(event){if(originalEventHandler?.(event),!1===checkForDefaultPrevented||!event.defaultPrevented)return ourEventHandler?.(event)}}var react_compose_refs_dist=__webpack_require__("./node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),jsx_runtime=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js");function composeContextScopes(...scopes){const baseScope=scopes[0];if(1===scopes.length)return baseScope;const createScope=()=>{const scopeHooks=scopes.map((createScope2=>({useScope:createScope2(),scopeName:createScope2.scopeName})));return function useComposedScopes(overrideScopes){const nextScopes=scopeHooks.reduce(((nextScopes2,{useScope,scopeName})=>({...nextScopes2,...useScope(overrideScopes)[`__scope${scopeName}`]})),{});return react.useMemo((()=>({[`__scope${baseScope.scopeName}`]:nextScopes})),[nextScopes])}};return createScope.scopeName=baseScope.scopeName,createScope}var useLayoutEffect2=Boolean(globalThis?.document)?react.useLayoutEffect:()=>{},useReactId=react_namespaceObject["useId".toString()]||(()=>{}),count=0;function useId(deterministicId){const[id,setId]=react.useState(useReactId());return useLayoutEffect2((()=>{deterministicId||setId((reactId=>reactId??String(count++)))}),[deterministicId]),deterministicId||(id?`radix-${id}`:"")}function useCallbackRef(callback){const callbackRef=react.useRef(callback);return react.useEffect((()=>{callbackRef.current=callback})),react.useMemo((()=>(...args)=>callbackRef.current?.(...args)),[])}function useControllableState({prop,defaultProp,onChange=()=>{}}){const[uncontrolledProp,setUncontrolledProp]=function useUncontrolledState({defaultProp,onChange}){const uncontrolledState=react.useState(defaultProp),[value]=uncontrolledState,prevValueRef=react.useRef(value),handleChange=useCallbackRef(onChange);return react.useEffect((()=>{prevValueRef.current!==value&&(handleChange(value),prevValueRef.current=value)}),[value,prevValueRef,handleChange]),uncontrolledState}({defaultProp,onChange}),isControlled=void 0!==prop,value=isControlled?prop:uncontrolledProp,handleChange=useCallbackRef(onChange);return[value,react.useCallback((nextValue=>{if(isControlled){const value2="function"==typeof nextValue?nextValue(prop):nextValue;value2!==prop&&handleChange(value2)}else setUncontrolledProp(nextValue)}),[isControlled,prop,setUncontrolledProp,handleChange])]}var react_dom=__webpack_require__("./node_modules/next/dist/compiled/react-dom/index.js"),react_slot_dist=__webpack_require__("./node_modules/@radix-ui/react-slot/dist/index.mjs"),Primitive=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((primitive,node)=>{const Node=react.forwardRef(((props,forwardedRef)=>{const{asChild,...primitiveProps}=props,Comp=asChild?react_slot_dist.DX:node;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,jsx_runtime.jsx)(Comp,{...primitiveProps,ref:forwardedRef})}));return Node.displayName=`Primitive.${node}`,{...primitive,[node]:Node}}),{});var originalBodyPointerEvents,DismissableLayerContext=react.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DismissableLayer=react.forwardRef(((props,forwardedRef)=>{const{disableOutsidePointerEvents=!1,onEscapeKeyDown,onPointerDownOutside,onFocusOutside,onInteractOutside,onDismiss,...layerProps}=props,context=react.useContext(DismissableLayerContext),[node,setNode]=react.useState(null),ownerDocument=node?.ownerDocument??globalThis?.document,[,force]=react.useState({}),composedRefs=(0,react_compose_refs_dist.s)(forwardedRef,(node2=>setNode(node2))),layers=Array.from(context.layers),[highestLayerWithOutsidePointerEventsDisabled]=[...context.layersWithOutsidePointerEventsDisabled].slice(-1),highestLayerWithOutsidePointerEventsDisabledIndex=layers.indexOf(highestLayerWithOutsidePointerEventsDisabled),index=node?layers.indexOf(node):-1,isBodyPointerEventsDisabled=context.layersWithOutsidePointerEventsDisabled.size>0,isPointerEventsEnabled=index>=highestLayerWithOutsidePointerEventsDisabledIndex,pointerDownOutside=function usePointerDownOutside(onPointerDownOutside,ownerDocument=globalThis?.document){const handlePointerDownOutside=useCallbackRef(onPointerDownOutside),isPointerInsideReactTreeRef=react.useRef(!1),handleClickRef=react.useRef((()=>{}));return react.useEffect((()=>{const handlePointerDown=event=>{if(event.target&&!isPointerInsideReactTreeRef.current){let handleAndDispatchPointerDownOutsideEvent2=function(){handleAndDispatchCustomEvent("dismissableLayer.pointerDownOutside",handlePointerDownOutside,eventDetail,{discrete:!0})};const eventDetail={originalEvent:event};"touch"===event.pointerType?(ownerDocument.removeEventListener("click",handleClickRef.current),handleClickRef.current=handleAndDispatchPointerDownOutsideEvent2,ownerDocument.addEventListener("click",handleClickRef.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent2()}else ownerDocument.removeEventListener("click",handleClickRef.current);isPointerInsideReactTreeRef.current=!1},timerId=window.setTimeout((()=>{ownerDocument.addEventListener("pointerdown",handlePointerDown)}),0);return()=>{window.clearTimeout(timerId),ownerDocument.removeEventListener("pointerdown",handlePointerDown),ownerDocument.removeEventListener("click",handleClickRef.current)}}),[ownerDocument,handlePointerDownOutside]),{onPointerDownCapture:()=>isPointerInsideReactTreeRef.current=!0}}((event=>{const target=event.target,isPointerDownOnBranch=[...context.branches].some((branch=>branch.contains(target)));isPointerEventsEnabled&&!isPointerDownOnBranch&&(onPointerDownOutside?.(event),onInteractOutside?.(event),event.defaultPrevented||onDismiss?.())}),ownerDocument),focusOutside=function useFocusOutside(onFocusOutside,ownerDocument=globalThis?.document){const handleFocusOutside=useCallbackRef(onFocusOutside),isFocusInsideReactTreeRef=react.useRef(!1);return react.useEffect((()=>{const handleFocus=event=>{if(event.target&&!isFocusInsideReactTreeRef.current){handleAndDispatchCustomEvent("dismissableLayer.focusOutside",handleFocusOutside,{originalEvent:event},{discrete:!1})}};return ownerDocument.addEventListener("focusin",handleFocus),()=>ownerDocument.removeEventListener("focusin",handleFocus)}),[ownerDocument,handleFocusOutside]),{onFocusCapture:()=>isFocusInsideReactTreeRef.current=!0,onBlurCapture:()=>isFocusInsideReactTreeRef.current=!1}}((event=>{const target=event.target;[...context.branches].some((branch=>branch.contains(target)))||(onFocusOutside?.(event),onInteractOutside?.(event),event.defaultPrevented||onDismiss?.())}),ownerDocument);return function useEscapeKeydown(onEscapeKeyDownProp,ownerDocument=globalThis?.document){const onEscapeKeyDown=useCallbackRef(onEscapeKeyDownProp);react.useEffect((()=>{const handleKeyDown=event=>{"Escape"===event.key&&onEscapeKeyDown(event)};return ownerDocument.addEventListener("keydown",handleKeyDown,{capture:!0}),()=>ownerDocument.removeEventListener("keydown",handleKeyDown,{capture:!0})}),[onEscapeKeyDown,ownerDocument])}((event=>{index===context.layers.size-1&&(onEscapeKeyDown?.(event),!event.defaultPrevented&&onDismiss&&(event.preventDefault(),onDismiss()))}),ownerDocument),react.useEffect((()=>{if(node)return disableOutsidePointerEvents&&(0===context.layersWithOutsidePointerEventsDisabled.size&&(originalBodyPointerEvents=ownerDocument.body.style.pointerEvents,ownerDocument.body.style.pointerEvents="none"),context.layersWithOutsidePointerEventsDisabled.add(node)),context.layers.add(node),dispatchUpdate(),()=>{disableOutsidePointerEvents&&1===context.layersWithOutsidePointerEventsDisabled.size&&(ownerDocument.body.style.pointerEvents=originalBodyPointerEvents)}}),[node,ownerDocument,disableOutsidePointerEvents,context]),react.useEffect((()=>()=>{node&&(context.layers.delete(node),context.layersWithOutsidePointerEventsDisabled.delete(node),dispatchUpdate())}),[node,context]),react.useEffect((()=>{const handleUpdate=()=>force({});return document.addEventListener("dismissableLayer.update",handleUpdate),()=>document.removeEventListener("dismissableLayer.update",handleUpdate)}),[]),(0,jsx_runtime.jsx)(Primitive.div,{...layerProps,ref:composedRefs,style:{pointerEvents:isBodyPointerEventsDisabled?isPointerEventsEnabled?"auto":"none":void 0,...props.style},onFocusCapture:composeEventHandlers(props.onFocusCapture,focusOutside.onFocusCapture),onBlurCapture:composeEventHandlers(props.onBlurCapture,focusOutside.onBlurCapture),onPointerDownCapture:composeEventHandlers(props.onPointerDownCapture,pointerDownOutside.onPointerDownCapture)})}));DismissableLayer.displayName="DismissableLayer";var DismissableLayerBranch=react.forwardRef(((props,forwardedRef)=>{const context=react.useContext(DismissableLayerContext),ref=react.useRef(null),composedRefs=(0,react_compose_refs_dist.s)(forwardedRef,ref);return react.useEffect((()=>{const node=ref.current;if(node)return context.branches.add(node),()=>{context.branches.delete(node)}}),[context.branches]),(0,jsx_runtime.jsx)(Primitive.div,{...props,ref:composedRefs})}));function dispatchUpdate(){const event=new CustomEvent("dismissableLayer.update");document.dispatchEvent(event)}function handleAndDispatchCustomEvent(name,handler,detail,{discrete}){const target=detail.originalEvent.target,event=new CustomEvent(name,{bubbles:!1,cancelable:!0,detail});handler&&target.addEventListener(name,handler,{once:!0}),discrete?function dispatchDiscreteCustomEvent(target,event){target&&react_dom.flushSync((()=>target.dispatchEvent(event)))}(target,event):target.dispatchEvent(event)}DismissableLayerBranch.displayName="DismissableLayerBranch";var EVENT_OPTIONS={bubbles:!1,cancelable:!0},FocusScope=react.forwardRef(((props,forwardedRef)=>{const{loop=!1,trapped=!1,onMountAutoFocus:onMountAutoFocusProp,onUnmountAutoFocus:onUnmountAutoFocusProp,...scopeProps}=props,[container,setContainer]=react.useState(null),onMountAutoFocus=useCallbackRef(onMountAutoFocusProp),onUnmountAutoFocus=useCallbackRef(onUnmountAutoFocusProp),lastFocusedElementRef=react.useRef(null),composedRefs=(0,react_compose_refs_dist.s)(forwardedRef,(node=>setContainer(node))),focusScope=react.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;react.useEffect((()=>{if(trapped){let handleFocusIn2=function(event){if(focusScope.paused||!container)return;const target=event.target;container.contains(target)?lastFocusedElementRef.current=target:dist_focus(lastFocusedElementRef.current,{select:!0})},handleFocusOut2=function(event){if(focusScope.paused||!container)return;const relatedTarget=event.relatedTarget;null!==relatedTarget&&(container.contains(relatedTarget)||dist_focus(lastFocusedElementRef.current,{select:!0}))},handleMutations2=function(mutations){if(document.activeElement===document.body)for(const mutation of mutations)mutation.removedNodes.length>0&&dist_focus(container)};document.addEventListener("focusin",handleFocusIn2),document.addEventListener("focusout",handleFocusOut2);const mutationObserver=new MutationObserver(handleMutations2);return container&&mutationObserver.observe(container,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",handleFocusIn2),document.removeEventListener("focusout",handleFocusOut2),mutationObserver.disconnect()}}}),[trapped,container,focusScope.paused]),react.useEffect((()=>{if(container){focusScopesStack.add(focusScope);const previouslyFocusedElement=document.activeElement;if(!container.contains(previouslyFocusedElement)){const mountEvent=new CustomEvent("focusScope.autoFocusOnMount",EVENT_OPTIONS);container.addEventListener("focusScope.autoFocusOnMount",onMountAutoFocus),container.dispatchEvent(mountEvent),mountEvent.defaultPrevented||(!function focusFirst(candidates,{select=!1}={}){const previouslyFocusedElement=document.activeElement;for(const candidate of candidates)if(dist_focus(candidate,{select}),document.activeElement!==previouslyFocusedElement)return}(function removeLinks(items){return items.filter((item=>"A"!==item.tagName))}(getTabbableCandidates(container)),{select:!0}),document.activeElement===previouslyFocusedElement&&dist_focus(container))}return()=>{container.removeEventListener("focusScope.autoFocusOnMount",onMountAutoFocus),setTimeout((()=>{const unmountEvent=new CustomEvent("focusScope.autoFocusOnUnmount",EVENT_OPTIONS);container.addEventListener("focusScope.autoFocusOnUnmount",onUnmountAutoFocus),container.dispatchEvent(unmountEvent),unmountEvent.defaultPrevented||dist_focus(previouslyFocusedElement??document.body,{select:!0}),container.removeEventListener("focusScope.autoFocusOnUnmount",onUnmountAutoFocus),focusScopesStack.remove(focusScope)}),0)}}}),[container,onMountAutoFocus,onUnmountAutoFocus,focusScope]);const handleKeyDown=react.useCallback((event=>{if(!loop&&!trapped)return;if(focusScope.paused)return;const isTabKey="Tab"===event.key&&!event.altKey&&!event.ctrlKey&&!event.metaKey,focusedElement=document.activeElement;if(isTabKey&&focusedElement){const container2=event.currentTarget,[first,last]=function getTabbableEdges(container){const candidates=getTabbableCandidates(container),first=findVisible(candidates,container),last=findVisible(candidates.reverse(),container);return[first,last]}(container2);first&&last?event.shiftKey||focusedElement!==last?event.shiftKey&&focusedElement===first&&(event.preventDefault(),loop&&dist_focus(last,{select:!0})):(event.preventDefault(),loop&&dist_focus(first,{select:!0})):focusedElement===container2&&event.preventDefault()}}),[loop,trapped,focusScope.paused]);return(0,jsx_runtime.jsx)(Primitive.div,{tabIndex:-1,...scopeProps,ref:composedRefs,onKeyDown:handleKeyDown})}));function getTabbableCandidates(container){const nodes=[],walker=document.createTreeWalker(container,NodeFilter.SHOW_ELEMENT,{acceptNode:node=>{const isHiddenInput="INPUT"===node.tagName&&"hidden"===node.type;return node.disabled||node.hidden||isHiddenInput?NodeFilter.FILTER_SKIP:node.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;walker.nextNode();)nodes.push(walker.currentNode);return nodes}function findVisible(elements,container){for(const element of elements)if(!isHidden(element,{upTo:container}))return element}function isHidden(node,{upTo}){if("hidden"===getComputedStyle(node).visibility)return!0;for(;node;){if(void 0!==upTo&&node===upTo)return!1;if("none"===getComputedStyle(node).display)return!0;node=node.parentElement}return!1}function dist_focus(element,{select=!1}={}){if(element&&element.focus){const previouslyFocusedElement=document.activeElement;element.focus({preventScroll:!0}),element!==previouslyFocusedElement&&function isSelectableInput(element){return element instanceof HTMLInputElement&&"select"in element}(element)&&select&&element.select()}}FocusScope.displayName="FocusScope";var focusScopesStack=function createFocusScopesStack(){let stack=[];return{add(focusScope){const activeFocusScope=stack[0];focusScope!==activeFocusScope&&activeFocusScope?.pause(),stack=arrayRemove(stack,focusScope),stack.unshift(focusScope)},remove(focusScope){stack=arrayRemove(stack,focusScope),stack[0]?.resume()}}}();function arrayRemove(array,item){const updatedArray=[...array],index=updatedArray.indexOf(item);return-1!==index&&updatedArray.splice(index,1),updatedArray}var Portal=react.forwardRef(((props,forwardedRef)=>{const{container:containerProp,...portalProps}=props,[mounted,setMounted]=react.useState(!1);useLayoutEffect2((()=>setMounted(!0)),[]);const container=containerProp||mounted&&globalThis?.document?.body;return container?react_dom.createPortal((0,jsx_runtime.jsx)(Primitive.div,{...portalProps,ref:forwardedRef}),container):null}));Portal.displayName="Portal";var Presence=props=>{const{present,children}=props,presence=function usePresence(present){const[node,setNode]=react.useState(),stylesRef=react.useRef({}),prevPresentRef=react.useRef(present),prevAnimationNameRef=react.useRef("none"),initialState=present?"mounted":"unmounted",[state,send]=function useStateMachine(initialState,machine){return react.useReducer(((state,event)=>machine[state][event]??state),initialState)}(initialState,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return react.useEffect((()=>{const currentAnimationName=getAnimationName(stylesRef.current);prevAnimationNameRef.current="mounted"===state?currentAnimationName:"none"}),[state]),useLayoutEffect2((()=>{const styles=stylesRef.current,wasPresent=prevPresentRef.current;if(wasPresent!==present){const prevAnimationName=prevAnimationNameRef.current,currentAnimationName=getAnimationName(styles);if(present)send("MOUNT");else if("none"===currentAnimationName||"none"===styles?.display)send("UNMOUNT");else{send(wasPresent&&prevAnimationName!==currentAnimationName?"ANIMATION_OUT":"UNMOUNT")}prevPresentRef.current=present}}),[present,send]),useLayoutEffect2((()=>{if(node){const handleAnimationEnd=event=>{const isCurrentAnimation=getAnimationName(stylesRef.current).includes(event.animationName);event.target===node&&isCurrentAnimation&&react_dom.flushSync((()=>send("ANIMATION_END")))},handleAnimationStart=event=>{event.target===node&&(prevAnimationNameRef.current=getAnimationName(stylesRef.current))};return node.addEventListener("animationstart",handleAnimationStart),node.addEventListener("animationcancel",handleAnimationEnd),node.addEventListener("animationend",handleAnimationEnd),()=>{node.removeEventListener("animationstart",handleAnimationStart),node.removeEventListener("animationcancel",handleAnimationEnd),node.removeEventListener("animationend",handleAnimationEnd)}}send("ANIMATION_END")}),[node,send]),{isPresent:["mounted","unmountSuspended"].includes(state),ref:react.useCallback((node2=>{node2&&(stylesRef.current=getComputedStyle(node2)),setNode(node2)}),[])}}(present),child="function"==typeof children?children({present:presence.isPresent}):react.Children.only(children),ref=(0,react_compose_refs_dist.s)(presence.ref,function getElementRef(element){let getter=Object.getOwnPropertyDescriptor(element.props,"ref")?.get,mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning;if(mayWarn)return element.ref;if(getter=Object.getOwnPropertyDescriptor(element,"ref")?.get,mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning,mayWarn)return element.props.ref;return element.props.ref||element.ref}(child));return"function"==typeof children||presence.isPresent?react.cloneElement(child,{ref}):null};function getAnimationName(styles){return styles?.animationName||"none"}Presence.displayName="Presence";var dist_count=0;function useFocusGuards(){react.useEffect((()=>{const edgeGuards=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",edgeGuards[0]??createFocusGuard()),document.body.insertAdjacentElement("beforeend",edgeGuards[1]??createFocusGuard()),dist_count++,()=>{1===dist_count&&document.querySelectorAll("[data-radix-focus-guard]").forEach((node=>node.remove())),dist_count--}}),[])}function createFocusGuard(){const element=document.createElement("span");return element.setAttribute("data-radix-focus-guard",""),element.tabIndex=0,element.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",element}var __assign=function(){return __assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i