uomtiles 0.1.2 → 0.1.3
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/7KYNy7kZ.js +1 -0
- package/.output/public/_nuxt/7Rgc2iDI2.js +1 -0
- package/.output/public/_nuxt/BA52uD81.js +1 -0
- package/.output/public/_nuxt/{CU486JdV2.js → BHSn2vP72.js} +2 -2
- package/.output/public/_nuxt/BRsHq3Fz2.js +1 -0
- package/.output/public/_nuxt/Bh2Uv1S7.js +1 -0
- package/.output/public/_nuxt/BiRI-vq-.js +1 -0
- package/.output/public/_nuxt/Bpc1HTfh.js +1 -0
- package/.output/public/_nuxt/C-b4mqsD.js +1 -0
- package/.output/public/_nuxt/C5Y76DD6.js +1 -0
- package/.output/public/_nuxt/CD84FXNW.js +1 -0
- package/.output/public/_nuxt/CGkIG2vL2.js +1 -0
- package/.output/public/_nuxt/CM9IbYJz.js +1 -0
- package/.output/public/_nuxt/CUJ4QmLF.js +1 -0
- package/.output/public/_nuxt/CUQ3MZqI.js +1 -0
- package/.output/public/_nuxt/CVwoxklV.js +1 -0
- package/.output/public/_nuxt/CeHZqNQ0.js +1 -0
- package/.output/public/_nuxt/CkfS_Wbu.js +3 -0
- package/.output/public/_nuxt/CoPjdBwX.js +1 -0
- package/.output/public/_nuxt/CxkDmpVY.js +1 -0
- package/.output/public/_nuxt/CzRdWh7s2.js +1 -0
- package/.output/public/_nuxt/D-IOtyQX.js +1 -0
- package/.output/public/_nuxt/D3Us7gX72.js +1 -0
- package/.output/public/_nuxt/{DaQqwE3R.js → D8GHPYwQ.js} +44 -44
- package/.output/public/_nuxt/DLIy3f3M.js +1 -0
- package/.output/public/_nuxt/{CovBj6WN.js → DQ8r1OSk.js} +1 -1
- package/.output/public/_nuxt/D_9SjQFe.js +1 -0
- package/.output/public/_nuxt/D_Ggu6R_2.js +1 -0
- package/.output/public/_nuxt/{Q79ec-Ro.js → DnVJUY7B.js} +1 -1
- package/.output/public/_nuxt/{Bd1EvHmY.js → DuGgjt-h2.js} +1 -1
- package/.output/public/_nuxt/GEOST6As.js +1 -0
- package/.output/public/_nuxt/{DpIPeY5m.js → GqgcWtrL.js} +1 -1
- package/.output/public/_nuxt/{0hm88Oke.js → Hbp_Okvs.js} +1 -1
- package/.output/public/_nuxt/JdUwgqKv.js +1 -0
- package/.output/public/_nuxt/KttxEAyP2.js +1 -0
- package/.output/public/_nuxt/L0GXeO1Y2.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/ad8f3148-5aa4-4a0f-8e7a-e55147c5de1a.json +1 -0
- package/.output/public/_nuxt/entry.U-KS0GEu.css +1 -0
- package/.output/public/_nuxt/sMWyPZfC2.js +1 -0
- package/.output/public/_nuxt/zUWhKXtw2.js +1 -0
- package/.output/server/chunks/_/antigravity-nfz.mjs +629 -0
- package/.output/server/chunks/_/antigravity-nfz.mjs.map +1 -0
- package/.output/server/chunks/_/config.mjs +1 -1
- package/.output/server/chunks/_/file-workspace.mjs +1 -1
- package/.output/server/chunks/_/map-layer-update-manager.mjs +770 -0
- package/.output/server/chunks/_/map-layer-update-manager.mjs.map +1 -0
- package/.output/server/chunks/_/map-service.mjs +1 -1
- package/.output/server/chunks/_/uom-auth.mjs +1 -1
- package/.output/server/chunks/build/{CompletedTaskSelect-CKTpyHS3.mjs → CompletedTaskSelect-Ba03kTs9.mjs} +6 -7
- package/.output/server/chunks/build/{CompletedTaskSelect-CKTpyHS3.mjs.map → CompletedTaskSelect-Ba03kTs9.mjs.map} +1 -1
- package/.output/server/chunks/build/{Empty-BGIn09cL.mjs → Empty-CKvANuoV.mjs} +4 -103
- package/.output/server/chunks/build/Empty-CKvANuoV.mjs.map +1 -0
- package/.output/server/chunks/build/{FormField-DnJWfrKE.mjs → FormField-BJHVyy1m.mjs} +4 -35
- package/.output/server/chunks/build/FormField-BJHVyy1m.mjs.map +1 -0
- package/.output/server/chunks/build/{Input-AdlINKtJ.mjs → Input-DnAric-z.mjs} +1 -1
- package/.output/server/chunks/build/{Input-AdlINKtJ.mjs.map → Input-DnAric-z.mjs.map} +1 -1
- package/.output/server/chunks/build/MapLayerControl-DpNmYvcU.mjs +5720 -0
- package/.output/server/chunks/build/MapLayerControl-DpNmYvcU.mjs.map +1 -0
- package/.output/server/chunks/build/{Modal-CozaqIp1.mjs → Modal-BLhN9Eg2.mjs} +4 -18
- package/.output/server/chunks/build/{Modal-CozaqIp1.mjs.map → Modal-BLhN9Eg2.mjs.map} +1 -1
- package/.output/server/chunks/build/{OnlineMap-cFSicmkV.mjs → OnlineMap-B-sCfHkC.mjs} +6 -3
- package/.output/server/chunks/build/OnlineMap-B-sCfHkC.mjs.map +1 -0
- package/.output/server/chunks/build/{Pagination-GvNCxmOW.mjs → Pagination-CUzoLc_-.mjs} +1 -1
- package/.output/server/chunks/build/{Pagination-GvNCxmOW.mjs.map → Pagination-CUzoLc_-.mjs.map} +1 -1
- package/.output/server/chunks/build/Skeleton-CHp-GjOx.mjs +59 -0
- package/.output/server/chunks/build/Skeleton-CHp-GjOx.mjs.map +1 -0
- package/.output/server/chunks/build/{Slider-zQx1c7hB.mjs → Slider-CrIUK3pl.mjs} +5 -5
- package/.output/server/chunks/build/{Slider-zQx1c7hB.mjs.map → Slider-CrIUK3pl.mjs.map} +1 -1
- package/.output/server/chunks/build/{MapBaseLayerTabs-CRl5Zwlr.mjs → Tabs-cdLsZZoL.mjs} +429 -931
- package/.output/server/chunks/build/Tabs-cdLsZZoL.mjs.map +1 -0
- package/.output/server/chunks/build/{Tooltip-DNUdH4oF.mjs → Tooltip-DExIlyhu.mjs} +4 -195
- package/.output/server/chunks/build/Tooltip-DExIlyhu.mjs.map +1 -0
- package/.output/server/chunks/build/{advanced-5ZGMUBqC.mjs → advanced-DaSpS8Px.mjs} +31 -34
- package/.output/server/chunks/build/advanced-DaSpS8Px.mjs.map +1 -0
- package/.output/server/chunks/build/{compare-CtgF4Anj.mjs → compare-DaE10Dhp.mjs} +56 -37
- package/.output/server/chunks/build/compare-DaE10Dhp.mjs.map +1 -0
- package/.output/server/chunks/build/cookie-CziAmOf1.mjs +175 -0
- package/.output/server/chunks/build/cookie-CziAmOf1.mjs.map +1 -0
- package/.output/server/chunks/build/{dashboard-GneN-WPG.mjs → dashboard-Dq8mphss.mjs} +12 -6
- package/.output/server/chunks/build/{dashboard-GneN-WPG.mjs.map → dashboard-Dq8mphss.mjs.map} +1 -1
- package/.output/server/chunks/build/{details-CgufnL1d.mjs → details-DCNvSBgn.mjs} +5 -4
- package/.output/server/chunks/build/{details-CgufnL1d.mjs.map → details-DCNvSBgn.mjs.map} +1 -1
- package/.output/server/chunks/build/error-404-D9aQjJRn.mjs +1 -1
- package/.output/server/chunks/build/error-500-BNyA3wrb.mjs +1 -1
- package/.output/server/chunks/build/file-workspace-DMzPuPyG.mjs +104 -0
- package/.output/server/chunks/build/file-workspace-DMzPuPyG.mjs.map +1 -0
- package/.output/server/chunks/build/{interval-9B2MrM2e.mjs → interval-i5OZnTaK.mjs} +2 -2
- package/.output/server/chunks/build/{interval-9B2MrM2e.mjs.map → interval-i5OZnTaK.mjs.map} +1 -1
- package/.output/server/chunks/build/layers-50nqoWES.mjs +553 -0
- package/.output/server/chunks/build/layers-50nqoWES.mjs.map +1 -0
- package/.output/server/chunks/build/{login-Cf5EiCE4.mjs → login-BHSHtO-R.mjs} +6 -5
- package/.output/server/chunks/build/{login-Cf5EiCE4.mjs.map → login-BHSHtO-R.mjs.map} +1 -1
- package/.output/server/chunks/build/map-layers-C3HJoCLw.mjs +86 -0
- package/.output/server/chunks/build/map-layers-C3HJoCLw.mjs.map +1 -0
- package/.output/server/chunks/build/{DashboardSidebarToggle-CUI9NSow.mjs → overlay-BS4_B29H.mjs} +411 -4
- package/.output/server/chunks/build/overlay-BS4_B29H.mjs.map +1 -0
- package/.output/server/chunks/build/pages-5yYRS5nX.mjs +37 -0
- package/.output/server/chunks/build/pages-5yYRS5nX.mjs.map +1 -0
- package/.output/server/chunks/build/{pages-0c5sp_lv.mjs → pages-DfOPr0fC.mjs} +21 -21
- package/.output/server/chunks/build/pages-DfOPr0fC.mjs.map +1 -0
- package/.output/server/chunks/build/{services-BB49kSpd.mjs → services-DWlDpsbi.mjs} +45 -41
- package/.output/server/chunks/build/{services-BB49kSpd.mjs.map → services-DWlDpsbi.mjs.map} +1 -1
- package/.output/server/chunks/build/{tasks-BRcMLuRW.mjs → tasks-4b6D39Uy.mjs} +44 -100
- package/.output/server/chunks/build/{tasks-BRcMLuRW.mjs.map → tasks-4b6D39Uy.mjs.map} +1 -1
- package/.output/server/chunks/build/{tasks-Aa8PwjVL.mjs → tasks-BPPx2UMG.mjs} +10 -6
- package/.output/server/chunks/build/tasks-BPPx2UMG.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +303 -244
- package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.get.mjs +29 -0
- package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.post.mjs +31 -0
- package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/layers/_overlayLayer_.get.mjs +39 -0
- package/.output/server/chunks/routes/api/map/layers/_overlayLayer_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/layers/status.get.mjs +60 -0
- package/.output/server/chunks/routes/api/map/layers/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/live/status.get.mjs +1 -1
- package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename/export-estimate.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workspace/files.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workspace/stop.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workspace/tasks.post.mjs +2 -2
- package/.output/server/chunks/routes/renderer.mjs +3 -3
- package/.output/server/chunks/routes/services/wms.get.mjs +1 -1
- package/.output/server/chunks/routes/services/wmts.get.mjs +1 -1
- package/.output/server/chunks/virtual/entry.mjs +320 -443
- package/.output/server/chunks/virtual/entry.mjs.map +1 -1
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/chunks/virtual/styles.mjs +1 -1
- package/.output/server/node_modules/undici/index.js +234 -0
- package/.output/server/node_modules/undici/lib/api/abort-signal.js +59 -0
- package/.output/server/node_modules/undici/lib/api/api-connect.js +110 -0
- package/.output/server/node_modules/undici/lib/api/api-pipeline.js +252 -0
- package/.output/server/node_modules/undici/lib/api/api-request.js +214 -0
- package/.output/server/node_modules/undici/lib/api/api-stream.js +209 -0
- package/.output/server/node_modules/undici/lib/api/api-upgrade.js +111 -0
- package/.output/server/node_modules/undici/lib/api/index.js +7 -0
- package/.output/server/node_modules/undici/lib/api/readable.js +580 -0
- package/.output/server/node_modules/undici/lib/cache/memory-cache-store.js +279 -0
- package/.output/server/node_modules/undici/lib/cache/sqlite-cache-store.js +467 -0
- package/.output/server/node_modules/undici/lib/core/connect.js +153 -0
- package/.output/server/node_modules/undici/lib/core/constants.js +143 -0
- package/.output/server/node_modules/undici/lib/core/diagnostics.js +227 -0
- package/.output/server/node_modules/undici/lib/core/errors.js +477 -0
- package/.output/server/node_modules/undici/lib/core/request.js +464 -0
- package/.output/server/node_modules/undici/lib/core/socks5-client.js +422 -0
- package/.output/server/node_modules/undici/lib/core/socks5-utils.js +212 -0
- package/.output/server/node_modules/undici/lib/core/symbols.js +75 -0
- package/.output/server/node_modules/undici/lib/core/tree.js +160 -0
- package/.output/server/node_modules/undici/lib/core/util.js +992 -0
- package/.output/server/node_modules/undici/lib/dispatcher/agent.js +158 -0
- package/.output/server/node_modules/undici/lib/dispatcher/balanced-pool.js +219 -0
- package/.output/server/node_modules/undici/lib/dispatcher/client-h1.js +1731 -0
- package/.output/server/node_modules/undici/lib/dispatcher/client-h2.js +995 -0
- package/.output/server/node_modules/undici/lib/dispatcher/client.js +664 -0
- package/.output/server/node_modules/undici/lib/dispatcher/dispatcher-base.js +184 -0
- package/.output/server/node_modules/undici/lib/dispatcher/dispatcher.js +48 -0
- package/.output/server/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +146 -0
- package/.output/server/node_modules/undici/lib/dispatcher/fixed-queue.js +135 -0
- package/.output/server/node_modules/undici/lib/dispatcher/h2c-client.js +51 -0
- package/.output/server/node_modules/undici/lib/dispatcher/pool-base.js +214 -0
- package/.output/server/node_modules/undici/lib/dispatcher/pool.js +118 -0
- package/.output/server/node_modules/undici/lib/dispatcher/proxy-agent.js +319 -0
- package/.output/server/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/.output/server/node_modules/undici/lib/dispatcher/round-robin-pool.js +137 -0
- package/.output/server/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +260 -0
- package/.output/server/node_modules/undici/lib/encoding/index.js +33 -0
- package/.output/server/node_modules/undici/lib/global.js +59 -0
- package/.output/server/node_modules/undici/lib/handler/cache-handler.js +760 -0
- package/.output/server/node_modules/undici/lib/handler/cache-revalidation-handler.js +124 -0
- package/.output/server/node_modules/undici/lib/handler/decorator-handler.js +67 -0
- package/.output/server/node_modules/undici/lib/handler/deduplication-handler.js +460 -0
- package/.output/server/node_modules/undici/lib/handler/redirect-handler.js +238 -0
- package/.output/server/node_modules/undici/lib/handler/retry-handler.js +418 -0
- package/.output/server/node_modules/undici/lib/handler/unwrap-handler.js +106 -0
- package/.output/server/node_modules/undici/lib/handler/wrap-handler.js +105 -0
- package/.output/server/node_modules/undici/lib/interceptor/cache.js +602 -0
- package/.output/server/node_modules/undici/lib/interceptor/decompress.js +259 -0
- package/.output/server/node_modules/undici/lib/interceptor/deduplicate.js +117 -0
- package/.output/server/node_modules/undici/lib/interceptor/dns.js +571 -0
- package/.output/server/node_modules/undici/lib/interceptor/dump.js +112 -0
- package/.output/server/node_modules/undici/lib/interceptor/redirect.js +21 -0
- package/.output/server/node_modules/undici/lib/interceptor/response-error.js +95 -0
- package/.output/server/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/.output/server/node_modules/undici/lib/llhttp/constants.js +531 -0
- package/.output/server/node_modules/undici/lib/llhttp/llhttp-wasm.js +15 -0
- package/.output/server/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +15 -0
- package/.output/server/node_modules/undici/lib/llhttp/utils.js +12 -0
- package/.output/server/node_modules/undici/lib/mock/mock-agent.js +232 -0
- package/.output/server/node_modules/undici/lib/mock/mock-call-history.js +248 -0
- package/.output/server/node_modules/undici/lib/mock/mock-client.js +68 -0
- package/.output/server/node_modules/undici/lib/mock/mock-errors.js +29 -0
- package/.output/server/node_modules/undici/lib/mock/mock-interceptor.js +209 -0
- package/.output/server/node_modules/undici/lib/mock/mock-pool.js +68 -0
- package/.output/server/node_modules/undici/lib/mock/mock-symbols.js +32 -0
- package/.output/server/node_modules/undici/lib/mock/mock-utils.js +486 -0
- package/.output/server/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/.output/server/node_modules/undici/lib/mock/snapshot-agent.js +353 -0
- package/.output/server/node_modules/undici/lib/mock/snapshot-recorder.js +588 -0
- package/.output/server/node_modules/undici/lib/mock/snapshot-utils.js +158 -0
- package/.output/server/node_modules/undici/lib/util/cache.js +676 -0
- package/.output/server/node_modules/undici/lib/util/date.js +670 -0
- package/.output/server/node_modules/undici/lib/util/promise.js +28 -0
- package/.output/server/node_modules/undici/lib/util/runtime-features.js +124 -0
- package/.output/server/node_modules/undici/lib/util/stats.js +32 -0
- package/.output/server/node_modules/undici/lib/util/timers.js +425 -0
- package/.output/server/node_modules/undici/lib/web/cache/cache.js +864 -0
- package/.output/server/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/.output/server/node_modules/undici/lib/web/cache/util.js +45 -0
- package/.output/server/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/.output/server/node_modules/undici/lib/web/cookies/index.js +199 -0
- package/.output/server/node_modules/undici/lib/web/cookies/parse.js +314 -0
- package/.output/server/node_modules/undici/lib/web/cookies/util.js +352 -0
- package/.output/server/node_modules/undici/lib/web/eventsource/eventsource-stream.js +399 -0
- package/.output/server/node_modules/undici/lib/web/eventsource/eventsource.js +501 -0
- package/.output/server/node_modules/undici/lib/web/eventsource/util.js +29 -0
- package/.output/server/node_modules/undici/lib/web/fetch/body.js +509 -0
- package/.output/server/node_modules/undici/lib/web/fetch/constants.js +131 -0
- package/.output/server/node_modules/undici/lib/web/fetch/data-url.js +596 -0
- package/.output/server/node_modules/undici/lib/web/fetch/formdata-parser.js +586 -0
- package/.output/server/node_modules/undici/lib/web/fetch/formdata.js +259 -0
- package/.output/server/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/.output/server/node_modules/undici/lib/web/fetch/headers.js +719 -0
- package/.output/server/node_modules/undici/lib/web/fetch/index.js +2413 -0
- package/.output/server/node_modules/undici/lib/web/fetch/request.js +1115 -0
- package/.output/server/node_modules/undici/lib/web/fetch/response.js +641 -0
- package/.output/server/node_modules/undici/lib/web/fetch/util.js +1522 -0
- package/.output/server/node_modules/undici/lib/web/infra/index.js +229 -0
- package/.output/server/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +307 -0
- package/.output/server/node_modules/undici/lib/web/webidl/index.js +1006 -0
- package/.output/server/node_modules/undici/lib/web/websocket/connection.js +329 -0
- package/.output/server/node_modules/undici/lib/web/websocket/constants.js +126 -0
- package/.output/server/node_modules/undici/lib/web/websocket/events.js +331 -0
- package/.output/server/node_modules/undici/lib/web/websocket/frame.js +133 -0
- package/.output/server/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
- package/.output/server/node_modules/undici/lib/web/websocket/receiver.js +507 -0
- package/.output/server/node_modules/undici/lib/web/websocket/sender.js +109 -0
- package/.output/server/node_modules/undici/lib/web/websocket/stream/websocketerror.js +104 -0
- package/.output/server/node_modules/undici/lib/web/websocket/stream/websocketstream.js +498 -0
- package/.output/server/node_modules/undici/lib/web/websocket/util.js +347 -0
- package/.output/server/node_modules/undici/lib/web/websocket/websocket.js +758 -0
- package/.output/server/node_modules/undici/package.json +152 -0
- package/.output/server/package.json +2 -1
- package/LICENSE +201 -2
- package/README.md +17 -4
- package/dist/package.json +3 -2
- package/dist/shared/antigravity-schema.js +45 -0
- package/dist/shared/dji-grid.js +62 -0
- package/dist/shared/types/map-layers.js +2 -0
- package/dist/src/cli.js +63 -5
- package/dist/src/core/dji-snapshot.js +135 -0
- package/dist/src/core/map-layer-paths.js +11 -0
- package/dist/src/map-layer-update.js +646 -0
- package/package.json +3 -2
- package/.output/public/_nuxt/BNfSclJ4.js +0 -1
- package/.output/public/_nuxt/BYzlinOr2.js +0 -1
- package/.output/public/_nuxt/Be4dNlar.js +0 -1
- package/.output/public/_nuxt/C7fHMLd7.js +0 -1
- package/.output/public/_nuxt/CNs_Ozdc.js +0 -1
- package/.output/public/_nuxt/CQ8inUdm.js +0 -1
- package/.output/public/_nuxt/Cc_JfSB1.js +0 -1
- package/.output/public/_nuxt/CyZDc0eO2.js +0 -1
- package/.output/public/_nuxt/CzFefJH0.js +0 -1
- package/.output/public/_nuxt/D-t0hXHB.js +0 -1
- package/.output/public/_nuxt/D3Pl7yw22.js +0 -1
- package/.output/public/_nuxt/D4gbGuiW.js +0 -1
- package/.output/public/_nuxt/DDp9lK3g.js +0 -1
- package/.output/public/_nuxt/DIIXHC50.js +0 -1
- package/.output/public/_nuxt/DWFUvzz0.js +0 -1
- package/.output/public/_nuxt/D_VoD6-f.js +0 -1
- package/.output/public/_nuxt/DfXX-x_z.js +0 -1
- package/.output/public/_nuxt/Dgyf2aNY.js +0 -1
- package/.output/public/_nuxt/GM5myUL22.js +0 -1
- package/.output/public/_nuxt/IC4wc76W.js +0 -1
- package/.output/public/_nuxt/IfL46N3Z.js +0 -1
- package/.output/public/_nuxt/KEU2l6zJ.js +0 -3
- package/.output/public/_nuxt/SEETjfdJ.js +0 -1
- package/.output/public/_nuxt/builds/meta/2c4adba2-91b5-44e4-91d3-50a61695207b.json +0 -1
- package/.output/public/_nuxt/entry.CZ_dkjcs.css +0 -1
- package/.output/public/_nuxt/nGp0t_eD.js +0 -1
- package/.output/server/chunks/build/Alert-DHVVSgdD.mjs +0 -1074
- package/.output/server/chunks/build/Alert-DHVVSgdD.mjs.map +0 -1
- package/.output/server/chunks/build/DashboardSidebarToggle-CUI9NSow.mjs.map +0 -1
- package/.output/server/chunks/build/Empty-BGIn09cL.mjs.map +0 -1
- package/.output/server/chunks/build/FocusScope-DNZVMnza.mjs +0 -207
- package/.output/server/chunks/build/FocusScope-DNZVMnza.mjs.map +0 -1
- package/.output/server/chunks/build/FormField-DnJWfrKE.mjs.map +0 -1
- package/.output/server/chunks/build/MapBaseLayerTabs-CRl5Zwlr.mjs.map +0 -1
- package/.output/server/chunks/build/OnlineMap-cFSicmkV.mjs.map +0 -1
- package/.output/server/chunks/build/Tooltip-DNUdH4oF.mjs.map +0 -1
- package/.output/server/chunks/build/advanced-5ZGMUBqC.mjs.map +0 -1
- package/.output/server/chunks/build/compare-CtgF4Anj.mjs.map +0 -1
- package/.output/server/chunks/build/pages-0c5sp_lv.mjs.map +0 -1
- package/.output/server/chunks/build/tasks-Aa8PwjVL.mjs.map +0 -1
|
@@ -0,0 +1,670 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @see https://www.rfc-editor.org/rfc/rfc9110.html#name-date-time-formats
|
|
5
|
+
*
|
|
6
|
+
* @param {string} date
|
|
7
|
+
* @returns {Date | undefined}
|
|
8
|
+
*/
|
|
9
|
+
function parseHttpDate (date) {
|
|
10
|
+
// Sun, 06 Nov 1994 08:49:37 GMT ; IMF-fixdate
|
|
11
|
+
// Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format
|
|
12
|
+
// Sunday, 06-Nov-94 08:49:37 GMT ; obsolete RFC 850 format
|
|
13
|
+
|
|
14
|
+
switch (date[3]) {
|
|
15
|
+
case ',': return parseImfDate(date)
|
|
16
|
+
case ' ': return parseAscTimeDate(date)
|
|
17
|
+
default: return parseRfc850Date(date)
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function makeDate (year, monthIdx, day, hour, minute, second, weekday) {
|
|
22
|
+
const result = new Date(Date.UTC(year, monthIdx, day, hour, minute, second))
|
|
23
|
+
|
|
24
|
+
// Date.UTC treats years 0-99 as 1900-1999. Reset the full year so component
|
|
25
|
+
// checks below validate the HTTP date as written.
|
|
26
|
+
if (year >= 0 && year <= 99) {
|
|
27
|
+
result.setUTCFullYear(year)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return result.getUTCFullYear() === year &&
|
|
31
|
+
result.getUTCMonth() === monthIdx &&
|
|
32
|
+
result.getUTCDate() === day &&
|
|
33
|
+
result.getUTCHours() === hour &&
|
|
34
|
+
result.getUTCMinutes() === minute &&
|
|
35
|
+
result.getUTCSeconds() === second &&
|
|
36
|
+
result.getUTCDay() === weekday
|
|
37
|
+
? result
|
|
38
|
+
: undefined
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @see https://httpwg.org/specs/rfc9110.html#preferred.date.format
|
|
43
|
+
*
|
|
44
|
+
* @param {string} date
|
|
45
|
+
* @returns {Date | undefined}
|
|
46
|
+
*/
|
|
47
|
+
function parseImfDate (date) {
|
|
48
|
+
if (
|
|
49
|
+
date.length !== 29 ||
|
|
50
|
+
date[4] !== ' ' ||
|
|
51
|
+
date[7] !== ' ' ||
|
|
52
|
+
date[11] !== ' ' ||
|
|
53
|
+
date[16] !== ' ' ||
|
|
54
|
+
date[19] !== ':' ||
|
|
55
|
+
date[22] !== ':' ||
|
|
56
|
+
date[25] !== ' ' ||
|
|
57
|
+
date[26] !== 'G' ||
|
|
58
|
+
date[27] !== 'M' ||
|
|
59
|
+
date[28] !== 'T'
|
|
60
|
+
) {
|
|
61
|
+
return undefined
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
let weekday = -1
|
|
65
|
+
if (date[0] === 'S' && date[1] === 'u' && date[2] === 'n') { // Sunday
|
|
66
|
+
weekday = 0
|
|
67
|
+
} else if (date[0] === 'M' && date[1] === 'o' && date[2] === 'n') { // Monday
|
|
68
|
+
weekday = 1
|
|
69
|
+
} else if (date[0] === 'T' && date[1] === 'u' && date[2] === 'e') { // Tuesday
|
|
70
|
+
weekday = 2
|
|
71
|
+
} else if (date[0] === 'W' && date[1] === 'e' && date[2] === 'd') { // Wednesday
|
|
72
|
+
weekday = 3
|
|
73
|
+
} else if (date[0] === 'T' && date[1] === 'h' && date[2] === 'u') { // Thursday
|
|
74
|
+
weekday = 4
|
|
75
|
+
} else if (date[0] === 'F' && date[1] === 'r' && date[2] === 'i') { // Friday
|
|
76
|
+
weekday = 5
|
|
77
|
+
} else if (date[0] === 'S' && date[1] === 'a' && date[2] === 't') { // Saturday
|
|
78
|
+
weekday = 6
|
|
79
|
+
} else {
|
|
80
|
+
return undefined // Not a valid day of the week
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
let day = 0
|
|
84
|
+
if (date[5] === '0') {
|
|
85
|
+
// Single digit day, e.g. "Sun Nov 6 08:49:37 1994"
|
|
86
|
+
const code = date.charCodeAt(6)
|
|
87
|
+
if (code < 49 || code > 57) {
|
|
88
|
+
return undefined // Not a digit
|
|
89
|
+
}
|
|
90
|
+
day = code - 48 // Convert ASCII code to number
|
|
91
|
+
} else {
|
|
92
|
+
const code1 = date.charCodeAt(5)
|
|
93
|
+
if (code1 < 49 || code1 > 51) {
|
|
94
|
+
return undefined // Not a digit between 1 and 3
|
|
95
|
+
}
|
|
96
|
+
const code2 = date.charCodeAt(6)
|
|
97
|
+
if (code2 < 48 || code2 > 57) {
|
|
98
|
+
return undefined // Not a digit
|
|
99
|
+
}
|
|
100
|
+
day = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
let monthIdx = -1
|
|
104
|
+
if (
|
|
105
|
+
(date[8] === 'J' && date[9] === 'a' && date[10] === 'n')
|
|
106
|
+
) {
|
|
107
|
+
monthIdx = 0 // Jan
|
|
108
|
+
} else if (
|
|
109
|
+
(date[8] === 'F' && date[9] === 'e' && date[10] === 'b')
|
|
110
|
+
) {
|
|
111
|
+
monthIdx = 1 // Feb
|
|
112
|
+
} else if (
|
|
113
|
+
(date[8] === 'M' && date[9] === 'a')
|
|
114
|
+
) {
|
|
115
|
+
if (date[10] === 'r') {
|
|
116
|
+
monthIdx = 2 // Mar
|
|
117
|
+
} else if (date[10] === 'y') {
|
|
118
|
+
monthIdx = 4 // May
|
|
119
|
+
} else {
|
|
120
|
+
return undefined // Invalid month
|
|
121
|
+
}
|
|
122
|
+
} else if (
|
|
123
|
+
(date[8] === 'J')
|
|
124
|
+
) {
|
|
125
|
+
if (date[9] === 'a' && date[10] === 'n') {
|
|
126
|
+
monthIdx = 0 // Jan
|
|
127
|
+
} else if (date[9] === 'u') {
|
|
128
|
+
if (date[10] === 'n') {
|
|
129
|
+
monthIdx = 5 // Jun
|
|
130
|
+
} else if (date[10] === 'l') {
|
|
131
|
+
monthIdx = 6 // Jul
|
|
132
|
+
} else {
|
|
133
|
+
return undefined // Invalid month
|
|
134
|
+
}
|
|
135
|
+
} else {
|
|
136
|
+
return undefined // Invalid month
|
|
137
|
+
}
|
|
138
|
+
} else if (
|
|
139
|
+
(date[8] === 'A')
|
|
140
|
+
) {
|
|
141
|
+
if (date[9] === 'p' && date[10] === 'r') {
|
|
142
|
+
monthIdx = 3 // Apr
|
|
143
|
+
} else if (date[9] === 'u' && date[10] === 'g') {
|
|
144
|
+
monthIdx = 7 // Aug
|
|
145
|
+
} else {
|
|
146
|
+
return undefined // Invalid month
|
|
147
|
+
}
|
|
148
|
+
} else if (
|
|
149
|
+
(date[8] === 'S' && date[9] === 'e' && date[10] === 'p')
|
|
150
|
+
) {
|
|
151
|
+
monthIdx = 8 // Sep
|
|
152
|
+
} else if (
|
|
153
|
+
(date[8] === 'O' && date[9] === 'c' && date[10] === 't')
|
|
154
|
+
) {
|
|
155
|
+
monthIdx = 9 // Oct
|
|
156
|
+
} else if (
|
|
157
|
+
(date[8] === 'N' && date[9] === 'o' && date[10] === 'v')
|
|
158
|
+
) {
|
|
159
|
+
monthIdx = 10 // Nov
|
|
160
|
+
} else if (
|
|
161
|
+
(date[8] === 'D' && date[9] === 'e' && date[10] === 'c')
|
|
162
|
+
) {
|
|
163
|
+
monthIdx = 11 // Dec
|
|
164
|
+
} else {
|
|
165
|
+
// Not a valid month
|
|
166
|
+
return undefined
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
const yearDigit1 = date.charCodeAt(12)
|
|
170
|
+
if (yearDigit1 < 48 || yearDigit1 > 57) {
|
|
171
|
+
return undefined // Not a digit
|
|
172
|
+
}
|
|
173
|
+
const yearDigit2 = date.charCodeAt(13)
|
|
174
|
+
if (yearDigit2 < 48 || yearDigit2 > 57) {
|
|
175
|
+
return undefined // Not a digit
|
|
176
|
+
}
|
|
177
|
+
const yearDigit3 = date.charCodeAt(14)
|
|
178
|
+
if (yearDigit3 < 48 || yearDigit3 > 57) {
|
|
179
|
+
return undefined // Not a digit
|
|
180
|
+
}
|
|
181
|
+
const yearDigit4 = date.charCodeAt(15)
|
|
182
|
+
if (yearDigit4 < 48 || yearDigit4 > 57) {
|
|
183
|
+
return undefined // Not a digit
|
|
184
|
+
}
|
|
185
|
+
const year = (yearDigit1 - 48) * 1000 + (yearDigit2 - 48) * 100 + (yearDigit3 - 48) * 10 + (yearDigit4 - 48)
|
|
186
|
+
|
|
187
|
+
let hour = 0
|
|
188
|
+
if (date[17] === '0') {
|
|
189
|
+
const code = date.charCodeAt(18)
|
|
190
|
+
if (code < 48 || code > 57) {
|
|
191
|
+
return undefined // Not a digit
|
|
192
|
+
}
|
|
193
|
+
hour = code - 48 // Convert ASCII code to number
|
|
194
|
+
} else {
|
|
195
|
+
const code1 = date.charCodeAt(17)
|
|
196
|
+
if (code1 < 48 || code1 > 50) {
|
|
197
|
+
return undefined // Not a digit between 0 and 2
|
|
198
|
+
}
|
|
199
|
+
const code2 = date.charCodeAt(18)
|
|
200
|
+
if (code2 < 48 || code2 > 57) {
|
|
201
|
+
return undefined // Not a digit
|
|
202
|
+
}
|
|
203
|
+
if (code1 === 50 && code2 > 51) {
|
|
204
|
+
return undefined // Hour cannot be greater than 23
|
|
205
|
+
}
|
|
206
|
+
hour = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
let minute = 0
|
|
210
|
+
if (date[20] === '0') {
|
|
211
|
+
const code = date.charCodeAt(21)
|
|
212
|
+
if (code < 48 || code > 57) {
|
|
213
|
+
return undefined // Not a digit
|
|
214
|
+
}
|
|
215
|
+
minute = code - 48 // Convert ASCII code to number
|
|
216
|
+
} else {
|
|
217
|
+
const code1 = date.charCodeAt(20)
|
|
218
|
+
if (code1 < 48 || code1 > 53) {
|
|
219
|
+
return undefined // Not a digit between 0 and 5
|
|
220
|
+
}
|
|
221
|
+
const code2 = date.charCodeAt(21)
|
|
222
|
+
if (code2 < 48 || code2 > 57) {
|
|
223
|
+
return undefined // Not a digit
|
|
224
|
+
}
|
|
225
|
+
minute = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
let second = 0
|
|
229
|
+
if (date[23] === '0') {
|
|
230
|
+
const code = date.charCodeAt(24)
|
|
231
|
+
if (code < 48 || code > 57) {
|
|
232
|
+
return undefined // Not a digit
|
|
233
|
+
}
|
|
234
|
+
second = code - 48 // Convert ASCII code to number
|
|
235
|
+
} else {
|
|
236
|
+
const code1 = date.charCodeAt(23)
|
|
237
|
+
if (code1 < 48 || code1 > 53) {
|
|
238
|
+
return undefined // Not a digit between 0 and 5
|
|
239
|
+
}
|
|
240
|
+
const code2 = date.charCodeAt(24)
|
|
241
|
+
if (code2 < 48 || code2 > 57) {
|
|
242
|
+
return undefined // Not a digit
|
|
243
|
+
}
|
|
244
|
+
second = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
return makeDate(year, monthIdx, day, hour, minute, second, weekday)
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @see https://httpwg.org/specs/rfc9110.html#obsolete.date.formats
|
|
252
|
+
*
|
|
253
|
+
* @param {string} date
|
|
254
|
+
* @returns {Date | undefined}
|
|
255
|
+
*/
|
|
256
|
+
function parseAscTimeDate (date) {
|
|
257
|
+
// This is assumed to be in UTC
|
|
258
|
+
|
|
259
|
+
if (
|
|
260
|
+
date.length !== 24 ||
|
|
261
|
+
date[7] !== ' ' ||
|
|
262
|
+
date[10] !== ' ' ||
|
|
263
|
+
date[19] !== ' '
|
|
264
|
+
) {
|
|
265
|
+
return undefined
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
let weekday = -1
|
|
269
|
+
if (date[0] === 'S' && date[1] === 'u' && date[2] === 'n') { // Sunday
|
|
270
|
+
weekday = 0
|
|
271
|
+
} else if (date[0] === 'M' && date[1] === 'o' && date[2] === 'n') { // Monday
|
|
272
|
+
weekday = 1
|
|
273
|
+
} else if (date[0] === 'T' && date[1] === 'u' && date[2] === 'e') { // Tuesday
|
|
274
|
+
weekday = 2
|
|
275
|
+
} else if (date[0] === 'W' && date[1] === 'e' && date[2] === 'd') { // Wednesday
|
|
276
|
+
weekday = 3
|
|
277
|
+
} else if (date[0] === 'T' && date[1] === 'h' && date[2] === 'u') { // Thursday
|
|
278
|
+
weekday = 4
|
|
279
|
+
} else if (date[0] === 'F' && date[1] === 'r' && date[2] === 'i') { // Friday
|
|
280
|
+
weekday = 5
|
|
281
|
+
} else if (date[0] === 'S' && date[1] === 'a' && date[2] === 't') { // Saturday
|
|
282
|
+
weekday = 6
|
|
283
|
+
} else {
|
|
284
|
+
return undefined // Not a valid day of the week
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
let monthIdx = -1
|
|
288
|
+
if (
|
|
289
|
+
(date[4] === 'J' && date[5] === 'a' && date[6] === 'n')
|
|
290
|
+
) {
|
|
291
|
+
monthIdx = 0 // Jan
|
|
292
|
+
} else if (
|
|
293
|
+
(date[4] === 'F' && date[5] === 'e' && date[6] === 'b')
|
|
294
|
+
) {
|
|
295
|
+
monthIdx = 1 // Feb
|
|
296
|
+
} else if (
|
|
297
|
+
(date[4] === 'M' && date[5] === 'a')
|
|
298
|
+
) {
|
|
299
|
+
if (date[6] === 'r') {
|
|
300
|
+
monthIdx = 2 // Mar
|
|
301
|
+
} else if (date[6] === 'y') {
|
|
302
|
+
monthIdx = 4 // May
|
|
303
|
+
} else {
|
|
304
|
+
return undefined // Invalid month
|
|
305
|
+
}
|
|
306
|
+
} else if (
|
|
307
|
+
(date[4] === 'J')
|
|
308
|
+
) {
|
|
309
|
+
if (date[5] === 'a' && date[6] === 'n') {
|
|
310
|
+
monthIdx = 0 // Jan
|
|
311
|
+
} else if (date[5] === 'u') {
|
|
312
|
+
if (date[6] === 'n') {
|
|
313
|
+
monthIdx = 5 // Jun
|
|
314
|
+
} else if (date[6] === 'l') {
|
|
315
|
+
monthIdx = 6 // Jul
|
|
316
|
+
} else {
|
|
317
|
+
return undefined // Invalid month
|
|
318
|
+
}
|
|
319
|
+
} else {
|
|
320
|
+
return undefined // Invalid month
|
|
321
|
+
}
|
|
322
|
+
} else if (
|
|
323
|
+
(date[4] === 'A')
|
|
324
|
+
) {
|
|
325
|
+
if (date[5] === 'p' && date[6] === 'r') {
|
|
326
|
+
monthIdx = 3 // Apr
|
|
327
|
+
} else if (date[5] === 'u' && date[6] === 'g') {
|
|
328
|
+
monthIdx = 7 // Aug
|
|
329
|
+
} else {
|
|
330
|
+
return undefined // Invalid month
|
|
331
|
+
}
|
|
332
|
+
} else if (
|
|
333
|
+
(date[4] === 'S' && date[5] === 'e' && date[6] === 'p')
|
|
334
|
+
) {
|
|
335
|
+
monthIdx = 8 // Sep
|
|
336
|
+
} else if (
|
|
337
|
+
(date[4] === 'O' && date[5] === 'c' && date[6] === 't')
|
|
338
|
+
) {
|
|
339
|
+
monthIdx = 9 // Oct
|
|
340
|
+
} else if (
|
|
341
|
+
(date[4] === 'N' && date[5] === 'o' && date[6] === 'v')
|
|
342
|
+
) {
|
|
343
|
+
monthIdx = 10 // Nov
|
|
344
|
+
} else if (
|
|
345
|
+
(date[4] === 'D' && date[5] === 'e' && date[6] === 'c')
|
|
346
|
+
) {
|
|
347
|
+
monthIdx = 11 // Dec
|
|
348
|
+
} else {
|
|
349
|
+
// Not a valid month
|
|
350
|
+
return undefined
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
let day = 0
|
|
354
|
+
if (date[8] === ' ') {
|
|
355
|
+
// Single digit day, e.g. "Sun Nov 6 08:49:37 1994"
|
|
356
|
+
const code = date.charCodeAt(9)
|
|
357
|
+
if (code < 49 || code > 57) {
|
|
358
|
+
return undefined // Not a digit
|
|
359
|
+
}
|
|
360
|
+
day = code - 48 // Convert ASCII code to number
|
|
361
|
+
} else {
|
|
362
|
+
const code1 = date.charCodeAt(8)
|
|
363
|
+
if (code1 < 49 || code1 > 51) {
|
|
364
|
+
return undefined // Not a digit between 1 and 3
|
|
365
|
+
}
|
|
366
|
+
const code2 = date.charCodeAt(9)
|
|
367
|
+
if (code2 < 48 || code2 > 57) {
|
|
368
|
+
return undefined // Not a digit
|
|
369
|
+
}
|
|
370
|
+
day = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
let hour = 0
|
|
374
|
+
if (date[11] === '0') {
|
|
375
|
+
const code = date.charCodeAt(12)
|
|
376
|
+
if (code < 48 || code > 57) {
|
|
377
|
+
return undefined // Not a digit
|
|
378
|
+
}
|
|
379
|
+
hour = code - 48 // Convert ASCII code to number
|
|
380
|
+
} else {
|
|
381
|
+
const code1 = date.charCodeAt(11)
|
|
382
|
+
if (code1 < 48 || code1 > 50) {
|
|
383
|
+
return undefined // Not a digit between 0 and 2
|
|
384
|
+
}
|
|
385
|
+
const code2 = date.charCodeAt(12)
|
|
386
|
+
if (code2 < 48 || code2 > 57) {
|
|
387
|
+
return undefined // Not a digit
|
|
388
|
+
}
|
|
389
|
+
if (code1 === 50 && code2 > 51) {
|
|
390
|
+
return undefined // Hour cannot be greater than 23
|
|
391
|
+
}
|
|
392
|
+
hour = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
let minute = 0
|
|
396
|
+
if (date[14] === '0') {
|
|
397
|
+
const code = date.charCodeAt(15)
|
|
398
|
+
if (code < 48 || code > 57) {
|
|
399
|
+
return undefined // Not a digit
|
|
400
|
+
}
|
|
401
|
+
minute = code - 48 // Convert ASCII code to number
|
|
402
|
+
} else {
|
|
403
|
+
const code1 = date.charCodeAt(14)
|
|
404
|
+
if (code1 < 48 || code1 > 53) {
|
|
405
|
+
return undefined // Not a digit between 0 and 5
|
|
406
|
+
}
|
|
407
|
+
const code2 = date.charCodeAt(15)
|
|
408
|
+
if (code2 < 48 || code2 > 57) {
|
|
409
|
+
return undefined // Not a digit
|
|
410
|
+
}
|
|
411
|
+
minute = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
let second = 0
|
|
415
|
+
if (date[17] === '0') {
|
|
416
|
+
const code = date.charCodeAt(18)
|
|
417
|
+
if (code < 48 || code > 57) {
|
|
418
|
+
return undefined // Not a digit
|
|
419
|
+
}
|
|
420
|
+
second = code - 48 // Convert ASCII code to number
|
|
421
|
+
} else {
|
|
422
|
+
const code1 = date.charCodeAt(17)
|
|
423
|
+
if (code1 < 48 || code1 > 53) {
|
|
424
|
+
return undefined // Not a digit between 0 and 5
|
|
425
|
+
}
|
|
426
|
+
const code2 = date.charCodeAt(18)
|
|
427
|
+
if (code2 < 48 || code2 > 57) {
|
|
428
|
+
return undefined // Not a digit
|
|
429
|
+
}
|
|
430
|
+
second = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
const yearDigit1 = date.charCodeAt(20)
|
|
434
|
+
if (yearDigit1 < 48 || yearDigit1 > 57) {
|
|
435
|
+
return undefined // Not a digit
|
|
436
|
+
}
|
|
437
|
+
const yearDigit2 = date.charCodeAt(21)
|
|
438
|
+
if (yearDigit2 < 48 || yearDigit2 > 57) {
|
|
439
|
+
return undefined // Not a digit
|
|
440
|
+
}
|
|
441
|
+
const yearDigit3 = date.charCodeAt(22)
|
|
442
|
+
if (yearDigit3 < 48 || yearDigit3 > 57) {
|
|
443
|
+
return undefined // Not a digit
|
|
444
|
+
}
|
|
445
|
+
const yearDigit4 = date.charCodeAt(23)
|
|
446
|
+
if (yearDigit4 < 48 || yearDigit4 > 57) {
|
|
447
|
+
return undefined // Not a digit
|
|
448
|
+
}
|
|
449
|
+
const year = (yearDigit1 - 48) * 1000 + (yearDigit2 - 48) * 100 + (yearDigit3 - 48) * 10 + (yearDigit4 - 48)
|
|
450
|
+
|
|
451
|
+
return makeDate(year, monthIdx, day, hour, minute, second, weekday)
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @see https://httpwg.org/specs/rfc9110.html#obsolete.date.formats
|
|
456
|
+
*
|
|
457
|
+
* @param {string} date
|
|
458
|
+
* @returns {Date | undefined}
|
|
459
|
+
*/
|
|
460
|
+
function parseRfc850Date (date) {
|
|
461
|
+
let commaIndex = -1
|
|
462
|
+
|
|
463
|
+
let weekday = -1
|
|
464
|
+
if (date[0] === 'S') {
|
|
465
|
+
if (date[1] === 'u' && date[2] === 'n' && date[3] === 'd' && date[4] === 'a' && date[5] === 'y') {
|
|
466
|
+
weekday = 0 // Sunday
|
|
467
|
+
commaIndex = 6
|
|
468
|
+
} else if (date[1] === 'a' && date[2] === 't' && date[3] === 'u' && date[4] === 'r' && date[5] === 'd' && date[6] === 'a' && date[7] === 'y') {
|
|
469
|
+
weekday = 6 // Saturday
|
|
470
|
+
commaIndex = 8
|
|
471
|
+
}
|
|
472
|
+
} else if (date[0] === 'M' && date[1] === 'o' && date[2] === 'n' && date[3] === 'd' && date[4] === 'a' && date[5] === 'y') {
|
|
473
|
+
weekday = 1 // Monday
|
|
474
|
+
commaIndex = 6
|
|
475
|
+
} else if (date[0] === 'T') {
|
|
476
|
+
if (date[1] === 'u' && date[2] === 'e' && date[3] === 's' && date[4] === 'd' && date[5] === 'a' && date[6] === 'y') {
|
|
477
|
+
weekday = 2 // Tuesday
|
|
478
|
+
commaIndex = 7
|
|
479
|
+
} else if (date[1] === 'h' && date[2] === 'u' && date[3] === 'r' && date[4] === 's' && date[5] === 'd' && date[6] === 'a' && date[7] === 'y') {
|
|
480
|
+
weekday = 4 // Thursday
|
|
481
|
+
commaIndex = 8
|
|
482
|
+
}
|
|
483
|
+
} else if (date[0] === 'W' && date[1] === 'e' && date[2] === 'd' && date[3] === 'n' && date[4] === 'e' && date[5] === 's' && date[6] === 'd' && date[7] === 'a' && date[8] === 'y') {
|
|
484
|
+
weekday = 3 // Wednesday
|
|
485
|
+
commaIndex = 9
|
|
486
|
+
} else if (date[0] === 'F' && date[1] === 'r' && date[2] === 'i' && date[3] === 'd' && date[4] === 'a' && date[5] === 'y') {
|
|
487
|
+
weekday = 5 // Friday
|
|
488
|
+
commaIndex = 6
|
|
489
|
+
} else {
|
|
490
|
+
// Not a valid day name
|
|
491
|
+
return undefined
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
if (
|
|
495
|
+
date[commaIndex] !== ',' ||
|
|
496
|
+
(date.length - commaIndex - 1) !== 23 ||
|
|
497
|
+
date[commaIndex + 1] !== ' ' ||
|
|
498
|
+
date[commaIndex + 4] !== '-' ||
|
|
499
|
+
date[commaIndex + 8] !== '-' ||
|
|
500
|
+
date[commaIndex + 11] !== ' ' ||
|
|
501
|
+
date[commaIndex + 14] !== ':' ||
|
|
502
|
+
date[commaIndex + 17] !== ':' ||
|
|
503
|
+
date[commaIndex + 20] !== ' ' ||
|
|
504
|
+
date[commaIndex + 21] !== 'G' ||
|
|
505
|
+
date[commaIndex + 22] !== 'M' ||
|
|
506
|
+
date[commaIndex + 23] !== 'T'
|
|
507
|
+
) {
|
|
508
|
+
return undefined
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
let day = 0
|
|
512
|
+
if (date[commaIndex + 2] === '0') {
|
|
513
|
+
// Single digit day, e.g. "Sun Nov 6 08:49:37 1994"
|
|
514
|
+
const code = date.charCodeAt(commaIndex + 3)
|
|
515
|
+
if (code < 49 || code > 57) {
|
|
516
|
+
return undefined // Not a digit
|
|
517
|
+
}
|
|
518
|
+
day = code - 48 // Convert ASCII code to number
|
|
519
|
+
} else {
|
|
520
|
+
const code1 = date.charCodeAt(commaIndex + 2)
|
|
521
|
+
if (code1 < 49 || code1 > 51) {
|
|
522
|
+
return undefined // Not a digit between 1 and 3
|
|
523
|
+
}
|
|
524
|
+
const code2 = date.charCodeAt(commaIndex + 3)
|
|
525
|
+
if (code2 < 48 || code2 > 57) {
|
|
526
|
+
return undefined // Not a digit
|
|
527
|
+
}
|
|
528
|
+
day = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
let monthIdx = -1
|
|
532
|
+
if (
|
|
533
|
+
(date[commaIndex + 5] === 'J' && date[commaIndex + 6] === 'a' && date[commaIndex + 7] === 'n')
|
|
534
|
+
) {
|
|
535
|
+
monthIdx = 0 // Jan
|
|
536
|
+
} else if (
|
|
537
|
+
(date[commaIndex + 5] === 'F' && date[commaIndex + 6] === 'e' && date[commaIndex + 7] === 'b')
|
|
538
|
+
) {
|
|
539
|
+
monthIdx = 1 // Feb
|
|
540
|
+
} else if (
|
|
541
|
+
(date[commaIndex + 5] === 'M' && date[commaIndex + 6] === 'a' && date[commaIndex + 7] === 'r')
|
|
542
|
+
) {
|
|
543
|
+
monthIdx = 2 // Mar
|
|
544
|
+
} else if (
|
|
545
|
+
(date[commaIndex + 5] === 'A' && date[commaIndex + 6] === 'p' && date[commaIndex + 7] === 'r')
|
|
546
|
+
) {
|
|
547
|
+
monthIdx = 3 // Apr
|
|
548
|
+
} else if (
|
|
549
|
+
(date[commaIndex + 5] === 'M' && date[commaIndex + 6] === 'a' && date[commaIndex + 7] === 'y')
|
|
550
|
+
) {
|
|
551
|
+
monthIdx = 4 // May
|
|
552
|
+
} else if (
|
|
553
|
+
(date[commaIndex + 5] === 'J' && date[commaIndex + 6] === 'u' && date[commaIndex + 7] === 'n')
|
|
554
|
+
) {
|
|
555
|
+
monthIdx = 5 // Jun
|
|
556
|
+
} else if (
|
|
557
|
+
(date[commaIndex + 5] === 'J' && date[commaIndex + 6] === 'u' && date[commaIndex + 7] === 'l')
|
|
558
|
+
) {
|
|
559
|
+
monthIdx = 6 // Jul
|
|
560
|
+
} else if (
|
|
561
|
+
(date[commaIndex + 5] === 'A' && date[commaIndex + 6] === 'u' && date[commaIndex + 7] === 'g')
|
|
562
|
+
) {
|
|
563
|
+
monthIdx = 7 // Aug
|
|
564
|
+
} else if (
|
|
565
|
+
(date[commaIndex + 5] === 'S' && date[commaIndex + 6] === 'e' && date[commaIndex + 7] === 'p')
|
|
566
|
+
) {
|
|
567
|
+
monthIdx = 8 // Sep
|
|
568
|
+
} else if (
|
|
569
|
+
(date[commaIndex + 5] === 'O' && date[commaIndex + 6] === 'c' && date[commaIndex + 7] === 't')
|
|
570
|
+
) {
|
|
571
|
+
monthIdx = 9 // Oct
|
|
572
|
+
} else if (
|
|
573
|
+
(date[commaIndex + 5] === 'N' && date[commaIndex + 6] === 'o' && date[commaIndex + 7] === 'v')
|
|
574
|
+
) {
|
|
575
|
+
monthIdx = 10 // Nov
|
|
576
|
+
} else if (
|
|
577
|
+
(date[commaIndex + 5] === 'D' && date[commaIndex + 6] === 'e' && date[commaIndex + 7] === 'c')
|
|
578
|
+
) {
|
|
579
|
+
monthIdx = 11 // Dec
|
|
580
|
+
} else {
|
|
581
|
+
// Not a valid month
|
|
582
|
+
return undefined
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
const yearDigit1 = date.charCodeAt(commaIndex + 9)
|
|
586
|
+
if (yearDigit1 < 48 || yearDigit1 > 57) {
|
|
587
|
+
return undefined // Not a digit
|
|
588
|
+
}
|
|
589
|
+
const yearDigit2 = date.charCodeAt(commaIndex + 10)
|
|
590
|
+
if (yearDigit2 < 48 || yearDigit2 > 57) {
|
|
591
|
+
return undefined // Not a digit
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
let year = (yearDigit1 - 48) * 10 + (yearDigit2 - 48) // Convert ASCII codes to number
|
|
595
|
+
|
|
596
|
+
// RFC 6265 states that the year is in the range 1970-2069.
|
|
597
|
+
// @see https://datatracker.ietf.org/doc/html/rfc6265#section-5.1.1
|
|
598
|
+
//
|
|
599
|
+
// 3. If the year-value is greater than or equal to 70 and less than or
|
|
600
|
+
// equal to 99, increment the year-value by 1900.
|
|
601
|
+
// 4. If the year-value is greater than or equal to 0 and less than or
|
|
602
|
+
// equal to 69, increment the year-value by 2000.
|
|
603
|
+
year += year < 70 ? 2000 : 1900
|
|
604
|
+
|
|
605
|
+
let hour = 0
|
|
606
|
+
if (date[commaIndex + 12] === '0') {
|
|
607
|
+
const code = date.charCodeAt(commaIndex + 13)
|
|
608
|
+
if (code < 48 || code > 57) {
|
|
609
|
+
return undefined // Not a digit
|
|
610
|
+
}
|
|
611
|
+
hour = code - 48 // Convert ASCII code to number
|
|
612
|
+
} else {
|
|
613
|
+
const code1 = date.charCodeAt(commaIndex + 12)
|
|
614
|
+
if (code1 < 48 || code1 > 50) {
|
|
615
|
+
return undefined // Not a digit between 0 and 2
|
|
616
|
+
}
|
|
617
|
+
const code2 = date.charCodeAt(commaIndex + 13)
|
|
618
|
+
if (code2 < 48 || code2 > 57) {
|
|
619
|
+
return undefined // Not a digit
|
|
620
|
+
}
|
|
621
|
+
if (code1 === 50 && code2 > 51) {
|
|
622
|
+
return undefined // Hour cannot be greater than 23
|
|
623
|
+
}
|
|
624
|
+
hour = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
let minute = 0
|
|
628
|
+
if (date[commaIndex + 15] === '0') {
|
|
629
|
+
const code = date.charCodeAt(commaIndex + 16)
|
|
630
|
+
if (code < 48 || code > 57) {
|
|
631
|
+
return undefined // Not a digit
|
|
632
|
+
}
|
|
633
|
+
minute = code - 48 // Convert ASCII code to number
|
|
634
|
+
} else {
|
|
635
|
+
const code1 = date.charCodeAt(commaIndex + 15)
|
|
636
|
+
if (code1 < 48 || code1 > 53) {
|
|
637
|
+
return undefined // Not a digit between 0 and 5
|
|
638
|
+
}
|
|
639
|
+
const code2 = date.charCodeAt(commaIndex + 16)
|
|
640
|
+
if (code2 < 48 || code2 > 57) {
|
|
641
|
+
return undefined // Not a digit
|
|
642
|
+
}
|
|
643
|
+
minute = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
let second = 0
|
|
647
|
+
if (date[commaIndex + 18] === '0') {
|
|
648
|
+
const code = date.charCodeAt(commaIndex + 19)
|
|
649
|
+
if (code < 48 || code > 57) {
|
|
650
|
+
return undefined // Not a digit
|
|
651
|
+
}
|
|
652
|
+
second = code - 48 // Convert ASCII code to number
|
|
653
|
+
} else {
|
|
654
|
+
const code1 = date.charCodeAt(commaIndex + 18)
|
|
655
|
+
if (code1 < 48 || code1 > 53) {
|
|
656
|
+
return undefined // Not a digit between 0 and 5
|
|
657
|
+
}
|
|
658
|
+
const code2 = date.charCodeAt(commaIndex + 19)
|
|
659
|
+
if (code2 < 48 || code2 > 57) {
|
|
660
|
+
return undefined // Not a digit
|
|
661
|
+
}
|
|
662
|
+
second = (code1 - 48) * 10 + (code2 - 48) // Convert ASCII codes to number
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
return makeDate(year, monthIdx, day, hour, minute, second, weekday)
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
module.exports = {
|
|
669
|
+
parseHttpDate
|
|
670
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @template {*} T
|
|
5
|
+
* @typedef {Object} DeferredPromise
|
|
6
|
+
* @property {Promise<T>} promise
|
|
7
|
+
* @property {(value?: T) => void} resolve
|
|
8
|
+
* @property {(reason?: any) => void} reject
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @template {*} T
|
|
13
|
+
* @returns {DeferredPromise<T>} An object containing a promise and its resolve/reject methods.
|
|
14
|
+
*/
|
|
15
|
+
function createDeferredPromise () {
|
|
16
|
+
let res
|
|
17
|
+
let rej
|
|
18
|
+
const promise = new Promise((resolve, reject) => {
|
|
19
|
+
res = resolve
|
|
20
|
+
rej = reject
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
return { promise, resolve: res, reject: rej }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = {
|
|
27
|
+
createDeferredPromise
|
|
28
|
+
}
|