ape-accessibility 0.5.0 → 0.6.0
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/auto.cjs +5 -5
- package/dist/auto.global.js +10 -10
- package/dist/auto.js +5 -5
- package/dist/index.cjs +5 -5
- package/dist/index.global.js +10 -10
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";var Xt=Object.create;var de=Object.defineProperty;var Kt=Object.getOwnPropertyDescriptor;var Yt=Object.getOwnPropertyNames;var qt=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty;var Qt=(e,t)=>{for(var n in t)de(e,n,{get:t[n],enumerable:!0})},Ze=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Yt(t))!Jt.call(e,s)&&s!==n&&de(e,s,{get:()=>t[s],enumerable:!(o=Kt(t,s))||o.enumerable});return e};var je=(e,t,n)=>(n=e!=null?Xt(qt(e)):{},Ze(t||!e||!e.__esModule?de(n,"default",{value:e,enumerable:!0}):n,e)),ei=e=>Ze(de({},"__esModule",{value:!0}),e);var Fi={};Qt(Fi,{AccessibilityWidget:()=>Ut,accessibility:()=>le,configure:()=>Ge,destroy:()=>Be,getConfig:()=>ke,getSettings:()=>Ve,init:()=>De,resetAllSettings:()=>$e});module.exports=ei(Fi);var $t=require("react-dom/client");var Me=require("react");var Xe=je(require("react"),1);var Ue=je(require("clsx"),1);function E(...e){return(0,Ue.default)(e)}var H=require("react/jsx-runtime"),Ne=Xe.default.forwardRef(({children:e,className:t,size:n="lg",leftIcon:o,rightIcon:s,disabled:r,...a},c)=>{let l=!!e,L=!l&&!!o!==!!s,w=n==="sm"?"text-sm px-3 py-2":"text-lg px-5 py-3",S=L?E("rounded-full",n==="sm"?"w-[40px] h-[40px] p-0":"w-[60px] h-[60px] p-0"):"rounded-[30px] py-2 px-5";return(0,H.jsxs)("button",{ref:c,className:E("group cursor-pointer inline-flex items-center justify-center transition-all ease-in-out duration-200 relative overflow-hidden","apea-gradient text-white bg-blue-500 hover:ring-2 hover:ring-yellow-500 hover:font-semibold",w,S,r?"opacity-50 cursor-not-allowed":"active:scale-90",t),disabled:r,...a,children:[o&&(0,H.jsx)("span",{className:E(l&&"mr-2"),children:o}),l&&(0,H.jsxs)("span",{className:"relative inline-flex items-center whitespace-nowrap",children:[(0,H.jsx)("span",{className:"invisible font-bold","aria-hidden":"true",children:e}),(0,H.jsx)("span",{className:"absolute inset-0 transition-all duration-200",children:e})]}),s&&(0,H.jsx)("span",{className:E(l&&"ml-2"),children:s})]})});Ne.displayName="Button";var Q=require("react/jsx-runtime");function Ke({size:e=24,color:t="currentColor",className:n,...o}){return(0,Q.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 26 30",fill:t,className:n,"aria-hidden":"true",focusable:"false",...o,children:[(0,Q.jsx)("mask",{id:"path-1-inside-1_2435_12083",fill:"white",children:(0,Q.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4917 0.0390191C10.9891 0.276653 9.83951 1.43644 9.61036 2.94578C9.45194 3.98907 9.82094 5.09148 10.5813 5.84664C11.935 7.19114 14.0664 7.19114 15.4201 5.84664C16.7606 4.51534 16.7599 2.35948 15.4184 1.00802C14.6598 0.24369 13.5405 -0.126872 12.4917 0.0390191ZM12.706 1.73821C12.3594 1.80312 12.0529 1.96654 11.7962 2.22334C11.5927 2.42688 11.4709 2.62091 11.3736 2.8966L11.3042 3.09318V3.42818V3.76317L11.3736 3.95975C11.4709 4.23544 11.5927 4.42947 11.7962 4.63302C11.9997 4.83659 12.1937 4.95842 12.4693 5.05578L12.6658 5.12519H13.0007H13.3356L13.5321 5.05578C13.8077 4.95842 14.0017 4.83659 14.2052 4.63302C14.4087 4.42947 14.5305 4.23544 14.6278 3.95975L14.6972 3.76317V3.42818V3.09318L14.6278 2.8966C14.5305 2.62091 14.4087 2.42688 14.2052 2.22334C13.8866 1.90463 13.5251 1.74475 13.0811 1.72625C12.9411 1.72041 12.7723 1.7258 12.706 1.73821ZM2.25726 6.41702C2.03505 6.46277 1.77857 6.56493 1.57407 6.68923C0.660849 7.24423 0.26669 8.37245 0.639978 9.36291C0.842577 9.90052 1.26101 10.3605 1.76161 10.5958C1.86476 10.6442 3.47127 11.225 5.3316 11.8863L8.71405 13.0887V15.9233V18.7579L7.62872 23.1003C7.0318 25.4885 6.53337 27.5356 6.5211 27.6494C6.40938 28.6853 7.0643 29.6429 8.08672 29.9387L8.29878 30L8.64707 29.998C9.06199 29.9955 9.23847 29.9553 9.5888 29.7832C10.0024 29.58 10.368 29.2187 10.5625 28.821C10.6057 28.7326 11.169 27.0715 11.8142 25.1297C12.4594 23.188 12.9933 21.5993 13.0007 21.5993C13.0081 21.5993 13.542 23.188 14.1872 25.1297C14.8324 27.0715 15.3957 28.7326 15.439 28.821C15.6334 29.2187 15.999 29.58 16.4126 29.7832C16.763 29.9553 16.9394 29.9955 17.3544 29.998L17.7026 30L17.9147 29.9387C18.9371 29.6429 19.5921 28.6853 19.4803 27.6494C19.4681 27.5356 18.9696 25.4885 18.3727 23.1003L17.2874 18.7579V15.9233V13.0887L20.6698 11.8863C22.5302 11.225 24.1367 10.6442 24.2398 10.5958C25.1725 10.1573 25.6811 9.08532 25.4407 8.06454C25.3872 7.83741 25.2031 7.44981 25.0524 7.24699C24.8326 6.95136 24.4552 6.66642 24.0925 6.5224C23.7068 6.36927 23.1663 6.33116 22.7663 6.4289C22.6484 6.45768 21.1414 6.95206 19.4174 7.5275L16.283 8.57374H13.0007H9.71847L6.58398 7.5275C4.86001 6.95206 3.35304 6.45768 3.23515 6.4289L3.02082 6.37653L2.72611 6.37886C2.56402 6.38015 2.35304 6.39733 2.25726 6.41702ZM2.50479 8.13564C2.30015 8.23654 2.17455 8.4846 2.2258 8.68659C2.25602 8.80572 2.34248 8.94165 2.42955 9.00696C2.46227 9.03151 4.27547 9.68767 6.45889 10.4651L10.4287 11.8786V15.4254V18.9723L9.33026 23.3672C8.7261 25.7844 8.2318 27.8136 8.2318 27.8766C8.2318 28.0357 8.30837 28.1644 8.44648 28.2374C8.63659 28.338 8.82523 28.3031 8.96045 28.1424L9.03019 28.0595L10.6277 23.2679L12.2253 18.4763L12.3139 18.3555C12.4162 18.2158 12.5635 18.1109 12.7427 18.05C13.0769 17.9365 13.4748 18.0652 13.6876 18.3555L13.7761 18.4763L15.3737 23.2679L16.9712 28.0595L17.041 28.1424C17.1762 28.3031 17.3648 28.338 17.5549 28.2374C17.6931 28.1644 17.7696 28.0357 17.7696 27.8766C17.7696 27.8136 17.2753 25.7844 16.6712 23.3672L15.5727 18.9723V15.4254V11.8785L19.5518 10.4618L23.531 9.04509L23.6127 8.96515C23.732 8.84849 23.781 8.73869 23.7817 8.58604C23.7826 8.42537 23.7211 8.30671 23.5763 8.18967L23.4754 8.10809L23.3218 8.09826L23.1681 8.08842L19.8729 9.18869L16.5776 10.2889H13.0007H9.42379L6.12865 9.19013L2.83352 8.09134L2.71285 8.09196C2.64646 8.09228 2.55285 8.11195 2.50479 8.13564Z"})}),(0,Q.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4917 0.0390191C10.9891 0.276653 9.83951 1.43644 9.61036 2.94578C9.45194 3.98907 9.82094 5.09148 10.5813 5.84664C11.935 7.19114 14.0664 7.19114 15.4201 5.84664C16.7606 4.51534 16.7599 2.35948 15.4184 1.00802C14.6598 0.24369 13.5405 -0.126872 12.4917 0.0390191ZM12.706 1.73821C12.3594 1.80312 12.0529 1.96654 11.7962 2.22334C11.5927 2.42688 11.4709 2.62091 11.3736 2.8966L11.3042 3.09318V3.42818V3.76317L11.3736 3.95975C11.4709 4.23544 11.5927 4.42947 11.7962 4.63302C11.9997 4.83659 12.1937 4.95842 12.4693 5.05578L12.6658 5.12519H13.0007H13.3356L13.5321 5.05578C13.8077 4.95842 14.0017 4.83659 14.2052 4.63302C14.4087 4.42947 14.5305 4.23544 14.6278 3.95975L14.6972 3.76317V3.42818V3.09318L14.6278 2.8966C14.5305 2.62091 14.4087 2.42688 14.2052 2.22334C13.8866 1.90463 13.5251 1.74475 13.0811 1.72625C12.9411 1.72041 12.7723 1.7258 12.706 1.73821ZM2.25726 6.41702C2.03505 6.46277 1.77857 6.56493 1.57407 6.68923C0.660849 7.24423 0.26669 8.37245 0.639978 9.36291C0.842577 9.90052 1.26101 10.3605 1.76161 10.5958C1.86476 10.6442 3.47127 11.225 5.3316 11.8863L8.71405 13.0887V15.9233V18.7579L7.62872 23.1003C7.0318 25.4885 6.53337 27.5356 6.5211 27.6494C6.40938 28.6853 7.0643 29.6429 8.08672 29.9387L8.29878 30L8.64707 29.998C9.06199 29.9955 9.23847 29.9553 9.5888 29.7832C10.0024 29.58 10.368 29.2187 10.5625 28.821C10.6057 28.7326 11.169 27.0715 11.8142 25.1297C12.4594 23.188 12.9933 21.5993 13.0007 21.5993C13.0081 21.5993 13.542 23.188 14.1872 25.1297C14.8324 27.0715 15.3957 28.7326 15.439 28.821C15.6334 29.2187 15.999 29.58 16.4126 29.7832C16.763 29.9553 16.9394 29.9955 17.3544 29.998L17.7026 30L17.9147 29.9387C18.9371 29.6429 19.5921 28.6853 19.4803 27.6494C19.4681 27.5356 18.9696 25.4885 18.3727 23.1003L17.2874 18.7579V15.9233V13.0887L20.6698 11.8863C22.5302 11.225 24.1367 10.6442 24.2398 10.5958C25.1725 10.1573 25.6811 9.08532 25.4407 8.06454C25.3872 7.83741 25.2031 7.44981 25.0524 7.24699C24.8326 6.95136 24.4552 6.66642 24.0925 6.5224C23.7068 6.36927 23.1663 6.33116 22.7663 6.4289C22.6484 6.45768 21.1414 6.95206 19.4174 7.5275L16.283 8.57374H13.0007H9.71847L6.58398 7.5275C4.86001 6.95206 3.35304 6.45768 3.23515 6.4289L3.02082 6.37653L2.72611 6.37886C2.56402 6.38015 2.35304 6.39733 2.25726 6.41702ZM2.50479 8.13564C2.30015 8.23654 2.17455 8.4846 2.2258 8.68659C2.25602 8.80572 2.34248 8.94165 2.42955 9.00696C2.46227 9.03151 4.27547 9.68767 6.45889 10.4651L10.4287 11.8786V15.4254V18.9723L9.33026 23.3672C8.7261 25.7844 8.2318 27.8136 8.2318 27.8766C8.2318 28.0357 8.30837 28.1644 8.44648 28.2374C8.63659 28.338 8.82523 28.3031 8.96045 28.1424L9.03019 28.0595L10.6277 23.2679L12.2253 18.4763L12.3139 18.3555C12.4162 18.2158 12.5635 18.1109 12.7427 18.05C13.0769 17.9365 13.4748 18.0652 13.6876 18.3555L13.7761 18.4763L15.3737 23.2679L16.9712 28.0595L17.041 28.1424C17.1762 28.3031 17.3648 28.338 17.5549 28.2374C17.6931 28.1644 17.7696 28.0357 17.7696 27.8766C17.7696 27.8136 17.2753 25.7844 16.6712 23.3672L15.5727 18.9723V15.4254V11.8785L19.5518 10.4618L23.531 9.04509L23.6127 8.96515C23.732 8.84849 23.781 8.73869 23.7817 8.58604C23.7826 8.42537 23.7211 8.30671 23.5763 8.18967L23.4754 8.10809L23.3218 8.09826L23.1681 8.08842L19.8729 9.18869L16.5776 10.2889H13.0007H9.42379L6.12865 9.19013L2.83352 8.09134L2.71285 8.09196C2.64646 8.09228 2.55285 8.11195 2.50479 8.13564Z",strokeWidth:"0.354242",mask:"url(#path-1-inside-1_2435_12083)"})]})}var v=require("react");var Ye=["p","span","div","h1","h2","h3","h4","h5","h6","a","li","td","th","label","input","textarea","select","button","blockquote","pre","code"],ti={normal:null,high:{styles:{filter:"contrast(125%)"}},dark:{styles:{color:"#FFF",fill:"#FFF","background-color":"#000"},childrenSelector:Ye},light:{styles:{color:"#000",fill:"#000","background-color":"#FFF"},childrenSelector:Ye}};function ii(e){let{styles:t,selector:n,childrenSelector:o}=e,s="";if(t){let a=Object.keys(t).map(c=>`${c}: ${t[c]} !important;`).join(" ");s+=`${n} { ${a} }`,o&&o.forEach(c=>{s+=`${n} ${c} { ${a} }`})}return s}function ni({css:e,id:t}){let n=document.getElementById(t);n&&n.remove();let o=document.createElement("style");o.id=t,o.textContent=e,document.head.appendChild(o)}function ue(e){let t=ti[e],n="ape-accessibility-contrast",o="ape-contrast-active";if(!t){let r=document.getElementById(n);r&&r.remove(),document.documentElement.classList.remove(o);return}let s=ii({...t,selector:`html.${o}`});ni({css:s,id:n}),document.documentElement.classList.add(o)}var Te="ape-accessibility-settings";function qe(e,t,n=30){let o=new Date;o.setTime(o.getTime()+n*24*60*60*1e3),document.cookie=`${e}=${t};expires=${o.toUTCString()};path=/`}function oi(e){let t=e+"=",n=document.cookie.split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s?.charAt(0)===" ";)s=s?.substring(1,s?.length);if(s?.indexOf(t)===0)return s.substring(t.length,s.length)}return null}function si(e,t){let n=JSON.stringify(t);try{localStorage.setItem(e,n)}catch(o){console.error("Error saving storage data:",o),qe(e,n)}}function ri(e){let t=null;try{t=localStorage.getItem(e)}catch(n){console.error("Error getting storage data:",n),t=oi(e)}if(!t)return null;try{return JSON.parse(t)}catch(n){return console.error("Error parsing storage data:",n),null}}function ai(e){try{localStorage.removeItem(e)}catch(t){qe(e,"",-1),console.error("Error clearing storage data:",t)}}var Re=class{getSettings(){return ri(Te)}saveSettings(t){let n={...t,updatedAt:new Date};si(Te,n)}clearSettings(){ai(Te)}},ge=new Re;var x={fontSize:100,contrast:"normal",language:"es",colorblindMode:"normal",saturationMode:"normal",dyslexiaFont:!1,letterSpacing:0,lineHeight:0,fontWeight:!1,highlightMode:"none",readingGuide:!1,stopAnimations:!1,bigCursor:!1,hideImages:!1,textAlign:"default",ttsActive:!1},y={...x};function ci(){let e=ge.getSettings();return e&&(y={...x,...e}),y}function d(){return{...y}}function Pe(e){return y={...y,...e,updatedAt:new Date},ge.saveSettings(y),Je("update",y),y}function ee(){return y={...x},ge.saveSettings(y),Je("reset",y),y}function u(e,t){return Pe({[e]:t})}function Je(e,t){let n=new CustomEvent("accessibilitySettingsChanged",{detail:{type:e,settings:t,timestamp:new Date}});window.dispatchEvent(n)}function Qe(e=y){return e.fontSize!==x.fontSize||e.contrast!==x.contrast||e.colorblindMode!==x.colorblindMode||e.saturationMode!==x.saturationMode||e.dyslexiaFont===!0||(e.letterSpacing??0)>0||(e.lineHeight??0)>0||e.fontWeight===!0||e.highlightMode!==x.highlightMode||e.readingGuide===!0||e.stopAnimations===!0||e.bigCursor===!0||e.hideImages===!0||e.textAlign!==x.textAlign||e.ttsActive===!0}typeof window<"u"&&ci();function et(){let[e,t]=(0,v.useState)(()=>d().contrast||"normal");(0,v.useEffect)(()=>{ue(e)},[]),(0,v.useEffect)(()=>{let g=L=>{let{settings:w}=L.detail,S=w.contrast||"normal";S!==e&&(t(S),ue(S))};return window.addEventListener("accessibilitySettingsChanged",g),()=>{window.removeEventListener("accessibilitySettingsChanged",g)}},[e]);let n=(0,v.useCallback)(g=>{t(g),ue(g),u("contrast",g),window.dispatchEvent(new CustomEvent("accessibilityContrastChanged",{detail:{mode:g,isActive:g!=="normal"}}))},[]),o=(0,v.useCallback)(()=>{n(e==="normal"?"high":"normal")},[e,n]),s=(0,v.useCallback)(g=>{n(g)},[n]),r=(0,v.useCallback)(()=>{n(e==="high"?"normal":"high")},[e,n]),a=(0,v.useCallback)(()=>{n(e==="dark"?"normal":"dark")},[e,n]),c=(0,v.useCallback)(()=>{n(e==="light"?"normal":"light")},[e,n]),l=(0,v.useCallback)(()=>{switch(e){case"high":return"Alto contraste";case"dark":return"Contraste oscuro";case"light":return"Contraste claro";default:return"Normal"}},[e]);return{contrastMode:e,isActive:e!=="normal",getContrastDescription:l,setContrastMode:s,updateContrast:n,toggleContrast:o,toggleHighContrast:r,toggleDarkContrast:a,toggleLightContrast:c,isHighContrast:e==="high",isDarkContrast:e==="dark",isLightContrast:e==="light"}}var b=require("react");var tt=['i[class*="icon"]','i[class*="fa-"]',".icon",".fa",".material-icons","[data-icon]","svg"],li="h1,h2,h3,h4,h5,h6,p,a,dl,dt,li,ol,th,td,span,blockquote,.asw-text",it={};tt.forEach(e=>{it[e]=!0});function di(e=1){document.querySelectorAll(li).forEach(t=>{let n=t;if(Array.prototype.slice.call(n.classList).some(a=>it[`.${a}`])||tt.some(a=>n.matches(a)))return;let s=Number(n.dataset.apeOrgFontSize)||parseInt(window.getComputedStyle(n).fontSize);n.dataset.apeOrgFontSize||(n.dataset.apeOrgFontSize=String(s));let r=s*e;n.style.fontSize=`${r}px`})}function ui(){document.querySelectorAll("[data-ape-org-font-size]").forEach(e=>{let t=e,n=t.dataset.apeOrgFontSize;n&&(t.style.fontSize=`${n}px`,delete t.dataset.apeOrgFontSize)})}function gi(e){return e/100}function pe(e){let t=gi(e);e===100?ui():di(t)}function nt(){let[s,r]=(0,b.useState)(()=>d().fontSize||100),[a,c]=(0,b.useState)(!1);(0,b.useEffect)(()=>{pe(s)},[]),(0,b.useEffect)(()=>{let p=B=>{let{settings:C}=B.detail,J=C.fontSize||100;J!==s&&(r(J),pe(J))};return window.addEventListener("accessibilitySettingsChanged",p),()=>{window.removeEventListener("accessibilitySettingsChanged",p)}},[s]);let l=(0,b.useCallback)(p=>{r(p),pe(p),u("fontSize",p),window.dispatchEvent(new CustomEvent("accessibilityTextSizeChanged",{detail:{percentage:p,isActive:p!==100}}))},[]),m=(0,b.useCallback)(()=>{let p=Math.min(s+5,120);p!==s&&l(p)},[s,l]),g=(0,b.useCallback)(()=>{let p=Math.max(s-5,90);p!==s&&l(p)},[s,l]),L=(0,b.useCallback)(()=>{l(100)},[l]),w=(0,b.useCallback)(p=>{p>=90&&p<=120&&l(p)},[l]),S=(0,b.useCallback)(()=>{c(!a)},[a]),P=(0,b.useCallback)(()=>s===100?"Normal":s<100?`Reducido ${s}%`:`Aumentado ${s}%`,[s]),q=s<120,_=s>90;return{textSizePercentage:s,increaseTextSize:m,decreaseTextSize:g,resetTextSize:L,canIncrease:q,canDecrease:_,getTextSizeDescription:P,isActive:s!==100,toggleTextSizeOptions:S,setSpecificTextSize:w,isOptionsOpen:a,setIsOptionsOpen:c,MIN_SIZE:90,MAX_SIZE:120,NORMAL_SIZE:100,INCREMENT:5}}var M=require("react");function ot(){let[e,t]=(0,M.useState)(()=>d().language||"es");(0,M.useEffect)(()=>{let a=c=>{let{settings:l}=c.detail,m=l.language||"es";m!==e&&t(m)};return window.addEventListener("accessibilitySettingsChanged",a),()=>{window.removeEventListener("accessibilitySettingsChanged",a)}},[e]);let n=(0,M.useCallback)(a=>{t(a),u("language",a),window.dispatchEvent(new CustomEvent("accessibilityLanguageChanged",{detail:{mode:a,isActive:a!=="es"}}))},[]),o=(0,M.useCallback)(()=>{n(e==="es"?"en":"es")},[e,n]),s=(0,M.useCallback)(a=>{n(a)},[n]),r=(0,M.useCallback)(()=>e==="en"?"English":"Espa\xF1ol",[e]);return{languageMode:e,isActive:e!=="es",toggleLanguage:o,setSpecificLanguage:s,getLanguageDescription:r,updateLanguage:n,isEnglish:e==="en",isSpanish:e==="es"}}var V=require("react");function fe(e){let t=document.documentElement;e==="normal"?t.removeAttribute("data-colorblind-mode"):t.setAttribute("data-colorblind-mode",e)}function st(){let[e,t]=(0,V.useState)(()=>d().colorblindMode??"normal");(0,V.useEffect)(()=>{fe(e)},[]),(0,V.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.colorblindMode??"normal";a!==e&&(t(a),fe(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,V.useCallback)(o=>{t(o),fe(o),u("colorblindMode",o),window.dispatchEvent(new CustomEvent("accessibilityColorblindChanged",{detail:{mode:o}}))},[]);return{colorblindMode:e,setColorblindMode:n,isActive:e!=="normal"}}var G=require("react");var rt={normal:null,high:"accessibility-saturation-high",low:"accessibility-saturation-low",mono:"accessibility-saturation-mono"},pi=Object.values(rt).filter(Boolean);function me(e){let t=document.documentElement;pi.forEach(o=>t.classList.remove(o));let n=rt[e];n&&t.classList.add(n)}function at(){let[e,t]=(0,G.useState)(()=>d().saturationMode??"normal");(0,G.useEffect)(()=>{me(e)},[]),(0,G.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.saturationMode??"normal";a!==e&&(t(a),me(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,G.useCallback)(o=>{t(o),me(o),u("saturationMode",o),window.dispatchEvent(new CustomEvent("accessibilitySaturationChanged",{detail:{mode:o}}))},[]);return{saturationMode:e,setSaturationMode:n,isActive:e!=="normal"}}var $=require("react");var ct="accessibility-dyslexia";function he(e){let t=document.documentElement;e?t.classList.add(ct):t.classList.remove(ct)}function lt(){let[e,t]=(0,$.useState)(()=>d().dyslexiaFont??!1);(0,$.useEffect)(()=>{he(e)},[]),(0,$.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.dyslexiaFont??!1;a!==e&&(t(a),he(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,$.useCallback)(()=>{let o=!e;t(o),he(o),u("dyslexiaFont",o),window.dispatchEvent(new CustomEvent("accessibilityDyslexiaChanged",{detail:{isActive:o}}))},[e]);return{isActive:e,toggle:n}}var k=require("react");var dt="accessibility-letter-spacing",ut="accessibility-line-height",gt="accessibility-font-weight";function te(e){let t=document.documentElement;t.style.setProperty("--accessibility-letter-spacing",String(e)),e>0?t.classList.add(dt):t.classList.remove(dt)}function ie(e){let t=document.documentElement;t.style.setProperty("--accessibility-line-height",String(e)),e>0?t.classList.add(ut):t.classList.remove(ut)}function be(e){let t=document.documentElement;e?t.classList.add(gt):t.classList.remove(gt)}var pt=3;function ft(){let[e,t]=(0,k.useState)(()=>d().letterSpacing??0);(0,k.useEffect)(()=>{te(e)},[]),(0,k.useEffect)(()=>{let r=a=>{let{settings:c}=a.detail,l=c.letterSpacing??0;l!==e&&(t(l),te(l))};return window.addEventListener("accessibilitySettingsChanged",r),()=>window.removeEventListener("accessibilitySettingsChanged",r)},[e]);let n=(0,k.useCallback)(()=>{let r=Math.min(e+1,pt);t(r),te(r),u("letterSpacing",r)},[e]),o=(0,k.useCallback)(()=>{let r=Math.max(e-1,0);t(r),te(r),u("letterSpacing",r)},[e]),s=(0,k.useCallback)(()=>{t(0),te(0),u("letterSpacing",0)},[]);return{level:e,increase:n,decrease:o,reset:s,isActive:e>0,canIncrease:e<pt,canDecrease:e>0}}var I=require("react");var mt=3;function ht(){let[e,t]=(0,I.useState)(()=>d().lineHeight??0);(0,I.useEffect)(()=>{ie(e)},[]),(0,I.useEffect)(()=>{let r=a=>{let{settings:c}=a.detail,l=c.lineHeight??0;l!==e&&(t(l),ie(l))};return window.addEventListener("accessibilitySettingsChanged",r),()=>window.removeEventListener("accessibilitySettingsChanged",r)},[e]);let n=(0,I.useCallback)(()=>{let r=Math.min(e+1,mt);t(r),ie(r),u("lineHeight",r)},[e]),o=(0,I.useCallback)(()=>{let r=Math.max(e-1,0);t(r),ie(r),u("lineHeight",r)},[e]),s=(0,I.useCallback)(()=>{t(0),ie(0),u("lineHeight",0)},[]);return{level:e,increase:n,decrease:o,reset:s,isActive:e>0,canIncrease:e<mt,canDecrease:e>0}}var Z=require("react");function bt(){let[e,t]=(0,Z.useState)(()=>d().fontWeight??!1);(0,Z.useEffect)(()=>{be(e)},[]),(0,Z.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.fontWeight??!1;a!==e&&(t(a),be(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,Z.useCallback)(()=>{let o=!e;t(o),be(o),u("fontWeight",o)},[e]);return{isBold:e,toggle:n,isActive:e}}var N=require("react");function ye(e){let t=document.documentElement;e==="none"?t.removeAttribute("data-highlight"):t.setAttribute("data-highlight",e)}function yt(){let[e,t]=(0,N.useState)(()=>d().highlightMode??"none");(0,N.useEffect)(()=>{ye(e)},[]),(0,N.useEffect)(()=>{let r=a=>{let{settings:c}=a.detail,l=c.highlightMode??"none";l!==e&&(t(l),ye(l))};return window.addEventListener("accessibilitySettingsChanged",r),()=>window.removeEventListener("accessibilitySettingsChanged",r)},[e]);let n=(0,N.useCallback)(r=>{t(r),ye(r),u("highlightMode",r)},[]),o=(0,N.useCallback)(()=>{n(e==="titles"?"none":e==="links"?"both":e==="both"?"links":"titles")},[e,n]),s=(0,N.useCallback)(()=>{n(e==="links"?"none":e==="titles"?"both":e==="both"?"titles":"links")},[e,n]);return{highlightMode:e,setHighlightMode:n,toggleTitles:o,toggleLinks:s,isTitlesActive:e==="titles"||e==="both",isLinksActive:e==="links"||e==="both",isActive:e!=="none"}}var j=require("react");var vt="accessibility-stop-animations",St="accessibility-big-cursor";function ve(e){e?fi():mi()}function Se(e){let t=document.documentElement;e?t.classList.add(vt):t.classList.remove(vt)}function Ce(e){let t=document.documentElement;e?t.classList.add(St):t.classList.remove(St)}var Ct=`
|
|
1
|
+
"use strict";var gi=Object.create;var ve=Object.defineProperty;var fi=Object.getOwnPropertyDescriptor;var pi=Object.getOwnPropertyNames;var mi=Object.getPrototypeOf,hi=Object.prototype.hasOwnProperty;var bi=(e,t)=>{for(var n in t)ve(e,n,{get:t[n],enumerable:!0})},at=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of pi(t))!hi.call(e,s)&&s!==n&&ve(e,s,{get:()=>t[s],enumerable:!(o=fi(t,s))||o.enumerable});return e};var ct=(e,t,n)=>(n=e!=null?gi(mi(e)):{},at(t||!e||!e.__esModule?ve(n,"default",{value:e,enumerable:!0}):n,e)),vi=e=>at(ve({},"__esModule",{value:!0}),e);var dn={};bi(dn,{AccessibilityWidget:()=>di,accessibility:()=>be,configure:()=>et,destroy:()=>Je,getConfig:()=>We,getSettings:()=>Qe,init:()=>qe,resetAllSettings:()=>tt});module.exports=vi(dn);var ai=require("react-dom/client");var _e=require("react");var dt=ct(require("react"),1);var lt=ct(require("clsx"),1);function V(...e){return(0,lt.default)(e)}var G=require("react/jsx-runtime"),De=dt.default.forwardRef(({children:e,className:t,size:n="lg",leftIcon:o,rightIcon:s,disabled:r,...a},l)=>{let c=!!e,b=!c&&!!o!==!!s,v=n==="sm"?"text-sm px-3 py-2":"text-lg px-5 py-3",x=b?V("rounded-full",n==="sm"?"w-[40px] h-[40px] p-0":"w-[60px] h-[60px] p-0"):"rounded-[30px] py-2 px-5";return(0,G.jsxs)("button",{ref:l,className:V("group cursor-pointer inline-flex items-center justify-center transition-all ease-in-out duration-200 relative overflow-hidden","apea-gradient text-white bg-blue-500 hover:ring-2 hover:ring-yellow-500 hover:font-semibold",v,x,r?"opacity-50 cursor-not-allowed":"active:scale-90",t),disabled:r,...a,children:[o&&(0,G.jsx)("span",{className:V(c&&"mr-2"),children:o}),c&&(0,G.jsxs)("span",{className:"relative inline-flex items-center whitespace-nowrap",children:[(0,G.jsx)("span",{className:"invisible font-bold","aria-hidden":"true",children:e}),(0,G.jsx)("span",{className:"absolute inset-0 transition-all duration-200",children:e})]}),s&&(0,G.jsx)("span",{className:V(c&&"ml-2"),children:s})]})});De.displayName="Button";var re=require("react/jsx-runtime");function ut({size:e=24,color:t="currentColor",className:n,...o}){return(0,re.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 26 30",fill:t,className:n,"aria-hidden":"true",focusable:"false",...o,children:[(0,re.jsx)("mask",{id:"path-1-inside-1_2435_12083",fill:"white",children:(0,re.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4917 0.0390191C10.9891 0.276653 9.83951 1.43644 9.61036 2.94578C9.45194 3.98907 9.82094 5.09148 10.5813 5.84664C11.935 7.19114 14.0664 7.19114 15.4201 5.84664C16.7606 4.51534 16.7599 2.35948 15.4184 1.00802C14.6598 0.24369 13.5405 -0.126872 12.4917 0.0390191ZM12.706 1.73821C12.3594 1.80312 12.0529 1.96654 11.7962 2.22334C11.5927 2.42688 11.4709 2.62091 11.3736 2.8966L11.3042 3.09318V3.42818V3.76317L11.3736 3.95975C11.4709 4.23544 11.5927 4.42947 11.7962 4.63302C11.9997 4.83659 12.1937 4.95842 12.4693 5.05578L12.6658 5.12519H13.0007H13.3356L13.5321 5.05578C13.8077 4.95842 14.0017 4.83659 14.2052 4.63302C14.4087 4.42947 14.5305 4.23544 14.6278 3.95975L14.6972 3.76317V3.42818V3.09318L14.6278 2.8966C14.5305 2.62091 14.4087 2.42688 14.2052 2.22334C13.8866 1.90463 13.5251 1.74475 13.0811 1.72625C12.9411 1.72041 12.7723 1.7258 12.706 1.73821ZM2.25726 6.41702C2.03505 6.46277 1.77857 6.56493 1.57407 6.68923C0.660849 7.24423 0.26669 8.37245 0.639978 9.36291C0.842577 9.90052 1.26101 10.3605 1.76161 10.5958C1.86476 10.6442 3.47127 11.225 5.3316 11.8863L8.71405 13.0887V15.9233V18.7579L7.62872 23.1003C7.0318 25.4885 6.53337 27.5356 6.5211 27.6494C6.40938 28.6853 7.0643 29.6429 8.08672 29.9387L8.29878 30L8.64707 29.998C9.06199 29.9955 9.23847 29.9553 9.5888 29.7832C10.0024 29.58 10.368 29.2187 10.5625 28.821C10.6057 28.7326 11.169 27.0715 11.8142 25.1297C12.4594 23.188 12.9933 21.5993 13.0007 21.5993C13.0081 21.5993 13.542 23.188 14.1872 25.1297C14.8324 27.0715 15.3957 28.7326 15.439 28.821C15.6334 29.2187 15.999 29.58 16.4126 29.7832C16.763 29.9553 16.9394 29.9955 17.3544 29.998L17.7026 30L17.9147 29.9387C18.9371 29.6429 19.5921 28.6853 19.4803 27.6494C19.4681 27.5356 18.9696 25.4885 18.3727 23.1003L17.2874 18.7579V15.9233V13.0887L20.6698 11.8863C22.5302 11.225 24.1367 10.6442 24.2398 10.5958C25.1725 10.1573 25.6811 9.08532 25.4407 8.06454C25.3872 7.83741 25.2031 7.44981 25.0524 7.24699C24.8326 6.95136 24.4552 6.66642 24.0925 6.5224C23.7068 6.36927 23.1663 6.33116 22.7663 6.4289C22.6484 6.45768 21.1414 6.95206 19.4174 7.5275L16.283 8.57374H13.0007H9.71847L6.58398 7.5275C4.86001 6.95206 3.35304 6.45768 3.23515 6.4289L3.02082 6.37653L2.72611 6.37886C2.56402 6.38015 2.35304 6.39733 2.25726 6.41702ZM2.50479 8.13564C2.30015 8.23654 2.17455 8.4846 2.2258 8.68659C2.25602 8.80572 2.34248 8.94165 2.42955 9.00696C2.46227 9.03151 4.27547 9.68767 6.45889 10.4651L10.4287 11.8786V15.4254V18.9723L9.33026 23.3672C8.7261 25.7844 8.2318 27.8136 8.2318 27.8766C8.2318 28.0357 8.30837 28.1644 8.44648 28.2374C8.63659 28.338 8.82523 28.3031 8.96045 28.1424L9.03019 28.0595L10.6277 23.2679L12.2253 18.4763L12.3139 18.3555C12.4162 18.2158 12.5635 18.1109 12.7427 18.05C13.0769 17.9365 13.4748 18.0652 13.6876 18.3555L13.7761 18.4763L15.3737 23.2679L16.9712 28.0595L17.041 28.1424C17.1762 28.3031 17.3648 28.338 17.5549 28.2374C17.6931 28.1644 17.7696 28.0357 17.7696 27.8766C17.7696 27.8136 17.2753 25.7844 16.6712 23.3672L15.5727 18.9723V15.4254V11.8785L19.5518 10.4618L23.531 9.04509L23.6127 8.96515C23.732 8.84849 23.781 8.73869 23.7817 8.58604C23.7826 8.42537 23.7211 8.30671 23.5763 8.18967L23.4754 8.10809L23.3218 8.09826L23.1681 8.08842L19.8729 9.18869L16.5776 10.2889H13.0007H9.42379L6.12865 9.19013L2.83352 8.09134L2.71285 8.09196C2.64646 8.09228 2.55285 8.11195 2.50479 8.13564Z"})}),(0,re.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4917 0.0390191C10.9891 0.276653 9.83951 1.43644 9.61036 2.94578C9.45194 3.98907 9.82094 5.09148 10.5813 5.84664C11.935 7.19114 14.0664 7.19114 15.4201 5.84664C16.7606 4.51534 16.7599 2.35948 15.4184 1.00802C14.6598 0.24369 13.5405 -0.126872 12.4917 0.0390191ZM12.706 1.73821C12.3594 1.80312 12.0529 1.96654 11.7962 2.22334C11.5927 2.42688 11.4709 2.62091 11.3736 2.8966L11.3042 3.09318V3.42818V3.76317L11.3736 3.95975C11.4709 4.23544 11.5927 4.42947 11.7962 4.63302C11.9997 4.83659 12.1937 4.95842 12.4693 5.05578L12.6658 5.12519H13.0007H13.3356L13.5321 5.05578C13.8077 4.95842 14.0017 4.83659 14.2052 4.63302C14.4087 4.42947 14.5305 4.23544 14.6278 3.95975L14.6972 3.76317V3.42818V3.09318L14.6278 2.8966C14.5305 2.62091 14.4087 2.42688 14.2052 2.22334C13.8866 1.90463 13.5251 1.74475 13.0811 1.72625C12.9411 1.72041 12.7723 1.7258 12.706 1.73821ZM2.25726 6.41702C2.03505 6.46277 1.77857 6.56493 1.57407 6.68923C0.660849 7.24423 0.26669 8.37245 0.639978 9.36291C0.842577 9.90052 1.26101 10.3605 1.76161 10.5958C1.86476 10.6442 3.47127 11.225 5.3316 11.8863L8.71405 13.0887V15.9233V18.7579L7.62872 23.1003C7.0318 25.4885 6.53337 27.5356 6.5211 27.6494C6.40938 28.6853 7.0643 29.6429 8.08672 29.9387L8.29878 30L8.64707 29.998C9.06199 29.9955 9.23847 29.9553 9.5888 29.7832C10.0024 29.58 10.368 29.2187 10.5625 28.821C10.6057 28.7326 11.169 27.0715 11.8142 25.1297C12.4594 23.188 12.9933 21.5993 13.0007 21.5993C13.0081 21.5993 13.542 23.188 14.1872 25.1297C14.8324 27.0715 15.3957 28.7326 15.439 28.821C15.6334 29.2187 15.999 29.58 16.4126 29.7832C16.763 29.9553 16.9394 29.9955 17.3544 29.998L17.7026 30L17.9147 29.9387C18.9371 29.6429 19.5921 28.6853 19.4803 27.6494C19.4681 27.5356 18.9696 25.4885 18.3727 23.1003L17.2874 18.7579V15.9233V13.0887L20.6698 11.8863C22.5302 11.225 24.1367 10.6442 24.2398 10.5958C25.1725 10.1573 25.6811 9.08532 25.4407 8.06454C25.3872 7.83741 25.2031 7.44981 25.0524 7.24699C24.8326 6.95136 24.4552 6.66642 24.0925 6.5224C23.7068 6.36927 23.1663 6.33116 22.7663 6.4289C22.6484 6.45768 21.1414 6.95206 19.4174 7.5275L16.283 8.57374H13.0007H9.71847L6.58398 7.5275C4.86001 6.95206 3.35304 6.45768 3.23515 6.4289L3.02082 6.37653L2.72611 6.37886C2.56402 6.38015 2.35304 6.39733 2.25726 6.41702ZM2.50479 8.13564C2.30015 8.23654 2.17455 8.4846 2.2258 8.68659C2.25602 8.80572 2.34248 8.94165 2.42955 9.00696C2.46227 9.03151 4.27547 9.68767 6.45889 10.4651L10.4287 11.8786V15.4254V18.9723L9.33026 23.3672C8.7261 25.7844 8.2318 27.8136 8.2318 27.8766C8.2318 28.0357 8.30837 28.1644 8.44648 28.2374C8.63659 28.338 8.82523 28.3031 8.96045 28.1424L9.03019 28.0595L10.6277 23.2679L12.2253 18.4763L12.3139 18.3555C12.4162 18.2158 12.5635 18.1109 12.7427 18.05C13.0769 17.9365 13.4748 18.0652 13.6876 18.3555L13.7761 18.4763L15.3737 23.2679L16.9712 28.0595L17.041 28.1424C17.1762 28.3031 17.3648 28.338 17.5549 28.2374C17.6931 28.1644 17.7696 28.0357 17.7696 27.8766C17.7696 27.8136 17.2753 25.7844 16.6712 23.3672L15.5727 18.9723V15.4254V11.8785L19.5518 10.4618L23.531 9.04509L23.6127 8.96515C23.732 8.84849 23.781 8.73869 23.7817 8.58604C23.7826 8.42537 23.7211 8.30671 23.5763 8.18967L23.4754 8.10809L23.3218 8.09826L23.1681 8.08842L19.8729 9.18869L16.5776 10.2889H13.0007H9.42379L6.12865 9.19013L2.83352 8.09134L2.71285 8.09196C2.64646 8.09228 2.55285 8.11195 2.50479 8.13564Z",strokeWidth:"0.354242",mask:"url(#path-1-inside-1_2435_12083)"})]})}var M=require("react");var gt=["p","span","div","h1","h2","h3","h4","h5","h6","a","li","td","th","label","input","textarea","select","button","blockquote","pre","code"],yi={normal:null,high:{styles:{filter:"contrast(125%)"}},dark:{styles:{color:"#FFF",fill:"#FFF","background-color":"#000"},childrenSelector:gt},light:{styles:{color:"#000",fill:"#000","background-color":"#FFF"},childrenSelector:gt}};function Si(e){let{styles:t,selector:n,childrenSelector:o}=e,s="";if(t){let a=Object.keys(t).map(l=>`${l}: ${t[l]} !important;`).join(" ");s+=`${n} { ${a} }`,o&&o.forEach(l=>{s+=`${n} ${l} { ${a} }`})}return s}function Ci({css:e,id:t}){let n=document.getElementById(t);n&&n.remove();let o=document.createElement("style");o.id=t,o.textContent=e,document.head.appendChild(o)}function ye(e){let t=yi[e],n="ape-accessibility-contrast",o="ape-contrast-active";if(!t){let r=document.getElementById(n);r&&r.remove(),document.documentElement.classList.remove(o);return}let s=Si({...t,selector:`html.${o}`});Ci({css:s,id:n}),document.documentElement.classList.add(o)}var Be="ape-accessibility-settings";function ft(e,t,n=30){let o=new Date;o.setTime(o.getTime()+n*24*60*60*1e3),document.cookie=`${e}=${t};expires=${o.toUTCString()};path=/`}function xi(e){let t=e+"=",n=document.cookie.split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s?.charAt(0)===" ";)s=s?.substring(1,s?.length);if(s?.indexOf(t)===0)return s.substring(t.length,s.length)}return null}function wi(e,t){let n=JSON.stringify(t);try{localStorage.setItem(e,n)}catch(o){console.error("Error saving storage data:",o),ft(e,n)}}function Li(e){let t=null;try{t=localStorage.getItem(e)}catch(n){console.error("Error getting storage data:",n),t=xi(e)}if(!t)return null;try{return JSON.parse(t)}catch(n){return console.error("Error parsing storage data:",n),null}}function Ei(e){try{localStorage.removeItem(e)}catch(t){ft(e,"",-1),console.error("Error clearing storage data:",t)}}var Ve=class{getSettings(){return Li(Be)}saveSettings(t){let n={...t,updatedAt:new Date};wi(Be,n)}clearSettings(){Ei(Be)}},Se=new Ve;var I={fontSize:100,contrast:"normal",language:"es",colorblindMode:"normal",saturationMode:"normal",dyslexiaFont:!1,letterSpacing:0,lineHeight:0,fontWeight:!1,highlightMode:"none",readingGuide:!1,stopAnimations:!1,bigCursor:!1,hideImages:!1,textAlign:"default",ttsActive:!1},A={...I};function Ai(){let e=Se.getSettings();return e&&(A={...I,...e}),A}function u(){return{...A}}function Ge(e){return A={...A,...e,updatedAt:new Date},Se.saveSettings(A),pt("update",A),A}function ae(){return A={...I},Se.saveSettings(A),pt("reset",A),A}function g(e,t){return Ge({[e]:t})}function pt(e,t){let n=new CustomEvent("accessibilitySettingsChanged",{detail:{type:e,settings:t,timestamp:new Date}});window.dispatchEvent(n)}function mt(e=A){return e.fontSize!==I.fontSize||e.contrast!==I.contrast||e.colorblindMode!==I.colorblindMode||e.saturationMode!==I.saturationMode||e.dyslexiaFont===!0||(e.letterSpacing??0)>0||(e.lineHeight??0)>0||e.fontWeight===!0||e.highlightMode!==I.highlightMode||e.readingGuide===!0||e.stopAnimations===!0||e.bigCursor===!0||e.hideImages===!0||e.textAlign!==I.textAlign||e.ttsActive===!0}typeof window<"u"&&Ai();function ht(){let[e,t]=(0,M.useState)(()=>u().contrast||"normal");(0,M.useEffect)(()=>{ye(e)},[]),(0,M.useEffect)(()=>{let d=b=>{let{settings:v}=b.detail,x=v.contrast||"normal";x!==e&&(t(x),ye(x))};return window.addEventListener("accessibilitySettingsChanged",d),()=>{window.removeEventListener("accessibilitySettingsChanged",d)}},[e]);let n=(0,M.useCallback)(d=>{t(d),ye(d),g("contrast",d),window.dispatchEvent(new CustomEvent("accessibilityContrastChanged",{detail:{mode:d,isActive:d!=="normal"}}))},[]),o=(0,M.useCallback)(()=>{n(e==="normal"?"high":"normal")},[e,n]),s=(0,M.useCallback)(d=>{n(d)},[n]),r=(0,M.useCallback)(()=>{n(e==="high"?"normal":"high")},[e,n]),a=(0,M.useCallback)(()=>{n(e==="dark"?"normal":"dark")},[e,n]),l=(0,M.useCallback)(()=>{n(e==="light"?"normal":"light")},[e,n]),c=(0,M.useCallback)(()=>{switch(e){case"high":return"Alto contraste";case"dark":return"Contraste oscuro";case"light":return"Contraste claro";default:return"Normal"}},[e]);return{contrastMode:e,isActive:e!=="normal",getContrastDescription:c,setContrastMode:s,updateContrast:n,toggleContrast:o,toggleHighContrast:r,toggleDarkContrast:a,toggleLightContrast:l,isHighContrast:e==="high",isDarkContrast:e==="dark",isLightContrast:e==="light"}}var w=require("react");var bt=['i[class*="icon"]','i[class*="fa-"]',".icon",".fa",".material-icons","[data-icon]","svg"],Mi="h1,h2,h3,h4,h5,h6,p,a,dl,dt,li,ol,th,td,span,blockquote,.asw-text",vt={};bt.forEach(e=>{vt[e]=!0});function ki(e=1){document.querySelectorAll(Mi).forEach(t=>{let n=t;if(Array.prototype.slice.call(n.classList).some(a=>vt[`.${a}`])||bt.some(a=>n.matches(a)))return;let s=Number(n.dataset.apeOrgFontSize)||parseInt(window.getComputedStyle(n).fontSize);n.dataset.apeOrgFontSize||(n.dataset.apeOrgFontSize=String(s));let r=s*e;n.style.fontSize=`${r}px`})}function Ii(){document.querySelectorAll("[data-ape-org-font-size]").forEach(e=>{let t=e,n=t.dataset.apeOrgFontSize;n&&(t.style.fontSize=`${n}px`,delete t.dataset.apeOrgFontSize)})}function Ti(e){return e/100}function Ce(e){let t=Ti(e);e===100?Ii():ki(t)}function yt(){let[s,r]=(0,w.useState)(()=>u().fontSize||100),[a,l]=(0,w.useState)(!1);(0,w.useEffect)(()=>{Ce(s)},[]),(0,w.useEffect)(()=>{let p=H=>{let{settings:C}=H.detail,N=C.fontSize||100;N!==s&&(r(N),Ce(N))};return window.addEventListener("accessibilitySettingsChanged",p),()=>{window.removeEventListener("accessibilitySettingsChanged",p)}},[s]);let c=(0,w.useCallback)(p=>{r(p),Ce(p),g("fontSize",p),window.dispatchEvent(new CustomEvent("accessibilityTextSizeChanged",{detail:{percentage:p,isActive:p!==100}}))},[]),f=(0,w.useCallback)(()=>{let p=Math.min(s+5,120);p!==s&&c(p)},[s,c]),d=(0,w.useCallback)(()=>{let p=Math.max(s-5,90);p!==s&&c(p)},[s,c]),b=(0,w.useCallback)(()=>{c(100)},[c]),v=(0,w.useCallback)(p=>{p>=90&&p<=120&&c(p)},[c]),x=(0,w.useCallback)(()=>{l(!a)},[a]),h=(0,w.useCallback)(()=>s===100?"Normal":s<100?`Reducido ${s}%`:`Aumentado ${s}%`,[s]),D=s<120,E=s>90;return{textSizePercentage:s,increaseTextSize:f,decreaseTextSize:d,resetTextSize:b,canIncrease:D,canDecrease:E,getTextSizeDescription:h,isActive:s!==100,toggleTextSizeOptions:x,setSpecificTextSize:v,isOptionsOpen:a,setIsOptionsOpen:l,MIN_SIZE:90,MAX_SIZE:120,NORMAL_SIZE:100,INCREMENT:5}}var P=require("react");function St(){let[e,t]=(0,P.useState)(()=>u().language||"es");(0,P.useEffect)(()=>{let a=l=>{let{settings:c}=l.detail,f=c.language||"es";f!==e&&t(f)};return window.addEventListener("accessibilitySettingsChanged",a),()=>{window.removeEventListener("accessibilitySettingsChanged",a)}},[e]);let n=(0,P.useCallback)(a=>{t(a),g("language",a),window.dispatchEvent(new CustomEvent("accessibilityLanguageChanged",{detail:{mode:a,isActive:a!=="es"}}))},[]),o=(0,P.useCallback)(()=>{n(e==="es"?"en":"es")},[e,n]),s=(0,P.useCallback)(a=>{n(a)},[n]),r=(0,P.useCallback)(()=>e==="en"?"English":"Espa\xF1ol",[e]);return{languageMode:e,isActive:e!=="es",toggleLanguage:o,setSpecificLanguage:s,getLanguageDescription:r,updateLanguage:n,isEnglish:e==="en",isSpanish:e==="es"}}var Y=require("react");function xe(e){let t=document.documentElement;e==="normal"?t.removeAttribute("data-colorblind-mode"):t.setAttribute("data-colorblind-mode",e)}function Ct(){let[e,t]=(0,Y.useState)(()=>u().colorblindMode??"normal");(0,Y.useEffect)(()=>{xe(e)},[]),(0,Y.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.colorblindMode??"normal";a!==e&&(t(a),xe(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,Y.useCallback)(o=>{t(o),xe(o),g("colorblindMode",o),window.dispatchEvent(new CustomEvent("accessibilityColorblindChanged",{detail:{mode:o}}))},[]);return{colorblindMode:e,setColorblindMode:n,isActive:e!=="normal"}}var K=require("react");var xt={normal:null,high:"accessibility-saturation-high",low:"accessibility-saturation-low",mono:"accessibility-saturation-mono"},Ni=Object.values(xt).filter(Boolean);function we(e){let t=document.documentElement;Ni.forEach(o=>t.classList.remove(o));let n=xt[e];n&&t.classList.add(n)}function wt(){let[e,t]=(0,K.useState)(()=>u().saturationMode??"normal");(0,K.useEffect)(()=>{we(e)},[]),(0,K.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.saturationMode??"normal";a!==e&&(t(a),we(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,K.useCallback)(o=>{t(o),we(o),g("saturationMode",o),window.dispatchEvent(new CustomEvent("accessibilitySaturationChanged",{detail:{mode:o}}))},[]);return{saturationMode:e,setSaturationMode:n,isActive:e!=="normal"}}var q=require("react");var Lt="accessibility-dyslexia";function Le(e){let t=document.documentElement;e?t.classList.add(Lt):t.classList.remove(Lt)}function Et(){let[e,t]=(0,q.useState)(()=>u().dyslexiaFont??!1);(0,q.useEffect)(()=>{Le(e)},[]),(0,q.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.dyslexiaFont??!1;a!==e&&(t(a),Le(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,q.useCallback)(()=>{let o=!e;t(o),Le(o),g("dyslexiaFont",o),window.dispatchEvent(new CustomEvent("accessibilityDyslexiaChanged",{detail:{isActive:o}}))},[e]);return{isActive:e,toggle:n}}var O=require("react");var At="accessibility-letter-spacing",Mt="accessibility-line-height",kt="accessibility-font-weight";function ce(e){let t=document.documentElement;t.style.setProperty("--accessibility-letter-spacing",String(e)),e>0?t.classList.add(At):t.classList.remove(At)}function le(e){let t=document.documentElement;t.style.setProperty("--accessibility-line-height",String(e)),e>0?t.classList.add(Mt):t.classList.remove(Mt)}function Ee(e){let t=document.documentElement;e?t.classList.add(kt):t.classList.remove(kt)}var It=3;function Tt(){let[e,t]=(0,O.useState)(()=>u().letterSpacing??0);(0,O.useEffect)(()=>{ce(e)},[]),(0,O.useEffect)(()=>{let r=a=>{let{settings:l}=a.detail,c=l.letterSpacing??0;c!==e&&(t(c),ce(c))};return window.addEventListener("accessibilitySettingsChanged",r),()=>window.removeEventListener("accessibilitySettingsChanged",r)},[e]);let n=(0,O.useCallback)(()=>{let r=Math.min(e+1,It);t(r),ce(r),g("letterSpacing",r)},[e]),o=(0,O.useCallback)(()=>{let r=Math.max(e-1,0);t(r),ce(r),g("letterSpacing",r)},[e]),s=(0,O.useCallback)(()=>{t(0),ce(0),g("letterSpacing",0)},[]);return{level:e,increase:n,decrease:o,reset:s,isActive:e>0,canIncrease:e<It,canDecrease:e>0}}var _=require("react");var Nt=3;function Rt(){let[e,t]=(0,_.useState)(()=>u().lineHeight??0);(0,_.useEffect)(()=>{le(e)},[]),(0,_.useEffect)(()=>{let r=a=>{let{settings:l}=a.detail,c=l.lineHeight??0;c!==e&&(t(c),le(c))};return window.addEventListener("accessibilitySettingsChanged",r),()=>window.removeEventListener("accessibilitySettingsChanged",r)},[e]);let n=(0,_.useCallback)(()=>{let r=Math.min(e+1,Nt);t(r),le(r),g("lineHeight",r)},[e]),o=(0,_.useCallback)(()=>{let r=Math.max(e-1,0);t(r),le(r),g("lineHeight",r)},[e]),s=(0,_.useCallback)(()=>{t(0),le(0),g("lineHeight",0)},[]);return{level:e,increase:n,decrease:o,reset:s,isActive:e>0,canIncrease:e<Nt,canDecrease:e>0}}var J=require("react");function Ht(){let[e,t]=(0,J.useState)(()=>u().fontWeight??!1);(0,J.useEffect)(()=>{Ee(e)},[]),(0,J.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.fontWeight??!1;a!==e&&(t(a),Ee(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,J.useCallback)(()=>{let o=!e;t(o),Ee(o),g("fontWeight",o)},[e]);return{isBold:e,toggle:n,isActive:e}}var W=require("react");function Ae(e){let t=document.documentElement;e==="none"?t.removeAttribute("data-highlight"):t.setAttribute("data-highlight",e)}function Pt(){let[e,t]=(0,W.useState)(()=>u().highlightMode??"none");(0,W.useEffect)(()=>{Ae(e)},[]),(0,W.useEffect)(()=>{let r=a=>{let{settings:l}=a.detail,c=l.highlightMode??"none";c!==e&&(t(c),Ae(c))};return window.addEventListener("accessibilitySettingsChanged",r),()=>window.removeEventListener("accessibilitySettingsChanged",r)},[e]);let n=(0,W.useCallback)(r=>{t(r),Ae(r),g("highlightMode",r)},[]),o=(0,W.useCallback)(()=>{n(e==="titles"?"none":e==="links"?"both":e==="both"?"links":"titles")},[e,n]),s=(0,W.useCallback)(()=>{n(e==="links"?"none":e==="titles"?"both":e==="both"?"titles":"links")},[e,n]);return{highlightMode:e,setHighlightMode:n,toggleTitles:o,toggleLinks:s,isTitlesActive:e==="titles"||e==="both",isLinksActive:e==="links"||e==="both",isActive:e!=="none"}}var Q=require("react");var Ot="accessibility-stop-animations",_t="accessibility-big-cursor";function Me(e){e?Ri():Hi()}function ke(e){let t=document.documentElement;e?t.classList.add(Ot):t.classList.remove(Ot)}function Ie(e){let t=document.documentElement;e?t.classList.add(_t):t.classList.remove(_t)}var Wt=`
|
|
2
2
|
position: fixed;
|
|
3
3
|
left: 0;
|
|
4
4
|
right: 0;
|
|
5
5
|
background: rgba(0, 0, 0, 0.65);
|
|
6
6
|
pointer-events: none;
|
|
7
7
|
z-index: 9998;
|
|
8
|
-
`,T=null,W=null;function fi(){T||(T=document.createElement("div"),T.id="ape-reading-guide-top",T.style.cssText=Ct+"top: 0;",W=document.createElement("div"),W.id="ape-reading-guide-bottom",W.style.cssText=Ct+"bottom: 0;",document.body.appendChild(T),document.body.appendChild(W),At(window.innerHeight/2),document.addEventListener("mousemove",xt))}function mi(){document.removeEventListener("mousemove",xt),T?.remove(),W?.remove(),T=null,W=null}function xt(e){At(e.clientY)}function At(e){let n=Math.max(0,e-40),o=e+40;T&&(T.style.height=`${n}px`),W&&(W.style.top=`${o}px`)}function Lt(){let[e,t]=(0,j.useState)(()=>d().stopAnimations??!1);(0,j.useEffect)(()=>{Se(e)},[]),(0,j.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.stopAnimations??!1;a!==e&&(t(a),Se(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,j.useCallback)(()=>{let o=!e;t(o),Se(o),u("stopAnimations",o)},[e]);return{isActive:e,toggle:n}}var U=require("react");function wt(){let[e,t]=(0,U.useState)(()=>d().bigCursor??!1);(0,U.useEffect)(()=>{Ce(e)},[]),(0,U.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.bigCursor??!1;a!==e&&(t(a),Ce(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,U.useCallback)(()=>{let o=!e;t(o),Ce(o),u("bigCursor",o)},[e]);return{isActive:e,toggle:n}}var X=require("react");function Et(){let[e,t]=(0,X.useState)(()=>d().readingGuide??!1);(0,X.useEffect)(()=>{ve(e)},[]),(0,X.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.readingGuide??!1;a!==e&&(t(a),ve(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,X.useCallback)(()=>{let o=!e;t(o),ve(o),u("readingGuide",o)},[e]);return{isActive:e,toggle:n}}var K=require("react");var Mt="accessibility-hide-images";function xe(e){let t=document.documentElement;e?t.classList.add(Mt):t.classList.remove(Mt)}function kt(){let[e,t]=(0,K.useState)(()=>d().hideImages??!1);(0,K.useEffect)(()=>{xe(e)},[]),(0,K.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.hideImages??!1;a!==e&&(t(a),xe(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,K.useCallback)(()=>{let o=!e;t(o),xe(o),u("hideImages",o)},[e]);return{isActive:e,toggle:n}}var O=require("react");function re(e){let t=document.documentElement;e==="default"?t.removeAttribute("data-text-align"):t.setAttribute("data-text-align",e)}var _e=["default","left","center","right"];function It(){let[e,t]=(0,O.useState)(()=>d().textAlign??"default");(0,O.useEffect)(()=>{re(e)},[]),(0,O.useEffect)(()=>{let s=r=>{let{settings:a}=r.detail,c=a.textAlign??"default";c!==e&&(t(c),re(c))};return window.addEventListener("accessibilitySettingsChanged",s),()=>window.removeEventListener("accessibilitySettingsChanged",s)},[e]);let n=(0,O.useCallback)(()=>{let s=_e.indexOf(e),r=_e[(s+1)%_e.length]??"default";t(r),re(r),u("textAlign",r)},[e]),o=(0,O.useCallback)(s=>{t(s),re(s),u("textAlign",s)},[]);return{mode:e,cycle:n,setMode:o,isActive:e!=="default",label:e==="default"?"Por defecto":e==="left"?"Izquierda":e==="center"?"Centrado":"Derecha"}}var z=require("react");var ne=null;function Ae(){return typeof window<"u"&&"speechSynthesis"in window}function Nt(e="es"){if(!Ae())return;ae();let n=(document.querySelector("main")??document.body).innerText;n.trim()&&(ne=new SpeechSynthesisUtterance(n),ne.lang=e==="es"?"es-ES":"en-US",ne.rate=1,window.speechSynthesis.speak(ne))}function ae(){Ae()&&(window.speechSynthesis.cancel(),ne=null)}function Tt(){return ne}function Rt(){let[e,t]=(0,z.useState)(!1),[n]=(0,z.useState)(()=>Ae());(0,z.useEffect)(()=>()=>{ae()},[]),(0,z.useEffect)(()=>{let s=()=>{ae(),t(!1)};return window.addEventListener("accessibilityReset",s),()=>window.removeEventListener("accessibilityReset",s)},[]);let o=(0,z.useCallback)(()=>{if(e)ae(),t(!1);else{let s=d().language??"es";Nt(s),t(!0);let r=Tt();r&&(r.onend=()=>t(!1),r.onerror=()=>t(!1))}},[e]);return{isReading:e,isSupported:n,toggle:o}}var Y=require("react");var Pt={visionImpaired:{contrast:"high",fontSize:120,highlightMode:"both",bigCursor:!0},cognitive:{dyslexiaFont:!0,lineHeight:2,letterSpacing:1,stopAnimations:!0},motorImpaired:{bigCursor:!0,stopAnimations:!0,fontSize:110},seniorFriendly:{fontSize:120,lineHeight:2,contrast:"high",bigCursor:!0}},He={visionImpaired:"Visi\xF3n reducida",cognitive:"Cognitivo",motorImpaired:"Motor",seniorFriendly:"Adulto mayor"};function We(e){for(let[t,n]of Object.entries(Pt))if(Object.entries(n).every(([s,r])=>e[s]===r))return t;return"none"}function _t(e){return e==="none"?{...x}:Pt[e]}function Ht(){let[e,t]=(0,Y.useState)(()=>We(d()));(0,Y.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail;t(We(r))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[]),(0,Y.useEffect)(()=>{let o=()=>t("none");return window.addEventListener("accessibilityReset",o),()=>window.removeEventListener("accessibilityReset",o)},[]);let n=(0,Y.useCallback)(o=>{if(o===e){ee(),window.dispatchEvent(new CustomEvent("accessibilityReset",{detail:{timestamp:Date.now()}}));return}let s=_t(o);Pe(s)},[e]);return{activeProfile:e,applyProfile:n}}var F=require("react");var hi=["H1","H2","H3","H4","H5","H6"],bi=["main","nav","aside","footer","header",'[role="banner"]','[role="navigation"]','[role="main"]','[role="complementary"]','[role="contentinfo"]'];function Wt(){let e=[],t=new Set;return document.querySelectorAll(bi.join(",")).forEach(s=>{if(t.has(s))return;t.add(s);let r=s.getAttribute("role")||s.tagName.toLowerCase(),a=s.getAttribute("aria-label")||r;e.push({tag:r,text:a,level:0,element:s})}),document.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(s=>{let r=s.tagName;if(!hi.includes(r))return;let a=parseInt(r.charAt(1),10),c=(s.textContent??"").trim().slice(0,80);c&&e.push({tag:r.toLowerCase(),text:c,level:a,element:s})}),e}function Ot(e){e.scrollIntoView({behavior:"smooth",block:"center"}),e.focus({preventScroll:!0})}function zt(){let[e,t]=(0,F.useState)(!1),[n,o]=(0,F.useState)([]),s=(0,F.useCallback)(()=>{o(Wt()),t(!0)},[]),r=(0,F.useCallback)(()=>{t(!1)},[]),a=(0,F.useCallback)(()=>{e?r():s()},[e,s,r]),c=(0,F.useCallback)(l=>{Ot(l.element)},[]);return{isOpen:e,structure:n,toggle:a,open:s,close:r,navigateTo:c}}function Le(){let e=et(),t=nt(),n=ot(),o=st(),s=at(),r=lt(),a=ft(),c=ht(),l=bt(),m=yt(),g=Lt(),L=wt(),w=Et(),S=kt(),P=It(),q=Rt(),_=Ht(),p=zt(),B=d(),C=Qe(B);return{contrast:e,textSize:t,language:n,colorblind:o,saturation:s,dyslexia:r,letterSpacing:a,lineHeight:c,fontWeight:l,highlight:m,animations:g,cursor:L,readingGuide:w,hideImages:S,textAlign:P,tts:q,profiles:_,pageStructure:p,hasActiveFeatures:C,resetAllFeatures:()=>{ee(),window.dispatchEvent(new CustomEvent("accessibilityReset",{detail:{timestamp:Date.now()}}))},currentSettings:B}}var Bt=require("react");var Ee=require("react/jsx-runtime");function we({title:e,children:t}){return(0,Ee.jsxs)("section",{className:"px-4 py-3",children:[(0,Ee.jsx)("h3",{className:"text-xs font-semibold text-blue-700 uppercase tracking-wider mb-3",children:e}),t]})}var ce=require("react/jsx-runtime");function h({icon:e,label:t,isActive:n,onClick:o,disabled:s=!1,className:r}){return(0,ce.jsxs)("button",{type:"button",onClick:s?void 0:o,disabled:s,"aria-pressed":n,"aria-label":t,className:E("flex flex-col items-center justify-center gap-1.5 rounded-3xl p-3 shadow-lg text-center cursor-pointer transition-all","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-1 focus:bg-blue-50",n?"ring-2 ring-green-500 bg-green-50 text-blue-900":"border-gray-200 bg-white text-gray-700 hover:ring-2 hover:ring-blue-300 hover:bg-blue-50",s&&"cursor-not-allowed opacity-40",r),children:[(0,ce.jsx)("span",{className:E("h-6 w-6",n?"text-blue-700":"text-gray-500"),children:e}),(0,ce.jsx)("span",{className:"text-base font-medium leading-tight",children:t})]})}var oe=require("react/jsx-runtime");function Ft({percentage:e,onIncrease:t,onDecrease:n,onReset:o,canIncrease:s,canDecrease:r}){return(0,oe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oe.jsx)("button",{type:"button",onClick:n,disabled:!r,"aria-label":"Reducir tama\xF1o de texto",className:"flex h-9 w-9 items-center justify-center rounded-lg border border-gray-200 bg-white text-lg font-bold text-blue-700 cursor-pointer transition hover:border-blue-400 hover:bg-blue-50 disabled:cursor-not-allowed disabled:opacity-40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500",children:"\u2212"}),(0,oe.jsxs)("button",{type:"button",onClick:o,"aria-label":"Restablecer tama\xF1o de texto",className:"flex-1 rounded-lg border border-gray-200 bg-white py-2 text-center text-sm font-semibold text-blue-900 cursor-pointer transition hover:border-blue-400 hover:bg-blue-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500",children:[e,"%"]}),(0,oe.jsx)("button",{type:"button",onClick:t,disabled:!s,"aria-label":"Aumentar tama\xF1o de texto",className:"flex h-9 w-9 items-center justify-center rounded-lg border border-gray-200 bg-white text-lg font-bold text-blue-700 cursor-pointer transition hover:border-blue-400 hover:bg-blue-50 disabled:cursor-not-allowed disabled:opacity-40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500",children:"+"})]})}var i=require("react/jsx-runtime");function Vt({onClose:e}){let[t,n]=(0,Bt.useState)(!1),{contrast:o,textSize:s,saturation:r,dyslexia:a,letterSpacing:c,lineHeight:l,fontWeight:m,highlight:g,animations:L,cursor:w,readingGuide:S,colorblind:P,hideImages:q,textAlign:_,tts:p,profiles:B,pageStructure:C,resetAllFeatures:J}=Le();return(0,i.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Men\xFA de Accesibilidad",className:"flex flex-col h-full overflow-hidden",style:{backgroundColor:"var(--apea-color-panel-bg, #f9fafb)"},children:[(0,i.jsxs)("div",{className:"flex items-center justify-between apea-gradient px-4 py-3 shrink-0",children:[(0,i.jsx)("h2",{className:"text-sm font-bold text-white tracking-wide",children:"Men\xFA de Accesibilidad"}),(0,i.jsx)("div",{className:"flex items-center gap-2",children:(0,i.jsx)("button",{type:"button",onClick:e,"aria-label":"Cerrar men\xFA de accesibilidad",className:"flex h-8 w-8 items-center justify-center rounded-full border border-white/30 text-white cursor-pointer transition hover:bg-white/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white",children:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.2,className:"h-4 w-4","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M18 6 6 18M6 6l12 12",strokeLinecap:"round",strokeLinejoin:"round"})})})})]}),(0,i.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,i.jsxs)("section",{className:"px-4 py-3",children:[(0,i.jsxs)("button",{type:"button",onClick:()=>n(f=>!f),"aria-expanded":t,className:"flex w-full items-center justify-between text-xs font-semibold text-blue-700 uppercase tracking-wider cursor-pointer",children:["Perfiles de accesibilidad",(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:`h-4 w-4 transition-transform duration-300 ease-in-out ${t?"rotate-180":""}`,"data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M6 9l6 6 6-6",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,i.jsx)("div",{className:`grid transition-[grid-template-rows] duration-300 ease-in-out ${t?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:(0,i.jsx)("div",{className:"overflow-hidden pb-5 px-2 -mx-2",children:(0,i.jsx)("div",{className:`grid grid-cols-2 gap-2 pt-3 transition-opacity duration-300 ease-in-out ${t?"opacity-100":"opacity-0"}`,children:Object.keys(He).map(f=>(0,i.jsx)(h,{icon:(0,i.jsx)(Wi,{profile:f}),label:He[f],isActive:B.activeProfile===f,onClick:()=>B.applyProfile(f)},f))})})})]}),(0,i.jsxs)(we,{title:"Ajustes de contenido",children:[(0,i.jsxs)("div",{className:"mb-3 rounded-xl border border-gray-200 bg-white p-3",children:[(0,i.jsxs)("div",{className:"mb-2 flex items-center gap-2 text-sm font-medium text-gray-700",children:[(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-4 w-4 shrink-0","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M4 7V4h16v3M9 20h6M12 4v16",strokeLinecap:"round",strokeLinejoin:"round"})}),"Tama\xF1o de fuente"]}),(0,i.jsx)(Ft,{percentage:s.textSizePercentage,onIncrease:s.increaseTextSize,onDecrease:s.decreaseTextSize,onReset:s.resetTextSize,canIncrease:s.canIncrease,canDecrease:s.canDecrease})]}),(0,i.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,i.jsx)(h,{icon:(0,i.jsx)(yi,{}),label:"Resaltar t\xEDtulos",isActive:g.isTitlesActive,onClick:g.toggleTitles}),(0,i.jsx)(h,{icon:(0,i.jsx)(vi,{}),label:"Resaltar enlaces",isActive:g.isLinksActive,onClick:g.toggleLinks}),(0,i.jsx)(h,{icon:(0,i.jsx)(Si,{}),label:"Fuente dislexia",isActive:a.isActive,onClick:a.toggle}),(0,i.jsx)(Dt,{icon:(0,i.jsx)(Ci,{}),label:"Esp. de letras",level:c.level,onIncrease:c.increase,onDecrease:c.decrease,canIncrease:c.canIncrease,canDecrease:c.canDecrease}),(0,i.jsx)(Dt,{icon:(0,i.jsx)(xi,{}),label:"Interlineado",level:l.level,onIncrease:l.increase,onDecrease:l.decrease,canIncrease:l.canIncrease,canDecrease:l.canDecrease}),(0,i.jsx)(h,{icon:(0,i.jsx)(Ai,{}),label:"Fuente negrita",isActive:m.isBold,onClick:m.toggle}),(0,i.jsx)(h,{icon:(0,i.jsx)(Ti,{}),label:"Ocultar im\xE1genes",isActive:q.isActive,onClick:q.toggle}),(0,i.jsx)(h,{icon:(0,i.jsx)(Ri,{mode:_.mode}),label:`Alinear: ${_.label}`,isActive:_.isActive,onClick:_.cycle})]})]}),(0,i.jsxs)(we,{title:"Ajustes de color",children:[(0,i.jsxs)("div",{className:"grid grid-cols-3 gap-2 mb-3",children:[(0,i.jsx)(h,{icon:(0,i.jsx)(Li,{}),label:"Alto contraste",isActive:o.isHighContrast,onClick:()=>o.setContrastMode(o.isHighContrast?"normal":"high")}),(0,i.jsx)(h,{icon:(0,i.jsx)(wi,{}),label:"Alta saturaci\xF3n",isActive:r.saturationMode==="high",onClick:()=>r.setSaturationMode(r.saturationMode==="high"?"normal":"high")}),(0,i.jsx)(h,{icon:(0,i.jsx)(Ei,{}),label:"Baja saturaci\xF3n",isActive:r.saturationMode==="low",onClick:()=>r.setSaturationMode(r.saturationMode==="low"?"normal":"low")}),(0,i.jsx)(h,{icon:(0,i.jsx)(Mi,{}),label:"Monocromo",isActive:r.saturationMode==="mono",onClick:()=>r.setSaturationMode(r.saturationMode==="mono"?"normal":"mono")})]}),(0,i.jsx)("p",{className:"mb-2 text-xs font-medium text-gray-500 uppercase tracking-wide hidden",children:"Daltonismo"}),(0,i.jsx)("div",{className:"grid grid-cols-2 gap-2 hidden",children:[["protanopia","Protanop\xEDa"],["deuteranopia","Deuteranop\xEDa"],["tritanopia","Tritanop\xEDa"],["achromatopsia","Acromatopsia"]].map(([f,Ie])=>(0,i.jsx)(h,{icon:(0,i.jsx)(Hi,{mode:f}),label:Ie,isActive:P.colorblindMode===f,onClick:()=>P.setColorblindMode(P.colorblindMode===f?"normal":f)},f))})]}),(0,i.jsxs)(we,{title:"Herramientas",children:[(0,i.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,i.jsx)(h,{icon:(0,i.jsx)(ki,{}),label:"Gu\xEDa de lectura",isActive:S.isActive,onClick:S.toggle}),(0,i.jsx)(h,{icon:(0,i.jsx)(Ii,{}),label:"Pausar animaciones",isActive:L.isActive,onClick:L.toggle}),(0,i.jsx)(h,{icon:(0,i.jsx)(Ni,{}),label:"Cursor grande",isActive:w.isActive,onClick:w.toggle}),(0,i.jsx)(h,{icon:(0,i.jsx)(Pi,{}),label:p.isReading?"Detener lectura":"Leer p\xE1gina",isActive:p.isReading,onClick:p.toggle,disabled:!p.isSupported}),(0,i.jsx)(h,{icon:(0,i.jsx)(_i,{}),label:"Estructura",isActive:C.isOpen,onClick:C.toggle})]}),C.isOpen&&C.structure.length>0&&(0,i.jsxs)("div",{className:"mt-3 rounded-xl border border-gray-200 bg-white p-3 max-h-60 overflow-y-auto",children:[(0,i.jsx)("p",{className:"mb-2 text-xs font-medium text-gray-500 uppercase tracking-wide",children:"Estructura de la p\xE1gina"}),(0,i.jsx)("ul",{className:"space-y-1",children:C.structure.map((f,Ie)=>(0,i.jsx)("li",{children:(0,i.jsxs)("button",{type:"button",onClick:()=>C.navigateTo(f),className:"w-full text-left px-2 py-1.5 rounded-lg text-sm hover:bg-blue-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 transition-colors",style:{paddingLeft:`${(f.level||1)*12}px`},children:[(0,i.jsx)("span",{className:"inline-block mr-2 text-xs font-mono text-blue-600 bg-blue-100 px-1.5 py-0.5 rounded",children:f.tag}),(0,i.jsx)("span",{className:"text-gray-700",children:f.text})]})},`${f.tag}-${Ie}`))})]}),C.isOpen&&C.structure.length===0&&(0,i.jsx)("div",{className:"mt-3 rounded-xl border border-gray-200 bg-white p-3",children:(0,i.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"No se encontraron encabezados"})})]})]}),(0,i.jsx)("section",{className:"px-4 pb-6 pt-2",children:(0,i.jsx)("button",{type:"button",onClick:J,className:"w-full rounded-xl apea-gradient py-3 text-sm font-semibold text-white cursor-pointer transition hover:bg-none hover:bg-green-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",children:"Restablecer configuraci\xF3n"})})]})}function Dt({icon:e,label:t,level:n,onIncrease:o,onDecrease:s,canIncrease:r,canDecrease:a}){let c=n>0;return(0,i.jsxs)("div",{className:`flex flex-col items-center justify-between gap-1 rounded-3xl border p-2 shadow-md/20 text-center transition-all ${c?"border-yellow-500 bg-yellow-50 text-blue-900":"border-gray-200 bg-white text-gray-700"}`,children:[(0,i.jsx)("span",{className:"h-5 w-5 text-gray-500",children:e}),(0,i.jsx)("span",{className:"text-sm font-medium leading-tight",children:t}),(0,i.jsxs)("div",{className:"flex items-center gap-1 w-full justify-center",children:[(0,i.jsx)("button",{type:"button",onClick:s,disabled:!a,"aria-label":`Reducir ${t}`,className:"flex h-5 w-5 items-center justify-center rounded text-xs font-bold text-blue-700 cursor-pointer hover:bg-blue-100 disabled:opacity-30 focus-visible:outline-none",children:"\u2212"}),(0,i.jsx)("span",{className:"w-4 text-center text-sm font-semibold tabular-nums",children:n}),(0,i.jsx)("button",{type:"button",onClick:o,disabled:!r,"aria-label":`Aumentar ${t}`,className:"flex h-5 w-5 items-center justify-center rounded text-xs font-bold text-blue-700 cursor-pointer hover:bg-blue-100 disabled:opacity-30 focus-visible:outline-none",children:"+"})]})]})}function yi(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M4 6h16M4 12h8M4 18h12",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M15 14l5 5M20 14l-5 5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function vi(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Si(){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M4 7l4 10 4-10M20 7v10M17 7h6",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ci(){return(0,i.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"m20.003 16.975-2.027 2.028m.113-3.943 1.914 1.915m-16.006 0 2.027-2.029m-.113 3.944-1.914-1.915m0 0h16.006m-2-5.975L15.16 4.997 12.317 11m.568-1.2h4.547M4.997 4.997 7.84 11l2.843-6.003",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})}function xi(){return(0,i.jsxs)("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M12.754 4a.75.75 0 0 1 .75-.75H20.5a.75.75 0 0 1 0 1.5h-6.996a.75.75 0 0 1-.75-.75m7.746 9.917h-6.996a.75.75 0 0 0 0 1.5H20.5a.75.75 0 0 0 0-1.5m-6.996 5.333a.75.75 0 0 0 0 1.5H20.5a.75.75 0 0 0 0-1.5zm6.996-9.167h-6.996a.75.75 0 0 1 0-1.5H20.5a.75.75 0 0 1 0 1.5",opacity:.4,fill:"#323544"}),(0,i.jsx)("path",{d:"m9.974 16.47-1.722 1.72V5.81l1.722 1.72a.75.75 0 0 0 1.06-1.06l-3.002-3a.75.75 0 0 0-1.06 0l-3.002 3a.75.75 0 0 0 1.06 1.06l1.722-1.72v12.38L5.03 16.47a.75.75 0 0 0-1.06 1.06l3.002 3a.75.75 0 0 0 1.06 0l3.002-3a.75.75 0 0 0-1.06-1.06",fill:"#323544"})]})}function Ai(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"}),(0,i.jsx)("path",{d:"M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"})]})}function Li(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,i.jsx)("path",{d:"M12 3v18"}),(0,i.jsx)("path",{d:"M12 3a9 9 0 0 1 0 18V3z",fill:"currentColor",stroke:"none"})]})}function wi(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,i.jsx)("path",{d:"M12 4v16M8 8l8 8M4 12h16",strokeLinecap:"round",strokeOpacity:.4}),(0,i.jsx)("circle",{cx:"12",cy:"12",r:"4",fill:"currentColor"})]})}function Ei(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,i.jsx)("circle",{cx:"12",cy:"12",r:"3",strokeDasharray:"2 2"})]})}function Mi(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),(0,i.jsx)("path",{d:"M3 12h18M12 5v14"}),(0,i.jsx)("path",{d:"M3 5h9v14H3z",fill:"currentColor",fillOpacity:.15,stroke:"none"})]})}function ki(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M3 18h18",strokeWidth:3,strokeLinecap:"round"})]})}function Ii(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,i.jsx)("rect",{x:"9",y:"9",width:"2",height:"6",fill:"currentColor",stroke:"none"}),(0,i.jsx)("rect",{x:"13",y:"9",width:"2",height:"6",fill:"currentColor",stroke:"none"})]})}function Ni(){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-full w-full","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M5 3l14 9-7.5 1.5L9 20l-4-17z"})})}function Ti(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,i.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"currentColor",stroke:"none"}),(0,i.jsx)("path",{d:"M21 15l-5-5L5 21",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M2 2l20 20",strokeLinecap:"round",strokeWidth:2.5})]})}function Ri({mode:e}){return e==="center"?(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M6 6h12M8 10h8M6 14h12M8 18h8",strokeLinecap:"round"})}):e==="right"?(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M4 6h16M8 10h12M4 14h16M8 18h12",strokeLinecap:"round"})}):(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M4 6h16M4 10h12M4 14h16M4 18h12",strokeLinecap:"round"})})}function Pi(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M11 5L6 9H2v6h4l5 4V5z",fill:"currentColor",stroke:"none"}),(0,i.jsx)("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14",strokeLinecap:"round"})]})}function _i(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M4 6h16M4 10h12M8 14h12M8 18h8",strokeLinecap:"round"}),(0,i.jsx)("circle",{cx:"4",cy:"14",r:"1",fill:"currentColor",stroke:"none"}),(0,i.jsx)("circle",{cx:"4",cy:"18",r:"1",fill:"currentColor",stroke:"none"})]})}function Hi({mode:e}){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,i.jsx)("path",{d:"M12 3c-3 4-3 10 0 18",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M12 3c3 4 3 10 0 18",strokeLinecap:"round"}),e==="achromatopsia"?(0,i.jsx)("path",{d:"M3 12h18"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M4 8h16",strokeOpacity:.4}),(0,i.jsx)("path",{d:"M4 16h16",strokeOpacity:.4})]})]})}function Wi({profile:e}){switch(e){case"visionImpaired":return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,i.jsx)("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor"})]});case"cognitive":return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M12 2a7 7 0 0 1 7 7c0 3-2 5-3 7h-8c-1-2-3-4-3-7a7 7 0 0 1 7-7z"}),(0,i.jsx)("path",{d:"M9 16v2a3 3 0 0 0 6 0v-2"})]});case"motorImpaired":return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"4",r:"2",fill:"currentColor"}),(0,i.jsx)("path",{d:"M12 6v6l4 4M12 12l-4 4",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("circle",{cx:"8",cy:"20",r:"2"}),(0,i.jsx)("circle",{cx:"16",cy:"20",r:"2"})]});case"seniorFriendly":return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"4",r:"2",fill:"currentColor"}),(0,i.jsx)("path",{d:"M12 6v8M12 14l-3 6M12 14l3 6M12 10h-2l-3 4M12 10h2",strokeLinecap:"round",strokeLinejoin:"round"})]});default:return null}}var A=require("react/jsx-runtime");function Oe({position:e="bottom-left",className:t}={}){let[n,o]=(0,Me.useState)(!0),{hasActiveFeatures:s}=Le();(0,Me.useEffect)(()=>{if(!n)return;let c=l=>{l.key==="Escape"&&o(!1)};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[n]);let r=n||s?"var(--apea-color-fab-active, #FFD54F)":"var(--apea-color-fab-inactive, #F6F6F6)";return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:E("fixed z-50 apea-fab",e==="bottom-right"?"bottom-8 right-5":"bottom-8 left-5",t),style:{filter:s?"drop-shadow(0 4px 12px rgba(255, 213, 79, 0.3))":"none"},onClick:()=>o(c=>!c),children:(0,A.jsx)(Ne,{size:"lg","aria-expanded":n,"aria-haspopup":"dialog","aria-label":`Accesibilidad - ${s?"Funciones activas":"Sin funciones activas"}`,leftIcon:(0,A.jsx)(Ke,{className:"w-full z-50",color:r,stroke:r})})}),(0,A.jsx)("div",{className:"fixed inset-0 z-40 apea-backdrop",style:{backgroundColor:"var(--apea-color-backdrop, rgba(0, 0, 0, 0.2))"},"data-visible":n?"true":"false",onClick:()=>o(!1),"aria-hidden":"true"}),(0,A.jsx)("div",{role:"none",className:"fixed inset-y-0 right-0 z-50 w-full max-w-sm shadow-2xl apea-panel","data-open":n?"true":"false",children:(0,A.jsx)(Vt,{onClose:()=>o(!1)})})]})}var Fe=require("react/jsx-runtime"),Oi={primary500:"#005dca",primary600:"#004faf",primary700:"#003b8a",panelBackground:"#f9fafb",fabActive:"#ffd54f",fabInactive:"#f6f6f6",backdrop:"rgba(0, 0, 0, 0.2)"};function ze(e){return{...Oi,...e}}function zi(e,t){return{...e,...t,theme:{...e.theme??{},...t.theme??{}}}}function Gt(e,t){e.style.setProperty("--apea-color-primary-500",t.primary500),e.style.setProperty("--apea-color-primary-600",t.primary600),e.style.setProperty("--apea-color-primary-700",t.primary700),e.style.setProperty("--apea-color-panel-bg",t.panelBackground),e.style.setProperty("--apea-color-fab-active",t.fabActive),e.style.setProperty("--apea-color-fab-inactive",t.fabInactive),e.style.setProperty("--apea-color-backdrop",t.backdrop)}function Zt(e={}){let t={position:e.position||"bottom-left",zIndex:e.zIndex||9999,containerId:e.containerId||"ape-accessibility-root",theme:ze(e.theme)},n=ze(t.theme),o=t.containerId||"ape-accessibility-root";if(document.getElementById(o))return console.warn("[ape-accessibility] Widget already mounted. Call destroy() first."),{destroy:()=>{},updateConfig:()=>{},config:e};let s=document.createElement("style");s.id="ape-accessibility-tools-css",s.textContent=`/* ============================================= */
|
|
8
|
+
`,F=null,$=null;function Ri(){F||(F=document.createElement("div"),F.id="ape-reading-guide-top",F.style.cssText=Wt+"top: 0;",$=document.createElement("div"),$.id="ape-reading-guide-bottom",$.style.cssText=Wt+"bottom: 0;",document.body.appendChild(F),document.body.appendChild($),zt(window.innerHeight/2),document.addEventListener("mousemove",Ft))}function Hi(){document.removeEventListener("mousemove",Ft),F?.remove(),$?.remove(),F=null,$=null}function Ft(e){zt(e.clientY)}function zt(e){let n=Math.max(0,e-40),o=e+40;F&&(F.style.height=`${n}px`),$&&($.style.top=`${o}px`)}function Dt(){let[e,t]=(0,Q.useState)(()=>u().stopAnimations??!1);(0,Q.useEffect)(()=>{ke(e)},[]),(0,Q.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.stopAnimations??!1;a!==e&&(t(a),ke(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,Q.useCallback)(()=>{let o=!e;t(o),ke(o),g("stopAnimations",o)},[e]);return{isActive:e,toggle:n}}var ee=require("react");function Bt(){let[e,t]=(0,ee.useState)(()=>u().bigCursor??!1);(0,ee.useEffect)(()=>{Ie(e)},[]),(0,ee.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.bigCursor??!1;a!==e&&(t(a),Ie(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,ee.useCallback)(()=>{let o=!e;t(o),Ie(o),g("bigCursor",o)},[e]);return{isActive:e,toggle:n}}var te=require("react");function Vt(){let[e,t]=(0,te.useState)(()=>u().readingGuide??!1);(0,te.useEffect)(()=>{Me(e)},[]),(0,te.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.readingGuide??!1;a!==e&&(t(a),Me(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,te.useCallback)(()=>{let o=!e;t(o),Me(o),g("readingGuide",o)},[e]);return{isActive:e,toggle:n}}var ie=require("react");var Gt="accessibility-hide-images";function Te(e){let t=document.documentElement;e?t.classList.add(Gt):t.classList.remove(Gt)}function $t(){let[e,t]=(0,ie.useState)(()=>u().hideImages??!1);(0,ie.useEffect)(()=>{Te(e)},[]),(0,ie.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail,a=r.hideImages??!1;a!==e&&(t(a),Te(a))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[e]);let n=(0,ie.useCallback)(()=>{let o=!e;t(o),Te(o),g("hideImages",o)},[e]);return{isActive:e,toggle:n}}var Z=require("react");function pe(e){let t=document.documentElement;e==="default"?t.removeAttribute("data-text-align"):t.setAttribute("data-text-align",e)}var $e=["default","left","center","right"];function Zt(){let[e,t]=(0,Z.useState)(()=>u().textAlign??"default");(0,Z.useEffect)(()=>{pe(e)},[]),(0,Z.useEffect)(()=>{let s=r=>{let{settings:a}=r.detail,l=a.textAlign??"default";l!==e&&(t(l),pe(l))};return window.addEventListener("accessibilitySettingsChanged",s),()=>window.removeEventListener("accessibilitySettingsChanged",s)},[e]);let n=(0,Z.useCallback)(()=>{let s=$e.indexOf(e),r=$e[(s+1)%$e.length]??"default";t(r),pe(r),g("textAlign",r)},[e]),o=(0,Z.useCallback)(s=>{t(s),pe(s),g("textAlign",s)},[]);return{mode:e,cycle:n,setMode:o,isActive:e!=="default",label:e==="default"?"Por defecto":e==="left"?"Izquierda":e==="center"?"Centrado":"Derecha"}}var j=require("react");var de=null;function Ne(){return typeof window<"u"&&"speechSynthesis"in window}function jt(e="es"){if(!Ne())return;me();let n=(document.querySelector("main")??document.body).innerText;n.trim()&&(de=new SpeechSynthesisUtterance(n),de.lang=e==="es"?"es-ES":"en-US",de.rate=1,window.speechSynthesis.speak(de))}function me(){Ne()&&(window.speechSynthesis.cancel(),de=null)}function Ut(){return de}function Xt(){let[e,t]=(0,j.useState)(!1),[n]=(0,j.useState)(()=>Ne());(0,j.useEffect)(()=>()=>{me()},[]),(0,j.useEffect)(()=>{let s=()=>{me(),t(!1)};return window.addEventListener("accessibilityReset",s),()=>window.removeEventListener("accessibilityReset",s)},[]);let o=(0,j.useCallback)(()=>{if(e)me(),t(!1);else{let s=u().language??"es";jt(s),t(!0);let r=Ut();r&&(r.onend=()=>t(!1),r.onerror=()=>t(!1))}},[e]);return{isReading:e,isSupported:n,toggle:o}}var ne=require("react");var Yt={visionImpaired:{contrast:"high",fontSize:120,highlightMode:"both",bigCursor:!0},cognitive:{dyslexiaFont:!0,lineHeight:2,letterSpacing:1,stopAnimations:!0},motorImpaired:{bigCursor:!0,stopAnimations:!0,fontSize:110},seniorFriendly:{fontSize:120,lineHeight:2,contrast:"high",bigCursor:!0}},Ze={visionImpaired:"Visi\xF3n reducida",cognitive:"Cognitivo",motorImpaired:"Motor",seniorFriendly:"Adulto mayor"};function je(e){for(let[t,n]of Object.entries(Yt))if(Object.entries(n).every(([s,r])=>e[s]===r))return t;return"none"}function Kt(e){return e==="none"?{...I}:Yt[e]}function qt(){let[e,t]=(0,ne.useState)(()=>je(u()));(0,ne.useEffect)(()=>{let o=s=>{let{settings:r}=s.detail;t(je(r))};return window.addEventListener("accessibilitySettingsChanged",o),()=>window.removeEventListener("accessibilitySettingsChanged",o)},[]),(0,ne.useEffect)(()=>{let o=()=>t("none");return window.addEventListener("accessibilityReset",o),()=>window.removeEventListener("accessibilityReset",o)},[]);let n=(0,ne.useCallback)(o=>{if(o===e){ae(),window.dispatchEvent(new CustomEvent("accessibilityReset",{detail:{timestamp:Date.now()}}));return}let s=Kt(o);Ge(s)},[e]);return{activeProfile:e,applyProfile:n}}var U=require("react");var Pi=["H1","H2","H3","H4","H5","H6"],Oi=["main","nav","aside","footer","header",'[role="banner"]','[role="navigation"]','[role="main"]','[role="complementary"]','[role="contentinfo"]'];function Jt(){let e=[],t=new Set;return document.querySelectorAll(Oi.join(",")).forEach(s=>{if(t.has(s))return;t.add(s);let r=s.getAttribute("role")||s.tagName.toLowerCase(),a=s.getAttribute("aria-label")||r;e.push({tag:r,text:a,level:0,element:s})}),document.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(s=>{let r=s.tagName;if(!Pi.includes(r))return;let a=parseInt(r.charAt(1),10),l=(s.textContent??"").trim().slice(0,80);l&&e.push({tag:r.toLowerCase(),text:l,level:a,element:s})}),e}function Qt(e){e.scrollIntoView({behavior:"smooth",block:"center"}),e.focus({preventScroll:!0})}function ei(){let[e,t]=(0,U.useState)(!1),[n,o]=(0,U.useState)([]),s=(0,U.useCallback)(()=>{o(Jt()),t(!0)},[]),r=(0,U.useCallback)(()=>{t(!1)},[]),a=(0,U.useCallback)(()=>{e?r():s()},[e,s,r]),l=(0,U.useCallback)(c=>{Qt(c.element)},[]);return{isOpen:e,structure:n,toggle:a,open:s,close:r,navigateTo:l}}function Re(){let e=ht(),t=yt(),n=St(),o=Ct(),s=wt(),r=Et(),a=Tt(),l=Rt(),c=Ht(),f=Pt(),d=Dt(),b=Bt(),v=Vt(),x=$t(),h=Zt(),D=Xt(),E=qt(),p=ei(),H=u(),C=mt(H);return{contrast:e,textSize:t,language:n,colorblind:o,saturation:s,dyslexia:r,letterSpacing:a,lineHeight:l,fontWeight:c,highlight:f,animations:d,cursor:b,readingGuide:v,hideImages:x,textAlign:h,tts:D,profiles:E,pageStructure:p,hasActiveFeatures:C,resetAllFeatures:()=>{ae(),window.dispatchEvent(new CustomEvent("accessibilityReset",{detail:{timestamp:Date.now()}}))},currentSettings:H}}var k=require("react"),Ue="apea-fab-position",R=60,L=16,_i=6;function ue(e,t,n){return Math.max(t,Math.min(n,e))}function Wi(){try{let e=localStorage.getItem(Ue);if(!e)return null;let t=JSON.parse(e);if(t.vEdge!=="top"&&t.vEdge!=="bottom"||t.hEdge!=="left"&&t.hEdge!=="right"||typeof t.vOffset!="number"||typeof t.hOffset!="number"||isNaN(t.vOffset)||isNaN(t.hOffset))return localStorage.removeItem(Ue),null;let n=typeof window<"u"?window.innerWidth:1e3,o=typeof window<"u"?window.innerHeight:1e3,s=ue(t.hOffset,L,Math.max(L,n/2-R/2)),r=ue(t.vOffset,L,Math.max(L,o/2-R/2));return s>L&&r>L&&(s<r?s=L:r=L),{vEdge:t.vEdge,hEdge:t.hEdge,hOffset:s,vOffset:r}}catch{return null}}function Fi(e){try{localStorage.setItem(Ue,JSON.stringify(e))}catch{}}function zi(e){return Wi()??{vEdge:"bottom",hEdge:e==="bottom-right"?"right":"left",vOffset:32,hOffset:20}}function He(e,t,n){return{x:e.hEdge==="left"?e.hOffset:t-e.hOffset-R,y:e.vEdge==="top"?e.vOffset:n-e.vOffset-R}}function Di(e,t,n,o){let s=e,r=n-e-R,a=t,l=o-t-R,c=Math.min(s,r,a,l),f="left",d="top",b=L,v=L;return c===s||c===r?(f=c===s?"left":"right",b=L,d=a<=l?"top":"bottom",v=ue(d==="top"?t:l,L,o/2-R/2)):(d=c===a?"top":"bottom",v=L,f=s<=r?"left":"right",b=ue(f==="left"?e:r,L,n/2-R/2)),{hEdge:f,vEdge:d,hOffset:b,vOffset:v}}function Bi(e,t,n,o){let s=He(e,n,o);return{position:"fixed",top:`${s.y}px`,left:`${s.x}px`,cursor:t?"grabbing":"grab",userSelect:"none",touchAction:"none",transition:t?"none":"top 0.25s ease, left 0.25s ease"}}function ti({defaultPosition:e="bottom-left",onTap:t,disabled:n=!1}={}){let[o,s]=(0,k.useState)(()=>zi(e)),[r,a]=(0,k.useState)(!1),[l,c]=(0,k.useState)(()=>({w:typeof window<"u"?window.innerWidth:1e3,h:typeof window<"u"?window.innerHeight:1e3})),f=(0,k.useRef)(null),d=(0,k.useRef)(t);d.current=t;let b=(0,k.useRef)(o);b.current=o;let v=(0,k.useRef)(n);v.current=n,(0,k.useEffect)(()=>{let h=()=>{c({w:window.innerWidth,h:window.innerHeight})};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]);let x=(0,k.useCallback)((h,D)=>{if(v.current)return;let E=He(b.current,window.innerWidth,window.innerHeight),p=h-E.x,H=D-E.y,C=E.x,N=E.y,m=0;function oe(y,B){let se=ue(y-p,0,window.innerWidth-R),Fe=ue(B-H,0,window.innerHeight-R);m+=Math.abs(se-C)+Math.abs(Fe-N),C=se,N=Fe;let ze=f.current;ze&&(ze.style.top=`${Fe}px`,ze.style.left=`${se}px`)}function it(){ui();let y=f.current;if(m<_i){if(y){let B=He(b.current,window.innerWidth,window.innerHeight);y.style.transition="top 0.25s ease, left 0.25s ease",y.offsetHeight,y.style.top=`${B.y}px`,y.style.left=`${B.x}px`}a(!1),d.current?.()}else{let B=Di(C,N,window.innerWidth,window.innerHeight);if(Fi(B),y){y.style.transition="top 0.25s ease, left 0.25s ease",y.offsetHeight;let se=He(B,window.innerWidth,window.innerHeight);y.style.top=`${se.y}px`,y.style.left=`${se.x}px`}a(!1),s(B)}}function nt(y){oe(y.clientX,y.clientY)}function ot(y){y.preventDefault(),oe(y.touches[0].clientX,y.touches[0].clientY)}function st(){it()}function rt(){it()}function ui(){window.removeEventListener("mousemove",nt),window.removeEventListener("mouseup",st),window.removeEventListener("touchmove",ot),window.removeEventListener("touchend",rt)}window.addEventListener("mousemove",nt),window.addEventListener("mouseup",st),window.addEventListener("touchmove",ot,{passive:!1}),window.addEventListener("touchend",rt),a(!0)},[]);return{fabStyle:Bi(o,r,l.w,l.h),isDragging:r,fabRef:f,dragHandlers:{onMouseDown:h=>{h.button!==0||v.current||(h.preventDefault(),x(h.clientX,h.clientY))},onTouchStart:h=>{v.current||x(h.touches[0].clientX,h.touches[0].clientY)}}}}var oi=require("react");var Oe=require("react/jsx-runtime");function Pe({title:e,children:t}){return(0,Oe.jsxs)("section",{className:"px-4 py-3",children:[(0,Oe.jsx)("h3",{className:"text-xs font-semibold text-blue-700 uppercase tracking-wider mb-3",children:e}),t]})}var he=require("react/jsx-runtime");function S({icon:e,label:t,isActive:n,onClick:o,disabled:s=!1,className:r}){return(0,he.jsxs)("button",{type:"button",onClick:s?void 0:o,disabled:s,"aria-pressed":n,"aria-label":t,className:V("flex flex-col items-center justify-center gap-1.5 rounded-3xl p-3 shadow-lg text-center cursor-pointer transition-all","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-1 focus:bg-blue-50",n?"ring-2 ring-green-500 bg-green-50 text-blue-900":"border-gray-200 bg-white text-gray-700 hover:ring-2 hover:ring-blue-300 hover:bg-blue-50",s&&"cursor-not-allowed opacity-40",r),children:[(0,he.jsx)("span",{className:V("h-6 w-6",n?"text-blue-700":"text-gray-500"),children:e}),(0,he.jsx)("span",{className:"text-base font-medium leading-tight",children:t})]})}var ge=require("react/jsx-runtime");function ii({percentage:e,onIncrease:t,onDecrease:n,onReset:o,canIncrease:s,canDecrease:r}){return(0,ge.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ge.jsx)("button",{type:"button",onClick:n,disabled:!r,"aria-label":"Reducir tama\xF1o de texto",className:"flex h-9 w-9 items-center justify-center rounded-lg border border-gray-200 bg-white text-lg font-bold text-blue-700 cursor-pointer transition hover:border-blue-400 hover:bg-blue-50 disabled:cursor-not-allowed disabled:opacity-40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500",children:"\u2212"}),(0,ge.jsxs)("button",{type:"button",onClick:o,"aria-label":"Restablecer tama\xF1o de texto",className:"flex-1 rounded-lg border border-gray-200 bg-white py-2 text-center text-sm font-semibold text-blue-900 cursor-pointer transition hover:border-blue-400 hover:bg-blue-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500",children:[e,"%"]}),(0,ge.jsx)("button",{type:"button",onClick:t,disabled:!s,"aria-label":"Aumentar tama\xF1o de texto",className:"flex h-9 w-9 items-center justify-center rounded-lg border border-gray-200 bg-white text-lg font-bold text-blue-700 cursor-pointer transition hover:border-blue-400 hover:bg-blue-50 disabled:cursor-not-allowed disabled:opacity-40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500",children:"+"})]})}var i=require("react/jsx-runtime");function si({onClose:e}){let[t,n]=(0,oi.useState)(!1),{contrast:o,textSize:s,saturation:r,dyslexia:a,letterSpacing:l,lineHeight:c,fontWeight:f,highlight:d,animations:b,cursor:v,readingGuide:x,colorblind:h,hideImages:D,textAlign:E,tts:p,profiles:H,pageStructure:C,resetAllFeatures:N}=Re();return(0,i.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Men\xFA de Accesibilidad",className:"flex flex-col h-full overflow-hidden",style:{backgroundColor:"var(--apea-color-panel-bg, #f9fafb)"},children:[(0,i.jsxs)("div",{className:"flex items-center justify-between apea-gradient px-4 py-3 shrink-0",children:[(0,i.jsx)("h2",{className:"text-sm font-bold text-white tracking-wide",children:"Men\xFA de Accesibilidad"}),(0,i.jsx)("div",{className:"flex items-center gap-2",children:(0,i.jsx)("button",{type:"button",onClick:e,"aria-label":"Cerrar men\xFA de accesibilidad",className:"flex h-8 w-8 items-center justify-center rounded-full border border-white/30 text-white cursor-pointer transition hover:bg-white/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white",children:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.2,className:"h-4 w-4","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M18 6 6 18M6 6l12 12",strokeLinecap:"round",strokeLinejoin:"round"})})})})]}),(0,i.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,i.jsxs)("section",{className:"px-4 py-3",children:[(0,i.jsxs)("button",{type:"button",onClick:()=>n(m=>!m),"aria-expanded":t,className:"flex w-full items-center justify-between text-xs font-semibold text-blue-700 uppercase tracking-wider cursor-pointer",children:["Perfiles de accesibilidad",(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:`h-4 w-4 transition-transform duration-300 ease-in-out ${t?"rotate-180":""}`,"data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M6 9l6 6 6-6",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,i.jsx)("div",{className:`grid transition-[grid-template-rows] duration-300 ease-in-out ${t?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:(0,i.jsx)("div",{className:"overflow-hidden pb-5 px-2 -mx-2",children:(0,i.jsx)("div",{className:`grid grid-cols-2 gap-2 pt-3 transition-opacity duration-300 ease-in-out ${t?"opacity-100":"opacity-0"}`,children:Object.keys(Ze).map(m=>(0,i.jsx)(S,{icon:(0,i.jsx)(an,{profile:m}),label:Ze[m],isActive:H.activeProfile===m,onClick:()=>H.applyProfile(m)},m))})})})]}),(0,i.jsxs)(Pe,{title:"Ajustes de contenido",children:[(0,i.jsxs)("div",{className:"mb-3 rounded-xl border border-gray-200 bg-white p-3",children:[(0,i.jsxs)("div",{className:"mb-2 flex items-center gap-2 text-sm font-medium text-gray-700",children:[(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-4 w-4 shrink-0","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M4 7V4h16v3M9 20h6M12 4v16",strokeLinecap:"round",strokeLinejoin:"round"})}),"Tama\xF1o de fuente"]}),(0,i.jsx)(ii,{percentage:s.textSizePercentage,onIncrease:s.increaseTextSize,onDecrease:s.decreaseTextSize,onReset:s.resetTextSize,canIncrease:s.canIncrease,canDecrease:s.canDecrease})]}),(0,i.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,i.jsx)(S,{icon:(0,i.jsx)(Vi,{}),label:"Resaltar t\xEDtulos",isActive:d.isTitlesActive,onClick:d.toggleTitles}),(0,i.jsx)(S,{icon:(0,i.jsx)(Gi,{}),label:"Resaltar enlaces",isActive:d.isLinksActive,onClick:d.toggleLinks}),(0,i.jsx)(S,{icon:(0,i.jsx)($i,{}),label:"Fuente dislexia",isActive:a.isActive,onClick:a.toggle}),(0,i.jsx)(ni,{icon:(0,i.jsx)(Zi,{}),label:"Esp. de letras",level:l.level,onIncrease:l.increase,onDecrease:l.decrease,canIncrease:l.canIncrease,canDecrease:l.canDecrease}),(0,i.jsx)(ni,{icon:(0,i.jsx)(ji,{}),label:"Interlineado",level:c.level,onIncrease:c.increase,onDecrease:c.decrease,canIncrease:c.canIncrease,canDecrease:c.canDecrease}),(0,i.jsx)(S,{icon:(0,i.jsx)(Ui,{}),label:"Fuente negrita",isActive:f.isBold,onClick:f.toggle}),(0,i.jsx)(S,{icon:(0,i.jsx)(tn,{}),label:"Ocultar im\xE1genes",isActive:D.isActive,onClick:D.toggle}),(0,i.jsx)(S,{icon:(0,i.jsx)(nn,{mode:E.mode}),label:`Alinear: ${E.label}`,isActive:E.isActive,onClick:E.cycle})]})]}),(0,i.jsxs)(Pe,{title:"Ajustes de color",children:[(0,i.jsxs)("div",{className:"grid grid-cols-3 gap-2 mb-3",children:[(0,i.jsx)(S,{icon:(0,i.jsx)(Xi,{}),label:"Alto contraste",isActive:o.isHighContrast,onClick:()=>o.setContrastMode(o.isHighContrast?"normal":"high")}),(0,i.jsx)(S,{icon:(0,i.jsx)(Yi,{}),label:"Alta saturaci\xF3n",isActive:r.saturationMode==="high",onClick:()=>r.setSaturationMode(r.saturationMode==="high"?"normal":"high")}),(0,i.jsx)(S,{icon:(0,i.jsx)(Ki,{}),label:"Baja saturaci\xF3n",isActive:r.saturationMode==="low",onClick:()=>r.setSaturationMode(r.saturationMode==="low"?"normal":"low")}),(0,i.jsx)(S,{icon:(0,i.jsx)(qi,{}),label:"Monocromo",isActive:r.saturationMode==="mono",onClick:()=>r.setSaturationMode(r.saturationMode==="mono"?"normal":"mono")})]}),(0,i.jsx)("p",{className:"mb-2 text-xs font-medium text-gray-500 uppercase tracking-wide hidden",children:"Daltonismo"}),(0,i.jsx)("div",{className:"grid grid-cols-2 gap-2 hidden",children:[["protanopia","Protanop\xEDa"],["deuteranopia","Deuteranop\xEDa"],["tritanopia","Tritanop\xEDa"],["achromatopsia","Acromatopsia"]].map(([m,oe])=>(0,i.jsx)(S,{icon:(0,i.jsx)(rn,{mode:m}),label:oe,isActive:h.colorblindMode===m,onClick:()=>h.setColorblindMode(h.colorblindMode===m?"normal":m)},m))})]}),(0,i.jsxs)(Pe,{title:"Herramientas",children:[(0,i.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,i.jsx)(S,{icon:(0,i.jsx)(Ji,{}),label:"Gu\xEDa de lectura",isActive:x.isActive,onClick:x.toggle}),(0,i.jsx)(S,{icon:(0,i.jsx)(Qi,{}),label:"Pausar animaciones",isActive:b.isActive,onClick:b.toggle}),(0,i.jsx)(S,{icon:(0,i.jsx)(en,{}),label:"Cursor grande",isActive:v.isActive,onClick:v.toggle}),(0,i.jsx)(S,{icon:(0,i.jsx)(on,{}),label:p.isReading?"Detener lectura":"Leer p\xE1gina",isActive:p.isReading,onClick:p.toggle,disabled:!p.isSupported}),(0,i.jsx)(S,{icon:(0,i.jsx)(sn,{}),label:"Estructura",isActive:C.isOpen,onClick:C.toggle})]}),C.isOpen&&C.structure.length>0&&(0,i.jsxs)("div",{className:"mt-3 rounded-xl border border-gray-200 bg-white p-3 max-h-60 overflow-y-auto",children:[(0,i.jsx)("p",{className:"mb-2 text-xs font-medium text-gray-500 uppercase tracking-wide",children:"Estructura de la p\xE1gina"}),(0,i.jsx)("ul",{className:"space-y-1",children:C.structure.map((m,oe)=>(0,i.jsx)("li",{children:(0,i.jsxs)("button",{type:"button",onClick:()=>C.navigateTo(m),className:"w-full text-left px-2 py-1.5 rounded-lg text-sm hover:bg-blue-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 transition-colors",style:{paddingLeft:`${(m.level||1)*12}px`},children:[(0,i.jsx)("span",{className:"inline-block mr-2 text-xs font-mono text-blue-600 bg-blue-100 px-1.5 py-0.5 rounded",children:m.tag}),(0,i.jsx)("span",{className:"text-gray-700",children:m.text})]})},`${m.tag}-${oe}`))})]}),C.isOpen&&C.structure.length===0&&(0,i.jsx)("div",{className:"mt-3 rounded-xl border border-gray-200 bg-white p-3",children:(0,i.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"No se encontraron encabezados"})})]})]}),(0,i.jsx)("section",{className:"px-4 pb-6 pt-2",children:(0,i.jsx)("button",{type:"button",onClick:N,className:"w-full rounded-xl apea-gradient py-3 text-sm font-semibold text-white cursor-pointer transition hover:bg-none hover:bg-green-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",children:"Restablecer configuraci\xF3n"})})]})}function ni({icon:e,label:t,level:n,onIncrease:o,onDecrease:s,canIncrease:r,canDecrease:a}){let l=n>0;return(0,i.jsxs)("div",{className:`flex flex-col items-center justify-between gap-1 rounded-3xl border p-2 shadow-md/20 text-center transition-all ${l?"border-yellow-500 bg-yellow-50 text-blue-900":"border-gray-200 bg-white text-gray-700"}`,children:[(0,i.jsx)("span",{className:"h-5 w-5 text-gray-500",children:e}),(0,i.jsx)("span",{className:"text-sm font-medium leading-tight",children:t}),(0,i.jsxs)("div",{className:"flex items-center gap-1 w-full justify-center",children:[(0,i.jsx)("button",{type:"button",onClick:s,disabled:!a,"aria-label":`Reducir ${t}`,className:"flex h-5 w-5 items-center justify-center rounded text-xs font-bold text-blue-700 cursor-pointer hover:bg-blue-100 disabled:opacity-30 focus-visible:outline-none",children:"\u2212"}),(0,i.jsx)("span",{className:"w-4 text-center text-sm font-semibold tabular-nums",children:n}),(0,i.jsx)("button",{type:"button",onClick:o,disabled:!r,"aria-label":`Aumentar ${t}`,className:"flex h-5 w-5 items-center justify-center rounded text-xs font-bold text-blue-700 cursor-pointer hover:bg-blue-100 disabled:opacity-30 focus-visible:outline-none",children:"+"})]})]})}function Vi(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M4 6h16M4 12h8M4 18h12",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M15 14l5 5M20 14l-5 5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Gi(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",strokeLinecap:"round",strokeLinejoin:"round"})]})}function $i(){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M4 7l4 10 4-10M20 7v10M17 7h6",strokeLinecap:"round",strokeLinejoin:"round"})})}function Zi(){return(0,i.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"m20.003 16.975-2.027 2.028m.113-3.943 1.914 1.915m-16.006 0 2.027-2.029m-.113 3.944-1.914-1.915m0 0h16.006m-2-5.975L15.16 4.997 12.317 11m.568-1.2h4.547M4.997 4.997 7.84 11l2.843-6.003",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})}function ji(){return(0,i.jsxs)("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M12.754 4a.75.75 0 0 1 .75-.75H20.5a.75.75 0 0 1 0 1.5h-6.996a.75.75 0 0 1-.75-.75m7.746 9.917h-6.996a.75.75 0 0 0 0 1.5H20.5a.75.75 0 0 0 0-1.5m-6.996 5.333a.75.75 0 0 0 0 1.5H20.5a.75.75 0 0 0 0-1.5zm6.996-9.167h-6.996a.75.75 0 0 1 0-1.5H20.5a.75.75 0 0 1 0 1.5",opacity:.4,fill:"#323544"}),(0,i.jsx)("path",{d:"m9.974 16.47-1.722 1.72V5.81l1.722 1.72a.75.75 0 0 0 1.06-1.06l-3.002-3a.75.75 0 0 0-1.06 0l-3.002 3a.75.75 0 0 0 1.06 1.06l1.722-1.72v12.38L5.03 16.47a.75.75 0 0 0-1.06 1.06l3.002 3a.75.75 0 0 0 1.06 0l3.002-3a.75.75 0 0 0-1.06-1.06",fill:"#323544"})]})}function Ui(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"}),(0,i.jsx)("path",{d:"M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"})]})}function Xi(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,i.jsx)("path",{d:"M12 3v18"}),(0,i.jsx)("path",{d:"M12 3a9 9 0 0 1 0 18V3z",fill:"currentColor",stroke:"none"})]})}function Yi(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,i.jsx)("path",{d:"M12 4v16M8 8l8 8M4 12h16",strokeLinecap:"round",strokeOpacity:.4}),(0,i.jsx)("circle",{cx:"12",cy:"12",r:"4",fill:"currentColor"})]})}function Ki(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,i.jsx)("circle",{cx:"12",cy:"12",r:"3",strokeDasharray:"2 2"})]})}function qi(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),(0,i.jsx)("path",{d:"M3 12h18M12 5v14"}),(0,i.jsx)("path",{d:"M3 5h9v14H3z",fill:"currentColor",fillOpacity:.15,stroke:"none"})]})}function Ji(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M3 18h18",strokeWidth:3,strokeLinecap:"round"})]})}function Qi(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,i.jsx)("rect",{x:"9",y:"9",width:"2",height:"6",fill:"currentColor",stroke:"none"}),(0,i.jsx)("rect",{x:"13",y:"9",width:"2",height:"6",fill:"currentColor",stroke:"none"})]})}function en(){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-full w-full","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M5 3l14 9-7.5 1.5L9 20l-4-17z"})})}function tn(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,i.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"currentColor",stroke:"none"}),(0,i.jsx)("path",{d:"M21 15l-5-5L5 21",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M2 2l20 20",strokeLinecap:"round",strokeWidth:2.5})]})}function nn({mode:e}){return e==="center"?(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M6 6h12M8 10h8M6 14h12M8 18h8",strokeLinecap:"round"})}):e==="right"?(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M4 6h16M8 10h12M4 14h16M8 18h12",strokeLinecap:"round"})}):(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:(0,i.jsx)("path",{d:"M4 6h16M4 10h12M4 14h16M4 18h12",strokeLinecap:"round"})})}function on(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M11 5L6 9H2v6h4l5 4V5z",fill:"currentColor",stroke:"none"}),(0,i.jsx)("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14",strokeLinecap:"round"})]})}function sn(){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M4 6h16M4 10h12M8 14h12M8 18h8",strokeLinecap:"round"}),(0,i.jsx)("circle",{cx:"4",cy:"14",r:"1",fill:"currentColor",stroke:"none"}),(0,i.jsx)("circle",{cx:"4",cy:"18",r:"1",fill:"currentColor",stroke:"none"})]})}function rn({mode:e}){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,i.jsx)("path",{d:"M12 3c-3 4-3 10 0 18",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M12 3c3 4 3 10 0 18",strokeLinecap:"round"}),e==="achromatopsia"?(0,i.jsx)("path",{d:"M3 12h18"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M4 8h16",strokeOpacity:.4}),(0,i.jsx)("path",{d:"M4 16h16",strokeOpacity:.4})]})]})}function an({profile:e}){switch(e){case"visionImpaired":return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,i.jsx)("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor"})]});case"cognitive":return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("path",{d:"M12 2a7 7 0 0 1 7 7c0 3-2 5-3 7h-8c-1-2-3-4-3-7a7 7 0 0 1 7-7z"}),(0,i.jsx)("path",{d:"M9 16v2a3 3 0 0 0 6 0v-2"})]});case"motorImpaired":return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"4",r:"2",fill:"currentColor"}),(0,i.jsx)("path",{d:"M12 6v6l4 4M12 12l-4 4",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("circle",{cx:"8",cy:"20",r:"2"}),(0,i.jsx)("circle",{cx:"16",cy:"20",r:"2"})]});case"seniorFriendly":return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-full w-full","data-a11y-icon":!0,children:[(0,i.jsx)("circle",{cx:"12",cy:"4",r:"2",fill:"currentColor"}),(0,i.jsx)("path",{d:"M12 6v8M12 14l-3 6M12 14l3 6M12 10h-2l-3 4M12 10h2",strokeLinecap:"round",strokeLinejoin:"round"})]});default:return null}}var T=require("react/jsx-runtime");function Xe({position:e="bottom-left",className:t}={}){let[n,o]=(0,_e.useState)(!1),{hasActiveFeatures:s}=Re(),{fabStyle:r,isDragging:a,fabRef:l,dragHandlers:c}=ti({defaultPosition:e,onTap:()=>o(d=>!d),disabled:n});(0,_e.useEffect)(()=>{if(!n)return;let d=b=>{b.key==="Escape"&&o(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[n]);let f=n||s?"var(--apea-color-fab-active, #FFD54F)":"var(--apea-color-fab-inactive, #F6F6F6)";return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{ref:l,className:t,style:{...r,zIndex:n?30:50,opacity:a?.85:1,filter:s?"drop-shadow(0 4px 12px rgba(255, 213, 79, 0.3))":"none"},role:"button",tabIndex:0,"aria-expanded":n,"aria-haspopup":"dialog","aria-label":`Accesibilidad - ${s?"Funciones activas":"Sin funciones activas"}`,...c,onKeyDown:d=>{n||(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),o(!0))},children:(0,T.jsx)(De,{size:"lg","aria-hidden":"true",tabIndex:-1,leftIcon:(0,T.jsx)(ut,{className:"w-full z-50",color:f,stroke:f})})}),(0,T.jsx)("div",{className:"fixed inset-0 z-40 apea-backdrop",style:{backgroundColor:"var(--apea-color-backdrop, rgba(0, 0, 0, 0.2))"},"data-visible":n?"true":"false",onClick:()=>o(!1),"aria-hidden":"true"}),(0,T.jsx)("div",{role:"none",className:"fixed inset-y-0 right-0 z-50 w-full max-w-sm shadow-2xl apea-panel","data-open":n?"true":"false",children:(0,T.jsx)(si,{onClose:()=>o(!1)})})]})}var Ke=require("react/jsx-runtime"),cn={primary500:"#005dca",primary600:"#004faf",primary700:"#003b8a",panelBackground:"#f9fafb",fabActive:"#ffd54f",fabInactive:"#f6f6f6",backdrop:"rgba(0, 0, 0, 0.2)"};function Ye(e){return{...cn,...e}}function ln(e,t){return{...e,...t,theme:{...e.theme??{},...t.theme??{}}}}function ri(e,t){e.style.setProperty("--apea-color-primary-500",t.primary500),e.style.setProperty("--apea-color-primary-600",t.primary600),e.style.setProperty("--apea-color-primary-700",t.primary700),e.style.setProperty("--apea-color-panel-bg",t.panelBackground),e.style.setProperty("--apea-color-fab-active",t.fabActive),e.style.setProperty("--apea-color-fab-inactive",t.fabInactive),e.style.setProperty("--apea-color-backdrop",t.backdrop)}function ci(e={}){let t={position:e.position||"bottom-left",zIndex:e.zIndex||9999,containerId:e.containerId||"ape-accessibility-root",theme:Ye(e.theme)},n=Ye(t.theme),o=t.containerId||"ape-accessibility-root";if(document.getElementById(o))return console.warn("[ape-accessibility] Widget already mounted. Call destroy() first."),{destroy:()=>{},updateConfig:()=>{},config:e};let s=document.createElement("style");s.id="ape-accessibility-tools-css",s.textContent=`/* ============================================= */
|
|
9
9
|
/* Accessibility Feature Styles */
|
|
10
10
|
/* ============================================= */
|
|
11
11
|
|
|
@@ -163,8 +163,8 @@
|
|
|
163
163
|
:root[data-text-align='right'] * {
|
|
164
164
|
text-align: right !important;
|
|
165
165
|
}
|
|
166
|
-
`,document.head.appendChild(s);let r=document.createElement("div");r.id=o,r.setAttribute("data-a11y-icon",""),r.style.position="fixed",r.style.zIndex=String(t.zIndex||9999),r.style.top="0",r.style.left="0",r.style.width="0",r.style.height="0",r.style.overflow="visible",
|
|
167
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-500:#fec905;--color-green-50:oklch(98.2% .018 155.826);--color-green-500:#0a0;--color-blue-50:#eef5ff;--color-blue-100:#cfe5ff;--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#7cb8ff;--color-blue-500:#005dca;--color-blue-600:#004faf;--color-blue-700:#003b8a;--color-blue-900:#002e64;--color-gray-200:oklch(92.8% .006 264.531);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--radius-lg:.5rem;--radius-xl:.75rem;--radius-3xl:1.5rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.right-0{right:calc(var(--spacing) * 0)}.right-5{right:calc(var(--spacing) * 5)}.bottom-8{bottom:calc(var(--spacing) * 8)}.left-5{left:calc(var(--spacing) * 5)}.z-40{z-index:40}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.ml-2{margin-left:calc(var(--spacing) * 2)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-\\[40px\\]{height:40px}.h-\\[60px\\]{height:60px}.h-full{height:100%}.max-h-60{max-height:calc(var(--spacing) * 60)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-\\[40px\\]{width:40px}.w-\\[60px\\]{width:60px}.w-full{width:100%}.max-w-sm{max-width:var(--container-sm)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.rotate-180{rotate:180deg}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\\[30px\\]{border-radius:30px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.border-white\\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.border-white\\/30{border-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.border-yellow-500{border-color:var(--color-yellow-500)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-green-50{background-color:var(--color-green-50)}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.p-0{padding:calc(var(--spacing) * 0)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-nowrap{white-space:nowrap}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-900{color:var(--color-blue-900)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow-md\\/20{--tw-shadow-alpha:20%;--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,oklab(0% 0 0/.2)), 0 2px 4px -2px var(--tw-shadow-color,oklab(0% 0 0/.2));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-green-500{--tw-ring-color:var(--color-green-500)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}@media (hover:hover){.hover\\:border-blue-400:hover{border-color:var(--color-blue-400)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\\:bg-green-500:hover{background-color:var(--color-green-500)}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.hover\\:bg-none:hover{background-image:none}.hover\\:font-semibold:hover{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.hover\\:ring-2:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:ring-blue-300:hover{--tw-ring-color:var(--color-blue-300)}.hover\\:ring-yellow-500:hover{--tw-ring-color:var(--color-yellow-500)}}.focus\\:bg-blue-50:focus{background-color:var(--color-blue-50)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-blue-500:focus-visible{--tw-ring-color:var(--color-blue-500)}.focus-visible\\:ring-white:focus-visible{--tw-ring-color:var(--color-white)}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x) var(--tw-scale-y)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-30:disabled{opacity:.3}.disabled\\:opacity-40:disabled{opacity:.4}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
|
|
166
|
+
`,document.head.appendChild(s);let r=document.createElement("div");r.id=o,r.setAttribute("data-a11y-icon",""),r.style.position="fixed",r.style.zIndex=String(t.zIndex||9999),r.style.top="0",r.style.left="0",r.style.width="0",r.style.height="0",r.style.overflow="visible",ri(r,n),document.body.appendChild(r);let a=r.attachShadow({mode:"open"}),l=document.createElement("style");l.textContent=`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
167
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-500:#fec905;--color-green-50:oklch(98.2% .018 155.826);--color-green-500:#0a0;--color-blue-50:#eef5ff;--color-blue-100:#cfe5ff;--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#7cb8ff;--color-blue-500:#005dca;--color-blue-600:#004faf;--color-blue-700:#003b8a;--color-blue-900:#002e64;--color-gray-200:oklch(92.8% .006 264.531);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--radius-lg:.5rem;--radius-xl:.75rem;--radius-3xl:1.5rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.right-0{right:calc(var(--spacing) * 0)}.right-5{right:calc(var(--spacing) * 5)}.bottom-8{bottom:calc(var(--spacing) * 8)}.left-5{left:calc(var(--spacing) * 5)}.z-40{z-index:40}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.ml-2{margin-left:calc(var(--spacing) * 2)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-\\[40px\\]{height:40px}.h-\\[60px\\]{height:60px}.h-full{height:100%}.max-h-60{max-height:calc(var(--spacing) * 60)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-\\[40px\\]{width:40px}.w-\\[60px\\]{width:60px}.w-full{width:100%}.max-w-sm{max-width:var(--container-sm)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.rotate-180{rotate:180deg}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\\[30px\\]{border-radius:30px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.border-white\\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.border-white\\/30{border-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.border-yellow-500{border-color:var(--color-yellow-500)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-green-50{background-color:var(--color-green-50)}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.p-0{padding:calc(var(--spacing) * 0)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-nowrap{white-space:nowrap}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-900{color:var(--color-blue-900)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow-md\\/20{--tw-shadow-alpha:20%;--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,oklab(0% 0 0/.2)), 0 2px 4px -2px var(--tw-shadow-color,oklab(0% 0 0/.2));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-green-500{--tw-ring-color:var(--color-green-500)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}@media (hover:hover){.hover\\:border-blue-400:hover{border-color:var(--color-blue-400)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\\:bg-green-500:hover{background-color:var(--color-green-500)}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.hover\\:bg-none:hover{background-image:none}.hover\\:font-semibold:hover{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.hover\\:ring-2:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:ring-blue-300:hover{--tw-ring-color:var(--color-blue-300)}.hover\\:ring-yellow-500:hover{--tw-ring-color:var(--color-yellow-500)}}.focus\\:bg-blue-50:focus{background-color:var(--color-blue-50)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-blue-500:focus-visible{--tw-ring-color:var(--color-blue-500)}.focus-visible\\:ring-white:focus-visible{--tw-ring-color:var(--color-white)}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x) var(--tw-scale-y)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-30:disabled{opacity:.3}.disabled\\:opacity-40:disabled{opacity:.4}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
|
|
168
168
|
/* Widget animation styles */
|
|
169
169
|
|
|
170
170
|
/* FAB button */
|
|
@@ -207,5 +207,5 @@
|
|
|
207
207
|
var(--apea-color-primary-700, var(--color-blue-700)) 80%
|
|
208
208
|
);
|
|
209
209
|
}
|
|
210
|
-
`,a.appendChild(
|
|
210
|
+
`,a.appendChild(l);let c=document.createElement("div");a.appendChild(c);let f=(0,ai.createRoot)(c);return f.render((0,Ke.jsx)(Xe,{position:t.position})),{updateConfig(d){t=ln(t,d),n=Ye(t.theme),r.style.zIndex=String(t.zIndex||9999),ri(r,n),f&&f.render((0,Ke.jsx)(Xe,{position:t.position}))},destroy(){f&&(f.unmount(),f=null),r.remove(),s.remove()},get config(){return t}}}var z=null,X={};function li(e,t){return{...e,...t,theme:{...e.theme??{},...t.theme??{}}}}function qe(e={}){return z?(console.warn("[ape-accessibility] Already initialized. Call destroy() first."),z):(X=li(X,e),z=ci(X),z)}function Je(){z&&(z.destroy(),z=null)}function Qe(){return u()}function et(e={}){return X=li(X,e),z&&z.updateConfig(X),We()}function We(){return{...X,theme:{...X.theme??{}}}}function tt(){ae(),typeof window<"u"&&window.dispatchEvent(new CustomEvent("accessibilityReset",{detail:{timestamp:Date.now()}}))}var be={init:qe,destroy:Je,getSettings:Qe,resetAllSettings:tt,configure:et,getConfig:We};var fe=require("react");function di({config:e={}}){let t=(0,fe.useRef)(null),n=(0,fe.useRef)(!1);return(0,fe.useEffect)(()=>(n.current=!1,t.current=be.init(e),()=>{n.current=!0,t.current?.destroy(),t.current=null}),[]),(0,fe.useEffect)(()=>{n.current||be.configure(e)},[e]),null}0&&(module.exports={AccessibilityWidget,accessibility,configure,destroy,getConfig,getSettings,init,resetAllSettings});
|
|
211
211
|
//# sourceMappingURL=index.cjs.map
|