"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    nodeManifestSchema: ()=>nodeManifestSchema,
    nodeRuntimeConstraintsManifestSchema: ()=>nodeRuntimeConstraintsManifestSchema,
    nodeDisplayManifestSchema: ()=>nodeDisplayManifestSchema,
    nodeDebugManifestSchema: ()=>nodeDebugManifestSchema,
    nodeShapeSchema: ()=>nodeShapeSchema
});
const external_zod_namespaceObject = require("zod");
const external_toolbar_cjs_namespaceObject = require("../toolbar.cjs");
const external_handle_cjs_namespaceObject = require("./handle.cjs");
const nodeShapeSchema = external_zod_namespaceObject.z["enum"]([
    'circle',
    'square',
    'rectangle',
    'container'
]);
const nodeDebugManifestSchema = external_zod_namespaceObject.z.object({
    runtime: external_zod_namespaceObject.z.string().min(1)
});
const nodeDisplayManifestSchema = external_zod_namespaceObject.z.object({
    label: external_zod_namespaceObject.z.string().min(1),
    canvasLabel: external_zod_namespaceObject.z.string().min(1).optional(),
    description: external_zod_namespaceObject.z.string().optional(),
    icon: external_zod_namespaceObject.z.string().min(1).optional(),
    shape: nodeShapeSchema.optional(),
    color: external_zod_namespaceObject.z.string().optional(),
    background: external_zod_namespaceObject.z.string().optional(),
    iconBackground: external_zod_namespaceObject.z.string().optional(),
    iconBackgroundDark: external_zod_namespaceObject.z.string().optional(),
    iconColor: external_zod_namespaceObject.z.string().optional()
});
const nodeRuntimeConstraintsManifestSchema = external_zod_namespaceObject.z.union([
    external_zod_namespaceObject.z.object({
        include: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())
    }),
    external_zod_namespaceObject.z.object({
        exclude: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())
    })
]);
const nodeManifestSchema = external_zod_namespaceObject.z.object({
    nodeType: external_zod_namespaceObject.z.string().min(1),
    version: external_zod_namespaceObject.z.string().min(1),
    description: external_zod_namespaceObject.z.string().optional(),
    category: external_zod_namespaceObject.z.string().min(1).optional(),
    tags: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()),
    sortOrder: external_zod_namespaceObject.z.number().int().nonnegative(),
    display: nodeDisplayManifestSchema,
    handleConfiguration: external_zod_namespaceObject.z.array(external_handle_cjs_namespaceObject.handleGroupManifestSchema),
    toolbarExtensions: external_toolbar_cjs_namespaceObject.toolbarConfigurationSchema.optional(),
    inputDefaults: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.unknown()).optional(),
    inputDefinition: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.any()).optional(),
    outputDefinition: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.any()).optional(),
    drillable: external_zod_namespaceObject.z.boolean().optional(),
    debug: nodeDebugManifestSchema.optional(),
    model: external_zod_namespaceObject.z.any().optional(),
    defaultProperties: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.unknown()).optional(),
    form: external_zod_namespaceObject.z.custom().optional(),
    deprecated: external_zod_namespaceObject.z.boolean().optional(),
    runtimeConstraints: nodeRuntimeConstraintsManifestSchema.optional()
});
exports.nodeDebugManifestSchema = __webpack_exports__.nodeDebugManifestSchema;
exports.nodeDisplayManifestSchema = __webpack_exports__.nodeDisplayManifestSchema;
exports.nodeManifestSchema = __webpack_exports__.nodeManifestSchema;
exports.nodeRuntimeConstraintsManifestSchema = __webpack_exports__.nodeRuntimeConstraintsManifestSchema;
exports.nodeShapeSchema = __webpack_exports__.nodeShapeSchema;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "nodeDebugManifestSchema",
    "nodeDisplayManifestSchema",
    "nodeManifestSchema",
    "nodeRuntimeConstraintsManifestSchema",
    "nodeShapeSchema"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
