import "../../../@ant-design/cssinjs/es/extractStyle.mjs";
import "../../../@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
import "react";
import "../../../@ant-design/cssinjs/es/StyleContext.mjs";
import { unit as r } from "../../../@ant-design/cssinjs/es/util/index.mjs";
import "../../../@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
import "../../../@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
import "../../../@ant-design/cssinjs/es/hooks/useHMR.mjs";
import "../../../rc-util/es/warning.mjs";
import "../../../@ant-design/cssinjs/es/theme/createTheme.mjs";
import "../../../@ant-design/cssinjs/es/theme/ThemeCache.mjs";
import "../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
const y = {
  overflow: "hidden",
  whiteSpace: "nowrap",
  textOverflow: "ellipsis"
}, S = function(o) {
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  return {
    boxSizing: "border-box",
    margin: 0,
    padding: 0,
    color: o.colorText,
    fontSize: o.fontSize,
    // font-variant: @font-variant-base;
    lineHeight: o.lineHeight,
    listStyle: "none",
    // font-feature-settings: @font-feature-settings-base;
    fontFamily: e ? "inherit" : o.fontFamily
  };
}, v = () => ({
  display: "inline-flex",
  alignItems: "center",
  color: "inherit",
  fontStyle: "normal",
  lineHeight: 0,
  textAlign: "center",
  textTransform: "none",
  // for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
  verticalAlign: "-0.125em",
  textRendering: "optimizeLegibility",
  "-webkit-font-smoothing": "antialiased",
  "-moz-osx-font-smoothing": "grayscale",
  "> *": {
    lineHeight: 1
  },
  svg: {
    display: "inline-block"
  }
}), z = () => ({
  // https://github.com/ant-design/ant-design/issues/21301#issuecomment-583955229
  "&::before": {
    display: "table",
    content: '""'
  },
  "&::after": {
    // https://github.com/ant-design/ant-design/issues/21864
    display: "table",
    clear: "both",
    content: '""'
  }
}), F = (o) => ({
  a: {
    color: o.colorLink,
    textDecoration: o.linkDecoration,
    backgroundColor: "transparent",
    // remove the gray background on active links in IE 10.
    outline: "none",
    cursor: "pointer",
    transition: `color ${o.motionDurationSlow}`,
    "-webkit-text-decoration-skip": "objects",
    // remove gaps in links underline in iOS 8+ and Safari 8+.
    "&:hover": {
      color: o.colorLinkHover
    },
    "&:active": {
      color: o.colorLinkActive
    },
    "&:active,\n  &:hover": {
      textDecoration: o.linkHoverDecoration,
      outline: 0
    },
    // https://github.com/ant-design/ant-design/issues/22503
    "&:focus": {
      textDecoration: o.linkFocusDecoration,
      outline: 0
    },
    "&[disabled]": {
      color: o.colorTextDisabled,
      cursor: "not-allowed"
    }
  }
}), w = (o, e) => {
  const {
    fontFamily: i,
    fontSize: n
  } = o, t = `[class^="${e}"], [class*=" ${e}"]`;
  return {
    [t]: {
      fontFamily: i,
      fontSize: n,
      boxSizing: "border-box",
      "&::before, &::after": {
        boxSizing: "border-box"
      },
      [t]: {
        boxSizing: "border-box",
        "&::before, &::after": {
          boxSizing: "border-box"
        }
      }
    }
  };
}, l = (o) => ({
  outline: `${r(o.lineWidthFocus)} solid ${o.colorPrimaryBorder}`,
  outlineOffset: 1,
  transition: "outline-offset 0s, outline 0s"
}), D = (o) => ({
  "&:focus-visible": Object.assign({}, l(o))
});
export {
  z as clearFix,
  w as genCommonStyle,
  l as genFocusOutline,
  D as genFocusStyle,
  F as genLinkStyle,
  S as resetComponent,
  v as resetIcon,
  y as textEllipsis
};
