(()=>{var T=Object.create;var{getPrototypeOf:P,defineProperty:D,getOwnPropertyNames:O,getOwnPropertyDescriptor:d}=Object,R=Object.prototype.hasOwnProperty;function W(j){return this[j]}var h,x,E=(j,k,z)=>{var F=j!=null&&typeof j==="object";if(F){var Q=k?h??=new WeakMap:x??=new WeakMap,A=Q.get(j);if(A)return A}z=j!=null?T(P(j)):{};let w=k||!j||!j.__esModule?D(z,"default",{value:j,enumerable:!0}):z;for(let q of O(j))if(!R.call(w,q))D(w,q,{get:W.bind(j,q),enumerable:!0});if(F)Q.set(j,w);return w},u=(j)=>{var k=(N??=new WeakMap).get(j),z;if(k)return k;if(k=D({},"__esModule",{value:!0}),j&&typeof j==="object"||typeof j==="function"){for(var F of O(j))if(!R.call(k,F))D(k,F,{get:W.bind(j,F),enumerable:!(z=d(j,F))||z.enumerable})}return N.set(j,k),k},N,g=(j,k)=>()=>(k||j((k={exports:{}}).exports,k),k.exports);var C=(j)=>j;function y(j,k){this[j]=C.bind(null,k)}var I=(j,k)=>{for(var z in k)D(j,z,{get:k[z],enumerable:!0,configurable:!0,set:y.bind(k,z)})};var i={};I(i,{enhanceIconList:()=>b,enhanceColorPalettes:()=>V});function f(j){if(document.readyState!=="loading")j();else document.addEventListener("DOMContentLoaded",j)}function V(){f(()=>{let j=document.querySelectorAll('[data-list="colors"]');if(j.length===0)return;let k=null,z=null;function F(A){let w=document.createElement("div"),q=document.createElementNS("http://www.w3.org/2000/svg","svg");q.setAttribute("viewBox","0 0 24 24"),q.setAttribute("aria-hidden",!0),q.innerHTML='',w.appendChild(q),A.appendChild(w)}function Q(A){let w=A.split(","),q=parseInt(w[0].trim()),J=parseInt(w[1].trim()),G=parseInt(w[2].trim());if(w.length===4){let B=parseFloat(w[3].trim());if(B>=1)return"#"+[q,J,G].map((X)=>X.toString(16).padStart(2,"0")).join("");else{let X=Math.round(B*255).toString(16).padStart(2,"0");return"#"+[q,J,G].map((U)=>U.toString(16).padStart(2,"0")).join("")+X}}else return"#"+[q,J,G].map((B)=>B.toString(16).padStart(2,"0")).join("")}j.forEach((A)=>{let w=A.querySelectorAll("li");if(w.length===0)return;w.forEach((q)=>{let J=document.createElement("div");J.className="popover";let G=window.getComputedStyle(q).getPropertyValue("background-color"),B,X=!1;if(G.startsWith("rgba("))B=G.substring(5,G.length-1),X=!0;else if(G.startsWith("rgb("))B=G.substring(4,G.length-1);else B=G;let U=document.createElement("div");U.setAttribute("style","position: relative;"),U.innerHTML=`${X?"RGBA":"RGB"}: ${B}`,F(U),J.appendChild(U);let $=Q(B),Y=document.createElement("div");Y.setAttribute("style","position: relative;"),Y.innerHTML=`HEX: ${$}`,F(Y),J.appendChild(Y);let Z=q.getAttribute("data-css-var"),L="",_=null;if(Z&&Z.trim()!==""){if(Z.startsWith("var(")&&Z.endsWith(")"))L=Z.slice(4,-1).trim();else L=Z;_=document.createElement("div"),_.setAttribute("style","position: relative;"),_.innerHTML=`CSS: ${L}`,F(_),J.appendChild(_)}q.appendChild(J),q.addEventListener("click",(M)=>{let H,K;if(M.altKey)H=$,K=Y;else if(M.ctrlKey&&_)H=Z,K=_;else H=G,K=U;navigator.clipboard.writeText(H).then(()=>{if(k)k.classList.remove("is-active");if(k=q,q.classList.add("is-active"),setTimeout(()=>{q.classList.remove("is-active")},2000),z)z.classList.remove("is-active");z=K,K.classList.add("is-active"),setTimeout(()=>{K.classList.remove("is-active")},2000)}).catch((S)=>{console.error("Copy failed: ",S)})})})})})}function b(){f(()=>{let j=document.querySelectorAll('[data-list="icons"]');if(j.length===0)return;let k=null;function z(F){let Q=document.createElement("div"),A=document.createElementNS("http://www.w3.org/2000/svg","svg");A.setAttribute("viewBox","0 0 24 24"),A.setAttribute("aria-hidden",!0),A.innerHTML='',Q.appendChild(A),F.appendChild(Q)}j.forEach((F)=>{let Q=F.querySelectorAll("svg");if(Q.length===0)return;Q.forEach((A)=>{let w=A.parentElement,q=document.createElement("div"),J=A.querySelector("use");q.className="popover";let G=J.href.baseVal,B=document.createElement("div");B.setAttribute("style","position: relative;"),B.innerHTML=`Icon: ${G}`,z(B),q.appendChild(B),w.appendChild(q),w.addEventListener("click",(X)=>{let U=G,$=B;navigator.clipboard.writeText(U).then(()=>{if(k)k.classList.remove("is-active");k=$,$.classList.add("is-active"),setTimeout(()=>{$.classList.remove("is-active")},2000)}).catch((Y)=>{console.error("Copy failed: ",Y)})})})})})}})();
//# debugId=D5ECB3F605B3F2DF64756E2164756E21