svelte-on-rails 0.0.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.
- checksums.yaml +7 -0
- data/README.md +114 -0
- data/lib/mount-svelte.rb +13 -0
- data/lib/mount_svelte/compile.js +185 -0
- data/lib/mount_svelte/configuration.rb +69 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/LICENSE +202 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/README.md +218 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/remapping.mjs +197 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/remapping.mjs.map +1 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/remapping.umd.js +202 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/remapping.umd.js.map +1 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/types/build-source-map-tree.d.ts +14 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/types/remapping.d.ts +20 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts +45 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/types/source-map.d.ts +18 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/types/types.d.ts +15 -0
- data/lib/mount_svelte/node_modules/@ampproject/remapping/package.json +75 -0
- data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/LICENSE +19 -0
- data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/README.md +227 -0
- data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +230 -0
- data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +1 -0
- data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +246 -0
- data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +1 -0
- data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
- data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +36 -0
- data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/package.json +76 -0
- data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
- data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
- data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/package.json +69 -0
- data/lib/mount_svelte/node_modules/@jridgewell/set-array/LICENSE +19 -0
- data/lib/mount_svelte/node_modules/@jridgewell/set-array/README.md +37 -0
- data/lib/mount_svelte/node_modules/@jridgewell/set-array/dist/set-array.mjs +69 -0
- data/lib/mount_svelte/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +1 -0
- data/lib/mount_svelte/node_modules/@jridgewell/set-array/dist/set-array.umd.js +83 -0
- data/lib/mount_svelte/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +1 -0
- data/lib/mount_svelte/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts +32 -0
- data/lib/mount_svelte/node_modules/@jridgewell/set-array/package.json +65 -0
- data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +424 -0
- data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +439 -0
- data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
- data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +8 -0
- data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
- data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
- data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/package.json +75 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/README.md +257 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +580 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +600 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +79 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +99 -0
- data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/package.json +77 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/README.md +475 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/dist/cjs/index.js +2331 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/dist/es/index.js +2326 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/dist/es/package.json +1 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/CHANGELOG.md +37 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/README.md +61 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/dist/is-reference.es.js +31 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/dist/is-reference.js +39 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/dist/types/index.d.ts +2 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/package.json +49 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/package.json +91 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/types/index.d.ts +233 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/README.md +296 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js +1377 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/dist/es/index.js +1370 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/dist/es/package.json +1 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/package.json +89 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/types/index.d.ts +122 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-url/README.md +137 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-url/dist/cjs/index.js +127 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-url/dist/es/index.js +122 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-url/dist/es/package.json +1 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-url/package.json +80 -0
- data/lib/mount_svelte/node_modules/@rollup/plugin-url/types/index.d.ts +66 -0
- data/lib/mount_svelte/node_modules/@rollup/pluginutils/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/@rollup/pluginutils/README.md +262 -0
- data/lib/mount_svelte/node_modules/@rollup/pluginutils/dist/cjs/index.js +377 -0
- data/lib/mount_svelte/node_modules/@rollup/pluginutils/dist/es/index.js +365 -0
- data/lib/mount_svelte/node_modules/@rollup/pluginutils/dist/es/package.json +1 -0
- data/lib/mount_svelte/node_modules/@rollup/pluginutils/package.json +99 -0
- data/lib/mount_svelte/node_modules/@rollup/pluginutils/types/index.d.ts +98 -0
- data/lib/mount_svelte/node_modules/@rollup/rollup-darwin-arm64/README.md +3 -0
- data/lib/mount_svelte/node_modules/@rollup/rollup-darwin-arm64/package.json +19 -0
- data/lib/mount_svelte/node_modules/@rollup/rollup-darwin-arm64/rollup.darwin-arm64.node +0 -0
- data/lib/mount_svelte/node_modules/@sveltejs/acorn-typescript/LICENSE.md +22 -0
- data/lib/mount_svelte/node_modules/@sveltejs/acorn-typescript/README.md +70 -0
- data/lib/mount_svelte/node_modules/@sveltejs/acorn-typescript/index.d.ts +12 -0
- data/lib/mount_svelte/node_modules/@sveltejs/acorn-typescript/index.js +4999 -0
- data/lib/mount_svelte/node_modules/@sveltejs/acorn-typescript/package.json +55 -0
- data/lib/mount_svelte/node_modules/@types/estree/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/@types/estree/README.md +15 -0
- data/lib/mount_svelte/node_modules/@types/estree/flow.d.ts +167 -0
- data/lib/mount_svelte/node_modules/@types/estree/index.d.ts +694 -0
- data/lib/mount_svelte/node_modules/@types/estree/package.json +27 -0
- data/lib/mount_svelte/node_modules/@types/resolve/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/@types/resolve/README.md +16 -0
- data/lib/mount_svelte/node_modules/@types/resolve/index.d.ts +175 -0
- data/lib/mount_svelte/node_modules/@types/resolve/package.json +35 -0
- data/lib/mount_svelte/node_modules/acorn/CHANGELOG.md +940 -0
- data/lib/mount_svelte/node_modules/acorn/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/acorn/README.md +282 -0
- data/lib/mount_svelte/node_modules/acorn/bin/acorn +4 -0
- data/lib/mount_svelte/node_modules/acorn/dist/acorn.d.mts +866 -0
- data/lib/mount_svelte/node_modules/acorn/dist/acorn.d.ts +866 -0
- data/lib/mount_svelte/node_modules/acorn/dist/acorn.js +6183 -0
- data/lib/mount_svelte/node_modules/acorn/dist/acorn.mjs +6154 -0
- data/lib/mount_svelte/node_modules/acorn/dist/bin.js +90 -0
- data/lib/mount_svelte/node_modules/acorn/package.json +50 -0
- data/lib/mount_svelte/node_modules/aria-query/LICENSE +201 -0
- data/lib/mount_svelte/node_modules/aria-query/README.md +195 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/ariaPropsMap.js +168 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/domMap.js +311 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/elementRoleMap.js +152 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/commandRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js +25 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/inputRole.js +29 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js +26 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js +50 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js +37 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/selectRole.js +24 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/structureRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/windowRole.js +24 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js +21 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js +50 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js +12 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js +92 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js +30 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js +30 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js +28 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js +30 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js +30 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js +32 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js +30 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js +30 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js +43 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js +47 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js +28 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/alertRole.js +30 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/applicationRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/articleRole.js +30 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/bannerRole.js +28 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/buttonRole.js +73 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/captionRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/cellRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js +45 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/codeRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js +47 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js +124 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js +48 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js +28 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/definitionRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/deletionRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/dialogRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/directoryRole.js +24 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/documentRole.js +31 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/feedRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/figureRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/formRole.js +49 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/genericRole.js +119 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/graphicsDocumentRole.js +43 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/graphicsObjectRole.js +47 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/graphicsSymbolRole.js +28 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/gridRole.js +25 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js +37 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/groupRole.js +45 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/headingRole.js +56 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/imgRole.js +45 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/insertionRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/linkRole.js +44 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/listRole.js +37 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/listboxRole.js +63 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/listitemRole.js +37 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/logRole.js +24 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/mainRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/markRole.js +31 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/mathRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/menuRole.js +44 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/menubarRole.js +29 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js +43 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js +29 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js +29 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/meterRole.js +33 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/navigationRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/noneRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/noteRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/optionRole.js +44 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/presentationRole.js +31 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js +34 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/radioRole.js +37 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js +32 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/regionRole.js +44 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/rowRole.js +35 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js +37 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js +42 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js +31 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/searchRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js +35 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/separatorRole.js +34 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/sliderRole.js +42 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js +38 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/statusRole.js +30 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/strongRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/switchRole.js +29 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/tabRole.js +29 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/tableRole.js +30 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/tablistRole.js +31 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/termRole.js +32 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/textboxRole.js +107 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/timeRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/timerRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js +29 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/treeRole.js +28 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/treegridRole.js +22 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js +27 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/index.js +17 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/roleElementMap.js +75 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/rolesMap.js +113 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/util/iterationDecorator.js +17 -0
- data/lib/mount_svelte/node_modules/aria-query/lib/util/iteratorProxy.js +32 -0
- data/lib/mount_svelte/node_modules/aria-query/package.json +70 -0
- data/lib/mount_svelte/node_modules/axobject-query/LICENSE +201 -0
- data/lib/mount_svelte/node_modules/axobject-query/README.md +404 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/AXObjectElementMap.js +92 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/AXObjectRoleMap.js +92 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/AXObjectsMap.js +178 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/elementAXObjectMap.js +128 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/AbbrRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/AlertDialogRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/AlertRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/AnnotationRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ApplicationRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ArticleRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/AudioRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/BannerRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/BlockquoteRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/BusyIndicatorRole.js +20 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ButtonRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/CanvasRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/CaptionRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/CellRole.js +27 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/CheckBoxRole.js +26 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ColorWellRole.js +21 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ColumnHeaderRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ColumnRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ComboBoxRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ComplementaryRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ContentInfoRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DateRole.js +21 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DateTimeRole.js +21 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DefinitionRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DescriptionListDetailRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DescriptionListRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DescriptionListTermRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DetailsRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DialogRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DirectoryRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DisclosureTriangleRole.js +18 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DivRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DocumentRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/EmbeddedObjectRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/FeedRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/FigcaptionRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/FigureRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/FooterRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/FormRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/GridRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/GroupRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/HeadingRole.js +47 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/IframePresentationalRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/IframeRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/IgnoredRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ImageMapLinkRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ImageMapRole.js +20 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ImageRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/InlineTextBoxRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/InputTimeRole.js +21 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/LabelRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/LegendRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/LineBreakRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/LinkRole.js +25 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ListBoxOptionRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ListBoxRole.js +27 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ListItemRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ListMarkerRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ListRole.js +27 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/LogRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MainRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MarkRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MarqueeRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MathRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuBarRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuButtonRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuItemCheckBoxRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuItemRadioRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuItemRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuListOptionRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuListPopupRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MeterRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/NavigationRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/NoneRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/NoteRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/OutlineRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ParagraphRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/PopUpButtonRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/PreRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/PresentationalRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ProgressIndicatorRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RadioButtonRole.js +26 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RadioGroupRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RegionRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RootWebAreaRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RowHeaderRole.js +26 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RowRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RubyRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RulerRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SVGRootRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ScrollAreaRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ScrollBarRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SeamlessWebAreaRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SearchBoxRole.js +26 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SearchRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SliderRole.js +26 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SliderThumbRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SpinButtonPartRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SpinButtonRole.js +26 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SplitterRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/StaticTextRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/StatusRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SwitchRole.js +26 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TabGroupRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TabListRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TabPanelRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TabRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TableHeaderContainerRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TableRole.js +22 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TermRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TextAreaRole.js +26 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TextFieldRole.js +31 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TimeRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TimerRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ToggleButtonRole.js +19 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ToolbarRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TreeGridRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TreeItemRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TreeRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/UserInterfaceTooltipRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/VideoRole.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/WebAreaRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/WindowRole.js +12 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/index.js +19 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/util/iterationDecorator.js +17 -0
- data/lib/mount_svelte/node_modules/axobject-query/lib/util/iteratorProxy.js +33 -0
- data/lib/mount_svelte/node_modules/axobject-query/package.json +69 -0
- data/lib/mount_svelte/node_modules/clsx/clsx.d.mts +6 -0
- data/lib/mount_svelte/node_modules/clsx/clsx.d.ts +10 -0
- data/lib/mount_svelte/node_modules/clsx/dist/clsx.js +1 -0
- data/lib/mount_svelte/node_modules/clsx/dist/clsx.min.js +1 -0
- data/lib/mount_svelte/node_modules/clsx/dist/clsx.mjs +1 -0
- data/lib/mount_svelte/node_modules/clsx/dist/lite.js +1 -0
- data/lib/mount_svelte/node_modules/clsx/dist/lite.mjs +1 -0
- data/lib/mount_svelte/node_modules/clsx/license +9 -0
- data/lib/mount_svelte/node_modules/clsx/package.json +60 -0
- data/lib/mount_svelte/node_modules/clsx/readme.md +154 -0
- data/lib/mount_svelte/node_modules/commondir/LICENSE +24 -0
- data/lib/mount_svelte/node_modules/commondir/example/dir.js +3 -0
- data/lib/mount_svelte/node_modules/commondir/index.js +29 -0
- data/lib/mount_svelte/node_modules/commondir/package.json +34 -0
- data/lib/mount_svelte/node_modules/commondir/readme.markdown +48 -0
- data/lib/mount_svelte/node_modules/commondir/test/dirs.js +55 -0
- data/lib/mount_svelte/node_modules/deepmerge/changelog.md +167 -0
- data/lib/mount_svelte/node_modules/deepmerge/dist/cjs.js +133 -0
- data/lib/mount_svelte/node_modules/deepmerge/dist/umd.js +139 -0
- data/lib/mount_svelte/node_modules/deepmerge/index.d.ts +20 -0
- data/lib/mount_svelte/node_modules/deepmerge/index.js +106 -0
- data/lib/mount_svelte/node_modules/deepmerge/license.txt +21 -0
- data/lib/mount_svelte/node_modules/deepmerge/package.json +42 -0
- data/lib/mount_svelte/node_modules/deepmerge/readme.md +264 -0
- data/lib/mount_svelte/node_modules/deepmerge/rollup.config.js +22 -0
- data/lib/mount_svelte/node_modules/esm-env/CHANGELOG.md +19 -0
- data/lib/mount_svelte/node_modules/esm-env/LICENSE +7 -0
- data/lib/mount_svelte/node_modules/esm-env/README.md +27 -0
- data/lib/mount_svelte/node_modules/esm-env/browser-fallback.js +1 -0
- data/lib/mount_svelte/node_modules/esm-env/dev-fallback.js +2 -0
- data/lib/mount_svelte/node_modules/esm-env/false.js +1 -0
- data/lib/mount_svelte/node_modules/esm-env/index.d.ts +3 -0
- data/lib/mount_svelte/node_modules/esm-env/index.js +3 -0
- data/lib/mount_svelte/node_modules/esm-env/package.json +33 -0
- data/lib/mount_svelte/node_modules/esm-env/true.js +1 -0
- data/lib/mount_svelte/node_modules/esrap/LICENSE +7 -0
- data/lib/mount_svelte/node_modules/esrap/README.md +78 -0
- data/lib/mount_svelte/node_modules/esrap/package.json +48 -0
- data/lib/mount_svelte/node_modules/esrap/src/handlers.js +1647 -0
- data/lib/mount_svelte/node_modules/esrap/src/index.js +159 -0
- data/lib/mount_svelte/node_modules/esrap/src/public.d.ts +2 -0
- data/lib/mount_svelte/node_modules/esrap/src/types.d.ts +77 -0
- data/lib/mount_svelte/node_modules/esrap/types/index.d.ts +23 -0
- data/lib/mount_svelte/node_modules/esrap/types/index.d.ts.map +18 -0
- data/lib/mount_svelte/node_modules/estree-walker/CHANGELOG.md +92 -0
- data/lib/mount_svelte/node_modules/estree-walker/LICENSE +7 -0
- data/lib/mount_svelte/node_modules/estree-walker/README.md +48 -0
- data/lib/mount_svelte/node_modules/estree-walker/dist/esm/estree-walker.js +333 -0
- data/lib/mount_svelte/node_modules/estree-walker/dist/esm/package.json +1 -0
- data/lib/mount_svelte/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- data/lib/mount_svelte/node_modules/estree-walker/package.json +37 -0
- data/lib/mount_svelte/node_modules/estree-walker/src/async.js +118 -0
- data/lib/mount_svelte/node_modules/estree-walker/src/index.js +35 -0
- data/lib/mount_svelte/node_modules/estree-walker/src/package.json +1 -0
- data/lib/mount_svelte/node_modules/estree-walker/src/sync.js +118 -0
- data/lib/mount_svelte/node_modules/estree-walker/src/walker.js +61 -0
- data/lib/mount_svelte/node_modules/estree-walker/types/async.d.ts +53 -0
- data/lib/mount_svelte/node_modules/estree-walker/types/index.d.ts +56 -0
- data/lib/mount_svelte/node_modules/estree-walker/types/sync.d.ts +53 -0
- data/lib/mount_svelte/node_modules/estree-walker/types/tsconfig.tsbuildinfo +345 -0
- data/lib/mount_svelte/node_modules/estree-walker/types/walker.d.ts +37 -0
- data/lib/mount_svelte/node_modules/fdir/LICENSE +7 -0
- data/lib/mount_svelte/node_modules/fdir/README.md +91 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/async.d.ts +3 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/async.js +19 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/counter.d.ts +12 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/counter.js +27 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/get-array.d.ts +3 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/get-array.js +13 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/group-files.d.ts +3 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/group-files.js +11 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/invoke-callback.d.ts +3 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/invoke-callback.js +57 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/is-recursive-symlink.d.ts +5 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/is-recursive-symlink.js +35 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/join-path.d.ts +5 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/join-path.js +36 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/push-directory.d.ts +3 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/push-directory.js +37 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/push-file.d.ts +3 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/push-file.js +33 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/resolve-symlink.d.ts +5 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/resolve-symlink.js +67 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/walk-directory.d.ts +5 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/functions/walk-directory.js +40 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/queue.d.ts +15 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/queue.js +23 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/sync.d.ts +2 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/sync.js +9 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/walker.d.ts +18 -0
- data/lib/mount_svelte/node_modules/fdir/dist/api/walker.js +124 -0
- data/lib/mount_svelte/node_modules/fdir/dist/builder/api-builder.d.ts +9 -0
- data/lib/mount_svelte/node_modules/fdir/dist/builder/api-builder.js +23 -0
- data/lib/mount_svelte/node_modules/fdir/dist/builder/index.d.ts +41 -0
- data/lib/mount_svelte/node_modules/fdir/dist/builder/index.js +136 -0
- data/lib/mount_svelte/node_modules/fdir/dist/index.d.ts +4 -0
- data/lib/mount_svelte/node_modules/fdir/dist/index.js +20 -0
- data/lib/mount_svelte/node_modules/fdir/dist/optimizer.d.ts +3 -0
- data/lib/mount_svelte/node_modules/fdir/dist/optimizer.js +54 -0
- data/lib/mount_svelte/node_modules/fdir/dist/types.d.ts +60 -0
- data/lib/mount_svelte/node_modules/fdir/dist/types.js +2 -0
- data/lib/mount_svelte/node_modules/fdir/dist/utils.d.ts +8 -0
- data/lib/mount_svelte/node_modules/fdir/dist/utils.js +32 -0
- data/lib/mount_svelte/node_modules/fdir/package.json +88 -0
- data/lib/mount_svelte/node_modules/fsevents/LICENSE +22 -0
- data/lib/mount_svelte/node_modules/fsevents/README.md +89 -0
- data/lib/mount_svelte/node_modules/fsevents/fsevents.d.ts +46 -0
- data/lib/mount_svelte/node_modules/fsevents/fsevents.js +83 -0
- data/lib/mount_svelte/node_modules/fsevents/fsevents.node +0 -0
- data/lib/mount_svelte/node_modules/fsevents/package.json +62 -0
- data/lib/mount_svelte/node_modules/function-bind/CHANGELOG.md +136 -0
- data/lib/mount_svelte/node_modules/function-bind/LICENSE +20 -0
- data/lib/mount_svelte/node_modules/function-bind/README.md +46 -0
- data/lib/mount_svelte/node_modules/function-bind/implementation.js +84 -0
- data/lib/mount_svelte/node_modules/function-bind/index.js +5 -0
- data/lib/mount_svelte/node_modules/function-bind/package.json +87 -0
- data/lib/mount_svelte/node_modules/function-bind/test/index.js +252 -0
- data/lib/mount_svelte/node_modules/hasown/CHANGELOG.md +40 -0
- data/lib/mount_svelte/node_modules/hasown/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/hasown/README.md +40 -0
- data/lib/mount_svelte/node_modules/hasown/index.d.ts +3 -0
- data/lib/mount_svelte/node_modules/hasown/index.js +8 -0
- data/lib/mount_svelte/node_modules/hasown/package.json +92 -0
- data/lib/mount_svelte/node_modules/hasown/tsconfig.json +6 -0
- data/lib/mount_svelte/node_modules/is-core-module/CHANGELOG.md +218 -0
- data/lib/mount_svelte/node_modules/is-core-module/LICENSE +20 -0
- data/lib/mount_svelte/node_modules/is-core-module/README.md +40 -0
- data/lib/mount_svelte/node_modules/is-core-module/core.json +162 -0
- data/lib/mount_svelte/node_modules/is-core-module/index.js +69 -0
- data/lib/mount_svelte/node_modules/is-core-module/package.json +76 -0
- data/lib/mount_svelte/node_modules/is-core-module/test/index.js +157 -0
- data/lib/mount_svelte/node_modules/is-module/README.md +41 -0
- data/lib/mount_svelte/node_modules/is-module/component.json +11 -0
- data/lib/mount_svelte/node_modules/is-module/index.js +11 -0
- data/lib/mount_svelte/node_modules/is-module/package.json +20 -0
- data/lib/mount_svelte/node_modules/is-reference/README.md +61 -0
- data/lib/mount_svelte/node_modules/is-reference/package.json +48 -0
- data/lib/mount_svelte/node_modules/is-reference/src/index.js +51 -0
- data/lib/mount_svelte/node_modules/is-reference/types/index.d.ts +8 -0
- data/lib/mount_svelte/node_modules/is-reference/types/index.d.ts.map +9 -0
- data/lib/mount_svelte/node_modules/locate-character/README.md +66 -0
- data/lib/mount_svelte/node_modules/locate-character/package.json +44 -0
- data/lib/mount_svelte/node_modules/locate-character/src/index.js +72 -0
- data/lib/mount_svelte/node_modules/locate-character/src/types.d.ts +17 -0
- data/lib/mount_svelte/node_modules/locate-character/types/index.d.ts +19 -0
- data/lib/mount_svelte/node_modules/locate-character/types/index.d.ts.map +19 -0
- data/lib/mount_svelte/node_modules/magic-string/LICENSE +7 -0
- data/lib/mount_svelte/node_modules/magic-string/README.md +324 -0
- data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.cjs.d.ts +289 -0
- data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.cjs.js +1575 -0
- data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.cjs.js.map +1 -0
- data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
- data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.es.mjs +1569 -0
- data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
- data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.umd.js +1672 -0
- data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.umd.js.map +1 -0
- data/lib/mount_svelte/node_modules/magic-string/package.json +63 -0
- data/lib/mount_svelte/node_modules/make-dir/index.d.ts +66 -0
- data/lib/mount_svelte/node_modules/make-dir/index.js +156 -0
- data/lib/mount_svelte/node_modules/make-dir/license +9 -0
- data/lib/mount_svelte/node_modules/make-dir/package.json +59 -0
- data/lib/mount_svelte/node_modules/make-dir/readme.md +125 -0
- data/lib/mount_svelte/node_modules/mime/CHANGELOG.md +312 -0
- data/lib/mount_svelte/node_modules/mime/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/mime/Mime.js +97 -0
- data/lib/mount_svelte/node_modules/mime/README.md +178 -0
- data/lib/mount_svelte/node_modules/mime/cli.js +46 -0
- data/lib/mount_svelte/node_modules/mime/index.js +4 -0
- data/lib/mount_svelte/node_modules/mime/lite.js +4 -0
- data/lib/mount_svelte/node_modules/mime/package.json +52 -0
- data/lib/mount_svelte/node_modules/mime/types/other.js +1 -0
- data/lib/mount_svelte/node_modules/mime/types/standard.js +1 -0
- data/lib/mount_svelte/node_modules/path-parse/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/path-parse/README.md +42 -0
- data/lib/mount_svelte/node_modules/path-parse/index.js +75 -0
- data/lib/mount_svelte/node_modules/path-parse/package.json +33 -0
- data/lib/mount_svelte/node_modules/picomatch/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/picomatch/README.md +738 -0
- data/lib/mount_svelte/node_modules/picomatch/index.js +17 -0
- data/lib/mount_svelte/node_modules/picomatch/lib/constants.js +179 -0
- data/lib/mount_svelte/node_modules/picomatch/lib/parse.js +1085 -0
- data/lib/mount_svelte/node_modules/picomatch/lib/picomatch.js +341 -0
- data/lib/mount_svelte/node_modules/picomatch/lib/scan.js +391 -0
- data/lib/mount_svelte/node_modules/picomatch/lib/utils.js +72 -0
- data/lib/mount_svelte/node_modules/picomatch/package.json +83 -0
- data/lib/mount_svelte/node_modules/picomatch/posix.js +3 -0
- data/lib/mount_svelte/node_modules/resolve/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/resolve/SECURITY.md +3 -0
- data/lib/mount_svelte/node_modules/resolve/async.js +3 -0
- data/lib/mount_svelte/node_modules/resolve/bin/resolve +50 -0
- data/lib/mount_svelte/node_modules/resolve/example/async.js +5 -0
- data/lib/mount_svelte/node_modules/resolve/example/sync.js +3 -0
- data/lib/mount_svelte/node_modules/resolve/index.js +6 -0
- data/lib/mount_svelte/node_modules/resolve/lib/async.js +329 -0
- data/lib/mount_svelte/node_modules/resolve/lib/caller.js +8 -0
- data/lib/mount_svelte/node_modules/resolve/lib/core.js +12 -0
- data/lib/mount_svelte/node_modules/resolve/lib/core.json +162 -0
- data/lib/mount_svelte/node_modules/resolve/lib/homedir.js +24 -0
- data/lib/mount_svelte/node_modules/resolve/lib/is-core.js +5 -0
- data/lib/mount_svelte/node_modules/resolve/lib/node-modules-paths.js +42 -0
- data/lib/mount_svelte/node_modules/resolve/lib/normalize-options.js +10 -0
- data/lib/mount_svelte/node_modules/resolve/lib/sync.js +208 -0
- data/lib/mount_svelte/node_modules/resolve/package.json +75 -0
- data/lib/mount_svelte/node_modules/resolve/readme.markdown +301 -0
- data/lib/mount_svelte/node_modules/resolve/sync.js +3 -0
- data/lib/mount_svelte/node_modules/resolve/test/core.js +88 -0
- data/lib/mount_svelte/node_modules/resolve/test/dotdot/abc/index.js +2 -0
- data/lib/mount_svelte/node_modules/resolve/test/dotdot/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/dotdot.js +29 -0
- data/lib/mount_svelte/node_modules/resolve/test/faulty_basedir.js +29 -0
- data/lib/mount_svelte/node_modules/resolve/test/filter.js +34 -0
- data/lib/mount_svelte/node_modules/resolve/test/filter_sync.js +33 -0
- data/lib/mount_svelte/node_modules/resolve/test/home_paths.js +127 -0
- data/lib/mount_svelte/node_modules/resolve/test/home_paths_sync.js +114 -0
- data/lib/mount_svelte/node_modules/resolve/test/mock.js +315 -0
- data/lib/mount_svelte/node_modules/resolve/test/mock_sync.js +214 -0
- data/lib/mount_svelte/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
- data/lib/mount_svelte/node_modules/resolve/test/module_dir.js +56 -0
- data/lib/mount_svelte/node_modules/resolve/test/node-modules-paths.js +143 -0
- data/lib/mount_svelte/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/node_path.js +70 -0
- data/lib/mount_svelte/node_modules/resolve/test/nonstring.js +9 -0
- data/lib/mount_svelte/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/pathfilter.js +75 -0
- data/lib/mount_svelte/node_modules/resolve/test/precedence/aaa/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/precedence/aaa/main.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/precedence/aaa.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/precedence/bbb/main.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/precedence/bbb.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/precedence.js +23 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/baz/package.json +4 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/cup.coffee +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/false_main/package.json +4 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/foo.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/mug.coffee +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/mug.js +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver.js +597 -0
- data/lib/mount_svelte/node_modules/resolve/test/resolver_sync.js +730 -0
- data/lib/mount_svelte/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- data/lib/mount_svelte/node_modules/resolve/test/shadowed_core.js +54 -0
- data/lib/mount_svelte/node_modules/resolve/test/subdirs.js +13 -0
- data/lib/mount_svelte/node_modules/resolve/test/symlinks.js +176 -0
- data/lib/mount_svelte/node_modules/resolve.exports/dist/index.js +1 -0
- data/lib/mount_svelte/node_modules/resolve.exports/dist/index.mjs +1 -0
- data/lib/mount_svelte/node_modules/resolve.exports/index.d.ts +100 -0
- data/lib/mount_svelte/node_modules/resolve.exports/license +21 -0
- data/lib/mount_svelte/node_modules/resolve.exports/package.json +50 -0
- data/lib/mount_svelte/node_modules/resolve.exports/readme.md +458 -0
- data/lib/mount_svelte/node_modules/rollup/LICENSE.md +681 -0
- data/lib/mount_svelte/node_modules/rollup/README.md +134 -0
- data/lib/mount_svelte/node_modules/rollup/dist/bin/rollup +1856 -0
- data/lib/mount_svelte/node_modules/rollup/dist/es/getLogFilter.js +64 -0
- data/lib/mount_svelte/node_modules/rollup/dist/es/package.json +1 -0
- data/lib/mount_svelte/node_modules/rollup/dist/es/parseAst.js +12 -0
- data/lib/mount_svelte/node_modules/rollup/dist/es/rollup.js +17 -0
- data/lib/mount_svelte/node_modules/rollup/dist/es/shared/node-entry.js +23644 -0
- data/lib/mount_svelte/node_modules/rollup/dist/es/shared/parseAst.js +2073 -0
- data/lib/mount_svelte/node_modules/rollup/dist/es/shared/watch.js +9297 -0
- data/lib/mount_svelte/node_modules/rollup/dist/getLogFilter.d.ts +5 -0
- data/lib/mount_svelte/node_modules/rollup/dist/getLogFilter.js +69 -0
- data/lib/mount_svelte/node_modules/rollup/dist/loadConfigFile.d.ts +20 -0
- data/lib/mount_svelte/node_modules/rollup/dist/loadConfigFile.js +29 -0
- data/lib/mount_svelte/node_modules/rollup/dist/native.js +110 -0
- data/lib/mount_svelte/node_modules/rollup/dist/parseAst.d.ts +4 -0
- data/lib/mount_svelte/node_modules/rollup/dist/parseAst.js +22 -0
- data/lib/mount_svelte/node_modules/rollup/dist/rollup.d.ts +1104 -0
- data/lib/mount_svelte/node_modules/rollup/dist/rollup.js +99 -0
- data/lib/mount_svelte/node_modules/rollup/dist/shared/fsevents-importer.js +37 -0
- data/lib/mount_svelte/node_modules/rollup/dist/shared/index.js +9003 -0
- data/lib/mount_svelte/node_modules/rollup/dist/shared/loadConfigFile.js +559 -0
- data/lib/mount_svelte/node_modules/rollup/dist/shared/parseAst.js +2301 -0
- data/lib/mount_svelte/node_modules/rollup/dist/shared/rollup.js +23581 -0
- data/lib/mount_svelte/node_modules/rollup/dist/shared/watch-cli.js +542 -0
- data/lib/mount_svelte/node_modules/rollup/dist/shared/watch.js +324 -0
- data/lib/mount_svelte/node_modules/rollup/package.json +268 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-css-only/LICENSE.md +21 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-css-only/README.md +103 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-css-only/dist/index.cjs +92 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-css-only/dist/index.mjs +90 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-css-only/package.json +61 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-string/CHANGELOG.md +22 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-string/LICENSE +22 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-string/README.md +38 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-string/index.js +24 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-string/package.json +36 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/LICENSE +7 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/README.md +135 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/index.d.ts +43 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/index.js +196 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/CHANGELOG.md +389 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/README.md +255 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/dist/cjs/index.js +475 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/dist/es/index.js +460 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/dist/es/package.json +1 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/package.json +92 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/types/index.d.ts +93 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/CHANGELOG.md +136 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/README.md +708 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/index.js +3 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/lib/constants.js +179 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/lib/parse.js +1091 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/lib/picomatch.js +342 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/lib/scan.js +391 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/lib/utils.js +64 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/package.json +81 -0
- data/lib/mount_svelte/node_modules/rollup-plugin-svelte/package.json +48 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/CHANGELOG.md +125 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/README.md +169 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +3292 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/dist/pluginutils.d.ts +39 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/dist/pluginutils.es.js +3280 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/CHANGELOG.md +55 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/README.md +45 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js +65 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js.map +1 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/index.d.ts +27 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/package.json +30 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/src/estree-walker.js +51 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/package.json +57 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/src/addExtension.ts +9 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/src/attachScopes.ts +125 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/src/createFilter.ts +52 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/src/dataToEsm.ts +92 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/src/extractAssignedNames.ts +46 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/src/index.ts +6 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/src/makeLegalIdentifier.ts +21 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/src/pluginutils.d.ts +39 -0
- data/lib/mount_svelte/node_modules/rollup-pluginutils/src/utils/ensureArray.ts +5 -0
- data/lib/mount_svelte/node_modules/semver/LICENSE +15 -0
- data/lib/mount_svelte/node_modules/semver/README.md +443 -0
- data/lib/mount_svelte/node_modules/semver/bin/semver.js +174 -0
- data/lib/mount_svelte/node_modules/semver/package.json +38 -0
- data/lib/mount_svelte/node_modules/semver/range.bnf +16 -0
- data/lib/mount_svelte/node_modules/semver/semver.js +1643 -0
- data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
- data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- data/lib/mount_svelte/node_modules/svelte/LICENSE.md +7 -0
- data/lib/mount_svelte/node_modules/svelte/README.md +41 -0
- data/lib/mount_svelte/node_modules/svelte/action.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte/animate.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte/compiler/index.js +1 -0
- data/lib/mount_svelte/node_modules/svelte/compiler/package.json +3 -0
- data/lib/mount_svelte/node_modules/svelte/compiler.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte/easing.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte/elements.d.ts +2067 -0
- data/lib/mount_svelte/node_modules/svelte/index.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte/legacy.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte/motion.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte/package.json +164 -0
- data/lib/mount_svelte/node_modules/svelte/src/animate/index.js +78 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/errors.js +1622 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/index.js +169 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/legacy.js +628 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/migrate/index.js +1992 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/acorn.js +171 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/index.js +312 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/read/context.js +187 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/read/expression.js +81 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/read/options.js +261 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/read/script.js +90 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/read/style.js +627 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/remove_typescript_nodes.js +157 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/state/element.js +823 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/state/fragment.js +17 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/state/tag.js +715 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/state/text.js +23 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/utils/bracket.js +164 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/utils/create.js +16 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/utils/entities.js +2234 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/utils/fuzzymatch.js +280 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/utils/html.js +120 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/css/css-analyze.js +327 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/css/css-prune.js +1086 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/css/css-warn.js +47 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/css/utils.js +177 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/index.js +895 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/utils/check_graph_for_cycles.js +46 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ArrowFunctionExpression.js +11 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AssignmentExpression.js +27 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Attribute.js +239 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AwaitBlock.js +45 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js +254 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/CallExpression.js +272 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassBody.js +30 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassDeclaration.js +25 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassDirective.js +13 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Component.js +20 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ConstTag.js +36 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/DebugTag.js +15 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/EachBlock.js +42 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportDefaultDeclaration.js +20 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportNamedDeclaration.js +61 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportSpecifier.js +30 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExpressionStatement.js +38 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExpressionTag.js +26 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/FunctionDeclaration.js +16 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/FunctionExpression.js +11 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/HtmlTag.js +19 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js +153 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/IfBlock.js +21 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ImportDeclaration.js +31 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/KeyBlock.js +20 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/LabeledStatement.js +95 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/LetDirective.js +24 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/MemberExpression.js +30 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/NewExpression.js +17 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/OnDirective.js +28 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/RegularElement.js +195 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/RenderTag.js +68 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SlotElement.js +42 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SnippetBlock.js +113 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SpreadAttribute.js +13 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SpreadElement.js +16 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/StyleDirective.js +37 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteBody.js +22 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteBoundary.js +27 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteComponent.js +18 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteDocument.js +24 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteElement.js +66 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteFragment.js +27 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteHead.js +18 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteSelf.js +36 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteWindow.js +24 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TaggedTemplateExpression.js +16 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Text.js +20 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TitleElement.js +21 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TransitionDirective.js +14 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/UpdateExpression.js +25 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/UseDirective.js +12 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/VariableDeclarator.js +120 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y.js +1188 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/attribute.js +125 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/component.js +160 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/element.js +160 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/fragment.js +15 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/function.js +21 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/snippets.js +17 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/special-element.js +16 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js +262 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/transform-client.js +693 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/utils.js +296 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AnimateDirective.js +28 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ArrowFunctionExpression.js +11 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AssignmentExpression.js +195 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Attribute.js +14 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AwaitBlock.js +104 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BinaryExpression.js +34 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BindDirective.js +260 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BlockStatement.js +32 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BreakStatement.js +20 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/CallExpression.js +63 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ClassBody.js +186 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Comment.js +11 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Component.js +32 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ConstTag.js +76 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/DebugTag.js +28 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js +361 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ExportNamedDeclaration.js +19 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ExpressionStatement.js +30 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Fragment.js +284 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/FunctionDeclaration.js +23 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/FunctionExpression.js +11 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/HtmlTag.js +27 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Identifier.js +41 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/IfBlock.js +77 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ImportDeclaration.js +16 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/KeyBlock.js +19 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/LabeledStatement.js +66 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/LetDirective.js +54 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/MemberExpression.js +21 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/OnDirective.js +38 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Program.js +141 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js +730 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/RenderTag.js +56 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SlotElement.js +75 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SnippetBlock.js +91 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SpreadAttribute.js +10 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBody.js +11 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBoundary.js +95 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteComponent.js +12 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteDocument.js +11 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteElement.js +140 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteFragment.js +17 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteHead.js +20 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteSelf.js +12 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteWindow.js +11 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/TitleElement.js +24 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/TransitionDirective.js +29 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/UpdateExpression.js +55 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/UseDirective.js +37 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js +322 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js +452 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/declarations.js +53 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js +271 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/events.js +197 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/fragment.js +173 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/function.js +30 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/special_element.js +22 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js +354 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/css/index.js +461 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/index.js +110 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/transform-server.js +410 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/AssignmentExpression.js +68 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/AwaitBlock.js +29 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/CallExpression.js +41 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ClassBody.js +121 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Component.js +12 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ConstTag.js +16 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/DebugTag.js +24 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/EachBlock.js +66 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ExpressionStatement.js +23 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Fragment.js +46 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/HtmlTag.js +13 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Identifier.js +19 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/IfBlock.js +38 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/KeyBlock.js +16 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/LabeledStatement.js +24 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/MemberExpression.js +23 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/PropertyDefinition.js +36 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/RegularElement.js +104 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/RenderTag.js +35 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SlotElement.js +54 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SnippetBlock.js +28 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SpreadAttribute.js +10 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteBoundary.js +17 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteComponent.js +12 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteElement.js +75 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteFragment.js +11 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteHead.js +16 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteSelf.js +12 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/TitleElement.js +17 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/UpdateExpression.js +26 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js +193 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js +310 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js +445 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/utils.js +243 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/shared/assignments.js +74 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/utils.js +488 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/bindings.js +227 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/css.js +14 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/nodes.js +66 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/patterns.js +23 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/scope.js +826 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/preprocess/decode_sourcemap.js +96 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/preprocess/index.js +368 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/preprocess/replace_in_code.js +72 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/state.js +107 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/assert.js +9 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/ast.js +584 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/builders.js +660 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/compile_diagnostic.js +107 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/extract_svelte_ignore.js +104 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/mapped_code.js +451 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/push_array.js +13 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/sanitize_template_string.js +7 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/slot.js +20 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/string.js +9 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/validate-options.js +335 -0
- data/lib/mount_svelte/node_modules/svelte/src/compiler/warnings.js +815 -0
- data/lib/mount_svelte/node_modules/svelte/src/constants.js +58 -0
- data/lib/mount_svelte/node_modules/svelte/src/easing/index.js +286 -0
- data/lib/mount_svelte/node_modules/svelte/src/escaping.js +26 -0
- data/lib/mount_svelte/node_modules/svelte/src/events/index.js +1 -0
- data/lib/mount_svelte/node_modules/svelte/src/html-tree-validation.js +240 -0
- data/lib/mount_svelte/node_modules/svelte/src/index-client.js +214 -0
- data/lib/mount_svelte/node_modules/svelte/src/index-server.js +40 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/constants.js +27 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/context.js +206 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/assign.js +78 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/console-log.js +35 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/css.js +31 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/elements.js +60 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/equality.js +101 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/hmr.js +78 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/inspect.js +36 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/legacy.js +25 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/ownership.js +80 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/tracing.js +179 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/validation.js +15 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/await.js +190 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/boundary.js +133 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/css-props.js +33 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/each.js +609 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/html.js +122 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/if.js +130 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/key.js +43 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/slot.js +44 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/snippet.js +114 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js +43 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/svelte-element.js +165 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/svelte-head.js +67 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/css.js +32 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/actions.js +43 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/attributes.js +550 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/document.js +17 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/input.js +275 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/media.js +217 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/navigator.js +11 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/props.js +22 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/select.js +146 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js +76 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js +108 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js +61 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/universal.js +75 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/window.js +66 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/class.js +51 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/custom-element.js +338 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/events.js +329 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/misc.js +58 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/style.js +57 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/transitions.js +471 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/hydration.js +105 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/legacy/event-modifiers.js +128 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/legacy/lifecycle.js +82 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/legacy/misc.js +68 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/operations.js +206 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/reconciler.js +6 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/task.js +60 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/template.js +273 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/errors.js +322 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/index.js +163 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/loop.js +48 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/proxy.js +319 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/deriveds.js +184 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/effects.js +618 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/equality.js +30 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/props.js +427 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/sources.js +291 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/store.js +198 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/render.js +306 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/runtime.js +1140 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/timing.js +16 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/validate.js +83 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/client/warnings.js +183 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/disclose-version.js +6 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/flags/index.js +10 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/flags/legacy.js +3 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/flags/tracing.js +3 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/index.js +5 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/server/blocks/html.js +11 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/server/blocks/snippet.js +22 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/server/context.js +96 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/server/dev.js +111 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/server/errors.js +13 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/server/hydration.js +6 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/server/index.js +515 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/server/payload.js +64 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/shared/attributes.js +219 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/shared/clone.js +128 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/shared/errors.js +80 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/shared/utils.js +83 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/shared/validate.js +37 -0
- data/lib/mount_svelte/node_modules/svelte/src/internal/shared/warnings.js +36 -0
- data/lib/mount_svelte/node_modules/svelte/src/legacy/legacy-client.js +276 -0
- data/lib/mount_svelte/node_modules/svelte/src/legacy/legacy-server.js +66 -0
- data/lib/mount_svelte/node_modules/svelte/src/motion/index.js +32 -0
- data/lib/mount_svelte/node_modules/svelte/src/motion/spring.js +358 -0
- data/lib/mount_svelte/node_modules/svelte/src/motion/tweened.js +298 -0
- data/lib/mount_svelte/node_modules/svelte/src/motion/utils.js +7 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/create-subscriber.js +81 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/date.js +79 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/index-client.js +7 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/index-server.js +23 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/map.js +192 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/media-query.js +37 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/reactive-value.js +24 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/set.js +158 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/url-search-params.js +146 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/url.js +165 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/utils.js +7 -0
- data/lib/mount_svelte/node_modules/svelte/src/reactivity/window/index.js +156 -0
- data/lib/mount_svelte/node_modules/svelte/src/server/index.js +1 -0
- data/lib/mount_svelte/node_modules/svelte/src/store/index-client.js +169 -0
- data/lib/mount_svelte/node_modules/svelte/src/store/index-server.js +101 -0
- data/lib/mount_svelte/node_modules/svelte/src/store/shared/index.js +209 -0
- data/lib/mount_svelte/node_modules/svelte/src/store/utils.js +36 -0
- data/lib/mount_svelte/node_modules/svelte/src/transition/index.js +300 -0
- data/lib/mount_svelte/node_modules/svelte/src/utils.js +474 -0
- data/lib/mount_svelte/node_modules/svelte/src/version.js +8 -0
- data/lib/mount_svelte/node_modules/svelte/store.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte/svelte-html.d.ts +256 -0
- data/lib/mount_svelte/node_modules/svelte/transition.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte/types/compiler/interfaces.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte/types/compiler/preprocess.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte/types/index.d.ts +3182 -0
- data/lib/mount_svelte/node_modules/svelte/types/index.d.ts.map +254 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/LICENSE +7 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/README.md +207 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/autoProcess.d.ts +3 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/autoProcess.js +202 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/index.d.ts +15 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/index.js +35 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/errors.d.ts +2 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/errors.js +11 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/globalifySelector.d.ts +1 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/globalifySelector.js +42 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/language.d.ts +11 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/language.js +94 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/markup.d.ts +9 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/markup.js +53 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/prepareContent.d.ts +4 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/prepareContent.js +34 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/tagInfo.d.ts +10 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/tagInfo.js +58 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/utils.d.ts +17 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/utils.js +104 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/babel.d.ts +4 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/babel.js +50 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/coffeescript.d.ts +4 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/coffeescript.js +59 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/globalStyle.d.ts +4 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/globalStyle.js +41 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/less.d.ts +4 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/less.js +53 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/postcss.d.ts +5 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/postcss.js +50 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/pug.d.ts +4 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/pug.js +45 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/replace.d.ts +4 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/replace.js +36 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/scss.d.ts +4 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/scss.js +61 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/stylus.d.ts +4 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/stylus.js +59 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/typescript.d.ts +4 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/typescript.js +54 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/babel.d.ts +3 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/babel.js +38 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/coffeescript.d.ts +3 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/coffeescript.js +24 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/globalStyle.d.ts +3 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/globalStyle.js +69 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/less.d.ts +3 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/less.js +27 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/postcss.d.ts +4 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/postcss.js +84 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/pug.d.ts +3 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/pug.js +121 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/replace.d.ts +3 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/replace.js +16 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/scss.d.ts +3 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/scss.js +106 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/stylus.d.ts +3 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/stylus.js +39 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/typescript.d.ts +11 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/typescript.js +145 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/types/index.d.ts +63 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/types/index.js +28 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/types/options.d.ts +58 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/dist/types/options.js +2 -0
- data/lib/mount_svelte/node_modules/svelte-preprocess/package.json +132 -0
- data/lib/mount_svelte/node_modules/typescript/LICENSE.txt +55 -0
- data/lib/mount_svelte/node_modules/typescript/README.md +50 -0
- data/lib/mount_svelte/node_modules/typescript/SECURITY.md +41 -0
- data/lib/mount_svelte/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- data/lib/mount_svelte/node_modules/typescript/bin/tsc +2 -0
- data/lib/mount_svelte/node_modules/typescript/bin/tsserver +2 -0
- data/lib/mount_svelte/node_modules/typescript/lib/_tsc.js +132810 -0
- data/lib/mount_svelte/node_modules/typescript/lib/_tsserver.js +659 -0
- data/lib/mount_svelte/node_modules/typescript/lib/_typingsInstaller.js +222 -0
- data/lib/mount_svelte/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.d.ts +22 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.dom.d.ts +29610 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.dom.iterable.d.ts +493 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.intl.d.ts +121 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es5.d.ts +4594 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.es6.d.ts +23 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.d.ts +27 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.float16.d.ts +443 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.webworker.d.ts +9894 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
- data/lib/mount_svelte/node_modules/typescript/lib/lib.webworker.iterable.d.ts +287 -0
- data/lib/mount_svelte/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/tsc.js +8 -0
- data/lib/mount_svelte/node_modules/typescript/lib/tsserver.js +8 -0
- data/lib/mount_svelte/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
- data/lib/mount_svelte/node_modules/typescript/lib/tsserverlibrary.js +21 -0
- data/lib/mount_svelte/node_modules/typescript/lib/typesMap.json +497 -0
- data/lib/mount_svelte/node_modules/typescript/lib/typescript.d.ts +11399 -0
- data/lib/mount_svelte/node_modules/typescript/lib/typescript.js +199120 -0
- data/lib/mount_svelte/node_modules/typescript/lib/typingsInstaller.js +8 -0
- data/lib/mount_svelte/node_modules/typescript/lib/watchGuard.js +53 -0
- data/lib/mount_svelte/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2105 -0
- data/lib/mount_svelte/node_modules/typescript/package.json +120 -0
- data/lib/mount_svelte/node_modules/zimmerframe/LICENSE +21 -0
- data/lib/mount_svelte/node_modules/zimmerframe/README.md +180 -0
- data/lib/mount_svelte/node_modules/zimmerframe/package.json +34 -0
- data/lib/mount_svelte/node_modules/zimmerframe/src/index.d.ts +2 -0
- data/lib/mount_svelte/node_modules/zimmerframe/src/types.d.ts +21 -0
- data/lib/mount_svelte/node_modules/zimmerframe/src/walk.js +159 -0
- data/lib/mount_svelte/node_modules/zimmerframe/types/index.d.ts +28 -0
- data/lib/mount_svelte/node_modules/zimmerframe/types/index.d.ts.map +19 -0
- data/lib/mount_svelte/package-lock.json +949 -0
- data/lib/mount_svelte/package.json +15 -0
- data/lib/mount_svelte/railtie.rb +21 -0
- data/lib/mount_svelte/render.js +42 -0
- data/lib/mount_svelte/render_server_side.rb +126 -0
- data/lib/mount_svelte/view_helpers.rb +85 -0
- data/lib/tasks/mount_svelte_tasks.rake +41 -0
- metadata +1434 -0
@@ -0,0 +1,1575 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var sourcemapCodec = require('@jridgewell/sourcemap-codec');
|
4
|
+
|
5
|
+
class BitSet {
|
6
|
+
constructor(arg) {
|
7
|
+
this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
|
8
|
+
}
|
9
|
+
|
10
|
+
add(n) {
|
11
|
+
this.bits[n >> 5] |= 1 << (n & 31);
|
12
|
+
}
|
13
|
+
|
14
|
+
has(n) {
|
15
|
+
return !!(this.bits[n >> 5] & (1 << (n & 31)));
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
class Chunk {
|
20
|
+
constructor(start, end, content) {
|
21
|
+
this.start = start;
|
22
|
+
this.end = end;
|
23
|
+
this.original = content;
|
24
|
+
|
25
|
+
this.intro = '';
|
26
|
+
this.outro = '';
|
27
|
+
|
28
|
+
this.content = content;
|
29
|
+
this.storeName = false;
|
30
|
+
this.edited = false;
|
31
|
+
|
32
|
+
{
|
33
|
+
this.previous = null;
|
34
|
+
this.next = null;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
appendLeft(content) {
|
39
|
+
this.outro += content;
|
40
|
+
}
|
41
|
+
|
42
|
+
appendRight(content) {
|
43
|
+
this.intro = this.intro + content;
|
44
|
+
}
|
45
|
+
|
46
|
+
clone() {
|
47
|
+
const chunk = new Chunk(this.start, this.end, this.original);
|
48
|
+
|
49
|
+
chunk.intro = this.intro;
|
50
|
+
chunk.outro = this.outro;
|
51
|
+
chunk.content = this.content;
|
52
|
+
chunk.storeName = this.storeName;
|
53
|
+
chunk.edited = this.edited;
|
54
|
+
|
55
|
+
return chunk;
|
56
|
+
}
|
57
|
+
|
58
|
+
contains(index) {
|
59
|
+
return this.start < index && index < this.end;
|
60
|
+
}
|
61
|
+
|
62
|
+
eachNext(fn) {
|
63
|
+
let chunk = this;
|
64
|
+
while (chunk) {
|
65
|
+
fn(chunk);
|
66
|
+
chunk = chunk.next;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
eachPrevious(fn) {
|
71
|
+
let chunk = this;
|
72
|
+
while (chunk) {
|
73
|
+
fn(chunk);
|
74
|
+
chunk = chunk.previous;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
edit(content, storeName, contentOnly) {
|
79
|
+
this.content = content;
|
80
|
+
if (!contentOnly) {
|
81
|
+
this.intro = '';
|
82
|
+
this.outro = '';
|
83
|
+
}
|
84
|
+
this.storeName = storeName;
|
85
|
+
|
86
|
+
this.edited = true;
|
87
|
+
|
88
|
+
return this;
|
89
|
+
}
|
90
|
+
|
91
|
+
prependLeft(content) {
|
92
|
+
this.outro = content + this.outro;
|
93
|
+
}
|
94
|
+
|
95
|
+
prependRight(content) {
|
96
|
+
this.intro = content + this.intro;
|
97
|
+
}
|
98
|
+
|
99
|
+
reset() {
|
100
|
+
this.intro = '';
|
101
|
+
this.outro = '';
|
102
|
+
if (this.edited) {
|
103
|
+
this.content = this.original;
|
104
|
+
this.storeName = false;
|
105
|
+
this.edited = false;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
split(index) {
|
110
|
+
const sliceIndex = index - this.start;
|
111
|
+
|
112
|
+
const originalBefore = this.original.slice(0, sliceIndex);
|
113
|
+
const originalAfter = this.original.slice(sliceIndex);
|
114
|
+
|
115
|
+
this.original = originalBefore;
|
116
|
+
|
117
|
+
const newChunk = new Chunk(index, this.end, originalAfter);
|
118
|
+
newChunk.outro = this.outro;
|
119
|
+
this.outro = '';
|
120
|
+
|
121
|
+
this.end = index;
|
122
|
+
|
123
|
+
if (this.edited) {
|
124
|
+
// after split we should save the edit content record into the correct chunk
|
125
|
+
// to make sure sourcemap correct
|
126
|
+
// For example:
|
127
|
+
// ' test'.trim()
|
128
|
+
// split -> ' ' + 'test'
|
129
|
+
// ✔️ edit -> '' + 'test'
|
130
|
+
// ✖️ edit -> 'test' + ''
|
131
|
+
// TODO is this block necessary?...
|
132
|
+
newChunk.edit('', false);
|
133
|
+
this.content = '';
|
134
|
+
} else {
|
135
|
+
this.content = originalBefore;
|
136
|
+
}
|
137
|
+
|
138
|
+
newChunk.next = this.next;
|
139
|
+
if (newChunk.next) newChunk.next.previous = newChunk;
|
140
|
+
newChunk.previous = this;
|
141
|
+
this.next = newChunk;
|
142
|
+
|
143
|
+
return newChunk;
|
144
|
+
}
|
145
|
+
|
146
|
+
toString() {
|
147
|
+
return this.intro + this.content + this.outro;
|
148
|
+
}
|
149
|
+
|
150
|
+
trimEnd(rx) {
|
151
|
+
this.outro = this.outro.replace(rx, '');
|
152
|
+
if (this.outro.length) return true;
|
153
|
+
|
154
|
+
const trimmed = this.content.replace(rx, '');
|
155
|
+
|
156
|
+
if (trimmed.length) {
|
157
|
+
if (trimmed !== this.content) {
|
158
|
+
this.split(this.start + trimmed.length).edit('', undefined, true);
|
159
|
+
if (this.edited) {
|
160
|
+
// save the change, if it has been edited
|
161
|
+
this.edit(trimmed, this.storeName, true);
|
162
|
+
}
|
163
|
+
}
|
164
|
+
return true;
|
165
|
+
} else {
|
166
|
+
this.edit('', undefined, true);
|
167
|
+
|
168
|
+
this.intro = this.intro.replace(rx, '');
|
169
|
+
if (this.intro.length) return true;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
trimStart(rx) {
|
174
|
+
this.intro = this.intro.replace(rx, '');
|
175
|
+
if (this.intro.length) return true;
|
176
|
+
|
177
|
+
const trimmed = this.content.replace(rx, '');
|
178
|
+
|
179
|
+
if (trimmed.length) {
|
180
|
+
if (trimmed !== this.content) {
|
181
|
+
const newChunk = this.split(this.end - trimmed.length);
|
182
|
+
if (this.edited) {
|
183
|
+
// save the change, if it has been edited
|
184
|
+
newChunk.edit(trimmed, this.storeName, true);
|
185
|
+
}
|
186
|
+
this.edit('', undefined, true);
|
187
|
+
}
|
188
|
+
return true;
|
189
|
+
} else {
|
190
|
+
this.edit('', undefined, true);
|
191
|
+
|
192
|
+
this.outro = this.outro.replace(rx, '');
|
193
|
+
if (this.outro.length) return true;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
|
198
|
+
function getBtoa() {
|
199
|
+
if (typeof globalThis !== 'undefined' && typeof globalThis.btoa === 'function') {
|
200
|
+
return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
|
201
|
+
} else if (typeof Buffer === 'function') {
|
202
|
+
return (str) => Buffer.from(str, 'utf-8').toString('base64');
|
203
|
+
} else {
|
204
|
+
return () => {
|
205
|
+
throw new Error('Unsupported environment: `window.btoa` or `Buffer` should be supported.');
|
206
|
+
};
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
const btoa = /*#__PURE__*/ getBtoa();
|
211
|
+
|
212
|
+
class SourceMap {
|
213
|
+
constructor(properties) {
|
214
|
+
this.version = 3;
|
215
|
+
this.file = properties.file;
|
216
|
+
this.sources = properties.sources;
|
217
|
+
this.sourcesContent = properties.sourcesContent;
|
218
|
+
this.names = properties.names;
|
219
|
+
this.mappings = sourcemapCodec.encode(properties.mappings);
|
220
|
+
if (typeof properties.x_google_ignoreList !== 'undefined') {
|
221
|
+
this.x_google_ignoreList = properties.x_google_ignoreList;
|
222
|
+
}
|
223
|
+
if (typeof properties.debugId !== 'undefined') {
|
224
|
+
this.debugId = properties.debugId;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
toString() {
|
229
|
+
return JSON.stringify(this);
|
230
|
+
}
|
231
|
+
|
232
|
+
toUrl() {
|
233
|
+
return 'data:application/json;charset=utf-8;base64,' + btoa(this.toString());
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
function guessIndent(code) {
|
238
|
+
const lines = code.split('\n');
|
239
|
+
|
240
|
+
const tabbed = lines.filter((line) => /^\t+/.test(line));
|
241
|
+
const spaced = lines.filter((line) => /^ {2,}/.test(line));
|
242
|
+
|
243
|
+
if (tabbed.length === 0 && spaced.length === 0) {
|
244
|
+
return null;
|
245
|
+
}
|
246
|
+
|
247
|
+
// More lines tabbed than spaced? Assume tabs, and
|
248
|
+
// default to tabs in the case of a tie (or nothing
|
249
|
+
// to go on)
|
250
|
+
if (tabbed.length >= spaced.length) {
|
251
|
+
return '\t';
|
252
|
+
}
|
253
|
+
|
254
|
+
// Otherwise, we need to guess the multiple
|
255
|
+
const min = spaced.reduce((previous, current) => {
|
256
|
+
const numSpaces = /^ +/.exec(current)[0].length;
|
257
|
+
return Math.min(numSpaces, previous);
|
258
|
+
}, Infinity);
|
259
|
+
|
260
|
+
return new Array(min + 1).join(' ');
|
261
|
+
}
|
262
|
+
|
263
|
+
function getRelativePath(from, to) {
|
264
|
+
const fromParts = from.split(/[/\\]/);
|
265
|
+
const toParts = to.split(/[/\\]/);
|
266
|
+
|
267
|
+
fromParts.pop(); // get dirname
|
268
|
+
|
269
|
+
while (fromParts[0] === toParts[0]) {
|
270
|
+
fromParts.shift();
|
271
|
+
toParts.shift();
|
272
|
+
}
|
273
|
+
|
274
|
+
if (fromParts.length) {
|
275
|
+
let i = fromParts.length;
|
276
|
+
while (i--) fromParts[i] = '..';
|
277
|
+
}
|
278
|
+
|
279
|
+
return fromParts.concat(toParts).join('/');
|
280
|
+
}
|
281
|
+
|
282
|
+
const toString = Object.prototype.toString;
|
283
|
+
|
284
|
+
function isObject(thing) {
|
285
|
+
return toString.call(thing) === '[object Object]';
|
286
|
+
}
|
287
|
+
|
288
|
+
function getLocator(source) {
|
289
|
+
const originalLines = source.split('\n');
|
290
|
+
const lineOffsets = [];
|
291
|
+
|
292
|
+
for (let i = 0, pos = 0; i < originalLines.length; i++) {
|
293
|
+
lineOffsets.push(pos);
|
294
|
+
pos += originalLines[i].length + 1;
|
295
|
+
}
|
296
|
+
|
297
|
+
return function locate(index) {
|
298
|
+
let i = 0;
|
299
|
+
let j = lineOffsets.length;
|
300
|
+
while (i < j) {
|
301
|
+
const m = (i + j) >> 1;
|
302
|
+
if (index < lineOffsets[m]) {
|
303
|
+
j = m;
|
304
|
+
} else {
|
305
|
+
i = m + 1;
|
306
|
+
}
|
307
|
+
}
|
308
|
+
const line = i - 1;
|
309
|
+
const column = index - lineOffsets[line];
|
310
|
+
return { line, column };
|
311
|
+
};
|
312
|
+
}
|
313
|
+
|
314
|
+
const wordRegex = /\w/;
|
315
|
+
|
316
|
+
class Mappings {
|
317
|
+
constructor(hires) {
|
318
|
+
this.hires = hires;
|
319
|
+
this.generatedCodeLine = 0;
|
320
|
+
this.generatedCodeColumn = 0;
|
321
|
+
this.raw = [];
|
322
|
+
this.rawSegments = this.raw[this.generatedCodeLine] = [];
|
323
|
+
this.pending = null;
|
324
|
+
}
|
325
|
+
|
326
|
+
addEdit(sourceIndex, content, loc, nameIndex) {
|
327
|
+
if (content.length) {
|
328
|
+
const contentLengthMinusOne = content.length - 1;
|
329
|
+
let contentLineEnd = content.indexOf('\n', 0);
|
330
|
+
let previousContentLineEnd = -1;
|
331
|
+
// Loop through each line in the content and add a segment, but stop if the last line is empty,
|
332
|
+
// else code afterwards would fill one line too many
|
333
|
+
while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) {
|
334
|
+
const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
|
335
|
+
if (nameIndex >= 0) {
|
336
|
+
segment.push(nameIndex);
|
337
|
+
}
|
338
|
+
this.rawSegments.push(segment);
|
339
|
+
|
340
|
+
this.generatedCodeLine += 1;
|
341
|
+
this.raw[this.generatedCodeLine] = this.rawSegments = [];
|
342
|
+
this.generatedCodeColumn = 0;
|
343
|
+
|
344
|
+
previousContentLineEnd = contentLineEnd;
|
345
|
+
contentLineEnd = content.indexOf('\n', contentLineEnd + 1);
|
346
|
+
}
|
347
|
+
|
348
|
+
const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
|
349
|
+
if (nameIndex >= 0) {
|
350
|
+
segment.push(nameIndex);
|
351
|
+
}
|
352
|
+
this.rawSegments.push(segment);
|
353
|
+
|
354
|
+
this.advance(content.slice(previousContentLineEnd + 1));
|
355
|
+
} else if (this.pending) {
|
356
|
+
this.rawSegments.push(this.pending);
|
357
|
+
this.advance(content);
|
358
|
+
}
|
359
|
+
|
360
|
+
this.pending = null;
|
361
|
+
}
|
362
|
+
|
363
|
+
addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) {
|
364
|
+
let originalCharIndex = chunk.start;
|
365
|
+
let first = true;
|
366
|
+
// when iterating each char, check if it's in a word boundary
|
367
|
+
let charInHiresBoundary = false;
|
368
|
+
|
369
|
+
while (originalCharIndex < chunk.end) {
|
370
|
+
if (original[originalCharIndex] === '\n') {
|
371
|
+
loc.line += 1;
|
372
|
+
loc.column = 0;
|
373
|
+
this.generatedCodeLine += 1;
|
374
|
+
this.raw[this.generatedCodeLine] = this.rawSegments = [];
|
375
|
+
this.generatedCodeColumn = 0;
|
376
|
+
first = true;
|
377
|
+
charInHiresBoundary = false;
|
378
|
+
} else {
|
379
|
+
if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
|
380
|
+
const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
|
381
|
+
|
382
|
+
if (this.hires === 'boundary') {
|
383
|
+
// in hires "boundary", group segments per word boundary than per char
|
384
|
+
if (wordRegex.test(original[originalCharIndex])) {
|
385
|
+
// for first char in the boundary found, start the boundary by pushing a segment
|
386
|
+
if (!charInHiresBoundary) {
|
387
|
+
this.rawSegments.push(segment);
|
388
|
+
charInHiresBoundary = true;
|
389
|
+
}
|
390
|
+
} else {
|
391
|
+
// for non-word char, end the boundary by pushing a segment
|
392
|
+
this.rawSegments.push(segment);
|
393
|
+
charInHiresBoundary = false;
|
394
|
+
}
|
395
|
+
} else {
|
396
|
+
this.rawSegments.push(segment);
|
397
|
+
}
|
398
|
+
}
|
399
|
+
|
400
|
+
loc.column += 1;
|
401
|
+
this.generatedCodeColumn += 1;
|
402
|
+
first = false;
|
403
|
+
}
|
404
|
+
|
405
|
+
originalCharIndex += 1;
|
406
|
+
}
|
407
|
+
|
408
|
+
this.pending = null;
|
409
|
+
}
|
410
|
+
|
411
|
+
advance(str) {
|
412
|
+
if (!str) return;
|
413
|
+
|
414
|
+
const lines = str.split('\n');
|
415
|
+
|
416
|
+
if (lines.length > 1) {
|
417
|
+
for (let i = 0; i < lines.length - 1; i++) {
|
418
|
+
this.generatedCodeLine++;
|
419
|
+
this.raw[this.generatedCodeLine] = this.rawSegments = [];
|
420
|
+
}
|
421
|
+
this.generatedCodeColumn = 0;
|
422
|
+
}
|
423
|
+
|
424
|
+
this.generatedCodeColumn += lines[lines.length - 1].length;
|
425
|
+
}
|
426
|
+
}
|
427
|
+
|
428
|
+
const n = '\n';
|
429
|
+
|
430
|
+
const warned = {
|
431
|
+
insertLeft: false,
|
432
|
+
insertRight: false,
|
433
|
+
storeName: false,
|
434
|
+
};
|
435
|
+
|
436
|
+
class MagicString {
|
437
|
+
constructor(string, options = {}) {
|
438
|
+
const chunk = new Chunk(0, string.length, string);
|
439
|
+
|
440
|
+
Object.defineProperties(this, {
|
441
|
+
original: { writable: true, value: string },
|
442
|
+
outro: { writable: true, value: '' },
|
443
|
+
intro: { writable: true, value: '' },
|
444
|
+
firstChunk: { writable: true, value: chunk },
|
445
|
+
lastChunk: { writable: true, value: chunk },
|
446
|
+
lastSearchedChunk: { writable: true, value: chunk },
|
447
|
+
byStart: { writable: true, value: {} },
|
448
|
+
byEnd: { writable: true, value: {} },
|
449
|
+
filename: { writable: true, value: options.filename },
|
450
|
+
indentExclusionRanges: { writable: true, value: options.indentExclusionRanges },
|
451
|
+
sourcemapLocations: { writable: true, value: new BitSet() },
|
452
|
+
storedNames: { writable: true, value: {} },
|
453
|
+
indentStr: { writable: true, value: undefined },
|
454
|
+
ignoreList: { writable: true, value: options.ignoreList },
|
455
|
+
offset: { writable: true, value: options.offset || 0 },
|
456
|
+
});
|
457
|
+
|
458
|
+
this.byStart[0] = chunk;
|
459
|
+
this.byEnd[string.length] = chunk;
|
460
|
+
}
|
461
|
+
|
462
|
+
addSourcemapLocation(char) {
|
463
|
+
this.sourcemapLocations.add(char);
|
464
|
+
}
|
465
|
+
|
466
|
+
append(content) {
|
467
|
+
if (typeof content !== 'string') throw new TypeError('outro content must be a string');
|
468
|
+
|
469
|
+
this.outro += content;
|
470
|
+
return this;
|
471
|
+
}
|
472
|
+
|
473
|
+
appendLeft(index, content) {
|
474
|
+
index = index + this.offset;
|
475
|
+
|
476
|
+
if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
|
477
|
+
|
478
|
+
this._split(index);
|
479
|
+
|
480
|
+
const chunk = this.byEnd[index];
|
481
|
+
|
482
|
+
if (chunk) {
|
483
|
+
chunk.appendLeft(content);
|
484
|
+
} else {
|
485
|
+
this.intro += content;
|
486
|
+
}
|
487
|
+
return this;
|
488
|
+
}
|
489
|
+
|
490
|
+
appendRight(index, content) {
|
491
|
+
index = index + this.offset;
|
492
|
+
|
493
|
+
if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
|
494
|
+
|
495
|
+
this._split(index);
|
496
|
+
|
497
|
+
const chunk = this.byStart[index];
|
498
|
+
|
499
|
+
if (chunk) {
|
500
|
+
chunk.appendRight(content);
|
501
|
+
} else {
|
502
|
+
this.outro += content;
|
503
|
+
}
|
504
|
+
return this;
|
505
|
+
}
|
506
|
+
|
507
|
+
clone() {
|
508
|
+
const cloned = new MagicString(this.original, { filename: this.filename, offset: this.offset });
|
509
|
+
|
510
|
+
let originalChunk = this.firstChunk;
|
511
|
+
let clonedChunk = (cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone());
|
512
|
+
|
513
|
+
while (originalChunk) {
|
514
|
+
cloned.byStart[clonedChunk.start] = clonedChunk;
|
515
|
+
cloned.byEnd[clonedChunk.end] = clonedChunk;
|
516
|
+
|
517
|
+
const nextOriginalChunk = originalChunk.next;
|
518
|
+
const nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone();
|
519
|
+
|
520
|
+
if (nextClonedChunk) {
|
521
|
+
clonedChunk.next = nextClonedChunk;
|
522
|
+
nextClonedChunk.previous = clonedChunk;
|
523
|
+
|
524
|
+
clonedChunk = nextClonedChunk;
|
525
|
+
}
|
526
|
+
|
527
|
+
originalChunk = nextOriginalChunk;
|
528
|
+
}
|
529
|
+
|
530
|
+
cloned.lastChunk = clonedChunk;
|
531
|
+
|
532
|
+
if (this.indentExclusionRanges) {
|
533
|
+
cloned.indentExclusionRanges = this.indentExclusionRanges.slice();
|
534
|
+
}
|
535
|
+
|
536
|
+
cloned.sourcemapLocations = new BitSet(this.sourcemapLocations);
|
537
|
+
|
538
|
+
cloned.intro = this.intro;
|
539
|
+
cloned.outro = this.outro;
|
540
|
+
|
541
|
+
return cloned;
|
542
|
+
}
|
543
|
+
|
544
|
+
generateDecodedMap(options) {
|
545
|
+
options = options || {};
|
546
|
+
|
547
|
+
const sourceIndex = 0;
|
548
|
+
const names = Object.keys(this.storedNames);
|
549
|
+
const mappings = new Mappings(options.hires);
|
550
|
+
|
551
|
+
const locate = getLocator(this.original);
|
552
|
+
|
553
|
+
if (this.intro) {
|
554
|
+
mappings.advance(this.intro);
|
555
|
+
}
|
556
|
+
|
557
|
+
this.firstChunk.eachNext((chunk) => {
|
558
|
+
const loc = locate(chunk.start);
|
559
|
+
|
560
|
+
if (chunk.intro.length) mappings.advance(chunk.intro);
|
561
|
+
|
562
|
+
if (chunk.edited) {
|
563
|
+
mappings.addEdit(
|
564
|
+
sourceIndex,
|
565
|
+
chunk.content,
|
566
|
+
loc,
|
567
|
+
chunk.storeName ? names.indexOf(chunk.original) : -1,
|
568
|
+
);
|
569
|
+
} else {
|
570
|
+
mappings.addUneditedChunk(sourceIndex, chunk, this.original, loc, this.sourcemapLocations);
|
571
|
+
}
|
572
|
+
|
573
|
+
if (chunk.outro.length) mappings.advance(chunk.outro);
|
574
|
+
});
|
575
|
+
|
576
|
+
return {
|
577
|
+
file: options.file ? options.file.split(/[/\\]/).pop() : undefined,
|
578
|
+
sources: [
|
579
|
+
options.source ? getRelativePath(options.file || '', options.source) : options.file || '',
|
580
|
+
],
|
581
|
+
sourcesContent: options.includeContent ? [this.original] : undefined,
|
582
|
+
names,
|
583
|
+
mappings: mappings.raw,
|
584
|
+
x_google_ignoreList: this.ignoreList ? [sourceIndex] : undefined,
|
585
|
+
};
|
586
|
+
}
|
587
|
+
|
588
|
+
generateMap(options) {
|
589
|
+
return new SourceMap(this.generateDecodedMap(options));
|
590
|
+
}
|
591
|
+
|
592
|
+
_ensureindentStr() {
|
593
|
+
if (this.indentStr === undefined) {
|
594
|
+
this.indentStr = guessIndent(this.original);
|
595
|
+
}
|
596
|
+
}
|
597
|
+
|
598
|
+
_getRawIndentString() {
|
599
|
+
this._ensureindentStr();
|
600
|
+
return this.indentStr;
|
601
|
+
}
|
602
|
+
|
603
|
+
getIndentString() {
|
604
|
+
this._ensureindentStr();
|
605
|
+
return this.indentStr === null ? '\t' : this.indentStr;
|
606
|
+
}
|
607
|
+
|
608
|
+
indent(indentStr, options) {
|
609
|
+
const pattern = /^[^\r\n]/gm;
|
610
|
+
|
611
|
+
if (isObject(indentStr)) {
|
612
|
+
options = indentStr;
|
613
|
+
indentStr = undefined;
|
614
|
+
}
|
615
|
+
|
616
|
+
if (indentStr === undefined) {
|
617
|
+
this._ensureindentStr();
|
618
|
+
indentStr = this.indentStr || '\t';
|
619
|
+
}
|
620
|
+
|
621
|
+
if (indentStr === '') return this; // noop
|
622
|
+
|
623
|
+
options = options || {};
|
624
|
+
|
625
|
+
// Process exclusion ranges
|
626
|
+
const isExcluded = {};
|
627
|
+
|
628
|
+
if (options.exclude) {
|
629
|
+
const exclusions =
|
630
|
+
typeof options.exclude[0] === 'number' ? [options.exclude] : options.exclude;
|
631
|
+
exclusions.forEach((exclusion) => {
|
632
|
+
for (let i = exclusion[0]; i < exclusion[1]; i += 1) {
|
633
|
+
isExcluded[i] = true;
|
634
|
+
}
|
635
|
+
});
|
636
|
+
}
|
637
|
+
|
638
|
+
let shouldIndentNextCharacter = options.indentStart !== false;
|
639
|
+
const replacer = (match) => {
|
640
|
+
if (shouldIndentNextCharacter) return `${indentStr}${match}`;
|
641
|
+
shouldIndentNextCharacter = true;
|
642
|
+
return match;
|
643
|
+
};
|
644
|
+
|
645
|
+
this.intro = this.intro.replace(pattern, replacer);
|
646
|
+
|
647
|
+
let charIndex = 0;
|
648
|
+
let chunk = this.firstChunk;
|
649
|
+
|
650
|
+
while (chunk) {
|
651
|
+
const end = chunk.end;
|
652
|
+
|
653
|
+
if (chunk.edited) {
|
654
|
+
if (!isExcluded[charIndex]) {
|
655
|
+
chunk.content = chunk.content.replace(pattern, replacer);
|
656
|
+
|
657
|
+
if (chunk.content.length) {
|
658
|
+
shouldIndentNextCharacter = chunk.content[chunk.content.length - 1] === '\n';
|
659
|
+
}
|
660
|
+
}
|
661
|
+
} else {
|
662
|
+
charIndex = chunk.start;
|
663
|
+
|
664
|
+
while (charIndex < end) {
|
665
|
+
if (!isExcluded[charIndex]) {
|
666
|
+
const char = this.original[charIndex];
|
667
|
+
|
668
|
+
if (char === '\n') {
|
669
|
+
shouldIndentNextCharacter = true;
|
670
|
+
} else if (char !== '\r' && shouldIndentNextCharacter) {
|
671
|
+
shouldIndentNextCharacter = false;
|
672
|
+
|
673
|
+
if (charIndex === chunk.start) {
|
674
|
+
chunk.prependRight(indentStr);
|
675
|
+
} else {
|
676
|
+
this._splitChunk(chunk, charIndex);
|
677
|
+
chunk = chunk.next;
|
678
|
+
chunk.prependRight(indentStr);
|
679
|
+
}
|
680
|
+
}
|
681
|
+
}
|
682
|
+
|
683
|
+
charIndex += 1;
|
684
|
+
}
|
685
|
+
}
|
686
|
+
|
687
|
+
charIndex = chunk.end;
|
688
|
+
chunk = chunk.next;
|
689
|
+
}
|
690
|
+
|
691
|
+
this.outro = this.outro.replace(pattern, replacer);
|
692
|
+
|
693
|
+
return this;
|
694
|
+
}
|
695
|
+
|
696
|
+
insert() {
|
697
|
+
throw new Error(
|
698
|
+
'magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)',
|
699
|
+
);
|
700
|
+
}
|
701
|
+
|
702
|
+
insertLeft(index, content) {
|
703
|
+
if (!warned.insertLeft) {
|
704
|
+
console.warn(
|
705
|
+
'magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead',
|
706
|
+
);
|
707
|
+
warned.insertLeft = true;
|
708
|
+
}
|
709
|
+
|
710
|
+
return this.appendLeft(index, content);
|
711
|
+
}
|
712
|
+
|
713
|
+
insertRight(index, content) {
|
714
|
+
if (!warned.insertRight) {
|
715
|
+
console.warn(
|
716
|
+
'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead',
|
717
|
+
);
|
718
|
+
warned.insertRight = true;
|
719
|
+
}
|
720
|
+
|
721
|
+
return this.prependRight(index, content);
|
722
|
+
}
|
723
|
+
|
724
|
+
move(start, end, index) {
|
725
|
+
start = start + this.offset;
|
726
|
+
end = end + this.offset;
|
727
|
+
index = index + this.offset;
|
728
|
+
|
729
|
+
if (index >= start && index <= end) throw new Error('Cannot move a selection inside itself');
|
730
|
+
|
731
|
+
this._split(start);
|
732
|
+
this._split(end);
|
733
|
+
this._split(index);
|
734
|
+
|
735
|
+
const first = this.byStart[start];
|
736
|
+
const last = this.byEnd[end];
|
737
|
+
|
738
|
+
const oldLeft = first.previous;
|
739
|
+
const oldRight = last.next;
|
740
|
+
|
741
|
+
const newRight = this.byStart[index];
|
742
|
+
if (!newRight && last === this.lastChunk) return this;
|
743
|
+
const newLeft = newRight ? newRight.previous : this.lastChunk;
|
744
|
+
|
745
|
+
if (oldLeft) oldLeft.next = oldRight;
|
746
|
+
if (oldRight) oldRight.previous = oldLeft;
|
747
|
+
|
748
|
+
if (newLeft) newLeft.next = first;
|
749
|
+
if (newRight) newRight.previous = last;
|
750
|
+
|
751
|
+
if (!first.previous) this.firstChunk = last.next;
|
752
|
+
if (!last.next) {
|
753
|
+
this.lastChunk = first.previous;
|
754
|
+
this.lastChunk.next = null;
|
755
|
+
}
|
756
|
+
|
757
|
+
first.previous = newLeft;
|
758
|
+
last.next = newRight || null;
|
759
|
+
|
760
|
+
if (!newLeft) this.firstChunk = first;
|
761
|
+
if (!newRight) this.lastChunk = last;
|
762
|
+
return this;
|
763
|
+
}
|
764
|
+
|
765
|
+
overwrite(start, end, content, options) {
|
766
|
+
options = options || {};
|
767
|
+
return this.update(start, end, content, { ...options, overwrite: !options.contentOnly });
|
768
|
+
}
|
769
|
+
|
770
|
+
update(start, end, content, options) {
|
771
|
+
start = start + this.offset;
|
772
|
+
end = end + this.offset;
|
773
|
+
|
774
|
+
if (typeof content !== 'string') throw new TypeError('replacement content must be a string');
|
775
|
+
|
776
|
+
if (this.original.length !== 0) {
|
777
|
+
while (start < 0) start += this.original.length;
|
778
|
+
while (end < 0) end += this.original.length;
|
779
|
+
}
|
780
|
+
|
781
|
+
if (end > this.original.length) throw new Error('end is out of bounds');
|
782
|
+
if (start === end)
|
783
|
+
throw new Error(
|
784
|
+
'Cannot overwrite a zero-length range – use appendLeft or prependRight instead',
|
785
|
+
);
|
786
|
+
|
787
|
+
this._split(start);
|
788
|
+
this._split(end);
|
789
|
+
|
790
|
+
if (options === true) {
|
791
|
+
if (!warned.storeName) {
|
792
|
+
console.warn(
|
793
|
+
'The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string',
|
794
|
+
);
|
795
|
+
warned.storeName = true;
|
796
|
+
}
|
797
|
+
|
798
|
+
options = { storeName: true };
|
799
|
+
}
|
800
|
+
const storeName = options !== undefined ? options.storeName : false;
|
801
|
+
const overwrite = options !== undefined ? options.overwrite : false;
|
802
|
+
|
803
|
+
if (storeName) {
|
804
|
+
const original = this.original.slice(start, end);
|
805
|
+
Object.defineProperty(this.storedNames, original, {
|
806
|
+
writable: true,
|
807
|
+
value: true,
|
808
|
+
enumerable: true,
|
809
|
+
});
|
810
|
+
}
|
811
|
+
|
812
|
+
const first = this.byStart[start];
|
813
|
+
const last = this.byEnd[end];
|
814
|
+
|
815
|
+
if (first) {
|
816
|
+
let chunk = first;
|
817
|
+
while (chunk !== last) {
|
818
|
+
if (chunk.next !== this.byStart[chunk.end]) {
|
819
|
+
throw new Error('Cannot overwrite across a split point');
|
820
|
+
}
|
821
|
+
chunk = chunk.next;
|
822
|
+
chunk.edit('', false);
|
823
|
+
}
|
824
|
+
|
825
|
+
first.edit(content, storeName, !overwrite);
|
826
|
+
} else {
|
827
|
+
// must be inserting at the end
|
828
|
+
const newChunk = new Chunk(start, end, '').edit(content, storeName);
|
829
|
+
|
830
|
+
// TODO last chunk in the array may not be the last chunk, if it's moved...
|
831
|
+
last.next = newChunk;
|
832
|
+
newChunk.previous = last;
|
833
|
+
}
|
834
|
+
return this;
|
835
|
+
}
|
836
|
+
|
837
|
+
prepend(content) {
|
838
|
+
if (typeof content !== 'string') throw new TypeError('outro content must be a string');
|
839
|
+
|
840
|
+
this.intro = content + this.intro;
|
841
|
+
return this;
|
842
|
+
}
|
843
|
+
|
844
|
+
prependLeft(index, content) {
|
845
|
+
index = index + this.offset;
|
846
|
+
|
847
|
+
if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
|
848
|
+
|
849
|
+
this._split(index);
|
850
|
+
|
851
|
+
const chunk = this.byEnd[index];
|
852
|
+
|
853
|
+
if (chunk) {
|
854
|
+
chunk.prependLeft(content);
|
855
|
+
} else {
|
856
|
+
this.intro = content + this.intro;
|
857
|
+
}
|
858
|
+
return this;
|
859
|
+
}
|
860
|
+
|
861
|
+
prependRight(index, content) {
|
862
|
+
index = index + this.offset;
|
863
|
+
|
864
|
+
if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
|
865
|
+
|
866
|
+
this._split(index);
|
867
|
+
|
868
|
+
const chunk = this.byStart[index];
|
869
|
+
|
870
|
+
if (chunk) {
|
871
|
+
chunk.prependRight(content);
|
872
|
+
} else {
|
873
|
+
this.outro = content + this.outro;
|
874
|
+
}
|
875
|
+
return this;
|
876
|
+
}
|
877
|
+
|
878
|
+
remove(start, end) {
|
879
|
+
start = start + this.offset;
|
880
|
+
end = end + this.offset;
|
881
|
+
|
882
|
+
if (this.original.length !== 0) {
|
883
|
+
while (start < 0) start += this.original.length;
|
884
|
+
while (end < 0) end += this.original.length;
|
885
|
+
}
|
886
|
+
|
887
|
+
if (start === end) return this;
|
888
|
+
|
889
|
+
if (start < 0 || end > this.original.length) throw new Error('Character is out of bounds');
|
890
|
+
if (start > end) throw new Error('end must be greater than start');
|
891
|
+
|
892
|
+
this._split(start);
|
893
|
+
this._split(end);
|
894
|
+
|
895
|
+
let chunk = this.byStart[start];
|
896
|
+
|
897
|
+
while (chunk) {
|
898
|
+
chunk.intro = '';
|
899
|
+
chunk.outro = '';
|
900
|
+
chunk.edit('');
|
901
|
+
|
902
|
+
chunk = end > chunk.end ? this.byStart[chunk.end] : null;
|
903
|
+
}
|
904
|
+
return this;
|
905
|
+
}
|
906
|
+
|
907
|
+
reset(start, end) {
|
908
|
+
start = start + this.offset;
|
909
|
+
end = end + this.offset;
|
910
|
+
|
911
|
+
if (this.original.length !== 0) {
|
912
|
+
while (start < 0) start += this.original.length;
|
913
|
+
while (end < 0) end += this.original.length;
|
914
|
+
}
|
915
|
+
|
916
|
+
if (start === end) return this;
|
917
|
+
|
918
|
+
if (start < 0 || end > this.original.length) throw new Error('Character is out of bounds');
|
919
|
+
if (start > end) throw new Error('end must be greater than start');
|
920
|
+
|
921
|
+
this._split(start);
|
922
|
+
this._split(end);
|
923
|
+
|
924
|
+
let chunk = this.byStart[start];
|
925
|
+
|
926
|
+
while (chunk) {
|
927
|
+
chunk.reset();
|
928
|
+
|
929
|
+
chunk = end > chunk.end ? this.byStart[chunk.end] : null;
|
930
|
+
}
|
931
|
+
return this;
|
932
|
+
}
|
933
|
+
|
934
|
+
lastChar() {
|
935
|
+
if (this.outro.length) return this.outro[this.outro.length - 1];
|
936
|
+
let chunk = this.lastChunk;
|
937
|
+
do {
|
938
|
+
if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1];
|
939
|
+
if (chunk.content.length) return chunk.content[chunk.content.length - 1];
|
940
|
+
if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1];
|
941
|
+
} while ((chunk = chunk.previous));
|
942
|
+
if (this.intro.length) return this.intro[this.intro.length - 1];
|
943
|
+
return '';
|
944
|
+
}
|
945
|
+
|
946
|
+
lastLine() {
|
947
|
+
let lineIndex = this.outro.lastIndexOf(n);
|
948
|
+
if (lineIndex !== -1) return this.outro.substr(lineIndex + 1);
|
949
|
+
let lineStr = this.outro;
|
950
|
+
let chunk = this.lastChunk;
|
951
|
+
do {
|
952
|
+
if (chunk.outro.length > 0) {
|
953
|
+
lineIndex = chunk.outro.lastIndexOf(n);
|
954
|
+
if (lineIndex !== -1) return chunk.outro.substr(lineIndex + 1) + lineStr;
|
955
|
+
lineStr = chunk.outro + lineStr;
|
956
|
+
}
|
957
|
+
|
958
|
+
if (chunk.content.length > 0) {
|
959
|
+
lineIndex = chunk.content.lastIndexOf(n);
|
960
|
+
if (lineIndex !== -1) return chunk.content.substr(lineIndex + 1) + lineStr;
|
961
|
+
lineStr = chunk.content + lineStr;
|
962
|
+
}
|
963
|
+
|
964
|
+
if (chunk.intro.length > 0) {
|
965
|
+
lineIndex = chunk.intro.lastIndexOf(n);
|
966
|
+
if (lineIndex !== -1) return chunk.intro.substr(lineIndex + 1) + lineStr;
|
967
|
+
lineStr = chunk.intro + lineStr;
|
968
|
+
}
|
969
|
+
} while ((chunk = chunk.previous));
|
970
|
+
lineIndex = this.intro.lastIndexOf(n);
|
971
|
+
if (lineIndex !== -1) return this.intro.substr(lineIndex + 1) + lineStr;
|
972
|
+
return this.intro + lineStr;
|
973
|
+
}
|
974
|
+
|
975
|
+
slice(start = 0, end = this.original.length - this.offset) {
|
976
|
+
start = start + this.offset;
|
977
|
+
end = end + this.offset;
|
978
|
+
|
979
|
+
if (this.original.length !== 0) {
|
980
|
+
while (start < 0) start += this.original.length;
|
981
|
+
while (end < 0) end += this.original.length;
|
982
|
+
}
|
983
|
+
|
984
|
+
let result = '';
|
985
|
+
|
986
|
+
// find start chunk
|
987
|
+
let chunk = this.firstChunk;
|
988
|
+
while (chunk && (chunk.start > start || chunk.end <= start)) {
|
989
|
+
// found end chunk before start
|
990
|
+
if (chunk.start < end && chunk.end >= end) {
|
991
|
+
return result;
|
992
|
+
}
|
993
|
+
|
994
|
+
chunk = chunk.next;
|
995
|
+
}
|
996
|
+
|
997
|
+
if (chunk && chunk.edited && chunk.start !== start)
|
998
|
+
throw new Error(`Cannot use replaced character ${start} as slice start anchor.`);
|
999
|
+
|
1000
|
+
const startChunk = chunk;
|
1001
|
+
while (chunk) {
|
1002
|
+
if (chunk.intro && (startChunk !== chunk || chunk.start === start)) {
|
1003
|
+
result += chunk.intro;
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
const containsEnd = chunk.start < end && chunk.end >= end;
|
1007
|
+
if (containsEnd && chunk.edited && chunk.end !== end)
|
1008
|
+
throw new Error(`Cannot use replaced character ${end} as slice end anchor.`);
|
1009
|
+
|
1010
|
+
const sliceStart = startChunk === chunk ? start - chunk.start : 0;
|
1011
|
+
const sliceEnd = containsEnd ? chunk.content.length + end - chunk.end : chunk.content.length;
|
1012
|
+
|
1013
|
+
result += chunk.content.slice(sliceStart, sliceEnd);
|
1014
|
+
|
1015
|
+
if (chunk.outro && (!containsEnd || chunk.end === end)) {
|
1016
|
+
result += chunk.outro;
|
1017
|
+
}
|
1018
|
+
|
1019
|
+
if (containsEnd) {
|
1020
|
+
break;
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
chunk = chunk.next;
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
return result;
|
1027
|
+
}
|
1028
|
+
|
1029
|
+
// TODO deprecate this? not really very useful
|
1030
|
+
snip(start, end) {
|
1031
|
+
const clone = this.clone();
|
1032
|
+
clone.remove(0, start);
|
1033
|
+
clone.remove(end, clone.original.length);
|
1034
|
+
|
1035
|
+
return clone;
|
1036
|
+
}
|
1037
|
+
|
1038
|
+
_split(index) {
|
1039
|
+
if (this.byStart[index] || this.byEnd[index]) return;
|
1040
|
+
|
1041
|
+
let chunk = this.lastSearchedChunk;
|
1042
|
+
const searchForward = index > chunk.end;
|
1043
|
+
|
1044
|
+
while (chunk) {
|
1045
|
+
if (chunk.contains(index)) return this._splitChunk(chunk, index);
|
1046
|
+
|
1047
|
+
chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
|
1048
|
+
}
|
1049
|
+
}
|
1050
|
+
|
1051
|
+
_splitChunk(chunk, index) {
|
1052
|
+
if (chunk.edited && chunk.content.length) {
|
1053
|
+
// zero-length edited chunks are a special case (overlapping replacements)
|
1054
|
+
const loc = getLocator(this.original)(index);
|
1055
|
+
throw new Error(
|
1056
|
+
`Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – "${chunk.original}")`,
|
1057
|
+
);
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
const newChunk = chunk.split(index);
|
1061
|
+
|
1062
|
+
this.byEnd[index] = chunk;
|
1063
|
+
this.byStart[index] = newChunk;
|
1064
|
+
this.byEnd[newChunk.end] = newChunk;
|
1065
|
+
|
1066
|
+
if (chunk === this.lastChunk) this.lastChunk = newChunk;
|
1067
|
+
|
1068
|
+
this.lastSearchedChunk = chunk;
|
1069
|
+
return true;
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
toString() {
|
1073
|
+
let str = this.intro;
|
1074
|
+
|
1075
|
+
let chunk = this.firstChunk;
|
1076
|
+
while (chunk) {
|
1077
|
+
str += chunk.toString();
|
1078
|
+
chunk = chunk.next;
|
1079
|
+
}
|
1080
|
+
|
1081
|
+
return str + this.outro;
|
1082
|
+
}
|
1083
|
+
|
1084
|
+
isEmpty() {
|
1085
|
+
let chunk = this.firstChunk;
|
1086
|
+
do {
|
1087
|
+
if (
|
1088
|
+
(chunk.intro.length && chunk.intro.trim()) ||
|
1089
|
+
(chunk.content.length && chunk.content.trim()) ||
|
1090
|
+
(chunk.outro.length && chunk.outro.trim())
|
1091
|
+
)
|
1092
|
+
return false;
|
1093
|
+
} while ((chunk = chunk.next));
|
1094
|
+
return true;
|
1095
|
+
}
|
1096
|
+
|
1097
|
+
length() {
|
1098
|
+
let chunk = this.firstChunk;
|
1099
|
+
let length = 0;
|
1100
|
+
do {
|
1101
|
+
length += chunk.intro.length + chunk.content.length + chunk.outro.length;
|
1102
|
+
} while ((chunk = chunk.next));
|
1103
|
+
return length;
|
1104
|
+
}
|
1105
|
+
|
1106
|
+
trimLines() {
|
1107
|
+
return this.trim('[\\r\\n]');
|
1108
|
+
}
|
1109
|
+
|
1110
|
+
trim(charType) {
|
1111
|
+
return this.trimStart(charType).trimEnd(charType);
|
1112
|
+
}
|
1113
|
+
|
1114
|
+
trimEndAborted(charType) {
|
1115
|
+
const rx = new RegExp((charType || '\\s') + '+$');
|
1116
|
+
|
1117
|
+
this.outro = this.outro.replace(rx, '');
|
1118
|
+
if (this.outro.length) return true;
|
1119
|
+
|
1120
|
+
let chunk = this.lastChunk;
|
1121
|
+
|
1122
|
+
do {
|
1123
|
+
const end = chunk.end;
|
1124
|
+
const aborted = chunk.trimEnd(rx);
|
1125
|
+
|
1126
|
+
// if chunk was trimmed, we have a new lastChunk
|
1127
|
+
if (chunk.end !== end) {
|
1128
|
+
if (this.lastChunk === chunk) {
|
1129
|
+
this.lastChunk = chunk.next;
|
1130
|
+
}
|
1131
|
+
|
1132
|
+
this.byEnd[chunk.end] = chunk;
|
1133
|
+
this.byStart[chunk.next.start] = chunk.next;
|
1134
|
+
this.byEnd[chunk.next.end] = chunk.next;
|
1135
|
+
}
|
1136
|
+
|
1137
|
+
if (aborted) return true;
|
1138
|
+
chunk = chunk.previous;
|
1139
|
+
} while (chunk);
|
1140
|
+
|
1141
|
+
return false;
|
1142
|
+
}
|
1143
|
+
|
1144
|
+
trimEnd(charType) {
|
1145
|
+
this.trimEndAborted(charType);
|
1146
|
+
return this;
|
1147
|
+
}
|
1148
|
+
trimStartAborted(charType) {
|
1149
|
+
const rx = new RegExp('^' + (charType || '\\s') + '+');
|
1150
|
+
|
1151
|
+
this.intro = this.intro.replace(rx, '');
|
1152
|
+
if (this.intro.length) return true;
|
1153
|
+
|
1154
|
+
let chunk = this.firstChunk;
|
1155
|
+
|
1156
|
+
do {
|
1157
|
+
const end = chunk.end;
|
1158
|
+
const aborted = chunk.trimStart(rx);
|
1159
|
+
|
1160
|
+
if (chunk.end !== end) {
|
1161
|
+
// special case...
|
1162
|
+
if (chunk === this.lastChunk) this.lastChunk = chunk.next;
|
1163
|
+
|
1164
|
+
this.byEnd[chunk.end] = chunk;
|
1165
|
+
this.byStart[chunk.next.start] = chunk.next;
|
1166
|
+
this.byEnd[chunk.next.end] = chunk.next;
|
1167
|
+
}
|
1168
|
+
|
1169
|
+
if (aborted) return true;
|
1170
|
+
chunk = chunk.next;
|
1171
|
+
} while (chunk);
|
1172
|
+
|
1173
|
+
return false;
|
1174
|
+
}
|
1175
|
+
|
1176
|
+
trimStart(charType) {
|
1177
|
+
this.trimStartAborted(charType);
|
1178
|
+
return this;
|
1179
|
+
}
|
1180
|
+
|
1181
|
+
hasChanged() {
|
1182
|
+
return this.original !== this.toString();
|
1183
|
+
}
|
1184
|
+
|
1185
|
+
_replaceRegexp(searchValue, replacement) {
|
1186
|
+
function getReplacement(match, str) {
|
1187
|
+
if (typeof replacement === 'string') {
|
1188
|
+
return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
|
1189
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_a_parameter
|
1190
|
+
if (i === '$') return '$';
|
1191
|
+
if (i === '&') return match[0];
|
1192
|
+
const num = +i;
|
1193
|
+
if (num < match.length) return match[+i];
|
1194
|
+
return `$${i}`;
|
1195
|
+
});
|
1196
|
+
} else {
|
1197
|
+
return replacement(...match, match.index, str, match.groups);
|
1198
|
+
}
|
1199
|
+
}
|
1200
|
+
function matchAll(re, str) {
|
1201
|
+
let match;
|
1202
|
+
const matches = [];
|
1203
|
+
while ((match = re.exec(str))) {
|
1204
|
+
matches.push(match);
|
1205
|
+
}
|
1206
|
+
return matches;
|
1207
|
+
}
|
1208
|
+
if (searchValue.global) {
|
1209
|
+
const matches = matchAll(searchValue, this.original);
|
1210
|
+
matches.forEach((match) => {
|
1211
|
+
if (match.index != null) {
|
1212
|
+
const replacement = getReplacement(match, this.original);
|
1213
|
+
if (replacement !== match[0]) {
|
1214
|
+
this.overwrite(match.index, match.index + match[0].length, replacement);
|
1215
|
+
}
|
1216
|
+
}
|
1217
|
+
});
|
1218
|
+
} else {
|
1219
|
+
const match = this.original.match(searchValue);
|
1220
|
+
if (match && match.index != null) {
|
1221
|
+
const replacement = getReplacement(match, this.original);
|
1222
|
+
if (replacement !== match[0]) {
|
1223
|
+
this.overwrite(match.index, match.index + match[0].length, replacement);
|
1224
|
+
}
|
1225
|
+
}
|
1226
|
+
}
|
1227
|
+
return this;
|
1228
|
+
}
|
1229
|
+
|
1230
|
+
_replaceString(string, replacement) {
|
1231
|
+
const { original } = this;
|
1232
|
+
const index = original.indexOf(string);
|
1233
|
+
|
1234
|
+
if (index !== -1) {
|
1235
|
+
this.overwrite(index, index + string.length, replacement);
|
1236
|
+
}
|
1237
|
+
|
1238
|
+
return this;
|
1239
|
+
}
|
1240
|
+
|
1241
|
+
replace(searchValue, replacement) {
|
1242
|
+
if (typeof searchValue === 'string') {
|
1243
|
+
return this._replaceString(searchValue, replacement);
|
1244
|
+
}
|
1245
|
+
|
1246
|
+
return this._replaceRegexp(searchValue, replacement);
|
1247
|
+
}
|
1248
|
+
|
1249
|
+
_replaceAllString(string, replacement) {
|
1250
|
+
const { original } = this;
|
1251
|
+
const stringLength = string.length;
|
1252
|
+
for (
|
1253
|
+
let index = original.indexOf(string);
|
1254
|
+
index !== -1;
|
1255
|
+
index = original.indexOf(string, index + stringLength)
|
1256
|
+
) {
|
1257
|
+
const previous = original.slice(index, index + stringLength);
|
1258
|
+
if (previous !== replacement) this.overwrite(index, index + stringLength, replacement);
|
1259
|
+
}
|
1260
|
+
|
1261
|
+
return this;
|
1262
|
+
}
|
1263
|
+
|
1264
|
+
replaceAll(searchValue, replacement) {
|
1265
|
+
if (typeof searchValue === 'string') {
|
1266
|
+
return this._replaceAllString(searchValue, replacement);
|
1267
|
+
}
|
1268
|
+
|
1269
|
+
if (!searchValue.global) {
|
1270
|
+
throw new TypeError(
|
1271
|
+
'MagicString.prototype.replaceAll called with a non-global RegExp argument',
|
1272
|
+
);
|
1273
|
+
}
|
1274
|
+
|
1275
|
+
return this._replaceRegexp(searchValue, replacement);
|
1276
|
+
}
|
1277
|
+
}
|
1278
|
+
|
1279
|
+
const hasOwnProp = Object.prototype.hasOwnProperty;
|
1280
|
+
|
1281
|
+
class Bundle {
|
1282
|
+
constructor(options = {}) {
|
1283
|
+
this.intro = options.intro || '';
|
1284
|
+
this.separator = options.separator !== undefined ? options.separator : '\n';
|
1285
|
+
this.sources = [];
|
1286
|
+
this.uniqueSources = [];
|
1287
|
+
this.uniqueSourceIndexByFilename = {};
|
1288
|
+
}
|
1289
|
+
|
1290
|
+
addSource(source) {
|
1291
|
+
if (source instanceof MagicString) {
|
1292
|
+
return this.addSource({
|
1293
|
+
content: source,
|
1294
|
+
filename: source.filename,
|
1295
|
+
separator: this.separator,
|
1296
|
+
});
|
1297
|
+
}
|
1298
|
+
|
1299
|
+
if (!isObject(source) || !source.content) {
|
1300
|
+
throw new Error(
|
1301
|
+
'bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`',
|
1302
|
+
);
|
1303
|
+
}
|
1304
|
+
|
1305
|
+
['filename', 'ignoreList', 'indentExclusionRanges', 'separator'].forEach((option) => {
|
1306
|
+
if (!hasOwnProp.call(source, option)) source[option] = source.content[option];
|
1307
|
+
});
|
1308
|
+
|
1309
|
+
if (source.separator === undefined) {
|
1310
|
+
// TODO there's a bunch of this sort of thing, needs cleaning up
|
1311
|
+
source.separator = this.separator;
|
1312
|
+
}
|
1313
|
+
|
1314
|
+
if (source.filename) {
|
1315
|
+
if (!hasOwnProp.call(this.uniqueSourceIndexByFilename, source.filename)) {
|
1316
|
+
this.uniqueSourceIndexByFilename[source.filename] = this.uniqueSources.length;
|
1317
|
+
this.uniqueSources.push({ filename: source.filename, content: source.content.original });
|
1318
|
+
} else {
|
1319
|
+
const uniqueSource = this.uniqueSources[this.uniqueSourceIndexByFilename[source.filename]];
|
1320
|
+
if (source.content.original !== uniqueSource.content) {
|
1321
|
+
throw new Error(`Illegal source: same filename (${source.filename}), different contents`);
|
1322
|
+
}
|
1323
|
+
}
|
1324
|
+
}
|
1325
|
+
|
1326
|
+
this.sources.push(source);
|
1327
|
+
return this;
|
1328
|
+
}
|
1329
|
+
|
1330
|
+
append(str, options) {
|
1331
|
+
this.addSource({
|
1332
|
+
content: new MagicString(str),
|
1333
|
+
separator: (options && options.separator) || '',
|
1334
|
+
});
|
1335
|
+
|
1336
|
+
return this;
|
1337
|
+
}
|
1338
|
+
|
1339
|
+
clone() {
|
1340
|
+
const bundle = new Bundle({
|
1341
|
+
intro: this.intro,
|
1342
|
+
separator: this.separator,
|
1343
|
+
});
|
1344
|
+
|
1345
|
+
this.sources.forEach((source) => {
|
1346
|
+
bundle.addSource({
|
1347
|
+
filename: source.filename,
|
1348
|
+
content: source.content.clone(),
|
1349
|
+
separator: source.separator,
|
1350
|
+
});
|
1351
|
+
});
|
1352
|
+
|
1353
|
+
return bundle;
|
1354
|
+
}
|
1355
|
+
|
1356
|
+
generateDecodedMap(options = {}) {
|
1357
|
+
const names = [];
|
1358
|
+
let x_google_ignoreList = undefined;
|
1359
|
+
this.sources.forEach((source) => {
|
1360
|
+
Object.keys(source.content.storedNames).forEach((name) => {
|
1361
|
+
if (!~names.indexOf(name)) names.push(name);
|
1362
|
+
});
|
1363
|
+
});
|
1364
|
+
|
1365
|
+
const mappings = new Mappings(options.hires);
|
1366
|
+
|
1367
|
+
if (this.intro) {
|
1368
|
+
mappings.advance(this.intro);
|
1369
|
+
}
|
1370
|
+
|
1371
|
+
this.sources.forEach((source, i) => {
|
1372
|
+
if (i > 0) {
|
1373
|
+
mappings.advance(this.separator);
|
1374
|
+
}
|
1375
|
+
|
1376
|
+
const sourceIndex = source.filename ? this.uniqueSourceIndexByFilename[source.filename] : -1;
|
1377
|
+
const magicString = source.content;
|
1378
|
+
const locate = getLocator(magicString.original);
|
1379
|
+
|
1380
|
+
if (magicString.intro) {
|
1381
|
+
mappings.advance(magicString.intro);
|
1382
|
+
}
|
1383
|
+
|
1384
|
+
magicString.firstChunk.eachNext((chunk) => {
|
1385
|
+
const loc = locate(chunk.start);
|
1386
|
+
|
1387
|
+
if (chunk.intro.length) mappings.advance(chunk.intro);
|
1388
|
+
|
1389
|
+
if (source.filename) {
|
1390
|
+
if (chunk.edited) {
|
1391
|
+
mappings.addEdit(
|
1392
|
+
sourceIndex,
|
1393
|
+
chunk.content,
|
1394
|
+
loc,
|
1395
|
+
chunk.storeName ? names.indexOf(chunk.original) : -1,
|
1396
|
+
);
|
1397
|
+
} else {
|
1398
|
+
mappings.addUneditedChunk(
|
1399
|
+
sourceIndex,
|
1400
|
+
chunk,
|
1401
|
+
magicString.original,
|
1402
|
+
loc,
|
1403
|
+
magicString.sourcemapLocations,
|
1404
|
+
);
|
1405
|
+
}
|
1406
|
+
} else {
|
1407
|
+
mappings.advance(chunk.content);
|
1408
|
+
}
|
1409
|
+
|
1410
|
+
if (chunk.outro.length) mappings.advance(chunk.outro);
|
1411
|
+
});
|
1412
|
+
|
1413
|
+
if (magicString.outro) {
|
1414
|
+
mappings.advance(magicString.outro);
|
1415
|
+
}
|
1416
|
+
|
1417
|
+
if (source.ignoreList && sourceIndex !== -1) {
|
1418
|
+
if (x_google_ignoreList === undefined) {
|
1419
|
+
x_google_ignoreList = [];
|
1420
|
+
}
|
1421
|
+
x_google_ignoreList.push(sourceIndex);
|
1422
|
+
}
|
1423
|
+
});
|
1424
|
+
|
1425
|
+
return {
|
1426
|
+
file: options.file ? options.file.split(/[/\\]/).pop() : undefined,
|
1427
|
+
sources: this.uniqueSources.map((source) => {
|
1428
|
+
return options.file ? getRelativePath(options.file, source.filename) : source.filename;
|
1429
|
+
}),
|
1430
|
+
sourcesContent: this.uniqueSources.map((source) => {
|
1431
|
+
return options.includeContent ? source.content : null;
|
1432
|
+
}),
|
1433
|
+
names,
|
1434
|
+
mappings: mappings.raw,
|
1435
|
+
x_google_ignoreList,
|
1436
|
+
};
|
1437
|
+
}
|
1438
|
+
|
1439
|
+
generateMap(options) {
|
1440
|
+
return new SourceMap(this.generateDecodedMap(options));
|
1441
|
+
}
|
1442
|
+
|
1443
|
+
getIndentString() {
|
1444
|
+
const indentStringCounts = {};
|
1445
|
+
|
1446
|
+
this.sources.forEach((source) => {
|
1447
|
+
const indentStr = source.content._getRawIndentString();
|
1448
|
+
|
1449
|
+
if (indentStr === null) return;
|
1450
|
+
|
1451
|
+
if (!indentStringCounts[indentStr]) indentStringCounts[indentStr] = 0;
|
1452
|
+
indentStringCounts[indentStr] += 1;
|
1453
|
+
});
|
1454
|
+
|
1455
|
+
return (
|
1456
|
+
Object.keys(indentStringCounts).sort((a, b) => {
|
1457
|
+
return indentStringCounts[a] - indentStringCounts[b];
|
1458
|
+
})[0] || '\t'
|
1459
|
+
);
|
1460
|
+
}
|
1461
|
+
|
1462
|
+
indent(indentStr) {
|
1463
|
+
if (!arguments.length) {
|
1464
|
+
indentStr = this.getIndentString();
|
1465
|
+
}
|
1466
|
+
|
1467
|
+
if (indentStr === '') return this; // noop
|
1468
|
+
|
1469
|
+
let trailingNewline = !this.intro || this.intro.slice(-1) === '\n';
|
1470
|
+
|
1471
|
+
this.sources.forEach((source, i) => {
|
1472
|
+
const separator = source.separator !== undefined ? source.separator : this.separator;
|
1473
|
+
const indentStart = trailingNewline || (i > 0 && /\r?\n$/.test(separator));
|
1474
|
+
|
1475
|
+
source.content.indent(indentStr, {
|
1476
|
+
exclude: source.indentExclusionRanges,
|
1477
|
+
indentStart, //: trailingNewline || /\r?\n$/.test( separator ) //true///\r?\n/.test( separator )
|
1478
|
+
});
|
1479
|
+
|
1480
|
+
trailingNewline = source.content.lastChar() === '\n';
|
1481
|
+
});
|
1482
|
+
|
1483
|
+
if (this.intro) {
|
1484
|
+
this.intro =
|
1485
|
+
indentStr +
|
1486
|
+
this.intro.replace(/^[^\n]/gm, (match, index) => {
|
1487
|
+
return index > 0 ? indentStr + match : match;
|
1488
|
+
});
|
1489
|
+
}
|
1490
|
+
|
1491
|
+
return this;
|
1492
|
+
}
|
1493
|
+
|
1494
|
+
prepend(str) {
|
1495
|
+
this.intro = str + this.intro;
|
1496
|
+
return this;
|
1497
|
+
}
|
1498
|
+
|
1499
|
+
toString() {
|
1500
|
+
const body = this.sources
|
1501
|
+
.map((source, i) => {
|
1502
|
+
const separator = source.separator !== undefined ? source.separator : this.separator;
|
1503
|
+
const str = (i > 0 ? separator : '') + source.content.toString();
|
1504
|
+
|
1505
|
+
return str;
|
1506
|
+
})
|
1507
|
+
.join('');
|
1508
|
+
|
1509
|
+
return this.intro + body;
|
1510
|
+
}
|
1511
|
+
|
1512
|
+
isEmpty() {
|
1513
|
+
if (this.intro.length && this.intro.trim()) return false;
|
1514
|
+
if (this.sources.some((source) => !source.content.isEmpty())) return false;
|
1515
|
+
return true;
|
1516
|
+
}
|
1517
|
+
|
1518
|
+
length() {
|
1519
|
+
return this.sources.reduce(
|
1520
|
+
(length, source) => length + source.content.length(),
|
1521
|
+
this.intro.length,
|
1522
|
+
);
|
1523
|
+
}
|
1524
|
+
|
1525
|
+
trimLines() {
|
1526
|
+
return this.trim('[\\r\\n]');
|
1527
|
+
}
|
1528
|
+
|
1529
|
+
trim(charType) {
|
1530
|
+
return this.trimStart(charType).trimEnd(charType);
|
1531
|
+
}
|
1532
|
+
|
1533
|
+
trimStart(charType) {
|
1534
|
+
const rx = new RegExp('^' + (charType || '\\s') + '+');
|
1535
|
+
this.intro = this.intro.replace(rx, '');
|
1536
|
+
|
1537
|
+
if (!this.intro) {
|
1538
|
+
let source;
|
1539
|
+
let i = 0;
|
1540
|
+
|
1541
|
+
do {
|
1542
|
+
source = this.sources[i++];
|
1543
|
+
if (!source) {
|
1544
|
+
break;
|
1545
|
+
}
|
1546
|
+
} while (!source.content.trimStartAborted(charType));
|
1547
|
+
}
|
1548
|
+
|
1549
|
+
return this;
|
1550
|
+
}
|
1551
|
+
|
1552
|
+
trimEnd(charType) {
|
1553
|
+
const rx = new RegExp((charType || '\\s') + '+$');
|
1554
|
+
|
1555
|
+
let source;
|
1556
|
+
let i = this.sources.length - 1;
|
1557
|
+
|
1558
|
+
do {
|
1559
|
+
source = this.sources[i--];
|
1560
|
+
if (!source) {
|
1561
|
+
this.intro = this.intro.replace(rx, '');
|
1562
|
+
break;
|
1563
|
+
}
|
1564
|
+
} while (!source.content.trimEndAborted(charType));
|
1565
|
+
|
1566
|
+
return this;
|
1567
|
+
}
|
1568
|
+
}
|
1569
|
+
|
1570
|
+
MagicString.Bundle = Bundle;
|
1571
|
+
MagicString.SourceMap = SourceMap;
|
1572
|
+
MagicString.default = MagicString; // work around TypeScript bug https://github.com/Rich-Harris/magic-string/pull/121
|
1573
|
+
|
1574
|
+
module.exports = MagicString;
|
1575
|
+
//# sourceMappingURL=magic-string.cjs.js.map
|