"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__, {
    ARROW_ANGLE_MAP: ()=>ARROW_ANGLE_MAP,
    ARROW_OFFSETS: ()=>ARROW_OFFSETS,
    EDGE_DASHARRAY: ()=>EDGE_DASHARRAY,
    EDGE_CONSTANTS: ()=>EDGE_CONSTANTS,
    EDGE_PATH_TRANSITION: ()=>EDGE_PATH_TRANSITION,
    EMPTY_WAYPOINTS: ()=>EMPTY_WAYPOINTS,
    EDGE_COLORS: ()=>EDGE_COLORS
});
const react_cjs_namespaceObject = require("../../../xyflow/react.cjs");
const external_constants_cjs_namespaceObject = require("../../../constants.cjs");
const EMPTY_WAYPOINTS = [];
const EDGE_CONSTANTS = {
    BORDER_RADIUS: external_constants_cjs_namespaceObject.GRID_SPACING,
    ARROW_SIZE: 10,
    ARROW_HALF_ANGLE: Math.PI / 6,
    STROKE_WIDTH: 2,
    SELECTED_STROKE_WIDTH: 3,
    INTERACTION_STROKE_WIDTH: 20,
    SELECTED_OUTLINE_STROKE_WIDTH: 10,
    SELECTED_OUTLINE_OPACITY: 0.3,
    MIN_SEGMENT_LENGTH: 32,
    COLLINEAR_TOLERANCE: 1,
    ARROW_OFFSET: 8,
    STUB_OFFSET: 2 * external_constants_cjs_namespaceObject.GRID_SPACING
};
const EDGE_PATH_TRANSITION = 'stroke 0.2s ease, opacity 0.2s ease';
const EDGE_DASHARRAY = {
    solid: '0',
    dashed: '5,5'
};
const EDGE_COLORS = {
    default: 'var(--canvas-border)',
    hover: 'var(--canvas-primary-hover)',
    selected: 'var(--canvas-primary)',
    invalid: 'var(--canvas-error-icon)',
    diffAdded: 'var(--canvas-success-icon)',
    diffRemoved: 'var(--canvas-error-icon)'
};
const ARROW_ANGLE_MAP = {
    [react_cjs_namespaceObject.Position.Left]: 0,
    [react_cjs_namespaceObject.Position.Right]: Math.PI,
    [react_cjs_namespaceObject.Position.Top]: Math.PI / 2,
    [react_cjs_namespaceObject.Position.Bottom]: -Math.PI / 2
};
const ARROW_OFFSETS = {
    [react_cjs_namespaceObject.Position.Left]: {
        x: EDGE_CONSTANTS.ARROW_OFFSET,
        y: 0
    },
    [react_cjs_namespaceObject.Position.Right]: {
        x: -EDGE_CONSTANTS.ARROW_OFFSET,
        y: 0
    },
    [react_cjs_namespaceObject.Position.Top]: {
        x: 0,
        y: EDGE_CONSTANTS.ARROW_OFFSET
    },
    [react_cjs_namespaceObject.Position.Bottom]: {
        x: 0,
        y: -EDGE_CONSTANTS.ARROW_OFFSET
    }
};
exports.ARROW_ANGLE_MAP = __webpack_exports__.ARROW_ANGLE_MAP;
exports.ARROW_OFFSETS = __webpack_exports__.ARROW_OFFSETS;
exports.EDGE_COLORS = __webpack_exports__.EDGE_COLORS;
exports.EDGE_CONSTANTS = __webpack_exports__.EDGE_CONSTANTS;
exports.EDGE_DASHARRAY = __webpack_exports__.EDGE_DASHARRAY;
exports.EDGE_PATH_TRANSITION = __webpack_exports__.EDGE_PATH_TRANSITION;
exports.EMPTY_WAYPOINTS = __webpack_exports__.EMPTY_WAYPOINTS;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "ARROW_ANGLE_MAP",
    "ARROW_OFFSETS",
    "EDGE_COLORS",
    "EDGE_CONSTANTS",
    "EDGE_DASHARRAY",
    "EDGE_PATH_TRANSITION",
    "EMPTY_WAYPOINTS"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
