@everyonesoftware/common 13.0.0 → 14.0.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/outputs/sources/ANSIStyles.d.ts +10 -0
- package/outputs/sources/ANSIStyles.d.ts.map +1 -0
- package/outputs/sources/ANSIStyles.js +23 -0
- package/outputs/sources/ANSIStyles.js.map +1 -0
- package/outputs/sources/CharacterTable.d.ts +11 -0
- package/outputs/sources/CharacterTable.d.ts.map +1 -0
- package/outputs/sources/CharacterTable.js +28 -0
- package/outputs/sources/CharacterTable.js.map +1 -0
- package/outputs/sources/Clock.d.ts +12 -0
- package/outputs/sources/Clock.d.ts.map +1 -0
- package/outputs/sources/Clock.js +10 -0
- package/outputs/sources/Clock.js.map +1 -0
- package/outputs/sources/FetchError.d.ts +7 -0
- package/outputs/sources/FetchError.d.ts.map +1 -0
- package/outputs/sources/FetchError.js +20 -0
- package/outputs/sources/FetchError.js.map +1 -0
- package/outputs/sources/HttpRequestHandler.d.ts +8 -0
- package/outputs/sources/HttpRequestHandler.d.ts.map +1 -0
- package/outputs/sources/HttpRequestHandler.js +2 -0
- package/outputs/sources/HttpRequestHandler.js.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts +21 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.js +110 -0
- package/outputs/sources/IndentedCharacterWriteStream.js.map +1 -0
- package/outputs/sources/Indexable.d.ts +51 -0
- package/outputs/sources/Indexable.d.ts.map +1 -0
- package/outputs/sources/Indexable.js +122 -0
- package/outputs/sources/Indexable.js.map +1 -0
- package/outputs/sources/MutableIndexable.d.ts +51 -0
- package/outputs/sources/MutableIndexable.d.ts.map +1 -0
- package/outputs/sources/MutableIndexable.js +96 -0
- package/outputs/sources/MutableIndexable.js.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts +25 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js +77 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js.map +1 -0
- package/outputs/sources/RealClock.d.ts +11 -0
- package/outputs/sources/RealClock.d.ts.map +1 -0
- package/outputs/sources/RealClock.js +15 -0
- package/outputs/sources/RealClock.js.map +1 -0
- package/outputs/sources/Token.d.ts +31 -0
- package/outputs/sources/Token.d.ts.map +1 -0
- package/outputs/sources/Token.js +80 -0
- package/outputs/sources/Token.js.map +1 -0
- package/outputs/sources/TokenType.d.ts +19 -0
- package/outputs/sources/TokenType.d.ts.map +1 -0
- package/outputs/sources/TokenType.js +27 -0
- package/outputs/sources/TokenType.js.map +1 -0
- package/outputs/sources/Tokenizer.d.ts +37 -0
- package/outputs/sources/Tokenizer.d.ts.map +1 -0
- package/outputs/sources/Tokenizer.js +163 -0
- package/outputs/sources/Tokenizer.js.map +1 -0
- package/outputs/sources/assertMessageParameters.d.ts +22 -0
- package/outputs/sources/assertMessageParameters.d.ts.map +1 -0
- package/outputs/sources/assertMessageParameters.js +2 -0
- package/outputs/sources/assertMessageParameters.js.map +1 -0
- package/outputs/sources/asyncIterator.d.ts +155 -0
- package/outputs/sources/asyncIterator.d.ts.map +1 -0
- package/outputs/sources/asyncIterator.js +303 -0
- package/outputs/sources/asyncIterator.js.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts +13 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js +34 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/asyncResult.d.ts +73 -0
- package/outputs/sources/asyncResult.d.ts.map +1 -0
- package/outputs/sources/asyncResult.js +33 -0
- package/outputs/sources/asyncResult.js.map +1 -0
- package/outputs/sources/basicDisposable.d.ts +21 -0
- package/outputs/sources/basicDisposable.d.ts.map +1 -0
- package/outputs/sources/basicDisposable.js +42 -0
- package/outputs/sources/basicDisposable.js.map +1 -0
- package/outputs/sources/byteList.d.ts +43 -0
- package/outputs/sources/byteList.d.ts.map +1 -0
- package/outputs/sources/byteList.js +128 -0
- package/outputs/sources/byteList.js.map +1 -0
- package/outputs/sources/byteListStream.d.ts +20 -0
- package/outputs/sources/byteListStream.d.ts.map +1 -0
- package/outputs/sources/byteListStream.js +84 -0
- package/outputs/sources/byteListStream.js.map +1 -0
- package/outputs/sources/byteReadStream.d.ts +23 -0
- package/outputs/sources/byteReadStream.d.ts.map +1 -0
- package/outputs/sources/byteReadStream.js +6 -0
- package/outputs/sources/byteReadStream.js.map +1 -0
- package/outputs/sources/byteWriteStream.d.ts +15 -0
- package/outputs/sources/byteWriteStream.d.ts.map +1 -0
- package/outputs/sources/byteWriteStream.js +6 -0
- package/outputs/sources/byteWriteStream.js.map +1 -0
- package/outputs/sources/bytes.d.ts +20 -0
- package/outputs/sources/bytes.d.ts.map +1 -0
- package/outputs/sources/bytes.js +22 -0
- package/outputs/sources/bytes.js.map +1 -0
- package/outputs/sources/characterList.d.ts +39 -0
- package/outputs/sources/characterList.d.ts.map +1 -0
- package/outputs/sources/characterList.js +122 -0
- package/outputs/sources/characterList.js.map +1 -0
- package/outputs/sources/characterListStream.d.ts +27 -0
- package/outputs/sources/characterListStream.d.ts.map +1 -0
- package/outputs/sources/characterListStream.js +103 -0
- package/outputs/sources/characterListStream.js.map +1 -0
- package/outputs/sources/characterReadStream.d.ts +25 -0
- package/outputs/sources/characterReadStream.d.ts.map +1 -0
- package/outputs/sources/characterReadStream.js +57 -0
- package/outputs/sources/characterReadStream.js.map +1 -0
- package/outputs/sources/characterReadStreamIterator.d.ts +31 -0
- package/outputs/sources/characterReadStreamIterator.d.ts.map +1 -0
- package/outputs/sources/characterReadStreamIterator.js +79 -0
- package/outputs/sources/characterReadStreamIterator.js.map +1 -0
- package/outputs/sources/characterWriteStream.d.ts +18 -0
- package/outputs/sources/characterWriteStream.d.ts.map +1 -0
- package/outputs/sources/characterWriteStream.js +27 -0
- package/outputs/sources/characterWriteStream.js.map +1 -0
- package/outputs/sources/commandLineParameter.d.ts +30 -0
- package/outputs/sources/commandLineParameter.d.ts.map +1 -0
- package/outputs/sources/commandLineParameter.js +73 -0
- package/outputs/sources/commandLineParameter.js.map +1 -0
- package/outputs/sources/commandLineParameters.d.ts +23 -0
- package/outputs/sources/commandLineParameters.d.ts.map +1 -0
- package/outputs/sources/commandLineParameters.js +82 -0
- package/outputs/sources/commandLineParameters.js.map +1 -0
- package/outputs/sources/comparable.d.ts +79 -0
- package/outputs/sources/comparable.d.ts.map +1 -0
- package/outputs/sources/comparable.js +106 -0
- package/outputs/sources/comparable.js.map +1 -0
- package/outputs/sources/comparer.d.ts +62 -0
- package/outputs/sources/comparer.d.ts.map +1 -0
- package/outputs/sources/comparer.js +102 -0
- package/outputs/sources/comparer.js.map +1 -0
- package/outputs/sources/comparison.d.ts +18 -0
- package/outputs/sources/comparison.d.ts.map +1 -0
- package/outputs/sources/comparison.js +19 -0
- package/outputs/sources/comparison.js.map +1 -0
- package/outputs/sources/concatenateIterable.d.ts +28 -0
- package/outputs/sources/concatenateIterable.d.ts.map +1 -0
- package/outputs/sources/concatenateIterable.js +74 -0
- package/outputs/sources/concatenateIterable.js.map +1 -0
- package/outputs/sources/concatenateIterator.d.ts +30 -0
- package/outputs/sources/concatenateIterator.d.ts.map +1 -0
- package/outputs/sources/concatenateIterator.js +104 -0
- package/outputs/sources/concatenateIterator.js.map +1 -0
- package/outputs/sources/condition.d.ts +248 -0
- package/outputs/sources/condition.d.ts.map +1 -0
- package/outputs/sources/condition.js +166 -0
- package/outputs/sources/condition.js.map +1 -0
- package/outputs/sources/currentProcess.d.ts +31 -0
- package/outputs/sources/currentProcess.d.ts.map +1 -0
- package/outputs/sources/currentProcess.js +106 -0
- package/outputs/sources/currentProcess.js.map +1 -0
- package/outputs/sources/dateTime.d.ts +44 -0
- package/outputs/sources/dateTime.d.ts.map +1 -0
- package/outputs/sources/dateTime.js +76 -0
- package/outputs/sources/dateTime.js.map +1 -0
- package/outputs/sources/depthFirstSearch.d.ts +9 -0
- package/outputs/sources/depthFirstSearch.d.ts.map +1 -0
- package/outputs/sources/depthFirstSearch.js +148 -0
- package/outputs/sources/depthFirstSearch.js.map +1 -0
- package/outputs/sources/disposable.d.ts +25 -0
- package/outputs/sources/disposable.d.ts.map +1 -0
- package/outputs/sources/disposable.js +16 -0
- package/outputs/sources/disposable.js.map +1 -0
- package/outputs/sources/emptyError.d.ts +7 -0
- package/outputs/sources/emptyError.d.ts.map +1 -0
- package/outputs/sources/emptyError.js +9 -0
- package/outputs/sources/emptyError.js.map +1 -0
- package/outputs/sources/english.d.ts +4 -0
- package/outputs/sources/english.d.ts.map +1 -0
- package/outputs/sources/english.js +33 -0
- package/outputs/sources/english.js.map +1 -0
- package/outputs/sources/equalFunctions.d.ts +18 -0
- package/outputs/sources/equalFunctions.d.ts.map +1 -0
- package/outputs/sources/equalFunctions.js +88 -0
- package/outputs/sources/equalFunctions.js.map +1 -0
- package/outputs/sources/fetchHttpClient.d.ts +16 -0
- package/outputs/sources/fetchHttpClient.d.ts.map +1 -0
- package/outputs/sources/fetchHttpClient.js +86 -0
- package/outputs/sources/fetchHttpClient.js.map +1 -0
- package/outputs/sources/fetchHttpResponse.d.ts +19 -0
- package/outputs/sources/fetchHttpResponse.d.ts.map +1 -0
- package/outputs/sources/fetchHttpResponse.js +72 -0
- package/outputs/sources/fetchHttpResponse.js.map +1 -0
- package/outputs/sources/flatMapIterable.d.ts +29 -0
- package/outputs/sources/flatMapIterable.d.ts.map +1 -0
- package/outputs/sources/flatMapIterable.js +61 -0
- package/outputs/sources/flatMapIterable.js.map +1 -0
- package/outputs/sources/flatMapIterator.d.ts +33 -0
- package/outputs/sources/flatMapIterator.d.ts.map +1 -0
- package/outputs/sources/flatMapIterator.js +95 -0
- package/outputs/sources/flatMapIterator.js.map +1 -0
- package/outputs/sources/generator.d.ts +55 -0
- package/outputs/sources/generator.d.ts.map +1 -0
- package/outputs/sources/generator.js +139 -0
- package/outputs/sources/generator.js.map +1 -0
- package/outputs/sources/httpClient.d.ts +21 -0
- package/outputs/sources/httpClient.d.ts.map +1 -0
- package/outputs/sources/httpClient.js +22 -0
- package/outputs/sources/httpClient.js.map +1 -0
- package/outputs/sources/httpHeader.d.ts +10 -0
- package/outputs/sources/httpHeader.d.ts.map +1 -0
- package/outputs/sources/httpHeader.js +25 -0
- package/outputs/sources/httpHeader.js.map +1 -0
- package/outputs/sources/httpHeaders.d.ts +68 -0
- package/outputs/sources/httpHeaders.d.ts.map +1 -0
- package/outputs/sources/httpHeaders.js +122 -0
- package/outputs/sources/httpHeaders.js.map +1 -0
- package/outputs/sources/httpIncomingRequest.d.ts +40 -0
- package/outputs/sources/httpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/httpIncomingRequest.js +6 -0
- package/outputs/sources/httpIncomingRequest.js.map +1 -0
- package/outputs/sources/httpIncomingResponse.d.ts +28 -0
- package/outputs/sources/httpIncomingResponse.d.ts.map +1 -0
- package/outputs/sources/httpIncomingResponse.js +6 -0
- package/outputs/sources/httpIncomingResponse.js.map +1 -0
- package/outputs/sources/httpMethod.d.ts +62 -0
- package/outputs/sources/httpMethod.d.ts.map +1 -0
- package/outputs/sources/httpMethod.js +136 -0
- package/outputs/sources/httpMethod.js.map +1 -0
- package/outputs/sources/httpOutgoingRequest.d.ts +50 -0
- package/outputs/sources/httpOutgoingRequest.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingRequest.js +84 -0
- package/outputs/sources/httpOutgoingRequest.js.map +1 -0
- package/outputs/sources/httpOutgoingResponse.d.ts +46 -0
- package/outputs/sources/httpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingResponse.js +6 -0
- package/outputs/sources/httpOutgoingResponse.js.map +1 -0
- package/outputs/sources/httpServer.d.ts +29 -0
- package/outputs/sources/httpServer.d.ts.map +1 -0
- package/outputs/sources/httpServer.js +3 -0
- package/outputs/sources/httpServer.js.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts +15 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js +52 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js.map +1 -0
- package/outputs/sources/index.d.ts +111 -0
- package/outputs/sources/index.d.ts.map +1 -0
- package/outputs/sources/index.js +111 -0
- package/outputs/sources/index.js.map +1 -0
- package/outputs/sources/iterable.d.ts +132 -0
- package/outputs/sources/iterable.d.ts.map +1 -0
- package/outputs/sources/iterable.js +251 -0
- package/outputs/sources/iterable.js.map +1 -0
- package/outputs/sources/iterator.d.ts +163 -0
- package/outputs/sources/iterator.d.ts.map +1 -0
- package/outputs/sources/iterator.js +332 -0
- package/outputs/sources/iterator.js.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts +13 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js +34 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascript.d.ts +51 -0
- package/outputs/sources/javascript.d.ts.map +1 -0
- package/outputs/sources/javascript.js +8 -0
- package/outputs/sources/javascript.js.map +1 -0
- package/outputs/sources/javascriptArrayList.d.ts +39 -0
- package/outputs/sources/javascriptArrayList.d.ts.map +1 -0
- package/outputs/sources/javascriptArrayList.js +104 -0
- package/outputs/sources/javascriptArrayList.js.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts +29 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js +77 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts +31 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js +83 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptMapMap.d.ts +37 -0
- package/outputs/sources/javascriptMapMap.d.ts.map +1 -0
- package/outputs/sources/javascriptMapMap.js +88 -0
- package/outputs/sources/javascriptMapMap.js.map +1 -0
- package/outputs/sources/javascriptSetSet.d.ts +33 -0
- package/outputs/sources/javascriptSetSet.d.ts.map +1 -0
- package/outputs/sources/javascriptSetSet.js +84 -0
- package/outputs/sources/javascriptSetSet.js.map +1 -0
- package/outputs/sources/list.d.ts +106 -0
- package/outputs/sources/list.d.ts.map +1 -0
- package/outputs/sources/list.js +211 -0
- package/outputs/sources/list.js.map +1 -0
- package/outputs/sources/listQueue.d.ts +16 -0
- package/outputs/sources/listQueue.d.ts.map +1 -0
- package/outputs/sources/listQueue.js +39 -0
- package/outputs/sources/listQueue.js.map +1 -0
- package/outputs/sources/listStack.d.ts +17 -0
- package/outputs/sources/listStack.d.ts.map +1 -0
- package/outputs/sources/listStack.js +42 -0
- package/outputs/sources/listStack.js.map +1 -0
- package/outputs/sources/luxonDateTime.d.ts +26 -0
- package/outputs/sources/luxonDateTime.d.ts.map +1 -0
- package/outputs/sources/luxonDateTime.js +70 -0
- package/outputs/sources/luxonDateTime.js.map +1 -0
- package/outputs/sources/map.d.ts +105 -0
- package/outputs/sources/map.d.ts.map +1 -0
- package/outputs/sources/map.js +185 -0
- package/outputs/sources/map.js.map +1 -0
- package/outputs/sources/mapAsyncIterator.d.ts +34 -0
- package/outputs/sources/mapAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/mapAsyncIterator.js +91 -0
- package/outputs/sources/mapAsyncIterator.js.map +1 -0
- package/outputs/sources/mapIterable.d.ts +31 -0
- package/outputs/sources/mapIterable.d.ts.map +1 -0
- package/outputs/sources/mapIterable.js +64 -0
- package/outputs/sources/mapIterable.js.map +1 -0
- package/outputs/sources/mapIterator.d.ts +35 -0
- package/outputs/sources/mapIterator.d.ts.map +1 -0
- package/outputs/sources/mapIterator.js +93 -0
- package/outputs/sources/mapIterator.js.map +1 -0
- package/outputs/sources/mutableCondition.d.ts +99 -0
- package/outputs/sources/mutableCondition.d.ts.map +1 -0
- package/outputs/sources/mutableCondition.js +334 -0
- package/outputs/sources/mutableCondition.js.map +1 -0
- package/outputs/sources/mutableHttpHeaders.d.ts +44 -0
- package/outputs/sources/mutableHttpHeaders.d.ts.map +1 -0
- package/outputs/sources/mutableHttpHeaders.js +125 -0
- package/outputs/sources/mutableHttpHeaders.js.map +1 -0
- package/outputs/sources/mutableMap.d.ts +125 -0
- package/outputs/sources/mutableMap.d.ts.map +1 -0
- package/outputs/sources/mutableMap.js +179 -0
- package/outputs/sources/mutableMap.js.map +1 -0
- package/outputs/sources/network.d.ts +16 -0
- package/outputs/sources/network.d.ts.map +1 -0
- package/outputs/sources/network.js +6 -0
- package/outputs/sources/network.js.map +1 -0
- package/outputs/sources/node.d.ts +11 -0
- package/outputs/sources/node.d.ts.map +1 -0
- package/outputs/sources/node.js +24 -0
- package/outputs/sources/node.js.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts +9 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js +28 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts +21 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js +88 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js.map +1 -0
- package/outputs/sources/nodeJSHttpServer.d.ts +21 -0
- package/outputs/sources/nodeJSHttpServer.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpServer.js +83 -0
- package/outputs/sources/nodeJSHttpServer.js.map +1 -0
- package/outputs/sources/notFoundError.d.ts +7 -0
- package/outputs/sources/notFoundError.d.ts.map +1 -0
- package/outputs/sources/notFoundError.js +10 -0
- package/outputs/sources/notFoundError.js.map +1 -0
- package/outputs/sources/postCondition.d.ts +186 -0
- package/outputs/sources/postCondition.d.ts.map +1 -0
- package/outputs/sources/postCondition.js +224 -0
- package/outputs/sources/postCondition.js.map +1 -0
- package/outputs/sources/postConditionError.d.ts +7 -0
- package/outputs/sources/postConditionError.d.ts.map +1 -0
- package/outputs/sources/postConditionError.js +10 -0
- package/outputs/sources/postConditionError.js.map +1 -0
- package/outputs/sources/preCondition.d.ts +186 -0
- package/outputs/sources/preCondition.d.ts.map +1 -0
- package/outputs/sources/preCondition.js +224 -0
- package/outputs/sources/preCondition.js.map +1 -0
- package/outputs/sources/preConditionError.d.ts +7 -0
- package/outputs/sources/preConditionError.d.ts.map +1 -0
- package/outputs/sources/preConditionError.js +10 -0
- package/outputs/sources/preConditionError.js.map +1 -0
- package/outputs/sources/promiseAsyncResult.d.ts +22 -0
- package/outputs/sources/promiseAsyncResult.d.ts.map +1 -0
- package/outputs/sources/promiseAsyncResult.js +131 -0
- package/outputs/sources/promiseAsyncResult.js.map +1 -0
- package/outputs/sources/property.d.ts +15 -0
- package/outputs/sources/property.d.ts.map +1 -0
- package/outputs/sources/property.js +44 -0
- package/outputs/sources/property.js.map +1 -0
- package/outputs/sources/queue.d.ts +39 -0
- package/outputs/sources/queue.d.ts.map +1 -0
- package/outputs/sources/queue.js +14 -0
- package/outputs/sources/queue.js.map +1 -0
- package/outputs/sources/realNetwork.d.ts +10 -0
- package/outputs/sources/realNetwork.d.ts.map +1 -0
- package/outputs/sources/realNetwork.js +18 -0
- package/outputs/sources/realNetwork.js.map +1 -0
- package/outputs/sources/recreationDotGovClient.d.ts +79 -0
- package/outputs/sources/recreationDotGovClient.d.ts.map +1 -0
- package/outputs/sources/recreationDotGovClient.js +130 -0
- package/outputs/sources/recreationDotGovClient.js.map +1 -0
- package/outputs/sources/searchControl.d.ts +36 -0
- package/outputs/sources/searchControl.d.ts.map +1 -0
- package/outputs/sources/searchControl.js +6 -0
- package/outputs/sources/searchControl.js.map +1 -0
- package/outputs/sources/set.d.ts +62 -0
- package/outputs/sources/set.d.ts.map +1 -0
- package/outputs/sources/set.js +145 -0
- package/outputs/sources/set.js.map +1 -0
- package/outputs/sources/skipAsyncIterator.d.ts +34 -0
- package/outputs/sources/skipAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/skipAsyncIterator.js +94 -0
- package/outputs/sources/skipAsyncIterator.js.map +1 -0
- package/outputs/sources/skipIterator.d.ts +36 -0
- package/outputs/sources/skipIterator.d.ts.map +1 -0
- package/outputs/sources/skipIterator.js +100 -0
- package/outputs/sources/skipIterator.js.map +1 -0
- package/outputs/sources/stack.d.ts +43 -0
- package/outputs/sources/stack.d.ts.map +1 -0
- package/outputs/sources/stack.js +14 -0
- package/outputs/sources/stack.js.map +1 -0
- package/outputs/sources/stringComparer.d.ts +12 -0
- package/outputs/sources/stringComparer.d.ts.map +1 -0
- package/outputs/sources/stringComparer.js +24 -0
- package/outputs/sources/stringComparer.js.map +1 -0
- package/outputs/sources/stringIterator.d.ts +36 -0
- package/outputs/sources/stringIterator.d.ts.map +1 -0
- package/outputs/sources/stringIterator.js +94 -0
- package/outputs/sources/stringIterator.js.map +1 -0
- package/outputs/sources/strings.d.ts +78 -0
- package/outputs/sources/strings.d.ts.map +1 -0
- package/outputs/sources/strings.js +218 -0
- package/outputs/sources/strings.js.map +1 -0
- package/outputs/sources/syncResult.d.ts +32 -0
- package/outputs/sources/syncResult.d.ts.map +1 -0
- package/outputs/sources/syncResult.js +200 -0
- package/outputs/sources/syncResult.js.map +1 -0
- package/outputs/sources/takeAsyncIterator.d.ts +34 -0
- package/outputs/sources/takeAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/takeAsyncIterator.js +92 -0
- package/outputs/sources/takeAsyncIterator.js.map +1 -0
- package/outputs/sources/takeIterator.d.ts +36 -0
- package/outputs/sources/takeIterator.d.ts.map +1 -0
- package/outputs/sources/takeIterator.js +98 -0
- package/outputs/sources/takeIterator.js.map +1 -0
- package/outputs/sources/toStringFunctions.d.ts +21 -0
- package/outputs/sources/toStringFunctions.d.ts.map +1 -0
- package/outputs/sources/toStringFunctions.js +130 -0
- package/outputs/sources/toStringFunctions.js.map +1 -0
- package/outputs/sources/types.d.ts +194 -0
- package/outputs/sources/types.d.ts.map +1 -0
- package/outputs/sources/types.js +277 -0
- package/outputs/sources/types.js.map +1 -0
- package/outputs/sources/whereAsyncIterator.d.ts +33 -0
- package/outputs/sources/whereAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/whereAsyncIterator.js +91 -0
- package/outputs/sources/whereAsyncIterator.js.map +1 -0
- package/outputs/sources/whereIterable.d.ts +32 -0
- package/outputs/sources/whereIterable.d.ts.map +1 -0
- package/outputs/sources/whereIterable.js +65 -0
- package/outputs/sources/whereIterable.js.map +1 -0
- package/outputs/sources/whereIterator.d.ts +35 -0
- package/outputs/sources/whereIterator.d.ts.map +1 -0
- package/outputs/sources/whereIterator.js +102 -0
- package/outputs/sources/whereIterator.js.map +1 -0
- package/outputs/sources/wonderlandTrailClient.d.ts +202 -0
- package/outputs/sources/wonderlandTrailClient.d.ts.map +1 -0
- package/outputs/sources/wonderlandTrailClient.js +1094 -0
- package/outputs/sources/wonderlandTrailClient.js.map +1 -0
- package/outputs/tests/AssertTestCreator.d.ts +11 -0
- package/outputs/tests/AssertTestCreator.d.ts.map +1 -0
- package/outputs/tests/AssertTestCreator.js +15 -0
- package/outputs/tests/AssertTestCreator.js.map +1 -0
- package/outputs/tests/BasicTestError.d.ts +14 -0
- package/outputs/tests/BasicTestError.d.ts.map +1 -0
- package/outputs/tests/BasicTestError.js +94 -0
- package/outputs/tests/BasicTestError.js.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts +11 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.js +15 -0
- package/outputs/tests/BasicTestErrorCreator.js.map +1 -0
- package/outputs/tests/BasicTestErrorTests.d.ts +3 -0
- package/outputs/tests/BasicTestErrorTests.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorTests.js +236 -0
- package/outputs/tests/BasicTestErrorTests.js.map +1 -0
- package/outputs/tests/CharacterTableTests.d.ts +3 -0
- package/outputs/tests/CharacterTableTests.d.ts.map +1 -0
- package/outputs/tests/CharacterTableTests.js +24 -0
- package/outputs/tests/CharacterTableTests.js.map +1 -0
- package/outputs/tests/ClockTests.d.ts +5 -0
- package/outputs/tests/ClockTests.d.ts.map +1 -0
- package/outputs/tests/ClockTests.js +23 -0
- package/outputs/tests/ClockTests.js.map +1 -0
- package/outputs/tests/CommandLineParametersTests.d.ts +3 -0
- package/outputs/tests/CommandLineParametersTests.d.ts.map +1 -0
- package/outputs/tests/CommandLineParametersTests.js +58 -0
- package/outputs/tests/CommandLineParametersTests.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts +49 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.js +213 -0
- package/outputs/tests/ConsoleTestRunnerUI.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts +5 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js +26 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js.map +1 -0
- package/outputs/tests/FakeClock.d.ts +16 -0
- package/outputs/tests/FakeClock.d.ts.map +1 -0
- package/outputs/tests/FakeClock.js +27 -0
- package/outputs/tests/FakeClock.js.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js +269 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/IndexableTests.d.ts +5 -0
- package/outputs/tests/IndexableTests.d.ts.map +1 -0
- package/outputs/tests/IndexableTests.js +46 -0
- package/outputs/tests/IndexableTests.js.map +1 -0
- package/outputs/tests/MutableIndexableTests.d.ts +5 -0
- package/outputs/tests/MutableIndexableTests.d.ts.map +1 -0
- package/outputs/tests/MutableIndexableTests.js +33 -0
- package/outputs/tests/MutableIndexableTests.js.map +1 -0
- package/outputs/tests/TestCreator.d.ts +15 -0
- package/outputs/tests/TestCreator.d.ts.map +1 -0
- package/outputs/tests/TestCreator.js +13 -0
- package/outputs/tests/TestCreator.js.map +1 -0
- package/outputs/tests/TestError.d.ts +31 -0
- package/outputs/tests/TestError.d.ts.map +1 -0
- package/outputs/tests/TestError.js +5 -0
- package/outputs/tests/TestError.js.map +1 -0
- package/outputs/tests/TestErrorCreator.d.ts +6 -0
- package/outputs/tests/TestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/TestErrorCreator.js +7 -0
- package/outputs/tests/TestErrorCreator.js.map +1 -0
- package/outputs/tests/TokenizerTests.d.ts +3 -0
- package/outputs/tests/TokenizerTests.d.ts.map +1 -0
- package/outputs/tests/TokenizerTests.js +100 -0
- package/outputs/tests/TokenizerTests.js.map +1 -0
- package/outputs/tests/assertTest.d.ts +32 -0
- package/outputs/tests/assertTest.d.ts.map +1 -0
- package/outputs/tests/assertTest.js +75 -0
- package/outputs/tests/assertTest.js.map +1 -0
- package/outputs/tests/assertTestTests.d.ts +3 -0
- package/outputs/tests/assertTestTests.d.ts.map +1 -0
- package/outputs/tests/assertTestTests.js +49 -0
- package/outputs/tests/assertTestTests.js.map +1 -0
- package/outputs/tests/basicTestSkip.d.ts +20 -0
- package/outputs/tests/basicTestSkip.d.ts.map +1 -0
- package/outputs/tests/basicTestSkip.js +36 -0
- package/outputs/tests/basicTestSkip.js.map +1 -0
- package/outputs/tests/byteListStreamTests.d.ts +3 -0
- package/outputs/tests/byteListStreamTests.d.ts.map +1 -0
- package/outputs/tests/byteListStreamTests.js +247 -0
- package/outputs/tests/byteListStreamTests.js.map +1 -0
- package/outputs/tests/byteListTests.d.ts +3 -0
- package/outputs/tests/byteListTests.d.ts.map +1 -0
- package/outputs/tests/byteListTests.js +5 -0
- package/outputs/tests/byteListTests.js.map +1 -0
- package/outputs/tests/bytesTests.d.ts +3 -0
- package/outputs/tests/bytesTests.d.ts.map +1 -0
- package/outputs/tests/bytesTests.js +30 -0
- package/outputs/tests/bytesTests.js.map +1 -0
- package/outputs/tests/characterListStreamTests.d.ts +3 -0
- package/outputs/tests/characterListStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterListStreamTests.js +247 -0
- package/outputs/tests/characterListStreamTests.js.map +1 -0
- package/outputs/tests/characterListTests.d.ts +3 -0
- package/outputs/tests/characterListTests.d.ts.map +1 -0
- package/outputs/tests/characterListTests.js +159 -0
- package/outputs/tests/characterListTests.js.map +1 -0
- package/outputs/tests/characterWriteStreamTests.d.ts +4 -0
- package/outputs/tests/characterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterWriteStreamTests.js +7 -0
- package/outputs/tests/characterWriteStreamTests.js.map +1 -0
- package/outputs/tests/comparerTests.d.ts +3 -0
- package/outputs/tests/comparerTests.d.ts.map +1 -0
- package/outputs/tests/comparerTests.js +67 -0
- package/outputs/tests/comparerTests.js.map +1 -0
- package/outputs/tests/conditionTests.d.ts +3 -0
- package/outputs/tests/conditionTests.d.ts.map +1 -0
- package/outputs/tests/conditionTests.js +602 -0
- package/outputs/tests/conditionTests.js.map +1 -0
- package/outputs/tests/consoleTestRunner.d.ts +95 -0
- package/outputs/tests/consoleTestRunner.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunner.js +351 -0
- package/outputs/tests/consoleTestRunner.js.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts +3 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.js +537 -0
- package/outputs/tests/consoleTestRunnerTests.js.map +1 -0
- package/outputs/tests/dateTimeTests.d.ts +3 -0
- package/outputs/tests/dateTimeTests.d.ts.map +1 -0
- package/outputs/tests/dateTimeTests.js +24 -0
- package/outputs/tests/dateTimeTests.js.map +1 -0
- package/outputs/tests/depthFirstSearchTests.d.ts +3 -0
- package/outputs/tests/depthFirstSearchTests.d.ts.map +1 -0
- package/outputs/tests/depthFirstSearchTests.js +61 -0
- package/outputs/tests/depthFirstSearchTests.js.map +1 -0
- package/outputs/tests/disposableTests.d.ts +3 -0
- package/outputs/tests/disposableTests.d.ts.map +1 -0
- package/outputs/tests/disposableTests.js +81 -0
- package/outputs/tests/disposableTests.js.map +1 -0
- package/outputs/tests/englishTests.d.ts +3 -0
- package/outputs/tests/englishTests.d.ts.map +1 -0
- package/outputs/tests/englishTests.js +68 -0
- package/outputs/tests/englishTests.js.map +1 -0
- package/outputs/tests/equalFunctionsTests.d.ts +3 -0
- package/outputs/tests/equalFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/equalFunctionsTests.js +187 -0
- package/outputs/tests/equalFunctionsTests.js.map +1 -0
- package/outputs/tests/failedTest.d.ts +11 -0
- package/outputs/tests/failedTest.d.ts.map +1 -0
- package/outputs/tests/failedTest.js +21 -0
- package/outputs/tests/failedTest.js.map +1 -0
- package/outputs/tests/fetchHttpClientTests.d.ts +3 -0
- package/outputs/tests/fetchHttpClientTests.d.ts.map +1 -0
- package/outputs/tests/fetchHttpClientTests.js +21 -0
- package/outputs/tests/fetchHttpClientTests.js.map +1 -0
- package/outputs/tests/generatorTests.d.ts +3 -0
- package/outputs/tests/generatorTests.d.ts.map +1 -0
- package/outputs/tests/generatorTests.js +55 -0
- package/outputs/tests/generatorTests.js.map +1 -0
- package/outputs/tests/httpClientTests.d.ts +3 -0
- package/outputs/tests/httpClientTests.d.ts.map +1 -0
- package/outputs/tests/httpClientTests.js +12 -0
- package/outputs/tests/httpClientTests.js.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js +84 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/index.d.ts +12 -0
- package/outputs/tests/index.d.ts.map +1 -0
- package/outputs/tests/index.js +12 -0
- package/outputs/tests/index.js.map +1 -0
- package/outputs/tests/iterableTests.d.ts +5 -0
- package/outputs/tests/iterableTests.d.ts.map +1 -0
- package/outputs/tests/iterableTests.js +155 -0
- package/outputs/tests/iterableTests.js.map +1 -0
- package/outputs/tests/iteratorTests.d.ts +5 -0
- package/outputs/tests/iteratorTests.d.ts.map +1 -0
- package/outputs/tests/iteratorTests.js +728 -0
- package/outputs/tests/iteratorTests.js.map +1 -0
- package/outputs/tests/javascriptMapMapTests.d.ts +3 -0
- package/outputs/tests/javascriptMapMapTests.d.ts.map +1 -0
- package/outputs/tests/javascriptMapMapTests.js +14 -0
- package/outputs/tests/javascriptMapMapTests.js.map +1 -0
- package/outputs/tests/listTests.d.ts +3 -0
- package/outputs/tests/listTests.d.ts.map +1 -0
- package/outputs/tests/listTests.js +202 -0
- package/outputs/tests/listTests.js.map +1 -0
- package/outputs/tests/mapIteratorTests.d.ts +3 -0
- package/outputs/tests/mapIteratorTests.d.ts.map +1 -0
- package/outputs/tests/mapIteratorTests.js +27 -0
- package/outputs/tests/mapIteratorTests.js.map +1 -0
- package/outputs/tests/mapTests.d.ts +5 -0
- package/outputs/tests/mapTests.d.ts.map +1 -0
- package/outputs/tests/mapTests.js +64 -0
- package/outputs/tests/mapTests.js.map +1 -0
- package/outputs/tests/mutableConditionTests.d.ts +3 -0
- package/outputs/tests/mutableConditionTests.d.ts.map +1 -0
- package/outputs/tests/mutableConditionTests.js +174 -0
- package/outputs/tests/mutableConditionTests.js.map +1 -0
- package/outputs/tests/mutableMapTests.d.ts +5 -0
- package/outputs/tests/mutableMapTests.d.ts.map +1 -0
- package/outputs/tests/mutableMapTests.js +102 -0
- package/outputs/tests/mutableMapTests.js.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts +3 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.js +50 -0
- package/outputs/tests/nodeJSHttpServerTests.js.map +1 -0
- package/outputs/tests/notFoundErrorTests.d.ts +3 -0
- package/outputs/tests/notFoundErrorTests.d.ts.map +1 -0
- package/outputs/tests/notFoundErrorTests.js +17 -0
- package/outputs/tests/notFoundErrorTests.js.map +1 -0
- package/outputs/tests/postConditionErrorTests.d.ts +3 -0
- package/outputs/tests/postConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/postConditionErrorTests.js +17 -0
- package/outputs/tests/postConditionErrorTests.js.map +1 -0
- package/outputs/tests/preConditionErrorTests.d.ts +3 -0
- package/outputs/tests/preConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/preConditionErrorTests.js +17 -0
- package/outputs/tests/preConditionErrorTests.js.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts +3 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.js +487 -0
- package/outputs/tests/promiseAsyncResultTests.js.map +1 -0
- package/outputs/tests/propertyTests.d.ts +3 -0
- package/outputs/tests/propertyTests.d.ts.map +1 -0
- package/outputs/tests/propertyTests.js +41 -0
- package/outputs/tests/propertyTests.js.map +1 -0
- package/outputs/tests/queueTests.d.ts +3 -0
- package/outputs/tests/queueTests.d.ts.map +1 -0
- package/outputs/tests/queueTests.js +20 -0
- package/outputs/tests/queueTests.js.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts +3 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.js +111 -0
- package/outputs/tests/recreationDotGovClientTests.js.map +1 -0
- package/outputs/tests/setTests.d.ts +3 -0
- package/outputs/tests/setTests.d.ts.map +1 -0
- package/outputs/tests/setTests.js +92 -0
- package/outputs/tests/setTests.js.map +1 -0
- package/outputs/tests/skippedTest.d.ts +11 -0
- package/outputs/tests/skippedTest.d.ts.map +1 -0
- package/outputs/tests/skippedTest.js +21 -0
- package/outputs/tests/skippedTest.js.map +1 -0
- package/outputs/tests/stackTests.d.ts +3 -0
- package/outputs/tests/stackTests.d.ts.map +1 -0
- package/outputs/tests/stackTests.js +45 -0
- package/outputs/tests/stackTests.js.map +1 -0
- package/outputs/tests/stringComparerTests.d.ts +3 -0
- package/outputs/tests/stringComparerTests.d.ts.map +1 -0
- package/outputs/tests/stringComparerTests.js +47 -0
- package/outputs/tests/stringComparerTests.js.map +1 -0
- package/outputs/tests/stringIteratorTests.d.ts +3 -0
- package/outputs/tests/stringIteratorTests.d.ts.map +1 -0
- package/outputs/tests/stringIteratorTests.js +81 -0
- package/outputs/tests/stringIteratorTests.js.map +1 -0
- package/outputs/tests/stringsTests.d.ts +3 -0
- package/outputs/tests/stringsTests.d.ts.map +1 -0
- package/outputs/tests/stringsTests.js +384 -0
- package/outputs/tests/stringsTests.js.map +1 -0
- package/outputs/tests/syncResultTests.d.ts +3 -0
- package/outputs/tests/syncResultTests.d.ts.map +1 -0
- package/outputs/tests/syncResultTests.js +900 -0
- package/outputs/tests/syncResultTests.js.map +1 -0
- package/outputs/tests/test.d.ts +144 -0
- package/outputs/tests/test.d.ts.map +1 -0
- package/outputs/tests/test.js +145 -0
- package/outputs/tests/test.js.map +1 -0
- package/outputs/tests/testAction.d.ts +22 -0
- package/outputs/tests/testAction.d.ts.map +1 -0
- package/outputs/tests/testAction.js +56 -0
- package/outputs/tests/testAction.js.map +1 -0
- package/outputs/tests/testActionTests.d.ts +3 -0
- package/outputs/tests/testActionTests.d.ts.map +1 -0
- package/outputs/tests/testActionTests.js +56 -0
- package/outputs/tests/testActionTests.js.map +1 -0
- package/outputs/tests/testFailureTests.d.ts +3 -0
- package/outputs/tests/testFailureTests.d.ts.map +1 -0
- package/outputs/tests/testFailureTests.js +7 -0
- package/outputs/tests/testFailureTests.js.map +1 -0
- package/outputs/tests/testRunner.d.ts +107 -0
- package/outputs/tests/testRunner.d.ts.map +1 -0
- package/outputs/tests/testRunner.js +63 -0
- package/outputs/tests/testRunner.js.map +1 -0
- package/outputs/tests/testRunnerTests.d.ts +4 -0
- package/outputs/tests/testRunnerTests.d.ts.map +1 -0
- package/outputs/tests/testRunnerTests.js +258 -0
- package/outputs/tests/testRunnerTests.js.map +1 -0
- package/outputs/tests/testSkip.d.ts +24 -0
- package/outputs/tests/testSkip.d.ts.map +1 -0
- package/outputs/tests/testSkip.js +19 -0
- package/outputs/tests/testSkip.js.map +1 -0
- package/outputs/tests/tests.d.ts +2 -0
- package/outputs/tests/tests.d.ts.map +1 -0
- package/outputs/tests/tests.js +115 -0
- package/outputs/tests/tests.js.map +1 -0
- package/outputs/tests/toStringFunctionsTests.d.ts +3 -0
- package/outputs/tests/toStringFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/toStringFunctionsTests.js +43 -0
- package/outputs/tests/toStringFunctionsTests.js.map +1 -0
- package/outputs/tests/typesTests.d.ts +3 -0
- package/outputs/tests/typesTests.d.ts.map +1 -0
- package/outputs/tests/typesTests.js +194 -0
- package/outputs/tests/typesTests.js.map +1 -0
- package/outputs/tests/whereIteratorTests.d.ts +3 -0
- package/outputs/tests/whereIteratorTests.d.ts.map +1 -0
- package/outputs/tests/whereIteratorTests.js +30 -0
- package/outputs/tests/whereIteratorTests.js.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts +3 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.js +272 -0
- package/outputs/tests/wonderlandTrailClientTests.js.map +1 -0
- package/package.json +48 -48
- package/outputs/characterWriteStream-DGlmRcFl.d.cts +0 -854
- package/outputs/characterWriteStream-DGlmRcFl.d.ts +0 -854
- package/outputs/chunk-P4KLLRFY.js +0 -1199
- package/outputs/chunk-P4KLLRFY.js.map +0 -1
- package/outputs/chunk-TUBXFCG4.js +0 -9593
- package/outputs/chunk-TUBXFCG4.js.map +0 -1
- package/outputs/sourceIndex.cjs +0 -9793
- package/outputs/sourceIndex.cjs.map +0 -1
- package/outputs/sourceIndex.d.cts +0 -3533
- package/outputs/sourceIndex.d.ts +0 -3533
- package/outputs/sourceIndex.js +0 -349
- package/outputs/sourceIndex.js.map +0 -1
- package/outputs/testIndex.cjs +0 -7049
- package/outputs/testIndex.cjs.map +0 -1
- package/outputs/testIndex.d.cts +0 -544
- package/outputs/testIndex.d.ts +0 -544
- package/outputs/testIndex.js +0 -55
- package/outputs/testIndex.js.map +0 -1
- package/outputs/tests.cjs +0 -19376
- package/outputs/tests.cjs.map +0 -1
- package/outputs/tests.d.cts +0 -3
- package/outputs/tests.d.ts +0 -3
- package/outputs/tests.js +0 -10018
- package/outputs/tests.js.map +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Comparer } from "./comparer.js";
|
|
2
|
+
import { Iterable } from "./iterable.js";
|
|
3
|
+
import { isMap, Map } from "./map.js";
|
|
4
|
+
import { PreCondition } from "./preCondition.js";
|
|
5
|
+
import { SyncResult } from "./syncResult.js";
|
|
6
|
+
import { getPropertyNames, hasProperty, isBoolean, isJavascriptIterable, isObject, isString } from "./types.js";
|
|
7
|
+
/**
|
|
8
|
+
* A collection of {@link Function}s that can be used to determine if two values are equal.
|
|
9
|
+
*/
|
|
10
|
+
export class EqualFunctions {
|
|
11
|
+
equalFunctions;
|
|
12
|
+
constructor() {
|
|
13
|
+
this.equalFunctions = [];
|
|
14
|
+
}
|
|
15
|
+
static create() {
|
|
16
|
+
return new EqualFunctions();
|
|
17
|
+
}
|
|
18
|
+
defaultEqualFunction(left, right) {
|
|
19
|
+
return SyncResult.create(() => {
|
|
20
|
+
let result = Comparer.equalSameUndefinedNull(left, right);
|
|
21
|
+
if (result === undefined) {
|
|
22
|
+
result = false;
|
|
23
|
+
if (isMap(left)) {
|
|
24
|
+
if (isMap(right)) {
|
|
25
|
+
result = Map.equals(left, right, this).await();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
else if (isJavascriptIterable(left) && !isString(left)) {
|
|
29
|
+
if (isJavascriptIterable(right) && !isString(right) && !isMap(right)) {
|
|
30
|
+
result = Iterable.equals(left, right, this).await();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
else if (isObject(left)) {
|
|
34
|
+
if (isObject(right)) {
|
|
35
|
+
result = true;
|
|
36
|
+
for (const leftPropertyName of getPropertyNames(left)) {
|
|
37
|
+
if (!hasProperty(left, leftPropertyName) || !hasProperty(right, leftPropertyName)) {
|
|
38
|
+
result = false;
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
result = this.areEqual(left[leftPropertyName], right[leftPropertyName]).await();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (result) {
|
|
46
|
+
for (const rightPropertyName of getPropertyNames(right)) {
|
|
47
|
+
if (!hasProperty(left, rightPropertyName) || !hasProperty(right, rightPropertyName)) {
|
|
48
|
+
result = false;
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
result = this.areEqual(left[rightPropertyName], right[rightPropertyName]).await();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return result;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Get whether the provided values are equal based on the registered equal {@link Function}s.
|
|
64
|
+
* @param left The left value in the comparison.
|
|
65
|
+
* @param right The right value in the comparison.
|
|
66
|
+
*/
|
|
67
|
+
areEqual(left, right) {
|
|
68
|
+
return SyncResult.create(() => {
|
|
69
|
+
let result;
|
|
70
|
+
for (const equalFunction of this.equalFunctions) {
|
|
71
|
+
result = equalFunction(left, right);
|
|
72
|
+
if (result !== undefined) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (result === undefined) {
|
|
77
|
+
result = this.defaultEqualFunction(left, right);
|
|
78
|
+
}
|
|
79
|
+
return isBoolean(result) ? result : result.await();
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
add(equalFunction) {
|
|
83
|
+
PreCondition.assertNotUndefinedAndNotNull(equalFunction, "equalFunction");
|
|
84
|
+
this.equalFunctions.unshift(equalFunction);
|
|
85
|
+
return this;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=equalFunctions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equalFunctions.js","sourceRoot":"","sources":["../../sources/equalFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhH;;GAEG;AACH,MAAM,OAAO,cAAc;IAEN,cAAc,CAAqF;IAEpH;QAEI,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;IAC7B,CAAC;IAEM,MAAM,CAAC,MAAM;QAEhB,OAAO,IAAI,cAAc,EAAE,CAAC;IAChC,CAAC;IAEO,oBAAoB,CAAC,IAAa,EAAE,KAAc;QAEtD,OAAO,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE;YAE1B,IAAI,MAAM,GAAwB,QAAQ,CAAC,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAC/E,IAAI,MAAM,KAAK,SAA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,CAAC;IAChB,CAAC;CACJ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FetchHttpIncomingResponse } from "./fetchHttpResponse.js";
|
|
2
|
+
import { HttpClient } from "./httpClient.js";
|
|
3
|
+
import { HttpOutgoingRequest } from "./httpOutgoingRequest.js";
|
|
4
|
+
import { HttpMethod } from "./httpMethod.js";
|
|
5
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
6
|
+
/**
|
|
7
|
+
* A {@link HttpClient} that uses {@link fetch}() to make network requests.
|
|
8
|
+
*/
|
|
9
|
+
export declare class FetchHttpClient implements HttpClient {
|
|
10
|
+
protected constructor();
|
|
11
|
+
static create(): FetchHttpClient;
|
|
12
|
+
sendRequest(request: HttpOutgoingRequest): AsyncResult<FetchHttpIncomingResponse>;
|
|
13
|
+
sendGetRequest(url: string): AsyncResult<FetchHttpIncomingResponse>;
|
|
14
|
+
static convertMethod(method: HttpMethod): string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=fetchHttpClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchHttpClient.d.ts","sourceRoot":"","sources":["../../sources/fetchHttpClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C;;GAEG;AACH,qBAAa,eAAgB,YAAW,UAAU;IAE9C,SAAS,eAER;IAED,OAAc,MAAM,IAAI,eAAe,CAGtC;IAEM,WAAW,CAAC,OAAO,EAAE,mBAAmB,GAAG,WAAW,CAAC,yBAAyB,CAAC,CAqCvF;IAEM,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC,yBAAyB,CAAC,CAGzE;IAED,OAAc,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAuCtD;CACJ"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { FetchHttpIncomingResponse } from "./fetchHttpResponse.js";
|
|
2
|
+
import { HttpOutgoingRequest } from "./httpOutgoingRequest.js";
|
|
3
|
+
import { HttpMethod } from "./httpMethod.js";
|
|
4
|
+
import { PostCondition } from "./postCondition.js";
|
|
5
|
+
import { PreCondition } from "./preCondition.js";
|
|
6
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
7
|
+
import { FetchError } from "./FetchError.js";
|
|
8
|
+
/**
|
|
9
|
+
* A {@link HttpClient} that uses {@link fetch}() to make network requests.
|
|
10
|
+
*/
|
|
11
|
+
export class FetchHttpClient {
|
|
12
|
+
constructor() {
|
|
13
|
+
}
|
|
14
|
+
static create() {
|
|
15
|
+
return new FetchHttpClient();
|
|
16
|
+
}
|
|
17
|
+
sendRequest(request) {
|
|
18
|
+
PreCondition.assertNotUndefinedAndNotNull(request, "request");
|
|
19
|
+
return AsyncResult.create(async () => {
|
|
20
|
+
const fetchURL = request.getURL();
|
|
21
|
+
const fetchMethod = FetchHttpClient.convertMethod(request.getMethod());
|
|
22
|
+
const fetchHeaders = request.getHeaders()
|
|
23
|
+
.map((header) => [header.getName(), header.getValue()])
|
|
24
|
+
.toArray()
|
|
25
|
+
.await();
|
|
26
|
+
const fetchBody = request.getBody() || undefined;
|
|
27
|
+
const requestInit = {
|
|
28
|
+
method: fetchMethod,
|
|
29
|
+
headers: fetchHeaders,
|
|
30
|
+
body: fetchBody,
|
|
31
|
+
};
|
|
32
|
+
let result;
|
|
33
|
+
try {
|
|
34
|
+
const fetchResponse = await fetch(fetchURL, requestInit);
|
|
35
|
+
result = FetchHttpIncomingResponse.create(fetchResponse);
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
if (error instanceof Error &&
|
|
39
|
+
error.cause instanceof Error) {
|
|
40
|
+
throw new FetchError(error.cause);
|
|
41
|
+
}
|
|
42
|
+
throw error;
|
|
43
|
+
}
|
|
44
|
+
return result;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
sendGetRequest(url) {
|
|
48
|
+
return this.sendRequest(HttpOutgoingRequest.create(HttpMethod.GET, url));
|
|
49
|
+
}
|
|
50
|
+
static convertMethod(method) {
|
|
51
|
+
PreCondition.assertNotUndefinedAndNotNull(method, "method");
|
|
52
|
+
let result;
|
|
53
|
+
switch (method) {
|
|
54
|
+
case HttpMethod.CONNECT:
|
|
55
|
+
result = "CONNECT";
|
|
56
|
+
break;
|
|
57
|
+
case HttpMethod.DELETE:
|
|
58
|
+
result = "DELETE";
|
|
59
|
+
break;
|
|
60
|
+
case HttpMethod.GET:
|
|
61
|
+
result = "GET";
|
|
62
|
+
break;
|
|
63
|
+
case HttpMethod.HEAD:
|
|
64
|
+
result = "HEAD";
|
|
65
|
+
break;
|
|
66
|
+
case HttpMethod.OPTIONS:
|
|
67
|
+
result = "OPTIONS";
|
|
68
|
+
break;
|
|
69
|
+
case HttpMethod.PATCH:
|
|
70
|
+
result = "PATCH";
|
|
71
|
+
break;
|
|
72
|
+
case HttpMethod.POST:
|
|
73
|
+
result = "POST";
|
|
74
|
+
break;
|
|
75
|
+
case HttpMethod.PUT:
|
|
76
|
+
result = "PUT";
|
|
77
|
+
break;
|
|
78
|
+
case HttpMethod.TRACE:
|
|
79
|
+
result = "TRACE";
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
PostCondition.assertNotEmpty(result, "result");
|
|
83
|
+
return result;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=fetchHttpClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchHttpClient.js","sourceRoot":"","sources":["../../sources/fetchHttpClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,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AAM,GAAG,KAAK,CAAC;gBACf,MAAM;YACV,KAAK,UAAU,CAAC,KAAK;gBACjB,MAAM,GAAG,OAAO,CAAC;gBACjB,MAAM;QACd,CAAC;QAED,aAAa,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAE/C,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
2
|
+
import { HttpHeader } from "./httpHeader.js";
|
|
3
|
+
import { HttpHeaders } from "./httpHeaders.js";
|
|
4
|
+
import { HttpIncomingResponse } from "./httpIncomingResponse.js";
|
|
5
|
+
import { SyncResult } from "./syncResult.js";
|
|
6
|
+
/**
|
|
7
|
+
* An {@link HttpIncomingResponse} that comes from a {@link FetchHttpClient}.
|
|
8
|
+
*/
|
|
9
|
+
export declare class FetchHttpIncomingResponse extends HttpIncomingResponse {
|
|
10
|
+
private readonly response;
|
|
11
|
+
private constructor();
|
|
12
|
+
static create(response: Response): FetchHttpIncomingResponse;
|
|
13
|
+
getStatusCode(): number;
|
|
14
|
+
getHeaders(): SyncResult<HttpHeaders>;
|
|
15
|
+
getHeader(headerName: string): SyncResult<HttpHeader>;
|
|
16
|
+
getHeaderValue(headerName: string): SyncResult<string>;
|
|
17
|
+
getBody(): PromiseAsyncResult<string>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=fetchHttpResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchHttpResponse.d.ts","sourceRoot":"","sources":["../../sources/fetchHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAKjE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,oBAAoB;IAE/D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAW;IAEpC,OAAO,eAON;IAED,OAAc,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,yBAAyB,CAGlE;IAEM,aAAa,IAAI,MAAM,CAG7B;IAEM,UAAU,IAAI,UAAU,CAAC,WAAW,CAAC,CAW3C;IAEM,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,CAwB3D;IAEM,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAwB5D;IAEM,OAAO,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAG3C;CACJ"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
2
|
+
import { HttpHeader } from "./httpHeader.js";
|
|
3
|
+
import { HttpHeaders } from "./httpHeaders.js";
|
|
4
|
+
import { HttpIncomingResponse } from "./httpIncomingResponse.js";
|
|
5
|
+
import { NotFoundError } from "./notFoundError.js";
|
|
6
|
+
import { PreCondition } from "./preCondition.js";
|
|
7
|
+
import { escapeAndQuote } from "./strings.js";
|
|
8
|
+
import { SyncResult } from "./syncResult.js";
|
|
9
|
+
/**
|
|
10
|
+
* An {@link HttpIncomingResponse} that comes from a {@link FetchHttpClient}.
|
|
11
|
+
*/
|
|
12
|
+
export class FetchHttpIncomingResponse extends HttpIncomingResponse {
|
|
13
|
+
response;
|
|
14
|
+
constructor(response) {
|
|
15
|
+
PreCondition.assertNotUndefinedAndNotNull(response, "response");
|
|
16
|
+
super();
|
|
17
|
+
this.response = response;
|
|
18
|
+
}
|
|
19
|
+
static create(response) {
|
|
20
|
+
return new FetchHttpIncomingResponse(response);
|
|
21
|
+
}
|
|
22
|
+
getStatusCode() {
|
|
23
|
+
return this.response.status;
|
|
24
|
+
}
|
|
25
|
+
getHeaders() {
|
|
26
|
+
return SyncResult.create(() => {
|
|
27
|
+
const result = HttpHeaders.create();
|
|
28
|
+
for (const header of this.response.headers) {
|
|
29
|
+
result.set(header[0], header[1]);
|
|
30
|
+
}
|
|
31
|
+
return result;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
getHeader(headerName) {
|
|
35
|
+
PreCondition.assertNotEmpty(headerName, "headerName");
|
|
36
|
+
return SyncResult.create(() => {
|
|
37
|
+
let result;
|
|
38
|
+
const lowerHeaderName = headerName.toLowerCase();
|
|
39
|
+
for (const header of this.response.headers) {
|
|
40
|
+
if (lowerHeaderName === header[0].toLowerCase()) {
|
|
41
|
+
result = HttpHeader.create(header[0], header[1]);
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (result === undefined) {
|
|
46
|
+
throw new NotFoundError(`Could not find a header with the name ${escapeAndQuote(headerName)}.`);
|
|
47
|
+
}
|
|
48
|
+
return result;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
getHeaderValue(headerName) {
|
|
52
|
+
PreCondition.assertNotEmpty(headerName, "headerName");
|
|
53
|
+
return SyncResult.create(() => {
|
|
54
|
+
let result;
|
|
55
|
+
const lowerHeaderName = headerName.toLowerCase();
|
|
56
|
+
for (const header of this.response.headers) {
|
|
57
|
+
if (lowerHeaderName === header[0].toLowerCase()) {
|
|
58
|
+
result = header[1];
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (result === undefined) {
|
|
63
|
+
throw new NotFoundError(`Could not find a header with the name ${escapeAndQuote(headerName)}.`);
|
|
64
|
+
}
|
|
65
|
+
return result;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
getBody() {
|
|
69
|
+
return PromiseAsyncResult.create(this.response.text());
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=fetchHtt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AC;YACL,CAAC;YACD,IAAI,MAAM,KAAK,SAAS,EACxB,CAAC;gBACG,MAAM,IAAI,aAAa,CAAC,yCAAyC,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;YACnG,CAAC;YAED,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,OAAO;QAEV,OAAO,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IAC3D,CAAC;CACJ"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EqualFunctions } from "./equalFunctions.js";
|
|
2
|
+
import { Iterable } from "./iterable.js";
|
|
3
|
+
import { Iterator } from "./iterator.js";
|
|
4
|
+
import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
|
|
5
|
+
import { SyncResult } from "./syncResult.js";
|
|
6
|
+
import { ToStringFunctions } from "./toStringFunctions.js";
|
|
7
|
+
import { Type } from "./types.js";
|
|
8
|
+
export declare class FlatMapIterable<TInput, TOutput> implements Iterable<TOutput> {
|
|
9
|
+
private readonly innerIterable;
|
|
10
|
+
private readonly mapping;
|
|
11
|
+
private constructor();
|
|
12
|
+
static create<TInput, TOutput>(innerIterable: Iterable<TInput>, mapping: (value: TInput) => JavascriptIterable<TOutput>): FlatMapIterable<TInput, TOutput>;
|
|
13
|
+
iterate(): Iterator<TOutput>;
|
|
14
|
+
toArray(): SyncResult<TOutput[]>;
|
|
15
|
+
any(): SyncResult<boolean>;
|
|
16
|
+
getCount(): SyncResult<number>;
|
|
17
|
+
equals(right: JavascriptIterable<TOutput>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
18
|
+
toString(toStringFunctions?: ToStringFunctions): string;
|
|
19
|
+
concatenate(...toConcatenate: JavascriptIterable<TOutput>[]): Iterable<TOutput>;
|
|
20
|
+
map<TOutput2>(mapping: (value: TOutput) => TOutput2 | SyncResult<TOutput2>): Iterable<TOutput2>;
|
|
21
|
+
flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterable<TOutput2>;
|
|
22
|
+
where(condition: (value: TOutput) => (boolean | SyncResult<boolean>)): Iterable<TOutput>;
|
|
23
|
+
instanceOf<TOutput2 extends TOutput>(typeOrTypeCheck: Type<TOutput2> | ((value: TOutput2) => value is TOutput2)): Iterable<TOutput2>;
|
|
24
|
+
first(condition?: ((value: TOutput) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<TOutput>;
|
|
25
|
+
last(condition?: ((value: TOutput) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<TOutput>;
|
|
26
|
+
contains(value: TOutput, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
27
|
+
[Symbol.iterator](): JavascriptIterator<TOutput>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=flatMapIterable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flatMapIterable.d.ts","sourceRoot":"","sources":["../../sources/flatMapIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,qBAAa,eAAe,CAAC,MAAM,EAAC,OAAO,CAAE,YAAW,QAAQ,CAAC,OAAO,CAAC;IAErE,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAmB;IACjD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiD;IAEzE,OAAO,eAQN;IAED,OAAc,MAAM,CAAC,M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EAAE,QAAQ,KAAK,KAAK,IAAI,QAAQ,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAG1I;IAEM,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,UAAU,CAAC,OAAO,CAAC,CAG/G;IAEM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,UAAU,CAAC,OAAO,CAAC,CAG9G;IAEM,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,CAGpF;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAGtD;CACJ"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Iterable } from "./iterable.js";
|
|
2
|
+
import { PreCondition } from "./preCondition.js";
|
|
3
|
+
export class FlatMapIterable {
|
|
4
|
+
innerIterable;
|
|
5
|
+
mapping;
|
|
6
|
+
constructor(innerIterable, mapping) {
|
|
7
|
+
PreCondition.assertNotUndefinedAndNotNull(innerIterable, "innerIterable");
|
|
8
|
+
PreCondition.assertNotUndefinedAndNotNull(mapping, "mapping");
|
|
9
|
+
this.innerIterable = innerIterable;
|
|
10
|
+
this.mapping = mapping;
|
|
11
|
+
}
|
|
12
|
+
static create(innerIterable, mapping) {
|
|
13
|
+
return new FlatMapIterable(innerIterable, mapping);
|
|
14
|
+
}
|
|
15
|
+
iterate() {
|
|
16
|
+
return this.innerIterable.iterate().flatMap(this.mapping);
|
|
17
|
+
}
|
|
18
|
+
toArray() {
|
|
19
|
+
return Iterable.toArray(this);
|
|
20
|
+
}
|
|
21
|
+
any() {
|
|
22
|
+
return Iterable.any(this);
|
|
23
|
+
}
|
|
24
|
+
getCount() {
|
|
25
|
+
return Iterable.getCount(this);
|
|
26
|
+
}
|
|
27
|
+
equals(right, equalFunctions) {
|
|
28
|
+
return Iterable.equals(this, right, equalFunctions);
|
|
29
|
+
}
|
|
30
|
+
toString(toStringFunctions) {
|
|
31
|
+
return Iterable.toString(this, toStringFunctions);
|
|
32
|
+
}
|
|
33
|
+
concatenate(...toConcatenate) {
|
|
34
|
+
return Iterable.concatenate(this, ...toConcatenate);
|
|
35
|
+
}
|
|
36
|
+
map(mapping) {
|
|
37
|
+
return Iterable.map(this, mapping);
|
|
38
|
+
}
|
|
39
|
+
flatMap(mapping) {
|
|
40
|
+
return Iterable.flatMap(this, mapping);
|
|
41
|
+
}
|
|
42
|
+
where(condition) {
|
|
43
|
+
return Iterable.where(this, condition);
|
|
44
|
+
}
|
|
45
|
+
instanceOf(typeOrTypeCheck) {
|
|
46
|
+
return Iterable.instanceOf(this, typeOrTypeCheck);
|
|
47
|
+
}
|
|
48
|
+
first(condition) {
|
|
49
|
+
return Iterable.first(this, condition);
|
|
50
|
+
}
|
|
51
|
+
last(condition) {
|
|
52
|
+
return Iterable.last(this, condition);
|
|
53
|
+
}
|
|
54
|
+
contains(value, equalFunctions) {
|
|
55
|
+
return Iterable.contains(this, value, equalFunctions);
|
|
56
|
+
}
|
|
57
|
+
[Symbol.iterator]() {
|
|
58
|
+
return Iterable[Symbol.iterator](this);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=flatMapIterable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flatMapIterable.js","sourceRoot":"","sources":["../../sources/flatMapIterable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKjD,MAAM,OAAO,eAAe;IAEP,aAAa,CAAmB;IACh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;IAEM,OAAO,CAAW,OAAyD;QAE9E,OAAO,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;IAEM,KAAK,CAAC,SAA8D;QAEvE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IAEM,UAAU,CAA2B,eAA0E;QAElH,OAAO,QAAQ,CAAC,UAAU,CAAmB,IAAI,EAAE,eAAe,CAAC,CAAC;IACxE,CAAC;IAEM,KAAK,CAAC,SAA6E;QAEtF,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IAEM,IAAI,CAAC,SAA6E;QAErF,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC1C,CAAC;IAEM,QAAQ,CAAC,KAAc,EAAE,cAA+B;QAE3D,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;IAC1D,CAAC;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC;QAEpB,OAAO,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;CACJ"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
|
|
2
|
+
import { Iterator } from "./iterator.js";
|
|
3
|
+
import { SyncResult } from "./syncResult.js";
|
|
4
|
+
import { Type } from "./types.js";
|
|
5
|
+
export declare class FlatMapIterator<TInput, TOutput> implements Iterator<TOutput> {
|
|
6
|
+
private readonly innerIterator;
|
|
7
|
+
private readonly mapping;
|
|
8
|
+
private mappingIterator;
|
|
9
|
+
private started;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create<TInput, TOutput>(innerIterator: Iterator<TInput>, mapping: (value: TInput) => JavascriptIterable<TOutput>): FlatMapIterator<TInput, TOutput>;
|
|
12
|
+
next(): SyncResult<boolean>;
|
|
13
|
+
hasStarted(): boolean;
|
|
14
|
+
hasCurrent(): boolean;
|
|
15
|
+
getCurrent(): TOutput;
|
|
16
|
+
start(): SyncResult<this>;
|
|
17
|
+
takeCurrent(): SyncResult<TOutput>;
|
|
18
|
+
any(): SyncResult<boolean>;
|
|
19
|
+
getCount(): SyncResult<number>;
|
|
20
|
+
toArray(): SyncResult<TOutput[]>;
|
|
21
|
+
concatenate(...toConcatenate: JavascriptIterable<TOutput>[]): Iterator<TOutput>;
|
|
22
|
+
where(condition: (value: TOutput) => (boolean | SyncResult<boolean>)): Iterator<TOutput>;
|
|
23
|
+
map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | SyncResult<TOutput2>)): Iterator<TOutput2>;
|
|
24
|
+
flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterator<TOutput2>;
|
|
25
|
+
whereInstanceOf<U extends TOutput>(typeCheck: (value: TOutput) => value is U): Iterator<U>;
|
|
26
|
+
whereInstanceOfType<U extends TOutput>(type: Type<U>): Iterator<U>;
|
|
27
|
+
first(condition?: ((value: TOutput) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<TOutput>;
|
|
28
|
+
last(condition?: ((value: TOutput) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<TOutput>;
|
|
29
|
+
take(maximumToTake: number): Iterator<TOutput>;
|
|
30
|
+
skip(maximumToSkip: number): Iterator<TOutput>;
|
|
31
|
+
[Symbol.iterator](): JavascriptIterator<TOutput>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=flatMapIterator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flatMapIterator.d.ts","sourceRoot":"","sources":["../../sources/flatMapIterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzE,OAAO,EAAE,QAAQ,EAAE,M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terator.js";
|
|
3
|
+
import { SyncResult } from "./syncResult.js";
|
|
4
|
+
export class FlatMapIterator {
|
|
5
|
+
innerIterator;
|
|
6
|
+
mapping;
|
|
7
|
+
mappingIterator;
|
|
8
|
+
started;
|
|
9
|
+
constructor(innerIterator, mapping) {
|
|
10
|
+
PreCondition.assertNotUndefinedAndNotNull(innerIterator, "innerIterator");
|
|
11
|
+
PreCondition.assertNotUndefinedAndNotNull(mapping, "mapping");
|
|
12
|
+
this.innerIterator = innerIterator;
|
|
13
|
+
this.mapping = mapping;
|
|
14
|
+
this.started = false;
|
|
15
|
+
}
|
|
16
|
+
static create(innerIterator, mapping) {
|
|
17
|
+
return new FlatMapIterator(innerIterator, mapping);
|
|
18
|
+
}
|
|
19
|
+
next() {
|
|
20
|
+
return SyncResult.create(() => {
|
|
21
|
+
this.innerIterator.start().await();
|
|
22
|
+
while (this.innerIterator.hasCurrent()) {
|
|
23
|
+
if (this.mappingIterator === undefined) {
|
|
24
|
+
this.mappingIterator = Iterator.create(this.mapping(this.innerIterator.getCurrent()));
|
|
25
|
+
}
|
|
26
|
+
if (this.mappingIterator.next().await()) {
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
else if (this.innerIterator.next().await()) {
|
|
30
|
+
this.mappingIterator = undefined;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return this.hasCurrent();
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
hasStarted() {
|
|
37
|
+
return this.started;
|
|
38
|
+
}
|
|
39
|
+
hasCurrent() {
|
|
40
|
+
return this.mappingIterator?.hasCurrent() ?? false;
|
|
41
|
+
}
|
|
42
|
+
getCurrent() {
|
|
43
|
+
PreCondition.assertTrue(this.hasCurrent(), "this.hasCurrent()");
|
|
44
|
+
return this.mappingIterator.getCurrent();
|
|
45
|
+
}
|
|
46
|
+
start() {
|
|
47
|
+
return Iterator.start(this);
|
|
48
|
+
}
|
|
49
|
+
takeCurrent() {
|
|
50
|
+
return Iterator.takeCurrent(this);
|
|
51
|
+
}
|
|
52
|
+
any() {
|
|
53
|
+
return Iterator.any(this);
|
|
54
|
+
}
|
|
55
|
+
getCount() {
|
|
56
|
+
return Iterator.getCount(this);
|
|
57
|
+
}
|
|
58
|
+
toArray() {
|
|
59
|
+
return Iterator.toArray(this);
|
|
60
|
+
}
|
|
61
|
+
concatenate(...toConcatenate) {
|
|
62
|
+
return Iterator.concatenate(this, ...toConcatenate);
|
|
63
|
+
}
|
|
64
|
+
where(condition) {
|
|
65
|
+
return Iterator.where(this, condition);
|
|
66
|
+
}
|
|
67
|
+
map(mapping) {
|
|
68
|
+
return Iterator.map(this, mapping);
|
|
69
|
+
}
|
|
70
|
+
flatMap(mapping) {
|
|
71
|
+
return Iterator.flatMap(this, mapping);
|
|
72
|
+
}
|
|
73
|
+
whereInstanceOf(typeCheck) {
|
|
74
|
+
return Iterator.whereInstanceOf(this, typeCheck);
|
|
75
|
+
}
|
|
76
|
+
whereInstanceOfType(type) {
|
|
77
|
+
return Iterator.whereInstanceOfType(this, type);
|
|
78
|
+
}
|
|
79
|
+
first(condition) {
|
|
80
|
+
return Iterator.first(this, condition);
|
|
81
|
+
}
|
|
82
|
+
last(condition) {
|
|
83
|
+
return Iterator.last(this, condition);
|
|
84
|
+
}
|
|
85
|
+
take(maximumToTake) {
|
|
86
|
+
return Iterator.take(this, maximumToTake);
|
|
87
|
+
}
|
|
88
|
+
skip(maximumToSkip) {
|
|
89
|
+
return Iterator.skip(this, maximumToSkip);
|
|
90
|
+
}
|
|
91
|
+
[Symbol.iterator]() {
|
|
92
|
+
return Iterator[Symbol.iterator](this);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=flatMapIterator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flatMapIterator.js","sourceRoot":"","sources":["../../sources/flatMapIterator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACj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O,CAAC,CAAC;IAC3C,CAAC;IAEM,eAAe,CAAoB,SAAyC;QAE/E,OAAO,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACrD,CAAC;IAEM,mBAAmB,CAAoB,IAAa;QAEvD,OAAO,QAAQ,CAAC,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IAEM,KAAK,CAAC,SAA6E;QAEtF,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IAEM,IAAI,CAAC,SAA6E;QAErF,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC1C,CAAC;IAEM,IAAI,CAAC,aAAqB;QAE7B,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;IAEM,IAAI,CAAC,aAAqB;QAE7B,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC;QAEpB,OAAO,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;CACJ"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Iterator } from "./iterator.js";
|
|
2
|
+
import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
|
|
3
|
+
import { SyncResult } from "./syncResult.js";
|
|
4
|
+
import { Type } from "./types.js";
|
|
5
|
+
/**
|
|
6
|
+
* A control that can be used to interact with a {@link Generator} while it is generating values.
|
|
7
|
+
*/
|
|
8
|
+
export interface GeneratorControl<T> {
|
|
9
|
+
/**
|
|
10
|
+
* Add the provided value to the list of values that the {@link Generator} will return.
|
|
11
|
+
* @param value The value to add to the {@link Generator}'s list of values.
|
|
12
|
+
*/
|
|
13
|
+
addValue(value: T): void;
|
|
14
|
+
/**
|
|
15
|
+
* Add the provided values to the list of values that the {@link Generator} will return.
|
|
16
|
+
* @param returnValues The values to add to the {@link Generator}'s list of values.
|
|
17
|
+
*/
|
|
18
|
+
addValues(returnValues: JavascriptIterable<T>): void;
|
|
19
|
+
/**
|
|
20
|
+
* Get whether the {@link Generator} currently has a value.
|
|
21
|
+
*/
|
|
22
|
+
hasCurrent(): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Get the current value of the {@link Generator}.
|
|
25
|
+
*/
|
|
26
|
+
getCurrent(): T;
|
|
27
|
+
}
|
|
28
|
+
export declare class Generator<T> implements Iterator<T> {
|
|
29
|
+
private readonly control;
|
|
30
|
+
private readonly generatorAction;
|
|
31
|
+
private started;
|
|
32
|
+
private constructor();
|
|
33
|
+
static create<T>(generatorAction: (control: GeneratorControl<T>) => (void | T)): Generator<T>;
|
|
34
|
+
next(): SyncResult<boolean>;
|
|
35
|
+
hasStarted(): boolean;
|
|
36
|
+
hasCurrent(): boolean;
|
|
37
|
+
getCurrent(): T;
|
|
38
|
+
start(): SyncResult<this>;
|
|
39
|
+
takeCurrent(): SyncResult<T>;
|
|
40
|
+
any(): SyncResult<boolean>;
|
|
41
|
+
getCount(): SyncResult<number>;
|
|
42
|
+
toArray(): SyncResult<T[]>;
|
|
43
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator<T>;
|
|
44
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterator<T>;
|
|
45
|
+
map<TOutput>(mapping: (value: T) => TOutput | SyncResult<TOutput>): Iterator<TOutput>;
|
|
46
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
47
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator<U>;
|
|
48
|
+
whereInstanceOfType<U extends T>(type: Type<U>): Iterator<U>;
|
|
49
|
+
first(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
50
|
+
last(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
51
|
+
take(maximumToTake: number): Iterator<T>;
|
|
52
|
+
skip(maximumToSkip: number): Iterator<T>;
|
|
53
|
+
[Symbol.iterator](): JavascriptIterator<T>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../sources/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IAE/B;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,SAAS,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAErD;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC;IAEtB;;OAEG;IACH,UAAU,IAAI,CAAC,CAAC;CACnB;AAmED,qBAAa,SAAS,CAAC,CAAC,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IAE5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2B;IACnD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA+C;IAC/E,OAAO,CAAC,OAAO,CAAU;IAEzB,OAAO,eAON;IAED,OAAc,MAAM,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAGnG;IAEM,IAAI,IAAI,UA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