@aussieljk/forkbook 0.0.0-stage → 0.0.1-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +77 -2
- package/assets/addon-vitest/templates/vitest.config.4.template.ts +36 -0
- package/assets/browser/favicon-wrapper.svg +46 -0
- package/assets/browser/favicon.svg +1 -0
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/assets/builder-vite/iframe.html +99 -0
- package/assets/create/rendererAssets/.eslintrc.json +16 -0
- package/assets/create/rendererAssets/common/Configure.mdx +388 -0
- package/assets/create/rendererAssets/common/assets/accessibility.png +0 -0
- package/assets/create/rendererAssets/common/assets/accessibility.svg +1 -0
- package/assets/create/rendererAssets/common/assets/addon-library.png +0 -0
- package/assets/create/rendererAssets/common/assets/assets.png +0 -0
- package/assets/create/rendererAssets/common/assets/avif-test-image.avif +0 -0
- package/assets/create/rendererAssets/common/assets/context.png +0 -0
- package/assets/create/rendererAssets/common/assets/discord.svg +1 -0
- package/assets/create/rendererAssets/common/assets/docs.png +0 -0
- package/assets/create/rendererAssets/common/assets/figma-plugin.png +0 -0
- package/assets/create/rendererAssets/common/assets/github.svg +1 -0
- package/assets/create/rendererAssets/common/assets/share.png +0 -0
- package/assets/create/rendererAssets/common/assets/styling.png +0 -0
- package/assets/create/rendererAssets/common/assets/testing.png +0 -0
- package/assets/create/rendererAssets/common/assets/theming.png +0 -0
- package/assets/create/rendererAssets/common/assets/tutorials.svg +1 -0
- package/assets/create/rendererAssets/common/assets/youtube.svg +1 -0
- package/assets/create/rendererAssets/common/button.css +30 -0
- package/assets/create/rendererAssets/common/header.css +32 -0
- package/assets/create/rendererAssets/common/page.css +68 -0
- package/assets/create/templates/react-native/index.expo.js +20 -0
- package/assets/create/templates/react-native/index.js +25 -0
- package/assets/docs/addon-backgrounds.gif +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/highlight.png +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/react-native/metro-env.d.ts +69 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +116 -0
- package/assets/server/base-preview-head.html +494 -0
- package/assets/server/openBrowser.applescript +94 -0
- package/assets/server/template.ejs +87 -0
- package/dist/.build-stamp +0 -0
- package/dist/_browser-chunks/Color-PCLE2J36.js +1025 -0
- package/dist/_browser-chunks/DocsRenderer-JXND3PVQ.js +10 -0
- package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +1619 -0
- package/dist/_browser-chunks/chunk-2JDQ35OA.js +247 -0
- package/dist/_browser-chunks/chunk-2JT76G3E.js +104 -0
- package/dist/_browser-chunks/chunk-2MEPHP35.js +17 -0
- package/dist/_browser-chunks/chunk-2SCZVUKW.js +24 -0
- package/dist/_browser-chunks/chunk-46Z7NGAS.js +41 -0
- package/dist/_browser-chunks/chunk-4ATQOMJB.js +30 -0
- package/dist/_browser-chunks/chunk-52CW7FF7.js +49 -0
- package/dist/_browser-chunks/chunk-5I7E4GMO.js +62 -0
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +20 -0
- package/dist/_browser-chunks/chunk-5WMXI5GW.js +816 -0
- package/dist/_browser-chunks/chunk-66OCZ54D.js +2604 -0
- package/dist/_browser-chunks/chunk-6SXYJQST.js +253 -0
- package/dist/_browser-chunks/chunk-AYRF6EJB.js +36 -0
- package/dist/_browser-chunks/chunk-B4AUNNU4.js +156 -0
- package/dist/_browser-chunks/chunk-BCP2FFXF.js +369 -0
- package/dist/_browser-chunks/chunk-C3D4HEFY.js +3396 -0
- package/dist/_browser-chunks/chunk-CFAOWGL7.js +43 -0
- package/dist/_browser-chunks/chunk-CFWWCCZV.js +223 -0
- package/dist/_browser-chunks/chunk-CNED6RYH.js +18 -0
- package/dist/_browser-chunks/chunk-DRQKCCAG.js +136 -0
- package/dist/_browser-chunks/chunk-ECQ75MKQ.js +0 -0
- package/dist/_browser-chunks/chunk-EIYAKDGP.js +302 -0
- package/dist/_browser-chunks/chunk-ENKK74N4.js +12 -0
- package/dist/_browser-chunks/chunk-FENFYI4X.js +698 -0
- package/dist/_browser-chunks/chunk-FJGWSWL5.js +155 -0
- package/dist/_browser-chunks/chunk-FVSEPWWX.js +2810 -0
- package/dist/_browser-chunks/chunk-GNZY6LOW.js +10116 -0
- package/dist/_browser-chunks/chunk-IE4ULIOQ.js +14 -0
- package/dist/_browser-chunks/chunk-IMSF75WX.js +42 -0
- package/dist/_browser-chunks/chunk-IWQGIXJS.js +14 -0
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +108 -0
- package/dist/_browser-chunks/chunk-JPUOQJUI.js +8 -0
- package/dist/_browser-chunks/chunk-JSBKXXXF.js +218 -0
- package/dist/_browser-chunks/chunk-JWSKPMPC.js +73 -0
- package/dist/_browser-chunks/chunk-JYVGARBG.js +2943 -0
- package/dist/_browser-chunks/chunk-KBK7GKBN.js +35 -0
- package/dist/_browser-chunks/chunk-KQ7CRO2B.js +108 -0
- package/dist/_browser-chunks/chunk-LAWXTSXK.js +18 -0
- package/dist/_browser-chunks/chunk-LE2LTDW3.js +14 -0
- package/dist/_browser-chunks/chunk-LEVSOOLQ.js +48 -0
- package/dist/_browser-chunks/chunk-LV5PIKV4.js +93 -0
- package/dist/_browser-chunks/chunk-MDOL7KML.js +56 -0
- package/dist/_browser-chunks/chunk-MFMDGWP6.js +34 -0
- package/dist/_browser-chunks/chunk-MLBOOZL4.js +67 -0
- package/dist/_browser-chunks/chunk-NQUD4B7H.js +91 -0
- package/dist/_browser-chunks/chunk-NULBREPZ.js +43 -0
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/chunk-OD6IBQCC.js +117 -0
- package/dist/_browser-chunks/chunk-ODVJ3XZJ.js +157 -0
- package/dist/_browser-chunks/chunk-OQWFVDIN.js +386 -0
- package/dist/_browser-chunks/chunk-OVH3USFB.js +20 -0
- package/dist/_browser-chunks/chunk-OZZPSYQR.js +14 -0
- package/dist/_browser-chunks/chunk-P6PK47TQ.js +1970 -0
- package/dist/_browser-chunks/chunk-PFRNG3UC.js +22 -0
- package/dist/_browser-chunks/chunk-PJSMZ27A.js +13 -0
- package/dist/_browser-chunks/chunk-QC4HFS6K.js +41 -0
- package/dist/_browser-chunks/chunk-QDXFODK4.js +274 -0
- package/dist/_browser-chunks/chunk-RBCHTR7C.js +28 -0
- package/dist/_browser-chunks/chunk-RMYQ3QN3.js +294 -0
- package/dist/_browser-chunks/chunk-RNTIV5CE.js +411 -0
- package/dist/_browser-chunks/chunk-RSPAQWVJ.js +80 -0
- package/dist/_browser-chunks/chunk-S6TK43XQ.js +836 -0
- package/dist/_browser-chunks/chunk-SC67XZST.js +18 -0
- package/dist/_browser-chunks/chunk-SFVA4SBT.js +683 -0
- package/dist/_browser-chunks/chunk-SZYFOQMT.js +25 -0
- package/dist/_browser-chunks/chunk-TBJCJXK4.js +18 -0
- package/dist/_browser-chunks/chunk-UMDO3KB7.js +205 -0
- package/dist/_browser-chunks/chunk-V2G23FV7.js +11 -0
- package/dist/_browser-chunks/chunk-V5M7Q4HT.js +88 -0
- package/dist/_browser-chunks/chunk-W5M6NPS3.js +198 -0
- package/dist/_browser-chunks/chunk-W7NE2JXW.js +84 -0
- package/dist/_browser-chunks/chunk-WGVAAM43.js +1110 -0
- package/dist/_browser-chunks/chunk-WHQRNHXD.js +8 -0
- package/dist/_browser-chunks/chunk-WOSOWBCA.js +12 -0
- package/dist/_browser-chunks/chunk-WZ7KR7SH.js +85 -0
- package/dist/_browser-chunks/chunk-YEKO6BHJ.js +20 -0
- package/dist/_browser-chunks/chunk-YI2IBIQS.js +7 -0
- package/dist/_browser-chunks/chunk-YTIT5NA5.js +1966 -0
- package/dist/_browser-chunks/chunk-ZEHRUHTA.js +6 -0
- package/dist/_browser-chunks/chunk-ZTQ5MEJ5.js +203 -0
- package/dist/_browser-chunks/matchers-YLBYSYAF.js +1263 -0
- package/dist/_browser-chunks/react-dom-client-4OHE3QDV.js +9 -0
- package/dist/_node-chunks/attached-runtime-I2G4WLJI.js +282 -0
- package/dist/_node-chunks/builder-manager-VVHYQXCH.js +1661 -0
- package/dist/_node-chunks/chunk-2BUPBPFB.js +82 -0
- package/dist/_node-chunks/chunk-2DSIDINN.js +884 -0
- package/dist/_node-chunks/chunk-2RU7BKEW.js +23 -0
- package/dist/_node-chunks/chunk-34EO2PUT.js +26 -0
- package/dist/_node-chunks/chunk-3BKIBF5S.js +3008 -0
- package/dist/_node-chunks/chunk-3SDUYDXH.js +98 -0
- package/dist/_node-chunks/chunk-3T4ZSNPH.js +662 -0
- package/dist/_node-chunks/chunk-3W7F2B7P.js +79 -0
- package/dist/_node-chunks/chunk-3Y6AAY5H.js +80 -0
- package/dist/_node-chunks/chunk-42UWAGPW.js +1193 -0
- package/dist/_node-chunks/chunk-4FEANXWU.js +1986 -0
- package/dist/_node-chunks/chunk-5DQFEZEA.js +40 -0
- package/dist/_node-chunks/chunk-6KEHV53S.js +1218 -0
- package/dist/_node-chunks/chunk-6LMWA44H.js +3837 -0
- package/dist/_node-chunks/chunk-6YKBRP72.js +20 -0
- package/dist/_node-chunks/chunk-7GUDZVRQ.js +110 -0
- package/dist/_node-chunks/chunk-B5J7Q7J4.js +21 -0
- package/dist/_node-chunks/chunk-BS2WMZMR.js +90 -0
- package/dist/_node-chunks/chunk-BSKFCWQD.js +47 -0
- package/dist/_node-chunks/chunk-BXVYT7SB.js +36 -0
- package/dist/_node-chunks/chunk-CCOTJ4FC.js +688 -0
- package/dist/_node-chunks/chunk-CQKMLL5J.js +33 -0
- package/dist/_node-chunks/chunk-CXRU72ET.js +63 -0
- package/dist/_node-chunks/chunk-DC7DKR5K.js +20 -0
- package/dist/_node-chunks/chunk-DHJFTB4K.js +25 -0
- package/dist/_node-chunks/chunk-DUR55DJJ.js +1094 -0
- package/dist/_node-chunks/chunk-E6YESGLX.js +7032 -0
- package/dist/_node-chunks/chunk-EHUNOMDD.js +52345 -0
- package/dist/_node-chunks/chunk-ET7PWEO7.js +298 -0
- package/dist/_node-chunks/chunk-EWOX7HPJ.js +20 -0
- package/dist/_node-chunks/chunk-F3ZFKBHY.js +844 -0
- package/dist/_node-chunks/chunk-FK7KGTV7.js +26 -0
- package/dist/_node-chunks/chunk-FPZB5OI7.js +35 -0
- package/dist/_node-chunks/chunk-FW2HQUBQ.js +25 -0
- package/dist/_node-chunks/chunk-FY6UXW6G.js +11 -0
- package/dist/_node-chunks/chunk-GEFQN7K3.js +499 -0
- package/dist/_node-chunks/chunk-GRBLDJCR.js +989 -0
- package/dist/_node-chunks/chunk-H32DYT6P.js +87 -0
- package/dist/_node-chunks/chunk-H4PPVMP5.js +23 -0
- package/dist/_node-chunks/chunk-HMP2G23X.js +25 -0
- package/dist/_node-chunks/chunk-ICPBH3E7.js +59 -0
- package/dist/_node-chunks/chunk-IDEL2J23.js +23 -0
- package/dist/_node-chunks/chunk-IK4FGZLR.js +223 -0
- package/dist/_node-chunks/chunk-JDXXX6LB.js +68 -0
- package/dist/_node-chunks/chunk-JGGFYIG5.js +5468 -0
- package/dist/_node-chunks/chunk-JPAZLYJ3.js +29 -0
- package/dist/_node-chunks/chunk-JZOO7GGC.js +48 -0
- package/dist/_node-chunks/chunk-KISMCCP5.js +4744 -0
- package/dist/_node-chunks/chunk-LCK4ZQKG.js +115 -0
- package/dist/_node-chunks/chunk-LO56I6E2.js +132 -0
- package/dist/_node-chunks/chunk-LXBD4UL4.js +104 -0
- package/dist/_node-chunks/chunk-MA24JW6C.js +7162 -0
- package/dist/_node-chunks/chunk-MK2KYAI6.js +5414 -0
- package/dist/_node-chunks/chunk-NDWKJ4CL.js +2102 -0
- package/dist/_node-chunks/chunk-NIBT7XDZ.js +168 -0
- package/dist/_node-chunks/chunk-NPO45IMH.js +33 -0
- package/dist/_node-chunks/chunk-OISX4AGQ.js +414 -0
- package/dist/_node-chunks/chunk-OUW6R7C3.js +26 -0
- package/dist/_node-chunks/chunk-OWNFOGTA.js +194 -0
- package/dist/_node-chunks/chunk-Q7QNUM5H.js +49 -0
- package/dist/_node-chunks/chunk-QEQLR22M.js +1877 -0
- package/dist/_node-chunks/chunk-RRN2V55B.js +45 -0
- package/dist/_node-chunks/chunk-RWFIFGO5.js +144 -0
- package/dist/_node-chunks/chunk-RXNJDRGO.js +209 -0
- package/dist/_node-chunks/chunk-RZMQ7S3L.js +92 -0
- package/dist/_node-chunks/chunk-SIEXZVCR.js +51 -0
- package/dist/_node-chunks/chunk-SLWQNBGO.js +2034 -0
- package/dist/_node-chunks/chunk-SVTBJ7Q3.js +35 -0
- package/dist/_node-chunks/chunk-SWO5CDYU.js +32 -0
- package/dist/_node-chunks/chunk-TD5PLLQG.js +121 -0
- package/dist/_node-chunks/chunk-TEQGGSP7.js +33 -0
- package/dist/_node-chunks/chunk-TFCEV2XX.js +155 -0
- package/dist/_node-chunks/chunk-TFEWM4E3.js +1073 -0
- package/dist/_node-chunks/chunk-TINO74G5.js +21 -0
- package/dist/_node-chunks/chunk-TNJIXE37.js +40 -0
- package/dist/_node-chunks/chunk-TWI4GVH7.js +19 -0
- package/dist/_node-chunks/chunk-U5W53R2J.js +1011 -0
- package/dist/_node-chunks/chunk-UBOGWBEA.js +148 -0
- package/dist/_node-chunks/chunk-UMUBKI6E.js +3787 -0
- package/dist/_node-chunks/chunk-UVINFLGY.js +56 -0
- package/dist/_node-chunks/chunk-V2DY426G.js +1133 -0
- package/dist/_node-chunks/chunk-VLOXOXXE.js +45 -0
- package/dist/_node-chunks/chunk-W4OMYLSP.js +1297 -0
- package/dist/_node-chunks/chunk-WAXVSN3O.js +18 -0
- package/dist/_node-chunks/chunk-WCULS5TP.js +3767 -0
- package/dist/_node-chunks/chunk-WNZ2UMFM.js +153 -0
- package/dist/_node-chunks/chunk-WZJF2OUH.js +74 -0
- package/dist/_node-chunks/chunk-XGIUVY52.js +611 -0
- package/dist/_node-chunks/chunk-XHL2LVBM.js +415 -0
- package/dist/_node-chunks/chunk-XI6B6P47.js +59 -0
- package/dist/_node-chunks/chunk-XLP2ZKXV.js +60 -0
- package/dist/_node-chunks/chunk-YCMRA6RX.js +95 -0
- package/dist/_node-chunks/chunk-YZFWBA5L.js +2700 -0
- package/dist/_node-chunks/chunk-ZMAMXQKP.js +4731 -0
- package/dist/_node-chunks/chunk-ZWBCQ4MJ.js +110 -0
- package/dist/_node-chunks/dist-VTSTZKUB.js +16 -0
- package/dist/_node-chunks/globby-OEMHPBFY.js +2884 -0
- package/dist/_node-chunks/jiti-NFX6UU74.js +3848 -0
- package/dist/_node-chunks/lib-MDVARD7W.js +366 -0
- package/dist/_node-chunks/local-runtime-NTKIN2QT.js +78 -0
- package/dist/_node-chunks/mdx-plugin-MWISDWDQ.js +5680 -0
- package/dist/_node-chunks/monorepo-LIRFMQXE.js +121 -0
- package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js +121 -0
- package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +22 -0
- package/dist/_node-chunks/pattern-copy-play-EKHIUAU2.js +807 -0
- package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +20 -0
- package/dist/_node-chunks/rehype-external-links-BUN3HUCO.js +121 -0
- package/dist/_node-chunks/rehype-slug-PLADX223.js +52 -0
- package/dist/_node-chunks/relaxed-limits-GBHW6KIQ.js +117 -0
- package/dist/_node-chunks/run-KDTIZNSY.js +103 -0
- package/dist/_node-chunks/run-NL66VTNR.js +4532 -0
- package/dist/_node-chunks/session-id-KIIVOQLR.js +23 -0
- package/dist/_node-chunks/setup-MGC7BQO6.js +278 -0
- package/dist/_node-chunks/vitest.config.4.template-JH2THZFG.js +54 -0
- package/dist/actions/decorator.d.ts +7 -0
- package/dist/actions/decorator.js +43 -0
- package/dist/actions/index.d.ts +67 -0
- package/dist/actions/index.js +28 -0
- package/dist/addon-a11y/index.d.ts +52 -0
- package/dist/addon-a11y/index.js +16 -0
- package/dist/addon-a11y/manager.js +1429 -0
- package/dist/addon-a11y/preset.js +18 -0
- package/dist/addon-a11y/preview.d.ts +17 -0
- package/dist/addon-a11y/preview.js +15 -0
- package/dist/addon-docs/blocks.d.ts +1061 -0
- package/dist/addon-docs/blocks.js +2461 -0
- package/dist/addon-docs/index.d.ts +236 -0
- package/dist/addon-docs/index.js +16 -0
- package/dist/addon-docs/manager.js +90 -0
- package/dist/addon-docs/mdx-react-shim.d.ts +1 -0
- package/dist/addon-docs/mdx-react-shim.js +2 -0
- package/dist/addon-docs/preset.js +378 -0
- package/dist/addon-docs/preview.d.ts +4 -0
- package/dist/addon-docs/preview.js +7 -0
- package/dist/addon-links/index.d.ts +22 -0
- package/dist/addon-links/index.js +20 -0
- package/dist/addon-links/manager.js +14 -0
- package/dist/addon-links/preview.d.ts +6 -0
- package/dist/addon-links/preview.js +9 -0
- package/dist/addon-links/react/index.d.ts +25 -0
- package/dist/addon-links/react/index.js +52 -0
- package/dist/addon-mcp/preset.js +1345 -0
- package/dist/addon-mcp/preview.js +29 -0
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +1153 -0
- package/dist/addon-ondevice-actions/index.d.ts +4 -0
- package/dist/addon-ondevice-actions/index.js +7 -0
- package/dist/addon-ondevice-actions/register.js +7 -0
- package/dist/addon-ondevice-controls/index.d.ts +6 -0
- package/dist/addon-ondevice-controls/index.js +14 -0
- package/dist/addon-ondevice-controls/register.js +10 -0
- package/dist/addon-pseudo-states/index.d.ts +35 -0
- package/dist/addon-pseudo-states/index.js +15 -0
- package/dist/addon-pseudo-states/manager.js +53 -0
- package/dist/addon-pseudo-states/preview.d.ts +9 -0
- package/dist/addon-pseudo-states/preview.js +10 -0
- package/dist/addon-themes/index.d.ts +80 -0
- package/dist/addon-themes/index.js +104 -0
- package/dist/addon-themes/manager.js +97 -0
- package/dist/addon-themes/postinstall.js +33 -0
- package/dist/addon-themes/preview.d.ts +6 -0
- package/dist/addon-themes/preview.js +8 -0
- package/dist/addon-vitest/constants.d.ts +132 -0
- package/dist/addon-vitest/constants.js +66 -0
- package/dist/addon-vitest/index.d.ts +4 -0
- package/dist/addon-vitest/index.js +8 -0
- package/dist/addon-vitest/manager.js +665 -0
- package/dist/addon-vitest/node/coverage-reporter.js +1284 -0
- package/dist/addon-vitest/node/vitest.js +674 -0
- package/dist/addon-vitest/postinstall.js +24 -0
- package/dist/addon-vitest/preset.js +943 -0
- package/dist/addon-vitest/vitest-plugin/global-setup.js +162 -0
- package/dist/addon-vitest/vitest-plugin/index.d.ts +56 -0
- package/dist/addon-vitest/vitest-plugin/index.js +463 -0
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +9 -0
- package/dist/addon-vitest/vitest-plugin/setup-file.browser.4.js +20 -0
- package/dist/addon-vitest/vitest-plugin/setup-file.js +50 -0
- package/dist/addon-vitest/vitest-plugin/test-utils.js +128 -0
- package/dist/babel/index.d.ts +2301 -0
- package/dist/babel/index.js +61 -0
- package/dist/backgrounds/index.d.ts +6 -0
- package/dist/backgrounds/index.js +15 -0
- package/dist/bin/core.js +1705 -0
- package/dist/bin/dispatcher.js +43 -0
- package/dist/bin/loader.js +115 -0
- package/dist/builder-vite/index.d.ts +50 -0
- package/dist/builder-vite/index.js +245 -0
- package/dist/builder-vite/preset.js +27 -0
- package/dist/channels/index.d.ts +2 -0
- package/dist/channels/index.js +352 -0
- package/dist/chunk-B2t1tGRh.d.ts +284 -0
- package/dist/chunk-BCoJQE-f.d.ts +602 -0
- package/dist/chunk-BGkgZp-H.d.ts +214 -0
- package/dist/chunk-BTVrWliM.d.ts +115 -0
- package/dist/chunk-BXLImeLy.d.ts +197 -0
- package/dist/chunk-BfBzpgct.d.ts +916 -0
- package/dist/chunk-Bpi2tz-6.d.ts +511 -0
- package/dist/chunk-BxWufQms.d.ts +142 -0
- package/dist/chunk-C-bavsOH.d.ts +34 -0
- package/dist/chunk-C2p5r3Vt.d.ts +13001 -0
- package/dist/chunk-C6PAgHLT.d.ts +12 -0
- package/dist/chunk-CMeX4WRe.d.ts +179 -0
- package/dist/chunk-Ct9xd6IM.d.ts +65 -0
- package/dist/chunk-CwQKNaYL.d.ts +15 -0
- package/dist/chunk-D7DwV41f.d.ts +3622 -0
- package/dist/chunk-DEVFdzxR.d.ts +253 -0
- package/dist/chunk-DaVb55-_.d.ts +124 -0
- package/dist/chunk-DgRNfmj_.d.ts +40 -0
- package/dist/chunk-DoIGKY33.d.ts +666 -0
- package/dist/chunk-Dr3R0DXk.d.ts +40 -0
- package/dist/chunk-DtHByo32.d.ts +55 -0
- package/dist/chunk-Dw1z1Pki.d.ts +933 -0
- package/dist/chunk-DzuY9DXg.d.ts +79 -0
- package/dist/chunk-FjDVzZTj.d.ts +62 -0
- package/dist/chunk-Kt1tW-D1.d.ts +59 -0
- package/dist/chunk-XP8oHzpE.d.ts +6 -0
- package/dist/chunk-gCX81nOr.d.ts +61 -0
- package/dist/chunk-pcFXCimE.d.ts +741 -0
- package/dist/cli/index.d.ts +1174 -0
- package/dist/cli/index.js +5613 -0
- package/dist/cli/skills/content/index.d.ts +72 -0
- package/dist/cli/skills/content/index.js +335 -0
- package/dist/cli/tools/sdk/child-host.d.ts +61 -0
- package/dist/cli/tools/sdk/child-host.js +131 -0
- package/dist/cli/tools/sdk/index.d.ts +137 -0
- package/dist/cli/tools/sdk/index.js +44 -0
- package/dist/cli-commands/bin/index.js +25 -0
- package/dist/client-logger/index.d.ts +31 -0
- package/dist/client-logger/index.js +63 -0
- package/dist/common/index.d.ts +1103 -0
- package/dist/common/index.js +364 -0
- package/dist/components/index.d.ts +1924 -0
- package/dist/components/index.js +13759 -0
- package/dist/core-events/index.d.ts +155 -0
- package/dist/core-events/index.js +136 -0
- package/dist/core-server/index.d.ts +2200 -0
- package/dist/core-server/index.js +4165 -0
- package/dist/core-server/presets/common-manager.css +170 -0
- package/dist/core-server/presets/common-manager.js +4168 -0
- package/dist/core-server/presets/common-override-preset.js +81 -0
- package/dist/core-server/presets/common-preset.js +2187 -0
- package/dist/create/bin/index.js +23 -0
- package/dist/create/index.js +25 -0
- package/dist/csf/csf-utils.d.ts +2 -0
- package/dist/csf/csf-utils.js +19 -0
- package/dist/csf/index.d.ts +7 -0
- package/dist/csf/index.js +2142 -0
- package/dist/csf-tools/index.d.ts +1157 -0
- package/dist/csf-tools/index.js +736 -0
- package/dist/docs-tools/index.d.ts +197 -0
- package/dist/docs-tools/index.js +61 -0
- package/dist/highlight/index.d.ts +10 -0
- package/dist/highlight/index.js +15 -0
- package/dist/instrumenter/index.d.ts +113 -0
- package/dist/instrumenter/index.js +2595 -0
- package/dist/manager/_manager-chunks/globals-runtime-8HkdnU2F.js +6144 -0
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +3389 -0
- package/dist/manager/_manager-chunks/globals-runtime-BdGkqNEt.js +45 -0
- package/dist/manager/_manager-chunks/globals-runtime-BmphMP6z.js +1190 -0
- package/dist/manager/_manager-chunks/globals-runtime-BvM-NY2g.js +13307 -0
- package/dist/manager/_manager-chunks/globals-runtime-C02fvgcd.js +9243 -0
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +9766 -0
- package/dist/manager/_manager-chunks/globals-runtime-DpNYC-qi.js +5564 -0
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +5357 -0
- package/dist/manager/_manager-chunks/globals-runtime-DwFqpqya.js +722 -0
- package/dist/manager/_manager-chunks/globals-runtime-FC201B7s.js +6837 -0
- package/dist/manager/_manager-chunks/globals-runtime-Rp_zjGnh.js +121 -0
- package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +10463 -0
- package/dist/manager/_manager-chunks/globals-runtime-eLPTIfX-.js +7759 -0
- package/dist/manager/_manager-chunks/globals-runtime-qKvCZHFY.js +4468 -0
- package/dist/manager/_manager-chunks/globals-runtime-sGpNlIJ1.js +5102 -0
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +452 -0
- package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +22 -0
- package/dist/manager/_manager-chunks/runtime-BhkT2CXl.js +1408 -0
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +998 -0
- package/dist/manager/_manager-chunks/runtime-D0UOWx0U.js +979 -0
- package/dist/manager/_manager-chunks/runtime-D94Vq3oR.js +4014 -0
- package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +77 -0
- package/dist/manager/_manager-chunks/runtime-EITvVbkG.js +46 -0
- package/dist/manager/_manager-chunks/runtime-cp5pazY2.js +8936 -0
- package/dist/manager/_manager-chunks/runtime-eDVAYF7N.js +6860 -0
- package/dist/manager/_manager-chunks/runtime-i-PDAHLR.js +2493 -0
- package/dist/manager/globals-runtime.js +2 -0
- package/dist/manager/globals.d.ts +23 -0
- package/dist/manager/globals.js +26 -0
- package/dist/manager/manager-stores.d.ts +2 -0
- package/dist/manager/manager-stores.js +19 -0
- package/dist/manager/runtime.js +2 -0
- package/dist/manager-api/index.d.ts +2 -0
- package/dist/manager-api/index.js +3257 -0
- package/dist/manager-errors.d.ts +89 -0
- package/dist/manager-errors.js +20 -0
- package/dist/mcp/index.d.ts +270 -0
- package/dist/mcp/index.js +305 -0
- package/dist/mocking-utils/index.d.ts +689 -0
- package/dist/mocking-utils/index.js +521 -0
- package/dist/mocking-utils/mocker-runtime.js +1254 -0
- package/dist/nextjs-vite/config/preview.js +3 -0
- package/dist/nextjs-vite/export-mocks/cache/index.d.ts +25 -0
- package/dist/nextjs-vite/export-mocks/cache/index.js +29 -0
- package/dist/nextjs-vite/export-mocks/headers/index.d.ts +37 -0
- package/dist/nextjs-vite/export-mocks/headers/index.js +54 -0
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +9 -0
- package/dist/nextjs-vite/export-mocks/link/index.js +59 -0
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +28 -0
- package/dist/nextjs-vite/export-mocks/navigation/index.js +58 -0
- package/dist/nextjs-vite/export-mocks/router/index.d.ts +34 -0
- package/dist/nextjs-vite/export-mocks/router/index.js +63 -0
- package/dist/nextjs-vite/index.d.ts +92 -0
- package/dist/nextjs-vite/index.js +58 -0
- package/dist/nextjs-vite/node/index.d.ts +6 -0
- package/dist/nextjs-vite/node/index.js +20 -0
- package/dist/nextjs-vite/preset.js +648 -0
- package/dist/nextjs-vite/preview.d.ts +20 -0
- package/dist/nextjs-vite/preview.js +11 -0
- package/dist/nextjs-vite/vite-plugin/index.d.ts +6 -0
- package/dist/nextjs-vite/vite-plugin/index.js +19 -0
- package/dist/nextjs-vite-plugin/index.d.ts +28 -0
- package/dist/nextjs-vite-plugin/index.js +923 -0
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +29 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-context.js +8 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-default-loader.js +23 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +28 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +17 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/cache/index.js +29 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/dynamic/index.js +40 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/headers/index.js +55 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/link/index.js +63 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/navigation/index.js +71 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +74 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/rsc/server-only.js +7 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/safe-stable-stringify/index.js +13 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/compatibility/draft-mode.compat.js +7 -0
- package/dist/node-logger/index.d.ts +495 -0
- package/dist/node-logger/index.js +42 -0
- package/dist/oxc-parser/index.d.ts +99 -0
- package/dist/oxc-parser/index.js +275 -0
- package/dist/oxc-parser/worker.js +37 -0
- package/dist/preview/_chunks/runtime-BIzIdDbb.js +10263 -0
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +1102 -0
- package/dist/preview/_chunks/runtime-BZSnICCg.js +8484 -0
- package/dist/preview/_chunks/runtime-BdGkqNEt.js +45 -0
- package/dist/preview/_chunks/runtime-BwSxqk3t.js +63 -0
- package/dist/preview/_chunks/runtime-CqHxptiK.js +6143 -0
- package/dist/preview/_chunks/runtime-CsV4HZPV.js +5064 -0
- package/dist/preview/_chunks/runtime-CxZK_Ln3.js +284 -0
- package/dist/preview/_chunks/runtime-DZToXfvO.js +9767 -0
- package/dist/preview/_chunks/runtime-DrTjJkPY.js +3872 -0
- package/dist/preview/_chunks/runtime-DuHdxMFA.js +387 -0
- package/dist/preview/_chunks/runtime-iXdo8CR8.js +3635 -0
- package/dist/preview/_chunks/runtime-q3wt0e_N.js +6838 -0
- package/dist/preview/globals.d.ts +16 -0
- package/dist/preview/globals.js +20 -0
- package/dist/preview/runtime.js +6 -0
- package/dist/preview-api/index.d.ts +4 -0
- package/dist/preview-api/index.js +147 -0
- package/dist/preview-errors.d.ts +186 -0
- package/dist/preview-errors.js +56 -0
- package/dist/react/docgen/docgen-worker.js +38 -0
- package/dist/react/entry-preview-argtypes.js +9 -0
- package/dist/react/entry-preview-docs.js +12 -0
- package/dist/react/entry-preview-rsc.js +11 -0
- package/dist/react/entry-preview.js +21 -0
- package/dist/react/index.d.ts +119 -0
- package/dist/react/index.js +26 -0
- package/dist/react/preset.js +301 -0
- package/dist/react/preview.d.ts +2 -0
- package/dist/react/preview.js +11 -0
- package/dist/react-native/bin/get-stories.js +34 -0
- package/dist/react-native/index.d.ts +160 -0
- package/dist/react-native/index.js +1547 -0
- package/dist/react-native/metro/node.d.ts +83 -0
- package/dist/react-native/metro/node.js +21 -0
- package/dist/react-native/metro/withStorybook.d.ts +2269 -0
- package/dist/react-native/metro/withStorybook.js +138 -0
- package/dist/react-native/preview.d.ts +6 -0
- package/dist/react-native/preview.js +20 -0
- package/dist/react-native/scripts/generate.d.ts +22 -0
- package/dist/react-native/scripts/generate.js +18 -0
- package/dist/react-native/stub.js +20 -0
- package/dist/react-native-theming/index.d.ts +175 -0
- package/dist/react-native-theming/index.js +2591 -0
- package/dist/react-native-ui/index.d.ts +130 -0
- package/dist/react-native-ui/index.js +1448 -0
- package/dist/react-native-ui-common/index.d.ts +230 -0
- package/dist/react-native-ui-common/index.js +514 -0
- package/dist/react-vite/index.d.ts +4 -0
- package/dist/react-vite/index.js +8 -0
- package/dist/react-vite/node/index.d.ts +6 -0
- package/dist/react-vite/node/index.js +20 -0
- package/dist/react-vite/preset.d.ts +6 -0
- package/dist/react-vite/preset.js +21 -0
- package/dist/router/index.d.ts +141 -0
- package/dist/router/index.js +1217 -0
- package/dist/server-errors.d.ts +2 -0
- package/dist/server-errors.js +149 -0
- package/dist/shared/open-service/index.d.ts +3 -0
- package/dist/shared/open-service/index.js +115 -0
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +75 -0
- package/dist/shared/open-service/toolsets/docs/public.d.ts +1296 -0
- package/dist/shared/open-service/toolsets/docs/public.js +991 -0
- package/dist/telemetry/index.d.ts +314 -0
- package/dist/telemetry/index.js +103 -0
- package/dist/test/index.d.ts +158 -0
- package/dist/test/index.js +19421 -0
- package/dist/theming/create.d.ts +15 -0
- package/dist/theming/create.js +11 -0
- package/dist/theming/index.d.ts +54 -0
- package/dist/theming/index.js +511 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +48 -0
- package/dist/viewport/index.d.ts +275 -0
- package/dist/viewport/index.js +21 -0
- package/package.json +1054 -4
- package/template/nextjs-vite/cli/.eslintrc.json +6 -0
- package/template/nextjs-vite/cli/js/Button.jsx +42 -0
- package/template/nextjs-vite/cli/js/Button.stories.js +49 -0
- package/template/nextjs-vite/cli/js/Configure.mdx +470 -0
- package/template/nextjs-vite/cli/js/Header.jsx +58 -0
- package/template/nextjs-vite/cli/js/Header.stories.js +30 -0
- package/template/nextjs-vite/cli/js/Page.jsx +68 -0
- package/template/nextjs-vite/cli/js/Page.stories.js +28 -0
- package/template/nextjs-vite/cli/ts/Button.stories.ts +54 -0
- package/template/nextjs-vite/cli/ts/Button.tsx +39 -0
- package/template/nextjs-vite/cli/ts/Configure.mdx +446 -0
- package/template/nextjs-vite/cli/ts/Header.stories.ts +34 -0
- package/template/nextjs-vite/cli/ts/Header.tsx +54 -0
- package/template/nextjs-vite/cli/ts/Page.stories.ts +33 -0
- package/template/nextjs-vite/cli/ts/Page.tsx +73 -0
- package/template/react/cli/.eslintrc.json +5 -0
- package/template/react/cli/js/Button.jsx +39 -0
- package/template/react/cli/js/Button.stories.js +49 -0
- package/template/react/cli/js/Header.jsx +56 -0
- package/template/react/cli/js/Header.stories.js +29 -0
- package/template/react/cli/js/Page.jsx +69 -0
- package/template/react/cli/js/Page.stories.js +28 -0
- package/template/react/cli/ts/Button.stories.ts +54 -0
- package/template/react/cli/ts/Button.tsx +37 -0
- package/template/react/cli/ts/Header.stories.ts +34 -0
- package/template/react/cli/ts/Header.tsx +56 -0
- package/template/react/cli/ts/Page.stories.ts +33 -0
- package/template/react/cli/ts/Page.tsx +73 -0
- package/template/react-vite/cli/.eslintrc.json +5 -0
- package/template/react-vite/cli/js/Button.jsx +39 -0
- package/template/react-vite/cli/js/Button.stories.js +49 -0
- package/template/react-vite/cli/js/Header.jsx +56 -0
- package/template/react-vite/cli/js/Header.stories.js +29 -0
- package/template/react-vite/cli/js/Page.jsx +69 -0
- package/template/react-vite/cli/js/Page.stories.js +28 -0
- package/template/react-vite/cli/ts/Button.stories.ts +54 -0
- package/template/react-vite/cli/ts/Button.tsx +37 -0
- package/template/react-vite/cli/ts/Header.stories.ts +34 -0
- package/template/react-vite/cli/ts/Header.tsx +56 -0
- package/template/react-vite/cli/ts/Page.stories.ts +33 -0
- package/template/react-vite/cli/ts/Page.tsx +73 -0
|
@@ -0,0 +1,2591 @@
|
|
|
1
|
+
import {
|
|
2
|
+
curriedTransparentize$1
|
|
3
|
+
} from "../_browser-chunks/chunk-S6TK43XQ.js";
|
|
4
|
+
import {
|
|
5
|
+
_extends
|
|
6
|
+
} from "../_browser-chunks/chunk-LE2LTDW3.js";
|
|
7
|
+
import {
|
|
8
|
+
__commonJS,
|
|
9
|
+
__toESM
|
|
10
|
+
} from "../_browser-chunks/chunk-IMSF75WX.js";
|
|
11
|
+
|
|
12
|
+
// ../../node_modules/postcss-value-parser/lib/parse.js
|
|
13
|
+
var require_parse = __commonJS({
|
|
14
|
+
"../../node_modules/postcss-value-parser/lib/parse.js"(exports, module) {
|
|
15
|
+
var openParentheses = 40, closeParentheses = 41, singleQuote = 39, doubleQuote = 34, backslash = 92, slash = 47, comma = 44, colon = 58, star = 42, uLower = 117, uUpper = 85, plus = 43, isUnicodeRange = /^[a-f0-9?-]+$/i;
|
|
16
|
+
module.exports = function(input) {
|
|
17
|
+
for (var tokens = [], value = input, next2, quote, prev2, token2, escape, escapePos, whitespacePos, parenthesesOpenPos, pos = 0, code = value.charCodeAt(pos), max = value.length, stack = [{ nodes: tokens }], balanced = 0, parent, name = "", before = "", after = ""; pos < max; )
|
|
18
|
+
if (code <= 32) {
|
|
19
|
+
next2 = pos;
|
|
20
|
+
do
|
|
21
|
+
next2 += 1, code = value.charCodeAt(next2);
|
|
22
|
+
while (code <= 32);
|
|
23
|
+
token2 = value.slice(pos, next2), prev2 = tokens[tokens.length - 1], code === closeParentheses && balanced ? after = token2 : prev2 && prev2.type === "div" ? (prev2.after = token2, prev2.sourceEndIndex += token2.length) : code === comma || code === colon || code === slash && value.charCodeAt(next2 + 1) !== star && (!parent || parent && parent.type === "function" && parent.value !== "calc") ? before = token2 : tokens.push({
|
|
24
|
+
type: "space",
|
|
25
|
+
sourceIndex: pos,
|
|
26
|
+
sourceEndIndex: next2,
|
|
27
|
+
value: token2
|
|
28
|
+
}), pos = next2;
|
|
29
|
+
} else if (code === singleQuote || code === doubleQuote) {
|
|
30
|
+
next2 = pos, quote = code === singleQuote ? "'" : '"', token2 = {
|
|
31
|
+
type: "string",
|
|
32
|
+
sourceIndex: pos,
|
|
33
|
+
quote
|
|
34
|
+
};
|
|
35
|
+
do
|
|
36
|
+
if (escape = !1, next2 = value.indexOf(quote, next2 + 1), ~next2)
|
|
37
|
+
for (escapePos = next2; value.charCodeAt(escapePos - 1) === backslash; )
|
|
38
|
+
escapePos -= 1, escape = !escape;
|
|
39
|
+
else
|
|
40
|
+
value += quote, next2 = value.length - 1, token2.unclosed = !0;
|
|
41
|
+
while (escape);
|
|
42
|
+
token2.value = value.slice(pos + 1, next2), token2.sourceEndIndex = token2.unclosed ? next2 : next2 + 1, tokens.push(token2), pos = next2 + 1, code = value.charCodeAt(pos);
|
|
43
|
+
} else if (code === slash && value.charCodeAt(pos + 1) === star)
|
|
44
|
+
next2 = value.indexOf("*/", pos), token2 = {
|
|
45
|
+
type: "comment",
|
|
46
|
+
sourceIndex: pos,
|
|
47
|
+
sourceEndIndex: next2 + 2
|
|
48
|
+
}, next2 === -1 && (token2.unclosed = !0, next2 = value.length, token2.sourceEndIndex = next2), token2.value = value.slice(pos + 2, next2), tokens.push(token2), pos = next2 + 2, code = value.charCodeAt(pos);
|
|
49
|
+
else if ((code === slash || code === star) && parent && parent.type === "function" && parent.value === "calc")
|
|
50
|
+
token2 = value[pos], tokens.push({
|
|
51
|
+
type: "word",
|
|
52
|
+
sourceIndex: pos - before.length,
|
|
53
|
+
sourceEndIndex: pos + token2.length,
|
|
54
|
+
value: token2
|
|
55
|
+
}), pos += 1, code = value.charCodeAt(pos);
|
|
56
|
+
else if (code === slash || code === comma || code === colon)
|
|
57
|
+
token2 = value[pos], tokens.push({
|
|
58
|
+
type: "div",
|
|
59
|
+
sourceIndex: pos - before.length,
|
|
60
|
+
sourceEndIndex: pos + token2.length,
|
|
61
|
+
value: token2,
|
|
62
|
+
before,
|
|
63
|
+
after: ""
|
|
64
|
+
}), before = "", pos += 1, code = value.charCodeAt(pos);
|
|
65
|
+
else if (openParentheses === code) {
|
|
66
|
+
next2 = pos;
|
|
67
|
+
do
|
|
68
|
+
next2 += 1, code = value.charCodeAt(next2);
|
|
69
|
+
while (code <= 32);
|
|
70
|
+
if (parenthesesOpenPos = pos, token2 = {
|
|
71
|
+
type: "function",
|
|
72
|
+
sourceIndex: pos - name.length,
|
|
73
|
+
value: name,
|
|
74
|
+
before: value.slice(parenthesesOpenPos + 1, next2)
|
|
75
|
+
}, pos = next2, name === "url" && code !== singleQuote && code !== doubleQuote) {
|
|
76
|
+
next2 -= 1;
|
|
77
|
+
do
|
|
78
|
+
if (escape = !1, next2 = value.indexOf(")", next2 + 1), ~next2)
|
|
79
|
+
for (escapePos = next2; value.charCodeAt(escapePos - 1) === backslash; )
|
|
80
|
+
escapePos -= 1, escape = !escape;
|
|
81
|
+
else
|
|
82
|
+
value += ")", next2 = value.length - 1, token2.unclosed = !0;
|
|
83
|
+
while (escape);
|
|
84
|
+
whitespacePos = next2;
|
|
85
|
+
do
|
|
86
|
+
whitespacePos -= 1, code = value.charCodeAt(whitespacePos);
|
|
87
|
+
while (code <= 32);
|
|
88
|
+
parenthesesOpenPos < whitespacePos ? (pos !== whitespacePos + 1 ? token2.nodes = [
|
|
89
|
+
{
|
|
90
|
+
type: "word",
|
|
91
|
+
sourceIndex: pos,
|
|
92
|
+
sourceEndIndex: whitespacePos + 1,
|
|
93
|
+
value: value.slice(pos, whitespacePos + 1)
|
|
94
|
+
}
|
|
95
|
+
] : token2.nodes = [], token2.unclosed && whitespacePos + 1 !== next2 ? (token2.after = "", token2.nodes.push({
|
|
96
|
+
type: "space",
|
|
97
|
+
sourceIndex: whitespacePos + 1,
|
|
98
|
+
sourceEndIndex: next2,
|
|
99
|
+
value: value.slice(whitespacePos + 1, next2)
|
|
100
|
+
})) : (token2.after = value.slice(whitespacePos + 1, next2), token2.sourceEndIndex = next2)) : (token2.after = "", token2.nodes = []), pos = next2 + 1, token2.sourceEndIndex = token2.unclosed ? next2 : pos, code = value.charCodeAt(pos), tokens.push(token2);
|
|
101
|
+
} else
|
|
102
|
+
balanced += 1, token2.after = "", token2.sourceEndIndex = pos + 1, tokens.push(token2), stack.push(token2), tokens = token2.nodes = [], parent = token2;
|
|
103
|
+
name = "";
|
|
104
|
+
} else if (closeParentheses === code && balanced)
|
|
105
|
+
pos += 1, code = value.charCodeAt(pos), parent.after = after, parent.sourceEndIndex += after.length, after = "", balanced -= 1, stack[stack.length - 1].sourceEndIndex = pos, stack.pop(), parent = stack[balanced], tokens = parent.nodes;
|
|
106
|
+
else {
|
|
107
|
+
next2 = pos;
|
|
108
|
+
do
|
|
109
|
+
code === backslash && (next2 += 1), next2 += 1, code = value.charCodeAt(next2);
|
|
110
|
+
while (next2 < max && !(code <= 32 || code === singleQuote || code === doubleQuote || code === comma || code === colon || code === slash || code === openParentheses || code === star && parent && parent.type === "function" && parent.value === "calc" || code === slash && parent.type === "function" && parent.value === "calc" || code === closeParentheses && balanced));
|
|
111
|
+
token2 = value.slice(pos, next2), openParentheses === code ? name = token2 : (uLower === token2.charCodeAt(0) || uUpper === token2.charCodeAt(0)) && plus === token2.charCodeAt(1) && isUnicodeRange.test(token2.slice(2)) ? tokens.push({
|
|
112
|
+
type: "unicode-range",
|
|
113
|
+
sourceIndex: pos,
|
|
114
|
+
sourceEndIndex: next2,
|
|
115
|
+
value: token2
|
|
116
|
+
}) : tokens.push({
|
|
117
|
+
type: "word",
|
|
118
|
+
sourceIndex: pos,
|
|
119
|
+
sourceEndIndex: next2,
|
|
120
|
+
value: token2
|
|
121
|
+
}), pos = next2;
|
|
122
|
+
}
|
|
123
|
+
for (pos = stack.length - 1; pos; pos -= 1)
|
|
124
|
+
stack[pos].unclosed = !0, stack[pos].sourceEndIndex = value.length;
|
|
125
|
+
return stack[0].nodes;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
// ../../node_modules/postcss-value-parser/lib/walk.js
|
|
131
|
+
var require_walk = __commonJS({
|
|
132
|
+
"../../node_modules/postcss-value-parser/lib/walk.js"(exports, module) {
|
|
133
|
+
module.exports = function walk(nodes, cb, bubble) {
|
|
134
|
+
var i, max, node2, result;
|
|
135
|
+
for (i = 0, max = nodes.length; i < max; i += 1)
|
|
136
|
+
node2 = nodes[i], bubble || (result = cb(node2, i, nodes)), result !== !1 && node2.type === "function" && Array.isArray(node2.nodes) && walk(node2.nodes, cb, bubble), bubble && cb(node2, i, nodes);
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
// ../../node_modules/postcss-value-parser/lib/stringify.js
|
|
142
|
+
var require_stringify = __commonJS({
|
|
143
|
+
"../../node_modules/postcss-value-parser/lib/stringify.js"(exports, module) {
|
|
144
|
+
function stringifyNode(node2, custom) {
|
|
145
|
+
var type = node2.type, value = node2.value, buf, customResult;
|
|
146
|
+
return custom && (customResult = custom(node2)) !== void 0 ? customResult : type === "word" || type === "space" ? value : type === "string" ? (buf = node2.quote || "", buf + value + (node2.unclosed ? "" : buf)) : type === "comment" ? "/*" + value + (node2.unclosed ? "" : "*/") : type === "div" ? (node2.before || "") + value + (node2.after || "") : Array.isArray(node2.nodes) ? (buf = stringify2(node2.nodes, custom), type !== "function" ? buf : value + "(" + (node2.before || "") + buf + (node2.after || "") + (node2.unclosed ? "" : ")")) : value;
|
|
147
|
+
}
|
|
148
|
+
function stringify2(nodes, custom) {
|
|
149
|
+
var result, i;
|
|
150
|
+
if (Array.isArray(nodes)) {
|
|
151
|
+
for (result = "", i = nodes.length - 1; ~i; i -= 1)
|
|
152
|
+
result = stringifyNode(nodes[i], custom) + result;
|
|
153
|
+
return result;
|
|
154
|
+
}
|
|
155
|
+
return stringifyNode(nodes, custom);
|
|
156
|
+
}
|
|
157
|
+
module.exports = stringify2;
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
// ../../node_modules/postcss-value-parser/lib/unit.js
|
|
162
|
+
var require_unit = __commonJS({
|
|
163
|
+
"../../node_modules/postcss-value-parser/lib/unit.js"(exports, module) {
|
|
164
|
+
var minus = 45, plus = 43, dot = 46, exp = 101, EXP = 69;
|
|
165
|
+
function likeNumber(value) {
|
|
166
|
+
var code = value.charCodeAt(0), nextCode;
|
|
167
|
+
if (code === plus || code === minus) {
|
|
168
|
+
if (nextCode = value.charCodeAt(1), nextCode >= 48 && nextCode <= 57)
|
|
169
|
+
return !0;
|
|
170
|
+
var nextNextCode = value.charCodeAt(2);
|
|
171
|
+
return nextCode === dot && nextNextCode >= 48 && nextNextCode <= 57;
|
|
172
|
+
}
|
|
173
|
+
return code === dot ? (nextCode = value.charCodeAt(1), nextCode >= 48 && nextCode <= 57) : code >= 48 && code <= 57;
|
|
174
|
+
}
|
|
175
|
+
module.exports = function(value) {
|
|
176
|
+
var pos = 0, length2 = value.length, code, nextCode, nextNextCode;
|
|
177
|
+
if (length2 === 0 || !likeNumber(value))
|
|
178
|
+
return !1;
|
|
179
|
+
for (code = value.charCodeAt(pos), (code === plus || code === minus) && pos++; pos < length2 && (code = value.charCodeAt(pos), !(code < 48 || code > 57)); )
|
|
180
|
+
pos += 1;
|
|
181
|
+
if (code = value.charCodeAt(pos), nextCode = value.charCodeAt(pos + 1), code === dot && nextCode >= 48 && nextCode <= 57)
|
|
182
|
+
for (pos += 2; pos < length2 && (code = value.charCodeAt(pos), !(code < 48 || code > 57)); )
|
|
183
|
+
pos += 1;
|
|
184
|
+
if (code = value.charCodeAt(pos), nextCode = value.charCodeAt(pos + 1), nextNextCode = value.charCodeAt(pos + 2), (code === exp || code === EXP) && (nextCode >= 48 && nextCode <= 57 || (nextCode === plus || nextCode === minus) && nextNextCode >= 48 && nextNextCode <= 57))
|
|
185
|
+
for (pos += nextCode === plus || nextCode === minus ? 3 : 2; pos < length2 && (code = value.charCodeAt(pos), !(code < 48 || code > 57)); )
|
|
186
|
+
pos += 1;
|
|
187
|
+
return {
|
|
188
|
+
number: value.slice(0, pos),
|
|
189
|
+
unit: value.slice(pos)
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
// ../../node_modules/postcss-value-parser/lib/index.js
|
|
196
|
+
var require_lib = __commonJS({
|
|
197
|
+
"../../node_modules/postcss-value-parser/lib/index.js"(exports, module) {
|
|
198
|
+
var parse2 = require_parse(), walk = require_walk(), stringify2 = require_stringify();
|
|
199
|
+
function ValueParser(value) {
|
|
200
|
+
return this instanceof ValueParser ? (this.nodes = parse2(value), this) : new ValueParser(value);
|
|
201
|
+
}
|
|
202
|
+
ValueParser.prototype.toString = function() {
|
|
203
|
+
return Array.isArray(this.nodes) ? stringify2(this.nodes) : "";
|
|
204
|
+
};
|
|
205
|
+
ValueParser.prototype.walk = function(cb, bubble) {
|
|
206
|
+
return walk(this.nodes, cb, bubble), this;
|
|
207
|
+
};
|
|
208
|
+
ValueParser.unit = require_unit();
|
|
209
|
+
ValueParser.walk = walk;
|
|
210
|
+
ValueParser.stringify = stringify2;
|
|
211
|
+
module.exports = ValueParser;
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
// ../../node_modules/camelize/index.js
|
|
216
|
+
var require_camelize = __commonJS({
|
|
217
|
+
"../../node_modules/camelize/index.js"(exports, module) {
|
|
218
|
+
"use strict";
|
|
219
|
+
module.exports = function(obj) {
|
|
220
|
+
return typeof obj == "string" ? camelCase(obj) : walk(obj);
|
|
221
|
+
};
|
|
222
|
+
function walk(obj) {
|
|
223
|
+
return !obj || typeof obj != "object" || isDate(obj) || isRegex(obj) ? obj : isArray(obj) ? map(obj, walk) : reduce(objectKeys(obj), function(acc, key) {
|
|
224
|
+
var camel = camelCase(key);
|
|
225
|
+
return acc[camel] = walk(obj[key]), acc;
|
|
226
|
+
}, {});
|
|
227
|
+
}
|
|
228
|
+
function camelCase(str) {
|
|
229
|
+
return str.replace(/[_.-](\w|$)/g, function(_, x) {
|
|
230
|
+
return x.toUpperCase();
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
var isArray = Array.isArray || function(obj) {
|
|
234
|
+
return Object.prototype.toString.call(obj) === "[object Array]";
|
|
235
|
+
}, isDate = function(obj) {
|
|
236
|
+
return Object.prototype.toString.call(obj) === "[object Date]";
|
|
237
|
+
}, isRegex = function(obj) {
|
|
238
|
+
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
239
|
+
}, has = Object.prototype.hasOwnProperty, objectKeys = Object.keys || function(obj) {
|
|
240
|
+
var keys = [];
|
|
241
|
+
for (var key in obj)
|
|
242
|
+
has.call(obj, key) && keys.push(key);
|
|
243
|
+
return keys;
|
|
244
|
+
};
|
|
245
|
+
function map(xs, f) {
|
|
246
|
+
if (xs.map)
|
|
247
|
+
return xs.map(f);
|
|
248
|
+
for (var res = [], i = 0; i < xs.length; i++)
|
|
249
|
+
res.push(f(xs[i], i));
|
|
250
|
+
return res;
|
|
251
|
+
}
|
|
252
|
+
function reduce(xs, f, acc) {
|
|
253
|
+
if (xs.reduce)
|
|
254
|
+
return xs.reduce(f, acc);
|
|
255
|
+
for (var i = 0; i < xs.length; i++)
|
|
256
|
+
acc = f(acc, xs[i], i);
|
|
257
|
+
return acc;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
// ../../node_modules/css-color-keywords/colors.json
|
|
263
|
+
var require_colors = __commonJS({
|
|
264
|
+
"../../node_modules/css-color-keywords/colors.json"(exports, module) {
|
|
265
|
+
module.exports = {
|
|
266
|
+
black: "#000000",
|
|
267
|
+
silver: "#c0c0c0",
|
|
268
|
+
gray: "#808080",
|
|
269
|
+
white: "#ffffff",
|
|
270
|
+
maroon: "#800000",
|
|
271
|
+
red: "#ff0000",
|
|
272
|
+
purple: "#800080",
|
|
273
|
+
fuchsia: "#ff00ff",
|
|
274
|
+
green: "#008000",
|
|
275
|
+
lime: "#00ff00",
|
|
276
|
+
olive: "#808000",
|
|
277
|
+
yellow: "#ffff00",
|
|
278
|
+
navy: "#000080",
|
|
279
|
+
blue: "#0000ff",
|
|
280
|
+
teal: "#008080",
|
|
281
|
+
aqua: "#00ffff",
|
|
282
|
+
orange: "#ffa500",
|
|
283
|
+
aliceblue: "#f0f8ff",
|
|
284
|
+
antiquewhite: "#faebd7",
|
|
285
|
+
aquamarine: "#7fffd4",
|
|
286
|
+
azure: "#f0ffff",
|
|
287
|
+
beige: "#f5f5dc",
|
|
288
|
+
bisque: "#ffe4c4",
|
|
289
|
+
blanchedalmond: "#ffebcd",
|
|
290
|
+
blueviolet: "#8a2be2",
|
|
291
|
+
brown: "#a52a2a",
|
|
292
|
+
burlywood: "#deb887",
|
|
293
|
+
cadetblue: "#5f9ea0",
|
|
294
|
+
chartreuse: "#7fff00",
|
|
295
|
+
chocolate: "#d2691e",
|
|
296
|
+
coral: "#ff7f50",
|
|
297
|
+
cornflowerblue: "#6495ed",
|
|
298
|
+
cornsilk: "#fff8dc",
|
|
299
|
+
crimson: "#dc143c",
|
|
300
|
+
darkblue: "#00008b",
|
|
301
|
+
darkcyan: "#008b8b",
|
|
302
|
+
darkgoldenrod: "#b8860b",
|
|
303
|
+
darkgray: "#a9a9a9",
|
|
304
|
+
darkgreen: "#006400",
|
|
305
|
+
darkgrey: "#a9a9a9",
|
|
306
|
+
darkkhaki: "#bdb76b",
|
|
307
|
+
darkmagenta: "#8b008b",
|
|
308
|
+
darkolivegreen: "#556b2f",
|
|
309
|
+
darkorange: "#ff8c00",
|
|
310
|
+
darkorchid: "#9932cc",
|
|
311
|
+
darkred: "#8b0000",
|
|
312
|
+
darksalmon: "#e9967a",
|
|
313
|
+
darkseagreen: "#8fbc8f",
|
|
314
|
+
darkslateblue: "#483d8b",
|
|
315
|
+
darkslategray: "#2f4f4f",
|
|
316
|
+
darkslategrey: "#2f4f4f",
|
|
317
|
+
darkturquoise: "#00ced1",
|
|
318
|
+
darkviolet: "#9400d3",
|
|
319
|
+
deeppink: "#ff1493",
|
|
320
|
+
deepskyblue: "#00bfff",
|
|
321
|
+
dimgray: "#696969",
|
|
322
|
+
dimgrey: "#696969",
|
|
323
|
+
dodgerblue: "#1e90ff",
|
|
324
|
+
firebrick: "#b22222",
|
|
325
|
+
floralwhite: "#fffaf0",
|
|
326
|
+
forestgreen: "#228b22",
|
|
327
|
+
gainsboro: "#dcdcdc",
|
|
328
|
+
ghostwhite: "#f8f8ff",
|
|
329
|
+
gold: "#ffd700",
|
|
330
|
+
goldenrod: "#daa520",
|
|
331
|
+
greenyellow: "#adff2f",
|
|
332
|
+
grey: "#808080",
|
|
333
|
+
honeydew: "#f0fff0",
|
|
334
|
+
hotpink: "#ff69b4",
|
|
335
|
+
indianred: "#cd5c5c",
|
|
336
|
+
indigo: "#4b0082",
|
|
337
|
+
ivory: "#fffff0",
|
|
338
|
+
khaki: "#f0e68c",
|
|
339
|
+
lavender: "#e6e6fa",
|
|
340
|
+
lavenderblush: "#fff0f5",
|
|
341
|
+
lawngreen: "#7cfc00",
|
|
342
|
+
lemonchiffon: "#fffacd",
|
|
343
|
+
lightblue: "#add8e6",
|
|
344
|
+
lightcoral: "#f08080",
|
|
345
|
+
lightcyan: "#e0ffff",
|
|
346
|
+
lightgoldenrodyellow: "#fafad2",
|
|
347
|
+
lightgray: "#d3d3d3",
|
|
348
|
+
lightgreen: "#90ee90",
|
|
349
|
+
lightgrey: "#d3d3d3",
|
|
350
|
+
lightpink: "#ffb6c1",
|
|
351
|
+
lightsalmon: "#ffa07a",
|
|
352
|
+
lightseagreen: "#20b2aa",
|
|
353
|
+
lightskyblue: "#87cefa",
|
|
354
|
+
lightslategray: "#778899",
|
|
355
|
+
lightslategrey: "#778899",
|
|
356
|
+
lightsteelblue: "#b0c4de",
|
|
357
|
+
lightyellow: "#ffffe0",
|
|
358
|
+
limegreen: "#32cd32",
|
|
359
|
+
linen: "#faf0e6",
|
|
360
|
+
mediumaquamarine: "#66cdaa",
|
|
361
|
+
mediumblue: "#0000cd",
|
|
362
|
+
mediumorchid: "#ba55d3",
|
|
363
|
+
mediumpurple: "#9370db",
|
|
364
|
+
mediumseagreen: "#3cb371",
|
|
365
|
+
mediumslateblue: "#7b68ee",
|
|
366
|
+
mediumspringgreen: "#00fa9a",
|
|
367
|
+
mediumturquoise: "#48d1cc",
|
|
368
|
+
mediumvioletred: "#c71585",
|
|
369
|
+
midnightblue: "#191970",
|
|
370
|
+
mintcream: "#f5fffa",
|
|
371
|
+
mistyrose: "#ffe4e1",
|
|
372
|
+
moccasin: "#ffe4b5",
|
|
373
|
+
navajowhite: "#ffdead",
|
|
374
|
+
oldlace: "#fdf5e6",
|
|
375
|
+
olivedrab: "#6b8e23",
|
|
376
|
+
orangered: "#ff4500",
|
|
377
|
+
orchid: "#da70d6",
|
|
378
|
+
palegoldenrod: "#eee8aa",
|
|
379
|
+
palegreen: "#98fb98",
|
|
380
|
+
paleturquoise: "#afeeee",
|
|
381
|
+
palevioletred: "#db7093",
|
|
382
|
+
papayawhip: "#ffefd5",
|
|
383
|
+
peachpuff: "#ffdab9",
|
|
384
|
+
peru: "#cd853f",
|
|
385
|
+
pink: "#ffc0cb",
|
|
386
|
+
plum: "#dda0dd",
|
|
387
|
+
powderblue: "#b0e0e6",
|
|
388
|
+
rosybrown: "#bc8f8f",
|
|
389
|
+
royalblue: "#4169e1",
|
|
390
|
+
saddlebrown: "#8b4513",
|
|
391
|
+
salmon: "#fa8072",
|
|
392
|
+
sandybrown: "#f4a460",
|
|
393
|
+
seagreen: "#2e8b57",
|
|
394
|
+
seashell: "#fff5ee",
|
|
395
|
+
sienna: "#a0522d",
|
|
396
|
+
skyblue: "#87ceeb",
|
|
397
|
+
slateblue: "#6a5acd",
|
|
398
|
+
slategray: "#708090",
|
|
399
|
+
slategrey: "#708090",
|
|
400
|
+
snow: "#fffafa",
|
|
401
|
+
springgreen: "#00ff7f",
|
|
402
|
+
steelblue: "#4682b4",
|
|
403
|
+
tan: "#d2b48c",
|
|
404
|
+
thistle: "#d8bfd8",
|
|
405
|
+
tomato: "#ff6347",
|
|
406
|
+
turquoise: "#40e0d0",
|
|
407
|
+
violet: "#ee82ee",
|
|
408
|
+
wheat: "#f5deb3",
|
|
409
|
+
whitesmoke: "#f5f5f5",
|
|
410
|
+
yellowgreen: "#9acd32",
|
|
411
|
+
rebeccapurple: "#663399"
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
// ../../node_modules/css-color-keywords/index.js
|
|
417
|
+
var require_css_color_keywords = __commonJS({
|
|
418
|
+
"../../node_modules/css-color-keywords/index.js"(exports, module) {
|
|
419
|
+
"use strict";
|
|
420
|
+
module.exports = require_colors();
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
// ../../node_modules/css-to-react-native/index.js
|
|
425
|
+
var require_css_to_react_native = __commonJS({
|
|
426
|
+
"../../node_modules/css-to-react-native/index.js"(exports) {
|
|
427
|
+
"use strict";
|
|
428
|
+
Object.defineProperty(exports, "__esModule", {
|
|
429
|
+
value: !0
|
|
430
|
+
});
|
|
431
|
+
function _interopDefault(ex) {
|
|
432
|
+
return ex && typeof ex == "object" && "default" in ex ? ex.default : ex;
|
|
433
|
+
}
|
|
434
|
+
var parse2 = require_lib(), parse__default = _interopDefault(parse2), camelizeStyleName = _interopDefault(require_camelize()), cssColorKeywords = _interopDefault(require_css_color_keywords()), matchString = function(node2) {
|
|
435
|
+
return node2.type !== "string" ? null : node2.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi, function(match2, charCode) {
|
|
436
|
+
return String.fromCharCode(parseInt(charCode, 16));
|
|
437
|
+
}).replace(/\\/g, "");
|
|
438
|
+
}, hexColorRe = /^(#(?:[0-9a-f]{3,4}){1,2})$/i, cssFunctionNameRe = /^(rgba?|hsla?|hwb|lab|lch|gray|color)$/, matchColor = function(node2) {
|
|
439
|
+
return node2.type === "word" && (hexColorRe.test(node2.value) || node2.value in cssColorKeywords || node2.value === "transparent") ? node2.value : node2.type === "function" && cssFunctionNameRe.test(node2.value) ? parse2.stringify(node2) : null;
|
|
440
|
+
}, noneRe = /^(none)$/i, autoRe = /^(auto)$/i, identRe = /(^-?[_a-z][_a-z0-9-]*$)/i, numberRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i, lengthRe = /^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i, unsupportedUnitRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i, angleRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i, percentRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i, noopToken = function(predicate) {
|
|
441
|
+
return function(node2) {
|
|
442
|
+
return predicate(node2) ? "<token>" : null;
|
|
443
|
+
};
|
|
444
|
+
}, valueForTypeToken = function(type) {
|
|
445
|
+
return function(node2) {
|
|
446
|
+
return node2.type === type ? node2.value : null;
|
|
447
|
+
};
|
|
448
|
+
}, regExpToken = function(regExp, transform3) {
|
|
449
|
+
return transform3 === void 0 && (transform3 = String), function(node2) {
|
|
450
|
+
if (node2.type !== "word") return null;
|
|
451
|
+
var match2 = node2.value.match(regExp);
|
|
452
|
+
if (match2 === null) return null;
|
|
453
|
+
var value = transform3(match2[1]);
|
|
454
|
+
return value;
|
|
455
|
+
};
|
|
456
|
+
}, SPACE = noopToken(function(node2) {
|
|
457
|
+
return node2.type === "space";
|
|
458
|
+
}), SLASH = noopToken(function(node2) {
|
|
459
|
+
return node2.type === "div" && node2.value === "/";
|
|
460
|
+
}), COMMA = noopToken(function(node2) {
|
|
461
|
+
return node2.type === "div" && node2.value === ",";
|
|
462
|
+
}), WORD = valueForTypeToken("word"), NONE = regExpToken(noneRe), AUTO = regExpToken(autoRe), NUMBER = regExpToken(numberRe, Number), LENGTH = regExpToken(lengthRe, Number), UNSUPPORTED_LENGTH_UNIT = regExpToken(unsupportedUnitRe), ANGLE = regExpToken(angleRe, function(angle) {
|
|
463
|
+
return angle.toLowerCase();
|
|
464
|
+
}), PERCENT = regExpToken(percentRe), IDENT = regExpToken(identRe), STRING = matchString, COLOR = matchColor, LINE = regExpToken(/^(none|underline|line-through)$/i), aspectRatio = function(tokenStream) {
|
|
465
|
+
var aspectRatio3 = tokenStream.expect(NUMBER);
|
|
466
|
+
return tokenStream.hasTokens() && (tokenStream.expect(SLASH), aspectRatio3 /= tokenStream.expect(NUMBER)), {
|
|
467
|
+
aspectRatio: aspectRatio3
|
|
468
|
+
};
|
|
469
|
+
}, BORDER_STYLE = regExpToken(/^(solid|dashed|dotted)$/), defaultBorderWidth = 1, defaultBorderColor = "black", defaultBorderStyle = "solid", border = function(tokenStream) {
|
|
470
|
+
var borderWidth2, borderColor2, borderStyle;
|
|
471
|
+
if (tokenStream.matches(NONE))
|
|
472
|
+
return tokenStream.expectEmpty(), {
|
|
473
|
+
borderWidth: 0,
|
|
474
|
+
borderColor: "black",
|
|
475
|
+
borderStyle: "solid"
|
|
476
|
+
};
|
|
477
|
+
for (var partsParsed = 0; partsParsed < 3 && tokenStream.hasTokens(); )
|
|
478
|
+
partsParsed !== 0 && tokenStream.expect(SPACE), borderWidth2 === void 0 && tokenStream.matches(LENGTH, UNSUPPORTED_LENGTH_UNIT) ? borderWidth2 = tokenStream.lastValue : borderColor2 === void 0 && tokenStream.matches(COLOR) ? borderColor2 = tokenStream.lastValue : borderStyle === void 0 && tokenStream.matches(BORDER_STYLE) ? borderStyle = tokenStream.lastValue : tokenStream.throw(), partsParsed += 1;
|
|
479
|
+
return tokenStream.expectEmpty(), borderWidth2 === void 0 && (borderWidth2 = defaultBorderWidth), borderColor2 === void 0 && (borderColor2 = defaultBorderColor), borderStyle === void 0 && (borderStyle = defaultBorderStyle), {
|
|
480
|
+
borderWidth: borderWidth2,
|
|
481
|
+
borderColor: borderColor2,
|
|
482
|
+
borderStyle
|
|
483
|
+
};
|
|
484
|
+
}, directionFactory = function(_ref) {
|
|
485
|
+
var _ref$types = _ref.types, types = _ref$types === void 0 ? [LENGTH, UNSUPPORTED_LENGTH_UNIT, PERCENT] : _ref$types, _ref$directions = _ref.directions, directions = _ref$directions === void 0 ? ["Top", "Right", "Bottom", "Left"] : _ref$directions, _ref$prefix = _ref.prefix, prefix3 = _ref$prefix === void 0 ? "" : _ref$prefix, _ref$suffix = _ref.suffix, suffix = _ref$suffix === void 0 ? "" : _ref$suffix;
|
|
486
|
+
return function(tokenStream) {
|
|
487
|
+
var _ref2, values = [];
|
|
488
|
+
for (values.push(tokenStream.expect.apply(tokenStream, types)); values.length < 4 && tokenStream.hasTokens(); )
|
|
489
|
+
tokenStream.expect(SPACE), values.push(tokenStream.expect.apply(tokenStream, types));
|
|
490
|
+
tokenStream.expectEmpty();
|
|
491
|
+
var top = values[0], _values$ = values[1], right = _values$ === void 0 ? top : _values$, _values$2 = values[2], bottom = _values$2 === void 0 ? top : _values$2, _values$3 = values[3], left = _values$3 === void 0 ? right : _values$3, keyFor = function(n) {
|
|
492
|
+
return "" + prefix3 + directions[n] + suffix;
|
|
493
|
+
};
|
|
494
|
+
return _ref2 = {}, _ref2[keyFor(0)] = top, _ref2[keyFor(1)] = right, _ref2[keyFor(2)] = bottom, _ref2[keyFor(3)] = left, _ref2;
|
|
495
|
+
};
|
|
496
|
+
}, parseShadowOffset = function(tokenStream) {
|
|
497
|
+
var width = tokenStream.expect(LENGTH), height = tokenStream.matches(SPACE) ? tokenStream.expect(LENGTH) : width;
|
|
498
|
+
return tokenStream.expectEmpty(), {
|
|
499
|
+
width,
|
|
500
|
+
height
|
|
501
|
+
};
|
|
502
|
+
}, parseShadow = function(tokenStream) {
|
|
503
|
+
var offsetX, offsetY, radius, color2;
|
|
504
|
+
if (tokenStream.matches(NONE))
|
|
505
|
+
return tokenStream.expectEmpty(), {
|
|
506
|
+
offset: {
|
|
507
|
+
width: 0,
|
|
508
|
+
height: 0
|
|
509
|
+
},
|
|
510
|
+
radius: 0,
|
|
511
|
+
color: "black"
|
|
512
|
+
};
|
|
513
|
+
for (var didParseFirst = !1; tokenStream.hasTokens(); )
|
|
514
|
+
didParseFirst && tokenStream.expect(SPACE), offsetX === void 0 && tokenStream.matches(LENGTH, UNSUPPORTED_LENGTH_UNIT) ? (offsetX = tokenStream.lastValue, tokenStream.expect(SPACE), offsetY = tokenStream.expect(LENGTH, UNSUPPORTED_LENGTH_UNIT), tokenStream.saveRewindPoint(), tokenStream.matches(SPACE) && tokenStream.matches(LENGTH, UNSUPPORTED_LENGTH_UNIT) ? radius = tokenStream.lastValue : tokenStream.rewind()) : color2 === void 0 && tokenStream.matches(COLOR) ? color2 = tokenStream.lastValue : tokenStream.throw(), didParseFirst = !0;
|
|
515
|
+
return offsetX === void 0 && tokenStream.throw(), {
|
|
516
|
+
offset: {
|
|
517
|
+
width: offsetX,
|
|
518
|
+
height: offsetY
|
|
519
|
+
},
|
|
520
|
+
radius: radius !== void 0 ? radius : 0,
|
|
521
|
+
color: color2 !== void 0 ? color2 : "black"
|
|
522
|
+
};
|
|
523
|
+
}, boxShadow = function(tokenStream) {
|
|
524
|
+
var _parseShadow = parseShadow(tokenStream), offset = _parseShadow.offset, radius = _parseShadow.radius, color2 = _parseShadow.color;
|
|
525
|
+
return {
|
|
526
|
+
shadowOffset: offset,
|
|
527
|
+
shadowRadius: radius,
|
|
528
|
+
shadowColor: color2,
|
|
529
|
+
shadowOpacity: 1
|
|
530
|
+
};
|
|
531
|
+
}, defaultFlexGrow = 1, defaultFlexShrink = 1, defaultFlexBasis = 0, flex = function(tokenStream) {
|
|
532
|
+
var flexGrow, flexShrink, flexBasis;
|
|
533
|
+
if (tokenStream.matches(NONE))
|
|
534
|
+
return tokenStream.expectEmpty(), {
|
|
535
|
+
flexGrow: 0,
|
|
536
|
+
flexShrink: 0,
|
|
537
|
+
flexBasis: "auto"
|
|
538
|
+
};
|
|
539
|
+
if (tokenStream.saveRewindPoint(), tokenStream.matches(AUTO) && !tokenStream.hasTokens())
|
|
540
|
+
return {
|
|
541
|
+
flexGrow: 1,
|
|
542
|
+
flexShrink: 1,
|
|
543
|
+
flexBasis: "auto"
|
|
544
|
+
};
|
|
545
|
+
tokenStream.rewind();
|
|
546
|
+
for (var partsParsed = 0; partsParsed < 2 && tokenStream.hasTokens(); )
|
|
547
|
+
partsParsed !== 0 && tokenStream.expect(SPACE), flexGrow === void 0 && tokenStream.matches(NUMBER) ? (flexGrow = tokenStream.lastValue, tokenStream.saveRewindPoint(), tokenStream.matches(SPACE) && tokenStream.matches(NUMBER) ? flexShrink = tokenStream.lastValue : tokenStream.rewind()) : flexBasis === void 0 && tokenStream.matches(LENGTH, UNSUPPORTED_LENGTH_UNIT, PERCENT) ? flexBasis = tokenStream.lastValue : flexBasis === void 0 && tokenStream.matches(AUTO) ? flexBasis = "auto" : tokenStream.throw(), partsParsed += 1;
|
|
548
|
+
return tokenStream.expectEmpty(), flexGrow === void 0 && (flexGrow = defaultFlexGrow), flexShrink === void 0 && (flexShrink = defaultFlexShrink), flexBasis === void 0 && (flexBasis = defaultFlexBasis), {
|
|
549
|
+
flexGrow,
|
|
550
|
+
flexShrink,
|
|
551
|
+
flexBasis
|
|
552
|
+
};
|
|
553
|
+
}, FLEX_WRAP = regExpToken(/(nowrap|wrap|wrap-reverse)/), FLEX_DIRECTION = regExpToken(/(row|row-reverse|column|column-reverse)/), defaultFlexWrap = "nowrap", defaultFlexDirection = "row", flexFlow = function(tokenStream) {
|
|
554
|
+
for (var flexWrap, flexDirection, partsParsed = 0; partsParsed < 2 && tokenStream.hasTokens(); )
|
|
555
|
+
partsParsed !== 0 && tokenStream.expect(SPACE), flexWrap === void 0 && tokenStream.matches(FLEX_WRAP) ? flexWrap = tokenStream.lastValue : flexDirection === void 0 && tokenStream.matches(FLEX_DIRECTION) ? flexDirection = tokenStream.lastValue : tokenStream.throw(), partsParsed += 1;
|
|
556
|
+
return tokenStream.expectEmpty(), flexWrap === void 0 && (flexWrap = defaultFlexWrap), flexDirection === void 0 && (flexDirection = defaultFlexDirection), {
|
|
557
|
+
flexWrap,
|
|
558
|
+
flexDirection
|
|
559
|
+
};
|
|
560
|
+
}, fontFamily = function(tokenStream) {
|
|
561
|
+
var fontFamily3;
|
|
562
|
+
if (tokenStream.matches(STRING))
|
|
563
|
+
fontFamily3 = tokenStream.lastValue;
|
|
564
|
+
else
|
|
565
|
+
for (fontFamily3 = tokenStream.expect(IDENT); tokenStream.hasTokens(); ) {
|
|
566
|
+
tokenStream.expect(SPACE);
|
|
567
|
+
var nextIdent = tokenStream.expect(IDENT);
|
|
568
|
+
fontFamily3 += " " + nextIdent;
|
|
569
|
+
}
|
|
570
|
+
return tokenStream.expectEmpty(), {
|
|
571
|
+
fontFamily: fontFamily3
|
|
572
|
+
};
|
|
573
|
+
}, NORMAL = regExpToken(/^(normal)$/), STYLE = regExpToken(/^(italic)$/), WEIGHT = regExpToken(/^([1-9]00|bold)$/), VARIANT = regExpToken(/^(small-caps)$/), defaultFontStyle = "normal", defaultFontWeight = "normal", defaultFontVariant = [], font = function(tokenStream) {
|
|
574
|
+
for (var fontStyle, fontWeight2, fontVariant2, lineHeight, numStyleWeightVariantMatched = 0; numStyleWeightVariantMatched < 3 && tokenStream.hasTokens(); ) {
|
|
575
|
+
if (!tokenStream.matches(NORMAL)) if (fontStyle === void 0 && tokenStream.matches(STYLE))
|
|
576
|
+
fontStyle = tokenStream.lastValue;
|
|
577
|
+
else if (fontWeight2 === void 0 && tokenStream.matches(WEIGHT))
|
|
578
|
+
fontWeight2 = tokenStream.lastValue;
|
|
579
|
+
else if (fontVariant2 === void 0 && tokenStream.matches(VARIANT))
|
|
580
|
+
fontVariant2 = [tokenStream.lastValue];
|
|
581
|
+
else
|
|
582
|
+
break;
|
|
583
|
+
tokenStream.expect(SPACE), numStyleWeightVariantMatched += 1;
|
|
584
|
+
}
|
|
585
|
+
var fontSize = tokenStream.expect(LENGTH, UNSUPPORTED_LENGTH_UNIT);
|
|
586
|
+
tokenStream.matches(SLASH) && (lineHeight = tokenStream.expect(LENGTH, UNSUPPORTED_LENGTH_UNIT)), tokenStream.expect(SPACE);
|
|
587
|
+
var _fontFamily = fontFamily(tokenStream), fontFamily$1 = _fontFamily.fontFamily;
|
|
588
|
+
fontStyle === void 0 && (fontStyle = defaultFontStyle), fontWeight2 === void 0 && (fontWeight2 = defaultFontWeight), fontVariant2 === void 0 && (fontVariant2 = defaultFontVariant);
|
|
589
|
+
var out = {
|
|
590
|
+
fontStyle,
|
|
591
|
+
fontWeight: fontWeight2,
|
|
592
|
+
fontVariant: fontVariant2,
|
|
593
|
+
fontSize,
|
|
594
|
+
fontFamily: fontFamily$1
|
|
595
|
+
};
|
|
596
|
+
return lineHeight !== void 0 && (out.lineHeight = lineHeight), out;
|
|
597
|
+
}, fontVariant = function(tokenStream) {
|
|
598
|
+
for (var values = [tokenStream.expect(IDENT)]; tokenStream.hasTokens(); )
|
|
599
|
+
tokenStream.expect(SPACE), values.push(tokenStream.expect(IDENT));
|
|
600
|
+
return {
|
|
601
|
+
fontVariant: values
|
|
602
|
+
};
|
|
603
|
+
}, ALIGN_CONTENT = regExpToken(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/), JUSTIFY_CONTENT = regExpToken(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/), placeContent = function(tokenStream) {
|
|
604
|
+
var alignContent = tokenStream.expect(ALIGN_CONTENT), justifyContent;
|
|
605
|
+
return tokenStream.hasTokens() ? (tokenStream.expect(SPACE), justifyContent = tokenStream.expect(JUSTIFY_CONTENT)) : justifyContent = "stretch", tokenStream.expectEmpty(), {
|
|
606
|
+
alignContent,
|
|
607
|
+
justifyContent
|
|
608
|
+
};
|
|
609
|
+
}, STYLE$1 = regExpToken(/^(solid|double|dotted|dashed)$/), defaultTextDecorationLine = "none", defaultTextDecorationStyle = "solid", defaultTextDecorationColor = "black", textDecoration = function(tokenStream) {
|
|
610
|
+
for (var line2, style, color2, didParseFirst = !1; tokenStream.hasTokens(); ) {
|
|
611
|
+
if (didParseFirst && tokenStream.expect(SPACE), line2 === void 0 && tokenStream.matches(LINE)) {
|
|
612
|
+
var lines = [tokenStream.lastValue.toLowerCase()];
|
|
613
|
+
tokenStream.saveRewindPoint(), lines[0] !== "none" && tokenStream.matches(SPACE) && tokenStream.matches(LINE) ? (lines.push(tokenStream.lastValue.toLowerCase()), lines.sort().reverse()) : tokenStream.rewind(), line2 = lines.join(" ");
|
|
614
|
+
} else style === void 0 && tokenStream.matches(STYLE$1) ? style = tokenStream.lastValue : color2 === void 0 && tokenStream.matches(COLOR) ? color2 = tokenStream.lastValue : tokenStream.throw();
|
|
615
|
+
didParseFirst = !0;
|
|
616
|
+
}
|
|
617
|
+
return {
|
|
618
|
+
textDecorationLine: line2 !== void 0 ? line2 : defaultTextDecorationLine,
|
|
619
|
+
textDecorationColor: color2 !== void 0 ? color2 : defaultTextDecorationColor,
|
|
620
|
+
textDecorationStyle: style !== void 0 ? style : defaultTextDecorationStyle
|
|
621
|
+
};
|
|
622
|
+
}, textDecorationLine = function(tokenStream) {
|
|
623
|
+
for (var lines = [], didParseFirst = !1; tokenStream.hasTokens(); )
|
|
624
|
+
didParseFirst && tokenStream.expect(SPACE), lines.push(tokenStream.expect(LINE).toLowerCase()), didParseFirst = !0;
|
|
625
|
+
return lines.sort().reverse(), {
|
|
626
|
+
textDecorationLine: lines.join(" ")
|
|
627
|
+
};
|
|
628
|
+
}, textShadow = function(tokenStream) {
|
|
629
|
+
var _parseShadow2 = parseShadow(tokenStream), offset = _parseShadow2.offset, radius = _parseShadow2.radius, color2 = _parseShadow2.color;
|
|
630
|
+
return {
|
|
631
|
+
textShadowOffset: offset,
|
|
632
|
+
textShadowRadius: radius,
|
|
633
|
+
textShadowColor: color2
|
|
634
|
+
};
|
|
635
|
+
}, oneOfType = function(tokenType) {
|
|
636
|
+
return function(functionStream) {
|
|
637
|
+
var value = functionStream.expect(tokenType);
|
|
638
|
+
return functionStream.expectEmpty(), value;
|
|
639
|
+
};
|
|
640
|
+
}, singleNumber = oneOfType(NUMBER), singleLength = oneOfType(LENGTH), singleAngle = oneOfType(ANGLE), xyTransformFactory = function(tokenType) {
|
|
641
|
+
return function(key, valueIfOmitted) {
|
|
642
|
+
return function(functionStream) {
|
|
643
|
+
var _ref3, _ref4, x = functionStream.expect(tokenType), y;
|
|
644
|
+
if (functionStream.hasTokens())
|
|
645
|
+
functionStream.expect(COMMA), y = functionStream.expect(tokenType);
|
|
646
|
+
else if (valueIfOmitted !== void 0)
|
|
647
|
+
y = valueIfOmitted;
|
|
648
|
+
else
|
|
649
|
+
return x;
|
|
650
|
+
return functionStream.expectEmpty(), [(_ref3 = {}, _ref3[key + "Y"] = y, _ref3), (_ref4 = {}, _ref4[key + "X"] = x, _ref4)];
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
}, xyNumber = xyTransformFactory(NUMBER), xyLength = xyTransformFactory(LENGTH), xyAngle = xyTransformFactory(ANGLE), partTransforms = {
|
|
654
|
+
perspective: singleNumber,
|
|
655
|
+
scale: xyNumber("scale"),
|
|
656
|
+
scaleX: singleNumber,
|
|
657
|
+
scaleY: singleNumber,
|
|
658
|
+
translate: xyLength("translate", 0),
|
|
659
|
+
translateX: singleLength,
|
|
660
|
+
translateY: singleLength,
|
|
661
|
+
rotate: singleAngle,
|
|
662
|
+
rotateX: singleAngle,
|
|
663
|
+
rotateY: singleAngle,
|
|
664
|
+
rotateZ: singleAngle,
|
|
665
|
+
skewX: singleAngle,
|
|
666
|
+
skewY: singleAngle,
|
|
667
|
+
skew: xyAngle("skew", "0deg")
|
|
668
|
+
}, transform2 = function(tokenStream) {
|
|
669
|
+
for (var transforms2 = [], didParseFirst = !1; tokenStream.hasTokens(); ) {
|
|
670
|
+
didParseFirst && tokenStream.expect(SPACE);
|
|
671
|
+
var functionStream = tokenStream.expectFunction(), functionName = functionStream.functionName, transformedValues = partTransforms[functionName](functionStream);
|
|
672
|
+
if (!Array.isArray(transformedValues)) {
|
|
673
|
+
var _ref5;
|
|
674
|
+
transformedValues = [(_ref5 = {}, _ref5[functionName] = transformedValues, _ref5)];
|
|
675
|
+
}
|
|
676
|
+
transforms2 = transformedValues.concat(transforms2), didParseFirst = !0;
|
|
677
|
+
}
|
|
678
|
+
return {
|
|
679
|
+
transform: transforms2
|
|
680
|
+
};
|
|
681
|
+
}, background2 = function(tokenStream) {
|
|
682
|
+
return {
|
|
683
|
+
backgroundColor: tokenStream.expect(COLOR)
|
|
684
|
+
};
|
|
685
|
+
}, borderColor = directionFactory({
|
|
686
|
+
types: [COLOR],
|
|
687
|
+
prefix: "border",
|
|
688
|
+
suffix: "Color"
|
|
689
|
+
}), borderRadius = directionFactory({
|
|
690
|
+
directions: ["TopLeft", "TopRight", "BottomRight", "BottomLeft"],
|
|
691
|
+
prefix: "border",
|
|
692
|
+
suffix: "Radius"
|
|
693
|
+
}), borderWidth = directionFactory({
|
|
694
|
+
prefix: "border",
|
|
695
|
+
suffix: "Width"
|
|
696
|
+
}), margin = directionFactory({
|
|
697
|
+
types: [LENGTH, UNSUPPORTED_LENGTH_UNIT, PERCENT, AUTO],
|
|
698
|
+
prefix: "margin"
|
|
699
|
+
}), padding = directionFactory({
|
|
700
|
+
prefix: "padding"
|
|
701
|
+
}), fontWeight = function(tokenStream) {
|
|
702
|
+
return {
|
|
703
|
+
fontWeight: tokenStream.expect(WORD)
|
|
704
|
+
// Also match numbers as strings
|
|
705
|
+
};
|
|
706
|
+
}, shadowOffset = function(tokenStream) {
|
|
707
|
+
return {
|
|
708
|
+
shadowOffset: parseShadowOffset(tokenStream)
|
|
709
|
+
};
|
|
710
|
+
}, textShadowOffset = function(tokenStream) {
|
|
711
|
+
return {
|
|
712
|
+
textShadowOffset: parseShadowOffset(tokenStream)
|
|
713
|
+
};
|
|
714
|
+
}, transforms = {
|
|
715
|
+
aspectRatio,
|
|
716
|
+
background: background2,
|
|
717
|
+
border,
|
|
718
|
+
borderColor,
|
|
719
|
+
borderRadius,
|
|
720
|
+
borderWidth,
|
|
721
|
+
boxShadow,
|
|
722
|
+
flex,
|
|
723
|
+
flexFlow,
|
|
724
|
+
font,
|
|
725
|
+
fontFamily,
|
|
726
|
+
fontVariant,
|
|
727
|
+
fontWeight,
|
|
728
|
+
margin,
|
|
729
|
+
padding,
|
|
730
|
+
placeContent,
|
|
731
|
+
shadowOffset,
|
|
732
|
+
textShadow,
|
|
733
|
+
textShadowOffset,
|
|
734
|
+
textDecoration,
|
|
735
|
+
textDecorationLine,
|
|
736
|
+
transform: transform2
|
|
737
|
+
}, propertiesWithoutUnits;
|
|
738
|
+
process.env.NODE_ENV !== "production" && (propertiesWithoutUnits = ["aspectRatio", "elevation", "flexGrow", "flexShrink", "opacity", "shadowOpacity", "zIndex"]);
|
|
739
|
+
var devPropertiesWithUnitsRegExp = propertiesWithoutUnits != null ? new RegExp(propertiesWithoutUnits.join("|")) : null, SYMBOL_MATCH = "SYMBOL_MATCH", TokenStream = (function() {
|
|
740
|
+
function TokenStream2(nodes, parent) {
|
|
741
|
+
this.index = 0, this.nodes = nodes, this.functionName = parent != null ? parent.value : null, this.lastValue = null, this.rewindIndex = -1;
|
|
742
|
+
}
|
|
743
|
+
var _proto = TokenStream2.prototype;
|
|
744
|
+
return _proto.hasTokens = function() {
|
|
745
|
+
return this.index <= this.nodes.length - 1;
|
|
746
|
+
}, _proto[SYMBOL_MATCH] = function() {
|
|
747
|
+
if (!this.hasTokens()) return null;
|
|
748
|
+
for (var node2 = this.nodes[this.index], i = 0; i < arguments.length; i += 1) {
|
|
749
|
+
var tokenDescriptor = i < 0 || arguments.length <= i ? void 0 : arguments[i], value = tokenDescriptor(node2);
|
|
750
|
+
if (value !== null)
|
|
751
|
+
return this.index += 1, this.lastValue = value, value;
|
|
752
|
+
}
|
|
753
|
+
return null;
|
|
754
|
+
}, _proto.matches = function() {
|
|
755
|
+
return this[SYMBOL_MATCH].apply(this, arguments) !== null;
|
|
756
|
+
}, _proto.expect = function() {
|
|
757
|
+
var value = this[SYMBOL_MATCH].apply(this, arguments);
|
|
758
|
+
return value !== null ? value : this.throw();
|
|
759
|
+
}, _proto.matchesFunction = function() {
|
|
760
|
+
var node2 = this.nodes[this.index];
|
|
761
|
+
if (node2.type !== "function") return null;
|
|
762
|
+
var value = new TokenStream2(node2.nodes, node2);
|
|
763
|
+
return this.index += 1, this.lastValue = null, value;
|
|
764
|
+
}, _proto.expectFunction = function() {
|
|
765
|
+
var value = this.matchesFunction();
|
|
766
|
+
return value !== null ? value : this.throw();
|
|
767
|
+
}, _proto.expectEmpty = function() {
|
|
768
|
+
this.hasTokens() && this.throw();
|
|
769
|
+
}, _proto.throw = function() {
|
|
770
|
+
throw new Error("Unexpected token type: " + this.nodes[this.index].type);
|
|
771
|
+
}, _proto.saveRewindPoint = function() {
|
|
772
|
+
this.rewindIndex = this.index;
|
|
773
|
+
}, _proto.rewind = function() {
|
|
774
|
+
if (this.rewindIndex === -1) throw new Error("Internal error");
|
|
775
|
+
this.index = this.rewindIndex, this.lastValue = null;
|
|
776
|
+
}, TokenStream2;
|
|
777
|
+
})(), numberOrLengthRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i, numberOnlyRe = /^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i, boolRe = /^true|false$/i, nullRe = /^null$/i, undefinedRe = /^undefined$/i, transformRawValue = function(propName, value) {
|
|
778
|
+
if (process.env.NODE_ENV !== "production") {
|
|
779
|
+
var needsUnit = !devPropertiesWithUnitsRegExp.test(propName), isNumberWithoutUnit = numberOnlyRe.test(value);
|
|
780
|
+
needsUnit && isNumberWithoutUnit && console.warn('Expected style "' + propName + ": " + value + '" to contain units'), !needsUnit && value !== "0" && !isNumberWithoutUnit && console.warn('Expected style "' + propName + ": " + value + '" to be unitless');
|
|
781
|
+
}
|
|
782
|
+
var numberMatch = value.match(numberOrLengthRe);
|
|
783
|
+
if (numberMatch !== null) return Number(numberMatch[1]);
|
|
784
|
+
var boolMatch = value.match(boolRe);
|
|
785
|
+
if (boolMatch !== null) return boolMatch[0].toLowerCase() === "true";
|
|
786
|
+
var nullMatch = value.match(nullRe);
|
|
787
|
+
if (nullMatch !== null) return null;
|
|
788
|
+
var undefinedMatch = value.match(undefinedRe);
|
|
789
|
+
if (undefinedMatch === null)
|
|
790
|
+
return value;
|
|
791
|
+
}, baseTransformShorthandValue = function(propName, value) {
|
|
792
|
+
var ast = parse__default(value), tokenStream = new TokenStream(ast.nodes);
|
|
793
|
+
return transforms[propName](tokenStream);
|
|
794
|
+
}, transformShorthandValue = process.env.NODE_ENV === "production" ? baseTransformShorthandValue : function(propName, value) {
|
|
795
|
+
try {
|
|
796
|
+
return baseTransformShorthandValue(propName, value);
|
|
797
|
+
} catch {
|
|
798
|
+
throw new Error('Failed to parse declaration "' + propName + ": " + value + '"');
|
|
799
|
+
}
|
|
800
|
+
}, getStylesForProperty = function(propName, inputValue, allowShorthand) {
|
|
801
|
+
var _ref6, isRawValue = allowShorthand === !1 || !(propName in transforms), value = inputValue.trim(), propValues = isRawValue ? (_ref6 = {}, _ref6[propName] = transformRawValue(propName, value), _ref6) : transformShorthandValue(propName, value);
|
|
802
|
+
return propValues;
|
|
803
|
+
}, getPropertyName = function(propName) {
|
|
804
|
+
var isCustomProp = /^--\w+/.test(propName);
|
|
805
|
+
return isCustomProp ? propName : camelizeStyleName(propName);
|
|
806
|
+
}, index2 = function(rules, shorthandBlacklist) {
|
|
807
|
+
return shorthandBlacklist === void 0 && (shorthandBlacklist = []), rules.reduce(function(accum, rule) {
|
|
808
|
+
var propertyName = getPropertyName(rule[0]), value = rule[1], allowShorthand = shorthandBlacklist.indexOf(propertyName) === -1;
|
|
809
|
+
return Object.assign(accum, getStylesForProperty(propertyName, value, allowShorthand));
|
|
810
|
+
}, {});
|
|
811
|
+
};
|
|
812
|
+
exports.default = index2;
|
|
813
|
+
exports.getPropertyName = getPropertyName;
|
|
814
|
+
exports.getStylesForProperty = getStylesForProperty;
|
|
815
|
+
exports.transformRawValue = transformRawValue;
|
|
816
|
+
}
|
|
817
|
+
});
|
|
818
|
+
|
|
819
|
+
// ../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js
|
|
820
|
+
var require_react_is_production_min = __commonJS({
|
|
821
|
+
"../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
822
|
+
"use strict";
|
|
823
|
+
var b = typeof Symbol == "function" && Symbol.for, c = b ? /* @__PURE__ */ Symbol.for("react.element") : 60103, d = b ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, e = b ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = b ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, g = b ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, h = b ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, k = b ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = b ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = b ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, n = b ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = b ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = b ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, r = b ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, t = b ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = b ? /* @__PURE__ */ Symbol.for("react.block") : 60121, w = b ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = b ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, y = b ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
824
|
+
function z(a) {
|
|
825
|
+
if (typeof a == "object" && a !== null) {
|
|
826
|
+
var u = a.$$typeof;
|
|
827
|
+
switch (u) {
|
|
828
|
+
case c:
|
|
829
|
+
switch (a = a.type, a) {
|
|
830
|
+
case l:
|
|
831
|
+
case m:
|
|
832
|
+
case e:
|
|
833
|
+
case g:
|
|
834
|
+
case f:
|
|
835
|
+
case p:
|
|
836
|
+
return a;
|
|
837
|
+
default:
|
|
838
|
+
switch (a = a && a.$$typeof, a) {
|
|
839
|
+
case k:
|
|
840
|
+
case n:
|
|
841
|
+
case t:
|
|
842
|
+
case r:
|
|
843
|
+
case h:
|
|
844
|
+
return a;
|
|
845
|
+
default:
|
|
846
|
+
return u;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
case d:
|
|
850
|
+
return u;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
function A(a) {
|
|
855
|
+
return z(a) === m;
|
|
856
|
+
}
|
|
857
|
+
exports.AsyncMode = l;
|
|
858
|
+
exports.ConcurrentMode = m;
|
|
859
|
+
exports.ContextConsumer = k;
|
|
860
|
+
exports.ContextProvider = h;
|
|
861
|
+
exports.Element = c;
|
|
862
|
+
exports.ForwardRef = n;
|
|
863
|
+
exports.Fragment = e;
|
|
864
|
+
exports.Lazy = t;
|
|
865
|
+
exports.Memo = r;
|
|
866
|
+
exports.Portal = d;
|
|
867
|
+
exports.Profiler = g;
|
|
868
|
+
exports.StrictMode = f;
|
|
869
|
+
exports.Suspense = p;
|
|
870
|
+
exports.isAsyncMode = function(a) {
|
|
871
|
+
return A(a) || z(a) === l;
|
|
872
|
+
};
|
|
873
|
+
exports.isConcurrentMode = A;
|
|
874
|
+
exports.isContextConsumer = function(a) {
|
|
875
|
+
return z(a) === k;
|
|
876
|
+
};
|
|
877
|
+
exports.isContextProvider = function(a) {
|
|
878
|
+
return z(a) === h;
|
|
879
|
+
};
|
|
880
|
+
exports.isElement = function(a) {
|
|
881
|
+
return typeof a == "object" && a !== null && a.$$typeof === c;
|
|
882
|
+
};
|
|
883
|
+
exports.isForwardRef = function(a) {
|
|
884
|
+
return z(a) === n;
|
|
885
|
+
};
|
|
886
|
+
exports.isFragment = function(a) {
|
|
887
|
+
return z(a) === e;
|
|
888
|
+
};
|
|
889
|
+
exports.isLazy = function(a) {
|
|
890
|
+
return z(a) === t;
|
|
891
|
+
};
|
|
892
|
+
exports.isMemo = function(a) {
|
|
893
|
+
return z(a) === r;
|
|
894
|
+
};
|
|
895
|
+
exports.isPortal = function(a) {
|
|
896
|
+
return z(a) === d;
|
|
897
|
+
};
|
|
898
|
+
exports.isProfiler = function(a) {
|
|
899
|
+
return z(a) === g;
|
|
900
|
+
};
|
|
901
|
+
exports.isStrictMode = function(a) {
|
|
902
|
+
return z(a) === f;
|
|
903
|
+
};
|
|
904
|
+
exports.isSuspense = function(a) {
|
|
905
|
+
return z(a) === p;
|
|
906
|
+
};
|
|
907
|
+
exports.isValidElementType = function(a) {
|
|
908
|
+
return typeof a == "string" || typeof a == "function" || a === e || a === m || a === g || a === f || a === p || a === q || typeof a == "object" && a !== null && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
909
|
+
};
|
|
910
|
+
exports.typeOf = z;
|
|
911
|
+
}
|
|
912
|
+
});
|
|
913
|
+
|
|
914
|
+
// ../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
|
|
915
|
+
var require_react_is_development = __commonJS({
|
|
916
|
+
"../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
917
|
+
"use strict";
|
|
918
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
919
|
+
"use strict";
|
|
920
|
+
var hasSymbol = typeof Symbol == "function" && Symbol.for, REACT_ELEMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103, REACT_PORTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, REACT_FRAGMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, REACT_STRICT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, REACT_PROFILER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, REACT_PROVIDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, REACT_CONTEXT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.context") : 60110, REACT_ASYNC_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, REACT_CONCURRENT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, REACT_FORWARD_REF_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, REACT_SUSPENSE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, REACT_SUSPENSE_LIST_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, REACT_MEMO_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, REACT_LAZY_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, REACT_BLOCK_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.block") : 60121, REACT_FUNDAMENTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, REACT_RESPONDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, REACT_SCOPE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
921
|
+
function isValidElementType(type) {
|
|
922
|
+
return typeof type == "string" || typeof type == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
923
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
924
|
+
}
|
|
925
|
+
function typeOf(object) {
|
|
926
|
+
if (typeof object == "object" && object !== null) {
|
|
927
|
+
var $$typeof = object.$$typeof;
|
|
928
|
+
switch ($$typeof) {
|
|
929
|
+
case REACT_ELEMENT_TYPE:
|
|
930
|
+
var type = object.type;
|
|
931
|
+
switch (type) {
|
|
932
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
933
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
934
|
+
case REACT_FRAGMENT_TYPE:
|
|
935
|
+
case REACT_PROFILER_TYPE:
|
|
936
|
+
case REACT_STRICT_MODE_TYPE:
|
|
937
|
+
case REACT_SUSPENSE_TYPE:
|
|
938
|
+
return type;
|
|
939
|
+
default:
|
|
940
|
+
var $$typeofType = type && type.$$typeof;
|
|
941
|
+
switch ($$typeofType) {
|
|
942
|
+
case REACT_CONTEXT_TYPE:
|
|
943
|
+
case REACT_FORWARD_REF_TYPE:
|
|
944
|
+
case REACT_LAZY_TYPE:
|
|
945
|
+
case REACT_MEMO_TYPE:
|
|
946
|
+
case REACT_PROVIDER_TYPE:
|
|
947
|
+
return $$typeofType;
|
|
948
|
+
default:
|
|
949
|
+
return $$typeof;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
case REACT_PORTAL_TYPE:
|
|
953
|
+
return $$typeof;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE, ConcurrentMode = REACT_CONCURRENT_MODE_TYPE, ContextConsumer = REACT_CONTEXT_TYPE, ContextProvider = REACT_PROVIDER_TYPE, Element = REACT_ELEMENT_TYPE, ForwardRef = REACT_FORWARD_REF_TYPE, Fragment3 = REACT_FRAGMENT_TYPE, Lazy = REACT_LAZY_TYPE, Memo = REACT_MEMO_TYPE, Portal = REACT_PORTAL_TYPE, Profiler = REACT_PROFILER_TYPE, StrictMode = REACT_STRICT_MODE_TYPE, Suspense = REACT_SUSPENSE_TYPE, hasWarnedAboutDeprecatedIsAsyncMode = !1;
|
|
958
|
+
function isAsyncMode(object) {
|
|
959
|
+
return hasWarnedAboutDeprecatedIsAsyncMode || (hasWarnedAboutDeprecatedIsAsyncMode = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
960
|
+
}
|
|
961
|
+
function isConcurrentMode(object) {
|
|
962
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
963
|
+
}
|
|
964
|
+
function isContextConsumer(object) {
|
|
965
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
966
|
+
}
|
|
967
|
+
function isContextProvider(object) {
|
|
968
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
969
|
+
}
|
|
970
|
+
function isElement(object) {
|
|
971
|
+
return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
972
|
+
}
|
|
973
|
+
function isForwardRef(object) {
|
|
974
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
975
|
+
}
|
|
976
|
+
function isFragment(object) {
|
|
977
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
978
|
+
}
|
|
979
|
+
function isLazy(object) {
|
|
980
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
981
|
+
}
|
|
982
|
+
function isMemo(object) {
|
|
983
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
984
|
+
}
|
|
985
|
+
function isPortal(object) {
|
|
986
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
987
|
+
}
|
|
988
|
+
function isProfiler(object) {
|
|
989
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
990
|
+
}
|
|
991
|
+
function isStrictMode(object) {
|
|
992
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
993
|
+
}
|
|
994
|
+
function isSuspense(object) {
|
|
995
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
996
|
+
}
|
|
997
|
+
exports.AsyncMode = AsyncMode, exports.ConcurrentMode = ConcurrentMode, exports.ContextConsumer = ContextConsumer, exports.ContextProvider = ContextProvider, exports.Element = Element, exports.ForwardRef = ForwardRef, exports.Fragment = Fragment3, exports.Lazy = Lazy, exports.Memo = Memo, exports.Portal = Portal, exports.Profiler = Profiler, exports.StrictMode = StrictMode, exports.Suspense = Suspense, exports.isAsyncMode = isAsyncMode, exports.isConcurrentMode = isConcurrentMode, exports.isContextConsumer = isContextConsumer, exports.isContextProvider = isContextProvider, exports.isElement = isElement, exports.isForwardRef = isForwardRef, exports.isFragment = isFragment, exports.isLazy = isLazy, exports.isMemo = isMemo, exports.isPortal = isPortal, exports.isProfiler = isProfiler, exports.isStrictMode = isStrictMode, exports.isSuspense = isSuspense, exports.isValidElementType = isValidElementType, exports.typeOf = typeOf;
|
|
998
|
+
})();
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
|
|
1002
|
+
// ../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js
|
|
1003
|
+
var require_react_is = __commonJS({
|
|
1004
|
+
"../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js"(exports, module) {
|
|
1005
|
+
"use strict";
|
|
1006
|
+
process.env.NODE_ENV === "production" ? module.exports = require_react_is_production_min() : module.exports = require_react_is_development();
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
|
|
1010
|
+
// ../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
1011
|
+
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
1012
|
+
"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
|
1013
|
+
"use strict";
|
|
1014
|
+
var reactIs = require_react_is(), REACT_STATICS = {
|
|
1015
|
+
childContextTypes: !0,
|
|
1016
|
+
contextType: !0,
|
|
1017
|
+
contextTypes: !0,
|
|
1018
|
+
defaultProps: !0,
|
|
1019
|
+
displayName: !0,
|
|
1020
|
+
getDefaultProps: !0,
|
|
1021
|
+
getDerivedStateFromError: !0,
|
|
1022
|
+
getDerivedStateFromProps: !0,
|
|
1023
|
+
mixins: !0,
|
|
1024
|
+
propTypes: !0,
|
|
1025
|
+
type: !0
|
|
1026
|
+
}, KNOWN_STATICS = {
|
|
1027
|
+
name: !0,
|
|
1028
|
+
length: !0,
|
|
1029
|
+
prototype: !0,
|
|
1030
|
+
caller: !0,
|
|
1031
|
+
callee: !0,
|
|
1032
|
+
arguments: !0,
|
|
1033
|
+
arity: !0
|
|
1034
|
+
}, FORWARD_REF_STATICS = {
|
|
1035
|
+
$$typeof: !0,
|
|
1036
|
+
render: !0,
|
|
1037
|
+
defaultProps: !0,
|
|
1038
|
+
displayName: !0,
|
|
1039
|
+
propTypes: !0
|
|
1040
|
+
}, MEMO_STATICS = {
|
|
1041
|
+
$$typeof: !0,
|
|
1042
|
+
compare: !0,
|
|
1043
|
+
defaultProps: !0,
|
|
1044
|
+
displayName: !0,
|
|
1045
|
+
propTypes: !0,
|
|
1046
|
+
type: !0
|
|
1047
|
+
}, TYPE_STATICS = {};
|
|
1048
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
1049
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
1050
|
+
function getStatics(component) {
|
|
1051
|
+
return reactIs.isMemo(component) ? MEMO_STATICS : TYPE_STATICS[component.$$typeof] || REACT_STATICS;
|
|
1052
|
+
}
|
|
1053
|
+
var defineProperty = Object.defineProperty, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getPrototypeOf = Object.getPrototypeOf, objectPrototype = Object.prototype;
|
|
1054
|
+
function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) {
|
|
1055
|
+
if (typeof sourceComponent != "string") {
|
|
1056
|
+
if (objectPrototype) {
|
|
1057
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
1058
|
+
inheritedComponent && inheritedComponent !== objectPrototype && hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
|
|
1059
|
+
}
|
|
1060
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
1061
|
+
getOwnPropertySymbols && (keys = keys.concat(getOwnPropertySymbols(sourceComponent)));
|
|
1062
|
+
for (var targetStatics = getStatics(targetComponent), sourceStatics = getStatics(sourceComponent), i = 0; i < keys.length; ++i) {
|
|
1063
|
+
var key = keys[i];
|
|
1064
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
1065
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
1066
|
+
try {
|
|
1067
|
+
defineProperty(targetComponent, key, descriptor);
|
|
1068
|
+
} catch {
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
return targetComponent;
|
|
1074
|
+
}
|
|
1075
|
+
module.exports = hoistNonReactStatics2;
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
1078
|
+
|
|
1079
|
+
// ../../node_modules/@emotion/native/dist/emotion-native.esm.js
|
|
1080
|
+
import * as reactNative from "react-native";
|
|
1081
|
+
import { StyleSheet as StyleSheet3 } from "react-native";
|
|
1082
|
+
|
|
1083
|
+
// ../../node_modules/@emotion/primitives-core/dist/emotion-primitives-core.esm.js
|
|
1084
|
+
var import_css_to_react_native = __toESM(require_css_to_react_native());
|
|
1085
|
+
import * as React4 from "react";
|
|
1086
|
+
|
|
1087
|
+
// ../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js
|
|
1088
|
+
import * as React2 from "react";
|
|
1089
|
+
import { useContext as useContext2, forwardRef as forwardRef2 } from "react";
|
|
1090
|
+
|
|
1091
|
+
// ../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
1092
|
+
var isDevelopment = !1;
|
|
1093
|
+
function sheetForTag(tag) {
|
|
1094
|
+
if (tag.sheet)
|
|
1095
|
+
return tag.sheet;
|
|
1096
|
+
for (var i = 0; i < document.styleSheets.length; i++)
|
|
1097
|
+
if (document.styleSheets[i].ownerNode === tag)
|
|
1098
|
+
return document.styleSheets[i];
|
|
1099
|
+
}
|
|
1100
|
+
function createStyleElement(options) {
|
|
1101
|
+
var tag = document.createElement("style");
|
|
1102
|
+
return tag.setAttribute("data-emotion", options.key), options.nonce !== void 0 && tag.setAttribute("nonce", options.nonce), tag.appendChild(document.createTextNode("")), tag.setAttribute("data-s", ""), tag;
|
|
1103
|
+
}
|
|
1104
|
+
var StyleSheet = (function() {
|
|
1105
|
+
function StyleSheet4(options) {
|
|
1106
|
+
var _this = this;
|
|
1107
|
+
this._insertTag = function(tag) {
|
|
1108
|
+
var before;
|
|
1109
|
+
_this.tags.length === 0 ? _this.insertionPoint ? before = _this.insertionPoint.nextSibling : _this.prepend ? before = _this.container.firstChild : before = _this.before : before = _this.tags[_this.tags.length - 1].nextSibling, _this.container.insertBefore(tag, before), _this.tags.push(tag);
|
|
1110
|
+
}, this.isSpeedy = options.speedy === void 0 ? !isDevelopment : options.speedy, this.tags = [], this.ctr = 0, this.nonce = options.nonce, this.key = options.key, this.container = options.container, this.prepend = options.prepend, this.insertionPoint = options.insertionPoint, this.before = null;
|
|
1111
|
+
}
|
|
1112
|
+
var _proto = StyleSheet4.prototype;
|
|
1113
|
+
return _proto.hydrate = function(nodes) {
|
|
1114
|
+
nodes.forEach(this._insertTag);
|
|
1115
|
+
}, _proto.insert = function(rule) {
|
|
1116
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(createStyleElement(this));
|
|
1117
|
+
var tag = this.tags[this.tags.length - 1];
|
|
1118
|
+
if (this.isSpeedy) {
|
|
1119
|
+
var sheet = sheetForTag(tag);
|
|
1120
|
+
try {
|
|
1121
|
+
sheet.insertRule(rule, sheet.cssRules.length);
|
|
1122
|
+
} catch {
|
|
1123
|
+
}
|
|
1124
|
+
} else
|
|
1125
|
+
tag.appendChild(document.createTextNode(rule));
|
|
1126
|
+
this.ctr++;
|
|
1127
|
+
}, _proto.flush = function() {
|
|
1128
|
+
this.tags.forEach(function(tag) {
|
|
1129
|
+
var _tag$parentNode;
|
|
1130
|
+
return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
|
|
1131
|
+
}), this.tags = [], this.ctr = 0;
|
|
1132
|
+
}, StyleSheet4;
|
|
1133
|
+
})();
|
|
1134
|
+
|
|
1135
|
+
// ../../node_modules/stylis/src/Enum.js
|
|
1136
|
+
var MS = "-ms-", MOZ = "-moz-", WEBKIT = "-webkit-", COMMENT = "comm", RULESET = "rule", DECLARATION = "decl";
|
|
1137
|
+
var IMPORT = "@import";
|
|
1138
|
+
var KEYFRAMES = "@keyframes";
|
|
1139
|
+
var LAYER = "@layer";
|
|
1140
|
+
|
|
1141
|
+
// ../../node_modules/stylis/src/Utility.js
|
|
1142
|
+
var abs = Math.abs, from = String.fromCharCode, assign = Object.assign;
|
|
1143
|
+
function hash(value, length2) {
|
|
1144
|
+
return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
1145
|
+
}
|
|
1146
|
+
function trim(value) {
|
|
1147
|
+
return value.trim();
|
|
1148
|
+
}
|
|
1149
|
+
function match(value, pattern) {
|
|
1150
|
+
return (value = pattern.exec(value)) ? value[0] : value;
|
|
1151
|
+
}
|
|
1152
|
+
function replace(value, pattern, replacement) {
|
|
1153
|
+
return value.replace(pattern, replacement);
|
|
1154
|
+
}
|
|
1155
|
+
function indexof(value, search) {
|
|
1156
|
+
return value.indexOf(search);
|
|
1157
|
+
}
|
|
1158
|
+
function charat(value, index2) {
|
|
1159
|
+
return value.charCodeAt(index2) | 0;
|
|
1160
|
+
}
|
|
1161
|
+
function substr(value, begin, end) {
|
|
1162
|
+
return value.slice(begin, end);
|
|
1163
|
+
}
|
|
1164
|
+
function strlen(value) {
|
|
1165
|
+
return value.length;
|
|
1166
|
+
}
|
|
1167
|
+
function sizeof(value) {
|
|
1168
|
+
return value.length;
|
|
1169
|
+
}
|
|
1170
|
+
function append(value, array) {
|
|
1171
|
+
return array.push(value), value;
|
|
1172
|
+
}
|
|
1173
|
+
function combine(array, callback) {
|
|
1174
|
+
return array.map(callback).join("");
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
// ../../node_modules/stylis/src/Tokenizer.js
|
|
1178
|
+
var line = 1, column = 1, length = 0, position = 0, character = 0, characters = "";
|
|
1179
|
+
function node(value, root, parent, type, props, children, length2) {
|
|
1180
|
+
return { value, root, parent, type, props, children, line, column, length: length2, return: "" };
|
|
1181
|
+
}
|
|
1182
|
+
function copy(root, props) {
|
|
1183
|
+
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
|
|
1184
|
+
}
|
|
1185
|
+
function char() {
|
|
1186
|
+
return character;
|
|
1187
|
+
}
|
|
1188
|
+
function prev() {
|
|
1189
|
+
return character = position > 0 ? charat(characters, --position) : 0, column--, character === 10 && (column = 1, line--), character;
|
|
1190
|
+
}
|
|
1191
|
+
function next() {
|
|
1192
|
+
return character = position < length ? charat(characters, position++) : 0, column++, character === 10 && (column = 1, line++), character;
|
|
1193
|
+
}
|
|
1194
|
+
function peek() {
|
|
1195
|
+
return charat(characters, position);
|
|
1196
|
+
}
|
|
1197
|
+
function caret() {
|
|
1198
|
+
return position;
|
|
1199
|
+
}
|
|
1200
|
+
function slice(begin, end) {
|
|
1201
|
+
return substr(characters, begin, end);
|
|
1202
|
+
}
|
|
1203
|
+
function token(type) {
|
|
1204
|
+
switch (type) {
|
|
1205
|
+
// \0 \t \n \r \s whitespace token
|
|
1206
|
+
case 0:
|
|
1207
|
+
case 9:
|
|
1208
|
+
case 10:
|
|
1209
|
+
case 13:
|
|
1210
|
+
case 32:
|
|
1211
|
+
return 5;
|
|
1212
|
+
// ! + , / > @ ~ isolate token
|
|
1213
|
+
case 33:
|
|
1214
|
+
case 43:
|
|
1215
|
+
case 44:
|
|
1216
|
+
case 47:
|
|
1217
|
+
case 62:
|
|
1218
|
+
case 64:
|
|
1219
|
+
case 126:
|
|
1220
|
+
// ; { } breakpoint token
|
|
1221
|
+
case 59:
|
|
1222
|
+
case 123:
|
|
1223
|
+
case 125:
|
|
1224
|
+
return 4;
|
|
1225
|
+
// : accompanied token
|
|
1226
|
+
case 58:
|
|
1227
|
+
return 3;
|
|
1228
|
+
// " ' ( [ opening delimit token
|
|
1229
|
+
case 34:
|
|
1230
|
+
case 39:
|
|
1231
|
+
case 40:
|
|
1232
|
+
case 91:
|
|
1233
|
+
return 2;
|
|
1234
|
+
// ) ] closing delimit token
|
|
1235
|
+
case 41:
|
|
1236
|
+
case 93:
|
|
1237
|
+
return 1;
|
|
1238
|
+
}
|
|
1239
|
+
return 0;
|
|
1240
|
+
}
|
|
1241
|
+
function alloc(value) {
|
|
1242
|
+
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
1243
|
+
}
|
|
1244
|
+
function dealloc(value) {
|
|
1245
|
+
return characters = "", value;
|
|
1246
|
+
}
|
|
1247
|
+
function delimit(type) {
|
|
1248
|
+
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
1249
|
+
}
|
|
1250
|
+
function whitespace(type) {
|
|
1251
|
+
for (; (character = peek()) && character < 33; )
|
|
1252
|
+
next();
|
|
1253
|
+
return token(type) > 2 || token(character) > 3 ? "" : " ";
|
|
1254
|
+
}
|
|
1255
|
+
function escaping(index2, count) {
|
|
1256
|
+
for (; --count && next() && !(character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97); )
|
|
1257
|
+
;
|
|
1258
|
+
return slice(index2, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
1259
|
+
}
|
|
1260
|
+
function delimiter(type) {
|
|
1261
|
+
for (; next(); )
|
|
1262
|
+
switch (character) {
|
|
1263
|
+
// ] ) " '
|
|
1264
|
+
case type:
|
|
1265
|
+
return position;
|
|
1266
|
+
// " '
|
|
1267
|
+
case 34:
|
|
1268
|
+
case 39:
|
|
1269
|
+
type !== 34 && type !== 39 && delimiter(character);
|
|
1270
|
+
break;
|
|
1271
|
+
// (
|
|
1272
|
+
case 40:
|
|
1273
|
+
type === 41 && delimiter(type);
|
|
1274
|
+
break;
|
|
1275
|
+
// \
|
|
1276
|
+
case 92:
|
|
1277
|
+
next();
|
|
1278
|
+
break;
|
|
1279
|
+
}
|
|
1280
|
+
return position;
|
|
1281
|
+
}
|
|
1282
|
+
function commenter(type, index2) {
|
|
1283
|
+
for (; next() && type + character !== 57; )
|
|
1284
|
+
if (type + character === 84 && peek() === 47)
|
|
1285
|
+
break;
|
|
1286
|
+
return "/*" + slice(index2, position - 1) + "*" + from(type === 47 ? type : next());
|
|
1287
|
+
}
|
|
1288
|
+
function identifier(index2) {
|
|
1289
|
+
for (; !token(peek()); )
|
|
1290
|
+
next();
|
|
1291
|
+
return slice(index2, position);
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
// ../../node_modules/stylis/src/Parser.js
|
|
1295
|
+
function compile(value) {
|
|
1296
|
+
return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
|
1297
|
+
}
|
|
1298
|
+
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
1299
|
+
for (var index2 = 0, offset = 0, length2 = pseudo, atrule = 0, property = 0, previous = 0, variable = 1, scanning = 1, ampersand = 1, character2 = 0, type = "", props = rules, children = rulesets, reference = rule, characters2 = type; scanning; )
|
|
1300
|
+
switch (previous = character2, character2 = next()) {
|
|
1301
|
+
// (
|
|
1302
|
+
case 40:
|
|
1303
|
+
if (previous != 108 && charat(characters2, length2 - 1) == 58) {
|
|
1304
|
+
indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1 && (ampersand = -1);
|
|
1305
|
+
break;
|
|
1306
|
+
}
|
|
1307
|
+
// " ' [
|
|
1308
|
+
case 34:
|
|
1309
|
+
case 39:
|
|
1310
|
+
case 91:
|
|
1311
|
+
characters2 += delimit(character2);
|
|
1312
|
+
break;
|
|
1313
|
+
// \t \n \r \s
|
|
1314
|
+
case 9:
|
|
1315
|
+
case 10:
|
|
1316
|
+
case 13:
|
|
1317
|
+
case 32:
|
|
1318
|
+
characters2 += whitespace(previous);
|
|
1319
|
+
break;
|
|
1320
|
+
// \
|
|
1321
|
+
case 92:
|
|
1322
|
+
characters2 += escaping(caret() - 1, 7);
|
|
1323
|
+
continue;
|
|
1324
|
+
// /
|
|
1325
|
+
case 47:
|
|
1326
|
+
switch (peek()) {
|
|
1327
|
+
case 42:
|
|
1328
|
+
case 47:
|
|
1329
|
+
append(comment(commenter(next(), caret()), root, parent), declarations);
|
|
1330
|
+
break;
|
|
1331
|
+
default:
|
|
1332
|
+
characters2 += "/";
|
|
1333
|
+
}
|
|
1334
|
+
break;
|
|
1335
|
+
// {
|
|
1336
|
+
case 123 * variable:
|
|
1337
|
+
points[index2++] = strlen(characters2) * ampersand;
|
|
1338
|
+
// } ; \0
|
|
1339
|
+
case 125 * variable:
|
|
1340
|
+
case 59:
|
|
1341
|
+
case 0:
|
|
1342
|
+
switch (character2) {
|
|
1343
|
+
// \0 }
|
|
1344
|
+
case 0:
|
|
1345
|
+
case 125:
|
|
1346
|
+
scanning = 0;
|
|
1347
|
+
// ;
|
|
1348
|
+
case 59 + offset:
|
|
1349
|
+
ampersand == -1 && (characters2 = replace(characters2, /\f/g, "")), property > 0 && strlen(characters2) - length2 && append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
|
|
1350
|
+
break;
|
|
1351
|
+
// @ ;
|
|
1352
|
+
case 59:
|
|
1353
|
+
characters2 += ";";
|
|
1354
|
+
// { rule/at-rule
|
|
1355
|
+
default:
|
|
1356
|
+
if (append(reference = ruleset(characters2, root, parent, index2, offset, rules, points, type, props = [], children = [], length2), rulesets), character2 === 123)
|
|
1357
|
+
if (offset === 0)
|
|
1358
|
+
parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
|
|
1359
|
+
else
|
|
1360
|
+
switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
|
|
1361
|
+
// d l m s
|
|
1362
|
+
case 100:
|
|
1363
|
+
case 108:
|
|
1364
|
+
case 109:
|
|
1365
|
+
case 115:
|
|
1366
|
+
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
|
|
1367
|
+
break;
|
|
1368
|
+
default:
|
|
1369
|
+
parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
index2 = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
|
1373
|
+
break;
|
|
1374
|
+
// :
|
|
1375
|
+
case 58:
|
|
1376
|
+
length2 = 1 + strlen(characters2), property = previous;
|
|
1377
|
+
default:
|
|
1378
|
+
if (variable < 1) {
|
|
1379
|
+
if (character2 == 123)
|
|
1380
|
+
--variable;
|
|
1381
|
+
else if (character2 == 125 && variable++ == 0 && prev() == 125)
|
|
1382
|
+
continue;
|
|
1383
|
+
}
|
|
1384
|
+
switch (characters2 += from(character2), character2 * variable) {
|
|
1385
|
+
// &
|
|
1386
|
+
case 38:
|
|
1387
|
+
ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
|
|
1388
|
+
break;
|
|
1389
|
+
// ,
|
|
1390
|
+
case 44:
|
|
1391
|
+
points[index2++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
|
1392
|
+
break;
|
|
1393
|
+
// @
|
|
1394
|
+
case 64:
|
|
1395
|
+
peek() === 45 && (characters2 += delimit(next())), atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
1396
|
+
break;
|
|
1397
|
+
// -
|
|
1398
|
+
case 45:
|
|
1399
|
+
previous === 45 && strlen(characters2) == 2 && (variable = 0);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
return rulesets;
|
|
1403
|
+
}
|
|
1404
|
+
function ruleset(value, root, parent, index2, offset, rules, points, type, props, children, length2) {
|
|
1405
|
+
for (var post = offset - 1, rule = offset === 0 ? rules : [""], size = sizeof(rule), i = 0, j = 0, k = 0; i < index2; ++i)
|
|
1406
|
+
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
1407
|
+
(z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) && (props[k++] = z);
|
|
1408
|
+
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
|
|
1409
|
+
}
|
|
1410
|
+
function comment(value, root, parent) {
|
|
1411
|
+
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
|
|
1412
|
+
}
|
|
1413
|
+
function declaration(value, root, parent, length2) {
|
|
1414
|
+
return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
// ../../node_modules/stylis/src/Serializer.js
|
|
1418
|
+
function serialize(children, callback) {
|
|
1419
|
+
for (var output = "", length2 = sizeof(children), i = 0; i < length2; i++)
|
|
1420
|
+
output += callback(children[i], i, children, callback) || "";
|
|
1421
|
+
return output;
|
|
1422
|
+
}
|
|
1423
|
+
function stringify(element, index2, children, callback) {
|
|
1424
|
+
switch (element.type) {
|
|
1425
|
+
case LAYER:
|
|
1426
|
+
if (element.children.length) break;
|
|
1427
|
+
case IMPORT:
|
|
1428
|
+
case DECLARATION:
|
|
1429
|
+
return element.return = element.return || element.value;
|
|
1430
|
+
case COMMENT:
|
|
1431
|
+
return "";
|
|
1432
|
+
case KEYFRAMES:
|
|
1433
|
+
return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
|
1434
|
+
case RULESET:
|
|
1435
|
+
element.value = element.props.join(",");
|
|
1436
|
+
}
|
|
1437
|
+
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
// ../../node_modules/stylis/src/Middleware.js
|
|
1441
|
+
function middleware(collection) {
|
|
1442
|
+
var length2 = sizeof(collection);
|
|
1443
|
+
return function(element, index2, children, callback) {
|
|
1444
|
+
for (var output = "", i = 0; i < length2; i++)
|
|
1445
|
+
output += collection[i](element, index2, children, callback) || "";
|
|
1446
|
+
return output;
|
|
1447
|
+
};
|
|
1448
|
+
}
|
|
1449
|
+
function rulesheet(callback) {
|
|
1450
|
+
return function(element) {
|
|
1451
|
+
element.root || (element = element.return) && callback(element);
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
// ../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js
|
|
1456
|
+
var weakMemoize = function(func) {
|
|
1457
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
|
1458
|
+
return function(arg) {
|
|
1459
|
+
if (cache.has(arg))
|
|
1460
|
+
return cache.get(arg);
|
|
1461
|
+
var ret = func(arg);
|
|
1462
|
+
return cache.set(arg, ret), ret;
|
|
1463
|
+
};
|
|
1464
|
+
};
|
|
1465
|
+
|
|
1466
|
+
// ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
1467
|
+
function memoize(fn) {
|
|
1468
|
+
var cache = /* @__PURE__ */ Object.create(null);
|
|
1469
|
+
return function(arg) {
|
|
1470
|
+
return cache[arg] === void 0 && (cache[arg] = fn(arg)), cache[arg];
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
// ../../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
|
|
1475
|
+
var identifierWithPointTracking = function(begin, points, index2) {
|
|
1476
|
+
for (var previous = 0, character2 = 0; previous = character2, character2 = peek(), previous === 38 && character2 === 12 && (points[index2] = 1), !token(character2); )
|
|
1477
|
+
next();
|
|
1478
|
+
return slice(begin, position);
|
|
1479
|
+
}, toRules = function(parsed, points) {
|
|
1480
|
+
var index2 = -1, character2 = 44;
|
|
1481
|
+
do
|
|
1482
|
+
switch (token(character2)) {
|
|
1483
|
+
case 0:
|
|
1484
|
+
character2 === 38 && peek() === 12 && (points[index2] = 1), parsed[index2] += identifierWithPointTracking(position - 1, points, index2);
|
|
1485
|
+
break;
|
|
1486
|
+
case 2:
|
|
1487
|
+
parsed[index2] += delimit(character2);
|
|
1488
|
+
break;
|
|
1489
|
+
case 4:
|
|
1490
|
+
if (character2 === 44) {
|
|
1491
|
+
parsed[++index2] = peek() === 58 ? "&\f" : "", points[index2] = parsed[index2].length;
|
|
1492
|
+
break;
|
|
1493
|
+
}
|
|
1494
|
+
// fallthrough
|
|
1495
|
+
default:
|
|
1496
|
+
parsed[index2] += from(character2);
|
|
1497
|
+
}
|
|
1498
|
+
while (character2 = next());
|
|
1499
|
+
return parsed;
|
|
1500
|
+
}, getRules = function(value, points) {
|
|
1501
|
+
return dealloc(toRules(alloc(value), points));
|
|
1502
|
+
}, fixedElements = /* @__PURE__ */ new WeakMap(), compat = function(element) {
|
|
1503
|
+
if (!(element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
|
|
1504
|
+
// negative .length indicates that this rule has been already prefixed
|
|
1505
|
+
element.length < 1)) {
|
|
1506
|
+
for (var value = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; parent.type !== "rule"; )
|
|
1507
|
+
if (parent = parent.parent, !parent) return;
|
|
1508
|
+
if (!(element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) && !isImplicitRule) {
|
|
1509
|
+
fixedElements.set(element, !0);
|
|
1510
|
+
for (var points = [], rules = getRules(value, points), parentRules = parent.props, i = 0, k = 0; i < rules.length; i++)
|
|
1511
|
+
for (var j = 0; j < parentRules.length; j++, k++)
|
|
1512
|
+
element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
}, removeLabel = function(element) {
|
|
1516
|
+
if (element.type === "decl") {
|
|
1517
|
+
var value = element.value;
|
|
1518
|
+
// charcode for l
|
|
1519
|
+
value.charCodeAt(0) === 108 && // charcode for b
|
|
1520
|
+
value.charCodeAt(2) === 98 && (element.return = "", element.value = "");
|
|
1521
|
+
}
|
|
1522
|
+
};
|
|
1523
|
+
function prefix2(value, length2) {
|
|
1524
|
+
switch (hash(value, length2)) {
|
|
1525
|
+
// color-adjust
|
|
1526
|
+
case 5103:
|
|
1527
|
+
return WEBKIT + "print-" + value + value;
|
|
1528
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
1529
|
+
case 5737:
|
|
1530
|
+
case 4201:
|
|
1531
|
+
case 3177:
|
|
1532
|
+
case 3433:
|
|
1533
|
+
case 1641:
|
|
1534
|
+
case 4457:
|
|
1535
|
+
case 2921:
|
|
1536
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
1537
|
+
case 5572:
|
|
1538
|
+
case 6356:
|
|
1539
|
+
case 5844:
|
|
1540
|
+
case 3191:
|
|
1541
|
+
case 6645:
|
|
1542
|
+
case 3005:
|
|
1543
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
1544
|
+
case 6391:
|
|
1545
|
+
case 5879:
|
|
1546
|
+
case 5623:
|
|
1547
|
+
case 6135:
|
|
1548
|
+
case 4599:
|
|
1549
|
+
case 4855:
|
|
1550
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
1551
|
+
case 4215:
|
|
1552
|
+
case 6389:
|
|
1553
|
+
case 5109:
|
|
1554
|
+
case 5365:
|
|
1555
|
+
case 5621:
|
|
1556
|
+
case 3829:
|
|
1557
|
+
return WEBKIT + value + value;
|
|
1558
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1559
|
+
case 5349:
|
|
1560
|
+
case 4246:
|
|
1561
|
+
case 4810:
|
|
1562
|
+
case 6968:
|
|
1563
|
+
case 2756:
|
|
1564
|
+
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
1565
|
+
// flex, flex-direction
|
|
1566
|
+
case 6828:
|
|
1567
|
+
case 4268:
|
|
1568
|
+
return WEBKIT + value + MS + value + value;
|
|
1569
|
+
// order
|
|
1570
|
+
case 6165:
|
|
1571
|
+
return WEBKIT + value + MS + "flex-" + value + value;
|
|
1572
|
+
// align-items
|
|
1573
|
+
case 5187:
|
|
1574
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
|
|
1575
|
+
// align-self
|
|
1576
|
+
case 5443:
|
|
1577
|
+
return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
|
|
1578
|
+
// align-content
|
|
1579
|
+
case 4675:
|
|
1580
|
+
return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
|
|
1581
|
+
// flex-shrink
|
|
1582
|
+
case 5548:
|
|
1583
|
+
return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
|
|
1584
|
+
// flex-basis
|
|
1585
|
+
case 5292:
|
|
1586
|
+
return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
|
|
1587
|
+
// flex-grow
|
|
1588
|
+
case 6060:
|
|
1589
|
+
return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
|
|
1590
|
+
// transition
|
|
1591
|
+
case 4554:
|
|
1592
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
|
|
1593
|
+
// cursor
|
|
1594
|
+
case 6187:
|
|
1595
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
|
|
1596
|
+
// background, background-image
|
|
1597
|
+
case 5495:
|
|
1598
|
+
case 3959:
|
|
1599
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
|
1600
|
+
// justify-content
|
|
1601
|
+
case 4968:
|
|
1602
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
|
|
1603
|
+
// (margin|padding)-inline-(start|end)
|
|
1604
|
+
case 4095:
|
|
1605
|
+
case 3583:
|
|
1606
|
+
case 4068:
|
|
1607
|
+
case 2532:
|
|
1608
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
|
|
1609
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
1610
|
+
case 8116:
|
|
1611
|
+
case 7059:
|
|
1612
|
+
case 5753:
|
|
1613
|
+
case 5535:
|
|
1614
|
+
case 5445:
|
|
1615
|
+
case 5701:
|
|
1616
|
+
case 4933:
|
|
1617
|
+
case 4677:
|
|
1618
|
+
case 5533:
|
|
1619
|
+
case 5789:
|
|
1620
|
+
case 5021:
|
|
1621
|
+
case 4765:
|
|
1622
|
+
if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) {
|
|
1623
|
+
// (m)ax-content, (m)in-content
|
|
1624
|
+
case 109:
|
|
1625
|
+
if (charat(value, length2 + 4) !== 45) break;
|
|
1626
|
+
// (f)ill-available, (f)it-content
|
|
1627
|
+
case 102:
|
|
1628
|
+
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
1629
|
+
// (s)tretch
|
|
1630
|
+
case 115:
|
|
1631
|
+
return ~indexof(value, "stretch") ? prefix2(replace(value, "stretch", "fill-available"), length2) + value : value;
|
|
1632
|
+
}
|
|
1633
|
+
break;
|
|
1634
|
+
// position: sticky
|
|
1635
|
+
case 4949:
|
|
1636
|
+
if (charat(value, length2 + 1) !== 115) break;
|
|
1637
|
+
// display: (flex|inline-flex)
|
|
1638
|
+
case 6444:
|
|
1639
|
+
switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
|
|
1640
|
+
// stic(k)y
|
|
1641
|
+
case 107:
|
|
1642
|
+
return replace(value, ":", ":" + WEBKIT) + value;
|
|
1643
|
+
// (inline-)?fl(e)x
|
|
1644
|
+
case 101:
|
|
1645
|
+
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
|
1646
|
+
}
|
|
1647
|
+
break;
|
|
1648
|
+
// writing-mode
|
|
1649
|
+
case 5936:
|
|
1650
|
+
switch (charat(value, length2 + 11)) {
|
|
1651
|
+
// vertical-l(r)
|
|
1652
|
+
case 114:
|
|
1653
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
|
|
1654
|
+
// vertical-r(l)
|
|
1655
|
+
case 108:
|
|
1656
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
|
|
1657
|
+
// horizontal(-)tb
|
|
1658
|
+
case 45:
|
|
1659
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
|
|
1660
|
+
}
|
|
1661
|
+
return WEBKIT + value + MS + value + value;
|
|
1662
|
+
}
|
|
1663
|
+
return value;
|
|
1664
|
+
}
|
|
1665
|
+
var prefixer = function(element, index2, children, callback) {
|
|
1666
|
+
if (element.length > -1 && !element.return) switch (element.type) {
|
|
1667
|
+
case DECLARATION:
|
|
1668
|
+
element.return = prefix2(element.value, element.length);
|
|
1669
|
+
break;
|
|
1670
|
+
case KEYFRAMES:
|
|
1671
|
+
return serialize([copy(element, {
|
|
1672
|
+
value: replace(element.value, "@", "@" + WEBKIT)
|
|
1673
|
+
})], callback);
|
|
1674
|
+
case RULESET:
|
|
1675
|
+
if (element.length) return combine(element.props, function(value) {
|
|
1676
|
+
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
1677
|
+
// :read-(only|write)
|
|
1678
|
+
case ":read-only":
|
|
1679
|
+
case ":read-write":
|
|
1680
|
+
return serialize([copy(element, {
|
|
1681
|
+
props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
|
|
1682
|
+
})], callback);
|
|
1683
|
+
// :placeholder
|
|
1684
|
+
case "::placeholder":
|
|
1685
|
+
return serialize([copy(element, {
|
|
1686
|
+
props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
|
|
1687
|
+
}), copy(element, {
|
|
1688
|
+
props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
|
|
1689
|
+
}), copy(element, {
|
|
1690
|
+
props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
|
|
1691
|
+
})], callback);
|
|
1692
|
+
}
|
|
1693
|
+
return "";
|
|
1694
|
+
});
|
|
1695
|
+
}
|
|
1696
|
+
}, defaultStylisPlugins = [prefixer], createCache = function(options) {
|
|
1697
|
+
var key = options.key;
|
|
1698
|
+
if (key === "css") {
|
|
1699
|
+
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1700
|
+
Array.prototype.forEach.call(ssrStyles, function(node2) {
|
|
1701
|
+
var dataEmotionAttribute = node2.getAttribute("data-emotion");
|
|
1702
|
+
dataEmotionAttribute.indexOf(" ") !== -1 && (document.head.appendChild(node2), node2.setAttribute("data-s", ""));
|
|
1703
|
+
});
|
|
1704
|
+
}
|
|
1705
|
+
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins, inserted = {}, container, nodesToHydrate = [];
|
|
1706
|
+
container = options.container || document.head, Array.prototype.forEach.call(
|
|
1707
|
+
// this means we will ignore elements which don't have a space in them which
|
|
1708
|
+
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1709
|
+
document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
|
|
1710
|
+
function(node2) {
|
|
1711
|
+
for (var attrib = node2.getAttribute("data-emotion").split(" "), i = 1; i < attrib.length; i++)
|
|
1712
|
+
inserted[attrib[i]] = !0;
|
|
1713
|
+
nodesToHydrate.push(node2);
|
|
1714
|
+
}
|
|
1715
|
+
);
|
|
1716
|
+
var _insert, omnipresentPlugins = [compat, removeLabel];
|
|
1717
|
+
{
|
|
1718
|
+
var currentSheet, finalizingPlugins = [stringify, rulesheet(function(rule) {
|
|
1719
|
+
currentSheet.insert(rule);
|
|
1720
|
+
})], serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)), stylis = function(styles2) {
|
|
1721
|
+
return serialize(compile(styles2), serializer);
|
|
1722
|
+
};
|
|
1723
|
+
_insert = function(selector, serialized, sheet, shouldCache) {
|
|
1724
|
+
currentSheet = sheet, stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles), shouldCache && (cache.inserted[serialized.name] = !0);
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
var cache = {
|
|
1728
|
+
key,
|
|
1729
|
+
sheet: new StyleSheet({
|
|
1730
|
+
key,
|
|
1731
|
+
container,
|
|
1732
|
+
nonce: options.nonce,
|
|
1733
|
+
speedy: options.speedy,
|
|
1734
|
+
prepend: options.prepend,
|
|
1735
|
+
insertionPoint: options.insertionPoint
|
|
1736
|
+
}),
|
|
1737
|
+
nonce: options.nonce,
|
|
1738
|
+
inserted,
|
|
1739
|
+
registered: {},
|
|
1740
|
+
insert: _insert
|
|
1741
|
+
};
|
|
1742
|
+
return cache.sheet.hydrate(nodesToHydrate), cache;
|
|
1743
|
+
};
|
|
1744
|
+
|
|
1745
|
+
// ../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js
|
|
1746
|
+
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs()), hoistNonReactStatics = (function(targetComponent, sourceComponent) {
|
|
1747
|
+
return (0, import_hoist_non_react_statics.default)(targetComponent, sourceComponent);
|
|
1748
|
+
});
|
|
1749
|
+
|
|
1750
|
+
// ../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
|
|
1751
|
+
var isBrowser = !0;
|
|
1752
|
+
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
1753
|
+
var rawClassName = "";
|
|
1754
|
+
return classNames.split(" ").forEach(function(className) {
|
|
1755
|
+
registered[className] !== void 0 ? registeredStyles.push(registered[className] + ";") : className && (rawClassName += className + " ");
|
|
1756
|
+
}), rawClassName;
|
|
1757
|
+
}
|
|
1758
|
+
var registerStyles = function(cache, serialized, isStringTag) {
|
|
1759
|
+
var className = cache.key + "-" + serialized.name;
|
|
1760
|
+
// we only need to add the styles to the registered cache if the
|
|
1761
|
+
// class name could be used further down
|
|
1762
|
+
// the tree but if it's a string tag, we know it won't
|
|
1763
|
+
// so we don't have to add it to registered cache.
|
|
1764
|
+
// this improves memory usage since we can avoid storing the whole style string
|
|
1765
|
+
(isStringTag === !1 || // we need to always store it if we're in compat mode and
|
|
1766
|
+
// in node since emotion-server relies on whether a style is in
|
|
1767
|
+
// the registered cache to know whether a style is global or not
|
|
1768
|
+
// also, note that this check will be dead code eliminated in the browser
|
|
1769
|
+
isBrowser === !1) && cache.registered[className] === void 0 && (cache.registered[className] = serialized.styles);
|
|
1770
|
+
}, insertStyles = function(cache, serialized, isStringTag) {
|
|
1771
|
+
registerStyles(cache, serialized, isStringTag);
|
|
1772
|
+
var className = cache.key + "-" + serialized.name;
|
|
1773
|
+
if (cache.inserted[serialized.name] === void 0) {
|
|
1774
|
+
var current = serialized;
|
|
1775
|
+
do
|
|
1776
|
+
cache.insert(serialized === current ? "." + className : "", current, cache.sheet, !0), current = current.next;
|
|
1777
|
+
while (current !== void 0);
|
|
1778
|
+
}
|
|
1779
|
+
};
|
|
1780
|
+
|
|
1781
|
+
// ../../node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
1782
|
+
function murmur2(str) {
|
|
1783
|
+
for (var h = 0, k, i = 0, len = str.length; len >= 4; ++i, len -= 4)
|
|
1784
|
+
k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24, k = /* Math.imul(k, m): */
|
|
1785
|
+
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16), k ^= /* k >>> r: */
|
|
1786
|
+
k >>> 24, h = /* Math.imul(k, m): */
|
|
1787
|
+
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
1788
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1789
|
+
switch (len) {
|
|
1790
|
+
case 3:
|
|
1791
|
+
h ^= (str.charCodeAt(i + 2) & 255) << 16;
|
|
1792
|
+
case 2:
|
|
1793
|
+
h ^= (str.charCodeAt(i + 1) & 255) << 8;
|
|
1794
|
+
case 1:
|
|
1795
|
+
h ^= str.charCodeAt(i) & 255, h = /* Math.imul(h, m): */
|
|
1796
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1797
|
+
}
|
|
1798
|
+
return h ^= h >>> 13, h = /* Math.imul(h, m): */
|
|
1799
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16), ((h ^ h >>> 15) >>> 0).toString(36);
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
// ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
1803
|
+
var unitlessKeys = {
|
|
1804
|
+
animationIterationCount: 1,
|
|
1805
|
+
aspectRatio: 1,
|
|
1806
|
+
borderImageOutset: 1,
|
|
1807
|
+
borderImageSlice: 1,
|
|
1808
|
+
borderImageWidth: 1,
|
|
1809
|
+
boxFlex: 1,
|
|
1810
|
+
boxFlexGroup: 1,
|
|
1811
|
+
boxOrdinalGroup: 1,
|
|
1812
|
+
columnCount: 1,
|
|
1813
|
+
columns: 1,
|
|
1814
|
+
flex: 1,
|
|
1815
|
+
flexGrow: 1,
|
|
1816
|
+
flexPositive: 1,
|
|
1817
|
+
flexShrink: 1,
|
|
1818
|
+
flexNegative: 1,
|
|
1819
|
+
flexOrder: 1,
|
|
1820
|
+
gridRow: 1,
|
|
1821
|
+
gridRowEnd: 1,
|
|
1822
|
+
gridRowSpan: 1,
|
|
1823
|
+
gridRowStart: 1,
|
|
1824
|
+
gridColumn: 1,
|
|
1825
|
+
gridColumnEnd: 1,
|
|
1826
|
+
gridColumnSpan: 1,
|
|
1827
|
+
gridColumnStart: 1,
|
|
1828
|
+
msGridRow: 1,
|
|
1829
|
+
msGridRowSpan: 1,
|
|
1830
|
+
msGridColumn: 1,
|
|
1831
|
+
msGridColumnSpan: 1,
|
|
1832
|
+
fontWeight: 1,
|
|
1833
|
+
lineHeight: 1,
|
|
1834
|
+
opacity: 1,
|
|
1835
|
+
order: 1,
|
|
1836
|
+
orphans: 1,
|
|
1837
|
+
scale: 1,
|
|
1838
|
+
tabSize: 1,
|
|
1839
|
+
widows: 1,
|
|
1840
|
+
zIndex: 1,
|
|
1841
|
+
zoom: 1,
|
|
1842
|
+
WebkitLineClamp: 1,
|
|
1843
|
+
// SVG-related properties
|
|
1844
|
+
fillOpacity: 1,
|
|
1845
|
+
floodOpacity: 1,
|
|
1846
|
+
stopOpacity: 1,
|
|
1847
|
+
strokeDasharray: 1,
|
|
1848
|
+
strokeDashoffset: 1,
|
|
1849
|
+
strokeMiterlimit: 1,
|
|
1850
|
+
strokeOpacity: 1,
|
|
1851
|
+
strokeWidth: 1
|
|
1852
|
+
};
|
|
1853
|
+
|
|
1854
|
+
// ../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
|
|
1855
|
+
var isDevelopment2 = !1, hyphenateRegex = /[A-Z]|^ms/g, animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g, isCustomProperty = function(property) {
|
|
1856
|
+
return property.charCodeAt(1) === 45;
|
|
1857
|
+
}, isProcessableValue = function(value) {
|
|
1858
|
+
return value != null && typeof value != "boolean";
|
|
1859
|
+
}, processStyleName = memoize(function(styleName) {
|
|
1860
|
+
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
|
|
1861
|
+
}), processStyleValue = function(key, value) {
|
|
1862
|
+
switch (key) {
|
|
1863
|
+
case "animation":
|
|
1864
|
+
case "animationName":
|
|
1865
|
+
if (typeof value == "string")
|
|
1866
|
+
return value.replace(animationRegex, function(match2, p1, p2) {
|
|
1867
|
+
return cursor = {
|
|
1868
|
+
name: p1,
|
|
1869
|
+
styles: p2,
|
|
1870
|
+
next: cursor
|
|
1871
|
+
}, p1;
|
|
1872
|
+
});
|
|
1873
|
+
}
|
|
1874
|
+
return unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value == "number" && value !== 0 ? value + "px" : value;
|
|
1875
|
+
}, noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
1876
|
+
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1877
|
+
if (interpolation == null)
|
|
1878
|
+
return "";
|
|
1879
|
+
var componentSelector = interpolation;
|
|
1880
|
+
if (componentSelector.__emotion_styles !== void 0)
|
|
1881
|
+
return componentSelector;
|
|
1882
|
+
switch (typeof interpolation) {
|
|
1883
|
+
case "boolean":
|
|
1884
|
+
return "";
|
|
1885
|
+
case "object": {
|
|
1886
|
+
var keyframes = interpolation;
|
|
1887
|
+
if (keyframes.anim === 1)
|
|
1888
|
+
return cursor = {
|
|
1889
|
+
name: keyframes.name,
|
|
1890
|
+
styles: keyframes.styles,
|
|
1891
|
+
next: cursor
|
|
1892
|
+
}, keyframes.name;
|
|
1893
|
+
var serializedStyles = interpolation;
|
|
1894
|
+
if (serializedStyles.styles !== void 0) {
|
|
1895
|
+
var next2 = serializedStyles.next;
|
|
1896
|
+
if (next2 !== void 0)
|
|
1897
|
+
for (; next2 !== void 0; )
|
|
1898
|
+
cursor = {
|
|
1899
|
+
name: next2.name,
|
|
1900
|
+
styles: next2.styles,
|
|
1901
|
+
next: cursor
|
|
1902
|
+
}, next2 = next2.next;
|
|
1903
|
+
var styles2 = serializedStyles.styles + ";";
|
|
1904
|
+
return styles2;
|
|
1905
|
+
}
|
|
1906
|
+
return createStringFromObject(mergedProps, registered, interpolation);
|
|
1907
|
+
}
|
|
1908
|
+
case "function": {
|
|
1909
|
+
if (mergedProps !== void 0) {
|
|
1910
|
+
var previousCursor = cursor, result = interpolation(mergedProps);
|
|
1911
|
+
return cursor = previousCursor, handleInterpolation(mergedProps, registered, result);
|
|
1912
|
+
}
|
|
1913
|
+
break;
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
var asString = interpolation;
|
|
1917
|
+
if (registered == null)
|
|
1918
|
+
return asString;
|
|
1919
|
+
var cached = registered[asString];
|
|
1920
|
+
return cached !== void 0 ? cached : asString;
|
|
1921
|
+
}
|
|
1922
|
+
function createStringFromObject(mergedProps, registered, obj) {
|
|
1923
|
+
var string = "";
|
|
1924
|
+
if (Array.isArray(obj))
|
|
1925
|
+
for (var i = 0; i < obj.length; i++)
|
|
1926
|
+
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
1927
|
+
else
|
|
1928
|
+
for (var key in obj) {
|
|
1929
|
+
var value = obj[key];
|
|
1930
|
+
if (typeof value != "object") {
|
|
1931
|
+
var asString = value;
|
|
1932
|
+
registered != null && registered[asString] !== void 0 ? string += key + "{" + registered[asString] + "}" : isProcessableValue(asString) && (string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";");
|
|
1933
|
+
} else {
|
|
1934
|
+
if (key === "NO_COMPONENT_SELECTOR" && isDevelopment2)
|
|
1935
|
+
throw new Error(noComponentSelectorMessage);
|
|
1936
|
+
if (Array.isArray(value) && typeof value[0] == "string" && (registered == null || registered[value[0]] === void 0))
|
|
1937
|
+
for (var _i = 0; _i < value.length; _i++)
|
|
1938
|
+
isProcessableValue(value[_i]) && (string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";");
|
|
1939
|
+
else {
|
|
1940
|
+
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
1941
|
+
switch (key) {
|
|
1942
|
+
case "animation":
|
|
1943
|
+
case "animationName": {
|
|
1944
|
+
string += processStyleName(key) + ":" + interpolated + ";";
|
|
1945
|
+
break;
|
|
1946
|
+
}
|
|
1947
|
+
default:
|
|
1948
|
+
string += key + "{" + interpolated + "}";
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
return string;
|
|
1954
|
+
}
|
|
1955
|
+
var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g, cursor;
|
|
1956
|
+
function serializeStyles(args, registered, mergedProps) {
|
|
1957
|
+
if (args.length === 1 && typeof args[0] == "object" && args[0] !== null && args[0].styles !== void 0)
|
|
1958
|
+
return args[0];
|
|
1959
|
+
var stringMode = !0, styles2 = "";
|
|
1960
|
+
cursor = void 0;
|
|
1961
|
+
var strings = args[0];
|
|
1962
|
+
if (strings == null || strings.raw === void 0)
|
|
1963
|
+
stringMode = !1, styles2 += handleInterpolation(mergedProps, registered, strings);
|
|
1964
|
+
else {
|
|
1965
|
+
var asTemplateStringsArr = strings;
|
|
1966
|
+
styles2 += asTemplateStringsArr[0];
|
|
1967
|
+
}
|
|
1968
|
+
for (var i = 1; i < args.length; i++)
|
|
1969
|
+
if (styles2 += handleInterpolation(mergedProps, registered, args[i]), stringMode) {
|
|
1970
|
+
var templateStringsArr = strings;
|
|
1971
|
+
styles2 += templateStringsArr[i];
|
|
1972
|
+
}
|
|
1973
|
+
labelPattern.lastIndex = 0;
|
|
1974
|
+
for (var identifierName = "", match2; (match2 = labelPattern.exec(styles2)) !== null; )
|
|
1975
|
+
identifierName += "-" + match2[1];
|
|
1976
|
+
var name = murmur2(styles2) + identifierName;
|
|
1977
|
+
return {
|
|
1978
|
+
name,
|
|
1979
|
+
styles: styles2,
|
|
1980
|
+
next: cursor
|
|
1981
|
+
};
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
// ../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
|
|
1985
|
+
import * as React from "react";
|
|
1986
|
+
var syncFallback = function(create) {
|
|
1987
|
+
return create();
|
|
1988
|
+
}, useInsertionEffect2 = React.useInsertionEffect ? React.useInsertionEffect : !1, useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback, useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React.useLayoutEffect;
|
|
1989
|
+
|
|
1990
|
+
// ../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js
|
|
1991
|
+
var isDevelopment3 = !1, EmotionCacheContext = React2.createContext(
|
|
1992
|
+
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1993
|
+
// because this module is primarily intended for the browser and node
|
|
1994
|
+
// but it's also required in react native and similar environments sometimes
|
|
1995
|
+
// and we could have a special build just for that
|
|
1996
|
+
// but this is much easier and the native packages
|
|
1997
|
+
// might use a different theme context in the future anyway
|
|
1998
|
+
typeof HTMLElement < "u" ? createCache({
|
|
1999
|
+
key: "css"
|
|
2000
|
+
}) : null
|
|
2001
|
+
), CacheProvider = EmotionCacheContext.Provider;
|
|
2002
|
+
var withEmotionCache = function(func) {
|
|
2003
|
+
return forwardRef2(function(props, ref) {
|
|
2004
|
+
var cache = useContext2(EmotionCacheContext);
|
|
2005
|
+
return func(props, cache, ref);
|
|
2006
|
+
});
|
|
2007
|
+
}, ThemeContext = React2.createContext({}), useTheme = function() {
|
|
2008
|
+
return React2.useContext(ThemeContext);
|
|
2009
|
+
}, getTheme = function(outerTheme, theme2) {
|
|
2010
|
+
if (typeof theme2 == "function") {
|
|
2011
|
+
var mergedTheme = theme2(outerTheme);
|
|
2012
|
+
return mergedTheme;
|
|
2013
|
+
}
|
|
2014
|
+
return _extends({}, outerTheme, theme2);
|
|
2015
|
+
}, createCacheWithTheme = weakMemoize(function(outerTheme) {
|
|
2016
|
+
return weakMemoize(function(theme2) {
|
|
2017
|
+
return getTheme(outerTheme, theme2);
|
|
2018
|
+
});
|
|
2019
|
+
}), ThemeProvider = function(props) {
|
|
2020
|
+
var theme2 = React2.useContext(ThemeContext);
|
|
2021
|
+
return props.theme !== theme2 && (theme2 = createCacheWithTheme(theme2)(props.theme)), React2.createElement(ThemeContext.Provider, {
|
|
2022
|
+
value: theme2
|
|
2023
|
+
}, props.children);
|
|
2024
|
+
};
|
|
2025
|
+
function withTheme(Component) {
|
|
2026
|
+
var componentName = Component.displayName || Component.name || "Component", WithTheme = React2.forwardRef(function(props, ref) {
|
|
2027
|
+
var theme2 = React2.useContext(ThemeContext);
|
|
2028
|
+
return React2.createElement(Component, _extends({
|
|
2029
|
+
theme: theme2,
|
|
2030
|
+
ref
|
|
2031
|
+
}, props));
|
|
2032
|
+
});
|
|
2033
|
+
return WithTheme.displayName = "WithTheme(" + componentName + ")", hoistNonReactStatics(WithTheme, Component);
|
|
2034
|
+
}
|
|
2035
|
+
var hasOwn = {}.hasOwnProperty, typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", createEmotionProps = function(type, props) {
|
|
2036
|
+
var newProps = {};
|
|
2037
|
+
for (var _key in props)
|
|
2038
|
+
hasOwn.call(props, _key) && (newProps[_key] = props[_key]);
|
|
2039
|
+
return newProps[typePropName] = type, newProps;
|
|
2040
|
+
}, Insertion = function(_ref) {
|
|
2041
|
+
var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
|
|
2042
|
+
return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
2043
|
+
return insertStyles(cache, serialized, isStringTag);
|
|
2044
|
+
}), null;
|
|
2045
|
+
}, Emotion = withEmotionCache(function(props, cache, ref) {
|
|
2046
|
+
var cssProp = props.css;
|
|
2047
|
+
typeof cssProp == "string" && cache.registered[cssProp] !== void 0 && (cssProp = cache.registered[cssProp]);
|
|
2048
|
+
var WrappedComponent = props[typePropName], registeredStyles = [cssProp], className = "";
|
|
2049
|
+
typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, registeredStyles, props.className) : props.className != null && (className = props.className + " ");
|
|
2050
|
+
var serialized = serializeStyles(registeredStyles, void 0, React2.useContext(ThemeContext));
|
|
2051
|
+
className += cache.key + "-" + serialized.name;
|
|
2052
|
+
var newProps = {};
|
|
2053
|
+
for (var _key2 in props)
|
|
2054
|
+
hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && !isDevelopment3 && (newProps[_key2] = props[_key2]);
|
|
2055
|
+
return newProps.className = className, ref && (newProps.ref = ref), React2.createElement(React2.Fragment, null, React2.createElement(Insertion, {
|
|
2056
|
+
cache,
|
|
2057
|
+
serialized,
|
|
2058
|
+
isStringTag: typeof WrappedComponent == "string"
|
|
2059
|
+
}), React2.createElement(WrappedComponent, newProps));
|
|
2060
|
+
}), Emotion$1 = Emotion;
|
|
2061
|
+
|
|
2062
|
+
// ../../node_modules/@emotion/react/dist/emotion-react.browser.esm.js
|
|
2063
|
+
import * as React3 from "react";
|
|
2064
|
+
var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs()), jsx = function(type, props) {
|
|
2065
|
+
var args = arguments;
|
|
2066
|
+
if (props == null || !hasOwn.call(props, "css"))
|
|
2067
|
+
return React3.createElement.apply(void 0, args);
|
|
2068
|
+
var argsLength = args.length, createElementArgArray = new Array(argsLength);
|
|
2069
|
+
createElementArgArray[0] = Emotion$1, createElementArgArray[1] = createEmotionProps(type, props);
|
|
2070
|
+
for (var i = 2; i < argsLength; i++)
|
|
2071
|
+
createElementArgArray[i] = args[i];
|
|
2072
|
+
return React3.createElement.apply(null, createElementArgArray);
|
|
2073
|
+
};
|
|
2074
|
+
(function(_jsx) {
|
|
2075
|
+
var JSX;
|
|
2076
|
+
JSX || (JSX = _jsx.JSX || (_jsx.JSX = {}));
|
|
2077
|
+
})(jsx || (jsx = {}));
|
|
2078
|
+
var Global = withEmotionCache(function(props, cache) {
|
|
2079
|
+
var styles2 = props.styles, serialized = serializeStyles([styles2], void 0, React3.useContext(ThemeContext)), sheetRef = React3.useRef();
|
|
2080
|
+
return useInsertionEffectWithLayoutFallback(function() {
|
|
2081
|
+
var key = cache.key + "-global", sheet = new cache.sheet.constructor({
|
|
2082
|
+
key,
|
|
2083
|
+
nonce: cache.sheet.nonce,
|
|
2084
|
+
container: cache.sheet.container,
|
|
2085
|
+
speedy: cache.sheet.isSpeedy
|
|
2086
|
+
}), rehydrating = !1, node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
|
|
2087
|
+
return cache.sheet.tags.length && (sheet.before = cache.sheet.tags[0]), node2 !== null && (rehydrating = !0, node2.setAttribute("data-emotion", key), sheet.hydrate([node2])), sheetRef.current = [sheet, rehydrating], function() {
|
|
2088
|
+
sheet.flush();
|
|
2089
|
+
};
|
|
2090
|
+
}, [cache]), useInsertionEffectWithLayoutFallback(function() {
|
|
2091
|
+
var sheetRefCurrent = sheetRef.current, sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
|
|
2092
|
+
if (rehydrating) {
|
|
2093
|
+
sheetRefCurrent[1] = !1;
|
|
2094
|
+
return;
|
|
2095
|
+
}
|
|
2096
|
+
if (serialized.next !== void 0 && insertStyles(cache, serialized.next, !0), sheet.tags.length) {
|
|
2097
|
+
var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
|
|
2098
|
+
sheet.before = element, sheet.flush();
|
|
2099
|
+
}
|
|
2100
|
+
cache.insert("", serialized, sheet, !1);
|
|
2101
|
+
}, [cache, serialized.name]), null;
|
|
2102
|
+
});
|
|
2103
|
+
var classnames = function classnames2(args) {
|
|
2104
|
+
for (var len = args.length, i = 0, cls = ""; i < len; i++) {
|
|
2105
|
+
var arg = args[i];
|
|
2106
|
+
if (arg != null) {
|
|
2107
|
+
var toAdd = void 0;
|
|
2108
|
+
switch (typeof arg) {
|
|
2109
|
+
case "boolean":
|
|
2110
|
+
break;
|
|
2111
|
+
case "object": {
|
|
2112
|
+
if (Array.isArray(arg))
|
|
2113
|
+
toAdd = classnames2(arg);
|
|
2114
|
+
else {
|
|
2115
|
+
toAdd = "";
|
|
2116
|
+
for (var k in arg)
|
|
2117
|
+
arg[k] && k && (toAdd && (toAdd += " "), toAdd += k);
|
|
2118
|
+
}
|
|
2119
|
+
break;
|
|
2120
|
+
}
|
|
2121
|
+
default:
|
|
2122
|
+
toAdd = arg;
|
|
2123
|
+
}
|
|
2124
|
+
toAdd && (cls && (cls += " "), cls += toAdd);
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
return cls;
|
|
2128
|
+
};
|
|
2129
|
+
function merge(registered, css2, className) {
|
|
2130
|
+
var registeredStyles = [], rawClassName = getRegisteredStyles(registered, registeredStyles, className);
|
|
2131
|
+
return registeredStyles.length < 2 ? className : rawClassName + css2(registeredStyles);
|
|
2132
|
+
}
|
|
2133
|
+
var Insertion3 = function(_ref) {
|
|
2134
|
+
var cache = _ref.cache, serializedArr = _ref.serializedArr;
|
|
2135
|
+
return useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
2136
|
+
for (var i = 0; i < serializedArr.length; i++)
|
|
2137
|
+
insertStyles(cache, serializedArr[i], !1);
|
|
2138
|
+
}), null;
|
|
2139
|
+
}, ClassNames = withEmotionCache(function(props, cache) {
|
|
2140
|
+
var hasRendered = !1, serializedArr = [], css2 = function() {
|
|
2141
|
+
if (hasRendered && isDevelopment3)
|
|
2142
|
+
throw new Error("css can only be used during render");
|
|
2143
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
|
2144
|
+
args[_key] = arguments[_key];
|
|
2145
|
+
var serialized = serializeStyles(args, cache.registered);
|
|
2146
|
+
return serializedArr.push(serialized), registerStyles(cache, serialized, !1), cache.key + "-" + serialized.name;
|
|
2147
|
+
}, cx = function() {
|
|
2148
|
+
if (hasRendered && isDevelopment3)
|
|
2149
|
+
throw new Error("cx can only be used during render");
|
|
2150
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)
|
|
2151
|
+
args[_key2] = arguments[_key2];
|
|
2152
|
+
return merge(cache.registered, css2, classnames(args));
|
|
2153
|
+
}, content = {
|
|
2154
|
+
css: css2,
|
|
2155
|
+
cx,
|
|
2156
|
+
theme: React3.useContext(ThemeContext)
|
|
2157
|
+
}, ele = props.children(content);
|
|
2158
|
+
return hasRendered = !0, React3.createElement(React3.Fragment, null, React3.createElement(Insertion3, {
|
|
2159
|
+
cache,
|
|
2160
|
+
serializedArr
|
|
2161
|
+
}), ele);
|
|
2162
|
+
});
|
|
2163
|
+
|
|
2164
|
+
// ../../node_modules/@emotion/primitives-core/dist/emotion-primitives-core.esm.js
|
|
2165
|
+
function interleave(vals) {
|
|
2166
|
+
for (var strings = vals[0], finalArray = [strings[0]], i = 1, len = vals.length; i < len; i++)
|
|
2167
|
+
finalArray.push(vals[i]), strings[i] !== void 0 && finalArray.push(strings[i]);
|
|
2168
|
+
return finalArray;
|
|
2169
|
+
}
|
|
2170
|
+
var styles, generated = {}, buffer = "", lastType;
|
|
2171
|
+
function handleInterpolation2(interpolation, i, arr) {
|
|
2172
|
+
var type = typeof interpolation;
|
|
2173
|
+
if (type === "string" && (interpolation = interpolation.replace(/\/\*[\s\S]*?\*\/|\/\/.*$/gm, "")), type === "function") {
|
|
2174
|
+
this === void 0 || handleInterpolation2.call(this, interpolation(this), i, arr);
|
|
2175
|
+
return;
|
|
2176
|
+
}
|
|
2177
|
+
var isIrrelevant = interpolation == null || type === "boolean", isRnStyle = type === "object" && !Array.isArray(interpolation) || type === "number";
|
|
2178
|
+
if (lastType === "string" && (isRnStyle || isIrrelevant)) {
|
|
2179
|
+
var converted = convertStyles(buffer);
|
|
2180
|
+
converted !== void 0 && styles.push(converted), buffer = "";
|
|
2181
|
+
}
|
|
2182
|
+
if (!isIrrelevant) {
|
|
2183
|
+
if (type === "string" && (buffer += interpolation, arr.length - 1 === i)) {
|
|
2184
|
+
var _converted = convertStyles(buffer);
|
|
2185
|
+
_converted !== void 0 && styles.push(_converted), buffer = "";
|
|
2186
|
+
}
|
|
2187
|
+
isRnStyle && styles.push(interpolation), Array.isArray(interpolation) && interpolation.forEach(handleInterpolation2, this), lastType = type;
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
function createCss(StyleSheet4) {
|
|
2191
|
+
return function() {
|
|
2192
|
+
var prevBuffer = buffer, vals;
|
|
2193
|
+
styles = [], buffer = "", lastType = void 0;
|
|
2194
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
|
2195
|
+
args[_key] = arguments[_key];
|
|
2196
|
+
args[0] == null || args[0].raw === void 0 ? vals = args : vals = interleave(args);
|
|
2197
|
+
try {
|
|
2198
|
+
vals.forEach(handleInterpolation2, this);
|
|
2199
|
+
} finally {
|
|
2200
|
+
buffer = prevBuffer;
|
|
2201
|
+
}
|
|
2202
|
+
var hash2 = JSON.stringify(styles);
|
|
2203
|
+
if (!generated[hash2]) {
|
|
2204
|
+
var styleSheet = StyleSheet4.create({
|
|
2205
|
+
generated: StyleSheet4.flatten(styles)
|
|
2206
|
+
});
|
|
2207
|
+
generated[hash2] = styleSheet.generated;
|
|
2208
|
+
}
|
|
2209
|
+
return generated[hash2];
|
|
2210
|
+
};
|
|
2211
|
+
}
|
|
2212
|
+
var propertyValuePattern = /\s*([^\s]+)\s*:\s*(.+?)\s*$/;
|
|
2213
|
+
function convertPropertyValue(style) {
|
|
2214
|
+
var match2 = propertyValuePattern.exec(style);
|
|
2215
|
+
match2 !== null && match2[2] !== " " && (match2.shift(), this.push(match2));
|
|
2216
|
+
}
|
|
2217
|
+
function convertStyles(str) {
|
|
2218
|
+
if (str.trim() !== "") {
|
|
2219
|
+
var stylePairs = [], parsedString = str.split(";");
|
|
2220
|
+
parsedString.forEach(convertPropertyValue, stylePairs);
|
|
2221
|
+
try {
|
|
2222
|
+
return (0, import_css_to_react_native.default)(stylePairs);
|
|
2223
|
+
} catch (error) {
|
|
2224
|
+
var msg = error?.message;
|
|
2225
|
+
if (msg && msg.includes("Failed to parse declaration")) {
|
|
2226
|
+
var values = msg.replace("Failed to parse declaration ", "").replace(/"/g, "").trim().split(":"), errorMsg = "'" + values[0] + "' shorthand property requires units for example - " + values[0] + ": 20px or " + values[0] + ": 10px 20px 40px 50px";
|
|
2227
|
+
console.error(errorMsg);
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
var testOmitPropsOnComponent = function(prop) {
|
|
2233
|
+
return prop !== "theme" && prop !== "as";
|
|
2234
|
+
};
|
|
2235
|
+
function createStyled(StyleSheet4, options) {
|
|
2236
|
+
var _options$getShouldFor, getShouldForwardProp = (_options$getShouldFor = options?.getShouldForwardProp) != null ? _options$getShouldFor : function() {
|
|
2237
|
+
return testOmitPropsOnComponent;
|
|
2238
|
+
}, css2 = createCss(StyleSheet4);
|
|
2239
|
+
return function createEmotion(component, options2) {
|
|
2240
|
+
var shouldForwardProp = options2 && options2.shouldForwardProp ? options2.shouldForwardProp : void 0, defaultShouldForwardProp = shouldForwardProp || getShouldForwardProp(component), shouldUseAs = !defaultShouldForwardProp("as");
|
|
2241
|
+
return function() {
|
|
2242
|
+
for (var styles2, _len = arguments.length, rawStyles = new Array(_len), _key = 0; _key < _len; _key++)
|
|
2243
|
+
rawStyles[_key] = arguments[_key];
|
|
2244
|
+
rawStyles[0] == null || rawStyles[0].raw === void 0 ? styles2 = rawStyles : styles2 = interleave(rawStyles);
|
|
2245
|
+
var Styled = React4.forwardRef(function(props, ref) {
|
|
2246
|
+
var finalTag = shouldUseAs && props.as || component, mergedProps = props;
|
|
2247
|
+
if (props.theme == null) {
|
|
2248
|
+
mergedProps = {};
|
|
2249
|
+
for (var key in props)
|
|
2250
|
+
mergedProps[key] = props[key];
|
|
2251
|
+
mergedProps.theme = React4.useContext(ThemeContext);
|
|
2252
|
+
}
|
|
2253
|
+
var finalShouldForwardProp = shouldUseAs && shouldForwardProp === void 0 ? getShouldForwardProp(finalTag) : defaultShouldForwardProp, newProps = {};
|
|
2254
|
+
for (var _key2 in props)
|
|
2255
|
+
shouldUseAs && _key2 === "as" || finalShouldForwardProp(_key2) && (newProps[_key2] = props[_key2]);
|
|
2256
|
+
return newProps.style = [css2.apply(mergedProps, styles2), props.style], ref && (newProps.ref = ref), React4.createElement(finalTag, newProps);
|
|
2257
|
+
});
|
|
2258
|
+
Styled.displayName = "emotion(" + getDisplayName(component) + ")";
|
|
2259
|
+
var withComponent = function(newComponent) {
|
|
2260
|
+
return createEmotion(newComponent).apply(void 0, styles2);
|
|
2261
|
+
}, castedStyled = Styled;
|
|
2262
|
+
return castedStyled.withComponent = withComponent, castedStyled;
|
|
2263
|
+
};
|
|
2264
|
+
};
|
|
2265
|
+
}
|
|
2266
|
+
var getDisplayName = function(primitive) {
|
|
2267
|
+
return typeof primitive == "string" ? primitive : primitive.displayName || primitive.name || "Styled";
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
// ../../node_modules/@emotion/native/dist/emotion-native.esm.js
|
|
2271
|
+
var styled = createStyled(StyleSheet3), css = createCss(reactNative.StyleSheet), components = ["ActivityIndicator", "Button", "DatePickerIOS", "DrawerLayoutAndroid", "FlatList", "Image", "ImageBackground", "KeyboardAvoidingView", "ListView", "Modal", "NavigatorIOS", "Picker", "PickerIOS", "Pressable", "ProgressBarAndroid", "ProgressViewIOS", "RecyclerViewBackedScrollView", "RefreshControl", "SafeAreaView", "ScrollView", "SectionList", "SegmentedControlIOS", "Slider", "SnapshotViewIOS", "StatusBar", "SwipeableListView", "Switch", "SwitchIOS", "TabBarIOS", "Text", "TextInput", "ToolbarAndroid", "TouchableHighlight", "TouchableNativeFeedback", "TouchableOpacity", "TouchableWithoutFeedback", "View", "ViewPagerAndroid"], index = components.reduce(function(acc, comp) {
|
|
2272
|
+
return Object.defineProperty(acc, comp, {
|
|
2273
|
+
enumerable: !0,
|
|
2274
|
+
configurable: !1,
|
|
2275
|
+
get: function() {
|
|
2276
|
+
return styled(reactNative[comp]);
|
|
2277
|
+
}
|
|
2278
|
+
});
|
|
2279
|
+
}, styled);
|
|
2280
|
+
|
|
2281
|
+
// src/react-native-theming/web-theme.ts
|
|
2282
|
+
var color = {
|
|
2283
|
+
// Official color palette
|
|
2284
|
+
primary: "#FF4785",
|
|
2285
|
+
// coral
|
|
2286
|
+
secondary: "#029CFD",
|
|
2287
|
+
// ocean
|
|
2288
|
+
secondaryLighter: "rgba(2, 157, 253, 0.9)",
|
|
2289
|
+
// ocean
|
|
2290
|
+
tertiary: "#FAFBFC",
|
|
2291
|
+
ancillary: "#22a699",
|
|
2292
|
+
// Complimentary
|
|
2293
|
+
orange: "#FC521F",
|
|
2294
|
+
gold: "#FFAE00",
|
|
2295
|
+
green: "#66BF3C",
|
|
2296
|
+
seafoam: "#37D5D3",
|
|
2297
|
+
purple: "#6F2CAC",
|
|
2298
|
+
ultraviolet: "#2A0481",
|
|
2299
|
+
// Monochrome
|
|
2300
|
+
lightest: "#FFFFFF",
|
|
2301
|
+
lighter: "#F7FAFC",
|
|
2302
|
+
light: "#EEF3F6",
|
|
2303
|
+
mediumlight: "#ECF4F9",
|
|
2304
|
+
medium: "#D9E8F2",
|
|
2305
|
+
mediumdark: "#73828C",
|
|
2306
|
+
dark: "#5C6870",
|
|
2307
|
+
darker: "#454E54",
|
|
2308
|
+
darkest: "#2E3438",
|
|
2309
|
+
// For borders
|
|
2310
|
+
border: "hsla(203, 50%, 30%, 0.15)",
|
|
2311
|
+
// Status
|
|
2312
|
+
positive: "#66BF3C",
|
|
2313
|
+
negative: "#FF4400",
|
|
2314
|
+
warning: "#E69D00",
|
|
2315
|
+
critical: "#FFFFFF",
|
|
2316
|
+
// Text
|
|
2317
|
+
defaultText: "#2E3438",
|
|
2318
|
+
inverseText: "#FFFFFF",
|
|
2319
|
+
positiveText: "#448028",
|
|
2320
|
+
negativeText: "#D43900",
|
|
2321
|
+
warningText: "#A15C20"
|
|
2322
|
+
}, background = {
|
|
2323
|
+
app: "#F6F9FC",
|
|
2324
|
+
bar: color.lightest,
|
|
2325
|
+
content: color.lightest,
|
|
2326
|
+
preview: color.lightest,
|
|
2327
|
+
gridCellSize: 10,
|
|
2328
|
+
hoverable: curriedTransparentize$1(0.9, color.secondary),
|
|
2329
|
+
// hover state for items in a list
|
|
2330
|
+
// Notification, error, and warning backgrounds
|
|
2331
|
+
positive: "#E1FFD4",
|
|
2332
|
+
negative: "#FEDED2",
|
|
2333
|
+
warning: "#FFF5CF",
|
|
2334
|
+
critical: "#FF4400"
|
|
2335
|
+
};
|
|
2336
|
+
var light = {
|
|
2337
|
+
base: "light",
|
|
2338
|
+
// Storybook-specific color palette
|
|
2339
|
+
colorPrimary: "#FF4785",
|
|
2340
|
+
// coral
|
|
2341
|
+
colorSecondary: "#029CFD",
|
|
2342
|
+
// ocean
|
|
2343
|
+
// UI
|
|
2344
|
+
appBg: background.app,
|
|
2345
|
+
appContentBg: color.lightest,
|
|
2346
|
+
appPreviewBg: color.lightest,
|
|
2347
|
+
appBorderColor: color.border,
|
|
2348
|
+
appBorderRadius: 4,
|
|
2349
|
+
// Fonts
|
|
2350
|
+
// Text colors
|
|
2351
|
+
textColor: color.darkest,
|
|
2352
|
+
textInverseColor: color.lightest,
|
|
2353
|
+
textMutedColor: color.dark,
|
|
2354
|
+
// Toolbar default and active colors
|
|
2355
|
+
barTextColor: color.mediumdark,
|
|
2356
|
+
barHoverColor: color.secondary,
|
|
2357
|
+
barSelectedColor: color.secondary,
|
|
2358
|
+
barBg: color.lightest,
|
|
2359
|
+
// Form colors
|
|
2360
|
+
buttonBg: background.app,
|
|
2361
|
+
buttonBorder: color.medium,
|
|
2362
|
+
booleanBg: color.mediumlight,
|
|
2363
|
+
booleanSelectedBg: color.lightest,
|
|
2364
|
+
inputBg: color.lightest,
|
|
2365
|
+
inputBorder: color.border,
|
|
2366
|
+
inputTextColor: color.darkest,
|
|
2367
|
+
inputBorderRadius: 4
|
|
2368
|
+
}, dark = {
|
|
2369
|
+
base: "dark",
|
|
2370
|
+
// Storybook-specific color palette
|
|
2371
|
+
colorPrimary: "#FF4785",
|
|
2372
|
+
// coral
|
|
2373
|
+
colorSecondary: "#029CFD",
|
|
2374
|
+
// ocean
|
|
2375
|
+
// UI
|
|
2376
|
+
appBg: "#222425",
|
|
2377
|
+
appContentBg: "#1B1C1D",
|
|
2378
|
+
appPreviewBg: color.lightest,
|
|
2379
|
+
appBorderColor: "rgba(255,255,255,.1)",
|
|
2380
|
+
appBorderRadius: 4,
|
|
2381
|
+
// Text colors
|
|
2382
|
+
textColor: "#C9CDCF",
|
|
2383
|
+
textInverseColor: "#222425",
|
|
2384
|
+
textMutedColor: "#798186",
|
|
2385
|
+
// Toolbar default and active colors
|
|
2386
|
+
barTextColor: color.mediumdark,
|
|
2387
|
+
barHoverColor: color.secondary,
|
|
2388
|
+
barSelectedColor: color.secondary,
|
|
2389
|
+
barBg: "#292C2E",
|
|
2390
|
+
// Form colors
|
|
2391
|
+
buttonBg: "#222425",
|
|
2392
|
+
buttonBorder: "rgba(255,255,255,.1)",
|
|
2393
|
+
booleanBg: "#222425",
|
|
2394
|
+
booleanSelectedBg: "#2E3438",
|
|
2395
|
+
inputBg: "#1B1C1D",
|
|
2396
|
+
inputBorder: "rgba(255,255,255,.1)",
|
|
2397
|
+
inputTextColor: color.lightest,
|
|
2398
|
+
inputBorderRadius: 4
|
|
2399
|
+
};
|
|
2400
|
+
|
|
2401
|
+
// src/react-native-theming/theme.ts
|
|
2402
|
+
var typography = {
|
|
2403
|
+
weight: {
|
|
2404
|
+
regular: "400",
|
|
2405
|
+
bold: "700"
|
|
2406
|
+
},
|
|
2407
|
+
size: {
|
|
2408
|
+
s1: 12,
|
|
2409
|
+
s2: 14,
|
|
2410
|
+
s3: 16,
|
|
2411
|
+
m1: 20,
|
|
2412
|
+
m2: 24,
|
|
2413
|
+
m3: 28,
|
|
2414
|
+
l1: 32,
|
|
2415
|
+
l2: 40,
|
|
2416
|
+
l3: 48,
|
|
2417
|
+
code: 90
|
|
2418
|
+
}
|
|
2419
|
+
}, theme = {
|
|
2420
|
+
base: "light",
|
|
2421
|
+
textMutedColor: color.dark,
|
|
2422
|
+
color: {
|
|
2423
|
+
primary: light.colorPrimary,
|
|
2424
|
+
secondary: light.colorSecondary,
|
|
2425
|
+
secondaryLighter: color.secondaryLighter,
|
|
2426
|
+
tertiary: color.tertiary,
|
|
2427
|
+
ancillary: color.ancillary,
|
|
2428
|
+
// Complimentary
|
|
2429
|
+
orange: color.orange,
|
|
2430
|
+
gold: color.gold,
|
|
2431
|
+
green: color.green,
|
|
2432
|
+
seafoam: color.seafoam,
|
|
2433
|
+
purple: color.purple,
|
|
2434
|
+
ultraviolet: color.ultraviolet,
|
|
2435
|
+
// Monochrome
|
|
2436
|
+
lightest: color.lightest,
|
|
2437
|
+
lighter: color.lighter,
|
|
2438
|
+
light: color.light,
|
|
2439
|
+
mediumlight: color.mediumlight,
|
|
2440
|
+
medium: color.medium,
|
|
2441
|
+
mediumdark: color.mediumdark,
|
|
2442
|
+
dark: color.dark,
|
|
2443
|
+
darker: color.darker,
|
|
2444
|
+
darkest: color.darkest,
|
|
2445
|
+
// For borders
|
|
2446
|
+
border: color.border,
|
|
2447
|
+
// Status
|
|
2448
|
+
positive: color.positive,
|
|
2449
|
+
negative: color.negative,
|
|
2450
|
+
warning: color.warning,
|
|
2451
|
+
critical: color.critical,
|
|
2452
|
+
defaultText: light.textColor || color.darkest,
|
|
2453
|
+
inverseText: light.textInverseColor || color.lightest,
|
|
2454
|
+
positiveText: color.positiveText,
|
|
2455
|
+
negativeText: color.negativeText,
|
|
2456
|
+
warningText: color.warningText
|
|
2457
|
+
},
|
|
2458
|
+
background: {
|
|
2459
|
+
app: light.appBg,
|
|
2460
|
+
bar: light.barBg,
|
|
2461
|
+
content: light.appContentBg,
|
|
2462
|
+
preview: light.appPreviewBg,
|
|
2463
|
+
gridCellSize: light.gridCellSize || background.gridCellSize,
|
|
2464
|
+
hoverable: background.hoverable,
|
|
2465
|
+
positive: background.positive,
|
|
2466
|
+
negative: background.negative,
|
|
2467
|
+
warning: background.warning,
|
|
2468
|
+
critical: background.critical
|
|
2469
|
+
},
|
|
2470
|
+
typography: {
|
|
2471
|
+
weight: typography.weight,
|
|
2472
|
+
size: typography.size
|
|
2473
|
+
},
|
|
2474
|
+
input: {
|
|
2475
|
+
background: light.inputBg,
|
|
2476
|
+
border: light.inputBorder,
|
|
2477
|
+
borderRadius: light.inputBorderRadius,
|
|
2478
|
+
color: light.inputTextColor,
|
|
2479
|
+
paddingHorizontal: 10,
|
|
2480
|
+
paddingVertical: 6
|
|
2481
|
+
},
|
|
2482
|
+
button: {
|
|
2483
|
+
background: light.buttonBg || light.inputBg,
|
|
2484
|
+
border: light.buttonBorder || light.inputBorder
|
|
2485
|
+
},
|
|
2486
|
+
boolean: {
|
|
2487
|
+
background: light.booleanBg || light.inputBorder,
|
|
2488
|
+
selectedBackground: light.booleanSelectedBg || light.inputBg
|
|
2489
|
+
},
|
|
2490
|
+
// UI
|
|
2491
|
+
layoutMargin: 10,
|
|
2492
|
+
appBorderColor: light.appBorderColor,
|
|
2493
|
+
appBorderRadius: light.appBorderRadius,
|
|
2494
|
+
// Toolbar default/active colors
|
|
2495
|
+
barTextColor: light.barTextColor,
|
|
2496
|
+
barHoverColor: light.barHoverColor || light.colorSecondary,
|
|
2497
|
+
barSelectedColor: light.barSelectedColor || light.colorSecondary,
|
|
2498
|
+
barBg: light.barBg,
|
|
2499
|
+
// Brand logo/text
|
|
2500
|
+
brand: void 0
|
|
2501
|
+
}, darkTheme = {
|
|
2502
|
+
base: "dark",
|
|
2503
|
+
textMutedColor: "#798186",
|
|
2504
|
+
color: {
|
|
2505
|
+
primary: dark.colorPrimary,
|
|
2506
|
+
secondary: dark.colorSecondary,
|
|
2507
|
+
secondaryLighter: color.secondaryLighter,
|
|
2508
|
+
tertiary: color.tertiary,
|
|
2509
|
+
ancillary: color.ancillary,
|
|
2510
|
+
// Complimentary
|
|
2511
|
+
orange: color.orange,
|
|
2512
|
+
gold: color.gold,
|
|
2513
|
+
green: color.green,
|
|
2514
|
+
seafoam: color.seafoam,
|
|
2515
|
+
purple: color.purple,
|
|
2516
|
+
ultraviolet: color.ultraviolet,
|
|
2517
|
+
// Monochrome
|
|
2518
|
+
lightest: color.lightest,
|
|
2519
|
+
lighter: color.lighter,
|
|
2520
|
+
light: color.light,
|
|
2521
|
+
mediumlight: color.mediumlight,
|
|
2522
|
+
medium: color.medium,
|
|
2523
|
+
mediumdark: color.mediumdark,
|
|
2524
|
+
dark: color.dark,
|
|
2525
|
+
darker: color.darker,
|
|
2526
|
+
darkest: color.darkest,
|
|
2527
|
+
// For borders
|
|
2528
|
+
border: color.border,
|
|
2529
|
+
// Status
|
|
2530
|
+
positive: color.positive,
|
|
2531
|
+
negative: color.negative,
|
|
2532
|
+
warning: color.warning,
|
|
2533
|
+
critical: color.critical,
|
|
2534
|
+
defaultText: dark.textColor || color.darkest,
|
|
2535
|
+
inverseText: dark.textInverseColor || color.lightest,
|
|
2536
|
+
positiveText: color.positiveText,
|
|
2537
|
+
negativeText: color.negativeText,
|
|
2538
|
+
warningText: color.warningText
|
|
2539
|
+
},
|
|
2540
|
+
background: {
|
|
2541
|
+
app: dark.appBg,
|
|
2542
|
+
bar: dark.barBg,
|
|
2543
|
+
content: dark.appContentBg,
|
|
2544
|
+
preview: dark.appPreviewBg,
|
|
2545
|
+
gridCellSize: dark.gridCellSize || background.gridCellSize,
|
|
2546
|
+
hoverable: background.hoverable,
|
|
2547
|
+
positive: background.positive,
|
|
2548
|
+
negative: background.negative,
|
|
2549
|
+
warning: background.warning,
|
|
2550
|
+
critical: background.critical
|
|
2551
|
+
},
|
|
2552
|
+
typography: {
|
|
2553
|
+
weight: typography.weight,
|
|
2554
|
+
size: typography.size
|
|
2555
|
+
},
|
|
2556
|
+
input: {
|
|
2557
|
+
background: dark.inputBg,
|
|
2558
|
+
border: dark.inputBorder,
|
|
2559
|
+
borderRadius: dark.inputBorderRadius,
|
|
2560
|
+
color: dark.inputTextColor,
|
|
2561
|
+
paddingHorizontal: 10,
|
|
2562
|
+
paddingVertical: 6
|
|
2563
|
+
},
|
|
2564
|
+
button: {
|
|
2565
|
+
background: dark.buttonBg || dark.inputBg,
|
|
2566
|
+
border: dark.buttonBorder || dark.inputBorder
|
|
2567
|
+
},
|
|
2568
|
+
boolean: {
|
|
2569
|
+
background: dark.booleanBg || dark.inputBorder,
|
|
2570
|
+
selectedBackground: dark.booleanSelectedBg || dark.inputBg
|
|
2571
|
+
},
|
|
2572
|
+
// UI
|
|
2573
|
+
layoutMargin: 10,
|
|
2574
|
+
appBorderColor: dark.appBorderColor,
|
|
2575
|
+
appBorderRadius: dark.appBorderRadius,
|
|
2576
|
+
// Toolbar default/active colors
|
|
2577
|
+
barTextColor: dark.barTextColor,
|
|
2578
|
+
barHoverColor: dark.barHoverColor || dark.colorSecondary,
|
|
2579
|
+
barSelectedColor: dark.barSelectedColor || dark.colorSecondary,
|
|
2580
|
+
barBg: dark.barBg,
|
|
2581
|
+
// Brand logo/text
|
|
2582
|
+
brand: void 0
|
|
2583
|
+
};
|
|
2584
|
+
export {
|
|
2585
|
+
ThemeProvider,
|
|
2586
|
+
darkTheme,
|
|
2587
|
+
index as styled,
|
|
2588
|
+
theme,
|
|
2589
|
+
useTheme,
|
|
2590
|
+
withTheme
|
|
2591
|
+
};
|