@amazon/vinyl 3.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +972 -954
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +646 -619
- package/dist/index.js.map +4 -4
- package/dist/test/benchmark.js.map +2 -2
- package/dist/test/integ.es5.js +357 -353
- package/dist/test/integ.js +2251 -1852
- package/dist/test/integ.js.map +4 -4
- package/dist/test/jasmine.css +50 -3
- package/dist/test/jasmineHtml.es5.js +195 -155
- package/dist/test/jasmineHtml.js +2938 -1833
- package/dist/test/jasmineHtml.js.map +3 -3
- package/dist/types/current/ad/AdControllerImpl.d.ts.map +1 -1
- package/dist/types/current/ad/AdControllerImpl.js +4 -1
- package/dist/types/current/ad/discoverHlsInterstitials.d.ts.map +1 -1
- package/dist/types/current/ad/discoverHlsInterstitials.js +2 -2
- package/dist/types/current/drm/DrmControllerImpl.d.ts +2 -0
- package/dist/types/current/drm/DrmControllerImpl.d.ts.map +1 -1
- package/dist/types/current/drm/DrmControllerImpl.js +56 -48
- package/dist/types/current/drm/licenseProvider/defaultLicenseProvider.d.ts.map +1 -1
- package/dist/types/current/drm/licenseProvider/defaultLicenseProvider.js +2 -2
- package/dist/types/current/index.d.ts +3 -6
- package/dist/types/current/index.d.ts.map +1 -1
- package/dist/types/current/index.js +3 -6
- package/dist/types/current/playback/PlaybackControllerImpl.d.ts +15 -0
- package/dist/types/current/playback/PlaybackControllerImpl.d.ts.map +1 -1
- package/dist/types/current/playback/PlaybackControllerImpl.js +100 -9
- package/dist/types/current/playback/ReadonlyPlaybackController.d.ts +27 -1
- package/dist/types/current/playback/ReadonlyPlaybackController.d.ts.map +1 -1
- package/dist/types/current/playback/ReadonlyPlaybackController.js +16 -0
- package/dist/types/current/playback/createStallDetector.d.ts +43 -0
- package/dist/types/current/playback/createStallDetector.d.ts.map +1 -0
- package/dist/types/current/playback/createStallDetector.js +101 -0
- package/dist/types/current/playback/createStallMonitor.d.ts +45 -0
- package/dist/types/current/playback/createStallMonitor.d.ts.map +1 -0
- package/dist/types/current/playback/createStallMonitor.js +94 -0
- package/dist/types/current/streaming/AudioOptions.d.ts +27 -0
- package/dist/types/current/streaming/AudioOptions.d.ts.map +1 -1
- package/dist/types/current/streaming/AudioOptions.js +5 -1
- package/dist/types/current/streaming/ContentStream.d.ts +0 -5
- package/dist/types/current/streaming/ContentStream.d.ts.map +1 -1
- package/dist/types/current/streaming/ContentStream.js +0 -4
- package/dist/types/current/streaming/LoadMetric.d.ts.map +1 -1
- package/dist/types/current/streaming/StreamingEventMap.d.ts +1 -5
- package/dist/types/current/streaming/StreamingEventMap.d.ts.map +1 -1
- package/dist/types/current/streaming/StreamingEventMap.js +0 -1
- package/dist/types/current/streaming/buffering/BufferingController.d.ts +0 -11
- package/dist/types/current/streaming/buffering/BufferingController.d.ts.map +1 -1
- package/dist/types/current/streaming/buffering/BufferingController.js +0 -13
- package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.d.ts.map +1 -1
- package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.js +13 -4
- package/dist/types/current/text/SidecarTextTrackLoader.d.ts.map +1 -1
- package/dist/types/current/text/SidecarTextTrackLoader.js +4 -4
- package/dist/types/current/text/TextTrack.d.ts.map +1 -1
- package/dist/types/current/track/TrackController.d.ts.map +1 -1
- package/dist/types/current/track/TrackController.js +8 -2
- package/dist/types/current/track/createSegmentDataProvider.d.ts.map +1 -1
- package/dist/types/current/track/createSegmentDataProvider.js +6 -3
- package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.d.ts +10 -6
- package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.d.ts.map +1 -1
- package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.js +13 -8
- package/dist/types/current/track/dash/createDashFactories.d.ts +1 -1
- package/dist/types/current/track/dash/timeline/DashRepresentationSegmentProvider.d.ts.map +1 -1
- package/dist/types/current/track/dash/timeline/DashRepresentationSegmentProvider.js +71 -3
- package/dist/types/current/track/dash/urlDashManifestProvider.js +2 -2
- package/dist/types/current/track/dash/util/mpd.d.ts +6 -0
- package/dist/types/current/track/dash/util/mpd.d.ts.map +1 -1
- package/dist/types/current/track/dash/util/mpd.js +24 -3
- package/dist/types/current/track/filters/resourceTypeFilter.d.ts +4 -0
- package/dist/types/current/track/filters/resourceTypeFilter.d.ts.map +1 -1
- package/dist/types/current/track/filters/resourceTypeFilter.js +4 -0
- package/dist/types/current/track/filters/sampleRateFilter.d.ts +21 -7
- package/dist/types/current/track/filters/sampleRateFilter.d.ts.map +1 -1
- package/dist/types/current/track/filters/sampleRateFilter.js +42 -24
- package/dist/types/current/track/hls/createHlsFactories.d.ts +1 -1
- package/dist/types/current/track/hls/createUrlHlsManifestProvider.d.ts.map +1 -1
- package/dist/types/current/track/hls/createUrlHlsManifestProvider.js +3 -3
- package/dist/types/current/track/mse/MseTrack.d.ts +9 -17
- package/dist/types/current/track/mse/MseTrack.d.ts.map +1 -1
- package/dist/types/current/track/mse/MseTrack.js +29 -46
- package/dist/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/types/current/util/media/mimeType.d.ts +8 -0
- package/dist/types/current/util/media/mimeType.d.ts.map +1 -0
- package/dist/types/current/util/media/mimeType.js +13 -0
- package/dist/types/current/vinyl/createVinylFactories.d.ts +7 -16
- package/dist/types/current/vinyl/createVinylFactories.d.ts.map +1 -1
- package/dist/types/current/vinyl/createVinylFactories.js +2 -12
- package/dist/types/ts3.7/drm/DrmControllerImpl.d.ts +2 -0
- package/dist/types/ts3.7/index.d.ts +3 -6
- package/dist/types/ts3.7/playback/PlaybackControllerImpl.d.ts +15 -0
- package/dist/types/ts3.7/playback/ReadonlyPlaybackController.d.ts +28 -0
- package/dist/types/ts3.7/playback/createStallDetector.d.ts +43 -0
- package/dist/types/ts3.7/playback/createStallMonitor.d.ts +45 -0
- package/dist/types/ts3.7/streaming/AudioOptions.d.ts +27 -0
- package/dist/types/ts3.7/streaming/ContentStream.d.ts +0 -5
- package/dist/types/ts3.7/streaming/StreamingEventMap.d.ts +0 -5
- package/dist/types/ts3.7/streaming/buffering/BufferingController.d.ts +0 -11
- package/dist/types/ts3.7/track/dash/DashMediaQualityMetadataResolver.d.ts +10 -6
- package/dist/types/ts3.7/track/dash/createDashFactories.d.ts +1 -1
- package/dist/types/ts3.7/track/dash/util/mpd.d.ts +6 -0
- package/dist/types/ts3.7/track/filters/resourceTypeFilter.d.ts +4 -0
- package/dist/types/ts3.7/track/filters/sampleRateFilter.d.ts +21 -7
- package/dist/types/ts3.7/track/hls/createHlsFactories.d.ts +1 -1
- package/dist/types/ts3.7/track/mse/MseTrack.d.ts +9 -17
- package/dist/types/ts3.7/util/media/mimeType.d.ts +8 -0
- package/dist/types/ts3.7/vinyl/createVinylFactories.d.ts +7 -16
- package/dist/types/ts4.1/drm/DrmControllerImpl.d.ts +2 -0
- package/dist/types/ts4.1/index.d.ts +3 -6
- package/dist/types/ts4.1/playback/PlaybackControllerImpl.d.ts +15 -0
- package/dist/types/ts4.1/playback/ReadonlyPlaybackController.d.ts +28 -0
- package/dist/types/ts4.1/playback/createStallDetector.d.ts +43 -0
- package/dist/types/ts4.1/playback/createStallMonitor.d.ts +45 -0
- package/dist/types/ts4.1/streaming/AudioOptions.d.ts +27 -0
- package/dist/types/ts4.1/streaming/ContentStream.d.ts +0 -5
- package/dist/types/ts4.1/streaming/StreamingEventMap.d.ts +0 -5
- package/dist/types/ts4.1/streaming/buffering/BufferingController.d.ts +0 -11
- package/dist/types/ts4.1/track/dash/DashMediaQualityMetadataResolver.d.ts +10 -6
- package/dist/types/ts4.1/track/dash/createDashFactories.d.ts +1 -1
- package/dist/types/ts4.1/track/dash/util/mpd.d.ts +6 -0
- package/dist/types/ts4.1/track/filters/resourceTypeFilter.d.ts +4 -0
- package/dist/types/ts4.1/track/filters/sampleRateFilter.d.ts +21 -7
- package/dist/types/ts4.1/track/hls/createHlsFactories.d.ts +1 -1
- package/dist/types/ts4.1/track/mse/MseTrack.d.ts +9 -17
- package/dist/types/ts4.1/util/media/mimeType.d.ts +8 -0
- package/dist/types/ts4.1/vinyl/createVinylFactories.d.ts +7 -16
- package/dist/types/ts4.7/drm/DrmControllerImpl.d.ts +2 -0
- package/dist/types/ts4.7/index.d.ts +3 -6
- package/dist/types/ts4.7/playback/PlaybackControllerImpl.d.ts +15 -0
- package/dist/types/ts4.7/playback/ReadonlyPlaybackController.d.ts +28 -0
- package/dist/types/ts4.7/playback/createStallDetector.d.ts +43 -0
- package/dist/types/ts4.7/playback/createStallMonitor.d.ts +45 -0
- package/dist/types/ts4.7/streaming/AudioOptions.d.ts +27 -0
- package/dist/types/ts4.7/streaming/ContentStream.d.ts +0 -5
- package/dist/types/ts4.7/streaming/StreamingEventMap.d.ts +0 -5
- package/dist/types/ts4.7/streaming/buffering/BufferingController.d.ts +0 -11
- package/dist/types/ts4.7/track/dash/DashMediaQualityMetadataResolver.d.ts +10 -6
- package/dist/types/ts4.7/track/dash/createDashFactories.d.ts +1 -1
- package/dist/types/ts4.7/track/dash/util/mpd.d.ts +6 -0
- package/dist/types/ts4.7/track/filters/resourceTypeFilter.d.ts +4 -0
- package/dist/types/ts4.7/track/filters/sampleRateFilter.d.ts +21 -7
- package/dist/types/ts4.7/track/hls/createHlsFactories.d.ts +1 -1
- package/dist/types/ts4.7/track/mse/MseTrack.d.ts +9 -17
- package/dist/types/ts4.7/util/media/mimeType.d.ts +8 -0
- package/dist/types/ts4.7/vinyl/createVinylFactories.d.ts +7 -16
- package/dist/unit/types/current/ad/AdControllerImpl.test.js +27 -1
- package/dist/unit/types/current/drm/DrmControllerImpl.test.js +93 -0
- package/dist/unit/types/current/index.d.ts +3 -4
- package/dist/unit/types/current/index.d.ts.map +1 -1
- package/dist/unit/types/current/index.js +3 -4
- package/dist/unit/types/current/playback/PlaybackControllerImpl.test.js +165 -0
- package/dist/unit/types/current/playback/createStallDetector.test.d.ts +2 -0
- package/dist/unit/types/current/playback/createStallDetector.test.d.ts.map +1 -0
- package/dist/unit/types/current/playback/createStallDetector.test.js +163 -0
- package/dist/unit/types/current/playback/createStallMonitor.test.d.ts +2 -0
- package/dist/unit/types/current/playback/createStallMonitor.test.d.ts.map +1 -0
- package/dist/unit/types/current/playback/createStallMonitor.test.js +125 -0
- package/dist/unit/types/current/streaming/ContentStream.test.js +0 -11
- package/dist/unit/types/current/streaming/MseTrack.test.js +47 -74
- package/dist/unit/types/current/streaming/abr/QualitySelectorImpl.test.js +1 -1
- package/dist/unit/types/current/streaming/buffering/BufferingController.test.js +0 -21
- package/dist/unit/types/current/streaming/createDefaultMediaTimelineTransformer.test.js +133 -0
- package/dist/unit/types/current/track/TrackController.test.js +61 -1
- package/dist/unit/types/current/track/createSegmentDataProvider.test.js +18 -0
- package/dist/unit/types/current/track/dash/DashMediaQualityMetadataResolver.test.js +46 -14
- package/dist/unit/types/current/track/dash/createSegmentControllerFactory.test.js +1 -0
- package/dist/unit/types/current/track/dash/timeline/DashRepresentationSegmentProvider.test.js +114 -0
- package/dist/unit/types/current/track/dash/util/mpd.test.js +37 -0
- package/dist/unit/types/current/track/filters/resourceTypeFilter.test.js +7 -0
- package/dist/unit/types/current/track/filters/sampleRateFilter.test.js +136 -34
- package/dist/unit/types/current/track/source/SourceObjectTrack.test.js +1 -1
- package/dist/unit/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/unit/types/current/util/media/mimeType.test.d.ts +2 -0
- package/dist/unit/types/current/util/media/mimeType.test.d.ts.map +1 -0
- package/dist/unit/types/current/util/media/mimeType.test.js +22 -0
- package/dist/unit/types/current/vinyl/createVinylFactories.test.js +2 -36
- package/dist/vinylTestUtil/index.js +6 -4
- package/dist/vinylTestUtil/index.js.map +2 -2
- package/dist/vinylTestUtil/types/current/assets/vinylTestAssets.d.ts +1 -0
- package/dist/vinylTestUtil/types/current/assets/vinylTestAssets.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/assets/vinylTestAssets.js +1 -0
- package/dist/vinylTestUtil/types/current/media/FrequencyAnalyzer.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/MockContentStream.d.ts +0 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/MockContentStream.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/MockContentStream.js +0 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockBufferingController.d.ts +0 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockBufferingController.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockBufferingController.js +0 -1
- package/dist/vinylTestUtil/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/vinylTestUtil/types/current/util/playback/eventPromises.js +1 -1
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackCanSeek.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackCanSeek.js +9 -1
- package/dist/vinylTestUtil/types/ts3.7/assets/vinylTestAssets.d.ts +1 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/MockContentStream.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/buffering/MockBufferingController.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts4.1/assets/vinylTestAssets.d.ts +1 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/MockContentStream.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/buffering/MockBufferingController.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts4.7/assets/vinylTestAssets.d.ts +1 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/MockContentStream.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/buffering/MockBufferingController.d.ts +0 -1
- package/docs/USAGE.md +29 -0
- package/package.json +11 -10
- package/dist/types/current/patch/media/HtmlMediaElementPatch.d.ts +0 -3
- package/dist/types/current/patch/media/HtmlMediaElementPatch.d.ts.map +0 -1
- package/dist/types/current/patch/media/HtmlMediaElementPatch.js +0 -5
- package/dist/types/current/patch/media/MediaElementPatchOptions.d.ts +0 -19
- package/dist/types/current/patch/media/MediaElementPatchOptions.d.ts.map +0 -1
- package/dist/types/current/patch/media/MediaElementPatchOptions.js +0 -16
- package/dist/types/current/patch/media/patchMediaElement.d.ts +0 -9
- package/dist/types/current/patch/media/patchMediaElement.d.ts.map +0 -1
- package/dist/types/current/patch/media/patchMediaElement.js +0 -15
- package/dist/types/current/patch/media/patches/createPreventStallsPatch.d.ts +0 -17
- package/dist/types/current/patch/media/patches/createPreventStallsPatch.d.ts.map +0 -1
- package/dist/types/current/patch/media/patches/createPreventStallsPatch.js +0 -55
- package/dist/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +0 -26
- package/dist/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts.map +0 -1
- package/dist/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.js +0 -218
- package/dist/types/current/vinyl/VinylPatchOptions.d.ts +0 -10
- package/dist/types/current/vinyl/VinylPatchOptions.d.ts.map +0 -1
- package/dist/types/current/vinyl/VinylPatchOptions.js +0 -11
- package/dist/types/ts3.7/patch/media/HtmlMediaElementPatch.d.ts +0 -3
- package/dist/types/ts3.7/patch/media/MediaElementPatchOptions.d.ts +0 -19
- package/dist/types/ts3.7/patch/media/patchMediaElement.d.ts +0 -9
- package/dist/types/ts3.7/patch/media/patches/createPreventStallsPatch.d.ts +0 -17
- package/dist/types/ts3.7/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +0 -26
- package/dist/types/ts3.7/vinyl/VinylPatchOptions.d.ts +0 -10
- package/dist/types/ts4.1/patch/media/HtmlMediaElementPatch.d.ts +0 -3
- package/dist/types/ts4.1/patch/media/MediaElementPatchOptions.d.ts +0 -19
- package/dist/types/ts4.1/patch/media/patchMediaElement.d.ts +0 -9
- package/dist/types/ts4.1/patch/media/patches/createPreventStallsPatch.d.ts +0 -17
- package/dist/types/ts4.1/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +0 -26
- package/dist/types/ts4.1/vinyl/VinylPatchOptions.d.ts +0 -10
- package/dist/types/ts4.7/patch/media/HtmlMediaElementPatch.d.ts +0 -3
- package/dist/types/ts4.7/patch/media/MediaElementPatchOptions.d.ts +0 -19
- package/dist/types/ts4.7/patch/media/patchMediaElement.d.ts +0 -9
- package/dist/types/ts4.7/patch/media/patches/createPreventStallsPatch.d.ts +0 -17
- package/dist/types/ts4.7/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +0 -26
- package/dist/types/ts4.7/vinyl/VinylPatchOptions.d.ts +0 -10
- package/dist/unit/types/current/patch/media/MediaElementPatchOptions.test.d.ts +0 -2
- package/dist/unit/types/current/patch/media/MediaElementPatchOptions.test.d.ts.map +0 -1
- package/dist/unit/types/current/patch/media/MediaElementPatchOptions.test.js +0 -17
- package/dist/unit/types/current/patch/media/patchMediaElement.test.d.ts +0 -2
- package/dist/unit/types/current/patch/media/patchMediaElement.test.d.ts.map +0 -1
- package/dist/unit/types/current/patch/media/patchMediaElement.test.js +0 -36
- package/dist/unit/types/current/patch/media/patches/createPreventStallsPatch.test.d.ts +0 -2
- package/dist/unit/types/current/patch/media/patches/createPreventStallsPatch.test.d.ts.map +0 -1
- package/dist/unit/types/current/patch/media/patches/createPreventStallsPatch.test.js +0 -93
- package/dist/unit/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.test.d.ts +0 -2
- package/dist/unit/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.test.d.ts.map +0 -1
- package/dist/unit/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.test.js +0 -423
|
@@ -3,124 +3,127 @@ function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)
|
|
|
3
3
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
4
4
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
5
5
|
isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:true}):target,mod)};var __accessCheck=function __accessCheck(obj,member,msg){return member.has(obj)||__typeError("Cannot "+msg)};var __privateGet=function __privateGet(obj,member,getter){return __accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)};var __privateAdd=function __privateAdd(obj,member,value){return member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value)};var __privateSet=function __privateSet(obj,member,value,setter){return __accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value};var __privateMethod=function __privateMethod(obj,member,method){return __accessCheck(obj,member,"access private method"),method};// ../../node_modules/core-js/internals/global-this.js
|
|
6
|
-
var require_global_this=__commonJS({"../../node_modules/core-js/internals/global-this.js":function __node_modules_coreJs_internals_globalThisJs(
|
|
6
|
+
var require_global_this=__commonJS({"../../node_modules/core-js/internals/global-this.js":function __node_modules_coreJs_internals_globalThisJs(exports,module){"use strict";var check=function check(it){return it&&it.Math===Math&&it};module.exports=// eslint-disable-next-line es/no-global-this -- safe
|
|
7
7
|
check((typeof globalThis==="undefined"?"undefined":_typeof(globalThis))=="object"&&globalThis)||check((typeof window==="undefined"?"undefined":_typeof(window))=="object"&&window)||// eslint-disable-next-line no-restricted-globals -- safe
|
|
8
|
-
check((typeof self==="undefined"?"undefined":_typeof(self))=="object"&&self)||check((typeof globalThis==="undefined"?"undefined":_typeof(globalThis))=="object"&&globalThis)||check(_typeof(
|
|
8
|
+
check((typeof self==="undefined"?"undefined":_typeof(self))=="object"&&self)||check((typeof globalThis==="undefined"?"undefined":_typeof(globalThis))=="object"&&globalThis)||check(_typeof(exports)=="object"&&exports)||// eslint-disable-next-line no-new-func -- fallback
|
|
9
9
|
/* @__PURE__ */function(){return this}()||Function("return this")()}});// ../../node_modules/core-js/internals/fails.js
|
|
10
|
-
var require_fails=__commonJS({"../../node_modules/core-js/internals/fails.js":function __node_modules_coreJs_internals_failsJs(
|
|
11
|
-
var require_descriptors=__commonJS({"../../node_modules/core-js/internals/descriptors.js":function __node_modules_coreJs_internals_descriptorsJs(
|
|
12
|
-
var require_function_bind_native=__commonJS({"../../node_modules/core-js/internals/function-bind-native.js":function __node_modules_coreJs_internals_functionBindNativeJs(
|
|
13
|
-
var require_function_call=__commonJS({"../../node_modules/core-js/internals/function-call.js":function __node_modules_coreJs_internals_functionCallJs(
|
|
14
|
-
var require_object_property_is_enumerable=__commonJS({"../../node_modules/core-js/internals/object-property-is-enumerable.js":function __node_modules_coreJs_internals_objectPropertyIsEnumerableJs(
|
|
15
|
-
var require_create_property_descriptor=__commonJS({"../../node_modules/core-js/internals/create-property-descriptor.js":function __node_modules_coreJs_internals_createPropertyDescriptorJs(
|
|
16
|
-
var require_function_uncurry_this=__commonJS({"../../node_modules/core-js/internals/function-uncurry-this.js":function __node_modules_coreJs_internals_functionUncurryThisJs(
|
|
17
|
-
var require_classof_raw=__commonJS({"../../node_modules/core-js/internals/classof-raw.js":function __node_modules_coreJs_internals_classofRawJs(
|
|
18
|
-
var require_indexed_object=__commonJS({"../../node_modules/core-js/internals/indexed-object.js":function __node_modules_coreJs_internals_indexedObjectJs(
|
|
19
|
-
var require_is_null_or_undefined=__commonJS({"../../node_modules/core-js/internals/is-null-or-undefined.js":function __node_modules_coreJs_internals_isNullOrUndefinedJs(
|
|
20
|
-
var require_require_object_coercible=__commonJS({"../../node_modules/core-js/internals/require-object-coercible.js":function __node_modules_coreJs_internals_requireObjectCoercibleJs(
|
|
21
|
-
var require_to_indexed_object=__commonJS({"../../node_modules/core-js/internals/to-indexed-object.js":function __node_modules_coreJs_internals_toIndexedObjectJs(
|
|
22
|
-
var require_is_callable=__commonJS({"../../node_modules/core-js/internals/is-callable.js":function __node_modules_coreJs_internals_isCallableJs(
|
|
23
|
-
var require_is_object=__commonJS({"../../node_modules/core-js/internals/is-object.js":function __node_modules_coreJs_internals_isObjectJs(
|
|
24
|
-
var require_get_built_in=__commonJS({"../../node_modules/core-js/internals/get-built-in.js":function __node_modules_coreJs_internals_getBuiltInJs(
|
|
25
|
-
var require_object_is_prototype_of=__commonJS({"../../node_modules/core-js/internals/object-is-prototype-of.js":function __node_modules_coreJs_internals_objectIsPrototypeOfJs(
|
|
26
|
-
var require_environment_user_agent=__commonJS({"../../node_modules/core-js/internals/environment-user-agent.js":function __node_modules_coreJs_internals_environmentUserAgentJs(
|
|
27
|
-
var require_environment_v8_version=__commonJS({"../../node_modules/core-js/internals/environment-v8-version.js":function __node_modules_coreJs_internals_environmentV8VersionJs(
|
|
28
|
-
var require_symbol_constructor_detection=__commonJS({"../../node_modules/core-js/internals/symbol-constructor-detection.js":function __node_modules_coreJs_internals_symbolConstructorDetectionJs(
|
|
10
|
+
var require_fails=__commonJS({"../../node_modules/core-js/internals/fails.js":function __node_modules_coreJs_internals_failsJs(exports,module){"use strict";module.exports=function(exec){try{return!!exec()}catch(error){return true}}}});// ../../node_modules/core-js/internals/descriptors.js
|
|
11
|
+
var require_descriptors=__commonJS({"../../node_modules/core-js/internals/descriptors.js":function __node_modules_coreJs_internals_descriptorsJs(exports,module){"use strict";var fails=require_fails();module.exports=!fails(function(){return Object.defineProperty({},1,{get:function get(){return 7}})[1]!==7})}});// ../../node_modules/core-js/internals/function-bind-native.js
|
|
12
|
+
var require_function_bind_native=__commonJS({"../../node_modules/core-js/internals/function-bind-native.js":function __node_modules_coreJs_internals_functionBindNativeJs(exports,module){"use strict";var fails=require_fails();module.exports=!fails(function(){var test=function(){}.bind();return typeof test!="function"||test.hasOwnProperty("prototype")})}});// ../../node_modules/core-js/internals/function-call.js
|
|
13
|
+
var require_function_call=__commonJS({"../../node_modules/core-js/internals/function-call.js":function __node_modules_coreJs_internals_functionCallJs(exports,module){"use strict";var NATIVE_BIND=require_function_bind_native();var call=Function.prototype.call;module.exports=NATIVE_BIND?call.bind(call):function(){return call.apply(call,arguments)}}});// ../../node_modules/core-js/internals/object-property-is-enumerable.js
|
|
14
|
+
var require_object_property_is_enumerable=__commonJS({"../../node_modules/core-js/internals/object-property-is-enumerable.js":function __node_modules_coreJs_internals_objectPropertyIsEnumerableJs(exports){"use strict";var $propertyIsEnumerable={}.propertyIsEnumerable;var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;var NASHORN_BUG=getOwnPropertyDescriptor&&!$propertyIsEnumerable.call({1:2},1);exports.f=NASHORN_BUG?function propertyIsEnumerable(V){var descriptor=getOwnPropertyDescriptor(this,V);return!!descriptor&&descriptor.enumerable}:$propertyIsEnumerable}});// ../../node_modules/core-js/internals/create-property-descriptor.js
|
|
15
|
+
var require_create_property_descriptor=__commonJS({"../../node_modules/core-js/internals/create-property-descriptor.js":function __node_modules_coreJs_internals_createPropertyDescriptorJs(exports,module){"use strict";module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}}});// ../../node_modules/core-js/internals/function-uncurry-this.js
|
|
16
|
+
var require_function_uncurry_this=__commonJS({"../../node_modules/core-js/internals/function-uncurry-this.js":function __node_modules_coreJs_internals_functionUncurryThisJs(exports,module){"use strict";var NATIVE_BIND=require_function_bind_native();var FunctionPrototype=Function.prototype;var call=FunctionPrototype.call;var uncurryThisWithBind=NATIVE_BIND&&FunctionPrototype.bind.bind(call,call);module.exports=NATIVE_BIND?uncurryThisWithBind:function(fn){return function(){return call.apply(fn,arguments)}}}});// ../../node_modules/core-js/internals/classof-raw.js
|
|
17
|
+
var require_classof_raw=__commonJS({"../../node_modules/core-js/internals/classof-raw.js":function __node_modules_coreJs_internals_classofRawJs(exports,module){"use strict";var uncurryThis=require_function_uncurry_this();var toString=uncurryThis({}.toString);var stringSlice=uncurryThis("".slice);module.exports=function(it){return stringSlice(toString(it),8,-1)}}});// ../../node_modules/core-js/internals/indexed-object.js
|
|
18
|
+
var require_indexed_object=__commonJS({"../../node_modules/core-js/internals/indexed-object.js":function __node_modules_coreJs_internals_indexedObjectJs(exports,module){"use strict";var uncurryThis=require_function_uncurry_this();var fails=require_fails();var classof=require_classof_raw();var $Object=Object;var split=uncurryThis("".split);module.exports=fails(function(){return!$Object("z").propertyIsEnumerable(0)})?function(it){return classof(it)==="String"?split(it,""):$Object(it)}:$Object}});// ../../node_modules/core-js/internals/is-null-or-undefined.js
|
|
19
|
+
var require_is_null_or_undefined=__commonJS({"../../node_modules/core-js/internals/is-null-or-undefined.js":function __node_modules_coreJs_internals_isNullOrUndefinedJs(exports,module){"use strict";module.exports=function(it){return it===null||it===void 0}}});// ../../node_modules/core-js/internals/require-object-coercible.js
|
|
20
|
+
var require_require_object_coercible=__commonJS({"../../node_modules/core-js/internals/require-object-coercible.js":function __node_modules_coreJs_internals_requireObjectCoercibleJs(exports,module){"use strict";var isNullOrUndefined=require_is_null_or_undefined();var $TypeError=TypeError;module.exports=function(it){if(isNullOrUndefined(it))throw new $TypeError("Can't call method on "+it);return it}}});// ../../node_modules/core-js/internals/to-indexed-object.js
|
|
21
|
+
var require_to_indexed_object=__commonJS({"../../node_modules/core-js/internals/to-indexed-object.js":function __node_modules_coreJs_internals_toIndexedObjectJs(exports,module){"use strict";var IndexedObject=require_indexed_object();var requireObjectCoercible=require_require_object_coercible();module.exports=function(it){return IndexedObject(requireObjectCoercible(it))}}});// ../../node_modules/core-js/internals/is-callable.js
|
|
22
|
+
var require_is_callable=__commonJS({"../../node_modules/core-js/internals/is-callable.js":function __node_modules_coreJs_internals_isCallableJs(exports,module){"use strict";var documentAll=(typeof document==="undefined"?"undefined":_typeof(document))=="object"&&document.all;module.exports=typeof documentAll=="undefined"&&documentAll!==void 0?function(argument){return typeof argument=="function"||argument===documentAll}:function(argument){return typeof argument=="function"}}});// ../../node_modules/core-js/internals/is-object.js
|
|
23
|
+
var require_is_object=__commonJS({"../../node_modules/core-js/internals/is-object.js":function __node_modules_coreJs_internals_isObjectJs(exports,module){"use strict";var isCallable=require_is_callable();module.exports=function(it){return _typeof(it)=="object"?it!==null:isCallable(it)}}});// ../../node_modules/core-js/internals/get-built-in.js
|
|
24
|
+
var require_get_built_in=__commonJS({"../../node_modules/core-js/internals/get-built-in.js":function __node_modules_coreJs_internals_getBuiltInJs(exports,module){"use strict";var globalThis2=require_global_this();var isCallable=require_is_callable();var aFunction=function aFunction(argument){return isCallable(argument)?argument:void 0};module.exports=function(namespace,method){return arguments.length<2?aFunction(globalThis2[namespace]):globalThis2[namespace]&&globalThis2[namespace][method]}}});// ../../node_modules/core-js/internals/object-is-prototype-of.js
|
|
25
|
+
var require_object_is_prototype_of=__commonJS({"../../node_modules/core-js/internals/object-is-prototype-of.js":function __node_modules_coreJs_internals_objectIsPrototypeOfJs(exports,module){"use strict";var uncurryThis=require_function_uncurry_this();module.exports=uncurryThis({}.isPrototypeOf)}});// ../../node_modules/core-js/internals/environment-user-agent.js
|
|
26
|
+
var require_environment_user_agent=__commonJS({"../../node_modules/core-js/internals/environment-user-agent.js":function __node_modules_coreJs_internals_environmentUserAgentJs(exports,module){"use strict";var globalThis2=require_global_this();var navigator=globalThis2.navigator;var userAgent=navigator&&navigator.userAgent;module.exports=userAgent?String(userAgent):""}});// ../../node_modules/core-js/internals/environment-v8-version.js
|
|
27
|
+
var require_environment_v8_version=__commonJS({"../../node_modules/core-js/internals/environment-v8-version.js":function __node_modules_coreJs_internals_environmentV8VersionJs(exports,module){"use strict";var globalThis2=require_global_this();var userAgent=require_environment_user_agent();var process2=globalThis2.process;var Deno2=globalThis2.Deno;var versions=process2&&process2.versions||Deno2&&Deno2.version;var v8=versions&&versions.v8;var match;var version;if(v8){match=v8.split(".");version=match[0]>0&&match[0]<4?1:+(match[0]+match[1])}if(!version&&userAgent){match=userAgent.match(/Edge\/(\d+)/);if(!match||match[1]>=74){match=userAgent.match(/Chrome\/(\d+)/);if(match)version=+match[1]}}module.exports=version}});// ../../node_modules/core-js/internals/symbol-constructor-detection.js
|
|
28
|
+
var require_symbol_constructor_detection=__commonJS({"../../node_modules/core-js/internals/symbol-constructor-detection.js":function __node_modules_coreJs_internals_symbolConstructorDetectionJs(exports,module){"use strict";var V8_VERSION=require_environment_v8_version();var fails=require_fails();var globalThis2=require_global_this();var $String=globalThis2.String;module.exports=!!Object.getOwnPropertySymbols&&!fails(function(){var symbol=/* @__PURE__ */Symbol("symbol detection");return!$String(symbol)||!(Object(symbol)instanceof Symbol)||// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
29
29
|
!Symbol.sham&&V8_VERSION&&V8_VERSION<41})}});// ../../node_modules/core-js/internals/use-symbol-as-uid.js
|
|
30
|
-
var require_use_symbol_as_uid=__commonJS({"../../node_modules/core-js/internals/use-symbol-as-uid.js":function __node_modules_coreJs_internals_useSymbolAsUidJs(
|
|
31
|
-
var require_is_symbol=__commonJS({"../../node_modules/core-js/internals/is-symbol.js":function __node_modules_coreJs_internals_isSymbolJs(
|
|
32
|
-
var require_try_to_string=__commonJS({"../../node_modules/core-js/internals/try-to-string.js":function __node_modules_coreJs_internals_tryToStringJs(
|
|
33
|
-
var require_a_callable=__commonJS({"../../node_modules/core-js/internals/a-callable.js":function __node_modules_coreJs_internals_aCallableJs(
|
|
34
|
-
var require_get_method=__commonJS({"../../node_modules/core-js/internals/get-method.js":function __node_modules_coreJs_internals_getMethodJs(
|
|
35
|
-
var require_ordinary_to_primitive=__commonJS({"../../node_modules/core-js/internals/ordinary-to-primitive.js":function __node_modules_coreJs_internals_ordinaryToPrimitiveJs(
|
|
36
|
-
var require_is_pure=__commonJS({"../../node_modules/core-js/internals/is-pure.js":function __node_modules_coreJs_internals_isPureJs(
|
|
37
|
-
var require_define_global_property=__commonJS({"../../node_modules/core-js/internals/define-global-property.js":function __node_modules_coreJs_internals_defineGlobalPropertyJs(
|
|
38
|
-
var require_shared_store=__commonJS({"../../node_modules/core-js/internals/shared-store.js":function __node_modules_coreJs_internals_sharedStoreJs(
|
|
39
|
-
var require_shared=__commonJS({"../../node_modules/core-js/internals/shared.js":function __node_modules_coreJs_internals_sharedJs(
|
|
40
|
-
var require_to_object=__commonJS({"../../node_modules/core-js/internals/to-object.js":function __node_modules_coreJs_internals_toObjectJs(
|
|
41
|
-
var require_has_own_property=__commonJS({"../../node_modules/core-js/internals/has-own-property.js":function __node_modules_coreJs_internals_hasOwnPropertyJs(
|
|
42
|
-
var require_uid=__commonJS({"../../node_modules/core-js/internals/uid.js":function __node_modules_coreJs_internals_uidJs(
|
|
43
|
-
var require_well_known_symbol=__commonJS({"../../node_modules/core-js/internals/well-known-symbol.js":function __node_modules_coreJs_internals_wellKnownSymbolJs(
|
|
44
|
-
var require_to_primitive=__commonJS({"../../node_modules/core-js/internals/to-primitive.js":function __node_modules_coreJs_internals_toPrimitiveJs(
|
|
45
|
-
var require_to_property_key=__commonJS({"../../node_modules/core-js/internals/to-property-key.js":function __node_modules_coreJs_internals_toPropertyKeyJs(
|
|
46
|
-
var require_document_create_element=__commonJS({"../../node_modules/core-js/internals/document-create-element.js":function __node_modules_coreJs_internals_documentCreateElementJs(
|
|
47
|
-
var require_ie8_dom_define=__commonJS({"../../node_modules/core-js/internals/ie8-dom-define.js":function __node_modules_coreJs_internals_ie8DomDefineJs(
|
|
48
|
-
var require_object_get_own_property_descriptor=__commonJS({"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function __node_modules_coreJs_internals_objectGetOwnPropertyDescriptorJs(
|
|
49
|
-
var require_v8_prototype_define_bug=__commonJS({"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function __node_modules_coreJs_internals_v8PrototypeDefineBugJs(
|
|
50
|
-
var require_an_object=__commonJS({"../../node_modules/core-js/internals/an-object.js":function __node_modules_coreJs_internals_anObjectJs(
|
|
51
|
-
var require_object_define_property=__commonJS({"../../node_modules/core-js/internals/object-define-property.js":function __node_modules_coreJs_internals_objectDefinePropertyJs(
|
|
52
|
-
var require_create_non_enumerable_property=__commonJS({"../../node_modules/core-js/internals/create-non-enumerable-property.js":function __node_modules_coreJs_internals_createNonEnumerablePropertyJs(
|
|
53
|
-
var require_function_name=__commonJS({"../../node_modules/core-js/internals/function-name.js":function __node_modules_coreJs_internals_functionNameJs(
|
|
54
|
-
var require_inspect_source=__commonJS({"../../node_modules/core-js/internals/inspect-source.js":function __node_modules_coreJs_internals_inspectSourceJs(
|
|
55
|
-
var require_weak_map_basic_detection=__commonJS({"../../node_modules/core-js/internals/weak-map-basic-detection.js":function __node_modules_coreJs_internals_weakMapBasicDetectionJs(
|
|
56
|
-
var require_shared_key=__commonJS({"../../node_modules/core-js/internals/shared-key.js":function __node_modules_coreJs_internals_sharedKeyJs(
|
|
57
|
-
var require_hidden_keys=__commonJS({"../../node_modules/core-js/internals/hidden-keys.js":function __node_modules_coreJs_internals_hiddenKeysJs(
|
|
58
|
-
var require_internal_state=__commonJS({"../../node_modules/core-js/internals/internal-state.js":function __node_modules_coreJs_internals_internalStateJs(
|
|
59
|
-
var require_make_built_in=__commonJS({"../../node_modules/core-js/internals/make-built-in.js":function __node_modules_coreJs_internals_makeBuiltInJs(
|
|
60
|
-
var require_define_built_in=__commonJS({"../../node_modules/core-js/internals/define-built-in.js":function __node_modules_coreJs_internals_defineBuiltInJs(
|
|
61
|
-
var require_math_trunc=__commonJS({"../../node_modules/core-js/internals/math-trunc.js":function __node_modules_coreJs_internals_mathTruncJs(
|
|
62
|
-
var require_to_integer_or_infinity=__commonJS({"../../node_modules/core-js/internals/to-integer-or-infinity.js":function __node_modules_coreJs_internals_toIntegerOrInfinityJs(
|
|
63
|
-
var require_to_absolute_index=__commonJS({"../../node_modules/core-js/internals/to-absolute-index.js":function __node_modules_coreJs_internals_toAbsoluteIndexJs(
|
|
64
|
-
var require_to_length=__commonJS({"../../node_modules/core-js/internals/to-length.js":function __node_modules_coreJs_internals_toLengthJs(
|
|
65
|
-
var require_length_of_array_like=__commonJS({"../../node_modules/core-js/internals/length-of-array-like.js":function __node_modules_coreJs_internals_lengthOfArrayLikeJs(
|
|
66
|
-
var require_array_includes=__commonJS({"../../node_modules/core-js/internals/array-includes.js":function __node_modules_coreJs_internals_arrayIncludesJs(
|
|
30
|
+
var require_use_symbol_as_uid=__commonJS({"../../node_modules/core-js/internals/use-symbol-as-uid.js":function __node_modules_coreJs_internals_useSymbolAsUidJs(exports,module){"use strict";var NATIVE_SYMBOL=require_symbol_constructor_detection();module.exports=NATIVE_SYMBOL&&!Symbol.sham&&_typeof(Symbol.iterator)=="symbol"}});// ../../node_modules/core-js/internals/is-symbol.js
|
|
31
|
+
var require_is_symbol=__commonJS({"../../node_modules/core-js/internals/is-symbol.js":function __node_modules_coreJs_internals_isSymbolJs(exports,module){"use strict";var getBuiltIn=require_get_built_in();var isCallable=require_is_callable();var isPrototypeOf=require_object_is_prototype_of();var USE_SYMBOL_AS_UID=require_use_symbol_as_uid();var $Object=Object;module.exports=USE_SYMBOL_AS_UID?function(it){return _typeof(it)=="symbol"}:function(it){var $Symbol=getBuiltIn("Symbol");return isCallable($Symbol)&&isPrototypeOf($Symbol.prototype,$Object(it))}}});// ../../node_modules/core-js/internals/try-to-string.js
|
|
32
|
+
var require_try_to_string=__commonJS({"../../node_modules/core-js/internals/try-to-string.js":function __node_modules_coreJs_internals_tryToStringJs(exports,module){"use strict";var $String=String;module.exports=function(argument){try{return $String(argument)}catch(error){return"Object"}}}});// ../../node_modules/core-js/internals/a-callable.js
|
|
33
|
+
var require_a_callable=__commonJS({"../../node_modules/core-js/internals/a-callable.js":function __node_modules_coreJs_internals_aCallableJs(exports,module){"use strict";var isCallable=require_is_callable();var tryToString=require_try_to_string();var $TypeError=TypeError;module.exports=function(argument){if(isCallable(argument))return argument;throw new $TypeError(tryToString(argument)+" is not a function")}}});// ../../node_modules/core-js/internals/get-method.js
|
|
34
|
+
var require_get_method=__commonJS({"../../node_modules/core-js/internals/get-method.js":function __node_modules_coreJs_internals_getMethodJs(exports,module){"use strict";var aCallable=require_a_callable();var isNullOrUndefined=require_is_null_or_undefined();module.exports=function(V,P){var func=V[P];return isNullOrUndefined(func)?void 0:aCallable(func)}}});// ../../node_modules/core-js/internals/ordinary-to-primitive.js
|
|
35
|
+
var require_ordinary_to_primitive=__commonJS({"../../node_modules/core-js/internals/ordinary-to-primitive.js":function __node_modules_coreJs_internals_ordinaryToPrimitiveJs(exports,module){"use strict";var call=require_function_call();var isCallable=require_is_callable();var isObject=require_is_object();var $TypeError=TypeError;module.exports=function(input,pref){var fn,val;if(pref==="string"&&isCallable(fn=input.toString)&&!isObject(val=call(fn,input)))return val;if(isCallable(fn=input.valueOf)&&!isObject(val=call(fn,input)))return val;if(pref!=="string"&&isCallable(fn=input.toString)&&!isObject(val=call(fn,input)))return val;throw new $TypeError("Can't convert object to primitive value")}}});// ../../node_modules/core-js/internals/is-pure.js
|
|
36
|
+
var require_is_pure=__commonJS({"../../node_modules/core-js/internals/is-pure.js":function __node_modules_coreJs_internals_isPureJs(exports,module){"use strict";module.exports=false}});// ../../node_modules/core-js/internals/define-global-property.js
|
|
37
|
+
var require_define_global_property=__commonJS({"../../node_modules/core-js/internals/define-global-property.js":function __node_modules_coreJs_internals_defineGlobalPropertyJs(exports,module){"use strict";var globalThis2=require_global_this();var defineProperty=Object.defineProperty;module.exports=function(key,value){try{defineProperty(globalThis2,key,{value:value,configurable:true,writable:true})}catch(error){globalThis2[key]=value}return value}}});// ../../node_modules/core-js/internals/shared-store.js
|
|
38
|
+
var require_shared_store=__commonJS({"../../node_modules/core-js/internals/shared-store.js":function __node_modules_coreJs_internals_sharedStoreJs(exports,module){"use strict";var IS_PURE=require_is_pure();var globalThis2=require_global_this();var defineGlobalProperty=require_define_global_property();var SHARED="__core-js_shared__";var store=module.exports=globalThis2[SHARED]||defineGlobalProperty(SHARED,{});(store.versions||(store.versions=[])).push({version:"3.50.0",mode:IS_PURE?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})}});// ../../node_modules/core-js/internals/shared.js
|
|
39
|
+
var require_shared=__commonJS({"../../node_modules/core-js/internals/shared.js":function __node_modules_coreJs_internals_sharedJs(exports,module){"use strict";var store=require_shared_store();var create=Object.create||Object;module.exports=function(key,value){return store[key]||(store[key]=value||create(null))}}});// ../../node_modules/core-js/internals/to-object.js
|
|
40
|
+
var require_to_object=__commonJS({"../../node_modules/core-js/internals/to-object.js":function __node_modules_coreJs_internals_toObjectJs(exports,module){"use strict";var requireObjectCoercible=require_require_object_coercible();var $Object=Object;module.exports=function(argument){return $Object(requireObjectCoercible(argument))}}});// ../../node_modules/core-js/internals/has-own-property.js
|
|
41
|
+
var require_has_own_property=__commonJS({"../../node_modules/core-js/internals/has-own-property.js":function __node_modules_coreJs_internals_hasOwnPropertyJs(exports,module){"use strict";var uncurryThis=require_function_uncurry_this();var toObject=require_to_object();var hasOwnProperty=uncurryThis({}.hasOwnProperty);module.exports=Object.hasOwn||function hasOwn(it,key){return hasOwnProperty(toObject(it),key)}}});// ../../node_modules/core-js/internals/uid.js
|
|
42
|
+
var require_uid=__commonJS({"../../node_modules/core-js/internals/uid.js":function __node_modules_coreJs_internals_uidJs(exports,module){"use strict";var uncurryThis=require_function_uncurry_this();var id=0;var postfix=Math.random();var toString=uncurryThis(1.1.toString);module.exports=function(key){return"Symbol("+(key===void 0?"":key)+")_"+toString(++id+postfix,36)}}});// ../../node_modules/core-js/internals/well-known-symbol.js
|
|
43
|
+
var require_well_known_symbol=__commonJS({"../../node_modules/core-js/internals/well-known-symbol.js":function __node_modules_coreJs_internals_wellKnownSymbolJs(exports,module){"use strict";var globalThis2=require_global_this();var shared=require_shared();var hasOwn=require_has_own_property();var uid=require_uid();var NATIVE_SYMBOL=require_symbol_constructor_detection();var USE_SYMBOL_AS_UID=require_use_symbol_as_uid();var Symbol2=globalThis2.Symbol;var WellKnownSymbolsStore=shared("wks");var createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol2["for"]||Symbol2:Symbol2&&Symbol2.withoutSetter||uid;module.exports=function(name){if(!hasOwn(WellKnownSymbolsStore,name)){WellKnownSymbolsStore[name]=NATIVE_SYMBOL&&hasOwn(Symbol2,name)?Symbol2[name]:createWellKnownSymbol("Symbol."+name)}return WellKnownSymbolsStore[name]}}});// ../../node_modules/core-js/internals/to-primitive.js
|
|
44
|
+
var require_to_primitive=__commonJS({"../../node_modules/core-js/internals/to-primitive.js":function __node_modules_coreJs_internals_toPrimitiveJs(exports,module){"use strict";var call=require_function_call();var isObject=require_is_object();var isSymbol=require_is_symbol();var getMethod=require_get_method();var ordinaryToPrimitive=require_ordinary_to_primitive();var wellKnownSymbol=require_well_known_symbol();var $TypeError=TypeError;var TO_PRIMITIVE=wellKnownSymbol("toPrimitive");module.exports=function(input,pref){if(!isObject(input)||isSymbol(input))return input;var exoticToPrim=getMethod(input,TO_PRIMITIVE);var result;if(exoticToPrim){if(pref===void 0)pref="default";result=call(exoticToPrim,input,pref);if(!isObject(result)||isSymbol(result))return result;throw new $TypeError("Can't convert object to primitive value")}if(pref===void 0)pref="number";return ordinaryToPrimitive(input,pref)}}});// ../../node_modules/core-js/internals/to-property-key.js
|
|
45
|
+
var require_to_property_key=__commonJS({"../../node_modules/core-js/internals/to-property-key.js":function __node_modules_coreJs_internals_toPropertyKeyJs(exports,module){"use strict";var toPrimitive=require_to_primitive();var isSymbol=require_is_symbol();module.exports=function(argument){var key=toPrimitive(argument,"string");return isSymbol(key)?key:key+""}}});// ../../node_modules/core-js/internals/document-create-element.js
|
|
46
|
+
var require_document_create_element=__commonJS({"../../node_modules/core-js/internals/document-create-element.js":function __node_modules_coreJs_internals_documentCreateElementJs(exports,module){"use strict";var globalThis2=require_global_this();var isObject=require_is_object();var document2=globalThis2.document;var EXISTS=isObject(document2)&&isObject(document2.createElement);module.exports=function(it){return EXISTS?document2.createElement(it):{}}}});// ../../node_modules/core-js/internals/ie8-dom-define.js
|
|
47
|
+
var require_ie8_dom_define=__commonJS({"../../node_modules/core-js/internals/ie8-dom-define.js":function __node_modules_coreJs_internals_ie8DomDefineJs(exports,module){"use strict";var DESCRIPTORS=require_descriptors();var fails=require_fails();var createElement=require_document_create_element();module.exports=!DESCRIPTORS&&!fails(function(){return Object.defineProperty(createElement("div"),"a",{get:function get(){return 7}}).a!==7})}});// ../../node_modules/core-js/internals/object-get-own-property-descriptor.js
|
|
48
|
+
var require_object_get_own_property_descriptor=__commonJS({"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function __node_modules_coreJs_internals_objectGetOwnPropertyDescriptorJs(exports){"use strict";var DESCRIPTORS=require_descriptors();var call=require_function_call();var propertyIsEnumerableModule=require_object_property_is_enumerable();var createPropertyDescriptor=require_create_property_descriptor();var toIndexedObject=require_to_indexed_object();var toPropertyKey=require_to_property_key();var hasOwn=require_has_own_property();var IE8_DOM_DEFINE=require_ie8_dom_define();var $getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;exports.f=DESCRIPTORS?$getOwnPropertyDescriptor:function getOwnPropertyDescriptor(O,P){O=toIndexedObject(O);P=toPropertyKey(P);if(IE8_DOM_DEFINE)try{return $getOwnPropertyDescriptor(O,P)}catch(error){}if(hasOwn(O,P))return createPropertyDescriptor(!call(propertyIsEnumerableModule.f,O,P),O[P])}}});// ../../node_modules/core-js/internals/v8-prototype-define-bug.js
|
|
49
|
+
var require_v8_prototype_define_bug=__commonJS({"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function __node_modules_coreJs_internals_v8PrototypeDefineBugJs(exports,module){"use strict";var DESCRIPTORS=require_descriptors();var fails=require_fails();module.exports=DESCRIPTORS&&fails(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:false}).prototype!==42})}});// ../../node_modules/core-js/internals/an-object.js
|
|
50
|
+
var require_an_object=__commonJS({"../../node_modules/core-js/internals/an-object.js":function __node_modules_coreJs_internals_anObjectJs(exports,module){"use strict";var isObject=require_is_object();var $String=String;var $TypeError=TypeError;module.exports=function(argument){if(isObject(argument))return argument;throw new $TypeError($String(argument)+" is not an object")}}});// ../../node_modules/core-js/internals/object-define-property.js
|
|
51
|
+
var require_object_define_property=__commonJS({"../../node_modules/core-js/internals/object-define-property.js":function __node_modules_coreJs_internals_objectDefinePropertyJs(exports){"use strict";var DESCRIPTORS=require_descriptors();var IE8_DOM_DEFINE=require_ie8_dom_define();var V8_PROTOTYPE_DEFINE_BUG=require_v8_prototype_define_bug();var anObject=require_an_object();var toPropertyKey=require_to_property_key();var $TypeError=TypeError;var $defineProperty=Object.defineProperty;var $getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;var ENUMERABLE="enumerable";var CONFIGURABLE="configurable";var WRITABLE="writable";exports.f=DESCRIPTORS?V8_PROTOTYPE_DEFINE_BUG?function defineProperty(O,P,Attributes){anObject(O);P=toPropertyKey(P);anObject(Attributes);if(typeof O==="function"&&P==="prototype"&&"value"in Attributes&&WRITABLE in Attributes&&!Attributes[WRITABLE]){var current=$getOwnPropertyDescriptor(O,P);if(current&¤t[WRITABLE]){O[P]=Attributes.value;Attributes={configurable:CONFIGURABLE in Attributes?Attributes[CONFIGURABLE]:current[CONFIGURABLE],enumerable:ENUMERABLE in Attributes?Attributes[ENUMERABLE]:current[ENUMERABLE],writable:false}}}return $defineProperty(O,P,Attributes)}:$defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPropertyKey(P);anObject(Attributes);if(IE8_DOM_DEFINE)try{return $defineProperty(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw new $TypeError("Accessors not supported");if("value"in Attributes)O[P]=Attributes.value;return O}}});// ../../node_modules/core-js/internals/create-non-enumerable-property.js
|
|
52
|
+
var require_create_non_enumerable_property=__commonJS({"../../node_modules/core-js/internals/create-non-enumerable-property.js":function __node_modules_coreJs_internals_createNonEnumerablePropertyJs(exports,module){"use strict";var DESCRIPTORS=require_descriptors();var definePropertyModule=require_object_define_property();var createPropertyDescriptor=require_create_property_descriptor();module.exports=DESCRIPTORS?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){object[key]=value;return object}}});// ../../node_modules/core-js/internals/function-name.js
|
|
53
|
+
var require_function_name=__commonJS({"../../node_modules/core-js/internals/function-name.js":function __node_modules_coreJs_internals_functionNameJs(exports,module){"use strict";var DESCRIPTORS=require_descriptors();var hasOwn=require_has_own_property();var FunctionPrototype=Function.prototype;var getDescriptor=DESCRIPTORS&&Object.getOwnPropertyDescriptor;var EXISTS=hasOwn(FunctionPrototype,"name");var PROPER=EXISTS&&function something(){}.name==="something";var CONFIGURABLE=EXISTS&&(!DESCRIPTORS||DESCRIPTORS&&getDescriptor(FunctionPrototype,"name").configurable);module.exports={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE}}});// ../../node_modules/core-js/internals/inspect-source.js
|
|
54
|
+
var require_inspect_source=__commonJS({"../../node_modules/core-js/internals/inspect-source.js":function __node_modules_coreJs_internals_inspectSourceJs(exports,module){"use strict";var uncurryThis=require_function_uncurry_this();var isCallable=require_is_callable();var store=require_shared_store();var functionToString=uncurryThis(Function.toString);if(!isCallable(store.inspectSource)){store.inspectSource=function(it){return functionToString(it)}}module.exports=store.inspectSource}});// ../../node_modules/core-js/internals/weak-map-basic-detection.js
|
|
55
|
+
var require_weak_map_basic_detection=__commonJS({"../../node_modules/core-js/internals/weak-map-basic-detection.js":function __node_modules_coreJs_internals_weakMapBasicDetectionJs(exports,module){"use strict";var globalThis2=require_global_this();var isCallable=require_is_callable();var WeakMap2=globalThis2.WeakMap;module.exports=isCallable(WeakMap2)&&/native code/.test(String(WeakMap2))}});// ../../node_modules/core-js/internals/shared-key.js
|
|
56
|
+
var require_shared_key=__commonJS({"../../node_modules/core-js/internals/shared-key.js":function __node_modules_coreJs_internals_sharedKeyJs(exports,module){"use strict";var shared=require_shared();var uid=require_uid();var keys=shared("keys");module.exports=function(key){return keys[key]||(keys[key]=uid(key))}}});// ../../node_modules/core-js/internals/hidden-keys.js
|
|
57
|
+
var require_hidden_keys=__commonJS({"../../node_modules/core-js/internals/hidden-keys.js":function __node_modules_coreJs_internals_hiddenKeysJs(exports,module){"use strict";module.exports={}}});// ../../node_modules/core-js/internals/internal-state.js
|
|
58
|
+
var require_internal_state=__commonJS({"../../node_modules/core-js/internals/internal-state.js":function __node_modules_coreJs_internals_internalStateJs(exports,module){"use strict";var NATIVE_WEAK_MAP=require_weak_map_basic_detection();var globalThis2=require_global_this();var isObject=require_is_object();var createNonEnumerableProperty=require_create_non_enumerable_property();var hasOwn=require_has_own_property();var shared=require_shared_store();var sharedKey=require_shared_key();var hiddenKeys=require_hidden_keys();var OBJECT_ALREADY_INITIALIZED="Object already initialized";var TypeError2=globalThis2.TypeError;var WeakMap2=globalThis2.WeakMap;var set;var get;var has;var enforce=function enforce(it){return has(it)?get(it):set(it,{})};var getterFor=function getterFor(TYPE){return function(it){var state;if(!isObject(it)||(state=get(it)).type!==TYPE){throw new TypeError2("Incompatible receiver, "+TYPE+" required")}return state}};if(NATIVE_WEAK_MAP||shared.state){store=shared.state||(shared.state=new WeakMap2);store.get=store.get;store.has=store.has;store.set=store.set;set=function set(it,metadata){if(store.has(it))throw new TypeError2(OBJECT_ALREADY_INITIALIZED);metadata.facade=it;store.set(it,metadata);return metadata};get=function get(it){return store.get(it)||{}};has=function has(it){return store.has(it)}}else{STATE=sharedKey("state");hiddenKeys[STATE]=true;set=function set(it,metadata){if(hasOwn(it,STATE))throw new TypeError2(OBJECT_ALREADY_INITIALIZED);metadata.facade=it;createNonEnumerableProperty(it,STATE,metadata);return metadata};get=function get(it){return hasOwn(it,STATE)?it[STATE]:{}};has=function has(it){return hasOwn(it,STATE)}}var store;var STATE;module.exports={set:set,get:get,has:has,enforce:enforce,getterFor:getterFor}}});// ../../node_modules/core-js/internals/make-built-in.js
|
|
59
|
+
var require_make_built_in=__commonJS({"../../node_modules/core-js/internals/make-built-in.js":function __node_modules_coreJs_internals_makeBuiltInJs(exports,module){"use strict";var uncurryThis=require_function_uncurry_this();var fails=require_fails();var isCallable=require_is_callable();var hasOwn=require_has_own_property();var DESCRIPTORS=require_descriptors();var CONFIGURABLE_FUNCTION_NAME=require_function_name().CONFIGURABLE;var inspectSource=require_inspect_source();var InternalStateModule=require_internal_state();var enforceInternalState=InternalStateModule.enforce;var getInternalState=InternalStateModule.get;var $String=String;var defineProperty=Object.defineProperty;var stringSlice=uncurryThis("".slice);var replace=uncurryThis("".replace);var join=uncurryThis([].join);var CONFIGURABLE_LENGTH=DESCRIPTORS&&!fails(function(){return defineProperty(function(){},"length",{value:8}).length!==8});var TEMPLATE=String(String).split("String");var makeBuiltIn=module.exports=function(value,name,options){if(stringSlice($String(name),0,7)==="Symbol("){name="["+replace($String(name),/^Symbol\(([^)]*)\).*$/,"$1")+"]"}if(options&&options.getter)name="get "+name;if(options&&options.setter)name="set "+name;if(!hasOwn(value,"name")||CONFIGURABLE_FUNCTION_NAME&&value.name!==name){if(DESCRIPTORS)defineProperty(value,"name",{value:name,configurable:true});else value.name=name}if(CONFIGURABLE_LENGTH&&options&&hasOwn(options,"arity")&&value.length!==options.arity){defineProperty(value,"length",{value:options.arity})}try{if(options&&hasOwn(options,"constructor")&&options.constructor){if(DESCRIPTORS)defineProperty(value,"prototype",{writable:false})}else if(value.prototype)value.prototype=void 0}catch(error){}var state=enforceInternalState(value);if(!hasOwn(state,"source")){state.source=join(TEMPLATE,typeof name=="string"?name:"")}return value};Function.prototype.toString=makeBuiltIn(function toString(){return isCallable(this)&&getInternalState(this).source||inspectSource(this)},"toString")}});// ../../node_modules/core-js/internals/define-built-in.js
|
|
60
|
+
var require_define_built_in=__commonJS({"../../node_modules/core-js/internals/define-built-in.js":function __node_modules_coreJs_internals_defineBuiltInJs(exports,module){"use strict";var isCallable=require_is_callable();var definePropertyModule=require_object_define_property();var makeBuiltIn=require_make_built_in();var defineGlobalProperty=require_define_global_property();module.exports=function(O,key,value,options){if(!options)options={};var simple=options.enumerable;var name=options.name!==void 0?options.name:key;if(isCallable(value))makeBuiltIn(value,name,options);if(options.global){if(simple)O[key]=value;else defineGlobalProperty(key,value)}else{try{if(!options.unsafe)delete O[key];else if(O[key])simple=true}catch(error){}if(simple)O[key]=value;else definePropertyModule.f(O,key,{value:value,enumerable:false,configurable:!options.nonConfigurable,writable:!options.nonWritable})}return O}}});// ../../node_modules/core-js/internals/math-trunc.js
|
|
61
|
+
var require_math_trunc=__commonJS({"../../node_modules/core-js/internals/math-trunc.js":function __node_modules_coreJs_internals_mathTruncJs(exports,module){"use strict";var ceil=Math.ceil;var floor=Math.floor;module.exports=Math.trunc||function trunc(x){var n=+x;return(n>0?floor:ceil)(n)}}});// ../../node_modules/core-js/internals/to-integer-or-infinity.js
|
|
62
|
+
var require_to_integer_or_infinity=__commonJS({"../../node_modules/core-js/internals/to-integer-or-infinity.js":function __node_modules_coreJs_internals_toIntegerOrInfinityJs(exports,module){"use strict";var trunc=require_math_trunc();module.exports=function(argument){var number=+argument;return number!==number||number===0?0:trunc(number)}}});// ../../node_modules/core-js/internals/to-absolute-index.js
|
|
63
|
+
var require_to_absolute_index=__commonJS({"../../node_modules/core-js/internals/to-absolute-index.js":function __node_modules_coreJs_internals_toAbsoluteIndexJs(exports,module){"use strict";var toIntegerOrInfinity=require_to_integer_or_infinity();var max=Math.max;var min=Math.min;module.exports=function(index,length){var integer=toIntegerOrInfinity(index);return integer<0?max(integer+length,0):min(integer,length)}}});// ../../node_modules/core-js/internals/to-length.js
|
|
64
|
+
var require_to_length=__commonJS({"../../node_modules/core-js/internals/to-length.js":function __node_modules_coreJs_internals_toLengthJs(exports,module){"use strict";var toIntegerOrInfinity=require_to_integer_or_infinity();var min=Math.min;module.exports=function(argument){var len=toIntegerOrInfinity(argument);return len>0?min(len,9007199254740991):0}}});// ../../node_modules/core-js/internals/length-of-array-like.js
|
|
65
|
+
var require_length_of_array_like=__commonJS({"../../node_modules/core-js/internals/length-of-array-like.js":function __node_modules_coreJs_internals_lengthOfArrayLikeJs(exports,module){"use strict";var toLength=require_to_length();module.exports=function(obj){return toLength(obj.length)}}});// ../../node_modules/core-js/internals/array-includes.js
|
|
66
|
+
var require_array_includes=__commonJS({"../../node_modules/core-js/internals/array-includes.js":function __node_modules_coreJs_internals_arrayIncludesJs(exports,module){"use strict";var toIndexedObject=require_to_indexed_object();var toAbsoluteIndex=require_to_absolute_index();var lengthOfArrayLike=require_length_of_array_like();var createMethod=function createMethod(IS_INCLUDES){return function($this,el,fromIndex){var O=toIndexedObject($this);var length=lengthOfArrayLike(O);if(length===0)return!IS_INCLUDES&&-1;var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!==el)while(length>index){value=O[index++];if(value!==value)return true}else for(;length>index;index++){if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0}return!IS_INCLUDES&&-1}};module.exports={// `Array.prototype.includes` method
|
|
67
67
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
68
68
|
includes:createMethod(true),// `Array.prototype.indexOf` method
|
|
69
69
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
70
70
|
indexOf:createMethod(false)}}});// ../../node_modules/core-js/internals/object-keys-internal.js
|
|
71
|
-
var require_object_keys_internal=__commonJS({"../../node_modules/core-js/internals/object-keys-internal.js":function __node_modules_coreJs_internals_objectKeysInternalJs(
|
|
72
|
-
var require_enum_bug_keys=__commonJS({"../../node_modules/core-js/internals/enum-bug-keys.js":function __node_modules_coreJs_internals_enumBugKeysJs(
|
|
73
|
-
var require_object_get_own_property_names=__commonJS({"../../node_modules/core-js/internals/object-get-own-property-names.js":function __node_modules_coreJs_internals_objectGetOwnPropertyNamesJs(
|
|
74
|
-
var require_object_get_own_property_symbols=__commonJS({"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function __node_modules_coreJs_internals_objectGetOwnPropertySymbolsJs(
|
|
75
|
-
var require_own_keys=__commonJS({"../../node_modules/core-js/internals/own-keys.js":function __node_modules_coreJs_internals_ownKeysJs(
|
|
76
|
-
var require_copy_constructor_properties=__commonJS({"../../node_modules/core-js/internals/copy-constructor-properties.js":function __node_modules_coreJs_internals_copyConstructorPropertiesJs(
|
|
77
|
-
var require_is_forced=__commonJS({"../../node_modules/core-js/internals/is-forced.js":function __node_modules_coreJs_internals_isForcedJs(
|
|
78
|
-
var require_export=__commonJS({"../../node_modules/core-js/internals/export.js":function __node_modules_coreJs_internals_exportJs(
|
|
79
|
-
var require_safe_get_built_in=__commonJS({"../../node_modules/core-js/internals/safe-get-built-in.js":function __node_modules_coreJs_internals_safeGetBuiltInJs(
|
|
80
|
-
var require_function_uncurry_this_clause=__commonJS({"../../node_modules/core-js/internals/function-uncurry-this-clause.js":function __node_modules_coreJs_internals_functionUncurryThisClauseJs(
|
|
81
|
-
var require_function_bind_context=__commonJS({"../../node_modules/core-js/internals/function-bind-context.js":function __node_modules_coreJs_internals_functionBindContextJs(
|
|
82
|
-
var require_function_apply=__commonJS({"../../node_modules/core-js/internals/function-apply.js":function __node_modules_coreJs_internals_functionApplyJs(
|
|
83
|
-
var require_html=__commonJS({"../../node_modules/core-js/internals/html.js":function __node_modules_coreJs_internals_htmlJs(
|
|
84
|
-
var require_array_slice=__commonJS({"../../node_modules/core-js/internals/array-slice.js":function __node_modules_coreJs_internals_arraySliceJs(
|
|
85
|
-
var require_validate_arguments_length=__commonJS({"../../node_modules/core-js/internals/validate-arguments-length.js":function __node_modules_coreJs_internals_validateArgumentsLengthJs(
|
|
86
|
-
var require_environment_is_ios=__commonJS({"../../node_modules/core-js/internals/environment-is-ios.js":function __node_modules_coreJs_internals_environmentIsIosJs(
|
|
87
|
-
var require_environment=__commonJS({"../../node_modules/core-js/internals/environment.js":function __node_modules_coreJs_internals_environmentJs(
|
|
88
|
-
var require_environment_is_node=__commonJS({"../../node_modules/core-js/internals/environment-is-node.js":function __node_modules_coreJs_internals_environmentIsNodeJs(
|
|
89
|
-
var require_task=__commonJS({"../../node_modules/core-js/internals/task.js":function __node_modules_coreJs_internals_taskJs(
|
|
90
|
-
var require_queue=__commonJS({"../../node_modules/core-js/internals/queue.js":function __node_modules_coreJs_internals_queueJs(
|
|
91
|
-
var require_environment_is_ios_pebble=__commonJS({"../../node_modules/core-js/internals/environment-is-ios-pebble.js":function __node_modules_coreJs_internals_environmentIsIosPebbleJs(
|
|
92
|
-
var require_environment_is_webos_webkit=__commonJS({"../../node_modules/core-js/internals/environment-is-webos-webkit.js":function __node_modules_coreJs_internals_environmentIsWebosWebkitJs(
|
|
93
|
-
var require_microtask=__commonJS({"../../node_modules/core-js/internals/microtask.js":function __node_modules_coreJs_internals_microtaskJs(
|
|
71
|
+
var require_object_keys_internal=__commonJS({"../../node_modules/core-js/internals/object-keys-internal.js":function __node_modules_coreJs_internals_objectKeysInternalJs(exports,module){"use strict";var uncurryThis=require_function_uncurry_this();var hasOwn=require_has_own_property();var toIndexedObject=require_to_indexed_object();var indexOf=require_array_includes().indexOf;var hiddenKeys=require_hidden_keys();var push=uncurryThis([].push);module.exports=function(object,names){var O=toIndexedObject(object);var i=0;var result=[];var key;for(key in O)!hasOwn(hiddenKeys,key)&&hasOwn(O,key)&&push(result,key);while(names.length>i)if(hasOwn(O,key=names[i++])){~indexOf(result,key)||push(result,key)}return result}}});// ../../node_modules/core-js/internals/enum-bug-keys.js
|
|
72
|
+
var require_enum_bug_keys=__commonJS({"../../node_modules/core-js/internals/enum-bug-keys.js":function __node_modules_coreJs_internals_enumBugKeysJs(exports,module){"use strict";module.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}});// ../../node_modules/core-js/internals/object-get-own-property-names.js
|
|
73
|
+
var require_object_get_own_property_names=__commonJS({"../../node_modules/core-js/internals/object-get-own-property-names.js":function __node_modules_coreJs_internals_objectGetOwnPropertyNamesJs(exports){"use strict";var internalObjectKeys=require_object_keys_internal();var enumBugKeys=require_enum_bug_keys();var hiddenKeys=enumBugKeys.concat("length","prototype");exports.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return internalObjectKeys(O,hiddenKeys)}}});// ../../node_modules/core-js/internals/object-get-own-property-symbols.js
|
|
74
|
+
var require_object_get_own_property_symbols=__commonJS({"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function __node_modules_coreJs_internals_objectGetOwnPropertySymbolsJs(exports){"use strict";exports.f=Object.getOwnPropertySymbols}});// ../../node_modules/core-js/internals/own-keys.js
|
|
75
|
+
var require_own_keys=__commonJS({"../../node_modules/core-js/internals/own-keys.js":function __node_modules_coreJs_internals_ownKeysJs(exports,module){"use strict";var getBuiltIn=require_get_built_in();var uncurryThis=require_function_uncurry_this();var getOwnPropertyNamesModule=require_object_get_own_property_names();var getOwnPropertySymbolsModule=require_object_get_own_property_symbols();var anObject=require_an_object();var concat=uncurryThis([].concat);module.exports=getBuiltIn("Reflect","ownKeys")||function ownKeys(it){var keys=getOwnPropertyNamesModule.f(anObject(it));var getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?concat(keys,getOwnPropertySymbols(it)):keys}}});// ../../node_modules/core-js/internals/copy-constructor-properties.js
|
|
76
|
+
var require_copy_constructor_properties=__commonJS({"../../node_modules/core-js/internals/copy-constructor-properties.js":function __node_modules_coreJs_internals_copyConstructorPropertiesJs(exports,module){"use strict";var hasOwn=require_has_own_property();var ownKeys=require_own_keys();var getOwnPropertyDescriptorModule=require_object_get_own_property_descriptor();var definePropertyModule=require_object_define_property();module.exports=function(target,source,exceptions){var keys=ownKeys(source);var defineProperty=definePropertyModule.f;var getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f;for(var i=0;i<keys.length;i++){var key=keys[i];if(!hasOwn(target,key)&&!(exceptions&&hasOwn(exceptions,key))){defineProperty(target,key,getOwnPropertyDescriptor(source,key))}}}}});// ../../node_modules/core-js/internals/is-forced.js
|
|
77
|
+
var require_is_forced=__commonJS({"../../node_modules/core-js/internals/is-forced.js":function __node_modules_coreJs_internals_isForcedJs(exports,module){"use strict";var fails=require_fails();var isCallable=require_is_callable();var replacement=/#|\.prototype\./;var isForced=function isForced(feature,detection){var value=data[normalize(feature)];return value===POLYFILL?true:value===NATIVE?false:isCallable(detection)?fails(detection):!!detection};var normalize=isForced.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()};var data=isForced.data={};var NATIVE=isForced.NATIVE="N";var POLYFILL=isForced.POLYFILL="P";module.exports=isForced}});// ../../node_modules/core-js/internals/export.js
|
|
78
|
+
var require_export=__commonJS({"../../node_modules/core-js/internals/export.js":function __node_modules_coreJs_internals_exportJs(exports,module){"use strict";var globalThis2=require_global_this();var getOwnPropertyDescriptor=require_object_get_own_property_descriptor().f;var createNonEnumerableProperty=require_create_non_enumerable_property();var defineBuiltIn=require_define_built_in();var defineGlobalProperty=require_define_global_property();var copyConstructorProperties=require_copy_constructor_properties();var isForced=require_is_forced();module.exports=function(options,source){var TARGET=options.target;var GLOBAL=options.global;var STATIC=options.stat;var FORCED,target,key,targetProperty,sourceProperty,descriptor;if(GLOBAL){target=globalThis2}else if(STATIC){target=globalThis2[TARGET]||defineGlobalProperty(TARGET,{})}else{target=globalThis2[TARGET]&&globalThis2[TARGET].prototype}if(target)for(key in source){sourceProperty=source[key];if(options.dontCallGetSet){descriptor=getOwnPropertyDescriptor(target,key);targetProperty=descriptor&&descriptor.value}else targetProperty=target[key];FORCED=isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced);if(!FORCED&&targetProperty!==void 0){if(_typeof(sourceProperty)==_typeof(targetProperty))continue;copyConstructorProperties(sourceProperty,targetProperty)}if(options.sham||targetProperty&&targetProperty.sham){createNonEnumerableProperty(sourceProperty,"sham",true)}defineBuiltIn(target,key,sourceProperty,options)}}}});// ../../node_modules/core-js/internals/safe-get-built-in.js
|
|
79
|
+
var require_safe_get_built_in=__commonJS({"../../node_modules/core-js/internals/safe-get-built-in.js":function __node_modules_coreJs_internals_safeGetBuiltInJs(exports,module){"use strict";var globalThis2=require_global_this();var DESCRIPTORS=require_descriptors();var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;module.exports=function(name){if(!DESCRIPTORS)return globalThis2[name];var descriptor=getOwnPropertyDescriptor(globalThis2,name);return descriptor&&descriptor.value}}});// ../../node_modules/core-js/internals/function-uncurry-this-clause.js
|
|
80
|
+
var require_function_uncurry_this_clause=__commonJS({"../../node_modules/core-js/internals/function-uncurry-this-clause.js":function __node_modules_coreJs_internals_functionUncurryThisClauseJs(exports,module){"use strict";var classofRaw=require_classof_raw();var uncurryThis=require_function_uncurry_this();module.exports=function(fn){if(classofRaw(fn)==="Function")return uncurryThis(fn)}}});// ../../node_modules/core-js/internals/function-bind-context.js
|
|
81
|
+
var require_function_bind_context=__commonJS({"../../node_modules/core-js/internals/function-bind-context.js":function __node_modules_coreJs_internals_functionBindContextJs(exports,module){"use strict";var uncurryThis=require_function_uncurry_this_clause();var aCallable=require_a_callable();var NATIVE_BIND=require_function_bind_native();var bind=uncurryThis(uncurryThis.bind);module.exports=function(fn,that){aCallable(fn);return that===void 0?fn:NATIVE_BIND?bind(fn,that):function(){return fn.apply(that,arguments)}}}});// ../../node_modules/core-js/internals/function-apply.js
|
|
82
|
+
var require_function_apply=__commonJS({"../../node_modules/core-js/internals/function-apply.js":function __node_modules_coreJs_internals_functionApplyJs(exports,module){"use strict";var NATIVE_BIND=require_function_bind_native();var FunctionPrototype=Function.prototype;var apply=FunctionPrototype.apply;var call=FunctionPrototype.call;module.exports=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))=="object"&&Reflect.apply||(NATIVE_BIND?call.bind(apply):function(){return call.apply(apply,arguments)})}});// ../../node_modules/core-js/internals/html.js
|
|
83
|
+
var require_html=__commonJS({"../../node_modules/core-js/internals/html.js":function __node_modules_coreJs_internals_htmlJs(exports,module){"use strict";var getBuiltIn=require_get_built_in();module.exports=getBuiltIn("document","documentElement")}});// ../../node_modules/core-js/internals/array-slice.js
|
|
84
|
+
var require_array_slice=__commonJS({"../../node_modules/core-js/internals/array-slice.js":function __node_modules_coreJs_internals_arraySliceJs(exports,module){"use strict";var uncurryThis=require_function_uncurry_this();module.exports=uncurryThis([].slice)}});// ../../node_modules/core-js/internals/validate-arguments-length.js
|
|
85
|
+
var require_validate_arguments_length=__commonJS({"../../node_modules/core-js/internals/validate-arguments-length.js":function __node_modules_coreJs_internals_validateArgumentsLengthJs(exports,module){"use strict";var $TypeError=TypeError;module.exports=function(passed,required){if(passed<required)throw new $TypeError("Not enough arguments");return passed}}});// ../../node_modules/core-js/internals/environment-is-ios.js
|
|
86
|
+
var require_environment_is_ios=__commonJS({"../../node_modules/core-js/internals/environment-is-ios.js":function __node_modules_coreJs_internals_environmentIsIosJs(exports,module){"use strict";var userAgent=require_environment_user_agent();module.exports=/ipad|iphone|ipod/i.test(userAgent)&&/applewebkit/i.test(userAgent)}});// ../../node_modules/core-js/internals/environment.js
|
|
87
|
+
var require_environment=__commonJS({"../../node_modules/core-js/internals/environment.js":function __node_modules_coreJs_internals_environmentJs(exports,module){"use strict";var globalThis2=require_global_this();var userAgent=require_environment_user_agent();var classof=require_classof_raw();var userAgentStartsWith=function userAgentStartsWith(string){return userAgent.slice(0,string.length)===string};module.exports=function(){if(userAgentStartsWith("Bun/"))return"BUN";if(userAgentStartsWith("Cloudflare-Workers"))return"CLOUDFLARE";if(userAgentStartsWith("Deno/"))return"DENO";if(userAgentStartsWith("Node.js/"))return"NODE";if(globalThis2.Bun&&typeof Bun.version=="string")return"BUN";if(globalThis2.Deno&&_typeof(Deno.version)=="object")return"DENO";if(classof(globalThis2.process)==="process")return"NODE";if(globalThis2.window&&globalThis2.document)return"BROWSER";return"REST"}()}});// ../../node_modules/core-js/internals/environment-is-node.js
|
|
88
|
+
var require_environment_is_node=__commonJS({"../../node_modules/core-js/internals/environment-is-node.js":function __node_modules_coreJs_internals_environmentIsNodeJs(exports,module){"use strict";var ENVIRONMENT=require_environment();module.exports=ENVIRONMENT==="NODE"}});// ../../node_modules/core-js/internals/task.js
|
|
89
|
+
var require_task=__commonJS({"../../node_modules/core-js/internals/task.js":function __node_modules_coreJs_internals_taskJs(exports,module){"use strict";var globalThis2=require_global_this();var apply=require_function_apply();var bind=require_function_bind_context();var isCallable=require_is_callable();var hasOwn=require_has_own_property();var fails=require_fails();var html=require_html();var arraySlice=require_array_slice();var createElement=require_document_create_element();var validateArgumentsLength=require_validate_arguments_length();var IS_IOS=require_environment_is_ios();var IS_NODE=require_environment_is_node();var set=globalThis2.setImmediate;var clear=globalThis2.clearImmediate;var process2=globalThis2.process;var Dispatch=globalThis2.Dispatch;var Function2=globalThis2.Function;var MessageChannel2=globalThis2.MessageChannel;var String2=globalThis2.String;var counter=0;var queue={};var ONREADYSTATECHANGE="onreadystatechange";var $location;var defer;var channel;var port;fails(function(){$location=globalThis2.location});var run=function run(id){if(hasOwn(queue,id)){var fn=queue[id];delete queue[id];fn()}};var runner=function runner(id){return function(){run(id)}};var eventListener=function eventListener(event){run(event.data)};var globalPostMessageDefer=function globalPostMessageDefer(id){globalThis2.postMessage(String2(id),$location.protocol+"//"+$location.host)};if(!set||!clear){set=function setImmediate2(handler){validateArgumentsLength(arguments.length,1);var fn=isCallable(handler)?handler:Function2(handler);var args=arraySlice(arguments,1);queue[++counter]=function(){apply(fn,void 0,args)};defer(counter);return counter};clear=function clearImmediate(id){delete queue[id]};if(IS_NODE){defer=function defer(id){process2.nextTick(runner(id))}}else if(Dispatch&&Dispatch.now){defer=function defer(id){Dispatch.now(runner(id))}}else if(MessageChannel2&&!IS_IOS){channel=new MessageChannel2;port=channel.port2;channel.port1.onmessage=eventListener;defer=bind(port.postMessage,port)}else if(globalThis2.addEventListener&&isCallable(globalThis2.postMessage)&&!globalThis2.importScripts&&$location&&$location.protocol!=="file:"&&!fails(globalPostMessageDefer)){defer=globalPostMessageDefer;globalThis2.addEventListener("message",eventListener,false)}else if(ONREADYSTATECHANGE in createElement("script")){defer=function defer(id){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this);run(id)}}}else{defer=function defer(id){setTimeout(runner(id),0)}}}module.exports={set:set,clear:clear}}});// ../../node_modules/core-js/internals/queue.js
|
|
90
|
+
var require_queue=__commonJS({"../../node_modules/core-js/internals/queue.js":function __node_modules_coreJs_internals_queueJs(exports,module){"use strict";var Queue=function Queue(){this.head=null;this.tail=null};Queue.prototype={add:function add(item){var entry={item:item,next:null};var tail=this.tail;if(tail)tail.next=entry;else this.head=entry;this.tail=entry},get:function get(){var entry=this.head;if(entry){var next=this.head=entry.next;if(next===null)this.tail=null;return entry.item}}};module.exports=Queue}});// ../../node_modules/core-js/internals/environment-is-ios-pebble.js
|
|
91
|
+
var require_environment_is_ios_pebble=__commonJS({"../../node_modules/core-js/internals/environment-is-ios-pebble.js":function __node_modules_coreJs_internals_environmentIsIosPebbleJs(exports,module){"use strict";var userAgent=require_environment_user_agent();module.exports=/ipad|iphone|ipod/i.test(userAgent)&&typeof Pebble!="undefined"}});// ../../node_modules/core-js/internals/environment-is-webos-webkit.js
|
|
92
|
+
var require_environment_is_webos_webkit=__commonJS({"../../node_modules/core-js/internals/environment-is-webos-webkit.js":function __node_modules_coreJs_internals_environmentIsWebosWebkitJs(exports,module){"use strict";var userAgent=require_environment_user_agent();module.exports=/web0s(?!.*chrome)/i.test(userAgent)}});// ../../node_modules/core-js/internals/microtask.js
|
|
93
|
+
var require_microtask=__commonJS({"../../node_modules/core-js/internals/microtask.js":function __node_modules_coreJs_internals_microtaskJs(exports,module){"use strict";var globalThis2=require_global_this();var safeGetBuiltIn=require_safe_get_built_in();var bind=require_function_bind_context();var macrotask=require_task().set;var Queue=require_queue();var IS_IOS=require_environment_is_ios();var IS_IOS_PEBBLE=require_environment_is_ios_pebble();var IS_WEBOS_WEBKIT=require_environment_is_webos_webkit();var IS_NODE=require_environment_is_node();var MutationObserver=globalThis2.MutationObserver||globalThis2.WebKitMutationObserver;var document2=globalThis2.document;var process2=globalThis2.process;var Promise2=globalThis2.Promise;var microtask=safeGetBuiltIn("queueMicrotask");var notify;var toggle;var node;var promise;var then;if(!microtask){queue=new Queue;flush=function flush(){var parent,fn;if(IS_NODE&&(parent=process2.domain))parent.exit();while(fn=queue.get())try{fn()}catch(error){if(queue.head)notify();throw error}if(parent)parent.enter()};if(!IS_IOS&&!IS_NODE&&!IS_WEBOS_WEBKIT&&MutationObserver&&document2){toggle=true;node=document2.createTextNode("");new MutationObserver(flush).observe(node,{characterData:true});notify=function notify(){node.data=toggle=!toggle}}else if(!IS_IOS_PEBBLE&&Promise2&&Promise2.resolve){promise=Promise2.resolve(void 0);promise.constructor=Promise2;then=bind(promise.then,promise);notify=function notify(){then(flush)}}else if(IS_NODE){notify=function notify(){process2.nextTick(flush)}}else{macrotask=bind(macrotask,globalThis2);notify=function notify(){macrotask(flush)}}microtask=function microtask(fn){if(!queue.head)notify();queue.add(fn)}}var queue;var flush;module.exports=microtask}});// ../../node_modules/core-js/modules/web.queue-microtask.js
|
|
94
94
|
var require_web_queue_microtask=__commonJS({"../../node_modules/core-js/modules/web.queue-microtask.js":function __node_modules_coreJs_modules_webQueueMicrotaskJs(){"use strict";var $=require_export();var globalThis2=require_global_this();var microtask=require_microtask();var aCallable=require_a_callable();var validateArgumentsLength=require_validate_arguments_length();var fails=require_fails();var DESCRIPTORS=require_descriptors();var WRONG_ARITY=fails(function(){return DESCRIPTORS&&Object.getOwnPropertyDescriptor(globalThis2,"queueMicrotask").value.length!==1});$({global:true,enumerable:true,dontCallGetSet:true,forced:WRONG_ARITY},{queueMicrotask:function queueMicrotask(fn){validateArgumentsLength(arguments.length,1);microtask(aCallable(fn))}})}});// ../../node_modules/core-js/internals/path.js
|
|
95
|
-
var require_path=__commonJS({"../../node_modules/core-js/internals/path.js":function __node_modules_coreJs_internals_pathJs(
|
|
96
|
-
var require_queue_microtask=__commonJS({"../../node_modules/core-js/web/queue-microtask.js":function __node_modules_coreJs_web_queueMicrotaskJs(
|
|
97
|
-
var require_queue_microtask2=__commonJS({"../../node_modules/core-js/stable/queue-microtask.js":function __node_modules_coreJs_stable_queueMicrotaskJs(
|
|
98
|
-
var require_queue_microtask3=__commonJS({"../../node_modules/core-js/actual/queue-microtask.js":function __node_modules_coreJs_actual_queueMicrotaskJs(
|
|
99
|
-
var require_queue_microtask4=__commonJS({"../../node_modules/core-js/full/queue-microtask.js":function __node_modules_coreJs_full_queueMicrotaskJs(
|
|
100
|
-
var require_queue_microtask5=__commonJS({"../../node_modules/core-js/features/queue-microtask.js":function __node_modules_coreJs_features_queueMicrotaskJs(
|
|
101
|
-
var require_this_number_value=__commonJS({"../../node_modules/core-js/internals/this-number-value.js":function __node_modules_coreJs_internals_thisNumberValueJs(
|
|
95
|
+
var require_path=__commonJS({"../../node_modules/core-js/internals/path.js":function __node_modules_coreJs_internals_pathJs(exports,module){"use strict";var globalThis2=require_global_this();module.exports=globalThis2}});// ../../node_modules/core-js/web/queue-microtask.js
|
|
96
|
+
var require_queue_microtask=__commonJS({"../../node_modules/core-js/web/queue-microtask.js":function __node_modules_coreJs_web_queueMicrotaskJs(exports,module){"use strict";require_web_queue_microtask();var path=require_path();module.exports=path.queueMicrotask}});// ../../node_modules/core-js/stable/queue-microtask.js
|
|
97
|
+
var require_queue_microtask2=__commonJS({"../../node_modules/core-js/stable/queue-microtask.js":function __node_modules_coreJs_stable_queueMicrotaskJs(exports,module){"use strict";var parent=require_queue_microtask();module.exports=parent}});// ../../node_modules/core-js/actual/queue-microtask.js
|
|
98
|
+
var require_queue_microtask3=__commonJS({"../../node_modules/core-js/actual/queue-microtask.js":function __node_modules_coreJs_actual_queueMicrotaskJs(exports,module){"use strict";var parent=require_queue_microtask2();module.exports=parent}});// ../../node_modules/core-js/full/queue-microtask.js
|
|
99
|
+
var require_queue_microtask4=__commonJS({"../../node_modules/core-js/full/queue-microtask.js":function __node_modules_coreJs_full_queueMicrotaskJs(exports,module){"use strict";var parent=require_queue_microtask3();module.exports=parent}});// ../../node_modules/core-js/features/queue-microtask.js
|
|
100
|
+
var require_queue_microtask5=__commonJS({"../../node_modules/core-js/features/queue-microtask.js":function __node_modules_coreJs_features_queueMicrotaskJs(exports,module){"use strict";module.exports=require_queue_microtask4()}});// ../../node_modules/core-js/internals/this-number-value.js
|
|
101
|
+
var require_this_number_value=__commonJS({"../../node_modules/core-js/internals/this-number-value.js":function __node_modules_coreJs_internals_thisNumberValueJs(exports,module){"use strict";var uncurryThis=require_function_uncurry_this();module.exports=uncurryThis(1.1.valueOf)}});// ../../node_modules/core-js/modules/es.number.to-precision.js
|
|
102
102
|
var require_es_number_to_precision=__commonJS({"../../node_modules/core-js/modules/es.number.to-precision.js":function __node_modules_coreJs_modules_esNumberToPrecisionJs(){"use strict";var $=require_export();var uncurryThis=require_function_uncurry_this();var fails=require_fails();var thisNumberValue=require_this_number_value();var nativeToPrecision=uncurryThis(1.1.toPrecision);var FORCED=fails(function(){return nativeToPrecision(1,void 0)!=="1"})||!fails(function(){nativeToPrecision({})});$({target:"Number",proto:true,forced:FORCED},{toPrecision:function toPrecision(precision){return precision===void 0?nativeToPrecision(thisNumberValue(this)):nativeToPrecision(thisNumberValue(this),precision)}})}});// ../../node_modules/core-js/internals/entry-unbind.js
|
|
103
|
-
var require_entry_unbind=__commonJS({"../../node_modules/core-js/internals/entry-unbind.js":function __node_modules_coreJs_internals_entryUnbindJs(
|
|
104
|
-
var require_to_precision=__commonJS({"../../node_modules/core-js/es/number/to-precision.js":function __node_modules_coreJs_es_number_toPrecisionJs(
|
|
105
|
-
var require_to_precision2=__commonJS({"../../node_modules/core-js/stable/number/to-precision.js":function __node_modules_coreJs_stable_number_toPrecisionJs(
|
|
106
|
-
var require_to_precision3=__commonJS({"../../node_modules/core-js/actual/number/to-precision.js":function __node_modules_coreJs_actual_number_toPrecisionJs(
|
|
107
|
-
var require_to_precision4=__commonJS({"../../node_modules/core-js/full/number/to-precision.js":function __node_modules_coreJs_full_number_toPrecisionJs(
|
|
108
|
-
var require_to_precision5=__commonJS({"../../node_modules/core-js/features/number/to-precision.js":function __node_modules_coreJs_features_number_toPrecisionJs(
|
|
109
|
-
var require_to_string_tag_support=__commonJS({"../../node_modules/core-js/internals/to-string-tag-support.js":function __node_modules_coreJs_internals_toStringTagSupportJs(
|
|
110
|
-
var require_classof=__commonJS({"../../node_modules/core-js/internals/classof.js":function __node_modules_coreJs_internals_classofJs(
|
|
111
|
-
var require_to_string=__commonJS({"../../node_modules/core-js/internals/to-string.js":function __node_modules_coreJs_internals_toStringJs(
|
|
112
|
-
var require_string_repeat=__commonJS({"../../node_modules/core-js/internals/string-repeat.js":function __node_modules_coreJs_internals_stringRepeatJs(
|
|
103
|
+
var require_entry_unbind=__commonJS({"../../node_modules/core-js/internals/entry-unbind.js":function __node_modules_coreJs_internals_entryUnbindJs(exports,module){"use strict";var globalThis2=require_global_this();var uncurryThis=require_function_uncurry_this();module.exports=function(CONSTRUCTOR,METHOD){return uncurryThis(globalThis2[CONSTRUCTOR].prototype[METHOD])}}});// ../../node_modules/core-js/es/number/to-precision.js
|
|
104
|
+
var require_to_precision=__commonJS({"../../node_modules/core-js/es/number/to-precision.js":function __node_modules_coreJs_es_number_toPrecisionJs(exports,module){"use strict";require_es_number_to_precision();var entryUnbind=require_entry_unbind();module.exports=entryUnbind("Number","toPrecision")}});// ../../node_modules/core-js/stable/number/to-precision.js
|
|
105
|
+
var require_to_precision2=__commonJS({"../../node_modules/core-js/stable/number/to-precision.js":function __node_modules_coreJs_stable_number_toPrecisionJs(exports,module){"use strict";var parent=require_to_precision();module.exports=parent}});// ../../node_modules/core-js/actual/number/to-precision.js
|
|
106
|
+
var require_to_precision3=__commonJS({"../../node_modules/core-js/actual/number/to-precision.js":function __node_modules_coreJs_actual_number_toPrecisionJs(exports,module){"use strict";var parent=require_to_precision2();module.exports=parent}});// ../../node_modules/core-js/full/number/to-precision.js
|
|
107
|
+
var require_to_precision4=__commonJS({"../../node_modules/core-js/full/number/to-precision.js":function __node_modules_coreJs_full_number_toPrecisionJs(exports,module){"use strict";var parent=require_to_precision3();module.exports=parent}});// ../../node_modules/core-js/features/number/to-precision.js
|
|
108
|
+
var require_to_precision5=__commonJS({"../../node_modules/core-js/features/number/to-precision.js":function __node_modules_coreJs_features_number_toPrecisionJs(exports,module){"use strict";module.exports=require_to_precision4()}});// ../../node_modules/core-js/internals/to-string-tag-support.js
|
|
109
|
+
var require_to_string_tag_support=__commonJS({"../../node_modules/core-js/internals/to-string-tag-support.js":function __node_modules_coreJs_internals_toStringTagSupportJs(exports,module){"use strict";var wellKnownSymbol=require_well_known_symbol();var TO_STRING_TAG=wellKnownSymbol("toStringTag");var test={};test[TO_STRING_TAG]="z";module.exports=String(test)==="[object z]"}});// ../../node_modules/core-js/internals/classof.js
|
|
110
|
+
var require_classof=__commonJS({"../../node_modules/core-js/internals/classof.js":function __node_modules_coreJs_internals_classofJs(exports,module){"use strict";var TO_STRING_TAG_SUPPORT=require_to_string_tag_support();var isCallable=require_is_callable();var classofRaw=require_classof_raw();var wellKnownSymbol=require_well_known_symbol();var TO_STRING_TAG=wellKnownSymbol("toStringTag");var $Object=Object;var CORRECT_ARGUMENTS=classofRaw(/* @__PURE__ */function(){return arguments}())==="Arguments";var tryGet=function tryGet(it,key){try{return it[key]}catch(error){}};module.exports=TO_STRING_TAG_SUPPORT?classofRaw:function(it){var O,tag,result;return it===void 0?"Undefined":it===null?"Null":typeof(tag=tryGet(O=$Object(it),TO_STRING_TAG))=="string"?tag:CORRECT_ARGUMENTS?classofRaw(O):(result=classofRaw(O))==="Object"&&isCallable(O.callee)?"Arguments":result}}});// ../../node_modules/core-js/internals/to-string.js
|
|
111
|
+
var require_to_string=__commonJS({"../../node_modules/core-js/internals/to-string.js":function __node_modules_coreJs_internals_toStringJs(exports,module){"use strict";var classof=require_classof();var $String=String;module.exports=function(argument){if(classof(argument)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return $String(argument)}}});// ../../node_modules/core-js/internals/string-repeat.js
|
|
112
|
+
var require_string_repeat=__commonJS({"../../node_modules/core-js/internals/string-repeat.js":function __node_modules_coreJs_internals_stringRepeatJs(exports,module){"use strict";var toIntegerOrInfinity=require_to_integer_or_infinity();var toString=require_to_string();var requireObjectCoercible=require_require_object_coercible();var $RangeError=RangeError;var floor=Math.floor;module.exports=function repeat(count){var str=toString(requireObjectCoercible(this));var result="";var n=toIntegerOrInfinity(count);if(n<0||n===Infinity)throw new $RangeError("Wrong number of repetitions");for(;n>0;(n=floor(n/2))&&(str+=str))if(n%2)result+=str;return result}}});// ../../node_modules/core-js/modules/es.number.to-fixed.js
|
|
113
113
|
var require_es_number_to_fixed=__commonJS({"../../node_modules/core-js/modules/es.number.to-fixed.js":function __node_modules_coreJs_modules_esNumberToFixedJs(){"use strict";var $=require_export();var uncurryThis=require_function_uncurry_this();var toIntegerOrInfinity=require_to_integer_or_infinity();var thisNumberValue=require_this_number_value();var $repeat=require_string_repeat();var fails=require_fails();var $RangeError=RangeError;var $String=String;var floor=Math.floor;var repeat=uncurryThis($repeat);var stringSlice=uncurryThis("".slice);var nativeToFixed=uncurryThis(1.1.toFixed);var _pow=function pow(x,n,acc){return n===0?acc:n%2===1?_pow(x,n-1,acc*x):_pow(x*x,n/2,acc)};var log=function log(x){var n=0;var x2=x;while(x2>=4096){n+=12;x2/=4096}while(x2>=2){n+=1;x2/=2}return n};var multiply=function multiply(data,n,c){var index=-1;var c2=c;while(++index<6){c2+=n*data[index];data[index]=c2%1e7;c2=floor(c2/1e7)}};var divide=function divide(data,n){var index=6;var c=0;while(--index>=0){c+=data[index];data[index]=floor(c/n);c=c%n*1e7}};var dataToString=function dataToString(data){var index=6;var s="";while(--index>=0){if(s!==""||index===0||data[index]!==0){var t=$String(data[index]);s=s===""?t:s+repeat("0",7-t.length)+t}}return s};var FORCED=fails(function(){return nativeToFixed(8e-5,3)!=="0.000"||nativeToFixed(0.9,0)!=="1"||nativeToFixed(1.255,2)!=="1.25"||nativeToFixed(1000000000000000100,0)!=="1000000000000000128"})||!fails(function(){nativeToFixed({})});$({target:"Number",proto:true,forced:FORCED},{toFixed:function toFixed(fractionDigits){var number=thisNumberValue(this);var fractDigits=toIntegerOrInfinity(fractionDigits);var data=[0,0,0,0,0,0];var sign="";var result="0";var e,z,j,k;if(fractDigits<0||fractDigits>20)throw new $RangeError("Incorrect fraction digits");if(number!==number)return"NaN";if(number<=-1e21||number>=1e21)return $String(number);if(number<0){sign="-";number=-number}if(number>1e-21){e=log(number*_pow(2,69,1))-69;z=e<0?number*_pow(2,-e,1):number/_pow(2,e,1);z*=4503599627370496;e=52-e;if(e>0){multiply(data,0,z);j=fractDigits;while(j>=7){multiply(data,1e7,0);j-=7}multiply(data,_pow(10,j,1),0);j=e-1;while(j>=23){divide(data,1<<23);j-=23}divide(data,1<<j);multiply(data,1,1);divide(data,2);result=dataToString(data)}else{multiply(data,0,z);multiply(data,1<<-e,0);result=dataToString(data)+repeat("0",fractDigits)}}if(fractDigits>0){k=result.length;result=sign+(k<=fractDigits?"0."+repeat("0",fractDigits-k)+result:stringSlice(result,0,k-fractDigits)+"."+stringSlice(result,k-fractDigits))}else{result=sign+result}return result}})}});// ../../node_modules/core-js/es/number/to-fixed.js
|
|
114
|
-
var require_to_fixed=__commonJS({"../../node_modules/core-js/es/number/to-fixed.js":function __node_modules_coreJs_es_number_toFixedJs(
|
|
115
|
-
var require_to_fixed2=__commonJS({"../../node_modules/core-js/stable/number/to-fixed.js":function __node_modules_coreJs_stable_number_toFixedJs(
|
|
116
|
-
var require_to_fixed3=__commonJS({"../../node_modules/core-js/actual/number/to-fixed.js":function __node_modules_coreJs_actual_number_toFixedJs(
|
|
117
|
-
var require_to_fixed4=__commonJS({"../../node_modules/core-js/full/number/to-fixed.js":function __node_modules_coreJs_full_number_toFixedJs(
|
|
118
|
-
var require_to_fixed5=__commonJS({"../../node_modules/core-js/features/number/to-fixed.js":function __node_modules_coreJs_features_number_toFixedJs(
|
|
119
|
-
var require_jasmine=__commonJS({"../../node_modules/jasmine-core/lib/jasmine-core/jasmine.js":function __node_modules_jasmineCore_lib_jasmineCore_jasmineJs(exports,module){var getJasmineRequireObj=function(jasmineGlobal){var jasmineRequire2;if(typeof module!=="undefined"&&module.exports&&typeof exports!=="undefined"){if(typeof globalThis!=="undefined"){jasmineGlobal=globalThis}else{jasmineGlobal={}}jasmineRequire2=exports}else{if(typeof window!=="undefined"&&typeof window.toString==="function"&&window.toString()==="[object GjsGlobal]"){jasmineGlobal=window}jasmineRequire2=jasmineGlobal.jasmineRequire={}}function getJasmineRequire(){return jasmineRequire2}getJasmineRequire().core=function(jRequire){var j$2={};jRequire.base(j$2,jasmineGlobal);j$2.util=jRequire.util(j$2);j$2.errors=jRequire.errors();j$2.formatErrorMsg=jRequire.formatErrorMsg();j$2.AllOf=jRequire.AllOf(j$2);j$2.Any=jRequire.Any(j$2);j$2.Anything=jRequire.Anything(j$2);j$2.CallTracker=jRequire.CallTracker(j$2);j$2.MockDate=jRequire.MockDate(j$2);j$2.getClearStack=jRequire.clearStack(j$2);j$2.Clock=jRequire.Clock();j$2.DelayedFunctionScheduler=jRequire.DelayedFunctionScheduler(j$2);j$2.Deprecator=jRequire.Deprecator(j$2);j$2.Configuration=jRequire.Configuration(j$2);j$2.Env=jRequire.Env(j$2);j$2.StackTrace=jRequire.StackTrace(j$2);j$2.ExceptionFormatter=jRequire.ExceptionFormatter(j$2);j$2.ExpectationFilterChain=jRequire.ExpectationFilterChain();j$2.Expector=jRequire.Expector(j$2);j$2.Expectation=jRequire.Expectation(j$2);j$2.buildExpectationResult=jRequire.buildExpectationResult(j$2);j$2.JsApiReporter=jRequire.JsApiReporter(j$2);j$2.makePrettyPrinter=jRequire.makePrettyPrinter(j$2);j$2.basicPrettyPrinter_=j$2.makePrettyPrinter();j$2.MatchersUtil=jRequire.MatchersUtil(j$2);j$2.ObjectContaining=jRequire.ObjectContaining(j$2);j$2.ArrayContaining=jRequire.ArrayContaining(j$2);j$2.ArrayWithExactContents=jRequire.ArrayWithExactContents(j$2);j$2.MapContaining=jRequire.MapContaining(j$2);j$2.SetContaining=jRequire.SetContaining(j$2);j$2.QueueRunner=jRequire.QueueRunner(j$2);j$2.NeverSkipPolicy=jRequire.NeverSkipPolicy(j$2);j$2.SkipAfterBeforeAllErrorPolicy=jRequire.SkipAfterBeforeAllErrorPolicy(j$2);j$2.CompleteOnFirstErrorSkipPolicy=jRequire.CompleteOnFirstErrorSkipPolicy(j$2);j$2.reporterEvents=jRequire.reporterEvents(j$2);j$2.ReportDispatcher=jRequire.ReportDispatcher(j$2);j$2.ParallelReportDispatcher=jRequire.ParallelReportDispatcher(j$2);j$2.CurrentRunableTracker=jRequire.CurrentRunableTracker();j$2.RunableResources=jRequire.RunableResources(j$2);j$2.Runner=jRequire.Runner(j$2);j$2.Spec=jRequire.Spec(j$2);j$2.Spy=jRequire.Spy(j$2);j$2.SpyFactory=jRequire.SpyFactory(j$2);j$2.SpyRegistry=jRequire.SpyRegistry(j$2);j$2.SpyStrategy=jRequire.SpyStrategy(j$2);j$2.StringMatching=jRequire.StringMatching(j$2);j$2.StringContaining=jRequire.StringContaining(j$2);j$2.UserContext=jRequire.UserContext(j$2);j$2.Suite=jRequire.Suite(j$2);j$2.SuiteBuilder=jRequire.SuiteBuilder(j$2);j$2.Timer=jRequire.Timer();j$2.TreeProcessor=jRequire.TreeProcessor(j$2);j$2.TreeRunner=jRequire.TreeRunner(j$2);j$2.version=jRequire.version();j$2.Order=jRequire.Order();j$2.DiffBuilder=jRequire.DiffBuilder(j$2);j$2.NullDiffBuilder=jRequire.NullDiffBuilder(j$2);j$2.ObjectPath=jRequire.ObjectPath(j$2);j$2.MismatchTree=jRequire.MismatchTree(j$2);var GlobalErrors=jRequire.GlobalErrors(j$2);Object.defineProperty(j$2,"GlobalErrors",{enumerable:true,configurable:false,get:function get(){return GlobalErrors},set:function set(){}});j$2.Truthy=jRequire.Truthy(j$2);j$2.Falsy=jRequire.Falsy(j$2);j$2.Empty=jRequire.Empty(j$2);j$2.NotEmpty=jRequire.NotEmpty(j$2);j$2.Is=jRequire.Is(j$2);j$2.matchers=jRequire.requireMatchers(jRequire,j$2);j$2.asyncMatchers=jRequire.requireAsyncMatchers(jRequire,j$2);return j$2};return getJasmineRequire}(exports);getJasmineRequireObj().requireMatchers=function(jRequire,j$2){var availableMatchers=["nothing","toBe","toBeCloseTo","toBeDefined","toBeInstanceOf","toBeFalse","toBeFalsy","toBeGreaterThan","toBeGreaterThanOrEqual","toBeLessThan","toBeLessThanOrEqual","toBeNaN","toBeNegativeInfinity","toBeNull","toBePositiveInfinity","toBeTrue","toBeTruthy","toBeUndefined","toBeNullish","toContain","toEqual","toHaveSize","toHaveBeenCalled","toHaveBeenCalledBefore","toHaveBeenCalledOnceWith","toHaveBeenCalledTimes","toHaveBeenCalledWith","toHaveClass","toHaveClasses","toHaveSpyInteractions","toHaveNoOtherSpyInteractions","toMatch","toThrow","toThrowError","toThrowMatching"],matchers={};for(var _i=0,_availableMatchers=availableMatchers;_i<_availableMatchers.length;_i++){var name=_availableMatchers[_i];matchers[name]=jRequire[name](j$2)}return matchers};getJasmineRequireObj().base=function(j$2,jasmineGlobal){j$2.MAX_PRETTY_PRINT_DEPTH=8;j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH=50;j$2.MAX_PRETTY_PRINT_CHARS=1e3;var DEFAULT_TIMEOUT_INTERVAL=5e3;Object.defineProperty(j$2,"DEFAULT_TIMEOUT_INTERVAL",{get:function get(){return DEFAULT_TIMEOUT_INTERVAL},set:function set(newValue){j$2.util.validateTimeout(newValue,"jasmine.DEFAULT_TIMEOUT_INTERVAL");DEFAULT_TIMEOUT_INTERVAL=newValue}});j$2.getGlobal=function(){return jasmineGlobal};j$2.getEnv=function(options){var env=j$2.currentEnv_=j$2.currentEnv_||new j$2.Env(options);return env};j$2.isArray_=function(value){return j$2.isA_("Array",value)};j$2.isObject_=function(value){return value!==void 0&&value!==null&&j$2.isA_("Object",value)};j$2.isString_=function(value){return j$2.isA_("String",value)};j$2.isNumber_=function(value){return j$2.isA_("Number",value)};j$2.isFunction_=function(value){return j$2.isA_("Function",value)};j$2.isAsyncFunction_=function(value){return j$2.isA_("AsyncFunction",value)};j$2.isGeneratorFunction_=function(value){return j$2.isA_("GeneratorFunction",value)};j$2.isTypedArray_=function(value){return j$2.isA_("Float32Array",value)||j$2.isA_("Float64Array",value)||j$2.isA_("Int16Array",value)||j$2.isA_("Int32Array",value)||j$2.isA_("Int8Array",value)||j$2.isA_("Uint16Array",value)||j$2.isA_("Uint32Array",value)||j$2.isA_("Uint8Array",value)||j$2.isA_("Uint8ClampedArray",value)};j$2.isA_=function(typeName,value){return j$2.getType_(value)==="[object "+typeName+"]"};j$2.isError_=function(value){if(!value){return false}if(value instanceof Error){return true}return typeof value.stack==="string"&&typeof value.message==="string"};j$2.isAsymmetricEqualityTester_=function(obj){return obj?j$2.isA_("Function",obj.asymmetricMatch):false};j$2.getType_=function(value){return Object.prototype.toString.apply(value)};j$2.isDomNode=function(obj){return typeof jasmineGlobal.Node!=="undefined"?obj instanceof jasmineGlobal.Node:obj!==null&&_typeof(obj)==="object"&&typeof obj.nodeType==="number"&&typeof obj.nodeName==="string"};j$2.isMap=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.Map};j$2.isSet=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.Set};j$2.isWeakMap=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.WeakMap};j$2.isURL=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.URL};j$2.isIterable_=function(value){return value&&!!value[Symbol.iterator]};j$2.isDataView=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.DataView};j$2.isPromise=function(obj){return!!obj&&obj.constructor===jasmineGlobal.Promise};j$2.isPromiseLike=function(obj){return!!obj&&j$2.isFunction_(obj.then)};j$2.fnNameFor=function(func){if(func.name){return func.name}var matches=func.toString().match(/^\s*function\s*(\w+)\s*\(/)||func.toString().match(/^\s*\[object\s*(\w+)Constructor\]/);return matches?matches[1]:"<anonymous>"};j$2.isPending_=function(promise){var sentinel={};return Promise.race([promise,Promise.resolve(sentinel)]).then(function(result){return result===sentinel},function(){return false})};j$2.allOf=function(){return _construct(j$2.AllOf,Array.prototype.slice.call(arguments))};j$2.any=function(clazz){return new j$2.Any(clazz)};j$2.anything=function(){return new j$2.Anything};j$2.truthy=function(){return new j$2.Truthy};j$2.falsy=function(){return new j$2.Falsy};j$2.empty=function(){return new j$2.Empty};j$2.is=function(sample){return new j$2.Is(sample)};j$2.notEmpty=function(){return new j$2.NotEmpty};j$2.objectContaining=function(sample){return new j$2.ObjectContaining(sample)};j$2.stringMatching=function(expected){return new j$2.StringMatching(expected)};j$2.stringContaining=function(expected){return new j$2.StringContaining(expected)};j$2.arrayContaining=function(sample){return new j$2.ArrayContaining(sample)};j$2.arrayWithExactContents=function(sample){return new j$2.ArrayWithExactContents(sample)};j$2.mapContaining=function(sample){return new j$2.MapContaining(sample)};j$2.setContaining=function(sample){return new j$2.SetContaining(sample)};j$2.isSpy=function(putativeSpy){if(!putativeSpy){return false}return putativeSpy.and instanceof j$2.SpyStrategy&&putativeSpy.calls instanceof j$2.CallTracker};j$2.debugLog=function(msg){j$2.getEnv().debugLog(msg)};j$2.spyOnGlobalErrorsAsync=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(fn){return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:_context.n=1;return jasmine.getEnv().spyOnGlobalErrorsAsync(fn);case 1:return _context.a(2)}},_callee)}));return function(_x){return _ref.apply(this,arguments)}}()};getJasmineRequireObj().util=function(j$2){var util={};util.clone=function(obj){if(Object.prototype.toString.apply(obj)==="[object Array]"){return obj.slice()}var cloned={};for(var prop in obj){if(obj.hasOwnProperty(prop)){cloned[prop]=obj[prop]}}return cloned};util.cloneArgs=function(args){return Array.from(args).map(function(arg){var str=Object.prototype.toString.apply(arg),primitives=/^\[object (Boolean|String|RegExp|Number)/;if(!arg||str.match(primitives)){return arg}else if(str==="[object Date]"){return new Date(arg.valueOf())}else{return j$2.util.clone(arg)}})};util.getPropertyDescriptor=function(obj,methodName){var descriptor,proto=obj;do{descriptor=Object.getOwnPropertyDescriptor(proto,methodName);proto=Object.getPrototypeOf(proto)}while(!descriptor&&proto);return descriptor};util.has=function(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)};function callerFile(){var trace=new j$2.StackTrace(new Error());return trace.frames[1].file}util.jasmineFile=/* @__PURE__ */function(){var result;return function(){if(!result){result=callerFile()}return result}}();util.validateTimeout=function(timeout,msgPrefix){var max=2147483647;if(timeout>max){throw new Error((msgPrefix||"Timeout value")+" cannot be greater than "+max)}};return util};getJasmineRequireObj().Spec=function(j$2){var _autoCleanClosures,_throwOnExpectationFailure,_timer,_metadata,_Spec_instances,status_fn;var _Spec=/*#__PURE__*/function(){"use strict";function _Spec(attrs){_classCallCheck(this,_Spec);__privateAdd(this,_Spec_instances);__privateAdd(this,_autoCleanClosures);__privateAdd(this,_throwOnExpectationFailure);__privateAdd(this,_timer);__privateAdd(this,_metadata);this.expectationFactory=attrs.expectationFactory;this.asyncExpectationFactory=attrs.asyncExpectationFactory;this.id=attrs.id;this.filename=attrs.filename;this.parentSuiteId=attrs.parentSuiteId;this.description=attrs.description||"";this.queueableFn=attrs.queueableFn;this.beforeAndAfterFns=attrs.beforeAndAfterFns||function(){return{befores:[],afters:[]}};this.userContext=attrs.userContext||function(){return{}};this.getPath=function(){return attrs.getPath?attrs.getPath(this):[]};__privateSet(this,_autoCleanClosures,attrs.autoCleanClosures===void 0?true:!!attrs.autoCleanClosures);this.onLateError=attrs.onLateError||function(){};__privateSet(this,_throwOnExpectationFailure,!!attrs.throwOnExpectationFailure);__privateSet(this,_timer,attrs.timer||new j$2.Timer);if(!this.queueableFn.fn){this.exclude()}this.reset()}return _createClass(_Spec,[{key:"addExpectationResult",value:function addExpectationResult(passed,data,isError){var expectationResult=j$2.buildExpectationResult(data);if(passed){this.result.passedExpectations.push(expectationResult)}else{if(this.reportedDone){this.onLateError(expectationResult)}else{this.result.failedExpectations.push(expectationResult);if(this.result.status){this.result.status="failed"}}if(__privateGet(this,_throwOnExpectationFailure)&&!isError){throw new j$2.errors.ExpectationFailed}}}},{key:"getSpecProperty",value:function getSpecProperty(key){this.result.properties=this.result.properties||{};return this.result.properties[key]}},{key:"setSpecProperty",value:function setSpecProperty(key,value){this.result.properties=this.result.properties||{};this.result.properties[key]=value}},{key:"executionStarted",value:function executionStarted(){__privateGet(this,_timer).start()}},{key:"executionFinished",value:function executionFinished(excluded,failSpecWithNoExp){if(__privateGet(this,_autoCleanClosures)){this.queueableFn.fn=null}this.result.status=__privateMethod(this,_Spec_instances,status_fn).call(this,excluded,failSpecWithNoExp);this.result.duration=__privateGet(this,_timer).elapsed();if(this.result.status!=="failed"){this.result.debugLogs=null}}},{key:"reset",value:function reset(){this.result={id:this.id,description:this.description,fullName:this.getFullName(),parentSuiteId:this.parentSuiteId,filename:this.filename,failedExpectations:[],passedExpectations:[],deprecationWarnings:[],pendingReason:this.excludeMessage||"",duration:null,properties:null,debugLogs:null};this.markedPending=this.markedExcluding;this.reportedDone=false}},{key:"handleException",value:function handleException(e){if(_Spec.isPendingSpecException(e)){this.pend(extractCustomPendingMessage(e));return}if(e instanceof j$2.errors.ExpectationFailed){return}this.addExpectationResult(false,{matcherName:"",passed:false,expected:"",actual:"",error:e},true)}},{key:"pend",value:function pend(message){this.markedPending=true;if(message){this.result.pendingReason=message}}// Like pend(), but pending state will survive reset().
|
|
114
|
+
var require_to_fixed=__commonJS({"../../node_modules/core-js/es/number/to-fixed.js":function __node_modules_coreJs_es_number_toFixedJs(exports,module){"use strict";require_es_number_to_fixed();var entryUnbind=require_entry_unbind();module.exports=entryUnbind("Number","toFixed")}});// ../../node_modules/core-js/stable/number/to-fixed.js
|
|
115
|
+
var require_to_fixed2=__commonJS({"../../node_modules/core-js/stable/number/to-fixed.js":function __node_modules_coreJs_stable_number_toFixedJs(exports,module){"use strict";var parent=require_to_fixed();module.exports=parent}});// ../../node_modules/core-js/actual/number/to-fixed.js
|
|
116
|
+
var require_to_fixed3=__commonJS({"../../node_modules/core-js/actual/number/to-fixed.js":function __node_modules_coreJs_actual_number_toFixedJs(exports,module){"use strict";var parent=require_to_fixed2();module.exports=parent}});// ../../node_modules/core-js/full/number/to-fixed.js
|
|
117
|
+
var require_to_fixed4=__commonJS({"../../node_modules/core-js/full/number/to-fixed.js":function __node_modules_coreJs_full_number_toFixedJs(exports,module){"use strict";var parent=require_to_fixed3();module.exports=parent}});// ../../node_modules/core-js/features/number/to-fixed.js
|
|
118
|
+
var require_to_fixed5=__commonJS({"../../node_modules/core-js/features/number/to-fixed.js":function __node_modules_coreJs_features_number_toFixedJs(exports,module){"use strict";module.exports=require_to_fixed4()}});// ../../node_modules/jasmine-core/lib/jasmine-core/jasmine.js
|
|
119
|
+
var require_jasmine=__commonJS({"../../node_modules/jasmine-core/lib/jasmine-core/jasmine.js":function __node_modules_jasmineCore_lib_jasmineCore_jasmineJs(exports,module){var getJasmineRequireObj=function(){"use strict";var jasmineRequire2;if(typeof module!=="undefined"&&module.exports&&typeof exports!=="undefined"){jasmineRequire2=exports}else{jasmineRequire2=globalThis.jasmineRequire={}}function getJasmineRequire(){return jasmineRequire2}var loadedAsBrowserEsm=globalThis.document&&!globalThis.document.currentScript;getJasmineRequire().core=function(jRequire){var j$={};Object.defineProperty(j$,"private",{enumerable:true,value:{}});jRequire.base(j$,globalThis);j$["private"].deprecateMonkeyPatching=jRequire.deprecateMonkeyPatching(j$);j$["private"].util=jRequire.util(j$);j$["private"].errors=jRequire.errors();j$["private"].formatErrorMsg=jRequire.formatErrorMsg(j$);j$["private"].AllOf=jRequire.AllOf(j$);j$["private"].Any=jRequire.Any(j$);j$["private"].Anything=jRequire.Anything(j$);j$["private"].CallTracker=jRequire.CallTracker(j$);j$["private"].MockDate=jRequire.MockDate(j$);j$["private"].getStackClearer=jRequire.StackClearer(j$);j$["private"].Clock=jRequire.Clock(j$);j$["private"].DelayedFunctionScheduler=jRequire.DelayedFunctionScheduler(j$);j$["private"].Deprecator=jRequire.Deprecator(j$);j$["private"].Configuration=jRequire.Configuration(j$);j$["private"].Env=jRequire.Env(j$);j$["private"].StackTrace=jRequire.StackTrace(j$);j$["private"].ExceptionFormatter=jRequire.ExceptionFormatter(j$);j$["private"].ExpectationFilterChain=jRequire.ExpectationFilterChain();j$["private"].Expector=jRequire.Expector(j$);j$["private"].Expectation=jRequire.Expectation(j$);j$["private"].buildExpectationResult=jRequire.buildExpectationResult(j$);j$["private"].JsApiReporter=jRequire.JsApiReporter(j$);j$["private"].makePrettyPrinter=jRequire.makePrettyPrinter(j$);j$["private"].basicPrettyPrinter=j$["private"].makePrettyPrinter();j$["private"].MatchersUtil=jRequire.MatchersUtil(j$);j$["private"].ObjectContaining=jRequire.ObjectContaining(j$);j$["private"].ArrayContaining=jRequire.ArrayContaining(j$);j$["private"].ArrayWithExactContents=jRequire.ArrayWithExactContents(j$);j$["private"].MapContaining=jRequire.MapContaining(j$);j$["private"].SetContaining=jRequire.SetContaining(j$);j$["private"].QueueRunner=jRequire.QueueRunner(j$);j$["private"].NeverSkipPolicy=jRequire.NeverSkipPolicy(j$);j$["private"].SkipAfterBeforeAllErrorPolicy=jRequire.SkipAfterBeforeAllErrorPolicy(j$);j$["private"].CompleteOnFirstErrorSkipPolicy=jRequire.CompleteOnFirstErrorSkipPolicy(j$);j$["private"].reporterEvents=jRequire.reporterEvents(j$);j$["private"].ReportDispatcher=jRequire.ReportDispatcher(j$);j$.ParallelReportDispatcher=jRequire.ParallelReportDispatcher(j$);j$["private"].CurrentRunableTracker=jRequire.CurrentRunableTracker();j$["private"].RunableResources=jRequire.RunableResources(j$);j$["private"].Runner=jRequire.Runner(j$);j$["private"].Spec=jRequire.Spec(j$);j$["private"].Spy=jRequire.Spy(j$);j$["private"].SpyFactory=jRequire.SpyFactory(j$);j$["private"].SpyRegistry=jRequire.SpyRegistry(j$);j$["private"].SpyStrategy=jRequire.SpyStrategy(j$);j$["private"].StringMatching=jRequire.StringMatching(j$);j$["private"].StringContaining=jRequire.StringContaining(j$);j$["private"].UserContext=jRequire.UserContext(j$);j$["private"].Suite=jRequire.Suite(j$);j$["private"].SuiteBuilder=jRequire.SuiteBuilder(j$);j$.Timer=jRequire.Timer();j$["private"].TreeProcessor=jRequire.TreeProcessor(j$);j$["private"].TreeRunner=jRequire.TreeRunner(j$);j$.version=jRequire.version();j$["private"].Order=jRequire.Order();j$["private"].DiffBuilder=jRequire.DiffBuilder(j$);j$["private"].NullDiffBuilder=jRequire.NullDiffBuilder(j$);j$["private"].ObjectPath=jRequire.ObjectPath(j$);j$["private"].MismatchTree=jRequire.MismatchTree(j$);j$["private"].GlobalErrors=jRequire.GlobalErrors(j$);j$["private"].Truthy=jRequire.Truthy(j$);j$["private"].Falsy=jRequire.Falsy(j$);j$["private"].Empty=jRequire.Empty(j$);j$["private"].NotEmpty=jRequire.NotEmpty(j$);j$["private"].Is=jRequire.Is(j$);j$["private"].matchers=jRequire.requireMatchers(jRequire,j$);j$["private"].asyncMatchers=jRequire.requireAsyncMatchers(jRequire,j$);j$["private"].loadedAsBrowserEsm=loadedAsBrowserEsm;j$["private"].deprecateMonkeyPatching(j$,[// These are meant to be set by users.
|
|
120
|
+
"DEFAULT_TIMEOUT_INTERVAL","MAX_PRETTY_PRINT_ARRAY_LENGTH","MAX_PRETTY_PRINT_CHARS","MAX_PRETTY_PRINT_DEPTH",// These are part of the deprecation warning mechanism. To avoid infinite
|
|
121
|
+
// recursion, they're separately protected in a way that doesn't emit
|
|
122
|
+
// deprecation warnings.
|
|
123
|
+
"private","getEnv"]);return j$};return getJasmineRequire}(exports);getJasmineRequireObj().requireMatchers=function(jRequire,j$){"use strict";var availableMatchers=["nothing","toBe","toBeCloseTo","toBeDefined","toBeInstanceOf","toBeFalse","toBeFalsy","toBeGreaterThan","toBeGreaterThanOrEqual","toBeLessThan","toBeLessThanOrEqual","toBeNaN","toBeNegativeInfinity","toBeNull","toBePositiveInfinity","toBeTrue","toBeTruthy","toBeUndefined","toBeNullish","toContain","toEqual","toHaveSize","toHaveBeenCalled","toHaveBeenCalledBefore","toHaveBeenCalledOnceWith","toHaveBeenCalledTimes","toHaveBeenCalledWith","toHaveClass","toHaveClasses","toHaveSpyInteractions","toHaveNoOtherSpyInteractions","toMatch","toThrow","toThrowError","toThrowMatching"];var matchers={};for(var _i=0,_availableMatchers=availableMatchers;_i<_availableMatchers.length;_i++){var name=_availableMatchers[_i];matchers[name]=jRequire[name](j$)}return matchers};getJasmineRequireObj().base=function(j$,jasmineGlobal){"use strict";j$.MAX_PRETTY_PRINT_DEPTH=8;j$.MAX_PRETTY_PRINT_ARRAY_LENGTH=50;j$.MAX_PRETTY_PRINT_CHARS=1e3;var DEFAULT_TIMEOUT_INTERVAL=5e3;Object.defineProperty(j$,"DEFAULT_TIMEOUT_INTERVAL",{get:function get(){return DEFAULT_TIMEOUT_INTERVAL},set:function set(newValue){j$["private"].util.validateTimeout(newValue,"jasmine.DEFAULT_TIMEOUT_INTERVAL");DEFAULT_TIMEOUT_INTERVAL=newValue}});j$.getGlobal=function(){return jasmineGlobal};Object.defineProperty(j$,"getEnv",{enumerable:true,value:function value(options){var env=j$["private"].currentEnv_=j$["private"].currentEnv_||new j$["private"].Env(options);return env}});j$["private"].isObject=function(value){return value!==void 0&&value!==null&&j$["private"].isA("Object",value)};j$["private"].isString=function(value){return j$["private"].isA("String",value)};j$["private"].isNumber=function(value){return j$["private"].isA("Number",value)};j$["private"].isFunction=function(value){return j$["private"].isA("Function",value)};j$["private"].isAsyncFunction=function(value){return j$["private"].isA("AsyncFunction",value)};j$["private"].isGeneratorFunction=function(value){return j$["private"].isA("GeneratorFunction",value)};j$["private"].isTypedArray=function(value){return j$["private"].isA("Float32Array",value)||j$["private"].isA("Float64Array",value)||j$["private"].isA("Int16Array",value)||j$["private"].isA("Int32Array",value)||j$["private"].isA("Int8Array",value)||j$["private"].isA("Uint16Array",value)||j$["private"].isA("Uint32Array",value)||j$["private"].isA("Uint8Array",value)||j$["private"].isA("Uint8ClampedArray",value)};j$["private"].isA=function(typeName,value){return j$["private"].getType(value)==="[object "+typeName+"]"};j$["private"].isError=function(value){if(!value){return false}if(value instanceof Error){return true}return typeof value.stack==="string"&&typeof value.message==="string"};j$["private"].isAsymmetricEqualityTester=function(obj){return obj?j$["private"].isA("Function",obj.asymmetricMatch):false};j$["private"].getType=function(value){return Object.prototype.toString.apply(value)};j$["private"].isDomNode=function(obj){return typeof jasmineGlobal.Node!=="undefined"?obj instanceof jasmineGlobal.Node:obj!==null&&_typeof(obj)==="object"&&typeof obj.nodeType==="number"&&typeof obj.nodeName==="string"};j$["private"].isMap=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.Map};j$["private"].isSet=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.Set};j$["private"].isWeakMap=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.WeakMap};j$["private"].isURL=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.URL};j$["private"].isIterable=function(value){return value&&!!value[Symbol.iterator]};j$["private"].isDataView=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.DataView};j$["private"].isPromise=function(obj){return!!obj&&obj.constructor===jasmineGlobal.Promise};j$["private"].isPromiseLike=function(obj){return!!obj&&j$["private"].isFunction(obj.then)};j$["private"].fnNameFor=function(func){if(func.name){return func.name}var matches=func.toString().match(/^\s*function\s*(\w+)\s*\(/)||func.toString().match(/^\s*\[object\s*(\w+)Constructor\]/);return matches?matches[1]:"<anonymous>"};j$["private"].isPending=function(promise){var sentinel={};return Promise.race([promise,Promise.resolve(sentinel)]).then(function(result){return result===sentinel},function(){return false})};j$.allOf=function(){return _construct(j$.AllOf,Array.prototype.slice.call(arguments))};j$.any=function(clazz){return new j$["private"].Any(clazz)};j$.anything=function(){return new j$["private"].Anything};j$.truthy=function(){return new j$["private"].Truthy};j$.falsy=function(){return new j$["private"].Falsy};j$.empty=function(){return new j$["private"].Empty};j$.is=function(sample){return new j$["private"].Is(sample)};j$.notEmpty=function(){return new j$["private"].NotEmpty};j$.objectContaining=function(sample){return new j$["private"].ObjectContaining(sample)};j$.stringMatching=function(expected){return new j$["private"].StringMatching(expected)};j$.stringContaining=function(expected){return new j$["private"].StringContaining(expected)};j$.arrayContaining=function(sample){return new j$["private"].ArrayContaining(sample)};j$.arrayWithExactContents=function(sample){return new j$["private"].ArrayWithExactContents(sample)};j$.mapContaining=function(sample){return new j$["private"].MapContaining(sample)};j$.setContaining=function(sample){return new j$["private"].SetContaining(sample)};j$.isSpy=function(putativeSpy){if(!putativeSpy){return false}return putativeSpy.and instanceof j$["private"].SpyStrategy&&putativeSpy.calls instanceof j$["private"].CallTracker};j$.debugLog=function(msg){j$.getEnv().debugLog(msg)};j$.spyOnGlobalErrorsAsync=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(fn){return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:_context.n=1;return jasmine.getEnv().spyOnGlobalErrorsAsync(fn);case 1:return _context.a(2)}},_callee)}));return function(_x){return _ref.apply(this,arguments)}}()};getJasmineRequireObj().util=function(j$){"use strict";var util={};util.clone=function(obj){if(Object.prototype.toString.apply(obj)==="[object Array]"){return obj.slice()}var cloned={};for(var prop in obj){if(obj.hasOwnProperty(prop)){cloned[prop]=obj[prop]}}return cloned};util.cloneArgs=function(args){return Array.from(args).map(function(arg){var str=Object.prototype.toString.apply(arg);var primitives=/^\[object (Boolean|String|RegExp|Number)/;if(!arg||str.match(primitives)){return arg}else if(str==="[object Date]"){return new Date(arg.valueOf())}else{return j$["private"].util.clone(arg)}})};util.getPropertyDescriptor=function(obj,methodName){var descriptor;var proto=obj;do{descriptor=Object.getOwnPropertyDescriptor(proto,methodName);proto=Object.getPrototypeOf(proto)}while(!descriptor&&proto);return descriptor};util.has=function(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)};function callerFile(){var trace=new j$["private"].StackTrace(new Error());return trace.frames[1].file}util.jasmineFile=/* @__PURE__ */function(){var result;return function(){if(!result){result=callerFile()}return result}}();util.validateTimeout=function(timeout,msgPrefix){var max=2147483647;if(timeout>max){throw new Error((msgPrefix||"Timeout value")+" cannot be greater than "+max)}};util.assertReporterCloneable=function(v,msgPrefix){try{JSON.stringify(structuredClone(v))}catch(e){throw new Error("".concat(msgPrefix," can't be cloned"),{cause:e})}};return util};getJasmineRequireObj().Spec=function(j$){"use strict";var _autoCleanClosures,_throwOnExpectationFailure,_timer,_metadata,_executionState,_Spec_instances,commonEventFields_fn;var _Spec=/*#__PURE__*/function(){function _Spec(attrs){_classCallCheck(this,_Spec);__privateAdd(this,_Spec_instances);__privateAdd(this,_autoCleanClosures);__privateAdd(this,_throwOnExpectationFailure);__privateAdd(this,_timer);__privateAdd(this,_metadata);__privateAdd(this,_executionState);this.expectationFactory=attrs.expectationFactory;this.asyncExpectationFactory=attrs.asyncExpectationFactory;this.id=attrs.id;this.filename=attrs.filename;this.parentSuiteId=attrs.parentSuiteId;this.description=attrs.description||"";this.queueableFn=attrs.queueableFn;this.beforeAndAfterFns=attrs.beforeAndAfterFns||function(){return{befores:[],afters:[]}};this.userContext=attrs.userContext||function(){return{}};this.getPath=function(){return attrs.getPath?attrs.getPath(this):[]};__privateSet(this,_autoCleanClosures,attrs.autoCleanClosures===void 0?true:!!attrs.autoCleanClosures);this.onLateError=attrs.onLateError||function(){};__privateSet(this,_throwOnExpectationFailure,!!attrs.throwOnExpectationFailure);__privateSet(this,_timer,attrs.timer||new j$.Timer);this.reset();if(!this.queueableFn.fn){this.exclude()}}return _createClass(_Spec,[{key:"addExpectationResult",value:function addExpectationResult(passed,data,isError){var expectationResult=j$["private"].buildExpectationResult(data);if(passed){__privateGet(this,_executionState).passedExpectations.push(expectationResult)}else{if(this.reportedDone){this.onLateError(expectationResult)}else{__privateGet(this,_executionState).failedExpectations.push(expectationResult)}if(__privateGet(this,_throwOnExpectationFailure)&&!isError){throw new j$["private"].errors.ExpectationFailed}}}},{key:"getSpecProperty",value:function getSpecProperty(key){__privateGet(this,_executionState).properties=__privateGet(this,_executionState).properties||{};return __privateGet(this,_executionState).properties[key]}},{key:"setSpecProperty",value:function setSpecProperty(key,value){if(!j$["private"].isString(key)){throw new Error("Key must be a string")}j$["private"].util.assertReporterCloneable(value,"Value");__privateGet(this,_executionState).properties=__privateGet(this,_executionState).properties||{};__privateGet(this,_executionState).properties[key]=value}},{key:"executionStarted",value:function executionStarted(){__privateGet(this,_timer).start()}},{key:"executionFinished",value:function executionFinished(excluded,failSpecWithNoExp){__privateGet(this,_executionState).dynamicallyExcluded=excluded;__privateGet(this,_executionState).requireExpectations=failSpecWithNoExp;if(__privateGet(this,_autoCleanClosures)){this.queueableFn.fn=null}__privateGet(this,_executionState).duration=__privateGet(this,_timer).elapsed();if(this.status()!=="failed"){__privateGet(this,_executionState).debugLogs=null}}},{key:"hadBeforeAllFailure",value:function hadBeforeAllFailure(){this.addExpectationResult(false,{passed:false,message:"Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it."},true)}},{key:"reset",value:function reset(){__privateSet(this,_executionState,{failedExpectations:[],passedExpectations:[],deprecationWarnings:[],pendingReason:this.excludeMessage||"",duration:null,properties:null,debugLogs:null,// TODO: better naming. Don't make 'excluded' mean two things.
|
|
124
|
+
dynamicallyExcluded:false,requireExpectations:false,markedPending:this.markedExcluding});this.reportedDone=false}},{key:"startedEvent",value:function startedEvent(){return __privateMethod(this,_Spec_instances,commonEventFields_fn).call(this)}},{key:"doneEvent",value:function doneEvent(){var event=__spreadProps(__spreadValues({},__privateMethod(this,_Spec_instances,commonEventFields_fn).call(this)),{status:this.status()});var toCopy=["failedExpectations","passedExpectations","deprecationWarnings","pendingReason","duration","properties","debugLogs"];for(var _i2=0,_toCopy=toCopy;_i2<_toCopy.length;_i2++){var k=_toCopy[_i2];event[k]=__privateGet(this,_executionState)[k]}return event}},{key:"handleException",value:function handleException(e){if(_Spec.isPendingSpecException(e)){this.pend(extractCustomPendingMessage(e));return}if(e instanceof j$["private"].errors.ExpectationFailed){return}this.addExpectationResult(false,{matcherName:"",passed:false,error:e},true)}},{key:"pend",value:function pend(message){__privateGet(this,_executionState).markedPending=true;if(message){__privateGet(this,_executionState).pendingReason=message}}},{key:"markedPending",get:function get(){return __privateGet(this,_executionState).markedPending}// Like pend(), but pending state will survive reset().
|
|
120
125
|
// Useful for fit, xit, where pending state remains.
|
|
121
|
-
},{key:"exclude",value:function exclude(message){this.markedExcluding=true;if(
|
|
122
|
-
// so that the status is correct.
|
|
123
|
-
},{key:"getResult",value:function getResult(){this.result.status=__privateMethod(this,_Spec_instances,status_fn).call(this);return this.result}},{key:"getFullName",value:function getFullName(){return this.getPath().join(" ")}},{key:"addDeprecationWarning",value:function addDeprecationWarning(deprecation){if(typeof deprecation==="string"){deprecation={message:deprecation}}this.result.deprecationWarnings.push(j$2.buildExpectationResult(deprecation))}},{key:"debugLog",value:function debugLog(msg){if(!this.result.debugLogs){this.result.debugLogs=[]}this.result.debugLogs.push({message:msg,timestamp:__privateGet(this,_timer).elapsed()})}/**
|
|
126
|
+
},{key:"exclude",value:function exclude(message){this.markedExcluding=true;if(message){this.excludeMessage=message}this.pend(message)}},{key:"status",value:function status(){if(__privateGet(this,_executionState).dynamicallyExcluded){return"excluded"}if(this.markedPending){return"pending"}if(__privateGet(this,_executionState).failedExpectations.length>0||__privateGet(this,_executionState).requireExpectations&&__privateGet(this,_executionState).failedExpectations.length+__privateGet(this,_executionState).passedExpectations.length===0){return"failed"}return"passed"}},{key:"getFullName",value:function getFullName(){return this.getPath().join(" ")}},{key:"addDeprecationWarning",value:function addDeprecationWarning(deprecation){if(typeof deprecation==="string"){deprecation={message:deprecation}}__privateGet(this,_executionState).deprecationWarnings.push(j$["private"].buildExpectationResult(deprecation))}},{key:"debugLog",value:function debugLog(msg){if(!__privateGet(this,_executionState).debugLogs){__privateGet(this,_executionState).debugLogs=[]}__privateGet(this,_executionState).debugLogs.push({message:msg,timestamp:__privateGet(this,_timer).elapsed()})}/**
|
|
124
127
|
* @interface Spec
|
|
125
128
|
* @see Configuration#specFilter
|
|
126
129
|
* @since 2.0.0
|
|
@@ -158,9 +161,9 @@ var require_jasmine=__commonJS({"../../node_modules/jasmine-core/lib/jasmine-cor
|
|
|
158
161
|
* @readonly
|
|
159
162
|
* @type {string}
|
|
160
163
|
* @since 5.13.0
|
|
161
|
-
*/filename:this.filename})}return __privateGet(this,_metadata)}}])}();_autoCleanClosures=new WeakMap;_throwOnExpectationFailure=new WeakMap;_timer=new WeakMap;_metadata=new WeakMap;_Spec_instances=new WeakSet;
|
|
164
|
+
*/filename:this.filename})}return __privateGet(this,_metadata)}}])}();_autoCleanClosures=new WeakMap;_throwOnExpectationFailure=new WeakMap;_timer=new WeakMap;_metadata=new WeakMap;_executionState=new WeakMap;_Spec_instances=new WeakSet;commonEventFields_fn=function commonEventFields_fn(){return{id:this.id,description:this.description,fullName:this.getFullName(),parentSuiteId:this.parentSuiteId,filename:this.filename}};var Spec=_Spec;var extractCustomPendingMessage=function extractCustomPendingMessage(e){var fullMessage=e.toString();var boilerplateStart=fullMessage.indexOf(Spec.pendingSpecExceptionMessage);var boilerplateEnd=boilerplateStart+Spec.pendingSpecExceptionMessage.length;return fullMessage.slice(boilerplateEnd)};Spec.pendingSpecExceptionMessage="=> marked Pending";Spec.isPendingSpecException=function(e){return!!(e&&e.toString&&e.toString().indexOf(Spec.pendingSpecExceptionMessage)!==-1)};return Spec};getJasmineRequireObj().Order=function(){"use strict";function Order(options){this.random="random"in options?options.random:true;var seed=this.seed=options.seed||generateSeed();this.sort=this.random?randomOrder:naturalOrder;function naturalOrder(items){return items}function randomOrder(items){var copy=items.slice();copy.sort(function(a,b){return jenkinsHash(seed+a.id)-jenkinsHash(seed+b.id)});return copy}function generateSeed(){return String(Math.random()).slice(-5)}function jenkinsHash(key){var hash,i;for(hash=i=0;i<key.length;++i){hash+=key.charCodeAt(i);hash+=hash<<10;hash^=hash>>6}hash+=hash<<3;hash^=hash>>11;hash+=hash<<15;return hash}}return Order};getJasmineRequireObj().Env=function(j$){"use strict";var DEFAULT_IT_DESCRIBE_STACK_DEPTH=3;function Env(envOptions){var _this=this;var _a;envOptions=envOptions||{};var self2=this;var GlobalErrors=envOptions.GlobalErrors||j$["private"].GlobalErrors;var global2=envOptions.global||j$.getGlobal();var realSetTimeout=global2.setTimeout;var realClearTimeout=global2.clearTimeout;var stackClearer=j$["private"].getStackClearer(global2);this.clock=new j$["private"].Clock(global2,function(){return new j$["private"].DelayedFunctionScheduler},new j$["private"].MockDate(global2));var globalErrors=new GlobalErrors(global2,// Configuration is late-bound because GlobalErrors needs to be constructed
|
|
162
165
|
// before it's set to detect load-time errors in browsers
|
|
163
|
-
function(){return _this.configuration()});var _ref2=/* @__PURE__ */function(){var installed=false;return{installGlobalErrors:function installGlobalErrors(){if(!installed){globalErrors.install();installed=true}},uninstallGlobalErrors:function uninstallGlobalErrors(){if(installed){globalErrors.uninstall();installed=false}}}}(),installGlobalErrors=_ref2.installGlobalErrors,uninstallGlobalErrors=_ref2.uninstallGlobalErrors;var runableResources=new j$2.RunableResources({getCurrentRunableId:function getCurrentRunableId(){var r=runner.currentRunable();return r?r.id:null},globalErrors:globalErrors});var reportDispatcher;var topSuite;var runner;var parallelLoadingState=null;var config=new j$2.Configuration;if(!envOptions.suppressLoadErrors){installGlobalErrors();globalErrors.pushListener(function loadtimeErrorHandler(error,event){topSuite.result.failedExpectations.push({passed:false,globalErrorType:"load",message:error?error.message:event.message,stack:error&&error.stack,filename:event&&event.filename,lineno:event&&event.lineno})})}this.configure=function(changes){if(parallelLoadingState){throw new Error("Jasmine cannot be configured via Env in parallel mode")}config.update(changes);deprecator.verboseDeprecations(config.verboseDeprecations)};this.configuration=function(){return config.copy()};this.setDefaultSpyStrategy=function(defaultStrategyFn){runableResources.setDefaultSpyStrategy(defaultStrategyFn)};this.addSpyStrategy=function(name,fn){runableResources.customSpyStrategies()[name]=fn};this.addCustomEqualityTester=function(tester){runableResources.customEqualityTesters().push(tester)};this.addMatchers=function(matchersToAdd){runableResources.addCustomMatchers(matchersToAdd)};this.addAsyncMatchers=function(matchersToAdd){runableResources.addCustomAsyncMatchers(matchersToAdd)};this.addCustomObjectFormatter=function(formatter){runableResources.customObjectFormatters().push(formatter)};j$2.Expectation.addCoreMatchers(j$2.matchers);j$2.Expectation.addAsyncCoreMatchers(j$2.asyncMatchers);var expectationFactory=function expectationFactory(actual,spec){return j$2.Expectation.factory({matchersUtil:runableResources.makeMatchersUtil(),customMatchers:runableResources.customMatchers(),actual:actual,addExpectationResult:addExpectationResult});function addExpectationResult(passed,result){return spec.addExpectationResult(passed,result)}};var handleThrowUnlessFailure=function handleThrowUnlessFailure(passed,result){if(!passed){var error=new Error(result.message);error.passed=result.passed;error.message=result.message;error.expected=result.expected;error.actual=result.actual;error.matcherName=result.matcherName;throw error}};var throwUnlessFactory=function throwUnlessFactory(actual,spec){return j$2.Expectation.factory({matchersUtil:runableResources.makeMatchersUtil(),customMatchers:runableResources.customMatchers(),actual:actual,addExpectationResult:handleThrowUnlessFailure})};var throwUnlessAsyncFactory=function throwUnlessAsyncFactory(actual,spec){return j$2.Expectation.asyncFactory({matchersUtil:runableResources.makeMatchersUtil(),customAsyncMatchers:runableResources.customAsyncMatchers(),actual:actual,addExpectationResult:handleThrowUnlessFailure})};function recordLateError(error){var isExpectationResult=error.matcherName!==void 0&&error.passed!==void 0;var result=isExpectationResult?error:j$2.buildExpectationResult({error:error,passed:false,matcherName:"",expected:"",actual:""});routeLateFailure(result)}function recordLateExpectation(runable,runableType,result){var delayedExpectationResult={};Object.keys(result).forEach(function(k){delayedExpectationResult[k]=result[k]});delayedExpectationResult.passed=false;delayedExpectationResult.globalErrorType="lateExpectation";delayedExpectationResult.message=runableType+" \""+runable.getFullName()+"\" ran a \""+result.matcherName+"\" expectation after it finished.\n";if(result.message){delayedExpectationResult.message+="Message: \""+result.message+"\"\n"}delayedExpectationResult.message+="1. Did you forget to return or await the result of expectAsync?\n2. Was done() invoked before an async operation completed?\n3. Did an expectation follow a call to done()?";topSuite.result.failedExpectations.push(delayedExpectationResult)}function routeLateFailure(expectationResult){for(var r=runner.currentRunable();r;r=r.parentSuite){if(!r.reportedDone){if(r===topSuite){expectationResult.globalErrorType="lateError"}r.result.failedExpectations.push(expectationResult);return}}console.error("Jasmine received a result after the suite finished:");console.error(expectationResult)}var asyncExpectationFactory=function asyncExpectationFactory(actual,spec,runableType){return j$2.Expectation.asyncFactory({matchersUtil:runableResources.makeMatchersUtil(),customAsyncMatchers:runableResources.customAsyncMatchers(),actual:actual,addExpectationResult:addExpectationResult});function addExpectationResult(passed,result){if(runner.currentRunable()!==spec){recordLateExpectation(spec,runableType,result)}return spec.addExpectationResult(passed,result)}};this.deprecated=function(deprecation,options){var runable=runner.currentRunable()||topSuite;deprecator.addDeprecationWarning(runable,deprecation,options)};function runQueue(options){options.clearStack=options.clearStack||clearStack;options.timeout={setTimeout:realSetTimeout,clearTimeout:realClearTimeout};options.fail=self2.fail;options.globalErrors=globalErrors;options.onException=options.onException||function(e){(runner.currentRunable()||topSuite).handleException(e)};new j$2.QueueRunner(options).execute()}var suiteBuilder=new j$2.SuiteBuilder({env:this,expectationFactory:expectationFactory,asyncExpectationFactory:asyncExpectationFactory,onLateError:recordLateError,runQueue:runQueue});topSuite=suiteBuilder.topSuite;var deprecator=new j$2.Deprecator(topSuite);this.topSuite=function(){ensureNonParallel("topSuite");return topSuite.metadata};reportDispatcher=new j$2.ReportDispatcher(j$2.reporterEvents,function(options){options.SkipPolicy=j$2.NeverSkipPolicy;return runQueue(options)},recordLateError);runner=new j$2.Runner({topSuite:topSuite,totalSpecsDefined:function totalSpecsDefined(){return suiteBuilder.totalSpecsDefined},focusedRunables:function focusedRunables(){return suiteBuilder.focusedRunables},runableResources:runableResources,reportDispatcher:reportDispatcher,runQueue:runQueue,TreeProcessor:j$2.TreeProcessor,globalErrors:globalErrors,getConfig:function getConfig(){return config}});this.setParallelLoadingState=function(state){parallelLoadingState=state};this.parallelReset=function(){suiteBuilder.parallelReset();runner.parallelReset()};this.execute=/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(runablesToRun){var result;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:installGlobalErrors();if(parallelLoadingState){validateConfigForParallel()}_context2.n=1;return runner.execute(runablesToRun);case 1:result=_context2.v;this.cleanup_();return _context2.a(2,result)}},_callee2,this)}));return function(_x2){return _ref3.apply(this,arguments)}}();this.addReporter=function(reporterToAdd){if(parallelLoadingState){throw new Error("Reporters cannot be added via Env in parallel mode")}reportDispatcher.addReporter(reporterToAdd)};this.provideFallbackReporter=function(reporterToAdd){reportDispatcher.provideFallbackReporter(reporterToAdd)};this.clearReporters=function(){if(parallelLoadingState){throw new Error("Reporters cannot be removed via Env in parallel mode")}reportDispatcher.clearReporters()};this.allowRespy=function(allow){runableResources.spyRegistry.allowRespy(allow)};this.spyOn=function(){return runableResources.spyRegistry.spyOn.apply(runableResources.spyRegistry,arguments)};this.spyOnProperty=function(){return runableResources.spyRegistry.spyOnProperty.apply(runableResources.spyRegistry,arguments)};this.spyOnAllFunctions=function(){return runableResources.spyRegistry.spyOnAllFunctions.apply(runableResources.spyRegistry,arguments)};this.createSpy=function(name,originalFn){return runableResources.spyFactory.createSpy(name,originalFn)};this.createSpyObj=function(baseName,methodNames,propertyNames){return runableResources.spyFactory.createSpyObj(baseName,methodNames,propertyNames)};this.spyOnGlobalErrorsAsync=/*#__PURE__*/function(){var _ref4=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(fn){var spy,associatedRunable,cleanedUp,maybePromise;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:spy=this.createSpy("global error handler");associatedRunable=runner.currentRunable();cleanedUp=false;globalErrors.setOverrideListener(spy,function(){if(!cleanedUp){var message="Global error spy was not uninstalled. (Did you forget to await the return value of spyOnGlobalErrorsAsync?)";associatedRunable.addExpectationResult(false,{matcherName:"",passed:false,expected:"",actual:"",message:message,error:null})}cleanedUp=true});_context3.p=1;maybePromise=fn(spy);if(j$2.isPromiseLike(maybePromise)){_context3.n=2;break}throw new Error("The callback to spyOnGlobalErrorsAsync must be an async or promise-returning function");case 2:_context3.n=3;return maybePromise;case 3:_context3.p=3;if(!cleanedUp){cleanedUp=true;globalErrors.removeOverrideListener()}return _context3.f(3);case 4:return _context3.a(2)}},_callee3,this,[[1,,3,4]])}));return function(_x3){return _ref4.apply(this,arguments)}}();function ensureIsNotNested(method){var runable=runner.currentRunable();if(runable!==null&&runable!==void 0){throw new Error("'"+method+"' should only be used in 'describe' function")}}function ensureNonParallel(method){if(parallelLoadingState){throw new Error("'".concat(method,"' is not available in parallel mode"))}}function ensureNonParallelOrInDescribe(msg){if(parallelLoadingState&&!suiteBuilder.inDescribe()){throw new Error(msg)}}function ensureNonParallelOrInHelperOrInDescribe(method){if(parallelLoadingState==="specs"&&!suiteBuilder.inDescribe()){throw new Error("In parallel mode, "+method+" must be in a describe block or in a helper file")}}function validateConfigForParallel(){if(!config.random){throw new Error("Randomization cannot be disabled in parallel mode")}if(config.seed!==null&&config.seed!==void 0){throw new Error("Random seed cannot be set in parallel mode")}}this.describe=function(description,definitionFn){ensureIsNotNested("describe");var filename=indirectCallerFilename(describeStackDepth());return suiteBuilder.describe(description,definitionFn,filename).metadata};this.xdescribe=function(description,definitionFn){ensureIsNotNested("xdescribe");var filename=indirectCallerFilename(describeStackDepth());return suiteBuilder.xdescribe(description,definitionFn,filename).metadata};this.fdescribe=function(description,definitionFn){ensureIsNotNested("fdescribe");ensureNonParallel("fdescribe");var filename=indirectCallerFilename(describeStackDepth());return suiteBuilder.fdescribe(description,definitionFn,filename).metadata};this.it=function(description,fn,timeout){ensureIsNotNested("it");var filename=indirectCallerFilename(itStackDepth());return suiteBuilder.it(description,fn,timeout,filename).metadata};this.xit=function(description,fn,timeout){ensureIsNotNested("xit");var filename=indirectCallerFilename(itStackDepth());return suiteBuilder.xit(description,fn,timeout,filename).metadata};this.fit=function(description,fn,timeout){ensureIsNotNested("fit");ensureNonParallel("fit");var filename=indirectCallerFilename(itStackDepth());return suiteBuilder.fit(description,fn,timeout,filename).metadata};function itStackDepth(){return DEFAULT_IT_DESCRIBE_STACK_DEPTH+config.extraItStackFrames}function describeStackDepth(){return DEFAULT_IT_DESCRIBE_STACK_DEPTH+config.extraDescribeStackFrames}this.getSpecProperty=function(key){if(!runner.currentRunable()||runner.currentRunable()==runner.currentSuite()){throw new Error("'getSpecProperty' was used when there was no current spec")}return runner.currentRunable().getSpecProperty(key)};this.setSpecProperty=function(key,value){if(!runner.currentRunable()||runner.currentRunable()==runner.currentSuite()){throw new Error("'setSpecProperty' was used when there was no current spec")}runner.currentRunable().setSpecProperty(key,value)};this.setSuiteProperty=function(key,value){if(!runner.currentSuite()){throw new Error("'setSuiteProperty' was used when there was no current suite")}runner.currentSuite().setSuiteProperty(key,value)};this.debugLog=function(msg){var maybeSpec=runner.currentRunable();if(!maybeSpec||!maybeSpec.debugLog){throw new Error("'debugLog' was called when there was no current spec")}maybeSpec.debugLog(msg)};this.expect=function(actual){var runable=runner.currentRunable();if(!runable){throw new Error("'expect' was used when there was no current spec, this could be because an asynchronous test timed out")}return runable.expectationFactory(actual,runable)};this.expectAsync=function(actual){var runable=runner.currentRunable();if(!runable){throw new Error("'expectAsync' was used when there was no current spec, this could be because an asynchronous test timed out")}return runable.asyncExpectationFactory(actual,runable)};this.throwUnless=function(actual){var runable=runner.currentRunable();return throwUnlessFactory(actual,runable)};this.throwUnlessAsync=function(actual){var runable=runner.currentRunable();return throwUnlessAsyncFactory(actual,runable)};this.beforeEach=function(beforeEachFunction,timeout){ensureIsNotNested("beforeEach");ensureNonParallelOrInHelperOrInDescribe("beforeEach");suiteBuilder.beforeEach(beforeEachFunction,timeout)};this.beforeAll=function(beforeAllFunction,timeout){ensureIsNotNested("beforeAll");ensureNonParallelOrInDescribe("In parallel mode, 'beforeAll' must be in a describe block. Use the globalSetup config property for exactly-once setup in parallel mode.");suiteBuilder.beforeAll(beforeAllFunction,timeout)};this.afterEach=function(afterEachFunction,timeout){ensureIsNotNested("afterEach");ensureNonParallelOrInHelperOrInDescribe("afterEach");suiteBuilder.afterEach(afterEachFunction,timeout)};this.afterAll=function(afterAllFunction,timeout){ensureIsNotNested("afterAll");ensureNonParallelOrInDescribe("In parallel mode, 'afterAll' must be in a describe block. Use the globalTeardown config property for exactly-once teardown in parallel mode.");suiteBuilder.afterAll(afterAllFunction,timeout)};this.pending=function(message){var fullMessage=j$2.Spec.pendingSpecExceptionMessage;if(message){fullMessage+=message}throw fullMessage};this.fail=function(error){if(!runner.currentRunable()){throw new Error("'fail' was used when there was no current spec, this could be because an asynchronous test timed out")}var message="Failed";if(error){message+=": ";if(error.message){message+=error.message}else if(j$2.isString_(error)){message+=error}else{var pp=runableResources.makePrettyPrinter();message+=pp(error)}}runner.currentRunable().addExpectationResult(false,{matcherName:"",passed:false,expected:"",actual:"",message:message,error:error&&error.message?error:null});if(config.stopSpecOnExpectationFailure){throw new Error(message)}};this.cleanup_=function(){uninstallGlobalErrors()}}function indirectCallerFilename(depth){var frames=new j$2.StackTrace(new Error()).frames;return frames[depth]&&frames[depth].file}return Env};getJasmineRequireObj().JsApiReporter=function(j$2){function JsApiReporter(options){var timer=options.timer||new j$2.Timer;var status="loaded";this.started=false;this.finished=false;this.runDetails={};this.jasmineStarted=function(){this.started=true;status="started";timer.start()};var executionTime;this.jasmineDone=function(runDetails){this.finished=true;this.runDetails=runDetails;executionTime=timer.elapsed();status="done"};this.status=function(){return status};var suites=[],suites_hash={};this.suiteStarted=function(result){suites_hash[result.id]=result};this.suiteDone=function(result){storeSuite(result)};this.suiteResults=function(index,length){return suites.slice(index,index+length)};function storeSuite(result){suites.push(result);suites_hash[result.id]=result}this.suites=function(){return suites_hash};var specs=[];this.specDone=function(result){specs.push(result)};this.specResults=function(index,length){return specs.slice(index,index+length)};this.specs=function(){return specs};this.executionTime=function(){return executionTime}}return JsApiReporter};getJasmineRequireObj().AllOf=function(j$2){function AllOf(){var expectedValues=Array.from(arguments);if(expectedValues.length===0){throw new TypeError("jasmine.allOf() expects at least one argument to be passed.")}this.expectedValues=expectedValues}AllOf.prototype.asymmetricMatch=function(other,matchersUtil){var _iterator3=_createForOfIteratorHelper(this.expectedValues),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var expectedValue=_step3.value;if(!matchersUtil.equals(other,expectedValue)){return false}}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}return true};AllOf.prototype.jasmineToString=function(pp){return"<jasmine.allOf("+pp(this.expectedValues)+")>"};return AllOf};getJasmineRequireObj().Any=function(j$2){function Any(expectedObject){if(typeof expectedObject==="undefined"){throw new TypeError("jasmine.any() expects to be passed a constructor function. Please pass one or use jasmine.anything() to match any object.")}this.expectedObject=expectedObject}Any.prototype.asymmetricMatch=function(other){if(this.expectedObject==String){return typeof other=="string"||other instanceof String}if(this.expectedObject==Number){return typeof other=="number"||other instanceof Number}if(this.expectedObject==Function){return typeof other=="function"||other instanceof Function}if(this.expectedObject==Object){return other!==null&&_typeof(other)=="object"}if(this.expectedObject==Boolean){return typeof other=="boolean"}if(typeof Symbol!="undefined"&&this.expectedObject==Symbol){return _typeof(other)=="symbol"}return other instanceof this.expectedObject};Any.prototype.jasmineToString=function(){return"<jasmine.any("+j$2.fnNameFor(this.expectedObject)+")>"};return Any};getJasmineRequireObj().Anything=function(j$2){function Anything(){}Anything.prototype.asymmetricMatch=function(other){return other!==void 0&&other!==null};Anything.prototype.jasmineToString=function(){return"<jasmine.anything>"};return Anything};getJasmineRequireObj().ArrayContaining=function(j$2){function ArrayContaining(sample){this.sample=sample}ArrayContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(!j$2.isArray_(this.sample)){throw new Error("You must provide an array to arrayContaining, not "+j$2.basicPrettyPrinter_(this.sample)+".")}if(!j$2.isArray_(other)&&this.sample.length>0){return false}var _iterator4=_createForOfIteratorHelper(this.sample),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var item=_step4.value;if(!matchersUtil.contains(other,item)){return false}}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}return true};ArrayContaining.prototype.jasmineToString=function(pp){return"<jasmine.arrayContaining("+pp(this.sample)+")>"};return ArrayContaining};getJasmineRequireObj().ArrayWithExactContents=function(j$2){function ArrayWithExactContents(sample){this.sample=sample}ArrayWithExactContents.prototype.asymmetricMatch=function(other,matchersUtil){if(!j$2.isArray_(this.sample)){throw new Error("You must provide an array to arrayWithExactContents, not "+j$2.basicPrettyPrinter_(this.sample)+".")}if(this.sample.length!==other.length){return false}var _iterator5=_createForOfIteratorHelper(this.sample),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var item=_step5.value;if(!matchersUtil.contains(other,item)){return false}}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}return true};ArrayWithExactContents.prototype.jasmineToString=function(pp){return"<jasmine.arrayWithExactContents("+pp(this.sample)+")>"};return ArrayWithExactContents};getJasmineRequireObj().Empty=function(j$2){function Empty(){}Empty.prototype.asymmetricMatch=function(other){if(j$2.isString_(other)||j$2.isArray_(other)||j$2.isTypedArray_(other)){return other.length===0}if(j$2.isMap(other)||j$2.isSet(other)){return other.size===0}if(j$2.isObject_(other)){return Object.keys(other).length===0}return false};Empty.prototype.jasmineToString=function(){return"<jasmine.empty>"};return Empty};getJasmineRequireObj().Falsy=function(j$2){function Falsy(){}Falsy.prototype.asymmetricMatch=function(other){return!other};Falsy.prototype.jasmineToString=function(){return"<jasmine.falsy>"};return Falsy};getJasmineRequireObj().Is=function(j$2){var Is=/*#__PURE__*/function(){"use strict";function Is(expected){_classCallCheck(this,Is);this.expected_=expected}return _createClass(Is,[{key:"asymmetricMatch",value:function asymmetricMatch(actual){return actual===this.expected_}},{key:"jasmineToString",value:function jasmineToString(pp){return"<jasmine.is(".concat(pp(this.expected_),")>")}}])}();return Is};getJasmineRequireObj().MapContaining=function(j$2){function MapContaining(sample){if(!j$2.isMap(sample)){throw new Error("You must provide a map to `mapContaining`, not "+j$2.basicPrettyPrinter_(sample))}this.sample=sample}MapContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(!j$2.isMap(other)){return false}var _iterator6=_createForOfIteratorHelper(this.sample),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _step6$value=_slicedToArray(_step6.value,2),key=_step6$value[0],value=_step6$value[1];var hasMatch=false;var _iterator7=_createForOfIteratorHelper(other),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _step7$value=_slicedToArray(_step7.value,2),oKey=_step7$value[0],oValue=_step7$value[1];if(matchersUtil.equals(oKey,key)&&matchersUtil.equals(oValue,value)){hasMatch=true;break}}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(!hasMatch){return false}}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}return true};MapContaining.prototype.jasmineToString=function(pp){return"<jasmine.mapContaining("+pp(this.sample)+")>"};return MapContaining};getJasmineRequireObj().NotEmpty=function(j$2){function NotEmpty(){}NotEmpty.prototype.asymmetricMatch=function(other){if(j$2.isString_(other)||j$2.isArray_(other)||j$2.isTypedArray_(other)){return other.length!==0}if(j$2.isMap(other)||j$2.isSet(other)){return other.size!==0}if(j$2.isObject_(other)){return Object.keys(other).length!==0}return false};NotEmpty.prototype.jasmineToString=function(){return"<jasmine.notEmpty>"};return NotEmpty};getJasmineRequireObj().ObjectContaining=function(j$2){function ObjectContaining(sample){this.sample=sample}function hasProperty(obj,property){if(!obj||_typeof(obj)!=="object"){return false}if(Object.prototype.hasOwnProperty.call(obj,property)){return true}return hasProperty(Object.getPrototypeOf(obj),property)}ObjectContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(_typeof(this.sample)!=="object"){throw new Error("You must provide an object to objectContaining, not '"+this.sample+"'.")}if(_typeof(other)!=="object"){return false}for(var property in this.sample){if(!hasProperty(other,property)||!matchersUtil.equals(this.sample[property],other[property])){return false}}return true};ObjectContaining.prototype.valuesForDiff_=function(other,pp){if(!j$2.isObject_(other)){return{self:this.jasmineToString(pp),other:other}}var filteredOther={};Object.keys(this.sample).forEach(function(k){filteredOther[k]=other[k]});return{self:this.sample,other:filteredOther}};ObjectContaining.prototype.jasmineToString=function(pp){return"<jasmine.objectContaining("+pp(this.sample)+")>"};return ObjectContaining};getJasmineRequireObj().SetContaining=function(j$2){function SetContaining(sample){if(!j$2.isSet(sample)){throw new Error("You must provide a set to `setContaining`, not "+j$2.basicPrettyPrinter_(sample))}this.sample=sample}SetContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(!j$2.isSet(other)){return false}var _iterator8=_createForOfIteratorHelper(this.sample),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var item=_step8.value;var hasMatch=false;var _iterator9=_createForOfIteratorHelper(other),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var oItem=_step9.value;if(matchersUtil.equals(oItem,item)){hasMatch=true;break}}}catch(err){_iterator9.e(err)}finally{_iterator9.f()}if(!hasMatch){return false}}}catch(err){_iterator8.e(err)}finally{_iterator8.f()}return true};SetContaining.prototype.jasmineToString=function(pp){return"<jasmine.setContaining("+pp(this.sample)+")>"};return SetContaining};getJasmineRequireObj().StringContaining=function(j$2){function StringContaining(expected){if(!j$2.isString_(expected)){throw new Error("Expected is not a String")}this.expected=expected}StringContaining.prototype.asymmetricMatch=function(other){if(!j$2.isString_(other)){return false}return other.indexOf(this.expected)!==-1};StringContaining.prototype.jasmineToString=function(){return"<jasmine.stringContaining(\""+this.expected+"\")>"};return StringContaining};getJasmineRequireObj().StringMatching=function(j$2){function StringMatching(expected){if(!j$2.isString_(expected)&&!j$2.isA_("RegExp",expected)){throw new Error("Expected is not a String or a RegExp")}this.regexp=new RegExp(expected)}StringMatching.prototype.asymmetricMatch=function(other){return this.regexp.test(other)};StringMatching.prototype.jasmineToString=function(){return"<jasmine.stringMatching("+this.regexp+")>"};return StringMatching};getJasmineRequireObj().Truthy=function(j$2){function Truthy(){}Truthy.prototype.asymmetricMatch=function(other){return!!other};Truthy.prototype.jasmineToString=function(){return"<jasmine.truthy>"};return Truthy};getJasmineRequireObj().buildExpectationResult=function(j$2){function buildExpectationResult(options){var exceptionFormatter=new j$2.ExceptionFormatter;var result={matcherName:options.matcherName,message:message(),stack:options.omitStackTrace?"":stack(),passed:options.passed};if(!result.passed){result.expected=options.expected;result.actual=options.actual;if(options.error&&!j$2.isString_(options.error)){if("code"in options.error){result.code=options.error.code}if(options.error.code==="ERR_ASSERTION"&&options.expected===""&&options.actual===""){result.expected=options.error.expected;result.actual=options.error.actual;result.matcherName="assert "+options.error.operator}}}return result;function message(){if(options.passed){return"Passed."}else if(options.message){return options.message}else if(options.error){return exceptionFormatter.message(options.error)}return""}function stack(){if(options.passed){return""}var error=options.error;if(!error){if(options.errorForStack){error=options.errorForStack}else if(options.stack){error=options}else{error=new Error(message())}}return exceptionFormatter.stack(error,{omitMessage:true})}}return buildExpectationResult};getJasmineRequireObj().CallTracker=function(j$2){function CallTracker(){var calls=[];var opts={};this.track=function(context){if(opts.cloneArgs){context.args=opts.argsCloner(context.args)}calls.push(context)};this.any=function(){return!!calls.length};this.count=function(){return calls.length};this.argsFor=function(index){var call=calls[index];return call?call.args:[]};this.thisFor=function(index){var call=calls[index];return call?call.object:void 0};this.all=function(){return calls};this.allArgs=function(){return calls.map(function(c){return c.args})};this.first=function(){return calls[0]};this.mostRecent=function(){return calls[calls.length-1]};this.reset=function(){calls=[]};this.saveArgumentsByValue=function(){var argsCloner=arguments.length>0&&arguments[0]!==undefined?arguments[0]:j$2.util.cloneArgs;opts.cloneArgs=true;opts.argsCloner=argsCloner};this.unverifiedCount=function(){return calls.reduce(function(count,call){return count+(call.verified?0:1)},0)}}return CallTracker};getJasmineRequireObj().clearStack=function(j$2){var maxInlineCallCount=10;function browserQueueMicrotaskImpl(global2){var unclampedSetTimeout=getUnclampedSetTimeout(global2);var queueMicrotask=global2.queueMicrotask;var currentCallCount=0;return function clearStack(fn){currentCallCount++;if(currentCallCount<maxInlineCallCount){queueMicrotask(fn)}else{currentCallCount=0;unclampedSetTimeout(fn)}}}function nodeQueueMicrotaskImpl(global2){var queueMicrotask=global2.queueMicrotask;return function(fn){queueMicrotask(fn)}}function messageChannelImpl(global2){var setTimeout2=global2.setTimeout;var postMessage=getPostMessage(global2);var currentCallCount=0;return function clearStack(fn){currentCallCount++;if(currentCallCount<maxInlineCallCount){postMessage(fn)}else{currentCallCount=0;setTimeout2(fn)}}}function getUnclampedSetTimeout(global2){var setTimeout2=global2.setTimeout;if(!global2.MessageChannel){return setTimeout2}var postMessage=getPostMessage(global2);return function unclampedSetTimeout(fn){postMessage(function(){setTimeout2(fn)})}}function getPostMessage(global2){var MessageChannel2=global2.MessageChannel,setTimeout2=global2.setTimeout;var channel=new MessageChannel2;var head={};var tail=head;var taskRunning=false;channel.port1.onmessage=function(){head=head.next;var task=head.task;delete head.task;if(taskRunning){setTimeout2(task,0)}else{try{taskRunning=true;task()}finally{taskRunning=false}}};return function postMessage(fn){tail=tail.next={task:fn};channel.port2.postMessage(0)}}function getClearStack(global2){var NODE_JS=global2.process&&global2.process.versions&&typeof global2.process.versions.node==="string";var SAFARI_OR_WIN_WEBKIT=global2.navigator&&/(^((?!chrome|android).)*safari)|(Win64; x64\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)$)/i.test(global2.navigator.userAgent);if(NODE_JS){return nodeQueueMicrotaskImpl(global2)}else if(SAFARI_OR_WIN_WEBKIT||!global2.MessageChannel){return browserQueueMicrotaskImpl(global2)}else{return messageChannelImpl(global2)}}return getClearStack};getJasmineRequireObj().Clock=function(){var NODE_JS=typeof process!=="undefined"&&process.versions&&typeof process.versions.node==="string";function Clock(global2,delayedFunctionSchedulerFactory,mockDate){var realTimingFunctions={setTimeout:global2.setTimeout,clearTimeout:global2.clearTimeout,setInterval:global2.setInterval,clearInterval:global2.clearInterval};var fakeTimingFunctions={setTimeout:setTimeout2,clearTimeout:clearTimeout2,setInterval:setInterval,clearInterval:clearInterval};var installed=false;var delayedFunctionScheduler;var timer;var tickMode={mode:"manual",counter:0};this.FakeTimeout=FakeTimeout;this.install=function(){if(!originalTimingFunctionsIntact()){throw new Error("Jasmine Clock was unable to install over custom global timer functions. Is the clock already installed?")}replace(global2,fakeTimingFunctions);timer=fakeTimingFunctions;delayedFunctionScheduler=delayedFunctionSchedulerFactory();installed=true;return this};this.uninstall=function(){if(tickMode.mode==="auto"){tickMode={mode:"manual",counter:tickMode.counter+1}}delayedFunctionScheduler=null;mockDate.uninstall();replace(global2,realTimingFunctions);timer=realTimingFunctions;installed=false};this.withMock=function(closure){this.install();try{closure()}finally{this.uninstall()}};this.mockDate=function(initialDate){mockDate.install(initialDate)};this.setTimeout=function(fn,delay,params2){return Function.prototype.apply.apply(timer.setTimeout,[global2,arguments])};this.setInterval=function(fn,delay,params2){return Function.prototype.apply.apply(timer.setInterval,[global2,arguments])};this.clearTimeout=function(id){return Function.prototype.call.apply(timer.clearTimeout,[global2,id])};this.clearInterval=function(id){return Function.prototype.call.apply(timer.clearInterval,[global2,id])};this.tick=function(millis2){if(installed){delayedFunctionScheduler.tick(millis2,function(millis3){mockDate.tick(millis3)})}else{throw new Error("Mock clock is not installed, use jasmine.clock().install()")}};this.autoTick=function(){if(tickMode.mode==="auto"){return}tickMode={mode:"auto",counter:tickMode.counter+1};advanceUntilModeChanges()};return this;function advanceUntilModeChanges(){return _advanceUntilModeChanges.apply(this,arguments)}function _advanceUntilModeChanges(){_advanceUntilModeChanges=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(){var _tickMode,counter;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:if(installed){_context4.n=1;break}throw new Error("Mock clock is not installed, use jasmine.clock().install()");case 1:_tickMode=tickMode,counter=_tickMode.counter;case 2:if(!true){_context4.n=5;break}_context4.n=3;return newMacrotask();case 3:if(!(tickMode.counter!==counter||!installed||delayedFunctionScheduler===null)){_context4.n=4;break}return _context4.a(2);case 4:if(!delayedFunctionScheduler.isEmpty()){delayedFunctionScheduler.runNextQueuedFunction(function(millis2){mockDate.tick(millis2)})}_context4.n=2;break;case 5:return _context4.a(2)}},_callee4)}));return _advanceUntilModeChanges.apply(this,arguments)}function newMacrotask(){return _newMacrotask.apply(this,arguments)}function _newMacrotask(){_newMacrotask=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(){var channel;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:if(!NODE_JS){_context5.n=1;break}return _context5.a(2,new Promise(function(resolve){return void setImmediate(resolve)}));case 1:channel=new MessageChannel;_context5.n=2;return new Promise(function(resolve){channel.port1.onmessage=resolve;channel.port2.postMessage(void 0)});case 2:channel.port1.close();channel.port2.close();_context5.n=3;return new Promise(function(resolve){realTimingFunctions.setTimeout.call(global2,resolve)});case 3:return _context5.a(2)}},_callee5)}));return _newMacrotask.apply(this,arguments)}function originalTimingFunctionsIntact(){return global2.setTimeout===realTimingFunctions.setTimeout&&global2.clearTimeout===realTimingFunctions.clearTimeout&&global2.setInterval===realTimingFunctions.setInterval&&global2.clearInterval===realTimingFunctions.clearInterval}function replace(dest,source){for(var prop in source){dest[prop]=source[prop]}}function setTimeout2(fn,delay){if(!NODE_JS){return delayedFunctionScheduler.scheduleFunction(fn,delay,argSlice(arguments,2))}var timeout=new FakeTimeout;delayedFunctionScheduler.scheduleFunction(fn,delay,argSlice(arguments,2),false,timeout);return timeout}function clearTimeout2(id){return delayedFunctionScheduler.removeFunctionWithId(id)}function setInterval(fn,interval){if(!NODE_JS){return delayedFunctionScheduler.scheduleFunction(fn,interval,argSlice(arguments,2),true)}var timeout=new FakeTimeout;delayedFunctionScheduler.scheduleFunction(fn,interval,argSlice(arguments,2),true,timeout);return timeout}function clearInterval(id){return delayedFunctionScheduler.removeFunctionWithId(id)}function argSlice(argsObj,n){return Array.prototype.slice.call(argsObj,n)}}function FakeTimeout(){}FakeTimeout.prototype.ref=function(){return this};FakeTimeout.prototype.unref=function(){return this};return Clock};getJasmineRequireObj().CompleteOnFirstErrorSkipPolicy=function(j$2){function CompleteOnFirstErrorSkipPolicy(queueableFns){this.queueableFns_=queueableFns;this.erroredFnIx_=null}CompleteOnFirstErrorSkipPolicy.prototype.skipTo=function(lastRanFnIx){var i;for(i=lastRanFnIx+1;i<this.queueableFns_.length&&this.shouldSkip_(i);i++){}return i};CompleteOnFirstErrorSkipPolicy.prototype.fnErrored=function(fnIx){this.erroredFnIx_=fnIx};CompleteOnFirstErrorSkipPolicy.prototype.shouldSkip_=function(fnIx){if(this.erroredFnIx_===null){return false}var fn=this.queueableFns_[fnIx];var candidateSuite=fn.suite;var errorSuite=this.queueableFns_[this.erroredFnIx_].suite;var wasCleanupFn=fn.type==="afterEach"||fn.type==="afterAll"||fn.type==="specCleanup";return!wasCleanupFn||candidateSuite&&isDescendent(candidateSuite,errorSuite)};function isDescendent(candidate,ancestor){if(!candidate.parentSuite){return false}else if(candidate.parentSuite===ancestor){return true}else{return isDescendent(candidate.parentSuite,ancestor)}}return CompleteOnFirstErrorSkipPolicy};getJasmineRequireObj().Configuration=function(j$2){var _values;var defaultConfig={/**
|
|
166
|
+
function(){return _this.configuration()});var _ref2=/* @__PURE__ */function(){var installed=false;return{installGlobalErrors:function installGlobalErrors(){if(!installed){globalErrors.install();installed=true}},uninstallGlobalErrors:function uninstallGlobalErrors(){if(installed){globalErrors.uninstall();installed=false}}}}(),installGlobalErrors=_ref2.installGlobalErrors,uninstallGlobalErrors=_ref2.uninstallGlobalErrors;var runableResources=new j$["private"].RunableResources({getCurrentRunableId:function getCurrentRunableId(){var r=runner.currentRunable();return r?r.id:null},globalErrors:globalErrors});var reportDispatcher;var topSuite;var runner;var parallelLoadingState=null;var config=new j$["private"].Configuration;if(!envOptions.suppressLoadErrors){installGlobalErrors();globalErrors.pushListener(function loadtimeErrorHandler(error){topSuite.addExpectationResult(false,{passed:false,globalErrorType:"load",message:error.message,stack:error.stack,filename:error.filename,lineno:error.lineno})})}this.configure=function(changes){if(parallelLoadingState){throw new Error("Jasmine cannot be configured via Env in parallel mode")}config.update(changes);deprecator.verboseDeprecations(config.verboseDeprecations);stackClearer.setSafariYieldStrategy(config.safariYieldStrategy)};this.configuration=function(){return config.copy()};this.setDefaultSpyStrategy=function(defaultStrategyFn){runableResources.setDefaultSpyStrategy(defaultStrategyFn)};this.addSpyStrategy=function(name,fn){runableResources.customSpyStrategies()[name]=fn};this.addCustomEqualityTester=function(tester){runableResources.customEqualityTesters().push(tester)};this.addMatchers=function(matchersToAdd){runableResources.addCustomMatchers(matchersToAdd)};this.addAsyncMatchers=function(matchersToAdd){runableResources.addCustomAsyncMatchers(matchersToAdd)};this.addCustomObjectFormatter=function(formatter){runableResources.customObjectFormatters().push(formatter)};j$["private"].Expectation.addCoreMatchers(j$["private"].matchers);j$["private"].Expectation.addAsyncCoreMatchers(j$["private"].asyncMatchers);var expectationFactory=function expectationFactory(actual,spec){return j$["private"].Expectation.factory({matchersUtil:runableResources.makeMatchersUtil(),customMatchers:runableResources.customMatchers(),actual:actual,addExpectationResult:addExpectationResult});function addExpectationResult(passed,result){return spec.addExpectationResult(passed,result)}};var handleThrowUnlessFailure=function handleThrowUnlessFailure(passed,result){if(!passed){var error=new Error(result.message);error.message=result.message;error.matcherName=result.matcherName;throw error}};var throwUnlessFactory=function throwUnlessFactory(actual,spec){return j$["private"].Expectation.factory({matchersUtil:runableResources.makeMatchersUtil(),customMatchers:runableResources.customMatchers(),actual:actual,addExpectationResult:handleThrowUnlessFailure})};var throwUnlessAsyncFactory=function throwUnlessAsyncFactory(actual,spec){return j$["private"].Expectation.asyncFactory({matchersUtil:runableResources.makeMatchersUtil(),customAsyncMatchers:runableResources.customAsyncMatchers(),actual:actual,addExpectationResult:handleThrowUnlessFailure})};function recordLateError(error){var isExpectationResult=error.matcherName!==void 0&&error.passed!==void 0;var result=isExpectationResult?error:j$["private"].buildExpectationResult({error:error,passed:false,matcherName:"",expected:"",actual:""});routeLateFailure(result)}function recordLateExpectation(runable,runableType,result){var delayedExpectationResult={};Object.keys(result).forEach(function(k){delayedExpectationResult[k]=result[k]});delayedExpectationResult.passed=false;delayedExpectationResult.globalErrorType="lateExpectation";delayedExpectationResult.message=runableType+" \""+runable.getFullName()+"\" ran a \""+result.matcherName+"\" expectation after it finished.\n";if(result.message){delayedExpectationResult.message+="Message: \""+result.message+"\"\n"}delayedExpectationResult.message+="1. Did you forget to return or await the result of expectAsync?\n2. Was done() invoked before an async operation completed?\n3. Did an expectation follow a call to done()?";topSuite.addExpectationResult(false,delayedExpectationResult)}function routeLateFailure(expectationResult){for(var r=runner.currentRunable();r;r=r.parentSuite){if(!r.reportedDone){if(r===topSuite){expectationResult.globalErrorType="lateError"}r.addExpectationResult(false,expectationResult);return}}console.error("Jasmine received a result after the suite finished:");console.error(expectationResult)}var asyncExpectationFactory=function asyncExpectationFactory(actual,spec,runableType){return j$["private"].Expectation.asyncFactory({matchersUtil:runableResources.makeMatchersUtil(),customAsyncMatchers:runableResources.customAsyncMatchers(),actual:actual,addExpectationResult:addExpectationResult});function addExpectationResult(passed,result){if(runner.currentRunable()!==spec){recordLateExpectation(spec,runableType,result)}return spec.addExpectationResult(passed,result)}};Object.defineProperty(this,"deprecated",{enumerable:true,value:function value(deprecation,options){var runable=runner.currentRunable()||topSuite;deprecator.addDeprecationWarning(runable,deprecation,options)}});function runQueue(options){options.clearStack=options.clearStack||stackClearer;options.timeout={setTimeout:realSetTimeout,clearTimeout:realClearTimeout};options.fail=self2.fail;options.globalErrors=globalErrors;options.onException=options.onException||function(e){(runner.currentRunable()||topSuite).handleException(e)};new j$["private"].QueueRunner(options).execute()}var suiteBuilder=new j$["private"].SuiteBuilder({env:this,expectationFactory:expectationFactory,asyncExpectationFactory:asyncExpectationFactory,onLateError:recordLateError,runQueue:runQueue});topSuite=suiteBuilder.topSuite;var deprecator=(_a=envOptions==null?void 0:envOptions.deprecator)!=null?_a:new j$["private"].Deprecator(topSuite);this.topSuite=function(){ensureNonParallel("topSuite");return topSuite.metadata};reportDispatcher=new j$["private"].ReportDispatcher(j$["private"].reporterEvents,function(options){options.SkipPolicy=j$["private"].NeverSkipPolicy;return runQueue(options)},recordLateError);runner=new j$["private"].Runner({topSuite:topSuite,totalSpecsDefined:function totalSpecsDefined(){return suiteBuilder.totalSpecsDefined},focusedRunables:function focusedRunables(){return suiteBuilder.focusedRunables},runableResources:runableResources,reportDispatcher:reportDispatcher,runQueue:runQueue,TreeProcessor:j$["private"].TreeProcessor,globalErrors:globalErrors,getConfig:function getConfig(){return config}});this.setParallelLoadingState=function(state){parallelLoadingState=state};this.parallelReset=function(){suiteBuilder.parallelReset();runner.parallelReset()};this.execute=/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(runablesToRun){var result;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:installGlobalErrors();if(j$["private"].loadedAsBrowserEsm){this.deprecated("jasmine-core isn't an ES module but it was loaded as one. This is not a supported configuration.")}if(parallelLoadingState){validateConfigForParallel()}_context2.n=1;return runner.execute(runablesToRun);case 1:result=_context2.v;this.cleanup_();return _context2.a(2,result)}},_callee2,this)}));return function(_x2){return _ref3.apply(this,arguments)}}();this.addReporter=function(reporterToAdd){if(parallelLoadingState){throw new Error("Reporters cannot be added via Env in parallel mode")}reportDispatcher.addReporter(reporterToAdd)};this.provideFallbackReporter=function(reporterToAdd){reportDispatcher.provideFallbackReporter(reporterToAdd)};this.clearReporters=function(){if(parallelLoadingState){throw new Error("Reporters cannot be removed via Env in parallel mode")}reportDispatcher.clearReporters()};this.allowRespy=function(allow){runableResources.spyRegistry.allowRespy(allow)};this.spyOn=function(){return runableResources.spyRegistry.spyOn.apply(runableResources.spyRegistry,arguments)};this.spyOnProperty=function(){return runableResources.spyRegistry.spyOnProperty.apply(runableResources.spyRegistry,arguments)};this.spyOnAllFunctions=function(){return runableResources.spyRegistry.spyOnAllFunctions.apply(runableResources.spyRegistry,arguments)};this.createSpy=function(name,originalFn){return runableResources.spyFactory.createSpy(name,originalFn)};this.createSpyObj=function(baseName,methodNames,propertyNames){return runableResources.spyFactory.createSpyObj(baseName,methodNames,propertyNames)};this.spyOnGlobalErrorsAsync=/*#__PURE__*/function(){var _ref4=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(fn){var spy,associatedRunable,cleanedUp,maybePromise;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:spy=this.createSpy("global error handler");associatedRunable=runner.currentRunable();cleanedUp=false;globalErrors.setOverrideListener(spy,function(){if(!cleanedUp){var message="Global error spy was not uninstalled. (Did you forget to await the return value of spyOnGlobalErrorsAsync?)";associatedRunable.addExpectationResult(false,{matcherName:"",passed:false,expected:"",actual:"",message:message,error:null})}cleanedUp=true});_context3.p=1;maybePromise=fn(spy);if(j$["private"].isPromiseLike(maybePromise)){_context3.n=2;break}throw new Error("The callback to spyOnGlobalErrorsAsync must be an async or promise-returning function");case 2:_context3.n=3;return maybePromise;case 3:_context3.p=3;if(!cleanedUp){cleanedUp=true;globalErrors.removeOverrideListener()}return _context3.f(3);case 4:return _context3.a(2)}},_callee3,this,[[1,,3,4]])}));return function(_x3){return _ref4.apply(this,arguments)}}();function ensureIsNotNested(method){var runable=runner.currentRunable();if(runable!==null&&runable!==void 0){throw new Error("'"+method+"' should only be used in 'describe' function")}}function ensureNonParallel(method){if(parallelLoadingState){throw new Error("'".concat(method,"' is not available in parallel mode"))}}function ensureNonParallelOrInDescribe(msg){if(parallelLoadingState&&!suiteBuilder.inDescribe()){throw new Error(msg)}}function ensureNonParallelOrInHelperOrInDescribe(method){if(parallelLoadingState==="specs"&&!suiteBuilder.inDescribe()){throw new Error("In parallel mode, "+method+" must be in a describe block or in a helper file")}}function validateConfigForParallel(){if(!config.random){throw new Error("Randomization cannot be disabled in parallel mode")}if(config.seed!==null&&config.seed!==void 0){throw new Error("Random seed cannot be set in parallel mode")}}this.describe=function(description,definitionFn){ensureIsNotNested("describe");var filename=indirectCallerFilename(describeStackDepth());return suiteBuilder.describe(description,definitionFn,filename).metadata};this.xdescribe=function(description,definitionFn){ensureIsNotNested("xdescribe");var filename=indirectCallerFilename(describeStackDepth());return suiteBuilder.xdescribe(description,definitionFn,filename).metadata};this.fdescribe=function(description,definitionFn){ensureIsNotNested("fdescribe");ensureNonParallel("fdescribe");var filename=indirectCallerFilename(describeStackDepth());return suiteBuilder.fdescribe(description,definitionFn,filename).metadata};this.it=function(description,fn,timeout){ensureIsNotNested("it");var filename=indirectCallerFilename(itStackDepth());return suiteBuilder.it(description,fn,timeout,filename).metadata};this.xit=function(description,fn,timeout){ensureIsNotNested("xit");var filename=indirectCallerFilename(itStackDepth());return suiteBuilder.xit(description,fn,timeout,filename).metadata};this.fit=function(description,fn,timeout){ensureIsNotNested("fit");ensureNonParallel("fit");var filename=indirectCallerFilename(itStackDepth());return suiteBuilder.fit(description,fn,timeout,filename).metadata};function itStackDepth(){return DEFAULT_IT_DESCRIBE_STACK_DEPTH+config.extraItStackFrames}function describeStackDepth(){return DEFAULT_IT_DESCRIBE_STACK_DEPTH+config.extraDescribeStackFrames}this.getSpecProperty=function(key){if(!runner.currentRunable()||runner.currentRunable()==runner.currentSuite()){throw new Error("'getSpecProperty' was used when there was no current spec")}return runner.currentRunable().getSpecProperty(key)};this.setSpecProperty=function(key,value){if(!runner.currentRunable()||runner.currentRunable()==runner.currentSuite()){throw new Error("'setSpecProperty' was used when there was no current spec")}runner.currentRunable().setSpecProperty(key,value)};this.setSuiteProperty=function(key,value){if(!runner.currentSuite()){throw new Error("'setSuiteProperty' was used when there was no current suite")}runner.currentSuite().setSuiteProperty(key,value)};this.debugLog=function(msg){var maybeSpec=runner.currentRunable();if(!maybeSpec||!maybeSpec.debugLog){throw new Error("'debugLog' was called when there was no current spec")}maybeSpec.debugLog(msg)};this.expect=function(actual){var runable=runner.currentRunable();if(!runable){throw new Error("'expect' was used when there was no current spec, this could be because an asynchronous test timed out")}return runable.expectationFactory(actual,runable)};this.expectAsync=function(actual){var runable=runner.currentRunable();if(!runable){throw new Error("'expectAsync' was used when there was no current spec, this could be because an asynchronous test timed out")}return runable.asyncExpectationFactory(actual,runable)};this.throwUnless=function(actual){var runable=runner.currentRunable();return throwUnlessFactory(actual,runable)};this.throwUnlessAsync=function(actual){var runable=runner.currentRunable();return throwUnlessAsyncFactory(actual,runable)};this.beforeEach=function(beforeEachFunction,timeout){ensureIsNotNested("beforeEach");ensureNonParallelOrInHelperOrInDescribe("beforeEach");suiteBuilder.beforeEach(beforeEachFunction,timeout)};this.beforeAll=function(beforeAllFunction,timeout){ensureIsNotNested("beforeAll");ensureNonParallelOrInDescribe("In parallel mode, 'beforeAll' must be in a describe block. Use the globalSetup config property for exactly-once setup in parallel mode.");suiteBuilder.beforeAll(beforeAllFunction,timeout)};this.afterEach=function(afterEachFunction,timeout){ensureIsNotNested("afterEach");ensureNonParallelOrInHelperOrInDescribe("afterEach");suiteBuilder.afterEach(afterEachFunction,timeout)};this.afterAll=function(afterAllFunction,timeout){ensureIsNotNested("afterAll");ensureNonParallelOrInDescribe("In parallel mode, 'afterAll' must be in a describe block. Use the globalTeardown config property for exactly-once teardown in parallel mode.");suiteBuilder.afterAll(afterAllFunction,timeout)};this.pending=function(message){var fullMessage=j$["private"].Spec.pendingSpecExceptionMessage;if(message){fullMessage+=message}throw fullMessage};this.fail=function(error){if(!runner.currentRunable()){throw new Error("'fail' was used when there was no current spec, this could be because an asynchronous test timed out")}var message="Failed";if(error){message+=": ";if(error.message){message+=error.message}else if(j$["private"].isString(error)){message+=error}else{var pp=runableResources.makePrettyPrinter();message+=pp(error)}}runner.currentRunable().addExpectationResult(false,{matcherName:"",passed:false,expected:"",actual:"",message:message,error:error&&error.message?error:null});if(config.stopSpecOnExpectationFailure){throw new Error(message)}};this.pp=function(value){var pp=runner.currentRunable()?runableResources.makePrettyPrinter():j$["private"].basicPrettyPrinter;return pp(value)};this.cleanup_=function(){uninstallGlobalErrors()};j$["private"].deprecateMonkeyPatching(this,["deprecated"])}function indirectCallerFilename(depth){var frames=new j$["private"].StackTrace(new Error()).frames;return frames[depth]&&frames[depth].file}return Env};getJasmineRequireObj().JsApiReporter=function(j$){"use strict";function JsApiReporter(options){var timer=options.timer||new j$.Timer;var status="loaded";this.started=false;this.finished=false;this.runDetails={};this.jasmineStarted=function(){this.started=true;status="started";timer.start()};var executionTime;this.jasmineDone=function(runDetails){this.finished=true;this.runDetails=runDetails;executionTime=timer.elapsed();status="done"};this.status=function(){return status};var suites=[];var suites_hash={};this.suiteStarted=function(result){suites_hash[result.id]=result};this.suiteDone=function(result){storeSuite(result)};this.suiteResults=function(index,length){return suites.slice(index,index+length)};function storeSuite(result){suites.push(result);suites_hash[result.id]=result}this.suites=function(){return suites_hash};var specs=[];this.specDone=function(result){specs.push(result)};this.specResults=function(index,length){return specs.slice(index,index+length)};this.specs=function(){return specs};this.executionTime=function(){return executionTime}}return JsApiReporter};getJasmineRequireObj().AllOf=function(j$){"use strict";function AllOf(){var expectedValues=Array.from(arguments);if(expectedValues.length===0){throw new TypeError("jasmine.allOf() expects at least one argument to be passed.")}this.expectedValues=expectedValues}AllOf.prototype.asymmetricMatch=function(other,matchersUtil){var _iterator3=_createForOfIteratorHelper(this.expectedValues),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var expectedValue=_step3.value;if(!matchersUtil.equals(other,expectedValue)){return false}}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}return true};AllOf.prototype.jasmineToString=function(pp){return"<jasmine.allOf("+pp(this.expectedValues)+")>"};return AllOf};getJasmineRequireObj().Any=function(j$){"use strict";function Any(expectedObject){if(typeof expectedObject==="undefined"){throw new TypeError("jasmine.any() expects to be passed a constructor function. Please pass one or use jasmine.anything() to match any object.")}this.expectedObject=expectedObject}Any.prototype.asymmetricMatch=function(other){if(this.expectedObject==String){return typeof other=="string"||other instanceof String}if(this.expectedObject==Number){return typeof other=="number"||other instanceof Number}if(this.expectedObject==Function){return typeof other=="function"||other instanceof Function}if(this.expectedObject==Object){return other!==null&&_typeof(other)=="object"}if(this.expectedObject==Boolean){return typeof other=="boolean"}if(typeof Symbol!="undefined"&&this.expectedObject==Symbol){return _typeof(other)=="symbol"}return other instanceof this.expectedObject};Any.prototype.jasmineToString=function(){return"<jasmine.any("+j$["private"].fnNameFor(this.expectedObject)+")>"};return Any};getJasmineRequireObj().Anything=function(j$){"use strict";function Anything(){}Anything.prototype.asymmetricMatch=function(other){return other!==void 0&&other!==null};Anything.prototype.jasmineToString=function(){return"<jasmine.anything>"};return Anything};getJasmineRequireObj().ArrayContaining=function(j$){"use strict";function ArrayContaining(sample){this.sample=sample}ArrayContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(!Array.isArray(this.sample)){throw new Error("You must provide an array to arrayContaining, not "+j$["private"].basicPrettyPrinter(this.sample)+".")}if(!Array.isArray(other)&&this.sample.length>0){return false}var _iterator4=_createForOfIteratorHelper(this.sample),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var item=_step4.value;if(!matchersUtil.contains(other,item)){return false}}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}return true};ArrayContaining.prototype.jasmineToString=function(pp){return"<jasmine.arrayContaining("+pp(this.sample)+")>"};return ArrayContaining};getJasmineRequireObj().ArrayWithExactContents=function(j$){"use strict";function ArrayWithExactContents(sample){this.sample=sample}ArrayWithExactContents.prototype.asymmetricMatch=function(other,matchersUtil){if(!Array.isArray(this.sample)){throw new Error("You must provide an array to arrayWithExactContents, not "+j$["private"].basicPrettyPrinter(this.sample)+".")}if(this.sample.length!==other.length){return false}var _iterator5=_createForOfIteratorHelper(this.sample),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var item=_step5.value;if(!matchersUtil.contains(other,item)){return false}}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}return true};ArrayWithExactContents.prototype.jasmineToString=function(pp){return"<jasmine.arrayWithExactContents("+pp(this.sample)+")>"};return ArrayWithExactContents};getJasmineRequireObj().Empty=function(j$){"use strict";function Empty(){}Empty.prototype.asymmetricMatch=function(other){if(j$["private"].isString(other)||Array.isArray(other)||j$["private"].isTypedArray(other)){return other.length===0}if(j$["private"].isMap(other)||j$["private"].isSet(other)){return other.size===0}if(j$["private"].isObject(other)){return Object.keys(other).length===0}return false};Empty.prototype.jasmineToString=function(){return"<jasmine.empty>"};return Empty};getJasmineRequireObj().Falsy=function(j$){"use strict";function Falsy(){}Falsy.prototype.asymmetricMatch=function(other){return!other};Falsy.prototype.jasmineToString=function(){return"<jasmine.falsy>"};return Falsy};getJasmineRequireObj().Is=function(j$){"use strict";var Is=/*#__PURE__*/function(){function Is(expected){_classCallCheck(this,Is);this.expected_=expected}return _createClass(Is,[{key:"asymmetricMatch",value:function asymmetricMatch(actual){return actual===this.expected_}},{key:"jasmineToString",value:function jasmineToString(pp){return"<jasmine.is(".concat(pp(this.expected_),")>")}}])}();return Is};getJasmineRequireObj().MapContaining=function(j$){"use strict";function MapContaining(sample){if(!j$["private"].isMap(sample)){throw new Error("You must provide a map to `mapContaining`, not "+j$["private"].basicPrettyPrinter(sample))}this.sample=sample}MapContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(!j$["private"].isMap(other)){return false}var _iterator6=_createForOfIteratorHelper(this.sample),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _step6$value=_slicedToArray(_step6.value,2),key=_step6$value[0],value=_step6$value[1];var hasMatch=false;var _iterator7=_createForOfIteratorHelper(other),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _step7$value=_slicedToArray(_step7.value,2),oKey=_step7$value[0],oValue=_step7$value[1];if(matchersUtil.equals(oKey,key)&&matchersUtil.equals(oValue,value)){hasMatch=true;break}}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(!hasMatch){return false}}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}return true};MapContaining.prototype.jasmineToString=function(pp){return"<jasmine.mapContaining("+pp(this.sample)+")>"};return MapContaining};getJasmineRequireObj().NotEmpty=function(j$){"use strict";function NotEmpty(){}NotEmpty.prototype.asymmetricMatch=function(other){if(j$["private"].isString(other)||Array.isArray(other)||j$["private"].isTypedArray(other)){return other.length!==0}if(j$["private"].isMap(other)||j$["private"].isSet(other)){return other.size!==0}if(j$["private"].isObject(other)){return Object.keys(other).length!==0}return false};NotEmpty.prototype.jasmineToString=function(){return"<jasmine.notEmpty>"};return NotEmpty};getJasmineRequireObj().ObjectContaining=function(j$){"use strict";function ObjectContaining(sample){this.sample=sample}function hasProperty(obj,property){if(!obj||_typeof(obj)!=="object"){return false}if(Object.prototype.hasOwnProperty.call(obj,property)){return true}return hasProperty(Object.getPrototypeOf(obj),property)}ObjectContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(_typeof(this.sample)!=="object"){throw new Error("You must provide an object to objectContaining, not '"+this.sample+"'.")}if(_typeof(other)!=="object"){return false}for(var property in this.sample){if(!hasProperty(other,property)||!matchersUtil.equals(this.sample[property],other[property])){return false}}return true};ObjectContaining.prototype.valuesForDiff_=function(other,pp){if(!j$["private"].isObject(other)){return{self:this.jasmineToString(pp),other:other}}var filteredOther={};Object.keys(this.sample).forEach(function(k){filteredOther[k]=other[k]});return{self:this.sample,other:filteredOther}};ObjectContaining.prototype.jasmineToString=function(pp){return"<jasmine.objectContaining("+pp(this.sample)+")>"};return ObjectContaining};getJasmineRequireObj().SetContaining=function(j$){"use strict";function SetContaining(sample){if(!j$["private"].isSet(sample)){throw new Error("You must provide a set to `setContaining`, not "+j$["private"].basicPrettyPrinter(sample))}this.sample=sample}SetContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(!j$["private"].isSet(other)){return false}var _iterator8=_createForOfIteratorHelper(this.sample),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var item=_step8.value;var hasMatch=false;var _iterator9=_createForOfIteratorHelper(other),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var oItem=_step9.value;if(matchersUtil.equals(oItem,item)){hasMatch=true;break}}}catch(err){_iterator9.e(err)}finally{_iterator9.f()}if(!hasMatch){return false}}}catch(err){_iterator8.e(err)}finally{_iterator8.f()}return true};SetContaining.prototype.jasmineToString=function(pp){return"<jasmine.setContaining("+pp(this.sample)+")>"};return SetContaining};getJasmineRequireObj().StringContaining=function(j$){"use strict";function StringContaining(expected){if(!j$["private"].isString(expected)){throw new Error("Expected is not a String")}this.expected=expected}StringContaining.prototype.asymmetricMatch=function(other){if(!j$["private"].isString(other)){return false}return other.indexOf(this.expected)!==-1};StringContaining.prototype.jasmineToString=function(){return"<jasmine.stringContaining(\""+this.expected+"\")>"};return StringContaining};getJasmineRequireObj().StringMatching=function(j$){"use strict";function StringMatching(expected){if(!j$["private"].isString(expected)&&!j$["private"].isA("RegExp",expected)){throw new Error("Expected is not a String or a RegExp")}this.regexp=new RegExp(expected)}StringMatching.prototype.asymmetricMatch=function(other){return this.regexp.test(other)};StringMatching.prototype.jasmineToString=function(){return"<jasmine.stringMatching("+this.regexp+")>"};return StringMatching};getJasmineRequireObj().Truthy=function(j$){"use strict";function Truthy(){}Truthy.prototype.asymmetricMatch=function(other){return!!other};Truthy.prototype.jasmineToString=function(){return"<jasmine.truthy>"};return Truthy};getJasmineRequireObj().buildExpectationResult=function(j$){"use strict";function buildExpectationResult(options){var exceptionFormatter=new j$["private"].ExceptionFormatter;var result={matcherName:options.matcherName,message:message(),stack:options.omitStackTrace?"":stack(),passed:options.passed,globalErrorType:options.globalErrorType};if(options.filename!==void 0){result.filename=options.filename}if(options.lineno!==void 0){result.lineno=options.lineno}if(!result.passed){if(options.error&&!j$["private"].isString(options.error)){if("code"in options.error){result.code=options.error.code}if(options.error.code==="ERR_ASSERTION"){result.matcherName="assert "+options.error.operator}}}return result;function message(){if(options.passed){return"Passed."}else if(options.message){return options.message}else if(options.error){return exceptionFormatter.message(options.error)}return""}function stack(){if(options.passed){return""}var error=options.error;if(!error){if(options.errorForStack){error=options.errorForStack}else if(options.stack){error=options}else{error=new Error(message())}}return exceptionFormatter.stack(error,{omitMessage:true})}}return buildExpectationResult};getJasmineRequireObj().CallTracker=function(j$){"use strict";function CallTracker(){var calls=[];var opts={};this.track=function(context){if(opts.cloneArgs){context.args=opts.argsCloner(context.args)}calls.push(context)};this.any=function(){return!!calls.length};this.count=function(){return calls.length};this.argsFor=function(index){var call=calls[index];return call?call.args:[]};this.thisFor=function(index){var call=calls[index];return call?call.object:void 0};this.all=function(){return calls};this.allArgs=function(){return calls.map(function(c){return c.args})};this.first=function(){return calls[0]};this.mostRecent=function(){return calls[calls.length-1]};this.reset=function(){calls=[]};this.saveArgumentsByValue=function(){var argsCloner=arguments.length>0&&arguments[0]!==undefined?arguments[0]:j$["private"].util.cloneArgs;opts.cloneArgs=true;opts.argsCloner=argsCloner};this.unverifiedCount=function(){return calls.reduce(function(count,call){return count+(call.verified?0:1)},0)}}return CallTracker};getJasmineRequireObj().Clock=function(j$){"use strict";var NODE_JS=typeof process!=="undefined"&&process.versions&&typeof process.versions.node==="string";var IsMockClockTimingFn=/* @__PURE__ */Symbol("IsMockClockTimingFn");function Clock(global2,delayedFunctionSchedulerFactory,mockDate){var realTimingFunctions={setTimeout:global2.setTimeout,clearTimeout:global2.clearTimeout,setInterval:global2.setInterval,clearInterval:global2.clearInterval};var fakeTimingFunctions={setTimeout:setTimeout2,clearTimeout:clearTimeout2,setInterval:setInterval,clearInterval:clearInterval};var installed=false;var delayedFunctionScheduler;var timer;var tickMode={mode:"manual",counter:0};this.FakeTimeout=FakeTimeout;this.install=function(){if(!originalTimingFunctionsIntact()){throw new Error("Jasmine Clock was unable to install over custom global timer functions. Is the clock already installed?")}replace(global2,fakeTimingFunctions);timer=fakeTimingFunctions;delayedFunctionScheduler=delayedFunctionSchedulerFactory();installed=true;return this};this.uninstall=function(){if(tickMode.mode==="auto"){tickMode={mode:"manual",counter:tickMode.counter+1}}delayedFunctionScheduler=null;mockDate.uninstall();replace(global2,realTimingFunctions);timer=realTimingFunctions;installed=false};this.withMock=function(closure){this.install();try{closure()}finally{this.uninstall()}};this.mockDate=function(initialDate){mockDate.install(initialDate)};this.setTimeout=function(fn,delay,params){return Function.prototype.apply.apply(timer.setTimeout,[global2,arguments])};this.setInterval=function(fn,delay,params){return Function.prototype.apply.apply(timer.setInterval,[global2,arguments])};this.clearTimeout=function(id){return Function.prototype.call.apply(timer.clearTimeout,[global2,id])};this.clearInterval=function(id){return Function.prototype.call.apply(timer.clearInterval,[global2,id])};this.tick=function(millis){if(installed){delayedFunctionScheduler.tick(millis,function(millis2){mockDate.tick(millis2)})}else{throw new Error("Mock clock is not installed, use jasmine.clock().install()")}};this.autoTick=function(){if(tickMode.mode==="auto"){return}tickMode={mode:"auto",counter:tickMode.counter+1};advanceUntilModeChanges()};setTimeout2[IsMockClockTimingFn]=true;clearTimeout2[IsMockClockTimingFn]=true;setInterval[IsMockClockTimingFn]=true;clearInterval[IsMockClockTimingFn]=true;j$["private"].deprecateMonkeyPatching(this);return this;function advanceUntilModeChanges(){return _advanceUntilModeChanges.apply(this,arguments)}function _advanceUntilModeChanges(){_advanceUntilModeChanges=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(){var _tickMode,counter;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:if(installed){_context4.n=1;break}throw new Error("Mock clock is not installed, use jasmine.clock().install()");case 1:_tickMode=tickMode,counter=_tickMode.counter;case 2:if(!true){_context4.n=5;break}_context4.n=3;return newMacrotask();case 3:if(!(tickMode.counter!==counter||!installed||delayedFunctionScheduler===null)){_context4.n=4;break}return _context4.a(2);case 4:if(!delayedFunctionScheduler.isEmpty()){delayedFunctionScheduler.runNextQueuedFunction(function(millis){mockDate.tick(millis)})}_context4.n=2;break;case 5:return _context4.a(2)}},_callee4)}));return _advanceUntilModeChanges.apply(this,arguments)}function newMacrotask(){return _newMacrotask.apply(this,arguments)}function _newMacrotask(){_newMacrotask=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(){var channel;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:if(!NODE_JS){_context5.n=1;break}return _context5.a(2,new Promise(function(resolve){return void setImmediate(resolve)}));case 1:channel=new MessageChannel;_context5.n=2;return new Promise(function(resolve){channel.port1.onmessage=resolve;channel.port2.postMessage(void 0)});case 2:channel.port1.close();channel.port2.close();_context5.n=3;return new Promise(function(resolve){realTimingFunctions.setTimeout.call(global2,resolve)});case 3:return _context5.a(2)}},_callee5)}));return _newMacrotask.apply(this,arguments)}function originalTimingFunctionsIntact(){return global2.setTimeout===realTimingFunctions.setTimeout&&global2.clearTimeout===realTimingFunctions.clearTimeout&&global2.setInterval===realTimingFunctions.setInterval&&global2.clearInterval===realTimingFunctions.clearInterval}function replace(dest,source){for(var prop in source){dest[prop]=source[prop]}}function setTimeout2(fn,delay){if(!NODE_JS){return delayedFunctionScheduler.scheduleFunction(fn,delay,argSlice(arguments,2))}var timeout=new FakeTimeout;delayedFunctionScheduler.scheduleFunction(fn,delay,argSlice(arguments,2),false,timeout);return timeout}function clearTimeout2(id){return delayedFunctionScheduler.removeFunctionWithId(id)}function setInterval(fn,interval){if(!NODE_JS){return delayedFunctionScheduler.scheduleFunction(fn,interval,argSlice(arguments,2),true)}var timeout=new FakeTimeout;delayedFunctionScheduler.scheduleFunction(fn,interval,argSlice(arguments,2),true,timeout);return timeout}function clearInterval(id){return delayedFunctionScheduler.removeFunctionWithId(id)}function argSlice(argsObj,n){return Array.prototype.slice.call(argsObj,n)}}function FakeTimeout(){}FakeTimeout.prototype.ref=function(){return this};FakeTimeout.prototype.unref=function(){return this};Clock.IsMockClockTimingFn=IsMockClockTimingFn;return Clock};getJasmineRequireObj().CompleteOnFirstErrorSkipPolicy=function(j$){"use strict";function CompleteOnFirstErrorSkipPolicy(queueableFns){this.queueableFns_=queueableFns;this.erroredFnIx_=null}CompleteOnFirstErrorSkipPolicy.prototype.skipTo=function(lastRanFnIx){var i;for(i=lastRanFnIx+1;i<this.queueableFns_.length&&this.shouldSkip_(i);i++){}return i};CompleteOnFirstErrorSkipPolicy.prototype.fnErrored=function(fnIx){this.erroredFnIx_=fnIx};CompleteOnFirstErrorSkipPolicy.prototype.shouldSkip_=function(fnIx){if(this.erroredFnIx_===null){return false}var fn=this.queueableFns_[fnIx];var candidateSuite=fn.suite;var errorSuite=this.queueableFns_[this.erroredFnIx_].suite;var wasCleanupFn=fn.type==="afterEach"||fn.type==="afterAll"||fn.type==="specCleanup";return!wasCleanupFn||candidateSuite&&isDescendent(candidateSuite,errorSuite)};function isDescendent(candidate,ancestor){if(!candidate.parentSuite){return false}else if(candidate.parentSuite===ancestor){return true}else{return isDescendent(candidate.parentSuite,ancestor)}}return CompleteOnFirstErrorSkipPolicy};getJasmineRequireObj().Configuration=function(j$){"use strict";var _values;var defaultConfig={/**
|
|
164
167
|
* Whether to randomize spec execution order
|
|
165
168
|
* @name Configuration#random
|
|
166
169
|
* @since 3.3.0
|
|
@@ -209,13 +212,15 @@ function(){return _this.configuration()});var _ref2=/* @__PURE__ */function(){va
|
|
|
209
212
|
* @since 3.3.0
|
|
210
213
|
* @type SpecFilter
|
|
211
214
|
* @default A function that always returns true.
|
|
212
|
-
*/specFilter:function specFilter(){return true}
|
|
215
|
+
*/specFilter:function specFilter(){return true},// TODO: remove hideDisabled when HtmlReporter is removed
|
|
216
|
+
/**
|
|
213
217
|
* Whether reporters should hide disabled specs from their output.
|
|
214
218
|
* Currently only supported by Jasmine's HTMLReporter
|
|
215
219
|
* @name Configuration#hideDisabled
|
|
216
220
|
* @since 3.3.0
|
|
217
221
|
* @type Boolean
|
|
218
222
|
* @default false
|
|
223
|
+
* @deprecated
|
|
219
224
|
*/hideDisabled:false,/**
|
|
220
225
|
* Clean closures when a suite is done running (done by clearing the stored function reference).
|
|
221
226
|
* This prevents memory leaks, but you won't be able to run jasmine multiple times.
|
|
@@ -229,8 +234,8 @@ function(){return _this.configuration()});var _ref2=/* @__PURE__ */function(){va
|
|
|
229
234
|
* error.
|
|
230
235
|
* @name Configuration#forbidDuplicateNames
|
|
231
236
|
* @type boolean
|
|
232
|
-
* @default
|
|
233
|
-
*/forbidDuplicateNames:
|
|
237
|
+
* @default true
|
|
238
|
+
*/forbidDuplicateNames:true,/**
|
|
234
239
|
* Whether to issue warnings for certain deprecated functionality
|
|
235
240
|
* every time it's used. If not set or set to false, deprecation warnings
|
|
236
241
|
* for methods that tend to be called frequently will be issued only once
|
|
@@ -268,26 +273,26 @@ function(){return _this.configuration()});var _ref2=/* @__PURE__ */function(){va
|
|
|
268
273
|
* @since 5.13.0
|
|
269
274
|
* @type number
|
|
270
275
|
* @default 0
|
|
271
|
-
*/extraDescribeStackFrames:0
|
|
276
|
+
*/extraDescribeStackFrames:0,/**
|
|
277
|
+
* The strategy to use in Safari and similar browsers to determine how often
|
|
278
|
+
* to yield control by calling setTimeout. If set to "count", the default,
|
|
279
|
+
* the frequency of setTimeout calls is based on the number of relevant
|
|
280
|
+
* function calls. If set to "time", the frequency of setTimeout calls is
|
|
281
|
+
* based on elapsed time. Using "time" may provide a significant performance
|
|
282
|
+
* improvement, but as of 6.0 it hasn't been tested with a wide variety of
|
|
283
|
+
* workloads and should be considered experimental.
|
|
284
|
+
* @name Configuration#safariYieldStrategy
|
|
285
|
+
* @since 6.0.0
|
|
286
|
+
* @type 'count' | 'time'
|
|
287
|
+
* @default 'count'
|
|
288
|
+
*/safariYieldStrategy:"count"};Object.freeze(defaultConfig);var Configuration=/*#__PURE__*/function(){function Configuration(){var _this2=this;_classCallCheck(this,Configuration);__privateAdd(this,_values);__privateSet(this,_values,__spreadValues({},defaultConfig));var _loop2=function _loop2(){var k=_Object$keys[_i3];Object.defineProperty(_this2,k,{enumerable:true,get:function get(){return __privateGet(this,_values)[k]}})};for(var _i3=0,_Object$keys=Object.keys(defaultConfig);_i3<_Object$keys.length;_i3++){_loop2()}}return _createClass(Configuration,[{key:"copy",value:function copy(){return __spreadValues({},__privateGet(this,_values))}},{key:"update",value:function update(changes){var booleanProps=["random","failSpecWithNoExpectations","hideDisabled","stopOnSpecFailure","stopSpecOnExpectationFailure","autoCleanClosures","forbidDuplicateNames","detectLateRejectionHandling","verboseDeprecations"];for(var _i4=0,_booleanProps=booleanProps;_i4<_booleanProps.length;_i4++){var k=_booleanProps[_i4];if(typeof changes[k]!=="undefined"){__privateGet(this,_values)[k]=changes[k]}}if(changes.specFilter){__privateGet(this,_values).specFilter=changes.specFilter}if(typeof changes.seed!=="undefined"){__privateGet(this,_values).seed=changes.seed}if(typeof changes.extraItStackFrames!=="undefined"){__privateGet(this,_values).extraItStackFrames=changes.extraItStackFrames}if(typeof changes.extraDescribeStackFrames!=="undefined"){__privateGet(this,_values).extraDescribeStackFrames=changes.extraDescribeStackFrames}if(typeof changes.safariYieldStrategy!=="undefined"){var v=changes.safariYieldStrategy;if(v==="count"||v==="time"){__privateGet(this,_values).safariYieldStrategy=v}else{throw new Error("Invalid safariYieldStrategy value. Valid values are 'count' and 'time'.")}}}}])}();_values=new WeakMap;return Configuration};getJasmineRequireObj().CurrentRunableTracker=function(){"use strict";var _currentSpec,_currentlyExecutingSuites;var CurrentRunableTracker=/*#__PURE__*/function(){function CurrentRunableTracker(){_classCallCheck(this,CurrentRunableTracker);__privateAdd(this,_currentSpec);__privateAdd(this,_currentlyExecutingSuites);__privateSet(this,_currentlyExecutingSuites,[])}return _createClass(CurrentRunableTracker,[{key:"currentRunable",value:function currentRunable(){return this.currentSpec()||this.currentSuite()}},{key:"currentSpec",value:function currentSpec(){return __privateGet(this,_currentSpec)}},{key:"setCurrentSpec",value:function setCurrentSpec(spec){__privateSet(this,_currentSpec,spec)}},{key:"currentSuite",value:function currentSuite(){return __privateGet(this,_currentlyExecutingSuites)[__privateGet(this,_currentlyExecutingSuites).length-1]}},{key:"pushSuite",value:function pushSuite(suite){__privateGet(this,_currentlyExecutingSuites).push(suite)}},{key:"popSuite",value:function popSuite(){__privateGet(this,_currentlyExecutingSuites).pop()}}])}();_currentSpec=new WeakMap;_currentlyExecutingSuites=new WeakMap;return CurrentRunableTracker};getJasmineRequireObj().DelayedFunctionScheduler=function(j$){"use strict";function DelayedFunctionScheduler(){this.scheduledLookup_=[];this.scheduledFunctions_={};this.currentTime_=0;this.delayedFnStartCount_=1e12;this.deletedKeys_=[];this.tick=function(millis,tickDate){millis=millis||0;var endTime=this.currentTime_+millis;this.runScheduledFunctions_(endTime,tickDate)};this.scheduleFunction=function(funcToCall,millis,params,recurring,timeoutKey,runAtMillis){if(typeof funcToCall==="string"){throw new Error("The mock clock does not support the eval form of setTimeout and setInterval. Pass a function instead of a string.")}millis=millis||0;timeoutKey=timeoutKey||++this.delayedFnStartCount_;runAtMillis=runAtMillis||this.currentTime_+millis;var funcToSchedule={runAtMillis:runAtMillis,funcToCall:funcToCall,recurring:recurring,params:params,timeoutKey:timeoutKey,millis:millis};if(runAtMillis in this.scheduledFunctions_){this.scheduledFunctions_[runAtMillis].push(funcToSchedule)}else{this.scheduledFunctions_[runAtMillis]=[funcToSchedule];this.scheduledLookup_.push(runAtMillis);this.scheduledLookup_.sort(function(a,b){return a-b})}return timeoutKey};this.removeFunctionWithId=function(timeoutKey){this.deletedKeys_.push(timeoutKey);for(var runAtMillis in this.scheduledFunctions_){var funcs=this.scheduledFunctions_[runAtMillis];var i=indexOfFirstToPass(funcs,function(func){return func.timeoutKey===timeoutKey});if(i>-1){if(funcs.length===1){delete this.scheduledFunctions_[runAtMillis];this.deleteFromLookup_(runAtMillis)}else{funcs.splice(i,1)}break}}};this.isEmpty=function(){return this.scheduledFunctions_.length===0};this.runNextQueuedFunction=function(tickDate){if(this.scheduledLookup_.length===0){return}var newCurrentTime=this.scheduledLookup_[0];if(newCurrentTime>=this.currentTime_){tickDate(newCurrentTime-this.currentTime_);this.currentTime_=newCurrentTime}var funcsAtTime=this.scheduledFunctions_[this.currentTime_];var fn=funcsAtTime.shift();if(funcsAtTime.length===0){delete this.scheduledFunctions_[this.currentTime_];this.scheduledLookup_.splice(0,1)}if(fn.recurring){this.reschedule_(fn)}fn.funcToCall.apply(null,fn.params||[])};return this}DelayedFunctionScheduler.prototype.runScheduledFunctions_=function(endTime,tickDate){tickDate=tickDate||function(){};if(this.scheduledLookup_.length===0||this.scheduledLookup_[0]>endTime){if(endTime>=this.currentTime_){tickDate(endTime-this.currentTime_);this.currentTime_=endTime}return}do{this.deletedKeys_=[];var newCurrentTime=this.scheduledLookup_.shift();if(newCurrentTime>=this.currentTime_){tickDate(newCurrentTime-this.currentTime_);this.currentTime_=newCurrentTime}var funcsToRun=this.scheduledFunctions_[this.currentTime_];delete this.scheduledFunctions_[this.currentTime_];var _iterator0=_createForOfIteratorHelper(funcsToRun),_step0;try{for(_iterator0.s();!(_step0=_iterator0.n()).done;){var fn=_step0.value;if(fn.recurring){this.reschedule_(fn)}}}catch(err){_iterator0.e(err)}finally{_iterator0.f()}var _iterator1=_createForOfIteratorHelper(funcsToRun),_step1;try{for(_iterator1.s();!(_step1=_iterator1.n()).done;){var _fn=_step1.value;if(this.deletedKeys_.includes(_fn.timeoutKey)){return}_fn.funcToCall.apply(null,_fn.params||[])}}catch(err){_iterator1.e(err)}finally{_iterator1.f()}this.deletedKeys_=[]}while(this.scheduledLookup_.length>0&&// checking first if we're out of time prevents setTimeout(0)
|
|
272
289
|
// scheduled in a funcToRun from forcing an extra iteration
|
|
273
|
-
this.currentTime_!==endTime&&this.scheduledLookup_[0]<=endTime);if(endTime>=this.currentTime_){tickDate(endTime-this.currentTime_);this.currentTime_=endTime}};DelayedFunctionScheduler.prototype.reschedule_=function(scheduledFn){this.scheduleFunction(scheduledFn.funcToCall,scheduledFn.millis,scheduledFn.params,true,scheduledFn.timeoutKey,scheduledFn.runAtMillis+scheduledFn.millis)};DelayedFunctionScheduler.prototype.deleteFromLookup_=function(key){var value=Number(key);var i=indexOfFirstToPass(this.scheduledLookup_,function(millis2){return millis2===value});if(i>-1){this.scheduledLookup_.splice(i,1)}};function indexOfFirstToPass(array,testFn){var index=-1;for(var i=0;i<array.length;++i){if(testFn(array[i])){index=i;break}}return index}return DelayedFunctionScheduler};getJasmineRequireObj().Deprecator=function(j$2){function Deprecator(topSuite){this.topSuite_=topSuite;this.verbose_=false;this.toSuppress_=[]}var verboseNote="Note: This message will be shown only once. Set the verboseDeprecations config property to true to see every occurrence.";Deprecator.prototype.verboseDeprecations=function(enabled){this.verbose_=enabled};Deprecator.prototype.addDeprecationWarning=function(runnable,deprecation,options){options=options||{};if(!this.verbose_&&!j$2.isError_(deprecation)){if(this.toSuppress_.indexOf(deprecation)!==-1){return}this.toSuppress_.push(deprecation)}this.log_(runnable,deprecation,options);this.report_(runnable,deprecation,options)};Deprecator.prototype.log_=function(runnable,deprecation,options){if(j$2.isError_(deprecation)){console.error(deprecation);return}var context;if(runnable===this.topSuite_||options.ignoreRunnable){context=""}else if(runnable.children){context=" (in suite: "+runnable.getFullName()+")"}else{context=" (in spec: "+runnable.getFullName()+")"}if(!options.omitStackTrace){context+="\n"+this.stackTrace_()}if(!this.verbose_){context+="\n"+verboseNote}console.error("DEPRECATION: "+deprecation+context)};Deprecator.prototype.stackTrace_=function(){var formatter=new j$2.ExceptionFormatter;return formatter.stack(new Error).replace(/^Error\n/m,"")};Deprecator.prototype.report_=function(runnable,deprecation,options){if(options.ignoreRunnable){runnable=this.topSuite_}if(j$2.isError_(deprecation)){runnable.addDeprecationWarning(deprecation);return}if(!this.verbose_){deprecation+="\n"+verboseNote}runnable.addDeprecationWarning({message:deprecation,omitStackTrace:options.omitStackTrace||false})};return Deprecator};getJasmineRequireObj().errors=function(){function ExpectationFailed(){}ExpectationFailed.prototype=new Error;ExpectationFailed.prototype.constructor=ExpectationFailed;return{ExpectationFailed:ExpectationFailed}};getJasmineRequireObj().ExceptionFormatter=function(j$2){var ignoredProperties=["name","message","stack","fileName","sourceURL","line","lineNumber","column","description","jasmineMessage"];function ExceptionFormatter(options){var jasmineFile=options&&options.jasmineFile||j$2.util.jasmineFile();this.message=function(error){var message="";if(error.jasmineMessage){message+=error.jasmineMessage}else if(error.name&&error.message){message+=error.name+": "+error.message}else if(error.message){message+=error.message}else{message+=error.toString()+" thrown"}if(error.fileName||error.sourceURL){message+=" in "+(error.fileName||error.sourceURL)}if(error.line||error.lineNumber){message+=" (line "+(error.line||error.lineNumber)+")"}return message};this.stack=function(error){var _ref5=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},omitMessage=_ref5.omitMessage;if(!error||!error.stack){return null}var lines=this.stack_(error,{messageHandling:omitMessage?"omit":void 0});return lines.join("\n")};this.stack_=function(error,_ref6){var messageHandling=_ref6.messageHandling;var lines=formatProperties(error).split("\n");if(lines[lines.length-1]===""){lines.pop()}var stackTrace=new j$2.StackTrace(error);lines=lines.concat(filterJasmine(stackTrace));if(messageHandling==="require"){lines.unshift(stackTrace.message||"Error: "+error.message)}else if(messageHandling!=="omit"&&stackTrace.message){lines.unshift(stackTrace.message)}if(error.cause&&error.cause instanceof Error){var substack=this.stack_(error.cause,{messageHandling:"require"});substack[0]="Caused by: "+substack[0];lines=lines.concat(substack)}return lines};function filterJasmine(stackTrace){var result=[];var jasmineMarker=stackTrace.style==="webkit"?"<Jasmine>":" at <Jasmine>";stackTrace.frames.forEach(function(frame){if(frame.file!==jasmineFile){result.push(frame.raw)}else if(result[result.length-1]!==jasmineMarker){result.push(jasmineMarker)}});return result}function formatProperties(error){if(!(error instanceof Object)){return}var result={};var empty=true;for(var _i4=0,_Object$keys2=Object.keys(error);_i4<_Object$keys2.length;_i4++){var prop=_Object$keys2[_i4];if(ignoredProperties.includes(prop)){continue}result[prop]=error[prop];empty=false}if(!empty){return"error properties: "+j$2.basicPrettyPrinter_(result)+"\n"}return""}}return ExceptionFormatter};getJasmineRequireObj().Expectation=function(j$2){function Expectation(options){this.expector=new j$2.Expector(options);var customMatchers=options.customMatchers||{};for(var matcherName in customMatchers){this[matcherName]=wrapSyncCompare(matcherName,customMatchers[matcherName])}}Expectation.prototype.withContext=function withContext(message){return addFilter(this,new ContextAddingFilter(message))};Object.defineProperty(Expectation.prototype,"not",{get:function get(){return addFilter(this,syncNegatingFilter)}});function AsyncExpectation(options){this.expector=new j$2.Expector(options);var customAsyncMatchers=options.customAsyncMatchers||{};for(var matcherName in customAsyncMatchers){this[matcherName]=wrapAsyncCompare(matcherName,customAsyncMatchers[matcherName])}}AsyncExpectation.prototype.withContext=function withContext(message){return addFilter(this,new ContextAddingFilter(message))};Object.defineProperty(AsyncExpectation.prototype,"not",{get:function get(){return addFilter(this,asyncNegatingFilter)}});Object.defineProperty(AsyncExpectation.prototype,"already",{get:function get(){return addFilter(this,expectSettledPromiseFilter)}});function wrapSyncCompare(name,matcherFactory){return function(){var result=this.expector.compare(name,matcherFactory,arguments);this.expector.processResult(result)}}function wrapAsyncCompare(name,matcherFactory){return function(){var _this3=this;var errorForStack=new Error;return this.expector.compare(name,matcherFactory,arguments).then(function(result){_this3.expector.processResult(result,errorForStack)})}}function _addCoreMatchers(prototype,matchers,wrapper){for(var matcherName in matchers){var matcher=matchers[matcherName];prototype[matcherName]=wrapper(matcherName,matcher)}}function addFilter(source,filter){var result=Object.create(source);result.expector=source.expector.addFilter(filter);return result}function negatedFailureMessage(result,matcherName,args,matchersUtil){if(result.message){if(j$2.isFunction_(result.message)){return result.message()}else{return result.message}}args=args.slice();args.unshift(true);args.unshift(matcherName);return matchersUtil.buildFailureMessage.apply(matchersUtil,args)}function negate(result){result.pass=!result.pass;return result}var syncNegatingFilter={selectComparisonFunc:function selectComparisonFunc(matcher){function defaultNegativeCompare(){return negate(matcher.compare.apply(null,arguments))}return matcher.negativeCompare||defaultNegativeCompare},buildFailureMessage:negatedFailureMessage};var asyncNegatingFilter={selectComparisonFunc:function selectComparisonFunc(matcher){function defaultNegativeCompare(){return matcher.compare.apply(this,arguments).then(negate)}return matcher.negativeCompare||defaultNegativeCompare},buildFailureMessage:negatedFailureMessage};var expectSettledPromiseFilter={selectComparisonFunc:function selectComparisonFunc(matcher){return function(actual){var matcherArgs=arguments;return j$2.isPending_(actual).then(function(isPending){if(isPending){return{pass:false,message:"Expected a promise to be settled (via expectAsync(...).already) but it was pending."}}else{return matcher.compare.apply(null,matcherArgs)}})}}};function ContextAddingFilter(message){this.message=message}ContextAddingFilter.prototype.modifyFailureMessage=function(msg){if(msg.indexOf("\n")===-1){return this.message+": "+msg}else{return this.message+":\n"+indent(msg)}};function indent(s){return s.replace(/^/gm," ")}return{factory:function factory(options){return new Expectation(options||{})},addCoreMatchers:function addCoreMatchers(matchers){_addCoreMatchers(Expectation.prototype,matchers,wrapSyncCompare)},asyncFactory:function asyncFactory(options){return new AsyncExpectation(options||{})},addAsyncCoreMatchers:function addAsyncCoreMatchers(matchers){_addCoreMatchers(AsyncExpectation.prototype,matchers,wrapAsyncCompare)}}};getJasmineRequireObj().ExpectationFilterChain=function(){function ExpectationFilterChain(maybeFilter,prev){this.filter_=maybeFilter;this.prev_=prev}ExpectationFilterChain.prototype.addFilter=function(filter){return new ExpectationFilterChain(filter,this)};ExpectationFilterChain.prototype.selectComparisonFunc=function(matcher){return this.callFirst_("selectComparisonFunc",arguments).result};ExpectationFilterChain.prototype.buildFailureMessage=function(result,matcherName,args,matchersUtil){return this.callFirst_("buildFailureMessage",arguments).result};ExpectationFilterChain.prototype.modifyFailureMessage=function(msg){var result=this.callFirst_("modifyFailureMessage",arguments).result;return result||msg};ExpectationFilterChain.prototype.callFirst_=function(fname,args){if(this.prev_){var prevResult=this.prev_.callFirst_(fname,args);if(prevResult.found){return prevResult}}if(this.filter_&&this.filter_[fname]){return{found:true,result:this.filter_[fname].apply(this.filter_,args)}}return{found:false}};return ExpectationFilterChain};getJasmineRequireObj().Expector=function(j$2){function Expector(options){this.matchersUtil=options.matchersUtil||{buildFailureMessage:function buildFailureMessage(){}};this.actual=options.actual;this.addExpectationResult=options.addExpectationResult||function(){};this.filters=new j$2.ExpectationFilterChain}Expector.prototype.instantiateMatcher=function(matcherName,matcherFactory,args){this.matcherName=matcherName;this.args=Array.prototype.slice.call(args,0);this.expected=this.args.slice(0);this.args.unshift(this.actual);var matcher=matcherFactory(this.matchersUtil);var comparisonFunc=this.filters.selectComparisonFunc(matcher);return comparisonFunc||matcher.compare};Expector.prototype.buildMessage=function(result){var _this4=this;if(result.pass){return""}var defaultMessage=function defaultMessage(){if(!result.message){var args=_this4.args.slice();args.unshift(false);args.unshift(_this4.matcherName);return _this4.matchersUtil.buildFailureMessage.apply(_this4.matchersUtil,args)}else if(j$2.isFunction_(result.message)){return result.message()}else{return result.message}};var msg=this.filters.buildFailureMessage(result,this.matcherName,this.args,this.matchersUtil,defaultMessage);return this.filters.modifyFailureMessage(msg||defaultMessage())};Expector.prototype.compare=function(matcherName,matcherFactory,args){var matcherCompare=this.instantiateMatcher(matcherName,matcherFactory,args);return matcherCompare.apply(null,this.args)};Expector.prototype.addFilter=function(filter){var result=Object.create(this);result.filters=this.filters.addFilter(filter);return result};Expector.prototype.processResult=function(result,errorForStack){var message=this.buildMessage(result);if(this.expected.length===1){this.expected=this.expected[0]}this.addExpectationResult(result.pass,{matcherName:this.matcherName,passed:result.pass,message:message,error:errorForStack?void 0:result.error,errorForStack:errorForStack||void 0,actual:this.actual,expected:this.expected// TODO: this may need to be arrayified/sliced
|
|
274
|
-
})};return Expector};getJasmineRequireObj().formatErrorMsg=function(){function generateErrorMsg(domain,usage){var usageDefinition=usage?"\nUsage: "+usage:"";return function errorMsg(msg){return domain+" : "+msg+usageDefinition}}return generateErrorMsg};getJasmineRequireObj().GlobalErrors=function(j$2){var _getConfig,_adapter,_handlers,_overrideHandler,_onRemoveOverrideHandler,_pendingUnhandledRejections,_GlobalErrors_instances,onUncaughtException_fn,onUnhandledRejection_fn,detectLateRejectionHandling_fn,onRejectionHandled_fn,dispatchError_fn,_global,_dispatch,_onError,_onUnhandledRejection,_onRejectionHandled,_BrowserAdapter_instances,unhandledRejectionHandler_fn,rejectionHandledHandler_fn,_global2,_dispatch2,_originalHandlers,_jasmineHandlers,_NodeAdapter_instances,installHandler_fn,augmentError_fn;var GlobalErrors=/*#__PURE__*/function(){"use strict";function GlobalErrors(global2,getConfig){_classCallCheck(this,GlobalErrors);__privateAdd(this,_GlobalErrors_instances);__privateAdd(this,_getConfig);__privateAdd(this,_adapter);__privateAdd(this,_handlers);__privateAdd(this,_overrideHandler);__privateAdd(this,_onRemoveOverrideHandler);__privateAdd(this,_pendingUnhandledRejections);global2=global2||j$2.getGlobal();__privateSet(this,_getConfig,getConfig);__privateSet(this,_pendingUnhandledRejections,/* @__PURE__ */new Map);__privateSet(this,_handlers,[]);__privateSet(this,_overrideHandler,null);__privateSet(this,_onRemoveOverrideHandler,null);var dispatch={onUncaughtException:__privateMethod(this,_GlobalErrors_instances,onUncaughtException_fn).bind(this),onUnhandledRejection:__privateMethod(this,_GlobalErrors_instances,onUnhandledRejection_fn).bind(this),onRejectionHandled:__privateMethod(this,_GlobalErrors_instances,onRejectionHandled_fn).bind(this)};if(global2.process&&global2.process.listeners&&j$2.isFunction_(global2.process.on)){__privateSet(this,_adapter,new NodeAdapter(global2,dispatch))}else{__privateSet(this,_adapter,new BrowserAdapter(global2,dispatch))}}return _createClass(GlobalErrors,[{key:"install",value:function install(){__privateGet(this,_adapter).install()}},{key:"uninstall",value:function uninstall(){__privateGet(this,_adapter).uninstall()}// The listener at the top of the stack will be called with two arguments:
|
|
275
|
-
// the error and the event. Either of them may be falsy.
|
|
276
|
-
// The error will normally be provided, but will be falsy in the case of
|
|
277
|
-
// some browser load-time errors. The event will normally be provided in
|
|
278
|
-
// browsers but will be falsy in Node.
|
|
279
|
-
// Listeners that are pushed after spec files have been loaded should be
|
|
280
|
-
// able to just use the error parameter.
|
|
281
|
-
},{key:"pushListener",value:function pushListener(listener){__privateGet(this,_handlers).push(listener)}},{key:"popListener",value:function popListener(listener){if(!listener){throw new Error("popListener expects a listener")}__privateGet(this,_handlers).pop()}},{key:"setOverrideListener",value:function setOverrideListener(listener,onRemove){if(__privateGet(this,_overrideHandler)){throw new Error("Can't set more than one override listener at a time")}__privateSet(this,_overrideHandler,listener);__privateSet(this,_onRemoveOverrideHandler,onRemove)}},{key:"removeOverrideListener",value:function removeOverrideListener(){if(__privateGet(this,_onRemoveOverrideHandler)){__privateGet(this,_onRemoveOverrideHandler).call(this)}__privateSet(this,_overrideHandler,null);__privateSet(this,_onRemoveOverrideHandler,null)}},{key:"reportUnhandledRejections",value:function reportUnhandledRejections(){var _iterator10=_createForOfIteratorHelper(__privateGet(this,_pendingUnhandledRejections).values()),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _step10$value=_step10.value,reason=_step10$value.reason,event=_step10$value.event;__privateMethod(this,_GlobalErrors_instances,dispatchError_fn).call(this,reason,event)}}catch(err){_iterator10.e(err)}finally{_iterator10.f()}__privateGet(this,_pendingUnhandledRejections).clear()}}])}();_getConfig=new WeakMap;_adapter=new WeakMap;_handlers=new WeakMap;_overrideHandler=new WeakMap;_onRemoveOverrideHandler=new WeakMap;_pendingUnhandledRejections=new WeakMap;_GlobalErrors_instances=new WeakSet;// Either error or event may be undefined
|
|
282
|
-
onUncaughtException_fn=function onUncaughtException_fn(error,event){__privateMethod(this,_GlobalErrors_instances,dispatchError_fn).call(this,error,event)};// event or promise may be undefined
|
|
283
|
-
// event is passed through for backwards compatibility reasons. It's probably
|
|
284
|
-
// unnecessary, but user code could depend on it.
|
|
285
|
-
onUnhandledRejection_fn=function onUnhandledRejection_fn(reason,promise,event){if(__privateMethod(this,_GlobalErrors_instances,detectLateRejectionHandling_fn).call(this)&&promise){__privateGet(this,_pendingUnhandledRejections).set(promise,{reason:reason,event:event})}else{__privateMethod(this,_GlobalErrors_instances,dispatchError_fn).call(this,reason,event)}};detectLateRejectionHandling_fn=function detectLateRejectionHandling_fn(){return __privateGet(this,_getConfig).call(this).detectLateRejectionHandling};onRejectionHandled_fn=function onRejectionHandled_fn(promise){__privateGet(this,_pendingUnhandledRejections)["delete"](promise)};// Either error or event may be undefined
|
|
286
|
-
dispatchError_fn=function dispatchError_fn(error,event){if(__privateGet(this,_overrideHandler)){__privateGet(this,_overrideHandler).call(this,error);return}var handler=__privateGet(this,_handlers)[__privateGet(this,_handlers).length-1];if(handler){handler(error,event)}else{throw error}};var BrowserAdapter=/*#__PURE__*/function(){"use strict";function BrowserAdapter(global2,dispatch){_classCallCheck(this,BrowserAdapter);__privateAdd(this,_BrowserAdapter_instances);__privateAdd(this,_global);__privateAdd(this,_dispatch);__privateAdd(this,_onError);__privateAdd(this,_onUnhandledRejection);__privateAdd(this,_onRejectionHandled);__privateSet(this,_global,global2);__privateSet(this,_dispatch,dispatch);__privateSet(this,_onError,function(event){return dispatch.onUncaughtException(event.error,event)});__privateSet(this,_onUnhandledRejection,__privateMethod(this,_BrowserAdapter_instances,unhandledRejectionHandler_fn).bind(this));__privateSet(this,_onRejectionHandled,__privateMethod(this,_BrowserAdapter_instances,rejectionHandledHandler_fn).bind(this))}return _createClass(BrowserAdapter,[{key:"install",value:function install(){__privateGet(this,_global).addEventListener("error",__privateGet(this,_onError));__privateGet(this,_global).addEventListener("unhandledrejection",__privateGet(this,_onUnhandledRejection));__privateGet(this,_global).addEventListener("rejectionhandled",__privateGet(this,_onRejectionHandled))}},{key:"uninstall",value:function uninstall(){__privateGet(this,_global).removeEventListener("error",__privateGet(this,_onError));__privateGet(this,_global).removeEventListener("unhandledrejection",__privateGet(this,_onUnhandledRejection));__privateGet(this,_global).removeEventListener("rejectionhandled",__privateGet(this,_onRejectionHandled))}}])}();_global=new WeakMap;_dispatch=new WeakMap;_onError=new WeakMap;_onUnhandledRejection=new WeakMap;_onRejectionHandled=new WeakMap;_BrowserAdapter_instances=new WeakSet;unhandledRejectionHandler_fn=function unhandledRejectionHandler_fn(event){var jasmineMessage="Unhandled promise rejection: "+event.reason;var reason;if(j$2.isError_(event.reason)){reason=event.reason;reason.jasmineMessage=jasmineMessage}else{reason=jasmineMessage}__privateGet(this,_dispatch).onUnhandledRejection(reason,event.promise,event)};rejectionHandledHandler_fn=function rejectionHandledHandler_fn(event){__privateGet(this,_dispatch).onRejectionHandled(event.promise)};var NodeAdapter=/*#__PURE__*/function(){"use strict";function NodeAdapter(global2,dispatch){_classCallCheck(this,NodeAdapter);__privateAdd(this,_NodeAdapter_instances);__privateAdd(this,_global2);__privateAdd(this,_dispatch2);__privateAdd(this,_originalHandlers);__privateAdd(this,_jasmineHandlers);__privateSet(this,_global2,global2);__privateSet(this,_dispatch2,dispatch);__privateSet(this,_jasmineHandlers,{});__privateSet(this,_originalHandlers,{});this.onError=this.onError.bind(this);this.onUnhandledRejection=this.onUnhandledRejection.bind(this)}return _createClass(NodeAdapter,[{key:"install",value:function install(){__privateMethod(this,_NodeAdapter_instances,installHandler_fn).call(this,"uncaughtException",this.onError);__privateMethod(this,_NodeAdapter_instances,installHandler_fn).call(this,"unhandledRejection",this.onUnhandledRejection);__privateMethod(this,_NodeAdapter_instances,installHandler_fn).call(this,"rejectionHandled",__privateGet(this,_dispatch2).onRejectionHandled)}},{key:"uninstall",value:function uninstall(){var errorTypes=Object.keys(__privateGet(this,_originalHandlers));for(var _i5=0,_errorTypes=errorTypes;_i5<_errorTypes.length;_i5++){var errorType=_errorTypes[_i5];__privateGet(this,_global2).process.removeListener(errorType,__privateGet(this,_jasmineHandlers)[errorType]);for(var i=0;i<__privateGet(this,_originalHandlers)[errorType].length;i++){__privateGet(this,_global2).process.on(errorType,__privateGet(this,_originalHandlers)[errorType][i])}delete __privateGet(this,_originalHandlers)[errorType];delete __privateGet(this,_jasmineHandlers)[errorType]}}},{key:"onError",value:function onError(error){error=__privateMethod(this,_NodeAdapter_instances,augmentError_fn).call(this,error,false);__privateGet(this,_dispatch2).onUncaughtException(error)}},{key:"onUnhandledRejection",value:function onUnhandledRejection(reason,promise){reason=__privateMethod(this,_NodeAdapter_instances,augmentError_fn).call(this,reason,true);__privateGet(this,_dispatch2).onUnhandledRejection(reason,promise)}}])}();_global2=new WeakMap;_dispatch2=new WeakMap;_originalHandlers=new WeakMap;_jasmineHandlers=new WeakMap;_NodeAdapter_instances=new WeakSet;installHandler_fn=function installHandler_fn(errorType,handler){__privateGet(this,_originalHandlers)[errorType]=__privateGet(this,_global2).process.listeners(errorType);__privateGet(this,_jasmineHandlers)[errorType]=handler;__privateGet(this,_global2).process.removeAllListeners(errorType);__privateGet(this,_global2).process.on(errorType,handler)};augmentError_fn=function augmentError_fn(error,isUnhandledRejection){var jasmineMessagePrefix;if(isUnhandledRejection){jasmineMessagePrefix="Unhandled promise rejection"}else{jasmineMessagePrefix="Uncaught exception"}if(j$2.isError_(error)){error.jasmineMessage=jasmineMessagePrefix+": "+error;return error}else{var substituteMsg;if(error){substituteMsg=jasmineMessagePrefix+": "+error}else{substituteMsg=jasmineMessagePrefix+" with no error or message"}if(isUnhandledRejection){substituteMsg+="\n(Tip: to get a useful stack trace, use Promise.reject(new Error(...)) instead of Promise.reject("+(error?"...":"")+").)"}return new Error(substituteMsg)}};return GlobalErrors};getJasmineRequireObj().toBePending=function(j$2){return function toBePending(){return{compare:function compare(actual){if(!j$2.isPromiseLike(actual)){throw new Error("Expected toBePending to be called on a promise but was on a ".concat(_typeof(actual),"."))}var want={};return Promise.race([actual,Promise.resolve(want)]).then(function(got){return{pass:want===got}},function(){return{pass:false}})}}}};getJasmineRequireObj().toBeRejected=function(j$2){return function toBeRejected(){return{compare:function compare(actual){if(!j$2.isPromiseLike(actual)){throw new Error("Expected toBeRejected to be called on a promise but was on a ".concat(_typeof(actual),"."))}return actual.then(function(){return{pass:false}},function(){return{pass:true}})}}}};getJasmineRequireObj().toBeRejectedWith=function(j$2){return function toBeRejectedWith(matchersUtil){return{compare:function compare(actualPromise,expectedValue){if(!j$2.isPromiseLike(actualPromise)){throw new Error("Expected toBeRejectedWith to be called on a promise but was on a ".concat(_typeof(actualPromise),"."))}function prefix(passed){return"Expected a promise "+(passed?"not ":"")+"to be rejected with "+matchersUtil.pp(expectedValue)}return actualPromise.then(function(){return{pass:false,message:prefix(false)+" but it was resolved."}},function(actualValue){if(matchersUtil.equals(actualValue,expectedValue)){return{pass:true,message:prefix(true)+"."}}else{return{pass:false,message:prefix(false)+" but it was rejected with "+matchersUtil.pp(actualValue)+"."}}})}}}};getJasmineRequireObj().toBeRejectedWithError=function(j$2){return function toBeRejectedWithError(matchersUtil){return{compare:function compare(actualPromise,arg1,arg2){if(!j$2.isPromiseLike(actualPromise)){throw new Error("Expected toBeRejectedWithError to be called on a promise but was on a ".concat(_typeof(actualPromise),"."))}var expected=getExpectedFromArgs(arg1,arg2,matchersUtil);return actualPromise.then(function(){return{pass:false,message:"Expected a promise to be rejected but it was resolved."}},function(actualValue){return matchError(actualValue,expected,matchersUtil)})}}};function matchError(actual,expected,matchersUtil){if(!j$2.isError_(actual)){return fail(expected,"rejected with "+matchersUtil.pp(actual))}if(!(actual instanceof expected.error)){return fail(expected,"rejected with type "+j$2.fnNameFor(actual.constructor))}var actualMessage=actual.message;if(actualMessage===expected.message||typeof expected.message==="undefined"){return pass(expected)}if(expected.message instanceof RegExp&&expected.message.test(actualMessage)){return pass(expected)}return fail(expected,"rejected with "+matchersUtil.pp(actual))}function pass(expected){return{pass:true,message:"Expected a promise not to be rejected with "+expected.printValue+", but it was."}}function fail(expected,message){return{pass:false,message:"Expected a promise to be rejected with "+expected.printValue+" but it was "+message+"."}}function getExpectedFromArgs(arg1,arg2,matchersUtil){var error,message;if(isErrorConstructor(arg1)){error=arg1;message=arg2}else{error=Error;message=arg1}return{error:error,message:message,printValue:j$2.fnNameFor(error)+(typeof message==="undefined"?"":": "+matchersUtil.pp(message))}}function isErrorConstructor(value){return typeof value==="function"&&(value===Error||j$2.isError_(value.prototype))}};getJasmineRequireObj().toBeResolved=function(j$2){return function toBeResolved(matchersUtil){return{compare:function compare(actual){if(!j$2.isPromiseLike(actual)){throw new Error("Expected toBeResolved to be called on a promise but was on a ".concat(_typeof(actual),"."))}return actual.then(function(){return{pass:true}},function(e){return{pass:false,message:"Expected a promise to be resolved but it was rejected with "+matchersUtil.pp(e)+"."}})}}}};getJasmineRequireObj().toBeResolvedTo=function(j$2){return function toBeResolvedTo(matchersUtil){return{compare:function compare(actualPromise,expectedValue){if(!j$2.isPromiseLike(actualPromise)){throw new Error("Expected toBeResolvedTo to be called on a promise but was on a ".concat(_typeof(actualPromise),"."))}function prefix(passed){return"Expected a promise "+(passed?"not ":"")+"to be resolved to "+matchersUtil.pp(expectedValue)}return actualPromise.then(function(actualValue){if(matchersUtil.equals(actualValue,expectedValue)){return{pass:true,message:prefix(true)+"."}}else{return{pass:false,message:prefix(false)+" but it was resolved to "+matchersUtil.pp(actualValue)+"."}}},function(e){return{pass:false,message:prefix(false)+" but it was rejected with "+matchersUtil.pp(e)+"."}})}}}};getJasmineRequireObj().DiffBuilder=function(j$2){var DiffBuilder=/*#__PURE__*/function(){"use strict";function DiffBuilder(config){_classCallCheck(this,DiffBuilder);this.prettyPrinter_=(config||{}).prettyPrinter||j$2.makePrettyPrinter();this.mismatches_=new j$2.MismatchTree;this.path_=new j$2.ObjectPath;this.actualRoot_=void 0;this.expectedRoot_=void 0}return _createClass(DiffBuilder,[{key:"setRoots",value:function setRoots(actual,expected){this.actualRoot_=actual;this.expectedRoot_=expected}},{key:"recordMismatch",value:function recordMismatch(formatter){this.mismatches_.add(this.path_,formatter)}},{key:"getMessage",value:function getMessage(){var _this5=this;var messages=[];this.mismatches_.traverse(function(path,isLeaf,formatter){var _this5$dereferencePat=_this5.dereferencePath_(path),actual=_this5$dereferencePat.actual,expected=_this5$dereferencePat.expected;if(formatter){messages.push(formatter(actual,expected,path,_this5.prettyPrinter_));return true}var actualCustom=_this5.prettyPrinter_.customFormat_(actual);var expectedCustom=_this5.prettyPrinter_.customFormat_(expected);var useCustom=actualCustom!==void 0||expectedCustom!==void 0;if(useCustom){var prettyActual=actualCustom||_this5.prettyPrinter_(actual);var prettyExpected=expectedCustom||_this5.prettyPrinter_(expected);messages.push(wrapPrettyPrinted(prettyActual,prettyExpected,path));return false}if(isLeaf){messages.push(_this5.defaultFormatter_(actual,expected,path))}return true});return messages.join("\n")}},{key:"withPath",value:function withPath(pathComponent,block){var oldPath=this.path_;this.path_=this.path_.add(pathComponent);block();this.path_=oldPath}},{key:"dereferencePath_",value:function dereferencePath_(objectPath){var _this6=this;var actual=this.actualRoot_;var expected=this.expectedRoot_;var handleAsymmetricExpected=function handleAsymmetricExpected(){if(j$2.isAsymmetricEqualityTester_(expected)&&j$2.isFunction_(expected.valuesForDiff_)){var asymmetricResult=expected.valuesForDiff_(actual,_this6.prettyPrinter_);expected=asymmetricResult.self;actual=asymmetricResult.other}};handleAsymmetricExpected();var _iterator11=_createForOfIteratorHelper(objectPath.components),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var pc=_step11.value;actual=actual[pc];expected=expected[pc];handleAsymmetricExpected()}}catch(err){_iterator11.e(err)}finally{_iterator11.f()}return{actual:actual,expected:expected}}},{key:"defaultFormatter_",value:function defaultFormatter_(actual,expected,path){return wrapPrettyPrinted(this.prettyPrinter_(actual),this.prettyPrinter_(expected),path)}}])}();function wrapPrettyPrinted(actual,expected,path){return"Expected "+path+(path.depth()?" = ":"")+actual+" to equal "+expected+"."}return DiffBuilder};getJasmineRequireObj().MatchersUtil=function(j$2){function MatchersUtil(options){options=options||{};this.customTesters_=options.customTesters||[];this.pp=options.pp||function(){}}MatchersUtil.prototype.contains=function(haystack,needle){if(!haystack){return false}if(j$2.isSet(haystack)){if(haystack.has(needle)){return true}}if(j$2.isIterable_(haystack)&&!j$2.isString_(haystack)){var _iterator12=_createForOfIteratorHelper(haystack),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var candidate=_step12.value;if(this.equals(candidate,needle)){return true}}}catch(err){_iterator12.e(err)}finally{_iterator12.f()}return false}if(haystack.indexOf){return haystack.indexOf(needle)>=0}if(j$2.isNumber_(haystack.length)){for(var i=0;i<haystack.length;i++){if(this.equals(haystack[i],needle)){return true}}}return false};MatchersUtil.prototype.buildFailureMessage=function(){var args=Array.prototype.slice.call(arguments,0),matcherName=args[0],isNot=args[1],actual=args[2],expected=args.slice(3),englishyPredicate=matcherName.replace(/[A-Z]/g,function(s){return" "+s.toLowerCase()});var message="Expected "+this.pp(actual)+(isNot?" not ":" ")+englishyPredicate;if(expected.length>0){for(var i=0;i<expected.length;i++){if(i>0){message+=","}message+=" "+this.pp(expected[i])}}return message+"."};MatchersUtil.prototype.asymmetricDiff_=function(a,b,aStack,bStack,diffBuilder){if(j$2.isFunction_(b.valuesForDiff_)){var values=b.valuesForDiff_(a,this.pp);this.eq_(values.other,values.self,aStack,bStack,diffBuilder)}else{diffBuilder.recordMismatch()}};MatchersUtil.prototype.asymmetricMatch_=function(a,b,aStack,bStack,diffBuilder){var asymmetricA=j$2.isAsymmetricEqualityTester_(a);var asymmetricB=j$2.isAsymmetricEqualityTester_(b);if(asymmetricA===asymmetricB){return void 0}var result;if(asymmetricA){result=a.asymmetricMatch(b,this);if(!result){diffBuilder.recordMismatch()}return result}if(asymmetricB){result=b.asymmetricMatch(a,this);if(!result){this.asymmetricDiff_(a,b,aStack,bStack,diffBuilder)}return result}};MatchersUtil.prototype.equals=function(a,b,diffBuilder){diffBuilder=diffBuilder||j$2.NullDiffBuilder();diffBuilder.setRoots(a,b);return this.eq_(a,b,[],[],diffBuilder)};MatchersUtil.prototype.eq_=function(a,b,aStack,bStack,diffBuilder){var _this7=this;var result=true;var asymmetricResult=this.asymmetricMatch_(a,b,aStack,bStack,diffBuilder);if(asymmetricResult!==void 0){return asymmetricResult}var _iterator13=_createForOfIteratorHelper(this.customTesters_),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var tester=_step13.value;var customTesterResult=tester(a,b);if(customTesterResult!==void 0){if(!customTesterResult){diffBuilder.recordMismatch()}return customTesterResult}}}catch(err){_iterator13.e(err)}finally{_iterator13.f()}if(a instanceof Error&&b instanceof Error){result=a.message==b.message;if(!result){diffBuilder.recordMismatch()}return result}if(a===b){result=a!==0||1/a==1/b;if(!result){diffBuilder.recordMismatch()}return result}if(a===null||b===null){result=a===b;if(!result){diffBuilder.recordMismatch()}return result}var className=Object.prototype.toString.call(a);if(className!=Object.prototype.toString.call(b)){diffBuilder.recordMismatch();return false}switch(className){// Strings, numbers, dates, and booleans are compared by value.
|
|
290
|
+
this.currentTime_!==endTime&&this.scheduledLookup_[0]<=endTime);if(endTime>=this.currentTime_){tickDate(endTime-this.currentTime_);this.currentTime_=endTime}};DelayedFunctionScheduler.prototype.reschedule_=function(scheduledFn){this.scheduleFunction(scheduledFn.funcToCall,scheduledFn.millis,scheduledFn.params,true,scheduledFn.timeoutKey,scheduledFn.runAtMillis+scheduledFn.millis)};DelayedFunctionScheduler.prototype.deleteFromLookup_=function(key){var value=Number(key);var i=indexOfFirstToPass(this.scheduledLookup_,function(millis){return millis===value});if(i>-1){this.scheduledLookup_.splice(i,1)}};function indexOfFirstToPass(array,testFn){var index=-1;for(var i=0;i<array.length;++i){if(testFn(array[i])){index=i;break}}return index}return DelayedFunctionScheduler};getJasmineRequireObj().deprecateMonkeyPatching=function(j$){return function deprecateMonkeyPatching(obj,keysToSkip){var _loop3=function _loop3(){var key=_Object$keys2[_i5];if(!(keysToSkip==null?void 0:keysToSkip.includes(key))){var value=obj[key];Object.defineProperty(obj,key,{enumerable:key in obj,get:function get(){return value},set:function set(newValue){j$.getEnv().deprecated("Monkey patching detected. Code that overwrites parts of Jasmine, except globala and other properties that are documented as writeable, is not supported and will break in a future release.");value=newValue}})}};for(var _i5=0,_Object$keys2=Object.keys(obj);_i5<_Object$keys2.length;_i5++){_loop3()}}};getJasmineRequireObj().Deprecator=function(j$){"use strict";function Deprecator(topSuite){this.topSuite_=topSuite;this.verbose_=false;this.toSuppress_=[]}var verboseNote="Note: This message will be shown only once. Set the verboseDeprecations config property to true to see every occurrence.";Deprecator.prototype.verboseDeprecations=function(enabled){this.verbose_=enabled};Deprecator.prototype.addDeprecationWarning=function(runnable,deprecation,options){options=options||{};if(!this.verbose_&&!j$["private"].isError(deprecation)){if(this.toSuppress_.indexOf(deprecation)!==-1){return}this.toSuppress_.push(deprecation)}this.log_(runnable,deprecation,options);this.report_(runnable,deprecation,options)};Deprecator.prototype.log_=function(runnable,deprecation,options){if(j$["private"].isError(deprecation)){console.error(deprecation);return}var context;if(runnable===this.topSuite_||options.ignoreRunnable){context=""}else if(runnable.children){context=" (in suite: "+runnable.getFullName()+")"}else{context=" (in spec: "+runnable.getFullName()+")"}if(!options.omitStackTrace){context+="\n"+this.stackTrace_()}if(!this.verbose_){context+="\n"+verboseNote}console.error("DEPRECATION: "+deprecation+context)};Deprecator.prototype.stackTrace_=function(){var formatter=new j$["private"].ExceptionFormatter;return formatter.stack(new Error).replace(/^Error\n/m,"")};Deprecator.prototype.report_=function(runnable,deprecation,options){if(options.ignoreRunnable){runnable=this.topSuite_}if(j$["private"].isError(deprecation)){runnable.addDeprecationWarning(deprecation);return}if(!this.verbose_){deprecation+="\n"+verboseNote}runnable.addDeprecationWarning({message:deprecation,omitStackTrace:options.omitStackTrace||false})};return Deprecator};getJasmineRequireObj().errors=function(){"use strict";function ExpectationFailed(){}ExpectationFailed.prototype=new Error;ExpectationFailed.prototype.constructor=ExpectationFailed;return{ExpectationFailed:ExpectationFailed}};getJasmineRequireObj().ExceptionFormatter=function(j$){"use strict";var ignoredProperties=["name","message","stack","fileName","sourceURL","line","lineNumber","column","description","jasmineMessage","errors"];function ExceptionFormatter(options){var jasmineFile=options&&options.jasmineFile||j$["private"].util.jasmineFile();this.message=function(error){var message="";if(error.jasmineMessage){message+=error.jasmineMessage}else if(error.name&&error.message){message+=error.name+": "+error.message}else if(error.message){message+=error.message}else{message+=error.toString()+" thrown"}if(error.fileName||error.sourceURL){message+=" in "+(error.fileName||error.sourceURL)}if(error.line||error.lineNumber){message+=" (line "+(error.line||error.lineNumber)+")"}return message};this.stack=function(error){var _ref5=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},omitMessage=_ref5.omitMessage;if(!error||!error.stack){return null}var lines=this.stack_(error,{messageHandling:omitMessage?"omit":void 0});return lines.join("\n")};this.stack_=function(error,_ref6){var messageHandling=_ref6.messageHandling;var lines=formatProperties(error).split("\n");if(lines[lines.length-1]===""){lines.pop()}var stackTrace=new j$["private"].StackTrace(error);lines=lines.concat(filterJasmine(stackTrace));if(messageHandling==="require"){lines.unshift(stackTrace.message||"Error: "+error.message)}else if(messageHandling!=="omit"&&stackTrace.message){lines.unshift(stackTrace.message)}if(error.cause&&error.cause instanceof Error){var substack=this.stack_(error.cause,{messageHandling:"require"});substack[0]="Caused by: "+substack[0];lines=lines.concat(substack)}if(Array.isArray(error.errors)){for(var i=0;i<error.errors.length;i++){if(error.errors[i]instanceof Error){lines.push("");var _substack=this.stack_(error.errors[i],{messageHandling:"require"});_substack[0]="Error "+(i+1)+": "+_substack[0];lines=lines.concat(_substack.map(function(x){return" "+x}))}}}return lines};function filterJasmine(stackTrace){var result=[];var jasmineMarker=stackTrace.style==="webkit"?"<Jasmine>":" at <Jasmine>";stackTrace.frames.forEach(function(frame){if(frame.file!==jasmineFile){result.push(frame.raw)}else if(result[result.length-1]!==jasmineMarker){result.push(jasmineMarker)}});return result}function formatProperties(error){if(!(error instanceof Object)){return}var result={};var empty=true;for(var _i6=0,_Object$keys3=Object.keys(error);_i6<_Object$keys3.length;_i6++){var prop=_Object$keys3[_i6];if(ignoredProperties.includes(prop)){continue}result[prop]=error[prop];empty=false}if(!empty){return"error properties: "+j$["private"].basicPrettyPrinter(result)+"\n"}return""}}return ExceptionFormatter};getJasmineRequireObj().Expectation=function(j$){"use strict";function Expectation(options){this.expector=new j$["private"].Expector(options);var customMatchers=options.customMatchers||{};for(var matcherName in customMatchers){this[matcherName]=wrapSyncCompare(matcherName,customMatchers[matcherName])}}Expectation.prototype.withContext=function withContext(message){return addFilter(this,new ContextAddingFilter(message))};Object.defineProperty(Expectation.prototype,"not",{get:function get(){return addFilter(this,syncNegatingFilter)}});function AsyncExpectation(options){this.expector=new j$["private"].Expector(options);var customAsyncMatchers=options.customAsyncMatchers||{};for(var matcherName in customAsyncMatchers){this[matcherName]=wrapAsyncCompare(matcherName,customAsyncMatchers[matcherName])}}AsyncExpectation.prototype.withContext=function withContext(message){return addFilter(this,new ContextAddingFilter(message))};Object.defineProperty(AsyncExpectation.prototype,"not",{get:function get(){return addFilter(this,asyncNegatingFilter)}});Object.defineProperty(AsyncExpectation.prototype,"already",{get:function get(){return addFilter(this,expectSettledPromiseFilter)}});function wrapSyncCompare(name,matcherFactory){return function(){var result=this.expector.compare(name,matcherFactory,arguments);this.expector.processResult(result)}}function wrapAsyncCompare(name,matcherFactory){return function(){var _this3=this;var errorForStack=new Error;return this.expector.compare(name,matcherFactory,arguments).then(function(result){_this3.expector.processResult(result,errorForStack)})}}function _addCoreMatchers(prototype,matchers,wrapper){for(var matcherName in matchers){var matcher=matchers[matcherName];prototype[matcherName]=wrapper(matcherName,matcher)}}function addFilter(source,filter){var result=Object.create(source);result.expector=source.expector.addFilter(filter);return result}function negatedFailureMessage(result,matcherName,args,matchersUtil){if(result.message){if(j$["private"].isFunction(result.message)){return result.message()}else{return result.message}}args=args.slice();args.unshift(true);args.unshift(matcherName);return matchersUtil.buildFailureMessage.apply(matchersUtil,args)}function negate(result){result.pass=!result.pass;return result}var syncNegatingFilter={selectComparisonFunc:function selectComparisonFunc(matcher){function defaultNegativeCompare(){return negate(matcher.compare.apply(null,arguments))}return matcher.negativeCompare||defaultNegativeCompare},buildFailureMessage:negatedFailureMessage};var asyncNegatingFilter={selectComparisonFunc:function selectComparisonFunc(matcher){function defaultNegativeCompare(){return matcher.compare.apply(this,arguments).then(negate)}return matcher.negativeCompare||defaultNegativeCompare},buildFailureMessage:negatedFailureMessage};var expectSettledPromiseFilter={selectComparisonFunc:function selectComparisonFunc(matcher){return function(actual){var matcherArgs=arguments;return j$["private"].isPending(actual).then(function(isPending){if(isPending){return{pass:false,message:"Expected a promise to be settled (via expectAsync(...).already) but it was pending."}}else{return matcher.compare.apply(null,matcherArgs)}})}}};function ContextAddingFilter(message){this.message=message}ContextAddingFilter.prototype.modifyFailureMessage=function(msg){if(msg.indexOf("\n")===-1){return this.message+": "+msg}else{return this.message+":\n"+indent(msg)}};function indent(s){return s.replace(/^/gm," ")}return{factory:function factory(options){return new Expectation(options||{})},addCoreMatchers:function addCoreMatchers(matchers){_addCoreMatchers(Expectation.prototype,matchers,wrapSyncCompare)},asyncFactory:function asyncFactory(options){return new AsyncExpectation(options||{})},addAsyncCoreMatchers:function addAsyncCoreMatchers(matchers){_addCoreMatchers(AsyncExpectation.prototype,matchers,wrapAsyncCompare)}}};getJasmineRequireObj().ExpectationFilterChain=function(){"use strict";function ExpectationFilterChain(maybeFilter,prev){this.filter_=maybeFilter;this.prev_=prev}ExpectationFilterChain.prototype.addFilter=function(filter){return new ExpectationFilterChain(filter,this)};ExpectationFilterChain.prototype.selectComparisonFunc=function(matcher){return this.callFirst_("selectComparisonFunc",arguments).result};ExpectationFilterChain.prototype.buildFailureMessage=function(result,matcherName,args,matchersUtil){return this.callFirst_("buildFailureMessage",arguments).result};ExpectationFilterChain.prototype.modifyFailureMessage=function(msg){var result=this.callFirst_("modifyFailureMessage",arguments).result;return result||msg};ExpectationFilterChain.prototype.callFirst_=function(fname,args){if(this.prev_){var prevResult=this.prev_.callFirst_(fname,args);if(prevResult.found){return prevResult}}if(this.filter_&&this.filter_[fname]){return{found:true,result:this.filter_[fname].apply(this.filter_,args)}}return{found:false}};return ExpectationFilterChain};getJasmineRequireObj().Expector=function(j$){"use strict";function Expector(options){this.matchersUtil=options.matchersUtil||{buildFailureMessage:function buildFailureMessage(){}};this.actual=options.actual;this.addExpectationResult=options.addExpectationResult||function(){};this.filters=new j$["private"].ExpectationFilterChain}Expector.prototype.instantiateMatcher=function(matcherName,matcherFactory,args){this.matcherName=matcherName;this.args=Array.prototype.slice.call(args,0);this.expected=this.args.slice(0);this.args.unshift(this.actual);var matcher=matcherFactory(this.matchersUtil);var comparisonFunc=this.filters.selectComparisonFunc(matcher);return comparisonFunc||matcher.compare};Expector.prototype.buildMessage=function(result){var _this4=this;if(result.pass){return""}var defaultMessage=function defaultMessage(){if(!result.message){var args=_this4.args.slice();args.unshift(false);args.unshift(_this4.matcherName);return _this4.matchersUtil.buildFailureMessage.apply(_this4.matchersUtil,args)}else if(j$["private"].isFunction(result.message)){return result.message()}else{return result.message}};var msg=this.filters.buildFailureMessage(result,this.matcherName,this.args,this.matchersUtil,defaultMessage);return this.filters.modifyFailureMessage(msg||defaultMessage())};Expector.prototype.compare=function(matcherName,matcherFactory,args){var matcherCompare=this.instantiateMatcher(matcherName,matcherFactory,args);return matcherCompare.apply(null,this.args)};Expector.prototype.addFilter=function(filter){var result=Object.create(this);result.filters=this.filters.addFilter(filter);return result};Expector.prototype.processResult=function(result,errorForStack){var message=this.buildMessage(result);if(this.expected.length===1){this.expected=this.expected[0]}this.addExpectationResult(result.pass,{matcherName:this.matcherName,passed:result.pass,message:message,error:errorForStack?void 0:result.error,errorForStack:errorForStack||void 0})};return Expector};getJasmineRequireObj().formatErrorMsg=function(){"use strict";function generateErrorMsg(domain,usage){var usageDefinition=usage?"\nUsage: "+usage:"";return function errorMsg(msg){return domain+" : "+msg+usageDefinition}}return generateErrorMsg};getJasmineRequireObj().GlobalErrors=function(j$){"use strict";var _getConfig,_adapter,_handlers,_overrideHandler,_onRemoveOverrideHandler,_pendingUnhandledRejections,_GlobalErrors_instances,onUncaughtException_fn,onUnhandledRejection_fn,detectLateRejectionHandling_fn,onRejectionHandled_fn,dispatchError_fn,_global,_dispatch,_onError,_onUnhandledRejection,_onRejectionHandled,_BrowserAdapter_instances,errorHandler_fn,unhandledRejectionHandler_fn,rejectionHandledHandler_fn,_global2,_dispatch2,_originalHandlers,_jasmineHandlers,_NodeAdapter_instances,installHandler_fn,augmentError_fn;var GlobalErrors=/*#__PURE__*/function(){function GlobalErrors(global2,getConfig){_classCallCheck(this,GlobalErrors);__privateAdd(this,_GlobalErrors_instances);__privateAdd(this,_getConfig);__privateAdd(this,_adapter);__privateAdd(this,_handlers);__privateAdd(this,_overrideHandler);__privateAdd(this,_onRemoveOverrideHandler);__privateAdd(this,_pendingUnhandledRejections);global2=global2||j$.getGlobal();__privateSet(this,_getConfig,getConfig);__privateSet(this,_pendingUnhandledRejections,/* @__PURE__ */new Map);__privateSet(this,_handlers,[]);__privateSet(this,_overrideHandler,null);__privateSet(this,_onRemoveOverrideHandler,null);var dispatch={onUncaughtException:__privateMethod(this,_GlobalErrors_instances,onUncaughtException_fn).bind(this),onUnhandledRejection:__privateMethod(this,_GlobalErrors_instances,onUnhandledRejection_fn).bind(this),onRejectionHandled:__privateMethod(this,_GlobalErrors_instances,onRejectionHandled_fn).bind(this)};if(global2.process&&global2.process.listeners&&j$["private"].isFunction(global2.process.on)){__privateSet(this,_adapter,new NodeAdapter(global2,dispatch))}else{__privateSet(this,_adapter,new BrowserAdapter(global2,dispatch))}}return _createClass(GlobalErrors,[{key:"install",value:function install(){__privateGet(this,_adapter).install()}},{key:"uninstall",value:function uninstall(){__privateGet(this,_adapter).uninstall()}},{key:"pushListener",value:function pushListener(listener){__privateGet(this,_handlers).push(listener)}},{key:"popListener",value:function popListener(listener){if(!listener){throw new Error("popListener expects a listener")}__privateGet(this,_handlers).pop()}},{key:"setOverrideListener",value:function setOverrideListener(listener,onRemove){if(__privateGet(this,_overrideHandler)){throw new Error("Can't set more than one override listener at a time")}__privateSet(this,_overrideHandler,listener);__privateSet(this,_onRemoveOverrideHandler,onRemove)}},{key:"removeOverrideListener",value:function removeOverrideListener(){if(__privateGet(this,_onRemoveOverrideHandler)){__privateGet(this,_onRemoveOverrideHandler).call(this)}__privateSet(this,_overrideHandler,null);__privateSet(this,_onRemoveOverrideHandler,null)}},{key:"reportUnhandledRejections",value:function reportUnhandledRejections(){var _iterator10=_createForOfIteratorHelper(__privateGet(this,_pendingUnhandledRejections).values()),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var reason=_step10.value.reason;__privateMethod(this,_GlobalErrors_instances,dispatchError_fn).call(this,reason)}}catch(err){_iterator10.e(err)}finally{_iterator10.f()}__privateGet(this,_pendingUnhandledRejections).clear()}}])}();_getConfig=new WeakMap;_adapter=new WeakMap;_handlers=new WeakMap;_overrideHandler=new WeakMap;_onRemoveOverrideHandler=new WeakMap;_pendingUnhandledRejections=new WeakMap;_GlobalErrors_instances=new WeakSet;onUncaughtException_fn=function onUncaughtException_fn(error){__privateMethod(this,_GlobalErrors_instances,dispatchError_fn).call(this,error)};// promise may be undefined
|
|
291
|
+
onUnhandledRejection_fn=function onUnhandledRejection_fn(reason,promise){if(__privateMethod(this,_GlobalErrors_instances,detectLateRejectionHandling_fn).call(this)&&promise){__privateGet(this,_pendingUnhandledRejections).set(promise,{reason:reason})}else{__privateMethod(this,_GlobalErrors_instances,dispatchError_fn).call(this,reason)}};detectLateRejectionHandling_fn=function detectLateRejectionHandling_fn(){return __privateGet(this,_getConfig).call(this).detectLateRejectionHandling};onRejectionHandled_fn=function onRejectionHandled_fn(promise){__privateGet(this,_pendingUnhandledRejections)["delete"](promise)};dispatchError_fn=function dispatchError_fn(error){if(__privateGet(this,_overrideHandler)){__privateGet(this,_overrideHandler).call(this,error);return}var handler=__privateGet(this,_handlers)[__privateGet(this,_handlers).length-1];if(handler){handler(error)}else{throw error}};var BrowserAdapter=/*#__PURE__*/function(){function BrowserAdapter(global2,dispatch){_classCallCheck(this,BrowserAdapter);__privateAdd(this,_BrowserAdapter_instances);__privateAdd(this,_global);__privateAdd(this,_dispatch);__privateAdd(this,_onError);__privateAdd(this,_onUnhandledRejection);__privateAdd(this,_onRejectionHandled);__privateSet(this,_global,global2);__privateSet(this,_dispatch,dispatch);__privateSet(this,_onError,__privateMethod(this,_BrowserAdapter_instances,errorHandler_fn).bind(this));__privateSet(this,_onUnhandledRejection,__privateMethod(this,_BrowserAdapter_instances,unhandledRejectionHandler_fn).bind(this));__privateSet(this,_onRejectionHandled,__privateMethod(this,_BrowserAdapter_instances,rejectionHandledHandler_fn).bind(this))}return _createClass(BrowserAdapter,[{key:"install",value:function install(){__privateGet(this,_global).addEventListener("error",__privateGet(this,_onError));__privateGet(this,_global).addEventListener("unhandledrejection",__privateGet(this,_onUnhandledRejection));__privateGet(this,_global).addEventListener("rejectionhandled",__privateGet(this,_onRejectionHandled))}},{key:"uninstall",value:function uninstall(){__privateGet(this,_global).removeEventListener("error",__privateGet(this,_onError));__privateGet(this,_global).removeEventListener("unhandledrejection",__privateGet(this,_onUnhandledRejection));__privateGet(this,_global).removeEventListener("rejectionhandled",__privateGet(this,_onRejectionHandled))}}])}();_global=new WeakMap;_dispatch=new WeakMap;_onError=new WeakMap;_onUnhandledRejection=new WeakMap;_onRejectionHandled=new WeakMap;_BrowserAdapter_instances=new WeakSet;errorHandler_fn=function errorHandler_fn(event){var error=event.error;if(!error){error={message:event.message,stack:"@".concat(event.filename,":").concat(event.lineno)}}if(event.filename){error.filename=event.filename;error.lineno=event.lineno}__privateGet(this,_dispatch).onUncaughtException(error)};unhandledRejectionHandler_fn=function unhandledRejectionHandler_fn(event){var jasmineMessage="Unhandled promise rejection: "+event.reason;var reason;if(j$["private"].isError(event.reason)){reason=event.reason;reason.jasmineMessage=jasmineMessage}else{reason=jasmineMessage}__privateGet(this,_dispatch).onUnhandledRejection(reason,event.promise)};rejectionHandledHandler_fn=function rejectionHandledHandler_fn(event){__privateGet(this,_dispatch).onRejectionHandled(event.promise)};var NodeAdapter=/*#__PURE__*/function(){function NodeAdapter(global2,dispatch){_classCallCheck(this,NodeAdapter);__privateAdd(this,_NodeAdapter_instances);__privateAdd(this,_global2);__privateAdd(this,_dispatch2);__privateAdd(this,_originalHandlers);__privateAdd(this,_jasmineHandlers);__privateSet(this,_global2,global2);__privateSet(this,_dispatch2,dispatch);__privateSet(this,_jasmineHandlers,{});__privateSet(this,_originalHandlers,{});this.onError=this.onError.bind(this);this.onUnhandledRejection=this.onUnhandledRejection.bind(this)}return _createClass(NodeAdapter,[{key:"install",value:function install(){__privateMethod(this,_NodeAdapter_instances,installHandler_fn).call(this,"uncaughtException",this.onError);__privateMethod(this,_NodeAdapter_instances,installHandler_fn).call(this,"unhandledRejection",this.onUnhandledRejection);__privateMethod(this,_NodeAdapter_instances,installHandler_fn).call(this,"rejectionHandled",__privateGet(this,_dispatch2).onRejectionHandled)}},{key:"uninstall",value:function uninstall(){var errorTypes=Object.keys(__privateGet(this,_originalHandlers));for(var _i7=0,_errorTypes=errorTypes;_i7<_errorTypes.length;_i7++){var errorType=_errorTypes[_i7];__privateGet(this,_global2).process.removeListener(errorType,__privateGet(this,_jasmineHandlers)[errorType]);for(var i=0;i<__privateGet(this,_originalHandlers)[errorType].length;i++){__privateGet(this,_global2).process.on(errorType,__privateGet(this,_originalHandlers)[errorType][i])}delete __privateGet(this,_originalHandlers)[errorType];delete __privateGet(this,_jasmineHandlers)[errorType]}}},{key:"onError",value:function onError(error){error=__privateMethod(this,_NodeAdapter_instances,augmentError_fn).call(this,error,false);__privateGet(this,_dispatch2).onUncaughtException(error)}},{key:"onUnhandledRejection",value:function onUnhandledRejection(reason,promise){reason=__privateMethod(this,_NodeAdapter_instances,augmentError_fn).call(this,reason,true);__privateGet(this,_dispatch2).onUnhandledRejection(reason,promise)}}])}();_global2=new WeakMap;_dispatch2=new WeakMap;_originalHandlers=new WeakMap;_jasmineHandlers=new WeakMap;_NodeAdapter_instances=new WeakSet;installHandler_fn=function installHandler_fn(errorType,handler){__privateGet(this,_originalHandlers)[errorType]=__privateGet(this,_global2).process.listeners(errorType);__privateGet(this,_jasmineHandlers)[errorType]=handler;__privateGet(this,_global2).process.removeAllListeners(errorType);__privateGet(this,_global2).process.on(errorType,handler)};augmentError_fn=function augmentError_fn(error,isUnhandledRejection){var jasmineMessagePrefix;if(isUnhandledRejection){jasmineMessagePrefix="Unhandled promise rejection"}else{jasmineMessagePrefix="Uncaught exception"}if(j$["private"].isError(error)){error.jasmineMessage=jasmineMessagePrefix+": "+error;return error}else{var substituteMsg;if(error){substituteMsg=jasmineMessagePrefix+": "+error}else{substituteMsg=jasmineMessagePrefix+" with no error or message"}if(isUnhandledRejection){substituteMsg+="\n(Tip: to get a useful stack trace, use Promise.reject(new Error(...)) instead of Promise.reject("+(error?"...":"")+").)"}return new Error(substituteMsg)}};return GlobalErrors};getJasmineRequireObj().toBePending=function(j$){"use strict";return function toBePending(){return{compare:function compare(actual){if(!j$["private"].isPromiseLike(actual)){throw new Error("Expected toBePending to be called on a promise but was on a ".concat(_typeof(actual),"."))}var want={};return Promise.race([actual,Promise.resolve(want)]).then(function(got){return{pass:want===got}},function(){return{pass:false}})}}}};getJasmineRequireObj().toBeRejected=function(j$){"use strict";return function toBeRejected(){return{compare:function compare(actual){if(!j$["private"].isPromiseLike(actual)){throw new Error("Expected toBeRejected to be called on a promise but was on a ".concat(_typeof(actual),"."))}return actual.then(function(){return{pass:false}},function(){return{pass:true}})}}}};getJasmineRequireObj().toBeRejectedWith=function(j$){"use strict";return function toBeRejectedWith(matchersUtil){return{compare:function compare(actualPromise,expectedValue){if(!j$["private"].isPromiseLike(actualPromise)){throw new Error("Expected toBeRejectedWith to be called on a promise but was on a ".concat(_typeof(actualPromise),"."))}function prefix(passed){return"Expected a promise "+(passed?"not ":"")+"to be rejected with "+matchersUtil.pp(expectedValue)}return actualPromise.then(function(){return{pass:false,message:prefix(false)+" but it was resolved."}},function(actualValue){if(matchersUtil.equals(actualValue,expectedValue)){return{pass:true,message:prefix(true)+"."}}else{return{pass:false,message:prefix(false)+" but it was rejected with "+matchersUtil.pp(actualValue)+"."}}})}}}};getJasmineRequireObj().toBeRejectedWithError=function(j$){"use strict";return function toBeRejectedWithError(matchersUtil){return{compare:function compare(actualPromise,arg1,arg2){if(!j$["private"].isPromiseLike(actualPromise)){throw new Error("Expected toBeRejectedWithError to be called on a promise but was on a ".concat(_typeof(actualPromise),"."))}var expected=getExpectedFromArgs(arg1,arg2,matchersUtil);return actualPromise.then(function(){return{pass:false,message:"Expected a promise to be rejected but it was resolved."}},function(actualValue){return matchError(actualValue,expected,matchersUtil)})}}};function matchError(actual,expected,matchersUtil){if(!j$["private"].isError(actual)){return fail(expected,"rejected with "+matchersUtil.pp(actual))}if(!(actual instanceof expected.error)){return fail(expected,"rejected with type "+j$["private"].fnNameFor(actual.constructor))}var actualMessage=actual.message;if(actualMessage===expected.message||typeof expected.message==="undefined"){return pass(expected)}if(expected.message instanceof RegExp&&expected.message.test(actualMessage)){return pass(expected)}return fail(expected,"rejected with "+matchersUtil.pp(actual))}function pass(expected){return{pass:true,message:"Expected a promise not to be rejected with "+expected.printValue+", but it was."}}function fail(expected,message){return{pass:false,message:"Expected a promise to be rejected with "+expected.printValue+" but it was "+message+"."}}function getExpectedFromArgs(arg1,arg2,matchersUtil){var error,message;if(isErrorConstructor(arg1)){error=arg1;message=arg2}else{error=Error;message=arg1}return{error:error,message:message,printValue:j$["private"].fnNameFor(error)+(typeof message==="undefined"?"":": "+matchersUtil.pp(message))}}function isErrorConstructor(value){return typeof value==="function"&&(value===Error||j$["private"].isError(value.prototype))}};getJasmineRequireObj().toBeRejectedWithMatching=function(j$){"use strict";var usageError=j$["private"].formatErrorMsg("<toBeRejectedWithMatching>","expect(function() {<expectation>}).toBeRejectedWithMatching(<Predicate>)");return function toBeRejectedWithMatching(){return{compare:function compare(actualPromise,predicate){if(!j$["private"].isPromiseLike(actualPromise)){throw new Error("Expected toBeRejectedWithMatching to be called on a promise but was on a ".concat(_typeof(actualPromise),"."))}if(typeof predicate!=="function"){throw new Error(usageError("Predicate is not a Function"))}function prefix(passed){return"Expected a promise "+(passed?"not ":"")+"to be rejected matching a predicate"}return actualPromise.then(function(){return{pass:false,message:prefix(false)+", but it was resolved."}},function(actualValue){var result=predicate(actualValue);return{pass:Boolean(result),message:prefix(result)+", but the predicate returned \""+result+"\"."}})}}}};getJasmineRequireObj().toBeResolved=function(j$){"use strict";return function toBeResolved(matchersUtil){return{compare:function compare(actual){if(!j$["private"].isPromiseLike(actual)){throw new Error("Expected toBeResolved to be called on a promise but was on a ".concat(_typeof(actual),"."))}return actual.then(function(){return{pass:true}},function(e){return{pass:false,message:"Expected a promise to be resolved but it was rejected with "+matchersUtil.pp(e)+"."}})}}}};getJasmineRequireObj().toBeResolvedTo=function(j$){"use strict";return function toBeResolvedTo(matchersUtil){return{compare:function compare(actualPromise,expectedValue){if(!j$["private"].isPromiseLike(actualPromise)){throw new Error("Expected toBeResolvedTo to be called on a promise but was on a ".concat(_typeof(actualPromise),"."))}function prefix(passed){return"Expected a promise "+(passed?"not ":"")+"to be resolved to "+matchersUtil.pp(expectedValue)}return actualPromise.then(function(actualValue){if(matchersUtil.equals(actualValue,expectedValue)){return{pass:true,message:prefix(true)+"."}}else{return{pass:false,message:prefix(false)+" but it was resolved to "+matchersUtil.pp(actualValue)+"."}}},function(e){return{pass:false,message:prefix(false)+" but it was rejected with "+matchersUtil.pp(e)+"."}})}}}};getJasmineRequireObj().DiffBuilder=function(j$){"use strict";var DiffBuilder=/*#__PURE__*/function(){function DiffBuilder(config){_classCallCheck(this,DiffBuilder);this.prettyPrinter_=(config||{}).prettyPrinter||j$["private"].makePrettyPrinter();this.mismatches_=new j$["private"].MismatchTree;this.path_=new j$["private"].ObjectPath;this.actualRoot_=void 0;this.expectedRoot_=void 0}return _createClass(DiffBuilder,[{key:"setRoots",value:function setRoots(actual,expected){this.actualRoot_=actual;this.expectedRoot_=expected}},{key:"recordMismatch",value:function recordMismatch(formatter){this.mismatches_.add(this.path_,formatter)}},{key:"getMessage",value:function getMessage(){var _this5=this;var messages=[];this.mismatches_.traverse(function(path,isLeaf,formatter){var _this5$dereferencePat=_this5.dereferencePath_(path),actual=_this5$dereferencePat.actual,expected=_this5$dereferencePat.expected;if(formatter){messages.push(formatter(actual,expected,path,_this5.prettyPrinter_));return true}var actualCustom=_this5.prettyPrinter_.customFormat_(actual);var expectedCustom=_this5.prettyPrinter_.customFormat_(expected);var useCustom=actualCustom!==void 0||expectedCustom!==void 0;if(useCustom){var prettyActual=actualCustom||_this5.prettyPrinter_(actual);var prettyExpected=expectedCustom||_this5.prettyPrinter_(expected);messages.push(wrapPrettyPrinted(prettyActual,prettyExpected,path));return false}if(isLeaf){messages.push(_this5.defaultFormatter_(actual,expected,path))}return true});return messages.join("\n")}},{key:"withPath",value:function withPath(pathComponent,block){var oldPath=this.path_;this.path_=this.path_.add(pathComponent);block();this.path_=oldPath}},{key:"dereferencePath_",value:function dereferencePath_(objectPath){var _this6=this;var actual=this.actualRoot_;var expected=this.expectedRoot_;var handleAsymmetricExpected=function handleAsymmetricExpected(){if(j$["private"].isAsymmetricEqualityTester(expected)&&j$["private"].isFunction(expected.valuesForDiff_)){var asymmetricResult=expected.valuesForDiff_(actual,_this6.prettyPrinter_);expected=asymmetricResult.self;actual=asymmetricResult.other}};handleAsymmetricExpected();var _iterator11=_createForOfIteratorHelper(objectPath.components),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var pc=_step11.value;actual=actual[pc];expected=expected[pc];handleAsymmetricExpected()}}catch(err){_iterator11.e(err)}finally{_iterator11.f()}return{actual:actual,expected:expected}}},{key:"defaultFormatter_",value:function defaultFormatter_(actual,expected,path){return wrapPrettyPrinted(this.prettyPrinter_(actual),this.prettyPrinter_(expected),path)}}])}();function wrapPrettyPrinted(actual,expected,path){return"Expected "+path+(path.depth()?" = ":"")+actual+" to equal "+expected+"."}return DiffBuilder};getJasmineRequireObj().MatchersUtil=function(j$){"use strict";function MatchersUtil(options){options=options||{};this.customTesters_=options.customTesters||[];this.pp=options.pp||function(){}}MatchersUtil.prototype.contains=function(haystack,needle){if(!haystack){return false}if(j$["private"].isSet(haystack)){if(haystack.has(needle)){return true}}if(j$["private"].isIterable(haystack)&&!j$["private"].isString(haystack)){var _iterator12=_createForOfIteratorHelper(haystack),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var candidate=_step12.value;if(this.equals(candidate,needle)){return true}}}catch(err){_iterator12.e(err)}finally{_iterator12.f()}return false}if(haystack.indexOf){return haystack.indexOf(needle)>=0}if(j$["private"].isNumber(haystack.length)){for(var i=0;i<haystack.length;i++){if(this.equals(haystack[i],needle)){return true}}}return false};MatchersUtil.prototype.buildFailureMessage=function(){var args=Array.prototype.slice.call(arguments,0);var matcherName=args[0];var isNot=args[1];var actual=args[2];var expected=args.slice(3);var englishyPredicate=matcherName.replace(/[A-Z]/g,function(s){return" "+s.toLowerCase()});var message="Expected "+this.pp(actual)+(isNot?" not ":" ")+englishyPredicate;if(expected.length>0){for(var i=0;i<expected.length;i++){if(i>0){message+=","}message+=" "+this.pp(expected[i])}}return message+"."};MatchersUtil.prototype.asymmetricDiff_=function(a,b,aStack,bStack,diffBuilder){if(j$["private"].isFunction(b.valuesForDiff_)){var values=b.valuesForDiff_(a,this.pp);this.eq_(values.other,values.self,aStack,bStack,diffBuilder)}else{diffBuilder.recordMismatch()}};MatchersUtil.prototype.asymmetricMatch_=function(a,b,aStack,bStack,diffBuilder){var asymmetricA=j$["private"].isAsymmetricEqualityTester(a);var asymmetricB=j$["private"].isAsymmetricEqualityTester(b);if(asymmetricA===asymmetricB){return void 0}var result;if(asymmetricA){result=a.asymmetricMatch(b,this);if(!result){diffBuilder.recordMismatch()}return result}if(asymmetricB){result=b.asymmetricMatch(a,this);if(!result){this.asymmetricDiff_(a,b,aStack,bStack,diffBuilder)}return result}};MatchersUtil.prototype.equals=function(a,b,diffBuilder){diffBuilder=diffBuilder||j$["private"].NullDiffBuilder();diffBuilder.setRoots(a,b);return this.eq_(a,b,[],[],diffBuilder)};MatchersUtil.prototype.eq_=function(a,b,aStack,bStack,diffBuilder){var _this7=this;var result=true;var asymmetricResult=this.asymmetricMatch_(a,b,aStack,bStack,diffBuilder);if(asymmetricResult!==void 0){return asymmetricResult}var _iterator13=_createForOfIteratorHelper(this.customTesters_),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var tester=_step13.value;var customTesterResult=tester(a,b);if(customTesterResult!==void 0){if(!customTesterResult){diffBuilder.recordMismatch()}return customTesterResult}}}catch(err){_iterator13.e(err)}finally{_iterator13.f()}if(a instanceof Error&&b instanceof Error){result=a.message==b.message;if(!result){diffBuilder.recordMismatch()}return result}if(a===b){result=a!==0||1/a==1/b;if(!result){diffBuilder.recordMismatch()}return result}if(a===null||b===null){result=a===b;if(!result){diffBuilder.recordMismatch()}return result}var className=Object.prototype.toString.call(a);if(className!=Object.prototype.toString.call(b)){diffBuilder.recordMismatch();return false}switch(className){// Strings, numbers, dates, and booleans are compared by value.
|
|
287
292
|
case"[object String]":result=a==String(b);if(!result){diffBuilder.recordMismatch()}return result;case"[object Number]":result=a!=+a?b!=+b:a===0&&b===0?1/a==1/b:a==+b;if(!result){diffBuilder.recordMismatch()}return result;case"[object Date]":case"[object Boolean]":result=+a==+b;if(!result){diffBuilder.recordMismatch()}return result;case"[object ArrayBuffer]":return this.eq_(new Uint8Array(a),new Uint8Array(b),aStack,bStack,diffBuilder);// RegExps are compared by their source patterns and flags.
|
|
288
|
-
case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline==b.multiline&&a.ignoreCase==b.ignoreCase}if(_typeof(a)!="object"||_typeof(b)!="object"){diffBuilder.recordMismatch();return false}var aIsDomNode=j$
|
|
289
|
-
}diffBuilder.withPath(key,function(){if(!_this7.eq_(a[key],b[key],aStack,bStack,diffBuilder)){result=false}})};for(_iterator15.s();!(_step15=_iterator15.n()).done;){if(_loop4())continue}}catch(err){_iterator15.e(err)}finally{_iterator15.f()}if(!result){return false}aStack.pop();bStack.pop();return result};MatchersUtil.keys=function(obj,isArray){var allKeys=function(o){var keys=[];for(var key in o){if(j$2.util.has(o,key)){keys.push(key)}}var symbols=Object.getOwnPropertySymbols(o);var _iterator16=_createForOfIteratorHelper(symbols),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var sym=_step16.value;if(o.propertyIsEnumerable(sym)){keys.push(sym)}}}catch(err){_iterator16.e(err)}finally{_iterator16.f()}return keys}(obj);if(!isArray){return allKeys}if(allKeys.length===0){return allKeys}var extraKeys=[];var _iterator17=_createForOfIteratorHelper(allKeys),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var k=_step17.value;if(_typeof(k)==="symbol"||!/^[0-9]+$/.test(k)){extraKeys.push(k)}}}catch(err){_iterator17.e(err)}finally{_iterator17.f()}return extraKeys};function isFunction(obj){return typeof obj==="function"}function extraKeysAndValues(objA,objB){return MatchersUtil.keys(objA).filter(function(key){return!j$2.util.has(objB,key)}).map(function(key){return[key,objA[key]]})}function objectKeysAreDifferentFormatter(pp,actual,expected,path){var missingProperties=extraKeysAndValues(expected,actual),extraProperties=extraKeysAndValues(actual,expected),missingPropertiesMessage=formatKeyValuePairs(pp,missingProperties),extraPropertiesMessage=formatKeyValuePairs(pp,extraProperties),messages=[];if(!path.depth()){path="object"}if(missingPropertiesMessage.length){messages.push("Expected "+path+" to have properties"+missingPropertiesMessage)}if(extraPropertiesMessage.length){messages.push("Expected "+path+" not to have properties"+extraPropertiesMessage)}return messages.join("\n")}function constructorsAreDifferentFormatter(pp,actual,expected,path){if(!path.depth()){path="object"}return"Expected "+path+" to be a kind of "+j$2.fnNameFor(expected.constructor)+", but was "+pp(actual)+"."}function actualArrayIsLongerFormatter(pp,actual,expected,path){return"Unexpected "+path+(path.depth()?" = ":"")+pp(actual)+" in array."}function formatKeyValuePairs(pp,keyValuePairs){var formatted="";var _iterator18=_createForOfIteratorHelper(keyValuePairs),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _step18$value=_slicedToArray(_step18.value,2),key=_step18$value[0],value=_step18$value[1];formatted+="\n "+key.toString()+": "+pp(value)}}catch(err){_iterator18.e(err)}finally{_iterator18.f()}return formatted}return MatchersUtil};getJasmineRequireObj().MismatchTree=function(j$2){var MismatchTree=/*#__PURE__*/function(){"use strict";function MismatchTree(path){_classCallCheck(this,MismatchTree);this.path=path||new j$2.ObjectPath([]);this.formatter=void 0;this.children=[];this.isMismatch=false}return _createClass(MismatchTree,[{key:"add",value:function add(path,formatter){if(path.depth()===0){this.formatter=formatter;this.isMismatch=true}else{var key=path.components[0];path=path.shift();var child=this.child(key);if(!child){child=new MismatchTree(this.path.add(key));this.children.push(child)}child.add(path,formatter)}}},{key:"traverse",value:function traverse(visit){var hasChildren=this.children.length>0;if(this.isMismatch||hasChildren){if(visit(this.path,!hasChildren,this.formatter)){var _iterator19=_createForOfIteratorHelper(this.children),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var child=_step19.value;child.traverse(visit)}}catch(err){_iterator19.e(err)}finally{_iterator19.f()}}}}},{key:"child",value:function child(key){return this.children.find(function(child){var pathEls=child.path.components;return pathEls[pathEls.length-1]===key})}}])}();return MismatchTree};getJasmineRequireObj().nothing=function(){function nothing(){return{compare:function compare(){return{pass:true}}}}return nothing};getJasmineRequireObj().NullDiffBuilder=function(j$2){return function(){return{withPath:function withPath(_,block){block()},setRoots:function setRoots(){},recordMismatch:function recordMismatch(){}}}};getJasmineRequireObj().ObjectPath=function(j$2){var ObjectPath=/*#__PURE__*/function(){"use strict";function ObjectPath(components){_classCallCheck(this,ObjectPath);this.components=components||[]}return _createClass(ObjectPath,[{key:"toString",value:function toString(){if(this.components.length){return"$"+this.components.map(formatPropertyAccess).join("")}else{return""}}},{key:"add",value:function add(component){return new ObjectPath(this.components.concat([component]))}},{key:"shift",value:function shift(){return new ObjectPath(this.components.slice(1))}},{key:"depth",value:function depth(){return this.components.length}}])}();function formatPropertyAccess(prop){if(typeof prop==="number"||_typeof(prop)==="symbol"){return"["+prop.toString()+"]"}if(isValidIdentifier(prop)){return"."+prop}return"['".concat(prop,"']")}function isValidIdentifier(string){return /^[A-Za-z\$_][A-Za-z0-9\$_]*$/.test(string)}return ObjectPath};getJasmineRequireObj().requireAsyncMatchers=function(jRequire,j$2){var availableMatchers=["toBePending","toBeResolved","toBeRejected","toBeResolvedTo","toBeRejectedWith","toBeRejectedWithError"],matchers={};for(var _i8=0,_availableMatchers2=availableMatchers;_i8<_availableMatchers2.length;_i8++){var name=_availableMatchers2[_i8];matchers[name]=jRequire[name](j$2)}return matchers};getJasmineRequireObj().toBe=function(j$2){function toBe(matchersUtil){var tip=" Tip: To check for deep equality, use .toEqual() instead of .toBe().";return{compare:function compare(actual,expected){var result={pass:actual===expected};if(_typeof(expected)==="object"){result.message=matchersUtil.buildFailureMessage("toBe",result.pass,actual,expected)+tip}return result}}}return toBe};getJasmineRequireObj().toBeCloseTo=function(){function toBeCloseTo(){return{compare:function compare(actual,expected,precision){if(precision!==0){precision=precision||2}if(expected===null||actual===null){throw new Error("Cannot use toBeCloseTo with null. Arguments evaluated to: expect("+actual+").toBeCloseTo("+expected+").")}if(expected===Infinity||expected===-Infinity){return{pass:actual===expected}}var pow=Math.pow(10,precision+1);var delta=Math.abs(expected-actual);var maxDelta=Math.pow(10,-precision)/2;return{pass:Math.round(delta*pow)<=maxDelta*pow}}}}return toBeCloseTo};getJasmineRequireObj().toBeDefined=function(){function toBeDefined(){return{compare:function compare(actual){return{pass:void 0!==actual}}}}return toBeDefined};getJasmineRequireObj().toBeFalse=function(){function toBeFalse(){return{compare:function compare(actual){return{pass:actual===false}}}}return toBeFalse};getJasmineRequireObj().toBeFalsy=function(){function toBeFalsy(){return{compare:function compare(actual){return{pass:!actual}}}}return toBeFalsy};getJasmineRequireObj().toBeGreaterThan=function(){function toBeGreaterThan(){return{compare:function compare(actual,expected){return{pass:actual>expected}}}}return toBeGreaterThan};getJasmineRequireObj().toBeGreaterThanOrEqual=function(){function toBeGreaterThanOrEqual(){return{compare:function compare(actual,expected){return{pass:actual>=expected}}}}return toBeGreaterThanOrEqual};getJasmineRequireObj().toBeInstanceOf=function(j$2){var usageError=j$2.formatErrorMsg("<toBeInstanceOf>","expect(value).toBeInstanceOf(<ConstructorFunction>)");function toBeInstanceOf(matchersUtil){return{compare:function compare(actual,expected){var actualType=actual&&actual.constructor?j$2.fnNameFor(actual.constructor):matchersUtil.pp(actual);var expectedType=expected?j$2.fnNameFor(expected):matchersUtil.pp(expected);var expectedMatcher;var pass;try{expectedMatcher=new j$2.Any(expected);pass=expectedMatcher.asymmetricMatch(actual)}catch(error){throw new Error(usageError("Expected value is not a constructor function"))}if(pass){return{pass:true,message:"Expected instance of "+actualType+" not to be an instance of "+expectedType}}else{return{pass:false,message:"Expected instance of "+actualType+" to be an instance of "+expectedType}}}}}return toBeInstanceOf};getJasmineRequireObj().toBeLessThan=function(){function toBeLessThan(){return{compare:function compare(actual,expected){return{pass:actual<expected}}}}return toBeLessThan};getJasmineRequireObj().toBeLessThanOrEqual=function(){function toBeLessThanOrEqual(){return{compare:function compare(actual,expected){return{pass:actual<=expected}}}}return toBeLessThanOrEqual};getJasmineRequireObj().toBeNaN=function(j$2){function toBeNaN(matchersUtil){return{compare:function compare(actual){var result={pass:actual!==actual};if(result.pass){result.message="Expected actual not to be NaN."}else{result.message=function(){return"Expected "+matchersUtil.pp(actual)+" to be NaN."}}return result}}}return toBeNaN};getJasmineRequireObj().toBeNegativeInfinity=function(j$2){function toBeNegativeInfinity(matchersUtil){return{compare:function compare(actual){var result={pass:actual===Number.NEGATIVE_INFINITY};if(result.pass){result.message="Expected actual not to be -Infinity."}else{result.message=function(){return"Expected "+matchersUtil.pp(actual)+" to be -Infinity."}}return result}}}return toBeNegativeInfinity};getJasmineRequireObj().toBeNull=function(){function toBeNull(){return{compare:function compare(actual){return{pass:actual===null}}}}return toBeNull};getJasmineRequireObj().toBeNullish=function(){function toBeNullish(){return{compare:function compare(actual){return{pass:null===actual||void 0===actual}}}}return toBeNullish};getJasmineRequireObj().toBePositiveInfinity=function(j$2){function toBePositiveInfinity(matchersUtil){return{compare:function compare(actual){var result={pass:actual===Number.POSITIVE_INFINITY};if(result.pass){result.message="Expected actual not to be Infinity."}else{result.message=function(){return"Expected "+matchersUtil.pp(actual)+" to be Infinity."}}return result}}}return toBePositiveInfinity};getJasmineRequireObj().toBeTrue=function(){function toBeTrue(){return{compare:function compare(actual){return{pass:actual===true}}}}return toBeTrue};getJasmineRequireObj().toBeTruthy=function(){function toBeTruthy(){return{compare:function compare(actual){return{pass:!!actual}}}}return toBeTruthy};getJasmineRequireObj().toBeUndefined=function(){function toBeUndefined(){return{compare:function compare(actual){return{pass:void 0===actual}}}}return toBeUndefined};getJasmineRequireObj().toContain=function(){function toContain(matchersUtil){return{compare:function compare(actual,expected){return{pass:matchersUtil.contains(actual,expected)}}}}return toContain};getJasmineRequireObj().toEqual=function(j$2){function toEqual(matchersUtil){return{compare:function compare(actual,expected){var result={pass:false},diffBuilder=new j$2.DiffBuilder({prettyPrinter:matchersUtil.pp});result.pass=matchersUtil.equals(actual,expected,diffBuilder);result.message=diffBuilder.getMessage();return result}}}return toEqual};getJasmineRequireObj().toHaveBeenCalled=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveBeenCalled>","expect(<spyObj>).toHaveBeenCalled()");function toHaveBeenCalled(matchersUtil){return{compare:function compare(actual){var result={};if(!j$2.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}if(arguments.length>1){throw new Error(getErrorMsg("Does not take arguments, use toHaveBeenCalledWith"))}result.pass=actual.calls.any();actual.calls.all().forEach(function(call){return call.verified=true});result.message=result.pass?"Expected spy "+actual.and.identity+" not to have been called.":"Expected spy "+actual.and.identity+" to have been called.";return result}}}return toHaveBeenCalled};getJasmineRequireObj().toHaveBeenCalledBefore=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveBeenCalledBefore>","expect(<spyObj>).toHaveBeenCalledBefore(<spyObj>)");function toHaveBeenCalledBefore(matchersUtil){return{compare:function compare(firstSpy,latterSpy){if(!j$2.isSpy(firstSpy)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(firstSpy)+"."))}if(!j$2.isSpy(latterSpy)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(latterSpy)+"."))}var result={pass:false};if(!firstSpy.calls.count()){result.message="Expected spy "+firstSpy.and.identity+" to have been called.";return result}if(!latterSpy.calls.count()){result.message="Expected spy "+latterSpy.and.identity+" to have been called.";return result}var latest1stSpyCall=firstSpy.calls.mostRecent().invocationOrder;var first2ndSpyCall=latterSpy.calls.first().invocationOrder;result.pass=latest1stSpyCall<first2ndSpyCall;if(result.pass){firstSpy.calls.mostRecent().verified=true;latterSpy.calls.first().verified=true;result.message="Expected spy "+firstSpy.and.identity+" to not have been called before spy "+latterSpy.and.identity+", but it was"}else{var first1stSpyCall=firstSpy.calls.first().invocationOrder;var latest2ndSpyCall=latterSpy.calls.mostRecent().invocationOrder;if(first1stSpyCall<first2ndSpyCall){result.message="Expected latest call to spy "+firstSpy.and.identity+" to have been called before first call to spy "+latterSpy.and.identity+" (no interleaved calls)"}else if(latest2ndSpyCall>latest1stSpyCall){result.message="Expected first call to spy "+latterSpy.and.identity+" to have been called after latest call to spy "+firstSpy.and.identity+" (no interleaved calls)"}else{result.message="Expected spy "+firstSpy.and.identity+" to have been called before spy "+latterSpy.and.identity}}return result}}}return toHaveBeenCalledBefore};getJasmineRequireObj().toHaveBeenCalledOnceWith=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveBeenCalledOnceWith>","expect(<spyObj>).toHaveBeenCalledOnceWith(...arguments)");function toHaveBeenCalledOnceWith(matchersUtil){return{compare:function compare(){var args=Array.prototype.slice.call(arguments,0),actual=args[0],expectedArgs=args.slice(1);if(!j$2.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}var prettyPrintedCalls=actual.calls.allArgs().map(function(argsForCall){return" "+matchersUtil.pp(argsForCall)});if(actual.calls.count()===1&&matchersUtil.contains(actual.calls.allArgs(),expectedArgs)){var firstIndex=actual.calls.all().findIndex(function(call){return matchersUtil.equals(call.args,expectedArgs)});if(firstIndex>-1){actual.calls.all()[firstIndex].verified=true}return{pass:true,message:"Expected spy "+actual.and.identity+" to have been called 0 times, multiple times, or once, but with arguments different from:\n "+matchersUtil.pp(expectedArgs)+"\nBut the actual call was:\n"+prettyPrintedCalls.join(",\n")+".\n\n"}}function getDiffs(){return actual.calls.allArgs().map(function(argsForCall,callIx){var diffBuilder=new j$2.DiffBuilder;matchersUtil.equals(argsForCall,expectedArgs,diffBuilder);return diffBuilder.getMessage()})}function butString(){switch(actual.calls.count()){case 0:return"But it was never called.\n\n";case 1:return"But the actual call was:\n"+prettyPrintedCalls.join(",\n")+".\n"+getDiffs().join("\n")+"\n\n";default:return"But the actual calls were:\n"+prettyPrintedCalls.join(",\n")+".\n\n"}}return{pass:false,message:"Expected spy "+actual.and.identity+" to have been called only once, and with given args:\n "+matchersUtil.pp(expectedArgs)+"\n"+butString()}}}}return toHaveBeenCalledOnceWith};getJasmineRequireObj().toHaveBeenCalledTimes=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveBeenCalledTimes>","expect(<spyObj>).toHaveBeenCalledTimes(<Number>)");function toHaveBeenCalledTimes(matchersUtil){return{compare:function compare(actual,expected){if(!j$2.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}var args=Array.prototype.slice.call(arguments,0),result={pass:false};if(!j$2.isNumber_(expected)){throw new Error(getErrorMsg("The expected times failed is a required argument and must be a number."))}actual=args[0];var callsCount=actual.calls.count();var timesMessage=expected===1?"once":expected+" times";result.pass=callsCount===expected;if(result.pass){var allCalls=actual.calls.all();var max=Math.min(expected,callsCount);for(var i=0;i<max;i++){allCalls[i].verified=true}}result.message=result.pass?"Expected spy "+actual.and.identity+" not to have been called "+timesMessage+". It was called "+callsCount+" times.":"Expected spy "+actual.and.identity+" to have been called "+timesMessage+". It was called "+callsCount+" times.";return result}}}return toHaveBeenCalledTimes};getJasmineRequireObj().toHaveBeenCalledWith=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveBeenCalledWith>","expect(<spyObj>).toHaveBeenCalledWith(...arguments)");function toHaveBeenCalledWith(matchersUtil){return{compare:function compare(){var args=Array.prototype.slice.call(arguments,0),actual=args[0],expectedArgs=args.slice(1),result={pass:false};if(!j$2.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}if(!actual.calls.any()){result.message=function(){return"Expected spy "+actual.and.identity+" to have been called with:\n "+matchersUtil.pp(expectedArgs)+"\nbut it was never called."};return result}if(matchersUtil.contains(actual.calls.allArgs(),expectedArgs)){actual.calls.all().filter(function(call){return matchersUtil.equals(call.args,expectedArgs)}).forEach(function(call){return call.verified=true});result.pass=true;result.message=function(){return"Expected spy "+actual.and.identity+" not to have been called with:\n "+matchersUtil.pp(expectedArgs)+"\nbut it was."}}else{result.message=function(){var prettyPrintedCalls=actual.calls.allArgs().map(function(argsForCall){return" "+matchersUtil.pp(argsForCall)});var diffs=actual.calls.allArgs().map(function(argsForCall,callIx){var diffBuilder=new j$2.DiffBuilder;matchersUtil.equals(argsForCall,expectedArgs,diffBuilder);return"Call "+callIx+":\n"+diffBuilder.getMessage().replace(/^/gm," ")});return"Expected spy "+actual.and.identity+" to have been called with:\n "+matchersUtil.pp(expectedArgs)+"\nbut actual calls were:\n"+prettyPrintedCalls.join(",\n")+".\n\n"+diffs.join("\n")}}return result}}}return toHaveBeenCalledWith};getJasmineRequireObj().toHaveClass=function(j$2){function toHaveClass(matchersUtil){return{compare:function compare(actual,expected){if(!isElement(actual)){throw new Error(matchersUtil.pp(actual)+" is not a DOM element")}return{pass:actual.classList.contains(expected)}}}}function isElement(maybeEl){return maybeEl&&maybeEl.classList&&j$2.isFunction_(maybeEl.classList.contains)}return toHaveClass};getJasmineRequireObj().toHaveClasses=function(j$2){function toHaveClasses(matchersUtil){return{compare:function compare(actual,expected){if(!isElement(actual)){throw new Error(matchersUtil.pp(actual)+" is not a DOM element")}return{pass:expected.every(function(e){return actual.classList.contains(e)})}}}}function isElement(maybeEl){return maybeEl&&maybeEl.classList&&j$2.isFunction_(maybeEl.classList.contains)}return toHaveClasses};getJasmineRequireObj().toHaveNoOtherSpyInteractions=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveNoOtherSpyInteractions>","expect(<spyObj>).toHaveNoOtherSpyInteractions()");function toHaveNoOtherSpyInteractions(matchersUtil){return{compare:function compare(actual){var result={};if(!j$2.isObject_(actual)){throw new Error(getErrorMsg("Expected an object, but got "+_typeof(actual)+"."))}if(arguments.length>1){throw new Error(getErrorMsg("Does not take arguments"))}result.pass=true;var hasSpy=false;var unexpectedCalls=[];var _loop5=function _loop5(){var spy=_Object$values[_i9];if(!j$2.isSpy(spy)){return 1;// continue
|
|
290
|
-
}hasSpy=true;var unverifiedCalls=spy.calls.all().filter(function(call){return!call.verified});if(unverifiedCalls.length>0){result.pass=false}unverifiedCalls.forEach(function(unverifiedCall){unexpectedCalls.push([spy.and.identity,matchersUtil.pp(unverifiedCall.args)])})};for(var _i9=0,_Object$values=Object.values(actual);_i9<_Object$values.length;_i9++){if(_loop5())continue}if(!hasSpy){throw new Error(getErrorMsg("Expected an object with spies, but object has no spies."))}if(result.pass){result.message="Expected a spy object to have other spy interactions but it didn't."}else{var ppUnexpectedCalls=unexpectedCalls.map(function(_ref7){var _ref8=_slicedToArray(_ref7,2),spyName=_ref8[0],args=_ref8[1];return" ".concat(spyName," called with ").concat(args)}).join(",\n");result.message="Expected a spy object to have no other spy interactions, but it had the following calls:\n"+ppUnexpectedCalls+"."}return result}}}return toHaveNoOtherSpyInteractions};getJasmineRequireObj().toHaveSize=function(j$2){function toHaveSize(matchersUtil){return{compare:function compare(actual,expected){var result={pass:false};if(j$2.isA_("WeakSet",actual)||j$2.isWeakMap(actual)||j$2.isDataView(actual)){throw new Error("Cannot get size of "+actual+".")}var actualSize;if(j$2.isSet(actual)||j$2.isMap(actual)){actualSize=actual.size}else if(isLength(actual.length)){actualSize=actual.length}else{actualSize=Object.keys(actual).length}result.pass=actualSize===expected;if(!result.pass){result.message=function(){return"Expected "+matchersUtil.pp(actual)+" with size "+actualSize+" to have size "+expected+"."}}return result}}}var MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991;function isLength(value){return typeof value=="number"&&value>-1&&value%1===0&&value<=MAX_SAFE_INTEGER}return toHaveSize};getJasmineRequireObj().toHaveSpyInteractions=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveSpyInteractions>","expect(<spyObj>).toHaveSpyInteractions()");function toHaveSpyInteractions(matchersUtil){return{compare:function compare(actual){var result={};if(!j$2.isObject_(actual)){throw new Error(getErrorMsg("Expected a spy object, but got "+_typeof(actual)+"."))}if(arguments.length>1){throw new Error(getErrorMsg("Does not take arguments"))}result.pass=false;var hasSpy=false;var calledSpies=[];for(var _i0=0,_Object$values2=Object.values(actual);_i0<_Object$values2.length;_i0++){var spy=_Object$values2[_i0];if(!j$2.isSpy(spy)){continue}hasSpy=true;if(spy.calls.any()){result.pass=true;calledSpies.push([spy.and.identity,spy.calls.count()])}}if(!hasSpy){throw new Error(getErrorMsg("Expected a spy object with spies, but object has no spies."))}var resultMessage;if(result.pass){resultMessage="Expected spy object spies not to have been called, but the following spies were called: ";resultMessage+=calledSpies.map(function(_ref9){var _ref0=_slicedToArray(_ref9,2),spyName=_ref0[0],spyCount=_ref0[1];return"".concat(spyName," called ").concat(spyCount," time(s)")}).join(", ")}else{resultMessage="Expected spy object spies to have been called, but no spies were called."}result.message=resultMessage;return result}}}return toHaveSpyInteractions};getJasmineRequireObj().toMatch=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toMatch>","expect(<expectation>).toMatch(<string> || <regexp>)");function toMatch(){return{compare:function compare(actual,expected){if(!j$2.isString_(expected)&&!j$2.isA_("RegExp",expected)){throw new Error(getErrorMsg("Expected is not a String or a RegExp"))}var regexp=new RegExp(expected);return{pass:regexp.test(actual)}}}}return toMatch};getJasmineRequireObj().toThrow=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toThrow>","expect(function() {<expectation>}).toThrow()");function toThrow(matchersUtil){return{compare:function compare(actual,expected){var result={pass:false};var threw=false;var thrown;if(typeof actual!="function"){throw new Error(getErrorMsg("Actual is not a Function"))}try{actual()}catch(e){threw=true;thrown=e}if(!threw){result.message="Expected function to throw an exception.";return result}if(arguments.length==1){result.pass=true;result.message=function(){return"Expected function not to throw, but it threw "+matchersUtil.pp(thrown)+"."};return result}if(matchersUtil.equals(thrown,expected)){result.pass=true;result.message=function(){return"Expected function not to throw "+matchersUtil.pp(expected)+"."}}else{result.message=function(){return"Expected function to throw "+matchersUtil.pp(expected)+", but it threw "+matchersUtil.pp(thrown)+"."}}return result}}}return toThrow};getJasmineRequireObj().toThrowError=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toThrowError>","expect(function() {<expectation>}).toThrowError(<ErrorConstructor>, <message>)");function toThrowError(matchersUtil){return{compare:function compare(actual){var errorMatcher=getMatcher.apply(null,arguments);if(typeof actual!="function"){throw new Error(getErrorMsg("Actual is not a Function"))}var thrown;try{actual();return fail("Expected function to throw an Error.")}catch(e){thrown=e}if(!j$2.isError_(thrown)){return fail(function(){return"Expected function to throw an Error, but it threw "+matchersUtil.pp(thrown)+"."})}return errorMatcher.match(thrown)}};function getMatcher(){var expected,errorType;if(arguments[2]){errorType=arguments[1];expected=arguments[2];if(!isAnErrorType(errorType)){throw new Error(getErrorMsg("Expected error type is not an Error."))}return exactMatcher(expected,errorType)}else if(arguments[1]){expected=arguments[1];if(isAnErrorType(arguments[1])){return exactMatcher(null,arguments[1])}else{return exactMatcher(arguments[1],null)}}else{return anyMatcher()}}function anyMatcher(){return{match:function match(error){return pass("Expected function not to throw an Error, but it threw "+j$2.fnNameFor(error)+".")}}}function exactMatcher(expected,errorType){if(expected&&!isStringOrRegExp(expected)){if(errorType){throw new Error(getErrorMsg("Expected error message is not a string or RegExp."))}else{throw new Error(getErrorMsg("Expected is not an Error, string, or RegExp."))}}function messageMatch(message){if(typeof expected=="string"){return expected==message}else{return expected.test(message)}}var errorTypeDescription=errorType?j$2.fnNameFor(errorType):"an exception";function thrownDescription(thrown){var thrownName=errorType?j$2.fnNameFor(thrown.constructor):"an exception";var thrownMessage="";if(expected){thrownMessage=" with message "+matchersUtil.pp(thrown.message)}return thrownName+thrownMessage}function messageDescription(){if(expected===null){return""}else if(expected instanceof RegExp){return" with a message matching "+matchersUtil.pp(expected)}else{return" with message "+matchersUtil.pp(expected)}}function matches(error){return(errorType===null||error instanceof errorType)&&(expected===null||messageMatch(error.message))}return{match:function match(thrown){if(matches(thrown)){return pass(function(){return"Expected function not to throw "+errorTypeDescription+messageDescription()+"."})}else{return fail(function(){return"Expected function to throw "+errorTypeDescription+messageDescription()+", but it threw "+thrownDescription(thrown)+"."})}}}}function isStringOrRegExp(potential){return potential instanceof RegExp||typeof potential=="string"}function isAnErrorType(type){if(typeof type!=="function"){return false}var Surrogate=function Surrogate(){};Surrogate.prototype=type.prototype;return j$2.isError_(new Surrogate)}}function pass(message){return{pass:true,message:message}}function fail(message){return{pass:false,message:message}}return toThrowError};getJasmineRequireObj().toThrowMatching=function(j$2){var usageError=j$2.formatErrorMsg("<toThrowMatching>","expect(function() {<expectation>}).toThrowMatching(<Predicate>)");function toThrowMatching(matchersUtil){return{compare:function compare(actual,predicate){if(typeof actual!=="function"){throw new Error(usageError("Actual is not a Function"))}if(typeof predicate!=="function"){throw new Error(usageError("Predicate is not a Function"))}var thrown;try{actual();return fail("Expected function to throw an exception.")}catch(e){thrown=e}if(predicate(thrown)){return pass("Expected function not to throw an exception matching a predicate.")}else{return fail(function(){return"Expected function to throw an exception matching a predicate, but it threw "+thrownDescription(thrown)+"."})}}};function thrownDescription(thrown){if(thrown&&thrown.constructor){return j$2.fnNameFor(thrown.constructor)+" with message "+matchersUtil.pp(thrown.message)}else{return matchersUtil.pp(thrown)}}}function pass(message){return{pass:true,message:message}}function fail(message){return{pass:false,message:message}}return toThrowMatching};getJasmineRequireObj().MockDate=function(j$2){function MockDate(global2){var currentTime=0;if(!global2||!global2.Date){this.install=function(){};this.tick=function(){};this.uninstall=function(){};return this}var GlobalDate=global2.Date;this.install=function(mockDate){if(mockDate instanceof GlobalDate){currentTime=mockDate.getTime()}else{if(mockDate!==void 0){throw new Error("The argument to jasmine.clock().mockDate(), if specified, should be a Date instance.")}currentTime=new GlobalDate().getTime()}global2.Date=FakeDate};this.tick=function(millis2){millis2=millis2||0;currentTime=currentTime+millis2};this.uninstall=function(){currentTime=0;global2.Date=GlobalDate};createDateProperties();return this;function FakeDate(){switch(arguments.length){case 0:return new GlobalDate(currentTime);case 1:return new GlobalDate(arguments[0]);case 2:return new GlobalDate(arguments[0],arguments[1]);case 3:return new GlobalDate(arguments[0],arguments[1],arguments[2]);case 4:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3]);case 5:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);case 6:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);default:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6])}}function createDateProperties(){FakeDate.prototype=GlobalDate.prototype;FakeDate.now=function(){return currentTime};FakeDate.toSource=GlobalDate.toSource;FakeDate.toString=GlobalDate.toString;FakeDate.parse=GlobalDate.parse;FakeDate.UTC=GlobalDate.UTC}}return MockDate};getJasmineRequireObj().NeverSkipPolicy=function(j$2){function NeverSkipPolicy(queueableFns){}NeverSkipPolicy.prototype.skipTo=function(lastRanFnIx){return lastRanFnIx+1};NeverSkipPolicy.prototype.fnErrored=function(fnIx){};return NeverSkipPolicy};getJasmineRequireObj().ParallelReportDispatcher=function(j$2){"use strict";function ParallelReportDispatcher(onError){var deps=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var ReportDispatcher=deps.ReportDispatcher||j$2.ReportDispatcher;var QueueRunner=deps.QueueRunner||j$2.QueueRunner;var globalErrors=deps.globalErrors||new j$2.GlobalErrors;var dispatcher=new ReportDispatcher(j$2.reporterEvents,function(queueRunnerOptions){queueRunnerOptions=__spreadProps(__spreadValues({},queueRunnerOptions),{globalErrors:globalErrors,timeout:{setTimeout:setTimeout,clearTimeout:clearTimeout},fail:function fail(error){if(!error){error=new Error("A reporter called done.fail()")}onError(error)},onException:function onException(error){onError(error)}});new QueueRunner(queueRunnerOptions).execute()},function(error){onError(error)});var self2={/**
|
|
293
|
+
case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline==b.multiline&&a.ignoreCase==b.ignoreCase}if(_typeof(a)!="object"||_typeof(b)!="object"){diffBuilder.recordMismatch();return false}var aIsDomNode=j$["private"].isDomNode(a);var bIsDomNode=j$["private"].isDomNode(b);if(aIsDomNode&&bIsDomNode){result=a.isEqualNode(b);if(!result){diffBuilder.recordMismatch()}return result}if(aIsDomNode||bIsDomNode){diffBuilder.recordMismatch();return false}var aIsPromise=j$["private"].isPromise(a);var bIsPromise=j$["private"].isPromise(b);if(aIsPromise&&bIsPromise){return a===b}var length=aStack.length;while(length--){if(aStack[length]==a){return bStack[length]==b}}aStack.push(a);bStack.push(b);var size=0;if(className=="[object Array]"){var aLength=a.length;var bLength=b.length;diffBuilder.withPath("length",function(){if(aLength!==bLength){diffBuilder.recordMismatch();result=false}});var _loop4=function _loop4(i){diffBuilder.withPath(i,function(){if(i>=bLength){diffBuilder.recordMismatch(actualArrayIsLongerFormatter.bind(null,_this7.pp));result=false}else{result=_this7.eq_(i<aLength?a[i]:void 0,i<bLength?b[i]:void 0,aStack,bStack,diffBuilder)&&result}})};for(var i=0;i<aLength||i<bLength;i++){_loop4(i)}if(!result){return false}}else if(j$["private"].isMap(a)&&j$["private"].isMap(b)){if(a.size!=b.size){diffBuilder.recordMismatch();return false}var keysA=[];var keysB=[];a.forEach(function(valueA,keyA){keysA.push(keyA)});b.forEach(function(valueB,keyB){keysB.push(keyB)});var mapKeys=[keysA,keysB];var cmpKeys=[keysB,keysA];for(var _i8=0;result&&_i8<mapKeys.length;_i8++){var mapIter=mapKeys[_i8];var cmpIter=cmpKeys[_i8];for(var j=0;result&&j<mapIter.length;j++){var mapKey=mapIter[j];var cmpKey=cmpIter[j];var mapValueA=a.get(mapKey);var mapValueB=void 0;if(j$["private"].isAsymmetricEqualityTester(mapKey)||j$["private"].isAsymmetricEqualityTester(cmpKey)&&this.eq_(mapKey,cmpKey,aStack,bStack,j$["private"].NullDiffBuilder())){mapValueB=b.get(cmpKey)}else{mapValueB=b.get(mapKey)}result=this.eq_(mapValueA,mapValueB,aStack,bStack,j$["private"].NullDiffBuilder())}}if(!result){diffBuilder.recordMismatch();return false}}else if(j$["private"].isSet(a)&&j$["private"].isSet(b)){if(a.size!=b.size){diffBuilder.recordMismatch();return false}var valuesA=[];a.forEach(function(valueA){valuesA.push(valueA)});var valuesB=[];b.forEach(function(valueB){valuesB.push(valueB)});var setPairs=[[valuesA,valuesB],[valuesB,valuesA]];var stackPairs=[[aStack,bStack],[bStack,aStack]];for(var _i9=0;result&&_i9<setPairs.length;_i9++){var baseValues=setPairs[_i9][0];var otherValues=setPairs[_i9][1];var baseStack=stackPairs[_i9][0];var otherStack=stackPairs[_i9][1];var _iterator14=_createForOfIteratorHelper(baseValues),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var baseValue=_step14.value;var found=false;for(var _j=0;!found&&_j<otherValues.length;_j++){var otherValue=otherValues[_j];var prevStackSize=baseStack.length;found=this.eq_(baseValue,otherValue,baseStack,otherStack,j$["private"].NullDiffBuilder());if(!found&&prevStackSize!==baseStack.length){baseStack.splice(prevStackSize);otherStack.splice(prevStackSize)}}result=result&&found}}catch(err){_iterator14.e(err)}finally{_iterator14.f()}}if(!result){diffBuilder.recordMismatch();return false}}else if(j$["private"].isURL(a)&&j$["private"].isURL(b)){return a.toString()===b.toString()}else{var aCtor=a.constructor;var bCtor=b.constructor;if(aCtor!==bCtor&&isFunction(aCtor)&&isFunction(bCtor)&&a instanceof aCtor&&b instanceof bCtor&&!(aCtor instanceof aCtor&&bCtor instanceof bCtor)){diffBuilder.recordMismatch(constructorsAreDifferentFormatter.bind(null,this.pp));return false}}var aKeys=MatchersUtil.keys(a,className=="[object Array]");size=aKeys.length;if(MatchersUtil.keys(b,className=="[object Array]").length!==size){diffBuilder.recordMismatch(objectKeysAreDifferentFormatter.bind(null,this.pp));result=false}var _iterator15=_createForOfIteratorHelper(aKeys),_step15;try{var _loop5=function _loop5(){var key=_step15.value;if(!j$["private"].util.has(b,key)){diffBuilder.recordMismatch(objectKeysAreDifferentFormatter.bind(null,_this7.pp));result=false;return 1;// continue
|
|
294
|
+
}diffBuilder.withPath(key,function(){if(!_this7.eq_(a[key],b[key],aStack,bStack,diffBuilder)){result=false}})};for(_iterator15.s();!(_step15=_iterator15.n()).done;){if(_loop5())continue}}catch(err){_iterator15.e(err)}finally{_iterator15.f()}if(!result){return false}aStack.pop();bStack.pop();return result};MatchersUtil.keys=function(obj,isArray){var allKeys=function(o){var keys=[];for(var key in o){if(j$["private"].util.has(o,key)){keys.push(key)}}var symbols=Object.getOwnPropertySymbols(o);var _iterator16=_createForOfIteratorHelper(symbols),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var sym=_step16.value;if(o.propertyIsEnumerable(sym)){keys.push(sym)}}}catch(err){_iterator16.e(err)}finally{_iterator16.f()}return keys}(obj);if(!isArray){return allKeys}if(allKeys.length===0){return allKeys}var extraKeys=[];var _iterator17=_createForOfIteratorHelper(allKeys),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var k=_step17.value;if(_typeof(k)==="symbol"||!/^[0-9]+$/.test(k)){extraKeys.push(k)}}}catch(err){_iterator17.e(err)}finally{_iterator17.f()}return extraKeys};function isFunction(obj){return typeof obj==="function"}function extraKeysAndValues(objA,objB){return MatchersUtil.keys(objA).filter(function(key){return!j$["private"].util.has(objB,key)}).map(function(key){return[key,objA[key]]})}function objectKeysAreDifferentFormatter(pp,actual,expected,path){var missingProperties=extraKeysAndValues(expected,actual);var extraProperties=extraKeysAndValues(actual,expected);var missingPropertiesMessage=formatKeyValuePairs(pp,missingProperties);var extraPropertiesMessage=formatKeyValuePairs(pp,extraProperties);var messages=[];if(!path.depth()){path="object"}if(missingPropertiesMessage.length){messages.push("Expected "+path+" to have properties"+missingPropertiesMessage)}if(extraPropertiesMessage.length){messages.push("Expected "+path+" not to have properties"+extraPropertiesMessage)}return messages.join("\n")}function constructorsAreDifferentFormatter(pp,actual,expected,path){if(!path.depth()){path="object"}return"Expected "+path+" to be a kind of "+j$["private"].fnNameFor(expected.constructor)+", but was "+pp(actual)+"."}function actualArrayIsLongerFormatter(pp,actual,expected,path){return"Unexpected "+path+(path.depth()?" = ":"")+pp(actual)+" in array."}function formatKeyValuePairs(pp,keyValuePairs){var formatted="";var _iterator18=_createForOfIteratorHelper(keyValuePairs),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _step18$value=_slicedToArray(_step18.value,2),key=_step18$value[0],value=_step18$value[1];formatted+="\n "+key.toString()+": "+pp(value)}}catch(err){_iterator18.e(err)}finally{_iterator18.f()}return formatted}return MatchersUtil};getJasmineRequireObj().MismatchTree=function(j$){"use strict";var MismatchTree=/*#__PURE__*/function(){function MismatchTree(path){_classCallCheck(this,MismatchTree);this.path=path||new j$["private"].ObjectPath([]);this.formatter=void 0;this.children=[];this.isMismatch=false}return _createClass(MismatchTree,[{key:"add",value:function add(path,formatter){if(path.depth()===0){this.formatter=formatter;this.isMismatch=true}else{var key=path.components[0];path=path.shift();var child=this.child(key);if(!child){child=new MismatchTree(this.path.add(key));this.children.push(child)}child.add(path,formatter)}}},{key:"traverse",value:function traverse(visit){var hasChildren=this.children.length>0;if(this.isMismatch||hasChildren){if(visit(this.path,!hasChildren,this.formatter)){var _iterator19=_createForOfIteratorHelper(this.children),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var child=_step19.value;child.traverse(visit)}}catch(err){_iterator19.e(err)}finally{_iterator19.f()}}}}},{key:"child",value:function child(key){return this.children.find(function(child){var pathEls=child.path.components;return pathEls[pathEls.length-1]===key})}}])}();return MismatchTree};getJasmineRequireObj().nothing=function(){"use strict";function nothing(){return{compare:function compare(){return{pass:true}}}}return nothing};getJasmineRequireObj().NullDiffBuilder=function(j$){"use strict";return function(){return{withPath:function withPath(_,block){block()},setRoots:function setRoots(){},recordMismatch:function recordMismatch(){}}}};getJasmineRequireObj().ObjectPath=function(j$){"use strict";var ObjectPath=/*#__PURE__*/function(){function ObjectPath(components){_classCallCheck(this,ObjectPath);this.components=components||[]}return _createClass(ObjectPath,[{key:"toString",value:function toString(){if(this.components.length){return"$"+this.components.map(formatPropertyAccess).join("")}else{return""}}},{key:"add",value:function add(component){return new ObjectPath(this.components.concat([component]))}},{key:"shift",value:function shift(){return new ObjectPath(this.components.slice(1))}},{key:"depth",value:function depth(){return this.components.length}}])}();function formatPropertyAccess(prop){if(typeof prop==="number"||_typeof(prop)==="symbol"){return"["+prop.toString()+"]"}if(isValidIdentifier(prop)){return"."+prop}return"['".concat(prop,"']")}function isValidIdentifier(string){return /^[A-Za-z\$_][A-Za-z0-9\$_]*$/.test(string)}return ObjectPath};getJasmineRequireObj().requireAsyncMatchers=function(jRequire,j$){"use strict";var availableMatchers=["toBePending","toBeResolved","toBeRejected","toBeResolvedTo","toBeRejectedWith","toBeRejectedWithError","toBeRejectedWithMatching"];var matchers={};for(var _i0=0,_availableMatchers2=availableMatchers;_i0<_availableMatchers2.length;_i0++){var name=_availableMatchers2[_i0];matchers[name]=jRequire[name](j$)}return matchers};getJasmineRequireObj().toBe=function(j$){"use strict";function toBe(matchersUtil){var tip=" Tip: To check for deep equality, use .toEqual() instead of .toBe().";return{compare:function compare(actual,expected){var result={pass:actual===expected};if(_typeof(expected)==="object"){result.message=matchersUtil.buildFailureMessage("toBe",result.pass,actual,expected)+tip}return result}}}return toBe};getJasmineRequireObj().toBeCloseTo=function(){"use strict";function toBeCloseTo(){return{compare:function compare(actual,expected,precision){if(precision!==0){precision=precision||2}if(expected===null||actual===null){throw new Error("Cannot use toBeCloseTo with null. Arguments evaluated to: expect("+actual+").toBeCloseTo("+expected+").")}if(expected===Infinity||expected===-Infinity){return{pass:actual===expected}}var pow=Math.pow(10,precision+1);var delta=Math.abs(expected-actual);var maxDelta=Math.pow(10,-precision)/2;return{pass:Math.round(delta*pow)<=maxDelta*pow}}}}return toBeCloseTo};getJasmineRequireObj().toBeDefined=function(){"use strict";function toBeDefined(){return{compare:function compare(actual){return{pass:void 0!==actual}}}}return toBeDefined};getJasmineRequireObj().toBeFalse=function(){"use strict";function toBeFalse(){return{compare:function compare(actual){return{pass:actual===false}}}}return toBeFalse};getJasmineRequireObj().toBeFalsy=function(){"use strict";function toBeFalsy(){return{compare:function compare(actual){return{pass:!actual}}}}return toBeFalsy};getJasmineRequireObj().toBeGreaterThan=function(){"use strict";function toBeGreaterThan(){return{compare:function compare(actual,expected){return{pass:actual>expected}}}}return toBeGreaterThan};getJasmineRequireObj().toBeGreaterThanOrEqual=function(){"use strict";function toBeGreaterThanOrEqual(){return{compare:function compare(actual,expected){return{pass:actual>=expected}}}}return toBeGreaterThanOrEqual};getJasmineRequireObj().toBeInstanceOf=function(j$){"use strict";var usageError=j$["private"].formatErrorMsg("<toBeInstanceOf>","expect(value).toBeInstanceOf(<ConstructorFunction>)");function toBeInstanceOf(matchersUtil){return{compare:function compare(actual,expected){var actualType=actual&&actual.constructor?j$["private"].fnNameFor(actual.constructor):matchersUtil.pp(actual);var expectedType=expected?j$["private"].fnNameFor(expected):matchersUtil.pp(expected);var expectedMatcher;var pass;try{expectedMatcher=new j$["private"].Any(expected);pass=expectedMatcher.asymmetricMatch(actual)}catch(error){throw new Error(usageError("Expected value is not a constructor function"))}if(pass){return{pass:true,message:"Expected instance of "+actualType+" not to be an instance of "+expectedType}}else{return{pass:false,message:"Expected instance of "+actualType+" to be an instance of "+expectedType}}}}}return toBeInstanceOf};getJasmineRequireObj().toBeLessThan=function(){"use strict";function toBeLessThan(){return{compare:function compare(actual,expected){return{pass:actual<expected}}}}return toBeLessThan};getJasmineRequireObj().toBeLessThanOrEqual=function(){"use strict";function toBeLessThanOrEqual(){return{compare:function compare(actual,expected){return{pass:actual<=expected}}}}return toBeLessThanOrEqual};getJasmineRequireObj().toBeNaN=function(j$){"use strict";function toBeNaN(matchersUtil){return{compare:function compare(actual){var result={pass:actual!==actual};if(result.pass){result.message="Expected actual not to be NaN."}else{result.message=function(){return"Expected "+matchersUtil.pp(actual)+" to be NaN."}}return result}}}return toBeNaN};getJasmineRequireObj().toBeNegativeInfinity=function(j$){"use strict";function toBeNegativeInfinity(matchersUtil){return{compare:function compare(actual){var result={pass:actual===Number.NEGATIVE_INFINITY};if(result.pass){result.message="Expected actual not to be -Infinity."}else{result.message=function(){return"Expected "+matchersUtil.pp(actual)+" to be -Infinity."}}return result}}}return toBeNegativeInfinity};getJasmineRequireObj().toBeNull=function(){"use strict";function toBeNull(){return{compare:function compare(actual){return{pass:actual===null}}}}return toBeNull};getJasmineRequireObj().toBeNullish=function(){"use strict";function toBeNullish(){return{compare:function compare(actual){return{pass:null===actual||void 0===actual}}}}return toBeNullish};getJasmineRequireObj().toBePositiveInfinity=function(j$){"use strict";function toBePositiveInfinity(matchersUtil){return{compare:function compare(actual){var result={pass:actual===Number.POSITIVE_INFINITY};if(result.pass){result.message="Expected actual not to be Infinity."}else{result.message=function(){return"Expected "+matchersUtil.pp(actual)+" to be Infinity."}}return result}}}return toBePositiveInfinity};getJasmineRequireObj().toBeTrue=function(){"use strict";function toBeTrue(){return{compare:function compare(actual){return{pass:actual===true}}}}return toBeTrue};getJasmineRequireObj().toBeTruthy=function(){"use strict";function toBeTruthy(){return{compare:function compare(actual){return{pass:!!actual}}}}return toBeTruthy};getJasmineRequireObj().toBeUndefined=function(){"use strict";function toBeUndefined(){return{compare:function compare(actual){return{pass:void 0===actual}}}}return toBeUndefined};getJasmineRequireObj().toContain=function(){"use strict";function toContain(matchersUtil){return{compare:function compare(actual,expected){return{pass:matchersUtil.contains(actual,expected)}}}}return toContain};getJasmineRequireObj().toEqual=function(j$){"use strict";function toEqual(matchersUtil){return{compare:function compare(actual,expected){var result={pass:false};var diffBuilder=new j$["private"].DiffBuilder({prettyPrinter:matchersUtil.pp});result.pass=matchersUtil.equals(actual,expected,diffBuilder);result.message=diffBuilder.getMessage();return result}}}return toEqual};getJasmineRequireObj().toHaveBeenCalled=function(j$){"use strict";var getErrorMsg=j$["private"].formatErrorMsg("<toHaveBeenCalled>","expect(<spyObj>).toHaveBeenCalled()");function toHaveBeenCalled(matchersUtil){return{compare:function compare(actual){var result={};if(!j$.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}if(arguments.length>1){throw new Error(getErrorMsg("Does not take arguments, use toHaveBeenCalledWith"))}result.pass=actual.calls.any();actual.calls.all().forEach(function(call){return call.verified=true});result.message=result.pass?"Expected spy "+actual.and.identity+" not to have been called.":"Expected spy "+actual.and.identity+" to have been called.";return result}}}return toHaveBeenCalled};getJasmineRequireObj().toHaveBeenCalledBefore=function(j$){"use strict";var getErrorMsg=j$["private"].formatErrorMsg("<toHaveBeenCalledBefore>","expect(<spyObj>).toHaveBeenCalledBefore(<spyObj>)");function toHaveBeenCalledBefore(matchersUtil){return{compare:function compare(firstSpy,latterSpy){if(!j$.isSpy(firstSpy)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(firstSpy)+"."))}if(!j$.isSpy(latterSpy)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(latterSpy)+"."))}var result={pass:false};if(!firstSpy.calls.count()){result.message="Expected spy "+firstSpy.and.identity+" to have been called.";return result}if(!latterSpy.calls.count()){result.message="Expected spy "+latterSpy.and.identity+" to have been called.";return result}var latest1stSpyCall=firstSpy.calls.mostRecent().invocationOrder;var first2ndSpyCall=latterSpy.calls.first().invocationOrder;result.pass=latest1stSpyCall<first2ndSpyCall;if(result.pass){firstSpy.calls.mostRecent().verified=true;latterSpy.calls.first().verified=true;result.message="Expected spy "+firstSpy.and.identity+" to not have been called before spy "+latterSpy.and.identity+", but it was"}else{var first1stSpyCall=firstSpy.calls.first().invocationOrder;var latest2ndSpyCall=latterSpy.calls.mostRecent().invocationOrder;if(first1stSpyCall<first2ndSpyCall){result.message="Expected latest call to spy "+firstSpy.and.identity+" to have been called before first call to spy "+latterSpy.and.identity+" (no interleaved calls)"}else if(latest2ndSpyCall>latest1stSpyCall){result.message="Expected first call to spy "+latterSpy.and.identity+" to have been called after latest call to spy "+firstSpy.and.identity+" (no interleaved calls)"}else{result.message="Expected spy "+firstSpy.and.identity+" to have been called before spy "+latterSpy.and.identity}}return result}}}return toHaveBeenCalledBefore};getJasmineRequireObj().toHaveBeenCalledOnceWith=function(j$){"use strict";var getErrorMsg=j$["private"].formatErrorMsg("<toHaveBeenCalledOnceWith>","expect(<spyObj>).toHaveBeenCalledOnceWith(...arguments)");function toHaveBeenCalledOnceWith(matchersUtil){return{compare:function compare(){var args=Array.prototype.slice.call(arguments,0);var actual=args[0];var expectedArgs=args.slice(1);if(!j$.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}var prettyPrintedCalls=actual.calls.allArgs().map(function(argsForCall){return" "+matchersUtil.pp(argsForCall)});if(actual.calls.count()===1&&matchersUtil.contains(actual.calls.allArgs(),expectedArgs)){var firstIndex=actual.calls.all().findIndex(function(call){return matchersUtil.equals(call.args,expectedArgs)});if(firstIndex>-1){actual.calls.all()[firstIndex].verified=true}return{pass:true,message:"Expected spy "+actual.and.identity+" to have been called 0 times, multiple times, or once, but with arguments different from:\n "+matchersUtil.pp(expectedArgs)+"\nBut the actual call was:\n"+prettyPrintedCalls.join(",\n")+".\n\n"}}function getDiffs(){return actual.calls.allArgs().map(function(argsForCall,callIx){var diffBuilder=new j$["private"].DiffBuilder;matchersUtil.equals(argsForCall,expectedArgs,diffBuilder);return diffBuilder.getMessage()})}function butString(){switch(actual.calls.count()){case 0:return"But it was never called.\n\n";case 1:return"But the actual call was:\n"+prettyPrintedCalls.join(",\n")+".\n"+getDiffs().join("\n")+"\n\n";default:return"But the actual calls were:\n"+prettyPrintedCalls.join(",\n")+".\n\n"}}return{pass:false,message:"Expected spy "+actual.and.identity+" to have been called only once, and with given args:\n "+matchersUtil.pp(expectedArgs)+"\n"+butString()}}}}return toHaveBeenCalledOnceWith};getJasmineRequireObj().toHaveBeenCalledTimes=function(j$){"use strict";var getErrorMsg=j$["private"].formatErrorMsg("<toHaveBeenCalledTimes>","expect(<spyObj>).toHaveBeenCalledTimes(<Number>)");function toHaveBeenCalledTimes(matchersUtil){return{compare:function compare(actual,expected){if(!j$.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}var args=Array.prototype.slice.call(arguments,0);var result={pass:false};if(!j$["private"].isNumber(expected)){throw new Error(getErrorMsg("The expected times failed is a required argument and must be a number."))}actual=args[0];var callsCount=actual.calls.count();var timesMessage=expected===1?"once":expected+" times";result.pass=callsCount===expected;if(result.pass){var allCalls=actual.calls.all();var max=Math.min(expected,callsCount);for(var i=0;i<max;i++){allCalls[i].verified=true}}result.message=result.pass?"Expected spy "+actual.and.identity+" not to have been called "+timesMessage+". It was called "+callsCount+" times.":"Expected spy "+actual.and.identity+" to have been called "+timesMessage+". It was called "+callsCount+" times.";return result}}}return toHaveBeenCalledTimes};getJasmineRequireObj().toHaveBeenCalledWith=function(j$){"use strict";var getErrorMsg=j$["private"].formatErrorMsg("<toHaveBeenCalledWith>","expect(<spyObj>).toHaveBeenCalledWith(...arguments)");function toHaveBeenCalledWith(matchersUtil){return{compare:function compare(){var args=Array.prototype.slice.call(arguments,0);var actual=args[0];var expectedArgs=args.slice(1);var result={pass:false};if(!j$.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}if(!actual.calls.any()){result.message=function(){return"Expected spy "+actual.and.identity+" to have been called with:\n "+matchersUtil.pp(expectedArgs)+"\nbut it was never called."};return result}if(matchersUtil.contains(actual.calls.allArgs(),expectedArgs)){actual.calls.all().filter(function(call){return matchersUtil.equals(call.args,expectedArgs)}).forEach(function(call){return call.verified=true});result.pass=true;result.message=function(){return"Expected spy "+actual.and.identity+" not to have been called with:\n "+matchersUtil.pp(expectedArgs)+"\nbut it was."}}else{result.message=function(){var prettyPrintedCalls=actual.calls.allArgs().map(function(argsForCall){return" "+matchersUtil.pp(argsForCall)});var diffs=actual.calls.allArgs().map(function(argsForCall,callIx){var diffBuilder=new j$["private"].DiffBuilder;matchersUtil.equals(argsForCall,expectedArgs,diffBuilder);return"Call "+callIx+":\n"+diffBuilder.getMessage().replace(/^/gm," ")});return"Expected spy "+actual.and.identity+" to have been called with:\n "+matchersUtil.pp(expectedArgs)+"\nbut actual calls were:\n"+prettyPrintedCalls.join(",\n")+".\n\n"+diffs.join("\n")}}return result}}}return toHaveBeenCalledWith};getJasmineRequireObj().toHaveClass=function(j$){"use strict";function toHaveClass(matchersUtil){return{compare:function compare(actual,expected){if(!isElement(actual)){throw new Error(matchersUtil.pp(actual)+" is not a DOM element")}return{pass:actual.classList.contains(expected)}}}}function isElement(maybeEl){return maybeEl&&maybeEl.classList&&j$["private"].isFunction(maybeEl.classList.contains)}return toHaveClass};getJasmineRequireObj().toHaveClasses=function(j$){"use strict";function toHaveClasses(matchersUtil){return{compare:function compare(actual,expected){if(!isElement(actual)){throw new Error(matchersUtil.pp(actual)+" is not a DOM element")}return{pass:expected.every(function(e){return actual.classList.contains(e)})}}}}function isElement(maybeEl){return maybeEl&&maybeEl.classList&&j$["private"].isFunction(maybeEl.classList.contains)}return toHaveClasses};getJasmineRequireObj().toHaveNoOtherSpyInteractions=function(j$){"use strict";var getErrorMsg=j$["private"].formatErrorMsg("<toHaveNoOtherSpyInteractions>","expect(<spyObj>).toHaveNoOtherSpyInteractions()");function toHaveNoOtherSpyInteractions(matchersUtil){return{compare:function compare(actual){var result={};if(!j$["private"].isObject(actual)){throw new Error(getErrorMsg("Expected an object, but got "+_typeof(actual)+"."))}if(arguments.length>1){throw new Error(getErrorMsg("Does not take arguments"))}result.pass=true;var hasSpy=false;var unexpectedCalls=[];var _loop6=function _loop6(){var spy=_Object$values[_i1];if(!j$.isSpy(spy)){return 1;// continue
|
|
295
|
+
}hasSpy=true;var unverifiedCalls=spy.calls.all().filter(function(call){return!call.verified});if(unverifiedCalls.length>0){result.pass=false}unverifiedCalls.forEach(function(unverifiedCall){unexpectedCalls.push([spy.and.identity,matchersUtil.pp(unverifiedCall.args)])})};for(var _i1=0,_Object$values=Object.values(actual);_i1<_Object$values.length;_i1++){if(_loop6())continue}if(!hasSpy){throw new Error(getErrorMsg("Expected an object with spies, but object has no spies."))}if(result.pass){result.message="Expected a spy object to have other spy interactions but it didn't."}else{var ppUnexpectedCalls=unexpectedCalls.map(function(_ref7){var _ref8=_slicedToArray(_ref7,2),spyName=_ref8[0],args=_ref8[1];return" ".concat(spyName," called with ").concat(args)}).join(",\n");result.message="Expected a spy object to have no other spy interactions, but it had the following calls:\n"+ppUnexpectedCalls+"."}return result}}}return toHaveNoOtherSpyInteractions};getJasmineRequireObj().toHaveSize=function(j$){"use strict";function toHaveSize(matchersUtil){return{compare:function compare(actual,expected){var result={pass:false};if(j$["private"].isA("WeakSet",actual)||j$["private"].isWeakMap(actual)||j$["private"].isDataView(actual)){throw new Error("Cannot get size of "+actual+".")}var actualSize;if(j$["private"].isSet(actual)||j$["private"].isMap(actual)){actualSize=actual.size}else if(isLength(actual.length)){actualSize=actual.length}else{actualSize=Object.keys(actual).length}result.pass=actualSize===expected;if(!result.pass){result.message=function(){return"Expected "+matchersUtil.pp(actual)+" with size "+actualSize+" to have size "+expected+"."}}return result}}}var MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991;function isLength(value){return typeof value=="number"&&value>-1&&value%1===0&&value<=MAX_SAFE_INTEGER}return toHaveSize};getJasmineRequireObj().toHaveSpyInteractions=function(j$){"use strict";var getErrorMsg=j$["private"].formatErrorMsg("<toHaveSpyInteractions>","expect(<spyObj>).toHaveSpyInteractions()");function toHaveSpyInteractions(matchersUtil){return{compare:function compare(actual){var result={};if(!j$["private"].isObject(actual)){throw new Error(getErrorMsg("Expected a spy object, but got "+_typeof(actual)+"."))}if(arguments.length>1){throw new Error(getErrorMsg("Does not take arguments"))}result.pass=false;var hasSpy=false;var calledSpies=[];for(var _i10=0,_Object$values2=Object.values(actual);_i10<_Object$values2.length;_i10++){var spy=_Object$values2[_i10];if(!j$.isSpy(spy)){continue}hasSpy=true;if(spy.calls.any()){result.pass=true;calledSpies.push([spy.and.identity,spy.calls.count()])}}if(!hasSpy){throw new Error(getErrorMsg("Expected a spy object with spies, but object has no spies."))}var resultMessage;if(result.pass){resultMessage="Expected spy object spies not to have been called, but the following spies were called: ";resultMessage+=calledSpies.map(function(_ref9){var _ref0=_slicedToArray(_ref9,2),spyName=_ref0[0],spyCount=_ref0[1];return"".concat(spyName," called ").concat(spyCount," time(s)")}).join(", ")}else{resultMessage="Expected spy object spies to have been called, but no spies were called."}result.message=resultMessage;return result}}}return toHaveSpyInteractions};getJasmineRequireObj().toMatch=function(j$){"use strict";var getErrorMsg=j$["private"].formatErrorMsg("<toMatch>","expect(<expectation>).toMatch(<string> || <regexp>)");function toMatch(){return{compare:function compare(actual,expected){if(!j$["private"].isString(expected)&&!j$["private"].isA("RegExp",expected)){throw new Error(getErrorMsg("Expected is not a String or a RegExp"))}var regexp=new RegExp(expected);return{pass:regexp.test(actual)}}}}return toMatch};getJasmineRequireObj().toThrow=function(j$){"use strict";var getErrorMsg=j$["private"].formatErrorMsg("<toThrow>","expect(function() {<expectation>}).toThrow()");function toThrow(matchersUtil){return{compare:function compare(actual,expected){var result={pass:false};var threw=false;var thrown;if(typeof actual!="function"){throw new Error(getErrorMsg("Actual is not a Function"))}try{actual()}catch(e){threw=true;thrown=e}if(!threw){result.message="Expected function to throw an exception.";return result}if(arguments.length==1){result.pass=true;result.message=function(){return"Expected function not to throw, but it threw "+matchersUtil.pp(thrown)+"."};return result}if(matchersUtil.equals(thrown,expected)){result.pass=true;result.message=function(){return"Expected function not to throw "+matchersUtil.pp(expected)+"."}}else{result.message=function(){return"Expected function to throw "+matchersUtil.pp(expected)+", but it threw "+matchersUtil.pp(thrown)+"."}}return result}}}return toThrow};getJasmineRequireObj().toThrowError=function(j$){"use strict";var getErrorMsg=j$["private"].formatErrorMsg("<toThrowError>","expect(function() {<expectation>}).toThrowError(<ErrorConstructor>, <message>)");function toThrowError(matchersUtil){return{compare:function compare(actual){var errorMatcher=getMatcher.apply(null,arguments);if(typeof actual!="function"){throw new Error(getErrorMsg("Actual is not a Function"))}var thrown;try{actual();return fail("Expected function to throw an Error.")}catch(e){thrown=e}if(!j$["private"].isError(thrown)){return fail(function(){return"Expected function to throw an Error, but it threw "+matchersUtil.pp(thrown)+"."})}return errorMatcher.match(thrown)}};function getMatcher(){var expected,errorType;if(arguments[2]){errorType=arguments[1];expected=arguments[2];if(!isAnErrorType(errorType)){throw new Error(getErrorMsg("Expected error type is not an Error."))}return exactMatcher(expected,errorType)}else if(arguments[1]){expected=arguments[1];if(isAnErrorType(arguments[1])){return exactMatcher(null,arguments[1])}else{return exactMatcher(arguments[1],null)}}else{return anyMatcher()}}function anyMatcher(){return{match:function match(error){return pass("Expected function not to throw an Error, but it threw "+j$["private"].fnNameFor(error)+".")}}}function exactMatcher(expected,errorType){if(expected&&!isStringOrRegExp(expected)){if(errorType){throw new Error(getErrorMsg("Expected error message is not a string or RegExp."))}else{throw new Error(getErrorMsg("Expected is not an Error, string, or RegExp."))}}function messageMatch(message){if(typeof expected=="string"){return expected==message}else{return expected.test(message)}}var errorTypeDescription=errorType?j$["private"].fnNameFor(errorType):"an exception";function thrownDescription(thrown){var thrownName=errorType?j$["private"].fnNameFor(thrown.constructor):"an exception";var thrownMessage="";if(expected){thrownMessage=" with message "+matchersUtil.pp(thrown.message)}return thrownName+thrownMessage}function messageDescription(){if(expected===null){return""}else if(expected instanceof RegExp){return" with a message matching "+matchersUtil.pp(expected)}else{return" with message "+matchersUtil.pp(expected)}}function matches(error){return(errorType===null||error instanceof errorType)&&(expected===null||messageMatch(error.message))}return{match:function match(thrown){if(matches(thrown)){return pass(function(){return"Expected function not to throw "+errorTypeDescription+messageDescription()+"."})}else{return fail(function(){return"Expected function to throw "+errorTypeDescription+messageDescription()+", but it threw "+thrownDescription(thrown)+"."})}}}}function isStringOrRegExp(potential){return potential instanceof RegExp||typeof potential=="string"}function isAnErrorType(type){if(typeof type!=="function"){return false}var Surrogate=function Surrogate(){};Surrogate.prototype=type.prototype;return j$["private"].isError(new Surrogate)}}function pass(message){return{pass:true,message:message}}function fail(message){return{pass:false,message:message}}return toThrowError};getJasmineRequireObj().toThrowMatching=function(j$){"use strict";var usageError=j$["private"].formatErrorMsg("<toThrowMatching>","expect(function() {<expectation>}).toThrowMatching(<Predicate>)");function toThrowMatching(matchersUtil){return{compare:function compare(actual,predicate){if(typeof actual!=="function"){throw new Error(usageError("Actual is not a Function"))}if(typeof predicate!=="function"){throw new Error(usageError("Predicate is not a Function"))}var thrown;try{actual();return fail("Expected function to throw an exception.")}catch(e){thrown=e}if(predicate(thrown)){return pass("Expected function not to throw an exception matching a predicate.")}else{return fail(function(){return"Expected function to throw an exception matching a predicate, but it threw "+thrownDescription(thrown)+"."})}}};function thrownDescription(thrown){if(thrown&&thrown.constructor){return j$["private"].fnNameFor(thrown.constructor)+" with message "+matchersUtil.pp(thrown.message)}else{return matchersUtil.pp(thrown)}}}function pass(message){return{pass:true,message:message}}function fail(message){return{pass:false,message:message}}return toThrowMatching};getJasmineRequireObj().MockDate=function(j$){"use strict";function MockDate(global2){var currentTime=0;if(!global2||!global2.Date){this.install=function(){};this.tick=function(){};this.uninstall=function(){};return this}var GlobalDate=global2.Date;this.install=function(mockDate){if(mockDate instanceof GlobalDate){currentTime=mockDate.getTime()}else{if(mockDate!==void 0){throw new Error("The argument to jasmine.clock().mockDate(), if specified, should be a Date instance.")}currentTime=new GlobalDate().getTime()}global2.Date=FakeDate};this.tick=function(millis){millis=millis||0;currentTime=currentTime+millis};this.uninstall=function(){currentTime=0;global2.Date=GlobalDate};createDateProperties();return this;function FakeDate(){switch(arguments.length){case 0:return new GlobalDate(currentTime);case 1:return new GlobalDate(arguments[0]);case 2:return new GlobalDate(arguments[0],arguments[1]);case 3:return new GlobalDate(arguments[0],arguments[1],arguments[2]);case 4:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3]);case 5:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);case 6:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);default:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6])}}function createDateProperties(){FakeDate.prototype=GlobalDate.prototype;FakeDate.now=function(){return currentTime};FakeDate.toSource=GlobalDate.toSource;FakeDate.toString=GlobalDate.toString;FakeDate.parse=GlobalDate.parse;FakeDate.UTC=GlobalDate.UTC}}return MockDate};getJasmineRequireObj().NeverSkipPolicy=function(j$){"use strict";function NeverSkipPolicy(queueableFns){}NeverSkipPolicy.prototype.skipTo=function(lastRanFnIx){return lastRanFnIx+1};NeverSkipPolicy.prototype.fnErrored=function(fnIx){};return NeverSkipPolicy};getJasmineRequireObj().ParallelReportDispatcher=function(j$){"use strict";function ParallelReportDispatcher(onError){var deps=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var ReportDispatcher=deps.ReportDispatcher||j$["private"].ReportDispatcher;var QueueRunner=deps.QueueRunner||j$["private"].QueueRunner;var globalErrors=deps.globalErrors||new j$["private"].GlobalErrors;var dispatcher=new ReportDispatcher(j$["private"].reporterEvents,function(queueRunnerOptions){queueRunnerOptions=__spreadProps(__spreadValues({},queueRunnerOptions),{globalErrors:globalErrors,timeout:{setTimeout:setTimeout,clearTimeout:clearTimeout},fail:function fail(error){if(!error){error=new Error("A reporter called done.fail()")}onError(error)},onException:function onException(error){onError(error)}});new QueueRunner(queueRunnerOptions).execute()},function(error){onError(error)});var self2={/**
|
|
291
296
|
* Adds a reporter to the list of reporters that events will be dispatched to.
|
|
292
297
|
* @function
|
|
293
298
|
* @name ParallelReportDispatcher#addReporter
|
|
@@ -307,7 +312,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
307
312
|
* Uninstalls the global error handler.
|
|
308
313
|
* @function
|
|
309
314
|
* @name ParallelReportDispatcher#uninstallGlobalErrors
|
|
310
|
-
*/uninstallGlobalErrors:function uninstallGlobalErrors(){globalErrors.uninstall(globalErrors)}};var _iterator20=_createForOfIteratorHelper(j$2.reporterEvents),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var eventName=_step20.value;self2[eventName]=dispatcher[eventName].bind(dispatcher)}}catch(err){_iterator20.e(err)}finally{_iterator20.f()}return self2}return ParallelReportDispatcher};getJasmineRequireObj().makePrettyPrinter=function(j$2){var SinglePrettyPrintRun=/*#__PURE__*/function(){"use strict";function SinglePrettyPrintRun(customObjectFormatters,pp){_classCallCheck(this,SinglePrettyPrintRun);this.customObjectFormatters_=customObjectFormatters;this.ppNestLevel_=0;this.seen=[];this.length=0;this.stringParts=[];this.pp_=pp}return _createClass(SinglePrettyPrintRun,[{key:"format",value:function format(value){this.ppNestLevel_++;try{var customFormatResult=this.applyCustomFormatters_(value);if(customFormatResult){this.emitScalar(customFormatResult)}else if(value===void 0){this.emitScalar("undefined")}else if(value===null){this.emitScalar("null")}else if(value===0&&1/value===-Infinity){this.emitScalar("-0")}else if(value===j$2.getGlobal()){this.emitScalar("<global>")}else if(value.jasmineToString){this.emitScalar(value.jasmineToString(this.pp_))}else if(j$2.isString_(value)){this.emitString(value)}else if(j$2.isSpy(value)){this.emitScalar("spy on "+value.and.identity)}else if(j$2.isSpy(value.toString)){this.emitScalar("spy on "+value.toString.and.identity)}else if(value instanceof RegExp){this.emitScalar(value.toString())}else if(typeof value==="function"){if(value.name){this.emitScalar("Function '".concat(value.name,"'"))}else{this.emitScalar("Function")}}else if(j$2.isDomNode(value)){if(value.tagName){this.emitDomElement(value)}else{this.emitScalar("HTMLNode")}}else if(value instanceof Date){this.emitScalar("Date("+value+")")}else if(j$2.isSet(value)){this.emitSet(value)}else if(j$2.isMap(value)){this.emitMap(value)}else if(j$2.isTypedArray_(value)){this.emitTypedArray(value)}else if(value.toString&&_typeof(value)==="object"&&!j$2.isArray_(value)&&hasCustomToString(value)){try{this.emitScalar(value.toString())}catch(e){this.emitScalar("has-invalid-toString-method")}}else if(this.seen.includes(value)){this.emitScalar("<circular reference: "+(j$2.isArray_(value)?"Array":"Object")+">")}else if(j$2.isArray_(value)||j$2.isA_("Object",value)){this.seen.push(value);if(j$2.isArray_(value)){this.emitArray(value)}else{this.emitObject(value)}this.seen.pop()}else{this.emitScalar(value.toString())}}catch(e){if(this.ppNestLevel_>1||!(e instanceof MaxCharsReachedError)){throw e}}finally{this.ppNestLevel_--}}},{key:"applyCustomFormatters_",value:function applyCustomFormatters_(value){return customFormat(value,this.customObjectFormatters_)}},{key:"iterateObject",value:function iterateObject(obj,fn){var objKeys=j$2.MatchersUtil.keys(obj,j$2.isArray_(obj));var length=Math.min(objKeys.length,j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH);for(var i=0;i<length;i++){fn(objKeys[i])}return objKeys.length>length}},{key:"emitScalar",value:function emitScalar(value){this.append(value)}},{key:"emitString",value:function emitString(value){this.append("'"+value+"'")}},{key:"emitArray",value:function emitArray(array){var _this8=this;if(this.ppNestLevel_>j$2.MAX_PRETTY_PRINT_DEPTH){this.append("Array");return}var length=Math.min(array.length,j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH);this.append("[ ");for(var i=0;i<length;i++){if(i>0){this.append(", ")}this.format(array[i])}if(array.length>length){this.append(", ...")}var first=array.length===0;var wasTruncated=this.iterateObject(array,function(property){if(first){first=false}else{_this8.append(", ")}_this8.formatProperty(array,property)});if(wasTruncated){this.append(", ...")}this.append(" ]")}},{key:"emitSet",value:function emitSet(set){if(this.ppNestLevel_>j$2.MAX_PRETTY_PRINT_DEPTH){this.append("Set");return}this.append("Set( ");var size=Math.min(set.size,j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH);var i=0;set.forEach(function(value,key){if(i>=size){return}if(i>0){this.append(", ")}this.format(value);i++},this);if(set.size>size){this.append(", ...")}this.append(" )")}},{key:"emitMap",value:function emitMap(map){if(this.ppNestLevel_>j$2.MAX_PRETTY_PRINT_DEPTH){this.append("Map");return}this.append("Map( ");var size=Math.min(map.size,j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH);var i=0;map.forEach(function(value,key){if(i>=size){return}if(i>0){this.append(", ")}this.format([key,value]);i++},this);if(map.size>size){this.append(", ...")}this.append(" )")}},{key:"emitObject",value:function emitObject(obj){var _this9=this;var ctor=obj.constructor;var constructorName=typeof ctor==="function"&&obj instanceof ctor?j$2.fnNameFor(obj.constructor):"null";this.append(constructorName);if(this.ppNestLevel_>j$2.MAX_PRETTY_PRINT_DEPTH){return}this.append("({ ");var first=true;var wasTruncated=this.iterateObject(obj,function(property){if(first){first=false}else{_this9.append(", ")}_this9.formatProperty(obj,property)});if(wasTruncated){this.append(", ...")}this.append(" })")}},{key:"emitTypedArray",value:function emitTypedArray(arr){var constructorName=j$2.fnNameFor(arr.constructor);var limitedArray=Array.prototype.slice.call(arr,0,j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH);var itemsString=Array.prototype.join.call(limitedArray,", ");if(limitedArray.length!==arr.length){itemsString+=", ..."}this.append(constructorName+" [ "+itemsString+" ]")}},{key:"emitDomElement",value:function emitDomElement(el){var tagName=el.tagName.toLowerCase();var out="<"+tagName;var _iterator21=_createForOfIteratorHelper(el.attributes),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var attr=_step21.value;out+=" "+attr.name;if(attr.value!==""){out+="=\""+attr.value+"\""}}}catch(err){_iterator21.e(err)}finally{_iterator21.f()}out+=">";if(el.childElementCount!==0||el.textContent!==""){out+="...</"+tagName+">"}this.append(out)}},{key:"formatProperty",value:function formatProperty(obj,property){if(_typeof(property)==="symbol"){this.append(property.toString())}else{this.append(property)}this.append(": ");this.format(obj[property])}},{key:"append",value:function append(value){if(typeof value!=="string"){value=Object.prototype.toString.call(value)}var result=truncate(value,j$2.MAX_PRETTY_PRINT_CHARS-this.length);this.length+=result.value.length;this.stringParts.push(result.value);if(result.truncated){throw new MaxCharsReachedError}}}])}();function hasCustomToString(value){try{return j$2.isFunction_(value.toString)&&value.toString!==Object.prototype.toString&&value.toString()!==Object.prototype.toString.call(value)}catch(e){return true}}function truncate(s,maxlen){if(s.length<=maxlen){return{value:s,truncated:false}}s=s.substring(0,maxlen-4)+" ...";return{value:s,truncated:true}}function MaxCharsReachedError(){this.message="Exceeded "+j$2.MAX_PRETTY_PRINT_CHARS+" characters while pretty-printing a value"}MaxCharsReachedError.prototype=new Error;function customFormat(value,customObjectFormatters){var _iterator22=_createForOfIteratorHelper(customObjectFormatters),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var formatter=_step22.value;var result=formatter(value);if(result!==void 0){return result}}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}}return function(customObjectFormatters){customObjectFormatters=customObjectFormatters||[];var _pp=function pp(value){var prettyPrinter=new SinglePrettyPrintRun(customObjectFormatters,_pp);prettyPrinter.format(value);return prettyPrinter.stringParts.join("")};_pp.customFormat_=function(value){return customFormat(value,customObjectFormatters)};return _pp}};getJasmineRequireObj().QueueRunner=function(j$2){var nextid=1;function StopExecutionError(){}StopExecutionError.prototype=new Error;j$2.StopExecutionError=StopExecutionError;function once(fn,onTwice){var called=false;return function(arg){if(called){if(onTwice){onTwice()}}else{called=true;fn(arg)}return null}}function fallbackOnMultipleDone(){console.error(new Error("An asynchronous function called its 'done' callback more than once, in a QueueRunner without a onMultipleDone handler."))}function emptyFn(){}function QueueRunner(attrs){this.id_=nextid++;this.queueableFns=attrs.queueableFns||[];var _iterator23=_createForOfIteratorHelper(this.queueableFns),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var f2=_step23.value;if(!f2){throw new Error("Received a falsy queueableFn")}if(!f2.fn){throw new Error("Received a queueableFn with no fn")}}}catch(err){_iterator23.e(err)}finally{_iterator23.f()}this.onComplete=attrs.onComplete||emptyFn;this.clearStack=attrs.clearStack||function(fn){fn()};this.onException=attrs.onException||emptyFn;this.onMultipleDone=attrs.onMultipleDone||fallbackOnMultipleDone;this.userContext=attrs.userContext||new j$2.UserContext;this.timeout=attrs.timeout||{setTimeout:setTimeout,clearTimeout:clearTimeout};this.fail=attrs.fail||emptyFn;this.globalErrors=attrs.globalErrors||{pushListener:emptyFn,popListener:emptyFn};var SkipPolicy=attrs.SkipPolicy||j$2.NeverSkipPolicy;this.skipPolicy_=new SkipPolicy(this.queueableFns);this.errored_=false;if(typeof this.onComplete!=="function"){throw new Error("invalid onComplete "+JSON.stringify(this.onComplete))}}QueueRunner.prototype.execute=function(){var _this0=this;this.handleFinalError=function(error,event){_this0.onException(errorOrMsgForGlobalError(error,event))};this.globalErrors.pushListener(this.handleFinalError);this.run(0)};QueueRunner.prototype.clearTimeout=function(timeoutId){Function.prototype.apply.apply(this.timeout.clearTimeout,[j$2.getGlobal(),[timeoutId]])};QueueRunner.prototype.setTimeout=function(fn,timeout){return Function.prototype.apply.apply(this.timeout.setTimeout,[j$2.getGlobal(),[fn,timeout]])};QueueRunner.prototype.attempt=function attempt(iterativeIndex){var _this1=this;var timeoutId;var timedOut;var completedSynchronously=true;var onException=function onException(e){_this1.onException(e);_this1.recordError_(iterativeIndex)};function handleError(error,event){onException(errorOrMsgForGlobalError(error,event))}var cleanup=once(function(){if(timeoutId!==void 0){_this1.clearTimeout(timeoutId)}_this1.globalErrors.popListener(handleError)});var next=once(function(err){cleanup();if(typeof err!=="undefined"){if(!(err instanceof StopExecutionError)&&!err.jasmineMessage){_this1.fail(err)}_this1.recordError_(iterativeIndex)}var runNext=function runNext(){_this1.run(_this1.nextFnIx_(iterativeIndex))};if(completedSynchronously){_this1.setTimeout(runNext)}else{runNext()}},function(){try{if(!timedOut){_this1.onMultipleDone()}}catch(error){console.error(error)}});timedOut=false;var queueableFn=this.queueableFns[iterativeIndex];next.fail=function nextFail(){this.fail.apply(null,arguments);this.recordError_(iterativeIndex);next()}.bind(this);this.globalErrors.pushListener(handleError);if(queueableFn.timeout!==void 0){var timeoutInterval=queueableFn.timeout||j$2.DEFAULT_TIMEOUT_INTERVAL;timeoutId=this.setTimeout(function(){timedOut=true;var error=new Error("Timeout - Async function did not complete within "+timeoutInterval+"ms "+(queueableFn.timeout?"(custom timeout)":"(set by jasmine.DEFAULT_TIMEOUT_INTERVAL)"));onException(error);next()},timeoutInterval)}try{var maybeThenable;if(queueableFn.fn.length===0){maybeThenable=queueableFn.fn.call(this.userContext);if(maybeThenable&&j$2.isFunction_(maybeThenable.then)){maybeThenable.then(wrapInPromiseResolutionHandler(next),onPromiseRejection);completedSynchronously=false;return{completedSynchronously:false}}}else{maybeThenable=queueableFn.fn.call(this.userContext,next);this.diagnoseConflictingAsync_(queueableFn.fn,maybeThenable);completedSynchronously=false;return{completedSynchronously:false}}}catch(e){onException(e);this.recordError_(iterativeIndex)}cleanup();return{completedSynchronously:true};function onPromiseRejection(e){onException(e);next()}};QueueRunner.prototype.run=function(recursiveIndex){var _this10=this;var length=this.queueableFns.length;for(var iterativeIndex=recursiveIndex;iterativeIndex<length;iterativeIndex=this.nextFnIx_(iterativeIndex)){var result=this.attempt(iterativeIndex);if(!result.completedSynchronously){return}}this.clearStack(function(){_this10.globalErrors.popListener(_this10.handleFinalError);if(_this10.errored_){_this10.onComplete(new StopExecutionError)}else{_this10.onComplete()}})};QueueRunner.prototype.nextFnIx_=function(currentFnIx){var result=this.skipPolicy_.skipTo(currentFnIx);if(result===currentFnIx){throw new Error("Can't skip to the same queueable fn that just finished")}return result};QueueRunner.prototype.recordError_=function(currentFnIx){this.errored_=true;this.skipPolicy_.fnErrored(currentFnIx)};QueueRunner.prototype.diagnoseConflictingAsync_=function(fn,retval){if(retval&&j$2.isFunction_(retval.then)){if(j$2.isAsyncFunction_(fn)){this.onException(new Error("An asynchronous before/it/after function was defined with the async keyword but also took a done callback. Either remove the done callback (recommended) or remove the async keyword."))}else{this.onException(new Error("An asynchronous before/it/after function took a done callback but also returned a promise. Either remove the done callback (recommended) or change the function to not return a promise."))}}};function wrapInPromiseResolutionHandler(fn){return function(maybeArg){if(j$2.isError_(maybeArg)){fn(maybeArg)}else{fn()}}}function errorOrMsgForGlobalError(error,event){return error||event&&event.message||"Global error event with no message"}return QueueRunner};getJasmineRequireObj().ReportDispatcher=function(j$2){"use strict";function ReportDispatcher(methods,runQueue,onLateError){var dispatchedMethods=methods||[];var _iterator24=_createForOfIteratorHelper(dispatchedMethods),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var method=_step24.value;this[method]=/* @__PURE__ */function(m){return function(){return dispatch(m,arguments)}}(method)}}catch(err){_iterator24.e(err)}finally{_iterator24.f()}var reporters=[];var fallbackReporter=null;this.addReporter=function(reporter){reporters.push(reporter)};this.provideFallbackReporter=function(reporter){fallbackReporter=reporter};this.clearReporters=function(){reporters=[]};return this;function dispatch(method,args){if(reporters.length===0&&fallbackReporter!==null){reporters.push(fallbackReporter)}var fns=[];var _iterator25=_createForOfIteratorHelper(reporters),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var reporter=_step25.value;addFn(fns,reporter,method,args)}}catch(err){_iterator25.e(err)}finally{_iterator25.f()}return new Promise(function(resolve){runQueue({queueableFns:fns,onComplete:resolve,isReporter:true,onMultipleDone:function onMultipleDone(){onLateError(new Error("An asynchronous reporter callback called its 'done' callback more than once."))}})})}function addFn(fns,reporter,method,args){var _fn2=reporter[method];if(!_fn2){return}var thisArgs=j$2.util.cloneArgs(args);if(_fn2.length<=1){fns.push({fn:function fn(){return _fn2.apply(reporter,thisArgs)}})}else{fns.push({fn:function fn(done){return _fn2.apply(reporter,thisArgs.concat([done]))}})}}}return ReportDispatcher};getJasmineRequireObj().reporterEvents=function(){var events=[/**
|
|
315
|
+
*/uninstallGlobalErrors:function uninstallGlobalErrors(){globalErrors.uninstall(globalErrors)}};var _iterator20=_createForOfIteratorHelper(j$["private"].reporterEvents),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var eventName=_step20.value;self2[eventName]=dispatcher[eventName].bind(dispatcher)}}catch(err){_iterator20.e(err)}finally{_iterator20.f()}return self2}return ParallelReportDispatcher};getJasmineRequireObj().makePrettyPrinter=function(j$){"use strict";var SinglePrettyPrintRun=/*#__PURE__*/function(){function SinglePrettyPrintRun(customObjectFormatters,pp){_classCallCheck(this,SinglePrettyPrintRun);this.customObjectFormatters_=customObjectFormatters;this.ppNestLevel_=0;this.seen=[];this.length=0;this.stringParts=[];this.pp_=pp}return _createClass(SinglePrettyPrintRun,[{key:"format",value:function format(value){this.ppNestLevel_++;try{var customFormatResult=this.applyCustomFormatters_(value);if(customFormatResult){this.emitScalar(customFormatResult)}else if(value===void 0){this.emitScalar("undefined")}else if(value===null){this.emitScalar("null")}else if(value===0&&1/value===-Infinity){this.emitScalar("-0")}else if(value===j$.getGlobal()){this.emitScalar("<global>")}else if(value.jasmineToString){this.emitScalar(value.jasmineToString(this.pp_))}else if(j$["private"].isString(value)){this.emitString(value)}else if(j$.isSpy(value)){this.emitScalar("spy on "+value.and.identity)}else if(j$.isSpy(value.toString)){this.emitScalar("spy on "+value.toString.and.identity)}else if(value instanceof RegExp){this.emitScalar(value.toString())}else if(typeof value==="function"){if(value.name){this.emitScalar("Function '".concat(value.name,"'"))}else{this.emitScalar("Function")}}else if(j$["private"].isDomNode(value)){if(value.tagName){this.emitDomElement(value)}else{this.emitScalar("HTMLNode")}}else if(value instanceof Date){this.emitScalar("Date("+value+")")}else if(j$["private"].isSet(value)){this.emitSet(value)}else if(j$["private"].isMap(value)){this.emitMap(value)}else if(j$["private"].isTypedArray(value)){this.emitTypedArray(value)}else if(value.toString&&_typeof(value)==="object"&&!Array.isArray(value)&&hasCustomToString(value)){try{this.emitScalar(value.toString())}catch(e){this.emitScalar("has-invalid-toString-method")}}else if(this.seen.includes(value)){this.emitScalar("<circular reference: "+(Array.isArray(value)?"Array":"Object")+">")}else if(Array.isArray(value)||j$["private"].isA("Object",value)){this.seen.push(value);if(Array.isArray(value)){this.emitArray(value)}else{this.emitObject(value)}this.seen.pop()}else{this.emitScalar(value.toString())}}catch(e){if(this.ppNestLevel_>1||!(e instanceof MaxCharsReachedError)){throw e}}finally{this.ppNestLevel_--}}},{key:"applyCustomFormatters_",value:function applyCustomFormatters_(value){return customFormat(value,this.customObjectFormatters_)}},{key:"iterateObject",value:function iterateObject(obj,fn){var objKeys=j$["private"].MatchersUtil.keys(obj,Array.isArray(obj));var length=Math.min(objKeys.length,j$.MAX_PRETTY_PRINT_ARRAY_LENGTH);for(var i=0;i<length;i++){fn(objKeys[i])}return objKeys.length>length}},{key:"emitScalar",value:function emitScalar(value){this.append(value)}},{key:"emitString",value:function emitString(value){this.append("'"+value+"'")}},{key:"emitArray",value:function emitArray(array){var _this8=this;if(this.ppNestLevel_>j$.MAX_PRETTY_PRINT_DEPTH){this.append("Array");return}var length=Math.min(array.length,j$.MAX_PRETTY_PRINT_ARRAY_LENGTH);this.append("[ ");for(var i=0;i<length;i++){if(i>0){this.append(", ")}this.format(array[i])}if(array.length>length){this.append(", ...")}var first=array.length===0;var wasTruncated=this.iterateObject(array,function(property){if(first){first=false}else{_this8.append(", ")}_this8.formatProperty(array,property)});if(wasTruncated){this.append(", ...")}this.append(" ]")}},{key:"emitSet",value:function emitSet(set){if(this.ppNestLevel_>j$.MAX_PRETTY_PRINT_DEPTH){this.append("Set");return}this.append("Set( ");var size=Math.min(set.size,j$.MAX_PRETTY_PRINT_ARRAY_LENGTH);var i=0;set.forEach(function(value,key){if(i>=size){return}if(i>0){this.append(", ")}this.format(value);i++},this);if(set.size>size){this.append(", ...")}this.append(" )")}},{key:"emitMap",value:function emitMap(map){if(this.ppNestLevel_>j$.MAX_PRETTY_PRINT_DEPTH){this.append("Map");return}this.append("Map( ");var size=Math.min(map.size,j$.MAX_PRETTY_PRINT_ARRAY_LENGTH);var i=0;map.forEach(function(value,key){if(i>=size){return}if(i>0){this.append(", ")}this.format([key,value]);i++},this);if(map.size>size){this.append(", ...")}this.append(" )")}},{key:"emitObject",value:function emitObject(obj){var _this9=this;var ctor=obj.constructor;var constructorName=typeof ctor==="function"&&obj instanceof ctor?j$["private"].fnNameFor(obj.constructor):"null";this.append(constructorName);if(this.ppNestLevel_>j$.MAX_PRETTY_PRINT_DEPTH){return}this.append("({ ");var first=true;var wasTruncated=this.iterateObject(obj,function(property){if(first){first=false}else{_this9.append(", ")}_this9.formatProperty(obj,property)});if(wasTruncated){this.append(", ...")}this.append(" })")}},{key:"emitTypedArray",value:function emitTypedArray(arr){var constructorName=j$["private"].fnNameFor(arr.constructor);var limitedArray=Array.prototype.slice.call(arr,0,j$.MAX_PRETTY_PRINT_ARRAY_LENGTH);var itemsString=Array.prototype.join.call(limitedArray,", ");if(limitedArray.length!==arr.length){itemsString+=", ..."}this.append(constructorName+" [ "+itemsString+" ]")}},{key:"emitDomElement",value:function emitDomElement(el){var tagName=el.tagName.toLowerCase();var out="<"+tagName;var _iterator21=_createForOfIteratorHelper(el.attributes),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var attr=_step21.value;out+=" "+attr.name;if(attr.value!==""){out+="=\""+attr.value+"\""}}}catch(err){_iterator21.e(err)}finally{_iterator21.f()}out+=">";if(el.childElementCount!==0||el.textContent!==""){out+="...</"+tagName+">"}this.append(out)}},{key:"formatProperty",value:function formatProperty(obj,property){if(_typeof(property)==="symbol"){this.append(property.toString())}else{this.append(property)}this.append(": ");this.format(obj[property])}},{key:"append",value:function append(value){if(typeof value!=="string"){value=Object.prototype.toString.call(value)}var result=truncate(value,j$.MAX_PRETTY_PRINT_CHARS-this.length);this.length+=result.value.length;this.stringParts.push(result.value);if(result.truncated){throw new MaxCharsReachedError}}}])}();function hasCustomToString(value){try{return j$["private"].isFunction(value.toString)&&value.toString!==Object.prototype.toString&&value.toString()!==Object.prototype.toString.call(value)}catch(e){return true}}function truncate(s,maxlen){if(s.length<=maxlen){return{value:s,truncated:false}}s=s.substring(0,maxlen-4)+" ...";return{value:s,truncated:true}}function MaxCharsReachedError(){this.message="Exceeded "+j$.MAX_PRETTY_PRINT_CHARS+" characters while pretty-printing a value"}MaxCharsReachedError.prototype=new Error;function customFormat(value,customObjectFormatters){var _iterator22=_createForOfIteratorHelper(customObjectFormatters),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var formatter=_step22.value;var result=formatter(value);if(result!==void 0){return result}}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}}return function(customObjectFormatters){customObjectFormatters=customObjectFormatters||[];var _pp=function pp(value){var prettyPrinter=new SinglePrettyPrintRun(customObjectFormatters,_pp);prettyPrinter.format(value);return prettyPrinter.stringParts.join("")};_pp.customFormat_=function(value){return customFormat(value,customObjectFormatters)};return _pp}};getJasmineRequireObj().QueueRunner=function(j$){"use strict";var nextid=1;function StopExecutionError(){}StopExecutionError.prototype=new Error;j$["private"].StopExecutionError=StopExecutionError;function once(fn,onTwice){var called=false;return function(arg){if(called){if(onTwice){onTwice()}}else{called=true;fn(arg)}return null}}function fallbackOnMultipleDone(){console.error(new Error("An asynchronous function called its 'done' callback more than once, in a QueueRunner without a onMultipleDone handler."))}function emptyFn(){}function QueueRunner(attrs){this.id_=nextid++;this.queueableFns=attrs.queueableFns||[];var _iterator23=_createForOfIteratorHelper(this.queueableFns),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var f=_step23.value;if(!f){throw new Error("Received a falsy queueableFn")}if(!f.fn){throw new Error("Received a queueableFn with no fn")}}}catch(err){_iterator23.e(err)}finally{_iterator23.f()}this.onComplete=attrs.onComplete||emptyFn;this.clearStack=attrs.clearStack||{clearStack:function clearStack(fn){fn()}};this.onException=attrs.onException||emptyFn;this.onMultipleDone=attrs.onMultipleDone||fallbackOnMultipleDone;this.userContext=attrs.userContext||new j$["private"].UserContext;this.timeout=attrs.timeout||{setTimeout:setTimeout,clearTimeout:clearTimeout};this.fail=attrs.fail||emptyFn;this.globalErrors=attrs.globalErrors||{pushListener:emptyFn,popListener:emptyFn};var SkipPolicy=attrs.SkipPolicy||j$["private"].NeverSkipPolicy;this.skipPolicy_=new SkipPolicy(this.queueableFns);this.errored_=false;if(typeof this.onComplete!=="function"){throw new Error("invalid onComplete "+JSON.stringify(this.onComplete))}}QueueRunner.prototype.execute=function(){var _this0=this;this.handleFinalError=function(error){_this0.onException(error)};this.globalErrors.pushListener(this.handleFinalError);this.run(0)};QueueRunner.prototype.clearTimeout=function(timeoutId){Function.prototype.apply.apply(this.timeout.clearTimeout,[j$.getGlobal(),[timeoutId]])};QueueRunner.prototype.setTimeout=function(fn,timeout){return Function.prototype.apply.apply(this.timeout.setTimeout,[j$.getGlobal(),[fn,timeout]])};QueueRunner.prototype.attempt=function attempt(iterativeIndex){var _this1=this;var timeoutId;var timedOut;var completedSynchronously=true;var onException=function onException(e){_this1.onException(e);_this1.recordError_(iterativeIndex)};function handleError(error){onException(error)}var cleanup=once(function(){if(timeoutId!==void 0){_this1.clearTimeout(timeoutId)}_this1.globalErrors.popListener(handleError)});var next=once(function(err){cleanup();if(typeof err!=="undefined"){if(!(err instanceof StopExecutionError)&&!err.jasmineMessage){_this1.fail(err)}_this1.recordError_(iterativeIndex)}var runNext=function runNext(){_this1.run(_this1.nextFnIx_(iterativeIndex))};if(completedSynchronously){_this1.setTimeout(runNext)}else{runNext()}},function(){try{if(!timedOut){_this1.onMultipleDone()}}catch(error){console.error(error)}});timedOut=false;var queueableFn=this.queueableFns[iterativeIndex];next.fail=function nextFail(){this.fail.apply(null,arguments);this.recordError_(iterativeIndex);next()}.bind(this);this.globalErrors.pushListener(handleError);if(queueableFn.timeout!==void 0){var timeoutInterval=queueableFn.timeout||j$.DEFAULT_TIMEOUT_INTERVAL;timeoutId=this.setTimeout(function(){timedOut=true;var error=new Error("Timeout - Async function did not complete within "+timeoutInterval+"ms "+(queueableFn.timeout?"(custom timeout)":"(set by jasmine.DEFAULT_TIMEOUT_INTERVAL)"));onException(error);next()},timeoutInterval)}try{var maybeThenable;if(queueableFn.fn.length===0){maybeThenable=queueableFn.fn.call(this.userContext);if(maybeThenable&&j$["private"].isFunction(maybeThenable.then)){maybeThenable.then(wrapInPromiseResolutionHandler(next),onPromiseRejection);completedSynchronously=false;return{completedSynchronously:false}}}else{maybeThenable=queueableFn.fn.call(this.userContext,next);this.diagnoseConflictingAsync_(queueableFn.fn,maybeThenable);completedSynchronously=false;return{completedSynchronously:false}}}catch(e){onException(e);this.recordError_(iterativeIndex)}cleanup();return{completedSynchronously:true};function onPromiseRejection(e){onException(e);next()}};QueueRunner.prototype.run=function(recursiveIndex){var _this10=this;var length=this.queueableFns.length;for(var iterativeIndex=recursiveIndex;iterativeIndex<length;iterativeIndex=this.nextFnIx_(iterativeIndex)){var result=this.attempt(iterativeIndex);if(!result.completedSynchronously){return}}this.clearStack.clearStack(function(){_this10.globalErrors.popListener(_this10.handleFinalError);if(_this10.errored_){_this10.onComplete(new StopExecutionError)}else{_this10.onComplete()}})};QueueRunner.prototype.nextFnIx_=function(currentFnIx){var result=this.skipPolicy_.skipTo(currentFnIx);if(result===currentFnIx){throw new Error("Can't skip to the same queueable fn that just finished")}return result};QueueRunner.prototype.recordError_=function(currentFnIx){this.errored_=true;this.skipPolicy_.fnErrored(currentFnIx)};QueueRunner.prototype.diagnoseConflictingAsync_=function(fn,retval){if(retval&&j$["private"].isFunction(retval.then)){if(j$["private"].isAsyncFunction(fn)){this.onException(new Error("An asynchronous before/it/after function was defined with the async keyword but also took a done callback. Either remove the done callback (recommended) or remove the async keyword."))}else{this.onException(new Error("An asynchronous before/it/after function took a done callback but also returned a promise. Either remove the done callback (recommended) or change the function to not return a promise."))}}};function wrapInPromiseResolutionHandler(fn){return function(maybeArg){if(j$["private"].isError(maybeArg)){fn(maybeArg)}else{fn()}}}return QueueRunner};getJasmineRequireObj().ReportDispatcher=function(j$){"use strict";function ReportDispatcher(methods,runQueue,onLateError){var dispatchedMethods=methods||[];var _iterator24=_createForOfIteratorHelper(dispatchedMethods),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var method=_step24.value;this[method]=/* @__PURE__ */function(m){return function(event){return dispatch(m,event)}}(method)}}catch(err){_iterator24.e(err)}finally{_iterator24.f()}var reporters=[];var fallbackReporter=null;this.addReporter=function(reporter){reporters.push(reporter)};this.provideFallbackReporter=function(reporter){fallbackReporter=reporter};this.clearReporters=function(){reporters=[]};return this;function dispatch(method,event){if(reporters.length===0&&fallbackReporter!==null){reporters.push(fallbackReporter)}var fns=[];var _iterator25=_createForOfIteratorHelper(reporters),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var reporter=_step25.value;addFn(fns,reporter,method,event)}}catch(err){_iterator25.e(err)}finally{_iterator25.f()}return new Promise(function(resolve){runQueue({queueableFns:fns,onComplete:resolve,isReporter:true,onMultipleDone:function onMultipleDone(){onLateError(new Error("An asynchronous reporter callback called its 'done' callback more than once."))}})})}function addFn(fns,reporter,method,event){var _fn2=reporter[method];if(!_fn2){return}var thisEvent=structuredClone(event);if(_fn2.length<=1){fns.push({fn:function fn(){return _fn2.call(reporter,thisEvent)}})}else{fns.push({fn:function fn(done){return _fn2.call(reporter,thisEvent,done)}})}}}return ReportDispatcher};getJasmineRequireObj().reporterEvents=function(j$){"use strict";var events=[/**
|
|
311
316
|
* `jasmineStarted` is called after all of the specs have been loaded, but just before execution starts.
|
|
312
317
|
* @function
|
|
313
318
|
* @name Reporter#jasmineStarted
|
|
@@ -327,7 +332,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
327
332
|
* `suiteStarted` is invoked when a `describe` starts to run
|
|
328
333
|
* @function
|
|
329
334
|
* @name Reporter#suiteStarted
|
|
330
|
-
* @param {
|
|
335
|
+
* @param {SuiteStartedEvent} result Information about the individual {@link describe} being run
|
|
331
336
|
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
332
337
|
* @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion.
|
|
333
338
|
* @see async
|
|
@@ -337,7 +342,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
337
342
|
* While jasmine doesn't require any specific functions, not defining a `suiteDone` will make it impossible for a reporter to know when a suite has failures in an `afterAll`.
|
|
338
343
|
* @function
|
|
339
344
|
* @name Reporter#suiteDone
|
|
340
|
-
* @param {
|
|
345
|
+
* @param {SuiteDoneEvent} result
|
|
341
346
|
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
342
347
|
* @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion.
|
|
343
348
|
* @see async
|
|
@@ -345,7 +350,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
345
350
|
* `specStarted` is invoked when an `it` starts to run (including associated `beforeEach` functions)
|
|
346
351
|
* @function
|
|
347
352
|
* @name Reporter#specStarted
|
|
348
|
-
* @param {
|
|
353
|
+
* @param {SpecStartedEvent} result Information about the individual {@link it} being run
|
|
349
354
|
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
350
355
|
* @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion.
|
|
351
356
|
* @see async
|
|
@@ -355,11 +360,11 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
355
360
|
* While jasmine doesn't require any specific functions, not defining a `specDone` will make it impossible for a reporter to know when a spec has failed.
|
|
356
361
|
* @function
|
|
357
362
|
* @name Reporter#specDone
|
|
358
|
-
* @param {
|
|
363
|
+
* @param {SpecDoneEvent} result
|
|
359
364
|
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
360
365
|
* @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion.
|
|
361
366
|
* @see async
|
|
362
|
-
*/"specDone"];Object.freeze(events);return events};getJasmineRequireObj()["interface"]=function(jasmine2,env){var jasmineInterface={/**
|
|
367
|
+
*/"specDone"];Object.freeze(events);return events};getJasmineRequireObj()["interface"]=function(jasmine2,env){"use strict";var jasmineInterface={/**
|
|
363
368
|
* Callback passed to parts of the Jasmine base interface.
|
|
364
369
|
*
|
|
365
370
|
* By default Jasmine assumes this function completes synchronously.
|
|
@@ -375,6 +380,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
375
380
|
* @since 1.3.0
|
|
376
381
|
* @function
|
|
377
382
|
* @global
|
|
383
|
+
* @overwritable
|
|
378
384
|
* @param {String} description Textual description of the group
|
|
379
385
|
* @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs
|
|
380
386
|
*/describe:function describe(description,specDefinitions){return env.describe(description,specDefinitions)},/**
|
|
@@ -385,6 +391,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
385
391
|
* @since 1.3.0
|
|
386
392
|
* @function
|
|
387
393
|
* @global
|
|
394
|
+
* @overwritable
|
|
388
395
|
* @param {String} description Textual description of the group
|
|
389
396
|
* @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs
|
|
390
397
|
*/xdescribe:function xdescribe(description,specDefinitions){return env.xdescribe(description,specDefinitions)},/**
|
|
@@ -396,6 +403,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
396
403
|
* @since 2.1.0
|
|
397
404
|
* @function
|
|
398
405
|
* @global
|
|
406
|
+
* @overwritable
|
|
399
407
|
* @param {String} description Textual description of the group
|
|
400
408
|
* @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs
|
|
401
409
|
*/fdescribe:function fdescribe(description,specDefinitions){return env.fdescribe(description,specDefinitions)},/**
|
|
@@ -409,6 +417,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
409
417
|
* @since 1.3.0
|
|
410
418
|
* @function
|
|
411
419
|
* @global
|
|
420
|
+
* @overwritable
|
|
412
421
|
* @param {String} description Textual description of what this spec is checking
|
|
413
422
|
* @param {implementationCallback} [testFunction] Function that contains the code of your test. If not provided the test will be `pending`.
|
|
414
423
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async spec.
|
|
@@ -421,6 +430,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
421
430
|
* @since 1.3.0
|
|
422
431
|
* @function
|
|
423
432
|
* @global
|
|
433
|
+
* @overwritable
|
|
424
434
|
* @param {String} description Textual description of what this spec is checking.
|
|
425
435
|
* @param {implementationCallback} [testFunction] Function that contains the code of your test. Will not be executed.
|
|
426
436
|
*/xit:function xit(){return env.xit.apply(env,arguments)},/**
|
|
@@ -431,6 +441,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
431
441
|
* @since 2.1.0
|
|
432
442
|
* @function
|
|
433
443
|
* @global
|
|
444
|
+
* @overwritable
|
|
434
445
|
* @param {String} description Textual description of what this spec is checking.
|
|
435
446
|
* @param {implementationCallback} testFunction Function that contains the code of your test.
|
|
436
447
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async spec.
|
|
@@ -441,6 +452,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
441
452
|
* @since 1.3.0
|
|
442
453
|
* @function
|
|
443
454
|
* @global
|
|
455
|
+
* @overwritable
|
|
444
456
|
* @param {implementationCallback} [function] Function that contains the code to setup your specs.
|
|
445
457
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async beforeEach.
|
|
446
458
|
* @see async
|
|
@@ -450,6 +462,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
450
462
|
* @since 1.3.0
|
|
451
463
|
* @function
|
|
452
464
|
* @global
|
|
465
|
+
* @overwritable
|
|
453
466
|
* @param {implementationCallback} [function] Function that contains the code to teardown your specs.
|
|
454
467
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async afterEach.
|
|
455
468
|
* @see async
|
|
@@ -461,6 +474,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
461
474
|
* @since 2.1.0
|
|
462
475
|
* @function
|
|
463
476
|
* @global
|
|
477
|
+
* @overwritable
|
|
464
478
|
* @param {implementationCallback} [function] Function that contains the code to setup your specs.
|
|
465
479
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async beforeAll.
|
|
466
480
|
* @see async
|
|
@@ -472,6 +486,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
472
486
|
* @since 2.1.0
|
|
473
487
|
* @function
|
|
474
488
|
* @global
|
|
489
|
+
* @overwritable
|
|
475
490
|
* @param {implementationCallback} [function] Function that contains the code to teardown your specs.
|
|
476
491
|
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async afterAll.
|
|
477
492
|
* @see async
|
|
@@ -480,6 +495,8 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
480
495
|
* @name getSpecProperty
|
|
481
496
|
* @since 5.10.0
|
|
482
497
|
* @function
|
|
498
|
+
* @global
|
|
499
|
+
* @overwritable
|
|
483
500
|
* @param {String} key The name of the property
|
|
484
501
|
* @returns {*} The value of the property
|
|
485
502
|
*/getSpecProperty:function getSpecProperty(key){return env.getSpecProperty(key)},/**
|
|
@@ -487,6 +504,8 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
487
504
|
* @name setSpecProperty
|
|
488
505
|
* @since 3.6.0
|
|
489
506
|
* @function
|
|
507
|
+
* @global
|
|
508
|
+
* @overwritable
|
|
490
509
|
* @param {String} key The name of the property
|
|
491
510
|
* @param {*} value The value of the property
|
|
492
511
|
*/setSpecProperty:function setSpecProperty(key,value){return env.setSpecProperty(key,value)},/**
|
|
@@ -494,6 +513,8 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
494
513
|
* @name setSuiteProperty
|
|
495
514
|
* @since 3.6.0
|
|
496
515
|
* @function
|
|
516
|
+
* @global
|
|
517
|
+
* @overwritable
|
|
497
518
|
* @param {String} key The name of the property
|
|
498
519
|
* @param {*} value The value of the property
|
|
499
520
|
*/setSuiteProperty:function setSuiteProperty(key,value){return env.setSuiteProperty(key,value)},/**
|
|
@@ -502,6 +523,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
502
523
|
* @since 1.3.0
|
|
503
524
|
* @function
|
|
504
525
|
* @global
|
|
526
|
+
* @overwritable
|
|
505
527
|
* @param {Object} actual - Actual computed value to test expectations against.
|
|
506
528
|
* @return {matchers}
|
|
507
529
|
*/expect:function expect(actual){return env.expect(actual)},/**
|
|
@@ -513,6 +535,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
513
535
|
* @since 3.3.0
|
|
514
536
|
* @function
|
|
515
537
|
* @global
|
|
538
|
+
* @overwritable
|
|
516
539
|
* @param {Object} actual - Actual computed value to test expectations against.
|
|
517
540
|
* @return {async-matchers}
|
|
518
541
|
* @example
|
|
@@ -534,8 +557,8 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
534
557
|
* @name throwUnlessAsync
|
|
535
558
|
* @since 5.1.0
|
|
536
559
|
* @function
|
|
537
|
-
* @param actual
|
|
538
560
|
* @global
|
|
561
|
+
* @overwritable
|
|
539
562
|
* @param {Object} actual - Actual computed value to test expectations against.
|
|
540
563
|
* @return {matchers}
|
|
541
564
|
*/throwUnlessAsync:function throwUnlessAsync(actual){return env.throwUnlessAsync(actual)},/**
|
|
@@ -553,8 +576,8 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
553
576
|
* @name throwUnless
|
|
554
577
|
* @since 5.1.0
|
|
555
578
|
* @function
|
|
556
|
-
* @param actual
|
|
557
579
|
* @global
|
|
580
|
+
* @overwritable
|
|
558
581
|
* @param {Object} actual - Actual computed value to test expectations against.
|
|
559
582
|
* @return {matchers}
|
|
560
583
|
*/throwUnless:function throwUnless(actual){return env.throwUnless(actual)},/**
|
|
@@ -563,6 +586,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
563
586
|
* @since 2.0.0
|
|
564
587
|
* @function
|
|
565
588
|
* @global
|
|
589
|
+
* @overwritable
|
|
566
590
|
* @param {String} [message] - Reason the spec is pending.
|
|
567
591
|
*/pending:function pending(){return env.pending.apply(env,arguments)},/**
|
|
568
592
|
* Explicitly mark a spec as failed.
|
|
@@ -570,6 +594,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
570
594
|
* @since 2.1.0
|
|
571
595
|
* @function
|
|
572
596
|
* @global
|
|
597
|
+
* @overwritable
|
|
573
598
|
* @param {String|Error} [error] - Reason for the failure.
|
|
574
599
|
*/fail:function fail(){return env.fail.apply(env,arguments)},/**
|
|
575
600
|
* Install a spy onto an existing object.
|
|
@@ -577,6 +602,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
577
602
|
* @since 1.3.0
|
|
578
603
|
* @function
|
|
579
604
|
* @global
|
|
605
|
+
* @overwritable
|
|
580
606
|
* @param {Object} obj - The object upon which to install the {@link Spy}.
|
|
581
607
|
* @param {String} methodName - The name of the method to replace with a {@link Spy}.
|
|
582
608
|
* @returns {Spy}
|
|
@@ -586,6 +612,7 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
586
612
|
* @since 2.6.0
|
|
587
613
|
* @function
|
|
588
614
|
* @global
|
|
615
|
+
* @overwritable
|
|
589
616
|
* @param {Object} obj - The object upon which to install the {@link Spy}
|
|
590
617
|
* @param {String} propertyName - The name of the property to replace with a {@link Spy}.
|
|
591
618
|
* @param {String} [accessType=get] - The access type (get|set) of the property to {@link Spy} on.
|
|
@@ -596,10 +623,11 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
596
623
|
* @since 3.2.1
|
|
597
624
|
* @function
|
|
598
625
|
* @global
|
|
626
|
+
* @overwritable
|
|
599
627
|
* @param {Object} obj - The object upon which to install the {@link Spy}s
|
|
600
628
|
* @param {boolean} includeNonEnumerable - Whether or not to add spies to non-enumerable properties
|
|
601
629
|
* @returns {Object} the spied object
|
|
602
|
-
*/spyOnAllFunctions:function spyOnAllFunctions(obj,includeNonEnumerable){return env.spyOnAllFunctions(obj,includeNonEnumerable)},jsApiReporter:new jasmine2.JsApiReporter({timer:new jasmine2.Timer}),/**
|
|
630
|
+
*/spyOnAllFunctions:function spyOnAllFunctions(obj,includeNonEnumerable){return env.spyOnAllFunctions(obj,includeNonEnumerable)},jsApiReporter:new jasmine2["private"].JsApiReporter({timer:new jasmine2.Timer}),/**
|
|
603
631
|
* <p>Members of the jasmine global.</p>
|
|
604
632
|
* <p>Note: The members of the
|
|
605
633
|
* {@link asymmetricEqualityTesters|asymmetricEqualityTesters namespace}
|
|
@@ -607,14 +635,9 @@ case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline
|
|
|
607
635
|
* they are not listed here.</p>
|
|
608
636
|
*
|
|
609
637
|
* @namespace jasmine
|
|
610
|
-
*/jasmine:jasmine2};jasmine2.addCustomEqualityTester=function(tester){env.addCustomEqualityTester(tester)};jasmine2.addMatchers=function(matchers){return env.addMatchers(matchers)};jasmine2.addAsyncMatchers=function(matchers){return env.addAsyncMatchers(matchers)};jasmine2.addCustomObjectFormatter=function(formatter){return env.addCustomObjectFormatter(formatter)};jasmine2.clock=function(){return env.clock};jasmine2.createSpy=function(name,originalFn){return env.createSpy(name,originalFn)};jasmine2.createSpyObj=function(baseName,methodNames,propertyNames){return env.createSpyObj(baseName,methodNames,propertyNames)};jasmine2.addSpyStrategy=function(name,factory){return env.addSpyStrategy(name,factory)};jasmine2.setDefaultSpyStrategy=function(defaultStrategyFn){return env.setDefaultSpyStrategy(defaultStrategyFn)};return jasmineInterface};getJasmineRequireObj().RunableResources=function(j$
|
|
638
|
+
*/jasmine:jasmine2};var existingKeys=Object.keys(jasmine2);jasmine2.addCustomEqualityTester=function(tester){env.addCustomEqualityTester(tester)};jasmine2.addMatchers=function(matchers){return env.addMatchers(matchers)};jasmine2.addAsyncMatchers=function(matchers){return env.addAsyncMatchers(matchers)};jasmine2.addCustomObjectFormatter=function(formatter){return env.addCustomObjectFormatter(formatter)};jasmine2.clock=function(){return env.clock};jasmine2.createSpy=function(name,originalFn){return env.createSpy(name,originalFn)};jasmine2.createSpyObj=function(baseName,methodNames,propertyNames){return env.createSpyObj(baseName,methodNames,propertyNames)};jasmine2.addSpyStrategy=function(name,factory){return env.addSpyStrategy(name,factory)};jasmine2.setDefaultSpyStrategy=function(defaultStrategyFn){return env.setDefaultSpyStrategy(defaultStrategyFn)};jasmine2.pp=function(value){return env.pp(value)};jasmine2["private"].deprecateMonkeyPatching(jasmine2,existingKeys);return jasmineInterface};getJasmineRequireObj().RunableResources=function(j$){"use strict";var RunableResources=/*#__PURE__*/function(){function RunableResources(options){var _this11=this;_classCallCheck(this,RunableResources);this.byRunableId_={};this.getCurrentRunableId_=options.getCurrentRunableId;this.globalErrors_=options.globalErrors;this.spyFactory=new j$["private"].SpyFactory(function(){if(_this11.getCurrentRunableId_()){return _this11.customSpyStrategies()}else{return{}}},function(){return _this11.defaultSpyStrategy()},function(){return _this11.makeMatchersUtil()});this.spyRegistry=new j$["private"].SpyRegistry({currentSpies:function currentSpies(){return _this11.spies()},createSpy:function createSpy(name,originalFn){return _this11.spyFactory.createSpy(name,originalFn)}})}return _createClass(RunableResources,[{key:"initForRunable",value:function initForRunable(runableId,parentId){var newRes=this.byRunableId_[runableId]={customEqualityTesters:[],customMatchers:{},customAsyncMatchers:{},customSpyStrategies:{},customObjectFormatters:[],defaultSpyStrategy:void 0,spies:[]};var parentRes=this.byRunableId_[parentId];if(parentRes){newRes.defaultSpyStrategy=parentRes.defaultSpyStrategy;var toClone=["customEqualityTesters","customMatchers","customAsyncMatchers","customObjectFormatters","customSpyStrategies"];for(var _i11=0,_toClone=toClone;_i11<_toClone.length;_i11++){var k=_toClone[_i11];newRes[k]=j$["private"].util.clone(parentRes[k])}}}},{key:"clearForRunable",value:function clearForRunable(runableId){this.globalErrors_.removeOverrideListener();this.spyRegistry.clearSpies();delete this.byRunableId_[runableId]}},{key:"spies",value:function spies(){return this.forCurrentRunable_("Spies must be created in a before function or a spec").spies}},{key:"defaultSpyStrategy",value:function defaultSpyStrategy(){if(!this.getCurrentRunableId_()){return void 0}return this.byRunableId_[this.getCurrentRunableId_()].defaultSpyStrategy}},{key:"setDefaultSpyStrategy",value:function setDefaultSpyStrategy(fn){this.forCurrentRunable_("Default spy strategy must be set in a before function or a spec").defaultSpyStrategy=fn}},{key:"customSpyStrategies",value:function customSpyStrategies(){return this.forCurrentRunable_("Custom spy strategies must be added in a before function or a spec").customSpyStrategies}},{key:"customEqualityTesters",value:function customEqualityTesters(){return this.forCurrentRunable_("Custom Equalities must be added in a before function or a spec").customEqualityTesters}},{key:"customMatchers",value:function customMatchers(){return this.forCurrentRunable_("Matchers must be added in a before function or a spec").customMatchers}},{key:"addCustomMatchers",value:function addCustomMatchers(matchersToAdd){var matchers=this.customMatchers();for(var name in matchersToAdd){matchers[name]=matchersToAdd[name]}}},{key:"customAsyncMatchers",value:function customAsyncMatchers(){return this.forCurrentRunable_("Async Matchers must be added in a before function or a spec").customAsyncMatchers}},{key:"addCustomAsyncMatchers",value:function addCustomAsyncMatchers(matchersToAdd){var matchers=this.customAsyncMatchers();for(var name in matchersToAdd){matchers[name]=matchersToAdd[name]}}},{key:"customObjectFormatters",value:function customObjectFormatters(){return this.forCurrentRunable_("Custom object formatters must be added in a before function or a spec").customObjectFormatters}},{key:"makePrettyPrinter",value:function makePrettyPrinter(){return j$["private"].makePrettyPrinter(this.customObjectFormatters())}},{key:"makeMatchersUtil",value:function makeMatchersUtil(){if(this.getCurrentRunableId_()){return new j$["private"].MatchersUtil({customTesters:this.customEqualityTesters(),pp:this.makePrettyPrinter()})}else{return new j$["private"].MatchersUtil({pp:j$["private"].basicPrettyPrinter})}}},{key:"forCurrentRunable_",value:function forCurrentRunable_(errorMsg){var resources=this.byRunableId_[this.getCurrentRunableId_()];if(!resources&&errorMsg){throw new Error(errorMsg)}return resources}}])}();return RunableResources};getJasmineRequireObj().Runner=function(j$){"use strict";var _topSuite,_getTotalSpecsDefined,_getFocusedRunables,_runableResources,_runQueue,_TreeProcessor,_executionTree,_globalErrors,_reportDispatcher,_getConfig,_executedBefore,_currentRunableTracker,_Runner_instances,execute2_fn;var Runner=/*#__PURE__*/function(){function Runner(options){_classCallCheck(this,Runner);__privateAdd(this,_Runner_instances);__privateAdd(this,_topSuite);__privateAdd(this,_getTotalSpecsDefined);__privateAdd(this,_getFocusedRunables);__privateAdd(this,_runableResources);__privateAdd(this,_runQueue);__privateAdd(this,_TreeProcessor);__privateAdd(this,_executionTree);__privateAdd(this,_globalErrors);__privateAdd(this,_reportDispatcher);__privateAdd(this,_getConfig);__privateAdd(this,_executedBefore);__privateAdd(this,_currentRunableTracker);__privateSet(this,_topSuite,options.topSuite);__privateSet(this,_getTotalSpecsDefined,options.totalSpecsDefined);__privateSet(this,_getFocusedRunables,options.focusedRunables);__privateSet(this,_runableResources,options.runableResources);__privateSet(this,_runQueue,options.runQueue);__privateSet(this,_TreeProcessor,options.TreeProcessor);__privateSet(this,_globalErrors,options.globalErrors);__privateSet(this,_reportDispatcher,options.reportDispatcher);__privateSet(this,_getConfig,options.getConfig);__privateSet(this,_executedBefore,false);__privateSet(this,_currentRunableTracker,new j$["private"].CurrentRunableTracker)}return _createClass(Runner,[{key:"currentSpec",value:function currentSpec(){return __privateGet(this,_currentRunableTracker).currentSpec()}},{key:"setCurrentSpec",value:function setCurrentSpec(spec){__privateGet(this,_currentRunableTracker).setCurrentSpec(spec)}},{key:"currentRunable",value:function currentRunable(){return __privateGet(this,_currentRunableTracker).currentRunable()}},{key:"currentSuite",value:function currentSuite(){return __privateGet(this,_currentRunableTracker).currentSuite()}},{key:"parallelReset",value:function parallelReset(){__privateSet(this,_executedBefore,false)}},{key:"execute",value:function(){var _execute=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(runablesToRun){var focusedRunables,config,order,treeProcessor;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(__privateGet(this,_executedBefore)){__privateGet(this,_topSuite).reset()}__privateSet(this,_executedBefore,true);focusedRunables=__privateGet(this,_getFocusedRunables).call(this);config=__privateGet(this,_getConfig).call(this);if(!runablesToRun){if(focusedRunables.length){runablesToRun=focusedRunables}else{runablesToRun=[__privateGet(this,_topSuite).id]}}order=new j$["private"].Order({random:config.random,seed:j$["private"].isNumber(config.seed)?config.seed+"":config.seed});treeProcessor=new(__privateGet(this,_TreeProcessor))({tree:__privateGet(this,_topSuite),runnableIds:runablesToRun,orderChildren:function orderChildren(node){return order.sort(node.children)},excludeNode:function excludeNode(spec){return!config.specFilter(spec.metadata)}});__privateSet(this,_executionTree,treeProcessor.processTree());return _context6.a(2,__privateMethod(this,_Runner_instances,execute2_fn).call(this,runablesToRun,order))}},_callee6,this)}));function execute(_x4){return _execute.apply(this,arguments)}return execute}()}])}();_topSuite=new WeakMap;_getTotalSpecsDefined=new WeakMap;_getFocusedRunables=new WeakMap;_runableResources=new WeakMap;_runQueue=new WeakMap;_TreeProcessor=new WeakMap;_executionTree=new WeakMap;_globalErrors=new WeakMap;_reportDispatcher=new WeakMap;_getConfig=new WeakMap;_executedBefore=new WeakMap;_currentRunableTracker=new WeakMap;_Runner_instances=new WeakSet;execute2_fn=/*#__PURE__*/function(){var _ref1=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(runablesToRun,order){var totalSpecsDefined,jasmineTimer,treeRunner,_yield$treeRunner$exe,hasFailures,overallStatus,incompleteReason,incompleteCode,topSuiteResult,jasmineDoneInfo;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:totalSpecsDefined=__privateGet(this,_getTotalSpecsDefined).call(this);__privateGet(this,_runableResources).initForRunable(__privateGet(this,_topSuite).id);jasmineTimer=new j$.Timer;jasmineTimer.start();_context7.n=1;return __privateGet(this,_reportDispatcher).jasmineStarted({// In parallel mode, the jasmineStarted event is separately dispatched
|
|
611
639
|
// by jasmine-npm. This event only reaches reporters in non-parallel.
|
|
612
|
-
totalSpecsDefined:totalSpecsDefined,/**
|
|
613
|
-
* Information about the ordering (random or not) of this execution of the suite.
|
|
614
|
-
* @typedef Order
|
|
615
|
-
* @property {boolean} random - Whether the suite is running in random order
|
|
616
|
-
* @property {string} seed - The random seed
|
|
617
|
-
*/order:order,parallel:false});case 1:__privateGet(this,_currentRunableTracker).pushSuite(__privateGet(this,_topSuite));treeRunner=new j$2.TreeRunner({executionTree:__privateGet(this,_executionTree),globalErrors:__privateGet(this,_globalErrors),runableResources:__privateGet(this,_runableResources),reportDispatcher:__privateGet(this,_reportDispatcher),runQueue:__privateGet(this,_runQueue),getConfig:__privateGet(this,_getConfig),currentRunableTracker:__privateGet(this,_currentRunableTracker)});_context7.n=2;return treeRunner.execute();case 2:_yield$treeRunner$exe=_context7.v;hasFailures=_yield$treeRunner$exe.hasFailures;__privateGet(this,_runableResources).clearForRunable(__privateGet(this,_topSuite).id);__privateGet(this,_currentRunableTracker).popSuite();if(hasFailures||__privateGet(this,_topSuite).result.failedExpectations.length>0){overallStatus="failed"}else if(__privateGet(this,_getFocusedRunables).call(this).length>0){overallStatus="incomplete";incompleteReason="fit() or fdescribe() was found";incompleteCode="focused"}else if(totalSpecsDefined===0){overallStatus="incomplete";incompleteReason="No specs found";incompleteCode="noSpecsFound"}else{overallStatus="passed"}jasmineDoneInfo={overallStatus:overallStatus,totalTime:jasmineTimer.elapsed(),incompleteReason:incompleteReason,incompleteCode:incompleteCode,order:order,failedExpectations:__privateGet(this,_topSuite).result.failedExpectations,deprecationWarnings:__privateGet(this,_topSuite).result.deprecationWarnings};__privateGet(this,_topSuite).reportedDone=true;_context7.n=3;return __privateGet(this,_reportDispatcher).jasmineDone(jasmineDoneInfo);case 3:return _context7.a(2,jasmineDoneInfo)}},_callee7,this)}));return function execute2_fn(_x5,_x6){return _ref1.apply(this,arguments)}}();return Runner};getJasmineRequireObj().SkipAfterBeforeAllErrorPolicy=function(j$2){function SkipAfterBeforeAllErrorPolicy(queueableFns){this.queueableFns_=queueableFns;this.skipping_=false}SkipAfterBeforeAllErrorPolicy.prototype.skipTo=function(lastRanFnIx){if(this.skipping_){return this.nextAfterAllAfter_(lastRanFnIx)}else{return lastRanFnIx+1}};SkipAfterBeforeAllErrorPolicy.prototype.nextAfterAllAfter_=function(i){for(i++;i<this.queueableFns_.length&&this.queueableFns_[i].type!=="afterAll";i++){}return i};SkipAfterBeforeAllErrorPolicy.prototype.fnErrored=function(fnIx){if(this.queueableFns_[fnIx].type==="beforeAll"){this.skipping_=true;this.queueableFns_[fnIx].suite.hadBeforeAllFailure=true}};return SkipAfterBeforeAllErrorPolicy};getJasmineRequireObj().Spy=function(j$2){var nextOrder=/* @__PURE__ */function(){var order=0;return function(){return order++}}();function Spy(name,matchersUtil,optionals){var spy=function spy(context,args,invokeNew){var callData={object:context,invocationOrder:nextOrder(),args:Array.prototype.slice.apply(args),verified:false};callTracker.track(callData);var returnValue=strategyDispatcher.exec(context,args,invokeNew);callData.returnValue=returnValue;return returnValue};var _ref10=optionals||{},originalFn=_ref10.originalFn,customStrategies=_ref10.customStrategies,defaultStrategyFn=_ref10.defaultStrategyFn;var numArgs=typeof originalFn==="function"?originalFn.length:0,wrapper=makeFunc(numArgs,function(context,args,invokeNew){return spy(context,args,invokeNew)}),strategyDispatcher=new SpyStrategyDispatcher({name:name,fn:originalFn,getSpy:function getSpy(){return wrapper},customStrategies:customStrategies},matchersUtil),callTracker=new j$2.CallTracker;function makeFunc(length,fn){switch(length){case 1:return function wrap1(a){return fn(this,arguments,this instanceof wrap1)};case 2:return function wrap2(a,b){return fn(this,arguments,this instanceof wrap2)};case 3:return function wrap3(a,b,c){return fn(this,arguments,this instanceof wrap3)};case 4:return function wrap4(a,b,c,d){return fn(this,arguments,this instanceof wrap4)};case 5:return function wrap5(a,b,c,d,e){return fn(this,arguments,this instanceof wrap5)};case 6:return function wrap6(a,b,c,d,e,f2){return fn(this,arguments,this instanceof wrap6)};case 7:return function wrap7(a,b,c,d,e,f2,g){return fn(this,arguments,this instanceof wrap7)};case 8:return function wrap8(a,b,c,d,e,f2,g,h){return fn(this,arguments,this instanceof wrap8)};case 9:return function wrap9(a,b,c,d,e,f2,g,h,i){return fn(this,arguments,this instanceof wrap9)};default:return function wrap(){return fn(this,arguments,this instanceof wrap)}}}for(var prop in originalFn){if(prop==="and"||prop==="calls"){throw new Error("Jasmine spies would overwrite the 'and' and 'calls' properties on the object being spied upon")}wrapper[prop]=originalFn[prop]}wrapper.and=strategyDispatcher.and;wrapper.withArgs=function(){return strategyDispatcher.withArgs.apply(strategyDispatcher,arguments)};wrapper.calls=callTracker;if(defaultStrategyFn){defaultStrategyFn(wrapper.and)}return wrapper}function SpyStrategyDispatcher(strategyArgs,matchersUtil){var baseStrategy=new j$2.SpyStrategy(strategyArgs);var argsStrategies=new StrategyDict(function(){return new j$2.SpyStrategy(strategyArgs)},matchersUtil);this.and=baseStrategy;this.exec=function(spy,args,invokeNew){var strategy=argsStrategies.get(args);if(!strategy){if(argsStrategies.any()&&!baseStrategy.isConfigured()){throw new Error("Spy '"+strategyArgs.name+"' received a call with arguments "+matchersUtil.pp(Array.prototype.slice.call(args))+" but all configured strategies specify other arguments.")}else{strategy=baseStrategy}}return strategy.exec(spy,args,invokeNew)};this.withArgs=function(){return{and:argsStrategies.getOrCreate(arguments)}}}function StrategyDict(strategyFactory,matchersUtil){this.strategies=[];this.strategyFactory=strategyFactory;this.matchersUtil=matchersUtil}StrategyDict.prototype.any=function(){return this.strategies.length>0};StrategyDict.prototype.getOrCreate=function(args){var strategy=this.get(args);if(!strategy){strategy=this.strategyFactory();this.strategies.push({args:args,strategy:strategy})}return strategy};StrategyDict.prototype.get=function(args){for(var i=0;i<this.strategies.length;i++){if(this.matchersUtil.equals(args,this.strategies[i].args)){return this.strategies[i].strategy}}};return Spy};getJasmineRequireObj().SpyFactory=function(j$2){function SpyFactory(getCustomStrategies,getDefaultStrategyFn,getMatchersUtil){this.createSpy=function(name,originalFn){if(j$2.isFunction_(name)&&originalFn===void 0){originalFn=name;name=originalFn.name}return j$2.Spy(name,getMatchersUtil(),{originalFn:originalFn,customStrategies:getCustomStrategies(),defaultStrategyFn:getDefaultStrategyFn()})};this.createSpyObj=function(baseName,methodNames,propertyNames){var baseNameIsCollection=j$2.isObject_(baseName)||j$2.isArray_(baseName);if(baseNameIsCollection){propertyNames=methodNames;methodNames=baseName;baseName="unknown"}var obj={};var methods=normalizeKeyValues(methodNames);for(var i=0;i<methods.length;i++){var spy=obj[methods[i][0]]=this.createSpy(baseName+"."+methods[i][0]);if(methods[i].length>1){spy.and.returnValue(methods[i][1])}}var properties=normalizeKeyValues(propertyNames);for(var _i10=0;_i10<properties.length;_i10++){var descriptor={enumerable:true,get:this.createSpy(baseName+"."+properties[_i10][0]+".get"),set:this.createSpy(baseName+"."+properties[_i10][0]+".set")};if(properties[_i10].length>1){descriptor.get.and.returnValue(properties[_i10][1]);descriptor.set.and.returnValue(properties[_i10][1])}Object.defineProperty(obj,properties[_i10][0],descriptor)}if(methods.length===0&&properties.length===0){throw new Error("createSpyObj requires a non-empty array or object of method names to create spies for")}return obj}}function normalizeKeyValues(object){var result=[];if(j$2.isArray_(object)){for(var i=0;i<object.length;i++){result.push([object[i]])}}else if(j$2.isObject_(object)){for(var key in object){if(object.hasOwnProperty(key)){result.push([key,object[key]])}}}return result}return SpyFactory};getJasmineRequireObj().SpyRegistry=function(j$2){var spyOnMsg=j$2.formatErrorMsg("<spyOn>","spyOn(<object>, <methodName>)");var spyOnPropertyMsg=j$2.formatErrorMsg("<spyOnProperty>","spyOnProperty(<object>, <propName>, [accessType])");function SpyRegistry(options){options=options||{};var global2=options.global||j$2.getGlobal();var createSpy=options.createSpy;var currentSpies=options.currentSpies||function(){return[]};this.allowRespy=function(allow){this.respy=allow};this.spyOn=function(obj,methodName){var getErrorMsg=spyOnMsg;if(obj===void 0||obj===null){throw new Error(getErrorMsg("could not find an object to spy upon for "+methodName+"()"))}if(methodName===void 0||methodName===null){throw new Error(getErrorMsg("No method name supplied"))}if(obj[methodName]===void 0){throw new Error(getErrorMsg(methodName+"() method does not exist"))}if(obj[methodName]&&j$2.isSpy(obj[methodName])){if(this.respy){return obj[methodName]}else{throw new Error(getErrorMsg(methodName+" has already been spied upon"))}}var descriptor=Object.getOwnPropertyDescriptor(obj,methodName);if(descriptor&&!(descriptor.writable||descriptor.set)){throw new Error(getErrorMsg(methodName+" is not declared writable or has no setter"))}var originalMethod=obj[methodName];var spiedMethod=createSpy(methodName,originalMethod);var restoreStrategy;if(Object.prototype.hasOwnProperty.call(obj,methodName)||obj===global2&&methodName==="onerror"){restoreStrategy=function restoreStrategy(){obj[methodName]=originalMethod}}else{restoreStrategy=function restoreStrategy(){if(!delete obj[methodName]){obj[methodName]=originalMethod}}}currentSpies().push({restoreObjectToOriginalState:restoreStrategy});obj[methodName]=spiedMethod;if(obj[methodName]!==spiedMethod){throw new Error(j$2.formatErrorMsg("<spyOn>")("Can't spy on ".concat(methodName," because assigning to it had no effect")))}return spiedMethod};this.spyOnProperty=function(obj,propertyName,accessType){var getErrorMsg=spyOnPropertyMsg;accessType=accessType||"get";if(!obj){throw new Error(getErrorMsg("spyOn could not find an object to spy upon for "+propertyName))}if(propertyName===void 0){throw new Error(getErrorMsg("No property name supplied"))}var descriptor=j$2.util.getPropertyDescriptor(obj,propertyName);if(!descriptor){throw new Error(getErrorMsg(propertyName+" property does not exist"))}if(!descriptor.configurable){throw new Error(getErrorMsg(propertyName+" is not declared configurable"))}if(!descriptor[accessType]){throw new Error(getErrorMsg("Property "+propertyName+" does not have access type "+accessType))}if(j$2.isSpy(descriptor[accessType])){if(this.respy){return descriptor[accessType]}else{throw new Error(getErrorMsg(propertyName+"#"+accessType+" has already been spied upon"))}}var originalDescriptor=j$2.util.clone(descriptor);var spy=createSpy(propertyName,descriptor[accessType]);var restoreStrategy;if(Object.prototype.hasOwnProperty.call(obj,propertyName)){restoreStrategy=function restoreStrategy(){Object.defineProperty(obj,propertyName,originalDescriptor)}}else{restoreStrategy=function restoreStrategy(){delete obj[propertyName]}}currentSpies().push({restoreObjectToOriginalState:restoreStrategy});descriptor[accessType]=spy;Object.defineProperty(obj,propertyName,descriptor);return spy};this.spyOnAllFunctions=function(obj,includeNonEnumerable){if(!obj){throw new Error("spyOnAllFunctions could not find an object to spy upon")}var pointer=obj,propsToSpyOn=[],properties,propertiesToSkip=[];while(pointer&&(!includeNonEnumerable||pointer!==Object.prototype)){properties=getProps(pointer,includeNonEnumerable);properties=properties.filter(function(prop){return propertiesToSkip.indexOf(prop)===-1});propertiesToSkip=propertiesToSkip.concat(properties);propsToSpyOn=propsToSpyOn.concat(getSpyableFunctionProps(pointer,properties));pointer=Object.getPrototypeOf(pointer)}var _iterator26=_createForOfIteratorHelper(propsToSpyOn),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var prop=_step26.value;this.spyOn(obj,prop)}}catch(err){_iterator26.e(err)}finally{_iterator26.f()}return obj};this.clearSpies=function(){var spies=currentSpies();for(var i=spies.length-1;i>=0;i--){var spyEntry=spies[i];spyEntry.restoreObjectToOriginalState()}}}function getProps(obj,includeNonEnumerable){var enumerableProperties=Object.keys(obj);if(!includeNonEnumerable){return enumerableProperties}return Object.getOwnPropertyNames(obj).filter(function(prop){return prop!=="constructor"||enumerableProperties.indexOf("constructor")>-1})}function getSpyableFunctionProps(obj,propertiesToCheck){var props=[];var _iterator27=_createForOfIteratorHelper(propertiesToCheck),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var prop=_step27.value;if(Object.prototype.hasOwnProperty.call(obj,prop)&&isSpyableProp(obj,prop)){props.push(prop)}}}catch(err){_iterator27.e(err)}finally{_iterator27.f()}return props}function isSpyableProp(obj,prop){var value;try{value=obj[prop]}catch(e){return false}if(value instanceof Function){var descriptor=Object.getOwnPropertyDescriptor(obj,prop);return(descriptor.writable||descriptor.set)&&descriptor.configurable}return false}return SpyRegistry};getJasmineRequireObj().SpyStrategy=function(j$2){function SpyStrategy(options){options=options||{};this.identity=options.name||"unknown";this.originalFn=options.fn||function(){};this.getSpy=options.getSpy||function(){};this.plan=this._defaultPlan=function(){};var cs=options.customStrategies||{};for(var k in cs){if(j$2.util.has(cs,k)&&!this[k]){this[k]=createCustomPlan(cs[k])}}this.resolveTo=function(value){this.plan=function(){return Promise.resolve(value)};return this.getSpy()};this.rejectWith=function(value){this.plan=function(){return Promise.reject(value)};return this.getSpy()}}function createCustomPlan(factory){return function(){var plan=factory.apply(null,arguments);if(!j$2.isFunction_(plan)){throw new Error("Spy strategy must return a function")}this.plan=plan;return this.getSpy()}}SpyStrategy.prototype.exec=function(context,args,invokeNew){var contextArgs=[context].concat(args?Array.prototype.slice.call(args):[]);var target=this.plan.bind.apply(this.plan,contextArgs);return invokeNew?new target:target()};SpyStrategy.prototype.callThrough=function(){this.plan=this.originalFn;return this.getSpy()};SpyStrategy.prototype.returnValue=function(value){this.plan=function(){return value};return this.getSpy()};SpyStrategy.prototype.returnValues=function(){var values=Array.prototype.slice.call(arguments);this.plan=function(){return values.shift()};return this.getSpy()};SpyStrategy.prototype.throwError=function(something){var error=j$2.isString_(something)?new Error(something):something;this.plan=function(){throw error};return this.getSpy()};SpyStrategy.prototype.callFake=function(fn){if(!(j$2.isFunction_(fn)||j$2.isAsyncFunction_(fn)||j$2.isGeneratorFunction_(fn))){throw new Error("Argument passed to callFake should be a function, got "+fn)}this.plan=fn;return this.getSpy()};SpyStrategy.prototype.stub=function(fn){this.plan=function(){};return this.getSpy()};SpyStrategy.prototype.isConfigured=function(){return this.plan!==this._defaultPlan};return SpyStrategy};getJasmineRequireObj().StackTrace=function(j$2){function StackTrace(error){var lines=error.stack.split("\n");var extractResult=extractMessage(error.message,lines);if(extractResult){this.message=extractResult.message;lines=extractResult.remainder}lines=lines.filter(function(line){return line!==""});var parseResult=tryParseFrames(lines);this.frames=parseResult.frames;this.style=parseResult.style}var framePatterns=[// Node, Chrome, Edge
|
|
640
|
+
totalSpecsDefined:totalSpecsDefined,numExcludedSpecs:__privateGet(this,_executionTree).numExcludedSpecs(),order:orderForReporting(order),parallel:false});case 1:__privateGet(this,_currentRunableTracker).pushSuite(__privateGet(this,_topSuite));treeRunner=new j$["private"].TreeRunner({executionTree:__privateGet(this,_executionTree),globalErrors:__privateGet(this,_globalErrors),runableResources:__privateGet(this,_runableResources),reportDispatcher:__privateGet(this,_reportDispatcher),runQueue:__privateGet(this,_runQueue),getConfig:__privateGet(this,_getConfig),currentRunableTracker:__privateGet(this,_currentRunableTracker)});_context7.n=2;return treeRunner.execute();case 2:_yield$treeRunner$exe=_context7.v;hasFailures=_yield$treeRunner$exe.hasFailures;__privateGet(this,_runableResources).clearForRunable(__privateGet(this,_topSuite).id);__privateGet(this,_currentRunableTracker).popSuite();if(hasFailures||__privateGet(this,_topSuite).hasOwnFailedExpectations()){overallStatus="failed"}else if(__privateGet(this,_getFocusedRunables).call(this).length>0){overallStatus="incomplete";incompleteReason="fit() or fdescribe() was found";incompleteCode="focused"}else if(totalSpecsDefined===0){overallStatus="incomplete";incompleteReason="No specs found";incompleteCode="noSpecsFound"}else{overallStatus="passed"}topSuiteResult=__privateGet(this,_topSuite).doneEvent();jasmineDoneInfo={overallStatus:overallStatus,totalTime:jasmineTimer.elapsed(),incompleteReason:incompleteReason,incompleteCode:incompleteCode,order:orderForReporting(order),failedExpectations:topSuiteResult.failedExpectations,deprecationWarnings:topSuiteResult.deprecationWarnings};__privateGet(this,_topSuite).reportedDone=true;_context7.n=3;return __privateGet(this,_reportDispatcher).jasmineDone(jasmineDoneInfo);case 3:return _context7.a(2,jasmineDoneInfo)}},_callee7,this)}));return function execute2_fn(_x5,_x6){return _ref1.apply(this,arguments)}}();function orderForReporting(order){if(order.random){return{random:true,seed:order.seed}}else{return{random:false}}}return Runner};getJasmineRequireObj().SkipAfterBeforeAllErrorPolicy=function(j$){"use strict";function SkipAfterBeforeAllErrorPolicy(queueableFns){this.queueableFns_=queueableFns;this.skipping_=false}SkipAfterBeforeAllErrorPolicy.prototype.skipTo=function(lastRanFnIx){if(this.skipping_){return this.nextAfterAllAfter_(lastRanFnIx)}else{return lastRanFnIx+1}};SkipAfterBeforeAllErrorPolicy.prototype.nextAfterAllAfter_=function(i){for(i++;i<this.queueableFns_.length&&this.queueableFns_[i].type!=="afterAll";i++){}return i};SkipAfterBeforeAllErrorPolicy.prototype.fnErrored=function(fnIx){if(this.queueableFns_[fnIx].type==="beforeAll"){this.skipping_=true;this.queueableFns_[fnIx].suite.hadBeforeAllFailure=true}};return SkipAfterBeforeAllErrorPolicy};getJasmineRequireObj().Spy=function(j$){"use strict";var nextOrder=/* @__PURE__ */function(){var order=0;return function(){return order++}}();function Spy(name,matchersUtil,optionals){var spy=function spy(context,args,invokeNew){var callData={object:context,invocationOrder:nextOrder(),args:Array.prototype.slice.apply(args),verified:false};callTracker.track(callData);var returnValue=strategyDispatcher.exec(context,args,invokeNew);callData.returnValue=returnValue;return returnValue};var _ref10=optionals||{},originalFn=_ref10.originalFn,customStrategies=_ref10.customStrategies,defaultStrategyFn=_ref10.defaultStrategyFn;var numArgs=typeof originalFn==="function"?originalFn.length:0;var wrapper=makeFunc(numArgs,function(context,args,invokeNew){return spy(context,args,invokeNew)});var strategyDispatcher=new SpyStrategyDispatcher({name:name,fn:originalFn,getSpy:function getSpy(){return wrapper},customStrategies:customStrategies},matchersUtil);var callTracker=new j$["private"].CallTracker;function makeFunc(length,fn){switch(length){case 1:return function wrap1(a){return fn(this,arguments,this instanceof wrap1)};case 2:return function wrap2(a,b){return fn(this,arguments,this instanceof wrap2)};case 3:return function wrap3(a,b,c){return fn(this,arguments,this instanceof wrap3)};case 4:return function wrap4(a,b,c,d){return fn(this,arguments,this instanceof wrap4)};case 5:return function wrap5(a,b,c,d,e){return fn(this,arguments,this instanceof wrap5)};case 6:return function wrap6(a,b,c,d,e,f){return fn(this,arguments,this instanceof wrap6)};case 7:return function wrap7(a,b,c,d,e,f,g){return fn(this,arguments,this instanceof wrap7)};case 8:return function wrap8(a,b,c,d,e,f,g,h){return fn(this,arguments,this instanceof wrap8)};case 9:return function wrap9(a,b,c,d,e,f,g,h,i){return fn(this,arguments,this instanceof wrap9)};default:return function wrap(){return fn(this,arguments,this instanceof wrap)}}}for(var prop in originalFn){if(prop==="and"||prop==="calls"){throw new Error("Jasmine spies would overwrite the 'and' and 'calls' properties on the object being spied upon")}wrapper[prop]=originalFn[prop]}wrapper.and=strategyDispatcher.and;wrapper.withArgs=function(){return strategyDispatcher.withArgs.apply(strategyDispatcher,arguments)};wrapper.calls=callTracker;if(defaultStrategyFn){defaultStrategyFn(wrapper.and)}return wrapper}function SpyStrategyDispatcher(strategyArgs,matchersUtil){var baseStrategy=new j$["private"].SpyStrategy(strategyArgs);var argsStrategies=new StrategyDict(function(){return new j$["private"].SpyStrategy(strategyArgs)},matchersUtil);this.and=baseStrategy;this.exec=function(spy,args,invokeNew){var strategy=argsStrategies.get(args);if(!strategy){if(argsStrategies.any()&&!baseStrategy.isConfigured()){throw new Error("Spy '"+strategyArgs.name+"' received a call with arguments "+matchersUtil.pp(Array.prototype.slice.call(args))+" but all configured strategies specify other arguments.")}else{strategy=baseStrategy}}return strategy.exec(spy,args,invokeNew)};this.withArgs=function(){return{and:argsStrategies.getOrCreate(arguments)}}}function StrategyDict(strategyFactory,matchersUtil){this.strategies=[];this.strategyFactory=strategyFactory;this.matchersUtil=matchersUtil}StrategyDict.prototype.any=function(){return this.strategies.length>0};StrategyDict.prototype.getOrCreate=function(args){var strategy=this.get(args);if(!strategy){strategy=this.strategyFactory();this.strategies.push({args:args,strategy:strategy})}return strategy};StrategyDict.prototype.get=function(args){for(var i=0;i<this.strategies.length;i++){if(this.matchersUtil.equals(args,this.strategies[i].args)){return this.strategies[i].strategy}}};return Spy};getJasmineRequireObj().SpyFactory=function(j$){"use strict";function SpyFactory(getCustomStrategies,getDefaultStrategyFn,getMatchersUtil){this.createSpy=function(name,originalFn){if(j$["private"].isFunction(name)&&originalFn===void 0){originalFn=name;name=originalFn.name}return j$["private"].Spy(name,getMatchersUtil(),{originalFn:originalFn,customStrategies:getCustomStrategies(),defaultStrategyFn:getDefaultStrategyFn()})};this.createSpyObj=function(baseName,methodNames,propertyNames){var baseNameIsCollection=j$["private"].isObject(baseName)||Array.isArray(baseName);if(baseNameIsCollection){propertyNames=methodNames;methodNames=baseName;baseName="unknown"}var obj={};var methods=normalizeKeyValues(methodNames);for(var i=0;i<methods.length;i++){var spy=obj[methods[i][0]]=this.createSpy(baseName+"."+methods[i][0]);if(methods[i].length>1){spy.and.returnValue(methods[i][1])}}var properties=normalizeKeyValues(propertyNames);for(var _i12=0;_i12<properties.length;_i12++){var descriptor={enumerable:true,get:this.createSpy(baseName+"."+properties[_i12][0]+".get"),set:this.createSpy(baseName+"."+properties[_i12][0]+".set")};if(properties[_i12].length>1){descriptor.get.and.returnValue(properties[_i12][1]);descriptor.set.and.returnValue(properties[_i12][1])}Object.defineProperty(obj,properties[_i12][0],descriptor)}if(methods.length===0&&properties.length===0){throw new Error("createSpyObj requires a non-empty array or object of method names to create spies for")}return obj}}function normalizeKeyValues(object){var result=[];if(Array.isArray(object)){for(var i=0;i<object.length;i++){result.push([object[i]])}}else if(j$["private"].isObject(object)){for(var key in object){if(object.hasOwnProperty(key)){result.push([key,object[key]])}}}return result}return SpyFactory};getJasmineRequireObj().SpyRegistry=function(j$){"use strict";var spyOnMsg=j$["private"].formatErrorMsg("<spyOn>","spyOn(<object>, <methodName>)");var spyOnPropertyMsg=j$["private"].formatErrorMsg("<spyOnProperty>","spyOnProperty(<object>, <propName>, [accessType])");function SpyRegistry(options){options=options||{};var global2=options.global||j$.getGlobal();var createSpy=options.createSpy;var currentSpies=options.currentSpies||function(){return[]};this.allowRespy=function(allow){this.respy=allow};this.spyOn=function(obj,methodName){var getErrorMsg=spyOnMsg;if(obj===void 0||obj===null){throw new Error(getErrorMsg("could not find an object to spy upon for "+methodName+"()"))}if(methodName===void 0||methodName===null){throw new Error(getErrorMsg("No method name supplied"))}if(obj[methodName]===void 0){throw new Error(getErrorMsg(methodName+"() method does not exist"))}if(obj[methodName]&&obj[methodName][j$["private"].Clock.IsMockClockTimingFn]){throw new Error("Mock clock timing functions can't be spied on")}if(obj[methodName]&&j$.isSpy(obj[methodName])){if(this.respy){return obj[methodName]}else{throw new Error(getErrorMsg(methodName+" has already been spied upon"))}}var descriptor=Object.getOwnPropertyDescriptor(obj,methodName);if(descriptor&&!(descriptor.writable||descriptor.set)){throw new Error(getErrorMsg(methodName+" is not declared writable or has no setter"))}var originalMethod=obj[methodName];var spiedMethod=createSpy(methodName,originalMethod);var restoreStrategy;if(Object.prototype.hasOwnProperty.call(obj,methodName)||obj===global2&&methodName==="onerror"){restoreStrategy=function restoreStrategy(){obj[methodName]=originalMethod}}else{restoreStrategy=function restoreStrategy(){try{delete obj[methodName]}catch(e){obj[methodName]=originalMethod}}}currentSpies().push({restoreObjectToOriginalState:restoreStrategy});obj[methodName]=spiedMethod;if(obj[methodName]!==spiedMethod){throw new Error(j$["private"].formatErrorMsg("<spyOn>")("Can't spy on ".concat(methodName," because assigning to it had no effect")))}return spiedMethod};this.spyOnProperty=function(obj,propertyName,accessType){var getErrorMsg=spyOnPropertyMsg;accessType=accessType||"get";if(!obj){throw new Error(getErrorMsg("spyOn could not find an object to spy upon for "+propertyName))}if(propertyName===void 0){throw new Error(getErrorMsg("No property name supplied"))}var descriptor=j$["private"].util.getPropertyDescriptor(obj,propertyName);if(!descriptor){throw new Error(getErrorMsg(propertyName+" property does not exist"))}if(!descriptor.configurable){throw new Error(getErrorMsg(propertyName+" is not declared configurable"))}if(!descriptor[accessType]){throw new Error(getErrorMsg("Property "+propertyName+" does not have access type "+accessType))}if(j$.isSpy(descriptor[accessType])){if(this.respy){return descriptor[accessType]}else{throw new Error(getErrorMsg(propertyName+"#"+accessType+" has already been spied upon"))}}var originalDescriptor=j$["private"].util.clone(descriptor);var spy=createSpy(propertyName,descriptor[accessType]);var restoreStrategy;if(Object.prototype.hasOwnProperty.call(obj,propertyName)){restoreStrategy=function restoreStrategy(){Object.defineProperty(obj,propertyName,originalDescriptor)}}else{restoreStrategy=function restoreStrategy(){delete obj[propertyName]}}currentSpies().push({restoreObjectToOriginalState:restoreStrategy});descriptor[accessType]=spy;Object.defineProperty(obj,propertyName,descriptor);return spy};this.spyOnAllFunctions=function(obj,includeNonEnumerable){if(!obj){throw new Error("spyOnAllFunctions could not find an object to spy upon")}var pointer=obj;var propsToSpyOn=[];var properties;var propertiesToSkip=[];while(pointer&&(!includeNonEnumerable||pointer!==Object.prototype)){properties=getProps(pointer,includeNonEnumerable);properties=properties.filter(function(prop){return propertiesToSkip.indexOf(prop)===-1});propertiesToSkip=propertiesToSkip.concat(properties);propsToSpyOn=propsToSpyOn.concat(getSpyableFunctionProps(pointer,properties));pointer=Object.getPrototypeOf(pointer)}var _iterator26=_createForOfIteratorHelper(propsToSpyOn),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var prop=_step26.value;this.spyOn(obj,prop)}}catch(err){_iterator26.e(err)}finally{_iterator26.f()}return obj};this.clearSpies=function(){var spies=currentSpies();for(var i=spies.length-1;i>=0;i--){var spyEntry=spies[i];spyEntry.restoreObjectToOriginalState()}}}function getProps(obj,includeNonEnumerable){var enumerableProperties=Object.keys(obj);if(!includeNonEnumerable){return enumerableProperties}return Object.getOwnPropertyNames(obj).filter(function(prop){return prop!=="constructor"||enumerableProperties.indexOf("constructor")>-1})}function getSpyableFunctionProps(obj,propertiesToCheck){var props=[];var _iterator27=_createForOfIteratorHelper(propertiesToCheck),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var prop=_step27.value;if(Object.prototype.hasOwnProperty.call(obj,prop)&&isSpyableProp(obj,prop)){props.push(prop)}}}catch(err){_iterator27.e(err)}finally{_iterator27.f()}return props}function isSpyableProp(obj,prop){var value;try{value=obj[prop]}catch(e){return false}if(value instanceof Function){var descriptor=Object.getOwnPropertyDescriptor(obj,prop);return(descriptor.writable||descriptor.set)&&descriptor.configurable}return false}return SpyRegistry};getJasmineRequireObj().SpyStrategy=function(j$){"use strict";function SpyStrategy(options){options=options||{};this.identity=options.name||"unknown";this.originalFn=options.fn||function(){};this.getSpy=options.getSpy||function(){};this.plan=this._defaultPlan=function(){};var cs=options.customStrategies||{};for(var k in cs){if(j$["private"].util.has(cs,k)&&!this[k]){this[k]=createCustomPlan(cs[k])}}this.resolveTo=function(value){this.plan=function(){return Promise.resolve(value)};return this.getSpy()};this.rejectWith=function(value){this.plan=function(){return Promise.reject(value)};return this.getSpy()}}function createCustomPlan(factory){return function(){var plan=factory.apply(null,arguments);if(!j$["private"].isFunction(plan)){throw new Error("Spy strategy must return a function")}this.plan=plan;return this.getSpy()}}SpyStrategy.prototype.exec=function(context,args,invokeNew){var contextArgs=[context].concat(args?Array.prototype.slice.call(args):[]);var target=this.plan.bind.apply(this.plan,contextArgs);return invokeNew?new target:target()};SpyStrategy.prototype.callThrough=function(){this.plan=this.originalFn;return this.getSpy()};SpyStrategy.prototype.returnValue=function(value){this.plan=function(){return value};return this.getSpy()};SpyStrategy.prototype.returnValues=function(){var values=Array.prototype.slice.call(arguments);this.plan=function(){return values.shift()};return this.getSpy()};SpyStrategy.prototype.throwError=function(something){var error=j$["private"].isString(something)?new Error(something):something;this.plan=function(){throw error};return this.getSpy()};SpyStrategy.prototype.callFake=function(fn){if(!(j$["private"].isFunction(fn)||j$["private"].isAsyncFunction(fn)||j$["private"].isGeneratorFunction(fn))){throw new Error("Argument passed to callFake should be a function, got "+fn)}this.plan=fn;return this.getSpy()};SpyStrategy.prototype.stub=function(fn){this.plan=function(){};return this.getSpy()};SpyStrategy.prototype.isConfigured=function(){return this.plan!==this._defaultPlan};return SpyStrategy};getJasmineRequireObj().StackClearer=function(j$){"use strict";var maxInlineCallCount=10;var safariYieldIntervalMs=25;function browserQueueMicrotaskImpl(global2){var unclampedSetTimeout=getUnclampedSetTimeout(global2);var queueMicrotask=global2.queueMicrotask;var yieldStrategy="count";var currentCallCount=0;var nextSetTimeoutTime;return{clearStack:function clearStack(fn){currentCallCount++;var shouldSetTimeout;if(yieldStrategy==="time"){var now=(/* @__PURE__ */new Date()).getTime();shouldSetTimeout=now>=nextSetTimeoutTime;if(shouldSetTimeout){nextSetTimeoutTime=now+safariYieldIntervalMs}}else{shouldSetTimeout=currentCallCount>=maxInlineCallCount;if(shouldSetTimeout){currentCallCount=0}}if(shouldSetTimeout){unclampedSetTimeout(fn)}else{queueMicrotask(fn)}},setSafariYieldStrategy:function setSafariYieldStrategy(strategy){yieldStrategy=strategy;if(yieldStrategy==="time"){nextSetTimeoutTime=(/* @__PURE__ */new Date()).getTime()+safariYieldIntervalMs}}}}function nodeQueueMicrotaskImpl(global2){var queueMicrotask=global2.queueMicrotask;return{clearStack:function clearStack(fn){queueMicrotask(fn)},setSafariYieldStrategy:function setSafariYieldStrategy(){}}}function messageChannelImpl(global2){var setTimeout2=global2.setTimeout;var postMessage=getPostMessage(global2);var currentCallCount=0;return{clearStack:function clearStack(fn){currentCallCount++;if(currentCallCount<maxInlineCallCount){postMessage(fn)}else{currentCallCount=0;setTimeout2(fn)}},setSafariYieldStrategy:function setSafariYieldStrategy(){}}}function getUnclampedSetTimeout(global2){var setTimeout2=global2.setTimeout;if(!global2.MessageChannel){return setTimeout2}var postMessage=getPostMessage(global2);return function unclampedSetTimeout(fn){postMessage(function(){setTimeout2(fn)})}}function getPostMessage(global2){var MessageChannel2=global2.MessageChannel,setTimeout2=global2.setTimeout;var channel=new MessageChannel2;var head={};var tail=head;var taskRunning=false;channel.port1.onmessage=function(){head=head.next;var task=head.task;delete head.task;if(taskRunning){setTimeout2(task,0)}else{try{taskRunning=true;task()}finally{taskRunning=false}}};return function postMessage(fn){tail=tail.next={task:fn};channel.port2.postMessage(0)}}function getStackClearer(global2){var NODE_JS=global2.process&&global2.process.versions&&typeof global2.process.versions.node==="string";var SAFARI_OR_WIN_WEBKIT=global2.navigator&&/(^((?!chrome|android).)*safari)|(Win64; x64\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)$)/i.test(global2.navigator.userAgent);if(NODE_JS){return nodeQueueMicrotaskImpl(global2)}else if(SAFARI_OR_WIN_WEBKIT){return browserQueueMicrotaskImpl(global2)}else{return messageChannelImpl(global2)}}return getStackClearer};getJasmineRequireObj().StackTrace=function(j$){"use strict";function StackTrace(error){var lines=error.stack.split("\n");var extractResult=extractMessage(error.message,lines);if(extractResult){this.message=extractResult.message;lines=extractResult.remainder}lines=lines.filter(function(line){return line!==""});var parseResult=tryParseFrames(lines);this.frames=parseResult.frames;this.style=parseResult.style}var framePatterns=[// Node, Chrome, Edge
|
|
618
641
|
// e.g. " at QueueRunner.run (http://localhost:8888/__jasmine__/jasmine.js:4320:20)"
|
|
619
642
|
// Note that the "function name" can include a surprisingly large set of
|
|
620
643
|
// characters, including angle brackets and square brackets.
|
|
@@ -625,10 +648,10 @@ totalSpecsDefined:totalSpecsDefined,/**
|
|
|
625
648
|
// or "http://localhost:8888/__jasmine__/jasmine.js:4320:27"
|
|
626
649
|
{re:/^(?:(([^@\s]+)@)|@)?([^\s]+)$/,fnIx:2,fileLineColIx:3,style:"webkit"},// Some Firefox stack frames when the developer tools are open
|
|
627
650
|
// e.g. "promise callback*specStarted@http://localhost:8888/__jasmine__/jasmine.js:1880:41"
|
|
628
|
-
{re:/^^(?:((?:promise callback|[^\s]+ handler)\*([^@\s]+)@)|@)?([^\s]+)$/,fnIx:2,fileLineColIx:3,style:"webkit"}];function tryParseFrames(lines){var style=null;var frames=lines.map(function(line){var convertedLine=first(framePatterns,function(pattern){var overallMatch=line.match(pattern.re);if(!overallMatch){return null}var fileLineColMatch=overallMatch[pattern.fileLineColIx].match(/^(.*):(\d+):\d+$/);if(!fileLineColMatch){return null}style=style||pattern.style;return{raw:line,file:fileLineColMatch[1],line:parseInt(fileLineColMatch[2],10),func:overallMatch[pattern.fnIx]}});return convertedLine||{raw:line}});return{style:style,frames:frames}}function first(items,fn){var _iterator28=_createForOfIteratorHelper(items),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var item=_step28.value;var result=fn(item);if(result){return result}}}catch(err){_iterator28.e(err)}finally{_iterator28.f()}}function extractMessage(message,stackLines){var len=messagePrefixLength(message,stackLines);if(len>0){return{message:stackLines.slice(0,len).join("\n"),remainder:stackLines.slice(len)}}}function messagePrefixLength(message,stackLines){if(!stackLines[0].match(/^\w*Error/)){return 0}var messageLines=message.split("\n");for(var i=1;i<messageLines.length;i++){if(messageLines[i]!==stackLines[i]){return 0}}return messageLines.length}return StackTrace};getJasmineRequireObj().Suite=function(j$
|
|
651
|
+
{re:/^^(?:((?:promise callback|[^\s]+ handler)\*([^@\s]+)@)|@)?([^\s]+)$/,fnIx:2,fileLineColIx:3,style:"webkit"}];function tryParseFrames(lines){var style=null;var frames=lines.map(function(line){var convertedLine=first(framePatterns,function(pattern){var overallMatch=line.match(pattern.re);if(!overallMatch){return null}var fileLineColMatch=overallMatch[pattern.fileLineColIx].match(/^(.*):(\d+):\d+$/);if(!fileLineColMatch){return null}style=style||pattern.style;return{raw:line,file:fileLineColMatch[1],line:parseInt(fileLineColMatch[2],10),func:overallMatch[pattern.fnIx]}});return convertedLine||{raw:line}});return{style:style,frames:frames}}function first(items,fn){var _iterator28=_createForOfIteratorHelper(items),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var item=_step28.value;var result=fn(item);if(result){return result}}}catch(err){_iterator28.e(err)}finally{_iterator28.f()}}function extractMessage(message,stackLines){var len=messagePrefixLength(message,stackLines);if(len>0){return{message:stackLines.slice(0,len).join("\n"),remainder:stackLines.slice(len)}}}function messagePrefixLength(message,stackLines){if(!stackLines[0].match(/^\w*Error/)){return 0}var messageLines=message.split("\n");for(var i=1;i<messageLines.length;i++){if(messageLines[i]!==stackLines[i]){return 0}}return messageLines.length}return StackTrace};getJasmineRequireObj().Suite=function(j$){"use strict";var _reportedParentSuiteId,_throwOnExpectationFailure,_autoCleanClosures,_timer,_result,_Suite_instances,commonEventFields_fn,status_fn,_suite;var Suite=/*#__PURE__*/function(){function Suite(attrs){_classCallCheck(this,Suite);__privateAdd(this,_Suite_instances);__privateAdd(this,_reportedParentSuiteId);__privateAdd(this,_throwOnExpectationFailure);__privateAdd(this,_autoCleanClosures);__privateAdd(this,_timer);__privateAdd(this,_result);this.id=attrs.id;this.parentSuite=attrs.parentSuite;this.description=attrs.description;this.filename=attrs.filename;this.expectationFactory=attrs.expectationFactory;this.asyncExpectationFactory=attrs.asyncExpectationFactory;this.onLateError=attrs.onLateError||function(){};__privateSet(this,_reportedParentSuiteId,attrs.reportedParentSuiteId);__privateSet(this,_throwOnExpectationFailure,!!attrs.throwOnExpectationFailure);__privateSet(this,_autoCleanClosures,attrs.autoCleanClosures===void 0?true:!!attrs.autoCleanClosures);__privateSet(this,_timer,attrs.timer||new j$.Timer);this.beforeFns=[];this.afterFns=[];this.beforeAllFns=[];this.afterAllFns=[];this.children=[];this.reset()}return _createClass(Suite,[{key:"setSuiteProperty",value:function setSuiteProperty(key,value){if(!j$["private"].isString(key)){throw new Error("Key must be a string")}j$["private"].util.assertReporterCloneable(value,"Value");__privateGet(this,_result).properties=__privateGet(this,_result).properties||{};__privateGet(this,_result).properties[key]=value}},{key:"getFullName",value:function getFullName(){var fullName=[];for(var parentSuite=this;parentSuite;parentSuite=parentSuite.parentSuite){if(parentSuite.parentSuite){fullName.unshift(parentSuite.description)}}return fullName.join(" ")}// Mark the suite with "pending" status
|
|
629
652
|
},{key:"pend",value:function pend(){this.markedPending=true}// Like pend(), but pending state will survive reset().
|
|
630
653
|
// Useful for fdescribe, xdescribe, where pending state should remain.
|
|
631
|
-
},{key:"exclude",value:function exclude(){this.pend();this.markedExcluding=true}},{key:"beforeEach",value:function beforeEach(fn){this.beforeFns.unshift(__spreadProps(__spreadValues({},fn),{suite:this}))}},{key:"beforeAll",value:function beforeAll(fn){this.beforeAllFns.push(__spreadProps(__spreadValues({},fn),{type:"beforeAll",suite:this}))}},{key:"afterEach",value:function afterEach(fn){this.afterFns.unshift(__spreadProps(__spreadValues({},fn),{suite:this,type:"afterEach"}))}},{key:"afterAll",value:function afterAll(fn){this.afterAllFns.unshift(__spreadProps(__spreadValues({},fn),{type:"afterAll"}))}},{key:"startTimer",value:function startTimer(){__privateGet(this,_timer).start()}},{key:"endTimer",value:function endTimer(){this.
|
|
654
|
+
},{key:"exclude",value:function exclude(message){this.pend();this.markedExcluding=true;if(message){this.excludeMessage=message}}},{key:"beforeEach",value:function beforeEach(fn){this.beforeFns.unshift(__spreadProps(__spreadValues({},fn),{suite:this}))}},{key:"beforeAll",value:function beforeAll(fn){this.beforeAllFns.push(__spreadProps(__spreadValues({},fn),{type:"beforeAll",suite:this}))}},{key:"afterEach",value:function afterEach(fn){this.afterFns.unshift(__spreadProps(__spreadValues({},fn),{suite:this,type:"afterEach"}))}},{key:"afterAll",value:function afterAll(fn){this.afterAllFns.unshift(__spreadProps(__spreadValues({},fn),{type:"afterAll"}))}},{key:"startTimer",value:function startTimer(){__privateGet(this,_timer).start()}},{key:"endTimer",value:function endTimer(){__privateGet(this,_result).duration=__privateGet(this,_timer).elapsed()}},{key:"cleanupBeforeAfter",value:function cleanupBeforeAfter(){if(__privateGet(this,_autoCleanClosures)){removeFns(this.beforeAllFns);removeFns(this.afterAllFns);removeFns(this.beforeFns);removeFns(this.afterFns)}}},{key:"reset",value:function reset(){__privateSet(this,_result,{id:this.id,description:this.description,fullName:this.getFullName(),parentSuiteId:__privateGet(this,_reportedParentSuiteId),filename:this.filename,failedExpectations:[],deprecationWarnings:[],duration:null,properties:null});this.markedPending=this.markedExcluding;this.children.forEach(function(child){child.reset()});this.reportedDone=false}},{key:"startedEvent",value:function startedEvent(){return __privateMethod(this,_Suite_instances,commonEventFields_fn).call(this)}},{key:"doneEvent",value:function doneEvent(){var event=__spreadProps(__spreadValues({},__privateMethod(this,_Suite_instances,commonEventFields_fn).call(this)),{status:__privateMethod(this,_Suite_instances,status_fn).call(this)});var toCopy=["failedExpectations","deprecationWarnings","duration","properties"];for(var _i13=0,_toCopy2=toCopy;_i13<_toCopy2.length;_i13++){var k=_toCopy2[_i13];event[k]=__privateGet(this,_result)[k]}return event}},{key:"removeChildren",value:function removeChildren(){this.children=[]}},{key:"addChild",value:function addChild(child){this.children.push(child)}},{key:"hasOwnFailedExpectations",value:function hasOwnFailedExpectations(){return __privateGet(this,_result).failedExpectations.length>0}},{key:"sharedUserContext",value:function sharedUserContext(){if(!this.sharedContext){this.sharedContext=this.parentSuite?this.parentSuite.clonedSharedUserContext():new j$["private"].UserContext}return this.sharedContext}},{key:"clonedSharedUserContext",value:function clonedSharedUserContext(){return j$["private"].UserContext.fromExisting(this.sharedUserContext())}},{key:"handleException",value:function handleException(){if(arguments[0]instanceof j$["private"].errors.ExpectationFailed){return}var data={matcherName:"",passed:false,error:arguments[0]};var failedExpectation=j$["private"].buildExpectationResult(data);if(!this.parentSuite){failedExpectation.globalErrorType="afterAll"}if(this.reportedDone){this.onLateError(failedExpectation)}else{__privateGet(this,_result).failedExpectations.push(failedExpectation)}}},{key:"onMultipleDone",value:function onMultipleDone(){var msg;if(this.parentSuite){msg="An asynchronous beforeAll or afterAll function called its 'done' callback more than once.\n(in suite: "+this.getFullName()+")"}else{msg="A top-level beforeAll or afterAll function called its 'done' callback more than once."}this.onLateError(new Error(msg))}},{key:"addExpectationResult",value:function addExpectationResult(passed,data){if(passed){return}var expectationResult=j$["private"].buildExpectationResult(data);if(this.reportedDone){this.onLateError(expectationResult)}else{__privateGet(this,_result).failedExpectations.push(expectationResult)}if(__privateGet(this,_throwOnExpectationFailure)){throw new j$["private"].errors.ExpectationFailed}}},{key:"addDeprecationWarning",value:function addDeprecationWarning(deprecation){if(typeof deprecation==="string"){deprecation={message:deprecation}}__privateGet(this,_result).deprecationWarnings.push(j$["private"].buildExpectationResult(deprecation))}},{key:"hasChildWithDescription",value:function hasChildWithDescription(description){var _iterator29=_createForOfIteratorHelper(this.children),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var child=_step29.value;if(child.description===description){return true}}}catch(err){_iterator29.e(err)}finally{_iterator29.f()}return false}},{key:"metadata",get:function get(){if(!this.metadata_){this.metadata_=new SuiteMetadata(this)}return this.metadata_}}])}();_reportedParentSuiteId=new WeakMap;_throwOnExpectationFailure=new WeakMap;_autoCleanClosures=new WeakMap;_timer=new WeakMap;_result=new WeakMap;_Suite_instances=new WeakSet;commonEventFields_fn=function commonEventFields_fn(){return{id:this.id,description:this.description,fullName:this.getFullName(),parentSuiteId:__privateGet(this,_reportedParentSuiteId),filename:this.filename}};status_fn=function status_fn(){if(this.markedPending){return"pending"}if(__privateGet(this,_result).failedExpectations.length>0){return"failed"}else{return"passed"}};function removeFns(queueableFns){var _iterator30=_createForOfIteratorHelper(queueableFns),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var qf=_step30.value;qf.fn=null}}catch(err){_iterator30.e(err)}finally{_iterator30.f()}}var SuiteMetadata=/*#__PURE__*/function(){function SuiteMetadata(suite){_classCallCheck(this,SuiteMetadata);__privateAdd(this,_suite);__privateSet(this,_suite,suite);this.id=suite.id;this.parentSuite=suite.parentSuite?suite.parentSuite.metadata:null;this.description=suite.description;this.filename=suite.filename}/**
|
|
632
655
|
* The full description including all ancestors of this suite.
|
|
633
656
|
* @name Suite#getFullName
|
|
634
657
|
* @function
|
|
@@ -639,15 +662,20 @@ totalSpecsDefined:totalSpecsDefined,/**
|
|
|
639
662
|
* @name Suite#children
|
|
640
663
|
* @type {Array.<(Spec|Suite)>}
|
|
641
664
|
* @since 2.0.0
|
|
642
|
-
*/},{key:"children",get:function get(){return __privateGet(this,_suite).children.map(function(child){return child.metadata})}}])}();_suite=new WeakMap;function isFailure(args){return!args[0]}return Suite};getJasmineRequireObj().SuiteBuilder=function(j$2){var SuiteBuilder=/*#__PURE__*/function(){"use strict";function SuiteBuilder(options){_classCallCheck(this,SuiteBuilder);this.env_=options.env;this.expectationFactory_=options.expectationFactory;this.suiteAsyncExpectationFactory_=function(actual,suite){return options.asyncExpectationFactory(actual,suite,"Suite")};this.specAsyncExpectationFactory_=function(actual,suite){return options.asyncExpectationFactory(actual,suite,"Spec")};this.onLateError_=options.onLateError;this.nextSuiteId_=0;this.nextSpecId_=0;this.topSuite=this.suiteFactory_("Jasmine__TopLevel__Suite");this.currentDeclarationSuite_=this.topSuite;this.totalSpecsDefined=0;this.focusedRunables=[]}return _createClass(SuiteBuilder,[{key:"inDescribe",value:function inDescribe(){return this.currentDeclarationSuite_!==this.topSuite}},{key:"parallelReset",value:function parallelReset(){this.topSuite.removeChildren();this.topSuite.reset();this.totalSpecsDefined=0;this.focusedRunables=[]}},{key:"describe",value:function describe(description,definitionFn,filename){ensureIsFunction(definitionFn,"describe");var suite=this.suiteFactory_(description,filename);if(definitionFn.length>0){throw new Error("describe does not expect any arguments")}if(this.currentDeclarationSuite_.markedExcluding){suite.exclude()}this.addSpecsToSuite_(suite,definitionFn);return suite}},{key:"fdescribe",value:function fdescribe(description,definitionFn,filename){ensureIsFunction(definitionFn,"fdescribe");var suite=this.suiteFactory_(description,filename);suite.isFocused=true;this.focusedRunables.push(suite.id);this.unfocusAncestor_();this.addSpecsToSuite_(suite,definitionFn);return suite}},{key:"xdescribe",value:function xdescribe(description,definitionFn,filename){ensureIsFunction(definitionFn,"xdescribe");var suite=this.suiteFactory_(description,filename);suite.exclude();this.addSpecsToSuite_(suite,definitionFn);return suite}},{key:"it",value:function it(description,fn,timeout,filename){if(arguments.length>1&&typeof fn!=="undefined"){ensureIsFunctionOrAsync(fn,"it")}return this.it_(description,fn,timeout,filename)}},{key:"xit",value:function xit(description,fn,timeout,filename){if(arguments.length>1&&typeof fn!=="undefined"){ensureIsFunctionOrAsync(fn,"xit")}var spec=this.it_(description,fn,timeout,filename);spec.exclude("Temporarily disabled with xit");return spec}},{key:"fit",value:function fit(description,fn,timeout,filename){ensureIsFunctionOrAsync(fn,"fit");if(timeout){j$2.util.validateTimeout(timeout)}var spec=this.specFactory_(description,fn,timeout,filename);this.currentDeclarationSuite_.addChild(spec);this.focusedRunables.push(spec.id);this.unfocusAncestor_();return spec}},{key:"beforeEach",value:function beforeEach(beforeEachFunction,timeout){ensureIsFunctionOrAsync(beforeEachFunction,"beforeEach");if(timeout){j$2.util.validateTimeout(timeout)}this.currentDeclarationSuite_.beforeEach({fn:beforeEachFunction,timeout:timeout||0})}},{key:"beforeAll",value:function beforeAll(beforeAllFunction,timeout){ensureIsFunctionOrAsync(beforeAllFunction,"beforeAll");if(timeout){j$2.util.validateTimeout(timeout)}this.currentDeclarationSuite_.beforeAll({fn:beforeAllFunction,timeout:timeout||0})}},{key:"afterEach",value:function afterEach(afterEachFunction,timeout){ensureIsFunctionOrAsync(afterEachFunction,"afterEach");if(timeout){j$2.util.validateTimeout(timeout)}afterEachFunction.isCleanup=true;this.currentDeclarationSuite_.afterEach({fn:afterEachFunction,timeout:timeout||0})}},{key:"afterAll",value:function afterAll(afterAllFunction,timeout){ensureIsFunctionOrAsync(afterAllFunction,"afterAll");if(timeout){j$2.util.validateTimeout(timeout)}this.currentDeclarationSuite_.afterAll({fn:afterAllFunction,timeout:timeout||0})}},{key:"it_",value:function it_(description,fn,timeout,filename){if(timeout){j$2.util.validateTimeout(timeout)}this.checkDuplicate_(description,"spec");var spec=this.specFactory_(description,fn,timeout,filename);if(this.currentDeclarationSuite_.markedExcluding){spec.exclude()}this.currentDeclarationSuite_.addChild(spec);return spec}},{key:"checkDuplicate_",value:function checkDuplicate_(description,type){if(!this.env_.configuration().forbidDuplicateNames){return}if(this.currentDeclarationSuite_.hasChildWithDescription(description)){var parentDesc=this.currentDeclarationSuite_===this.topSuite?"top suite":"\"".concat(this.currentDeclarationSuite_.getFullName(),"\"");throw new Error("Duplicate ".concat(type," name \"").concat(description,"\" found in ").concat(parentDesc))}}},{key:"suiteFactory_",value:function suiteFactory_(description,filename){if(this.topSuite){this.checkDuplicate_(description,"suite")}var config=this.env_.configuration();var parentSuite=this.currentDeclarationSuite_;var reportedParentSuiteId=parentSuite===this.topSuite?null:parentSuite.id;return new j$2.Suite({id:"suite"+this.nextSuiteId_++,description:description,filename:filename,parentSuite:parentSuite,reportedParentSuiteId:reportedParentSuiteId,timer:new j$2.Timer,expectationFactory:this.expectationFactory_,asyncExpectationFactory:this.suiteAsyncExpectationFactory_,throwOnExpectationFailure:config.stopSpecOnExpectationFailure,autoCleanClosures:config.autoCleanClosures,onLateError:this.onLateError_})}},{key:"addSpecsToSuite_",value:function addSpecsToSuite_(suite,definitionFn){var parentSuite=this.currentDeclarationSuite_;parentSuite.addChild(suite);this.currentDeclarationSuite_=suite;var threw=false;try{definitionFn()}catch(e){suite.handleException(e);threw=true}if(suite.parentSuite&&!suite.children.length&&!threw){throw new Error("describe with no children (describe() or it()): ".concat(suite.getFullName()))}this.currentDeclarationSuite_=parentSuite}},{key:"specFactory_",value:function specFactory_(description,fn,timeout,filename){var _this12=this;this.totalSpecsDefined++;var config=this.env_.configuration();var suite=this.currentDeclarationSuite_;var parentSuiteId=suite===this.topSuite?null:suite.id;var spec=new j$2.Spec({id:"spec"+this.nextSpecId_++,filename:filename,parentSuiteId:parentSuiteId,beforeAndAfterFns:beforeAndAfterFns(suite),expectationFactory:this.expectationFactory_,asyncExpectationFactory:this.specAsyncExpectationFactory_,onLateError:this.onLateError_,getPath:function getPath(spec2){return _this12.getSpecPath_(spec2,suite)},description:description,userContext:function userContext(){return suite.clonedSharedUserContext()},queueableFn:{fn:fn,timeout:timeout||0},throwOnExpectationFailure:config.stopSpecOnExpectationFailure,autoCleanClosures:config.autoCleanClosures,timer:new j$2.Timer});return spec}},{key:"getSpecPath_",value:function getSpecPath_(spec,suite){var path=[spec.description];while(suite&&suite!==this.topSuite){path.unshift(suite.description);suite=suite.parentSuite}return path}},{key:"unfocusAncestor_",value:function unfocusAncestor_(){var focusedAncestor=findFocusedAncestor(this.currentDeclarationSuite_);if(focusedAncestor){for(var i=0;i<this.focusedRunables.length;i++){if(this.focusedRunables[i]===focusedAncestor){this.focusedRunables.splice(i,1);break}}}}}])}();function findFocusedAncestor(suite){while(suite){if(suite.isFocused){return suite.id}suite=suite.parentSuite}return null}function ensureIsFunction(fn,caller){if(!j$2.isFunction_(fn)){throw new Error(caller+" expects a function argument; received "+j$2.getType_(fn))}}function ensureIsFunctionOrAsync(fn,caller){if(!j$2.isFunction_(fn)&&!j$2.isAsyncFunction_(fn)){throw new Error(caller+" expects a function argument; received "+j$2.getType_(fn))}}function beforeAndAfterFns(targetSuite){return function(){var befores=[],afters=[],suite=targetSuite;while(suite){befores=befores.concat(suite.beforeFns);afters=afters.concat(suite.afterFns);suite=suite.parentSuite}return{befores:befores.reverse(),afters:afters}}}return SuiteBuilder};getJasmineRequireObj().Timer=function(){var defaultNow=/* @__PURE__ */function(Date2){return function(){return new Date2().getTime()}}(Date);function Timer(options){options=options||{};var now=options.now||defaultNow;var startTime;this.start=function(){startTime=now()};this.elapsed=function(){return now()-startTime}}return Timer};getJasmineRequireObj().TreeProcessor=function(j$2){var _tree,_runnableIds,_orderChildren,_excludeNode,_stats,_TreeProcessor_instances,runnableIndex_fn,_processNode_fn,_stats2;var defaultMin=Infinity;var defaultMax=1-Infinity;var TreeProcessor=/*#__PURE__*/function(){"use strict";function TreeProcessor(attrs){_classCallCheck(this,TreeProcessor);__privateAdd(this,_TreeProcessor_instances);__privateAdd(this,_tree);__privateAdd(this,_runnableIds);__privateAdd(this,_orderChildren);__privateAdd(this,_excludeNode);__privateAdd(this,_stats);__privateSet(this,_tree,attrs.tree);__privateSet(this,_runnableIds,attrs.runnableIds);__privateSet(this,_orderChildren,attrs.orderChildren||function(node){return node.children});__privateSet(this,_excludeNode,attrs.excludeNode||function(node){return false})}return _createClass(TreeProcessor,[{key:"processTree",value:function processTree(){__privateSet(this,_stats,{});__privateMethod(this,_TreeProcessor_instances,_processNode_fn).call(this,__privateGet(this,_tree),true);var result=new ExecutionTree(__privateGet(this,_tree),__privateGet(this,_stats));__privateSet(this,_stats,null);return result}}])}();_tree=new WeakMap;_runnableIds=new WeakMap;_orderChildren=new WeakMap;_excludeNode=new WeakMap;_stats=new WeakMap;_TreeProcessor_instances=new WeakSet;runnableIndex_fn=function runnableIndex_fn(id){for(var i=0;i<__privateGet(this,_runnableIds).length;i++){if(__privateGet(this,_runnableIds)[i]===id){return i}}};_processNode_fn=function processNode_fn(node,parentExcluded){var executableIndex=__privateMethod(this,_TreeProcessor_instances,runnableIndex_fn).call(this,node.id);if(executableIndex!==void 0){parentExcluded=false}if(!node.children){var excluded=parentExcluded||__privateGet(this,_excludeNode).call(this,node);__privateGet(this,_stats)[node.id]={excluded:excluded,willExecute:!excluded&&!node.markedPending,segments:[{index:0,owner:node,nodes:[node],min:startingMin(executableIndex),max:startingMax(executableIndex)}]}}else{var hasExecutableChild=false;var orderedChildren=__privateGet(this,_orderChildren).call(this,node);for(var i=0;i<orderedChildren.length;i++){var child=orderedChildren[i];__privateMethod(this,_TreeProcessor_instances,_processNode_fn).call(this,child,parentExcluded);var childStats=__privateGet(this,_stats)[child.id];hasExecutableChild=hasExecutableChild||childStats.willExecute}__privateGet(this,_stats)[node.id]={excluded:parentExcluded,willExecute:hasExecutableChild};segmentChildren(node,orderedChildren,__privateGet(this,_stats),executableIndex);if(__privateGet(this,_stats)[node.id].segments.length>1){if(node.canBeReentered()){j$2.getEnv().deprecated("The specified spec/suite order splits up a suite, running unrelated specs in the middle of it. This will become an error in a future release.")}else{throw new Error("Invalid order: would cause a beforeAll or afterAll to be run multiple times")}}}};var ExecutionTree=/*#__PURE__*/function(){"use strict";function ExecutionTree(topSuite,stats){_classCallCheck(this,ExecutionTree);__privateAdd(this,_stats2);Object.defineProperty(this,"topSuite",{writable:false,value:topSuite});__privateSet(this,_stats2,stats)}return _createClass(ExecutionTree,[{key:"childrenOfTopSuite",value:function childrenOfTopSuite(){return this.childrenOfSuiteSegment(this.topSuite,0)}},{key:"childrenOfSuiteSegment",value:function childrenOfSuiteSegment(suite,segmentNumber){var segmentChildren2=__privateGet(this,_stats2)[suite.id].segments[segmentNumber].nodes;return segmentChildren2.map(function(child){if(child.owner.children){return{suite:child.owner,segmentNumber:child.index}}else{return{spec:child.owner}}})}},{key:"isExcluded",value:function isExcluded(node){var nodeStats=__privateGet(this,_stats2)[node.id];return node.children?!nodeStats.willExecute:nodeStats.excluded}}])}();_stats2=new WeakMap;function segmentChildren(node,orderedChildren,stats,executableIndex){var currentSegment={index:0,owner:node,nodes:[],min:startingMin(executableIndex),max:startingMax(executableIndex)},result=[currentSegment],lastMax=defaultMax,orderedChildSegments=orderChildSegments(orderedChildren,stats);function isSegmentBoundary(minIndex){return lastMax!==defaultMax&&minIndex!==defaultMin&&lastMax<minIndex-1}for(var i=0;i<orderedChildSegments.length;i++){var childSegment=orderedChildSegments[i],maxIndex=childSegment.max,minIndex=childSegment.min;if(isSegmentBoundary(minIndex)){currentSegment={index:result.length,owner:node,nodes:[],min:defaultMin,max:defaultMax};result.push(currentSegment)}currentSegment.nodes.push(childSegment);currentSegment.min=Math.min(currentSegment.min,minIndex);currentSegment.max=Math.max(currentSegment.max,maxIndex);lastMax=maxIndex}stats[node.id].segments=result}function orderChildSegments(children,stats){var specifiedOrder=[],unspecifiedOrder=[];for(var i=0;i<children.length;i++){var child=children[i],segments=stats[child.id].segments;for(var j=0;j<segments.length;j++){var seg=segments[j];if(seg.min===defaultMin){unspecifiedOrder.push(seg)}else{specifiedOrder.push(seg)}}}specifiedOrder.sort(function(a,b){return a.min-b.min});return specifiedOrder.concat(unspecifiedOrder)}function startingMin(executableIndex){return executableIndex===void 0?defaultMin:executableIndex}function startingMax(executableIndex){return executableIndex===void 0?defaultMax:executableIndex}return TreeProcessor};getJasmineRequireObj().TreeRunner=function(j$2){var _executionTree,_setTimeout,_globalErrors,_runableResources,_reportDispatcher,_runQueue,_getConfig,_currentRunableTracker,_hasFailures,_TreeRunner_instances,wrapNodes_fn,specQueueableFns_fn,executeSuiteSegment_fn,lateUnhandledRejectionChecker_fn,suiteSegmentStart_fn,suiteSegmentComplete_fn,reportSuiteDone_fn,specComplete_fn,reportSpecDone_fn,_reportChildrenOfBeforeAllFailure_fn,suiteSkipPolicy_fn;var TreeRunner=/*#__PURE__*/function(){"use strict";function TreeRunner(attrs){_classCallCheck(this,TreeRunner);__privateAdd(this,_TreeRunner_instances);__privateAdd(this,_executionTree);__privateAdd(this,_setTimeout);__privateAdd(this,_globalErrors);__privateAdd(this,_runableResources);__privateAdd(this,_reportDispatcher);__privateAdd(this,_runQueue);__privateAdd(this,_getConfig);__privateAdd(this,_currentRunableTracker);__privateAdd(this,_hasFailures);__privateSet(this,_executionTree,attrs.executionTree);__privateSet(this,_globalErrors,attrs.globalErrors);__privateSet(this,_setTimeout,attrs.setTimeout||setTimeout.bind(globalThis));__privateSet(this,_runableResources,attrs.runableResources);__privateSet(this,_reportDispatcher,attrs.reportDispatcher);__privateSet(this,_runQueue,attrs.runQueue);__privateSet(this,_getConfig,attrs.getConfig);__privateSet(this,_currentRunableTracker,attrs.currentRunableTracker)}return _createClass(TreeRunner,[{key:"execute",value:function(){var _execute2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(){var _this13=this;return _regenerator().w(function(_context8){while(1)switch(_context8.n){case 0:__privateSet(this,_hasFailures,false);_context8.n=1;return new Promise(function(resolve){__privateMethod(_this13,_TreeRunner_instances,executeSuiteSegment_fn).call(_this13,__privateGet(_this13,_executionTree).topSuite,0,resolve)});case 1:return _context8.a(2,{hasFailures:__privateGet(this,_hasFailures)})}},_callee8,this)}));function execute(){return _execute2.apply(this,arguments)}return execute}()// Only exposed for testing.
|
|
643
|
-
},{key:"_executeSpec",value:function _executeSpec(spec,specOverallDone){var _this14=this;var onStart=function onStart(next){__privateGet(_this14,_currentRunableTracker).setCurrentSpec(spec);__privateGet(_this14,_runableResources).initForRunable(spec.id,spec.parentSuiteId||__privateGet(_this14,_executionTree).topSuite.id);__privateGet(_this14,_reportDispatcher).specStarted(spec.
|
|
665
|
+
*/},{key:"children",get:function get(){return __privateGet(this,_suite).children.map(function(child){return child.metadata})}}])}();_suite=new WeakMap;return Suite};getJasmineRequireObj().SuiteBuilder=function(j$){"use strict";var SuiteBuilder=/*#__PURE__*/function(){function SuiteBuilder(options){_classCallCheck(this,SuiteBuilder);this.env_=options.env;this.expectationFactory_=options.expectationFactory;this.suiteAsyncExpectationFactory_=function(actual,suite){return options.asyncExpectationFactory(actual,suite,"Suite")};this.specAsyncExpectationFactory_=function(actual,suite){return options.asyncExpectationFactory(actual,suite,"Spec")};this.onLateError_=options.onLateError;this.nextSuiteId_=0;this.nextSpecId_=0;this.topSuite=this.suiteFactory_("Jasmine__TopLevel__Suite");this.currentDeclarationSuite_=this.topSuite;this.totalSpecsDefined=0;this.focusedRunables=[]}return _createClass(SuiteBuilder,[{key:"inDescribe",value:function inDescribe(){return this.currentDeclarationSuite_!==this.topSuite}},{key:"parallelReset",value:function parallelReset(){this.topSuite.removeChildren();this.topSuite.reset();this.totalSpecsDefined=0;this.focusedRunables=[]}},{key:"describe",value:function describe(description,definitionFn,filename){ensureIsFunction(definitionFn,"describe");var suite=this.suiteFactory_(description,filename);if(definitionFn.length>0){throw new Error("describe does not expect any arguments")}if(this.currentDeclarationSuite_.markedExcluding){suite.exclude(this.currentDeclarationSuite_.excludeMessage)}this.addSpecsToSuite_(suite,definitionFn);return suite}},{key:"fdescribe",value:function fdescribe(description,definitionFn,filename){ensureIsFunction(definitionFn,"fdescribe");var suite=this.suiteFactory_(description,filename);suite.isFocused=true;this.focusedRunables.push(suite.id);this.unfocusAncestor_();this.addSpecsToSuite_(suite,definitionFn);return suite}},{key:"xdescribe",value:function xdescribe(description,definitionFn,filename){ensureIsFunction(definitionFn,"xdescribe");var suite=this.suiteFactory_(description,filename);suite.exclude("Temporarily disabled with xdescribe");this.addSpecsToSuite_(suite,definitionFn);return suite}},{key:"it",value:function it(description,fn,timeout,filename){if(arguments.length>1&&typeof fn!=="undefined"){ensureIsFunctionOrAsync(fn,"it")}return this.it_(description,fn,timeout,filename)}},{key:"xit",value:function xit(description,fn,timeout,filename){if(arguments.length>1&&typeof fn!=="undefined"){ensureIsFunctionOrAsync(fn,"xit")}var spec=this.it_(description,fn,timeout,filename);spec.exclude("Temporarily disabled with xit");return spec}},{key:"fit",value:function fit(description,fn,timeout,filename){ensureIsFunctionOrAsync(fn,"fit");if(timeout){j$["private"].util.validateTimeout(timeout)}var spec=this.specFactory_(description,fn,timeout,filename);this.currentDeclarationSuite_.addChild(spec);this.focusedRunables.push(spec.id);this.unfocusAncestor_();return spec}},{key:"beforeEach",value:function beforeEach(beforeEachFunction,timeout){ensureIsFunctionOrAsync(beforeEachFunction,"beforeEach");if(timeout){j$["private"].util.validateTimeout(timeout)}this.currentDeclarationSuite_.beforeEach({fn:beforeEachFunction,timeout:timeout||0})}},{key:"beforeAll",value:function beforeAll(beforeAllFunction,timeout){ensureIsFunctionOrAsync(beforeAllFunction,"beforeAll");if(timeout){j$["private"].util.validateTimeout(timeout)}this.currentDeclarationSuite_.beforeAll({fn:beforeAllFunction,timeout:timeout||0})}},{key:"afterEach",value:function afterEach(afterEachFunction,timeout){ensureIsFunctionOrAsync(afterEachFunction,"afterEach");if(timeout){j$["private"].util.validateTimeout(timeout)}afterEachFunction.isCleanup=true;this.currentDeclarationSuite_.afterEach({fn:afterEachFunction,timeout:timeout||0})}},{key:"afterAll",value:function afterAll(afterAllFunction,timeout){ensureIsFunctionOrAsync(afterAllFunction,"afterAll");if(timeout){j$["private"].util.validateTimeout(timeout)}this.currentDeclarationSuite_.afterAll({fn:afterAllFunction,timeout:timeout||0})}},{key:"it_",value:function it_(description,fn,timeout,filename){if(timeout){j$["private"].util.validateTimeout(timeout)}this.checkDuplicate_(description,"spec");var spec=this.specFactory_(description,fn,timeout,filename);if(this.currentDeclarationSuite_.markedExcluding){spec.exclude(this.currentDeclarationSuite_.excludeMessage)}this.currentDeclarationSuite_.addChild(spec);return spec}},{key:"checkDuplicate_",value:function checkDuplicate_(description,type){if(!this.env_.configuration().forbidDuplicateNames){return}if(this.currentDeclarationSuite_.hasChildWithDescription(description)){var parentDesc=this.currentDeclarationSuite_===this.topSuite?"top suite":"\"".concat(this.currentDeclarationSuite_.getFullName(),"\"");throw new Error("Duplicate ".concat(type," name \"").concat(description,"\" found in ").concat(parentDesc))}}},{key:"suiteFactory_",value:function suiteFactory_(description,filename){if(this.topSuite){this.checkDuplicate_(description,"suite")}var config=this.env_.configuration();var parentSuite=this.currentDeclarationSuite_;var reportedParentSuiteId=parentSuite===this.topSuite?null:parentSuite.id;return new j$["private"].Suite({id:"suite"+this.nextSuiteId_++,description:description,filename:filename,parentSuite:parentSuite,reportedParentSuiteId:reportedParentSuiteId,timer:new j$.Timer,expectationFactory:this.expectationFactory_,asyncExpectationFactory:this.suiteAsyncExpectationFactory_,throwOnExpectationFailure:config.stopSpecOnExpectationFailure,autoCleanClosures:config.autoCleanClosures,onLateError:this.onLateError_})}},{key:"addSpecsToSuite_",value:function addSpecsToSuite_(suite,definitionFn){var parentSuite=this.currentDeclarationSuite_;parentSuite.addChild(suite);this.currentDeclarationSuite_=suite;var threw=false;try{definitionFn()}catch(e){suite.handleException(e);threw=true}if(suite.parentSuite&&!suite.children.length&&!threw){throw new Error("describe with no children (describe() or it()): ".concat(suite.getFullName()))}this.currentDeclarationSuite_=parentSuite}},{key:"specFactory_",value:function specFactory_(description,fn,timeout,filename){var _this12=this;this.totalSpecsDefined++;var config=this.env_.configuration();var suite=this.currentDeclarationSuite_;var parentSuiteId=suite===this.topSuite?null:suite.id;var spec=new j$["private"].Spec({id:"spec"+this.nextSpecId_++,filename:filename,parentSuiteId:parentSuiteId,beforeAndAfterFns:beforeAndAfterFns(suite),expectationFactory:this.expectationFactory_,asyncExpectationFactory:this.specAsyncExpectationFactory_,onLateError:this.onLateError_,getPath:function getPath(spec2){return _this12.getSpecPath_(spec2,suite)},description:description,userContext:function userContext(){return suite.clonedSharedUserContext()},queueableFn:{fn:fn,timeout:timeout||0},throwOnExpectationFailure:config.stopSpecOnExpectationFailure,autoCleanClosures:config.autoCleanClosures,timer:new j$.Timer});return spec}},{key:"getSpecPath_",value:function getSpecPath_(spec,suite){var path=[spec.description];while(suite&&suite!==this.topSuite){path.unshift(suite.description);suite=suite.parentSuite}return path}},{key:"unfocusAncestor_",value:function unfocusAncestor_(){var focusedAncestor=findFocusedAncestor(this.currentDeclarationSuite_);if(focusedAncestor){for(var i=0;i<this.focusedRunables.length;i++){if(this.focusedRunables[i]===focusedAncestor){this.focusedRunables.splice(i,1);break}}}}}])}();function findFocusedAncestor(suite){while(suite){if(suite.isFocused){return suite.id}suite=suite.parentSuite}return null}function ensureIsFunction(fn,caller){if(!j$["private"].isFunction(fn)){throw new Error(caller+" expects a function argument; received "+j$["private"].getType(fn))}}function ensureIsFunctionOrAsync(fn,caller){if(!j$["private"].isFunction(fn)&&!j$["private"].isAsyncFunction(fn)){throw new Error(caller+" expects a function argument; received "+j$["private"].getType(fn))}}function beforeAndAfterFns(targetSuite){return function(){var befores=[];var afters=[];var suite=targetSuite;while(suite){befores=befores.concat(suite.beforeFns);afters=afters.concat(suite.afterFns);suite=suite.parentSuite}return{befores:befores.reverse(),afters:afters}}}return SuiteBuilder};getJasmineRequireObj().Timer=function(){"use strict";var defaultNow=/* @__PURE__ */function(Date2){return function(){return new Date2().getTime()}}(Date);function Timer(options){options=options||{};var now=options.now||defaultNow;var startTime;this.start=function(){startTime=now()};this.elapsed=function(){return now()-startTime}}return Timer};getJasmineRequireObj().TreeProcessor=function(j$){"use strict";var _tree,_runnableIds,_orderChildren,_excludeNode,_stats,_TreeProcessor_instances,runnableIndex_fn,_processNode_fn,_stats2;var defaultMin=Infinity;var defaultMax=1-Infinity;var TreeProcessor=/*#__PURE__*/function(){function TreeProcessor(attrs){_classCallCheck(this,TreeProcessor);__privateAdd(this,_TreeProcessor_instances);__privateAdd(this,_tree);__privateAdd(this,_runnableIds);__privateAdd(this,_orderChildren);__privateAdd(this,_excludeNode);__privateAdd(this,_stats);__privateSet(this,_tree,attrs.tree);__privateSet(this,_runnableIds,attrs.runnableIds);__privateSet(this,_orderChildren,attrs.orderChildren||function(node){return node.children});__privateSet(this,_excludeNode,attrs.excludeNode||function(node){return false})}return _createClass(TreeProcessor,[{key:"processTree",value:function processTree(){__privateSet(this,_stats,{});__privateMethod(this,_TreeProcessor_instances,_processNode_fn).call(this,__privateGet(this,_tree),true);var result=new ExecutionTree(__privateGet(this,_tree),__privateGet(this,_stats));__privateSet(this,_stats,null);return result}}])}();_tree=new WeakMap;_runnableIds=new WeakMap;_orderChildren=new WeakMap;_excludeNode=new WeakMap;_stats=new WeakMap;_TreeProcessor_instances=new WeakSet;runnableIndex_fn=function runnableIndex_fn(id){for(var i=0;i<__privateGet(this,_runnableIds).length;i++){if(__privateGet(this,_runnableIds)[i]===id){return i}}};_processNode_fn=function processNode_fn(node,parentExcluded){var executableIndex=__privateMethod(this,_TreeProcessor_instances,runnableIndex_fn).call(this,node.id);if(executableIndex!==void 0){parentExcluded=false}if(!node.children){var excluded=parentExcluded||__privateGet(this,_excludeNode).call(this,node);__privateGet(this,_stats)[node.id]={excluded:excluded,willExecute:!excluded&&!node.markedPending,segments:[{index:0,owner:node,nodes:[node],min:startingMin(executableIndex),max:startingMax(executableIndex)}]}}else{var hasExecutableChild=false;var orderedChildren=__privateGet(this,_orderChildren).call(this,node);for(var i=0;i<orderedChildren.length;i++){var child=orderedChildren[i];__privateMethod(this,_TreeProcessor_instances,_processNode_fn).call(this,child,parentExcluded);var childStats=__privateGet(this,_stats)[child.id];hasExecutableChild=hasExecutableChild||childStats.willExecute}__privateGet(this,_stats)[node.id]={excluded:parentExcluded,willExecute:hasExecutableChild};segmentChildren(node,orderedChildren,__privateGet(this,_stats),executableIndex);if(__privateGet(this,_stats)[node.id].segments.length>1){throw new Error("Invalid order: would split up a suite")}}};var ExecutionTree=/*#__PURE__*/function(){function ExecutionTree(topSuite,stats){_classCallCheck(this,ExecutionTree);__privateAdd(this,_stats2);Object.defineProperty(this,"topSuite",{writable:false,value:topSuite});__privateSet(this,_stats2,stats)}return _createClass(ExecutionTree,[{key:"childrenOfTopSuite",value:function childrenOfTopSuite(){return this.childrenOfSuite(this.topSuite)}},{key:"childrenOfSuite",value:function childrenOfSuite(suite){var segmentChildren2=__privateGet(this,_stats2)[suite.id].segments[0].nodes;return segmentChildren2.map(function(child){if(child.owner.children){return{suite:child.owner}}else{return{spec:child.owner}}})}},{key:"isExcluded",value:function isExcluded(node){var nodeStats=__privateGet(this,_stats2)[node.id];return node.children?!nodeStats.willExecute:nodeStats.excluded}},{key:"numExcludedSpecs",value:function numExcludedSpecs(node){if(!node){return this.numExcludedSpecs(this.topSuite)}else if(node.children){var result=0;var _iterator31=_createForOfIteratorHelper(node.children),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var child=_step31.value;result+=this.numExcludedSpecs(child)}}catch(err){_iterator31.e(err)}finally{_iterator31.f()}return result}else{var nodeStats=__privateGet(this,_stats2)[node.id];return nodeStats.willExecute?0:1}}}])}();_stats2=new WeakMap;function segmentChildren(node,orderedChildren,stats,executableIndex){var currentSegment={index:0,owner:node,nodes:[],min:startingMin(executableIndex),max:startingMax(executableIndex)};var result=[currentSegment];var lastMax=defaultMax;var orderedChildSegments=orderChildSegments(orderedChildren,stats);function isSegmentBoundary(minIndex){return lastMax!==defaultMax&&minIndex!==defaultMin&&lastMax<minIndex-1}for(var i=0;i<orderedChildSegments.length;i++){var childSegment=orderedChildSegments[i];var maxIndex=childSegment.max;var minIndex=childSegment.min;if(isSegmentBoundary(minIndex)){currentSegment={index:result.length,owner:node,nodes:[],min:defaultMin,max:defaultMax};result.push(currentSegment)}currentSegment.nodes.push(childSegment);currentSegment.min=Math.min(currentSegment.min,minIndex);currentSegment.max=Math.max(currentSegment.max,maxIndex);lastMax=maxIndex}stats[node.id].segments=result}function orderChildSegments(children,stats){var specifiedOrder=[];var unspecifiedOrder=[];for(var i=0;i<children.length;i++){var child=children[i];var segments=stats[child.id].segments;for(var j=0;j<segments.length;j++){var seg=segments[j];if(seg.min===defaultMin){unspecifiedOrder.push(seg)}else{specifiedOrder.push(seg)}}}specifiedOrder.sort(function(a,b){return a.min-b.min});return specifiedOrder.concat(unspecifiedOrder)}function startingMin(executableIndex){return executableIndex===void 0?defaultMin:executableIndex}function startingMax(executableIndex){return executableIndex===void 0?defaultMax:executableIndex}return TreeProcessor};getJasmineRequireObj().TreeRunner=function(j$){"use strict";var _executionTree,_setTimeout,_globalErrors,_runableResources,_reportDispatcher,_runQueue,_getConfig,_currentRunableTracker,_hasFailures,_TreeRunner_instances,wrapNodes_fn,specQueueableFns_fn,executeSuite_fn,lateUnhandledRejectionChecker_fn,suiteSegmentStart_fn,suiteSegmentComplete_fn,reportSuiteDone_fn,specComplete_fn,reportSpecDone_fn,_reportChildrenOfBeforeAllFailure_fn,suiteSkipPolicy_fn;var TreeRunner=/*#__PURE__*/function(){function TreeRunner(attrs){_classCallCheck(this,TreeRunner);__privateAdd(this,_TreeRunner_instances);__privateAdd(this,_executionTree);__privateAdd(this,_setTimeout);__privateAdd(this,_globalErrors);__privateAdd(this,_runableResources);__privateAdd(this,_reportDispatcher);__privateAdd(this,_runQueue);__privateAdd(this,_getConfig);__privateAdd(this,_currentRunableTracker);__privateAdd(this,_hasFailures);__privateSet(this,_executionTree,attrs.executionTree);__privateSet(this,_globalErrors,attrs.globalErrors);__privateSet(this,_setTimeout,attrs.setTimeout||setTimeout.bind(globalThis));__privateSet(this,_runableResources,attrs.runableResources);__privateSet(this,_reportDispatcher,attrs.reportDispatcher);__privateSet(this,_runQueue,attrs.runQueue);__privateSet(this,_getConfig,attrs.getConfig);__privateSet(this,_currentRunableTracker,attrs.currentRunableTracker)}return _createClass(TreeRunner,[{key:"execute",value:function(){var _execute2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(){var _this13=this;return _regenerator().w(function(_context8){while(1)switch(_context8.n){case 0:__privateSet(this,_hasFailures,false);_context8.n=1;return new Promise(function(resolve){__privateMethod(_this13,_TreeRunner_instances,executeSuite_fn).call(_this13,__privateGet(_this13,_executionTree).topSuite,resolve)});case 1:return _context8.a(2,{hasFailures:__privateGet(this,_hasFailures)})}},_callee8,this)}));function execute(){return _execute2.apply(this,arguments)}return execute}()// Only exposed for testing.
|
|
666
|
+
},{key:"_executeSpec",value:function _executeSpec(spec,specOverallDone){var _this14=this;var onStart=function onStart(next){__privateGet(_this14,_currentRunableTracker).setCurrentSpec(spec);__privateGet(_this14,_runableResources).initForRunable(spec.id,spec.parentSuiteId||__privateGet(_this14,_executionTree).topSuite.id);__privateGet(_this14,_reportDispatcher).specStarted(spec.startedEvent()).then(next)};var resultCallback=function resultCallback(result,next){__privateMethod(_this14,_TreeRunner_instances,specComplete_fn).call(_this14,spec).then(next)};var queueableFns=__privateMethod(this,_TreeRunner_instances,specQueueableFns_fn).call(this,spec,onStart,resultCallback);__privateGet(this,_runQueue).call(this,{isLeaf:true,queueableFns:queueableFns,onException:function onException(e){return spec.handleException(e)},onMultipleDone:function onMultipleDone(){spec.onLateError(new Error("An asynchronous spec, beforeEach, or afterEach function called its 'done' callback more than once.\n(in spec: "+spec.getFullName()+")"))},onComplete:function onComplete(){if(spec.status()==="failed"){specOverallDone(new j$["private"].StopExecutionError("spec failed"))}else{specOverallDone()}},userContext:spec.userContext(),runnableName:spec.getFullName.bind(spec),SkipPolicy:j$["private"].CompleteOnFirstErrorSkipPolicy})}}])}();_executionTree=new WeakMap;_setTimeout=new WeakMap;_globalErrors=new WeakMap;_runableResources=new WeakMap;_reportDispatcher=new WeakMap;_runQueue=new WeakMap;_getConfig=new WeakMap;_currentRunableTracker=new WeakMap;_hasFailures=new WeakMap;_TreeRunner_instances=new WeakSet;wrapNodes_fn=function wrapNodes_fn(nodes){var _this15=this;return nodes.map(function(node){return{fn:function fn(done){if(node.suite){__privateMethod(_this15,_TreeRunner_instances,executeSuite_fn).call(_this15,node.suite,done)}else{_this15._executeSpec(node.spec,done)}}}})};specQueueableFns_fn=function specQueueableFns_fn(spec,onStart,resultCallback){var config=__privateGet(this,_getConfig).call(this);var excluded=__privateGet(this,_executionTree).isExcluded(spec);var ba=spec.beforeAndAfterFns();var fns=[].concat(_toConsumableArray(ba.befores),[spec.queueableFn],_toConsumableArray(ba.afters));if(spec.markedPending||excluded===true){fns=[]}var start={fn:function fn(done){spec.executionStarted();onStart(done)}};var complete={fn:function fn(done){spec.executionFinished(excluded,config.failSpecWithNoExpectations);resultCallback(spec.doneEvent(),done)},type:"specCleanup"};fns.unshift(start);if(config.detectLateRejectionHandling){fns.push(__privateMethod(this,_TreeRunner_instances,lateUnhandledRejectionChecker_fn).call(this))}fns.push(complete);return fns};executeSuite_fn=function executeSuite_fn(suite,done){var _this16=this;var isTopSuite=suite===__privateGet(this,_executionTree).topSuite;var isExcluded=__privateGet(this,_executionTree).isExcluded(suite);var befores=[];var afters=[];if(suite.beforeAllFns.length>0&&!isExcluded){befores=_toConsumableArray(suite.beforeAllFns);if(__privateGet(this,_getConfig).call(this).detectLateRejectionHandling){befores.push(__privateMethod(this,_TreeRunner_instances,lateUnhandledRejectionChecker_fn).call(this))}}if(suite.afterAllFns.length>0&&!isExcluded){afters=_toConsumableArray(suite.afterAllFns);if(__privateGet(this,_getConfig).call(this).detectLateRejectionHandling){afters.push(__privateMethod(this,_TreeRunner_instances,lateUnhandledRejectionChecker_fn).call(this))}}var children=isTopSuite?__privateGet(this,_executionTree).childrenOfTopSuite():__privateGet(this,_executionTree).childrenOfSuite(suite);var queueableFns=[].concat(_toConsumableArray(befores),_toConsumableArray(__privateMethod(this,_TreeRunner_instances,wrapNodes_fn).call(this,children)),_toConsumableArray(afters));if(!isTopSuite){queueableFns.unshift({fn:function fn(next){__privateMethod(_this16,_TreeRunner_instances,suiteSegmentStart_fn).call(_this16,suite,next)}})}__privateGet(this,_runQueue).call(this,{onComplete:function onComplete(maybeError){__privateMethod(_this16,_TreeRunner_instances,suiteSegmentComplete_fn).call(_this16,suite,function(){done(maybeError)})},queueableFns:queueableFns,userContext:suite.sharedUserContext(),onException:function onException(){suite.handleException.apply(suite,arguments)},onMultipleDone:suite.onMultipleDone?suite.onMultipleDone.bind(suite):null,SkipPolicy:__privateMethod(this,_TreeRunner_instances,suiteSkipPolicy_fn).call(this)})};// Returns a queueable fn that reports any still-unhandled rejections in
|
|
644
667
|
// cases where detectLateRejectionHandling is enabled. Should only be called
|
|
645
668
|
// when detectLateRejectionHandling is enabled, because the setTimeout
|
|
646
669
|
// imposes a significant performance penalty in suites with lots of fast
|
|
647
670
|
// specs.
|
|
648
|
-
lateUnhandledRejectionChecker_fn=function lateUnhandledRejectionChecker_fn(){var _this17=this;var globalErrors=__privateGet(this,_globalErrors);return{fn:function fn(done){__privateGet(_this17,_setTimeout).call(_this17,function(){globalErrors.reportUnhandledRejections();done()})}}};suiteSegmentStart_fn=function suiteSegmentStart_fn(suite,next){__privateGet(this,_currentRunableTracker).pushSuite(suite);__privateGet(this,_runableResources).initForRunable(suite.id,suite.parentSuite.id);__privateGet(this,_reportDispatcher).suiteStarted(suite.
|
|
671
|
+
lateUnhandledRejectionChecker_fn=function lateUnhandledRejectionChecker_fn(){var _this17=this;var globalErrors=__privateGet(this,_globalErrors);return{fn:function fn(done){__privateGet(_this17,_setTimeout).call(_this17,function(){globalErrors.reportUnhandledRejections();done()})}}};suiteSegmentStart_fn=function suiteSegmentStart_fn(suite,next){__privateGet(this,_currentRunableTracker).pushSuite(suite);__privateGet(this,_runableResources).initForRunable(suite.id,suite.parentSuite.id);__privateGet(this,_reportDispatcher).suiteStarted(suite.startedEvent()).then(next);suite.startTimer()};suiteSegmentComplete_fn=function suiteSegmentComplete_fn(suite,next){var _this18=this;suite.endTimer();var isTopSuite=suite===__privateGet(this,_executionTree).topSuite;if(!isTopSuite){if(suite!==__privateGet(this,_currentRunableTracker).currentSuite()){throw new Error("Tried to complete the wrong suite")}suite.cleanupBeforeAfter();__privateGet(this,_runableResources).clearForRunable(suite.id);__privateGet(this,_currentRunableTracker).popSuite();if(suite.doneEvent().status==="failed"){__privateSet(this,_hasFailures,true)}}var finish=isTopSuite?next:function(){return __privateMethod(_this18,_TreeRunner_instances,reportSuiteDone_fn).call(_this18,suite,next)};if(suite.hadBeforeAllFailure){__privateMethod(this,_TreeRunner_instances,_reportChildrenOfBeforeAllFailure_fn).call(this,suite).then(finish)}else{finish()}};reportSuiteDone_fn=function reportSuiteDone_fn(suite,next){suite.reportedDone=true;__privateGet(this,_reportDispatcher).suiteDone(suite.doneEvent()).then(next)};specComplete_fn=/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(spec){return _regenerator().w(function(_context9){while(1)switch(_context9.n){case 0:__privateGet(this,_runableResources).clearForRunable(spec.id);__privateGet(this,_currentRunableTracker).setCurrentSpec(null);if(spec.status()==="failed"){__privateSet(this,_hasFailures,true)}_context9.n=1;return __privateMethod(this,_TreeRunner_instances,reportSpecDone_fn).call(this,spec);case 1:return _context9.a(2)}},_callee9,this)}));return function specComplete_fn(_x7){return _ref11.apply(this,arguments)}}();reportSpecDone_fn=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(spec){return _regenerator().w(function(_context0){while(1)switch(_context0.n){case 0:spec.reportedDone=true;_context0.n=1;return __privateGet(this,_reportDispatcher).specDone(spec.doneEvent());case 1:return _context0.a(2)}},_callee0,this)}));return function reportSpecDone_fn(_x8){return _ref12.apply(this,arguments)}}();_reportChildrenOfBeforeAllFailure_fn=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(suite){var _iterator32,_step32,child,_t;return _regenerator().w(function(_context1){while(1)switch(_context1.p=_context1.n){case 0:_iterator32=_createForOfIteratorHelper(suite.children);_context1.p=1;_iterator32.s();case 2:if((_step32=_iterator32.n()).done){_context1.n=9;break}child=_step32.value;if(!(child instanceof j$["private"].Suite)){_context1.n=6;break}_context1.n=3;return __privateGet(this,_reportDispatcher).suiteStarted(child.startedEvent());case 3:_context1.n=4;return __privateMethod(this,_TreeRunner_instances,_reportChildrenOfBeforeAllFailure_fn).call(this,child);case 4:_context1.n=5;return __privateGet(this,_reportDispatcher).suiteDone(child.doneEvent());case 5:_context1.n=8;break;case 6:_context1.n=7;return __privateGet(this,_reportDispatcher).specStarted(child.startedEvent());case 7:child.hadBeforeAllFailure();_context1.n=8;return __privateMethod(this,_TreeRunner_instances,reportSpecDone_fn).call(this,child);case 8:_context1.n=2;break;case 9:_context1.n=11;break;case 10:_context1.p=10;_t=_context1.v;_iterator32.e(_t);case 11:_context1.p=11;_iterator32.f();return _context1.f(11);case 12:return _context1.a(2)}},_callee1,this,[[1,10,11,12]])}));return function reportChildrenOfBeforeAllFailure_fn(_x9){return _ref13.apply(this,arguments)}}();suiteSkipPolicy_fn=function suiteSkipPolicy_fn(){if(__privateGet(this,_getConfig).call(this).stopOnSpecFailure){return j$["private"].CompleteOnFirstErrorSkipPolicy}else{return j$["private"].SkipAfterBeforeAllErrorPolicy}};return TreeRunner};getJasmineRequireObj().UserContext=function(j$){"use strict";function UserContext(){}UserContext.fromExisting=function(oldContext){var context=new UserContext;for(var prop in oldContext){if(oldContext.hasOwnProperty(prop)){context[prop]=oldContext[prop]}}return context};return UserContext};getJasmineRequireObj().version=function(){return"6.3.0"}}});// ../vinyl-jasmine-wrapper/src/polyfills.ts
|
|
649
672
|
var import_queue_microtask=__toESM(require_queue_microtask5(),1);var import_to_precision=__toESM(require_to_precision5(),1);var import_to_fixed=__toESM(require_to_fixed5(),1);// ../../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js
|
|
650
|
-
var jasmineRequire=window.jasmineRequire||require_jasmine();jasmineRequire.html=function(j$2){j$2.ResultsNode=jasmineRequire.ResultsNode();j$2.HtmlReporter=jasmineRequire.HtmlReporter(j$2);j$2.QueryString=jasmineRequire.QueryString();j$2.HtmlSpecFilter=jasmineRequire.HtmlSpecFilter()};jasmineRequire.HtmlReporter=function(j$2){function ResultsStateBuilder(){this.topResults=new j$2.ResultsNode({},"",null);this.currentParent=this.topResults;this.specsExecuted=0;this.failureCount=0;this.pendingSpecCount=0}ResultsStateBuilder.prototype.suiteStarted=function(result){this.currentParent.addChild(result,"suite");this.currentParent=this.currentParent.last()};ResultsStateBuilder.prototype.suiteDone=function(result){this.currentParent.updateResult(result);if(this.currentParent!==this.topResults){this.currentParent=this.currentParent.parent}if(result.status==="failed"){this.failureCount++}};ResultsStateBuilder.prototype.specStarted=function(result){};ResultsStateBuilder.prototype.specDone=function(result){this.currentParent.addChild(result,"spec");if(result.status!=="excluded"){this.specsExecuted++}if(result.status==="failed"){this.failureCount++}if(result.status=="pending"){this.pendingSpecCount++}};ResultsStateBuilder.prototype.jasmineDone=function(result){if(result.failedExpectations){this.failureCount+=result.failedExpectations.length}};function HtmlReporter(options){function config(){return options.env&&options.env.configuration()||{}}var getContainer=options.getContainer;var createElement=options.createElement;var createTextNode=options.createTextNode;var navigateWithNewParam=options.navigateWithNewParam||function(){};var addToExistingQueryString=options.addToExistingQueryString||defaultQueryString;var filterSpecs=options.filterSpecs;var htmlReporterMain;var symbols;var deprecationWarnings=[];var failures=[];this.initialize=function(){clearPrior();htmlReporterMain=createDom("div",{className:"jasmine_html-reporter"},createDom("div",{className:"jasmine-banner"},createDom("a",{className:"jasmine-title",href:"http://jasmine.github.io/",target:"_blank"}),createDom("span",{className:"jasmine-version"},j$2.version)),createDom("ul",{className:"jasmine-symbol-summary"}),createDom("div",{className:"jasmine-alert"}),createDom("div",{className:"jasmine-results"},createDom("div",{className:"jasmine-failures"})));getContainer().appendChild(htmlReporterMain)};var totalSpecsDefined;this.jasmineStarted=function(options2){totalSpecsDefined=options2.totalSpecsDefined||0};var summary=createDom("div",{className:"jasmine-summary"});var stateBuilder=new ResultsStateBuilder;this.suiteStarted=function(result){stateBuilder.suiteStarted(result)};this.suiteDone=function(result){stateBuilder.suiteDone(result);if(result.status==="failed"){failures.push(failureDom(result))}addDeprecationWarnings(result,"suite")};this.specStarted=function(result){stateBuilder.specStarted(result)};this.specDone=function(result){stateBuilder.specDone(result);if(noExpectations(result)){var noSpecMsg="Spec '"+result.fullName+"' has no expectations.";if(result.status==="failed"){console.error(noSpecMsg)}else{console.warn(noSpecMsg)}}if(!symbols){symbols=find(".jasmine-symbol-summary")}symbols.appendChild(createDom("li",{className:this.displaySpecInCorrectFormat(result),id:"spec_"+result.id,title:result.fullName}));if(result.status==="failed"){failures.push(failureDom(result))}addDeprecationWarnings(result,"spec")};this.displaySpecInCorrectFormat=function(result){return noExpectations(result)&&result.status==="passed"?"jasmine-empty":this.resultStatus(result.status)};this.resultStatus=function(status){if(status==="excluded"){return config().hideDisabled?"jasmine-excluded-no-display":"jasmine-excluded"}return"jasmine-"+status};this.jasmineDone=function(doneResult){stateBuilder.jasmineDone(doneResult);var banner=find(".jasmine-banner");var alert=find(".jasmine-alert");var order=doneResult&&doneResult.order;alert.appendChild(createDom("span",{className:"jasmine-duration"},"finished in "+doneResult.totalTime/1e3+"s"));banner.appendChild(optionsMenu(config()));if(stateBuilder.specsExecuted<totalSpecsDefined){var skippedMessage="Ran "+stateBuilder.specsExecuted+" of "+totalSpecsDefined+" specs - run all";var skippedLink=(window.location.pathname||"")+addToExistingQueryString("spec","");alert.appendChild(createDom("span",{className:"jasmine-bar jasmine-skipped"},createDom("a",{href:skippedLink,title:"Run all specs"},skippedMessage)))}var statusBarMessage="";var statusBarClassName="jasmine-overall-result jasmine-bar ";var globalFailures=doneResult&&doneResult.failedExpectations||[];var failed=stateBuilder.failureCount+globalFailures.length>0;if(totalSpecsDefined>0||failed){statusBarMessage+=pluralize("spec",stateBuilder.specsExecuted)+", "+pluralize("failure",stateBuilder.failureCount);if(stateBuilder.pendingSpecCount){statusBarMessage+=", "+pluralize("pending spec",stateBuilder.pendingSpecCount)}}if(doneResult.overallStatus==="passed"){statusBarClassName+=" jasmine-passed "}else if(doneResult.overallStatus==="incomplete"){statusBarClassName+=" jasmine-incomplete ";statusBarMessage="Incomplete: "+doneResult.incompleteReason+", "+statusBarMessage}else{statusBarClassName+=" jasmine-failed "}var seedBar;if(order&&order.random){seedBar=createDom("span",{className:"jasmine-seed-bar"},", randomized with seed ",createDom("a",{title:"randomized with seed "+order.seed,href:seedHref(order.seed)},order.seed))}alert.appendChild(createDom("span",{className:statusBarClassName},statusBarMessage,seedBar));var errorBarClassName="jasmine-bar jasmine-errored";var afterAllMessagePrefix="AfterAll ";for(var i=0;i<globalFailures.length;i++){alert.appendChild(createDom("span",{className:errorBarClassName},globalFailureMessage(globalFailures[i])))}function globalFailureMessage(failure){if(failure.globalErrorType==="load"){var prefix="Error during loading: "+failure.message;if(failure.filename){return prefix+" in "+failure.filename+" line "+failure.lineno}else{return prefix}}else if(failure.globalErrorType==="afterAll"){return afterAllMessagePrefix+failure.message}else{return failure.message}}addDeprecationWarnings(doneResult);var _loop6=function _loop6(){var children=[];var context;switch(deprecationWarnings[_i11].runnableType){case"spec":context="(in spec: "+deprecationWarnings[_i11].runnableName+")";break;case"suite":context="(in suite: "+deprecationWarnings[_i11].runnableName+")";break;default:context=""}deprecationWarnings[_i11].message.split("\n").forEach(function(line){children.push(line);children.push(createDom("br"))});children[0]="DEPRECATION: "+children[0];children.push(context);if(deprecationWarnings[_i11].stack){children.push(createExpander(deprecationWarnings[_i11].stack))}alert.appendChild(createDom("span",{className:"jasmine-bar jasmine-warning"},children))};for(var _i11=0;_i11<deprecationWarnings.length;_i11++){_loop6()}var results=find(".jasmine-results");results.appendChild(summary);summaryList(stateBuilder.topResults,summary);if(failures.length){alert.appendChild(createDom("span",{className:"jasmine-menu jasmine-bar jasmine-spec-list"},createDom("span",{},"Spec List | "),createDom("a",{className:"jasmine-failures-menu",href:"#"},"Failures")));alert.appendChild(createDom("span",{className:"jasmine-menu jasmine-bar jasmine-failure-list"},createDom("a",{className:"jasmine-spec-list-menu",href:"#"},"Spec List"),createDom("span",{}," | Failures ")));find(".jasmine-failures-menu").onclick=function(){setMenuModeTo("jasmine-failure-list");return false};find(".jasmine-spec-list-menu").onclick=function(){setMenuModeTo("jasmine-spec-list");return false};setMenuModeTo("jasmine-failure-list");var failureNode=find(".jasmine-failures");for(var _i12=0;_i12<failures.length;_i12++){failureNode.appendChild(failures[_i12])}}};return this;function failureDom(result){var failure=createDom("div",{className:"jasmine-spec-detail jasmine-failed"},failureDescription(result,stateBuilder.currentParent),createDom("div",{className:"jasmine-messages"}));var messages=failure.childNodes[1];for(var i=0;i<result.failedExpectations.length;i++){var expectation=result.failedExpectations[i];messages.appendChild(createDom("div",{className:"jasmine-result-message"},expectation.message));messages.appendChild(createDom("div",{className:"jasmine-stack-trace"},expectation.stack))}if(result.failedExpectations.length===0){messages.appendChild(createDom("div",{className:"jasmine-result-message"},"Spec has no expectations"))}if(result.debugLogs){messages.appendChild(debugLogTable(result.debugLogs))}return failure}function debugLogTable(debugLogs){var tbody=createDom("tbody");debugLogs.forEach(function(entry){tbody.appendChild(createDom("tr",{},createDom("td",{},entry.timestamp.toString()),createDom("td",{className:"jasmine-debug-log-msg"},entry.message)))});return createDom("div",{className:"jasmine-debug-log"},createDom("div",{className:"jasmine-debug-log-header"},"Debug logs"),createDom("table",{},createDom("thead",{},createDom("tr",{},createDom("th",{},"Time (ms)"),createDom("th",{},"Message"))),tbody))}function summaryList(resultsTree,domParent){var specListNode;for(var i=0;i<resultsTree.children.length;i++){var resultNode=resultsTree.children[i];if(filterSpecs&&!hasActiveSpec(resultNode)){continue}if(resultNode.type==="suite"){var suiteListNode=createDom("ul",{className:"jasmine-suite",id:"suite-"+resultNode.result.id},createDom("li",{className:"jasmine-suite-detail jasmine-"+resultNode.result.status},createDom("a",{href:specHref(resultNode.result)},resultNode.result.description)));summaryList(resultNode,suiteListNode);domParent.appendChild(suiteListNode)}if(resultNode.type==="spec"){if(domParent.getAttribute("class")!=="jasmine-specs"){specListNode=createDom("ul",{className:"jasmine-specs"});domParent.appendChild(specListNode)}var specDescription=resultNode.result.description;if(noExpectations(resultNode.result)){specDescription="SPEC HAS NO EXPECTATIONS "+specDescription}if(resultNode.result.status==="pending"){if(resultNode.result.pendingReason!==""){specDescription+=" PENDING WITH MESSAGE: "+resultNode.result.pendingReason}else{specDescription+=" PENDING"}}specListNode.appendChild(createDom("li",{className:"jasmine-"+resultNode.result.status,id:"spec-"+resultNode.result.id},createDom("a",{href:specHref(resultNode.result)},specDescription),createDom("span",{className:"jasmine-spec-duration"},"("+resultNode.result.duration+"ms)")))}}}function optionsMenu(config2){var optionsMenuDom=createDom("div",{className:"jasmine-run-options"},createDom("span",{className:"jasmine-trigger"},"Options"),createDom("div",{className:"jasmine-payload"},createDom("div",{className:"jasmine-stop-on-failure"},createDom("input",{className:"jasmine-fail-fast",id:"jasmine-fail-fast",type:"checkbox"}),createDom("label",{className:"jasmine-label","for":"jasmine-fail-fast"},"stop execution on spec failure")),createDom("div",{className:"jasmine-throw-failures"},createDom("input",{className:"jasmine-throw",id:"jasmine-throw-failures",type:"checkbox"}),createDom("label",{className:"jasmine-label","for":"jasmine-throw-failures"},"stop spec on expectation failure")),createDom("div",{className:"jasmine-random-order"},createDom("input",{className:"jasmine-random",id:"jasmine-random-order",type:"checkbox"}),createDom("label",{className:"jasmine-label","for":"jasmine-random-order"},"run tests in random order")),createDom("div",{className:"jasmine-hide-disabled"},createDom("input",{className:"jasmine-disabled",id:"jasmine-hide-disabled",type:"checkbox"}),createDom("label",{className:"jasmine-label","for":"jasmine-hide-disabled"},"hide disabled tests"))));var failFastCheckbox=optionsMenuDom.querySelector("#jasmine-fail-fast");failFastCheckbox.checked=config2.stopOnSpecFailure;failFastCheckbox.onclick=function(){navigateWithNewParam("stopOnSpecFailure",!config2.stopOnSpecFailure)};var throwCheckbox=optionsMenuDom.querySelector("#jasmine-throw-failures");throwCheckbox.checked=config2.stopSpecOnExpectationFailure;throwCheckbox.onclick=function(){navigateWithNewParam("stopSpecOnExpectationFailure",!config2.stopSpecOnExpectationFailure)};var randomCheckbox=optionsMenuDom.querySelector("#jasmine-random-order");randomCheckbox.checked=config2.random;randomCheckbox.onclick=function(){navigateWithNewParam("random",!config2.random)};var hideDisabled=optionsMenuDom.querySelector("#jasmine-hide-disabled");hideDisabled.checked=config2.hideDisabled;hideDisabled.onclick=function(){navigateWithNewParam("hideDisabled",!config2.hideDisabled)};var optionsTrigger=optionsMenuDom.querySelector(".jasmine-trigger"),optionsPayload=optionsMenuDom.querySelector(".jasmine-payload"),isOpen=/\bjasmine-open\b/;optionsTrigger.onclick=function(){if(isOpen.test(optionsPayload.className)){optionsPayload.className=optionsPayload.className.replace(isOpen,"")}else{optionsPayload.className+=" jasmine-open"}};return optionsMenuDom}function failureDescription(result,suite){var wrapper=createDom("div",{className:"jasmine-description"},createDom("a",{title:result.description,href:specHref(result)},result.description));var suiteLink;while(suite&&suite.parent){wrapper.insertBefore(createTextNode(" > "),wrapper.firstChild);suiteLink=createDom("a",{href:suiteHref(suite)},suite.result.description);wrapper.insertBefore(suiteLink,wrapper.firstChild);suite=suite.parent}return wrapper}function suiteHref(suite){var els=[];while(suite&&suite.parent){els.unshift(suite.result.description);suite=suite.parent}return(window.location.pathname||"")+addToExistingQueryString("spec",els.join(" "))}function addDeprecationWarnings(result,runnableType){if(result&&result.deprecationWarnings){for(var i=0;i<result.deprecationWarnings.length;i++){var warning=result.deprecationWarnings[i].message;deprecationWarnings.push({message:warning,stack:result.deprecationWarnings[i].stack,runnableName:result.fullName,runnableType:runnableType})}}}function createExpander(stackTrace){var expandLink=createDom("a",{href:"#"},"Show stack trace");var root=createDom("div",{className:"jasmine-expander"},expandLink,createDom("div",{className:"jasmine-expander-contents jasmine-stack-trace"},stackTrace));expandLink.addEventListener("click",function(e){e.preventDefault();if(root.classList.contains("jasmine-expanded")){root.classList.remove("jasmine-expanded");expandLink.textContent="Show stack trace"}else{root.classList.add("jasmine-expanded");expandLink.textContent="Hide stack trace"}});return root}function find(selector){return getContainer().querySelector(".jasmine_html-reporter "+selector)}function clearPrior(){var oldReporter=find("");if(oldReporter){getContainer().removeChild(oldReporter)}}function createDom(type,attrs,childrenArrayOrVarArgs){var el=createElement(type);var children;if(j$2.isArray_(childrenArrayOrVarArgs)){children=childrenArrayOrVarArgs}else{children=[];for(var i=2;i<arguments.length;i++){children.push(arguments[i])}}for(var _i13=0;_i13<children.length;_i13++){var child=children[_i13];if(typeof child==="string"){el.appendChild(createTextNode(child))}else{if(child){el.appendChild(child)}}}for(var attr in attrs){if(attr=="className"){el[attr]=attrs[attr]}else{el.setAttribute(attr,attrs[attr])}}return el}function pluralize(singular,count){var word=count==1?singular:singular+"s";return""+count+" "+word}function specHref(result){return(window.location.pathname||"")+addToExistingQueryString("spec",result.fullName)}function seedHref(seed){return(window.location.pathname||"")+addToExistingQueryString("seed",seed)}function defaultQueryString(key,value){return"?"+key+"="+value}function setMenuModeTo(mode){htmlReporterMain.setAttribute("class","jasmine_html-reporter "+mode)}function noExpectations(result){var allExpectations=result.failedExpectations.length+result.passedExpectations.length;return allExpectations===0&&(result.status==="passed"||result.status==="failed")}function hasActiveSpec(resultNode){if(resultNode.type=="spec"&&resultNode.result.status!="excluded"){return true}if(resultNode.type=="suite"){for(var i=0,j=resultNode.children.length;i<j;i++){if(hasActiveSpec(resultNode.children[i])){return true}}}}}return HtmlReporter};jasmineRequire.HtmlSpecFilter=function(){function HtmlSpecFilter(options){var filterString=options&&options.filterString()&&options.filterString().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var filterPattern=new RegExp(filterString);this.matches=function(specName){return filterPattern.test(specName)}}return HtmlSpecFilter};jasmineRequire.ResultsNode=function(){function ResultsNode(result,type,parent){this.result=result;this.type=type;this.parent=parent;this.children=[];this.addChild=function(result2,type2){this.children.push(new ResultsNode(result2,type2,this))};this.last=function(){return this.children[this.children.length-1]};this.updateResult=function(result2){this.result=result2}}return ResultsNode};jasmineRequire.QueryString=function(){var _getWindowLocation,_QueryString_instances,queryStringToParamMap_fn;var QueryString=/*#__PURE__*/function(){"use strict";/**
|
|
673
|
+
var jasmineRequire=window.jasmineRequire||require_jasmine();jasmineRequire.html=function(j$){j$["private"].ResultsNode=jasmineRequire.ResultsNode();j$["private"].ResultsStateBuilder=jasmineRequire.ResultsStateBuilder(j$);j$["private"].htmlReporterUtils=jasmineRequire.htmlReporterUtils(j$);j$["private"].AlertsView=jasmineRequire.AlertsView(j$);j$["private"].OverallStatusBar=jasmineRequire.OverallStatusBar(j$);j$["private"].Banner=jasmineRequire.Banner(j$);j$["private"].SymbolsView=jasmineRequire.SymbolsView(j$);j$["private"].SummaryTreeView=jasmineRequire.SummaryTreeView(j$);j$["private"].FailuresView=jasmineRequire.FailuresView(j$);j$["private"].PerformanceView=jasmineRequire.PerformanceView(j$);j$["private"].TabBar=jasmineRequire.TabBar(j$);j$.HtmlReporter=jasmineRequire.HtmlReporter(j$);j$.HtmlReporterV2Urls=jasmineRequire.HtmlReporterV2Urls(j$);j$.HtmlReporterV2=jasmineRequire.HtmlReporterV2(j$);j$.QueryString=jasmineRequire.QueryString();j$.HtmlSpecFilter=jasmineRequire.HtmlSpecFilter(j$);j$["private"].HtmlSpecFilterV2=jasmineRequire.HtmlSpecFilterV2()};jasmineRequire.HtmlReporter=function(j$){"use strict";var _env,_getContainer,_navigateWithNewParam,_urlBuilder,_filterSpecs,_stateBuilder,_config,_htmlReporterMain,_alerts,_symbols,_banner,_failures,_HtmlReporter_instances,addFailureToggle_fn,find_fn,clearPrior_fn,setMenuModeTo_fn,_addToExistingQueryString;var _j$$private$htmlRepor=j$["private"].htmlReporterUtils,createDom=_j$$private$htmlRepor.createDom,noExpectations=_j$$private$htmlRepor.noExpectations;var HtmlReporter=/*#__PURE__*/function(){function HtmlReporter(options){_classCallCheck(this,HtmlReporter);__privateAdd(this,_HtmlReporter_instances);__privateAdd(this,_env);__privateAdd(this,_getContainer);__privateAdd(this,_navigateWithNewParam);__privateAdd(this,_urlBuilder);__privateAdd(this,_filterSpecs);__privateAdd(this,_stateBuilder);__privateAdd(this,_config);__privateAdd(this,_htmlReporterMain);// Sub-views
|
|
674
|
+
__privateAdd(this,_alerts);__privateAdd(this,_symbols);__privateAdd(this,_banner);__privateAdd(this,_failures);__privateSet(this,_env,options.env);__privateSet(this,_getContainer,options.getContainer);__privateSet(this,_navigateWithNewParam,options.navigateWithNewParam||function(){});__privateSet(this,_urlBuilder,new UrlBuilder(options.addToExistingQueryString||defaultQueryString));__privateSet(this,_filterSpecs,options.filterSpecs)}/**
|
|
675
|
+
* Initializes the reporter. Should be called before {@link Env#execute}.
|
|
676
|
+
* @function
|
|
677
|
+
* @name HtmlReporter#initialize
|
|
678
|
+
*/return _createClass(HtmlReporter,[{key:"initialize",value:function initialize(){__privateGet(this,_env).deprecated("HtmlReporter and HtmlSpecFilter are deprecated. Use HtmlReporterV2 instead.");__privateMethod(this,_HtmlReporter_instances,clearPrior_fn).call(this);__privateSet(this,_config,__privateGet(this,_env)?__privateGet(this,_env).configuration():{});__privateSet(this,_stateBuilder,new j$["private"].ResultsStateBuilder);__privateSet(this,_alerts,new j$["private"].AlertsView(__privateGet(this,_urlBuilder)));__privateSet(this,_symbols,new j$["private"].SymbolsView);__privateSet(this,_banner,new j$["private"].Banner(__privateGet(this,_navigateWithNewParam)));__privateSet(this,_failures,new j$["private"].FailuresView(__privateGet(this,_urlBuilder)));__privateSet(this,_htmlReporterMain,createDom("div",{className:"jasmine_html-reporter"},__privateGet(this,_banner).rootEl,__privateGet(this,_symbols).rootEl,__privateGet(this,_alerts).rootEl,__privateGet(this,_failures).rootEl));__privateGet(this,_getContainer).call(this).appendChild(__privateGet(this,_htmlReporterMain))}},{key:"jasmineStarted",value:function jasmineStarted(options){__privateGet(this,_stateBuilder).jasmineStarted(options)}},{key:"suiteStarted",value:function suiteStarted(result){__privateGet(this,_stateBuilder).suiteStarted(result)}},{key:"suiteDone",value:function suiteDone(result){__privateGet(this,_stateBuilder).suiteDone(result);if(result.status==="failed"){__privateGet(this,_failures).append(result,__privateGet(this,_stateBuilder).currentParent)}}},{key:"specStarted",value:function specStarted(){}},{key:"specDone",value:function specDone(result){__privateGet(this,_stateBuilder).specDone(result);__privateGet(this,_symbols).append(result,__privateGet(this,_config));if(noExpectations(result)){var noSpecMsg="Spec '"+result.fullName+"' has no expectations.";if(result.status==="failed"){console.error(noSpecMsg)}else{console.warn(noSpecMsg)}}if(result.status==="failed"){__privateGet(this,_failures).append(result,__privateGet(this,_stateBuilder).currentParent)}}},{key:"jasmineDone",value:function jasmineDone(doneResult){__privateGet(this,_stateBuilder).jasmineDone(doneResult);__privateGet(this,_banner).showOptionsMenu(__privateGet(this,_config));if(__privateGet(this,_stateBuilder).specsExecuted<__privateGet(this,_stateBuilder).totalSpecsDefined){__privateGet(this,_alerts).addSkipped(__privateGet(this,_stateBuilder).specsExecuted,__privateGet(this,_stateBuilder).totalSpecsDefined)}var statusBar=new j$["private"].OverallStatusBar(__privateGet(this,_urlBuilder));statusBar.showDone(doneResult,__privateGet(this,_stateBuilder));__privateGet(this,_alerts).addBar(statusBar.rootEl);if(doneResult.failedExpectations){var _iterator33=_createForOfIteratorHelper(doneResult.failedExpectations),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var f=_step33.value;__privateGet(this,_alerts).addGlobalFailure(f)}}catch(err){_iterator33.e(err)}finally{_iterator33.f()}}var _iterator34=_createForOfIteratorHelper(__privateGet(this,_stateBuilder).deprecationWarnings),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var dw=_step34.value;__privateGet(this,_alerts).addDeprecationWarning(dw)}}catch(err){_iterator34.e(err)}finally{_iterator34.f()}var results=__privateMethod(this,_HtmlReporter_instances,find_fn).call(this,".jasmine-results");var summary=new j$["private"].SummaryTreeView(__privateGet(this,_urlBuilder),__privateGet(this,_filterSpecs));summary.addResults(__privateGet(this,_stateBuilder).topResults);results.appendChild(summary.rootEl);if(__privateGet(this,_stateBuilder).anyNonTopSuiteFailures){__privateMethod(this,_HtmlReporter_instances,addFailureToggle_fn).call(this);__privateMethod(this,_HtmlReporter_instances,setMenuModeTo_fn).call(this,"jasmine-failure-list");__privateGet(this,_failures).show()}}}])}();_env=new WeakMap;_getContainer=new WeakMap;_navigateWithNewParam=new WeakMap;_urlBuilder=new WeakMap;_filterSpecs=new WeakMap;_stateBuilder=new WeakMap;_config=new WeakMap;_htmlReporterMain=new WeakMap;_alerts=new WeakMap;_symbols=new WeakMap;_banner=new WeakMap;_failures=new WeakMap;_HtmlReporter_instances=new WeakSet;addFailureToggle_fn=function addFailureToggle_fn(){var _this19=this;var onClickFailures=function onClickFailures(){return __privateMethod(_this19,_HtmlReporter_instances,setMenuModeTo_fn).call(_this19,"jasmine-failure-list")};var onClickSpecList=function onClickSpecList(){return __privateMethod(_this19,_HtmlReporter_instances,setMenuModeTo_fn).call(_this19,"jasmine-spec-list")};var failuresLink=createDom("a",{className:"jasmine-failures-menu",href:"#"},"Failures");var specListLink=createDom("a",{className:"jasmine-spec-list-menu",href:"#"},"Spec List");failuresLink.onclick=function(){onClickFailures();return false};specListLink.onclick=function(){onClickSpecList();return false};__privateGet(this,_alerts).addBar(createDom("span",{className:"jasmine-menu jasmine-bar jasmine-spec-list"},[createDom("span",{},"Spec List | "),failuresLink]));__privateGet(this,_alerts).addBar(createDom("span",{className:"jasmine-menu jasmine-bar jasmine-failure-list"},[specListLink,createDom("span",{}," | Failures ")]))};find_fn=function find_fn(selector){return __privateGet(this,_getContainer).call(this).querySelector(".jasmine_html-reporter "+selector)};clearPrior_fn=function clearPrior_fn(){var oldReporter=__privateMethod(this,_HtmlReporter_instances,find_fn).call(this,"");if(oldReporter){__privateGet(this,_getContainer).call(this).removeChild(oldReporter)}};setMenuModeTo_fn=function setMenuModeTo_fn(mode){__privateGet(this,_htmlReporterMain).setAttribute("class","jasmine_html-reporter "+mode)};var UrlBuilder=/*#__PURE__*/function(){function UrlBuilder(addToExistingQueryString){_classCallCheck(this,UrlBuilder);__privateAdd(this,_addToExistingQueryString);__privateSet(this,_addToExistingQueryString,function(k,v){return(window.location.pathname||"")+addToExistingQueryString(k,v)})}return _createClass(UrlBuilder,[{key:"suiteHref",value:function suiteHref(suite){var els=[];while(suite&&suite.parent){els.unshift(suite.result.description);suite=suite.parent}return __privateGet(this,_addToExistingQueryString).call(this,"spec",els.join(" "))}},{key:"specHref",value:function specHref(result){return __privateGet(this,_addToExistingQueryString).call(this,"spec",result.fullName)}},{key:"runAllHref",value:function runAllHref(){return __privateGet(this,_addToExistingQueryString).call(this,"spec","")}},{key:"seedHref",value:function seedHref(seed){return __privateGet(this,_addToExistingQueryString).call(this,"seed",seed)}}])}();_addToExistingQueryString=new WeakMap;function defaultQueryString(key,value){return"?"+key+"="+value}return HtmlReporter};jasmineRequire.HtmlSpecFilter=function(j$){"use strict";function HtmlSpecFilter(options){var _a;var env=(_a=options==null?void 0:options.env)!=null?_a:j$.getEnv();env.deprecated("HtmlReporter and HtmlSpecFilter are deprecated. Use HtmlReporterV2 instead.");var filterString=options&&options.filterString&&options.filterString()&&options.filterString().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var filterPattern=new RegExp(filterString);this.matches=function(specName){return filterPattern.test(specName)}}return HtmlSpecFilter};jasmineRequire.ResultsNode=function(){"use strict";function ResultsNode(result,type,parent){this.result=result;this.type=type;this.parent=parent;this.children=[];this.addChild=function(result2,type2){this.children.push(new ResultsNode(result2,type2,this))};this.last=function(){return this.children[this.children.length-1]};this.updateResult=function(result2){this.result=result2}}return ResultsNode};jasmineRequire.QueryString=function(){"use strict";var _getWindowLocation,_QueryString_instances,queryStringToParamMap_fn;var QueryString=/*#__PURE__*/function(){/**
|
|
651
679
|
* @param options Object with a getWindowLocation property, which should be
|
|
652
680
|
* a function returning the current value of window.location.
|
|
653
681
|
*/function QueryString(options){_classCallCheck(this,QueryString);__privateAdd(this,_QueryString_instances);__privateAdd(this,_getWindowLocation);__privateSet(this,_getWindowLocation,options.getWindowLocation)}/**
|
|
@@ -664,7 +692,19 @@ var jasmineRequire=window.jasmineRequire||require_jasmine();jasmineRequire.html=
|
|
|
664
692
|
* Gets the value of the specified query parameter.
|
|
665
693
|
* @param {string} key
|
|
666
694
|
* @return {string}
|
|
667
|
-
*/},{key:"getParam",value:function getParam(key){return __privateMethod(this,_QueryString_instances,queryStringToParamMap_fn).call(this)[key]}}])}();_getWindowLocation=new WeakMap;_QueryString_instances=new WeakSet;queryStringToParamMap_fn=function queryStringToParamMap_fn(){var paramStr=__privateGet(this,_getWindowLocation).call(this).search.substring(1);var params2=[];var paramMap={};if(paramStr.length>0){params2=paramStr.split("&");for(var i=0;i<params2.length;i++){var p=params2[i].split("=");var value=decodeURIComponent(p[1]);if(value==="true"||value==="false"){value=JSON.parse(value)}paramMap[decodeURIComponent(p[0])]=value}}return paramMap};function toQueryString(paramMap){var qStrPairs=[];for(var prop in paramMap){qStrPairs.push(encodeURIComponent(prop)+"="+encodeURIComponent(paramMap[prop]))}return"?"+qStrPairs.join("&")}return QueryString};// ../../node_modules/jasmine-core/lib/jasmine-core/boot0.js
|
|
668
|
-
(function(){var
|
|
669
|
-
|
|
695
|
+
*/},{key:"getParam",value:function getParam(key){return __privateMethod(this,_QueryString_instances,queryStringToParamMap_fn).call(this)[key]}}])}();_getWindowLocation=new WeakMap;_QueryString_instances=new WeakSet;queryStringToParamMap_fn=function queryStringToParamMap_fn(){var paramStr=__privateGet(this,_getWindowLocation).call(this).search.substring(1);var params=[];var paramMap={};if(paramStr.length>0){params=paramStr.split("&");for(var i=0;i<params.length;i++){var p=params[i].split("=");var value=decodeURIComponent(p[1]);if(value==="true"||value==="false"){value=JSON.parse(value)}paramMap[decodeURIComponent(p[0])]=value}}return paramMap};function toQueryString(paramMap){var qStrPairs=[];for(var prop in paramMap){qStrPairs.push(encodeURIComponent(prop)+"="+encodeURIComponent(paramMap[prop]))}return"?"+qStrPairs.join("&")}return QueryString};jasmineRequire.AlertsView=function(j$){"use strict";var _urlBuilder,_AlertsView_instances,globalFailureMessage_fn,createAndAdd_fn,createExpander_fn;var createDom=j$["private"].htmlReporterUtils.createDom;var errorBarClassName="jasmine-bar jasmine-errored";var afterAllMessagePrefix="AfterAll ";var AlertsView=/*#__PURE__*/function(){function AlertsView(urlBuilder){_classCallCheck(this,AlertsView);__privateAdd(this,_AlertsView_instances);__privateAdd(this,_urlBuilder);__privateSet(this,_urlBuilder,urlBuilder);this.rootEl=createDom("div",{className:"jasmine-alert"})}return _createClass(AlertsView,[{key:"addSkipped",value:function addSkipped(numExecuted,numDefined){__privateMethod(this,_AlertsView_instances,createAndAdd_fn).call(this,"jasmine-bar jasmine-skipped",createDom("a",{href:__privateGet(this,_urlBuilder).runAllHref(),title:"Run all specs"},"Ran ".concat(numExecuted," of ").concat(numDefined," specs - run all")))}},{key:"addGlobalFailure",value:function addGlobalFailure(failure){__privateMethod(this,_AlertsView_instances,createAndAdd_fn).call(this,errorBarClassName,__privateMethod(this,_AlertsView_instances,globalFailureMessage_fn).call(this,failure))}},{key:"addDeprecationWarning",value:function addDeprecationWarning(dw){var children=[];var context;switch(dw.runnableType){case"spec":context="(in spec: "+dw.runnableName+")";break;case"suite":context="(in suite: "+dw.runnableName+")";break;default:context=""}var _iterator35=_createForOfIteratorHelper(dw.message.split("\n")),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var line=_step35.value;children.push(line);children.push(createDom("br"))}}catch(err){_iterator35.e(err)}finally{_iterator35.f()}children[0]="DEPRECATION: "+children[0];children.push(context);if(dw.stack){children.push(__privateMethod(this,_AlertsView_instances,createExpander_fn).call(this,dw.stack))}__privateMethod(this,_AlertsView_instances,createAndAdd_fn).call(this,"jasmine-bar jasmine-warning",children)}},{key:"addBar",value:function addBar(el){this.rootEl.appendChild(el)}}])}();_urlBuilder=new WeakMap;_AlertsView_instances=new WeakSet;globalFailureMessage_fn=function globalFailureMessage_fn(failure){if(failure.globalErrorType==="load"){var prefix="Error during loading: "+failure.message;if(failure.filename){return prefix+" in "+failure.filename+" line "+failure.lineno}else{return prefix}}else if(failure.globalErrorType==="afterAll"){return afterAllMessagePrefix+failure.message}else{return failure.message}};createAndAdd_fn=function createAndAdd_fn(className,children){this.rootEl.appendChild(createDom("span",{className:className},children))};createExpander_fn=function createExpander_fn(stackTrace){var expandLink=createDom("a",{href:"#"},"Show stack trace");var root=createDom("div",{className:"jasmine-expander"},expandLink,createDom("div",{className:"jasmine-expander-contents jasmine-stack-trace"},stackTrace));expandLink.addEventListener("click",function(e){e.preventDefault();if(root.classList.contains("jasmine-expanded")){root.classList.remove("jasmine-expanded");expandLink.textContent="Show stack trace"}else{root.classList.add("jasmine-expanded");expandLink.textContent="Hide stack trace"}});return root};return AlertsView};jasmineRequire.Banner=function(j$){"use strict";var _navigateWithNewParam,_omitHideDisabled,_Banner_instances,optionsMenu_fn;var createDom=j$["private"].htmlReporterUtils.createDom;var Banner=/*#__PURE__*/function(){function Banner(navigateWithNewParam,omitHideDisabled){_classCallCheck(this,Banner);__privateAdd(this,_Banner_instances);__privateAdd(this,_navigateWithNewParam);__privateAdd(this,_omitHideDisabled);__privateSet(this,_navigateWithNewParam,navigateWithNewParam);__privateSet(this,_omitHideDisabled,omitHideDisabled);this.rootEl=createDom("div",{className:"jasmine-banner"},createDom("a",{className:"jasmine-title",href:"http://jasmine.github.io/",target:"_blank"}),createDom("span",{className:"jasmine-version"},j$.version))}return _createClass(Banner,[{key:"showOptionsMenu",value:function showOptionsMenu(config){this.rootEl.appendChild(__privateMethod(this,_Banner_instances,optionsMenu_fn).call(this,config))}}])}();_navigateWithNewParam=new WeakMap;_omitHideDisabled=new WeakMap;_Banner_instances=new WeakSet;optionsMenu_fn=function optionsMenu_fn(config){var _this20=this;var items=[createDom("div",{className:"jasmine-stop-on-failure"},createDom("input",{className:"jasmine-fail-fast",id:"jasmine-fail-fast",type:"checkbox"}),createDom("label",{className:"jasmine-label","for":"jasmine-fail-fast"},"stop execution on spec failure")),createDom("div",{className:"jasmine-throw-failures"},createDom("input",{className:"jasmine-throw",id:"jasmine-throw-failures",type:"checkbox"}),createDom("label",{className:"jasmine-label","for":"jasmine-throw-failures"},"stop spec on expectation failure")),createDom("div",{className:"jasmine-random-order"},createDom("input",{className:"jasmine-random",id:"jasmine-random-order",type:"checkbox"}),createDom("label",{className:"jasmine-label","for":"jasmine-random-order"},"run tests in random order"))];if(!__privateGet(this,_omitHideDisabled)){items.push(createDom("div",{className:"jasmine-hide-disabled"},createDom("input",{className:"jasmine-disabled",id:"jasmine-hide-disabled",type:"checkbox"}),createDom("label",{className:"jasmine-label","for":"jasmine-hide-disabled"},"hide disabled tests")))}var optionsMenuDom=createDom("div",{className:"jasmine-run-options"},createDom("span",{className:"jasmine-trigger"},"Options"),createDom("div",{className:"jasmine-payload"},items));var failFastCheckbox=optionsMenuDom.querySelector("#jasmine-fail-fast");failFastCheckbox.checked=config.stopOnSpecFailure;failFastCheckbox.onclick=function(){__privateGet(_this20,_navigateWithNewParam).call(_this20,"stopOnSpecFailure",!config.stopOnSpecFailure)};var throwCheckbox=optionsMenuDom.querySelector("#jasmine-throw-failures");throwCheckbox.checked=config.stopSpecOnExpectationFailure;throwCheckbox.onclick=function(){__privateGet(_this20,_navigateWithNewParam).call(_this20,"stopSpecOnExpectationFailure",!config.stopSpecOnExpectationFailure)};var randomCheckbox=optionsMenuDom.querySelector("#jasmine-random-order");randomCheckbox.checked=config.random;randomCheckbox.onclick=function(){__privateGet(_this20,_navigateWithNewParam).call(_this20,"random",!config.random)};if(!__privateGet(this,_omitHideDisabled)){var hideDisabled=optionsMenuDom.querySelector("#jasmine-hide-disabled");hideDisabled.checked=config.hideDisabled;hideDisabled.onclick=function(){__privateGet(_this20,_navigateWithNewParam).call(_this20,"hideDisabled",!config.hideDisabled)}}var optionsTrigger=optionsMenuDom.querySelector(".jasmine-trigger");var optionsPayload=optionsMenuDom.querySelector(".jasmine-payload");var isOpen=/\bjasmine-open\b/;optionsTrigger.onclick=function(){if(isOpen.test(optionsPayload.className)){optionsPayload.className=optionsPayload.className.replace(isOpen,"")}else{optionsPayload.className+=" jasmine-open"}};return optionsMenuDom};return Banner};jasmineRequire.FailuresView=function(j$){"use strict";var _urlBuilder,_failureEls,_showing,_FailuresView_instances,makeFailureEl_fn,failureDescription_fn,debugLogTable_fn;var createDom=j$["private"].htmlReporterUtils.createDom;var FailuresView=/*#__PURE__*/function(){function FailuresView(urlBuilder){_classCallCheck(this,FailuresView);__privateAdd(this,_FailuresView_instances);__privateAdd(this,_urlBuilder);__privateAdd(this,_failureEls);__privateAdd(this,_showing);__privateSet(this,_urlBuilder,urlBuilder);__privateSet(this,_failureEls,[]);__privateSet(this,_showing,false);this.rootEl=createDom("div",{className:"jasmine-results"},createDom("div",{className:"jasmine-failures"}))}return _createClass(FailuresView,[{key:"append",value:function append(result,parent){var el=__privateMethod(this,_FailuresView_instances,makeFailureEl_fn).call(this,result,parent);if(__privateGet(this,_showing)){this.rootEl.querySelector(".jasmine-failures").appendChild(el)}else{__privateGet(this,_failureEls).push(el)}}},{key:"show",value:function show(){var failureNode=this.rootEl.querySelector(".jasmine-failures");var _iterator36=_createForOfIteratorHelper(__privateGet(this,_failureEls)),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var el=_step36.value;failureNode.appendChild(el)}}catch(err){_iterator36.e(err)}finally{_iterator36.f()}__privateSet(this,_showing,true)}}])}();_urlBuilder=new WeakMap;_failureEls=new WeakMap;_showing=new WeakMap;_FailuresView_instances=new WeakSet;makeFailureEl_fn=function makeFailureEl_fn(result,parent){var failure=createDom("div",{className:"jasmine-spec-detail jasmine-failed"},__privateMethod(this,_FailuresView_instances,failureDescription_fn).call(this,result,parent),createDom("div",{className:"jasmine-messages"}));var messages=failure.childNodes[1];for(var i=0;i<result.failedExpectations.length;i++){var expectation=result.failedExpectations[i];messages.appendChild(createDom("div",{className:"jasmine-result-message"},expectation.message));messages.appendChild(createDom("div",{className:"jasmine-stack-trace"},expectation.stack))}if(result.failedExpectations.length===0){messages.appendChild(createDom("div",{className:"jasmine-result-message"},"Spec has no expectations"))}if(result.debugLogs){messages.appendChild(__privateMethod(this,_FailuresView_instances,debugLogTable_fn).call(this,result.debugLogs))}return failure};failureDescription_fn=function failureDescription_fn(result,suite){var wrapper=createDom("div",{className:"jasmine-description"},createDom("a",{title:result.description,href:__privateGet(this,_urlBuilder).specHref(result)},result.description));var suiteLink;while(suite&&suite.parent){wrapper.insertBefore(document.createTextNode(" > "),wrapper.firstChild);suiteLink=createDom("a",{href:__privateGet(this,_urlBuilder).suiteHref(suite)},suite.result.description);wrapper.insertBefore(suiteLink,wrapper.firstChild);suite=suite.parent}return wrapper};debugLogTable_fn=function debugLogTable_fn(debugLogs){var tbody=createDom("tbody");var _iterator37=_createForOfIteratorHelper(debugLogs),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var entry=_step37.value;tbody.appendChild(createDom("tr",{},createDom("td",{},entry.timestamp.toString()),createDom("td",{className:"jasmine-debug-log-msg"},entry.message)))}}catch(err){_iterator37.e(err)}finally{_iterator37.f()}return createDom("div",{className:"jasmine-debug-log"},createDom("div",{className:"jasmine-debug-log-header"},"Debug logs"),createDom("table",{},createDom("thead",{},createDom("tr",{},createDom("th",{},"Time (ms)"),createDom("th",{},"Message"))),tbody))};return FailuresView};jasmineRequire.htmlReporterUtils=function(j$){"use strict";function createDom(type,attrs,childrenArrayOrVarArgs){var el=document.createElement(type);var children;if(Array.isArray(childrenArrayOrVarArgs)){children=childrenArrayOrVarArgs}else{children=[];for(var i=2;i<arguments.length;i++){children.push(arguments[i])}}for(var _i14=0;_i14<children.length;_i14++){var child=children[_i14];if(typeof child==="string"){el.appendChild(document.createTextNode(child))}else{if(child){el.appendChild(child)}}}for(var attr in attrs){if(attr==="className"){el[attr]=attrs[attr]}else{el.setAttribute(attr,attrs[attr])}}return el}function noExpectations(result){var allExpectations=result.failedExpectations.length+result.passedExpectations.length;return allExpectations===0&&(result.status==="passed"||result.status==="failed")}return{createDom:createDom,noExpectations:noExpectations}};jasmineRequire.HtmlReporterV2=function(j$){"use strict";var _container,_queryString,_urlBuilder,_filterSpecs,_stateBuilder,_config,_htmlReporterMain,_alerts,_statusBar,_tabBar,_progress,_banner,_failures,_HtmlReporterV2_instances,find_fn,setMenuModeTo_fn,_queryString2,_getSuiteById,_UrlBuilder_instances,suitePath_fn,specPathHref_fn,addToExistingQueryString_fn;var _j$$private$htmlRepor2=j$["private"].htmlReporterUtils,createDom=_j$$private$htmlRepor2.createDom,noExpectations=_j$$private$htmlRepor2.noExpectations;var specListTabId="jasmine-specListTab";var failuresTabId="jasmine-failuresTab";var perfTabId="jasmine-perfTab";var HtmlReporterV2=/*#__PURE__*/function(){function HtmlReporterV2(options){var _this21=this;_classCallCheck(this,HtmlReporterV2);__privateAdd(this,_HtmlReporterV2_instances);__privateAdd(this,_container);__privateAdd(this,_queryString);__privateAdd(this,_urlBuilder);__privateAdd(this,_filterSpecs);__privateAdd(this,_stateBuilder);__privateAdd(this,_config);__privateAdd(this,_htmlReporterMain);// Sub-views
|
|
696
|
+
__privateAdd(this,_alerts);__privateAdd(this,_statusBar);__privateAdd(this,_tabBar);__privateAdd(this,_progress);__privateAdd(this,_banner);__privateAdd(this,_failures);__privateSet(this,_container,options.container||document.body);__privateSet(this,_queryString,options.queryString||new j$.QueryString({getWindowLocation:function getWindowLocation(){return window.location}}));__privateSet(this,_urlBuilder,new UrlBuilder({queryString:__privateGet(this,_queryString),getSuiteById:function getSuiteById(id){return __privateGet(_this21,_stateBuilder).suitesById[id]}}));__privateSet(this,_filterSpecs,options.urls.filteringSpecs());__privateSet(this,_config,options.env?options.env.configuration():{});__privateSet(this,_stateBuilder,new j$["private"].ResultsStateBuilder);__privateSet(this,_alerts,new j$["private"].AlertsView(__privateGet(this,_urlBuilder)));__privateSet(this,_statusBar,new j$["private"].OverallStatusBar(__privateGet(this,_urlBuilder)));__privateGet(this,_statusBar).showRunning();__privateGet(this,_alerts).addBar(__privateGet(this,_statusBar).rootEl);__privateSet(this,_tabBar,new j$["private"].TabBar([{id:specListTabId,label:"Spec List"},{id:failuresTabId,label:"Failures"},{id:perfTabId,label:"Performance"}],function(tabId){if(tabId===specListTabId){__privateMethod(_this21,_HtmlReporterV2_instances,setMenuModeTo_fn).call(_this21,"jasmine-spec-list")}else if(tabId===failuresTabId){__privateMethod(_this21,_HtmlReporterV2_instances,setMenuModeTo_fn).call(_this21,"jasmine-failure-list")}else{__privateMethod(_this21,_HtmlReporterV2_instances,setMenuModeTo_fn).call(_this21,"jasmine-performance")}}));__privateGet(this,_alerts).addBar(__privateGet(this,_tabBar).rootEl);__privateSet(this,_progress,new ProgressView);__privateSet(this,_banner,new j$["private"].Banner(__privateGet(this,_queryString).navigateWithNewParam.bind(__privateGet(this,_queryString)),true));__privateSet(this,_failures,new j$["private"].FailuresView(__privateGet(this,_urlBuilder)));__privateSet(this,_htmlReporterMain,createDom("div",{className:"jasmine_html-reporter"},__privateGet(this,_banner).rootEl,__privateGet(this,_progress).rootEl,__privateGet(this,_alerts).rootEl,__privateGet(this,_failures).rootEl));__privateGet(this,_container).appendChild(__privateGet(this,_htmlReporterMain));__privateGet(this,_failures).show()}return _createClass(HtmlReporterV2,[{key:"jasmineStarted",value:function jasmineStarted(options){__privateGet(this,_stateBuilder).jasmineStarted(options);__privateGet(this,_progress).start(options.totalSpecsDefined-options.numExcludedSpecs)}},{key:"suiteStarted",value:function suiteStarted(result){__privateGet(this,_stateBuilder).suiteStarted(result)}},{key:"suiteDone",value:function suiteDone(result){__privateGet(this,_stateBuilder).suiteDone(result);if(result.status==="failed"){__privateGet(this,_failures).append(result,__privateGet(this,_stateBuilder).currentParent);__privateGet(this,_statusBar).showFailing()}}},{key:"specDone",value:function specDone(result){__privateGet(this,_stateBuilder).specDone(result);__privateGet(this,_progress).specDone(result,__privateGet(this,_config));if(noExpectations(result)){var noSpecMsg="Spec '"+result.fullName+"' has no expectations.";if(result.status==="failed"){console.error(noSpecMsg)}else{console.warn(noSpecMsg)}}if(result.status==="failed"){__privateGet(this,_failures).append(result,__privateGet(this,_stateBuilder).currentParent);__privateGet(this,_statusBar).showFailing()}}},{key:"jasmineDone",value:function jasmineDone(doneResult){__privateGet(this,_stateBuilder).jasmineDone(doneResult);__privateGet(this,_progress).rootEl.style.visibility="hidden";__privateGet(this,_banner).showOptionsMenu(__privateGet(this,_config));if(__privateGet(this,_stateBuilder).specsExecuted<__privateGet(this,_stateBuilder).totalSpecsDefined){__privateGet(this,_alerts).addSkipped(__privateGet(this,_stateBuilder).specsExecuted,__privateGet(this,_stateBuilder).totalSpecsDefined)}__privateGet(this,_statusBar).showDone(doneResult,__privateGet(this,_stateBuilder));if(doneResult.failedExpectations){var _iterator38=_createForOfIteratorHelper(doneResult.failedExpectations),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var f=_step38.value;__privateGet(this,_alerts).addGlobalFailure(f)}}catch(err){_iterator38.e(err)}finally{_iterator38.f()}}var _iterator39=_createForOfIteratorHelper(__privateGet(this,_stateBuilder).deprecationWarnings),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var dw=_step39.value;__privateGet(this,_alerts).addDeprecationWarning(dw)}}catch(err){_iterator39.e(err)}finally{_iterator39.f()}var results=__privateMethod(this,_HtmlReporterV2_instances,find_fn).call(this,".jasmine-results");var summary=new j$["private"].SummaryTreeView(__privateGet(this,_urlBuilder),__privateGet(this,_filterSpecs));summary.addResults(__privateGet(this,_stateBuilder).topResults);results.appendChild(summary.rootEl);var perf=new j$["private"].PerformanceView;perf.addResults(__privateGet(this,_stateBuilder).topResults);results.appendChild(perf.rootEl);__privateGet(this,_tabBar).showTab(specListTabId);__privateGet(this,_tabBar).showTab(perfTabId);if(__privateGet(this,_stateBuilder).anyNonTopSuiteFailures){__privateGet(this,_tabBar).showTab(failuresTabId);__privateGet(this,_tabBar).selectTab(failuresTabId)}else{__privateGet(this,_tabBar).selectTab(specListTabId)}}}])}();_container=new WeakMap;_queryString=new WeakMap;_urlBuilder=new WeakMap;_filterSpecs=new WeakMap;_stateBuilder=new WeakMap;_config=new WeakMap;_htmlReporterMain=new WeakMap;_alerts=new WeakMap;_statusBar=new WeakMap;_tabBar=new WeakMap;_progress=new WeakMap;_banner=new WeakMap;_failures=new WeakMap;_HtmlReporterV2_instances=new WeakSet;find_fn=function find_fn(selector){return __privateGet(this,_container).querySelector(".jasmine_html-reporter "+selector)};setMenuModeTo_fn=function setMenuModeTo_fn(mode){__privateGet(this,_htmlReporterMain).setAttribute("class","jasmine_html-reporter "+mode)};var ProgressView=/*#__PURE__*/function(){function ProgressView(){_classCallCheck(this,ProgressView);this.rootEl=createDom("progress",{value:0})}return _createClass(ProgressView,[{key:"start",value:function start(totalSpecsDefined){this.rootEl.max=totalSpecsDefined}},{key:"specDone",value:function specDone(result){if(result.status!=="excluded"){this.rootEl.value=this.rootEl.value+1}if(result.status==="failed"){this.rootEl.classList.add("failed")}}}])}();var UrlBuilder=/*#__PURE__*/function(){function UrlBuilder(options){_classCallCheck(this,UrlBuilder);__privateAdd(this,_UrlBuilder_instances);__privateAdd(this,_queryString2);__privateAdd(this,_getSuiteById);__privateSet(this,_queryString2,options.queryString);__privateSet(this,_getSuiteById,options.getSuiteById)}return _createClass(UrlBuilder,[{key:"suiteHref",value:function suiteHref(suite){var path=__privateMethod(this,_UrlBuilder_instances,suitePath_fn).call(this,suite);return __privateMethod(this,_UrlBuilder_instances,specPathHref_fn).call(this,path)}},{key:"specHref",value:function specHref(specResult){var suite=__privateGet(this,_getSuiteById).call(this,specResult.parentSuiteId);var path=__privateMethod(this,_UrlBuilder_instances,suitePath_fn).call(this,suite);path.push(specResult.description);return __privateMethod(this,_UrlBuilder_instances,specPathHref_fn).call(this,path)}},{key:"runAllHref",value:function runAllHref(){return __privateMethod(this,_UrlBuilder_instances,addToExistingQueryString_fn).call(this,"path","")}},{key:"seedHref",value:function seedHref(seed){return __privateMethod(this,_UrlBuilder_instances,addToExistingQueryString_fn).call(this,"seed",seed)}}])}();_queryString2=new WeakMap;_getSuiteById=new WeakMap;_UrlBuilder_instances=new WeakSet;suitePath_fn=function suitePath_fn(suite){var path=[];while(suite&&suite.parent){path.unshift(suite.result.description);suite=suite.parent}return path};specPathHref_fn=function specPathHref_fn(specPath){return __privateMethod(this,_UrlBuilder_instances,addToExistingQueryString_fn).call(this,"path",JSON.stringify(specPath))};addToExistingQueryString_fn=function addToExistingQueryString_fn(k,v){return(window.location.pathname||"")+__privateGet(this,_queryString2).fullStringWithNewParam(k,v)};return HtmlReporterV2};jasmineRequire.HtmlReporterV2Urls=function(j$){"use strict";var HtmlReporterV2Urls=/*#__PURE__*/function(){function HtmlReporterV2Urls(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,HtmlReporterV2Urls);this.queryString=options.queryString||new jasmine.QueryString({getWindowLocation:function getWindowLocation(){return window.location}})}/**
|
|
697
|
+
* Creates a {@link Configuration} from the current page's URL. Supported
|
|
698
|
+
* query string parameters include all those set by {@link HtmlReporterV2}
|
|
699
|
+
* as well as spec=partialPath, which filters out specs whose paths don't
|
|
700
|
+
* contain partialPath.
|
|
701
|
+
* @returns {Configuration}
|
|
702
|
+
* @example
|
|
703
|
+
* const urls = new jasmine.HtmlReporterV2Urls();
|
|
704
|
+
* env.configure(urls.configFromCurrentUrl());
|
|
705
|
+
*/return _createClass(HtmlReporterV2Urls,[{key:"configFromCurrentUrl",value:function configFromCurrentUrl(){var _this22=this;var config={stopOnSpecFailure:this.queryString.getParam("stopOnSpecFailure"),stopSpecOnExpectationFailure:this.queryString.getParam("stopSpecOnExpectationFailure")};var random=this.queryString.getParam("random");if(random!==void 0&&random!==""){config.random=random}var seed=this.queryString.getParam("seed");if(seed){config.seed=seed}var specFilter=new j$["private"].HtmlSpecFilterV2({filterParams:function filterParams(){return{path:_this22.queryString.getParam("path"),spec:_this22.queryString.getParam("spec")}}});config.specFilter=function(spec){return specFilter.matches(spec)};return config}},{key:"filteringSpecs",value:function filteringSpecs(){return!!this.queryString.getParam("path")}}])}();return HtmlReporterV2Urls};jasmineRequire.HtmlSpecFilterV2=function(){var _getFilterParams,_HtmlSpecFilterV2_instances,matchesPath_fn;var HtmlSpecFilterV2=/*#__PURE__*/function(){"use strict";function HtmlSpecFilterV2(options){_classCallCheck(this,HtmlSpecFilterV2);__privateAdd(this,_HtmlSpecFilterV2_instances);__privateAdd(this,_getFilterParams);__privateSet(this,_getFilterParams,options.filterParams)}return _createClass(HtmlSpecFilterV2,[{key:"matches",value:function matches(spec){var params=__privateGet(this,_getFilterParams).call(this);if(params.path){return __privateMethod(this,_HtmlSpecFilterV2_instances,matchesPath_fn).call(this,spec,JSON.parse(params.path))}else if(params.spec){return spec.getFullName().includes(params.spec)}return true}}])}();_getFilterParams=new WeakMap;_HtmlSpecFilterV2_instances=new WeakSet;matchesPath_fn=function matchesPath_fn(spec,path){var specPath=spec.getPath();if(path.length>specPath.length){return false}for(var i=0;i<path.length;i++){if(specPath[i]!==path[i]){return false}}return true};return HtmlSpecFilterV2};jasmineRequire.OverallStatusBar=function(j$){"use strict";var _urlBuilder,_OverallStatusBar_instances,addSeedBar_fn,addDuration_fn;var createDom=j$["private"].htmlReporterUtils.createDom;var staticClassNames="jasmine-overall-result jasmine-bar";var OverallStatusBar=/*#__PURE__*/function(){function OverallStatusBar(urlBuilder){_classCallCheck(this,OverallStatusBar);__privateAdd(this,_OverallStatusBar_instances);__privateAdd(this,_urlBuilder);__privateSet(this,_urlBuilder,urlBuilder);this.rootEl=createDom("span",{className:staticClassNames,"aria-live":"polite"})}return _createClass(OverallStatusBar,[{key:"showRunning",value:function showRunning(){this.rootEl.textContent="Running...";this.rootEl.classList.add("jasmine-in-progress")}},{key:"showFailing",value:function showFailing(){this.rootEl.textContent="Failing...";this.rootEl.classList.add("jasmine-failed")}},{key:"showDone",value:function showDone(doneResult,stateBuilder){this.rootEl.className=staticClassNames;var statusBarMessage="";var globalFailures=doneResult&&doneResult.failedExpectations||[];var failed=stateBuilder.failureCount+globalFailures.length>0;if(stateBuilder.totalSpecsDefined>0||failed){statusBarMessage+=pluralize("spec",stateBuilder.specsExecuted)+", "+pluralize("failure",stateBuilder.failureCount);if(stateBuilder.pendingSpecCount){statusBarMessage+=", "+pluralize("pending spec",stateBuilder.pendingSpecCount)}}if(doneResult.overallStatus==="passed"){this.rootEl.classList.add("jasmine-passed")}else if(doneResult.overallStatus==="incomplete"){this.rootEl.classList.add("jasmine-incomplete");statusBarMessage="Incomplete: "+doneResult.incompleteReason+", "+statusBarMessage}else{this.rootEl.classList.add("jasmine-failed")}this.rootEl.textContent=statusBarMessage;var order=doneResult.order;if(order&&order.random){__privateMethod(this,_OverallStatusBar_instances,addSeedBar_fn).call(this,order)}__privateMethod(this,_OverallStatusBar_instances,addDuration_fn).call(this,doneResult)}}])}();_urlBuilder=new WeakMap;_OverallStatusBar_instances=new WeakSet;addSeedBar_fn=function addSeedBar_fn(order){this.rootEl.appendChild(createDom("span",{className:"jasmine-seed-bar"},", randomized with seed ",createDom("a",{title:"randomized with seed "+order.seed,href:__privateGet(this,_urlBuilder).seedHref(order.seed)},order.seed)))};addDuration_fn=function addDuration_fn(doneResult){var secs=doneResult.totalTime/1e3;this.rootEl.appendChild(createDom("span",{className:"jasmine-duration"},"finished in ".concat(secs,"s")))};function pluralize(singular,count){var word=count===1?singular:singular+"s";return""+count+" "+word}return OverallStatusBar};jasmineRequire.PerformanceView=function(j$){var _summary,_tbody,_PerformanceView_instances,populateSumary_fn,populateTable_fn;var createDom=j$["private"].htmlReporterUtils.createDom;var MAX_SLOW_SPECS=20;var PerformanceView=/*#__PURE__*/function(){"use strict";function PerformanceView(){_classCallCheck(this,PerformanceView);__privateAdd(this,_PerformanceView_instances);__privateAdd(this,_summary);__privateAdd(this,_tbody);__privateSet(this,_tbody,document.createElement("tbody"));__privateSet(this,_summary,document.createElement("div"));this.rootEl=createDom("div",{className:"jasmine-performance-view"},createDom("h2",{},"Performance"),__privateGet(this,_summary),createDom("h3",{},"Slowest Specs"),createDom("table",{},createDom("thead",{},createDom("tr",{},createDom("th",{},"Duration"),createDom("th",{},"Spec Name"))),__privateGet(this,_tbody)))}return _createClass(PerformanceView,[{key:"addResults",value:function addResults(resultsTree){var specResults=[];getSpecResults(resultsTree,specResults);if(specResults.length===0){return}specResults.sort(function(a,b){if(a.duration<b.duration){return 1}else if(a.duration>b.duration){return-1}else{return 0}});__privateMethod(this,_PerformanceView_instances,populateSumary_fn).call(this,specResults);__privateMethod(this,_PerformanceView_instances,populateTable_fn).call(this,specResults)}}])}();_summary=new WeakMap;_tbody=new WeakMap;_PerformanceView_instances=new WeakSet;populateSumary_fn=function populateSumary_fn(specResults){var total=specResults.map(function(r){return r.duration}).reduce(function(a,b){return a+b},0);var mean=total/specResults.length;var median=specResults[Math.floor(specResults.length/2)].duration;__privateGet(this,_summary).appendChild(document.createTextNode("Mean spec run time: ".concat(mean.toFixed(0),"ms")));__privateGet(this,_summary).appendChild(document.createElement("br"));__privateGet(this,_summary).appendChild(document.createTextNode("Median spec run time: ".concat(median,"ms")))};populateTable_fn=function populateTable_fn(specResults){specResults=specResults.slice(0,MAX_SLOW_SPECS);var _iterator40=_createForOfIteratorHelper(specResults),_step40;try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var r=_step40.value;__privateGet(this,_tbody).appendChild(createDom("tr",{},createDom("td",{},"".concat(r.duration,"ms")),createDom("td",{},r.fullName)))}}catch(err){_iterator40.e(err)}finally{_iterator40.f()}};function getSpecResults(resultsTree,dest){var _iterator41=_createForOfIteratorHelper(resultsTree.children),_step41;try{for(_iterator41.s();!(_step41=_iterator41.n()).done;){var node=_step41.value;if(node.type==="suite"){getSpecResults(node,dest)}else if(node.result.status!=="excluded"){dest.push(node.result)}}}catch(err){_iterator41.e(err)}finally{_iterator41.f()}}return PerformanceView};jasmineRequire.ResultsStateBuilder=function(j$){"use strict";var _ResultsStateBuilder_instances,addDeprecationWarnings_fn;var ResultsStateBuilder=/*#__PURE__*/function(){function ResultsStateBuilder(){_classCallCheck(this,ResultsStateBuilder);__privateAdd(this,_ResultsStateBuilder_instances);this.topResults=new j$["private"].ResultsNode({},"",null);this.currentParent=this.topResults;this.suitesById={};this.totalSpecsDefined=0;this.specsExecuted=0;this.failureCount=0;this.anyNonTopSuiteFailures=false;this.pendingSpecCount=0;this.deprecationWarnings=[]}return _createClass(ResultsStateBuilder,[{key:"suiteStarted",value:function suiteStarted(result){this.currentParent.addChild(result,"suite");this.currentParent=this.currentParent.last();this.suitesById[result.id]=this.currentParent}},{key:"suiteDone",value:function suiteDone(result){this.currentParent.updateResult(result);__privateMethod(this,_ResultsStateBuilder_instances,addDeprecationWarnings_fn).call(this,result,"suite");if(this.currentParent!==this.topResults){this.currentParent=this.currentParent.parent}if(result.status==="failed"){this.failureCount++;this.anyNonTopSuiteFailures=true}}},{key:"specDone",value:function specDone(result){this.currentParent.addChild(result,"spec");__privateMethod(this,_ResultsStateBuilder_instances,addDeprecationWarnings_fn).call(this,result,"spec");if(result.status!=="excluded"){this.specsExecuted++}if(result.status==="failed"){this.failureCount++;this.anyNonTopSuiteFailures=true}if(result.status=="pending"){this.pendingSpecCount++}}},{key:"jasmineStarted",value:function jasmineStarted(result){this.totalSpecsDefined=result.totalSpecsDefined}},{key:"jasmineDone",value:function jasmineDone(result){if(result.failedExpectations){this.failureCount+=result.failedExpectations.length}__privateMethod(this,_ResultsStateBuilder_instances,addDeprecationWarnings_fn).call(this,result)}}])}();_ResultsStateBuilder_instances=new WeakSet;addDeprecationWarnings_fn=function addDeprecationWarnings_fn(result,runnableType){if(result.deprecationWarnings){var _iterator42=_createForOfIteratorHelper(result.deprecationWarnings),_step42;try{for(_iterator42.s();!(_step42=_iterator42.n()).done;){var dw=_step42.value;this.deprecationWarnings.push({message:dw.message,stack:dw.stack,runnableName:result.fullName,runnableType:runnableType})}}catch(err){_iterator42.e(err)}finally{_iterator42.f()}}};return ResultsStateBuilder};jasmineRequire.SummaryTreeView=function(j$){"use strict";var _urlBuilder,_filterSpecs,_SummaryTreeView_instances,_addResults_fn;var _j$$private$htmlRepor3=j$["private"].htmlReporterUtils,createDom=_j$$private$htmlRepor3.createDom,noExpectations=_j$$private$htmlRepor3.noExpectations;var SummaryTreeView=/*#__PURE__*/function(){function SummaryTreeView(urlBuilder,filterSpecs){_classCallCheck(this,SummaryTreeView);__privateAdd(this,_SummaryTreeView_instances);__privateAdd(this,_urlBuilder);__privateAdd(this,_filterSpecs);__privateSet(this,_urlBuilder,urlBuilder);__privateSet(this,_filterSpecs,filterSpecs);this.rootEl=createDom("div",{className:"jasmine-summary"})}return _createClass(SummaryTreeView,[{key:"addResults",value:function addResults(resultsTree){__privateMethod(this,_SummaryTreeView_instances,_addResults_fn).call(this,resultsTree,this.rootEl)}}])}();_urlBuilder=new WeakMap;_filterSpecs=new WeakMap;_SummaryTreeView_instances=new WeakSet;_addResults_fn=function addResults_fn(resultsTree,domParent){var specListNode;for(var i=0;i<resultsTree.children.length;i++){var resultNode=resultsTree.children[i];if(__privateGet(this,_filterSpecs)&&!hasActiveSpec(resultNode)){continue}if(resultNode.type==="suite"){var suiteListNode=createDom("ul",{className:"jasmine-suite",id:"suite-"+resultNode.result.id},createDom("li",{className:"jasmine-suite-detail jasmine-"+resultNode.result.status},createDom("a",{href:__privateGet(this,_urlBuilder).specHref(resultNode.result)},resultNode.result.description)));__privateMethod(this,_SummaryTreeView_instances,_addResults_fn).call(this,resultNode,suiteListNode);domParent.appendChild(suiteListNode)}if(resultNode.type==="spec"){if(domParent.getAttribute("class")!=="jasmine-specs"){specListNode=createDom("ul",{className:"jasmine-specs"});domParent.appendChild(specListNode)}var specDescription=resultNode.result.description;if(noExpectations(resultNode.result)){specDescription="SPEC HAS NO EXPECTATIONS "+specDescription}if(resultNode.result.status==="pending"){if(resultNode.result.pendingReason!==""){specDescription+=" PENDING WITH MESSAGE: "+resultNode.result.pendingReason}else{specDescription+=" PENDING"}}specListNode.appendChild(createDom("li",{className:"jasmine-"+resultNode.result.status,id:"spec-"+resultNode.result.id},createDom("a",{href:__privateGet(this,_urlBuilder).specHref(resultNode.result)},specDescription),createDom("span",{className:"jasmine-spec-duration"},"("+resultNode.result.duration+"ms)")))}}};function hasActiveSpec(resultNode){if(resultNode.type==="spec"&&resultNode.result.status!=="excluded"){return true}if(resultNode.type==="suite"){for(var i=0,j=resultNode.children.length;i<j;i++){if(hasActiveSpec(resultNode.children[i])){return true}}}}return SummaryTreeView};jasmineRequire.SymbolsView=function(j$){"use strict";var _SymbolsView_instances,className_fn;var _j$$private$htmlRepor4=j$["private"].htmlReporterUtils,createDom=_j$$private$htmlRepor4.createDom,noExpectations=_j$$private$htmlRepor4.noExpectations;var SymbolsView=/*#__PURE__*/function(){function SymbolsView(){_classCallCheck(this,SymbolsView);__privateAdd(this,_SymbolsView_instances);this.rootEl=createDom("ul",{className:"jasmine-symbol-summary"})}return _createClass(SymbolsView,[{key:"append",value:function append(result,config){this.rootEl.appendChild(createDom("li",{className:__privateMethod(this,_SymbolsView_instances,className_fn).call(this,result,config),id:"spec_"+result.id,title:result.fullName}))}}])}();_SymbolsView_instances=new WeakSet;className_fn=function className_fn(result,config){if(noExpectations(result)&&result.status==="passed"){return"jasmine-empty"}else if(result.status==="excluded"){if(config.hideDisabled){return"jasmine-excluded-no-display"}else{return"jasmine-excluded"}}else{return"jasmine-"+result.status}};return SymbolsView};jasmineRequire.TabBar=function(j$){var _tabs,_onSelectTab,_spec,_onClick,_Tab_instances,createLink_fn;var createDom=j$["private"].htmlReporterUtils.createDom;var TabBar=/*#__PURE__*/function(){"use strict";// tabSpecs should be an array of {id, label}.
|
|
706
|
+
// All tabs are initially not visible and not selected.
|
|
707
|
+
function TabBar(tabSpecs,onSelectTab){var _this23=this;_classCallCheck(this,TabBar);__privateAdd(this,_tabs);__privateAdd(this,_onSelectTab);__privateSet(this,_onSelectTab,onSelectTab);__privateSet(this,_tabs,[]);__privateSet(this,_tabs,tabSpecs.map(function(ts){return new Tab(ts,function(){return _this23.selectTab(ts.id)})}));this.rootEl=createDom("span",{className:"jasmine-menu jasmine-bar"},__privateGet(this,_tabs).map(function(t){return t.rootEl}))}return _createClass(TabBar,[{key:"showTab",value:function showTab(id){var _iterator43=_createForOfIteratorHelper(__privateGet(this,_tabs)),_step43;try{for(_iterator43.s();!(_step43=_iterator43.n()).done;){var tab=_step43.value;if(tab.rootEl.id===id){tab.setVisibility(true)}}}catch(err){_iterator43.e(err)}finally{_iterator43.f()}}},{key:"selectTab",value:function selectTab(id){var _iterator44=_createForOfIteratorHelper(__privateGet(this,_tabs)),_step44;try{for(_iterator44.s();!(_step44=_iterator44.n()).done;){var tab=_step44.value;tab.setSelected(tab.rootEl.id===id)}}catch(err){_iterator44.e(err)}finally{_iterator44.f()}__privateGet(this,_onSelectTab).call(this,id)}}])}();_tabs=new WeakMap;_onSelectTab=new WeakMap;var Tab=/*#__PURE__*/function(){"use strict";function Tab(spec,onClick){_classCallCheck(this,Tab);__privateAdd(this,_Tab_instances);__privateAdd(this,_spec);__privateAdd(this,_onClick);__privateSet(this,_spec,spec);__privateSet(this,_onClick,onClick);this.rootEl=createDom("span",{id:spec.id,className:"jasmine-tab jasmine-hidden"},__privateMethod(this,_Tab_instances,createLink_fn).call(this))}return _createClass(Tab,[{key:"setVisibility",value:function setVisibility(visible){this.rootEl.classList.toggle("jasmine-hidden",!visible)}},{key:"setSelected",value:function setSelected(selected){if(selected){this.rootEl.textContent=__privateGet(this,_spec).label}else{this.rootEl.textContent="";this.rootEl.appendChild(__privateMethod(this,_Tab_instances,createLink_fn).call(this))}}}])}();_spec=new WeakMap;_onClick=new WeakMap;_Tab_instances=new WeakSet;createLink_fn=function createLink_fn(){var _this24=this;var link=createDom("a",{href:"#"},__privateGet(this,_spec).label);link.addEventListener("click",function(e){e.preventDefault();__privateGet(_this24,_onClick).call(_this24)});return link};return TabBar};// ../../node_modules/jasmine-core/lib/jasmine-core/boot0.js
|
|
708
|
+
(function(){var jasmineRequire2=window.jasmineRequire||require_jasmine();var jasmine2=jasmineRequire2.core(jasmineRequire2);var global2=jasmine2.getGlobal();global2.jasmine=jasmine2;jasmineRequire2.html(jasmine2);var env=jasmine2.getEnv();var jasmineInterface=jasmineRequire2["interface"](jasmine2,env);for(var property in jasmineInterface){global2[property]=jasmineInterface[property]}})();// ../../node_modules/jasmine-core/lib/jasmine-core/boot1.js
|
|
709
|
+
(function(){var env=jasmine.getEnv();var urls=new jasmine.HtmlReporterV2Urls;env.configure(urls.configFromCurrentUrl());var currentWindowOnload=window.onload;window.onload=function(){if(currentWindowOnload){currentWindowOnload()}var htmlReporter=new jasmine.HtmlReporterV2({env:env,urls:urls});env.addReporter(htmlReporter);env.execute()}})();// ../vinyl-jasmine-wrapper/src/index.ts
|
|
670
710
|
jasmine.DEFAULT_TIMEOUT_INTERVAL=15e3;
|