cedar-model-typescript-library 1.0.23 → 1.0.24
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 +76 -1
- package/conformance/CedarSchemaOracle.java +67 -0
- package/conformance/java-oracle.mjs +63 -0
- package/conformance/pom.xml +22 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.esm.js +1 -1
- package/index.esm.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.umd.js +1 -1
- package/index.umd.js.map +1 -1
- package/org/metadatacenter/io/reader/ReaderUtil.d.ts +29 -2
- package/org/metadatacenter/io/reader/ReaderUtil.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/SchemaReaderDefaults.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/CedarJsonReaders.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonAbstractArtifactReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonAbstractSchemaArtifactReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonArtifactShape.d.ts +68 -0
- package/org/metadatacenter/io/reader/json/JsonArtifactShape.d.ts.map +1 -0
- package/org/metadatacenter/io/reader/json/JsonContainerArtifactReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonTemplateElementReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonTemplateFieldReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonTemplateInstanceReader.d.ts +34 -10
- package/org/metadatacenter/io/reader/json/JsonTemplateInstanceReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonTemplateReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonTermConstraintChecks.d.ts +26 -0
- package/org/metadatacenter/io/reader/json/JsonTermConstraintChecks.d.ts.map +1 -0
- package/org/metadatacenter/io/reader/yaml/YamlAbstractArtifactReader.d.ts +47 -2
- package/org/metadatacenter/io/reader/yaml/YamlAbstractArtifactReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlSourcePolicy.d.ts +10 -0
- package/org/metadatacenter/io/reader/yaml/YamlSourcePolicy.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlTemplateElementReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlTemplateFieldReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlTemplateInstanceReader.d.ts +16 -14
- package/org/metadatacenter/io/reader/yaml/YamlTemplateInstanceReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlTemplateReader.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/WriterUtil.d.ts +8 -0
- package/org/metadatacenter/io/writer/WriterUtil.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/json/JsonAbstractArtifactWriter.d.ts +4 -0
- package/org/metadatacenter/io/writer/json/JsonAbstractArtifactWriter.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/json/JsonAnnotationsWriter.d.ts +2 -0
- package/org/metadatacenter/io/writer/json/JsonAnnotationsWriter.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/json/JsonTemplateInstanceWriter.d.ts +4 -1
- package/org/metadatacenter/io/writer/json/JsonTemplateInstanceWriter.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/yaml/YamlAbstractArtifactWriter.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/yaml/YamlTemplateInstanceWriter.d.ts +11 -0
- package/org/metadatacenter/io/writer/yaml/YamlTemplateInstanceWriter.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/AbstractArtifacBuilder.d.ts +10 -0
- package/org/metadatacenter/model/cedar/AbstractArtifacBuilder.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/ReservedNames.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/TemplateValueValidator.d.ts +0 -1
- package/org/metadatacenter/model/cedar/TemplateValueValidator.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/constants/YamlKeys.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/constants/YamlValues.d.ts +2 -0
- package/org/metadatacenter/model/cedar/constants/YamlValues.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/deployment/ItemBounds.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/checkbox/YamlFieldReaderCheckbox.d.ts +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/checkbox/YamlFieldReaderCheckbox.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/JsonFieldReaderControlledTerm.d.ts +3 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/JsonFieldReaderControlledTerm.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/YamlFieldReaderControlledTerm.d.ts +29 -2
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/YamlFieldReaderControlledTerm.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/action/ControlledTermAction.d.ts +11 -0
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/action/ControlledTermAction.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/YamlValueConstraintsOntologyWriter.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/list-multiple-choice/YamlFieldReaderMultiSelectList.d.ts +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/list-multiple-choice/YamlFieldReaderMultiSelectList.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/list-single-choice/YamlFieldReaderSingleSelectList.d.ts +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/list-single-choice/YamlFieldReaderSingleSelectList.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/radio/YamlFieldReaderRadio.d.ts +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/radio/YamlFieldReaderRadio.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldReaderTemporal.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldWriterTemporal.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalField.d.ts +3 -2
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalField.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalFieldImpl.d.ts +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalFieldImpl.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldReaderTemporal.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldWriterTemporal.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/template-instance/InstanceDataContainer.d.ts +4 -0
- package/org/metadatacenter/model/cedar/template-instance/InstanceDataContainer.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/template-instance/InstanceValidator.d.ts +121 -2
- package/org/metadatacenter/model/cedar/template-instance/InstanceValidator.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/template-instance/StoredForm.d.ts +41 -0
- package/org/metadatacenter/model/cedar/template-instance/StoredForm.d.ts.map +1 -0
- package/org/metadatacenter/model/cedar/types/bioportal-types/BioportalTermType.d.ts +7 -0
- package/org/metadatacenter/model/cedar/types/bioportal-types/BioportalTermType.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/types/wrapped-types/BiboStatus.d.ts +7 -0
- package/org/metadatacenter/model/cedar/types/wrapped-types/BiboStatus.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/types/wrapped-types/NumberType.d.ts +6 -0
- package/org/metadatacenter/model/cedar/types/wrapped-types/NumberType.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalGranularity.d.ts +7 -0
- package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalGranularity.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalType.d.ts +6 -0
- package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalType.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/types/wrapped-types/TimeFormat.d.ts +6 -0
- package/org/metadatacenter/model/cedar/types/wrapped-types/TimeFormat.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/util/compare/JsonArtifactParsingResult.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/validation/SchemaArtifactValidator.d.ts +16 -0
- package/org/metadatacenter/model/cedar/validation/SchemaArtifactValidator.d.ts.map +1 -0
- package/org/metadatacenter/model/cedar/validation/SchemaFormats.d.ts +12 -0
- package/org/metadatacenter/model/cedar/validation/SchemaFormats.d.ts.map +1 -0
- package/org/metadatacenter/policy/FieldValuePolicy.d.ts +3 -0
- package/org/metadatacenter/policy/FieldValuePolicy.d.ts.map +1 -1
- package/org/metadatacenter/policy/IdentifierPolicy.d.ts +7 -0
- package/org/metadatacenter/policy/IdentifierPolicy.d.ts.map +1 -1
- package/org/metadatacenter/policy/JsonSourcePolicy.d.ts +6 -0
- package/org/metadatacenter/policy/JsonSourcePolicy.d.ts.map +1 -1
- package/org/metadatacenter/policy/SchemaValuePolicy.d.ts +6 -0
- package/org/metadatacenter/policy/SchemaValuePolicy.d.ts.map +1 -0
- package/org/metadatacenter/policy/TextPolicy.d.ts +8 -0
- package/org/metadatacenter/policy/TextPolicy.d.ts.map +1 -1
- package/org/metadatacenter/policy/TimestampPolicy.d.ts +11 -0
- package/org/metadatacenter/policy/TimestampPolicy.d.ts.map +1 -1
- package/package.json +3 -2
- package/policy.esm.js +1 -1
- package/policy.esm.js.map +1 -1
- package/policy.js +1 -1
- package/policy.js.map +1 -1
- package/policy.umd.js +1 -1
- package/policy.umd.js.map +1 -1
- package/schema.d.ts +3 -0
- package/schema.d.ts.map +1 -0
- package/schema.esm.js +2 -0
- package/schema.esm.js.map +1 -0
- package/schema.js +2 -0
- package/schema.js.map +1 -0
- package/schema.umd.js +2 -0
- package/schema.umd.js.map +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstanceValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAWtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAYtF,OAAO,EAAoB,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"InstanceValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAWtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAYtF,OAAO,EAAoB,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAEvF,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAczD,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,qBAAa,iBAAiB;IAC5B,OAAO;IAEP;;;;;;;;;;;;;;;;OAgBG;WACW,QAAQ,CACpB,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,QAAQ,EAClB,MAAM,GAAE,QAAQ,GAAG,IAAW,EAC9B,OAAO,GAAE,yBAA8B,GACtC,yBAAyB;IAiB5B,oGAAoG;WACtF,cAAc,CAC1B,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,QAAQ,EAClB,MAAM,GAAE,QAAQ,GAAG,IAAW,EAC9B,OAAO,GAAE,yBAA8B,GACtC,iBAAiB;IAIpB,OAAO,CAAC,MAAM,CAAC,iBAAiB;IA2GhC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IA0C9B,4GAA4G;IAC5G,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAmG;IAEpI;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAM1B;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAuBjC;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IA8B9B;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAuC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAA+F;IACvI,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAAmE;IAEjH;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,UAAU;IA0CzB,OAAO,CAAC,MAAM,CAAC,QAAQ;IAqBvB,kEAAkE;IAClE,OAAO,CAAC,MAAM,CAAC,MAAM;IAIrB;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAM/B;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAe/B,sGAAsG;IACtG,OAAO,CAAC,MAAM,CAAC,eAAe;IAW9B;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAiBrC,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAkBnC,OAAO,CAAC,MAAM,CAAC,aAAa;IAwC5B,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAkBlC,OAAO,CAAC,MAAM,CAAC,YAAY;IA6E3B;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ;IAQvB,0EAA0E;IAC1E,OAAO,CAAC,MAAM,CAAC,OAAO;CASvB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a document stated that the instance model does not keep.
|
|
3
|
+
*
|
|
4
|
+
* The model keeps an optional property held as null as no value, and gives
|
|
5
|
+
* every instance the writer's standard `@context` terms, so neither a stored
|
|
6
|
+
* null nor a stored term survives into it. The server judges the document as it
|
|
7
|
+
* was stored, and so does a validator asked about that document. The reader
|
|
8
|
+
* records both here, keyed by the objects it builds, which leaves the model, its
|
|
9
|
+
* equality and its serializations as they were. A copy of a model carries no
|
|
10
|
+
* record, and is judged as the writer would write it.
|
|
11
|
+
*/
|
|
12
|
+
export declare class StoredForm {
|
|
13
|
+
private static readonly nulls;
|
|
14
|
+
private static readonly contextTerms;
|
|
15
|
+
private static readonly members;
|
|
16
|
+
private constructor();
|
|
17
|
+
/** The optional properties a value held as null. */
|
|
18
|
+
static recordNulls(value: object, keys: readonly string[]): void;
|
|
19
|
+
static nullsOf(value: object): readonly string[];
|
|
20
|
+
/** The standard prefixes and term definitions a container's `@context` held. */
|
|
21
|
+
static recordContextTerms(container: object, terms: {
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
}): void;
|
|
24
|
+
/** Null for a container the reader did not build from a document. */
|
|
25
|
+
static contextTermsOf(container: object): {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
} | null;
|
|
28
|
+
/**
|
|
29
|
+
* The keys a container's own object held besides its children, as stored:
|
|
30
|
+
* its `@context` and `@id` and, at the root, the template, name and
|
|
31
|
+
* provenance. The model keeps a missing identifier and a null one alike.
|
|
32
|
+
*/
|
|
33
|
+
static recordMembers(container: object, members: {
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
}): void;
|
|
36
|
+
/** Null for a container the reader did not build from a document. */
|
|
37
|
+
static membersOf(container: object): {
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
} | null;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=StoredForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoredForm.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/StoredForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAA4C;IACzE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAqD;IACzF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAqD;IAEpF,OAAO;IAEP,oDAAoD;IACpD,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAIhE,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE;IAIhD,gFAAgF;IAChF,MAAM,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;IAIrF,qEAAqE;IACrE,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;IAI3E;;;;OAIG;IACH,MAAM,CAAC,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;IAIlF,qEAAqE;IACrE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;CAGvE"}
|
|
@@ -19,6 +19,13 @@ export declare class BioportalTermType {
|
|
|
19
19
|
static NULL: BioportalTermType;
|
|
20
20
|
static values(): BioportalTermType[];
|
|
21
21
|
static forJsonValue(value: string | null): BioportalTermType;
|
|
22
|
+
/**
|
|
23
|
+
* The term type a JSON constraint's `type` names. Java's reader matches the spelling to a constant
|
|
24
|
+
* ignoring case, so `ontologyclass` is an ontology class, and refuses any other, and a constraint
|
|
25
|
+
* that states none. A spelling that `forJsonValue` did not know was read as no type, and the writers
|
|
26
|
+
* then wrote `"type": null`.
|
|
27
|
+
*/
|
|
28
|
+
static forJsonType(value: unknown, constraint: string): BioportalTermType;
|
|
22
29
|
static forYamlValue(value: string | null): BioportalTermType;
|
|
23
30
|
}
|
|
24
31
|
//# sourceMappingURL=BioportalTermType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BioportalTermType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/bioportal-types/BioportalTermType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BioportalTermType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/bioportal-types/BioportalTermType.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC;AAEX,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,OAAO,2BAA2B,CAAC,GAAG,IAAI,CAAC;AAC/H,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,OAAO,2BAA2B,CAAC,GAAG,IAAI,CAAC;AAE/H,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoC;IAC9D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoC;IAE9D,OAAO;IAKA,YAAY,IAAI,0BAA0B;IAIjD,YAAY,IAAI,0BAA0B;IAI1C,OAAc,cAAc,oBAG1B;IACF,OAAc,KAAK,oBAA+F;IAClH,OAAc,IAAI,oBAAqC;WAEzC,MAAM,IAAI,iBAAiB,EAAE;WAI7B,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,iBAAiB;IASnE;;;;;OAKG;WACW,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,iBAAiB;WAclE,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,iBAAiB;CAQpE"}
|
|
@@ -19,6 +19,13 @@ export declare class BiboStatus {
|
|
|
19
19
|
static NULL: BiboStatus;
|
|
20
20
|
static values(): BiboStatus[];
|
|
21
21
|
static forJsonValue(value: string | null): BiboStatus;
|
|
22
|
+
/**
|
|
23
|
+
* The status a JSON document's `bibo:status` names. Java's reader matches the spelling to a constant
|
|
24
|
+
* ignoring case, so `bibo:Draft` is a draft, and refuses any other. A spelling that `forJsonValue`
|
|
25
|
+
* did not know was read as no status, and the writers then left the key out. A document that states
|
|
26
|
+
* no status has none, as in Java.
|
|
27
|
+
*/
|
|
28
|
+
static forJsonStatus(value: unknown): BiboStatus;
|
|
22
29
|
static forYamlValue(value: string | null): BiboStatus;
|
|
23
30
|
}
|
|
24
31
|
//# sourceMappingURL=BiboStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BiboStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/BiboStatus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BiboStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/BiboStatus.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,GAAG,IAAI,CAAC;AAC1G,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,GAAG,IAAI,CAAC;AAE1G,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IACvD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IAEvD,OAAO;IAKA,YAAY,IAAI,mBAAmB;IAI1C,YAAY,IAAI,mBAAmB;IAInC,OAAc,KAAK,aAA0E;IAC7F,OAAc,SAAS,aAAkF;IACzG,OAAc,IAAI,aAA8B;WAElC,MAAM,IAAI,UAAU,EAAE;WAItB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU;IAS5D;;;;;OAKG;WACW,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU;WAczC,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU;CAQ7D"}
|
|
@@ -22,5 +22,11 @@ export declare class NumberType {
|
|
|
22
22
|
static NULL: NumberType;
|
|
23
23
|
static values(): NumberType[];
|
|
24
24
|
static forValue(value: string | null): NumberType;
|
|
25
|
+
/**
|
|
26
|
+
* The constant a document's datatype names. Java's readers match the spelling to a constant ignoring
|
|
27
|
+
* case and refuse any other, a full XSD IRI among them, and so does this. A spelling that `forValue`
|
|
28
|
+
* did not know was read as no datatype, and the writers wrote it back as null.
|
|
29
|
+
*/
|
|
30
|
+
static forDatatype(value: unknown): NumberType;
|
|
25
31
|
}
|
|
26
32
|
//# sourceMappingURL=NumberType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/NumberType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/NumberType.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;CAQnB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,GAAG,IAAI,CAAC;AAE9F,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAyB;IAE/C,OAAO;IAIA,QAAQ,IAAI,eAAe;IAIlC,OAAc,OAAO,aAA4C;IACjE,OAAc,GAAG,aAAwC;IACzD,OAAc,IAAI,aAAyC;IAC3D,OAAc,IAAI,aAAyC;IAC3D,OAAc,KAAK,aAA0C;IAC7D,OAAc,KAAK,aAA0C;IAC7D,OAAc,MAAM,aAA2C;IAC/D,OAAc,IAAI,aAAwB;WAE5B,MAAM,IAAI,UAAU,EAAE;WAItB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU;IASxD;;;;OAIG;WACW,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU;CAUtD"}
|
|
@@ -23,6 +23,13 @@ export declare class TemporalGranularity {
|
|
|
23
23
|
static values(): TemporalGranularity[];
|
|
24
24
|
static valuesWithTimes(): TemporalGranularity[];
|
|
25
25
|
static forValue(value: string | null): TemporalGranularity;
|
|
26
|
+
/**
|
|
27
|
+
* The constant a document's granularity names. Java's readers take only a constant's exact spelling
|
|
28
|
+
* and refuse any other, a case variant among them, and so does this. A spelling that `forValue` did
|
|
29
|
+
* not know was read as no granularity, and the writers then left the key out. A temporal field has a
|
|
30
|
+
* granularity, so a document that states none, or states null, is refused too, as Java refuses it.
|
|
31
|
+
*/
|
|
32
|
+
static forGranularity(value: unknown): TemporalGranularity;
|
|
26
33
|
static hasTime(temporalGranularity: TemporalGranularity): boolean;
|
|
27
34
|
}
|
|
28
35
|
//# sourceMappingURL=TemporalGranularity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemporalGranularity.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TemporalGranularity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;CAQ5B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,GAAG,IAAI,CAAC;AAEzH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkC;IAExD,OAAO;IAIA,QAAQ,IAAI,wBAAwB;IAI3C,OAAc,IAAI,sBAA2D;IAC7E,OAAc,KAAK,sBAA4D;IAC/E,OAAc,GAAG,sBAA0D;IAC3E,OAAc,IAAI,sBAA2D;IAC7E,OAAc,MAAM,sBAA6D;IACjF,OAAc,MAAM,sBAA6D;IACjF,OAAc,cAAc,sBAAqE;IACjG,OAAc,IAAI,sBAAiC;WAErC,MAAM,IAAI,mBAAmB,EAAE;WAY/B,eAAe,IAAI,mBAAmB,EAAE;WAIxC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,mBAAmB;IASjE,MAAM,CAAC,OAAO,CAAC,mBAAmB,EAAE,mBAAmB;CAGxD"}
|
|
1
|
+
{"version":3,"file":"TemporalGranularity.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TemporalGranularity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;CAQ5B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,GAAG,IAAI,CAAC;AAEzH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkC;IAExD,OAAO;IAIA,QAAQ,IAAI,wBAAwB;IAI3C,OAAc,IAAI,sBAA2D;IAC7E,OAAc,KAAK,sBAA4D;IAC/E,OAAc,GAAG,sBAA0D;IAC3E,OAAc,IAAI,sBAA2D;IAC7E,OAAc,MAAM,sBAA6D;IACjF,OAAc,MAAM,sBAA6D;IACjF,OAAc,cAAc,sBAAqE;IACjG,OAAc,IAAI,sBAAiC;WAErC,MAAM,IAAI,mBAAmB,EAAE;WAY/B,eAAe,IAAI,mBAAmB,EAAE;WAIxC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,mBAAmB;IASjE;;;;;OAKG;WACW,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB;IAWjE,MAAM,CAAC,OAAO,CAAC,mBAAmB,EAAE,mBAAmB;CAGxD"}
|
|
@@ -14,5 +14,11 @@ export declare class TemporalType {
|
|
|
14
14
|
static NULL: TemporalType;
|
|
15
15
|
static values(): TemporalType[];
|
|
16
16
|
static forValue(value: string | null): TemporalType;
|
|
17
|
+
/**
|
|
18
|
+
* The constant a document's datatype names. Java's readers match the spelling to a constant ignoring
|
|
19
|
+
* case and refuse any other, a full XSD IRI among them, and so does this. A spelling that `forValue`
|
|
20
|
+
* did not know was read as no datatype, and the writers wrote it back as null.
|
|
21
|
+
*/
|
|
22
|
+
static forDatatype(value: unknown): TemporalType;
|
|
17
23
|
}
|
|
18
24
|
//# sourceMappingURL=TemporalType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemporalType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TemporalType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TemporalType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TemporalType.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,GAAG,IAAI,CAAC;AAEpG,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA2B;IAEjD,OAAO;IAIA,QAAQ,IAAI,iBAAiB;IAIpC,OAAc,IAAI,eAA6C;IAC/D,OAAc,IAAI,eAA6C;IAC/D,OAAc,QAAQ,eAAiD;IACvE,OAAc,IAAI,eAA0B;WAE9B,MAAM,IAAI,YAAY,EAAE;WAIxB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,YAAY;IAS1D;;;;OAIG;WACW,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY;CAUxD"}
|
|
@@ -12,5 +12,11 @@ export declare class TimeFormat {
|
|
|
12
12
|
static NULL: TimeFormat;
|
|
13
13
|
static values(): TimeFormat[];
|
|
14
14
|
static forValue(value: string | null): TimeFormat;
|
|
15
|
+
/**
|
|
16
|
+
* The constant a document's input time format names. Java's readers take only a constant's exact
|
|
17
|
+
* spelling and refuse any other, a case variant among them, and so does this. A spelling that
|
|
18
|
+
* `forValue` did not know was read as no input time format, and the writers then left the key out.
|
|
19
|
+
*/
|
|
20
|
+
static forInputTimeFormat(value: unknown): TimeFormat;
|
|
15
21
|
}
|
|
16
22
|
//# sourceMappingURL=TimeFormat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeFormat.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TimeFormat.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,GAAG,IAAI,CAAC;AAE9F,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAyB;IAE/C,OAAO;IAIA,QAAQ,IAAI,eAAe;IAIlC,OAAc,GAAG,aAAwC;IACzD,OAAc,GAAG,aAAwC;IACzD,OAAc,IAAI,aAAwB;WAE5B,MAAM,IAAI,UAAU,EAAE;WAItB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU;
|
|
1
|
+
{"version":3,"file":"TimeFormat.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TimeFormat.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,GAAG,IAAI,CAAC;AAE9F,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAyB;IAE/C,OAAO;IAIA,QAAQ,IAAI,eAAe;IAIlC,OAAc,GAAG,aAAwC;IACzD,OAAc,GAAG,aAAwC;IACzD,OAAc,IAAI,aAAwB;WAE5B,MAAM,IAAI,UAAU,EAAE;WAItB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU;IASxD;;;;OAIG;WACW,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU;CAO7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonArtifactParsingResult.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/util/compare/JsonArtifactParsingResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAoB,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAEhI,qBAAa,yBAAyB;IACpC,OAAO,CAAC,yBAAyB,CAA8B;IAC/D,OAAO,CAAC,2BAA2B,CAA8B;IACjE,OAAO,CAAC,kBAAkB,CAA2B;IAErD,2FAA2F;IACpF,qBAAqB,IAAI,iBAAiB,EAAE;IAI5C,oBAAoB,CACzB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,GAAE,iBAA8B,EACvC,gBAAgB,CAAC,EAAE,eAAe,GACjC,IAAI;IAWA,mBAAmB,CAAC,OAAO,GAAE,iBAA8B,GAAG,iBAAiB;
|
|
1
|
+
{"version":3,"file":"JsonArtifactParsingResult.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/util/compare/JsonArtifactParsingResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAoB,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAEhI,qBAAa,yBAAyB;IACpC,OAAO,CAAC,yBAAyB,CAA8B;IAC/D,OAAO,CAAC,2BAA2B,CAA8B;IACjE,OAAO,CAAC,kBAAkB,CAA2B;IAErD,2FAA2F;IACpF,qBAAqB,IAAI,iBAAiB,EAAE;IAI5C,oBAAoB,CACzB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,GAAE,iBAA8B,EACvC,gBAAgB,CAAC,EAAE,eAAe,GACjC,IAAI;IAWA,mBAAmB,CAAC,OAAO,GAAE,iBAA8B,GAAG,iBAAiB;IAW/E,2BAA2B,CAAC,KAAK,EAAE,eAAe;IAIlD,4BAA4B,IAAI,KAAK,CAAC,eAAe,CAAC;IAI7D,gCAAgC;IAIzB,6BAA6B,CAAC,OAAO,EAAE,eAAe;IAItD,8BAA8B,IAAI,KAAK,CAAC,eAAe,CAAC;IAI/D,kCAAkC;IAIlC;;;;;;OAMG;IACI,aAAa,IAAI,OAAO;IAI/B;;;;;;;;;;;;;OAaG;IACI,kBAAkB,IAAI,OAAO;IAIpC,KAAK,CAAC,WAAW,EAAE,yBAAyB;CAK7C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ValidationSummary } from '../../../policy/ValidationPolicy';
|
|
2
|
+
export type SchemaArtifactKind = 'template' | 'element' | 'field';
|
|
3
|
+
/**
|
|
4
|
+
* Checks the JSON that will be sent, before a model reader can normalize or omit unsupported content.
|
|
5
|
+
* Structural rules are compiled from Java's meta-schemas. This does not replace the server's reader
|
|
6
|
+
* or terminology checks; the conformance gate exercises both readers against the same payload.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SchemaArtifactValidator {
|
|
9
|
+
static readonly schemaDigests: Readonly<Record<string, string>>;
|
|
10
|
+
static validate(source: unknown, kind?: SchemaArtifactKind): ValidationSummary;
|
|
11
|
+
static structure(source: unknown, kind?: SchemaArtifactKind): ValidationSummary;
|
|
12
|
+
private static explain;
|
|
13
|
+
private static schemaView;
|
|
14
|
+
private static occurrences;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=SchemaArtifactValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaArtifactValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/validation/SchemaArtifactValidator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuC,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAG1G,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;AAgBlE;;;;GAIG;AACH,qBAAa,uBAAuB;IAClC,MAAM,CAAC,QAAQ,CAAC,aAAa,mCAAyB;IAEtD,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,iBAAiB;IAM9E,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,iBAAiB;IAwD/E,OAAO,CAAC,MAAM,CAAC,OAAO;IAqCtB,OAAO,CAAC,MAAM,CAAC,UAAU;IAazB,OAAO,CAAC,MAAM,CAAC,WAAW;CAoB3B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Draft-04 formats follow the Java validator's legacy URI-reference and offset spellings. */
|
|
2
|
+
export declare const schemaFormats: {
|
|
3
|
+
uri: {
|
|
4
|
+
type: string;
|
|
5
|
+
validate(value: string): boolean;
|
|
6
|
+
};
|
|
7
|
+
'date-time': {
|
|
8
|
+
type: string;
|
|
9
|
+
validate(value: string): boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=SchemaFormats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaFormats.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/validation/SchemaFormats.ts"],"names":[],"mappings":"AAGA,8FAA8F;AAC9F,eAAO,MAAM,aAAa;;;wBAGN,MAAM,GAAG,OAAO;;;;wBAYhB,MAAM,GAAG,OAAO;;CAUnC,CAAC"}
|
|
@@ -14,10 +14,13 @@ export interface ValidationField {
|
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
};
|
|
16
16
|
required?: string[];
|
|
17
|
+
additionalProperties?: boolean;
|
|
17
18
|
}
|
|
18
19
|
/** Local facts shared by model callers and editors. Remote checks are explicit, separate facts. */
|
|
19
20
|
export declare class FieldValuePolicy {
|
|
20
21
|
static readonly authorityTypes: Set<string>;
|
|
22
|
+
/** Fields that present content rather than take an answer. */
|
|
23
|
+
static readonly staticTypes: Set<string>;
|
|
21
24
|
private static readonly integerRanges;
|
|
22
25
|
static isControlled(field: ValidationField): boolean;
|
|
23
26
|
static isIri(field: ValidationField): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldValuePolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/FieldValuePolicy.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAoB,MAAM,oBAAoB,CAAC;AAE5F,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,eAAe,CAAC,EAAE,OAAO,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAGrH,iBAAiB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAE3C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"FieldValuePolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/FieldValuePolicy.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAoB,MAAM,oBAAoB,CAAC;AAE5F,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,eAAe,CAAC,EAAE,OAAO,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAGrH,iBAAiB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAE3C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,mGAAmG;AACnG,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,cAAc,cAA0G;IACxI,8DAA8D;IAC9D,MAAM,CAAC,QAAQ,CAAC,WAAW,cAA4E;IACvG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAKnC;IACF,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO;IAOpD,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO;IAK7C,MAAM,CAAC,qBAAqB,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,SAAK,GAAG,iBAAiB,EAAE;IA8CpF,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,SAAK,EAAE,OAAO,GAAE,iBAA8B,GAAG,iBAAiB,EAAE;IA0ChI,6FAA6F;IAC7F,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,SAAK,GAAG,iBAAiB,EAAE;IAkF1F,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,SAAK,GAAG,iBAAiB,EAAE;IAqB9E,kGAAkG;IAClG,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAWrD,OAAO,CAAC,MAAM,CAAC,KAAK;IAepB,OAAO,CAAC,MAAM,CAAC,OAAO;IAoDtB,OAAO,CAAC,MAAM,CAAC,QAAQ;CA0DxB"}
|
|
@@ -18,6 +18,13 @@ export declare abstract class IdentifierPolicy {
|
|
|
18
18
|
* `template`. Null is absence; the empty string is a relative reference and is refused.
|
|
19
19
|
*/
|
|
20
20
|
static assertIdentifier(raw: string | null, key: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the `uri` format the meta-schemas name admits a value, as the server's validator checks
|
|
23
|
+
* it: an RFC 3987 IRI reference, relative or absolute, spelled as given, which is what
|
|
24
|
+
* `assertFieldIri` takes. The empty string is a relative reference and passes. Where a position
|
|
25
|
+
* needs more, an absolute identifier say, the validator asks for it separately.
|
|
26
|
+
*/
|
|
27
|
+
static matchesUriFormat(value: string): boolean;
|
|
21
28
|
static isValid(value: string): boolean;
|
|
22
29
|
/** Field values retain the RFC 3987 spelling, including Unicode spaces. */
|
|
23
30
|
static isValidFieldValue(value: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentifierPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/IdentifierPolicy.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,8BAAsB,gBAAgB;IACpC,0FAA0F;WAC5E,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAsB/E,wFAAwF;WAC1E,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAsCnE;;;;;OAKG;WACW,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAO9D;;;;;OAKG;WACW,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"IdentifierPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/IdentifierPolicy.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,8BAAsB,gBAAgB;IACpC,0FAA0F;WAC5E,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAsB/E,wFAAwF;WAC1E,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAsCnE;;;;;OAKG;WACW,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAO9D;;;;;OAKG;WACW,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAYrE;;;;;OAKG;WACW,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;WAWxC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAU7C,2EAA2E;WAC7D,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAUvD;;;OAGG;WACW,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,UAAQ,GAAG,OAAO;CAW9E"}
|
|
@@ -2,6 +2,12 @@ import { NumericValue } from './NumericPolicy';
|
|
|
2
2
|
import { JsonNode } from '../model/cedar/types/basic-types/JsonNode';
|
|
3
3
|
/** Raw JSON boundary. Duplicate decoded keys and rounded or nonfinite source numbers are never accepted silently. */
|
|
4
4
|
export declare class JsonSourcePolicy {
|
|
5
|
+
/**
|
|
6
|
+
* The text of the number at `key` in a parsed JSON object where it was written with a fraction or an
|
|
7
|
+
* exponent, as `3.0` or `3e0` is, and null otherwise. Java's reader holds such a number as a decimal
|
|
8
|
+
* whatever value it denotes, and holds an integer only where the text wrote one.
|
|
9
|
+
*/
|
|
10
|
+
static decimalSpelling(object: JsonNode, key: string): string | null;
|
|
5
11
|
static sourceNumber(text: string): NumericValue;
|
|
6
12
|
static parse(source: string): JsonNode;
|
|
7
13
|
/** Own a JSON tree while preserving exact numeric atoms across independent bundles. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonSourcePolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/JsonSourcePolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"JsonSourcePolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/JsonSourcePolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAKrE,qHAAqH;AACrH,qBAAa,gBAAgB;IAC3B;;;;OAIG;WACW,eAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;WAK7D,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;WAKxC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ;IAgF7C,uFAAuF;WACzE,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC;IAoBpC,0FAA0F;WAC5E,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,SAAI,GAAG,MAAM;CAkC5D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ValidationFinding } from './ValidationPolicy';
|
|
2
|
+
/** Raw schema constraint checks shared by model validation and the host's retained payload. */
|
|
3
|
+
export declare class SchemaValuePolicy {
|
|
4
|
+
static visit(source: unknown, path: string, out: ValidationFinding[]): void;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=SchemaValuePolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaValuePolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/SchemaValuePolicy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,oBAAoB,CAAC;AAEzE,+FAA+F;AAC/F,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,EAAE,GAAG,IAAI;CAuC5E"}
|
|
@@ -6,6 +6,14 @@ export declare class TextPolicy {
|
|
|
6
6
|
static isBlankCodePoint(cp: number): boolean;
|
|
7
7
|
/** JSON Schema length, distinct from UTF-16 layout offsets and displayed graphemes. */
|
|
8
8
|
static codePointLength(value: string): number;
|
|
9
|
+
/**
|
|
10
|
+
* Whether two strings are equal ignoring case, as Java's `String.equalsIgnoreCase` decides it: the
|
|
11
|
+
* same length, and at each position the same character, the same upper case, or the same lower case
|
|
12
|
+
* of the upper cases. JavaScript applies the full case mappings and Java the single-character ones,
|
|
13
|
+
* so the two can differ where a mapping yields more than one character, as the lower case of U+0130
|
|
14
|
+
* does.
|
|
15
|
+
*/
|
|
16
|
+
static equalsIgnoreCase(a: string, b: string): boolean;
|
|
9
17
|
/** Explicit authoring affordance only, never a reader/writer or identity normalization. */
|
|
10
18
|
static trimInputPadding(value: string): string;
|
|
11
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/TextPolicy.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,qBAAa,UAAU;IACrB,OAAO;IAEP,mGAAmG;WACrF,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;WAK/B,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAcnD,uFAAuF;WACzE,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIpD,2FAA2F;WAC7E,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAGtD"}
|
|
1
|
+
{"version":3,"file":"TextPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/TextPolicy.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,qBAAa,UAAU;IACrB,OAAO;IAEP,mGAAmG;WACrF,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;WAK/B,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAcnD,uFAAuF;WACzE,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIpD;;;;;;OAMG;WACW,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IAY7D,2FAA2F;WAC7E,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAGtD"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
/** Provenance timestamps. Partial temporal field values have a separate contract. */
|
|
2
2
|
export declare class TimestampPolicy {
|
|
3
3
|
static canonical(value: string): string;
|
|
4
|
+
/**
|
|
5
|
+
* Whether the `date-time` format the meta-schemas name admits a value, as the
|
|
6
|
+
* server's validator checks it. That check resolves a value leniently rather
|
|
7
|
+
* than reading it as a calendar: any month takes a day up to 31, and
|
|
8
|
+
* `24:00:00` is the next midnight. It wants a four-digit year from 0001, or a
|
|
9
|
+
* longer one after `+`, seconds, a fraction of one to nine digits, and an
|
|
10
|
+
* offset of `Z`, `±HH:MM`, `±HH:MM:SS` or `±HHMM` no further than 18 hours.
|
|
11
|
+
* The model reads a provenance timestamp more strictly in some respects and
|
|
12
|
+
* less in others, so a stored one must satisfy both.
|
|
13
|
+
*/
|
|
14
|
+
static matchesFormat(value: string): boolean;
|
|
4
15
|
}
|
|
5
16
|
//# sourceMappingURL=TimestampPolicy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimestampPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/TimestampPolicy.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,qBAAa,eAAe;WACZ,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;
|
|
1
|
+
{"version":3,"file":"TimestampPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/TimestampPolicy.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,qBAAa,eAAe;WACZ,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAwC9C;;;;;;;;;OASG;WACW,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CASpD"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cedar-model-typescript-library",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "TypeScript models, builders, readers, writers, and validators for CEDAR metadata artifacts",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.esm.js",
|
|
7
7
|
"browser": {
|
|
8
|
-
"./policy.js": "./policy.esm.js"
|
|
8
|
+
"./policy.js": "./policy.esm.js",
|
|
9
|
+
"./schema.js": "./schema.esm.js"
|
|
9
10
|
},
|
|
10
11
|
"types": "index.d.ts",
|
|
11
12
|
"repository": {
|
package/policy.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={120(e,t){t.javaPlainDecimal=function(e){if(!Number.isFinite(e))throw new RangeError("Expected a finite number");if(0===e)return"0";if(Number.isSafeInteger(e))return String(e);const t=e<0?"-":"",i=Math.abs(e),r=new DataView(new ArrayBuffer(8));r.setFloat64(0,i);const n=r.getBigUint64(0),s=Number(n>>52n&2047n),a=n&(1n<<52n)-1n|(s?1n<<52n:0n),o=s?s-1075:-1074,c=a.toString(2).length,l=o+c-1;let u=a,h=1n;if(o>=0?u<<=BigInt(o):h<<=BigInt(-o),l<=62&&u%h===0n){let e=u/h;const i=l>c?(1n<<BigInt(l-c-1)).toString().length-1:0,r=10n**BigInt(i);return e=(e+r/2n)/r*r,t+String(e)}let d=Math.floor(.289529654*(Number(a)/2**(c-1)-1.5)+.176091259+.301029995663981*l),f=u,m=h;d>=0?m*=10n**BigInt(d):f*=10n**BigInt(-d);const p=o-1-(0n==(a&a-1n)?1:0);let g=1n,y=1n;function b(e,t){for(;t;)[e,t]=[t,e%t];return e}p>=0?g<<=BigInt(p):y<<=BigInt(-p),d>=0?y*=10n**BigInt(d):g*=10n**BigInt(-d);let w=m/b(m,y)*y;function x(e){let t=0;for(;0n==(1n&e);)e>>=1n,t++;return t}function v(e){return 0===e?0:e<27?(5n**BigInt(e)).toString(2).length:3*e}f*=w/m,g*=w/y,m=w,w=b(b(f,m),g),f/=w,m/=w,g/=w;const E=c-x(a)+x(f)+v(Math.max(0,-d)),P=x(m)+1+v(Math.max(0,d)+1),I=E<32&&P<32?32:E<64&&P<64?64:0,S=e=>I?BigInt.asIntN(I,e):e,R=10n*m;let O=0n,N=0,k=!0;for(;;){const e=f/m;f=f%m*10n,g=S(10n*g);let t=g<=0n||f<g,i=g<=0n||(I?S(f+g)>R:f+g>=R);if(k&&0n===e&&!i?d--:(O=10n*O+e,N++),k&&(d<-3||d>=8)&&(t=!1,i=!1),k=!1,t||i){const e=S(S(2n*f)-R);i&&(!t||e>0n||0n===e&&O%2n==1n)&&O++;break}}let T=String(O);const j=d-N+1;if(j>=0)return t+T+"0".repeat(j);const M=T.length+j;return T=M>0?T.slice(0,M)+"."+T.slice(M):"0."+"0".repeat(-M)+T,t+T.replace(/\.?0+$/,"")}},68(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayText=void 0;class i{static segmenter=new Intl.Segmenter("und",{granularity:"grapheme"});static take(e,t,i=!1){const r=Math.max(0,Math.trunc(t));if(!r)return"";const n=Array.from(this.segmenter.segment(e),({segment:e})=>e);return(i?n.slice(-r):n.slice(0,r)).join("")}static searchKey(e){return Array.from(this.segmenter.segment(e),({segment:e})=>e.normalize("NFC").toLowerCase()).join("")}static splitMatch(e,t){const i=this.searchKey(t);if(!i)return[e,"",""];let r="";const n=[];for(const{segment:t,index:i}of this.segmenter.segment(e)){const e=t.normalize("NFC").toLowerCase();r+=e;for(let r=0;r<e.length;r++)n.push({start:i,end:i+t.length})}const s=r.indexOf(i);if(s<0)return[e,"",""];const a=n[s].start,o=n[s+i.length-1].end;return[e.slice(0,a),e.slice(a,o),e.slice(o)]}static elide(e,t=96,i=28){const r=Array.from(this.segmenter.segment(e),({segment:e})=>e),n=Math.max(1,Math.trunc(t));if(r.length<=n)return e;const s=Math.max(0,Math.min(Math.trunc(i),n-1));return`${r.slice(0,n-s-1).join("").trimEnd()}…${s?r.slice(-s).join("").trimStart():""}`}}t.DisplayText=i},500(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierPolicy=void 0,t.IdentifierPolicy=class{static assertIdentifierCharacters(e,t){if(null!==e){if(Array.from(e).some(e=>e.charCodeAt(0)<=32||e.charCodeAt(0)>=127&&e.charCodeAt(0)<=159||/\p{Z}/u.test(e)))throw new Error(`Invalid URI at "${t}": unescaped space or control character.`);if(e.indexOf("#")!==e.lastIndexOf("#"))throw new Error(`Invalid URI at "${t}": more than one fragment delimiter.`);if(e.split(/[/?#]/,1)[0].includes(":")&&!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": malformed scheme.`)}}static assertFieldIri(e,t){if(null===e)return;if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if("string"!=typeof e)throw new Error(`Invalid URI/IRI at "${t}": expected string.`);let i=!1,r=!1;for(const n of e){const e=n.codePointAt(0);if("#"===n?(r=!0,i=!1):"?"!==n||r||(i=!0),e<128){if(e<=32||127===e||'<>"{}|\\^`'.includes(n))throw new Error(`Invalid URI/IRI at "${t}": unescaped space, control or forbidden character.`)}else if(!(e>=160&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65519||e>=65536&&e<=917501&&(65535&e)<=65533||e>=921600&&e<=983037||i&&(e>=57344&&e<=63743||e>=983040&&e<=1048573||e>=1048576&&e<=1114109)))throw new Error(`Invalid URI/IRI at "${t}": forbidden Unicode character.`)}if(/%(?![0-9a-fA-F]{2})/.test(e))throw new Error(`Invalid URI/IRI at "${t}": malformed percent escape.`);const n=/^[A-Za-z][A-Za-z0-9+.-]*:/.exec(e)?.[0]??"",s=e.slice(n.length).split("#",1)[0];if(n&&!s||"//"===s)throw new Error(`Invalid URI/IRI at "${t}": missing scheme-specific part or authority.`);const a=Array.from(e,e=>e.codePointAt(0)>=128?encodeURIComponent(e):e).join("");this.assertIdentifierCharacters(a,t)}static assertIri(e,t){if(null!==e&&""!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);this.assertFieldIri(e,t),this.assertIdentifierCharacters(e,t)}}static assertIdentifier(e,t){if(null!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if(this.assertIri(e,t),!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": an identifier must be an absolute IRI.`)}}static isValid(e){if("string"!=typeof e)return!1;try{return this.assertIdentifier(e,"value"),!0}catch{return!1}}static isValidFieldValue(e){if("string"!=typeof e)return!1;try{return this.assertFieldIri(e,"value"),!0}catch{return!1}}static isValidAuthoringIri(e,t=!1){if(!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))return!1;if(!(t?this.isValidFieldValue(e):this.isValid(e)))return!1;if(!/^https?:/i.test(e))return!0;if(!/^https?:\/\//i.test(e))return!1;try{return new URL(e).hostname.length>0}catch{return!1}}}},904(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSourcePolicy=void 0;const r=i(108),n=i(120);class s{static sourceNumber(e){const t=r.NumericPolicy.value(e);return"number"==typeof t&&0!==r.NumericPolicy.compare(e,(0,n.javaPlainDecimal)(t))?r.ExactDecimal.forValue(e):t}static parse(e){let t=0;const i=()=>{for(;/[ \t\n\r]/.test(e[t]??"\0");)t++},n=()=>{throw new SyntaxError(`Invalid JSON at position ${t}`)};function a(){const i=t++;for(;;){if(t>=e.length)return n();const r=e[t++];if('"'===r)return JSON.parse(e.slice(i,t));if("\\"===r)t++;else if(r.charCodeAt(0)<32)return n()}}const o=function r(o){if(o>1e3)throw new RangeError("JSON nesting limit exceeded");i();const c=e[t];if('"'===c)return a();if("{"===c||"["===c){t++;const s={},l=[],u="{"===c?"}":"]";if(i(),e[t]!==u)for(;;){if(i(),"{"===c){if('"'!==e[t])return n();const c=a();if(Object.hasOwn(s,c))throw new SyntaxError("Duplicate JSON mapping key");if(i(),":"!==e[t++])return n();Object.defineProperty(s,c,{value:r(o+1),enumerable:!0,writable:!0,configurable:!0})}else l.push(r(o+1));if(i(),e[t]===u)break;if(","!==e[t++])return n()}return t++,"{"===c?s:l}for(const[i,r]of[["true",!0],["false",!1],["null",null]])if(e.startsWith(i,t))return t+=i.length,r;const l=/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?/.exec(e.slice(t));if(!l)return n();if(l[0].length>1e3)throw new RangeError("JSON number length limit exceeded");return t+=l[0].length,s.sourceNumber(l[0])}(0);if(i(),t!==e.length&&n(),null===o||"object"!=typeof o||Array.isArray(o)||o instanceof r.ExactDecimal)throw new SyntaxError("Expected a JSON object");return o}static clone(e){const t=new Set;return function e(i){if(r.ExactDecimal.isExact(i))return r.ExactDecimal.forValue(String(i));if(null==i||"string"==typeof i||"boolean"==typeof i)return i;if("number"==typeof i&&Number.isFinite(i))return i;if("object"!=typeof i||t.has(i))throw new TypeError("Expected acyclic JSON data");t.add(i);try{if(Array.isArray(i))return i.map(e);if(Object.getPrototypeOf(i)!==Object.prototype&&null!==Object.getPrototypeOf(i))throw new TypeError("Expected a JSON object");return Object.fromEntries(Object.entries(i).map(([t,i])=>[t,e(i)]))}finally{t.delete(i)}}(e)}static stringify(e,t=0){const i=" ".repeat(Math.max(0,Math.min(10,t))),s=new Set,a=function e(t,a){if(r.ExactDecimal.isExact(t))return t.toString();if("number"==typeof t)return(0,n.javaPlainDecimal)(t);if("string"==typeof t||"boolean"==typeof t||null===t)return JSON.stringify(t);if(void 0!==t){if("object"!=typeof t)throw new TypeError("Expected a JSON value");if(a>1e3||s.has(t))throw new TypeError("Cyclic JSON value or nesting limit exceeded");s.add(t);try{const r=Array.isArray(t),n=[];if(r)for(const i of t)n.push(e(i,a+1)??"null");else for(const r of Object.keys(t)){const s=e(t[r],a+1);void 0!==s&&n.push(JSON.stringify(r)+(i?": ":":")+s)}const[s,o]=r?["[","]"]:["{","}"];return n.length?i?s+"\n"+i.repeat(a+1)+n.join(",\n"+i.repeat(a+1))+"\n"+i.repeat(a)+o:s+n.join(",")+o:s+o}finally{s.delete(t)}}}(e,0);if(void 0===a)throw new TypeError("Expected a JSON value");return a}}t.JsonSourcePolicy=s},108(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NumericPolicy=t.ExactDecimal=void 0;class i{text;cedarExactDecimal=!0;static isExact(e){return null!==e&&"object"==typeof e&&!0===e.cedarExactDecimal&&"function"==typeof e.toJSON}constructor(e){this.text=e,Object.freeze(this)}static forValue(e){return new i(r.canonical(e))}toString(){return this.text}valueOf(){throw new Error("Use NumericPolicy.compare for exact decimals; implicit numeric coercion would lose precision.")}toJSON(){const e=JSON.rawJSON;if(!e)throw new Error("Use JsonSourcePolicy.stringify to serialize exact decimal numbers.");return e(this.text)}}t.ExactDecimal=i;class r{static parts(e){const t="string"==typeof e?e:String(e),i=/^([+-]?)(?:(\d+)(?:\.(\d*))?|\.(\d+))(?:[eE]([+-]?\d+))?$/.exec(t);if(!i)throw new Error("Expected a finite decimal number without surrounding whitespace.");const r=i[3]??i[4]??"",n=BigInt(i[5]??"0");let s=n-BigInt(r.length);if(n<-2147483647n||n>2147483647n||s<-2147483647n||s>2147483648n)throw new Error("Decimal exponent or scale is outside the shared numeric range.");let a=((i[2]??"")+r).replace(/^0+/,"");if(!a)return{sign:0,digits:"0",exponent:0n};const o=/0+$/.exec(a)?.[0].length??0;return o&&(a=a.slice(0,-o),s+=BigInt(o)),{sign:"-"===i[1]?-1:1,digits:a,exponent:s}}static canonical(e){const{sign:t,digits:i,exponent:r}=this.parts(e);if(!t)return"0";const n=t<0?"-":"",s=r+BigInt(i.length-1);if(r>=0n&&s<1000n)return n+i+"0".repeat(Number(r));if(r<0n&&s>=-1000n){const e=i.length+Number(r);return n+(e>0?i.slice(0,e)+"."+i.slice(e):"0."+"0".repeat(-e)+i)}if(s>2147483647n){const e=r-2147483647n;return n+i+(e>0n?"0".repeat(Number(e)):"")+"E+"+(e>0n?2147483647n:r)}return n+i[0]+(i.length>1?"."+i.slice(1):"")+"E"+(s>=0n?"+":"")+s}static compare(e,t){const i=this.parts(e),r=this.parts(t);if(i.sign!==r.sign)return i.sign<r.sign?-1:1;if(!i.sign)return 0;const n=BigInt(i.digits.length)+i.exponent,s=BigInt(r.digits.length)+r.exponent;let a;if(n!==s)a=n<s?-1:1;else{const e=Math.max(i.digits.length,r.digits.length),t=i.digits.padEnd(e,"0"),n=r.digits.padEnd(e,"0");a=t===n?0:t<n?-1:1}return 0===a?0:a*i.sign}static isInteger(e){return this.parts(e).exponent>=0n}static fractionalDigits(e){return Math.max(0,-Number(this.parts(e).exponent))}static value(e){if(i.isExact(e))return e;if(this.parts(e),"number"==typeof e)return e;const t=Number(e);return!Number.isFinite(t)||Number.isInteger(t)&&!Number.isSafeInteger(t)||0!==this.compare(e,t)?i.forValue(e):t}}t.NumericPolicy=r},991(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.RegexChecks=void 0;const r=i(128);class n{changed;policy;entries=new Map;used=null;size=0;disposed=!1;capacityLimited=!1;static active=null;constructor(e=()=>{},t=new r.RegexPolicy){this.changed=e,this.policy=t}run(e){if(this.used)return e();const t=n.active;n.active=this,this.used=new Set,this.capacityLimited=!1;try{return e()}finally{const e=this.used;this.used=null,n.active=t;let i=!1;for(const[t,r]of this.entries)e.has(t)||(i=!0,this.entries.delete(t),this.size-=t.length,r.controller.abort());i&&this.capacityLimited&&queueMicrotask(()=>{this.disposed||this.changed()})}}static inspect(e,t=null){return this.active?.check(e,t)??"pending"}check(e,t){if(this.disposed)return"cancelled";if(e.length>1e4||(t?.length??0)>1e6)return"limit";const i=JSON.stringify([e,t]);this.used.add(i);const r=this.entries.get(i);if(r)return r.result;if(this.entries.size>=1024||this.size+i.length>4e6)return this.capacityLimited=!0,"limit";const n=new AbortController,s={result:"pending",controller:n,done:Promise.resolve()};return this.entries.set(i,s),this.size+=i.length,s.done=this.policy.evaluate(e,t,n.signal).then(e=>{this.disposed||this.entries.get(i)!==s||(s.result=e,this.pending||this.changed())}),"pending"}get pending(){return[...this.entries.values()].some(e=>"pending"===e.result)}async settled(){await Promise.all([...this.entries.values()].map(e=>e.done))}static async validate(e,t){const i=new n(void 0,t);try{let t=i.run(e);for(;i.pending;)await i.settled(),t=i.run(e);return t}finally{i.dispose()}}dispose(){this.disposed=!0;for(const e of this.entries.values())e.controller.abort();this.entries.clear(),this.size=0,this.policy.dispose()}}t.RegexChecks=n},128(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.RegexPolicy=t.REGEX_WORKER_SOURCE=void 0,t.REGEX_WORKER_SOURCE="\n onmessage = ({data}) => {\n let result;\n try {\n const expression = new RegExp('^(?:' + data.pattern + ')$');\n result = data.value === null ? 'valid' : expression.test(data.value) ? 'match' : 'mismatch';\n } catch (_) { result = 'invalid'; }\n postMessage({id: data.id, result});\n };\n postMessage({ready: true});\n",t.RegexPolicy=class{worker=null;ready=!1;releaseSource=null;current=null;queue=[];serial=0;timer;idleTimer;closed=!1;options;constructor(e={}){this.options={workerFactory:e.workerFactory??(()=>{const e=globalThis,i=e.URL.createObjectURL(new e.Blob([t.REGEX_WORKER_SOURCE],{type:"text/javascript"}));return this.releaseSource=()=>e.URL.revokeObjectURL(i),new e.Worker(i)}),workTimeoutMs:e.workTimeoutMs??250,startupTimeoutMs:e.startupTimeoutMs??5e3,queueLimit:e.queueLimit??1024};for(const e of[this.options.workTimeoutMs,this.options.startupTimeoutMs,this.options.queueLimit])if(!Number.isSafeInteger(e)||e<1)throw new RangeError("Regex limits must be positive integers")}evaluate(e,t=null,i){return this.closed||i?.aborted?Promise.resolve("cancelled"):e.length>1e4||(t?.length??0)>1e6||this.queue.length>=this.options.queueLimit?Promise.resolve("limit"):new Promise(r=>{const n={id:++this.serial,pattern:e,value:t,finish:e=>{i?.removeEventListener("abort",s),r(e)}},s=()=>{this.current===n?this.fail("cancelled"):(this.queue=this.queue.filter(e=>e!==n),n.finish("cancelled"))};i?.addEventListener("abort",s,{once:!0}),this.queue.push(n),this.next()})}stopWorker(){clearTimeout(this.timer),clearTimeout(this.idleTimer),this.worker&&(this.worker.onmessage=null,this.worker.onerror=null,this.worker.terminate()),this.worker=null,this.ready=!1,this.releaseSource?.(),this.releaseSource=null}fail(e){this.stopWorker();const t=this.current;this.current=null,t?.finish(e),queueMicrotask(()=>this.next())}next(){if(!this.closed&&!this.current&&0!==this.queue.length)if(clearTimeout(this.idleTimer),this.current=this.queue.shift(),this.worker&&this.ready)this.send();else try{const e=this.options.workerFactory();this.worker=e,this.timer=setTimeout(()=>this.fail("unavailable"),this.options.startupTimeoutMs),e.onerror=()=>{this.worker===e&&this.fail("unavailable")},e.onmessage=({data:t})=>{if(this.worker!==e||!t||"object"!=typeof t)return;const i=t;if(i.ready&&!this.ready)clearTimeout(this.timer),this.ready=!0,this.send();else if(i.id===this.current?.id&&["valid","match","mismatch","invalid"].includes(i.result??"")){clearTimeout(this.timer);const e=this.current;this.current=null,e.finish(i.result),this.idleTimer=setTimeout(()=>this.stopWorker(),1e3),this.next()}}}catch{this.fail("unavailable")}}send(){if(this.current&&this.worker){this.timer=setTimeout(()=>this.fail("timeout"),this.options.workTimeoutMs);try{this.worker.postMessage({id:this.current.id,pattern:this.current.pattern,value:this.current.value})}catch{this.fail("unavailable")}}}dispose(){this.closed=!0,this.stopWorker(),this.current?.finish("cancelled"),this.current=null,this.queue.splice(0).forEach(e=>e.finish("cancelled"))}}},992(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TextPolicy=void 0,t.TextPolicy=class{constructor(){}static isBlank(e){for(const t of e)if(!this.isBlankCodePoint(t.codePointAt(0)))return!1;return!0}static isBlankCodePoint(e){return e>=9&&e<=13||e>=28&&e<=32||5760===e||e>=8192&&e<=8198||e>=8200&&e<=8202||8232===e||8233===e||8287===e||12288===e}static codePointLength(e){return Array.from(e).length}static trimInputPadding(e){return e.replace(/^[\t\n\r ]+|[\t\n\r ]+$/g,"")}}},435(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampPolicy=void 0,t.TimestampPolicy=class{static canonical(e){const t=e.replace(/([+-][0-9]{2})([0-9]{2})$/,"$1:$2"),i=/^(\d{4}|-\d{4,9}|\+\d{5,9})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?([Zz]|[+-]\d{2}(?::\d{2}(?::\d{2})?)?)$/.exec(t);if(!i)throw new Error("Expected an ISO timestamp with an explicit offset.");const[,r,n,s,a,o,c="00",l="",u]=i,h=Number(r),d=Number(n),f=Number(s),m=[31,h%4!=0||h%100==0&&h%400!=0?28:29,31,30,31,30,31,31,30,31,30,31];if(0===h&&r.startsWith("-")||d<1||d>12||f<1||f>m[d-1]||Number(a)>23||Number(o)>59||Number(c)>59)throw new Error("Invalid timestamp calendar or clock value.");let p="Z";if("Z"!==u.toUpperCase()){const[e,t=0,i=0]=u.slice(1).split(":").map(Number);if(e>18||t>59||i>59||18===e&&(0!==t||0!==i))throw new Error("Timestamp offset is outside the ISO offset range.");(e||t||i)&&(p=`${u[0]}${String(e).padStart(2,"0")}:${String(t).padStart(2,"0")}`,i&&(p+=`:${String(i).padStart(2,"0")}`))}const g=(h<0?"-":h>9999?"+":"")+String(Math.abs(h)).padStart(4,"0"),y=l.replace(/0+$/,"");return`${g}-${n}-${s}T${a}:${o}:${c}${y?"."+y:""}${p}`}}},92(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationPolicy=void 0;class i{static constraints=new Set(["minLength","maxLength","regex","pattern","email","link","phoneNumber","minValue","maxValue","decimalPlace","temporalGranularity","timezone","choiceMembership","maxItems","controlledTermMembership","authorityIdentifier","authorityMembership"]);static completeness=new Set(["required","minItems"]);static verification=new Set(["regexPending","regexEvaluation","regexUnavailable","semanticNotChecked","semanticUnavailable","controlledTermVerified","authorityVerified"]);static acceptsSemanticResult(e,t,i){switch(t){case"passed":return i===(e?"controlledTermVerified":"authorityVerified");case"failed":return e?"controlledTermMembership"===i:"authorityIdentifier"===i||"authorityMembership"===i;case"notChecked":return"semanticNotChecked"===i;case"unavailable":return"semanticUnavailable"===i;default:return!1}}static category(e){return this.constraints.has(e)?"constraint":this.completeness.has(e)?"completeness":this.verification.has(e)?"verification":"structural"}static blocksSave(e,t="instance"){if("string"!=typeof e&&"passed"===e.verificationStatus)return!1;const i="string"==typeof e?this.category(e):e.category;return"structural"===i||"template"===t&&("verification"!==i||"string"!=typeof e&&"failed"===e.verificationStatus)}static severity(e,t="instance"){return this.blocksSave(e,t)?"error":"warning"}static finding(e,t,i,r){const n={code:e,category:this.category(e),path:t,message:i};return void 0!==r&&(n.verificationStatus=r),n}static summarize(e,t="instance"){const i=e.filter(e=>"passed"!==e.verificationStatus);return{findings:[...e],structurallyValid:!i.some(e=>"structural"===e.category),canSave:!i.some(e=>this.blocksSave(e,t)),isValid:0===i.length}}static pointer(e){return e.map(e=>"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")).join("")}static child(e,t){return e+this.pointer([t])}}t.ValidationPolicy=i}};const t={};function i(r){const n=t[r];if(void 0!==n)return n.exports;const s=t[r]={exports:{}};return e[r](s,s.exports,i),s.exports}let r={};(()=>{let e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationPolicy=e.RegexChecks=e.REGEX_WORKER_SOURCE=e.RegexPolicy=e.JsonSourcePolicy=e.ExactDecimal=e.NumericPolicy=e.TimestampPolicy=e.DisplayText=e.IdentifierPolicy=e.TextPolicy=void 0;var t=i(992);Object.defineProperty(e,"TextPolicy",{enumerable:!0,get:function(){return t.TextPolicy}});var n=i(500);Object.defineProperty(e,"IdentifierPolicy",{enumerable:!0,get:function(){return n.IdentifierPolicy}});var s=i(68);Object.defineProperty(e,"DisplayText",{enumerable:!0,get:function(){return s.DisplayText}});var a=i(435);Object.defineProperty(e,"TimestampPolicy",{enumerable:!0,get:function(){return a.TimestampPolicy}});var o=i(108);Object.defineProperty(e,"NumericPolicy",{enumerable:!0,get:function(){return o.NumericPolicy}}),Object.defineProperty(e,"ExactDecimal",{enumerable:!0,get:function(){return o.ExactDecimal}});var c=i(904);Object.defineProperty(e,"JsonSourcePolicy",{enumerable:!0,get:function(){return c.JsonSourcePolicy}});var l=i(128);Object.defineProperty(e,"RegexPolicy",{enumerable:!0,get:function(){return l.RegexPolicy}}),Object.defineProperty(e,"REGEX_WORKER_SOURCE",{enumerable:!0,get:function(){return l.REGEX_WORKER_SOURCE}});var u=i(991);Object.defineProperty(e,"RegexChecks",{enumerable:!0,get:function(){return u.RegexChecks}});var h=i(92);Object.defineProperty(e,"ValidationPolicy",{enumerable:!0,get:function(){return h.ValidationPolicy}})})();const n=r.DisplayText,s=r.ExactDecimal,a=r.IdentifierPolicy,o=r.JsonSourcePolicy,c=r.NumericPolicy,l=r.REGEX_WORKER_SOURCE,u=r.RegexChecks,h=r.RegexPolicy,d=r.TextPolicy,f=r.TimestampPolicy,m=r.ValidationPolicy,p=r.__esModule;export{n as DisplayText,s as ExactDecimal,a as IdentifierPolicy,o as JsonSourcePolicy,c as NumericPolicy,l as REGEX_WORKER_SOURCE,u as RegexChecks,h as RegexPolicy,d as TextPolicy,f as TimestampPolicy,m as ValidationPolicy,p as __esModule};export default r;
|
|
1
|
+
var e={120(e,t){t.javaPlainDecimal=function(e){if(!Number.isFinite(e))throw new RangeError("Expected a finite number");if(0===e)return"0";if(Number.isSafeInteger(e))return String(e);const t=e<0?"-":"",r=Math.abs(e),i=new DataView(new ArrayBuffer(8));i.setFloat64(0,r);const n=i.getBigUint64(0),s=Number(n>>52n&2047n),a=n&(1n<<52n)-1n|(s?1n<<52n:0n),o=s?s-1075:-1074,c=a.toString(2).length,l=o+c-1;let u=a,h=1n;if(o>=0?u<<=BigInt(o):h<<=BigInt(-o),l<=62&&u%h===0n){let e=u/h;const r=l>c?(1n<<BigInt(l-c-1)).toString().length-1:0,i=10n**BigInt(r);return e=(e+i/2n)/i*i,t+String(e)}let d=Math.floor(.289529654*(Number(a)/2**(c-1)-1.5)+.176091259+.301029995663981*l),f=u,m=h;d>=0?m*=10n**BigInt(d):f*=10n**BigInt(-d);const p=o-1-(0n==(a&a-1n)?1:0);let g=1n,y=1n;function b(e,t){for(;t;)[e,t]=[t,e%t];return e}p>=0?g<<=BigInt(p):y<<=BigInt(-p),d>=0?y*=10n**BigInt(d):g*=10n**BigInt(-d);let w=m/b(m,y)*y;function x(e){let t=0;for(;0n==(1n&e);)e>>=1n,t++;return t}function v(e){return 0===e?0:e<27?(5n**BigInt(e)).toString(2).length:3*e}f*=w/m,g*=w/y,m=w,w=b(b(f,m),g),f/=w,m/=w,g/=w;const E=c-x(a)+x(f)+v(Math.max(0,-d)),P=x(m)+1+v(Math.max(0,d)+1),I=E<32&&P<32?32:E<64&&P<64?64:0,S=e=>I?BigInt.asIntN(I,e):e,R=10n*m;let O=0n,N=0,k=!0;for(;;){const e=f/m;f=f%m*10n,g=S(10n*g);let t=g<=0n||f<g,r=g<=0n||(I?S(f+g)>R:f+g>=R);if(k&&0n===e&&!r?d--:(O=10n*O+e,N++),k&&(d<-3||d>=8)&&(t=!1,r=!1),k=!1,t||r){const e=S(S(2n*f)-R);r&&(!t||e>0n||0n===e&&O%2n==1n)&&O++;break}}let T=String(O);const j=d-N+1;if(j>=0)return t+T+"0".repeat(j);const M=T.length+j;return T=M>0?T.slice(0,M)+"."+T.slice(M):"0."+"0".repeat(-M)+T,t+T.replace(/\.?0+$/,"")}},68(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayText=void 0;class r{static segmenter=new Intl.Segmenter("und",{granularity:"grapheme"});static take(e,t,r=!1){const i=Math.max(0,Math.trunc(t));if(!i)return"";const n=Array.from(this.segmenter.segment(e),({segment:e})=>e);return(r?n.slice(-i):n.slice(0,i)).join("")}static searchKey(e){return Array.from(this.segmenter.segment(e),({segment:e})=>e.normalize("NFC").toLowerCase()).join("")}static splitMatch(e,t){const r=this.searchKey(t);if(!r)return[e,"",""];let i="";const n=[];for(const{segment:t,index:r}of this.segmenter.segment(e)){const e=t.normalize("NFC").toLowerCase();i+=e;for(let i=0;i<e.length;i++)n.push({start:r,end:r+t.length})}const s=i.indexOf(r);if(s<0)return[e,"",""];const a=n[s].start,o=n[s+r.length-1].end;return[e.slice(0,a),e.slice(a,o),e.slice(o)]}static elide(e,t=96,r=28){const i=Array.from(this.segmenter.segment(e),({segment:e})=>e),n=Math.max(1,Math.trunc(t));if(i.length<=n)return e;const s=Math.max(0,Math.min(Math.trunc(r),n-1));return`${i.slice(0,n-s-1).join("").trimEnd()}…${s?i.slice(-s).join("").trimStart():""}`}}t.DisplayText=r},500(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierPolicy=void 0,t.IdentifierPolicy=class{static assertIdentifierCharacters(e,t){if(null!==e){if(Array.from(e).some(e=>e.charCodeAt(0)<=32||e.charCodeAt(0)>=127&&e.charCodeAt(0)<=159||/\p{Z}/u.test(e)))throw new Error(`Invalid URI at "${t}": unescaped space or control character.`);if(e.indexOf("#")!==e.lastIndexOf("#"))throw new Error(`Invalid URI at "${t}": more than one fragment delimiter.`);if(e.split(/[/?#]/,1)[0].includes(":")&&!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": malformed scheme.`)}}static assertFieldIri(e,t){if(null===e)return;if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if("string"!=typeof e)throw new Error(`Invalid URI/IRI at "${t}": expected string.`);let r=!1,i=!1;for(const n of e){const e=n.codePointAt(0);if("#"===n?(i=!0,r=!1):"?"!==n||i||(r=!0),e<128){if(e<=32||127===e||'<>"{}|\\^`'.includes(n))throw new Error(`Invalid URI/IRI at "${t}": unescaped space, control or forbidden character.`)}else if(!(e>=160&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65519||e>=65536&&e<=917501&&(65535&e)<=65533||e>=921600&&e<=983037||r&&(e>=57344&&e<=63743||e>=983040&&e<=1048573||e>=1048576&&e<=1114109)))throw new Error(`Invalid URI/IRI at "${t}": forbidden Unicode character.`)}if(/%(?![0-9a-fA-F]{2})/.test(e))throw new Error(`Invalid URI/IRI at "${t}": malformed percent escape.`);const n=/^[A-Za-z][A-Za-z0-9+.-]*:/.exec(e)?.[0]??"",s=e.slice(n.length).split("#",1)[0];if(n&&!s||"//"===s)throw new Error(`Invalid URI/IRI at "${t}": missing scheme-specific part or authority.`);const a=Array.from(e,e=>e.codePointAt(0)>=128?encodeURIComponent(e):e).join("");this.assertIdentifierCharacters(a,t)}static assertIri(e,t){if(null!==e&&""!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);this.assertFieldIri(e,t),this.assertIdentifierCharacters(e,t)}}static assertIdentifier(e,t){if(null!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if(this.assertIri(e,t),!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": an identifier must be an absolute IRI.`)}}static matchesUriFormat(e){if("string"!=typeof e)return!1;if(""===e)return!0;try{return this.assertFieldIri(e,"value"),!0}catch{return!1}}static isValid(e){if("string"!=typeof e)return!1;try{return this.assertIdentifier(e,"value"),!0}catch{return!1}}static isValidFieldValue(e){if("string"!=typeof e)return!1;try{return this.assertFieldIri(e,"value"),!0}catch{return!1}}static isValidAuthoringIri(e,t=!1){if(!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))return!1;if(!(t?this.isValidFieldValue(e):this.isValid(e)))return!1;if(!/^https?:/i.test(e))return!0;if(!/^https?:\/\//i.test(e))return!1;try{return new URL(e).hostname.length>0}catch{return!1}}}},904(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSourcePolicy=void 0;const i=r(108),n=r(120),s=new WeakMap;class a{static decimalSpelling(e,t){const r=s.get(e)?.get(t);return void 0!==r&&Object.is(r.value,e[t])?r.text:null}static sourceNumber(e){const t=i.NumericPolicy.value(e);return"number"==typeof t&&0!==i.NumericPolicy.compare(e,(0,n.javaPlainDecimal)(t))?i.ExactDecimal.forValue(e):t}static parse(e){let t=0,r=null;const n=()=>{for(;/[ \t\n\r]/.test(e[t]??"\0");)t++},o=()=>{throw new SyntaxError(`Invalid JSON at position ${t}`)};function c(){const r=t++;for(;;){if(t>=e.length)return o();const i=e[t++];if('"'===i)return JSON.parse(e.slice(r,t));if("\\"===i)t++;else if(i.charCodeAt(0)<32)return o()}}const l=function l(u){if(u>1e3)throw new RangeError("JSON nesting limit exceeded");n();const h=e[t];if('"'===h)return c();if("{"===h||"["===h){t++;const a={},d=[],f="{"===h?"}":"]";if(n(),e[t]!==f)for(;;){if(n(),"{"===h){if('"'!==e[t])return o();const h=c();if(Object.hasOwn(a,h))throw new SyntaxError("Duplicate JSON mapping key");if(n(),":"!==e[t++])return o();r=null;const d=l(u+1);if(Object.defineProperty(a,h,{value:d,enumerable:!0,writable:!0,configurable:!0}),null!==r&&("number"==typeof d||i.ExactDecimal.isExact(d))){const e=s.get(a)??new Map;s.set(a,e.set(h,{value:d,text:r}))}}else d.push(l(u+1));if(n(),e[t]===f)break;if(","!==e[t++])return o()}return t++,"{"===h?a:d}for(const[r,i]of[["true",!0],["false",!1],["null",null]])if(e.startsWith(r,t))return t+=r.length,i;const d=/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?/.exec(e.slice(t));if(!d)return o();if(d[0].length>1e3)throw new RangeError("JSON number length limit exceeded");return t+=d[0].length,r=/[.eE]/.test(d[0])?d[0]:null,a.sourceNumber(d[0])}(0);if(n(),t!==e.length&&o(),null===l||"object"!=typeof l||Array.isArray(l)||l instanceof i.ExactDecimal)throw new SyntaxError("Expected a JSON object");return l}static clone(e){const t=new Set;return function e(r){if(i.ExactDecimal.isExact(r))return i.ExactDecimal.forValue(String(r));if(null==r||"string"==typeof r||"boolean"==typeof r)return r;if("number"==typeof r&&Number.isFinite(r))return r;if("object"!=typeof r||t.has(r))throw new TypeError("Expected acyclic JSON data");t.add(r);try{if(Array.isArray(r))return r.map(e);if(Object.getPrototypeOf(r)!==Object.prototype&&null!==Object.getPrototypeOf(r))throw new TypeError("Expected a JSON object");return Object.fromEntries(Object.entries(r).map(([t,r])=>[t,e(r)]))}finally{t.delete(r)}}(e)}static stringify(e,t=0){const r=" ".repeat(Math.max(0,Math.min(10,t))),s=new Set,a=function e(t,a){if(i.ExactDecimal.isExact(t))return t.toString();if("number"==typeof t)return(0,n.javaPlainDecimal)(t);if("string"==typeof t||"boolean"==typeof t||null===t)return JSON.stringify(t);if(void 0!==t){if("object"!=typeof t)throw new TypeError("Expected a JSON value");if(a>1e3||s.has(t))throw new TypeError("Cyclic JSON value or nesting limit exceeded");s.add(t);try{const i=Array.isArray(t),n=[];if(i)for(const r of t)n.push(e(r,a+1)??"null");else for(const i of Object.keys(t)){const s=e(t[i],a+1);void 0!==s&&n.push(JSON.stringify(i)+(r?": ":":")+s)}const[s,o]=i?["[","]"]:["{","}"];return n.length?r?s+"\n"+r.repeat(a+1)+n.join(",\n"+r.repeat(a+1))+"\n"+r.repeat(a)+o:s+n.join(",")+o:s+o}finally{s.delete(t)}}}(e,0);if(void 0===a)throw new TypeError("Expected a JSON value");return a}}t.JsonSourcePolicy=a},108(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NumericPolicy=t.ExactDecimal=void 0;class r{text;cedarExactDecimal=!0;static isExact(e){return null!==e&&"object"==typeof e&&!0===e.cedarExactDecimal&&"function"==typeof e.toJSON}constructor(e){this.text=e,Object.freeze(this)}static forValue(e){return new r(i.canonical(e))}toString(){return this.text}valueOf(){throw new Error("Use NumericPolicy.compare for exact decimals; implicit numeric coercion would lose precision.")}toJSON(){const e=JSON.rawJSON;if(!e)throw new Error("Use JsonSourcePolicy.stringify to serialize exact decimal numbers.");return e(this.text)}}t.ExactDecimal=r;class i{static parts(e){const t="string"==typeof e?e:String(e),r=/^([+-]?)(?:(\d+)(?:\.(\d*))?|\.(\d+))(?:[eE]([+-]?\d+))?$/.exec(t);if(!r)throw new Error("Expected a finite decimal number without surrounding whitespace.");const i=r[3]??r[4]??"",n=BigInt(r[5]??"0");let s=n-BigInt(i.length);if(n<-2147483647n||n>2147483647n||s<-2147483647n||s>2147483648n)throw new Error("Decimal exponent or scale is outside the shared numeric range.");let a=((r[2]??"")+i).replace(/^0+/,"");if(!a)return{sign:0,digits:"0",exponent:0n};const o=/0+$/.exec(a)?.[0].length??0;return o&&(a=a.slice(0,-o),s+=BigInt(o)),{sign:"-"===r[1]?-1:1,digits:a,exponent:s}}static canonical(e){const{sign:t,digits:r,exponent:i}=this.parts(e);if(!t)return"0";const n=t<0?"-":"",s=i+BigInt(r.length-1);if(i>=0n&&s<1000n)return n+r+"0".repeat(Number(i));if(i<0n&&s>=-1000n){const e=r.length+Number(i);return n+(e>0?r.slice(0,e)+"."+r.slice(e):"0."+"0".repeat(-e)+r)}if(s>2147483647n){const e=i-2147483647n;return n+r+(e>0n?"0".repeat(Number(e)):"")+"E+"+(e>0n?2147483647n:i)}return n+r[0]+(r.length>1?"."+r.slice(1):"")+"E"+(s>=0n?"+":"")+s}static compare(e,t){const r=this.parts(e),i=this.parts(t);if(r.sign!==i.sign)return r.sign<i.sign?-1:1;if(!r.sign)return 0;const n=BigInt(r.digits.length)+r.exponent,s=BigInt(i.digits.length)+i.exponent;let a;if(n!==s)a=n<s?-1:1;else{const e=Math.max(r.digits.length,i.digits.length),t=r.digits.padEnd(e,"0"),n=i.digits.padEnd(e,"0");a=t===n?0:t<n?-1:1}return 0===a?0:a*r.sign}static isInteger(e){return this.parts(e).exponent>=0n}static fractionalDigits(e){return Math.max(0,-Number(this.parts(e).exponent))}static value(e){if(r.isExact(e))return e;if(this.parts(e),"number"==typeof e)return e;const t=Number(e);return!Number.isFinite(t)||Number.isInteger(t)&&!Number.isSafeInteger(t)||0!==this.compare(e,t)?r.forValue(e):t}}t.NumericPolicy=i},991(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.RegexChecks=void 0;const i=r(128);class n{changed;policy;entries=new Map;used=null;size=0;disposed=!1;capacityLimited=!1;static active=null;constructor(e=()=>{},t=new i.RegexPolicy){this.changed=e,this.policy=t}run(e){if(this.used)return e();const t=n.active;n.active=this,this.used=new Set,this.capacityLimited=!1;try{return e()}finally{const e=this.used;this.used=null,n.active=t;let r=!1;for(const[t,i]of this.entries)e.has(t)||(r=!0,this.entries.delete(t),this.size-=t.length,i.controller.abort());r&&this.capacityLimited&&queueMicrotask(()=>{this.disposed||this.changed()})}}static inspect(e,t=null){return this.active?.check(e,t)??"pending"}check(e,t){if(this.disposed)return"cancelled";if(e.length>1e4||(t?.length??0)>1e6)return"limit";const r=JSON.stringify([e,t]);this.used.add(r);const i=this.entries.get(r);if(i)return i.result;if(this.entries.size>=1024||this.size+r.length>4e6)return this.capacityLimited=!0,"limit";const n=new AbortController,s={result:"pending",controller:n,done:Promise.resolve()};return this.entries.set(r,s),this.size+=r.length,s.done=this.policy.evaluate(e,t,n.signal).then(e=>{this.disposed||this.entries.get(r)!==s||(s.result=e,this.pending||this.changed())}),"pending"}get pending(){return[...this.entries.values()].some(e=>"pending"===e.result)}async settled(){await Promise.all([...this.entries.values()].map(e=>e.done))}static async validate(e,t){const r=new n(void 0,t);try{let t=r.run(e);for(;r.pending;)await r.settled(),t=r.run(e);return t}finally{r.dispose()}}dispose(){this.disposed=!0;for(const e of this.entries.values())e.controller.abort();this.entries.clear(),this.size=0,this.policy.dispose()}}t.RegexChecks=n},128(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.RegexPolicy=t.REGEX_WORKER_SOURCE=void 0,t.REGEX_WORKER_SOURCE="\n onmessage = ({data}) => {\n let result;\n try {\n const expression = new RegExp('^(?:' + data.pattern + ')$');\n result = data.value === null ? 'valid' : expression.test(data.value) ? 'match' : 'mismatch';\n } catch (_) { result = 'invalid'; }\n postMessage({id: data.id, result});\n };\n postMessage({ready: true});\n",t.RegexPolicy=class{worker=null;ready=!1;releaseSource=null;current=null;queue=[];serial=0;timer;idleTimer;closed=!1;options;constructor(e={}){this.options={workerFactory:e.workerFactory??(()=>{const e=globalThis,r=e.URL.createObjectURL(new e.Blob([t.REGEX_WORKER_SOURCE],{type:"text/javascript"}));return this.releaseSource=()=>e.URL.revokeObjectURL(r),new e.Worker(r)}),workTimeoutMs:e.workTimeoutMs??250,startupTimeoutMs:e.startupTimeoutMs??5e3,queueLimit:e.queueLimit??1024};for(const e of[this.options.workTimeoutMs,this.options.startupTimeoutMs,this.options.queueLimit])if(!Number.isSafeInteger(e)||e<1)throw new RangeError("Regex limits must be positive integers")}evaluate(e,t=null,r){return this.closed||r?.aborted?Promise.resolve("cancelled"):e.length>1e4||(t?.length??0)>1e6||this.queue.length>=this.options.queueLimit?Promise.resolve("limit"):new Promise(i=>{const n={id:++this.serial,pattern:e,value:t,finish:e=>{r?.removeEventListener("abort",s),i(e)}},s=()=>{this.current===n?this.fail("cancelled"):(this.queue=this.queue.filter(e=>e!==n),n.finish("cancelled"))};r?.addEventListener("abort",s,{once:!0}),this.queue.push(n),this.next()})}stopWorker(){clearTimeout(this.timer),clearTimeout(this.idleTimer),this.worker&&(this.worker.onmessage=null,this.worker.onerror=null,this.worker.terminate()),this.worker=null,this.ready=!1,this.releaseSource?.(),this.releaseSource=null}fail(e){this.stopWorker();const t=this.current;this.current=null,t?.finish(e),queueMicrotask(()=>this.next())}next(){if(!this.closed&&!this.current&&0!==this.queue.length)if(clearTimeout(this.idleTimer),this.current=this.queue.shift(),this.worker&&this.ready)this.send();else try{const e=this.options.workerFactory();this.worker=e,this.timer=setTimeout(()=>this.fail("unavailable"),this.options.startupTimeoutMs),e.onerror=()=>{this.worker===e&&this.fail("unavailable")},e.onmessage=({data:t})=>{if(this.worker!==e||!t||"object"!=typeof t)return;const r=t;if(r.ready&&!this.ready)clearTimeout(this.timer),this.ready=!0,this.send();else if(r.id===this.current?.id&&["valid","match","mismatch","invalid"].includes(r.result??"")){clearTimeout(this.timer);const e=this.current;this.current=null,e.finish(r.result),this.idleTimer=setTimeout(()=>this.stopWorker(),1e3),this.next()}}}catch{this.fail("unavailable")}}send(){if(this.current&&this.worker){this.timer=setTimeout(()=>this.fail("timeout"),this.options.workTimeoutMs);try{this.worker.postMessage({id:this.current.id,pattern:this.current.pattern,value:this.current.value})}catch{this.fail("unavailable")}}}dispose(){this.closed=!0,this.stopWorker(),this.current?.finish("cancelled"),this.current=null,this.queue.splice(0).forEach(e=>e.finish("cancelled"))}}},992(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TextPolicy=void 0,t.TextPolicy=class{constructor(){}static isBlank(e){for(const t of e)if(!this.isBlankCodePoint(t.codePointAt(0)))return!1;return!0}static isBlankCodePoint(e){return e>=9&&e<=13||e>=28&&e<=32||5760===e||e>=8192&&e<=8198||e>=8200&&e<=8202||8232===e||8233===e||8287===e||12288===e}static codePointLength(e){return Array.from(e).length}static equalsIgnoreCase(e,t){const r=Array.from(e),i=Array.from(t);return e.length===t.length&&r.length===i.length&&r.every((e,t)=>{const r=i[t],n=e.toUpperCase(),s=r.toUpperCase();return e===r||n===s||n.toLowerCase()===s.toLowerCase()})}static trimInputPadding(e){return e.replace(/^[\t\n\r ]+|[\t\n\r ]+$/g,"")}}},435(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampPolicy=void 0,t.TimestampPolicy=class{static canonical(e){const t=e.replace(/([+-][0-9]{2})([0-9]{2})$/,"$1:$2"),r=/^(\d{4}|-\d{4,9}|\+\d{5,9})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?([Zz]|[+-]\d{2}(?::\d{2}(?::\d{2})?)?)$/.exec(t);if(!r)throw new Error("Expected an ISO timestamp with an explicit offset.");const[,i,n,s,a,o,c="00",l="",u]=r,h=Number(i),d=Number(n),f=Number(s),m=[31,h%4!=0||h%100==0&&h%400!=0?28:29,31,30,31,30,31,31,30,31,30,31];if(0===h&&i.startsWith("-")||d<1||d>12||f<1||f>m[d-1]||Number(a)>23||Number(o)>59||Number(c)>59)throw new Error("Invalid timestamp calendar or clock value.");let p="Z";if("Z"!==u.toUpperCase()){const[e,t=0,r=0]=u.slice(1).split(":").map(Number);if(e>18||t>59||r>59||18===e&&(0!==t||0!==r))throw new Error("Timestamp offset is outside the ISO offset range.");(e||t||r)&&(p=`${u[0]}${String(e).padStart(2,"0")}:${String(t).padStart(2,"0")}`,r&&(p+=`:${String(r).padStart(2,"0")}`))}const g=(h<0?"-":h>9999?"+":"")+String(Math.abs(h)).padStart(4,"0"),y=l.replace(/0+$/,"");return`${g}-${n}-${s}T${a}:${o}:${c}${y?"."+y:""}${p}`}static matchesFormat(e){const t=/^(\d{4}|\+\d{5,9})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T(?:[01]\d|2[0-3]|24(?=:00:00(?:\.0{1,9})?[Z+-])):[0-5]\d:[0-5]\d(?:\.\d{1,9})?(?:Z|[+-](\d{2})(?::([0-5]\d)(?::([0-5]\d))?|([0-5]\d)))$/.exec(e);if(null===t||Number(t[1])<1)return!1;const[,,,,r="0",i,n="0",s]=t;return 3600*Number(r)+60*Number(i??s??0)+Number(n)<=64800}}},92(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationPolicy=void 0;class r{static constraints=new Set(["minLength","maxLength","regex","pattern","email","link","phoneNumber","minValue","maxValue","decimalPlace","temporalGranularity","timezone","choiceMembership","maxItems","controlledTermMembership","authorityIdentifier","authorityMembership"]);static completeness=new Set(["required","minItems"]);static verification=new Set(["regexPending","regexEvaluation","regexUnavailable","semanticNotChecked","semanticUnavailable","controlledTermVerified","authorityVerified"]);static acceptsSemanticResult(e,t,r){switch(t){case"passed":return r===(e?"controlledTermVerified":"authorityVerified");case"failed":return e?"controlledTermMembership"===r:"authorityIdentifier"===r||"authorityMembership"===r;case"notChecked":return"semanticNotChecked"===r;case"unavailable":return"semanticUnavailable"===r;default:return!1}}static category(e){return this.constraints.has(e)?"constraint":this.completeness.has(e)?"completeness":this.verification.has(e)?"verification":"structural"}static blocksSave(e,t="instance"){if("string"!=typeof e&&"passed"===e.verificationStatus)return!1;const r="string"==typeof e?this.category(e):e.category;return"structural"===r||"template"===t&&("verification"!==r||"string"!=typeof e&&"failed"===e.verificationStatus)}static severity(e,t="instance"){return this.blocksSave(e,t)?"error":"warning"}static finding(e,t,r,i){const n={code:e,category:this.category(e),path:t,message:r};return void 0!==i&&(n.verificationStatus=i),n}static summarize(e,t="instance"){const r=e.filter(e=>"passed"!==e.verificationStatus);return{findings:[...e],structurallyValid:!r.some(e=>"structural"===e.category),canSave:!r.some(e=>this.blocksSave(e,t)),isValid:0===r.length}}static pointer(e){return e.map(e=>"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")).join("")}static child(e,t){return e+this.pointer([t])}}t.ValidationPolicy=r}};const t={};function r(i){const n=t[i];if(void 0!==n)return n.exports;const s=t[i]={exports:{}};return e[i](s,s.exports,r),s.exports}let i={};(()=>{let e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationPolicy=e.RegexChecks=e.REGEX_WORKER_SOURCE=e.RegexPolicy=e.JsonSourcePolicy=e.ExactDecimal=e.NumericPolicy=e.TimestampPolicy=e.DisplayText=e.IdentifierPolicy=e.TextPolicy=void 0;var t=r(992);Object.defineProperty(e,"TextPolicy",{enumerable:!0,get:function(){return t.TextPolicy}});var n=r(500);Object.defineProperty(e,"IdentifierPolicy",{enumerable:!0,get:function(){return n.IdentifierPolicy}});var s=r(68);Object.defineProperty(e,"DisplayText",{enumerable:!0,get:function(){return s.DisplayText}});var a=r(435);Object.defineProperty(e,"TimestampPolicy",{enumerable:!0,get:function(){return a.TimestampPolicy}});var o=r(108);Object.defineProperty(e,"NumericPolicy",{enumerable:!0,get:function(){return o.NumericPolicy}}),Object.defineProperty(e,"ExactDecimal",{enumerable:!0,get:function(){return o.ExactDecimal}});var c=r(904);Object.defineProperty(e,"JsonSourcePolicy",{enumerable:!0,get:function(){return c.JsonSourcePolicy}});var l=r(128);Object.defineProperty(e,"RegexPolicy",{enumerable:!0,get:function(){return l.RegexPolicy}}),Object.defineProperty(e,"REGEX_WORKER_SOURCE",{enumerable:!0,get:function(){return l.REGEX_WORKER_SOURCE}});var u=r(991);Object.defineProperty(e,"RegexChecks",{enumerable:!0,get:function(){return u.RegexChecks}});var h=r(92);Object.defineProperty(e,"ValidationPolicy",{enumerable:!0,get:function(){return h.ValidationPolicy}})})();const n=i.DisplayText,s=i.ExactDecimal,a=i.IdentifierPolicy,o=i.JsonSourcePolicy,c=i.NumericPolicy,l=i.REGEX_WORKER_SOURCE,u=i.RegexChecks,h=i.RegexPolicy,d=i.TextPolicy,f=i.TimestampPolicy,m=i.ValidationPolicy,p=i.__esModule;export{n as DisplayText,s as ExactDecimal,a as IdentifierPolicy,o as JsonSourcePolicy,c as NumericPolicy,l as REGEX_WORKER_SOURCE,u as RegexChecks,h as RegexPolicy,d as TextPolicy,f as TimestampPolicy,m as ValidationPolicy,p as __esModule};export default i;
|
|
2
2
|
//# sourceMappingURL=policy.esm.js.map
|