@hot-updater/cloudflare 0.20.15 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
- import { calculatePagination, createDatabasePlugin, createStorageKeyBuilder } from "@hot-updater/plugin-core";
2
+ import { calculatePagination, createDatabasePlugin, createStorageKeyBuilder, getContentType, parseStorageUri } from "@hot-updater/plugin-core";
3
3
  import Cloudflare from "cloudflare";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
@@ -6755,1344 +6755,6 @@ const execaNode = createExeca(mapNode);
6755
6755
  const $ = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
6756
6756
  const { sendMessage, getOneMessage, getEachMessage, getCancelSignal } = getIpcExport();
6757
6757
 
6758
- //#endregion
6759
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/other.js
6760
- const types$1 = {
6761
- "application/prs.cww": ["cww"],
6762
- "application/prs.xsf+xml": ["xsf"],
6763
- "application/vnd.1000minds.decision-model+xml": ["1km"],
6764
- "application/vnd.3gpp.pic-bw-large": ["plb"],
6765
- "application/vnd.3gpp.pic-bw-small": ["psb"],
6766
- "application/vnd.3gpp.pic-bw-var": ["pvb"],
6767
- "application/vnd.3gpp2.tcap": ["tcap"],
6768
- "application/vnd.3m.post-it-notes": ["pwn"],
6769
- "application/vnd.accpac.simply.aso": ["aso"],
6770
- "application/vnd.accpac.simply.imp": ["imp"],
6771
- "application/vnd.acucobol": ["acu"],
6772
- "application/vnd.acucorp": ["atc", "acutc"],
6773
- "application/vnd.adobe.air-application-installer-package+zip": ["air"],
6774
- "application/vnd.adobe.formscentral.fcdt": ["fcdt"],
6775
- "application/vnd.adobe.fxp": ["fxp", "fxpl"],
6776
- "application/vnd.adobe.xdp+xml": ["xdp"],
6777
- "application/vnd.adobe.xfdf": ["*xfdf"],
6778
- "application/vnd.age": ["age"],
6779
- "application/vnd.ahead.space": ["ahead"],
6780
- "application/vnd.airzip.filesecure.azf": ["azf"],
6781
- "application/vnd.airzip.filesecure.azs": ["azs"],
6782
- "application/vnd.amazon.ebook": ["azw"],
6783
- "application/vnd.americandynamics.acc": ["acc"],
6784
- "application/vnd.amiga.ami": ["ami"],
6785
- "application/vnd.android.package-archive": ["apk"],
6786
- "application/vnd.anser-web-certificate-issue-initiation": ["cii"],
6787
- "application/vnd.anser-web-funds-transfer-initiation": ["fti"],
6788
- "application/vnd.antix.game-component": ["atx"],
6789
- "application/vnd.apple.installer+xml": ["mpkg"],
6790
- "application/vnd.apple.keynote": ["key"],
6791
- "application/vnd.apple.mpegurl": ["m3u8"],
6792
- "application/vnd.apple.numbers": ["numbers"],
6793
- "application/vnd.apple.pages": ["pages"],
6794
- "application/vnd.apple.pkpass": ["pkpass"],
6795
- "application/vnd.aristanetworks.swi": ["swi"],
6796
- "application/vnd.astraea-software.iota": ["iota"],
6797
- "application/vnd.audiograph": ["aep"],
6798
- "application/vnd.balsamiq.bmml+xml": ["bmml"],
6799
- "application/vnd.blueice.multipass": ["mpm"],
6800
- "application/vnd.bmi": ["bmi"],
6801
- "application/vnd.businessobjects": ["rep"],
6802
- "application/vnd.chemdraw+xml": ["cdxml"],
6803
- "application/vnd.chipnuts.karaoke-mmd": ["mmd"],
6804
- "application/vnd.cinderella": ["cdy"],
6805
- "application/vnd.citationstyles.style+xml": ["csl"],
6806
- "application/vnd.claymore": ["cla"],
6807
- "application/vnd.cloanto.rp9": ["rp9"],
6808
- "application/vnd.clonk.c4group": [
6809
- "c4g",
6810
- "c4d",
6811
- "c4f",
6812
- "c4p",
6813
- "c4u"
6814
- ],
6815
- "application/vnd.cluetrust.cartomobile-config": ["c11amc"],
6816
- "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"],
6817
- "application/vnd.commonspace": ["csp"],
6818
- "application/vnd.contact.cmsg": ["cdbcmsg"],
6819
- "application/vnd.cosmocaller": ["cmc"],
6820
- "application/vnd.crick.clicker": ["clkx"],
6821
- "application/vnd.crick.clicker.keyboard": ["clkk"],
6822
- "application/vnd.crick.clicker.palette": ["clkp"],
6823
- "application/vnd.crick.clicker.template": ["clkt"],
6824
- "application/vnd.crick.clicker.wordbank": ["clkw"],
6825
- "application/vnd.criticaltools.wbs+xml": ["wbs"],
6826
- "application/vnd.ctc-posml": ["pml"],
6827
- "application/vnd.cups-ppd": ["ppd"],
6828
- "application/vnd.curl.car": ["car"],
6829
- "application/vnd.curl.pcurl": ["pcurl"],
6830
- "application/vnd.dart": ["dart"],
6831
- "application/vnd.data-vision.rdz": ["rdz"],
6832
- "application/vnd.dbf": ["dbf"],
6833
- "application/vnd.dece.data": [
6834
- "uvf",
6835
- "uvvf",
6836
- "uvd",
6837
- "uvvd"
6838
- ],
6839
- "application/vnd.dece.ttml+xml": ["uvt", "uvvt"],
6840
- "application/vnd.dece.unspecified": ["uvx", "uvvx"],
6841
- "application/vnd.dece.zip": ["uvz", "uvvz"],
6842
- "application/vnd.denovo.fcselayout-link": ["fe_launch"],
6843
- "application/vnd.dna": ["dna"],
6844
- "application/vnd.dolby.mlp": ["mlp"],
6845
- "application/vnd.dpgraph": ["dpg"],
6846
- "application/vnd.dreamfactory": ["dfac"],
6847
- "application/vnd.ds-keypoint": ["kpxx"],
6848
- "application/vnd.dvb.ait": ["ait"],
6849
- "application/vnd.dvb.service": ["svc"],
6850
- "application/vnd.dynageo": ["geo"],
6851
- "application/vnd.ecowin.chart": ["mag"],
6852
- "application/vnd.enliven": ["nml"],
6853
- "application/vnd.epson.esf": ["esf"],
6854
- "application/vnd.epson.msf": ["msf"],
6855
- "application/vnd.epson.quickanime": ["qam"],
6856
- "application/vnd.epson.salt": ["slt"],
6857
- "application/vnd.epson.ssf": ["ssf"],
6858
- "application/vnd.eszigno3+xml": ["es3", "et3"],
6859
- "application/vnd.ezpix-album": ["ez2"],
6860
- "application/vnd.ezpix-package": ["ez3"],
6861
- "application/vnd.fdf": ["*fdf"],
6862
- "application/vnd.fdsn.mseed": ["mseed"],
6863
- "application/vnd.fdsn.seed": ["seed", "dataless"],
6864
- "application/vnd.flographit": ["gph"],
6865
- "application/vnd.fluxtime.clip": ["ftc"],
6866
- "application/vnd.framemaker": [
6867
- "fm",
6868
- "frame",
6869
- "maker",
6870
- "book"
6871
- ],
6872
- "application/vnd.frogans.fnc": ["fnc"],
6873
- "application/vnd.frogans.ltf": ["ltf"],
6874
- "application/vnd.fsc.weblaunch": ["fsc"],
6875
- "application/vnd.fujitsu.oasys": ["oas"],
6876
- "application/vnd.fujitsu.oasys2": ["oa2"],
6877
- "application/vnd.fujitsu.oasys3": ["oa3"],
6878
- "application/vnd.fujitsu.oasysgp": ["fg5"],
6879
- "application/vnd.fujitsu.oasysprs": ["bh2"],
6880
- "application/vnd.fujixerox.ddd": ["ddd"],
6881
- "application/vnd.fujixerox.docuworks": ["xdw"],
6882
- "application/vnd.fujixerox.docuworks.binder": ["xbd"],
6883
- "application/vnd.fuzzysheet": ["fzs"],
6884
- "application/vnd.genomatix.tuxedo": ["txd"],
6885
- "application/vnd.geogebra.file": ["ggb"],
6886
- "application/vnd.geogebra.tool": ["ggt"],
6887
- "application/vnd.geometry-explorer": ["gex", "gre"],
6888
- "application/vnd.geonext": ["gxt"],
6889
- "application/vnd.geoplan": ["g2w"],
6890
- "application/vnd.geospace": ["g3w"],
6891
- "application/vnd.gmx": ["gmx"],
6892
- "application/vnd.google-apps.document": ["gdoc"],
6893
- "application/vnd.google-apps.presentation": ["gslides"],
6894
- "application/vnd.google-apps.spreadsheet": ["gsheet"],
6895
- "application/vnd.google-earth.kml+xml": ["kml"],
6896
- "application/vnd.google-earth.kmz": ["kmz"],
6897
- "application/vnd.grafeq": ["gqf", "gqs"],
6898
- "application/vnd.groove-account": ["gac"],
6899
- "application/vnd.groove-help": ["ghf"],
6900
- "application/vnd.groove-identity-message": ["gim"],
6901
- "application/vnd.groove-injector": ["grv"],
6902
- "application/vnd.groove-tool-message": ["gtm"],
6903
- "application/vnd.groove-tool-template": ["tpl"],
6904
- "application/vnd.groove-vcard": ["vcg"],
6905
- "application/vnd.hal+xml": ["hal"],
6906
- "application/vnd.handheld-entertainment+xml": ["zmm"],
6907
- "application/vnd.hbci": ["hbci"],
6908
- "application/vnd.hhe.lesson-player": ["les"],
6909
- "application/vnd.hp-hpgl": ["hpgl"],
6910
- "application/vnd.hp-hpid": ["hpid"],
6911
- "application/vnd.hp-hps": ["hps"],
6912
- "application/vnd.hp-jlyt": ["jlt"],
6913
- "application/vnd.hp-pcl": ["pcl"],
6914
- "application/vnd.hp-pclxl": ["pclxl"],
6915
- "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"],
6916
- "application/vnd.ibm.minipay": ["mpy"],
6917
- "application/vnd.ibm.modcap": [
6918
- "afp",
6919
- "listafp",
6920
- "list3820"
6921
- ],
6922
- "application/vnd.ibm.rights-management": ["irm"],
6923
- "application/vnd.ibm.secure-container": ["sc"],
6924
- "application/vnd.iccprofile": ["icc", "icm"],
6925
- "application/vnd.igloader": ["igl"],
6926
- "application/vnd.immervision-ivp": ["ivp"],
6927
- "application/vnd.immervision-ivu": ["ivu"],
6928
- "application/vnd.insors.igm": ["igm"],
6929
- "application/vnd.intercon.formnet": ["xpw", "xpx"],
6930
- "application/vnd.intergeo": ["i2g"],
6931
- "application/vnd.intu.qbo": ["qbo"],
6932
- "application/vnd.intu.qfx": ["qfx"],
6933
- "application/vnd.ipunplugged.rcprofile": ["rcprofile"],
6934
- "application/vnd.irepository.package+xml": ["irp"],
6935
- "application/vnd.is-xpr": ["xpr"],
6936
- "application/vnd.isac.fcs": ["fcs"],
6937
- "application/vnd.jam": ["jam"],
6938
- "application/vnd.jcp.javame.midlet-rms": ["rms"],
6939
- "application/vnd.jisp": ["jisp"],
6940
- "application/vnd.joost.joda-archive": ["joda"],
6941
- "application/vnd.kahootz": ["ktz", "ktr"],
6942
- "application/vnd.kde.karbon": ["karbon"],
6943
- "application/vnd.kde.kchart": ["chrt"],
6944
- "application/vnd.kde.kformula": ["kfo"],
6945
- "application/vnd.kde.kivio": ["flw"],
6946
- "application/vnd.kde.kontour": ["kon"],
6947
- "application/vnd.kde.kpresenter": ["kpr", "kpt"],
6948
- "application/vnd.kde.kspread": ["ksp"],
6949
- "application/vnd.kde.kword": ["kwd", "kwt"],
6950
- "application/vnd.kenameaapp": ["htke"],
6951
- "application/vnd.kidspiration": ["kia"],
6952
- "application/vnd.kinar": ["kne", "knp"],
6953
- "application/vnd.koan": [
6954
- "skp",
6955
- "skd",
6956
- "skt",
6957
- "skm"
6958
- ],
6959
- "application/vnd.kodak-descriptor": ["sse"],
6960
- "application/vnd.las.las+xml": ["lasxml"],
6961
- "application/vnd.llamagraphics.life-balance.desktop": ["lbd"],
6962
- "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"],
6963
- "application/vnd.lotus-1-2-3": ["123"],
6964
- "application/vnd.lotus-approach": ["apr"],
6965
- "application/vnd.lotus-freelance": ["pre"],
6966
- "application/vnd.lotus-notes": ["nsf"],
6967
- "application/vnd.lotus-organizer": ["org"],
6968
- "application/vnd.lotus-screencam": ["scm"],
6969
- "application/vnd.lotus-wordpro": ["lwp"],
6970
- "application/vnd.macports.portpkg": ["portpkg"],
6971
- "application/vnd.mapbox-vector-tile": ["mvt"],
6972
- "application/vnd.mcd": ["mcd"],
6973
- "application/vnd.medcalcdata": ["mc1"],
6974
- "application/vnd.mediastation.cdkey": ["cdkey"],
6975
- "application/vnd.mfer": ["mwf"],
6976
- "application/vnd.mfmp": ["mfm"],
6977
- "application/vnd.micrografx.flo": ["flo"],
6978
- "application/vnd.micrografx.igx": ["igx"],
6979
- "application/vnd.mif": ["mif"],
6980
- "application/vnd.mobius.daf": ["daf"],
6981
- "application/vnd.mobius.dis": ["dis"],
6982
- "application/vnd.mobius.mbk": ["mbk"],
6983
- "application/vnd.mobius.mqy": ["mqy"],
6984
- "application/vnd.mobius.msl": ["msl"],
6985
- "application/vnd.mobius.plc": ["plc"],
6986
- "application/vnd.mobius.txf": ["txf"],
6987
- "application/vnd.mophun.application": ["mpn"],
6988
- "application/vnd.mophun.certificate": ["mpc"],
6989
- "application/vnd.mozilla.xul+xml": ["xul"],
6990
- "application/vnd.ms-artgalry": ["cil"],
6991
- "application/vnd.ms-cab-compressed": ["cab"],
6992
- "application/vnd.ms-excel": [
6993
- "xls",
6994
- "xlm",
6995
- "xla",
6996
- "xlc",
6997
- "xlt",
6998
- "xlw"
6999
- ],
7000
- "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"],
7001
- "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"],
7002
- "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"],
7003
- "application/vnd.ms-excel.template.macroenabled.12": ["xltm"],
7004
- "application/vnd.ms-fontobject": ["eot"],
7005
- "application/vnd.ms-htmlhelp": ["chm"],
7006
- "application/vnd.ms-ims": ["ims"],
7007
- "application/vnd.ms-lrm": ["lrm"],
7008
- "application/vnd.ms-officetheme": ["thmx"],
7009
- "application/vnd.ms-outlook": ["msg"],
7010
- "application/vnd.ms-pki.seccat": ["cat"],
7011
- "application/vnd.ms-pki.stl": ["*stl"],
7012
- "application/vnd.ms-powerpoint": [
7013
- "ppt",
7014
- "pps",
7015
- "pot"
7016
- ],
7017
- "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"],
7018
- "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"],
7019
- "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"],
7020
- "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"],
7021
- "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"],
7022
- "application/vnd.ms-project": ["*mpp", "mpt"],
7023
- "application/vnd.ms-word.document.macroenabled.12": ["docm"],
7024
- "application/vnd.ms-word.template.macroenabled.12": ["dotm"],
7025
- "application/vnd.ms-works": [
7026
- "wps",
7027
- "wks",
7028
- "wcm",
7029
- "wdb"
7030
- ],
7031
- "application/vnd.ms-wpl": ["wpl"],
7032
- "application/vnd.ms-xpsdocument": ["xps"],
7033
- "application/vnd.mseq": ["mseq"],
7034
- "application/vnd.musician": ["mus"],
7035
- "application/vnd.muvee.style": ["msty"],
7036
- "application/vnd.mynfc": ["taglet"],
7037
- "application/vnd.neurolanguage.nlu": ["nlu"],
7038
- "application/vnd.nitf": ["ntf", "nitf"],
7039
- "application/vnd.noblenet-directory": ["nnd"],
7040
- "application/vnd.noblenet-sealer": ["nns"],
7041
- "application/vnd.noblenet-web": ["nnw"],
7042
- "application/vnd.nokia.n-gage.ac+xml": ["*ac"],
7043
- "application/vnd.nokia.n-gage.data": ["ngdat"],
7044
- "application/vnd.nokia.n-gage.symbian.install": ["n-gage"],
7045
- "application/vnd.nokia.radio-preset": ["rpst"],
7046
- "application/vnd.nokia.radio-presets": ["rpss"],
7047
- "application/vnd.novadigm.edm": ["edm"],
7048
- "application/vnd.novadigm.edx": ["edx"],
7049
- "application/vnd.novadigm.ext": ["ext"],
7050
- "application/vnd.oasis.opendocument.chart": ["odc"],
7051
- "application/vnd.oasis.opendocument.chart-template": ["otc"],
7052
- "application/vnd.oasis.opendocument.database": ["odb"],
7053
- "application/vnd.oasis.opendocument.formula": ["odf"],
7054
- "application/vnd.oasis.opendocument.formula-template": ["odft"],
7055
- "application/vnd.oasis.opendocument.graphics": ["odg"],
7056
- "application/vnd.oasis.opendocument.graphics-template": ["otg"],
7057
- "application/vnd.oasis.opendocument.image": ["odi"],
7058
- "application/vnd.oasis.opendocument.image-template": ["oti"],
7059
- "application/vnd.oasis.opendocument.presentation": ["odp"],
7060
- "application/vnd.oasis.opendocument.presentation-template": ["otp"],
7061
- "application/vnd.oasis.opendocument.spreadsheet": ["ods"],
7062
- "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"],
7063
- "application/vnd.oasis.opendocument.text": ["odt"],
7064
- "application/vnd.oasis.opendocument.text-master": ["odm"],
7065
- "application/vnd.oasis.opendocument.text-template": ["ott"],
7066
- "application/vnd.oasis.opendocument.text-web": ["oth"],
7067
- "application/vnd.olpc-sugar": ["xo"],
7068
- "application/vnd.oma.dd2+xml": ["dd2"],
7069
- "application/vnd.openblox.game+xml": ["obgx"],
7070
- "application/vnd.openofficeorg.extension": ["oxt"],
7071
- "application/vnd.openstreetmap.data+xml": ["osm"],
7072
- "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"],
7073
- "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"],
7074
- "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"],
7075
- "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"],
7076
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"],
7077
- "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"],
7078
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"],
7079
- "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"],
7080
- "application/vnd.osgeo.mapguide.package": ["mgp"],
7081
- "application/vnd.osgi.dp": ["dp"],
7082
- "application/vnd.osgi.subsystem": ["esa"],
7083
- "application/vnd.palm": [
7084
- "pdb",
7085
- "pqa",
7086
- "oprc"
7087
- ],
7088
- "application/vnd.pawaafile": ["paw"],
7089
- "application/vnd.pg.format": ["str"],
7090
- "application/vnd.pg.osasli": ["ei6"],
7091
- "application/vnd.picsel": ["efif"],
7092
- "application/vnd.pmi.widget": ["wg"],
7093
- "application/vnd.pocketlearn": ["plf"],
7094
- "application/vnd.powerbuilder6": ["pbd"],
7095
- "application/vnd.previewsystems.box": ["box"],
7096
- "application/vnd.proteus.magazine": ["mgz"],
7097
- "application/vnd.publishare-delta-tree": ["qps"],
7098
- "application/vnd.pvi.ptid1": ["ptid"],
7099
- "application/vnd.pwg-xhtml-print+xml": ["xhtm"],
7100
- "application/vnd.quark.quarkxpress": [
7101
- "qxd",
7102
- "qxt",
7103
- "qwd",
7104
- "qwt",
7105
- "qxl",
7106
- "qxb"
7107
- ],
7108
- "application/vnd.rar": ["rar"],
7109
- "application/vnd.realvnc.bed": ["bed"],
7110
- "application/vnd.recordare.musicxml": ["mxl"],
7111
- "application/vnd.recordare.musicxml+xml": ["musicxml"],
7112
- "application/vnd.rig.cryptonote": ["cryptonote"],
7113
- "application/vnd.rim.cod": ["cod"],
7114
- "application/vnd.rn-realmedia": ["rm"],
7115
- "application/vnd.rn-realmedia-vbr": ["rmvb"],
7116
- "application/vnd.route66.link66+xml": ["link66"],
7117
- "application/vnd.sailingtracker.track": ["st"],
7118
- "application/vnd.seemail": ["see"],
7119
- "application/vnd.sema": ["sema"],
7120
- "application/vnd.semd": ["semd"],
7121
- "application/vnd.semf": ["semf"],
7122
- "application/vnd.shana.informed.formdata": ["ifm"],
7123
- "application/vnd.shana.informed.formtemplate": ["itp"],
7124
- "application/vnd.shana.informed.interchange": ["iif"],
7125
- "application/vnd.shana.informed.package": ["ipk"],
7126
- "application/vnd.simtech-mindmapper": ["twd", "twds"],
7127
- "application/vnd.smaf": ["mmf"],
7128
- "application/vnd.smart.teacher": ["teacher"],
7129
- "application/vnd.software602.filler.form+xml": ["fo"],
7130
- "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"],
7131
- "application/vnd.spotfire.dxp": ["dxp"],
7132
- "application/vnd.spotfire.sfs": ["sfs"],
7133
- "application/vnd.stardivision.calc": ["sdc"],
7134
- "application/vnd.stardivision.draw": ["sda"],
7135
- "application/vnd.stardivision.impress": ["sdd"],
7136
- "application/vnd.stardivision.math": ["smf"],
7137
- "application/vnd.stardivision.writer": ["sdw", "vor"],
7138
- "application/vnd.stardivision.writer-global": ["sgl"],
7139
- "application/vnd.stepmania.package": ["smzip"],
7140
- "application/vnd.stepmania.stepchart": ["sm"],
7141
- "application/vnd.sun.wadl+xml": ["wadl"],
7142
- "application/vnd.sun.xml.calc": ["sxc"],
7143
- "application/vnd.sun.xml.calc.template": ["stc"],
7144
- "application/vnd.sun.xml.draw": ["sxd"],
7145
- "application/vnd.sun.xml.draw.template": ["std"],
7146
- "application/vnd.sun.xml.impress": ["sxi"],
7147
- "application/vnd.sun.xml.impress.template": ["sti"],
7148
- "application/vnd.sun.xml.math": ["sxm"],
7149
- "application/vnd.sun.xml.writer": ["sxw"],
7150
- "application/vnd.sun.xml.writer.global": ["sxg"],
7151
- "application/vnd.sun.xml.writer.template": ["stw"],
7152
- "application/vnd.sus-calendar": ["sus", "susp"],
7153
- "application/vnd.svd": ["svd"],
7154
- "application/vnd.symbian.install": ["sis", "sisx"],
7155
- "application/vnd.syncml+xml": ["xsm"],
7156
- "application/vnd.syncml.dm+wbxml": ["bdm"],
7157
- "application/vnd.syncml.dm+xml": ["xdm"],
7158
- "application/vnd.syncml.dmddf+xml": ["ddf"],
7159
- "application/vnd.tao.intent-module-archive": ["tao"],
7160
- "application/vnd.tcpdump.pcap": [
7161
- "pcap",
7162
- "cap",
7163
- "dmp"
7164
- ],
7165
- "application/vnd.tmobile-livetv": ["tmo"],
7166
- "application/vnd.trid.tpt": ["tpt"],
7167
- "application/vnd.triscape.mxs": ["mxs"],
7168
- "application/vnd.trueapp": ["tra"],
7169
- "application/vnd.ufdl": ["ufd", "ufdl"],
7170
- "application/vnd.uiq.theme": ["utz"],
7171
- "application/vnd.umajin": ["umj"],
7172
- "application/vnd.unity": ["unityweb"],
7173
- "application/vnd.uoml+xml": ["uoml", "uo"],
7174
- "application/vnd.vcx": ["vcx"],
7175
- "application/vnd.visio": [
7176
- "vsd",
7177
- "vst",
7178
- "vss",
7179
- "vsw"
7180
- ],
7181
- "application/vnd.visionary": ["vis"],
7182
- "application/vnd.vsf": ["vsf"],
7183
- "application/vnd.wap.wbxml": ["wbxml"],
7184
- "application/vnd.wap.wmlc": ["wmlc"],
7185
- "application/vnd.wap.wmlscriptc": ["wmlsc"],
7186
- "application/vnd.webturbo": ["wtb"],
7187
- "application/vnd.wolfram.player": ["nbp"],
7188
- "application/vnd.wordperfect": ["wpd"],
7189
- "application/vnd.wqd": ["wqd"],
7190
- "application/vnd.wt.stf": ["stf"],
7191
- "application/vnd.xara": ["xar"],
7192
- "application/vnd.xfdl": ["xfdl"],
7193
- "application/vnd.yamaha.hv-dic": ["hvd"],
7194
- "application/vnd.yamaha.hv-script": ["hvs"],
7195
- "application/vnd.yamaha.hv-voice": ["hvp"],
7196
- "application/vnd.yamaha.openscoreformat": ["osf"],
7197
- "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"],
7198
- "application/vnd.yamaha.smaf-audio": ["saf"],
7199
- "application/vnd.yamaha.smaf-phrase": ["spf"],
7200
- "application/vnd.yellowriver-custom-menu": ["cmp"],
7201
- "application/vnd.zul": ["zir", "zirz"],
7202
- "application/vnd.zzazz.deck+xml": ["zaz"],
7203
- "application/x-7z-compressed": ["7z"],
7204
- "application/x-abiword": ["abw"],
7205
- "application/x-ace-compressed": ["ace"],
7206
- "application/x-apple-diskimage": ["*dmg"],
7207
- "application/x-arj": ["arj"],
7208
- "application/x-authorware-bin": [
7209
- "aab",
7210
- "x32",
7211
- "u32",
7212
- "vox"
7213
- ],
7214
- "application/x-authorware-map": ["aam"],
7215
- "application/x-authorware-seg": ["aas"],
7216
- "application/x-bcpio": ["bcpio"],
7217
- "application/x-bdoc": ["*bdoc"],
7218
- "application/x-bittorrent": ["torrent"],
7219
- "application/x-blorb": ["blb", "blorb"],
7220
- "application/x-bzip": ["bz"],
7221
- "application/x-bzip2": ["bz2", "boz"],
7222
- "application/x-cbr": [
7223
- "cbr",
7224
- "cba",
7225
- "cbt",
7226
- "cbz",
7227
- "cb7"
7228
- ],
7229
- "application/x-cdlink": ["vcd"],
7230
- "application/x-cfs-compressed": ["cfs"],
7231
- "application/x-chat": ["chat"],
7232
- "application/x-chess-pgn": ["pgn"],
7233
- "application/x-chrome-extension": ["crx"],
7234
- "application/x-cocoa": ["cco"],
7235
- "application/x-conference": ["nsc"],
7236
- "application/x-cpio": ["cpio"],
7237
- "application/x-csh": ["csh"],
7238
- "application/x-debian-package": ["*deb", "udeb"],
7239
- "application/x-dgc-compressed": ["dgc"],
7240
- "application/x-director": [
7241
- "dir",
7242
- "dcr",
7243
- "dxr",
7244
- "cst",
7245
- "cct",
7246
- "cxt",
7247
- "w3d",
7248
- "fgd",
7249
- "swa"
7250
- ],
7251
- "application/x-doom": ["wad"],
7252
- "application/x-dtbncx+xml": ["ncx"],
7253
- "application/x-dtbook+xml": ["dtb"],
7254
- "application/x-dtbresource+xml": ["res"],
7255
- "application/x-dvi": ["dvi"],
7256
- "application/x-envoy": ["evy"],
7257
- "application/x-eva": ["eva"],
7258
- "application/x-font-bdf": ["bdf"],
7259
- "application/x-font-ghostscript": ["gsf"],
7260
- "application/x-font-linux-psf": ["psf"],
7261
- "application/x-font-pcf": ["pcf"],
7262
- "application/x-font-snf": ["snf"],
7263
- "application/x-font-type1": [
7264
- "pfa",
7265
- "pfb",
7266
- "pfm",
7267
- "afm"
7268
- ],
7269
- "application/x-freearc": ["arc"],
7270
- "application/x-futuresplash": ["spl"],
7271
- "application/x-gca-compressed": ["gca"],
7272
- "application/x-glulx": ["ulx"],
7273
- "application/x-gnumeric": ["gnumeric"],
7274
- "application/x-gramps-xml": ["gramps"],
7275
- "application/x-gtar": ["gtar"],
7276
- "application/x-hdf": ["hdf"],
7277
- "application/x-httpd-php": ["php"],
7278
- "application/x-install-instructions": ["install"],
7279
- "application/x-iso9660-image": ["*iso"],
7280
- "application/x-iwork-keynote-sffkey": ["*key"],
7281
- "application/x-iwork-numbers-sffnumbers": ["*numbers"],
7282
- "application/x-iwork-pages-sffpages": ["*pages"],
7283
- "application/x-java-archive-diff": ["jardiff"],
7284
- "application/x-java-jnlp-file": ["jnlp"],
7285
- "application/x-keepass2": ["kdbx"],
7286
- "application/x-latex": ["latex"],
7287
- "application/x-lua-bytecode": ["luac"],
7288
- "application/x-lzh-compressed": ["lzh", "lha"],
7289
- "application/x-makeself": ["run"],
7290
- "application/x-mie": ["mie"],
7291
- "application/x-mobipocket-ebook": ["*prc", "mobi"],
7292
- "application/x-ms-application": ["application"],
7293
- "application/x-ms-shortcut": ["lnk"],
7294
- "application/x-ms-wmd": ["wmd"],
7295
- "application/x-ms-wmz": ["wmz"],
7296
- "application/x-ms-xbap": ["xbap"],
7297
- "application/x-msaccess": ["mdb"],
7298
- "application/x-msbinder": ["obd"],
7299
- "application/x-mscardfile": ["crd"],
7300
- "application/x-msclip": ["clp"],
7301
- "application/x-msdos-program": ["*exe"],
7302
- "application/x-msdownload": [
7303
- "*exe",
7304
- "*dll",
7305
- "com",
7306
- "bat",
7307
- "*msi"
7308
- ],
7309
- "application/x-msmediaview": [
7310
- "mvb",
7311
- "m13",
7312
- "m14"
7313
- ],
7314
- "application/x-msmetafile": [
7315
- "*wmf",
7316
- "*wmz",
7317
- "*emf",
7318
- "emz"
7319
- ],
7320
- "application/x-msmoney": ["mny"],
7321
- "application/x-mspublisher": ["pub"],
7322
- "application/x-msschedule": ["scd"],
7323
- "application/x-msterminal": ["trm"],
7324
- "application/x-mswrite": ["wri"],
7325
- "application/x-netcdf": ["nc", "cdf"],
7326
- "application/x-ns-proxy-autoconfig": ["pac"],
7327
- "application/x-nzb": ["nzb"],
7328
- "application/x-perl": ["pl", "pm"],
7329
- "application/x-pilot": ["*prc", "*pdb"],
7330
- "application/x-pkcs12": ["p12", "pfx"],
7331
- "application/x-pkcs7-certificates": ["p7b", "spc"],
7332
- "application/x-pkcs7-certreqresp": ["p7r"],
7333
- "application/x-rar-compressed": ["*rar"],
7334
- "application/x-redhat-package-manager": ["rpm"],
7335
- "application/x-research-info-systems": ["ris"],
7336
- "application/x-sea": ["sea"],
7337
- "application/x-sh": ["sh"],
7338
- "application/x-shar": ["shar"],
7339
- "application/x-shockwave-flash": ["swf"],
7340
- "application/x-silverlight-app": ["xap"],
7341
- "application/x-sql": ["*sql"],
7342
- "application/x-stuffit": ["sit"],
7343
- "application/x-stuffitx": ["sitx"],
7344
- "application/x-subrip": ["srt"],
7345
- "application/x-sv4cpio": ["sv4cpio"],
7346
- "application/x-sv4crc": ["sv4crc"],
7347
- "application/x-t3vm-image": ["t3"],
7348
- "application/x-tads": ["gam"],
7349
- "application/x-tar": ["tar"],
7350
- "application/x-tcl": ["tcl", "tk"],
7351
- "application/x-tex": ["tex"],
7352
- "application/x-tex-tfm": ["tfm"],
7353
- "application/x-texinfo": ["texinfo", "texi"],
7354
- "application/x-tgif": ["*obj"],
7355
- "application/x-ustar": ["ustar"],
7356
- "application/x-virtualbox-hdd": ["hdd"],
7357
- "application/x-virtualbox-ova": ["ova"],
7358
- "application/x-virtualbox-ovf": ["ovf"],
7359
- "application/x-virtualbox-vbox": ["vbox"],
7360
- "application/x-virtualbox-vbox-extpack": ["vbox-extpack"],
7361
- "application/x-virtualbox-vdi": ["vdi"],
7362
- "application/x-virtualbox-vhd": ["vhd"],
7363
- "application/x-virtualbox-vmdk": ["vmdk"],
7364
- "application/x-wais-source": ["src"],
7365
- "application/x-web-app-manifest+json": ["webapp"],
7366
- "application/x-x509-ca-cert": [
7367
- "der",
7368
- "crt",
7369
- "pem"
7370
- ],
7371
- "application/x-xfig": ["fig"],
7372
- "application/x-xliff+xml": ["*xlf"],
7373
- "application/x-xpinstall": ["xpi"],
7374
- "application/x-xz": ["xz"],
7375
- "application/x-zmachine": [
7376
- "z1",
7377
- "z2",
7378
- "z3",
7379
- "z4",
7380
- "z5",
7381
- "z6",
7382
- "z7",
7383
- "z8"
7384
- ],
7385
- "audio/vnd.dece.audio": ["uva", "uvva"],
7386
- "audio/vnd.digital-winds": ["eol"],
7387
- "audio/vnd.dra": ["dra"],
7388
- "audio/vnd.dts": ["dts"],
7389
- "audio/vnd.dts.hd": ["dtshd"],
7390
- "audio/vnd.lucent.voice": ["lvp"],
7391
- "audio/vnd.ms-playready.media.pya": ["pya"],
7392
- "audio/vnd.nuera.ecelp4800": ["ecelp4800"],
7393
- "audio/vnd.nuera.ecelp7470": ["ecelp7470"],
7394
- "audio/vnd.nuera.ecelp9600": ["ecelp9600"],
7395
- "audio/vnd.rip": ["rip"],
7396
- "audio/x-aac": ["*aac"],
7397
- "audio/x-aiff": [
7398
- "aif",
7399
- "aiff",
7400
- "aifc"
7401
- ],
7402
- "audio/x-caf": ["caf"],
7403
- "audio/x-flac": ["flac"],
7404
- "audio/x-m4a": ["*m4a"],
7405
- "audio/x-matroska": ["mka"],
7406
- "audio/x-mpegurl": ["m3u"],
7407
- "audio/x-ms-wax": ["wax"],
7408
- "audio/x-ms-wma": ["wma"],
7409
- "audio/x-pn-realaudio": ["ram", "ra"],
7410
- "audio/x-pn-realaudio-plugin": ["rmp"],
7411
- "audio/x-realaudio": ["*ra"],
7412
- "audio/x-wav": ["*wav"],
7413
- "chemical/x-cdx": ["cdx"],
7414
- "chemical/x-cif": ["cif"],
7415
- "chemical/x-cmdf": ["cmdf"],
7416
- "chemical/x-cml": ["cml"],
7417
- "chemical/x-csml": ["csml"],
7418
- "chemical/x-xyz": ["xyz"],
7419
- "image/prs.btif": ["btif", "btf"],
7420
- "image/prs.pti": ["pti"],
7421
- "image/vnd.adobe.photoshop": ["psd"],
7422
- "image/vnd.airzip.accelerator.azv": ["azv"],
7423
- "image/vnd.dece.graphic": [
7424
- "uvi",
7425
- "uvvi",
7426
- "uvg",
7427
- "uvvg"
7428
- ],
7429
- "image/vnd.djvu": ["djvu", "djv"],
7430
- "image/vnd.dvb.subtitle": ["*sub"],
7431
- "image/vnd.dwg": ["dwg"],
7432
- "image/vnd.dxf": ["dxf"],
7433
- "image/vnd.fastbidsheet": ["fbs"],
7434
- "image/vnd.fpx": ["fpx"],
7435
- "image/vnd.fst": ["fst"],
7436
- "image/vnd.fujixerox.edmics-mmr": ["mmr"],
7437
- "image/vnd.fujixerox.edmics-rlc": ["rlc"],
7438
- "image/vnd.microsoft.icon": ["ico"],
7439
- "image/vnd.ms-dds": ["dds"],
7440
- "image/vnd.ms-modi": ["mdi"],
7441
- "image/vnd.ms-photo": ["wdp"],
7442
- "image/vnd.net-fpx": ["npx"],
7443
- "image/vnd.pco.b16": ["b16"],
7444
- "image/vnd.tencent.tap": ["tap"],
7445
- "image/vnd.valve.source.texture": ["vtf"],
7446
- "image/vnd.wap.wbmp": ["wbmp"],
7447
- "image/vnd.xiff": ["xif"],
7448
- "image/vnd.zbrush.pcx": ["pcx"],
7449
- "image/x-3ds": ["3ds"],
7450
- "image/x-cmu-raster": ["ras"],
7451
- "image/x-cmx": ["cmx"],
7452
- "image/x-freehand": [
7453
- "fh",
7454
- "fhc",
7455
- "fh4",
7456
- "fh5",
7457
- "fh7"
7458
- ],
7459
- "image/x-icon": ["*ico"],
7460
- "image/x-jng": ["jng"],
7461
- "image/x-mrsid-image": ["sid"],
7462
- "image/x-ms-bmp": ["*bmp"],
7463
- "image/x-pcx": ["*pcx"],
7464
- "image/x-pict": ["pic", "pct"],
7465
- "image/x-portable-anymap": ["pnm"],
7466
- "image/x-portable-bitmap": ["pbm"],
7467
- "image/x-portable-graymap": ["pgm"],
7468
- "image/x-portable-pixmap": ["ppm"],
7469
- "image/x-rgb": ["rgb"],
7470
- "image/x-tga": ["tga"],
7471
- "image/x-xbitmap": ["xbm"],
7472
- "image/x-xpixmap": ["xpm"],
7473
- "image/x-xwindowdump": ["xwd"],
7474
- "message/vnd.wfa.wsc": ["wsc"],
7475
- "model/vnd.cld": ["cld"],
7476
- "model/vnd.collada+xml": ["dae"],
7477
- "model/vnd.dwf": ["dwf"],
7478
- "model/vnd.gdl": ["gdl"],
7479
- "model/vnd.gtw": ["gtw"],
7480
- "model/vnd.mts": ["mts"],
7481
- "model/vnd.opengex": ["ogex"],
7482
- "model/vnd.parasolid.transmit.binary": ["x_b"],
7483
- "model/vnd.parasolid.transmit.text": ["x_t"],
7484
- "model/vnd.pytha.pyox": ["pyo", "pyox"],
7485
- "model/vnd.sap.vds": ["vds"],
7486
- "model/vnd.usda": ["usda"],
7487
- "model/vnd.usdz+zip": ["usdz"],
7488
- "model/vnd.valve.source.compiled-map": ["bsp"],
7489
- "model/vnd.vtu": ["vtu"],
7490
- "text/prs.lines.tag": ["dsc"],
7491
- "text/vnd.curl": ["curl"],
7492
- "text/vnd.curl.dcurl": ["dcurl"],
7493
- "text/vnd.curl.mcurl": ["mcurl"],
7494
- "text/vnd.curl.scurl": ["scurl"],
7495
- "text/vnd.dvb.subtitle": ["sub"],
7496
- "text/vnd.familysearch.gedcom": ["ged"],
7497
- "text/vnd.fly": ["fly"],
7498
- "text/vnd.fmi.flexstor": ["flx"],
7499
- "text/vnd.graphviz": ["gv"],
7500
- "text/vnd.in3d.3dml": ["3dml"],
7501
- "text/vnd.in3d.spot": ["spot"],
7502
- "text/vnd.sun.j2me.app-descriptor": ["jad"],
7503
- "text/vnd.wap.wml": ["wml"],
7504
- "text/vnd.wap.wmlscript": ["wmls"],
7505
- "text/x-asm": ["s", "asm"],
7506
- "text/x-c": [
7507
- "c",
7508
- "cc",
7509
- "cxx",
7510
- "cpp",
7511
- "h",
7512
- "hh",
7513
- "dic"
7514
- ],
7515
- "text/x-component": ["htc"],
7516
- "text/x-fortran": [
7517
- "f",
7518
- "for",
7519
- "f77",
7520
- "f90"
7521
- ],
7522
- "text/x-handlebars-template": ["hbs"],
7523
- "text/x-java-source": ["java"],
7524
- "text/x-lua": ["lua"],
7525
- "text/x-markdown": ["mkd"],
7526
- "text/x-nfo": ["nfo"],
7527
- "text/x-opml": ["opml"],
7528
- "text/x-org": ["*org"],
7529
- "text/x-pascal": ["p", "pas"],
7530
- "text/x-processing": ["pde"],
7531
- "text/x-sass": ["sass"],
7532
- "text/x-scss": ["scss"],
7533
- "text/x-setext": ["etx"],
7534
- "text/x-sfv": ["sfv"],
7535
- "text/x-suse-ymp": ["ymp"],
7536
- "text/x-uuencode": ["uu"],
7537
- "text/x-vcalendar": ["vcs"],
7538
- "text/x-vcard": ["vcf"],
7539
- "video/vnd.dece.hd": ["uvh", "uvvh"],
7540
- "video/vnd.dece.mobile": ["uvm", "uvvm"],
7541
- "video/vnd.dece.pd": ["uvp", "uvvp"],
7542
- "video/vnd.dece.sd": ["uvs", "uvvs"],
7543
- "video/vnd.dece.video": ["uvv", "uvvv"],
7544
- "video/vnd.dvb.file": ["dvb"],
7545
- "video/vnd.fvt": ["fvt"],
7546
- "video/vnd.mpegurl": ["mxu", "m4u"],
7547
- "video/vnd.ms-playready.media.pyv": ["pyv"],
7548
- "video/vnd.uvvu.mp4": ["uvu", "uvvu"],
7549
- "video/vnd.vivo": ["viv"],
7550
- "video/x-f4v": ["f4v"],
7551
- "video/x-fli": ["fli"],
7552
- "video/x-flv": ["flv"],
7553
- "video/x-m4v": ["m4v"],
7554
- "video/x-matroska": [
7555
- "mkv",
7556
- "mk3d",
7557
- "mks"
7558
- ],
7559
- "video/x-mng": ["mng"],
7560
- "video/x-ms-asf": ["asf", "asx"],
7561
- "video/x-ms-vob": ["vob"],
7562
- "video/x-ms-wm": ["wm"],
7563
- "video/x-ms-wmv": ["wmv"],
7564
- "video/x-ms-wmx": ["wmx"],
7565
- "video/x-ms-wvx": ["wvx"],
7566
- "video/x-msvideo": ["avi"],
7567
- "video/x-sgi-movie": ["movie"],
7568
- "video/x-smv": ["smv"],
7569
- "x-conference/x-cooltalk": ["ice"]
7570
- };
7571
- Object.freeze(types$1);
7572
- var other_default = types$1;
7573
-
7574
- //#endregion
7575
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/standard.js
7576
- const types = {
7577
- "application/andrew-inset": ["ez"],
7578
- "application/appinstaller": ["appinstaller"],
7579
- "application/applixware": ["aw"],
7580
- "application/appx": ["appx"],
7581
- "application/appxbundle": ["appxbundle"],
7582
- "application/atom+xml": ["atom"],
7583
- "application/atomcat+xml": ["atomcat"],
7584
- "application/atomdeleted+xml": ["atomdeleted"],
7585
- "application/atomsvc+xml": ["atomsvc"],
7586
- "application/atsc-dwd+xml": ["dwd"],
7587
- "application/atsc-held+xml": ["held"],
7588
- "application/atsc-rsat+xml": ["rsat"],
7589
- "application/automationml-aml+xml": ["aml"],
7590
- "application/automationml-amlx+zip": ["amlx"],
7591
- "application/bdoc": ["bdoc"],
7592
- "application/calendar+xml": ["xcs"],
7593
- "application/ccxml+xml": ["ccxml"],
7594
- "application/cdfx+xml": ["cdfx"],
7595
- "application/cdmi-capability": ["cdmia"],
7596
- "application/cdmi-container": ["cdmic"],
7597
- "application/cdmi-domain": ["cdmid"],
7598
- "application/cdmi-object": ["cdmio"],
7599
- "application/cdmi-queue": ["cdmiq"],
7600
- "application/cpl+xml": ["cpl"],
7601
- "application/cu-seeme": ["cu"],
7602
- "application/cwl": ["cwl"],
7603
- "application/dash+xml": ["mpd"],
7604
- "application/dash-patch+xml": ["mpp"],
7605
- "application/davmount+xml": ["davmount"],
7606
- "application/docbook+xml": ["dbk"],
7607
- "application/dssc+der": ["dssc"],
7608
- "application/dssc+xml": ["xdssc"],
7609
- "application/ecmascript": ["ecma"],
7610
- "application/emma+xml": ["emma"],
7611
- "application/emotionml+xml": ["emotionml"],
7612
- "application/epub+zip": ["epub"],
7613
- "application/exi": ["exi"],
7614
- "application/express": ["exp"],
7615
- "application/fdf": ["fdf"],
7616
- "application/fdt+xml": ["fdt"],
7617
- "application/font-tdpfr": ["pfr"],
7618
- "application/geo+json": ["geojson"],
7619
- "application/gml+xml": ["gml"],
7620
- "application/gpx+xml": ["gpx"],
7621
- "application/gxf": ["gxf"],
7622
- "application/gzip": ["gz"],
7623
- "application/hjson": ["hjson"],
7624
- "application/hyperstudio": ["stk"],
7625
- "application/inkml+xml": ["ink", "inkml"],
7626
- "application/ipfix": ["ipfix"],
7627
- "application/its+xml": ["its"],
7628
- "application/java-archive": [
7629
- "jar",
7630
- "war",
7631
- "ear"
7632
- ],
7633
- "application/java-serialized-object": ["ser"],
7634
- "application/java-vm": ["class"],
7635
- "application/javascript": ["*js"],
7636
- "application/json": ["json", "map"],
7637
- "application/json5": ["json5"],
7638
- "application/jsonml+json": ["jsonml"],
7639
- "application/ld+json": ["jsonld"],
7640
- "application/lgr+xml": ["lgr"],
7641
- "application/lost+xml": ["lostxml"],
7642
- "application/mac-binhex40": ["hqx"],
7643
- "application/mac-compactpro": ["cpt"],
7644
- "application/mads+xml": ["mads"],
7645
- "application/manifest+json": ["webmanifest"],
7646
- "application/marc": ["mrc"],
7647
- "application/marcxml+xml": ["mrcx"],
7648
- "application/mathematica": [
7649
- "ma",
7650
- "nb",
7651
- "mb"
7652
- ],
7653
- "application/mathml+xml": ["mathml"],
7654
- "application/mbox": ["mbox"],
7655
- "application/media-policy-dataset+xml": ["mpf"],
7656
- "application/mediaservercontrol+xml": ["mscml"],
7657
- "application/metalink+xml": ["metalink"],
7658
- "application/metalink4+xml": ["meta4"],
7659
- "application/mets+xml": ["mets"],
7660
- "application/mmt-aei+xml": ["maei"],
7661
- "application/mmt-usd+xml": ["musd"],
7662
- "application/mods+xml": ["mods"],
7663
- "application/mp21": ["m21", "mp21"],
7664
- "application/mp4": [
7665
- "*mp4",
7666
- "*mpg4",
7667
- "mp4s",
7668
- "m4p"
7669
- ],
7670
- "application/msix": ["msix"],
7671
- "application/msixbundle": ["msixbundle"],
7672
- "application/msword": ["doc", "dot"],
7673
- "application/mxf": ["mxf"],
7674
- "application/n-quads": ["nq"],
7675
- "application/n-triples": ["nt"],
7676
- "application/node": ["cjs"],
7677
- "application/octet-stream": [
7678
- "bin",
7679
- "dms",
7680
- "lrf",
7681
- "mar",
7682
- "so",
7683
- "dist",
7684
- "distz",
7685
- "pkg",
7686
- "bpk",
7687
- "dump",
7688
- "elc",
7689
- "deploy",
7690
- "exe",
7691
- "dll",
7692
- "deb",
7693
- "dmg",
7694
- "iso",
7695
- "img",
7696
- "msi",
7697
- "msp",
7698
- "msm",
7699
- "buffer"
7700
- ],
7701
- "application/oda": ["oda"],
7702
- "application/oebps-package+xml": ["opf"],
7703
- "application/ogg": ["ogx"],
7704
- "application/omdoc+xml": ["omdoc"],
7705
- "application/onenote": [
7706
- "onetoc",
7707
- "onetoc2",
7708
- "onetmp",
7709
- "onepkg"
7710
- ],
7711
- "application/oxps": ["oxps"],
7712
- "application/p2p-overlay+xml": ["relo"],
7713
- "application/patch-ops-error+xml": ["xer"],
7714
- "application/pdf": ["pdf"],
7715
- "application/pgp-encrypted": ["pgp"],
7716
- "application/pgp-keys": ["asc"],
7717
- "application/pgp-signature": ["sig", "*asc"],
7718
- "application/pics-rules": ["prf"],
7719
- "application/pkcs10": ["p10"],
7720
- "application/pkcs7-mime": ["p7m", "p7c"],
7721
- "application/pkcs7-signature": ["p7s"],
7722
- "application/pkcs8": ["p8"],
7723
- "application/pkix-attr-cert": ["ac"],
7724
- "application/pkix-cert": ["cer"],
7725
- "application/pkix-crl": ["crl"],
7726
- "application/pkix-pkipath": ["pkipath"],
7727
- "application/pkixcmp": ["pki"],
7728
- "application/pls+xml": ["pls"],
7729
- "application/postscript": [
7730
- "ai",
7731
- "eps",
7732
- "ps"
7733
- ],
7734
- "application/provenance+xml": ["provx"],
7735
- "application/pskc+xml": ["pskcxml"],
7736
- "application/raml+yaml": ["raml"],
7737
- "application/rdf+xml": ["rdf", "owl"],
7738
- "application/reginfo+xml": ["rif"],
7739
- "application/relax-ng-compact-syntax": ["rnc"],
7740
- "application/resource-lists+xml": ["rl"],
7741
- "application/resource-lists-diff+xml": ["rld"],
7742
- "application/rls-services+xml": ["rs"],
7743
- "application/route-apd+xml": ["rapd"],
7744
- "application/route-s-tsid+xml": ["sls"],
7745
- "application/route-usd+xml": ["rusd"],
7746
- "application/rpki-ghostbusters": ["gbr"],
7747
- "application/rpki-manifest": ["mft"],
7748
- "application/rpki-roa": ["roa"],
7749
- "application/rsd+xml": ["rsd"],
7750
- "application/rss+xml": ["rss"],
7751
- "application/rtf": ["rtf"],
7752
- "application/sbml+xml": ["sbml"],
7753
- "application/scvp-cv-request": ["scq"],
7754
- "application/scvp-cv-response": ["scs"],
7755
- "application/scvp-vp-request": ["spq"],
7756
- "application/scvp-vp-response": ["spp"],
7757
- "application/sdp": ["sdp"],
7758
- "application/senml+xml": ["senmlx"],
7759
- "application/sensml+xml": ["sensmlx"],
7760
- "application/set-payment-initiation": ["setpay"],
7761
- "application/set-registration-initiation": ["setreg"],
7762
- "application/shf+xml": ["shf"],
7763
- "application/sieve": ["siv", "sieve"],
7764
- "application/smil+xml": ["smi", "smil"],
7765
- "application/sparql-query": ["rq"],
7766
- "application/sparql-results+xml": ["srx"],
7767
- "application/sql": ["sql"],
7768
- "application/srgs": ["gram"],
7769
- "application/srgs+xml": ["grxml"],
7770
- "application/sru+xml": ["sru"],
7771
- "application/ssdl+xml": ["ssdl"],
7772
- "application/ssml+xml": ["ssml"],
7773
- "application/swid+xml": ["swidtag"],
7774
- "application/tei+xml": ["tei", "teicorpus"],
7775
- "application/thraud+xml": ["tfi"],
7776
- "application/timestamped-data": ["tsd"],
7777
- "application/toml": ["toml"],
7778
- "application/trig": ["trig"],
7779
- "application/ttml+xml": ["ttml"],
7780
- "application/ubjson": ["ubj"],
7781
- "application/urc-ressheet+xml": ["rsheet"],
7782
- "application/urc-targetdesc+xml": ["td"],
7783
- "application/voicexml+xml": ["vxml"],
7784
- "application/wasm": ["wasm"],
7785
- "application/watcherinfo+xml": ["wif"],
7786
- "application/widget": ["wgt"],
7787
- "application/winhlp": ["hlp"],
7788
- "application/wsdl+xml": ["wsdl"],
7789
- "application/wspolicy+xml": ["wspolicy"],
7790
- "application/xaml+xml": ["xaml"],
7791
- "application/xcap-att+xml": ["xav"],
7792
- "application/xcap-caps+xml": ["xca"],
7793
- "application/xcap-diff+xml": ["xdf"],
7794
- "application/xcap-el+xml": ["xel"],
7795
- "application/xcap-ns+xml": ["xns"],
7796
- "application/xenc+xml": ["xenc"],
7797
- "application/xfdf": ["xfdf"],
7798
- "application/xhtml+xml": ["xhtml", "xht"],
7799
- "application/xliff+xml": ["xlf"],
7800
- "application/xml": [
7801
- "xml",
7802
- "xsl",
7803
- "xsd",
7804
- "rng"
7805
- ],
7806
- "application/xml-dtd": ["dtd"],
7807
- "application/xop+xml": ["xop"],
7808
- "application/xproc+xml": ["xpl"],
7809
- "application/xslt+xml": ["*xsl", "xslt"],
7810
- "application/xspf+xml": ["xspf"],
7811
- "application/xv+xml": [
7812
- "mxml",
7813
- "xhvml",
7814
- "xvml",
7815
- "xvm"
7816
- ],
7817
- "application/yang": ["yang"],
7818
- "application/yin+xml": ["yin"],
7819
- "application/zip": ["zip"],
7820
- "audio/3gpp": ["*3gpp"],
7821
- "audio/aac": ["adts", "aac"],
7822
- "audio/adpcm": ["adp"],
7823
- "audio/amr": ["amr"],
7824
- "audio/basic": ["au", "snd"],
7825
- "audio/midi": [
7826
- "mid",
7827
- "midi",
7828
- "kar",
7829
- "rmi"
7830
- ],
7831
- "audio/mobile-xmf": ["mxmf"],
7832
- "audio/mp3": ["*mp3"],
7833
- "audio/mp4": ["m4a", "mp4a"],
7834
- "audio/mpeg": [
7835
- "mpga",
7836
- "mp2",
7837
- "mp2a",
7838
- "mp3",
7839
- "m2a",
7840
- "m3a"
7841
- ],
7842
- "audio/ogg": [
7843
- "oga",
7844
- "ogg",
7845
- "spx",
7846
- "opus"
7847
- ],
7848
- "audio/s3m": ["s3m"],
7849
- "audio/silk": ["sil"],
7850
- "audio/wav": ["wav"],
7851
- "audio/wave": ["*wav"],
7852
- "audio/webm": ["weba"],
7853
- "audio/xm": ["xm"],
7854
- "font/collection": ["ttc"],
7855
- "font/otf": ["otf"],
7856
- "font/ttf": ["ttf"],
7857
- "font/woff": ["woff"],
7858
- "font/woff2": ["woff2"],
7859
- "image/aces": ["exr"],
7860
- "image/apng": ["apng"],
7861
- "image/avci": ["avci"],
7862
- "image/avcs": ["avcs"],
7863
- "image/avif": ["avif"],
7864
- "image/bmp": ["bmp", "dib"],
7865
- "image/cgm": ["cgm"],
7866
- "image/dicom-rle": ["drle"],
7867
- "image/dpx": ["dpx"],
7868
- "image/emf": ["emf"],
7869
- "image/fits": ["fits"],
7870
- "image/g3fax": ["g3"],
7871
- "image/gif": ["gif"],
7872
- "image/heic": ["heic"],
7873
- "image/heic-sequence": ["heics"],
7874
- "image/heif": ["heif"],
7875
- "image/heif-sequence": ["heifs"],
7876
- "image/hej2k": ["hej2"],
7877
- "image/hsj2": ["hsj2"],
7878
- "image/ief": ["ief"],
7879
- "image/jls": ["jls"],
7880
- "image/jp2": ["jp2", "jpg2"],
7881
- "image/jpeg": [
7882
- "jpeg",
7883
- "jpg",
7884
- "jpe"
7885
- ],
7886
- "image/jph": ["jph"],
7887
- "image/jphc": ["jhc"],
7888
- "image/jpm": ["jpm", "jpgm"],
7889
- "image/jpx": ["jpx", "jpf"],
7890
- "image/jxr": ["jxr"],
7891
- "image/jxra": ["jxra"],
7892
- "image/jxrs": ["jxrs"],
7893
- "image/jxs": ["jxs"],
7894
- "image/jxsc": ["jxsc"],
7895
- "image/jxsi": ["jxsi"],
7896
- "image/jxss": ["jxss"],
7897
- "image/ktx": ["ktx"],
7898
- "image/ktx2": ["ktx2"],
7899
- "image/png": ["png"],
7900
- "image/sgi": ["sgi"],
7901
- "image/svg+xml": ["svg", "svgz"],
7902
- "image/t38": ["t38"],
7903
- "image/tiff": ["tif", "tiff"],
7904
- "image/tiff-fx": ["tfx"],
7905
- "image/webp": ["webp"],
7906
- "image/wmf": ["wmf"],
7907
- "message/disposition-notification": ["disposition-notification"],
7908
- "message/global": ["u8msg"],
7909
- "message/global-delivery-status": ["u8dsn"],
7910
- "message/global-disposition-notification": ["u8mdn"],
7911
- "message/global-headers": ["u8hdr"],
7912
- "message/rfc822": ["eml", "mime"],
7913
- "model/3mf": ["3mf"],
7914
- "model/gltf+json": ["gltf"],
7915
- "model/gltf-binary": ["glb"],
7916
- "model/iges": ["igs", "iges"],
7917
- "model/jt": ["jt"],
7918
- "model/mesh": [
7919
- "msh",
7920
- "mesh",
7921
- "silo"
7922
- ],
7923
- "model/mtl": ["mtl"],
7924
- "model/obj": ["obj"],
7925
- "model/prc": ["prc"],
7926
- "model/step+xml": ["stpx"],
7927
- "model/step+zip": ["stpz"],
7928
- "model/step-xml+zip": ["stpxz"],
7929
- "model/stl": ["stl"],
7930
- "model/u3d": ["u3d"],
7931
- "model/vrml": ["wrl", "vrml"],
7932
- "model/x3d+binary": ["*x3db", "x3dbz"],
7933
- "model/x3d+fastinfoset": ["x3db"],
7934
- "model/x3d+vrml": ["*x3dv", "x3dvz"],
7935
- "model/x3d+xml": ["x3d", "x3dz"],
7936
- "model/x3d-vrml": ["x3dv"],
7937
- "text/cache-manifest": ["appcache", "manifest"],
7938
- "text/calendar": ["ics", "ifb"],
7939
- "text/coffeescript": ["coffee", "litcoffee"],
7940
- "text/css": ["css"],
7941
- "text/csv": ["csv"],
7942
- "text/html": [
7943
- "html",
7944
- "htm",
7945
- "shtml"
7946
- ],
7947
- "text/jade": ["jade"],
7948
- "text/javascript": ["js", "mjs"],
7949
- "text/jsx": ["jsx"],
7950
- "text/less": ["less"],
7951
- "text/markdown": ["md", "markdown"],
7952
- "text/mathml": ["mml"],
7953
- "text/mdx": ["mdx"],
7954
- "text/n3": ["n3"],
7955
- "text/plain": [
7956
- "txt",
7957
- "text",
7958
- "conf",
7959
- "def",
7960
- "list",
7961
- "log",
7962
- "in",
7963
- "ini"
7964
- ],
7965
- "text/richtext": ["rtx"],
7966
- "text/rtf": ["*rtf"],
7967
- "text/sgml": ["sgml", "sgm"],
7968
- "text/shex": ["shex"],
7969
- "text/slim": ["slim", "slm"],
7970
- "text/spdx": ["spdx"],
7971
- "text/stylus": ["stylus", "styl"],
7972
- "text/tab-separated-values": ["tsv"],
7973
- "text/troff": [
7974
- "t",
7975
- "tr",
7976
- "roff",
7977
- "man",
7978
- "me",
7979
- "ms"
7980
- ],
7981
- "text/turtle": ["ttl"],
7982
- "text/uri-list": [
7983
- "uri",
7984
- "uris",
7985
- "urls"
7986
- ],
7987
- "text/vcard": ["vcard"],
7988
- "text/vtt": ["vtt"],
7989
- "text/wgsl": ["wgsl"],
7990
- "text/xml": ["*xml"],
7991
- "text/yaml": ["yaml", "yml"],
7992
- "video/3gpp": ["3gp", "3gpp"],
7993
- "video/3gpp2": ["3g2"],
7994
- "video/h261": ["h261"],
7995
- "video/h263": ["h263"],
7996
- "video/h264": ["h264"],
7997
- "video/iso.segment": ["m4s"],
7998
- "video/jpeg": ["jpgv"],
7999
- "video/jpm": ["*jpm", "*jpgm"],
8000
- "video/mj2": ["mj2", "mjp2"],
8001
- "video/mp2t": ["ts"],
8002
- "video/mp4": [
8003
- "mp4",
8004
- "mp4v",
8005
- "mpg4"
8006
- ],
8007
- "video/mpeg": [
8008
- "mpeg",
8009
- "mpg",
8010
- "mpe",
8011
- "m1v",
8012
- "m2v"
8013
- ],
8014
- "video/ogg": ["ogv"],
8015
- "video/quicktime": ["qt", "mov"],
8016
- "video/webm": ["webm"]
8017
- };
8018
- Object.freeze(types);
8019
- var standard_default = types;
8020
-
8021
- //#endregion
8022
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/Mime.js
8023
- var __classPrivateFieldGet = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind, f) {
8024
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8025
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
8026
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
8027
- };
8028
- var _Mime_extensionToType, _Mime_typeToExtension, _Mime_typeToExtensions;
8029
- var Mime = class {
8030
- constructor(...args) {
8031
- _Mime_extensionToType.set(this, /* @__PURE__ */ new Map());
8032
- _Mime_typeToExtension.set(this, /* @__PURE__ */ new Map());
8033
- _Mime_typeToExtensions.set(this, /* @__PURE__ */ new Map());
8034
- for (const arg of args) this.define(arg);
8035
- }
8036
- define(typeMap, force = false) {
8037
- for (let [type, extensions] of Object.entries(typeMap)) {
8038
- type = type.toLowerCase();
8039
- extensions = extensions.map((ext) => ext.toLowerCase());
8040
- if (!__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").has(type)) __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").set(type, /* @__PURE__ */ new Set());
8041
- const allExtensions = __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type);
8042
- let first = true;
8043
- for (let extension of extensions) {
8044
- const starred = extension.startsWith("*");
8045
- extension = starred ? extension.slice(1) : extension;
8046
- allExtensions?.add(extension);
8047
- if (first) __classPrivateFieldGet(this, _Mime_typeToExtension, "f").set(type, extension);
8048
- first = false;
8049
- if (starred) continue;
8050
- const currentType = __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(extension);
8051
- if (currentType && currentType != type && !force) throw new Error(`"${type} -> ${extension}" conflicts with "${currentType} -> ${extension}". Pass \`force=true\` to override this definition.`);
8052
- __classPrivateFieldGet(this, _Mime_extensionToType, "f").set(extension, type);
8053
- }
8054
- }
8055
- return this;
8056
- }
8057
- getType(path$5) {
8058
- if (typeof path$5 !== "string") return null;
8059
- const last = path$5.replace(/^.*[/\\]/, "").toLowerCase();
8060
- const ext = last.replace(/^.*\./, "").toLowerCase();
8061
- const hasPath = last.length < path$5.length;
8062
- if (!(ext.length < last.length - 1) && hasPath) return null;
8063
- return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext) ?? null;
8064
- }
8065
- getExtension(type) {
8066
- if (typeof type !== "string") return null;
8067
- type = type?.split?.(";")[0];
8068
- return (type && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type.trim().toLowerCase())) ?? null;
8069
- }
8070
- getAllExtensions(type) {
8071
- if (typeof type !== "string") return null;
8072
- return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type.toLowerCase()) ?? null;
8073
- }
8074
- _freeze() {
8075
- this.define = () => {
8076
- throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
8077
- };
8078
- Object.freeze(this);
8079
- for (const extensions of __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").values()) Object.freeze(extensions);
8080
- return this;
8081
- }
8082
- _getTestState() {
8083
- return {
8084
- types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
8085
- extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f")
8086
- };
8087
- }
8088
- };
8089
- _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
8090
- var Mime_default = Mime;
8091
-
8092
- //#endregion
8093
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/index.js
8094
- var src_default = new Mime_default(standard_default, other_default)._freeze();
8095
-
8096
6758
  //#endregion
