filepond 5.0.0-beta.2 → 5.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -4
- package/cdn/assets/index.js +1 -1
- package/cdn/dev/index.js +1 -0
- package/cdn/extensions/blob-loader.js +1 -1
- package/cdn/extensions/canvas-loader.js +1 -1
- package/cdn/extensions/chunked-upload-store.js +1 -1
- package/cdn/extensions/clipboard-source.js +1 -1
- package/cdn/extensions/console-view.js +1 -1
- package/cdn/extensions/data-transfer-loader.js +1 -1
- package/cdn/extensions/data-url-store.js +1 -1
- package/cdn/extensions/drag-drop-source.js +1 -1
- package/cdn/extensions/dropbox-source.js +1 -1
- package/cdn/extensions/entry-list-view.js +1 -1
- package/cdn/extensions/file-extension-validator.js +1 -1
- package/cdn/extensions/file-input-source.js +1 -1
- package/cdn/extensions/file-input-store.js +1 -1
- package/cdn/extensions/file-mime-type-validator.js +1 -1
- package/cdn/extensions/file-name-transform.js +1 -1
- package/cdn/extensions/file-name-validator.js +1 -1
- package/cdn/extensions/file-size-validator.js +1 -1
- package/cdn/extensions/form-post-store.js +1 -1
- package/cdn/extensions/image-bitmap-transform.js +1 -0
- package/cdn/extensions/index.js +1 -1
- package/cdn/extensions/list-count-validator.js +1 -1
- package/cdn/extensions/list-size-validator.js +1 -1
- package/cdn/extensions/media-resolution-validator.js +1 -1
- package/cdn/extensions/object-url-store.js +1 -1
- package/cdn/extensions/simulated-loader.js +1 -1
- package/cdn/extensions/simulated-store.js +1 -1
- package/cdn/extensions/text-input-store.js +1 -1
- package/cdn/extensions/url-loader.js +1 -1
- package/cdn/extensions/value-callback-store.js +1 -1
- package/cdn/index.js +1 -7
- package/cdn/locales/ar-ar.js +72 -48
- package/cdn/locales/bn-bd.js +72 -48
- package/cdn/locales/cs-cz.js +83 -59
- package/cdn/locales/da-dk.js +74 -50
- package/cdn/locales/de-de.js +72 -42
- package/cdn/locales/el-gr.js +72 -48
- package/cdn/locales/en-gb.js +85 -62
- package/cdn/locales/es-es.js +69 -39
- package/cdn/locales/fi-fi.js +69 -45
- package/cdn/locales/fr-fr.js +78 -48
- package/cdn/locales/hi-in.js +72 -42
- package/cdn/locales/hu-hu.js +66 -42
- package/cdn/locales/index.js +1 -1
- package/cdn/locales/is-is.js +71 -47
- package/cdn/locales/it-it.js +73 -43
- package/cdn/locales/ja-jp.js +72 -42
- package/cdn/locales/ko-kr.js +72 -42
- package/cdn/locales/nb-no.js +74 -44
- package/cdn/locales/nl-nl.js +71 -48
- package/cdn/locales/pl-pl.js +76 -52
- package/cdn/locales/pt-pt.js +71 -41
- package/cdn/locales/sv-se.js +73 -43
- package/cdn/locales/tr-tr.js +83 -59
- package/cdn/locales/uk-ua.js +72 -48
- package/cdn/locales/vi-vn.js +82 -58
- package/cdn/locales/zh-cn.js +72 -42
- package/cdn/main.js +7 -0
- package/cdn/templates/entry.js +1 -1
- package/cdn/templates/helpers.js +1 -1
- package/cdn/templates/index.js +1 -1
- package/cdn/templates/media.js +1 -1
- package/cdn/workers/httpRequest.js +45 -0
- package/cdn/workers/httpRequestWorker.js +37 -0
- package/cdn/workers/readFile.js +14 -0
- package/cdn/workers/readFileWorker.js +6 -0
- package/cdn/workers/transformImage.js +16 -0
- package/cdn/workers/transformImageWorker.js +8 -0
- package/esm/assets/index.js +1 -1
- package/esm/common/console.js +1 -1
- package/esm/common/entry.js +1 -1
- package/esm/common/perceivedPerformanceProxy.js +1 -1
- package/esm/common/readEntriesFromDataTransfer.js +1 -1
- package/esm/common/ssr.js +1 -1
- package/esm/common/status.js +1 -1
- package/esm/core/entryTree.js +142 -133
- package/esm/core/extensionManager.js +89 -86
- package/esm/core/taskScheduler.js +78 -97
- package/esm/dev/index.js +122 -0
- package/esm/elements/FilePondDefault/index.css.js +2 -2
- package/esm/elements/FilePondDefault/index.js +164 -125
- package/esm/elements/FilePondDropArea/index.css.js +1 -1
- package/esm/elements/FilePondDropArea/index.js +1 -1
- package/esm/elements/FilePondDropArea/index.svelte.js +38 -40
- package/esm/elements/FilePondDropIndicator/index.css.js +1 -1
- package/esm/elements/FilePondDropIndicator/index.js +1 -1
- package/esm/elements/FilePondDropIndicator/index.svelte.js +65 -67
- package/esm/elements/FilePondEntryList/components/Entry/index.css.js +2 -2
- package/esm/elements/FilePondEntryList/components/Entry/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/Entry/index.svelte.js +37 -37
- package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.css.js +2 -2
- package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.js +1 -2
- package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.svelte.js +115 -86
- package/esm/elements/FilePondEntryList/components/EntryList/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryList/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryList/index.svelte.js +159 -154
- package/esm/elements/FilePondEntryList/components/EntryListItem/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryListItem/index.js +1 -2
- package/esm/elements/FilePondEntryList/components/EntryListItem/index.svelte.js +70 -46
- package/esm/elements/FilePondEntryList/components/EntryListItemPlaceholder/index.svelte.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryStatus/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/EntryStatus/index.js +1 -2
- package/esm/elements/FilePondEntryList/components/EntryStatus/index.svelte.js +62 -62
- package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRenderer.svelte.js +65 -60
- package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRendererCache.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaImage/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaImage/index.js +2 -1
- package/esm/elements/FilePondEntryList/components/MediaImage/index.svelte.js +91 -83
- package/esm/elements/FilePondEntryList/components/MediaPane/index.css.js +2 -2
- package/esm/elements/FilePondEntryList/components/MediaPane/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaPane/index.svelte.js +33 -35
- package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.svelte.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaVideo/index.css.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaVideo/index.js +1 -1
- package/esm/elements/FilePondEntryList/components/MediaVideo/index.svelte.js +88 -88
- package/esm/elements/FilePondEntryList/contexts/appContext.js +1 -1
- package/esm/elements/FilePondEntryList/contexts/dragContext.js +1 -1
- package/esm/elements/FilePondEntryList/contexts/dropContext.js +1 -1
- package/esm/elements/FilePondEntryList/contexts/entryContext.js +1 -1
- package/esm/elements/FilePondEntryList/contexts/springElementTreeContext.js +1 -1
- package/esm/elements/FilePondEntryList/index.css.js +2 -2
- package/esm/elements/FilePondEntryList/index.js +11 -14
- package/esm/elements/FilePondEntryList/index.svelte.js +351 -271
- package/esm/elements/FilePondInput/index.css.js +3 -3
- package/esm/elements/FilePondInput/index.js +252 -191
- package/esm/elements/FilePondSvelteComponent/index.svelte.js +11 -11
- package/esm/elements/attachments/dragarea.js +62 -63
- package/esm/elements/attachments/droparea.js +1 -1
- package/esm/elements/attachments/measurable.js +1 -1
- package/esm/elements/attachments/resizable.js +1 -1
- package/esm/elements/attachments/transitions.js +1 -1
- package/esm/elements/common/animationGuard.js +1 -1
- package/esm/elements/common/animationPreference.svelte.js +35 -41
- package/esm/elements/common/dragDrop.js +1 -1
- package/esm/elements/common/event.js +1 -1
- package/esm/elements/common/extendStyles.js +1 -1
- package/esm/elements/common/getClosestElement.js +1 -1
- package/esm/elements/common/html.js +4 -4
- package/esm/elements/common/nodeTree.js +9 -9
- package/esm/elements/common/store.svelte.js +1 -1
- package/esm/elements/common/string.js +75 -55
- package/esm/elements/common/transition.js +1 -1
- package/esm/elements/components/BooleanInput/index.css.js +1 -1
- package/esm/elements/components/BooleanInput/index.js +1 -1
- package/esm/elements/components/BooleanInput/index.svelte.js +31 -33
- package/esm/elements/components/Button/index.css.js +2 -2
- package/esm/elements/components/Button/index.js +1 -1
- package/esm/elements/components/Button/index.svelte.js +49 -49
- package/esm/elements/components/ElementPane/index.css.js +1 -1
- package/esm/elements/components/ElementPane/index.js +1 -1
- package/esm/elements/components/ElementPane/index.svelte.js +1 -1
- package/esm/elements/components/ElementSkeleton/index.css.js +1 -1
- package/esm/elements/components/ElementSkeleton/index.js +1 -1
- package/esm/elements/components/ElementSkeleton/index.svelte.js +1 -1
- package/esm/elements/components/FilenameInput/index.css.js +2 -2
- package/esm/elements/components/FilenameInput/index.js +1 -1
- package/esm/elements/components/FilenameInput/index.svelte.js +1 -1
- package/esm/elements/components/NodeList/index.svelte.js +174 -200
- package/esm/elements/components/ProgressIndicator/index.css.js +2 -2
- package/esm/elements/components/ProgressIndicator/index.js +1 -1
- package/esm/elements/components/ProgressIndicator/index.svelte.js +98 -124
- package/esm/elements/components/RangeInput/index.css.js +2 -2
- package/esm/elements/components/RangeInput/index.js +1 -1
- package/esm/elements/components/RangeInput/index.svelte.js +86 -85
- package/esm/elements/components/SpringElement/index.svelte.js +91 -90
- package/esm/elements/components/TextInput/index.css.js +1 -1
- package/esm/elements/components/TextInput/index.js +1 -1
- package/esm/elements/components/TextInput/index.svelte.js +25 -27
- package/esm/extensions/blob-loader.js +1 -1
- package/esm/extensions/canvas-loader.js +1 -1
- package/esm/extensions/chunked-upload-store.js +1 -1
- package/esm/extensions/clipboard-source.js +1 -1
- package/esm/extensions/common/createExtension.js +38 -37
- package/esm/extensions/common/createStoreExtension.js +1 -1
- package/esm/extensions/common/createTransformExtension.js +1 -1
- package/esm/extensions/common/createValidatorExtension.js +1 -1
- package/esm/extensions/console-view.js +36 -33
- package/esm/extensions/data-transfer-loader.js +1 -1
- package/esm/extensions/data-url-store.js +24 -19
- package/esm/extensions/drag-drop-source.js +1 -1
- package/esm/extensions/dropbox-source.js +1 -1
- package/esm/extensions/entry-list-view.js +35 -29
- package/esm/extensions/file-extension-validator.js +1 -1
- package/esm/extensions/file-input-source.js +1 -1
- package/esm/extensions/file-input-store.js +1 -1
- package/esm/extensions/file-mime-type-validator.js +21 -17
- package/esm/extensions/file-name-transform.js +1 -1
- package/esm/extensions/file-name-validator.js +1 -1
- package/esm/extensions/file-size-validator.js +33 -22
- package/esm/extensions/form-post-store.js +1 -1
- package/esm/extensions/image-bitmap-transform.js +109 -0
- package/esm/extensions/index.js +23 -21
- package/esm/extensions/list-count-validator.js +21 -21
- package/esm/extensions/list-size-validator.js +42 -31
- package/esm/extensions/media-resolution-validator.js +57 -47
- package/esm/extensions/object-url-store.js +1 -1
- package/esm/extensions/simulated-loader.js +74 -65
- package/esm/extensions/simulated-store.js +1 -1
- package/esm/extensions/text-input-store.js +1 -1
- package/esm/extensions/url-loader.js +74 -71
- package/esm/extensions/value-callback-store.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locales/ar-ar.js +72 -48
- package/esm/locales/bn-bd.js +72 -48
- package/esm/locales/cs-cz.js +83 -59
- package/esm/locales/da-dk.js +74 -50
- package/esm/locales/de-de.js +72 -42
- package/esm/locales/el-gr.js +72 -48
- package/esm/locales/en-gb.js +85 -62
- package/esm/locales/es-es.js +69 -39
- package/esm/locales/fi-fi.js +69 -45
- package/esm/locales/fr-fr.js +78 -48
- package/esm/locales/hi-in.js +72 -42
- package/esm/locales/hu-hu.js +66 -42
- package/esm/locales/index.js +1 -1
- package/esm/locales/is-is.js +71 -47
- package/esm/locales/it-it.js +73 -43
- package/esm/locales/ja-jp.js +72 -42
- package/esm/locales/ko-kr.js +72 -42
- package/esm/locales/nb-no.js +74 -44
- package/esm/locales/nl-nl.js +71 -48
- package/esm/locales/pl-pl.js +76 -52
- package/esm/locales/pt-pt.js +71 -41
- package/esm/locales/sv-se.js +73 -43
- package/esm/locales/tr-tr.js +83 -59
- package/esm/locales/uk-ua.js +72 -48
- package/esm/locales/vi-vn.js +82 -58
- package/esm/locales/zh-cn.js +72 -42
- package/esm/svelte/svelte/src/constants.js +13 -12
- package/esm/svelte/svelte/src/internal/client/constants.js +29 -24
- package/esm/svelte/svelte/src/internal/client/context.js +33 -28
- package/esm/svelte/svelte/src/internal/client/dom/blocks/boundary.js +185 -126
- package/esm/svelte/svelte/src/internal/client/dom/blocks/branches.js +42 -43
- package/esm/svelte/svelte/src/internal/client/dom/blocks/each.js +175 -150
- package/esm/svelte/svelte/src/internal/client/dom/blocks/html.js +55 -32
- package/esm/svelte/svelte/src/internal/client/dom/blocks/if.js +12 -12
- package/esm/svelte/svelte/src/internal/client/dom/blocks/svelte-element.js +17 -17
- package/esm/svelte/svelte/src/internal/client/dom/elements/attributes.js +111 -113
- package/esm/svelte/svelte/src/internal/client/dom/elements/bindings/this.js +29 -16
- package/esm/svelte/svelte/src/internal/client/dom/elements/events.js +65 -60
- package/esm/svelte/svelte/src/internal/client/dom/elements/transitions.js +54 -54
- package/esm/svelte/svelte/src/internal/client/dom/operations.js +30 -22
- package/esm/svelte/svelte/src/internal/client/dom/reconciler.js +19 -4
- package/esm/svelte/svelte/src/internal/client/error-handling.js +17 -17
- package/esm/svelte/svelte/src/internal/client/errors.js +24 -20
- package/esm/svelte/svelte/src/internal/client/proxy.js +1 -1
- package/esm/svelte/svelte/src/internal/client/reactivity/async.js +60 -40
- package/esm/svelte/svelte/src/internal/client/reactivity/batch.js +273 -236
- package/esm/svelte/svelte/src/internal/client/reactivity/deriveds.js +110 -84
- package/esm/svelte/svelte/src/internal/client/reactivity/effects.js +160 -157
- package/esm/svelte/svelte/src/internal/client/reactivity/props.js +2 -1
- package/esm/svelte/svelte/src/internal/client/reactivity/sources.js +69 -70
- package/esm/svelte/svelte/src/internal/client/reactivity/status.js +12 -0
- package/esm/svelte/svelte/src/internal/client/reactivity/utils.js +16 -0
- package/esm/svelte/svelte/src/internal/client/render.js +68 -64
- package/esm/svelte/svelte/src/internal/client/runtime.js +174 -170
- package/esm/svelte/svelte/src/internal/shared/attributes.js +32 -32
- package/esm/svelte/svelte/src/internal/shared/utils.js +16 -15
- package/esm/svelte/svelte/src/motion/spring.js +7 -7
- package/esm/svelte/svelte/src/reactivity/map.js +17 -21
- package/esm/templates/entry.js +194 -159
- package/esm/templates/helpers.js +85 -75
- package/esm/templates/index.js +1 -1
- package/esm/templates/media.js +163 -131
- package/esm/utils/array.js +1 -1
- package/esm/utils/bounds.js +1 -1
- package/esm/utils/cache.js +1 -1
- package/esm/utils/canvasToBlob.js +1 -1
- package/esm/utils/date.js +1 -1
- package/esm/utils/debounce.js +1 -1
- package/esm/utils/dom.js +84 -74
- package/esm/utils/file.js +82 -69
- package/esm/utils/functionToBlob.js +1 -1
- package/esm/utils/keyboard.js +34 -0
- package/esm/utils/math.js +14 -7
- package/esm/utils/media.js +1 -1
- package/esm/utils/number.js +11 -16
- package/esm/utils/object.js +1 -1
- package/esm/utils/objectURL.js +1 -1
- package/esm/utils/placeholder.js +1 -1
- package/esm/utils/poly.js +1 -1
- package/esm/utils/pubsub.js +1 -1
- package/esm/utils/rect.js +39 -30
- package/esm/utils/size.js +1 -1
- package/esm/utils/sleep.js +1 -1
- package/esm/utils/string.js +25 -21
- package/esm/utils/support.js +5 -6
- package/esm/utils/test.js +1 -1
- package/esm/utils/thread.js +50 -43
- package/esm/utils/tree.js +1 -1
- package/esm/utils/url.js +2 -2
- package/esm/utils/vector.js +1 -1
- package/esm/utils/window.js +1 -1
- package/esm/utils/xhr.js +88 -113
- package/esm/workers/httpRequest.js +45 -0
- package/esm/workers/httpRequestWorker.js +37 -0
- package/esm/workers/readFile.js +14 -0
- package/esm/workers/readFileWorker.js +6 -0
- package/esm/workers/transformImage.js +16 -0
- package/esm/workers/transformImageWorker.js +8 -0
- package/package.json +17 -12
- package/types/core/entryTree.d.ts +6 -2
- package/types/core/extensionManager.d.ts +16 -2
- package/types/core/taskScheduler.d.ts +2 -2
- package/types/dev/index.d.ts +11 -3
- package/types/elements/FilePondDefault/index.d.ts +15 -5
- package/types/elements/FilePondEntryList/components/MediaImage/index.d.ts +1 -1
- package/types/elements/FilePondEntryList/components/MediaVideo/index.d.ts +1 -1
- package/types/elements/FilePondEntryList/contexts/appContext.d.ts +1 -0
- package/types/elements/FilePondEntryList/contexts/entryContext.d.ts +1 -0
- package/types/elements/FilePondEntryList/index.d.ts +10 -11
- package/types/elements/FilePondInput/index.d.ts +22 -11
- package/types/elements/common/animationPreference.svelte.d.ts +6 -3
- package/types/elements/common/nodeTree.d.ts +1 -1
- package/types/elements/common/string.d.ts +1 -1
- package/types/extensions/common/createTransformExtension.d.ts +1 -1
- package/types/extensions/data-url-store.d.ts +2 -0
- package/types/extensions/file-name-transform.d.ts +1 -1
- package/types/extensions/file-size-validator.d.ts +2 -0
- package/types/extensions/image-bitmap-transform.d.ts +32 -0
- package/types/extensions/index.d.ts +1 -0
- package/types/extensions/list-size-validator.d.ts +2 -0
- package/types/extensions/simulated-loader.d.ts +2 -0
- package/types/extensions/simulated-store.d.ts +1 -1
- package/types/extensions/url-loader.d.ts +2 -0
- package/types/locales/ar-ar.d.ts +101 -76
- package/types/locales/bn-bd.d.ts +101 -76
- package/types/locales/cs-cz.d.ts +101 -76
- package/types/locales/da-dk.d.ts +101 -76
- package/types/locales/de-de.d.ts +101 -76
- package/types/locales/el-gr.d.ts +101 -76
- package/types/locales/en-gb.d.ts +102 -82
- package/types/locales/es-es.d.ts +101 -76
- package/types/locales/fi-fi.d.ts +101 -76
- package/types/locales/fr-fr.d.ts +101 -76
- package/types/locales/hi-in.d.ts +101 -76
- package/types/locales/hu-hu.d.ts +101 -76
- package/types/locales/is-is.d.ts +101 -76
- package/types/locales/it-it.d.ts +101 -76
- package/types/locales/ja-jp.d.ts +101 -76
- package/types/locales/ko-kr.d.ts +101 -76
- package/types/locales/nb-no.d.ts +101 -76
- package/types/locales/nl-nl.d.ts +101 -76
- package/types/locales/pl-pl.d.ts +101 -76
- package/types/locales/pt-pt.d.ts +101 -76
- package/types/locales/sv-se.d.ts +101 -76
- package/types/locales/tr-tr.d.ts +101 -76
- package/types/locales/uk-ua.d.ts +101 -76
- package/types/locales/vi-vn.d.ts +101 -76
- package/types/locales/zh-cn.d.ts +101 -76
- package/types/templates/entry.d.ts +15 -16
- package/types/templates/helpers.d.ts +5 -1
- package/types/templates/media.d.ts +43 -6
- package/types/types/index.d.ts +9 -15
- package/types/utils/file.d.ts +7 -15
- package/types/utils/keyboard.d.ts +5 -0
- package/types/utils/rect.d.ts +5 -0
- package/types/utils/string.d.ts +1 -0
- package/types/utils/thread.d.ts +6 -0
- package/types/utils/xhr.d.ts +1 -0
- package/types/workers/httpRequest.d.ts +23 -0
- package/types/workers/readFile.d.ts +9 -0
- package/types/workers/transformImage.d.ts +6 -0
- package/types/elements/FilePondEntryList/components/EntryContext/index.d.ts +0 -1
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { deferred as
|
|
3
|
-
import { is_dirty as
|
|
4
|
-
import { effect_update_depth_exceeded as
|
|
5
|
-
import { queue_micro_task as
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { DIRTY as v, MAYBE_DIRTY as T, CLEAN as h, INERT as w, EFFECT as D, BLOCK_EFFECT as x, ERROR_VALUE as j, RENDER_EFFECT as z, MANAGED_EFFECT as G, REACTION_RAN as H, ROOT_EFFECT as I, BRANCH_EFFECT as F, DERIVED as N, DESTROYED as g, ASYNC as K } from "../constants.js";
|
|
2
|
+
import { deferred as Z, includes as J } from "../../shared/utils.js";
|
|
3
|
+
import { is_dirty as Y, update_effect as y, active_effect as P, active_reaction as S } from "../runtime.js";
|
|
4
|
+
import { effect_update_depth_exceeded as Q } from "../errors.js";
|
|
5
|
+
import { queue_micro_task as k } from "../dom/task.js";
|
|
6
|
+
import { invoke_error_boundary as W } from "../error-handling.js";
|
|
7
|
+
import { old_values as L } from "./sources.js";
|
|
8
|
+
import { unlink_effect as X } from "./effects.js";
|
|
9
|
+
import { defer_effect as $ } from "./utils.js";
|
|
10
|
+
import { UNINITIALIZED as tt } from "../../../constants.js";
|
|
11
|
+
import { set_signal_status as d } from "./status.js";
|
|
10
12
|
const p = /* @__PURE__ */ new Set();
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
let u = null, m = null, C = null, b = !1, E = null, R = null;
|
|
14
|
+
var M = 0;
|
|
15
|
+
let et = 1;
|
|
16
|
+
class A {
|
|
17
|
+
// for debugging. TODO remove once async is stable
|
|
18
|
+
id = et++;
|
|
14
19
|
/**
|
|
15
20
|
* The current values of any sources that are updated in this batch
|
|
16
21
|
* They keys of this map are identical to `this.#previous`
|
|
@@ -26,18 +31,18 @@ class k {
|
|
|
26
31
|
/**
|
|
27
32
|
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
28
33
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
29
|
-
* @type {Set<() => void>}
|
|
34
|
+
* @type {Set<(batch: Batch) => void>}
|
|
30
35
|
*/
|
|
31
36
|
#s = /* @__PURE__ */ new Set();
|
|
32
37
|
/**
|
|
33
38
|
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
34
39
|
* @type {Set<(batch: Batch) => void>}
|
|
35
40
|
*/
|
|
36
|
-
#
|
|
41
|
+
#n = /* @__PURE__ */ new Set();
|
|
37
42
|
/**
|
|
38
43
|
* The number of async effects that are currently in flight
|
|
39
44
|
*/
|
|
40
|
-
#
|
|
45
|
+
#l = 0;
|
|
41
46
|
/**
|
|
42
47
|
* The number of async effects that are currently in flight, _not_ inside a pending boundary
|
|
43
48
|
*/
|
|
@@ -47,323 +52,355 @@ class k {
|
|
|
47
52
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
48
53
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
49
54
|
*/
|
|
50
|
-
#
|
|
55
|
+
#u = null;
|
|
51
56
|
/**
|
|
52
|
-
*
|
|
57
|
+
* The root effects that need to be flushed
|
|
53
58
|
* @type {Effect[]}
|
|
54
59
|
*/
|
|
55
|
-
#
|
|
60
|
+
#t = [];
|
|
56
61
|
/**
|
|
57
|
-
* Deferred effects that are
|
|
58
|
-
* @type {Effect
|
|
62
|
+
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
63
|
+
* @type {Set<Effect>}
|
|
59
64
|
*/
|
|
60
|
-
#
|
|
65
|
+
#r = /* @__PURE__ */ new Set();
|
|
61
66
|
/**
|
|
62
|
-
*
|
|
63
|
-
* is committed — we skip over these during `process`
|
|
67
|
+
* Deferred effects that are MAYBE_DIRTY
|
|
64
68
|
* @type {Set<Effect>}
|
|
65
69
|
*/
|
|
66
|
-
|
|
70
|
+
#e = /* @__PURE__ */ new Set();
|
|
71
|
+
/**
|
|
72
|
+
* A map of branches that still exist, but will be destroyed when this batch
|
|
73
|
+
* is committed — we skip over these during `process`.
|
|
74
|
+
* The value contains child effects that were dirty/maybe_dirty before being reset,
|
|
75
|
+
* so they can be rescheduled if the branch survives.
|
|
76
|
+
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
77
|
+
*/
|
|
78
|
+
#i = /* @__PURE__ */ new Map();
|
|
67
79
|
is_fork = !1;
|
|
68
|
-
|
|
80
|
+
#o = !1;
|
|
81
|
+
#a() {
|
|
69
82
|
return this.is_fork || this.#f > 0;
|
|
70
83
|
}
|
|
71
84
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @param {Effect
|
|
85
|
+
* Add an effect to the #skipped_branches map and reset its children
|
|
86
|
+
* @param {Effect} effect
|
|
74
87
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
skip_effect(t) {
|
|
89
|
+
this.#i.has(t) || this.#i.set(t, { d: [], m: [] });
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Remove an effect from the #skipped_branches map and reschedule
|
|
93
|
+
* any tracked dirty/maybe_dirty child effects
|
|
94
|
+
* @param {Effect} effect
|
|
95
|
+
*/
|
|
96
|
+
unskip_effect(t) {
|
|
97
|
+
var e = this.#i.get(t);
|
|
98
|
+
if (e) {
|
|
99
|
+
this.#i.delete(t);
|
|
100
|
+
for (var i of e.d)
|
|
101
|
+
d(i, v), this.schedule(i);
|
|
102
|
+
for (i of e.m)
|
|
103
|
+
d(i, T), this.schedule(i);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
#h() {
|
|
107
|
+
if (M++ > 1e3 && (p.delete(this), it()), !this.#a()) {
|
|
108
|
+
for (const n of this.#r)
|
|
109
|
+
this.#e.delete(n), d(n, v), this.schedule(n);
|
|
110
|
+
for (const n of this.#e)
|
|
111
|
+
d(n, T), this.schedule(n);
|
|
112
|
+
}
|
|
113
|
+
const t = this.#t;
|
|
114
|
+
this.#t = [], this.apply();
|
|
115
|
+
var e = E = [], i = [], r = R = [];
|
|
116
|
+
for (const n of t)
|
|
117
|
+
try {
|
|
118
|
+
this.#c(n, e, i);
|
|
119
|
+
} catch (l) {
|
|
120
|
+
throw V(n), l;
|
|
121
|
+
}
|
|
122
|
+
if (u = null, r.length > 0) {
|
|
123
|
+
var f = A.ensure();
|
|
124
|
+
for (const n of r)
|
|
125
|
+
f.schedule(n);
|
|
126
|
+
}
|
|
127
|
+
if (E = null, R = null, this.#a()) {
|
|
128
|
+
this.#d(i), this.#d(e);
|
|
129
|
+
for (const [n, l] of this.#i)
|
|
130
|
+
U(n, l);
|
|
131
|
+
} else {
|
|
132
|
+
this.#l === 0 && p.delete(this), this.#r.clear(), this.#e.clear();
|
|
133
|
+
for (const n of this.#s) n(this);
|
|
134
|
+
this.#s.clear(), O(i), O(e), this.#u?.resolve();
|
|
135
|
+
}
|
|
136
|
+
var o = (
|
|
137
|
+
/** @type {Batch | null} */
|
|
138
|
+
/** @type {unknown} */
|
|
139
|
+
u
|
|
140
|
+
);
|
|
141
|
+
if (this.#t.length > 0) {
|
|
142
|
+
const n = o ??= this;
|
|
143
|
+
n.#t.push(...this.#t.filter((l) => !n.#t.includes(l)));
|
|
144
|
+
}
|
|
145
|
+
o !== null && (p.add(o), o.#h()), p.has(this) || this.#p();
|
|
87
146
|
}
|
|
88
147
|
/**
|
|
89
148
|
* Traverse the effect tree, executing effects or stashing
|
|
90
149
|
* them for later execution as appropriate
|
|
91
150
|
* @param {Effect} root
|
|
92
|
-
* @param {
|
|
151
|
+
* @param {Effect[]} effects
|
|
152
|
+
* @param {Effect[]} render_effects
|
|
93
153
|
*/
|
|
94
|
-
#
|
|
95
|
-
|
|
96
|
-
for (var
|
|
97
|
-
var
|
|
98
|
-
if (
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
block_effects: []
|
|
104
|
-
}), !a && f.fn !== null) {
|
|
105
|
-
i ? f.f ^= d : (s & L) !== 0 ? t.effects.push(f) : M(f) && ((f.f & T) !== 0 && t.block_effects.push(f), y(f));
|
|
106
|
-
var n = f.first;
|
|
107
|
-
if (n !== null) {
|
|
108
|
-
f = n;
|
|
154
|
+
#c(t, e, i) {
|
|
155
|
+
t.f ^= h;
|
|
156
|
+
for (var r = t.first; r !== null; ) {
|
|
157
|
+
var f = r.f, o = (f & (F | I)) !== 0, n = o && (f & h) !== 0, l = n || (f & w) !== 0 || this.#i.has(r);
|
|
158
|
+
if (!l && r.fn !== null) {
|
|
159
|
+
o ? r.f ^= h : (f & D) !== 0 ? e.push(r) : Y(r) && ((f & x) !== 0 && this.#e.add(r), y(r));
|
|
160
|
+
var a = r.first;
|
|
161
|
+
if (a !== null) {
|
|
162
|
+
r = a;
|
|
109
163
|
continue;
|
|
110
164
|
}
|
|
111
165
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
166
|
+
for (; r !== null; ) {
|
|
167
|
+
var _ = r.next;
|
|
168
|
+
if (_ !== null) {
|
|
169
|
+
r = _;
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
r = r.parent;
|
|
173
|
+
}
|
|
116
174
|
}
|
|
117
175
|
}
|
|
118
176
|
/**
|
|
119
177
|
* @param {Effect[]} effects
|
|
120
178
|
*/
|
|
121
|
-
#
|
|
122
|
-
for (
|
|
123
|
-
(
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* @param {Value[] | null} deps
|
|
127
|
-
*/
|
|
128
|
-
#c(e) {
|
|
129
|
-
if (e !== null)
|
|
130
|
-
for (const t of e)
|
|
131
|
-
(t.f & g) === 0 || (t.f & D) === 0 || (t.f ^= D, this.#c(
|
|
132
|
-
/** @type {Derived} */
|
|
133
|
-
t.deps
|
|
134
|
-
));
|
|
179
|
+
#d(t) {
|
|
180
|
+
for (var e = 0; e < t.length; e += 1)
|
|
181
|
+
$(t[e], this.#r, this.#e);
|
|
135
182
|
}
|
|
136
183
|
/**
|
|
137
184
|
* Associate a change to a given source with the current
|
|
138
185
|
* batch, noting its previous and current values
|
|
139
186
|
* @param {Source} source
|
|
140
|
-
* @param {any}
|
|
187
|
+
* @param {any} old_value
|
|
141
188
|
*/
|
|
142
|
-
capture(
|
|
143
|
-
this.previous.has(
|
|
189
|
+
capture(t, e) {
|
|
190
|
+
e !== tt && !this.previous.has(t) && this.previous.set(t, e), (t.f & j) === 0 && (this.current.set(t, t.v), m?.set(t, t.v));
|
|
144
191
|
}
|
|
145
192
|
activate() {
|
|
146
|
-
|
|
193
|
+
u = this;
|
|
147
194
|
}
|
|
148
195
|
deactivate() {
|
|
149
|
-
|
|
196
|
+
u = null, m = null;
|
|
150
197
|
}
|
|
151
198
|
flush() {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
199
|
+
try {
|
|
200
|
+
b = !0, u = this, this.#h();
|
|
201
|
+
} finally {
|
|
202
|
+
M = 0, C = null, E = null, R = null, b = !1, u = null, m = null, L.clear();
|
|
203
|
+
}
|
|
157
204
|
}
|
|
158
205
|
discard() {
|
|
159
|
-
for (const
|
|
160
|
-
this.#
|
|
206
|
+
for (const t of this.#n) t(this);
|
|
207
|
+
this.#n.clear();
|
|
161
208
|
}
|
|
162
|
-
#
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
this
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
for (const [n, c] of this.current) {
|
|
186
|
-
if (i.current.has(n))
|
|
187
|
-
if (t && c !== i.current.get(n))
|
|
188
|
-
i.current.set(n, c);
|
|
189
|
-
else
|
|
190
|
-
continue;
|
|
191
|
-
o.push(n);
|
|
192
|
-
}
|
|
193
|
-
if (o.length === 0)
|
|
194
|
-
continue;
|
|
195
|
-
const a = [...i.current.keys()].filter((n) => !this.current.has(n));
|
|
196
|
-
if (a.length > 0) {
|
|
197
|
-
var s = u;
|
|
198
|
-
u = [];
|
|
199
|
-
const n = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
|
|
200
|
-
for (const w of o)
|
|
201
|
-
x(w, a, n, c);
|
|
202
|
-
if (u.length > 0) {
|
|
203
|
-
l = i, i.apply();
|
|
204
|
-
for (const w of u)
|
|
205
|
-
i.#o(w, f);
|
|
206
|
-
i.deactivate();
|
|
209
|
+
#p() {
|
|
210
|
+
for (const l of p) {
|
|
211
|
+
var t = l.id < this.id, e = [];
|
|
212
|
+
for (const [a, _] of this.current) {
|
|
213
|
+
if (l.current.has(a))
|
|
214
|
+
if (t && _ !== l.current.get(a))
|
|
215
|
+
l.current.set(a, _);
|
|
216
|
+
else
|
|
217
|
+
continue;
|
|
218
|
+
e.push(a);
|
|
219
|
+
}
|
|
220
|
+
if (e.length !== 0) {
|
|
221
|
+
var i = [...l.current.keys()].filter((a) => !this.current.has(a));
|
|
222
|
+
if (i.length > 0) {
|
|
223
|
+
l.activate();
|
|
224
|
+
var r = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map();
|
|
225
|
+
for (var o of e)
|
|
226
|
+
q(o, i, r, f);
|
|
227
|
+
if (l.#t.length > 0) {
|
|
228
|
+
l.apply();
|
|
229
|
+
for (var n of l.#t)
|
|
230
|
+
l.#c(n, [], []);
|
|
231
|
+
l.#t = [];
|
|
207
232
|
}
|
|
208
|
-
|
|
233
|
+
l.deactivate();
|
|
209
234
|
}
|
|
210
235
|
}
|
|
211
|
-
l = null, _ = e;
|
|
212
236
|
}
|
|
213
|
-
this.committed = !0, p.delete(this);
|
|
214
237
|
}
|
|
215
238
|
/**
|
|
216
239
|
*
|
|
217
240
|
* @param {boolean} blocking
|
|
218
241
|
*/
|
|
219
|
-
increment(
|
|
220
|
-
this.#
|
|
242
|
+
increment(t) {
|
|
243
|
+
this.#l += 1, t && (this.#f += 1);
|
|
221
244
|
}
|
|
222
245
|
/**
|
|
223
|
-
*
|
|
224
246
|
* @param {boolean} blocking
|
|
247
|
+
* @param {boolean} skip - whether to skip updates (because this is triggered by a stale reaction)
|
|
225
248
|
*/
|
|
226
|
-
decrement(e) {
|
|
227
|
-
this.#
|
|
249
|
+
decrement(t, e) {
|
|
250
|
+
this.#l -= 1, t && (this.#f -= 1), !(this.#o || e) && (this.#o = !0, k(() => {
|
|
251
|
+
this.#o = !1, this.flush();
|
|
252
|
+
}));
|
|
228
253
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
254
|
+
/**
|
|
255
|
+
* @param {Set<Effect>} dirty_effects
|
|
256
|
+
* @param {Set<Effect>} maybe_dirty_effects
|
|
257
|
+
*/
|
|
258
|
+
transfer_effects(t, e) {
|
|
259
|
+
for (const i of t)
|
|
260
|
+
this.#r.add(i);
|
|
261
|
+
for (const i of e)
|
|
262
|
+
this.#e.add(i);
|
|
263
|
+
t.clear(), e.clear();
|
|
235
264
|
}
|
|
236
|
-
/** @param {() => void} fn */
|
|
237
|
-
oncommit(
|
|
238
|
-
this.#s.add(
|
|
265
|
+
/** @param {(batch: Batch) => void} fn */
|
|
266
|
+
oncommit(t) {
|
|
267
|
+
this.#s.add(t);
|
|
239
268
|
}
|
|
240
269
|
/** @param {(batch: Batch) => void} fn */
|
|
241
|
-
ondiscard(
|
|
242
|
-
this.#
|
|
270
|
+
ondiscard(t) {
|
|
271
|
+
this.#n.add(t);
|
|
243
272
|
}
|
|
244
273
|
settled() {
|
|
245
|
-
return (this.#
|
|
274
|
+
return (this.#u ??= Z()).promise;
|
|
246
275
|
}
|
|
247
276
|
static ensure() {
|
|
248
|
-
if (
|
|
249
|
-
const
|
|
250
|
-
p.add(
|
|
251
|
-
|
|
252
|
-
});
|
|
277
|
+
if (u === null) {
|
|
278
|
+
const t = u = new A();
|
|
279
|
+
b || (p.add(u), k(() => {
|
|
280
|
+
u === t && t.flush();
|
|
281
|
+
}));
|
|
253
282
|
}
|
|
254
|
-
return
|
|
255
|
-
}
|
|
256
|
-
/** @param {() => void} task */
|
|
257
|
-
static enqueue(e) {
|
|
258
|
-
J(e);
|
|
283
|
+
return u;
|
|
259
284
|
}
|
|
260
285
|
apply() {
|
|
286
|
+
{
|
|
287
|
+
m = null;
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
261
290
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
* @param {Effect} effect
|
|
294
|
+
*/
|
|
295
|
+
schedule(t) {
|
|
296
|
+
if (C = t, t.b?.is_pending && (t.f & (D | z | G)) !== 0 && (t.f & H) === 0) {
|
|
297
|
+
t.b.defer_effect(t);
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
for (var e = t; e.parent !== null; ) {
|
|
301
|
+
e = e.parent;
|
|
302
|
+
var i = e.f;
|
|
303
|
+
if (E !== null && e === P && (S === null || (S.f & N) === 0))
|
|
304
|
+
return;
|
|
305
|
+
if ((i & (I | F)) !== 0) {
|
|
306
|
+
if ((i & h) === 0)
|
|
307
|
+
return;
|
|
308
|
+
e.f ^= h;
|
|
274
309
|
}
|
|
275
|
-
f.process(u), N.clear();
|
|
276
310
|
}
|
|
277
|
-
|
|
278
|
-
F = !1, A(r), C = null;
|
|
311
|
+
this.#t.push(e);
|
|
279
312
|
}
|
|
280
313
|
}
|
|
281
|
-
function
|
|
314
|
+
function it() {
|
|
282
315
|
try {
|
|
283
|
-
|
|
284
|
-
} catch (
|
|
285
|
-
|
|
316
|
+
Q();
|
|
317
|
+
} catch (s) {
|
|
318
|
+
W(s, C);
|
|
286
319
|
}
|
|
287
320
|
}
|
|
288
|
-
let
|
|
289
|
-
function O(
|
|
290
|
-
var
|
|
291
|
-
if (
|
|
292
|
-
for (var
|
|
293
|
-
var
|
|
294
|
-
if ((
|
|
295
|
-
|
|
296
|
-
for (const
|
|
297
|
-
if ((
|
|
298
|
-
const
|
|
299
|
-
let o =
|
|
321
|
+
let c = null;
|
|
322
|
+
function O(s) {
|
|
323
|
+
var t = s.length;
|
|
324
|
+
if (t !== 0) {
|
|
325
|
+
for (var e = 0; e < t; ) {
|
|
326
|
+
var i = s[e++];
|
|
327
|
+
if ((i.f & (g | w)) === 0 && Y(i) && (c = /* @__PURE__ */ new Set(), y(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && X(i), c?.size > 0)) {
|
|
328
|
+
L.clear();
|
|
329
|
+
for (const r of c) {
|
|
330
|
+
if ((r.f & (g | w)) !== 0) continue;
|
|
331
|
+
const f = [r];
|
|
332
|
+
let o = r.parent;
|
|
300
333
|
for (; o !== null; )
|
|
301
|
-
|
|
302
|
-
for (let
|
|
303
|
-
const
|
|
304
|
-
(
|
|
334
|
+
c.has(o) && (c.delete(o), f.push(o)), o = o.parent;
|
|
335
|
+
for (let n = f.length - 1; n >= 0; n--) {
|
|
336
|
+
const l = f[n];
|
|
337
|
+
(l.f & (g | w)) === 0 && y(l);
|
|
305
338
|
}
|
|
306
339
|
}
|
|
307
|
-
|
|
340
|
+
c.clear();
|
|
308
341
|
}
|
|
309
342
|
}
|
|
310
|
-
|
|
343
|
+
c = null;
|
|
311
344
|
}
|
|
312
345
|
}
|
|
313
|
-
function
|
|
314
|
-
if (!
|
|
315
|
-
for (const
|
|
316
|
-
const
|
|
317
|
-
(
|
|
346
|
+
function q(s, t, e, i) {
|
|
347
|
+
if (!e.has(s) && (e.add(s), s.reactions !== null))
|
|
348
|
+
for (const r of s.reactions) {
|
|
349
|
+
const f = r.f;
|
|
350
|
+
(f & N) !== 0 ? q(
|
|
318
351
|
/** @type {Derived} */
|
|
319
|
-
|
|
320
|
-
e,
|
|
352
|
+
r,
|
|
321
353
|
t,
|
|
322
|
-
|
|
323
|
-
|
|
354
|
+
e,
|
|
355
|
+
i
|
|
356
|
+
) : (f & (K | x)) !== 0 && (f & v) === 0 && B(r, t, i) && (d(r, v), rt(
|
|
324
357
|
/** @type {Effect} */
|
|
325
|
-
|
|
358
|
+
r
|
|
326
359
|
));
|
|
327
360
|
}
|
|
328
361
|
}
|
|
329
|
-
function
|
|
330
|
-
const
|
|
331
|
-
if (
|
|
332
|
-
if (
|
|
333
|
-
for (const
|
|
334
|
-
if (
|
|
362
|
+
function B(s, t, e) {
|
|
363
|
+
const i = e.get(s);
|
|
364
|
+
if (i !== void 0) return i;
|
|
365
|
+
if (s.deps !== null)
|
|
366
|
+
for (const r of s.deps) {
|
|
367
|
+
if (J.call(t, r))
|
|
335
368
|
return !0;
|
|
336
|
-
if ((
|
|
369
|
+
if ((r.f & N) !== 0 && B(
|
|
337
370
|
/** @type {Derived} */
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
371
|
+
r,
|
|
372
|
+
t,
|
|
373
|
+
e
|
|
341
374
|
))
|
|
342
|
-
return
|
|
375
|
+
return e.set(
|
|
343
376
|
/** @type {Derived} */
|
|
344
|
-
|
|
377
|
+
r,
|
|
345
378
|
!0
|
|
346
379
|
), !0;
|
|
347
380
|
}
|
|
348
|
-
return
|
|
381
|
+
return e.set(s, !1), !1;
|
|
349
382
|
}
|
|
350
|
-
function
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
e.f ^= d;
|
|
359
|
-
}
|
|
383
|
+
function rt(s) {
|
|
384
|
+
u.schedule(s);
|
|
385
|
+
}
|
|
386
|
+
function U(s, t) {
|
|
387
|
+
if (!((s.f & F) !== 0 && (s.f & h) !== 0)) {
|
|
388
|
+
(s.f & v) !== 0 ? t.d.push(s) : (s.f & T) !== 0 && t.m.push(s), d(s, h);
|
|
389
|
+
for (var e = s.first; e !== null; )
|
|
390
|
+
U(e, t), e = e.next;
|
|
360
391
|
}
|
|
361
|
-
|
|
392
|
+
}
|
|
393
|
+
function V(s) {
|
|
394
|
+
d(s, h);
|
|
395
|
+
for (var t = s.first; t !== null; )
|
|
396
|
+
V(t), t = t.next;
|
|
362
397
|
}
|
|
363
398
|
export {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
399
|
+
A as Batch,
|
|
400
|
+
m as batch_values,
|
|
401
|
+
E as collected_effects,
|
|
402
|
+
u as current_batch,
|
|
403
|
+
c as eager_block_effects,
|
|
404
|
+
R as legacy_updates,
|
|
405
|
+
rt as schedule_effect
|
|
369
406
|
};
|