hyperframes 0.9.42 → 0.9.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-PVPFYFWR.js → add-PBWYCL3W.js} +12 -12
- package/dist/{agentPromptGenerator-QIMZTO5D.js → agentPromptGenerator-MRCCPGJG.js} +7 -7
- package/dist/{animatedGifPrep-X5USFLFI.js → animatedGifPrep-RVIML56T.js} +7 -7
- package/dist/api.js +32 -32
- package/dist/{asset-OLENSTIE.js → asset-WXFAQU74.js} +2 -2
- package/dist/{assetCataloger-VJATOUSB.js → assetCataloger-3Y6ARZJU.js} +9 -9
- package/dist/{audio-SMF3FNRY.js → audio-4URPU6EM.js} +13 -13
- package/dist/{auth-IJYZGRVZ.js → auth-4BNNUYHH.js} +2 -2
- package/dist/{autoUpdate-YVVEXRSE.js → autoUpdate-AM6HZN4K.js} +2 -2
- package/dist/{avatars-MSL7UJ64.js → avatars-RZ756PP4.js} +11 -11
- package/dist/{backgroundChecks-SKGX7GNE.js → backgroundChecks-K3LNNL3P.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-C2EGSMHQ.js → batchRender-E6NKAC2P.js} +3 -3
- package/dist/{beats-2CWCAPKW.js → beats-KYGER22V.js} +8 -8
- package/dist/{benchmark-Q3WKGMQQ.js → benchmark-4AT5UIV5.js} +8 -8
- package/dist/{billing-DTOYQ5R2.js → billing-ND7ZR577.js} +11 -11
- package/dist/{browser-FDRUHM3D.js → browser-VCEYS447.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-N6PX6WPL.js → bundleWithLocalizedFonts-EBEIH5OH.js} +1 -1
- package/dist/{capture-OLD6MUVQ.js → capture-PCIPO3MD.js} +17 -17
- package/dist/{capture-WILR2NAA.js → capture-RX3Y5L6X.js} +9 -5
- package/dist/{captureCompositionFrame-CJYFKZYF.js → captureCompositionFrame-VR43BLIY.js} +14 -14
- package/dist/{catalog-BGG77HK7.js → catalog-OQMNUAGL.js} +15 -15
- package/dist/{catch-up-LSQX5YYD.js → catch-up-TCOJ7GPS.js} +6 -6
- package/dist/{check-W5AYQG7Q.js → check-I2CXH6V6.js} +44 -41
- package/dist/{checkAudio-ENWHXBQQ.js → checkAudio-LC656LFR.js} +10 -10
- package/dist/{checkBrowser-NXSZARNS.js → checkBrowser-TM2AWB5W.js} +34 -34
- package/dist/{chunk-G3JPQVAA.js → chunk-24JR2SYX.js} +5 -5
- package/dist/{chunk-EAV3UWJV.js → chunk-2CTD45M6.js} +175 -55
- package/dist/{chunk-VUQKOT2H.js → chunk-3HKROAYY.js} +1 -1
- package/dist/{chunk-AI7BGWQQ.js → chunk-3SDF5LNV.js} +1 -1
- package/dist/{chunk-R5RYKJXM.js → chunk-4DVFI4CY.js} +2 -2
- package/dist/{chunk-WHCWZVYT.js → chunk-4HQBKDD5.js} +24 -16
- package/dist/{chunk-LB4SWKKT.js → chunk-4ISFYEK6.js} +2 -2
- package/dist/{chunk-L3V2U3B7.js → chunk-4LSHFL5U.js} +1 -1
- package/dist/chunk-4NTCQF3L.js +28 -0
- package/dist/{chunk-IIB4RKOO.js → chunk-4OBVCIE6.js} +1 -1
- package/dist/{chunk-UNGZUDSY.js → chunk-4UL5HG45.js} +2 -2
- package/dist/{chunk-SDYE6O36.js → chunk-4V2WIH6O.js} +1 -1
- package/dist/{chunk-O32NKLL7.js → chunk-5CFYW77X.js} +3 -3
- package/dist/{chunk-D6Z45XIV.js → chunk-5P4T7XSI.js} +1 -1
- package/dist/chunk-5QHO5HO6.js +5069 -0
- package/dist/{chunk-55FOZZL4.js → chunk-5TQ3XSZ5.js} +2 -2
- package/dist/{chunk-CKHKLO66.js → chunk-5YRY3KOO.js} +1 -1
- package/dist/{chunk-P6LJ4Y32.js → chunk-662337AC.js} +501 -135
- package/dist/{chunk-2ERBA45F.js → chunk-6KFJOESK.js} +1 -1
- package/dist/{chunk-YKWXBWMC.js → chunk-6WGYH7UL.js} +7 -7
- package/dist/{chunk-OQULQLBF.js → chunk-7CNA3BLG.js} +1 -1
- package/dist/{chunk-EJFCDDNU.js → chunk-7VRCBL2P.js} +3 -3
- package/dist/{chunk-7LH55FQU.js → chunk-7X3TXSS7.js} +2 -2
- package/dist/{chunk-YZF2MCCQ.js → chunk-AJT5JWT2.js} +1 -1
- package/dist/{chunk-YSXXCHAK.js → chunk-AQF6KYT6.js} +1 -1
- package/dist/{chunk-MWCD72EP.js → chunk-AWRRKDK6.js} +7 -7
- package/dist/{chunk-U6XXSW4T.js → chunk-B2LW4TZS.js} +1 -1
- package/dist/{chunk-2AMRYB3K.js → chunk-CDRO5ELH.js} +1 -1
- package/dist/{chunk-HYTEVW4D.js → chunk-CILU22JH.js} +3 -3
- package/dist/{chunk-PV4XID2A.js → chunk-CNAOJ7XI.js} +1 -1
- package/dist/{chunk-OA5UPXOT.js → chunk-D3GKW6D5.js} +1 -1
- package/dist/{chunk-2NLGEZO2.js → chunk-DDXHYDJW.js} +1 -1
- package/dist/{chunk-TVSUPOOH.js → chunk-DNDMJYSA.js} +169 -88
- package/dist/{chunk-ZRGFHCYF.js → chunk-DRJGIOKL.js} +1 -1
- package/dist/{chunk-2OEBLOKC.js → chunk-DSBHNO2I.js} +1 -1
- package/dist/{chunk-Q7BIVJBN.js → chunk-DWWDGSUK.js} +3 -3
- package/dist/{chunk-LZGTFAA7.js → chunk-E2JCCAQH.js} +1 -1
- package/dist/{chunk-NLXIVOO4.js → chunk-EEGCJEFW.js} +16 -15
- package/dist/{chunk-KNRBPQWD.js → chunk-ELGTOGC4.js} +4 -4
- package/dist/{chunk-RXP6C4PA.js → chunk-FMJSP6RE.js} +1 -1
- package/dist/{chunk-VLR5SHKE.js → chunk-FNTJDXDA.js} +2 -2
- package/dist/{chunk-PIVPTSED.js → chunk-FTJ2633N.js} +2 -2
- package/dist/{chunk-2NFWRLAI.js → chunk-FVLLWBNW.js} +2 -2
- package/dist/{chunk-3PPOHWG6.js → chunk-G5Q5QVD6.js} +2 -2
- package/dist/{chunk-NY3TN4NK.js → chunk-GTFOYMNG.js} +13 -13
- package/dist/{chunk-JZM4IYTK.js → chunk-GTLJLKC3.js} +1 -1
- package/dist/{chunk-WRVQUCIT.js → chunk-GV7AJT47.js} +1 -1
- package/dist/{chunk-QPYRLL4G.js → chunk-HVYZ3JPG.js} +3 -3
- package/dist/{chunk-LS4SHCI6.js → chunk-IA6JOQ24.js} +1 -1
- package/dist/{chunk-LRAPJ2Z3.js → chunk-IWY6JYLQ.js} +7 -7
- package/dist/{chunk-U52MVFYY.js → chunk-J3JVHR4Q.js} +2 -2
- package/dist/{chunk-TPFKGC3K.js → chunk-J4IFO37U.js} +1 -1
- package/dist/{chunk-HCXEKCOW.js → chunk-JBIFA5TI.js} +8 -7
- package/dist/{chunk-WEUSJHRG.js → chunk-JVRVNQ5E.js} +2 -2
- package/dist/{chunk-7DWGDF5O.js → chunk-KCG6JOHA.js} +6 -6
- package/dist/{chunk-36OFSWMN.js → chunk-KDFP2KJE.js} +1 -1
- package/dist/{chunk-SQO6K7DL.js → chunk-KPAGSS3V.js} +1 -1
- package/dist/{chunk-KLJTYDE6.js → chunk-L6EXMTBD.js} +1 -1
- package/dist/{chunk-PX3WK4GO.js → chunk-LQHZRVUZ.js} +3 -3
- package/dist/{chunk-MID6NR7Y.js → chunk-M7KB72OP.js} +2 -2
- package/dist/chunk-MI54IK7G.js +21 -0
- package/dist/{chunk-QOQACWDO.js → chunk-MN7YHYKJ.js} +6 -6
- package/dist/{chunk-TTCNUS5M.js → chunk-MRM2XDPQ.js} +0 -13
- package/dist/{chunk-DSOKEKOU.js → chunk-MRVMBI72.js} +3 -3
- package/dist/{chunk-QJ2HNOVM.js → chunk-N3QBAZHB.js} +1 -1
- package/dist/{chunk-3Z5BDNQS.js → chunk-N3XJDGNQ.js} +2 -2
- package/dist/{chunk-U76XF5M3.js → chunk-NACRRZVF.js} +9 -9
- package/dist/{chunk-PYSZIWKB.js → chunk-NE6IGJWH.js} +5 -5
- package/dist/{chunk-C3RW7LUY.js → chunk-NRQ6224T.js} +3 -3
- package/dist/{chunk-TVU2LN3O.js → chunk-O6LDGDLP.js} +2 -2
- package/dist/{chunk-RASXOLWL.js → chunk-O7N7G7S4.js} +2 -2
- package/dist/{chunk-B3HOHFTC.js → chunk-OEF3LZOM.js} +10 -11
- package/dist/{chunk-COYSN3BZ.js → chunk-OFT5C4KU.js} +8 -8
- package/dist/{chunk-76XYWTJF.js → chunk-OOAKNNIE.js} +1 -1
- package/dist/{chunk-NJL7AWMD.js → chunk-P4CGIO26.js} +2 -2
- package/dist/{chunk-KW2H7CPF.js → chunk-PAOREGSJ.js} +3 -3
- package/dist/{chunk-YKGEUAG5.js → chunk-PXUR442C.js} +1 -1
- package/dist/{chunk-FCQX4P4A.js → chunk-RE5ZRYU7.js} +2 -2
- package/dist/{chunk-FP3D7WA2.js → chunk-RFTV3N6Z.js} +2 -2
- package/dist/{chunk-SCT6GWIX.js → chunk-RUF24NI3.js} +7 -7
- package/dist/{chunk-3XROEV2T.js → chunk-SFT4B2BE.js} +1 -1
- package/dist/{chunk-IYLROLKC.js → chunk-SZ2UVYHO.js} +2 -2
- package/dist/{chunk-GQR4IMJS.js → chunk-T4W4KTWZ.js} +1 -1
- package/dist/{chunk-PKR23IEK.js → chunk-TJQOZ4ND.js} +1 -1
- package/dist/{chunk-F52RMX7I.js → chunk-TSLPPATN.js} +2 -2
- package/dist/{chunk-YRZHOWVU.js → chunk-UYWXEZ5A.js} +1 -1
- package/dist/{chunk-JEFZ5T3L.js → chunk-V7CCM23Q.js} +5 -5
- package/dist/{chunk-D5PHHIR6.js → chunk-VFFOACU4.js} +7 -6
- package/dist/chunk-VMK7HT4N.js +22 -0
- package/dist/{chunk-2CMUWGDP.js → chunk-VRJSRVCN.js} +6 -4
- package/dist/{chunk-2SGMXRVW.js → chunk-VRYVPBY2.js} +1 -1
- package/dist/{chunk-OT6L5A2C.js → chunk-XBKRWN3Z.js} +1 -1
- package/dist/{chunk-77E2UIIR.js → chunk-XCJ2YYMV.js} +11 -1
- package/dist/{chunk-TI5OIHLU.js → chunk-XFCPN7CW.js} +4 -4
- package/dist/{chunk-2S7VBKVL.js → chunk-Y37LN5M7.js} +4 -4
- package/dist/{chunk-UWOTEN5M.js → chunk-YPHYYGQN.js} +1 -1
- package/dist/{chunk-NL4RCLQF.js → chunk-YTHXSYYB.js} +1 -1
- package/dist/{chunk-4LQH2H42.js → chunk-YUONNAEO.js} +2 -2
- package/dist/{chunk-2RK7CWEE.js → chunk-ZFBBKKWD.js} +1 -1
- package/dist/{chunk-H6ZSMFBC.js → chunk-ZRFUW7EC.js} +2 -2
- package/dist/{chunk-U7BEIMDM.js → chunk-ZRQGXIE4.js} +2 -2
- package/dist/{chunk-IBUD74YN.js → chunk-ZRS3GA2C.js} +1 -1
- package/dist/{clean-H2OTSR4C.js → clean-P3F4X7DU.js} +18 -18
- package/dist/cli.js +63 -63
- package/dist/{cloud-FLDTOMLP.js → cloud-7X7YFWP6.js} +4 -4
- package/dist/{cloudrun-G4QTF662.js → cloudrun-P233BDCV.js} +4 -4
- package/dist/commands/layout-audit.browser.js +39 -6
- package/dist/{compare-MGSLRTS6.js → compare-YVW2MNLX.js} +43 -34
- package/dist/{compiler-YRP76MBZ.js → compiler-6R6ZIFUT.js} +3 -3
- package/dist/{component-KNVAFI37.js → component-IAS2UWMX.js} +3 -3
- package/dist/{compositions-PKCCDB2K.js → compositions-XROGY6C5.js} +11 -11
- package/dist/{contactSheet-KS5QZYKO.js → contactSheet-KCB4R2QC.js} +2 -2
- package/dist/{curve-NY4WYFAU.js → curve-FOHKBFN3.js} +11 -11
- package/dist/{cuts-ASA3JFOQ.js → cuts-AHSJXABL.js} +12 -12
- package/dist/{delete-UL6ENR7H.js → delete-EKH7MHPJ.js} +2 -2
- package/dist/{deploy-Y4QBJZ6H.js → deploy-J7OC62RA.js} +2 -2
- package/dist/{describeProject-UACCDNWT.js → describeProject-77GZDE5R.js} +8 -8
- package/dist/{destroy-4D4F3ZO2.js → destroy-V3D2W7BS.js} +2 -2
- package/dist/{diff-SIYAISOM.js → diff-354GPO3D.js} +32 -32
- package/dist/{dist-E4C3FE62.js → dist-4ZDHU5RE.js} +1 -1
- package/dist/{dist-LR5GJ5FN.js → dist-J47GRGNF.js} +2 -2
- package/dist/{dist-UK4LEEYP.js → dist-PE7SGQJJ.js} +9 -9
- package/dist/docs/rendering.md +4 -2
- package/dist/{doctor-WPOQLSKK.js → doctor-BV7L7SRT.js} +12 -12
- package/dist/{energy-XBPOWNQG.js → energy-Q5FXRVQV.js} +12 -12
- package/dist/{events-SNMOQWPL.js → events-742J3NBI.js} +5 -5
- package/dist/{events-WCQPGLGF.js → events-B4WVC5AB.js} +2 -2
- package/dist/{events-RW32OWJ3.js → events-SI3ZKFS6.js} +13 -13
- package/dist/{execute-NQIUYJJR.js → execute-GKGCVYI5.js} +24 -24
- package/dist/{extract-B6GLSKQD.js → extract-PMKFZO7E.js} +12 -12
- package/dist/{face-CHUPD3P2.js → face-7BCV34NY.js} +12 -12
- package/dist/{feedback-5K6OBADI.js → feedback-5QHZHOAB.js} +9 -9
- package/dist/{ffmpeg-TP4HQ6HA.js → ffmpeg-X6EJXAZG.js} +7 -7
- package/dist/{figma-3HZU5QHV.js → figma-ZEUPIDFA.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/{frames-7WXYL7SM.js → frames-2XR4W2CZ.js} +14 -14
- package/dist/{generate-TNCO7TVJ.js → generate-DP66PBYJ.js} +23 -23
- package/dist/{get-GDBAMMOT.js → get-IMS2OU6P.js} +2 -2
- package/dist/{gpuPolicy-HB6WGG2O.js → gpuPolicy-UVI53RWS.js} +7 -7
- package/dist/{grade-compare-ZSLOCFCO.js → grade-compare-UF7DLDAV.js} +39 -35
- package/dist/{heifImagePrep-OEVEJGGI.js → heifImagePrep-FUJHB4LQ.js} +8 -8
- package/dist/{help-743LD2LL.js → help-TY2MP2TQ.js} +1 -1
- package/dist/{history-SSJR4WYF.js → history-DKG2JGSD.js} +8 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-JRJZJB3C.js → info-VFG2B7ZL.js} +13 -13
- package/dist/{init-ZVORQQEV.js → init-5BLQ6PDO.js} +36 -33
- package/dist/{ink-CQQZCRCK.js → ink-KRN76MRO.js} +12 -12
- package/dist/{inspect-RDVDB6VK.js → inspect-365KH7H3.js} +32 -32
- package/dist/{installer-4U3RIUQT.js → installer-ZH7PW5K6.js} +5 -5
- package/dist/{keyframes-6WG4W5PA.js → keyframes-UYC63QVS.js} +8 -8
- package/dist/{lambda-XUIZE3IE.js → lambda-PZH42KFA.js} +12 -12
- package/dist/{layout-4SJQC47M.js → layout-XWDWOSA5.js} +32 -32
- package/dist/{lint-G65N7CS2.js → lint-TQXZ7GL7.js} +9 -9
- package/dist/{lintProject-O3YGJFWF.js → lintProject-7C4U6NHF.js} +1 -1
- package/dist/{list-W5MOGWU2.js → list-5AVI7TJ2.js} +2 -2
- package/dist/{localPage-WVE6CSG6.js → localPage-6EKIGV6E.js} +7 -7
- package/dist/{login-FFBUJDH5.js → login-L3BUIODP.js} +4 -4
- package/dist/{look-MG4NOSAA.js → look-VZ3IIWDR.js} +12 -12
- package/dist/{manager-X624GNOX.js → manager-2XFHHTPL.js} +8 -8
- package/dist/{measure-YVHJ5JCK.js → measure-DE2CFPJD.js} +11 -11
- package/dist/{media-treatment-OUB6IV3L.js → media-treatment-NDHAMOOD.js} +13 -13
- package/dist/{media-use-L5NFAUJD.js → media-use-4ERVRLZ5.js} +3 -3
- package/dist/{models-MDWYHZM3.js → models-JBK6U5NA.js} +12 -12
- package/dist/{motionShot-RNPMBSTK.js → motionShot-FOP7CL6M.js} +17 -17
- package/dist/{normalize-audio-LYB5EBPG.js → normalize-audio-UPZWE2O7.js} +8 -8
- package/dist/{open-SKRLVSHT.js → open-AXJDHILO.js} +16 -15
- package/dist/{parakeetRunner-P7QWHUUX.js → parakeetRunner-KMPJYINS.js} +14 -14
- package/dist/{pipeline-ZSOXUBMP.js → pipeline-H3437BKV.js} +11 -11
- package/dist/{plan-AY5LML5J.js → plan-SF3Y37BN.js} +19 -19
- package/dist/{play-KRUS44CS.js → play-IXLKQZ35.js} +20 -20
- package/dist/{preflight-H6R6BRIY.js → preflight-HVONBUVK.js} +8 -8
- package/dist/{present-X6SPEAVS.js → present-FIIYG2YG.js} +15 -15
- package/dist/{preview-EJ5RKQ6T.js → preview-JNECUPFO.js} +22 -21
- package/dist/{probe-MDN4Z4YK.js → probe-4RC4LRA3.js} +12 -12
- package/dist/{producer-EV42W3WA.js → producer-CSBK6Q7R.js} +1 -1
- package/dist/{projectConfig-V2J4KDMJ.js → projectConfig-CFXJN3YI.js} +7 -7
- package/dist/{publication-NMKES2LT.js → publication-NBTDZWMF.js} +2 -2
- package/dist/{publish-RN2EFSW4.js → publish-F6RXUQXK.js} +14 -14
- package/dist/{remove-background-GMNDLIUE.js → remove-background-HFKG3OWH.js} +12 -12
- package/dist/{render-MK6J4EE6.js → render-A2CRGGTC.js} +5 -5
- package/dist/{render-LWXMKOPY.js → render-D25M7I25.js} +25 -25
- package/dist/{render-YU4CND2E.js → render-QLC4I4F6.js} +42 -36
- package/dist/{render-batch-XWJCSVTL.js → render-batch-DRZBVBXU.js} +5 -5
- package/dist/renderSetupWorker.js +3 -3
- package/dist/{resolver-UTP745MM.js → resolver-R6CDU4SD.js} +5 -5
- package/dist/{reverse-JCFSUS6E.js → reverse-J3WPUN2P.js} +1 -1
- package/dist/{screenshotCapture-VYNS5DS7.js → screenshotCapture-I57G7FD4.js} +9 -9
- package/dist/{service-QXTVJJWP.js → service-XLJJOPZW.js} +11 -11
- package/dist/{share-7JCQNISA.js → share-MM4OAOVC.js} +14 -14
- package/dist/{sherpa-URMLZWQ5.js → sherpa-O4ROPHAX.js} +13 -13
- package/dist/{skills-YOAI5LWU.js → skills-727V22D6.js} +8 -8
- package/dist/{skillsUpdateCheck-PPNYOFHU.js → skillsUpdateCheck-Q3LEFAQL.js} +3 -3
- package/dist/{snapshot-D3EUIPRJ.js → snapshot-W2GURQLH.js} +47 -45
- package/dist/{src-NPNKI43D.js → src-5KMNYQBR.js} +6 -6
- package/dist/{src-UELRNQDE.js → src-GZ667VPB.js} +9 -9
- package/dist/{start-FO7YCAHK.js → start-DBV7QAPP.js} +20 -20
- package/dist/{staticProjectServer-P4IN7EVB.js → staticProjectServer-SHHLJ665.js} +19 -19
- package/dist/{status-TJIUQ7UM.js → status-TKY5HXAJ.js} +11 -11
- package/dist/studio/assets/{codec-CKqLGYc6.js → codec-DYhkxayl.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-DoEYqOIa.js → hyperframes-player-pPwFQY2W.js} +1 -1
- package/dist/studio/assets/{index-4VGEAZyf.css → index-CU24FmKd.css} +1 -1
- package/dist/studio/assets/{index-DLyQ91Ek.js → index-Crhhpl7F.js} +133 -133
- package/dist/studio/assets/{index-s9iqoWnr.js → index-Cv1BkoPn.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-B-ReRg6i.js → pausedVideoDecoder-Cns-60-8.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-J3E5XKFX.js → studio-api-BVDFBW6C.js} +9 -9
- package/dist/{studioServer-TQTSD2GL.js → studioServer-WCKPNFUL.js} +57 -56
- package/dist/{sync-MVK2CEDO.js → sync-MDDTLP4L.js} +12 -12
- package/dist/{telemetry-SPKSMX53.js → telemetry-WHEYMBBO.js} +5 -5
- package/dist/{templates-LN35KOGT.js → templates-RV3BMC3Z.js} +11 -11
- package/dist/{timeline-TL55I5ZW.js → timeline-6O3AP74K.js} +18 -18
- package/dist/{tokens-HWMGSCUI.js → tokens-X2AG5WQR.js} +2 -2
- package/dist/{transcribe-M3RZA7RF.js → transcribe-PKREMNAH.js} +26 -26
- package/dist/{transcribe-PNZJBDYF.js → transcribe-WQHTXFV6.js} +11 -11
- package/dist/{update-UNVM4CFJ.js → update-EZS7C5PI.js} +9 -9
- package/dist/{updateCheck-YCIYGSQ4.js → updateCheck-UIM3QXMV.js} +2 -2
- package/dist/{upgrade-DOZUP7JR.js → upgrade-BFXHWNNZ.js} +3 -3
- package/dist/{urlDownloader-EWUKAG7C.js → urlDownloader-KN3HISCG.js} +6 -6
- package/dist/{usage-772JV45U.js → usage-RVXL5V3C.js} +1 -1
- package/dist/{validate-YX233KFG.js → validate-KQ5TLZ33.js} +25 -25
- package/dist/{video-ZQCA2HAZ.js → video-FCDR6ZEX.js} +9 -9
- package/dist/{voices-L67GETVN.js → voices-YEQXQKGH.js} +20 -20
- package/dist/warmCheck.js +46 -44
- package/dist/warmCheckClient.js +5 -4
- package/package.json +6 -5
- package/dist/chunk-J6MRFWGW.js +0 -5069
- package/dist/chunk-K4MJX7SR.js +0 -17
|
@@ -3078,15 +3078,34 @@ var require_data = __commonJS({
|
|
|
3078
3078
|
}
|
|
3079
3079
|
});
|
|
3080
3080
|
|
|
3081
|
-
// ../../node_modules/.bun/fast-uri@3.1.
|
|
3081
|
+
// ../../node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/lib/utils.js
|
|
3082
3082
|
var require_utils = __commonJS({
|
|
3083
|
-
"../../node_modules/.bun/fast-uri@3.1.
|
|
3083
|
+
"../../node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3084
3084
|
"use strict";
|
|
3085
3085
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3086
3086
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
3087
|
+
var isPort = RegExp.prototype.test.bind(/^\d*$/u);
|
|
3087
3088
|
var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
3088
3089
|
var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
3089
|
-
var isPathCharacter = RegExp.prototype.test.bind(/^[
|
|
3090
|
+
var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
|
|
3091
|
+
var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
|
|
3092
|
+
var isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
|
|
3093
|
+
var BYTE_HEX = new Array(256);
|
|
3094
|
+
{
|
|
3095
|
+
const HEX_DIGITS = "0123456789ABCDEF";
|
|
3096
|
+
for (let i = 0; i < 256; i++) {
|
|
3097
|
+
BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3100
|
+
function percentEncodeNonAscii(cp) {
|
|
3101
|
+
if (cp < 2048) {
|
|
3102
|
+
return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
|
|
3103
|
+
}
|
|
3104
|
+
if (cp < 65536) {
|
|
3105
|
+
return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
|
|
3106
|
+
}
|
|
3107
|
+
return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
|
|
3108
|
+
}
|
|
3090
3109
|
function stringArrayToHexStripped(input) {
|
|
3091
3110
|
let acc = "";
|
|
3092
3111
|
let code = 0;
|
|
@@ -3111,91 +3130,105 @@ var require_utils = __commonJS({
|
|
|
3111
3130
|
}
|
|
3112
3131
|
return acc;
|
|
3113
3132
|
}
|
|
3133
|
+
var isHextet = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);
|
|
3134
|
+
var isIPvFuture = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);
|
|
3135
|
+
var isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
|
|
3114
3136
|
var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
|
|
3115
|
-
function
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
if (hex !== "") {
|
|
3123
|
-
address.push(hex);
|
|
3124
|
-
} else {
|
|
3125
|
-
output.error = true;
|
|
3126
|
-
return false;
|
|
3137
|
+
function isZoneIdentifier(zone) {
|
|
3138
|
+
if (zone.length === 0) return false;
|
|
3139
|
+
for (let i = 0; i < zone.length; i++) {
|
|
3140
|
+
if (isZoneCharacter(zone[i])) continue;
|
|
3141
|
+
if (zone[i] === "%" && i + 2 < zone.length && isHexPair(zone.slice(i + 1, i + 3))) {
|
|
3142
|
+
i += 2;
|
|
3143
|
+
continue;
|
|
3127
3144
|
}
|
|
3128
|
-
|
|
3145
|
+
return false;
|
|
3129
3146
|
}
|
|
3130
3147
|
return true;
|
|
3131
3148
|
}
|
|
3132
|
-
function
|
|
3133
|
-
let
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
let
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
}
|
|
3145
|
-
if (cursor === ":") {
|
|
3146
|
-
if (endipv6Encountered === true) {
|
|
3147
|
-
endIpv6 = true;
|
|
3148
|
-
}
|
|
3149
|
-
if (!consume(buffer, address, output)) {
|
|
3150
|
-
break;
|
|
3151
|
-
}
|
|
3152
|
-
if (++tokenCount > 7) {
|
|
3153
|
-
output.error = true;
|
|
3154
|
-
break;
|
|
3155
|
-
}
|
|
3156
|
-
if (i > 0 && input[i - 1] === ":") {
|
|
3157
|
-
endipv6Encountered = true;
|
|
3158
|
-
}
|
|
3159
|
-
address.push(":");
|
|
3160
|
-
continue;
|
|
3161
|
-
} else if (cursor === "%") {
|
|
3162
|
-
if (!consume(buffer, address, output)) {
|
|
3163
|
-
break;
|
|
3149
|
+
function compressIPv6ZeroRun(hextets) {
|
|
3150
|
+
let bestStart = -1;
|
|
3151
|
+
let bestLength = 0;
|
|
3152
|
+
let runStart = -1;
|
|
3153
|
+
let runLength = 0;
|
|
3154
|
+
for (let i = 0; i < hextets.length; i++) {
|
|
3155
|
+
if (hextets[i] === "0") {
|
|
3156
|
+
if (runStart === -1) runStart = i;
|
|
3157
|
+
runLength++;
|
|
3158
|
+
if (runLength > bestLength) {
|
|
3159
|
+
bestLength = runLength;
|
|
3160
|
+
bestStart = runStart;
|
|
3164
3161
|
}
|
|
3165
|
-
consume = consumeIsZone;
|
|
3166
3162
|
} else {
|
|
3167
|
-
|
|
3168
|
-
|
|
3163
|
+
runStart = -1;
|
|
3164
|
+
runLength = 0;
|
|
3169
3165
|
}
|
|
3170
3166
|
}
|
|
3171
|
-
if (
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3167
|
+
if (bestLength < 2) return hextets.join(":");
|
|
3168
|
+
const head = hextets.slice(0, bestStart).join(":");
|
|
3169
|
+
const tail = hextets.slice(bestStart + bestLength).join(":");
|
|
3170
|
+
return head + "::" + tail;
|
|
3171
|
+
}
|
|
3172
|
+
function normalizeIPv6Address(input) {
|
|
3173
|
+
const compression = input.indexOf("::");
|
|
3174
|
+
if (compression !== -1 && input.indexOf("::", compression + 1) !== -1) return void 0;
|
|
3175
|
+
const left = compression === -1 ? input.split(":") : input.slice(0, compression).split(":");
|
|
3176
|
+
const right = compression === -1 ? [] : input.slice(compression + 2).split(":");
|
|
3177
|
+
if (compression !== -1) {
|
|
3178
|
+
if (left.length === 1 && left[0] === "") left.length = 0;
|
|
3179
|
+
if (right.length === 1 && right[0] === "") right.length = 0;
|
|
3180
|
+
}
|
|
3181
|
+
const parts = left.concat(right);
|
|
3182
|
+
let hextetCount = 0;
|
|
3183
|
+
for (let i = 0; i < parts.length; i++) {
|
|
3184
|
+
const part = parts[i];
|
|
3185
|
+
if (part === "") return void 0;
|
|
3186
|
+
if (part.indexOf(".") !== -1) {
|
|
3187
|
+
if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv4(part)) return void 0;
|
|
3188
|
+
hextetCount += 2;
|
|
3189
|
+
continue;
|
|
3178
3190
|
}
|
|
3191
|
+
if (!isHextet(part)) return void 0;
|
|
3192
|
+
parts[i] = parseInt(part, 16).toString(16);
|
|
3193
|
+
hextetCount++;
|
|
3179
3194
|
}
|
|
3180
|
-
|
|
3181
|
-
|
|
3195
|
+
if (compression === -1) {
|
|
3196
|
+
if (hextetCount !== 8) return void 0;
|
|
3197
|
+
return compressIPv6ZeroRun(parts);
|
|
3198
|
+
}
|
|
3199
|
+
if (hextetCount >= 8) return void 0;
|
|
3200
|
+
const expanded = parts.slice(0, left.length);
|
|
3201
|
+
for (let i = hextetCount; i < 8; i++) expanded.push("0");
|
|
3202
|
+
for (let i = left.length; i < parts.length; i++) expanded.push(parts[i]);
|
|
3203
|
+
return compressIPv6ZeroRun(expanded);
|
|
3182
3204
|
}
|
|
3183
3205
|
function normalizeIPv6(host) {
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
}
|
|
3187
|
-
|
|
3188
|
-
if (
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3206
|
+
const bracketed = host[0] === "[" && host[host.length - 1] === "]";
|
|
3207
|
+
const hasBracket = host[0] === "[" || host[host.length - 1] === "]";
|
|
3208
|
+
if (hasBracket && !bracketed) return { host, isIPV6: false, error: true };
|
|
3209
|
+
let input = bracketed ? host.slice(1, -1) : host;
|
|
3210
|
+
if (bracketed && isIPvFuture(input)) {
|
|
3211
|
+
input = input.toLowerCase();
|
|
3212
|
+
return { host: `[${input}]`, escapedHost: input, isIPV6: false, isIPVFuture: true };
|
|
3213
|
+
}
|
|
3214
|
+
if (findToken(input, ":") < 2) {
|
|
3215
|
+
return { host, isIPV6: false, error: bracketed };
|
|
3216
|
+
}
|
|
3217
|
+
let zoneIdentifier = "";
|
|
3218
|
+
const zoneSeparator = input.indexOf("%");
|
|
3219
|
+
if (zoneSeparator !== -1) {
|
|
3220
|
+
const separatorLength = input.slice(zoneSeparator, zoneSeparator + 3).toLowerCase() === "%25" ? 3 : 1;
|
|
3221
|
+
zoneIdentifier = input.slice(zoneSeparator + separatorLength);
|
|
3222
|
+
if (!isZoneIdentifier(zoneIdentifier)) return { host, isIPV6: false, error: true };
|
|
3223
|
+
input = input.slice(0, zoneSeparator);
|
|
3224
|
+
}
|
|
3225
|
+
const address = normalizeIPv6Address(input);
|
|
3226
|
+
if (address === void 0) return { host, isIPV6: false, error: true };
|
|
3227
|
+
return {
|
|
3228
|
+
host: address + (zoneIdentifier ? "%" + zoneIdentifier : ""),
|
|
3229
|
+
escapedHost: address + (zoneIdentifier ? "%25" + zoneIdentifier : ""),
|
|
3230
|
+
isIPV6: true
|
|
3231
|
+
};
|
|
3199
3232
|
}
|
|
3200
3233
|
function findToken(str, token) {
|
|
3201
3234
|
let ind = 0;
|
|
@@ -3279,6 +3312,37 @@ var require_utils = __commonJS({
|
|
|
3279
3312
|
}
|
|
3280
3313
|
return output.join("");
|
|
3281
3314
|
}
|
|
3315
|
+
function removeDotSegmentsRelative(path) {
|
|
3316
|
+
if (path === "" || path[0] === "/") {
|
|
3317
|
+
return removeDotSegments(path);
|
|
3318
|
+
}
|
|
3319
|
+
const segments = path.split("/");
|
|
3320
|
+
const last = segments.length - 1;
|
|
3321
|
+
const output = [];
|
|
3322
|
+
let trailingDirectory = false;
|
|
3323
|
+
for (let i = 0; i <= last; i++) {
|
|
3324
|
+
const segment = segments[i];
|
|
3325
|
+
if (segment === "." || segment === "..") {
|
|
3326
|
+
if (segment === "..") {
|
|
3327
|
+
if (output.length !== 0 && output[output.length - 1] !== "..") {
|
|
3328
|
+
output.pop();
|
|
3329
|
+
} else {
|
|
3330
|
+
output.push("..");
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
trailingDirectory = i === last;
|
|
3334
|
+
} else {
|
|
3335
|
+
output.push(segment);
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
if (trailingDirectory && output[output.length - 1] !== "..") {
|
|
3339
|
+
output.push("");
|
|
3340
|
+
}
|
|
3341
|
+
if (output.length === 0 || output[0] === "" || output[0].includes(":")) {
|
|
3342
|
+
output.unshift(".");
|
|
3343
|
+
}
|
|
3344
|
+
return output.join("/");
|
|
3345
|
+
}
|
|
3282
3346
|
var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
|
|
3283
3347
|
var HOST_DELIM_RE = /[@/?#:]/g;
|
|
3284
3348
|
var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
@@ -3314,7 +3378,8 @@ var require_utils = __commonJS({
|
|
|
3314
3378
|
function normalizePathEncoding(input) {
|
|
3315
3379
|
let output = "";
|
|
3316
3380
|
for (let i = 0; i < input.length; i++) {
|
|
3317
|
-
|
|
3381
|
+
const ch = input[i];
|
|
3382
|
+
if (ch === "%" && i + 2 < input.length) {
|
|
3318
3383
|
const hex = input.slice(i + 1, i + 3);
|
|
3319
3384
|
if (isHexPair(hex)) {
|
|
3320
3385
|
const normalizedHex = hex.toUpperCase();
|
|
@@ -3328,10 +3393,152 @@ var require_utils = __commonJS({
|
|
|
3328
3393
|
continue;
|
|
3329
3394
|
}
|
|
3330
3395
|
}
|
|
3331
|
-
if (isPathCharacter(
|
|
3332
|
-
output +=
|
|
3396
|
+
if (isPathCharacter(ch)) {
|
|
3397
|
+
output += ch;
|
|
3398
|
+
} else {
|
|
3399
|
+
const code = input.charCodeAt(i);
|
|
3400
|
+
if (code < 128) {
|
|
3401
|
+
output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
|
|
3402
|
+
} else if (code < 55296 || code > 57343) {
|
|
3403
|
+
output += percentEncodeNonAscii(code);
|
|
3404
|
+
} else if (code <= 56319 && i + 1 < input.length) {
|
|
3405
|
+
const low = input.charCodeAt(i + 1);
|
|
3406
|
+
if (low >= 56320 && low <= 57343) {
|
|
3407
|
+
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
3408
|
+
i++;
|
|
3409
|
+
} else {
|
|
3410
|
+
output += percentEncodeNonAscii(65533);
|
|
3411
|
+
}
|
|
3412
|
+
} else {
|
|
3413
|
+
output += percentEncodeNonAscii(65533);
|
|
3414
|
+
}
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
return output;
|
|
3418
|
+
}
|
|
3419
|
+
function serializePathEncoding(input, pathNoScheme = false) {
|
|
3420
|
+
let output = "";
|
|
3421
|
+
let firstSegment = pathNoScheme && input[0] !== "/";
|
|
3422
|
+
for (let i = 0; i < input.length; i++) {
|
|
3423
|
+
const ch = input[i];
|
|
3424
|
+
if (ch === "%" && i + 2 < input.length) {
|
|
3425
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3426
|
+
if (isHexPair(hex)) {
|
|
3427
|
+
output += "%" + hex.toUpperCase();
|
|
3428
|
+
i += 2;
|
|
3429
|
+
continue;
|
|
3430
|
+
}
|
|
3431
|
+
}
|
|
3432
|
+
if (ch === "/") {
|
|
3433
|
+
firstSegment = false;
|
|
3434
|
+
}
|
|
3435
|
+
if (isPathCharacter(ch) && (ch !== ":" || !firstSegment)) {
|
|
3436
|
+
output += ch;
|
|
3437
|
+
} else {
|
|
3438
|
+
const code = input.charCodeAt(i);
|
|
3439
|
+
if (code < 128) {
|
|
3440
|
+
output += BYTE_HEX[code];
|
|
3441
|
+
} else if (code < 55296 || code > 57343) {
|
|
3442
|
+
output += percentEncodeNonAscii(code);
|
|
3443
|
+
} else if (code <= 56319 && i + 1 < input.length) {
|
|
3444
|
+
const low = input.charCodeAt(i + 1);
|
|
3445
|
+
if (low >= 56320 && low <= 57343) {
|
|
3446
|
+
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
3447
|
+
i++;
|
|
3448
|
+
} else {
|
|
3449
|
+
output += percentEncodeNonAscii(65533);
|
|
3450
|
+
}
|
|
3451
|
+
} else {
|
|
3452
|
+
output += percentEncodeNonAscii(65533);
|
|
3453
|
+
}
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
return output;
|
|
3457
|
+
}
|
|
3458
|
+
function encodeComponent(input, isAllowed) {
|
|
3459
|
+
let output = "";
|
|
3460
|
+
for (let i = 0; i < input.length; i++) {
|
|
3461
|
+
const ch = input[i];
|
|
3462
|
+
if (ch === "%" && i + 2 < input.length) {
|
|
3463
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3464
|
+
if (isHexPair(hex)) {
|
|
3465
|
+
output += "%" + hex.toUpperCase();
|
|
3466
|
+
i += 2;
|
|
3467
|
+
continue;
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
if (isAllowed(ch)) {
|
|
3471
|
+
output += ch;
|
|
3472
|
+
} else {
|
|
3473
|
+
const code = input.charCodeAt(i);
|
|
3474
|
+
if (code < 128) {
|
|
3475
|
+
output += BYTE_HEX[code];
|
|
3476
|
+
} else if (code < 55296 || code > 57343) {
|
|
3477
|
+
output += percentEncodeNonAscii(code);
|
|
3478
|
+
} else if (code <= 56319 && i + 1 < input.length) {
|
|
3479
|
+
const low = input.charCodeAt(i + 1);
|
|
3480
|
+
if (low >= 56320 && low <= 57343) {
|
|
3481
|
+
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
3482
|
+
i++;
|
|
3483
|
+
} else {
|
|
3484
|
+
output += percentEncodeNonAscii(65533);
|
|
3485
|
+
}
|
|
3486
|
+
} else {
|
|
3487
|
+
output += percentEncodeNonAscii(65533);
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3490
|
+
}
|
|
3491
|
+
return output;
|
|
3492
|
+
}
|
|
3493
|
+
function encodeUserinfo(input) {
|
|
3494
|
+
return encodeComponent(input, isUserinfoCharacter);
|
|
3495
|
+
}
|
|
3496
|
+
function encodeQuery(input) {
|
|
3497
|
+
return encodeComponent(input, isQueryFragmentCharacter);
|
|
3498
|
+
}
|
|
3499
|
+
function encodeFragment(input) {
|
|
3500
|
+
return encodeComponent(input, isQueryFragmentCharacter);
|
|
3501
|
+
}
|
|
3502
|
+
function isEscapeSafe(cp) {
|
|
3503
|
+
return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 42 || cp === 43 || cp === 45 || cp === 46 || cp === 47 || cp === 64 || cp === 95;
|
|
3504
|
+
}
|
|
3505
|
+
function normalizeQueryFragmentEncoding(input) {
|
|
3506
|
+
let output = "";
|
|
3507
|
+
for (let i = 0; i < input.length; i++) {
|
|
3508
|
+
const ch = input[i];
|
|
3509
|
+
if (ch === "%" && i + 2 < input.length) {
|
|
3510
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3511
|
+
if (isHexPair(hex)) {
|
|
3512
|
+
const normalizedHex = hex.toUpperCase();
|
|
3513
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
3514
|
+
if (isUnreserved(decoded)) {
|
|
3515
|
+
output += decoded;
|
|
3516
|
+
} else {
|
|
3517
|
+
output += "%" + normalizedHex;
|
|
3518
|
+
}
|
|
3519
|
+
i += 2;
|
|
3520
|
+
continue;
|
|
3521
|
+
}
|
|
3522
|
+
}
|
|
3523
|
+
if (isQueryFragmentCharacter(ch)) {
|
|
3524
|
+
output += ch;
|
|
3333
3525
|
} else {
|
|
3334
|
-
|
|
3526
|
+
const code = input.charCodeAt(i);
|
|
3527
|
+
if (code < 128) {
|
|
3528
|
+
output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
|
|
3529
|
+
} else if (code < 55296 || code > 57343) {
|
|
3530
|
+
output += percentEncodeNonAscii(code);
|
|
3531
|
+
} else if (code <= 56319 && i + 1 < input.length) {
|
|
3532
|
+
const low = input.charCodeAt(i + 1);
|
|
3533
|
+
if (low >= 56320 && low <= 57343) {
|
|
3534
|
+
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
3535
|
+
i++;
|
|
3536
|
+
} else {
|
|
3537
|
+
output += percentEncodeNonAscii(65533);
|
|
3538
|
+
}
|
|
3539
|
+
} else {
|
|
3540
|
+
output += percentEncodeNonAscii(65533);
|
|
3541
|
+
}
|
|
3335
3542
|
}
|
|
3336
3543
|
}
|
|
3337
3544
|
return output;
|
|
@@ -3354,14 +3561,18 @@ var require_utils = __commonJS({
|
|
|
3354
3561
|
function recomposeAuthority(component) {
|
|
3355
3562
|
const uriTokens = [];
|
|
3356
3563
|
if (component.userinfo !== void 0) {
|
|
3357
|
-
uriTokens.push(component.userinfo);
|
|
3564
|
+
uriTokens.push(encodeUserinfo(component.userinfo));
|
|
3358
3565
|
uriTokens.push("@");
|
|
3359
3566
|
}
|
|
3360
3567
|
if (component.host !== void 0) {
|
|
3361
|
-
let host =
|
|
3568
|
+
let host = component.host;
|
|
3362
3569
|
if (!isIPv4(host)) {
|
|
3363
|
-
|
|
3364
|
-
if (ipV6res.isIPV6
|
|
3570
|
+
let ipV6res = normalizeIPv6(host);
|
|
3571
|
+
if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
|
|
3572
|
+
host = normalizePercentEncoding(host, true);
|
|
3573
|
+
ipV6res = normalizeIPv6(host);
|
|
3574
|
+
}
|
|
3575
|
+
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
|
|
3365
3576
|
host = `[${ipV6res.escapedHost}]`;
|
|
3366
3577
|
} else {
|
|
3367
3578
|
host = reescapeHostDelimiters(host, false);
|
|
@@ -3370,8 +3581,12 @@ var require_utils = __commonJS({
|
|
|
3370
3581
|
uriTokens.push(host);
|
|
3371
3582
|
}
|
|
3372
3583
|
if (typeof component.port === "number" || typeof component.port === "string") {
|
|
3584
|
+
const port = String(component.port);
|
|
3585
|
+
if (!isPort(port)) {
|
|
3586
|
+
throw new TypeError("URI port is malformed.");
|
|
3587
|
+
}
|
|
3373
3588
|
uriTokens.push(":");
|
|
3374
|
-
uriTokens.push(
|
|
3589
|
+
uriTokens.push(port);
|
|
3375
3590
|
}
|
|
3376
3591
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3377
3592
|
}
|
|
@@ -3381,8 +3596,14 @@ var require_utils = __commonJS({
|
|
|
3381
3596
|
reescapeHostDelimiters,
|
|
3382
3597
|
normalizePercentEncoding,
|
|
3383
3598
|
normalizePathEncoding,
|
|
3599
|
+
serializePathEncoding,
|
|
3600
|
+
normalizeQueryFragmentEncoding,
|
|
3601
|
+
encodeUserinfo,
|
|
3602
|
+
encodeQuery,
|
|
3603
|
+
encodeFragment,
|
|
3384
3604
|
escapePreservingEscapes,
|
|
3385
3605
|
removeDotSegments,
|
|
3606
|
+
removeDotSegmentsRelative,
|
|
3386
3607
|
isIPv4,
|
|
3387
3608
|
isUUID,
|
|
3388
3609
|
normalizeIPv6,
|
|
@@ -3391,12 +3612,12 @@ var require_utils = __commonJS({
|
|
|
3391
3612
|
}
|
|
3392
3613
|
});
|
|
3393
3614
|
|
|
3394
|
-
// ../../node_modules/.bun/fast-uri@3.1.
|
|
3615
|
+
// ../../node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/lib/schemes.js
|
|
3395
3616
|
var require_schemes = __commonJS({
|
|
3396
|
-
"../../node_modules/.bun/fast-uri@3.1.
|
|
3617
|
+
"../../node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3397
3618
|
"use strict";
|
|
3398
3619
|
var { isUUID } = require_utils();
|
|
3399
|
-
var URN_REG =
|
|
3620
|
+
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
3400
3621
|
var supportedSchemeNames = (
|
|
3401
3622
|
/** @type {const} */
|
|
3402
3623
|
[
|
|
@@ -3457,9 +3678,10 @@ var require_schemes = __commonJS({
|
|
|
3457
3678
|
wsComponent.secure = void 0;
|
|
3458
3679
|
}
|
|
3459
3680
|
if (wsComponent.resourceName) {
|
|
3460
|
-
const
|
|
3681
|
+
const queryIndex = wsComponent.resourceName.indexOf("?");
|
|
3682
|
+
const path = queryIndex === -1 ? wsComponent.resourceName : wsComponent.resourceName.slice(0, queryIndex);
|
|
3461
3683
|
wsComponent.path = path && path !== "/" ? path : void 0;
|
|
3462
|
-
wsComponent.query =
|
|
3684
|
+
wsComponent.query = queryIndex === -1 ? void 0 : wsComponent.resourceName.slice(queryIndex + 1);
|
|
3463
3685
|
wsComponent.resourceName = void 0;
|
|
3464
3686
|
}
|
|
3465
3687
|
wsComponent.fragment = void 0;
|
|
@@ -3471,7 +3693,7 @@ var require_schemes = __commonJS({
|
|
|
3471
3693
|
return urnComponent;
|
|
3472
3694
|
}
|
|
3473
3695
|
const matches = urnComponent.path.match(URN_REG);
|
|
3474
|
-
if (matches) {
|
|
3696
|
+
if (matches && matches[0] === urnComponent.path) {
|
|
3475
3697
|
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
3476
3698
|
urnComponent.nid = matches[1].toLowerCase();
|
|
3477
3699
|
urnComponent.nss = matches[2];
|
|
@@ -3601,12 +3823,23 @@ var require_schemes = __commonJS({
|
|
|
3601
3823
|
}
|
|
3602
3824
|
});
|
|
3603
3825
|
|
|
3604
|
-
// ../../node_modules/.bun/fast-uri@3.1.
|
|
3826
|
+
// ../../node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/index.js
|
|
3605
3827
|
var require_fast_uri = __commonJS({
|
|
3606
|
-
"../../node_modules/.bun/fast-uri@3.1.
|
|
3828
|
+
"../../node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/index.js"(exports, module) {
|
|
3607
3829
|
"use strict";
|
|
3608
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding,
|
|
3830
|
+
var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3609
3831
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
3832
|
+
var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
|
|
3833
|
+
var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
|
|
3834
|
+
var MALFORMED_HOST_ERROR = "URI host is malformed.";
|
|
3835
|
+
var FORBIDDEN_DOMAIN_HOST_CHARACTER = /[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;
|
|
3836
|
+
function validateScheme(scheme) {
|
|
3837
|
+
const stringScheme = String(scheme);
|
|
3838
|
+
if (!VALID_SCHEME.test(stringScheme)) {
|
|
3839
|
+
throw new TypeError(MALFORMED_SCHEME_ERROR);
|
|
3840
|
+
}
|
|
3841
|
+
return stringScheme;
|
|
3842
|
+
}
|
|
3610
3843
|
function normalize(uri, options) {
|
|
3611
3844
|
if (typeof uri === "string") {
|
|
3612
3845
|
uri = /** @type {T} */
|
|
@@ -3619,7 +3852,37 @@ var require_fast_uri = __commonJS({
|
|
|
3619
3852
|
}
|
|
3620
3853
|
function resolve(baseURI, relativeURI, options) {
|
|
3621
3854
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
3622
|
-
const
|
|
3855
|
+
const {
|
|
3856
|
+
parsed: baseParsed,
|
|
3857
|
+
malformedAuthorityOrPort: baseMalformed,
|
|
3858
|
+
malformedPercentEncoding: baseMalformedPercentEncoding,
|
|
3859
|
+
malformedSchemeSpecific: baseMalformedSchemeSpecific,
|
|
3860
|
+
malformedHost: baseMalformedHost,
|
|
3861
|
+
malformedScheme: baseMalformedScheme
|
|
3862
|
+
} = parseWithStatus(baseURI, schemelessOptions);
|
|
3863
|
+
const {
|
|
3864
|
+
parsed: relativeParsed,
|
|
3865
|
+
malformedAuthorityOrPort: relativeMalformed,
|
|
3866
|
+
malformedPercentEncoding: relativeMalformedPercentEncoding,
|
|
3867
|
+
malformedSchemeSpecific: relativeMalformedSchemeSpecific,
|
|
3868
|
+
malformedHost: relativeMalformedHost,
|
|
3869
|
+
malformedScheme: relativeMalformedScheme
|
|
3870
|
+
} = parseWithStatus(relativeURI, schemelessOptions);
|
|
3871
|
+
if (baseMalformed || relativeMalformed || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) {
|
|
3872
|
+
throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
|
|
3873
|
+
}
|
|
3874
|
+
const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
|
|
3875
|
+
const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
|
|
3876
|
+
const resolvedHost = resolved.host;
|
|
3877
|
+
const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
|
|
3878
|
+
if (hasForbiddenDomainHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP)) {
|
|
3879
|
+
throw new Error(MALFORMED_HOST_ERROR);
|
|
3880
|
+
}
|
|
3881
|
+
canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
|
|
3882
|
+
const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !new RegExp("\\P{ASCII}", "u").test(resolvedHost);
|
|
3883
|
+
if (resolved.error && !encodedASCIIHost) {
|
|
3884
|
+
throw new Error(resolved.error);
|
|
3885
|
+
}
|
|
3623
3886
|
schemelessOptions.skipEscape = true;
|
|
3624
3887
|
return serialize(resolved, schemelessOptions);
|
|
3625
3888
|
}
|
|
@@ -3656,14 +3919,15 @@ var require_fast_uri = __commonJS({
|
|
|
3656
3919
|
if (relative.path[0] === "/") {
|
|
3657
3920
|
target.path = removeDotSegments(relative.path);
|
|
3658
3921
|
} else {
|
|
3659
|
-
|
|
3922
|
+
const baseHasAuthority = base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0;
|
|
3923
|
+
if (baseHasAuthority && !base.path) {
|
|
3660
3924
|
target.path = "/" + relative.path;
|
|
3661
3925
|
} else if (!base.path) {
|
|
3662
3926
|
target.path = relative.path;
|
|
3663
3927
|
} else {
|
|
3664
3928
|
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
3665
3929
|
}
|
|
3666
|
-
target.path = removeDotSegments(target.path);
|
|
3930
|
+
target.path = base.scheme === void 0 && !baseHasAuthority && target.path[0] !== "/" ? removeDotSegmentsRelative(target.path) : removeDotSegments(target.path);
|
|
3667
3931
|
}
|
|
3668
3932
|
target.query = relative.query;
|
|
3669
3933
|
}
|
|
@@ -3679,7 +3943,7 @@ var require_fast_uri = __commonJS({
|
|
|
3679
3943
|
function equal(uriA, uriB, options) {
|
|
3680
3944
|
const normalizedA = normalizeComparableURI(uriA, options);
|
|
3681
3945
|
const normalizedB = normalizeComparableURI(uriB, options);
|
|
3682
|
-
return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA
|
|
3946
|
+
return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA === normalizedB;
|
|
3683
3947
|
}
|
|
3684
3948
|
function serialize(cmpts, opts) {
|
|
3685
3949
|
const component = {
|
|
@@ -3700,19 +3964,23 @@ var require_fast_uri = __commonJS({
|
|
|
3700
3964
|
};
|
|
3701
3965
|
const options = Object.assign({}, opts);
|
|
3702
3966
|
const uriTokens = [];
|
|
3967
|
+
if (component.scheme) {
|
|
3968
|
+
component.scheme = validateScheme(component.scheme);
|
|
3969
|
+
}
|
|
3703
3970
|
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
3704
3971
|
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
3972
|
+
const hasAuthority = component.userinfo !== void 0 || component.host !== void 0 || component.port !== void 0;
|
|
3973
|
+
const schemelessReference = (component.scheme === void 0 || options.reference === "suffix") && !hasAuthority;
|
|
3974
|
+
const pathNoScheme = !options.skipEscape && schemelessReference;
|
|
3705
3975
|
if (component.path !== void 0) {
|
|
3706
3976
|
if (!options.skipEscape) {
|
|
3707
|
-
component.path =
|
|
3708
|
-
if (component.scheme !== void 0) {
|
|
3709
|
-
component.path = component.path.split("%3A").join(":");
|
|
3710
|
-
}
|
|
3977
|
+
component.path = serializePathEncoding(component.path, pathNoScheme);
|
|
3711
3978
|
} else {
|
|
3712
3979
|
component.path = normalizePercentEncoding(component.path);
|
|
3713
3980
|
}
|
|
3714
3981
|
}
|
|
3715
3982
|
if (options.reference !== "suffix" && component.scheme) {
|
|
3983
|
+
component.scheme = validateScheme(component.scheme);
|
|
3716
3984
|
uriTokens.push(component.scheme, ":");
|
|
3717
3985
|
}
|
|
3718
3986
|
const authority = recomposeAuthority(component);
|
|
@@ -3728,7 +3996,10 @@ var require_fast_uri = __commonJS({
|
|
|
3728
3996
|
if (component.path !== void 0) {
|
|
3729
3997
|
let s = component.path;
|
|
3730
3998
|
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
3731
|
-
s = removeDotSegments(s);
|
|
3999
|
+
s = schemelessReference && s[0] !== "/" ? removeDotSegmentsRelative(s) : removeDotSegments(s);
|
|
4000
|
+
}
|
|
4001
|
+
if (schemelessReference) {
|
|
4002
|
+
s = serializePathEncoding(s, true);
|
|
3732
4003
|
}
|
|
3733
4004
|
if (authority === void 0 && s[0] === "/" && s[1] === "/") {
|
|
3734
4005
|
s = "/%2F" + s.slice(2);
|
|
@@ -3736,14 +4007,16 @@ var require_fast_uri = __commonJS({
|
|
|
3736
4007
|
uriTokens.push(s);
|
|
3737
4008
|
}
|
|
3738
4009
|
if (component.query !== void 0) {
|
|
3739
|
-
uriTokens.push("?", component.query);
|
|
4010
|
+
uriTokens.push("?", encodeQuery(component.query));
|
|
3740
4011
|
}
|
|
3741
4012
|
if (component.fragment !== void 0) {
|
|
3742
|
-
uriTokens.push("#", component.fragment);
|
|
4013
|
+
uriTokens.push("#", encodeFragment(component.fragment));
|
|
3743
4014
|
}
|
|
3744
4015
|
return uriTokens.join("");
|
|
3745
4016
|
}
|
|
3746
4017
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
4018
|
+
var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
4019
|
+
var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
|
|
3747
4020
|
function getParseError(parsed, matches) {
|
|
3748
4021
|
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
|
|
3749
4022
|
return 'URI path must start with "/" when authority is present.';
|
|
@@ -3753,6 +4026,53 @@ var require_fast_uri = __commonJS({
|
|
|
3753
4026
|
}
|
|
3754
4027
|
return void 0;
|
|
3755
4028
|
}
|
|
4029
|
+
function hasMalformedPercentEncoding(component) {
|
|
4030
|
+
if (component === void 0) return false;
|
|
4031
|
+
let percent = component.indexOf("%");
|
|
4032
|
+
while (percent !== -1) {
|
|
4033
|
+
if (percent + 2 >= component.length || !/^[\da-f]{2}$/iu.test(component.slice(percent + 1, percent + 3))) {
|
|
4034
|
+
return true;
|
|
4035
|
+
}
|
|
4036
|
+
percent = component.indexOf("%", percent + 3);
|
|
4037
|
+
}
|
|
4038
|
+
return false;
|
|
4039
|
+
}
|
|
4040
|
+
function isIPLiteral(host) {
|
|
4041
|
+
return host[0] === "[" && host[host.length - 1] === "]";
|
|
4042
|
+
}
|
|
4043
|
+
function hasMalformedComponentPercentEncoding(matches) {
|
|
4044
|
+
const host = matches[4];
|
|
4045
|
+
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
|
|
4046
|
+
}
|
|
4047
|
+
function canonicalizeHost(parsed, options, schemeHandler, isIP) {
|
|
4048
|
+
if (hasForbiddenDomainHost(parsed, options, schemeHandler, isIP)) {
|
|
4049
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4050
|
+
return true;
|
|
4051
|
+
}
|
|
4052
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
4053
|
+
let url;
|
|
4054
|
+
try {
|
|
4055
|
+
url = new URL("http://" + parsed.host);
|
|
4056
|
+
} catch (e) {
|
|
4057
|
+
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
4058
|
+
return true;
|
|
4059
|
+
}
|
|
4060
|
+
if (!isHostOnlyURL(url)) {
|
|
4061
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4062
|
+
return true;
|
|
4063
|
+
}
|
|
4064
|
+
parsed.host = url.hostname;
|
|
4065
|
+
}
|
|
4066
|
+
return false;
|
|
4067
|
+
}
|
|
4068
|
+
function hasForbiddenDomainHost(parsed, options, schemeHandler, isIP) {
|
|
4069
|
+
return Boolean(
|
|
4070
|
+
parsed.host && isIP === false && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && FORBIDDEN_DOMAIN_HOST_CHARACTER.test(parsed.host)
|
|
4071
|
+
);
|
|
4072
|
+
}
|
|
4073
|
+
function isHostOnlyURL(url) {
|
|
4074
|
+
return url.username === "" && url.password === "" && url.port === "" && url.pathname === "/" && url.search === "" && url.hash === "" && url.hostname !== "";
|
|
4075
|
+
}
|
|
3756
4076
|
function parseWithStatus(uri, opts) {
|
|
3757
4077
|
const options = Object.assign({}, opts);
|
|
3758
4078
|
const parsed = {
|
|
@@ -3765,6 +4085,11 @@ var require_fast_uri = __commonJS({
|
|
|
3765
4085
|
fragment: void 0
|
|
3766
4086
|
};
|
|
3767
4087
|
let malformedAuthorityOrPort = false;
|
|
4088
|
+
let malformedPercentEncoding = false;
|
|
4089
|
+
let malformedSchemeSpecific = false;
|
|
4090
|
+
let malformedHost = false;
|
|
4091
|
+
let malformedIPLiteral = false;
|
|
4092
|
+
let malformedScheme = false;
|
|
3768
4093
|
let isIP = false;
|
|
3769
4094
|
if (options.reference === "suffix") {
|
|
3770
4095
|
if (options.scheme) {
|
|
@@ -3773,6 +4098,25 @@ var require_fast_uri = __commonJS({
|
|
|
3773
4098
|
uri = "//" + uri;
|
|
3774
4099
|
}
|
|
3775
4100
|
}
|
|
4101
|
+
const authorityMatch = uri.match(AUTHORITY_PREFIX);
|
|
4102
|
+
if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
|
|
4103
|
+
parsed.error = "URI authority must not contain a literal backslash.";
|
|
4104
|
+
malformedAuthorityOrPort = true;
|
|
4105
|
+
}
|
|
4106
|
+
const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
|
|
4107
|
+
if (introducerMatch !== null) {
|
|
4108
|
+
const region = introducerMatch[1];
|
|
4109
|
+
const normalizedRegion = region.replace(/[\t\n\r]/g, "");
|
|
4110
|
+
if (normalizedRegion.length >= 2) {
|
|
4111
|
+
if (normalizedRegion.slice(0, 2) !== "//") {
|
|
4112
|
+
parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
|
|
4113
|
+
malformedAuthorityOrPort = true;
|
|
4114
|
+
} else if (region.length !== normalizedRegion.length) {
|
|
4115
|
+
parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
|
|
4116
|
+
malformedAuthorityOrPort = true;
|
|
4117
|
+
}
|
|
4118
|
+
}
|
|
4119
|
+
}
|
|
3776
4120
|
const matches = uri.match(URI_PARSE);
|
|
3777
4121
|
if (matches) {
|
|
3778
4122
|
parsed.scheme = matches[1];
|
|
@@ -3782,6 +4126,18 @@ var require_fast_uri = __commonJS({
|
|
|
3782
4126
|
parsed.path = matches[6] || "";
|
|
3783
4127
|
parsed.query = matches[7];
|
|
3784
4128
|
parsed.fragment = matches[8];
|
|
4129
|
+
if (parsed.scheme !== void 0) {
|
|
4130
|
+
if (VALID_SCHEME.test(parsed.scheme)) {
|
|
4131
|
+
parsed.scheme = parsed.scheme.toLowerCase();
|
|
4132
|
+
} else {
|
|
4133
|
+
parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
|
|
4134
|
+
malformedScheme = true;
|
|
4135
|
+
}
|
|
4136
|
+
}
|
|
4137
|
+
malformedPercentEncoding = hasMalformedComponentPercentEncoding(matches);
|
|
4138
|
+
if (malformedPercentEncoding) {
|
|
4139
|
+
parsed.error = parsed.error || "URI contains malformed percent-encoding.";
|
|
4140
|
+
}
|
|
3785
4141
|
if (isNaN(parsed.port)) {
|
|
3786
4142
|
parsed.port = matches[5];
|
|
3787
4143
|
}
|
|
@@ -3793,9 +4149,16 @@ var require_fast_uri = __commonJS({
|
|
|
3793
4149
|
if (parsed.host) {
|
|
3794
4150
|
const ipv4result = isIPv4(parsed.host);
|
|
3795
4151
|
if (ipv4result === false) {
|
|
4152
|
+
const bracketedIPLiteral = isIPLiteral(parsed.host);
|
|
4153
|
+
const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
|
|
3796
4154
|
const ipv6result = normalizeIPv6(parsed.host);
|
|
3797
|
-
|
|
3798
|
-
|
|
4155
|
+
isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
|
|
4156
|
+
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
4157
|
+
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
4158
|
+
if (malformedIPLiteral) {
|
|
4159
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4160
|
+
malformedAuthorityOrPort = true;
|
|
4161
|
+
}
|
|
3799
4162
|
} else {
|
|
3800
4163
|
isIP = true;
|
|
3801
4164
|
}
|
|
@@ -3813,42 +4176,37 @@ var require_fast_uri = __commonJS({
|
|
|
3813
4176
|
parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
3814
4177
|
}
|
|
3815
4178
|
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
3816
|
-
if (!
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
4179
|
+
if (!malformedIPLiteral) {
|
|
4180
|
+
malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
|
|
4181
|
+
}
|
|
4182
|
+
if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
|
|
4183
|
+
let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
|
|
4184
|
+
if (!isIP) {
|
|
4185
|
+
host = normalizePercentEncoding(host.toLowerCase());
|
|
3823
4186
|
}
|
|
4187
|
+
parsed.host = isIP || options.scheme !== "null" ? reescapeHostDelimiters(host, isIP) : host;
|
|
3824
4188
|
}
|
|
3825
4189
|
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
3826
|
-
if (uri.indexOf("%") !== -1) {
|
|
3827
|
-
if (parsed.scheme !== void 0) {
|
|
3828
|
-
parsed.scheme = unescape(parsed.scheme);
|
|
3829
|
-
}
|
|
3830
|
-
if (parsed.host !== void 0) {
|
|
3831
|
-
parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
|
|
3832
|
-
}
|
|
3833
|
-
}
|
|
3834
4190
|
if (parsed.path) {
|
|
3835
4191
|
parsed.path = normalizePathEncoding(parsed.path);
|
|
3836
4192
|
}
|
|
4193
|
+
if (parsed.query) {
|
|
4194
|
+
parsed.query = normalizeQueryFragmentEncoding(parsed.query);
|
|
4195
|
+
}
|
|
3837
4196
|
if (parsed.fragment) {
|
|
3838
|
-
|
|
3839
|
-
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
|
|
3840
|
-
} catch {
|
|
3841
|
-
parsed.error = parsed.error || "URI malformed";
|
|
3842
|
-
}
|
|
4197
|
+
parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
|
|
3843
4198
|
}
|
|
3844
4199
|
}
|
|
3845
4200
|
if (schemeHandler && schemeHandler.parse) {
|
|
3846
4201
|
schemeHandler.parse(parsed, options);
|
|
4202
|
+
if (schemeHandler === SCHEMES.urn && parsed.nid === void 0) {
|
|
4203
|
+
malformedSchemeSpecific = true;
|
|
4204
|
+
}
|
|
3847
4205
|
}
|
|
3848
4206
|
} else {
|
|
3849
4207
|
parsed.error = parsed.error || "URI can not be parsed.";
|
|
3850
4208
|
}
|
|
3851
|
-
return { parsed, malformedAuthorityOrPort };
|
|
4209
|
+
return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
|
|
3852
4210
|
}
|
|
3853
4211
|
function parse(uri, opts) {
|
|
3854
4212
|
return parseWithStatus(uri, opts).parsed;
|
|
@@ -3857,20 +4215,28 @@ var require_fast_uri = __commonJS({
|
|
|
3857
4215
|
return normalizeStringWithStatus(uri, opts).normalized;
|
|
3858
4216
|
}
|
|
3859
4217
|
function normalizeStringWithStatus(uri, opts) {
|
|
3860
|
-
const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
|
|
4218
|
+
const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
|
|
3861
4219
|
return {
|
|
3862
|
-
normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
|
|
3863
|
-
malformedAuthorityOrPort
|
|
4220
|
+
normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
|
|
4221
|
+
malformedAuthorityOrPort,
|
|
4222
|
+
malformedPercentEncoding,
|
|
4223
|
+
malformedSchemeSpecific,
|
|
4224
|
+
malformedHost,
|
|
4225
|
+
malformedScheme
|
|
3864
4226
|
};
|
|
3865
4227
|
}
|
|
3866
4228
|
function normalizeComparableURI(uri, opts) {
|
|
3867
|
-
if (typeof uri
|
|
3868
|
-
|
|
3869
|
-
return malformedAuthorityOrPort ? void 0 : normalized;
|
|
4229
|
+
if (typeof uri !== "string" && typeof uri !== "object") {
|
|
4230
|
+
return void 0;
|
|
3870
4231
|
}
|
|
3871
|
-
|
|
3872
|
-
|
|
4232
|
+
let value;
|
|
4233
|
+
try {
|
|
4234
|
+
value = typeof uri === "string" ? uri : serialize(uri, opts);
|
|
4235
|
+
} catch {
|
|
4236
|
+
return void 0;
|
|
3873
4237
|
}
|
|
4238
|
+
const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
|
|
4239
|
+
return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? void 0 : normalized;
|
|
3874
4240
|
}
|
|
3875
4241
|
var fastUri = {
|
|
3876
4242
|
SCHEMES,
|