8097
6759
  //#region src/utils/createWrangler.ts
8098
6760
  const createWrangler = ({ stdio, accountId, cloudflareApiToken, cwd }) => {
@@ -8121,20 +6783,21 @@ const r2Storage = (config, hooks) => (_) => {
8121
6783
  const getStorageKey = createStorageKeyBuilder(config.basePath);
8122
6784
  return {
8123
6785
  name: "r2Storage",
8124
- async deleteBundle(bundleId) {
8125
- const Key = getStorageKey(bundleId, "bundle.zip");
6786
+ supportedProtocol: "r2",
6787
+ async delete(storageUri) {
6788
+ const { bucket, key } = parseStorageUri(storageUri, "r2");
6789
+ if (bucket !== bucketName) throw new Error(`Bucket name mismatch: expected "${bucketName}", but found "${bucket}".`);
8126
6790
  try {
8127
- await wrangler("r2", "object", "delete", [bucketName, Key].join("/"), "--remote");
8128
- return { storageUri: `r2://${bucketName}/${Key}` };
6791
+ await wrangler("r2", "object", "delete", [bucketName, key].join("/"), "--remote");
8129
6792
  } catch {
8130
6793
  throw new Error("Can not delete bundle");
8131
6794
  }
8132
6795
  },
8133
- async uploadBundle(bundleId, bundlePath) {
8134
- const contentType = src_default.getType(bundlePath) ?? void 0;
8135
- const Key = getStorageKey(bundleId, path$1.basename(bundlePath));
6796
+ async upload(key, filePath) {
6797
+ const contentType = getContentType(filePath);
6798
+ const Key = getStorageKey(key, path$1.basename(filePath));
8136
6799
  try {
8137
- const { stderr, exitCode } = await wrangler("r2", "object", "put", [bucketName, Key].join("/"), "--file", bundlePath, ...contentType ? ["--content-type", contentType] : [], "--remote");
6800
+ const { stderr, exitCode } = await wrangler("r2", "object", "put", [bucketName, Key].join("/"), "--file", filePath, "--content-type", contentType, "--remote");
8138
6801
  if (exitCode !== 0 && stderr) throw new Error(stderr);
8139
6802
  } catch (error$1) {
8140
6803
  if (error$1 instanceof ExecaError) throw new Error(error$1.stderr || error$1.stdout);
@@ -8142,6 +6805,14 @@ const r2Storage = (config, hooks) => (_) => {
8142
6805
  }
8143
6806
  hooks?.onStorageUploaded?.();
8144
6807
  return { storageUri: `r2://${bucketName}/${Key}` };
6808
+ },
6809
+ async getDownloadUrl(storageUri) {
6810
+ const u$1 = new URL(storageUri);
6811
+ if (u$1.protocol.replace(":", "") !== "r2") throw new Error("Invalid R2 storage URI protocol");
6812
+ const { stdout: urlOutput } = await wrangler("r2", "object", "presign", [bucketName, u$1.pathname.slice(1)].join("/"), "--expires-in", "3600", "--remote");
6813
+ const signedUrl = urlOutput?.trim();
6814
+ if (!signedUrl) throw new Error("Failed to generate download URL");
6815
+ return { fileUrl: signedUrl };
8145
6816
  }
8146
6817
  };
8147
6818
  };