@yuktishaalaa/yuktai 5.3.11 → 5.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1128,7 +1128,7 @@ export default function ${i}Page() {
1128
1128
  </div>
1129
1129
  )
1130
1130
  }
1131
- `}var Fa=Dt(()=>{"use strict";x();Ra()});var kl={};so(kl,{getPageText:()=>Ql,highlightField:()=>wl,runAgent:()=>qc,scanFormFields:()=>El,scrollToSection:()=>xl});function Ct(e){try{let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||t.opacity==="0"||e.hidden)return!1;let o=e.getBoundingClientRect();return!(o.width===0&&o.height===0)}catch{return!0}}function Ql(){let e=[],t=new Set,o=r=>{let s=r.trim();s&&s.length>10&&!t.has(s)&&(t.add(s),e.push(s))};document.title&&o(document.title);let n=['meta[name="description"]','meta[name="keywords"]','meta[property="og:title"]','meta[property="og:description"]','meta[name="twitter:title"]','meta[name="twitter:description"]'];for(let r of n){let s=document.querySelector(r)?.getAttribute("content");s&&o(s)}let A=["h1","h2","h3","h4","h5","h6","p","blockquote","q","pre","code","li","dt","dd","th","td","caption","a","b","strong","em","i","u","s","abbr","acronym","cite","dfn","mark","small","sub","sup","ins","del","bdi","bdo","article","section","aside","nav","header","footer","main","summary","details","figcaption","figure","address","time","output","label","legend","option","button","font","center","span","div","[role='heading']","[role='main']","[role='article']","[role='region']","[role='complementary']","[role='contentinfo']","[role='navigation']","[role='banner']","[role='listitem']","[role='cell']","[role='columnheader']","[role='rowheader']"],i=document.querySelectorAll(A.join(","));for(let r of i){if(r.closest("[data-yuktai-panel]")||!Ct(r)||r.querySelector("p, h1, h2, h3, h4, h5, h6, li, td, th, div, article, section, blockquote, pre"))continue;let a=r.innerText?.trim();if(a&&a.length>10&&o(a),!a){let y=r.textContent?.trim();y&&y.length>10&&o(y)}let l=r.getAttribute("aria-label")?.trim();l&&l.length>5&&o(l);let g=r.getAttribute("aria-description")?.trim();g&&g.length>5&&o(g);let u=r.getAttribute("aria-valuetext")?.trim();u&&o(u);let d=r.getAttribute("title")?.trim();d&&d.length>5&&o(d);let p=r.getAttribute("data-label")?.trim();p&&o(p);let B=r.getAttribute("data-title")?.trim();B&&o(B),r.querySelectorAll("img").forEach(y=>{let m=y.getAttribute("alt")?.trim();m&&m.length>5&&o(m);let w=y.getAttribute("title")?.trim();w&&w.length>5&&o(w)})}document.querySelectorAll("img").forEach(r=>{if(r.closest("[data-yuktai-panel]")||!Ct(r))return;let s=r.getAttribute("alt")?.trim(),a=r.getAttribute("title")?.trim();s&&s.length>5&&o(s),a&&a.length>5&&o(a)}),document.querySelectorAll("input:not([type=hidden]), textarea").forEach(r=>{if(r.closest("[data-yuktai-panel]")||!Ct(r))return;r.placeholder&&o(r.placeholder),r.value&&r.value.length>3&&o(r.value);let s=r.getAttribute("aria-label")?.trim();s&&o(s)}),document.querySelectorAll("select").forEach(r=>{r.closest("[data-yuktai-panel]")||Ct(r)&&Array.from(r.options).forEach(s=>{s.text?.trim().length>3&&o(s.text.trim())})}),document.querySelectorAll("td, th").forEach(r=>{if(r.closest("[data-yuktai-panel]")||!Ct(r))return;let s=r.innerText?.trim();s&&s.length>3&&o(s)});try{document.querySelectorAll("iframe").forEach(r=>{try{let s=r.contentDocument;if(!s)return;let a=s.body?.innerText?.trim();a&&a.length>20&&o(a.slice(0,500))}catch{}})}catch{}return document.querySelectorAll("a").forEach(r=>{if(r.closest("[data-yuktai-panel]")||!Ct(r))return;let s=r.innerText?.trim();s&&s.length>3&&s.length<100&&o(s)}),e.join(" ").slice(0,5e3)}function Hc(e){let t=e.getAttribute("aria-label")?.trim();if(t)return t;let o=e.getAttribute("aria-labelledby");if(o){let a=document.getElementById(o);if(a)return a.innerText?.trim()||""}if(e.id){let a=document.querySelector(`label[for="${e.id}"]`);if(a)return a.innerText?.trim()||""}let n=e.closest("label");if(n){let a=n.cloneNode(!0);return a.querySelectorAll("input, select, textarea").forEach(l=>l.remove()),a.innerText?.trim()||""}if((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.placeholder)return e.placeholder;if(e.name)return e.name.replace(/[_-]/g," ");let A=e.previousSibling;if(A?.nodeType===Node.TEXT_NODE){let a=A.textContent?.trim();if(a&&a.length>1)return a}let i=e.previousElementSibling;if(i){let a=i.innerText?.trim();if(a&&a.length>1&&a.length<60)return a}let r=e.closest("td, th");if(r){let a=r.previousElementSibling;if(a){let l=a.innerText?.trim();if(l&&l.length>1)return l}}let s=e.getAttribute("title")?.trim();return s||(e instanceof HTMLInputElement?e.type:"field")}function El(){let e=[],t=document.querySelectorAll(["input:not([type=hidden])","input:not([type=submit])","input:not([type=button])","input:not([type=reset])","input:not([type=image])","select","textarea","[contenteditable='true']","[role='textbox']","[role='combobox']","[role='spinbutton']","[role='searchbox']","[role='listbox']"].join(", "));for(let o of t){if(o.closest("[data-yuktai-panel]")||!Ct(o))continue;if(o instanceof HTMLInputElement){let A=o.type.toLowerCase();if(["submit","button","reset","image"].includes(A))continue}let n=Hc(o);e.push({label:n,type:o instanceof HTMLInputElement?o.type:o.tagName.toLowerCase(),placeholder:(o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement)&&o.placeholder||"",required:o.required||o.getAttribute("aria-required")==="true"||o.getAttribute("data-required")==="true",element:o})}return e}function wl(e,t=3e3){e.scrollIntoView({behavior:"smooth",block:"center"}),e.style.outline="3px solid #0d9488",e.style.outlineOffset="3px";try{e.focus()}catch{}setTimeout(()=>{e.style.outline="",e.style.outlineOffset=""},t)}function xl(e){let t=e.toLowerCase(),o=document.querySelectorAll("h1, h2, h3, h4, h5, h6, section, article, [id], [aria-label], [role='heading'], [role='region']");for(let n of o){if(n.closest("[data-yuktai-panel]")||!Ct(n))continue;if((n.innerText||n.getAttribute("id")||n.getAttribute("aria-label")||n.getAttribute("name")||"").toLowerCase().includes(t))return n.scrollIntoView({behavior:"smooth",block:"center"}),n.style.outline="2px solid #0d9488",n.style.outlineOffset="4px",setTimeout(()=>{n.style.outline="",n.style.outlineOffset=""},2500),!0}return!1}async function Jc(e,t,o){let n=window,A=n.LanguageModel||n.ai?.languageModel;if(!A)throw new Error("Gemini Nano not available");let i=await A.create({..._e,systemPrompt:`You are a helpful web accessibility agent.
1131
+ `}var Fa=Dt(()=>{"use strict";x();Ra()});var kl={};so(kl,{getPageText:()=>Ql,highlightField:()=>wl,runAgent:()=>$c,scanFormFields:()=>El,scrollToSection:()=>xl});function Ct(e){try{let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||t.opacity==="0"||e.hidden)return!1;let o=e.getBoundingClientRect();return!(o.width===0&&o.height===0)}catch{return!0}}function Ql(){let e=[],t=new Set,o=r=>{let s=r.trim();s&&s.length>10&&!t.has(s)&&(t.add(s),e.push(s))};document.title&&o(document.title);let n=['meta[name="description"]','meta[name="keywords"]','meta[property="og:title"]','meta[property="og:description"]','meta[name="twitter:title"]','meta[name="twitter:description"]'];for(let r of n){let s=document.querySelector(r)?.getAttribute("content");s&&o(s)}let A=["h1","h2","h3","h4","h5","h6","p","blockquote","q","pre","code","li","dt","dd","th","td","caption","a","b","strong","em","i","u","s","abbr","acronym","cite","dfn","mark","small","sub","sup","ins","del","bdi","bdo","article","section","aside","nav","header","footer","main","summary","details","figcaption","figure","address","time","output","label","legend","option","button","font","center","span","div","[role='heading']","[role='main']","[role='article']","[role='region']","[role='complementary']","[role='contentinfo']","[role='navigation']","[role='banner']","[role='listitem']","[role='cell']","[role='columnheader']","[role='rowheader']"],i=document.querySelectorAll(A.join(","));for(let r of i){if(r.closest("[data-yuktai-panel]")||!Ct(r)||r.querySelector("p, h1, h2, h3, h4, h5, h6, li, td, th, div, article, section, blockquote, pre"))continue;let a=r.innerText?.trim();if(a&&a.length>10&&o(a),!a){let y=r.textContent?.trim();y&&y.length>10&&o(y)}let l=r.getAttribute("aria-label")?.trim();l&&l.length>5&&o(l);let g=r.getAttribute("aria-description")?.trim();g&&g.length>5&&o(g);let u=r.getAttribute("aria-valuetext")?.trim();u&&o(u);let d=r.getAttribute("title")?.trim();d&&d.length>5&&o(d);let p=r.getAttribute("data-label")?.trim();p&&o(p);let B=r.getAttribute("data-title")?.trim();B&&o(B),r.querySelectorAll("img").forEach(y=>{let m=y.getAttribute("alt")?.trim();m&&m.length>5&&o(m);let w=y.getAttribute("title")?.trim();w&&w.length>5&&o(w)})}document.querySelectorAll("img").forEach(r=>{if(r.closest("[data-yuktai-panel]")||!Ct(r))return;let s=r.getAttribute("alt")?.trim(),a=r.getAttribute("title")?.trim();s&&s.length>5&&o(s),a&&a.length>5&&o(a)}),document.querySelectorAll("input:not([type=hidden]), textarea").forEach(r=>{if(r.closest("[data-yuktai-panel]")||!Ct(r))return;r.placeholder&&o(r.placeholder),r.value&&r.value.length>3&&o(r.value);let s=r.getAttribute("aria-label")?.trim();s&&o(s)}),document.querySelectorAll("select").forEach(r=>{r.closest("[data-yuktai-panel]")||Ct(r)&&Array.from(r.options).forEach(s=>{s.text?.trim().length>3&&o(s.text.trim())})}),document.querySelectorAll("td, th").forEach(r=>{if(r.closest("[data-yuktai-panel]")||!Ct(r))return;let s=r.innerText?.trim();s&&s.length>3&&o(s)});try{document.querySelectorAll("iframe").forEach(r=>{try{let s=r.contentDocument;if(!s)return;let a=s.body?.innerText?.trim();a&&a.length>20&&o(a.slice(0,500))}catch{}})}catch{}return document.querySelectorAll("a").forEach(r=>{if(r.closest("[data-yuktai-panel]")||!Ct(r))return;let s=r.innerText?.trim();s&&s.length>3&&s.length<100&&o(s)}),e.join(" ").slice(0,5e3)}function Jc(e){let t=e.getAttribute("aria-label")?.trim();if(t)return t;let o=e.getAttribute("aria-labelledby");if(o){let a=document.getElementById(o);if(a)return a.innerText?.trim()||""}if(e.id){let a=document.querySelector(`label[for="${e.id}"]`);if(a)return a.innerText?.trim()||""}let n=e.closest("label");if(n){let a=n.cloneNode(!0);return a.querySelectorAll("input, select, textarea").forEach(l=>l.remove()),a.innerText?.trim()||""}if((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.placeholder)return e.placeholder;if(e.name)return e.name.replace(/[_-]/g," ");let A=e.previousSibling;if(A?.nodeType===Node.TEXT_NODE){let a=A.textContent?.trim();if(a&&a.length>1)return a}let i=e.previousElementSibling;if(i){let a=i.innerText?.trim();if(a&&a.length>1&&a.length<60)return a}let r=e.closest("td, th");if(r){let a=r.previousElementSibling;if(a){let l=a.innerText?.trim();if(l&&l.length>1)return l}}let s=e.getAttribute("title")?.trim();return s||(e instanceof HTMLInputElement?e.type:"field")}function El(){let e=[],t=document.querySelectorAll(["input:not([type=hidden])","input:not([type=submit])","input:not([type=button])","input:not([type=reset])","input:not([type=image])","select","textarea","[contenteditable='true']","[role='textbox']","[role='combobox']","[role='spinbutton']","[role='searchbox']","[role='listbox']"].join(", "));for(let o of t){if(o.closest("[data-yuktai-panel]")||!Ct(o))continue;if(o instanceof HTMLInputElement){let A=o.type.toLowerCase();if(["submit","button","reset","image"].includes(A))continue}let n=Jc(o);e.push({label:n,type:o instanceof HTMLInputElement?o.type:o.tagName.toLowerCase(),placeholder:(o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement)&&o.placeholder||"",required:o.required||o.getAttribute("aria-required")==="true"||o.getAttribute("data-required")==="true",element:o})}return e}function wl(e,t=3e3){e.scrollIntoView({behavior:"smooth",block:"center"}),e.style.outline="3px solid #0d9488",e.style.outlineOffset="3px";try{e.focus()}catch{}setTimeout(()=>{e.style.outline="",e.style.outlineOffset=""},t)}function xl(e){let t=e.toLowerCase(),o=document.querySelectorAll("h1, h2, h3, h4, h5, h6, section, article, [id], [aria-label], [role='heading'], [role='region']");for(let n of o){if(n.closest("[data-yuktai-panel]")||!Ct(n))continue;if((n.innerText||n.getAttribute("id")||n.getAttribute("aria-label")||n.getAttribute("name")||"").toLowerCase().includes(t))return n.scrollIntoView({behavior:"smooth",block:"center"}),n.style.outline="2px solid #0d9488",n.style.outlineOffset="4px",setTimeout(()=>{n.style.outline="",n.style.outlineOffset=""},2500),!0}return!1}async function Kc(e,t,o){let n=window,A=n.LanguageModel||n.ai?.languageModel;if(!A)throw new Error("Gemini Nano not available");let i=await A.create({..._e,systemPrompt:`You are a helpful web accessibility agent.
1132
1132
  Create a simple action plan to help a user complete a task on a webpage.
1133
1133
  Rules:
1134
1134
  - Maximum 5 steps
@@ -1140,12 +1140,12 @@ The page has form fields the user may need to fill.`:""}
1140
1140
 
1141
1141
  User task: ${t}
1142
1142
 
1143
- Action plan:`,a=await i.prompt(s);return i.destroy(),a?.trim()||""}async function Kc(e,t){let{askPageWithTransformers:o}=await Promise.resolve().then(()=>(Jt(),$o));return(await o(`How do I: ${t}`)).answer||"I could not create a plan for this task."}async function qc(e,t,o){if(!e.trim())return{success:!1,steps:[],error:"Please tell me what you want to do."};if(!t)return{success:!1,steps:[],error:"No AI engine available on this device."};let n=[],A=(i,r="info")=>{let s={text:i,type:r};n.push(s),o(s)};try{A("\u{1F4D6} Reading page content...","info");let i=Ql(),r=El(),s=r.length>0;i.length<50&&A("\u26A0\uFE0F Page content is very limited. This may be a static image page.","error"),A(s?`\u{1F4CB} Found ${r.length} form field${r.length!==1?"s":""} on this page`:"\u{1F4C4} No form fields found \u2014 this appears to be a content page","info"),A("\u{1F916} Creating action plan...","info");let a="";try{t==="gemini"?a=await Jc(i,e,s):a=await Kc(i,e)}catch{a=s?`1. Locate the form on this page
1143
+ Action plan:`,a=await i.prompt(s);return i.destroy(),a?.trim()||""}async function qc(e,t){let{askPageWithTransformers:o}=await Promise.resolve().then(()=>(Jt(),$o));return(await o(`How do I: ${t}`)).answer||"I could not create a plan for this task."}async function $c(e,t,o){if(!e.trim())return{success:!1,steps:[],error:"Please tell me what you want to do."};if(!t)return{success:!1,steps:[],error:"No AI engine available on this device."};let n=[],A=(i,r="info")=>{let s={text:i,type:r};n.push(s),o(s)};try{A("\u{1F4D6} Reading page content...","info");let i=Ql(),r=El(),s=r.length>0;i.length<50&&A("\u26A0\uFE0F Page content is very limited. This may be a static image page.","error"),A(s?`\u{1F4CB} Found ${r.length} form field${r.length!==1?"s":""} on this page`:"\u{1F4C4} No form fields found \u2014 this appears to be a content page","info"),A("\u{1F916} Creating action plan...","info");let a="";try{t==="gemini"?a=await Kc(i,e,s):a=await qc(i,e)}catch{a=s?`1. Locate the form on this page
1144
1144
  2. Fill each required field
1145
1145
  3. Review your answers
1146
1146
  4. Submit the form`:`1. Read the page carefully
1147
1147
  2. Find the section relevant to your task
1148
- 3. Follow the on-page instructions`}if(a&&(A("\u2705 Your action plan:","success"),a.split(/\n/).map(l=>l.replace(/\*\*/g,"").replace(/\*/g,"").trim()).filter(l=>l.length>5).slice(0,6).forEach(l=>A(` ${l}`,"action"))),s){let l=r[0];A(`\u{1F3AF} First field: "${l.label}"${l.required?" \u2605 required":""}`,"field"),wl(l.element),r.length>1&&A(`\u{1F4DD} All ${r.length} fields: ${r.map(g=>g.label).join(" \u2192 ")}`,"info")}else{let l=e.toLowerCase().split(/\s+/).filter(u=>u.length>3),g=!1;for(let u of l)if(xl(u)){A(`\u{1F3AF} Scrolled to relevant section: "${u}"`,"action"),g=!0;break}g||A("\u{1F4A1} Scroll through the page to find what you need.","info")}return A("\u2705 Ready. Follow the steps above. Ask me again if you need more help.","success"),{success:!0,steps:n}}catch(i){let r=i instanceof Error?i.message:"Agent error.";return A(`\u26A0\uFE0F ${r}`,"error"),{success:!1,steps:n,error:r}}}var Sl=Dt(()=>{"use strict";x();Mt()});var Bd={};so(Bd,{AUDIT_RULES:()=>bo,AbcIcon:()=>di,AccessibilityIcon:()=>TA,AdminIcon:()=>ps,AgenticGridBar:()=>Rc,AgenticPanel:()=>pA,AlertIcon:()=>ir,AlignCenterIcon:()=>ri,AlignJustifyIcon:()=>si,AlignLeftIcon:()=>Ai,AlignRightIcon:()=>ii,ApiIcon:()=>Ni,ArchitectureIcon:()=>$i,ArrowDownIcon:()=>Xi,ArrowLeftIcon:()=>Nr,ArrowRightIcon:()=>Rr,ArrowUpIcon:()=>Gr,BarChartIcon:()=>Is,BoldIcon:()=>ti,BookIcon:()=>Cr,BookmarkIcon:()=>Ji,BrainIcon:()=>zi,BugReportIcon:()=>ms,BulbIcon:()=>zr,CakeIcon:()=>us,CalendarIcon:()=>fr,CardsIcon:()=>_A,ChatIcon:()=>XA,CheckIcon:()=>NA,ChevronLeftIcon:()=>vA,ChevronRightIcon:()=>MA,ChevronsIcon:()=>WA,CleaningIcon:()=>os,ClockIcon:()=>hr,CloseIcon:()=>RA,CloudIcon:()=>Li,CodeIcon:()=>Zr,ComputerIcon:()=>Ti,ContrastIcon:()=>FA,CopyIcon:()=>tr,DEFAULT_A11Y_SETTINGS:()=>cA,DashboardIcon:()=>ts,DataObjectIcon:()=>Ri,DeleteIcon:()=>Wr,DocumentScannerIcon:()=>es,DownloadIcon:()=>er,DragHandleIcon:()=>ns,ExploreIcon:()=>ss,ExternalIcon:()=>Mr,EyeIcon:()=>lr,EyeOffIcon:()=>Hi,FONT_MAX:()=>fl,FONT_MIN:()=>Cl,FONT_STEP:()=>gA,FactCheckIcon:()=>ji,FileIcon:()=>Dr,FilterIcon:()=>or,FirstIcon:()=>nr,FontIcon:()=>gi,FormIcon:()=>ar,FullscreenExitIcon:()=>Qi,FullscreenIcon:()=>Bi,GavelIcon:()=>qi,GiftIcon:()=>Sr,GlobeIcon:()=>Br,GridCore:()=>Ot,GridIcon:()=>VA,HeadphonesIcon:()=>Tr,HeartFilledIcon:()=>Xr,HeartIcon:()=>_r,HelpIcon:()=>Jr,HomeIcon:()=>pr,HubIcon:()=>jr,ICON_MIN_CONTRAST:()=>In,ICON_NAMES:()=>yA,ICON_PATHS:()=>et,IconBase:()=>he,ImageIcon:()=>vr,ImageSearchIcon:()=>Zi,InfoIcon:()=>sr,InsightsIcon:()=>is,InstallIcon:()=>Hr,IntegrationIcon:()=>fs,ItalicIcon:()=>oi,JoinIcon:()=>wi,KeyIcon:()=>fi,KeyboardIcon:()=>gs,LabelIcon:()=>ls,LampIcon:()=>Qr,LastIcon:()=>Ar,LayoutIcon:()=>gr,LinkIcon:()=>Ii,LoaderIcon:()=>xs,LockIcon:()=>mi,LoginIcon:()=>Bs,LogoutIcon:()=>Qs,MapIcon:()=>Pr,MeditateIcon:()=>qr,MenuIcon:()=>mr,MergeIcon:()=>Ei,MicIcon:()=>jA,MinusIcon:()=>$A,MoonIcon:()=>LA,MotionIcon:()=>PA,MovieIcon:()=>Di,MusicIcon:()=>Fr,MusicOffIcon:()=>Si,MusicVideoIcon:()=>vi,NamaskarIcon:()=>hs,PageBreakIcon:()=>ui,PaletteIcon:()=>JA,PauseIcon:()=>wr,PenIcon:()=>Yr,PersonIcon:()=>yr,PhoneIcon:()=>Fi,PinIcon:()=>Lr,PlayIcon:()=>Er,PlugIcon:()=>Ir,PlusIcon:()=>qA,QuoteIcon:()=>ai,RUST_AUTO_MIN_ROWS:()=>Yn,RadioCheckedIcon:()=>Vi,RadioIcon:()=>Wi,ReadingIcon:()=>YA,RedoIcon:()=>hi,RepeatIcon:()=>ws,ResetIcon:()=>zA,RobotIcon:()=>Vr,Runtime:()=>ft,SaveIcon:()=>as,SchoolIcon:()=>Ki,SearchIcon:()=>wA,SearchOffIcon:()=>Ui,SendIcon:()=>xr,SentimentSadIcon:()=>Cs,ShareIcon:()=>kr,ShieldCheckIcon:()=>Ss,ShuffleIcon:()=>bi,SkipIcon:()=>KA,SlideshowIcon:()=>Mi,SortDownIcon:()=>kA,SortIcon:()=>OA,SortUpIcon:()=>xA,SparkIcon:()=>rr,SpeakerIcon:()=>HA,SpeedIcon:()=>Es,SpellcheckIcon:()=>ci,StarIcon:()=>ks,StopIcon:()=>ZA,StorageIcon:()=>Gi,StyleIcon:()=>pi,SunIcon:()=>Or,SunriseIcon:()=>ys,SunsetIcon:()=>bs,SwapIcon:()=>yi,TargetIcon:()=>UA,TempleIcon:()=>Kr,TextIcon:()=>ei,TitleIcon:()=>li,ToolsIcon:()=>ur,TouchIcon:()=>xi,TrendingDownIcon:()=>ds,TrendingUpIcon:()=>cs,TrophyIcon:()=>$r,UnderlineIcon:()=>ni,UndoIcon:()=>dr,UnlockIcon:()=>Ci,UploadIcon:()=>_i,UsersIcon:()=>br,VolumeOffIcon:()=>ki,VolunteerIcon:()=>Oi,WalletIcon:()=>Ur,WandIcon:()=>cr,WifiIcon:()=>Pi,WifiOffIcon:()=>Yi,YuktAI:()=>bd,YuktAIWrapper:()=>ln,YuktaiGrid:()=>Yl,YuktaiGridAI:()=>cn,YuktaiGridAgent:()=>Rl,YuktaiGridWebMCP:()=>xo,YuktaiIcon:()=>h,ZoomInIcon:()=>As,ZoomOutIcon:()=>rs,accessibleName:()=>Ye,addPeriods:()=>nn,aggregate:()=>jt,aiPlugin:()=>Qo,analyzePage:()=>dl,answerGridQuestion:()=>AA,applyGridFilters:()=>lt,askAboutPage:()=>aA,askInsight:()=>sA,auditToJSON:()=>jn,auditToMarkdown:()=>Xn,clearFilters:()=>Wn,clearSort:()=>_n,comparePeriods:()=>gl,contrastRatio:()=>$t,countGrid:()=>qn,createA11yCopilot:()=>Zn,createContextIndex:()=>fo,createGridTools:()=>Xt,createVoiceA11yController:()=>dA,default:()=>ln,detectAnomalies:()=>tn,detectPageIntent:()=>ul,executeGridQuery:()=>ct,filterGrid:()=>On,findMentionedColumn:()=>He,getColumns:()=>$n,getRow:()=>zn,getRowId:()=>Qe,gridPassages:()=>Wa,groupBy:()=>ll,highlightRows:()=>_t,iconContrast:()=>eo,iconSvg:()=>EA,loadGridCore:()=>Vo,moveGridRowFocus:()=>yl,openRow:()=>yo,pagePassages:()=>Oa,parseAmount:()=>en,parseColor:()=>pt,parseGridIntent:()=>mA,parseGridQuery:()=>Rt,parseVoiceA11yCommand:()=>hl,pickGlyphColor:()=>pn,planTasks:()=>rn,readFormFields:()=>ol,relativeLuminance:()=>zo,reviewDesign:()=>eA,reviewForm:()=>nl,reviewForms:()=>Bo,runGridQuery:()=>sl,runQaAudit:()=>gt,runTasks:()=>lA,searchGrid:()=>Kn,selectRow:()=>ho,sortGrid:()=>Vn,startOfPeriod:()=>iA,summarizeRows:()=>on,toGridToolColumns:()=>mt,tokenize:()=>Co,trend:()=>cl,useAgenticGrid:()=>Nc,useGrid:()=>Hl,useYuktaiGridAgent:()=>wo,voicePlugin:()=>Eo,wantsRustEngine:()=>Wo,wcag:()=>ke,wcagPlugin:()=>ke});module.exports=_l(Bd);x();x();x();Mt();function Gs(){let e=window;return e.Rewriter||e.ai?.rewriter||null}async function fn(){try{let e=Gs();if(!e)return!1;if(typeof e.availability=="function"){let t=await e.availability({...Xe});return t==="readily"||t==="available"||t==="downloadable"}return typeof e.capabilities=="function"?(await e.capabilities())?.available!=="no":typeof e.create=="function"}catch{return!1}}async function Xl(e){if(!e||e.trim().length<20)return{success:!1,original:e,rewritten:e,error:"Text too short"};try{let t=Gs();if(!t)throw new Error("Rewriter API not available");let o=await t.create({tone:"more-casual",format:"plain-text",length:"as-is",outputLanguage:"en"}),n=await o.rewrite(e,{context:"Rewrite this text in simple plain English. Use short sentences. Avoid jargon. Make it easy to understand for everyone."});return o.destroy(),{success:!0,original:e,rewritten:n.trim()}}catch(t){return{success:!1,original:e,rewritten:e,error:t instanceof Error?t.message:"Rewrite failed"}}}async function Ns(){if(!await fn())return{fixed:0,error:"Chrome Built-in AI Rewriter not available. Enable via chrome://flags."};let t=document.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li, blockquote, td, th, label, figcaption"),o=0;for(let n of t){let A=n.innerText?.trim();if(!A||A.length<20||n.closest("[data-yuktai-panel]"))continue;let i=await Xl(A);i.success&&i.rewritten!==A&&(n.dataset.yuktaiOriginal=A,n.innerText=i.rewritten,o++)}return{fixed:o}}function Rs(){let e=document.querySelectorAll("[data-yuktai-original]");for(let t of e){let o=t.dataset.yuktaiOriginal;o&&(t.innerText=o,delete t.dataset.yuktaiOriginal)}}x();Mt();var Ts="yuktai-summary-box";function Fs(){let e=window;return e.Summarizer||e.ai?.summarizer||null}async function hn(){try{let e=Fs();if(!e)return!1;if(typeof e.availability=="function"){let t=await e.availability({...Xe});return t==="readily"||t==="available"||t==="downloadable"}return typeof e.capabilities=="function"?(await e.capabilities())?.available!=="no":typeof e.create=="function"}catch{return!1}}function jl(){let e=document.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li, blockquote, article, section"),t=[];for(let o of e){if(o.closest("[data-yuktai-panel]"))continue;let n=window.getComputedStyle(o);if(n.display==="none"||n.visibility==="hidden")continue;let A=o.innerText?.trim();A&&A.length>10&&t.push(A)}return t.join(" ").slice(0,5e3)}async function Ls(){if(!await hn())return{success:!1,summary:"",error:"Chrome Built-in AI Summarizer not available. Enable via chrome://flags."};let t=jl();if(!t||t.length<100)return{success:!1,summary:"",error:"Not enough text on this page to summarise."};try{let o=Fs();if(!o)throw new Error("Summarizer API not available");let n=await o.create({type:"tl;dr",format:"plain-text",length:"short",outputLanguage:"en"}),A=await n.summarize(t,{context:"Summarise this page in 2-3 simple sentences for a screen reader user who wants to know if this page is relevant to them."});return n.destroy(),Zl(A.trim()),{success:!0,summary:A.trim()}}catch(o){return{success:!1,summary:"",error:o instanceof Error?o.message:"Summary failed"}}}function Zl(e){Fo();let t=document.createElement("div");t.id=Ts,t.setAttribute("data-yuktai-panel","true"),t.setAttribute("role","region"),t.setAttribute("aria-label","Page summary by yuktai"),t.style.cssText=`
1148
+ 3. Follow the on-page instructions`}if(a&&(A("\u2705 Your action plan:","success"),a.split(/\n/).map(l=>l.replace(/\*\*/g,"").replace(/\*/g,"").trim()).filter(l=>l.length>5).slice(0,6).forEach(l=>A(` ${l}`,"action"))),s){let l=r[0];A(`\u{1F3AF} First field: "${l.label}"${l.required?" \u2605 required":""}`,"field"),wl(l.element),r.length>1&&A(`\u{1F4DD} All ${r.length} fields: ${r.map(g=>g.label).join(" \u2192 ")}`,"info")}else{let l=e.toLowerCase().split(/\s+/).filter(u=>u.length>3),g=!1;for(let u of l)if(xl(u)){A(`\u{1F3AF} Scrolled to relevant section: "${u}"`,"action"),g=!0;break}g||A("\u{1F4A1} Scroll through the page to find what you need.","info")}return A("\u2705 Ready. Follow the steps above. Ask me again if you need more help.","success"),{success:!0,steps:n}}catch(i){let r=i instanceof Error?i.message:"Agent error.";return A(`\u26A0\uFE0F ${r}`,"error"),{success:!1,steps:n,error:r}}}var Sl=Dt(()=>{"use strict";x();Mt()});var Qd={};so(Qd,{AUDIT_RULES:()=>bo,AbcIcon:()=>di,AccessibilityIcon:()=>TA,AdminIcon:()=>ps,AgenticGridBar:()=>Tc,AgenticPanel:()=>pA,AlertIcon:()=>ir,AlignCenterIcon:()=>ri,AlignJustifyIcon:()=>si,AlignLeftIcon:()=>Ai,AlignRightIcon:()=>ii,ApiIcon:()=>Ni,ArchitectureIcon:()=>$i,ArrowDownIcon:()=>Xi,ArrowLeftIcon:()=>Nr,ArrowRightIcon:()=>Rr,ArrowUpIcon:()=>Gr,BarChartIcon:()=>Is,BoldIcon:()=>ti,BookIcon:()=>Cr,BookmarkIcon:()=>Ji,BrainIcon:()=>zi,BugReportIcon:()=>ms,BulbIcon:()=>zr,CakeIcon:()=>us,CalendarIcon:()=>fr,CardsIcon:()=>_A,ChatIcon:()=>XA,CheckIcon:()=>NA,ChevronLeftIcon:()=>vA,ChevronRightIcon:()=>MA,ChevronsIcon:()=>WA,CleaningIcon:()=>os,ClockIcon:()=>hr,CloseIcon:()=>RA,CloudIcon:()=>Li,CodeIcon:()=>Zr,ComputerIcon:()=>Ti,ContrastIcon:()=>FA,CopyIcon:()=>tr,DEFAULT_A11Y_SETTINGS:()=>cA,DashboardIcon:()=>ts,DataObjectIcon:()=>Ri,DeleteIcon:()=>Wr,DocumentScannerIcon:()=>es,DownloadIcon:()=>er,DragHandleIcon:()=>ns,ExploreIcon:()=>ss,ExternalIcon:()=>Mr,EyeIcon:()=>lr,EyeOffIcon:()=>Hi,FONT_MAX:()=>fl,FONT_MIN:()=>Cl,FONT_STEP:()=>gA,FactCheckIcon:()=>ji,FileIcon:()=>Dr,FilterIcon:()=>or,FirstIcon:()=>nr,FontIcon:()=>gi,FormIcon:()=>ar,FullscreenExitIcon:()=>Qi,FullscreenIcon:()=>Bi,GavelIcon:()=>qi,GiftIcon:()=>Sr,GlobeIcon:()=>Br,GridCore:()=>Ot,GridIcon:()=>VA,HeadphonesIcon:()=>Tr,HeartFilledIcon:()=>Xr,HeartIcon:()=>_r,HelpIcon:()=>Jr,HomeIcon:()=>pr,HubIcon:()=>jr,ICON_MIN_CONTRAST:()=>In,ICON_NAMES:()=>yA,ICON_PATHS:()=>et,IconBase:()=>he,ImageIcon:()=>vr,ImageSearchIcon:()=>Zi,InfoIcon:()=>sr,InsightsIcon:()=>is,InstallIcon:()=>Hr,IntegrationIcon:()=>fs,ItalicIcon:()=>oi,JoinIcon:()=>wi,KeyIcon:()=>fi,KeyboardIcon:()=>gs,LabelIcon:()=>ls,LampIcon:()=>Qr,LastIcon:()=>Ar,LayoutIcon:()=>gr,LinkIcon:()=>Ii,LoaderIcon:()=>xs,LockIcon:()=>mi,LoginIcon:()=>Bs,LogoutIcon:()=>Qs,MapIcon:()=>Pr,MeditateIcon:()=>qr,MenuIcon:()=>mr,MergeIcon:()=>Ei,MicIcon:()=>jA,MinusIcon:()=>$A,MoonIcon:()=>LA,MotionIcon:()=>PA,MovieIcon:()=>Di,MusicIcon:()=>Fr,MusicOffIcon:()=>Si,MusicVideoIcon:()=>vi,NamaskarIcon:()=>hs,PageBreakIcon:()=>ui,PaletteIcon:()=>JA,PauseIcon:()=>wr,PenIcon:()=>Yr,PersonIcon:()=>yr,PhoneIcon:()=>Fi,PinIcon:()=>Lr,PlayIcon:()=>Er,PlugIcon:()=>Ir,PlusIcon:()=>qA,QuoteIcon:()=>ai,RUST_AUTO_MIN_ROWS:()=>Yn,RadioCheckedIcon:()=>Vi,RadioIcon:()=>Wi,ReadingIcon:()=>YA,RedoIcon:()=>hi,RepeatIcon:()=>ws,ResetIcon:()=>zA,RobotIcon:()=>Vr,Runtime:()=>ft,SaveIcon:()=>as,SchoolIcon:()=>Ki,SearchIcon:()=>wA,SearchOffIcon:()=>Ui,SendIcon:()=>xr,SentimentSadIcon:()=>Cs,ShareIcon:()=>kr,ShieldCheckIcon:()=>Ss,ShuffleIcon:()=>bi,SkipIcon:()=>KA,SlideshowIcon:()=>Mi,SortDownIcon:()=>kA,SortIcon:()=>OA,SortUpIcon:()=>xA,SparkIcon:()=>rr,SpeakerIcon:()=>HA,SpeedIcon:()=>Es,SpellcheckIcon:()=>ci,StarIcon:()=>ks,StopIcon:()=>ZA,StorageIcon:()=>Gi,StyleIcon:()=>pi,SunIcon:()=>Or,SunriseIcon:()=>ys,SunsetIcon:()=>bs,SwapIcon:()=>yi,TargetIcon:()=>UA,TempleIcon:()=>Kr,TextIcon:()=>ei,TitleIcon:()=>li,ToolsIcon:()=>ur,TouchIcon:()=>xi,TrendingDownIcon:()=>ds,TrendingUpIcon:()=>cs,TrophyIcon:()=>$r,UnderlineIcon:()=>ni,UndoIcon:()=>dr,UnlockIcon:()=>Ci,UploadIcon:()=>_i,UsersIcon:()=>br,VolumeOffIcon:()=>ki,VolunteerIcon:()=>Oi,WalletIcon:()=>Ur,WandIcon:()=>cr,WifiIcon:()=>Pi,WifiOffIcon:()=>Yi,YuktAI:()=>Bd,YuktAIWrapper:()=>ln,YuktaiGrid:()=>Yl,YuktaiGridAI:()=>cn,YuktaiGridAgent:()=>Rl,YuktaiGridWebMCP:()=>xo,YuktaiIcon:()=>h,ZoomInIcon:()=>As,ZoomOutIcon:()=>rs,accessibleName:()=>Ye,addPeriods:()=>nn,aggregate:()=>jt,aiPlugin:()=>Qo,analyzePage:()=>dl,answerGridQuestion:()=>AA,applyGridFilters:()=>lt,askAboutPage:()=>aA,askInsight:()=>sA,auditToJSON:()=>jn,auditToMarkdown:()=>Xn,clearFilters:()=>Wn,clearSort:()=>_n,comparePeriods:()=>gl,contrastRatio:()=>$t,countGrid:()=>qn,createA11yCopilot:()=>Zn,createContextIndex:()=>fo,createGridTools:()=>Xt,createVoiceA11yController:()=>dA,default:()=>ln,detectAnomalies:()=>tn,detectPageIntent:()=>ul,executeGridQuery:()=>ct,filterGrid:()=>On,findMentionedColumn:()=>He,getColumns:()=>$n,getRow:()=>zn,getRowId:()=>Qe,gridPassages:()=>Wa,groupBy:()=>ll,highlightRows:()=>_t,iconContrast:()=>eo,iconSvg:()=>EA,loadGridCore:()=>Vo,moveGridRowFocus:()=>yl,openRow:()=>yo,pagePassages:()=>Oa,parseAmount:()=>en,parseColor:()=>pt,parseGridIntent:()=>mA,parseGridQuery:()=>Rt,parseVoiceA11yCommand:()=>hl,pickGlyphColor:()=>pn,planTasks:()=>rn,readFormFields:()=>ol,relativeLuminance:()=>zo,reviewDesign:()=>eA,reviewForm:()=>nl,reviewForms:()=>Bo,runGridQuery:()=>sl,runQaAudit:()=>gt,runTasks:()=>lA,searchGrid:()=>Kn,selectRow:()=>ho,sortGrid:()=>Vn,startOfPeriod:()=>iA,summarizeRows:()=>on,toGridToolColumns:()=>mt,tokenize:()=>Co,trend:()=>cl,useAgenticGrid:()=>Rc,useGrid:()=>Hl,useYuktaiGridAgent:()=>wo,voicePlugin:()=>Eo,wantsRustEngine:()=>Wo,wcag:()=>ke,wcagPlugin:()=>ke});module.exports=_l(Qd);x();x();x();Mt();function Gs(){let e=window;return e.Rewriter||e.ai?.rewriter||null}async function fn(){try{let e=Gs();if(!e)return!1;if(typeof e.availability=="function"){let t=await e.availability({...Xe});return t==="readily"||t==="available"||t==="downloadable"}return typeof e.capabilities=="function"?(await e.capabilities())?.available!=="no":typeof e.create=="function"}catch{return!1}}async function Xl(e){if(!e||e.trim().length<20)return{success:!1,original:e,rewritten:e,error:"Text too short"};try{let t=Gs();if(!t)throw new Error("Rewriter API not available");let o=await t.create({tone:"more-casual",format:"plain-text",length:"as-is",outputLanguage:"en"}),n=await o.rewrite(e,{context:"Rewrite this text in simple plain English. Use short sentences. Avoid jargon. Make it easy to understand for everyone."});return o.destroy(),{success:!0,original:e,rewritten:n.trim()}}catch(t){return{success:!1,original:e,rewritten:e,error:t instanceof Error?t.message:"Rewrite failed"}}}async function Ns(){if(!await fn())return{fixed:0,error:"Chrome Built-in AI Rewriter not available. Enable via chrome://flags."};let t=document.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li, blockquote, td, th, label, figcaption"),o=0;for(let n of t){let A=n.innerText?.trim();if(!A||A.length<20||n.closest("[data-yuktai-panel]"))continue;let i=await Xl(A);i.success&&i.rewritten!==A&&(n.dataset.yuktaiOriginal=A,n.innerText=i.rewritten,o++)}return{fixed:o}}function Rs(){let e=document.querySelectorAll("[data-yuktai-original]");for(let t of e){let o=t.dataset.yuktaiOriginal;o&&(t.innerText=o,delete t.dataset.yuktaiOriginal)}}x();Mt();var Ts="yuktai-summary-box";function Fs(){let e=window;return e.Summarizer||e.ai?.summarizer||null}async function hn(){try{let e=Fs();if(!e)return!1;if(typeof e.availability=="function"){let t=await e.availability({...Xe});return t==="readily"||t==="available"||t==="downloadable"}return typeof e.capabilities=="function"?(await e.capabilities())?.available!=="no":typeof e.create=="function"}catch{return!1}}function jl(){let e=document.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li, blockquote, article, section"),t=[];for(let o of e){if(o.closest("[data-yuktai-panel]"))continue;let n=window.getComputedStyle(o);if(n.display==="none"||n.visibility==="hidden")continue;let A=o.innerText?.trim();A&&A.length>10&&t.push(A)}return t.join(" ").slice(0,5e3)}async function Ls(){if(!await hn())return{success:!1,summary:"",error:"Chrome Built-in AI Summarizer not available. Enable via chrome://flags."};let t=jl();if(!t||t.length<100)return{success:!1,summary:"",error:"Not enough text on this page to summarise."};try{let o=Fs();if(!o)throw new Error("Summarizer API not available");let n=await o.create({type:"tl;dr",format:"plain-text",length:"short",outputLanguage:"en"}),A=await n.summarize(t,{context:"Summarise this page in 2-3 simple sentences for a screen reader user who wants to know if this page is relevant to them."});return n.destroy(),Zl(A.trim()),{success:!0,summary:A.trim()}}catch(o){return{success:!1,summary:"",error:o instanceof Error?o.message:"Summary failed"}}}function Zl(e){Fo();let t=document.createElement("div");t.id=Ts,t.setAttribute("data-yuktai-panel","true"),t.setAttribute("role","region"),t.setAttribute("aria-label","Page summary by yuktai"),t.style.cssText=`
1149
1149
  position: fixed;
1150
1150
  top: 0;
1151
1151
  left: 0;
@@ -1525,18 +1525,18 @@ Action plan:`,a=await i.prompt(s);return i.destroy(),a?.trim()||""}async functio
1525
1525
  `,document.body.appendChild(e),zs=e}function ea(e){return e.getAttribute("aria-label")?.trim()||e.getAttribute("aria-labelledby")||e.getAttribute("title")?.trim()||e.textContent?.trim()?!0:!!e.querySelector("img[alt]:not([alt='']), svg[aria-label], svg title, [aria-label]")}function ta(e){let t={critical:20,serious:10,moderate:5,minor:2},o=e.details.reduce((n,A)=>n+(t[A.severity]||0),0);return Math.max(0,Math.min(100,100-o))}var ke={name:"yuktai-a11y",version:"4.0.0",observer:null,async execute(e){if(!e.enabled)return this.stopObserver(),"yuktai: disabled.";Yt=e,Cg(e),fg(),hg(),cg(),dg(),e.showSkipLinks!==!1&&gg(),e.showPreferencePanel,mg(e);let t=this.applyFixes(e);t.score=ta(t),e.showAuditBadge&&Ig(t),e.timeoutWarning&&na(e.timeoutWarning),e.autoFix&&this.startObserver(e),e.plainEnglish&&await Vs(!0),e.summarisePage&&await _s(!0),e.translateLanguage&&e.translateLanguage!=="en"&&await Xs(e.translateLanguage),e.voiceControl&&await js(!0),e.smartLabels&&await Zs(!0);let o=`${t.fixed} fixes applied. Score: ${t.score}/100.`;return ce(o,t.score>=90?"success":"info",!1),`yuktai v4.0.0: ${o} Scanned ${t.scanned} elements in ${t.renderTime}ms.`},applyFixes(e){let t={fixed:0,scanned:0,renderTime:0,score:100,details:[]};if(typeof document>"u")return t;let o=performance.now(),n=document.querySelectorAll("*");t.scanned=n.length;let A=(i,r,s,a)=>{t.details.push({tag:i,fix:r,severity:s,element:a.outerHTML.slice(0,100)}),t.fixed++};return n.forEach(i=>{let r=i,s=r.tagName.toLowerCase();if(s==="html"&&!r.getAttribute("lang")&&(r.setAttribute("lang","en"),A(s,'lang="en" added',"critical",r)),s==="meta"){let g=r.getAttribute("name"),u=r.getAttribute("content")||"";g==="viewport"&&u.includes("user-scalable=no")&&(r.setAttribute("content",u.replace("user-scalable=no","user-scalable=yes")),A(s,"user-scalable=yes restored","serious",r)),g==="viewport"&&/maximum-scale=1(?:[^0-9]|$)/.test(u)&&(r.setAttribute("content",u.replace(/maximum-scale=1(?=[^0-9]|$)/,"maximum-scale=5")),A(s,"maximum-scale=5 restored","serious",r))}if(s==="main"&&!r.getAttribute("tabindex")&&(r.setAttribute("tabindex","-1"),r.getAttribute("id")||r.setAttribute("id","main-content")),s==="img"&&(r.hasAttribute("alt")||(r.setAttribute("alt",""),r.setAttribute("aria-hidden","true"),A(s,'alt="" aria-hidden="true"',"serious",r))),s==="svg"&&(!r.getAttribute("aria-hidden")&&!r.getAttribute("aria-label")&&!i.querySelector("title")&&(r.setAttribute("aria-hidden","true"),A(s,'aria-hidden="true" (decorative svg)',"minor",r)),r.getAttribute("focusable")||r.setAttribute("focusable","false")),s==="iframe"&&!r.getAttribute("title")&&!r.getAttribute("aria-label")&&(r.setAttribute("title","embedded content"),r.setAttribute("aria-label","embedded content"),A(s,"title + aria-label added","serious",r)),s==="button"){if(!ea(r)){let g=r.getAttribute("title")||"button";r.setAttribute("aria-label",g),A(s,`aria-label="${g}" (empty button)`,"critical",r)}r.hasAttribute("disabled")&&!r.getAttribute("aria-disabled")&&(r.setAttribute("aria-disabled","true"),t.fixed++)}if(s==="a"){let g=r;ea(r)||(r.setAttribute("aria-label",r.getAttribute("title")||"link"),A(s,"aria-label added (empty link)","critical",r)),g.target==="_blank"&&!g.rel?.includes("noopener")&&(g.rel="noopener noreferrer",t.fixed++)}if(Ws.has(s)){let g=r;if(!(!!(g.labels&&g.labels.length)||!!r.getAttribute("title")||g.type==="hidden"||g.type==="submit"||g.type==="button"||g.type==="reset")&&!r.getAttribute("aria-label")&&!r.getAttribute("aria-labelledby")){let d=r.getAttribute("placeholder")||r.getAttribute("name")||s;r.setAttribute("aria-label",d),A(s,`aria-label="${d}"`,"serious",r)}if(r.hasAttribute("required")&&!r.getAttribute("aria-required")&&(r.setAttribute("aria-required","true"),t.fixed++),s==="input"&&!g.autocomplete){let d=g.name||"",p=g.type==="email"||d.includes("email")?"email":g.type==="tel"||d.includes("tel")?"tel":g.type==="password"?"current-password":"";p&&(g.autocomplete=p,t.fixed++)}}s==="th"&&!r.getAttribute("scope")&&(r.setAttribute("scope",r.closest("thead")?"col":"row"),A(s,"scope added to <th>","moderate",r));let a=(s==="header"||s==="footer")&&!!r.parentElement?.closest("article,aside,main,nav,section,[role='dialog'],[role='region']");xn[s]&&!r.getAttribute("role")&&!a&&(r.setAttribute("role",xn[s]),A(s,`role="${xn[s]}"`,"minor",r));let l=r.getAttribute("role")||"";l==="tab"&&!r.getAttribute("aria-selected")&&(r.setAttribute("aria-selected","false"),t.fixed++),["alert","status","log"].includes(l)&&!r.getAttribute("aria-live")&&(r.setAttribute("aria-live",l==="alert"?"assertive":"polite"),A(s,`aria-live added on role=${l}`,"moderate",r)),l==="combobox"&&!r.getAttribute("aria-expanded")&&(r.setAttribute("aria-expanded","false"),A(s,'aria-expanded="false" on combobox',"serious",r)),(l==="checkbox"||l==="radio")&&!r.getAttribute("aria-checked")&&(r.setAttribute("aria-checked","false"),A(s,`aria-checked="false" on role=${l}`,"serious",r))}),t.renderTime=parseFloat((performance.now()-o).toFixed(2)),t},scan(){let e={fixed:0,scanned:0,renderTime:0,score:100,details:[]};if(typeof document>"u")return e;let t=performance.now(),o=document.querySelectorAll("*");e.scanned=o.length;let n=(A,i,r,s)=>e.details.push({tag:A,fix:i,severity:r,element:s.outerHTML.slice(0,100)});return o.forEach(A=>{let i=A,r=i.tagName.toLowerCase();(r==="a"||r==="button")&&!i.innerText?.trim()&&!i.getAttribute("aria-label")&&n(r,"needs aria-label (empty)","critical",i),r==="img"&&!i.hasAttribute("alt")&&n(r,"needs alt text","serious",i),Ws.has(r)&&!i.getAttribute("aria-label")&&!i.getAttribute("aria-labelledby")&&n(r,"needs aria-label","serious",i),r==="iframe"&&!i.getAttribute("title")&&!i.getAttribute("aria-label")&&n(r,"iframe needs title","serious",i)}),e.fixed=e.details.length,e.score=ta(e),e.renderTime=parseFloat((performance.now()-t).toFixed(2)),e},startObserver(e){this.observer||typeof document>"u"||(this.observer=new MutationObserver(()=>this.applyFixes(e)),this.observer.observe(document.body,{childList:!0,subtree:!0,attributes:!1}))},stopObserver(){this.observer?.disconnect(),this.observer=null},announce:ce,speak:kn,showVisualAlert:oa,trapFocus:Ko,handlePlainEnglish:Vs,handleSummarisePage:_s,handleTranslate:Xs,handleVoiceControl:js,handleSmartLabels:Zs,SUPPORTED_LANGUAGES:Po};x();x();var O=Cn(require("react"));x();var ve=require("react");qo();Jt();var E=require("react/jsx-runtime"),Nn={highContrast:!1,reduceMotion:!1,autoFix:!0,dyslexiaFont:!1,fontScale:100,localFont:"",darkMode:!1,largeTargets:!1,speechEnabled:!1,colorBlindMode:"none",showAuditBadge:!1,timeoutWarning:void 0,plainEnglish:!1,summarisePage:!1,translateLanguage:"en",voiceControl:!1,smartLabels:!1},Kt=[80,90,100,110,120,130],Dg=[{value:"none",label:"None"},{value:"deuteranopia",label:"Deuteranopia"},{value:"protanopia",label:"Protanopia"},{value:"tritanopia",label:"Tritanopia"},{value:"achromatopsia",label:"Greyscale"}],Mg=["Prompt API for Gemini Nano","Summarization API for Gemini Nano","Writer API for Gemini Nano","Rewriter API for Gemini Nano","Translation API"];function Gg(){let[e,t]=(0,ve.useState)(typeof window<"u"?window.innerWidth:1024);return(0,ve.useEffect)(()=>{let o=()=>t(window.innerWidth);return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]),{isMobile:e<=480,isTablet:e>480&&e<=768}}function Ng({checked:e,onChange:t,label:o,disabled:n=!1}){return(0,E.jsxs)("label",{"aria-label":o,style:{position:"relative",display:"inline-flex",width:"40px",height:"24px",cursor:n?"not-allowed":"pointer",flexShrink:0,opacity:n?.4:1},children:[(0,E.jsx)("input",{type:"checkbox",checked:e,disabled:n,onChange:A=>t(A.target.checked),style:{opacity:0,width:0,height:0,position:"absolute"}}),(0,E.jsx)("span",{style:{position:"absolute",inset:0,borderRadius:"99px",background:e?"#0d9488":"#cbd5e1",transition:"background 0.2s"}}),(0,E.jsx)("span",{style:{position:"absolute",top:"3px",left:e?"19px":"3px",width:"18px",height:"18px",background:"#fff",borderRadius:"50%",transition:"left 0.2s",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",pointerEvents:"none"}})]})}function qt({label:e,color:t="#64748b",badge:o,concept:n}){return(0,E.jsxs)("div",{style:{margin:"10px 18px 4px"},children:[(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,E.jsx)("p",{style:{margin:0,fontSize:"10px",fontWeight:600,color:t,letterSpacing:"0.06em",textTransform:"uppercase"},children:e}),o&&(0,E.jsx)("span",{style:{fontSize:"9px",fontWeight:500,padding:"1px 7px",borderRadius:"99px",background:"#f5f3ff",color:"#7c3aed",border:"0.5px solid #c4b5fd",whiteSpace:"nowrap"},children:o})]}),n&&(0,E.jsx)("p",{style:{margin:"2px 0 0",fontSize:"9px",color:"#94a3b8",fontStyle:"italic"},children:n})]})}function qe({icon:e,label:t,desc:o,checked:n,onChange:A,disabled:i=!1,disabledReason:r,tip:s}){return(0,E.jsxs)("div",{title:i?r:s,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 18px",gap:"12px"},children:[(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0},children:[(0,E.jsx)("span",{"aria-hidden":"true",style:{width:"32px",height:"32px",borderRadius:"8px",background:i?"#f1f5f9":"#f0fdfa",color:i?"#94a3b8":"#0d9488",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"15px",flexShrink:0,fontWeight:700},children:e}),(0,E.jsxs)("div",{style:{minWidth:0},children:[(0,E.jsx)("p",{style:{margin:0,fontSize:"13px",fontWeight:500,color:i?"#94a3b8":"#0f172a",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),(0,E.jsx)("p",{style:{margin:0,fontSize:"10px",color:"#94a3b8"},children:i?r:o})]})]}),(0,E.jsx)(Ng,{checked:n,onChange:A,label:`Toggle ${t}`,disabled:i})]})}function Se(){return(0,E.jsx)("div",{style:{height:"1px",background:"#f1f5f9"}})}function go({steps:e}){return(0,E.jsxs)("div",{style:{margin:"0 18px 8px",padding:"8px 10px",background:"#f8fafc",borderRadius:"8px",border:"0.5px solid #e2e8f0"},children:[(0,E.jsx)("p",{style:{margin:"0 0 4px",fontSize:"9px",fontWeight:600,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:"How to use"}),e.map((t,o)=>(0,E.jsxs)("p",{style:{margin:"0 0 2px",fontSize:"10px",color:"#475569"},children:[o+1,". ",t]},o))]})}var Rn=(0,ve.forwardRef)(({position:e,settings:t,report:o,isActive:n,aiSupported:A,voiceSupported:i,set:r,onApply:s,onReset:a,onClose:l},g)=>{let{isMobile:u,isTablet:d}=Gg(),[p,B]=(0,ve.useState)([]),[y,m]=(0,ve.useState)(""),[w,b]=(0,ve.useState)(""),[C,c]=(0,ve.useState)(!1),[I,Q]=(0,ve.useState)(null),[k,N]=(0,ve.useState)("idle");(0,ve.useEffect)(()=>{let S=window;!!(S.LanguageModel||S.ai?.languageModel)&&A?Q("gemini"):lo()&&Q("transformers")},[A]),(0,ve.useEffect)(()=>{if(I!=="transformers")return;let S=setInterval(()=>{N(Ht())},500);return()=>clearInterval(S)},[I]);let H=async()=>{if(!(!y.trim()||C)){if(!I){b("\u26A0\uFE0F No AI engine available on this device.");return}c(!0),b("");try{let S;I==="gemini"?S=await Sn(y):(N("loading"),S=await Gn(y),N("ready")),b(S.success&&S.answer?S.answer.replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/#+\s/g,"").trim():"\u26A0\uFE0F "+(S.error||"No answer found on this page"))}catch{b("\u26A0\uFE0F Failed to get answer. Please try again.")}c(!1)}};(0,ve.useEffect)(()=>{(async()=>{try{let oe=window;if(!oe.queryLocalFonts)return;let se=await oe.queryLocalFonts(),W=[...new Set(se.map(re=>re.family))].sort();B(W.slice(0,50))}catch{}})()},[]);let V=I==="gemini"?"Gemini Nano":I==="transformers"?"Transformers.js \xB7 All devices":"Detecting...",T=I==="transformers"&&k==="loading"?"Loading AI model... (first time only)":"...",G=u?{position:"fixed",bottom:0,left:0,right:0,zIndex:9999,background:"#fff",border:"1px solid #e2e8f0",borderRadius:"16px 16px 0 0",boxShadow:"0 -8px 32px rgba(0,0,0,0.12)",maxHeight:"90vh",overflowY:"auto",fontFamily:"system-ui,-apple-system,sans-serif",width:"100%"}:{position:"fixed",bottom:"84px",[e]:"24px",zIndex:9999,width:d?"300px":"320px",maxWidth:"calc(100vw - 48px)",background:"#fff",border:"1px solid #e2e8f0",borderRadius:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.12)",maxHeight:"80vh",overflowY:"auto",fontFamily:"system-ui,-apple-system,sans-serif"};return(0,E.jsxs)("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":"yuktai accessibility preferences","data-yuktai-panel":"true",style:G,children:[(0,E.jsxs)("div",{style:{padding:"14px 18px 12px",borderBottom:"1px solid #f1f5f9",display:"flex",alignItems:"flex-start",justifyContent:"space-between",position:"sticky",top:0,background:"#fff",zIndex:1},children:[(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"7px",marginBottom:"4px",flexWrap:"wrap"},children:[(0,E.jsx)("span",{style:{fontSize:"10px",fontWeight:700,padding:"2px 7px",borderRadius:"99px",background:"#f0fdfa",color:"#0d9488",letterSpacing:"0.05em",fontFamily:"monospace"},children:"@yuktishaalaa/yuktai"}),n&&(0,E.jsx)("span",{style:{fontSize:"10px",fontWeight:700,padding:"2px 7px",borderRadius:"99px",background:"#f0fdfa",color:"#0f766e",border:"1px solid #99f6e4"},children:"\u25CF ACTIVE"})]}),(0,E.jsx)("p",{style:{margin:"0 0 1px",fontSize:"15px",fontWeight:600,color:"#0f172a"},children:"Accessibility"}),(0,E.jsx)("p",{style:{margin:0,fontSize:"11px",color:"#64748b"},children:"WCAG 2.2 \xB7 Open source \xB7 Zero cost \xB7 All devices"})]}),(0,E.jsx)("button",{onClick:l,"aria-label":"Close accessibility panel",style:{background:"none",border:"none",cursor:"pointer",padding:"4px",color:"#94a3b8",fontSize:"20px",lineHeight:1,borderRadius:"6px",flexShrink:0,minWidth:u?"44px":"auto",minHeight:u?"44px":"auto",display:"flex",alignItems:"center",justifyContent:"center"},children:"\xD7"})]}),(0,E.jsx)(qt,{label:"\u267F Core Accessibility",concept:"Rule-based engine \u2014 works on all browsers and devices"}),(0,E.jsx)(go,{steps:["Toggle any feature on","Click Apply settings","Preferences saved automatically"]}),(0,E.jsx)(qe,{icon:"\u{1F527}",label:"Auto-fix ARIA",desc:"Injects missing labels and roles automatically",checked:t.autoFix,onChange:S=>r("autoFix",S),tip:"Fixes aria-label, alt text, roles on every element"}),(0,E.jsx)(Se,{}),(0,E.jsx)(qe,{icon:"\u{1F50A}",label:"Speak on focus",desc:"Browser reads elements aloud as you tab",checked:t.speechEnabled,onChange:S=>r("speechEnabled",S),tip:"Uses browser SpeechSynthesis \u2014 no install needed"}),(0,E.jsx)(Se,{}),(0,E.jsx)(qe,{icon:"\u{1F399}\uFE0F",label:"Voice control",desc:"Say commands to navigate the page",checked:t.voiceControl,onChange:S=>r("voiceControl",S),disabled:!i,disabledReason:"Not supported in this browser",tip:'Say "scroll down", "go to main", "click"'}),(0,E.jsx)(Se,{}),(0,E.jsx)(qt,{label:"\u{1F916} AI Features",color:"#7c3aed",badge:"Gemini Nano",concept:"Large Language Model running privately on your device \u2014 Chrome 127+ only"}),(0,E.jsx)("div",{style:{margin:"4px 18px 6px",padding:"8px 10px",background:A?"#f0fdfa":"#f5f3ff",borderRadius:"8px",border:`0.5px solid ${A?"#99f6e4":"#c4b5fd"}`,fontSize:"10px",color:A?"#0f766e":"#7c3aed",lineHeight:1.5},children:A?"\u2705 Gemini Nano detected \u2014 AI features ready. Runs privately on your device.":"\u2699\uFE0F AI features need one-time setup \u2014 see guide below."}),!A&&(0,E.jsxs)("div",{style:{margin:"0 18px 8px",padding:"10px 12px",background:"#fafafa",borderRadius:"8px",border:"0.5px solid #e2e8f0",fontSize:"11px",color:"#475569",lineHeight:1.7},children:[(0,E.jsx)("p",{style:{margin:"0 0 6px",fontWeight:600,color:"#0f172a",fontSize:"11px"},children:"\u{1F6E0} One-time setup \u2014 5 steps:"}),(0,E.jsxs)("p",{style:{margin:"0 0 3px"},children:["1. Open Chrome \u2192 ",(0,E.jsx)("code",{style:{background:"#f1f5f9",padding:"1px 5px",borderRadius:"4px",fontSize:"10px",color:"#0d9488",fontFamily:"monospace"},children:"chrome://flags"})]}),(0,E.jsx)("p",{style:{margin:"0 0 3px"},children:"2. Enable each flag:"}),(0,E.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"2px",margin:"4px 0 6px 10px"},children:Mg.map(S=>(0,E.jsxs)("span",{style:{fontSize:"10px",color:"#7c3aed",fontFamily:"monospace"},children:["\u2192 ",S]},S))}),(0,E.jsxs)("p",{style:{margin:"0 0 3px"},children:["3. Click ",(0,E.jsx)("strong",{style:{color:"#0f172a"},children:"Relaunch"})]}),(0,E.jsxs)("p",{style:{margin:"0 0 3px"},children:["4. ",(0,E.jsx)("code",{style:{background:"#f1f5f9",padding:"1px 5px",borderRadius:"4px",fontSize:"10px",color:"#0d9488",fontFamily:"monospace"},children:"chrome://components"})," \u2192 Optimization Guide On Device Model \u2192 Check for update"]}),(0,E.jsx)("p",{style:{margin:"0"},children:"5. Refresh \u2014 AI features unlock automatically \u2705"})]}),(0,E.jsx)(qe,{icon:"\u{1F4DD}",label:"Plain English mode",desc:"Rewrites complex text in simple language",checked:t.plainEnglish,onChange:S=>r("plainEnglish",S),disabled:!A,disabledReason:"Enable Gemini Nano \u2014 see setup above",tip:"AI concept: LLM text rewriting"}),(0,E.jsx)(Se,{}),(0,E.jsx)(qe,{icon:"\u{1F4CB}",label:"Summarise page",desc:"3-sentence summary appears at top",checked:t.summarisePage,onChange:S=>r("summarisePage",S),disabled:!A,disabledReason:"Enable Gemini Nano \u2014 see setup above",tip:"AI concept: Abstractive summarisation"}),(0,E.jsx)(Se,{}),(0,E.jsx)(qe,{icon:"\u{1F3F7}\uFE0F",label:"Smart aria-labels",desc:"AI generates meaningful labels for elements",checked:t.smartLabels,onChange:S=>r("smartLabels",S),disabled:!A,disabledReason:"Enable Gemini Nano \u2014 see setup above",tip:"AI concept: Context-aware label generation"}),(0,E.jsx)(Se,{}),(0,E.jsx)(qt,{label:"\u{1F441}\uFE0F Visual",concept:"CSS filter-based \u2014 works on all browsers and devices"}),(0,E.jsx)(go,{steps:["Toggle any visual mode","Changes apply instantly","Works on mobile and desktop"]}),(0,E.jsx)(qe,{icon:"\u25D1",label:"High contrast",desc:"Boosts contrast for low vision users",checked:t.highContrast,onChange:S=>r("highContrast",S),tip:"CSS filter: contrast()"}),(0,E.jsx)(Se,{}),(0,E.jsx)(qe,{icon:"\u{1F319}",label:"Dark mode",desc:"Inverts colours \u2014 easy on eyes at night",checked:t.darkMode,onChange:S=>r("darkMode",S),tip:"CSS filter: invert + hue-rotate"}),(0,E.jsx)(Se,{}),(0,E.jsx)(qe,{icon:"\u23F8\uFE0F",label:"Reduce motion",desc:"Disables all animations",checked:t.reduceMotion,onChange:S=>r("reduceMotion",S),tip:"WCAG 2.3.3 \u2014 vestibular disorders"}),(0,E.jsx)(Se,{}),(0,E.jsx)(qe,{icon:"\u{1F446}",label:"Large targets",desc:"44\xD744px minimum touch targets",checked:t.largeTargets,onChange:S=>r("largeTargets",S),tip:"WCAG 2.5.8 \u2014 motor impaired users"}),(0,E.jsx)(Se,{}),(0,E.jsxs)("div",{style:{padding:"10px 18px"},children:[(0,E.jsx)("p",{style:{margin:"0 0 2px",fontSize:"12px",fontWeight:500,color:"#0f172a"},children:"\u{1F3A8} Colour blindness"}),(0,E.jsx)("p",{style:{margin:"0 0 8px",fontSize:"10px",color:"#94a3b8"},children:"SVG colour matrix filters \u2014 all devices"}),(0,E.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:Dg.map(S=>(0,E.jsx)("button",{onClick:()=>r("colorBlindMode",S.value),"aria-pressed":t.colorBlindMode===S.value,style:{padding:"4px 10px",borderRadius:"20px",fontSize:"11px",fontWeight:500,border:`1px solid ${t.colorBlindMode===S.value?"#0d9488":"#e2e8f0"}`,background:t.colorBlindMode===S.value?"#f0fdfa":"#fff",color:t.colorBlindMode===S.value?"#0d9488":"#64748b",cursor:"pointer",minHeight:u?"36px":"auto"},children:S.label},S.value))})]}),(0,E.jsx)(Se,{}),(0,E.jsx)(qt,{label:"\u{1F524} Font",concept:"Browser Font API + CSS \u2014 Chrome 103+"}),(0,E.jsx)(go,{steps:["Toggle dyslexia font or pick from device","Adjust size with + / \u2212","Saved across visits"]}),(0,E.jsx)(qe,{icon:"Aa",label:"Dyslexia-friendly font",desc:"Atkinson Hyperlegible \u2014 research-backed",checked:t.dyslexiaFont,onChange:S=>r("dyslexiaFont",S),tip:"By Braille Institute \u2014 free and open source"}),(0,E.jsx)(Se,{}),(0,E.jsxs)("div",{style:{padding:"10px 18px"},children:[(0,E.jsx)("p",{style:{margin:"0 0 2px",fontSize:"12px",fontWeight:500,color:"#0f172a"},children:"\u{1F5A5}\uFE0F Local font"}),(0,E.jsx)("p",{style:{margin:"0 0 8px",fontSize:"10px",color:"#94a3b8"},children:"window.queryLocalFonts() \u2014 Chrome 103+"}),p.length>0?(0,E.jsxs)("select",{value:t.localFont,onChange:S=>r("localFont",S.target.value),"aria-label":"Choose a font from your device",style:{width:"100%",padding:"8px 10px",borderRadius:"8px",border:"1px solid #e2e8f0",fontSize:"13px",color:"#0f172a",background:"#fff",cursor:"pointer",height:u?"44px":"36px"},children:[(0,E.jsx)("option",{value:"",children:"System default"}),p.map(S=>(0,E.jsx)("option",{value:S,style:{fontFamily:S},children:S},S))]}):(0,E.jsx)("p",{style:{margin:0,fontSize:"11px",color:"#94a3b8"},children:"Allow font access when Chrome prompts you."})]}),(0,E.jsx)(Se,{}),(0,E.jsxs)("div",{style:{padding:"10px 18px 14px"},children:[(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"10px"},children:[(0,E.jsxs)("div",{children:[(0,E.jsx)("p",{style:{margin:0,fontSize:"12px",fontWeight:500,color:"#0f172a"},children:"\u{1F4CF} Text size"}),(0,E.jsx)("p",{style:{margin:0,fontSize:"10px",color:"#94a3b8"},children:"Scales all text on the page"})]}),(0,E.jsxs)("span",{style:{fontSize:"12px",fontWeight:600,color:"#0d9488",background:"#f0fdfa",padding:"2px 8px",borderRadius:"99px"},children:[t.fontScale,"%"]})]}),(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,E.jsx)("button",{onClick:()=>{let S=Kt.indexOf(t.fontScale);S>0&&r("fontScale",Kt[S-1])},disabled:t.fontScale<=80,"aria-label":"Decrease text size",style:{width:u?"44px":"30px",height:u?"44px":"30px",borderRadius:"8px",border:"1px solid #e2e8f0",background:"#fff",cursor:t.fontScale<=80?"not-allowed":"pointer",fontSize:"16px",color:t.fontScale<=80?"#cbd5e1":"#0f172a",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:"\u2212"}),(0,E.jsx)("div",{style:{flex:1,display:"flex",gap:"3px"},children:Kt.map(S=>(0,E.jsx)("button",{onClick:()=>r("fontScale",S),"aria-label":`Set text size to ${S}%`,style:{flex:1,height:"6px",borderRadius:"99px",border:"none",cursor:"pointer",padding:0,background:S<=t.fontScale?"#0d9488":"#e2e8f0",transition:"background 0.15s"}},S))}),(0,E.jsx)("button",{onClick:()=>{let S=Kt.indexOf(t.fontScale);S<Kt.length-1&&r("fontScale",Kt[S+1])},disabled:t.fontScale>=130,"aria-label":"Increase text size",style:{width:u?"44px":"30px",height:u?"44px":"30px",borderRadius:"8px",border:"1px solid #e2e8f0",background:"#fff",cursor:t.fontScale>=130?"not-allowed":"pointer",fontSize:"16px",color:t.fontScale>=130?"#cbd5e1":"#0f172a",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:"+"})]})]}),(0,E.jsx)(Se,{}),(0,E.jsx)(qt,{label:"\u{1F310} Translate",color:"#7c3aed",badge:"Gemini Nano",concept:"Chrome Translation API \u2014 on device, no internet after setup"}),(0,E.jsx)(go,{steps:["Enable Gemini Nano first","Pick your language","Full page translates instantly"]}),(0,E.jsxs)("div",{style:{padding:"6px 18px 12px"},children:[(0,E.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:Po.slice(0,u?8:18).map(S=>(0,E.jsx)("button",{onClick:()=>r("translateLanguage",S.code),"aria-pressed":t.translateLanguage===S.code,disabled:!A,style:{padding:"4px 10px",borderRadius:"20px",fontSize:"11px",fontWeight:500,border:`1px solid ${t.translateLanguage===S.code?"#7c3aed":"#e2e8f0"}`,background:t.translateLanguage===S.code?"#f5f3ff":"#fff",color:t.translateLanguage===S.code?"#7c3aed":"#64748b",cursor:A?"pointer":"not-allowed",opacity:A?1:.5,minHeight:u?"36px":"auto"},children:S.label},S.code))}),!A&&(0,E.jsx)("p",{style:{margin:"6px 0 0",fontSize:"10px",color:"#94a3b8"},children:"Enable Gemini Nano using the setup guide above."})]}),(0,E.jsx)(Se,{}),(0,E.jsx)(qt,{label:"\u{1F4AC} Ask This Page",color:"#0d9488",badge:V,concept:"RAG \u2014 Retrieval Augmented Generation. Works on all devices including mobile."}),(0,E.jsx)(go,{steps:["Type any question about this page","Press Ask or hit Enter",I==="transformers"?"Transformers.js answers \u2014 works on mobile, offline":"Gemini Nano reads page and answers privately","Zero cost. No data leaves your device."]}),(0,E.jsxs)("div",{style:{margin:"0 18px 8px",padding:"6px 10px",background:I==="gemini"?"#f0fdfa":I==="transformers"?"#f5f3ff":"#f8fafc",borderRadius:"8px",border:`0.5px solid ${I==="gemini"?"#99f6e4":I==="transformers"?"#c4b5fd":"#e2e8f0"}`,fontSize:"10px",color:I==="gemini"?"#0f766e":I==="transformers"?"#7c3aed":"#94a3b8"},children:[I==="gemini"&&"\u2705 Using Gemini Nano \u2014 on device, private, instant",I==="transformers"&&"\u2705 Using Transformers.js \u2014 works on mobile and all browsers",!I&&"\u23F3 Detecting AI engine...",I==="transformers"&&k==="loading"&&" \xB7 Loading model...",I==="transformers"&&k==="ready"&&" \xB7 Model ready \u2705"]}),(0,E.jsxs)("div",{style:{padding:"0 18px 14px"},children:[(0,E.jsxs)("div",{style:{display:"flex",gap:"6px",marginBottom:"8px"},children:[(0,E.jsx)("input",{type:"text",value:y,onChange:S=>m(S.target.value),onKeyDown:S=>{S.key==="Enter"&&H()},placeholder:"e.g. What does this page do?",disabled:C||!I,"aria-label":"Ask a question about this page",style:{flex:1,padding:"8px 10px",borderRadius:"8px",border:"1px solid #e2e8f0",fontSize:"12px",color:"#0f172a",background:I?"#fff":"#f8fafc",outline:"none",height:u?"44px":"36px"}}),(0,E.jsx)("button",{onClick:H,disabled:C||!y.trim()||!I,"aria-label":"Ask question",style:{padding:"8px 14px",borderRadius:"8px",border:"none",background:I&&y.trim()&&!C?"#0d9488":"#e2e8f0",color:I&&y.trim()&&!C?"#fff":"#94a3b8",fontSize:"12px",fontWeight:600,cursor:I&&y.trim()&&!C?"pointer":"not-allowed",flexShrink:0,height:u?"44px":"36px",minWidth:"52px",transition:"background 0.2s"},children:C?T:"Ask"})]}),w&&(0,E.jsxs)("div",{role:"status","aria-live":"polite",style:{padding:"10px 12px",background:"#f0fdfa",border:"1px solid #99f6e4",borderRadius:"8px",fontSize:"12px",color:"#0f766e",lineHeight:1.6,maxHeight:"180px",overflowY:"auto"},children:[(0,E.jsx)("strong",{style:{display:"block",marginBottom:"4px",fontSize:"11px",color:"#0d9488"},children:"\u{1F4AC} Answer"}),w,(0,E.jsx)("button",{onClick:()=>{b(""),m("")},style:{display:"block",marginTop:"6px",background:"none",border:"none",color:"#94a3b8",fontSize:"10px",cursor:"pointer",padding:0},children:"Clear"})]})]}),o&&(0,E.jsx)("div",{role:"status",style:{margin:"0 14px 10px",padding:"8px 12px",background:"#f0fdfa",border:"1px solid #99f6e4",borderRadius:"8px",fontSize:"12px",color:"#0f766e",fontWeight:500,fontFamily:"monospace"},children:o.fixed>0?`\u2713 ${o.fixed} fixes \xB7 ${o.scanned} nodes \xB7 ${o.renderTime}ms \xB7 Score: ${o.score}/100`:`\u2713 0 auto-fixes needed \xB7 ${o.scanned} nodes \xB7 ${o.renderTime}ms`}),(0,E.jsxs)("div",{style:{display:"flex",gap:"8px",padding:"12px 14px 14px",position:u?"sticky":"relative",bottom:u?0:"auto",background:"#fff",borderTop:"1px solid #f1f5f9"},children:[(0,E.jsx)("button",{onClick:a,style:{flex:1,padding:u?"12px 0":"8px 0",fontSize:"13px",fontWeight:500,borderRadius:"9px",border:"1px solid #e2e8f0",background:"#fff",color:"#64748b",cursor:"pointer"},children:"Reset"}),(0,E.jsx)("button",{onClick:s,style:{flex:2,padding:u?"12px 0":"8px 0",fontSize:"13px",fontWeight:600,borderRadius:"9px",border:"none",background:"#0d9488",color:"#fff",cursor:"pointer"},children:"Apply settings"})]})]})});Rn.displayName="WidgetPanel";Jt();x();var at=require("react");x();var Rg={hotel:["hotel","resort","motel","inn","accommodation","lodge","stay","room","booking","hospitality"],ecommerce:["shop","store","ecommerce","e-commerce","sell","product","cart","buy","marketplace","retail"],restaurant:["restaurant","food","cafe","cafeteria","menu","dining","eat","cuisine","bistro","takeaway","delivery"],portfolio:["portfolio","freelance","personal","designer","developer","creative","showcase","work","hire me"],blog:["blog","article","post","write","news","magazine","journal","content"],saas:["saas","dashboard","app","software","platform","tool","analytics","admin","manage","crm"],government:["government","govt","portal","citizen","scheme","welfare","municipal","public","official"],healthcare:["hospital","clinic","doctor","health","medical","patient","appointment","pharmacy"],education:["school","college","university","course","learn","education","student","lms","training"],realestate:["real estate","property","house","flat","apartment","rent","buy property","listing"],landing:["landing","startup","launch","product launch","coming soon","waitlist"],generic:[]},Tg={hotel:["home","rooms","booking","about","contact"],ecommerce:["home","products","cart","checkout","about","contact"],restaurant:["home","menu","reservations","about","contact"],portfolio:["home","portfolio","about","contact"],blog:["home","blog","about","contact"],saas:["home","pricing","dashboard","auth","about","contact"],government:["home","services","about","contact","faq"],healthcare:["home","services","booking","team","about","contact"],education:["home","services","pricing","about","contact"],realestate:["home","products","about","contact"],landing:["home","pricing","about","contact"],generic:["home","about","services","contact"]},Fg={home:["home","homepage","main","landing"],about:["about","who we are","our story","company"],contact:["contact","reach us","get in touch","location"],services:["service","what we offer","solution","offering"],pricing:["pricing","price","plan","subscription","cost","fee"],blog:["blog","article","news","post"],auth:["login","register","signup","sign up","sign in","auth","account"],dashboard:["dashboard","admin","panel","manage","analytics"],gallery:["gallery","photo","image","portfolio"],products:["product","shop","store","item","catalogue"],cart:["cart","basket","shopping cart"],checkout:["checkout","payment","pay","order"],rooms:["room","suite","accommodation","stay"],booking:["booking","reserve","reservation","schedule","appointment"],menu:["menu","food","dish","cuisine"],reservations:["reservation","table booking","book table"],portfolio:["portfolio","work","project","case study"],team:["team","staff","member","people","who we are"],faq:["faq","question","answer","help","support"],terms:["terms","condition","legal"],privacy:["privacy","policy","gdpr","data"]},Lg={Authentication:["login","register","auth","signup","sign in","account"],Payment:["payment","stripe","pay","checkout","billing"],Search:["search","filter","find"],"Dark mode":["dark mode","dark theme","night mode"],"Multi-language":["multilingual","multi language","translation","i18n"],SEO:["seo","search engine","meta","google"],Analytics:["analytics","tracking","stats","dashboard"],Email:["email","newsletter","contact form","notification"],Map:["map","location","address","google maps"],"Social media":["social","instagram","facebook","twitter","share"],"Image gallery":["gallery","photo","image","carousel"],"Booking system":["booking","reservation","appointment","schedule"],"Shopping cart":["cart","basket","shop","ecommerce"],"Blog/CMS":["blog","cms","content","article","post"]},Pg={blue:["blue","navy","sky","ocean","corporate"],green:["green","nature","eco","environment","health","fresh"],purple:["purple","violet","luxury","creative","royal"],red:["red","bold","energy","passion","food"],orange:["orange","warm","friendly","fun"],teal:["teal","turquoise","modern","tech"],indigo:["indigo","professional","trust","finance","bank"],gray:["gray","minimal","clean","simple","neutral"]},Yg={hotel:"indigo",ecommerce:"blue",restaurant:"red",portfolio:"purple",blog:"gray",saas:"teal",government:"blue",healthcare:"green",education:"indigo",realestate:"orange",landing:"purple",generic:"blue"};function Ug(e){let t=[/(?:for|called|named|company|business|brand)\s+["']?([A-Z][a-zA-Z\s]{1,30})["']?/i,/["']([A-Z][a-zA-Z\s]{1,30})["']/,/^([A-Z][a-zA-Z]+(?:\s[A-Z][a-zA-Z]+)?)/m];for(let o of t){let n=e.match(o);if(n?.[1]){let A=n[1].trim();if(A.length>2&&A.length<40)return A}}return"My Business"}function Hg(e){let t=e.toLowerCase(),o="generic",n=0;for(let[A,i]of Object.entries(Rg)){let r=0;for(let s of i)t.includes(s)&&r++;r>n&&(n=r,o=A)}return o}function Jg(e,t){let o=e.toLowerCase(),n=new Set(Tg[t]);for(let[A,i]of Object.entries(Fg))for(let r of i)if(o.includes(r)){n.add(A);break}return n.add("home"),n.add("contact"),Array.from(n)}function Kg(e){let t=e.toLowerCase(),o=[];for(let[n,A]of Object.entries(Lg))for(let i of A)if(t.includes(i)){o.push(n);break}return o}function qg(e,t){let o=e.toLowerCase();for(let[n,A]of Object.entries(Pg))for(let i of A)if(o.includes(i))return n;return Yg[t]}function aa(e){let t=Hg(e),o=Jg(e,t),n=Kg(e),A=qg(e,t);return{siteName:Ug(e),websiteType:t,pages:o,features:n,theme:A,description:e.slice(0,200)}}var L=require("react/jsx-runtime"),Wg=["Hotel booking website for Grand Palace Hotels with rooms, booking and payment","E-commerce store for organic food products with cart and checkout","Restaurant website for Spice Garden with menu and table reservations","Portfolio website for a freelance designer with gallery and contact","SaaS dashboard for project management with pricing and auth","Government portal for citizen services with FAQ and contact"],Vg={home:"\u{1F3E0}",about:"\u2139\uFE0F",contact:"\u{1F4EC}",services:"\u2699\uFE0F",pricing:"\u{1F4B0}",blog:"\u{1F4DD}",auth:"\u{1F510}",dashboard:"\u{1F4CA}",gallery:"\u{1F5BC}\uFE0F",products:"\u{1F6D2}",cart:"\u{1F6CD}\uFE0F",checkout:"\u{1F4B3}",rooms:"\u{1F6CF}\uFE0F",booking:"\u{1F4C5}",menu:"\u{1F37D}\uFE0F",reservations:"\u{1FA91}",portfolio:"\u{1F4BC}",team:"\u{1F465}",faq:"\u2753",terms:"\u{1F4C4}",privacy:"\u{1F512}"},_g={hotel:"\u{1F3E8}",ecommerce:"\u{1F6D2}",restaurant:"\u{1F37D}\uFE0F",portfolio:"\u{1F4BC}",blog:"\u{1F4DD}",saas:"\u26A1",government:"\u{1F3DB}\uFE0F",healthcare:"\u{1F3E5}",education:"\u{1F393}",realestate:"\u{1F3E0}",landing:"\u{1F680}",generic:"\u{1F310}"};function Fn({position:e,onClose:t}){let[o,n]=(0,at.useState)("input"),[A,i]=(0,at.useState)(""),[r,s]=(0,at.useState)(null),[a,l]=(0,at.useState)(0),[g,u]=(0,at.useState)(""),d=(0,at.useCallback)(()=>{if(!A.trim())return;let m=aa(A);s(m),n("preview")},[A]),p=(0,at.useCallback)(async()=>{if(r){n("generating"),l(0),u("");try{let m=[{msg:"Parsing requirement...",pct:15},{msg:"Loading templates...",pct:30},{msg:"Generating pages...",pct:55},{msg:"Building components...",pct:70},{msg:"Creating styles...",pct:85},{msg:"Packaging ZIP...",pct:95}];for(let b of m)l(b.pct),await new Promise(C=>setTimeout(C,200));let{generateZip:w}=await Promise.resolve().then(()=>(Fa(),Ta));await w(r),l(100),n("done")}catch(m){u(m instanceof Error?m.message:"Generation failed. Please try again."),n("preview")}}},[r]),B=()=>{n("input"),i(""),s(null),l(0),u("")},y={position:"fixed",bottom:"204px",[e]:"24px",zIndex:9999,width:"340px",maxWidth:"calc(100vw - 48px)",background:"#fff",border:"1px solid #e2e8f0",borderRadius:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.14)",fontFamily:"system-ui,-apple-system,sans-serif",maxHeight:"75vh",overflowY:"auto"};return(0,L.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"yuktai Vibe Coder","data-yuktai-panel":"true",style:y,children:[(0,L.jsxs)("div",{style:{padding:"14px 16px 12px",borderBottom:"1px solid #f1f5f9",display:"flex",alignItems:"flex-start",justifyContent:"space-between",position:"sticky",top:0,background:"#fff",zIndex:1},children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("p",{style:{margin:"0 0 2px",fontSize:"13px",fontWeight:700,color:"#0f172a"},children:"\u26A1 Vibe Coder"}),(0,L.jsx)("p",{style:{margin:0,fontSize:"10px",color:"#64748b"},children:"Describe your website \u2192 Download Next.js ZIP"})]}),(0,L.jsx)("button",{onClick:t,"aria-label":"Close vibe coder",style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8",fontSize:"18px",padding:"2px"},children:"\xD7"})]}),o==="input"&&(0,L.jsxs)("div",{style:{padding:"14px 16px"},children:[(0,L.jsx)("p",{style:{margin:"0 0 10px",fontSize:"11px",color:"#64748b"},children:"Describe your business website in plain English. The plugin will generate a complete Next.js project for you."}),(0,L.jsx)("p",{style:{margin:"0 0 6px",fontSize:"10px",fontWeight:600,color:"#94a3b8",textTransform:"uppercase"},children:"Examples"}),(0,L.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"4px",marginBottom:"12px"},children:Wg.slice(0,3).map(m=>(0,L.jsx)("button",{onClick:()=>i(m),style:{padding:"6px 10px",borderRadius:"8px",border:"1px solid #e2e8f0",background:"#f8fafc",color:"#475569",fontSize:"10px",cursor:"pointer",textAlign:"left",lineHeight:1.4},children:m},m))}),(0,L.jsx)("textarea",{value:A,onChange:m=>i(m.target.value),placeholder:"e.g. I need a hotel booking website with rooms, search, and payment for Grand Palace Hotels",rows:4,"aria-label":"Describe your website",style:{width:"100%",padding:"10px",borderRadius:"8px",border:"1px solid #e2e8f0",fontSize:"12px",color:"#0f172a",resize:"vertical",outline:"none",fontFamily:"inherit",lineHeight:1.5}}),(0,L.jsx)("button",{onClick:d,disabled:!A.trim(),style:{width:"100%",marginTop:"10px",padding:"10px",borderRadius:"8px",border:"none",background:A.trim()?"#f59e0b":"#e2e8f0",color:A.trim()?"#fff":"#94a3b8",fontSize:"13px",fontWeight:700,cursor:A.trim()?"pointer":"not-allowed",transition:"background 0.2s"},children:"Analyse Requirement \u2192"})]}),o==="preview"&&r&&(0,L.jsxs)("div",{style:{padding:"14px 16px"},children:[g&&(0,L.jsxs)("div",{style:{padding:"10px",background:"#fef2f2",border:"1px solid #fca5a5",borderRadius:"8px",marginBottom:"12px",fontSize:"11px",color:"#dc2626"},children:["\u26A0\uFE0F ",g]}),(0,L.jsxs)("div",{style:{background:"#f8fafc",borderRadius:"10px",padding:"12px",marginBottom:"12px"},children:[(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:[(0,L.jsx)("span",{style:{fontSize:"1.5rem"},children:_g[r.websiteType]||"\u{1F310}"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("p",{style:{margin:0,fontSize:"13px",fontWeight:700,color:"#0f172a"},children:r.siteName}),(0,L.jsxs)("p",{style:{margin:0,fontSize:"10px",color:"#64748b",textTransform:"capitalize"},children:[r.websiteType," website \xB7 ",r.theme," theme"]})]})]}),(0,L.jsxs)("p",{style:{margin:"8px 0 6px",fontSize:"10px",fontWeight:600,color:"#94a3b8",textTransform:"uppercase"},children:["Pages to generate (",r.pages.length,")"]}),(0,L.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px"},children:r.pages.map(m=>(0,L.jsxs)("span",{style:{padding:"2px 8px",borderRadius:"99px",background:"#f0fdf4",border:"1px solid #86efac",fontSize:"10px",color:"#166534",fontWeight:500},children:[Vg[m]||"\u{1F4C4}"," ",m]},m))}),r.features.length>0&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("p",{style:{margin:"10px 0 6px",fontSize:"10px",fontWeight:600,color:"#94a3b8",textTransform:"uppercase"},children:"Detected features"}),(0,L.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px"},children:r.features.map(m=>(0,L.jsx)("span",{style:{padding:"2px 8px",borderRadius:"99px",background:"#f5f3ff",border:"1px solid #c4b5fd",fontSize:"10px",color:"#7c3aed",fontWeight:500},children:m},m))})]})]}),(0,L.jsxs)("div",{style:{margin:"0 0 12px",padding:"10px 12px",background:"#f0fdf4",borderRadius:"8px",border:"1px solid #86efac"},children:[(0,L.jsx)("p",{style:{margin:"0 0 4px",fontSize:"10px",fontWeight:700,color:"#166534"},children:"\u{1F4E6} What you get:"}),(0,L.jsxs)("p",{style:{margin:0,fontSize:"10px",color:"#166534",lineHeight:1.6},children:["\u2705 Complete Next.js 16 project",(0,L.jsx)("br",{}),"\u2705 Tailwind CSS + CSS Modules",(0,L.jsx)("br",{}),"\u2705 TypeScript configured",(0,L.jsx)("br",{}),"\u2705 Navbar + Footer components",(0,L.jsx)("br",{}),"\u2705 All ",r.pages.length," pages ready",(0,L.jsx)("br",{}),"\u2705 Mobile responsive",(0,L.jsx)("br",{}),"\u2705 npm run dev \u2192 works immediately"]})]}),(0,L.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[(0,L.jsx)("button",{onClick:B,style:{flex:1,padding:"9px",borderRadius:"8px",border:"1px solid #e2e8f0",background:"#fff",color:"#64748b",fontSize:"12px",fontWeight:600,cursor:"pointer"},children:"\u2190 Edit"}),(0,L.jsx)("button",{onClick:p,style:{flex:2,padding:"9px",borderRadius:"8px",border:"none",background:"#f59e0b",color:"#fff",fontSize:"13px",fontWeight:700,cursor:"pointer"},children:"\u2B07\uFE0F Generate & Download ZIP"})]})]}),o==="generating"&&(0,L.jsxs)("div",{style:{padding:"2rem 16px",textAlign:"center"},children:[(0,L.jsx)("p",{style:{fontSize:"2rem",marginBottom:"1rem"},children:"\u26A1"}),(0,L.jsx)("p",{style:{fontSize:"13px",fontWeight:700,color:"#0f172a",marginBottom:"0.5rem"},children:"Generating your project..."}),(0,L.jsx)("p",{style:{fontSize:"11px",color:"#64748b",marginBottom:"1.5rem"},children:a<30?"Parsing requirement...":a<55?"Loading templates...":a<70?"Generating pages...":a<85?"Building components...":a<95?"Creating styles...":"Packaging ZIP..."}),(0,L.jsx)("div",{style:{height:"8px",background:"#e2e8f0",borderRadius:"99px",overflow:"hidden"},children:(0,L.jsx)("div",{style:{height:"100%",width:`${a}%`,background:"#f59e0b",borderRadius:"99px",transition:"width 0.3s ease"}})}),(0,L.jsxs)("p",{style:{marginTop:"0.5rem",fontSize:"10px",color:"#94a3b8"},children:[a,"%"]})]}),o==="done"&&r&&(0,L.jsxs)("div",{style:{padding:"2rem 16px",textAlign:"center"},children:[(0,L.jsx)("p",{style:{fontSize:"3rem",marginBottom:"0.75rem"},children:"\u2705"}),(0,L.jsxs)("p",{style:{fontSize:"14px",fontWeight:700,color:"#0f172a",marginBottom:"0.5rem"},children:[r.siteName," downloaded!"]}),(0,L.jsx)("p",{style:{fontSize:"11px",color:"#64748b",marginBottom:"1.5rem",lineHeight:1.6},children:"Your ZIP is downloading. Unzip it and run:"}),["npm install","npm run dev"].map(m=>(0,L.jsx)("div",{style:{background:"#0f172a",borderRadius:"8px",padding:"8px 12px",marginBottom:"6px",textAlign:"left"},children:(0,L.jsxs)("code",{style:{fontSize:"12px",color:"#a7f3d0",fontFamily:"monospace"},children:["$ ",m]})},m)),(0,L.jsx)("p",{style:{fontSize:"11px",color:"#10b981",margin:"1rem 0",fontWeight:600},children:"Then open http://localhost:3000 \u{1F680}"}),(0,L.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[(0,L.jsx)("button",{onClick:B,style:{flex:1,padding:"9px",borderRadius:"8px",border:"1px solid #e2e8f0",background:"#fff",color:"#64748b",fontSize:"12px",fontWeight:600,cursor:"pointer"},children:"New Project"}),(0,L.jsx)("button",{onClick:p,style:{flex:1,padding:"9px",borderRadius:"8px",border:"none",background:"#f59e0b",color:"#fff",fontSize:"12px",fontWeight:700,cursor:"pointer"},children:"\u2B07\uFE0F Download Again"})]})]})]})}x();x();var co="[data-yuktai-panel],[data-yuktai-ui],[data-yuktai-fabs]";function $e(){return typeof window<"u"&&typeof document<"u"}function Gt(e){return typeof e=="object"&&e!==null&&e.nodeType===9}function Le(e){return e||($e()?document:null)}function ee(e,t,o={}){return Array.from(e.querySelectorAll(t)).filter(n=>!n.closest(co)&&(o.includeHidden||Xg(n)))}function Xg(e){if(!$e()||e.closest("[hidden],[aria-hidden='true']"))return!1;let t=e;for(;t;){let o=window.getComputedStyle(t);if(o.display==="none"||o.visibility==="hidden")return!1;t=t.parentElement}return!0}function Ce(e){return(e??"").replace(/\s+/g," ").trim()}function Be(e,t=60){let o=Ce(e);return o.length>t?`${o.slice(0,t-1)}\u2026`:o}function je(e){let t=[],o=e;for(;o&&o.nodeType===1&&t.length<4;){let n=o.tagName.toLowerCase();if(o.id&&/^[A-Za-z][\w-]*$/.test(o.id)){t.unshift(`${n}#${o.id}`);break}let A=o.parentElement;if(!A){t.unshift(n);break}let i=Array.from(A.children).filter(r=>r.tagName===o.tagName);t.unshift(i.length>1?`${n}:nth-of-type(${i.indexOf(o)+1})`:n),o=A}return t.join(" > ")}function jg(e,t){return e.split(/\s+/).map(o=>Ce(t.getElementById(o)?.textContent)).filter(Boolean).join(" ")}function Ye(e){let t=e.ownerDocument,o=e.getAttribute("aria-labelledby");if(o){let i=jg(o,t);if(i)return i}let n=Ce(e.getAttribute("aria-label"));if(n)return n;let A=e.tagName.toLowerCase();if(A==="input"||A==="select"||A==="textarea"){let i=e.getAttribute("id");if(i){let a=t.querySelector(`label[for="${Zg(i)}"]`),l=Ce(a?.textContent);if(l)return l}let r=e.closest("label");if(r){let a=Ce(r.textContent);if(a)return a}let s=(e.getAttribute("type")??"").toLowerCase();if(s==="submit"||s==="button"||s==="reset")return Ce(e.getAttribute("value"))||(s==="submit"?"Submit":"");if(s==="image")return Ce(e.getAttribute("alt"))}if(A==="img")return Ce(e.getAttribute("alt"));if(A==="button"||A==="a"||e.getAttribute("role")){let i=Ce(e.textContent);if(i)return i;let r=Array.from(e.querySelectorAll("img[alt], svg[aria-label]")).map(s=>Ce(s.getAttribute("alt")??s.getAttribute("aria-label"))).filter(Boolean).join(" ");if(r)return r}return Ce(e.getAttribute("title"))}function Zg(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/["\\]/g,"\\$&")}function pt(e){if(!e)return null;let t=e.trim().toLowerCase();if(t==="transparent")return{r:0,g:0,b:0,a:0};let o=t.match(/^rgba?\(([^)]+)\)$/);if(o){let A=o[1].split(/[\s,/]+/).filter(Boolean),[i,r,s]=A.slice(0,3).map(Number),a=A[3],l=a===void 0?1:a.endsWith("%")?Number(a.slice(0,-1))/100:Number(a);return[i,r,s,l].some(g=>!Number.isFinite(g))?null:{r:i,g:r,b:s,a:l}}let n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let A=n[1];return(A.length===3||A.length===4)&&(A=A.split("").map(i=>i+i).join("")),A.length!==6&&A.length!==8?null:{r:parseInt(A.slice(0,2),16),g:parseInt(A.slice(2,4),16),b:parseInt(A.slice(4,6),16),a:A.length===8?parseInt(A.slice(6,8),16)/255:1}}return null}function Ln(e,t){let o=e.a+t.a*(1-e.a);if(o===0)return{r:0,g:0,b:0,a:0};let n=(A,i)=>(A*e.a+i*t.a*(1-e.a))/o;return{r:n(e.r,t.r),g:n(e.g,t.g),b:n(e.b,t.b),a:o}}function zo(e){let t=o=>{let n=o/255;return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function $t(e,t){let o=t.a<1?Ln(t,{r:255,g:255,b:255,a:1}):t,n=e.a<1?Ln(e,o):e,A=zo(n),i=zo(o),[r,s]=A>i?[A,i]:[i,A];return Math.round((r+.05)/(s+.05)*100)/100}function La(e){let t=[],o=e;for(;o;){let A=window.getComputedStyle(o);if(A.backgroundImage&&A.backgroundImage!=="none")return null;let i=pt(A.backgroundColor);if(i&&i.a>0&&(t.push(i),i.a>=1))break;o=o.parentElement}let n={r:255,g:255,b:255,a:1};for(let A=t.length-1;A>=0;A--)n=Ln(t[A],n);return n}function Pa(e){let t=window.getComputedStyle(e),o=parseFloat(t.fontSize)||16,n=parseInt(t.fontWeight,10)||400;return o>=24||o>=18.66&&n>=700}function uo(e){return Array.from(e.childNodes).some(t=>t.nodeType===3&&Ce(t.textContent).length>0)}var Ya="a[href],button,input:not([type='hidden']),select,textarea,summary,[tabindex]:not([tabindex='-1']),[contenteditable='true']",Oo="a[href],button,input:not([type='hidden']),select,textarea,summary,[role='button'],[role='link'],[role='checkbox'],[role='tab'],[role='menuitem']";x();x();var Ua=["AGFzbQEAAAABggESYAN/f38Bf2ACf38Bf2ACf38AYAN/f38AYAN/fH8AYAN/f3wAYAV/f39/fwBgBX9/f39/AX9gBH9/f38AYAR/","f39/AX9gAX8AYAp/f39/f3x/f39/AX9gAABgAX8Bf2AIf39/f3x/f38Bf2AAAX9gBn9/f39/fwBgBn9/f39/fwF/A2xrAgMEBQMD","AwMGAwAGAwYHBwcDAwgICAgDAwMDAwMDAwMIAwMDCQkJCQkJCQkJCQkJAQEAAwkHCgELCAIDCggKAwMADA0ODwIMAgMGEAIDAgYK","AwYCAgwKCgMBCAEDEQgJAAEICAMDAwwJAwAEBQFwAQICBQMBABEGCQF/AUGAgMAACwdaBgZtZW1vcnkCAAx5a19yYWdfYnVpbGQA","QQx5a19yYWdfcmVzZXQAQg55a19yYWdfc2NyYXRjaABDDXlrX3JhZ19zZWFyY2gARA55a19yYWdfdmVyc2lvbgBFCQcBAEEBCwFh","CqTuAWuOAgEGfwJAAkACQCAAKAIIIgJFDQAgASgCACIDKAIIIQRBACEFIAAoAgQiBiEBA0AgASgCACIHIARPDQICQCADKAIEIAdB","A3RqKwMARAAAAAAAAAAAZA0AAkAgBUEBaiACTw0AIAFBBGohASAFQX9zIAJqIQIDQCABKAIAIgcgAygCCCIETw0GAkAgAygCBCAH","QQN0aisDAEQAAAAAAAAAAGRFDQAgBiAFQQJ0aiAHNgIAIAVBAWohBQsgAUEEaiEBIAJBf2oiAg0ACwsgACAFNgIIDwsgAUEEaiEB","IAIgBUEBaiIFRw0ACwsPCyAHIARB8IbAgAAQ3ICAgAAACyAHIARB8IbAgAAQ3ICAgAAAC4gBAQJ/AkBBACACIAFrIgMgAyACSxsi","BCAAKAIAIAAoAggiA2tNDQAgACADIARBBEEEEMqAgIAAIAAoAgghAwsCQCABIAJPDQAgAyACaiABayEEIAAoAgQgA0ECdGohAwNA","IAMgATYCACADQQRqIQMgAiABQQFqIgFHDQALIAQhAwsgACADNgIIC/ABAQN/I4CAgIAAQSBrIgMkgICAgAACQAJAAkACQCABvVAN","ACADQRRqIAJBAEEIQQgQz4CAgAAgAygCGCEEIAMoAhRBAUYNAiADQQA2AhAgAyADKAIcNgIMIAMgBDYCCCADQQhqIAIgARCDgICA","ACAAIAMoAhA2AgggACADKQIINwIADAELIANBFGogAkEBQQhBCBDPgICAACADKAIYIQQgAygCFEEBRg0CIAMoAhwhBSAAIAI2Aggg","ACAFNgIEIAAgBDYCAAsgA0EgaiSAgICAAA8LIAQgAygCHBDMgICAAAALIAQgAygCHBDMgICAAAALlAEBA38CQCABIAAoAgAgACgC","CCIDa00NACAAIAMgAUEIQQgQyoCAgAAgACgCCCEDCyAAKAIEIANBA3RqIQQCQAJAAkAgAUECSQ0AIAFBf2ohBQNAIAQgAjkDACAE","QQhqIQQgBUF/aiIFDQALIAMgAWpBf2ohAwwBCyABRQ0BCyAEIAI5AwAgA0EBaiEDCyAAIAM2AggLzAEBA38jgICAgABBEGsiAySA","gICAAAJAAkACQAJAIAFB/wFxDQAgA0EEaiACQQFBAUEBEM+AgIAAIAMoAgghBCADKAIEQQFGDQIgAygCDCEFDAELIANBBGogAkEA","QQFBARDPgICAACADKAIIIQQgAygCBEEBRg0CIAMoAgwhBSACRQ0AIAUgASAC/AsACyAAIAI2AgggACAFNgIEIAAgBDYCACADQRBq","JICAgIAADwsgBCADKAIMEMyAgIAAAAsgBCADKAIMEMyAgIAAAAvvAQECfyOAgICAAEEgayIDJICAgIAAAkACQAJAAkAgAUUNACAD","QRRqIAJBAEEEQQQQz4CAgAAgAygCGCEEIAMoAhRBAUYNAiADQQA2AhAgAyADKAIcNgIMIAMgBDYCCCADQQhqIAIgARCGgICAACAA","IAMoAhA2AgggACADKQIINwIADAELIANBFGogAkEBQQRBBBDPgICAACADKAIYIQEgAygCFEEBRg0CIAMoAhwhBCAAIAI2AgggACAE","NgIEIAAgATYCAAsgA0EgaiSAgICAAA8LIAQgAygCHBDMgICAAAALIAEgAygCHBDMgICAAAALlAEBA38CQCABIAAoAgAgACgCCCID","a00NACAAIAMgAUEEQQQQyoCAgAAgACgCCCEDCyAAKAIEIANBAnRqIQQCQAJAAkAgAUECSQ0AIAFBf2ohBQNAIAQgAjYCACAEQQRq","IQQgBUF/aiIFDQALIAMgAWpBf2ohAwwBCyABRQ0BCyAEIAI2AgAgA0EBaiEDCyAAIAM2AggLkAUDBX8CfAN/AkAgAUECSQ0AAkAC","QAJAAkACQAJAAkAgACgCACIDIAIoAgAoAgAiBCgCCCIFTw0AIAAoAgQiBiAFTw0BAkACQEEAQQBBfyAEKAIEIgcgA0EDdGorAwAi","CCAHIAZBA3RqKwMAIglmIgQbQQFBfiAEGyAIIAllGyAIIAhiIAkgCWJyGyIEQX9GIAYgA0kgBBsiCg0AQQIhAyABQQJGDQEgAEEI","aiELQQIhAwNAIAYgBU8NBSALKAIAIgQgBU8NBkEAQQBBfyAJIAcgBEEDdGorAwAiCGYiDBtBAUF+IAwbIAkgCGUbIAkgCWIgCCAI","YnIbIgxBf0YgBCAGSSAMGw0CIAtBBGohCyAIIQkgBCEGIAEgA0EBaiIDRw0ADAkLC0ECIQMgAUECRg0AIABBCGohC0ECIQMDQCAG","IAVPDQYgCygCACIEIAVPDQdBAEEAQX8gCSAHIARBA3RqKwMAIghmIgwbQQFBfiAMGyAJIAhlGyAJIAliIAggCGJyGyIMQX9GIAQg","BkkgDBtBAUcNASALQQRqIQsgCCEJIAQhBiABIANBAWoiA0YNCAwACwsgAyABRg0GIAAgAUEAIAFBAXJnQQF0QT5zIAIQiICAgAAM","BwsgAyAFQdCGwIAAENyAgIAAAAsgBiAFQeCGwIAAENyAgIAAAAsgBiAFQdCGwIAAENyAgIAAAAsgBCAFQeCGwIAAENyAgIAAAAsg","BiAFQdCGwIAAENyAgIAAAAsgBCAFQeCGwIAAENyAgIAAAAsgCkUNACABQQF2IQUgAUECdCAAakF8aiEGA0AgACgCACEDIAAgBigC","ADYCACAGIAM2AgAgBkF8aiEGIABBBGohACAFQX9qIgUNAAsLC60GBQh/AnwDfwF8AX8jgICAgABBEGsiBSSAgICAAAJAAkAgAUEh","SQ0AIANBf2ohAwNAAkAgA0F/Rw0AIAAgASAEEKGAgIAADAMLIAAgAUEDdiIGQRxsaiEHIAAgBkEEdGohCAJAAkACQAJAAkACQAJA","AkACQAJAIAFBwABJDQAgACAIIAcgBiAEEI6AgIAAIQYMAQsgCCgCACIJIAQoAgAoAgAiCigCCCIGTw0BIAAoAgAiCyAGTw0CIAco","AgAiDCAGTw0DIAAhBkEAQQBBfyAKKAIEIgogCUEDdGorAwAiDSAKIAtBA3RqKwMAIg5mIg8bQQFBfiAPGyANIA5lGyANIA1iIhAg","DiAOYiIPchsiEUF/RiALIAlJIBEbIhFBAEEAQX8gCiAMQQN0aisDACISIA5mIgobQQFBfiAKGyASIA5lGyASIBJiIhMgD3IbIgpB","f0YgCyAMSSAKG0cNACAHIAggEUEAQQBBfyASIA1mIgYbQQFBfiAGGyASIA1lGyATIBByGyIGQX9GIAkgDEkgBhtzGyEGCyAGIABr","IghBAnYhBiACRQ0GIAAgCGooAgAiCCAEKAIAKAIAIgkoAggiC08NAyACKAIAIgcgC08NBEEAQQBBfyAJKAIEIgsgCEEDdGorAwAi","DiALIAdBA3RqKwMAIg1mIgsbQQFBfiALGyAOIA1lGyAOIA5iIA0gDWJyGyILQX9GIAcgCEkgCxsNBiAFIAQ2AgwgACABIAYgBUEM","ahCqgICAACIGQQFqIQIgBiABTw0FIAEgAmshASAAIAJBAnRqIQBBACECDAcLIAkgBkHQhsCAABDcgICAAAALIAsgBkHghsCAABDc","gICAAAALIAwgBkHQhsCAABDcgICAAAALIAggC0HQhsCAABDcgICAAAALIAcgC0HghsCAABDcgICAAAALIAIgASABQcCGwIAAENqA","gIAAAAsgACAAIAEgBiAEEKyAgIAAIgYgAiADIAQQiICAgAAgASAGQX9zaiEBIAAgBkECdGoiAkEEaiEACyADQX9qIQMgAUEhTw0A","CwsgACABIAQQnYCAgAALIAVBEGokgICAgAALlQIBBH8CQCABQQJJDQACQAJAAkAgAiAAQQRqIAAQioCAgAAiAw0AQQIhBCABQQJG","DQEgAEEEaiEFQQIhBANAIAIgBUEEaiIGIAUQioCAgAANAiAGIQUgASAEQQFqIgRHDQAMAwsLQQIhBCABQQJGDQAgAEEEaiEFQQIh","BANAIAIgBUEEaiIGIAUQioCAgABFDQEgBiEFIAEgBEEBaiIERg0CDAALCyAEIAFGDQAgACABQQAgAUEBcmdBAXRBPnMgAhCLgICA","AAwBCyADRQ0AIAFBAXYhBSABQQJ0IABqQXxqIQQDQCAAKAIAIQEgACAEKAIANgIAIAQgATYCACAEQXxqIQQgAEEEaiEAIAVBf2oi","BQ0ACwsLwAIBBX8CQAJAAkACQAJAAkAgASgCACIDIAAoAgAiACgCBCIEKAIIIgFPDQAgA0EBaiIFIAFPDQEgACgCACIGKAIIIQcg","BCgCBCIAIAVBAnRqKAIAIgQgACADQQJ0aigCACIDSQ0CIAQgB0sNAiACKAIAIgUgAU8NAyAFQQFqIgIgAU8NBCAAIAJBAnRqKAIA","IgEgACAFQQJ0aigCACIASQ0FIAEgB0sNBSAGKAIEIgcgA2ogBCADayAHIABqIAEgAGsQ6ICAgABB/wFxQf8BRg8LIAMgAUGAh8CA","ABDcgICAAAALIAUgAUGQh8CAABDcgICAAAALIAMgBCAHQaCHwIAAENqAgIAAAAsgBSABQbCHwIAAENyAgIAAAAsgAiABQcCHwIAA","ENyAgIAAAAsgACABIAdB0IfAgAAQ2oCAgAAAC40DAQV/I4CAgIAAQRBrIgUkgICAgAACQAJAIAFBIUkNACADQX9qIQMDQAJAIANB","f0cNACAAIAEgBBCigICAAAwDCyAAIAFBA3YiBkEcbGohByAAIAZBBHRqIQgCQAJAIAFBwABJDQAgACAIIAcgBiAEEI+AgIAAIQYM","AQsgACEGIAQgACAIEIqAgIAAIgkgBCAAIAcQioCAgABHDQAgByAIIAkgBCAIIAcQioCAgABzGyEGCyAGIABrIgdBAnYhBgJAAkAg","AkUNACAEIAIgACAHahCKgICAAA0AIAUgBDYCDCAAIAEgBiAFQQxqEKuAgIAAIgZBAWohAgJAIAYgAU8NACABIAJrIQEgACACQQJ0","aiEAQQAhAgwCCyACIAEgAUHAhsCAABDagICAAAALIAAgACABIAYgBBCtgICAACIGIAIgAyAEEIuAgIAAIAEgBkF/c2ohASAAIAZB","AnRqIgJBBGohAAsgA0F/aiEDIAFBIU8NAAsLIAAgASAEEJ6AgIAACyAFQRBqJICAgIAAC5YCAwF+A38BfgJAIAFBAkkNAAJAAkAC","QCAAKQMIIgMgACkDAFQiBA0AQQIhBSABQQJGDQEgAEEQaiEGQQIhBQNAIAYpAwAiByADVA0CIAZBCGohBiAHIQMgASAFQQFqIgVH","DQAMAwsLQQIhBSABQQJGDQAgAEEQaiEGQQIhBQNAIAYpAwAiByADWg0BIAZBCGohBiAHIQMgASAFQQFqIgVGDQIMAAsLIAUgAUYN","ACAAIAFBACABQQFyZ0EBdEE+cyACEI2AgIAADAELIARFDQAgAUEBdiEGIAFBA3QgAGpBeGohBQNAIAApAwAhAyAAIAUpAwA3AwAg","BSADNwMAIAVBeGohBSAAQQhqIQAgBkF/aiIGDQALCwvbAgIDfwN+AkAgAUEhSQ0AIANBf2ohAwNAAkAgA0F/Rw0AIAAgASAAEKOA","gIAADwsgACABQQN2IgVBOGxqIQYgACAFQQV0aiEHAkACQCABQcAASQ0AIAAgByAGIAUgBBCQgICAACEFDAELIAAgBiAHIAApAwAi","CCAHKQMAIglUIgUgCSAGKQMAIgpUcxsgBSAIIApUcxshBQsgBSAAayIGQQN2IQUCQAJAIAJFDQAgAikDACAAIAZqKQMAVA0AIAAg","ASAFIAAQroCAgAAiBUEBaiECAkAgBSABTw0AIAEgAmshASAAIAJBA3RqIQBBACECDAILIAIgASABQcCGwIAAENqAgIAAAAsgACAA","IAEgBSAAEK+AgIAAIgUgAiADIAQQjYCAgAAgASAFQX9zaiEBIAAgBUEDdGoiAkEIaiEACyADQX9qIQMgAUEhTw0ACwsgACABIAQQ","n4CAgAALswMFA38CfAJ/AXwBfwJAIANB+P///wFxRQ0AIAAgACADQQN2IgNBBHQiBWogACADQRxsIgZqIAMgBBCOgICAACEAIAEg","ASAFaiABIAZqIAMgBBCOgICAACEBIAIgAiAFaiACIAZqIAMgBBCOgICAACECCwJAAkACQCABKAIAIgMgBCgCACgCACIHKAIIIgZP","DQAgACgCACIEIAZPDQEgAigCACIFIAZPDQICQEEAQQBBfyAHKAIEIgYgA0EDdGorAwAiCCAGIARBA3RqKwMAIglmIgcbQQFBfiAH","GyAIIAllGyAIIAhiIgogCSAJYiIHchsiC0F/RiAEIANJIAsbIgtBAEEAQX8gBiAFQQN0aisDACIMIAlmIgYbQQFBfiAGGyAMIAll","GyAMIAxiIg0gB3IbIgZBf0YgBCAFSSAGG0cNACACIAEgC0EAQQBBfyAMIAhmIgAbQQFBfiAAGyAMIAhlGyANIApyGyIAQX9GIAMg","BUkgABtzGyEACyAADwsgAyAGQdCGwIAAENyAgIAAAAsgBCAGQeCGwIAAENyAgIAAAAsgBSAGQdCGwIAAENyAgIAAAAuiAQECfwJA","IANB+P///wFxRQ0AIAAgACADQQN2IgNBBHQiBWogACADQRxsIgZqIAMgBBCPgICAACEAIAEgASAFaiABIAZqIAMgBBCPgICAACEB","IAIgAiAFaiACIAZqIAMgBBCPgICAACECCwJAIAQgACABEIqAgIAAIgMgBCAAIAIQioCAgABHDQAgAiABIAMgBCABIAIQioCAgABz","GyEACyAAC5gBAgJ/A34CQCADQfj///8BcUUNACAAIAAgA0EDdiIDQQV0IgVqIAAgA0E4bCIGaiADIAQQkICAgAAhACABIAEgBWog","ASAGaiADIAQQkICAgAAhASACIAIgBWogAiAGaiADIAQQkICAgAAhAgsgACACIAEgACkDACIHIAEpAwAiCFQiAyAIIAIpAwAiCVRz","GyADIAcgCVRzGwvwAgQFfwF8AX8BfAJAAkACQAJAIAFBfGoiAygCACIEIAIoAgAiBSgCACIGKAIIIgdPDQAgASgCACICIAdPDQEC","QEEAQQBBfyAGKAIEIgEgBEEDdGorAwAiCCABIAJBA3QiCWorAwAiCmYiARtBAUF+IAEbIAggCmUbIAggCGIgCiAKYnIbIgFBf0Yg","AiAESSABG0EBRw0AAkADQCADIgFBBGogBDYCACABIABGDQEgAUF8aiIDKAIAIgQgBSgCACIGKAIIIgdPDQUgAiAHTw0GQQBBAEF/","IAYoAgQiByAEQQN0aisDACIIIAcgCWorAwAiCmYiBxtBAUF+IAcbIAggCmUbIAggCGIgCiAKYnIbIgdBf0YgAiAESSAHGw0ACwsg","ASACNgIACw8LIAQgB0HQhsCAABDcgICAAAALIAIgB0HghsCAABDcgICAAAALIAQgB0HQhsCAABDcgICAAAALIAIgB0HghsCAABDc","gICAAAALfAEDfyOAgICAAEEQayIDJICAgIAAAkAgAiABIAFBfGoiBBCKgICAAEUNACADIAEoAgAiBTYCDAJAA0AgBCIBQQRqIAEo","AgA2AgAgASAARg0BIAIgA0EMaiABQXxqIgQQioCAgAANAAsLIAEgBTYCAAsgA0EQaiSAgICAAAupBAMJfwJ8AX8gAiABQQJ0QXxq","IgRqIQUgACAEaiEGIAAgAUEBdiIHQQJ0aiIIQXxqIQkgAygCACEKAkACQAJAAkACQANAIAAoAgAiAyAKKAIAIgsoAggiDE8NASAI","KAIAIgQgDE8NAiACIAQgA0EAQQBBfyALKAIEIgwgA0EDdGorAwAiDSAMIARBA3RqKwMAIg5mIgwbQQFBfiAMGyANIA5lGyANIA1i","IA4gDmJyGyIMQX9GIAQgA0kgDBsiDBs2AgAgCSgCACIDIAooAgAiDygCCCILTw0DIAYoAgAiBCALTw0EIAggDEECdGohCCAAIAxB","AXNBAnRqIQAgAkEEaiECIAUgAyAEQQBBAEF/IA8oAgQiDCADQQN0aisDACINIAwgBEEDdGorAwAiDmYiDBtBAUF+IAwbIA0gDmUb","IA0gDWIgDiAOYnIbIgxBf0YgBCADSSAMGyIMGzYCACAJIAxBAnQiA2shCSADIAZqQXxqIQYgBUF8aiEFIAdBf2oiBw0ACyAGQQRq","IQQgCUEEaiEDAkAgAUEBcUUNACACIAAgCCAAIANJIgkbKAIANgIAIAggACADT0ECdGohCCAAIAlBAnRqIQALAkAgCCAERw0AIAAg","A0YNBQsQ54CAgAAACyADIAxB0IbAgAAQ3ICAgAAACyAEIAxB4IbAgAAQ3ICAgAAACyADIAtB0IbAgAAQ3ICAgAAACyAEIAtB4IbA","gAAQ3ICAgAAACwuIAgEHfyACIAFBAnRBfGoiBGohBSAAIARqIQYgACABQQF2IgdBAnRqIgRBfGohCANAIAIgBCAAIAMgBCAAEIqA","gIAAIgkbKAIANgIAIAUgCCAGIAMgBiAIEIqAgIAAIgobKAIANgIAIAQgCUECdGohBCAAIAlBAXNBAnRqIQAgCCAKQQJ0IglrIQgg","CSAGakF8aiEGIAVBfGohBSACQQRqIQIgB0F/aiIHDQALIAZBBGohBSAIQQRqIQYCQCABQQFxRQ0AIAIgACAEIAAgBkkiCBsoAgA2","AgAgBCAAIAZPQQJ0aiEEIAAgCEECdGohAAsCQCAEIAVHDQAgACAGRw0ADwsQ54CAgAAAC5QCBAV/An4BfwJ+IAIgAUEDdEF4aiIE","aiEFIAAgBGohBiAAIAFBAXYiB0EDdGoiBEF4aiEIA0AgAiAEKQMAIgkgACkDACIKIAkgClQiCxs3AwAgBSAGKQMAIgwgCCkDACIN","IAwgDVYbNwMAIAVBeGohBSACQQhqIQIgCEF4QQAgDCANVBtqIQggBkF4QQAgDCANWhtqIQYgACAJIApaQQN0aiEAIAQgC0EDdGoh","BCAHQX9qIgcNAAsgBkEIaiEFIAhBCGohBgJAIAFBAXFFDQAgAiAAIAQgACAGSSIIGykDADcDACAEIAAgBk9BA3RqIQQgACAIQQN0","aiEACwJAIAQgBUcNACAAIAZHDQAPCxDngICAAAALywECAn8CfAJAAkAgACABQQJ0aiIEKAIAIgEgAygCACgCACIFKAIIIgNPDQAg","ACACQQJ0aiICKAIAIgAgA08NASAEIAAgAUEAQQBBfyAFKAIEIgMgAUEDdGorAwAiBiADIABBA3RqKwMAIgdmIgMbQQFBfiADGyAG","IAdlGyAGIAZiIAcgB2JyGyIDQX9GIAAgAUkgAxsiAxs2AgAgAiABIAAgAxs2AgAPCyABIANB0IbAgAAQ3ICAgAAACyAAIANB4IbA","gAAQ3ICAgAAAC+wCAAJAIAFBCUkNACAAQQBBAyACEJaAgIAAIABBAUEHIAIQloCAgAAgAEECQQUgAhCWgICAACAAQQRBCCACEJaA","gIAAIABBAEEHIAIQloCAgAAgAEECQQQgAhCWgICAACAAQQNBCCACEJaAgIAAIABBBUEGIAIQloCAgAAgAEEAQQIgAhCWgICAACAA","QQFBAyACEJaAgIAAIABBBEEFIAIQloCAgAAgAEEHQQggAhCWgICAACAAQQFBBCACEJaAgIAAIABBA0EGIAIQloCAgAAgAEEFQQcg","AhCWgICAACAAQQBBASACEJaAgIAAIABBAkEEIAIQloCAgAAgAEEDQQUgAhCWgICAACAAQQZBCCACEJaAgIAAIABBAkEDIAIQloCA","gAAgAEEEQQUgAhCWgICAACAAQQZBByACEJaAgIAAIABBAUECIAIQloCAgAAgAEEDQQQgAhCWgICAACAAQQVBBiACEJaAgIAADwsA","C8wKAQl/AkAgAUEJSQ0AIABBDEEAIAIgAEEMaiIBIAAQioCAgAAiAxtqKAIAIQQgACAAQQBBDCADG2ooAgA2AgwgACAENgIAIABB","HEEEIAIgAEEcaiIFIABBBGoiBhCKgICAACIDG2ooAgAhBCAAIABBBEEcIAMbaigCADYCHCAAIAQ2AgQgAEEUQQggAiAAQRRqIgMg","AEEIaiIHEIqAgIAAIgQbaigCACEIIAAgAEEIQRQgBBtqKAIANgIUIAAgCDYCCCAAQSBBECACIABBIGoiCSAAQRBqIgQQioCAgAAi","CBtqKAIAIQogACAAQRBBICAIG2ooAgA2AiAgACAKNgIQIABBHEEAIAIgBSAAEIqAgIAAIggbaigCACEKIAAgAEEAQRwgCBtqKAIA","NgIcIAAgCjYCACAAQRBBCCACIAQgBxCKgICAACIIG2ooAgAhCiAAIABBCEEQIAgbaigCADYCECAAIAo2AgggAEEgQQwgAiAJIAEQ","ioCAgAAiCBtqKAIAIQogACAAQQxBICAIG2ooAgA2AiAgACAKNgIMIABBGEEUIAIgAEEYaiIIIAMQioCAgAAiChtqKAIAIQsgACAA","QRRBGCAKG2ooAgA2AhggACALNgIUIABBCEEAIAIgByAAEIqAgIAAIgobaigCACELIAAgAEEAQQggChtqKAIANgIIIAAgCzYCACAA","QQxBBCACIAEgBhCKgICAACIKG2ooAgAhCyAAIABBBEEMIAobaigCADYCDCAAIAs2AgQgAEEUQRAgAiADIAQQioCAgAAiChtqKAIA","IQsgACAAQRBBFCAKG2ooAgA2AhQgACALNgIQIABBIEEcIAIgCSAFEIqAgIAAIgobaigCACELIAAgAEEcQSAgChtqKAIANgIgIAAg","CzYCHCAAQRBBBCACIAQgBhCKgICAACIKG2ooAgAhCyAAIABBBEEQIAobaigCADYCECAAIAs2AgQgAEEYQQwgAiAIIAEQioCAgAAi","ChtqKAIAIQsgACAAQQxBGCAKG2ooAgA2AhggACALNgIMIABBHEEUIAIgBSADEIqAgIAAIgobaigCACELIAAgAEEUQRwgChtqKAIA","NgIcIAAgCzYCFCAAQQRBACACIAYgABCKgICAACIKG2ooAgAhCyAAIABBAEEEIAobaigCADYCBCAAIAs2AgAgAEEQQQggAiAEIAcQ","ioCAgAAiChtqKAIAIQsgACAAQQhBECAKG2ooAgA2AhAgACALNgIIIABBFEEMIAIgAyABEIqAgIAAIgobaigCACELIAAgAEEMQRQg","ChtqKAIANgIUIAAgCzYCDCAAQSBBGCACIAkgCBCKgICAACIJG2ooAgAhCiAAIABBGEEgIAkbaigCADYCICAAIAo2AhggAEEMQQgg","AiABIAcQioCAgAAiCRtqKAIAIQogACAAQQhBDCAJG2ooAgA2AgwgACAKNgIIIABBFEEQIAIgAyAEEIqAgIAAIgkbaigCACEKIAAg","AEEQQRQgCRtqKAIANgIUIAAgCjYCECAAQRxBGCACIAUgCBCKgICAACIFG2ooAgAhCSAAIABBGEEcIAUbaigCADYCHCAAIAk2Ahgg","AEEIQQQgAiAHIAYQioCAgAAiBxtqKAIAIQUgACAAQQRBCCAHG2ooAgA2AgggACAFNgIEIABBEEEMIAIgBCABEIqAgIAAIgEbaigC","ACEEIAAgAEEMQRAgARtqKAIANgIQIAAgBDYCDCAAQRhBFCACIAggAxCKgICAACICG2ooAgAhASAAIABBFEEYIAIbaigCADYCGCAA","IAE2AhQPCwAL3gQBEH4CQCABQQlJDQAgACAAKQNAIgMgACkDICIEIAMgBFYbIgUgACkDGCIGIAApAwAiByAGIAdWGyIIIAUgCFYb","IgkgACkDOCIKIAApAwgiCyAKIAtWGyIMIAYgByAGIAdUGyIGIAwgBlYbIgcgCSAHVhsiDSAAKQMwIg4gACkDKCIPIAApAxAiECAP","IBBWGyIRIA4gEVYbIhIgBSAIIAUgCFQbIgUgCiALIAogC1QbIgggBSAIVhsiCiASIApWGyILIA0gC1YbNwNAIAAgDiARIA4gEVQb","Ig4gAyAEIAMgBFQbIgMgDyAQIA8gEFQbIgQgAyAEVhsiDyAOIA9UGyIQIAUgCCAFIAhUGyIFIBAgBVQbIgggAyAEIAMgBFQbIgMg","DCAGIAwgBlQbIgQgAyAEVBsiBiAIIAZUGzcDACAAIAkgByAJIAdUGyIHIA4gDyAOIA9WGyIJIAcgCVYbIgwgDSALIA0gC1QbIgsg","DCALVhs3AzggACAMIAsgDCALVBsiCyAHIAkgByAJVBsiByASIAogEiAKVBsiCSAHIAlWGyIKIBAgBSAQIAVWGyIFIAMgBCADIARW","GyIDIAUgA1YbIgQgCiAEVhsiDCALIAxWGzcDMCAAIAsgDCALIAxUGzcDKCAAIAogBCAKIARUGyIEIAcgCSAHIAlUGyIHIAUgAyAF","IANUGyIDIAcgA1YbIgUgBCAFVhs3AyAgACAEIAUgBCAFVBs3AxggACAHIAMgByADVBsiAyAIIAYgCCAGVhsiBCADIARWGzcDECAA","IAMgBCADIARUGzcDCA8LAAuEBQACQCABQQ1JDQAgAEEAQQwgAhCWgICAACAAQQFBCiACEJaAgIAAIABBAkEJIAIQloCAgAAgAEED","QQcgAhCWgICAACAAQQVBCyACEJaAgIAAIABBBkEIIAIQloCAgAAgAEEBQQYgAhCWgICAACAAQQJBAyACEJaAgIAAIABBBEELIAIQ","loCAgAAgAEEHQQkgAhCWgICAACAAQQhBCiACEJaAgIAAIABBAEEEIAIQloCAgAAgAEEBQQIgAhCWgICAACAAQQNBBiACEJaAgIAA","IABBB0EIIAIQloCAgAAgAEEJQQogAhCWgICAACAAQQtBDCACEJaAgIAAIABBBEEGIAIQloCAgAAgAEEFQQkgAhCWgICAACAAQQhB","CyACEJaAgIAAIABBCkEMIAIQloCAgAAgAEEAQQUgAhCWgICAACAAQQNBCCACEJaAgIAAIABBBEEHIAIQloCAgAAgAEEGQQsgAhCW","gICAACAAQQlBCiACEJaAgIAAIABBAEEBIAIQloCAgAAgAEECQQUgAhCWgICAACAAQQZBCSACEJaAgIAAIABBB0EIIAIQloCAgAAg","AEEKQQsgAhCWgICAACAAQQFBAyACEJaAgIAAIABBAkEEIAIQloCAgAAgAEEFQQYgAhCWgICAACAAQQlBCiACEJaAgIAAIABBAUEC","IAIQloCAgAAgAEEDQQQgAhCWgICAACAAQQVBByACEJaAgIAAIABBBkEIIAIQloCAgAAgAEECQQMgAhCWgICAACAAQQRBBSACEJaA","gIAAIABBBkEHIAIQloCAgAAgAEEIQQkgAhCWgICAACAAQQNBBCACEJaAgIAAIABBBUEGIAIQloCAgAAPCwAL8BIBDX8CQCABQQ1J","DQAgAEEwQQAgAiAAQTBqIgMgABCKgICAACIBG2ooAgAhBCAAIABBAEEwIAEbaigCADYCMCAAIAQ2AgAgAEEoQQQgAiAAQShqIgUg","AEEEaiIGEIqAgIAAIgEbaigCACEEIAAgAEEEQSggARtqKAIANgIoIAAgBDYCBCAAQSRBCCACIABBJGoiBCAAQQhqIgcQioCAgAAi","ARtqKAIAIQggACAAQQhBJCABG2ooAgA2AiQgACAINgIIIABBHEEMIAIgAEEcaiIJIABBDGoiCBCKgICAACIBG2ooAgAhCiAAIABB","DEEcIAEbaigCADYCHCAAIAo2AgwgAEEsQRQgAiAAQSxqIgsgAEEUaiIKEIqAgIAAIgEbaigCACEMIAAgAEEUQSwgARtqKAIANgIs","IAAgDDYCFCAAQSBBGCACIABBIGoiDCAAQRhqIgEQioCAgAAiDRtqKAIAIQ4gACAAQRhBICANG2ooAgA2AiAgACAONgIYIABBGEEE","IAIgASAGEIqAgIAAIg0baigCACEOIAAgAEEEQRggDRtqKAIANgIYIAAgDjYCBCAAQQxBCCACIAggBxCKgICAACING2ooAgAhDiAA","IABBCEEMIA0baigCADYCDCAAIA42AgggAEEsQRAgAiALIABBEGoiDRCKgICAACIOG2ooAgAhDyAAIABBEEEsIA4baigCADYCLCAA","IA82AhAgAEEkQRwgAiAEIAkQioCAgAAiDhtqKAIAIQ8gACAAQRxBJCAOG2ooAgA2AiQgACAPNgIcIABBKEEgIAIgBSAMEIqAgIAA","Ig4baigCACEPIAAgAEEgQSggDhtqKAIANgIoIAAgDzYCICAAQRBBACACIA0gABCKgICAACIOG2ooAgAhDyAAIABBAEEQIA4baigC","ADYCECAAIA82AgAgAEEIQQQgAiAHIAYQioCAgAAiDhtqKAIAIQ8gACAAQQRBCCAOG2ooAgA2AgggACAPNgIEIABBGEEMIAIgASAI","EIqAgIAAIg4baigCACEPIAAgAEEMQRggDhtqKAIANgIYIAAgDzYCDCAAQSBBHCACIAwgCRCKgICAACIOG2ooAgAhDyAAIABBHEEg","IA4baigCADYCICAAIA82AhwgAEEoQSQgAiAFIAQQioCAgAAiDhtqKAIAIQ8gACAAQSRBKCAOG2ooAgA2AiggACAPNgIkIABBMEEs","IAIgAyALEIqAgIAAIg4baigCACEPIAAgAEEsQTAgDhtqKAIANgIwIAAgDzYCLCAAQRhBECACIAEgDRCKgICAACIOG2ooAgAhDyAA","IABBEEEYIA4baigCADYCGCAAIA82AhAgAEEkQRQgAiAEIAoQioCAgAAiDhtqKAIAIQ8gACAAQRRBJCAOG2ooAgA2AiQgACAPNgIU","IABBLEEgIAIgCyAMEIqAgIAAIg4baigCACEPIAAgAEEgQSwgDhtqKAIANgIsIAAgDzYCICAAQTBBKCACIAMgBRCKgICAACIDG2oo","AgAhDiAAIABBKEEwIAMbaigCADYCMCAAIA42AiggAEEUQQAgAiAKIAAQioCAgAAiAxtqKAIAIQ4gACAAQQBBFCADG2ooAgA2AhQg","ACAONgIAIABBIEEMIAIgDCAIEIqAgIAAIgMbaigCACEOIAAgAEEMQSAgAxtqKAIANgIgIAAgDjYCDCAAQRxBECACIAkgDRCKgICA","ACIDG2ooAgAhDiAAIABBEEEcIAMbaigCADYCHCAAIA42AhAgAEEsQRggAiALIAEQioCAgAAiAxtqKAIAIQ4gACAAQRhBLCADG2oo","AgA2AiwgACAONgIYIABBKEEkIAIgBSAEEIqAgIAAIgMbaigCACEOIAAgAEEkQSggAxtqKAIANgIoIAAgDjYCJCAAQQRBACACIAYg","ABCKgICAACIDG2ooAgAhDiAAIABBAEEEIAMbaigCADYCBCAAIA42AgAgAEEUQQggAiAKIAcQioCAgAAiAxtqKAIAIQ4gACAAQQhB","FCADG2ooAgA2AhQgACAONgIIIABBJEEYIAIgBCABEIqAgIAAIgMbaigCACEOIAAgAEEYQSQgAxtqKAIANgIkIAAgDjYCGCAAQSBB","HCACIAwgCRCKgICAACIDG2ooAgAhDiAAIABBHEEgIAMbaigCADYCICAAIA42AhwgAEEsQSggAiALIAUQioCAgAAiCxtqKAIAIQMg","ACAAQShBLCALG2ooAgA2AiwgACADNgIoIABBDEEEIAIgCCAGEIqAgIAAIgsbaigCACEDIAAgAEEEQQwgCxtqKAIANgIMIAAgAzYC","BCAAQRBBCCACIA0gBxCKgICAACILG2ooAgAhAyAAIABBCEEQIAsbaigCADYCECAAIAM2AgggAEEYQRQgAiABIAoQioCAgAAiCxtq","KAIAIQMgACAAQRRBGCALG2ooAgA2AhggACADNgIUIABBKEEkIAIgBSAEEIqAgIAAIgUbaigCACELIAAgAEEkQSggBRtqKAIANgIo","IAAgCzYCJCAAQQhBBCACIAcgBhCKgICAACIFG2ooAgAhBiAAIABBBEEIIAUbaigCADYCCCAAIAY2AgQgAEEQQQwgAiANIAgQioCA","gAAiBRtqKAIAIQYgACAAQQxBECAFG2ooAgA2AhAgACAGNgIMIABBHEEUIAIgCSAKEIqAgIAAIgUbaigCACEGIAAgAEEUQRwgBRtq","KAIANgIcIAAgBjYCFCAAQSBBGCACIAwgARCKgICAACIFG2ooAgAhBiAAIABBGEEgIAUbaigCADYCICAAIAY2AhggAEEMQQggAiAI","IAcQioCAgAAiBRtqKAIAIQcgACAAQQhBDCAFG2ooAgA2AgwgACAHNgIIIABBFEEQIAIgCiANEIqAgIAAIgUbaigCACEHIAAgAEEQ","QRQgBRtqKAIANgIUIAAgBzYCECAAQRxBGCACIAkgARCKgICAACIFG2ooAgAhByAAIABBGEEcIAUbaigCADYCHCAAIAc2AhggAEEk","QSAgAiAEIAwQioCAgAAiBBtqKAIAIQwgACAAQSBBJCAEG2ooAgA2AiQgACAMNgIgIABBEEEMIAIgDSAIEIqAgIAAIgQbaigCACEI","IAAgAEEMQRAgBBtqKAIANgIQIAAgCDYCDCAAQRhBFCACIAEgChCKgICAACICG2ooAgAhASAAIABBFEEYIAIbaigCADYCGCAAIAE2","AhQPCwALlggBGH4CQCABQQ1JDQAgACAAKQNgIgMgACkDACIEIAMgBFYbIgUgACkDWCIGIAApAygiByAGIAdWGyIIIAApAyAiCSAI","IAlWGyIKIAUgClYbIgsgACkDUCIMIAApAwgiDSAMIA1WGyIOIAApA0AiDyAAKQMwIhAgDyAQVhsiESAOIBFWGyISIAApA0giEyAA","KQMQIhQgEyAUVhsiFSAAKQM4IhYgACkDGCIXIBYgF1YbIhggFSAYVhsiGSASIBlWGyIaIAsgGlYbNwNgIAAgBSAKIAUgClQbIgUg","DiARIA4gEVQbIgogFSAYIBUgGFQbIg4gCiAOVhsiESAFIBFWGyIVIA8gECAPIBBUGyIPIAwgDSAMIA1UGyIMIA8gDFYbIg0gFiAX","IBYgF1QbIhAgEyAUIBMgFFQbIhMgECATVhsiFCANIBRWGyIWIAggCSAIIAlUGyIIIAMgBCADIARUGyIDIAggA1YbIgQgFiAEVhsi","CSAVIAlWGyIXIAsgGiALIBpUGyILIBIgGSASIBlUGyISIAYgByAGIAdUGyIGIBIgBlYbIgcgCyAHVhsiGCAXIBhWGzcDWCAAIBAg","EyAQIBNUGyIQIA8gDCAPIAxUGyIMIBAgDFQbIg8gEiAGIBIgBlQbIgYgCCADIAggA1QbIgMgBiADVBsiCCAPIAhUGzcDACAAIBcg","GCAXIBhUGyISIAsgByALIAdUGyIHIBUgCSAVIAlUGyIJIAcgCVYbIgsgEiALVhs3A1AgACAKIA4gCiAOVBsiCiAWIAQgFiAEVBsi","BCAKIARUGyIOIAYgAyAGIANWGyIDIBAgDCAQIAxWGyIGIAMgBlQbIgwgDiAMVBsiECAFIBEgBSARVBsiBSANIBQgDSAUVBsiDSAF","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","IAYgACACQQN0aiIHKQMANwMAIAcgBTcDACACIAUgBFRqC3cBAX8CQCABDQBBAA8LAkAgAiABTw0AIAAoAgAhBCAAIAAgAkECdGoi","AigCADYCACACIAQ2AgAgAEEEaiABQX9qIAAgAxCkgICAACICIAFPDQAgACgCACEBIAAgACACQQJ0aiIDKAIANgIAIAMgATYCACAC","DwsAC3cBAX8CQCABDQBBAA8LAkAgAiABTw0AIAAoAgAhBCAAIAAgAkECdGoiAigCADYCACACIAQ2AgAgAEEEaiABQX9qIAAgAxCl","gICAACICIAFPDQAgACgCACEBIAAgACACQQJ0aiIDKAIANgIAIAMgATYCACACDwsAC3cBAX8CQCABDQBBAA8LAkAgAiABTw0AIAAo","AgAhBCAAIAAgAkECdGoiAigCADYCACACIAQ2AgAgAEEEaiABQX9qIAAgAxCmgICAACICIAFPDQAgACgCACEBIAAgACACQQJ0aiID","KAIANgIAIAMgATYCACACDwsAC3cBAX8CQCABDQBBAA8LAkAgAiABTw0AIAAoAgAhBCAAIAAgAkECdGoiAigCADYCACACIAQ2AgAg","AEEEaiABQX9qIAAgAxCngICAACICIAFPDQAgACgCACEBIAAgACACQQJ0aiIDKAIANgIAIAMgATYCACACDwsAC3cBAX4CQCABDQBB","AA8LAkAgAiABTw0AIAApAwAhBCAAIAAgAkEDdGoiAikDADcDACACIAQ3AwAgAEEIaiABQX9qIAAgABCogICAACICIAFPDQAgACkD","ACEEIAAgACACQQN0aiIBKQMANwMAIAEgBDcDACACDwsAC3cBAX4CQCABDQBBAA8LAkAgAiABTw0AIAApAwAhBCAAIAAgAkEDdGoi","AikDADcDACACIAQ3AwAgAEEIaiABQX9qIAAgABCpgICAACICIAFPDQAgACkDACEEIAAgACACQQN0aiIBKQMANwMAIAEgBDcDACAC","DwsAC38BA38jgICAgABBEGsiAiSAgICAACACQQhqIAAgARDpgICAAAJAAkAgAigCCCIBIAIoAgwiA0cNAEEAIQAMAQtBACEAA0BB","AEECQQEgAS0AACIEQe8BSxsgBMBBQEgbIABqIQAgAUEBaiIBIANHDQALCyACQRBqJICAgIAAIAALDgAgACABIAAQsoCAgAALiQEB","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","ASAEIAo2AswBIARBADYCyAEgBCAJNgLEASAEIAg2AsABIAQgBCgCiAI2ApgBIAQgBCkCgAI3ApABIAQgBCgClAI2AqQBIAQgBCkC","jAI3ApwBIAQgBCgCoAI2ArABIAQgBCkCmAI3AqgBIAQgBCgCrAI2ArwBIAQgBCkCpAI3ArQBIARBADYC7AEgBEKAgICAwAA3AuQB","IARBADYCrAIgBEKAgICAgAE3AqQCIAOtIQwgBEHkAWohDSAEQdgBaiEOIARBhAFqIQ8gBEH4AGohECAEQewAaiERIARB4ABqIRIg","BEHUAGohEyAEQcgAaiEUIARBPGohFQNAIAEhFiACIQNBACEXQQEhGEEAIQICQCADRQ0AQQAhFwJAA0AgFiAXaiIHLQAAQQpGDQFB","ASEYIAMgF0EBaiIXRw0ACyADIRcgAyECIBYhAQwBCyAHQQFqIQEgF0F/cyADaiECQQAhGAsCQCALIAxRDQACQCAXRQ0AIBYgF2oh","AyALpyIZQQJ0IRoDQCAWIRtBACEJAkACQANAIBsgCWoiBy0AACIFQSBGIhwNASAbIAlBAWoiCWogA0cNAAsgFyEJIBshFgwBCyAH","QQFqIRYgCUF/cyAXaiEXCwJAAkACQAJAAkACQCAJRQ0AIARBIGogBEEwaiAbIAkQuYCAgAACQCAEKAIgQQFHDQAgBCgCJCEDDAQL","IAQoAkQhHSAEQTBqIBsgCRDRgICAACAEKAI4IQcCQCAEKAJEIgMgBCgCPEcNACAVELyAgIAACyAEKAJAIANBAnRqIAc2AgAgBCAD","QQFqNgJEIBsgCRCwgICAACEHAkAgBCgCUCIDIAQoAkhHDQAgFBC8gICAAAsgBCgCTCADQQJ0aiAHNgIAIAQgA0EBajYCUCAdQQF0","IAQoAmgiA00NAiAEQbACakEAIANBAXQiAxCFgICAACAEKAJEQX9qIh5FDQEgA0F/aiEGQQAhHyAEKAK0AiEIIAQoArgCIQUDQCAE","QRhqIARBMGogHxC7gICAACAEQRBqIAQoAhggBCgCHBDpgICAAEGlxoiheCEHAkAgBCgCECIDIAQoAhQiCkYNAANAIAcgAy0AAHNB","swNsIQcgA0EBaiIDIApHDQALCwJAIAcgBnEiAyAFTw0AIB9BAWohHwNAAkAgCCADQQJ0aiIHKAIADQAgByAfNgIAIB8gHkcNAwwF","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","aiSAgICAAAttAQN/IAAgARDTgICAACAAKAIEIgMgACgCCCIEaiEFAkACQAJAIAFBAkkNAAJAIAFBf2oiAUUNACAFIAIgAfwLAAsg","AyABIARqIgRqIQUMAQsgAUUNAQsgBSACOgAAIARBAWohBAsgACAENgIIC/ICAQF/I4CAgIAAQdABayIDJICAgIAAIANBDGogACAB","IAIQvYCAgAAgAygCICECAkBBACgCpI7AgABBf0YNAEGkjsCAABDXgICAAEGkjsCAABDWgICAAEGwjsCAAEEEQQQQyYCAgABBvI7A","gABBBEEEEMmAgIAAQciOwIAAQQRBBBDJgICAAEHUjsCAAEEEQQQQyYCAgABB4I7AgABBBEEEEMmAgIAAQeyOwIAAQQRBBBDJgICA","AEH4jsCAAEEEQQQQyYCAgABBhI/AgABBBEEEEMmAgIAAQZCPwIAAQQRBBBDJgICAAEGcj8CAAEEIQQgQyYCAgABBqI/AgAAQ14CA","gABBqI/AgAAQ1oCAgABBtI/AgABBBEEEEMmAgIAAQcCPwIAAQQRBBBDJgICAAEHMj8CAAEEEQQQQyYCAgABB2I/AgABBBEEEEMmA","gIAAC0GkjsCAACADQQxqQcQB/AoAACADQdABaiSAgICAACACQX9qC14BAX8jgICAgABBEGsiACSAgICAAEEAQX82AqSOwIAAIABB","CGoQ0ICAgABBAEHwj8CAADYC6I/AgABBACAAKQMINwKYjsCAAEEAQQA2AqCOwIAAIABBEGokgICAgAALPgEBfwJAIABBCGoiAEEA","KAKgjsCAACIBTQ0AQZiOwIAAIAAgAWtBABDAgICAAAtBACgCnI7AgABBB2pBeHELOwEBf0EAIQgCQEEAKAKkjsCAAEF/Rg0AQaSO","wIAAIAAgASACIAMgBCAGIAUgByAFELiAgIAAIQgLIAgLBABBAQsNACAAIAEQzoCAgAAPCwMADwsNACAAIAEQ1ICAgAAAC4gBAQR/","I4CAgIAAQRBrIgMkgICAgABBACEEIANBDGohBQJAAkAgAkUNACAAKAIAIgZFDQAgAyABNgIMIAYgAmwhBCAAKAIEIQIgA0EIaiEF","DAELCyAFIAQ2AgACQCADKAIMIgRFDQAgAygCCCIFRQ0AIAIgBSAEELOAgIAACyADQRBqJICAgIAAC1IBAX8jgICAgABBEGsiBSSA","gICAACAFQQhqIAAgASACIAMgBBDLgICAAAJAIAUoAggiBEF/Rg0AIAQgBSgCDBDMgICAAAALIAVBEGokgICAgAALuQEBAn8jgICA","gABBEGsiBiSAgICAAEEAIQcCQAJAIAUNAAwBCyADIAJqIgIgA0kNACAGQQRqIAEgAiABKAIAQQF0IgMgAiADSxsiA0EIQQRBASAF","QYEISRsgBUEBRhsiAiADIAJLGyIDIAQgBRDSgICAACAGKAIIIQcCQCAGKAIERQ0AIAYoAgwhAgwBCyABIAM2AgAgASAHNgIEQX8h","BwsgACACNgIEIAAgBzYCACAGQRBqJICAgIAACxwAAkAgAEUNACAAIAEQyICAgAAACxDVgICAAAALYwECfwJAAkACQCACIAFrIgMg","ACgCACAAKAIIIgRrTQ0AIAAgBCADQQFBARDKgICAACAAKAIIIQQMAQsgAiABRg0BCyADRQ0AIAAoAgQgBGogASAD/AoAAAsgACAE","IANqNgIIC0sBAX8jgICAgABBEGsiAiSAgICAACACIAA2AgQgAkGBgICAADYCDCACIAJBBGo2AghBmobAgAAgAkEIakEAQbCLwIAA","EOKAgIAAAAuxAQEBfgJAAkACQCAErSABrX4iBUIgiKcNACAFpyIEIAMQ24CAgAANAQsgAEEANgIEQQEhAQwBCwJAIAQNACAAIAM2","AghBACEBIABBADYCBAwBCxDHgICAAAJAAkAgAg0AIAQgAxCxgICAACECDAELIAQgAxC3gICAACECCwJAIAINACAAIAQ2AgggACAD","NgIEQQEhAQwBCyAAIAI2AgggACABNgIEQQAhAQsgACABNgIACw0AIABCgICAgBA3AwALEQAgACABIAEgAmoQzYCAgAALoAIDAX8B","fgN/I4CAgIAAQRBrIgUkgICAgAAgBK0gAq1+IganIQICQAJAAkACQAJAIAZCIIinDQAgAiADENuAgIAADQELIABBADYCBAwBC0EA","IQcgBUEMaiEIAkACQCAERQ0AIAEoAgAiCUUNACAFIAM2AgwgCSAEbCEHIAEoAgQhBCAFQQhqIQgMAQsLIAggBzYCAAJAAkACQCAF","KAIMRQ0AAkAgBSgCCCIBDQAgAg0CIAMhBAwDCyAEIAEgAyACELSAgIAAIQQMAgsgAg0AIAMhBAwDCxDHgICAACACIAMQsYCAgAAh","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","gAAgA0EQaiACENiAgIAAAAthAQF/I4CAgIAAQSBrIgMkgICAgAAgAyABNgIMIAMgADYCCCADQYGAgIAANgIcIANBgYCAgAA2AhQg","AyADQQxqNgIYIAMgA0EIajYCEEGYgcCAACADQRBqIAIQ2ICAgAAACxgAQbyNwIAAQZkBQYiOwIAAENiAgIAAAAsrACAAIAIgASAD","IAEgA0kbEOqAgIAAIgIgASADayACGyIDQQBKIANBAEhrCxMAIAAgASACajYCBCAAIAE2AgALSgEDf0EAIQMCQCACRQ0AAkADQCAA","LQAAIgQgAS0AACIFRw0BIABBAWohACABQQFqIQEgAkF/aiICRQ0CDAALCyAEIAVrIQMLIAMLC/sPAgBBgIDAAAuYDhZzbGljZSBp","bmRleCBzdGFydHMgYXQgwA0gYnV0IGVuZHMgYXQgwAAgaW5kZXggb3V0IG9mIGJvdW5kczogdGhlIGxlbiBpcyDAEiBidXQgdGhl","IGluZGV4IGlzIMAAEnJhbmdlIHN0YXJ0IGluZGV4IMAiIG91dCBvZiByYW5nZSBmb3Igc2xpY2Ugb2YgbGVuZ3RoIMAAEHJhbmdl","IGVuZCBpbmRleCDAIiBvdXQgb2YgcmFuZ2UgZm9yIHNsaWNlIG9mIGxlbmd0aCDAAC9yb290Ly5ydXN0dXAvdG9vbGNoYWlucy9z","dGFibGUteDg2XzY0LXVua25vd24tbGludXgtZ251L2xpYi9ydXN0bGliL3NyYy9ydXN0L2xpYnJhcnkvY29yZS9zcmMvc2xpY2Uv","c29ydC9zaGFyZWQvc21hbGxzb3J0LnJzAC9yb290Ly5ydXN0dXAvdG9vbGNoYWlucy9zdGFibGUteDg2XzY0LXVua25vd24tbGlu","dXgtZ251L2xpYi9ydXN0bGliL3NyYy9ydXN0L2xpYnJhcnkvY29yZS9zcmMvc2xpY2Uvc29ydC91bnN0YWJsZS9xdWlja3NvcnQu","cnMAL3Jvb3QvLnJ1c3R1cC90b29sY2hhaW5zL3N0YWJsZS14ODZfNjQtdW5rbm93bi1saW51eC1nbnUvbGliL3J1c3RsaWIvc3Jj","L3J1c3QvbGlicmFyeS9jb3JlL3NyYy9mbXQvbnVtLnJzAC9yb290Ly5ydXN0dXAvdG9vbGNoYWlucy9zdGFibGUteDg2XzY0LXVu","a25vd24tbGludXgtZ251L2xpYi9ydXN0bGliL3NyYy9ydXN0L2xpYnJhcnkvYWxsb2Mvc3JjL3Jhd192ZWMvbW9kLnJzAC9yb290","Ly5ydXN0dXAvdG9vbGNoYWlucy9zdGFibGUteDg2XzY0LXVua25vd24tbGludXgtZ251L2xpYi9ydXN0bGliL3NyYy9ydXN0L2xp","YnJhcnkvYWxsb2Mvc3JjL2FsbG9jLnJzAHNyYy9saWIucnMAFW1lbW9yeSBhbGxvY2F0aW9uIG9mIMANIGJ5dGVzIGZhaWxlZABN","ARAAfwAAADgAAAAbAAAADwMQAAoAAAAzAQAAEgAAAA8DEAAKAAAANAEAACQAAAAPAxAACgAAADEBAAAkAAAADwMQAAoAAACfAAAA","IwAAAA8DEAAKAAAAnwAAAEAAAAAPAxAACgAAAJ8AAAAcAAAADwMQAAoAAACgAAAAIwAAAA8DEAAKAAAAoAAAAEAAAAAPAxAACgAA","AKAAAAAcAAAADwMQAAoAAAC/AAAAGAAAAA8DEAAKAAAA/QAAACEAAAAPAxAACgAAAOEAAAApAAAADwMQAAoAAAAfAQAAJQAAAA8D","EAAKAAAAIAEAACEAAAAPAxAACgAAACEBAAAnAAAADwMQAAoAAAAjAQAAHwAAAA8DEAAKAAAAJQEAAB8AAAAPAxAACgAAACgBAAAb","AAAADwMQAAoAAAApAQAAGAAAAA8DEAAKAAAAEgEAACUAAAAPAxAACgAAABMBAAApAAAADwMQAAoAAAATAQAARgAAAA8DEAAKAAAA","FAEAACoAAAAPAxAACgAAABUBAAAfAAAADwMQAAoAAAAYAQAAMAAAAA8DEAAKAAAAGAEAABwAAAAPAxAACgAAADsBAAAhAAAADwMQ","AAoAAAAuAQAAGAAAAA8DEAAKAAAAzAAAABYAAAAPAxAACgAAAEwAAAAkAAAADwMQAAoAAABMAAAAQQAAAA8DEAAKAAAATAAAABQA","AAAPAxAACgAAAIQAAAAbAAAADwMQAAoAAACZAAAAMgAAAA8DEAAKAAAAmQAAABoAAAAPAxAACgAAAJUAAAAaAAAADwMQAAoAAACy","AAAAGQAAAA8DEAAKAAAAUwAAACIAAACmAhAAaAAAAD0CAAAJAAAAY2FwYWNpdHkgb3ZlcmZsb3cAAAA3AhAAbgAAABwAAAAFAAAA","zQEQAGkAAABYAgAABQAAADAwMDEwMjAzMDQwNTA2MDcwODA5MTAxMTEyMTMxNDE1MTYxNzE4MTkyMDIxMjIyMzI0MjUyNjI3Mjgy","OTMwMzEzMjMzMzQzNTM2MzczODM5NDA0MTQyNDM0NDQ1NDY0NzQ4NDk1MDUxNTI1MzU0NTU1NjU3NTg1OTYwNjE2MjYzNjQ2NTY2","Njc2ODY5NzA3MTcyNzM3NDc1NzY3Nzc4Nzk4MDgxODI4Mzg0ODU4Njg3ODg4OTkwOTE5MjkzOTQ5NTk2OTc5ODk5dXNlci1wcm92","aWRlZCBjb21wYXJpc29uIGZ1bmN0aW9uIGRvZXMgbm90IGNvcnJlY3RseSBpbXBsZW1lbnQgYSB0b3RhbCBvcmRlcs8AEAB9AAAA","VgMAAAUAAAAAQZiOwAAL0AEAAAAAAQAAAAAAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"].join("");x();x();var Ha=["AGFzbQEAAAABYA1gA39/fwF/YAJ/fwF/YAN/f38AYAV/f39/fwBgBX9/f39/AX9gBH9/f38AYAR/f39/AX9gCH9/f39/f39/AX9g","AX8AYAABf2AHf39/f39/fwF/YAZ/f39/f38Bf2AAAAMkIwIDBAIFBQICAgIGBgYGAwcICQoFCQIBBQILBQYAAQICAgwABAUBcAEC","AgUDAQARBgkBfwFBgIDAAAsHPAUGbWVtb3J5AgAMeWtfaGVhcF9iYXNlABEJeWtfc2VhcmNoABIHeWtfc29ydAATCnlrX3ZlcnNp","b24AFAkHAQBBAQsBHQrEWiO8BgMFfwJ8BH8CQCABQQJJDQACQAJAAkACQAJAAkACQAJAAkAgACgCBCIDIAIoAgAiBCgCBCIFTw0A","IAAoAgAiBiAFTw0BIAQoAgAiByAGQQN0aisDACEIAkACQCAHIANBA3RqKwMAIgkgCWINACAIIAhiDQFBAEEAQX8gCSAIZiIKG0EB","QX4gChsgCSAIZRsiCmsgCiAEKAIILQAAG0H/AXEiCkH/AUYgAyAGSSAKGw0BDAYLIAMgBk8NBSAIIAhhDQULQQIhCkEBIQsgAUEC","Rg0GIABBCGohDEECIQoDQCADIQYgDCgCACIDIAVPDQMgBiAFTw0EIAcgBkEDdGorAwAhCAJAAkAgByADQQN0aisDACIJIAliDQAg","CCAIYg0BQQBBAEF/IAkgCGYiDRtBAUF+IA0bIAkgCGUbIg1rIA0gBCgCCC0AABtB/wFxIg1B/wFGIAMgBkkgDRtBAUYNAUEBIQsM","CQsgAyAGTw0IIAggCGENCAsgDEEEaiEMIAEgCkEBaiIKRw0AC0EBIQsMBQsgAyAFQdSEwIAAEJiAgIAAAAsgBiAFQeSEwIAAEJiA","gIAAAAsgAyAFQdSEwIAAEJiAgIAAAAsgBiAFQeSEwIAAEJiAgIAAAAtBAiEKQQAhCyABQQJGDQEgAEEIaiEMQQIhCgNAIAMhBiAM","KAIAIgMgBU8NAyAGIAVPDQQgByAGQQN0aisDACEIAkACQCAHIANBA3RqKwMAIgkgCWINACAIIAhiDQRBAEEAQX8gCSAIZiING0EB","QX4gDRsgCSAIZRsiDWsgDSAEKAIILQAAG0H/AXEiDUH/AUYgAyAGSSANG0UNAUEAIQsMBAsgAyAGTw0AIAggCGINAwsgDEEEaiEM","IAEgCkEBaiIKRw0ACwsgASEKCwJAIAogAUYNACAAIAFBACABQQFyZ0EBdEE+cyACEIGAgIAADAMLIAtFDQIgAUEBdiEGIAFBAnQg","AGpBfGohAwNAIAAoAgAhCiAAIAMoAgA2AgAgAyAKNgIAIANBfGohAyAAQQRqIQAgBkF/aiIGDQAMAwsLIAMgBUHUhMCAABCYgICA","AAALIAYgBUHkhMCAABCYgICAAAALC7YIBAh/AnwDfwF8I4CAgIAAQRBrIgUkgICAgAACQAJAIAFBIUkNACADQX9qIQMDQAJAIANB","f0cNACAAIAEgBBCJgICAAAwDCyAAIAFBA3YiBkEcbGohByAAIAZBBHRqIQgCQAJAIAFBwABJDQAgACAIIAcgBiAEEIKAgIAAIQYM","AQsCQAJAAkACQAJAAkAgACgCACIGIAQoAgAiCSgCBCIKTw0AIAgoAgAiCyAKTw0BIAkoAgAiDCALQQN0aisDACENAkACQAJAAkAg","DCAGQQN0aisDACIOIA5iIg8NACANIA1hDQFBASEQDAMLIA0gDWINAUEAIRAMAgtBAEEAQX8gDiANZiIRG0EBQX4gERsgDiANZRsi","EWsgESAJKAIILQAAG0H/AXEiEUH/AUYgBiALSSARGyEQDAELIAYgC0khEAsgBygCACIRIApPDQIgDCARQQN0aisDACESAkACQAJA","AkACQAJAAkAgDw0AIBIgEmENASAAIQYgEEUNDSANIA1iDQYMCwsgEiASYg0BIAAhBiAQDQwgDSANYQ0DDAkLQQBBAEF/IA4gEmYi","ChtBAUF+IAobIA4gEmUbIgprIAogCSgCCC0AABtB/wFxIgpB/wFGIAYgEUkgChshCgwBCyAGIBFJIQoLIAAhBiAQIApHDQkgDSAN","Yg0BIBIgEmINBwtBAEEAQX8gDSASZiIGG0EBQX4gBhsgDSASZRsiBmsgBiAJKAIILQAAG0H/AXEiBkH/AUYgCyARSSAGGyEGDAcL","IBIgEmENBAsgCyARSSEGDAULIAYgCkHUhMCAABCYgICAAAALIAsgCkHkhMCAABCYgICAAAALIBEgCkHkhMCAABCYgICAAAALQQAh","BgwBC0EBIQYLIAcgCCAQIAZzGyEGCyAGIABrIgdBAnYhBgJAAkAgAkUNAAJAAkACQCACKAIAIgggBCgCACIJKAIEIgtPDQAgACAH","aigCACIHIAtPDQEgCSgCACILIAdBA3RqKwMAIQ0CQAJAIAsgCEEDdGorAwAiEiASYg0AIA0gDWINBUEAQQBBfyASIA1mIgsbQQFB","fiALGyASIA1lGyILayALIAkoAggtAAAbQf8BcSIJQf8BRiAIIAdJIAkbDQUMAQsgCCAHTw0AIA0gDWINBAsgBSAENgIMIAAgASAG","IAVBDGoQjICAgAAiBkEBaiECIAYgAU8NAiABIAJrIQEgACACQQJ0aiEAQQAhAgwECyAIIAtB1ITAgAAQmICAgAAACyAHIAtB5ITA","gAAQmICAgAAACyACIAEgAUHEhMCAABCXgICAAAALIAAgACABIAYgBBCNgICAACIGIAIgAyAEEIGAgIAAIAEgBkF/c2ohASAAIAZB","AnRqIgJBBGohAAsgA0F/aiEDIAFBIU8NAAsLIAAgASAEEIiAgIAACyAFQRBqJICAgIAAC4kFBAR/AnwCfwF8AkAgA0H4////AXFF","DQAgACAAIANBA3YiA0EEdCIFaiAAIANBHGwiBmogAyAEEIKAgIAAIQAgASABIAVqIAEgBmogAyAEEIKAgIAAIQEgAiACIAVqIAIg","BmogAyAEEIKAgIAAIQILAkACQAJAAkACQAJAAkAgACgCACIDIAQoAgAiBCgCBCIHTw0AIAEoAgAiBSAHTw0BIAQoAgAiCCAFQQN0","aisDACEJAkACQAJAAkAgCCADQQN0aisDACIKIApiIgsNACAJIAlhDQFBASEMDAMLIAkgCWINAUEAIQwMAgtBAEEAQX8gCiAJZiIG","G0EBQX4gBhsgCiAJZRsiBmsgBiAEKAIILQAAG0H/AXEiBkH/AUYgAyAFSSAGGyEMDAELIAMgBUkhDAsgAigCACIGIAdPDQIgCCAG","QQN0aisDACENAkACQAJAAkACQAJAAkAgCw0AIA0gDWENASAMRQ0NIAkgCWINBgwLCyANIA1iDQEgDA0MIAkgCWENAwwJC0EAQQBB","fyAKIA1mIgcbQQFBfiAHGyAKIA1lGyIHayAHIAQoAggtAAAbQf8BcSIHQf8BRiADIAZJIAcbIQMMAQsgAyAGSSEDCyAMIANHDQkg","CSAJYg0BIA0gDWINBwtBAEEAQX8gCSANZiIAG0EBQX4gABsgCSANZRsiAGsgACAEKAIILQAAG0H/AXEiAEH/AUYgBSAGSSAAGyEA","DAcLIA0gDWENBAsgBSAGSSEADAULIAMgB0HUhMCAABCYgICAAAALIAUgB0HkhMCAABCYgICAAAALIAYgB0HkhMCAABCYgICAAAAL","QQAhAAwBC0EBIQALIAIgASAMIABzGyEACyAAC9wDAwR/AnwBfwJAAkAgASgCACIDIAIoAgAiAigCBCIETw0AAkAgAUF8aiIFKAIA","IgYgBE8NACACKAIAIgQgBkEDdGorAwAhBwJAAkAgBCADQQN0aisDACIIIAhiDQAgByAHYg0BQQBBAEF/IAggB2YiBBtBAUF+IAQb","IAggB2UbIgRrIAQgAigCCC0AABtB/wFxIgRB/wFGIAMgBkkgBBtBAUYNAQwECyADIAZPDQMgByAHYQ0DCyABIAY2AgACQCAFIABG","DQAgA0EDdCEJA0AgBSEGAkACQAJAIAMgAigCBCIETw0AIAZBfGoiBSgCACIBIARPDQEgAigCACIEIAFBA3RqKwMAIQcCQAJAIAQg","CWorAwAiCCAIYg0AIAcgB2INBEEAQQBBfyAIIAdmIgQbQQFBfiAEGyAIIAdlGyIEayAEIAIoAggtAAAbQf8BcSIEQf8BRiADIAFJ","IAQbQQFHDQEMBAsgAyABTw0AIAcgB2INAwsgBiEFDAQLIAMgBEHUhMCAABCYgICAAAALIAEgBEHkhMCAABCYgICAAAALIAYgATYC","ACAFIABHDQALCyAFIAM2AgAPCyAGIARB5ITAgAAQmICAgAAACyADIARB1ITAgAAQmICAgAAACwunBQMIfwJ8A38gAiABQQJ0QXxq","IgRqIQUgACAEaiEGIAAgAUEBdiIHQQJ0aiIIQXxqIQkgAygCACEDAkACQAJAAkACQANAIAgoAgAiCiADKAIEIgtPDQEgACgCACIE","IAtPDQIgAygCACILIARBA3RqKwMAIQwCQAJAAkAgCyAKQQN0aisDACINIA1iDQAgDCAMYg0BQQAhC0EAQQBBfyANIAxmIg4bQQFB","fiAOGyANIAxlGyIOayAOIAMoAggtAAAbQf8BcSIOQf8BRiAKIARJIA4bQQFGDQEMAgtBACELIAogBE8NASAMIAxhDQELQQEhCyAK","IQQLIAIgBDYCACAGKAIAIgQgAygCBCIOTw0DIAkoAgAiCiAOTw0EIAtBAnQhDiALQQFzQQJ0IQ8gAygCACILIApBA3RqKwMAIQwC","QAJAAkAgCyAEQQN0aisDACINIA1iDQAgDCAMYg0BQQAhC0EAQQBBfyANIAxmIhAbQQFBfiAQGyANIAxlGyIQayAQIAMoAggtAAAb","Qf8BcSIQQf8BRiAEIApJIBAbQQFGDQEMAgtBACELIAQgCk8NASAMIAxhDQELQQEhCyAKIQQLIAJBBGohAiAIIA5qIQggACAPaiEA","IAUgBDYCACAFQXxqIQUgCSALQQJ0IgRrIQkgBCAGakF8aiEGIAdBf2oiBw0ACyAGQQRqIQQgCUEEaiEDAkAgAUEBcUUNACACIAAg","CCAAIANJIgobKAIANgIAIAggACADT0ECdGohCCAAIApBAnRqIQALAkAgCCAERw0AIAAgA0YNBQsQoYCAgAAACyAKIAtB1ITAgAAQ","mICAgAAACyAEIAtB5ITAgAAQmICAgAAACyAEIA5B1ITAgAAQmICAgAAACyAKIA5B5ITAgAAQmICAgAAACwuDAgICfwJ8AkACQAJA","AkAgACACQQJ0aiIEKAIAIgIgAygCACIDKAIEIgVPDQAgACABQQJ0aiIBKAIAIgAgBU8NASADKAIAIgUgAEEDdGorAwAhBgJAAkAg","BSACQQN0aisDACIHIAdiDQAgBiAGYg0EQQBBAEF/IAcgBmYiBRtBAUF+IAUbIAcgBmUbIgVrIAUgAygCCC0AABtB/wFxIgNB/wFG","IAIgAEkgAxtBAUcNAQwECyACIABPDQAgBiAGYg0DCyAAIQMgAiEADAMLIAIgBUHUhMCAABCYgICAAAALIAAgBUHkhMCAABCYgICA","AAALIAIhAwsgASADNgIAIAQgADYCAAvsAgACQCABQQlJDQAgAEEAQQMgAhCFgICAACAAQQFBByACEIWAgIAAIABBAkEFIAIQhYCA","gAAgAEEEQQggAhCFgICAACAAQQBBByACEIWAgIAAIABBAkEEIAIQhYCAgAAgAEEDQQggAhCFgICAACAAQQVBBiACEIWAgIAAIABB","AEECIAIQhYCAgAAgAEEBQQMgAhCFgICAACAAQQRBBSACEIWAgIAAIABBB0EIIAIQhYCAgAAgAEEBQQQgAhCFgICAACAAQQNBBiAC","EIWAgIAAIABBBUEHIAIQhYCAgAAgAEEAQQEgAhCFgICAACAAQQJBBCACEIWAgIAAIABBA0EFIAIQhYCAgAAgAEEGQQggAhCFgICA","ACAAQQJBAyACEIWAgIAAIABBBEEFIAIQhYCAgAAgAEEGQQcgAhCFgICAACAAQQFBAiACEIWAgIAAIABBA0EEIAIQhYCAgAAgAEEF","QQYgAhCFgICAAA8LAAuEBQACQCABQQ1JDQAgAEEAQQwgAhCFgICAACAAQQFBCiACEIWAgIAAIABBAkEJIAIQhYCAgAAgAEEDQQcg","AhCFgICAACAAQQVBCyACEIWAgIAAIABBBkEIIAIQhYCAgAAgAEEBQQYgAhCFgICAACAAQQJBAyACEIWAgIAAIABBBEELIAIQhYCA","gAAgAEEHQQkgAhCFgICAACAAQQhBCiACEIWAgIAAIABBAEEEIAIQhYCAgAAgAEEBQQIgAhCFgICAACAAQQNBBiACEIWAgIAAIABB","B0EIIAIQhYCAgAAgAEEJQQogAhCFgICAACAAQQtBDCACEIWAgIAAIABBBEEGIAIQhYCAgAAgAEEFQQkgAhCFgICAACAAQQhBCyAC","EIWAgIAAIABBCkEMIAIQhYCAgAAgAEEAQQUgAhCFgICAACAAQQNBCCACEIWAgIAAIABBBEEHIAIQhYCAgAAgAEEGQQsgAhCFgICA","ACAAQQlBCiACEIWAgIAAIABBAEEBIAIQhYCAgAAgAEECQQUgAhCFgICAACAAQQZBCSACEIWAgIAAIABBB0EIIAIQhYCAgAAgAEEK","QQsgAhCFgICAACAAQQFBAyACEIWAgIAAIABBAkEEIAIQhYCAgAAgAEEFQQYgAhCFgICAACAAQQlBCiACEIWAgIAAIABBAUECIAIQ","hYCAgAAgAEEDQQQgAhCFgICAACAAQQVBByACEIWAgIAAIABBBkEIIAIQhYCAgAAgAEECQQMgAhCFgICAACAAQQRBBSACEIWAgIAA","IABBBkEHIAIQhYCAgAAgAEEIQQkgAhCFgICAACAAQQNBBCACEIWAgIAAIABBBUEGIAIQhYCAgAAPCwALlgIBB38jgICAgABBgAFr","IgMkgICAgAACQAJAIAFBAkkNACABQSBLDQEgASABQQF2IgQgAUESSSIFGyEGIAEgBGshByAAIARBAnRqIQggACEJA0ACQAJAIAZB","DEsNAEEBIQQgBkEITQ0BIAkgBiACEIaAgIAAQQkhBAwBCyAJIAYgAhCHgICAAEENIQQLIARBf2ogBk8NAgJAIAQgBkYNACAEQQJ0","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","EJiAgIAAAAsgByAKQeSEwIAAEJiAgIAAAAsgBCABQdSEwIAAEJiAgIAAAAsgBSABQeSEwIAAEJiAgIAAAAuwCAMJfwJ8An8CQCAB","DQBBAA8LIAIoAgAhBCAAKAIAIQVBACEGIAAhAgJAIABBBGoiByAAIAFBAnRqIghBfGoiCU8NACADKAIAIgooAgQhAUEAIQYgACEC","AkACQAJAAkADQCACQQRqIgsoAgAiByABTw0BIAQgAU8NAiAKKAIAIgwgBEEDdGorAwAhDQJAAkACQAJAIAwgB0EDdGorAwAiDiAO","Yg0AIA0gDWENAUEBIQ8MAwsgDSANYg0BQQAhDwwCC0EAQQBBfyAOIA1mIhAbQQFBfiAQGyAOIA1lGyIQayAQIAooAggtAAAbQf8B","cSIQQf8BRiAHIARJIBAbIQ8MAQsgByAESSEPCyACIAAgBkECdGoiECgCADYCACAQIAc2AgAgAkEIaiICKAIAIgcgAU8NAyAGIA9q","IQYCQAJAAkACQCAMIAdBA3RqKwMAIg4gDmINACANIA1hDQFBASEMDAMLIA0gDWINAUEAIQwMAgtBAEEAQX8gDiANZiIMG0EBQX4g","DBsgDiANZRsiDGsgDCAKKAIILQAAG0H/AXEiDEH/AUYgByAESSAMGyEMDAELIAcgBEkhDAsgCyAAIAZBAnRqIhAoAgA2AgAgECAH","NgIAIAYgDGohBiACQQRqIAlPDQQMAAsLIAcgAUHUhMCAABCYgICAAAALIAQgAUHkhMCAABCYgICAAAALIAcgAUHUhMCAABCYgICA","AAALIAJBBGohBwsCQAJAAkACQAJAIAcgCEYNACADKAIAIQEDQCACIQwgByICKAIAIgcgASgCBCIKTw0CIAQgCk8NAyABKAIAIgog","BEEDdGorAwAhDQJAAkACQAJAIAogB0EDdGorAwAiDiAOYg0AIA0gDWENAUEBIQoMAwsgDSANYg0BQQAhCgwCC0EAQQBBfyAOIA1m","IgobQQFBfiAKGyAOIA1lGyIKayAKIAEoAggtAAAbQf8BcSIKQf8BRiAHIARJIAobIQoMAQsgByAESSEKCyAMIAAgBkECdGoiCygC","ADYCACALIAc2AgAgBiAKaiEGIAJBBGoiByAIRw0ACyAHQXxqIQILIAUgAygCACIHKAIEIgFPDQIgBCABTw0DIAcoAgAiASAEQQN0","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","gYCAgAA2AhwgA0GBgICAADYCFCADIANBCGo2AhggAyADQQxqNgIQQaiAwIAAIANBEGogAhCVgICAAAALjwUCBn8BfiOAgICAAEEQ","ayIGJICAgIAAAkACQCABDQAgBUEBaiEHIAAoAgghCEEtIQkMAQtBK0F/IAAoAggiCEGAgIABcSIBGyEJIAFBFXYgBWohBwsCQAJA","IAhBgICABHENAEEAIQIMAQsCQAJAIANBEEkNACACIAMQloCAgAAhCgwBC0EAIQogA0UNACACIQEgAyELA0AgCiABLAAAQb9/Smoh","CiABQQFqIQEgC0F/aiILDQALCyAKIAdqIQcLAkACQAJAAkACQCAHIAAvAQwiCk8NACAIQYCAgAhxDQFBASEBIAYgACAKIAdrQQEQ","moCAgAAgBigCACIHQX9GDQQgBi8BBCELIAAgCSACIAMQm4CAgAANBCAAKAIAIgMgBCAFIAAoAgQiAigCDBGAgICAAICAgIAADQRB","ACEKIAtB//8DcSELA0AgCyAKQf//A3EiAEshASALIABNDQUgCkEBaiEKIAMgByACKAIQEYGAgIAAgICAgABFDQAMBQsLIAAgCSAC","IAMQm4CAgABFDQEMAgsgACAAKQIIIgynQYCAgP95cUGwgICAAnI2AgggACAJIAIgAxCbgICAAA0BQQEhASAGQQhqIAAgCiAHa0EB","EJqAgIAAIAYoAggiC0F/Rg0CIAYvAQwhAiAAKAIAIgcgBCAFIAAoAgQiAygCDBGAgICAAICAgIAADQJBACEKIAJB//8DcSECAkAD","QCACIApB//8DcU0NAUEBIQEgCkEBaiEKIAcgCyADKAIQEYGAgIAAgICAgABFDQAMBAsLIAAgDDcCCEEAIQEMAgsgACgCACAEIAUg","ACgCBCgCDBGAgICAAICAgIAAIQEMAQtBASEBCyAGQRBqJICAgIAAIAELuAEBA38gAiEEAkACQAJAAkAgASgCCCIFQR12QQNxDgQB","AwACAQsgAkH+/wNxQQF2IQQMAgtBACEEDAELIAJBACADQf8BcRshBAsgBUH///8AcSEFIAEoAgQhAyABKAIAIQZBACEBAkACQANA","IAFB//8DcSAEQf//A3FPDQEgAUEBaiEBIAYgBSADKAIQEYGAgIAAgICAgABFDQALQX8hBQwBCyACIARrIQELIAAgATsBBCAAIAU2","AgALUgACQCABQX9GDQAgACgCACABIAAoAgQoAhARgYCAgACAgICAAEUNAEEBDwsCQCACDQBBAA8LIAAoAgAgAiADIAAoAgQoAgwR","gICAgACAgICAAAvRAwEJfwJAAkAgAEHoB08NACAAIQMMAQsgAUF8aiEEQQAhBSAAIQYCQAJAAkACQAJAA0AgBiAGQZDOAG4iA0GQ","zgBsayIHQf//A3FB5ABuIQggAiAFaiIJQXxqIAJPDQEgBCACaiIKIAhBAXQiCy0ApIXAgAA6AAAgCUF9aiACTw0CIApBAWogC0Gl","hcCAAGotAAA6AAAgCUF+aiACTw0DIApBAmogByAIQeQAbGtBAXRB/v8HcSIILQCkhcCAADoAACAJQX9qIAJPDQQgCkEDaiAIQaWF","wIAAai0AADoAACAEQXxqIQQgBUF8aiEFIAZB/6ziBEshCSADIQYgCUUNBQwACwsgCUF8aiACQZSFwIAAEJiAgIAAAAsgCUF9aiAC","QZSFwIAAEJiAgIAAAAsgCUF+aiACQZSFwIAAEJiAgIAAAAsgCUF/aiACQZSFwIAAEJiAgIAAAAsgAiAFaiECCwJAAkAgA0EKTw0A","IAMhBgwBCyABIAJBfmoiAmogAyADQf//A3FB5ABuIgZB5ABsa0H//wNxQQF0LwCkhcCAADsAAAsCQAJAIABFDQAgBkUNAQsgASAC","QX9qIgJqIAZBAXRBHnEtAKWFwIAAOgAACyACC1EBAX8jgICAgABBEGsiAiSAgICAACABQQFBAUEAIAJBBmogACgCACACQQZqQQoQ","nICAgAAiAGpBCiAAaxCZgICAACEAIAJBEGokgICAgAAgAAthAQF/I4CAgIAAQSBrIgMkgICAgAAgAyABNgIMIAMgADYCCCADQYGA","gIAANgIcIANBgYCAgAA2AhQgAyADQQxqNgIYIAMgA0EIajYCEEGAgMCAACADQRBqIAIQlYCAgAAAC2EBAX8jgICAgABBIGsiAySA","gICAACADIAE2AgwgAyAANgIIIANBgYCAgAA2AhwgA0GBgICAADYCFCADIANBDGo2AhggAyADQQhqNgIQQd+AwIAAIANBEGogAhCV","gICAAAALYQEBfyOAgICAAEEgayIDJICAgIAAIAMgATYCDCADIAA2AgggA0GBgICAADYCHCADQYGAgIAANgIUIAMgA0EMajYCGCAD","IANBCGo2AhBBmIHAgAAgA0EQaiACEJWAgIAAAAsYAEHshsCAAEGZAUG4h8CAABCVgICAAAALSgEDf0EAIQMCQCACRQ0AAkADQCAA","LQAAIgQgAS0AACIFRw0BIABBAWohACABQQFqIQEgAkF/aiICRQ0CDAALCyAEIAVrIQMLIAMLC9IHAQBBgIDAAAvIBxZzbGljZSBp","bmRleCBzdGFydHMgYXQgwA0gYnV0IGVuZHMgYXQgwAAgaW5kZXggb3V0IG9mIGJvdW5kczogdGhlIGxlbiBpcyDAEiBidXQgdGhl","IGluZGV4IGlzIMAAEnJhbmdlIHN0YXJ0IGluZGV4IMAiIG91dCBvZiByYW5nZSBmb3Igc2xpY2Ugb2YgbGVuZ3RoIMAAEHJhbmdl","IGVuZCBpbmRleCDAIiBvdXQgb2YgcmFuZ2UgZm9yIHNsaWNlIG9mIGxlbmd0aCDAAC9yb290Ly5ydXN0dXAvdG9vbGNoYWlucy9z","dGFibGUteDg2XzY0LXVua25vd24tbGludXgtZ251L2xpYi9ydXN0bGliL3NyYy9ydXN0L2xpYnJhcnkvY29yZS9zcmMvc2xpY2Uv","c29ydC9zaGFyZWQvc21hbGxzb3J0LnJzAC9yb290Ly5ydXN0dXAvdG9vbGNoYWlucy9zdGFibGUteDg2XzY0LXVua25vd24tbGlu","dXgtZ251L2xpYi9ydXN0bGliL3NyYy9ydXN0L2xpYnJhcnkvY29yZS9zcmMvc2xpY2Uvc29ydC91bnN0YWJsZS9xdWlja3NvcnQu","cnMAL3Jvb3QvLnJ1c3R1cC90b29sY2hhaW5zL3N0YWJsZS14ODZfNjQtdW5rbm93bi1saW51eC1nbnUvbGliL3J1c3RsaWIvc3Jj","L3J1c3QvbGlicmFyeS9jb3JlL3NyYy9mbXQvbnVtLnJzAHNyYy9saWIucnMAAABNARAAfwAAADgAAAAbAAAANwIQAAoAAAAlAAAA","EgAAADcCEAAKAAAAJgAAABIAAAA3AhAACgAAAGAAAAAMAAAANwIQAAoAAABgAAAAIwAAAM0BEABpAAAAWAIAAAUAAAAwMDAxMDIw","MzA0MDUwNjA3MDgwOTEwMTExMjEzMTQxNTE2MTcxODE5MjAyMTIyMjMyNDI1MjYyNzI4MjkzMDMxMzIzMzM0MzUzNjM3MzgzOTQw","NDE0MjQzNDQ0NTQ2NDc0ODQ5NTA1MTUyNTM1NDU1NTY1NzU4NTk2MDYxNjI2MzY0NjU2NjY3Njg2OTcwNzE3MjczNzQ3NTc2Nzc3","ODc5ODA4MTgyODM4NDg1ODY4Nzg4ODk5MDkxOTI5Mzk0OTU5Njk3OTg5OXVzZXItcHJvdmlkZWQgY29tcGFyaXNvbiBmdW5jdGlv","biBkb2VzIG5vdCBjb3JyZWN0bHkgaW1wbGVtZW50IGEgdG90YWwgb3JkZXLPABAAfQAAAFYDAAAFAAAA"].join("");var Yn=1e4,po="\0";function Wo(e,t){return e==="rust"||e==="auto"&&t>=Yn}var ec=1,tc=65536,zt=null,Pn=null;function Un(e){if(typeof atob=="function"){let o=atob(e),n=new Uint8Array(o.length);for(let A=0;A<o.length;A++)n[A]=o.charCodeAt(A);return n}let t=globalThis.Buffer;if(t)return new Uint8Array(t.from(e,"base64"));throw new Error("No base64 decoder")}function Vo(){return zt?Promise.resolve(zt):(Pn||(Pn=(async()=>{try{return typeof WebAssembly>"u"?null:(zt=await WebAssembly.compile(Un(Ha)),zt)}catch{return null}})()),Pn)}function Ka(){return zt}function Ja(e){let t=e.isWellFormed;if(typeof t=="function")return t.call(e);for(let o=0;o<e.length;o++){let n=e.charCodeAt(o);if(n>=55296&&n<=56319){let A=e.charCodeAt(o+1);if(A>=56320&&A<=57343){o++;continue}return!1}if(n>=56320&&n<=57343)return!1}return!0}var Io=e=>e+7&-8,Ot=class e{x;base;encoder=new TextEncoder;offsetsPtr=0;textPtr=0;textLen=0;rows=0;hasIndex=!1;freePtr;constructor(t){this.x=t,this.base=Io(t.yk_heap_base()),this.freePtr=this.base}static create(t=zt){if(!t)return null;try{let n=new WebAssembly.Instance(t,{}).exports;return n.yk_version()!==ec?null:new e(n)}catch{return null}}ensure(t){let o=t-this.x.memory.buffer.byteLength;o>0&&this.x.memory.grow(Math.ceil(o/tc))}setSearchTexts(t){this.hasIndex=!1,this.freePtr=this.base;try{let o=0;for(let g of t){if(!Ja(g))return!1;o+=g.length*3}let n=t.length,A=this.base,i=Io(A+(n+1)*4);this.ensure(i+o);let r=this.x.memory.buffer,s=new Uint32Array(r,A,n+1),a=new Uint8Array(r,i,o),l=0;for(let g=0;g<n;g++)s[g]=l,l+=this.encoder.encodeInto(t[g],a.subarray(l)).written??0;return s[n]=l,this.offsetsPtr=A,this.textPtr=i,this.textLen=l,this.rows=n,this.freePtr=Io(i+l),this.hasIndex=!0,!0}catch{return!1}}search(t){if(!this.hasIndex||!t||t.includes(po)||!Ja(t))return null;try{let o=this.encoder.encode(t),n=this.freePtr,A=Io(n+o.length);this.ensure(A+this.rows*4),new Uint8Array(this.x.memory.buffer,n,o.length).set(o);let i=this.x.yk_search(this.textPtr,this.textLen,this.offsetsPtr,this.rows,n,o.length,A);return new Uint32Array(this.x.memory.buffer,A,i).slice()}catch{return null}}sortByKeys(t,o){try{let n=t.length,A=this.freePtr,i=Io(A+n*8);return this.ensure(i+n*4),new Float64Array(this.x.memory.buffer,A,n).set(t),this.x.yk_sort(A,n,o?1:0,i),new Uint32Array(this.x.memory.buffer,i,n).slice()}catch{return null}}};function _o(e){return e>=.1?`${e<10?e.toFixed(1):Math.round(e)} ms`:"<0.1 ms"}function Wt(e,t){let o=new Array(t.length);for(let n=0;n<t.length;n++)o[n]=e[t[n]];return o}var oc=1e3;function mo(e,t){return e==="rust"||e==="auto"&&t>=oc}var nc=1,Vt=null,Hn=null;function $a(){return Vt?Promise.resolve(Vt):(Hn||(Hn=(async()=>{try{return typeof WebAssembly>"u"?null:(Vt=await WebAssembly.compile(Un(Ua)),Vt)}catch{return null}})()),Hn)}function za(){return Vt}var qa=e=>e+7&-8,Xo=class e{x;encoder=new TextEncoder;docs=0;ready=!1;constructor(t){this.x=t}static create(t=Vt){if(!t)return null;try{let o=new WebAssembly.Instance(t,{}).exports;return o.yk_rag_version()!==nc?null:new e(o)}catch{return null}}build(t){this.ready=!1;try{let o=this.encoder.encode(t.map(A=>A.join(" ")).join(`
1526
1526
  `));this.x.yk_rag_reset();let n=this.x.yk_rag_scratch(o.length);return new Uint8Array(this.x.memory.buffer,n,o.length).set(o),this.x.yk_rag_build(n,o.length,t.length),this.docs=t.length,this.ready=!0,!0}catch{return!1}}search(t,o,n,A){if(!this.ready||t.length!==o.length||t.some(i=>!i||/[ \n]/.test(i)))return null;try{let i=Math.max(0,Math.min(A,this.docs)),r=this.encoder.encode(t.join(" ")),s=qa(r.length),a=s+o.length*8,l=qa(a+i*4),g=l+i*8,u=this.x.yk_rag_scratch(g),d=this.x.memory.buffer;new Uint8Array(d,u,r.length).set(r),new Float64Array(d,u+s,o.length).set(o);let p=this.x.yk_rag_search(u,r.length,u+s,o.length,n,i,u+a,u+l),B=this.x.memory.buffer,y=new Uint32Array(B,u+a,p),m=new Float64Array(B,u+l,p),w=[];for(let b=0;b<p;b++)w.push({doc:y[b],score:m[b]});return w}catch{return null}}};var Ac=new Set("a an the is are was were be to of and or in on at for with what which who whom how why when where does do did this that these those it its from by as about any all please tell me show give".split(" "));function Co(e){return(e.normalize("NFC").toLowerCase().match(/[\p{L}\p{M}\p{N}]+/gu)??[]).filter(t=>t.length>1&&!Ac.has(t))}function Oa(e,t=600){let o=Le(e);if(!o)return[];let n=[],A="",i="",r=()=>{i.trim()&&n.push({id:`page-${n.length+1}`,source:"page",text:i.trim(),ref:A||void 0}),i=""};for(let s of ee(o,"h1,h2,h3,h4,p,li,td,th,dt,dd,blockquote,figcaption,label,summary")){if(s.querySelector("p,li,h1,h2,h3,h4"))continue;let a=Ce(s.textContent);if(a){if(/^H[1-4]$/.test(s.tagName)){r(),A=a,i=`${a}. `;continue}i.length+a.length>t&&r(),i+=`${a} `}}return r(),n}function Wa(e,t,o="id"){return e.map((n,A)=>{let i=n,r=String(i[o]??A+1);return{id:`grid-${r}`,source:"grid",ref:r,text:t.map(s=>`${s.label}: ${String(i[s.key]??"")}`).join(". ")}})}function fo(e={}){let t={...e,engine:e.engine??"rust"},o=[],n=[],A=new Map,i=0,r=null,s=null,a=null,l=!1,g=null;function u(){return mo(t.engine,o.length)?s?Promise.resolve(!0):(g||(g=$a().then(m=>(s=m?Xo.create(m):null,!!s))),g):Promise.resolve(!1)}function d(){let m=[...t.includePage===!1?[]:Oa(t.root),...t.rows&&t.columns?Wa(t.rows,t.columns,t.rowKey):[],...(t.documents??[]).map(b=>({id:b.id,source:"custom",text:b.text}))],w=m.map(b=>`${b.source}${b.id}${b.ref??""}${b.text}`).join("");if(w!==r){r=w,o=m,n=o.map(b=>Co(b.text)),A=new Map;for(let b of n)for(let C of new Set(b))A.set(C,(A.get(C)??0)+1);i=n.reduce((b,C)=>b+C.length,0)/Math.max(1,n.length)}}d(),mo(t.engine,o.length)&&za()&&u();function p(m,w){if(!s||!mo(t.engine,o.length)||!Number.isInteger(w)||w<=0||(a!==n&&(l=s.build(n),a=n),!l))return null;let b=n.length,C=m.map(I=>Math.log(1+(b-(A.get(I)??1)+.5)/((A.get(I)??1)+.5))),c=s.search(m,C,i||1,w);return c?c.map(I=>({...o[I.doc],score:I.score})):null}function B(m,w=5){let b=Co(m);if(!b.length)return[];let C=p(b,w);if(C)return C;s||u();let c=n.length;return n.map((Q,k)=>{let N=0;for(let H of b){let V=0;for(let G of Q)(G===H||H.length>=4&&G.startsWith(H)||G.length>=4&&H.startsWith(G))&&V++;if(!V)continue;let T=Math.log(1+(c-(A.get(H)??1)+.5)/((A.get(H)??1)+.5));N+=T*(V*2.2/(V+1.2*(.25+.75*(Q.length/(i||1)))))}return{...o[k],score:N}}).filter(Q=>Q.score>0).sort((Q,k)=>k.score-Q.score).slice(0,w)}async function y(m,w={}){await u();let b=B(m,w.k??4);if(!b.length)return{answer:"I couldn't find anything about that on this page or in the data.",hits:b,generated:!1};if(w.generate)try{let Q=b.map((N,H)=>`[${H+1}] ${N.text}`).join(`
1527
1527
  `),k=await w.generate(m,Q);if(k?.trim())return{answer:k.trim(),hits:b,generated:!0}}catch{}let C=new Set(Co(m)),c=b.flatMap(Q=>Q.text.split(/(?<=[.!?।])\s+|\.\s+(?=\p{Lu})/u).map(k=>({s:k.trim(),h:Q}))).map(({s:Q,h:k})=>({s:Q,h:k,overlap:Co(Q).filter(N=>C.has(N)).length})).filter(Q=>Q.s&&Q.overlap>0).sort((Q,k)=>k.overlap-Q.overlap).slice(0,3);return{answer:c.length?c.map(Q=>Q.h.source==="grid"?`Row ${Q.h.ref}: ${Q.s}`:Q.s).join(`
1528
- `):b[0].text.slice(0,300),hits:b,generated:!1}}return{search:B,ask:y,rebuild:d,update(m){Object.assign(t,m),d()},size:()=>o.length,get engine(){return s&&mo(t.engine,o.length)?"rust":"ts"},whenEngineReady:()=>u().then(m=>m?"rust":"ts")}}x();var X=require("react");x();var rc={en:{found:e=>`${e} row(s) found.`,count:e=>`${e} row(s).`,columns:"Grid columns retrieved.",rowFound:"Row found.",notFound:e=>`Row "${e}" not found.`,noneFound:"None of the given rows were found.",highlighted:e=>`${e} row(s) highlighted.`,selected:e=>`Row "${e}" selected.`,opened:e=>`Row "${e}" opened.`,notSupported:e=>`This grid does not support "${e}".`,emptyQuery:"Please enter something to search.",noIds:"No row IDs were given.",unknownColumn:e=>`Unknown column "${e}".`,badOperator:e=>`Unknown filter operator "${e}".`,badValue:"The filter value is not valid for this column.",filtered:e=>`Filter applied: ${e} row(s) match.`,filtersCleared:"All filters cleared.",sorted:(e,t)=>`Sorted by ${e} (${t==="asc"?"ascending":"descending"}).`,sortCleared:"Sorting cleared.",internal:"Something went wrong while running this action."},te:{found:e=>`${e} \u0C35\u0C30\u0C41\u0C38(\u0C32\u0C41) \u0C26\u0C4A\u0C30\u0C3F\u0C15\u0C3E\u0C2F\u0C3F.`,count:e=>`\u0C2E\u0C4A\u0C24\u0C4D\u0C24\u0C02 ${e} \u0C35\u0C30\u0C41\u0C38\u0C32\u0C41.`,columns:"\u0C15\u0C3E\u0C32\u0C2E\u0C4D\u200C\u0C32 \u0C35\u0C3F\u0C35\u0C30\u0C3E\u0C32\u0C41.",rowFound:"\u0C35\u0C30\u0C41\u0C38 \u0C26\u0C4A\u0C30\u0C3F\u0C15\u0C3F\u0C02\u0C26\u0C3F.",notFound:e=>`"${e}" \u0C35\u0C30\u0C41\u0C38 \u0C26\u0C4A\u0C30\u0C15\u0C32\u0C47\u0C26\u0C41.`,noneFound:"\u0C07\u0C1A\u0C4D\u0C1A\u0C3F\u0C28 \u0C35\u0C30\u0C41\u0C38\u0C32\u0C47\u0C35\u0C40 \u0C26\u0C4A\u0C30\u0C15\u0C32\u0C47\u0C26\u0C41.",highlighted:e=>`${e} \u0C35\u0C30\u0C41\u0C38(\u0C32\u0C41) \u0C39\u0C48\u0C32\u0C48\u0C1F\u0C4D \u0C1A\u0C47\u0C36\u0C3E\u0C28\u0C41.`,selected:e=>`"${e}" \u0C0E\u0C02\u0C1A\u0C41\u0C15\u0C41\u0C28\u0C4D\u0C28\u0C3E\u0C28\u0C41.`,opened:e=>`"${e}" \u0C24\u0C46\u0C30\u0C3F\u0C1A\u0C3E\u0C28\u0C41.`,notSupported:e=>`\u0C08 \u0C2A\u0C1F\u0C4D\u0C1F\u0C3F\u0C15\u0C32\u0C4B "${e}" \u0C38\u0C4C\u0C15\u0C30\u0C4D\u0C2F\u0C02 \u0C32\u0C47\u0C26\u0C41.`,emptyQuery:"\u0C35\u0C46\u0C24\u0C15\u0C21\u0C3E\u0C28\u0C3F\u0C15\u0C3F \u0C0F\u0C26\u0C48\u0C28\u0C3E \u0C30\u0C3E\u0C2F\u0C02\u0C21\u0C3F.",noIds:"\u0C35\u0C30\u0C41\u0C38 ID\u0C32\u0C41 \u0C07\u0C35\u0C4D\u0C35\u0C32\u0C47\u0C26\u0C41.",unknownColumn:e=>`"${e}" \u0C05\u0C28\u0C47 \u0C15\u0C3E\u0C32\u0C2E\u0C4D \u0C32\u0C47\u0C26\u0C41.`,badOperator:e=>`"${e}" \u0C05\u0C28\u0C47 \u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D \u0C35\u0C3F\u0C27\u0C3E\u0C28\u0C02 \u0C32\u0C47\u0C26\u0C41.`,badValue:"\u0C08 \u0C15\u0C3E\u0C32\u0C2E\u0C4D\u200C\u0C15\u0C3F \u0C08 \u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D \u0C35\u0C3F\u0C32\u0C41\u0C35 \u0C38\u0C30\u0C3F\u0C2A\u0C4B\u0C26\u0C41.",filtered:e=>`\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D \u0C35\u0C47\u0C36\u0C3E\u0C28\u0C41: ${e} \u0C35\u0C30\u0C41\u0C38\u0C32\u0C41 \u0C38\u0C30\u0C3F\u0C2A\u0C4B\u0C2F\u0C3E\u0C2F\u0C3F.`,filtersCleared:"\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D\u0C32\u0C28\u0C4D\u0C28\u0C40 \u0C24\u0C40\u0C38\u0C47\u0C36\u0C3E\u0C28\u0C41.",sorted:(e,t)=>`${e} \u0C2A\u0C4D\u0C30\u0C15\u0C3E\u0C30\u0C02 \u0C15\u0C4D\u0C30\u0C2E\u0C02 (${t==="asc"?"\u0C06\u0C30\u0C4B\u0C39\u0C23":"\u0C05\u0C35\u0C30\u0C4B\u0C39\u0C23"}).`,sortCleared:"\u0C15\u0C4D\u0C30\u0C2E\u0C02 \u0C24\u0C40\u0C38\u0C47\u0C36\u0C3E\u0C28\u0C41.",internal:"\u0C08 \u0C2A\u0C28\u0C3F \u0C1A\u0C47\u0C38\u0C4D\u0C24\u0C41\u0C02\u0C21\u0C17\u0C3E \u0C38\u0C2E\u0C38\u0C4D\u0C2F \u0C35\u0C1A\u0C4D\u0C1A\u0C3F\u0C02\u0C26\u0C3F."}};function Ue(e){return rc[e.locale??"en"]}function ze(e,t){return{success:!0,message:e,data:t}}function pe(e,t){return{success:!1,message:t,error:{code:e}}}var _a=["contains","equals","startsWith","endsWith","greaterThan","lessThan","between"];function Qe(e,t="id"){let o=e?.[t];return o==null?"":String(o)}function Nt(e){return String(e??"").normalize("NFC").toLowerCase().trim()}function Xa(e){if(typeof e=="number")return Number.isFinite(e)?e:null;let t=String(e??"").trim();if(t==="")return null;let o=Number(t);return Number.isFinite(o)?o:null}function ja(e){if(e instanceof Date)return e.getTime();let t=new Date(String(e??"")).getTime();return Number.isFinite(t)?t:null}function Za(e){return(Array.isArray(e)?e:typeof e=="string"?e.split(","):[]).map(o=>String(o).trim()).filter(Boolean)}function Jn(e,t){let o=Nt(t);return e.columns.find(n=>Nt(n.key)===o||Nt(n.label)===o)}function jo(e,t){return e.data.find(o=>Qe(o,e.rowKey)===t)}function ic(e,t){return e[t]}function sc(e,t,o){let n=ic(e,o.key),A=o.type??"text";if(A==="number"||A==="date"){let s=A==="number"?Xa:ja,a=s(n);if(a===null)return!1;if(t.operator==="between"){let[g,u]=t.value,d=s(g),p=s(u);return d!==null&&p!==null&&a>=Math.min(d,p)&&a<=Math.max(d,p)}let l=s(t.value);if(l===null)return!1;switch(t.operator){case"equals":return a===l;case"greaterThan":return a>l;case"lessThan":return a<l;default:break}}let i=Nt(n),r=Nt(t.value);switch(t.operator){case"equals":return i===r;case"startsWith":return i.startsWith(r);case"endsWith":return i.endsWith(r);case"contains":return i.includes(r);default:return!1}}function ac(e,t){let o=t.type??"text",n=o==="date"?ja:Xa;return e.operator==="between"?o==="text"||!Array.isArray(e.value)||e.value.length!==2?!1:n(e.value[0])!==null&&n(e.value[1])!==null:e.operator==="greaterThan"||e.operator==="lessThan"?o!=="text"&&n(e.value)!==null:!Array.isArray(e.value)&&String(e.value).trim()!==""}function lt(e,t,o){return o.length?el({data:e,columns:t},o):e}function mt(e){return e.map(t=>({key:String(t.key),label:t.label,type:t.type==="number"?"number":t.type==="date"?"date":"text"}))}function el(e,t){return e.data.filter(o=>t.every(n=>{let A=Jn(e,n.key);return A?sc(o,n,A):!0}))}function Kn(e,t){let o=Ue(e),n=Nt(t);if(!n)return pe("INVALID_INPUT",o.emptyQuery);let A=e.data.filter(r=>e.columns.some(s=>Nt(r[s.key]).includes(n))),i=A.map(r=>Qe(r,e.rowKey)).filter(Boolean);return e.onHighlightRows?.(i),ze(o.found(A.length),A)}function qn(e){return ze(Ue(e).count(e.data.length),e.data.length)}function $n(e){return ze(Ue(e).columns,e.columns)}function zn(e,t){let o=Ue(e),n=String(t??"").trim();if(!n)return pe("INVALID_INPUT",o.noIds);let A=jo(e,n);return A?ze(o.rowFound,A):pe("NOT_FOUND",o.notFound(n))}function _t(e,t){let o=Ue(e),n=Za(t);if(n.length===0)return pe("INVALID_INPUT",o.noIds);if(!e.onHighlightRows)return pe("NOT_SUPPORTED",o.notSupported("highlight"));let A=n.filter(i=>jo(e,i)!==void 0);return A.length===0?pe("NOT_FOUND",o.noneFound):(e.onHighlightRows(A),ze(o.highlighted(A.length),A))}function ho(e,t){let o=Ue(e),n=String(t??"").trim();return n?e.onSelectRow?jo(e,n)?(e.onSelectRow(n),ze(o.selected(n),n)):pe("NOT_FOUND",o.notFound(n)):pe("NOT_SUPPORTED",o.notSupported("select")):pe("INVALID_INPUT",o.noIds)}function yo(e,t){let o=Ue(e),n=String(t??"").trim();return n?e.onOpenRow?jo(e,n)?(e.onOpenRow(n),ze(o.opened(n),n)):pe("NOT_FOUND",o.notFound(n)):pe("NOT_SUPPORTED",o.notSupported("open")):pe("INVALID_INPUT",o.noIds)}function On(e,t){let o=Ue(e),n=Jn(e,t?.key??"");if(!n)return pe("INVALID_INPUT",o.unknownColumn(String(t?.key??"")));if(!_a.includes(t.operator))return pe("INVALID_INPUT",o.badOperator(String(t.operator)));let A={...t,key:n.key};if(!ac(A,n))return pe("INVALID_INPUT",o.badValue);if(!e.onFiltersChange)return pe("NOT_SUPPORTED",o.notSupported("filter"));let i=[...(e.filters??[]).filter(s=>s.key!==n.key),A],r=el(e,i).length;return e.onFiltersChange(i),ze(o.filtered(r),{filters:i,count:r})}function Wn(e){let t=Ue(e);return e.onFiltersChange?(e.onFiltersChange([]),ze(t.filtersCleared,[])):pe("NOT_SUPPORTED",t.notSupported("clear filters"))}function Vn(e,t,o="asc"){let n=Ue(e),A=Jn(e,t);if(!A)return pe("INVALID_INPUT",n.unknownColumn(String(t)));if(o!=="asc"&&o!=="desc")return pe("INVALID_INPUT",n.badValue);if(!e.onSortChange)return pe("NOT_SUPPORTED",n.notSupported("sort"));let i={key:A.key,direction:o};return e.onSortChange(i),ze(n.sorted(A.label,o),i)}function _n(e){let t=Ue(e);return e.onSortChange?(e.onSortChange(null),ze(t.sortCleared,null)):pe("NOT_SUPPORTED",t.notSupported("clear sort"))}var lc={search:"Search all columns for text. Matching rows are highlighted.",count:"Count the rows currently in the grid.",columns:"List the grid's columns with their keys, labels and types.",get_row:"Get one row by its ID.",highlight:"Highlight one or more rows by ID without filtering the grid.",select:"Select one row by ID.",open:"Open one row by ID to show its full details.",filter:"Filter the grid by one column. Replaces any existing filter on that column.",clear_filters:"Remove all filters.",sort:"Sort the grid by one column, ascending or descending.",clear_sort:"Remove sorting."},Va={en:{search:"Search",count:"Count",columns:"Columns",get_row:"Get row",highlight:"Highlight",select:"Select",open:"Open",filter:"Filter",clear_filters:"Clear filters",sort:"Sort",clear_sort:"Clear sort"},te:{search:"\u0C35\u0C46\u0C24\u0C41\u0C15\u0C41",count:"\u0C32\u0C46\u0C15\u0C4D\u0C15",columns:"\u0C15\u0C3E\u0C32\u0C2E\u0C4D\u200C\u0C32\u0C41",get_row:"\u0C35\u0C30\u0C41\u0C38 \u0C1A\u0C42\u0C2A\u0C41",highlight:"\u0C39\u0C48\u0C32\u0C48\u0C1F\u0C4D",select:"\u0C0E\u0C02\u0C1A\u0C41\u0C15\u0C4B",open:"\u0C24\u0C46\u0C30\u0C41\u0C35\u0C41",filter:"\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D",clear_filters:"\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D\u0C32\u0C41 \u0C24\u0C40\u0C38\u0C47\u0C2F\u0C3F",sort:"\u0C15\u0C4D\u0C30\u0C2E\u0C02",clear_sort:"\u0C15\u0C4D\u0C30\u0C2E\u0C02 \u0C24\u0C40\u0C38\u0C47\u0C2F\u0C3F"}};async function gc(e,t){try{return t()}catch{return pe("INTERNAL",Ue(e).internal)}}function Xt(e,t={}){let o=t.name??"yuktai_grid",n=Va[e.locale??"en"],A=a=>t.descriptions?.[a]??lc[a],i={id:{type:"string",description:"Row ID"}},r=e.columns.map(a=>a.key);return[{id:"search",available:!0,schema:{type:"object",properties:{query:{type:"string"}},required:["query"]},run:a=>Kn(e,String(a.query??""))},{id:"count",available:!0,schema:{type:"object",properties:{}},run:()=>qn(e)},{id:"columns",available:!0,schema:{type:"object",properties:{}},run:()=>$n(e)},{id:"get_row",available:!0,schema:{type:"object",properties:i,required:["id"]},run:a=>zn(e,String(a.id??""))},{id:"highlight",available:!!e.onHighlightRows,schema:{type:"object",properties:{ids:{type:"array",items:{type:"string"},description:"Row IDs"}},required:["ids"]},run:a=>_t(e,Za(a.ids))},{id:"select",available:!!e.onSelectRow,schema:{type:"object",properties:i,required:["id"]},run:a=>ho(e,String(a.id??""))},{id:"open",available:!!e.onOpenRow,schema:{type:"object",properties:i,required:["id"]},run:a=>yo(e,String(a.id??""))},{id:"filter",available:!!e.onFiltersChange,schema:{type:"object",properties:{key:{type:"string",enum:r},operator:{type:"string",enum:_a},value:{description:"Text or number; for 'between' an array of two numbers or dates"}},required:["key","operator","value"]},run:a=>On(e,{key:String(a.key??""),operator:String(a.operator??""),value:a.value})},{id:"clear_filters",available:!!e.onFiltersChange,schema:{type:"object",properties:{}},run:()=>Wn(e)},{id:"sort",available:!!e.onSortChange,schema:{type:"object",properties:{key:{type:"string",enum:r},direction:{type:"string",enum:["asc","desc"]}},required:["key"]},run:a=>Vn(e,String(a.key??""),a.direction==="desc"?"desc":"asc")},{id:"clear_sort",available:!!e.onSortChange,schema:{type:"object",properties:{}},run:()=>_n(e)}].filter(a=>a.available).map(a=>({name:`${o}_${a.id}`,title:Va.en[a.id],description:A(a.id),label:n[a.id],inputSchema:a.schema,execute:l=>gc(e,()=>a.run(l??{}))}))}x();x();var bo={"html-lang":{title:"Page language is set",wcag:"3.1.1",severity:"serious",why:"Screen readers pick their voice and pronunciation from the page language. Without it, Telugu or Hindi text may be read with English rules."},"page-title":{title:"Page has a title",wcag:"2.4.2",severity:"serious",why:"The title is the first thing announced and the name shown on browser tabs and bookmarks."},"image-alt":{title:"Images have alternative text",wcag:"1.1.1",severity:"critical",why:'People who cannot see the image get no information from it unless alt text describes it (or alt="" marks it as decorative).'},"heading-order":{title:"Headings follow a logical order",wcag:"1.3.1",severity:"moderate",why:"Many screen-reader users jump between headings. Skipped levels make the page outline confusing."},"single-h1":{title:"Page has one main heading",wcag:"best practice",severity:"minor",why:"A single h1 tells everyone what the page is about."},"landmark-main":{title:"Main content landmark exists",wcag:"1.3.1 / 2.4.1",severity:"moderate",why:"A <main> region lets keyboard and screen-reader users skip straight past menus to the content."},"form-label":{title:"Form fields have labels",wcag:"1.3.1 / 4.1.2",severity:"critical",why:'Without a label, a screen reader just says "edit text" and the user has to guess what to type.'},"button-name":{title:"Buttons have names",wcag:"4.1.2",severity:"critical",why:'An icon-only button with no name is announced as just "button", so its purpose is unknown.'},"link-name":{title:"Links have names",wcag:"2.4.4",severity:"serious",why:"Links are often read out of context in a list. An empty link gives no clue where it goes."},"color-contrast":{title:"Text has enough contrast",wcag:"1.4.3",severity:"serious",why:"Low-contrast text is hard to read for older users, people with low vision, and anyone outdoors on a phone."},"positive-tabindex":{title:"No positive tabindex",wcag:"2.4.3",severity:"moderate",why:"tabindex greater than 0 forces a custom keyboard order that usually doesn't match the visual order."},"keyboard-access":{title:"Clickable things work with a keyboard",wcag:"2.1.1",severity:"critical",why:"A div or span with a click handler can't be reached or activated with Tab and Enter, locking out keyboard users."},"duplicate-id":{title:"IDs are unique",wcag:"best practice",severity:"minor",why:"Labels and ARIA references point at ids. Duplicates make them point at the wrong element."},"form-error":{title:"Errors are linked to their fields",wcag:"3.3.1",severity:"serious",why:"When a field is marked invalid, the error message must be connected to it so it's announced together with the field."},"target-size":{title:"Touch targets are large enough",wcag:"2.5.8",severity:"moderate",why:"Small targets are hard to tap for people with tremors, seniors and everyone on mobile."}},cc={critical:10,serious:5,moderate:2,minor:1};function gt(e={}){let t=Le(e.root),o=new Set(e.skip??[]),n=[],A={},i=t?Gt(t)?t:t.ownerDocument:null,r=(s,a,l,g,u=!1)=>{if(o.has(s))return;let d=bo[s],p=A[s]=(A[s]??0)+1;n.push({id:`${s}-${p}`,rule:s,severity:d.severity,wcag:d.wcag,message:l,why:d.why,fix:g,selector:a?je(a):"document",snippet:a?Be(a.outerHTML,120):"",autoFixable:u,element:a??void 0})};if(t&&i){i.documentElement.getAttribute("lang")||r("html-lang",i.documentElement,"The <html> element has no lang attribute.",'Add lang to <html>, e.g. <html lang="te"> or "en".',!0),i.title.trim()||r("page-title",null,"The page has no <title>.","Add a short, descriptive <title> that names this page.");for(let c of ee(t,"img"))if(!(c.getAttribute("role")==="presentation"||c.getAttribute("role")==="none")&&!c.hasAttribute("alt")&&!c.getAttribute("aria-label")&&!c.getAttribute("aria-labelledby")){let I=c.getAttribute("title");r("image-alt",c,`Image has no alt text${c.getAttribute("src")?` (${Be(c.getAttribute("src")??"",40)})`:""}.`,I?`Use the title as alt: alt="${Be(I,40)}".`:'Describe the image in alt, or use alt="" if it is purely decorative.',!!I)}let s=ee(t,"h1,h2,h3,h4,h5,h6"),a=0;for(let c of s){let I=Number(c.tagName[1]);a>0&&I>a+1&&r("heading-order",c,`Heading jumps from h${a} to h${I}: "${Be(c.textContent??"",40)}".`,`Change it to h${a+1}, or add the missing level above it.`),a=I}let l=s.filter(c=>c.tagName==="H1");l.length===0?r("single-h1",null,"The page has no h1.","Add one h1 that names the page."):l.length>1&&r("single-h1",l[1],`The page has ${l.length} h1 headings.`,"Keep one h1; turn the others into h2."),t.querySelectorAll("main,[role='main']").length===0&&r("landmark-main",null,"No <main> landmark found.","Wrap the primary content in <main>.");let g=ee(t,"input,select,textarea").filter(c=>{let I=(c.getAttribute("type")??"text").toLowerCase();return!["hidden","submit","button","reset","image"].includes(I)});for(let c of g){if(!Ye(c)){let I=c.getAttribute("placeholder")||c.getAttribute("name");r("form-label",c,`Form field has no label${I?` (placeholder/name: "${Be(I,30)}")`:""}.`,I?`Add a visible <label>. Quick fix: aria-label="${Be(I,30)}".`:"Add a visible <label for=\u2026> describing what to enter.",!!I)}c.getAttribute("aria-invalid")==="true"&&(c.getAttribute("aria-describedby")||c.getAttribute("aria-errormessage")||r("form-error",c,"Field is marked invalid but no error message is linked to it.","Put the error text in an element with an id and point aria-describedby at it."))}for(let c of ee(t,"button,[role='button'],input[type='submit'],input[type='button']"))if(!Ye(c)){let I=c.getAttribute("title");r("button-name",c,"Button has no accessible name.",I?`Use the title as the name: aria-label="${I}".`:"Add visible text or an aria-label that says what the button does.",!!I)}for(let c of ee(t,"a[href]"))if(!Ye(c)){let I=c.getAttribute("title");r("link-name",c,`Link has no text (${Be(c.getAttribute("href")??"",40)}).`,I?`Use the title as the name: aria-label="${I}".`:"Add link text that says where it goes.",!!I)}for(let c of ee(t,"[tabindex]"))Number(c.getAttribute("tabindex"))>0&&r("positive-tabindex",c,`tabindex="${c.getAttribute("tabindex")}" overrides the natural tab order.`,'Use tabindex="0" and fix the order in the HTML instead.',!0);let u="a[href],button,input,select,textarea,summary";for(let c of ee(t,"[onclick],[role='button'],[role='link']"))c.matches(u)||c.hasAttribute("tabindex")||r("keyboard-access",c,`<${c.tagName.toLowerCase()}> is clickable but can't be reached with the keyboard.`,'Use a real <button>, or add tabindex="0", a role and Enter/Space key handling.',!0);let d=new Map;for(let c of Array.from(t.querySelectorAll("[id]")))c.closest(co)||d.set(c.id,(d.get(c.id)??0)+1);for(let[c,I]of d)I>1&&r("duplicate-id",t.querySelector(`[id="${c.replace(/"/g,'\\"')}"]`),`id="${c}" is used ${I} times.`,"Give each element a unique id.");let p=e.maxContrastChecks??600,B=0;for(let c of ee(t,"body *")){if(B>=p)break;if(!uo(c)||["SCRIPT","STYLE","NOSCRIPT","OPTION"].includes(c.tagName))continue;B++;let I=pt(window.getComputedStyle(c).color),Q=La(c);if(!I||!Q)continue;let k=$t(I,Q),N=Pa(c)?3:4.5;k<N&&r("color-contrast",c,`Contrast ${k}:1 is below ${N}:1 for "${Be(c.textContent??"",30)}".`,`Darken the text or lighten the background until the ratio is at least ${N}:1.`)}let y=e.minTargetSize??24,m=ee(t,Oo).map(c=>({el:c,rect:c.getBoundingClientRect()})).filter(c=>c.rect.width>0||c.rect.height>0),w=c=>c.width<y||c.height<y,b=c=>[c.left+c.width/2,c.top+c.height/2],C=(c,I,Q)=>Math.hypot(Math.max(Q.left-c,0,c-Q.right),Math.max(Q.top-I,0,I-Q.bottom));for(let c of m){if(!w(c.rect)||c.el.tagName==="A"&&c.el.closest("p,li,td"))continue;let[I,Q]=b(c.rect);m.some(N=>{if(N===c||N.el.contains(c.el)||c.el.contains(N.el))return!1;if(C(I,Q,N.rect)<y/2)return!0;if(!w(N.rect))return!1;let[H,V]=b(N.rect);return Math.hypot(I-H,Q-V)<y})&&r("target-size",c.el,`Target is ${Math.round(c.rect.width)}\xD7${Math.round(c.rect.height)}px and too close to another target (needs ${y}\xD7${y}, or ${y}px of space around it).`,`Increase padding so it's at least ${y}\xD7${y}px (44\xD744 is better for seniors), or add space between targets.`)}}return dc(n,i,o)}function dc(e,t,o){let n=Object.keys(bo).filter(a=>!o.has(a)).map(a=>{let l=e.filter(g=>g.rule===a).length;return{rule:a,title:bo[a].title,passed:l===0,issueCount:l}}),A=0;for(let a of n){let l=cc[bo[a.rule].severity];A+=Math.min(25,a.issueCount*l)}let i=Math.max(0,100-A),r=n.filter(a=>!a.passed),s=e.filter(a=>a.severity==="critical").length;return{url:t?.location?.href??"",title:t?.title??"",generatedAt:new Date().toISOString(),score:i,passed:s===0&&i>=80,checks:n,issues:e,summary:e.length===0?`All ${n.length} checks passed.`:`${n.length-r.length} of ${n.length} checks passed. ${e.length} issue(s) found, ${s} critical. Score ${i}/100.`}}function Xn(e){let t=["# Accessibility QA report","",`- Page: ${e.title||"(untitled)"} ${e.url}`,`- Generated: ${e.generatedAt}`,`- Score: **${e.score}/100** \u2014 ${e.passed?"PASS":"FAIL"}`,"",e.summary,"","## Checks","","| Check | Result | Issues |","|---|---|---|",...e.checks.map(o=>`| ${o.title} | ${o.passed?"\u2705 Pass":"\u274C Fail"} | ${o.issueCount} |`)];if(e.issues.length){t.push("","## Issues","");for(let o of e.issues)t.push(`### ${o.id} \xB7 ${o.severity} \xB7 WCAG ${o.wcag}`,"",`- **Problem:** ${o.message}`,`- **Why it matters:** ${o.why}`,`- **Fix:** ${o.fix}`,`- **Where:** \`${o.selector}\``,"")}return t.join(`
1528
+ `):b[0].text.slice(0,300),hits:b,generated:!1}}return{search:B,ask:y,rebuild:d,update(m){Object.assign(t,m),d()},size:()=>o.length,get engine(){return s&&mo(t.engine,o.length)?"rust":"ts"},whenEngineReady:()=>u().then(m=>m?"rust":"ts")}}x();var X=require("react");x();var rc={en:{found:e=>`${e} row(s) found.`,count:e=>`${e} row(s).`,columns:"Grid columns retrieved.",rowFound:"Row found.",notFound:e=>`Row "${e}" not found.`,noneFound:"None of the given rows were found.",highlighted:e=>`${e} row(s) highlighted.`,selected:e=>`Row "${e}" selected.`,opened:e=>`Row "${e}" opened.`,notSupported:e=>`This grid does not support "${e}".`,emptyQuery:"Please enter something to search.",noIds:"No row IDs were given.",unknownColumn:e=>`Unknown column "${e}".`,badOperator:e=>`Unknown filter operator "${e}".`,badValue:"The filter value is not valid for this column.",filtered:e=>`Filter applied: ${e} row(s) match.`,filtersCleared:"All filters cleared.",sorted:(e,t)=>`Sorted by ${e} (${t==="asc"?"ascending":"descending"}).`,sortCleared:"Sorting cleared.",internal:"Something went wrong while running this action."},te:{found:e=>`${e} \u0C35\u0C30\u0C41\u0C38(\u0C32\u0C41) \u0C26\u0C4A\u0C30\u0C3F\u0C15\u0C3E\u0C2F\u0C3F.`,count:e=>`\u0C2E\u0C4A\u0C24\u0C4D\u0C24\u0C02 ${e} \u0C35\u0C30\u0C41\u0C38\u0C32\u0C41.`,columns:"\u0C15\u0C3E\u0C32\u0C2E\u0C4D\u200C\u0C32 \u0C35\u0C3F\u0C35\u0C30\u0C3E\u0C32\u0C41.",rowFound:"\u0C35\u0C30\u0C41\u0C38 \u0C26\u0C4A\u0C30\u0C3F\u0C15\u0C3F\u0C02\u0C26\u0C3F.",notFound:e=>`"${e}" \u0C35\u0C30\u0C41\u0C38 \u0C26\u0C4A\u0C30\u0C15\u0C32\u0C47\u0C26\u0C41.`,noneFound:"\u0C07\u0C1A\u0C4D\u0C1A\u0C3F\u0C28 \u0C35\u0C30\u0C41\u0C38\u0C32\u0C47\u0C35\u0C40 \u0C26\u0C4A\u0C30\u0C15\u0C32\u0C47\u0C26\u0C41.",highlighted:e=>`${e} \u0C35\u0C30\u0C41\u0C38(\u0C32\u0C41) \u0C39\u0C48\u0C32\u0C48\u0C1F\u0C4D \u0C1A\u0C47\u0C36\u0C3E\u0C28\u0C41.`,selected:e=>`"${e}" \u0C0E\u0C02\u0C1A\u0C41\u0C15\u0C41\u0C28\u0C4D\u0C28\u0C3E\u0C28\u0C41.`,opened:e=>`"${e}" \u0C24\u0C46\u0C30\u0C3F\u0C1A\u0C3E\u0C28\u0C41.`,notSupported:e=>`\u0C08 \u0C2A\u0C1F\u0C4D\u0C1F\u0C3F\u0C15\u0C32\u0C4B "${e}" \u0C38\u0C4C\u0C15\u0C30\u0C4D\u0C2F\u0C02 \u0C32\u0C47\u0C26\u0C41.`,emptyQuery:"\u0C35\u0C46\u0C24\u0C15\u0C21\u0C3E\u0C28\u0C3F\u0C15\u0C3F \u0C0F\u0C26\u0C48\u0C28\u0C3E \u0C30\u0C3E\u0C2F\u0C02\u0C21\u0C3F.",noIds:"\u0C35\u0C30\u0C41\u0C38 ID\u0C32\u0C41 \u0C07\u0C35\u0C4D\u0C35\u0C32\u0C47\u0C26\u0C41.",unknownColumn:e=>`"${e}" \u0C05\u0C28\u0C47 \u0C15\u0C3E\u0C32\u0C2E\u0C4D \u0C32\u0C47\u0C26\u0C41.`,badOperator:e=>`"${e}" \u0C05\u0C28\u0C47 \u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D \u0C35\u0C3F\u0C27\u0C3E\u0C28\u0C02 \u0C32\u0C47\u0C26\u0C41.`,badValue:"\u0C08 \u0C15\u0C3E\u0C32\u0C2E\u0C4D\u200C\u0C15\u0C3F \u0C08 \u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D \u0C35\u0C3F\u0C32\u0C41\u0C35 \u0C38\u0C30\u0C3F\u0C2A\u0C4B\u0C26\u0C41.",filtered:e=>`\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D \u0C35\u0C47\u0C36\u0C3E\u0C28\u0C41: ${e} \u0C35\u0C30\u0C41\u0C38\u0C32\u0C41 \u0C38\u0C30\u0C3F\u0C2A\u0C4B\u0C2F\u0C3E\u0C2F\u0C3F.`,filtersCleared:"\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D\u0C32\u0C28\u0C4D\u0C28\u0C40 \u0C24\u0C40\u0C38\u0C47\u0C36\u0C3E\u0C28\u0C41.",sorted:(e,t)=>`${e} \u0C2A\u0C4D\u0C30\u0C15\u0C3E\u0C30\u0C02 \u0C15\u0C4D\u0C30\u0C2E\u0C02 (${t==="asc"?"\u0C06\u0C30\u0C4B\u0C39\u0C23":"\u0C05\u0C35\u0C30\u0C4B\u0C39\u0C23"}).`,sortCleared:"\u0C15\u0C4D\u0C30\u0C2E\u0C02 \u0C24\u0C40\u0C38\u0C47\u0C36\u0C3E\u0C28\u0C41.",internal:"\u0C08 \u0C2A\u0C28\u0C3F \u0C1A\u0C47\u0C38\u0C4D\u0C24\u0C41\u0C02\u0C21\u0C17\u0C3E \u0C38\u0C2E\u0C38\u0C4D\u0C2F \u0C35\u0C1A\u0C4D\u0C1A\u0C3F\u0C02\u0C26\u0C3F."}};function Ue(e){return rc[e.locale??"en"]}function ze(e,t){return{success:!0,message:e,data:t}}function pe(e,t){return{success:!1,message:t,error:{code:e}}}var _a=["contains","equals","startsWith","endsWith","greaterThan","lessThan","between"];function Qe(e,t="id"){let o=e?.[t];return o==null?"":String(o)}function Nt(e){return String(e??"").normalize("NFC").toLowerCase().trim()}function Xa(e){if(typeof e=="number")return Number.isFinite(e)?e:null;let t=String(e??"").trim();if(t==="")return null;let o=Number(t);return Number.isFinite(o)?o:null}function ja(e){if(e instanceof Date)return e.getTime();let t=new Date(String(e??"")).getTime();return Number.isFinite(t)?t:null}function Za(e){return(Array.isArray(e)?e:typeof e=="string"?e.split(","):[]).map(o=>String(o).trim()).filter(Boolean)}function Jn(e,t){let o=Nt(t);return e.columns.find(n=>Nt(n.key)===o||Nt(n.label)===o)}function jo(e,t){return e.data.find(o=>Qe(o,e.rowKey)===t)}function ic(e,t){return e[t]}function sc(e,t,o){let n=ic(e,o.key),A=o.type??"text";if(A==="number"||A==="date"){let s=A==="number"?Xa:ja,a=s(n);if(a===null)return!1;if(t.operator==="between"){let[g,u]=t.value,d=s(g),p=s(u);return d!==null&&p!==null&&a>=Math.min(d,p)&&a<=Math.max(d,p)}let l=s(t.value);if(l===null)return!1;switch(t.operator){case"equals":return a===l;case"greaterThan":return a>l;case"lessThan":return a<l;default:break}}let i=Nt(n),r=Nt(t.value);switch(t.operator){case"equals":return i===r;case"startsWith":return i.startsWith(r);case"endsWith":return i.endsWith(r);case"contains":return i.includes(r);default:return!1}}function ac(e,t){let o=t.type??"text",n=o==="date"?ja:Xa;return e.operator==="between"?o==="text"||!Array.isArray(e.value)||e.value.length!==2?!1:n(e.value[0])!==null&&n(e.value[1])!==null:e.operator==="greaterThan"||e.operator==="lessThan"?o!=="text"&&n(e.value)!==null:!Array.isArray(e.value)&&String(e.value).trim()!==""}function lt(e,t,o){return o.length?el({data:e,columns:t},o):e}function mt(e){return e.map(t=>({key:String(t.key),label:t.label,type:t.type==="number"?"number":t.type==="date"?"date":"text"}))}function el(e,t){return e.data.filter(o=>t.every(n=>{let A=Jn(e,n.key);return A?sc(o,n,A):!0}))}function Kn(e,t){let o=Ue(e),n=Nt(t);if(!n)return pe("INVALID_INPUT",o.emptyQuery);let A=e.data.filter(r=>e.columns.some(s=>Nt(r[s.key]).includes(n))),i=A.map(r=>Qe(r,e.rowKey)).filter(Boolean);return e.onHighlightRows?.(i),ze(o.found(A.length),A)}function qn(e){return ze(Ue(e).count(e.data.length),e.data.length)}function $n(e){return ze(Ue(e).columns,e.columns)}function zn(e,t){let o=Ue(e),n=String(t??"").trim();if(!n)return pe("INVALID_INPUT",o.noIds);let A=jo(e,n);return A?ze(o.rowFound,A):pe("NOT_FOUND",o.notFound(n))}function _t(e,t){let o=Ue(e),n=Za(t);if(n.length===0)return pe("INVALID_INPUT",o.noIds);if(!e.onHighlightRows)return pe("NOT_SUPPORTED",o.notSupported("highlight"));let A=n.filter(i=>jo(e,i)!==void 0);return A.length===0?pe("NOT_FOUND",o.noneFound):(e.onHighlightRows(A),ze(o.highlighted(A.length),A))}function ho(e,t){let o=Ue(e),n=String(t??"").trim();return n?e.onSelectRow?jo(e,n)?(e.onSelectRow(n),ze(o.selected(n),n)):pe("NOT_FOUND",o.notFound(n)):pe("NOT_SUPPORTED",o.notSupported("select")):pe("INVALID_INPUT",o.noIds)}function yo(e,t){let o=Ue(e),n=String(t??"").trim();return n?e.onOpenRow?jo(e,n)?(e.onOpenRow(n),ze(o.opened(n),n)):pe("NOT_FOUND",o.notFound(n)):pe("NOT_SUPPORTED",o.notSupported("open")):pe("INVALID_INPUT",o.noIds)}function On(e,t){let o=Ue(e),n=Jn(e,t?.key??"");if(!n)return pe("INVALID_INPUT",o.unknownColumn(String(t?.key??"")));if(!_a.includes(t.operator))return pe("INVALID_INPUT",o.badOperator(String(t.operator)));let A={...t,key:n.key};if(!ac(A,n))return pe("INVALID_INPUT",o.badValue);if(!e.onFiltersChange)return pe("NOT_SUPPORTED",o.notSupported("filter"));let i=[...(e.filters??[]).filter(s=>s.key!==n.key),A],r=el(e,i).length;return e.onFiltersChange(i),ze(o.filtered(r),{filters:i,count:r})}function Wn(e){let t=Ue(e);return e.onFiltersChange?(e.onFiltersChange([]),ze(t.filtersCleared,[])):pe("NOT_SUPPORTED",t.notSupported("clear filters"))}function Vn(e,t,o="asc"){let n=Ue(e),A=Jn(e,t);if(!A)return pe("INVALID_INPUT",n.unknownColumn(String(t)));if(o!=="asc"&&o!=="desc")return pe("INVALID_INPUT",n.badValue);if(!e.onSortChange)return pe("NOT_SUPPORTED",n.notSupported("sort"));let i={key:A.key,direction:o};return e.onSortChange(i),ze(n.sorted(A.label,o),i)}function _n(e){let t=Ue(e);return e.onSortChange?(e.onSortChange(null),ze(t.sortCleared,null)):pe("NOT_SUPPORTED",t.notSupported("clear sort"))}var lc={search:"Search all columns for text. Matching rows are highlighted.",count:"Count the rows currently in the grid.",columns:"List the grid's columns with their keys, labels and types.",get_row:"Get one row by its ID.",highlight:"Highlight one or more rows by ID without filtering the grid.",select:"Select one row by ID.",open:"Open one row by ID to show its full details.",filter:"Filter the grid by one column. Replaces any existing filter on that column.",clear_filters:"Remove all filters.",sort:"Sort the grid by one column, ascending or descending.",clear_sort:"Remove sorting."},Va={en:{search:"Search",count:"Count",columns:"Columns",get_row:"Get row",highlight:"Highlight",select:"Select",open:"Open",filter:"Filter",clear_filters:"Clear filters",sort:"Sort",clear_sort:"Clear sort"},te:{search:"\u0C35\u0C46\u0C24\u0C41\u0C15\u0C41",count:"\u0C32\u0C46\u0C15\u0C4D\u0C15",columns:"\u0C15\u0C3E\u0C32\u0C2E\u0C4D\u200C\u0C32\u0C41",get_row:"\u0C35\u0C30\u0C41\u0C38 \u0C1A\u0C42\u0C2A\u0C41",highlight:"\u0C39\u0C48\u0C32\u0C48\u0C1F\u0C4D",select:"\u0C0E\u0C02\u0C1A\u0C41\u0C15\u0C4B",open:"\u0C24\u0C46\u0C30\u0C41\u0C35\u0C41",filter:"\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D",clear_filters:"\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D\u0C32\u0C41 \u0C24\u0C40\u0C38\u0C47\u0C2F\u0C3F",sort:"\u0C15\u0C4D\u0C30\u0C2E\u0C02",clear_sort:"\u0C15\u0C4D\u0C30\u0C2E\u0C02 \u0C24\u0C40\u0C38\u0C47\u0C2F\u0C3F"}};async function gc(e,t){try{return t()}catch{return pe("INTERNAL",Ue(e).internal)}}function Xt(e,t={}){let o=t.name??"yuktai_grid",n=Va[e.locale??"en"],A=a=>t.descriptions?.[a]??lc[a],i={id:{type:"string",description:"Row ID"}},r=e.columns.map(a=>a.key);return[{id:"search",available:!0,schema:{type:"object",properties:{query:{type:"string"}},required:["query"]},run:a=>Kn(e,String(a.query??""))},{id:"count",available:!0,schema:{type:"object",properties:{}},run:()=>qn(e)},{id:"columns",available:!0,schema:{type:"object",properties:{}},run:()=>$n(e)},{id:"get_row",available:!0,schema:{type:"object",properties:i,required:["id"]},run:a=>zn(e,String(a.id??""))},{id:"highlight",available:!!e.onHighlightRows,schema:{type:"object",properties:{ids:{type:"array",items:{type:"string"},description:"Row IDs"}},required:["ids"]},run:a=>_t(e,Za(a.ids))},{id:"select",available:!!e.onSelectRow,schema:{type:"object",properties:i,required:["id"]},run:a=>ho(e,String(a.id??""))},{id:"open",available:!!e.onOpenRow,schema:{type:"object",properties:i,required:["id"]},run:a=>yo(e,String(a.id??""))},{id:"filter",available:!!e.onFiltersChange,schema:{type:"object",properties:{key:{type:"string",enum:r},operator:{type:"string",enum:_a},value:{description:"Text or number; for 'between' an array of two numbers or dates"}},required:["key","operator","value"]},run:a=>On(e,{key:String(a.key??""),operator:String(a.operator??""),value:a.value})},{id:"clear_filters",available:!!e.onFiltersChange,schema:{type:"object",properties:{}},run:()=>Wn(e)},{id:"sort",available:!!e.onSortChange,schema:{type:"object",properties:{key:{type:"string",enum:r},direction:{type:"string",enum:["asc","desc"]}},required:["key"]},run:a=>Vn(e,String(a.key??""),a.direction==="desc"?"desc":"asc")},{id:"clear_sort",available:!!e.onSortChange,schema:{type:"object",properties:{}},run:()=>_n(e)}].filter(a=>a.available).map(a=>({name:`${o}_${a.id}`,title:Va.en[a.id],description:A(a.id),label:n[a.id],inputSchema:a.schema,execute:l=>gc(e,()=>a.run(l??{}))}))}x();x();var cc="button[disabled],input[disabled],select[disabled],textarea[disabled],fieldset[disabled],[aria-disabled='true']",bo={"html-lang":{title:"Page language is set",wcag:"3.1.1",severity:"serious",why:"Screen readers pick their voice and pronunciation from the page language. Without it, Telugu or Hindi text may be read with English rules."},"page-title":{title:"Page has a title",wcag:"2.4.2",severity:"serious",why:"The title is the first thing announced and the name shown on browser tabs and bookmarks."},"image-alt":{title:"Images have alternative text",wcag:"1.1.1",severity:"critical",why:'People who cannot see the image get no information from it unless alt text describes it (or alt="" marks it as decorative).'},"heading-order":{title:"Headings follow a logical order",wcag:"1.3.1",severity:"moderate",why:"Many screen-reader users jump between headings. Skipped levels make the page outline confusing."},"single-h1":{title:"Page has one main heading",wcag:"best practice",severity:"minor",why:"A single h1 tells everyone what the page is about."},"landmark-main":{title:"Main content landmark exists",wcag:"1.3.1 / 2.4.1",severity:"moderate",why:"A <main> region lets keyboard and screen-reader users skip straight past menus to the content."},"form-label":{title:"Form fields have labels",wcag:"1.3.1 / 4.1.2",severity:"critical",why:'Without a label, a screen reader just says "edit text" and the user has to guess what to type.'},"button-name":{title:"Buttons have names",wcag:"4.1.2",severity:"critical",why:'An icon-only button with no name is announced as just "button", so its purpose is unknown.'},"link-name":{title:"Links have names",wcag:"2.4.4",severity:"serious",why:"Links are often read out of context in a list. An empty link gives no clue where it goes."},"color-contrast":{title:"Text has enough contrast",wcag:"1.4.3",severity:"serious",why:"Low-contrast text is hard to read for older users, people with low vision, and anyone outdoors on a phone."},"positive-tabindex":{title:"No positive tabindex",wcag:"2.4.3",severity:"moderate",why:"tabindex greater than 0 forces a custom keyboard order that usually doesn't match the visual order."},"keyboard-access":{title:"Clickable things work with a keyboard",wcag:"2.1.1",severity:"critical",why:"A div or span with a click handler can't be reached or activated with Tab and Enter, locking out keyboard users."},"duplicate-id":{title:"IDs are unique",wcag:"best practice",severity:"minor",why:"Labels and ARIA references point at ids. Duplicates make them point at the wrong element."},"form-error":{title:"Errors are linked to their fields",wcag:"3.3.1",severity:"serious",why:"When a field is marked invalid, the error message must be connected to it so it's announced together with the field."},"target-size":{title:"Touch targets are large enough",wcag:"2.5.8",severity:"moderate",why:"Small targets are hard to tap for people with tremors, seniors and everyone on mobile."}},dc={critical:10,serious:5,moderate:2,minor:1};function gt(e={}){let t=Le(e.root),o=new Set(e.skip??[]),n=[],A={},i=t?Gt(t)?t:t.ownerDocument:null,r=(s,a,l,g,u=!1)=>{if(o.has(s))return;let d=bo[s],p=A[s]=(A[s]??0)+1;n.push({id:`${s}-${p}`,rule:s,severity:d.severity,wcag:d.wcag,message:l,why:d.why,fix:g,selector:a?je(a):"document",snippet:a?Be(a.outerHTML,120):"",autoFixable:u,element:a??void 0})};if(t&&i){i.documentElement.getAttribute("lang")||r("html-lang",i.documentElement,"The <html> element has no lang attribute.",'Add lang to <html>, e.g. <html lang="te"> or "en".',!0),i.title.trim()||r("page-title",null,"The page has no <title>.","Add a short, descriptive <title> that names this page.");for(let c of ee(t,"img"))if(!(c.getAttribute("role")==="presentation"||c.getAttribute("role")==="none")&&!c.hasAttribute("alt")&&!c.getAttribute("aria-label")&&!c.getAttribute("aria-labelledby")){let I=c.getAttribute("title");r("image-alt",c,`Image has no alt text${c.getAttribute("src")?` (${Be(c.getAttribute("src")??"",40)})`:""}.`,I?`Use the title as alt: alt="${Be(I,40)}".`:'Describe the image in alt, or use alt="" if it is purely decorative.',!!I)}let s=ee(t,"h1,h2,h3,h4,h5,h6"),a=0;for(let c of s){let I=Number(c.tagName[1]);a>0&&I>a+1&&r("heading-order",c,`Heading jumps from h${a} to h${I}: "${Be(c.textContent??"",40)}".`,`Change it to h${a+1}, or add the missing level above it.`),a=I}let l=s.filter(c=>c.tagName==="H1");l.length===0?r("single-h1",null,"The page has no h1.","Add one h1 that names the page."):l.length>1&&r("single-h1",l[1],`The page has ${l.length} h1 headings.`,"Keep one h1; turn the others into h2."),t.querySelectorAll("main,[role='main']").length===0&&r("landmark-main",null,"No <main> landmark found.","Wrap the primary content in <main>.");let g=ee(t,"input,select,textarea").filter(c=>{let I=(c.getAttribute("type")??"text").toLowerCase();return!["hidden","submit","button","reset","image"].includes(I)});for(let c of g){if(!Ye(c)){let I=c.getAttribute("placeholder")||c.getAttribute("name");r("form-label",c,`Form field has no label${I?` (placeholder/name: "${Be(I,30)}")`:""}.`,I?`Add a visible <label>. Quick fix: aria-label="${Be(I,30)}".`:"Add a visible <label for=\u2026> describing what to enter.",!!I)}c.getAttribute("aria-invalid")==="true"&&(c.getAttribute("aria-describedby")||c.getAttribute("aria-errormessage")||r("form-error",c,"Field is marked invalid but no error message is linked to it.","Put the error text in an element with an id and point aria-describedby at it."))}for(let c of ee(t,"button,[role='button'],input[type='submit'],input[type='button']"))if(!Ye(c)){let I=c.getAttribute("title");r("button-name",c,"Button has no accessible name.",I?`Use the title as the name: aria-label="${I}".`:"Add visible text or an aria-label that says what the button does.",!!I)}for(let c of ee(t,"a[href]"))if(!Ye(c)){let I=c.getAttribute("title");r("link-name",c,`Link has no text (${Be(c.getAttribute("href")??"",40)}).`,I?`Use the title as the name: aria-label="${I}".`:"Add link text that says where it goes.",!!I)}for(let c of ee(t,"[tabindex]"))Number(c.getAttribute("tabindex"))>0&&r("positive-tabindex",c,`tabindex="${c.getAttribute("tabindex")}" overrides the natural tab order.`,'Use tabindex="0" and fix the order in the HTML instead.',!0);let u="a[href],button,input,select,textarea,summary";for(let c of ee(t,"[onclick],[role='button'],[role='link']"))c.matches(u)||c.hasAttribute("tabindex")||r("keyboard-access",c,`<${c.tagName.toLowerCase()}> is clickable but can't be reached with the keyboard.`,'Use a real <button>, or add tabindex="0", a role and Enter/Space key handling.',!0);let d=new Map;for(let c of Array.from(t.querySelectorAll("[id]")))c.closest(co)||d.set(c.id,(d.get(c.id)??0)+1);for(let[c,I]of d)I>1&&r("duplicate-id",t.querySelector(`[id="${c.replace(/"/g,'\\"')}"]`),`id="${c}" is used ${I} times.`,"Give each element a unique id.");let p=e.maxContrastChecks??600,B=0;for(let c of ee(t,"body *")){if(B>=p)break;if(!uo(c)||["SCRIPT","STYLE","NOSCRIPT","OPTION"].includes(c.tagName)||c.closest(cc))continue;B++;let I=pt(window.getComputedStyle(c).color),Q=La(c);if(!I||!Q)continue;let k=$t(I,Q),N=Pa(c)?3:4.5;k<N&&r("color-contrast",c,`Contrast ${k}:1 is below ${N}:1 for "${Be(c.textContent??"",30)}".`,`Darken the text or lighten the background until the ratio is at least ${N}:1.`)}let y=e.minTargetSize??24,m=ee(t,Oo).map(c=>({el:c,rect:c.getBoundingClientRect()})).filter(c=>c.rect.width>0||c.rect.height>0),w=c=>c.width<y||c.height<y,b=c=>[c.left+c.width/2,c.top+c.height/2],C=(c,I,Q)=>Math.hypot(Math.max(Q.left-c,0,c-Q.right),Math.max(Q.top-I,0,I-Q.bottom));for(let c of m){if(!w(c.rect)||c.el.tagName==="A"&&c.el.closest("p,li,td"))continue;let[I,Q]=b(c.rect);m.some(N=>{if(N===c||N.el.contains(c.el)||c.el.contains(N.el))return!1;if(C(I,Q,N.rect)<y/2)return!0;if(!w(N.rect))return!1;let[H,V]=b(N.rect);return Math.hypot(I-H,Q-V)<y})&&r("target-size",c.el,`Target is ${Math.round(c.rect.width)}\xD7${Math.round(c.rect.height)}px and too close to another target (needs ${y}\xD7${y}, or ${y}px of space around it).`,`Increase padding so it's at least ${y}\xD7${y}px (44\xD744 is better for seniors), or add space between targets.`)}}return uc(n,i,o)}function uc(e,t,o){let n=Object.keys(bo).filter(a=>!o.has(a)).map(a=>{let l=e.filter(g=>g.rule===a).length;return{rule:a,title:bo[a].title,passed:l===0,issueCount:l}}),A=0;for(let a of n){let l=dc[bo[a.rule].severity];A+=Math.min(25,a.issueCount*l)}let i=Math.max(0,100-A),r=n.filter(a=>!a.passed),s=e.filter(a=>a.severity==="critical").length;return{url:t?.location?.href??"",title:t?.title??"",generatedAt:new Date().toISOString(),score:i,passed:s===0&&i>=80,checks:n,issues:e,summary:e.length===0?`All ${n.length} checks passed.`:`${n.length-r.length} of ${n.length} checks passed. ${e.length} issue(s) found, ${s} critical. Score ${i}/100.`}}function Xn(e){let t=["# Accessibility QA report","",`- Page: ${e.title||"(untitled)"} ${e.url}`,`- Generated: ${e.generatedAt}`,`- Score: **${e.score}/100** \u2014 ${e.passed?"PASS":"FAIL"}`,"",e.summary,"","## Checks","","| Check | Result | Issues |","|---|---|---|",...e.checks.map(o=>`| ${o.title} | ${o.passed?"\u2705 Pass":"\u274C Fail"} | ${o.issueCount} |`)];if(e.issues.length){t.push("","## Issues","");for(let o of e.issues)t.push(`### ${o.id} \xB7 ${o.severity} \xB7 WCAG ${o.wcag}`,"",`- **Problem:** ${o.message}`,`- **Why it matters:** ${o.why}`,`- **Fix:** ${o.fix}`,`- **Where:** \`${o.selector}\``,"")}return t.join(`
1529
1529
  `)}function jn(e){return JSON.stringify({...e,issues:e.issues.map(({element:t,...o})=>o)},null,2)}function Zn(e={}){let t=null,o=null,n=null,A=!1,i=[],r=()=>({report:t,watching:o!==null,appliedFixes:i.length}),s=()=>e.onUpdate?.(r()),a=d=>t?.issues.find(p=>p.id===d),l=(d,p,B)=>{i.push({element:d,attribute:p,previous:d.getAttribute(p)}),d.setAttribute(p,B)};function g(d){let p=d.element,B=(y,m)=>({issueId:d.id,applied:y,message:m});if(!d.autoFixable||!p)return B(!1,"This needs a human decision \u2014 see the suggested fix.");switch(d.rule){case"html-lang":{let y=e.defaultLang||($e()?navigator.language:"")||"en";return l(p,"lang",y),B(!0,`Set lang="${y}" on <html>.`)}case"image-alt":{let y=p.getAttribute("title");if(!y)break;return l(p,"alt",y),B(!0,`Used the image title as alt text: "${y}".`)}case"form-label":{let y=p.getAttribute("placeholder")||p.getAttribute("name");if(!y)break;let m=y.replace(/[_-]+/g," ").trim();return l(p,"aria-label",m),B(!0,`Added aria-label="${m}". A visible <label> is still better.`)}case"button-name":case"link-name":{let y=p.getAttribute("title");if(!y)break;return l(p,"aria-label",y),B(!0,`Added aria-label="${y}".`)}case"positive-tabindex":return l(p,"tabindex","0"),B(!0,"Changed tabindex to 0 so the natural order applies.");case"keyboard-access":{l(p,"tabindex","0"),p.getAttribute("role")||l(p,"role","button");let y=m=>{let w=m.key;(w==="Enter"||w===" ")&&(m.preventDefault(),p.click())};return p.addEventListener("keydown",y),i.push({element:p,attribute:"",previous:null,listener:y}),B(!0,"Made it focusable and added Enter/Space support.")}default:break}return B(!1,"No safe automatic fix for this one \u2014 see the suggested fix.")}function u(){if(t=gt(e),e.autoApply){A=!0;let d=t.issues.filter(p=>p.autoFixable).map(g);A=!1,d.some(p=>p.applied)&&(t=gt(e))}return s(),t}return{start(){if(!$e()||o)return;let d=Le(e.root),p=Gt(d)?d.body:d;p&&(o=new MutationObserver(B=>{A||!B.some(m=>!m.target.closest?.(co))||(n&&clearTimeout(n),n=setTimeout(u,e.debounceMs??600))}),o.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["alt","aria-label","aria-invalid","tabindex","lang","title"]}),u())},stop(){o?.disconnect(),o=null,n&&clearTimeout(n),n=null,s()},scan:u,explain(d){let p=a(d);return p?[`${p.message}`,`Why it matters: ${p.why}`,`How to fix: ${p.fix}`,`Standard: WCAG ${p.wcag} (${p.severity}).`,p.autoFixable?"I can apply a safe fix for this in the browser.":"This one needs a change in your code."].join(`
1530
- `):`No issue "${d}" in the current report. Run a scan first.`},applyFix(d){let p=a(d);if(!p)return{issueId:d,applied:!1,message:"Issue not found. Run a scan first."};A=!0;let B=g(p);return A=!1,B.applied&&u(),B},applyAllFixes(){t||u(),A=!0;let d=(t?.issues??[]).filter(p=>p.autoFixable).map(g);return A=!1,u(),d},undoAll(){let d=i.length;for(A=!0;i.length;){let p=i.pop();p.listener?p.element.removeEventListener("keydown",p.listener):p.previous===null?p.element.removeAttribute(p.attribute):p.element.setAttribute(p.attribute,p.previous)}return A=!1,u(),d},getState:r}}x();var tl={high:12,medium:6,low:2};function eA(e={}){let t=Le(e.root),o=[],n=(s,a,l,g,u)=>o.push({category:s,severity:a,message:l,suggestion:g,selector:u?je(u):void 0});if(t&&$e()){let s=e.minFontSize??14,a=e.maxLineLength??90,l=T=>window.getComputedStyle(T),g=ee(t,"h1");g.length===0&&n("hierarchy","medium","There is no h1, so the page has no clear main title.","Add one prominent h1 near the top."),g.length>1&&n("hierarchy","low",`${g.length} h1 headings compete for attention.`,"Keep one h1 and demote the rest.",g[1]);let u=T=>{let G=ee(t,T)[0];return G&&parseFloat(l(G).fontSize)||0},[d,p,B]=[u("h1"),u("h2"),u("h3")];d&&p&&p>=d&&n("hierarchy","medium",`h2 (${p}px) is as large as or larger than h1 (${d}px).`,"Make each heading level visibly smaller than the one above it."),p&&B&&B>p&&n("hierarchy","low",`h3 (${B}px) is larger than h2 (${p}px).`,"Keep heading sizes in descending order.");let y=gt({root:e.root,skip:["color-contrast","target-size","duplicate-id","page-title","html-lang","form-error","positive-tabindex"]});for(let T of y.issues.filter(G=>G.rule==="heading-order").slice(0,3))n("hierarchy","low",T.message,T.fix,T.element);let m=0,w;for(let T of ee(t,"p,li,td,span,a,label,small,div").slice(0,1500)){if(!uo(T))continue;(parseFloat(l(T).fontSize)||16)<s&&(m++,w??=T)}m&&n("readability",m>10?"high":"medium",`${m} text element(s) are smaller than ${s}px, e.g. "${Be(w?.textContent??"",30)}".`,`Use at least ${s}px for body text (16px for senior-friendly pages).`,w);for(let T of ee(t,"p").slice(0,200)){let G=l(T),S=parseFloat(G.fontSize)||16,oe=T.getBoundingClientRect().width,se=oe/(S*.5);if(oe>0&&se>a&&(T.textContent??"").length>a){n("readability","low",`A paragraph is about ${Math.round(se)} characters wide.`,`Limit text width to ~${a} characters (e.g. max-width: 70ch).`,T);break}let W=parseFloat(G.lineHeight);if(Number.isFinite(W)&&W/S<1.3){n("readability","low",`Line height is ${(W/S).toFixed(2)}\xD7 the font size.`,"Use line-height of at least 1.5 for body text (WCAG 1.4.12).",T);break}}let b=gt({root:e.root,skip:["html-lang","page-title","image-alt","heading-order","single-h1","landmark-main","form-label","button-name","link-name","positive-tabindex","keyboard-access","duplicate-id","form-error","target-size"]});b.issues.length&&n("readability",b.issues.length>5?"high":"medium",`${b.issues.length} text element(s) have weak contrast. ${b.issues[0].message}`,"Raise contrast to at least 4.5:1 for body text.",b.issues[0].element);let C=uc();C.length&&n("interaction","high",`Focus outlines are removed by CSS (${C.slice(0,2).join(", ")}) with no replacement.`,"Never remove outlines without a visible :focus-visible style (WCAG 2.4.7).");let c=ee(t,Oo).filter(T=>{let G=T.getBoundingClientRect();return G.width>0&&G.height>0&&(G.width<24||G.height<24)&&!(T.tagName==="A"&&T.closest("p,li"))});c.length&&n("interaction",c.length>5?"high":"medium",`${c.length} control(s) are smaller than 24\xD724px.`,"Give controls at least 24\xD724px, ideally 44\xD744px for touch and seniors.",c[0]);let I=window.innerHeight||800,Q=ee(t,Ya).filter(T=>{let G=T.getBoundingClientRect();return G.height>0&&G.top<I});Q.length>40&&n("clutter","medium",`${Q.length} interactive elements in the first screen.`,"Group secondary actions into menus and keep the first screen focused on one task.");let k=ee(t,"button,a[href],[role='button']").filter(T=>{let G=T.getBoundingClientRect();if(G.height===0||G.top>I)return!1;let S=l(T).backgroundColor;return!!S&&!/rgba\(0, 0, 0, 0\)|transparent/.test(S)&&!/rgb\(255, 255, 255\)/.test(S)});k.length>4&&n("clutter","medium",`${k.length} filled buttons compete in the first screen.`,"Keep one primary action per view; make the rest secondary (outline or text).",k[0]);let N=new Set,H=new Set;for(let T of ee(t,"body *").slice(0,2e3)){if(!uo(T))continue;let G=l(T);N.add(G.fontFamily.split(",")[0].replace(/["']/g,"").trim().toLowerCase()),H.add(Math.round(parseFloat(G.fontSize)||0))}N.size>4&&n("consistency","low",`${N.size} different font families are used.`,"Stick to 1\u20132 font families (e.g. one Telugu + one Latin)."),H.size>10&&n("consistency","low",`${H.size} different font sizes are used.`,"Use a small type scale (5\u20137 sizes) for a calmer page.");let V=ee(t,"img:not([width]):not([height])").filter(T=>!l(T).aspectRatio||l(T).aspectRatio==="auto");V.length>3&&n("consistency","low",`${V.length} images have no width/height, so the layout jumps while loading.`,"Set width and height (or aspect-ratio) on images.",V[0])}let A=["hierarchy","readability","interaction","clutter","consistency"].reduce((s,a)=>{let l=o.filter(g=>g.category===a);return s[a]={score:Math.max(0,100-l.reduce((g,u)=>g+tl[u.severity]*2,0)),findings:l.length},s},{}),i=Math.max(0,100-o.reduce((s,a)=>s+tl[a.severity],0)),r=Object.entries(A).sort((s,a)=>s[1].score-a[1].score)[0];return{score:i,categories:A,findings:o,summary:o.length?`Design score ${i}/100 with ${o.length} finding(s). Weakest area: ${r[0]}.`:"No design issues found by the automatic review."}}function uc(){let e=[],t=!1,o=n=>{for(let A of Array.from(n)){let i=A.cssRules;i&&o(i);let r=A;if(!r.selectorText||!/:focus/.test(r.selectorText))continue;let s=`${r.style.outline} ${r.style.outlineStyle} ${r.style.outlineWidth}`,a=/\bnone\b|\b0(px)?\b/.test(s),l=!!(r.style.boxShadow&&r.style.boxShadow!=="none")||!!r.style.borderColor||!!r.style.backgroundColor||!!r.style.textDecoration;/:focus-visible/.test(r.selectorText)&&(!a||l)&&(t=!0),a&&!l&&e.push(r.selectorText)}};for(let n of Array.from(document.styleSheets))try{o(n.cssRules)}catch{}return t?[]:e}x();var Ic=/^(field|input|value|text|enter|details?|info|data|\*|:)$/i,pc=/^(go|ok|submit|send|click here|>|→|next)$/i,mc=[[/e-?mail/i,"email","email"],[/phone|mobile|tel/i,"tel","tel"],[/^(full)?name$|full.?name/i,"name"],[/first.?name|given/i,"given-name"],[/last.?name|surname|family/i,"family-name"],[/address|street/i,"street-address"],[/zip|postal|pin.?code|pincode/i,"postal-code"],[/city|town/i,"address-level2"],[/country/i,"country-name"],[/password/i,"current-password","password"],[/dob|birth/i,"bday"]];function Cc(e){let t=e.getAttribute("id");return t&&e.ownerDocument.querySelector(`label[for="${t.replace(/"/g,'\\"')}"]`)?!0:!!e.closest("label")}function ol(e){return ee(e,"input,select,textarea").filter(t=>!["hidden","submit","button","reset","image"].includes((t.getAttribute("type")??"text").toLowerCase())).map(t=>({label:Ye(t),type:t.tagName==="INPUT"?(t.getAttribute("type")??"text").toLowerCase():t.tagName.toLowerCase(),name:t.getAttribute("name")??t.getAttribute("id")??"",required:t.hasAttribute("required")||t.getAttribute("aria-required")==="true",hasVisibleLabel:Cc(t),selector:je(t),element:t}))}function nl(e,t={}){let o=t.seniorFriendly!==!1,n=t.maxFieldsPerStep??8,A=ol(e),i=[],r=(d,p,B,y)=>i.push({level:d,message:p,suggestion:B,field:y?.label||y?.name,selector:y?.selector});for(let d of A){let p=d.element,B=d.label||d.name||d.type,y=p.getAttribute("placeholder");!d.label&&y?r("problem",`"${y}" uses only a placeholder as its label.`,"Placeholders disappear when typing starts and aren't read by every screen reader. Add a visible label above the field.",d):d.label?!d.hasVisibleLabel&&y&&!p.getAttribute("aria-label")?r("problem",`"${B}" uses only a placeholder as its label.`,"Placeholders disappear when typing starts. Add a visible label above the field.",d):Ic.test(d.label)&&r("improvement",`The label "${d.label}" is unclear.`,'Say exactly what is needed, e.g. "Mobile number (10 digits)".',d):r("problem",`A ${d.type} field${d.name?` ("${d.name}")`:""} has no label.`,"Add a visible <label> that says exactly what to enter.",d),d.required&&d.label&&!/\*|required|mandatory|తప్పనిసరి|आवश्यक/i.test(d.label)&&r("improvement",`"${B}" is required but the label doesn't say so.`,'Add "(required)" to the label so everyone knows before submitting.',d);let m=`${d.name} ${d.label}`;for(let[w,b,C]of mc)if(w.test(m)){p.getAttribute("autocomplete")||r("improvement",`"${B}" has no autocomplete hint.`,`Add autocomplete="${b}" so browsers can fill it in (WCAG 1.3.5).`,d),C&&d.type==="text"&&r("improvement",`"${B}" uses type="text".`,`Use type="${C}" for the right mobile keyboard and validation.`,d);break}if(p.getAttribute("aria-invalid")==="true"&&!p.getAttribute("aria-describedby")&&!p.getAttribute("aria-errormessage")&&r("problem",`"${B}" shows an error that isn't connected to the field.`,"Link the error text with aria-describedby and explain how to fix it.",d),o){let w=parseFloat(window.getComputedStyle(p).fontSize)||16;w<16&&r("improvement",`"${B}" text is ${w}px.`,"Use at least 16px in inputs; it is easier to read and stops mobile browsers from zooming.",d)}}A.length>n&&r("improvement",`This form has ${A.length} fields on one screen.`,`Split it into steps of about ${n} fields with a progress indicator.`);let s=ee(e,"button,input[type='submit'],input[type='button']");if(s.length===0)r("problem","No submit button found.",'Add a clear <button type="submit"> so the form can be completed with the keyboard.');else if(o){let d=Ce(Ye(s[s.length-1]));pc.test(d)&&r("improvement",`The button says "${d}".`,'Name the result, e.g. "Send message" or "Book appointment".')}!ee(e,"[role='alert'],[aria-live]",{includeHidden:!0}).length&&A.some(d=>d.required)&&r("improvement","No live region for error messages.",'Add an element with role="alert" so errors are announced when the form is submitted.');let a=i.filter(d=>d.level==="problem").length,l=i.length-a,g=Math.max(0,100-a*15-l*4),u=e.getAttribute("aria-label")||Ce(e.querySelector("legend,h1,h2,h3")?.textContent)||e.getAttribute("name")||e.getAttribute("id")||"Form";return{name:Be(u,50),selector:je(e),fields:A,findings:i,score:g,summary:i.length===0?`"${Be(u,40)}" looks clear: ${A.length} labelled field(s), nothing to fix.`:`"${Be(u,40)}" has ${A.length} field(s): ${a} problem(s) and ${l} suggestion(s). Score ${g}/100.`}}function Bo(e={}){let t=Le(e.root);return t?ee(t,"form,[role='form']").map(o=>nl(o,e)):[]}x();var Ze=e=>String(e??"").normalize("NFC").toLowerCase().replace(/\s+/g," ").trim(),fc=new Set("show me find list get give which who what all the a an rows row records record entries with where that are is have has having and or of for in on to please display only those whose any".split(" "));function en(e){let t=Ze(e).replace(/(₹|rs\.?|inr|\$|usd|€|£)/g," ").match(/(-?\d[\d,]*(?:\.\d+)?|-?\.\d+)\s*(k|thousand|lakhs?|lacs?|crores?|cr|mn|million|m|bn|billion)?(?![\p{L}])/u);if(!t)return null;let o=Number(t[1].replace(/,/g,""));if(!Number.isFinite(o))return null;let n=t[2]??"",A=/^k|thousand/.test(n)?1e3:/^la/.test(n)?1e5:/^(crore|cr)/.test(n)?1e7:/^(m|mn|million)$/.test(n)?1e6:/^(bn|billion)$/.test(n)?1e9:1;return o*A}function il(e){let t=new Set([Ze(e.label),Ze(e.key),Ze(e.key.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2"))]);for(let o of Array.from(t))o.endsWith("s")?t.add(o.slice(0,-1)):t.add(`${o}s`);return Array.from(t).filter(o=>o.length>1)}function He(e,t,o){let n=` ${Ze(e)} `,A;for(let i of t)if(!(o&&(i.type??"text")!==o))for(let r of il(i)){let s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");new RegExp(`(^|[^\\p{L}\\p{M}\\p{N}])${s}($|[^\\p{L}\\p{M}\\p{N}])`,"u").test(n)&&(!A||r.length>A.length)&&(A={column:i,length:r.length})}return A?.column}var hc=/amount|balance|total|price|salary|value|due|revenue|cost|fee|sales|outstanding|paid/i;function tA(e){let t=e.filter(o=>o.type==="number");return t.find(o=>hc.test(`${o.key} ${o.label}`))??t[0]}var Zo=/(>=|=>|>|\bover\b|\babove\b|\bmore than\b|\bgreater than\b|\bexceeds?\b|\bexceeding\b|\bhigher than\b|\bat least\b|\bminimum\b|\bmin\b|కంటే ఎక్కువ)/,oA=/(<=|=<|<|\bunder\b|\bbelow\b|\bless than\b|\blower than\b|\bat most\b|\bmaximum\b|\bmax\b|\bup to\b|కంటే తక్కువ)/,Al=/\b(after|since|from)\b/,yc=/\b(before|until|till)\b/,bc="(?:\\s*(?:k|thousand|lakhs?|lacs?|crores?|cr|mn|million|m|bn|billion))?",nA=`(?:\u20B9|rs\\.?\\s*|\\$)?\\s*-?\\d[\\d,]*(?:\\.\\d+)?${bc}`;function Rt(e,t,o={}){let n={filters:[],search:[],sort:null,limit:null,notes:[],explanation:""},A=Ze(e).replace(/[?!]+/g," ").replace(/\.(?!\d)/g," ").trim(),i=[],r=A.match(/\b(top|first|bottom|last|lowest|highest)\s+(\d+)\b/);r&&(n.limit=Number(r[2]),A=A.replace(r[0],` ${r[1]} `));let s=A.match(/\b(?:sort(?:ed)?|order(?:ed)?)\s+by\s+([\p{L}\p{M}\p{N} _]+?)(?:\s+(asc|ascending|desc|descending))?(?=$|,|\band\b|\bthen\b)/u),a=A.match(/\b(top|highest|largest|biggest|most|bottom|lowest|smallest|least)\b(?:\s+\d+)?\s+(?:by\s+)?([\p{L}\p{M}\p{N} _]+)/u);if(s){let B=He(s[1],t);B&&(n.sort={key:B.key,direction:/^desc/.test(s[2]??"")?"desc":"asc"},A=A.replace(s[0]," "))}else if(a){let B=He(a[2],t,"number")??He(a[2],t)??tA(t);if(B){let y=/top|highest|largest|biggest|most/.test(a[1]);n.sort={key:B.key,direction:y?"desc":"asc"},A=A.replace(new RegExp(`\\b${a[1]}\\b`)," "),!r&&/top|bottom/.test(a[1])&&(n.limit=10)}}let l=new RegExp(`\\bbetween\\s+(${nA}|\\d{4}-\\d{2}-\\d{2})\\s+(?:and|to|-)\\s+(${nA}|\\d{4}-\\d{2}-\\d{2})`,"u"),g;for(;g=A.match(l);){let B=A.slice(Math.max(0,(g.index??0)-40),g.index??0),y=/\d{4}-\d{2}-\d{2}/.test(g[1]),m=y?He(B,t,"date")??t.find(C=>C.type==="date"):He(B,t,"number")??tA(t),w=y?g[1]:en(g[1]),b=y?g[2]:en(g[2]);m&&w!==null&&b!==null&&(n.filters.push({key:m.key,operator:"between",value:[w,b]}),i.push(`${m.label} between ${g[1]} and ${g[2]}`)),A=A.replace(g[0]," ")}let u=A.split(/\s*(?:(?<!\d),|,(?!\d)|;|\band\b|(?<!(?:starts?|starting|ends?|ending|begins?|beginning)\s)\bwith\b|\bwhere\b|\bwho\b|\bthat\b|&|మరియు)\s*/u).map(B=>B.trim()).filter(Boolean),d=t.filter(B=>(B.type??"text")==="text"),p=new Map;for(let B of d){let y=new Set;for(let m of(o.data??[]).slice(0,5e3)){let w=Ze(m[B.key]);if(w&&w.length<=40&&y.add(w),y.size>300)break}y.size&&y.size<=300&&p.set(B.key,y)}for(let B of u){let y=n.filters.length,m=He(B,t),w=B.match(new RegExp(nA,"u")),b=B.match(/\d{4}-\d{2}-\d{2}/);if(b&&(Al.test(B)||yc.test(B)||Zo.test(B)||oA.test(B))){let C=(m?.type==="date"?m:void 0)??t.find(c=>c.type==="date");if(C){let c=Al.test(B)||Zo.test(B);n.filters.push({key:C.key,operator:c?"greaterThan":"lessThan",value:b[0]}),i.push(`${C.label} ${c?"after":"before"} ${b[0]}`)}}else if(w&&(Zo.test(B)||oA.test(B)||m?.type==="number"&&/\b(is|equals?)\b|=/.test(B))){let C=m?.type==="number"?m:void 0;C||(C=tA(t),C&&n.notes.push(`Assumed "${B}" refers to ${C.label}.`));let c=en(w[0]);if(C&&c!==null){let I=/at least|minimum|\bmin\b|>=|=>|at most|maximum|\bmax\b|up to|<=|=</.test(B);Zo.test(B)?(n.filters.push({key:C.key,operator:"greaterThan",value:I?c-1e-9:c}),i.push(`${C.label} ${I?"\u2265":">"} ${c.toLocaleString("en-IN")}`)):oA.test(B)?(n.filters.push({key:C.key,operator:"lessThan",value:I?c+1e-9:c}),i.push(`${C.label} ${I?"\u2264":"<"} ${c.toLocaleString("en-IN")}`)):(n.filters.push({key:C.key,operator:"equals",value:c}),i.push(`${C.label} = ${c.toLocaleString("en-IN")}`))}}else{let C=B.match(/\b(?:starts?|starting|begins?|beginning)\s+with\s+(.+)$/),c=B.match(/\b(?:ends?|ending)\s+with\s+(.+)$/),I=B.match(/\b(?:contains?|containing|including|includes?|mentions?)\s+(.+)$/),Q=B.match(/\b(?:is|equals?|=|:)\s+(.+)$/),k=C??c??I??Q;if(k){let N=m??d[0],H=k[1].replace(/^["'“‘]|["'”’]$/g,"").trim();if(N&&H){let V=C?"startsWith":c?"endsWith":I?"contains":"equals";n.filters.push({key:N.key,operator:V,value:H}),i.push(`${N.label} ${V==="equals"?"is":V==="contains"?"contains":V==="startsWith"?"starts with":"ends with"} "${H}"`),m||n.notes.push(`Assumed "${B}" refers to ${N.label}.`)}}}if(n.filters.length===y)for(let[C,c]of p){let I="";for(let Q of c){if(Q.length<2||Q.length<=I.length)continue;let k=Q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");new RegExp(`(^|[^\\p{L}\\p{M}\\p{N}])${k}($|[^\\p{L}\\p{M}\\p{N}])`,"u").test(B)&&(I=Q)}if(I){let Q=t.find(k=>k.key===C);n.filters.push({key:C,operator:"equals",value:I}),i.push(`${Q.label} is "${I}"`)}}if(n.filters.length===y){let C=B.split(/\s+/).filter(I=>!fc.has(I)&&!/^(top|first|bottom|last|lowest|highest|by|desc|asc|sort(ed)?)$/.test(I)),c=C.length>0&&C.every(I=>t.some(Q=>il(Q).includes(I)));if(C.length&&!c&&!(m&&C.length===1)){let I=C.join(" ");/^(customers?|users?|people|items?|entries|poems?|orders?|products?|employees?|students?|members?)$/.test(I)||(n.search.push(I),i.push(`any column contains "${I}"`))}}}if(n.sort){let B=t.find(y=>y.key===n.sort.key)?.label??n.sort.key;i.push(`sorted by ${B} ${n.sort.direction==="desc"?"high \u2192 low":"low \u2192 high"}`)}return n.limit&&i.push(`first ${n.limit}`),n.explanation=i.length?`Showing rows where ${i.join(", ")}.`:"No conditions understood \u2014 showing all rows.",n}function Bc(e,t,o){return o==="number"?(Number(e)||0)-(Number(t)||0):o==="date"?(new Date(String(e)).getTime()||0)-(new Date(String(t)).getTime()||0):String(e??"").localeCompare(String(t??""),void 0,{numeric:!0})}function ct(e,t,o){let n=lt(e,t,o.filters);for(let A of o.search)n=n.filter(i=>t.some(r=>Ze(i[r.key]).includes(A)));if(o.sort){let A=t.find(r=>r.key===o.sort.key),i=o.sort.direction==="desc"?-1:1;n=[...n].sort((r,s)=>i*Bc(r[o.sort.key],s[o.sort.key],A?.type))}return o.limit&&(n=n.slice(0,o.limit)),n}function sl(e,t,o={}){let n=Rt(e,t.columns,{data:t.data}),A=ct(t.data,t.columns,n),i=A.map(s=>Qe(s,t.rowKey)).filter(Boolean);o.apply!==!1&&(n.filters.length&&t.onFiltersChange?.(n.filters),n.sort&&t.onSortChange?.(n.sort),i.length&&t.onHighlightRows?.(i));let r=A.length?`${A.length} row(s) found. ${n.explanation}${n.notes.length?` (${n.notes.join(" ")})`:""}`:`No rows match. ${n.explanation}`;return{rows:A,ids:i,parsed:n,message:r}}function rl(e,t){let o=(e.length-1)*t,n=Math.floor(o),A=o-n;return e[n+1]!==void 0?e[n]+A*(e[n+1]-e[n]):e[n]}function tn(e,t,o={}){let n=o.factor??1.5,A=[],i=t.filter(l=>l.type==="number"&&(!o.columns||o.columns.includes(l.key))),r=l=>l.toLocaleString("en-IN",{maximumFractionDigits:2});for(let l of i){let g=e.map(w=>Number(w[l.key])).filter(w=>Number.isFinite(w));if(g.length<5)continue;let u=[...g].sort((w,b)=>w-b),d=rl(u,.25),p=rl(u,.75),B=p-d;if(B===0)continue;let y=d-n*B,m=p+n*B;for(let w of e){let b=Number(w[l.key]);!Number.isFinite(b)||b>=y&&b<=m||A.push({rowId:Qe(w,o.rowKey),column:l.key,label:l.label,value:b,kind:b>m?"high":"low",reason:`${l.label} ${r(b)} is far ${b>m?"above":"below"} the typical range (${r(d)}\u2013${r(p)}).`})}}let s=o.rowKey??"id",a=new Map;for(let l of e){let g=JSON.stringify(t.filter(p=>p.key!==s).map(p=>Ze(l[p.key]))),u=Qe(l,o.rowKey),d=a.get(g);d!==void 0?A.push({rowId:u,column:s,label:"Row",value:u,kind:"duplicate",reason:`Row ${u} has the same values as row ${d}.`}):a.set(g,u)}return A}function on(e,t){if(!e.length)return"No rows to summarise.";let o=[`${e.length} row(s).`],n=A=>A.toLocaleString("en-IN",{maximumFractionDigits:2});for(let A of t){let i=e.map(r=>r[A.key]);if(A.type==="number"){let r=i.map(Number).filter(Number.isFinite);if(!r.length)continue;let s=r.reduce((a,l)=>a+l,0);o.push(`${A.label}: total ${n(s)}, average ${n(s/r.length)}, range ${n(Math.min(...r))}\u2013${n(Math.max(...r))}.`)}else if(A.type==="date"){let r=i.map(a=>new Date(String(a)).getTime()).filter(Number.isFinite);if(!r.length)continue;let s=a=>new Date(a).toISOString().slice(0,10);o.push(`${A.label}: from ${s(Math.min(...r))} to ${s(Math.max(...r))}.`)}else{let r=new Map;for(let a of i){let l=String(a??"").trim();l&&r.set(l,(r.get(l)??0)+1)}if(r.size===0||r.size>Math.max(8,e.length/3))continue;let s=Array.from(r.entries()).sort((a,l)=>l[1]-a[1]).slice(0,4);o.push(`${A.label}: ${s.map(([a,l])=>`${a} (${l})`).join(", ")}.`)}}return o.join(`
1530
+ `):`No issue "${d}" in the current report. Run a scan first.`},applyFix(d){let p=a(d);if(!p)return{issueId:d,applied:!1,message:"Issue not found. Run a scan first."};A=!0;let B=g(p);return A=!1,B.applied&&u(),B},applyAllFixes(){t||u(),A=!0;let d=(t?.issues??[]).filter(p=>p.autoFixable).map(g);return A=!1,u(),d},undoAll(){let d=i.length;for(A=!0;i.length;){let p=i.pop();p.listener?p.element.removeEventListener("keydown",p.listener):p.previous===null?p.element.removeAttribute(p.attribute):p.element.setAttribute(p.attribute,p.previous)}return A=!1,u(),d},getState:r}}x();var tl={high:12,medium:6,low:2};function eA(e={}){let t=Le(e.root),o=[],n=(s,a,l,g,u)=>o.push({category:s,severity:a,message:l,suggestion:g,selector:u?je(u):void 0});if(t&&$e()){let s=e.minFontSize??14,a=e.maxLineLength??90,l=T=>window.getComputedStyle(T),g=ee(t,"h1");g.length===0&&n("hierarchy","medium","There is no h1, so the page has no clear main title.","Add one prominent h1 near the top."),g.length>1&&n("hierarchy","low",`${g.length} h1 headings compete for attention.`,"Keep one h1 and demote the rest.",g[1]);let u=T=>{let G=ee(t,T)[0];return G&&parseFloat(l(G).fontSize)||0},[d,p,B]=[u("h1"),u("h2"),u("h3")];d&&p&&p>=d&&n("hierarchy","medium",`h2 (${p}px) is as large as or larger than h1 (${d}px).`,"Make each heading level visibly smaller than the one above it."),p&&B&&B>p&&n("hierarchy","low",`h3 (${B}px) is larger than h2 (${p}px).`,"Keep heading sizes in descending order.");let y=gt({root:e.root,skip:["color-contrast","target-size","duplicate-id","page-title","html-lang","form-error","positive-tabindex"]});for(let T of y.issues.filter(G=>G.rule==="heading-order").slice(0,3))n("hierarchy","low",T.message,T.fix,T.element);let m=0,w;for(let T of ee(t,"p,li,td,span,a,label,small,div").slice(0,1500)){if(!uo(T))continue;(parseFloat(l(T).fontSize)||16)<s&&(m++,w??=T)}m&&n("readability",m>10?"high":"medium",`${m} text element(s) are smaller than ${s}px, e.g. "${Be(w?.textContent??"",30)}".`,`Use at least ${s}px for body text (16px for senior-friendly pages).`,w);for(let T of ee(t,"p").slice(0,200)){let G=l(T),S=parseFloat(G.fontSize)||16,oe=T.getBoundingClientRect().width,se=oe/(S*.5);if(oe>0&&se>a&&(T.textContent??"").length>a){n("readability","low",`A paragraph is about ${Math.round(se)} characters wide.`,`Limit text width to ~${a} characters (e.g. max-width: 70ch).`,T);break}let W=parseFloat(G.lineHeight);if(Number.isFinite(W)&&W/S<1.3){n("readability","low",`Line height is ${(W/S).toFixed(2)}\xD7 the font size.`,"Use line-height of at least 1.5 for body text (WCAG 1.4.12).",T);break}}let b=gt({root:e.root,skip:["html-lang","page-title","image-alt","heading-order","single-h1","landmark-main","form-label","button-name","link-name","positive-tabindex","keyboard-access","duplicate-id","form-error","target-size"]});b.issues.length&&n("readability",b.issues.length>5?"high":"medium",`${b.issues.length} text element(s) have weak contrast. ${b.issues[0].message}`,"Raise contrast to at least 4.5:1 for body text.",b.issues[0].element);let C=Ic();C.length&&n("interaction","high",`Focus outlines are removed by CSS (${C.slice(0,2).join(", ")}) with no replacement.`,"Never remove outlines without a visible :focus-visible style (WCAG 2.4.7).");let c=ee(t,Oo).filter(T=>{let G=T.getBoundingClientRect();return G.width>0&&G.height>0&&(G.width<24||G.height<24)&&!(T.tagName==="A"&&T.closest("p,li"))});c.length&&n("interaction",c.length>5?"high":"medium",`${c.length} control(s) are smaller than 24\xD724px.`,"Give controls at least 24\xD724px, ideally 44\xD744px for touch and seniors.",c[0]);let I=window.innerHeight||800,Q=ee(t,Ya).filter(T=>{let G=T.getBoundingClientRect();return G.height>0&&G.top<I});Q.length>40&&n("clutter","medium",`${Q.length} interactive elements in the first screen.`,"Group secondary actions into menus and keep the first screen focused on one task.");let k=ee(t,"button,a[href],[role='button']").filter(T=>{let G=T.getBoundingClientRect();if(G.height===0||G.top>I)return!1;let S=l(T).backgroundColor;return!!S&&!/rgba\(0, 0, 0, 0\)|transparent/.test(S)&&!/rgb\(255, 255, 255\)/.test(S)});k.length>4&&n("clutter","medium",`${k.length} filled buttons compete in the first screen.`,"Keep one primary action per view; make the rest secondary (outline or text).",k[0]);let N=new Set,H=new Set;for(let T of ee(t,"body *").slice(0,2e3)){if(!uo(T))continue;let G=l(T);N.add(G.fontFamily.split(",")[0].replace(/["']/g,"").trim().toLowerCase()),H.add(Math.round(parseFloat(G.fontSize)||0))}N.size>4&&n("consistency","low",`${N.size} different font families are used.`,"Stick to 1\u20132 font families (e.g. one Telugu + one Latin)."),H.size>10&&n("consistency","low",`${H.size} different font sizes are used.`,"Use a small type scale (5\u20137 sizes) for a calmer page.");let V=ee(t,"img:not([width]):not([height])").filter(T=>!l(T).aspectRatio||l(T).aspectRatio==="auto");V.length>3&&n("consistency","low",`${V.length} images have no width/height, so the layout jumps while loading.`,"Set width and height (or aspect-ratio) on images.",V[0])}let A=["hierarchy","readability","interaction","clutter","consistency"].reduce((s,a)=>{let l=o.filter(g=>g.category===a);return s[a]={score:Math.max(0,100-l.reduce((g,u)=>g+tl[u.severity]*2,0)),findings:l.length},s},{}),i=Math.max(0,100-o.reduce((s,a)=>s+tl[a.severity],0)),r=Object.entries(A).sort((s,a)=>s[1].score-a[1].score)[0];return{score:i,categories:A,findings:o,summary:o.length?`Design score ${i}/100 with ${o.length} finding(s). Weakest area: ${r[0]}.`:"No design issues found by the automatic review."}}function Ic(){let e=[],t=!1,o=n=>{for(let A of Array.from(n)){let i=A.cssRules;i&&o(i);let r=A;if(!r.selectorText||!/:focus/.test(r.selectorText))continue;let s=`${r.style.outline} ${r.style.outlineStyle} ${r.style.outlineWidth}`,a=/\bnone\b|\b0(px)?\b/.test(s),l=!!(r.style.boxShadow&&r.style.boxShadow!=="none")||!!r.style.borderColor||!!r.style.backgroundColor||!!r.style.textDecoration;/:focus-visible/.test(r.selectorText)&&(!a||l)&&(t=!0),a&&!l&&e.push(r.selectorText)}};for(let n of Array.from(document.styleSheets))try{o(n.cssRules)}catch{}return t?[]:e}x();var pc=/^(field|input|value|text|enter|details?|info|data|\*|:)$/i,mc=/^(go|ok|submit|send|click here|>|→|next)$/i,Cc=[[/e-?mail/i,"email","email"],[/phone|mobile|tel/i,"tel","tel"],[/^(full)?name$|full.?name/i,"name"],[/first.?name|given/i,"given-name"],[/last.?name|surname|family/i,"family-name"],[/address|street/i,"street-address"],[/zip|postal|pin.?code|pincode/i,"postal-code"],[/city|town/i,"address-level2"],[/country/i,"country-name"],[/password/i,"current-password","password"],[/dob|birth/i,"bday"]];function fc(e){let t=e.getAttribute("id");return t&&e.ownerDocument.querySelector(`label[for="${t.replace(/"/g,'\\"')}"]`)?!0:!!e.closest("label")}function ol(e){return ee(e,"input,select,textarea").filter(t=>!["hidden","submit","button","reset","image"].includes((t.getAttribute("type")??"text").toLowerCase())).map(t=>({label:Ye(t),type:t.tagName==="INPUT"?(t.getAttribute("type")??"text").toLowerCase():t.tagName.toLowerCase(),name:t.getAttribute("name")??t.getAttribute("id")??"",required:t.hasAttribute("required")||t.getAttribute("aria-required")==="true",hasVisibleLabel:fc(t),selector:je(t),element:t}))}function nl(e,t={}){let o=t.seniorFriendly!==!1,n=t.maxFieldsPerStep??8,A=ol(e),i=[],r=(d,p,B,y)=>i.push({level:d,message:p,suggestion:B,field:y?.label||y?.name,selector:y?.selector});for(let d of A){let p=d.element,B=d.label||d.name||d.type,y=p.getAttribute("placeholder");!d.label&&y?r("problem",`"${y}" uses only a placeholder as its label.`,"Placeholders disappear when typing starts and aren't read by every screen reader. Add a visible label above the field.",d):d.label?!d.hasVisibleLabel&&y&&!p.getAttribute("aria-label")?r("problem",`"${B}" uses only a placeholder as its label.`,"Placeholders disappear when typing starts. Add a visible label above the field.",d):pc.test(d.label)&&r("improvement",`The label "${d.label}" is unclear.`,'Say exactly what is needed, e.g. "Mobile number (10 digits)".',d):r("problem",`A ${d.type} field${d.name?` ("${d.name}")`:""} has no label.`,"Add a visible <label> that says exactly what to enter.",d),d.required&&d.label&&!/\*|required|mandatory|తప్పనిసరి|आवश्यक/i.test(d.label)&&r("improvement",`"${B}" is required but the label doesn't say so.`,'Add "(required)" to the label so everyone knows before submitting.',d);let m=`${d.name} ${d.label}`;for(let[w,b,C]of Cc)if(w.test(m)){p.getAttribute("autocomplete")||r("improvement",`"${B}" has no autocomplete hint.`,`Add autocomplete="${b}" so browsers can fill it in (WCAG 1.3.5).`,d),C&&d.type==="text"&&r("improvement",`"${B}" uses type="text".`,`Use type="${C}" for the right mobile keyboard and validation.`,d);break}if(p.getAttribute("aria-invalid")==="true"&&!p.getAttribute("aria-describedby")&&!p.getAttribute("aria-errormessage")&&r("problem",`"${B}" shows an error that isn't connected to the field.`,"Link the error text with aria-describedby and explain how to fix it.",d),o){let w=parseFloat(window.getComputedStyle(p).fontSize)||16;w<16&&r("improvement",`"${B}" text is ${w}px.`,"Use at least 16px in inputs; it is easier to read and stops mobile browsers from zooming.",d)}}A.length>n&&r("improvement",`This form has ${A.length} fields on one screen.`,`Split it into steps of about ${n} fields with a progress indicator.`);let s=ee(e,"button,input[type='submit'],input[type='button']");if(s.length===0)r("problem","No submit button found.",'Add a clear <button type="submit"> so the form can be completed with the keyboard.');else if(o){let d=Ce(Ye(s[s.length-1]));mc.test(d)&&r("improvement",`The button says "${d}".`,'Name the result, e.g. "Send message" or "Book appointment".')}!ee(e,"[role='alert'],[aria-live]",{includeHidden:!0}).length&&A.some(d=>d.required)&&r("improvement","No live region for error messages.",'Add an element with role="alert" so errors are announced when the form is submitted.');let a=i.filter(d=>d.level==="problem").length,l=i.length-a,g=Math.max(0,100-a*15-l*4),u=e.getAttribute("aria-label")||Ce(e.querySelector("legend,h1,h2,h3")?.textContent)||e.getAttribute("name")||e.getAttribute("id")||"Form";return{name:Be(u,50),selector:je(e),fields:A,findings:i,score:g,summary:i.length===0?`"${Be(u,40)}" looks clear: ${A.length} labelled field(s), nothing to fix.`:`"${Be(u,40)}" has ${A.length} field(s): ${a} problem(s) and ${l} suggestion(s). Score ${g}/100.`}}function Bo(e={}){let t=Le(e.root);return t?ee(t,"form,[role='form']").map(o=>nl(o,e)):[]}x();var Ze=e=>String(e??"").normalize("NFC").toLowerCase().replace(/\s+/g," ").trim(),hc=new Set("show me find list get give which who what all the a an rows row records record entries with where that are is have has having and or of for in on to please display only those whose any".split(" "));function en(e){let t=Ze(e).replace(/(₹|rs\.?|inr|\$|usd|€|£)/g," ").match(/(-?\d[\d,]*(?:\.\d+)?|-?\.\d+)\s*(k|thousand|lakhs?|lacs?|crores?|cr|mn|million|m|bn|billion)?(?![\p{L}])/u);if(!t)return null;let o=Number(t[1].replace(/,/g,""));if(!Number.isFinite(o))return null;let n=t[2]??"",A=/^k|thousand/.test(n)?1e3:/^la/.test(n)?1e5:/^(crore|cr)/.test(n)?1e7:/^(m|mn|million)$/.test(n)?1e6:/^(bn|billion)$/.test(n)?1e9:1;return o*A}function il(e){let t=new Set([Ze(e.label),Ze(e.key),Ze(e.key.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2"))]);for(let o of Array.from(t))o.endsWith("s")?t.add(o.slice(0,-1)):t.add(`${o}s`);return Array.from(t).filter(o=>o.length>1)}function He(e,t,o){let n=` ${Ze(e)} `,A;for(let i of t)if(!(o&&(i.type??"text")!==o))for(let r of il(i)){let s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");new RegExp(`(^|[^\\p{L}\\p{M}\\p{N}])${s}($|[^\\p{L}\\p{M}\\p{N}])`,"u").test(n)&&(!A||r.length>A.length)&&(A={column:i,length:r.length})}return A?.column}var yc=/amount|balance|total|price|salary|value|due|revenue|cost|fee|sales|outstanding|paid/i;function tA(e){let t=e.filter(o=>o.type==="number");return t.find(o=>yc.test(`${o.key} ${o.label}`))??t[0]}var Zo=/(>=|=>|>|\bover\b|\babove\b|\bmore than\b|\bgreater than\b|\bexceeds?\b|\bexceeding\b|\bhigher than\b|\bat least\b|\bminimum\b|\bmin\b|కంటే ఎక్కువ)/,oA=/(<=|=<|<|\bunder\b|\bbelow\b|\bless than\b|\blower than\b|\bat most\b|\bmaximum\b|\bmax\b|\bup to\b|కంటే తక్కువ)/,Al=/\b(after|since|from)\b/,bc=/\b(before|until|till)\b/,Bc="(?:\\s*(?:k|thousand|lakhs?|lacs?|crores?|cr|mn|million|m|bn|billion))?",nA=`(?:\u20B9|rs\\.?\\s*|\\$)?\\s*-?\\d[\\d,]*(?:\\.\\d+)?${Bc}`;function Rt(e,t,o={}){let n={filters:[],search:[],sort:null,limit:null,notes:[],explanation:""},A=Ze(e).replace(/[?!]+/g," ").replace(/\.(?!\d)/g," ").trim(),i=[],r=A.match(/\b(top|first|bottom|last|lowest|highest)\s+(\d+)\b/);r&&(n.limit=Number(r[2]),A=A.replace(r[0],` ${r[1]} `));let s=A.match(/\b(?:sort(?:ed)?|order(?:ed)?)\s+by\s+([\p{L}\p{M}\p{N} _]+?)(?:\s+(asc|ascending|desc|descending))?(?=$|,|\band\b|\bthen\b)/u),a=A.match(/\b(top|highest|largest|biggest|most|bottom|lowest|smallest|least)\b(?:\s+\d+)?\s+(?:by\s+)?([\p{L}\p{M}\p{N} _]+)/u);if(s){let B=He(s[1],t);B&&(n.sort={key:B.key,direction:/^desc/.test(s[2]??"")?"desc":"asc"},A=A.replace(s[0]," "))}else if(a){let B=He(a[2],t,"number")??He(a[2],t)??tA(t);if(B){let y=/top|highest|largest|biggest|most/.test(a[1]);n.sort={key:B.key,direction:y?"desc":"asc"},A=A.replace(new RegExp(`\\b${a[1]}\\b`)," "),!r&&/top|bottom/.test(a[1])&&(n.limit=10)}}let l=new RegExp(`\\bbetween\\s+(${nA}|\\d{4}-\\d{2}-\\d{2})\\s+(?:and|to|-)\\s+(${nA}|\\d{4}-\\d{2}-\\d{2})`,"u"),g;for(;g=A.match(l);){let B=A.slice(Math.max(0,(g.index??0)-40),g.index??0),y=/\d{4}-\d{2}-\d{2}/.test(g[1]),m=y?He(B,t,"date")??t.find(C=>C.type==="date"):He(B,t,"number")??tA(t),w=y?g[1]:en(g[1]),b=y?g[2]:en(g[2]);m&&w!==null&&b!==null&&(n.filters.push({key:m.key,operator:"between",value:[w,b]}),i.push(`${m.label} between ${g[1]} and ${g[2]}`)),A=A.replace(g[0]," ")}let u=A.split(/\s*(?:(?<!\d),|,(?!\d)|;|\band\b|(?<!(?:starts?|starting|ends?|ending|begins?|beginning)\s)\bwith\b|\bwhere\b|\bwho\b|\bthat\b|&|మరియు)\s*/u).map(B=>B.trim()).filter(Boolean),d=t.filter(B=>(B.type??"text")==="text"),p=new Map;for(let B of d){let y=new Set;for(let m of(o.data??[]).slice(0,5e3)){let w=Ze(m[B.key]);if(w&&w.length<=40&&y.add(w),y.size>300)break}y.size&&y.size<=300&&p.set(B.key,y)}for(let B of u){let y=n.filters.length,m=He(B,t),w=B.match(new RegExp(nA,"u")),b=B.match(/\d{4}-\d{2}-\d{2}/);if(b&&(Al.test(B)||bc.test(B)||Zo.test(B)||oA.test(B))){let C=(m?.type==="date"?m:void 0)??t.find(c=>c.type==="date");if(C){let c=Al.test(B)||Zo.test(B);n.filters.push({key:C.key,operator:c?"greaterThan":"lessThan",value:b[0]}),i.push(`${C.label} ${c?"after":"before"} ${b[0]}`)}}else if(w&&(Zo.test(B)||oA.test(B)||m?.type==="number"&&/\b(is|equals?)\b|=/.test(B))){let C=m?.type==="number"?m:void 0;C||(C=tA(t),C&&n.notes.push(`Assumed "${B}" refers to ${C.label}.`));let c=en(w[0]);if(C&&c!==null){let I=/at least|minimum|\bmin\b|>=|=>|at most|maximum|\bmax\b|up to|<=|=</.test(B);Zo.test(B)?(n.filters.push({key:C.key,operator:"greaterThan",value:I?c-1e-9:c}),i.push(`${C.label} ${I?"\u2265":">"} ${c.toLocaleString("en-IN")}`)):oA.test(B)?(n.filters.push({key:C.key,operator:"lessThan",value:I?c+1e-9:c}),i.push(`${C.label} ${I?"\u2264":"<"} ${c.toLocaleString("en-IN")}`)):(n.filters.push({key:C.key,operator:"equals",value:c}),i.push(`${C.label} = ${c.toLocaleString("en-IN")}`))}}else{let C=B.match(/\b(?:starts?|starting|begins?|beginning)\s+with\s+(.+)$/),c=B.match(/\b(?:ends?|ending)\s+with\s+(.+)$/),I=B.match(/\b(?:contains?|containing|including|includes?|mentions?)\s+(.+)$/),Q=B.match(/\b(?:is|equals?|=|:)\s+(.+)$/),k=C??c??I??Q;if(k){let N=m??d[0],H=k[1].replace(/^["'“‘]|["'”’]$/g,"").trim();if(N&&H){let V=C?"startsWith":c?"endsWith":I?"contains":"equals";n.filters.push({key:N.key,operator:V,value:H}),i.push(`${N.label} ${V==="equals"?"is":V==="contains"?"contains":V==="startsWith"?"starts with":"ends with"} "${H}"`),m||n.notes.push(`Assumed "${B}" refers to ${N.label}.`)}}}if(n.filters.length===y)for(let[C,c]of p){let I="";for(let Q of c){if(Q.length<2||Q.length<=I.length)continue;let k=Q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");new RegExp(`(^|[^\\p{L}\\p{M}\\p{N}])${k}($|[^\\p{L}\\p{M}\\p{N}])`,"u").test(B)&&(I=Q)}if(I){let Q=t.find(k=>k.key===C);n.filters.push({key:C,operator:"equals",value:I}),i.push(`${Q.label} is "${I}"`)}}if(n.filters.length===y){let C=B.split(/\s+/).filter(I=>!hc.has(I)&&!/^(top|first|bottom|last|lowest|highest|by|desc|asc|sort(ed)?)$/.test(I)),c=C.length>0&&C.every(I=>t.some(Q=>il(Q).includes(I)));if(C.length&&!c&&!(m&&C.length===1)){let I=C.join(" ");/^(customers?|users?|people|items?|entries|poems?|orders?|products?|employees?|students?|members?)$/.test(I)||(n.search.push(I),i.push(`any column contains "${I}"`))}}}if(n.sort){let B=t.find(y=>y.key===n.sort.key)?.label??n.sort.key;i.push(`sorted by ${B} ${n.sort.direction==="desc"?"high \u2192 low":"low \u2192 high"}`)}return n.limit&&i.push(`first ${n.limit}`),n.explanation=i.length?`Showing rows where ${i.join(", ")}.`:"No conditions understood \u2014 showing all rows.",n}function Qc(e,t,o){return o==="number"?(Number(e)||0)-(Number(t)||0):o==="date"?(new Date(String(e)).getTime()||0)-(new Date(String(t)).getTime()||0):String(e??"").localeCompare(String(t??""),void 0,{numeric:!0})}function ct(e,t,o){let n=lt(e,t,o.filters);for(let A of o.search)n=n.filter(i=>t.some(r=>Ze(i[r.key]).includes(A)));if(o.sort){let A=t.find(r=>r.key===o.sort.key),i=o.sort.direction==="desc"?-1:1;n=[...n].sort((r,s)=>i*Qc(r[o.sort.key],s[o.sort.key],A?.type))}return o.limit&&(n=n.slice(0,o.limit)),n}function sl(e,t,o={}){let n=Rt(e,t.columns,{data:t.data}),A=ct(t.data,t.columns,n),i=A.map(s=>Qe(s,t.rowKey)).filter(Boolean);o.apply!==!1&&(n.filters.length&&t.onFiltersChange?.(n.filters),n.sort&&t.onSortChange?.(n.sort),i.length&&t.onHighlightRows?.(i));let r=A.length?`${A.length} row(s) found. ${n.explanation}${n.notes.length?` (${n.notes.join(" ")})`:""}`:`No rows match. ${n.explanation}`;return{rows:A,ids:i,parsed:n,message:r}}function rl(e,t){let o=(e.length-1)*t,n=Math.floor(o),A=o-n;return e[n+1]!==void 0?e[n]+A*(e[n+1]-e[n]):e[n]}function tn(e,t,o={}){let n=o.factor??1.5,A=[],i=t.filter(l=>l.type==="number"&&(!o.columns||o.columns.includes(l.key))),r=l=>l.toLocaleString("en-IN",{maximumFractionDigits:2});for(let l of i){let g=e.map(w=>Number(w[l.key])).filter(w=>Number.isFinite(w));if(g.length<5)continue;let u=[...g].sort((w,b)=>w-b),d=rl(u,.25),p=rl(u,.75),B=p-d;if(B===0)continue;let y=d-n*B,m=p+n*B;for(let w of e){let b=Number(w[l.key]);!Number.isFinite(b)||b>=y&&b<=m||A.push({rowId:Qe(w,o.rowKey),column:l.key,label:l.label,value:b,kind:b>m?"high":"low",reason:`${l.label} ${r(b)} is far ${b>m?"above":"below"} the typical range (${r(d)}\u2013${r(p)}).`})}}let s=o.rowKey??"id",a=new Map;for(let l of e){let g=JSON.stringify(t.filter(p=>p.key!==s).map(p=>Ze(l[p.key]))),u=Qe(l,o.rowKey),d=a.get(g);d!==void 0?A.push({rowId:u,column:s,label:"Row",value:u,kind:"duplicate",reason:`Row ${u} has the same values as row ${d}.`}):a.set(g,u)}return A}function on(e,t){if(!e.length)return"No rows to summarise.";let o=[`${e.length} row(s).`],n=A=>A.toLocaleString("en-IN",{maximumFractionDigits:2});for(let A of t){let i=e.map(r=>r[A.key]);if(A.type==="number"){let r=i.map(Number).filter(Number.isFinite);if(!r.length)continue;let s=r.reduce((a,l)=>a+l,0);o.push(`${A.label}: total ${n(s)}, average ${n(s/r.length)}, range ${n(Math.min(...r))}\u2013${n(Math.max(...r))}.`)}else if(A.type==="date"){let r=i.map(a=>new Date(String(a)).getTime()).filter(Number.isFinite);if(!r.length)continue;let s=a=>new Date(a).toISOString().slice(0,10);o.push(`${A.label}: from ${s(Math.min(...r))} to ${s(Math.max(...r))}.`)}else{let r=new Map;for(let a of i){let l=String(a??"").trim();l&&r.set(l,(r.get(l)??0)+1)}if(r.size===0||r.size>Math.max(8,e.length/3))continue;let s=Array.from(r.entries()).sort((a,l)=>l[1]-a[1]).slice(0,4);o.push(`${A.label}: ${s.map(([a,l])=>`${a} (${l})`).join(", ")}.`)}}return o.join(`
1531
1531
  `)}function AA(e,t){let o=Ze(e);if(/unusual|anomal|outlier|odd|strange|suspicious|duplicate|అసాధారణ/.test(o)){let A=tn(t.data,t.columns,{rowKey:t.rowKey}),i=Array.from(new Set(A.map(s=>s.rowId)));i.length&&t.onHighlightRows?.(i);let r=new Set(i);return{kind:"anomalies",message:A.length?`${i.length} unusual row(s):
1532
1532
  ${A.slice(0,10).map(s=>`\u2022 ${s.reason}`).join(`
1533
- `)}`:"Nothing unusual found.",ids:i,rows:t.data.filter(s=>r.has(Qe(s,t.rowKey))),anomalies:A}}if(/summar|overview|describe|సారాంశం/.test(o)){let A=lt(t.data,t.columns,t.filters??[]);return{kind:"summary",message:on(A,t.columns),ids:[],rows:A}}let n=sl(e,t);return{kind:"query",message:n.message,ids:n.ids,rows:n.rows}}x();var An=e=>{let t=typeof e=="number"?e:Number(String(e??"").replace(/[,₹$%\s]/g,""));return Number.isFinite(t)?t:null},al=e=>{let t=e instanceof Date?e.getTime():new Date(String(e??"")).getTime();return Number.isFinite(t)?t:null};function jt(e,t){if(t==="count")return e.length;if(!e.length)return 0;switch(t){case"sum":return e.reduce((o,n)=>o+n,0);case"avg":return e.reduce((o,n)=>o+n,0)/e.length;case"min":return Math.min(...e);case"max":return Math.max(...e)}}function ll(e,t,o,n="sum"){let A=new Map;for(let i of e){let r=String(i[t]??"\u2014").trim()||"\u2014",s=A.get(r)??[];if(o===null||n==="count")s.push(1);else{let a=An(i[o]);a!==null&&s.push(a)}A.set(r,s)}return Array.from(A.entries()).map(([i,r])=>({group:i,value:jt(r,n),count:r.length})).sort((i,r)=>r.value-i.value)}function iA(e,t,o=1){let n=new Date(e);return n.setHours(0,0,0,0),t==="week"&&n.setDate(n.getDate()-(n.getDay()-o+7)%7),t==="month"&&n.setDate(1),t==="quarter"&&n.setMonth(Math.floor(n.getMonth()/3)*3,1),t==="year"&&n.setMonth(0,1),n}function nn(e,t,o){let n=new Date(e);return t==="day"&&n.setDate(n.getDate()+o),t==="week"&&n.setDate(n.getDate()+7*o),t==="month"&&n.setMonth(n.getMonth()+o),t==="quarter"&&n.setMonth(n.getMonth()+3*o),t==="year"&&n.setFullYear(n.getFullYear()+o),n}function gl(e,t){let o=t.referenceDate?new Date(t.referenceDate):new Date,n=iA(o,t.period,t.weekStartsOn),A=t.toDate===!1?nn(n,t.period,1):new Date(Math.max(o.getTime()+1,n.getTime()+1)),i=nn(n,t.period,-1),r=t.toDate===!1?n:new Date(i.getTime()+(A.getTime()-n.getTime())),s=t.agg??"sum",a=new Map,l=new Map;for(let d of e){let p=al(d[t.dateKey]);if(p===null)continue;let B=p>=n.getTime()&&p<A.getTime()?a:p>=i.getTime()&&p<r.getTime()?l:null;if(!B)continue;let y=t.groupKey?String(d[t.groupKey]??"\u2014"):"All",m=s==="count"?1:An(d[t.metricKey]);m!==null&&B.set(y,[...B.get(y)??[],m])}let g=new Set([...a.keys(),...l.keys()]),u=Array.from(g).map(d=>{let p=jt(a.get(d)??[],s),B=jt(l.get(d)??[],s);return{group:d,current:p,previous:B,change:p-B,changePct:B===0?null:(p-B)/Math.abs(B)*100}});return{period:t.period,current:{from:n,to:A},previous:{from:i,to:r},rows:u}}function cl(e,t,o,n,A="sum"){let i=new Map;for(let r of e){let s=al(r[t]),a=A==="count"?1:An(r[o]);if(s===null||a===null)continue;let l=iA(new Date(s),n).getTime();i.set(l,[...i.get(l)??[],a])}return Array.from(i.entries()).sort((r,s)=>r[0]-s[0]).map(([r,s])=>({start:new Date(r),value:jt(s,A)}))}var Qc=/rate|conversion|ratio|percent|%|score|rating|margin|ctr|avg|average/i;function Ec(e){let t=e.match(/\b(today|yesterday|this|last|previous|past)\s*(day|week|month|quarter|year)?\b/);return t?t[1]==="today"?{period:"day",shift:0}:t[1]==="yesterday"?{period:"day",shift:-1}:t[2]?{period:t[2],shift:t[1]==="this"?0:-1}:null:null}var De=e=>e.toLocaleString("en-IN",{maximumFractionDigits:2}),rA=e=>e===null?"new":`${e>0?"+":""}${e.toFixed(1)}%`;function sA(e,t,o,n={}){let A=e.toLowerCase(),i=o.filter(C=>C.type==="number"),r=He(A,o,"number")??i.find(C=>/amount|revenue|sales|total|value/i.test(`${C.key} ${C.label}`))??i[0],s=o.find(C=>C.type==="date")??o.find(C=>/date|time|day|created|month/i.test(`${C.key} ${C.label}`)),a=A.match(/\b(?:which|by|per|each|across|every|top|for each)\s+([\p{L}\p{M}\p{N} _]+)/u)?.[1]??"",l=He(a,o,"text"),g=/how many|number of|count/.test(A),u=g?"count":/average|avg|mean/.test(A)?"avg":/\btotal\b|\bsum\b/.test(A)?"sum":r&&Qc.test(`${r.key} ${r.label}`)?"avg":"sum",d=/drop|decline|decrease|fell|fall|down|worst|lost|shrink|reduc/.test(A),p=/increase|growth|grew|rise|rose|up\b|best|improv|gain/.test(A),B=/lowest|least|smallest|bottom|worst|minimum/.test(A),y=Ec(A);if(!r&&!g)return{kind:"unknown",answer:"I couldn't find a numeric column to analyse.",table:[]};let m=g?"rows":r.label;if(y&&s&&(p||d||/change|compare|vs|versus/.test(A))){let C=n.referenceDate?new Date(n.referenceDate):new Date,c=y.shift?nn(C,y.period,y.shift):C,Q=[...gl(t,{dateKey:s.key,metricKey:r?.key??s.key,groupKey:l?.key,agg:u,period:y.period,referenceDate:c,toDate:y.shift===0}).rows].sort((oe,se)=>d?oe.change-se.change:se.change-oe.change),k=Q.map(oe=>({[l?.label??"Group"]:oe.group,Current:De(oe.current),Previous:De(oe.previous),Change:De(oe.change),"Change %":rA(oe.changePct)}));if(!Q.length)return{kind:"period-change",answer:`No ${m} data in this ${y.period} or the one before.`,table:k};let N=Q[0],H=`${y.shift?"last":"this"} ${y.period} vs the ${y.period} before`,V=N.change===0?"did not change":N.change<0?`dropped ${De(Math.abs(N.change))}`:`rose ${De(N.change)}`,T=`${m} ${V} (${De(N.previous)} \u2192 ${De(N.current)}, ${rA(N.changePct)}) \u2014 ${H}.`,G=d&&N.change>=0||p&&N.change<=0;return{kind:"period-change",answer:l?G?`No ${l.label.toLowerCase()} ${d?"dropped":"grew"}. Closest is ${N.group}: ${T}`:`${N.group}: ${T}`:T,table:k}}if(/trend|over time|month by month|week by week/.test(A)&&s&&r){let C=/week/.test(A)?"week":/day|daily/.test(A)?"day":/year/.test(A)?"year":"month",c=cl(t,s.key,r.key,C,u),I=c.map(H=>({Period:H.start.toISOString().slice(0,10),[r.label]:De(H.value)}));if(c.length<2)return{kind:"trend",answer:`Not enough ${C}s of data for a trend.`,table:I};let Q=c[0].value,k=c[c.length-1].value,N=c.reduce((H,V)=>V.value>H.value?V:H);return{kind:"trend",answer:`${r.label} went from ${De(Q)} to ${De(k)} over ${c.length} ${C}s (${rA(Q?(k-Q)/Math.abs(Q)*100:null)}). Peak: ${De(N.value)} in the ${C} of ${N.start.toISOString().slice(0,10)}.`,table:I}}if(l){let C=ll(t,l.key,r?.key??null,u),c=B?[...C].reverse():C,I=c.map(k=>({[l.label]:k.group,[`${u} of ${m}`]:De(k.value),Rows:k.count}));if(!c.length)return{kind:"group",answer:"No data.",table:I};let Q=c[0];return{kind:"group",answer:`${Q.group} has the ${B?"lowest":"highest"} ${u==="sum"?"total":u==="avg"?"average":u} ${m}: ${De(Q.value)} (across ${c.length} ${l.label.toLowerCase()} groups).`,table:I}}let w=g?t.map(()=>1):t.map(C=>An(C[r.key])).filter(C=>C!==null),b=jt(w,u);return{kind:"total",answer:`${u==="avg"?"Average":u==="count"?"Count of":u==="sum"?"Total":u} ${m}: ${De(b)} across ${t.length} row(s).`,table:[{Metric:m,Aggregation:u,Value:De(b)}]}}x();function dl(e){let t=Le(e),o={title:"",description:"",language:"",headings:[],landmarks:{},counts:{links:0,buttons:0,images:0,forms:0,tables:0,fields:0},unlabeledFields:[],imagesWithoutAlt:[],purpose:""};if(!t)return o;let n=Gt(t)?t:t.ownerDocument,A=ee(t,"h1,h2,h3,h4,h5,h6").map(g=>({level:Number(g.tagName[1]),text:Be(g.textContent??"",80)})),i={};for(let[g,u]of Object.entries({header:"header,[role='banner']",navigation:"nav,[role='navigation']",main:"main,[role='main']",search:"search,[role='search']",footer:"footer,[role='contentinfo']"}))i[g]=ee(t,u).length;let r=ee(t,"input,select,textarea").filter(g=>!["hidden","submit","button","reset","image"].includes((g.getAttribute("type")??"text").toLowerCase())),s=r.filter(g=>!Ye(g)).map(g=>({type:g.tagName==="INPUT"?g.getAttribute("type")??"text":g.tagName.toLowerCase(),hint:g.getAttribute("placeholder")||g.getAttribute("name")||"",selector:je(g)})),a=ee(t,"img:not([alt])").map(g=>({src:g.getAttribute("src")??"",selector:je(g)})),l={title:n.title,description:Ce(n.querySelector('meta[name="description"]')?.getAttribute("content")),language:n.documentElement.getAttribute("lang")??"",headings:A,landmarks:i,counts:{links:ee(t,"a[href]").length,buttons:ee(t,"button,[role='button'],input[type='submit']").length,images:ee(t,"img").length,forms:ee(t,"form,[role='form']").length,tables:ee(t,"table,[role='grid'],[role='table']").length,fields:r.length},unlabeledFields:s,imagesWithoutAlt:a,purpose:""};return l.purpose=wc(l,r),l}function wc(e,t){let o=e.headings.find(r=>r.level===1)?.text||e.title||"This page",n=t.map(r=>`${r.getAttribute("type")} ${r.getAttribute("name")} ${Ye(r)}`).join(" ").toLowerCase(),A=[];/password/.test(n)?A.push("sign in or create an account"):(/search|query|వెతుకు/.test(n)||e.landmarks.search)&&A.push("search"),/message|comment|feedback|contact|enquiry/.test(n)&&A.push("send a message"),/card|payment|upi|amount/.test(n)&&A.push("make a payment"),e.counts.tables&&A.push(`browse ${e.counts.tables} table(s) of data`),!A.length&&e.counts.forms&&A.push(`fill in ${e.counts.forms} form(s)`),A.length||A.push("read content");let i=e.headings.filter(r=>r.level===2).slice(0,5).map(r=>r.text);return[`"${o}" lets you ${A.join(", ")}.`,e.description?`It describes itself as: ${Be(e.description,140)}`:"",i.length?`Main sections: ${i.join(" \xB7 ")}.`:""].filter(Boolean).join(" ")}var xc=[["missing-labels",/label|unlabel|లేబుల్/i],["images",/image|alt text|picture|photo|చిత్ర/i],["structure",/heading|structure|outline|section|landmark|శీర్షిక/i],["forms",/form|field|input|ఫారం/i],["links",/link|లింక్/i],["counts",/how many|count|ఎన్ని/i],["purpose",/what (does|is)|purpose|about|summar|explain|ఏమి|గురించి/i]];function ul(e){for(let[t,o]of xc)if(o.test(e))return t;return"unknown"}async function aA(e,t={}){let o=dl(t.root),n=ul(e);switch(n){case"missing-labels":return o.unlabeledFields.length?{intent:n,answer:`${o.unlabeledFields.length} of ${o.counts.fields} field(s) have no label: ${o.unlabeledFields.map(A=>`${A.type}${A.hint?` ("${A.hint}")`:""}`).join(", ")}.`,targets:o.unlabeledFields.map(A=>A.selector),suggestions:["Add a visible <label for=\u2026> to each field.","Run the Accessibility Copilot to add aria-labels from placeholders as a quick fix."]}:{intent:n,answer:`All ${o.counts.fields} form field(s) have labels.`,targets:[],suggestions:[]};case"images":return{intent:n,answer:o.imagesWithoutAlt.length?`${o.imagesWithoutAlt.length} of ${o.counts.images} image(s) have no alt text.`:`All ${o.counts.images} image(s) have alt text.`,targets:o.imagesWithoutAlt.map(A=>A.selector),suggestions:o.imagesWithoutAlt.length?['Describe meaningful images in alt; use alt="" for decorative ones.']:[]};case"structure":{let A=o.headings.slice(0,15).map(r=>`${" ".repeat(r.level-1)}h${r.level} ${r.text}`).join(`
1533
+ `)}`:"Nothing unusual found.",ids:i,rows:t.data.filter(s=>r.has(Qe(s,t.rowKey))),anomalies:A}}if(/summar|overview|describe|సారాంశం/.test(o)){let A=lt(t.data,t.columns,t.filters??[]);return{kind:"summary",message:on(A,t.columns),ids:[],rows:A}}let n=sl(e,t);return{kind:"query",message:n.message,ids:n.ids,rows:n.rows}}x();var An=e=>{let t=typeof e=="number"?e:Number(String(e??"").replace(/[,₹$%\s]/g,""));return Number.isFinite(t)?t:null},al=e=>{let t=e instanceof Date?e.getTime():new Date(String(e??"")).getTime();return Number.isFinite(t)?t:null};function jt(e,t){if(t==="count")return e.length;if(!e.length)return 0;switch(t){case"sum":return e.reduce((o,n)=>o+n,0);case"avg":return e.reduce((o,n)=>o+n,0)/e.length;case"min":return Math.min(...e);case"max":return Math.max(...e)}}function ll(e,t,o,n="sum"){let A=new Map;for(let i of e){let r=String(i[t]??"\u2014").trim()||"\u2014",s=A.get(r)??[];if(o===null||n==="count")s.push(1);else{let a=An(i[o]);a!==null&&s.push(a)}A.set(r,s)}return Array.from(A.entries()).map(([i,r])=>({group:i,value:jt(r,n),count:r.length})).sort((i,r)=>r.value-i.value)}function iA(e,t,o=1){let n=new Date(e);return n.setHours(0,0,0,0),t==="week"&&n.setDate(n.getDate()-(n.getDay()-o+7)%7),t==="month"&&n.setDate(1),t==="quarter"&&n.setMonth(Math.floor(n.getMonth()/3)*3,1),t==="year"&&n.setMonth(0,1),n}function nn(e,t,o){let n=new Date(e);return t==="day"&&n.setDate(n.getDate()+o),t==="week"&&n.setDate(n.getDate()+7*o),t==="month"&&n.setMonth(n.getMonth()+o),t==="quarter"&&n.setMonth(n.getMonth()+3*o),t==="year"&&n.setFullYear(n.getFullYear()+o),n}function gl(e,t){let o=t.referenceDate?new Date(t.referenceDate):new Date,n=iA(o,t.period,t.weekStartsOn),A=t.toDate===!1?nn(n,t.period,1):new Date(Math.max(o.getTime()+1,n.getTime()+1)),i=nn(n,t.period,-1),r=t.toDate===!1?n:new Date(i.getTime()+(A.getTime()-n.getTime())),s=t.agg??"sum",a=new Map,l=new Map;for(let d of e){let p=al(d[t.dateKey]);if(p===null)continue;let B=p>=n.getTime()&&p<A.getTime()?a:p>=i.getTime()&&p<r.getTime()?l:null;if(!B)continue;let y=t.groupKey?String(d[t.groupKey]??"\u2014"):"All",m=s==="count"?1:An(d[t.metricKey]);m!==null&&B.set(y,[...B.get(y)??[],m])}let g=new Set([...a.keys(),...l.keys()]),u=Array.from(g).map(d=>{let p=jt(a.get(d)??[],s),B=jt(l.get(d)??[],s);return{group:d,current:p,previous:B,change:p-B,changePct:B===0?null:(p-B)/Math.abs(B)*100}});return{period:t.period,current:{from:n,to:A},previous:{from:i,to:r},rows:u}}function cl(e,t,o,n,A="sum"){let i=new Map;for(let r of e){let s=al(r[t]),a=A==="count"?1:An(r[o]);if(s===null||a===null)continue;let l=iA(new Date(s),n).getTime();i.set(l,[...i.get(l)??[],a])}return Array.from(i.entries()).sort((r,s)=>r[0]-s[0]).map(([r,s])=>({start:new Date(r),value:jt(s,A)}))}var Ec=/rate|conversion|ratio|percent|%|score|rating|margin|ctr|avg|average/i;function wc(e){let t=e.match(/\b(today|yesterday|this|last|previous|past)\s*(day|week|month|quarter|year)?\b/);return t?t[1]==="today"?{period:"day",shift:0}:t[1]==="yesterday"?{period:"day",shift:-1}:t[2]?{period:t[2],shift:t[1]==="this"?0:-1}:null:null}var De=e=>e.toLocaleString("en-IN",{maximumFractionDigits:2}),rA=e=>e===null?"new":`${e>0?"+":""}${e.toFixed(1)}%`;function sA(e,t,o,n={}){let A=e.toLowerCase(),i=o.filter(C=>C.type==="number"),r=He(A,o,"number")??i.find(C=>/amount|revenue|sales|total|value/i.test(`${C.key} ${C.label}`))??i[0],s=o.find(C=>C.type==="date")??o.find(C=>/date|time|day|created|month/i.test(`${C.key} ${C.label}`)),a=A.match(/\b(?:which|by|per|each|across|every|top|for each)\s+([\p{L}\p{M}\p{N} _]+)/u)?.[1]??"",l=He(a,o,"text"),g=/how many|number of|count/.test(A),u=g?"count":/average|avg|mean/.test(A)?"avg":/\btotal\b|\bsum\b/.test(A)?"sum":r&&Ec.test(`${r.key} ${r.label}`)?"avg":"sum",d=/drop|decline|decrease|fell|fall|down|worst|lost|shrink|reduc/.test(A),p=/increase|growth|grew|rise|rose|up\b|best|improv|gain/.test(A),B=/lowest|least|smallest|bottom|worst|minimum/.test(A),y=wc(A);if(!r&&!g)return{kind:"unknown",answer:"I couldn't find a numeric column to analyse.",table:[]};let m=g?"rows":r.label;if(y&&s&&(p||d||/change|compare|vs|versus/.test(A))){let C=n.referenceDate?new Date(n.referenceDate):new Date,c=y.shift?nn(C,y.period,y.shift):C,Q=[...gl(t,{dateKey:s.key,metricKey:r?.key??s.key,groupKey:l?.key,agg:u,period:y.period,referenceDate:c,toDate:y.shift===0}).rows].sort((oe,se)=>d?oe.change-se.change:se.change-oe.change),k=Q.map(oe=>({[l?.label??"Group"]:oe.group,Current:De(oe.current),Previous:De(oe.previous),Change:De(oe.change),"Change %":rA(oe.changePct)}));if(!Q.length)return{kind:"period-change",answer:`No ${m} data in this ${y.period} or the one before.`,table:k};let N=Q[0],H=`${y.shift?"last":"this"} ${y.period} vs the ${y.period} before`,V=N.change===0?"did not change":N.change<0?`dropped ${De(Math.abs(N.change))}`:`rose ${De(N.change)}`,T=`${m} ${V} (${De(N.previous)} \u2192 ${De(N.current)}, ${rA(N.changePct)}) \u2014 ${H}.`,G=d&&N.change>=0||p&&N.change<=0;return{kind:"period-change",answer:l?G?`No ${l.label.toLowerCase()} ${d?"dropped":"grew"}. Closest is ${N.group}: ${T}`:`${N.group}: ${T}`:T,table:k}}if(/trend|over time|month by month|week by week/.test(A)&&s&&r){let C=/week/.test(A)?"week":/day|daily/.test(A)?"day":/year/.test(A)?"year":"month",c=cl(t,s.key,r.key,C,u),I=c.map(H=>({Period:H.start.toISOString().slice(0,10),[r.label]:De(H.value)}));if(c.length<2)return{kind:"trend",answer:`Not enough ${C}s of data for a trend.`,table:I};let Q=c[0].value,k=c[c.length-1].value,N=c.reduce((H,V)=>V.value>H.value?V:H);return{kind:"trend",answer:`${r.label} went from ${De(Q)} to ${De(k)} over ${c.length} ${C}s (${rA(Q?(k-Q)/Math.abs(Q)*100:null)}). Peak: ${De(N.value)} in the ${C} of ${N.start.toISOString().slice(0,10)}.`,table:I}}if(l){let C=ll(t,l.key,r?.key??null,u),c=B?[...C].reverse():C,I=c.map(k=>({[l.label]:k.group,[`${u} of ${m}`]:De(k.value),Rows:k.count}));if(!c.length)return{kind:"group",answer:"No data.",table:I};let Q=c[0];return{kind:"group",answer:`${Q.group} has the ${B?"lowest":"highest"} ${u==="sum"?"total":u==="avg"?"average":u} ${m}: ${De(Q.value)} (across ${c.length} ${l.label.toLowerCase()} groups).`,table:I}}let w=g?t.map(()=>1):t.map(C=>An(C[r.key])).filter(C=>C!==null),b=jt(w,u);return{kind:"total",answer:`${u==="avg"?"Average":u==="count"?"Count of":u==="sum"?"Total":u} ${m}: ${De(b)} across ${t.length} row(s).`,table:[{Metric:m,Aggregation:u,Value:De(b)}]}}x();function dl(e){let t=Le(e),o={title:"",description:"",language:"",headings:[],landmarks:{},counts:{links:0,buttons:0,images:0,forms:0,tables:0,fields:0},unlabeledFields:[],imagesWithoutAlt:[],purpose:""};if(!t)return o;let n=Gt(t)?t:t.ownerDocument,A=ee(t,"h1,h2,h3,h4,h5,h6").map(g=>({level:Number(g.tagName[1]),text:Be(g.textContent??"",80)})),i={};for(let[g,u]of Object.entries({header:"header,[role='banner']",navigation:"nav,[role='navigation']",main:"main,[role='main']",search:"search,[role='search']",footer:"footer,[role='contentinfo']"}))i[g]=ee(t,u).length;let r=ee(t,"input,select,textarea").filter(g=>!["hidden","submit","button","reset","image"].includes((g.getAttribute("type")??"text").toLowerCase())),s=r.filter(g=>!Ye(g)).map(g=>({type:g.tagName==="INPUT"?g.getAttribute("type")??"text":g.tagName.toLowerCase(),hint:g.getAttribute("placeholder")||g.getAttribute("name")||"",selector:je(g)})),a=ee(t,"img:not([alt])").map(g=>({src:g.getAttribute("src")??"",selector:je(g)})),l={title:n.title,description:Ce(n.querySelector('meta[name="description"]')?.getAttribute("content")),language:n.documentElement.getAttribute("lang")??"",headings:A,landmarks:i,counts:{links:ee(t,"a[href]").length,buttons:ee(t,"button,[role='button'],input[type='submit']").length,images:ee(t,"img").length,forms:ee(t,"form,[role='form']").length,tables:ee(t,"table,[role='grid'],[role='table']").length,fields:r.length},unlabeledFields:s,imagesWithoutAlt:a,purpose:""};return l.purpose=xc(l,r),l}function xc(e,t){let o=e.headings.find(r=>r.level===1)?.text||e.title||"This page",n=t.map(r=>`${r.getAttribute("type")} ${r.getAttribute("name")} ${Ye(r)}`).join(" ").toLowerCase(),A=[];/password/.test(n)?A.push("sign in or create an account"):(/search|query|వెతుకు/.test(n)||e.landmarks.search)&&A.push("search"),/message|comment|feedback|contact|enquiry/.test(n)&&A.push("send a message"),/card|payment|upi|amount/.test(n)&&A.push("make a payment"),e.counts.tables&&A.push(`browse ${e.counts.tables} table(s) of data`),!A.length&&e.counts.forms&&A.push(`fill in ${e.counts.forms} form(s)`),A.length||A.push("read content");let i=e.headings.filter(r=>r.level===2).slice(0,5).map(r=>r.text);return[`"${o}" lets you ${A.join(", ")}.`,e.description?`It describes itself as: ${Be(e.description,140)}`:"",i.length?`Main sections: ${i.join(" \xB7 ")}.`:""].filter(Boolean).join(" ")}var kc=[["missing-labels",/label|unlabel|లేబుల్/i],["images",/image|alt text|picture|photo|చిత్ర/i],["structure",/heading|structure|outline|section|landmark|శీర్షిక/i],["forms",/form|field|input|ఫారం/i],["links",/link|లింక్/i],["counts",/how many|count|ఎన్ని/i],["purpose",/what (does|is)|purpose|about|summar|explain|ఏమి|గురించి/i]];function ul(e){for(let[t,o]of kc)if(o.test(e))return t;return"unknown"}async function aA(e,t={}){let o=dl(t.root),n=ul(e);switch(n){case"missing-labels":return o.unlabeledFields.length?{intent:n,answer:`${o.unlabeledFields.length} of ${o.counts.fields} field(s) have no label: ${o.unlabeledFields.map(A=>`${A.type}${A.hint?` ("${A.hint}")`:""}`).join(", ")}.`,targets:o.unlabeledFields.map(A=>A.selector),suggestions:["Add a visible <label for=\u2026> to each field.","Run the Accessibility Copilot to add aria-labels from placeholders as a quick fix."]}:{intent:n,answer:`All ${o.counts.fields} form field(s) have labels.`,targets:[],suggestions:[]};case"images":return{intent:n,answer:o.imagesWithoutAlt.length?`${o.imagesWithoutAlt.length} of ${o.counts.images} image(s) have no alt text.`:`All ${o.counts.images} image(s) have alt text.`,targets:o.imagesWithoutAlt.map(A=>A.selector),suggestions:o.imagesWithoutAlt.length?['Describe meaningful images in alt; use alt="" for decorative ones.']:[]};case"structure":{let A=o.headings.slice(0,15).map(r=>`${" ".repeat(r.level-1)}h${r.level} ${r.text}`).join(`
1534
1534
  `),i=Object.entries(o.landmarks).filter(([,r])=>r===0).map(([r])=>r);return{intent:n,answer:`${o.headings.length} heading(s).
1535
1535
  ${A}${i.length?`
1536
1536
  Missing landmarks: ${i.join(", ")}.`:""}`,targets:[],suggestions:i.includes("main")?["Wrap the primary content in <main>."]:[]}}case"forms":{let A=Bo({root:t.root});return{intent:n,answer:A.length?A.map(i=>i.summary).join(`
1537
- `):"There are no forms on this page.",targets:A.flatMap(i=>i.findings.map(r=>r.selector).filter(r=>!!r)),suggestions:A.flatMap(i=>i.findings.slice(0,3).map(r=>r.suggestion))}}case"links":case"counts":{let A=o.counts;return{intent:n,answer:`${A.links} links, ${A.buttons} buttons, ${A.fields} form fields in ${A.forms} form(s), ${A.images} images, ${A.tables} tables.`,targets:[],suggestions:[]}}case"purpose":case"unknown":{let A=o.purpose;if(t.summarize)try{let r=Le(t.root),s=Ce((r&&Gt(r)?r.body:r)?.textContent).slice(0,4e3);A=await t.summarize(s)||A}catch{}let i=[];return o.unlabeledFields.length&&i.push(`${o.unlabeledFields.length} form field(s) need labels.`),o.imagesWithoutAlt.length&&i.push(`${o.imagesWithoutAlt.length} image(s) need alt text.`),{intent:n,answer:A,targets:[],suggestions:i}}}}x();var ml="highlight|mark|flag|sort|order|rank|arrange|summari[sz]e|summary|recap|count|how many|open|select|pick|show|filter|find|list|clear|reset|remove|detect|spot|tell";function rn(e){return e.replace(/[?!]/g," ").split(/\s*(?:;|\.(?!\d)\s*|,?\s*\band then\b|,?\s*\bthen\b|,?\s*\bafter that\b|,?\s*\bfinally\b|,?\s*\bnext\b|ఆ తర్వాత)\s*/i).flatMap(n=>n.split(new RegExp(`\\s*(?:,|\\band\\b)\\s+(?=(?:${ml})\\b)`,"i"))).map(n=>n.trim()).filter(n=>n.length>1).map(n=>({action:kc(n),text:n}))}function kc(e){let t=e.toLowerCase();return/^(clear|reset|remove)\b/.test(t)?"clear":/unusual|anomal|outlier|suspicious|odd ones|duplicate/.test(t)?"anomalies":/summari[sz]e|summary|what changed|recap|overview/.test(t)?"summarize":/^(highlight|mark|flag)\b/.test(t)?"highlight":/^(sort|order|rank|arrange)\b/.test(t)?"sort":/^(count|how many)\b/.test(t)?"count":/^(open|go to)\b/.test(t)&&!/filtered|results?/.test(t)?"open":/^(select|pick)\b/.test(t)?"select":"filter"}function Sc(e){return e.replace(new RegExp(`^\\s*(?:${ml}|open|go to)\\b`,"i")," ").replace(/\b(the|filtered|results?|rows?|records?|entries|items?|ones|them|those|only|me|all)\b/gi," ").replace(/\s+/g," ").trim()}function Il(e,t){let o=t.find(i=>i.key===e.key)?.label??e.key,n=Array.isArray(e.value)?`${e.value[0]}\u2013${e.value[1]}`:typeof e.value=="number"?e.value.toLocaleString("en-IN",{maximumFractionDigits:2}):`"${e.value}"`,A={contains:"contains",equals:"is",startsWith:"starts with",endsWith:"ends with",greaterThan:">",lessThan:"<",between:"between"}[e.operator];return`${o} ${A} ${n}`}async function lA(e,t,o={}){let n=rn(e),{columns:A,data:i}=t,r=[...t.filters??[]],s=[],a=null,l=[],g=()=>ct(i,A,{filters:r,search:s,sort:a,limit:null,notes:[],explanation:""}),u={rows:g().length,filters:[...r]},d=[],p=()=>({...t,filters:r});for(let y=0;y<n.length;y++){let m=n[y],w=Sc(m.text),b;try{switch(m.action){case"clear":{r=[],s=[],a=null,l=[],t.onFiltersChange?.([]),t.onSortChange?.(null),t.onHighlightRows?.([]),b={...m,success:!0,message:`Cleared filters, sorting and highlights. ${i.length} row(s) shown.`};break}case"filter":{let C=Rt(w,A,{data:i});if(!C.filters.length&&!C.search.length&&!C.sort){b={...m,success:!0,message:`Showing ${g().length} row(s) with the current filters.`};break}for(let Q of C.filters)r=[...r.filter(k=>k.key!==Q.key),Q];s=[...s,...C.search],C.sort&&(a=C.sort,t.onSortChange?.(a)),t.onFiltersChange?.(r);let c=g(),I=c.map(Q=>Qe(Q,t.rowKey)).filter(Boolean);C.search.length&&I.length&&(l=I,t.onHighlightRows?.(I)),b={...m,success:!0,message:`${c.length} row(s) now shown. ${C.explanation}`,ids:I};break}case"highlight":{let C=g(),c=Rt(w,A,{data:C}),Q=(c.filters.length||c.search.length?ct(C,A,{...c,sort:null,limit:c.limit}):C).map(N=>Qe(N,t.rowKey)).filter(Boolean);if(!Q.length){b={...m,success:!1,message:`Nothing to highlight for "${w||"all rows"}".`};break}let k=_t(p(),Q);k.success&&(l=k.data??Q),b={...m,success:k.success,message:k.success?`Highlighted ${l.length} row(s)${w?` matching "${w}"`:""}.`:k.message,ids:l};break}case"sort":{let c=Rt(m.text,A,{data:i}).sort;if(!c){let Q=He(w,A);Q&&(c={key:Q.key,direction:/desc|high|large|big|most|newest|latest|z.?to.?a/i.test(m.text)?"desc":"asc"})}if(!c){b={...m,success:!1,message:`Which column should I sort by? Columns: ${A.map(Q=>Q.label).join(", ")}.`};break}a=c,t.onSortChange?.(a);let I=A.find(Q=>Q.key===a.key)?.label??a.key;b={...m,success:!0,message:`Sorted by ${I} (${a.direction==="desc"?"high \u2192 low":"low \u2192 high"}).`};break}case"count":{b={...m,success:!0,message:`${g().length} row(s) shown${l.length?`, ${l.length} highlighted`:""}.`};break}case"anomalies":{let C=g(),c=tn(C,A,{rowKey:t.rowKey}),I=Array.from(new Set(c.map(Q=>Q.rowId)));if(I.length){let Q=_t(p(),I);Q.success&&(l=Q.data??I)}b={...m,success:!0,message:c.length?`${I.length} unusual row(s): ${c.slice(0,5).map(Q=>Q.reason).join(" ")}`:"Nothing unusual in the shown rows.",ids:I};break}case"open":case"select":{let C=g(),I=C.find(N=>w&&Qe(N,t.rowKey).toLowerCase()===w.toLowerCase())??ct(C,A,Rt(w,A,{data:C}))[0]??(w?void 0:C[0]);if(!I){b={...m,success:!1,message:`No row matches "${w}".`};break}let Q=Qe(I,t.rowKey),k=m.action==="open"?yo(p(),Q):ho(p(),Q);b={...m,success:k.success,message:k.message,ids:[Q]};break}case"summarize":{let C=g();b={...m,success:!0,message:`${pl(u,C.length,r,a,l,A)}
1538
- ${on(C,A)}`};break}}}catch(C){b={...m,success:!1,message:`This step failed: ${C instanceof Error?C.message:String(C)}`}}d.push(b),o.onStep?.(b,y,n.length)}let B=g().length;return{steps:d,before:u,after:{rows:B,filters:r,sort:a,highlighted:l},summary:pl(u,B,r,a,l,A)}}function pl(e,t,o,n,A,i){let r=[`Rows: ${e.rows} \u2192 ${t}.`],s=o.filter(l=>!e.filters.some(g=>JSON.stringify(g)===JSON.stringify(l))),a=e.filters.filter(l=>!o.some(g=>JSON.stringify(l)===JSON.stringify(g)));return s.length&&r.push(`Filters added: ${s.map(l=>Il(l,i)).join("; ")}.`),a.length&&r.push(`Filters removed: ${a.map(l=>Il(l,i)).join("; ")}.`),n&&r.push(`Sorted by ${i.find(l=>l.key===n.key)?.label??n.key} ${n.direction==="desc"?"high \u2192 low":"low \u2192 high"}.`),A.length&&r.push(`${A.length} row(s) highlighted.`),r.join(" ")}x();var vc=/\b(off|disable|stop|remove|no more|turn off|switch off|deactivate)\b|ఆఫ్|ఆపు|తీసివేయి|बंद/i,Dc=[{pattern:/high contrast|contrast|హై కాంట్రాస్ట్|కాంట్రాస్ట్/i,key:"highContrast",name:"High contrast"},{pattern:/dark mode|dark theme|night mode|డార్క్ మోడ్|చీకటి/i,key:"darkMode",name:"Dark mode"},{pattern:/reduce motion|less motion|stop animation|animations?|కదలికలు/i,key:"reduceMotion",name:"Reduced motion"},{pattern:/large targets?|bigger buttons?|big buttons?|larger buttons?|పెద్ద బటన్/i,key:"largeTargets",name:"Large targets"},{pattern:/dyslexia|readable font|easy font/i,key:"dyslexiaFont",name:"Dyslexia-friendly font"},{pattern:/speak on focus|read aloud|read out|screen reader|speech|చదివి వినిపించు/i,key:"speechEnabled",name:"Speak on focus"},{pattern:/skip links?/i,key:"showSkipLinks",name:"Skip links"}],Mc=[[/deuteranop|green.?blind/i,"deuteranopia"],[/protanop|red.?blind/i,"protanopia"],[/tritanop|blue.?blind/i,"tritanopia"],[/grey ?scale|gray ?scale|achromat|black and white/i,"achromatopsia"]],gA=.1,Cl=.8,fl=1.3;function hl(e,t={}){let o=e.trim().toLowerCase();if(!o)return null;if(/\b(next|down)\s+(row|line|record|item)\b|తర్వాతి (వరుస|అంశం)/.test(o))return{type:"grid",action:"next-row",say:"Next row."};if(/\b(previous|prev|back|up)\s+(row|line|record|item)\b|ముందరి (వరుస|అంశం)|వెనుక (వరుస|అంశం)/.test(o))return{type:"grid",action:"previous-row",say:"Previous row."};if(/\bfirst\s+(row|record|item)\b|మొదటి (వరుస|అంశం)/.test(o))return{type:"grid",action:"first-row",say:"First row."};if(/\blast\s+(row|record|item)\b|చివరి (వరుస|అంశం)/.test(o))return{type:"grid",action:"last-row",say:"Last row."};if(/\b(open|expand|read)\s+(this\s+)?(row|record|item)\b|ఈ (వరుస|అంశం) తెరువు/.test(o))return{type:"grid",action:"open-row",say:"Opening row."};if(/\b(reset|default|restore)\b.*\b(settings?|accessibility|everything|all)\b|^reset$|రీసెట్/.test(o))return{type:"reset",say:"Accessibility settings reset."};let n=t.fontSizeMultiplier??1,A=r=>Math.round(Math.min(fl,Math.max(Cl,r))*100)/100;if(/\b(bigger|larger|increase|zoom in)\b.*\b(text|font|letters?)\b|\b(text|font)\b.*\b(bigger|larger|up)\b|పెద్ద అక్షరాలు|అక్షరాలు పెద్ద/.test(o)){let r=A(n+gA);return{type:"setting",patch:{fontSizeMultiplier:r},say:`Text size ${Math.round(r*100)}%.`}}if(/\b(smaller|decrease|reduce|zoom out)\b.*\b(text|font|letters?)\b|\b(text|font)\b.*\b(smaller|down)\b|చిన్న అక్షరాలు|అక్షరాలు చిన్న/.test(o)){let r=A(n-gA);return{type:"setting",patch:{fontSizeMultiplier:r},say:`Text size ${Math.round(r*100)}%.`}}if(/\b(normal|default|reset)\b.*\b(text|font)\s*(size)?\b/.test(o))return{type:"setting",patch:{fontSizeMultiplier:1},say:"Text size 100%."};let i=vc.test(o);for(let[r,s]of Mc)if(r.test(o))return i?{type:"setting",patch:{colorBlindMode:"none"},say:"Colour filter off."}:{type:"setting",patch:{colorBlindMode:s},say:`${s} filter on.`};if(/colou?r.?blind/.test(o)&&i)return{type:"setting",patch:{colorBlindMode:"none"},say:"Colour filter off."};for(let r of Dc){if(!r.pattern.test(o))continue;let s=/\btoggle\b/.test(o)?!t[r.key]:!i;return r.key==="reduceMotion"&&!/reduce motion|less motion|కదలికలు తగ్గించు/.test(o)&&/animations?/.test(o)&&(s=i||/\bno\b/.test(o)),{type:"setting",patch:{[r.key]:s},say:`${r.name} ${s?"on":"off"}.`}}return null}var cA={highContrast:!1,darkMode:!1,reduceMotion:!1,largeTargets:!1,dyslexiaFont:!1,speechEnabled:!1,colorBlindMode:"none",fontSizeMultiplier:1};function yl(e,t={}){if(!$e())return null;let o=t.root??document,n=t.rowSelector??"[data-yuktai-row-id], [role='row']",A=Array.from(o.querySelectorAll(n)).filter(l=>!l.querySelector("th,[role='columnheader']"));if(!A.length)return null;let i=document.activeElement?.closest(n),r=i?A.indexOf(i):-1;if(e==="open-row"){let l=r>=0?A[r]:A[0];return l.click(),l}let s=e==="first-row"?0:e==="last-row"?A.length-1:e==="next-row"?Math.min(A.length-1,r+1):Math.max(0,r-1),a=A[s];return a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1"),a.focus(),a.scrollIntoView?.({block:"nearest"}),a}function dA(e={}){let t={enabled:!0,...cA,...e.initial},o=null,n=!1,A=async l=>e.apply?e.apply(l):ke.execute(l),i=l=>{if(e.speak===!1||!$e()||!("speechSynthesis"in window))return;let g=new SpeechSynthesisUtterance(l);g.lang=e.lang??"en-IN",window.speechSynthesis.cancel(),window.speechSynthesis.speak(g)};async function r(l){let g=hl(l,t);if(e.onTranscript?.(l,g),!g)return null;if(g.type==="grid"){let u=yl(g.action,{root:e.gridRoot});return i(u?g.say:"No table rows found."),g}return t=g.type==="reset"?{...t,...cA}:{...t,...g.patch},await A(t),i(g.say),g}function s(){if(!$e()||n)return n;let l=window,g=l.SpeechRecognition??l.webkitSpeechRecognition;return g?(o=new g,o.lang=e.lang??"en-IN",o.continuous=!0,o.interimResults=!1,o.onresult=u=>{let d=u.results,p=d[d.length-1];p?.[0]?.transcript&&r(p[0].transcript)},o.onend=()=>{n&&o?.start()},o.onerror=u=>{(u.error==="not-allowed"||u.error==="service-not-allowed")&&(n=!1)},n=!0,o.start(),!0):!1}function a(){n=!1,o?.stop(),o=null}return{start:s,stop:a,handle:r,isListening:()=>n,getConfig:()=>({...t})}}var D=require("react/jsx-runtime"),Gc=/\b(trend|over time|this (week|month|quarter|year)|last (week|month|quarter|year)|compare|versus|vs)\b|\b(by|per|each|which)\b.*\b(total|average|avg|sum|drop|increase|growth|highest|lowest|most|least)\b|\b(total|average|avg|sum)\b.*\b(by|per|each)\b/i;function Nc(e){let{data:t,rowKey:o="id"}=e,n=(0,X.useMemo)(()=>mt(e.columns),[e.columns]),[A,i]=(0,X.useState)([]),[r,s]=(0,X.useState)(null),[a,l]=(0,X.useState)([]),[g,u]=(0,X.useState)(""),[d,p]=(0,X.useState)(null),[B,y]=(0,X.useState)([]),[m,w]=(0,X.useState)([]),[b,C]=(0,X.useState)(!1),c=(0,X.useRef)(A);c.current=A;let I=(0,X.useCallback)(()=>({data:t,columns:n,rowKey:o,filters:c.current,onFiltersChange:H=>{c.current=H,i(H)},onSortChange:s,onHighlightRows:l,onOpenRow:e.onOpenRow,onSelectRow:H=>l([H])}),[t,n,o,e.onOpenRow]),Q=(0,X.useCallback)(async H=>{let V=H.trim();if(V){C(!0),w([]),y([]);try{if(rn(V).length>1){let T=[],G=await lA(V,I(),{onStep:S=>w((T.push(S),[...T]))});p("tasks"),u(G.summary)}else if(Gc.test(V)){let T=ct(t,n,{filters:c.current,search:[],sort:null,limit:null,notes:[],explanation:""}),G=sA(V,T,n,{referenceDate:e.referenceDate});p("insight"),u(G.answer),y(G.table)}else{let T=AA(V,I());p(T.kind),u(T.message)}}finally{C(!1)}}},[I,t,n,e.referenceDate]),k=(0,X.useCallback)(()=>{c.current=[],i([]),s(null),l([]),u(""),p(null),y([]),w([])},[]),N=(0,X.useMemo)(()=>ct(t,n,{filters:A,search:[],sort:r,limit:null,notes:[],explanation:""}),[t,n,A,r]);return{gridData:N,highlightIds:a,filters:A,sort:r,ask:Q,reset:k,answer:g,kind:d,table:B,steps:m,busy:b,visibleIds:N.map(H=>Qe(H,o))}}var Bl={border:"1px solid color-mix(in srgb, CanvasText 20%, transparent)",borderRadius:12,padding:16,background:"Canvas",color:"CanvasText",font:"inherit"},fe={minHeight:44,padding:"8px 14px",borderRadius:8,border:"1px solid color-mix(in srgb, CanvasText 35%, transparent)",background:"ButtonFace",color:"ButtonText",font:"inherit",cursor:"pointer"},uA={...fe,flex:1,minWidth:0,background:"Field",color:"FieldText",cursor:"text"},an={opacity:.75,fontSize:"0.9em"};function IA({rows:e}){if(!e.length)return null;let t=Object.keys(e[0]);return(0,D.jsx)("div",{style:{overflowX:"auto",marginTop:12},children:(0,D.jsxs)("table",{style:{borderCollapse:"collapse",width:"100%"},children:[(0,D.jsx)("thead",{children:(0,D.jsx)("tr",{children:t.map(o=>(0,D.jsx)("th",{scope:"col",style:{textAlign:"left",padding:"6px 8px",borderBottom:"1px solid currentColor"},children:o},o))})}),(0,D.jsx)("tbody",{children:e.slice(0,50).map((o,n)=>(0,D.jsx)("tr",{children:t.map(A=>(0,D.jsx)("td",{style:{padding:"6px 8px",borderBottom:"1px solid color-mix(in srgb, CanvasText 12%, transparent)"},children:o[A]},A))},n))})]})})}function bl(e,t,o){let n=URL.createObjectURL(new Blob([t],{type:o})),A=document.createElement("a");A.href=n,A.download=e,A.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}function Rc({grid:e,placeholder:t="Ask about this data, e.g. \u201Coverdue and over \u20B910,000\u201D",examples:o=[],style:n}){let[A,i]=(0,X.useState)(""),r=s=>{s.preventDefault(),e.ask(A)};return(0,D.jsxs)("section",{"data-yuktai-panel":"","aria-label":"Data assistant",style:{...Bl,...n},children:[(0,D.jsxs)("form",{onSubmit:r,style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,D.jsx)("label",{htmlFor:"yuktai-grid-ask",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:"Question about the data"}),(0,D.jsx)("input",{id:"yuktai-grid-ask",value:A,onChange:s=>i(s.target.value),placeholder:t,style:uA}),(0,D.jsx)("button",{type:"submit",style:fe,disabled:e.busy,children:e.busy?"Working\u2026":"Ask"}),(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>{i(""),e.reset()},children:"Reset"})]}),o.length>0&&(0,D.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",marginTop:8},children:o.map(s=>(0,D.jsx)("button",{type:"button",style:{...fe,minHeight:36,fontSize:"0.85em"},onClick:()=>{i(s),e.ask(s)},children:s},s))}),(0,D.jsx)("div",{"aria-live":"polite",style:{marginTop:12,whiteSpace:"pre-line"},children:e.answer}),e.steps.length>0&&(0,D.jsx)("ol",{style:{marginTop:8,paddingLeft:20},children:e.steps.map((s,a)=>(0,D.jsxs)("li",{style:{marginBottom:4},children:[(0,D.jsx)("span",{"aria-hidden":"true",children:s.success?"\u2705 ":"\u26A0\uFE0F "}),(0,D.jsx)("strong",{children:s.text})," \u2014 ",(0,D.jsx)("span",{style:{whiteSpace:"pre-line"},children:s.message})]},a))}),(0,D.jsx)(IA,{rows:e.table})]})}var sn=[["copilot","Copilot"],["qa","QA report"],["forms","Forms"],["design","Design"],["ask","Ask page"],["voice","Voice"]];function pA({defaultTab:e="copilot",voiceLang:t="en-IN",generate:o,engine:n,style:A}){let[i,r]=(0,X.useState)(e),s=(0,X.useRef)([]),a=(l,g)=>{let u=l.key==="ArrowRight"?1:l.key==="ArrowLeft"?-1:0;if(!u)return;l.preventDefault();let d=(g+u+sn.length)%sn.length;r(sn[d][0]),s.current[d]?.focus()};return(0,D.jsxs)("section",{"data-yuktai-panel":"","aria-label":"yuktai agentic tools",style:{...Bl,...A},children:[(0,D.jsx)("div",{role:"tablist","aria-label":"Tools",style:{display:"flex",gap:6,flexWrap:"wrap",marginBottom:12},children:sn.map(([l,g],u)=>(0,D.jsx)("button",{ref:d=>{s.current[u]=d},role:"tab",id:`yuktai-tab-${l}`,"aria-selected":i===l,"aria-controls":`yuktai-tabpanel-${l}`,tabIndex:i===l?0:-1,onClick:()=>r(l),onKeyDown:d=>a(d,u),style:{...fe,fontWeight:i===l?700:400,outlineOffset:2,borderWidth:i===l?2:1},children:g},l))}),(0,D.jsxs)("div",{role:"tabpanel",id:`yuktai-tabpanel-${i}`,"aria-labelledby":`yuktai-tab-${i}`,children:[i==="copilot"&&(0,D.jsx)(Tc,{}),i==="qa"&&(0,D.jsx)(Fc,{}),i==="forms"&&(0,D.jsx)(Lc,{}),i==="design"&&(0,D.jsx)(Pc,{}),i==="ask"&&(0,D.jsx)(Yc,{generate:o,engine:n}),i==="voice"&&(0,D.jsx)(Uc,{lang:t})]})]})}function Tc(){let e=(0,X.useRef)(null),[t,o]=(0,X.useState)(null),[n,A]=(0,X.useState)(null),[i,r]=(0,X.useState)("");(0,X.useEffect)(()=>(e.current=Zn({onUpdate:o}),e.current.scan(),()=>e.current?.stop()),[]);let s=e.current,a=t?.report?.issues??[];return(0,D.jsxs)("div",{children:[(0,D.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>t?.watching?s?.stop():s?.start(),children:t?.watching?"Stop watching":"Watch page live"}),(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>s?.scan(),children:"Scan now"}),(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>r(`${s?.applyAllFixes().filter(l=>l.applied).length??0} fix(es) applied.`),children:"Apply safe fixes"}),(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>r(`${s?.undoAll()??0} change(s) undone.`),children:"Undo all"})]}),(0,D.jsxs)("p",{"aria-live":"polite",style:{marginTop:12},children:[t?.report?.summary," ",i]}),(0,D.jsx)("ul",{style:{listStyle:"none",padding:0,margin:0},children:a.slice(0,40).map(l=>(0,D.jsxs)("li",{style:{borderTop:"1px solid color-mix(in srgb, CanvasText 12%, transparent)",padding:"8px 0"},children:[(0,D.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,D.jsx)("span",{style:{...an,minWidth:70},children:l.severity}),(0,D.jsx)("span",{style:{flex:1},children:l.message}),(0,D.jsx)("button",{type:"button",style:fe,"aria-expanded":n===l.id,onClick:()=>A(n===l.id?null:l.id),children:"Why?"}),l.autoFixable&&(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>r(s?.applyFix(l.id).message??""),children:"Fix"})]}),n===l.id&&(0,D.jsx)("p",{style:{whiteSpace:"pre-line",margin:"8px 0 0"},children:s?.explain(l.id)})]},l.id))})]})}function Fc(){let[e,t]=(0,X.useState)(null);return(0,D.jsxs)("div",{children:[(0,D.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>t(gt()),children:"Run QA check"}),e&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>bl("accessibility-report.md",Xn(e),"text/markdown"),children:"Download .md"}),(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>bl("accessibility-report.json",jn(e),"application/json"),children:"Download .json"})]})]}),e&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("p",{"aria-live":"polite",style:{marginTop:12},children:[(0,D.jsx)("strong",{children:e.passed?"PASS":"FAIL"})," \u2014 ",e.summary]}),(0,D.jsx)(IA,{rows:e.checks.map(o=>({Check:o.title,Result:o.passed?"\u2705 Pass":"\u274C Fail",Issues:o.issueCount}))})]})]})}function Lc(){let[e,t]=(0,X.useState)(null);return(0,D.jsxs)("div",{children:[(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>t(Bo()),children:"Review forms"}),(0,D.jsxs)("div",{"aria-live":"polite",children:[e&&e.length===0&&(0,D.jsx)("p",{children:"No forms on this page."}),e?.map(o=>(0,D.jsxs)("div",{style:{marginTop:12},children:[(0,D.jsx)("p",{children:(0,D.jsx)("strong",{children:o.summary})}),(0,D.jsx)("ul",{children:o.findings.map((n,A)=>(0,D.jsxs)("li",{children:[n.level==="problem"?"Problem: ":"Suggestion: ",n.message," ",(0,D.jsx)("span",{style:an,children:n.suggestion})]},A))})]},o.selector))]})]})}function Pc(){let[e,t]=(0,X.useState)(null);return(0,D.jsxs)("div",{children:[(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>t(eA()),children:"Review design"}),e&&(0,D.jsxs)("div",{"aria-live":"polite",children:[(0,D.jsx)("p",{style:{marginTop:12},children:(0,D.jsx)("strong",{children:e.summary})}),(0,D.jsx)(IA,{rows:Object.entries(e.categories).map(([o,n])=>({Area:o,Score:n.score,Findings:n.findings}))}),(0,D.jsx)("ul",{children:e.findings.map((o,n)=>(0,D.jsxs)("li",{children:["[",o.severity,"] ",o.message," ",(0,D.jsx)("span",{style:an,children:o.suggestion})]},n))})]})]})}function Yc({generate:e,engine:t}){let[o,n]=(0,X.useState)(""),A=(0,X.useRef)(null),i=(0,X.useRef)(t),[r,s]=(0,X.useState)(""),[a,l]=(0,X.useState)([]);return(0,D.jsxs)("div",{children:[(0,D.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!o.trim())return;let d=await aA(o);if(d.intent!=="unknown"&&d.intent!=="purpose"){s(d.answer),l(d.suggestions);return}!A.current||i.current!==t?(A.current=fo({engine:t}),i.current=t):A.current.rebuild();let p=await A.current.ask(o,{generate:e});s(d.intent==="purpose"&&!p.hits.length?d.answer:p.hits.length?p.answer:d.answer),l(d.suggestions)},style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,D.jsx)("label",{htmlFor:"yuktai-page-ask",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:"Question about this page"}),(0,D.jsx)("input",{id:"yuktai-page-ask",value:o,onChange:u=>n(u.target.value),placeholder:"What does this page do? Which fields are missing labels?",style:uA}),(0,D.jsx)("button",{type:"submit",style:fe,children:"Ask"})]}),(0,D.jsx)("p",{"aria-live":"polite",style:{whiteSpace:"pre-line",marginTop:12},children:r}),a.length>0&&(0,D.jsx)("ul",{children:a.map((u,d)=>(0,D.jsx)("li",{children:u},d))})]})}function Uc({lang:e}){let t=(0,X.useMemo)(()=>dA({lang:e,onTranscript:(a,l)=>i(`\u201C${a}\u201D \u2192 ${l?l.say:"not a command"}`)}),[e]),[o,n]=(0,X.useState)(!1),[A,i]=(0,X.useState)(""),[r,s]=(0,X.useState)("");return(0,X.useEffect)(()=>()=>t.stop(),[t]),(0,D.jsxs)("div",{children:[(0,D.jsx)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:(0,D.jsx)("button",{type:"button",style:fe,"aria-pressed":o,onClick:()=>{o?(t.stop(),n(!1)):n(t.start())},children:o?"Stop listening":"Start voice commands"})}),(0,D.jsxs)("form",{onSubmit:a=>{a.preventDefault(),t.handle(r),s("")},style:{display:"flex",gap:8,marginTop:8,flexWrap:"wrap"},children:[(0,D.jsx)("label",{htmlFor:"yuktai-voice-typed",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:"Type a command"}),(0,D.jsx)("input",{id:"yuktai-voice-typed",value:r,onChange:a=>s(a.target.value),placeholder:"Or type: turn on high contrast",style:uA}),(0,D.jsx)("button",{type:"submit",style:fe,children:"Run"})]}),(0,D.jsx)("p",{"aria-live":"polite",style:{marginTop:12},children:A}),(0,D.jsx)("p",{style:an,children:"Try: \u201Cturn on high contrast\u201D, \u201Cbigger text\u201D, \u201Cdark mode off\u201D, \u201Cnext row\u201D, \u201C\u0C2A\u0C46\u0C26\u0C4D\u0C26 \u0C05\u0C15\u0C4D\u0C37\u0C30\u0C3E\u0C32\u0C41\u201D, \u201Creset settings\u201D."})]})}Mt();var Y=require("react/jsx-runtime"),vl="yuktai-tools-open";async function $c(){try{if(typeof window>"u")return!1;let e=window;if(e.LanguageModel)try{if(typeof e.LanguageModel.availability=="function"){let o=await e.LanguageModel.availability({..._e});if(o==="readily"||o==="available"||o==="downloadable")return!0}else return!0}catch{}if(e.Summarizer)try{let o=await e.Summarizer.availability?.({...Xe});if(!o||o==="readily"||o==="available")return!0}catch{}if(e.Rewriter)try{let o=await e.Rewriter.availability?.({...Xe});if(!o||o==="readily"||o==="available")return!0}catch{}if(e.Writer)try{let o=await e.Writer.availability?.({...Xe});if(!o||o==="readily"||o==="available")return!0}catch{}let t=e.ai||globalThis.ai;if(t){if(t.languageModel?.availability)try{let o=await t.languageModel.availability({..._e});if(o==="readily"||o==="available")return!0}catch{}if(t.languageModel&&typeof t.languageModel.create=="function"||t.summarizer||t.rewriter||t.writer||t.languageModel)return!0}return!!(e.Translator||e.translation?.canTranslate)}catch{return!1}}function ln({position:e="left",children:t,config:o={},showRag:n=!1,showAgent:A=!1,showAccessibility:i,showVibeCoder:r,launcher:s,engine:a,showPageTools:l=!1,pageToolsTab:g="copilot",voiceLang:u}){let d=i!==void 0||r!==void 0||s!==void 0,p=d?!!i:!0,B=d?!!r:A,y=n,m=A,[w,b]=(0,O.useState)(!1),C=!s||w,[c,I]=(0,O.useState)(!1),[Q,k]=(0,O.useState)(Nn),[N,H]=(0,O.useState)(null),[V,T]=(0,O.useState)(!1),[G,S]=(0,O.useState)(!1),[oe,se]=(0,O.useState)(!1),W=O.default.useRef(null),[re,ge]=(0,O.useState)(!1),[P,ae]=(0,O.useState)(""),[J,$]=(0,O.useState)(""),[te,_]=(0,O.useState)(!1),[Z,Me]=(0,O.useState)(null),[Te,q]=(0,O.useState)("idle"),[le,me]=(0,O.useState)(!1),[ye,Ge]=(0,O.useState)(""),[be,We]=(0,O.useState)(""),[Ne,Qt]=(0,O.useState)(!1),[Je,ot]=(0,O.useState)([]),[xe,Fe]=(0,O.useState)(null),Re=M=>{let z=[],we=s?84:24;for(let ro of M)z.push(we),ro&&(we+=60);return z},[Ve,Et,Tt,Mo]=d?Re([p,y,m,B]):[24,84,n?144:84,204],[Ke,nt]=(0,O.useState)(!1),[At,dt]=(0,O.useState)(!1),to=Math.max(s?24:-36,p?Ve:-36,y?Et:-36,m?Tt:-36,B?Mo:-36)+60;(0,O.useEffect)(()=>{(c||re||le||Ke)&&dt(!1)},[c,re,le,Ke]);let wt=a!==void 0,[Go,xt]=(0,O.useState)([]),[kt,St]=(0,O.useState)(null),rt=O.default.useRef(null);(0,O.useEffect)(()=>{if(typeof window>"u")return;let M=window;!!(M.LanguageModel||M.ai?.languageModel)&&G?(Me("gemini"),Fe("gemini")):lo()&&(Me("transformers"),Fe("transformers"))},[G]),(0,O.useEffect)(()=>{if(Z!=="transformers")return;let M=setInterval(()=>q(Ht()),500);return()=>clearInterval(M)},[Z]);let oo=M=>M.replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/#+\s/g,"").trim(),vt=(0,O.useCallback)(async()=>{let M=P.trim();if(!(!M||te)){_(!0),$(""),xt([]),St(null);try{rt.current?rt.current.rebuild():rt.current=fo({engine:a}),await rt.current.whenEngineReady();let z=performance.now(),we=await rt.current.ask(M,{k:4}),ro=performance.now()-z;if($(we.answer),xt(we.hits.slice(0,3).map(Ft=>Ft.text.length>160?`${Ft.text.slice(0,157)}\u2026`:Ft.text)),St({ms:ro,engine:rt.current.engine,ai:!1}),we.hits.length&&Z){let Ft=we.hits.map(st=>st.text).join(`
1539
- `),io;if(Z==="gemini"){let{askWithContext:st}=await Promise.resolve().then(()=>(qo(),vn));io=await st(M,Ft)}else{q("loading");let{answerFromContext:st}=await Promise.resolve().then(()=>(Jt(),$o));io=await st(M,Ft),q(Ht())}io.success&&io.answer&&($(oo(io.answer)),St(st=>st&&{...st,ai:!0}))}}catch{$(z=>z||"\u26A0\uFE0F Something went wrong.")}_(!1)}},[P,te,Z,a]),no=(0,O.useCallback)(async()=>{if(wt)return vt();if(!(!P.trim()||te)){if(!Z){$("\u26A0\uFE0F No AI engine available.");return}_(!0),$("");try{let M;if(Z==="gemini"){let{askPage:z}=await Promise.resolve().then(()=>(qo(),vn));M=await z(P)}else{q("loading");let{askPageWithTransformers:z}=await Promise.resolve().then(()=>(Jt(),$o));M=await z(P),q("ready")}$(M.success&&M.answer?M.answer.replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/#+\s/g,"").trim():"\u26A0\uFE0F "+(M.error||"No answer found."))}catch{$("\u26A0\uFE0F Something went wrong.")}_(!1)}},[P,te,Z,wt,vt]),No=(0,O.useCallback)(async()=>{if(!ye.trim()||Ne)return;if(!xe){We("\u26A0\uFE0F No AI engine available.");return}Qt(!0),ot([]),We("");let{runAgent:M}=await Promise.resolve().then(()=>(Sl(),kl));await M(ye,xe,z=>{ot(we=>[...we,z.text])}),Qt(!1),We("done")},[ye,Ne,xe]);(0,O.useEffect)(()=>{if(typeof window>"u")return;let z=setTimeout(async()=>{let we=window,ro=await $c();S(ro),se(!!(we.SpeechRecognition||we.webkitSpeechRecognition))},800);return()=>clearTimeout(z)},[]),(0,O.useEffect)(()=>{if(!(typeof window>"u"))try{let M=localStorage.getItem("yuktai-a11y-prefs");M&&k(z=>({...z,...JSON.parse(M)}))}catch{}},[]);let Ao=(0,O.useCallback)(async M=>{let z={enabled:!0,highContrast:M.highContrast,darkMode:M.darkMode,reduceMotion:M.reduceMotion,largeTargets:M.largeTargets,speechEnabled:M.speechEnabled,autoFix:M.autoFix,dyslexiaFont:M.dyslexiaFont,localFont:M.localFont,fontSizeMultiplier:M.fontScale/100,colorBlindMode:M.colorBlindMode,showAuditBadge:M.showAuditBadge,showSkipLinks:!0,showPreferencePanel:!1,plainEnglish:M.plainEnglish,summarisePage:M.summarisePage,translateLanguage:M.translateLanguage,voiceControl:M.voiceControl,smartLabels:M.smartLabels,...o};await ke.execute(z),H(ke.applyFixes(z)),T(!0)},[o]),ie=(0,O.useCallback)(async()=>{try{localStorage.setItem("yuktai-a11y-prefs",JSON.stringify(Q))}catch{}await Ao(Q),I(!1)},[Q,Ao]),vs=(0,O.useCallback)(()=>{k(Nn);try{localStorage.removeItem("yuktai-a11y-prefs")}catch{}let M=document.documentElement;["data-yuktai-high-contrast","data-yuktai-dark","data-yuktai-reduce-motion","data-yuktai-large-targets","data-yuktai-keyboard","data-yuktai-dyslexia"].forEach(z=>M.removeAttribute(z)),document.body.style.filter="",document.body.style.fontFamily="",document.documentElement.style.fontSize="",H(null),T(!1)},[]),Ds=(0,O.useCallback)((M,z)=>{k(we=>({...we,[M]:z}))},[]);(0,O.useEffect)(()=>{let M=z=>{z.key==="Escape"&&(c||re||le||Ke||At?(I(!1),ge(!1),me(!1),nt(!1),dt(!1)):s&&w&&b(!1))};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[c,re,le,Ke,At,s,w]),(0,O.useEffect)(()=>{if(s)try{localStorage.getItem(vl)==="1"&&b(!0)}catch{}},[s]),(0,O.useEffect)(()=>{if(!(!s||typeof document>"u")){document.documentElement.setAttribute("data-yuktai-tools",w?"open":"closed");try{localStorage.setItem(vl,w?"1":"0")}catch{}}},[s,w]);let Ro=(0,O.useCallback)(()=>{b(M=>(M&&(I(!1),ge(!1),me(!1),nt(!1),dt(!1)),!M))},[]);(0,O.useEffect)(()=>{c&&W.current&&ke.trapFocus(W.current)},[c]);let ut=(M,z,we)=>({position:"fixed",bottom:`${M}px`,[e]:"24px",zIndex:9998,width:"52px",height:"52px",borderRadius:"50%",background:z,color:"#fff",border:"none",cursor:"pointer",fontSize:"22px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 16px rgba(0,0,0,0.25)",transition:"transform 0.15s, background 0.2s"}),it=M=>{M.currentTarget.style.transform="scale(1.08)"},It=M=>{M.currentTarget.style.transform="scale(1)"},K=wt?`${a==="ts"?"Page search":"Rust page search"}${Z==="gemini"?" + Gemini Nano":Z==="transformers"?" + Transformers.js":" \xB7 On device"}`:Z==="gemini"?"Gemini Nano \xB7 On device":Z==="transformers"?"Transformers.js \xB7 All devices":"Detecting...",j=wt||!!Z,ne=Z==="transformers"&&Te==="loading"?"Loading model...":"...";return(0,Y.jsxs)(Y.Fragment,{children:[t,s&&(0,Y.jsx)("button",{type:"button","data-yuktai-ui":"true",style:ut(24,w?"#134e4a":"#0f766e",w),"aria-expanded":w,"aria-label":w?"Hide yuktai tools":"Show yuktai tools",title:w?"Hide yuktai tools":"yuktai tools","data-yuktai-launcher":"true",onClick:Ro,onMouseEnter:it,onMouseLeave:It,children:w?(0,Y.jsx)("svg",{"aria-hidden":"true",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:(0,Y.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})}):(0,Y.jsxs)("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Y.jsx)("path",{d:"M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z"}),(0,Y.jsx)("path",{d:"M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z"})]})}),l&&C&&(0,Y.jsx)("button",{type:"button","data-yuktai-ui":"true",style:ut(to,At?"#312e81":"#4338ca",At),"aria-label":"Open page tools","aria-haspopup":"dialog","aria-expanded":At,title:"\u{1F6E0} Page tools: QA report, forms, design, ask, voice","data-yuktai-page-tools":"true",onClick:()=>{dt(M=>!M),I(!1),ge(!1),me(!1),nt(!1)},onMouseEnter:it,onMouseLeave:It,children:"\u{1F6E0}"}),l&&C&&At&&(0,Y.jsxs)("div",{role:"dialog","aria-label":"yuktai page tools","data-yuktai-panel":"true",style:{position:"fixed",bottom:`${to+64}px`,[e]:"24px",zIndex:9999,width:"420px",maxWidth:"calc(100vw - 48px)",maxHeight:`calc(100vh - ${to+88}px)`,minHeight:"160px",overflowY:"auto",boxShadow:"0 8px 32px rgba(0,0,0,0.18)",borderRadius:"16px",background:"Canvas",color:"CanvasText",border:"1px solid color-mix(in srgb, CanvasText 20%, transparent)"},children:[(0,Y.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",position:"sticky",top:0,zIndex:1,background:"Canvas"},children:(0,Y.jsx)("button",{type:"button",onClick:()=>dt(!1),"aria-label":"Close page tools",style:{margin:"6px 6px 0 0",minWidth:32,minHeight:32,borderRadius:8,border:"1px solid #94a3b8",background:"#fff",color:"#0f172a",cursor:"pointer",fontSize:16},children:"\u2715"})}),(0,Y.jsx)(pA,{defaultTab:g,voiceLang:u,engine:a,style:{margin:0,border:0,paddingTop:4}})]}),B&&C&&(0,Y.jsx)("button",{"data-yuktai-ui":"true",style:ut(Mo,Ke?"#92400e":"#b45309",Ke),"aria-label":"Open Vibe Coder",title:"\u26A1 Vibe Coder \u2014 Generate Next.js project",onClick:()=>{nt(M=>!M),me(!1),ge(!1),I(!1)},onMouseEnter:it,onMouseLeave:It,children:"\u26A1"}),B&&C&&Ke&&(0,Y.jsx)(Fn,{position:e,onClose:()=>nt(!1)}),m&&C&&(0,Y.jsx)("button",{"data-yuktai-ui":"true",style:ut(Tt,le?"#065f46":"#047857",le),"aria-label":"Open AI agent","aria-haspopup":"dialog","aria-expanded":le,title:"\u{1F916} AI Agent \u2014 guide me through this page",onClick:()=>{me(M=>!M),ge(!1),I(!1)},onMouseEnter:it,onMouseLeave:It,children:"\u{1F916}"}),m&&C&&le&&(0,Y.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"yuktai AI Agent","data-yuktai-panel":"true",style:{position:"fixed",bottom:`${Tt+64}px`,[e]:"24px",zIndex:9999,width:"300px",maxWidth:"calc(100vw - 48px)",background:"#fff",border:"1px solid #e2e8f0",borderRadius:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.12)",fontFamily:"system-ui,-apple-system,sans-serif",padding:"14px",maxHeight:"70vh",overflowY:"auto"},children:[(0,Y.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"10px"},children:[(0,Y.jsxs)("div",{children:[(0,Y.jsx)("p",{style:{margin:"0 0 2px",fontSize:"13px",fontWeight:600,color:"#0f172a"},children:"\u{1F916} AI Agent"}),(0,Y.jsx)("p",{style:{margin:0,fontSize:"10px",color:"#10b981"},children:xe==="gemini"?"Gemini Nano \xB7 On device":xe==="transformers"?"Transformers.js \xB7 All devices":"Detecting..."})]}),(0,Y.jsx)("button",{onClick:()=>me(!1),"aria-label":"Close agent panel",style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8",fontSize:"18px",lineHeight:1,padding:"2px"},children:"\xD7"})]}),(0,Y.jsx)("p",{style:{margin:"0 0 8px",fontSize:"11px",color:"#64748b"},children:"Tell me what you want to do on this page. I will guide you step by step."}),(0,Y.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",marginBottom:"8px"},children:["Fill this form","Find contact info","What is this page?","Guide me to apply"].map(M=>(0,Y.jsx)("button",{onClick:()=>Ge(M),style:{padding:"3px 8px",borderRadius:"20px",fontSize:"10px",border:"1px solid #e2e8f0",background:"#f8fafc",color:"#64748b",cursor:"pointer"},children:M},M))}),(0,Y.jsxs)("div",{style:{display:"flex",gap:"6px",marginBottom:"8px"},children:[(0,Y.jsx)("input",{type:"text",value:ye,onChange:M=>Ge(M.target.value),onKeyDown:M=>{M.key==="Enter"&&No()},placeholder:"e.g. Help me fill this form",disabled:Ne||!xe,"aria-label":"Tell the agent what to do",style:{flex:1,padding:"8px 10px",borderRadius:"8px",border:"1px solid #e2e8f0",fontSize:"12px",color:"#0f172a",background:xe?"#fff":"#f8fafc",outline:"none",height:"36px"}}),(0,Y.jsx)("button",{onClick:No,disabled:Ne||!ye.trim()||!xe,"aria-label":"Run agent",style:{padding:"8px 12px",borderRadius:"8px",border:"none",background:xe&&ye.trim()&&!Ne?"#10b981":"#e2e8f0",color:xe&&ye.trim()&&!Ne?"#fff":"#94a3b8",fontSize:"12px",fontWeight:600,cursor:xe&&ye.trim()&&!Ne?"pointer":"not-allowed",height:"36px",minWidth:"52px",transition:"background 0.2s"},children:Ne?"...":"Go"})]}),Je.length>0&&(0,Y.jsxs)("div",{style:{padding:"10px 12px",background:"#f0fdf4",border:"1px solid #86efac",borderRadius:"8px",fontSize:"11px",color:"#166534",lineHeight:1.7},children:[Je.map((M,z)=>(0,Y.jsx)("p",{style:{margin:"0 0 2px"},children:M},z)),be==="done"&&(0,Y.jsx)("button",{onClick:()=>{ot([]),Ge(""),We("")},style:{display:"block",marginTop:"6px",background:"none",border:"none",color:"#94a3b8",fontSize:"10px",cursor:"pointer",padding:0},children:"Clear"})]}),!xe&&(0,Y.jsx)("p",{style:{margin:"4px 0 0",fontSize:"10px",color:"#94a3b8"},children:"Enable Gemini Nano via chrome://flags for best results."})]}),y&&C&&(0,Y.jsx)("button",{"data-yuktai-ui":"true",style:ut(Et,re?"#7c3aed":"#6d28d9",re),"aria-label":"Ask a question about this page","aria-haspopup":"dialog","aria-expanded":re,title:`\u{1F4AC} Ask this page \xB7 ${K}`,onClick:()=>{ge(M=>!M),I(!1),me(!1)},onMouseEnter:it,onMouseLeave:It,children:"\u{1F4AC}"}),y&&C&&re&&(0,Y.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Ask this page","data-yuktai-panel":"true",style:{position:"fixed",bottom:`${Et+64}px`,[e]:"24px",zIndex:9999,width:"300px",maxWidth:"calc(100vw - 48px)",background:"#fff",border:"1px solid #e2e8f0",borderRadius:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.12)",fontFamily:"system-ui,-apple-system,sans-serif",padding:"14px"},children:[(0,Y.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"10px"},children:[(0,Y.jsxs)("div",{children:[(0,Y.jsx)("p",{style:{margin:"0 0 2px",fontSize:"13px",fontWeight:600,color:"#0f172a"},children:"\u{1F4AC} Ask this page"}),(0,Y.jsx)("p",{style:{margin:0,fontSize:"10px",color:"#7c3aed"},children:K}),Z==="transformers"&&Te==="loading"&&(0,Y.jsx)("p",{style:{margin:"2px 0 0",fontSize:"9px",color:"#94a3b8"},children:"Downloading model \u2014 first time only"}),Z==="transformers"&&Te==="ready"&&(0,Y.jsx)("p",{style:{margin:"2px 0 0",fontSize:"9px",color:"#10b981"},children:"Model ready \u2705 \u2014 works offline"})]}),(0,Y.jsx)("button",{onClick:()=>ge(!1),"aria-label":"Close ask panel",style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8",fontSize:"18px",lineHeight:1,padding:"2px"},children:"\xD7"})]}),(0,Y.jsxs)("div",{style:{display:"flex",gap:"6px",marginBottom:"8px"},children:[(0,Y.jsx)("input",{type:"text",value:P,onChange:M=>ae(M.target.value),onKeyDown:M=>{M.key==="Enter"&&no()},placeholder:"e.g. What does this page do?",disabled:te||!j,"aria-label":"Ask a question about this page",style:{flex:1,padding:"8px 10px",borderRadius:"8px",border:"1px solid #e2e8f0",fontSize:"12px",color:"#0f172a",background:j?"#fff":"#f8fafc",outline:"none",height:"36px"}}),(0,Y.jsx)("button",{onClick:no,disabled:te||!P.trim()||!j,"aria-label":"Submit question",style:{padding:"8px 12px",borderRadius:"8px",border:"none",background:j&&P.trim()&&!te?"#7c3aed":"#e2e8f0",color:j&&P.trim()&&!te?"#fff":"#94a3b8",fontSize:"12px",fontWeight:600,cursor:j&&P.trim()&&!te?"pointer":"not-allowed",height:"36px",minWidth:"48px",transition:"background 0.2s"},children:te?ne:"Ask"})]}),J&&(0,Y.jsxs)("div",{"aria-live":"polite",style:{padding:"10px",background:"#f5f3ff",borderRadius:"8px",fontSize:"12px",color:"#4c1d95",lineHeight:1.6,maxHeight:wt?"260px":"180px",overflowY:"auto",whiteSpace:"pre-line"},children:[(0,Y.jsx)("strong",{style:{display:"block",marginBottom:"4px",fontSize:"11px",color:"#7c3aed"},children:"\u{1F4AC} Answer"}),J,Go.length>0&&(0,Y.jsxs)("div",{style:{marginTop:"8px"},children:[(0,Y.jsx)("strong",{style:{display:"block",fontSize:"10px",color:"#6d28d9"},children:"From this page"}),(0,Y.jsx)("ul",{style:{margin:"4px 0 0",paddingLeft:"16px",fontSize:"11px",color:"#5b21b6"},children:Go.map((M,z)=>(0,Y.jsx)("li",{style:{marginBottom:"2px"},children:M},z))})]}),kt&&(0,Y.jsxs)("p",{style:{margin:"6px 0 0",fontSize:"10px",color:"#6d28d9"},children:["\u26A1 Found in ",_o(kt.ms)," \xB7 ",kt.engine==="rust"?"Rust":"TS"," \xB7 on device",kt.ai?" \xB7 answer written by AI":""]}),(0,Y.jsx)("button",{onClick:()=>{$(""),ae(""),xt([]),St(null)},style:{display:"block",marginTop:"6px",background:"none",border:"none",color:"#94a3b8",fontSize:"10px",cursor:"pointer",padding:0},children:"Clear"})]}),!j&&(0,Y.jsx)("p",{style:{margin:"4px 0 0",fontSize:"10px",color:"#94a3b8"},children:"Detecting AI engine..."})]}),p&&C&&(0,Y.jsx)("button",{"data-yuktai-ui":"true",style:ut(Ve,V?"#0f766e":"#1a73e8",c),"aria-label":"Open accessibility preferences","aria-haspopup":"dialog","aria-expanded":c,"data-yuktai-pref-toggle":"true",title:"\u267F Accessibility settings",onClick:()=>{I(M=>!M),ge(!1),me(!1)},onMouseEnter:it,onMouseLeave:It,children:"\u267F"}),p&&C&&c&&(0,Y.jsx)(Rn,{ref:W,position:e,settings:Q,report:N,isActive:V,aiSupported:G,voiceSupported:oe,set:Ds,onApply:ie,onReset:vs,onClose:()=>I(!1)})]})}x();var Qo={name:"ai.text",async execute(e){return`\u{1F916} YuktAI says: ${e}`}};x();var Eo={name:"voice.text",async execute(e){return!e||e.trim()===""?"\u{1F3A4} No speech detected":`\u{1F3A4} You said: ${e}`}};x();var ft=class{plugins=new Map;register(t,o){if(!o||typeof o.execute!="function")throw new Error(`Invalid plugin: ${t}`);this.plugins.set(t,o)}use(t){return this.plugins.get(t)}async run(t,o){try{let n=this.use(t);if(!n)throw new Error(`Plugin not found: ${t}`);return await n.execute(o)}catch(n){throw console.error(`[YuktAI Runtime Error in ${t}]:`,n),n}}getPlugins(){return Array.from(this.plugins.keys())}};x();var de=require("react");x();var ue=require("react"),R=require("react/jsx-runtime"),Dl={"en-US":{title:"Grid AI Assistant",subtitle:"Ask about your data",ask:"Ask",placeholder:"Ask or type a command...",listening:"Listening...",send:"Send",close:"Close",open:"Open AI assistant",inputLanguage:"Input language",speakNow:"Speak your question",working:"Working on it\u2026",english:"English",telugu:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",searchStarted:e=>`Searching for "${e}".`,sortedAscending:e=>`Sorted by ${e} in ascending order.`,sortedDescending:e=>`Sorted by ${e} in descending order.`,count:e=>`There are ${e} rows in the grid.`,highest:(e,t,o)=>`The highest ${e} is ${t}, held by ${o}.`,lowest:(e,t,o)=>`The lowest ${e} is ${t}, held by ${o}.`,average:(e,t)=>`The average ${e} is ${t}.`,total:(e,t)=>`The total ${e} is ${t}.`,noData:"There is no data to analyze.",noColumn:"I could not find a column to analyze.",noNumericData:e=>`There is no numeric data in ${e}.`,notFound:e=>`I could not find anything matching "${e}".`,needName:"Please provide a value to look up.",fallback:"I can search, sort, count, and analyze the grid data.",unsupportedVoice:"Voice input is not supported in this browser."},"te-IN":{title:"\u0C17\u0C4D\u0C30\u0C3F\u0C21\u0C4D AI \u0C38\u0C39\u0C3E\u0C2F\u0C15\u0C41\u0C21\u0C41",subtitle:"\u0C2E\u0C40 \u0C21\u0C47\u0C1F\u0C3E \u0C17\u0C41\u0C30\u0C3F\u0C02\u0C1A\u0C3F \u0C05\u0C21\u0C17\u0C02\u0C21\u0C3F",ask:"\u0C05\u0C21\u0C17\u0C02\u0C21\u0C3F",placeholder:"\u0C2A\u0C4D\u0C30\u0C36\u0C4D\u0C28 \u0C32\u0C47\u0C26\u0C3E \u0C06\u0C26\u0C47\u0C36\u0C02 \u0C1F\u0C48\u0C2A\u0C4D \u0C1A\u0C47\u0C2F\u0C02\u0C21\u0C3F...",listening:"\u0C35\u0C3F\u0C02\u0C1F\u0C41\u0C28\u0C4D\u0C28\u0C3E\u0C28\u0C41...",send:"\u0C2A\u0C02\u0C2A\u0C02\u0C21\u0C3F",close:"\u0C2E\u0C42\u0C38\u0C3F\u0C35\u0C47\u0C2F\u0C02\u0C21\u0C3F",open:"AI \u0C38\u0C39\u0C3E\u0C2F\u0C15\u0C41\u0C21\u0C3F\u0C28\u0C3F \u0C24\u0C46\u0C30\u0C35\u0C02\u0C21\u0C3F",inputLanguage:"\u0C07\u0C28\u0C4D\u200C\u0C2A\u0C41\u0C1F\u0C4D \u0C2D\u0C3E\u0C37",speakNow:"\u0C2E\u0C40 \u0C2A\u0C4D\u0C30\u0C36\u0C4D\u0C28 \u0C1A\u0C46\u0C2A\u0C4D\u0C2A\u0C02\u0C21\u0C3F",working:"\u0C1A\u0C47\u0C38\u0C4D\u0C24\u0C41\u0C28\u0C4D\u0C28\u0C3E\u0C28\u0C41\u2026",english:"English",telugu:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",searchStarted:e=>`\u201C${e}\u201D \u0C15\u0C4B\u0C38\u0C02 \u0C36\u0C4B\u0C27\u0C3F\u0C38\u0C4D\u0C24\u0C41\u0C28\u0C4D\u0C28\u0C3E\u0C28\u0C41.`,sortedAscending:e=>`${e}\u0C28\u0C41 \u0C06\u0C30\u0C4B\u0C39\u0C23 \u0C15\u0C4D\u0C30\u0C2E\u0C02\u0C32\u0C4B \u0C05\u0C2E\u0C30\u0C4D\u0C1A\u0C3E\u0C28\u0C41.`,sortedDescending:e=>`${e}\u0C28\u0C41 \u0C05\u0C35\u0C30\u0C4B\u0C39\u0C23 \u0C15\u0C4D\u0C30\u0C2E\u0C02\u0C32\u0C4B \u0C05\u0C2E\u0C30\u0C4D\u0C1A\u0C3E\u0C28\u0C41.`,count:e=>`\u0C17\u0C4D\u0C30\u0C3F\u0C21\u0C4D\u200C\u0C32\u0C4B \u0C2E\u0C4A\u0C24\u0C4D\u0C24\u0C02 ${e} \u0C35\u0C30\u0C41\u0C38\u0C32\u0C41 \u0C09\u0C28\u0C4D\u0C28\u0C3E\u0C2F\u0C3F.`,highest:(e,t,o)=>`\u0C05\u0C24\u0C4D\u0C2F\u0C27\u0C3F\u0C15 ${e} \u0C35\u0C3F\u0C32\u0C41\u0C35 ${t}. \u0C07\u0C26\u0C3F ${o}\u0C15\u0C41 \u0C38\u0C02\u0C2C\u0C02\u0C27\u0C3F\u0C02\u0C1A\u0C3F\u0C28\u0C26\u0C3F.`,lowest:(e,t,o)=>`\u0C05\u0C24\u0C4D\u0C2F\u0C32\u0C4D\u0C2A ${e} \u0C35\u0C3F\u0C32\u0C41\u0C35 ${t}. \u0C07\u0C26\u0C3F ${o}\u0C15\u0C41 \u0C38\u0C02\u0C2C\u0C02\u0C27\u0C3F\u0C02\u0C1A\u0C3F\u0C28\u0C26\u0C3F.`,average:(e,t)=>`${e} \u0C38\u0C17\u0C1F\u0C41 \u0C35\u0C3F\u0C32\u0C41\u0C35 ${t}.`,total:(e,t)=>`${e} \u0C2E\u0C4A\u0C24\u0C4D\u0C24\u0C02 \u0C35\u0C3F\u0C32\u0C41\u0C35 ${t}.`,noData:"\u0C35\u0C3F\u0C36\u0C4D\u0C32\u0C47\u0C37\u0C3F\u0C02\u0C1A\u0C21\u0C3E\u0C28\u0C3F\u0C15\u0C3F \u0C21\u0C47\u0C1F\u0C3E \u0C32\u0C47\u0C26\u0C41.",noColumn:"\u0C35\u0C3F\u0C36\u0C4D\u0C32\u0C47\u0C37\u0C3F\u0C02\u0C1A\u0C21\u0C3E\u0C28\u0C3F\u0C15\u0C3F \u0C24\u0C17\u0C3F\u0C28 \u0C15\u0C3E\u0C32\u0C2E\u0C4D \u0C15\u0C28\u0C2C\u0C21\u0C32\u0C47\u0C26\u0C41.",noNumericData:e=>`${e}\u0C32\u0C4B \u0C38\u0C02\u0C16\u0C4D\u0C2F\u0C3E \u0C38\u0C2E\u0C3E\u0C1A\u0C3E\u0C30\u0C02 \u0C32\u0C47\u0C26\u0C41.`,notFound:e=>`\u201C${e}\u201D\u0C15\u0C41 \u0C38\u0C30\u0C3F\u0C2A\u0C4B\u0C32\u0C47 \u0C38\u0C2E\u0C3E\u0C1A\u0C3E\u0C30\u0C02 \u0C15\u0C28\u0C2C\u0C21\u0C32\u0C47\u0C26\u0C41.`,needName:"\u0C36\u0C4B\u0C27\u0C3F\u0C02\u0C1A\u0C21\u0C3E\u0C28\u0C3F\u0C15\u0C3F \u0C12\u0C15 \u0C35\u0C3F\u0C32\u0C41\u0C35 \u0C07\u0C35\u0C4D\u0C35\u0C02\u0C21\u0C3F.",fallback:"\u0C17\u0C4D\u0C30\u0C3F\u0C21\u0C4D\u200C\u0C32\u0C4B \u0C36\u0C4B\u0C27\u0C28, \u0C15\u0C4D\u0C30\u0C2E\u0C2C\u0C26\u0C4D\u0C27\u0C40\u0C15\u0C30\u0C23, \u0C32\u0C46\u0C15\u0C4D\u0C15\u0C3F\u0C02\u0C2A\u0C41 \u0C2E\u0C30\u0C3F\u0C2F\u0C41 \u0C21\u0C47\u0C1F\u0C3E \u0C35\u0C3F\u0C36\u0C4D\u0C32\u0C47\u0C37\u0C23 \u0C1A\u0C47\u0C2F\u0C17\u0C32\u0C28\u0C41.",unsupportedVoice:"\u0C08 \u0C2C\u0C4D\u0C30\u0C4C\u0C1C\u0C30\u0C4D\u200C\u0C32\u0C4B \u0C35\u0C3E\u0C2F\u0C3F\u0C38\u0C4D \u0C07\u0C28\u0C4D\u200C\u0C2A\u0C41\u0C1F\u0C4D\u200C\u0C15\u0C41 \u0C2E\u0C26\u0C4D\u0C26\u0C24\u0C41 \u0C32\u0C47\u0C26\u0C41."}};function Oe(e){return e.toLowerCase().trim().replace(/\s+/g," ")}function zc(e,t){let o=Oe(e);if(t==="te-IN")return/^(శోధించు|శోధించండి|వెతుకు|వెతకండి|చూపించు|చూపించండి|ఫిల్టర్)/.test(o)?{type:"search",payload:o.replace(/^(శోధించు|శోధించండి|వెతుకు|వెతకండి|చూపించు|చూపించండి|ఫిల్టర్)\s*/u,"").trim()||e}:/క్రమబద్ధీకర|అమర్చ|సార్ట్/.test(o)?{type:"sort",payload:{key:void 0,dir:/అవరోహణ|పెద్ద|అధిక|చివర/.test(o)?"desc":"asc"}}:/ఎన్ని|ఎంతమంది|లెక్క|మొత్తం వరుస|వరుసలు/.test(o)?{type:"question",payload:e}:/అత్యధిక|గరిష్ఠ|పెద్ద|ఎక్కువ/.test(o)?{type:"question",payload:e}:/అత్యల్ప|కనిష్ఠ|చిన్న|తక్కువ/.test(o)?{type:"question",payload:e}:/సగటు|సగటు విలువ/.test(o)?{type:"question",payload:e}:/మొత్తం|కలిపి/.test(o)?{type:"question",payload:e}:{type:"search",payload:e};if(/^(search|find|show|filter)/.test(o))return{type:"search",payload:o.replace(/^(search|find|show|filter)\s+(for\s+|by\s+)?/,"").trim()||e};if(/sort/.test(o)){let n=/desc|descending|high|higher|large|largest|top/.test(o);return{type:"sort",payload:{key:o.match(/(?:by|on)\s+([a-z0-9_-]+)/)?.[1],dir:n?"desc":"asc"}}}return/how many|count|highest|maximum|max|top|largest|lowest|minimum|min|smallest|bottom|average|avg|mean|sum|total|who|which|where|whose/.test(o)?{type:"question",payload:e}:{type:"search",payload:e}}function Ml(e,t){let o=Oe(e);return t.find(n=>{let A=Oe(n.key),i=Oe(n.label);return o.includes(A)||o.includes(i)})}function gn(e,t){return e.toLocaleString(t==="te-IN"?"te-IN":"en-IN")}function Oc(e,t,o,n){let A=Dl[n];if(t.length===0)return A.noData;let i=Oe(e),r=o.filter(b=>b.type==="number"),s=Ml(e,o),a=s?.type==="number"?s:r[0],l=/how many|count|rows|ఎన్ని|ఎంతమంది|లెక్క|వరుసలు/.test(i);if(l)return A.count(t.length);if(/highest|maximum|max|top|largest|అత్యధిక|గరిష్ఠ|పెద్ద|ఎక్కువ/.test(i)){let b=s??a;if(!b)return A.noColumn;let C=t.map(k=>({row:k,value:Number(k[b.key])})).filter(k=>!Number.isNaN(k.value)).sort((k,N)=>N.value-k.value);if(C.length===0)return A.noNumericData(b.label);let c=C[0],I=o.find(k=>k.key==="name"||Oe(k.label)==="name"),Q=I?String(c.row[I.key]??""):n==="te-IN"?"\u0C08 \u0C35\u0C30\u0C41\u0C38":"this row";return A.highest(b.label,gn(c.value,n),Q)}if(/lowest|minimum|min|smallest|bottom|అత్యల్ప|కనిష్ఠ|చిన్న|తక్కువ/.test(i)){let b=s??a;if(!b)return A.noColumn;let C=t.map(k=>({row:k,value:Number(k[b.key])})).filter(k=>!Number.isNaN(k.value)).sort((k,N)=>k.value-N.value);if(C.length===0)return A.noNumericData(b.label);let c=C[0],I=o.find(k=>k.key==="name"||Oe(k.label)==="name"),Q=I?String(c.row[I.key]??""):n==="te-IN"?"\u0C08 \u0C35\u0C30\u0C41\u0C38":"this row";return A.lowest(b.label,gn(c.value,n),Q)}if(/average|avg|mean|సగటు/.test(i)){let b=s??a;if(!b)return A.noColumn;let C=t.map(I=>Number(I[b.key])).filter(I=>!Number.isNaN(I));if(C.length===0)return A.noNumericData(b.label);let c=C.reduce((I,Q)=>I+Q,0)/C.length;return A.average(b.label,gn(Math.round(c*100)/100,n))}if(/sum|total|మొత్తం|కలిపి/.test(i)&&!l){let b=s??a;if(!b)return A.noColumn;let C=t.map(I=>Number(I[b.key])).filter(I=>!Number.isNaN(I));if(C.length===0)return A.noNumericData(b.label);let c=C.reduce((I,Q)=>I+Q,0);return A.total(b.label,gn(c,n))}let B=i.match(/[\p{L}\p{N}_-]+/gu)??[],y=new Set(["who","what","which","where","whose","is","the","has","have","show","find","search","for","by","about"]),w=B.filter(b=>!y.has(b)).join(" ").trim();if(w){let b=t.find(C=>Object.values(C).some(c=>String(c??"").toLowerCase().includes(w.toLowerCase())));return b?o.map(C=>`${C.label}: ${String(b[C.key]??"")}`).join(n==="te-IN"?" \xB7 ":", "):A.notFound(w)}return A.fallback}function Wc(e,t){if(typeof window>"u"||!window.speechSynthesis)return;window.speechSynthesis.cancel();let o=new SpeechSynthesisUtterance(e);o.lang=t,o.rate=1,o.pitch=1,window.speechSynthesis.speak(o)}function Vc(e){let[t,o]=(0,ue.useState)(!1),[n,A]=(0,ue.useState)(""),[i,r]=(0,ue.useState)(!0),s=(0,ue.useRef)(null);(0,ue.useEffect)(()=>{if(typeof window>"u")return;let g=window.SpeechRecognition||window.webkitSpeechRecognition;if(!g){r(!1),s.current=null;return}let u=new g;return u.continuous=!1,u.interimResults=!1,u.lang=e,u.onresult=d=>{let p=d?.results?.[0]?.[0]?.transcript??"";A(p),o(!1)},u.onerror=()=>{o(!1)},u.onend=()=>{o(!1)},s.current=u,()=>{try{u.stop()}catch{}s.current=null}},[e]);let a=(0,ue.useCallback)(()=>{if(s.current){A(""),o(!0);try{s.current.start()}catch{o(!1)}}},[]),l=(0,ue.useCallback)(()=>{try{s.current?.stop()}catch{}o(!1)},[]);return{listening:t,transcript:n,supported:i,start:a,stop:l}}function _c(){return(0,R.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,R.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,R.jsx)("path",{d:"m16 16 5 5"})]})}function Xc(){return(0,R.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,R.jsx)("rect",{x:"8",y:"3",width:"8",height:"12",rx:"4"}),(0,R.jsx)("path",{d:"M5 11a7 7 0 0 0 14 0"}),(0,R.jsx)("path",{d:"M12 18v3"}),(0,R.jsx)("path",{d:"M8 21h8"})]})}function jc(){return(0,R.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,R.jsx)("path",{d:"m4 4 16 8-16 8 4-8-4-8Z"}),(0,R.jsx)("path",{d:"M8 12h12"})]})}function Zc(){return(0,R.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,R.jsx)("path",{d:"m6 6 12 12"}),(0,R.jsx)("path",{d:"m18 6-12 12"})]})}function ed({data:e,columns:t,onSearch:o,onSort:n,theme:A="light",language:i="en-US",inputLanguage:r="en-US",embedded:s=!1,agent:a,onInputLanguageChange:l}){let g=Dl[i],[u,d]=(0,ue.useState)(r);(0,ue.useEffect)(()=>{d(r)},[r]);let[p,B]=(0,ue.useState)(!1),y=A==="dark",[m,w]=(0,ue.useState)(s),[b,C]=(0,ue.useState)(""),[c,I]=(0,ue.useState)([]),Q=(0,ue.useRef)(null),{listening:k,transcript:N,supported:H,start:V,stop:T}=Vc(u),G=(0,ue.useMemo)(()=>({bg:y?"#0F172A":"#FFFFFF",surface:y?"#1E293B":"#F8FAFC",border:y?"#334155":"#E2E8F0",text:y?"#F1F5F9":"#0F172A",muted:y?"#94A3B8":"#64748B",accent:"#10B981",userMsg:y?"#334155":"#DBEAFE",aiMsg:y?"#1E293B":"#F0FDF4"}),[y]),S=(0,ue.useMemo)(()=>({role:"ai",text:i==="te-IN"?"\u0C2E\u0C40 \u0C17\u0C4D\u0C30\u0C3F\u0C21\u0C4D \u0C21\u0C47\u0C1F\u0C3E \u0C17\u0C41\u0C30\u0C3F\u0C02\u0C1A\u0C3F \u0C2A\u0C4D\u0C30\u0C36\u0C4D\u0C28 \u0C05\u0C21\u0C17\u0C02\u0C21\u0C3F.":"Ask me about your grid data.",time:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}),[i]);(0,ue.useEffect)(()=>{I(P=>P.length>0?P:[S])},[S]),(0,ue.useEffect)(()=>{Q.current?.scrollIntoView({behavior:"smooth"})},[c]);let oe=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),se=(0,ue.useCallback)(async P=>{let ae=P.trim();if(!ae)return;I($=>[...$,{role:"user",text:ae,time:oe()}]),C("");let J="";if(a){B(!0);try{J=(await a.ask(ae)).message}catch{J=g.fallback}finally{B(!1)}}else{let $=zc(ae,i);if($.type==="question")J=Oc($.payload??ae,e,t,i);else if($.type==="search"){let te=String($.payload??ae);o?.(te),J=g.searchStarted(te)}else if($.type==="sort"){let te=$.payload?.key,_=te?t.find(Z=>Oe(Z.key)===Oe(te)||Oe(Z.label)===Oe(te)):void 0;if(_||(_=Ml(ae,t)),_&&n){let Z=$.payload?.dir==="desc"?"desc":"asc";n(String(_.key),Z),J=Z==="asc"?g.sortedAscending(_.label):g.sortedDescending(_.label)}else J=g.noColumn}}J||(J=g.fallback),I($=>[...$,{role:"ai",text:J,time:oe()}]),Wc(J,i)},[a,t,e,i,o,n,g]);(0,ue.useEffect)(()=>{N&&se(N)},[N,se]);let W=()=>{se(b)},re=i==="te-IN"?["\u0C0E\u0C28\u0C4D\u0C28\u0C3F \u0C35\u0C30\u0C41\u0C38\u0C32\u0C41","\u0C36\u0C4B\u0C27\u0C3F\u0C02\u0C1A\u0C02\u0C21\u0C3F","\u0C15\u0C4D\u0C30\u0C2E\u0C02"]:["how many rows","search","sort"],ge=(0,R.jsxs)("div",{style:{width:s?"100%":360,maxWidth:s?"100%":"calc(100vw - 48px)",height:s?390:480,maxHeight:"70vh",background:G.bg,border:`1px solid ${G.border}`,borderRadius:s?12:16,boxShadow:s?"none":"0 20px 40px rgba(0,0,0,0.15)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,R.jsxs)("div",{style:{padding:"12px 14px",background:G.accent,color:"#FFFFFF",display:"flex",alignItems:"center",gap:10},children:[(0,R.jsx)("div",{style:{width:34,height:34,borderRadius:10,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255,255,255,0.18)",fontSize:17},children:"AI"}),(0,R.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,R.jsx)("div",{style:{fontWeight:700,fontSize:14},children:g.title}),(0,R.jsx)("div",{style:{fontSize:11,opacity:.9},children:g.subtitle})]}),!s&&(0,R.jsx)("button",{type:"button",onClick:()=>w(!1),"aria-label":g.close,title:g.close,style:{width:32,height:32,border:"none",borderRadius:8,background:"rgba(255,255,255,0.12)",color:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:(0,R.jsx)(Zc,{})})]}),(0,R.jsxs)("div",{style:{padding:"8px 10px",borderBottom:`1px solid ${G.border}`,display:"flex",alignItems:"center",gap:8,background:G.surface},children:[(0,R.jsx)("span",{style:{fontSize:11,color:G.muted},children:g.inputLanguage}),(0,R.jsxs)("select",{value:u,onChange:P=>{let ae=P.target.value;d(ae),l?.(ae)},disabled:k,"aria-label":g.inputLanguage,style:{padding:"5px 8px",borderRadius:7,border:`1px solid ${G.border}`,background:G.bg,color:G.text,fontSize:11},children:[(0,R.jsx)("option",{value:"en-US",children:"English (US)"}),(0,R.jsx)("option",{value:"en-IN",children:"English (India)"}),(0,R.jsx)("option",{value:"as-IN",children:"Assamese"}),(0,R.jsx)("option",{value:"bn-IN",children:"Bengali"}),(0,R.jsx)("option",{value:"brx-IN",children:"Bodo"}),(0,R.jsx)("option",{value:"doi-IN",children:"Dogri"}),(0,R.jsx)("option",{value:"gu-IN",children:"Gujarati"}),(0,R.jsx)("option",{value:"hi-IN",children:"Hindi"}),(0,R.jsx)("option",{value:"kn-IN",children:"Kannada"}),(0,R.jsx)("option",{value:"ks-IN",children:"Kashmiri"}),(0,R.jsx)("option",{value:"kok-IN",children:"Konkani"}),(0,R.jsx)("option",{value:"mai-IN",children:"Maithili"}),(0,R.jsx)("option",{value:"ml-IN",children:"Malayalam"}),(0,R.jsx)("option",{value:"mni-IN",children:"Manipuri"}),(0,R.jsx)("option",{value:"mr-IN",children:"Marathi"}),(0,R.jsx)("option",{value:"ne-IN",children:"Nepali"}),(0,R.jsx)("option",{value:"or-IN",children:"Odia"}),(0,R.jsx)("option",{value:"pa-IN",children:"Punjabi"}),(0,R.jsx)("option",{value:"sa-IN",children:"Sanskrit"}),(0,R.jsx)("option",{value:"sat-IN",children:"Santali"}),(0,R.jsx)("option",{value:"sd-IN",children:"Sindhi"}),(0,R.jsx)("option",{value:"ta-IN",children:"Tamil"}),(0,R.jsx)("option",{value:"te-IN",children:"Telugu"}),(0,R.jsx)("option",{value:"ur-IN",children:"Urdu"})]})]}),(0,R.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:10,display:"flex",flexDirection:"column",gap:8},children:[c.map((P,ae)=>(0,R.jsxs)("div",{style:{alignSelf:P.role==="user"?"flex-end":"flex-start",maxWidth:"88%",padding:"8px 11px",borderRadius:11,background:P.role==="user"?G.userMsg:G.aiMsg,color:G.text,fontSize:13,lineHeight:1.5},children:[(0,R.jsx)("div",{children:P.text}),(0,R.jsx)("div",{style:{marginTop:3,fontSize:10,opacity:.55,textAlign:"right"},children:P.time})]},`${P.time}-${ae}`)),k&&(0,R.jsx)("div",{style:{alignSelf:"flex-end",padding:"8px 11px",borderRadius:11,background:y?"#3F1D2E":"#FEE2E2",color:y?"#FCA5A5":"#991B1B",fontSize:13},children:g.listening}),(p||a?.loading)&&(0,R.jsx)("div",{role:"status","aria-live":"polite",style:{alignSelf:"flex-start",padding:"8px 11px",borderRadius:11,background:G.aiMsg,color:G.muted,fontSize:13},children:g.working}),(0,R.jsx)("div",{ref:Q})]}),(0,R.jsx)("div",{style:{padding:"7px 10px",borderTop:`1px solid ${G.border}`,display:"flex",gap:6,overflowX:"auto",flexShrink:0},children:re.map(P=>(0,R.jsx)("button",{type:"button",onClick:()=>se(P),style:{padding:"5px 9px",borderRadius:12,border:`1px solid ${G.border}`,background:G.surface,color:G.text,fontSize:10.5,cursor:"pointer",whiteSpace:"nowrap"},children:P},P))}),(0,R.jsxs)("div",{style:{padding:9,display:"flex",gap:6,borderTop:`1px solid ${G.border}`,background:G.surface},children:[(0,R.jsxs)("div",{style:{position:"relative",flex:1},children:[(0,R.jsx)(_c,{}),(0,R.jsx)("input",{type:"text",value:b,onChange:P=>C(P.target.value),onKeyDown:P=>{P.key==="Enter"&&W()},placeholder:g.placeholder,"aria-label":g.ask,style:{width:"100%",boxSizing:"border-box",padding:"9px 10px 9px 34px",borderRadius:8,border:`1px solid ${G.border}`,background:G.bg,color:G.text,fontSize:12,outline:"none"}})]}),H?(0,R.jsx)("button",{type:"button",onClick:k?T:V,"aria-label":k?g.listening:g.speakNow,title:k?g.listening:g.speakNow,style:{width:38,height:38,border:"none",borderRadius:8,background:k?"#EF4444":G.accent,color:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0},children:(0,R.jsx)(Xc,{})}):null,(0,R.jsx)("button",{type:"button",onClick:W,disabled:!b.trim(),"aria-label":g.send,title:g.send,style:{width:38,height:38,border:"none",borderRadius:8,background:b.trim()?G.accent:G.muted,color:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",cursor:b.trim()?"pointer":"not-allowed",opacity:b.trim()?1:.6,flexShrink:0},children:(0,R.jsx)(jc,{})})]})]});return s?(0,R.jsx)("div",{style:{width:"100%",minWidth:0},children:m?ge:(0,R.jsxs)("button",{type:"button",onClick:()=>w(!0),"aria-label":g.open,style:{minHeight:40,padding:"8px 13px",borderRadius:9,border:"1px solid #10B981",background:y?"#064E3B":"#ECFDF5",color:y?"#A7F3D0":"#047857",display:"inline-flex",alignItems:"center",gap:8,cursor:"pointer",fontSize:12,fontWeight:600},children:[(0,R.jsx)("span",{"aria-hidden":"true",children:"AI"}),g.ask]})}):(0,R.jsxs)(R.Fragment,{children:[!m&&(0,R.jsx)("button",{type:"button",onClick:()=>w(!0),"aria-label":g.open,title:g.title,style:{position:"fixed",bottom:24,right:24,zIndex:9998,width:56,height:56,borderRadius:28,background:G.accent,color:"#FFFFFF",border:"none",cursor:"pointer",boxShadow:"0 8px 20px rgba(16,185,129,0.3)",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:14},children:"AI"}),m&&(0,R.jsx)("div",{style:{position:"fixed",bottom:90,right:24,zIndex:9997},children:ge}),(0,R.jsx)("style",{children:`
1537
+ `):"There are no forms on this page.",targets:A.flatMap(i=>i.findings.map(r=>r.selector).filter(r=>!!r)),suggestions:A.flatMap(i=>i.findings.slice(0,3).map(r=>r.suggestion))}}case"links":case"counts":{let A=o.counts;return{intent:n,answer:`${A.links} links, ${A.buttons} buttons, ${A.fields} form fields in ${A.forms} form(s), ${A.images} images, ${A.tables} tables.`,targets:[],suggestions:[]}}case"purpose":case"unknown":{let A=o.purpose;if(t.summarize)try{let r=Le(t.root),s=Ce((r&&Gt(r)?r.body:r)?.textContent).slice(0,4e3);A=await t.summarize(s)||A}catch{}let i=[];return o.unlabeledFields.length&&i.push(`${o.unlabeledFields.length} form field(s) need labels.`),o.imagesWithoutAlt.length&&i.push(`${o.imagesWithoutAlt.length} image(s) need alt text.`),{intent:n,answer:A,targets:[],suggestions:i}}}}x();var ml="highlight|mark|flag|sort|order|rank|arrange|summari[sz]e|summary|recap|count|how many|open|select|pick|show|filter|find|list|clear|reset|remove|detect|spot|tell";function rn(e){return e.replace(/[?!]/g," ").split(/\s*(?:;|\.(?!\d)\s*|,?\s*\band then\b|,?\s*\bthen\b|,?\s*\bafter that\b|,?\s*\bfinally\b|,?\s*\bnext\b|ఆ తర్వాత)\s*/i).flatMap(n=>n.split(new RegExp(`\\s*(?:,|\\band\\b)\\s+(?=(?:${ml})\\b)`,"i"))).map(n=>n.trim()).filter(n=>n.length>1).map(n=>({action:Sc(n),text:n}))}function Sc(e){let t=e.toLowerCase();return/^(clear|reset|remove)\b/.test(t)?"clear":/unusual|anomal|outlier|suspicious|odd ones|duplicate/.test(t)?"anomalies":/summari[sz]e|summary|what changed|recap|overview/.test(t)?"summarize":/^(highlight|mark|flag)\b/.test(t)?"highlight":/^(sort|order|rank|arrange)\b/.test(t)?"sort":/^(count|how many)\b/.test(t)?"count":/^(open|go to)\b/.test(t)&&!/filtered|results?/.test(t)?"open":/^(select|pick)\b/.test(t)?"select":"filter"}function vc(e){return e.replace(new RegExp(`^\\s*(?:${ml}|open|go to)\\b`,"i")," ").replace(/\b(the|filtered|results?|rows?|records?|entries|items?|ones|them|those|only|me|all)\b/gi," ").replace(/\s+/g," ").trim()}function Il(e,t){let o=t.find(i=>i.key===e.key)?.label??e.key,n=Array.isArray(e.value)?`${e.value[0]}\u2013${e.value[1]}`:typeof e.value=="number"?e.value.toLocaleString("en-IN",{maximumFractionDigits:2}):`"${e.value}"`,A={contains:"contains",equals:"is",startsWith:"starts with",endsWith:"ends with",greaterThan:">",lessThan:"<",between:"between"}[e.operator];return`${o} ${A} ${n}`}async function lA(e,t,o={}){let n=rn(e),{columns:A,data:i}=t,r=[...t.filters??[]],s=[],a=null,l=[],g=()=>ct(i,A,{filters:r,search:s,sort:a,limit:null,notes:[],explanation:""}),u={rows:g().length,filters:[...r]},d=[],p=()=>({...t,filters:r});for(let y=0;y<n.length;y++){let m=n[y],w=vc(m.text),b;try{switch(m.action){case"clear":{r=[],s=[],a=null,l=[],t.onFiltersChange?.([]),t.onSortChange?.(null),t.onHighlightRows?.([]),b={...m,success:!0,message:`Cleared filters, sorting and highlights. ${i.length} row(s) shown.`};break}case"filter":{let C=Rt(w,A,{data:i});if(!C.filters.length&&!C.search.length&&!C.sort){b={...m,success:!0,message:`Showing ${g().length} row(s) with the current filters.`};break}for(let Q of C.filters)r=[...r.filter(k=>k.key!==Q.key),Q];s=[...s,...C.search],C.sort&&(a=C.sort,t.onSortChange?.(a)),t.onFiltersChange?.(r);let c=g(),I=c.map(Q=>Qe(Q,t.rowKey)).filter(Boolean);C.search.length&&I.length&&(l=I,t.onHighlightRows?.(I)),b={...m,success:!0,message:`${c.length} row(s) now shown. ${C.explanation}`,ids:I};break}case"highlight":{let C=g(),c=Rt(w,A,{data:C}),Q=(c.filters.length||c.search.length?ct(C,A,{...c,sort:null,limit:c.limit}):C).map(N=>Qe(N,t.rowKey)).filter(Boolean);if(!Q.length){b={...m,success:!1,message:`Nothing to highlight for "${w||"all rows"}".`};break}let k=_t(p(),Q);k.success&&(l=k.data??Q),b={...m,success:k.success,message:k.success?`Highlighted ${l.length} row(s)${w?` matching "${w}"`:""}.`:k.message,ids:l};break}case"sort":{let c=Rt(m.text,A,{data:i}).sort;if(!c){let Q=He(w,A);Q&&(c={key:Q.key,direction:/desc|high|large|big|most|newest|latest|z.?to.?a/i.test(m.text)?"desc":"asc"})}if(!c){b={...m,success:!1,message:`Which column should I sort by? Columns: ${A.map(Q=>Q.label).join(", ")}.`};break}a=c,t.onSortChange?.(a);let I=A.find(Q=>Q.key===a.key)?.label??a.key;b={...m,success:!0,message:`Sorted by ${I} (${a.direction==="desc"?"high \u2192 low":"low \u2192 high"}).`};break}case"count":{b={...m,success:!0,message:`${g().length} row(s) shown${l.length?`, ${l.length} highlighted`:""}.`};break}case"anomalies":{let C=g(),c=tn(C,A,{rowKey:t.rowKey}),I=Array.from(new Set(c.map(Q=>Q.rowId)));if(I.length){let Q=_t(p(),I);Q.success&&(l=Q.data??I)}b={...m,success:!0,message:c.length?`${I.length} unusual row(s): ${c.slice(0,5).map(Q=>Q.reason).join(" ")}`:"Nothing unusual in the shown rows.",ids:I};break}case"open":case"select":{let C=g(),I=C.find(N=>w&&Qe(N,t.rowKey).toLowerCase()===w.toLowerCase())??ct(C,A,Rt(w,A,{data:C}))[0]??(w?void 0:C[0]);if(!I){b={...m,success:!1,message:`No row matches "${w}".`};break}let Q=Qe(I,t.rowKey),k=m.action==="open"?yo(p(),Q):ho(p(),Q);b={...m,success:k.success,message:k.message,ids:[Q]};break}case"summarize":{let C=g();b={...m,success:!0,message:`${pl(u,C.length,r,a,l,A)}
1538
+ ${on(C,A)}`};break}}}catch(C){b={...m,success:!1,message:`This step failed: ${C instanceof Error?C.message:String(C)}`}}d.push(b),o.onStep?.(b,y,n.length)}let B=g().length;return{steps:d,before:u,after:{rows:B,filters:r,sort:a,highlighted:l},summary:pl(u,B,r,a,l,A)}}function pl(e,t,o,n,A,i){let r=[`Rows: ${e.rows} \u2192 ${t}.`],s=o.filter(l=>!e.filters.some(g=>JSON.stringify(g)===JSON.stringify(l))),a=e.filters.filter(l=>!o.some(g=>JSON.stringify(l)===JSON.stringify(g)));return s.length&&r.push(`Filters added: ${s.map(l=>Il(l,i)).join("; ")}.`),a.length&&r.push(`Filters removed: ${a.map(l=>Il(l,i)).join("; ")}.`),n&&r.push(`Sorted by ${i.find(l=>l.key===n.key)?.label??n.key} ${n.direction==="desc"?"high \u2192 low":"low \u2192 high"}.`),A.length&&r.push(`${A.length} row(s) highlighted.`),r.join(" ")}x();var Dc=/\b(off|disable|stop|remove|no more|turn off|switch off|deactivate)\b|ఆఫ్|ఆపు|తీసివేయి|बंद/i,Mc=[{pattern:/high contrast|contrast|హై కాంట్రాస్ట్|కాంట్రాస్ట్/i,key:"highContrast",name:"High contrast"},{pattern:/dark mode|dark theme|night mode|డార్క్ మోడ్|చీకటి/i,key:"darkMode",name:"Dark mode"},{pattern:/reduce motion|less motion|stop animation|animations?|కదలికలు/i,key:"reduceMotion",name:"Reduced motion"},{pattern:/large targets?|bigger buttons?|big buttons?|larger buttons?|పెద్ద బటన్/i,key:"largeTargets",name:"Large targets"},{pattern:/dyslexia|readable font|easy font/i,key:"dyslexiaFont",name:"Dyslexia-friendly font"},{pattern:/speak on focus|read aloud|read out|screen reader|speech|చదివి వినిపించు/i,key:"speechEnabled",name:"Speak on focus"},{pattern:/skip links?/i,key:"showSkipLinks",name:"Skip links"}],Gc=[[/deuteranop|green.?blind/i,"deuteranopia"],[/protanop|red.?blind/i,"protanopia"],[/tritanop|blue.?blind/i,"tritanopia"],[/grey ?scale|gray ?scale|achromat|black and white/i,"achromatopsia"]],gA=.1,Cl=.8,fl=1.3;function hl(e,t={}){let o=e.trim().toLowerCase();if(!o)return null;if(/\b(next|down)\s+(row|line|record|item)\b|తర్వాతి (వరుస|అంశం)/.test(o))return{type:"grid",action:"next-row",say:"Next row."};if(/\b(previous|prev|back|up)\s+(row|line|record|item)\b|ముందరి (వరుస|అంశం)|వెనుక (వరుస|అంశం)/.test(o))return{type:"grid",action:"previous-row",say:"Previous row."};if(/\bfirst\s+(row|record|item)\b|మొదటి (వరుస|అంశం)/.test(o))return{type:"grid",action:"first-row",say:"First row."};if(/\blast\s+(row|record|item)\b|చివరి (వరుస|అంశం)/.test(o))return{type:"grid",action:"last-row",say:"Last row."};if(/\b(open|expand|read)\s+(this\s+)?(row|record|item)\b|ఈ (వరుస|అంశం) తెరువు/.test(o))return{type:"grid",action:"open-row",say:"Opening row."};if(/\b(reset|default|restore)\b.*\b(settings?|accessibility|everything|all)\b|^reset$|రీసెట్/.test(o))return{type:"reset",say:"Accessibility settings reset."};let n=t.fontSizeMultiplier??1,A=r=>Math.round(Math.min(fl,Math.max(Cl,r))*100)/100;if(/\b(bigger|larger|increase|zoom in)\b.*\b(text|font|letters?)\b|\b(text|font)\b.*\b(bigger|larger|up)\b|పెద్ద అక్షరాలు|అక్షరాలు పెద్ద/.test(o)){let r=A(n+gA);return{type:"setting",patch:{fontSizeMultiplier:r},say:`Text size ${Math.round(r*100)}%.`}}if(/\b(smaller|decrease|reduce|zoom out)\b.*\b(text|font|letters?)\b|\b(text|font)\b.*\b(smaller|down)\b|చిన్న అక్షరాలు|అక్షరాలు చిన్న/.test(o)){let r=A(n-gA);return{type:"setting",patch:{fontSizeMultiplier:r},say:`Text size ${Math.round(r*100)}%.`}}if(/\b(normal|default|reset)\b.*\b(text|font)\s*(size)?\b/.test(o))return{type:"setting",patch:{fontSizeMultiplier:1},say:"Text size 100%."};let i=Dc.test(o);for(let[r,s]of Gc)if(r.test(o))return i?{type:"setting",patch:{colorBlindMode:"none"},say:"Colour filter off."}:{type:"setting",patch:{colorBlindMode:s},say:`${s} filter on.`};if(/colou?r.?blind/.test(o)&&i)return{type:"setting",patch:{colorBlindMode:"none"},say:"Colour filter off."};for(let r of Mc){if(!r.pattern.test(o))continue;let s=/\btoggle\b/.test(o)?!t[r.key]:!i;return r.key==="reduceMotion"&&!/reduce motion|less motion|కదలికలు తగ్గించు/.test(o)&&/animations?/.test(o)&&(s=i||/\bno\b/.test(o)),{type:"setting",patch:{[r.key]:s},say:`${r.name} ${s?"on":"off"}.`}}return null}var cA={highContrast:!1,darkMode:!1,reduceMotion:!1,largeTargets:!1,dyslexiaFont:!1,speechEnabled:!1,colorBlindMode:"none",fontSizeMultiplier:1};function yl(e,t={}){if(!$e())return null;let o=t.root??document,n=t.rowSelector??"[data-yuktai-row-id], [role='row']",A=Array.from(o.querySelectorAll(n)).filter(l=>!l.querySelector("th,[role='columnheader']"));if(!A.length)return null;let i=document.activeElement?.closest(n),r=i?A.indexOf(i):-1;if(e==="open-row"){let l=r>=0?A[r]:A[0];return l.click(),l}let s=e==="first-row"?0:e==="last-row"?A.length-1:e==="next-row"?Math.min(A.length-1,r+1):Math.max(0,r-1),a=A[s];return a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1"),a.focus(),a.scrollIntoView?.({block:"nearest"}),a}function dA(e={}){let t={enabled:!0,...cA,...e.initial},o=null,n=!1,A=async l=>e.apply?e.apply(l):ke.execute(l),i=l=>{if(e.speak===!1||!$e()||!("speechSynthesis"in window))return;let g=new SpeechSynthesisUtterance(l);g.lang=e.lang??"en-IN",window.speechSynthesis.cancel(),window.speechSynthesis.speak(g)};async function r(l){let g=hl(l,t);if(e.onTranscript?.(l,g),!g)return null;if(g.type==="grid"){let u=yl(g.action,{root:e.gridRoot});return i(u?g.say:"No table rows found."),g}return t=g.type==="reset"?{...t,...cA}:{...t,...g.patch},await A(t),i(g.say),g}function s(){if(!$e()||n)return n;let l=window,g=l.SpeechRecognition??l.webkitSpeechRecognition;return g?(o=new g,o.lang=e.lang??"en-IN",o.continuous=!0,o.interimResults=!1,o.onresult=u=>{let d=u.results,p=d[d.length-1];p?.[0]?.transcript&&r(p[0].transcript)},o.onend=()=>{n&&o?.start()},o.onerror=u=>{(u.error==="not-allowed"||u.error==="service-not-allowed")&&(n=!1)},n=!0,o.start(),!0):!1}function a(){n=!1,o?.stop(),o=null}return{start:s,stop:a,handle:r,isListening:()=>n,getConfig:()=>({...t})}}var D=require("react/jsx-runtime"),Nc=/\b(trend|over time|this (week|month|quarter|year)|last (week|month|quarter|year)|compare|versus|vs)\b|\b(by|per|each|which)\b.*\b(total|average|avg|sum|drop|increase|growth|highest|lowest|most|least)\b|\b(total|average|avg|sum)\b.*\b(by|per|each)\b/i;function Rc(e){let{data:t,rowKey:o="id"}=e,n=(0,X.useMemo)(()=>mt(e.columns),[e.columns]),[A,i]=(0,X.useState)([]),[r,s]=(0,X.useState)(null),[a,l]=(0,X.useState)([]),[g,u]=(0,X.useState)(""),[d,p]=(0,X.useState)(null),[B,y]=(0,X.useState)([]),[m,w]=(0,X.useState)([]),[b,C]=(0,X.useState)(!1),c=(0,X.useRef)(A);c.current=A;let I=(0,X.useCallback)(()=>({data:t,columns:n,rowKey:o,filters:c.current,onFiltersChange:H=>{c.current=H,i(H)},onSortChange:s,onHighlightRows:l,onOpenRow:e.onOpenRow,onSelectRow:H=>l([H])}),[t,n,o,e.onOpenRow]),Q=(0,X.useCallback)(async H=>{let V=H.trim();if(V){C(!0),w([]),y([]);try{if(rn(V).length>1){let T=[],G=await lA(V,I(),{onStep:S=>w((T.push(S),[...T]))});p("tasks"),u(G.summary)}else if(Nc.test(V)){let T=ct(t,n,{filters:c.current,search:[],sort:null,limit:null,notes:[],explanation:""}),G=sA(V,T,n,{referenceDate:e.referenceDate});p("insight"),u(G.answer),y(G.table)}else{let T=AA(V,I());p(T.kind),u(T.message)}}finally{C(!1)}}},[I,t,n,e.referenceDate]),k=(0,X.useCallback)(()=>{c.current=[],i([]),s(null),l([]),u(""),p(null),y([]),w([])},[]),N=(0,X.useMemo)(()=>ct(t,n,{filters:A,search:[],sort:r,limit:null,notes:[],explanation:""}),[t,n,A,r]);return{gridData:N,highlightIds:a,filters:A,sort:r,ask:Q,reset:k,answer:g,kind:d,table:B,steps:m,busy:b,visibleIds:N.map(H=>Qe(H,o))}}var Bl={border:"1px solid color-mix(in srgb, CanvasText 20%, transparent)",borderRadius:12,padding:16,background:"Canvas",color:"CanvasText",font:"inherit"},fe={minHeight:44,padding:"8px 14px",borderRadius:8,border:"1px solid color-mix(in srgb, CanvasText 35%, transparent)",background:"ButtonFace",color:"ButtonText",font:"inherit",cursor:"pointer"},uA={...fe,flex:1,minWidth:0,background:"Field",color:"FieldText",cursor:"text"},an={opacity:.75,fontSize:"0.9em"};function IA({rows:e}){if(!e.length)return null;let t=Object.keys(e[0]);return(0,D.jsx)("div",{style:{overflowX:"auto",marginTop:12},children:(0,D.jsxs)("table",{style:{borderCollapse:"collapse",width:"100%"},children:[(0,D.jsx)("thead",{children:(0,D.jsx)("tr",{children:t.map(o=>(0,D.jsx)("th",{scope:"col",style:{textAlign:"left",padding:"6px 8px",borderBottom:"1px solid currentColor"},children:o},o))})}),(0,D.jsx)("tbody",{children:e.slice(0,50).map((o,n)=>(0,D.jsx)("tr",{children:t.map(A=>(0,D.jsx)("td",{style:{padding:"6px 8px",borderBottom:"1px solid color-mix(in srgb, CanvasText 12%, transparent)"},children:o[A]},A))},n))})]})})}function bl(e,t,o){let n=URL.createObjectURL(new Blob([t],{type:o})),A=document.createElement("a");A.href=n,A.download=e,A.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}function Tc({grid:e,placeholder:t="Ask about this data, e.g. \u201Coverdue and over \u20B910,000\u201D",examples:o=[],style:n}){let[A,i]=(0,X.useState)(""),r=s=>{s.preventDefault(),e.ask(A)};return(0,D.jsxs)("section",{"data-yuktai-panel":"","aria-label":"Data assistant",style:{...Bl,...n},children:[(0,D.jsxs)("form",{onSubmit:r,style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,D.jsx)("label",{htmlFor:"yuktai-grid-ask",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:"Question about the data"}),(0,D.jsx)("input",{id:"yuktai-grid-ask",value:A,onChange:s=>i(s.target.value),placeholder:t,style:uA}),(0,D.jsx)("button",{type:"submit",style:fe,disabled:e.busy,children:e.busy?"Working\u2026":"Ask"}),(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>{i(""),e.reset()},children:"Reset"})]}),o.length>0&&(0,D.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",marginTop:8},children:o.map(s=>(0,D.jsx)("button",{type:"button",style:{...fe,minHeight:36,fontSize:"0.85em"},onClick:()=>{i(s),e.ask(s)},children:s},s))}),(0,D.jsx)("div",{"aria-live":"polite",style:{marginTop:12,whiteSpace:"pre-line"},children:e.answer}),e.steps.length>0&&(0,D.jsx)("ol",{style:{marginTop:8,paddingLeft:20},children:e.steps.map((s,a)=>(0,D.jsxs)("li",{style:{marginBottom:4},children:[(0,D.jsx)("span",{"aria-hidden":"true",children:s.success?"\u2705 ":"\u26A0\uFE0F "}),(0,D.jsx)("strong",{children:s.text})," \u2014 ",(0,D.jsx)("span",{style:{whiteSpace:"pre-line"},children:s.message})]},a))}),(0,D.jsx)(IA,{rows:e.table})]})}var sn=[["copilot","Copilot"],["qa","QA report"],["forms","Forms"],["design","Design"],["ask","Ask page"],["voice","Voice"]];function pA({defaultTab:e="copilot",voiceLang:t="en-IN",generate:o,engine:n,style:A}){let[i,r]=(0,X.useState)(e),s=(0,X.useRef)([]),a=(l,g)=>{let u=l.key==="ArrowRight"?1:l.key==="ArrowLeft"?-1:0;if(!u)return;l.preventDefault();let d=(g+u+sn.length)%sn.length;r(sn[d][0]),s.current[d]?.focus()};return(0,D.jsxs)("section",{"data-yuktai-panel":"","aria-label":"yuktai agentic tools",style:{...Bl,...A},children:[(0,D.jsx)("div",{role:"tablist","aria-label":"Tools",style:{display:"flex",gap:6,flexWrap:"wrap",marginBottom:12},children:sn.map(([l,g],u)=>(0,D.jsx)("button",{ref:d=>{s.current[u]=d},role:"tab",id:`yuktai-tab-${l}`,"aria-selected":i===l,"aria-controls":`yuktai-tabpanel-${l}`,tabIndex:i===l?0:-1,onClick:()=>r(l),onKeyDown:d=>a(d,u),style:{...fe,fontWeight:i===l?700:400,outlineOffset:2,borderWidth:i===l?2:1},children:g},l))}),(0,D.jsxs)("div",{role:"tabpanel",id:`yuktai-tabpanel-${i}`,"aria-labelledby":`yuktai-tab-${i}`,children:[i==="copilot"&&(0,D.jsx)(Fc,{}),i==="qa"&&(0,D.jsx)(Lc,{}),i==="forms"&&(0,D.jsx)(Pc,{}),i==="design"&&(0,D.jsx)(Yc,{}),i==="ask"&&(0,D.jsx)(Uc,{generate:o,engine:n}),i==="voice"&&(0,D.jsx)(Hc,{lang:t})]})]})}function Fc(){let e=(0,X.useRef)(null),[t,o]=(0,X.useState)(null),[n,A]=(0,X.useState)(null),[i,r]=(0,X.useState)("");(0,X.useEffect)(()=>(e.current=Zn({onUpdate:o}),e.current.scan(),()=>e.current?.stop()),[]);let s=e.current,a=t?.report?.issues??[];return(0,D.jsxs)("div",{children:[(0,D.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>t?.watching?s?.stop():s?.start(),children:t?.watching?"Stop watching":"Watch page live"}),(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>s?.scan(),children:"Scan now"}),(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>r(`${s?.applyAllFixes().filter(l=>l.applied).length??0} fix(es) applied.`),children:"Apply safe fixes"}),(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>r(`${s?.undoAll()??0} change(s) undone.`),children:"Undo all"})]}),(0,D.jsxs)("p",{"aria-live":"polite",style:{marginTop:12},children:[t?.report?.summary," ",i]}),(0,D.jsx)("ul",{style:{listStyle:"none",padding:0,margin:0},children:a.slice(0,40).map(l=>(0,D.jsxs)("li",{style:{borderTop:"1px solid color-mix(in srgb, CanvasText 12%, transparent)",padding:"8px 0"},children:[(0,D.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,D.jsx)("span",{style:{...an,minWidth:70},children:l.severity}),(0,D.jsx)("span",{style:{flex:1},children:l.message}),(0,D.jsx)("button",{type:"button",style:fe,"aria-expanded":n===l.id,onClick:()=>A(n===l.id?null:l.id),children:"Why?"}),l.autoFixable&&(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>r(s?.applyFix(l.id).message??""),children:"Fix"})]}),n===l.id&&(0,D.jsx)("p",{style:{whiteSpace:"pre-line",margin:"8px 0 0"},children:s?.explain(l.id)})]},l.id))})]})}function Lc(){let[e,t]=(0,X.useState)(null);return(0,D.jsxs)("div",{children:[(0,D.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>t(gt()),children:"Run QA check"}),e&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>bl("accessibility-report.md",Xn(e),"text/markdown"),children:"Download .md"}),(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>bl("accessibility-report.json",jn(e),"application/json"),children:"Download .json"})]})]}),e&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("p",{"aria-live":"polite",style:{marginTop:12},children:[(0,D.jsx)("strong",{children:e.passed?"PASS":"FAIL"})," \u2014 ",e.summary]}),(0,D.jsx)(IA,{rows:e.checks.map(o=>({Check:o.title,Result:o.passed?"\u2705 Pass":"\u274C Fail",Issues:o.issueCount}))})]})]})}function Pc(){let[e,t]=(0,X.useState)(null);return(0,D.jsxs)("div",{children:[(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>t(Bo()),children:"Review forms"}),(0,D.jsxs)("div",{"aria-live":"polite",children:[e&&e.length===0&&(0,D.jsx)("p",{children:"No forms on this page."}),e?.map(o=>(0,D.jsxs)("div",{style:{marginTop:12},children:[(0,D.jsx)("p",{children:(0,D.jsx)("strong",{children:o.summary})}),(0,D.jsx)("ul",{children:o.findings.map((n,A)=>(0,D.jsxs)("li",{children:[n.level==="problem"?"Problem: ":"Suggestion: ",n.message," ",(0,D.jsx)("span",{style:an,children:n.suggestion})]},A))})]},o.selector))]})]})}function Yc(){let[e,t]=(0,X.useState)(null);return(0,D.jsxs)("div",{children:[(0,D.jsx)("button",{type:"button",style:fe,onClick:()=>t(eA()),children:"Review design"}),e&&(0,D.jsxs)("div",{"aria-live":"polite",children:[(0,D.jsx)("p",{style:{marginTop:12},children:(0,D.jsx)("strong",{children:e.summary})}),(0,D.jsx)(IA,{rows:Object.entries(e.categories).map(([o,n])=>({Area:o,Score:n.score,Findings:n.findings}))}),(0,D.jsx)("ul",{children:e.findings.map((o,n)=>(0,D.jsxs)("li",{children:["[",o.severity,"] ",o.message," ",(0,D.jsx)("span",{style:an,children:o.suggestion})]},n))})]})]})}function Uc({generate:e,engine:t}){let[o,n]=(0,X.useState)(""),A=(0,X.useRef)(null),i=(0,X.useRef)(t),[r,s]=(0,X.useState)(""),[a,l]=(0,X.useState)([]);return(0,D.jsxs)("div",{children:[(0,D.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!o.trim())return;let d=await aA(o);if(d.intent!=="unknown"&&d.intent!=="purpose"){s(d.answer),l(d.suggestions);return}!A.current||i.current!==t?(A.current=fo({engine:t}),i.current=t):A.current.rebuild();let p=await A.current.ask(o,{generate:e});s(d.intent==="purpose"&&!p.hits.length?d.answer:p.hits.length?p.answer:d.answer),l(d.suggestions)},style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,D.jsx)("label",{htmlFor:"yuktai-page-ask",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:"Question about this page"}),(0,D.jsx)("input",{id:"yuktai-page-ask",value:o,onChange:u=>n(u.target.value),placeholder:"What does this page do? Which fields are missing labels?",style:uA}),(0,D.jsx)("button",{type:"submit",style:fe,children:"Ask"})]}),(0,D.jsx)("p",{"aria-live":"polite",style:{whiteSpace:"pre-line",marginTop:12},children:r}),a.length>0&&(0,D.jsx)("ul",{children:a.map((u,d)=>(0,D.jsx)("li",{children:u},d))})]})}function Hc({lang:e}){let t=(0,X.useMemo)(()=>dA({lang:e,onTranscript:(a,l)=>i(`\u201C${a}\u201D \u2192 ${l?l.say:"not a command"}`)}),[e]),[o,n]=(0,X.useState)(!1),[A,i]=(0,X.useState)(""),[r,s]=(0,X.useState)("");return(0,X.useEffect)(()=>()=>t.stop(),[t]),(0,D.jsxs)("div",{children:[(0,D.jsx)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:(0,D.jsx)("button",{type:"button",style:fe,"aria-pressed":o,onClick:()=>{o?(t.stop(),n(!1)):n(t.start())},children:o?"Stop listening":"Start voice commands"})}),(0,D.jsxs)("form",{onSubmit:a=>{a.preventDefault(),t.handle(r),s("")},style:{display:"flex",gap:8,marginTop:8,flexWrap:"wrap"},children:[(0,D.jsx)("label",{htmlFor:"yuktai-voice-typed",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:"Type a command"}),(0,D.jsx)("input",{id:"yuktai-voice-typed",value:r,onChange:a=>s(a.target.value),placeholder:"Or type: turn on high contrast",style:uA}),(0,D.jsx)("button",{type:"submit",style:fe,children:"Run"})]}),(0,D.jsx)("p",{"aria-live":"polite",style:{marginTop:12},children:A}),(0,D.jsx)("p",{style:an,children:"Try: \u201Cturn on high contrast\u201D, \u201Cbigger text\u201D, \u201Cdark mode off\u201D, \u201Cnext row\u201D, \u201C\u0C2A\u0C46\u0C26\u0C4D\u0C26 \u0C05\u0C15\u0C4D\u0C37\u0C30\u0C3E\u0C32\u0C41\u201D, \u201Creset settings\u201D."})]})}Mt();var Y=require("react/jsx-runtime"),vl="yuktai-tools-open";async function zc(){try{if(typeof window>"u")return!1;let e=window;if(e.LanguageModel)try{if(typeof e.LanguageModel.availability=="function"){let o=await e.LanguageModel.availability({..._e});if(o==="readily"||o==="available"||o==="downloadable")return!0}else return!0}catch{}if(e.Summarizer)try{let o=await e.Summarizer.availability?.({...Xe});if(!o||o==="readily"||o==="available")return!0}catch{}if(e.Rewriter)try{let o=await e.Rewriter.availability?.({...Xe});if(!o||o==="readily"||o==="available")return!0}catch{}if(e.Writer)try{let o=await e.Writer.availability?.({...Xe});if(!o||o==="readily"||o==="available")return!0}catch{}let t=e.ai||globalThis.ai;if(t){if(t.languageModel?.availability)try{let o=await t.languageModel.availability({..._e});if(o==="readily"||o==="available")return!0}catch{}if(t.languageModel&&typeof t.languageModel.create=="function"||t.summarizer||t.rewriter||t.writer||t.languageModel)return!0}return!!(e.Translator||e.translation?.canTranslate)}catch{return!1}}function ln({position:e="left",children:t,config:o={},showRag:n=!1,showAgent:A=!1,showAccessibility:i,showVibeCoder:r,launcher:s,engine:a,showPageTools:l=!1,pageToolsTab:g="copilot",voiceLang:u}){let d=i!==void 0||r!==void 0||s!==void 0,p=d?!!i:!0,B=d?!!r:A,y=n,m=A,[w,b]=(0,O.useState)(!1),C=!s||w,[c,I]=(0,O.useState)(!1),[Q,k]=(0,O.useState)(Nn),[N,H]=(0,O.useState)(null),[V,T]=(0,O.useState)(!1),[G,S]=(0,O.useState)(!1),[oe,se]=(0,O.useState)(!1),W=O.default.useRef(null),[re,ge]=(0,O.useState)(!1),[P,ae]=(0,O.useState)(""),[J,$]=(0,O.useState)(""),[te,_]=(0,O.useState)(!1),[Z,Me]=(0,O.useState)(null),[Te,q]=(0,O.useState)("idle"),[le,me]=(0,O.useState)(!1),[ye,Ge]=(0,O.useState)(""),[be,We]=(0,O.useState)(""),[Ne,Qt]=(0,O.useState)(!1),[Je,ot]=(0,O.useState)([]),[xe,Fe]=(0,O.useState)(null),Re=M=>{let z=[],we=s?84:24;for(let ro of M)z.push(we),ro&&(we+=60);return z},[Ve,Et,Tt,Mo]=d?Re([p,y,m,B]):[24,84,n?144:84,204],[Ke,nt]=(0,O.useState)(!1),[At,dt]=(0,O.useState)(!1),to=Math.max(s?24:-36,p?Ve:-36,y?Et:-36,m?Tt:-36,B?Mo:-36)+60;(0,O.useEffect)(()=>{(c||re||le||Ke)&&dt(!1)},[c,re,le,Ke]);let wt=a!==void 0,[Go,xt]=(0,O.useState)([]),[kt,St]=(0,O.useState)(null),rt=O.default.useRef(null);(0,O.useEffect)(()=>{if(typeof window>"u")return;let M=window;!!(M.LanguageModel||M.ai?.languageModel)&&G?(Me("gemini"),Fe("gemini")):lo()&&(Me("transformers"),Fe("transformers"))},[G]),(0,O.useEffect)(()=>{if(Z!=="transformers")return;let M=setInterval(()=>q(Ht()),500);return()=>clearInterval(M)},[Z]);let oo=M=>M.replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/#+\s/g,"").trim(),vt=(0,O.useCallback)(async()=>{let M=P.trim();if(!(!M||te)){_(!0),$(""),xt([]),St(null);try{rt.current?rt.current.rebuild():rt.current=fo({engine:a}),await rt.current.whenEngineReady();let z=performance.now(),we=await rt.current.ask(M,{k:4}),ro=performance.now()-z;if($(we.answer),xt(we.hits.slice(0,3).map(Ft=>Ft.text.length>160?`${Ft.text.slice(0,157)}\u2026`:Ft.text)),St({ms:ro,engine:rt.current.engine,ai:!1}),we.hits.length&&Z){let Ft=we.hits.map(st=>st.text).join(`
1539
+ `),io;if(Z==="gemini"){let{askWithContext:st}=await Promise.resolve().then(()=>(qo(),vn));io=await st(M,Ft)}else{q("loading");let{answerFromContext:st}=await Promise.resolve().then(()=>(Jt(),$o));io=await st(M,Ft),q(Ht())}io.success&&io.answer&&($(oo(io.answer)),St(st=>st&&{...st,ai:!0}))}}catch{$(z=>z||"\u26A0\uFE0F Something went wrong.")}_(!1)}},[P,te,Z,a]),no=(0,O.useCallback)(async()=>{if(wt)return vt();if(!(!P.trim()||te)){if(!Z){$("\u26A0\uFE0F No AI engine available.");return}_(!0),$("");try{let M;if(Z==="gemini"){let{askPage:z}=await Promise.resolve().then(()=>(qo(),vn));M=await z(P)}else{q("loading");let{askPageWithTransformers:z}=await Promise.resolve().then(()=>(Jt(),$o));M=await z(P),q("ready")}$(M.success&&M.answer?M.answer.replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/#+\s/g,"").trim():"\u26A0\uFE0F "+(M.error||"No answer found."))}catch{$("\u26A0\uFE0F Something went wrong.")}_(!1)}},[P,te,Z,wt,vt]),No=(0,O.useCallback)(async()=>{if(!ye.trim()||Ne)return;if(!xe){We("\u26A0\uFE0F No AI engine available.");return}Qt(!0),ot([]),We("");let{runAgent:M}=await Promise.resolve().then(()=>(Sl(),kl));await M(ye,xe,z=>{ot(we=>[...we,z.text])}),Qt(!1),We("done")},[ye,Ne,xe]);(0,O.useEffect)(()=>{if(typeof window>"u")return;let z=setTimeout(async()=>{let we=window,ro=await zc();S(ro),se(!!(we.SpeechRecognition||we.webkitSpeechRecognition))},800);return()=>clearTimeout(z)},[]),(0,O.useEffect)(()=>{if(!(typeof window>"u"))try{let M=localStorage.getItem("yuktai-a11y-prefs");M&&k(z=>({...z,...JSON.parse(M)}))}catch{}},[]);let Ao=(0,O.useCallback)(async M=>{let z={enabled:!0,highContrast:M.highContrast,darkMode:M.darkMode,reduceMotion:M.reduceMotion,largeTargets:M.largeTargets,speechEnabled:M.speechEnabled,autoFix:M.autoFix,dyslexiaFont:M.dyslexiaFont,localFont:M.localFont,fontSizeMultiplier:M.fontScale/100,colorBlindMode:M.colorBlindMode,showAuditBadge:M.showAuditBadge,showSkipLinks:!0,showPreferencePanel:!1,plainEnglish:M.plainEnglish,summarisePage:M.summarisePage,translateLanguage:M.translateLanguage,voiceControl:M.voiceControl,smartLabels:M.smartLabels,...o};await ke.execute(z),H(ke.applyFixes(z)),T(!0)},[o]),ie=(0,O.useCallback)(async()=>{try{localStorage.setItem("yuktai-a11y-prefs",JSON.stringify(Q))}catch{}await Ao(Q),I(!1)},[Q,Ao]),vs=(0,O.useCallback)(()=>{k(Nn);try{localStorage.removeItem("yuktai-a11y-prefs")}catch{}let M=document.documentElement;["data-yuktai-high-contrast","data-yuktai-dark","data-yuktai-reduce-motion","data-yuktai-large-targets","data-yuktai-keyboard","data-yuktai-dyslexia"].forEach(z=>M.removeAttribute(z)),document.body.style.filter="",document.body.style.fontFamily="",document.documentElement.style.fontSize="",H(null),T(!1)},[]),Ds=(0,O.useCallback)((M,z)=>{k(we=>({...we,[M]:z}))},[]);(0,O.useEffect)(()=>{let M=z=>{z.key==="Escape"&&(c||re||le||Ke||At?(I(!1),ge(!1),me(!1),nt(!1),dt(!1)):s&&w&&b(!1))};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[c,re,le,Ke,At,s,w]),(0,O.useEffect)(()=>{if(s)try{localStorage.getItem(vl)==="1"&&b(!0)}catch{}},[s]),(0,O.useEffect)(()=>{if(!(!s||typeof document>"u")){document.documentElement.setAttribute("data-yuktai-tools",w?"open":"closed");try{localStorage.setItem(vl,w?"1":"0")}catch{}}},[s,w]);let Ro=(0,O.useCallback)(()=>{b(M=>(M&&(I(!1),ge(!1),me(!1),nt(!1),dt(!1)),!M))},[]);(0,O.useEffect)(()=>{c&&W.current&&ke.trapFocus(W.current)},[c]);let ut=(M,z,we)=>({position:"fixed",bottom:`${M}px`,[e]:"24px",zIndex:9998,width:"52px",height:"52px",borderRadius:"50%",background:z,color:"#fff",border:"none",cursor:"pointer",fontSize:"22px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 16px rgba(0,0,0,0.25)",transition:"transform 0.15s, background 0.2s"}),it=M=>{M.currentTarget.style.transform="scale(1.08)"},It=M=>{M.currentTarget.style.transform="scale(1)"},K=wt?`${a==="ts"?"Page search":"Rust page search"}${Z==="gemini"?" + Gemini Nano":Z==="transformers"?" + Transformers.js":" \xB7 On device"}`:Z==="gemini"?"Gemini Nano \xB7 On device":Z==="transformers"?"Transformers.js \xB7 All devices":"Detecting...",j=wt||!!Z,ne=Z==="transformers"&&Te==="loading"?"Loading model...":"...";return(0,Y.jsxs)(Y.Fragment,{children:[t,s&&(0,Y.jsx)("button",{type:"button","data-yuktai-ui":"true",style:ut(24,w?"#134e4a":"#0f766e",w),"aria-expanded":w,"aria-label":w?"Hide yuktai tools":"Show yuktai tools",title:w?"Hide yuktai tools":"yuktai tools","data-yuktai-launcher":"true",onClick:Ro,onMouseEnter:it,onMouseLeave:It,children:w?(0,Y.jsx)("svg",{"aria-hidden":"true",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:(0,Y.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})}):(0,Y.jsxs)("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Y.jsx)("path",{d:"M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z"}),(0,Y.jsx)("path",{d:"M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z"})]})}),l&&C&&(0,Y.jsx)("button",{type:"button","data-yuktai-ui":"true",style:ut(to,At?"#312e81":"#4338ca",At),"aria-label":"Open page tools","aria-haspopup":"dialog","aria-expanded":At,title:"\u{1F6E0} Page tools: QA report, forms, design, ask, voice","data-yuktai-page-tools":"true",onClick:()=>{dt(M=>!M),I(!1),ge(!1),me(!1),nt(!1)},onMouseEnter:it,onMouseLeave:It,children:"\u{1F6E0}"}),l&&C&&At&&(0,Y.jsxs)("div",{role:"dialog","aria-label":"yuktai page tools","data-yuktai-panel":"true",style:{position:"fixed",bottom:`${to+64}px`,[e]:"24px",zIndex:9999,width:"420px",maxWidth:"calc(100vw - 48px)",maxHeight:`calc(100vh - ${to+88}px)`,minHeight:"160px",overflowY:"auto",boxShadow:"0 8px 32px rgba(0,0,0,0.18)",borderRadius:"16px",background:"Canvas",color:"CanvasText",border:"1px solid color-mix(in srgb, CanvasText 20%, transparent)"},children:[(0,Y.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",position:"sticky",top:0,zIndex:1,background:"Canvas"},children:(0,Y.jsx)("button",{type:"button",onClick:()=>dt(!1),"aria-label":"Close page tools",style:{margin:"6px 6px 0 0",minWidth:32,minHeight:32,borderRadius:8,border:"1px solid #94a3b8",background:"#fff",color:"#0f172a",cursor:"pointer",fontSize:16},children:"\u2715"})}),(0,Y.jsx)(pA,{defaultTab:g,voiceLang:u,engine:a,style:{margin:0,border:0,paddingTop:4}})]}),B&&C&&(0,Y.jsx)("button",{"data-yuktai-ui":"true",style:ut(Mo,Ke?"#92400e":"#b45309",Ke),"aria-label":"Open Vibe Coder",title:"\u26A1 Vibe Coder \u2014 Generate Next.js project",onClick:()=>{nt(M=>!M),me(!1),ge(!1),I(!1)},onMouseEnter:it,onMouseLeave:It,children:"\u26A1"}),B&&C&&Ke&&(0,Y.jsx)(Fn,{position:e,onClose:()=>nt(!1)}),m&&C&&(0,Y.jsx)("button",{"data-yuktai-ui":"true",style:ut(Tt,le?"#065f46":"#047857",le),"aria-label":"Open AI agent","aria-haspopup":"dialog","aria-expanded":le,title:"\u{1F916} AI Agent \u2014 guide me through this page",onClick:()=>{me(M=>!M),ge(!1),I(!1)},onMouseEnter:it,onMouseLeave:It,children:"\u{1F916}"}),m&&C&&le&&(0,Y.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"yuktai AI Agent","data-yuktai-panel":"true",style:{position:"fixed",bottom:`${Tt+64}px`,[e]:"24px",zIndex:9999,width:"300px",maxWidth:"calc(100vw - 48px)",background:"#fff",border:"1px solid #e2e8f0",borderRadius:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.12)",fontFamily:"system-ui,-apple-system,sans-serif",padding:"14px",maxHeight:"70vh",overflowY:"auto"},children:[(0,Y.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"10px"},children:[(0,Y.jsxs)("div",{children:[(0,Y.jsx)("p",{style:{margin:"0 0 2px",fontSize:"13px",fontWeight:600,color:"#0f172a"},children:"\u{1F916} AI Agent"}),(0,Y.jsx)("p",{style:{margin:0,fontSize:"10px",color:"#10b981"},children:xe==="gemini"?"Gemini Nano \xB7 On device":xe==="transformers"?"Transformers.js \xB7 All devices":"Detecting..."})]}),(0,Y.jsx)("button",{onClick:()=>me(!1),"aria-label":"Close agent panel",style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8",fontSize:"18px",lineHeight:1,padding:"2px"},children:"\xD7"})]}),(0,Y.jsx)("p",{style:{margin:"0 0 8px",fontSize:"11px",color:"#64748b"},children:"Tell me what you want to do on this page. I will guide you step by step."}),(0,Y.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",marginBottom:"8px"},children:["Fill this form","Find contact info","What is this page?","Guide me to apply"].map(M=>(0,Y.jsx)("button",{onClick:()=>Ge(M),style:{padding:"3px 8px",borderRadius:"20px",fontSize:"10px",border:"1px solid #e2e8f0",background:"#f8fafc",color:"#64748b",cursor:"pointer"},children:M},M))}),(0,Y.jsxs)("div",{style:{display:"flex",gap:"6px",marginBottom:"8px"},children:[(0,Y.jsx)("input",{type:"text",value:ye,onChange:M=>Ge(M.target.value),onKeyDown:M=>{M.key==="Enter"&&No()},placeholder:"e.g. Help me fill this form",disabled:Ne||!xe,"aria-label":"Tell the agent what to do",style:{flex:1,padding:"8px 10px",borderRadius:"8px",border:"1px solid #e2e8f0",fontSize:"12px",color:"#0f172a",background:xe?"#fff":"#f8fafc",outline:"none",height:"36px"}}),(0,Y.jsx)("button",{onClick:No,disabled:Ne||!ye.trim()||!xe,"aria-label":"Run agent",style:{padding:"8px 12px",borderRadius:"8px",border:"none",background:xe&&ye.trim()&&!Ne?"#10b981":"#e2e8f0",color:xe&&ye.trim()&&!Ne?"#fff":"#94a3b8",fontSize:"12px",fontWeight:600,cursor:xe&&ye.trim()&&!Ne?"pointer":"not-allowed",height:"36px",minWidth:"52px",transition:"background 0.2s"},children:Ne?"...":"Go"})]}),Je.length>0&&(0,Y.jsxs)("div",{style:{padding:"10px 12px",background:"#f0fdf4",border:"1px solid #86efac",borderRadius:"8px",fontSize:"11px",color:"#166534",lineHeight:1.7},children:[Je.map((M,z)=>(0,Y.jsx)("p",{style:{margin:"0 0 2px"},children:M},z)),be==="done"&&(0,Y.jsx)("button",{onClick:()=>{ot([]),Ge(""),We("")},style:{display:"block",marginTop:"6px",background:"none",border:"none",color:"#94a3b8",fontSize:"10px",cursor:"pointer",padding:0},children:"Clear"})]}),!xe&&(0,Y.jsx)("p",{style:{margin:"4px 0 0",fontSize:"10px",color:"#94a3b8"},children:"Enable Gemini Nano via chrome://flags for best results."})]}),y&&C&&(0,Y.jsx)("button",{"data-yuktai-ui":"true",style:ut(Et,re?"#7c3aed":"#6d28d9",re),"aria-label":"Ask a question about this page","aria-haspopup":"dialog","aria-expanded":re,title:`\u{1F4AC} Ask this page \xB7 ${K}`,onClick:()=>{ge(M=>!M),I(!1),me(!1)},onMouseEnter:it,onMouseLeave:It,children:"\u{1F4AC}"}),y&&C&&re&&(0,Y.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Ask this page","data-yuktai-panel":"true",style:{position:"fixed",bottom:`${Et+64}px`,[e]:"24px",zIndex:9999,width:"300px",maxWidth:"calc(100vw - 48px)",background:"#fff",border:"1px solid #e2e8f0",borderRadius:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.12)",fontFamily:"system-ui,-apple-system,sans-serif",padding:"14px"},children:[(0,Y.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"10px"},children:[(0,Y.jsxs)("div",{children:[(0,Y.jsx)("p",{style:{margin:"0 0 2px",fontSize:"13px",fontWeight:600,color:"#0f172a"},children:"\u{1F4AC} Ask this page"}),(0,Y.jsx)("p",{style:{margin:0,fontSize:"10px",color:"#7c3aed"},children:K}),Z==="transformers"&&Te==="loading"&&(0,Y.jsx)("p",{style:{margin:"2px 0 0",fontSize:"9px",color:"#94a3b8"},children:"Downloading model \u2014 first time only"}),Z==="transformers"&&Te==="ready"&&(0,Y.jsx)("p",{style:{margin:"2px 0 0",fontSize:"9px",color:"#10b981"},children:"Model ready \u2705 \u2014 works offline"})]}),(0,Y.jsx)("button",{onClick:()=>ge(!1),"aria-label":"Close ask panel",style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8",fontSize:"18px",lineHeight:1,padding:"2px"},children:"\xD7"})]}),(0,Y.jsxs)("div",{style:{display:"flex",gap:"6px",marginBottom:"8px"},children:[(0,Y.jsx)("input",{type:"text",value:P,onChange:M=>ae(M.target.value),onKeyDown:M=>{M.key==="Enter"&&no()},placeholder:"e.g. What does this page do?",disabled:te||!j,"aria-label":"Ask a question about this page",style:{flex:1,padding:"8px 10px",borderRadius:"8px",border:"1px solid #e2e8f0",fontSize:"12px",color:"#0f172a",background:j?"#fff":"#f8fafc",outline:"none",height:"36px"}}),(0,Y.jsx)("button",{onClick:no,disabled:te||!P.trim()||!j,"aria-label":"Submit question",style:{padding:"8px 12px",borderRadius:"8px",border:"none",background:j&&P.trim()&&!te?"#7c3aed":"#e2e8f0",color:j&&P.trim()&&!te?"#fff":"#94a3b8",fontSize:"12px",fontWeight:600,cursor:j&&P.trim()&&!te?"pointer":"not-allowed",height:"36px",minWidth:"48px",transition:"background 0.2s"},children:te?ne:"Ask"})]}),J&&(0,Y.jsxs)("div",{"aria-live":"polite",style:{padding:"10px",background:"#f5f3ff",borderRadius:"8px",fontSize:"12px",color:"#4c1d95",lineHeight:1.6,maxHeight:wt?"260px":"180px",overflowY:"auto",whiteSpace:"pre-line"},children:[(0,Y.jsx)("strong",{style:{display:"block",marginBottom:"4px",fontSize:"11px",color:"#7c3aed"},children:"\u{1F4AC} Answer"}),J,Go.length>0&&(0,Y.jsxs)("div",{style:{marginTop:"8px"},children:[(0,Y.jsx)("strong",{style:{display:"block",fontSize:"10px",color:"#6d28d9"},children:"From this page"}),(0,Y.jsx)("ul",{style:{margin:"4px 0 0",paddingLeft:"16px",fontSize:"11px",color:"#5b21b6"},children:Go.map((M,z)=>(0,Y.jsx)("li",{style:{marginBottom:"2px"},children:M},z))})]}),kt&&(0,Y.jsxs)("p",{style:{margin:"6px 0 0",fontSize:"10px",color:"#6d28d9"},children:["\u26A1 Found in ",_o(kt.ms)," \xB7 ",kt.engine==="rust"?"Rust":"TS"," \xB7 on device",kt.ai?" \xB7 answer written by AI":""]}),(0,Y.jsx)("button",{onClick:()=>{$(""),ae(""),xt([]),St(null)},style:{display:"block",marginTop:"6px",background:"none",border:"none",color:"#94a3b8",fontSize:"10px",cursor:"pointer",padding:0},children:"Clear"})]}),!j&&(0,Y.jsx)("p",{style:{margin:"4px 0 0",fontSize:"10px",color:"#94a3b8"},children:"Detecting AI engine..."})]}),p&&C&&(0,Y.jsx)("button",{"data-yuktai-ui":"true",style:ut(Ve,V?"#0f766e":"#1a73e8",c),"aria-label":"Open accessibility preferences","aria-haspopup":"dialog","aria-expanded":c,"data-yuktai-pref-toggle":"true",title:"\u267F Accessibility settings",onClick:()=>{I(M=>!M),ge(!1),me(!1)},onMouseEnter:it,onMouseLeave:It,children:"\u267F"}),p&&C&&c&&(0,Y.jsx)(Rn,{ref:W,position:e,settings:Q,report:N,isActive:V,aiSupported:G,voiceSupported:oe,set:Ds,onApply:ie,onReset:vs,onClose:()=>I(!1)})]})}x();var Qo={name:"ai.text",async execute(e){return`\u{1F916} YuktAI says: ${e}`}};x();var Eo={name:"voice.text",async execute(e){return!e||e.trim()===""?"\u{1F3A4} No speech detected":`\u{1F3A4} You said: ${e}`}};x();var ft=class{plugins=new Map;register(t,o){if(!o||typeof o.execute!="function")throw new Error(`Invalid plugin: ${t}`);this.plugins.set(t,o)}use(t){return this.plugins.get(t)}async run(t,o){try{let n=this.use(t);if(!n)throw new Error(`Plugin not found: ${t}`);return await n.execute(o)}catch(n){throw console.error(`[YuktAI Runtime Error in ${t}]:`,n),n}}getPlugins(){return Array.from(this.plugins.keys())}};x();var de=require("react");x();var ue=require("react"),R=require("react/jsx-runtime"),Dl={"en-US":{title:"Grid AI Assistant",subtitle:"Ask about your data",ask:"Ask",placeholder:"Ask or type a command...",listening:"Listening...",send:"Send",close:"Close",open:"Open AI assistant",inputLanguage:"Input language",speakNow:"Speak your question",working:"Working on it\u2026",english:"English",telugu:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",searchStarted:e=>`Searching for "${e}".`,sortedAscending:e=>`Sorted by ${e} in ascending order.`,sortedDescending:e=>`Sorted by ${e} in descending order.`,count:e=>`There are ${e} rows in the grid.`,highest:(e,t,o)=>`The highest ${e} is ${t}, held by ${o}.`,lowest:(e,t,o)=>`The lowest ${e} is ${t}, held by ${o}.`,average:(e,t)=>`The average ${e} is ${t}.`,total:(e,t)=>`The total ${e} is ${t}.`,noData:"There is no data to analyze.",noColumn:"I could not find a column to analyze.",noNumericData:e=>`There is no numeric data in ${e}.`,notFound:e=>`I could not find anything matching "${e}".`,needName:"Please provide a value to look up.",fallback:"I can search, sort, count, and analyze the grid data.",unsupportedVoice:"Voice input is not supported in this browser."},"te-IN":{title:"\u0C17\u0C4D\u0C30\u0C3F\u0C21\u0C4D AI \u0C38\u0C39\u0C3E\u0C2F\u0C15\u0C41\u0C21\u0C41",subtitle:"\u0C2E\u0C40 \u0C21\u0C47\u0C1F\u0C3E \u0C17\u0C41\u0C30\u0C3F\u0C02\u0C1A\u0C3F \u0C05\u0C21\u0C17\u0C02\u0C21\u0C3F",ask:"\u0C05\u0C21\u0C17\u0C02\u0C21\u0C3F",placeholder:"\u0C2A\u0C4D\u0C30\u0C36\u0C4D\u0C28 \u0C32\u0C47\u0C26\u0C3E \u0C06\u0C26\u0C47\u0C36\u0C02 \u0C1F\u0C48\u0C2A\u0C4D \u0C1A\u0C47\u0C2F\u0C02\u0C21\u0C3F...",listening:"\u0C35\u0C3F\u0C02\u0C1F\u0C41\u0C28\u0C4D\u0C28\u0C3E\u0C28\u0C41...",send:"\u0C2A\u0C02\u0C2A\u0C02\u0C21\u0C3F",close:"\u0C2E\u0C42\u0C38\u0C3F\u0C35\u0C47\u0C2F\u0C02\u0C21\u0C3F",open:"AI \u0C38\u0C39\u0C3E\u0C2F\u0C15\u0C41\u0C21\u0C3F\u0C28\u0C3F \u0C24\u0C46\u0C30\u0C35\u0C02\u0C21\u0C3F",inputLanguage:"\u0C07\u0C28\u0C4D\u200C\u0C2A\u0C41\u0C1F\u0C4D \u0C2D\u0C3E\u0C37",speakNow:"\u0C2E\u0C40 \u0C2A\u0C4D\u0C30\u0C36\u0C4D\u0C28 \u0C1A\u0C46\u0C2A\u0C4D\u0C2A\u0C02\u0C21\u0C3F",working:"\u0C1A\u0C47\u0C38\u0C4D\u0C24\u0C41\u0C28\u0C4D\u0C28\u0C3E\u0C28\u0C41\u2026",english:"English",telugu:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",searchStarted:e=>`\u201C${e}\u201D \u0C15\u0C4B\u0C38\u0C02 \u0C36\u0C4B\u0C27\u0C3F\u0C38\u0C4D\u0C24\u0C41\u0C28\u0C4D\u0C28\u0C3E\u0C28\u0C41.`,sortedAscending:e=>`${e}\u0C28\u0C41 \u0C06\u0C30\u0C4B\u0C39\u0C23 \u0C15\u0C4D\u0C30\u0C2E\u0C02\u0C32\u0C4B \u0C05\u0C2E\u0C30\u0C4D\u0C1A\u0C3E\u0C28\u0C41.`,sortedDescending:e=>`${e}\u0C28\u0C41 \u0C05\u0C35\u0C30\u0C4B\u0C39\u0C23 \u0C15\u0C4D\u0C30\u0C2E\u0C02\u0C32\u0C4B \u0C05\u0C2E\u0C30\u0C4D\u0C1A\u0C3E\u0C28\u0C41.`,count:e=>`\u0C17\u0C4D\u0C30\u0C3F\u0C21\u0C4D\u200C\u0C32\u0C4B \u0C2E\u0C4A\u0C24\u0C4D\u0C24\u0C02 ${e} \u0C35\u0C30\u0C41\u0C38\u0C32\u0C41 \u0C09\u0C28\u0C4D\u0C28\u0C3E\u0C2F\u0C3F.`,highest:(e,t,o)=>`\u0C05\u0C24\u0C4D\u0C2F\u0C27\u0C3F\u0C15 ${e} \u0C35\u0C3F\u0C32\u0C41\u0C35 ${t}. \u0C07\u0C26\u0C3F ${o}\u0C15\u0C41 \u0C38\u0C02\u0C2C\u0C02\u0C27\u0C3F\u0C02\u0C1A\u0C3F\u0C28\u0C26\u0C3F.`,lowest:(e,t,o)=>`\u0C05\u0C24\u0C4D\u0C2F\u0C32\u0C4D\u0C2A ${e} \u0C35\u0C3F\u0C32\u0C41\u0C35 ${t}. \u0C07\u0C26\u0C3F ${o}\u0C15\u0C41 \u0C38\u0C02\u0C2C\u0C02\u0C27\u0C3F\u0C02\u0C1A\u0C3F\u0C28\u0C26\u0C3F.`,average:(e,t)=>`${e} \u0C38\u0C17\u0C1F\u0C41 \u0C35\u0C3F\u0C32\u0C41\u0C35 ${t}.`,total:(e,t)=>`${e} \u0C2E\u0C4A\u0C24\u0C4D\u0C24\u0C02 \u0C35\u0C3F\u0C32\u0C41\u0C35 ${t}.`,noData:"\u0C35\u0C3F\u0C36\u0C4D\u0C32\u0C47\u0C37\u0C3F\u0C02\u0C1A\u0C21\u0C3E\u0C28\u0C3F\u0C15\u0C3F \u0C21\u0C47\u0C1F\u0C3E \u0C32\u0C47\u0C26\u0C41.",noColumn:"\u0C35\u0C3F\u0C36\u0C4D\u0C32\u0C47\u0C37\u0C3F\u0C02\u0C1A\u0C21\u0C3E\u0C28\u0C3F\u0C15\u0C3F \u0C24\u0C17\u0C3F\u0C28 \u0C15\u0C3E\u0C32\u0C2E\u0C4D \u0C15\u0C28\u0C2C\u0C21\u0C32\u0C47\u0C26\u0C41.",noNumericData:e=>`${e}\u0C32\u0C4B \u0C38\u0C02\u0C16\u0C4D\u0C2F\u0C3E \u0C38\u0C2E\u0C3E\u0C1A\u0C3E\u0C30\u0C02 \u0C32\u0C47\u0C26\u0C41.`,notFound:e=>`\u201C${e}\u201D\u0C15\u0C41 \u0C38\u0C30\u0C3F\u0C2A\u0C4B\u0C32\u0C47 \u0C38\u0C2E\u0C3E\u0C1A\u0C3E\u0C30\u0C02 \u0C15\u0C28\u0C2C\u0C21\u0C32\u0C47\u0C26\u0C41.`,needName:"\u0C36\u0C4B\u0C27\u0C3F\u0C02\u0C1A\u0C21\u0C3E\u0C28\u0C3F\u0C15\u0C3F \u0C12\u0C15 \u0C35\u0C3F\u0C32\u0C41\u0C35 \u0C07\u0C35\u0C4D\u0C35\u0C02\u0C21\u0C3F.",fallback:"\u0C17\u0C4D\u0C30\u0C3F\u0C21\u0C4D\u200C\u0C32\u0C4B \u0C36\u0C4B\u0C27\u0C28, \u0C15\u0C4D\u0C30\u0C2E\u0C2C\u0C26\u0C4D\u0C27\u0C40\u0C15\u0C30\u0C23, \u0C32\u0C46\u0C15\u0C4D\u0C15\u0C3F\u0C02\u0C2A\u0C41 \u0C2E\u0C30\u0C3F\u0C2F\u0C41 \u0C21\u0C47\u0C1F\u0C3E \u0C35\u0C3F\u0C36\u0C4D\u0C32\u0C47\u0C37\u0C23 \u0C1A\u0C47\u0C2F\u0C17\u0C32\u0C28\u0C41.",unsupportedVoice:"\u0C08 \u0C2C\u0C4D\u0C30\u0C4C\u0C1C\u0C30\u0C4D\u200C\u0C32\u0C4B \u0C35\u0C3E\u0C2F\u0C3F\u0C38\u0C4D \u0C07\u0C28\u0C4D\u200C\u0C2A\u0C41\u0C1F\u0C4D\u200C\u0C15\u0C41 \u0C2E\u0C26\u0C4D\u0C26\u0C24\u0C41 \u0C32\u0C47\u0C26\u0C41."}};function Oe(e){return e.toLowerCase().trim().replace(/\s+/g," ")}function Oc(e,t){let o=Oe(e);if(t==="te-IN")return/^(శోధించు|శోధించండి|వెతుకు|వెతకండి|చూపించు|చూపించండి|ఫిల్టర్)/.test(o)?{type:"search",payload:o.replace(/^(శోధించు|శోధించండి|వెతుకు|వెతకండి|చూపించు|చూపించండి|ఫిల్టర్)\s*/u,"").trim()||e}:/క్రమబద్ధీకర|అమర్చ|సార్ట్/.test(o)?{type:"sort",payload:{key:void 0,dir:/అవరోహణ|పెద్ద|అధిక|చివర/.test(o)?"desc":"asc"}}:/ఎన్ని|ఎంతమంది|లెక్క|మొత్తం వరుస|వరుసలు/.test(o)?{type:"question",payload:e}:/అత్యధిక|గరిష్ఠ|పెద్ద|ఎక్కువ/.test(o)?{type:"question",payload:e}:/అత్యల్ప|కనిష్ఠ|చిన్న|తక్కువ/.test(o)?{type:"question",payload:e}:/సగటు|సగటు విలువ/.test(o)?{type:"question",payload:e}:/మొత్తం|కలిపి/.test(o)?{type:"question",payload:e}:{type:"search",payload:e};if(/^(search|find|show|filter)/.test(o))return{type:"search",payload:o.replace(/^(search|find|show|filter)\s+(for\s+|by\s+)?/,"").trim()||e};if(/sort/.test(o)){let n=/desc|descending|high|higher|large|largest|top/.test(o);return{type:"sort",payload:{key:o.match(/(?:by|on)\s+([a-z0-9_-]+)/)?.[1],dir:n?"desc":"asc"}}}return/how many|count|highest|maximum|max|top|largest|lowest|minimum|min|smallest|bottom|average|avg|mean|sum|total|who|which|where|whose/.test(o)?{type:"question",payload:e}:{type:"search",payload:e}}function Ml(e,t){let o=Oe(e);return t.find(n=>{let A=Oe(n.key),i=Oe(n.label);return o.includes(A)||o.includes(i)})}function gn(e,t){return e.toLocaleString(t==="te-IN"?"te-IN":"en-IN")}function Wc(e,t,o,n){let A=Dl[n];if(t.length===0)return A.noData;let i=Oe(e),r=o.filter(b=>b.type==="number"),s=Ml(e,o),a=s?.type==="number"?s:r[0],l=/how many|count|rows|ఎన్ని|ఎంతమంది|లెక్క|వరుసలు/.test(i);if(l)return A.count(t.length);if(/highest|maximum|max|top|largest|అత్యధిక|గరిష్ఠ|పెద్ద|ఎక్కువ/.test(i)){let b=s??a;if(!b)return A.noColumn;let C=t.map(k=>({row:k,value:Number(k[b.key])})).filter(k=>!Number.isNaN(k.value)).sort((k,N)=>N.value-k.value);if(C.length===0)return A.noNumericData(b.label);let c=C[0],I=o.find(k=>k.key==="name"||Oe(k.label)==="name"),Q=I?String(c.row[I.key]??""):n==="te-IN"?"\u0C08 \u0C35\u0C30\u0C41\u0C38":"this row";return A.highest(b.label,gn(c.value,n),Q)}if(/lowest|minimum|min|smallest|bottom|అత్యల్ప|కనిష్ఠ|చిన్న|తక్కువ/.test(i)){let b=s??a;if(!b)return A.noColumn;let C=t.map(k=>({row:k,value:Number(k[b.key])})).filter(k=>!Number.isNaN(k.value)).sort((k,N)=>k.value-N.value);if(C.length===0)return A.noNumericData(b.label);let c=C[0],I=o.find(k=>k.key==="name"||Oe(k.label)==="name"),Q=I?String(c.row[I.key]??""):n==="te-IN"?"\u0C08 \u0C35\u0C30\u0C41\u0C38":"this row";return A.lowest(b.label,gn(c.value,n),Q)}if(/average|avg|mean|సగటు/.test(i)){let b=s??a;if(!b)return A.noColumn;let C=t.map(I=>Number(I[b.key])).filter(I=>!Number.isNaN(I));if(C.length===0)return A.noNumericData(b.label);let c=C.reduce((I,Q)=>I+Q,0)/C.length;return A.average(b.label,gn(Math.round(c*100)/100,n))}if(/sum|total|మొత్తం|కలిపి/.test(i)&&!l){let b=s??a;if(!b)return A.noColumn;let C=t.map(I=>Number(I[b.key])).filter(I=>!Number.isNaN(I));if(C.length===0)return A.noNumericData(b.label);let c=C.reduce((I,Q)=>I+Q,0);return A.total(b.label,gn(c,n))}let B=i.match(/[\p{L}\p{N}_-]+/gu)??[],y=new Set(["who","what","which","where","whose","is","the","has","have","show","find","search","for","by","about"]),w=B.filter(b=>!y.has(b)).join(" ").trim();if(w){let b=t.find(C=>Object.values(C).some(c=>String(c??"").toLowerCase().includes(w.toLowerCase())));return b?o.map(C=>`${C.label}: ${String(b[C.key]??"")}`).join(n==="te-IN"?" \xB7 ":", "):A.notFound(w)}return A.fallback}function Vc(e,t){if(typeof window>"u"||!window.speechSynthesis)return;window.speechSynthesis.cancel();let o=new SpeechSynthesisUtterance(e);o.lang=t,o.rate=1,o.pitch=1,window.speechSynthesis.speak(o)}function _c(e){let[t,o]=(0,ue.useState)(!1),[n,A]=(0,ue.useState)(""),[i,r]=(0,ue.useState)(!0),s=(0,ue.useRef)(null);(0,ue.useEffect)(()=>{if(typeof window>"u")return;let g=window.SpeechRecognition||window.webkitSpeechRecognition;if(!g){r(!1),s.current=null;return}let u=new g;return u.continuous=!1,u.interimResults=!1,u.lang=e,u.onresult=d=>{let p=d?.results?.[0]?.[0]?.transcript??"";A(p),o(!1)},u.onerror=()=>{o(!1)},u.onend=()=>{o(!1)},s.current=u,()=>{try{u.stop()}catch{}s.current=null}},[e]);let a=(0,ue.useCallback)(()=>{if(s.current){A(""),o(!0);try{s.current.start()}catch{o(!1)}}},[]),l=(0,ue.useCallback)(()=>{try{s.current?.stop()}catch{}o(!1)},[]);return{listening:t,transcript:n,supported:i,start:a,stop:l}}function Xc(){return(0,R.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,R.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,R.jsx)("path",{d:"m16 16 5 5"})]})}function jc(){return(0,R.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,R.jsx)("rect",{x:"8",y:"3",width:"8",height:"12",rx:"4"}),(0,R.jsx)("path",{d:"M5 11a7 7 0 0 0 14 0"}),(0,R.jsx)("path",{d:"M12 18v3"}),(0,R.jsx)("path",{d:"M8 21h8"})]})}function Zc(){return(0,R.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,R.jsx)("path",{d:"m4 4 16 8-16 8 4-8-4-8Z"}),(0,R.jsx)("path",{d:"M8 12h12"})]})}function ed(){return(0,R.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,R.jsx)("path",{d:"m6 6 12 12"}),(0,R.jsx)("path",{d:"m18 6-12 12"})]})}function td({data:e,columns:t,onSearch:o,onSort:n,theme:A="light",language:i="en-US",inputLanguage:r="en-US",embedded:s=!1,agent:a,onInputLanguageChange:l}){let g=Dl[i],[u,d]=(0,ue.useState)(r);(0,ue.useEffect)(()=>{d(r)},[r]);let[p,B]=(0,ue.useState)(!1),y=A==="dark",[m,w]=(0,ue.useState)(s),[b,C]=(0,ue.useState)(""),[c,I]=(0,ue.useState)([]),Q=(0,ue.useRef)(null),{listening:k,transcript:N,supported:H,start:V,stop:T}=_c(u),G=(0,ue.useMemo)(()=>({bg:y?"#0F172A":"#FFFFFF",surface:y?"#1E293B":"#F8FAFC",border:y?"#334155":"#E2E8F0",text:y?"#F1F5F9":"#0F172A",muted:y?"#94A3B8":"#64748B",accent:"#047857",userMsg:y?"#334155":"#DBEAFE",aiMsg:y?"#1E293B":"#F0FDF4"}),[y]),S=(0,ue.useMemo)(()=>({role:"ai",text:i==="te-IN"?"\u0C2E\u0C40 \u0C17\u0C4D\u0C30\u0C3F\u0C21\u0C4D \u0C21\u0C47\u0C1F\u0C3E \u0C17\u0C41\u0C30\u0C3F\u0C02\u0C1A\u0C3F \u0C2A\u0C4D\u0C30\u0C36\u0C4D\u0C28 \u0C05\u0C21\u0C17\u0C02\u0C21\u0C3F.":"Ask me about your grid data.",time:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}),[i]);(0,ue.useEffect)(()=>{I(P=>P.length>0?P:[S])},[S]),(0,ue.useEffect)(()=>{Q.current?.scrollIntoView({behavior:"smooth"})},[c]);let oe=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),se=(0,ue.useCallback)(async P=>{let ae=P.trim();if(!ae)return;I($=>[...$,{role:"user",text:ae,time:oe()}]),C("");let J="";if(a){B(!0);try{J=(await a.ask(ae)).message}catch{J=g.fallback}finally{B(!1)}}else{let $=Oc(ae,i);if($.type==="question")J=Wc($.payload??ae,e,t,i);else if($.type==="search"){let te=String($.payload??ae);o?.(te),J=g.searchStarted(te)}else if($.type==="sort"){let te=$.payload?.key,_=te?t.find(Z=>Oe(Z.key)===Oe(te)||Oe(Z.label)===Oe(te)):void 0;if(_||(_=Ml(ae,t)),_&&n){let Z=$.payload?.dir==="desc"?"desc":"asc";n(String(_.key),Z),J=Z==="asc"?g.sortedAscending(_.label):g.sortedDescending(_.label)}else J=g.noColumn}}J||(J=g.fallback),I($=>[...$,{role:"ai",text:J,time:oe()}]),Vc(J,i)},[a,t,e,i,o,n,g]);(0,ue.useEffect)(()=>{N&&se(N)},[N,se]);let W=()=>{se(b)},re=i==="te-IN"?["\u0C0E\u0C28\u0C4D\u0C28\u0C3F \u0C35\u0C30\u0C41\u0C38\u0C32\u0C41","\u0C36\u0C4B\u0C27\u0C3F\u0C02\u0C1A\u0C02\u0C21\u0C3F","\u0C15\u0C4D\u0C30\u0C2E\u0C02"]:["how many rows","search","sort"],ge=(0,R.jsxs)("div",{style:{width:s?"100%":360,maxWidth:s?"100%":"calc(100vw - 48px)",height:s?390:480,maxHeight:"70vh",background:G.bg,border:`1px solid ${G.border}`,borderRadius:s?12:16,boxShadow:s?"none":"0 20px 40px rgba(0,0,0,0.15)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,R.jsxs)("div",{style:{padding:"12px 14px",background:G.accent,color:"#FFFFFF",display:"flex",alignItems:"center",gap:10},children:[(0,R.jsx)("div",{style:{width:34,height:34,borderRadius:10,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.2)",fontSize:17},children:"AI"}),(0,R.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,R.jsx)("div",{style:{fontWeight:700,fontSize:14},children:g.title}),(0,R.jsx)("div",{style:{fontSize:11,opacity:.9},children:g.subtitle})]}),!s&&(0,R.jsx)("button",{type:"button",onClick:()=>w(!1),"aria-label":g.close,title:g.close,style:{width:32,height:32,border:"none",borderRadius:8,background:"rgba(255,255,255,0.12)",color:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:(0,R.jsx)(ed,{})})]}),(0,R.jsxs)("div",{style:{padding:"8px 10px",borderBottom:`1px solid ${G.border}`,display:"flex",alignItems:"center",gap:8,background:G.surface},children:[(0,R.jsx)("span",{style:{fontSize:11,color:G.muted},children:g.inputLanguage}),(0,R.jsxs)("select",{value:u,onChange:P=>{let ae=P.target.value;d(ae),l?.(ae)},disabled:k,"aria-label":g.inputLanguage,style:{padding:"5px 8px",borderRadius:7,border:`1px solid ${G.border}`,background:G.bg,color:G.text,fontSize:11},children:[(0,R.jsx)("option",{value:"en-US",children:"English (US)"}),(0,R.jsx)("option",{value:"en-IN",children:"English (India)"}),(0,R.jsx)("option",{value:"as-IN",children:"Assamese"}),(0,R.jsx)("option",{value:"bn-IN",children:"Bengali"}),(0,R.jsx)("option",{value:"brx-IN",children:"Bodo"}),(0,R.jsx)("option",{value:"doi-IN",children:"Dogri"}),(0,R.jsx)("option",{value:"gu-IN",children:"Gujarati"}),(0,R.jsx)("option",{value:"hi-IN",children:"Hindi"}),(0,R.jsx)("option",{value:"kn-IN",children:"Kannada"}),(0,R.jsx)("option",{value:"ks-IN",children:"Kashmiri"}),(0,R.jsx)("option",{value:"kok-IN",children:"Konkani"}),(0,R.jsx)("option",{value:"mai-IN",children:"Maithili"}),(0,R.jsx)("option",{value:"ml-IN",children:"Malayalam"}),(0,R.jsx)("option",{value:"mni-IN",children:"Manipuri"}),(0,R.jsx)("option",{value:"mr-IN",children:"Marathi"}),(0,R.jsx)("option",{value:"ne-IN",children:"Nepali"}),(0,R.jsx)("option",{value:"or-IN",children:"Odia"}),(0,R.jsx)("option",{value:"pa-IN",children:"Punjabi"}),(0,R.jsx)("option",{value:"sa-IN",children:"Sanskrit"}),(0,R.jsx)("option",{value:"sat-IN",children:"Santali"}),(0,R.jsx)("option",{value:"sd-IN",children:"Sindhi"}),(0,R.jsx)("option",{value:"ta-IN",children:"Tamil"}),(0,R.jsx)("option",{value:"te-IN",children:"Telugu"}),(0,R.jsx)("option",{value:"ur-IN",children:"Urdu"})]})]}),(0,R.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:10,display:"flex",flexDirection:"column",gap:8},children:[c.map((P,ae)=>(0,R.jsxs)("div",{style:{alignSelf:P.role==="user"?"flex-end":"flex-start",maxWidth:"88%",padding:"8px 11px",borderRadius:11,background:P.role==="user"?G.userMsg:G.aiMsg,color:G.text,fontSize:13,lineHeight:1.5},children:[(0,R.jsx)("div",{children:P.text}),(0,R.jsx)("div",{style:{marginTop:3,fontSize:10,opacity:.55,textAlign:"right"},children:P.time})]},`${P.time}-${ae}`)),k&&(0,R.jsx)("div",{style:{alignSelf:"flex-end",padding:"8px 11px",borderRadius:11,background:y?"#3F1D2E":"#FEE2E2",color:y?"#FCA5A5":"#991B1B",fontSize:13},children:g.listening}),(p||a?.loading)&&(0,R.jsx)("div",{role:"status","aria-live":"polite",style:{alignSelf:"flex-start",padding:"8px 11px",borderRadius:11,background:G.aiMsg,color:G.muted,fontSize:13},children:g.working}),(0,R.jsx)("div",{ref:Q})]}),(0,R.jsx)("div",{style:{padding:"7px 10px",borderTop:`1px solid ${G.border}`,display:"flex",gap:6,overflowX:"auto",flexShrink:0},children:re.map(P=>(0,R.jsx)("button",{type:"button",onClick:()=>se(P),style:{padding:"5px 9px",borderRadius:12,border:`1px solid ${G.border}`,background:G.surface,color:G.text,fontSize:10.5,cursor:"pointer",whiteSpace:"nowrap"},children:P},P))}),(0,R.jsxs)("div",{style:{padding:9,display:"flex",gap:6,borderTop:`1px solid ${G.border}`,background:G.surface},children:[(0,R.jsxs)("div",{style:{position:"relative",flex:1},children:[(0,R.jsx)(Xc,{}),(0,R.jsx)("input",{type:"text",value:b,onChange:P=>C(P.target.value),onKeyDown:P=>{P.key==="Enter"&&W()},placeholder:g.placeholder,"aria-label":g.ask,style:{width:"100%",boxSizing:"border-box",padding:"9px 10px 9px 34px",borderRadius:8,border:`1px solid ${G.border}`,background:G.bg,color:G.text,fontSize:12,outline:"none"}})]}),H?(0,R.jsx)("button",{type:"button",onClick:k?T:V,"aria-label":k?g.listening:g.speakNow,title:k?g.listening:g.speakNow,style:{width:38,height:38,border:"none",borderRadius:8,background:k?"#B91C1C":G.accent,color:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0},children:(0,R.jsx)(jc,{})}):null,(0,R.jsx)("button",{type:"button",onClick:W,disabled:!b.trim(),"aria-label":g.send,title:g.send,style:{width:38,height:38,border:"none",borderRadius:8,background:b.trim()?G.accent:G.muted,color:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",cursor:b.trim()?"pointer":"not-allowed",opacity:b.trim()?1:.6,flexShrink:0},children:(0,R.jsx)(Zc,{})})]})]});return s?(0,R.jsx)("div",{style:{width:"100%",minWidth:0},children:m?ge:(0,R.jsxs)("button",{type:"button",onClick:()=>w(!0),"aria-label":g.open,style:{minHeight:40,padding:"8px 13px",borderRadius:9,border:"1px solid #10B981",background:y?"#064E3B":"#ECFDF5",color:y?"#A7F3D0":"#047857",display:"inline-flex",alignItems:"center",gap:8,cursor:"pointer",fontSize:12,fontWeight:600},children:[(0,R.jsx)("span",{"aria-hidden":"true",children:"AI"}),g.ask]})}):(0,R.jsxs)(R.Fragment,{children:[!m&&(0,R.jsx)("button",{type:"button",onClick:()=>w(!0),"aria-label":g.open,title:g.title,style:{position:"fixed",bottom:24,right:24,zIndex:9998,width:56,height:56,borderRadius:28,background:G.accent,color:"#FFFFFF",border:"none",cursor:"pointer",boxShadow:"0 8px 20px rgba(4,120,87,0.3)",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:14},children:"AI"}),m&&(0,R.jsx)("div",{style:{position:"fixed",bottom:90,right:24,zIndex:9997},children:ge}),(0,R.jsx)("style",{children:`
1540
1540
  @keyframes yuktai-ai-pulse {
1541
1541
  0%, 100% {
1542
1542
  transform: scale(1);
@@ -1546,4 +1546,4 @@ ${on(C,A)}`};break}}}catch(C){b={...m,success:!1,message:`This step failed: ${C
1546
1546
  transform: scale(1.05);
1547
1547
  }
1548
1548
  }
1549
- `})]})}var cn=ed;x();var Ee=require("react");var td={en:{done:"Done.",toolMissing:e=>`The action "${e}" is not available here.`,missingInput:e=>`Missing: ${e}.`,notUnderstood:"Sorry, I didn't understand. Try: a word to search, \u201Csort by <column>\u201D, or \u201Cclear filters\u201D.",noMatch:e=>`Nothing matched "${e}".`,failed:"Something went wrong while running this action."},te:{done:"\u0C2A\u0C42\u0C30\u0C4D\u0C24\u0C2F\u0C3F\u0C02\u0C26\u0C3F.",toolMissing:e=>`"${e}" \u0C38\u0C4C\u0C15\u0C30\u0C4D\u0C2F\u0C02 \u0C07\u0C15\u0C4D\u0C15\u0C21 \u0C05\u0C02\u0C26\u0C41\u0C2C\u0C3E\u0C1F\u0C41\u0C32\u0C4B \u0C32\u0C47\u0C26\u0C41.`,missingInput:e=>`\u0C07\u0C35\u0C3F \u0C15\u0C3E\u0C35\u0C3E\u0C32\u0C3F: ${e}.`,notUnderstood:"\u0C15\u0C4D\u0C37\u0C2E\u0C3F\u0C02\u0C1A\u0C02\u0C21\u0C3F, \u0C05\u0C30\u0C4D\u0C25\u0C02 \u0C15\u0C3E\u0C32\u0C47\u0C26\u0C41. \u0C07\u0C32\u0C3E \u0C2A\u0C4D\u0C30\u0C2F\u0C24\u0C4D\u0C28\u0C3F\u0C02\u0C1A\u0C02\u0C21\u0C3F: \u0C35\u0C46\u0C24\u0C15\u0C3E\u0C32\u0C4D\u0C38\u0C3F\u0C28 \u0C2A\u0C26\u0C02, \u201C<\u0C15\u0C3E\u0C32\u0C2E\u0C4D> \u0C2A\u0C4D\u0C30\u0C15\u0C3E\u0C30\u0C02 \u0C15\u0C4D\u0C30\u0C2E\u0C02\u201D, \u0C32\u0C47\u0C26\u0C3E \u201C\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D\u0C32\u0C41 \u0C24\u0C40\u0C38\u0C47\u0C2F\u0C3F\u201D.",noMatch:e=>`"${e}" \u0C15\u0C3F \u0C0F\u0C2E\u0C40 \u0C38\u0C30\u0C3F\u0C2A\u0C4B\u0C32\u0C47\u0C26\u0C41.`,failed:"\u0C08 \u0C2A\u0C28\u0C3F \u0C1A\u0C47\u0C38\u0C4D\u0C24\u0C41\u0C02\u0C21\u0C17\u0C3E \u0C38\u0C2E\u0C38\u0C4D\u0C2F \u0C35\u0C1A\u0C4D\u0C1A\u0C3F\u0C02\u0C26\u0C3F."}},Gl=e=>e.normalize("NFC").toLowerCase().trim(),ht={clearFilters:/\b(clear|remove|reset)\b.*\bfilters?\b|ఫిల్టర్.*(తీసే|తొలగ)/i,clearSort:/\b(clear|remove|reset)\b.*\bsort(ing)?\b|క్రమం.*(తీసే|తొలగ)/i,count:/^\s*(how many|count)\b|ఎన్ని|లెక్క/i,sort:/\bsort\b|\border by\b|క్రమ|అమర్చ|సార్ట్/i,desc:/\b(desc|descending|z\s*-\s*a|highest|largest|most)\b|అవరోహణ|తగ్గే|పెద్ద|అధిక|చివర|ఎక్కువ నుండి/i,openEn:/^\s*open\s+(.+?)\s*$/i,openTe:/^\s*(.+?)\s*(తెరువు|తెరవండి|తెరవు)\s*$/,searchFiller:/^\s*(search(\s+for)?|find|show(\s+me)?|filter(\s+by)?|look\s+for|వెతుకు|వెతకండి|శోధించు|శోధించండి|చూపించు|చూపించండి)\s+|\s+(వెతుకు|వెతకండి|శోధించు|శోధించండి|చూపించు|చూపించండి)\s*$/gi};function od(e,t){let o=Gl(e),n=null;for(let A of t)for(let i of[A.label,A.key]){let r=Gl(i);r&&o.includes(r)&&(!n||r.length>n.len)&&(n={key:A.key,len:r.length})}return n?.key??null}function mA(e,t){let o=(e??"").trim();if(!o)return null;if(ht.clearFilters.test(o))return{kind:"tool",tool:"clear_filters",input:{}};if(ht.clearSort.test(o))return{kind:"tool",tool:"clear_sort",input:{}};if(ht.count.test(o))return{kind:"tool",tool:"count",input:{}};if(ht.sort.test(o)){let i=od(o,t.columns);return i?{kind:"tool",tool:"sort",input:{key:i,direction:ht.desc.test(o)?"desc":"asc"}}:null}let n=o.match(ht.openEn)??o.match(ht.openTe);if(n?.[1])return{kind:"open",text:n[1].trim()};let A=o.replace(ht.searchFiller,"").trim();return A?{kind:"tool",tool:"search",input:{query:A}}:null}function nd(e){return!!e&&typeof e=="object"&&typeof e.success=="boolean"&&typeof e.message=="string"}function Ad(e,t){let o=e.inputSchema?.required;return Array.isArray(o)?o.map(String).filter(n=>t[n]===void 0||t[n]===null||String(t[n]).trim()===""):[]}function rd(e,t){let o=e.find(A=>A.name===t);if(o)return o;let n=e.filter(A=>A.name.endsWith(`_${t}`)).sort((A,i)=>A.name.length-i.name.length);if(n.length!==0&&!(n.length>1&&n[0].name.length===n[1].name.length))return n[0]}function Nl(e){return e.normalize("NFC").trim().toLocaleLowerCase()}function id(e,t){let o=Nl(e);return t.find(n=>n.phrases.some(A=>{let i=Nl(A);return i.length>0&&o.includes(i)}))}function wo({tools:e,data:t=[],onResult:o,onError:n,locale:A="en",columns:i=[],rowKey:r="id",parseIntent:s,customRules:a=[],historyLimit:l=20}){let g=td[A],[u,d]=(0,Ee.useState)(0),[p,B]=(0,Ee.useState)(null),[y,m]=(0,Ee.useState)(null),[w,b]=(0,Ee.useState)([]),C=(0,Ee.useRef)({tools:e,data:t,onResult:o,onError:n,columns:i,rowKey:r,parseIntent:s,customRules:a,historyLimit:l,m:g,locale:A});C.current={tools:e,data:t,onResult:o,onError:n,columns:i,rowKey:r,parseIntent:s,customRules:a,historyLimit:l,m:g,locale:A};let c=(0,Ee.useRef)(!0),I=(0,Ee.useRef)(0);(0,Ee.useEffect)(()=>(c.current=!0,()=>{c.current=!1}),[]);let Q=(0,Ee.useCallback)((T,G,S,oe,se)=>{c.current&&(se===I.current&&B(S),b(W=>[...W,{id:se,tool:T,input:G,result:S,source:oe,at:Date.now()}].slice(-C.current.historyLimit)))},[]),k=(0,Ee.useCallback)(async(T,G,S)=>{let{tools:oe,onResult:se,onError:W,m:re}=C.current,ge=++I.current,P=rd(oe,T);if(!P){let J={success:!1,message:re.toolMissing(T),error:{code:"NOT_SUPPORTED"}},$=new Error(J.message);return c.current&&m($),W?.($),Q(T,G,J,S,ge),J}let ae=Ad(P,G);if(ae.length){let J={success:!1,message:re.missingInput(ae.join(", ")),error:{code:"INVALID_INPUT"},tool:P.name};return Q(P.name,G,J,S,ge),se?.(J),J}c.current&&d(J=>J+1);try{let J=await P.execute(G),$=nd(J)?{...J,tool:P.name}:{success:!0,message:re.done,data:J,tool:P.name};return c.current&&$.success&&m(null),Q(P.name,G,$,S,ge),se?.($),$}catch(J){let $=J instanceof Error?J:new Error(String(J)),te={success:!1,message:re.failed,error:{code:"INTERNAL"},tool:P.name};return c.current&&m($),W?.($),Q(P.name,G,te,S,ge),te}finally{c.current&&d(J=>Math.max(0,J-1))}},[Q]),N=(0,Ee.useCallback)((T,G={})=>k(T,G??{},"tool"),[k]),H=(0,Ee.useCallback)(async T=>{let{columns:G,locale:S,parseIntent:oe,customRules:se,data:W,m:re,rowKey:ge}=C.current,P=id(T,se??[]);if(P){let _={input:T,data:W,columns:G,executeTool:N};try{let Me={success:!0,message:await P.execute(_),tool:`rule:${P.name}`};return Q(`rule:${P.name}`,{text:T},Me,"ask",++I.current),C.current.onResult?.(Me),Me}catch(Z){let Me=Z instanceof Error?Z:new Error(String(Z)),Te={success:!1,message:re.failed,error:{code:"INTERNAL"},tool:`rule:${P.name}`};return c.current&&m(Me),C.current.onError?.(Me),Q(`rule:${P.name}`,{text:T},Te,"ask",++I.current),Te}}let J=(oe??mA)(T,{columns:G,locale:S});if(!J){let _={success:!1,message:re.notUnderstood,error:{code:"NOT_UNDERSTOOD"}};return Q("ask",{text:T},_,"ask",++I.current),_}if(J.kind==="tool")return k(J.tool,J.input,"ask");let $=await k("search",{query:J.text},"ask"),te=Array.isArray($.data)?$.data:[];if(!$.success)return $;if(te.length===0){let _={success:!1,message:re.noMatch(J.text),error:{code:"NOT_FOUND"},tool:$.tool};return Q("open",{text:J.text},_,"ask",++I.current),_}return k("open",{id:Qe(te[0],ge)},"ask")},[N,Q,k]),V=(0,Ee.useCallback)(()=>{b([]),B(null),m(null)},[]);return{loading:u>0,tools:e,executeTool:N,ask:H,lastResult:p,lastError:y,history:w,clearHistory:V}}var Rl=wo;x();var yt=require("react");function sd(e){return JSON.stringify(e.map(t=>[t.name,t.title,t.description,t.inputSchema]))}function ad({tools:e,data:t=[],columns:o=[],rowKey:n,locale:A,onSelectRow:i,onHighlightRows:r,onOpenRow:s,name:a="yuktai_grid",descriptions:l,onStatusChange:g}){let u=(0,yt.useMemo)(()=>e||Xt({data:t,columns:o,rowKey:n,locale:A,onSelectRow:i,onHighlightRows:r,onOpenRow:s},{name:a,descriptions:l}),[e,t,o,n,A,i,r,s,a,l]),d=(0,yt.useRef)(u);d.current=u;let p=(0,yt.useRef)(g);p.current=g;let B=(0,yt.useRef)(Promise.resolve()),y=sd(u);return(0,yt.useEffect)(()=>{let m=I=>p.current?.(I),w=typeof document<"u"?document.modelContext:void 0;if(!w?.registerTool){m({state:"unsupported",registered:[],errors:[]});return}let b=new AbortController,C=d.current,c=B.current.then(async()=>{if(b.signal.aborted)return;m({state:"registering",registered:[],errors:[]});let I=[],Q=[];for(let k of C){if(b.signal.aborted)return;try{await w.registerTool({name:k.name,title:k.title,description:k.description,inputSchema:k.inputSchema,execute:N=>{let H=d.current.find(V=>V.name===k.name);return H?H.execute(N??{}):{success:!1,message:`Tool "${k.name}" is no longer available.`,error:{code:"NOT_SUPPORTED"}}}},{signal:b.signal}),I.push(k.name)}catch(N){Q.push({tool:k.name,message:N instanceof Error?N.message:String(N)})}}b.signal.aborted||m({state:Q.length===0?"ready":I.length>0?"partial":"error",registered:I,errors:Q})});return B.current=c.catch(()=>{}),()=>b.abort()},[y]),null}var xo=ad;x();var Zt=require("react");function dn(e,t){let o=Wo(e,t),[n,A]=(0,Zt.useState)(()=>o?Ka():null);return(0,Zt.useEffect)(()=>{if(!o||n)return;let i=!0;return Vo().then(r=>{i&&r&&A(r)}),()=>{i=!1}},[o,n]),(0,Zt.useMemo)(()=>o&&n?Ot.create(n):null,[o,n])}x();function Tl(e,t){return e.map(o=>t.map(n=>String(o[n.key]??"").toLowerCase()).join(po))}function ld(e,t){let o=new Float64Array(e.length),n=0;for(let A=0;A<e.length;A++){let i=e[A][t];if(i==null){o[A]=NaN;continue}if(typeof i!="number"||Number.isNaN(i))return null;o[A]=i,n++}return n?o:null}function Fl(e){return e.search==="rust"||e.sort==="rust"?"rust":e.search||e.sort?"ts":null}function Ll({data:e,columns:t,searchText:o,filters:n,toolColumns:A,sortKey:i,sortDirection:r,locale:s,core:a=null,searchReady:l=!1,stats:g}){let u=[...e];if(g&&(g.search=null,g.sort=null),o.trim()){let d=o.trim().toLowerCase(),p=a&&l?a.search(d):null;g&&(g.search=p?"rust":"ts"),p?u=Wt(e,p):u=u.filter(B=>t.some(y=>String(B[y.key]??"").toLowerCase().includes(d)))}if(n.length&&(u=lt(u,A,n)),i){if(a){let d=ld(u,i),p=d&&a.sortByKeys(d,r!=="asc");if(p)return g&&(g.sort="rust"),Wt(u,p)}g&&(g.sort="ts"),u.sort((d,p)=>{let B=d[i],y=p[i];if(B==null&&y==null)return 0;if(B==null)return 1;if(y==null)return-1;if(typeof B=="number"&&typeof y=="number")return r==="asc"?B-y:y-B;let m=String(B).localeCompare(String(y),s,{numeric:!0,sensitivity:"base"});return r==="asc"?m:-m})}return u}var F=require("react/jsx-runtime"),gd={"en-US":{search:"Search...",searchAria:"Search grid",rows:"rows",row:"row",loading:"Loading...",noData:"No data found.",selectRow:"Select row",pageSize:"Page size",page:"Page",of:"of",previous:"Previous",next:"Next",yes:"Yes",no:"No",sortAscending:"Sort ascending",sortDescending:"Sort descending",filtersActive:e=>`${e} filter(s) applied`,clearFilters:"Clear filters"},"te-IN":{search:"\u0C36\u0C4B\u0C27\u0C3F\u0C02\u0C1A\u0C02\u0C21\u0C3F...",searchAria:"\u0C17\u0C4D\u0C30\u0C3F\u0C21\u0C4D\u200C\u0C32\u0C4B \u0C36\u0C4B\u0C27\u0C3F\u0C02\u0C1A\u0C02\u0C21\u0C3F",rows:"\u0C35\u0C30\u0C41\u0C38\u0C32\u0C41",row:"\u0C35\u0C30\u0C41\u0C38",loading:"\u0C32\u0C4B\u0C21\u0C4D \u0C05\u0C35\u0C41\u0C24\u0C4B\u0C02\u0C26\u0C3F...",noData:"\u0C21\u0C47\u0C1F\u0C3E \u0C15\u0C28\u0C2C\u0C21\u0C32\u0C47\u0C26\u0C41.",selectRow:"\u0C35\u0C30\u0C41\u0C38\u0C28\u0C41 \u0C0E\u0C02\u0C1A\u0C41\u0C15\u0C4B\u0C02\u0C21\u0C3F",pageSize:"\u0C2A\u0C47\u0C1C\u0C40 \u0C2A\u0C30\u0C3F\u0C2E\u0C3E\u0C23\u0C02",page:"\u0C2A\u0C47\u0C1C\u0C40",of:"\u0C32\u0C4B",previous:"\u0C35\u0C46\u0C28\u0C41\u0C15\u0C15\u0C41",next:"\u0C2E\u0C41\u0C02\u0C26\u0C41\u0C15\u0C41",yes:"\u0C05\u0C35\u0C41\u0C28\u0C41",no:"\u0C15\u0C3E\u0C26\u0C41",sortAscending:"\u0C06\u0C30\u0C4B\u0C39\u0C23 \u0C15\u0C4D\u0C30\u0C2E\u0C02\u0C32\u0C4B \u0C05\u0C2E\u0C30\u0C4D\u0C1A\u0C02\u0C21\u0C3F",sortDescending:"\u0C05\u0C35\u0C30\u0C4B\u0C39\u0C23 \u0C15\u0C4D\u0C30\u0C2E\u0C02\u0C32\u0C4B \u0C05\u0C2E\u0C30\u0C4D\u0C1A\u0C02\u0C21\u0C3F",filtersActive:e=>`${e} \u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D(\u0C32\u0C41) \u0C35\u0C47\u0C36\u0C3E\u0C30\u0C41`,clearFilters:"\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D\u0C32\u0C41 \u0C24\u0C40\u0C38\u0C47\u0C2F\u0C02\u0C21\u0C3F"}};function cd({size:e=20,color:t="currentColor",strokeWidth:o=2.4}){return(0,F.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,F.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,F.jsx)("path",{d:"m16 16 5 5"})]})}function dd({size:e=18,color:t="currentColor",strokeWidth:o=2.4,label:n}){return(0,F.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":n?void 0:!0,"aria-label":n,role:n?"img":void 0,children:[n?(0,F.jsx)("title",{children:n}):null,(0,F.jsx)("path",{d:"m6 15 6-6 6 6"})]})}function ud({size:e=18,color:t="currentColor",strokeWidth:o=2.4,label:n}){return(0,F.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":n?void 0:!0,"aria-label":n,role:n?"img":void 0,children:[n?(0,F.jsx)("title",{children:n}):null,(0,F.jsx)("path",{d:"m6 9 6 6 6-6"})]})}function Id({size:e=20,color:t="currentColor",strokeWidth:o=2.4}){return(0,F.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,F.jsx)("path",{d:"m15 18-6-6 6-6"})})}function pd({size:e=20,color:t="currentColor",strokeWidth:o=2.4}){return(0,F.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,F.jsx)("path",{d:"m9 18 6-6-6-6"})})}function Pl({size:e=18,color:t="currentColor",strokeWidth:o=2.4}){return(0,F.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,F.jsx)("path",{d:"m5 12 4 4L19 6"})})}function Yl({data:e,columns:t,rowKey:o="id",view:n="auto",mobileBreakpoint:A=768,theme:i="default",locale:r="en-US",ai:s=!1,search:a=!0,selectable:l=!1,selectedKeys:g=[],onSelectionChange:u,pagination:d,loading:p=!1,highlightIds:B=[],highlightColor:y="#fff3a3",autoScrollToHighlight:m=!1,onRowClick:w,onSortChange:b,empty:C,className:c="",inputLanguage:I,toolName:Q="yuktai_grid",toolDescriptions:k,webmcp:N=!1,onWebMCPStatusChange:H,onAgentResult:V,customRules:T=[],engine:G="rust",showSearchTime:S=!1,onSearchTime:oe}){let se=r==="te-IN"?"te-IN":"en-US",W=gd[se],re=s===!0||typeof s=="object"&&s!==null,ge=d!==!1&&d!==void 0,P=typeof d=="object"?d.pageSize??20:20,ae=typeof d=="object"&&d.sizeOptions&&d.sizeOptions.length>0?d.sizeOptions:[10,20,50,100],[J,$]=(0,de.useState)(""),[te,_]=(0,de.useState)(1),[Z,Me]=(0,de.useState)(P),[Te,q]=(0,de.useState)(),[le,me]=(0,de.useState)("asc"),[ye,Ge]=(0,de.useState)(!1),[be,We]=(0,de.useState)([]),[Ne,Qt]=(0,de.useState)([]),Je=(0,de.useMemo)(()=>mt(t.map(v=>({key:String(v.key),label:v.label,type:v.type}))),[t]);(0,de.useEffect)(()=>{Me(P),_(1)},[P]),(0,de.useEffect)(()=>{let v=()=>{Ge(window.innerWidth<=A)};return v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[A]);let ot=dn(G,e.length),xe=(0,de.useMemo)(()=>ot?ot.setSearchTexts(Tl(e,t)):!1,[ot,e,t]),Fe=(0,de.useMemo)(()=>{let v={search:null,sort:null},K=typeof performance<"u"?performance.now():Date.now(),j=Ll({data:e,columns:t,searchText:J,filters:be,toolColumns:Je,sortKey:Te,sortDirection:le,locale:r,core:ot,searchReady:xe,stats:v}),ne=(typeof performance<"u"?performance.now():Date.now())-K;return{rows:j,ms:ne,engine:Fl(v)}},[e,t,J,be,Je,Te,le,r,ot,xe]),Re=Fe.rows;(0,de.useEffect)(()=>{!oe||!Fe.engine||oe({query:J.trim(),ms:Fe.ms,rows:Fe.rows.length,engine:Fe.engine})},[Fe]);let Ve=ge?Math.max(1,Math.ceil(Re.length/Z)):1;(0,de.useEffect)(()=>{te>Ve&&_(Ve)},[te,Ve]);let Et=(0,de.useMemo)(()=>{let v=[...B.map(String),...Ne];return Array.from(new Set(v))},[B,Ne]);(0,de.useEffect)(()=>{if(!m)return;let v=Et[0];if(v==null)return;let K=typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(String(v)):String(v).replace(/["\\]/g,"\\$&");document.querySelector(`[data-yuktai-row-id="${K}"]`)?.scrollIntoView({behavior:"smooth",block:"center"})},[Et,m,te]);let Tt=(0,de.useMemo)(()=>{if(!ge)return Re;let v=(te-1)*Z;return Re.slice(v,v+Z)},[Re,ge,te,Z]),Mo=n==="card"||n==="auto"&&ye,Ke=v=>String(v[o]??""),nt=v=>g.some(K=>String(K)===v),At=v=>Et.some(K=>String(K)===v),dt=v=>{if(!l)return;let K=Ke(v),j=nt(K)?g.filter(ne=>String(ne)!==K):[...g,K];u?.(j)},to=v=>{if(v.sortable===!1)return;let K=String(v.key),j=Te===K&&le==="asc"?"desc":"asc";q(K),me(j),_(1),b?.({key:K,direction:j})},wt=v=>{$(v),_(1)},Go=(v,K)=>{let j=t.find(ne=>String(ne.key)===v||ne.label.toLowerCase()===v.toLowerCase());j&&(q(String(j.key)),me(K),_(1),b?.({key:String(j.key),direction:K}))},xt=se==="te-IN"?"te":"en",kt=(0,de.useCallback)(v=>{v?(q(v.key),me(v.direction)):(q(void 0),me("asc")),_(1),b?.(v)},[b]),St=(0,de.useCallback)(v=>{We(v),_(1)},[]),rt=(0,de.useCallback)(v=>{if(Qt(v),ge&&v.length){let K=Re.findIndex(j=>String(j[o]??"")===v[0]);K>=0&&_(Math.floor(K/Z)+1)}},[ge,Re,o,Z]),oo=(0,de.useMemo)(()=>Xt({data:e,columns:Je,rowKey:String(o),locale:xt,filters:be,onHighlightRows:rt,onFiltersChange:St,onSortChange:kt,onOpenRow:w?v=>{let K=Re.findIndex(ne=>String(ne[o]??"")===v),j=K>=0?Re[K]:e.find(ne=>String(ne[o]??"")===v);j&&w(j,Math.max(K,0))}:void 0,onSelectRow:l&&u?v=>{g.some(K=>String(K)===v)||u([...g.map(String),v])}:void 0},{name:Q,descriptions:k}),[e,Je,o,xt,be,rt,St,kt,w,Re,l,u,g,Q,k]),vt=wo({tools:oo,data:e,locale:xt,columns:Je,rowKey:String(o),customRules:T,onResult:V}),no=(0,de.useMemo)(()=>oo.map(v=>({...v,execute:K=>vt.executeTool(v.name,K)})),[oo,vt.executeTool]),No=()=>{We([]),_(1)},Ao=(v,K,j)=>{if(K.render)return K.render(v[K.key],v,j);let ne=v[K.key];if(ne==null)return"";if(K.type==="date"){let M=new Date(String(ne));if(!Number.isNaN(M.getTime()))return M.toLocaleDateString(r)}return K.type==="boolean"?ne?W.yes:W.no:String(ne)},ie=i==="dark",Ro={width:"100%",overflow:"hidden",border:i==="high-contrast"?"2px solid #000000":ie?"1px solid #334155":"1px solid #e2e8f0",borderRadius:12,background:ie?"#0f172a":"#ffffff",color:ie?"#f8fafc":"#0f172a",fontFamily:i==="dyslexia"?"Arial, sans-serif":void 0},ut={padding:12,display:"flex",alignItems:"center",gap:12,flexWrap:"wrap",borderBottom:ie?"1px solid #334155":"1px solid #e2e8f0"},it=v=>({width:40,height:40,minWidth:40,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,borderRadius:8,border:ie?"1px solid #475569":"1px solid #cbd5e1",background:v?ie?"#1e293b":"#f8fafc":ie?"#1e293b":"#ffffff",color:v?"#94a3b8":ie?"#f8fafc":"#0f172a",cursor:v?"not-allowed":"pointer",opacity:v?.55:1});if(p)return(0,F.jsxs)("div",{className:c,style:Ro,children:[N&&(0,F.jsx)(xo,{tools:no,onStatusChange:H}),(0,F.jsx)("div",{style:{padding:32,textAlign:"center"},children:W.loading})]});let It=t.map(v=>({key:String(v.key),label:v.label,type:v.type==="number"?"number":v.type==="date"?"date":"text"}));return(0,F.jsxs)("div",{className:c,style:Ro,children:[N&&(0,F.jsx)(xo,{tools:no,onStatusChange:H}),(a||re||be.length>0)&&(0,F.jsxs)("div",{style:ut,children:[a&&(0,F.jsxs)("div",{style:{position:"relative",width:"100%",maxWidth:420},children:[(0,F.jsx)("div",{style:{position:"absolute",left:12,top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",color:ie?"#cbd5e1":"#64748b",pointerEvents:"none"},children:(0,F.jsx)(cd,{size:19})}),(0,F.jsx)("input",{value:J,onChange:v=>{$(v.target.value),_(1)},placeholder:W.search,"aria-label":W.searchAria,style:{width:"100%",padding:"10px 12px 10px 40px",borderRadius:8,border:ie?"1px solid #475569":"1px solid #cbd5e1",background:ie?"#1e293b":"#ffffff",color:ie?"#ffffff":"#0f172a",outline:"none",boxSizing:"border-box"}})]}),be.length>0&&(0,F.jsxs)("button",{type:"button",onClick:No,title:W.clearFilters,style:{padding:"6px 10px",borderRadius:999,border:ie?"1px solid #475569":"1px solid #cbd5e1",background:ie?"#1e293b":"#f1f5f9",color:"inherit",fontSize:12,cursor:"pointer"},children:[W.filtersActive(be.length)," \u2715"]}),(0,F.jsxs)("div",{style:{marginLeft:"auto",fontSize:13,opacity:.7,whiteSpace:"nowrap"},children:[Re.length," ",Re.length===1?W.row:W.rows,S&&Fe.engine&&(0,F.jsxs)("span",{title:Fe.engine==="rust"?"Rust (WebAssembly)":"TypeScript",children:[" \xB7 ",_o(Fe.ms)," \xB7 ",Fe.engine==="rust"?"Rust":"TS"]})]}),re&&(0,F.jsx)(cn,{data:e,columns:It,onSearch:wt,onSort:Go,theme:ie?"dark":"light",language:se,inputLanguage:I??se,agent:{ask:vt.ask,loading:vt.loading},embedded:!0})]}),Re.length===0?(0,F.jsx)("div",{style:{padding:40,textAlign:"center",opacity:.7},children:C??W.noData}):Mo?(0,F.jsx)("div",{style:{display:"grid",gap:12,padding:12},children:Tt.map((v,K)=>{let j=Ke(v),ne=nt(j),M=At(j);return(0,F.jsxs)("div",{"data-yuktai-row-id":j,onClick:()=>w?.(v,K),style:{padding:14,borderRadius:10,border:ie?"1px solid #334155":"1px solid #e2e8f0",background:M?y:ne?ie?"#1e3a5f":"#eff6ff":ie?"#1e293b":"#ffffff",cursor:w?"pointer":"default"},children:[l&&(0,F.jsx)("button",{type:"button",onClick:z=>{z.stopPropagation(),dt(v)},"aria-label":`${W.selectRow} ${j}`,"aria-pressed":ne,style:{width:32,height:32,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,marginBottom:10,borderRadius:7,border:ne?"1px solid #2563eb":"1px solid #cbd5e1",background:ne?"#2563eb":"transparent",color:ne?"#ffffff":"currentColor",cursor:"pointer"},children:ne&&(0,F.jsx)(Pl,{size:17})}),t.map(z=>(0,F.jsxs)("div",{style:{display:"flex",gap:8,padding:"5px 0",alignItems:"flex-start"},children:[(0,F.jsx)("strong",{style:{minWidth:100,opacity:.7},children:z.label}),(0,F.jsx)("span",{children:Ao(v,z,K)})]},String(z.key)))]},j)})}):(0,F.jsx)("div",{style:{width:"100%",overflowX:"auto"},children:(0,F.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse"},children:[(0,F.jsx)("thead",{children:(0,F.jsxs)("tr",{children:[l&&(0,F.jsx)("th",{style:{padding:10,borderBottom:ie?"1px solid #334155":"1px solid #e2e8f0",width:52}}),t.filter(v=>!(ye&&v.hiddenOnMobile)).map(v=>{let K=Te===String(v.key);return(0,F.jsx)("th",{onClick:()=>to(v),style:{padding:10,textAlign:v.align??"left",borderBottom:ie?"1px solid #334155":"1px solid #e2e8f0",whiteSpace:"nowrap",cursor:v.sortable===!1?"default":"pointer",width:v.width,userSelect:"none"},children:(0,F.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:5},children:[v.label,K&&(le==="asc"?(0,F.jsx)(dd,{size:17,label:W.sortAscending}):(0,F.jsx)(ud,{size:17,label:W.sortDescending}))]})},String(v.key))})]})}),(0,F.jsx)("tbody",{children:Tt.map((v,K)=>{let j=Ke(v),ne=nt(j),M=At(j);return(0,F.jsxs)("tr",{"data-yuktai-row-id":j,onClick:()=>w?.(v,K),style:{background:M?y:ne?ie?"#1e3a5f":"#eff6ff":"transparent",cursor:w?"pointer":"default"},children:[l&&(0,F.jsx)("td",{style:{padding:10,borderBottom:ie?"1px solid #334155":"1px solid #e2e8f0"},children:(0,F.jsx)("button",{type:"button",onClick:z=>{z.stopPropagation(),dt(v)},"aria-label":`${W.selectRow} ${j}`,"aria-pressed":ne,style:{width:28,height:28,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,borderRadius:6,border:ne?"1px solid #2563eb":ie?"1px solid #64748b":"1px solid #cbd5e1",background:ne?"#2563eb":"transparent",color:ne?"#ffffff":"currentColor",cursor:"pointer"},children:ne&&(0,F.jsx)(Pl,{size:16})})}),t.filter(z=>!(ye&&z.hiddenOnMobile)).map(z=>(0,F.jsx)("td",{style:{padding:10,textAlign:z.align??"left",borderBottom:ie?"1px solid #334155":"1px solid #e2e8f0"},children:Ao(v,z,K)},String(z.key)))]},j)})})]})}),ge&&(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,flexWrap:"wrap",padding:12,borderTop:ie?"1px solid #334155":"1px solid #e2e8f0"},children:[(0,F.jsxs)("span",{style:{fontSize:13,opacity:.7},children:[W.page," ",te," ",W.of," ",Ve]}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[typeof d=="object"&&d.showSizeChanger&&(0,F.jsx)("select",{value:Z,onChange:v=>{let K=Number(v.target.value);!Number.isFinite(K)||K<=0||(Me(K),_(1))},"aria-label":W.pageSize,style:{minHeight:40,padding:"7px 10px",borderRadius:8,border:ie?"1px solid #475569":"1px solid #cbd5e1",background:ie?"#1e293b":"#ffffff",color:ie?"#ffffff":"#0f172a"},children:ae.map(v=>(0,F.jsx)("option",{value:v,children:v},v))}),(0,F.jsx)("button",{type:"button",disabled:te<=1,onClick:()=>_(v=>Math.max(1,v-1)),"aria-label":W.previous,title:W.previous,style:it(te<=1),children:(0,F.jsx)(Id,{size:20})}),(0,F.jsx)("button",{type:"button",disabled:te>=Ve,onClick:()=>_(v=>Math.min(Ve,v+1)),"aria-label":W.next,title:W.next,style:it(te>=Ve),children:(0,F.jsx)(pd,{size:20})})]})]})]})}x();var Ae=require("react");function Ul(e){return e===!1?Number.MAX_SAFE_INTEGER:e===!0||e===void 0?10:e.pageSize??10}function CA(e){return String(e??"").normalize("NFC").toLowerCase().trim()}function un(e){return e==null||typeof e=="string"&&e.trim()===""}function fA(e){if(typeof e=="number")return Number.isFinite(e)?e:null;let t=String(e??"").trim();if(t==="")return null;let o=Number(t);return Number.isFinite(o)?o:null}function hA(e){let t=e instanceof Date?e.getTime():new Date(String(e)).getTime();return Number.isFinite(t)?t:null}function md(e,t,o,n){if(o==="number"||typeof e=="number"&&typeof t=="number"){let A=fA(e),i=fA(t);if(A!==null&&i!==null)return A-i}if(o==="date"||e instanceof Date&&t instanceof Date){let A=hA(e),i=hA(t);if(A!==null&&i!==null)return A-i}return typeof e=="boolean"&&typeof t=="boolean"?e===t?0:e?1:-1:String(e).localeCompare(String(t),n,{sensitivity:"base",numeric:!0})}var bt=()=>typeof performance<"u"?performance.now():Date.now();function Cd(e,t){return e.map(o=>t.map(n=>{let A=o[n.key];return A==null?"":CA(A)}).join(po))}function fd(e,t,o){let n=!1,A=!0,i=!0,r=0;for(let l of e){let g=l[t];un(g)||(r++,typeof g=="number"?n=!0:A=!1,g instanceof Date||(i=!1))}if(r===0)return null;let s=null;if(o==="number"||A?s=fA:(o==="date"&&!n||i)&&(s=hA),!s)return null;let a=new Float64Array(e.length);for(let l=0;l<e.length;l++){let g=e[l][t];if(un(g)){a[l]=NaN;continue}let u=s(g);if(u===null)return null;a[l]=u}return a}function Hl(e){let{data:t,columns:o,pagination:n=!0,mobileBreakpoint:A=768,locale:i,initialFilters:r=[],engine:s="rust"}=e,a=dn(s,t.length),[l,g]=(0,Ae.useState)(null),[u,d]=(0,Ae.useState)(""),[p,B]=(0,Ae.useState)(r),[y,m]=(0,Ae.useState)(1),[w,b]=(0,Ae.useState)(Ul(n)),[C,c]=(0,Ae.useState)(!1),I=Ul(n);(0,Ae.useEffect)(()=>{b(I),m(1)},[I]),(0,Ae.useEffect)(()=>{if(typeof window>"u")return;let q=()=>{c(window.innerWidth<=A)};return q(),window.addEventListener("resize",q),()=>window.removeEventListener("resize",q)},[A]);let Q=(0,Ae.useMemo)(()=>mt(o.map(q=>({key:String(q.key),label:q.label,type:q.type}))),[o]),k=(0,Ae.useCallback)(q=>{g(le=>!le||le.key!==q?{key:q,direction:"asc"}:le.direction==="asc"?{key:q,direction:"desc"}:null),m(1)},[]),N=(0,Ae.useCallback)(q=>{g(q&&q.direction?q:null),m(1)},[]),H=(0,Ae.useCallback)(()=>{g(null),m(1)},[]),V=(0,Ae.useCallback)(q=>{d(q),m(1)},[]),T=(0,Ae.useCallback)(q=>{B(q),m(1)},[]),G=(0,Ae.useCallback)(q=>{B(le=>[...le.filter(me=>me.key!==q.key),q]),m(1)},[]),S=(0,Ae.useCallback)(q=>{B(le=>le.filter(me=>me.key!==q)),m(1)},[]),oe=(0,Ae.useCallback)(()=>{B([]),m(1)},[]),se=(0,Ae.useCallback)(q=>{b(Math.max(1,Math.floor(q)||1)),m(1)},[]),W=(0,Ae.useMemo)(()=>a?a.setSearchTexts(Cd(t,o)):!1,[a,t,o]),re=(0,Ae.useMemo)(()=>{let q=bt(),le=CA(u);if(!le)return{rows:t,ms:0,engine:null};if(a&&W){let ye=a.search(le);if(ye)return{rows:Wt(t,ye),ms:bt()-q,engine:"rust"}}return{rows:t.filter(ye=>o.some(Ge=>{let be=ye[Ge.key];return be==null?!1:CA(be).includes(le)})),ms:bt()-q,engine:"ts"}},[t,u,o,a,W]),ge=re.rows,P=(0,Ae.useMemo)(()=>{let q=bt();return{rows:lt(ge,Q,p),ms:bt()-q}},[ge,Q,p]),ae=P.rows,J=(0,Ae.useMemo)(()=>{if(!l||!l.direction)return{rows:ae,ms:0,engine:null};let q=bt(),le=o.find(Ge=>String(Ge.key)===l.key),me=l.direction==="desc"?-1:1;if(a){let Ge=fd(ae,l.key,le?.type),be=Ge&&a.sortByKeys(Ge,me===-1);if(be)return{rows:Wt(ae,be),ms:bt()-q,engine:"rust"}}return{rows:[...ae].sort((Ge,be)=>{let We=Ge[l.key],Ne=be[l.key],Qt=un(We),Je=un(Ne);return Qt&&Je?0:Qt?1:Je?-1:me*md(We,Ne,le?.type,i)}),ms:bt()-q,engine:"ts"}},[ae,l,o,i,a]),$=J.rows,te=(0,Ae.useMemo)(()=>!re.engine&&!J.engine?null:{query:u.trim(),ms:re.ms+P.ms+J.ms,rows:ae.length,engine:re.engine==="rust"||J.engine==="rust"?"rust":"ts"},[re,P,J,u,ae.length]),_=Math.max(1,Math.ceil($.length/w)),Z=(0,Ae.useMemo)(()=>{if(n===!1)return $;let q=(y-1)*w;return $.slice(q,q+w)},[$,y,w,n]);(0,Ae.useEffect)(()=>{y>_&&m(_)},[y,_]);let Me=(0,Ae.useCallback)(q=>m(Math.min(Math.max(1,Math.floor(q)||1),_)),[_]),Te=(0,Ae.useCallback)(()=>{g(null),d(""),B([]),m(1)},[]);return{displayedData:Z,rows:$,searchTime:te,totalCount:t.length,filteredCount:$.length,sort:l,toggleSort:k,setSort:N,clearSort:H,searchQuery:u,setSearchQuery:V,filters:p,setFilters:T,setFilter:G,removeFilter:S,clearFilters:oe,page:y,pageSize:w,totalPages:_,setPage:Me,setPageSize:se,isMobile:C,reset:Te}}x();x();x();x();var et={accessibility:'<circle cx="12" cy="4" r="2"/><path d="M4 8l8-1 8 1M12 7v5m-5 9 5-8 5 8M7 12l-2 5m12-5 2 5"/>',contrast:'<circle cx="12" cy="12" r="9"/><path d="M12 3a9 9 0 0 0 0 18z"/>',moon:'<path d="M20 14.5A8.5 8.5 0 0 1 9.5 4 8.5 8.5 0 1 0 20 14.5z"/>',motion:'<path d="M4 12h12m-5-5 5 5-5 5M20 5v14"/>',reading:'<path d="M4 5h16M4 10h12M4 15h16M4 20h10"/>',target:'<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="4"/>',speaker:'<path d="M4 9v6h4l5 4V5L8 9H4z"/><path d="M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"/>',palette:'<path d="M12 3.5c-4.7 0-8.5 3.6-8.5 8.3s3.7 8.7 8.3 8.7c1.1 0 1.8-.8 1.8-1.8 0-.5-.2-1-.5-1.3-.3-.4-.5-.8-.5-1.3 0-1 .8-1.8 1.8-1.8h2.2c2.3 0 3.9-1.7 3.9-3.9 0-4.3-3.8-6.9-8.5-6.9z"/><path d="M7.7 12.4h.01M9.2 8.3h.01M13.8 7.6h.01"/>',skip:'<path d="M5 5l7 7-7 7M13 5l7 7-7 7"/>',close:'<path d="m18 6-12 12M6 6l12 12"/>',plus:'<path d="M12 6.5v11M6.5 12h11"/>',minus:'<path d="M6.5 12h11"/>',reset:'<path d="M3.5 12a8.5 8.5 0 1 0 2.8-6.3L3.5 8.2"/><path d="M3.5 3.5v4.7h4.7"/>',search:'<circle cx="11" cy="11" r="6.5"/><path d="m15.8 15.8 4.7 4.7"/>',sort:'<path d="m8 9 4-4 4 4m-8 6 4 4 4-4"/>',sortUp:'<path d="m7 14.5 5-5 5 5"/>',sortDown:'<path d="m7 9.5 5 5 5-5"/>',chevrons:'<path d="m8 9 4-4 4 4m-8 6 4 4 4-4"/>',grid:'<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/>',cards:'<rect x="3" y="4" width="18" height="7" rx="1.5"/><rect x="3" y="13" width="18" height="7" rx="1.5"/>',chat:'<path d="M21 11.5a8.5 8.5 0 0 1-8.5 8.5 9 9 0 0 1-4-.9L3 21l1.9-5.5a9 9 0 0 1-.9-4A8.5 8.5 0 0 1 12.5 3H13a8.5 8.5 0 0 1 8 8z"/>',mic:'<rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0 0 14 0M12 17v5m-4 0h8"/>',stop:'<rect x="6" y="6" width="12" height="12" rx="2"/>',download:'<path d="M12 3v12m-5-5 5 5 5-5M4 21h16"/>',copy:'<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/>',filter:'<path d="M4 5h16l-6 7v6l-4 2v-8z"/>',check:'<path d="m5 12 4 4L19 6"/>',left:'<path d="m14.5 17-5-5 5-5"/>',right:'<path d="m9.5 17 5-5-5-5"/>',first:'<path d="m11.5 17-5-5 5-5M18.5 17l-5-5 5-5"/>',last:'<path d="m12.5 17 5-5-5-5M5.5 17l5-5-5-5"/>',spark:'<path d="m12 3 1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2zM19 14l1.2 2.8L23 18l-2.8 1.2L19 22l-1.2-2.8L15 18l2.8-1.2z"/>',alert:'<path d="m12 3 10 18H2L12 3z"/><path d="M12 9v5m0 3h.01"/>',info:'<circle cx="12" cy="12" r="9"/><path d="M12 11v6m0-9h.01"/>',form:'<rect x="5" y="3" width="14" height="18" rx="2"/><path d="M9 8h6M9 12h6M9 16h3"/>',eye:'<path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/>',layout:'<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 21V9"/>',wand:'<path d="m15 4 5 5L9 20H4v-5z"/><path d="m13 6 5 5"/>',undo:'<path d="M9 13.5 4.5 9 9 4.5"/><path d="M4.5 9H14a5.75 5.75 0 0 1 0 11.5h-3"/>',tools:'<path d="M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z"/>',plug:'<path d="M9 2v6M15 2v6M6 8h12v4a6 6 0 0 1-12 0zM12 18v4"/>',home:'<path d="M3 11 12 4l9 7"/><path d="M5 10v10h5v-6h4v6h5V10"/>',menu:'<path d="M4 6h16M4 12h16M4 18h16"/>',book:'<path d="M12 6c-2-1.5-5-2-8-2v14c3 0 6 .5 8 2 2-1.5 5-2 8-2V4c-3 0-6 .5-8 2zM12 6v14"/>',calendar:'<rect x="3" y="5" width="18" height="16" rx="2"/><path d="M3 10h18M8 3v4M16 3v4M7.5 14h2M14.5 14h2M7.5 17.5h2"/>',clock:'<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>',person:'<circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/>',users:'<circle cx="9" cy="8" r="3.5"/><path d="M2 20a7 7 0 0 1 14 0"/><path d="M16 4.5a3.5 3.5 0 0 1 0 7M18 13.5a7 7 0 0 1 4 6.5"/>',globe:'<circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"/>',lamp:'<path d="M12 3c2 2.6 3 4.3 3 6a3 3 0 0 1-6 0c0-1.7 1-3.4 3-6z"/><path d="M3 14h18c0 3.5-4 6-9 6s-9-2.5-9-6z"/><path d="M12 12v2"/>',play:'<circle cx="12" cy="12" r="9"/><path d="M10 8.5v7l6-3.5z"/>',pause:'<circle cx="12" cy="12" r="9"/><path d="M10 9v6M14 9v6"/>',send:'<path d="M21 3 3 10.5l7 3 3 7.5z"/><path d="m10 13.5 4.5-4.5"/>',share:'<circle cx="18" cy="5" r="2.5"/><circle cx="6" cy="12" r="2.5"/><circle cx="18" cy="19" r="2.5"/><path d="m8.2 10.8 7.6-4.6M8.2 13.2l7.6 4.6"/>',gift:'<rect x="3" y="8" width="18" height="4" rx="1"/><path d="M5 12v9h14v-9M12 8v13M12 8C10.5 5 7 4 7 6.5S10 8 12 8zm0 0c1.5-3 5-4 5-1.5S14 8 12 8z"/>',image:'<rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="m21 15-5-5-10 10"/>',file:'<path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5M9 13h6M9 17h6"/>',external:'<path d="M14 4h6v6M20 4l-9 9"/><path d="M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/>',arrowUp:'<path d="M12 19V5m-6 6 6-6 6 6"/>',arrowLeft:'<path d="M19 12H5m6-6-6 6 6 6"/>',arrowRight:'<path d="M5 12h14m-6-6 6 6-6 6"/>',headphones:'<path d="M4 15v-3a8 8 0 0 1 16 0v3"/><rect x="3" y="14" width="4" height="7" rx="1.5"/><rect x="17" y="14" width="4" height="7" rx="1.5"/>',music:'<path d="M9 18V5l11-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="17" cy="16" r="3"/>',pin:'<path d="M12 21s7-6.2 7-11.5a7 7 0 0 0-14 0C5 14.8 12 21 12 21z"/><circle cx="12" cy="9.5" r="2.5"/>',map:'<path d="M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z"/><path d="M9 3v15M15 6v15"/>',pen:'<path d="M12 3 6 9l1.5 8h9L18 9z"/><path d="M12 3v7.5"/><circle cx="12" cy="12" r="1.5"/><path d="M8.5 20.5h7"/>',wallet:'<rect x="3" y="7" width="18" height="13" rx="2"/><path d="M16 13.5h2M6 7l9-4 2 4"/>',install:'<rect x="6" y="2" width="12" height="20" rx="2"/><path d="M12 6v8m-3-3 3 3 3-3M10 18h4"/>',help:'<circle cx="12" cy="12" r="9"/><path d="M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.6M12 17h.01"/>',temple:'<path d="M12 2v2M10 4h4l1 3H9zM8 7h8l1.5 4h-11zM6.5 11h11L19 15H5zM4 15h16v6H4z"/><path d="M10 21v-3a2 2 0 0 1 4 0v3"/>',meditate:'<circle cx="12" cy="4.5" r="2.2"/><path d="M12 8c-2.2 0-3.3 1.3-3.7 3.2L7.5 16M12 8c2.2 0 3.3 1.3 3.7 3.2l.8 4.8"/><path d="M4 18c3 2 5.5 2.4 8 1.2 2.5 1.2 5 .8 8-1.2"/><path d="M7.5 16c1.4 1.4 3 2 4.5 2s3.1-.6 4.5-2"/>',trophy:'<path d="M8 4h8v5a4 4 0 0 1-8 0z"/><path d="M8 6H5a3 3 0 0 0 3 4M16 6h3a3 3 0 0 1-3 4M12 13v4M8 21h8M9 17h6"/>',bulb:'<path d="M9 18h6M10 21h4"/><path d="M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3z"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2.5M12 19.5V22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M2 12h2.5M19.5 12H22M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8"/>',delete:'<path d="M4 7h16M10 11v6M14 11v6M6 7l1 13a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1l1-13M9 7V4h6v3"/>',robot:'<rect x="4" y="8" width="16" height="12" rx="3"/><path d="M12 8V4M9.5 4h5M2 13v3M22 13v3"/><circle cx="9" cy="14" r="1.3"/><circle cx="15" cy="14" r="1.3"/>',heart:'<path d="M12 20s-7.5-4.6-9.2-9.3A4.9 4.9 0 0 1 12 6.6a4.9 4.9 0 0 1 9.2 4.1C19.5 15.4 12 20 12 20z"/>',heartFilled:'<path fill="currentColor" d="M12 20s-7.5-4.6-9.2-9.3A4.9 4.9 0 0 1 12 6.6a4.9 4.9 0 0 1 9.2 4.1C19.5 15.4 12 20 12 20z"/>',hub:'<circle cx="12" cy="12" r="3"/><circle cx="5" cy="5" r="2"/><circle cx="19" cy="5" r="2"/><circle cx="5" cy="19" r="2"/><circle cx="19" cy="19" r="2"/><path d="m6.5 6.5 3.4 3.4M17.5 6.5l-3.4 3.4M6.5 17.5l3.4-3.4M17.5 17.5l-3.4-3.4"/>',code:'<path d="m8 7-5 5 5 5M16 7l5 5-5 5M14 4l-4 16"/>',text:'<path d="M3 7V5h11v2M8.5 5v14M6.5 19h4M14 12v-1.5h7V12M17.5 10.5V19M16 19h3"/>',bold:'<path d="M7 4h6a4 4 0 0 1 0 8H7zM7 12h7a4 4 0 0 1 0 8H7z"/>',italic:'<path d="M10 4h9M5 20h9M15 4 9 20"/>',underline:'<path d="M7 4v7a5 5 0 0 0 10 0V4M5 21h14"/>',alignLeft:'<path d="M4 5h16M4 9.5h9M4 14h16M4 18.5h9"/>',alignCenter:'<path d="M4 5h16M7.5 9.5h9M4 14h16M7.5 18.5h9"/>',alignRight:'<path d="M4 5h16M11 9.5h9M4 14h16M11 18.5h9"/>',alignJustify:'<path d="M4 5h16M4 9.5h16M4 14h16M4 18.5h16"/>',quote:'<path d="M4 18v-6.5A6.5 6.5 0 0 1 10.5 5M4 12h5.5v6H4zM13.5 18v-6.5A6.5 6.5 0 0 1 20 5M13.5 12H19v6h-5.5z"/>',title:'<path d="M5 6V4h14v2M12 4v16M9 20h6"/>',font:'<rect x="3" y="3" width="18" height="18" rx="3"/><path d="m8 17 4-10 4 10M9.4 13.5h5.2"/>',spellcheck:'<path d="m3 14 4-10 4 10M4.6 10.5h4.8M11 17l3 3 7-7"/>',abc:'<path d="m2 16 2.5-8L7 16M3 13.5h3M9.5 8v8h2.5a2 2 0 0 0 0-4H9.5h2a2 2 0 0 0 0-4H9.5M21 9.4a3.1 3.1 0 1 0 0 5.2"/>',pageBreak:'<path d="M6 3v5h12V3M6 21v-5h12v5M3 12h3M9 12h6M18 12h3"/>',link:'<path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1"/><path d="M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/>',style:'<rect x="3" y="3" width="7" height="18" rx="2"/><path d="m10 7.5 4.4-2.6a2 2 0 0 1 2.7.7l3.2 5.6a2 2 0 0 1-.7 2.7L10 19"/><circle cx="6.5" cy="17" r="1"/>',lock:'<rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V8a4 4 0 0 1 8 0v3M12 15v2"/>',unlock:'<rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V8a4 4 0 0 1 7.6-1.8M12 15v2"/>',key:'<circle cx="8" cy="15" r="4"/><path d="m11 12 9-9M17 6l3 3M14.5 8.5l2 2"/>',redo:'<path d="M15 13.5 19.5 9 15 4.5"/><path d="M19.5 9H10a5.75 5.75 0 0 0 0 11.5h3"/>',swap:'<path d="M7 4 3 8l4 4M3 8h14M17 12l4 4-4 4M21 16H7"/>',shuffle:'<path d="M16 3h5v5M4 20 21 3M21 16v5h-5M15 15l6 6M4 4l5 5"/>',fullscreen:'<path d="M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5"/>',fullscreenExit:'<path d="M9 4v5H4M20 9h-5V4M15 20v-5h5M4 15h5v5"/>',merge:'<circle cx="6" cy="5" r="2"/><circle cx="6" cy="19" r="2"/><circle cx="18" cy="12" r="2"/><path d="M6 7v10M6 7c0 4 4 5 10 5"/>',join:'<circle cx="9" cy="12" r="6"/><circle cx="15" cy="12" r="6"/>',touch:'<path d="M9 11V5a1.5 1.5 0 0 1 3 0v6M12 10a1.5 1.5 0 0 1 3 0v1M15 11a1.5 1.5 0 0 1 3 0v3c0 4-2.5 7-6 7-2.5 0-4-1-5.5-3.5L4.6 14a1.5 1.5 0 0 1 2.5-1.6L9 15"/>',volumeOff:'<path d="M4 9v6h4l5 4V5L8 9H4z"/><path d="m16.5 9.5 5 5M21.5 9.5l-5 5"/>',musicOff:'<path d="M9 13v5M9 7V5l11-2v9"/><circle cx="6" cy="18" r="3"/><path d="M3 3l18 18"/>',musicVideo:'<rect x="3" y="4" width="18" height="16" rx="2"/><path d="M10.5 15V8.5l5-1V13"/><circle cx="9" cy="15" r="1.5"/><circle cx="14" cy="13" r="1.5"/>',movie:'<rect x="3" y="9" width="18" height="11" rx="2"/><path d="m3.5 9-.6-3 16.6-3.4.6 3L3.5 9zM8.5 4.8l1.8 2.9M13.8 3.7l1.8 2.9"/>',slideshow:'<rect x="3" y="4" width="18" height="13" rx="2"/><path d="M10 8v5l4-2.5zM8 21h8M12 17v4"/>',storage:'<ellipse cx="12" cy="5" rx="8" ry="3"/><path d="M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3"/>',api:'<path d="M3 17v-6a2.5 2.5 0 0 1 5 0v6M3 14h5M11 17V7h2.5a2.5 2.5 0 0 1 0 5H11M18 7h3M19.5 7v10M18 17h3"/>',dataObject:'<path d="M8 4H7a2 2 0 0 0-2 2v4l-2 2 2 2v4a2 2 0 0 0 2 2h1M16 4h1a2 2 0 0 1 2 2v4l2 2-2 2v4a2 2 0 0 1-2 2h-1"/>',computer:'<rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8M12 16v4"/>',phone:'<rect x="6" y="2" width="12" height="20" rx="2"/><path d="M10.5 18.5h3"/>',cloud:'<path d="M7 19a5 5 0 0 1-.6-10A6.5 6.5 0 0 1 18.6 9.5 4.8 4.8 0 0 1 17.5 19z"/>',wifi:'<path d="M2 9a15 15 0 0 1 20 0M5 12.5a10 10 0 0 1 14 0M8.5 16a5 5 0 0 1 7 0M12 19.5h.01"/>',wifiOff:'<path d="M2 9a15 15 0 0 1 20 0M5 12.5a10 10 0 0 1 14 0M8.5 16a5 5 0 0 1 7 0M12 19.5h.01M3 3l18 18"/>',searchOff:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 5 5M8.7 8.7l4.6 4.6M13.3 8.7l-4.6 4.6"/>',eyeOff:'<path d="M10.6 5.1A10 10 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-2.2 3.2M6.6 6.6C3.8 8.4 2 12 2 12s3.5 7 10 7a9.7 9.7 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2M3 3l18 18"/>',bookmark:'<path d="M6 3h12v18l-6-4-6 4z"/>',school:'<path d="m2 9 10-5 10 5-10 5z"/><path d="M6 11v5c0 1.5 2.7 3 6 3s6-1.5 6-3v-5M22 9v6"/>',gavel:'<path d="m13 3.5 7.5 7.5M10 6.5l7.5 7.5M11.5 5l7 7-3 3-7-7zM10 11.5 3.5 18a1.4 1.4 0 0 0 2 2L12 13.5M13 21h8"/>',architecture:'<circle cx="12" cy="5" r="2"/><path d="M12 3V2M11 7 5.5 21M13 7l5.5 14M8 15h8"/>',brain:'<path d="M11 5.5A3 3 0 0 0 5.6 7 3 3 0 0 0 4 12a3 3 0 0 0 1.6 5A3 3 0 0 0 11 18.5zM13 5.5A3 3 0 0 1 18.4 7 3 3 0 0 1 20 12a3 3 0 0 1-1.6 5 3 3 0 0 1-5.4 1.5z"/><path d="M8 10h3M13 14h3"/>',volunteer:'<path d="M12 11s-3.5-2.2-3.5-4.6a1.8 1.8 0 0 1 3.5-.7 1.8 1.8 0 0 1 3.5.7C15.5 8.8 12 11 12 11z"/><path d="M2 15h3l3.5 1.5H13a1.5 1.5 0 0 1 0 3H9.5M5 21l1.5-1.5H14l5.5-4a1.6 1.6 0 0 0-2-2.4L14 15.6"/>',radio:'<circle cx="12" cy="12" r="9"/>',radioChecked:'<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="4" fill="currentColor"/>',upload:'<path d="M12 15V3m-5 5 5-5 5 5M4 21h16"/>',arrowDown:'<path d="M12 5v14m-6-6 6 6 6-6"/>',factCheck:'<rect x="3" y="4" width="18" height="16" rx="2"/><path d="M7 9h4M7 13h4M7 17h2M13.5 13l2 2 3.5-3.5"/>',imageSearch:'<path d="M13 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4"/><path d="m3 17 5-5 4 4"/><circle cx="17" cy="7" r="3"/><path d="m19.2 9.2 2.3 2.3"/>',documentScanner:'<path d="M3 7V4a1 1 0 0 1 1-1h3M17 3h3a1 1 0 0 1 1 1v3M21 17v3a1 1 0 0 1-1 1h-3M7 21H4a1 1 0 0 1-1-1v-3"/><path d="M7 8h10M7 12h10M7 16h6"/>',dashboard:'<rect x="3" y="3" width="8" height="10" rx="1.5"/><rect x="13" y="3" width="8" height="6" rx="1.5"/><rect x="3" y="15" width="8" height="6" rx="1.5"/><path d="M17 13v8M13 17h8"/>',cleaning:'<path d="m20 3-7.5 7.5"/><path d="M12.5 10.5c-2.5-1.6-6-1-7.4 1.7L3 20.5c3.2 1 7.2.4 10.2-1.6l.7-5.3c-.1-1.3-.6-2.3-1.4-3.1z"/><path d="M7.5 15.5 6 20.5M10.5 15l-1 5"/>',dragHandle:'<path d="M5 9h14M5 15h14"/>',zoomIn:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 5 5M8 11h6M11 8v6"/>',zoomOut:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 5 5M8 11h6"/>',insights:'<path d="m3 18 5-5 4 3 6-7"/><path d="M15 9h3v3"/><path d="m19 2.5.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7z"/>',explore:'<circle cx="12" cy="12" r="9"/><path d="m15.5 8.5-2 5-5 2 2-5z"/>',save:'<path d="M5 3h11l5 5v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/><path d="M7 3v5h8V3M7 21v-7h10v7"/>',label:'<path d="M4 6h11l5 6-5 6H4z"/>',keyboard:'<rect x="2" y="6" width="20" height="12" rx="2"/><path d="M6 10h.01M10 10h.01M14 10h.01M18 10h.01M6 14h.01M18 14h.01M9 14h6"/>',trendingUp:'<path d="m3 17 6-6 4 4 8-8"/><path d="M15 7h6v6"/>',trendingDown:'<path d="m3 7 6 6 4-4 8 8"/><path d="M15 17h6v-6"/>',cake:'<path d="M4 21h16M5 21v-7a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v7M5 16.5c1.5 1 2.5 1 3.5 0s2.5-1 3.5 0 2.5 1 3.5 0 2.5-1 3.5 0M12 12V8.5M12 6c-.9-.9-.9-2 0-3.3.9 1.3.9 2.4 0 3.3z"/>',barChart:'<path d="M4 20h16M7 20v-6M12 20V5M17 20V10"/>',admin:'<path d="M12 3 4 6v6c0 4.5 3.4 8 8 9 4.6-1 8-4.5 8-9V6z"/><circle cx="12" cy="10" r="2.5"/><path d="M8 16.5c1-1.8 2.4-2.5 4-2.5s3 .7 4 2.5"/>',bugReport:'<rect x="7" y="8" width="10" height="12" rx="5"/><path d="M9 8.5a3 3 0 0 1 6 0M12 12v8M7 13H3M21 13h-4M7 17l-3 1.5M17 17l3 1.5M7.5 10 5 8M16.5 10 19 8"/>',sentimentSad:'<circle cx="12" cy="12" r="9"/><path d="M8 16.5c1-1.4 2.4-2 4-2s3 .6 4 2M9 9.5h.01M15 9.5h.01"/>',integration:'<rect x="5" y="4" width="14" height="17" rx="2"/><path d="M9 4V3h6v1M10 11l-2 2 2 2M14 11l2 2-2 2"/>',namaskar:'<path d="M12 5.5V15M12 5.5c-.6-1.7-2.4-2.2-3.1-.9L7.2 11.5 4.5 14.5l3 5H10l2-3.5M12 5.5c.6-1.7 2.4-2.2 3.1-.9l1.7 6.9 2.7 3-3 5H14l-2-3.5"/>',sunrise:'<path d="M3 19h18M7 19a5 5 0 0 1 10 0M12 3v6M9.5 5.5 12 3l2.5 2.5M4.9 11.9l1.4 1.4M19.1 11.9l-1.4 1.4M2 16h2M20 16h2"/>',sunset:'<path d="M3 19h18M7 19a5 5 0 0 1 10 0M12 3v6M9.5 6.5 12 9l2.5-2.5M4.9 11.9l1.4 1.4M19.1 11.9l-1.4 1.4M2 16h2M20 16h2"/>',login:'<path d="M14 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4M10 16l4-4-4-4M14 12H3"/>',logout:'<path d="M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4M16 16l4-4-4-4M20 12H9"/>',speed:'<path d="M4.5 18a9 9 0 1 1 15 0"/><path d="m12 14 4-5"/><circle cx="12" cy="14" r="1.2"/>',repeat:'<path d="m17 2 3 3-3 3M4 11V9a4 4 0 0 1 4-4h12M7 22l-3-3 3-3M20 13v2a4 4 0 0 1-4 4H4"/>',loader:'<path d="M12 3v3M12 18v3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M3 12h3M18 12h3M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1"/>',star:'<path d="m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9z"/>',shieldCheck:'<path d="M12 3 4 6v6c0 4.5 3.4 8 8 9 4.6-1 8-4.5 8-9V6z"/><path d="m8.5 12 2.5 2.5 4.5-4.5"/>'},yA=Object.keys(et);var In=3,bA="#ffffff",Jl="#111827";function eo(e,t){let o=pt(e),n=pt(t);return o&&n?$t(o,n):null}function pn(e){let t=eo(bA,e),o=eo(Jl,e);return t===null||o===null||t>=o?bA:Jl}var Kl=new Set;function hd(e,t){Kl.has(e)||(Kl.add(e),typeof console<"u"&&console.warn(`[yuktai icons] ${t}`))}function mn(e={}){let t=e.variant==="filled"?"filled":"outline",o=e.color||"currentColor";if(t==="outline")return{variant:t,color:o,glyph:o,contrast:null};let n=e.glyphColor||pn(o),A=eo(n,o);return A!==null&&A<In&&hd(`${n}|${o}`,`glyph ${n} on ${o} is ${A}:1. WCAG 1.4.11 needs at least 3:1 for icons.`),{variant:t,color:o,glyph:n,contrast:A}}var BA="translate(3.6 3.6) scale(0.7)",QA="@media (forced-colors: active){.yi-bg{fill:CanvasText}.yi-glyph{stroke:Canvas;color:Canvas}}",Bt=e=>String(e).replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t]);function EA(e,t={}){let o=et[e]??et.spark,n=t.size??20,{variant:A,color:i,glyph:r}=mn(t),s=t.strokeWidth??(A==="filled"?2.4:1.9),l=`<svg xmlns="http://www.w3.org/2000/svg" ${t.label?`role="img" aria-label="${Bt(t.label)}"`:'aria-hidden="true"'} focusable="false" width="${Bt(n)}" height="${Bt(n)}" viewBox="0 0 24 24" fill="none" stroke-linecap="round" stroke-linejoin="round" data-variant="${A}">`;if(A==="outline")return`${l}<g stroke="${Bt(i)}" stroke-width="${s}">${o}</g></svg>`;let g=t.shape==="circle"?`<circle class="yi-bg" cx="12" cy="12" r="12" fill="${Bt(i)}"/>`:`<rect class="yi-bg" width="24" height="24" rx="6" fill="${Bt(i)}"/>`;return`${l}<style>${QA}</style>${g}<g class="yi-glyph" color="${Bt(r)}" stroke="${Bt(r)}" stroke-width="${s}" transform="${BA}">${o}</g></svg>`}var tt=require("react/jsx-runtime");function he({size:e=20,color:t,strokeWidth:o,label:n,variant:A,glyphColor:i,shape:r,children:s,...a}){let l=!n,g=mn({variant:A,color:t,glyphColor:i,shape:r}),u=g.variant==="filled",d=o??(u?2.6:2.5);return(0,tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:u?void 0:g.color,strokeWidth:u?void 0:d,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":l?"true":void 0,"aria-label":n,role:n?"img":void 0,focusable:"false","data-variant":g.variant,...a,children:u?(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)("style",{children:QA}),r==="circle"?(0,tt.jsx)("circle",{className:"yi-bg",cx:"12",cy:"12",r:"12",fill:g.color}):(0,tt.jsx)("rect",{className:"yi-bg",width:"24",height:"24",rx:"6",fill:g.color}),(0,tt.jsx)("g",{className:"yi-glyph",color:g.glyph,stroke:g.glyph,strokeWidth:d,transform:BA,children:s})]}):s})}x();var ko=require("react/jsx-runtime");function wA(e){return(0,ko.jsxs)(he,{...e,children:[(0,ko.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,ko.jsx)("path",{d:"m20 20-4-4"})]})}x();var So=require("react/jsx-runtime");function xA(e){return(0,So.jsxs)(he,{...e,children:[(0,So.jsx)("path",{d:"M12 19V5"}),(0,So.jsx)("path",{d:"m5 12 7-7 7 7"})]})}x();var vo=require("react/jsx-runtime");function kA(e){return(0,vo.jsxs)(he,{...e,children:[(0,vo.jsx)("path",{d:"M12 5v14"}),(0,vo.jsx)("path",{d:"m5 12 7 7 7-7"})]})}x();var SA=require("react/jsx-runtime");function vA(e){return(0,SA.jsx)(he,{...e,children:(0,SA.jsx)("path",{d:"m15 18-6-6 6-6"})})}x();var DA=require("react/jsx-runtime");function MA(e){return(0,DA.jsx)(he,{...e,children:(0,DA.jsx)("path",{d:"m9 18 6-6-6-6"})})}x();var GA=require("react/jsx-runtime");function NA(e){return(0,GA.jsx)(he,{...e,children:(0,GA.jsx)("path",{d:"M5 12.5 10 17.5 19.5 7"})})}x();var Do=require("react/jsx-runtime");function RA(e){return(0,Do.jsxs)(he,{...e,children:[(0,Do.jsx)("path",{d:"M18 6 6 18"}),(0,Do.jsx)("path",{d:"m6 6 12 12"})]})}x();var f=require("react/jsx-runtime");function h({name:e,...t}){let o=et[e]??et.spark;return(0,f.jsx)(he,{...t,children:(0,f.jsx)("g",{dangerouslySetInnerHTML:{__html:o}})})}var TA=e=>(0,f.jsx)(h,{...e,name:"accessibility"}),FA=e=>(0,f.jsx)(h,{...e,name:"contrast"}),LA=e=>(0,f.jsx)(h,{...e,name:"moon"}),PA=e=>(0,f.jsx)(h,{...e,name:"motion"}),YA=e=>(0,f.jsx)(h,{...e,name:"reading"}),UA=e=>(0,f.jsx)(h,{...e,name:"target"}),HA=e=>(0,f.jsx)(h,{...e,name:"speaker"}),JA=e=>(0,f.jsx)(h,{...e,name:"palette"}),KA=e=>(0,f.jsx)(h,{...e,name:"skip"}),qA=e=>(0,f.jsx)(h,{...e,name:"plus"}),$A=e=>(0,f.jsx)(h,{...e,name:"minus"}),zA=e=>(0,f.jsx)(h,{...e,name:"reset"}),OA=e=>(0,f.jsx)(h,{...e,name:"sort"}),WA=e=>(0,f.jsx)(h,{...e,name:"chevrons"}),VA=e=>(0,f.jsx)(h,{...e,name:"grid"}),_A=e=>(0,f.jsx)(h,{...e,name:"cards"}),XA=e=>(0,f.jsx)(h,{...e,name:"chat"}),jA=e=>(0,f.jsx)(h,{...e,name:"mic"}),ZA=e=>(0,f.jsx)(h,{...e,name:"stop"}),er=e=>(0,f.jsx)(h,{...e,name:"download"}),tr=e=>(0,f.jsx)(h,{...e,name:"copy"}),or=e=>(0,f.jsx)(h,{...e,name:"filter"}),nr=e=>(0,f.jsx)(h,{...e,name:"first"}),Ar=e=>(0,f.jsx)(h,{...e,name:"last"}),rr=e=>(0,f.jsx)(h,{...e,name:"spark"}),ir=e=>(0,f.jsx)(h,{...e,name:"alert"}),sr=e=>(0,f.jsx)(h,{...e,name:"info"}),ar=e=>(0,f.jsx)(h,{...e,name:"form"}),lr=e=>(0,f.jsx)(h,{...e,name:"eye"}),gr=e=>(0,f.jsx)(h,{...e,name:"layout"}),cr=e=>(0,f.jsx)(h,{...e,name:"wand"}),dr=e=>(0,f.jsx)(h,{...e,name:"undo"}),ur=e=>(0,f.jsx)(h,{...e,name:"tools"}),Ir=e=>(0,f.jsx)(h,{...e,name:"plug"}),pr=e=>(0,f.jsx)(h,{...e,name:"home"}),mr=e=>(0,f.jsx)(h,{...e,name:"menu"}),Cr=e=>(0,f.jsx)(h,{...e,name:"book"}),fr=e=>(0,f.jsx)(h,{...e,name:"calendar"}),hr=e=>(0,f.jsx)(h,{...e,name:"clock"}),yr=e=>(0,f.jsx)(h,{...e,name:"person"}),br=e=>(0,f.jsx)(h,{...e,name:"users"}),Br=e=>(0,f.jsx)(h,{...e,name:"globe"}),Qr=e=>(0,f.jsx)(h,{...e,name:"lamp"}),Er=e=>(0,f.jsx)(h,{...e,name:"play"}),wr=e=>(0,f.jsx)(h,{...e,name:"pause"}),xr=e=>(0,f.jsx)(h,{...e,name:"send"}),kr=e=>(0,f.jsx)(h,{...e,name:"share"}),Sr=e=>(0,f.jsx)(h,{...e,name:"gift"}),vr=e=>(0,f.jsx)(h,{...e,name:"image"}),Dr=e=>(0,f.jsx)(h,{...e,name:"file"}),Mr=e=>(0,f.jsx)(h,{...e,name:"external"}),Gr=e=>(0,f.jsx)(h,{...e,name:"arrowUp"}),Nr=e=>(0,f.jsx)(h,{...e,name:"arrowLeft"}),Rr=e=>(0,f.jsx)(h,{...e,name:"arrowRight"}),Tr=e=>(0,f.jsx)(h,{...e,name:"headphones"}),Fr=e=>(0,f.jsx)(h,{...e,name:"music"}),Lr=e=>(0,f.jsx)(h,{...e,name:"pin"}),Pr=e=>(0,f.jsx)(h,{...e,name:"map"}),Yr=e=>(0,f.jsx)(h,{...e,name:"pen"}),Ur=e=>(0,f.jsx)(h,{...e,name:"wallet"}),Hr=e=>(0,f.jsx)(h,{...e,name:"install"}),Jr=e=>(0,f.jsx)(h,{...e,name:"help"}),Kr=e=>(0,f.jsx)(h,{...e,name:"temple"}),qr=e=>(0,f.jsx)(h,{...e,name:"meditate"}),$r=e=>(0,f.jsx)(h,{...e,name:"trophy"}),zr=e=>(0,f.jsx)(h,{...e,name:"bulb"}),Or=e=>(0,f.jsx)(h,{...e,name:"sun"}),Wr=e=>(0,f.jsx)(h,{...e,name:"delete"}),Vr=e=>(0,f.jsx)(h,{...e,name:"robot"}),_r=e=>(0,f.jsx)(h,{...e,name:"heart"}),Xr=e=>(0,f.jsx)(h,{...e,name:"heartFilled"}),jr=e=>(0,f.jsx)(h,{...e,name:"hub"}),Zr=e=>(0,f.jsx)(h,{...e,name:"code"}),ei=e=>(0,f.jsx)(h,{...e,name:"text"}),ti=e=>(0,f.jsx)(h,{...e,name:"bold"}),oi=e=>(0,f.jsx)(h,{...e,name:"italic"}),ni=e=>(0,f.jsx)(h,{...e,name:"underline"}),Ai=e=>(0,f.jsx)(h,{...e,name:"alignLeft"}),ri=e=>(0,f.jsx)(h,{...e,name:"alignCenter"}),ii=e=>(0,f.jsx)(h,{...e,name:"alignRight"}),si=e=>(0,f.jsx)(h,{...e,name:"alignJustify"}),ai=e=>(0,f.jsx)(h,{...e,name:"quote"}),li=e=>(0,f.jsx)(h,{...e,name:"title"}),gi=e=>(0,f.jsx)(h,{...e,name:"font"}),ci=e=>(0,f.jsx)(h,{...e,name:"spellcheck"}),di=e=>(0,f.jsx)(h,{...e,name:"abc"}),ui=e=>(0,f.jsx)(h,{...e,name:"pageBreak"}),Ii=e=>(0,f.jsx)(h,{...e,name:"link"}),pi=e=>(0,f.jsx)(h,{...e,name:"style"}),mi=e=>(0,f.jsx)(h,{...e,name:"lock"}),Ci=e=>(0,f.jsx)(h,{...e,name:"unlock"}),fi=e=>(0,f.jsx)(h,{...e,name:"key"}),hi=e=>(0,f.jsx)(h,{...e,name:"redo"}),yi=e=>(0,f.jsx)(h,{...e,name:"swap"}),bi=e=>(0,f.jsx)(h,{...e,name:"shuffle"}),Bi=e=>(0,f.jsx)(h,{...e,name:"fullscreen"}),Qi=e=>(0,f.jsx)(h,{...e,name:"fullscreenExit"}),Ei=e=>(0,f.jsx)(h,{...e,name:"merge"}),wi=e=>(0,f.jsx)(h,{...e,name:"join"}),xi=e=>(0,f.jsx)(h,{...e,name:"touch"}),ki=e=>(0,f.jsx)(h,{...e,name:"volumeOff"}),Si=e=>(0,f.jsx)(h,{...e,name:"musicOff"}),vi=e=>(0,f.jsx)(h,{...e,name:"musicVideo"}),Di=e=>(0,f.jsx)(h,{...e,name:"movie"}),Mi=e=>(0,f.jsx)(h,{...e,name:"slideshow"}),Gi=e=>(0,f.jsx)(h,{...e,name:"storage"}),Ni=e=>(0,f.jsx)(h,{...e,name:"api"}),Ri=e=>(0,f.jsx)(h,{...e,name:"dataObject"}),Ti=e=>(0,f.jsx)(h,{...e,name:"computer"}),Fi=e=>(0,f.jsx)(h,{...e,name:"phone"}),Li=e=>(0,f.jsx)(h,{...e,name:"cloud"}),Pi=e=>(0,f.jsx)(h,{...e,name:"wifi"}),Yi=e=>(0,f.jsx)(h,{...e,name:"wifiOff"}),Ui=e=>(0,f.jsx)(h,{...e,name:"searchOff"}),Hi=e=>(0,f.jsx)(h,{...e,name:"eyeOff"}),Ji=e=>(0,f.jsx)(h,{...e,name:"bookmark"}),Ki=e=>(0,f.jsx)(h,{...e,name:"school"}),qi=e=>(0,f.jsx)(h,{...e,name:"gavel"}),$i=e=>(0,f.jsx)(h,{...e,name:"architecture"}),zi=e=>(0,f.jsx)(h,{...e,name:"brain"}),Oi=e=>(0,f.jsx)(h,{...e,name:"volunteer"}),Wi=e=>(0,f.jsx)(h,{...e,name:"radio"}),Vi=e=>(0,f.jsx)(h,{...e,name:"radioChecked"}),_i=e=>(0,f.jsx)(h,{...e,name:"upload"}),Xi=e=>(0,f.jsx)(h,{...e,name:"arrowDown"}),ji=e=>(0,f.jsx)(h,{...e,name:"factCheck"}),Zi=e=>(0,f.jsx)(h,{...e,name:"imageSearch"}),es=e=>(0,f.jsx)(h,{...e,name:"documentScanner"}),ts=e=>(0,f.jsx)(h,{...e,name:"dashboard"}),os=e=>(0,f.jsx)(h,{...e,name:"cleaning"}),ns=e=>(0,f.jsx)(h,{...e,name:"dragHandle"}),As=e=>(0,f.jsx)(h,{...e,name:"zoomIn"}),rs=e=>(0,f.jsx)(h,{...e,name:"zoomOut"}),is=e=>(0,f.jsx)(h,{...e,name:"insights"}),ss=e=>(0,f.jsx)(h,{...e,name:"explore"}),as=e=>(0,f.jsx)(h,{...e,name:"save"}),ls=e=>(0,f.jsx)(h,{...e,name:"label"}),gs=e=>(0,f.jsx)(h,{...e,name:"keyboard"}),cs=e=>(0,f.jsx)(h,{...e,name:"trendingUp"}),ds=e=>(0,f.jsx)(h,{...e,name:"trendingDown"}),us=e=>(0,f.jsx)(h,{...e,name:"cake"}),Is=e=>(0,f.jsx)(h,{...e,name:"barChart"}),ps=e=>(0,f.jsx)(h,{...e,name:"admin"}),ms=e=>(0,f.jsx)(h,{...e,name:"bugReport"}),Cs=e=>(0,f.jsx)(h,{...e,name:"sentimentSad"}),fs=e=>(0,f.jsx)(h,{...e,name:"integration"}),hs=e=>(0,f.jsx)(h,{...e,name:"namaskar"}),ys=e=>(0,f.jsx)(h,{...e,name:"sunrise"}),bs=e=>(0,f.jsx)(h,{...e,name:"sunset"}),Bs=e=>(0,f.jsx)(h,{...e,name:"login"}),Qs=e=>(0,f.jsx)(h,{...e,name:"logout"}),Es=e=>(0,f.jsx)(h,{...e,name:"speed"}),ws=e=>(0,f.jsx)(h,{...e,name:"repeat"}),xs=e=>(0,f.jsx)(h,{...e,name:"loader"}),ks=e=>(0,f.jsx)(h,{...e,name:"star"}),Ss=e=>(0,f.jsx)(h,{...e,name:"shieldCheck"});x();function yd(){if(typeof globalThis>"u")return new ft;if(!globalThis.__yuktai_runtime__){let e=new ft;e.register(ke.name,ke),e.register(Qo.name,Qo),e.register(Eo.name,Eo),globalThis.__yuktai_runtime__=e}return globalThis.__yuktai_runtime__}var ql=typeof window<"u"?yd():new ft,bd={wcagPlugin:ke,list(){return ql.getPlugins()},use(e){return ql.use(e)},fix(e){return ke.applyFixes({enabled:!0,autoFix:!0,...e})},scan(){return ke.scan()}};
1549
+ `})]})}var cn=td;x();var Ee=require("react");var od={en:{done:"Done.",toolMissing:e=>`The action "${e}" is not available here.`,missingInput:e=>`Missing: ${e}.`,notUnderstood:"Sorry, I didn't understand. Try: a word to search, \u201Csort by <column>\u201D, or \u201Cclear filters\u201D.",noMatch:e=>`Nothing matched "${e}".`,failed:"Something went wrong while running this action."},te:{done:"\u0C2A\u0C42\u0C30\u0C4D\u0C24\u0C2F\u0C3F\u0C02\u0C26\u0C3F.",toolMissing:e=>`"${e}" \u0C38\u0C4C\u0C15\u0C30\u0C4D\u0C2F\u0C02 \u0C07\u0C15\u0C4D\u0C15\u0C21 \u0C05\u0C02\u0C26\u0C41\u0C2C\u0C3E\u0C1F\u0C41\u0C32\u0C4B \u0C32\u0C47\u0C26\u0C41.`,missingInput:e=>`\u0C07\u0C35\u0C3F \u0C15\u0C3E\u0C35\u0C3E\u0C32\u0C3F: ${e}.`,notUnderstood:"\u0C15\u0C4D\u0C37\u0C2E\u0C3F\u0C02\u0C1A\u0C02\u0C21\u0C3F, \u0C05\u0C30\u0C4D\u0C25\u0C02 \u0C15\u0C3E\u0C32\u0C47\u0C26\u0C41. \u0C07\u0C32\u0C3E \u0C2A\u0C4D\u0C30\u0C2F\u0C24\u0C4D\u0C28\u0C3F\u0C02\u0C1A\u0C02\u0C21\u0C3F: \u0C35\u0C46\u0C24\u0C15\u0C3E\u0C32\u0C4D\u0C38\u0C3F\u0C28 \u0C2A\u0C26\u0C02, \u201C<\u0C15\u0C3E\u0C32\u0C2E\u0C4D> \u0C2A\u0C4D\u0C30\u0C15\u0C3E\u0C30\u0C02 \u0C15\u0C4D\u0C30\u0C2E\u0C02\u201D, \u0C32\u0C47\u0C26\u0C3E \u201C\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D\u0C32\u0C41 \u0C24\u0C40\u0C38\u0C47\u0C2F\u0C3F\u201D.",noMatch:e=>`"${e}" \u0C15\u0C3F \u0C0F\u0C2E\u0C40 \u0C38\u0C30\u0C3F\u0C2A\u0C4B\u0C32\u0C47\u0C26\u0C41.`,failed:"\u0C08 \u0C2A\u0C28\u0C3F \u0C1A\u0C47\u0C38\u0C4D\u0C24\u0C41\u0C02\u0C21\u0C17\u0C3E \u0C38\u0C2E\u0C38\u0C4D\u0C2F \u0C35\u0C1A\u0C4D\u0C1A\u0C3F\u0C02\u0C26\u0C3F."}},Gl=e=>e.normalize("NFC").toLowerCase().trim(),ht={clearFilters:/\b(clear|remove|reset)\b.*\bfilters?\b|ఫిల్టర్.*(తీసే|తొలగ)/i,clearSort:/\b(clear|remove|reset)\b.*\bsort(ing)?\b|క్రమం.*(తీసే|తొలగ)/i,count:/^\s*(how many|count)\b|ఎన్ని|లెక్క/i,sort:/\bsort\b|\border by\b|క్రమ|అమర్చ|సార్ట్/i,desc:/\b(desc|descending|z\s*-\s*a|highest|largest|most)\b|అవరోహణ|తగ్గే|పెద్ద|అధిక|చివర|ఎక్కువ నుండి/i,openEn:/^\s*open\s+(.+?)\s*$/i,openTe:/^\s*(.+?)\s*(తెరువు|తెరవండి|తెరవు)\s*$/,searchFiller:/^\s*(search(\s+for)?|find|show(\s+me)?|filter(\s+by)?|look\s+for|వెతుకు|వెతకండి|శోధించు|శోధించండి|చూపించు|చూపించండి)\s+|\s+(వెతుకు|వెతకండి|శోధించు|శోధించండి|చూపించు|చూపించండి)\s*$/gi};function nd(e,t){let o=Gl(e),n=null;for(let A of t)for(let i of[A.label,A.key]){let r=Gl(i);r&&o.includes(r)&&(!n||r.length>n.len)&&(n={key:A.key,len:r.length})}return n?.key??null}function mA(e,t){let o=(e??"").trim();if(!o)return null;if(ht.clearFilters.test(o))return{kind:"tool",tool:"clear_filters",input:{}};if(ht.clearSort.test(o))return{kind:"tool",tool:"clear_sort",input:{}};if(ht.count.test(o))return{kind:"tool",tool:"count",input:{}};if(ht.sort.test(o)){let i=nd(o,t.columns);return i?{kind:"tool",tool:"sort",input:{key:i,direction:ht.desc.test(o)?"desc":"asc"}}:null}let n=o.match(ht.openEn)??o.match(ht.openTe);if(n?.[1])return{kind:"open",text:n[1].trim()};let A=o.replace(ht.searchFiller,"").trim();return A?{kind:"tool",tool:"search",input:{query:A}}:null}function Ad(e){return!!e&&typeof e=="object"&&typeof e.success=="boolean"&&typeof e.message=="string"}function rd(e,t){let o=e.inputSchema?.required;return Array.isArray(o)?o.map(String).filter(n=>t[n]===void 0||t[n]===null||String(t[n]).trim()===""):[]}function id(e,t){let o=e.find(A=>A.name===t);if(o)return o;let n=e.filter(A=>A.name.endsWith(`_${t}`)).sort((A,i)=>A.name.length-i.name.length);if(n.length!==0&&!(n.length>1&&n[0].name.length===n[1].name.length))return n[0]}function Nl(e){return e.normalize("NFC").trim().toLocaleLowerCase()}function sd(e,t){let o=Nl(e);return t.find(n=>n.phrases.some(A=>{let i=Nl(A);return i.length>0&&o.includes(i)}))}function wo({tools:e,data:t=[],onResult:o,onError:n,locale:A="en",columns:i=[],rowKey:r="id",parseIntent:s,customRules:a=[],historyLimit:l=20}){let g=od[A],[u,d]=(0,Ee.useState)(0),[p,B]=(0,Ee.useState)(null),[y,m]=(0,Ee.useState)(null),[w,b]=(0,Ee.useState)([]),C=(0,Ee.useRef)({tools:e,data:t,onResult:o,onError:n,columns:i,rowKey:r,parseIntent:s,customRules:a,historyLimit:l,m:g,locale:A});C.current={tools:e,data:t,onResult:o,onError:n,columns:i,rowKey:r,parseIntent:s,customRules:a,historyLimit:l,m:g,locale:A};let c=(0,Ee.useRef)(!0),I=(0,Ee.useRef)(0);(0,Ee.useEffect)(()=>(c.current=!0,()=>{c.current=!1}),[]);let Q=(0,Ee.useCallback)((T,G,S,oe,se)=>{c.current&&(se===I.current&&B(S),b(W=>[...W,{id:se,tool:T,input:G,result:S,source:oe,at:Date.now()}].slice(-C.current.historyLimit)))},[]),k=(0,Ee.useCallback)(async(T,G,S)=>{let{tools:oe,onResult:se,onError:W,m:re}=C.current,ge=++I.current,P=id(oe,T);if(!P){let J={success:!1,message:re.toolMissing(T),error:{code:"NOT_SUPPORTED"}},$=new Error(J.message);return c.current&&m($),W?.($),Q(T,G,J,S,ge),J}let ae=rd(P,G);if(ae.length){let J={success:!1,message:re.missingInput(ae.join(", ")),error:{code:"INVALID_INPUT"},tool:P.name};return Q(P.name,G,J,S,ge),se?.(J),J}c.current&&d(J=>J+1);try{let J=await P.execute(G),$=Ad(J)?{...J,tool:P.name}:{success:!0,message:re.done,data:J,tool:P.name};return c.current&&$.success&&m(null),Q(P.name,G,$,S,ge),se?.($),$}catch(J){let $=J instanceof Error?J:new Error(String(J)),te={success:!1,message:re.failed,error:{code:"INTERNAL"},tool:P.name};return c.current&&m($),W?.($),Q(P.name,G,te,S,ge),te}finally{c.current&&d(J=>Math.max(0,J-1))}},[Q]),N=(0,Ee.useCallback)((T,G={})=>k(T,G??{},"tool"),[k]),H=(0,Ee.useCallback)(async T=>{let{columns:G,locale:S,parseIntent:oe,customRules:se,data:W,m:re,rowKey:ge}=C.current,P=sd(T,se??[]);if(P){let _={input:T,data:W,columns:G,executeTool:N};try{let Me={success:!0,message:await P.execute(_),tool:`rule:${P.name}`};return Q(`rule:${P.name}`,{text:T},Me,"ask",++I.current),C.current.onResult?.(Me),Me}catch(Z){let Me=Z instanceof Error?Z:new Error(String(Z)),Te={success:!1,message:re.failed,error:{code:"INTERNAL"},tool:`rule:${P.name}`};return c.current&&m(Me),C.current.onError?.(Me),Q(`rule:${P.name}`,{text:T},Te,"ask",++I.current),Te}}let J=(oe??mA)(T,{columns:G,locale:S});if(!J){let _={success:!1,message:re.notUnderstood,error:{code:"NOT_UNDERSTOOD"}};return Q("ask",{text:T},_,"ask",++I.current),_}if(J.kind==="tool")return k(J.tool,J.input,"ask");let $=await k("search",{query:J.text},"ask"),te=Array.isArray($.data)?$.data:[];if(!$.success)return $;if(te.length===0){let _={success:!1,message:re.noMatch(J.text),error:{code:"NOT_FOUND"},tool:$.tool};return Q("open",{text:J.text},_,"ask",++I.current),_}return k("open",{id:Qe(te[0],ge)},"ask")},[N,Q,k]),V=(0,Ee.useCallback)(()=>{b([]),B(null),m(null)},[]);return{loading:u>0,tools:e,executeTool:N,ask:H,lastResult:p,lastError:y,history:w,clearHistory:V}}var Rl=wo;x();var yt=require("react");function ad(e){return JSON.stringify(e.map(t=>[t.name,t.title,t.description,t.inputSchema]))}function ld({tools:e,data:t=[],columns:o=[],rowKey:n,locale:A,onSelectRow:i,onHighlightRows:r,onOpenRow:s,name:a="yuktai_grid",descriptions:l,onStatusChange:g}){let u=(0,yt.useMemo)(()=>e||Xt({data:t,columns:o,rowKey:n,locale:A,onSelectRow:i,onHighlightRows:r,onOpenRow:s},{name:a,descriptions:l}),[e,t,o,n,A,i,r,s,a,l]),d=(0,yt.useRef)(u);d.current=u;let p=(0,yt.useRef)(g);p.current=g;let B=(0,yt.useRef)(Promise.resolve()),y=ad(u);return(0,yt.useEffect)(()=>{let m=I=>p.current?.(I),w=typeof document<"u"?document.modelContext:void 0;if(!w?.registerTool){m({state:"unsupported",registered:[],errors:[]});return}let b=new AbortController,C=d.current,c=B.current.then(async()=>{if(b.signal.aborted)return;m({state:"registering",registered:[],errors:[]});let I=[],Q=[];for(let k of C){if(b.signal.aborted)return;try{await w.registerTool({name:k.name,title:k.title,description:k.description,inputSchema:k.inputSchema,execute:N=>{let H=d.current.find(V=>V.name===k.name);return H?H.execute(N??{}):{success:!1,message:`Tool "${k.name}" is no longer available.`,error:{code:"NOT_SUPPORTED"}}}},{signal:b.signal}),I.push(k.name)}catch(N){Q.push({tool:k.name,message:N instanceof Error?N.message:String(N)})}}b.signal.aborted||m({state:Q.length===0?"ready":I.length>0?"partial":"error",registered:I,errors:Q})});return B.current=c.catch(()=>{}),()=>b.abort()},[y]),null}var xo=ld;x();var Zt=require("react");function dn(e,t){let o=Wo(e,t),[n,A]=(0,Zt.useState)(()=>o?Ka():null);return(0,Zt.useEffect)(()=>{if(!o||n)return;let i=!0;return Vo().then(r=>{i&&r&&A(r)}),()=>{i=!1}},[o,n]),(0,Zt.useMemo)(()=>o&&n?Ot.create(n):null,[o,n])}x();function Tl(e,t){return e.map(o=>t.map(n=>String(o[n.key]??"").toLowerCase()).join(po))}function gd(e,t){let o=new Float64Array(e.length),n=0;for(let A=0;A<e.length;A++){let i=e[A][t];if(i==null){o[A]=NaN;continue}if(typeof i!="number"||Number.isNaN(i))return null;o[A]=i,n++}return n?o:null}function Fl(e){return e.search==="rust"||e.sort==="rust"?"rust":e.search||e.sort?"ts":null}function Ll({data:e,columns:t,searchText:o,filters:n,toolColumns:A,sortKey:i,sortDirection:r,locale:s,core:a=null,searchReady:l=!1,stats:g}){let u=[...e];if(g&&(g.search=null,g.sort=null),o.trim()){let d=o.trim().toLowerCase(),p=a&&l?a.search(d):null;g&&(g.search=p?"rust":"ts"),p?u=Wt(e,p):u=u.filter(B=>t.some(y=>String(B[y.key]??"").toLowerCase().includes(d)))}if(n.length&&(u=lt(u,A,n)),i){if(a){let d=gd(u,i),p=d&&a.sortByKeys(d,r!=="asc");if(p)return g&&(g.sort="rust"),Wt(u,p)}g&&(g.sort="ts"),u.sort((d,p)=>{let B=d[i],y=p[i];if(B==null&&y==null)return 0;if(B==null)return 1;if(y==null)return-1;if(typeof B=="number"&&typeof y=="number")return r==="asc"?B-y:y-B;let m=String(B).localeCompare(String(y),s,{numeric:!0,sensitivity:"base"});return r==="asc"?m:-m})}return u}var F=require("react/jsx-runtime"),cd={"en-US":{search:"Search...",searchAria:"Search grid",rows:"rows",row:"row",loading:"Loading...",noData:"No data found.",selectRow:"Select row",pageSize:"Page size",page:"Page",of:"of",previous:"Previous",next:"Next",yes:"Yes",no:"No",sortAscending:"Sort ascending",sortDescending:"Sort descending",filtersActive:e=>`${e} filter(s) applied`,clearFilters:"Clear filters"},"te-IN":{search:"\u0C36\u0C4B\u0C27\u0C3F\u0C02\u0C1A\u0C02\u0C21\u0C3F...",searchAria:"\u0C17\u0C4D\u0C30\u0C3F\u0C21\u0C4D\u200C\u0C32\u0C4B \u0C36\u0C4B\u0C27\u0C3F\u0C02\u0C1A\u0C02\u0C21\u0C3F",rows:"\u0C35\u0C30\u0C41\u0C38\u0C32\u0C41",row:"\u0C35\u0C30\u0C41\u0C38",loading:"\u0C32\u0C4B\u0C21\u0C4D \u0C05\u0C35\u0C41\u0C24\u0C4B\u0C02\u0C26\u0C3F...",noData:"\u0C21\u0C47\u0C1F\u0C3E \u0C15\u0C28\u0C2C\u0C21\u0C32\u0C47\u0C26\u0C41.",selectRow:"\u0C35\u0C30\u0C41\u0C38\u0C28\u0C41 \u0C0E\u0C02\u0C1A\u0C41\u0C15\u0C4B\u0C02\u0C21\u0C3F",pageSize:"\u0C2A\u0C47\u0C1C\u0C40 \u0C2A\u0C30\u0C3F\u0C2E\u0C3E\u0C23\u0C02",page:"\u0C2A\u0C47\u0C1C\u0C40",of:"\u0C32\u0C4B",previous:"\u0C35\u0C46\u0C28\u0C41\u0C15\u0C15\u0C41",next:"\u0C2E\u0C41\u0C02\u0C26\u0C41\u0C15\u0C41",yes:"\u0C05\u0C35\u0C41\u0C28\u0C41",no:"\u0C15\u0C3E\u0C26\u0C41",sortAscending:"\u0C06\u0C30\u0C4B\u0C39\u0C23 \u0C15\u0C4D\u0C30\u0C2E\u0C02\u0C32\u0C4B \u0C05\u0C2E\u0C30\u0C4D\u0C1A\u0C02\u0C21\u0C3F",sortDescending:"\u0C05\u0C35\u0C30\u0C4B\u0C39\u0C23 \u0C15\u0C4D\u0C30\u0C2E\u0C02\u0C32\u0C4B \u0C05\u0C2E\u0C30\u0C4D\u0C1A\u0C02\u0C21\u0C3F",filtersActive:e=>`${e} \u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D(\u0C32\u0C41) \u0C35\u0C47\u0C36\u0C3E\u0C30\u0C41`,clearFilters:"\u0C2B\u0C3F\u0C32\u0C4D\u0C1F\u0C30\u0C4D\u0C32\u0C41 \u0C24\u0C40\u0C38\u0C47\u0C2F\u0C02\u0C21\u0C3F"}};function dd({size:e=20,color:t="currentColor",strokeWidth:o=2.4}){return(0,F.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,F.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,F.jsx)("path",{d:"m16 16 5 5"})]})}function ud({size:e=18,color:t="currentColor",strokeWidth:o=2.4,label:n}){return(0,F.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":n?void 0:!0,"aria-label":n,role:n?"img":void 0,children:[n?(0,F.jsx)("title",{children:n}):null,(0,F.jsx)("path",{d:"m6 15 6-6 6 6"})]})}function Id({size:e=18,color:t="currentColor",strokeWidth:o=2.4,label:n}){return(0,F.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":n?void 0:!0,"aria-label":n,role:n?"img":void 0,children:[n?(0,F.jsx)("title",{children:n}):null,(0,F.jsx)("path",{d:"m6 9 6 6 6-6"})]})}function pd({size:e=20,color:t="currentColor",strokeWidth:o=2.4}){return(0,F.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,F.jsx)("path",{d:"m15 18-6-6 6-6"})})}function md({size:e=20,color:t="currentColor",strokeWidth:o=2.4}){return(0,F.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,F.jsx)("path",{d:"m9 18 6-6-6-6"})})}function Pl({size:e=18,color:t="currentColor",strokeWidth:o=2.4}){return(0,F.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,F.jsx)("path",{d:"m5 12 4 4L19 6"})})}function Yl({data:e,columns:t,rowKey:o="id",view:n="auto",mobileBreakpoint:A=768,theme:i="default",locale:r="en-US",ai:s=!1,search:a=!0,selectable:l=!1,selectedKeys:g=[],onSelectionChange:u,pagination:d,loading:p=!1,highlightIds:B=[],highlightColor:y="#fff3a3",autoScrollToHighlight:m=!1,onRowClick:w,onSortChange:b,empty:C,className:c="",inputLanguage:I,toolName:Q="yuktai_grid",toolDescriptions:k,webmcp:N=!1,onWebMCPStatusChange:H,onAgentResult:V,customRules:T=[],engine:G="rust",showSearchTime:S=!1,onSearchTime:oe}){let se=r==="te-IN"?"te-IN":"en-US",W=cd[se],re=s===!0||typeof s=="object"&&s!==null,ge=d!==!1&&d!==void 0,P=typeof d=="object"?d.pageSize??20:20,ae=typeof d=="object"&&d.sizeOptions&&d.sizeOptions.length>0?d.sizeOptions:[10,20,50,100],[J,$]=(0,de.useState)(""),[te,_]=(0,de.useState)(1),[Z,Me]=(0,de.useState)(P),[Te,q]=(0,de.useState)(),[le,me]=(0,de.useState)("asc"),[ye,Ge]=(0,de.useState)(!1),[be,We]=(0,de.useState)([]),[Ne,Qt]=(0,de.useState)([]),Je=(0,de.useMemo)(()=>mt(t.map(v=>({key:String(v.key),label:v.label,type:v.type}))),[t]);(0,de.useEffect)(()=>{Me(P),_(1)},[P]),(0,de.useEffect)(()=>{let v=()=>{Ge(window.innerWidth<=A)};return v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[A]);let ot=dn(G,e.length),xe=(0,de.useMemo)(()=>ot?ot.setSearchTexts(Tl(e,t)):!1,[ot,e,t]),Fe=(0,de.useMemo)(()=>{let v={search:null,sort:null},K=typeof performance<"u"?performance.now():Date.now(),j=Ll({data:e,columns:t,searchText:J,filters:be,toolColumns:Je,sortKey:Te,sortDirection:le,locale:r,core:ot,searchReady:xe,stats:v}),ne=(typeof performance<"u"?performance.now():Date.now())-K;return{rows:j,ms:ne,engine:Fl(v)}},[e,t,J,be,Je,Te,le,r,ot,xe]),Re=Fe.rows;(0,de.useEffect)(()=>{!oe||!Fe.engine||oe({query:J.trim(),ms:Fe.ms,rows:Fe.rows.length,engine:Fe.engine})},[Fe]);let Ve=ge?Math.max(1,Math.ceil(Re.length/Z)):1;(0,de.useEffect)(()=>{te>Ve&&_(Ve)},[te,Ve]);let Et=(0,de.useMemo)(()=>{let v=[...B.map(String),...Ne];return Array.from(new Set(v))},[B,Ne]);(0,de.useEffect)(()=>{if(!m)return;let v=Et[0];if(v==null)return;let K=typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(String(v)):String(v).replace(/["\\]/g,"\\$&");document.querySelector(`[data-yuktai-row-id="${K}"]`)?.scrollIntoView({behavior:"smooth",block:"center"})},[Et,m,te]);let Tt=(0,de.useMemo)(()=>{if(!ge)return Re;let v=(te-1)*Z;return Re.slice(v,v+Z)},[Re,ge,te,Z]),Mo=n==="card"||n==="auto"&&ye,Ke=v=>String(v[o]??""),nt=v=>g.some(K=>String(K)===v),At=v=>Et.some(K=>String(K)===v),dt=v=>{if(!l)return;let K=Ke(v),j=nt(K)?g.filter(ne=>String(ne)!==K):[...g,K];u?.(j)},to=v=>{if(v.sortable===!1)return;let K=String(v.key),j=Te===K&&le==="asc"?"desc":"asc";q(K),me(j),_(1),b?.({key:K,direction:j})},wt=v=>{$(v),_(1)},Go=(v,K)=>{let j=t.find(ne=>String(ne.key)===v||ne.label.toLowerCase()===v.toLowerCase());j&&(q(String(j.key)),me(K),_(1),b?.({key:String(j.key),direction:K}))},xt=se==="te-IN"?"te":"en",kt=(0,de.useCallback)(v=>{v?(q(v.key),me(v.direction)):(q(void 0),me("asc")),_(1),b?.(v)},[b]),St=(0,de.useCallback)(v=>{We(v),_(1)},[]),rt=(0,de.useCallback)(v=>{if(Qt(v),ge&&v.length){let K=Re.findIndex(j=>String(j[o]??"")===v[0]);K>=0&&_(Math.floor(K/Z)+1)}},[ge,Re,o,Z]),oo=(0,de.useMemo)(()=>Xt({data:e,columns:Je,rowKey:String(o),locale:xt,filters:be,onHighlightRows:rt,onFiltersChange:St,onSortChange:kt,onOpenRow:w?v=>{let K=Re.findIndex(ne=>String(ne[o]??"")===v),j=K>=0?Re[K]:e.find(ne=>String(ne[o]??"")===v);j&&w(j,Math.max(K,0))}:void 0,onSelectRow:l&&u?v=>{g.some(K=>String(K)===v)||u([...g.map(String),v])}:void 0},{name:Q,descriptions:k}),[e,Je,o,xt,be,rt,St,kt,w,Re,l,u,g,Q,k]),vt=wo({tools:oo,data:e,locale:xt,columns:Je,rowKey:String(o),customRules:T,onResult:V}),no=(0,de.useMemo)(()=>oo.map(v=>({...v,execute:K=>vt.executeTool(v.name,K)})),[oo,vt.executeTool]),No=()=>{We([]),_(1)},Ao=(v,K,j)=>{if(K.render)return K.render(v[K.key],v,j);let ne=v[K.key];if(ne==null)return"";if(K.type==="date"){let M=new Date(String(ne));if(!Number.isNaN(M.getTime()))return M.toLocaleDateString(r)}return K.type==="boolean"?ne?W.yes:W.no:String(ne)},ie=i==="dark",Ro={width:"100%",overflow:"hidden",border:i==="high-contrast"?"2px solid #000000":ie?"1px solid #334155":"1px solid #e2e8f0",borderRadius:12,background:ie?"#0f172a":"#ffffff",color:ie?"#f8fafc":"#0f172a",fontFamily:i==="dyslexia"?"Arial, sans-serif":void 0},ut={padding:12,display:"flex",alignItems:"center",gap:12,flexWrap:"wrap",borderBottom:ie?"1px solid #334155":"1px solid #e2e8f0"},it=v=>({width:40,height:40,minWidth:40,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,borderRadius:8,border:ie?"1px solid #475569":"1px solid #cbd5e1",background:v?ie?"#1e293b":"#f8fafc":ie?"#1e293b":"#ffffff",color:v?"#94a3b8":ie?"#f8fafc":"#0f172a",cursor:v?"not-allowed":"pointer",opacity:v?.55:1});if(p)return(0,F.jsxs)("div",{className:c,style:Ro,children:[N&&(0,F.jsx)(xo,{tools:no,onStatusChange:H}),(0,F.jsx)("div",{style:{padding:32,textAlign:"center"},children:W.loading})]});let It=t.map(v=>({key:String(v.key),label:v.label,type:v.type==="number"?"number":v.type==="date"?"date":"text"}));return(0,F.jsxs)("div",{className:c,style:Ro,children:[N&&(0,F.jsx)(xo,{tools:no,onStatusChange:H}),(a||re||be.length>0)&&(0,F.jsxs)("div",{style:ut,children:[a&&(0,F.jsxs)("div",{style:{position:"relative",width:"100%",maxWidth:420},children:[(0,F.jsx)("div",{style:{position:"absolute",left:12,top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",color:ie?"#cbd5e1":"#64748b",pointerEvents:"none"},children:(0,F.jsx)(dd,{size:19})}),(0,F.jsx)("input",{value:J,onChange:v=>{$(v.target.value),_(1)},placeholder:W.search,"aria-label":W.searchAria,style:{width:"100%",padding:"10px 12px 10px 40px",borderRadius:8,border:ie?"1px solid #475569":"1px solid #cbd5e1",background:ie?"#1e293b":"#ffffff",color:ie?"#ffffff":"#0f172a",outline:"none",boxSizing:"border-box"}})]}),be.length>0&&(0,F.jsxs)("button",{type:"button",onClick:No,title:W.clearFilters,style:{padding:"6px 10px",borderRadius:999,border:ie?"1px solid #475569":"1px solid #cbd5e1",background:ie?"#1e293b":"#f1f5f9",color:"inherit",fontSize:12,cursor:"pointer"},children:[W.filtersActive(be.length)," \u2715"]}),(0,F.jsxs)("div",{style:{marginLeft:"auto",fontSize:13,opacity:.7,whiteSpace:"nowrap"},children:[Re.length," ",Re.length===1?W.row:W.rows,S&&Fe.engine&&(0,F.jsxs)("span",{title:Fe.engine==="rust"?"Rust (WebAssembly)":"TypeScript",children:[" \xB7 ",_o(Fe.ms)," \xB7 ",Fe.engine==="rust"?"Rust":"TS"]})]}),re&&(0,F.jsx)(cn,{data:e,columns:It,onSearch:wt,onSort:Go,theme:ie?"dark":"light",language:se,inputLanguage:I??se,agent:{ask:vt.ask,loading:vt.loading},embedded:!0})]}),Re.length===0?(0,F.jsx)("div",{style:{padding:40,textAlign:"center",opacity:.7},children:C??W.noData}):Mo?(0,F.jsx)("div",{style:{display:"grid",gap:12,padding:12},children:Tt.map((v,K)=>{let j=Ke(v),ne=nt(j),M=At(j);return(0,F.jsxs)("div",{"data-yuktai-row-id":j,onClick:()=>w?.(v,K),style:{padding:14,borderRadius:10,border:ie?"1px solid #334155":"1px solid #e2e8f0",background:M?y:ne?ie?"#1e3a5f":"#eff6ff":ie?"#1e293b":"#ffffff",cursor:w?"pointer":"default"},children:[l&&(0,F.jsx)("button",{type:"button",onClick:z=>{z.stopPropagation(),dt(v)},"aria-label":`${W.selectRow} ${j}`,"aria-pressed":ne,style:{width:32,height:32,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,marginBottom:10,borderRadius:7,border:ne?"1px solid #2563eb":"1px solid #cbd5e1",background:ne?"#2563eb":"transparent",color:ne?"#ffffff":"currentColor",cursor:"pointer"},children:ne&&(0,F.jsx)(Pl,{size:17})}),t.map(z=>(0,F.jsxs)("div",{style:{display:"flex",gap:8,padding:"5px 0",alignItems:"flex-start"},children:[(0,F.jsx)("strong",{style:{minWidth:100,opacity:.7},children:z.label}),(0,F.jsx)("span",{children:Ao(v,z,K)})]},String(z.key)))]},j)})}):(0,F.jsx)("div",{style:{width:"100%",overflowX:"auto"},children:(0,F.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse"},children:[(0,F.jsx)("thead",{children:(0,F.jsxs)("tr",{children:[l&&(0,F.jsx)("th",{style:{padding:10,borderBottom:ie?"1px solid #334155":"1px solid #e2e8f0",width:52}}),t.filter(v=>!(ye&&v.hiddenOnMobile)).map(v=>{let K=Te===String(v.key);return(0,F.jsx)("th",{onClick:()=>to(v),style:{padding:10,textAlign:v.align??"left",borderBottom:ie?"1px solid #334155":"1px solid #e2e8f0",whiteSpace:"nowrap",cursor:v.sortable===!1?"default":"pointer",width:v.width,userSelect:"none"},children:(0,F.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:5},children:[v.label,K&&(le==="asc"?(0,F.jsx)(ud,{size:17,label:W.sortAscending}):(0,F.jsx)(Id,{size:17,label:W.sortDescending}))]})},String(v.key))})]})}),(0,F.jsx)("tbody",{children:Tt.map((v,K)=>{let j=Ke(v),ne=nt(j),M=At(j);return(0,F.jsxs)("tr",{"data-yuktai-row-id":j,onClick:()=>w?.(v,K),style:{background:M?y:ne?ie?"#1e3a5f":"#eff6ff":"transparent",cursor:w?"pointer":"default"},children:[l&&(0,F.jsx)("td",{style:{padding:10,borderBottom:ie?"1px solid #334155":"1px solid #e2e8f0"},children:(0,F.jsx)("button",{type:"button",onClick:z=>{z.stopPropagation(),dt(v)},"aria-label":`${W.selectRow} ${j}`,"aria-pressed":ne,style:{width:28,height:28,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,borderRadius:6,border:ne?"1px solid #2563eb":ie?"1px solid #64748b":"1px solid #cbd5e1",background:ne?"#2563eb":"transparent",color:ne?"#ffffff":"currentColor",cursor:"pointer"},children:ne&&(0,F.jsx)(Pl,{size:16})})}),t.filter(z=>!(ye&&z.hiddenOnMobile)).map(z=>(0,F.jsx)("td",{style:{padding:10,textAlign:z.align??"left",borderBottom:ie?"1px solid #334155":"1px solid #e2e8f0"},children:Ao(v,z,K)},String(z.key)))]},j)})})]})}),ge&&(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,flexWrap:"wrap",padding:12,borderTop:ie?"1px solid #334155":"1px solid #e2e8f0"},children:[(0,F.jsxs)("span",{style:{fontSize:13,opacity:.7},children:[W.page," ",te," ",W.of," ",Ve]}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[typeof d=="object"&&d.showSizeChanger&&(0,F.jsx)("select",{value:Z,onChange:v=>{let K=Number(v.target.value);!Number.isFinite(K)||K<=0||(Me(K),_(1))},"aria-label":W.pageSize,style:{minHeight:40,padding:"7px 10px",borderRadius:8,border:ie?"1px solid #475569":"1px solid #cbd5e1",background:ie?"#1e293b":"#ffffff",color:ie?"#ffffff":"#0f172a"},children:ae.map(v=>(0,F.jsx)("option",{value:v,children:v},v))}),(0,F.jsx)("button",{type:"button",disabled:te<=1,onClick:()=>_(v=>Math.max(1,v-1)),"aria-label":W.previous,title:W.previous,style:it(te<=1),children:(0,F.jsx)(pd,{size:20})}),(0,F.jsx)("button",{type:"button",disabled:te>=Ve,onClick:()=>_(v=>Math.min(Ve,v+1)),"aria-label":W.next,title:W.next,style:it(te>=Ve),children:(0,F.jsx)(md,{size:20})})]})]})]})}x();var Ae=require("react");function Ul(e){return e===!1?Number.MAX_SAFE_INTEGER:e===!0||e===void 0?10:e.pageSize??10}function CA(e){return String(e??"").normalize("NFC").toLowerCase().trim()}function un(e){return e==null||typeof e=="string"&&e.trim()===""}function fA(e){if(typeof e=="number")return Number.isFinite(e)?e:null;let t=String(e??"").trim();if(t==="")return null;let o=Number(t);return Number.isFinite(o)?o:null}function hA(e){let t=e instanceof Date?e.getTime():new Date(String(e)).getTime();return Number.isFinite(t)?t:null}function Cd(e,t,o,n){if(o==="number"||typeof e=="number"&&typeof t=="number"){let A=fA(e),i=fA(t);if(A!==null&&i!==null)return A-i}if(o==="date"||e instanceof Date&&t instanceof Date){let A=hA(e),i=hA(t);if(A!==null&&i!==null)return A-i}return typeof e=="boolean"&&typeof t=="boolean"?e===t?0:e?1:-1:String(e).localeCompare(String(t),n,{sensitivity:"base",numeric:!0})}var bt=()=>typeof performance<"u"?performance.now():Date.now();function fd(e,t){return e.map(o=>t.map(n=>{let A=o[n.key];return A==null?"":CA(A)}).join(po))}function hd(e,t,o){let n=!1,A=!0,i=!0,r=0;for(let l of e){let g=l[t];un(g)||(r++,typeof g=="number"?n=!0:A=!1,g instanceof Date||(i=!1))}if(r===0)return null;let s=null;if(o==="number"||A?s=fA:(o==="date"&&!n||i)&&(s=hA),!s)return null;let a=new Float64Array(e.length);for(let l=0;l<e.length;l++){let g=e[l][t];if(un(g)){a[l]=NaN;continue}let u=s(g);if(u===null)return null;a[l]=u}return a}function Hl(e){let{data:t,columns:o,pagination:n=!0,mobileBreakpoint:A=768,locale:i,initialFilters:r=[],engine:s="rust"}=e,a=dn(s,t.length),[l,g]=(0,Ae.useState)(null),[u,d]=(0,Ae.useState)(""),[p,B]=(0,Ae.useState)(r),[y,m]=(0,Ae.useState)(1),[w,b]=(0,Ae.useState)(Ul(n)),[C,c]=(0,Ae.useState)(!1),I=Ul(n);(0,Ae.useEffect)(()=>{b(I),m(1)},[I]),(0,Ae.useEffect)(()=>{if(typeof window>"u")return;let q=()=>{c(window.innerWidth<=A)};return q(),window.addEventListener("resize",q),()=>window.removeEventListener("resize",q)},[A]);let Q=(0,Ae.useMemo)(()=>mt(o.map(q=>({key:String(q.key),label:q.label,type:q.type}))),[o]),k=(0,Ae.useCallback)(q=>{g(le=>!le||le.key!==q?{key:q,direction:"asc"}:le.direction==="asc"?{key:q,direction:"desc"}:null),m(1)},[]),N=(0,Ae.useCallback)(q=>{g(q&&q.direction?q:null),m(1)},[]),H=(0,Ae.useCallback)(()=>{g(null),m(1)},[]),V=(0,Ae.useCallback)(q=>{d(q),m(1)},[]),T=(0,Ae.useCallback)(q=>{B(q),m(1)},[]),G=(0,Ae.useCallback)(q=>{B(le=>[...le.filter(me=>me.key!==q.key),q]),m(1)},[]),S=(0,Ae.useCallback)(q=>{B(le=>le.filter(me=>me.key!==q)),m(1)},[]),oe=(0,Ae.useCallback)(()=>{B([]),m(1)},[]),se=(0,Ae.useCallback)(q=>{b(Math.max(1,Math.floor(q)||1)),m(1)},[]),W=(0,Ae.useMemo)(()=>a?a.setSearchTexts(fd(t,o)):!1,[a,t,o]),re=(0,Ae.useMemo)(()=>{let q=bt(),le=CA(u);if(!le)return{rows:t,ms:0,engine:null};if(a&&W){let ye=a.search(le);if(ye)return{rows:Wt(t,ye),ms:bt()-q,engine:"rust"}}return{rows:t.filter(ye=>o.some(Ge=>{let be=ye[Ge.key];return be==null?!1:CA(be).includes(le)})),ms:bt()-q,engine:"ts"}},[t,u,o,a,W]),ge=re.rows,P=(0,Ae.useMemo)(()=>{let q=bt();return{rows:lt(ge,Q,p),ms:bt()-q}},[ge,Q,p]),ae=P.rows,J=(0,Ae.useMemo)(()=>{if(!l||!l.direction)return{rows:ae,ms:0,engine:null};let q=bt(),le=o.find(Ge=>String(Ge.key)===l.key),me=l.direction==="desc"?-1:1;if(a){let Ge=hd(ae,l.key,le?.type),be=Ge&&a.sortByKeys(Ge,me===-1);if(be)return{rows:Wt(ae,be),ms:bt()-q,engine:"rust"}}return{rows:[...ae].sort((Ge,be)=>{let We=Ge[l.key],Ne=be[l.key],Qt=un(We),Je=un(Ne);return Qt&&Je?0:Qt?1:Je?-1:me*Cd(We,Ne,le?.type,i)}),ms:bt()-q,engine:"ts"}},[ae,l,o,i,a]),$=J.rows,te=(0,Ae.useMemo)(()=>!re.engine&&!J.engine?null:{query:u.trim(),ms:re.ms+P.ms+J.ms,rows:ae.length,engine:re.engine==="rust"||J.engine==="rust"?"rust":"ts"},[re,P,J,u,ae.length]),_=Math.max(1,Math.ceil($.length/w)),Z=(0,Ae.useMemo)(()=>{if(n===!1)return $;let q=(y-1)*w;return $.slice(q,q+w)},[$,y,w,n]);(0,Ae.useEffect)(()=>{y>_&&m(_)},[y,_]);let Me=(0,Ae.useCallback)(q=>m(Math.min(Math.max(1,Math.floor(q)||1),_)),[_]),Te=(0,Ae.useCallback)(()=>{g(null),d(""),B([]),m(1)},[]);return{displayedData:Z,rows:$,searchTime:te,totalCount:t.length,filteredCount:$.length,sort:l,toggleSort:k,setSort:N,clearSort:H,searchQuery:u,setSearchQuery:V,filters:p,setFilters:T,setFilter:G,removeFilter:S,clearFilters:oe,page:y,pageSize:w,totalPages:_,setPage:Me,setPageSize:se,isMobile:C,reset:Te}}x();x();x();x();var et={accessibility:'<circle cx="12" cy="4" r="2"/><path d="M4 8l8-1 8 1M12 7v5m-5 9 5-8 5 8M7 12l-2 5m12-5 2 5"/>',contrast:'<circle cx="12" cy="12" r="9"/><path d="M12 3a9 9 0 0 0 0 18z"/>',moon:'<path d="M20 14.5A8.5 8.5 0 0 1 9.5 4 8.5 8.5 0 1 0 20 14.5z"/>',motion:'<path d="M4 12h12m-5-5 5 5-5 5M20 5v14"/>',reading:'<path d="M4 5h16M4 10h12M4 15h16M4 20h10"/>',target:'<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="4"/>',speaker:'<path d="M4 9v6h4l5 4V5L8 9H4z"/><path d="M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"/>',palette:'<path d="M12 3.5c-4.7 0-8.5 3.6-8.5 8.3s3.7 8.7 8.3 8.7c1.1 0 1.8-.8 1.8-1.8 0-.5-.2-1-.5-1.3-.3-.4-.5-.8-.5-1.3 0-1 .8-1.8 1.8-1.8h2.2c2.3 0 3.9-1.7 3.9-3.9 0-4.3-3.8-6.9-8.5-6.9z"/><path d="M7.7 12.4h.01M9.2 8.3h.01M13.8 7.6h.01"/>',skip:'<path d="M5 5l7 7-7 7M13 5l7 7-7 7"/>',close:'<path d="m18 6-12 12M6 6l12 12"/>',plus:'<path d="M12 6.5v11M6.5 12h11"/>',minus:'<path d="M6.5 12h11"/>',reset:'<path d="M3.5 12a8.5 8.5 0 1 0 2.8-6.3L3.5 8.2"/><path d="M3.5 3.5v4.7h4.7"/>',search:'<circle cx="11" cy="11" r="6.5"/><path d="m15.8 15.8 4.7 4.7"/>',sort:'<path d="m8 9 4-4 4 4m-8 6 4 4 4-4"/>',sortUp:'<path d="m7 14.5 5-5 5 5"/>',sortDown:'<path d="m7 9.5 5 5 5-5"/>',chevrons:'<path d="m8 9 4-4 4 4m-8 6 4 4 4-4"/>',grid:'<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/>',cards:'<rect x="3" y="4" width="18" height="7" rx="1.5"/><rect x="3" y="13" width="18" height="7" rx="1.5"/>',chat:'<path d="M21 11.5a8.5 8.5 0 0 1-8.5 8.5 9 9 0 0 1-4-.9L3 21l1.9-5.5a9 9 0 0 1-.9-4A8.5 8.5 0 0 1 12.5 3H13a8.5 8.5 0 0 1 8 8z"/>',mic:'<rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0 0 14 0M12 17v5m-4 0h8"/>',stop:'<rect x="6" y="6" width="12" height="12" rx="2"/>',download:'<path d="M12 3v12m-5-5 5 5 5-5M4 21h16"/>',copy:'<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/>',filter:'<path d="M4 5h16l-6 7v6l-4 2v-8z"/>',check:'<path d="m5 12 4 4L19 6"/>',left:'<path d="m14.5 17-5-5 5-5"/>',right:'<path d="m9.5 17 5-5-5-5"/>',first:'<path d="m11.5 17-5-5 5-5M18.5 17l-5-5 5-5"/>',last:'<path d="m12.5 17 5-5-5-5M5.5 17l5-5-5-5"/>',spark:'<path d="m12 3 1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2zM19 14l1.2 2.8L23 18l-2.8 1.2L19 22l-1.2-2.8L15 18l2.8-1.2z"/>',alert:'<path d="m12 3 10 18H2L12 3z"/><path d="M12 9v5m0 3h.01"/>',info:'<circle cx="12" cy="12" r="9"/><path d="M12 11v6m0-9h.01"/>',form:'<rect x="5" y="3" width="14" height="18" rx="2"/><path d="M9 8h6M9 12h6M9 16h3"/>',eye:'<path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/>',layout:'<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 21V9"/>',wand:'<path d="m15 4 5 5L9 20H4v-5z"/><path d="m13 6 5 5"/>',undo:'<path d="M9 13.5 4.5 9 9 4.5"/><path d="M4.5 9H14a5.75 5.75 0 0 1 0 11.5h-3"/>',tools:'<path d="M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z"/>',plug:'<path d="M9 2v6M15 2v6M6 8h12v4a6 6 0 0 1-12 0zM12 18v4"/>',home:'<path d="M3 11 12 4l9 7"/><path d="M5 10v10h5v-6h4v6h5V10"/>',menu:'<path d="M4 6h16M4 12h16M4 18h16"/>',book:'<path d="M12 6c-2-1.5-5-2-8-2v14c3 0 6 .5 8 2 2-1.5 5-2 8-2V4c-3 0-6 .5-8 2zM12 6v14"/>',calendar:'<rect x="3" y="5" width="18" height="16" rx="2"/><path d="M3 10h18M8 3v4M16 3v4M7.5 14h2M14.5 14h2M7.5 17.5h2"/>',clock:'<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>',person:'<circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/>',users:'<circle cx="9" cy="8" r="3.5"/><path d="M2 20a7 7 0 0 1 14 0"/><path d="M16 4.5a3.5 3.5 0 0 1 0 7M18 13.5a7 7 0 0 1 4 6.5"/>',globe:'<circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"/>',lamp:'<path d="M12 3c2 2.6 3 4.3 3 6a3 3 0 0 1-6 0c0-1.7 1-3.4 3-6z"/><path d="M3 14h18c0 3.5-4 6-9 6s-9-2.5-9-6z"/><path d="M12 12v2"/>',play:'<circle cx="12" cy="12" r="9"/><path d="M10 8.5v7l6-3.5z"/>',pause:'<circle cx="12" cy="12" r="9"/><path d="M10 9v6M14 9v6"/>',send:'<path d="M21 3 3 10.5l7 3 3 7.5z"/><path d="m10 13.5 4.5-4.5"/>',share:'<circle cx="18" cy="5" r="2.5"/><circle cx="6" cy="12" r="2.5"/><circle cx="18" cy="19" r="2.5"/><path d="m8.2 10.8 7.6-4.6M8.2 13.2l7.6 4.6"/>',gift:'<rect x="3" y="8" width="18" height="4" rx="1"/><path d="M5 12v9h14v-9M12 8v13M12 8C10.5 5 7 4 7 6.5S10 8 12 8zm0 0c1.5-3 5-4 5-1.5S14 8 12 8z"/>',image:'<rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="m21 15-5-5-10 10"/>',file:'<path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5M9 13h6M9 17h6"/>',external:'<path d="M14 4h6v6M20 4l-9 9"/><path d="M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/>',arrowUp:'<path d="M12 19V5m-6 6 6-6 6 6"/>',arrowLeft:'<path d="M19 12H5m6-6-6 6 6 6"/>',arrowRight:'<path d="M5 12h14m-6-6 6 6-6 6"/>',headphones:'<path d="M4 15v-3a8 8 0 0 1 16 0v3"/><rect x="3" y="14" width="4" height="7" rx="1.5"/><rect x="17" y="14" width="4" height="7" rx="1.5"/>',music:'<path d="M9 18V5l11-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="17" cy="16" r="3"/>',pin:'<path d="M12 21s7-6.2 7-11.5a7 7 0 0 0-14 0C5 14.8 12 21 12 21z"/><circle cx="12" cy="9.5" r="2.5"/>',map:'<path d="M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z"/><path d="M9 3v15M15 6v15"/>',pen:'<path d="M12 3 6 9l1.5 8h9L18 9z"/><path d="M12 3v7.5"/><circle cx="12" cy="12" r="1.5"/><path d="M8.5 20.5h7"/>',wallet:'<rect x="3" y="7" width="18" height="13" rx="2"/><path d="M16 13.5h2M6 7l9-4 2 4"/>',install:'<rect x="6" y="2" width="12" height="20" rx="2"/><path d="M12 6v8m-3-3 3 3 3-3M10 18h4"/>',help:'<circle cx="12" cy="12" r="9"/><path d="M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.6M12 17h.01"/>',temple:'<path d="M12 2v2M10 4h4l1 3H9zM8 7h8l1.5 4h-11zM6.5 11h11L19 15H5zM4 15h16v6H4z"/><path d="M10 21v-3a2 2 0 0 1 4 0v3"/>',meditate:'<circle cx="12" cy="4.5" r="2.2"/><path d="M12 8c-2.2 0-3.3 1.3-3.7 3.2L7.5 16M12 8c2.2 0 3.3 1.3 3.7 3.2l.8 4.8"/><path d="M4 18c3 2 5.5 2.4 8 1.2 2.5 1.2 5 .8 8-1.2"/><path d="M7.5 16c1.4 1.4 3 2 4.5 2s3.1-.6 4.5-2"/>',trophy:'<path d="M8 4h8v5a4 4 0 0 1-8 0z"/><path d="M8 6H5a3 3 0 0 0 3 4M16 6h3a3 3 0 0 1-3 4M12 13v4M8 21h8M9 17h6"/>',bulb:'<path d="M9 18h6M10 21h4"/><path d="M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3z"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2.5M12 19.5V22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M2 12h2.5M19.5 12H22M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8"/>',delete:'<path d="M4 7h16M10 11v6M14 11v6M6 7l1 13a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1l1-13M9 7V4h6v3"/>',robot:'<rect x="4" y="8" width="16" height="12" rx="3"/><path d="M12 8V4M9.5 4h5M2 13v3M22 13v3"/><circle cx="9" cy="14" r="1.3"/><circle cx="15" cy="14" r="1.3"/>',heart:'<path d="M12 20s-7.5-4.6-9.2-9.3A4.9 4.9 0 0 1 12 6.6a4.9 4.9 0 0 1 9.2 4.1C19.5 15.4 12 20 12 20z"/>',heartFilled:'<path fill="currentColor" d="M12 20s-7.5-4.6-9.2-9.3A4.9 4.9 0 0 1 12 6.6a4.9 4.9 0 0 1 9.2 4.1C19.5 15.4 12 20 12 20z"/>',hub:'<circle cx="12" cy="12" r="3"/><circle cx="5" cy="5" r="2"/><circle cx="19" cy="5" r="2"/><circle cx="5" cy="19" r="2"/><circle cx="19" cy="19" r="2"/><path d="m6.5 6.5 3.4 3.4M17.5 6.5l-3.4 3.4M6.5 17.5l3.4-3.4M17.5 17.5l-3.4-3.4"/>',code:'<path d="m8 7-5 5 5 5M16 7l5 5-5 5M14 4l-4 16"/>',text:'<path d="M3 7V5h11v2M8.5 5v14M6.5 19h4M14 12v-1.5h7V12M17.5 10.5V19M16 19h3"/>',bold:'<path d="M7 4h6a4 4 0 0 1 0 8H7zM7 12h7a4 4 0 0 1 0 8H7z"/>',italic:'<path d="M10 4h9M5 20h9M15 4 9 20"/>',underline:'<path d="M7 4v7a5 5 0 0 0 10 0V4M5 21h14"/>',alignLeft:'<path d="M4 5h16M4 9.5h9M4 14h16M4 18.5h9"/>',alignCenter:'<path d="M4 5h16M7.5 9.5h9M4 14h16M7.5 18.5h9"/>',alignRight:'<path d="M4 5h16M11 9.5h9M4 14h16M11 18.5h9"/>',alignJustify:'<path d="M4 5h16M4 9.5h16M4 14h16M4 18.5h16"/>',quote:'<path d="M4 18v-6.5A6.5 6.5 0 0 1 10.5 5M4 12h5.5v6H4zM13.5 18v-6.5A6.5 6.5 0 0 1 20 5M13.5 12H19v6h-5.5z"/>',title:'<path d="M5 6V4h14v2M12 4v16M9 20h6"/>',font:'<rect x="3" y="3" width="18" height="18" rx="3"/><path d="m8 17 4-10 4 10M9.4 13.5h5.2"/>',spellcheck:'<path d="m3 14 4-10 4 10M4.6 10.5h4.8M11 17l3 3 7-7"/>',abc:'<path d="m2 16 2.5-8L7 16M3 13.5h3M9.5 8v8h2.5a2 2 0 0 0 0-4H9.5h2a2 2 0 0 0 0-4H9.5M21 9.4a3.1 3.1 0 1 0 0 5.2"/>',pageBreak:'<path d="M6 3v5h12V3M6 21v-5h12v5M3 12h3M9 12h6M18 12h3"/>',link:'<path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1"/><path d="M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/>',style:'<rect x="3" y="3" width="7" height="18" rx="2"/><path d="m10 7.5 4.4-2.6a2 2 0 0 1 2.7.7l3.2 5.6a2 2 0 0 1-.7 2.7L10 19"/><circle cx="6.5" cy="17" r="1"/>',lock:'<rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V8a4 4 0 0 1 8 0v3M12 15v2"/>',unlock:'<rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V8a4 4 0 0 1 7.6-1.8M12 15v2"/>',key:'<circle cx="8" cy="15" r="4"/><path d="m11 12 9-9M17 6l3 3M14.5 8.5l2 2"/>',redo:'<path d="M15 13.5 19.5 9 15 4.5"/><path d="M19.5 9H10a5.75 5.75 0 0 0 0 11.5h3"/>',swap:'<path d="M7 4 3 8l4 4M3 8h14M17 12l4 4-4 4M21 16H7"/>',shuffle:'<path d="M16 3h5v5M4 20 21 3M21 16v5h-5M15 15l6 6M4 4l5 5"/>',fullscreen:'<path d="M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5"/>',fullscreenExit:'<path d="M9 4v5H4M20 9h-5V4M15 20v-5h5M4 15h5v5"/>',merge:'<circle cx="6" cy="5" r="2"/><circle cx="6" cy="19" r="2"/><circle cx="18" cy="12" r="2"/><path d="M6 7v10M6 7c0 4 4 5 10 5"/>',join:'<circle cx="9" cy="12" r="6"/><circle cx="15" cy="12" r="6"/>',touch:'<path d="M9 11V5a1.5 1.5 0 0 1 3 0v6M12 10a1.5 1.5 0 0 1 3 0v1M15 11a1.5 1.5 0 0 1 3 0v3c0 4-2.5 7-6 7-2.5 0-4-1-5.5-3.5L4.6 14a1.5 1.5 0 0 1 2.5-1.6L9 15"/>',volumeOff:'<path d="M4 9v6h4l5 4V5L8 9H4z"/><path d="m16.5 9.5 5 5M21.5 9.5l-5 5"/>',musicOff:'<path d="M9 13v5M9 7V5l11-2v9"/><circle cx="6" cy="18" r="3"/><path d="M3 3l18 18"/>',musicVideo:'<rect x="3" y="4" width="18" height="16" rx="2"/><path d="M10.5 15V8.5l5-1V13"/><circle cx="9" cy="15" r="1.5"/><circle cx="14" cy="13" r="1.5"/>',movie:'<rect x="3" y="9" width="18" height="11" rx="2"/><path d="m3.5 9-.6-3 16.6-3.4.6 3L3.5 9zM8.5 4.8l1.8 2.9M13.8 3.7l1.8 2.9"/>',slideshow:'<rect x="3" y="4" width="18" height="13" rx="2"/><path d="M10 8v5l4-2.5zM8 21h8M12 17v4"/>',storage:'<ellipse cx="12" cy="5" rx="8" ry="3"/><path d="M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3"/>',api:'<path d="M3 17v-6a2.5 2.5 0 0 1 5 0v6M3 14h5M11 17V7h2.5a2.5 2.5 0 0 1 0 5H11M18 7h3M19.5 7v10M18 17h3"/>',dataObject:'<path d="M8 4H7a2 2 0 0 0-2 2v4l-2 2 2 2v4a2 2 0 0 0 2 2h1M16 4h1a2 2 0 0 1 2 2v4l2 2-2 2v4a2 2 0 0 1-2 2h-1"/>',computer:'<rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8M12 16v4"/>',phone:'<rect x="6" y="2" width="12" height="20" rx="2"/><path d="M10.5 18.5h3"/>',cloud:'<path d="M7 19a5 5 0 0 1-.6-10A6.5 6.5 0 0 1 18.6 9.5 4.8 4.8 0 0 1 17.5 19z"/>',wifi:'<path d="M2 9a15 15 0 0 1 20 0M5 12.5a10 10 0 0 1 14 0M8.5 16a5 5 0 0 1 7 0M12 19.5h.01"/>',wifiOff:'<path d="M2 9a15 15 0 0 1 20 0M5 12.5a10 10 0 0 1 14 0M8.5 16a5 5 0 0 1 7 0M12 19.5h.01M3 3l18 18"/>',searchOff:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 5 5M8.7 8.7l4.6 4.6M13.3 8.7l-4.6 4.6"/>',eyeOff:'<path d="M10.6 5.1A10 10 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-2.2 3.2M6.6 6.6C3.8 8.4 2 12 2 12s3.5 7 10 7a9.7 9.7 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2M3 3l18 18"/>',bookmark:'<path d="M6 3h12v18l-6-4-6 4z"/>',school:'<path d="m2 9 10-5 10 5-10 5z"/><path d="M6 11v5c0 1.5 2.7 3 6 3s6-1.5 6-3v-5M22 9v6"/>',gavel:'<path d="m13 3.5 7.5 7.5M10 6.5l7.5 7.5M11.5 5l7 7-3 3-7-7zM10 11.5 3.5 18a1.4 1.4 0 0 0 2 2L12 13.5M13 21h8"/>',architecture:'<circle cx="12" cy="5" r="2"/><path d="M12 3V2M11 7 5.5 21M13 7l5.5 14M8 15h8"/>',brain:'<path d="M11 5.5A3 3 0 0 0 5.6 7 3 3 0 0 0 4 12a3 3 0 0 0 1.6 5A3 3 0 0 0 11 18.5zM13 5.5A3 3 0 0 1 18.4 7 3 3 0 0 1 20 12a3 3 0 0 1-1.6 5 3 3 0 0 1-5.4 1.5z"/><path d="M8 10h3M13 14h3"/>',volunteer:'<path d="M12 11s-3.5-2.2-3.5-4.6a1.8 1.8 0 0 1 3.5-.7 1.8 1.8 0 0 1 3.5.7C15.5 8.8 12 11 12 11z"/><path d="M2 15h3l3.5 1.5H13a1.5 1.5 0 0 1 0 3H9.5M5 21l1.5-1.5H14l5.5-4a1.6 1.6 0 0 0-2-2.4L14 15.6"/>',radio:'<circle cx="12" cy="12" r="9"/>',radioChecked:'<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="4" fill="currentColor"/>',upload:'<path d="M12 15V3m-5 5 5-5 5 5M4 21h16"/>',arrowDown:'<path d="M12 5v14m-6-6 6 6 6-6"/>',factCheck:'<rect x="3" y="4" width="18" height="16" rx="2"/><path d="M7 9h4M7 13h4M7 17h2M13.5 13l2 2 3.5-3.5"/>',imageSearch:'<path d="M13 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4"/><path d="m3 17 5-5 4 4"/><circle cx="17" cy="7" r="3"/><path d="m19.2 9.2 2.3 2.3"/>',documentScanner:'<path d="M3 7V4a1 1 0 0 1 1-1h3M17 3h3a1 1 0 0 1 1 1v3M21 17v3a1 1 0 0 1-1 1h-3M7 21H4a1 1 0 0 1-1-1v-3"/><path d="M7 8h10M7 12h10M7 16h6"/>',dashboard:'<rect x="3" y="3" width="8" height="10" rx="1.5"/><rect x="13" y="3" width="8" height="6" rx="1.5"/><rect x="3" y="15" width="8" height="6" rx="1.5"/><path d="M17 13v8M13 17h8"/>',cleaning:'<path d="m20 3-7.5 7.5"/><path d="M12.5 10.5c-2.5-1.6-6-1-7.4 1.7L3 20.5c3.2 1 7.2.4 10.2-1.6l.7-5.3c-.1-1.3-.6-2.3-1.4-3.1z"/><path d="M7.5 15.5 6 20.5M10.5 15l-1 5"/>',dragHandle:'<path d="M5 9h14M5 15h14"/>',zoomIn:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 5 5M8 11h6M11 8v6"/>',zoomOut:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 5 5M8 11h6"/>',insights:'<path d="m3 18 5-5 4 3 6-7"/><path d="M15 9h3v3"/><path d="m19 2.5.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7z"/>',explore:'<circle cx="12" cy="12" r="9"/><path d="m15.5 8.5-2 5-5 2 2-5z"/>',save:'<path d="M5 3h11l5 5v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/><path d="M7 3v5h8V3M7 21v-7h10v7"/>',label:'<path d="M4 6h11l5 6-5 6H4z"/>',keyboard:'<rect x="2" y="6" width="20" height="12" rx="2"/><path d="M6 10h.01M10 10h.01M14 10h.01M18 10h.01M6 14h.01M18 14h.01M9 14h6"/>',trendingUp:'<path d="m3 17 6-6 4 4 8-8"/><path d="M15 7h6v6"/>',trendingDown:'<path d="m3 7 6 6 4-4 8 8"/><path d="M15 17h6v-6"/>',cake:'<path d="M4 21h16M5 21v-7a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v7M5 16.5c1.5 1 2.5 1 3.5 0s2.5-1 3.5 0 2.5 1 3.5 0 2.5-1 3.5 0M12 12V8.5M12 6c-.9-.9-.9-2 0-3.3.9 1.3.9 2.4 0 3.3z"/>',barChart:'<path d="M4 20h16M7 20v-6M12 20V5M17 20V10"/>',admin:'<path d="M12 3 4 6v6c0 4.5 3.4 8 8 9 4.6-1 8-4.5 8-9V6z"/><circle cx="12" cy="10" r="2.5"/><path d="M8 16.5c1-1.8 2.4-2.5 4-2.5s3 .7 4 2.5"/>',bugReport:'<rect x="7" y="8" width="10" height="12" rx="5"/><path d="M9 8.5a3 3 0 0 1 6 0M12 12v8M7 13H3M21 13h-4M7 17l-3 1.5M17 17l3 1.5M7.5 10 5 8M16.5 10 19 8"/>',sentimentSad:'<circle cx="12" cy="12" r="9"/><path d="M8 16.5c1-1.4 2.4-2 4-2s3 .6 4 2M9 9.5h.01M15 9.5h.01"/>',integration:'<rect x="5" y="4" width="14" height="17" rx="2"/><path d="M9 4V3h6v1M10 11l-2 2 2 2M14 11l2 2-2 2"/>',namaskar:'<path d="M12 5.5V15M12 5.5c-.6-1.7-2.4-2.2-3.1-.9L7.2 11.5 4.5 14.5l3 5H10l2-3.5M12 5.5c.6-1.7 2.4-2.2 3.1-.9l1.7 6.9 2.7 3-3 5H14l-2-3.5"/>',sunrise:'<path d="M3 19h18M7 19a5 5 0 0 1 10 0M12 3v6M9.5 5.5 12 3l2.5 2.5M4.9 11.9l1.4 1.4M19.1 11.9l-1.4 1.4M2 16h2M20 16h2"/>',sunset:'<path d="M3 19h18M7 19a5 5 0 0 1 10 0M12 3v6M9.5 6.5 12 9l2.5-2.5M4.9 11.9l1.4 1.4M19.1 11.9l-1.4 1.4M2 16h2M20 16h2"/>',login:'<path d="M14 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4M10 16l4-4-4-4M14 12H3"/>',logout:'<path d="M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4M16 16l4-4-4-4M20 12H9"/>',speed:'<path d="M4.5 18a9 9 0 1 1 15 0"/><path d="m12 14 4-5"/><circle cx="12" cy="14" r="1.2"/>',repeat:'<path d="m17 2 3 3-3 3M4 11V9a4 4 0 0 1 4-4h12M7 22l-3-3 3-3M20 13v2a4 4 0 0 1-4 4H4"/>',loader:'<path d="M12 3v3M12 18v3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M3 12h3M18 12h3M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1"/>',star:'<path d="m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9z"/>',shieldCheck:'<path d="M12 3 4 6v6c0 4.5 3.4 8 8 9 4.6-1 8-4.5 8-9V6z"/><path d="m8.5 12 2.5 2.5 4.5-4.5"/>'},yA=Object.keys(et);var In=3,bA="#ffffff",Jl="#111827";function eo(e,t){let o=pt(e),n=pt(t);return o&&n?$t(o,n):null}function pn(e){let t=eo(bA,e),o=eo(Jl,e);return t===null||o===null||t>=o?bA:Jl}var Kl=new Set;function yd(e,t){Kl.has(e)||(Kl.add(e),typeof console<"u"&&console.warn(`[yuktai icons] ${t}`))}function mn(e={}){let t=e.variant==="filled"?"filled":"outline",o=e.color||"currentColor";if(t==="outline")return{variant:t,color:o,glyph:o,contrast:null};let n=e.glyphColor||pn(o),A=eo(n,o);return A!==null&&A<In&&yd(`${n}|${o}`,`glyph ${n} on ${o} is ${A}:1. WCAG 1.4.11 needs at least 3:1 for icons.`),{variant:t,color:o,glyph:n,contrast:A}}var BA="translate(3.6 3.6) scale(0.7)",QA="@media (forced-colors: active){.yi-bg{fill:CanvasText}.yi-glyph{stroke:Canvas;color:Canvas}}",Bt=e=>String(e).replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t]);function EA(e,t={}){let o=et[e]??et.spark,n=t.size??20,{variant:A,color:i,glyph:r}=mn(t),s=t.strokeWidth??(A==="filled"?2.4:1.9),l=`<svg xmlns="http://www.w3.org/2000/svg" ${t.label?`role="img" aria-label="${Bt(t.label)}"`:'aria-hidden="true"'} focusable="false" width="${Bt(n)}" height="${Bt(n)}" viewBox="0 0 24 24" fill="none" stroke-linecap="round" stroke-linejoin="round" data-variant="${A}">`;if(A==="outline")return`${l}<g stroke="${Bt(i)}" stroke-width="${s}">${o}</g></svg>`;let g=t.shape==="circle"?`<circle class="yi-bg" cx="12" cy="12" r="12" fill="${Bt(i)}"/>`:`<rect class="yi-bg" width="24" height="24" rx="6" fill="${Bt(i)}"/>`;return`${l}<style>${QA}</style>${g}<g class="yi-glyph" color="${Bt(r)}" stroke="${Bt(r)}" stroke-width="${s}" transform="${BA}">${o}</g></svg>`}var tt=require("react/jsx-runtime");function he({size:e=20,color:t,strokeWidth:o,label:n,variant:A,glyphColor:i,shape:r,children:s,...a}){let l=!n,g=mn({variant:A,color:t,glyphColor:i,shape:r}),u=g.variant==="filled",d=o??(u?2.6:2.5);return(0,tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:u?void 0:g.color,strokeWidth:u?void 0:d,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":l?"true":void 0,"aria-label":n,role:n?"img":void 0,focusable:"false","data-variant":g.variant,...a,children:u?(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)("style",{children:QA}),r==="circle"?(0,tt.jsx)("circle",{className:"yi-bg",cx:"12",cy:"12",r:"12",fill:g.color}):(0,tt.jsx)("rect",{className:"yi-bg",width:"24",height:"24",rx:"6",fill:g.color}),(0,tt.jsx)("g",{className:"yi-glyph",color:g.glyph,stroke:g.glyph,strokeWidth:d,transform:BA,children:s})]}):s})}x();var ko=require("react/jsx-runtime");function wA(e){return(0,ko.jsxs)(he,{...e,children:[(0,ko.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,ko.jsx)("path",{d:"m20 20-4-4"})]})}x();var So=require("react/jsx-runtime");function xA(e){return(0,So.jsxs)(he,{...e,children:[(0,So.jsx)("path",{d:"M12 19V5"}),(0,So.jsx)("path",{d:"m5 12 7-7 7 7"})]})}x();var vo=require("react/jsx-runtime");function kA(e){return(0,vo.jsxs)(he,{...e,children:[(0,vo.jsx)("path",{d:"M12 5v14"}),(0,vo.jsx)("path",{d:"m5 12 7 7 7-7"})]})}x();var SA=require("react/jsx-runtime");function vA(e){return(0,SA.jsx)(he,{...e,children:(0,SA.jsx)("path",{d:"m15 18-6-6 6-6"})})}x();var DA=require("react/jsx-runtime");function MA(e){return(0,DA.jsx)(he,{...e,children:(0,DA.jsx)("path",{d:"m9 18 6-6-6-6"})})}x();var GA=require("react/jsx-runtime");function NA(e){return(0,GA.jsx)(he,{...e,children:(0,GA.jsx)("path",{d:"M5 12.5 10 17.5 19.5 7"})})}x();var Do=require("react/jsx-runtime");function RA(e){return(0,Do.jsxs)(he,{...e,children:[(0,Do.jsx)("path",{d:"M18 6 6 18"}),(0,Do.jsx)("path",{d:"m6 6 12 12"})]})}x();var f=require("react/jsx-runtime");function h({name:e,...t}){let o=et[e]??et.spark;return(0,f.jsx)(he,{...t,children:(0,f.jsx)("g",{dangerouslySetInnerHTML:{__html:o}})})}var TA=e=>(0,f.jsx)(h,{...e,name:"accessibility"}),FA=e=>(0,f.jsx)(h,{...e,name:"contrast"}),LA=e=>(0,f.jsx)(h,{...e,name:"moon"}),PA=e=>(0,f.jsx)(h,{...e,name:"motion"}),YA=e=>(0,f.jsx)(h,{...e,name:"reading"}),UA=e=>(0,f.jsx)(h,{...e,name:"target"}),HA=e=>(0,f.jsx)(h,{...e,name:"speaker"}),JA=e=>(0,f.jsx)(h,{...e,name:"palette"}),KA=e=>(0,f.jsx)(h,{...e,name:"skip"}),qA=e=>(0,f.jsx)(h,{...e,name:"plus"}),$A=e=>(0,f.jsx)(h,{...e,name:"minus"}),zA=e=>(0,f.jsx)(h,{...e,name:"reset"}),OA=e=>(0,f.jsx)(h,{...e,name:"sort"}),WA=e=>(0,f.jsx)(h,{...e,name:"chevrons"}),VA=e=>(0,f.jsx)(h,{...e,name:"grid"}),_A=e=>(0,f.jsx)(h,{...e,name:"cards"}),XA=e=>(0,f.jsx)(h,{...e,name:"chat"}),jA=e=>(0,f.jsx)(h,{...e,name:"mic"}),ZA=e=>(0,f.jsx)(h,{...e,name:"stop"}),er=e=>(0,f.jsx)(h,{...e,name:"download"}),tr=e=>(0,f.jsx)(h,{...e,name:"copy"}),or=e=>(0,f.jsx)(h,{...e,name:"filter"}),nr=e=>(0,f.jsx)(h,{...e,name:"first"}),Ar=e=>(0,f.jsx)(h,{...e,name:"last"}),rr=e=>(0,f.jsx)(h,{...e,name:"spark"}),ir=e=>(0,f.jsx)(h,{...e,name:"alert"}),sr=e=>(0,f.jsx)(h,{...e,name:"info"}),ar=e=>(0,f.jsx)(h,{...e,name:"form"}),lr=e=>(0,f.jsx)(h,{...e,name:"eye"}),gr=e=>(0,f.jsx)(h,{...e,name:"layout"}),cr=e=>(0,f.jsx)(h,{...e,name:"wand"}),dr=e=>(0,f.jsx)(h,{...e,name:"undo"}),ur=e=>(0,f.jsx)(h,{...e,name:"tools"}),Ir=e=>(0,f.jsx)(h,{...e,name:"plug"}),pr=e=>(0,f.jsx)(h,{...e,name:"home"}),mr=e=>(0,f.jsx)(h,{...e,name:"menu"}),Cr=e=>(0,f.jsx)(h,{...e,name:"book"}),fr=e=>(0,f.jsx)(h,{...e,name:"calendar"}),hr=e=>(0,f.jsx)(h,{...e,name:"clock"}),yr=e=>(0,f.jsx)(h,{...e,name:"person"}),br=e=>(0,f.jsx)(h,{...e,name:"users"}),Br=e=>(0,f.jsx)(h,{...e,name:"globe"}),Qr=e=>(0,f.jsx)(h,{...e,name:"lamp"}),Er=e=>(0,f.jsx)(h,{...e,name:"play"}),wr=e=>(0,f.jsx)(h,{...e,name:"pause"}),xr=e=>(0,f.jsx)(h,{...e,name:"send"}),kr=e=>(0,f.jsx)(h,{...e,name:"share"}),Sr=e=>(0,f.jsx)(h,{...e,name:"gift"}),vr=e=>(0,f.jsx)(h,{...e,name:"image"}),Dr=e=>(0,f.jsx)(h,{...e,name:"file"}),Mr=e=>(0,f.jsx)(h,{...e,name:"external"}),Gr=e=>(0,f.jsx)(h,{...e,name:"arrowUp"}),Nr=e=>(0,f.jsx)(h,{...e,name:"arrowLeft"}),Rr=e=>(0,f.jsx)(h,{...e,name:"arrowRight"}),Tr=e=>(0,f.jsx)(h,{...e,name:"headphones"}),Fr=e=>(0,f.jsx)(h,{...e,name:"music"}),Lr=e=>(0,f.jsx)(h,{...e,name:"pin"}),Pr=e=>(0,f.jsx)(h,{...e,name:"map"}),Yr=e=>(0,f.jsx)(h,{...e,name:"pen"}),Ur=e=>(0,f.jsx)(h,{...e,name:"wallet"}),Hr=e=>(0,f.jsx)(h,{...e,name:"install"}),Jr=e=>(0,f.jsx)(h,{...e,name:"help"}),Kr=e=>(0,f.jsx)(h,{...e,name:"temple"}),qr=e=>(0,f.jsx)(h,{...e,name:"meditate"}),$r=e=>(0,f.jsx)(h,{...e,name:"trophy"}),zr=e=>(0,f.jsx)(h,{...e,name:"bulb"}),Or=e=>(0,f.jsx)(h,{...e,name:"sun"}),Wr=e=>(0,f.jsx)(h,{...e,name:"delete"}),Vr=e=>(0,f.jsx)(h,{...e,name:"robot"}),_r=e=>(0,f.jsx)(h,{...e,name:"heart"}),Xr=e=>(0,f.jsx)(h,{...e,name:"heartFilled"}),jr=e=>(0,f.jsx)(h,{...e,name:"hub"}),Zr=e=>(0,f.jsx)(h,{...e,name:"code"}),ei=e=>(0,f.jsx)(h,{...e,name:"text"}),ti=e=>(0,f.jsx)(h,{...e,name:"bold"}),oi=e=>(0,f.jsx)(h,{...e,name:"italic"}),ni=e=>(0,f.jsx)(h,{...e,name:"underline"}),Ai=e=>(0,f.jsx)(h,{...e,name:"alignLeft"}),ri=e=>(0,f.jsx)(h,{...e,name:"alignCenter"}),ii=e=>(0,f.jsx)(h,{...e,name:"alignRight"}),si=e=>(0,f.jsx)(h,{...e,name:"alignJustify"}),ai=e=>(0,f.jsx)(h,{...e,name:"quote"}),li=e=>(0,f.jsx)(h,{...e,name:"title"}),gi=e=>(0,f.jsx)(h,{...e,name:"font"}),ci=e=>(0,f.jsx)(h,{...e,name:"spellcheck"}),di=e=>(0,f.jsx)(h,{...e,name:"abc"}),ui=e=>(0,f.jsx)(h,{...e,name:"pageBreak"}),Ii=e=>(0,f.jsx)(h,{...e,name:"link"}),pi=e=>(0,f.jsx)(h,{...e,name:"style"}),mi=e=>(0,f.jsx)(h,{...e,name:"lock"}),Ci=e=>(0,f.jsx)(h,{...e,name:"unlock"}),fi=e=>(0,f.jsx)(h,{...e,name:"key"}),hi=e=>(0,f.jsx)(h,{...e,name:"redo"}),yi=e=>(0,f.jsx)(h,{...e,name:"swap"}),bi=e=>(0,f.jsx)(h,{...e,name:"shuffle"}),Bi=e=>(0,f.jsx)(h,{...e,name:"fullscreen"}),Qi=e=>(0,f.jsx)(h,{...e,name:"fullscreenExit"}),Ei=e=>(0,f.jsx)(h,{...e,name:"merge"}),wi=e=>(0,f.jsx)(h,{...e,name:"join"}),xi=e=>(0,f.jsx)(h,{...e,name:"touch"}),ki=e=>(0,f.jsx)(h,{...e,name:"volumeOff"}),Si=e=>(0,f.jsx)(h,{...e,name:"musicOff"}),vi=e=>(0,f.jsx)(h,{...e,name:"musicVideo"}),Di=e=>(0,f.jsx)(h,{...e,name:"movie"}),Mi=e=>(0,f.jsx)(h,{...e,name:"slideshow"}),Gi=e=>(0,f.jsx)(h,{...e,name:"storage"}),Ni=e=>(0,f.jsx)(h,{...e,name:"api"}),Ri=e=>(0,f.jsx)(h,{...e,name:"dataObject"}),Ti=e=>(0,f.jsx)(h,{...e,name:"computer"}),Fi=e=>(0,f.jsx)(h,{...e,name:"phone"}),Li=e=>(0,f.jsx)(h,{...e,name:"cloud"}),Pi=e=>(0,f.jsx)(h,{...e,name:"wifi"}),Yi=e=>(0,f.jsx)(h,{...e,name:"wifiOff"}),Ui=e=>(0,f.jsx)(h,{...e,name:"searchOff"}),Hi=e=>(0,f.jsx)(h,{...e,name:"eyeOff"}),Ji=e=>(0,f.jsx)(h,{...e,name:"bookmark"}),Ki=e=>(0,f.jsx)(h,{...e,name:"school"}),qi=e=>(0,f.jsx)(h,{...e,name:"gavel"}),$i=e=>(0,f.jsx)(h,{...e,name:"architecture"}),zi=e=>(0,f.jsx)(h,{...e,name:"brain"}),Oi=e=>(0,f.jsx)(h,{...e,name:"volunteer"}),Wi=e=>(0,f.jsx)(h,{...e,name:"radio"}),Vi=e=>(0,f.jsx)(h,{...e,name:"radioChecked"}),_i=e=>(0,f.jsx)(h,{...e,name:"upload"}),Xi=e=>(0,f.jsx)(h,{...e,name:"arrowDown"}),ji=e=>(0,f.jsx)(h,{...e,name:"factCheck"}),Zi=e=>(0,f.jsx)(h,{...e,name:"imageSearch"}),es=e=>(0,f.jsx)(h,{...e,name:"documentScanner"}),ts=e=>(0,f.jsx)(h,{...e,name:"dashboard"}),os=e=>(0,f.jsx)(h,{...e,name:"cleaning"}),ns=e=>(0,f.jsx)(h,{...e,name:"dragHandle"}),As=e=>(0,f.jsx)(h,{...e,name:"zoomIn"}),rs=e=>(0,f.jsx)(h,{...e,name:"zoomOut"}),is=e=>(0,f.jsx)(h,{...e,name:"insights"}),ss=e=>(0,f.jsx)(h,{...e,name:"explore"}),as=e=>(0,f.jsx)(h,{...e,name:"save"}),ls=e=>(0,f.jsx)(h,{...e,name:"label"}),gs=e=>(0,f.jsx)(h,{...e,name:"keyboard"}),cs=e=>(0,f.jsx)(h,{...e,name:"trendingUp"}),ds=e=>(0,f.jsx)(h,{...e,name:"trendingDown"}),us=e=>(0,f.jsx)(h,{...e,name:"cake"}),Is=e=>(0,f.jsx)(h,{...e,name:"barChart"}),ps=e=>(0,f.jsx)(h,{...e,name:"admin"}),ms=e=>(0,f.jsx)(h,{...e,name:"bugReport"}),Cs=e=>(0,f.jsx)(h,{...e,name:"sentimentSad"}),fs=e=>(0,f.jsx)(h,{...e,name:"integration"}),hs=e=>(0,f.jsx)(h,{...e,name:"namaskar"}),ys=e=>(0,f.jsx)(h,{...e,name:"sunrise"}),bs=e=>(0,f.jsx)(h,{...e,name:"sunset"}),Bs=e=>(0,f.jsx)(h,{...e,name:"login"}),Qs=e=>(0,f.jsx)(h,{...e,name:"logout"}),Es=e=>(0,f.jsx)(h,{...e,name:"speed"}),ws=e=>(0,f.jsx)(h,{...e,name:"repeat"}),xs=e=>(0,f.jsx)(h,{...e,name:"loader"}),ks=e=>(0,f.jsx)(h,{...e,name:"star"}),Ss=e=>(0,f.jsx)(h,{...e,name:"shieldCheck"});x();function bd(){if(typeof globalThis>"u")return new ft;if(!globalThis.__yuktai_runtime__){let e=new ft;e.register(ke.name,ke),e.register(Qo.name,Qo),e.register(Eo.name,Eo),globalThis.__yuktai_runtime__=e}return globalThis.__yuktai_runtime__}var ql=typeof window<"u"?bd():new ft,Bd={wcagPlugin:ke,list(){return ql.getPlugins()},use(e){return ql.use(e)},fix(e){return ke.applyFixes({enabled:!0,autoFix:!0,...e})},scan(){return ke.scan()}};