var A=Object.defineProperty;var w=(a,s,t)=>s in a?A(a,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[s]=t;var n=(a,s,t)=>w(a,typeof s!="symbol"?s+"":s,t);const c=new CSSStyleSheet;c.replaceSync(`
  .kt-icon {
    display: inline-flex;
    align-items: center;
    position: relative;
    fill: currentColor;
    font-size: inherit;
  }
`);class o extends HTMLElement{constructor({classPrefix:t,name:e,desc:r,attrs:i,size:l,strokeWidth:_,fill:m}){super();n(this,"classPrefix");n(this,"name");n(this,"description");n(this,"attrs");n(this,"DEFAULT_SIZE");n(this,"DEFAULT_STROKE_WIDTH");n(this,"DEFAULT_FILL");this.classPrefix=t,this.name=e,this.description=r,this.attrs=i,this.DEFAULT_SIZE=l,this.DEFAULT_STROKE_WIDTH=_,this.DEFAULT_FILL=m}get size(){return this._parseAttr("size",this.DEFAULT_SIZE)}set size(t){this._stringifyAttr("size",t)}get strokeWidth(){return this._parseAttr("stroke-width",this.DEFAULT_STROKE_WIDTH)}set strokeWidth(t){this._stringifyAttr("stroke-width",t)}get fill(){return this._parseAttr("fill",this.DEFAULT_FILL)}set fill(t){this._stringifyAttr("fill",t)}_stringifyAttr(t,e){this.setAttribute(t,JSON.stringify(e))}_parseAttr(t,e){let r=e;const i=this.getAttribute(t);try{i&&(r=JSON.parse(i))}catch(l){console.error(`🚀 ~ ${this.classPrefix} ${this.name} ~ get ${t} ~ attr:`,l),r=e}return r}_g(t){return typeof this.fill=="string"?this.fill:this.DEFAULT_FILL.map((r,i)=>this.fill[i]||r)[t]}_render(){var r,i;if(!this.shadowRoot){this.style.display="flex";const l=this.attachShadow({mode:"open"});l.adoptedStyleSheets=[c]}let t=(r=this.shadowRoot)==null?void 0:r.querySelector("i");t||(t=document.createElement("i"),t.part.add(this.classPrefix),t.classList.add(this.classPrefix,`${this.classPrefix}-${this.name}`),t.setAttribute("data-name",this.name),t.setAttribute("data-desc",this.description),(i=this.shadowRoot)==null||i.appendChild(t));let e=t.querySelector("svg");return e||(e=document.createElementNS("http://www.w3.org/2000/svg","svg"),e.part.add(`${this.classPrefix}-svg`),Object.keys(this.attrs).forEach(l=>{e&&e.setAttribute(l,this.attrs[l])}),t.appendChild(e)),e.setAttribute("width",`${this.size}`),e.setAttribute("height",`${this.size}`),e.setAttribute("stroke-width",`${this.strokeWidth}`),e}connectedCallback(){this._render()}disconnectedCallback(){}adoptedCallback(){}attributeChangedCallback(t,e,r){e!==r&&this._render()}}n(o,"observedAttributes",["size","stroke-width","fill"]);class h extends o{constructor(){super({classPrefix:"kt-icon",name:"add-material",desc:"查看器_添加_添加素材_add",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none"},size:16,strokeWidth:1,fill:["#1A1A1A"]})}static register(){customElements.get("kt-icon-add-material")||customElements.define("kt-icon-add-material",h)}_renderGroups(){const s=this._render(),t=s.querySelectorAll("g");t.length===0&&(s.innerHTML=`
<g id="group-0" part="kt-icon-g-0" stroke="${this._g(0)}" fill="${this._g(0)}"><path d="M6 10.5C3.51472 10.5 1.5 8.48528 1.5 6C1.5 3.51472 3.51472 1.5 6 1.5C8.48528 1.5 10.5 3.51472 10.5 6M7 14.5H13C13.8284 14.5 14.5 13.8284 14.5 13V7C14.5 6.17157 13.8284 5.5 13 5.5H7C6.17157 5.5 5.5 6.17157 5.5 7V13C5.5 13.8284 6.17157 14.5 7 14.5Z" fill="none" vector-effect="non-scaling-stroke"/></g>`),t.forEach((e,r)=>{e.setAttribute("fill",this._g(r)),e.setAttribute("stroke",this._g(r))})}connectedCallback(){this._renderGroups()}attributeChangedCallback(s,t,e){t!==e&&this._renderGroups()}}class d extends o{constructor(){super({classPrefix:"kt-icon",name:"adjustment",desc:"查看器_调整_裁剪旋转_cutting_adjustment",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none"},size:16,strokeWidth:1,fill:["#1A1A1A"]})}static register(){customElements.get("kt-icon-adjustment")||customElements.define("kt-icon-adjustment",d)}_renderGroups(){const s=this._render(),t=s.querySelectorAll("g");t.length===0&&(s.innerHTML=`
<g id="group-0" part="kt-icon-g-0" stroke="${this._g(0)}" fill="${this._g(0)}"><path d="M4.50019 2.5V10C4.50019 10.8284 5.17176 11.5 6.00019 11.5H13.5M2.5 4.5H10C10.8284 4.5 11.5 5.17157 11.5 6V13.5M14.5001 5C14.5001 3.067 12.9331 1.5 11.0001 1.5H10.5001V2.5M1.39999 11C1.39999 12.933 2.967 14.5 4.89999 14.5H5.50009V13.5" stroke-linecap="round" stroke-linejoin="round" fill="none" vector-effect="non-scaling-stroke"/></g>`),t.forEach((e,r)=>{e.setAttribute("fill",this._g(r)),e.setAttribute("stroke",this._g(r))})}connectedCallback(){this._renderGroups()}attributeChangedCallback(s,t,e){t!==e&&this._renderGroups()}}class g extends o{constructor(){super({classPrefix:"kt-icon",name:"correct",desc:"矫正16_correct",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none"},size:16,strokeWidth:1,fill:["#1A1A1A"]})}static register(){customElements.get("kt-icon-correct")||customElements.define("kt-icon-correct",g)}_renderGroups(){const s=this._render(),t=s.querySelectorAll("g");t.length===0&&(s.innerHTML=`
<g id="group-0" part="kt-icon-g-0" stroke="${this._g(0)}" fill="${this._g(0)}"><path d="M10.5 2.37268L13.1719 2.68098C13.9288 2.76832 14.5 3.40919 14.5 4.1711V6.49997M10.5 2.37268L10.5 6.34612M10.5 2.37268L6.50001 1.91114M10.5 13.63L13.1714 13.3228C13.9285 13.2357 14.5 12.5947 14.5 11.8326L14.5 9.49997M10.5 13.63L10.5 9.65382M10.5 13.63L6.5 14.09M10.5 6.34612L10.5 9.65382M10.5 6.34612L6.5 6.19228M10.5 6.34612L14.5 6.49997M10.5 9.65382L6.5 9.80766M10.5 9.65382L14.5 9.49997M1.50001 5.99997V3.00777C1.50001 2.10953 2.28411 1.41267 3.17613 1.51814L6.50001 1.91114M1.50001 5.99997L6.5 6.19228M1.50001 5.99997V9.99997M14.5 6.49997V9.49997M6.5 6.19228L6.5 9.80766M6.5 6.19228L6.50001 1.91114M1.50001 9.99997L1.5 12.9859C1.5 13.8828 2.2819 14.5793 3.17284 14.4759L6.5 14.09M1.50001 9.99997L6.5 9.80766M6.5 9.80766L6.5 14.09" fill="none" vector-effect="non-scaling-stroke"/></g>`),t.forEach((e,r)=>{e.setAttribute("fill",this._g(r)),e.setAttribute("stroke",this._g(r))})}connectedCallback(){this._renderGroups()}attributeChangedCallback(s,t,e){t!==e&&this._renderGroups()}}class u extends o{constructor(){super({classPrefix:"kt-icon",name:"filter",desc:"滤镜",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none"},size:16,strokeWidth:1,fill:["#1A1A1A"]})}static register(){customElements.get("kt-icon-filter")||customElements.define("kt-icon-filter",u)}_renderGroups(){const s=this._render(),t=s.querySelectorAll("g");t.length===0&&(s.innerHTML=`
<g id="group-0" part="kt-icon-g-0" stroke="${this._g(0)}" fill="${this._g(0)}"><path d="M4.46053 6.22498C4.31113 5.81133 4.22969 5.36517 4.22969 4.9C4.22969 2.74609 5.97578 1 8.12969 1C10.2836 1 12.0297 2.74609 12.0297 4.9C12.0297 6.37756 11.208 7.6632 9.99667 8.32493M7.45938 10.1C7.45938 10.9104 7.70658 11.6631 8.12969 12.2868M11.8281 6.22788C13.761 6.4594 15.2594 8.10472 15.2594 10.1C15.2594 12.2539 13.5133 14 11.3594 14C10.0159 14 8.83109 13.3207 8.12969 12.2868M8.12969 12.2868C7.42829 13.3207 6.24347 14 4.9 14C2.74609 14 1 12.2539 1 10.1C1 7.94609 2.74609 6.2 4.9 6.2C5.66062 6.2 6.37039 6.41775 6.97036 6.7943" stroke-linecap="round" stroke-linejoin="round" fill="none" vector-effect="non-scaling-stroke"/></g>`),t.forEach((e,r)=>{e.setAttribute("fill",this._g(r)),e.setAttribute("stroke",this._g(r))})}connectedCallback(){this._renderGroups()}attributeChangedCallback(s,t,e){t!==e&&this._renderGroups()}}class f extends o{constructor(){super({classPrefix:"kt-icon",name:"highlighter",desc:"马克笔16_highlighter",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none"},size:16,strokeWidth:1,fill:["#1A1A1A"]})}static register(){customElements.get("kt-icon-highlighter")||customElements.define("kt-icon-highlighter",f)}_renderGroups(){const s=this._render(),t=s.querySelectorAll("g");t.length===0&&(s.innerHTML=`
<g id="group-0" part="kt-icon-g-0" stroke="${this._g(0)}" fill="${this._g(0)}"><path d="M4.5 7.5C4.5 13 1.5 14.5 1.5 14.5H4.29384C4.42644 14.5 4.55256 14.4463 4.64885 14.3551C6.60805 12.5 8.7198 12.5 9.5 12.5M4.5 7.5L10.5 1.5M4.5 7.5L9.5 12.5M9.5 12.5L14.5 7.5" stroke-linecap="round" stroke-linejoin="round" fill="none" vector-effect="non-scaling-stroke"/></g>`),t.forEach((e,r)=>{e.setAttribute("fill",this._g(r)),e.setAttribute("stroke",this._g(r))})}connectedCallback(){this._renderGroups()}attributeChangedCallback(s,t,e){t!==e&&this._renderGroups()}}class p extends o{constructor(){super({classPrefix:"kt-icon",name:"mosaic",desc:"马赛克_mosaic",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none"},size:16,strokeWidth:1,fill:["#1A1A1A","#1A1A1A"]})}static register(){customElements.get("kt-icon-mosaic")||customElements.define("kt-icon-mosaic",p)}_renderGroups(){const s=this._render(),t=s.querySelectorAll("g");t.length===0&&(s.innerHTML=`
<g id="group-0" part="kt-icon-g-0" stroke="${this._g(0)}" fill="${this._g(0)}"><path d="M14.5 12C14.5 12.8284 13.8284 13.5 13 13.5H4C3.17157 13.5 2.5 12.8284 2.5 12V3C2.5 2.17157 3.17157 1.5 4 1.5H13C13.8284 1.5 14.5 2.17157 14.5 3V12Z" fill="none" vector-effect="non-scaling-stroke"/></g>
<g id="group-1" part="kt-icon-g-1" stroke="${this._g(1)}" fill="${this._g(1)}"><path d="M7 12H4.5C4.22386 12 4 11.7761 4 11.5V9H7V12ZM13 11.5C13 11.7761 12.7761 12 12.5 12H10V9H13V11.5ZM10 9H7V6H10V9ZM7 6H4V3.5C4 3.22386 4.22386 3 4.5 3H7V6ZM12.5 3C12.7761 3 13 3.22386 13 3.5V6H10V3H12.5Z" stroke="none"/></g>`),t.forEach((e,r)=>{e.setAttribute("fill",this._g(r)),e.setAttribute("stroke",this._g(r))})}connectedCallback(){this._renderGroups()}attributeChangedCallback(s,t,e){t!==e&&this._renderGroups()}}class k extends o{constructor(){super({classPrefix:"kt-icon",name:"watermark",desc:"水印_watermark",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none"},size:16,strokeWidth:1,fill:["#1A1A1A"]})}static register(){customElements.get("kt-icon-watermark1")||customElements.define("kt-icon-watermark1",k)}_renderGroups(){const s=this._render(),t=s.querySelectorAll("g");t.length===0&&(s.innerHTML=`
<g id="group-0" part="kt-icon-g-0" stroke="${this._g(0)}" fill="${this._g(0)}"><path d="M9.5 14C9.22386 14 9 14.2239 9 14.5C9 14.7761 9.22386 15 9.5 15V14.5V14ZM14.5 14C14.7761 14 15 13.7761 15 13.5C15 13.2239 14.7761 13 14.5 13V13.5V14ZM9.5 11C9.22386 11 9 11.2239 9 11.5C9 11.7761 9.22386 12 9.5 12V11.5V11ZM14.5 11C14.7761 11 15 10.7761 15 10.5C15 10.2239 14.7761 10 14.5 10V10.5V11ZM9.5 14.5V15C10.8407 15 11.5335 14.7251 12.1857 14.4642C12.7835 14.2251 13.3407 14 14.5 14V13.5V13C13.1593 13 12.4665 13.2749 11.8143 13.5358C11.2165 13.7749 10.6593 14 9.5 14V14.5ZM9.5 11.5V12C10.8407 12 11.5335 11.7251 12.1857 11.4642C12.7835 11.2251 13.3407 11 14.5 11V10.5V10C13.1593 10 12.4665 10.2749 11.8143 10.5358C11.2165 10.7749 10.6593 11 9.5 11V11.5ZM7 14.5001V14.0001C4.17344 14.0001 2 12.2006 2 9.50006H1.5H1C1 12.8747 3.75143 15.0001 7 15.0001V14.5001ZM1.5 9.50006H2C2 7.92849 3.03086 6.04309 4.26543 4.49989C4.87282 3.74066 5.50693 3.09264 6.04196 2.63936C6.31021 2.41209 6.54483 2.24121 6.73183 2.13018C6.94298 2.00481 7.02099 2.00006 7 2.00006V1.50006V1.00006C6.72901 1.00006 6.44765 1.13593 6.2213 1.27033C5.9708 1.41906 5.68979 1.62708 5.39554 1.87637C4.80557 2.37621 4.12718 3.07193 3.48457 3.87519C2.21914 5.45697 1 7.57157 1 9.50006H1.5ZM7 1.50006V2.00006C6.97599 2.00006 7.03119 1.9992 7.19541 2.08869C7.34146 2.16829 7.5268 2.29312 7.74345 2.46377C8.17537 2.804 8.69634 3.29832 9.22591 3.89585C10.2915 5.09819 11.34 6.65957 11.7823 8.14287L12.2614 8L12.7406 7.85713C12.24 6.17826 11.0884 4.48966 9.9743 3.23258C9.41402 2.6004 8.85025 2.06264 8.36224 1.67822C8.11892 1.48655 7.88549 1.32591 7.67394 1.21062C7.48055 1.10523 7.23932 1.00006 7 1.00006V1.50006Z" stroke="none"/></g>`),t.forEach((e,r)=>{e.setAttribute("fill",this._g(r)),e.setAttribute("stroke",this._g(r))})}connectedCallback(){this._renderGroups()}attributeChangedCallback(s,t,e){t!==e&&this._renderGroups()}}class C extends o{constructor(){super({classPrefix:"kt-icon",name:"arrow-down",desc:"上箭头",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none"},size:16,strokeWidth:1,fill:["#1A1A1A"]})}static register(){customElements.get("kt-icon-arrow-down")||customElements.define("kt-icon-arrow-down",C)}_renderGroups(){const s=this._render(),t=s.querySelectorAll("g");t.length===0&&(s.innerHTML=`
<g id="group-0" part="kt-icon-g-0" stroke="${this._g(0)}" fill="${this._g(0)}"><path d="M11.75 6L7.99991 9.5L4.25 6" stroke-linecap="round" stroke-linejoin="round" fill="none" vector-effect="non-scaling-stroke"/></g>`),t.forEach((e,r)=>{e.setAttribute("fill",this._g(r)),e.setAttribute("stroke",this._g(r))})}connectedCallback(){this._renderGroups()}attributeChangedCallback(s,t,e){t!==e&&this._renderGroups()}}export{o as K,d as a,f as b,g as c,u as d,h as e,k as f,p as g,C as h};
