import React, { ForwardedRef, useContext } from 'react';
import { OriginIconProps } from '../type';
import { Context } from '../context';

function IconWkfOptimizationComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = true, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-wkf_optimization${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><path d="M2.85942 9.14747C3.18059 9.13007 3.46878 9.34451 3.54399 9.65724C3.67433 10.1992 3.86371 10.4793 4.10942 10.6953C4.38969 10.9417 4.76566 11.1308 5.37993 11.4404L5.41118 11.4561C5.64089 11.5721 5.78362 11.8101 5.77739 12.0674C5.77108 12.3247 5.617 12.5555 5.38188 12.6602C4.50437 13.0504 4.13379 13.412 3.9434 13.6826C3.84454 13.8231 3.77817 13.962 3.71489 14.1143C3.70279 14.1434 3.68897 14.1779 3.67387 14.2158C3.62316 14.3431 3.55684 14.5098 3.48344 14.6475C3.34867 14.8999 3.06745 15.0384 2.7852 14.9912C2.50305 14.9439 2.28259 14.721 2.23735 14.4385C2.17087 14.0243 1.90166 13.5893 1.53129 13.2402C1.14313 12.8745 0.776989 12.7254 0.628951 12.7168C0.29031 12.6974 0.0197573 12.4266 0.00102106 12.0879C-0.0176337 11.7492 0.221305 11.4501 0.555709 11.3936C0.976436 11.3225 1.38213 11.0619 1.70512 10.7031C2.03577 10.3358 2.20599 9.94906 2.23442 9.72853C2.27539 9.40952 2.53827 9.1649 2.85942 9.14747ZM9.89555 1.47169C10.2648 1.45179 10.5962 1.69809 10.6827 2.05763L10.7344 2.25587C11.3074 4.2989 13.08 6.12655 15.084 7.13673L15.1788 7.19239C15.3572 7.31725 15.4741 7.51327 15.5 7.7295L15.5059 7.83985C15.4994 8.09872 15.3627 8.33436 15.1475 8.46974L15.0508 8.5215C12.7559 9.5421 11.7994 11.2215 11.2051 12.5342L10.9698 13.0713C10.9067 13.2178 10.8469 13.3581 10.7881 13.4883L10.6133 13.8477C10.4778 14.1015 10.2138 14.2556 9.93266 14.2539L9.81059 14.2432C9.52678 14.1956 9.29697 13.9937 9.20903 13.7266L9.18071 13.6084C9.10993 13.1664 8.8883 12.6288 8.56157 12.0615C8.31706 11.6371 8.01558 11.1983 7.67778 10.7754L7.32817 10.3584C6.97698 9.95808 6.61432 9.60038 6.27153 9.31056L5.93657 9.04396C5.70458 8.87226 5.51236 8.75892 5.3643 8.68751C5.28931 8.65136 5.22719 8.62612 5.17778 8.61036L5.06743 8.58595C4.72667 8.56644 4.44644 8.32567 4.36723 8.00489L4.34575 7.86329C4.32429 7.47374 4.59874 7.13039 4.98344 7.06544L5.1309 7.03321C5.48093 6.94149 5.87978 6.72775 6.30669 6.39064L6.48735 6.2422C6.90619 5.88391 7.31498 5.43935 7.68657 4.959L7.99223 4.54396C8.28529 4.12615 8.53819 3.70382 8.73637 3.31544L8.91606 2.93849C9.07125 2.58653 9.15458 2.31169 9.1768 2.13966L9.2061 2.00587C9.30059 1.70621 9.57256 1.48934 9.89555 1.47169ZM9.82719 14.1445C9.86245 14.1504 9.89773 14.1531 9.93266 14.1533C9.89774 14.1531 9.86244 14.1495 9.82719 14.1436C9.81025 14.1407 9.79387 14.1359 9.77739 14.1318C9.79395 14.136 9.81019 14.1417 9.82719 14.1445ZM9.62895 14.0781C9.63682 14.0822 9.64531 14.0851 9.65336 14.0889C9.6408 14.083 9.62837 14.077 9.61626 14.0703L9.62895 14.0781ZM10.5254 13.7998C10.5212 13.8078 10.5154 13.8155 10.5108 13.8233C10.5153 13.8156 10.5212 13.8087 10.5254 13.8008C10.582 13.6946 10.6383 13.5759 10.6963 13.4473V13.4463C10.6382 13.575 10.5821 13.6936 10.5254 13.7998ZM2.69633 11.5957C2.55077 11.7574 2.3852 11.9142 2.20219 12.0576C2.28684 12.1258 2.36786 12.1975 2.44536 12.2705C2.61436 12.4298 2.78014 12.6115 2.92973 12.8125C3.12633 12.5564 3.38248 12.3052 3.72563 12.0615C3.54899 11.9499 3.38169 11.8301 3.22954 11.6963C3.10847 11.5899 2.99811 11.476 2.89751 11.3535C2.83364 11.4366 2.76639 11.5179 2.69633 11.5957ZM9.93852 4.31446C9.73162 4.68917 9.49121 5.07928 9.22075 5.46192L8.89946 5.8965C8.48007 6.43868 7.9997 6.96625 7.48149 7.40919L7.25688 7.59376C7.14227 7.68426 7.0231 7.76964 6.90239 7.85255C7.42818 8.24932 7.97509 8.77152 8.48051 9.34767L8.70512 9.60939C9.18326 10.1838 9.63789 10.8308 9.99614 11.4873C10.5611 10.3452 11.4945 8.89371 13.1875 7.79396C11.8833 6.9102 10.7087 5.71245 9.93852 4.31446ZM7.40336 10.293C7.524 10.4305 7.64144 10.5709 7.75493 10.7129L7.40336 10.292C7.28542 10.1576 7.16539 10.0285 7.04594 9.90431L7.40336 10.293ZM5.82622 8.84278L5.67094 8.7422C5.63876 8.72235 5.60717 8.70473 5.57719 8.68751C5.653 8.73106 5.73647 8.78181 5.82622 8.84278ZM6.73051 7.84962C6.73694 7.85427 6.74365 7.85862 6.75004 7.86329C6.74389 7.85869 6.73771 7.85413 6.73149 7.84962C6.81111 7.79769 6.88956 7.74343 6.96684 7.68751L6.73051 7.84962ZM12.754 7.36036C12.9545 7.51259 13.1585 7.65819 13.3663 7.79493H13.3672C13.1592 7.65806 12.9547 7.51274 12.754 7.36036ZM15.3526 7.56056L15.3106 7.47755C15.306 7.46981 15.2989 7.46361 15.294 7.45607C15.316 7.48953 15.3369 7.52363 15.3526 7.56056ZM14.6504 7.01857C14.7787 7.09105 14.9087 7.15984 15.0391 7.2256L14.6504 7.01759C14.5223 6.94518 14.3951 6.86983 14.2696 6.79103L14.6504 7.01857ZM12.3536 7.04298C12.3678 7.05484 12.3823 7.06635 12.3965 7.07814C12.3006 6.99885 12.2058 6.91774 12.1123 6.83497L12.3536 7.04298ZM2.85942 1.00099C3.18059 0.983581 3.46878 1.19803 3.54399 1.51075C3.67429 2.05225 3.86386 2.33194 4.10942 2.54786C4.3897 2.79426 4.7656 2.98335 5.37993 3.29298L5.41118 3.3086C5.64092 3.42452 5.78351 3.66269 5.77739 3.91993C5.77116 4.17723 5.61696 4.40798 5.38188 4.51271C4.50433 4.90298 4.13378 5.26556 3.9434 5.53614C3.84466 5.67656 3.77812 5.81465 3.71489 5.96681C3.70277 5.99597 3.689 6.03042 3.67387 6.06837C3.62316 6.19562 3.55685 6.36235 3.48344 6.50001C3.34873 6.75261 3.06756 6.89094 2.7852 6.84376C2.50309 6.7964 2.28259 6.5745 2.23735 6.292C2.17099 5.87766 1.9018 5.44292 1.53129 5.09376C1.14301 4.72786 0.777002 4.57789 0.628951 4.56935C0.290256 4.54995 0.0196799 4.27918 0.00102106 3.94044C-0.0174634 3.60194 0.221454 3.30367 0.555709 3.24708C0.976391 3.17606 1.38215 2.91534 1.70512 2.55665C2.03601 2.18913 2.2061 1.80158 2.23442 1.58107C2.27546 1.26216 2.53835 1.01842 2.85942 1.00099ZM12.8497 5.70509C12.9592 5.80628 13.0713 5.90491 13.1856 6.00099L12.8497 5.70411C12.7401 5.60288 12.6326 5.4996 12.5284 5.39357L12.8497 5.70509ZM10.6084 5.18556C10.6278 5.21229 10.6484 5.23812 10.668 5.26466C10.5852 5.15288 10.5043 5.03997 10.4268 4.92482L10.6084 5.18556ZM2.69633 3.44825C2.55072 3.60999 2.38528 3.76765 2.20219 3.91114C2.28666 3.97921 2.36801 4.05019 2.44536 4.12306C2.61436 4.28232 2.78014 4.46499 2.92973 4.66603C3.12635 4.40981 3.38237 4.15884 3.72563 3.91505C3.54894 3.80342 3.38173 3.68264 3.22954 3.54884C3.10861 3.44252 2.99802 3.32935 2.89751 3.20704C2.83372 3.29003 2.7663 3.37053 2.69633 3.44825ZM9.89946 4.1797C9.91247 4.15561 9.92679 4.13236 9.9395 4.10841C9.98833 4.2018 10.0394 4.29411 10.0918 4.38575C10.0393 4.29395 9.98841 4.20098 9.9395 4.10743C9.92669 4.13158 9.91258 4.15541 9.89946 4.1797Z"/></svg>;
}

const IconWkfOptimization = React.forwardRef(IconWkfOptimizationComponent);
export default IconWkfOptimization;
