@nfdi4plants/arctrl 3.2.2 → 3.3.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/README.md +0 -64
- package/dist/ts/index.d.ts +44 -7
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +45 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
- package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
- package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
- package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
- package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
- package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
- package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
- package/dist/ts/ts/ARC.d.ts +22 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +282 -185
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
- package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
- package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLTypes.js +887 -201
- package/dist/ts/ts/CWL/Decode.d.ts +480 -211
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Decode.js +3614 -2462
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
- package/dist/ts/ts/CWL/Encode.d.ts +225 -85
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Encode.js +1858 -970
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
- package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
- package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/HashHelpers.js +255 -6
- package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
- package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Inputs.js +107 -16
- package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
- package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/OperationDescription.js +35 -9
- package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
- package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Outputs.js +101 -19
- package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
- package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterReference.js +18 -25
- package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
- package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterValue.js +59 -35
- package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
- package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Requirements.js +462 -89
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ToolDescription.js +34 -13
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
- package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
- package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
- package/dist/ts/ts/CWLRunResolver.js +221 -86
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +13 -14
- package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcAssay.js +4 -4
- package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
- package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
- package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcRun.js +47 -20
- package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcStudy.js +4 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
- package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Datamap.js +16 -17
- package/dist/ts/ts/Contract/Git.js +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
- package/dist/ts/ts/ContractIO/ContractIO.d.ts +7 -0
- package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +95 -18
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -0
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +12 -5
- package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Assay.js +26 -18
- package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
- package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Basic.js +55 -31
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
- package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/DateTime.js +1 -2
- package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Investigation.js +15 -14
- package/dist/ts/ts/Conversion/Person.js +11 -11
- package/dist/ts/ts/Conversion/Process.d.ts +4 -2
- package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Process.js +134 -97
- package/dist/ts/ts/Conversion/Run.d.ts +36 -6
- package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Run.js +320 -136
- package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
- package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Study.js +23 -12
- package/dist/ts/ts/Conversion/Table.d.ts +3 -2
- package/dist/ts/ts/Conversion/Table.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Table.js +8 -8
- package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
- package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Workflow.js +655 -163
- package/dist/ts/ts/Conversion.js +6 -6
- package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +219 -129
- package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Core/Comment.js +2 -2
- package/dist/ts/ts/Core/CommentList.js +7 -7
- package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
- package/dist/ts/ts/Core/Conversion.js +68 -59
- package/dist/ts/ts/Core/Data.d.ts +6 -0
- package/dist/ts/ts/Core/Data.d.ts.map +1 -1
- package/dist/ts/ts/Core/Data.js +32 -12
- package/dist/ts/ts/Core/DataContext.d.ts +1 -1
- package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataContext.js +4 -4
- package/dist/ts/ts/Core/DataFile.d.ts +11 -8
- package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataFile.js +55 -61
- package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Core/Datamap.js +2 -3
- package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Collections.js +2 -4
- package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
- package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
- package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Regex.js +52 -53
- package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
- package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
- package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Url.js +1 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
- package/dist/ts/ts/Core/Person.d.ts.map +1 -1
- package/dist/ts/ts/Core/Person.js +2 -2
- package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
- package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Component.js +22 -22
- package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Factor.js +7 -7
- package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
- package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Material.js +2 -2
- package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
- package/dist/ts/ts/Core/Process/Process.js +21 -21
- package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
- package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
- package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Protocol.js +9 -9
- package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Core/Publication.js +3 -3
- package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/ScalarValue.js +9 -13
- package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.js +59 -70
- package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
- package/dist/ts/ts/Core/Table/CompositeCell.d.ts +4 -0
- package/dist/ts/ts/Core/Table/CompositeCell.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/CompositeCell.js +39 -2
- package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
- package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
- package/dist/ts/ts/Core/Templates.js +2 -2
- package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +37 -19
- package/dist/ts/ts/Json/Assay.js +22 -22
- package/dist/ts/ts/Json/Comment.js +9 -9
- package/dist/ts/ts/Json/Data.d.ts.map +1 -1
- package/dist/ts/ts/Json/Data.js +11 -11
- package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
- package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
- package/dist/ts/ts/Json/Decode.js +3 -5
- package/dist/ts/ts/Json/Encode.js +2 -2
- package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/Json/Investigation.js +20 -20
- package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
- package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
- package/dist/ts/ts/Json/Person.d.ts.map +1 -1
- package/dist/ts/ts/Json/Person.js +20 -20
- package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +5 -6
- package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Factor.js +7 -7
- package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
- package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Material.js +9 -10
- package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
- package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Process.js +8 -9
- package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
- package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Protocol.js +17 -17
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Sample.js +9 -9
- package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Source.js +10 -11
- package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
- package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +24 -24
- package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Json/Publication.js +10 -10
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
- package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
- package/dist/ts/ts/Json/Run.js +9 -9
- package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
- package/dist/ts/ts/Json/StringTable.js +4 -7
- package/dist/ts/ts/Json/Study.js +20 -20
- package/dist/ts/ts/Json/Table/CellTable.js +1 -2
- package/dist/ts/ts/Json/Table/OATable.js +1 -2
- package/dist/ts/ts/Json/Workflow.js +9 -9
- package/dist/ts/ts/Json.d.ts +121 -1
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +310 -2
- package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Comment.js +67 -0
- package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Data.js +49 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/DataFile.js +48 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/JsonIO/LDObject.js +173 -17
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Publication.js +68 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
- package/dist/ts/ts/License.d.ts.map +1 -1
- package/dist/ts/ts/License.js +6 -6
- package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDContext.js +31 -39
- package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDObject.js +56 -49
- package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
- package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
- package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
- package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
- package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
- package/dist/ts/ts/ROCrateIO.d.ts +18 -4
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +49 -38
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +10 -12
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
- package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
- package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +8 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts +8 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +18 -7
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +4 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -8
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +5 -7
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +2 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +7 -9
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +6 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +9 -11
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
- package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +10 -12
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +7 -9
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
- package/dist/ts/ts/Xlsx.js +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
- package/package.json +5 -4
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
|
@@ -0,0 +1,725 @@
|
|
|
1
|
+
import { Union, FSharpRef, toString, Record } from '../../../node_modules/@fable-org/fable-library-ts/Types.js';
|
|
2
|
+
import { union_type, record_type, class_type, string_type, int32_type, array_type } from '../../../node_modules/@fable-org/fable-library-ts/Reflection.js';
|
|
3
|
+
import { join, isNullOrEmpty, getCharAtIndex, substring, replicate } from '../../../node_modules/@fable-org/fable-library-ts/String.js';
|
|
4
|
+
import { isMatch, create } from '../../../node_modules/@fable-org/fable-library-ts/RegExp.js';
|
|
5
|
+
import { op_UnaryNegation_Int32 } from '../../../node_modules/@fable-org/fable-library-ts/Int32.js';
|
|
6
|
+
import { YamlTagModule_identifier, YamlTagModule_coreNamespace } from './Tag.fs.js';
|
|
7
|
+
import { YamlScalar, ScalarStyle } from './Model.fs.js';
|
|
8
|
+
import { value } from '../../../node_modules/@fable-org/fable-library-ts/Option.js';
|
|
9
|
+
import { equals, comparePrimitives, int32ToString, physicalHash, defaultOf, getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-ts/Util.js';
|
|
10
|
+
import { toInt64_unchecked, fromInt32, op_Division, compare, op_Multiply, op_Addition, op_Subtraction, toInt32_unchecked } from '../../../node_modules/@fable-org/fable-library-ts/BigInt.js';
|
|
11
|
+
import { tryParse } from '../../../node_modules/@fable-org/fable-library-ts/Double.js';
|
|
12
|
+
import { FSharpResult$2_Error$, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-ts/Result.js';
|
|
13
|
+
import { item, setItem } from '../../../node_modules/@fable-org/fable-library-ts/Array.js';
|
|
14
|
+
import { StringBuilder_$ctor, StringBuilder__Append_Z721C83C5, StringBuilder_$ctor_Z524259A4, StringBuilder__Append_244C7CD6 } from '../../../node_modules/@fable-org/fable-library-ts/System.Text.js';
|
|
15
|
+
import { tryGetValue, getItemFromDict, addToSet } from '../../../node_modules/@fable-org/fable-library-ts/MapUtil.js';
|
|
16
|
+
|
|
17
|
+
function CoreKind_Null() {
|
|
18
|
+
return CoreKind.Null;
|
|
19
|
+
}
|
|
20
|
+
function CoreKind_Bool() {
|
|
21
|
+
return CoreKind.Bool;
|
|
22
|
+
}
|
|
23
|
+
function CoreKind_Integer() {
|
|
24
|
+
return CoreKind.Integer;
|
|
25
|
+
}
|
|
26
|
+
function CoreKind_Float() {
|
|
27
|
+
return CoreKind.Float;
|
|
28
|
+
}
|
|
29
|
+
function CoreKind_Str() {
|
|
30
|
+
return CoreKind.Str;
|
|
31
|
+
}
|
|
32
|
+
class CoreKind extends Union {
|
|
33
|
+
constructor(tag, fields) {
|
|
34
|
+
super();
|
|
35
|
+
this.tag = tag;
|
|
36
|
+
this.fields = fields;
|
|
37
|
+
}
|
|
38
|
+
cases() {
|
|
39
|
+
return ["Null", "Bool", "Integer", "Float", "Str"];
|
|
40
|
+
}
|
|
41
|
+
static {
|
|
42
|
+
this.Null = new CoreKind(0, []);
|
|
43
|
+
}
|
|
44
|
+
static {
|
|
45
|
+
this.Bool = new CoreKind(1, []);
|
|
46
|
+
}
|
|
47
|
+
static {
|
|
48
|
+
this.Integer = new CoreKind(2, []);
|
|
49
|
+
}
|
|
50
|
+
static {
|
|
51
|
+
this.Float = new CoreKind(3, []);
|
|
52
|
+
}
|
|
53
|
+
static {
|
|
54
|
+
this.Str = new CoreKind(4, []);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function CoreKind_$reflection() {
|
|
58
|
+
return union_type("YAMLicious.CoreKind", [], CoreKind, () => [[], [], [], [], []]);
|
|
59
|
+
}
|
|
60
|
+
function IntegerToFloatError_NotAnInteger() {
|
|
61
|
+
return IntegerToFloatError.NotAnInteger;
|
|
62
|
+
}
|
|
63
|
+
function IntegerToFloatError_BeyondFloatRange() {
|
|
64
|
+
return IntegerToFloatError.BeyondFloatRange;
|
|
65
|
+
}
|
|
66
|
+
class IntegerToFloatError extends Union {
|
|
67
|
+
constructor(tag, fields) {
|
|
68
|
+
super();
|
|
69
|
+
this.tag = tag;
|
|
70
|
+
this.fields = fields;
|
|
71
|
+
}
|
|
72
|
+
cases() {
|
|
73
|
+
return ["NotAnInteger", "BeyondFloatRange"];
|
|
74
|
+
}
|
|
75
|
+
static {
|
|
76
|
+
this.NotAnInteger = new IntegerToFloatError(0, []);
|
|
77
|
+
}
|
|
78
|
+
static {
|
|
79
|
+
this.BeyondFloatRange = new IntegerToFloatError(1, []);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function IntegerToFloatError_$reflection() {
|
|
83
|
+
return union_type("YAMLicious.IntegerToFloatError", [], IntegerToFloatError, () => [[], []]);
|
|
84
|
+
}
|
|
85
|
+
const CoreSchema_nullAlternative = "null|Null|NULL|~";
|
|
86
|
+
const CoreSchema_boolAlternative = "true|True|TRUE|false|False|FALSE";
|
|
87
|
+
const CoreSchema_decimalAlternative = "[-+]?[0-9]+";
|
|
88
|
+
const CoreSchema_octalAlternative = "0o[0-7]+";
|
|
89
|
+
const CoreSchema_hexadecimalAlternative = "0x[0-9a-fA-F]+";
|
|
90
|
+
const CoreSchema_numberAlternative = "[-+]?(?:\\.[0-9]+|[0-9]+(?:\\.[0-9]*)?)(?:[eE][-+]?[0-9]+)?";
|
|
91
|
+
const CoreSchema_infinityAlternative = "[-+]?\\.(?:inf|Inf|INF)";
|
|
92
|
+
const CoreSchema_nanAlternative = "\\.(?:nan|NaN|NAN)";
|
|
93
|
+
function CoreSchema_anchored(alternative) {
|
|
94
|
+
return "^(?:" + alternative + ")$";
|
|
95
|
+
}
|
|
96
|
+
const CoreSchema_nonStringPattern = CoreSchema_anchored(join("|", [CoreSchema_nullAlternative, CoreSchema_boolAlternative, CoreSchema_decimalAlternative, CoreSchema_octalAlternative, CoreSchema_hexadecimalAlternative, CoreSchema_numberAlternative, CoreSchema_infinityAlternative, CoreSchema_nanAlternative]));
|
|
97
|
+
const CoreSchema_nullPattern = CoreSchema_anchored(CoreSchema_nullAlternative);
|
|
98
|
+
const CoreSchema_boolPattern = CoreSchema_anchored(CoreSchema_boolAlternative);
|
|
99
|
+
const CoreSchema_decimalPattern = CoreSchema_anchored(CoreSchema_decimalAlternative);
|
|
100
|
+
const CoreSchema_octalPattern = CoreSchema_anchored(CoreSchema_octalAlternative);
|
|
101
|
+
const CoreSchema_hexadecimalPattern = CoreSchema_anchored(CoreSchema_hexadecimalAlternative);
|
|
102
|
+
const CoreSchema_numberPattern = CoreSchema_anchored(CoreSchema_numberAlternative);
|
|
103
|
+
const CoreSchema_infinityPattern = CoreSchema_anchored(CoreSchema_infinityAlternative);
|
|
104
|
+
const CoreSchema_nanPattern = CoreSchema_anchored(CoreSchema_nanAlternative);
|
|
105
|
+
function CoreSchema_matches(pattern, text) {
|
|
106
|
+
if (!(text.indexOf("\n") >= 0)) {
|
|
107
|
+
return isMatch(create(pattern), text);
|
|
108
|
+
} else {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function CoreSchema_integerRadix(text) {
|
|
113
|
+
if (CoreSchema_matches(CoreSchema_decimalPattern, text)) {
|
|
114
|
+
return 10;
|
|
115
|
+
} else if (CoreSchema_matches(CoreSchema_octalPattern, text)) {
|
|
116
|
+
return 8;
|
|
117
|
+
} else if (CoreSchema_matches(CoreSchema_hexadecimalPattern, text)) {
|
|
118
|
+
return 16;
|
|
119
|
+
} else {
|
|
120
|
+
return 0;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function CoreSchema_digitValue(c) {
|
|
124
|
+
if (c <= "9") {
|
|
125
|
+
return ~~c.charCodeAt(0) - ~~"0".charCodeAt(0) | 0;
|
|
126
|
+
} else if (c >= "a") {
|
|
127
|
+
return ~~c.charCodeAt(0) - ~~"a".charCodeAt(0) + 10 | 0;
|
|
128
|
+
} else {
|
|
129
|
+
return ~~c.charCodeAt(0) - ~~"A".charCodeAt(0) + 10 | 0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
function CoreSchema_resolvesToNull(text) {
|
|
133
|
+
if (isNullOrEmpty(text)) {
|
|
134
|
+
return true;
|
|
135
|
+
} else {
|
|
136
|
+
return CoreSchema_matches(CoreSchema_nullPattern, text);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function CoreSchema_resolvesToNonString(text) {
|
|
140
|
+
if (isNullOrEmpty(text)) {
|
|
141
|
+
return true;
|
|
142
|
+
} else {
|
|
143
|
+
return CoreSchema_matches(CoreSchema_nonStringPattern, text);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function CoreSchema_resolveKind(text) {
|
|
147
|
+
if (CoreSchema_resolvesToNull(text)) {
|
|
148
|
+
return CoreKind.Null;
|
|
149
|
+
} else if (CoreSchema_matches(CoreSchema_boolPattern, text)) {
|
|
150
|
+
return CoreKind.Bool;
|
|
151
|
+
} else if (CoreSchema_integerRadix(text) !== 0) {
|
|
152
|
+
return CoreKind.Integer;
|
|
153
|
+
} else if ((CoreSchema_matches(CoreSchema_numberPattern, text) ? true : CoreSchema_matches(CoreSchema_infinityPattern, text)) ? true : CoreSchema_matches(CoreSchema_nanPattern, text)) {
|
|
154
|
+
return CoreKind.Float;
|
|
155
|
+
} else {
|
|
156
|
+
return CoreKind.Str;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function CoreSchema_resolvesAs(suffix, tag, scalar) {
|
|
160
|
+
if (tag == null) {
|
|
161
|
+
if (scalar.Style.tag === /* Plain */
|
|
162
|
+
0) {
|
|
163
|
+
return true;
|
|
164
|
+
} else {
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
} else {
|
|
168
|
+
return YamlTagModule_identifier(tag) === YamlTagModule_coreNamespace + suffix;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
function CoreSchema_isNull(tag, scalar) {
|
|
172
|
+
if (CoreSchema_resolvesAs("null", tag, scalar)) {
|
|
173
|
+
return CoreSchema_resolvesToNull(scalar.Value);
|
|
174
|
+
} else {
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
function CoreSchema_tryParseBool(tag, scalar) {
|
|
179
|
+
if (CoreSchema_resolvesAs("bool", tag, scalar)) {
|
|
180
|
+
const matchValue = scalar.Value;
|
|
181
|
+
switch (matchValue) {
|
|
182
|
+
case "true":
|
|
183
|
+
case "True":
|
|
184
|
+
case "TRUE":
|
|
185
|
+
return true;
|
|
186
|
+
case "false":
|
|
187
|
+
case "False":
|
|
188
|
+
case "FALSE":
|
|
189
|
+
return false;
|
|
190
|
+
default:
|
|
191
|
+
return void 0;
|
|
192
|
+
}
|
|
193
|
+
} else {
|
|
194
|
+
return void 0;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
function CoreSchema_isString(tag, scalar) {
|
|
198
|
+
if (tag == null) {
|
|
199
|
+
if (scalar.Style.tag === /* Plain */
|
|
200
|
+
0) {
|
|
201
|
+
const text = scalar.Value;
|
|
202
|
+
if (text.length === 0) {
|
|
203
|
+
return false;
|
|
204
|
+
} else if ("+-.0123456789".indexOf(getCharAtIndex(text, 0)) >= 0) {
|
|
205
|
+
return equals(CoreSchema_resolveKind(text), CoreKind.Str);
|
|
206
|
+
} else if ("~nN".indexOf(getCharAtIndex(text, 0)) >= 0) {
|
|
207
|
+
return !CoreSchema_resolvesToNull(text);
|
|
208
|
+
} else if ("tTfF".indexOf(getCharAtIndex(text, 0)) >= 0) {
|
|
209
|
+
return CoreSchema_tryParseBool(void 0, scalar) == null;
|
|
210
|
+
} else {
|
|
211
|
+
return true;
|
|
212
|
+
}
|
|
213
|
+
} else {
|
|
214
|
+
return true;
|
|
215
|
+
}
|
|
216
|
+
} else if (tag.tag === /* NonSpecific */
|
|
217
|
+
0) {
|
|
218
|
+
return true;
|
|
219
|
+
} else {
|
|
220
|
+
const explicit = tag;
|
|
221
|
+
return YamlTagModule_identifier(explicit) === YamlTagModule_coreNamespace + "str";
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function CoreSchema_tryParseInt64(tag, scalar) {
|
|
225
|
+
const text = scalar.Value;
|
|
226
|
+
const sum = (start, radix, negative) => {
|
|
227
|
+
const radix64 = toInt64_unchecked(fromInt32(radix));
|
|
228
|
+
const lowestBeforeStep = toInt64_unchecked(op_Division(-9223372036854775808n, radix64));
|
|
229
|
+
const highestBeforeStep = toInt64_unchecked(op_Division(9223372036854775807n, radix64));
|
|
230
|
+
let total = 0n;
|
|
231
|
+
let index = start;
|
|
232
|
+
let fits = true;
|
|
233
|
+
while (fits && index < text.length) {
|
|
234
|
+
const digit = toInt64_unchecked(fromInt32(CoreSchema_digitValue(getCharAtIndex(text, index))));
|
|
235
|
+
if (negative) {
|
|
236
|
+
if (compare(total, lowestBeforeStep) < 0 ? true : compare(toInt64_unchecked(op_Multiply(total, radix64)), toInt64_unchecked(op_Addition(-9223372036854775808n, digit))) < 0) {
|
|
237
|
+
fits = false;
|
|
238
|
+
} else {
|
|
239
|
+
total = toInt64_unchecked(op_Subtraction(toInt64_unchecked(op_Multiply(total, radix64)), digit));
|
|
240
|
+
}
|
|
241
|
+
} else if (compare(total, highestBeforeStep) > 0 ? true : compare(toInt64_unchecked(op_Multiply(total, radix64)), toInt64_unchecked(op_Subtraction(9223372036854775807n, digit))) > 0) {
|
|
242
|
+
fits = false;
|
|
243
|
+
} else {
|
|
244
|
+
total = toInt64_unchecked(op_Addition(toInt64_unchecked(op_Multiply(total, radix64)), digit));
|
|
245
|
+
}
|
|
246
|
+
index = index + 1 | 0;
|
|
247
|
+
}
|
|
248
|
+
if (fits) {
|
|
249
|
+
return total;
|
|
250
|
+
} else {
|
|
251
|
+
return void 0;
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
if (!CoreSchema_resolvesAs("int", tag, scalar)) {
|
|
255
|
+
return void 0;
|
|
256
|
+
} else if (CoreSchema_matches(CoreSchema_decimalPattern, text)) {
|
|
257
|
+
return sum((getCharAtIndex(text, 0) === "-" ? true : getCharAtIndex(text, 0) === "+") ? 1 : 0, 10, getCharAtIndex(text, 0) === "-");
|
|
258
|
+
} else if (CoreSchema_matches(CoreSchema_octalPattern, text)) {
|
|
259
|
+
return sum(2, 8, false);
|
|
260
|
+
} else if (CoreSchema_matches(CoreSchema_hexadecimalPattern, text)) {
|
|
261
|
+
return sum(2, 16, false);
|
|
262
|
+
} else {
|
|
263
|
+
return void 0;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
function CoreSchema_tryParseInt(tag, scalar) {
|
|
267
|
+
let number = void 0;
|
|
268
|
+
let option_3;
|
|
269
|
+
const option_1 = CoreSchema_tryParseInt64(tag, scalar);
|
|
270
|
+
option_3 = option_1 != null ? (number = option_1, compare(number, toInt64_unchecked(fromInt32(-2147483648))) >= 0 && compare(number, toInt64_unchecked(fromInt32(2147483647))) <= 0) ? option_1 : void 0 : void 0;
|
|
271
|
+
if (option_3 != null) {
|
|
272
|
+
return ~~toInt32_unchecked(option_3);
|
|
273
|
+
} else {
|
|
274
|
+
return void 0;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
function CoreSchema_tryParseFloat(tag, scalar) {
|
|
278
|
+
const text = scalar.Value;
|
|
279
|
+
if (!CoreSchema_resolvesAs("float", tag, scalar)) {
|
|
280
|
+
return void 0;
|
|
281
|
+
} else if (CoreSchema_matches(CoreSchema_infinityPattern, text)) {
|
|
282
|
+
return getCharAtIndex(text, 0) === "-" ? -Infinity : Infinity;
|
|
283
|
+
} else if (CoreSchema_matches(CoreSchema_nanPattern, text)) {
|
|
284
|
+
return NaN;
|
|
285
|
+
} else if (CoreSchema_matches(CoreSchema_numberPattern, text)) {
|
|
286
|
+
let matchValue;
|
|
287
|
+
const cell = new FSharpRef(0);
|
|
288
|
+
matchValue = [tryParse(text, 231, cell), cell.contents];
|
|
289
|
+
if (matchValue[0]) {
|
|
290
|
+
return matchValue[1];
|
|
291
|
+
} else {
|
|
292
|
+
return void 0;
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
return void 0;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function CoreSchema_integerToFloat(text) {
|
|
299
|
+
const radix = CoreSchema_integerRadix(text) | 0;
|
|
300
|
+
if (radix === 0) {
|
|
301
|
+
return FSharpResult$2_Error$(IntegerToFloatError.NotAnInteger);
|
|
302
|
+
} else {
|
|
303
|
+
const limbs = new Int32Array(65);
|
|
304
|
+
let used = 0;
|
|
305
|
+
let fits = true;
|
|
306
|
+
let index = radix === 10 ? (getCharAtIndex(text, 0) === "-" ? true : getCharAtIndex(text, 0) === "+") ? 1 : 0 : 2;
|
|
307
|
+
while (fits && index < text.length) {
|
|
308
|
+
let carry = CoreSchema_digitValue(getCharAtIndex(text, index));
|
|
309
|
+
for (let limb = 0; limb <= used - 1; limb++) {
|
|
310
|
+
const product = item(limb, limbs) * radix + carry | 0;
|
|
311
|
+
setItem(limbs, limb, product & 65535 | 0);
|
|
312
|
+
carry = product >> 16 | 0;
|
|
313
|
+
}
|
|
314
|
+
if (carry > 0) {
|
|
315
|
+
if (used === 65) {
|
|
316
|
+
fits = false;
|
|
317
|
+
} else {
|
|
318
|
+
setItem(limbs, used, carry | 0);
|
|
319
|
+
used = used + 1 | 0;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
index = index + 1 | 0;
|
|
323
|
+
}
|
|
324
|
+
if (!fits) {
|
|
325
|
+
return FSharpResult$2_Error$(IntegerToFloatError.BeyondFloatRange);
|
|
326
|
+
} else {
|
|
327
|
+
const bitAt = (position) => item(position >> 4, limbs) >> (position & 15) & 1 | 0;
|
|
328
|
+
let topLimbBits = 0;
|
|
329
|
+
if (used > 0) {
|
|
330
|
+
let top = item(used - 1, limbs);
|
|
331
|
+
while (top > 0) {
|
|
332
|
+
topLimbBits = topLimbBits + 1 | 0;
|
|
333
|
+
top = top >> 1 | 0;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
const bitLength = (used === 0 ? 0 : (used - 1) * 16 + topLimbBits) | 0;
|
|
337
|
+
const dropped = bitLength - (bitLength < 53 ? bitLength : 53) | 0;
|
|
338
|
+
let significand = 0;
|
|
339
|
+
for (let position_1 = bitLength - 1; position_1 >= dropped; position_1--) {
|
|
340
|
+
significand = significand * 2 + bitAt(position_1);
|
|
341
|
+
}
|
|
342
|
+
if (dropped > 0 && bitAt(dropped - 1) === 1) {
|
|
343
|
+
let laterBitSet = false;
|
|
344
|
+
let position_2 = dropped - 2;
|
|
345
|
+
while (!laterBitSet && position_2 >= 0) {
|
|
346
|
+
laterBitSet = bitAt(position_2) === 1;
|
|
347
|
+
position_2 = position_2 - 1 | 0;
|
|
348
|
+
}
|
|
349
|
+
if (laterBitSet ? true : bitAt(dropped) === 1) {
|
|
350
|
+
significand = significand + 1;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
if (dropped > 971 ? true : dropped === 971 && significand === 9007199254740992) {
|
|
354
|
+
return FSharpResult$2_Error$(IntegerToFloatError.BeyondFloatRange);
|
|
355
|
+
} else {
|
|
356
|
+
let magnitude = significand;
|
|
357
|
+
for (let forLoopVar = 1; forLoopVar <= dropped; forLoopVar++) {
|
|
358
|
+
magnitude = magnitude * 2;
|
|
359
|
+
}
|
|
360
|
+
return FSharpResult$2_Ok(radix === 10 && getCharAtIndex(text, 0) === "-" && magnitude > 0 ? -magnitude : magnitude);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function CoreSchema_withoutLeadingZeros(digits) {
|
|
366
|
+
let start = 0;
|
|
367
|
+
while (start < digits.length - 1 && getCharAtIndex(digits, start) === "0") {
|
|
368
|
+
start = start + 1 | 0;
|
|
369
|
+
}
|
|
370
|
+
return substring(digits, start);
|
|
371
|
+
}
|
|
372
|
+
function CoreSchema_compareMagnitudes(a, b) {
|
|
373
|
+
if (a.length !== b.length) {
|
|
374
|
+
return comparePrimitives(a.length, b.length) | 0;
|
|
375
|
+
} else {
|
|
376
|
+
let i = 0;
|
|
377
|
+
while (i < a.length && getCharAtIndex(a, i) === getCharAtIndex(b, i)) {
|
|
378
|
+
i = i + 1 | 0;
|
|
379
|
+
}
|
|
380
|
+
if (i === a.length) {
|
|
381
|
+
return 0;
|
|
382
|
+
} else if (getCharAtIndex(a, i) < getCharAtIndex(b, i)) {
|
|
383
|
+
return -1;
|
|
384
|
+
} else {
|
|
385
|
+
return 1;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
function CoreSchema_fromLastDigit(digits) {
|
|
390
|
+
const sb = StringBuilder_$ctor();
|
|
391
|
+
for (let i = digits.length - 1; i >= 0; i--) {
|
|
392
|
+
StringBuilder__Append_Z721C83C5(sb, int32ToString(item(i, digits)));
|
|
393
|
+
}
|
|
394
|
+
return CoreSchema_withoutLeadingZeros(toString(sb));
|
|
395
|
+
}
|
|
396
|
+
function CoreSchema_addMagnitudes(a, b) {
|
|
397
|
+
const digits = [];
|
|
398
|
+
let i = a.length - 1;
|
|
399
|
+
let j = b.length - 1;
|
|
400
|
+
let carry = 0;
|
|
401
|
+
while ((i >= 0 ? true : j >= 0) ? true : carry > 0) {
|
|
402
|
+
const sum = carry + (i >= 0 ? CoreSchema_digitValue(getCharAtIndex(a, i)) : 0) + (j >= 0 ? CoreSchema_digitValue(getCharAtIndex(b, j)) : 0) | 0;
|
|
403
|
+
void digits.push(sum % 10);
|
|
404
|
+
carry = ~~(sum / 10) | 0;
|
|
405
|
+
i = i - 1 | 0;
|
|
406
|
+
j = j - 1 | 0;
|
|
407
|
+
}
|
|
408
|
+
return CoreSchema_fromLastDigit(digits);
|
|
409
|
+
}
|
|
410
|
+
function CoreSchema_subtractMagnitudes(larger, smaller) {
|
|
411
|
+
const digits = [];
|
|
412
|
+
let i = larger.length - 1;
|
|
413
|
+
let j = smaller.length - 1;
|
|
414
|
+
let borrow = 0;
|
|
415
|
+
while (i >= 0) {
|
|
416
|
+
let difference = CoreSchema_digitValue(getCharAtIndex(larger, i)) - borrow - (j >= 0 ? CoreSchema_digitValue(getCharAtIndex(smaller, j)) : 0);
|
|
417
|
+
if (difference < 0) {
|
|
418
|
+
difference = difference + 10 | 0;
|
|
419
|
+
borrow = 1;
|
|
420
|
+
} else {
|
|
421
|
+
borrow = 0;
|
|
422
|
+
}
|
|
423
|
+
void digits.push(difference);
|
|
424
|
+
i = i - 1 | 0;
|
|
425
|
+
j = j - 1 | 0;
|
|
426
|
+
}
|
|
427
|
+
return CoreSchema_fromLastDigit(digits);
|
|
428
|
+
}
|
|
429
|
+
function CoreSchema_addToDecimal(canonical, offset) {
|
|
430
|
+
const negativeA = canonical.startsWith("-");
|
|
431
|
+
const magnitudeA = negativeA ? substring(canonical, 1) : canonical;
|
|
432
|
+
const negativeB = offset < 0;
|
|
433
|
+
const magnitudeB = int32ToString(negativeB ? op_UnaryNegation_Int32(offset) : offset);
|
|
434
|
+
let patternInput;
|
|
435
|
+
if (negativeA === negativeB) {
|
|
436
|
+
patternInput = [negativeA, CoreSchema_addMagnitudes(magnitudeA, magnitudeB)];
|
|
437
|
+
} else {
|
|
438
|
+
const matchValue = CoreSchema_compareMagnitudes(magnitudeA, magnitudeB) | 0;
|
|
439
|
+
patternInput = matchValue === 0 ? [false, "0"] : matchValue === 1 ? [negativeA, CoreSchema_subtractMagnitudes(magnitudeA, magnitudeB)] : [negativeB, CoreSchema_subtractMagnitudes(magnitudeB, magnitudeA)];
|
|
440
|
+
}
|
|
441
|
+
const magnitude = patternInput[1];
|
|
442
|
+
if (patternInput[0] && magnitude !== "0") {
|
|
443
|
+
return "-" + magnitude;
|
|
444
|
+
} else {
|
|
445
|
+
return magnitude;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
function CoreSchema_powerOfTwoDigits(text, radix) {
|
|
449
|
+
if (radix === 16) {
|
|
450
|
+
return CoreSchema_withoutLeadingZeros(substring(text, 2).toLowerCase());
|
|
451
|
+
} else {
|
|
452
|
+
const reversed = [];
|
|
453
|
+
let bits = 0;
|
|
454
|
+
let count = 0;
|
|
455
|
+
for (let index = text.length - 1; index >= 2; index--) {
|
|
456
|
+
bits = bits | CoreSchema_digitValue(getCharAtIndex(text, index)) << count | 0;
|
|
457
|
+
count = count + 3 | 0;
|
|
458
|
+
while (count >= 4) {
|
|
459
|
+
void reversed.push(getCharAtIndex("0123456789abcdef", bits & 15));
|
|
460
|
+
bits = bits >> 4 | 0;
|
|
461
|
+
count = count - 4 | 0;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
if (count > 0) {
|
|
465
|
+
void reversed.push(getCharAtIndex("0123456789abcdef", bits));
|
|
466
|
+
}
|
|
467
|
+
const sb = StringBuilder_$ctor_Z524259A4(reversed.length);
|
|
468
|
+
for (let i = reversed.length - 1; i >= 0; i--) {
|
|
469
|
+
StringBuilder__Append_244C7CD6(sb, item(i, reversed));
|
|
470
|
+
}
|
|
471
|
+
return CoreSchema_withoutLeadingZeros(toString(sb));
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
function CoreSchema_decimalOfHex(hex) {
|
|
475
|
+
const limbs = [];
|
|
476
|
+
let index = 0;
|
|
477
|
+
let width = hex.length % 3 === 0 ? 3 : hex.length % 3;
|
|
478
|
+
while (index < hex.length) {
|
|
479
|
+
let carry = 0;
|
|
480
|
+
for (let k = index; k <= index + width - 1; k++) {
|
|
481
|
+
carry = carry * 16 + CoreSchema_digitValue(getCharAtIndex(hex, k)) | 0;
|
|
482
|
+
}
|
|
483
|
+
const factor = 1 << 4 * width | 0;
|
|
484
|
+
for (let limb = 0; limb <= limbs.length - 1; limb++) {
|
|
485
|
+
const product = item(limb, limbs) * factor + carry | 0;
|
|
486
|
+
setItem(limbs, limb, product % 1e4);
|
|
487
|
+
carry = ~~(product / 1e4) | 0;
|
|
488
|
+
}
|
|
489
|
+
while (carry > 0) {
|
|
490
|
+
void limbs.push(carry % 1e4);
|
|
491
|
+
carry = ~~(carry / 1e4) | 0;
|
|
492
|
+
}
|
|
493
|
+
index = index + width | 0;
|
|
494
|
+
width = 3;
|
|
495
|
+
}
|
|
496
|
+
if (limbs.length === 0) {
|
|
497
|
+
return "0";
|
|
498
|
+
} else {
|
|
499
|
+
const sb = StringBuilder_$ctor();
|
|
500
|
+
StringBuilder__Append_Z721C83C5(sb, int32ToString(item(limbs.length - 1, limbs)));
|
|
501
|
+
for (let limb_1 = limbs.length - 2; limb_1 >= 0; limb_1--) {
|
|
502
|
+
const text = int32ToString(item(limb_1, limbs));
|
|
503
|
+
StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, replicate(4 - text.length, "0")), text);
|
|
504
|
+
}
|
|
505
|
+
return toString(sb);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
function CoreSchema_canonicalInteger(text) {
|
|
509
|
+
const matchValue = CoreSchema_integerRadix(text) | 0;
|
|
510
|
+
switch (matchValue) {
|
|
511
|
+
case 0:
|
|
512
|
+
return void 0;
|
|
513
|
+
case 10: {
|
|
514
|
+
const negative = getCharAtIndex(text, 0) === "-";
|
|
515
|
+
const magnitude = CoreSchema_withoutLeadingZeros(substring(text, (getCharAtIndex(text, 0) === "-" ? true : getCharAtIndex(text, 0) === "+") ? 1 : 0));
|
|
516
|
+
return negative && magnitude !== "0" ? "-" + magnitude : magnitude;
|
|
517
|
+
}
|
|
518
|
+
default:
|
|
519
|
+
return CoreSchema_decimalOfHex(CoreSchema_powerOfTwoDigits(text, matchValue));
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
const CoreSchema_smallHexDigits = 32;
|
|
523
|
+
const CoreSchema_smallDecimalDigits = 38;
|
|
524
|
+
const CoreSchema_decimalDigitsPerHexDigit = 1.2041199826559248;
|
|
525
|
+
function CoreSchema_residues(digits, radix) {
|
|
526
|
+
let first = 0;
|
|
527
|
+
let second = 0;
|
|
528
|
+
for (let index = 0; index <= digits.length - 1; index++) {
|
|
529
|
+
const digit = CoreSchema_digitValue(getCharAtIndex(digits, index)) | 0;
|
|
530
|
+
first = (first * radix + digit) % 8388593 | 0;
|
|
531
|
+
second = (second * radix + digit) % 8388587 | 0;
|
|
532
|
+
}
|
|
533
|
+
return int32ToString(first) + ":" + int32ToString(second);
|
|
534
|
+
}
|
|
535
|
+
class CoreSchema_IntegerClass extends Record {
|
|
536
|
+
constructor(Names, DecimalLengths, Unconverted) {
|
|
537
|
+
super();
|
|
538
|
+
this.Names = Names;
|
|
539
|
+
this.DecimalLengths = DecimalLengths;
|
|
540
|
+
this.Unconverted = Unconverted;
|
|
541
|
+
}
|
|
542
|
+
Equals(other) {
|
|
543
|
+
return this === other;
|
|
544
|
+
}
|
|
545
|
+
GetHashCode() {
|
|
546
|
+
return physicalHash(this);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
function CoreSchema_IntegerClass_$reflection() {
|
|
550
|
+
return record_type("YAMLicious.CoreSchema.IntegerClass", [], CoreSchema_IntegerClass, () => [["Names", class_type("System.Collections.Generic.Dictionary`2", [string_type, string_type])], ["DecimalLengths", class_type("System.Collections.Generic.HashSet`1", [int32_type])], ["Unconverted", class_type("System.Collections.Generic.Dictionary`2", [int32_type, array_type(string_type)])]]);
|
|
551
|
+
}
|
|
552
|
+
class CoreSchema_IntegerNames {
|
|
553
|
+
constructor() {
|
|
554
|
+
this.classes = /* @__PURE__ */ new Map([]);
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
function CoreSchema_IntegerNames_$reflection() {
|
|
558
|
+
return class_type("YAMLicious.CoreSchema.IntegerNames", void 0, CoreSchema_IntegerNames);
|
|
559
|
+
}
|
|
560
|
+
function CoreSchema_IntegerNames_$ctor() {
|
|
561
|
+
return new CoreSchema_IntegerNames();
|
|
562
|
+
}
|
|
563
|
+
function CoreSchema_IntegerNames__Name_Z721C83C5(_, text) {
|
|
564
|
+
const matchValue = CoreSchema_integerRadix(text) | 0;
|
|
565
|
+
switch (matchValue) {
|
|
566
|
+
case 0:
|
|
567
|
+
return void 0;
|
|
568
|
+
case 10: {
|
|
569
|
+
const negative = getCharAtIndex(text, 0) === "-";
|
|
570
|
+
const magnitude = CoreSchema_withoutLeadingZeros(substring(text, (getCharAtIndex(text, 0) === "-" ? true : getCharAtIndex(text, 0) === "+") ? 1 : 0));
|
|
571
|
+
if (negative && magnitude !== "0") {
|
|
572
|
+
return "-" + magnitude;
|
|
573
|
+
} else if (magnitude.length <= CoreSchema_smallDecimalDigits) {
|
|
574
|
+
return magnitude;
|
|
575
|
+
} else {
|
|
576
|
+
return CoreSchema_IntegerNames__nameDecimal_Z721C83C5(_, magnitude);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
default: {
|
|
580
|
+
const hex = CoreSchema_powerOfTwoDigits(text, matchValue);
|
|
581
|
+
if (hex.length <= CoreSchema_smallHexDigits) {
|
|
582
|
+
return CoreSchema_decimalOfHex(hex);
|
|
583
|
+
} else {
|
|
584
|
+
return CoreSchema_IntegerNames__nameHex_Z721C83C5(_, hex);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
function CoreSchema_IntegerNames__classOf_Z721C83C5(this$, key) {
|
|
590
|
+
let matchValue;
|
|
591
|
+
const cell = new FSharpRef(defaultOf());
|
|
592
|
+
matchValue = [tryGetValue(this$.classes, key, cell), cell.contents];
|
|
593
|
+
if (matchValue[0]) {
|
|
594
|
+
return matchValue[1];
|
|
595
|
+
} else {
|
|
596
|
+
const created = new CoreSchema_IntegerClass(/* @__PURE__ */ new Map([]), /* @__PURE__ */ new Set([]), /* @__PURE__ */ new Map([]));
|
|
597
|
+
this$.classes.set(key, created);
|
|
598
|
+
return created;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
function CoreSchema_IntegerNames__nameDecimal_Z721C83C5(this$, digits) {
|
|
602
|
+
const entry = CoreSchema_IntegerNames__classOf_Z721C83C5(this$, CoreSchema_residues(digits, 10));
|
|
603
|
+
const length = digits.length | 0;
|
|
604
|
+
const low = ~~((length - 1) / CoreSchema_decimalDigitsPerHexDigit) - 1 | 0;
|
|
605
|
+
const high = ~~(length / CoreSchema_decimalDigitsPerHexDigit) + 2 | 0;
|
|
606
|
+
for (let hexLength = low; hexLength <= high; hexLength++) {
|
|
607
|
+
let matchValue;
|
|
608
|
+
const cell = new FSharpRef(defaultOf());
|
|
609
|
+
matchValue = [tryGetValue(entry.Unconverted, hexLength, cell), cell.contents];
|
|
610
|
+
if (matchValue[0]) {
|
|
611
|
+
let enumerator = getEnumerator(matchValue[1]);
|
|
612
|
+
try {
|
|
613
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
614
|
+
const hex = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
615
|
+
entry.Names.set("d" + CoreSchema_decimalOfHex(hex), getItemFromDict(entry.Names, "x" + hex));
|
|
616
|
+
}
|
|
617
|
+
} finally {
|
|
618
|
+
disposeSafe(enumerator);
|
|
619
|
+
}
|
|
620
|
+
entry.Unconverted.delete(hexLength);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
addToSet(length, entry.DecimalLengths);
|
|
624
|
+
let matchValue_1;
|
|
625
|
+
const cell_1 = new FSharpRef(defaultOf());
|
|
626
|
+
matchValue_1 = [tryGetValue(entry.Names, "d" + digits, cell_1), cell_1.contents];
|
|
627
|
+
if (matchValue_1[0]) {
|
|
628
|
+
return matchValue_1[1];
|
|
629
|
+
} else {
|
|
630
|
+
entry.Names.set("d" + digits, digits);
|
|
631
|
+
return digits;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
function CoreSchema_IntegerNames__nameHex_Z721C83C5(this$, hex) {
|
|
635
|
+
const entry = CoreSchema_IntegerNames__classOf_Z721C83C5(this$, CoreSchema_residues(hex, 16));
|
|
636
|
+
let matchValue;
|
|
637
|
+
const cell = new FSharpRef(defaultOf());
|
|
638
|
+
matchValue = [tryGetValue(entry.Names, "x" + hex, cell), cell.contents];
|
|
639
|
+
if (matchValue[0]) {
|
|
640
|
+
return matchValue[1];
|
|
641
|
+
} else {
|
|
642
|
+
const length = hex.length | 0;
|
|
643
|
+
const low = ~~((length - 1) * CoreSchema_decimalDigitsPerHexDigit) - 1 | 0;
|
|
644
|
+
const high = ~~(length * CoreSchema_decimalDigitsPerHexDigit) + 2 | 0;
|
|
645
|
+
let similar = false;
|
|
646
|
+
for (let decimalLength = low; decimalLength <= high; decimalLength++) {
|
|
647
|
+
if (entry.DecimalLengths.has(decimalLength)) {
|
|
648
|
+
similar = true;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
let name_2;
|
|
652
|
+
if (similar) {
|
|
653
|
+
const converted = "d" + CoreSchema_decimalOfHex(hex);
|
|
654
|
+
let matchValue_1;
|
|
655
|
+
const cell_1 = new FSharpRef(defaultOf());
|
|
656
|
+
matchValue_1 = [tryGetValue(entry.Names, converted, cell_1), cell_1.contents];
|
|
657
|
+
if (matchValue_1[0]) {
|
|
658
|
+
name_2 = matchValue_1[1];
|
|
659
|
+
} else {
|
|
660
|
+
entry.Names.set(converted, "x" + hex);
|
|
661
|
+
name_2 = "x" + hex;
|
|
662
|
+
}
|
|
663
|
+
} else {
|
|
664
|
+
let matchValue_2;
|
|
665
|
+
const cell_2 = new FSharpRef(defaultOf());
|
|
666
|
+
matchValue_2 = [tryGetValue(entry.Unconverted, length, cell_2), cell_2.contents];
|
|
667
|
+
if (matchValue_2[0]) {
|
|
668
|
+
void matchValue_2[1].push(hex);
|
|
669
|
+
} else {
|
|
670
|
+
entry.Unconverted.set(length, [hex]);
|
|
671
|
+
}
|
|
672
|
+
name_2 = "x" + hex;
|
|
673
|
+
}
|
|
674
|
+
entry.Names.set("x" + hex, name_2);
|
|
675
|
+
return name_2;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
function CoreSchema_canonicalFloat(text) {
|
|
679
|
+
if (CoreSchema_matches(CoreSchema_infinityPattern, text)) {
|
|
680
|
+
return getCharAtIndex(text, 0) === "-" ? "-inf" : "+inf";
|
|
681
|
+
} else if (CoreSchema_matches(CoreSchema_nanPattern, text)) {
|
|
682
|
+
return "nan";
|
|
683
|
+
} else if (CoreSchema_matches(CoreSchema_numberPattern, text)) {
|
|
684
|
+
const negative = getCharAtIndex(text, 0) === "-";
|
|
685
|
+
const start = ((getCharAtIndex(text, 0) === "-" ? true : getCharAtIndex(text, 0) === "+") ? 1 : 0) | 0;
|
|
686
|
+
let exponentAt = start;
|
|
687
|
+
while (exponentAt < text.length && getCharAtIndex(text, exponentAt) !== "e" && getCharAtIndex(text, exponentAt) !== "E") {
|
|
688
|
+
exponentAt = exponentAt + 1 | 0;
|
|
689
|
+
}
|
|
690
|
+
const mantissa = substring(text, start, exponentAt - start);
|
|
691
|
+
const point = mantissa.indexOf(".") | 0;
|
|
692
|
+
const integerDigits = point < 0 ? mantissa : substring(mantissa, 0, point);
|
|
693
|
+
const fractionDigits = point < 0 ? "" : substring(mantissa, point + 1);
|
|
694
|
+
const digits = integerDigits + fractionDigits;
|
|
695
|
+
let first = 0;
|
|
696
|
+
while (first < digits.length && getCharAtIndex(digits, first) === "0") {
|
|
697
|
+
first = first + 1 | 0;
|
|
698
|
+
}
|
|
699
|
+
if (first === digits.length) {
|
|
700
|
+
return "0";
|
|
701
|
+
} else {
|
|
702
|
+
let last = digits.length;
|
|
703
|
+
while (getCharAtIndex(digits, last - 1) === "0") {
|
|
704
|
+
last = last - 1 | 0;
|
|
705
|
+
}
|
|
706
|
+
const exponent = exponentAt === text.length ? "0" : value(CoreSchema_canonicalInteger(substring(text, exponentAt + 1)));
|
|
707
|
+
const shift = digits.length - last - fractionDigits.length | 0;
|
|
708
|
+
return (negative ? "-" : "+") + substring(digits, first, last - first) + "e" + CoreSchema_addToDecimal(exponent, shift);
|
|
709
|
+
}
|
|
710
|
+
} else {
|
|
711
|
+
return void 0;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
function CoreSchema_floatText(text) {
|
|
715
|
+
if (CoreSchema_matches(CoreSchema_decimalPattern, text)) {
|
|
716
|
+
return text + ".0";
|
|
717
|
+
} else {
|
|
718
|
+
return text;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
function CoreSchema_stringContent(text) {
|
|
722
|
+
return new YamlScalar(text, CoreSchema_resolvesToNonString(text) ? ScalarStyle.DoubleQuoted : ScalarStyle.Plain, void 0, void 0);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
export { CoreKind, CoreKind_$reflection, CoreKind_Bool, CoreKind_Float, CoreKind_Integer, CoreKind_Null, CoreKind_Str, CoreSchema_IntegerClass, CoreSchema_IntegerClass_$reflection, CoreSchema_IntegerNames, CoreSchema_IntegerNames_$ctor, CoreSchema_IntegerNames_$reflection, CoreSchema_IntegerNames__Name_Z721C83C5, CoreSchema_IntegerNames__classOf_Z721C83C5, CoreSchema_IntegerNames__nameDecimal_Z721C83C5, CoreSchema_IntegerNames__nameHex_Z721C83C5, CoreSchema_canonicalFloat, CoreSchema_canonicalInteger, CoreSchema_floatText, CoreSchema_integerToFloat, CoreSchema_isNull, CoreSchema_isString, CoreSchema_resolveKind, CoreSchema_resolvesToNonString, CoreSchema_resolvesToNull, CoreSchema_stringContent, CoreSchema_tryParseBool, CoreSchema_tryParseFloat, CoreSchema_tryParseInt, CoreSchema_tryParseInt64, IntegerToFloatError, IntegerToFloatError_$reflection, IntegerToFloatError_BeyondFloatRange, IntegerToFloatError_NotAnInteger };
|