"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreativeWorkMixin = void 0;
const rdfine_1 = __importStar(require("@tpluscode/rdfine"));
const $rdf = __importStar(require("@rdf-esm/data-model"));
const namespace_1 = require("./lib/namespace");
const Thing_1 = require("./Thing");
function CreativeWorkMixin(Resource) {
    let CreativeWorkClass = class CreativeWorkClass extends Thing_1.ThingMixin(Resource) {
    };
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "about", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "abstract", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "accessibilityAPI", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "accessibilityControl", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "accessibilityFeature", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "accessibilityHazard", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "accessibilitySummary", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "accessMode", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "accessModeSufficient", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "accountablePerson", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "acquireLicensePage", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "aggregateRating", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "alternativeHeadline", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "assesses", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "associatedMedia", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "audience", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "audio", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "author", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "award", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "awards", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "character", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "citation", void 0);
    __decorate([
        rdfine_1.property.literal({ path: namespace_1.schema.citation }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "citationLiteral", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "comment", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Number }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "commentCount", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "conditionsOfAccess", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "contentLocation", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "contentRating", void 0);
    __decorate([
        rdfine_1.property.literal({ path: namespace_1.schema.contentRating }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "contentRatingLiteral", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Date }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "contentReferenceTime", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "contributor", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "copyrightHolder", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Number }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "copyrightYear", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "correction", void 0);
    __decorate([
        rdfine_1.property.literal({ path: namespace_1.schema.correction }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "correctionLiteral", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "creativeWorkStatus", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "creator", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Date, datatype: $rdf.namedNode('http://www.w3.org/2001/XMLSchema#date') }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "dateCreated", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Date, datatype: $rdf.namedNode('http://www.w3.org/2001/XMLSchema#date') }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "dateModified", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Date, datatype: $rdf.namedNode('http://www.w3.org/2001/XMLSchema#date') }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "datePublished", void 0);
    __decorate([
        rdfine_1.property(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "discussionUrl", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "editEIDR", void 0);
    __decorate([
        rdfine_1.property({ path: namespace_1.schema.editEIDR }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "editEIDRTerm", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "editor", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "educationalAlignment", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "educationalLevel", void 0);
    __decorate([
        rdfine_1.property({ path: namespace_1.schema.educationalLevel }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "educationalLevelTerm", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "educationalUse", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "encoding", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "encodingFormat", void 0);
    __decorate([
        rdfine_1.property({ path: namespace_1.schema.encodingFormat }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "encodingFormatTerm", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "encodings", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "exampleOfWork", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Date, datatype: $rdf.namedNode('http://www.w3.org/2001/XMLSchema#date') }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "expires", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "fileFormat", void 0);
    __decorate([
        rdfine_1.property({ path: namespace_1.schema.fileFormat }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "fileFormatTerm", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "funder", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "genre", void 0);
    __decorate([
        rdfine_1.property({ path: namespace_1.schema.genre }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "genreTerm", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "hasPart", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "headline", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "inLanguage", void 0);
    __decorate([
        rdfine_1.property.literal({ path: namespace_1.schema.inLanguage }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "inLanguageLiteral", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "interactionStatistic", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "interactivityType", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Boolean }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "isAccessibleForFree", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "isBasedOn", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "isBasedOnUrl", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Boolean }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "isFamilyFriendly", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "isPartOf", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "keywords", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "learningResourceType", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "license", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "locationCreated", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "mainEntity", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "maintainer", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "material", void 0);
    __decorate([
        rdfine_1.property.literal({ path: namespace_1.schema.material }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "materialLiteral", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "materialExtent", void 0);
    __decorate([
        rdfine_1.property.literal({ path: namespace_1.schema.materialExtent }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "materialExtentLiteral", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "mentions", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "offers", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "pattern", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "position", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "producer", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "provider", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "publication", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "publisher", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "publisherImprint", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "publishingPrinciples", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "recordedAt", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "releasedEvent", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "review", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "reviews", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "schemaVersion", void 0);
    __decorate([
        rdfine_1.property({ path: namespace_1.schema.schemaVersion }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "schemaVersionTerm", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Date, datatype: $rdf.namedNode('http://www.w3.org/2001/XMLSchema#date') }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "sdDatePublished", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "sdLicense", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "sdPublisher", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "size", void 0);
    __decorate([
        rdfine_1.property.literal({ path: namespace_1.schema.size }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "sizeLiteral", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "sourceOrganization", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "spatial", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "spatialCoverage", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "sponsor", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "teaches", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "temporal", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "temporalCoverage", void 0);
    __decorate([
        rdfine_1.property({ path: namespace_1.schema.temporalCoverage }),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "temporalCoverageTerm", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "text", void 0);
    __decorate([
        rdfine_1.property(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "thumbnailUrl", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "timeRequired", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "translationOfWork", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "translator", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "typicalAgeRange", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "usageInfo", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "version", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "video", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "workExample", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], CreativeWorkClass.prototype, "workTranslation", void 0);
    CreativeWorkClass = __decorate([
        rdfine_1.namespace(namespace_1.schema)
    ], CreativeWorkClass);
    return CreativeWorkClass;
}
exports.CreativeWorkMixin = CreativeWorkMixin;
class CreativeWorkImpl extends CreativeWorkMixin(rdfine_1.default) {
    constructor(arg, init) {
        super(arg, init);
        this.types.add(namespace_1.schema.CreativeWork);
    }
}
CreativeWorkImpl.__mixins = [CreativeWorkMixin, Thing_1.ThingMixin];
CreativeWorkMixin.appliesTo = namespace_1.schema.CreativeWork;
CreativeWorkMixin.Class = CreativeWorkImpl;
