8 lines
182 KiB
JavaScript
8 lines
182 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/Home-whN-JQCS.js","assets/js/chunk-UIGDSWPH-BhuNDbxn.js","assets/js/ComponentCard-C2b5w2__.js","assets/js/EnhancedMetricCard-YOSFdLZV.js","assets/js/arrow-up-Ba39LAbN.js","assets/js/Card-CAsJMMfR.js","assets/js/check-circle--AtVWUy0.js","assets/js/file-CeG1FbGg.js","assets/js/arrow-right-DC7G5FiV.js","assets/js/group-Dnur-I7a.js","assets/js/Dashboard-De9JCtst.js","assets/js/ProgressBar-0v269fGL.js","assets/js/WorkflowPipeline-Ck3TPaPI.js","assets/js/Tooltip-D9yIUHzL.js","assets/js/PageHeader-iXTYKDGo.js","assets/js/Keywords-CeSsLZuH.js","assets/js/TablePageTemplate-BEWe6AkV.js","assets/js/SelectDropdown-C8sZwHi_.js","assets/js/AlertModal-BhtTtzZV.js","assets/js/index-ju2wdkG8.js","assets/js/plus-2WF6_FMG.js","assets/js/pencil-CuC2vg9I.js","assets/js/angle-left-CYBnq6Pg.js","assets/js/Badge-DM3morB7.js","assets/js/difficulty-j1OGc4r8.js","assets/js/FormModal-DkhE3zPR.js","assets/js/date-Cc7ORwbK.js","assets/js/useResourceDebug-Dza3x9eP.js","assets/js/Clusters-6rNtI8_f.js","assets/js/Ideas-B_Kl4H-C.js","assets/js/KeywordOpportunities-B0Ysyppu.js","assets/js/Dashboard-Ccv705lU.js","assets/js/box-jJ_LUJjA.js","assets/js/Tasks-Bv8qVyPX.js","assets/js/Content-g0lJ60Iw.js","assets/js/ContentView-CdFYDYSF.js","assets/js/info-error-ByXER0wM.js","assets/js/Drafts-CJWMSCHe.js","assets/js/Images--ke2KcFJ.js","assets/js/Published-AR-4o8pH.js","assets/js/Dashboard-ockVXQMI.js","assets/js/Prompts-R_ZfvWlm.js","assets/js/AuthorProfiles-B2gmK5S5.js","assets/js/Profile-DVt77HkG.js","assets/js/Strategies-BZYqkdF8.js","assets/js/ImageTesting-HoEAYM73.js","assets/js/Credits-DFf6S4rj.js","assets/js/Transactions-CwNUiNRI.js","assets/js/Usage-D7sccDmW.js","assets/js/SeedKeywords-Csm_woDL.js","assets/js/Industries-CnSbmgkW.js","assets/js/Schedules-Dvcqjde1.js","assets/js/General-BBayzDdO.js","assets/js/Users-DAHD6HuE.js","assets/js/Subscriptions-CaY7WKA-.js","assets/js/System-CIs-5tlM.js","assets/js/Account-Bf9vAOTf.js","assets/js/Modules-DIZr9U_2.js","assets/js/AI-_VUGtumU.js","assets/js/Plans-Do__nAhH.js","assets/js/PricingTable-DY2_-9tK.js","assets/js/Industries-By4OH9TT.js","assets/js/Status-DYkmWb93.js","assets/js/Integration-BSb6sI6r.js","assets/js/Switch-BQnuu7S6.js","assets/js/Alert-BeBw6uu9.js","assets/js/Sites-D0gltSUZ.js","assets/js/ImportExport-Cqa8FqjF.js","assets/js/Help-Bp9s-K_a.js","assets/js/Docs-BPC7WjsH.js","assets/js/SystemTesting-CzneBS1_.js","assets/js/FunctionTesting-CAuVGGAW.js","assets/js/Components-BBHjo_f1.js","assets/js/Pagination-D7wmdCIc.js","assets/js/Alerts-FnEFN6sg.js","assets/js/Avatars-Dlp6SnrA.js","assets/js/Badges-84stX2QT.js","assets/js/Breadcrumb-BcD4n73v.js","assets/js/Buttons-G20eaxqT.js","assets/js/ButtonsGroup-DYSVSlOo.js","assets/js/Cards-BuCqS-1e.js","assets/js/Carousel-C8u3pWcY.js","assets/js/Dropdowns-CFWhd3dT.js","assets/js/Images-Dv7Nk8FN.js","assets/js/Links-_Jn60S3o.js","assets/js/List-BHvHi588.js","assets/js/Modals-Dp3aGLP0.js","assets/js/Notifications-CxC2JjHH.js","assets/js/Pagination-DBEhb4FN.js","assets/js/Popovers-Bvm5pvzs.js","assets/js/PricingTable-D5RdAFz1.js","assets/js/Progressbar-CgPnNdeb.js","assets/js/Ribbons-CUwwU4TT.js","assets/js/Spinners-gwHZgAUa.js","assets/js/Tabs-BXBDFIVq.js","assets/js/Tooltips-BSWxoQ9h.js","assets/js/Videos-CPKE-xOo.js"])))=>i.map(i=>d[i]);
|
||
var rr=Object.defineProperty;var sr=(e,r,s)=>r in e?rr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[r]=s;var J=(e,r,s)=>sr(e,typeof r!="symbol"?r+"":r,s);import{g as Xe,r as o,R as D,j as t,a as nr,L as F,u as Qe,b as Ne,_ as C,O as ar,N as kt,B as or,c as ir,d as b,e as lr}from"./chunk-UIGDSWPH-BhuNDbxn.js";var Ie,ct;function cr(){if(ct)return Ie;ct=1;var e=typeof Element<"u",r=typeof Map=="function",s=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(i,l){if(i===l)return!0;if(i&&l&&typeof i=="object"&&typeof l=="object"){if(i.constructor!==l.constructor)return!1;var c,d,u;if(Array.isArray(i)){if(c=i.length,c!=l.length)return!1;for(d=c;d--!==0;)if(!a(i[d],l[d]))return!1;return!0}var m;if(r&&i instanceof Map&&l instanceof Map){if(i.size!==l.size)return!1;for(m=i.entries();!(d=m.next()).done;)if(!l.has(d.value[0]))return!1;for(m=i.entries();!(d=m.next()).done;)if(!a(d.value[1],l.get(d.value[0])))return!1;return!0}if(s&&i instanceof Set&&l instanceof Set){if(i.size!==l.size)return!1;for(m=i.entries();!(d=m.next()).done;)if(!l.has(d.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(l)){if(c=i.length,c!=l.length)return!1;for(d=c;d--!==0;)if(i[d]!==l[d])return!1;return!0}if(i.constructor===RegExp)return i.source===l.source&&i.flags===l.flags;if(i.valueOf!==Object.prototype.valueOf&&typeof i.valueOf=="function"&&typeof l.valueOf=="function")return i.valueOf()===l.valueOf();if(i.toString!==Object.prototype.toString&&typeof i.toString=="function"&&typeof l.toString=="function")return i.toString()===l.toString();if(u=Object.keys(i),c=u.length,c!==Object.keys(l).length)return!1;for(d=c;d--!==0;)if(!Object.prototype.hasOwnProperty.call(l,u[d]))return!1;if(e&&i instanceof Element)return!1;for(d=c;d--!==0;)if(!((u[d]==="_owner"||u[d]==="__v"||u[d]==="__o")&&i.$$typeof)&&!a(i[u[d]],l[u[d]]))return!1;return!0}return i!==i&&l!==l}return Ie=function(l,c){try{return a(l,c)}catch(d){if((d.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw d}},Ie}var dr=cr();const ur=Xe(dr);var Pe,dt;function mr(){if(dt)return Pe;dt=1;var e=function(r,s,n,a,i,l,c,d){if(!r){var u;if(s===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[n,a,i,l,c,d],g=0;u=new Error(s.replace(/%s/g,function(){return m[g++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};return Pe=e,Pe}var hr=mr();const ut=Xe(hr);var Oe,mt;function gr(){return mt||(mt=1,Oe=function(r,s,n,a){var i=n?n.call(a,r,s):void 0;if(i!==void 0)return!!i;if(r===s)return!0;if(typeof r!="object"||!r||typeof s!="object"||!s)return!1;var l=Object.keys(r),c=Object.keys(s);if(l.length!==c.length)return!1;for(var d=Object.prototype.hasOwnProperty.bind(s),u=0;u<l.length;u++){var m=l[u];if(!d(m))return!1;var g=r[m],p=s[m];if(i=n?n.call(a,g,p,m):void 0,i===!1||i===void 0&&g!==p)return!1}return!0}),Oe}var pr=gr();const xr=Xe(pr);var _t=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(_t||{}),Me={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},ht=Object.values(_t),et={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},fr=Object.entries(et).reduce((e,[r,s])=>(e[s]=r,e),{}),B="data-rh",ce={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},de=(e,r)=>{for(let s=e.length-1;s>=0;s-=1){const n=e[s];if(Object.prototype.hasOwnProperty.call(n,r))return n[r]}return null},br=e=>{let r=de(e,"title");const s=de(e,ce.TITLE_TEMPLATE);if(Array.isArray(r)&&(r=r.join("")),s&&r)return s.replace(/%s/g,()=>r);const n=de(e,ce.DEFAULT_TITLE);return r||n||void 0},yr=e=>de(e,ce.ON_CHANGE_CLIENT_STATE)||(()=>{}),ze=(e,r)=>r.filter(s=>typeof s[e]<"u").map(s=>s[e]).reduce((s,n)=>({...s,...n}),{}),vr=(e,r)=>r.filter(s=>typeof s.base<"u").map(s=>s.base).reverse().reduce((s,n)=>{if(!s.length){const a=Object.keys(n);for(let i=0;i<a.length;i+=1){const c=a[i].toLowerCase();if(e.indexOf(c)!==-1&&n[c])return s.concat(n)}}return s},[]),wr=e=>console&&typeof console.warn=="function"&&console.warn(e),xe=(e,r,s)=>{const n={};return s.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&wr(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,i)=>{const l={};i.filter(d=>{let u;const m=Object.keys(d);for(let p=0;p<m.length;p+=1){const f=m[p],k=f.toLowerCase();r.indexOf(k)!==-1&&!(u==="rel"&&d[u].toLowerCase()==="canonical")&&!(k==="rel"&&d[k].toLowerCase()==="stylesheet")&&(u=k),r.indexOf(f)!==-1&&(f==="innerHTML"||f==="cssText"||f==="itemprop")&&(u=f)}if(!u||!d[u])return!1;const g=d[u].toLowerCase();return n[u]||(n[u]={}),l[u]||(l[u]={}),n[u][g]?!1:(l[u][g]=!0,!0)}).reverse().forEach(d=>a.push(d));const c=Object.keys(l);for(let d=0;d<c.length;d+=1){const u=c[d],m={...n[u],...l[u]};n[u]=m}return a},[]).reverse()},jr=(e,r)=>{if(Array.isArray(e)&&e.length){for(let s=0;s<e.length;s+=1)if(e[s][r])return!0}return!1},Cr=e=>({baseTag:vr(["href"],e),bodyAttributes:ze("bodyAttributes",e),defer:de(e,ce.DEFER),encode:de(e,ce.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ze("htmlAttributes",e),linkTags:xe("link",["rel","href"],e),metaTags:xe("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:xe("noscript",["innerHTML"],e),onChangeClientState:yr(e),scriptTags:xe("script",["src","innerHTML"],e),styleTags:xe("style",["cssText"],e),title:br(e),titleAttributes:ze("titleAttributes",e),prioritizeSeoTags:jr(e,ce.PRIORITIZE_SEO_TAGS)}),St=e=>Array.isArray(e)?e.join(""):e,kr=(e,r)=>{const s=Object.keys(e);for(let n=0;n<s.length;n+=1)if(r[s[n]]&&r[s[n]].includes(e[s[n]]))return!0;return!1},Ve=(e,r)=>Array.isArray(e)?e.reduce((s,n)=>(kr(n,r)?s.priority.push(n):s.default.push(n),s),{priority:[],default:[]}):{default:e,priority:[]},gt=(e,r)=>({...e,[r]:void 0}),_r=["noscript","script","style"],Fe=(e,r=!0)=>r===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Et=e=>Object.keys(e).reduce((r,s)=>{const n=typeof e[s]<"u"?`${s}="${e[s]}"`:`${s}`;return r?`${r} ${n}`:n},""),Sr=(e,r,s,n)=>{const a=Et(s),i=St(r);return a?`<${e} ${B}="true" ${a}>${Fe(i,n)}</${e}>`:`<${e} ${B}="true">${Fe(i,n)}</${e}>`},Er=(e,r,s=!0)=>r.reduce((n,a)=>{const i=a,l=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,m)=>{const g=typeof i[m]>"u"?m:`${m}="${Fe(i[m],s)}"`;return u?`${u} ${g}`:g},""),c=i.innerHTML||i.cssText||"",d=_r.indexOf(e)===-1;return`${n}<${e} ${B}="true" ${l}${d?"/>":`>${c}</${e}>`}`},""),Nt=(e,r={})=>Object.keys(e).reduce((s,n)=>{const a=et[n];return s[a||n]=e[n],s},r),Nr=(e,r,s)=>{const n={key:r,[B]:!0},a=Nt(s,n);return[D.createElement("title",a,r)]},Ee=(e,r)=>r.map((s,n)=>{const a={key:n,[B]:!0};return Object.keys(s).forEach(i=>{const c=et[i]||i;if(c==="innerHTML"||c==="cssText"){const d=s.innerHTML||s.cssText;a.dangerouslySetInnerHTML={__html:d}}else a[c]=s[i]}),D.createElement(e,a)}),$=(e,r,s=!0)=>{switch(e){case"title":return{toComponent:()=>Nr(e,r.title,r.titleAttributes),toString:()=>Sr(e,r.title,r.titleAttributes,s)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Nt(r),toString:()=>Et(r)};default:return{toComponent:()=>Ee(e,r),toString:()=>Er(e,r,s)}}},Tr=({metaTags:e,linkTags:r,scriptTags:s,encode:n})=>{const a=Ve(e,Me.meta),i=Ve(r,Me.link),l=Ve(s,Me.script);return{priorityMethods:{toComponent:()=>[...Ee("meta",a.priority),...Ee("link",i.priority),...Ee("script",l.priority)],toString:()=>`${$("meta",a.priority,n)} ${$("link",i.priority,n)} ${$("script",l.priority,n)}`},metaTags:a.default,linkTags:i.default,scriptTags:l.default}},Lr=e=>{const{baseTag:r,bodyAttributes:s,encode:n=!0,htmlAttributes:a,noscriptTags:i,styleTags:l,title:c="",titleAttributes:d,prioritizeSeoTags:u}=e;let{linkTags:m,metaTags:g,scriptTags:p}=e,f={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:f,linkTags:m,metaTags:g,scriptTags:p}=Tr(e)),{priority:f,base:$("base",r,n),bodyAttributes:$("bodyAttributes",s,n),htmlAttributes:$("htmlAttributes",a,n),link:$("link",m,n),meta:$("meta",g,n),noscript:$("noscript",i,n),script:$("script",p,n),style:$("style",l,n),title:$("title",{title:c,titleAttributes:d},n)}},Ze=Lr,ke=[],Tt=!!(typeof window<"u"&&window.document&&window.document.createElement),Be=class{constructor(e,r){J(this,"instances",[]);J(this,"canUseDOM",Tt);J(this,"context");J(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ke:this.instances,add:e=>{(this.canUseDOM?ke:this.instances).push(e)},remove:e=>{const r=(this.canUseDOM?ke:this.instances).indexOf(e);(this.canUseDOM?ke:this.instances).splice(r,1)}}});this.context=e,this.canUseDOM=r||!1,r||(e.helmet=Ze({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Ar={},Lt=D.createContext(Ar),re,At=(re=class extends o.Component{constructor(s){super(s);J(this,"helmetData");this.helmetData=new Be(this.props.context||{},re.canUseDOM)}render(){return D.createElement(Lt.Provider,{value:this.helmetData.value},this.props.children)}},J(re,"canUseDOM",Tt),re),ae=(e,r)=>{const s=document.head||document.querySelector("head"),n=s.querySelectorAll(`${e}[${B}]`),a=[].slice.call(n),i=[];let l;return r&&r.length&&r.forEach(c=>{const d=document.createElement(e);for(const u in c)if(Object.prototype.hasOwnProperty.call(c,u))if(u==="innerHTML")d.innerHTML=c.innerHTML;else if(u==="cssText")d.styleSheet?d.styleSheet.cssText=c.cssText:d.appendChild(document.createTextNode(c.cssText));else{const m=u,g=typeof c[m]>"u"?"":c[m];d.setAttribute(u,g)}d.setAttribute(B,"true"),a.some((u,m)=>(l=m,d.isEqualNode(u)))?a.splice(l,1):i.push(d)}),a.forEach(c=>{var d;return(d=c.parentNode)==null?void 0:d.removeChild(c)}),i.forEach(c=>s.appendChild(c)),{oldTags:a,newTags:i}},Ue=(e,r)=>{const s=document.getElementsByTagName(e)[0];if(!s)return;const n=s.getAttribute(B),a=n?n.split(","):[],i=[...a],l=Object.keys(r);for(const c of l){const d=r[c]||"";s.getAttribute(c)!==d&&s.setAttribute(c,d),a.indexOf(c)===-1&&a.push(c);const u=i.indexOf(c);u!==-1&&i.splice(u,1)}for(let c=i.length-1;c>=0;c-=1)s.removeAttribute(i[c]);a.length===i.length?s.removeAttribute(B):s.getAttribute(B)!==l.join(",")&&s.setAttribute(B,l.join(","))},Rr=(e,r)=>{typeof e<"u"&&document.title!==e&&(document.title=St(e)),Ue("title",r)},pt=(e,r)=>{const{baseTag:s,bodyAttributes:n,htmlAttributes:a,linkTags:i,metaTags:l,noscriptTags:c,onChangeClientState:d,scriptTags:u,styleTags:m,title:g,titleAttributes:p}=e;Ue("body",n),Ue("html",a),Rr(g,p);const f={baseTag:ae("base",s),linkTags:ae("link",i),metaTags:ae("meta",l),noscriptTags:ae("noscript",c),scriptTags:ae("script",u),styleTags:ae("style",m)},k={},x={};Object.keys(f).forEach(j=>{const{newTags:S,oldTags:w}=f[j];S.length&&(k[j]=S),w.length&&(x[j]=f[j].oldTags)}),r&&r(),d(e,k,x)},fe=null,Ir=e=>{fe&&cancelAnimationFrame(fe),e.defer?fe=requestAnimationFrame(()=>{pt(e,()=>{fe=null})}):(pt(e),fe=null)},Pr=Ir,xt=class extends o.Component{constructor(){super(...arguments);J(this,"rendered",!1)}shouldComponentUpdate(r){return!xr(r,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:r}=this.props.context;r.remove(this),this.emitChange()}emitChange(){const{helmetInstances:r,setHelmet:s}=this.props.context;let n=null;const a=Cr(r.get().map(i=>{const l={...i.props};return delete l.context,l}));At.canUseDOM?Pr(a):Ze&&(n=Ze(a)),s(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:r}=this.props.context;r.add(this),this.emitChange()}render(){return this.init(),null}},$e,Or=($e=class extends o.Component{shouldComponentUpdate(e){return!ur(gt(this.props,"helmetData"),gt(e,"helmetData"))}mapNestedChildrenToProps(e,r){if(!r)return null;switch(e.type){case"script":case"noscript":return{innerHTML:r};case"style":return{cssText:r};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,r,s,n){return{...r,[e.type]:[...r[e.type]||[],{...s,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,r,s,n){switch(e.type){case"title":return{...r,[e.type]:n,titleAttributes:{...s}};case"body":return{...r,bodyAttributes:{...s}};case"html":return{...r,htmlAttributes:{...s}};default:return{...r,[e.type]:{...s}}}}mapArrayTypeChildrenToProps(e,r){let s={...r};return Object.keys(e).forEach(n=>{s={...s,[n]:e[n]}}),s}warnOnInvalidChildren(e,r){return ut(ht.some(s=>e.type===s),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${ht.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),ut(!r||typeof r=="string"||Array.isArray(r)&&!r.some(s=>typeof s!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,r){let s={};return D.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:a,...i}=n.props,l=Object.keys(i).reduce((d,u)=>(d[fr[u]||u]=i[u],d),{});let{type:c}=n;switch(typeof c=="symbol"?c=c.toString():this.warnOnInvalidChildren(n,a),c){case"Symbol(react.fragment)":r=this.mapChildrenToProps(a,r);break;case"link":case"meta":case"noscript":case"script":case"style":s=this.flattenArrayTypeChildren(n,s,l,a);break;default:r=this.mapObjectTypeChildren(n,r,l,a);break}}),this.mapArrayTypeChildrenToProps(s,r)}render(){const{children:e,...r}=this.props;let s={...r},{helmetData:n}=r;if(e&&(s=this.mapChildrenToProps(e,s)),n&&!(n instanceof Be)){const a=n;n=new Be(a.context,!0),delete s.helmetData}return n?D.createElement(xt,{...s,context:n.value}):D.createElement(Lt.Consumer,null,a=>D.createElement(xt,{...s,context:a}))}},J($e,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),$e);const Rt=o.createContext(void 0),Te=()=>{const e=o.useContext(Rt);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},Mr=({children:e})=>{const[r,s]=o.useState(!0),[n,a]=o.useState(!1),[i,l]=o.useState(!1),[c,d]=o.useState(!1),[u,m]=o.useState(null),[g,p]=o.useState(null);o.useEffect(()=>{const j=()=>{const S=window.innerWidth<768;l(S),S||a(!1)};return j(),window.addEventListener("resize",j),()=>{window.removeEventListener("resize",j)}},[]);const f=()=>{s(j=>!j)},k=()=>{a(j=>!j)},x=j=>{p(S=>S===j?null:j)};return t.jsx(Rt.Provider,{value:{isExpanded:i?!1:r,isMobileOpen:n,isHovered:c,activeItem:u,openSubmenu:g,toggleSidebar:f,toggleMobileSidebar:k,setIsHovered:d,setActiveItem:m,toggleSubmenu:x},children:e})},It=o.createContext(void 0),zr=({children:e})=>{const[r,s]=o.useState("light"),[n,a]=o.useState(!1);o.useEffect(()=>{const c=localStorage.getItem("theme")||"light";s(c),a(!0)},[]),o.useEffect(()=>{n&&(localStorage.setItem("theme",r),r==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))},[r,n]);const i=()=>{s(l=>l==="light"?"dark":"light")};return t.jsx(It.Provider,{value:{theme:r,toggleTheme:i},children:e})},Pt=()=>{const e=o.useContext(It);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},Vr=()=>{const{toggleTheme:e}=Pt();return t.jsxs("button",{onClick:e,className:"relative flex items-center justify-center text-gray-500 transition-colors bg-white border border-gray-200 rounded-full hover:text-dark-900 h-11 w-11 hover:bg-gray-100 hover:text-gray-700 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white",children:[t.jsx("svg",{className:"hidden dark:block",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99998 1.5415C10.4142 1.5415 10.75 1.87729 10.75 2.2915V3.5415C10.75 3.95572 10.4142 4.2915 9.99998 4.2915C9.58577 4.2915 9.24998 3.95572 9.24998 3.5415V2.2915C9.24998 1.87729 9.58577 1.5415 9.99998 1.5415ZM10.0009 6.79327C8.22978 6.79327 6.79402 8.22904 6.79402 10.0001C6.79402 11.7712 8.22978 13.207 10.0009 13.207C11.772 13.207 13.2078 11.7712 13.2078 10.0001C13.2078 8.22904 11.772 6.79327 10.0009 6.79327ZM5.29402 10.0001C5.29402 7.40061 7.40135 5.29327 10.0009 5.29327C12.6004 5.29327 14.7078 7.40061 14.7078 10.0001C14.7078 12.5997 12.6004 14.707 10.0009 14.707C7.40135 14.707 5.29402 12.5997 5.29402 10.0001ZM15.9813 5.08035C16.2742 4.78746 16.2742 4.31258 15.9813 4.01969C15.6884 3.7268 15.2135 3.7268 14.9207 4.01969L14.0368 4.90357C13.7439 5.19647 13.7439 5.67134 14.0368 5.96423C14.3297 6.25713 14.8045 6.25713 15.0974 5.96423L15.9813 5.08035ZM18.4577 10.0001C18.4577 10.4143 18.1219 10.7501 17.7077 10.7501H16.4577C16.0435 10.7501 15.7077 10.4143 15.7077 10.0001C15.7077 9.58592 16.0435 9.25013 16.4577 9.25013H17.7077C18.1219 9.25013 18.4577 9.58592 18.4577 10.0001ZM14.9207 15.9806C15.2135 16.2735 15.6884 16.2735 15.9813 15.9806C16.2742 15.6877 16.2742 15.2128 15.9813 14.9199L15.0974 14.036C14.8045 13.7431 14.3297 13.7431 14.0368 14.036C13.7439 14.3289 13.7439 14.8038 14.0368 15.0967L14.9207 15.9806ZM9.99998 15.7088C10.4142 15.7088 10.75 16.0445 10.75 16.4588V17.7088C10.75 18.123 10.4142 18.4588 9.99998 18.4588C9.58577 18.4588 9.24998 18.123 9.24998 17.7088V16.4588C9.24998 16.0445 9.58577 15.7088 9.99998 15.7088ZM5.96356 15.0972C6.25646 14.8043 6.25646 14.3295 5.96356 14.0366C5.67067 13.7437 5.1958 13.7437 4.9029 14.0366L4.01902 14.9204C3.72613 15.2133 3.72613 15.6882 4.01902 15.9811C4.31191 16.274 4.78679 16.274 5.07968 15.9811L5.96356 15.0972ZM4.29224 10.0001C4.29224 10.4143 3.95645 10.7501 3.54224 10.7501H2.29224C1.87802 10.7501 1.54224 10.4143 1.54224 10.0001C1.54224 9.58592 1.87802 9.25013 2.29224 9.25013H3.54224C3.95645 9.25013 4.29224 9.58592 4.29224 10.0001ZM4.9029 5.9637C5.1958 6.25659 5.67067 6.25659 5.96356 5.9637C6.25646 5.6708 6.25646 5.19593 5.96356 4.90303L5.07968 4.01915C4.78679 3.72626 4.31191 3.72626 4.01902 4.01915C3.72613 4.31204 3.72613 4.78692 4.01902 5.07981L4.9029 5.9637Z",fill:"currentColor"})}),t.jsx("svg",{className:"dark:hidden",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M17.4547 11.97L18.1799 12.1611C18.265 11.8383 18.1265 11.4982 17.8401 11.3266C17.5538 11.1551 17.1885 11.1934 16.944 11.4207L17.4547 11.97ZM8.0306 2.5459L8.57989 3.05657C8.80718 2.81209 8.84554 2.44682 8.67398 2.16046C8.50243 1.8741 8.16227 1.73559 7.83948 1.82066L8.0306 2.5459ZM12.9154 13.0035C9.64678 13.0035 6.99707 10.3538 6.99707 7.08524H5.49707C5.49707 11.1823 8.81835 14.5035 12.9154 14.5035V13.0035ZM16.944 11.4207C15.8869 12.4035 14.4721 13.0035 12.9154 13.0035V14.5035C14.8657 14.5035 16.6418 13.7499 17.9654 12.5193L16.944 11.4207ZM16.7295 11.7789C15.9437 14.7607 13.2277 16.9586 10.0003 16.9586V18.4586C13.9257 18.4586 17.2249 15.7853 18.1799 12.1611L16.7295 11.7789ZM10.0003 16.9586C6.15734 16.9586 3.04199 13.8433 3.04199 10.0003H1.54199C1.54199 14.6717 5.32892 18.4586 10.0003 18.4586V16.9586ZM3.04199 10.0003C3.04199 6.77289 5.23988 4.05695 8.22173 3.27114L7.83948 1.82066C4.21532 2.77574 1.54199 6.07486 1.54199 10.0003H3.04199ZM6.99707 7.08524C6.99707 5.52854 7.5971 4.11366 8.57989 3.05657L7.48132 2.03522C6.25073 3.35885 5.49707 5.13487 5.49707 7.08524H6.99707Z",fill:"currentColor"})})]})};var Ot=nr();const Mt=({isOpen:e,onClose:r,children:s,className:n="",anchorRef:a,placement:i="right"})=>{const l=o.useRef(null),[c,d]=o.useState({top:0,left:0}),u=o.useCallback(()=>{if(!e||!(a!=null&&a.current)||!l.current)return;const g=a.current.getBoundingClientRect(),p=l.current.getBoundingClientRect();let f=g.bottom+8,k=g.left,x=p.width;if(!x||x===0){const h=n.match(/w-(\d+)/);h?x=parseInt(h[1],10)*4:x=192}i==="right"||i==="bottom-right"?k=g.right-x:k=g.left;const j=window.innerWidth,S=window.innerHeight,w=p.height||200;k+x>j&&(k=g.left-x),g.bottom+w>S&&(f=g.top-w-8),k<0&&(k=8),d({top:f,left:k})},[e,a,i]);if(o.useEffect(()=>{if(e&&(a!=null&&a.current)){const g=()=>u();window.addEventListener("scroll",g,!0),window.addEventListener("resize",g);let p;const f=requestAnimationFrame(()=>{u(),p=requestAnimationFrame(()=>{u()})});return()=>{window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g),cancelAnimationFrame(f),p!==void 0&&cancelAnimationFrame(p)}}},[e,a,i,u]),o.useEffect(()=>{const g=p=>{l.current&&!l.current.contains(p.target)&&!p.target.closest(".dropdown-toggle")&&r()};return e&&document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[e,r]),!e)return null;const m=t.jsx("div",{ref:l,className:`fixed z-[999999] rounded-xl border border-gray-200 bg-white shadow-theme-lg dark:border-gray-800 dark:bg-gray-dark ${n}`,style:{top:`${c.top}px`,left:`${c.left}px`},children:s});return Ot.createPortal(m,document.body)},Z=({tag:e="button",to:r,onClick:s,onItemClick:n,baseClassName:a="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900",className:i="",children:l})=>{const c=`${a} ${i}`.trim(),d=u=>{e==="button"&&u.preventDefault(),s&&s(),n&&n()};return e==="a"&&r?t.jsx(F,{to:r,className:c,onClick:d,children:l}):t.jsx("button",{onClick:d,className:c,children:l})};function Hr(){const[e,r]=o.useState(!1),[s,n]=o.useState(!0);function a(){r(!e)}function i(){r(!1)}const l=()=>{a(),n(!1)};return t.jsxs("div",{className:"relative",children:[t.jsxs("button",{className:"relative flex items-center justify-center text-gray-500 transition-colors bg-white border border-gray-200 rounded-full dropdown-toggle hover:text-gray-700 h-11 w-11 hover:bg-gray-100 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white",onClick:l,children:[t.jsx("span",{className:`absolute right-0 top-0.5 z-10 h-2 w-2 rounded-full bg-orange-400 ${s?"flex":"hidden"}`,children:t.jsx("span",{className:"absolute inline-flex w-full h-full bg-orange-400 rounded-full opacity-75 animate-ping"})}),t.jsx("svg",{className:"fill-current",width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.75 2.29248C10.75 1.87827 10.4143 1.54248 10 1.54248C9.58583 1.54248 9.25004 1.87827 9.25004 2.29248V2.83613C6.08266 3.20733 3.62504 5.9004 3.62504 9.16748V14.4591H3.33337C2.91916 14.4591 2.58337 14.7949 2.58337 15.2091C2.58337 15.6234 2.91916 15.9591 3.33337 15.9591H4.37504H15.625H16.6667C17.0809 15.9591 17.4167 15.6234 17.4167 15.2091C17.4167 14.7949 17.0809 14.4591 16.6667 14.4591H16.375V9.16748C16.375 5.9004 13.9174 3.20733 10.75 2.83613V2.29248ZM14.875 14.4591V9.16748C14.875 6.47509 12.6924 4.29248 10 4.29248C7.30765 4.29248 5.12504 6.47509 5.12504 9.16748V14.4591H14.875ZM8.00004 17.7085C8.00004 18.1228 8.33583 18.4585 8.75004 18.4585H11.25C11.6643 18.4585 12 18.1228 12 17.7085C12 17.2943 11.6643 16.9585 11.25 16.9585H8.75004C8.33583 16.9585 8.00004 17.2943 8.00004 17.7085Z",fill:"currentColor"})})]}),t.jsxs(Mt,{isOpen:e,onClose:i,className:"absolute -right-[240px] mt-[17px] flex h-[480px] w-[350px] flex-col rounded-2xl border border-gray-200 bg-white p-3 shadow-theme-lg dark:border-gray-800 dark:bg-gray-dark sm:w-[361px] lg:right-0",children:[t.jsxs("div",{className:"flex items-center justify-between pb-3 mb-3 border-b border-gray-100 dark:border-gray-700",children:[t.jsx("h5",{className:"text-lg font-semibold text-gray-800 dark:text-gray-200",children:"Notification"}),t.jsx("button",{onClick:a,className:"text-gray-500 transition dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",children:t.jsx("svg",{className:"fill-current",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.21967 7.28131C5.92678 6.98841 5.92678 6.51354 6.21967 6.22065C6.51256 5.92775 6.98744 5.92775 7.28033 6.22065L11.999 10.9393L16.7176 6.22078C17.0105 5.92789 17.4854 5.92788 17.7782 6.22078C18.0711 6.51367 18.0711 6.98855 17.7782 7.28144L13.0597 12L17.7782 16.7186C18.0711 17.0115 18.0711 17.4863 17.7782 17.7792C17.4854 18.0721 17.0105 18.0721 16.7176 17.7792L11.999 13.0607L7.28033 17.7794C6.98744 18.0722 6.51256 18.0722 6.21967 17.7794C5.92678 17.4865 5.92678 17.0116 6.21967 16.7187L10.9384 12L6.21967 7.28131Z",fill:"currentColor"})})})]}),t.jsxs("ul",{className:"flex flex-col h-auto overflow-y-auto custom-scrollbar",children:[t.jsx("li",{children:t.jsxs(Z,{onItemClick:i,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[t.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[t.jsx("img",{width:40,height:40,src:"/images/user/user-02.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),t.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),t.jsxs("span",{className:"block",children:[t.jsxs("span",{className:"mb-1.5 block text-theme-sm text-gray-500 dark:text-gray-400 space-x-1",children:[t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Terry Franci"}),t.jsx("span",{children:" requests permission to change"}),t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),t.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[t.jsx("span",{children:"Project"}),t.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),t.jsx("span",{children:"5 min ago"})]})]})]})}),t.jsx("li",{children:t.jsxs(Z,{onItemClick:i,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[t.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[t.jsx("img",{width:40,height:40,src:"/images/user/user-03.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),t.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),t.jsxs("span",{className:"block",children:[t.jsxs("span",{className:"mb-1.5 block space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Alena Franci"}),t.jsx("span",{children:"requests permission to change"}),t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),t.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[t.jsx("span",{children:"Project"}),t.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),t.jsx("span",{children:"8 min ago"})]})]})]})}),t.jsx("li",{children:t.jsxs(Z,{onItemClick:i,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[t.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[t.jsx("img",{width:40,height:40,src:"/images/user/user-04.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),t.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),t.jsxs("span",{className:"block",children:[t.jsxs("span",{className:"mb-1.5 block space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Jocelyn Kenter"}),t.jsx("span",{children:" requests permission to change"}),t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),t.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[t.jsx("span",{children:"Project"}),t.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),t.jsx("span",{children:"15 min ago"})]})]})]})}),t.jsx("li",{children:t.jsxs(Z,{onItemClick:i,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",to:"/",children:[t.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[t.jsx("img",{width:40,height:40,src:"/images/user/user-05.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),t.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-error-500 dark:border-gray-900"})]}),t.jsxs("span",{className:"block",children:[t.jsxs("span",{className:"mb-1.5 space-x-1 block text-theme-sm text-gray-500 dark:text-gray-400",children:[t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Brandon Philips"}),t.jsx("span",{children:"requests permission to change"}),t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),t.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[t.jsx("span",{children:"Project"}),t.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),t.jsx("span",{children:"1 hr ago"})]})]})]})}),t.jsx("li",{children:t.jsxs(Z,{className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",onItemClick:i,children:[t.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[t.jsx("img",{width:40,height:40,src:"/images/user/user-02.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),t.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),t.jsxs("span",{className:"block",children:[t.jsxs("span",{className:"mb-1.5 block space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Terry Franci"}),t.jsx("span",{children:" requests permission to change"}),t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),t.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[t.jsx("span",{children:"Project"}),t.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),t.jsx("span",{children:"5 min ago"})]})]})]})}),t.jsx("li",{children:t.jsxs(Z,{onItemClick:i,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[t.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[t.jsx("img",{width:40,height:40,src:"/images/user/user-03.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),t.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),t.jsxs("span",{className:"block",children:[t.jsxs("span",{className:"mb-1.5 block space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Alena Franci"}),t.jsx("span",{children:" requests permission to change"}),t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),t.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[t.jsx("span",{children:"Project"}),t.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),t.jsx("span",{children:"8 min ago"})]})]})]})}),t.jsx("li",{children:t.jsxs(Z,{onItemClick:i,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[t.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[t.jsx("img",{width:40,height:40,src:"/images/user/user-04.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),t.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),t.jsxs("span",{className:"block",children:[t.jsxs("span",{className:"mb-1.5 block space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Jocelyn Kenter"}),t.jsx("span",{children:" requests permission to change"}),t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),t.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[t.jsx("span",{children:"Project"}),t.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),t.jsx("span",{children:"15 min ago"})]})]})]})}),t.jsx("li",{children:t.jsxs(Z,{onItemClick:i,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[t.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[t.jsx("img",{width:40,height:40,src:"/images/user/user-05.jpg",alt:"User",className:"overflow-hidden rounded-full"}),t.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-error-500 dark:border-gray-900"})]}),t.jsxs("span",{className:"block",children:[t.jsxs("span",{className:"mb-1.5 block space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Brandon Philips"}),t.jsx("span",{children:"requests permission to change"}),t.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),t.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[t.jsx("span",{children:"Project"}),t.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),t.jsx("span",{children:"1 hr ago"})]})]})]})})]}),t.jsx(F,{to:"/",className:"block px-4 py-2 mt-3 text-sm font-medium text-center text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700",children:"View All Notifications"})]})]})}const ft=e=>{let r;const s=new Set,n=(u,m)=>{const g=typeof u=="function"?u(r):u;if(!Object.is(g,r)){const p=r;r=m??(typeof g!="object"||g===null)?g:Object.assign({},r,g),s.forEach(f=>f(r,p))}},a=()=>r,c={setState:n,getState:a,getInitialState:()=>d,subscribe:u=>(s.add(u),()=>s.delete(u))},d=r=e(n,a,c);return c},Dr=e=>e?ft(e):ft,$r=e=>e;function Fr(e,r=$r){const s=D.useSyncExternalStore(e.subscribe,D.useCallback(()=>r(e.getState()),[e,r]),D.useCallback(()=>r(e.getInitialState()),[e,r]));return D.useDebugValue(s),s}const bt=e=>{const r=Dr(e),s=n=>Fr(r,n);return Object.assign(s,r),s},tt=e=>e?bt(e):bt;function Zr(e,r){let s;try{s=e()}catch{return}return{getItem:a=>{var i;const l=d=>d===null?null:JSON.parse(d,void 0),c=(i=s.getItem(a))!=null?i:null;return c instanceof Promise?c.then(l):l(c)},setItem:(a,i)=>s.setItem(a,JSON.stringify(i,void 0)),removeItem:a=>s.removeItem(a)}}const qe=e=>r=>{try{const s=e(r);return s instanceof Promise?s:{then(n){return qe(n)(s)},catch(n){return this}}}catch(s){return{then(n){return this},catch(n){return qe(n)(s)}}}},Br=(e,r)=>(s,n,a)=>{let i={storage:Zr(()=>localStorage),partialize:x=>x,version:0,merge:(x,j)=>({...j,...x}),...r},l=!1;const c=new Set,d=new Set;let u=i.storage;if(!u)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),s(...x)},n,a);const m=()=>{const x=i.partialize({...n()});return u.setItem(i.name,{state:x,version:i.version})},g=a.setState;a.setState=(x,j)=>(g(x,j),m());const p=e((...x)=>(s(...x),m()),n,a);a.getInitialState=()=>p;let f;const k=()=>{var x,j;if(!u)return;l=!1,c.forEach(w=>{var h;return w((h=n())!=null?h:p)});const S=((j=i.onRehydrateStorage)==null?void 0:j.call(i,(x=n())!=null?x:p))||void 0;return qe(u.getItem.bind(u))(i.name).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==i.version){if(i.migrate){const h=i.migrate(w.state,w.version);return h instanceof Promise?h.then(E=>[!0,E]):[!0,h]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,w.state];return[!1,void 0]}).then(w=>{var h;const[E,N]=w;if(f=i.merge(N,(h=n())!=null?h:p),s(f,!0),E)return m()}).then(()=>{S==null||S(f,void 0),f=n(),l=!0,d.forEach(w=>w(f))}).catch(w=>{S==null||S(void 0,w)})};return a.persist={setOptions:x=>{i={...i,...x},x.storage&&(u=x.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>k(),hasHydrated:()=>l,onHydrate:x=>(c.add(x),()=>{c.delete(x)}),onFinishHydration:x=>(d.add(x),()=>{d.delete(x)})},i.skipHydration||k(),f||p},rt=Br,V=tt()(rt((e,r)=>({user:null,token:null,isAuthenticated:!1,loading:!1,login:async(s,n)=>{var a,i;e({loading:!0});try{const c=await fetch("https://api.igny8.com/api/v1/auth/login/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:s,password:n})}),d=await c.json();if(!c.ok||!d.success)throw new Error(d.message||"Login failed");e({user:d.user,token:((a=d.tokens)==null?void 0:a.access)||null,refreshToken:((i=d.tokens)==null?void 0:i.refresh)||null,isAuthenticated:!0,loading:!1})}catch(l){throw e({loading:!1}),new Error(l.message||"Login failed")}finally{r().loading&&e({loading:!1})}},logout:()=>{e({user:null,token:null,refreshToken:null,isAuthenticated:!1,loading:!1})},register:async s=>{var n,a;e({loading:!0});try{const l=await fetch("https://api.igny8.com/api/v1/auth/register/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...s,password_confirm:s.password})}),c=await l.json();if(!l.ok||!c.success){const d=c.message||(c.errors&&typeof c.errors=="object"?JSON.stringify(c.errors):c.errors)||"Registration failed";throw new Error(d)}e({user:c.user,token:((n=c.tokens)==null?void 0:n.access)||null,refreshToken:((a=c.tokens)==null?void 0:a.refresh)||null,isAuthenticated:!0,loading:!1})}catch(i){throw e({loading:!1}),new Error(i.message||"Registration failed")}finally{r().loading&&e({loading:!1})}},setUser:s=>{e({user:s,isAuthenticated:!!s})},setToken:s=>{e({token:s})},refreshToken:async()=>{const s=r();if(!s.refreshToken)throw new Error("No refresh token available");try{const a=await fetch("https://api.igny8.com/api/v1/auth/refresh/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refresh:s.refreshToken})}),i=await a.json();if(!a.ok||!i.success)throw new Error(i.message||"Token refresh failed");e({token:i.access});try{await r().refreshUser()}catch(l){console.warn("Failed to refresh user data during token refresh:",l)}}catch(n){throw e({user:null,token:null,refreshToken:null,isAuthenticated:!1}),new Error(n.message||"Token refresh failed")}},refreshUser:async()=>{const s=r();if(!s.token&&!s.isAuthenticated)throw new Error("Not authenticated");try{const n="https://api.igny8.com/api",a=s.token||getAuthToken(),i=await fetch(`${n}/v1/auth/me/`,{method:"GET",headers:{"Content-Type":"application/json",...a?{Authorization:`Bearer ${a}`}:{}},credentials:"include"}),l=await i.json();if(!i.ok||!l.success)throw new Error(l.message||"Failed to refresh user data");e({user:l.user})}catch(n){throw console.warn("Failed to refresh user data:",n),new Error(n.message||"Failed to refresh user data")}}}),{name:"auth-storage",partialize:e=>({user:e.user,token:e.token,refreshToken:e.refreshToken,isAuthenticated:e.isAuthenticated}),onRehydrateStorage:()=>(e,r)=>{e&&(e.loading=!1),r&&(console.error("Auth store rehydration error:",r),e&&(e.loading=!1))}}));function Ur(){var d;const[e,r]=o.useState(!1),s=Qe(),{user:n,logout:a}=V();function i(){r(!e)}function l(){r(!1)}const c=()=>{a(),s("/signin",{replace:!0}),l()};return t.jsxs("div",{className:"relative",children:[t.jsxs("button",{onClick:i,className:"flex items-center text-gray-700 dropdown-toggle dark:text-gray-400",children:[t.jsx("span",{className:"mr-3 overflow-hidden rounded-full h-11 w-11 bg-brand-500 flex items-center justify-center",children:n!=null&&n.email?t.jsx("span",{className:"text-white font-semibold text-sm",children:n.email.charAt(0).toUpperCase()}):t.jsx("img",{src:"/images/user/owner.jpg",alt:"User"})}),t.jsx("span",{className:"block mr-1 font-medium text-theme-sm",children:(n==null?void 0:n.username)||((d=n==null?void 0:n.email)==null?void 0:d.split("@")[0])||"User"}),t.jsx("svg",{className:`stroke-gray-500 dark:stroke-gray-400 transition-transform duration-200 ${e?"rotate-180":""}`,width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M4.3125 8.65625L9 13.3437L13.6875 8.65625",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),t.jsxs(Mt,{isOpen:e,onClose:l,className:"absolute right-0 mt-[17px] flex w-[260px] flex-col rounded-2xl border border-gray-200 bg-white p-3 shadow-theme-lg dark:border-gray-800 dark:bg-gray-dark",children:[t.jsxs("div",{children:[t.jsx("span",{className:"block font-medium text-gray-700 text-theme-sm dark:text-gray-400",children:(n==null?void 0:n.username)||"User"}),t.jsx("span",{className:"mt-0.5 block text-theme-xs text-gray-500 dark:text-gray-400",children:(n==null?void 0:n.email)||"No email"}),(n==null?void 0:n.role)&&t.jsx("span",{className:"mt-1 inline-block px-2 py-0.5 text-xs font-medium text-brand-600 bg-brand-50 rounded dark:text-brand-400 dark:bg-brand-900/20",children:n.role})]}),t.jsxs("ul",{className:"flex flex-col gap-1 pt-4 pb-3 border-b border-gray-200 dark:border-gray-800",children:[t.jsx("li",{children:t.jsxs(Z,{onItemClick:l,tag:"a",to:"/profile",className:"flex items-center gap-3 px-3 py-2 font-medium text-gray-700 rounded-lg group text-theme-sm hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:[t.jsx("svg",{className:"fill-gray-500 group-hover:fill-gray-700 dark:fill-gray-400 dark:group-hover:fill-gray-300",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 14.1526 4.3002 16.1184 5.61936 17.616C6.17279 15.3096 8.24852 13.5955 10.7246 13.5955H13.2746C15.7509 13.5955 17.8268 15.31 18.38 17.6167C19.6996 16.119 20.5 14.153 20.5 12C20.5 7.30558 16.6944 3.5 12 3.5ZM17.0246 18.8566V18.8455C17.0246 16.7744 15.3457 15.0955 13.2746 15.0955H10.7246C8.65354 15.0955 6.97461 16.7744 6.97461 18.8455V18.856C8.38223 19.8895 10.1198 20.5 12 20.5C13.8798 20.5 15.6171 19.8898 17.0246 18.8566ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM11.9991 7.25C10.8847 7.25 9.98126 8.15342 9.98126 9.26784C9.98126 10.3823 10.8847 11.2857 11.9991 11.2857C13.1135 11.2857 14.0169 10.3823 14.0169 9.26784C14.0169 8.15342 13.1135 7.25 11.9991 7.25ZM8.48126 9.26784C8.48126 7.32499 10.0563 5.75 11.9991 5.75C13.9419 5.75 15.5169 7.32499 15.5169 9.26784C15.5169 11.2107 13.9419 12.7857 11.9991 12.7857C10.0563 12.7857 8.48126 11.2107 8.48126 9.26784Z",fill:""})}),"Edit profile"]})}),t.jsx("li",{children:t.jsxs(Z,{onItemClick:l,tag:"a",to:"/profile",className:"flex items-center gap-3 px-3 py-2 font-medium text-gray-700 rounded-lg group text-theme-sm hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:[t.jsx("svg",{className:"fill-gray-500 group-hover:fill-gray-700 dark:fill-gray-400 dark:group-hover:fill-gray-300",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4858 3.5L13.5182 3.5C13.9233 3.5 14.2518 3.82851 14.2518 4.23377C14.2518 5.9529 16.1129 7.02795 17.602 6.1682C17.9528 5.96567 18.4014 6.08586 18.6039 6.43667L20.1203 9.0631C20.3229 9.41407 20.2027 9.86286 19.8517 10.0655C18.3625 10.9253 18.3625 13.0747 19.8517 13.9345C20.2026 14.1372 20.3229 14.5859 20.1203 14.9369L18.6039 17.5634C18.4013 17.9142 17.9528 18.0344 17.602 17.8318C16.1129 16.9721 14.2518 18.0471 14.2518 19.7663C14.2518 20.1715 13.9233 20.5 13.5182 20.5H10.4858C10.0804 20.5 9.75182 20.1714 9.75182 19.766C9.75182 18.0461 7.88983 16.9717 6.40067 17.8314C6.04945 18.0342 5.60037 17.9139 5.39767 17.5628L3.88167 14.937C3.67903 14.586 3.79928 14.1372 4.15026 13.9346C5.63949 13.0748 5.63946 10.9253 4.15025 10.0655C3.79926 9.86282 3.67901 9.41401 3.88165 9.06303L5.39764 6.43725C5.60034 6.08617 6.04943 5.96581 6.40065 6.16858C7.88982 7.02836 9.75182 5.9539 9.75182 4.23399C9.75182 3.82862 10.0804 3.5 10.4858 3.5ZM13.5182 2L10.4858 2C9.25201 2 8.25182 3.00019 8.25182 4.23399C8.25182 4.79884 7.64013 5.15215 7.15065 4.86955C6.08213 4.25263 4.71559 4.61859 4.0986 5.68725L2.58261 8.31303C1.96575 9.38146 2.33183 10.7477 3.40025 11.3645C3.88948 11.647 3.88947 12.3531 3.40026 12.6355C2.33184 13.2524 1.96578 14.6186 2.58263 15.687L4.09863 18.3128C4.71562 19.3814 6.08215 19.7474 7.15067 19.1305C7.64015 18.8479 8.25182 19.2012 8.25182 19.766C8.25182 20.9998 9.25201 22 10.4858 22H13.5182C14.7519 22 15.7518 20.9998 15.7518 19.7663C15.7518 19.2015 16.3632 18.8487 16.852 19.1309C17.9202 19.7476 19.2862 19.3816 19.9029 18.3134L21.4193 15.6869C22.0361 14.6185 21.6701 13.2523 20.6017 12.6355C20.1125 12.3531 20.1125 11.647 20.6017 11.3645C21.6701 10.7477 22.0362 9.38152 21.4193 8.3131L19.903 5.68667C19.2862 4.61842 17.9202 4.25241 16.852 4.86917C16.3632 5.15138 15.7518 4.79856 15.7518 4.23377C15.7518 3.00024 14.7519 2 13.5182 2ZM9.6659 11.9999C9.6659 10.7103 10.7113 9.66493 12.0009 9.66493C13.2905 9.66493 14.3359 10.7103 14.3359 11.9999C14.3359 13.2895 13.2905 14.3349 12.0009 14.3349C10.7113 14.3349 9.6659 13.2895 9.6659 11.9999ZM12.0009 8.16493C9.88289 8.16493 8.1659 9.88191 8.1659 11.9999C8.1659 14.1179 9.88289 15.8349 12.0009 15.8349C14.1189 15.8349 15.8359 14.1179 15.8359 11.9999C15.8359 9.88191 14.1189 8.16493 12.0009 8.16493Z",fill:""})}),"Account settings"]})}),t.jsx("li",{children:t.jsxs(Z,{onItemClick:l,tag:"a",to:"/profile",className:"flex items-center gap-3 px-3 py-2 font-medium text-gray-700 rounded-lg group text-theme-sm hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:[t.jsx("svg",{className:"fill-gray-500 group-hover:fill-gray-700 dark:fill-gray-400 dark:group-hover:fill-gray-300",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 12C3.5 7.30558 7.30558 3.5 12 3.5C16.6944 3.5 20.5 7.30558 20.5 12C20.5 16.6944 16.6944 20.5 12 20.5C7.30558 20.5 3.5 16.6944 3.5 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM11.0991 7.52507C11.0991 8.02213 11.5021 8.42507 11.9991 8.42507H12.0001C12.4972 8.42507 12.9001 8.02213 12.9001 7.52507C12.9001 7.02802 12.4972 6.62507 12.0001 6.62507H11.9991C11.5021 6.62507 11.0991 7.02802 11.0991 7.52507ZM12.0001 17.3714C11.5859 17.3714 11.2501 17.0356 11.2501 16.6214V10.9449C11.2501 10.5307 11.5859 10.1949 12.0001 10.1949C12.4143 10.1949 12.7501 10.5307 12.7501 10.9449V16.6214C12.7501 17.0356 12.4143 17.3714 12.0001 17.3714Z",fill:""})}),"Support"]})})]}),t.jsxs("button",{onClick:c,className:"flex items-center gap-3 px-3 py-2 mt-3 font-medium text-gray-700 rounded-lg group text-theme-sm hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300 w-full text-left",children:[t.jsx("svg",{className:"fill-gray-500 group-hover:fill-gray-700 dark:group-hover:fill-gray-300",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1007 19.247C14.6865 19.247 14.3507 18.9112 14.3507 18.497L14.3507 14.245H12.8507V18.497C12.8507 19.7396 13.8581 20.747 15.1007 20.747H18.5007C19.7434 20.747 20.7507 19.7396 20.7507 18.497L20.7507 5.49609C20.7507 4.25345 19.7433 3.24609 18.5007 3.24609H15.1007C13.8581 3.24609 12.8507 4.25345 12.8507 5.49609V9.74501L14.3507 9.74501V5.49609C14.3507 5.08188 14.6865 4.74609 15.1007 4.74609L18.5007 4.74609C18.9149 4.74609 19.2507 5.08188 19.2507 5.49609L19.2507 18.497C19.2507 18.9112 18.9149 19.247 18.5007 19.247H15.1007ZM3.25073 11.9984C3.25073 12.2144 3.34204 12.4091 3.48817 12.546L8.09483 17.1556C8.38763 17.4485 8.86251 17.4487 9.15549 17.1559C9.44848 16.8631 9.44863 16.3882 9.15583 16.0952L5.81116 12.7484L16.0007 12.7484C16.4149 12.7484 16.7507 12.4127 16.7507 11.9984C16.7507 11.5842 16.4149 11.2484 16.0007 11.2484L5.81528 11.2484L9.15585 7.90554C9.44864 7.61255 9.44847 7.13767 9.15547 6.84488C8.86248 6.55209 8.3876 6.55226 8.09481 6.84525L3.52309 11.4202C3.35673 11.5577 3.25073 11.7657 3.25073 11.9984Z",fill:""})}),"Sign out"]})]})]})}const zt=o.createContext(void 0),qr=()=>{const e=o.useContext(zt);if(!e)throw new Error("useHeaderMetrics must be used within a HeaderMetricsProvider");return e},Jr=({children:e})=>{const[r,s]=o.useState([]),n=()=>{s([])};return t.jsx(zt.Provider,{value:{metrics:r,setMetrics:s,clearMetrics:n},children:e})},Gr=()=>{const{metrics:e}=qr();return!e||e.length===0?null:t.jsx("div",{className:"igny8-header-metrics hidden lg:flex",children:e.map((r,s)=>t.jsxs(D.Fragment,{children:[t.jsxs("div",{className:"igny8-header-metric",children:[t.jsx("div",{className:`igny8-header-metric-accent ${r.accentColor}`}),t.jsx("span",{className:"igny8-header-metric-label",children:r.label}),t.jsx("span",{className:"igny8-header-metric-value",children:typeof r.value=="number"?r.value.toLocaleString():r.value})]}),s<e.length-1&&t.jsx("div",{className:"igny8-header-metric-separator"})]},s))})};function Kr(){const{user:e}=V(),[r,s]=o.useState(!1),n=(e==null?void 0:e.role)==="admin"||(e==null?void 0:e.role)==="developer";o.useEffect(()=>{if(n){const i=localStorage.getItem("debug_resource_tracking_enabled");s(i==="true")}},[n]);const a=()=>{const i=!r;s(i),localStorage.setItem("debug_resource_tracking_enabled",String(i)),window.dispatchEvent(new CustomEvent("debug-resource-tracking-toggle",{detail:i}))};return n?t.jsx("button",{onClick:a,className:`flex items-center justify-center w-10 h-10 rounded-lg transition-colors ${r?"bg-red-100 text-red-600 dark:bg-red-900/30 dark:text-red-400":"text-gray-500 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800"}`,title:r?"Disable Resource Debug":"Enable Resource Debug",children:"🔍"}):null}const Wr=()=>{const[e,r]=o.useState(!1),{isMobileOpen:s,toggleSidebar:n,toggleMobileSidebar:a}=Te(),i=()=>{window.innerWidth>=1024?n():a()},l=()=>{r(!e)},c=o.useRef(null);return o.useEffect(()=>{const d=u=>{var m;(u.metaKey||u.ctrlKey)&&u.key==="k"&&(u.preventDefault(),(m=c.current)==null||m.focus())};return document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d)}},[]),t.jsx("header",{className:"sticky top-0 flex w-full bg-white border-gray-200 z-99999 dark:border-gray-800 dark:bg-gray-900 lg:border-b",children:t.jsxs("div",{className:"flex flex-col items-center justify-between grow lg:flex-row lg:px-6",children:[t.jsxs("div",{className:"flex items-center justify-between w-full gap-2 px-3 py-3 border-b border-gray-200 dark:border-gray-800 sm:gap-4 lg:justify-normal lg:border-b-0 lg:px-0 lg:py-4",children:[t.jsx("button",{className:"items-center justify-center w-10 h-10 text-gray-500 border-gray-200 rounded-lg z-99999 dark:border-gray-800 lg:flex dark:text-gray-400 lg:h-11 lg:w-11 lg:border",onClick:i,"aria-label":"Toggle Sidebar",children:s?t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.21967 7.28131C5.92678 6.98841 5.92678 6.51354 6.21967 6.22065C6.51256 5.92775 6.98744 5.92775 7.28033 6.22065L11.999 10.9393L16.7176 6.22078C17.0105 5.92789 17.4854 5.92788 17.7782 6.22078C18.0711 6.51367 18.0711 6.98855 17.7782 7.28144L13.0597 12L17.7782 16.7186C18.0711 17.0115 18.0711 17.4863 17.7782 17.7792C17.4854 18.0721 17.0105 18.0721 16.7176 17.7792L11.999 13.0607L7.28033 17.7794C6.98744 18.0722 6.51256 18.0722 6.21967 17.7794C5.92678 17.4865 5.92678 17.0116 6.21967 16.7187L10.9384 12L6.21967 7.28131Z",fill:"currentColor"})}):t.jsx("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.583252 1C0.583252 0.585788 0.919038 0.25 1.33325 0.25H14.6666C15.0808 0.25 15.4166 0.585786 15.4166 1C15.4166 1.41421 15.0808 1.75 14.6666 1.75L1.33325 1.75C0.919038 1.75 0.583252 1.41422 0.583252 1ZM0.583252 11C0.583252 10.5858 0.919038 10.25 1.33325 10.25L14.6666 10.25C15.0808 10.25 15.4166 10.5858 15.4166 11C15.4166 11.4142 15.0808 11.75 14.6666 11.75L1.33325 11.75C0.919038 11.75 0.583252 11.4142 0.583252 11ZM1.33325 5.25C0.919038 5.25 0.583252 5.58579 0.583252 6C0.583252 6.41421 0.919038 6.75 1.33325 6.75L7.99992 6.75C8.41413 6.75 8.74992 6.41421 8.74992 6C8.74992 5.58579 8.41413 5.25 7.99992 5.25L1.33325 5.25Z",fill:"currentColor"})})}),t.jsxs(F,{to:"/",className:"lg:hidden",children:[t.jsx("img",{className:"dark:hidden",src:"./images/logo/logo.svg",alt:"Logo"}),t.jsx("img",{className:"hidden dark:block",src:"./images/logo/logo-dark.svg",alt:"Logo"})]}),t.jsx("button",{onClick:l,className:"flex items-center justify-center w-10 h-10 text-gray-700 rounded-lg z-99999 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 lg:hidden",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99902 10.4951C6.82745 10.4951 7.49902 11.1667 7.49902 11.9951V12.0051C7.49902 12.8335 6.82745 13.5051 5.99902 13.5051C5.1706 13.5051 4.49902 12.8335 4.49902 12.0051V11.9951C4.49902 11.1667 5.1706 10.4951 5.99902 10.4951ZM17.999 10.4951C18.8275 10.4951 19.499 11.1667 19.499 11.9951V12.0051C19.499 12.8335 18.8275 13.5051 17.999 13.5051C17.1706 13.5051 16.499 12.8335 16.499 12.0051V11.9951C16.499 11.1667 17.1706 10.4951 17.999 10.4951ZM13.499 11.9951C13.499 11.1667 12.8275 10.4951 11.999 10.4951C11.1706 10.4951 10.499 11.1667 10.499 11.9951V12.0051C10.499 12.8335 11.1706 13.5051 11.999 13.5051C12.8275 13.5051 13.499 12.8335 13.499 12.0051V11.9951Z",fill:"currentColor"})})}),t.jsx("div",{className:"hidden lg:block",children:t.jsx("form",{children:t.jsxs("div",{className:"relative",children:[t.jsx("span",{className:"absolute -translate-y-1/2 pointer-events-none left-4 top-1/2",children:t.jsx("svg",{className:"fill-gray-500 dark:fill-gray-400",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.04175 9.37363C3.04175 5.87693 5.87711 3.04199 9.37508 3.04199C12.8731 3.04199 15.7084 5.87693 15.7084 9.37363C15.7084 12.8703 12.8731 15.7053 9.37508 15.7053C5.87711 15.7053 3.04175 12.8703 3.04175 9.37363ZM9.37508 1.54199C5.04902 1.54199 1.54175 5.04817 1.54175 9.37363C1.54175 13.6991 5.04902 17.2053 9.37508 17.2053C11.2674 17.2053 13.003 16.5344 14.357 15.4176L17.177 18.238C17.4699 18.5309 17.9448 18.5309 18.2377 18.238C18.5306 17.9451 18.5306 17.4703 18.2377 17.1774L15.418 14.3573C16.5365 13.0033 17.2084 11.2669 17.2084 9.37363C17.2084 5.04817 13.7011 1.54199 9.37508 1.54199Z",fill:""})})}),t.jsx("input",{ref:c,type:"text",placeholder:"Search or type command...",className:"dark:bg-dark-900 h-11 w-full rounded-lg border border-gray-200 bg-transparent py-2.5 pl-12 pr-14 text-sm text-gray-800 shadow-theme-xs placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-800 dark:bg-gray-900 dark:bg-white/[0.03] dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800 xl:w-[430px]"}),t.jsxs("button",{className:"absolute right-2.5 top-1/2 inline-flex -translate-y-1/2 items-center gap-0.5 rounded-lg border border-gray-200 bg-gray-50 px-[7px] py-[4.5px] text-xs -tracking-[0.2px] text-gray-500 dark:border-gray-800 dark:bg-white/[0.03] dark:text-gray-400",children:[t.jsx("span",{children:" ⌘ "}),t.jsx("span",{children:" K "})]})]})})})]}),t.jsxs("div",{className:`${e?"flex":"hidden"} items-center justify-between w-full gap-4 px-5 py-4 lg:flex shadow-theme-md lg:justify-end lg:px-0 lg:shadow-none`,children:[t.jsxs("div",{className:"flex items-center gap-2 2xsm:gap-3",children:[t.jsx(Gr,{}),t.jsx(Vr,{}),t.jsx(Kr,{}),t.jsx(Hr,{})]}),t.jsx(Ur,{})]})]})})},Yr=()=>{const{isMobileOpen:e,toggleMobileSidebar:r}=Te();return e?t.jsx("div",{className:"fixed inset-0 z-40 bg-gray-900/50 lg:hidden",onClick:r}):null},yt=e=>o.createElement("svg",{className:"size-6",width:"1em",height:"1em",viewBox:"0 0 24 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.814 4.75L4.78516 16.0352H11.1859L11.1859 23.25L19.2148 11.9648L12.814 11.9648V4.75Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Xr=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 3.25C4.25736 3.25 3.25 4.25736 3.25 5.5V8.99998C3.25 10.2426 4.25736 11.25 5.5 11.25H9C10.2426 11.25 11.25 10.2426 11.25 8.99998V5.5C11.25 4.25736 10.2426 3.25 9 3.25H5.5ZM4.75 5.5C4.75 5.08579 5.08579 4.75 5.5 4.75H9C9.41421 4.75 9.75 5.08579 9.75 5.5V8.99998C9.75 9.41419 9.41421 9.74998 9 9.74998H5.5C5.08579 9.74998 4.75 9.41419 4.75 8.99998V5.5ZM5.5 12.75C4.25736 12.75 3.25 13.7574 3.25 15V18.5C3.25 19.7426 4.25736 20.75 5.5 20.75H9C10.2426 20.75 11.25 19.7427 11.25 18.5V15C11.25 13.7574 10.2426 12.75 9 12.75H5.5ZM4.75 15C4.75 14.5858 5.08579 14.25 5.5 14.25H9C9.41421 14.25 9.75 14.5858 9.75 15V18.5C9.75 18.9142 9.41421 19.25 9 19.25H5.5C5.08579 19.25 4.75 18.9142 4.75 18.5V15ZM12.75 5.5C12.75 4.25736 13.7574 3.25 15 3.25H18.5C19.7426 3.25 20.75 4.25736 20.75 5.5V8.99998C20.75 10.2426 19.7426 11.25 18.5 11.25H15C13.7574 11.25 12.75 10.2426 12.75 8.99998V5.5ZM15 4.75C14.5858 4.75 14.25 5.08579 14.25 5.5V8.99998C14.25 9.41419 14.5858 9.74998 15 9.74998H18.5C18.9142 9.74998 19.25 9.41419 19.25 8.99998V5.5C19.25 5.08579 18.9142 4.75 18.5 4.75H15ZM15 12.75C13.7574 12.75 12.75 13.7574 12.75 15V18.5C12.75 19.7426 13.7574 20.75 15 20.75H18.5C19.7426 20.75 20.75 19.7427 20.75 18.5V15C20.75 13.7574 19.7426 12.75 18.5 12.75H15ZM14.25 15C14.25 14.5858 14.5858 14.25 15 14.25H18.5C18.9142 14.25 19.25 14.5858 19.25 15V18.5C19.25 18.9142 18.9142 19.25 18.5 19.25H15C14.5858 19.25 14.25 18.9142 14.25 18.5V15Z",fill:"currentColor"})),Qr=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4164 2.79175C13.4164 2.37753 13.0806 2.04175 12.6664 2.04175C12.2522 2.04175 11.9164 2.37753 11.9164 2.79175V4.39876C9.94768 4.67329 8.43237 6.36366 8.43237 8.40795C8.43237 10.0954 9.47908 11.6058 11.0591 12.1984L13.7474 13.2066C14.7419 13.5795 15.4008 14.5303 15.4008 15.5925C15.4008 16.9998 14.2599 18.1407 12.8526 18.1407H11.7957C10.7666 18.1407 9.93237 17.3064 9.93237 16.2773C9.93237 15.8631 9.59659 15.5273 9.18237 15.5273C8.76816 15.5273 8.43237 15.8631 8.43237 16.2773C8.43237 18.1348 9.9382 19.6407 11.7957 19.6407H11.9164V21.2083C11.9164 21.6225 12.2522 21.9583 12.6664 21.9583C13.0806 21.9583 13.4164 21.6225 13.4164 21.2083V19.6017C15.3853 19.3274 16.9008 17.6369 16.9008 15.5925C16.9008 13.905 15.8541 12.3946 14.2741 11.8021L11.5858 10.7939C10.5912 10.4209 9.93237 9.47013 9.93237 8.40795C9.93237 7.00063 11.0732 5.85976 12.4806 5.85976H13.5374C14.5665 5.85976 15.4008 6.69401 15.4008 7.72311C15.4008 8.13732 15.7366 8.47311 16.1508 8.47311C16.565 8.47311 16.9008 8.13732 16.9008 7.72311C16.9008 5.86558 15.395 4.35976 13.5374 4.35976H13.4164V2.79175Z",fill:"currentColor"})),es=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M4.79175 7.396L10.0001 12.6043L15.2084 7.396",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Vt=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0002 13.8619C7.23361 13.8619 4.86803 12.1372 3.92328 9.70241C4.86804 7.26761 7.23361 5.54297 10.0002 5.54297C12.7667 5.54297 15.1323 7.26762 16.0771 9.70243C15.1323 12.1372 12.7667 13.8619 10.0002 13.8619ZM10.0002 4.04297C6.48191 4.04297 3.49489 6.30917 2.4155 9.4593C2.3615 9.61687 2.3615 9.78794 2.41549 9.94552C3.49488 13.0957 6.48191 15.3619 10.0002 15.3619C13.5184 15.3619 16.5055 13.0957 17.5849 9.94555C17.6389 9.78797 17.6389 9.6169 17.5849 9.45932C16.5055 6.30919 13.5184 4.04297 10.0002 4.04297ZM9.99151 7.84413C8.96527 7.84413 8.13333 8.67606 8.13333 9.70231C8.13333 10.7286 8.96527 11.5605 9.99151 11.5605H10.0064C11.0326 11.5605 11.8646 10.7286 11.8646 9.70231C11.8646 8.67606 11.0326 7.84413 10.0064 7.84413H9.99151Z"})),Ht=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.63803 3.57709C4.34513 3.2842 3.87026 3.2842 3.57737 3.57709C3.28447 3.86999 3.28447 4.34486 3.57737 4.63775L4.85323 5.91362C3.74609 6.84199 2.89363 8.06395 2.4155 9.45936C2.3615 9.61694 2.3615 9.78801 2.41549 9.94558C3.49488 13.0957 6.48191 15.3619 10.0002 15.3619C11.255 15.3619 12.4422 15.0737 13.4994 14.5598L15.3625 16.4229C15.6554 16.7158 16.1302 16.7158 16.4231 16.4229C16.716 16.13 16.716 15.6551 16.4231 15.3622L4.63803 3.57709ZM12.3608 13.4212L10.4475 11.5079C10.3061 11.5423 10.1584 11.5606 10.0064 11.5606H9.99151C8.96527 11.5606 8.13333 10.7286 8.13333 9.70237C8.13333 9.5461 8.15262 9.39434 8.18895 9.24933L5.91885 6.97923C5.03505 7.69015 4.34057 8.62704 3.92328 9.70247C4.86803 12.1373 7.23361 13.8619 10.0002 13.8619C10.8326 13.8619 11.6287 13.7058 12.3608 13.4212ZM16.0771 9.70249C15.7843 10.4569 15.3552 11.1432 14.8199 11.7311L15.8813 12.7925C16.6329 11.9813 17.2187 11.0143 17.5849 9.94561C17.6389 9.78803 17.6389 9.61696 17.5849 9.45938C16.5055 6.30925 13.5184 4.04303 10.0002 4.04303C9.13525 4.04303 8.30244 4.17999 7.52218 4.43338L8.75139 5.66259C9.1556 5.58413 9.57311 5.54303 10.0002 5.54303C12.7667 5.54303 15.1323 7.26768 16.0771 9.70249Z"})),ts=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.04175 9.99984C3.04175 6.15686 6.1571 3.0415 10.0001 3.0415C13.8431 3.0415 16.9584 6.15686 16.9584 9.99984C16.9584 13.8428 13.8431 16.9582 10.0001 16.9582C6.1571 16.9582 3.04175 13.8428 3.04175 9.99984ZM10.0001 1.5415C5.32867 1.5415 1.54175 5.32843 1.54175 9.99984C1.54175 14.6712 5.32867 18.4582 10.0001 18.4582C14.6715 18.4582 18.4584 14.6712 18.4584 9.99984C18.4584 5.32843 14.6715 1.5415 10.0001 1.5415ZM9.99998 10.7498C9.58577 10.7498 9.24998 10.4141 9.24998 9.99984V5.4165C9.24998 5.00229 9.58577 4.6665 9.99998 4.6665C10.4142 4.6665 10.75 5.00229 10.75 5.4165V9.24984H13.3334C13.7476 9.24984 14.0834 9.58562 14.0834 9.99984C14.0834 10.4141 13.7476 10.7498 13.3334 10.7498H10.0001H9.99998Z",fill:"currentColor"})),rs=e=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",...e},o.createElement("path",{d:"M12.7083 5L7.5 10.2083L12.7083 15.4167",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ss=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.75586 5.50098C7.75586 5.08676 8.09165 4.75098 8.50586 4.75098H18.4985C18.9127 4.75098 19.2485 5.08676 19.2485 5.50098L19.2485 15.4956C19.2485 15.9098 18.9127 16.2456 18.4985 16.2456H8.50586C8.09165 16.2456 7.75586 15.9098 7.75586 15.4956V5.50098ZM8.50586 3.25098C7.26322 3.25098 6.25586 4.25834 6.25586 5.50098V6.26318H5.50195C4.25931 6.26318 3.25195 7.27054 3.25195 8.51318V18.4995C3.25195 19.7422 4.25931 20.7495 5.50195 20.7495H15.4883C16.7309 20.7495 17.7383 19.7421 17.7383 18.4995L17.7383 17.7456H18.4985C19.7411 17.7456 20.7485 16.7382 20.7485 15.4956L20.7485 5.50097C20.7485 4.25833 19.7411 3.25098 18.4985 3.25098H8.50586ZM16.2383 17.7456H8.50586C7.26322 17.7456 6.25586 16.7382 6.25586 15.4956V7.76318H5.50195C5.08774 7.76318 4.75195 8.09897 4.75195 8.51318V18.4995C4.75195 18.9137 5.08774 19.2495 5.50195 19.2495H15.4883C15.9025 19.2495 16.2383 18.9137 16.2383 18.4995L16.2383 17.7456Z",fill:"currentColor"})),ns=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 3.25C4.25736 3.25 3.25 4.25736 3.25 5.5V18.5C3.25 19.7426 4.25736 20.75 5.5 20.75H18.5001C19.7427 20.75 20.7501 19.7426 20.7501 18.5V5.5C20.7501 4.25736 19.7427 3.25 18.5001 3.25H5.5ZM4.75 5.5C4.75 5.08579 5.08579 4.75 5.5 4.75H18.5001C18.9143 4.75 19.2501 5.08579 19.2501 5.5V18.5C19.2501 18.9142 18.9143 19.25 18.5001 19.25H5.5C5.08579 19.25 4.75 18.9142 4.75 18.5V5.5ZM6.25005 9.7143C6.25005 9.30008 6.58583 8.9643 7.00005 8.9643L17 8.96429C17.4143 8.96429 17.75 9.30008 17.75 9.71429C17.75 10.1285 17.4143 10.4643 17 10.4643L7.00005 10.4643C6.58583 10.4643 6.25005 10.1285 6.25005 9.7143ZM6.25005 14.2857C6.25005 13.8715 6.58583 13.5357 7.00005 13.5357H17C17.4143 13.5357 17.75 13.8715 17.75 14.2857C17.75 14.6999 17.4143 15.0357 17 15.0357H7.00005C6.58583 15.0357 6.25005 14.6999 6.25005 14.2857Z",fill:"currentColor"})),as=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.50391 4.25C8.50391 3.83579 8.83969 3.5 9.25391 3.5H15.2777C15.4766 3.5 15.6674 3.57902 15.8081 3.71967L18.2807 6.19234C18.4214 6.333 18.5004 6.52376 18.5004 6.72268V16.75C18.5004 17.1642 18.1646 17.5 17.7504 17.5H16.248V17.4993H14.748V17.5H9.25391C8.83969 17.5 8.50391 17.1642 8.50391 16.75V4.25ZM14.748 19H9.25391C8.01126 19 7.00391 17.9926 7.00391 16.75V6.49854H6.24805C5.83383 6.49854 5.49805 6.83432 5.49805 7.24854V19.75C5.49805 20.1642 5.83383 20.5 6.24805 20.5H13.998C14.4123 20.5 14.748 20.1642 14.748 19.75L14.748 19ZM7.00391 4.99854V4.25C7.00391 3.00736 8.01127 2 9.25391 2H15.2777C15.8745 2 16.4468 2.23705 16.8687 2.659L19.3414 5.13168C19.7634 5.55364 20.0004 6.12594 20.0004 6.72268V16.75C20.0004 17.9926 18.9931 19 17.7504 19H16.248L16.248 19.75C16.248 20.9926 15.2407 22 13.998 22H6.24805C5.00541 22 3.99805 20.9926 3.99805 19.75V7.24854C3.99805 6.00589 5.00541 4.99854 6.24805 4.99854H7.00391Z",fill:"currentColor"})),os=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C11.5858 2 11.25 2.33579 11.25 2.75V12C11.25 12.4142 11.5858 12.75 12 12.75H21.25C21.6642 12.75 22 12.4142 22 12C22 6.47715 17.5228 2 12 2ZM12.75 11.25V3.53263C13.2645 3.57761 13.7659 3.66843 14.25 3.80098V3.80099C15.6929 4.19606 16.9827 4.96184 18.0104 5.98959C19.0382 7.01734 19.8039 8.30707 20.199 9.75C20.3316 10.2341 20.4224 10.7355 20.4674 11.25H12.75ZM2 12C2 7.25083 5.31065 3.27489 9.75 2.25415V3.80099C6.14748 4.78734 3.5 8.0845 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5C15.9155 20.5 19.2127 17.8525 20.199 14.25H21.7459C20.7251 18.6894 16.7492 22 12 22C6.47715 22 2 17.5229 2 12Z",fill:"currentColor"})),_e=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2.75C14 2.33579 14.3358 2 14.75 2C15.1642 2 15.5 2.33579 15.5 2.75V5.73291L17.75 5.73291H19C19.4142 5.73291 19.75 6.0687 19.75 6.48291C19.75 6.89712 19.4142 7.23291 19 7.23291H18.5L18.5 12.2329C18.5 15.5691 15.9866 18.3183 12.75 18.6901V21.25C12.75 21.6642 12.4142 22 12 22C11.5858 22 11.25 21.6642 11.25 21.25V18.6901C8.01342 18.3183 5.5 15.5691 5.5 12.2329L5.5 7.23291H5C4.58579 7.23291 4.25 6.89712 4.25 6.48291C4.25 6.0687 4.58579 5.73291 5 5.73291L6.25 5.73291L8.5 5.73291L8.5 2.75C8.5 2.33579 8.83579 2 9.25 2C9.66421 2 10 2.33579 10 2.75L10 5.73291L14 5.73291V2.75ZM7 7.23291L7 12.2329C7 14.9943 9.23858 17.2329 12 17.2329C14.7614 17.2329 17 14.9943 17 12.2329L17 7.23291L7 7.23291Z",fill:"currentColor"})),He=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 19.75C19.5 20.9926 18.4926 22 17.25 22H6.75C5.50736 22 4.5 20.9926 4.5 19.75V9.62105C4.5 9.02455 4.73686 8.45247 5.15851 8.03055L10.5262 2.65951C10.9482 2.23725 11.5207 2 12.1177 2H17.25C18.4926 2 19.5 3.00736 19.5 4.25V19.75ZM17.25 20.5C17.6642 20.5 18 20.1642 18 19.75V4.25C18 3.83579 17.6642 3.5 17.25 3.5H12.248L12.2509 7.49913C12.2518 8.7424 11.2442 9.75073 10.0009 9.75073H6V19.75C6 20.1642 6.33579 20.5 6.75 20.5H17.25ZM7.05913 8.25073L10.7488 4.55876L10.7509 7.5002C10.7512 7.91462 10.4153 8.25073 10.0009 8.25073H7.05913ZM8.25 14.5C8.25 14.0858 8.58579 13.75 9 13.75H15C15.4142 13.75 15.75 14.0858 15.75 14.5C15.75 14.9142 15.4142 15.25 15 15.25H9C8.58579 15.25 8.25 14.9142 8.25 14.5ZM8.25 17.5C8.25 17.0858 8.58579 16.75 9 16.75H12C12.4142 16.75 12.75 17.0858 12.75 17.5C12.75 17.9142 12.4142 18.25 12 18.25H9C8.58579 18.25 8.25 17.9142 8.25 17.5Z",fill:"currentColor"})),is=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99915 10.2451C6.96564 10.2451 7.74915 11.0286 7.74915 11.9951V12.0051C7.74915 12.9716 6.96564 13.7551 5.99915 13.7551C5.03265 13.7551 4.24915 12.9716 4.24915 12.0051V11.9951C4.24915 11.0286 5.03265 10.2451 5.99915 10.2451ZM17.9991 10.2451C18.9656 10.2451 19.7491 11.0286 19.7491 11.9951V12.0051C19.7491 12.9716 18.9656 13.7551 17.9991 13.7551C17.0326 13.7551 16.2491 12.9716 16.2491 12.0051V11.9951C16.2491 11.0286 17.0326 10.2451 17.9991 10.2451ZM13.7491 11.9951C13.7491 11.0286 12.9656 10.2451 11.9991 10.2451C11.0326 10.2451 10.2491 11.0286 10.2491 11.9951V12.0051C10.2491 12.9716 11.0326 13.7551 11.9991 13.7551C12.9656 13.7551 13.7491 12.9716 13.7491 12.0051V11.9951Z",fill:"currentColor"}));function ls(){return t.jsx("div",{className:`
|
||
mx-auto mb-10 w-full max-w-60 rounded-2xl bg-blue-50 px-4 py-5 text-center dark:bg-blue-900/20`,children:t.jsxs("ul",{className:"space-y-1 text-sm text-gray-700 dark:text-gray-300",children:[t.jsx("li",{children:"Infinite."}),t.jsx("li",{children:"Writing."}),t.jsx("li",{children:"Refreshing."}),t.jsx("li",{children:"Ranking."})]})})}const cs="1.0.0",ds=()=>{var w;const{isExpanded:e,isMobileOpen:r,isHovered:s,setIsHovered:n}=Te(),a=Ne(),{user:i}=V(),l=((w=i==null?void 0:i.account)==null?void 0:w.slug)==="aws-admin"||(i==null?void 0:i.role)==="developer",[c,d]=o.useState(null),[u,m]=o.useState({}),g=o.useRef({}),p=o.useCallback(h=>a.pathname===h,[a.pathname]),f=o.useMemo(()=>[{label:"OVERVIEW",items:[{icon:t.jsx(Xr,{}),name:"Dashboard",path:"/"},{icon:t.jsx(He,{}),name:"Industry / Sectors",path:"/reference/industries"}]},{label:"WORKFLOWS",items:[{icon:t.jsx(_e,{}),name:"Setup",subItems:[{name:"Sites",path:"/settings/sites"},{name:"Keywords Opportunities",path:"/planner/keyword-opportunities"}]},{icon:t.jsx(ns,{}),name:"Planner",subItems:[{name:"Dashboard",path:"/planner"},{name:"Keywords",path:"/planner/keywords"},{name:"Clusters",path:"/planner/clusters"},{name:"Ideas",path:"/planner/ideas"}]},{icon:t.jsx(ss,{}),name:"Writer",subItems:[{name:"Dashboard",path:"/writer"},{name:"Tasks",path:"/writer/tasks"},{name:"Content",path:"/writer/content"},{name:"Images",path:"/writer/images"},{name:"Published",path:"/writer/published"}]},{icon:t.jsx(yt,{}),name:"Thinker",subItems:[{name:"Dashboard",path:"/thinker"},{name:"Prompts",path:"/thinker/prompts"},{name:"Author Profiles",path:"/thinker/author-profiles"},{name:"Strategies",path:"/thinker/strategies"},{name:"Image Testing",path:"/thinker/image-testing"}]},{icon:t.jsx(ts,{}),name:"Schedules",path:"/schedules"}]},{label:"ACCOUNT & SETTINGS",items:[{icon:t.jsx(_e,{}),name:"Settings",subItems:[{name:"General",path:"/settings"},{name:"Plans",path:"/settings/plans"},{name:"Integration",path:"/settings/integration"},{name:"Import / Export",path:"/settings/import-export"}]},{icon:t.jsx(Qr,{}),name:"Billing",subItems:[{name:"Credits",path:"/billing/credits"},{name:"Transactions",path:"/billing/transactions"},{name:"Usage",path:"/billing/usage"}]}]},{label:"HELP",items:[{icon:t.jsx(He,{}),name:"Help & Documentation",path:"/help"}]}],[]),k=o.useMemo(()=>({label:"ADMIN",items:[{icon:t.jsx(_e,{}),name:"User Management",subItems:[{name:"Users",path:"/settings/users"},{name:"Subscriptions",path:"/settings/subscriptions"}]},{icon:t.jsx(_e,{}),name:"Configuration",subItems:[{name:"System Settings",path:"/settings/system"},{name:"Account Settings",path:"/settings/account"},{name:"Module Settings",path:"/settings/modules"}]},{icon:t.jsx(yt,{}),name:"AI Controls",subItems:[{name:"AI Settings",path:"/settings/ai"}]},{icon:t.jsx(os,{}),name:"System Health",subItems:[{name:"Status",path:"/settings/status"}]},{icon:t.jsx(He,{}),name:"Testing Tools",subItems:[{name:"Function Testing",path:"/help/function-testing"},{name:"System Testing",path:"/help/system-testing"}]},{icon:t.jsx(as,{}),name:"UI Elements",subItems:[{name:"Alerts",path:"/ui-elements/alerts"},{name:"Avatar",path:"/ui-elements/avatars"},{name:"Badge",path:"/ui-elements/badges"},{name:"Breadcrumb",path:"/ui-elements/breadcrumb"},{name:"Buttons",path:"/ui-elements/buttons"},{name:"Buttons Group",path:"/ui-elements/buttons-group"},{name:"Cards",path:"/ui-elements/cards"},{name:"Carousel",path:"/ui-elements/carousel"},{name:"Dropdowns",path:"/ui-elements/dropdowns"},{name:"Images",path:"/ui-elements/images"},{name:"Links",path:"/ui-elements/links"},{name:"List",path:"/ui-elements/list"},{name:"Modals",path:"/ui-elements/modals"},{name:"Notification",path:"/ui-elements/notifications"},{name:"Pagination",path:"/ui-elements/pagination"},{name:"Popovers",path:"/ui-elements/popovers"},{name:"Pricing Table",path:"/ui-elements/pricing-table"},{name:"Progressbar",path:"/ui-elements/progressbar"},{name:"Ribbons",path:"/ui-elements/ribbons"},{name:"Spinners",path:"/ui-elements/spinners"},{name:"Tabs",path:"/ui-elements/tabs"},{name:"Tooltips",path:"/ui-elements/tooltips"},{name:"Videos",path:"/ui-elements/videos"},{name:"Components",path:"/components"}]}]}),[]),x=o.useMemo(()=>l?[...f,k]:f,[l,f,k]);o.useEffect(()=>{const h=a.pathname;let E=!1;x.forEach((N,T)=>{N.items.forEach((L,P)=>{L.subItems&&!E&&L.subItems.some(G=>!!(h===G.path||G.path!=="/"&&h.startsWith(G.path+"/")))&&(d({sectionIndex:T,itemIndex:P}),E=!0)})})},[a.pathname,x]),o.useEffect(()=>{if(c!==null){const h=`${c.sectionIndex}-${c.itemIndex}`,E=requestAnimationFrame(()=>{setTimeout(()=>{const N=g.current[h];if(N){const T=N.scrollHeight;T>0&&m(L=>({...L,[h]:T}))}},50)});return()=>cancelAnimationFrame(E)}},[c]);const j=(h,E)=>{d(N=>N&&N.sectionIndex===h&&N.itemIndex===E?null:{sectionIndex:h,itemIndex:E})},S=(h,E)=>t.jsx("ul",{className:"flex flex-col gap-2",children:h.map((N,T)=>t.jsxs("li",{children:[N.subItems?t.jsxs("button",{onClick:()=>j(E,T),className:`menu-item group ${(c==null?void 0:c.sectionIndex)===E&&(c==null?void 0:c.itemIndex)===T||N.subItems&&N.subItems.some(L=>p(L.path))?"menu-item-active":"menu-item-inactive"} cursor-pointer ${!e&&!s?"lg:justify-center":"lg:justify-start"}`,children:[t.jsx("span",{className:`menu-item-icon-size ${(c==null?void 0:c.sectionIndex)===E&&(c==null?void 0:c.itemIndex)===T||N.subItems&&N.subItems.some(L=>p(L.path))?"menu-item-icon-active":"menu-item-icon-inactive"}`,children:N.icon}),(e||s||r)&&t.jsx("span",{className:"menu-item-text",children:N.name}),(e||s||r)&&t.jsx(es,{className:`ml-auto w-5 h-5 transition-transform duration-200 ${(c==null?void 0:c.sectionIndex)===E&&(c==null?void 0:c.itemIndex)===T?"rotate-180 text-brand-500":""}`})]}):N.path&&t.jsxs(F,{to:N.path,className:`menu-item group ${p(N.path)?"menu-item-active":"menu-item-inactive"}`,children:[t.jsx("span",{className:`menu-item-icon-size ${p(N.path)?"menu-item-icon-active":"menu-item-icon-inactive"}`,children:N.icon}),(e||s||r)&&t.jsx("span",{className:"menu-item-text",children:N.name})]}),N.subItems&&(e||s||r)&&t.jsx("div",{ref:L=>{g.current[`${E}-${T}`]=L},className:"overflow-hidden transition-all duration-300",style:{height:(c==null?void 0:c.sectionIndex)===E&&(c==null?void 0:c.itemIndex)===T?`${u[`${E}-${T}`]}px`:"0px"},children:t.jsx("ul",{className:"mt-2 flex flex-col gap-1 ml-9",children:N.subItems.map(L=>t.jsx("li",{children:t.jsxs(F,{to:L.path,className:`menu-dropdown-item ${p(L.path)?"menu-dropdown-item-active":"menu-dropdown-item-inactive"}`,children:[L.name,t.jsxs("span",{className:"flex items-center gap-1 ml-auto",children:[L.new&&t.jsx("span",{className:`ml-auto ${p(L.path)?"menu-dropdown-badge-active":"menu-dropdown-badge-inactive"} menu-dropdown-badge`,children:"new"}),L.pro&&t.jsx("span",{className:`ml-auto ${p(L.path)?"menu-dropdown-badge-active":"menu-dropdown-badge-inactive"} menu-dropdown-badge`,children:"pro"})]})]})},L.name))})})]},N.name))});return t.jsxs("aside",{className:`fixed mt-16 flex flex-col lg:mt-0 top-0 px-5 left-0 bg-white dark:bg-gray-900 dark:border-gray-800 text-gray-900 h-screen transition-all duration-300 ease-in-out z-50 border-r border-gray-200
|
||
${e||r||s?"w-[290px]":"w-[90px]"}
|
||
${r?"translate-x-0":"-translate-x-full"}
|
||
lg:translate-x-0`,onMouseEnter:()=>!e&&n(!0),onMouseLeave:()=>n(!1),children:[t.jsxs("div",{className:"py-8 flex flex-col justify-center items-center gap-3",children:[t.jsx(F,{to:"/",className:"flex justify-center items-center",children:e||s||r?t.jsxs(t.Fragment,{children:[t.jsx("img",{className:"dark:hidden",src:"/images/logo/logo.svg",alt:"Logo",width:113,height:30}),t.jsx("img",{className:"hidden dark:block",src:"/images/logo/logo-dark.svg",alt:"Logo",width:113,height:30})]}):t.jsx("img",{src:"/images/logo/logo-icon.svg",alt:"Logo",width:24,height:24})}),(e||s||r)&&t.jsx("div",{className:"flex justify-center items-center",children:t.jsxs("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-900 dark:bg-gray-700 text-gray-100 dark:text-gray-300",children:["v",cs]})})]}),t.jsxs("div",{className:"flex flex-col overflow-y-auto duration-300 ease-linear no-scrollbar",children:[t.jsx("nav",{className:"mb-6",children:t.jsx("div",{className:"flex flex-col gap-2",children:x.map((h,E)=>t.jsxs("div",{children:[t.jsx("h2",{className:`mb-4 text-xs uppercase flex leading-[20px] text-gray-400 ${!e&&!s?"lg:justify-center":"justify-start"}`,children:e||s||r?h.label:t.jsx(is,{className:"size-6"})}),S(h.items,E)]},h.label))})}),e||s||r?t.jsx(ls,{}):null]})]})};function us(){const e=window.location.origin;return e.includes("localhost")||e.includes("127.0.0.1")||/^\d+\.\d+\.\d+\.\d+/.test(e)?e.includes(":3000")?e.replace(":3000",":8011")+"/api":e.includes(":7921")?e.replace(":7921",":7911")+"/api":e.split(":")[0]+":8011/api":"https://api.igny8.com/api"}const X=us();function ue(){var e;try{const r=localStorage.getItem("site-storage");if(r){const s=JSON.parse(r),n=(e=s==null?void 0:s.state)==null?void 0:e.activeSite;if(n&&n.id)return n.id}return null}catch(r){return console.warn("Failed to get active site ID from storage:",r),null}}function me(){var e;try{const r=localStorage.getItem("sector-storage");if(r){const s=JSON.parse(r),n=(e=s==null?void 0:s.state)==null?void 0:e.activeSector;if(n&&n.id)return n.id}return null}catch(r){return console.warn("Failed to get active sector ID from storage:",r),null}}const ms=()=>{var e;try{const r=localStorage.getItem("auth-storage");if(r){const s=JSON.parse(r);return((e=s==null?void 0:s.state)==null?void 0:e.token)||null}}catch{}return null},hs=()=>{var e;try{const r=localStorage.getItem("auth-storage");if(r){const s=JSON.parse(r);return((e=s==null?void 0:s.state)==null?void 0:e.refreshToken)||null}}catch{}return null};async function _(e,r){var i,l,c,d,u,m;const s=(r==null?void 0:r.timeout)||3e4,n=new AbortController,a=setTimeout(()=>n.abort(),s);try{const g=ms(),p={"Content-Type":"application/json",...r==null?void 0:r.headers};g&&(p.Authorization=`Bearer ${g}`);const f=await fetch(`${X}${e}`,{headers:p,credentials:"include",signal:n.signal,...r});clearTimeout(a);const k=f.headers.get("content-type")||"",x=f.headers.get("content-length"),j=await f.text();if(f.status===401){const S=hs();if(S)try{const w=await fetch(`${X}/v1/auth/refresh/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refresh:S}),credentials:"include"});if(w.ok){const h=await w.json();if(h.success&&h.access){try{const L=localStorage.getItem("auth-storage");if(L){const P=JSON.parse(L);P.state.token=h.access,localStorage.setItem("auth-storage",JSON.stringify(P))}}catch{}const E={...p,Authorization:`Bearer ${h.access}`},N=await fetch(`${X}${e}`,{headers:E,credentials:"include",...r}),T=await N.text();if(N.ok){if(T&&T.trim())try{return JSON.parse(T)}catch{return T}return null}}}}catch{}}if(!f.ok){let S=f.statusText,w="HTTP_ERROR",h=null;try{if(k.includes("application/json"))try{if(h=JSON.parse(j),S=h.error||h.message||h.detail||S,h.success===!1&&h.error)return h;(i=h.error)!=null&&i.includes("OperationalError")?w="DATABASE_ERROR":(l=h.error)!=null&&l.includes("ValidationError")?w="VALIDATION_ERROR":(c=h.error)!=null&&c.includes("PermissionDenied")?w="PERMISSION_ERROR":(d=h.error)!=null&&d.includes("NotFound")?w="NOT_FOUND_ERROR":(u=h.error)!=null&&u.includes("IntegrityError")?w="DATABASE_ERROR":(m=h.error)!=null&&m.includes("RelatedObjectDoesNotExist")&&(w="RELATED_OBJECT_ERROR")}catch{S=j.substring(0,200)}else if(j.includes("<!DOCTYPE html>")){const N=j.match(/<title>([^<]+) at ([^<]+)<\/title>/);if(N)w=N[1].trim(),S=`${w} at ${N[2].trim()}`;else{const T=j.match(/<h1[^>]*>([^<]+)<\/h1>/);T?(S=T[1].trim(),w=S.split(" ")[0]):S=`HTTP ${f.status} Error`}}else S=j.substring(0,200)}catch{S=f.statusText}console.error("API Error:",{status:f.status,type:w,message:S,endpoint:e,errorData:h});const E=new Error(`API Error (${f.status}): ${w} - ${S}`);throw E.response=h,E.status=f.status,E}if(f.status===204||x==="0"||!j||j.trim()===""||k&&!k.includes("application/json"))return;try{return JSON.parse(j)}catch{return j}}catch(g){throw clearTimeout(a),g.name==="AbortError"?new Error(`Request timeout after ${s}ms: ${X}${e}`):g instanceof TypeError&&g.message.includes("Failed to fetch")?new Error(`Network Error: Unable to reach API at ${X}${e}. Check CORS and network connectivity.`):g}}async function gs(e={}){const r=new URLSearchParams;if(!e.site_id){const a=ue();a&&(e.site_id=a)}if(e.sector_id===void 0){const a=me();a!=null&&(e.sector_id=a)}e.search&&r.append("search",e.search),e.status&&r.append("status",e.status),e.cluster_id&&r.append("cluster_id",e.cluster_id),e.intent&&r.append("intent",e.intent),e.difficulty_min!==void 0&&r.append("difficulty_min",e.difficulty_min.toString()),e.difficulty_max!==void 0&&r.append("difficulty_max",e.difficulty_max.toString()),e.volume_min!==void 0&&r.append("volume_min",e.volume_min.toString()),e.volume_max!==void 0&&r.append("volume_max",e.volume_max.toString()),e.site_id&&r.append("site_id",e.site_id.toString()),e.sector_id&&r.append("sector_id",e.sector_id.toString()),e.page&&r.append("page",e.page.toString()),e.page_size!==void 0&&e.page_size!==null&&r.append("page_size",e.page_size.toString()),e.ordering&&r.append("ordering",e.ordering);const s=r.toString(),n=`/v1/planner/keywords/${s?`?${s}`:""}`;return _(n)}async function ps(e){return _("/v1/planner/keywords/",{method:"POST",body:JSON.stringify(e)})}async function xs(e,r){return _(`/v1/planner/keywords/${e}/`,{method:"PUT",body:JSON.stringify(r)})}async function fs(e){return _(`/v1/planner/keywords/${e}/`,{method:"DELETE"})}async function bs(e){return _("/v1/planner/keywords/bulk_delete/",{method:"POST",body:JSON.stringify({ids:e})})}async function ys(e,r){return _("/v1/planner/keywords/bulk_update/",{method:"POST",body:JSON.stringify({ids:e,status:r})})}async function vs(e={}){const r=new URLSearchParams;if(!e.site_id){const a=ue();a&&(e.site_id=a)}if(e.sector_id===void 0){const a=me();a!=null&&(e.sector_id=a)}e.search&&r.append("search",e.search),e.status&&r.append("status",e.status),e.difficulty_min!==void 0&&r.append("difficulty_min",e.difficulty_min.toString()),e.difficulty_max!==void 0&&r.append("difficulty_max",e.difficulty_max.toString()),e.volume_min!==void 0&&r.append("volume_min",e.volume_min.toString()),e.volume_max!==void 0&&r.append("volume_max",e.volume_max.toString()),e.site_id&&r.append("site_id",e.site_id.toString()),e.sector_id&&r.append("sector_id",e.sector_id.toString()),e.page&&r.append("page",e.page.toString()),e.page_size!==void 0&&e.page_size!==null&&r.append("page_size",e.page_size.toString()),e.ordering&&r.append("ordering",e.ordering);const s=r.toString(),n=`/v1/planner/clusters/${s?`?${s}`:""}`;return _(n)}async function ws(e){return _("/v1/planner/clusters/",{method:"POST",body:JSON.stringify(e)})}async function js(e,r){return _(`/v1/planner/clusters/${e}/`,{method:"PUT",body:JSON.stringify(r)})}async function Cs(e){return _(`/v1/planner/clusters/${e}/`,{method:"DELETE"})}async function ks(e){return _("/v1/planner/clusters/bulk_delete/",{method:"POST",body:JSON.stringify({ids:e})})}async function _s(e,r){return _("/v1/planner/clusters/bulk_update/",{method:"POST",body:JSON.stringify({ids:e,status:r})})}async function Ss(e,r){const s="/v1/planner/keywords/auto_cluster/",n={ids:e,sector_id:r};try{const a=await _(s,{method:"POST",body:JSON.stringify(n)});return a&&a.success===!1,a}catch(a){throw a}}async function Es(e){const r="/v1/planner/clusters/auto_generate_ideas/",s={ids:e};try{return await _(r,{method:"POST",body:JSON.stringify(s)})}catch(n){throw n}}async function Ns(e={}){const r=new URLSearchParams;if(!e.site_id){const a=ue();a&&(e.site_id=a)}if(e.sector_id===void 0){const a=me();a!=null&&(e.sector_id=a)}e.search&&r.append("search",e.search),e.status&&r.append("status",e.status),e.keyword_cluster_id&&r.append("keyword_cluster_id",e.keyword_cluster_id),e.content_structure&&r.append("content_structure",e.content_structure),e.content_type&&r.append("content_type",e.content_type),e.site_id&&r.append("site_id",e.site_id.toString()),e.sector_id&&r.append("sector_id",e.sector_id.toString()),e.page&&r.append("page",e.page.toString()),e.page_size!==void 0&&e.page_size!==null&&r.append("page_size",e.page_size.toString()),e.ordering&&r.append("ordering",e.ordering);const s=r.toString(),n=`/v1/planner/ideas/${s?`?${s}`:""}`;return _(n)}async function Ts(e){return _("/v1/planner/ideas/",{method:"POST",body:JSON.stringify(e)})}async function Ls(e,r){return _(`/v1/planner/ideas/${e}/`,{method:"PUT",body:JSON.stringify(r)})}async function As(e){return _(`/v1/planner/ideas/${e}/`,{method:"DELETE"})}async function Rs(e){return _("/v1/planner/ideas/bulk_delete/",{method:"POST",body:JSON.stringify({ids:e})})}async function Is(e,r){return _("/v1/planner/ideas/bulk_update/",{method:"POST",body:JSON.stringify({ids:e,status:r})})}async function Ps(e){return _("/v1/planner/ideas/bulk_queue_to_writer/",{method:"POST",body:JSON.stringify({ids:e})})}async function Os(e={}){const r=new URLSearchParams;if(!e.site_id){const a=ue();a&&(e.site_id=a)}if(e.sector_id===void 0){const a=me();a!=null&&(e.sector_id=a)}e.search&&r.append("search",e.search),e.status&&r.append("status",e.status),e.cluster_id&&r.append("cluster_id",e.cluster_id),e.content_type&&r.append("content_type",e.content_type),e.content_structure&&r.append("content_structure",e.content_structure),e.site_id&&r.append("site_id",e.site_id.toString()),e.sector_id&&r.append("sector_id",e.sector_id.toString()),e.page&&r.append("page",e.page.toString()),e.page_size!==void 0&&e.page_size!==null&&r.append("page_size",e.page_size.toString()),e.ordering&&r.append("ordering",e.ordering);const s=r.toString(),n=`/v1/writer/tasks/${s?`?${s}`:""}`;return _(n)}async function Ms(e){return _("/v1/writer/tasks/",{method:"POST",body:JSON.stringify(e)})}async function zs(e,r){return _(`/v1/writer/tasks/${e}/`,{method:"PUT",body:JSON.stringify(r)})}async function Vs(e){return _(`/v1/writer/tasks/${e}/`,{method:"DELETE"})}async function Hs(e){return _("/v1/writer/tasks/bulk_delete/",{method:"POST",body:JSON.stringify({ids:e})})}async function Ds(e,r){return _("/v1/writer/tasks/bulk_update/",{method:"POST",body:JSON.stringify({ids:e,status:r})})}async function $s(e){const r="/v1/writer/tasks/auto_generate_content/",s={ids:e};try{return await _(r,{method:"POST",body:JSON.stringify(s)})}catch(n){throw n}}async function Fs(e){const r="/v1/writer/tasks/auto_generate_images/",s={task_ids:e};try{return await _(r,{method:"POST",body:JSON.stringify(s)})}catch(n){throw n}}async function Zs(e){return _("/v1/writer/content/generate_image_prompts/",{method:"POST",body:JSON.stringify({ids:e})})}async function Bs(e={}){const r=new URLSearchParams;if(!e.site_id){const n=ue();n&&(e.site_id=n)}if(e.sector_id===void 0){const n=me();n!=null&&(e.sector_id=n)}e.site_id&&r.append("site_id",e.site_id.toString()),e.sector_id&&r.append("sector_id",e.sector_id.toString());const s=r.toString();return _(`/v1/writer/images/content_images/${s?`?${s}`:""}`)}async function Us(e,r){return _("/v1/writer/images/bulk_update/",{method:"POST",body:JSON.stringify({content_id:e,status:r})})}async function qs(e,r){return _("/v1/writer/images/generate_images/",{method:"POST",body:JSON.stringify({ids:e,content_id:r})})}async function Js(e={}){const r=new URLSearchParams;e.content_id&&r.append("content_id",e.content_id.toString()),e.task_id&&r.append("task_id",e.task_id.toString()),e.image_type&&r.append("image_type",e.image_type),e.status&&r.append("status",e.status),e.ordering&&r.append("ordering",e.ordering),e.page&&r.append("page",e.page.toString()),e.page_size&&r.append("page_size",e.page_size.toString());const s=r.toString();return _(`/v1/writer/images/${s?`?${s}`:""}`)}async function Gs(){return _("/v1/system/integrations/image_generation/")}async function Je(){return _("/v1/auth/sites/")}async function Ks(e){return _("/v1/auth/sites/",{method:"POST",body:JSON.stringify(e)})}async function Ws(e,r){return _(`/v1/auth/sites/${e}/`,{method:"PATCH",body:JSON.stringify(r)})}async function Ys(e){return _(`/v1/auth/sites/${e}/`,{method:"DELETE"})}async function Xs(e){return _(`/v1/auth/sites/${e}/set_active/`,{method:"POST"})}async function Qs(e,r,s){return _(`/v1/auth/sites/${e}/select_sectors/`,{method:"POST",body:JSON.stringify({industry_slug:r,sector_slugs:s})})}async function Dt(e){return _(`/v1/auth/sites/${e}/sectors/`)}async function en(){return _("/v1/auth/industries/")}async function tn(){return _("/v1/system/settings/account/")}async function rn(e){return _(`/v1/system/settings/account/${e}/`)}async function sn(e){return _("/v1/system/settings/account/",{method:"POST",body:JSON.stringify(e)})}async function nn(e,r){return _(`/v1/system/settings/account/${e}/`,{method:"PUT",body:JSON.stringify(r)})}async function an(e){return(await _(`/v1/system/settings/modules/module/${e}/`)).results||[]}async function on(e){return _("/v1/system/settings/modules/",{method:"POST",body:JSON.stringify(e)})}async function ln(e,r,s){return _(`/v1/system/settings/modules/${r}/?module_name=${e}`,{method:"PUT",body:JSON.stringify(s)})}async function cn(){return _("/v1/billing/credits/balance/balance/")}async function dn(e){const r=new URLSearchParams;e!=null&&e.operation_type&&r.append("operation_type",e.operation_type),e!=null&&e.start_date&&r.append("start_date",e.start_date),e!=null&&e.end_date&&r.append("end_date",e.end_date),e!=null&&e.page&&r.append("page",e.page.toString());const s=r.toString();return _(`/v1/billing/credits/usage/${s?`?${s}`:""}`)}async function un(e,r){const s=new URLSearchParams;e&&s.append("start_date",e),r&&s.append("end_date",r);const n=s.toString();return _(`/v1/billing/credits/usage/summary/${n?`?${n}`:""}`)}async function mn(){console.log("Fetching usage limits from:","/v1/billing/credits/usage/limits/");try{const e=await _("/v1/billing/credits/usage/limits/");return console.log("Usage limits API response:",e),e}catch(e){throw console.error("Error fetching usage limits:",e),e}}async function hn(e){const r=new URLSearchParams;e!=null&&e.transaction_type&&r.append("transaction_type",e.transaction_type),e!=null&&e.page&&r.append("page",e.page.toString());const s=r.toString();return _(`/v1/billing/credits/transactions/${s?`?${s}`:""}`)}async function gn(e){const r=new URLSearchParams;e!=null&&e.industry&&(r.append("industry",e.industry.toString()),r.append("industry_id",e.industry.toString())),e!=null&&e.sector&&(r.append("sector",e.sector.toString()),r.append("sector_id",e.sector.toString())),e!=null&&e.intent&&r.append("intent",e.intent),e!=null&&e.search&&r.append("search",e.search),e!=null&&e.page&&r.append("page",e.page.toString()),e!=null&&e.page_size&&r.append("page_size",e.page_size.toString());const s=r.toString();return _(`/v1/auth/seed-keywords/${s?`?${s}`:""}`)}async function pn(e,r,s){return _("/v1/planner/keywords/bulk_add_from_seed/",{method:"POST",body:JSON.stringify({seed_keyword_ids:e,site_id:r,sector_id:s})})}async function xn(e){const s=new URLSearchParams().toString();return _(`/v1/system/author-profiles/${s?`?${s}`:""}`)}async function fn(e){return _("/v1/system/author-profiles/",{method:"POST",body:JSON.stringify(e)})}async function bn(e,r){return _(`/v1/system/author-profiles/${e}/`,{method:"PUT",body:JSON.stringify(r)})}async function yn(e){return _(`/v1/system/author-profiles/${e}/`,{method:"DELETE"})}async function vn(e={}){const r=new URLSearchParams;if(!e.site_id){const n=ue();n&&(e.site_id=n)}if(e.sector_id===void 0){const n=me();n!=null&&(e.sector_id=n)}e.search&&r.append("search",e.search),e.status&&r.append("status",e.status),e.task_id&&r.append("task_id",e.task_id.toString()),e.site_id&&r.append("site_id",e.site_id.toString()),e.sector_id&&r.append("sector_id",e.sector_id.toString()),e.page&&r.append("page",e.page.toString()),e.page_size!==void 0&&e.page_size!==null&&r.append("page_size",e.page_size.toString()),e.ordering&&r.append("ordering",e.ordering);const s=r.toString();return _(`/v1/writer/content/${s?`?${s}`:""}`)}async function wn(e){return _(`/v1/writer/content/${e}/`)}const Bo=Object.freeze(Object.defineProperty({__proto__:null,API_BASE_URL:X,addSeedKeywordsToWorkflow:pn,autoClusterKeywords:Ss,autoGenerateContent:$s,autoGenerateIdeas:Es,autoGenerateImages:Fs,bulkDeleteClusters:ks,bulkDeleteContentIdeas:Rs,bulkDeleteKeywords:bs,bulkDeleteTasks:Hs,bulkQueueIdeasToWriter:Ps,bulkUpdateClustersStatus:_s,bulkUpdateContentIdeasStatus:Is,bulkUpdateImagesStatus:Us,bulkUpdateKeywordsStatus:ys,bulkUpdateTasksStatus:Ds,createAccountSetting:sn,createAuthorProfile:fn,createCluster:ws,createContentIdea:Ts,createKeyword:ps,createModuleSetting:on,createSite:Ks,createTask:Ms,deleteAuthorProfile:yn,deleteCluster:Cs,deleteContentIdea:As,deleteKeyword:fs,deleteSite:Ys,deleteTask:Vs,fetchAPI:_,fetchAccountSetting:rn,fetchAccountSettings:tn,fetchAuthorProfiles:xn,fetchClusters:vs,fetchContent:vn,fetchContentById:wn,fetchContentIdeas:Ns,fetchContentImages:Bs,fetchCreditBalance:cn,fetchCreditTransactions:hn,fetchCreditUsage:dn,fetchImageGenerationSettings:Gs,fetchImages:Js,fetchIndustries:en,fetchKeywords:gs,fetchModuleSettings:an,fetchSeedKeywords:gn,fetchSiteSectors:Dt,fetchSites:Je,fetchTasks:Os,fetchUsageLimits:mn,fetchUsageSummary:un,generateImagePrompts:Zs,generateImages:qs,selectSectorsForSite:Qs,setActiveSite:Xs,updateAccountSetting:nn,updateAuthorProfile:bn,updateCluster:js,updateContentIdea:Ls,updateKeyword:xs,updateModuleSetting:ln,updateSite:Ws,updateTask:zs},Symbol.toStringTag,{value:"Module"})),jn=tt()(rt((e,r)=>({activeSite:null,loading:!1,error:null,setActiveSite:s=>{if(e({activeSite:s,error:null}),typeof window<"u")try{const n=r();localStorage.setItem("site-storage",JSON.stringify({state:{activeSite:s},version:0}))}catch(n){console.warn("Failed to persist site to localStorage:",n)}window.dispatchEvent(new CustomEvent("siteChanged",{detail:{siteId:s==null?void 0:s.id}})),s&&typeof window<"u"&&C(async()=>{const{useSectorStore:n}=await Promise.resolve().then(()=>Cn);return{useSectorStore:n}},void 0).then(({useSectorStore:n})=>{n.getState().loadSectorsForSite(s.id)}).catch(()=>{})},loadActiveSite:async()=>{e({loading:!0,error:null});try{const n=(await Je()).results||[],a=n.filter(c=>c.is_active),i=r().activeSite;let l=null;if(i){const c=n.find(d=>d.id===i.id);c&&c.is_active?l=c:(c&&c.is_active,l=a.length>0?a[0]:null)}else a.length>0&&(l=a[0]);if(e({activeSite:l,loading:!1}),l&&typeof window<"u")try{localStorage.setItem("site-storage",JSON.stringify({state:{activeSite:l},version:0}))}catch(c){console.warn("Failed to persist site to localStorage:",c)}}catch(s){e({error:s.message||"Failed to load active site",loading:!1})}},refreshActiveSite:async()=>{const s=r().activeSite;if(!s){await r().loadActiveSite();return}e({loading:!0,error:null});try{const a=((await Je()).results||[]).find(i=>i.id===s.id);a&&a.is_active?e({activeSite:a,loading:!1}):await r().loadActiveSite()}catch(n){e({error:n.message||"Failed to refresh active site",loading:!1})}}}),{name:"site-storage",partialize:e=>({activeSite:e.activeSite})})),$t=tt()(rt((e,r)=>({activeSector:null,sectors:[],loading:!1,error:null,setActiveSector:s=>{if(e({activeSector:s,error:null}),typeof window<"u")try{const n=r();localStorage.setItem("sector-storage",JSON.stringify({state:{activeSector:s},version:0}))}catch(n){console.warn("Failed to persist sector to localStorage:",n)}window.dispatchEvent(new CustomEvent("sectorChanged",{detail:{sectorId:s==null?void 0:s.id,siteId:s==null?void 0:s.site_id}}))},loadSectorsForSite:async s=>{e({loading:!0,error:null});try{if(!s)return e({sectors:[],loading:!1}),[];const a=(await Dt(s)).map(l=>({id:l.id,name:l.name,slug:l.slug,site_id:s,is_active:l.is_active!==!1,industry_sector:l.industry_sector||null}));e({sectors:a,loading:!1});const i=r().activeSector;if(i&&i.site_id!==s){if(e({activeSector:null}),typeof window<"u")try{localStorage.setItem("sector-storage",JSON.stringify({state:{activeSector:null},version:0}))}catch(l){console.warn("Failed to persist sector to localStorage:",l)}window.dispatchEvent(new CustomEvent("sectorChanged",{detail:{sectorId:null,siteId:s}}))}else if(i&&i.site_id===s&&!a.find(c=>c.id===i.id)){if(e({activeSector:null}),typeof window<"u")try{localStorage.setItem("sector-storage",JSON.stringify({state:{activeSector:null},version:0}))}catch(c){console.warn("Failed to persist sector to localStorage:",c)}window.dispatchEvent(new CustomEvent("sectorChanged",{detail:{sectorId:null,siteId:s}}))}return a}catch(n){return n.status===403||n.status===404?(console.warn(`Cannot load sectors for site ${s}: site may be inactive or inaccessible`),e({sectors:[],activeSector:null,loading:!1,error:null}),[]):(e({error:n.message||"Failed to load sectors",loading:!1}),[])}},clearActiveSector:()=>{if(e({activeSector:null,sectors:[],error:null}),typeof window<"u")try{localStorage.setItem("sector-storage",JSON.stringify({state:{activeSector:null},version:0}))}catch(s){console.warn("Failed to persist sector to localStorage:",s)}}}),{name:"sector-storage",partialize:e=>({activeSector:e.activeSector})})),Cn=Object.freeze(Object.defineProperty({__proto__:null,useSectorStore:$t},Symbol.toStringTag,{value:"Module"})),K=[],be=new Set;function Le(e){const[r,s]=o.useState([]);o.useEffect(()=>{const l=()=>{s([...K])};return be.add(l),l(),()=>{be.delete(l)}},[]);const n=o.useCallback((l,c)=>{const d={message:l instanceof Error?l.message:l,source:c||e,timestamp:Date.now(),stack:l instanceof Error?l.stack:void 0};K.push(d),K.length>10&&K.shift(),be.forEach(u=>u([...K])),console.error(`[${d.source}]`,d)},[e]),a=o.useCallback(l=>{K.splice(l,1),be.forEach(c=>c([...K]))},[]),i=o.useCallback(()=>{K.length=0,be.forEach(l=>l([]))},[]);return{errors:r,addError:n,clearError:a,clearAllErrors:i}}const ye=new Map,Ge=new Set;function Y(e,r){r?ye.set(e,{source:e,startTime:Date.now(),duration:0}):ye.delete(e),Ge.forEach(s=>{const n=Array.from(ye.values()).map(a=>({...a,duration:Date.now()-a.startTime}));s(n)})}function kn(){const[e,r]=o.useState([]),{addError:s}=Le("LoadingStateMonitor"),n=o.useRef(new Set),a=o.useRef(s);return o.useEffect(()=>{a.current=s},[s]),o.useEffect(()=>{const i=d=>{const u=d.filter(p=>p.duration<6e4);r(u);const m=u.filter(p=>p.duration>5e3&&!n.current.has(p.source));m.length>0&&m.forEach(p=>{n.current.add(p.source),a.current(new Error(`Loading state stuck: ${p.source} (${(p.duration/1e3).toFixed(1)}s)`),"LoadingStateMonitor")}),Array.from(n.current).filter(p=>!u.find(f=>f.source===p&&f.duration>5e3)).forEach(p=>n.current.delete(p))},l=Array.from(ye.values()).map(d=>({...d,duration:Date.now()-d.startTime}));i(l),Ge.add(i);const c=setInterval(()=>{const d=Array.from(ye.values()).map(u=>({...u,duration:Date.now()-u.startTime}));i(d)},1e3);return()=>{Ge.delete(i),clearInterval(c)}},[]),o.useEffect(()=>{const i=e.filter(l=>l.duration>1e4);i.length>0&&i.forEach(l=>{console.warn(`Auto-resetting stuck loading state: ${l.source}`),Y(l.source,!1),n.current.delete(l.source)})},[e]),null}function _n({enabled:e}){const{user:r}=V(),[s,n]=o.useState([]),[a,i]=o.useState(!1),[l,c]=o.useState(null),d=o.useRef(null),u=o.useRef([]),m=o.useRef(null),g=o.useRef(null),p=(r==null?void 0:r.role)==="admin"||(r==null?void 0:r.role)==="developer";o.useEffect(()=>{if(!e||!p){g.current&&(window.fetch=g.current,g.current=null,m.current=null);return}return c(performance.now()),g.current||(g.current=window.fetch,m.current=window.fetch.bind(window)),window.fetch=async function(...h){performance.now();const[E,N={}]=h;if((typeof E=="string"?E:E.toString()).includes("/request-metrics/"))return g.current.apply(window,h);const L=new Headers(N.headers||{});L.set("X-Debug-Resource-Tracking","true");const P=await m.current(E,{...N,headers:L});performance.now();const M=P.headers.get("X-Resource-Tracking-ID");return M&&(d.current=M,setTimeout(()=>f(M),300)),P},()=>{g.current&&(window.fetch=g.current,g.current=null,m.current=null)}},[e,p]);const f=async(h,E=0)=>{try{const N=g.current||window.fetch,{token:T}=V.getState(),L={"Content-Type":"application/json"};T&&(L.Authorization=`Bearer ${T}`);try{const P=await N.call(window,`${X}/v1/system/request-metrics/${h}/`,{method:"GET",headers:L,credentials:"include"});if(P.ok){const M=await P.json();u.current=[...u.current,M],n([...u.current])}else if(P.status===401)try{await V.getState().refreshToken();const M=V.getState().token;if(M){const G={"Content-Type":"application/json",Authorization:`Bearer ${M}`},se=await N.call(window,`${X}/v1/system/request-metrics/${h}/`,{method:"GET",headers:G,credentials:"include"});if(se.ok){const pe=await se.json();u.current=[...u.current,pe],n([...u.current]);return}}}catch{}else return P.status===404,void 0}catch{return}}catch{return}},k=l?performance.now()-l:null,x=s.reduce((h,E)=>({elapsed_time_ms:h.elapsed_time_ms+E.elapsed_time_ms,cpu_total_ms:h.cpu_total_ms+E.cpu.total_time_ms,memory_delta_mb:h.memory_delta_mb+E.memory.delta_mb,io_read_mb:h.io_read_mb+E.io.read_mb,io_write_mb:h.io_write_mb+E.io.write_mb}),{elapsed_time_ms:0,cpu_total_ms:0,memory_delta_mb:0,io_read_mb:0,io_write_mb:0}),j=s.length>0?s.reduce((h,E)=>E.elapsed_time_ms>h.elapsed_time_ms?E:h):null,S=s.length>0?s.reduce((h,E)=>E.cpu.total_time_ms>h.cpu.total_time_ms?E:h):null,w=s.length>0?s.reduce((h,E)=>E.memory.delta_mb>h.memory.delta_mb?E:h):null;return!e||!p?null:t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:()=>i(!a),className:"fixed bottom-4 right-4 z-[99999] bg-red-600 hover:bg-red-700 text-white px-4 py-2 rounded-lg shadow-lg text-sm font-medium flex items-center gap-2",title:"Toggle Resource Debug Overlay",children:[t.jsx("span",{children:"🔍"}),t.jsxs("span",{children:["Debug (",s.length,")"]})]}),a&&t.jsxs("div",{className:"fixed bottom-20 right-4 z-[99998] bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-lg shadow-2xl w-[500px] max-h-[85vh] overflow-auto",children:[t.jsxs("div",{className:"sticky top-0 bg-gray-100 dark:bg-gray-800 px-4 py-3 border-b border-gray-300 dark:border-gray-700 flex justify-between items-center",children:[t.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white",children:"Resource Debug"}),t.jsx("button",{onClick:()=>i(!1),className:"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",children:"✕"})]}),t.jsxs("div",{className:"p-4 space-y-4",children:[k&&t.jsxs("div",{className:"bg-blue-50 dark:bg-blue-900/20 p-3 rounded border border-blue-200 dark:border-blue-800",children:[t.jsx("h4",{className:"font-semibold text-blue-900 dark:text-blue-200 mb-2",children:"Page Load Time"}),t.jsxs("div",{className:"text-sm text-blue-800 dark:text-blue-300",children:[k.toFixed(2)," ms"]})]}),s.length>0&&t.jsxs("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 p-3 rounded border border-yellow-200 dark:border-yellow-800",children:[t.jsx("h4",{className:"font-semibold text-yellow-900 dark:text-yellow-200 mb-2",children:"⚠️ Performance Culprits"}),t.jsxs("div",{className:"text-xs space-y-2 text-yellow-800 dark:text-yellow-300",children:[j&&t.jsxs("div",{children:[t.jsx("span",{className:"font-semibold",children:"Slowest Request:"})," ",j.method," ",j.path,t.jsx("br",{}),t.jsxs("span",{className:"ml-4",children:["Time: ",j.elapsed_time_ms.toFixed(2)," ms"]})]}),S&&S.cpu.total_time_ms>100&&t.jsxs("div",{children:[t.jsx("span",{className:"font-semibold",children:"Highest CPU:"})," ",S.method," ",S.path,t.jsx("br",{}),t.jsxs("span",{className:"ml-4",children:["CPU: ",S.cpu.total_time_ms.toFixed(2)," ms (System: ",S.cpu.system_percent.toFixed(1),"%)"]})]}),w&&w.memory.delta_mb>1&&t.jsxs("div",{children:[t.jsx("span",{className:"font-semibold",children:"Highest Memory:"})," ",w.method," ",w.path,t.jsx("br",{}),t.jsxs("span",{className:"ml-4",children:["Memory: ",w.memory.delta_mb>0?"+":"",w.memory.delta_mb.toFixed(2)," MB"]})]})]})]}),s.length>0&&t.jsxs("div",{className:"bg-gray-50 dark:bg-gray-800 p-3 rounded border border-gray-200 dark:border-gray-700",children:[t.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white mb-2",children:"Request Totals"}),t.jsxs("div",{className:"text-xs space-y-1 text-gray-700 dark:text-gray-300",children:[t.jsxs("div",{children:["Total Requests: ",s.length]}),t.jsxs("div",{children:["Total Time: ",x.elapsed_time_ms.toFixed(2)," ms"]}),t.jsxs("div",{children:["Total CPU Time: ",x.cpu_total_ms.toFixed(2)," ms"]}),t.jsxs("div",{children:["Total Memory Delta: ",x.memory_delta_mb>0?"+":"",x.memory_delta_mb.toFixed(2)," MB"]}),t.jsxs("div",{children:["Total I/O Read: ",x.io_read_mb.toFixed(2)," MB"]}),t.jsxs("div",{children:["Total I/O Write: ",x.io_write_mb.toFixed(2)," MB"]})]})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white",children:"All Requests (Detailed)"}),s.length===0?t.jsxs("div",{className:"text-sm text-gray-500 dark:text-gray-400",children:["No requests tracked yet. Navigate to trigger API calls.",t.jsx("br",{}),t.jsx("span",{className:"text-xs",children:"Make sure debug toggle is enabled in header."})]}):s.map((h,E)=>{const N=h.elapsed_time_ms>1e3,T=h.cpu.total_time_ms>100,L=h.memory.delta_mb>1;return t.jsxs("div",{className:`p-3 rounded border text-xs ${N||T||L?"bg-red-50 dark:bg-red-900/20 border-red-200 dark:border-red-800":"bg-gray-50 dark:bg-gray-800 border-gray-200 dark:border-gray-700"}`,children:[t.jsxs("div",{className:"font-semibold text-gray-900 dark:text-white mb-2 flex items-center gap-2",children:[t.jsx("span",{children:h.method}),t.jsx("span",{className:"text-gray-600 dark:text-gray-400 truncate",children:h.path}),(N||T||L)&&t.jsx("span",{className:"text-red-600 dark:text-red-400 text-xs",children:"⚠️"})]}),t.jsxs("div",{className:"space-y-1 text-gray-700 dark:text-gray-300",children:[t.jsxs("div",{className:N?"font-semibold text-red-700 dark:text-red-300":"",children:["⏱️ Time: ",h.elapsed_time_ms.toFixed(2)," ms"]}),t.jsxs("div",{className:T?"font-semibold text-red-700 dark:text-red-300":"",children:["🔥 CPU: ",h.cpu.total_time_ms.toFixed(2)," ms",t.jsxs("span",{className:"text-gray-500",children:[" (User: ",h.cpu.user_time_ms.toFixed(2),"ms, System: ",h.cpu.system_time_ms.toFixed(2),"ms)"]}),t.jsx("br",{}),t.jsxs("span",{className:"ml-4 text-gray-500",children:["System CPU: ",h.cpu.system_percent.toFixed(1),"%"]})]}),t.jsxs("div",{className:L?"font-semibold text-red-700 dark:text-red-300":"",children:["💾 Memory: ",h.memory.delta_mb>0?"+":"",h.memory.delta_mb.toFixed(2)," MB",t.jsxs("span",{className:"text-gray-500",children:[" (Final RSS: ",h.memory.final_rss_mb.toFixed(2)," MB)"]}),t.jsx("br",{}),t.jsxs("span",{className:"ml-4 text-gray-500",children:["System Memory: ",h.memory.system_used_percent.toFixed(1),"%"]})]}),h.io.read_mb>0&&t.jsxs("div",{children:["📖 I/O Read: ",h.io.read_mb.toFixed(2)," MB (",h.io.read_bytes.toLocaleString()," bytes)"]}),h.io.write_mb>0&&t.jsxs("div",{children:["📝 I/O Write: ",h.io.write_mb.toFixed(2)," MB (",h.io.write_bytes.toLocaleString()," bytes)"]})]})]},E)})]}),s.length>0&&t.jsx("button",{onClick:()=>{n([]),u.current=[],c(performance.now())},className:"w-full bg-gray-200 hover:bg-gray-300 dark:bg-gray-700 dark:hover:bg-gray-600 text-gray-900 dark:text-white px-3 py-2 rounded text-sm",children:"Clear Metrics"})]})]})]})}const Sn=()=>{const{isExpanded:e,isHovered:r,isMobileOpen:s}=Te(),{loadActiveSite:n,activeSite:a}=jn(),{loadSectorsForSite:i}=$t(),{refreshUser:l,isAuthenticated:c}=V(),{addError:d}=Le("AppLayout"),u=o.useRef(!1),m=o.useRef(null),g=o.useRef(!1),p=o.useRef(!1),[f,k]=o.useState(!1),x=o.useRef(0);return o.useEffect(()=>{if(!u.current&&!g.current){u.current=!0,g.current=!0,Y("site-loading",!0);const j=setTimeout(()=>{g.current&&(console.error("AppLayout: Site loading timeout after 35 seconds"),Y("site-loading",!1),g.current=!1,d(new Error("Site loading timeout - check network connection"),"AppLayout.loadActiveSite"))},35e3);n().catch(S=>{console.error("AppLayout: Error loading active site:",S),d(S,"AppLayout.loadActiveSite")}).finally(()=>{clearTimeout(j),Y("site-loading",!1),g.current=!1})}},[]),o.useEffect(()=>{const j=(a==null?void 0:a.id)??null;if(j&&(a!=null&&a.is_active)&&j!==m.current&&!p.current){m.current=j,p.current=!0,Y("sector-loading",!0);const S=setTimeout(()=>{p.current&&(console.error("AppLayout: Sector loading timeout after 35 seconds"),Y("sector-loading",!1),p.current=!1,d(new Error("Sector loading timeout - check network connection"),"AppLayout.loadSectorsForSite"))},35e3);i(j).catch(w=>{w.status!==403&&w.status!==404&&(console.error("AppLayout: Error loading sectors:",w),d(w,"AppLayout.loadSectorsForSite"))}).finally(()=>{clearTimeout(S),Y("sector-loading",!1),p.current=!1})}else if(j&&!(a!=null&&a.is_active)){m.current=null;const{useSectorStore:S}=require("../store/sectorStore");S.getState().clearActiveSector()}},[a==null?void 0:a.id,a==null?void 0:a.is_active]),o.useEffect(()=>{if(!c)return;const j="2.0.2",S="igny8-app-version",w=async(L=!1)=>{const P=Date.now();if(!(!L&&P-x.current<3e4))try{x.current=P,await l(),L&&localStorage.setItem(S,j)}catch(M){console.debug("User data refresh failed (non-critical):",M)}};localStorage.getItem(S)!==j?w(!0):w();const E=()=>{document.visibilityState==="visible"&&w()},N=()=>{w()},T=setInterval(()=>w(),12e4);return document.addEventListener("visibilitychange",E),window.addEventListener("focus",N),()=>{clearInterval(T),document.removeEventListener("visibilitychange",E),window.removeEventListener("focus",N)}},[c,l]),o.useEffect(()=>{const j=localStorage.getItem("debug_resource_tracking_enabled");k(j==="true");const S=w=>{k(w.detail)};return window.addEventListener("debug-resource-tracking-toggle",S),()=>{window.removeEventListener("debug-resource-tracking-toggle",S)}},[]),t.jsxs("div",{className:"min-h-screen xl:flex",children:[t.jsxs("div",{children:[t.jsx(ds,{}),t.jsx(Yr,{})]}),t.jsxs("div",{className:`flex-1 transition-all duration-300 ease-in-out ${e||r?"lg:ml-[290px]":"lg:ml-[90px]"} ${s?"ml-0":""} w-full max-w-full min-[1440px]:max-w-[90%]`,children:[t.jsx(Wr,{}),t.jsx("div",{className:"p-4 pb-20 md:p-6 md:pb-24",children:t.jsx(ar,{})}),t.jsx(_n,{enabled:f})]})]})},En=()=>t.jsx(Mr,{children:t.jsx(Sn,{})});function Nn(){const{pathname:e}=Ne();return o.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[e]),null}function Tn({children:e}){const{isAuthenticated:r,loading:s}=V(),n=Ne(),{addError:a}=Le("ProtectedRoute"),[i,l]=o.useState(!1),[c,d]=o.useState("");return o.useEffect(()=>{Y("auth-loading",s)},[s]),o.useEffect(()=>{s&&(console.warn("ProtectedRoute: Loading state is true on mount, resetting immediately"),V.setState({loading:!1}))},[]),o.useEffect(()=>{if(s){const u=setTimeout(()=>{d("Authentication check is taking longer than expected. This may indicate a network or server issue."),l(!0),a(new Error("Auth loading stuck for 3 seconds"),"ProtectedRoute")},3e3),m=setTimeout(()=>{console.error("ProtectedRoute: Loading state stuck for 5 seconds, forcing reset"),V.setState({loading:!1}),l(!1)},5e3);return()=>{clearTimeout(u),clearTimeout(m)}}else l(!1)},[s,a]),s?t.jsx("div",{className:"flex items-center justify-center min-h-screen bg-gray-50 dark:bg-gray-900",children:t.jsxs("div",{className:"text-center max-w-md px-4",children:[t.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-brand-500 mb-4"}),t.jsx("p",{className:"text-lg font-medium text-gray-800 dark:text-white mb-2",children:"Loading..."}),i&&t.jsxs("div",{className:"mt-4 p-4 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg",children:[t.jsx("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-3",children:c}),t.jsx("button",{onClick:()=>{V.setState({loading:!1}),l(!1),window.location.reload()},className:"px-4 py-2 text-sm bg-yellow-600 text-white rounded hover:bg-yellow-700",children:"Retry or Reload Page"})]})]})}):r?t.jsx(t.Fragment,{children:e}):t.jsx(kt,{to:"/signin",state:{from:n},replace:!0})}function Ln(){const{errors:e,clearError:r,clearAllErrors:s}=Le("GlobalErrorDisplay"),[n,a]=o.useState(!1);return o.useEffect(()=>{a(e.length>0)},[e.length]),!n||e.length===0?null:t.jsxs("div",{className:"fixed top-4 right-4 z-[9999] max-w-md space-y-2",children:[e.map((i,l)=>t.jsx("div",{className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg shadow-lg p-4 animate-in slide-in-from-right",children:t.jsxs("div",{className:"flex items-start justify-between gap-2",children:[t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[t.jsx("span",{className:"text-red-600 dark:text-red-400 text-lg",children:"⚠️"}),t.jsx("span",{className:"text-sm font-semibold text-red-800 dark:text-red-200",children:i.source})]}),t.jsx("p",{className:"text-sm text-red-700 dark:text-red-300 mb-2",children:i.message}),i.stack&&t.jsxs("details",{className:"mt-2",children:[t.jsx("summary",{className:"text-xs text-red-600 dark:text-red-400 cursor-pointer hover:underline",children:"Show stack trace"}),t.jsx("pre",{className:"mt-2 text-xs bg-red-100 dark:bg-red-900/40 p-2 rounded overflow-auto max-h-32",children:i.stack})]})]}),t.jsx("button",{onClick:()=>r(l),className:"text-red-600 dark:text-red-400 hover:text-red-800 dark:hover:text-red-200 text-xl leading-none","aria-label":"Dismiss error",children:"×"})]})},l)),e.length>1&&t.jsx("button",{onClick:s,className:"w-full px-3 py-2 text-xs bg-red-600 text-white rounded hover:bg-red-700",children:"Clear All Errors"})]})}const st=({title:e,description:r})=>t.jsxs(Or,{children:[t.jsx("title",{children:e}),t.jsx("meta",{name:"description",content:r})]});function Ft(){return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"absolute right-0 top-0 -z-1 w-full max-w-[250px] xl:max-w-[450px]",children:t.jsx("img",{src:"/images/shape/grid-01.svg",alt:"grid"})}),t.jsx("div",{className:"absolute bottom-0 left-0 -z-1 w-full max-w-[250px] rotate-180 xl:max-w-[450px]",children:t.jsx("img",{src:"/images/shape/grid-01.svg",alt:"grid"})})]})}function An(){const{toggleTheme:e}=Pt();return t.jsxs("button",{onClick:e,className:"inline-flex items-center justify-center text-white transition-colors rounded-full size-14 bg-brand-500 hover:bg-brand-600",children:[t.jsx("svg",{className:"hidden dark:block",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99998 1.5415C10.4142 1.5415 10.75 1.87729 10.75 2.2915V3.5415C10.75 3.95572 10.4142 4.2915 9.99998 4.2915C9.58577 4.2915 9.24998 3.95572 9.24998 3.5415V2.2915C9.24998 1.87729 9.58577 1.5415 9.99998 1.5415ZM10.0009 6.79327C8.22978 6.79327 6.79402 8.22904 6.79402 10.0001C6.79402 11.7712 8.22978 13.207 10.0009 13.207C11.772 13.207 13.2078 11.7712 13.2078 10.0001C13.2078 8.22904 11.772 6.79327 10.0009 6.79327ZM5.29402 10.0001C5.29402 7.40061 7.40135 5.29327 10.0009 5.29327C12.6004 5.29327 14.7078 7.40061 14.7078 10.0001C14.7078 12.5997 12.6004 14.707 10.0009 14.707C7.40135 14.707 5.29402 12.5997 5.29402 10.0001ZM15.9813 5.08035C16.2742 4.78746 16.2742 4.31258 15.9813 4.01969C15.6884 3.7268 15.2135 3.7268 14.9207 4.01969L14.0368 4.90357C13.7439 5.19647 13.7439 5.67134 14.0368 5.96423C14.3297 6.25713 14.8045 6.25713 15.0974 5.96423L15.9813 5.08035ZM18.4577 10.0001C18.4577 10.4143 18.1219 10.7501 17.7077 10.7501H16.4577C16.0435 10.7501 15.7077 10.4143 15.7077 10.0001C15.7077 9.58592 16.0435 9.25013 16.4577 9.25013H17.7077C18.1219 9.25013 18.4577 9.58592 18.4577 10.0001ZM14.9207 15.9806C15.2135 16.2735 15.6884 16.2735 15.9813 15.9806C16.2742 15.6877 16.2742 15.2128 15.9813 14.9199L15.0974 14.036C14.8045 13.7431 14.3297 13.7431 14.0368 14.036C13.7439 14.3289 13.7439 14.8038 14.0368 15.0967L14.9207 15.9806ZM9.99998 15.7088C10.4142 15.7088 10.75 16.0445 10.75 16.4588V17.7088C10.75 18.123 10.4142 18.4588 9.99998 18.4588C9.58577 18.4588 9.24998 18.123 9.24998 17.7088V16.4588C9.24998 16.0445 9.58577 15.7088 9.99998 15.7088ZM5.96356 15.0972C6.25646 14.8043 6.25646 14.3295 5.96356 14.0366C5.67067 13.7437 5.1958 13.7437 4.9029 14.0366L4.01902 14.9204C3.72613 15.2133 3.72613 15.6882 4.01902 15.9811C4.31191 16.274 4.78679 16.274 5.07968 15.9811L5.96356 15.0972ZM4.29224 10.0001C4.29224 10.4143 3.95645 10.7501 3.54224 10.7501H2.29224C1.87802 10.7501 1.54224 10.4143 1.54224 10.0001C1.54224 9.58592 1.87802 9.25013 2.29224 9.25013H3.54224C3.95645 9.25013 4.29224 9.58592 4.29224 10.0001ZM4.9029 5.9637C5.1958 6.25659 5.67067 6.25659 5.96356 5.9637C6.25646 5.6708 6.25646 5.19593 5.96356 4.90303L5.07968 4.01915C4.78679 3.72626 4.31191 3.72626 4.01902 4.01915C3.72613 4.31204 3.72613 4.78692 4.01902 5.07981L4.9029 5.9637Z",fill:"currentColor"})}),t.jsx("svg",{className:"dark:hidden",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M17.4547 11.97L18.1799 12.1611C18.265 11.8383 18.1265 11.4982 17.8401 11.3266C17.5538 11.1551 17.1885 11.1934 16.944 11.4207L17.4547 11.97ZM8.0306 2.5459L8.57989 3.05657C8.80718 2.81209 8.84554 2.44682 8.67398 2.16046C8.50243 1.8741 8.16227 1.73559 7.83948 1.82066L8.0306 2.5459ZM12.9154 13.0035C9.64678 13.0035 6.99707 10.3538 6.99707 7.08524H5.49707C5.49707 11.1823 8.81835 14.5035 12.9154 14.5035V13.0035ZM16.944 11.4207C15.8869 12.4035 14.4721 13.0035 12.9154 13.0035V14.5035C14.8657 14.5035 16.6418 13.7499 17.9654 12.5193L16.944 11.4207ZM16.7295 11.7789C15.9437 14.7607 13.2277 16.9586 10.0003 16.9586V18.4586C13.9257 18.4586 17.2249 15.7853 18.1799 12.1611L16.7295 11.7789ZM10.0003 16.9586C6.15734 16.9586 3.04199 13.8433 3.04199 10.0003H1.54199C1.54199 14.6717 5.32892 18.4586 10.0003 18.4586V16.9586ZM3.04199 10.0003C3.04199 6.77289 5.23988 4.05695 8.22173 3.27114L7.83948 1.82066C4.21532 2.77574 1.54199 6.07486 1.54199 10.0003H3.04199ZM6.99707 7.08524C6.99707 5.52854 7.5971 4.11366 8.57989 3.05657L7.48132 2.03522C6.25073 3.35885 5.49707 5.13487 5.49707 7.08524H6.99707Z",fill:"currentColor"})})]})}function Zt({children:e}){return t.jsx("div",{className:"relative p-6 bg-white z-1 dark:bg-gray-900 sm:p-0",children:t.jsxs("div",{className:"relative flex flex-col justify-center w-full h-screen lg:flex-row dark:bg-gray-900 sm:p-0",children:[e,t.jsx("div",{className:"items-center hidden w-full h-full lg:w-1/2 bg-brand-950 dark:bg-white/5 lg:grid",children:t.jsxs("div",{className:"relative flex items-center justify-center z-1",children:[t.jsx(Ft,{}),t.jsxs("div",{className:"flex flex-col items-center max-w-xs",children:[t.jsx(F,{to:"/",className:"block mb-4",children:t.jsx("img",{width:231,height:48,src:"/images/logo/auth-logo.svg",alt:"Logo"})}),t.jsx("p",{className:"text-center text-gray-400 dark:text-white/60",children:"Free and Open-Source Tailwind CSS Admin Dashboard Template"})]})]})}),t.jsx("div",{className:"fixed z-50 hidden bottom-6 right-6 sm:block",children:t.jsx(An,{})})]})})}const nt="-",Rn=e=>{const r=Pn(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const c=l.split(nt);return c[0]===""&&c.length!==1&&c.shift(),Bt(c,r)||In(l)},getConflictingClassGroupIds:(l,c)=>{const d=s[l]||[];return c&&n[l]?[...d,...n[l]]:d}}},Bt=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),a=n?Bt(e.slice(1),n):void 0;if(a)return a;if(r.validators.length===0)return;const i=e.join(nt);return(l=r.validators.find(({validator:c})=>c(i)))==null?void 0:l.classGroupId},vt=/^\[(.+)\]$/,In=e=>{if(vt.test(e)){const r=vt.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},Pn=e=>{const{theme:r,classGroups:s}=e,n={nextPart:new Map,validators:[]};for(const a in s)Ke(s[a],n,a,r);return n},Ke=(e,r,s,n)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?r:wt(r,a);i.classGroupId=s;return}if(typeof a=="function"){if(On(a)){Ke(a(n),r,s,n);return}r.validators.push({validator:a,classGroupId:s});return}Object.entries(a).forEach(([i,l])=>{Ke(l,wt(r,i),s,n)})})},wt=(e,r)=>{let s=e;return r.split(nt).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},On=e=>e.isThemeGetter,Mn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const a=(i,l)=>{s.set(i,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(i){let l=s.get(i);if(l!==void 0)return l;if((l=n.get(i))!==void 0)return a(i,l),l},set(i,l){s.has(i)?s.set(i,l):a(i,l)}}},We="!",Ye=":",zn=Ye.length,Vn=e=>{const{prefix:r,experimentalParseClassName:s}=e;let n=a=>{const i=[];let l=0,c=0,d=0,u;for(let k=0;k<a.length;k++){let x=a[k];if(l===0&&c===0){if(x===Ye){i.push(a.slice(d,k)),d=k+zn;continue}if(x==="/"){u=k;continue}}x==="["?l++:x==="]"?l--:x==="("?c++:x===")"&&c--}const m=i.length===0?a:a.substring(d),g=Hn(m),p=g!==m,f=u&&u>d?u-d:void 0;return{modifiers:i,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}};if(r){const a=r+Ye,i=n;n=l=>l.startsWith(a)?i(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(s){const a=n;n=i=>s({className:i,parseClassName:a})}return n},Hn=e=>e.endsWith(We)?e.substring(0,e.length-1):e.startsWith(We)?e.substring(1):e,Dn=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const a=[];let i=[];return n.forEach(l=>{l[0]==="["||r[l]?(a.push(...i.sort(),l),i=[]):i.push(l)}),a.push(...i.sort()),a}},$n=e=>({cache:Mn(e.cacheSize),parseClassName:Vn(e),sortModifiers:Dn(e),...Rn(e)}),Fn=/\s+/,Zn=(e,r)=>{const{parseClassName:s,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:i}=r,l=[],c=e.trim().split(Fn);let d="";for(let u=c.length-1;u>=0;u-=1){const m=c[u],{isExternal:g,modifiers:p,hasImportantModifier:f,baseClassName:k,maybePostfixModifierPosition:x}=s(m);if(g){d=m+(d.length>0?" "+d:d);continue}let j=!!x,S=n(j?k.substring(0,x):k);if(!S){if(!j){d=m+(d.length>0?" "+d:d);continue}if(S=n(k),!S){d=m+(d.length>0?" "+d:d);continue}j=!1}const w=i(p).join(":"),h=f?w+We:w,E=h+S;if(l.includes(E))continue;l.push(E);const N=a(S,j);for(let T=0;T<N.length;++T){const L=N[T];l.push(h+L)}d=m+(d.length>0?" "+d:d)}return d};function Bn(){let e=0,r,s,n="";for(;e<arguments.length;)(r=arguments[e++])&&(s=Ut(r))&&(n&&(n+=" "),n+=s);return n}const Ut=e=>{if(typeof e=="string")return e;let r,s="";for(let n=0;n<e.length;n++)e[n]&&(r=Ut(e[n]))&&(s&&(s+=" "),s+=r);return s};function Un(e,...r){let s,n,a,i=l;function l(d){const u=r.reduce((m,g)=>g(m),e());return s=$n(u),n=s.cache.get,a=s.cache.set,i=c,c(d)}function c(d){const u=n(d);if(u)return u;const m=Zn(d,s);return a(d,m),m}return function(){return i(Bn.apply(null,arguments))}}const O=e=>{const r=s=>s[e]||[];return r.isThemeGetter=!0,r},qt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qn=/^\d+\/\d+$/,Jn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Kn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>qn.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>!!e&&Number.isInteger(Number(e)),jt=e=>e.endsWith("%")&&A(e.slice(0,-1)),W=e=>Jn.test(e),Xn=()=>!0,Qn=e=>Gn.test(e)&&!Kn.test(e),at=()=>!1,ea=e=>Wn.test(e),ta=e=>Yn.test(e),ra=e=>!y(e)&&!v(e),sa=e=>he(e,Wt,at),y=e=>qt.test(e),te=e=>he(e,Yt,Qn),De=e=>he(e,ga,A),na=e=>he(e,Gt,at),aa=e=>he(e,Kt,ta),oa=e=>he(e,at,ea),v=e=>Jt.test(e),Se=e=>ge(e,Yt),ia=e=>ge(e,pa),la=e=>ge(e,Gt),ca=e=>ge(e,Wt),da=e=>ge(e,Kt),ua=e=>ge(e,xa,!0),he=(e,r,s)=>{const n=qt.exec(e);return n?n[1]?r(n[1]):s(n[2]):!1},ge=(e,r,s=!1)=>{const n=Jt.exec(e);return n?n[1]?r(n[1]):s:!1},Gt=e=>e==="position",ma=new Set(["image","url"]),Kt=e=>ma.has(e),ha=new Set(["length","size","percentage"]),Wt=e=>ha.has(e),Yt=e=>e==="length",ga=e=>e==="number",pa=e=>e==="family-name",xa=e=>e==="shadow",fa=()=>{const e=O("color"),r=O("font"),s=O("text"),n=O("font-weight"),a=O("tracking"),i=O("leading"),l=O("breakpoint"),c=O("container"),d=O("spacing"),u=O("radius"),m=O("shadow"),g=O("inset-shadow"),p=O("drop-shadow"),f=O("blur"),k=O("perspective"),x=O("aspect"),j=O("ease"),S=O("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],h=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],T=()=>[oe,"px","full","auto",v,y,d],L=()=>[ee,"none","subgrid",v,y],P=()=>["auto",{span:["full",ee,v,y]},v,y],M=()=>[ee,"auto",v,y],G=()=>["auto","min","max","fr",v,y],se=()=>[v,y,d],pe=()=>["start","end","center","between","around","evenly","stretch","baseline"],ne=()=>["start","end","center","stretch"],R=()=>[v,y,d],U=()=>["px",...R()],q=()=>["px","auto",...R()],Q=()=>[oe,"auto","px","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",v,y,d],I=()=>[e,v,y],Ae=()=>[jt,te],z=()=>["","none","full",u,v,y],H=()=>["",A,Se,te],ve=()=>["solid","dashed","dotted","double"],ot=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],it=()=>["","none",f,v,y],lt=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",v,y],we=()=>["none",A,v,y],je=()=>["none",A,v,y],Re=()=>[A,v,y],Ce=()=>[oe,"full","px",v,y,d];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[W],breakpoint:[W],color:[Xn],container:[W],"drop-shadow":[W],ease:["in","out","in-out"],font:[ra],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[W],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[W],shadow:[W],spacing:[A],text:[W],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oe,y,v,x]}],container:["container"],columns:[{columns:[A,y,v,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...h(),y,v]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[ee,"auto",v,y]}],basis:[{basis:[oe,"full","auto",v,y,c,d]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[A,oe,"auto","initial","none",y]}],grow:[{grow:["",A,v,y]}],shrink:[{shrink:["",A,v,y]}],order:[{order:[ee,"first","last","none",v,y]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:se()}],"gap-x":[{"gap-x":se()}],"gap-y":[{"gap-y":se()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...ne(),"baseline"]}],"align-self":[{self:["auto",...ne(),"baseline"]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[c,"screen",...Q()]}],"min-w":[{"min-w":[c,"screen","none",...Q()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...Q()]}],h:[{h:["screen",...Q()]}],"min-h":[{"min-h":["screen","none",...Q()]}],"max-h":[{"max-h":["screen",...Q()]}],"font-size":[{text:["base",s,Se,te]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,v,De]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jt,y]}],"font-family":[{font:[ia,y,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,v,y]}],"line-clamp":[{"line-clamp":[A,"none",v,De]}],leading:[{leading:[v,y,i,d]}],"list-image":[{"list-image":["none",v,y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",v,y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[A,"from-font","auto",v,te]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[A,"auto",v,y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:["px",...R()]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",v,y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",v,y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...h(),la,na]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",ca,sa]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ee,v,y],radial:["",v,y],conic:[ee,v,y]},da,aa]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:Ae()}],"gradient-via-pos":[{via:Ae()}],"gradient-to-pos":[{to:Ae()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[A,v,y]}],"outline-w":[{outline:["",A,Se,te]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,ua,oa]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",v,y,g]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[A,te]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":I()}],opacity:[{opacity:[A,v,y]}],"mix-blend":[{"mix-blend":[...ot(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ot()}],filter:[{filter:["","none",v,y]}],blur:[{blur:it()}],brightness:[{brightness:[A,v,y]}],contrast:[{contrast:[A,v,y]}],"drop-shadow":[{"drop-shadow":["","none",p,v,y]}],grayscale:[{grayscale:["",A,v,y]}],"hue-rotate":[{"hue-rotate":[A,v,y]}],invert:[{invert:["",A,v,y]}],saturate:[{saturate:[A,v,y]}],sepia:[{sepia:["",A,v,y]}],"backdrop-filter":[{"backdrop-filter":["","none",v,y]}],"backdrop-blur":[{"backdrop-blur":it()}],"backdrop-brightness":[{"backdrop-brightness":[A,v,y]}],"backdrop-contrast":[{"backdrop-contrast":[A,v,y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",A,v,y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,v,y]}],"backdrop-invert":[{"backdrop-invert":["",A,v,y]}],"backdrop-opacity":[{"backdrop-opacity":[A,v,y]}],"backdrop-saturate":[{"backdrop-saturate":[A,v,y]}],"backdrop-sepia":[{"backdrop-sepia":["",A,v,y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",v,y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[A,"initial",v,y]}],ease:[{ease:["linear","initial",j,v,y]}],delay:[{delay:[A,v,y]}],animate:[{animate:["none",S,v,y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,v,y]}],"perspective-origin":[{"perspective-origin":lt()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:je()}],"scale-x":[{"scale-x":je()}],"scale-y":[{"scale-y":je()}],"scale-z":[{"scale-z":je()}],"scale-3d":["scale-3d"],skew:[{skew:Re()}],"skew-x":[{"skew-x":Re()}],"skew-y":[{"skew-y":Re()}],transform:[{transform:[v,y,"","none","gpu","cpu"]}],"transform-origin":[{origin:lt()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",v,y]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",v,y]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[A,Se,te,De]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},ba=Un(fa);function Xt(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(s=Xt(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ya(){for(var e,r,s=0,n="",a=arguments.length;s<a;s++)(e=arguments[s])&&(r=Xt(e))&&(n&&(n+=" "),n+=r);return n}const ie=({htmlFor:e,children:r,className:s})=>t.jsx("label",{htmlFor:e,className:ya(ba("mb-1.5 block text-sm font-medium text-gray-700 dark:text-gray-400",s)),children:r}),le=({type:e="text",id:r,name:s,placeholder:n,value:a,onChange:i,className:l="",min:c,max:d,step:u,disabled:m=!1,success:g=!1,error:p=!1,hint:f})=>{let k=` h-9 w-full rounded-lg border appearance-none px-3 py-2 text-sm shadow-theme-xs placeholder:text-gray-400 focus:outline-hidden focus:ring-3 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 ${l}`;return m?k+=" text-gray-500 border-gray-300 opacity-40 bg-gray-100 cursor-not-allowed dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700 opacity-40":p?k+=" border-error-500 focus:border-error-300 focus:ring-error-500/20 dark:text-error-400 dark:border-error-500 dark:focus:border-error-800":g?k+=" border-success-500 focus:border-success-300 focus:ring-success-500/20 dark:text-success-400 dark:border-success-500 dark:focus:border-success-800":k+=" bg-transparent text-gray-800 border-gray-300 focus:border-brand-300 focus:ring-brand-500/20 dark:border-gray-700 dark:text-white/90 dark:focus:border-brand-800",t.jsxs("div",{className:"relative",children:[t.jsx("input",{type:e,id:r,name:s,placeholder:n,value:a,onChange:i,min:c,max:d,step:u,disabled:m,className:k}),f&&t.jsx("p",{className:`mt-1.5 text-xs ${p?"text-error-500":g?"text-success-500":"text-gray-500"}`,children:f})]})},Qt=({label:e,checked:r,id:s,onChange:n,className:a="",disabled:i=!1})=>t.jsxs("label",{className:`flex items-center space-x-3 group cursor-pointer ${i?"cursor-not-allowed opacity-60":""}`,children:[t.jsxs("div",{className:"relative w-4 h-4",children:[t.jsx("input",{id:s,type:"checkbox",className:`w-4 h-4 appearance-none cursor-pointer dark:border-gray-700 border border-gray-300 checked:border-transparent rounded-md checked:bg-brand-500 disabled:opacity-60
|
||
${a}`,checked:r,onChange:l=>n(l.target.checked),disabled:i}),r&&t.jsx("svg",{className:"absolute transform -translate-x-1/2 -translate-y-1/2 pointer-events-none top-1/2 left-1/2",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:t.jsx("path",{d:"M11.6666 3.5L5.24992 9.91667L2.33325 7",stroke:"white",strokeWidth:"1.94437",strokeLinecap:"round",strokeLinejoin:"round"})}),i&&t.jsx("svg",{className:"absolute transform -translate-x-1/2 -translate-y-1/2 pointer-events-none top-1/2 left-1/2",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:t.jsx("path",{d:"M11.6666 3.5L5.24992 9.91667L2.33325 7",stroke:"#E4E7EC",strokeWidth:"2.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e&&t.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-gray-200",children:e})]}),er=o.forwardRef(({children:e,size:r="md",variant:s="primary",startIcon:n,endIcon:a,onClick:i,className:l="",disabled:c=!1,type:d="button"},u)=>{const m={sm:"px-3 py-1.5 text-xs h-8",md:"px-3 py-2 text-sm h-9"},g={primary:"bg-brand-500 text-white shadow-theme-xs hover:bg-brand-600 disabled:bg-brand-300",outline:"bg-white text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-400 dark:ring-gray-700 dark:hover:bg-white/[0.03] dark:hover:text-gray-300",secondary:"bg-gray-500 text-white border border-gray-500 hover:bg-gray-600 hover:border-gray-600 dark:bg-gray-500 dark:border-gray-500 dark:hover:bg-gray-600 dark:hover:border-gray-600",success:"bg-success-500 text-white shadow-theme-xs hover:bg-success-600 disabled:bg-success-300"};return t.jsxs("button",{ref:u,type:d,className:`inline-flex items-center justify-center gap-2 rounded-lg transition ${l} ${m[r]} ${g[s]} ${c?"cursor-not-allowed opacity-50":""}`,onClick:i,disabled:c,children:[n&&t.jsx("span",{className:"flex items-center",children:n}),e,a&&t.jsx("span",{className:"flex items-center",children:a})]})});er.displayName="Button";function va(){const[e,r]=o.useState(!1),[s,n]=o.useState(!1),[a,i]=o.useState(""),[l,c]=o.useState(""),[d,u]=o.useState(""),m=Qe(),g=Ne(),{login:p,loading:f}=V(),k=async x=>{var j,S;if(x.preventDefault(),u(""),!a||!l){u("Please enter both email and password");return}try{await p(a,l);const w=((S=(j=g.state)==null?void 0:j.from)==null?void 0:S.pathname)||"/";m(w,{replace:!0})}catch(w){u(w.message||"Login failed. Please check your credentials.")}};return t.jsxs("div",{className:"flex flex-col flex-1",children:[t.jsx("div",{className:"w-full max-w-md pt-10 mx-auto"}),t.jsx("div",{className:"flex flex-col justify-center flex-1 w-full max-w-md mx-auto",children:t.jsxs("div",{children:[t.jsxs("div",{className:"mb-5 sm:mb-8",children:[t.jsx("h1",{className:"mb-2 font-semibold text-gray-800 text-title-sm dark:text-white/90 sm:text-title-md",children:"Sign In"}),t.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Enter your email and password to sign in!"})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-5",children:[t.jsxs("button",{className:"inline-flex items-center justify-center gap-3 py-3 text-sm font-normal text-gray-700 transition-colors bg-gray-100 rounded-lg px-7 hover:bg-gray-200 hover:text-gray-800 dark:bg-white/5 dark:text-white/90 dark:hover:bg-white/10",children:[t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M18.7511 10.1944C18.7511 9.47495 18.6915 8.94995 18.5626 8.40552H10.1797V11.6527H15.1003C15.0011 12.4597 14.4654 13.675 13.2749 14.4916L13.2582 14.6003L15.9087 16.6126L16.0924 16.6305C17.7788 15.1041 18.7511 12.8583 18.7511 10.1944Z",fill:"#4285F4"}),t.jsx("path",{d:"M10.1788 18.75C12.5895 18.75 14.6133 17.9722 16.0915 16.6305L13.274 14.4916C12.5201 15.0068 11.5081 15.3666 10.1788 15.3666C7.81773 15.3666 5.81379 13.8402 5.09944 11.7305L4.99473 11.7392L2.23868 13.8295L2.20264 13.9277C3.67087 16.786 6.68674 18.75 10.1788 18.75Z",fill:"#34A853"}),t.jsx("path",{d:"M5.10014 11.7305C4.91165 11.186 4.80257 10.6027 4.80257 9.99992C4.80257 9.3971 4.91165 8.81379 5.09022 8.26935L5.08523 8.1534L2.29464 6.02954L2.20333 6.0721C1.5982 7.25823 1.25098 8.5902 1.25098 9.99992C1.25098 11.4096 1.5982 12.7415 2.20333 13.9277L5.10014 11.7305Z",fill:"#FBBC05"}),t.jsx("path",{d:"M10.1789 4.63331C11.8554 4.63331 12.9864 5.34303 13.6312 5.93612L16.1511 3.525C14.6035 2.11528 12.5895 1.25 10.1789 1.25C6.68676 1.25 3.67088 3.21387 2.20264 6.07218L5.08953 8.26943C5.81381 6.15972 7.81776 4.63331 10.1789 4.63331Z",fill:"#EB4335"})]}),"Sign in with Google"]}),t.jsxs("button",{className:"inline-flex items-center justify-center gap-3 py-3 text-sm font-normal text-gray-700 transition-colors bg-gray-100 rounded-lg px-7 hover:bg-gray-200 hover:text-gray-800 dark:bg-white/5 dark:text-white/90 dark:hover:bg-white/10",children:[t.jsx("svg",{width:"21",className:"fill-current",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M15.6705 1.875H18.4272L12.4047 8.75833L19.4897 18.125H13.9422L9.59717 12.4442L4.62554 18.125H1.86721L8.30887 10.7625L1.51221 1.875H7.20054L11.128 7.0675L15.6705 1.875ZM14.703 16.475H16.2305L6.37054 3.43833H4.73137L14.703 16.475Z"})}),"Sign in with X"]})]}),t.jsxs("div",{className:"relative py-3 sm:py-5",children:[t.jsx("div",{className:"absolute inset-0 flex items-center",children:t.jsx("div",{className:"w-full border-t border-gray-200 dark:border-gray-800"})}),t.jsx("div",{className:"relative flex justify-center text-sm",children:t.jsx("span",{className:"p-2 text-gray-400 bg-white dark:bg-gray-900 sm:px-5 sm:py-2",children:"Or"})})]}),t.jsx("form",{onSubmit:k,children:t.jsxs("div",{className:"space-y-6",children:[d&&t.jsx("div",{className:"p-3 text-sm text-red-600 bg-red-50 border border-red-200 rounded-lg dark:bg-red-900/20 dark:text-red-400 dark:border-red-800",children:d}),t.jsxs("div",{children:[t.jsxs(ie,{children:["Email ",t.jsx("span",{className:"text-error-500",children:"*"})," "]}),t.jsx(le,{type:"email",value:a,onChange:x=>i(x.target.value),placeholder:"info@gmail.com",required:!0})]}),t.jsxs("div",{children:[t.jsxs(ie,{children:["Password ",t.jsx("span",{className:"text-error-500",children:"*"})," "]}),t.jsxs("div",{className:"relative",children:[t.jsx(le,{type:e?"text":"password",value:l,onChange:x=>c(x.target.value),placeholder:"Enter your password",required:!0}),t.jsx("span",{onClick:()=>r(!e),className:"absolute z-30 -translate-y-1/2 cursor-pointer right-4 top-1/2",children:e?t.jsx(Vt,{className:"fill-gray-500 dark:fill-gray-400 size-5"}):t.jsx(Ht,{className:"fill-gray-500 dark:fill-gray-400 size-5"})})]})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(Qt,{checked:s,onChange:n}),t.jsx("span",{className:"block font-normal text-gray-700 text-theme-sm dark:text-gray-400",children:"Keep me logged in"})]}),t.jsx(F,{to:"/reset-password",className:"text-sm text-brand-500 hover:text-brand-600 dark:text-brand-400",children:"Forgot password?"})]}),t.jsx("div",{children:t.jsx(er,{className:"w-full",size:"sm",type:"submit",disabled:f,children:f?"Signing in...":"Sign in"})})]})}),t.jsx("div",{className:"mt-5",children:t.jsxs("p",{className:"text-sm font-normal text-center text-gray-700 dark:text-gray-400 sm:text-start",children:["Don't have an account? ","",t.jsx(F,{to:"/signup",className:"text-brand-500 hover:text-brand-600 dark:text-brand-400",children:"Sign Up"})]})})]})]})})]})}function wa(){return t.jsxs(t.Fragment,{children:[t.jsx(st,{title:"React.js SignIn Dashboard | TailAdmin - Next.js Admin Dashboard Template",description:"This is React.js SignIn Tables Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),t.jsx(Zt,{children:t.jsx(va,{})})]})}function ja(){const[e,r]=o.useState(!1),[s,n]=o.useState(!1),[a,i]=o.useState({firstName:"",lastName:"",email:"",password:"",username:""}),[l,c]=o.useState(""),d=Qe(),{register:u,loading:m}=V(),g=f=>{const{name:k,value:x}=f.target;i(j=>({...j,[k]:x}))},p=async f=>{if(f.preventDefault(),c(""),!a.email||!a.password||!a.firstName||!a.lastName){c("Please fill in all required fields");return}if(!s){c("Please agree to the Terms and Conditions");return}try{const k=a.username||a.email.split("@")[0];await u({email:a.email,password:a.password,username:k,first_name:a.firstName,last_name:a.lastName}),d("/",{replace:!0})}catch(k){c(k.message||"Registration failed. Please try again.")}};return t.jsxs("div",{className:"flex flex-col flex-1 w-full overflow-y-auto lg:w-1/2 no-scrollbar",children:[t.jsx("div",{className:"w-full max-w-md mx-auto mb-5 sm:pt-10",children:t.jsxs(F,{to:"/",className:"inline-flex items-center text-sm text-gray-500 transition-colors hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300",children:[t.jsx(rs,{className:"size-5"}),"Back to dashboard"]})}),t.jsx("div",{className:"flex flex-col justify-center flex-1 w-full max-w-md mx-auto",children:t.jsxs("div",{children:[t.jsxs("div",{className:"mb-5 sm:mb-8",children:[t.jsx("h1",{className:"mb-2 font-semibold text-gray-800 text-title-sm dark:text-white/90 sm:text-title-md",children:"Sign Up"}),t.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Enter your email and password to sign up!"})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-5",children:[t.jsxs("button",{className:"inline-flex items-center justify-center gap-3 py-3 text-sm font-normal text-gray-700 transition-colors bg-gray-100 rounded-lg px-7 hover:bg-gray-200 hover:text-gray-800 dark:bg-white/5 dark:text-white/90 dark:hover:bg-white/10",children:[t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M18.7511 10.1944C18.7511 9.47495 18.6915 8.94995 18.5626 8.40552H10.1797V11.6527H15.1003C15.0011 12.4597 14.4654 13.675 13.2749 14.4916L13.2582 14.6003L15.9087 16.6126L16.0924 16.6305C17.7788 15.1041 18.7511 12.8583 18.7511 10.1944Z",fill:"#4285F4"}),t.jsx("path",{d:"M10.1788 18.75C12.5895 18.75 14.6133 17.9722 16.0915 16.6305L13.274 14.4916C12.5201 15.0068 11.5081 15.3666 10.1788 15.3666C7.81773 15.3666 5.81379 13.8402 5.09944 11.7305L4.99473 11.7392L2.23868 13.8295L2.20264 13.9277C3.67087 16.786 6.68674 18.75 10.1788 18.75Z",fill:"#34A853"}),t.jsx("path",{d:"M5.10014 11.7305C4.91165 11.186 4.80257 10.6027 4.80257 9.99992C4.80257 9.3971 4.91165 8.81379 5.09022 8.26935L5.08523 8.1534L2.29464 6.02954L2.20333 6.0721C1.5982 7.25823 1.25098 8.5902 1.25098 9.99992C1.25098 11.4096 1.5982 12.7415 2.20333 13.9277L5.10014 11.7305Z",fill:"#FBBC05"}),t.jsx("path",{d:"M10.1789 4.63331C11.8554 4.63331 12.9864 5.34303 13.6312 5.93612L16.1511 3.525C14.6035 2.11528 12.5895 1.25 10.1789 1.25C6.68676 1.25 3.67088 3.21387 2.20264 6.07218L5.08953 8.26943C5.81381 6.15972 7.81776 4.63331 10.1789 4.63331Z",fill:"#EB4335"})]}),"Sign up with Google"]}),t.jsxs("button",{className:"inline-flex items-center justify-center gap-3 py-3 text-sm font-normal text-gray-700 transition-colors bg-gray-100 rounded-lg px-7 hover:bg-gray-200 hover:text-gray-800 dark:bg-white/5 dark:text-white/90 dark:hover:bg-white/10",children:[t.jsx("svg",{width:"21",className:"fill-current",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M15.6705 1.875H18.4272L12.4047 8.75833L19.4897 18.125H13.9422L9.59717 12.4442L4.62554 18.125H1.86721L8.30887 10.7625L1.51221 1.875H7.20054L11.128 7.0675L15.6705 1.875ZM14.703 16.475H16.2305L6.37054 3.43833H4.73137L14.703 16.475Z"})}),"Sign up with X"]})]}),t.jsxs("div",{className:"relative py-3 sm:py-5",children:[t.jsx("div",{className:"absolute inset-0 flex items-center",children:t.jsx("div",{className:"w-full border-t border-gray-200 dark:border-gray-800"})}),t.jsx("div",{className:"relative flex justify-center text-sm",children:t.jsx("span",{className:"p-2 text-gray-400 bg-white dark:bg-gray-900 sm:px-5 sm:py-2",children:"Or"})})]}),t.jsx("form",{onSubmit:p,children:t.jsxs("div",{className:"space-y-5",children:[l&&t.jsx("div",{className:"p-3 text-sm text-red-600 bg-red-50 border border-red-200 rounded-lg dark:bg-red-900/20 dark:text-red-400 dark:border-red-800",children:l}),t.jsxs("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2",children:[t.jsxs("div",{className:"sm:col-span-1",children:[t.jsxs(ie,{children:["First Name",t.jsx("span",{className:"text-error-500",children:"*"})]}),t.jsx(le,{type:"text",id:"firstName",name:"firstName",value:a.firstName,onChange:g,placeholder:"Enter your first name",required:!0})]}),t.jsxs("div",{className:"sm:col-span-1",children:[t.jsxs(ie,{children:["Last Name",t.jsx("span",{className:"text-error-500",children:"*"})]}),t.jsx(le,{type:"text",id:"lastName",name:"lastName",value:a.lastName,onChange:g,placeholder:"Enter your last name",required:!0})]})]}),t.jsxs("div",{children:[t.jsxs(ie,{children:["Email",t.jsx("span",{className:"text-error-500",children:"*"})]}),t.jsx(le,{type:"email",id:"email",name:"email",value:a.email,onChange:g,placeholder:"Enter your email",required:!0})]}),t.jsxs("div",{children:[t.jsxs(ie,{children:["Password",t.jsx("span",{className:"text-error-500",children:"*"})]}),t.jsxs("div",{className:"relative",children:[t.jsx(le,{placeholder:"Enter your password",type:e?"text":"password",id:"password",name:"password",value:a.password,onChange:g,required:!0}),t.jsx("span",{onClick:()=>r(!e),className:"absolute z-30 -translate-y-1/2 cursor-pointer right-4 top-1/2",children:e?t.jsx(Vt,{className:"fill-gray-500 dark:fill-gray-400 size-5"}):t.jsx(Ht,{className:"fill-gray-500 dark:fill-gray-400 size-5"})})]})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(Qt,{className:"w-5 h-5",checked:s,onChange:n}),t.jsxs("p",{className:"inline-block font-normal text-gray-500 dark:text-gray-400",children:["By creating an account means you agree to the"," ",t.jsx("span",{className:"text-gray-800 dark:text-white/90",children:"Terms and Conditions,"})," ","and our"," ",t.jsx("span",{className:"text-gray-800 dark:text-white",children:"Privacy Policy"})]})]}),t.jsx("div",{children:t.jsx("button",{type:"submit",disabled:m,className:"flex items-center justify-center w-full px-4 py-3 text-sm font-medium text-white transition rounded-lg bg-brand-500 shadow-theme-xs hover:bg-brand-600 disabled:opacity-50 disabled:cursor-not-allowed",children:m?"Signing up...":"Sign Up"})})]})}),t.jsx("div",{className:"mt-5",children:t.jsxs("p",{className:"text-sm font-normal text-center text-gray-700 dark:text-gray-400 sm:text-start",children:["Already have an account? ","",t.jsx(F,{to:"/signin",className:"text-brand-500 hover:text-brand-600 dark:text-brand-400",children:"Sign In"})]})})]})]})})]})}function Ca(){return t.jsxs(t.Fragment,{children:[t.jsx(st,{title:"React.js SignUp Dashboard | TailAdmin - Next.js Admin Dashboard Template",description:"This is React.js SignUp Tables Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),t.jsx(Zt,{children:t.jsx(ja,{})})]})}function ka(){return t.jsxs(t.Fragment,{children:[t.jsx(st,{title:"React.js 404 Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js 404 Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),t.jsxs("div",{className:"relative flex flex-col items-center justify-center min-h-screen p-6 overflow-hidden z-1",children:[t.jsx(Ft,{}),t.jsxs("div",{className:"mx-auto w-full max-w-[242px] text-center sm:max-w-[472px]",children:[t.jsx("h1",{className:"mb-8 font-bold text-gray-800 text-title-md dark:text-white/90 xl:text-title-2xl",children:"ERROR"}),t.jsx("img",{src:"/images/error/404.svg",alt:"404",className:"dark:hidden"}),t.jsx("img",{src:"/images/error/404-dark.svg",alt:"404",className:"hidden dark:block"}),t.jsx("p",{className:"mt-10 mb-6 text-base text-gray-700 dark:text-gray-400 sm:text-lg",children:"We can’t seem to find the page you are looking for!"}),t.jsx(F,{to:"/",className:"inline-flex items-center justify-center rounded-lg border border-gray-300 bg-white px-5 py-3.5 text-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200",children:"Back to Home Page"})]}),t.jsxs("p",{className:"absolute text-sm text-center text-gray-500 -translate-x-1/2 bottom-6 left-1/2 dark:text-gray-400",children:["© ",new Date().getFullYear()," - TailAdmin"]})]})]})}const _a=o.lazy(()=>C(()=>import("./Home-whN-JQCS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),Sa=o.lazy(()=>C(()=>import("./Dashboard-De9JCtst.js"),__vite__mapDeps([10,1,2,11,12,6,8,13,3,4,9,14]))),Ea=o.lazy(()=>C(()=>import("./Keywords-CeSsLZuH.js"),__vite__mapDeps([15,1,16,17,18,19,20,6,8,21,22,23,14,24,25,26,27,4]))),Na=o.lazy(()=>C(()=>import("./Clusters-6rNtI8_f.js"),__vite__mapDeps([28,1,16,17,18,19,20,6,8,21,22,23,25,26,9,24,14]))),Ta=o.lazy(()=>C(()=>import("./Ideas-B_Kl4H-C.js"),__vite__mapDeps([29,1,16,17,18,19,20,6,8,21,22,23,25,26,14]))),La=o.lazy(()=>C(()=>import("./KeywordOpportunities-B0Ysyppu.js"),__vite__mapDeps([30,1,16,17,18,19,20,6,8,21,22,23,24,14]))),Aa=o.lazy(()=>C(()=>import("./Dashboard-Ccv705lU.js"),__vite__mapDeps([31,1,2,11,12,6,8,13,3,4,32,7,21,14]))),Ra=o.lazy(()=>C(()=>import("./Tasks-Bv8qVyPX.js"),__vite__mapDeps([33,1,16,17,18,19,20,6,8,21,22,23,25,26,27,14]))),Ia=o.lazy(()=>C(()=>import("./Content-g0lJ60Iw.js"),__vite__mapDeps([34,1,16,17,18,19,20,6,8,21,22,23,7,26,14]))),Pa=o.lazy(()=>C(()=>import("./ContentView-CdFYDYSF.js"),__vite__mapDeps([35,1,32,6,36,7,22])));o.lazy(()=>C(()=>import("./Drafts-CJWMSCHe.js"),__vite__mapDeps([37,1,33,16,17,18,19,20,6,8,21,22,23,25,26,27,14])));const Oa=o.lazy(()=>C(()=>import("./Images--ke2KcFJ.js"),__vite__mapDeps([38,1,16,17,18,19,20,6,8,21,22,23,7,36,27,14]))),Ma=o.lazy(()=>C(()=>import("./Published-AR-4o8pH.js"),__vite__mapDeps([39,1,33,16,17,18,19,20,6,8,21,22,23,25,26,27,14]))),za=o.lazy(()=>C(()=>import("./Dashboard-ockVXQMI.js"),__vite__mapDeps([40,1,2]))),Va=o.lazy(()=>C(()=>import("./Prompts-R_ZfvWlm.js"),__vite__mapDeps([41,1]))),Ha=o.lazy(()=>C(()=>import("./AuthorProfiles-B2gmK5S5.js"),__vite__mapDeps([42,1,5,25,19,17,23,20]))),Da=o.lazy(()=>C(()=>import("./Profile-DVt77HkG.js"),__vite__mapDeps([43,1,2]))),$a=o.lazy(()=>C(()=>import("./Strategies-BZYqkdF8.js"),__vite__mapDeps([44,1,2]))),Fa=o.lazy(()=>C(()=>import("./ImageTesting-HoEAYM73.js"),__vite__mapDeps([45,1,2]))),Za=o.lazy(()=>C(()=>import("./Credits-DFf6S4rj.js"),__vite__mapDeps([46,1,5]))),Ba=o.lazy(()=>C(()=>import("./Transactions-CwNUiNRI.js"),__vite__mapDeps([47,1,5,23]))),Ua=o.lazy(()=>C(()=>import("./Usage-D7sccDmW.js"),__vite__mapDeps([48,1,5,23]))),qa=o.lazy(()=>C(()=>import("./SeedKeywords-Csm_woDL.js"),__vite__mapDeps([49,1,5,23]))),Ja=o.lazy(()=>C(()=>import("./Industries-CnSbmgkW.js"),__vite__mapDeps([50,1,5,23,14,13]))),Ga=o.lazy(()=>C(()=>import("./Schedules-Dvcqjde1.js"),__vite__mapDeps([51,1,2]))),Ka=o.lazy(()=>C(()=>import("./General-BBayzDdO.js"),__vite__mapDeps([52,1,2]))),Wa=o.lazy(()=>C(()=>import("./Users-DAHD6HuE.js"),__vite__mapDeps([53,1,5,23]))),Ya=o.lazy(()=>C(()=>import("./Subscriptions-CaY7WKA-.js"),__vite__mapDeps([54,1,5,23]))),Xa=o.lazy(()=>C(()=>import("./System-CIs-5tlM.js"),__vite__mapDeps([55,1,5]))),Qa=o.lazy(()=>C(()=>import("./Account-Bf9vAOTf.js"),__vite__mapDeps([56,1,5]))),eo=o.lazy(()=>C(()=>import("./Modules-DIZr9U_2.js"),__vite__mapDeps([57,1,5]))),to=o.lazy(()=>C(()=>import("./AI-_VUGtumU.js"),__vite__mapDeps([58,1,5]))),ro=o.lazy(()=>C(()=>import("./Plans-Do__nAhH.js"),__vite__mapDeps([59,1,60]))),so=o.lazy(()=>C(()=>import("./Industries-By4OH9TT.js"),__vite__mapDeps([61,1,5,23]))),no=o.lazy(()=>C(()=>import("./Status-DYkmWb93.js"),__vite__mapDeps([62,1,2]))),ao=o.lazy(()=>C(()=>import("./Integration-BSb6sI6r.js"),__vite__mapDeps([63,1,64,19,25,17,65]))),oo=o.lazy(()=>C(()=>import("./Sites-D0gltSUZ.js"),__vite__mapDeps([66,1,64,23,25,19,17,65]))),io=o.lazy(()=>C(()=>import("./ImportExport-Cqa8FqjF.js"),__vite__mapDeps([67,1,2]))),lo=o.lazy(()=>C(()=>import("./Help-Bp9s-K_a.js"),__vite__mapDeps([68,1,5,23,6,7,9]))),co=o.lazy(()=>C(()=>import("./Docs-BPC7WjsH.js"),__vite__mapDeps([69,1,2]))),uo=o.lazy(()=>C(()=>import("./SystemTesting-CzneBS1_.js"),__vite__mapDeps([70,1,2]))),mo=o.lazy(()=>C(()=>import("./FunctionTesting-CAuVGGAW.js"),__vite__mapDeps([71,1,2]))),ho=o.lazy(()=>C(()=>import("./Components-BBHjo_f1.js"),__vite__mapDeps([72,1,18,19,73,5]))),go=o.lazy(()=>C(()=>import("./Alerts-FnEFN6sg.js"),__vite__mapDeps([74,1,2,65]))),po=o.lazy(()=>C(()=>import("./Avatars-Dlp6SnrA.js"),__vite__mapDeps([75,1,2]))),xo=o.lazy(()=>C(()=>import("./Badges-84stX2QT.js"),__vite__mapDeps([76,1,23,20,2]))),fo=o.lazy(()=>C(()=>import("./Breadcrumb-BcD4n73v.js"),__vite__mapDeps([77,1,2]))),bo=o.lazy(()=>C(()=>import("./Buttons-G20eaxqT.js"),__vite__mapDeps([78,1,2,32]))),yo=o.lazy(()=>C(()=>import("./ButtonsGroup-DYSVSlOo.js"),__vite__mapDeps([79,1,2]))),vo=o.lazy(()=>C(()=>import("./Cards-BuCqS-1e.js"),__vite__mapDeps([80,1,2,5]))),wo=o.lazy(()=>C(()=>import("./Carousel-C8u3pWcY.js"),__vite__mapDeps([81,1,2]))),jo=o.lazy(()=>C(()=>import("./Dropdowns-CFWhd3dT.js"),__vite__mapDeps([82,1,2]))),Co=o.lazy(()=>C(()=>import("./Images-Dv7Nk8FN.js"),__vite__mapDeps([83,1,2]))),ko=o.lazy(()=>C(()=>import("./Links-_Jn60S3o.js"),__vite__mapDeps([84,1,2]))),_o=o.lazy(()=>C(()=>import("./List-BHvHi588.js"),__vite__mapDeps([85,1,2]))),So=o.lazy(()=>C(()=>import("./Modals-Dp3aGLP0.js"),__vite__mapDeps([86,1,2,19,18]))),Ct=o.lazy(()=>C(()=>import("./Notifications-CxC2JjHH.js"),__vite__mapDeps([87,1,65]))),Eo=o.lazy(()=>C(()=>import("./Pagination-DBEhb4FN.js"),__vite__mapDeps([88,1,2,73]))),No=o.lazy(()=>C(()=>import("./Popovers-Bvm5pvzs.js"),__vite__mapDeps([89,1,2]))),To=o.lazy(()=>C(()=>import("./PricingTable-D5RdAFz1.js"),__vite__mapDeps([90,1,2,60]))),Lo=o.lazy(()=>C(()=>import("./Progressbar-CgPnNdeb.js"),__vite__mapDeps([91,1,2,11]))),Ao=o.lazy(()=>C(()=>import("./Ribbons-CUwwU4TT.js"),__vite__mapDeps([92,1,2]))),Ro=o.lazy(()=>C(()=>import("./Spinners-gwHZgAUa.js"),__vite__mapDeps([93,1,2]))),Io=o.lazy(()=>C(()=>import("./Tabs-BXBDFIVq.js"),__vite__mapDeps([94,1,2]))),Po=o.lazy(()=>C(()=>import("./Tooltips-BSWxoQ9h.js"),__vite__mapDeps([95,1,2,13]))),Oo=o.lazy(()=>C(()=>import("./Videos-CPKE-xOo.js"),__vite__mapDeps([96,1,2])));function Mo(){return t.jsxs(t.Fragment,{children:[t.jsx(Ln,{}),t.jsx(kn,{}),t.jsx(or,{children:t.jsxs(At,{children:[t.jsx(Nn,{}),t.jsxs(ir,{children:[t.jsx(b,{path:"/signin",element:t.jsx(wa,{})}),t.jsx(b,{path:"/signup",element:t.jsx(Ca,{})}),t.jsxs(b,{element:t.jsx(Tn,{children:t.jsx(En,{})}),children:[t.jsx(b,{index:!0,path:"/",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(_a,{})})}),t.jsx(b,{path:"/planner",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Sa,{})})}),t.jsx(b,{path:"/planner/keywords",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ea,{})})}),t.jsx(b,{path:"/planner/clusters",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Na,{})})}),t.jsx(b,{path:"/planner/ideas",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ta,{})})}),t.jsx(b,{path:"/writer",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Aa,{})})}),t.jsx(b,{path:"/writer/tasks",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ra,{})})}),t.jsx(b,{path:"/writer/content",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ia,{})})}),t.jsx(b,{path:"/writer/content/:id",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Pa,{})})}),t.jsx(b,{path:"/writer/drafts",element:t.jsx(kt,{to:"/writer/content",replace:!0})}),t.jsx(b,{path:"/writer/images",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Oa,{})})}),t.jsx(b,{path:"/writer/published",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ma,{})})}),t.jsx(b,{path:"/thinker",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(za,{})})}),t.jsx(b,{path:"/thinker/prompts",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Va,{})})}),t.jsx(b,{path:"/thinker/author-profiles",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ha,{})})}),t.jsx(b,{path:"/thinker/profile",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Da,{})})}),t.jsx(b,{path:"/thinker/strategies",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx($a,{})})}),t.jsx(b,{path:"/thinker/image-testing",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Fa,{})})}),t.jsx(b,{path:"/billing/credits",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Za,{})})}),t.jsx(b,{path:"/billing/transactions",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ba,{})})}),t.jsx(b,{path:"/billing/usage",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ua,{})})}),t.jsx(b,{path:"/reference/seed-keywords",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(qa,{})})}),t.jsx(b,{path:"/planner/keyword-opportunities",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(La,{})})}),t.jsx(b,{path:"/reference/industries",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ja,{})})}),t.jsx(b,{path:"/schedules",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ga,{})})}),t.jsx(b,{path:"/settings",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ka,{})})}),t.jsx(b,{path:"/settings/users",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Wa,{})})}),t.jsx(b,{path:"/settings/subscriptions",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ya,{})})}),t.jsx(b,{path:"/settings/system",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Xa,{})})}),t.jsx(b,{path:"/settings/account",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Qa,{})})}),t.jsx(b,{path:"/settings/modules",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(eo,{})})}),t.jsx(b,{path:"/settings/ai",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(to,{})})}),t.jsx(b,{path:"/settings/plans",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(ro,{})})}),t.jsx(b,{path:"/settings/industries",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(so,{})})}),t.jsx(b,{path:"/settings/status",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(no,{})})}),t.jsx(b,{path:"/settings/integration",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(ao,{})})}),t.jsx(b,{path:"/settings/sites",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(oo,{})})}),t.jsx(b,{path:"/settings/import-export",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(io,{})})}),t.jsx(b,{path:"/help",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(lo,{})})}),t.jsx(b,{path:"/help/docs",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(co,{})})}),t.jsx(b,{path:"/help/system-testing",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(uo,{})})}),t.jsx(b,{path:"/help/function-testing",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(mo,{})})}),t.jsx(b,{path:"/ui-elements/alerts",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(go,{})})}),t.jsx(b,{path:"/ui-elements/avatars",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(po,{})})}),t.jsx(b,{path:"/ui-elements/badges",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(xo,{})})}),t.jsx(b,{path:"/ui-elements/breadcrumb",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(fo,{})})}),t.jsx(b,{path:"/ui-elements/buttons",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(bo,{})})}),t.jsx(b,{path:"/ui-elements/buttons-group",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(yo,{})})}),t.jsx(b,{path:"/ui-elements/cards",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(vo,{})})}),t.jsx(b,{path:"/ui-elements/carousel",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(wo,{})})}),t.jsx(b,{path:"/ui-elements/dropdowns",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(jo,{})})}),t.jsx(b,{path:"/ui-elements/images",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Co,{})})}),t.jsx(b,{path:"/ui-elements/links",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(ko,{})})}),t.jsx(b,{path:"/ui-elements/list",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(_o,{})})}),t.jsx(b,{path:"/ui-elements/modals",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(So,{})})}),t.jsx(b,{path:"/ui-elements/notifications",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ct,{})})}),t.jsx(b,{path:"/ui-elements/pagination",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Eo,{})})}),t.jsx(b,{path:"/ui-elements/popovers",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(No,{})})}),t.jsx(b,{path:"/ui-elements/pricing-table",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(To,{})})}),t.jsx(b,{path:"/ui-elements/progressbar",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Lo,{})})}),t.jsx(b,{path:"/ui-elements/ribbons",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ao,{})})}),t.jsx(b,{path:"/ui-elements/spinners",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ro,{})})}),t.jsx(b,{path:"/ui-elements/tabs",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Io,{})})}),t.jsx(b,{path:"/ui-elements/tooltips",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Po,{})})}),t.jsx(b,{path:"/ui-elements/videos",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Oo,{})})}),t.jsx(b,{path:"/components",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(ho,{})})}),t.jsx(b,{path:"/notifications",element:t.jsx(o.Suspense,{fallback:null,children:t.jsx(Ct,{})})})]}),t.jsx(b,{path:"*",element:t.jsx(ka,{})})]})]})})]})}function zo({id:e,variant:r,title:s,message:n,onClose:a}){o.useEffect(()=>{const c=setTimeout(()=>{a(e)},5e3);return()=>clearTimeout(c)},[e,a]);const l={success:{container:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 text-gray-800 dark:text-white shadow-lg",icon:t.jsx("div",{className:"flex-shrink-0",children:t.jsx("svg",{className:"w-5 h-5 text-success-500",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})})},error:{container:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 text-gray-800 dark:text-white shadow-lg",icon:t.jsx("div",{className:"flex-shrink-0",children:t.jsx("svg",{className:"w-5 h-5 text-error-500",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})})},warning:{container:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 text-gray-800 dark:text-white shadow-lg",icon:t.jsx("div",{className:"flex-shrink-0",children:t.jsx("svg",{className:"w-5 h-5 text-warning-500",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})})})},info:{container:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 text-gray-800 dark:text-white shadow-lg",icon:t.jsx("div",{className:"flex-shrink-0",children:t.jsx("svg",{className:"w-5 h-5 text-blue-light-500",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})})})}}[r];return t.jsxs("div",{className:`flex items-start gap-3 p-4 rounded-lg shadow-sm min-w-[320px] max-w-[420px] animate-slide-in-right ${l.container}`,children:[l.icon,t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h4",{className:"text-sm font-semibold mb-0.5",children:s}),n&&t.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:n})]}),t.jsx("button",{onClick:()=>a(e),className:"flex-shrink-0 ml-2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors","aria-label":"Close",children:t.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:t.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]})}const tr=o.createContext(void 0);let Vo=0;function Ho({children:e}){const[r,s]=o.useState([]),n=o.useCallback((u,m,g)=>{const p=`toast-${++Vo}`,f={id:p,variant:u,title:m,message:g};return s(k=>[...k,f]),p},[]),a=o.useCallback(u=>{s(m=>m.filter(g=>g.id!==u))},[]),i=o.useCallback((u,m)=>n("success",u,m),[n]),l=o.useCallback((u,m)=>n("error",u,m),[n]),c=o.useCallback((u,m)=>n("warning",u,m),[n]),d=o.useCallback((u,m)=>n("info",u,m),[n]);return t.jsxs(tr.Provider,{value:{success:i,error:l,warning:c,info:d},children:[e,t.jsx(Do,{toasts:r,onClose:a})]})}function Uo(){const e=o.useContext(tr);if(e===void 0)throw new Error("useToast must be used within a ToastProvider");return e}function Do({toasts:e,onClose:r}){return e.length===0?null:Ot.createPortal(t.jsx("div",{className:"fixed top-6 right-4 z-[999999] flex flex-col gap-3 pointer-events-none",children:e.map((s,n)=>t.jsx("div",{className:"pointer-events-auto",style:{animationDelay:`${n*50}ms`},children:t.jsx(zo,{...s,onClose:r})},s.id))}),document.body)}class $o extends o.Component{constructor(r){super(r),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r,errorInfo:null}}componentDidCatch(r,s){console.error("ErrorBoundary caught an error:",r,s),this.setState({error:r,errorInfo:s})}render(){var r;return this.state.hasError?this.props.fallback?this.props.fallback:t.jsx("div",{className:"flex items-center justify-center min-h-screen p-6",children:t.jsxs("div",{className:"text-center max-w-md",children:[t.jsx("h2",{className:"text-2xl font-semibold text-gray-800 dark:text-white mb-4",children:"Something went wrong"}),t.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:((r=this.state.error)==null?void 0:r.message)||"An unexpected error occurred"}),t.jsx("button",{onClick:()=>{this.setState({hasError:!1,error:null,errorInfo:null}),window.location.reload()},className:"px-4 py-2 bg-primary-500 text-white rounded-lg hover:bg-primary-600",children:"Reload Page"}),!1]})}):this.props.children}}lr.createRoot(document.getElementById("root")).render(t.jsx(o.StrictMode,{children:t.jsx($o,{children:t.jsx(zr,{children:t.jsx(Jr,{children:t.jsx(Ho,{children:t.jsx(Mo,{})})})})})}));export{Hs as $,X as A,er as B,js as C,ws as D,Is as E,Ps as F,Rs as G,As as H,le as I,Ls as J,Ts as K,ie as L,pn as M,Js as N,ts as O,st as P,Zs as Q,wn as R,_e as S,_ as T,Us as U,Gs as V,qs as W,Ds as X,$s as Y,Fs as Z,ss as _,cn as a,Vs as a0,zs as a1,Ms as a2,rt as a3,is as a4,es as a5,Qt as a6,qr as a7,Mt as a8,Z as a9,xn as aa,bn as ab,fn as ac,yn as ad,hn as ae,dn as af,mn as ag,en as ah,V as ai,Je as aj,Xs as ak,ln as al,on as am,an,nn as ao,sn as ap,rn as aq,tn as ar,Ot as as,Ws as at,Dt as au,Ks as av,Qs as aw,Ys as ax,Bo as ay,jn as b,tt as c,$t as d,ns as e,un as f,yt as g,gs as h,vs as i,Ns as j,Os as k,vn as l,Bs as m,os as n,Ss as o,ys as p,bs as q,fs as r,gn as s,xs as t,Uo as u,ps as v,_s as w,Es as x,ks as y,Cs as z};
|