@nfdi4plants/arctrl 3.0.0-beta.3 → 3.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/ts/index.js +63 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
- package/dist/ts/ts/ARC.js +914 -0
- package/dist/ts/ts/Contract/ARC.js +52 -0
- package/dist/ts/ts/Contract/ArcAssay.js +80 -0
- package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
- package/dist/ts/ts/Contract/ArcRun.js +76 -0
- package/dist/ts/ts/Contract/ArcStudy.js +76 -0
- package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
- package/dist/ts/ts/Contract/Contract.js +45 -0
- package/dist/ts/ts/Contract/Datamap.js +221 -0
- package/dist/ts/ts/Contract/Git.js +57 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
- package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
- package/dist/ts/ts/Conversion.js +1247 -0
- package/dist/ts/ts/Core/ArcTypes.js +3393 -0
- package/dist/ts/ts/Core/Comment.js +91 -0
- package/dist/ts/ts/Core/CommentList.js +27 -0
- package/dist/ts/ts/Core/Conversion.js +923 -0
- package/dist/ts/ts/Core/Data.js +179 -0
- package/dist/ts/ts/Core/DataContext.js +108 -0
- package/dist/ts/ts/Core/DataFile.js +50 -0
- package/dist/ts/ts/Core/DataMap.js +53 -0
- package/dist/ts/ts/Core/Helper/Collections.js +323 -0
- package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
- package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
- package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
- package/dist/ts/ts/Core/Helper/Regex.js +296 -0
- package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
- package/dist/ts/ts/Core/Helper/Url.js +32 -0
- package/dist/ts/ts/Core/IdentifierSetters.js +9 -0
- package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
- package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
- package/dist/ts/ts/Core/Person.js +183 -0
- package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
- package/dist/ts/ts/Core/Process/Component.js +121 -0
- package/dist/ts/ts/Core/Process/Factor.js +104 -0
- package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
- package/dist/ts/ts/Core/Process/Material.js +49 -0
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
- package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
- package/dist/ts/ts/Core/Process/Process.js +136 -0
- package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
- package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
- package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
- package/dist/ts/ts/Core/Process/Protocol.js +54 -0
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
- package/dist/ts/ts/Core/Process/Sample.js +44 -0
- package/dist/ts/ts/Core/Process/Source.js +38 -0
- package/dist/ts/ts/Core/Publication.js +108 -0
- package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
- package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
- package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
- package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
- package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
- package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
- package/dist/ts/ts/Core/Template.js +180 -0
- package/dist/ts/ts/Core/Templates.js +75 -0
- package/dist/ts/ts/Core/URI.js +8 -0
- package/dist/ts/ts/Core/Value.js +194 -0
- package/dist/ts/ts/CrossAsync.js +20 -0
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
- package/dist/ts/ts/FileSystem/Path.js +36 -0
- package/dist/ts/ts/Json/Assay.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +221 -0
- package/dist/ts/ts/Json/Comment.d.ts +1 -1
- package/dist/ts/ts/Json/Comment.js +112 -0
- package/dist/ts/ts/Json/Data.d.ts +1 -1
- package/dist/ts/ts/Json/Data.js +138 -0
- package/dist/ts/ts/Json/DataFile.d.ts +1 -1
- package/dist/ts/ts/Json/DataFile.js +55 -0
- package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
- package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
- package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
- package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
- package/dist/ts/ts/Json/Decode.d.ts +2 -2
- package/dist/ts/ts/Json/Decode.js +209 -0
- package/dist/ts/ts/Json/Encode.d.ts +1 -1
- package/dist/ts/ts/Json/Encode.js +65 -0
- package/dist/ts/ts/Json/IDTable.d.ts +1 -1
- package/dist/ts/ts/Json/IDTable.js +28 -0
- package/dist/ts/ts/Json/Investigation.d.ts +1 -1
- package/dist/ts/ts/Json/Investigation.js +229 -0
- package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
- package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
- package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
- package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
- package/dist/ts/ts/Json/Person.d.ts +1 -1
- package/dist/ts/ts/Json/Person.js +316 -0
- package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
- package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
- package/dist/ts/ts/Json/Process/Component.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Component.js +41 -0
- package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Factor.js +53 -0
- package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
- package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Material.js +112 -0
- package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
- package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
- package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Process.js +103 -0
- package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
- package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
- package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
- package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Protocol.js +166 -0
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +43 -0
- package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Sample.js +165 -0
- package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Source.js +133 -0
- package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
- package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
- package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Value.js +41 -0
- package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +280 -0
- package/dist/ts/ts/Json/Publication.d.ts +1 -1
- package/dist/ts/ts/Json/Publication.js +123 -0
- package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
- package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
- package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
- package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
- package/dist/ts/ts/Json/StringTable.d.ts +1 -1
- package/dist/ts/ts/Json/StringTable.js +66 -0
- package/dist/ts/ts/Json/Study.d.ts +1 -1
- package/dist/ts/ts/Json/Study.js +326 -0
- package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
- package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CellTable.js +53 -0
- package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
- package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
- package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
- package/dist/ts/ts/Json/Table/IOType.js +15 -0
- package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +50 -0
- package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
- package/dist/ts/ts/Json/Table/Templates.js +15 -0
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
- package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
- package/dist/ts/ts/Json.js +171 -0
- package/dist/ts/ts/JsonIO/Assay.js +77 -0
- package/dist/ts/ts/JsonIO/Investigation.js +77 -0
- package/dist/ts/ts/JsonIO/LDObject.js +77 -0
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
- package/dist/ts/ts/JsonIO/Study.js +77 -0
- package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
- package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
- package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
- package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
- package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
- package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
- package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
- package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
- package/dist/ts/ts/ROCrate/Helper.js +7 -0
- package/dist/ts/ts/ROCrate/LDContext.js +288 -0
- package/dist/ts/ts/ROCrate/LDObject.js +855 -0
- package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
- package/dist/ts/ts/ROCrateIO.d.ts +1 -1
- package/dist/ts/ts/ROCrateIO.js +58 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
- package/dist/ts/ts/Template.Web.js +22 -0
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
- package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
- package/dist/ts/ts/Xlsx.d.ts +1 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +91 -0
- package/dist/ts/ts/Yaml/Encode.js +8 -0
- package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
- package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
- package/package.json +10 -7
- package/dist/ts/__vite-browser-external-2447137e.js +0 -4
- package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
- package/dist/ts/arctrl.cjs.js +0 -5691
- package/dist/ts/arctrl.es.js +0 -35562
- package/dist/ts/arctrl.umd.js +0 -5691
|
@@ -0,0 +1,655 @@
|
|
|
1
|
+
import { value, some } from './Option.js';
|
|
2
|
+
import { isArrayLike, getEnumerator, disposeSafe, equals, toIterator, structuralHash, compare } from './Util.js';
|
|
3
|
+
import { FSharpList, fold, singleton, isEmpty, head, tail, ofArrayWithTail, empty as empty$1 } from './List.js';
|
|
4
|
+
import { item, setItem } from './Array.js';
|
|
5
|
+
import { Record } from './Types.js';
|
|
6
|
+
import { map, compareWith, iterate } from './Seq.js';
|
|
7
|
+
import { join, format } from './String.js';
|
|
8
|
+
|
|
9
|
+
class MapTreeLeaf$2 {
|
|
10
|
+
constructor(k, v) {
|
|
11
|
+
this.k = k;
|
|
12
|
+
this.v = v;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function MapTreeLeaf$2_$ctor_5BDDA1(k, v) {
|
|
16
|
+
return new MapTreeLeaf$2(k, v);
|
|
17
|
+
}
|
|
18
|
+
function MapTreeLeaf$2__get_Key(_) {
|
|
19
|
+
return _.k;
|
|
20
|
+
}
|
|
21
|
+
function MapTreeLeaf$2__get_Value(_) {
|
|
22
|
+
return _.v;
|
|
23
|
+
}
|
|
24
|
+
class MapTreeNode$2 extends MapTreeLeaf$2 {
|
|
25
|
+
constructor(k, v, left, right, h) {
|
|
26
|
+
super(k, v);
|
|
27
|
+
this.left = left;
|
|
28
|
+
this.right = right;
|
|
29
|
+
this.h = (h | 0);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function MapTreeNode$2_$ctor_Z39DE9543(k, v, left, right, h) {
|
|
33
|
+
return new MapTreeNode$2(k, v, left, right, h);
|
|
34
|
+
}
|
|
35
|
+
function MapTreeNode$2__get_Left(_) {
|
|
36
|
+
return _.left;
|
|
37
|
+
}
|
|
38
|
+
function MapTreeNode$2__get_Right(_) {
|
|
39
|
+
return _.right;
|
|
40
|
+
}
|
|
41
|
+
function MapTreeNode$2__get_Height(_) {
|
|
42
|
+
return _.h;
|
|
43
|
+
}
|
|
44
|
+
function MapTreeModule_empty() {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
function MapTreeModule_sizeAux(acc_mut, m_mut) {
|
|
48
|
+
MapTreeModule_sizeAux: while (true) {
|
|
49
|
+
const acc = acc_mut, m = m_mut;
|
|
50
|
+
if (m != null) {
|
|
51
|
+
const m2 = value(m);
|
|
52
|
+
if (m2 instanceof MapTreeNode$2) {
|
|
53
|
+
const mn = m2;
|
|
54
|
+
acc_mut = MapTreeModule_sizeAux(acc + 1, MapTreeNode$2__get_Left(mn));
|
|
55
|
+
m_mut = MapTreeNode$2__get_Right(mn);
|
|
56
|
+
continue MapTreeModule_sizeAux;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
return (acc + 1) | 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return acc | 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function MapTreeModule_size(x) {
|
|
68
|
+
return MapTreeModule_sizeAux(0, x);
|
|
69
|
+
}
|
|
70
|
+
function MapTreeModule_mk(l, k, v, r) {
|
|
71
|
+
let mn, mn_1;
|
|
72
|
+
let hl;
|
|
73
|
+
const m = l;
|
|
74
|
+
if (m != null) {
|
|
75
|
+
const m2 = value(m);
|
|
76
|
+
hl = ((m2 instanceof MapTreeNode$2) ? ((mn = m2, MapTreeNode$2__get_Height(mn))) : 1);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
hl = 0;
|
|
80
|
+
}
|
|
81
|
+
let hr;
|
|
82
|
+
const m_1 = r;
|
|
83
|
+
if (m_1 != null) {
|
|
84
|
+
const m2_1 = value(m_1);
|
|
85
|
+
hr = ((m2_1 instanceof MapTreeNode$2) ? ((mn_1 = m2_1, MapTreeNode$2__get_Height(mn_1))) : 1);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
hr = 0;
|
|
89
|
+
}
|
|
90
|
+
const m_2 = ((hl < hr) ? hr : hl) | 0;
|
|
91
|
+
if (m_2 === 0) {
|
|
92
|
+
return MapTreeLeaf$2_$ctor_5BDDA1(k, v);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
return MapTreeNode$2_$ctor_Z39DE9543(k, v, l, r, m_2 + 1);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function MapTreeModule_rebalance(t1, k, v, t2) {
|
|
99
|
+
let mn, mn_1, m_2, m2_2, mn_2, m_3, m2_3, mn_3;
|
|
100
|
+
let t1h;
|
|
101
|
+
const m = t1;
|
|
102
|
+
if (m != null) {
|
|
103
|
+
const m2 = value(m);
|
|
104
|
+
t1h = ((m2 instanceof MapTreeNode$2) ? ((mn = m2, MapTreeNode$2__get_Height(mn))) : 1);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
t1h = 0;
|
|
108
|
+
}
|
|
109
|
+
let t2h;
|
|
110
|
+
const m_1 = t2;
|
|
111
|
+
if (m_1 != null) {
|
|
112
|
+
const m2_1 = value(m_1);
|
|
113
|
+
t2h = ((m2_1 instanceof MapTreeNode$2) ? ((mn_1 = m2_1, MapTreeNode$2__get_Height(mn_1))) : 1);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
t2h = 0;
|
|
117
|
+
}
|
|
118
|
+
if (t2h > (t1h + 2)) {
|
|
119
|
+
const matchValue = value(t2);
|
|
120
|
+
if (matchValue instanceof MapTreeNode$2) {
|
|
121
|
+
const t2$0027 = matchValue;
|
|
122
|
+
if (((m_2 = MapTreeNode$2__get_Left(t2$0027), (m_2 != null) ? ((m2_2 = value(m_2), (m2_2 instanceof MapTreeNode$2) ? ((mn_2 = m2_2, MapTreeNode$2__get_Height(mn_2))) : 1)) : 0)) > (t1h + 1)) {
|
|
123
|
+
const matchValue_1 = value(MapTreeNode$2__get_Left(t2$0027));
|
|
124
|
+
if (matchValue_1 instanceof MapTreeNode$2) {
|
|
125
|
+
const t2l = matchValue_1;
|
|
126
|
+
return MapTreeModule_mk(MapTreeModule_mk(t1, k, v, MapTreeNode$2__get_Left(t2l)), MapTreeLeaf$2__get_Key(t2l), MapTreeLeaf$2__get_Value(t2l), MapTreeModule_mk(MapTreeNode$2__get_Right(t2l), MapTreeLeaf$2__get_Key(t2$0027), MapTreeLeaf$2__get_Value(t2$0027), MapTreeNode$2__get_Right(t2$0027)));
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
throw new Error("internal error: Map.rebalance");
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return MapTreeModule_mk(MapTreeModule_mk(t1, k, v, MapTreeNode$2__get_Left(t2$0027)), MapTreeLeaf$2__get_Key(t2$0027), MapTreeLeaf$2__get_Value(t2$0027), MapTreeNode$2__get_Right(t2$0027));
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
throw new Error("internal error: Map.rebalance");
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
else if (t1h > (t2h + 2)) {
|
|
141
|
+
const matchValue_2 = value(t1);
|
|
142
|
+
if (matchValue_2 instanceof MapTreeNode$2) {
|
|
143
|
+
const t1$0027 = matchValue_2;
|
|
144
|
+
if (((m_3 = MapTreeNode$2__get_Right(t1$0027), (m_3 != null) ? ((m2_3 = value(m_3), (m2_3 instanceof MapTreeNode$2) ? ((mn_3 = m2_3, MapTreeNode$2__get_Height(mn_3))) : 1)) : 0)) > (t2h + 1)) {
|
|
145
|
+
const matchValue_3 = value(MapTreeNode$2__get_Right(t1$0027));
|
|
146
|
+
if (matchValue_3 instanceof MapTreeNode$2) {
|
|
147
|
+
const t1r = matchValue_3;
|
|
148
|
+
return MapTreeModule_mk(MapTreeModule_mk(MapTreeNode$2__get_Left(t1$0027), MapTreeLeaf$2__get_Key(t1$0027), MapTreeLeaf$2__get_Value(t1$0027), MapTreeNode$2__get_Left(t1r)), MapTreeLeaf$2__get_Key(t1r), MapTreeLeaf$2__get_Value(t1r), MapTreeModule_mk(MapTreeNode$2__get_Right(t1r), k, v, t2));
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
throw new Error("internal error: Map.rebalance");
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
return MapTreeModule_mk(MapTreeNode$2__get_Left(t1$0027), MapTreeLeaf$2__get_Key(t1$0027), MapTreeLeaf$2__get_Value(t1$0027), MapTreeModule_mk(MapTreeNode$2__get_Right(t1$0027), k, v, t2));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
throw new Error("internal error: Map.rebalance");
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
return MapTreeModule_mk(t1, k, v, t2);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function MapTreeModule_add(comparer, k, v, m) {
|
|
167
|
+
if (m != null) {
|
|
168
|
+
const m2 = value(m);
|
|
169
|
+
const c = comparer.Compare(k, MapTreeLeaf$2__get_Key(m2)) | 0;
|
|
170
|
+
if (m2 instanceof MapTreeNode$2) {
|
|
171
|
+
const mn = m2;
|
|
172
|
+
if (c < 0) {
|
|
173
|
+
return MapTreeModule_rebalance(MapTreeModule_add(comparer, k, v, MapTreeNode$2__get_Left(mn)), MapTreeLeaf$2__get_Key(mn), MapTreeLeaf$2__get_Value(mn), MapTreeNode$2__get_Right(mn));
|
|
174
|
+
}
|
|
175
|
+
else if (c === 0) {
|
|
176
|
+
return MapTreeNode$2_$ctor_Z39DE9543(k, v, MapTreeNode$2__get_Left(mn), MapTreeNode$2__get_Right(mn), MapTreeNode$2__get_Height(mn));
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
return MapTreeModule_rebalance(MapTreeNode$2__get_Left(mn), MapTreeLeaf$2__get_Key(mn), MapTreeLeaf$2__get_Value(mn), MapTreeModule_add(comparer, k, v, MapTreeNode$2__get_Right(mn)));
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
else if (c < 0) {
|
|
183
|
+
return MapTreeNode$2_$ctor_Z39DE9543(k, v, MapTreeModule_empty(), m, 2);
|
|
184
|
+
}
|
|
185
|
+
else if (c === 0) {
|
|
186
|
+
return MapTreeLeaf$2_$ctor_5BDDA1(k, v);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
return MapTreeNode$2_$ctor_Z39DE9543(k, v, m, MapTreeModule_empty(), 2);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
return MapTreeLeaf$2_$ctor_5BDDA1(k, v);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
function MapTreeModule_tryFind(comparer_mut, k_mut, m_mut) {
|
|
197
|
+
MapTreeModule_tryFind: while (true) {
|
|
198
|
+
const comparer = comparer_mut, k = k_mut, m = m_mut;
|
|
199
|
+
if (m != null) {
|
|
200
|
+
const m2 = value(m);
|
|
201
|
+
const c = comparer.Compare(k, MapTreeLeaf$2__get_Key(m2)) | 0;
|
|
202
|
+
if (c === 0) {
|
|
203
|
+
return some(MapTreeLeaf$2__get_Value(m2));
|
|
204
|
+
}
|
|
205
|
+
else if (m2 instanceof MapTreeNode$2) {
|
|
206
|
+
const mn = m2;
|
|
207
|
+
comparer_mut = comparer;
|
|
208
|
+
k_mut = k;
|
|
209
|
+
m_mut = ((c < 0) ? MapTreeNode$2__get_Left(mn) : MapTreeNode$2__get_Right(mn));
|
|
210
|
+
continue MapTreeModule_tryFind;
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
return undefined;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
return undefined;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function MapTreeModule_find(comparer, k, m) {
|
|
222
|
+
const matchValue = MapTreeModule_tryFind(comparer, k, m);
|
|
223
|
+
if (matchValue == null) {
|
|
224
|
+
throw new Error();
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
return value(matchValue);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
function MapTreeModule_mem(comparer_mut, k_mut, m_mut) {
|
|
231
|
+
MapTreeModule_mem: while (true) {
|
|
232
|
+
const comparer = comparer_mut, k = k_mut, m = m_mut;
|
|
233
|
+
if (m != null) {
|
|
234
|
+
const m2 = value(m);
|
|
235
|
+
const c = comparer.Compare(k, MapTreeLeaf$2__get_Key(m2)) | 0;
|
|
236
|
+
if (m2 instanceof MapTreeNode$2) {
|
|
237
|
+
const mn = m2;
|
|
238
|
+
if (c < 0) {
|
|
239
|
+
comparer_mut = comparer;
|
|
240
|
+
k_mut = k;
|
|
241
|
+
m_mut = MapTreeNode$2__get_Left(mn);
|
|
242
|
+
continue MapTreeModule_mem;
|
|
243
|
+
}
|
|
244
|
+
else if (c === 0) {
|
|
245
|
+
return true;
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
comparer_mut = comparer;
|
|
249
|
+
k_mut = k;
|
|
250
|
+
m_mut = MapTreeNode$2__get_Right(mn);
|
|
251
|
+
continue MapTreeModule_mem;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
return c === 0;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
return false;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
function MapTreeModule_iterOpt(f_mut, m_mut) {
|
|
264
|
+
MapTreeModule_iterOpt: while (true) {
|
|
265
|
+
const f = f_mut, m = m_mut;
|
|
266
|
+
if (m != null) {
|
|
267
|
+
const m2 = value(m);
|
|
268
|
+
if (m2 instanceof MapTreeNode$2) {
|
|
269
|
+
const mn = m2;
|
|
270
|
+
MapTreeModule_iterOpt(f, MapTreeNode$2__get_Left(mn));
|
|
271
|
+
f(MapTreeLeaf$2__get_Key(mn), MapTreeLeaf$2__get_Value(mn));
|
|
272
|
+
f_mut = f;
|
|
273
|
+
m_mut = MapTreeNode$2__get_Right(mn);
|
|
274
|
+
continue MapTreeModule_iterOpt;
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
f(MapTreeLeaf$2__get_Key(m2), MapTreeLeaf$2__get_Value(m2));
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
function MapTreeModule_iter(f, m) {
|
|
284
|
+
MapTreeModule_iterOpt(f, m);
|
|
285
|
+
}
|
|
286
|
+
function MapTreeModule_copyToArray(m, arr, i) {
|
|
287
|
+
let j = i;
|
|
288
|
+
MapTreeModule_iter((x, y) => {
|
|
289
|
+
setItem(arr, j, [x, y]);
|
|
290
|
+
j = ((j + 1) | 0);
|
|
291
|
+
}, m);
|
|
292
|
+
}
|
|
293
|
+
function MapTreeModule_ofList(comparer, l) {
|
|
294
|
+
return fold((acc, tupledArg) => MapTreeModule_add(comparer, tupledArg[0], tupledArg[1], acc), MapTreeModule_empty(), l);
|
|
295
|
+
}
|
|
296
|
+
function MapTreeModule_mkFromEnumerator(comparer_mut, acc_mut, e_mut) {
|
|
297
|
+
MapTreeModule_mkFromEnumerator: while (true) {
|
|
298
|
+
const comparer = comparer_mut, acc = acc_mut, e = e_mut;
|
|
299
|
+
if (e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
300
|
+
const patternInput = e["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
301
|
+
comparer_mut = comparer;
|
|
302
|
+
acc_mut = MapTreeModule_add(comparer, patternInput[0], patternInput[1], acc);
|
|
303
|
+
e_mut = e;
|
|
304
|
+
continue MapTreeModule_mkFromEnumerator;
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
return acc;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
function MapTreeModule_ofArray(comparer, arr) {
|
|
312
|
+
let res = MapTreeModule_empty();
|
|
313
|
+
for (let idx = 0; idx <= (arr.length - 1); idx++) {
|
|
314
|
+
const forLoopVar = item(idx, arr);
|
|
315
|
+
res = MapTreeModule_add(comparer, forLoopVar[0], forLoopVar[1], res);
|
|
316
|
+
}
|
|
317
|
+
return res;
|
|
318
|
+
}
|
|
319
|
+
function MapTreeModule_ofSeq(comparer, c) {
|
|
320
|
+
if (isArrayLike(c)) {
|
|
321
|
+
return MapTreeModule_ofArray(comparer, c);
|
|
322
|
+
}
|
|
323
|
+
else if (c instanceof FSharpList) {
|
|
324
|
+
return MapTreeModule_ofList(comparer, c);
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
const ie = getEnumerator(c);
|
|
328
|
+
try {
|
|
329
|
+
return MapTreeModule_mkFromEnumerator(comparer, MapTreeModule_empty(), ie);
|
|
330
|
+
}
|
|
331
|
+
finally {
|
|
332
|
+
disposeSafe(ie);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
class MapTreeModule_MapIterator$2 extends Record {
|
|
337
|
+
constructor(stack, started) {
|
|
338
|
+
super();
|
|
339
|
+
this.stack = stack;
|
|
340
|
+
this.started = started;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
function MapTreeModule_collapseLHS(stack_mut) {
|
|
344
|
+
MapTreeModule_collapseLHS: while (true) {
|
|
345
|
+
const stack = stack_mut;
|
|
346
|
+
if (!isEmpty(stack)) {
|
|
347
|
+
const rest = tail(stack);
|
|
348
|
+
const m = head(stack);
|
|
349
|
+
if (m != null) {
|
|
350
|
+
const m2 = value(m);
|
|
351
|
+
if (m2 instanceof MapTreeNode$2) {
|
|
352
|
+
const mn = m2;
|
|
353
|
+
stack_mut = ofArrayWithTail([MapTreeNode$2__get_Left(mn), MapTreeLeaf$2_$ctor_5BDDA1(MapTreeLeaf$2__get_Key(mn), MapTreeLeaf$2__get_Value(mn)), MapTreeNode$2__get_Right(mn)], rest);
|
|
354
|
+
continue MapTreeModule_collapseLHS;
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
return stack;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
else {
|
|
361
|
+
stack_mut = rest;
|
|
362
|
+
continue MapTreeModule_collapseLHS;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
else {
|
|
366
|
+
return empty$1();
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
function MapTreeModule_mkIterator(m) {
|
|
371
|
+
return new MapTreeModule_MapIterator$2(MapTreeModule_collapseLHS(singleton(m)), false);
|
|
372
|
+
}
|
|
373
|
+
function MapTreeModule_notStarted() {
|
|
374
|
+
throw new Error("enumeration not started");
|
|
375
|
+
}
|
|
376
|
+
function MapTreeModule_alreadyFinished() {
|
|
377
|
+
throw new Error("enumeration already finished");
|
|
378
|
+
}
|
|
379
|
+
function MapTreeModule_current(i) {
|
|
380
|
+
if (i.started) {
|
|
381
|
+
const matchValue = i.stack;
|
|
382
|
+
if (!isEmpty(matchValue)) {
|
|
383
|
+
if (head(matchValue) != null) {
|
|
384
|
+
const m = value(head(matchValue));
|
|
385
|
+
if (m instanceof MapTreeNode$2) {
|
|
386
|
+
throw new Error("Please report error: Map iterator, unexpected stack for current");
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
return [MapTreeLeaf$2__get_Key(m), MapTreeLeaf$2__get_Value(m)];
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
else {
|
|
393
|
+
throw new Error("Please report error: Map iterator, unexpected stack for current");
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
else {
|
|
397
|
+
return MapTreeModule_alreadyFinished();
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
return MapTreeModule_notStarted();
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
function MapTreeModule_moveNext(i) {
|
|
405
|
+
if (i.started) {
|
|
406
|
+
const matchValue = i.stack;
|
|
407
|
+
if (!isEmpty(matchValue)) {
|
|
408
|
+
if (head(matchValue) != null) {
|
|
409
|
+
const m = value(head(matchValue));
|
|
410
|
+
if (m instanceof MapTreeNode$2) {
|
|
411
|
+
throw new Error("Please report error: Map iterator, unexpected stack for moveNext");
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
i.stack = MapTreeModule_collapseLHS(tail(matchValue));
|
|
415
|
+
return !isEmpty(i.stack);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
else {
|
|
419
|
+
throw new Error("Please report error: Map iterator, unexpected stack for moveNext");
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
else {
|
|
423
|
+
return false;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
i.started = true;
|
|
428
|
+
return !isEmpty(i.stack);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function MapTreeModule_mkIEnumerator(m) {
|
|
432
|
+
let i = MapTreeModule_mkIterator(m);
|
|
433
|
+
return {
|
|
434
|
+
"System.Collections.Generic.IEnumerator`1.get_Current"() {
|
|
435
|
+
return MapTreeModule_current(i);
|
|
436
|
+
},
|
|
437
|
+
"System.Collections.IEnumerator.get_Current"() {
|
|
438
|
+
return MapTreeModule_current(i);
|
|
439
|
+
},
|
|
440
|
+
"System.Collections.IEnumerator.MoveNext"() {
|
|
441
|
+
return MapTreeModule_moveNext(i);
|
|
442
|
+
},
|
|
443
|
+
"System.Collections.IEnumerator.Reset"() {
|
|
444
|
+
i = MapTreeModule_mkIterator(m);
|
|
445
|
+
},
|
|
446
|
+
Dispose() {
|
|
447
|
+
},
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
class FSharpMap {
|
|
451
|
+
constructor(comparer, tree) {
|
|
452
|
+
this.comparer = comparer;
|
|
453
|
+
this.tree = tree;
|
|
454
|
+
}
|
|
455
|
+
GetHashCode() {
|
|
456
|
+
const this$ = this;
|
|
457
|
+
return FSharpMap__ComputeHashCode(this$) | 0;
|
|
458
|
+
}
|
|
459
|
+
Equals(that) {
|
|
460
|
+
const this$ = this;
|
|
461
|
+
if (that instanceof FSharpMap) {
|
|
462
|
+
const that_1 = that;
|
|
463
|
+
const e1 = getEnumerator(this$);
|
|
464
|
+
try {
|
|
465
|
+
const e2 = getEnumerator(that_1);
|
|
466
|
+
try {
|
|
467
|
+
const loop = () => {
|
|
468
|
+
const m1 = e1["System.Collections.IEnumerator.MoveNext"]();
|
|
469
|
+
if (m1 === e2["System.Collections.IEnumerator.MoveNext"]()) {
|
|
470
|
+
if (!m1) {
|
|
471
|
+
return true;
|
|
472
|
+
}
|
|
473
|
+
else {
|
|
474
|
+
const e1c = e1["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
475
|
+
const e2c = e2["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
476
|
+
if (equals(e1c[0], e2c[0]) && equals(e1c[1], e2c[1])) {
|
|
477
|
+
return loop();
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
return false;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
return false;
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
return loop();
|
|
489
|
+
}
|
|
490
|
+
finally {
|
|
491
|
+
disposeSafe(e2);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
finally {
|
|
495
|
+
disposeSafe(e1);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
else {
|
|
499
|
+
return false;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
toString() {
|
|
503
|
+
const this$ = this;
|
|
504
|
+
return ("map [" + join("; ", map((kv) => format("({0}, {1})", kv[0], kv[1]), this$))) + "]";
|
|
505
|
+
}
|
|
506
|
+
get [Symbol.toStringTag]() {
|
|
507
|
+
return "FSharpMap";
|
|
508
|
+
}
|
|
509
|
+
toJSON() {
|
|
510
|
+
const this$ = this;
|
|
511
|
+
return Array.from(this$);
|
|
512
|
+
}
|
|
513
|
+
GetEnumerator() {
|
|
514
|
+
const _ = this;
|
|
515
|
+
return MapTreeModule_mkIEnumerator(_.tree);
|
|
516
|
+
}
|
|
517
|
+
[Symbol.iterator]() {
|
|
518
|
+
return toIterator(getEnumerator(this));
|
|
519
|
+
}
|
|
520
|
+
"System.Collections.IEnumerable.GetEnumerator"() {
|
|
521
|
+
const _ = this;
|
|
522
|
+
return MapTreeModule_mkIEnumerator(_.tree);
|
|
523
|
+
}
|
|
524
|
+
CompareTo(obj) {
|
|
525
|
+
const m = this;
|
|
526
|
+
if (obj instanceof FSharpMap) {
|
|
527
|
+
const m2 = obj;
|
|
528
|
+
return compareWith((kvp1, kvp2) => {
|
|
529
|
+
const c = m.comparer.Compare(kvp1[0], kvp2[0]) | 0;
|
|
530
|
+
return ((c !== 0) ? c : compare(kvp1[1], kvp2[1])) | 0;
|
|
531
|
+
}, m, m2) | 0;
|
|
532
|
+
}
|
|
533
|
+
else {
|
|
534
|
+
throw new Error("not comparable\\nParameter name: obj");
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
"System.Collections.Generic.ICollection`1.Add2B595"(x) {
|
|
538
|
+
throw new Error("Map cannot be mutated");
|
|
539
|
+
}
|
|
540
|
+
"System.Collections.Generic.ICollection`1.Clear"() {
|
|
541
|
+
throw new Error("Map cannot be mutated");
|
|
542
|
+
}
|
|
543
|
+
"System.Collections.Generic.ICollection`1.Remove2B595"(x) {
|
|
544
|
+
throw new Error("Map cannot be mutated");
|
|
545
|
+
}
|
|
546
|
+
"System.Collections.Generic.ICollection`1.Contains2B595"(x) {
|
|
547
|
+
const m = this;
|
|
548
|
+
return FSharpMap__ContainsKey(m, x[0]) && equals(FSharpMap__get_Item(m, x[0]), x[1]);
|
|
549
|
+
}
|
|
550
|
+
"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(arr, i) {
|
|
551
|
+
const m = this;
|
|
552
|
+
MapTreeModule_copyToArray(m.tree, arr, i);
|
|
553
|
+
}
|
|
554
|
+
"System.Collections.Generic.ICollection`1.get_IsReadOnly"() {
|
|
555
|
+
return true;
|
|
556
|
+
}
|
|
557
|
+
"System.Collections.Generic.ICollection`1.get_Count"() {
|
|
558
|
+
const m = this;
|
|
559
|
+
return FSharpMap__get_Count(m) | 0;
|
|
560
|
+
}
|
|
561
|
+
"System.Collections.Generic.IReadOnlyCollection`1.get_Count"() {
|
|
562
|
+
const m = this;
|
|
563
|
+
return FSharpMap__get_Count(m) | 0;
|
|
564
|
+
}
|
|
565
|
+
get size() {
|
|
566
|
+
const m = this;
|
|
567
|
+
return FSharpMap__get_Count(m) | 0;
|
|
568
|
+
}
|
|
569
|
+
clear() {
|
|
570
|
+
throw new Error("Map cannot be mutated");
|
|
571
|
+
}
|
|
572
|
+
delete(_arg) {
|
|
573
|
+
throw new Error("Map cannot be mutated");
|
|
574
|
+
}
|
|
575
|
+
entries() {
|
|
576
|
+
const m = this;
|
|
577
|
+
return map((p) => [p[0], p[1]], m);
|
|
578
|
+
}
|
|
579
|
+
get(k) {
|
|
580
|
+
const m = this;
|
|
581
|
+
return FSharpMap__get_Item(m, k);
|
|
582
|
+
}
|
|
583
|
+
has(k) {
|
|
584
|
+
const m = this;
|
|
585
|
+
return FSharpMap__ContainsKey(m, k);
|
|
586
|
+
}
|
|
587
|
+
keys() {
|
|
588
|
+
const m = this;
|
|
589
|
+
return map((p) => p[0], m);
|
|
590
|
+
}
|
|
591
|
+
set(k, v) {
|
|
592
|
+
throw new Error("Map cannot be mutated");
|
|
593
|
+
}
|
|
594
|
+
values() {
|
|
595
|
+
const m = this;
|
|
596
|
+
return map((p) => p[1], m);
|
|
597
|
+
}
|
|
598
|
+
forEach(f, thisArg) {
|
|
599
|
+
const m = this;
|
|
600
|
+
iterate((p) => {
|
|
601
|
+
f(p[1], p[0], m);
|
|
602
|
+
}, m);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
function FSharpMap_$ctor(comparer, tree) {
|
|
606
|
+
return new FSharpMap(comparer, tree);
|
|
607
|
+
}
|
|
608
|
+
function FSharpMap_Empty(comparer) {
|
|
609
|
+
return FSharpMap_$ctor(comparer, MapTreeModule_empty());
|
|
610
|
+
}
|
|
611
|
+
function FSharpMap__get_Item(m, key) {
|
|
612
|
+
return MapTreeModule_find(m.comparer, key, m.tree);
|
|
613
|
+
}
|
|
614
|
+
function FSharpMap__get_Count(m) {
|
|
615
|
+
return MapTreeModule_size(m.tree);
|
|
616
|
+
}
|
|
617
|
+
function FSharpMap__ContainsKey(m, key) {
|
|
618
|
+
return MapTreeModule_mem(m.comparer, key, m.tree);
|
|
619
|
+
}
|
|
620
|
+
function FSharpMap__TryFind(m, key) {
|
|
621
|
+
return MapTreeModule_tryFind(m.comparer, key, m.tree);
|
|
622
|
+
}
|
|
623
|
+
function FSharpMap__ComputeHashCode(this$) {
|
|
624
|
+
const combineHash = (x, y) => (((x << 1) + y) + 631);
|
|
625
|
+
let res = 0;
|
|
626
|
+
const enumerator = getEnumerator(this$);
|
|
627
|
+
try {
|
|
628
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
629
|
+
const activePatternResult = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
630
|
+
res = (combineHash(res, structuralHash(activePatternResult[0])) | 0);
|
|
631
|
+
res = (combineHash(res, structuralHash(activePatternResult[1])) | 0);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
finally {
|
|
635
|
+
disposeSafe(enumerator);
|
|
636
|
+
}
|
|
637
|
+
return res | 0;
|
|
638
|
+
}
|
|
639
|
+
function tryFind(key, table) {
|
|
640
|
+
return FSharpMap__TryFind(table, key);
|
|
641
|
+
}
|
|
642
|
+
function ofList(elements, comparer) {
|
|
643
|
+
return FSharpMap_$ctor(comparer, MapTreeModule_ofSeq(comparer, elements));
|
|
644
|
+
}
|
|
645
|
+
function ofSeq(elements, comparer) {
|
|
646
|
+
return FSharpMap_$ctor(comparer, MapTreeModule_ofSeq(comparer, elements));
|
|
647
|
+
}
|
|
648
|
+
function ofArray(elements, comparer) {
|
|
649
|
+
return FSharpMap_$ctor(comparer, MapTreeModule_ofSeq(comparer, elements));
|
|
650
|
+
}
|
|
651
|
+
function empty(comparer) {
|
|
652
|
+
return FSharpMap_Empty(comparer);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export { FSharpMap, FSharpMap_$ctor, FSharpMap_Empty, FSharpMap__ComputeHashCode, FSharpMap__ContainsKey, FSharpMap__TryFind, FSharpMap__get_Count, FSharpMap__get_Item, MapTreeLeaf$2, MapTreeLeaf$2_$ctor_5BDDA1, MapTreeLeaf$2__get_Key, MapTreeLeaf$2__get_Value, MapTreeModule_MapIterator$2, MapTreeModule_add, MapTreeModule_alreadyFinished, MapTreeModule_collapseLHS, MapTreeModule_copyToArray, MapTreeModule_current, MapTreeModule_empty, MapTreeModule_find, MapTreeModule_iter, MapTreeModule_iterOpt, MapTreeModule_mem, MapTreeModule_mk, MapTreeModule_mkFromEnumerator, MapTreeModule_mkIEnumerator, MapTreeModule_mkIterator, MapTreeModule_moveNext, MapTreeModule_notStarted, MapTreeModule_ofArray, MapTreeModule_ofList, MapTreeModule_ofSeq, MapTreeModule_rebalance, MapTreeModule_size, MapTreeModule_sizeAux, MapTreeModule_tryFind, MapTreeNode$2, MapTreeNode$2_$ctor_Z39DE9543, MapTreeNode$2__get_Height, MapTreeNode$2__get_Left, MapTreeNode$2__get_Right, empty, ofArray, ofList, ofSeq, tryFind };
|