@aussieljk/forkbook 0.0.1-11 → 0.0.1-13
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/README.md +1 -1
- package/assets/create/rendererAssets/common/button.css +6 -6
- package/assets/create/rendererAssets/common/header.css +5 -5
- package/assets/create/rendererAssets/common/page.css +10 -10
- package/dist/_browser-chunks/{Color-QLZNXLSV.js → Color-2EUQ6NXV.js} +2 -2
- package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
- package/dist/_browser-chunks/{WithTooltip-GNLRTZDF.js → WithTooltip-QCFTNB6P.js} +5 -4
- package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-6ELMKWKX.js → chunk-2WZWS7GJ.js} +1 -1
- package/dist/_browser-chunks/{chunk-FRAOQJDI.js → chunk-3QPZOXB7.js} +1 -5
- package/dist/_browser-chunks/{chunk-GRO2ZYEJ.js → chunk-4BOJAE7P.js} +12 -8
- package/dist/_browser-chunks/{chunk-ZHKZKFY4.js → chunk-6SL45YM3.js} +9 -13
- package/dist/_browser-chunks/{chunk-DS2WQZGO.js → chunk-BLCZ3C5M.js} +41 -62
- package/dist/_browser-chunks/{chunk-7DQREF4S.js → chunk-DHTLVXAL.js} +37 -44
- package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-DISGPOF4.js} +54 -51
- package/dist/_browser-chunks/{chunk-76222HQR.js → chunk-E6QKKKLO.js} +20 -5
- package/dist/_browser-chunks/{chunk-DYNTDJ3O.js → chunk-EBSOKHFG.js} +8 -2
- package/dist/_browser-chunks/{chunk-3M5T7BW4.js → chunk-ECMVTOVD.js} +1 -1
- package/dist/_browser-chunks/{chunk-EQKMUQF3.js → chunk-ENHFQXYS.js} +5 -4
- package/dist/_browser-chunks/{chunk-KYSD26D6.js → chunk-EW2M3URL.js} +90 -83
- package/dist/_browser-chunks/{chunk-I4ATZPNZ.js → chunk-FCULT3AE.js} +3 -3
- package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
- package/dist/_browser-chunks/{chunk-NGMQJMCY.js → chunk-HZFHNYRC.js} +1 -1
- package/dist/_browser-chunks/{chunk-5H4KFI44.js → chunk-KQJ4T6JL.js} +30 -24
- package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-NK5SGJNG.js} +22 -17
- package/dist/_browser-chunks/{chunk-N3NRW5XX.js → chunk-PQRPDA4U.js} +3 -3
- package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
- package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-QFO2B4X2.js} +31 -28
- package/dist/_browser-chunks/{chunk-TTBPZQ24.js → chunk-S7N7Z5TY.js} +47 -43
- package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
- package/dist/_browser-chunks/{chunk-WBLVFDJT.js → chunk-UH3XTEOQ.js} +716 -658
- package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
- package/dist/_browser-chunks/{chunk-O24AZJZ7.js → chunk-YJO5BK52.js} +7 -3
- package/dist/_browser-chunks/{chunk-3HM3VWJS.js → chunk-ZF37BMDS.js} +6 -2
- package/dist/_browser-chunks/{chunk-QU4RB2WU.js → chunk-ZF5SPY56.js} +4 -4
- package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
- package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-J2AKT5WI.js → attached-runtime-7IRDQUTZ.js} +28 -29
- package/dist/_node-chunks/{builder-manager-Z4RWF4ZH.js → builder-manager-YTALSWKQ.js} +39 -28
- package/dist/_node-chunks/{chunk-2WVLC5M2.js → chunk-26ERGIQH.js} +6 -6
- package/dist/_node-chunks/{chunk-VZG3OKFO.js → chunk-33T4HNF2.js} +6 -6
- package/dist/_node-chunks/{chunk-ZEYODVQT.js → chunk-3F3673RQ.js} +7 -7
- package/dist/_node-chunks/{chunk-Y4W4B3E7.js → chunk-3FLRYZLJ.js} +6 -6
- package/dist/_node-chunks/{chunk-AVL7GUOZ.js → chunk-3L2QRDKH.js} +522 -1045
- package/dist/_node-chunks/{chunk-XO54HM4P.js → chunk-3NH7IHUS.js} +6 -6
- package/dist/_node-chunks/{chunk-GMKLTDKN.js → chunk-3ZAENV5A.js} +6 -6
- package/dist/_node-chunks/{chunk-3IIQSDCO.js → chunk-4B52HLKK.js} +53 -55
- package/dist/_node-chunks/chunk-4CZJ4SFH.js +281 -0
- package/dist/_node-chunks/{chunk-BBU2FUPC.js → chunk-4IIWFG7O.js} +13 -11
- package/dist/_node-chunks/{chunk-2U5J7YTA.js → chunk-4YWZLOAF.js} +6 -6
- package/dist/_node-chunks/{chunk-XVOIYGTJ.js → chunk-5A5XOSRM.js} +6 -6
- package/dist/_node-chunks/chunk-5T6Q7HT3.js +11 -0
- package/dist/_node-chunks/{chunk-MI7WBXWX.js → chunk-6DRDJF2Q.js} +6 -6
- package/dist/_node-chunks/{chunk-WBCKO5LP.js → chunk-6JSZY5TJ.js} +6 -6
- package/dist/_node-chunks/{chunk-3EBGFRAH.js → chunk-7SPDKMDQ.js} +32 -40
- package/dist/_node-chunks/{chunk-IRPQQARO.js → chunk-7YLKDHLZ.js} +7 -7
- package/dist/_node-chunks/{chunk-BSQB5B57.js → chunk-7YQIVUEK.js} +6 -6
- package/dist/_node-chunks/{chunk-PYVGF5F2.js → chunk-ADCQYK3Z.js} +6 -6
- package/dist/_node-chunks/{chunk-7YQTID2W.js → chunk-ALHQVE5R.js} +6 -6
- package/dist/_node-chunks/{chunk-MW4OAPPD.js → chunk-B4XAZ2OC.js} +8 -8
- package/dist/_node-chunks/{chunk-GGCOG7OV.js → chunk-BFQJF3ID.js} +283 -306
- package/dist/_node-chunks/{chunk-5GOXN5M4.js → chunk-BSXI35KM.js} +7 -7
- package/dist/_node-chunks/{chunk-TAMTPVYZ.js → chunk-BZQF5KUE.js} +7 -7
- package/dist/_node-chunks/{chunk-5JLVSH44.js → chunk-CEIESR4U.js} +8 -8
- package/dist/_node-chunks/{chunk-OJWUUSA4.js → chunk-CESXIP3N.js} +6 -6
- package/dist/_node-chunks/{chunk-CEYSYQLV.js → chunk-DAEUTT3I.js} +6 -6
- package/dist/_node-chunks/{chunk-FB2BOL6I.js → chunk-DIC4T2UO.js} +6 -6
- package/dist/_node-chunks/{chunk-LKITAODU.js → chunk-DPOWAA4P.js} +37 -31
- package/dist/_node-chunks/{chunk-W3KFVTWV.js → chunk-DTNEHO4J.js} +10 -10
- package/dist/_node-chunks/{chunk-C5OFHB3N.js → chunk-DY7F7B6V.js} +7 -7
- package/dist/_node-chunks/{chunk-FUG5LYKS.js → chunk-E56UKDJR.js} +8 -8
- package/dist/_node-chunks/{chunk-A7GEBS3Q.js → chunk-EFX2VA4Q.js} +6 -6
- package/dist/_node-chunks/{chunk-PQTEFQIJ.js → chunk-EM6AYELK.js} +10 -12
- package/dist/_node-chunks/{chunk-32FLWHUC.js → chunk-F2AFT3P7.js} +497 -475
- package/dist/_node-chunks/{chunk-OXT6T4AS.js → chunk-GC7NA2Y7.js} +7 -7
- package/dist/_node-chunks/{chunk-55S3GGGC.js → chunk-GIKCT5KG.js} +7 -7
- package/dist/_node-chunks/{chunk-PXOD36TR.js → chunk-GLNHSUKT.js} +20 -20
- package/dist/_node-chunks/{chunk-BKND5XP2.js → chunk-GQZZQB4K.js} +7 -7
- package/dist/_node-chunks/{chunk-GTXZNA2L.js → chunk-GRN6WQC3.js} +10 -10
- package/dist/_node-chunks/{chunk-6UASHVMR.js → chunk-HCMHVV7N.js} +8 -8
- package/dist/_node-chunks/{chunk-IVAOJWPF.js → chunk-HJVZQS65.js} +7 -7
- package/dist/_node-chunks/{chunk-ER3X3AQ7.js → chunk-I26RGEVQ.js} +7 -7
- package/dist/_node-chunks/{chunk-LAIED5XU.js → chunk-I36FPWMO.js} +6 -6
- package/dist/_node-chunks/{chunk-W7HY3ELZ.js → chunk-IDPQ3CVN.js} +474 -479
- package/dist/_node-chunks/{chunk-36LPBTLF.js → chunk-JUVUVVHI.js} +6 -6
- package/dist/_node-chunks/{chunk-DGWKJQ6G.js → chunk-K6TEIAKH.js} +62 -7
- package/dist/_node-chunks/{chunk-7IOSIYW2.js → chunk-KEXQ3BON.js} +7 -7
- package/dist/_node-chunks/{chunk-NLNAIU4I.js → chunk-KUZSE7ZD.js} +9 -9
- package/dist/_node-chunks/chunk-LJ5JRR5Q.js +18 -0
- package/dist/_node-chunks/{chunk-YBG7HVP7.js → chunk-LMGI47HP.js} +8 -8
- package/dist/_node-chunks/{chunk-6E34W4UX.js → chunk-LPIPPSMS.js} +6 -6
- package/dist/_node-chunks/{chunk-XICRXTTE.js → chunk-LR4W5G37.js} +6 -6
- package/dist/_node-chunks/{chunk-VKRGTLQJ.js → chunk-M4MRBEJI.js} +27 -23
- package/dist/_node-chunks/{chunk-REIDJUVJ.js → chunk-M7BVABR2.js} +20 -16
- package/dist/_node-chunks/{chunk-XCJ2ZIQ4.js → chunk-MK2RPLWT.js} +7 -7
- package/dist/_node-chunks/{chunk-LHNHFYK3.js → chunk-MKSEM5C2.js} +6 -6
- package/dist/_node-chunks/{chunk-RNRGXAFV.js → chunk-MWQIBOUB.js} +6 -6
- package/dist/_node-chunks/{chunk-NFDQT7UW.js → chunk-NAXIA2JI.js} +320 -316
- package/dist/_node-chunks/{chunk-GYFR2JLS.js → chunk-NDVIMCIX.js} +7 -7
- package/dist/_node-chunks/{chunk-D5ADPGA4.js → chunk-NIOVXWQZ.js} +6 -6
- package/dist/_node-chunks/{chunk-54EHKXV7.js → chunk-NRP4FGRT.js} +15 -9
- package/dist/_node-chunks/{chunk-NIQSBBT2.js → chunk-NSNBFXVB.js} +7 -7
- package/dist/_node-chunks/{chunk-Z2ZTDQDY.js → chunk-NTUTJAD4.js} +8 -8
- package/dist/_node-chunks/{chunk-XH5CXH53.js → chunk-O46DZ2KC.js} +8 -8
- package/dist/_node-chunks/{chunk-S3NDLFYL.js → chunk-OH5M2YER.js} +7 -7
- package/dist/_node-chunks/{chunk-FTYDKQCO.js → chunk-OSIENBU6.js} +6 -6
- package/dist/_node-chunks/{chunk-76KKKLEE.js → chunk-OVJZBW54.js} +7 -7
- package/dist/_node-chunks/{chunk-WO4UEQI6.js → chunk-PGIDRLZ5.js} +22 -22
- package/dist/_node-chunks/{chunk-J3SM62J3.js → chunk-PJCSZR4T.js} +8 -8
- package/dist/_node-chunks/{chunk-OPT5A55S.js → chunk-PQXP5FZ2.js} +8 -8
- package/dist/_node-chunks/{chunk-5P4N734V.js → chunk-PU33WSBW.js} +34 -52
- package/dist/_node-chunks/{chunk-APPFF22V.js → chunk-PUBZLLNL.js} +7 -7
- package/dist/_node-chunks/{chunk-ALGQMFMN.js → chunk-QWZZX2HN.js} +6 -6
- package/dist/_node-chunks/{chunk-NLLM4MDK.js → chunk-RMUBUNBY.js} +6 -6
- package/dist/_node-chunks/{chunk-SJXLINHV.js → chunk-S33FEPQ3.js} +6 -6
- package/dist/_node-chunks/{chunk-FEC5PGJO.js → chunk-SHP6447T.js} +7 -7
- package/dist/_node-chunks/{chunk-MBIVTOJK.js → chunk-ST3KB36E.js} +6 -6
- package/dist/_node-chunks/{chunk-AKMPPLT5.js → chunk-SXX75O2D.js} +7 -7
- package/dist/_node-chunks/{chunk-6UAJLEIO.js → chunk-TQ5YAQ4Y.js} +6 -6
- package/dist/_node-chunks/{chunk-R7VDUSKY.js → chunk-TSJ3JCNN.js} +16 -10
- package/dist/_node-chunks/{chunk-TKMXEHM4.js → chunk-UYEX6LW6.js} +7 -7
- package/dist/_node-chunks/{chunk-46Y5H6X5.js → chunk-VJLLEKWR.js} +138 -116
- package/dist/_node-chunks/{chunk-IFAV3CER.js → chunk-WWJKLYU5.js} +10 -10
- package/dist/_node-chunks/{chunk-MXLHIEXC.js → chunk-XC7K4QEX.js} +6 -6
- package/dist/_node-chunks/{chunk-GO3YSBPE.js → chunk-Y64FM6U7.js} +8 -8
- package/dist/_node-chunks/{chunk-T6P2EJD2.js → chunk-YDM7NH4T.js} +6 -6
- package/dist/_node-chunks/{chunk-XSVOMORJ.js → chunk-ZHVOUP6D.js} +6 -6
- package/dist/_node-chunks/dist-CFCU4PZG.js +27 -0
- package/dist/_node-chunks/dist-PFMT5YJK.js +16 -0
- package/dist/_node-chunks/{local-runtime-YDAW5RJV.js → local-runtime-BKID5MBG.js} +19 -20
- package/dist/_node-chunks/{mdx-plugin-XLDET5LV.js → mdx-plugin-7BOUDCZB.js} +13 -13
- package/dist/_node-chunks/{monorepo-NWMAHGOM.js → monorepo-FRHSAJB7.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-4B6IZ7JD.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-7BHSAJP4.js} +11 -11
- package/dist/_node-chunks/optimized-tests-F5LCOTXH.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-PJC4PO6A.js → pattern-copy-play-6TGV6WS4.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-4RININ5C.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-4CWXZ35U.js → rehype-external-links-EE2HT4QP.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-QZ2PWSJH.js → rehype-slug-ZKRW2V6Z.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-ZQR4ER7L.js → relaxed-limits-6Q7VRQC5.js} +11 -11
- package/dist/_node-chunks/{run-U63AXEKZ.js → run-6Y3ZTASZ.js} +23 -21
- package/dist/_node-chunks/{run-BMXB2BW2.js → run-EBHIAT35.js} +18 -18
- package/dist/_node-chunks/{setup-NCUTUBNN.js → setup-6XIF77JT.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-4XHF7XPS.js → vitest.config.4.template-GMQNQ4UW.js} +7 -7
- package/dist/actions/decorator.js +16 -21
- package/dist/actions/index.d.ts +3 -3
- package/dist/actions/index.js +1 -1
- package/dist/addon-a11y/index.js +2 -2
- package/dist/addon-a11y/manager.js +11 -11
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.d.ts +8 -2
- package/dist/addon-a11y/preview.js +2 -2
- package/dist/addon-docs/blocks.d.ts +104 -85
- package/dist/addon-docs/blocks.js +30 -32
- package/dist/addon-docs/index.d.ts +2 -2
- package/dist/addon-docs/index.js +3 -3
- package/dist/addon-docs/manager.js +4 -4
- package/dist/addon-docs/preset.js +12 -12
- package/dist/addon-docs/preview.d.ts +3 -1
- package/dist/addon-docs/preview.js +1 -1
- package/dist/addon-links/index.d.ts +2 -1
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +11 -11
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +16 -16
- package/dist/addon-ondevice-controls/index.js +1 -1
- package/dist/addon-ondevice-controls/register.js +1 -1
- package/dist/addon-pseudo-states/index.js +1 -1
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-pseudo-states/preview.js +1 -1
- package/dist/addon-themes/index.d.ts +6 -5
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +18 -9
- package/dist/addon-vitest/node/coverage-reporter.js +11 -11
- package/dist/addon-vitest/node/vitest.js +34 -34
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +21 -20
- package/dist/addon-vitest/vitest-plugin/global-setup.js +22 -22
- package/dist/addon-vitest/vitest-plugin/index.js +69 -59
- package/dist/babel/index.d.ts +209 -212
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +110 -89
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +8 -8
- package/dist/builder-vite/index.d.ts +1 -1
- package/dist/builder-vite/index.js +18 -18
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +1 -1
- package/dist/channels/index.js +2 -2
- package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
- package/dist/{chunk-Fg1Fm__9.d.ts → chunk-BCG2ui5q.d.ts} +671 -674
- package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
- package/dist/{chunk-CYuvV2sR.d.ts → chunk-BNRZY6Jq.d.ts} +3 -3
- package/dist/{chunk-CNqjcOmK.d.ts → chunk-BV_hETtB.d.ts} +2 -2
- package/dist/chunk-BcYKnZln.d.ts +10 -0
- package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
- package/dist/{chunk-Bpi2tz-6.d.ts → chunk-Bubi-WAs.d.ts} +20 -17
- package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
- package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
- package/dist/{chunk-DROZ9oel.d.ts → chunk-DNCU78oW.d.ts} +110 -9
- package/dist/{chunk-D0NUmzXp.d.ts → chunk-LWwxlbee.d.ts} +4 -4
- package/dist/{chunk-BXLImeLy.d.ts → chunk-u_gGuTrz.d.ts} +23 -8
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +25 -30
- package/dist/cli/skills/content/index.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +3 -3
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.d.ts +20 -21
- package/dist/client-logger/index.js +2 -1
- package/dist/common/index.d.ts +13 -13
- package/dist/common/index.js +34 -35
- package/dist/components/index.d.ts +46 -35
- package/dist/components/index.js +194 -205
- package/dist/core-events/index.d.ts +2 -2
- package/dist/core-server/index.d.ts +15 -10
- package/dist/core-server/index.js +706 -165
- package/dist/core-server/presets/common-manager.js +254 -336
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +83 -275
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/csf-utils.d.ts +1 -1
- package/dist/csf/index.d.ts +3 -3
- package/dist/csf/index.js +40 -43
- package/dist/csf-tools/index.d.ts +52 -44
- package/dist/csf-tools/index.js +13 -13
- package/dist/docs-tools/index.d.ts +332 -16
- package/dist/docs-tools/index.js +3 -3
- package/dist/instrumenter/index.d.ts +5 -5
- package/dist/instrumenter/index.js +25 -15
- package/dist/manager/_manager-chunks/{globals-runtime-DvV_TF3-.js → globals-runtime-B4NRbNSS.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-wjkxyMn0.js → globals-runtime-BC43T1rL.js} +4150 -50
- package/dist/manager/_manager-chunks/{globals-runtime-BSj0mCjE.js → globals-runtime-BgWmCsA7.js} +114 -110
- package/dist/manager/_manager-chunks/{globals-runtime-CA8AuIRT.js → globals-runtime-BnQ7i5wq.js} +232 -228
- package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
- package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
- package/dist/manager/_manager-chunks/{globals-runtime-C5gK7HhH.js → globals-runtime-C59T0h-j.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-CCTA-XPa.js → globals-runtime-CCZrdft6.js} +5 -4
- package/dist/manager/_manager-chunks/{globals-runtime-BY3epqww.js → globals-runtime-CS41oTca.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Bu9eGDTe.js → globals-runtime-Cccwtspx.js} +288 -420
- package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BweHuXkK.js → globals-runtime-DCmvKMN5.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-C92M_Vnq.js → globals-runtime-Ddp2jFET.js} +5 -5
- package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
- package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
- package/dist/manager/_manager-chunks/{globals-runtime-CHjExYMv.js → globals-runtime-UFDJQlo-.js} +741 -540
- package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
- package/dist/manager/_manager-chunks/{globals-runtime-Bj5KDUJi.js → globals-runtime-oRjPg2jY.js} +1 -1
- package/dist/manager/_manager-chunks/runtime-4wMiTjjZ.js +552 -0
- package/dist/manager/_manager-chunks/{runtime--hR2NZFd.js → runtime-AvqHE9rM.js} +112 -109
- package/dist/manager/_manager-chunks/{runtime-EPerAEAs.js → runtime-CZtDJIYj.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-B6NL14pz.js → runtime-D8QxTQiI.js} +6 -6
- package/dist/manager/_manager-chunks/{runtime-BAsOe1C_.js → runtime-DC3oEVlM.js} +49 -49
- package/dist/manager/_manager-chunks/{runtime-CJQZFUUj.js → runtime-DCOIOn4T.js} +46 -56
- package/dist/manager/_manager-chunks/{runtime-DvB1axgp.js → runtime-D_FDSHFG.js} +13 -13
- package/dist/manager/_manager-chunks/{runtime-Dtbhxq5m.js → runtime-Db8fJ2MP.js} +67 -500
- package/dist/manager/_manager-chunks/{runtime-CgRqs_SK.js → runtime-lPbyY_f5.js} +882 -869
- package/dist/manager/_manager-chunks/{runtime-Dem2xJbS.js → runtime-td6oYfU6.js} +739 -554
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +479 -464
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +9 -9
- package/dist/mocking-utils/index.d.ts +5 -3
- package/dist/mocking-utils/index.js +21 -26
- package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
- package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
- package/dist/nextjs-vite/index.d.ts +2 -2
- package/dist/nextjs-vite/index.js +9 -5
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +12 -12
- package/dist/nextjs-vite/preview.d.ts +2 -1
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
- package/dist/nextjs-vite/vite-plugin/index.js +9 -9
- package/dist/nextjs-vite-plugin/index.js +17 -27
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
- package/dist/node-logger/index.d.ts +18 -18
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +14 -11
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-Bcv1hJky.js → runtime-BYRCSYBN.js} +4148 -48
- package/dist/preview/_chunks/{runtime-WapFVPAh.js → runtime-Bvh_rfnQ.js} +2 -37
- package/dist/preview/_chunks/{runtime-BZ4pNS3g.js → runtime-CdZ1yk7m.js} +3 -3
- package/dist/preview/_chunks/{runtime-BhSZ1Mwt.js → runtime-CsO4apr9.js} +38 -42
- package/dist/preview/_chunks/{runtime-BUnOhg9h.js → runtime-D2MPrqbU.js} +2 -2
- package/dist/preview/_chunks/{runtime-BPwAnlRx.js → runtime-DS0s7U3c.js} +1 -1
- package/dist/preview/_chunks/{runtime-BgPhfM5P.js → runtime-U1Ycy25F.js} +736 -428
- package/dist/preview/_chunks/{runtime-BJwGQok8.js → runtime-tyJLgv6h.js} +221 -60
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +3 -3
- package/dist/preview-api/index.js +8 -8
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/entry-preview-argtypes.js +1 -1
- package/dist/react/entry-preview-docs.js +1 -1
- package/dist/react/entry-preview.js +1 -1
- package/dist/react/index.d.ts +5 -7
- package/dist/react/index.js +5 -5
- package/dist/react/preset.js +13 -13
- package/dist/react/preview.js +4 -4
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.d.ts +37 -36
- package/dist/react-native/index.js +38 -38
- package/dist/react-native/metro/node.d.ts +1 -1
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/withForkbook.d.ts +7 -7
- package/dist/react-native/metro/withForkbook.js +16 -16
- package/dist/react-native/preview.js +4 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-native-ui/index.d.ts +8 -7
- package/dist/react-native-ui/index.js +1 -8
- package/dist/react-native-ui-common/index.d.ts +30 -9
- package/dist/react-native-ui-common/index.js +26 -31
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.d.ts +2 -2
- package/dist/router/index.js +4 -2
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +3 -3
- package/dist/shared/open-service/index.js +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +7 -7
- package/dist/telemetry/index.d.ts +38 -274
- package/dist/telemetry/index.js +11 -66
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.js +139 -120
- package/dist/theming/create.d.ts +1 -1
- package/dist/theming/index.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +2 -2
- package/package.json +16 -16
- package/template/nextjs-vite/cli/js/Button.jsx +2 -2
- package/template/nextjs-vite/cli/js/Header.jsx +1 -1
- package/template/nextjs-vite/cli/js/Page.jsx +1 -1
- package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
- package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
- package/template/nextjs-vite/cli/ts/Page.tsx +1 -1
- package/template/react/cli/js/Button.jsx +2 -2
- package/template/react/cli/js/Header.jsx +1 -1
- package/template/react/cli/js/Page.jsx +1 -1
- package/template/react/cli/ts/Button.tsx +2 -2
- package/template/react/cli/ts/Header.tsx +1 -1
- package/template/react/cli/ts/Page.tsx +1 -1
- package/template/react-vite/cli/js/Button.jsx +2 -2
- package/template/react-vite/cli/js/Header.jsx +1 -1
- package/template/react-vite/cli/js/Page.jsx +1 -1
- package/template/react-vite/cli/ts/Button.tsx +2 -2
- package/template/react-vite/cli/ts/Header.tsx +1 -1
- package/template/react-vite/cli/ts/Page.tsx +1 -1
- package/dist/_node-chunks/chunk-2YNXKY72.js +0 -40
- package/dist/_node-chunks/chunk-3NST2GUZ.js +0 -33
- package/dist/_node-chunks/chunk-4D325SMT.js +0 -1359
- package/dist/_node-chunks/chunk-APXRPW7A.js +0 -11
- package/dist/_node-chunks/chunk-QHBQRPDP.js +0 -155
- package/dist/_node-chunks/chunk-SMBAR4G6.js +0 -18
- package/dist/_node-chunks/chunk-SRDKK3SG.js +0 -33
- package/dist/_node-chunks/chunk-V5IMPC3J.js +0 -33
- package/dist/_node-chunks/chunk-YIAUHGY2.js +0 -69
- package/dist/_node-chunks/dist-C5QIQD3G.js +0 -27
- package/dist/_node-chunks/dist-NBRPZCHX.js +0 -16
- package/dist/_node-chunks/optimized-tests-EIPJR7HA.js +0 -22
- package/dist/_node-chunks/postinstallAddon-EOAAURMG.js +0 -20
- package/dist/_node-chunks/session-id-HEW5JUNB.js +0 -23
- package/dist/chunk-BGhyFTJO.d.ts +0 -115
- package/dist/chunk-DaVb55-_.d.ts +0 -124
- package/dist/manager/_manager-chunks/globals-runtime-Bs75QQ_I.js +0 -9987
- package/dist/manager/_manager-chunks/globals-runtime-WZKaeKm9.js +0 -4091
- package/dist/manager/_manager-chunks/runtime-5o_11Jae.js +0 -78
- package/dist/preview/_chunks/runtime-BsMjBzuq.js +0 -53
- package/dist/preview/_chunks/runtime-C1jgT6tJ.js +0 -4091
- package/dist/preview/_chunks/runtime-CkOhMcXf.js +0 -387
|
@@ -0,0 +1,1163 @@
|
|
|
1
|
+
import { a as __toESM, n as __esmMin, t as __commonJSMin } from "./globals-runtime-BdGkqNEt.js";
|
|
2
|
+
import { i as useLatest, n as useComposedRef, r as init_use_latest_esm, t as init_use_composed_ref_esm } from "./globals-runtime-BnQ7i5wq.js";
|
|
3
|
+
import { i as require_react } from "./globals-runtime-nQMRiA0J.js";
|
|
4
|
+
import { l as _objectWithoutPropertiesLoose$1, s as _extends$2 } from "./globals-runtime-DwFqpqya.js";
|
|
5
|
+
import { a as createPath, c as invariant, d as resolveTo, f as stripBasename, i as createMemoryHistory, l as joinPaths, n as Action, o as getPathContributingMatches, r as createBrowserHistory, s as init_router, u as parsePath } from "./globals-runtime-CBviMKtt.js";
|
|
6
|
+
//#region ../../node_modules/react/cjs/react.production.js
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react.production.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
18
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
19
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
20
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
21
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
22
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
23
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
24
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
25
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
26
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
27
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
28
|
+
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
29
|
+
var REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition");
|
|
30
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
31
|
+
function getIteratorFn(maybeIterable) {
|
|
32
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
33
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
34
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
35
|
+
}
|
|
36
|
+
var ReactNoopUpdateQueue = {
|
|
37
|
+
isMounted: function() {
|
|
38
|
+
return !1;
|
|
39
|
+
},
|
|
40
|
+
enqueueForceUpdate: function() {},
|
|
41
|
+
enqueueReplaceState: function() {},
|
|
42
|
+
enqueueSetState: function() {}
|
|
43
|
+
};
|
|
44
|
+
var assign = Object.assign;
|
|
45
|
+
var emptyObject = {};
|
|
46
|
+
function Component(props, context, updater) {
|
|
47
|
+
this.props = props;
|
|
48
|
+
this.context = context;
|
|
49
|
+
this.refs = emptyObject;
|
|
50
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
51
|
+
}
|
|
52
|
+
Component.prototype.isReactComponent = {};
|
|
53
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
54
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
55
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
56
|
+
};
|
|
57
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
58
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
59
|
+
};
|
|
60
|
+
function ComponentDummy() {}
|
|
61
|
+
ComponentDummy.prototype = Component.prototype;
|
|
62
|
+
function PureComponent(props, context, updater) {
|
|
63
|
+
this.props = props;
|
|
64
|
+
this.context = context;
|
|
65
|
+
this.refs = emptyObject;
|
|
66
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
67
|
+
}
|
|
68
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
69
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
70
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
71
|
+
pureComponentPrototype.isPureReactComponent = !0;
|
|
72
|
+
var isArrayImpl = Array.isArray;
|
|
73
|
+
function noop() {}
|
|
74
|
+
var ReactSharedInternals = {
|
|
75
|
+
H: null,
|
|
76
|
+
A: null,
|
|
77
|
+
T: null,
|
|
78
|
+
S: null
|
|
79
|
+
};
|
|
80
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
81
|
+
function ReactElement(type, key, props) {
|
|
82
|
+
var refProp = props.ref;
|
|
83
|
+
return {
|
|
84
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
85
|
+
type,
|
|
86
|
+
key,
|
|
87
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
88
|
+
props
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
92
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
93
|
+
}
|
|
94
|
+
function isValidElement(object) {
|
|
95
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
96
|
+
}
|
|
97
|
+
function escape(key) {
|
|
98
|
+
var escaperLookup = {
|
|
99
|
+
"=": "=0",
|
|
100
|
+
":": "=2"
|
|
101
|
+
};
|
|
102
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
103
|
+
return escaperLookup[match];
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
107
|
+
function getElementKey(element, index) {
|
|
108
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
109
|
+
}
|
|
110
|
+
function resolveThenable(thenable) {
|
|
111
|
+
switch (thenable.status) {
|
|
112
|
+
case "fulfilled": return thenable.value;
|
|
113
|
+
case "rejected": throw thenable.reason;
|
|
114
|
+
default: switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
115
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
116
|
+
}, function(error) {
|
|
117
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
118
|
+
})), thenable.status) {
|
|
119
|
+
case "fulfilled": return thenable.value;
|
|
120
|
+
case "rejected": throw thenable.reason;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
throw thenable;
|
|
124
|
+
}
|
|
125
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
126
|
+
var type = typeof children;
|
|
127
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
128
|
+
var invokeCallback = !1;
|
|
129
|
+
if (null === children) invokeCallback = !0;
|
|
130
|
+
else switch (type) {
|
|
131
|
+
case "bigint":
|
|
132
|
+
case "string":
|
|
133
|
+
case "number":
|
|
134
|
+
invokeCallback = !0;
|
|
135
|
+
break;
|
|
136
|
+
case "object": switch (children.$$typeof) {
|
|
137
|
+
case REACT_ELEMENT_TYPE:
|
|
138
|
+
case REACT_PORTAL_TYPE:
|
|
139
|
+
invokeCallback = !0;
|
|
140
|
+
break;
|
|
141
|
+
case REACT_LAZY_TYPE: return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
if (invokeCallback) return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
145
|
+
return c;
|
|
146
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(callback, escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + invokeCallback)), array.push(callback)), 1;
|
|
147
|
+
invokeCallback = 0;
|
|
148
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
149
|
+
if (isArrayImpl(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
150
|
+
else if (i = getIteratorFn(children), "function" === typeof i) for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
151
|
+
else if ("object" === type) {
|
|
152
|
+
if ("function" === typeof children.then) return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
|
|
153
|
+
array = String(children);
|
|
154
|
+
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
|
|
155
|
+
}
|
|
156
|
+
return invokeCallback;
|
|
157
|
+
}
|
|
158
|
+
function mapChildren(children, func, context) {
|
|
159
|
+
if (null == children) return children;
|
|
160
|
+
var result = [], count = 0;
|
|
161
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
162
|
+
return func.call(context, child, count++);
|
|
163
|
+
});
|
|
164
|
+
return result;
|
|
165
|
+
}
|
|
166
|
+
function lazyInitializer(payload) {
|
|
167
|
+
if (-1 === payload._status) {
|
|
168
|
+
var ctor = payload._result, thenable = ctor();
|
|
169
|
+
thenable.then(function(moduleObject) {
|
|
170
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 1, payload._result = moduleObject, void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
171
|
+
}, function(error) {
|
|
172
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 2, payload._result = error, void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
173
|
+
});
|
|
174
|
+
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
175
|
+
}
|
|
176
|
+
if (1 === payload._status) return payload._result.default;
|
|
177
|
+
throw payload._result;
|
|
178
|
+
}
|
|
179
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
180
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
181
|
+
var event = new window.ErrorEvent("error", {
|
|
182
|
+
bubbles: !0,
|
|
183
|
+
cancelable: !0,
|
|
184
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
185
|
+
error
|
|
186
|
+
});
|
|
187
|
+
if (!window.dispatchEvent(event)) return;
|
|
188
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
189
|
+
process.emit("uncaughtException", error);
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
console.error(error);
|
|
193
|
+
};
|
|
194
|
+
function startTransition(scope) {
|
|
195
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
196
|
+
currentTransition.types = null !== prevTransition ? prevTransition.types : null;
|
|
197
|
+
ReactSharedInternals.T = currentTransition;
|
|
198
|
+
try {
|
|
199
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
200
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
201
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
202
|
+
} catch (error) {
|
|
203
|
+
reportGlobalError(error);
|
|
204
|
+
} finally {
|
|
205
|
+
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
function addTransitionType(type) {
|
|
209
|
+
var transition = ReactSharedInternals.T;
|
|
210
|
+
if (null !== transition) {
|
|
211
|
+
var transitionTypes = transition.types;
|
|
212
|
+
null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
|
|
213
|
+
} else startTransition(addTransitionType.bind(null, type));
|
|
214
|
+
}
|
|
215
|
+
var Children = {
|
|
216
|
+
map: mapChildren,
|
|
217
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
218
|
+
mapChildren(children, function() {
|
|
219
|
+
forEachFunc.apply(this, arguments);
|
|
220
|
+
}, forEachContext);
|
|
221
|
+
},
|
|
222
|
+
count: function(children) {
|
|
223
|
+
var n = 0;
|
|
224
|
+
mapChildren(children, function() {
|
|
225
|
+
n++;
|
|
226
|
+
});
|
|
227
|
+
return n;
|
|
228
|
+
},
|
|
229
|
+
toArray: function(children) {
|
|
230
|
+
return mapChildren(children, function(child) {
|
|
231
|
+
return child;
|
|
232
|
+
}) || [];
|
|
233
|
+
},
|
|
234
|
+
only: function(children) {
|
|
235
|
+
if (!isValidElement(children)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
236
|
+
return children;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
240
|
+
exports.Children = Children;
|
|
241
|
+
exports.Component = Component;
|
|
242
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
243
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
244
|
+
exports.PureComponent = PureComponent;
|
|
245
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
246
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
247
|
+
exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
248
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
249
|
+
exports.__COMPILER_RUNTIME = {
|
|
250
|
+
__proto__: null,
|
|
251
|
+
c: function(size) {
|
|
252
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
exports.addTransitionType = addTransitionType;
|
|
256
|
+
exports.cache = function(fn) {
|
|
257
|
+
return function() {
|
|
258
|
+
return fn.apply(null, arguments);
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
exports.cacheSignal = function() {
|
|
262
|
+
return null;
|
|
263
|
+
};
|
|
264
|
+
exports.cloneElement = function(element, config, children) {
|
|
265
|
+
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
266
|
+
var props = assign({}, element.props), key = element.key;
|
|
267
|
+
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
268
|
+
var propName = arguments.length - 2;
|
|
269
|
+
if (1 === propName) props.children = children;
|
|
270
|
+
else if (1 < propName) {
|
|
271
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++) childArray[i] = arguments[i + 2];
|
|
272
|
+
props.children = childArray;
|
|
273
|
+
}
|
|
274
|
+
return ReactElement(element.type, key, props);
|
|
275
|
+
};
|
|
276
|
+
exports.createContext = function(defaultValue) {
|
|
277
|
+
defaultValue = {
|
|
278
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
279
|
+
_currentValue: defaultValue,
|
|
280
|
+
_currentValue2: defaultValue,
|
|
281
|
+
_threadCount: 0,
|
|
282
|
+
Provider: null,
|
|
283
|
+
Consumer: null
|
|
284
|
+
};
|
|
285
|
+
defaultValue.Provider = defaultValue;
|
|
286
|
+
defaultValue.Consumer = {
|
|
287
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
288
|
+
_context: defaultValue
|
|
289
|
+
};
|
|
290
|
+
return defaultValue;
|
|
291
|
+
};
|
|
292
|
+
exports.createElement = function(type, config, children) {
|
|
293
|
+
var propName, props = {}, key = null;
|
|
294
|
+
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
295
|
+
var childrenLength = arguments.length - 2;
|
|
296
|
+
if (1 === childrenLength) props.children = children;
|
|
297
|
+
else if (1 < childrenLength) {
|
|
298
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2];
|
|
299
|
+
props.children = childArray;
|
|
300
|
+
}
|
|
301
|
+
if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
302
|
+
return ReactElement(type, key, props);
|
|
303
|
+
};
|
|
304
|
+
exports.createRef = function() {
|
|
305
|
+
return { current: null };
|
|
306
|
+
};
|
|
307
|
+
exports.forwardRef = function(render) {
|
|
308
|
+
return {
|
|
309
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
310
|
+
render
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
exports.isValidElement = isValidElement;
|
|
314
|
+
exports.lazy = function(ctor) {
|
|
315
|
+
return {
|
|
316
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
317
|
+
_payload: {
|
|
318
|
+
_status: -1,
|
|
319
|
+
_result: ctor
|
|
320
|
+
},
|
|
321
|
+
_init: lazyInitializer
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
exports.memo = function(type, compare) {
|
|
325
|
+
return {
|
|
326
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
327
|
+
type,
|
|
328
|
+
compare: void 0 === compare ? null : compare
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
exports.startTransition = startTransition;
|
|
332
|
+
exports.unstable_useCacheRefresh = function() {
|
|
333
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
334
|
+
};
|
|
335
|
+
exports.use = function(usable) {
|
|
336
|
+
return ReactSharedInternals.H.use(usable);
|
|
337
|
+
};
|
|
338
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
339
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
340
|
+
};
|
|
341
|
+
exports.useCallback = function(callback, deps) {
|
|
342
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
343
|
+
};
|
|
344
|
+
exports.useContext = function(Context) {
|
|
345
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
346
|
+
};
|
|
347
|
+
exports.useDebugValue = function() {};
|
|
348
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
349
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
350
|
+
};
|
|
351
|
+
exports.useEffect = function(create, deps) {
|
|
352
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
353
|
+
};
|
|
354
|
+
exports.useEffectEvent = function(callback) {
|
|
355
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
356
|
+
};
|
|
357
|
+
exports.useId = function() {
|
|
358
|
+
return ReactSharedInternals.H.useId();
|
|
359
|
+
};
|
|
360
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
361
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
362
|
+
};
|
|
363
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
364
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
365
|
+
};
|
|
366
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
367
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
368
|
+
};
|
|
369
|
+
exports.useMemo = function(create, deps) {
|
|
370
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
371
|
+
};
|
|
372
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
373
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
374
|
+
};
|
|
375
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
376
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
377
|
+
};
|
|
378
|
+
exports.useRef = function(initialValue) {
|
|
379
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
380
|
+
};
|
|
381
|
+
exports.useState = function(initialState) {
|
|
382
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
383
|
+
};
|
|
384
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
385
|
+
return ReactSharedInternals.H.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
386
|
+
};
|
|
387
|
+
exports.useTransition = function() {
|
|
388
|
+
return ReactSharedInternals.H.useTransition();
|
|
389
|
+
};
|
|
390
|
+
exports.version = "19.3.1";
|
|
391
|
+
}));
|
|
392
|
+
//#endregion
|
|
393
|
+
//#region ../../node_modules/react/cjs/react-jsx-runtime.production.js
|
|
394
|
+
/**
|
|
395
|
+
* @license React
|
|
396
|
+
* react-jsx-runtime.production.js
|
|
397
|
+
*
|
|
398
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
399
|
+
*
|
|
400
|
+
* This source code is licensed under the MIT license found in the
|
|
401
|
+
* LICENSE file in the root directory of this source tree.
|
|
402
|
+
*/
|
|
403
|
+
var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
404
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
405
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
406
|
+
function jsxProd(type, config, maybeKey) {
|
|
407
|
+
var key = null;
|
|
408
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
409
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
410
|
+
if ("key" in config) {
|
|
411
|
+
maybeKey = {};
|
|
412
|
+
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
413
|
+
} else maybeKey = config;
|
|
414
|
+
config = maybeKey.ref;
|
|
415
|
+
return {
|
|
416
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
417
|
+
type,
|
|
418
|
+
key,
|
|
419
|
+
ref: void 0 !== config ? config : null,
|
|
420
|
+
props: maybeKey
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
424
|
+
exports.jsx = jsxProd;
|
|
425
|
+
exports.jsxs = jsxProd;
|
|
426
|
+
}));
|
|
427
|
+
//#endregion
|
|
428
|
+
//#region ../../node_modules/react-router/dist/index.js
|
|
429
|
+
/**
|
|
430
|
+
* React Router v6.15.0
|
|
431
|
+
*
|
|
432
|
+
* Copyright (c) Remix Software Inc.
|
|
433
|
+
*
|
|
434
|
+
* This source code is licensed under the MIT license found in the
|
|
435
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
436
|
+
*
|
|
437
|
+
* @license MIT
|
|
438
|
+
*/
|
|
439
|
+
function _extends$1() {
|
|
440
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
441
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
442
|
+
var source = arguments[i];
|
|
443
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
444
|
+
}
|
|
445
|
+
return target;
|
|
446
|
+
};
|
|
447
|
+
return _extends$1.apply(this, arguments);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Returns the full href for the given "to" value. This is useful for building
|
|
451
|
+
* custom links that are also accessible and preserve right-click behavior.
|
|
452
|
+
*
|
|
453
|
+
* @see https://reactrouter.com/hooks/use-href
|
|
454
|
+
*/
|
|
455
|
+
function useHref(to, _temp) {
|
|
456
|
+
let { relative } = _temp === void 0 ? {} : _temp;
|
|
457
|
+
!useInRouterContext() && invariant(false);
|
|
458
|
+
let { basename, navigator } = import_react$3.useContext(NavigationContext);
|
|
459
|
+
let { hash, pathname, search } = useResolvedPath(to, { relative });
|
|
460
|
+
let joinedPathname = pathname;
|
|
461
|
+
if (basename !== "/") joinedPathname = pathname === "/" ? basename : joinPaths([basename, pathname]);
|
|
462
|
+
return navigator.createHref({
|
|
463
|
+
pathname: joinedPathname,
|
|
464
|
+
search,
|
|
465
|
+
hash
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Returns true if this component is a descendant of a <Router>.
|
|
470
|
+
*
|
|
471
|
+
* @see https://reactrouter.com/hooks/use-in-router-context
|
|
472
|
+
*/
|
|
473
|
+
function useInRouterContext() {
|
|
474
|
+
return import_react$3.useContext(LocationContext) != null;
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Returns the current location object, which represents the current URL in web
|
|
478
|
+
* browsers.
|
|
479
|
+
*
|
|
480
|
+
* Note: If you're using this it may mean you're doing some of your own
|
|
481
|
+
* "routing" in your app, and we'd like to know what your use case is. We may
|
|
482
|
+
* be able to provide something higher-level to better suit your needs.
|
|
483
|
+
*
|
|
484
|
+
* @see https://reactrouter.com/hooks/use-location
|
|
485
|
+
*/
|
|
486
|
+
function useLocation() {
|
|
487
|
+
!useInRouterContext() && invariant(false);
|
|
488
|
+
return import_react$3.useContext(LocationContext).location;
|
|
489
|
+
}
|
|
490
|
+
function useIsomorphicLayoutEffect(cb) {
|
|
491
|
+
if (!import_react$3.useContext(NavigationContext).static) import_react$3.useLayoutEffect(cb);
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Returns an imperative method for changing the location. Used by <Link>s, but
|
|
495
|
+
* may also be used by other elements to change the location.
|
|
496
|
+
*
|
|
497
|
+
* @see https://reactrouter.com/hooks/use-navigate
|
|
498
|
+
*/
|
|
499
|
+
function useNavigate() {
|
|
500
|
+
let { isDataRoute } = import_react$3.useContext(RouteContext);
|
|
501
|
+
return isDataRoute ? useNavigateStable() : useNavigateUnstable();
|
|
502
|
+
}
|
|
503
|
+
function useNavigateUnstable() {
|
|
504
|
+
!useInRouterContext() && invariant(false);
|
|
505
|
+
let dataRouterContext = import_react$3.useContext(DataRouterContext);
|
|
506
|
+
let { basename, navigator } = import_react$3.useContext(NavigationContext);
|
|
507
|
+
let { matches } = import_react$3.useContext(RouteContext);
|
|
508
|
+
let { pathname: locationPathname } = useLocation();
|
|
509
|
+
let routePathnamesJson = JSON.stringify(getPathContributingMatches(matches).map((match) => match.pathnameBase));
|
|
510
|
+
let activeRef = import_react$3.useRef(false);
|
|
511
|
+
useIsomorphicLayoutEffect(() => {
|
|
512
|
+
activeRef.current = true;
|
|
513
|
+
});
|
|
514
|
+
return import_react$3.useCallback(function(to, options) {
|
|
515
|
+
if (options === void 0) options = {};
|
|
516
|
+
if (!activeRef.current) return;
|
|
517
|
+
if (typeof to === "number") {
|
|
518
|
+
navigator.go(to);
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === "path");
|
|
522
|
+
if (dataRouterContext == null && basename !== "/") path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname]);
|
|
523
|
+
(!!options.replace ? navigator.replace : navigator.push)(path, options.state, options);
|
|
524
|
+
}, [
|
|
525
|
+
basename,
|
|
526
|
+
navigator,
|
|
527
|
+
routePathnamesJson,
|
|
528
|
+
locationPathname,
|
|
529
|
+
dataRouterContext
|
|
530
|
+
]);
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Resolves the pathname of the given `to` value against the current location.
|
|
534
|
+
*
|
|
535
|
+
* @see https://reactrouter.com/hooks/use-resolved-path
|
|
536
|
+
*/
|
|
537
|
+
function useResolvedPath(to, _temp2) {
|
|
538
|
+
let { relative } = _temp2 === void 0 ? {} : _temp2;
|
|
539
|
+
let { matches } = import_react$3.useContext(RouteContext);
|
|
540
|
+
let { pathname: locationPathname } = useLocation();
|
|
541
|
+
let routePathnamesJson = JSON.stringify(getPathContributingMatches(matches).map((match) => match.pathnameBase));
|
|
542
|
+
return import_react$3.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === "path"), [
|
|
543
|
+
to,
|
|
544
|
+
routePathnamesJson,
|
|
545
|
+
locationPathname,
|
|
546
|
+
relative
|
|
547
|
+
]);
|
|
548
|
+
}
|
|
549
|
+
function useDataRouterContext(hookName) {
|
|
550
|
+
let ctx = import_react$3.useContext(DataRouterContext);
|
|
551
|
+
!ctx && invariant(false);
|
|
552
|
+
return ctx;
|
|
553
|
+
}
|
|
554
|
+
function useRouteContext(hookName) {
|
|
555
|
+
let route = import_react$3.useContext(RouteContext);
|
|
556
|
+
!route && invariant(false);
|
|
557
|
+
return route;
|
|
558
|
+
}
|
|
559
|
+
function useCurrentRouteId(hookName) {
|
|
560
|
+
let route = useRouteContext(hookName);
|
|
561
|
+
let thisRoute = route.matches[route.matches.length - 1];
|
|
562
|
+
!thisRoute.route.id && invariant(false);
|
|
563
|
+
return thisRoute.route.id;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Stable version of useNavigate that is used when we are in the context of
|
|
567
|
+
* a RouterProvider.
|
|
568
|
+
*/
|
|
569
|
+
function useNavigateStable() {
|
|
570
|
+
let { router } = useDataRouterContext(DataRouterHook$1.UseNavigateStable);
|
|
571
|
+
let id = useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable);
|
|
572
|
+
let activeRef = import_react$3.useRef(false);
|
|
573
|
+
useIsomorphicLayoutEffect(() => {
|
|
574
|
+
activeRef.current = true;
|
|
575
|
+
});
|
|
576
|
+
return import_react$3.useCallback(function(to, options) {
|
|
577
|
+
if (options === void 0) options = {};
|
|
578
|
+
if (!activeRef.current) return;
|
|
579
|
+
if (typeof to === "number") router.navigate(to);
|
|
580
|
+
else router.navigate(to, _extends$1({ fromRouteId: id }, options));
|
|
581
|
+
}, [router, id]);
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* A <Router> that stores all entries in memory.
|
|
585
|
+
*
|
|
586
|
+
* @see https://reactrouter.com/router-components/memory-router
|
|
587
|
+
*/
|
|
588
|
+
function MemoryRouter(_ref3) {
|
|
589
|
+
let { basename, children, initialEntries, initialIndex, future } = _ref3;
|
|
590
|
+
let historyRef = import_react$3.useRef();
|
|
591
|
+
if (historyRef.current == null) historyRef.current = createMemoryHistory({
|
|
592
|
+
initialEntries,
|
|
593
|
+
initialIndex,
|
|
594
|
+
v5Compat: true
|
|
595
|
+
});
|
|
596
|
+
let history = historyRef.current;
|
|
597
|
+
let [state, setStateImpl] = import_react$3.useState({
|
|
598
|
+
action: history.action,
|
|
599
|
+
location: history.location
|
|
600
|
+
});
|
|
601
|
+
let { v7_startTransition } = future || {};
|
|
602
|
+
let setState = import_react$3.useCallback((newState) => {
|
|
603
|
+
v7_startTransition && startTransitionImpl$1 ? startTransitionImpl$1(() => setStateImpl(newState)) : setStateImpl(newState);
|
|
604
|
+
}, [setStateImpl, v7_startTransition]);
|
|
605
|
+
import_react$3.useLayoutEffect(() => history.listen(setState), [history, setState]);
|
|
606
|
+
return /*#__PURE__*/ import_react$3.createElement(Router, {
|
|
607
|
+
basename,
|
|
608
|
+
children,
|
|
609
|
+
location: state.location,
|
|
610
|
+
navigationType: state.action,
|
|
611
|
+
navigator: history
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Provides location context for the rest of the app.
|
|
616
|
+
*
|
|
617
|
+
* Note: You usually won't render a <Router> directly. Instead, you'll render a
|
|
618
|
+
* router that is more specific to your environment such as a <BrowserRouter>
|
|
619
|
+
* in web browsers or a <StaticRouter> for server rendering.
|
|
620
|
+
*
|
|
621
|
+
* @see https://reactrouter.com/router-components/router
|
|
622
|
+
*/
|
|
623
|
+
function Router(_ref5) {
|
|
624
|
+
let { basename: basenameProp = "/", children = null, location: locationProp, navigationType = Action.Pop, navigator, static: staticProp = false } = _ref5;
|
|
625
|
+
useInRouterContext() && invariant(false);
|
|
626
|
+
let basename = basenameProp.replace(/^\/*/, "/");
|
|
627
|
+
let navigationContext = import_react$3.useMemo(() => ({
|
|
628
|
+
basename,
|
|
629
|
+
navigator,
|
|
630
|
+
static: staticProp
|
|
631
|
+
}), [
|
|
632
|
+
basename,
|
|
633
|
+
navigator,
|
|
634
|
+
staticProp
|
|
635
|
+
]);
|
|
636
|
+
if (typeof locationProp === "string") locationProp = parsePath(locationProp);
|
|
637
|
+
let { pathname = "/", search = "", hash = "", state = null, key = "default" } = locationProp;
|
|
638
|
+
let locationContext = import_react$3.useMemo(() => {
|
|
639
|
+
let trailingPathname = stripBasename(pathname, basename);
|
|
640
|
+
if (trailingPathname == null) return null;
|
|
641
|
+
return {
|
|
642
|
+
location: {
|
|
643
|
+
pathname: trailingPathname,
|
|
644
|
+
search,
|
|
645
|
+
hash,
|
|
646
|
+
state,
|
|
647
|
+
key
|
|
648
|
+
},
|
|
649
|
+
navigationType
|
|
650
|
+
};
|
|
651
|
+
}, [
|
|
652
|
+
basename,
|
|
653
|
+
pathname,
|
|
654
|
+
search,
|
|
655
|
+
hash,
|
|
656
|
+
state,
|
|
657
|
+
key,
|
|
658
|
+
navigationType
|
|
659
|
+
]);
|
|
660
|
+
if (locationContext == null) return null;
|
|
661
|
+
return /*#__PURE__*/ import_react$3.createElement(NavigationContext.Provider, { value: navigationContext }, /*#__PURE__*/ import_react$3.createElement(LocationContext.Provider, {
|
|
662
|
+
children,
|
|
663
|
+
value: locationContext
|
|
664
|
+
}));
|
|
665
|
+
}
|
|
666
|
+
var import_react$3, DataRouterContext, NavigationContext, LocationContext, RouteContext, DataRouterHook$1, DataRouterStateHook$1, startTransitionImpl$1, AwaitRenderStatus;
|
|
667
|
+
function init_dist() {
|
|
668
|
+
return (init_dist = __esmMin((() => {
|
|
669
|
+
import_react$3 = /* @__PURE__ */ __toESM(require_react());
|
|
670
|
+
init_router();
|
|
671
|
+
DataRouterContext = /*#__PURE__*/ import_react$3.createContext(null);
|
|
672
|
+
NavigationContext = /*#__PURE__*/ import_react$3.createContext(null);
|
|
673
|
+
LocationContext = /*#__PURE__*/ import_react$3.createContext(null);
|
|
674
|
+
RouteContext = /*#__PURE__*/ import_react$3.createContext({
|
|
675
|
+
outlet: null,
|
|
676
|
+
matches: [],
|
|
677
|
+
isDataRoute: false
|
|
678
|
+
});
|
|
679
|
+
import_react$3.Component;
|
|
680
|
+
DataRouterHook$1 = /*#__PURE__*/ function(DataRouterHook) {
|
|
681
|
+
DataRouterHook["UseBlocker"] = "useBlocker";
|
|
682
|
+
DataRouterHook["UseRevalidator"] = "useRevalidator";
|
|
683
|
+
DataRouterHook["UseNavigateStable"] = "useNavigate";
|
|
684
|
+
return DataRouterHook;
|
|
685
|
+
}(DataRouterHook$1 || {});
|
|
686
|
+
DataRouterStateHook$1 = /*#__PURE__*/ function(DataRouterStateHook) {
|
|
687
|
+
DataRouterStateHook["UseBlocker"] = "useBlocker";
|
|
688
|
+
DataRouterStateHook["UseLoaderData"] = "useLoaderData";
|
|
689
|
+
DataRouterStateHook["UseActionData"] = "useActionData";
|
|
690
|
+
DataRouterStateHook["UseRouteError"] = "useRouteError";
|
|
691
|
+
DataRouterStateHook["UseNavigation"] = "useNavigation";
|
|
692
|
+
DataRouterStateHook["UseRouteLoaderData"] = "useRouteLoaderData";
|
|
693
|
+
DataRouterStateHook["UseMatches"] = "useMatches";
|
|
694
|
+
DataRouterStateHook["UseRevalidator"] = "useRevalidator";
|
|
695
|
+
DataRouterStateHook["UseNavigateStable"] = "useNavigate";
|
|
696
|
+
DataRouterStateHook["UseRouteId"] = "useRouteId";
|
|
697
|
+
return DataRouterStateHook;
|
|
698
|
+
}(DataRouterStateHook$1 || {});
|
|
699
|
+
startTransitionImpl$1 = import_react$3.startTransition;
|
|
700
|
+
AwaitRenderStatus = /*#__PURE__*/ function(AwaitRenderStatus) {
|
|
701
|
+
AwaitRenderStatus[AwaitRenderStatus["pending"] = 0] = "pending";
|
|
702
|
+
AwaitRenderStatus[AwaitRenderStatus["success"] = 1] = "success";
|
|
703
|
+
AwaitRenderStatus[AwaitRenderStatus["error"] = 2] = "error";
|
|
704
|
+
return AwaitRenderStatus;
|
|
705
|
+
}(AwaitRenderStatus || {});
|
|
706
|
+
new Promise(() => {});
|
|
707
|
+
import_react$3.Component;
|
|
708
|
+
})))();
|
|
709
|
+
}
|
|
710
|
+
//#endregion
|
|
711
|
+
//#region ../../node_modules/react-router-dom/dist/index.js
|
|
712
|
+
/**
|
|
713
|
+
* React Router DOM v6.15.0
|
|
714
|
+
*
|
|
715
|
+
* Copyright (c) Remix Software Inc.
|
|
716
|
+
*
|
|
717
|
+
* This source code is licensed under the MIT license found in the
|
|
718
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
719
|
+
*
|
|
720
|
+
* @license MIT
|
|
721
|
+
*/
|
|
722
|
+
function _extends() {
|
|
723
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
724
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
725
|
+
var source = arguments[i];
|
|
726
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
727
|
+
}
|
|
728
|
+
return target;
|
|
729
|
+
};
|
|
730
|
+
return _extends.apply(this, arguments);
|
|
731
|
+
}
|
|
732
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
733
|
+
if (source == null) return {};
|
|
734
|
+
var target = {};
|
|
735
|
+
var sourceKeys = Object.keys(source);
|
|
736
|
+
var key, i = 0;
|
|
737
|
+
for (; i < sourceKeys.length; i++) {
|
|
738
|
+
key = sourceKeys[i];
|
|
739
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
740
|
+
target[key] = source[key];
|
|
741
|
+
}
|
|
742
|
+
return target;
|
|
743
|
+
}
|
|
744
|
+
function isModifiedEvent(event) {
|
|
745
|
+
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
|
|
746
|
+
}
|
|
747
|
+
function shouldProcessLinkClick(event, target) {
|
|
748
|
+
return event.button === 0 && (!target || target === "_self") && !isModifiedEvent(event);
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* A `<Router>` for use in web browsers. Provides the cleanest URLs.
|
|
752
|
+
*/
|
|
753
|
+
function BrowserRouter(_ref) {
|
|
754
|
+
let { basename, children, future, window } = _ref;
|
|
755
|
+
let historyRef = import_react$2.useRef();
|
|
756
|
+
if (historyRef.current == null) historyRef.current = createBrowserHistory({
|
|
757
|
+
window,
|
|
758
|
+
v5Compat: true
|
|
759
|
+
});
|
|
760
|
+
let history = historyRef.current;
|
|
761
|
+
let [state, setStateImpl] = import_react$2.useState({
|
|
762
|
+
action: history.action,
|
|
763
|
+
location: history.location
|
|
764
|
+
});
|
|
765
|
+
let { v7_startTransition } = future || {};
|
|
766
|
+
let setState = import_react$2.useCallback((newState) => {
|
|
767
|
+
v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);
|
|
768
|
+
}, [setStateImpl, v7_startTransition]);
|
|
769
|
+
import_react$2.useLayoutEffect(() => history.listen(setState), [history, setState]);
|
|
770
|
+
return /*#__PURE__*/ import_react$2.createElement(Router, {
|
|
771
|
+
basename,
|
|
772
|
+
children,
|
|
773
|
+
location: state.location,
|
|
774
|
+
navigationType: state.action,
|
|
775
|
+
navigator: history
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Handles the click behavior for router `<Link>` components. This is useful if
|
|
780
|
+
* you need to create custom `<Link>` components with the same click behavior we
|
|
781
|
+
* use in our exported `<Link>`.
|
|
782
|
+
*/
|
|
783
|
+
function useLinkClickHandler(to, _temp) {
|
|
784
|
+
let { target, replace: replaceProp, state, preventScrollReset, relative } = _temp === void 0 ? {} : _temp;
|
|
785
|
+
let navigate = useNavigate();
|
|
786
|
+
let location = useLocation();
|
|
787
|
+
let path = useResolvedPath(to, { relative });
|
|
788
|
+
return import_react$2.useCallback((event) => {
|
|
789
|
+
if (shouldProcessLinkClick(event, target)) {
|
|
790
|
+
event.preventDefault();
|
|
791
|
+
let replace = replaceProp !== void 0 ? replaceProp : createPath(location) === createPath(path);
|
|
792
|
+
navigate(to, {
|
|
793
|
+
replace,
|
|
794
|
+
state,
|
|
795
|
+
preventScrollReset,
|
|
796
|
+
relative
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
}, [
|
|
800
|
+
location,
|
|
801
|
+
navigate,
|
|
802
|
+
path,
|
|
803
|
+
replaceProp,
|
|
804
|
+
state,
|
|
805
|
+
target,
|
|
806
|
+
to,
|
|
807
|
+
preventScrollReset,
|
|
808
|
+
relative
|
|
809
|
+
]);
|
|
810
|
+
}
|
|
811
|
+
var import_react$2, _excluded$1, startTransitionImpl, isBrowser, ABSOLUTE_URL_REGEX, Link, DataRouterHook, DataRouterStateHook;
|
|
812
|
+
function init_dist$1() {
|
|
813
|
+
return (init_dist$1 = __esmMin((() => {
|
|
814
|
+
import_react$2 = /* @__PURE__ */ __toESM(require_react());
|
|
815
|
+
init_dist();
|
|
816
|
+
init_router();
|
|
817
|
+
_excluded$1 = [
|
|
818
|
+
"onClick",
|
|
819
|
+
"relative",
|
|
820
|
+
"reloadDocument",
|
|
821
|
+
"replace",
|
|
822
|
+
"state",
|
|
823
|
+
"target",
|
|
824
|
+
"to",
|
|
825
|
+
"preventScrollReset"
|
|
826
|
+
];
|
|
827
|
+
startTransitionImpl = import_react$2.startTransition;
|
|
828
|
+
isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
829
|
+
ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
830
|
+
Link = /*#__PURE__*/ import_react$2.forwardRef(function LinkWithRef(_ref4, ref) {
|
|
831
|
+
let { onClick, relative, reloadDocument, replace, state, target, to, preventScrollReset } = _ref4, rest = _objectWithoutPropertiesLoose(_ref4, _excluded$1);
|
|
832
|
+
let { basename } = import_react$2.useContext(NavigationContext);
|
|
833
|
+
let absoluteHref;
|
|
834
|
+
let isExternal = false;
|
|
835
|
+
if (typeof to === "string" && ABSOLUTE_URL_REGEX.test(to)) {
|
|
836
|
+
absoluteHref = to;
|
|
837
|
+
if (isBrowser) try {
|
|
838
|
+
let currentUrl = new URL(window.location.href);
|
|
839
|
+
let targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to);
|
|
840
|
+
let path = stripBasename(targetUrl.pathname, basename);
|
|
841
|
+
if (targetUrl.origin === currentUrl.origin && path != null) to = path + targetUrl.search + targetUrl.hash;
|
|
842
|
+
else isExternal = true;
|
|
843
|
+
} catch (e) {}
|
|
844
|
+
}
|
|
845
|
+
let href = useHref(to, { relative });
|
|
846
|
+
let internalOnClick = useLinkClickHandler(to, {
|
|
847
|
+
replace,
|
|
848
|
+
state,
|
|
849
|
+
target,
|
|
850
|
+
preventScrollReset,
|
|
851
|
+
relative
|
|
852
|
+
});
|
|
853
|
+
function handleClick(event) {
|
|
854
|
+
if (onClick) onClick(event);
|
|
855
|
+
if (!event.defaultPrevented) internalOnClick(event);
|
|
856
|
+
}
|
|
857
|
+
return /*#__PURE__*/ import_react$2.createElement("a", _extends({}, rest, {
|
|
858
|
+
href: absoluteHref || href,
|
|
859
|
+
onClick: isExternal || reloadDocument ? onClick : handleClick,
|
|
860
|
+
ref,
|
|
861
|
+
target
|
|
862
|
+
}));
|
|
863
|
+
});
|
|
864
|
+
(function(DataRouterHook) {
|
|
865
|
+
DataRouterHook["UseScrollRestoration"] = "useScrollRestoration";
|
|
866
|
+
DataRouterHook["UseSubmit"] = "useSubmit";
|
|
867
|
+
DataRouterHook["UseSubmitFetcher"] = "useSubmitFetcher";
|
|
868
|
+
DataRouterHook["UseFetcher"] = "useFetcher";
|
|
869
|
+
})(DataRouterHook || (DataRouterHook = {}));
|
|
870
|
+
(function(DataRouterStateHook) {
|
|
871
|
+
DataRouterStateHook["UseFetchers"] = "useFetchers";
|
|
872
|
+
DataRouterStateHook["UseScrollRestoration"] = "useScrollRestoration";
|
|
873
|
+
})(DataRouterStateHook || (DataRouterStateHook = {}));
|
|
874
|
+
})))();
|
|
875
|
+
}
|
|
876
|
+
//#endregion
|
|
877
|
+
//#region ../../node_modules/react-transition-state/dist/esm/internal.mjs
|
|
878
|
+
var STATUS, getState, startOrEnd, getEndStatus, getTimeout, nextTick;
|
|
879
|
+
function init_internal() {
|
|
880
|
+
return (init_internal = __esmMin((() => {
|
|
881
|
+
STATUS = [
|
|
882
|
+
"preEnter",
|
|
883
|
+
"entering",
|
|
884
|
+
"entered",
|
|
885
|
+
"preExit",
|
|
886
|
+
"exiting",
|
|
887
|
+
"exited",
|
|
888
|
+
"unmounted"
|
|
889
|
+
];
|
|
890
|
+
getState = (status) => ({
|
|
891
|
+
$: status,
|
|
892
|
+
status: STATUS[status],
|
|
893
|
+
isEnter: status < 3,
|
|
894
|
+
isMounted: status !== 6,
|
|
895
|
+
isResolved: status === 2 || status > 4
|
|
896
|
+
});
|
|
897
|
+
startOrEnd = (unmounted) => unmounted ? 6 : 5;
|
|
898
|
+
getEndStatus = (status, unmountOnExit) => {
|
|
899
|
+
switch (status) {
|
|
900
|
+
case 1:
|
|
901
|
+
case 0: return 2;
|
|
902
|
+
case 4:
|
|
903
|
+
case 3: return startOrEnd(unmountOnExit);
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
getTimeout = (timeout) => typeof timeout === "object" ? [timeout.enter, timeout.exit] : [timeout, timeout];
|
|
907
|
+
nextTick = (callback, config) => {
|
|
908
|
+
config.r = requestAnimationFrame(() => {
|
|
909
|
+
config.r = requestAnimationFrame(callback);
|
|
910
|
+
});
|
|
911
|
+
};
|
|
912
|
+
})))();
|
|
913
|
+
}
|
|
914
|
+
//#endregion
|
|
915
|
+
//#region ../../node_modules/react-transition-state/dist/esm/useTransitionState.mjs
|
|
916
|
+
var import_react$1, updateState, useTransitionState;
|
|
917
|
+
function init_useTransitionState() {
|
|
918
|
+
return (init_useTransitionState = __esmMin((() => {
|
|
919
|
+
init_internal();
|
|
920
|
+
import_react$1 = require_react();
|
|
921
|
+
updateState = (status, setState, ref, onChange) => {
|
|
922
|
+
clearTimeout(ref.t);
|
|
923
|
+
cancelAnimationFrame(ref.r);
|
|
924
|
+
const state = getState(status);
|
|
925
|
+
setState(state);
|
|
926
|
+
ref.s = state;
|
|
927
|
+
onChange?.({ current: state });
|
|
928
|
+
};
|
|
929
|
+
useTransitionState = ({ enter = true, exit = true, preEnter, preExit, timeout, initialEntered, mountOnEnter, unmountOnExit, onStateChange: onChange } = {}) => {
|
|
930
|
+
const [state, setState] = (0, import_react$1.useState)(() => getState(initialEntered ? 2 : startOrEnd(mountOnEnter)));
|
|
931
|
+
const [ref] = (0, import_react$1.useState)({
|
|
932
|
+
s: state,
|
|
933
|
+
r: 0
|
|
934
|
+
});
|
|
935
|
+
const [enterTimeout, exitTimeout] = getTimeout(timeout);
|
|
936
|
+
const endTransition = (0, import_react$1.useCallback)(() => {
|
|
937
|
+
const status = getEndStatus(ref.s.$, unmountOnExit);
|
|
938
|
+
if (status) updateState(status, setState, ref, onChange);
|
|
939
|
+
}, [
|
|
940
|
+
onChange,
|
|
941
|
+
unmountOnExit,
|
|
942
|
+
ref
|
|
943
|
+
]);
|
|
944
|
+
return [
|
|
945
|
+
state,
|
|
946
|
+
(0, import_react$1.useCallback)((toEnter) => {
|
|
947
|
+
const transitState = (status) => {
|
|
948
|
+
updateState(status, setState, ref, onChange);
|
|
949
|
+
switch (status) {
|
|
950
|
+
case 1:
|
|
951
|
+
if (enterTimeout >= 0) ref.t = setTimeout(endTransition, enterTimeout);
|
|
952
|
+
break;
|
|
953
|
+
case 4:
|
|
954
|
+
if (exitTimeout >= 0) ref.t = setTimeout(endTransition, exitTimeout);
|
|
955
|
+
break;
|
|
956
|
+
case 0:
|
|
957
|
+
case 3: nextTick(() => transitState(status + 1), ref);
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
const enterStage = ref.s.isEnter;
|
|
961
|
+
if (typeof toEnter !== "boolean") toEnter = !enterStage;
|
|
962
|
+
if (toEnter) !enterStage && transitState(enter ? preEnter ? 0 : 1 : 2);
|
|
963
|
+
else enterStage && transitState(exit ? preExit ? 3 : 4 : startOrEnd(unmountOnExit));
|
|
964
|
+
}, [
|
|
965
|
+
ref,
|
|
966
|
+
endTransition,
|
|
967
|
+
onChange,
|
|
968
|
+
enter,
|
|
969
|
+
exit,
|
|
970
|
+
preEnter,
|
|
971
|
+
preExit,
|
|
972
|
+
enterTimeout,
|
|
973
|
+
exitTimeout,
|
|
974
|
+
unmountOnExit
|
|
975
|
+
]),
|
|
976
|
+
endTransition
|
|
977
|
+
];
|
|
978
|
+
};
|
|
979
|
+
})))();
|
|
980
|
+
}
|
|
981
|
+
//#endregion
|
|
982
|
+
//#region ../../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js
|
|
983
|
+
function calculateNodeHeight(sizingData, value, minRows, maxRows) {
|
|
984
|
+
if (minRows === void 0) minRows = 1;
|
|
985
|
+
if (maxRows === void 0) maxRows = Infinity;
|
|
986
|
+
if (!hiddenTextarea) {
|
|
987
|
+
hiddenTextarea = document.createElement("textarea");
|
|
988
|
+
hiddenTextarea.setAttribute("tabindex", "-1");
|
|
989
|
+
hiddenTextarea.setAttribute("aria-hidden", "true");
|
|
990
|
+
forceHiddenStyles$1(hiddenTextarea);
|
|
991
|
+
}
|
|
992
|
+
if (hiddenTextarea.parentNode === null) document.body.appendChild(hiddenTextarea);
|
|
993
|
+
var paddingSize = sizingData.paddingSize, borderSize = sizingData.borderSize, sizingStyle = sizingData.sizingStyle;
|
|
994
|
+
var boxSizing = sizingStyle.boxSizing;
|
|
995
|
+
Object.keys(sizingStyle).forEach(function(_key) {
|
|
996
|
+
var key = _key;
|
|
997
|
+
hiddenTextarea.style[key] = sizingStyle[key];
|
|
998
|
+
});
|
|
999
|
+
forceHiddenStyles$1(hiddenTextarea);
|
|
1000
|
+
hiddenTextarea.value = value;
|
|
1001
|
+
var height = getHeight(hiddenTextarea, sizingData);
|
|
1002
|
+
hiddenTextarea.value = value;
|
|
1003
|
+
height = getHeight(hiddenTextarea, sizingData);
|
|
1004
|
+
hiddenTextarea.value = "x";
|
|
1005
|
+
var rowHeight = hiddenTextarea.scrollHeight - paddingSize;
|
|
1006
|
+
var minHeight = rowHeight * minRows;
|
|
1007
|
+
if (boxSizing === "border-box") minHeight = minHeight + paddingSize + borderSize;
|
|
1008
|
+
height = Math.max(minHeight, height);
|
|
1009
|
+
var maxHeight = rowHeight * maxRows;
|
|
1010
|
+
if (boxSizing === "border-box") maxHeight = maxHeight + paddingSize + borderSize;
|
|
1011
|
+
height = Math.min(maxHeight, height);
|
|
1012
|
+
return [height, rowHeight];
|
|
1013
|
+
}
|
|
1014
|
+
function useListener(target, type, listener) {
|
|
1015
|
+
var latestListener = useLatest(listener);
|
|
1016
|
+
import_react.useLayoutEffect(function() {
|
|
1017
|
+
var handler = function handler(ev) {
|
|
1018
|
+
return latestListener.current(ev);
|
|
1019
|
+
};
|
|
1020
|
+
if (!target) return;
|
|
1021
|
+
target.addEventListener(type, handler);
|
|
1022
|
+
return function() {
|
|
1023
|
+
return target.removeEventListener(type, handler);
|
|
1024
|
+
};
|
|
1025
|
+
}, []);
|
|
1026
|
+
}
|
|
1027
|
+
var import_react, HIDDEN_TEXTAREA_STYLE, forceHiddenStyles$1, hiddenTextarea, getHeight, noop, pick, SIZING_STYLE, isIE, getSizingData$1, useFormResetListener, useWindowResizeListener, useFontsLoadedListener, _excluded, index;
|
|
1028
|
+
function init_react_textarea_autosize_browser_esm() {
|
|
1029
|
+
return (init_react_textarea_autosize_browser_esm = __esmMin((() => {
|
|
1030
|
+
import_react = /* @__PURE__ */ __toESM(require_react());
|
|
1031
|
+
init_use_latest_esm();
|
|
1032
|
+
init_use_composed_ref_esm();
|
|
1033
|
+
HIDDEN_TEXTAREA_STYLE = {
|
|
1034
|
+
"min-height": "0",
|
|
1035
|
+
"max-height": "none",
|
|
1036
|
+
height: "0",
|
|
1037
|
+
visibility: "hidden",
|
|
1038
|
+
overflow: "hidden",
|
|
1039
|
+
position: "absolute",
|
|
1040
|
+
"z-index": "-1000",
|
|
1041
|
+
top: "0",
|
|
1042
|
+
right: "0",
|
|
1043
|
+
display: "block"
|
|
1044
|
+
};
|
|
1045
|
+
forceHiddenStyles$1 = function forceHiddenStyles(node) {
|
|
1046
|
+
Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(key) {
|
|
1047
|
+
node.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], "important");
|
|
1048
|
+
});
|
|
1049
|
+
};
|
|
1050
|
+
hiddenTextarea = null;
|
|
1051
|
+
getHeight = function getHeight(node, sizingData) {
|
|
1052
|
+
var height = node.scrollHeight;
|
|
1053
|
+
if (sizingData.sizingStyle.boxSizing === "border-box") return height + sizingData.borderSize;
|
|
1054
|
+
return height - sizingData.paddingSize;
|
|
1055
|
+
};
|
|
1056
|
+
noop = function noop() {};
|
|
1057
|
+
pick = function pick(props, obj) {
|
|
1058
|
+
return props.reduce(function(acc, prop) {
|
|
1059
|
+
acc[prop] = obj[prop];
|
|
1060
|
+
return acc;
|
|
1061
|
+
}, {});
|
|
1062
|
+
};
|
|
1063
|
+
SIZING_STYLE = [
|
|
1064
|
+
"borderBottomWidth",
|
|
1065
|
+
"borderLeftWidth",
|
|
1066
|
+
"borderRightWidth",
|
|
1067
|
+
"borderTopWidth",
|
|
1068
|
+
"boxSizing",
|
|
1069
|
+
"fontFamily",
|
|
1070
|
+
"fontSize",
|
|
1071
|
+
"fontStyle",
|
|
1072
|
+
"fontWeight",
|
|
1073
|
+
"letterSpacing",
|
|
1074
|
+
"lineHeight",
|
|
1075
|
+
"paddingBottom",
|
|
1076
|
+
"paddingLeft",
|
|
1077
|
+
"paddingRight",
|
|
1078
|
+
"paddingTop",
|
|
1079
|
+
"tabSize",
|
|
1080
|
+
"textIndent",
|
|
1081
|
+
"textRendering",
|
|
1082
|
+
"textTransform",
|
|
1083
|
+
"width",
|
|
1084
|
+
"wordBreak",
|
|
1085
|
+
"wordSpacing",
|
|
1086
|
+
"scrollbarGutter"
|
|
1087
|
+
];
|
|
1088
|
+
isIE = !!document.documentElement.currentStyle;
|
|
1089
|
+
getSizingData$1 = function getSizingData(node) {
|
|
1090
|
+
var style = window.getComputedStyle(node);
|
|
1091
|
+
if (style === null) return null;
|
|
1092
|
+
var sizingStyle = pick(SIZING_STYLE, style);
|
|
1093
|
+
var boxSizing = sizingStyle.boxSizing;
|
|
1094
|
+
if (boxSizing === "") return null;
|
|
1095
|
+
if (isIE && boxSizing === "border-box") sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + "px";
|
|
1096
|
+
return {
|
|
1097
|
+
sizingStyle,
|
|
1098
|
+
paddingSize: parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop),
|
|
1099
|
+
borderSize: parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth)
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
useFormResetListener = function useFormResetListener(libRef, listener) {
|
|
1103
|
+
useListener(document.body, "reset", function(ev) {
|
|
1104
|
+
if (libRef.current.form === ev.target) listener(ev);
|
|
1105
|
+
});
|
|
1106
|
+
};
|
|
1107
|
+
useWindowResizeListener = function useWindowResizeListener(listener) {
|
|
1108
|
+
useListener(window, "resize", listener);
|
|
1109
|
+
};
|
|
1110
|
+
useFontsLoadedListener = function useFontsLoadedListener(listener) {
|
|
1111
|
+
useListener(document.fonts, "loadingdone", listener);
|
|
1112
|
+
};
|
|
1113
|
+
_excluded = [
|
|
1114
|
+
"cacheMeasurements",
|
|
1115
|
+
"maxRows",
|
|
1116
|
+
"minRows",
|
|
1117
|
+
"onChange",
|
|
1118
|
+
"onHeightChange"
|
|
1119
|
+
];
|
|
1120
|
+
index = /* #__PURE__ */ import_react.forwardRef(function TextareaAutosize(_ref, userRef) {
|
|
1121
|
+
var cacheMeasurements = _ref.cacheMeasurements, maxRows = _ref.maxRows, minRows = _ref.minRows, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? noop : _ref$onChange, _ref$onHeightChange = _ref.onHeightChange, onHeightChange = _ref$onHeightChange === void 0 ? noop : _ref$onHeightChange, props = _objectWithoutPropertiesLoose$1(_ref, _excluded);
|
|
1122
|
+
var isControlled = props.value !== void 0;
|
|
1123
|
+
var libRef = import_react.useRef(null);
|
|
1124
|
+
var ref = useComposedRef(libRef, userRef);
|
|
1125
|
+
var heightRef = import_react.useRef(0);
|
|
1126
|
+
var measurementsCacheRef = import_react.useRef();
|
|
1127
|
+
var resizeTextarea = function resizeTextarea() {
|
|
1128
|
+
var node = libRef.current;
|
|
1129
|
+
var nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData$1(node);
|
|
1130
|
+
if (!nodeSizingData) return;
|
|
1131
|
+
measurementsCacheRef.current = nodeSizingData;
|
|
1132
|
+
var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node.value || node.placeholder || "x", minRows, maxRows), height = _calculateNodeHeight[0], rowHeight = _calculateNodeHeight[1];
|
|
1133
|
+
if (heightRef.current !== height) {
|
|
1134
|
+
heightRef.current = height;
|
|
1135
|
+
node.style.setProperty("height", height + "px", "important");
|
|
1136
|
+
onHeightChange(height, { rowHeight });
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
var handleChange = function handleChange(event) {
|
|
1140
|
+
if (!isControlled) resizeTextarea();
|
|
1141
|
+
onChange(event);
|
|
1142
|
+
};
|
|
1143
|
+
import_react.useLayoutEffect(resizeTextarea);
|
|
1144
|
+
useFormResetListener(libRef, function() {
|
|
1145
|
+
if (!isControlled) {
|
|
1146
|
+
var currentValue = libRef.current.value;
|
|
1147
|
+
requestAnimationFrame(function() {
|
|
1148
|
+
var node = libRef.current;
|
|
1149
|
+
if (node && currentValue !== node.value) resizeTextarea();
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
});
|
|
1153
|
+
useWindowResizeListener(resizeTextarea);
|
|
1154
|
+
useFontsLoadedListener(resizeTextarea);
|
|
1155
|
+
return /*#__PURE__*/ import_react.createElement("textarea", _extends$2({}, props, {
|
|
1156
|
+
onChange: handleChange,
|
|
1157
|
+
ref
|
|
1158
|
+
}));
|
|
1159
|
+
});
|
|
1160
|
+
})))();
|
|
1161
|
+
}
|
|
1162
|
+
//#endregion
|
|
1163
|
+
export { BrowserRouter as a, MemoryRouter as c, useLocation as d, useNavigate as f, useTransitionState as i, Router as l, require_react_production as m, init_react_textarea_autosize_browser_esm as n, Link as o, require_react_jsx_runtime_production as p, init_useTransitionState as r, init_dist$1 as s, index as t, init_dist as u };
|