1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,277967,e=>{e.v({active:"FiltroAlfabetico-module-scss-module__ko7rHG__active","blink-animation":"FiltroAlfabetico-module-scss-module__ko7rHG__blink-animation",filtroAlfabetico:"FiltroAlfabetico-module-scss-module__ko7rHG__filtroAlfabetico",filtroAlfabetico__button:"FiltroAlfabetico-module-scss-module__ko7rHG__filtroAlfabetico__button",filtroAlfabetico__button__todos:"FiltroAlfabetico-module-scss-module__ko7rHG__filtroAlfabetico__button__todos",filtroAlfabetico__label:"FiltroAlfabetico-module-scss-module__ko7rHG__filtroAlfabetico__label",filtroAlfabetico__letrasContainer:"FiltroAlfabetico-module-scss-module__ko7rHG__filtroAlfabetico__letrasContainer"})},994839,e=>{"use strict";var t=e.i(843476),a=e.i(277967),i=e.i(522016),r=e.i(10655);e.s(["default",0,function({letter:e,overrideUrl:s,className:n,selected:o,variant:l}){let c="autores";return(0,t.jsx)(i.default,{prefetch:!1,href:`https://www.planetadelibros.com.mx/${s?`${s}`:`${c}/${e}`}`,className:`${n||""} ${o?a.default.active:""}`,onClick:t=>{"planeta"===l&&(0,r.filtroLetrasAutoresEvent)({tipoPagina:"author",urlPagina:`/${c}`,filtroLetra:e})},scroll:!1,children:e})}])},844860,e=>{e.v({"blink-animation":"ButtonLimpiarFiltros-module-scss-module__Mi1Cca__blink-animation",cleanfilters:"ButtonLimpiarFiltros-module-scss-module__Mi1Cca__cleanfilters",cleanfilters__icon:"ButtonLimpiarFiltros-module-scss-module__Mi1Cca__cleanfilters__icon"})},98606,e=>{"use strict";var t,a,i=e.i(843476),r=e.i(844860),s=e.i(936540),n=e.i(271645);function o(){return(o=Object.assign.bind()).apply(null,arguments)}let l=function(e){return n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 15"},e),t||(t=n.createElement("path",{fill:"currentColor",d:"M5.2 5.932c.359 0 .65.295.65.659v3.954c0 .364-.291.66-.65.66a.655.655 0 0 1-.65-.66V6.591c0-.364.29-.66.65-.66M8.45 6.59a.655.655 0 0 0-.65-.658.655.655 0 0 0-.65.659v3.954c0 .364.29.66.65.66.359 0 .65-.296.65-.66z"})),a||(a=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.75 1.977v.66h2.6c.359 0 .65.295.65.659s-.291.659-.65.659h-.65v8.568c0 .524-.205 1.027-.57 1.398-.367.37-.863.579-1.38.579h-6.5a1.94 1.94 0 0 1-1.379-.58 2 2 0 0 1-.57-1.397V3.955H.65a.655.655 0 0 1-.65-.66c0-.363.291-.658.65-.658h2.6v-.66c0-.524.206-1.027.571-1.398C4.187.21 4.683 0 5.201 0h2.6c.516 0 1.012.208 1.378.58.366.37.571.873.571 1.397m-5.01-.466a.65.65 0 0 1 .46-.193h2.6c.173 0 .338.07.46.193.122.124.19.291.19.466v.66h-3.9v-.66c0-.175.069-.342.19-.466M2.6 3.955v8.568c0 .175.069.342.19.466a.65.65 0 0 0 .46.193h6.5c.173 0 .338-.07.46-.193a.66.66 0 0 0 .19-.466V3.955z",clipRule:"evenodd"})))};var c=e.i(618566);e.s(["default",0,function({label:e}){let t=(0,c.usePathname)(),{replace:a}=(0,c.useRouter)();return(0,i.jsxs)(s.default,{variant:"secondary",size:"small",className:r.default.cleanfilters,onClick:()=>{a(`${t}`,{scroll:!1})},children:[(0,i.jsx)("span",{className:r.default.cleanfilters__icon,children:(0,i.jsx)(l,{})}),e]})}],98606)},756832,e=>{e.v({"blink-animation":"OpenCollapsedSidebarButton-module-scss-module__2SHMsq__blink-animation",mostrarFiltros:"OpenCollapsedSidebarButton-module-scss-module__2SHMsq__mostrarFiltros",mostrarFiltros__icon:"OpenCollapsedSidebarButton-module-scss-module__2SHMsq__mostrarFiltros__icon"})},157799,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let i=(0,a.createContext)(null);e.s(["CollapsibleSidebarContext",0,i,"CollapsibleSidebarProvider",0,({children:e})=>{let[r,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>(r?document.body.classList.add("open-sidebar"):document.body.classList.remove("open-sidebar"),()=>document.body.classList.remove("open-sidebar")),[r]),(0,t.jsx)(i.Provider,{value:{isOpen:r,closeSidebar:()=>{s(!1)},openSidebar:()=>{s(!0)}},children:e})},"useCollapsibleSidebarContext",0,function(){let e=(0,a.useContext)(i);if(!e)throw Error("useCollapsibleSidebarContext must be used within a CollapsibleSidebarProvider");return e}])},954995,e=>{e.v({active:"CollapsableSidebar-module-scss-module__UFA6mq__active",bfrSidebarLibros__title:"CollapsableSidebar-module-scss-module__UFA6mq__bfrSidebarLibros__title","blink-animation":"CollapsableSidebar-module-scss-module__UFA6mq__blink-animation",collapsableSidebar:"CollapsableSidebar-module-scss-module__UFA6mq__collapsableSidebar",collapsableSidebar__closeButton:"CollapsableSidebar-module-scss-module__UFA6mq__collapsableSidebar__closeButton",collapsableSidebar__sidebar:"CollapsableSidebar-module-scss-module__UFA6mq__collapsableSidebar__sidebar",sidebar:"CollapsableSidebar-module-scss-module__UFA6mq__sidebar",sidebar__content:"CollapsableSidebar-module-scss-module__UFA6mq__sidebar__content",sidebar__footer:"CollapsableSidebar-module-scss-module__UFA6mq__sidebar__footer",sidebar__title:"CollapsableSidebar-module-scss-module__UFA6mq__sidebar__title"})},903823,e=>{"use strict";var t,a=e.i(843476),i=e.i(936540),r=e.i(756832),s=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}let o=function(e){return s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=s.createElement("path",{fill:"currentColor",d:"M14.157 3.066A1 1 0 0 0 14 3.054H2a1 1 0 1 0 0 2h12q.086 0 .169-.014A3 3 0 0 0 17 7.071a3 3 0 0 0 2.831-2.031q.082.014.169.014h2a1 1 0 1 0 0-2h-2q-.08 0-.157.012A3 3 0 0 0 17 1a3 3 0 0 0-2.843 2.066m1.843.97C16 3.447 16.464 3 17 3s1 .447 1 1.036c0 .588-.464 1.035-1 1.035s-1-.447-1-1.035M7 15.215a3 3 0 0 0 2.832-2.031q.081.014.168.014h12a1 1 0 0 0 0-2H10q-.08 0-.157.012A3 3 0 0 0 7 9.144a3 3 0 0 0-2.843 2.066A1 1 0 0 0 4 11.198H2a1 1 0 1 0 0 2h2q.086 0 .168-.014A3 3 0 0 0 7 15.215m0-4.071c-.536 0-1 .447-1 1.036 0 .588.464 1.035 1 1.035s1-.447 1-1.035c0-.589-.464-1.036-1-1.036M19.843 19.354q.077-.012.157-.013h2a1 1 0 1 1 0 2h-2q-.086 0-.169-.014A3 3 0 0 1 17 23.36a3 3 0 0 1-2.831-2.032q-.083.015-.169.014H2a1 1 0 1 1 0-2h12q.08 0 .157.012A3 3 0 0 1 17 17.289c1.333 0 2.445.872 2.843 2.066m-3.843.97c0-.59.464-1.036 1-1.036s1 .447 1 1.035c0 .589-.464 1.036-1 1.036s-1-.447-1-1.036"})))};var l=e.i(157799);function c({text:e,className:t}){let{openSidebar:s}=(0,l.useCollapsibleSidebarContext)();return(0,a.jsxs)(i.default,{onClick:s,variant:"secondary",className:`${r.default.mostrarFiltros} ${t}`,children:[(0,a.jsx)("span",{className:r.default.mostrarFiltros__icon,children:(0,a.jsx)(o,{})}),(0,a.jsx)("span",{children:e})]})}var u=e.i(954995),d=e.i(446569),h=e.i(970496);e.s(["default",0,function({children:e,titleButton:t,titleSidebar:i,footerSidebar:r,beforeTitleComponent:s}){let{isOpen:n,closeSidebar:o}=(0,l.useCollapsibleSidebarContext)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c,{text:t}),(0,a.jsxs)("aside",{className:`${u.default.collapsableSidebar} ${n?u.default.active:""}`,children:[(0,a.jsx)("button",{onClick:o,className:u.default.collapsableSidebar__closeButton,children:(0,a.jsx)(d.default,{})}),(0,a.jsx)("div",{className:u.default.collapsableSidebar__sidebar,children:(0,a.jsxs)("div",{className:(0,h.classNames)(u.default.sidebar),children:[s,i&&(0,a.jsx)("h2",{className:u.default.sidebar__title,children:i}),(0,a.jsx)("div",{className:u.default.sidebar__content,children:e}),r&&(0,a.jsx)("div",{className:u.default.sidebar__footer,children:r})]})})]})]})}],903823)}
1,553542,e=>{e.v({"blink-animation":"Page-module-scss-module__hMnHoq__blink-animation",header:"Page-module-scss-module__hMnHoq__header",is_sticky:"Page-module-scss-module__hMnHoq__is_sticky",mainBody:"Page-module-scss-module__hMnHoq__mainBody","reveal-header":"Page-module-scss-module__hMnHoq__reveal-header"})},167007,438847,e=>{"use strict";var t=e.i(843476),a=e.i(553542),i=e.i(271645),r=e.i(970496),s=e.i(680902),n=e.i(622289);function o(e,t,a){try{return e(t)}catch(e){return(0,n.l)("[nuqs] Error while parsing value `%s`: %O"+(a?" (for key `%s`)":""),t,e,a),null}}function l(e){function t(t){if(void 0===t)return null;let a="";if(Array.isArray(t)){if(void 0===t[0])return null;a=t[0]}return"string"==typeof t&&(a=t),o(e.parse,a)}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:a=>t(a)??e}},withOptions(e){return{...this,...e}}}}let c=l({parse:e=>e,serialize:String}),u=l({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)});l({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),l({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return(1&t.length?"0":"")+t}}),l({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String});let d=l({parse:e=>"true"===e.toLowerCase(),serialize:String});function h(e,t){return e.valueOf()===t.valueOf()}l({parse:e=>{let t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:h}),l({parse:e=>{let t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:h}),l({parse:e=>{let t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:h});let m=(0,s.r)(),_={};function p(e,t={}){let a=(0,i.useId)(),r=(0,n.i)(),o=(0,n.a)(),{history:l="replace",scroll:c=r?.scroll??!1,shallow:u=r?.shallow??!0,throttleMs:d=s.s.timeMs,limitUrlUpdates:h=r?.limitUrlUpdates,clearOnDefault:b=r?.clearOnDefault??!0,startTransition:E,urlKeys:v=_}=t,A=Object.keys(e).join(","),T=(0,i.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,v[e]??e])),[A,JSON.stringify(v)]),C=(0,n.r)(Object.values(T)),y=C.searchParams,x=(0,i.useRef)({}),S=(0,i.useMemo)(()=>Object.fromEntries(Object.keys(e).map(t=>[t,e[t].defaultValue??null])),[Object.values(e).map(({defaultValue:e})=>e).join(",")]),N=s.t.useQueuedQueries(Object.values(T)),[w,I]=(0,i.useState)(()=>f(e,v,y??new URLSearchParams,N).state),k=(0,i.useRef)(w);if((0,n.c)("[nuq+ %s `%s`] render - state: %O, iSP: %s",a,A,w,y),Object.keys(x.current).join("&")!==Object.values(T).join("&")){let{state:t,hasChanged:i}=f(e,v,y,N,x.current,k.current);i&&((0,n.c)("[nuq+ %s `%s`] State changed: %O",a,A,{state:t,initialSearchParams:y,queuedQueries:N,queryRef:x.current,stateRef:k.current}),k.current=t,I(t)),x.current=Object.fromEntries(Object.entries(T).map(([t,a])=>[a,e[t]?.type==="multi"?y?.getAll(a):y?.get(a)??null]))}(0,i.useEffect)(()=>{let{state:t,hasChanged:i}=f(e,v,y,N,x.current,k.current);i&&((0,n.c)("[nuq+ %s `%s`] State changed: %O",a,A,{state:t,initialSearchParams:y,queuedQueries:N,queryRef:x.current,stateRef:k.current}),k.current=t,I(t))},[Object.values(T).map(e=>`${e}=${y?.getAll(e)}`).join("&"),JSON.stringify(N)]),(0,i.useEffect)(()=>{let t=Object.keys(e).reduce((t,i)=>(t[i]=({state:t,query:r})=>{I(s=>{let{defaultValue:o}=e[i],l=T[i],c=t??o??null;return Object.is(s[i]??o??null,c)?((0,n.c)("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",a,A,l,t,o,k.current),s):(k.current={...k.current,[i]:c},x.current[l]=r,(0,n.c)("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",a,A,l,t,o,k.current),k.current)})},t),{});for(let i of Object.keys(e)){let e=T[i];(0,n.c)("[nuq+ %s `%s`] Subscribing to sync for `%s`",a,e,A),m.on(e,t[i])}return()=>{for(let i of Object.keys(e)){let e=T[i];(0,n.c)("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",a,e,A),m.off(e,t[i])}}},[A,T]);let L=(0,i.useCallback)((t,i={})=>{let r,_=Object.fromEntries(Object.keys(e).map(e=>
1[e,null])),p="function"==typeof t?t(g(k.current,S))??_:t??_;(0,n.c)("[nuq+ %s `%s`] setState: %O",a,A,p);let f=0,v=!1,y=[];for(let[t,a]of Object.entries(p)){let _=e[t],p=T[t];if(!_||void 0===a)continue;(i.clearOnDefault??_.clearOnDefault??b)&&null!==a&&void 0!==_.defaultValue&&(_.eq??((e,t)=>e===t))(a,_.defaultValue)&&(a=null);let g=null===a?null:(_.serialize??String)(a);m.emit(p,{state:a,query:g});let A={key:p,query:g,options:{history:i.history??_.history??l,shallow:i.shallow??_.shallow??u,scroll:i.scroll??_.scroll??c,startTransition:i.startTransition??_.startTransition??E}};if(i?.limitUrlUpdates?.method==="debounce"||h?.method==="debounce"||_.limitUrlUpdates?.method==="debounce"){!0===A.options.shallow&&console.warn((0,n.s)(422));let e=i?.limitUrlUpdates?.timeMs??h?.timeMs??_.limitUrlUpdates?.timeMs??s.s.timeMs,t=s.t.push(A,e,C,o);f<e&&(r=t,f=e)}else{let e=i?.limitUrlUpdates?.timeMs??_?.limitUrlUpdates?.timeMs??h?.timeMs??i.throttleMs??_.throttleMs??d;y.push(s.t.abort(p)),s.n.push(A,e),v=!0}}let x=y.reduce((e,t)=>t(e),v?s.n.flush(C,o):s.n.getPendingPromise(C));return r??x},[A,l,u,c,d,h?.method,h?.timeMs,E,T,C.updateUrl,C.getSearchParamsSnapshot,C.rateLimitFactor,o,S]);return[(0,i.useMemo)(()=>g(w,S),[w,S]),L]}function f(e,t,a,i,r,n){let l=!1,c=Object.entries(e).reduce((e,[c,u])=>{var d;let h=t?.[c]??c,m=i[h],_="multi"===u.type?[]:null,p=void 0===m?("multi"===u.type?a?.getAll(h):a?.get(h))??_:m;return r&&n&&((d=r[h]??_)===p||null!==d&&null!==p&&"string"!=typeof d&&"string"!=typeof p&&d.length===p.length&&d.every((e,t)=>e===p[t]))?e[c]=n[c]??null:(l=!0,e[c]=((0,s.i)(p)?null:o(u.parse,p,h))??null,r&&(r[h]=p)),e},{});if(!l){let t=Object.keys(e),a=Object.keys(n??{});l=t.length!==a.length||t.some(e=>!a.includes(e))}return{state:c,hasChanged:l}}function g(e,t){return Object.fromEntries(Object.keys(e).map(a=>[a,e[a]??t[a]??null]))}e.s(["parseAsArrayOf",0,function(e,t=","){let a=e.eq??((e,t)=>e===t),i=encodeURIComponent(t);return l({parse:a=>""===a?[]:a.split(t).map((a,r)=>o(e.parse,a.replaceAll(i,t),`[${r}]`)).filter(e=>null!=e),serialize:a=>a.map(a=>(e.serialize?e.serialize(a):String(a)).replaceAll(t,i)).join(t),eq:(e,t)=>e===t||e.length===t.length&&e.every((e,i)=>a(e,t[i]))})},"parseAsBoolean",0,d,"parseAsInteger",0,u,"parseAsString",0,c,"useQueryState",0,function(e,t={}){let{parse:a,type:r,serialize:s,eq:n,defaultValue:o,...l}=t,[{[e]:c},u]=p({[e]:{parse:a??(e=>e),type:r,serialize:s,eq:n,defaultValue:o}},l);return[c,(0,i.useCallback)((t,a={})=>u(a=>({[e]:"function"==typeof t?t(a[e]):t}),a),[e,u])]},"useQueryStates",0,p],438847);var b=e.i(618566);let E=(0,i.createContext)(null);e.s(["PageLayoutContext",0,E,"PageLayoutProvider",0,function({children:e,pageData:s,searchName:n,search:o}){let l=(0,b.usePathname)(),h=(0,i.useRef)(null),[m,_]=(0,i.useState)(0),[f,g]=(0,i.useState)(!1),[v,A]=(0,i.useState)(!1),[T,C]=(0,i.useState)([]),[y,x]=(0,i.useState)(!1),[S,N]=(0,i.useState)(!1),[w,I]=(0,i.useState)(""===o),[k,L]=(0,i.useTransition)(),[O,P]=(0,i.useTransition)(),[D,R]=(0,i.useState)(!0),[M,j]=p({[n]:c.withDefault("").withOptions({startTransition:P,shallow:!1}),details:d.withDefault(!1).withOptions({startTransition:P,shallow:!1}),pa:u.withDefault(1).withOptions({startTransition:P,shallow:!1}),pb:u.withDefault(1).withOptions({startTransition:P,shallow:!1}),pp:u.withDefault(1).withOptions({startTransition:P,shallow:!1}),orden:c.withDefault("").withOptions({startTransition:P,shallow:!1})}),F=async()=>{let e=document.getElementById("inputSearch_mobile");e&&(e.value="");let t=document.getElementById("inputSearch_desktop");t&&(t.value="");let a=document.getElementById("inputSearch_stiky");a&&(a.value=""),await j({[n]:null,details:!1,pa:1,pb:1,pp:1,orden:""})},B=async e=>{await j({[n]:e,details:!1,pa:1,pb:1,pp:1,orden:""}),S&&N(!1)},U=async()=>{await j({...M,details:!0,pa:1,pb:1,pp:1,orden:"relevancia"})};(0,i.useEffect)(()=>{""===M[n]&&x(!1)},[l,M,n]);let G=(0,r.classNames)("page","page_"+s.tipoPagina,v?a.default.is_sticky:"");return(0,t.jsx)(E.Provider,{value:{isMenuOffset:f,setIsMenuOffset:g,isHeaderSticky:v,setIsHeaderSticky:A,menuBreadcrumb:T,setMenuBreadcrumb:C,isFocusSearchForm:y,setIsFocusSearchForm:x,burgerActive:S,setBurgerActive:N,isFilterLoading:k,startFilterTransition:L,headerHeight:m,setHeaderHeight:_,searchName:n,optimisticSearch:M[n],isDetail:M.details,resetSearch:F,addOptimisticSearch:B,openSearchDetail:U,loadingSearch:O,startTransitionSearch:P,pageData:s,setMenuVisible:I,menuVisible:w,searchHasResults:D,setSearchHasResults:R},children:(0,t.jsx)("div",{className:G,ref:h,children:e})})},"usePageLayout",0,function(){return(0,i.useContext)(E)}],167007)},37421,e=>{e.v({"blink-animation":"CheckboxFiltro-module-scss-module__YoLa9a__blink-animation",checkbox:"CheckboxFiltro-module-scss-module__YoLa9a__checkbox",filtro:"CheckboxFiltro-module-scss-module__YoLa9a__filtro",filtro__collapseButton:"CheckboxFiltro-module-scss-module__YoLa9a__filtro__collapseButton",filtro__item:"CheckboxFiltro-module-scss-module__YoLa9a__filtro__item",filtro__label:"CheckboxFiltro-module-scss-module__YoLa9a__filtro__label",filtro__loading:"CheckboxFiltro-module-scss-module__YoLa9a__filtro__loading",filtro__quantity:"CheckboxFiltro-module-scss-module__YoLa9a__filtro__quantity",pulse:"CheckboxFiltro-module-scss-module__YoLa9a__pulse"})},821136,831507,e=>{"use strict";var t,a,i=e.i(271645);function r(){return(r=Object.assign.bind()).apply(null,arguments)}function s(){return(s=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return i.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 7"},e),t||(t=i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M.237.35a1.01 1.01 0 0 1 1.41-.116L7 4.716 12.354.234a1.01 1.01 0 0 1 1.41.116.98.98 0 0 1-.118 1.393l-6 5.023c-.373.312-.92.312-1.292 0l-6-5.023A.98.98 0 0 1 .237.35",clipRule:"evenodd"})))}],821136),e.s(["default",0,function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 7"},e),a||(a=i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.763 6.65a1.01 1.01 0 0 1-1.41.116L7 2.284 1.646 6.766a1.01 1.01 0 0 1-1.41-.116.98.98 0 0 1 .118-1.393l6-5.023c.373-.312.92-.312 1.292 0l6 5.023a.98.98 0 0 1 .117 1.393",clipRule:"evenodd"})))}],831507)},970435,e=>{"use strict";
1let t={HOME:"home",BUSCADOR:"buscador",LISTADO_LIBROS:"listado-libros",LISTADO_LIBROS_AUDIOLIBROS:"listado-libros-audiolibros",LISTADO_LIBROS_EBOOKS:"listado-libros-ebooks",LISTADO_LIBROS_BOLSILLOS:"listado-libros-bolsillos",LISTADO_LIBROS_NOVEDADES:"listado-libros-novedades",LISTADO_LIBROS_PROXIMAMENTE:"listado-libros-proximamente",LISTADO_LIBROS_MAS_VENDIDOS:"listado-libros-mas-vendidos",LISTADO_LIBROS_PRIMEROS_CAPITULOS:"listado-libros-primeros-capitulos",LISTADO_AUTORES:"listado-autores",LISTADO_BLOG_ENTRADAS:"listado-blog-entradas",FICHA_LIBRO:"ficha-libro",FICHA_AUTOR:"ficha-autor",FICHA_EDITORIAL:"ficha-editorial",FICHA_COLECCION:"ficha-coleccion",FICHA_PREMIO_EDITORIAL:"ficha-premio-editorial",FICHA_EDICION_PREMIO_EDITORIAL:"ficha-edicion-premio-editorial",FICHA_SALA_PRENSA_EDITORIAL:"ficha-sala-prensa-editorial",FICHA_SALA_PRENSA_LIBRO:"ficha-sala-prensa-libro",FICHA_SERIE:"ficha-serie",FICHA_TEMATICA:"ficha-tematica",FICHA_SUBTEMATICA:"ficha-subtematica",FICHA_SUBSUBTEMATICA:"ficha-subsubtematica",FICHA_BLOG_ENTRADA:"ficha-blog-entrada",FICHA_BLOG_CATEGORIA:"ficha-blog-categoria",FICHA_BLOG_ETIQUETA:"ficha-blog-etiqueta",FICHA_EDITOR_BLOG:"ficha-editor-blog",FICHA_SELECCION_EDITORIAL:"ficha-seleccion-editorial",ERROR_404:"error-404",ERROR_401:"error-401",ERROR_410:"error-410",ERROR_403:"error-403",ERROR_500:"error-500",ERROR_BFR_404:"book-film-error-404",ERROR_BFR_401:"book-film-error-401",ERROR_BFR_410:"book-film-error-410",ERROR_BFR_403:"book-film-error-403",ERROR_BFR_500:"book-film-error-500",PAGINA_PREVIEW:"pagina-preview",BUSCADOR_BOOK_FILM_RIGHTS:"book-film-rights-buscador",LISTADO_LIBROS_BOOK_FILM_RIGHTS:"book-film-rights-listado-libros",FICHA_LIBRO_BOOK_FILM_RIGHTS:"book-film-rights-ficha-libro",FICHA_AUTOR_BOOK_FILM_RIGHTS:"book-film-rights-ficha-autor",FICHA_CLASIFICACION_BOOK_FILM_RIGHTS:"book-film-rights-ficha-clasificacion",FICHA_SUBCLASIFICACION_BOOK_FILM_RIGHTS:"book-film-rights-ficha-subclasificacion",CATALOGUES_BOOK_FILM_RIGHTS:"book-film-rights-catalogues",LISTADO_AUTORES_BOOK_FILM_RIGHTS:"book-film-rights-listado-autores",FICHA_CHATBOT:"ficha-chatbot",FICHA_FIRMA:"ficha-firma",CREAR_CUENTA:"crear-cuenta",LOGIN:"login"},a={SPOTIFY:"spotify",MAPA_DEL_SITIO:"modulo-site-map",CABECERA:"cabecera",CAROUSEL:"carousel",TARJETAS_TEMATICAS:"tarjeta-tematicas",LIBROS:"libros",MENU_LOCAL:"menu-local",PREMIOS_LISTA:"premios-lista",DESCARGAS:"descargas",RECURSOS:"recursos",CONTENIDO_EXCLUSIVO:"contenido-exclusivo",AUTORES:"autores",LIBROS_DESTACADOS:"libros-destacados",TEXTO_HTML:"texto-html",LIBROS_RESULTADOS:"libros-resultados",AUTORES_RESULTADOS:"autores-resultados",EDITORIALES:"editoriales",LISTADO_TEMATICAS:"listado-tematicas",LIBROS_GANADOR_FINALISTA:"libros-ganador-y-finalista",EDICIONES_ANTERIORES:"ediciones-anteriores",FICHA_PREMIO_EDITORIAL:"ficha-premio-editorial",BASE_PREMIO_EDITORIAL:"bases-premio-editorial",IMAGEN:"imagen",IMAGEN_TAMANO_LIBRE:"imagen-tamano-libre",AREA_USUARIO:"area-usuario",MIS_LISTAS:"mis-listas",MIS_AUTORES:"mis-autores",MIS_NEWSLETTERS:"mis-newsletters",MIS_COMENTARIOS:"mis-comentarios",MIS_DATOS:"mis-datos",VALIDACION_EMAIL:"validacion-email",FICHA_AUTOR:"ficha-autor",FICHA_AUTOR_BOOK_FILM_RIGHTS:"ficha-autor-book-film-rights",GALERIA_IMAGENES_AUTOR:"galeria-imagenes-autor",LIBROS_LISTA:"libros-lista",FICHA_LIBRO:"ficha-libro",FICHA_TECNICA_LIBRO:"ficha-tecnica-libro",PREMIOS_LIBRO:"premios-libro",ARGUMENTOS_LIBRO:"argumentos-libro",OPINIONES_LIBRO:"opiniones-libro",AUTOR_LIBRO:"autor-libro",COMENTARIOS_LIBRO:"comentarios-libro",EDITORIALES_LISTA:"editoriales-lista",FICHA_EDITORIAL:"ficha-editorial",PREMIOS_EDITORIAL:"premios-editorial",TARJETA_COLECCIONES:"tarjeta-colecciones",COLECCIONES_LISTA:"colecciones-lista",CABECERA_SELECCION_EDITORIAL:"cabecera-seleccion-editorial",SELECCION_EDITORIAL_DESTACADA:"seleccion-editorial-destacada",SELECCION_EDITORIALES_LISTA:"seleccion-editoriales-lista",TARJETA_SELECCIONES_EDITORIALES:"tarjeta-selecciones-editoriales",PREGUNTAS_FRECUENTES:"preguntas-frecuentes",CONTENIDO_ESTATICO:"contenido-estatico",CONTACTOS_PRENSA:"contactos-prensa",FICHA_SALA_PRENSA_LIBRO:"ficha-sala-prensa-libro",LIBROS_PRENSA:"libros-prensa",NOVEDADES_EDITORIAL_PRENSA:"novedades-editorial-prensa",DESCARGAS_CONTACTOS:"descargas-y-contactos",BLOG_ENTRADAS:"blog-entradas",BLOG_ENTRADA_DESTACADA:"blog-entrada-destacada",CABECERA_ARTICULO:"cabecera-articulo",CABECERA_DIRECTO:"cabecera-directo",CABECERA_BLOG_CATEGORIA:"cabecera-blog-categoria",CATEGORIA_BLOG:"categorias-blog",PAGINADOR_BLOG_ARTICULOS:"paginador-blog-articulos",BLOG_ETIQUETAS:"blog-etiquetas",COMENTARIOS_BLOG_ENTRADA:"comentarios-blog-entrada",BLOG_ENTRADA_RESULTADOS:"blog-entrada-resultados",ENTRADILLA:"entradilla",FICHA_EDITOR_BLOG:"ficha-editor-blog",INSTAGRAM:"instagram",FACEBOOK:"facebook",TWITTER:"twitter",VIDEO:"video",DIRECTO:"directo",TIKTOK:"tiktok",NEWSLETTER:"newsletter",BOOK_FILM_RIGHTS_CATALOGUE:"book-film-rights-catalogue",RECUPERAR_CONTRASENA:"recuperar-contrasena",FICHA_LIBRO_BOOK_FILM_RIGHTS:"ficha-libro-book-film-rights",FICHA_TECNICA_BOOK_FILM_RIGHTS:"ficha-tecnica-book-film-rights",EDICIONES_INTERNACIONALES:"international-editions-book-film-rights",REPRODUCTOR_VIDEOS:"reproductor-videos",IMAGEN_CHATBOT:"imagen-chatbot",MODULO_CABECERA_FIRMA:"modulo-cabecera-firma",MODULO_FIRMAS_RESULTADOS:"modulo-firmas-resultados",MODULO_FIRMAS_AUTOR:"modulo-firmas-autor",MODULO_CREAR_CUENTA:"modulo-crear-cuenta",MODULO_LOGIN:"modulo-login",FICHA_LIBRO_EMBEBIDA:"ficha-libro-embebida"};
1t.BUSCADOR,t.LISTADO_LIBROS,t.LISTADO_LIBROS_AUDIOLIBROS,t.LISTADO_LIBROS_EBOOKS,t.LISTADO_LIBROS_BOLSILLOS,t.LISTADO_LIBROS_NOVEDADES,t.LISTADO_LIBROS_PROXIMAMENTE,t.LISTADO_LIBROS_MAS_VENDIDOS,t.LISTADO_LIBROS_PRIMEROS_CAPITULOS,t.LISTADO_AUTORES,t.LISTADO_AUTORES_BOOK_FILM_RIGHTS,t.LISTADO_LIBROS_BOOK_FILM_RIGHTS,t.LISTADO_LIBROS,t.LISTADO_LIBROS_AUDIOLIBROS,t.LISTADO_LIBROS_EBOOKS,t.LISTADO_LIBROS_BOLSILLOS,t.LISTADO_LIBROS_NOVEDADES,t.LISTADO_LIBROS_PROXIMAMENTE,t.LISTADO_LIBROS_MAS_VENDIDOS,t.LISTADO_LIBROS_PRIMEROS_CAPITULOS,t.LISTADO_AUTORES,t.FICHA_TEMATICA,t.FICHA_SUBTEMATICA,t.FICHA_SUBSUBTEMATICA;let i=[a.CABECERA,a.LIBROS_RESULTADOS,a.AUTORES_RESULTADOS,a.BLOG_ENTRADA_RESULTADOS];e.s(["API_LIBROS_BUSCAR_QUERY_PARAMS",0,{TEXTO_BUSCADOR:"textoBuscador",CONTIENE_FRAGMENTO:"contieneFragmento",COLECCION:"coleccion",SERIE:"serie",EDITORIALES:"editoriales",SOPORTES:"soportes",TEMATICAS:"tematicas",DESTACAR:"destacar",ORDEN:"orden",BOOK_FILM_RIGHTS:"bookFilmRights",CLASIFICACIONES_BOOK_FILM_RIGHTS:"clasificaciones",TIPO:"tipo"},"API_ORDER_PARAM_VALUE",0,{RELEVANCIA_TODOS_LOS_LIBROS:"relevancia_todos_los_libros",RELEVANCIA_TODOS_LOS_LIBROS_BFR:"relevancia_libros_book_film_rights",RELEVANCIA_TEMATICA:"relevancia_tematicas",RELEVANCIA:"relevancia",FECHA_PUBLICACION:"fecha_publicacion",ALFA_ASC:"alfa_asc",ALFA_DESC:"alfa_desc",FECHA_CREACION_ASC:"fechaCreacion_asc",FECHA_CREACION_DESC:"fechaCreacion_desc"},"BREAKPOINTS",0,{BREAKPOINT_XS:340,BREAKPOINT_S:540,BREAKPOINT:768,BREAKPOINT_M:1024,BREAKPOINT_L:1100,BREAKPOINT_XL:1260,BREAKPOINT_MENU:1100},"MODULOS_PERMITIDOS_PAGINAS_CON_PAGINACION",0,i,"TIPO_MODULO_API",0,a,"TIPO_PAGINA_API",0,t,"TIPO_PAGINA_API_QUERY_KEY",0,"tipo-pagina-api"])},137963,e=>{"use strict";var t=e.i(247167),a=e.i(970435);let i={filter_tematicas:"tematica",filter_editorial:"editorial",filter_formatos:"formatos",filter_destacados:"destacados"};e.s(["getThumbImageSrc",0,e=>encodeURI(t.default.env.IMAGE_HOST+e.path),"getUrlPaginaConFiltrosActuales",0,function(e,t,i,r){let s=new URLSearchParams(i);e?.tipoPagina===a.TIPO_PAGINA_API.FICHA_TEMATICA&&s.delete("tematicas");let n=e?.translatedUrlPagina??e.urlPagina;r>1?e.tipoPagina===a.TIPO_PAGINA_API.LISTADO_AUTORES||e.tipoPagina===a.TIPO_PAGINA_API.LISTADO_AUTORES_BOOK_FILM_RIGHTS?s.has("startsWith")?n+="/"+s.get("startsWith")+"/"+r:n+="/"+t+"/"+r:n+="/p/"+r:(e.tipoPagina===a.TIPO_PAGINA_API.LISTADO_AUTORES||e.tipoPagina===a.TIPO_PAGINA_API.LISTADO_AUTORES_BOOK_FILM_RIGHTS)&&s.has("startsWith")&&(n+="/"+s.get("startsWith")),s.delete("id"),s.delete("categoria"),s.delete("actualitat"),s.delete("numeroPagina"),s.delete("startsWith"),s.delete("utils"),s.delete("categorias"),s.delete("etiquetas"),s.delete("categoriaPadre"),s.delete("categoriaPadreId"),s.delete("categoriaId"),s.delete("idTematica"),s.delete("subTematicaId"),s.delete("bookFilmRights"),s.delete("slug"),s.delete("clasificaciones"),s.delete("tipo-pagina-api"),(e.tipoPagina===a.TIPO_PAGINA_API.LISTADO_AUTORES||e.tipoPagina===a.TIPO_PAGINA_API.LISTADO_AUTORES_BOOK_FILM_RIGHTS||e.tipoPagina===a.TIPO_PAGINA_API.FICHA_BLOG_CATEGORIA||e.tipoPagina===a.TIPO_PAGINA_API.FICHA_BLOG_ETIQUETA)&&s.delete("orden");let o=s.toString();return`${n}${""!==o?`?${s.toString()}`:""}`},"getUrlPaginaPredictivo",0,function(e,t,a,i){let r=new URLSearchParams(a);return r.delete("startsWith"),r.delete("utils"),r.delete("categorias"),r.delete("etiquetas"),r.delete("categoriaPadre"),r.delete("categoriaId"),r.delete("categoriaPadreId"),r.delete("idTematica"),r.delete("idTematica"),r.delete("categoria"),r.delete("subTematicaId"),r.delete("bookFilmRights"),r.delete("slug"),r.delete("clasificaciones"),r.delete("p"),r.set(t,i?.toString()),`${e}?${r.toString()}`},"getUrlWithDomain",0,function(e){return`${t.default.env.IMAGE_HOST||"https://pdlibrosmex.cdnstatics2.com"}${e}`},"parseParamArray",0,function(e,t){let a=t.getAll(e);return a.length>0?a.flatMap(e=>e.split(",").filter(Boolean)):[]},"promiseCheckImageWithKeyExists",0,(e,t)=>new Promise(a=>{t||a(!1),t?.thumbs||a(!1),a(e in t.thumbs)}),"resolveFilterLabels",0,function(e,t){let a={};for(let[r,s]of Object.entries(e)){let e=t[i[r]];a[r]=s.map(t=>
1e?.[t]).filter(Boolean)}return a},"truncate",0,(e,t=15,a="...")=>e.length>t?`${e.substring(0,t)}${a}`:e])},917593,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(618566),r=e.i(167007),s=e.i(37421),n=e.i(821136),o=e.i(831507),l=e.i(970496),c=e.i(822596),u=e.i(978877),d=e.i(137963),h=e.i(10655),m=e.i(438847);e.s(["default",0,function({name:e,idParamName:_,titleParamName:p,totalParameterName:f,disabledParameterName:g="",childrenParameterName:b,item:E,showMore:v=!1,filterByTotalParameter:A=!1,dict:T,filtrosBuscador:C}){let{t:y}=(0,c.getDictionary)(T),x=new URLSearchParams((0,i.useSearchParams)()),S=(0,i.usePathname)(),[N,w]=(0,a.useState)(""),{isFilterLoading:I,startFilterTransition:k}=(0,r.usePageLayout)(),[,L]=(0,m.useQueryState)(e,(0,m.parseAsArrayOf)(m.parseAsString).withDefault([]).withOptions({startTransition:k,shallow:!1})),{pageData:O}=(0,u.usePageData)(),P=async t=>{k(async()=>{let{value:a,checked:i}=t.target;w(a);let r=(0,d.parseParamArray)(e,x),s=i?Array.from(new Set([...r,a])):r.filter(e=>e!==a),n=(0,d.parseParamArray)(y("filtroTematicasParamName"),x),o=(0,d.parseParamArray)(y("filtroEditorialesParamName"),x),l=(0,d.parseParamArray)("soportes",x),c=(0,d.parseParamArray)("destacar",x),u={};if(e===y("filtroTematicasParamName")?u.filter_tematicas=s.length>0?s:[]:n.length>0&&(u.filter_tematicas=n),e===y("filtroEditorialesParamName")?u.filter_editorial=s.length>0?s:[]:o.length>0&&(u.filter_editorial=o),"soportes"===e?u.filter_formatos=s.length>0?s:[]:l.length>0&&(u.filter_formatos=l),"destacar"===e?u.filter_destacados=s.length>0?s:[]:c.length>0&&(u.filter_destacados=c),Object.keys(u).length>0){let e=(0,d.resolveFilterLabels)(u,C);(0,h.filtroEvent)({tipoPagina:O?.tipoPagina,urlPagina:S,filtrosActivos:e})}await L(e=>{let t=e??[],r=i?Array.from(new Set([...t,a])):t.filter(e=>e!==a);return 0===r.length?null:r})})},D=({data:i})=>{let[r,c]=(0,a.useState)(i[_]===N);(0,a.useEffect)(()=>{i[b]?.map(e=>{if(R.has(e.id)||N===e.id)return c(!0)})},[]);let u=i[b];A&&(u=i[b]?.filter(e=>e[f]>0));let d=u?.length;return(0,t.jsxs)("li",{className:(0,l.classNames)(s.default.filtro,I||i?.[f]&&i?.[f]===0?s.default.filtro__loading:""),children:[(0,t.jsxs)("div",{className:s.default.filtro__item,children:[(0,t.jsxs)("label",{htmlFor:`${e}-${i[_]}`,children:[(0,t.jsx)("input",{disabled:I||i?.[f]&&i?.[f]===0||i?.[g],type:"checkbox",id:`${e}-${i[_]}`,value:i[_],name:e,checked:R.has(String(i[_])),onChange:P,className:s.default.checkbox}),(0,t.jsxs)("span",{className:s.default.filtro__label,children:[i[p]," ",i?.[f]&&(0,t.jsx)("span",{className:s.default.filtro__quantity,children:`(${i?.[f]})`})]})]}),v&&d>0&&(0,t.jsx)(t.Fragment,{children:i[b]?.length>0&&(0,t.jsx)("button",{"aria-label":r?y("filtroColapsarAriaLabel",{filterName:i[p]}):y("filtroExpandirAriaLabel",{filterName:i[p]}),className:s.default.filtro__collapseButton,type:"button",onClick:e=>{c(!r)},children:r?(0,t.jsx)(o.default,{}):(0,t.jsx)(n.default,{})})})]}),v&&(0,t.jsx)(t.Fragment,{children:d>0&&(0,t.jsx)(t.Fragment,{children:r&&(0,t.jsx)("ul",{children:u?.map(e=>(0,t.jsx)(D,{data:e},e[_]))})})})]})},R=new Set((0,d.parseParamArray)(e,x));return(0,t.jsx)(D,{data:E})}])},262570,e=>{e.v({"blink-animation":"ShowMoreListElements-module-scss-module__79F6fa__blink-animation",itemsToHide:"ShowMoreListElements-module-scss-module__79F6fa__itemsToHide",itemsToHideColeccionesYSubtematicas:"ShowMoreListElements-module-scss-module__79F6fa__itemsToHideColeccionesYSubtematicas",itemsToHideTematicas:"ShowMoreListElements-module-scss-module__79F6fa__itemsToHideTematicas",itemsWrapper:"ShowMoreListElements-module-scss-module__79F6fa__itemsWrapper",showAll:"ShowMoreListElements-module-scss-module__79F6fa__showAll",showHideButton:"ShowMoreListElements-module-scss-module__79F6fa__showHideButton",showHideButton__icon:"ShowMoreListElements-module-scss-module__79F6fa__showHideButton__icon",showHideButton__showLess:"ShowMoreListElements-module-scss-module__79F6fa__showHideButton__showLess",showHideButton__showMore:"ShowMoreListElements-module-scss-module__79F6fa__showHideButton__showMore",title:"ShowMoreListElements-module-scss-module__79F6fa__title",wrapper:"ShowMoreListElements-module-scss-module__79F6fa__wrapper"})},654077,94425,e=>{"use strict";var t,a,i=e.i(271645);function r(){return(r=Object.assign.bind()).apply(null,arguments)}function s(){return(s=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return i.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 9 9"},e),t||(t=i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.602 8.01a.99.99 0 0 0 1.98 0V5.58H8.01a.99.99 0 0 0 0-1.98H5.582V.99a.99.99 0 0 0-1.98 0V3.6H.99a.99.99 0 1 0 0 1.98h2.612z",clipRule:"evenodd"})))}],654077),e.s(["default",0,function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 9 3"},e),a||(a=i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 1.59a.99.99 0 0 1-.99.99H.99A.99.99 0 0 1 .99.6h7.02a.99.99 0 0 1 .99.99",clipRule:"evenodd"})))}],94425)},170961,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(262570),r=e.i(654077),s=e.i(94425),n=e.i(970496);e.s(["default",0,function({children:e,textMoreButton:o,textLessButton:l,showButton:c,showMoreLessBtnsClassName:u="",showMoreLessContainerClassName:d="",title:h,variant:m="default",headingTag:_="h3"}){let p=(0,a.useRef)(null),f=(0,a.useRef)(null);return(0,t.jsxs)("div",{className:i.default.wrapper,children:[h&&a.default.createElement(_,{className:i.default.title},h),(0,t.jsx)("ul",{className:(0,n.classNames)(i.default.itemsWrapper,"tematicas"===m?i.default.itemsToHideTematicas:"colecciones-y-subtematicas"===m?i.default.itemsToHideColeccionesYSubtematicas:i.default.itemsToHide),ref:p,children:e}),c&&(0,t.jsxs)("button",{onClick:()=>{p.current&&p.current.classList.toggle(i.default.showAll),f.current&&f.current.classList.toggle(i.default.showAll)},className:(0,n.classNames)(i.default.showHideButton,d),ref:f,children:[(0,t.jsxs)("span",{className:(0,n.classNames)(i.default.showHideButton__showMore,u),children:[o," ",(0,t.jsx)(r.default,{className:i.default.showHideButton__icon})]}),(0,t.jsxs)("span",{className:(0,n.classNames)(i.default.showHideButton__showLess,u),children:[l," ",(0,t.jsx)(s.default,{className:i.default.showHideButton__icon})]})]})]})}])},311281,e=>{e.v({autor:"AutorMiniatura-module-scss-module__wE-p2a__autor",autor__foto:"AutorMiniatura-module-scss-module__wE-p2a__autor__foto",autor__fotoWrapper:"AutorMiniatura-module-scss-module__wE-p2a__autor__fotoWrapper",autor__nombre:"AutorMiniatura-module-scss-module__wE-p2a__autor__nombre","blink-animation":"AutorMiniatura-module-scss-module__wE-p2a__blink-animation"})},996726,e=>{"use strict";var t=e.i(843476),a=e.i(311281),i=e.i(522016),r=e.i(283231),s=e.i(978877),n=e.i(10655),o=e.i(618566),l=e.i(970496),c=e.i(970435);e.s(["default",0,function({children:e,autor:u,onClick:d,className:h,id:m}){let{pageData:_}=(0,s.usePageData)(),p=(0,r.useModuleGAMetadata)(),f=(0,o.usePathname)(),g=(0,o.useSearchParams)(),b=(0,l.classNames)(a.default.autor,h??"");return(0,t.jsx)(i.default,{prefetch:!1,id:m??void 0,href:`${u.url}`,className:b,onClick:e=>{(0,n.contentClickEvent)(_.tipoPagina===c.TIPO_PAGINA_API.LISTADO_AUTORES?{tipoPagina:(0,n.convertPageType)(_.tipoPagina),urlPagina:f,tipoClick:"author",nombreSeccionPadre:p?.metadatosModulo?.nombre,autor:u.nombre}:{tipoPagina:(0,n.convertPageType)(_.tipoPagina),urlPagina:f,tipoClick:"author",nombreSeccionPadre:c.TIPO_MODULO_API.AUTORES_RESULTADOS,nombreContenido:"Autor",tipoContenido:"Otros",tipoCta:"card",autor:u.nombre}),_.tipoPagina===c.TIPO_PAGINA_API.BUSCADOR&&(0,n.clickSearchResultEvent)({urlPagina:f,tipoPagina:(0,n.convertPageType)(c.TIPO_PAGINA_API.BUSCADOR),searchTerm:g.get("textoBuscador"),searchClick:u.nombre,tipoContenido:"autores"}),d&&d()},children:e})}])},549623,e=>{e.v({active:"PaginationSeo-module-scss-module__sgVTBW__active","blink-animation":"PaginationSeo-module-scss-module__sgVTBW__blink-animation",disabled:"PaginationSeo-module-scss-module__sgVTBW__disabled",ellipsis:"PaginationSeo-module-scss-module__sgVTBW__ellipsis",pagination:"PaginationSeo-module-scss-module__sgVTBW__pagination",paginationCenter:"PaginationSeo-module-scss-module__sgVTBW__paginationCenter",pagination__arrow:"PaginationSeo-module-scss-module__sgVTBW__pagination__arrow",pagination__iconArrow:"PaginationSeo-module-scss-module__sgVTBW__pagination__iconArrow",pagination__link:"PaginationSeo-module-scss-module__sgVTBW__pagination__link",pagination__list:"PaginationSeo-module-scss-module__sgVTBW__pagination__list"})},6543,e=>{"use strict";var t,a=e.i(271645);function i(){return(i=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=a.createElement("path",{fill:"currentColor",d:"M15.707 5.293a1 1 0 0 1 0 1.414L10.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0"})))}])},864853,e=>{"use strict";var t,a=e.i(271645);function i(){return(i=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=a.createElement("path",{fill:"currentColor",d:"M8.293 18.707a1 1 0 0 1 0-1.414L13.586 12 8.293 6.707a1 1 0 0 1 1.414-1.414l6 6a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0"})))}])},343794,(e,t,a)=>{!function(){"use strict";var a={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var s=arguments[t];s&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var s in e)a.call(e,s)&&e[s]&&(t=r(t,s));return t}(s)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}
1if(t.exports)i.default=i,t.exports=i;else if("function"==typeof define&&"object"==typeof define.amd&&define.amd)void 0!==i&&e.v(i);else window.classNames=i}()},270382,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(549623),r=e.i(522016),s=e.i(978877),n=e.i(6543),o=e.i(864853),l=e.i(618566),c=e.i(137963),u=e.i(343794),d=e.i(970435);e.s(["default",0,function({pageExtraData:e,params:h,traduccionFiltroAlfabeticoTodos:m="",deleteParams:_=[],predictivo:p=!1,predictivoParamName:f="",center:g=!0}){let{pageData:b}=(0,s.usePageData)(),E=(0,l.usePathname)(),v=new URLSearchParams((0,l.useSearchParams)().toString());_.map(e=>v.delete(e)),v.delete(d.TIPO_PAGINA_API_QUERY_KEY);let A=e?.resultados,T=v.get("numeroPagina")||e.resultados.pagina||1;p&&(T=v.get(f)??e.resultados.pagina);let C=e=>{(0,a.paginacionEvent)({tipoPagina:(0,a.convertPageType)(b?.tipoPagina),urlPagina:E,valorClick:`${e}`})},y=!!(e?.tipoPagina==="listado-libros-primeros-capitulos"||v.has("editoriales")||v.has("soportes")||v.has("destacar")&&"listado-libros-novedades"!==e.tipoPagina&&"listado-libros-mas-vendidos"!==e.tipoPagina&&"listado-libros-proximamente"!==e.tipoPagina||v.has("tematicas")&&"ficha-tematica"!==e.tipoPagina);return(0,t.jsx)("div",{className:i.default.pagination,children:(0,t.jsxs)("ul",{className:(0,u.default)(i.default.pagination__list,g?i.default.paginationCenter:""),children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{prefetch:!1,href:`${!p?(0,c.getUrlPaginaConFiltrosActuales)(e,m,v,A.paginacion?.anterior?.pagina):(0,c.getUrlPaginaPredictivo)(E,"p",v,A.paginacion?.anterior?.pagina)}`,"aria-label":"previous-page",onClick:()=>{if(A.pagina>1&&C(A.pagina-1),p){let e=document.querySelector("#searchContent");e&&(e.scrollTop=0)}},className:`${i.default.pagination__link} ${i.default.pagination__arrow} ${A.paginacion?.anterior?"":i.default.disabled} fondoItem`,rel:`${A.paginacion?.anterior?"prev":""}${y?" nofollow":""}`,scroll:!p,children:(0,t.jsx)("span",{className:i.default.pagination__iconArrow,children:(0,t.jsx)(n.default,{})})})}),A.pagina>6&&(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{prefetch:!1,href:`${!p?(0,c.getUrlPaginaConFiltrosActuales)(e,m,v,1):(0,c.getUrlPaginaPredictivo)(E,f,v,1)}`,"aria-label":"page-1",onClick:()=>{if(C(1),p){let e=document.querySelector("#searchContent");e&&(e.scrollTop=0)}},className:`${i.default.pagination__link} fondoItem`,...y&&{rel:"nofollow"},scroll:!p,children:"1"})}),A.pagina>7&&(0,t.jsx)("li",{children:(0,t.jsx)("span",{"aria-label":"ellipsis-1",className:`${i.default.pagination__link} ${i.default.ellipsis} fondoItem`,children:"..."})}),(()=>{let a=[],s=Math.max(1,A.pagina-5),n=Math.min(A.paginacion?.paginas?.length,A.pagina+5);n-s<10&&(s=Math.max(1,n-9));for(let o=s;o<=n;o++){let s=o==T;a.push((0,t.jsx)("li",{children:(0,t.jsx)(r.default,{prefetch:!1,href:`${!p?(0,c.getUrlPaginaConFiltrosActuales)(e,m,v,o):(0,c.getUrlPaginaPredictivo)(E,f,v,o)}`,onClick:()=>{if(C(o),p){let e=document.querySelector("#searchContent");e&&(e.scrollTop=0)}},className:`${i.default.pagination__link} ${s?i.default.active:""} fondoItem`,...y&&{rel:"nofollow"},"aria-label":`page-${o}`,...s&&{"aria-current":"page"},scroll:!p,children:o})},o))}return a})(),A.pagina<A.paginacion?.paginas?.length-5&&(0,t.jsx)("li",{children:(0,t.jsx)("span",{"aria-label":"ellipsis-2",className:`${i.default.pagination__link} ${i.default.ellipsis} fondoItem`,children:"..."})}),A.pagina<A.paginacion?.paginas?.length-5&&(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{prefetch:!1,href:`${!p?(0,c.getUrlPaginaConFiltrosActuales)(e,m,v,A.paginacion?.paginas?.length):(0,c.getUrlPaginaPredictivo)(E,f,v,A.paginacion?.paginas?.length)}`,"aria-label":`page-${A.paginacion.paginas?.length}`,onClick:()=>{if(C(A.paginacion.paginas?.length),p){let e=document.querySelector("#searchContent");e&&(e.scrollTop=0)}},className:`${i.default.pagination__link} fondoItem`,...y&&{rel:"nofollow"},scroll:!p,children:A.paginacion.paginas?.length})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{prefetch:!1,href:`${!p?(0,c.getUrlPaginaConFiltrosActuales)(e,m,v,A.paginacion?.siguiente?.pagina):(0,c.getUrlPaginaPredictivo)(E,f,v,A.paginacion?.siguiente?.pagina)}`,"aria-label":"next-page",onClick:()=>
1{if(A.pagina<A.paginacion.paginas?.length&&C(A.pagina+1),p){let e=document.querySelector("#searchContent");e&&(e.scrollTop=0)}},className:`${i.default.pagination__link} ${i.default.pagination__arrow} ${A.paginacion?.siguiente?"":i.default.disabled} fondoItem`,rel:`${A.paginacion?.anterior?"next":""}${y?" nofollow":""}`,scroll:!p,children:(0,t.jsx)("span",{className:i.default.pagination__iconArrow,children:(0,t.jsx)(o.default,{})})})})]})})}])},647411,e=>{e.v({"blink-animation":"FooterModulo-module-scss-module__tEvG0W__blink-animation",button:"FooterModulo-module-scss-module__tEvG0W__button",button__icon:"FooterModulo-module-scss-module__tEvG0W__button__icon",footerBoton:"FooterModulo-module-scss-module__tEvG0W__footerBoton",footermodulo__center:"FooterModulo-module-scss-module__tEvG0W__footermodulo__center",footermodulo__left:"FooterModulo-module-scss-module__tEvG0W__footermodulo__left",footermodulo__module:"FooterModulo-module-scss-module__tEvG0W__footermodulo__module",footermodulo__right:"FooterModulo-module-scss-module__tEvG0W__footermodulo__right",footermodulo__wrapper:"FooterModulo-module-scss-module__tEvG0W__footermodulo__wrapper"})},782001,e=>{e.v({"blink-animation":"ButtonLeerMas-module-scss-module__NLXJgW__blink-animation",icon:"ButtonLeerMas-module-scss-module__NLXJgW__icon",leerMas:"ButtonLeerMas-module-scss-module__NLXJgW__leerMas",leerMasButton:"ButtonLeerMas-module-scss-module__NLXJgW__leerMasButton",leerMasLink:"ButtonLeerMas-module-scss-module__NLXJgW__leerMasLink"})},691630,e=>{"use strict";var t=e.i(843476),a=e.i(522016),i=e.i(782001),r=e.i(6543),s=e.i(864853),n=e.i(564156),o=e.i(777386);e.s(["default",0,function({type:e="link",variant:l="right",path:c,text:u="Leer más",onClickEvent:d,className:h,srOnly:m}){let _=({variant:e})=>{switch(e){case"left":return(0,t.jsx)(r.default,{className:i.default.icon});case"right":return(0,t.jsx)(s.default,{className:i.default.icon});case"up":return(0,t.jsx)(n.default,{className:i.default.icon});case"down":return(0,t.jsx)(o.default,{className:i.default.icon})}return null};return"link"===e&&c?(0,t.jsxs)(a.default,{prefetch:!1,href:`${c}`,className:`${i.default.leerMas} ${i.default.leerMasLink} ${h||""}`,children:[(0,t.jsx)("span",{children:u}),(0,t.jsx)(_,{variant:l}),m&&(0,t.jsx)("span",{className:"sr-only",children:m})]}):"text"===e?(0,t.jsxs)("span",{className:`${i.default.leerMas} ${h||""}`,children:[(0,t.jsx)("span",{children:u}),(0,t.jsx)(_,{variant:l})]}):(0,t.jsxs)("button",{className:`${i.default.leerMas} ${i.default.leerMasButton} ${h||""}`,onClick:d,children:[(0,t.jsx)("span",{children:u}),(0,t.jsx)(_,{variant:l})]})}])},15668,e=>{e.v({"blink-animation":"Wrapper-module-scss-module__iMI-Jq__blink-animation",fluidWrapper:"Wrapper-module-scss-module__iMI-Jq__fluidWrapper",regularWrapper:"Wrapper-module-scss-module__iMI-Jq__regularWrapper",smallCenterWrapper:"Wrapper-module-scss-module__iMI-Jq__smallCenterWrapper",smallWrapper:"Wrapper-module-scss-module__iMI-Jq__smallWrapper"})},947885,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(15668);let r=(0,a.forwardRef)((e,a)=>{let{slug:r,variant:s,className:n,wrapperOverWriteStyles:o,...l}=e;return(0,t.jsx)("div",{ref:a,className:function(e,t=""){let a;switch(e){case"fluid":a=`${i.default.fluidWrapper} ${t}`;break;case"small":a=`${i.default.smallWrapper} ${t}`;break;case"smallCenter":a=`${i.default.smallCenterWrapper} ${t}`;break;default:a=`${i.default.regularWrapper} ${t}`}return`${a}`}(e.variant,e.className),style:o,...r?{id:r}:{},...l,children:e.children})});r.displayName="Wrapper",e.s(["default",0,r])},667963,e=>{"use strict";var t=e.i(843476),a=e.i(647411),i=e.i(496044),r=e.i(936540),s=e.i(691630),n=e.i(947885),o=e.i(777386);async function l(e,i,n){switch(i){case"regular":return(0,t.jsxs)(r.default,{type:"button",onClick:n,className:a.default.button,children:[e," ",(0,t.jsx)("span",{className:a.default.button__icon,children:(0,t.jsx)(o.default,{})})]});case"outline":return(0,t.jsxs)(r.default,{type:"button",variant:"secondary",onClick:n,className:a.default.button,children:[e,(0,t.jsx)("span",{className:a.default.button__icon,children:(0,t.jsx)(o.default,{})})]});case"link":return(0,t.jsx)(s.default,{variant:"down",text:e,onClickEvent:n})}}e.s(["default",0,function({data:e={mostrarBotonInferior:!1,estiloBoton:"regular",tipoBoton:"link",alineacionBoton:"center",textoBoton:"",enlaceBoton:""},onClick:r,className:o,rel:c,textoVerMas:u="",srOnly:d}){if(e.mostrarBotonInferior)return(0,t.jsx)(n.default,{variant:"regular",className:`${a.default.footermodulo__wrapper} ${o||""}`,children:(0,t.jsx)("div",{className:function(e="center"){switch(e){case"left":return`${a.default.footermodulo__left}`;case"right":return`${a.default.footermodulo__right}`;case"center":return`${a.default.footermodulo__center}`;default:return""}}(e.alineacionBoton),children:"read-more"===e.tipoBoton?l(e.textoBoton??u,e.estiloBoton||"regular",r):function(e,r,n,o,l,c){let u;if(null!=n&&null!=r){switch(e){case"regular":u=(0,t.jsx)(i.default,{path:`${r}`,className:a.default.footerBoton,...o&&{rel:o},...l&&{onClick:l},srOnly:c,children:n});break;case"outline":u=(0,t.jsx)(i.default,{path:`${r}`,variant:"secondary",className:a.default.footerBoton,...o&&{rel:o},...l&&{onClick:l},srOnly:c,children:n});break;case"link":u=(0,t.jsx)(s.default,{path:`${r}`,variant:"right",text:n})}return u}}(e.estiloBoton||"regular",e.enlaceBoton,e.textoBoton,c,r,d)})})}])},436089,e=>{e.v({arrows:"EmblaCarrouselClient-module-scss-module__uXYQ2W__arrows",arrows__button:"EmblaCarrouselClient-module-scss-module__uXYQ2W__arrows__button",arrows__show:"EmblaCarrouselClient-module-scss-module__uXYQ2W__arrows__show","blink-animation":"EmblaCarrouselClient-module-scss-module__uXYQ2W__blink-animation",dots:"EmblaCarrouselClient-module-scss-module__uXYQ2W__dots",dots__button:"EmblaCarrouselClient-module-scss-module__uXYQ2W__dots__button",dots__show:"EmblaCarrouselClient-module-scss-module__uXYQ2W__dots__show",embla:"EmblaCarrouselClient-module-scss-module__uXYQ2W__embla",emblaWrapper:"EmblaCarrouselClient-module-scss-module__uXYQ2W__emblaWrapper","emblaWrapper--dots":"EmblaCarrouselClient-module-scss-module__uXYQ2W__emblaWrapper--dots",emblaWrapper__regular:"EmblaCarrouselClient-module-scss-module__uXYQ2W__emblaWrapper__regular",emblaWrapper__small:"EmblaCarrouselClient-module-scss-module__uXYQ2W__emblaWrapper__small",emblaWrapper__smallCenter:"EmblaCarrouselClient-module-scss-module__uXYQ2W__emblaWrapper__smallCenter",selected:"EmblaCarrouselClient-module-scss-module__uXYQ2W__selected"})},278534,e=>{"use strict";var t=e.i(843476),a=e.i(271645);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function r(e,t){let a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&a.every(a=>{let s=e[a],n=t[a];return"function"==typeof s?`${s}`==`${n}`:i(s)&&i(n)?r(s,n):s===n})}function s(e){return e.concat().sort((e,t)=>
1e.name>t.name?1:-1).map(e=>e.options)}function n(e){return"number"==typeof e}function o(e){return"string"==typeof e}function l(e){return"boolean"==typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return Math.abs(e)}function d(e){return Math.sign(e)}function h(e){return f(e).map(Number)}function m(e){return e[_(e)]}function _(e){return Math.max(0,e.length-1)}function p(e,t=0){return Array.from(Array(e),(e,a)=>t+a)}function f(e){return Object.keys(e)}function g(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(a,i,r,s={passive:!0}){let n;return"addEventListener"in a?(a.addEventListener(i,r,s),n=()=>a.removeEventListener(i,r,s)):(a.addListener(r),n=()=>a.removeListener(r)),e.push(n),t},clear:function(){e=e.filter(e=>e())}};return t}function E(e=0,t=0){let a=u(e-t);function i(a){return a<e||a>t}return{length:a,max:t,min:e,constrain:function(a){return i(a)?a<e?e:t:a},reachedAny:i,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return a?e-a*Math.ceil((e-t)/a):e}}}function v(e){let t=e;function a(e){return n(e)?e:e.get()}return{get:function(){return t},set:function(e){t=a(e)},add:function(e){t+=a(e)},subtract:function(e){t-=a(e)}}}function A(e,t){let a="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},i=t.style,r=null,s=!1;return{clear:function(){!s&&(i.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(s)return;let n=Math.round(100*e.direction(t))/100;n!==r&&(i.transform=a(n),r=n)},toggleActive:function(e){s=!e}}}let T={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function C(e,t,a){let i,r,s,y,x,S,N,w,I=e.ownerDocument,k=I.defaultView,L=function(e){function t(e,t){return function e(t,a){return[t,a].reduce((t,a)=>(f(a).forEach(i=>{let r=t[i],s=a[i],n=c(r)&&c(s);t[i]=n?e(r,s):s}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(a){let i=a.breakpoints||{},r=f(i).filter(t=>e.matchMedia(t).matches).map(e=>i[e]).reduce((e,a)=>t(e,a),{});return t(a,r)},optionsMediaQueries:function(t){return t.map(e=>f(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(k),O=(w=[],{init:function(e,t){return(w=t.filter(({options:e})=>!1!==L.optionsAtMedia(e).active)).forEach(t=>t.init(e,L)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){w=w.filter(e=>e.destroy())}}),P=b(),D=(r={},s={init:function(e){i=e},emit:function(e){return(r[e]||[]).forEach(t=>t(i,e)),s},off:function(e,t){return r[e]=(r[e]||[]).filter(e=>e!==t),s},on:function(e,t){return r[e]=(r[e]||[]).concat([t]),s},clear:function(){r={}}}),{mergeOptions:R,optionsAtMedia:M,optionsMediaQueries:j}=L,{on:F,off:B,emit:U}=D,G=!1,H=R(T,C.globalOptions),W=R(H),V=[];function q(t,a){G||(W=M(H=R(H,t)),V=a||V,function(){let{container:t,slides:a}=W;S=(o(t)?e.querySelector(t):t)||e.children[0];let i=o(a)?S.querySelectorAll(a):a;N=[].slice.call(i||S.children)}(),y=function t(a){let i=function(e,t,a,i,r,s,c){var T,C;let y,x,S,N,w,I,k,L,O,P,D,R,M,j,{align:F,axis:B,direction:U,startIndex:G,loop:H,duration:W,dragFree:V,dragThreshold:q,inViewThreshold:$,slidesToScroll:Y,skipSnaps:z,containScroll:K,watchResize:Q,watchSlides:X,watchDrag:Z,watchFocus:J}=s,ee={measure:function(e){let{offsetTop:t,offsetLeft:a,offsetWidth:i,offsetHeight:r}=e;return{top:t,right:a+i,bottom:t+r,left:a,width:i,height:r}}},et=ee.measure(t),ea=a.map(ee.measure),ei=(x="rtl"===U,N=(S="y"===B)||!x?1:-1,w=S?"top":x?"right":"left",I=S?"bottom":x?"left":"right",{scroll:S?"y":"x",cross:S?"x":"y",startEdge:w,endEdge:I,measureSize:function(e){let{height:t,width:a}=e;return S?t:a},direction:function(e){return e*N}}),er=ei.measureSize(et),es={measure:function(e){return e/100*er}},en=(T=F,C=er,y={start:function(){return 0},center:function(e){return(C-e)/2},end:function(e){return C-e}},{measure:function(e,t){return o(T)?y[T](e):T(C,e,t)}}),eo=!H&&!!K,{slideSizes:el,slideSizesWithGaps:ec,startGap:eu,endGap:ed}=function(e,t,a,i,r,s){let{measureSize:n,startEdge:o,endEdge:l}=e,c=a[0]&&r,d=function(){if(!c)return 0;let e=a[0];return u(t[o]-e[o])}(),h=c?parseFloat(s.getComputedStyle(m(i)).getPropertyValue(`margin-${l}`)):0,p=a.map(n),f=a.map((e,t,a)=>{let i=t===_(a);return t?i?p[t]+h:a[t+1][o]-e[o]:p[t]+d}).map(u);return{slideSizes:p,slideSizesWithGaps:f,startGap:d,endGap:h}}(ei,et,ea,a,H||!!K,r),eh=function(e,t,a,i,r,s,o,l){let{startEdge:c,endEdge:d,direction:p}=e,f=n(a);return{groupSlides:function(e){return f?h(e).filter(e=>e%a==0).map(t=>e.slice(t,t+a)):e.length?h(e).reduce((a,n,h)=>{let f=m(a)||0,g=n===_(e),b=r[c]-s[f][c],E=r[c]-s[n][d],v=i||0!==f?0:p(o),A=u(E-(!i&&g?p(l):0)-(b+v));return h&&A>t+2&&a.push(n),g&&a.push(e.length),a},[]).map((t,a,i)=>{let r=Math.max(i[a-1]||0);return e.slice(r,t)}):[]}}}(ei,er,Y,H,et,ea,eu,ed),{snaps:em,snapsAligned:e_}=function(e,t,a,i,r){let{startEdge:s,endEdge:n}=e,{groupSlides:o}=r,l=o(i).map(e=>m(e)[n]-e[0][s]).map(u).map(t.measure),c=i.map(e=>a[s]-e[s]).map(e=>-u(e)),d=o(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:d}}
1(ei,en,et,ea,eh),ep=-m(em)+m(ec),{snapsContained:ef,scrollContainLimit:eg}=function(e,t,a,i){let r,s,n=E(-t+e,0),o=a.map((e,t)=>{let{min:i,max:r}=n,s=n.constrain(e),o=t===_(a);return t?o||function(e,t){return 1>=u(e-t)}(i,s)?i:function(e,t){return 1>=u(e-t)}(r,s)?r:s:r}).map(e=>parseFloat(e.toFixed(3))),l=(r=o[0],s=m(o),E(o.lastIndexOf(r),o.indexOf(s)+1));return{snapsContained:function(){if(t<=e+2)return[n.max];if("keepSnaps"===i)return o;let{min:a,max:r}=l;return o.slice(a,r)}(),scrollContainLimit:l}}(er,ep,e_,K),eb=eo?ef:e_,{limit:eE}=(k=eb[0],{limit:E(H?k-ep:m(eb),k)}),ev=function e(t,a,i){let{constrain:r}=E(0,t),s=t+1,n=o(a);function o(e){return i?u((s+e)%s):r(e)}function l(){return e(t,n,i)}let c={get:function(){return n},set:function(e){return n=o(e),c},add:function(e){return l().set(n+e)},clone:l};return c}(_(eb),G,H),eA=ev.clone(),eT=h(a),eC=function(e,t,a,i){let r=b(),s=1e3/60,n=null,o=0,l=0;function c(e){if(!l)return;n||(n=e,a(),a());let r=e-n;for(n=e,o+=r;o>=s;)a(),o-=s;i(o/s),l&&(l=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(l),n=null,o=0,l=0}return{init:function(){r.add(e,"visibilitychange",()=>{e.hidden&&(n=null,o=0)})},destroy:function(){u(),r.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:a,render:i}}(i,r,()=>(({dragHandler:e,scrollBody:t,scrollBounds:a,options:{loop:i}})=>{i||a.constrain(e.pointerDown()),t.seek()})(ej),e=>(({scrollBody:e,translate:t,location:a,offsetLocation:i,previousLocation:r,scrollLooper:s,slideLooper:n,dragHandler:o,animation:l,eventHandler:c,scrollBounds:u,options:{loop:d}},h)=>{let m=e.settled(),_=!u.shouldConstrain(),p=d?m:m&&_,f=p&&!o.pointerDown();f&&l.stop();let g=a.get()*h+r.get()*(1-h);i.set(g),d&&(s.loop(e.direction()),n.loop()),t.to(i.get()),f&&c.emit("settle"),p||c.emit("scroll")})(ej,e)),ey=eb[ev.get()],ex=v(ey),eS=v(ey),eN=v(ey),ew=v(ey),eI=function(e,t,a,i,r){let s=0,n=0,o=r,l=.68,c=e.get(),h=0;function m(e){return o=e,p}function _(e){return l=e,p}let p={direction:function(){return n},duration:function(){return o},velocity:function(){return s},seek:function(){let t=i.get()-e.get(),r=0;return o?(a.set(e),s+=t/o,s*=l,c+=s,e.add(s),r=c-h):(s=0,a.set(i),e.set(i),r=t),n=d(r),h=c,p},settled:function(){return .001>u(i.get()-t.get())},useBaseFriction:function(){return _(.68)},useBaseDuration:function(){return m(r)},useFriction:_,useDuration:m};return p}(ex,eN,eS,ew,W),ek=function(e,t,a,i,r){let{reachedAny:s,removeOffset:n,constrain:o}=i;function l(e){return e.concat().sort((e,t)=>u(e)-u(t))[0]}function c(t,i){let r=[t,t+a,t-a];if(!e)return t;if(!i)return l(r);let s=r.filter(e=>d(e)===i);return s.length?l(s):m(r)-a}return{byDistance:function(a,i){let l=r.get()+a,{index:d,distance:h}=function(a){let i=e?n(a):o(a),{index:r}=t.map((e,t)=>({diff:c(e-i,0),index:t})).sort((e,t)=>u(e.diff)-u(t.diff))[0];return{index:r,distance:i}}(l),m=!e&&s(l);if(!i||m)return{index:d,distance:a};let _=a+c(t[d]-h,0);return{index:d,distance:_}},byIndex:function(e,a){let i=c(t[e]-r.get(),a);return{index:e,distance:i}},shortcut:c}}(H,eb,ep,eE,ew),eL=function(e,t,a,i,r,s,n){function o(r){let o=r.distance,l=r.index!==t.get();
1s.add(o),o&&(i.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(a.set(t.get()),t.set(r.index),n.emit("select"))}return{distance:function(e,t){o(r.byDistance(e,t))},index:function(e,a){let i=t.clone().set(e);o(r.byIndex(i.get(),a))}}}(eC,ev,eA,eI,ek,ew,c),eO=function(e){let{max:t,length:a}=e;return{get:function(e){return a?-((e-t)/a):0}}}(eE),eP=b(),eD=(O={},P=null,D=null,R=!1,{init:function(){L=new IntersectionObserver(e=>{R||(e.forEach(e=>{O[a.indexOf(e.target)]=e}),P=null,D=null,c.emit("slidesInView"))},{root:t.parentElement,threshold:$}),a.forEach(e=>L.observe(e))},destroy:function(){L&&L.disconnect(),R=!0},get:function(e=!0){if(e&&P)return P;if(!e&&D)return D;let t=f(O).reduce((t,a)=>{let i=parseInt(a),{isIntersecting:r}=O[i];return(e&&r||!e&&!r)&&t.push(i),t},[]);return e&&(P=t),e||(D=t),t}}),{slideRegistry:eR}=function(e,t,a,i,r,s){let n,{groupSlides:o}=r,{min:l,max:c}=i;return{slideRegistry:(n=o(s),1===a.length?[s]:e&&"keepSnaps"!==t?n.slice(l,c).map((e,t,a)=>{let i=t===_(a);return t?i?p(_(s)-m(a)[0]+1,m(a)[0]):e:p(m(a[0])+1)}):n)}}(eo,K,eb,eg,eh,eT),eM=function(e,t,a,i,r,s,o,c){let u={passive:!0,capture:!0},d=0;function h(e){"Tab"===e.code&&(d=new Date().getTime())}return{init:function(m){c&&(s.add(document,"keydown",h,!1),t.forEach((t,h)=>{s.add(t,"focus",t=>{(l(c)||c(m,t))&&function(t){if(new Date().getTime()-d>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;let s=a.findIndex(e=>e.includes(t));n(s)&&(r.useDuration(0),i.index(s,0),o.emit("slideFocus"))}(h)},u)}))}}}(e,a,eR,eL,eI,eP,c,J),ej={ownerDocument:i,ownerWindow:r,eventHandler:c,containerRect:et,slideRects:ea,animation:eC,axis:ei,dragHandler:function(e,t,a,i,r,s,n,o,c,h,m,_,p,f,v,A,T,C){let{cross:y,direction:x}=e,S=["INPUT","SELECT","TEXTAREA"],N={passive:!1},w=b(),I=b(),k=E(50,225).constrain(f.measure(20)),L={mouse:300,touch:400},O={mouse:500,touch:600},P=v?43:25,D=!1,R=0,M=0,j=!1,F=!1,B=!1,U=!1;function G(e){if(!g(e,i)&&e.touches.length>=2)return H(e);let t=s.readPoint(e),a=s.readPoint(e,y),n=u(t-R),l=u(a-M);if(!F&&!U&&(!e.cancelable||!(F=n>l)))return H(e);let c=s.pointerMove(e);n>A&&(B=!0),h.useFriction(.3).useDuration(.75),o.start(),r.add(x(c)),e.preventDefault()}function H(e){var t;let a,i,r=m.byDistance(0,!1).index!==_.get(),n=s.pointerUp(e)*(v?O:L)[U?"mouse":"touch"],o=(t=x(n),a=_.add(-1*d(t)),i=m.byDistance(t,!v).distance,v||u(t)<k?i:T&&r?.5*i:m.byIndex(a.get(),0).distance),l=function(e,t){var a,i;if(0===e||0===t||u(e)<=u(t))return 0;let r=(a=u(e),i=u(t),u(a-i));return u(r/e)}(n,o);F=!1,j=!1,I.clear(),h.useDuration(P-10*l).useFriction(.68+l/50),c.distance(o,!v),U=!1,p.emit("pointerUp")}function W(e){B&&(e.stopPropagation(),e.preventDefault(),B=!1)}return{init:function(e){C&&w.add(t,"dragstart",e=>e.preventDefault(),N).add(t,"touchmove",()=>void 0,N).add(t,"touchend",()=>void 0).add(t,"touchstart",o).add(t,"mousedown",o).add(t,"touchcancel",H).add(t,"contextmenu",H).add(t,"click",W,!0);function o(o){(l(C)||C(e,o))&&function(e){let o,l=g(e,i);if((U=l,B=v&&l&&!e.buttons&&D,D=u(r.get()-n.get())>=2,!l||0===e.button)&&(o=e.target.nodeName||"",!S.includes(o))){let i;j=!0,s.pointerDown(e),h.useFriction(0).useDuration(0),r.set(n),i=U?a:t,I.add(i,"touchmove",G,N).add(i,"touchend",H).add(i,"mousemove",G,N).add(i,"mouseup",H),R=s.readPoint(e),M=s.readPoint(e,y),p.emit("pointerDown")}}(o)}},destroy:function(){w.clear(),I.clear()},pointerDown:function(){return j}}}(ei,e,i,r,ew,function(e,t){let a,i;function r(e){return e.timeStamp}function s(a,i){let r=i||e.scroll,s=`client${"x"===r?"X":"Y"}`;return(g(a,t)?a:a.touches[0])[s]}return{pointerDown:function(e){return a=e,i=e,s(e)},pointerMove:function(e){let t=s(e)-s(i),n=r(e)-r(a)>170;return i=e,n&&(a=e),t},pointerUp:function(e){if(!a||!i)return 0;let t=s(i)-s(a),n=r(e)-r(a),o=r(e)-r(i)>170,l=t/n;return n&&!o&&u(l)>.1?l:0},readPoint:s}}(ei,r),ex,eC,eL,eI,ek,ev,c,es,V,q,z,Z),eventStore:eP,percentOfView:es,index:ev,indexPrevious:eA,limit:eE,location:ex,offsetLocation:eN,previousLocation:eS,options:s,resizeHandler:function(e,t,a,i,r,s,n){let o,c,d=[e].concat(i),h=[],m=!1;function _(e){return r.measureSize(n.measure(e))}return{init:function(r){s&&(c=_(e),h=i.map(_),o=new ResizeObserver(a=>{(l(s)||s(r,a))&&function(a){for(let s of a){if(m)return;let a=s.target===e,n=i.indexOf(s.target),o=a?c:h[n];if(u(_(a?e:i[n])-o)>=.5){r.reInit(),t.emit("resize");break}}}(a)}),a.requestAnimationFrame(()=>
1{d.forEach(e=>o.observe(e))}))},destroy:function(){m=!0,o&&o.disconnect()}}}(t,c,r,a,ei,Q,ee),scrollBody:eI,scrollBounds:function(e,t,a,i,r){let s=r.measure(10),n=r.measure(50),o=E(.1,.99),l=!1;function c(){return!l&&!!e.reachedAny(a.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(r){if(!c())return;let l=e.reachedMin(t.get())?"min":"max",d=u(e[l]-t.get()),h=a.get()-t.get(),m=o.constrain(d/n);a.subtract(h*m),!r&&u(h)<s&&(a.set(e.constrain(a.get())),i.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(eE,eN,ew,eI,es),scrollLooper:function(e,t,a,i){let{reachedMin:r,reachedMax:s}=E(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?s(a.get()):-1===t&&r(a.get())))return;let n=-1*t*e;i.forEach(e=>e.add(n))}}}(ep,eE,eN,[ex,eN,eS,ew]),scrollProgress:eO,scrollSnapList:eb.map(eO.get),scrollSnaps:eb,scrollTarget:ek,scrollTo:eL,slideLooper:function(e,t,a,i,r,s,n,o,l){let c=h(r),u=h(r).reverse(),d=p(_(u,n[0]),a,!1).concat(p(_(c,t-n[0]-1),-a,!0));function m(e,t){return e.reduce((e,t)=>e-r[t],t)}function _(e,t){return e.reduce((e,a)=>m(e,t)>0?e.concat([a]):e,[])}function p(r,n,c){let u=s.map((e,a)=>({start:e-i[a]+.5+n,end:e+t-.5+n}));return r.map(t=>{let i=c?0:-a,r=c?a:0,s=u[t][c?"end":"start"];return{index:t,loopPoint:s,slideLocation:v(-1),translate:A(e,l[t]),target:()=>o.get()>s?i:r}})}return{canLoop:function(){return d.every(({index:e})=>.1>=m(c.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:a,slideLocation:i}=e,r=t();r!==i.get()&&(a.to(r),i.set(r))})},loopPoints:d}}(ei,er,ep,el,ec,em,eb,eN,a),slideFocus:eM,slidesHandler:(j=!1,{init:function(e){X&&(M=new MutationObserver(t=>{!j&&(l(X)||X(e,t))&&function(t){for(let a of t)if("childList"===a.type){e.reInit(),c.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){M&&M.disconnect(),j=!0}}),slidesInView:eD,slideIndexes:eT,slideRegistry:eR,slidesToScroll:eh,target:ew,translate:A(ei,t)};return ej}(e,S,N,I,k,a,D);return a.loop&&!i.slideLooper.canLoop()?t(Object.assign({},a,{loop:!1})):i}(W),j([H,...V.map(({options:e})=>e)]).forEach(e=>P.add(e,"change",$)),W.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(Q),y.eventHandler.init(Q),y.resizeHandler.init(Q),y.slidesHandler.init(Q),y.options.loop&&y.slideLooper.loop(),S.offsetParent&&N.length&&y.dragHandler.init(Q),x=O.init(Q,V)))}function $(e,t){let a=K();Y(),q(R({startIndex:a},e),t),D.emit("reInit")}function Y(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),O.destroy(),P.clear()}function z(e,t,a){W.active&&!G&&(y.scrollBody.useBaseFriction().useDuration(!0===t?0:W.duration),y.scrollTo.index(e,a||0))}function K(){return y.index.get()}let Q={canScrollNext:function(){return y.index.add(1).get()!==K()},canScrollPrev:function(){return y.index.add(-1).get()!==K()},containerNode:function(){return S},internalEngine:function(){return y},destroy:function(){G||(G=!0,P.clear(),Y(),D.emit("destroy"),D.clear())},off:B,on:F,emit:U,plugins:function(){return x},previousScrollSnap:function(){return y.indexPrevious.get()},reInit:$,rootNode:function(){return e},scrollNext:function(e){z(y.index.add(1).get(),e,-1)},scrollPrev:function(e){z(y.index.add(-1).get(),e,1)},scrollProgress:function(){return y.scrollProgress.get(y.offsetLocation.get())},scrollSnapList:function(){return y.scrollSnapList},scrollTo:z,selectedScrollSnap:K,slideNodes:function(){return N},slidesInView:function(){return y.slidesInView.get()},slidesNotInView:function(){return y.slidesInView.get(!1)}};return q(t,a),setTimeout(()=>D.emit("init"),0),Q}function y(e={},t=[]){let i=(0,a.useRef)(e),n=(0,a.useRef)(t),[o,l]=(0,a.useState)(),[c,u]=(0,a.useState)(),d=(0,a.useCallback)(()=>{o&&o.reInit(i.current,n.current)},[o]);return(0,a.useEffect)(()=>{r(i.current,e)||(i.current=e,d())},[e,d]),(0,a.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let a=s(e),i=s(t);return a.every((e,t)=>r(e,i[t]))}(n.current,t)&&(n.current=t,d())},[t,d]),(0,a.useEffect)(()=>
1{if("u">typeof window&&window.document&&window.document.createElement&&c){C.globalOptions=y.globalOptions;let e=C(c,i.current,n.current);return l(e),()=>e.destroy()}l(void 0)},[c,l]),[u,o]}C.globalOptions=void 0,y.globalOptions=void 0;let x={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function S(e={}){let t,a,i,r,s=null,n=0,o=!1,l=!1,c=!1,u=!1;function d(){if(!i){if(_()){c=!0;return}o||a.emit("autoplay:play"),function(){let{ownerWindow:e}=a.internalEngine();e.clearTimeout(n),n=e.setTimeout(E,r[a.selectedScrollSnap()]),s=new Date().getTime(),a.emit("autoplay:timerset")}(),o=!0}}function h(){i||(o&&a.emit("autoplay:stop"),function(){let{ownerWindow:e}=a.internalEngine();e.clearTimeout(n),n=0,s=null,a.emit("autoplay:timerstopped")}(),o=!1)}function m(){if(_())return c=o,h();c&&d()}function _(){let{ownerDocument:e}=a.internalEngine();return"hidden"===e.visibilityState}function p(){l||h()}function f(){l||d()}function g(){l=!0,h()}function b(){l=!1,d()}function E(){let{index:e}=a.internalEngine(),i=e.clone().add(1).get(),r=a.scrollSnapList().length-1,s=t.stopOnLastSnap&&i===r;if(a.canScrollNext()?a.scrollNext(u):a.scrollTo(0,u),a.emit("autoplay:select"),s)return h();d()}return{name:"autoplay",options:e,init:function(s,n){var o,l,c,_;let E,v;a=s;let{mergeOptions:A,optionsAtMedia:T}=n,C=A(x,S.globalOptions);if(t=T(A(C,e)),a.scrollSnapList().length<=1)return;u=t.jump,i=!1,o=a,l=t.delay,E=o.scrollSnapList(),r="number"==typeof l?E.map(()=>l):l(E,o);let{eventStore:y,ownerDocument:N}=a.internalEngine(),w=!!a.internalEngine().options.watchDrag,I=(c=a,_=t.rootNode,v=c.rootNode(),_&&_(v)||v);y.add(N,"visibilitychange",m),w&&a.on("pointerDown",p),w&&!t.stopOnInteraction&&a.on("pointerUp",f),t.stopOnMouseEnter&&y.add(I,"mouseenter",g),t.stopOnMouseEnter&&!t.stopOnInteraction&&y.add(I,"mouseleave",b),t.stopOnFocusIn&&a.on("slideFocusStart",h),t.stopOnFocusIn&&!t.stopOnInteraction&&y.add(a.containerNode(),"focusout",d),t.playOnInit&&d()},destroy:function(){a.off("pointerDown",p).off("pointerUp",f).off("slideFocusStart",h),h(),i=!0,o=!1},play:function(e){void 0!==e&&(u=e),d()},stop:function(){o&&h()},reset:function(){o&&d()},isPlaying:function(){return o},timeUntilNext:function(){return s?r[a.selectedScrollSnap()]-(new Date().getTime()-s):null}}}S.globalOptions=void 0;var N=e.i(6543),w=e.i(864853),I=e.i(436089),k=e.i(970496),L=e.i(822596);e.s(["default",0,function({defaultDictionary:e,children:i,showArrows:r=!0,showDots:s=!0,emblaOptions:n={loop:!0,slidesToScroll:"auto"},autoPlayOptions:o={playOnInit:!1,delay:10500},wrapperLayout:l="regular",className:c}){let{t:u}=(0,L.getDictionary)(e),[d,h]=y(n,[S(o)]),[m,_]=(0,a.useState)([]),[p,f]=(0,a.useState)(0),g=e=>{_(e?.scrollSnapList())},b=e=>{f(e.selectedScrollSnap())};(0,a.useEffect)(()=>{h&&(g(h),b(h),h.on("init",g).on("reInit",g).on("reInit",b).on("select",b))},[h,g,b]);let E=m?.length??0,v=(0,k.classNames)(I.default.emblaWrapper,l?I.default["emblaWrapper__"+l]:"",s&&E>1?I.default["emblaWrapper--dots"]:"",c||"");return(0,t.jsxs)("div",{className:v,children:[(0,t.jsx)("div",{className:I.default.embla,ref:d,children:i}),r&&(0,t.jsxs)("nav",{className:(0,k.classNames)(I.default.arrows,E>1?I.default.arrows__show:""),children:[(0,t.jsxs)("button",{className:I.default.arrows__button,onClick:()=>{h&&h.scrollPrev()},children:[(0,t.jsx)("span",{className:"sr-only",children:u("SR_ONLY_CAROUSEL_ARROW_LEFT")}),(0,t.jsx)(N.default,{})]}),(0,t.jsxs)("button",{className:I.default.arrows__button,onClick:()=>{h&&h.scrollNext()},children:[(0,t.jsx)("span",{className:"sr-only",children:u("SR_ONLY_CAROUSEL_ARROW_RIGHT")}),(0,t.jsx)(w.default,{})]})]}),s&&(0,t.jsx)("nav",{className:(0,k.classNames)(I.default.dots,E>1?I.default.dots__show:""),children:m?.map((e,a)=>(0,t.jsxs)("button",{onClick:()=>{h&&h.scrollTo(a)},className:`${I.default.dots__button} ${a===p?I.default.selected:""}`,children:[(0,t.jsx)("span",{className:"sr-only",children:u("SR_ONLY_CAROUSEL_DOT",{dotIndex:a+1})}),(0,t.jsx)("span",{children:a})]},a))})]})}],278534)},982713,e=>{e.v({"blink-animation":"SubtematicasRelacionadas-module-scss-module__3rQowa__blink-animation",subtematica:"SubtematicasRelacionadas-module-scss-module__3rQowa__subtematica",subtematicasContainer:"SubtematicasRelacionadas-module-scss-module__3rQowa__subtematicasContainer"})},429494,e=>{"use strict";var t=e.i(843476),a=e.i(982713),i=e.i(522016),r=e.i(10655),s=e.i(978877),n=e.i(618566);e.s(["default",0,function({subtematicasLista:e}){let{pageData:o}=(0,s.usePageData)(),l=(0,n.usePathname)();return(0,t.jsx)("div",{className:a.default.subtematicasContainer,children:e?.map((e,s)=>(0,t.jsx)("div",{className:a.default.subtematica,children:(0,t.jsx)(i.default,{prefetch:!1,href:`${e.url}`,rel:e.rel,onClick:t=>{(0,r.subtematicaEvent)({tipoPagina:(0,r.convertPageType)(o.tipoPagina),urlPagina:l,tematica:o?.ga?.tematica,subtematica:e.texto,...o.ga})},children:e?.texto})},s))})}])},391099,e=>{"use strict";var t=e.i(843476),a=e.i(283231),i=e.i(10655),r=e.i(618566),s=e.i(978877),n=e.i(522016);e.s(["default",0,function({url:e,children:o,classname:l}){let{pageData:c}=(0,s.usePageData)(),u=(0,a.useModuleGAMetadata)(),d=(0,r.usePathname)();return(0,r.useRouter)(),(0,t.jsx)(n.default,{prefetch:!1,href:`${e}`,onClick:()=>{(0,i.contentClickEvent)({tipoPagina:(0,i.convertPageType)(c.tipoPagina),urlPagina:d,nombreContenido:"Enlace a author",tipoContenido:"Otros",nombreSeccionPadre:u?.metadatosSeccion?.nombre,tipoClick:"author",tipoCta:"textlink"})},children:o})}])},553751,(e,t,a)=>{t.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},467034,(e,t,a)=>{var i={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),a=t[0],i=t[1];return(a+i)*3/4-i},t.toByteArray=function(e){var t,a,s=l(e),n=s[0],o=s[1],c=new r((n+o)*3/4-o),u=0,d=o>0?n-4:n;for(a=0;a<d;a+=4)t=i[e.charCodeAt(a)]<<18|i[e.charCodeAt(a+1)]<<12|i[e.charCodeAt(a+2)]<<6|i[e.charCodeAt(a+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===o&&(t=i[e.charCodeAt(a)]<<2|i[e.charCodeAt(a+1)]>>4,c[u++]=255&t),1===o&&(t=i[e.charCodeAt(a)]<<10|i[e.charCodeAt(a+1)]<<4|i[e.charCodeAt(a+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,i=e.length,r=i%3,s=[],n=0,o=i-r;n<o;n+=16383)s.push(function(e,t,i){for(var r,s=[],n=t;n<i;n+=3)r=(e[n]<<16&0xff0000)+(e[n+1]<<8&65280)+(255&e[n+2]),s.push(a[r>>18&63]+a[r>>12&63]+a[r>>6&63]+a[63&r]);return s.join("")}(e,n,n+16383>o?o:n+16383));return 1===r?s.push(a[(t=e[i-1])>>2]+a[t<<4&63]+"=="):2===r&&s.push(a[(t=(e[i-2]<<8)+e[i-1])>>10]+a[t>>4&63]+a[t<<2&63]+"="),s.join("")};for(var a=[],i=[],r="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",n=0,o=s.length;n<o;++n)a[n]=s[n],i[s.charCodeAt(n)]=n;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var a=e.indexOf("=");-1===a&&(a=t);var i=a===t?0:4-a%4;return[a,i]}i[45]=62,i[95]=63},72:function(e,t,a){"use strict";var i=a(675),r=a(783),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function n(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,a){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,a)}function l(e,t,a){if("string"==typeof e){var i=e,r=t;if(("string"!=typeof r||""===r)&&(r="utf8"),!o.isEncoding(r))throw TypeError("Unknown encoding: "+r);var s=0|m(i,r),l=n(s),c=l.write(i,r);return c!==s&&(l=l.slice(0,c)),l}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return function(e,t,a){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(a||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===a?new Uint8Array(e):void 0===a?new Uint8Array(e,t):new Uint8Array(e,t,a),o.prototype),i}(e,t,a);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return o.from(u,t,a);var _=function(e){if(o.isBuffer(e)){var t=0|h(e.length),a=n(t);return 0===a.length||e.copy(a,0,0,t),a}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?n(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(_)return _;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,a);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),n(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),a=n(t),i=0;i<t;i+=1)a[i]=255&e[i];return a}t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!o.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,a){return l(e,t,a)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,a){return(c(e),e<=0)?n(e):void 0!==t?"string"==typeof a?n(e).fill(t,a):n(e).fill(t):n(e)},o.allocUnsafe=function(e){return u(e)},o.allocUnsafeSlow=function(e){return u(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function m(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var a=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===a)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return x(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return N(e).length;default:if(r)return i?-1:x(e).length;t=(""+t).toLowerCase(),r=!0}}function _(e,t,a){var r,s,n,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===a||a>this.length)&&(a=this.length),a<=0||(a>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,a){var i=e.length;(!t||t<0)&&(t=0),(!a||a<0||a>i)&&(a=i);for(var r="",s=t;s<a;++s)r+=k[e[s]];return r}(this,t,a);case"utf8":case"utf-8":return b(this,t,a);case"ascii":return function(e,t,a){var i="";a=Math.min(e.length,a);for(var r=t;r<a;++r)i+=String.fromCharCode(127&e[r]);return i}(this,t,a);case"latin1":case"binary":return function(e,t,a){var i="";a=Math.min(e.length,a);for(var r=t;r<a;++r)i+=String.fromCharCode(e[r]);return i}(this,t,a);
vendor: 10,902 bytes, line 1
1case"base64":return r=this,s=t,n=a,0===s&&n===r.length?i.fromByteArray(r):i.fromByteArray(r.slice(s,n));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,a){for(var i=e.slice(t,a),r="",s=0;s<i.length;s+=2)r+=String.fromCharCode(i[s]+256*i[s+1]);return r}(this,t,a);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function p(e,t,a){var i=e[t];e[t]=e[a],e[a]=i}function f(e,t,a,i,r){var s;if(0===e.length)return -1;if("string"==typeof a?(i=a,a=0):a>0x7fffffff?a=0x7fffffff:a<-0x80000000&&(a=-0x80000000),(s=a*=1)!=s&&(a=r?0:e.length-1),a<0&&(a=e.length+a),a>=e.length)if(r)return -1;else a=e.length-1;else if(a<0)if(!r)return -1;else a=0;if("string"==typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:g(e,t,a,i,r);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(r)return Uint8Array.prototype.indexOf.call(e,t,a);else return Uint8Array.prototype.lastIndexOf.call(e,t,a);return g(e,[t],a,i,r)}throw TypeError("val must be string, number or Buffer")}function g(e,t,a,i,r){var s,n=1,o=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;n=2,o/=2,l/=2,a/=2}function c(e,t){return 1===n?e[t]:e.readUInt16BE(t*n)}if(r){var u=-1;for(s=a;s<o;s++)if(c(e,s)===c(t,-1===u?0:s-u)){if(-1===u&&(u=s),s-u+1===l)return u*n}else -1!==u&&(s-=s-u),u=-1}else for(a+l>o&&(a=o-l),s=a;s>=0;s--){for(var d=!0,h=0;h<l;h++)if(c(e,s+h)!==c(t,h)){d=!1;break}if(d)return s}return -1}o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(I(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var a=e.length,i=t.length,r=0,s=Math.min(a,i);r<s;++r)if(e[r]!==t[r]){a=e[r],i=t[r];break}return a<i?-1:+(i<a)},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(a=0,t=0;a<e.length;++a)t+=e[a].length;var a,i=o.allocUnsafe(t),r=0;for(a=0;a<e.length;++a){var s=e[a];if(I(s,Uint8Array)&&(s=o.from(s)),!o.isBuffer(s))throw TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},o.byteLength=m,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):_.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",a=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,a).replace(/(.{2})/g,"$1 ").trim(),this.length>a&&(e+=" ... "),"<Buffer "+e+">"},s&&(o.prototype[s]=o.prototype.inspect),o.prototype.compare=function(e,t,a,i,r){if(I(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===a&&(a=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||a>e.length||i<0||r>this.length)throw RangeError("out of range index");if(i>=r&&t>=a)return 0;if(i>=r)return -1;if(t>=a)return 1;if(t>>>=0,a>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var s=r-i,n=a-t,l=Math.min(s,n),c=this.slice(i,r),u=e.slice(t,a),d=0;d<l;++d)if(c[d]!==u[d]){s=c[d],n=u[d];break}return s<n?-1:+(n<s)},o.prototype.includes=function(e,t,a){return -1!==this.indexOf(e,t,a)},o.prototype.indexOf=function(e,t,a){return f(this,e,t,a,!0)},o.prototype.lastIndexOf=function(e,t,a){return f(this,e,t,a,!1)};function b(e,t,a){a=Math.min(e.length,a);for(var i=[],r=t;r<a;){var s,n,o,l,c=e[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=a)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(s=e[r+1]))==128&&(l=(31&c)<<6|63&s)>127&&(u=l);break;case 3:s=e[r+1],n=e[r+2],(192&s)==128&&(192&n)==128&&(l=(15&c)<<12|(63&s)<<6|63&n)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:s=e[r+1],n=e[r+2],o=e[r+3],(192&s)==128&&(192&n)==128&&(192&o)==128&&(l=(15&c)<<18|(63&s)<<12|(63&n)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}var h=i,m=h.length;if(m<=4096)return String.fromCharCode.apply(String,h);for(var _="",p=0;p<m;)_+=String.fromCharCode.apply(String,h.slice(p,p+=4096));return _}function E(e,t,a){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>a)throw RangeError("Trying to access beyond buffer length")}function v(e,t,a,i,r,s){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<s)throw RangeError('"value" argument is out of bounds');if(a+i>e.length)throw RangeError("Index out of range")}function A(e,t,a,i,r,s){if(a+i>e.length||a<0)throw RangeError("Index out of range")}function T(e,t,a,i,s){return t*=1,a>>>=0,s||A(e,t,a,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,a,i,23,4),a+4}function C(e,t,a,i,s){return t*=1,a>>>=0,s||A(e,t,a,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,a,i,52,8),a+8}o.prototype.write=function(e,t,a,i){if(void 0===t)i="utf8",a=this.length,t=0;else if(void 0===a&&"string"==typeof t)i=t,a=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(a)?(a>>>=0,void 0===i&&(i="utf8")):(i=a,a=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var r,s,n,o,l,c,u,d,h=this.length-t;if((void 0===a||a>h)&&(a=h),e.length>0&&(a<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var m=!1;;)switch(i){case"hex":return function(e,t,a,i){a=Number(a)||0;var r=e.length-a;i?(i=Number(i))>r&&(i=r):i=r;var s=t.length;i>s/2&&(i=s/2);for(var n=0;n<i;++n){var o,l=parseInt(t.substr(2*n,2),16);if((o=l)!=o)break;e[a+n]=l}return n}(this,e,t,a);case"utf8":case"utf-8":return r=t,s=a,w(x(e,this.length-r),this,r,s);case"ascii":return n=t,o=a,w(S(e),this,n,o);case"latin1":case"binary":return function(e,t,a,i){return w(S(t),e,a,i)}(this,e,t,a);case"base64":return l=t,c=a,w(N(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,d=a,w(function(e,t){for(var a,i,r=[],s=0;s<e.length&&!((t-=2)<0);++s)i=(a=e.charCodeAt(s))>>8,r.push(a%256),r.push(i);return r}(e,this.length-u),this,u,d);default:if(m)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),m=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var a=this.length;e=~~e,t=void 0===t?a:~~t,e<0?(e+=a)<0&&(e=0):e>a&&(e=a),t<0?(t+=a)<0&&(t=0):t>a&&(t=a),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,o.prototype),i},o.prototype.readUIntLE=function(e,t,a){e>>>=0,t>>>=0,a||E(e,t,this.length);for(var i=this[e],r=1,s=0;++s<t&&(r*=256);)i+=this[e+s]*r;return i},o.prototype.readUIntBE=function(e,t,a){e>>>=0,t>>>=0,a||E(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},o.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,a){e>>>=0,t>>>=0,a||E(e,t,this.length);for(var i=this[e],r=1,s=0;++s<t&&(r*=256);)i+=this[e+s]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(e,t,a){e>>>=0,t>>>=0,a||E(e,t,this.length);for(var i=t,r=1,s=this[e+--i];i>0&&(r*=256);)s+=this[e+--i]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*t)),s},o.prototype.readInt8=function(e,t){return(e>>>=0,t||E(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var a=this[e]|this[e+1]<<8;return 32768&a?0xffff0000|a:a},o.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var a=this[e+1]|this[e]<<8;return 32768&a?0xffff0000|a:a},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),r.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),r.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),r.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),r.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,a,i){if(e*=1,t>>>=0,a>>>=0,!i){var r=Math.pow(2,8*a)-1;v(this,e,t,a,r,0)}var s=1,n=0;for(this[t]=255&e;++n<a&&(s*=256);)this[t+n]=e/s&255;return t+a},o.prototype.writeUIntBE=function(e,t,a,i){if(e*=1,t>>>=0,a>>>=0,!i){var r=Math.pow(2,8*a)-1;v(this,e,t,a,r,0)}var s=a-1,n=1;for(this[t+s]=255&e;--s>=0&&(n*=256);)this[t+s]=e/n&255;return t+a},o.prototype.writeUInt8=function(e,t,a){return e*=1,t>>>=0,a||v(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,a){return e*=1,t>>>=0,a||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,a){return e*=1,t>>>=0,a||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,a){return e*=1,t>>>=0,a||v(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,a){return e*=1,t>>>=0,a||v(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4}
1,o.prototype.writeIntLE=function(e,t,a,i){if(e*=1,t>>>=0,!i){var r=Math.pow(2,8*a-1);v(this,e,t,a,r-1,-r)}var s=0,n=1,o=0;for(this[t]=255&e;++s<a&&(n*=256);)e<0&&0===o&&0!==this[t+s-1]&&(o=1),this[t+s]=(e/n|0)-o&255;return t+a},o.prototype.writeIntBE=function(e,t,a,i){if(e*=1,t>>>=0,!i){var r=Math.pow(2,8*a-1);v(this,e,t,a,r-1,-r)}var s=a-1,n=1,o=0;for(this[t+s]=255&e;--s>=0&&(n*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/n|0)-o&255;return t+a},o.prototype.writeInt8=function(e,t,a){return e*=1,t>>>=0,a||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,a){return e*=1,t>>>=0,a||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,a){return e*=1,t>>>=0,a||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,a){return e*=1,t>>>=0,a||v(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,a){return e*=1,t>>>=0,a||v(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,a){return T(this,e,t,!0,a)},o.prototype.writeFloatBE=function(e,t,a){return T(this,e,t,!1,a)},o.prototype.writeDoubleLE=function(e,t,a){return C(this,e,t,!0,a)},o.prototype.writeDoubleBE=function(e,t,a){return C(this,e,t,!1,a)},o.prototype.copy=function(e,t,a,i){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(a||(a=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<a&&(i=a),i===a||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-a&&(i=e.length-t+a);var r=i-a;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,a,i);else if(this===e&&a<t&&t<i)for(var s=r-1;s>=0;--s)e[s+t]=this[s+a];else Uint8Array.prototype.set.call(e,this.subarray(a,i),t);return r},o.prototype.fill=function(e,t,a,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,a=this.length):"string"==typeof a&&(i=a,a=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var r,s=e.charCodeAt(0);("utf8"===i&&s<128||"latin1"===i)&&(e=s)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<a)throw RangeError("Out of range index");if(a<=t)return this;if(t>>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"==typeof e)for(r=t;r<a;++r)this[r]=e;else{var n=o.isBuffer(e)?e:o.from(e,i),l=n.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(r=0;r<a-t;++r)this[r+t]=n[r%l]}return this};var y=/[^+/0-9A-Za-z-_]/g;function x(e,t){t=t||1/0;for(var a,i=e.length,r=null,s=[],n=0;n<i;++n){if((a=e.charCodeAt(n))>55295&&a<57344){if(!r){if(a>56319||n+1===i){(t-=3)>-1&&s.push(239,191,189);continue}r=a;continue}if(a<56320){(t-=3)>-1&&s.push(239,191,189),r=a;continue}a=(r-55296<<10|a-56320)+65536}else r&&(t-=3)>-1&&s.push(239,191,189);if(r=null,a<128){if((t-=1)<0)break;s.push(a)}else if(a<2048){if((t-=2)<0)break;s.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;s.push(a>>12|224,a>>6&63|128,63&a|128)}else if(a<1114112){if((t-=4)<0)break;s.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}else throw Error("Invalid code point")}return s}function S(e){for(var t=[],a=0;a<e.length;++a)t.push(255&e.charCodeAt(a));return t}function N(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function w(e,t,a,i){for(var r=0;r<i&&!(r+a>=t.length)&&!(r>=e.length);++r)t[r+a]=e[r];return r}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var k=function(){for(var e="0123456789abcdef",t=Array(256),a=0;a<16;++a)for(var i=16*a,r=0;r<16;++r)t[i+r]=e[a]+e[r];return t}()},783:function(e,t){t.read=function(e,t,a,i,r){var s,n,o=8*r-i-1,l=(1<<o)-1,c=l>>1,u=-7,d=a?r-1:0,h=a?-1:1,m=e[t+d];for(d+=h,s=m&(1<<-u)-1,m>>=-u,u+=o;u>0;s=256*s+e[t+d],d+=h,u-=8);for(n=s&(1<<-u)-1,s>>=-u,u+=i;u>0;n=256*n+e[t+d],d+=h,u-=8);if(0===s)s=1-c;else{if(s===l)return n?NaN:1/0*(m?-1:1);n+=Math.pow(2,i),s-=c}return(m?-1:1)*n*Math.pow(2,s-i)},t.write=function(e,t,a,i,r,s){var n,o,l,c=8*s-r-1,u=(1<<c)-1,d=u>>1,h=5960464477539062e-23*(23===r),m=i?0:s-1,_=i?1:-1,p=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),n=u):(n=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-n))<1&&(n--,l*=2),n+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(n++,l/=2),n+d>=u?(o=0,n=u):n+d>=1?(o=(t*l-1)*Math.pow(2,r),n+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,r),n=0));r>=8;e[a+m]=255&o,m+=_,o/=256,r-=8);for(n=n<<r|o,c+=r;c>0;e[a+m]=255&n,m+=_,n/=256,c-=8);e[a+m-_]|=128*p}}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}},n=!0;try{i[e](a,a.exports,s),n=!1}finally{n&&delete r[e]}return a.exports}s.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=s(72)},64887,e=>{"use strict";var t,a,i,r,s,n,o,l,c,u,d,h,m,_,p,f,g,b,E,v,A,T,C,y,x,S,N,w,I,k,L,O,P,D,R,M,j,F,B,U,G,H,W,V,q,$,Y,z,K,Q,X,Z,J,ee,et,ea,ei,er,es,en,eo,el,ec,eu,ed,eh,em,e_,ep,ef=e.i(843476);let eg={xml:!1,decodeEntities:!0},eb={_useHtmlParser2:!0,xmlMode:!0};function eE(e){return(null==e?void 0:e.xml)?"boolean"==typeof e.xml?eb:{...eb,...e.xml}:null!=e?e:void 0}(t=M||(M={})).Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype",M.Root,M.Text,M.Directive,M.Comment,M.Script,M.Style,M.Tag,M.CDATA,M.Doctype;class ev{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return eM(this,e)}}class eA extends ev{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class eT extends eA{constructor(){super(...arguments),this.type=M.Text}get nodeType(){return 3}}class eC extends eA{constructor(){super(...arguments),this.type=M.Comment}get nodeType(){return 8}}class ey extends eA{constructor(e,t){super(t),this.name=e,this.type=M.Directive}get nodeType(){return 1}}class ex extends ev{constructor(e){super(),this.children=e}get firstChild(){var e;return null!=(e=this.children[0])?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class eS extends ex{constructor(){super(...arguments),this.type=M.CDATA}get nodeType(){return 4}}class eN extends ex{constructor(){super(...arguments),this.type=M.Root}get nodeType(){return 9}}class ew extends ex{constructor(e,t,a=[],i="script"===e?M.Script:"style"===e?M.Style:M.Tag){super(a),this.name=e,this.attribs=t,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var t,a;return{name:e,value:this.attribs[e],namespace:null==(t=this["x-attribsNamespace"])?void 0:t[e],prefix:null==(a=this["x-attribsPrefix"])?void 0:a[e]}})}}function eI(e){return e.type===M.Tag||e.type===M.Script||e.type===M.Style}function ek(e){return e.type===M.CDATA}function eL(e){return e.type===M.Text}function eO(e){return e.type===M.Comment}function eP(e){return e.type===M.Directive}function eD(e){return e.type===M.Root}function eR(e){return Object.prototype.hasOwnProperty.call(e,"children")}function eM(e,t=!1){let a;if(eL(e))a=new eT(e.data);else if(eO(e))a=new eC(e.data);else if(eI(e)){let i=t?ej(e.children):[],r=new ew(e.name,{...e.attribs},i);
1i.forEach(e=>e.parent=r),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]={...e["x-attribsPrefix"]}),a=r}else if(ek(e)){let i=t?ej(e.children):[],r=new eS(i);i.forEach(e=>e.parent=r),a=r}else if(eD(e)){let i=t?ej(e.children):[],r=new eN(i);i.forEach(e=>e.parent=r),e["x-mode"]&&(r["x-mode"]=e["x-mode"]),a=r}else if(eP(e)){let t=new ey(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),a=t}else throw Error(`Not implemented yet: ${e.type}`);return a.startIndex=e.startIndex,a.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(a.sourceCodeLocation=e.sourceCodeLocation),a}function ej(e){let t=e.map(e=>eM(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}let eF={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class eB{constructor(e,t,a){this.dom=[],this.root=new eN(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(a=t,t=eF),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:eF,this.elementCB=null!=a?a:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new eN(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){let a=new ew(e,t,void 0,this.options.xmlMode?M.Tag:void 0);this.addNode(a),this.tagStack.push(a)}ontext(e){let{lastNode:t}=this;if(t&&t.type===M.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{let t=new eT(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===M.Comment){this.lastNode.data+=e;return}let t=new eC(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){let e=new eT(""),t=new eS([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let a=new ey(e,t);this.addNode(a)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],a=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),a&&(e.prev=a,a.next=e),e.parent=t,this.lastNode=null}}(a=j||(j={})).Root="root",a.Text="text",a.Directive="directive",a.Comment="comment",a.Script="script",a.Style="style",a.Tag="tag",a.CDATA="cdata",a.Doctype="doctype";let eU=j.Root,eG=j.Text,eH=j.Directive,eW=j.Comment,eV=j.Script,eq=j.Style,e$=j.Tag,eY=j.CDATA,ez=j.Doctype,eK=new Uint16Array(
vendor: 8,302 bytes, line 1
1'áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;
vendor: 18,348 bytes, line 1
1ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ'.split("").map(
1e=>e.charCodeAt(0))),eQ=new Uint16Array("Èaglq \x15\x18\x1bÉ\x0f\0\0\x12p;ä¦os;ä§t;ä¾t;ä¼uot;ä¢".split("").map(e=>e.charCodeAt(0))),eX=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),eZ=null!=(F=String.fromCodePoint)?F:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function eJ(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!=(t=eX.get(e))?t:e}function e0(e){return e>=B.ZERO&&e<=B.NINE}(i=B||(B={}))[i.NUM=35]="NUM",i[i.SEMI=59]="SEMI",i[i.EQUALS=61]="EQUALS",i[i.ZERO=48]="ZERO",i[i.NINE=57]="NINE",i[i.LOWER_A=97]="LOWER_A",i[i.LOWER_F=102]="LOWER_F",i[i.LOWER_X=120]="LOWER_X",i[i.LOWER_Z=122]="LOWER_Z",i[i.UPPER_A=65]="UPPER_A",i[i.UPPER_F=70]="UPPER_F",i[i.UPPER_Z=90]="UPPER_Z",(r=U||(U={}))[r.VALUE_LENGTH=49152]="VALUE_LENGTH",r[r.BRANCH_LENGTH=16256]="BRANCH_LENGTH",r[r.JUMP_TABLE=127]="JUMP_TABLE",(s=G||(G={}))[s.EntityStart=0]="EntityStart",s[s.NumericStart=1]="NumericStart",s[s.NumericDecimal=2]="NumericDecimal",s[s.NumericHex=3]="NumericHex",s[s.NamedEntity=4]="NamedEntity",(n=H||(H={}))[n.Legacy=0]="Legacy",n[n.Strict=1]="Strict",n[n.Attribute=2]="Attribute";class e1{constructor(e,t,a){this.decodeTree=e,this.emitCodePoint=t,this.errors=a,this.state=G.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=H.Strict}startEntity(e){this.decodeMode=e,this.state=G.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case G.EntityStart:if(e.charCodeAt(t)===B.NUM)return this.state=G.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=G.NamedEntity,this.stateNamedEntity(e,t);case G.NumericStart:return this.stateNumericStart(e,t);case G.NumericDecimal:return this.stateNumericDecimal(e,t);case G.NumericHex:return this.stateNumericHex(e,t);case G.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===B.LOWER_X?(this.state=G.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=G.NumericDecimal,this.stateNumericDecimal(e,t))}
1addToNumericResult(e,t,a,i){if(t!==a){let r=a-t;this.result=this.result*Math.pow(i,r)+parseInt(e.substr(t,r),i),this.consumed+=r}}stateNumericHex(e,t){let a=t;for(;t<e.length;){var i;let r=e.charCodeAt(t);if(!e0(r)&&(!((i=r)>=B.UPPER_A)||!(i<=B.UPPER_F))&&(!(i>=B.LOWER_A)||!(i<=B.LOWER_F)))return this.addToNumericResult(e,a,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,a,t,16),-1}stateNumericDecimal(e,t){let a=t;for(;t<e.length;){let i=e.charCodeAt(t);if(!e0(i))return this.addToNumericResult(e,a,t,10),this.emitNumericEntity(i,2);t+=1}return this.addToNumericResult(e,a,t,10),-1}emitNumericEntity(e,t){var a;if(this.consumed<=t)return null==(a=this.errors)||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===B.SEMI)this.consumed+=1;else if(this.decodeMode===H.Strict)return 0;return this.emitCodePoint(eJ(this.result),this.consumed),this.errors&&(e!==B.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:a}=this,i=a[this.treeIndex],r=(i&U.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let s=e.charCodeAt(t);if(this.treeIndex=e3(a,i,this.treeIndex+Math.max(1,r),s),this.treeIndex<0)return 0===this.result||this.decodeMode===H.Attribute&&(0===r||function(e){var t;return e===B.EQUALS||(t=e)>=B.UPPER_A&&t<=B.UPPER_Z||t>=B.LOWER_A&&t<=B.LOWER_Z||e0(t)}(s))?0:this.emitNotTerminatedNamedEntity();if(0!=(r=((i=a[this.treeIndex])&U.VALUE_LENGTH)>>14)){if(s===B.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==H.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:a}=this,i=(a[t]&U.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,i,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,a){let{decodeTree:i}=this;return this.emitCodePoint(1===t?i[e]&~U.VALUE_LENGTH:i[e+1],a),3===t&&this.emitCodePoint(i[e+2],a),a}end(){var e;switch(this.state){case G.NamedEntity:return 0!==this.result&&(this.decodeMode!==H.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case G.NumericDecimal:return this.emitNumericEntity(0,2);case G.NumericHex:return this.emitNumericEntity(0,3);case G.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case G.EntityStart:return 0}}}function e2(e){let t="",a=new e1(e,e=>t+=eZ(e));return function(e,i){let r=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(r,s),a.startEntity(i);let n=a.write(e,s+1);if(n<0){r=s+a.end();break}r=s+n,s=0===n?r+1:r}let n=t+e.slice(r);return t="",n}}function e3(e,t,a,i){let r=(t&U.BRANCH_LENGTH)>>7,s=t&U.JUMP_TABLE;if(0===r)return 0!==s&&i===s?a:-1;if(s){let t=i-s;return t<0||t>=r?-1:e[a+t]-1}let n=a,o=n+r-1;for(;n<=o;){let t=n+o>>>1,a=e[t];if(a<i)n=t+1;else{if(!(a>i))return e[t+r];o=t-1}}return -1}e2(eK),e2(eQ);let e4=/["&'<>$\x80-\uFFFF]/g,e5=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),e6=null!=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function e8(e){let t,a="",i=0;for(;null!==(t=e4.exec(e));){let r=t.index,s=e.charCodeAt(r),n=e5.get(s);void 0!==n?(a+=e.substring(i,r)+n,i=r+1):(a+=`${e.substring(i,r)}&#x${e6(e,r).toString(16)};`,i=e4.lastIndex+=Number((64512&s)==55296))}return a+e.substr(i)}function e7(e,t){return function(a){let i,r=0,s="";for(;i=e.exec(a);)r!==i.index&&(s+=a.substring(r,i.index)),s+=t.get(i[0].charCodeAt(0)),r=i.index+1;return s+a.substring(r)}}e7(/[&<>'"]/g,e5);let e9=e7(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),te=e7(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));(o=W||(W={}))[o.XML=0]="XML",o[o.HTML=1]="HTML",(l=V||(V={}))[l.UTF8=0]="UTF8",l[l.ASCII=1]="ASCII",l[l.Extensive=2]="Extensive",l[l.Attribute=3]="Attribute",l[l.Text=4]="Text";let tt=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),ta=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),ti=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function tr(e){return e.replace(/"/g,""")}let ts=new Set(["area","base","basefont","br","col","command","embed","frame","hr","
1img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function tn(e,t={}){let a="length"in e?e:[e],i="";for(let e=0;e<a.length;e++)i+=function(e,t){var a,i,r;switch(e.type){case eU:return tn(e.children,t);case ez:case eH:return a=e,`<${a.data}>`;case eW:return i=e,`<!--${i.data}-->`;case eY:return r=e,`<![CDATA[${r.children[0].data}]]>`;case eV:case eq:case e$:return function(e,t){var a;"foreign"===t.xmlMode&&(e.name=null!=(a=tt.get(e.name))?a:e.name,e.parent&&to.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&tl.has(e.name)&&(t={...t,xmlMode:"foreign"});let i=`<${e.name}`,r=function(e,t){var a;if(!e)return;let i=(null!=(a=t.encodeEntities)?a:t.decodeEntities)===!1?tr:t.xmlMode||"utf8"!==t.encodeEntities?e8:e9;return Object.keys(e).map(a=>{var r,s;let n=null!=(r=e[a])?r:"";return("foreign"===t.xmlMode&&(a=null!=(s=ta.get(a))?s:a),t.emptyAttrs||t.xmlMode||""!==n)?`${a}="${i(n)}"`:a}).join(" ")}(e.attribs,t);return r&&(i+=` ${r}`),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&ts.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=tn(e.children,t)),(t.xmlMode||!ts.has(e.name))&&(i+=`</${e.name}>`)),i}(e,t);case eG:return function(e,t){var a;let i=e.data||"";return(null!=(a=t.encodeEntities)?a:t.decodeEntities)===!1||!t.xmlMode&&e.parent&&ti.has(e.parent.name)||(i=t.xmlMode||"utf8"!==t.encodeEntities?e8(i):te(i)),i}(e,t)}}(a[e],t);return i}let to=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),tl=new Set(["svg","math"]);function tc(e,t){return tn(e,t)}function tu(e,t){return eR(e)?e.children.map(e=>tc(e,t)).join(""):""}function td(e){return Array.isArray(e)?e.map(td).join(""):eI(e)?"br"===e.name?"\n":td(e.children):ek(e)?td(e.children):eL(e)?e.data:""}function th(e){return Array.isArray(e)?e.map(th).join(""):eR(e)&&!eO(e)?th(e.children):eL(e)?e.data:""}function tm(e){return Array.isArray(e)?e.map(tm).join(""):eR(e)&&(e.type===q.Tag||ek(e))?tm(e.children):eL(e)?e.data:""}function t_(e){return eR(e)?e.children:[]}function tp(e){return e.parent||null}function tf(e){let t=tp(e);if(null!=t)return t_(t);let a=[e],{prev:i,next:r}=e;for(;null!=i;)a.unshift(i),{prev:i}=i;for(;null!=r;)a.push(r),{next:r}=r;return a}function tg(e,t){var a;return null==(a=e.attribs)?void 0:a[t]}function tb(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]}function tE(e){return e.name}function tv(e){let{next:t}=e;for(;null!==t&&!eI(t);)({next:t}=t);return t}function tA(e){let{prev:t}=e;for(;null!==t&&!eI(t);)({prev:t}=t);return t}function tT(e,t,a=!0,i=1/0){return tC(e,Array.isArray(t)?t:[t],a,i)}function tC(e,t,a,i){let r=[],s=[Array.isArray(t)?t:[t]],n=[0];for(;;){if(n[0]>=s[0].length){if(1===n.length)return r;s.shift(),n.shift();continue}let t=s[0][n[0]++];if(e(t)&&(r.push(t),--i<=0))return r;a&&eR(t)&&t.children.length>0&&(n.unshift(0),s.unshift(t.children))}}function ty(e,t){return t.find(e)}function tx(e,t,a=!0){let i=Array.isArray(t)?t:[t];for(let t=0;t<i.length;t++){let r=i[t];if(eI(r)&&e(r))return r;if(a&&eR(r)&&r.children.length>0){let t=tx(e,r.children,!0);if(t)return t}}return null}function tS(e,t){return(Array.isArray(t)?t:[t]).some(t=>eI(t)&&e(t)||eR(t)&&tS(e,t.children))}function tN(e,t){let a=[],i=[Array.isArray(t)?t:[t]],r=[0];for(;;){if(r[0]>=i[0].length){if(1===i.length)return a;i.shift(),r.shift();continue}let t=i[0][r[0]++];eI(t)&&e(t)&&a.push(t),eR(t)&&t.children.length>0&&(r.unshift(0),i.unshift(t.children))}}(c=q||(q={})).Root="root",c.Text="text",c.Directive="directive",c.Comment="comment",c.Script="script",c.Style="style",c.Tag="tag",c.CDATA="cdata",c.Doctype="doctype",q.Root,q.Text,q.Directive,q.Comment,q.Script,q.Style,q.Tag,q.CDATA,q.Doctype,e.s(["getInnerHTML",0,tu,"getOuterHTML",0,tc,"getText",0,td,"innerText",0,tm,"textContent",0,th],845813),e.s(["getAttributeValue",0,tg,"getChildren",0,t_,"getName",0,tE,"getParent",0,tp,"getSiblings",0,tf,"hasAttrib",0,tb,"nextElementSibling",0,tv,"prevElementSibling",0,tA],286051),e.s(["existsOne",0,tS,"filter",0,tT,"find",0,tC,"findAll",0,tN,"findOne",0,tx,"findOneChild",0,ty],923972);let tw={tag_name:e=>"function"==typeof e?t=>eI(t)&&e(t.name):"*"===e?eI:t=>eI(t)&&t.name===e,tag_type:e=>"function"==typeof e?t=>e(t.type):t=>t.type===e,tag_contains:e=>"function"==typeof e?t=>eL(t)&&e(t.data):t=>eL(t)&&t.data===e};function tI(e,t){return"function"==typeof t?a=>eI(a)&&t(a.attribs[e]):a=>eI(a)&&a.attribs[e]===t}function tk(e,t){return a=>e(a)||t(a)}function tL(e){let t=Object.keys(e).map(t=>{let a=e[t];return Object.prototype.hasOwnProperty.call(tw,t)?tw[t](a):tI(t,a)});return 0===t.length?null:t.reduce(tk)}function tO(e,t){let a=tL(e);return!a||a(t)}function tP(e,t,a,i=1/0){let r=tL(e);return r?tT(r,t,a,i):[]}function tD(e,t,a=!0){return Array.isArray(t)||(t=[t]),tx(tI("id",e),t,a)}function tR(e,t,a=!0,i=1/0){return tT(tw.tag_name(e),t,a,i)}function tM(e,t,a=!0,i=1/0){return tT(tI("class",e),t,a,i)}function tj(e,t,a=!0,i=1/0){return tT(tw.tag_type(e),t,a,i)}function tF(e){let t=e.length;for(;--t>=0;){let a=e[t];if(t>0&&e.lastIndexOf(a,t-1)>=0){e.splice(t,1);continue}for(let i=a.parent;i;i=i.parent)if(e.includes(i)){e.splice(t,1);break}}return e}function tB(e,t){let a=[],i=[];if(e===t)return 0;let r=eR(e)?e:e.parent;for(;r;)a.unshift(r),r=r.parent;for(r=eR(t)?t:t.parent;r;)i.unshift(r),r=r.parent;let s=Math.min(a.length,i.length),n=0;for(;n<s&&a[n]===i[n];)n++;if(0===n)return $.DISCONNECTED;let o=a[n-1],l=o.children,c=a[n],u=i[n];return l.indexOf(c)>l.indexOf(u)?o===t?$.FOLLOWING|$.CONTAINED_BY:$.FOLLOWING:o===e?$.PRECEDING|$.CONTAINS:$.PRECEDING}function tU(e){return(e=e.filter((e,t,a)=>!a.includes(e,t+1))).sort((e,t)=>
1{let a=tB(e,t);return a&$.PRECEDING?-1:a&$.FOLLOWING?1:0}),e}function tG(e){var t,a,i,r;let s,n,o,l,c,u,d,h=tq(tz,e);return h?"feed"===h.name?(n={type:"atom",items:tR("entry",s=h.children).map(e=>{var t;let{children:a}=e,i={media:tV(a)};tY(i,"id","id",a),tY(i,"title","title",a);let r=null==(t=tq("link",a))?void 0:t.attribs.href;r&&(i.link=r);let s=t$("summary",a)||t$("content",a);s&&(i.description=s);let n=t$("updated",a);return n&&(i.pubDate=new Date(n)),i})},tY(n,"id","id",s),tY(n,"title","title",s),(o=null==(t=tq("link",s))?void 0:t.attribs.href)&&(n.link=o),tY(n,"description","subtitle",s),(l=t$("updated",s))&&(n.updated=new Date(l)),tY(n,"author","email",s,!0),n):(c=null!=(r=null==(i=tq("channel",(a=h).children))?void 0:i.children)?r:[],u={type:a.name.substr(0,3),id:"",items:tR("item",a.children).map(e=>{let{children:t}=e,a={media:tV(t)};tY(a,"id","guid",t),tY(a,"title","title",t),tY(a,"link","link",t),tY(a,"description","description",t);let i=t$("pubDate",t)||t$("dc:date",t);return i&&(a.pubDate=new Date(i)),a})},tY(u,"title","title",c),tY(u,"link","link",c),tY(u,"description","description",c),(d=t$("lastBuildDate",c))&&(u.updated=new Date(d)),tY(u,"author","managingEditor",c,!0),u):null}e.s(["getElementById",0,tD,"getElements",0,tP,"getElementsByClassName",0,tM,"getElementsByTagName",0,tR,"getElementsByTagType",0,tj,"testElement",0,tO],999048),(u=$||($={}))[u.DISCONNECTED=1]="DISCONNECTED",u[u.PRECEDING=2]="PRECEDING",u[u.FOLLOWING=4]="FOLLOWING",u[u.CONTAINS=8]="CONTAINS",u[u.CONTAINED_BY=16]="CONTAINED_BY",e.s(["DocumentPosition",0,$,"compareDocumentPosition",0,tB,"removeSubsets",0,tF,"uniqueSort",0,tU],939036);let tH=["url","type","lang"],tW=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function tV(e){return tR("media:content",e).map(e=>{let{attribs:t}=e,a={medium:t.medium,isDefault:!!t.isDefault};for(let e of tH)t[e]&&(a[e]=t[e]);for(let e of tW)t[e]&&(a[e]=parseInt(t[e],10));return t.expression&&(a.expression=t.expression),a})}function tq(e,t){return tR(e,t,!0,1)[0]}function t$(e,t,a=!1){return th(tR(e,t,a,1)).trim()}function tY(e,t,a,i,r=!1){let s=t$(a,i,r);s&&(e[t]=s)}function tz(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}function tK(e,t,a){return e?e(null!=t?t:e._root.children,null,void 0,a).toString():""}function tQ(e){let t=e||(this?this.root():[]),a="";for(let e=0;e<t.length;e++)a+=th(t[e]);return a}function tX(e,t){if(t===e)return!1;let a=t;for(;a&&a!==a.parent;)if((a=a.parent)===e)return!0;return!1}function tZ(e){if(Array.isArray(e))return!0;if("object"!=typeof e||!Object.prototype.hasOwnProperty.call(e,"length")||"number"!=typeof e.length||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}e.s(["getFeed",0,tG],629139),e.s([],463678),e.s(["contains",0,tX,"html",0,function(e,t){return tK(this,"object"!=typeof e||null==e||"length"in e||"type"in e?e:void(t=e),{...eg,...this===null||void 0===this?void 0:this._options,...eE(null!=t?t:{})})},"merge",0,function(e,t){if(!tZ(e)||!tZ(t))return;let a=e.length,i=+t.length;for(let r=0;r<i;r++)e[a++]=t[r];return e.length=a,e},"parseHTML",0,function(e,t,a="boolean"==typeof t&&t){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(a=t);let i=this.load(e,eg,!1);return a||i("script").remove(),i.root()[0].children.slice()},"root",0,function(){return this(this._root)},"text",0,tQ,"xml",0,function(e){return tK(this,e,{...this._options,xmlMode:!0})}],931557);var tJ=e.i(931557);function t0(e){return null!=e.cheerio}function t1(e,t){let a=e.length;for(let i=0;i<a;i++)t(e[i],i);return e}function t2(e){let t="length"in e?Array.prototype.map.call(e,e=>eM(e,!0)):[eM(e,!0)],a=new eN(t);return t.forEach(e=>{e.parent=a}),t}function t3(e){let t=e.indexOf("<");if(t<0||t>e.length-3)return!1;let a=e.charCodeAt(t+1);return(a>=Y.LowerA&&a<=Y.LowerZ||a>=Y.UpperA&&a<=Y.UpperZ||a===Y.Exclamation)&&e.includes(">",t+2)}(d=Y||(Y={}))[d.LowerA=97]="LowerA",d[d.LowerZ=122]="LowerZ",d[d.UpperA=65]="UpperA",d[d.UpperZ=90]="UpperZ",d[d.Exclamation=33]="Exclamation";let t4=Object.prototype.hasOwnProperty,t5=/\s+/,t6="data-",t8={null:null,true:!0,false:!1},t7=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,t9=/^{[^]*}$|^\[[^]*]$/;function ae(e,t,a){if(e&&eI(e)){if(null!=e.attribs||(e.attribs={}),!t)return e.attribs;if(t4.call(e.attribs,t))return!a&&t7.test(t)?t:e.attribs[t];if("option"===e.name&&"value"===t)return tQ(e.children);if("input"===e.name&&("radio"===e.attribs.type||"checkbox"===e.attribs.type)&&"value"===t)return"on"}}function at(e,t,a){null===a?an(e,t):e.attribs[t]=`${a}`}function aa(e,t,a){return t in e?e[t]:!a&&t7.test(t)?void 0!==ae(e,t,!1):ae(e,t,a)}function ai(e,t,a,i){t in e?e[t]=a:at(e,t,!i&&t7.test(t)?a?"":null:`${a}`)}function ar(e,t,a){null!=e.data||(e.data={}
1),"object"==typeof t?Object.assign(e.data,t):"string"==typeof t&&void 0!==a&&(e.data[t]=a)}function as(e,t){let a,i,r;null==t?i=(a=Object.keys(e.attribs).filter(e=>e.startsWith(t6))).map(e=>e.slice(t6.length).replace(/[_.-](\w|$)/g,(e,t)=>t.toUpperCase())):(a=[t6+t.replace(/[A-Z]/g,"-$&").toLowerCase()],i=[t]);for(let t=0;t<a.length;++t){let s=a[t],n=i[t];if(t4.call(e.attribs,s)&&!t4.call(e.data,n)){if(r=e.attribs[s],t4.call(t8,r))r=t8[r];else if(r===String(Number(r)))r=Number(r);else if(t9.test(r))try{r=JSON.parse(r)}catch(e){}e.data[n]=r}}return null==t?e.data:r}function an(e,t){e.attribs&&t4.call(e.attribs,t)&&delete e.attribs[t]}function ao(e){return e?e.trim().split(t5):[]}function al(e){if("function"==typeof e)return t1(this,(t,a)=>{if(eI(t)){let i=t.attribs.class||"";al.call([t],e.call(t,a,i))}});if(!e||"string"!=typeof e)return this;let t=e.split(t5),a=this.length;for(let e=0;e<a;e++){let a=this[e];if(!eI(a))continue;let i=ae(a,"class",!1);if(i){let e=` ${i} `;for(let a=0;a<t.length;a++){let i=`${t[a]} `;e.includes(` ${i}`)||(e+=i)}at(a,"class",e.trim())}else at(a,"class",t.join(" ").trim())}return this}function ac(e){if("function"==typeof e)return t1(this,(t,a)=>{eI(t)&&ac.call([t],e.call(t,a,t.attribs.class||""))});let t=ao(e),a=t.length,i=0==arguments.length;return t1(this,e=>{if(eI(e))if(i)e.attribs.class="";else{let i=ao(e.attribs.class),r=!1;for(let e=0;e<a;e++){let a=i.indexOf(t[e]);a>=0&&(i.splice(a,1),r=!0,e--)}r&&(e.attribs.class=i.join(" "))}})}function au(e,t){if("function"==typeof e)return t1(this,(a,i)=>{eI(a)&&au.call([a],e.call(a,i,a.attribs.class||"",t),t)});if(!e||"string"!=typeof e)return this;let a=e.split(t5),i=a.length,r="boolean"==typeof t?t?1:-1:0,s=this.length;for(let e=0;e<s;e++){let t=this[e];if(!eI(t))continue;let s=ao(t.attribs.class);for(let e=0;e<i;e++){let t=s.indexOf(a[e]);r>=0&&t<0?s.push(a[e]):r<=0&&t>=0&&s.splice(t,1)}t.attribs.class=s.join(" ")}return this}e.s(["addClass",0,al,"attr",0,function(e,t){if("object"==typeof e||void 0!==t){if("function"==typeof t){if("string"!=typeof e)throw Error("Bad combination of arguments.");return t1(this,(a,i)=>{eI(a)&&at(a,e,t.call(a,i,a.attribs[e]))})}return t1(this,a=>{eI(a)&&("object"==typeof e?Object.keys(e).forEach(t=>{let i=e[t];at(a,t,i)}):at(a,e,t))})}return arguments.length>1?this:ae(this[0],e,this.options.xmlMode)},"data",0,function(e,t){let a=this[0];return a&&eI(a)?(null!=a.data||(a.data={}),e)?"object"==typeof e||void 0!==t?(t1(this,a=>{eI(a)&&("object"==typeof e?ar(a,e):ar(a,e,t))}),this):t4.call(a.data,e)?a.data[e]:as(a,e):as(a):void 0},"hasClass",0,function(e){return this.toArray().some(t=>{let a=eI(t)&&t.attribs.class,i=-1;if(a&&e.length)for(;(i=a.indexOf(e,i+1))>-1;){let t=i+e.length;if((0===i||t5.test(a[i-1]))&&(t===a.length||t5.test(a[t])))return!0}return!1})},"prop",0,function(e,t){var a;if("string"==typeof e&&void 0===t){let t=this[0];if(!t||!eI(t))return;switch(e){case"style":{let e=this.css(),t=Object.keys(e);return t.forEach((t,a)=>{e[a]=t}),e.length=t.length,e}case"tagName":case"nodeName":return t.name.toUpperCase();case"href":case"src":{let i=null==(a=t.attribs)?void 0:a[e];if("u">typeof URL&&("href"===e&&("a"===t.tagName||"link"===t.name)||"src"===e&&("img"===t.tagName||"iframe"===t.tagName||"audio"===t.tagName||"video"===t.tagName||"source"===t.tagName))&&void 0!==i&&this.options.baseURI)return new URL(i,this.options.baseURI).href;return i}case"innerText":return tm(t);case"textContent":return th(t);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return aa(t,e,this.options.xmlMode)}}if("object"==typeof e||void 0!==t){if("function"==typeof t){if("object"==typeof e)throw Error("Bad combination of arguments.");return t1(this,(a,i)=>{eI(a)&&ai(a,e,t.call(a,i,aa(a,e,this.options.xmlMode)),this.options.xmlMode)})}return t1(this,a=>{eI(a)&&("object"==typeof e?Object.keys(e).forEach(t=>{let i=e[t];ai(a,t,i,this.options.xmlMode)}):ai(a,e,t,this.options.xmlMode))})}},"removeAttr",0,function(e){let t=ao(e);for(let e=0;e<t.length;e++)t1(this,a=>{eI(a)&&an(a,t[e])});return this},"removeClass",0,ac,"toggleClass",0,au,"val",0,function(e){let t=0==arguments.length,a=this[0];if(!a||!eI(a))return t?void 0:this;switch(a.name){case"textarea":return this.text(e);case"select":{let a=this.find("option:selected");if(!t){if(null==this.attr("multiple")&&"object"==typeof e)return this;this.find("option").removeAttr("selected");let t="object"!=typeof e?[e]:e;for(let e=0;e<t.length;e++)this.find(`option[value="${t[e]}"]`).attr("selected","");return this}return this.attr("multiple")?a.toArray().map(e=>tQ(e.children)):a.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}],912632);var ad=e.i(912632);(h=z||(z={})).Attribute="attribute",h.Pseudo="pseudo",h.PseudoElement="pseudo-element",h.Tag="tag",h.Universal="universal",h.Adjacent="adjacent",h.Child="child",h.Descendant="descendant",h.Parent="parent",h.Sibling="sibling",h.ColumnCombinator="column-combinator",(m=K||(K={})).Any="any",m.Element="element",m.End="end",m.Equals="equals",m.Exists="exists",m.Hyphen="hyphen",m.Not="not",m.Start="start";let ah=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,am=/\\([\da-f]{1,6}
1\s?|(\s)|.)/gi,a_=new Map([[126,K.Element],[94,K.Start],[36,K.End],[42,K.Any],[33,K.Not],[124,K.Hyphen]]),ap=new Set(["has","not","matches","is","where","host","host-context"]);function af(e){switch(e.type){case z.Adjacent:case z.Child:case z.Descendant:case z.Parent:case z.Sibling:case z.ColumnCombinator:return!0;default:return!1}}let ag=new Set(["contains","icontains"]);function ab(e,t,a){let i=parseInt(t,16)-65536;return i!=i||a?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)}function aE(e){return e.replace(am,ab)}function av(e){return 39===e||34===e}function aA(e){return 32===e||9===e||10===e||12===e||13===e}function aT(e){let t=[],a=function e(t,a,i){let r=[];function s(e){let t=a.slice(i+e).match(ah);if(!t)throw Error(`Expected name, found ${a.slice(i)}`);let[r]=t;return i+=e+r.length,aE(r)}function n(e){for(i+=e;i<a.length&&aA(a.charCodeAt(i));)i++}function o(){let e=i+=1,t=1;for(;t>0&&i<a.length;i++)40!==a.charCodeAt(i)||l(i)?41===a.charCodeAt(i)&&!l(i)&&t--:t++;if(t)throw Error("Parenthesis not matched");return aE(a.slice(e,i-1))}function l(e){let t=0;for(;92===a.charCodeAt(--e);)t++;return(1&t)==1}function c(){if(r.length>0&&af(r[r.length-1]))throw Error("Did not expect successive traversals.")}function u(e){if(r.length>0&&r[r.length-1].type===z.Descendant){r[r.length-1].type=e;return}c(),r.push({type:e})}function d(e,t){r.push({type:z.Attribute,name:e,action:t,value:s(1),namespace:null,ignoreCase:"quirks"})}function h(){if(r.length&&r[r.length-1].type===z.Descendant&&r.pop(),0===r.length)throw Error("Empty sub-selector");t.push(r)}if(n(0),a.length===i)return i;e:for(;i<a.length;){let t=a.charCodeAt(i);switch(t){case 32:case 9:case 10:case 12:case 13:(0===r.length||r[0].type!==z.Descendant)&&(c(),r.push({type:z.Descendant})),n(1);break;case 62:u(z.Child),n(1);break;case 60:u(z.Parent),n(1);break;case 126:u(z.Sibling),n(1);break;case 43:u(z.Adjacent),n(1);break;case 46:d("class",K.Element);break;case 35:d("id",K.Equals);break;case 91:{let e;n(1);let t=null;124===a.charCodeAt(i)?e=s(1):a.startsWith("*|",i)?(t="*",e=s(2)):(e=s(0),124
1===a.charCodeAt(i)&&61!==a.charCodeAt(i+1)&&(t=e,e=s(1))),n(0);let o=K.Exists,c=a_.get(a.charCodeAt(i));if(c){if(o=c,61!==a.charCodeAt(i+1))throw Error("Expected `=`");n(2)}else 61===a.charCodeAt(i)&&(o=K.Equals,n(1));let u="",d=null;if("exists"!==o){if(av(a.charCodeAt(i))){let e=a.charCodeAt(i),t=i+1;for(;t<a.length&&(a.charCodeAt(t)!==e||l(t));)t+=1;if(a.charCodeAt(t)!==e)throw Error("Attribute value didn't end");u=aE(a.slice(i+1,t)),i=t+1}else{let e=i;for(;i<a.length&&(!aA(a.charCodeAt(i))&&93!==a.charCodeAt(i)||l(i));)i+=1;u=aE(a.slice(e,i))}n(0);let e=32|a.charCodeAt(i);115===e?(d=!1,n(1)):105===e&&(d=!0,n(1))}if(93!==a.charCodeAt(i))throw Error("Attribute selector didn't terminate");i+=1;let h={type:z.Attribute,name:e,action:o,value:u,namespace:t,ignoreCase:d};r.push(h);break}case 58:{if(58===a.charCodeAt(i+1)){r.push({type:z.PseudoElement,name:s(2).toLowerCase(),data:40===a.charCodeAt(i)?o():null});continue}let t=s(1).toLowerCase(),n=null;if(40===a.charCodeAt(i))if(ap.has(t)){if(av(a.charCodeAt(i+1)))throw Error(`Pseudo-selector ${t} cannot be quoted`);if(i=e(n=[],a,i+1),41!==a.charCodeAt(i))throw Error(`Missing closing parenthesis in :${t} (${a})`);i+=1}else{if(n=o(),ag.has(t)){let e=n.charCodeAt(0);e===n.charCodeAt(n.length-1)&&av(e)&&(n=n.slice(1,-1))}n=aE(n)}r.push({type:z.Pseudo,name:t,data:n});break}case 44:h(),r=[],n(1);break;default:{let e;if(a.startsWith("/*",i)){let e=a.indexOf("*/",i+2);if(e<0)throw Error("Comment was not terminated");i=e+2,0===r.length&&n(0);break}let o=null;if(42===t)i+=1,e="*";else if(124===t){if(e="",124===a.charCodeAt(i+1)){u(z.ColumnCombinator),n(2);break}}else if(ah.test(a.slice(i)))e=s(0);else break e;124===a.charCodeAt(i)&&124!==a.charCodeAt(i+1)&&(o=e,42===a.charCodeAt(i+1)?(e="*",i+=2):e=s(1)),r.push("*"===e?{type:z.Universal,namespace:o}:{type:z.Tag,name:e,namespace:o})}}}return h(),i}(t,`${e}`,0);if(a<e.length)throw Error(`Unmatched selector: ${e.slice(a)}`);return t}function aC(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,a=t.lastIndexOf(e);a>=0&&t.splice(a,1)}e.next=null,e.prev=null,e.parent=null}function ay(e,t){let a=t.prev=e.prev;a&&(a.next=t);let i=t.next=e.next;i&&(i.prev=t);let r=t.parent=e.parent;if(r){let a=r.children;a[a.lastIndexOf(e)]=t,e.parent=null}}function ax(e,t){if(aC(t),t.next=null,t.parent=e,e.children.push(t)>1){let a=e.children[e.children.length-2];a.next=t,t.prev=a}else t.prev=null}function aS(e,t){aC(t);let{parent:a}=e,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=a,i){if(i.prev=t,a){let e=a.children;e.splice(e.lastIndexOf(i),0,t)}}else a&&a.children.push(t)}function aN(e,t){if(aC(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){let a=e.children[1];a.prev=t,t.next=a}else t.next=null}function aw(e,t){aC(t);let{parent:a}=e;if(a){let i=a.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=a,t.prev=e.prev,t.next=e,e.prev=t}e.i(463678),e.i(845813),e.i(286051),e.s(["append",0,aS,"appendChild",0,ax,"prepend",0,aw,"prependChild",0,aN,"removeElement",0,aC,"replaceElement",0,ay],384430),e.i(384430),e.i(923972),e.i(999048),e.i(939036),e.i(629139),e.s(["DocumentPosition",0,$,"append",0,aS,"appendChild",0,ax,"compareDocumentPosition",0,tB,"existsOne",0,tS,"filter",0,tT,"find",0,tC,"findAll",0,tN,"findOne",0,tx,"findOneChild",0,ty,"getAttributeValue",0,tg,"getChildren",0,t_,"getElementById",0,tD,"getElements",0,tP,"getElementsByClassName",0,tM,"getElementsByTagName",0,tR,"getElementsByTagType",0,tj,"getFeed",0,tG,"getInnerHTML",0,tu,"getName",0,tE,"getOuterHTML",0,tc,"getParent",0,tp,"getSiblings",0,tf,"getText",0,td,"hasAttrib",0,tb,"hasChildren",0,eR,"innerText",0,tm,"isCDATA",0,ek,"isComment",0,eO,"isDocument",0,eD,"isTag",0,eI,"isText",0,eL,"nextElementSibling",0,tv,"prepend",0,aw,"prependChild",0,aN,"prevElementSibling",0,tA,"removeElement",0,aC,"removeSubsets",0,tF,"replaceElement",0,ay,"testElement",0,tO,"textContent",0,th,"uniqueSort",0,tU],178721);var aI=e.i(178721),ak=e.i(553751);let aL=new Map([[z.Universal,50],[z.Tag,30],[z.Attribute,1],[z.Pseudo,0]]);function aO(e){return!aL.has(e.type)}let aP=new Map([[K.Exists,10],[K.Equals,8],[K.Not,7],[K.Start,6],[K.End,6],[K.Any,5]]);function aD(e){let t=e.map(aR);for(let a=1;a<e.length;a++){let i=t[a];if(!(i<0))for(let r=a-1;r>=0&&i<t[r];r--){let a=e[r+1];e[r+1]=e[r],e[r]=a,t[r+1]=t[r],t[r]=i}}}function aR(e){var t,a;let i=null!=(t=aL.get(e.type))?t:-1;return e.type===z.Attribute?(i=null!=(a=aP.get(e.action))?a:4,e.action===K.Equals&&"id"===e.name&&(i=9),e.ignoreCase&&(i>>=1)):e.type===z.Pseudo&&(e.data?"has"===e.name||"contains"===e.name?i=0:Array.isArray(e.data)?(i=Math.min(...e.data.map(e=>Math.min(...e.map(aR)))))<0&&(i=0):i=2:i=3),i}let aM=/[-[\]{}()*+?.,\\^$|#\s]/g;function aj(e){return e.replace(aM,"\\$&")}let aF=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function aB(e,t){return"boolean"==typeof e.ignoreCase?e.ignoreCase:"quirks"===e.ignoreCase?!!t.quirksMode:!t.xmlMode&&aF.has(e.name)}let aU={equals(e,t,a){let{adapter:i}=a,{name:r}=t,{value:s}=t;return aB(t,a)?(s=s.toLowerCase(),t=>{let a=i.getAttributeValue(t,r);return null!=a&&a.length===s.length&&a.toLowerCase()===s&&e(t)}):t=>i.getAttributeValue(t,r)===s&&e(t)},hyphen(e,t,a){let{adapter:i}=a,{name:r}=t,{value:s}=t,n=s.length;return aB(t,a)?(s=s.toLowerCase(),function(t){let a=i.getAttributeValue(t,r);return null!=a&&(a.length===n||"-"===a.charAt(n))&&a.substr(0,n).toLowerCase()===s&&e(t)}):function(t){let a=i.getAttributeValue(t,r);return null!=a&&(a.length===n||"-"===a.charAt(n))&&a.substr(0,n)===s&&e(t)}}
1,element(e,t,a){let{adapter:i}=a,{name:r,value:s}=t;if(/\s/.test(s))return ak.default.falseFunc;let n=RegExp(`(?:^|\\s)${aj(s)}(?:$|\\s)`,aB(t,a)?"i":"");return function(t){let a=i.getAttributeValue(t,r);return null!=a&&a.length>=s.length&&n.test(a)&&e(t)}},exists:(e,{name:t},{adapter:a})=>i=>a.hasAttrib(i,t)&&e(i),start(e,t,a){let{adapter:i}=a,{name:r}=t,{value:s}=t,n=s.length;return 0===n?ak.default.falseFunc:aB(t,a)?(s=s.toLowerCase(),t=>{let a=i.getAttributeValue(t,r);return null!=a&&a.length>=n&&a.substr(0,n).toLowerCase()===s&&e(t)}):t=>{var a;return!!(null==(a=i.getAttributeValue(t,r))?void 0:a.startsWith(s))&&e(t)}},end(e,t,a){let{adapter:i}=a,{name:r}=t,{value:s}=t,n=-s.length;return 0===n?ak.default.falseFunc:aB(t,a)?(s=s.toLowerCase(),t=>{var a;return(null==(a=i.getAttributeValue(t,r))?void 0:a.substr(n).toLowerCase())===s&&e(t)}):t=>{var a;return!!(null==(a=i.getAttributeValue(t,r))?void 0:a.endsWith(s))&&e(t)}},any(e,t,a){let{adapter:i}=a,{name:r,value:s}=t;if(""===s)return ak.default.falseFunc;if(aB(t,a)){let t=RegExp(aj(s),"i");return function(a){let n=i.getAttributeValue(a,r);return null!=n&&n.length>=s.length&&t.test(n)&&e(a)}}return t=>{var a;return!!(null==(a=i.getAttributeValue(t,r))?void 0:a.includes(s))&&e(t)}},not(e,t,a){let{adapter:i}=a,{name:r}=t,{value:s}=t;return""===s?t=>!!i.getAttributeValue(t,r)&&e(t):aB(t,a)?(s=s.toLowerCase(),t=>{let a=i.getAttributeValue(t,r);return(null==a||a.length!==s.length||a.toLowerCase()!==s)&&e(t)}):t=>i.getAttributeValue(t,r)!==s&&e(t)}},aG=new Set([9,10,12,13,32]);function aH(e){return function(e){let t=e[0],a=e[1]-1;if(a<0&&t<=0)return ak.default.falseFunc;if(-1===t)return e=>e<=a;if(0===t)return e=>e===a;if(1===t)return a<0?ak.default.trueFunc:e=>e>=a;let i=Math.abs(t),r=(a%i+i)%i;return t>1?e=>e>=a&&e%i===r:e=>e<=a&&e%i===r}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,a=0,i=s(),r=n();if(t<e.length&&"n"===e.charAt(t)&&(t++,a=i*(null!=r?r:1),o(),t<e.length?(i=s(),o(),r=n()):i=r=0),null===r||t<e.length)throw Error(`n-th rule couldn't be parsed ('${e}')`);return[a,i*r];function s(){return"-"===e.charAt(t)?(t++,-1):("+"===e.charAt(t)&&t++,1)}function n(){let a=t,i=0;for(;t<e.length&&e.charCodeAt(t)>=48&&57>=e.charCodeAt(t);)i=10*i+(e.charCodeAt(t)-48),t++;return t===a?null:i}function o(){for(;t<e.length&&aG.has(e.charCodeAt(t));)t++}}(e))}function aW(e,t){return a=>{let i=t.getParent(a);return null!=i&&t.isTag(i)&&e(a)}}let aV={contains:(e,t,{adapter:a})=>function(i){return e(i)&&a.getText(i).includes(t)},icontains(e,t,{adapter:a}){let i=t.toLowerCase();return function(t){return e(t)&&a.getText(t).toLowerCase().includes(i)}},"nth-child"(e,t,{adapter:a,equals:i}){let r=aH(t);return r===ak.default.falseFunc?ak.default.falseFunc:r===ak.default.trueFunc?aW(e,a):function(t){let s=a.getSiblings(t),n=0;for(let e=0;e<s.length&&!i(t,s[e]);e++)a.isTag(s[e])&&n++;return r(n)&&e(t)}},"nth-last-child"(e,t,{adapter:a,equals:i}){let r=aH(t);return r===ak.default.falseFunc?ak.default.falseFunc:r===ak.default.trueFunc?aW(e,a):function(t){let s=a.getSiblings(t),n=0;for(let e=s.length-1;e>=0&&!i(t,s[e]);e--)a.isTag(s[e])&&n++;return r(n)&&e(t)}},"nth-of-type"(e,t,{adapter:a,equals:i}){let r=aH(t);return r===ak.default.falseFunc?ak.default.falseFunc:r===ak.default.trueFunc?aW(e,a):function(t){let s=a.getSiblings(t),n=0;for(let e=0;e<s.length;e++){let r=s[e];if(i(t,r))break;a.isTag(r)&&a.getName(r)===a.getName(t)&&n++}return r(n)&&e(t)}},"nth-last-of-type"(e,t,{adapter:a,equals:i}){let r=aH(t);return r===ak.default.falseFunc?ak.default.falseFunc:r===ak.default.trueFunc?aW(e,a):function(t){let s=a.getSiblings(t),n=0;for(let e=s.length-1;e>=0;e--){let r=s[e];if(i(t,r))break;a.isTag(r)&&a.getName(r)===a.getName(t)&&n++}return r(n)&&e(t)}},root:(e,t,{adapter:a})=>t=>{let i=a.getParent(t);return(null==i||!a.isTag(i))&&e(t)},scope(e,t,a,i){let{equals:r}=a;return i&&0!==i.length?1===i.length?t=>r(i[0],t)&&e(t):t=>i.includes(t)&&e(t):aV.root(e,t,a)},hover:aq("isHovered"),visited:aq("isVisited"),active:aq("isActive")};function aq(e){return function(t,a,{adapter:i}){let r=i[e];return"function"!=typeof r?ak.default.falseFunc:function(e){return r(e)&&t(e)}}}let a$={empty:(e,{adapter:t})=>!t.getChildren(e).some(e=>t.isTag(e)||""!==t.getText(e)),"first-child"(e,{adapter:t,equals:a}){if(t.prevElementSibling)return null==t.prevElementSibling(e);let i=t.getSiblings(e).find(e=>t.isTag(e));return null!=i&&a(e,i)},"last-child"(e,{adapter:t,equals:a}){let i=t.getSiblings(e);for(let r=i.length-1;r>=0;r--){if(a(e,i[r]))return!0;
1if(t.isTag(i[r]))break}return!1},"first-of-type"(e,{adapter:t,equals:a}){let i=t.getSiblings(e),r=t.getName(e);for(let s=0;s<i.length;s++){let n=i[s];if(a(e,n))return!0;if(t.isTag(n)&&t.getName(n)===r)break}return!1},"last-of-type"(e,{adapter:t,equals:a}){let i=t.getSiblings(e),r=t.getName(e);for(let s=i.length-1;s>=0;s--){let n=i[s];if(a(e,n))return!0;if(t.isTag(n)&&t.getName(n)===r)break}return!1},"only-of-type"(e,{adapter:t,equals:a}){let i=t.getName(e);return t.getSiblings(e).every(r=>a(e,r)||!t.isTag(r)||t.getName(r)!==i)},"only-child":(e,{adapter:t,equals:a})=>t.getSiblings(e).every(i=>a(e,i)||!t.isTag(i))};function aY(e,t,a,i){if(null===a){if(e.length>i)throw Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===i)throw Error(`Pseudo-class :${t} doesn't have any arguments`)}let az={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is( 2 :is(button, input, select, textarea, optgroup, option)[disabled], 3 optgroup[disabled] > option, 4 fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *) 5 )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},aK={};function aQ(e,t){return e===ak.default.falseFunc?ak.default.falseFunc:a=>t.isTag(a)&&e(a)}function aX(e,t){let a=t.getSiblings(e);if(a.length<=1)return[];let i=a.indexOf(e);return i<0||i===a.length-1?[]:a.slice(i+1).filter(t.isTag)}function aZ(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}let aJ=(e,t,a,i,r)=>{let s=r(t,aZ(a),i);return s===ak.default.trueFunc?e:s===ak.default.falseFunc?ak.default.falseFunc:t=>s(t)&&e(t)},a0={is:aJ,matches:aJ,where:aJ,not(e,t,a,i,r){let s=r(t,aZ(a),i);return s===ak.default.falseFunc?e:s===ak.default.trueFunc?ak.default.falseFunc:t=>!s(t)&&e(t)},has(e,t,a,i,r){let{adapter:s}=a,n=aZ(a);n.relativeSelector=!0;let o=t.some(e=>e.some(aO))?[aK]:void 0,l=r(t,n,o);if(l===ak.default.falseFunc)return ak.default.falseFunc;let c=aQ(l,s);if(o&&l!==ak.default.trueFunc){let{shouldTestNextSiblings:t=!1}=l;return a=>{if(!e(a))return!1;o[0]=a;let i=s.getChildren(a),r=t?[...i,...aX(a,s)]:i;return s.existsOne(c,r)}}return t=>e(t)&&s.existsOne(c,s.getChildren(t))}};function a1(e,t){let a=t.getParent(e);return a&&t.isTag(a)?a:null}function a2(e,t,a){return a8("string"==typeof e?aT(e):e,t,a)}function a3(e){return e.type===z.Pseudo&&("scope"===e.name||Array.isArray(e.data)&&e.data.some(e=>e.some(a3)))}let a4={type:z.Descendant},a5={type:"_flexibleDescendant"},a6={type:z.Pseudo,name:"scope",data:null};function a8(e,t,a){var i;e.forEach(aD);let r=Array.isArray(a=null!=(i=t.context)?i:a),s=a&&(Array.isArray(a)?a:[a]);if(!1!==t.relativeSelector)!function(e,{adapter:t},a){let i=!!(null==a?void 0:a.every(e=>{let a=t.isTag(e)&&t.getParent(e);return e===aK||a&&t.isTag(a)}));for(let t of e){if(t.length>0&&aO(t[0])&&t[0].type!==z.Descendant);else{if(!i||t.some(a3))continue;t.unshift(a4)}t.unshift(a6)}}(e,t,s);else if(e.some(e=>e.length>0&&aO(e[0])))throw Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let n=!1,o=e.map(e=>{var a,i,o,l;if(e.length>=2){let[t,a]=e;t.type!==z.Pseudo||"scope"!==t.name||(r&&a.type===z.Descendant?e[1]=a5:(a.type===z.Adjacent||a.type===z.Sibling)&&(n=!0))}return a=e,i=t,o=s,a.reduce((e,t)=>e===ak.default.falseFunc?ak.default.falseFunc:function(e,t,a,i,r){let{adapter:s,equals:n}=a;switch(t.type){case z.PseudoElement:throw Error("Pseudo-elements are not supported by css-select");case z.ColumnCombinator:throw Error("Column combinators are not yet supported by css-select");case z.Attribute:if(null!=t.namespace)throw Error("Namespaced attributes are not yet supported by css-select");return(!a.xmlMode||a.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),aU[t.action](e,t,a);case z.Pseudo:return function(e,t,a,i,r){var s;let{name:n,data:o}=t;if(Array.isArray(o)){if(!(n in a0))throw Error(`Unknown pseudo-class :${n}(${o}
5)`);return a0[n](e,o,a,i,r)}let l=null==(s=a.pseudos)?void 0:s[n],c="string"==typeof l?l:az[n];if("string"==typeof c){if(null!=o)throw Error(`Pseudo ${n} doesn't have any arguments`);let t=aT(c);return a0.is(e,t,a,i,r)}if("function"==typeof l)return aY(l,n,o,1),t=>l(t,o)&&e(t);if(n in aV)return aV[n](e,o,a,i);if(n in a$){let t=a$[n];return aY(t,n,o,2),i=>t(i,a,o)&&e(i)}throw Error(`Unknown pseudo-class :${n}`)}(e,t,a,i,r);case z.Tag:{if(null!=t.namespace)throw Error("Namespaced tag names are not yet supported by css-select");let{name:i}=t;return(!a.xmlMode||a.lowerCaseTags)&&(i=i.toLowerCase()),function(t){return s.getName(t)===i&&e(t)}}case z.Descendant:{if(!1===a.cacheResults||"u"<typeof WeakSet)return function(t){let a=t;for(;a=a1(a,s);)if(e(a))return!0;return!1};let t=new WeakSet;return function(a){let i=a;for(;i=a1(i,s);)if(!t.has(i)){if(s.isTag(i)&&e(i))return!0;t.add(i)}return!1}}case"_flexibleDescendant":return function(t){let a=t;do if(e(a))return!0;while(a=a1(a,s))return!1};case z.Parent:return function(t){return s.getChildren(t).some(t=>s.isTag(t)&&e(t))};case z.Child:return function(t){let a=s.getParent(t);return null!=a&&s.isTag(a)&&e(a)};case z.Sibling:return function(t){let a=s.getSiblings(t);for(let i=0;i<a.length;i++){let r=a[i];if(n(t,r))break;if(s.isTag(r)&&e(r))return!0}return!1};case z.Adjacent:if(s.prevElementSibling)return function(t){let a=s.prevElementSibling(t);return null!=a&&e(a)};return function(t){let a,i=s.getSiblings(t);for(let e=0;e<i.length;e++){let r=i[e];if(n(t,r))break;s.isTag(r)&&(a=r)}return!!a&&e(a)};case z.Universal:if(null!=t.namespace&&"*"!==t.namespace)throw Error("Namespaced universal selectors are not yet supported by css-select");return e}}(e,t,i,o,a8),null!=(l=i.rootFunc)?l:ak.default.trueFunc)}).reduce(a7,ak.default.falseFunc);return o.shouldTestNextSiblings=n,o}function a7(e,t){return t===ak.default.falseFunc||e===ak.default.trueFunc?e:e===ak.default.falseFunc||t===ak.default.trueFunc?t:function(a){return e(a)||t(a)}}let a9=(e,t)=>e===t,ie={adapter:aI,equals:a9};function it(e){var t,a;let i=null!=e?e:ie;return null!=i.adapter||(i.adapter=aI),null!=i.equals||(i.equals=null!=(a=null==(t=i.adapter)?void 0:t.equals)?a:a9),i}function ia(e){return function(t,a,i){return e(t,it(a),i)}}ia(function(e,t,a){return aQ(a2(e,t,a),t.adapter)}),ia(a2);let ii=ia(a8);function ir(e){return function(t,a,i){let r=it(i);"function"!=typeof t&&(t=a2(t,r,a));let s=is(a,r.adapter,t.shouldTestNextSiblings);return e(t,s,r)}}function is(e,t,a=!1){return a&&(e=function(e,t){let a=Array.isArray(e)?e.slice(0):[e],i=a.length;for(let e=0;e<i;e++){let i=aX(a[e],t);a.push(...i)}return a}(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}ir((e,t,a)=>e!==ak.default.falseFunc&&t&&0!==t.length?a.adapter.findAll(e,t):[]),ir((e,t,a)=>e!==ak.default.falseFunc&&t&&0!==t.length?a.adapter.findOne(e,t):null);let io=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function il(e){return"pseudo"===e.type&&(!!io.has(e.name)||!!("not"===e.name&&Array.isArray(e.data))&&e.data.some(e=>e.some(il)))}function ic(e){let t=[],a=[];for(let i of e)i.some(il)?t.push(i):a.push(i);return[a,t]}let iu={type:z.Universal,namespace:null},id={type:z.Pseudo,name:"scope",data:null};function ih(e,t,a={}){return im([e],t,a)}function im(e,t,a={}){if("function"==typeof t)return e.some(t);let[i,r]=ic(aT(t));return i.length>0&&e.some(ii(i,a))||r.some(t=>ig(t,e,a).length>0)}function i_(e,t,a={}){return ip(aT(e),t,a)}function ip(e,t,a){let i;if(0===t.length)return[];let[r,s]=ic(e);if(r.length){let e=iA(t,r,a);if(0===s.length)return e;e.length&&(i=new Set(e))}for(let e=0;e<s.length&&(null==i?void 0:i.size)!==t.length;e++){let r=s[e];if(0===(i?t.filter(e=>aI.isTag(e)&&!i.has(e)):t).length)break;let n=ig(r,t,a);if(n.length)if(i)n.forEach(e=>i.add(e));else{if(e===s.length-1)return n;i=new Set(n)}}return void 0!==i?i.size===t.length?t:t.filter(e=>i.has(e)):[]}function ig(e,t,a){var i;if(e.some(af)){let r=null!=(i=a.root)?i:function(e){for(;e.parent;)e=e.parent;return e}(t[0]),s={...a,context:t,relativeSelector:!1};return e.push(id),ib(r,e,s,!0,t.length)}return ib(t,e,a,!1,t.length)}function ib(e,t,a,i,r){let s=t.findIndex(il),n=t.slice(0,s),o=t[s],l=t.length-1===s?r:1/0,c=function(e,t,a){let i=null!=t?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(i)?i>=0?i+1:1/0:0;case"lt":return isFinite(i)?i>=0?Math.min(i,a):1/0:0;case"gt":return isFinite(i)?1/0:0;case"odd":return 2*a;case"even":return 2*a-1;case"last":case"not":return 1/0}}(o.name,o.data,l);if(0===c)return[];let u=(0!==n.length||Array.isArray(e)?0===n.length?(Array.isArray(e)?e:[e]).filter(aI.isTag):i||n.some(af)?iE(e,[n],a,c):iA(e,[n],a):aI.getChildren(e).filter(aI.isTag)).slice(0,c),d=function(e,t,a,i){let r="string"==typeof a?parseInt(a,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(r)&&Math.abs(r)<t.length?[r<0?t[t.length+r]:t[r]]:[];case"gt":return isFinite(r)?t.slice(r+1):[];case"even":return t.filter((e,t)=>
5t%2==0);case"odd":return t.filter((e,t)=>t%2==1);case"not":{let e=new Set(ip(a,t,i));return t.filter(t=>!e.has(t))}}}(o.name,u,o.data,a);if(0===d.length||t.length===s+1)return d;let h=t.slice(s+1),m=h.some(af);if(m){if(af(h[0])){let{type:e}=h[0];(e===z.Sibling||e===z.Adjacent)&&(d=is(d,aI,!0)),h.unshift(iu)}a={...a,relativeSelector:!1,rootFunc:e=>d.includes(e)}}else a.rootFunc&&a.rootFunc!==ak.trueFunc&&(a={...a,rootFunc:ak.trueFunc});return h.some(il)?ib(d,h,a,!1,r):m?iE(d,[h],a,r):iA(d,[h],a)}function iE(e,t,a,i){let r=ii(t,a,e);return iv(e,r,i)}function iv(e,t,a=1/0){let i=is(e,aI,t.shouldTestNextSiblings);return aI.find(e=>aI.isTag(e)&&t(e),i,!0,a)}function iA(e,t,a){let i=(Array.isArray(e)?e:[e]).filter(aI.isTag);if(0===i.length)return i;let r=ii(t,a);return r===ak.trueFunc?i:i.filter(r)}let iT=/^\s*[~+]/;function iC(e){return function(t,...a){return function(i){var r;let s=e(t,this);return i&&(s=iU(s,i,this.options.xmlMode,null==(r=this._root)?void 0:r[0])),this._make(this.length>1&&s.length>1?a.reduce((e,t)=>t(e),s):s)}}}let iy=iC((e,t)=>{let a=[];for(let i=0;i<t.length;i++){let r=e(t[i]);a.push(r)}return[].concat(...a)}),ix=iC((e,t)=>{let a=[];for(let i=0;i<t.length;i++){let r=e(t[i]);null!==r&&a.push(r)}return a});function iS(e,...t){let a=null,i=iC((e,t)=>{let i=[];return t1(t,t=>{for(let r;(r=e(t))&&(null==a||!a(r,i.length));t=r)i.push(r)}),i})(e,...t);
5return function(e,t){a="string"==typeof e?t=>ih(t,e,this.options):e?iB(e):null;let r=i.call(this,t);return a=null,r}}function iN(e){return Array.from(new Set(e))}let iw=ix(({parent:e})=>e&&!eD(e)?e:null,iN),iI=iy(e=>{let t=[];for(;e.parent&&!eD(e.parent);)t.push(e.parent),e=e.parent;return t},tU,e=>e.reverse()),ik=iS(({parent:e})=>e&&!eD(e)?e:null,tU,e=>e.reverse()),iL=ix(e=>tv(e)),iO=iy(e=>{let t=[];for(;e.next;)eI(e=e.next)&&t.push(e);return t},iN),iP=iS(e=>tv(e),iN),iD=ix(e=>tA(e)),iR=iy(e=>{let t=[];for(;e.prev;)eI(e=e.prev)&&t.push(e);return t},iN),iM=iS(e=>tA(e),iN),ij=iy(e=>tf(e).filter(t=>eI(t)&&t!==e),tU),iF=iy(e=>t_(e).filter(eI),iN);function iB(e){return"function"==typeof e?(t,a)=>e.call(t,a,t):t0(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function iU(e,t,a,i){return"string"==typeof t?i_(t,e,{xmlMode:a,root:i}):e.filter(iB(t))}e.s(["add",0,function(e,t){let a=this._make(e,t),i=tU([...this.get(),...a.get()]);return this._make(i)},"addBack",0,function(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this},"children",0,iF,"closest",0,function(e){var t;let a=[];if(!e)return this._make(a);let i={xmlMode:this.options.xmlMode,root:null==(t=this._root)?void 0:t[0]},r="string"==typeof e?t=>ih(t,e,i):iB(e);return t1(this,e=>{for(;e&&eI(e);){if(r(e,0)){a.includes(e)||a.push(e);break}e=e.parent}}),this._make(a)},"contents",0,function(){let e=this.toArray().reduce((e,t)=>eR(t)?e.concat(t.children):e,[]);return this._make(e)},"each",0,function(e){let t=0,a=this.length;for(;t<a&&!1!==e.call(this[t],t,this[t]);)++t;return this},"end",0,function(){var e;return null!=(e=this.prevObject)?e:this._make([])},"eq",0,function(e){var t;return 0==(e*=1)&&this.length<=1?this:(e<0&&(e=this.length+e),this._make(null!=(t=this[e])?t:[]))},"filter",0,function(e){var t;return this._make(iU(this.toArray(),e,this.options.xmlMode,null==(t=this._root)?void 0:t[0]))},"filterArray",0,iU,"find",0,function(e){var t;if(!e)return this._make([]);let a=this.toArray();if("string"!=typeof e){let t=t0(e)?e.toArray():[e];return this._make(t.filter(e=>a.some(t=>tX(t,e))))}let i=iT.test(e)?a:this.children().toArray(),r={context:a,root:null==(t=this._root)?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(function(e,t,a={},i=1/0){if("function"==typeof e)return iv(t,e);let[r,s]=ic(aT(e)),n=s.map(e=>ib(t,e,a,!0,i));return(r.length&&n.push(iE(t,r,a,i)),0===n.length)?[]:1===n.length?n[0]:aI.uniqueSort(n.reduce((e,t)=>[...e,...t]))}(e,i,r))},"first",0,function(){return this.length>1?this._make(this[0]):this},"get",0,function(e){return null==e?this.toArray():this[e<0?this.length+e:e]},"has",0,function(e){return this.filter("string"==typeof e?`:has(${e})`:(t,a)=>this._make(a).find(e).length>0)},"index",0,function(e){let t,a;return null==e?(t=this.parent().children(),a=this[0]):"string"==typeof e?(t=this._make(e),a=this[0]):(t=this,a=t0(e)?e[0]:e),Array.prototype.indexOf.call(t,a)},"is",0,function(e){let t=this.toArray();return"string"==typeof e?im(t.filter(eI),e,this.options):!!e&&t.some(iB(e))},"last",0,function(){return this.length>0?this._make(this[this.length-1]):this},"map",0,function(e){let t=[];for(let a=0;a<this.length;a++){let i=this[a],r=e.call(i,a,i);null!=r&&(t=t.concat(r))}return this._make(t)},"next",0,iL,"nextAll",0,iO,"nextUntil",0,iP,"not",0,function(e){let t=this.toArray();if("string"==typeof e){let a=new Set(i_(e,t,this.options));t=t.filter(e=>!a.has(e))}else{let a=iB(e);t=t.filter((e,t)=>!a(e,t))}return this._make(t)},"parent",0,iw,"parents",0,iI,"parentsUntil",0,ik,"prev",0,iD,"prevAll",0,iR,"prevUntil",0,iM,"siblings",0,ij,"slice",0,function(e,t){return this._make(Array.prototype.slice.call(this,e,t))},"toArray",0,function(){return Array.prototype.slice.call(this)}],347158);var iG=e.i(347158),iH=e.i(467034);function iW(e,t){let a=Array.isArray(e)?e:[e];t?t.children=a:t=null;for(let e=0;e<a.length;e++){let i=a[e];i.parent&&i.parent.children!==a&&aC(i),t?(i.prev=a[e-1]||null,i.next=a[e+1]||null):i.prev=i.next=null,i.parent=t}return t}function iV(e){return function(...t){let a=this.length-1;return t1(this,(i,r)=>{if(!eR(i))return;let s="function"==typeof t[0]?t[0].call(i,r,this._render(i.children)):t;
5e(this._makeDomArray(s,r<a),i.children,i)})}}function iq(e,t,a,i,r){var s,n;let o=[t,a,...i],l=0===t?null:e[t-1],c=t+a>=e.length?null:e[t+a];for(let e=0;e<i.length;++e){let a=i[e],u=a.parent;if(u){let e=u.children.indexOf(a);e>-1&&(u.children.splice(e,1),r===u&&t>e&&o[0]--)}a.parent=r,a.prev&&(a.prev.next=null!=(s=a.next)?s:null),a.next&&(a.next.prev=null!=(n=a.prev)?n:null),a.prev=0===e?l:i[e-1],a.next=e===i.length-1?c:i[e+1]}return l&&(l.next=i[0]),c&&(c.prev=i[i.length-1]),e.splice(...o)}let i$=iV((e,t,a)=>{iq(t,t.length,0,e,a)}),iY=iV((e,t,a)=>{iq(t,0,0,e,a)});function iz(e){return function(t){let a=this.length-1,i=this.parents().last();for(let r=0;r<this.length;r++){let s=this[r],n="function"==typeof t?t.call(s,r,s):"string"!=typeof t||t3(t)?t:i.find(t).clone(),[o]=this._makeDomArray(n,r<a);if(!o||!eR(o))continue;let l=o,c=0;for(;c<l.children.length;){let e=l.children[c];eI(e)?(l=e,c=0):c++}e(s,l,[o])}return this}}let iK=iz((e,t,a)=>{let{parent:i}=e;if(!i)return;let r=i.children,s=r.indexOf(e);iW([e],t),iq(r,s,0,a,i)}),iQ=iz((e,t,a)=>{eR(e)&&(iW(e.children,t),iW(a,e))});e.s(["_makeDomArray",0,function(e,t){return null==e?[]:t0(e)?t?t2(e.get()):e.get():Array.isArray(e)?e.reduce((e,a)=>e.concat(this._makeDomArray(a,t)),[]):"string"==typeof e?this._parse(e,this.options,!1,null).children:t?t2([e]):[e]},"after",0,function(...e){let t=this.length-1;return t1(this,(a,i)=>{let{parent:r}=a;if(!eR(a)||!r)return;let s=r.children,n=s.indexOf(a);if(n<0)return;let o="function"==typeof e[0]?e[0].call(a,i,this._render(a.children)):e;iq(s,n+1,0,this._makeDomArray(o,i<t),r)})},"append",0,i$,"appendTo",0,function(e){return(t0(e)?e:this._make(e)).append(this),this},"before",0,function(...e){let t=this.length-1;return t1(this,(a,i)=>{let{parent:r}=a;if(!eR(a)||!r)return;let s=r.children,n=s.indexOf(a);if(n<0)return;let o="function"==typeof e[0]?e[0].call(a,i,this._render(a.children)):e;iq(s,n,0,this._makeDomArray(o,i<t),r)})},"clone",0,function(){return this._make(t2(this.get()))},"empty",0,function(){return t1(this,e=>{eR(e)&&(e.children.forEach(e=>{e.next=e.prev=e.parent=null}),e.children.length=0)})},"html",0,function(e){if(void 0===e){let e=this[0];return e&&eR(e)?this._render(e.children):null}return t1(this,t=>{eR(t)&&(t.children.forEach(e=>{e.next=e.prev=e.parent=null}),iW(t0(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children,t))})},"insertAfter",0,function(e){"string"==typeof e&&(e=this._make(e)),this.remove();let t=[];return this._makeDomArray(e).forEach(e=>{let a=this.clone().toArray(),{parent:i}=e;if(!i)return;let r=i.children,s=r.indexOf(e);s<0||(iq(r,s+1,0,a,i),t.push(...a))}),this._make(t)},"insertBefore",0,function(e){let t=this._make(e);this.remove();let a=[];return t1(t,e=>{let t=this.clone().toArray(),{parent:i}=e;if(!i)return;let r=i.children,s=r.indexOf(e);s<0||(iq(r,s,0,t,i),a.push(...t))}),this._make(a)},"prepend",0,iY,"prependTo",0,function(e){return(t0(e)?e:this._make(e)).prepend(this),this},"remove",0,function(e){return t1(e?this.filter(e):this,e=>{aC(e),e.prev=e.next=e.parent=null}),this},"replaceWith",0,function(e){return t1(this,(t,a)=>{let{parent:i}=t;if(!i)return;let r=i.children,s="function"==typeof e?e.call(t,a,t):e,n=this._makeDomArray(s);iW(n,null);let o=r.indexOf(t);iq(r,o,1,n,i),n.includes(t)||(t.parent=t.prev=t.next=null)})},"text",0,function(e){return void 0===e?tQ(this):"function"==typeof e?t1(this,(t,a)=>this._make(t).text(e.call(t,a,tQ([t])))):t1(this,t=>{eR(t)&&(t.children.forEach(e=>{e.next=e.prev=e.parent=null}),iW(new eT(`${e}`),t))})},"toString",0,function(){return this._render(this)},"unwrap",0,function(e){return this.parent(e).not("body").each((e,t)=>{this._make(t).replaceWith(t.children)}),this},"wrap",0,iK,"wrapAll",0,function(e){let t=this[0];if(t){let a,i=this._make("function"==typeof e?e.call(t,0,t):e).insertBefore(t);for(let e=0;e<i.length;e++)"tag"===i[e].type&&(a=i[e]);let r=0;for(;a&&r<a.children.length;){let e=a.children[r];"tag"===e.type?(a=e,r=0):r++}a&&this._make(a).append(this)}return this},"wrapInner",0,iQ],498612);var iX=e.i(498612);function iZ(e,t){if(!e||!eI(e))return;let a=function(e){let t;if(!(e=(e||"").trim()))return{};let a={};for(let i of e.split(";")){let e=i.indexOf(":");if(e<1||e===i.length-1){let e=i.trimEnd();e.length>0&&void 0!==t&&(a[t]+=`;${e}`)}else a[t=i.slice(0,e).trim()]=i.slice(e+1).trim()}return a}(e.attribs.style);if("string"==typeof t)return a[t];if(Array.isArray(t)){let e={};return t.forEach(t=>{null!=a[t]&&(e[t]=a[t])}),e}return a}e.s(["css",0,function(e,t){return(null==e||null==t)&&("object"!=typeof e||Array.isArray(e))?0!==this.length?iZ(this[0],e):void 0:t1(this,(a,i)=>{eI(a)&&function e(t,a,i,r){if("string"==typeof a){var s;let e=iZ(t),n="function"==typeof i?i.call(t,r,e[a]):i;""===n?delete e[a]:null!=n&&(e[a]=n),t.attribs.style=Object.keys(s=e).reduce((e,t)=>
5`${e}${e?" ":""}${t}: ${s[t]};`,"")}else"object"==typeof a&&Object.keys(a).forEach((i,r)=>{e(t,i,a[i],r)})}(a,e,t,i)})}],914144);var iJ=e.i(914144);let i0="input,select,textarea,keygen",i1=/%20/g,i2=/\r?\n/g;e.s(["serialize",0,function(){return this.serializeArray().map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("&").replace(i1,"+")},"serializeArray",0,function(){return this.map((e,t)=>{let a=this._make(t);return eI(t)&&"form"===t.name?a.find(i0).toArray():a.filter(i0).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var a;let i=this._make(t),r=i.attr("name"),s=null!=(a=i.val())?a:"";return Array.isArray(s)?s.map(e=>({name:r,value:e.replace(i2,"\r\n")})):{name:r,value:s.replace(i2,"\r\n")}}).toArray()}],312016);var i3=e.i(312016);class i4{constructor(e,t,a){if(this.length=0,this.options=a,this._root=t,e){for(let t=0;t<e.length;t++)this[t]=e[t];this.length=e.length}}}i4.prototype.cheerio="[cheerio object]",i4.prototype.splice=Array.prototype.splice,i4.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(i4.prototype,ad,iG,iX,iJ,i3);let i5=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);(_=Q||(Q={}))[_.EOF=-1]="EOF",_[_.NULL=0]="NULL",_[_.TABULATION=9]="TABULATION",_[_.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",_[_.LINE_FEED=10]="LINE_FEED",_[_.FORM_FEED=12]="FORM_FEED",_[_.SPACE=32]="SPACE",_[_.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",_[_.QUOTATION_MARK=34]="QUOTATION_MARK",_[_.AMPERSAND=38]="AMPERSAND",_[_.APOSTROPHE=39]="APOSTROPHE",_[_.HYPHEN_MINUS=45]="HYPHEN_MINUS",_[_.SOLIDUS=47]="SOLIDUS",_[_.DIGIT_0=48]="DIGIT_0",_[_.DIGIT_9=57]="DIGIT_9",_[_.SEMICOLON=59]="SEMICOLON",_[_.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",_[_.EQUALS_SIGN=61]="EQUALS_SIGN",_[_.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",_[_.QUESTION_MARK=63]="QUESTION_MARK",_[_.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",_[_.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",_[_.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",_[_.GRAVE_ACCENT=96]="GRAVE_ACCENT",_[_.LATIN_SMALL_A=97]="LATIN_SMALL_A",_[_.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";let i6="[CDATA[",i8="doctype",i7="script";function i9(e){return e>=55296&&e<=57343}function re(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function rt(e){return e>=64976&&e<=65007||i5.has(e)}(p=X||(X={})).controlCharacterInInputStream="control-character-in-input-stream",p.noncharacterInInputStream="noncharacter-in-input-stream",p.surrogateInInputStream="surrogate-in-input-stream",p.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",p.endTagWithAttributes="end-tag-with-attributes",p.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",p.unexpectedSolidusInTag="unexpected-solidus-in-tag",p.unexpectedNullCharacter="unexpected-null-character",p.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",p.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",p.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",p.missingEndTagName="missing-end-tag-name",p.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",p.unknownNamedCharacterReference="unknown-named-character-reference",p.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",p.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",p.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",p.eofBeforeTagName="eof-before-tag-name",p.eofInTag="eof-in-tag",p.missingAttributeValue="missing-attribute-value",p.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",p.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",p.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",p.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",p.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",p.missingQuoteBeforeDoctype
5SystemIdentifier="missing-quote-before-doctype-system-identifier",p.missingDoctypePublicIdentifier="missing-doctype-public-identifier",p.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",p.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",p.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",p.cdataInHtmlContent="cdata-in-html-content",p.incorrectlyOpenedComment="incorrectly-opened-comment",p.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",p.eofInDoctype="eof-in-doctype",p.nestedComment="nested-comment",p.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",p.eofInComment="eof-in-comment",p.incorrectlyClosedComment="incorrectly-closed-comment",p.eofInCdata="eof-in-cdata",p.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",p.nullCharacterReference="null-character-reference",p.surrogateCharacterReference="surrogate-character-reference",p.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",p.controlCharacterReference="control-character-reference",p.noncharacterCharacterReference="noncharacter-character-reference",p.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",p.missingDoctypeName="missing-doctype-name",p.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",p.duplicateAttribute="duplicate-attribute",p.nonConformingDoctype="non-conforming-doctype",p.missingDoctype="missing-doctype",p.misplacedDoctype="misplaced-doctype",p.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",p.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",p.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",p.openElementsLeftAfterEof="open-elements-left-after-eof",p.abandonedHeadElementChild="abandoned-head-element-child",p.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",p.nestedNoscriptInHead="nested-noscript-in-head",p.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class ra{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:a,col:i,offset:r}=this,s=i+t,n=r+t;return{code:e,startLine:a,endLine:a,startCol:s,endCol:s,startOffset:n,endOffset:n}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Q.EOF;return this._err(X.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Q.EOF;let a=this.html.charCodeAt(t);return a===Q.CARRIAGE_RETURN?Q.LINE_FEED:a}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Q.EOF;let e=this.html.charCodeAt(this.pos);return e===Q.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Q.LINE_FEED):e===Q.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,i9(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===Q.LINE_FEED||e===Q.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){re(e)?this._err(X.controlCharacterInInputStream):rt(e)&&this._err(X.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function ri(e,t){for(let a=e.attrs.length-1;a>=0;a--)if(e.attrs[a].name===t)return e.attrs[a].value;return null}(f=Z||(Z={}))[f.CHARACTER=0]="CHARACTER",f[f.NULL_CHARACTER=1]="NULL_CHARACTER",f[f.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",f[f.START_TAG=3]="START_TAG",f[f.END_TAG=4]="END_TAG",f[f.COMMENT=5]="COMMENT",f[f.DOCTYPE=6]="DOCTYPE",f[f.EOF=7]="EOF",f[f.HIBERNATION=8]="HIBERNATION";let rr=new Uint16Array(
vendor: 5,444 bytes, line 5
5'áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;
vendor: 4,564 bytes, line 5
5ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;
vendor: 6,122 bytes, line 5
5ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 10,520 bytes, line 5
5ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ'.split("").map(
5e=>e.charCodeAt(0))),rs=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function rn(e){return e>=ee.ZERO&&e<=ee.NINE}J=String.fromCodePoint,(g=ee||(ee={}))[g.NUM=35]="NUM",g[g.SEMI=59]="SEMI",g[g.EQUALS=61]="EQUALS",g[g.ZERO=48]="ZERO",g[g.NINE=57]="NINE",g[g.LOWER_A=97]="LOWER_A",g[g.LOWER_F=102]="LOWER_F",g[g.LOWER_X=120]="LOWER_X",g[g.LOWER_Z=122]="LOWER_Z",g[g.UPPER_A=65]="UPPER_A",g[g.UPPER_F=70]="UPPER_F",g[g.UPPER_Z=90]="UPPER_Z",(b=et||(et={}))[b.VALUE_LENGTH=49152]="VALUE_LENGTH",b[b.BRANCH_LENGTH=16256]="BRANCH_LENGTH",b[b.JUMP_TABLE=127]="JUMP_TABLE",(E=ea||(ea={}))[E.EntityStart=0]="EntityStart",E[E.NumericStart=1]="NumericStart",E[E.NumericDecimal=2]="NumericDecimal",E[E.NumericHex=3]="NumericHex",E[E.NamedEntity=4]="NamedEntity",(v=ei||(ei={}))[v.Legacy=0]="Legacy",v[v.Strict=1]="Strict",v[v.Attribute=2]="Attribute";class ro{constructor(e,t,a){this.decodeTree=e,this.emitCodePoint=t,this.errors=a,this.state=ea.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ei.Strict}startEntity(e){this.decodeMode=e,this.state=ea.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ea.EntityStart:if(e.charCodeAt(t)===ee.NUM)return this.state=ea.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=ea.NamedEntity,this.stateNamedEntity(e,t);case ea.NumericStart:return this.stateNumericStart(e,t);case ea.NumericDecimal:return this.stateNumericDecimal(e,t);case ea.NumericHex:return this.stateNumericHex(e,t);case ea.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===ee.LOWER_X?(this.state=ea.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ea.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,a,i){if(t!==a){let r=a-t;this.result=this.result*Math.pow(i,r)+Number.parseInt(e.substr(t,r),i),this.consumed+=r}}stateNumericHex(e,t){let a=t;for(;t<e.length;){var i;let r=e.charCodeAt(t);if(!rn(r)&&(!((i=r)>=ee.UPPER_A)||!(i<=ee.UPPER_F))&&(!(i>=ee.LOWER_A)||!(i<=ee.LOWER_F)))return this.addToNumericResult(e,a,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,a,t,16),-1}stateNumericDecimal(e,t){let a=t;for(;t<e.length;){let i=e.charCodeAt(t);if(!rn(i))return this.addToNumericResult(e,a,t,10),this.emitNumericEntity(i,2);t+=1}return this.addToNumericResult(e,a,t,10),-1}emitNumericEntity(e,t){var a,i,r;if(this.consumed<=t)return null==(a=this.errors)||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===ee.SEMI)this.consumed+=1;else if(this.decodeMode===ei.Strict)return 0;return this.emitCodePoint((i=this.result)>=55296&&i<=57343||i>1114111?65533:null!=(r=rs.get(i))?r:i,this.consumed),this.errors&&(e!==ee.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:a}=this,i=a[this.treeIndex],r=(i&et.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let s=e.charCodeAt(t);if(this.treeIndex=function(e,t,a,i){let r=(t&et.BRANCH_LENGTH)>>7,s=t&et.JUMP_TABLE;if(0===r)return 0!==s&&i===s?a:-1;if(s){let t=i-s;return t<0||t>=r?-1:e[a+t]-1}let n=a,o=n+r-1;for(;n<=o;){let t=n+o>>>1,a=e[t];if(a<i)n=t+1;else{if(!(a>i))return e[t+r];o=t-1}}return -1}(a,i,this.treeIndex+Math.max(1,r),s),this.treeIndex<0)return 0===this.result||this.decodeMode===ei.Attribute&&(0===r||function(e){var t;return e===ee.EQUALS||(t=e)>=ee.UPPER_A&&t<=ee.UPPER_Z||t>=ee.LOWER_A&&t<=ee.LOWER_Z||rn(t)}(s))?0:this.emitNotTerminatedNamedEntity();if(0!=(r=((i=a[this.treeIndex])&et.VALUE_LENGTH)>>14)){if(s===ee.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==ei.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:a}=this,i=(a[t]&et.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,i,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,a){let{decodeTree:i}=this;return this.emitCodePoint(1===t?i[e]&~et.VALUE_LENGTH:i[e+1],a),3===t&&this.emitCodePoint(i[e+2],a),a}end(){var e;switch(this.state){case ea.NamedEntity:return 0!==this.result&&(this.decodeMode!==ei.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ea.NumericDecimal:return this.emitNumericEntity(0,2);case ea.NumericHex:return this.emitNumericEntity(0,3);case ea.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ea.EntityStart:return 0}}}(A=er||(er={})).HTML="http://www.w3.org/1999/xhtml",A.MATHML="http://www.w3.org/1998/Math/MathML",A.SVG="http://www.w3.org/2000/svg",A.XLINK="http://www.w3.org/1999/xlink",A.XML="http://www.w3.org/XML/1998/namespace",A.X
5MLNS="http://www.w3.org/2000/xmlns/",(T=es||(es={})).TYPE="type",T.ACTION="action",T.ENCODING="encoding",T.PROMPT="prompt",T.NAME="name",T.COLOR="color",T.FACE="face",T.SIZE="size",(C=en||(en={})).NO_QUIRKS="no-quirks",C.QUIRKS="quirks",C.LIMITED_QUIRKS="limited-quirks",(y=eo||(eo={})).A="a",y.ADDRESS="address",y.ANNOTATION_XML="annotation-xml",y.APPLET="applet",y.AREA="area",y.ARTICLE="article",y.ASIDE="aside",y.B="b",y.BASE="base",y.BASEFONT="basefont",y.BGSOUND="bgsound",y.BIG="big",y.BLOCKQUOTE="blockquote",y.BODY="body",y.BR="br",y.BUTTON="button",y.CAPTION="caption",y.CENTER="center",y.CODE="code",y.COL="col",y.COLGROUP="colgroup",y.DD="dd",y.DESC="desc",y.DETAILS="details",y.DIALOG="dialog",y.DIR="dir",y.DIV="div",y.DL="dl",y.DT="dt",y.EM="em",y.EMBED="embed",y.FIELDSET="fieldset",y.FIGCAPTION="figcaption",y.FIGURE="figure",y.FONT="font",y.FOOTER="footer",y.FOREIGN_OBJECT="foreignObject",y.FORM="form",y.FRAME="frame",y.FRAMESET="frameset",y.H1="h1",y.H2="h2",y.H3="h3",y.H4="h4",y.H5="h5",y.H6="h6",y.HEAD="head",y.HEADER="header",y.HGROUP="hgroup",y.HR="hr",y.HTML="html",y.I="i",y.IMG="img",y.IMAGE="image",y.INPUT="input",y.IFRAME="iframe",y.KEYGEN="keygen",y.LABEL="label",y.LI="li",y.LINK="link",y.LISTING="listing",y.MAIN="main",y.MALIGNMARK="malignmark",y.MARQUEE="marquee",y.MATH="math",y.MENU="menu",y.META="meta",y.MGLYPH="mglyph",y.MI="mi",y.MO="mo",y.MN="mn",y.MS="ms",y.MTEXT="mtext",y.NAV="nav",y.NOBR="nobr",y.NOFRAMES="noframes",y.NOEMBED="noembed",y.NOSCRIPT="noscript",y.OBJECT="object",y.OL="ol",y.OPTGROUP="optgroup",y.OPTION="option",y.P="p",y.PARAM="param",y.PLAINTEXT="plaintext",y.PRE="pre",y.RB="rb",y.RP="rp",y.RT="rt",y.RTC="rtc",y.RUBY="ruby",y.S="s",y.SCRIPT="script",y.SEARCH="search",y.SECTION="section",y.SELECT="select",y.SOURCE="source",y.SMALL="small",y.SPAN="span",y.STRIKE="strike",y.STRONG="strong",y.STYLE="style",y.SUB="sub",y.SUMMARY="summary",y.SUP="sup",y.TABLE="table",y.TBODY="tbody",y.TEMPLATE="template",y.TEXTAREA="textarea",y.TFOOT="tfoot",y.TD="td",y.TH="th",y.THEAD="thead",y.TITLE="title",y.TR="tr",y.TRACK="track",y.TT="tt",y.U="u",y.UL="ul",y.SVG="svg",y.VAR="var",y.WBR="wbr",y.XMP="xmp",(x=el||(el={}))[x.UNKNOWN=0]="UNKNOWN",x[x.A=1]="A",x[x.ADDRESS=2]="ADDRESS",x[x.ANNOTATION_XML=3]="ANNOTATION_XML",x[x.APPLET=4]="APPLET",x[x.AREA=5]="AREA",x[x.ARTICLE=6]="ARTICLE",x[x.ASIDE=7]="ASIDE",x[x.B=8]="B",x[x.BASE=9]="BASE",x[x.BASEFONT=10]="BASEFONT",x[x.BGSOUND=11]="BGSOUND",x[x.BIG=12]="BIG",x[x.BLOCKQUOTE=13]="BLOCKQUOTE",x[x.BODY=14]="BODY",x[x.BR=15]="BR",x[x.BUTTON=16]="BUTTON",x[x.CAPTION=17]="CAPTION",x[x.CENTER=18]="CENTER",x[x.CODE=19]="CODE",x[x.COL=20]="COL",x[x.COLGROUP=21]="COLGROUP",x[x.DD=22]="DD",x[x.DESC=23]="DESC",x[x.DETAILS=24]="DETAILS",x[x.DIALOG=25]="DIALOG",x[x.DIR=26]="DIR",x[x.DIV=27]="DIV",x[x.DL=28]="DL",x[x.DT=29]="DT",x[x.EM=30]="EM",x[x.EMBED=31]="EMBED",x[x.FIELDSET=32]="FIELDSET",x[x.FIGCAPTION=33]="FIGCAPTION",x[x.FIGURE=34]="FIGURE",x[x.FONT=35]="FONT",x[x.FOOTER=36]="FOOTER",x[x.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",x[x.FORM=38]="FORM",x[x.FRAME=39]="FRAME",x[x.FRAMESET=40]="FRAMESET",x[x.H1=41]="H1",x[x.H2=42]="H2",x[x.H3=43]="H3",x[x.H4=44]="H4",x[x.H5=45]="H5",x[x.H6=46]="H6",x[x.HEAD=47]="HEAD",x[x.HEADER=48]="HEADER",x[x.HGROUP=49]="HGROUP",x[x.HR=50]="HR",x[x.HTML=51]="HTML",x[x.I=52]="I",x[x.IMG=53]="IMG",x[x.IMAGE=54]="IMAGE",x[x.INPUT=55]="INPUT",x[x.IFRAME=56]="IFRAME",x[x.KEYGEN=57]="KEYGEN",x[x.LABEL=58]="LABEL",x[x.LI=59]="LI",x[x.LINK=60]="LINK",x[x.LISTING=61]="LISTING",x[x.MAIN=62]="MAIN",x[x.MALIGNMARK=63]="MALIGNMARK",x[x.MARQUEE=64]="MARQUEE",x[x.MATH=65]="MATH",x[x.MENU=66]="MENU",x[x.META=67]="META",x[x.MGLYPH=68]="MGLYPH",x[x.MI=69]="MI",x[x.MO=70]="MO",x[x.MN=71]="MN",x[x.MS=72]="MS",x[x.MTEXT=73]="MTEXT",x[x.NAV=74]="NAV",x[x.NOBR=75]="NOBR",x[x.NOFRAMES=76]="NOFRAMES",x[x.NOEMBED=77]="NOEMBED",x[x.NOSCRIPT=78]="NOSCRIPT",x[x.OBJECT=79]="OBJECT",x[x.OL=80]="OL",x[x.OPTGROUP=81]="OPTGROUP",x[x.OPTION=82]="OPTION",x[x.P=83]="P",x[x.PARAM=84]="PARAM",x[x.PLAINTEXT=85]="PLAINTEXT",x[x.PRE=86]="PRE",x[x.RB=87]="RB",x[x.RP=88]="RP",x[x.RT=89]="RT",x[x.RTC=90]="RTC",x[x.RUBY
5=91]="RUBY",x[x.S=92]="S",x[x.SCRIPT=93]="SCRIPT",x[x.SEARCH=94]="SEARCH",x[x.SECTION=95]="SECTION",x[x.SELECT=96]="SELECT",x[x.SOURCE=97]="SOURCE",x[x.SMALL=98]="SMALL",x[x.SPAN=99]="SPAN",x[x.STRIKE=100]="STRIKE",x[x.STRONG=101]="STRONG",x[x.STYLE=102]="STYLE",x[x.SUB=103]="SUB",x[x.SUMMARY=104]="SUMMARY",x[x.SUP=105]="SUP",x[x.TABLE=106]="TABLE",x[x.TBODY=107]="TBODY",x[x.TEMPLATE=108]="TEMPLATE",x[x.TEXTAREA=109]="TEXTAREA",x[x.TFOOT=110]="TFOOT",x[x.TD=111]="TD",x[x.TH=112]="TH",x[x.THEAD=113]="THEAD",x[x.TITLE=114]="TITLE",x[x.TR=115]="TR",x[x.TRACK=116]="TRACK",x[x.TT=117]="TT",x[x.U=118]="U",x[x.UL=119]="UL",x[x.SVG=120]="SVG",x[x.VAR=121]="VAR",x[x.WBR=122]="WBR",x[x.XMP=123]="XMP";let rl=new Map([[eo.A,el.A],[eo.ADDRESS,el.ADDRESS],[eo.ANNOTATION_XML,el.ANNOTATION_XML],[eo.APPLET,el.APPLET],[eo.AREA,el.AREA],[eo.ARTICLE,el.ARTICLE],[eo.ASIDE,el.ASIDE],[eo.B,el.B],[eo.BASE,el.BASE],[eo.BASEFONT,el.BASEFONT],[eo.BGSOUND,el.BGSOUND],[eo.BIG,el.BIG],[eo.BLOCKQUOTE,el.BLOCKQUOTE],[eo.BODY,el.BODY],[eo.BR,el.BR],[eo.BUTTON,el.BUTTON],[eo.CAPTION,el.CAPTION],[eo.CENTER,el.CENTER],[eo.CODE,el.CODE],[eo.COL,el.COL],[eo.COLGROUP,el.COLGROUP],[eo.DD,el.DD],[eo.DESC,el.DESC],[eo.DETAILS,el.DETAILS],[eo.DIALOG,el.DIALOG],[eo.DIR,el.DIR],[eo.DIV,el.DIV],[eo.DL,el.DL],[eo.DT,el.DT],[eo.EM,el.EM],[eo.EMBED,el.EMBED],[eo.FIELDSET,el.FIELDSET],[eo.FIGCAPTION,el.FIGCAPTION],[eo.FIGURE,el.FIGURE],[eo.FONT,el.FONT],[eo.FOOTER,el.FOOTER],[eo.FOREIGN_OBJECT,el.FOREIGN_OBJECT],[eo.FORM,el.FORM],[eo.FRAME,el.FRAME],[eo.FRAMESET,el.FRAMESET],[eo.H1,el.H1],[eo.H2,el.H2],[eo.H3,el.H3],[eo.H4,el.H4],[eo.H5,el.H5],[eo.H6,el.H6],[eo.HEAD,el.HEAD],[eo.HEADER,el.HEADER],[eo.HGROUP,el.HGROUP],[eo.HR,el.HR],[eo.HTML,el.HTML],[eo.I,el.I],[eo.IMG,el.IMG],[eo.IMAGE,el.IMAGE],[eo.INPUT,el.INPUT],[eo.IFRAME,el.IFRAME],[eo.KEYGEN,el.KEYGEN],[eo.LABEL,el.LABEL],[eo.LI,el.LI],[eo.LINK,el.LINK],[eo.LISTING,el.LISTING],[eo.MAIN,el.MAIN],[eo.MALIGNMARK,el.MALIGNMARK],[eo.MARQUEE,el.MARQUEE],[eo.MATH,el.MATH],[eo.MENU,el.MENU],[eo.META,el.META],[eo.MGLYPH,el.MGLYPH],[eo.MI,el.MI],[eo.MO,el.MO],[eo.MN,el.MN],[eo.MS,el.MS],[eo.MTEXT,el.MTEXT],[eo.NAV,el.NAV],[eo.NOBR,el.NOBR],[eo.NOFRAMES,el.NOFRAMES],[eo.NOEMBED,el.NOEMBED],[eo.NOSCRIPT,el.NOSCRIPT],[eo.OBJECT,el.OBJECT],[eo.OL,el.OL],[eo.OPTGROUP,el.OPTGROUP],[eo.OPTION,el.OPTION],[eo.P,el.P],[eo.PARAM,el.PARAM],[eo.PLAINTEXT,el.PLAINTEXT],[eo.PRE,el.PRE],[eo.RB,el.RB],[eo.RP,el.RP],[eo.RT,el.RT],[eo.RTC,el.RTC],[eo.RUBY,el.RUBY],[eo.S,el.S],[eo.SCRIPT,el.SCRIPT],[eo.SEARCH,el.SEARCH],[eo.SECTION,el.SECTION],[eo.SELECT,el.SELECT],[eo.SOURCE,el.SOURCE],[eo.SMALL,el.SMALL],[eo.SPAN,el.SPAN],[eo.STRIKE,el.STRIKE],[eo.STRONG,el.STRONG],[eo.STYLE,el.STYLE],[eo.SUB,el.SUB],[eo.SUMMARY,el.SUMMARY],[eo.SUP,el.SUP],[eo.TABLE,el.TABLE],[eo.TBODY,el.TBODY],[eo.TEMPLATE,el.TEMPLATE],[eo.TEXTAREA,el.TEXTAREA],[eo.TFOOT,el.TFOOT],[eo.TD,el.TD],[eo.TH,el.TH],[eo.THEAD,el.THEAD],[eo.TITLE,el.TITLE],[eo.TR,el.TR],[eo.TRACK,el.TRACK],[eo.TT,el.TT],[eo.U,el.U],[eo.UL,el.UL],[eo.SVG,el.SVG],[eo.VAR,el.VAR],[eo.WBR,el.WBR],[eo.XMP,el.XMP]]);function rc(e){var t;return null!=(t=rl.get(e))?t:el.UNKNOWN}let ru=el,rd={[er.HTML]:new Set([ru.ADDRESS,ru.APPLET,ru.AREA,ru.ARTICLE,ru.ASIDE,ru.BASE,ru.BASEFONT,ru.BGSOUND,ru.BLOCKQUOTE,ru.BODY,ru.BR,ru.BUTTON,ru.CAPTION,ru.CENTER,ru.COL,ru.COLGROUP,ru.DD,ru.DETAILS,ru.DIR,ru.DIV,ru.DL,ru.DT,ru.EMBED,ru.FIELDSET,ru.FIGCAPTION,ru.FIGURE,ru.FOOTER,ru.FORM,ru.FRAME,ru.FRAMESET,ru.H1,ru.H2,ru.H3,ru.H4,ru.H5,ru.H6,ru.HEAD,ru.HEADER,ru.HGROUP,ru.HR,ru.HTML,ru.IFRAME,ru.IMG,ru.INPUT,ru.LI,ru.LINK,ru.LISTING,ru.MAIN,ru.MARQUEE,ru.MENU,ru.META,ru.NAV,ru.NOEMBED,ru.NOFRAMES,ru.NOSCRIPT,ru.OBJECT,ru.OL,ru.P,ru.PARAM,ru.PLAINTEXT,ru.PRE,ru.SCRIPT,ru.SECTION,ru.SELECT,ru.SOURCE,ru.STYLE,ru.SUMMARY,ru.TABLE,ru.TBODY,ru.TD,ru.TEMPLATE,ru.TEXTAREA,ru.TFOOT,ru.TH,ru.THEAD,ru.TITLE,ru.TR,ru.TRACK,ru.UL,ru.WBR,ru.XMP]),[er.MATHML]:new Set([ru.MI,ru.MO,ru.MN,ru.MS,ru.MTEXT,ru.ANNOTATION_XML]),[er.SVG]:new Set([ru.TITLE,ru.FOREIGN_OBJECT,ru.DESC]),[er.XLINK]:new Set,[er.XML]:new Set,[er.XMLNS]:new Set},rh=new Set([ru.H1,ru.H2,ru.H3,ru.H4,ru.H5,ru.H6]),rm=new Set([eo.STYLE,eo.SCRIPT,eo.XMP,eo.IF
5RAME,eo.NOEMBED,eo.NOFRAMES,eo.PLAINTEXT]);function r_(e,t){return rm.has(e)||t&&e===eo.NOSCRIPT}e.s(["ATTRS",0,es,"DOCUMENT_MODE",0,en,"NS",0,er,"NUMBERED_HEADERS",0,rh,"SPECIAL_ELEMENTS",0,rd,"TAG_ID",0,el,"TAG_NAMES",0,eo,"getTagID",0,rc,"hasUnescapedText",0,r_],615473),(S=ec||(ec={}))[S.DATA=0]="DATA",S[S.RCDATA=1]="RCDATA",S[S.RAWTEXT=2]="RAWTEXT",S[S.SCRIPT_DATA=3]="SCRIPT_DATA",S[S.PLAINTEXT=4]="PLAINTEXT",S[S.TAG_OPEN=5]="TAG_OPEN",S[S.END_TAG_OPEN=6]="END_TAG_OPEN",S[S.TAG_NAME=7]="TAG_NAME",S[S.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",S[S.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",S[S.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",S[S.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",S[S.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",S[S.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",S[S.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",S[S.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",S[S.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",S[S.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",S[S.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",S[S.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",S[S.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",S[S.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",S[S.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",S[S.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",S[S.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",S[S.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",S[S.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",S[S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",S[S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",S[S.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",S[S.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",S[S.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",S[S.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",S[S.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",S[S.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",S[S.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",S[S.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",S[S.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",S[S.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",S[S.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",S[S.BOGUS_COMMENT=40]="BOGUS_COMMENT",S[S.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",S[S.COMMENT_START=42]="COMMENT_START",S[S.COMMENT_START_DASH=43]="COMMENT_START_DASH",S[S.COMMENT=44]="COMMENT",S[S.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",S[S.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",S[S.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",S[S.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",S[S.COMMENT_END_DASH=49]="COMMENT_END_DASH",S[S.COMMENT_END=50]="COMMENT_END",S[S.COMMENT_END_BANG=51]="COMMENT_END_BANG",S[S.DOCTYPE=52]="DOCTYPE",S[S.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",S[S.DOCTYPE_NAME=54]="DOCTYPE_NAME",S[S.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",S[S.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",S[S.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",S[S.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",S[S.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",S[S.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",S[S.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",S[S.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",S[S.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",S[S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",S[S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",S[S.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",S[S.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",S[S.CDATA_SECTION=68]="CDATA_SECTION",S[S.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",S[S.
5CDATA_SECTION_END=70]="CDATA_SECTION_END",S[S.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",S[S.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let rp={DATA:ec.DATA,RCDATA:ec.RCDATA,RAWTEXT:ec.RAWTEXT,SCRIPT_DATA:ec.SCRIPT_DATA,PLAINTEXT:ec.PLAINTEXT,CDATA_SECTION:ec.CDATA_SECTION};function rf(e){return e>=Q.LATIN_CAPITAL_A&&e<=Q.LATIN_CAPITAL_Z}function rg(e){return e>=Q.LATIN_SMALL_A&&e<=Q.LATIN_SMALL_Z||rf(e)}function rb(e){return rg(e)||e>=Q.DIGIT_0&&e<=Q.DIGIT_9}function rE(e){return e===Q.SPACE||e===Q.LINE_FEED||e===Q.TABULATION||e===Q.FORM_FEED}function rv(e){return rE(e)||e===Q.SOLIDUS||e===Q.GREATER_THAN_SIGN}class rA{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ec.DATA,this.returnState=ec.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ra(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ro(rr,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(X.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(X.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=function(e){if(e===Q.NULL)return X.nullCharacterReference;if(e>1114111)return X.characterReferenceOutsideUnicodeRange;if(i9(e))return X.surrogateCharacterReference;if(rt(e))return X.noncharacterCharacterReference;if(re(e)||e===Q.CARRIAGE_RETURN)return X.controlCharacterReference;return null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var a,i;null==(i=(a=this.handler).onParseError)||i.call(a,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,a){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==a||a()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:Z.START_TAG,tagName:"",tagID:el.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Z.END_TAG,tagName:"",tagID:el.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Z.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Z.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let a=this.currentToken;null===ri(a,this.currentAttr.name)?(a.attrs.push(this.currentAttr),a.location&&this.currentLocation&&((null!=(e=(t=a.location).attrs)?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(X.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=rc(e.tagName),e.type===Z.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(X.endTagWithAttributes),e.selfClosing&&this._err(X.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Z.CHARACTER:this.handler.onCh
vendor: 6,257 bytes, line 5
5aracter(this.currentCharacterToken);break;case Z.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Z.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Z.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=rE(e)?Z.WHITESPACE_CHARACTER:e===Q.NULL?Z.NULL_CHARACTER:Z.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Z.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=ec.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ei.Attribute:ei.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ec.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ec.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ec.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case ec.DATA:this._stateData(e);break;case ec.RCDATA:this._stateRcdata(e);break;case ec.RAWTEXT:this._stateRawtext(e);break;case ec.SCRIPT_DATA:this._stateScriptData(e);break;case ec.PLAINTEXT:this._statePlaintext(e);break;case ec.TAG_OPEN:this._stateTagOpen(e);break;case ec.END_TAG_OPEN:this._stateEndTagOpen(e);break;case ec.TAG_NAME:this._stateTagName(e);break;case ec.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case ec.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case ec.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case ec.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case ec.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case ec.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case ec.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case ec.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case ec.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case ec.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case ec.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case ec.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case ec.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case ec.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case ec.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case ec.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case ec.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case ec.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case ec.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case ec.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case ec.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case ec.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case ec.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case ec.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case ec.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case ec.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case ec.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case ec.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case ec.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case ec.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case ec.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case ec.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case ec.BOGUS_COMMENT:this._stateBogusComment(e);break;case ec.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case ec.COMMENT_START:this._stateCommentStart(e);break;case ec.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case ec.COMMENT:this._stateComment(e);break;case ec.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case ec.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case ec.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case ec.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case ec.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case ec.COMMENT_END:this._stateCommentEnd(e);break;case ec.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case ec.DOCTYPE:this._stateDoctype(e);break;case ec.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case ec.DOCTYPE_NAME:this._stateDoctypeName(e);break;case ec.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case ec.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case ec.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case ec.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case ec.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case ec.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case ec.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case ec.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case ec.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctype
vendor: 4,176 bytes, line 5
5SystemIdentifier(e);break;case ec.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case ec.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case ec.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case ec.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case ec.CDATA_SECTION:this._stateCdataSection(e);break;case ec.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case ec.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case ec.CHARACTER_REFERENCE:this._stateCharacterReference();break;case ec.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case Q.LESS_THAN_SIGN:this.state=ec.TAG_OPEN;break;case Q.AMPERSAND:this._startCharacterReference();break;case Q.NULL:this._err(X.unexpectedNullCharacter),this._emitCodePoint(e);break;case Q.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Q.AMPERSAND:this._startCharacterReference();break;case Q.LESS_THAN_SIGN:this.state=ec.RCDATA_LESS_THAN_SIGN;break;case Q.NULL:this._err(X.unexpectedNullCharacter),this._emitChars("�");break;case Q.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Q.LESS_THAN_SIGN:this.state=ec.RAWTEXT_LESS_THAN_SIGN;break;case Q.NULL:this._err(X.unexpectedNullCharacter),this._emitChars("�");break;case Q.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Q.LESS_THAN_SIGN:this.state=ec.SCRIPT_DATA_LESS_THAN_SIGN;break;case Q.NULL:this._err(X.unexpectedNullCharacter),this._emitChars("�");break;case Q.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Q.NULL:this._err(X.unexpectedNullCharacter),this._emitChars("�");break;case Q.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(rg(e))this._createStartTagToken(),this.state=ec.TAG_NAME,this._stateTagName(e);else switch(e){case Q.EXCLAMATION_MARK:this.state=ec.MARKUP_DECLARATION_OPEN;break;case Q.SOLIDUS:this.state=ec.END_TAG_OPEN;break;case Q.QUESTION_MARK:this._err(X.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ec.BOGUS_COMMENT,this._stateBogusComment(e);break;case Q.EOF:this._err(X.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(X.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ec.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(rg(e))this._createEndTagToken(),this.state=ec.TAG_NAME,this._stateTagName(e);else switch(e){case Q.GREATER_THAN_SIGN:this._err(X.missingEndTagName),this.state=ec.DATA;break;case Q.EOF:this._err(X.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(X.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ec.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:this.state=ec.BEFORE_ATTRIBUTE_NAME;break;case Q.SOLIDUS:this.state=ec.SELF_CLOSING_START_TAG;break;case Q.GREATER_THAN_SIGN:this.state=ec.DATA,this.emitCurrentTagToken();break;case Q.NULL:this._err(X.unexpectedNullCharacter),t.tagName+="�";break;case Q.EOF:this._err(X.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(rf(e)?e+32:e)}}_stateRcdataLessThanSign(e){e===Q.SOLIDUS?this.state=ec.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ec.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){rg(e)?(this.state=ec.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=ec.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ec.BEFORE_ATTRIBUTE_NAME,
vendor: 7,262 bytes, line 5
5!1;case Q.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ec.SELF_CLOSING_START_TAG,!1;case Q.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ec.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ec.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Q.SOLIDUS?this.state=ec.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ec.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){rg(e)?(this.state=ec.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=ec.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ec.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Q.SOLIDUS:this.state=ec.SCRIPT_DATA_END_TAG_OPEN;break;case Q.EXCLAMATION_MARK:this.state=ec.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=ec.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){rg(e)?(this.state=ec.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=ec.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ec.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Q.HYPHEN_MINUS?(this.state=ec.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ec.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Q.HYPHEN_MINUS?(this.state=ec.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ec.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Q.HYPHEN_MINUS:this.state=ec.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case Q.LESS_THAN_SIGN:this.state=ec.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Q.NULL:this._err(X.unexpectedNullCharacter),this._emitChars("�");break;case Q.EOF:this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Q.HYPHEN_MINUS:this.state=ec.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case Q.LESS_THAN_SIGN:this.state=ec.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Q.NULL:this._err(X.unexpectedNullCharacter),this.state=ec.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case Q.EOF:this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ec.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Q.HYPHEN_MINUS:this._emitChars("-");break;case Q.LESS_THAN_SIGN:this.state=ec.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Q.GREATER_THAN_SIGN:this.state=ec.SCRIPT_DATA,this._emitChars(">");break;case Q.NULL:this._err(X.unexpectedNullCharacter),this.state=ec.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case Q.EOF:this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ec.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Q.SOLIDUS?this.state=ec.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:rg(e)?(this._emitChars("<"),this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=ec.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){rg(e)?(this.state=ec.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=ec.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ec.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(i7,!1)&&rv(this.preprocessor.peek(i7.length))){this._emitCodePoint(e);for(let e=0;e<i7.length;e++)this._emitCodePoint(this._consume());this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ec.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Q.HYPHEN_MINUS:this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case Q.LESS_THAN_SIGN:this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Q.NULL:this._err(X.unexpectedNullCharacter),this._emitChars("�");break;case Q.EOF:this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Q.HYPHEN_MINUS:this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case Q.LESS_THAN_SIGN:this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Q.NULL:this._err(X.unexpectedNullCharacter),this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case Q.EOF:this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Q.HYPHEN_MINUS:this._emitChars("-");break;case Q.LESS_THAN_SIGN:this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Q.GREATER_THAN_SIGN:this.state=ec.SCRIPT_DATA,this._emitChars(">");break;case Q.NULL:this._err(X.unexpectedNullCharacter),this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case Q.EOF:this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Q.SOLIDUS?(this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(i7,!1)&&rv(this.preprocessor.peek(i7.length))){this._emitCodePoint(e);for(let e=0;e<i7.length;e++)this._emitCodePoint(this._consume());this.state=ec.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ec.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:break;case Q.SOLIDUS:case Q.GREATER_THAN_SIGN:case Q.EOF:this.state=ec.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Q.EQUALS_SIGN:this._err(X.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ec.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=ec.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:case Q.SOLIDUS:case Q.GREATER_THAN_SIGN:case Q.EOF:this._leaveAttrName(),this.state=ec.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Q.EQUALS_SIGN:this._leaveAttrName(),this.state=ec.BEFORE_ATTRIBUTE_VALUE;break;case Q.QUOTATION_MARK:case Q.APOSTROPHE:case Q.LESS_THAN_SIGN:this._err(X.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Q.NULL:this._err(X.unexpectedNullCharacter),this.currentAttr.name+="
5�";break;default:this.currentAttr.name+=String.fromCodePoint(rf(e)?e+32:e)}}_stateAfterAttributeName(e){switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:break;case Q.SOLIDUS:this.state=ec.SELF_CLOSING_START_TAG;break;case Q.EQUALS_SIGN:this.state=ec.BEFORE_ATTRIBUTE_VALUE;break;case Q.GREATER_THAN_SIGN:this.state=ec.DATA,this.emitCurrentTagToken();break;case Q.EOF:this._err(X.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=ec.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:break;case Q.QUOTATION_MARK:this.state=ec.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Q.APOSTROPHE:this.state=ec.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Q.GREATER_THAN_SIGN:this._err(X.missingAttributeValue),this.state=ec.DATA,this.emitCurrentTagToken();break;default:this.state=ec.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Q.QUOTATION_MARK:this.state=ec.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Q.AMPERSAND:this._startCharacterReference();break;case Q.NULL:this._err(X.unexpectedNullCharacter),this.currentAttr.value+="�";break;case Q.EOF:this._err(X.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Q.APOSTROPHE:this.state=ec.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Q.AMPERSAND:this._startCharacterReference();break;case Q.NULL:this._err(X.unexpectedNullCharacter),this.currentAttr.value+="�";break;case Q.EOF:this._err(X.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:this._leaveAttrValue(),this.state=ec.BEFORE_ATTRIBUTE_NAME;break;case Q.AMPERSAND:this._startCharacterReference();break;case Q.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=ec.DATA,this.emitCurrentTagToken();break;case Q.NULL:this._err(X.unexpectedNullCharacter),this.currentAttr.value+="�";break;case Q.QUOTATION_MARK:case Q.APOSTROPHE:case Q.LESS_THAN_SIGN:case Q.EQUALS_SIGN:case Q.GRAVE_ACCENT:this._err(X.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Q.EOF:this._err(X.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:this._leaveAttrValue(),this.state=ec.BEFORE_ATTRIBUTE_NAME;break;case Q.SOLIDUS:this._leaveAttrValue(),this.state=ec.SELF_CLOSING_START_TAG;break;case Q.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=ec.DATA,this.emitCurrentTagToken();break;case Q.EOF:this._err(X.eofInTag),this._emitEOFToken();break;default:this._err(X.missingWhitespaceBetweenAttributes),this.state=ec.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Q.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=ec.DATA,this.emitCurrentTagToken();break;case Q.EOF:this._err(X.eofInTag),this._emitEOFToken();break;default:this._err(X.unexpectedSolidusInTag),this.state=ec.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case Q.GREATER_THAN_SIGN:this.state=ec.DATA,this.emitCurrentComment(t);break;case Q.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Q.NULL:this._err(X.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=ec.COMMENT_START):this._consumeSequenceIfMatch(i8,!1)?(this.currentLocation=this.getCurrentLocation(i8.length+1),this.state=ec.DOCTYPE):this._consumeSequenceIfMatch(i6,!0)?this.inForeignNode?this.state=ec.CDATA_SECTION:(this._err(X.cdataInHtmlContent),this._createCommentToken(i6.length+1),this.currentToken.data="[CDATA[",this.state=ec.BOGUS_COMMENT):this._ensureHibernation()||(this._err(X.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ec.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Q.HYPHEN_MINUS:this.state=ec.COMMENT_START_DASH;break;case Q.GREATER_THAN_SIGN:{this._err(X.abruptClosingOfEmptyComment),this.state=ec.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=ec.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case Q.HYPHEN_MINUS:this.state=ec.COMMENT_END;break;case Q.GREATER_THAN_SIGN:this._err(X.abruptClosingOfEmptyComment),this.state=ec.DATA,this.emitCurrentComment(t);break;case Q.EOF:this._err(X.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=ec.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case Q.HYPHEN_MINUS:this.state=ec.COMMENT_END_DASH;break;case Q.LESS_THAN_SIGN:t.data+="<",this.state=ec.COMMENT_LESS_THAN_SIGN;break;case Q.NULL:this._err(X.unexpectedNullCharacter),t.data+="�";break;case Q.EOF:this._err(X.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case Q.EXCLAMATION_MARK:t.data+="!",this.state=ec.COMMENT_LESS_THAN_SIGN_BANG;break;case Q.LESS_THAN_SIGN:t.data+="<";break;default:this.state=ec.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Q.HYPHEN_MINUS?this.state=ec.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ec.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Q.HYPHEN_MINUS?this.state=ec.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ec.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Q.GREATER_THAN_SIGN&&e!==Q.EOF&&this._err(X.nestedComment),this.state=ec.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case Q.HYPHEN_MINUS:this.state=ec.COMMENT_END;break;case Q.EOF:this._err(X.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=ec.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case Q.GREATER_THAN_SIGN:this.state=ec.DATA,this.emitCurrentComment(t);break;case Q.EXCLAMATION_MARK:this.state=ec.COMMENT_END_BANG;break;case Q.HYPHEN_MINUS:t.data+="-";break;case Q.EOF:this._err(X.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=ec.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case Q.HYPHEN_MINUS:t.data+="--!",this.state=ec.COMMENT_END_DASH;break;case Q.GREATER_THAN_SIGN:this._err(X.incorrectlyClosedComment),this.state=ec.DATA,this.emitCurrentComment(t);break;case Q.EOF:this._err(X.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=ec.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:this.state=ec.BEFORE_DOCTYPE_NAME;break;case Q.GREATER_THAN_SIGN:this.state=ec.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Q.EOF:{this._err(X.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(X.missingWhitespaceBeforeDoctypeName),this.state=ec.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(rf(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=ec.DOCTYPE_NAME;else switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:break;case Q.NULL:this._err(X.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=ec.DOCTYPE_NAME;break;case Q.GREATER_THAN_SIGN:{this._err(X.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=ec.DATA;break}case Q.EOF:{this._err(X.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=ec.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:this.state=ec.AFTER_DOCTYPE_NAME;break;case Q.GREATER_THAN_SIGN:this.state=ec.DATA,this.emitCurrentDoctype(t);break;
vendor: 4,208 bytes, line 5
5case Q.NULL:this._err(X.unexpectedNullCharacter),t.name+="�";break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(rf(e)?e+32:e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:break;case Q.GREATER_THAN_SIGN:this.state=ec.DATA,this.emitCurrentDoctype(t);break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=ec.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=ec.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(X.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=ec.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:this.state=ec.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Q.QUOTATION_MARK:this._err(X.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=ec.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Q.APOSTROPHE:this._err(X.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=ec.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Q.GREATER_THAN_SIGN:this._err(X.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ec.DATA,this.emitCurrentDoctype(t);break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(X.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ec.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:break;case Q.QUOTATION_MARK:t.publicId="",this.state=ec.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Q.APOSTROPHE:t.publicId="",this.state=ec.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Q.GREATER_THAN_SIGN:this._err(X.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ec.DATA,this.emitCurrentDoctype(t);break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(X.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ec.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case Q.QUOTATION_MARK:this.state=ec.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Q.NULL:this._err(X.unexpectedNullCharacter),t.publicId+="�";break;case Q.GREATER_THAN_SIGN:this._err(X.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ec.DATA;break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case Q.APOSTROPHE:this.state=ec.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Q.NULL:this._err(X.unexpectedNullCharacter),t.publicId+="�";break;case Q.GREATER_THAN_SIGN:this._err(X.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ec.DATA;break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:this.state=ec.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Q.GREATER_THAN_SIGN:this.state=ec.DATA,this.emitCurrentDoctype(t);break;case Q.QUOTATION_MARK:this._err(X.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=ec.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Q.APOSTROPHE:this._err(X.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=ec.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;
vendor: 5,021 bytes, line 5
5default:this._err(X.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ec.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:break;case Q.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ec.DATA;break;case Q.QUOTATION_MARK:t.systemId="",this.state=ec.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Q.APOSTROPHE:t.systemId="",this.state=ec.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(X.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ec.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:this.state=ec.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Q.QUOTATION_MARK:this._err(X.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=ec.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Q.APOSTROPHE:this._err(X.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=ec.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Q.GREATER_THAN_SIGN:this._err(X.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ec.DATA,this.emitCurrentDoctype(t);break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(X.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ec.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:break;case Q.QUOTATION_MARK:t.systemId="",this.state=ec.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Q.APOSTROPHE:t.systemId="",this.state=ec.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Q.GREATER_THAN_SIGN:this._err(X.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ec.DATA,this.emitCurrentDoctype(t);break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(X.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ec.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case Q.QUOTATION_MARK:this.state=ec.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Q.NULL:this._err(X.unexpectedNullCharacter),t.systemId+="�";break;case Q.GREATER_THAN_SIGN:this._err(X.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ec.DATA;break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case Q.APOSTROPHE:this.state=ec.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Q.NULL:this._err(X.unexpectedNullCharacter),t.systemId+="�";break;case Q.GREATER_THAN_SIGN:this._err(X.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ec.DATA;break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case Q.SPACE:case Q.LINE_FEED:case Q.TABULATION:case Q.FORM_FEED:break;case Q.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ec.DATA;break;case Q.EOF:this._err(X.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(X.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ec.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case Q.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ec.DATA;break;case Q.NULL:this._err(X.unexpectedNullCharacter);break;case Q.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Q.RIGHT_SQUARE_BRACKET:this.state=ec.CDATA_SECTION_BRACKET;break;case Q.EOF:this._err(X.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Q.RIGHT_SQUARE_BRACKET?this.state=ec.CDATA_SECTION_END:(this._emitChars("]"),this.state=ec.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Q.GREATER_THAN_SIGN:this.state=ec.DATA;break;case Q.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=ec.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}
vendor: 4,171 bytes, line 5
50===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(Q.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&rb(this.preprocessor.peek(1))?ec.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){rb(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Q.SEMICOLON&&this._err(X.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}let rT=new Set([el.DD,el.DT,el.LI,el.OPTGROUP,el.OPTION,el.P,el.RB,el.RP,el.RT,el.RTC]),rC=new Set([...rT,el.CAPTION,el.COLGROUP,el.TBODY,el.TD,el.TFOOT,el.TH,el.THEAD,el.TR]),ry=new Set([el.APPLET,el.CAPTION,el.HTML,el.MARQUEE,el.OBJECT,el.TABLE,el.TD,el.TEMPLATE,el.TH]),rx=new Set([...ry,el.OL,el.UL]),rS=new Set([...ry,el.BUTTON]),rN=new Set([el.ANNOTATION_XML,el.MI,el.MN,el.MO,el.MS,el.MTEXT]),rw=new Set([el.DESC,el.FOREIGN_OBJECT,el.TITLE]),rI=new Set([el.TR,el.TEMPLATE,el.HTML]),rk=new Set([el.TBODY,el.TFOOT,el.THEAD,el.TEMPLATE,el.HTML]),rL=new Set([el.TABLE,el.TEMPLATE,el.HTML]),rO=new Set([el.TD,el.TH]);class rP{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,a){this.treeAdapter=t,this.handler=a,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=el.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===el.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===er.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let a=this._indexOf(e);this.items[a]=t,a===this.stackTop&&(this.current=t)}insertAfter(e,t,a){let i=this._indexOf(e)+1;this.items.splice(i,0,t),this.tagIDs.splice(i,0,a),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==er.HTML)this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let a=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(a,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(rh,er.HTML)}popUntilTableCellPopped(){this.popUntilPopped(rO,er.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let a=this.stackTop;a>=0;a--)if(e.has(this.tagIDs[a])&&this.treeAdapter.getNamespaceURI(this.items[a])===t)return a;return -1}clearBackTo(e,t){let a=this._indexOfTagNames(e,t);this.shortenToLength(a+1)}clearBackToTableContext(){this.clearBackTo(rL,er.HTML)}clearBackToTableBodyContext(){this.clearBackTo(rk,er.HTML)}clearBackToTableRowContext(){this.clearBackTo(rI,er.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===el.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===el.HTML}hasInDynamicScope(e,t){for(let a=this.stackTop;a>=0;a--){let i=this.tagIDs[a];switch(this.treeAdapter.getNamespaceURI(this.items[a])){case er.HTML:if(i===e)return!0;
5if(t.has(i))return!1;break;case er.SVG:if(rw.has(i))return!1;break;case er.MATHML:if(rN.has(i))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,ry)}hasInListItemScope(e){return this.hasInDynamicScope(e,rx)}hasInButtonScope(e){return this.hasInDynamicScope(e,rS)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case er.HTML:if(rh.has(t))return!0;if(ry.has(t))return!1;break;case er.SVG:if(rw.has(t))return!1;break;case er.MATHML:if(rN.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===er.HTML)switch(this.tagIDs[t]){case e:return!0;case el.TABLE:case el.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===er.HTML)switch(this.tagIDs[e]){case el.TBODY:case el.THEAD:case el.TFOOT:return!0;case el.TABLE:case el.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===er.HTML)switch(this.tagIDs[t]){case e:return!0;case el.OPTION:case el.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&rT.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&rC.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&rC.has(this.currentTagId);)this.pop()}}(N=eu||(eu={}))[N.Marker=0]="Marker",N[N.Element=1]="Element";let rD={type:eu.Marker};class rR{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let a=[],i=t.length,r=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===eu.Marker)break;let{element:n}=t;if(this.treeAdapter.getTagName(n)===r&&this.treeAdapter.getNamespaceURI(n)===s){let t=this.treeAdapter.getAttrList(n);t.length===i&&a.push({idx:e,attrs:t})}}return a}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),a=this._getNoahArkConditionCandidates(e,t);if(a.length<3)return;let i=new Map(t.map(e=>[e.name,e.value])),r=0;for(let e=0;e<a.length;e++){let t=a[e];t.attrs.every(e=>i.get(e.name)===e.value)&&(r+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(rD)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:eu.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let a=this.entries.indexOf(this.bookmark);this.entries.splice(a,0,{type:eu.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(rD);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===eu.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===eu.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===eu.Element&&t.element===e)}}let rM={createDocument:()=>({nodeName:"#document",mode:en.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,a)=>({nodeName:e,tagName:e,attrs:a,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,a){let i=e.childNodes.indexOf(a);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,a,i){let r=e.childNodes.find(e=>"#documentType"===e.nodeName);r?(r.name=t,r.publicId=a,r.systemId=i):rM.appendChild(e,{nodeName:"#documentType",name:t,publicId:a,systemId:i,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let a=e.childNodes[e.childNodes.length-1];if(rM.isTextNode(a)){a.value+=t;return}}rM.appendChild(e,rM.createTextNode(t))},insertTextBefore(e,t,a){let i=e.childNodes[e.childNodes.indexOf(a)-1];i&&rM.isTextNode(i)?i.value+=t:rM.insertBefore(e,rM.createTextNode(t),a)},adoptAttributes(e,t){let a=new Set(e.attrs.map(e=>e.name));for(let i=0;i<t.length;i++)a.has(t[i].name)||e.attrs.push(t[i])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},rj="html",rF=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],rB=[...rF,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],rU=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),rG=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],rH=[...rG,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function rW(e,t){return t.some(t=>e.startsWith(t))}let rV=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),rq=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:er.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:er.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:er.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:er.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:er.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:er.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:er.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:er.XML}],["xml:space",{prefix:"xml",name:"space",namespace:er.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:er.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:er.XMLNS}]]),r$=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),rY=new Set([el.B,el.BIG,el.BLOCKQUOTE,el.BODY,el.BR,el.CENTER,el.CODE,el.DD,el.DIV,el.DL,el.DT,el.
5EM,el.EMBED,el.H1,el.H2,el.H3,el.H4,el.H5,el.H6,el.HEAD,el.HR,el.I,el.IMG,el.LI,el.LISTING,el.MENU,el.META,el.NOBR,el.OL,el.P,el.PRE,el.RUBY,el.S,el.SMALL,el.SPAN,el.STRONG,el.STRIKE,el.SUB,el.SUP,el.TABLE,el.TT,el.U,el.UL,el.VAR]);function rz(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function rK(e){for(let t=0;t<e.attrs.length;t++){let a=rV.get(e.attrs[t].name);null!=a&&(e.attrs[t].name=a)}}function rQ(e){for(let t=0;t<e.attrs.length;t++){let a=rq.get(e.attrs[t].name);a&&(e.attrs[t].prefix=a.prefix,e.attrs[t].name=a.name,e.attrs[t].namespace=a.namespace)}}(w=ed||(ed={}))[w.INITIAL=0]="INITIAL",w[w.BEFORE_HTML=1]="BEFORE_HTML",w[w.BEFORE_HEAD=2]="BEFORE_HEAD",w[w.IN_HEAD=3]="IN_HEAD",w[w.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",w[w.AFTER_HEAD=5]="AFTER_HEAD",w[w.IN_BODY=6]="IN_BODY",w[w.TEXT=7]="TEXT",w[w.IN_TABLE=8]="IN_TABLE",w[w.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",w[w.IN_CAPTION=10]="IN_CAPTION",w[w.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",w[w.IN_TABLE_BODY=12]="IN_TABLE_BODY",w[w.IN_ROW=13]="IN_ROW",w[w.IN_CELL=14]="IN_CELL",w[w.IN_SELECT=15]="IN_SELECT",w[w.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",w[w.IN_TEMPLATE=17]="IN_TEMPLATE",w[w.AFTER_BODY=18]="AFTER_BODY",w[w.IN_FRAMESET=19]="IN_FRAMESET",w[w.AFTER_FRAMESET=20]="AFTER_FRAMESET",w[w.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",w[w.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";let rX={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},rZ=new Set([el.TABLE,el.TBODY,el.TFOOT,el.THEAD,el.TR]),rJ={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:rM,onParseError:null};class r0{constructor(e,t,a=null,i=null){this.fragmentContext=a,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=ed.INITIAL,this.originalInsertionMode=ed.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...rJ,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new rA(this.options,this),this.activeFormattingElements=new rR(this.treeAdapter),this.fragmentContextID=a?rc(this.treeAdapter.getTagName(a)):el.UNKNOWN,this._setContextModes(null!=a?a:this.document,this.fragmentContextID),this.openElements=new rP(this.document,this.treeAdapter,this)}static parse(e,t){let a=new this(t);return a.tokenizer.write(e,!0),a.document}static getFragmentParser(e,t){let a={...rJ,...t};null!=e||(e=a.treeAdapter.createElement(eo.TEMPLATE,er.HTML,[]));let i=a.treeAdapter.createElement("documentmock",er.HTML,[]),r=new this(a,i,e);return r.fragmentContextID===el.TEMPLATE&&r.tmplInsertionModeStack.unshift(ed.IN_TEMPLATE),r._initTokenizerForFragmentParsing(),r._insertFakeRootElement(),r._resetInsertionMode(),r._findFormInFragmentContext(),r}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,a){var i;if(!this.onParseError)return;let r=null!=(i=e.location)?i:rX,s={code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:a?r.startLine:r.endLine,endCol:a?r.startCol:r.endCol,endOffset:a?r.startOffset:r.endOffset};this.onParseError(s)}onItemPush(e,t,a){var i,r;null==(r=(i=this.treeAdapter).onItemPush)||r.call(i,e),a&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var a,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null==(i=(a=this.treeAdapter).onItemPop)||i.call(a,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let a=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===er.HTML;this.currentNotInHTML=!a,this.tokenizer.inForeignNode=!a&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,er.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=ed.TEXT}switchToPlaintextParsing(){this.insertionMode=ed.TEXT,this.originalInsertionMode=ed.IN_BODY,this.tokenizer.state=rp.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;
5for(;e;){if(this.treeAdapter.getTagName(e)===eo.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===er.HTML)switch(this.fragmentContextID){case el.TITLE:case el.TEXTAREA:this.tokenizer.state=rp.RCDATA;break;case el.STYLE:case el.XMP:case el.IFRAME:case el.NOEMBED:case el.NOFRAMES:case el.NOSCRIPT:this.tokenizer.state=rp.RAWTEXT;break;case el.SCRIPT:this.tokenizer.state=rp.SCRIPT_DATA;break;case el.PLAINTEXT:this.tokenizer.state=rp.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",a=e.publicId||"",i=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,a,i),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let a=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,a)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){let a=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(a,e.location)}_insertElement(e,t){let a=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(a,e.location),this.openElements.push(a,e.tagID)}_insertFakeElement(e,t){let a=this.treeAdapter.createElement(e,er.HTML,[]);this._attachElementToTree(a,null),this.openElements.push(a,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,er.HTML,e.attrs),a=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,a),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(eo.HTML,er.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,el.HTML)}_appendCommentNode(e,t){let a=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,a),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_insertCharacters(e){let t,a;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:a}=this._findFosterParentingLocation(),a?this.treeAdapter.insertTextBefore(t,e.chars,a):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let i=this.treeAdapter.getChildNodes(t),r=a?i.lastIndexOf(a):i.length,s=i[r-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){let{endLine:t,endCol:a,endOffset:i}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:a,endOffset:i})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let a=this.treeAdapter.getFirstChild(e);a;a=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(a),this.treeAdapter.appendChild(t,a)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let a=t.location,i=this.treeAdapter.getTagName(e),r=t.type===Z.END_TAG&&i===t.tagName?{endTag:{...a},endLine:a.endLine,endCol:a.endCol,endOffset:a.endOffset}:{endLine:a.startLine,endCol:a.startCol,endOffset:a.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,r)}}shouldProcessStartTagTokenInForeignContent(e){let t,a;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,a=this.fragmentContextID):{current:t,currentTagId:a}=this.openElements,(e.tagID!==el.SVG||this.treeAdapter.getTagName(t)!==eo.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==er.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===el.MGLYPH||e.tagID===el.MALIGNMARK)&&void 0!==a&&!this._isIntegrationPoint(a,t,er.HTML)))}_processToken(e){switch(e.type){case Z.CHARACTER:this.onCharacter(e);break;case Z.NULL_CHARACTER:this.onNullCharacter(e);break;case Z.COMMENT:this.onComment(e);break;case Z.DOCTYPE:this.onDoctype(e);break;case Z.START_TAG:this._processStartTag(e);break;case Z.END_TAG:this.onEndTag(e);break;case Z.EOF:this.onEof(e);break;case Z.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,a){let i=this.treeAdapter.getNamespaceURI(t),r=this.treeAdapter.getAttrList(t);return(!a||a===er.HTML)&&function(e,t,a){if(t===er.MATHML&&e===el.ANNOTATION_XML){for(let e=0;e<a.length;e++)if(a[e].name===es.ENCODING){let t=a[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}}return t===er.SVG&&(e===el.FOREIGN_OBJECT||e===el.DESC||e===el.TITLE)}(e,i,r)||(!a||a===er.MATHML)&&i===er.MATHML&&(e===el.MI||e===el.MO||e===el.MN||e===el.MS||e===el.MTEXT)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===eu.Marker||this.openElements.contains(e.element)),a=-1===t?e-1:t-1;for(let e=a;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ed.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(el.P),this.openElements.popUntilTagNamePopped(el.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case el.TR:this.insertionMode=ed.IN_ROW;return;case el.TBODY:case el.THEAD:case el.TFOOT:this.insertionMode=ed.IN_TABLE_BODY;return;case el.CAPTION:this.insertionMode=ed.IN_CAPTION;return;case el.COLGROUP:this.insertionMode=ed.IN_COLUMN_GROUP;return;case el.TABLE:this.insertionMode=ed.IN_TABLE;return;case el.BODY:this.insertionMode=ed.IN_BODY;return;case el.FRAMESET:this.insertionMode=ed.IN_FRAMESET;return;case el.SELECT:return void this._resetInsertionModeForSelect(e);case el.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case el.HTML:this.insertionMode=this.headElement?ed.AFTER_HEAD:ed.BEFORE_HEAD;return;case el.TD:case el.TH:if(e>0){this.insertionMode=ed.IN_CELL;return}break;case el.HEAD:if(e>0){this.insertionMode=ed.IN_HEAD;return}}this.insertionMode=ed.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===el.TEMPLATE)break;if(e===el.TABLE){this.insertionMode=ed.IN_SELECT_IN_TABLE;return}}this.insertionMode=ed.IN_SELECT}_isElementCausesFosterParenting(e){return rZ.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case el.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===er.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case el.TABLE:{let a=this.treeAdapter.getParentNode(t);if(a)return{parent:a,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return rd[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,a;return void(t=this,a=e,t._insertCharacters(a),t.framesetOk=!1)}switch(this.insertionMode){case ed.INITIAL:r4(this,e);break;case ed.BEFORE_HTML:r5(this,e);break;case ed.BEFORE_HEAD:r6(this,e);break;case ed.IN_HEAD:r9(this,e);break;case ed.IN_HEAD_NO_SCRIPT:se(this,e);break;case ed.AFTER_HEAD:st(this,e);break;case ed.IN_BODY:case ed.IN_CAPTION:case ed.IN_CELL:case ed.IN_TEMPLATE:sr(this,e);break;case ed.TEXT:case ed.IN_SELECT:case ed.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case ed.IN_TABLE:case ed.IN_TABLE_BODY:case ed.IN_ROW:sm(this,e);break;case ed.IN_TABLE_TEXT:sb(this,e);break;case ed.IN_COLUMN_GROUP:sT(this,e);break;case ed.AFTER_BODY:sL(this,e);break;case ed.AFTER_AFTER_BODY:sO(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,a;return void(t=this,(a=e).chars="�",t._insertCharacters(a))}switch(this.insertionMode){case ed.INITIAL:r4(this,e);break;case ed.BEFORE_HTML:r5(this,e);break;case ed.BEFORE_HEAD:r6(this,e);break;case ed.IN_HEAD:r9(this,e);break;case ed.IN_HEAD_NO_SCRIPT:se(this,e);break;case ed.AFTER_HEAD:st(this,e);break;case ed.TEXT:this._insertCharacters(e);break;case ed.IN_TABLE:case ed.IN_TABLE_BODY:case ed.IN_ROW:sm(this,e);break;case ed.IN_COLUMN_GROUP:sT(this,e);break;case ed.AFTER_BODY:sL(this,e);break;case ed.AFTER_AFTER_BODY:sO(this,e)}}onComment(e){var t,a,i,r;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void r2(this,e);switch(this.insertionMode){case ed.INITIAL:case ed.BEFORE_HTML:case ed.BEFORE_HEAD:case ed.IN_HEAD:case ed.IN_HEAD_NO_SCRIPT:case ed.AFTER_HEAD:case ed.IN_BODY:case ed.IN_TABLE:case ed.IN_CAPTION:case ed.IN_COLUMN_GROUP:case ed.IN_TABLE_BODY:case ed.IN_ROW:case ed.IN_CELL:case ed.IN_SELECT:case ed.IN_SELECT_IN_TABLE:case ed.IN_TEMPLATE:case ed.IN_FRAMESET:case ed.AFTER_FRAMESET:r2(this,e);break;case ed.IN_TABLE_TEXT:sE(this,e);break;case ed.AFTER_BODY:t=this,a=e,t._appendCommentNode(a,t.openElements.items[0]);break;case ed.AFTER_AFTER_BODY:case ed.AFTER_AFTER_FRAMESET:i=this,r=e,i._appendCommentNode(r,i.document)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case ed.INITIAL:!function(e,t){e._setDocumentType(t);let a=t.forceQuirks?en.QUIRKS:function(e){if(e.name!==rj)return en.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return en.QUIRKS;let{publicId:a}=e;if(null!==a){if(a=a.toLowerCase(),rU.has(a))return en.QUIRKS;let e=null===t?rB:rF;if(rW(a,e))return en.QUIRKS;if(rW(a,e=null===t?rG:rH))return en.LIMITED_QUIRKS}return en.NO_QUIRKS}(t);(t.name!==rj||null!==t.publicId||null!==t.systemId&&"about:legacy-compat"!==t.systemId)&&e._err(t,X.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,a),e.insertionMode=ed.BEFORE_HTML}(this,e);break;case ed.BEFORE_HEAD:case ed.IN_HEAD:case ed.IN_HEAD_NO_SCRIPT:case ed.AFTER_HEAD:this._err(e,X.misplacedDoctype);break;case ed.IN_TABLE_TEXT:sE(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,X.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){let a;if((a=t.tagID)===el.FONT&&t.attrs.some(({name:e})=>e===es.COLOR||e===es.SIZE||e===es.FACE)||rY.has(a))sP(e),e._startTagOutsideForeignContent(t);else{let a=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(a);if(i===er.MATHML)rz(t);else if(i===er.SVG){let e;null!=(e=r$.get(t.tagName))&&(t.tagName=e,t.tagID=rc(t.tagName)),rK(t)}rQ(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case ed.INITIAL:r4(this,e);break;case ed.BEFORE_HTML:t=this,(a=e).tagID===el.HTML?(t._insertElement(a,er.HTML),t.insertionMode=ed.BEFORE_HEAD):r5(t,a);break;case ed.BEFORE_HEAD:var t,a,i,r,s,n,o,l,c,u,d,h,m=this,_=e;switch(_.tagID){case el.HTML:sc(m,_);break;case el.HEAD:m._insertElement(_,er.HTML),m.headElement=m.openElements.current,m.insertionMode=ed.IN_HEAD;break;default:r6(m,_)}break;case ed.IN_HEAD:r8(this,e);break;case ed.IN_HEAD_NO_SCRIPT:var p=this,f=e;switch(f.tagID){case el.HTML:sc(p,f);break;case el.BASEFONT:case el.BGSOUND:case el.HEAD:case el.LINK:case el.META:case el.NOFRAMES:case el.STYLE:r8(p,f);break;case el.NOSCRIPT:p._err(f,X.nestedNoscriptInHead);break;default:se(p,f)}break;case ed.AFTER_HEAD:var g=this,b=e;switch(b.tagID){case el.HTML:sc(g,b);break;case el.BODY:g._insertElement(b,er.HTML),g.framesetOk=!1,g.insertionMode=ed.IN_BODY;break;case el.FRAMESET:g._insertElement(b,er.HTML),g.insertionMode=ed.IN_FRAMESET;break;case el.BASE:case el.BASEFONT:case el.BGSOUND:case el.LINK:case el.META:case el.NOFRAMES:case el.SCRIPT:case el.STYLE:case el.TEMPLATE:case el.TITLE:g._err(b,X.abandonedHeadElementChild),g.openElements.push(g.headElement,el.HEAD),r8(g,b),g.openElements.remove(g.headElement);break;case el.HEAD:g._err(b,X.misplacedStartTagForHeadElement);break;default:st(g,b)}break;case ed.IN_BODY:sc(this,e);break;case ed.IN_TABLE:s_(this,e);break;case ed.IN_TABLE_TEXT:sE(this,e);break;case ed.IN_CAPTION:let E;i=this,E=(r=e).tagID,sv.has(E)?i.openElements.hasInTableScope(el.CAPTION)&&(i.openElements.generateImpliedEndTags(),i.openElements.popUntilTagNamePopped(el.CAPTION),i.activeFormattingElements.clearToLastMarker(),i.insertionMode=ed.IN_TABLE,s_(i,r)):sc(i,r);break;case ed.IN_COLUMN_GROUP:sA(this,e);break;case ed.IN_TABLE_BODY:sC(this,e);break;case ed.IN_ROW:sx(this,e);break;case ed.IN_CELL:let v;s=this,v=(n=e).tagID,sv.has(v)?(s.openElements.hasInTableScope(el.TD)||s.openElements.hasInTableScope(el.TH))&&(s._closeTableCell(),sx(s,n)):sc(s,n);break;case ed.IN_SELECT:sN(this,e);break;case ed.IN_SELECT_IN_TABLE:let A;o=this,(A=(l=e).tagID)===el.CAPTION||A===el.TABLE||A===el.TBODY||A===el.TFOOT||A===el.THEAD||A===el.TR||A===el.TD||A===el.TH?(o.openElements.popUntilTagNamePopped(el.SELECT),o._resetInsertionMode(),o._processStartTag(l)):sN(o,l);break;case ed.IN_TEMPLATE:var T=this,C=e;switch(C.tagID){case el.BASE:case el.BASEFONT:case el.BGSOUND:case el.LINK:case el.META:case el.NOFRAMES:case el.SCRIPT:case el.STYLE:case el.TEMPLATE:case el.TITLE:r8(T,C);break;case el.CAPTION:case el.COLGROUP:case el.TBODY:case el.TFOOT:case el.THEAD:T.tmplInsertionModeStack[0]=ed.IN_TABLE,T.
5insertionMode=ed.IN_TABLE,s_(T,C);break;case el.COL:T.tmplInsertionModeStack[0]=ed.IN_COLUMN_GROUP,T.insertionMode=ed.IN_COLUMN_GROUP,sA(T,C);break;case el.TR:T.tmplInsertionModeStack[0]=ed.IN_TABLE_BODY,T.insertionMode=ed.IN_TABLE_BODY,sC(T,C);break;case el.TD:case el.TH:T.tmplInsertionModeStack[0]=ed.IN_ROW,T.insertionMode=ed.IN_ROW,sx(T,C);break;default:T.tmplInsertionModeStack[0]=ed.IN_BODY,T.insertionMode=ed.IN_BODY,sc(T,C)}break;case ed.AFTER_BODY:c=this,(u=e).tagID===el.HTML?sc(c,u):sL(c,u);break;case ed.IN_FRAMESET:var y=this,x=e;switch(x.tagID){case el.HTML:sc(y,x);break;case el.FRAMESET:y._insertElement(x,er.HTML);break;case el.FRAME:y._appendElement(x,er.HTML),x.ackSelfClosing=!0;break;case el.NOFRAMES:r8(y,x)}break;case ed.AFTER_FRAMESET:var S=this,N=e;switch(N.tagID){case el.HTML:sc(S,N);break;case el.NOFRAMES:r8(S,N)}break;case ed.AFTER_AFTER_BODY:d=this,(h=e).tagID===el.HTML?sc(d,h):sO(d,h);break;case ed.AFTER_AFTER_FRAMESET:var w=this,I=e;switch(I.tagID){case el.HTML:sc(w,I);break;case el.NOFRAMES:r8(w,I)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===el.P||t.tagID===el.BR){sP(e),e._endTagOutsideForeignContent(t);return}for(let a=e.openElements.stackTop;a>0;a--){let i=e.openElements.items[a];if(e.treeAdapter.getNamespaceURI(i)===er.HTML){e._endTagOutsideForeignContent(t);break}let r=e.treeAdapter.getTagName(i);if(r.toLowerCase()===t.tagName){t.tagName=r,e.openElements.shortenToLength(a);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case ed.INITIAL:r4(this,e);break;case ed.BEFORE_HTML:let t;i=this,((t=(r=e).tagID)===el.HTML||t===el.HEAD||t===el.BODY||t===el.BR)&&r5(i,r);break;case ed.BEFORE_HEAD:let a;s=this,(a=(n=e).tagID)===el.HEAD||a===el.BODY||a===el.HTML||a===el.BR?r6(s,n):s._err(n,X.endTagWithoutMatchingOpenElement);break;case ed.IN_HEAD:var i,r,s,n,o,l,c,u,d,h,m,_,p=this,f=e;switch(f.tagID){case el.HEAD:p.openElements.pop(),p.insertionMode=ed.AFTER_HEAD;break;case el.BODY:case el.BR:case el.HTML:r9(p,f);break;case el.TEMPLATE:r7(p,f);break;default:p._err(f,X.endTagWithoutMatchingOpenElement)}break;case ed.IN_HEAD_NO_SCRIPT:var g=this,b=e;switch(b.tagID){case el.NOSCRIPT:g.openElements.pop(),g.insertionMode=ed.IN_HEAD;break;case el.BR:se(g,b);break;default:g._err(b,X.endTagWithoutMatchingOpenElement)}break;case ed.AFTER_HEAD:var E=this,v=e;switch(v.tagID){case el.BODY:case el.HTML:case el.BR:st(E,v);break;case el.TEMPLATE:r7(E,v);break;default:E._err(v,X.endTagWithoutMatchingOpenElement)}break;case ed.IN_BODY:sd(this,e);break;case ed.TEXT:o=this,e.tagID===el.SCRIPT&&(null==(l=o.scriptHandler)||l.call(o,o.openElements.current)),o.openElements.pop(),o.insertionMode=o.originalInsertionMode;break;case ed.IN_TABLE:sp(this,e);break;case ed.IN_TABLE_TEXT:sE(this,e);break;case ed.IN_CAPTION:var A=this,T=e;let C=T.tagID;switch(C){case el.CAPTION:case el.TABLE:A.openElements.hasInTableScope(el.CAPTION)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(el.CAPTION),A.activeFormattingElements.clearToLastMarker(),A.insertionMode=ed.IN_TABLE,C===el.TABLE&&sp(A,T));break;case el.BODY:case el.COL:case el.COLGROUP:case el.HTML:case el.TBODY:case el.TD:case el.TFOOT:case el.TH:case el.THEAD:case el.TR:break;default:sd(A,T)}break;case ed.IN_COLUMN_GROUP:var y=this,x=e;switch(x.tagID){case el.COLGROUP:y.openElements.currentTagId===el.COLGROUP&&(y.openElements.pop(),y.insertionMode=ed.IN_TABLE);break;case el.TEMPLATE:r7(y,x);break;case el.COL:break;default:sT(y,x)}break;case ed.IN_TABLE_BODY:sy(this,e);break;case ed.IN_ROW:sS(this,e);break;case ed.IN_CELL:var S=this,N=e;let w=N.tagID;switch(w){case el.TD:case el.TH:S.openElements.hasInTableScope(w)&&(S.openElements.generateImpliedEndTags(),S.openElements.popUntilTagNamePopped(w),S.activeFormattingElements.clearToLastMarker(),S.insertionMode=ed.IN_ROW);break;case el.TABLE:case el.TBODY:case el.TFOOT:case el.THEAD:case el.TR:S.openElements.hasInTableScope(w)&&(S._closeTableCell(),sS(S,N));break;case el.BODY:case el.CAPTION:case el.COL:case el.COLGROUP:case el.HTML:break;default:sd(S,N)}break;case ed.IN_SELECT:sw(this,e);break;case ed.IN_SELECT_IN_TABLE:let I;c=this,(I=(u=e).tagID)===el.CAPTION||I===el.TABLE||I===el.TBODY||I===el.TFOOT||I===el.THEAD||I===el.TR||I===el.TD||I===el.TH?c.openElements.hasInTableScope(I)&&(c.openElements.popUntilTagNamePopped(el.SELECT),c._resetInsertionMode(),c.onEndTag(u)):sw(c,u);break;case ed.IN_TEMPLATE:d=this,(h=e).tagID===el.TEMPLATE&&r7(d,h);break;case ed.AFTER_BODY:sk(this,e);break;case ed.IN_FRAMESET:m=this,e.tagID===el.FRAMESET&&!m.openElements.isRootHtmlElementCurrent()&&(m.openElements.pop(),m.fragmentContext||m.openElements.currentTagId===el.FRAMESET||(m.insertionMode=ed.AFTER_FRAMESET));break;case ed.AFTER_FRAMESET:_=this,e.tagID===el.HTML&&(_.insertionMode=ed.AFTER_AFTER_FRAMESET);break;case ed.AFTER_AFTER_BODY:sO(this,e)}}onEof(e){switch(this.insertionMode){case ed.INITIAL:r4(this,e);break;case ed.BEFORE_HTML:r5(this,e);break;case ed.BEFORE_HEAD:r6(this,e);break;case ed.IN_HEAD:r9(this,e);break;case ed.IN_HEAD_NO_SCRIPT:se(this,e);break;case ed.AFTER_HEAD:st(this,e);break;case ed.IN_BODY:case ed.IN_TABLE:case ed.IN_CAPTION:case ed.IN_COLUMN_GROUP:case ed.IN_TABLE_BODY:case ed.IN_ROW:case ed.IN_CELL:case ed.IN_SELECT:case ed.IN_SELECT_IN_TABLE:sh(this,e);break;case ed.TEXT:var t,a;t=this,a=e,t._err(a,X.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(a);break;case ed.IN_TABLE_TEXT:sE(this,e);break;case ed.IN_TEMPLATE:sI(this,e);break;case ed.AFTER_BODY:case ed.IN_FRAMESET:case ed.AFTER_FRAMESET:case ed.AFTER_AFTER_BODY:case ed.AFTER_AFTER_FRAMESET:r3(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCo
5deAt(0)===Q.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(e);switch(this.insertionMode){case ed.IN_HEAD:case ed.IN_HEAD_NO_SCRIPT:case ed.AFTER_HEAD:case ed.TEXT:case ed.IN_COLUMN_GROUP:case ed.IN_SELECT:case ed.IN_SELECT_IN_TABLE:case ed.IN_FRAMESET:case ed.AFTER_FRAMESET:this._insertCharacters(e);break;case ed.IN_BODY:case ed.IN_CAPTION:case ed.IN_CELL:case ed.IN_TEMPLATE:case ed.AFTER_BODY:case ed.AFTER_AFTER_BODY:case ed.AFTER_AFTER_FRAMESET:si(this,e);break;case ed.IN_TABLE:case ed.IN_TABLE_BODY:case ed.IN_ROW:sm(this,e);break;case ed.IN_TABLE_TEXT:sg(this,e)}}}function r1(e,t){for(let a=0;a<8;a++){let a=function(e,t){let a=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return a?e.openElements.contains(a.element)?e.openElements.hasInScope(t.tagID)||(a=null):(e.activeFormattingElements.removeEntry(a),a=null):su(e,t),a}(e,t);if(!a)break;let i=function(e,t){let a=null,i=e.openElements.stackTop;for(;i>=0;i--){let r=e.openElements.items[i];if(r===t.element)break;e._isSpecialElement(r,e.openElements.tagIDs[i])&&(a=r)}return a||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),a}(e,a);if(!i)break;e.activeFormattingElements.bookmark=a;let r=function(e,t,a){let i=t,r=e.openElements.getCommonAncestor(t);for(let s=0,n=r;n!==a;s++,n=r){r=e.openElements.getCommonAncestor(n);let a=e.activeFormattingElements.getElementEntry(n),o=a&&s>=3;!a||o?(o&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(n)):(n=function(e,t){let a=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,a,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}(e,a),i===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(n,i),i=n)}return i}(e,i,a.element),s=e.openElements.getCommonAncestor(a.element);e.treeAdapter.detachNode(r),s&&function(e,t,a){let i=rc(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(i))e._fosterParentElement(a);else{let r=e.treeAdapter.getNamespaceURI(t);i===el.TEMPLATE&&r===er.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,a)}}(e,s,r),function(e,t,a){let i=e.treeAdapter.getNamespaceURI(a.element),{token:r}=a,s=e.treeAdapter.createElement(r.tagName,i,r.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,r),e.activeFormattingElements.removeEntry(a),e.openElements.remove(a.element),e.openElements.insertAfter(t,s,r.tagID)}(e,i,a)}}function r2(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function r3(e,t){if(e.stopped=!0,t.location){let a=2*!e.fragmentContext;for(let i=e.openElements.stackTop;i>=a;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let a=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(a);if(i&&!i.endTag&&(e._setEndLocation(a,t),e.openElements.stackTop>=1)){let a=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(a);i&&!i.endTag&&e._setEndLocation(a,t)}}}}function r4(e,t){e._err(t,X.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,en.QUIRKS),e.insertionMode=ed.BEFORE_HTML,e._processToken(t)}function r5(e,t){e._insertFakeRootElement(),e.insertionMode=ed.BEFORE_HEAD,e._processToken(t)}function r6(e,t){e._insertFakeElement(eo.HEAD,el.HEAD),e.headElement=e.openElements.current,e.insertionMode=ed.IN_HEAD,e._processToken(t)}function r8(e,t){switch(t.tagID){case el.HTML:sc(e,t);break;case el.BASE:case el.BASEFONT:case el.BGSOUND:case el.LINK:case el.META:e._appendElement(t,er.HTML),t.ackSelfClosing=!0;break;case el.TITLE:e._switchToTextParsing(t,rp.RCDATA);break;case el.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,rp.RAWTEXT):(e._insertElement(t,er.HTML),e.insertionMode=ed.IN_HEAD_NO_SCRIPT);break;case el.NOFRAMES:case el.STYLE:e._switchToTextParsing(t,rp.RAWTEXT);break;case el.SCRIPT:e._switchToTextParsing(t,rp.SCRIPT_DATA);break;case el.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ed.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ed.IN_TEMPLATE);break;case el.HEAD:e._err(t,X.misplacedStartTagForHeadElement);break;default:r9(e,t)}}function r7(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==el.TEMPLATE&&e._err(t,X.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(el.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,X.endTagWithoutMatchingOpenElement)}function r9(e,t){e.openElements.pop(),e.insertionMode=ed.AFTER_HEAD,e._processToken(t)}function se(e,t){let a=t.type===Z.EOF?X.openElementsLeftAfterEof:X.disallowedContentInNoscriptInHead;e._err(t,a),e.openElements.pop(),e.insertionMode=ed.IN_HEAD,e._processToken(t)}function st(e,t){e._insertFakeElement(eo.BODY,el.BODY),e.insertionMode=ed.IN_BODY,sa(e,t)}
5function sa(e,t){switch(t.type){case Z.CHARACTER:sr(e,t);break;case Z.WHITESPACE_CHARACTER:si(e,t);break;case Z.COMMENT:r2(e,t);break;case Z.START_TAG:sc(e,t);break;case Z.END_TAG:sd(e,t);break;case Z.EOF:sh(e,t)}}function si(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function sr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ss(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,er.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function sn(e){let t=ri(e,es.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function so(e,t){e._switchToTextParsing(t,rp.RAWTEXT)}function sl(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,er.HTML)}function sc(e,t){switch(t.tagID){case el.I:case el.S:case el.B:case el.U:case el.EM:case el.TT:case el.BIG:case el.CODE:case el.FONT:case el.SMALL:case el.STRIKE:case el.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,er.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case el.A:let a;(a=e.activeFormattingElements.getElementEntryInScopeWithTagName(eo.A))&&(r1(e,t),e.openElements.remove(a.element),e.activeFormattingElements.removeEntry(a)),e._reconstructActiveFormattingElements(),e._insertElement(t,er.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case el.H1:case el.H2:case el.H3:case el.H4:case el.H5:case el.H6:e.openElements.hasInButtonScope(el.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&rh.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,er.HTML);break;case el.P:case el.DL:case el.OL:case el.UL:case el.DIV:case el.DIR:case el.NAV:case el.MAIN:case el.MENU:case el.ASIDE:case el.CENTER:case el.FIGURE:case el.FOOTER:case el.HEADER:case el.HGROUP:case el.DIALOG:case el.DETAILS:case el.ADDRESS:case el.ARTICLE:case el.SEARCH:case el.SECTION:case el.SUMMARY:case el.FIELDSET:case el.BLOCKQUOTE:case el.FIGCAPTION:e.openElements.hasInButtonScope(el.P)&&e._closePElement(),e._insertElement(t,er.HTML);break;case el.LI:case el.DD:case el.DT:e.framesetOk=!1;let i=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let a=e.openElements.tagIDs[t];if(i===el.LI&&a===el.LI||(i===el.DD||i===el.DT)&&(a===el.DD||a===el.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==el.ADDRESS&&a!==el.DIV&&a!==el.P&&e._isSpecialElement(e.openElements.items[t],a))break}e.openElements.hasInButtonScope(el.P)&&e._closePElement(),e._insertElement(t,er.HTML);break;case el.BR:case el.IMG:case el.WBR:case el.AREA:case el.EMBED:case el.KEYGEN:ss(e,t);break;case el.HR:e.openElements.hasInButtonScope(el.P)&&e._closePElement(),e._appendElement(t,er.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case el.RB:case el.RTC:e.openElements.hasInScope(el.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,er.HTML);break;case el.RT:case el.RP:e.openElements.hasInScope(el.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(el.RTC),e._insertElement(t,er.HTML);break;case el.PRE:case el.LISTING:e.openElements.hasInButtonScope(el.P)&&e._closePElement(),e._insertElement(t,er.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case el.XMP:e.openElements.hasInButtonScope(el.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,rp.RAWTEXT);break;case el.SVG:e._reconstructActiveFormattingElements(),rK(t),rQ(t),t.selfClosing?e._appendElement(t,er.SVG):e._insertElement(t,er.SVG),t.ackSelfClosing=!0;break;case el.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case el.BASE:case el.LINK:case el.META:case el.STYLE:case el.TITLE:case el.SCRIPT:case el.BGSOUND:case el.BASEFONT:case el.TEMPLATE:r8(e,t);break;case el.BODY:let r;(r=e.openElements.tryPeekProperlyNestedBodyElement())&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs));break;case el.FORM:let s;s=e.openElements.tmplCount>0,(!e.formElement||s)&&(e.openElements.hasInButtonScope(el.P)&&e._closePElement(),e._insertElement(t,er.HTML),s||(e.formElement=e.openElements.current));break;case el.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(el.NOBR)&&(r1(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,er.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case el.MATH:e._reconstructActiveFormattingElements(),rz(t),rQ(t),t.selfClosing?e._appendElement(t,er.MATHML):e._insertElement(t,er.MATHML),t.ackSelfClosing=!0;break;case el.TABLE:e.treeAdapter.getDocumentMode(e.document)!==en.QUIRKS&&e.openElements.hasInButtonScope(el.P)&&e._closePElement(),e._insertElement(t,er.HTML),e.framesetOk=!1,e.insertionMode=ed.IN_TABLE;break;case el.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,er.HTML),sn(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case el.PARAM:case el.TRACK:case el.SOURCE:e._appendElement(t,er.HTML),t.ackSelfClosing=!0;break;case el.IMAGE:t.tagName=eo.IMG,t.tagID=el.IMG,ss(e,t);break;case el.BUTTON:e.openElements.hasInScope(el.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(el.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,er.HTML),e.framesetOk=!1;break;case el.APPLET:case el.OBJECT:case el.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,er.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case el.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,rp.RAWTEXT);break;case el.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,er.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ed.IN_TABLE||e.insertionMode===ed.IN_CAPTION||e.insertionMode===ed.IN_TABLE_BODY||e.insertionMode===ed.IN_ROW||e.insertionMode===ed.IN_CELL?ed.IN_SELECT_IN_TABLE:ed.IN_SELECT;break;case el.OPTION:case el.OPTGROUP:e.openElements.currentTagId===el.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,er.HTML);break;case el.NOEMBED:case el.NOFRAMES:so(e,t);break;case el.FRAMESET:let n;n=e.openElements.tryPeekProperlyNestedBodyElement(),e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.o
5penElements.popAllUpToHtmlElement(),e._insertElement(t,er.HTML),e.insertionMode=ed.IN_FRAMESET);break;case el.TEXTAREA:e._insertElement(t,er.HTML),e.skipNextNewLine=!0,e.tokenizer.state=rp.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ed.TEXT;break;case el.NOSCRIPT:e.options.scriptingEnabled?so(e,t):sl(e,t);break;case el.PLAINTEXT:e.openElements.hasInButtonScope(el.P)&&e._closePElement(),e._insertElement(t,er.HTML),e.tokenizer.state=rp.PLAINTEXT;break;case el.COL:case el.TH:case el.TD:case el.TR:case el.HEAD:case el.FRAME:case el.TBODY:case el.TFOOT:case el.THEAD:case el.CAPTION:case el.COLGROUP:break;default:sl(e,t)}}function su(e,t){let a=t.tagName,i=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let r=e.openElements.items[t],s=e.openElements.tagIDs[t];if(i===s&&(i!==el.UNKNOWN||e.treeAdapter.getTagName(r)===a)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(r,s))break}}function sd(e,t){switch(t.tagID){case el.A:case el.B:case el.I:case el.S:case el.U:case el.EM:case el.TT:case el.BIG:case el.CODE:case el.FONT:case el.NOBR:case el.SMALL:case el.STRIKE:case el.STRONG:r1(e,t);break;case el.P:e.openElements.hasInButtonScope(el.P)||e._insertFakeElement(eo.P,el.P),e._closePElement();break;case el.DL:case el.UL:case el.OL:case el.DIR:case el.DIV:case el.NAV:case el.PRE:case el.MAIN:case el.MENU:case el.ASIDE:case el.BUTTON:case el.CENTER:case el.FIGURE:case el.FOOTER:case el.HEADER:case el.HGROUP:case el.DIALOG:case el.ADDRESS:case el.ARTICLE:case el.DETAILS:case el.SEARCH:case el.SECTION:case el.SUMMARY:case el.LISTING:case el.FIELDSET:case el.BLOCKQUOTE:case el.FIGCAPTION:let a;a=t.tagID,e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a));break;case el.LI:e.openElements.hasInListItemScope(el.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(el.LI),e.openElements.popUntilTagNamePopped(el.LI));break;case el.DD:case el.DT:let i;i=t.tagID,e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i));break;case el.H1:case el.H2:case el.H3:case el.H4:case el.H5:case el.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case el.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(eo.BR,el.BR),e.openElements.pop(),e.framesetOk=!1;break;case el.BODY:if(e.openElements.hasInScope(el.BODY)&&(e.insertionMode=ed.AFTER_BODY,e.options.sourceCodeLocationInfo)){let a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e._setEndLocation(a,t)}break;case el.HTML:e.openElements.hasInScope(el.BODY)&&(e.insertionMode=ed.AFTER_BODY,sk(e,t));break;case el.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:a}=e;t||(e.formElement=null),(a||t)&&e.openElements.hasInScope(el.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(el.FORM):a&&e.openElements.remove(a))}(e);break;case el.APPLET:case el.OBJECT:case el.MARQUEE:let r;r=t.tagID,e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker());break;case el.TEMPLATE:r7(e,t);break;default:su(e,t)}}function sh(e,t){e.tmplInsertionModeStack.length>0?sI(e,t):r3(e,t)}function sm(e,t){if(void 0!==e.openElements.currentTagId&&rZ.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ed.IN_TABLE_TEXT,t.type){case Z.CHARACTER:sb(e,t);break;case Z.WHITESPACE_CHARACTER:sg(e,t)}else sf(e,t)}function s_(e,t){switch(t.tagID){case el.TD:case el.TH:case el.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(eo.TBODY,el.TBODY),e.insertionMode=ed.IN_TABLE_BODY,sC(e,t);break;case el.STYLE:case el.SCRIPT:case el.TEMPLATE:r8(e,t);break;case el.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(eo.COLGROUP,el.COLGROUP),e.insertionMode=ed.IN_COLUMN_GROUP,sA(e,t);break;case el.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,er.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case el.TABLE:e.openElements.hasInTableScope(el.TABLE)&&(e.openElements.popUntilTagNamePopped(el.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case el.TBODY:case el.TFOOT:case el.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,er.HTML),e.insertionMode=ed.IN_TABLE_BODY;break;case el.INPUT:sn(t)?e._appendElement(t,er.HTML):sf(e,t),t.ackSelfClosing=!0;break;case el.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,er.HTML),e.insertionMode=ed.IN_CAPTION;break;case el.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,er.HTML),e.insertionMode=ed.IN_COLUMN_GROUP;break;default:sf(e,t)}}function sp(e,t){switch(t.tagID){case el.TABLE:e.openElements.hasInTableScope(el.TABLE)&&(e.openElements.popUntilTagNamePopped(el.TABLE),e._resetInsertionMode());break;case el.TEMPLATE:r7(e,t);break;case el.BODY:case el.CAPTION:case el.COL:case el.COLGROUP:case el.HTML:case el.TBODY:case el.TD:case el.TFOOT:case el.TH:case el.THEAD:case el.TR:break;default:sf(e,t)}}function sf(e,t){let a=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,sa(e,t),e.fosterParentingEnabled=a}
vendor: 5,294 bytes, line 5
5function sg(e,t){e.pendingCharacterTokens.push(t)}function sb(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function sE(e,t){let a=0;if(e.hasNonWhitespacePendingCharacterToken)for(;a<e.pendingCharacterTokens.length;a++)sf(e,e.pendingCharacterTokens[a]);else for(;a<e.pendingCharacterTokens.length;a++)e._insertCharacters(e.pendingCharacterTokens[a]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}let sv=new Set([el.CAPTION,el.COL,el.COLGROUP,el.TBODY,el.TD,el.TFOOT,el.TH,el.THEAD,el.TR]);function sA(e,t){switch(t.tagID){case el.HTML:sc(e,t);break;case el.COL:e._appendElement(t,er.HTML),t.ackSelfClosing=!0;break;case el.TEMPLATE:r8(e,t);break;default:sT(e,t)}}function sT(e,t){e.openElements.currentTagId===el.COLGROUP&&(e.openElements.pop(),e.insertionMode=ed.IN_TABLE,e._processToken(t))}function sC(e,t){switch(t.tagID){case el.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,er.HTML),e.insertionMode=ed.IN_ROW;break;case el.TH:case el.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(eo.TR,el.TR),e.insertionMode=ed.IN_ROW,sx(e,t);break;case el.CAPTION:case el.COL:case el.COLGROUP:case el.TBODY:case el.TFOOT:case el.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ed.IN_TABLE,s_(e,t));break;default:s_(e,t)}}function sy(e,t){let a=t.tagID;switch(t.tagID){case el.TBODY:case el.TFOOT:case el.THEAD:e.openElements.hasInTableScope(a)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ed.IN_TABLE);break;case el.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ed.IN_TABLE,sp(e,t));break;case el.BODY:case el.CAPTION:case el.COL:case el.COLGROUP:case el.HTML:case el.TD:case el.TH:case el.TR:break;default:sp(e,t)}}function sx(e,t){switch(t.tagID){case el.TH:case el.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,er.HTML),e.insertionMode=ed.IN_CELL,e.activeFormattingElements.insertMarker();break;case el.CAPTION:case el.COL:case el.COLGROUP:case el.TBODY:case el.TFOOT:case el.THEAD:case el.TR:e.openElements.hasInTableScope(el.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ed.IN_TABLE_BODY,sC(e,t));break;default:s_(e,t)}}function sS(e,t){switch(t.tagID){case el.TR:e.openElements.hasInTableScope(el.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ed.IN_TABLE_BODY);break;case el.TABLE:e.openElements.hasInTableScope(el.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ed.IN_TABLE_BODY,sy(e,t));break;case el.TBODY:case el.TFOOT:case el.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(el.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ed.IN_TABLE_BODY,sy(e,t));break;case el.BODY:case el.CAPTION:case el.COL:case el.COLGROUP:case el.HTML:case el.TD:case el.TH:break;default:sp(e,t)}}function sN(e,t){switch(t.tagID){case el.HTML:sc(e,t);break;case el.OPTION:e.openElements.currentTagId===el.OPTION&&e.openElements.pop(),e._insertElement(t,er.HTML);break;case el.OPTGROUP:e.openElements.currentTagId===el.OPTION&&e.openElements.pop(),e.openElements.currentTagId===el.OPTGROUP&&e.openElements.pop(),e._insertElement(t,er.HTML);break;case el.HR:e.openElements.currentTagId===el.OPTION&&e.openElements.pop(),e.openElements.currentTagId===el.OPTGROUP&&e.openElements.pop(),e._appendElement(t,er.HTML),t.ackSelfClosing=!0;break;case el.INPUT:case el.KEYGEN:case el.TEXTAREA:case el.SELECT:e.openElements.hasInSelectScope(el.SELECT)&&(e.openElements.popUntilTagNamePopped(el.SELECT),e._resetInsertionMode(),t.tagID!==el.SELECT&&e._processStartTag(t));break;case el.SCRIPT:case el.TEMPLATE:r8(e,t)}}function sw(e,t){switch(t.tagID){case el.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===el.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===el.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===el.OPTGROUP&&e.openElements.pop();break;case el.OPTION:e.openElements.currentTagId===el.OPTION&&e.openElements.pop();break;case el.SELECT:e.openElements.hasInSelectScope(el.SELECT)&&(e.openElements.popUntilTagNamePopped(el.SELECT),e._resetInsertionMode());break;case el.TEMPLATE:r7(e,t)}}function sI(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(el.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):r3(e,t)}function sk(e,t){var a;if(t.tagID===el.HTML){if(e.fragmentContext||(e.insertionMode=ed.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===el.HTML){e._setEndLocation(e.openElements.items[0],t);let i=e.openElements.items[1];!i||(null==(a=e.treeAdapter.getNodeSourceCodeLocation(i))?void 0:a.endTag)||e._setEndLocation(i,t)}}else sL(e,t)}function sL(e,t){e.insertionMode=ed.IN_BODY,sa(e,t)}function sO(e,t){e.insertionMode=ed.IN_BODY,sa(e,t)}function sP(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==er.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.o
5penElements.current);)e.openElements.pop()}function sD(e,t){return function(a){let i,r=0,s="";for(;i=e.exec(a);)r!==i.index&&(s+=a.substring(r,i.index)),s+=t.get(i[0].charCodeAt(0)),r=i.index+1;return s+a.substring(r)}}String.prototype.codePointAt;let sR=sD(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),sM=sD(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),sj=new Set([eo.AREA,eo.BASE,eo.BASEFONT,eo.BGSOUND,eo.BR,eo.COL,eo.EMBED,eo.FRAME,eo.HR,eo.IMG,eo.INPUT,eo.KEYGEN,eo.LINK,eo.META,eo.PARAM,eo.SOURCE,eo.TRACK,eo.WBR]),sF={treeAdapter:rM,scriptingEnabled:!0};var sB=e.i(615473),sB=sB;function sU(e){let t=e.includes('"')?"'":'"';return t+e+t}let sG={isCommentNode:eO,isElementNode:eI,isTextNode:eL,createDocument(){let e=new eN([]);return e["x-mode"]=sB.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment:()=>new eN([]),createElement(e,t,a){let i=Object.create(null),r=Object.create(null),s=Object.create(null);for(let e=0;e<a.length;e++){let t=a[e].name;i[t]=a[e].value,r[t]=a[e].namespace,s[t]=a[e].prefix}let n=new ew(e,i,[]);return n.namespace=t,n["x-attribsNamespace"]=r,n["x-attribsPrefix"]=s,n},createCommentNode:e=>new eC(e),createTextNode:e=>new eT(e),appendChild(e,t){let a=e.children[e.children.length-1];a&&(a.next=t,t.prev=a),e.children.push(t),t.parent=e},insertBefore(e,t,a){let i=e.children.indexOf(a),{prev:r}=a;r&&(r.next=t,t.prev=r),a.prev=t,t.next=a,e.children.splice(i,0,t),t.parent=e},setTemplateContent(e,t){sG.appendChild(e,t)},getTemplateContent:e=>e.children[0],setDocumentType(e,t,a,i){let r,s=(r="!DOCTYPE ",t&&(r+=t),a?r+=` PUBLIC ${sU(a)}`:i&&(r+=" SYSTEM"),i&&(r+=` ${sU(i)}`),r),n=e.children.find(e=>eP(e)&&"!doctype"===e.name);n?n.data=null!=s?s:null:(n=new ey("!doctype",s),sG.appendChild(e,n)),n["x-name"]=t,n["x-publicId"]=a,n["x-systemId"]=i},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode:e=>e["x-mode"],detachNode(e){if(e.parent){let t=e.parent.children.indexOf(e),{prev:a,next:i}=e;e.prev=null,e.next=null,a&&(a.next=i),i&&(i.prev=a),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let a=e.children[e.children.length-1];a&&eL(a)?a.data+=t:sG.appendChild(e,sG.createTextNode(t))},insertTextBefore(e,t,a){let i=e.children[e.children.indexOf(a)-1];i&&eL(i)?i.data+=t:sG.insertBefore(e,sG.createTextNode(t),a)},adoptAttributes(e,t){for(let a=0;a<t.length;a++){let i=t[a].name;void 0===e.attribs[i]&&(e.attribs[i]=t[a].value,e["x-attribsNamespace"][i]=t[a].namespace,e["x-attribsPrefix"][i]=t[a].prefix)}},getFirstChild:e=>e.children[0],getChildNodes:e=>e.children,getParentNode:e=>e.parent,getAttrList:e=>e.attributes,getTagName:e=>e.name,getNamespaceURI:e=>e.namespace,getTextNodeContent:e=>e.data,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName(e){var t;return null!=(t=e["x-name"])?t:""},getDocumentTypeNodePublicId(e){var t;return null!=(t=e["x-publicId"])?t:""},getDocumentTypeNodeSystemId(e){var t;return null!=(t=e["x-systemId"])?t:""},isDocumentTypeNode:e=>eP(e)&&"!doctype"===e.name,setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){null!=t.endOffset&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},sH={treeAdapter:sG};function sW(e){return e===eh.Space||e===eh.NewLine||e===eh.Tab||e===eh.FormFeed||e===eh.CarriageReturn}function sV(e){return e===eh.Slash||e===eh.Gt||sW(e)}function sq(e){return e>=eh.Zero&&e<=eh.Nine}(I=eh||(eh={}))[I.Tab=9]="Tab",I[I.NewLine=10]="NewLine",I[I.FormFeed=12]="FormFeed",I[I.CarriageReturn=13]="CarriageReturn",I[I.Space=32]="Space",I[I.ExclamationMark=33]="ExclamationMark",I[I.Number=35]="Number",I[I.Amp=38]="Amp",I[I.SingleQuote=39]="SingleQuote",I[I.DoubleQuote=34]="DoubleQuote",I[I.Dash=45]="Dash",I[I.Slash=47]="Slash",I[I.Zero=48]="Zero",I[I.Nine=57]="Nine",I[I.Semi=59]="Semi",I[I.Lt=60]="Lt",I[I.Eq=61]="Eq",I[I.Gt=62]="Gt",I[I.Questionmark=63]="Questionmark",I[I.UpperA=65]="UpperA",I[I.LowerA=97]="LowerA",I[I.UpperF=70]="UpperF",I[I.LowerF=102]="LowerF",I[I.UpperZ=90]="UpperZ",I[I.LowerZ=122]="LowerZ",I[I.LowerX=120]="LowerX",I[I.OpeningSquareBracket=91]="OpeningSquareBracket",(k=em||(em={}))[k.Text=1]="Text",k[k.BeforeTagName=2]="BeforeTagName",k[k.InTagName=3]="InTagName",k[k.InSelfClosingTag=4]="InSelfClosingTag",k[k.BeforeClosingTagName=5]="BeforeClosingTagName",k[k.InClosingTagName=6]="InClosingTagName",k[k.AfterClosingTagName=7]="AfterClosingTagName",k[k.BeforeAttributeName=8]="BeforeAttributeName",k[k.InAttributeName=9]="InAttributeName",k[k.AfterAttributeName=10]="AfterAttributeName",k[k.BeforeAttributeValue=11]="BeforeAttributeValue",k[k.InAttributeValueDq=12]="InAttributeValueDq",k[k.InAttributeValueSq=13]="InAttributeValueSq",k[k.InAttributeValueNq=14]="InAttributeValueNq",k[k.BeforeDeclaration=15]="BeforeDeclaration",k[k.InDeclaration=16]="InDeclaration",k[k.InProcessingInstruction=17]="InProcessingInstruction",k[k.BeforeComment=18]="BeforeComment",k[k.CDATASequence=19]="CDATASequence",k[k.InSpecialComment=20]="InSpecialComment",k[k.InCommentLike=21]="InCommentLike",k[k.BeforeSpecialS=22]="BeforeSpecialS",k[k.SpecialStartSequence=23]="SpecialStartSequence",k[k.InSpecialTag=24]="InSpecialTag",k[k.BeforeEntity=25]="BeforeEntity",k[k.BeforeNumericEntity=26]="BeforeNumericEntity",k[k.InNamedEntity=27]="InNamedEntity",k[k.InNumericEntity=28]="InNumericEntity",k[k.InHexEntity=29]="InHexEntity",(L=e_||(e_={}))[L.NoValue=0]="NoValue",L[L.Unquoted=1]="Unquoted",L[L.Single=2]="Single",L[L.Double=3]="Double";let s$={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class sY{constructor({xmlMode:e=!1,decodeEntities:t=!0},a){this.cbs=a,this.state=em.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=em.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=t,this.entityTrie=e?eQ:eK}reset(){this.state=em.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=em.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(e){e===eh.Lt||!this.decodeEntities&&this.fastForwardTo(eh.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=em.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===eh.Amp&&(this.state=em.BeforeEntity)}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(t?sV(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=em.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===eh.Gt||sW(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===s$.TitleEnd?this.decodeEntities&&e===eh.Amp&&(this.state=em.BeforeEntity):this.fastForwardTo(eh.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===eh.Lt)}stateCDATASequence(e){e===s$.Cdata[this.sequenceIndex]?++this.sequenceIndex===s$.Cdata.length&&(this.state=em.InCommentLike,this.currentSequence=s$.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=em.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===s$.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=em.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!sV(e):e>=eh.LowerA&&e<=eh.LowerZ||e>=eh.UpperA&&e<=eh.UpperZ}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=em.SpecialStartSequence}stateBeforeTagName(e){if(e===eh.ExclamationMark)this.state=em.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===eh.Questionmark)this.state=em.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let t=32|e;this.sectionStart=this.index,this.xmlMode||t!==s$.TitleEnd[2]?this.state=this.xmlMode||t!==s$.ScriptEnd[2]?em.InTagName:em.BeforeSpecialS:this.startSpecial(s$.TitleEnd,3)}else e===eh.Slash?this.state=em.BeforeClosingTagName:(this.state=em.Text,this.stateText(e))}stateInTagName(e){sV(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=em.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){sW(e)||(e===eh.Gt?this.state=em.Text:(this.state=this.isTagStartChar(e)?em.InClosingTagName:em.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===eh.Gt||sW(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=em.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===eh.Gt||this.fastForwardTo(eh.Gt))&&(this.state=em.Text,this.baseState=em.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===eh.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=em.InSpecialTag,this.sequenceIndex=0):this.state=em.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===eh.Slash?this.state=em.InSelfClosingTag:sW(e)||(this.state=em.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===eh.Gt?(this.cbs.onselfclosingtag(this.index),this.state=em.Text,this.baseState=em.Text,this.sectionStart=this.index+1,this.isSpecial=!1):sW(e)||(this.state=em.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===eh.Eq||sV(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=em.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===eh.Eq?this.state=em.BeforeAttributeValue:e===eh.Slash||e===eh.Gt?(this.cbs.onattribend(e_.NoValue,this.index),this.state=em.BeforeAttributeName,this.stateBeforeAttributeName(e)):sW(e)||(this.cbs.onattribend(e_.NoValue,this.index),this.state=em.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===eh.DoubleQuote?(this.state=em.InAttributeValueDq,this.sectionStart=this.index+1):e===eh.SingleQuote?(this.state=em.InAttributeValueSq,this.sectionStart=this.index+1):sW(e)||(this.sectionStart=this.index,this.state=em.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===eh.DoubleQuote?e_.Double:e_.Single,this.index),this.state=em.BeforeAttributeName):this.decodeEntities&&e===eh.Amp&&(this.baseState=this.state,this.state=em.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,eh.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,eh.SingleQuote)}stateInAttributeValueNoQuotes(e){sW(e)||e===eh.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(e_.Unquoted,this.index),this.state=em.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===eh.Amp&&(this.baseState=this.state,this.state=em.BeforeEntity)}stateBeforeDeclaration(e){e===eh.OpeningSquareBracket?(this.state=em.CDATASequence,this.sequenceIndex=0):this.state=e===eh.Dash?em.BeforeComment:em.InDeclaration}stateInDeclaration(e){(e===eh.Gt||this.fastForwardTo(eh.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=em.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===eh.Gt||this.fastForwardTo(eh.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=em.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===eh.Dash?(this.state=em.InCommentLike,this.currentSequence=s$.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=em.InDeclaration}stateInSpecialComment(e){(e===eh.Gt||this.fastForwardTo(eh.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=em.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let t=32|e;t===s$.ScriptEnd[3]?this.startSpecial(s$.ScriptEnd,4):t===s$.StyleEnd[3]?this.startSpecial(s$.StyleEnd,4):(this.state=em.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===eh.Number?this.state=em.BeforeNumericEntity:e===eh.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=em.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=e3(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let t=this.trieCurrent&U.VALUE_LENGTH;if(t){let a=(t>>14)-1;if(this.allowLegacyEntity()||e===eh.Semi){let e=this.index-this.entityExcess+1;e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.entityResult=this.trieIndex,this.trieIndex+=a,this.entityExcess=0,this.sectionStart=this.index+1,0===a&&this.emitNamedEntity()}else this.trieIndex+=a}}emitNamedEntity(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&U.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~U.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(32|e)===eh.LowerX?(this.entityExcess++,this.state=em.InHexEntity):(this.state=em.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){let t=this.index-this.entityExcess-1;t+2+Number(this.state===em.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint(eJ(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===eh.Semi?this.emitNumericEntity(!0):sq(e)?(this.entityResult=10*this.entityResult+(e-eh.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){if(e===eh.Semi)this.emitNumericEntity(!0);else if(sq(e))this.entityResult=16*this.entityResult+(e-eh.Zero),this.entityExcess++;else e>=eh.UpperA&&e<=eh.UpperF||e>=eh.LowerA&&e<=eh.LowerF?(this.entityResult=16*this.entityResult+((32|e)-eh.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===em.Text||this.baseState===em.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===em.Text||this.state===em.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===em.InAttributeValueDq||this.state===em.InAttributeValueSq||this.state===em.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this
5.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case em.Text:this.stateText(e);break;case em.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case em.InSpecialTag:this.stateInSpecialTag(e);break;case em.CDATASequence:this.stateCDATASequence(e);break;case em.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case em.InAttributeName:this.stateInAttributeName(e);break;case em.InCommentLike:this.stateInCommentLike(e);break;case em.InSpecialComment:this.stateInSpecialComment(e);break;case em.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case em.InTagName:this.stateInTagName(e);break;case em.InClosingTagName:this.stateInClosingTagName(e);break;case em.BeforeTagName:this.stateBeforeTagName(e);break;case em.AfterAttributeName:this.stateAfterAttributeName(e);break;case em.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case em.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case em.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case em.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case em.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case em.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case em.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case em.InDeclaration:this.stateInDeclaration(e);break;case em.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case em.BeforeComment:this.stateBeforeComment(e);break;case em.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case em.InNamedEntity:this.stateInNamedEntity(e);break;case em.BeforeEntity:this.stateBeforeEntity(e);break;case em.InHexEntity:this.stateInHexEntity(e);break;case em.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()}finish(){this.state===em.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.state===em.InCommentLike?this.currentSequence===s$.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===em.InNumericEntity&&this.allowLegacyEntity()||this.state===em.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===em.InTagName||this.state===em.BeforeAttributeName||this.state===em.BeforeAttributeValue||this.state===em.AfterAttributeName||this.state===em.InAttributeName||this.state===em.InAttributeValueSq||this.state===em.InAttributeValueDq||this.state===em.InAttributeValueNq||this.state===em.InClosingTagName||this.cbs.ontext(this.sectionStart,e)}emitPartial(e,t){this.baseState!==em.Text&&this.baseState!==em.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)}emitCodePoint(e){this.baseState!==em.Text&&this.baseState!==em.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)}}let sz=new Set(["input","option","optgroup","select","button","datalist","textarea"]),sK=new Set(["p"]),sQ=new Set(["thead","tbody"]),sX=new Set(["dd","dt"]),sZ=new Set(["rt","rp"]),sJ=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",sK],["h1",sK],["h2",sK],["h3",sK],["h4",sK],["h5",sK],["h6",sK],["select",sz],["input",sz],["output",sz],["button",sz],["datalist",sz],["textarea",sz],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",sX],["dt",sX],["address",sK],["article",sK],["aside",sK],["blockquote",sK],["details",sK],["div",sK],["dl",sK],["fieldset",sK],["figcaption",sK],["figure",sK],["footer",sK],["form",sK],["header",sK],["hr",sK],["main",sK],["nav",sK],["ol",sK],["pre",sK],["section",sK],["table",sK],["ul",sK],["rt",sZ],["rp",sZ],["tbody",sQ],["tfoot",sQ]]),s0=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),s1=new Set(["math","svg"]),s2=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),s3=/\s|\//;class s4{constructor(e,t={}){var a,i,r,s,n;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!=(a=t.lowerCaseTags)?a:!t.xmlMode,this.lowerCaseAttributeNames=null!=(i=t.lowerCaseAttributeNames)?i:!t.xmlMode,this.tokenizer=new(null!=(r=t.Tokenizer)?r:sY)(this.options,this),null==(n=(s=this.cbs).onparserinit)||n.call(s,this)}ontext(e,t){var a,i;let r=this.getSlice(e,t);this.endIndex=t-1,null==(i=(a=this.cbs).ontext)||i.call(a,r),this.startIndex=t}ontextentity(e){var t,a;let i=this.tokenizer.getSectionStart();this.endIndex=i-1,null==(a=(t=this.cbs).ontext)||a.call(t,eZ(e)),this.startIndex=i}isVoidElement(e){return!this.options.xmlMode&&s0.has(e)}onopentagname(e,t){this.endIndex=t;let a=this.getSlice(e,t);this.lowerCaseTagNames&&(a=a.toLowerCase()),this.emitOpenTag(a)}emitOpenTag(e){var t,a,i,r;this.openTagStart=this.startIndex,this.tagname=e;let s=!this.options.xmlMode&&sJ.get(e);if(s)for(;this.stack.length>0&&s.has(this.stack[this.stack.length-1]);){let e=this.stack.pop();null==(a=(t=this.cbs).onclosetag)||a.call(t,e,!0)}!this.isVoidElement(e)&&(this.stack.push(e),s1.has(e)?this.foreignContext.push(!0):s2.has(e)&&this.foreignContext.push(!1)),null==(r=(i=this.cbs).onopentagname)||r.call(i,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,a;this.startIndex=this.openTagStart,this.attribs&&(null==(a=(t=this.cbs).onopentag)||a.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var a,i,r,s,n,o;this.endIndex=t;let l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(s1.has(l)||s2.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||"br"!==l||(null==(i=(a=this.cbs).onopentagname)||i.call(a,"br"),null==(s=(r=this.cbs).onopentag)||s.call(r,"br",{},!0),null==(o=(n=this.cbs).onclosetag)||o.call(n,"br",!1));else{let e=this.stack.lastIndexOf(l);if(-1!==e)if(this.cbs.onclosetag){let t=this.stack.length-e;for(;t--;)this.cbs.onclosetag(this.stack.pop(),0!==t)}else this.stack.length=e;else this.options.xmlMode||"p"!==l||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,a;let i=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===i&&(null==(a=(t=this.cbs).onclosetag)||a.call(t,i,!e),this.stack.pop())}onattribname(e,t){this.startIndex=e;let a=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?a.toLowerCase():a}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=eZ(e)}onattribend(e,t){var a,i;this.endIndex=t,null==(i=(a=this.cbs).onattribute)||i.call(a,this.attribname,this.attribvalue,e===e_.Double?'"':e===e_.Single?"'":e===e_.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){let t=e.search(s3),a=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(a=a.toLowerCase()),a}ondeclaration(e,t){this.endIndex=t;let a=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(a);this.cbs.onprocessinginstruction(`!${e}`,`!${a}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let a=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(a);this.cbs.onprocessinginstruction(`?${e}`,`?${a}`)}this.startIndex=t+1}oncomment(e,t,a){var i,r,s,n;this.endIndex=t,null==(r=(i=this.cbs).oncomment)||r.call(i,this.get
5Slice(e,t-a)),null==(n=(s=this.cbs).oncommentend)||n.call(s),this.startIndex=t+1}oncdata(e,t,a){var i,r,s,n,o,l,c,u,d,h;this.endIndex=t;let m=this.getSlice(e,t-a);this.options.xmlMode||this.options.recognizeCDATA?(null==(r=(i=this.cbs).oncdatastart)||r.call(i),null==(n=(s=this.cbs).ontext)||n.call(s,m),null==(l=(o=this.cbs).oncdataend)||l.call(o)):(null==(u=(c=this.cbs).oncomment)||u.call(c,`[CDATA[${m}]]`),null==(h=(d=this.cbs).oncommentend)||h.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=this.stack.length;e>0;this.cbs.onclosetag(this.stack[--e],!0));}null==(t=(e=this.cbs).onend)||t.call(e)}reset(){var e,t,a,i;null==(t=(e=this.cbs).onreset)||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null==(i=(a=this.cbs).onparserinit)||i.call(a,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let a=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),a+=this.buffers[0].slice(0,t-this.bufferOffset);return a}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,a;if(this.ended){null==(a=(t=this.cbs).onerror)||a.call(t,Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,a;if(this.ended){null==(a=(t=this.cbs).onerror)||a.call(t,Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}}(O=ep||(ep={})).Root="root",O.Text="text",O.Directive="directive",O.Comment="comment",O.Script="script",O.Style="style",O.Tag="tag",O.CDATA="cdata",O.Doctype="doctype",ep.Root,ep.Text,ep.Directive,ep.Comment,ep.Script,ep.Style,ep.Tag,ep.CDATA,ep.Doctype;let s5=(P=(e,t,a,i)=>{var r,s,n;let o,l,c;return t.xmlMode||t._useHtmlParser2?(new s4(o=new eB(void 0,t),t).end(e),o.root):(l={scriptingEnabled:"boolean"!=typeof t.scriptingEnabled||t.scriptingEnabled,treeAdapter:sG,sourceCodeLocationInfo:t.sourceCodeLocationInfo},a?r0.parse(e,l):(r=i,s=e,n=l,"string"==typeof r&&(n=s,s=r,r=null),(c=r0.getFragmentParser(r,n)).tokenizer.write(s,!0),c.getFragment()))},D=function(e,t,a,i){if(void 0!==iH.Buffer&&iH.Buffer.isBuffer(e)&&(e=e.toString()),"string"==typeof e)return P(e,t,a,i);let r=e;if(!Array.isArray(r)&&eD(r))return r;let s=new eN([]);return iW(r,s),s},R=(e,t)=>t.xmlMode||t._useHtmlParser2?tn(e,t):function(e){let t="length"in e?e:[e];for(let e=0;e<t.length;e+=1){let a=t[e];eD(a)&&Array.prototype.splice.call(t,e,1,...a.children)}let a="";for(let e=0;e<t.length;e+=1){var i;a+=(i=t[e],function e(t,a){return a.treeAdapter.isElementNode(t)?function(t,a){let i=a.treeAdapter.getTagName(t);return`<${i}${function(e,{treeAdapter:t}){let a="";for(let i of t.getAttrList(e)){if(a+=" ",i.namespace)switch(i.namespace){case er.XML:a+=`xml:${i.name}`;break;case er.XMLNS:"xmlns"!==i.name&&(a+="xmlns:"),a+=i.name;break;case er.XLINK:a+=`xlink:${i.name}`;break;default:a+=`${i.prefix}:${i.name}`}else a+=i.name;a+=`="${sR(i.value)}"`}return a}(t,a)}>${a.treeAdapter.isElementNode(t)&&a.treeAdapter.getNamespaceURI(t)===er.HTML&&sj.has(a.treeAdapter.getTagName(t))?"":`${function(t,a){let i="",r=a.treeAdapter.isElementNode(t)&&a.treeAdapter.getTagName(t)===eo.TEMPLATE&&a.treeAdapter.getNamespaceURI(t)===er.HTML?a.treeAdapter.getTemplateContent(t):t,s=a.treeAdapter.getChildNodes(r);if(s)for(let t of s)i+=e(t,a);return i}(t,a)}</${i}>`}`}(t,a):a.treeAdapter.isTextNode(t)?function(e,t){let{treeAdapter:a}=t,i=a.getTextNodeContent(e),r=a.getParentNode(e),s=r&&a.isElementNode(r)&&a.getTagName(r);return s&&a.getNamespaceURI(r)===er.HTML&&r_(s,t.scriptingEnabled)?i:sM(i)}(t,a):a.treeAdapter.isCommentNode(t)?function(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}(t,a):a.treeAdapter.isDocumentTypeNode(t)?function(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}(t,a):""}(i,{...sF,...sH}))}return a}(e),function e(t,a,i=!0){if(null==t)throw Error("cheerio.load() expects a string");let r={...eg,...eE(a)},s=D(t,r,i,null);class n extends i4{_make(e,t){let a=o(e,t);return a.prevObject=this,a}_parse(e,t,a,i){return D(e,t,a,i)}_render(e){return R(e,this.options)}}function o(e,t,a=s,i){var l;if(e&&t0(e))return e;let c={...r,...eE(i)},u="string"==typeof a?[D(a,c,!1,null)]:"length"in a?a:[a],d=t0(u)?u:new n(u,null,c);if(d._root=d,!e)return new n(void 0,d,c);
5let h="string"==typeof e&&t3(e)?D(e,c,!1,null).children:(l=e).name||"root"===l.type||"text"===l.type||"comment"===l.type?[e]:Array.isArray(e)?e:void 0,m=new n(h,d,c);if(h)return m;if("string"!=typeof e)throw Error("Unexpected type of selector");let _=e,p=t?"string"==typeof t?t3(t)?new n([D(t,c,!1,null)],d,c):(_=`${t} ${_}`,d):t0(t)?t:new n(Array.isArray(t)?t:[t],d,c):d;return p?p.find(_):m}return Object.assign(o,tJ,{load:e,_root:s,_options:r,fn:n.prototype,prototype:n.prototype}),o})([]),{contains:s6}=tJ,{merge:s8}=tJ,{parseHTML:s7}=tJ,{root:s9}=tJ;var ne={};let nt={stripTags:!1,ellipsis:"...",decodeEntities:!1,byWords:!1,excludes:"",reserveLastWord:!1,trimTheOnlyWord:!1,keepWhitespaces:!1},na=/\ud83c[\udffb-\udfff](?=\ud83c[\udffb-\udfff])|(?:[^\ud800-\udfff][\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]?|[\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]|\ud83c[\udffb-\udfff])?)*/g,ni={setup(e,t){switch(typeof e){case"object":t=e;break;case"number":"object"==typeof t?t.length=e:t={length:e}}let a=this.extend(t,nt);a.excludes&&(Array.isArray(a.excludes)||(a.excludes=[a.excludes]),a.excludes=a.excludes.join(",")),this.options=a,this.limit=a.length,this.ellipsis=a.ellipsis,this.keepWhitespaces=a.keepWhitespaces,this.reserveLastWord=a.reserveLastWord,this.trimTheOnlyWord=a.trimTheOnlyWord},extend(e,t){for(let a in null==e&&(e={}),t){let i=t[a];null==e[a]&&(e[a]=i)}return e},isBlank:e=>" "===e||"\f"===e||"\n"===e||"\r"===e||" "===e||"\v"===e||"Â "===e||"\u2028"===e||"\u2029"===e,truncate(e,t){this.keepWhitespaces||(e=e.replace(/\s+/g," "));let a=this.options.byWords,i=e.match(na),r=null===i?[]:i,s=null===i?0:r.length,n=0,o=0,l=a,c=!1;for(;n<s;)if(c=this.isBlank(r[n++]),!a||l!==c){if(o===this.limit){if(l&&c){l=c;continue}--n;break}a?c||++o:c&&l||++o,l=c}if(this.limit-=o,this.limit)return e;{let i;return(i=a?e.substr(0,n):this.substr(r,n))===e?t?e:e+this.ellipsis:i+this.ellipsis}},substr(e,t){let a=e.slice(0,t).join("");if(!this.reserveLastWord||e.length===t)return a;let i=e.slice(t-1,t+1).join("");if(/\W/.test(i))return a;if("number"==typeof this.reserveLastWord&&this.reserveLastWord<0){let e=a.replace(/\w+$/,"");if(0!==e.length||a.length!==this.options.length)return e;if(this.trimTheOnlyWord)return a}let r=!0!==this.reserveLastWord&&this.reserveLastWord>0?this.reserveLastWord:10,s=e.slice(t).join("").match(/(\w+)/);return a+(s?s[1]:"").substr(0,r)}},nr=function(e,t,a){let i;if(ni.setup(t,a),!e||isNaN(ni.limit)||ni.limit<=0||ni.limit===1/0)return e;let r=(i=e&&e.contains&&e.html&&e.parseHTML&&1?e:s5.load(`${e}`,{decodeEntities:ni.options.decodeEntities},!1)).root();if(ni.options.excludes&&r.find(ni.options.excludes).remove(),ni.options.stripTags)return ni.truncate(r.text());let s=function(e,t=!0){let a=e.contents(),r=a.length-1;return a.each(function(e){switch(this.type){case"text":if(!ni.limit)return void i(this).remove();this.data=ni.truncate(i(this).text(),t&&e===r);break;case"tag":if(ni.limit)return s(i(this),t&&e===r);i(this).remove();break;default:return i(this).remove()}})};return s(r),r.html()};nr.setup=(e={})=>Object.assign(nt,e),ne=nr,e.s(["default",0,function({rawHtml:e,maxLength:t,returnTotal:a=!1}){if(!e?.trim())return a?0:null;if(a)return ne(e).length;let i=t?ne(e,t):e;return i?(0,ef.jsx)("span",{dangerouslySetInnerHTML:{__html:i}}):null}],64887)},586192,e=>{e.v({"blink-animation":"LeerFragmentoVisor-module-scss-module__ckBu1q__blink-animation",burgerContainer:"LeerFragmentoVisor-module-scss-module__ckBu1q__burgerContainer",buttonsActions:"LeerFragmentoVisor-module-scss-module__ckBu1q__buttonsActions",buttonsContainer:"LeerFragmentoVisor-module-scss-module__ckBu1q__buttonsContainer",closeBtn:"LeerFragmentoVisor-module-scss-module__ckBu1q__closeBtn",closeBtn__icon:"LeerFragmentoVisor-module-scss-module__ckBu1q__closeBtn__icon",container:"LeerFragmentoVisor-module-scss-module__ckBu1q__container",content:"LeerFragmentoVisor-module-scss-module__ckBu1q__content",content__fragmento:"LeerFragmentoVisor-module-scss-module__ckBu1q__content__fragmento",content__inner:"LeerFragmentoVisor-module-scss-module__ckBu1q__content__inner",content__libroFooter:"LeerFragmentoVisor-module-scss-module__ckBu1q__content__libroFooter",darkMode:"LeerFragmentoVisor-module-scss-module__ckBu1q__darkMode",fontBigger:"LeerFragmentoVisor-module-scss-module__ckBu1q__fontBigger",fontHandlerBtn:"LeerFragmentoVisor-module-scss-module__ckBu1q__fontHandlerBtn",fontHandlerSubmenu:"LeerFragmentoVisor-module-scss-module__ckBu1q__fontHandlerSubmenu",fontHandlerWrapper:"LeerFragmentoVisor-module-scss-module__ckBu1q__fontHandlerWrapper",fontMedium:"LeerFragmentoVisor-module-scss-module__ckBu1q__fontMedium",fontSmaller:"LeerFragmentoVisor-module-scss-module__ckBu1q__fontSmaller",footer:"LeerFragmentoVisor-module-scss-module__ckBu1q__footer",footer__buyBtn:"LeerFragmentoVisor-module-scss-module__ckBu1q__footer__buyBtn",footer__inner:"LeerFragmentoVisor-module-scss-module__ckBu1q__footer__inner",footer__isVisible:"LeerFragmentoVisor-module-scss-module__ckBu1q__footer__isVisible",header:"LeerFragmentoVisor-module-scss-module__ckBu1q__header",header__autores:"LeerFragmentoVisor-module-scss-module__ckBu1q__header__autores",header__buttonsWrapper:"LeerFragmentoVisor-module-scss-module__ckBu1q__header__buttonsWrapper",header__inner:"LeerFragmentoVisor-module-scss-module__ckBu1q__header__inner",header__isNotVisible:"LeerFragmentoVisor-module-scss-module__ckBu1q__header__isNotVisible",header__isVisible:"LeerFragmentoVisor-module-scss-module__ckBu1q__header__isVisible",header__logo:"LeerFragmentoVisor-module-scss-module__ckBu1q__header__logo",header__title:"LeerFragmentoVisor-module-scss-module__ckBu1q__header__title",header__titleWrapper:"LeerFragmentoVisor-module-scss-module__ckBu1q__header__titleWrapper",iconButton:"LeerFragmentoVisor-module-scss-module__ckBu1q__iconButton",jellybook:"LeerFragmentoVisor-module-scss-module__ckBu1q__jellybook",jellybookContainer:"LeerFragmentoVisor-module-scss-module__ckBu1q__jellybookContainer",libroFooter:"LeerFragmentoVisor-module-scss-module__ckBu1q__libroFooter",libroFooter__buyButton:"LeerFragmentoVisor-module-scss-module__ckBu1q__libroFooter__buyButton",libroFooter__guardarFavorito:"LeerFragmentoVisor-module-scss-module__ckBu1q__libroFooter__guardarFavorito",libroFooter__libro:"LeerFragmentoVisor-module-scss-module__ckBu1q__libroFooter__libro",libroFooter__libroAutores:"LeerFragmentoVisor-module-scss-module__ckBu1q__libroFooter__libroAutores",libroFooter__libroInner:"LeerFragmentoVisor-module-scss-module__ckBu1q__libroFooter__libroInner",libroFooter__libroPortada:"LeerFragmentoVisor-module-scss-module__ckBu1q__libroFooter__libroPortada",libroFooter__libroText:"LeerFragmentoVisor-module-scss-module__ckBu1q__libroFooter__libroText",libroFooter__libroTitle:"LeerFragmentoVisor-module-scss-module__ckBu1q__libroFooter__libroTitle",libroFooter__subtitle:"LeerFragmentoVisor-module-scss-module__ckBu1q__libroFooter__subtitle",libroFooter__title:"LeerFragmentoVisor-module-scss-module__ckBu1q__libroFooter__title",lightMode:"LeerFragmentoVisor-module-scss-module__ckBu1q__lightMode",mainModal:"LeerFragmentoVisor-module-scss-module__ckBu1q__mainModal",modalRoot:"LeerFragmentoVisor-module-scss-module__ckBu1q__modalRoot",muestraFragmento:"LeerFragmentoVisor-module-scss-module__ckBu1q__muestraFragmento",useSansSerifFont:"LeerFragmentoVisor-module-scss-module__ckBu1q__useSansSerifFont",useSerifFont:"LeerFragmentoVisor-module-scss-module__ckBu1q__useSerifFont",wrapperFragmento:"LeerFragmentoVisor-module-scss-module__ckBu1q__wrapperFragmento"})},662095,e=>{e.v({"blink-animation":"LibroPortada-module-scss-module__2kTy7a__blink-animation",portada:"LibroPortada-module-scss-module__2kTy7a__portada",portada__image:"LibroPortada-module-scss-module__2kTy7a__portada__image"})},824526,81143,e=>{"use strict";var t=e.i(247167),a=e.i(843476),i=e.i(675244),r=e.i(657688);let s=e=>e?encodeURI((t.default.env.IMAGE_HOST||"https://pdlibrosmex.cdnstatics2.com")+e?.path):"",n=e=>
5{switch(e){case"desktop-xxxl":return"(min-width:1800px)";case"desktop-xxl":return"(min-width:1600px)";case"desktop-xl":return"(min-width:1320px)";case"desktop-l":return"(min-width:1110px)";case"desktop":return"(min-width:1024px)";case"breakpoint":return"(min-width:768px)";case"tablet":return"(min-width:540px)";case"mobile":return"(min-width:380px)";case"x-mobile":return"(max-width:380px)";default:return e}};e.s(["default",0,function({img:e,thumbKey:t,imgSources:o,sources:l,imgSourcesDesktop:c,sourcesDesktop:u,alt:d=" Planeta de Libros",className:h,placeholder:m,priority:_=!1,isTagging:p=!0,nombreContenido:f="Imagen",id:g}){let b,E,v=e?.original?.mimeType,A=t&&e?.thumbs?.[t]?e?.thumbs?.[t]:e&&e.original?e.original:c&&c.original?c.original:m||null;if(!A)return(0,a.jsx)(a.Fragment,{});if("image/svg+xml"===v){let{props:{...e}}=(0,r.getImageProps)({src:s(A),alt:d,width:A?.width,height:A?.height,priority:_,unoptimized:!0});return(0,a.jsx)(i.default,{id:g,...h&&{className:h},isTagging:p,nombreContenido:f,children:(0,a.jsx)("img",{...e})})}let T=o||e,{props:{...C}}=(0,r.getImageProps)({src:s(A),alt:d,width:A?.width,height:A?.height,priority:_,unoptimized:!0}),y=_&&l&&l.length>0?(b=l[0],(E=T?.thumbs?.[b.thumbKey])?s(E):null):null,x=_&&l&&l.length>0?n(l[0].media):null;return(0,a.jsxs)(a.Fragment,{children:[y&&(0,a.jsx)("link",{rel:"preload",as:"image",href:y,fetchPriority:"high",...x?{media:x}:{}}),(0,a.jsxs)(i.default,{id:g,...h&&{className:h},isTagging:p,nombreContenido:f,children:[u?.map((e,t)=>{let{props:{srcSet:i,src:o,width:l,height:u}}=(0,r.getImageProps)({alt:d,width:c?.thumbs?.[e.thumbKey]?.width,height:c?.thumbs?.[e.thumbKey]?.height,src:s(c?.thumbs?.[e.thumbKey]),unoptimized:!0});return(0,a.jsx)("source",{media:n(e.media),width:l,height:u,srcSet:o},"sources_desktop"+t)}),l?.map((e,t)=>{if("original"===e.thumbKey&&T.original){let{props:{srcSet:i,src:o,width:l,height:c}}=(0,r.getImageProps)({alt:d,width:T?.original?.width,height:T?.original?.height,src:s(T?.original),unoptimized:!0});return(0,a.jsx)("source",{media:n(e.media),width:l,height:c,srcSet:o},"sources"+t)}if(T?.thumbs?.[e.thumbKey]){let{props:{srcSet:i,src:o,width:l,height:c}}=(0,r.getImageProps)({alt:d,width:T?.thumbs?.[e.thumbKey]?.width,height:T?.thumbs?.[e.thumbKey]?.height,src:s(T?.thumbs?.[e.thumbKey]),unoptimized:!0});return(0,a.jsx)("source",{media:n(e.media),width:l,height:c,srcSet:o},"sources"+t)}}),(0,a.jsx)("img",{...C,..._&&{fetchPriority:"high",loading:"eager"}})]})]})}],824526);let o={LIBRO_PORTADA:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/portada_2d.jpg",fileName:"portada_2d.jpg",width:380,height:564},LIBRO_PORTADA_3D:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/portada_3d.png",fileName:"portada_3d.png",width:333,height:390},AUDIO_LIBRO:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/audio_libro.jpg",fileName:"audio_libro.jpg",width:496,height:507},LIBRO_MINIATURA:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/miniatura_libro.jpg",fileName:"miniatura_libro.jpg",width:250,height:250},LIBRO_SELECCION:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/miniatura_libro.jpg",fileName:"miniatura_libro.jpg",width:100,height:150},CAROUSEL_LIBRO_DESKTOP:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/carrousel_libro_fondo_desktop.jpg",fileName:"carrousel_libro_fondo_desktop.jpg",width:1920,height:400},CAROUSEL_LIBRO_MOBILE:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/carrousel_libro_fondo_mobile.jpg",fileName:"carrousel_libro_fondo_mobile.jpg",width:450,height:400},CAROUSEL_BANNER:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/banner_carrousel_desktop.jpg",fileName:"banner_carrousel_desktop.jpg",width:1640,height:308},BANNER_DESKTOP:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/banner_desktop.jpg",fileName:"banner_desktop.jpg",width:1640,height:400},BANNER_MOBILE:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/banner_mobile.jpg",fileName:"banner_mobile.jpg",width:450,height:350},TEMATICA:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/tematica.jpg",fileName:"tematica.jpg",width:296,height:166},TEMATICA_MINIATURA:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/tematica_miniatura.jpg",fileName:"tematica_miniatura.jpg",width:240,height:160},SELECCION_EDITORIAL:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/seleccion_editorial.jpg",fileName:"tematica.jpg",width:400,height:300},COLECCION:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/colecciones.jpg",fileName:"colecciones.jpg",width:460,height:300},EDITORIAL:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/logo.png",f
5ileName:"logo.png",width:184,height:150},ARTICULO:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/articulo_miniatura.jpg",fileName:"articulo_miniatura.jpg",width:380,height:190},ARTICULO_DETALLE:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/articulo_detalle.jpg",fileName:"articulo_detalle.jpg",width:1640,height:280},ARTICULO_DESTACADO_BLOG:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/articulo_destacado_blog.jpg",fileName:"articulo_destacado_blog.jpg",width:1780,height:470},CATEGORIA_BLOG:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/categoria_blog.jpg",fileName:"categoria_blog.jpg",width:350,height:210},EVENTO:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/evento_miniatura.jpg",fileName:"evento_miniatura.jpg",width:380,height:240},EVENTO_DETALLE:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/evento_detalle.jpg",fileName:"evento_detalle.jpg",width:1780,height:470},USUARIO:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/usuario_comentarios.png",fileName:"usuario_comentarios.png",width:280,height:280},CANAL_VENTA:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/canal_venta.jpg",fileName:"canal_venta.jpg",width:301,height:76},MINIATURA_VIDEO:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/video_thumb.jpg",fileName:"video_thumb.jpg",width:354,height:220},PREMIO:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/premio.png",fileName:"premio.png",width:400,height:290},NEWSLETTER_MOBILE:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/newsletter_mobile.jpg",fileName:"newsletter_mobile.jpg",width:500,height:286},NEWSLETTER_DESKTOP:{path:"/placeholders/"+t.default.env.FOLDER_PLACEHOLDERS+"/newsletter_desktop.jpg",fileName:"newsletter_desktop.jpg",width:1920,height:569}};e.s(["IMAGEPLACEHOLDERS",0,o],81143)},484046,e=>{"use strict";var t=e.i(843476),a=e.i(662095),i=e.i(824526),r=e.i(81143),s=e.i(158521);e.s(["default",0,function({libro:e,variantTags:n="small",showTags:o=!0,className:l,variantListadoPage:c="",priority:u=!1,dictionaryLibro:d,translationsObj:h}){let m=(e.esNovedad||e.esBestSeller||e.esProximamente||e.esBookFilmRights||e.esImprescindible)&&o;return(0,t.jsxs)("div",{className:`${a.default.portada} ${m?a.default.hasTags:""} ${l||""}`,children:[o&&d&&(0,t.jsx)(s.default,{esImprescindible:e.esImprescindible,esNovedad:"listado-libros-novedades"!==c&&"novedades"!==c&&e.esNovedad,esBestSeller:"listado-libros-mas-vendidos"!==c&&"bestsellers"!==c&&"mas-vendidos"!==c&&e.esBestSeller,esProximamente:"listado-libros-proximamente"!==c&&"proximamente"!==c&&e.esProximamente,esBookFilmRights:e.esBookFilmRights,variant:n,dictionaryLibro:d}),"detail"===n?(0,t.jsx)(i.default,{img:e.imagenPortada,thumbKey:"d_295_510",sources:[{thumbKey:"d_360_620",media:"tablet"}],alt:h.portadaAlt+e.titulo,className:a.default.portada__image,placeholder:r.IMAGEPLACEHOLDERS.LIBRO_PORTADA,priority:u}):(0,t.jsx)(i.default,{img:e.imagenPortada,thumbKey:"m_175_310",sources:[{thumbKey:"d_295_510",media:"tablet"}],alt:h.portadaAlt+e.titulo,className:a.default.portada__image,placeholder:r.IMAGEPLACEHOLDERS.LIBRO_PORTADA,priority:u,isTagging:!1})]})}])},120744,e=>{e.v({autorNombreTruncado:"LibroAutores-module-scss-module__nyn1MW__autorNombreTruncado",autoresList:"LibroAutores-module-scss-module__nyn1MW__autoresList","blink-animation":"LibroAutores-module-scss-module__nyn1MW__blink-animation",link:"LibroAutores-module-scss-module__nyn1MW__link"})},691773,e=>{"use strict";var t=e.i(271645);e.s(["useIntersection",0,function(e){let[a,i]=(0,t.useState)(null),r=(0,t.useRef)(null);return{ref:(0,t.useCallback)(t=>{(r.current&&(r.current.disconnect(),r.current=null),null===t)?i(null):(r.current=new IntersectionObserver(([e])=>{i(e)},e),r.current.observe(t))},[e?.rootMargin,e?.root,e?.threshold]),entry:a}}])},385976,e=>{e.v({"blink-animation":"Title-module-scss-module__ny_X2G__blink-animation",moduloTitle:"Title-module-scss-module__ny_X2G__moduloTitle",paginaTitle:"Title-module-scss-module__ny_X2G__paginaTitle",seccionFichaTitle:"Title-module-scss-module__ny_X2G__seccionFichaTitle",seccionTitle:"Title-module-scss-module__ny_X2G__seccionTitle"})},482475,e=>{"use strict";var t=e.i(843476),a=e.i(385976),i=e.i(64887);e.s(["default",0,function({variant:e="modulo",title:r,etiquetaEncabezadoTitulo:s,className:n}){let o,l="";switch(o="string"==typeof r?(0,t.jsx)(i.default,{rawHtml:r}):r,e){case"pagina":l=`${a.default.paginaTitle} paginaTitle ${n||""}`;break;case"seccionFicha":l=`${a.default.seccionFichaTitle} seccionFichaTitle ${n||""}`;break;case"modulo":l=`${a.default.moduloTitle} moduloTitle ${n||""}`;break;case"seccion":l=`${a.default.seccionTitle} seccionTitle ${n||""}`}if(l)switch(s){case"p":return(0,t.jsx)("p",{className:`${l}`,children:o});case"h1":return(0,t.jsx)("h1",{className:`${l}`,children:o});case"h3":return(0,t.jsx)("h3",{className:`${l}`,children:o});default:return(0,t.jsx)("h2",{className:`${l}`,children:o})}return(0,t.jsx)(t.Fragment,{})}])},759017,e=>{e.v({active:"OpcionesCompra-module-scss-module__gVuouG__active","blink-animation":"OpcionesCompra-module-scss-module__gVuouG__blink-animation",btnCompraRapida:"OpcionesCompra-module-scss-module__gVuouG__bt
5nCompraRapida",btnFormato:"OpcionesCompra-module-scss-module__gVuouG__btnFormato",btnFormato__consultar:"OpcionesCompra-module-scss-module__gVuouG__btnFormato__consultar",btnFormato__especificacionesPresentacion:"OpcionesCompra-module-scss-module__gVuouG__btnFormato__especificacionesPresentacion",btnFormato__formato:"OpcionesCompra-module-scss-module__gVuouG__btnFormato__formato",btnFormato__precio:"OpcionesCompra-module-scss-module__gVuouG__btnFormato__precio",canalesVenta:"OpcionesCompra-module-scss-module__gVuouG__canalesVenta",canalesVenta__comprarBtn:"OpcionesCompra-module-scss-module__gVuouG__canalesVenta__comprarBtn",canalesVenta__logo:"OpcionesCompra-module-scss-module__gVuouG__canalesVenta__logo",canalesVenta__logoWrapper:"OpcionesCompra-module-scss-module__gVuouG__canalesVenta__logoWrapper",canalesVenta__tienda:"OpcionesCompra-module-scss-module__gVuouG__canalesVenta__tienda",current:"OpcionesCompra-module-scss-module__gVuouG__current",formatos__collection:"OpcionesCompra-module-scss-module__gVuouG__formatos__collection",formatos__label:"OpcionesCompra-module-scss-module__gVuouG__formatos__label"})},399358,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(618566),r=e.i(978877),s=e.i(759017),n=e.i(522016),o=e.i(24721);e.s(["default",0,function({name:e="",url:l="",libro:c,disabled:u,children:d}){let h=(0,i.usePathname)(),{pageData:m}=(0,r.usePageData)();return(0,t.jsx)(n.default,{prefetch:!1,href:`${l}`,className:s.default.canalesVenta__tienda,rel:"sponsored,nofollow",target:"_blank",onClick:t=>{if(u)t.preventDefault();else{let t=[];c?.autores?.map(e=>{t.push(e.nombre)}),(0,a.fichaLibroComprarEvent)({urlPagina:h,tipoPagina:(0,a.convertPageType)(m.tipoPagina),idTransaccion:Math.floor(46656*Math.random()),afiliado:e,valor:c.precioNumero,impuesto:"0",envio:"0",moneda:"EUR",items:[{item_name:c.titulo,item_id:c.idPlaneta,price:c.precioNumero,item_brand:c.nombreEditorial,item_category:c?.tematicaPrincipal?.nombre,item_category2:c.nombresSubtematicas,item_category3:c.nombreColeccion,item_category4:t,item_variant:c.presentacion,quantity:1}]}),(0,o.EinsteinComprar)(c.idPlaneta,c.precioNumero)}},children:d})}])},11926,e=>{"use strict";var t=e.i(843476),a=e.i(618566),i=e.i(978877),r=e.i(759017),s=e.i(522016);e.s(["default",0,function({item:e,activeId:n,setActiveId:o,setSelectLibro:l,children:c}){let u=(0,a.usePathname)(),{pageData:d}=(0,i.usePageData)(),h=t=>{l&&(t.preventDefault(),l(t=>({...t,titulo:e?.titulo?e.titulo:t.titulo,imagenPortada:e?.imagenPortada?e?.imagenPortada:t.imagenPortada})))};return o?(0,t.jsx)("button",{className:`${r.default.btnFormato} ${n===e.idPlaneta?r.default.current:""}`,onClick:t=>{o(e.idPlaneta),h(t)},children:c}):(0,t.jsx)(s.default,{prefetch:!1,href:`https://www.planetadelibros.com.mx${u}?soporte=${e.idPlaneta}`,className:`${r.default.btnFormato} ${n===e.idPlaneta?r.default.current:""}`,onClick:h,children:c})}])},387618,e=>{"use strict";var t=e.i(843476),a=e.i(759017),i=e.i(824526),r=e.i(936540),s=e.i(399358);function n({name:e="",logo:o,url:l="",libro:c,disabled:u,textoComprar:d}){return l?(0,t.jsx)(s.default,{name:e,url:l,libro:c,disabled:u,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:a.default.canalesVenta__logoWrapper,children:(0,t.jsx)(i.default,{id:"Casa del Libro"===e?"picture-canal-venta-casa-del-libro":void 0,img:o,className:a.default.canalesVenta__logo,alt:`Canal venta ${e}`})}),(0,t.jsx)(r.default,{className:a.default.canalesVenta__comprarBtn,id:"Casa del Libro"===e?"btn-canal-venta-casa-del-libro":void 0,disabled:u,size:"small",variant:"buy",children:d})]})}):null}var o=e.i(11926),l=e.i(496044);e.s(["default",0,function({formatos:e,libro:i,setActiveId:r,activeId:s,textoComprar:c,textoConsultar:u,textoFormatos:d,setSelectLibro:h}){return e&&e?.length!==0?(0,t.jsx)("div",{className:a.default.opcionesCompra__wrapper,children:(0,t.jsxs)("div",{className:a.default.formatos,children:[(0,t.jsxs)("p",{className:a.default.formatos__label,children:[d,":"]}),(0,t.jsx)("div",{className:a.default.formatos__collection,children:e?.map((e,d)=>{if(null!==e.formato)return(0,t.jsxs)("div",{className:`${a.default.formatoWrapper} ${s===e.idPlaneta?a.default.active:""}`,children:[(0,t.jsx)(o.default,{activeId:s,item:e,setActiveId:r,setSelectLibro:h,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:a.default.btnFormato__formato,children:[e.formato,e.especificacionesPresentacion&&(0,t.jsx)("span",{className:a.default.btnFormato__especificacionesPresentacion,children:e.especificacionesPresentacion})]}),""===e.precio?(0,t.jsx)("span",{className:a.default.btnFormato__consultar,children:u}):(0,t.jsx)("span",{className:a.default.btnFormato__precio,children:e.precio})]})}),(0,t.jsxs)("div",{className:a.default.canalesVenta,children:[e.botonCompraRapida&&(0,t.jsx)(l.default,{className:a.default.btnCompraRapida,targetBlank:!0,rel:e.botonCompraRapida.rel??void 0,path:e.botonCompraRapida.url,disabled:e.disabled,children:e.botonCompraRapida.texto}),e?.enlacesDeVenta?.map((a,r)=>
5(0,t.jsx)(n,{name:a.name,logo:a.logo,url:a.url,libro:i,disabled:e.disabled,textoComprar:c},r))]})]},d)})})]})}):(0,t.jsx)(t.Fragment,{})}],387618)},812318,e=>{e.v({"blink-animation":"MiniaturaLibroModal-module-scss-module__tzyJVa__blink-animation",miniaturaLibro:"MiniaturaLibroModal-module-scss-module__tzyJVa__miniaturaLibro",miniaturaLibro__autores:"MiniaturaLibroModal-module-scss-module__tzyJVa__miniaturaLibro__autores",miniaturaLibro__portada:"MiniaturaLibroModal-module-scss-module__tzyJVa__miniaturaLibro__portada",miniaturaLibro__texto:"MiniaturaLibroModal-module-scss-module__tzyJVa__miniaturaLibro__texto",miniaturaLibro__titulo:"MiniaturaLibroModal-module-scss-module__tzyJVa__miniaturaLibro__titulo"})},781190,e=>{e.v({"blink-animation":"LibroTematicaPrincipal-module-scss-module__Dn0E1q__blink-animation",tematicaPrincipal:"LibroTematicaPrincipal-module-scss-module__Dn0E1q__tematicaPrincipal",tematicaPrincipal__wrapper:"LibroTematicaPrincipal-module-scss-module__Dn0E1q__tematicaPrincipal__wrapper"})},709484,653943,e=>{"use strict";var t=e.i(843476),a=e.i(120744),i=e.i(391099);e.s(["default",0,function({autores:e,className:r,link:s=!0,maxAutores:n=100,maxChars:o=17}){return(0,t.jsxs)("ul",{className:`${a.default.autoresList} ${r||""}`,children:[e.map((e,r)=>{if(r<n)if(e.nombreVisible)return(0,t.jsx)("li",{children:e.fichaVisible&&s?(0,t.jsx)(i.default,{url:e.url,classname:a.default.link,children:(0,t.jsx)("span",{className:a.default.autorNombreTruncado,title:e.nombre,style:{"--autor-max-width":`${o}ch`},children:e.nombre})}):(0,t.jsx)(t.Fragment,{children:e.nombre})},e.id);else return(0,t.jsx)("span",{},e.id)}),e.length>n&&(0,t.jsx)("li",{children:"..."})]})}],709484);var r=e.i(781190),s=e.i(522016);e.s(["default",0,function({tematica:e,className:a,link:i=!0}){return(0,t.jsx)("div",{className:`${r.default.tematicaPrincipal__wrapper} ${a||""}`,children:i?(0,t.jsx)(s.default,{prefetch:!1,href:`${e.url}`,className:r.default.tematicaPrincipal,children:e.nombre}):(0,t.jsx)("span",{className:r.default.tematicaPrincipal,children:e.nombre})})}],653943)},114124,e=>{e.v({"blink-animation":"iconLoader-module-scss-module__BpfJmW__blink-animation",loader:"iconLoader-module-scss-module__BpfJmW__loader",rotation:"iconLoader-module-scss-module__BpfJmW__rotation"})},389649,e=>{"use strict";var t=e.i(843476),a=e.i(114124),i=e.i(970496);e.s(["default",0,function({className:e}){let r=(0,i.classNames)(a.default.loader,e);return(0,t.jsx)("span",{className:r})}])},305181,e=>{"use strict";var t=e.i(843476),a=e.i(936540),i=e.i(271645),r=e.i(330580),s=e.i(88205),n=e.i(970496),o=e.i(208549),l=e.i(387618),c=e.i(812318),u=e.i(484046),d=e.i(709484),h=e.i(653943);async function m(e){return await fetch(`https://proapi.planetadelibros.com.mx/modulo/libros/formatos-precios/${e}`)}e.i(247167);var _=e.i(389649);function p({tituloModal:e,libro:a,activeId:r,setActiveId:f,textoComprar:g,textoConsultar:b,textoFormatos:E,closeParentModal:v,translationsObj:A,defaultDict:T}){let[C,y]=(0,i.useState)(a),[x,S]=(0,i.useTransition)(),N=async()=>{if(!C||!C?.idPlaneta)return null;let e=C?.idPlaneta;S(async()=>{let t=await m(e),a=await t?.json();y({...C,formatos:a?.formatosPrecios||[]})})};return((0,i.useEffect)(()=>{N()},[]),C)?(0,t.jsxs)("div",{className:(0,n.classNames)("ModalLibroFavorito",s.default.modal2Columnas),children:[(0,t.jsx)(o.default,{defaultDict:T,titleId:`comprar_titulo_${a.idPlaneta}`,closeAction:e=>{e.stopPropagation(),v()},className:s.default.modal2Columnas__cabeceraMobile,children:(0,t.jsx)("div",{className:s.default.modal__headerWithIcon,children:(0,t.jsx)("span",{className:s.default.modal__headerWithIcon__text,children:e})})}),(0,t.jsxs)("div",{className:s.default.modal2Columnas__inner,children:[(0,t.jsx)("div",{className:`${s.default.modal2Columnas__miniatura} ${s.default.modal2Columnas__miniatura__fullPadding}`,children:(0,t.jsxs)("div",{className:c.default.miniaturaLibro,children:[(0,t.jsx)("div",{className:c.default.miniaturaLibro__portada,children:(0,t.jsx)(u.default,{libro:C,showTags:!1,variantTags:"detail",translationsObj:A})}),(0,t.jsxs)("div",{className:c.default.miniaturaLibro__texto,children:[(0,t.jsx)("p",{className:c.default.miniaturaLibro__titulo,children:C.titulo}),C.autores&&(0,t.jsx)(d.default,{autores:C.autores,link:!1,className:c.default.miniaturaLibro__autores}),C.tematicaPrincipal&&(0,t.jsx)(h.default,{tematica:C.tematicaPrincipal,link:!1})]})]})}),(0,t.jsxs)("div",{className:s.default.modal2Columnas__content,children:[(0,t.jsx)(o.default,{defaultDict:T,closeAction:e=>{e.stopPropagation(),v()},className:s.default.modal2Columnas__cabeceraDesktop,children:(0,t.jsx)("div",{className:s.default.modal__headerWithIcon,children:(0,t.jsx)("span",{className:s.default.modal__headerWithIcon__text,children:e})})}),(0,t.jsx)("div",{children:x?(0,t.jsx)(_.default,{}):(0,t.jsx)(l.default,{activeId:r,setActiveId:f,formatos:C?.formatos,libro:C,textoComprar:g,textoConsultar:b,textoFormatos:E,setSelectLibro:y})})]})]})]}):null}var f=e.i(539912),g=e.i(10655),b=e.i(978877),E=e.i(283231),v=e.i(618566);e.s(["default",0,function({libro:e,size:s="extra-small",textoComprar:n,textoConsultar:o,textoFormatos:l,tituloModal:c,tituloBoton:u,translationsObj:d,position:h,btnClassName:m="",gtmCustomTipoPagina:_="",gtmFragmentType:A,defaultDict:T}
5){let{refModal:C,openModal:y,closeModal:x,isOpen:S}=(0,r.default)(),[N,w]=(0,i.useState)(e?.idPlaneta||""),I=(0,E.useModuleGAMetadata)(),{pageData:k}=(0,b.usePageData)(),L=(0,v.usePathname)(),O=_||(A?"fragment":(0,g.convertPageType)(k.tipoPagina));return(0,t.jsxs)("div",{className:"LibroButtonBuyWithModal",children:[(0,t.jsx)(a.default,{className:m,onClick:()=>{y();let t=[];e?.autores?.map(e=>{t.push(e.nombre)}),(0,g.anadirCarritoEvent)({tipoPagina:O,urlPagina:L,items:[{item_name:e.titulo,item_id:e.idPlaneta,price:e.precioNumero,item_brand:e.nombreEditorial,item_category:e.tematicaPrincipal?.nombre,item_category2:e.nombresSubtematicas,item_category3:e.nombreColeccion,item_category4:t,item_variant:e.presentacion,index:h,quantity:1}],nombreModuloPadre:I?.metadatosModulo?.nombre||"",idModuloPadre:I?.metadatosModulo?.id||"",fragmentType:A})},variant:"buy",size:s,ariaLabel:`${u} ${e.titulo}`,children:u}),(0,t.jsx)(f.Modal,{isOpen:S,ref:C,handleClose:x,closeOutsideClose:!1,id:`comprar_${e?.id}`,variant:"no-padding",ariaModal:!0,ariaLabelledBy:`comprar_titulo_${e.idPlaneta}`,children:(0,t.jsx)(p,{defaultDict:T,tituloModal:c,libro:e,activeId:N,setActiveId:w,textoFormatos:l,textoConsultar:o,textoComprar:n,closeParentModal:x,translationsObj:d})})]})}],305181)},876422,e=>{"use strict";var t,a,i,r,s,n,o=e.i(843476),l=e.i(496044),c=e.i(137963);e.i(247167);var u=e.i(64887),d=e.i(586192),h=e.i(271645),m=e.i(484046),_=e.i(709484),p=e.i(10655);function f(){return(f=Object.assign.bind()).apply(null,arguments)}let g=function(e){return h.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 252.1 53"},e),h.createElement("path",{d:"M53.31 38.06H47.8V9.86h6.94c6.14 0 8.78 3.36 8.78 9.22s-2.64 9.22-8.78 9.22h-1.43zm.89-14.23c3 0 3.94-1.3 3.94-4.7s-.89-4.8-3.94-4.8h-.89v9.49h.89Zm16.12-14v28.2H65V9.86Zm15 23.77c0 .58.14.85.68.85a2 2 0 0 0 .8-.18v3.23a4.66 4.66 0 0 1-2.77.85 3.42 3.42 0 0 1-3.54-2.55 4.28 4.28 0 0 1-4.12 2.55 4.38 4.38 0 0 1-4.7-4.75c0-3.26 2.33-4.74 5.37-6.58l3.09-1.88v-.8C80.17 23 80 22 78.74 22s-1.52 1.17-1.52 2.42v1.07h-4.89v-1.2c0-3.77 2.06-6.36 6.54-6.36s6.49 2.46 6.49 6.85v8.9Zm-5.19-4.7-1.34 1c-1.17.81-2.06 1.48-2.06 2.87a1.49 1.49 0 0 0 1.52 1.7c1.26 0 1.88-1.35 1.88-3v-2.54Zm13.21 9.13H88.1v-19.8h5.28v2.19a4.49 4.49 0 0 1 4.3-2.55c3.53 0 4.65 2.64 4.65 5.24v15h-5.28V24.58c0-1.43-.49-2.23-1.65-2.23-1.44 0-2 1.43-2 3.26ZM104 27.68c0-5.87 2.06-9.81 7.21-9.81s6.93 3.86 6.93 9.72v1.79h-8.86v.8c0 2.65.45 4.17 2 4.17 1.35 0 1.89-1.08 1.89-3.09v-.45H118v.36c0 4.43-2.38 7.25-6.63 7.25-5 0-7.38-3.5-7.38-9.81v-.93Zm7.2-5.68c-1.48 0-1.93 1.56-1.93 4.29H113c0-2.78-.32-4.29-1.8-4.29m9.18-.05h-1.66v-3.23l.58-.09c1.8-.31 2.15-1.38 2.51-3.27l.49-2.36h3.18v5.24h3.22v3.66h-3.22v10.48c0 1.11.41 1.61 1.26 1.61a4.2 4.2 0 0 0 2.33-.72V37a6.9 6.9 0 0 1-4.3 1.38c-2.64 0-4.39-1.25-4.39-4.52V21.9Zm23.28 11.73c0 .58.13.85.67.85a1.9 1.9 0 0 0 .8-.18v3.23a4.63 4.63 0 0 1-2.77.85 3.43 3.43 0 0 1-3.54-2.55 4.27 4.27 0 0 1-4.12 2.55 4.38 4.38 0 0 1-4.7-4.75c0-3.26 2.33-4.74 5.38-6.58l3.08-1.88v-.8c0-1.35-.17-2.42-1.43-2.42s-1.52 1.17-1.52 2.42v1.07h-4.88v-1.2c0-3.77 2.06-6.36 6.53-6.36s6.49 2.46 6.49 6.85v8.9Zm-5.2-4.7-1.34 1c-1.17.81-2.06 1.48-2.06 2.87a1.49 1.49 0 0 0 1.52 1.7c1.26 0 1.88-1.35 1.88-3v-2.62Zm18.23-19.12h2.15v28.2h-2.15v-2.24a3.51 3.51 0 0 1-3.4 2.6c-3.13 0-4.61-3.09-4.61-9.63v-.89c0-6.54 1.47-9.63 4.61-9.63a3.52 3.52 0 0 1 3.4 2.6Zm0 15.67c0-3.41-1.07-5.56-2.86-5.56-2.2 0-3 2.56-3 7.66v1.43c0 5.1.76 7.66 3 7.66 1.79 0 2.86-2.15 2.86-5.56Zm4.39 2.47c0-6.5 1.56-9.68 5-9.68s4.65 3 4.65 9.4v1h-7.47v.54c0 4.92.94 7.43 2.91 7.43s2.64-1.88 2.64-5.77v-.36h1.88V31c0 5-1.61 7.43-4.52 7.43-3.58 0-5.06-3.44-5.06-9.62V28Zm5-7.93c-2 0-2.82 2.91-2.82 7.07h5.5c-.03-4.21-.7-7.14-2.71-7.14Zm13.5-10.21v23.63h7.56v4.57H174V9.86Zm9.13.4H194v5.55h-5.28Zm5.28 8v19.8h-5.28V18.23Zm7.43 2.24a4.29 4.29 0 0 1 4-2.6c3.9 0 5.28 3.5 5.28 9.05v2.46c0 5.55-1.38 9-5.28 9a4.28 4.28 0 0 1-4-2.59l-.42 2.24h-4.84V9.86h5.28Zm0 10.11c0 2.11.54 3.36 2 3.36s1.93-1.3 1.93-3.85V26.2c0-2.6-.59-3.85-1.93-3.85s-2 1.25-2 3.35Zm21.45-7.25a7 7 0 0 0-2.2-.35c-2.28 0-2.86 1.61-2.86 4v11.1h-5.28V18.23h5.28v2.68a3.59 3.59 0 0 1 3.76-2.91 3.9 3.9 0 0 1 1.43.27Zm15 5.28c0 5.87-2.1 9.81-7.25 9.8
51s-7.29-3.94-7.29-9.81v-.94c0-5.86 2.1-9.8 7.29-9.8s7.25 3.94 7.25 9.8Zm-9.22 1.53c0 2.82.45 4.16 2 4.16s1.92-1.35 1.92-4.16v-4c0-2.82-.44-4.16-1.92-4.16s-2 1.35-2 4.16Zm14.64 1.25V32c0 1.52.72 2.46 2.1 2.46a1.47 1.47 0 0 0 1.61-1.63c0-.85-.4-1.39-1.38-1.88l-2.37-1.08c-2.47-1.07-4.35-2.73-4.35-6s2.38-6 6.36-6c4.17 0 6.4 2.38 6.4 6.14v.85h-4.56v-.59c0-1.47-.32-2.46-1.7-2.46a1.44 1.44 0 0 0-1.53 1.61 2 2 0 0 0 1.25 1.88l2.69 1.26c2.37 1.12 4.25 2.64 4.25 5.91 0 3.76-2.59 6-6.58 6-4.16 0-6.71-2.24-6.71-6.22v-.8h4.52ZM23 39.45l7.51-.35L28.4 3.29l-24 2.16-1.69-.92 22.34-2.85L24.42 0 .36 3.29 0 38l4 2.34 4.8-.22 1.5 4.93L7.2 53h6.35l-3.08-2.12 4.13-5.52-1.6-5.44 5.57-.26 1.71 4.24-3.69 9.1h6.34l-3.17-2.11 4.81-6.69Z",style:{fill:"#0f81e4"}}))};var b=e.i(446569);function E(){return(E=Object.assign.bind()).apply(null,arguments)}let v=function(e){return h.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 22 25"},e),t||(t=h.createElement("path",{fill:"currentColor",d:"M8.355 19.983V4.248h-.846q-.981 0-1.636.089-.627.088-.955.384-.3.267-.327.799l-.273 3.253H2V2h18v6.773h-2.346L17.41 5.52q-.027-.532-.354-.799-.3-.295-.955-.384a12 12 0 0 0-1.636-.09h-.846v15.736q0 .651.437.858.464.207 1.172.207h.41V23h-9.3v-1.952h.408q.71 0 1.146-.207.464-.207.464-.858"})))};function A(){return(A=Object.assign.bind()).apply(null,arguments)}let T=function(e){return h.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 22 25"},e),a||(a=h.createElement("path",{fill:"currentColor",d:"M13.647 23V6.444H20V2H2v4.444h6.384V23z"})))};function C(){return(C=Object.assign.bind()).apply(null,arguments)}let y=function(e){return h.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 25"},e),i||(i=h.createElement("path",{fill:"currentColor",d:"M12 0c.473 0 .857.4.857.893v1.786c0 .493-.384.892-.857.892s-.857-.4-.857-.892V.893C11.143.4 11.527 0 12 0M12 19.643c-5.198 0-6.913-1.786-6.857-7.143S6.802 5.357 12 5.357s6.857 1.786 6.857 7.143S17.2 19.643 12 19.643M12.857 22.321c0-.493-.384-.892-.857-.892s-.857.4-.857.892v1.786c0 .493.384.893.857.893s.857-.4.857-.893zM24 12.5c0 .493-.384.893-.857.893h-1.714c-.474 0-.858-.4-.858-.893s.384-.893.858-.893h1.714c.473 0 .857.4.857.893M2.571 13.393c.474 0 .858-.4.858-.893s-.384-.893-.858-.893H.857c-.473 0-.857.4-.857.893s.384.893.857.893zM2.822 2.94a.833.833 0 0 1 1.213 0l1.212 1.263a.92.92 0 0 1 0 1.262.833.833 0 0 1-1.212 0L2.822 4.203a.92.92 0 0 1 0-1.263M4.035 22.43a.833.833 0 0 1-1.213 0 .92.92 0 0 1 0-1.263l1.213-1.263a.833.833 0 0 1 1.212 0 .92.92 0 0 1 0 1.263zM21.532 2.94a.833.833 0 0 0-1.212 0l-1.212 1.263a.92.92 0 0 0 0 1.262.833.833 0 0 0 1.212 0l1.212-1.262a.92.92 0 0 0 0-1.263M20.32 22.43a.833.833 0 0 0 1.212 0 .92.92 0 0 0 0-1.263l-1.212-1.263a.833.833 0 0 0-1.212 0 .92.92 0 0 0 0 1.263z"})))};function x(){return(x=Object.assign.bind()).apply(null,arguments)}let S=function(e){return h.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 25"},e),r||(r=h.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M21.936 16.48a.86.86 0 0 0-.197-.945.81.81 0 0 0-.934-.143 7.7 7.7 0 0 1-3.473.824c-4.349 0-7.874-3.607-7.874-8.057 0-1.802.577-3.463 1.552-4.805a.86.86 0 0 0 .032-.965.82.82 0 0 0-.871-.37C5.5 3.051 2 7.301 2 12.39 2 18.25 6.642 23 12.367 23c4.31 0 8.005-2.692 9.569-6.52",clipRule:"evenodd"})))};function N(){return(N=Object.assign.bind()).apply(null,arguments)}let w=function(e){return h.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 25"},e),s||(s=h.createElement("path",{fill:"currentColor",d:"m19.959 2 2.5 2.531h-1.922V8.47h1.922L19.959 11l-2.5-2.531h1.923V4.53h-1.923z"})),n||(n=h.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.95 4 1 23h4.23l1.59-4.072h8.266L16.67 23H21L13.026 4zm4.838 11.59L10.96 8.319 8.122 15.59z",clipRule:"evenodd"})))};var I=e.i(691773),k=e.i(482475),L=e.i(305181),O=e.i(822596);function P({libro:e,closeModal:t,libroDict:a,guardarFavBtn:i,guardarFavBtnMenu:r,translationsObj:s,defaultDict:n}){let l={p:16,h2:36},[c,f]=(0,h.useState)(!1),[E,A]=(0,h.useState)(l),C=(0,h.useRef)(null),[x,N]=(0,h.useState)(!1),[D,R]=(0,h.useState)(!1),{t:M}=(0,O.getDictionary)(a),{t:j}=(0,O.getDictionary)(n);(0,h.useEffect)(()=>{let e=Date.now();return(0,p.fragmentTimerEvent)(0),()=>{let t=Math.round((Date.now()-e)/1e3);(0,p.fragmentTimerEvent)(t)}},[]),(0,h.useEffect)(()=>{function e(e){C.current&&!C.current.contains(e.target)&&f(!1)}return c&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[c]);let{ref:F,entry:B}=(0,I.useIntersection)({threshold:.5}),[U,G]=(0,h.useState)(0),[H,W]=(0,h.useState)(!0),[V,q]=(0,h.useState)({25:!1,50:!1,75:!1,100:!1});return(0,h.useEffect)(()=>{let e=document.querySelector("#readBookFragment dialog"),t=e=>{let t=e.target,a=t.scrollTop;a>U?W(!1):W(!0),G(a);let i=a/(t.scrollHeight-t.clientHeight)*100;i>=25&&!V[25]&&((0,p.fragmentScrollEvent)(25),q(e=>({...e,25:!0}))),i>=50&&!V[50]&&((0,p.fragmentScrollEvent)(50),q(e=>({...e,50:!0}))),i>=75&&!V[75]&&((0,p.fragmentScrollEvent)(75),q(e=>({...e,75:!0}))),i>=99&&!V[100]&&((0,p.fragmentScrollEvent)(100),q(e=>({...e,100:!0})))};return e&&e.addEventListener("scroll",t),()=>{e&&e.removeEventListener("scroll",t)}},[U,V]),(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:`${D?d.default.darkMode:d.default.lightMode} `,children:[(0,o.jsx)("header",{className:`${d.default.header} ${H?d.default.header__isVisible:d.default.header__isNotVisible}`,children:(0,o.jsxs)("div",{className:`${d.default.header__inner} ${d.default.container}`,children:[(0,o.jsxs)("div",{className:d.default.header__titleWrapper,children:[(0,o.jsx)(g,{className:d.default.header__logo}),(0,o.jsx)(k.default,{title:e?.titulo??"",className:d.default.header__title}),e.autores&&(0,o.jsx)("p",{className:d.default.header__autores,children:e.autores.map(e=>e.nombre).join(" - ")})]}),(0,o.jsxs)("div",{className:d.default.header__buttonsWrapper,children:[(0,o.jsxs)("button",{onClick:t,className:d.default.closeBtn,children:[(0,o.jsx)(b.default,{className:d.default.closeBtn__icon}),(0,o.jsx)("span",{className:"sr-only",children:j("CLOSE_MODAL")})]}),(0,o.jsxs)("div",{className:d.default.buttonsActions,children:[(0,o.jsx)("button",{onClick:()=>void N(!x),className:d.default.iconButton,children:x?(0,o.jsx)(v,{}):(0,o.jsx)(T,{})}),(0,o.jsx)("button",{id:"hola",onClick:()=>void R(!D),className:d.default.iconButton,children:D?(0,o.jsx)(y,{}):(0,o.jsx)(S,{})}),(0,o.jsxs)("div",{ref:C,className:d.default.fontHandlerWrapper,children:[(0,o.jsx)("button",{className:d.default.iconButton,onClick:()=>f(!c),children:(0,o.jsx)(w,{})}),c&&(0,o.jsxs)("div",{className:d.default.fontHandlerSubmenu,children:[(0,o.jsx)("button",{onClick:()=>void A({p:E.p<=8?E.p:E.p-2,h2:E.p<=8?E.p:E.h2-2}),className:`${d.default.fontHandlerBtn} ${d.default.fontSmaller}`,children:(0,o.jsxs)("span",{children:["A",(0,o.jsx)("sup",{children:"-"})]})}),(0,o.jsx)("button",{onClick:()=>A(l),className:`${d.default.fontHandlerBtn} ${d.default.fontMedium}`,children:(0,o.jsx)("span",{children:"A"})}),(0,o.jsx)("button",{onClick:()=>void A({p:E.p>36?E.p:E.p+2,h2:E.p>36?E.p:E.h2+2}),className:`${d.default.fontHandlerBtn} ${d.default.fontBigger}`,children:(0,o.jsxs)("span",{children:["A",(0,o.jsx)("sup",{children:"+"})]})})]})]})]})]})]})}),(0,o.jsx)("main",{className:d.default.content,children:(0,o.jsx)("div",{className:d.default.container,children:(0,o.jsxs)("div",{className:d.default.content__inner,children:[(0,o.jsx)("div",{className:`${d.default.content__fragmento}`,children:(0,o.jsxs)("div",{className:`${d.default.wrapperFragmento} ${x?d.default.useSerifFont:d.default.useSansSerifFont}`,style:{"--fragment-font-size":`${E.p}px`,"--fragment-font-size-h":`${E.h2}px`},children:[(0,o.jsx)("p",{className:d.default.muestraFragmento,children:M("leerFragmentoVisorMuestra")}),(0,o.jsx)(u.default,{rawHtml:e?.fragmento?.html??""})]})}),(0,o.jsx)("div",{className:d.default.content__libroFooter,ref:F,children:(0,o.jsxs)("div",{className:d.default.libroFooter,children:[(0,o.jsx)("h3",{className:d.default.libroFooter__title,children:M("leerFragmentoVisorTeGusta")}),(0,o.jsx)("p",{className:d.default.libroFooter__subtitle,children:M("leerFragmentoVisorFraseComprar")}),(0,o.jsxs)("div",{className:d.default.libroFooter__libro,children:[(0,o.jsxs)("div",{className:d.default.libroFooter__libroInner,children:[(0,o.jsx)(m.default,{libro:e,showTags:!0,variantTags:"small",className:d.default.libroFooter__libroPortada,dictionaryLibro:a,translationsObj:s}),(0,o.jsxs)("div",{className:d.default.libroFooter__libroText,children:[(0,o.jsx)("h3",{className:d.default.libroFooter__libroTitle,children:e.titulo}),e.autores&&(0,o.jsx)(_.default,{autores:e.autores,link:!1,className:d.default.libroFooter__libroAutores}),(0,o.jsx)(L.default,{gtmFragmentType:"module",defaultDict:n,libro:e,size:"normal",textoComprar:M("comprar"),textoConsultar:M("consultar"),textoFormatos:M("formatos"),tituloModal:M("tituloModalOpcionesCompra"),tituloBoton:M("tituloBotonModalOpcionesCompra"),translationsObj:s})]})]}),B?.isIntersecting&&(0,o.jsx)("div",{className:d.default.libroFooter__guardarFavorito,children:i})]})]})})]})})}),(0,o.jsx)("div",{className:`${d.default.footer} ${!B?.isIntersecting?d.default.footer__isVisible:""}`,children:(0,o.jsxs)("div",{className:`${d.default.footer__inner} ${d.default.container}`,children:[!B?.isIntersecting&&r,(0,o.jsx)(L.default,{gtmFragmentType:"menu_bar",defaultDict:n,libro:e,size:"normal",textoComprar:M("comprar"),textoConsultar:M("consultar"),textoFormatos:M("formatos"),tituloModal:M("tituloModalOpcionesCompra"),tituloBoton:M("tituloBotonModalOpcionesCompra"),translationsObj:s})]})})]})})}var D=e.i(330580),R=e.i(539912),M=e.i(618566);e.s(["default",0,function({size:e="small",libro:t,btnText:a,libroDict:i,isLogged:r,guardarFavBtn:s,guardarFavBtnMenu:n,className:u="",translationsObj:d,dictAcceso:m,defaultDict:_,srOnly:p,defaultOpen:f=!1,urlFichaLibro:g,urlFragmentoLibro:b}){let{refModal:E,openModal:v,closeModal:A,isOpen:T}=(0,D.default)(),C=(0,M.useRouter)();return((0,h.useEffect)(()=>{f&&t?.fragmento?.tipo==="html"&&(v(),C.replace(b??""))},[]),t?.fragmento?.tipo==="enlace")?(0,o.jsx)("div",{className:"LibroLeerFragmento",children:(0,o.jsx)(l.default,{className:u,variant:"primary",size:e,path:(0,c.getUrlWithDomain)(t?.fragmento?.url??""),targetBlank:!0,srOnly:p,children:a})}):t?.fragmento?.tipo==="html"?(0,o.jsxs)("div",{className:"LibroLeerFragmento",children:[(0,o.jsx)(R.Modal,{isOpen:T,ref:E,handleClose:()=>{A(),C.push(g)},closeOutsideClose:!0,variant:"full-width-no-padding",id:"readBookFragment",children:(0,o.jsx)(P,{defaultDict:_,closeModal:()=>{A(),C.push(g)},libro:t,libroDict:i,guardarFavBtn:s,guardarFavBtnMenu:n,translationsObj:d})}),(0,o.jsx)(l.default,{className:u,variant:"primary",size:e,path:b??"",srOnly:p,onClick:e=>{e.preventDefault(),v(),C.replace(b??"")},children:a})]}):null}],876422)},561777,e=>{e.v({"blink-animation":"Libro-module-scss-module__P-8Z5q__blink-animation",libro:"Libro-module-scss-module__P-8Z5q__libro","libroGrid-3":"Libro-module-scss-module__P-8Z5q__libroGrid-3","libroGrid-4":"Libro-module-scss-module__P-8Z5q__libroGrid-4","libroGrid-5":"Libro-module-scss-module__P-8Z5q__libroGrid-5","libroGrid-6":"Libro-module-scss-module__P-8Z5q__libroGrid-6",libroNoGrid:"Libro-module-scss-module__P-8Z5q__libroNoGrid",libro__autores:"Libro-module-scss-module__P-8Z5q__libro__autores",libro__fechaPublicacion:"Libro-module-scss-module__P-8Z5q__libro__fechaPublicacion",libro__info:"Libro-module-scss-module__P-8Z5q__libro__info",libro__link:"Libro-module-scss-module__P-8Z5q__libro__link",libro__portadaAspectRatioWrapper:"Libro-module-scss-module__P-8Z5q__libro__portadaAspectRatioWrapper",libro__portadaPositionWrapper:"Libro-module-scss-module__P-8Z5q__libro__portadaPositionWrapper",libro__titulo:"Libro-module-scss-module__P-8Z5q__libro__titulo",ranking:"Libro-module-scss-module__P-8Z5q__ranking"})},689500,e=>{"use strict";var t=e.i(843476),a=e.i(561777),i=e.i(522016),r=e.i(618566),s=e.i(10655);e.s(["default",0,function({libro:e,libroVariant:n,children:o}){let l=(0,r.useSearchParams)(),c=(0,r.usePathname)();return(0,t.jsx)(i.default,{prefetch:!1,href:"sala-prensa"===n?`${e.urlSalaPrensa}`:`${e.url}`,className:a.default.libro__link,title:e.titulo,onClick:t=>{let a="textoBuscador";l.has(a)&&(0,s.clickSearchResultEvent)({urlPagina:c,tipoPagina:(0,s.convertPageType)("buscador"),searchTerm:l.get(a)||"",searchClick:e.titulo,tipoContenido:"libros"})},children:o})}])},68575,e=>{"use strict";var t=e.i(843476),a=e.i(561777),i=e.i(618566),r=e.i(10655),s=e.i(978877),n=e.i(283231),o=e.i(970435);e.s(["default",0,function({libro:e,position:l,children:c}){let u=(0,i.usePathname)(),{pageData:d}=(0,s.usePageData)(),h=(0,n.useModuleGAMetadata)();return(0,t.jsx)("div",{className:a.default.libro__portadaPositionWrapper,onClick:()=>{(0,r.bookClickEvent)({...d.ga,tipoPagina:(0,r.convertPageType)(d.tipoPagina),urlPagina:d.tipoPagina===o.TIPO_PAGINA_API.HOME?"/":u,tipoClick:"image",items:[{item_name:e.titulo,item_id:e.idPlaneta,price:e.precioNumero,item_brand:e.nombreEditorial,item_category:e?.tematicaPrincipal?.nombre,item_category2:e.nombresSubtematicas,item_category3:e.nombreColeccion,item_category4:e?.autores?.map(e=>e?.nombre),item_variant:e.presentacion,index:l,quantity:1}],idModuloPadre:h?.metadatosModulo?.id,nombreModuloPadre:h?.metadatosModulo?.nombre})},children:c})}])},753443,e=>{"use strict";var t=e.i(843476),a=e.i(561777),i=e.i(10655),r=e.i(978877),s=e.i(283231),n=e.i(970435),o=e.i(618566);e.s(["default",0,function({libro:e,position:l,children:c}){let{pageData:u}=(0,r.usePageData)(),d=(0,s.useModuleGAMetadata)(),h=(0,o.usePathname)();return(0,t.jsx)("p",{className:a.default.libro__titulo,onClick:()=>{(0,i.bookClickEvent)({...u.ga,tipoPagina:(0,i.convertPageType)(u.tipoPagina),urlPagina:u.tipoPagina===n.TIPO_PAGINA_API.HOME?"/":h,tipoClick:"title",items:[{item_name:e.titulo,item_id:e.idPlaneta,price:e.precioNumero,item_brand:e.nombreEditorial,item_category:e?.tematicaPrincipal?.nombre,item_category2:e.nombresSubtematicas,item_category3:e.nombreColeccion,item_category4:e?.autores?.map(e=>e.nombre),item_variant:e.presentacion,index:l,quantity:1}],idModuloPadre:d?.metadatosModulo.id,nombreModuloPadre:d?.metadatosModulo.nombre})},children:c})}])},441913,e=>{e.v({bgPath:"ButtonAcciones-module-scss-module__ig83iW__bgPath","blink-animation":"ButtonAcciones-module-scss-module__ig83iW__blink-animation",buttonAction:"ButtonAcciones-module-scss-module__ig83iW__buttonAction",buttonAction__icon:"ButtonAcciones-module-scss-module__ig83iW__buttonAction__icon",buttonAction__icon__fill:"ButtonAcciones-module-scss-module__ig83iW__buttonAction__icon__fill",buttonAction__text:"ButtonAcciones-module-scss-module__ig83iW__buttonAction__text",hide:"ButtonAcciones-module-scss-module__ig83iW__hide"})},156372,e=>{"use strict";var t=e.i(843476),a=e.i(441913),i=e.i(389649),r=e.i(64887),s=e.i(822596);e.s(["default",0,function({type:e,genero:n="masculino",onlyIcon:o=!1,fill:l=!1,onClick:c,loadingIsInFavorite:u,bgMode:d="light",textInOneLine:h=!1,dictionary:m}){let{t:_}=(0,s.getDictionary)(m);return"libroFavorito"===e?(0,t.jsxs)("button",{className:`${a.default.buttonAction} ${a.default.buttonAction__libroFavoritos}`,onClick:c,children:[u?(0,t.jsx)(i.default,{}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{className:`${a.default.buttonAction__icon} ${l?a.default.buttonAction__icon__fill:""}`,children:(0,t.jsx)("svg",{viewBox:"0 0 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"M14.462 1.49312C15.2508 1.16628 16.0963 0.998047 16.9501 0.998047C17.804 0.998047 18.6495 1.16628 19.4383 1.49312C20.2269 1.81991 20.9435 2.29885 21.5471 2.9026C22.1508 3.50615 22.6301 4.22306 22.9569 5.01173C23.2837 5.80054 23.4519 6.64602 23.4519 7.49987C23.4519 8.35372 23.2837 9.19921 22.9569 9.98802C22.6301 10.7768 22.1511 11.4934 21.5472 12.097L12.7072 20.937C12.3167 21.3275 11.6835 21.3275 11.293 20.937L2.45301 12.097C1.23378 10.8778 0.548828 9.22412 0.548828 7.49987C0.548828 5.77562 1.23378 4.12199 2.45301 2.90277C3.67224 1.68354 5.32587 0.998582 7.05012 0.998582C8.77437 0.998582 10.428 1.68354 11.6472 2.90277L12.0001 3.25566L12.3528 2.90293C12.9564 2.29911 13.6732 1.81994
514.462 1.49312Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M15.2276 3.34079C15.7737 3.11451 16.359 2.99805 16.9501 2.99805C17.5412 2.99805 18.1266 3.11451 18.6727 3.34079C19.2188 3.56707 19.7153 3.89906 20.1332 4.31715C20.5513 4.73504 20.8829 5.23121 21.1092 5.77731C21.3355 6.32341 21.4519 6.90875 21.4519 7.49987C21.4519 8.091 21.3355 8.67633 21.1092 9.22243C20.8829 9.76854 20.5511 10.2649 20.133 10.6828L12.0001 18.8157L3.86723 10.6828C3.02307 9.83861 2.54883 8.69369 2.54883 7.49987C2.54883 6.30606 3.02307 5.16114 3.86723 4.31698C4.71138 3.47282 5.8563 2.99858 7.05012 2.99858C8.24394 2.99858 9.38886 3.47282 10.233 4.31698L11.293 5.37698C11.6835 5.7675 12.3167 5.7675 12.7072 5.37698L13.7674 4.31681C14.1853 3.89873 14.6815 3.56707 15.2276 3.34079Z",fill:`${"light"===d?"#fff":"#1D1D1D"}`})]})})})}),l?(0,t.jsx)("span",{id:"btn-text-guardado-libro-favorito",className:`${a.default.buttonAction__text} ${o&&a.default.hide}`,children:h?(0,t.jsx)(t.Fragment,{children:_("buttonAccionesGuardadoEnMiLista")}):(0,t.jsx)(r.default,{rawHtml:_("buttonAccionesGuardadoEnMiListaHTML")})}):(0,t.jsx)("span",{id:"btn-text-guardar-libro-favorito",className:`${a.default.buttonAction__text} ${o&&a.default.hide}`,children:h?(0,t.jsx)(t.Fragment,{children:_("buttonAccionesGuardarEnMiLista")}):(0,t.jsx)(r.default,{rawHtml:_("buttonAccionesGuardarEnMiListaHTML")})})]}):"autorFavorito"===e?(0,t.jsxs)("button",{className:`${a.default.buttonAction} ${a.default.buttonAction__compartirLibro}`,onClick:c,children:[(0,t.jsx)("span",{className:`${a.default.buttonAction__icon} ${l?a.default.buttonAction__icon__fill:""}`,children:(0,t.jsx)("svg",{viewBox:"0 0 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"M14.462 1.49312C15.2508 1.16628 16.0963 0.998047 16.9501 0.998047C17.804 0.998047 18.6495 1.16628 19.4383 1.49312C20.2269 1.81991 20.9435 2.29885 21.5471 2.9026C22.1508 3.50615 22.6301 4.22306 22.9569 5.01173C23.2837 5.80054 23.4519 6.64602 23.4519 7.49987C23.4519 8.35372 23.2837 9.19921 22.9569 9.98802C22.6301 10.7768 22.1511 11.4934 21.5472 12.097L12.7072 20.937C12.3167 21.3275 11.6835 21.3275 11.293 20.937L2.45301 12.097C1.23378 10.8778 0.548828 9.22412 0.548828 7.49987C0.548828 5.77562 1.23378 4.12199 2.45301 2.90277C3.67224 1.68354 5.32587 0.998582 7.05012 0.998582C8.77437 0.998582 10.428 1.68354 11.6472 2.90277L12.0001 3.25566L12.3528 2.90293C12.9564 2.29911 13.6732 1.81994 14.462 1.49312Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M15.2276 3.34079C15.7737 3.11451 16.359 2.99805 16.9501 2.99805C17.5412 2.99805 18.1266 3.11451 18.6727 3.34079C19.2188 3.56707 19.7153 3.89906 20.1332 4.31715C20.5513 4.73504 20.8829 5.23121 21.1092 5.77731C21.3355 6.32341 21.4519 6.90875 21.4519 7.49987C21.4519 8.091 21.3355 8.67633 21.1092 9.22243C20.8829 9.76854 20.5511 10.2649 20.133 10.6828L12.0001 18.8157L3.86723 10.6828C3.02307 9.83861 2.54883 8.69369 2.54883 7.49987C2.54883 6.30606 3.02307 5.16114 3.86723 4.31698C4.71138 3.47282 5.8563 2.99858 7.05012 2.99858C8.24394 2.99858 9.38886 3.47282 10.233 4.31698L11.293 5.37698C11.6835 5.7675 12.3167 5.7675 12.7072 5.37698L13.7674 4.31681C14.1853 3.89873 14.6815 3.56707 15.2276 3.34079Z",fill:`${"light"===d?"#fff":"#1D1D1D"}`})]})})}),l?(0,t.jsx)("span",{className:`${a.default.buttonAction__text} ${o&&a.default.hide}`,children:h?(0,t.jsx)(t.Fragment,{children:_("masculino"===n?"buttonAccionesAutorGuardadoEnFavoritos":"buttonAccionesAutoraGuardadoEnFavoritos")}):(0,t.jsx)(t.Fragment,{children:"masculino"===n?(0,t.jsx)(r.default,{rawHtml:_("buttonAccionesAutorGuardadoEnFavoritosHTML")}):(0,t.jsx)(r.default,{rawHtml:_("buttonAccionesAutoraGuardadoEnFavoritosHTML")})})}):(0,t.jsx)("span",{className:`${a.default.buttonAction__text} ${o&&a.default.hide}`,children:h?(0,t.jsx)(t.Fragment,{children:_("masculino"===n?"buttonAccionesAutorGuardarEnFavoritos":"buttonAccionesAutoraGuardarEnFavoritos")}):(0,t.jsx)(t.Fragment,{children:"masculino"===n?(0,t.jsx)(r.default,{rawHtml:_("buttonAccionesAutorGuardarEnFavoritosHTML")}):(0,t.jsx)(r.default,{rawHtml:_("buttonAccionesAutoraGuardarEnFavoritosHTML")})})})]}):null}])},505570,e=>{"use strict";var t=e.i(843476),a=e.i(812318),i=e.i(484046),r=e.i(709484),s=e.i(6
553943);e.s(["default",0,function({libro:e,translationsObj:n}){return(0,t.jsxs)("div",{className:a.default.miniaturaLibro,children:[(0,t.jsx)("div",{className:a.default.miniaturaLibro__portada,children:(0,t.jsx)(i.default,{libro:e,showTags:!1,variantTags:"detail",translationsObj:n})}),(0,t.jsxs)("div",{className:a.default.miniaturaLibro__texto,children:[(0,t.jsx)("p",{className:a.default.miniaturaLibro__titulo,children:e.titulo}),e.autores&&(0,t.jsx)(r.default,{autores:e.autores,link:!1,className:a.default.miniaturaLibro__autores}),e.tematicaPrincipal&&(0,t.jsx)(s.default,{tematica:e.tematicaPrincipal,link:!1})]})]})}])},132440,e=>{"use strict";var t=e.i(843476),a=e.i(936540),i=e.i(174080);e.s(["default",0,function({variant:e="primary",size:r="small",display:s="inline",disabled:n,defaultTitle:o,loadingTitle:l,className:c,id:u}){let{pending:d}=(0,i.useFormStatus)();return(0,t.jsx)(a.default,{id:u??void 0,variant:e,size:r,display:s,buttonType:"submit",disabled:n,className:c,children:d&&l||o})}])},78055,e=>{e.v({"blink-animation":"ContenidoUsuarioGuardarLibrosEnFavoritos-module-scss-module__FFLH0q__blink-animation",botonesAcciones:"ContenidoUsuarioGuardarLibrosEnFavoritos-module-scss-module__FFLH0q__botonesAcciones",crearListaButton:"ContenidoUsuarioGuardarLibrosEnFavoritos-module-scss-module__FFLH0q__crearListaButton",crearListaTextHelp:"ContenidoUsuarioGuardarLibrosEnFavoritos-module-scss-module__FFLH0q__crearListaTextHelp",eliminarLibrosListasWrapper:"ContenidoUsuarioGuardarLibrosEnFavoritos-module-scss-module__FFLH0q__eliminarLibrosListasWrapper",eliminarLibrosListasWrapper__buttons:"ContenidoUsuarioGuardarLibrosEnFavoritos-module-scss-module__FFLH0q__eliminarLibrosListasWrapper__buttons",eliminarLibrosListasWrapper__text:"ContenidoUsuarioGuardarLibrosEnFavoritos-module-scss-module__FFLH0q__eliminarLibrosListasWrapper__text",labelFieldset:"ContenidoUsuarioGuardarLibrosEnFavoritos-module-scss-module__FFLH0q__labelFieldset",listasDisponibles__total:"ContenidoUsuarioGuardarLibrosEnFavoritos-module-scss-module__FFLH0q__listasDisponibles__total"})},118870,e=>{e.v({"blink-animation":"FieldWrapper-module-scss-module__33xtsa__blink-animation",item:"FieldWrapper-module-scss-module__33xtsa__item","item--error":"FieldWrapper-module-scss-module__33xtsa__item--error",item__fieldDescription:"FieldWrapper-module-scss-module__33xtsa__item__fieldDescription"})},296175,e=>{"use strict";var t=e.i(843476),a=e.i(118870),i=e.i(970496);e.s(["default",0,function({children:e,className:r,error:s=!1}){let n=(0,i.classNames)(a.default.item,r||"",s?a.default["item--error"]:"");return(0,t.jsx)("div",{className:n,children:e})}])},104667,e=>{e.v({"blink-animation":"FieldHelpText-module-scss-module__E2oDRq__blink-animation",item:"FieldHelpText-module-scss-module__E2oDRq__item"})},534494,e=>{"use strict";var t=e.i(843476),a=e.i(104667);e.s(["default",0,function({children:e,className:i}){return(0,t.jsx)("p",{className:`${a.default.item} ${i||""}`,children:e})}])},698437,e=>{"use strict";var t=e.i(843476),a=e.i(132440),i=e.i(95187);let r=(0,i.createServerReference)("400389a47c7703deb69e3d9ac5eb7abd3a27e9feb3",i.callServer,void 0,i.findSourceMapURL,"createList"),s=(0,i.createServerReference)("6009ae9ecc13675e59f06c142f01c7490cb9a30e59",i.callServer,void 0,i.findSourceMapURL,"createListWithBook"),n=(0,i.createServerReference)("604bd0f514f900a7a92c574a542664a9999eef8cee",i.callServer,void 0,i.findSourceMapURL,"renameList");var o=e.i(296175),l=e.i(822596),c=e.i(271645),u=e.i(495913),d=e.i(208549),h=e.i(534494);e.s(["default",0,function({defaultValue:e="",idLibro:i,idLista:m,closeModal:_,dictionary:p,defaultDict:f}){let{t:g}=(0,l.getDictionary)(p),[b,E]=(0,c.useState)(e),v=(0,c.useRef)(null),A=(0,c.useRef)(null),T="createList",C=g("crearNuevaLista"),y=g("creandoNuevaLista");i&&!m&&(T="createListWithBook",C=g("renombrarNuevaLista"),y=g("renombrandoNuevaLista")),!i&&m&&(T="renameList");let x=async e=>{"createListWithBook"===T&&await s(i,e.get("name")),"renameList"===T&&await n(m,e.get("name")),"createList"===T&&await r(e.get("name")),A.current?.reset(),E(""),await _()},S=g("createList"===T?"modalCrearNuevaListaPersonalizadaTitulo":"renombrarNuevaLista");return(0,t.jsxs)("div",{className:"ContenidoModalNuevaLista",children:[(0,t.jsx)(d.default,{defaultDict:f,closeAction:e=>{e.stopPropagation(),_()},children:(0,t.jsx)(u.default,{title:S})}),(0,t.jsxs)("form",{action:x,id:"crearNuevaLista",ref:A,children:[(0,t.jsxs)(o.default,{error:!1,children:[(0,t.jsx)("input",{ref:v,required:!0,type:"text",placeholder:g("escribeNombreNuevaListaPersonalizada"),id:"name",name:"name",maxLength:40,defaultValue:e,onCh
5ange:e=>E(e.target.value)}),(0,t.jsx)(h.default,{children:g("contadorCaracteresTituloLista",{x:b.length,y:40})})]}),(0,t.jsx)(a.default,{defaultTitle:C,loadingTitle:y})]})]})}],698437)},120443,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("6070ec081ffa9720d099f7e5a6c1bb07154ec235c9",t.callServer,void 0,t.findSourceMapURL,"removeFavoriteBookFromAllList");e.s(["removeFavoriteBookFromAllList",0,a])},889778,e=>{e.v({"blink-animation":"FieldCheckboxWrapper-module-scss-module__kbHjFG__blink-animation",item:"FieldCheckboxWrapper-module-scss-module__kbHjFG__item","item--error":"FieldCheckboxWrapper-module-scss-module__kbHjFG__item--error","item--group":"FieldCheckboxWrapper-module-scss-module__kbHjFG__item--group","item--single":"FieldCheckboxWrapper-module-scss-module__kbHjFG__item--single"})},777446,e=>{"use strict";var t=e.i(843476),a=e.i(889778),i=e.i(970496);e.s(["default",0,function({children:e,className:r,error:s=!1,variant:n="single"}){let o=(0,i.classNames)(a.default.item,r||"",s?a.default["item--error"]:"","single"!==n?a.default["item--group"]:a.default["item--single"]);return(0,t.jsx)("div",{className:o,children:e})}])},775911,e=>{e.v({"blink-animation":"Fieldset-module-scss-module__jNMsDW__blink-animation",item:"Fieldset-module-scss-module__jNMsDW__item"})},315245,e=>{"use strict";var t,a,i=e.i(271645);function r(){return(r=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return i.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 32"},e),t||(t=i.createElement("path",{fill:"currentColor",d:"M16.594 6.138a4.06 4.06 0 0 1 3.16 0c.501.212.956.522 1.34.912.383.391.687.855.895 1.365a4.28 4.28 0 0 1 0 3.22c-.208.51-.512.974-.895 1.365l-5.615 5.72a.627.627 0 0 1-.898 0L8.967 13a4.25 4.25 0 0 1-1.21-2.975c0-1.116.436-2.186 1.21-2.974a4.1 4.1 0 0 1 2.92-1.233 4.1 4.1 0 0 1 2.92 1.233l.223.228.224-.228c.384-.391.839-.701 1.34-.913"})),a||(a=i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.09 2.91a2.18 2.18 0 0 0-2.18 2.18v17.22a5.1 5.1 0 0 1 2.18-.492h22V2.91zM30 1.454C30 .65 29.349 0 28.546 0H5.09A5.09 5.09 0 0 0 0 5.09v21.82A5.09 5.09 0 0 0 5.09 32h23.456c.803 0 1.454-.651 1.454-1.454zm-2.91 23.272h-22a2.182 2.182 0 1 0 0 4.364h22z",clipRule:"evenodd"})))}])},191096,e=>{"use strict";var t=e.i(843476),a=e.i(505570);e.i(247167);var i=e.i(132440),r=e.i(95187);let s=(0,r.createServerReference)("7021cdb81978b00d20a7939de1bab98cf3bd6df72b",r.callServer,void 0,r.findSourceMapURL,"saveBookInLists");var n=e.i(78055),o=e.i(936540),l=e.i(330580),c=e.i(539912),u=e.i(698437),d=e.i(822596),h=e.i(522016),m=e.i(271645),_=e.i(120443);function p({libro:e,closeModal:a,dictionary:i,className:r}){let{t:s}=(0,d.getDictionary)(i),[l,c]=(0,m.useTransition)(),[u,h]=(0,m.useState)(!1),f=async t=>{c(async()=>{let i=e?.userWebListas?.map(e=>e.id);await (0,_.removeFavoriteBookFromAllList)(e.id,i),t.stopPropagation(),await a()})};return(0,t.jsx)(t.Fragment,{children:u?(0,t.jsxs)("div",{className:n.default.eliminarLibrosListasWrapper,children:[(0,t.jsx)("p",{className:n.default.eliminarLibrosListasWrapper__text,children:s("avisoEliminarLibroListas")}),(0,t.jsxs)("div",{className:n.default.eliminarLibrosListasWrapper__buttons,children:[(0,t.jsx)(o.default,{variant:"secondary",size:"small",display:"inline",buttonType:"button",onClick:()=>h(!1),disabled:l,className:r,children:s("cancelarEliminarLibroListas")}),(0,t.jsx)(o.default,{variant:"secondary",size:"small",display:"inline",buttonType:"button",onClick:f,disabled:l,className:r,children:s(l?"eliminandoLibroListas":"confirmarEliminarLibroListas")})]})]}):(0,t.jsx)(o.default,{variant:"secondary",size:"small",display:"inline",buttonType:"button",onClick:()=>h(!0),className:r,children:s("eliminarLibroListas")})})}var f=e.i(10655),g=e.i(978877),b=e.i(618566),E=e.i(777446),v=e.i(775911),A=e.i(970496);function T({children:e,className:a}){let i=(0,A.classNames)(v.default.item,a||"");return(0,t.jsx)("fieldset",{className:i,children:e})}var C=e.i(296175);function y({libro:e,lista:a,closeModalParent:r,dictionary:m,mostrarEliminarLibroListas:_=!1,defaultDict:v}){let{pageData:A}=(0,g.usePageData)(),x=e.id,{refModal:S,openModal:N,closeModal:w,isOpen:I}=(0,l.default)(),{t:k}=(0,d.getDictionary)(m),L=a?.length||0;e?.userWebListas;let O=(0,b.usePathname)(),P=async t=>{await s(x,a,t.getAll("lista")),t.getAll("lista")&&t.getAll("lista").length>0&&(0,f.wishlistEvent)({tipoPagina:(0,f.convertPageType)(A?.tipoPagina),urlPagina:O,moneda:"MXN",items:[{item_brand:A?.ga?.item_brand,item_category:A?.ga?.item_category,item_category2:A?.ga?.item_category2,item_category3:A?.ga?.item_category3,item_category4:A?.ga?.item_category4,item_id:A?.ga?.item_id,item_name:A?.ga?.item_name,item_variant:A?.ga?.item_variant,price:e.precioNumero,quantity:A?.ga?.quantity}],valor:e.precioNumero}),await r()};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("form",{action:P,id:"guardarLibro",children:[(0,t.jsxs)(T,{children:[(0,t.jsx)("p",{className:n.default.labelFieldset,children:k("modalGuardarEnListaSelecciona")}),a?.map(e=>(0,t.jsx)(E.default,{variant:"group",children:(0,t.jsxs)("label",{id:"Leyendo"===e.titulo?"label-leyendo-guardar-libro-favorito":void 0,htmlFor:e.id,children:[(0,t.jsx)("input",{type:"checkbox",id:e.id,name:"lista",value:e.id,defaultChecked:e.contieneElLibro}),(0,t.jsx)("p",{children:e.titulo})]})},e.id))]}),L<10&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(o.default,{onClick:e=>{e.preventDefault(),e.stopPropagation(),N()},display:"inline",type:"link",className:n.default.crearListaButton,children:["+ ",k("crearNuevaLista")]})}),(0,t.jsx)("p",{className:n.default.listasDisponibles__total,children:k("listasDisponibles",{x:L,y:10})}),(0,t.jsxs)(C.default,{className:n.default.botonesAcciones,children:[(0,t.jsx)(i.default,{id:"btn-guardar-libro-favorito-submit",defaultTitle:k("guardar"),loadingTitle:k("guardando")}),_&&(0,t.jsx)(p,{libro:e,dictionary:m,closeModal:r})]})]}),(0,t.jsxs)("p",{className:n.default.crearListaTextHelp,children:[k("modalGuardarEnListaFavoritosTextoSugerirAdministrarListas")," ",(0,t.jsx)(h.default,{prefetch:!1,href:`https://www.planetadelibros.com.mx${k("linkUrlAdministrarListas")}`,children:k("linkTituloAdministrarListas")})]}),(0,t.jsx)(c.Modal,{isOpen:I,ref:S,handleClose:w,closeOutsideClose:!0,id:`guardarLibroFav_${x}`,variant:"auto-width",children:(0,t.jsx)(u.default,{idLibro:x,closeModal:w,dictionary:m,defaultDict:v})})]})}var x=e.i(88205),S=e.i(315245);function N({isFavorite:e=!1,tituloGuardado:a,tituloNoGuardado:i}){return(0,t.jsxs)("div",{className:x.default.modal__headerWithIcon,children:[(0,t.jsx)(S.default,{className:x.default.modal__headerWithIcon__icon}),(0,t.jsx)("span",{className:x.default.modal__headerWithIcon__text,children:e?a:i})]})}var w=e.i(208549);e.s(["default",0,function({libro:e,dictionary:i,children:r,lista:s,closeParentMod
5al:n,estado:o,translationsObj:l,defaultDict:c}){let{t:u}=(0,d.getDictionary)(i);return(0,t.jsxs)("div",{className:(0,A.classNames)("ModalLibroFavorito",x.default.modal2Columnas),children:[(0,t.jsx)(w.default,{defaultDict:c,closeAction:e=>{e.stopPropagation(),n()},className:x.default.modal2Columnas__cabeceraMobile,children:(0,t.jsx)(N,{isFavorite:o,tituloGuardado:u("modalGuardarEnListaFavoritosTituloGuardado"),tituloNoGuardado:u("modalGuardarEnListaFavoritosTituloNoGuardado")})}),(0,t.jsxs)("div",{className:x.default.modal2Columnas__inner,children:[(0,t.jsx)("div",{className:`${x.default.modal2Columnas__miniatura} ${x.default.modal2Columnas__miniatura__fullPadding}`,children:(0,t.jsx)(a.default,{libro:e,translationsObj:l})}),(0,t.jsxs)("div",{className:x.default.modal2Columnas__content,children:[(0,t.jsx)(w.default,{defaultDict:c,closeAction:e=>{e.stopPropagation(),n()},className:x.default.modal2Columnas__cabeceraDesktop,children:(0,t.jsx)(N,{isFavorite:o,tituloGuardado:u("modalGuardarEnListaFavoritosTituloGuardado"),tituloNoGuardado:u("modalGuardarEnListaFavoritosTituloNoGuardado")})}),r||(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(y,{defaultDict:c,libro:e,lista:s,closeModalParent:n,dictionary:i,mostrarEliminarLibroListas:o})})]})]})]})}],191096)},328264,e=>{"use strict";var t=e.i(843476),a=e.i(156372),i=e.i(330580),r=e.i(539912),s=e.i(191096);e.s(["default",0,function(e){let{libro:n,onlyIcon:o=!1,bgMode:l="light",textInOneLine:c=!1,estadoBoton:u=!1,dictionary:d,children:h,lista:m,translationsObj:_,defaultDict:p}=e,{refModal:f,openModal:g,closeModal:b,isOpen:E}=(0,i.default)();return(0,t.jsxs)("div",{className:"BotonGuardarLibroEnFavoritos",children:[(0,t.jsx)(a.default,{type:"libroFavorito",onClick:()=>{g()},onlyIcon:o,fill:u,loadingIsInFavorite:!1,bgMode:l,dictionary:d,textInOneLine:c}),(0,t.jsx)(r.Modal,{isOpen:E,ref:f,handleClose:b,closeOutsideClose:!0,id:"botonGuardarFavoritosLibro",variant:"no-padding",children:(0,t.jsx)(s.default,{defaultDict:p,dictionary:d,lista:m,libro:n,closeParentModal:b,estado:u,translationsObj:_,children:h})})]})}])},221013,e=>{e.v({"blink-animation":"SocialLogin-module-scss-module__HN78TG__blink-animation",errorMsg:"SocialLogin-module-scss-module__HN78TG__errorMsg",socialLogin__fieldLabel:"SocialLogin-module-scss-module__HN78TG__socialLogin__fieldLabel",socialLogin__horizontal:"SocialLogin-module-scss-module__HN78TG__socialLogin__horizontal",socialLogin__loginSocialInlineWrapper:"SocialLogin-module-scss-module__HN78TG__socialLogin__loginSocialInlineWrapper",socialLogin__vertical:"SocialLogin-module-scss-module__HN78TG__socialLogin__vertical",successMsg:"SocialLogin-module-scss-module__HN78TG__successMsg"})},366219,e=>{"use strict";var t=e.i(843476),a=e.i(221013),i=e.i(618566);e.s(["default",0,function(){let e=(0,i.usePathname)(),r=(0,i.useSearchParams)(),s="facebook_login"===r.get("error")&&"/pagina-area-usuario"===e,n="google_login"===r.get("error")&&"/pagina-area-usuario"===e;return(0,t.jsxs)(t.Fragment,{children:[s?(0,t.jsx)("div",{className:a.default.errorMsg,children:"Error en iniciar sesión con facebook"}):null,n?(0,t.jsx)("div",{className:a.default.errorMsg,children:"Error en iniciar sesión con google"}):null]})}])},635262,e=>{e.v({aBold:"Acceso-module-scss-module__wim07G__aBold",acceso:"Acceso-module-scss-module__wim07G__acceso",acceso__linkIniciarSesion:"Acceso-module-scss-module__wim07G__acceso__linkIniciarSesion",acceso__separador:"Acceso-module-scss-module__wim07G__acceso__separador",acceso__twoColumns:"Acceso-module-scss-module__wim07G__acceso__twoColumns","blink-animation":"Acceso-module-scss-module__wim07G__blink-animation",buttonMail:"Acceso-module-scss-module__wim07G__buttonMail",buttonMail__icon:"Acceso-module-scss-module__wim07G__buttonMail__icon",buttonsMailWrapper:"Acceso-module-scss-module__wim07G__buttonsMailWrapper",customInputs:"Acceso-module-scss-module__wim07G__customInputs",errorMsg:"Acceso-module-scss-module__wim07G__errorMsg",formWrapper:"Acceso-module-scss-module__wim07G__formWrapper",label:"Acceso-module-scss-module__wim07G__label",legalDataCheckboxText:"Acceso-module-scss-module__wim07G__legalDataCheckboxText",login:"Acceso-module-scss-module__wim07G__login",loginErrorWrapper:"Acceso-module-scss-module__wim07G__loginErrorWrapper",loginTitle:"Acceso-module-scss-module__wim07G__loginTitle",maskInput__hasValue:"Acceso-module-scss-module__wim07G__maskInput__hasValue",maskInput__noValue:"Acceso-module-scss-module__wim07G__maskInput__noValue",nonItalic:"Acceso-module-scss-module__wim07G__nonItalic",recuperarContraseñaEstatica:"Acceso-module-scss-module__wim07G__recuperarContraseñaEstatica",recuperarContraseñaEstatica__SubmitBtn:"Acceso-module-scss-module__wim07G__recuperarContraseñaEstatica__SubmitBtn",recuperarContraseñaEstatica__infoMessage:"Acceso-module-scss-module__wim07G__recuperarContraseñaEstatica__infoMessage",recuperarContraseñaEstatica__variant:"Acceso-module-scss-module__wim07G__recuperarContraseñaEstatica__variant",resendVerificationEmailBtn:"Acceso-module-scss-module__wim07G__resendVerificationEmailBtn",submitButton:"Acceso-module-scss-module__wim07G__submitButton",submitButtonWrapper:"Acceso-module-scss-module__wim07G__submitButtonWrapper",success:"Acceso-module-scss-module__wim07G__success",success__image:"Acceso-module-scss-module__wim07G__success__image",success__inner:"Acceso-module-scss-module__wim07G__success__inner",success__text:"Acceso-module-scss-module__wim07G__success__text",success__title:"Acceso-module-scss-module__wim07G__success__title",success__wrappericon:"Acceso-module-scss-module__wim07G__success__wrappericon",success__wrappertext:"Acceso-module-scss-module__wim07G__success__wrappertext",textHelp:"Acceso-module-scss-module__wim07G__textHelp",variantModal:"Acceso-module-scss-module__wim07G__variantModal",variantPage:"Acceso-module-scss-module__wim07G__variantPage"})},531867,e=>{e.v({"blink-animation":"InputPassword-module-scss-module__SjBaxq__blink-animation",buttonShowHidePass:"InputPassword-module-scss-module__SjBaxq__buttonShowHidePass",input:"InputPassword-module-scss-module__SjBaxq__input",wrapperIn
5putPass:"InputPassword-module-scss-module__SjBaxq__wrapperInputPass"})},19467,e=>{"use strict";var t,a,i,r=e.i(843476),s=e.i(271645),n=e.i(531867);function o(){return(o=Object.assign.bind()).apply(null,arguments)}let l=function(e){return s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),t||(t=s.createElement("path",{fill:"currentColor",d:"M10.1 5.2c.6-.1 1.3-.2 1.9-.2 3.1 0 5.6 1.8 7.4 3.7.9.9 1.6 1.9 2 2.6.2.3.3.5.4.7-.5.9-1.1 1.8-1.8 2.5-.4.4-.3 1.1.1 1.4.4.4 1.1.3 1.4-.1.9-1 1.6-2.2 2.3-3.4.2-.4.2-.7-.2-1.3-.1-.2-.3-.6-.6-1-.5-.8-1.3-1.8-2.3-2.9-2-2.1-5-4.3-8.9-4.3-.8 0-1.6.1-2.3.3-.4.2-.7.7-.6 1.3.2.5.7.8 1.2.7M23.7 22.3 1.7.3C1.3-.1.7-.1.3.3s-.4 1 0 1.4L4.6 6C2.8 7.6 1.3 9.4.2 11.5c-.2.4-.1.7 0 1l.2.4c.1.2.3.6.6 1 .5.8 1.3 1.8 2.3 2.9 2 2.1 5 4.3 8.9 4.3 2.1 0 4.1-.6 5.8-1.8l4.5 4.5c.4.4 1 .4 1.4 0s.2-1.1-.2-1.5M10 11.5l2.5 2.5c-.2.1-.4.1-.6.1-1.1 0-2-.9-2-2 0-.2.1-.5.1-.6m2 7.5c-3.1 0-5.6-1.8-7.4-3.7-.9-.9-1.6-1.9-2-2.6-.2-.3-.3-.5-.4-.7 1-1.7 2.3-3.3 3.8-4.6L8.5 10q-.6.9-.6 2.1c0 2.2 1.8 4 4 4q1.2 0 2.1-.6l2.3 2.3C15 18.6 13.5 19 12 19"})))};function c(){return(c=Object.assign.bind()).apply(null,arguments)}let u=function(e){return s.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),a||(a=s.createElement("path",{fill:"currentColor",d:"M23.7 11.2c-.1-.2-.3-.6-.6-1-.5-.8-1.3-1.8-2.3-2.9-2-2.1-5-4.3-8.9-4.3-3.8 0-6.8 2.2-8.8 4.3-1 1.1-1.7 2.1-2.3 2.9-.3.4-.4.7-.6 1-.4.7-.4 1 0 1.7.1.2.3.6.6 1 .5.8 1.3 1.8 2.3 2.9 2 2.1 5 4.3 8.9 4.3s6.9-2.2 8.9-4.3c1-1.1 1.7-2.1 2.3-2.9.3-.4.4-.7.6-1 .3-.7.3-1-.1-1.7m-2.3 1.5c-.5.7-1.1 1.7-2 2.6-1.8 1.9-4.3 3.7-7.4 3.7s-5.6-1.8-7.4-3.7c-.9-.9-1.6-1.9-2-2.6-.2-.3-.3-.5-.4-.7.1-.2.3-.4.4-.7.5-.7 1.1-1.7 2-2.6C6.4 6.8 8.9 5 12 5s5.6 1.8 7.4 3.7c.9.9 1.6 1.9 2 2.6.2.3.3.5.4.7 0 .2-.2.4-.4.7"})),i||(i=s.createElement("path",{fill:"currentColor",d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-4 2c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4-4-1.8-4-4"})))};e.s(["default",0,function({required:e=!1,name:t,id:a,ariaLabel:i,placeholder:o,onChange:c,onBlur:d,autoComplete:h}){let[m,_]=(0,s.useState)(!1);return(0,r.jsxs)("div",{className:n.default.wrapperInputPass,children:[(0,r.jsx)("input",{required:e,autoComplete:"off",type:m?"text":"password","aria-label":i,placeholder:o,id:t,name:a,...c&&{onChange:c},...d&&{onBlur:d},...h&&{autoComplete:h},className:n.default.input}),(0,r.jsx)("button",{type:"button",className:n.default.buttonShowHidePass,tabIndex:-1,onClick:e=>{e.preventDefault(),_(!m)},children:m?(0,r.jsx)(l,{}):(0,r.jsx)(u,{})})]})}],19467)},357172,e=>{"use strict";e.i(247167);var t=e.i(843476),a=e.i(271645),i=e.i(296175),r=e.i(635262),s=e.i(936540),n=e.i(978877),o=e.i(95187);let l=(0,o.createServerReference)("40226c23c406879ebb93ace1bd8f0c6dba3b73c4b9",o.callServer,void 0,o.findSourceMapURL,"loginAction"),c=(0,o.createServerReference)("40b1eabd077b679af031a73ca0e6bf04ccf107a3b7",o.callServer,void 0,o.findSourceMapURL,"redirectAction"),u=(0,o.createServerReference)("40922133fa504c59329e616f1f0de984ae2d561480",o.callServer,void 0,o.findSourceMapURL,"resendVerificationEmail");var d=e.i(618566),h=e.i(10655),m=e.i(822596),_=e.i(19467),p=e.i(24721);e.s(["default",0,function({referer:e,accesoDict:o,redirectAfterLogin:f=!0,actionsAfterLogin:g,isModal:b=!1}){let{pageData:E}=(0,n.usePageData)(),v=(0,d.useRouter)(),[A,T]=(0,a.useState)(!1),[C,y]=(0,a.useState)(""),x=(0,a.useRef)(null),S=(0,d.usePathname)(),{t:N}=(0,m.getDictionary)(o),w=async t=>{t.preventDefault(),T(!0);let i=t.target.email.value.trim(),r=t.target.password.value;(0,a.startTransition)(async()=>{let t=await l({email:i,password:r});if(!t?.response?.token){T(!1),y(t?.response?.message);return}if((0,h.loginEvent)({...{tipoPagina:(0,h.convertPageType)(E?.tipoPagina),urlPagina:S,method:"email",userId:null},userId:t?.response?.user_id??null}),(0,p.EinsteinLogin)(i),f){if(!e)return await c("/");let t=new URL(e),a=new URL("https://www.planetadelibros.com.mx"),i=t.pathname,r="/";return a.hostname===t.hostname&&S!==i&&(r="/crear-cuenta"===i||i.startsWith("/recuperar-contrasena")||i.startsWith("/password")?"/":i),await c(r)}v.refresh(),g&&g(i)})};
5return(0,t.jsxs)(t.Fragment,{children:[C&&(0,t.jsx)("span",{className:r.default.loginErrorWrapper,children:(0,t.jsx)(t.Fragment,{children:"CORREO_ELECTRONICO_NO_VALIDADO"===C?(0,t.jsxs)(t.Fragment,{children:[" ",N("loginEmailNotVerifiedErrorTextOne"),(0,t.jsx)("button",{className:r.default.resendVerificationEmailBtn,type:"button",onClick:async e=>{e.preventDefault(),e.currentTarget.disabled=!0;let t=await u({email:x.current.value});t.ok&&t.response&&y(t.response?.message)},children:(0,t.jsx)("strong",{children:N("loginEmailNotVerifiedErrorTextTwo")})})]}):C})}),(0,t.jsxs)("form",{onSubmit:w,name:"form-login",id:"form-login",method:"post",children:[(0,t.jsxs)(i.default,{children:[(0,t.jsx)("label",{htmlFor:"email",children:N("emailLabel")}),(0,t.jsx)("input",{autoComplete:"email",ref:x,required:!0,type:"email",inputMode:"email","aria-label":N("emailLabel"),placeholder:N("emailPlaceholder"),id:"email",name:"email"})]}),(0,t.jsxs)(i.default,{children:[(0,t.jsx)("label",{htmlFor:"password",children:N("passwordLabel")}),(0,t.jsx)(_.default,{required:!0,autoComplete:"off",ariaLabel:N("passwordLabel"),placeholder:N("passwordPlaceholder"),id:"password",name:"password"})]}),(0,t.jsx)(i.default,{className:r.default.submitButtonWrapper,children:(0,t.jsx)(s.default,{id:"btn-login-submit",buttonType:"submit",disabled:A,className:r.default.submitButton,size:"large",children:N("loginActionKeyword")})})]})]})}],357172)},320964,e=>{"use strict";var t=e.i(843476),a=e.i(330580),i=e.i(539912),r=e.i(208549),s=e.i(505570),n=e.i(343794),o=e.i(88205);function l({libro:e,closeParentModal:a,children:i,modalTitle:c,modalHelpText:u,defaultDict:d}){return(0,t.jsxs)("div",{className:(0,n.default)("ModalLibroFavorito",o.default.modal2Columnas),children:[(0,t.jsx)(r.default,{defaultDict:d,closeAction:e=>{e.stopPropagation(),a()},className:o.default.modal2Columnas__cabeceraMobile,children:(0,t.jsx)("div",{className:o.default.modal__headerWithIcon,children:(0,t.jsx)("span",{className:o.default.modal__headerWithIcon__text,children:u})})}),(0,t.jsxs)("div",{className:o.default.modal2Columnas__inner,children:[(0,t.jsx)("div",{className:`${o.default.modal2Columnas__miniatura} ${o.default.modal2Columnas__miniatura__fullPadding}`,children:(0,t.jsx)(s.default,{libro:e,translationsObj:{portadaAlt:e?.titulo??""}})}),(0,t.jsxs)("div",{className:o.default.modal2Columnas__content,children:[(0,t.jsx)(r.default,{defaultDict:d,closeAction:e=>{e.stopPropagation(),a()},className:o.default.modal2Columnas__cabeceraDesktop,children:c}),i]})]})]})}var c=e.i(936540);e.s(["default",0,function({btnText:e,children:r,libro:s,modalTitle:n,modalHelpText:o,btnClassName:u="",defaultDict:d}){let{refModal:h,openModal:m,closeModal:_,isOpen:p}=(0,a.default)();return(0,t.jsxs)("div",{className:"BotonGuardarLibroEnFavoritos",children:[(0,t.jsx)(c.default,{className:u,variant:"primary",size:"normal",onClick:m,children:e}),(0,t.jsx)(i.Modal,{isOpen:p,ref:h,handleClose:_,closeOutsideClose:!0,id:"botonLeerFragmentoLoginRequired",variant:"no-padding",children:(0,t.jsx)(l,{defaultDict:d,libro:s,closeParentModal:_,modalTitle:n,modalHelpText:o,children:r})})]})}],320964)},259561,e=>{e.v({"blink-animation":"TarjetasTematicas-module-scss-module__v3cy6a__blink-animation",embla:"TarjetasTematicas-module-scss-module__v3cy6a__embla",embla__container:"TarjetasTematicas-module-scss-module__v3cy6a__embla__container",embla__slide:"TarjetasTematicas-module-scss-module__v3cy6a__embla__slide",layout_smallCenter:"TarjetasTematicas-module-scss-module__v3cy6a__layout_smallCenter",tarjetasCarrousel:"TarjetasTematicas-module-scss-module__v3cy6a__tarjetasCarrousel",tematica:"TarjetasTematicas-module-scss-module__v3cy6a__tematica",tematica__image:"TarjetasTematicas-module-scss-module__v3cy6a__tematica__image",tematica__inner:"TarjetasTematicas-module-scss-module__v3cy6a__tematica__inner",tematica__link:"TarjetasTematicas-module-scss-module__v3cy6a__tematica__link",tematica__text:"TarjetasTematicas-module-scss-module__v3cy6a__tematica__text",tematica__textWrapper:"TarjetasTematicas-module-scss-module__v3cy6a__tematica__textWrapper",tematica__title:"TarjetasTematicas-module-scss-module__v3cy6a__tematica__title",wrapperTarjetasCarrousel:"TarjetasTematicas-module-scss-module__v3cy6a__wrapperTarjetasCarrousel"})},35154,e=>{"use strict";var t=e.i(843476),a=e.i(522016),i=e.i(259561),r=e.i(10655),s=e.i(283231),n=e.i(978877),o=e.i(618566);e.s(["default",0,function({children:e,tarjeta:l}){let{pageData:c}=(0,n.usePageData)(),u=(0,s.useModuleGAMetadata)(),d=(0,o.usePathname)();return(0,t.jsx)(a.default,{prefetch:!1,href:`${l.url}`,className:i.default.tematica__link,onClick:e=>{(0,r.contentClickEvent)({tipoPagina:(0,r.convertPageType)(c.tipoPagina),urlPagina:d,tipoClick:"theme",nombreSeccionPadre:u?.metadatosSeccion?.nombre,nombreContenido:l.titulo,tipoContenido:"Otros",tipoCta:"card"})},children:e})}])},561010,e=>{e.v({anchor:"MenuLocal-module-scss-module__78X9ja__anchor","blink-animation":"MenuLocal-module-scss-module__78X9ja__blink-animation",collapseExpandButton:"MenuLocal-module-scss-module__78X9ja__collapseExpandButton",collapseIcon:"MenuLocal-module-scss-module__78X9ja__collapseIcon",expandIcon:"MenuLocal-module-scss-module__78X9ja__expandIcon",hide:"MenuLocal-module-scss-module__78X9ja__hide",hideMenuItem:"MenuLocal-module-scss-module__78X9ja__hideMenuItem",isCollapsed:"MenuLocal-module-scss-module__78X9ja__isCollapsed",isExpanded:"MenuLocal-module-scss-module__78X9ja__isExpanded",menuLocal:"MenuLocal-module-scss-module__78X9ja__menuLocal",menuLocal__container:"MenuLocal-module-scss-module__78X9ja__menuLocal__container",menuLocal__list:"MenuLocal-module-scss-module__78X9ja__menuLocal__list",menuLocal__listItem:"MenuLocal-module-scss-module__78X9ja__menuLocal__listItem",noSeleccionado:"MenuLocal-module-scss-module__78X9ja__noSeleccionado",seleccionado:"MenuLocal-module-scss-module__78X9ja__seleccionado",sticky:"MenuLocal-module-scss-module__78X9ja__sticky",submenu:"MenuLocal-module-scss-module__78X9ja__submenu",submenu__list:"MenuLocal-module-scss-module__78X9ja__submenu__list",submenu__listItem:"MenuLocal-module-scss-module__78X9ja__submenu__listItem",visibleSubmenu:"MenuLocal-module-scss-module__78X9ja__visibleSubmenu"})},223742,e=>{"use strict";var t=e.i(843476),a=e.i(561010),i=e.i(947885),r=e.i(777386),s=e.i(564156),n=e.i(271645),o=e.i(167007),l=e.i(618566),c=e.i(10655),u=e.i(978877),d=e.i(970435);e.s(["default",0,function({slug:e,items:h,libroForGaData:m}){let{pageData:_}=(0,u.usePageData)(),p=(0,l.usePathname)(),f=(0,n.useRef)(null),g=(0,n.useRef)(null),[b,E]=(0,n.use
5State)(0),[v,A]=(0,n.useState)(0),[T,C]=(0,n.useState)(0),[y,x]=(0,n.useState)(!1),[S,N]=(0,n.useState)(h?.[0]?.slug),[w,I]=(0,n.useState)(0),{headerHeight:k,isFocusSearchForm:L,isHeaderSticky:O}=(0,o.usePageLayout)(),[P,D]=(0,n.useState)(!1),R=()=>{void 0!==window?C(scrollY):C(0)};(0,n.useEffect)(()=>(window.addEventListener("scroll",R),()=>{window.removeEventListener("scroll",R)}),[]),(0,n.useEffect)(()=>{let e,t,a,i,r;L||!h||h.length<=1?x(!1):v&&T+k>v?x(!0):x(!1),e=k+b,document.documentElement.style.scrollPaddingTop=e+"px",t=[],h.map(e=>{let a=document.getElementById(e.slug);t.push(a)}),a=[],t.map(e=>{a.push({id:e?.id,top:e?.offsetTop,bottom:e?.offsetHeight+e?.offsetTop})}),i=Math.ceil(window.scrollY+k+b+1),(r=a.find(e=>i>e.top&&i<e.bottom))&&N(r.id),P&&D(!1)},[T]),(0,n.useEffect)(()=>{h&&h.length>1?f?.current&&E(f.current.offsetHeight):E(0),g?.current&&f?.current&&A(g?.current?.offsetTop-f?.current?.offsetHeight)},[h,b,k]);let M=(e,t)=>{let a=document.getElementById(e);if(a){let e=a.offsetTop-t;window.scrollTo({top:e,behavior:"smooth"})}};(0,n.useEffect)(()=>{if(k<=0||b<=0)return;let e=w+1;if(I(e),1!==e)return;window.location.hash&&h.map(e=>{`#${e.slug}`===window.location.hash&&M(e.slug,k+b+45)});let t=e=>{window.location.hash&&e.preventDefault()};return window.addEventListener("DOMContentLoaded",t),()=>{window.removeEventListener("DOMContentLoaded",t)}},[b,k]);let j=({item:e})=>(0,t.jsx)("a",{onClick:t=>{var a;_.tipoPagina===d.TIPO_PAGINA_API.FICHA_LIBRO?(0,c.fichaLibroMenuLocalEvent)({valorClick:e.titulo,..._.ga,tipoPagina:(0,c.convertPageType)(_.tipoPagina),urlPagina:p,libro:_?.ga?.item_name,autor:_?.ga?.item_category4,tematica:_?.ga?.item_category,moneda:"MXN",items:[{item_brand:_?.ga?.item_brand,item_category:_?.ga?.item_category,item_category2:_?.ga?.item_category2,item_category3:_?.ga?.item_category3,item_category4:_?.ga?.item_category4,item_id:_?.ga?.item_id,item_name:_?.ga?.item_name,item_variant:_?.ga?.item_variant,price:_?.ga?.price?Number(_?.ga?.price):void 0,quantity:_?.ga?.quantity}]}):_?.tipoPagina===d.TIPO_PAGINA_API.FICHA_AUTOR?(0,c.fichaAutorMenuLocalEvent)({..._.ga,valorClick:e.titulo,tipoPagina:(0,c.convertPageType)(_.tipoPagina),urlPagina:p,autor:_?.ga?.autor}):_?.tipoPagina===d.TIPO_PAGINA_API.FICHA_EDITORIAL&&(0,c.fichaEditorialMenuLocalEvent)({..._.ga,valorClick:e.titulo,tipoPagina:(0,c.convertPageType)(_.tipoPagina),urlPagina:p,editorial:_?.ga?.editorial}),a=e.slug,t.preventDefault(),M(a,b+k),window.history.pushState(null,"",`${p}#${a}`)},href:`https://www.planetadelibros.com.mx#${e.slug}`,rel:"noreferrer nofollow",className:a.default.anchor,children:e.titulo});return(0,t.jsxs)("div",{className:"MenuLocal",...e?{id:e}:{},children:[h&&h.length>1&&(0,t.jsxs)("div",{className:` 6 ${a.default.menuLocal} 7 ${y?a.default.sticky:""} 8 ${!h||h&&h.length<=1?a.default.hide:""}
9 `,style:{top:k-1+"px"},ref:f,children:[(0,t.jsxs)(i.default,{className:a.default.menuLocal__container,children:[(0,t.jsx)("ul",{className:a.default.menuLocal__list,children:h?.map(e=>(0,t.jsx)("li",{className:`${a.default.menuLocal__listItem} ${e.slug===S?a.default.seleccionado:a.default.noSeleccionado}`,children:(0,t.jsx)(j,{item:e})},e.slug))}),(0,t.jsxs)("button",{className:` 10 ${a.default.collapseExpandButton} 11 ${P?a.default.isExpanded:a.default.isCollapsed} 12 `,onClick:()=>D(!P),children:[(0,t.jsx)("span",{className:a.default.expandIcon,children:(0,t.jsx)(r.default,{})}),(0,t.jsx)("span",{className:a.default.collapseIcon,children:(0,t.jsx)(s.default,{})})]})]}),(0,t.jsx)("div",{className:`${a.default.submenu} ${P?a.default.visibleSubmenu:""}`,children:(0,t.jsx)("ul",{className:a.default.submenu__list,children:h?.map(e=>(0,t.jsx)("li",{className:` 13 ${a.default.submenu__listItem} 14 ${e.slug===S?a.default.hideMenuItem:""}`,children:(0,t.jsx)(j,{item:e})},e.slug))})})]}),(0,t.jsx)("div",{ref:g,style:{height:"1px"},children:(0,t.jsx)("span",{style:{display:"none"},children:"Menu placeholder"})})]})}])},712575,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(978877),r=e.i(283231),s=e.i(970435),n=e.i(618566);e.s(["default",0,function({children:e,libro:o,index:l}){let{pageData:c}=(0,i.usePageData)(),u=(0,r.useModuleGAMetadata)(),d=(0,n.usePathname)();return(0,t.jsx)("span",{onClick:()=>(0,a.bookClickEvent)({...c.ga,tipoPagina:(0,a.convertPageType)(c.tipoPagina),urlPagina:c.tipoPagina===s.TIPO_PAGINA_API.HOME?"/":d,tipoClick:"image",items:[{item_name:o.titulo,item_id:o.idPlaneta,price:o.precioNumero,item_brand:o.nombreEditorial,item_category:o?.tematicaPrincipal?.nombre,item_category2:o.nombresSubtematicas,item_category3:o.nombreColeccion,item_category4:o?.autores?.map(e=>e.nombre),item_variant:o.presentacion,index:l,quantity:1}],idModuloPadre:u?.metadatosModulo.id,nombreModuloPadre:u?.metadatosModulo.nombre}),children:e})}])},188082,e=>{e.v({AutorLibros:"BibliografiaCompleta-module-scss-module__alGRZW__AutorLibros",AutorLibros__editorial:"BibliografiaCompleta-module-scss-module__alGRZW__AutorLibros__editorial",AutorLibros__list:"BibliografiaCompleta-module-scss-module__alGRZW__AutorLibros__list",AutorLibros__presentacionLibro:"BibliografiaCompleta-module-scss-module__alGRZW__AutorLibros__presentacionLibro",AutorLibros__titulo:"BibliografiaCompleta-module-scss-module__alGRZW__AutorLibros__titulo",bibliografia__footer:"BibliografiaCompleta-module-scss-module__alGRZW__bibliografia__footer","blink-animation":"BibliografiaCompleta-module-scss-module__alGRZW__blink-animation",contenedor_imagen:"BibliografiaCompleta-module-scss-module__alGRZW__contenedor_imagen"})},142487,e=>{e.v({"blink-animation":"UnorderedList-module-scss-module__fTvrRG__blink-animation",unorderedList:"UnorderedList-module-scss-module__fTvrRG__unorderedList"})},132111,e=>{"use strict";var t=e.i(843476),a=e.i(188082),i=e.i(271645),r=e.i(691630),s=e.i(142487);function n({children:e,className:a=null}){return(0,t.jsx)("ul",{className:`${s.default.unorderedList} ${a||""}`,children:e})}var o=e.i(712575),l=e.i(522016);function c({libro:e,index:i}){return(0,t.jsxs)("li",{children:[(0,t.jsx)("p",{className:a.default.AutorLibros__titulo,children:(0,t.jsx)(o.default,{libro:e,index:i,children:e.url?(0,t.jsx)(l.default,{prefetch:!1,href:`${e.url}`,children:e.titulo}):(0,t.jsx)("span",{children:e.titulo})})}),(0,t.jsxs)("p",{className:a.default.AutorLibros__editorial,children:[e.fechaPublicacion&&(0,t.jsxs)("span",{children:[e.fechaPublicacion," -"]})," ",e.nombreEditorial&&(0,t.jsx)("span",{className:a.default.AutorLibros__editorial,children:e.nombreEditorial})]}),(0,t.jsxs)("p",{className:a.default.AutorLibros__presentacionLibro,children:[e.soporte&&(0,t.jsx)("span",{children:e.soporte}),e.presentacion&&(0,t.jsxs)("span",{children:[" - ",e.presentacion]})]})]})}var u=e.i(95187);let d=(0,u.createServerReference)("60b18626bdca588d55d17c9a1a1c0e9be4bd993df7",u.callServer,void 0,u.findSourceMapURL,"getLibrosDe");var h=e.i(389649);e.s(["default",0,function(e){let s=e.libros.length,[o,l]=(0,i.useTransition)(),[u,m]=(0,i.useState)(1),[_,p]=(0,i.useState)([]),[f,g]=(0,i.useState)([]),[b,E]=(0,i.useState)(s>=15);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n,{className:a.default.AutorLibros__list,children:(0,t.jsx)(t.Fragment,{children:f?.map((e,a)=>(0,t.jsx)(c,{libro:e,index:a},e.id))})}),(0,t.jsxs)("div",{className:a.default.bibliografia__footer,children:[b&&(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(h.default,{}):(0,t.jsx)(r.default,{variant:"down",text:e.mostrarMas,onClickEvent:()=>{l(async()=>{let t=u+1;m(t);let{response:a}=await d(e.idSeudonimo,t);_.push(a?.libros.length),p(_),g(f.concat(a.libros)),a?.paginacion===null&&E(!1)})}})}),u>1&&(0,t.jsx)(r.default,{variant:"up",text:e.mostrarMenos,onClickEvent:()=>{let t=_[_.length-1];_.pop(),p(_),g(e=>e.length<=t?[]:e.slice(0,e.length-t)),m(u-1),E(e.libros.length>=15);let a=document.getElementById(e.slug);a?.scrollIntoView()}})]})]})}],132111)},144501,e=>{e.v({activo:"ReproductorVideos-module-scss-module__KwpE4G__activo","blink-animation":"ReproductorVideos-module-scss-module__KwpE4G__blink-animation",listadoVideos:"ReproductorVideos-module-scss-module__KwpE4G__listadoVideos",listadoVideos__imageWrapper:"ReproductorVideos-module-scss-module__KwpE4G__listadoVideos__imageWrapper",listadoVideos__inner:"ReproductorVideos-module-scss-module__KwpE4G__listadoVideos__inner",listadoVideos__item:"ReproductorVideos-module-scss-module__KwpE4G__listadoVideos__item",listadoVideos__lista:"ReproductorVideos-module-scss-module__KwpE4G__listadoVideos__lista",listadoVideos__text:"ReproductorVideos-module-scss-module__KwpE4G__listadoVideos__text",listadoVideos__title:"ReproductorVideos-module-scss-module__KwpE4G__listadoVideos__title",video:"ReproductorVideos-module-scss-module__KwpE4G__video",videoDescription:"ReproductorVideos-module-scss-module__KwpE4G__videoDescription",videoDescription__descripcion:"ReproductorVideos-module-scss-module__KwpE4G__videoDescription__descripcion",videoDescription__title:"ReproductorVideos-module-scss-module__KwpE4G__videoDescription__title",video__descriptionWrapper:"ReproductorVideos-module-scss-module__KwpE4G__video__descriptionWrapper",video__item:"ReproductorVideos-module-scss-module__KwpE4G__video__item",video__wrapper:"ReproductorVideos-module-scss-module__KwpE4G__video__wrapper",videos:"ReproductorVideos-module-scss-module__KwpE4G__videos",videosWrapper__widthoutVideoList:"ReproductorVideos-module-scss-module__KwpE4G__videosWrapper__widthoutVideoList"})},166209,e=>{"use strict";var t=e.i(843476),a=e.i(144501),i=e.i(271645),r=e.i(691773),s=e.i(247167);function n({video:e}){if("vimeo"===e.tipo)return(0,t.jsx)("iframe",{className:a.default.video__item,src:`https://player.vimeo.com/video/${e.videoId}`,allow:"autoplay; fullscreen; picture-in-picture",sandbox:"allow-same-origin allow-scripts allow-presentation",allowFullScreen:!0,frameBorder:"0",loading:"lazy"});if("mp4"===e.tipo){let i=s.default.env.IMAGE_HOST||"https://pdlibrosmex.cdnstatics2.com",r=`${i}${e.archivo.enlace}`;return(0,t.jsx)("video",{width:"640",height:"480",controls:!0,className:a.default.video__item,children:(0,t.jsx)("source",{src:r,type:"video/mp4"})},e.id)}return(0,t.jsx)("iframe",{className:a.default.video__item,sandbox:"allow-same-origin allow-scripts allow-presentation",src:`https://www.youtube.com/embed/${e.videoId}`,title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",frameBorder:"0",allowFullScreen:!0,loading:"lazy"})}e.s(["default",0,function({video:e}){let[s,o]=(0,i.useState)(!1),{ref:l,entry:c}=(0,r.useIntersection)(),u=(0,i.useRef)(null);return(0,i.useEffect)(()=>{c&&c.isIntersecting&&!s&&o(!0)},[c?.isIntersecting]),(0,t.jsx)("div",{ref:l,className:a.default.video,children:(0,t.jsx)("div",{ref:u,className:a.default.video__wrapper,children:s&&(0,t.jsx)(n,{video:e})})})}],166209)},472676,e=>{"use strict";var t=e.i(843476),a=e.i(144501),i=e.i(271645),r=e.i(824526),s=e.i(81143),n=e.i(6
1457688);function o({video:e}){return e.thumbnail?(0,t.jsx)(r.default,{img:e.thumbnail,thumbKey:"m_100_53_crop",sources:[{thumbKey:"d_195_105_crop",media:"tablet"}],alt:e.titulo,placeholder:s.IMAGEPLACEHOLDERS.MINIATURA_VIDEO}):(0,t.jsx)(n.default,{src:`https://img.youtube.com/vi/${e.videoId}/mqdefault.jpg`,width:"320",height:"180",className:"nextImageFill",alt:e.titulo,unoptimized:!0})}var l=e.i(166209),c=e.i(64887);function u({video:e}){return(0,t.jsx)(t.Fragment,{children:(e?.titulo||e?.descripcion)&&(0,t.jsxs)("div",{className:a.default.videoDescription,children:[e.titulo&&(0,t.jsx)("p",{className:a.default.videoDescription__title,children:(0,t.jsx)(c.default,{rawHtml:e.titulo})})," ",e.descripcion&&(0,t.jsx)("p",{className:a.default.videoDescription__descripcion,children:(0,t.jsx)(c.default,{rawHtml:e.descripcion})})]})})}e.s(["default",0,function({title:e,videos:r}){let[s,n]=(0,i.useState)(r[0]?r[0]:null);return(0,i.useEffect)(()=>{r.length>0&&n(r[0])},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:a.default.videos,children:[(0,t.jsx)(l.default,{video:s}),(0,t.jsx)("div",{className:a.default.listadoVideos,children:(0,t.jsxs)("div",{className:a.default.listadoVideos__inner,children:[(0,t.jsx)("h3",{className:a.default.listadoVideos__title,children:e}),(0,t.jsx)("div",{className:a.default.listadoVideos__lista,children:r.map(e=>(0,t.jsxs)("div",{className:`${a.default.listadoVideos__item} ${e.videoId===s?.videoId?a.default.activo:""}`,onClick:()=>{n(e)},children:[(0,t.jsx)("div",{className:a.default.listadoVideos__imageWrapper,children:(0,t.jsx)(o,{video:e})}),(0,t.jsx)("div",{className:a.default.listadoVideos__text,children:(0,t.jsx)("p",{children:e.titulo})})]},e.id))})]})})]}),(0,t.jsx)(u,{video:s})]})}],472676)},904492,e=>{"use strict";var t=e.i(843476),a=e.i(283231),i=e.i(978877),r=e.i(970435),s=e.i(10655);e.s(["default",0,function({children:e,editorial:n,variant:o,className:l}){let{pageData:c}=(0,i.usePageData)(),u=(0,a.useModuleGAMetadata)();return(0,t.jsx)("div",{className:"TaggingEditorial",onClick:e=>{c.tipoPagina===r.TIPO_PAGINA_API.HOME&&(0,s.contentClickEvent)({tipoPagina:(0,s.convertPageType)(c.tipoPagina),urlPagina:"/",tipoClick:"image",nombreSeccionPadre:u?.metadatosSeccion?.nombre,nombreContenido:n.nombre,tipoContenido:"Otros",tipoCta:"card"})},children:e})}])},534477,e=>{e.v({"blink-animation":"AutorRetrato-module-scss-module__Zw7d6W__blink-animation",retrato:"AutorRetrato-module-scss-module__Zw7d6W__retrato",retrato__copyright:"AutorRetrato-module-scss-module__Zw7d6W__retrato__copyright",retrato__imagen:"AutorRetrato-module-scss-module__Zw7d6W__retrato__imagen",retrato__innerwrapper:"AutorRetrato-module-scss-module__Zw7d6W__retrato__innerwrapper",retrato__nombre:"AutorRetrato-module-scss-module__Zw7d6W__retrato__nombre",retrato__wrapper:"AutorRetrato-module-scss-module__Zw7d6W__retrato__wrapper"})},563144,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("40ee3f13eb96b410378788c358a048ffc66ed52684",t.callServer,void 0,t.findSourceMapURL,"removeFavoriteAutor");e.s(["removeFavoriteAutor",0,a])},897580,e=>{"use strict";var t=e.i(843476),a=e.i(156372),i=e.i(330580),r=e.i(539912),s=e.i(271645),n=e.i(88205),o=e.i(936540),l=e.i(534477),c=e.i(522016),u=e.i(824526),d=e.i(81143);function h({nombre:e,imagen:a,copyright:i,className:r,mostrarNombre:s=!1,url:n}){return(0,t.jsx)("div",{className:`${l.default.retrato__wrapper} ${r||""}`,children:(0,t.jsxs)("figure",{className:l.default.retrato,children:[(0,t.jsx)("div",{className:l.default.retrato__innerwrapper,children:(0,t.jsx)(u.default,{img:a,thumbKey:"d_300_300_crop",sources:[{thumbKey:"d_380_380_crop",media:"tablet"}],alt:"Retrato de "+e,className:l.default.retrato__imagen,placeholder:d.IMAGEPLACEHOLDERS.USUARIO})}),s&&e&&(0,t.jsx)("div",{className:l.default.retrato__nombre,children:n?(0,t.jsx)(c.default,{prefetch:!1,href:`${n}`,children:e}):(0,t.jsx)("span",{children:e})}),i&&(0,t.jsxs)("figcaption",{className:l.default.retrato__copyright,children:[(0,t.jsx)("span",{children:"©"})," ",i]})]})})}var m=e.i(822596),_=e.i(95187);let p=(0,_.createServerReference)("408e9189b038e6a9111e7620a3a0bd3da78f0b9419",_.callServer,void 0,_.findSourceMapURL,"addFavoriteAutor");var f=e.i(563144),g=e.i(10655),b=e.i(978877),E=e.i(618566),v=e.i(208549),A=e.i(315245);function T({authorIsInFavorites:e=!1,genero:a="femenino",dictionary:i}){let{t:r}=(0,m.getDictionary)(i);return(0,t.jsxs)("div",{className:n.default.modal__headerWithIcon,children:[(0,t.jsx)("span",{className:n.default.modal__headerWithIcon__icon,children:(0,t.jsx)(A.default,{})}),(0,t.jsx)("p",{className:n.default.modal__headerWithIcon__text,children:r(e?"femenino"===a?"quitarAutoraCorto":"quitarAutorCorto":"añadirAMisAutores")})]})}var C=e.i(970496);
14function y({autor:e,dictionary:a,children:i,closeParentModal:r,estado:l,defaultDict:c}){let{t:u}=(0,m.getDictionary)(a),[d,_]=(0,s.useTransition)(),{pageData:A}=(0,b.usePageData)(),x=(0,E.usePathname)(),S=async()=>{_(async()=>{if(l)await (0,f.removeFavoriteAutor)({idsAutores:[e.id]});else{await p({idsAutores:[e.id]});let t={items:[{item_category4:A?.ga?.autor}]};(0,g.wishlistEvent)({...t,tipoPagina:(0,g.convertPageType)(A?.tipoPagina),urlPagina:x})}await r()})};return(0,t.jsxs)("div",{className:(0,C.classNames)("ModalAutorFavorito",n.default.modal2Columnas),children:[(0,t.jsx)(v.default,{defaultDict:c,closeAction:e=>{e.stopPropagation(),r()},className:n.default.modal2Columnas__cabeceraMobile,children:(0,t.jsx)(T,{dictionary:a,authorIsInFavorites:l,genero:e.genero})}),(0,t.jsxs)("div",{className:n.default.modal2Columnas__inner,children:[(0,t.jsx)("div",{className:n.default.modal2Columnas__autor,children:(0,t.jsx)(h,{nombre:e.nombre,imagen:e.imagen,copyright:e.copyrightFoto,mostrarNombre:!0,className:n.default.modalRetrato})}),(0,t.jsxs)("div",{className:n.default.modal2Columnas__content,children:[(0,t.jsx)(v.default,{defaultDict:c,closeAction:e=>{e.stopPropagation(),r()},className:n.default.modal2Columnas__cabeceraDesktop,children:(0,t.jsx)(T,{dictionary:a,authorIsInFavorites:l,genero:e.genero})}),i||(0,t.jsx)("div",{className:n.default.anadirAutorButton,children:(0,t.jsx)(o.default,{buttonType:"submit",variant:"primary",onClick:S,disabled:d,children:u(l?"femenino"===e.genero?"quitarAutora":"quitarAutor":"femenino"===e.genero?"anadirAutora":"anadirAutor")})})]})]})]})}e.s(["default",0,function(e){let{autor:s,onlyIcon:n=!1,bgMode:o="light",textInOneLine:l=!1,estadoBoton:c=!1,dictionary:u,children:d,defaultDict:h}=e,{refModal:m,openModal:_,closeModal:p,isOpen:f}=(0,i.default)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{type:"autorFavorito",genero:s.genero,onClick:()=>{_()},onlyIcon:n,fill:c,loadingIsInFavorite:!1,bgMode:o,dictionary:u,textInOneLine:l}),(0,t.jsx)(r.Modal,{isOpen:f,ref:m,handleClose:p,closeOutsideClose:!0,id:`guardarAutorFav_${s.id}`,variant:"no-padding",children:(0,t.jsx)(y,{defaultDict:h,dictionary:u,autor:s,closeParentModal:p,estado:c,children:d})})]})}],897580)},868983,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.s(["default",0,function({domainId:e}){return(0,a.useEffect)(()=>{let t=document.createElement("script");t.src="https://cookie-cdn.cookiepro.com/scripttemplates/otSDKStub.js",t.type="text/javascript",t.setAttribute("data-domain-script",e),document.body.appendChild(t)},[]),(0,t.jsx)(t.Fragment,{})}])},232615,e=>{"use strict";e.s(["birthDateValidation",0,e=>{let t="";if(!e)return t;if(!/^(?:(?:19|20)\d\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/.test(e))return"fechaNoValida";let[a,i,r]=e.split("-").map(Number),s=new Date(a,i-1,r);return!1==(s.getFullYear()===a&&s.getMonth()===i-1&&s.getDate()===r)&&(t="fechaNoValida"),t},"captchaValidation",0,e=>{let t="";return(!e||e.trim().length<100)&&(t="captchaObligatorio"),t},"emailValidation",0,e=>{let t="";return e?e.trim().match(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/)?["gmai","gemai","gemail","gmal","gmial","outlok","otlook","outllok","yaho","yahooo","yaoo","yhoo","yaho","hotmai","hotmil","hoitmail"].includes(e.trim().split("@")[1]?.split(".")[0])&&(t="emailNoValido"):t="emailNoValido":t="emailRequerido",t},"nameValidation",0,e=>{let t="";return e.trim().length<3?t="nombre3Caracteres":/^[a-zA-Z\s]+$/.test(e.trim())||(t="nombreNoNumeros"),t},"passwordRepeatedValidation",0,(e,t)=>e!==t?"contrasenasNoCoinciden":null,"passwordValidation",0,e=>{let t=null;return e?e.length<8?t="contrasena8Caracteres":/[A-Z]/.test(e)?/[0-9]/.test(e)?/[ !"#\$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]/.test(e)||(t="contrasenaCaracterEspecial"):t="contrasenaUnNumero":t="contrasenaLetraMayus":t="contrasenaEsObligatoria",t},"postalCodeValidation",0,e=>"","privacyPolicyValidation",0,e=>{let t="";return e||(t="leerAceptarPoliticaPrivacidad"),t}])},665211,e=>{e.v({"blink-animation":"FieldValidationText-module-scss-module__ySfHWq__blink-animation",item:"FieldValidationText-module-scss-module__ySfHWq__item","item--error":"FieldValidationText-module-scss-module__ySfHWq__item--error","item--success":"FieldValidationText-module-scss-module__ySfHWq__item--success"})},177936,e=>{"use strict";var t=e.i(843476),a=e.i(665211);e.s(["default",0,function({children:e,className:i,variant:r="error"}){return(0,t.jsx)("p",{className:`${a.default.item} ${"error"===r?a.default["item--error"]:a.default["item--success"]} ${i||""}`,children:e})}])},187536,e=>{e.v({"blink-animation":"contactar-module-scss-module__FCDlKq__blink-animation",bookFilmRights__image:"contactar-module-scss-module__FCDlKq__bookFilmRights__image",bookFilmRights__imageLink:"contactar-module-scss-module__FCDlKq__bookFilmRights__imageLink",bookFilmRights__imageWrapper:"contactar-module-scss-module__FCDlKq__bookFilmRights__imageWrapper",comercialPlaneta__image:"contactar-module-scss-module__FCDlKq__comercialPlaneta__image",comercialPlaneta__imageLink:"contactar-module-scss-module__FCDlKq__comercialPlaneta__imageLink",comercialPlaneta__imageWrapper:"contactar-module-scss-module__FCDlKq__comercialPlaneta__imageWrapper",contactForm:"contactar-module-scss-module__FCDlKq__contactForm",contactForm__politicaPrivacidad:"contactar-module-scss-module__FCDlKq__contactForm__politicaPrivacidad",contactForm__submitButton:"contactar-module-scss-module__FCDlKq__contactForm__submitButton",contactSeccionTitle:"contactar-module-scss-module__FCDlKq__contactSeccionTitle",contactar__address:"contactar-module-scss-module__FCDlKq__contactar__address",contactar__columna50:"contactar-module-scss-module__FCDlKq__contactar__columna50",contactar__formWrapper:"contactar-module-scss-module__FCDlKq__contactar__formWrapper",contactar__seccion:"contactar-module-scss-module__FCDlKq__contactar__seccion",contactar__text:"contactar-module-scss-module__FCDlKq__contactar__text",contactar__text__latam:"contactar-module-scss-module__FCDlKq__contactar__text__latam",errorMsg:"contactar-module-scss-module__FCDlKq__errorMsg",linkButton:"contactar-module-scss-module__FCDlKq__linkButton",successMsg:"contactar-module-scss-module__FCDlKq__successMsg",tituloPagina:"contactar-module-scss-module__FCDlKq__tituloPagina",universoDeLetrasImage:"contactar-module-scss-module__FCDlKq__universoDeLetrasImage",universoDeLetrasImageLink:"contactar-module-scss-module__FCDlKq__universoDeLetrasImageLink",wrapperFlex:"contactar-module-scss-module__FCDlKq__wrapperFlex",wrapperFlexReverse:"contactar-module-scss-module__FCDlKq__wrapperFlexReverse"})},86445,e=>{e.v({"blink-animation":"LeerMasInline-module-scss-module__JtAO7a__blink-animation",button:"LeerMasInline-module-scss-module__JtAO7a__button"})},368611,e=>{e.v({"blink-animation":"PrivacyPolicyBox-module-scss-module__YTZBFa__blink-animation",box:"PrivacyPolicyBox-module-scss-module__YTZBFa__box",box__content:"PrivacyPolicyBox-module-scss-module__YTZBFa__box__content",box__title:"PrivacyPolicyBox-module-scss-module__YTZBFa__box__title"})},240381,e=>{e.v({"blink-animation":"SelectWrapper-module-scss-module__r_PUmG__blink-animation",icon:"SelectWrapper-module-scss-module__r_PUmG__icon",item:"SelectWrapper-module-scss-module__r_PUmG__item","item--error":"SelectWrapper-module-scss-module__r_PUmG__item--error"})},232189,(e,t,a)=>{"use strict";
14t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},865156,(e,t,a)=>{"use strict";var i=e.r(232189);function r(){}function s(){}s.resetWarningCache=r,t.exports=function(){function e(e,t,a,r,s,n){if(n!==i){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:r};return a.PropTypes=a,a}},745009,(e,t,a)=>{t.exports=e.r(865156)()},552210,(e,t,a)=>{"use strict";var i="function"==typeof Symbol&&Symbol.for,r=i?Symbol.for("react.element"):60103,s=i?Symbol.for("react.portal"):60106,n=i?Symbol.for("react.fragment"):60107,o=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,u=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.async_mode"):60111,h=i?Symbol.for("react.concurrent_mode"):60111,m=i?Symbol.for("react.forward_ref"):60112,_=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.suspense_list"):60120,f=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,b=i?Symbol.for("react.block"):60121,E=i?Symbol.for("react.fundamental"):60117,v=i?Symbol.for("react.responder"):60118,A=i?Symbol.for("react.scope"):60119;function T(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case h:case n:case l:case o:case _:return e;default:switch(e=e&&e.$$typeof){case u:case m:case g:case f:case c:return e;default:return t}}case s:return t}}}function C(e){return T(e)===h}a.AsyncMode=d,a.ConcurrentMode=h,a.ContextConsumer=u,a.ContextProvider=c,a.Element=r,a.ForwardRef=m,a.Fragment=n,a.Lazy=g,a.Memo=f,a.Portal=s,a.Profiler=l,a.StrictMode=o,a.Suspense=_,a.isAsyncMode=function(e){return C(e)||T(e)===d},a.isConcurrentMode=C,a.isContextConsumer=function(e){return T(e)===u},a.isContextProvider=function(e){return T(e)===c},a.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},a.isForwardRef=function(e){return T(e)===m},a.isFragment=function(e){return T(e)===n},a.isLazy=function(e){return T(e)===g},a.isMemo=function(e){return T(e)===f},a.isPortal=function(e){return T(e)===s},a.isProfiler=function(e){return T(e)===l},a.isStrictMode=function(e){return T(e)===o},a.isSuspense=function(e){return T(e)===_},a.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===h||e===l||e===o||e===_||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===c||e.$$typeof===u||e.$$typeof===m||e.$$typeof===E||e.$$typeof===v||e.$$typeof===A||e.$$typeof===b)},a.typeOf=T},179684,(e,t,a)=>{"use strict";t.exports=e.r(552210)},398437,(e,t,a)=>{"use strict";var i=e.r(179684),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return i.isMemo(e)?n:o[e.$$typeof]||r}o[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[i.Memo]=n;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,_=Object.prototype;t.exports=function e(t,a,i){if("string"!=typeof a){if(_){var r=m(a);r&&r!==_&&e(t,r,i)}var n=u(a);d&&(n=n.concat(d(a)));for(var o=l(t),p=l(a),f=0;f<n.length;++f){var g=n[f];if(!s[g]&&!(i&&i[g])&&!(p&&p[g])&&!(o&&o[g])){var b=h(a,g);try{c(t,g,b)}catch(e){}}}}return t}},225615,855515,38869,455263,e=>{"use strict";var t,a,i=e.i(970435),r=e.i(271645);function s(e,t,{getInitialValueInEffect:a}={getInitialValueInEffect:!0}){let[i,n]=(0,r.useState)(a?t:!!("u">typeof window&&"matchMedia"in window)&&window.matchMedia(e).matches),o=(0,r.useRef)(null);return(0,r.useEffect)(()=>
14{if("matchMedia"in window){o.current=window.matchMedia(e),n(o.current.matches);var t=o.current,a=e=>n(e.matches);try{return t.addEventListener("change",a),()=>t.removeEventListener("change",a)}catch(e){return t.addListener(a),()=>t.removeListener(a)}}},[e]),i}e.s(["default",0,function(){let e=s("(min-width: 1100px)"),t=s(`(min-width: ${i.BREAKPOINTS.BREAKPOINT_S}px)`),a=s(`(min-width: ${i.BREAKPOINTS.BREAKPOINT}px)`),r=s(`(min-width: ${i.BREAKPOINTS.BREAKPOINT}px)`),n=s(`(min-width: ${i.BREAKPOINTS.BREAKPOINT_L}px)`);return{breakpointMenu:e,isMobile:!a,isTablet:t,isLargerTablet:a,isBreakpoint:r,isLargerDesktop:n,isLargerDesktopXL:s(`(min-width: ${i.BREAKPOINTS.BREAKPOINT_XL}px)`),isMobileBigger:s(`(min-width: ${i.BREAKPOINTS.BREAKPOINT_XS}px)`)}}],225615);var n=e.i(843476),o=e.i(86445),l=e.i(822596);e.s(["default",0,function({truncate:e,dictionary:t,children:a}){let[i,s]=(0,r.useState)(!1),{t:c}=(0,l.getDictionary)(t);return(0,n.jsxs)(n.Fragment,{children:[i?a:a?.slice(0,e),!i&&a.length>e&&(0,n.jsxs)(n.Fragment,{children:["... ",(0,n.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),s(!0)},className:o.default.button,children:c("verMas")})]}),i&&(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),s(!1)},className:o.default.button,children:c("verMenos")})]})]})}],855515);var c=e.i(368611);e.s(["default",0,function({title:e,children:t,className:a}){return(0,n.jsxs)("div",{className:`${c.default.box} ${a||""}`,children:[e&&(0,n.jsx)("p",{className:c.default.box__title,children:e}),(0,n.jsx)("div",{className:c.default.box__content,children:t})]})}],38869);var u=e.i(745009),d=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function h(){return(h=Object.assign.bind()).apply(this,arguments)}function m(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(m(t)),t.handleErrored=t.handleErrored.bind(m(t)),t.handleChange=t.handleChange.bind(m(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(m(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_(t,e);var a=t.prototype;return a.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},a.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise(function(t,a){e.executionResolve=t,e.executionReject=a,e.execute()})},a.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},a.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var a,i,r={},s=Object.keys(e);for(i=0;i<s.length;i++)a=s[i],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,d));return r.createElement("div",h({},t,{ref:this.handleRecaptchaRef}))},t}(r.Component);p.displayName="ReCAPTCHA",p.propTypes={sitekey:u.default.string.isRequired,onChange:u.default.func,grecaptcha:u.default.object,theme:u.default.oneOf(["dark","light"]),type:u.default.oneOf(["image","audio"]),tabindex:u.default.number,onExpired:u.default.func,onErrored:u.default.func,size:u.default.oneOf(["compact","normal","invisible"]),stoken:u.default.string,hl:u.default.string,badge:u.default.oneOf(["bottomright","bottomleft","inline"]),isolated:u.default.bool}
14,p.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var f=e.i(398437);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e}).apply(this,arguments)}var b={},E=0,v="onloadcallback";function A(){return"u">typeof window&&window.recaptchaOptions||{}}let T=(t=function(){var e=A(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+v+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+v+"&render=explicit"},a=a={callbackName:v,globalName:"grecaptcha",attributes:A().nonce?{nonce:A().nonce}:{}},function(e){var i=e.displayName||e.name||"Component",s=function(i){function s(e,t){var a;return(a=i.call(this,e,t)||this).state={},a.__scriptURL="",a}s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.__proto__=i;var n=s.prototype;return n.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+E++),this.__scriptLoaderID},n.setupScriptURL=function(){return this.__scriptURL="function"==typeof t?t():t,this.__scriptURL},n.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},n.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=b[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[a.callbackName]},n.componentDidMount=function(){var e=this,t=this.setupScriptURL(),i=this.asyncScriptLoaderGetScriptLoaderID(),r=a,s=r.globalName,n=r.callbackName,o=r.scriptId;if(s&&void 0!==window[s]&&(b[t]={loaded:!0,observers:{}}),b[t]){var l=b[t];return l&&(l.loaded||l.errored)?void this.asyncScriptLoaderHandleLoad(l):void(l.observers[i]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[i]=function(t){return e.asyncScriptLoaderHandleLoad(t)},b[t]={loaded:!1,observers:c};var u=document.createElement("script");for(var d in u.src=t,u.async=!0,a.attributes)u.setAttribute(d,a.attributes[d]);o&&(u.id=o);var h=function(e){if(b[t]){var a=b[t].observers;for(var i in a)e(a[i])&&delete a[i]}};n&&"u">typeof window&&(window[n]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=b[t];e&&(e.loaded=!0,h(function(t){return!n&&(t(e),!0)}))},u.onerror=function(){var e=b[t];e&&(e.errored=!0,h(function(t){return t(e),!0}))},document.body.appendChild(u)},n.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===a.removeOnUnmount)for(var t=document.getElementsByTagName("script"),i=0;i<t.length;i+=1)t[i].src.indexOf(e)>-1&&t[i].parentNode&&t[i].parentNode.removeChild(t[i]);var r=b[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===a.removeOnUnmount&&delete b[e])},n.render=function(){var t=a.globalName,i=this.props,s=(i.asyncScriptOnLoad,i.forwardedRef),n=function(e,t){if(null==e)return{};var a,i,r={},s=Object.keys(e);for(i=0;i<s.length;i++)t.indexOf(a=s[i])>=0||(r[a]=e[a]);return r}(i,["asyncScriptOnLoad","forwardedRef"]);return t&&"u">typeof window&&(n[t]=void 0!==window[t]?window[t]:void 0),n.ref=s,(0,r.createElement)(e,n)},s}(r.Component),n=(0,r.forwardRef)(function(e,t){return(0,r.createElement)(s,g({},e,{forwardedRef:t}))});return n.displayName="AsyncScriptLoader("+i+")",n.propTypes={asyncScriptOnLoad:u.default.func},(0,f.default)(n,e)})(p);e.s(["default",0,T],455263)},983471,e=>{"use strict";e.i(247167);var t,a=e.i(843476),i=e.i(232615),r=e.i(177936),s=e.i(296175),n=e.i(271645);let o=e=>{let t="";return e.trim().length<8&&(t="name8letras"),t},l=e=>e?"":"seleccioneAsunto",c=e=>e.trim().length<5?"mensaje5Letras":"";var u=e.i(936540),d=e.i(187536),h=e.i(822596),m=e.i(95187);let _=(0,m.createServerReference)("401817b505ee8f0a33ed1f6f29d63441b42cf292ac",m.callServer,void 0,m.findSourceMapURL,"sendContactarForm");var p=e.i(777446),f=e.i(522016),g=e.i(855515),b=e.i(38869),E=e.i(64887),v=e.i(225615),A=e.i(240381);function T(){return(T=Object.assign.bind()).apply(null,arguments)}let C=function(e){return n.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 15 15"},e),t||(t=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.932 5.432a.45.45 0 1 0 .636.636L7.5 4.136l1.932 1.932a.45.45 0 0 0 .636-.636l-2.25-2.25a.45.45 0 0 0-.636 0zm5.136 4.136a.45.45 0 0 0-.636-.636L7.5 10.864 5.568 8.932a.45.45 0 0 0-.636.636l2.25 2.25a.45.45 0 0 0 .636 0z",clipRule:"evenodd"})))};function y({children:e,className:t,error:i=!1}){return(0,a.jsxs)("div",{className:`${A.default.item} ${t||""} ${i?A.default["item--error"]:""}`,children:[e,(0,a.jsx)(C,{className:A.default.icon})]})}var x=e.i(455263);e.s(["default",0,function({contactarDict:e,accesoDict:t,defaultDict:m,legalData:A}){let{isLargerTablet:T}=(0,v.default)(),{t:C}=(0,h.getDictionary)(e),{t:S}
14=(0,h.getDictionary)(t),[N,w]=(0,n.useState)(""),[I,k]=(0,n.useState)(!1),[L,O]=(0,n.useState)({name:"",email:"",subject:"",message:"",privacyPolicy:"",respuestaCaptcha:""}),[P,D]=(0,n.useState)({type:"",message:""}),R=(0,n.useRef)(null),M=async e=>{e.preventDefault(),k(!0);let t=e.target.name.value,a=e.target.email.value,r=e.target.subject.value,s=e.target.message.value,n=e.target?.commercialCommunications?.checked??null,u=e.target?.companiesCommercialCommunications?.checked??null,d=e.target.privacyPolicy.checked;if(!(({name:e,email:t,subject:a,message:r,privacyPolicy:s,respuestaCaptcha:n})=>{let u={name:"",email:"",subject:"",message:"",privacyPolicy:"",respuestaCaptcha:""},d=!0;for(let h in u.name=o(e),u.email=(0,i.emailValidation)(t),u.subject=l(a),u.message=c(r),u.privacyPolicy=(0,i.privacyPolicyValidation)(s),u.respuestaCaptcha=(0,i.captchaValidation)(n||""),u)if(u[h]?.length>0){d=!1;break}return O(u),d})({name:t,email:a,subject:r,message:s,privacyPolicy:d,respuestaCaptcha:N}))return void k(!1);let h=await _({nombre:t,email:a,asunto:r,mensaje:s,checkComercial:n,checkEmpresas:u,checkPoliticaPrivacidad:d,respuestaCaptcha:N});if(!h.response.success){R.current&&R.current.reset(),w(""),k(!1),D({type:"error",message:h.response?.message});return}k(!1),D({type:"success",message:h.response?.message}),e.target.name.value="",e.target.email.value="",e.target.subject.value="",e.target.message.value="",e.target.commercialCommunications.checked=!1,e.target.commercialCommunications.checked=!1,e.target.privacyPolicy.checked=!1,R.current.reset(),w("")};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("form",{onSubmit:M,name:"form-contactar",id:"form-contactar",method:"post",children:[(0,a.jsxs)(s.default,{error:!!L.name,children:[(0,a.jsx)("label",{htmlFor:"name",children:C("contactarFormNameLabel")}),(0,a.jsx)("input",{autoComplete:"name",type:"text","aria-label":C("contactarFormNameLabel"),placeholder:C("contactarFormNamePlaceholder"),id:"name",name:"name",onChange:e=>{let t={...L};t.name=o(e.target.value),O(t)}}),L.name&&(0,a.jsx)(r.default,{variant:"error",children:S(L.name)})]}),(0,a.jsxs)(s.default,{error:!!L.email,children:[(0,a.jsx)("label",{htmlFor:"email",children:C("contactarFormEmailLabel")}),(0,a.jsx)("input",{autoComplete:"email",type:"email",inputMode:"email","aria-label":C("contactarFormEmailLabel"),placeholder:C("contactarFormEmailPlaceholder"),id:"email",name:"email",onChange:e=>{let t={...L};t.email=(0,i.emailValidation)(e.target.value),O(t)}}),L.email&&(0,a.jsx)(r.default,{variant:"error",children:S(L.email)})]}),(0,a.jsxs)(s.default,{error:!!L.subject,children:[(0,a.jsx)("label",{htmlFor:"subject",children:C("contactarFormSubjectLabel")}),(0,a.jsx)(y,{error:!!L.subject,children:(0,a.jsx)("select",{id:"subject",name:"subject",onChange:e=>{let t={...L};t.subject=l(e.target.value),O(t)},children:C("contactarFormSubjectOptions")?.map(e=>(0,a.jsx)("option",{value:e.value,children:e.text},e.value))})}),L.subject&&(0,a.jsx)(r.default,{variant:"error",children:S(L.subject)})]}),(0,a.jsxs)(s.default,{error:!!L.message,children:[(0,a.jsx)("label",{htmlFor:"message",children:C("contactarFormMessageLabel")}),(0,a.jsx)("textarea",{id:"message",name:"message",placeholder:C("contactarFormMessagePlaceholder"),onChange:e=>{let t={...L};t.message=c(e.target.value),O(t)}}),L.message&&(0,a.jsx)(r.default,{variant:"error",children:S(L.message)})]}),A&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(s.default,{children:[(0,a.jsx)("label",{children:S("registerPrivacyPolicyBoxTitle")}),(0,a.jsx)(b.default,{children:(0,a.jsx)(E.default,{rawHtml:A?.avisoLegal})})]}),(0,a.jsx)(p.default,{children:(0,a.jsxs)("label",{htmlFor:"commercialCommunications",children:[(0,a.jsx)("div",{children:(0,a.jsx)("input",{type:"checkbox","aria-label":S("registerCommercialCommunicationsLabel"),placeholder:"",id:"commercialCommunications",name:"commercialCommunications"})}),(0,a.jsx)("p",{children:(0,a.jsx)(g.default,{dictionary:m,truncate:T?180:100,children:A?.checks?.checkComercial})})]})}),(0,a.jsx)(p.default,{children:(0,a.jsxs)("label",{htmlFor:"companiesCommercialCommunications",children:[(0,a.jsx)("div",{children:(0,a.jsx)("input",{type:"checkbox","aria-label":S("registerCompaniesCommercialCommunicationsLabel"),placeholder:"",id:"companiesCommercialCommunications",name:"companiesCommercialCommunications"})}),(0,a.jsx)("p",{children:(0,a.jsx)(g.default,{dictionary:m,truncate:T?180:100,children:A?.checks?.checkEmpresas})})]})})]}),(0,a.jsx)(p.default,{error:!!L.privacyPolicy,children:(0,a.jsxs)("label",{htmlFor:"privacyPolicy",children:[(0,a.jsx)("div",{children:(0,a.jsx)("input",{type:"checkbox","aria-label":S("registerPrivacyPolicyLabel"),placeholder:"",id:"privacyPolicy",name:"privacyPolicy",onChange:e=>{let t={...L};t.privacyPolicy=(0,i.privacyPolicyValidation)(e.target.checked),O(t)}})}),(0,a.jsx)("div",{children:(0,a.jsxs)("p",{children:[S("registerPrivacyPolicyLinkTextOne"),(0,a.jsx)(f.default,{prefetch:!1,href:`https://www.planetadelibros.com.mx${S("linkPoliticaPrivacidad")}`,target:"_blank",rel:"noopener noreferrer",children:S("registerPrivacyPolicyLinkTextTwo")})," ","(*)"]})})]})}),(0,a.jsx)(x.default,{ref:R,sitekey:"6LdCqewqAAAAAMSkDpXZLzAa95pu00dexrK-3qO5",onChange:e=>{w(e||"");let t={...L};t.respuestaCaptcha=(0,i.captchaValidation)(e||""),O(t)}}),L.respuestaCaptcha&&(0,a.jsx)(r.default,{variant:"error",children:S(L.respuestaCaptcha)}),(0,a.jsx)(s.default,{children:(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[P.message&&"error"===P.type&&(0,a.jsx)("span",{className:d.default.errorMsg,children:P.message}),P.message&&"success"===P.type&&(0,a.jsx)("span",{className:d.default.successMsg,children:P.message}),(0,a.jsx)(u.default,{className:d.default.contactForm__submitButton,buttonType:"submit",disabled:I,size:"large",children:C("contactarFormSubmitBtn")})]})})]})})}],983471)},283455,e=>{"use strict";var t=e.i(271645);e.s(["default",0,function(e={}){let[a,i]=(0,t.useState)(e.errors);return(0,t.useEffect)(()=>{i(e?.errors)},[e?.errors]),{errors:a,clearError:(e,t)=>
14{a?.[e]&&i({...a,[e]:null})}}}])},824285,e=>{"use strict";var t=e.i(843476),a=e.i(635262),i=e.i(296175),r=e.i(271645),s=e.i(822596),n=e.i(132440),o=e.i(283455),l=e.i(177936),c=e.i(95187);let u=(0,c.createServerReference)("60459591aa11377001cb794143ed64d5d7d6b135d1",c.callServer,void 0,c.findSourceMapURL,"solicitudRecuperarPasswordAction"),d={email:null};e.s(["default",0,function({dict:e,submitBtnSize:c="small",submitBtnClassname:h=""}){let{t:m}=(0,s.getDictionary)(e),[_,p]=(0,r.useActionState)(u,d),{errors:f,clearError:g}=(0,o.default)(_),b=r.default.useRef(null);return b.current&&_.success&&b.current.reset(),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("form",{action:p,ref:b,name:"form-registro",id:"form-recovery-password",children:[(0,t.jsxs)(i.default,{error:f?.email,children:[(0,t.jsx)("label",{htmlFor:"email",children:m("emailLabel")}),(0,t.jsx)("input",{autoComplete:"email",type:"email","aria-label":m("emailLabel"),placeholder:m("emailPlaceholder"),id:"email",name:"email",onChange:()=>g("email")}),f?.email&&(0,t.jsx)(l.default,{variant:"error",children:m(f?.email)})]}),(0,t.jsxs)(i.default,{className:a.default.submitButtonWrapper,children:[_?.success&&(0,t.jsx)(l.default,{className:a.default.recuperarContraseñaEstatica__infoMessage,variant:"success",children:_?.response?.message}),(0,t.jsx)(n.default,{size:c,className:h,defaultTitle:m("solicitarRecuperarContrasena"),loadingTitle:m("solicitarRecuperandoContrasena")})]})]})})}],824285)},835950,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(978877),r=e.i(283231),s=e.i(667963),n=e.i(618566);e.s(["default",0,function({dataFooter:e,className:o}){let{pageData:l}=(0,i.usePageData)(),c=(0,r.useModuleGAMetadata)(),u=(0,n.usePathname)();return(0,t.jsx)(s.default,{data:e,rel:"nofollow",onClick:()=>{(0,a.contentClickEvent)({tipoPagina:(0,a.convertPageType)(l.tipoPagina),urlPagina:u,nombreContenido:"Ir a la sala de prensa",tipoContenido:"Otros",nombreSeccionPadre:c?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"button outline"})},className:o})}])},914534,e=>{e.v({alreadySubscribeText:"Newsletter-module-scss-module__F1D5iG__alreadySubscribeText","blink-animation":"Newsletter-module-scss-module__F1D5iG__blink-animation",newsletter:"Newsletter-module-scss-module__F1D5iG__newsletter",newsletter__button:"Newsletter-module-scss-module__F1D5iG__newsletter__button",newsletter__content:"Newsletter-module-scss-module__F1D5iG__newsletter__content",newsletter__image:"Newsletter-module-scss-module__F1D5iG__newsletter__image",newsletter__imageWrapper:"Newsletter-module-scss-module__F1D5iG__newsletter__imageWrapper",newsletter__text:"Newsletter-module-scss-module__F1D5iG__newsletter__text",newsletter__title:"Newsletter-module-scss-module__F1D5iG__newsletter__title"})},636389,e=>{e.v({articulo:"MiniaturaArticuloModal-module-scss-module__e9jjQq__articulo",articulo__descripcion:"MiniaturaArticuloModal-module-scss-module__e9jjQq__articulo__descripcion",articulo__imagen:"MiniaturaArticuloModal-module-scss-module__e9jjQq__articulo__imagen",articulo__imagenWrapper:"MiniaturaArticuloModal-module-scss-module__e9jjQq__articulo__imagenWrapper",articulo__meta:"MiniaturaArticuloModal-module-scss-module__e9jjQq__articulo__meta",articulo__meta__categoria:"MiniaturaArticuloModal-module-scss-module__e9jjQq__articulo__meta__categoria",articulo__text:"MiniaturaArticuloModal-module-scss-module__e9jjQq__articulo__text",articulo__title:"MiniaturaArticuloModal-module-scss-module__e9jjQq__articulo__title","blink-animation":"MiniaturaArticuloModal-module-scss-module__e9jjQq__blink-animation",newsletter__image:"MiniaturaArticuloModal-module-scss-module__e9jjQq__newsletter__image"})},312548,e=>{e.v({"blink-animation":"TextLineClamp-module-scss-module__9IrtkW__blink-animation",textLineClamp:"TextLineClamp-module-scss-module__9IrtkW__textLineClamp"})},916153,e=>{"use strict";var t=e.i(843476),a=e.i(312548);e.s(["default",0,function({lineClamp:e=0,lineClampMobile:i=0,children:r}){0===i&&(i=e);let s={"--line-clamp-value":e,"--line-clamp-mobile-value":i};return(0,t.jsx)("div",{style:s,className:a.default.textLineClamp,children:r})}])},112557,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("404674496b4fa55743cc381cd4ca09aae4e5d2b7b0",t.callServer,void 0,t.findSourceMapURL,"newsLetterSuscribe");e.s(["newsLetterSuscribe",0,a])},440424,e=>{e.v({"blink-animation":"ContenidoAgradecimiento-module-scss-module__-Wi6SW__blink-animation",modalAgradecimiento:"ContenidoAgradecimiento-module-scss-module__-Wi6SW__modalAgradecimiento",modalAgradecimiento__texto:"ContenidoAgradecimiento-module-scss-module__-Wi6SW__modalAgradecimiento__texto",modalAgradecimiento__titulo:"ContenidoAgradecimiento-module-scss-module__-Wi6SW__modalAgradecimiento__titulo"})},289640,e=>{"use strict";var t=e.i(843476),a=e.i(440424),i=e.i(936540);e.s(["default",0,function({titulo:e,descripcion:r,tituloBoton:s,closeModal:n}){return(0,t.jsxs)("div",{className:a.default.modalAgradecimiento,children:[e&&(0,t.jsx)("p",{className:a.default.modalAgradecimiento__titulo,children:e}),r&&(0,t.jsx)("p",{className:a.default.modalAgradecimiento__texto,children:r}),s&&(0,t.jsx)(i.default,{buttonType:"submit",variant:"primary",onClick:e=>{e.stopPropagation(),n()},children:s})]})}])},649602,e=>{"use strict";var t=e.i(843476),a=e.i(914534),i=e.i(936540),r=e.i(330580),s=e.i(539912),n=e.i(822596);e.i(247167);var o=e.i(271645),l=e.i(636389),c=e.i(64887),u=e.i(824526),d=e.i(81143),h=e.i(916153);function m({newsletter:e}){return(0,t.jsxs)("div",{className:l.default.articulo,children:[(0,t.jsx)(u.default,{img:e.imagenMiniatura,thumbKey:"original",imgSourcesDesktop:e.imagenFondo,alt:`Imagen newsletter ${e.titulo}`,placeholder:d.IMAGEPLACEHOLDERS.NEWSLETTER_MOBILE,className:l.default.newsletter__image}),(0,t.jsxs)("div",{className:l.default.articulo__text,children:[(0,t.jsx)("p",{className:l.default.articulo__title,children:e.titulo}),(0,t.jsx)("div",{className:l.default.articulo__descripcion,children:(0,t.jsx)(h.default,{lineClamp:4,children:(0,t.jsx)(c.default,{rawHtml:e.texto})})})]})]})}var _=e.i(522016),p=e.i(208549),f=e.i(112557),g=e.i(10655),b=e.i(618566),E=e.i(978877),v=e.i(88205),A=e.i(970496),T=e.i(289640);
14function C({dictionary:e,children:a,newsletter:r,closeParentModal:s,isAuth:l}){let{t:c}=(0,n.getDictionary)(e),[u,d]=(0,o.useState)(!1),[h,y]=(0,o.useTransition)(),x=(0,b.usePathname)(),{pageData:S}=(0,E.usePageData)(),N=async()=>{y(async()=>{await (0,f.newsLetterSuscribe)(r.id),(0,g.suscribirseNewsletterEvent)({tituloNewsletter:[r.nombre],tipoPagina:S?.tipoPagina,urlPagina:x}),d(!0)})},w="";return w=c(l?u?"newsletterInfoModalGracias":"newsletterTitleModal":"suscribirse"),(0,t.jsxs)("div",{className:(0,A.classNames)("ModalNewsletter",v.default.modal2Columnas),children:[(0,t.jsx)(p.default,{defaultDict:e,closeAction:e=>{e.stopPropagation(),s()},className:v.default.modal2Columnas__cabeceraMobile,children:w}),(0,t.jsxs)("div",{className:v.default.modal2Columnas__inner,children:[(0,t.jsx)("div",{className:`${v.default.modal2Columnas__miniatura} ${v.default.modal2Columnas__miniatura__fullPadding}`,children:(0,t.jsx)(m,{newsletter:r})}),(0,t.jsxs)("div",{className:v.default.modal2Columnas__content,children:[(0,t.jsx)(p.default,{defaultDict:e,closeAction:e=>{e.stopPropagation(),s()},className:v.default.modal2Columnas__cabeceraDesktop,children:w}),l?(0,t.jsx)(t.Fragment,{children:u?(0,t.jsx)(T.default,{descripcion:(0,t.jsxs)(t.Fragment,{children:[c("newsletterRecuerdaManejarSuscripciones")," ",(0,t.jsxs)(_.default,{prefetch:!1,href:`https://www.planetadelibros.com.mx${c("newsletterInfoModalLinkAreaUrl")}`,children:[" ",c("newsletterInfoModalLinkArea"),"."]})]}),tituloBoton:c("newsletterBotonVolver"),closeModal:s}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:v.default.modalNewsletter__description,children:[c("newsletterInfoModal")," ",(0,t.jsx)(_.default,{prefetch:!1,href:`https://www.planetadelibros.com.mx${c("newsletterInfoModalLinkAreaUrl")}`,children:c("newsletterInfoModalLinkArea")})]}),(0,t.jsxs)("div",{className:v.default.modalNewsletter__buttonContainer,children:[(0,t.jsx)(i.default,{disabled:h,display:"block",buttonType:"submit",variant:"primary",onClick:N,children:c(h?"botonSuscribiendose":"botonSuscribirse")}),(0,t.jsx)(i.default,{display:"block",buttonType:"submit",variant:"secondary",onClick:s,children:c("newsletterNoInteresa")})]})]})}):(0,t.jsx)(t.Fragment,{children:a})]})]})]})}e.s(["default",0,function({newsletter:e,defaultText:o,dictionary:l,isAuth:c,estado:u,children:d}){let{refModal:h,openModal:m,closeModal:_,isOpen:p}=(0,r.default)(),{t:f}=(0,n.getDictionary)(l);return(0,t.jsxs)(t.Fragment,{children:[u?(0,t.jsx)("p",{className:a.default.alreadySubscribeText,children:f("mensajeUsuarioSuscrito")}):(0,t.jsx)(i.default,{type:"button",className:a.default.newsletter__button,onClick:m,children:e.textoBoton?e.textoBoton:o}),(0,t.jsx)(s.Modal,{isOpen:p,ref:h,handleClose:_,closeOutsideClose:!0,id:"newsletter",variant:"no-padding",children:(0,t.jsx)(C,{dictionary:l,newsletter:e,closeParentModal:_,isAuth:c,children:d})})]})}],649602)},228823,e=>{"use strict";var t=e.i(843476),a=e.i(522016),i=e.i(157799);e.s(["default",0,function({styles:e,item:r}){let{closeSidebar:s}=(0,i.useCollapsibleSidebarContext)();return(0,t.jsx)(a.default,{prefetch:!1,className:e.filtro__label,href:`${r.url}`,role:"menuItem",onClick:s,children:(r.nombre||r.titulo)??""})}])},778974,e=>{e.v({"blink-animation":"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__blink-animation",current:"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__current",filtros__arrowButton:"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__filtros__arrowButton",filtros__checkbox:"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__filtros__checkbox",filtros__checkboxCollapse:"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__filtros__checkboxCollapse",filtros__collapse:"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__filtros__collapse",filtros__current:"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__filtros__current",filtros__enlace:"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__filtros__enlace",filtros__label:"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__filtros__label",filtros__lista:"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__filtros__lista",filtros__title:"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__filtros__title",filtros__wrapper:"FiltrosClasificacionesEnlaces-module-scss-module__cRKQHa__filtros__wrapper"})},828634,e=>{"use strict";var t=e.i(843476),a=e.i(522016),i=e.i(778974),r=e.i(271645),s=e.i(821136),n=e.i(831507);e.s(["default",0,function({clasificaciones:e,searchParams:o}){let l=o?.slug;o?.slugpadre&&(l=o?.slug+"-"+o?.slugpadre);let c=o?.slugpadre,u=({clasificacion:e,level:o=0})=>{let[d,h]=(0,r.useState)(!0),[m,_]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{e.slug===l||e.slug===c?(_(!0),h(!1)):_(!1)},[e.slug]),e.clasificaciones.length)?(0,t.jsxs)("li",{role:"treeitem","aria-expanded":!d,children:[(0,t.jsxs)("div",{className:i.default.filtros__collapse,children:[(0,t.jsx)(a.default,{prefetch:!1,href:`${e.url}`,className:`${i.default.filtros__enlace} ${m?i.default.current:""}`,children:(0,t.jsx)("span",{className:i.default.filtros__label,children:e.nombre})}),(0,t.jsx)("button",{onClick:()=>h(!d),className:i.default.filtros__arrowButton,children:d?(0,t.jsx)(s.default,{}):(0,t.jsx)(n.default,{})})]}
14),!d&&(0,t.jsx)("ul",{role:"tree",children:e.clasificaciones.map(e=>(0,t.jsx)(u,{clasificacion:e,level:o+1},e.slug))})]}):(0,t.jsx)("li",{children:(0,t.jsx)(a.default,{prefetch:!1,href:`${e.url}`,className:`${i.default.filtros__enlace} ${m?i.default.current:""}`,children:(0,t.jsx)("span",{className:i.default.filtros__label,children:e.nombre})})})};return(0,t.jsx)("ul",{className:i.default.filtros__lista,children:e.map(e=>(0,t.jsx)(u,{clasificacion:e,currentSlug:l},e.slug))})}])},160421,e=>{e.v({"blink-animation":"SortSelect-module-scss-module__Cf-h4G__blink-animation",selected:"SortSelect-module-scss-module__Cf-h4G__selected",sortSelect:"SortSelect-module-scss-module__Cf-h4G__sortSelect",sortSelect__dropdown:"SortSelect-module-scss-module__Cf-h4G__sortSelect__dropdown",sortSelect__dropdownItem:"SortSelect-module-scss-module__Cf-h4G__sortSelect__dropdownItem",sortSelect__input:"SortSelect-module-scss-module__Cf-h4G__sortSelect__input"})},929397,e=>{"use strict";var t,a=e.i(843476),i=e.i(271645),r=e.i(160421),s=e.i(10655),n=e.i(970435),o=e.i(822596),l=e.i(978877),c=e.i(618566);function u(){return(u=Object.assign.bind()).apply(null,arguments)}let d=function(e){return i.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),t||(t=i.createElement("path",{fill:"currentColor",d:"M18.5 16.44V6.75a.75.75 0 0 0-1.5 0v9.69l-2.22-2.22a.75.75 0 1 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 1 0-1.06-1.06zM2 7.25a.75.75 0 0 1 .75-.75h9.5a.75.75 0 0 1 0 1.5h-9.5A.75.75 0 0 1 2 7.25m0 5a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75m0 5a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1-.75-.75"})))};var h=e.i(970496);e.s(["default",0,function({pageExtraData:e,dict:t,onlyFechaCreacion:u,onlyFechaAZ:m,defaultSort:_=null}){let{t:p}=(0,o.getDictionary)(t),{pageData:f}=(0,l.usePageData)(),g=new URLSearchParams((0,c.useSearchParams)()),b=(0,c.usePathname)(),{replace:E}=(0,c.useRouter)(),v=null,A=[];e&&(A=[{label:p("relevancia"),value:(e=>{switch(e){case n.TIPO_PAGINA_API.LISTADO_LIBROS:return n.API_ORDER_PARAM_VALUE.RELEVANCIA_TODOS_LOS_LIBROS;case n.TIPO_PAGINA_API.LISTADO_LIBROS_BOOK_FILM_RIGHTS:case n.TIPO_PAGINA_API.FICHA_CLASIFICACION_BOOK_FILM_RIGHTS:case n.TIPO_PAGINA_API.FICHA_SUBCLASIFICACION_BOOK_FILM_RIGHTS:case n.TIPO_PAGINA_API.BUSCADOR_BOOK_FILM_RIGHTS:return n.API_ORDER_PARAM_VALUE.RELEVANCIA_TODOS_LOS_LIBROS_BFR;case n.TIPO_PAGINA_API.FICHA_TEMATICA:return n.API_ORDER_PARAM_VALUE.RELEVANCIA_TEMATICA;default:return n.API_ORDER_PARAM_VALUE.RELEVANCIA}})(e.tipoPagina)},{label:p("fechaPublicacion"),value:n.API_ORDER_PARAM_VALUE.FECHA_PUBLICACION}]),v=u?[{label:p("fechaCreacionDesc"),value:n.API_ORDER_PARAM_VALUE.FECHA_CREACION_DESC},{label:p("fechaCreacionAsc"),value:n.API_ORDER_PARAM_VALUE.FECHA_CREACION_ASC}]:[{label:p("alfabeticoAZ"),value:n.API_ORDER_PARAM_VALUE.ALFA_ASC},{label:p("alfabeticoZA"),value:n.API_ORDER_PARAM_VALUE.ALFA_DESC}].concat(A),m&&(v=[{label:p("alfabeticoAZ"),value:n.API_ORDER_PARAM_VALUE.ALFA_ASC},{label:p("alfabeticoZA"),value:n.API_ORDER_PARAM_VALUE.ALFA_DESC}]);let[T,C]=(0,i.useState)(!1),y=g.get(n.API_LIBROS_BUSCAR_QUERY_PARAMS.ORDEN||"relevancia")??_,x=v.find(e=>e.value===y)?.label;return(0,a.jsxs)("div",{className:r.default.sortSelect,children:[(0,a.jsxs)("button",{type:"button",className:r.default.sortSelect__input,onClick:()=>{C(!T)},children:[x?(0,a.jsx)("span",{className:r.default.sortSelect__placeholder,children:x.charAt(0).toUpperCase()+x.slice(1)}):(0,a.jsx)("span",{children:p("ordenarPor")}),(0,a.jsx)(d,{})]}),T&&(0,a.jsx)("div",{className:r.default.sortSelect__dropdown,children:v.map(t=>(0,a.jsx)("a",{rel:"noreferrer nofollow",className:(0,h.classNames)(r.default.sortSelect__dropdownItem,y===t.value?r.default.selected:""),onClick:a=>{var i;(a.preventDefault(),y===t.value)?C(!1):(i=t.value,e&&(0,s.ordenarPorEvent)(e.tipoPagina===n.TIPO_PAGINA_API.FICHA_TEMATICA||e.tipoPagina===n.TIPO_PAGINA_API.FICHA_SUBTEMATICA||e.tipoPagina===n.TIPO_PAGINA_API.FICHA_SUBSUBTEMATICA?{tipoPagina:(0,s.convertPageType)(e.tipoPagina),urlPagina:b}:{...f.ga,tipoPagina:(0,s.convertPageType)(e.tipoPagina),urlPagina:b}),g.set(n.API_LIBROS_BUSCAR_QUERY_PARAMS.ORDEN,i),E(`${b}?${g.toString()}`,{scroll:!1}),C(!1))},children:t.label},t.value))})]})}],929397)},234523,e=>{e.v({"blink-animation":"SelectProvicia-module-scss-module__QvHk0W__blink-animation",buttonManual:"SelectProvicia-module-scss-module__QvHk0W__buttonManual",buttonManualWrapper:"SelectProvicia-module-scss-module__QvHk0W__buttonManualWrapper",searchCity:"SelectProvicia-module-scss-module__QvHk0W__searchCity",searchCity__icon:"SelectProvicia-module-scss-module__QvHk0W__searchCity__icon",searchCity__iconClose:"SelectProvicia-module-scss-module__QvHk0W__searchCity__iconClose",searchCity__iconSearch:"SelectProvicia-module-scss-module__QvHk0W__searchCity__iconSearch",searchCity__input:"SelectProvicia-module-scss-module__QvHk0W__searchCity__input",searchCity__inputWrapper:"SelectProvicia-module-scss-module__QvHk0W__searchCity__inputWrapper",searchCity__noResultText:"SelectProvicia-module-scss-module__QvHk0W__searchCity__noResultText",searchCity__resultList:"SelectProvicia-module-scss-module__QvHk0W__searchCity__resultList",searchCity__resultWrapper:"SelectProvicia-module-scss-module__QvHk0W__searchCity__resultWrapper"})},932131,e=>{e.v({"blink-animation":"SocialLoginButtons-module-scss-module__05jYXq__blink-animation",buttonSocial:"SocialLoginButtons-module-scss-module__05jYXq__buttonSocial",buttonSocial__icon:"SocialLoginButtons-module-scss-module__05jYXq__buttonSocial__icon"})},626485,e=>{"use strict";var t,a,i,r,s,n=e.i(247167),o=e.i(843476),l=e.i(221013),c=e.i(866061),u=e.i(932131),d=e.i(271645);
14function h(){return(h=Object.assign.bind()).apply(null,arguments)}let m=function(e){return d.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=d.createElement("path",{fill:"#3B5998",d:"M21.78 1H2.22A1.23 1.23 0 0 0 1 2.22v19.56A1.23 1.23 0 0 0 2.22 23h10.532v-8.507h-2.86v-3.327h2.86V8.718c0-2.841 1.732-4.39 4.28-4.39.853 0 1.706 0 2.558.128v2.96h-1.75c-1.385 0-1.65.66-1.65 1.623v2.118h3.3l-.432 3.327H16.19V23h5.592A1.23 1.23 0 0 0 23 21.78V2.22A1.23 1.23 0 0 0 21.78 1"})))};var _=e.i(522016);function p({text:e="Iniciar sesión con Facebook",className:t}){let a=n.default.env.LOGIN_FACEBOOK_URL||"https://proapi.planetadelibros.com.mx/facebook-login";return(0,o.jsxs)(_.default,{prefetch:!1,href:a,className:`${c.default.button} ${c.default.buttonLarge} ${u.default.buttonSocial} ${t||""}`,children:[(0,o.jsx)(m,{className:u.default.buttonSocial__icon}),(0,o.jsx)("span",{children:e})]})}function f(){return(f=Object.assign.bind()).apply(null,arguments)}let g=function(e){return d.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),a||(a=d.createElement("path",{fill:"#FFC107",d:"M22.786 9.846H21.9V9.8H12v4.4h6.217A6.597 6.597 0 0 1 5.4 12 6.6 6.6 0 0 1 12 5.4c1.682 0 3.213.635 4.379 1.671l3.11-3.11A10.95 10.95 0 0 0 12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11c0-.738-.076-1.457-.214-2.154"})),i||(i=d.createElement("path",{fill:"#FF3D00",d:"m2.269 6.88 3.614 2.65A6.6 6.6 0 0 1 12 5.4c1.683 0 3.213.635 4.379 1.671l3.111-3.11A10.95 10.95 0 0 0 12 1C7.775 1 4.111 3.385 2.27 6.88"})),r||(r=d.createElement("path",{fill:"#4CAF50",d:"M12 23c2.842 0 5.423-1.088 7.375-2.856l-3.404-2.88A6.55 6.55 0 0 1 12 18.6a6.6 6.6 0 0 1-6.206-4.37l-3.587 2.763C4.028 20.556 7.725 23 12 23"})),s||(s=d.createElement("path",{fill:"#1976D2",d:"m22.786 9.846-.009-.046H12v4.4h6.217a6.6 6.6 0 0 1-2.248 3.064l.002-.001 3.404 2.88C19.135 20.364 23 17.5 23 12c0-.738-.076-1.457-.214-2.154"})))};function b({text:e="Iniciar sesión con Google",className:t}){let a=n.default.env.LOGIN_GOOGLE_URL||"https://proapi.planetadelibros.com.mx/google-login";return(0,o.jsxs)(_.default,{prefetch:!1,href:a,className:`${c.default.button} ${c.default.buttonLarge} ${u.default.buttonSocial} ${t||""}`,children:[(0,o.jsx)(g,{className:u.default.buttonSocial__icon}),(0,o.jsx)("span",{children:e})]})}var E=e.i(366219);e.s(["default",0,function({variant:e="horizontal",googleText:t,facebookText:a}){let i=n.default.env.LOGIN_GOOGLE?.toLowerCase()??"False".toLowerCase()??"false",r=n.default.env.LOGIN_FACEBOOK?.toLowerCase()??"False".toLowerCase()??"false";return"false"===i&&"false"===r?null:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:l.default.socialLogin__loginSocialInlineWrapper,children:(0,o.jsxs)("div",{className:`${"horizontal"==e?l.default.socialLogin__horizontal:l.default.socialLogin__vertical}`,children:["true"===i&&(0,o.jsx)(b,{text:t}),"true"===r&&(0,o.jsx)(p,{text:a})]})}),(0,o.jsx)(E.default,{})]})}],626485)},21496,733027,138056,813395,e=>{"use strict";let t;function a(e){return"string"==typeof e||e instanceof String}function i(e){var t;return"object"==typeof e&&null!=e&&(null==e||null==(t=e.constructor)?void 0:t.name)==="Object"}let r="NONE",s="LEFT",n="FORCE_LEFT",o="RIGHT",l="FORCE_RIGHT";function c(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function u(e,t){let a;if(t===e)return!0;let i=Array.isArray(t),r=Array.isArray(e);if(i&&r){if(t.length!=e.length)return!1;for(a=0;a<t.length;a++)if(!u(t[a],e[a]))return!1;return!0}if(i!=r)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){let i=t instanceof Date,r=e instanceof Date;if(i&&r)return t.getTime()==e.getTime();if(i!=r)return!1;let s=t instanceof RegExp,n=e instanceof RegExp;if(s&&n)return t.toString()==e.toString();if(s!=n)return!1;let o=Object.keys(t);for(a=0;a<o.length;a++)if(!Object.prototype.hasOwnProperty.call(e,o[a]))return!1;for(a=0;a<o.length;a++)if(!u(e[o[a]],t[o[a]]))return!1;return!0}return!!t&&!!e&&"function"==typeof t&&"function"==typeof e&&t.toString()===e.toString()}class d{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?r:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?o:s}}function h(e,t){return new h.InputMask(e,t)}function m(e){if(null==e)throw Error("mask property should be defined");return e instanceof RegExp?h.MaskedRegExp:a(e)?h.MaskedPattern:e===Date?h.MaskedDate:e===Number?h.MaskedNumber:Array.isArray(e)||e===Array?h.MaskedDynamic:h.Masked&&e.prototype instanceof h.Masked?e:h.Masked&&e instanceof h.Masked?e.constructor:e instanceof Function?h.MaskedFunction:(console.warn("Mask not found for mask",e),h.Masked)}function _(e){if(!e)throw Error("Options in not defined");if(h.Masked){if(e.prototype instanceof h.Masked)return{mask:e};let{mask:t,...a}=e instanceof h.Masked?{mask:e}:i(e)&&e.mask instanceof h.Masked?e:{};if(t){let e=t.mask;return{...function e(t,a){return Array.isArray(a)?e(t,(e,t)=>a.includes(t)):Object.entries(t).reduce((e,t)=>
vendor: 5,289 bytes, line 14
14{let[i,r]=t;return a(r,i)&&(e[i]=r),e},{})}(t,(e,t)=>!t.startsWith("_")),mask:t.constructor,_mask:e,...a}}}return i(e)?{...e}:{mask:e}}function p(e){if(h.Masked&&e instanceof h.Masked)return e;let t=_(e),a=m(t.mask);if(!a)throw Error("Masked class is not found for provided mask "+t.mask+", appropriate module needs to be imported manually before creating mask.");return t.mask===a&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new a(t)}h.createMask=p;class f{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return null!=e?e:this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return null!=e?e:this.value.length}select(e,t){if(null!=e&&null!=t&&(e!==this.selectionStart||t!==this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}h.MaskElement=f;class g extends f{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,a;return null!=(e=null==(t=(a=this.input).getRootNode)?void 0:t.call(a))?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){return this._handlers.redo&&(90===e.keyCode&&e.shiftKey&&(e.metaKey||e.ctrlKey)||89===e.keyCode&&e.ctrlKey)?(e.preventDefault(),this._handlers.redo(e)):this._handlers.undo&&90===e.keyCode&&(e.metaKey||e.ctrlKey)?(e.preventDefault(),this._handlers.undo(e)):void(!e.isComposing&&this._handlers.selectionChange(e))}_onBeforeinput(e){return"historyUndo"===e.inputType&&this._handlers.undo?(e.preventDefault(),this._handlers.undo(e)):"historyRedo"===e.inputType&&this._handlers.redo?(e.preventDefault(),this._handlers.redo(e)):void 0}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}h.HTMLMaskElement=g;class b extends g{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return null!=this.input.selectionStart?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}h.HTMLMaskElement=g;class E extends g{get _unsafeSelectionStart(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),a=t&&t.anchorOffset,i=t&&t.focusOffset;return null==i||null==a||a<i?a:i}get _unsafeSelectionEnd(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),a=t&&t.anchorOffset,i=t&&t.focusOffset;return null==i||null==a||a>i?a:i}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;let a=this.rootElement.createRange();a.setStart(this.input.firstChild||this.input,e),a.setEnd(this.input.lastChild||this.input,t);let i=this.rootElement,r=i.getSelection&&i.getSelection();r&&(r.removeAllRanges(),r.addRange(a))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}h.HTMLContenteditableMaskElement=E;class v{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return 0===this.states.length}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>v.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}v.MAX_LENGTH=100,h.InputMask=class{constructor(e,t){this.el=e instanceof f?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new E(e):new b(e),this.masked=p(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new v,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateV
14alue(),this._onChange()}maskEquals(e){var t;return null==e||(null==(t=this.masked)?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof h.Masked)&&this.masked.constructor===m(e))return void this.masked.updateOptions({mask:e});let t=e instanceof h.Masked?e:p({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){let a=this._listeners[e];a&&a.forEach(e=>e(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){this.el&&this.el.isActive&&(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){let t=this.masked.unmaskedValue,a=this.masked.value,i=this.masked.rawInputValue,r=this.displayValue,s=this.unmaskedValue!==t||this.value!==a||this._rawInputValue!==i;this._unmaskedValue=t,this._value=a,this._rawInputValue=i,this.el.value!==r&&(this.el.value=r),"auto"===e?this.alignCursor():null!=e&&(this.cursorPos=e),s&&this._fireChangeEvents(),!this._historyChanging&&(s||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){let{mask:t,...a}=e,i=!this.maskEquals(t),r=this.masked.optionsIsChanged(a);i&&(this.mask=t),r&&this.masked.updateOptions(a),(i||r)&&this.updateControl()}updateCursor(e){null!=e&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,s))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;let a=this._listeners[e].indexOf(t);return a>=0&&this._listeners[e].splice(a,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();let t=new d({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),a=this.masked.rawInputValue,i=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,s=a===this.masked.rawInputValue?t.removeDirection:r,n=this.masked.nearestInputPos(t.startChangePos+i,s);s!==r&&(n=this.masked.nearestInputPos(n,r)),this.updateControl(n),delete this._inputEvent}
14_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};class A{static normalize(e){return Array.isArray(e)?e:[e,new A]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}h.ChangeDetails=A;class T{constructor(e,t,a){void 0===e&&(e=""),void 0===t&&(t=0),this.value=e,this.from=t,this.stop=a}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||null!=e&&this.from>=e)return"";let t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";let e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class C{constructor(e){this._value="",this._update({...C.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){void 0===t&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,a){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),new T(this.extractInput(e,t),e)}appendTail(e){return a(e)&&(e=new T(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new A({inserted:e,rawInserted:e})):new A}_appendChar(e,t,a){let i;void 0===t&&(t={});let r=this.state;if([e,i]=this.doPrepareChar(e,t),e&&!(i=i.aggregate(this._appendCharRaw(e,t))).rawInserted&&"pad"===this.autofix){let a=this.state;this.state=r;let s=this.pad(t),n=this._appendCharRaw(e,t);s=s.aggregate(n),n.rawInserted||s.equals(i)?i=s:this.state=a}if(i.inserted){let e,s=!1!==this.doValidate(t);if(s&&null!=a){let t=this.state;if(!0===this.overwrite){e=a.state;for(let e=0;e<i.rawInserted.length;++e)a.unshift(this.displayValue.length-i.tailShift)}let r=this.appendTail(a);if(!((s=r.rawInserted.length===a.toString().length)&&r.inserted)&&"shift"===this.overwrite){this.state=t,e=a.state;for(let e=0;e<i.rawInserted.length;++e)a.shift();s=(r=this.appendTail(a)).rawInserted.length===a.toString().length}s&&r.inserted&&(this.state=t)}
14!s&&(i=new A,this.state=r,a&&e&&(a.state=e))}return i}_appendPlaceholder(){return new A}_appendEager(){return new A}append(e,t,i){let r;if(!a(e))throw Error("value should be string");let s=a(i)?new T(String(i)):i;null!=t&&t.tail&&(t._beforeTailState=this.state),[e,r]=this.doPrepare(e,t);for(let a=0;a<e.length;++a){let i=this._appendChar(e[a],t,s);if(!i.rawInserted&&!this.doSkipInvalid(e[a],t,s))break;r.aggregate(i)}return(!0===this.eager||"append"===this.eager)&&null!=t&&t.input&&e&&r.aggregate(this._appendEager()),null!=s&&(r.tailShift+=this.appendTail(s).tailShift),r}remove(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new A}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;let t=this.rawInputValue,a=this.value,i=e();return this.rawInputValue=t,this.value&&this.value!==a&&0===a.indexOf(this.value)&&(this.append(a.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,i}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;let t=this.state,a=e(this);return this.state=t,delete this._isolated,a}doSkipInvalid(e,t,a){return!!this.skipInvalid}doPrepare(e,t){return void 0===t&&(t={}),A.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return void 0===t&&(t={}),A.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,a,i,c){let u;void 0===a&&(a=""),void 0===i&&(i=r),void 0===c&&(c={input:!0});let d=e+t,h=this.extractTail(d),m=!0===this.eager||"remove"===this.eager;m&&(i=function(e){switch(e){case s:return n;case o:return l;default:return e}}(i),u=this.extractInput(0,d,{raw:!0}));let _=e,p=new A;if(i!==r&&(p.tailShift=(_=this.nearestInputPos(e,t>1&&0!==e&&!m?r:i))-e),p.aggregate(this.remove(_)),m&&i!==r&&u===this.rawInputValue)if(i===n){let e;for(;u===this.rawInputValue&&(e=this.displayValue.length);)p.aggregate(new A({tailShift:-1})).aggregate(this.remove(e-1))}else i===l&&h.unshift();return p.aggregate(this.append(a,c,h))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!u(this,e)}typedValueEquals(e){let t=this.typedValue;return e===t||C.EMPTY_VALUES.includes(e)&&C.EMPTY_VALUES.includes(t)||!!this.format&&this.format(e,this)===this.format(this.typedValue,this)}pad(e){return new A}}C.DEFAULTS={skipInvalid:!0},C.EMPTY_VALUES=[void 0,null,""],h.Masked=C;class y{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=a(e)?new T(String(e)):e;let t=this.chunks[this.chunks.length-1],i=t&&(t.stop===e.stop||null==e.stop)&&e.from===t.from+t.toString().length;if(e instanceof T)i?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof y){if(null==e.stop){let t;for(;e.chunks.length&&null==e.chunks[0].stop;)t=e.chunks.shift(),t.from+=e.from,this.extend(t)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof h.MaskedPattern))return new T(this.toString()).appendTo(e);let t=new A;for(let a=0;a<this.chunks.length;++a){let i,r=this.chunks[a],s=e._mapPosToBlock(e.displayValue.length),n=r.stop;if(null!=n&&(!s||s.index<=n)&&((r instanceof y||e._stops.indexOf(n)>=0)&&t.aggregate(e._appendPlaceholder(n)),i=r instanceof y&&e._blocks[n]),i){let a=i.appendTail(r);t.aggregate(a);let s=r.toString().slice(a.rawInserted.length);s&&t.aggregate(e.append(s,{tail:!0}))}else t.aggregate(e.append(r.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){let{chunks:t,...a}=e;Object.assign(this,a),this.chunks=t.map(e=>{let t="chunks"in e?new y:new T;return t.state=e,t})}unshift(e){if(!this.chunks.length||null!=e&&this.from>=e)return"";let t=null!=e?e-this.from:e,a=0;for(;a<this.chunks.length;){let e=this.chunks[a],i=e.unshift(t);if(e.toString()){if(!i)break;++a}else this.chunks.splice(a,1);if(i)return i}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){let t=this.chunks[e],a=t.shift();if(t.toString()){if(!a)break;--e}else this.chunks.splice(e,1);if(a)return a}return""}}class x{constructor(e,t){this.masked=e,this._log=[];const{offset:a,index:i}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=a,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){let e=this._log.pop();return e&&(this.state=e),e}bindBlock(){!this.block&&(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null==(t=this.block)?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,n),0!==this.offset))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,s),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!this.block.isFixed&&(!this.block.isOptional||this.block.value))return this.offset=this.block.nearestInputPos(this.offset,s),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,l),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,r),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!this.block.isFixed&&(!this.block.isOptional||this.block.value))return this.offset=this.block.nearestInputPos(this.offset,r),!0})}}class S{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new A}nearestInputPos(e,t){void 0===t&&(t=r);let a=this._value.length;switch(t){case s:case n:return 0;default:return a}}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,a){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),void 0===a&&(a={}),a.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(void 0===t&&(t={}),this.isFilled)return new A;let a=!0===this.eager||"append"===this.eager,i=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!a)&&!t.tail,r=new A({inserted:this.char,rawInserted:i?this.char:""});return this._value=this.char,this._isRawInput=i&&(t.raw||t.input),r}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let e=new A;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new T("")}appendTail(e){return a(e)&&(e=new T(String(e))),e.appendTo(this)}append(e,t,a){let i=this._appendChar(e[0],t);return null!=a&&(i.tailShift+=this.appendTail(a).tailShift),i}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}
14pad(e){return this._appendPlaceholder()}}class N{constructor(e){const{parent:t,isOptional:a,placeholderChar:i,displayChar:r,lazy:s,eager:n,...o}=e;this.masked=p(o),Object.assign(this,{parent:t,isOptional:a,placeholderChar:i,displayChar:r,lazy:s,eager:n})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.value.length),0===e&&t>=1)?(this.isFilled=!1,this.masked.remove(e,t)):new A}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(void 0===t&&(t={}),this.isFilled)return new A;let a=this.masked.state,i=this.masked._appendChar(e,this.currentMaskFlags(t));return i.inserted&&!1===this.doValidate(t)&&(i=new A,this.masked.state=a),i.inserted||this.isOptional||this.lazy||t.input||(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=!!i.inserted,i}append(e,t,a){return this.masked.append(e,this.currentMaskFlags(t),a)}_appendPlaceholder(){return this.isFilled||this.isOptional?new A:(this.isFilled=!0,new A({inserted:this.placeholderChar}))}_appendEager(){return new A}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,a){return void 0===e&&(e=0),void 0===t&&(t=this.value.length),this.masked.extractInput(e,t,a)}nearestInputPos(e,t){void 0===t&&(t=r);let a=this.value.length,i=Math.min(Math.max(e,0),a);switch(t){case s:case n:return this.isComplete?i:0;case o:case l:return this.isComplete?i:a;default:return i}}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(null==e||null==(t=e._beforeTailState)?void 0:t.masked)||(null==e?void 0:e._beforeTailState)}}pad(e){return new A}}N.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
14D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},h.MaskedRegExp=class extends C{updateOptions(e){super.updateOptions(e)}_update(e){let t=e.mask;t&&(e.validate=e=>e.search(t)>=0),super._update(e)}};class w extends C{constructor(e){super({...w.DEFAULTS,...e,definitions:Object.assign({},N.DEFAULT_DEFINITIONS,null==e?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){let e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};let t=this.mask;if(!t||!e)return;let a=!1,i=!1;for(let r=0;r<t.length;++r){if(this.blocks){let e=t.slice(r),a=Object.keys(this.blocks).filter(t=>0===e.indexOf(t));a.sort((e,t)=>t.length-e.length);let i=a[0];if(i){let{expose:e,repeat:t,...a}=_(this.blocks[i]),s={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...a,repeat:t,parent:this},n=null!=t?new h.RepeatBlock(s):p(s);n&&(this._blocks.push(n),e&&(this.exposeBlock=n),this._maskedBlocks[i]||(this._maskedBlocks[i]=[]),this._maskedBlocks[i].push(this._blocks.length-1)),r+=i.length-1;continue}}let s=t[r],n=s in e;if(s===w.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===s||"}"===s){a=!a;continue}if("["===s||"]"===s){i=!i;continue}if(s===w.ESCAPE_CHAR){if(!(s=t[++r]))break;n=!1}let o=n?new N({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,..._(e[s]),parent:this}):new S({char:s,eager:this.eager,isUnmasking:a});this._blocks.push(o)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e)return void this.reset();let{_blocks:t,...a}=e;this._blocks.forEach((e,a)=>e.state=t[a]),super.state=a}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;let t=new A,a=null==(e=this._mapPosToBlock(this.displayValue.length))?void 0:e.index;if(null==a)return t;this._blocks[a].isFilled&&++a;for(let e=a;e<this._blocks.length;++e){let a=this._blocks[e]._appendEager();if(!a.inserted)break;t.aggregate(a)}return t}_appendCharRaw(e,t){void 0===t&&(t={});let a=this._mapPosToBlock(this.displayValue.length),i=new A;if(!a)return i;for(let s=a.index,n;n=this._blocks[s];++s){var r;let a=n._appendChar(e,{...t,_beforeTailState:null==(r=t._beforeTailState)||null==(r=r._blocks)?void 0:r[s]});if(i.aggregate(a),a.consumed)break}return i}extractTail(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let a=new y;
14return e===t||this._forEachBlocksInRange(e,t,(e,t,i,r)=>{let s=e.extractTail(i,r);s.stop=this._findStopBefore(t),s.from=this._blockStartPos(t),s instanceof y&&(s.blockIndex=t),a.extend(s)}),a}extractInput(e,t,a){if(void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),void 0===a&&(a={}),e===t)return"";let i="";return this._forEachBlocksInRange(e,t,(e,t,r,s)=>{i+=e.extractInput(r,s,a)}),i}_findStopBefore(e){let t;for(let a=0;a<this._stops.length;++a){let i=this._stops[a];if(i<=e)t=i;else break}return t}_appendPlaceholder(e){let t=new A;if(this.lazy&&null==e)return t;let a=this._mapPosToBlock(this.displayValue.length);if(!a)return t;let i=a.index,r=null!=e?e:this._blocks.length;return this._blocks.slice(i,r).forEach(a=>{if(!a.lazy||null!=e){var i;t.aggregate(a._appendPlaceholder(null==(i=a._blocks)?void 0:i.length))}}),t}_mapPosToBlock(e){let t="";for(let a=0;a<this._blocks.length;++a){let i=this._blocks[a],r=t.length;if(e<=(t+=i.displayValue).length)return{index:a,offset:e-r}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((e,t)=>e+=t.displayValue.length,0)}_forEachBlocksInRange(e,t,a){void 0===t&&(t=this.displayValue.length);let i=this._mapPosToBlock(e);if(i){let e=this._mapPosToBlock(t),r=e&&i.index===e.index,s=i.offset,n=e&&r?e.offset:this._blocks[i.index].displayValue.length;if(a(this._blocks[i.index],i.index,s,n),e&&!r){for(let t=i.index+1;t<e.index;++t)a(this._blocks[t],t,0,this._blocks[t].displayValue.length);a(this._blocks[e.index],e.index,0,e.offset)}}}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let a=super.remove(e,t);return this._forEachBlocksInRange(e,t,(e,t,i,r)=>{a.aggregate(e.remove(i,r))}),a}nearestInputPos(e,t){if(void 0===t&&(t=r),!this._blocks.length)return 0;let a=new x(this,e);if(t===r)return a.pushRightBeforeInput()||(a.popState(),a.pushLeftBeforeInput())?a.pos:this.displayValue.length;if(t===s||t===n){if(t===s){if(a.pushRightBeforeFilled(),a.ok&&a.pos===e)return e;a.popState()}if(a.pushLeftBeforeInput(),a.pushLeftBeforeRequired(),a.pushLeftBeforeFilled(),t===s){if(a.pushRightBeforeInput(),a.pushRightBeforeRequired(),a.ok&&a.pos<=e||(a.popState(),a.ok&&a.pos<=e))return a.pos;a.popState()}return a.ok?a.pos:t===n?0:(a.popState(),a.ok||(a.popState(),a.ok))?a.pos:0}return t===o||t===l?(a.pushRightBeforeInput(),a.pushRightBeforeRequired(),a.pushRightBeforeFilled())?a.pos:t===l?this.displayValue.length:(a.popState(),a.ok||(a.popState(),a.ok))?a.pos:this.nearestInputPos(e,s):e}totalInputPositions(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let a=0;return this._forEachBlocksInRange(e,t,(e,t,i,r)=>{a+=e.totalInputPositions(i,r)}),a}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){let t=this._maskedBlocks[e];return t?t.map(e=>this._blocks[e]):[]}pad(e){let t=new A;return this._forEachBlocksInRange(0,this.displayValue.length,a=>t.aggregate(a.pad(e))),t}}w.DEFAULTS={...C.DEFAULTS,lazy:!0,placeholderChar:"_"},w.STOP_CHAR="`",w.ESCAPE_CHAR="\\",w.InputDefinition=N,w.FixedDefinition=S,h.MaskedPattern=w;class I extends w{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){let{to:t=this.to||0,from:a=this.from||0,maxLength:i=this.maxLength||0,autofix:r=this.autofix,...s}=e;this.to=t,this.from=a,this.maxLength=Math.max(String(t).length,i),this.autofix=r;let n=String(this.from).padStart(this.maxLength,"0"),o=String(this.to).padStart(this.maxLength,"0"),l=0;for(;l<o.length&&o[l]===n[l];)++l;s.mask=o.slice(0,l).replace(/0/g,"\\0")+"0".repeat(this.maxLength-l),super._update(s)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",a="",[,i,r]=e.match(/^(\D*)(\d*)(\D*)/)||[];return r&&(t="0".repeat(i.length)+r,a="9".repeat(i.length)+r),[t=t.padEnd(this.maxLength,"0"),a=a.padEnd(this.maxLength,"9")]}doPrepareChar(e,t){let a;return void 0===t&&(t={}),[e,a]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(a.skip=!this.isComplete),[e,a]}_appendCharRaw(e,t){if(void 0===t&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);let a=String(this.from).padStart(this.maxLength,"0"),i=String(this.to).padStart(this.maxLength,"0"),[r,s]=this.boundaries(this.value+e);return Number(s)<this.from?super._appendCharRaw(a[this.value.length],t):Number(r)>this.to?!t.tail&&"pad"===this.autofix&&this.value.length+1<this.maxLength?super._appendCharRaw(a[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(i[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){let t=this.value;if(-1===t.search(/[^0]/)&&t.length<=this._matchFrom)return!0;let[a,i]=this.boundaries(t);return this.from<=Number(i)&&Number(a)<=this.to&&super.doValidate(e)}pad(e){let t=new A;if(this.value.length===this.maxLength)return t;let a=this.value,i=this.maxLength-this.value.length;if(i){this.reset();for(let a=0;a<i;++a)t.aggregate(super._appendCharRaw("0",e));
vendor: 2,005 bytes, line 14
14a.split("").forEach(e=>this._appendCharRaw(e))}return t}}h.MaskedRange=I;class k extends w{static extractPatternOptions(e){let{mask:t,pattern:i,...r}=e;return{...r,mask:a(t)?t:i}}constructor(e){super(k.extractPatternOptions({...k.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){let{mask:t,pattern:i,blocks:r,...s}={...k.DEFAULTS,...e},n=Object.assign({},k.GET_DEFAULT_BLOCKS());e.min&&(n.Y.from=e.min.getFullYear()),e.max&&(n.Y.to=e.max.getFullYear()),e.min&&e.max&&n.Y.from===n.Y.to&&(n.m.from=e.min.getMonth()+1,n.m.to=e.max.getMonth()+1,n.m.from===n.m.to&&(n.d.from=e.min.getDate(),n.d.to=e.max.getDate())),Object.assign(n,this.blocks,r),super._update({...s,mask:a(t)?t:i,blocks:n})}doValidate(e){let t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&null!=t&&(null==this.min||this.min<=t)&&(null==this.max||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(k.extractPatternOptions(e))}}k.GET_DEFAULT_BLOCKS=()=>({d:{mask:I,from:1,to:31,maxLength:2},m:{mask:I,from:1,to:12,maxLength:2},Y:{mask:I,from:1900,to:9999}}),k.DEFAULTS={...w.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>e?[String(e.getDate()).padStart(2,"0"),String(e.getMonth()+1).padStart(2,"0"),e.getFullYear()].join("."):"",parse:(e,t)=>{let[a,i,r]=e.split(".").map(Number);return new Date(r,i-1,a)}},h.MaskedDate=k;class L extends C{constructor(e){super({...L.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(e=>{let{expose:t,...a}=_(e),i=p({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...a}
14);return t&&(this.exposeMask=i),i}):[])}_appendCharRaw(e,t){void 0===t&&(t={});let a=this._applyDispatch(e,t);return this.currentMask&&a.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),a}_applyDispatch(e,t,a){void 0===e&&(e=""),void 0===t&&(t={}),void 0===a&&(a="");let i=t.tail&&null!=t._beforeTailState?t._beforeTailState._value:this.value,r=this.rawInputValue,s=t.tail&&null!=t._beforeTailState?t._beforeTailState._rawInputValue:r,n=r.slice(s.length),o=this.currentMask,l=new A,c=null==o?void 0:o.state;return this.currentMask=this.doDispatch(e,{...t},a),this.currentMask&&(this.currentMask!==o?(this.currentMask.reset(),s&&(this.currentMask.append(s,{raw:!0}),l.tailShift=this.currentMask.value.length-i.length),n&&(l.tailShift+=this.currentMask.append(n,{raw:!0,tail:!0}).tailShift)):c&&(this.currentMask.state=c)),l}_appendPlaceholder(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){let t=new A;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,a;return{...e,_beforeTailState:(null==(t=e._beforeTailState)?void 0:t.currentMaskRef)===this.currentMask&&(null==(a=e._beforeTailState)?void 0:a.currentMask)||e._beforeTailState}}doDispatch(e,t,a){return void 0===t&&(t={}),void 0===a&&(a=""),this.dispatch(e,this,t,a)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){void 0===t&&(t={});let[a,i]=super.doPrepare(e,t);if(this.currentMask){let e;[a,e]=super.doPrepare(a,this.currentMaskFlags(t)),i=i.aggregate(e)}return[a,i]}doPrepareChar(e,t){void 0===t&&(t={});let[a,i]=super.doPrepareChar(e,t);if(this.currentMask){let e;[a,e]=super.doPrepareChar(a,this.currentMaskFlags(t)),i=i.aggregate(e)}return[a,i]}reset(){var e;null==(e=this.currentMask)||e.reset(),this.compiledMasks.forEach(e=>e.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!(null==(e=this.currentMask)?void 0:e.isComplete)}get isFilled(){var e;return!!(null==(e=this.currentMask)?void 0:e.isFilled)}remove(e,t){let a=new A;return this.currentMask&&a.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),a}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(e=>e.state),currentMaskRef:this.currentMask,currentMask:null==(e=this.currentMask)?void 0:e.state}}set state(e){let{compiledMasks:t,currentMaskRef:a,currentMask:i,...r}=e;t&&this.compiledMasks.forEach((e,a)=>e.state=t[a]),null!=a&&(this.currentMask=a,this.currentMask.state=i),super.state=r}extractInput(e,t,a){return this.currentMask?this.currentMask.extractInput(e,t,a):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,a)=>{if(!e[a])return;let{mask:i,...r}=e[a];return u(t,r)&&t.maskEquals(i)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!(null==(t=this.currentMask)?void 0:t.typedValueEquals(e))}}L.DEFAULTS={...C.DEFAULTS,dispatch:(e,t,a,i)=>{if(!t.compiledMasks.length)return;let r=t.rawInputValue,s=t.compiledMasks.map((s,o)=>{let l=t.currentMask===s,c=l?s.displayValue.length:s.nearestInputPos(s.displayValue.length,n);return s.rawInputValue!==r?(s.reset(),s.append(r,{raw:!0})):l||s.remove(c),s.append(e,t.currentMaskFlags(a)),s.appendTail(i),{index:o,weight:s.rawInputValue.length,totalInputPositions:s.totalInputPositions(0,Math.max(c,s.nearestInputPos(s.displayValue.length,n)))}});return s.sort((e,t)=>
14t.weight-e.weight||t.totalInputPositions-e.totalInputPositions),t.compiledMasks[s[0].index]}},h.MaskedDynamic=L;class O extends w{constructor(e){super({...O.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){let{enum:t,...a}=e;if(t){let e=t.map(e=>e.length),i=Math.min(...e),r=Math.max(...e)-i;a.mask="*".repeat(i),r&&(a.mask+="["+"*".repeat(r)+"]"),this.enum=t}super._update(a)}_appendCharRaw(e,t){void 0===t&&(t={});let a=Math.min(this.nearestInputPos(0,l),this.value.length),i=this.enum.filter(t=>this.matchValue(t,this.unmaskedValue+e,a));if(i.length){1===i.length&&this._forEachBlocksInRange(0,this.value.length,(e,a)=>{let r=i[0][a];a>=this.value.length||r===e.value||(e.reset(),e._appendChar(r,t))});let e=super._appendCharRaw(i[0][this.value.length],t);return 1===i.length&&i[0].slice(this.unmaskedValue.length).split("").forEach(t=>e.aggregate(super._appendCharRaw(t))),e}return new A({skip:!this.isComplete})}extractTail(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),new T("",e)}remove(e,t){let a;if(void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),e===t)return new A;let i=Math.min(super.nearestInputPos(0,l),this.value.length);for(a=e;a>=0&&!(this.enum.filter(e=>this.matchValue(e,this.value.slice(i,a),i)).length>1);--a);let r=super.remove(a,t);return r.tailShift+=a-e,r}get isComplete(){return this.enum.indexOf(this.value)>=0}}O.DEFAULTS={...w.DEFAULTS,matchValue:(e,t,a)=>e.indexOf(t,a)===a},h.MaskedEnum=O,h.MaskedFunction=class extends C{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}};class P extends C{constructor(e){super({...P.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"("+c(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=RegExp(e+"\\d*"+t),this._mapToRadixRegExp=RegExp("["+this.mapToRadix.map(c).join("")+"]","g"),this._thousandsSeparatorRegExp=RegExp(c(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){let t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){void 0===t&&(t={});let[a,i]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!a&&(i.skip=!0),!a||this.allowPositive||this.value||"-"===a||i.aggregate(this._appendChar("-")),[a,i]}_separatorsCount(e,t){void 0===t&&(t=!1);let a=0;for(let i=0;i<e;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++a,t&&(e+=this.thousandsSeparator.length));return a}_separatorsCountFromSlice(e){return void 0===e&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,a){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,a))}_appendCharRaw(e,t){let a;void 0===t&&(t={});let i=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,r=this._separatorsCountFromSlice(i);this._value=this._removeThousandsSeparators(this.value);let s=this._value;this._value+=e;let n=!isNaN(this.number),o=!1;if(n){let e;null!=this.min&&this.min<0&&this.number<this.min&&(e=this.min),null!=this.max&&this.max>0&&this.number>this.max&&(e=this.max),null!=e&&(this.autofix?(this._value=this.format(e,this).replace(P.UNMASKED_RADIX,this.radix),o||(o=s===this._value&&!t.tail)):n=!1),n&&(n=!!this._value.match(this._numberRegExp))}n?a=new A({inserted:this._value.slice(s.length),rawInserted:o?"":e,skip:o}):(this._value=s,a=new A),this._value=this._insertThousandsSeparators(this._value);let l=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,c=this._separatorsCountFromSlice(l);return a.tailShift+=(c-r)*this.thousandsSeparator.length,a}_findSeparatorAround(e){if(this.thousandsSeparator){let t=e-this.thousandsSeparator.length+1,a=this.value.indexOf(this.thousandsSeparator,t);if(a<=e)return a}return -1}_adjustRangeWithSeparators(e,t){let a=this._findSeparatorAround(e);a>=0&&(e=a);let i=this._findSeparatorAround(t);return i>=0&&(t=i+this.thousandsSeparator.length),[e,t]}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);let a=this.value.slice(0,e),i=this.value.slice(t),r=this._separatorsCount(a.length);return this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(a+i)),new A({tailShift:(this._separatorsCountFromSlice(a)-r)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case r:case s:case n:{let a=this._findSeparatorAround(e-1);if(a>=0){let i=a+this.thousandsSeparator.length;if(e<i||this.value.length<=i||t===n)return a}break}case o:case l:{let t=this._findSeparatorAround(e);if(t>=0)return t+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){let e=this.number,t=e;null!=this.min&&(t=Math.max(t,this.min)),null!=this.max&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let a=this.value;this.normalizeZeros&&(a=this._normalizeZeros(a)),this.padFractionalZeros&&this.scale>0&&(a=this._padFractionalZeros(a)),this._value=a}super.doCommit()}_normalizeZeros(e){let t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(e,t,a,i)=>t+i),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;let t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,a){void 0===t&&(t={});let i=0===this.scale&&e!==this.thousandsSeparator&&(e===this.radix||e===P.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,a)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,P.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(P.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return null!=this.min&&this.min<0||null!=this.max&&this.max<0}get allowPositive(){return null!=this.min&&this.min>0||null!=this.max&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||P.EMPTY_VALUES.includes(e)&&P.EMPTY_VALUES.includes(this.typedValue))&&(0!==e||""!==this.value)}}P.UNMASKED_RADIX=".",P.EMPTY_VALUES=[...C.EMPTY_VALUES,0],P.DEFAULTS={...C.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[P.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>
14e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},h.MaskedNumber=P;let D={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function R(e,t,a){void 0===t&&(t=D.MASKED),void 0===a&&(a=D.MASKED);let i=p(e);return e=>i.runIsolated(i=>(i[t]=e,i[a]))}h.PIPE_TYPE=D,h.createPipe=R,h.pipe=function(e,t,a,i){return R(t,a,i)(e)},h.RepeatBlock=class extends w{get repeatFrom(){var e;return null!=(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)?e:0}get repeatTo(){var e;return null!=(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,a,i;let{repeat:r,...s}=_(e);this._blockOpts=Object.assign({},this._blockOpts,s);let n=p(this._blockOpts);this.repeat=null!=(t=null!=(a=null!=r?r:n.repeat)?a:this.repeat)?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&(null==(i=this._blocks)?void 0:i.length)||0,this.repeatFrom)),blocks:{m:n},eager:n.eager,overwrite:n.overwrite,skipInvalid:n.skipInvalid,lazy:n.lazy,placeholderChar:n.placeholderChar,displayChar:n.displayChar})}_allocateBlock(e){return e<this._blocks.length?this._blocks[e]:this.repeatTo===1/0||this._blocks.length<this.repeatTo?(this._blocks.push(p(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]):void 0}_appendCharRaw(e,t){void 0===t&&(t={});let a=new A;for(let o=null!=(i=null==(r=this._mapPosToBlock(this.displayValue.length))?void 0:r.index)?i:Math.max(this._blocks.length-1,0),l,c;l=null!=(s=this._blocks[o])?s:c=!c&&this._allocateBlock(o);++o){var i,r,s,n;let u=l._appendChar(e,{...t,_beforeTailState:null==(n=t._beforeTailState)||null==(n=n._blocks)?void 0:n[o]});if(u.skip&&c){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(a.aggregate(u),u.consumed)break}return a}_trimEmptyTail(e,t){var a,i;let r;void 0===e&&(e=0);let s=Math.max((null==(a=this._mapPosToBlock(e))?void 0:a.index)||0,this.repeatFrom,0);null!=t&&(r=null==(i=this._mapPosToBlock(t))?void 0:i.index),null==r&&(r=this._blocks.length-1);let n=0;for(let e=r;s<=e&&!this._blocks[e].unmaskedValue;--e,++n);n&&(this._blocks.splice(r-n+1,n),this.mask=this.mask.slice(n))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let a=super.remove(e,t);return this._trimEmptyTail(e,t),a}totalInputPositions(e,t){return(void 0===e&&(e=0),null==t&&this.repeatTo===1/0)?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}};try{globalThis.IMask=h}catch{}var M,j,F,B=e.i(271645),U=B,G=e.i(745009);let H={mask:G.default.oneOfType([G.default.array,G.default.func,G.default.string,G.default.instanceOf(RegExp),G.default.oneOf([Date,Number,h.Masked]),G.default.instanceOf(h.Masked)]),value:G.default.any,unmask:G.default.oneOfType([G.default.bool,G.default.oneOf(["typed"])]),prepare:G.default.func,prepareChar:G.default.func,validate:G.default.func,commit:G.default.func,overwrite:G.default.oneOfType([G.default.bool,G.default.oneOf(["shift"])]),eager:G.default.oneOfType([G.default.bool,G.default.oneOf(["append","remove"])]),skipInvalid:G.default.bool,onAccept:G.default.func,onComplete:G.default.func,placeholderChar:G.default.string,displayChar:G.default.string,lazy:G.default.bool,definitions:G.default.object,blocks:G.default.object,enum:G.default.arrayOf(G.default.string),maxLength:G.default.number,from:G.default.number,to:G.default.number,pattern:G.default.string,format:G.default.func,parse:G.default.func,autofix:G.default.oneOfType([G.default.bool,G.default.oneOf(["pad"])]),radix:G.default.string,thousandsSeparator:G.default.string,mapToRadix:G.default.arrayOf(G.default.string),scale:G.default.number,normalizeZeros:G.default.bool,padFractionalZeros:G.default.bool,min:G.default.oneOfType([G.default.number,G.default.instanceOf(Date)]),max:G.default.oneOfType([G.default.number,G.default.instanceOf(Date)]),dispatch:G.default.func,inputRef:G.default.oneOfType([G.default.func,G.default.shape({current:G.default.object})])},W=Object.keys(H).filter(e=>
14"value"!==e),V=["value","unmask","onAccept","onComplete","inputRef"],q=W.filter(e=>0>V.indexOf(e)),$=(M=e=>{let{inputRef:t,...a}=e;return B.default.createElement("input",{...a,ref:t})},(j=class extends U.default.Component{constructor(e){super(e),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){let e=this.props,t=this._extractMaskOptionsFromProps(e);if(t.mask)this.maskRef?(this.maskRef.updateOptions(t),"value"in e&&void 0!==e.value&&(this.maskValue=e.value)):this.initMask(t);else if(this.destroyMask(),"value"in e&&void 0!==e.value){var a;null!=(a=this.element)&&a.isContentEditable&&"INPUT"!==this.element.tagName&&"TEXTAREA"!==this.element.tagName?this.element.textContent=e.value:this.element.value=e.value}}componentWillUnmount(){this.destroyMask()}_inputRef(e){this.element=e,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=e:this.props.inputRef(e))}initMask(e){void 0===e&&(e=this._extractMaskOptionsFromProps(this.props)),this.maskRef=h(this.element,e).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&void 0!==this.props.value&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(e){let{...t}=e;return Object.keys(t).filter(e=>0>q.indexOf(e)).forEach(e=>{delete t[e]}),t}_extractNonMaskProps(e){let{...t}=e;return W.forEach(e=>{"maxLength"!==e&&delete t[e]}),"defaultValue"in t||(t.defaultValue=e.mask?"":t.value),delete t.value,t}get maskValue(){return this.maskRef?"typed"===this.props.unmask?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(e){this.maskRef&&(e=null==e&&"typed"!==this.props.unmask?"":e,"typed"===this.props.unmask?this.maskRef.typedValue=e:this.props.unmask?this.maskRef.unmaskedValue=e:this.maskRef.value=e)}_onAccept(e){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,e)}_onComplete(e){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,e)}render(){return U.default.createElement(M,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}}).displayName=void 0,j.propTypes=void 0,(t=j).displayName="IMask("+(M.displayName||M.name||"Component")+")",t.propTypes=H,U.default.forwardRef((e,a)=>U.default.createElement(t,{...e,ref:a}))),Y=B.default.forwardRef((e,t)=>B.default.createElement($,{...e,ref:t}));e.s([],21496),e.s(["IMaskInput",0,Y],733027);var z=((F={}).Google="google",F.Outlook="outlook",F.Other="other",F);function K({term:e,provincias:t,defaultProvincia:a}){e=e.toLowerCase();let i=t.filter(t=>t.provincia.toLowerCase().includes(e)||t.codigoPostal.includes(e));return 0===i.length?[a]:i}e.s(["ProveedorEmail",()=>z,"buscarProvincia",0,K,"buscarProvinciaPorCodigoPostal",0,function({codigoPostal:e,provincias:t}){return t.find(t=>t.codigoPostal===e)},"detectarProveedorEmail",0,e=>/@gmail\.com$|@googlemail\.com$|@google\.com$/.test(e)?"google":/@outlook\.com$|@hotmail\.com$|@live\.com$|@msn\.com$/.test(e)?"outlook":"other"],138056);var Q=e.i(843476),X=e.i(296175),Z=e.i(234523),J=e.i(822596);e.s(["default",0,function({provinciasDictionary:e,labelText:t,inputName:a,placeholderText:i,selectProvinciaEvent:r,disabled:s=!1,labelClassName:n=""}){let o=(0,B.useRef)(),[l,c]=(0,B.useState)([]),u=(0,B.useRef)(),{t:d}=(0,J.getDictionary)(e),h=d("defaultProvincia"),m=[h,...d("provincias")];return(0,B.useEffect)(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&c([])};return document.addEventListener("click",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("click",e),document.addEventListener("focusout",e)}},[u]),(0,Q.jsxs)(X.default,{className:Z.default.searchCity,children:[(0,Q.jsx)("label",{className:n,htmlFor:a,children:t}),(0,Q.jsx)("div",{className:Z.default.searchCity__inputWrapper,ref:u,children:(0,Q.jsx)("input",{className:Z.default.searchCity__input,ref:o,"aria-label":t,type:"search",onChange:e=>{if(0===e.target.value.trim().length)return c([]);c(K({term:e.target.value,provincias:m,defaultProvincia:h}))},name:a,placeholder:i,minLength:0,maxLength:999,readOnly:!1,disabled:s,autoComplete:"off",onFocus:()=>{0===l.length&&c(m)}})}),l?.length>0&&(0,Q.jsx)("div",{className:Z.default.searchCity__resultWrapper,children:(0,Q.jsx)("ul",{className:Z.default.searchCity__resultList,children:l?.map((e,t)=>{var a,i;return(0,Q.jsx)("li",{children:(0,Q.jsx)("span",{onClick:()=>{r(e)},children:(a=e?.provincia,(i=o.current.value.trim())&&a!==h.provincia?a.split(RegExp(`(${i})`,"gi")).map((e,t)=>e.toLowerCase()===i.toLowerCase()?(0,Q.jsx)("strong",{children:e},t):e):a)})},t)})})})]})}],813395)},960061,e=>{"use strict";var t,a,i,r,s,n,o,l,c,u,d,h,m,_,p,f,g,b,E,v=e.i(247167),A=e.i(843476),T=e.i(635262),C=e.i(866061),y=e.i(234523),x=e.i(296175);e.i(21496);var S=e.i(733027),N=e.i(978877),w=e.i(618566),I=e.i(271645),k=e.i(138056),L=e.i(225615),O=e.i(496044);function P(){return(P=Object.assign.bind()).apply(null,arguments)}let D=function(e){return I.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 48 42"},e),I.createElement("g",{clipPath:"url(#a)"},t||(t=I.createElement("path",{fill:"#1066B5",d:"M42 0H18a3 3 0 0 0-3 3v36a3 3 0 0 0 3 3h24a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3"})),a||(a=I.createElement("path",{fill:"url(#b)",d:"M42 0H18a3 3 0 0 0-3 3v36a3 3 0 0 0 3 3h24a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3"})),i||(i=I.createElement("path",{fill:"#32A9E7",d:"M30 4.5H15v15h15z"})),r||(r=I.createElement("path",{fill:"#167EB4",d:"M30 19.5H15v15h15z"})),s||(s=I.createElement("path",{fill:"#32A9E7",d:"M45 19.5H30v15h15z"})),n||(n=I.createElement("path",{fill:"#58D9FD",d:"M45 4.5H30v15h15z"})),I.createElement("mask",{id:"d",width:36,height:24,x:12,y:18,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},o||(o=I.createElement("path",{fill:"url(#c)",d:"M12 18h33a3 3 0 0 1 3 3v18a3 3 0 0 1-3 3H15a3 3 0 0 1-3-3z"}))),l||(l=I.createElement("g",{mask:"url(#d)"},I.createElement("path",{fill:"#135298",d:"M48 18v6h-3v-6z"}),I.createElement("path",{fill:"url(#e)",d:"M48 42V21L10.5 42z"}),I.createElement("path",{fill:"url(#f)",d:"M12 42V21l37.5 21z"}
14))),c||(c=I.createElement("path",{fill:"#000",fillOpacity:.3,d:"M12 15a4.5 4.5 0 0 1 4.5-4.5h9A4.5 4.5 0 0 1 30 15v18a4.5 4.5 0 0 1-4.5 4.5H12z"})),u||(u=I.createElement("path",{fill:"url(#g)",d:"M24 7.5H3a3 3 0 0 0-3 3v21a3 3 0 0 0 3 3h21a3 3 0 0 0 3-3v-21a3 3 0 0 0-3-3"})),d||(d=I.createElement("path",{fill:"#fff",d:"M21 21.104v-.25c0-4.32-3.11-7.354-7.476-7.354C9.133 13.5 6 16.554 6 20.896v.25c0 4.32 3.11 7.354 7.5 7.354 4.367 0 7.5-3.054 7.5-7.396m-3.536.041c0 2.867-1.614 4.592-3.94 4.592S9.56 23.97 9.56 21.104v-.25c0-2.866 1.614-4.59 3.94-4.59 2.302 0 3.964 1.765 3.964 4.632z"}))),h||(h=I.createElement("defs",null,I.createElement("linearGradient",{id:"b",x1:15,x2:45,y1:21,y2:21,gradientUnits:"userSpaceOnUse"},I.createElement("stop",{stopColor:"#064484"}),I.createElement("stop",{offset:1,stopColor:"#0F65B5"})),I.createElement("linearGradient",{id:"c",x1:12,x2:48,y1:37.154,y2:37.154,gradientUnits:"userSpaceOnUse"},I.createElement("stop",{stopColor:"#1B366F"}),I.createElement("stop",{offset:1,stopColor:"#2657B0"})),I.createElement("linearGradient",{id:"e",x1:48,x2:12,y1:31.5,y2:31.5,gradientUnits:"userSpaceOnUse"},I.createElement("stop",{stopColor:"#44DCFD"}),I.createElement("stop",{offset:.453,stopColor:"#259ED0"})),I.createElement("linearGradient",{id:"f",x1:12,x2:48,y1:31.5,y2:31.5,gradientUnits:"userSpaceOnUse"},I.createElement("stop",{stopColor:"#259ED0"}),I.createElement("stop",{offset:1,stopColor:"#44DCFD"})),I.createElement("linearGradient",{id:"g",x1:0,x2:27,y1:21,y2:21,gradientUnits:"userSpaceOnUse"},I.createElement("stop",{stopColor:"#064484"}),I.createElement("stop",{offset:1,stopColor:"#0F65B5"})),I.createElement("clipPath",{id:"a"},I.createElement("path",{fill:"#fff",d:"M0 0h48v42H0z"})))))};function R(){return(R=Object.assign.bind()).apply(null,arguments)}let M=function(e){return I.createElement("svg",R({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),m||(m=I.createElement("path",{fill:"#4caf50",d:"m45 16.2-5 2.75-5 4.75V40h7a3 3 0 0 0 3-3z"})),_||(_=I.createElement("path",{fill:"#1e88e5",d:"m3 16.2 3.614 1.71L13 23.7V40H6a3 3 0 0 1-3-3z"})),p||(p=I.createElement("path",{fill:"#e53935",d:"m35 11.2-11 8.25-11-8.25-1 5.8 1 6.7 11 8.25 11-8.25 1-6.7z"})),f||(f=I.createElement("path",{fill:"#c62828",d:"M3 12.298V16.2l10 7.5V11.2L9.876 8.859A4.298 4.298 0 0 0 3 12.298"})),g||(g=I.createElement("path",{fill:"#fbc02d",d:"M45 12.298V16.2l-10 7.5V11.2l3.124-2.341A4.298 4.298 0 0 1 45 12.298"})))};var j=e.i(446569);function F(){return(F=Object.assign.bind()).apply(null,arguments)}let B=function(e){return I.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 71 120"},e),b||(b=I.createElement("path",{fill:"#F39C0F",d:"m63.517 87.88 6.96-6.137-.115-74.337L8.693 0v4.894l57.411 4.997-4.002 3.229L0 8.584.74 87.88h15.958l-2.536 11.146 4.053 11.813L8.349 120h16.57l-1.746-18.924 5.329-13.196h9.904l-.829 9.596 6.259 13.107-8.655 9.122 17.31-1.358-5.418-19.32L49.19 87.88z"})),E||(E=I.createElement("path",{fill:"#1B1C1E",d:"M48.98 21.905c-.415.058-6.23 1.805-6.23 1.805l-1.47 5.183v-4.256l-5.53 2.568-2.7 8.91s-.06-6.46 0-6.753c.058-.293-3.057 2.216-3.057 2.216l-4.524 7.34.936 7.974-2.061-4.597-1.765 6.93 2.7 5.593-1.137 4.924c-2.297-.011-4.169-.023-4.169-.023l-.165 1.7h1.243v1.36c0 .211-3.482 0-3.482 0l-.426 14.364 19.057-.34-1.244-14.188-3.648.082-.13-1.184 1.196-.047s.047-1.442 0-1.571c-.024-.059-3.02-.106-6.052-.13l
141.196-2.837 5.294-.527 4.24-4.362-6.064.058 7.438-2.79 3.21-5.593-4.3 1.395 5.769-4.08 4.003-8.853 7.177-9.556s-4.88-.762-5.294-.704z"})))};var U=e.i(936540),G=e.i(626485),H=e.i(522016),W=e.i(482475),V=e.i(10655),q=e.i(232615),$=e.i(177936),Y=e.i(855515),z=e.i(64887),K=e.i(777446),Q=e.i(38869),X=e.i(534494),Z=e.i(813395),J=e.i(95187);let ee=(0,J.createServerReference)("409678e54d4577ff49a646e5f32c9582edf73c208c",J.callServer,void 0,J.findSourceMapURL,"registerUser");var et=e.i(822596),ea=e.i(19467),ei=e.i(455263);let er="register_step",es="postregister_step";e.s(["default",0,function({tipoPagina:e,legalData:t,deviceType:a,provinciasDict:i,defaultDict:r,accesoDict:s,idNewsletter:n}){let o=v.default.env.LOGIN_GOOGLE?.toLowerCase()??"False".toLowerCase()??"false",l=v.default.env.LOGIN_FACEBOOK?.toLowerCase()??"False".toLowerCase()??"false",[c,u]=(0,I.useState)(""),d=(0,I.useRef)(null),{isLargerTablet:h}=(0,L.default)(),{pageData:m}=(0,N.usePageData)(),[_,p]=(0,I.useState)(er),[f,g]=(0,I.useState)(""),b=(0,k.detectarProveedorEmail)(f),[E,P]=(0,I.useState)(!1),[R,F]=(0,I.useState)({name:"",birthDate:"",city:"",email:"",password:"",privacyPolicy:"",respuestaCaptcha:""}),[J,en]=(0,I.useState)(""),[eo,el]=(0,I.useState)(!1),[ec,eu]=(0,I.useState)(null),ed=(0,I.useRef)(null),eh=(0,I.useRef)(null),[em,e_]=(0,I.useState)(!1),ep=(0,w.usePathname)(),{t:ef}=(0,et.getDictionary)(s),eg=Object?.keys(t)?.length>0,eb=async e=>{e.preventDefault(),P(!0);let i=e.target.name.value,r="";if("__/__/____"!==e.target.birthDate.value){let t=e.target.birthDate.value.split("/");r=`${t[2]}-${t[1]}-${t[0]}`}let s=ec?ec.codigoPostal:null,o=e.target.email.value,l=e.target.password.value,h=e.target?.commercialCommunications?e.target.commercialCommunications.checked:null,_=e.target?.companiesCommercialCommunications?e.target.companiesCommercialCommunications.checked:null,f=e.target?.privacyPolicy?e.target.privacyPolicy.checked:null;if(!(({name:e,birthDate:t,city:a,email:i,password:r,privacyPolicy:s,respuestaCaptcha:n})=>{let o={name:"",birthDate:"",city:"",email:"",password:"",privacyPolicy:"",respuestaCaptcha:""},l=!0;for(let c in o.name=(0,q.nameValidation)(e),o.birthDate=(0,q.birthDateValidation)(t),o.password=(0,q.passwordValidation)(r),o.privacyPolicy=(0,q.privacyPolicyValidation)(s),o.email=(0,q.emailValidation)(i),o.city=(0,q.postalCodeValidation)(a),o.respuestaCaptcha=(0,q.captchaValidation)(n||""),o)if(o[c]?.length>0){l=!1;break}return F(o),l})({name:i,birthDate:r,city:s,email:o,password:l,privacyPolicy:f,respuestaCaptcha:c}))return void P(!1);let b=sessionStorage.getItem("registro_origen"),E=b?JSON.parse(b):null,v=await ee({nombre:i.trim(),fechaNacimiento:r&&r?.length>0?r:null,email:o,password:l,passwordRepeat:l,checkComercial:h,checkEmpresas:_,checkPoliticaPrivacidad:f,registroIdPlaneta:E?.idPlaneta??null,registroTipoPagina:E?.tipoPagina??null,registroUrl:E?.url??window.location.href,registroTipoDispositivo:a,checkSTLOPDClausulaId:t?.idClausula,checkSTLOPDClausulaPieId:t?.idClausulaPie,codigoPostal:s,respuestaCaptcha:c,idNewsletter:n??null});if(!v.response.success){d.current&&d.current.reset(),u(""),window.scrollTo({top:0,behavior:"smooth"}),P(!1),en(v.response?.errors[0]?.message);return}(0,V.registroUserEvent)({...{tipoPagina:(0,V.convertPageType)(m?.tipoPagina),urlPagina:ep,method:"email",userId:null},userId:v?.response?.extraData?.user_id?v?.response?.extraData?.user_id:null}),d.current.reset(),g(o),p(es)};return(0,A.jsxs)(A.Fragment,{children:[_===er&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("h1",{className:T.default.loginTitle,children:ef("registerTitle")}),(0,A.jsxs)("div",{className:T.default.formWrapper,children:[J&&(0,A.jsx)("span",{className:T.default.loginErrorWrapper,children:J}),(0,A.jsxs)("form",{onSubmit:eb,name:"form-registro",id:"form-registro",method:"post",children:[(0,A.jsxs)(x.default,{error:!!R.name,children:[(0,A.jsx)("label",{htmlFor:"name",children:ef("registerUsernameLabel")}),(0,A.jsx)("input",{autoComplete:"name",type:"text","aria-label":ef("registerUsernameLabel"),placeholder:ef("registerUsernamePlaceholder"),id:"name",name:"name",onChange:e=>{let t={...R};t.name=(0,q.nameValidation)(e.target.value),F(t)}}),R.name&&(0,A.jsx)($.default,{className:T.default.nonItalic,variant:"error",children:ef(R.name)})]}),(0,A.jsxs)("div",{className:T.default.acceso__twoColumns,children:[(0,A.jsxs)(x.default,{error:!!R.birthDate,children:[(0,A.jsx)("label",{htmlFor:"birthDate",children:ef("registerBirthdateLabel")}),(0,A.jsx)(S.IMaskInput,{className:em?T.default.maskInput__hasValue:T.default.maskInput__noValue,"aria-label":ef("registerBirthdateLabel"),autoComplete:"new-date",type:"tel",id:"birthDate",name:"birthDate",mask:Date,pattern:"d{/}`m{/}`Y",min:new Date(new Date().getFullYear()-120,0,1),max:new Date(new Date().getFullYear()+1,0,1),unmask:!0,lazy:!1,ref:ed,inputRef:eh,onAccept:(e,t)=>
14{e_(/\d/.test(e))},placeholder:"dd/mm/yyyy",autofix:!0,format:function(e){let t=e.getDate(),a=e.getMonth()+1;return t<10&&(t="0"+t),a<10&&(a="0"+a),[t,a,e.getFullYear()].join("/")},parse:function(e){let t=e.split("/");return new Date(parseInt(t[2]),parseInt(t[1])-1,parseInt(t[0]))}}),R.birthDate&&(0,A.jsx)($.default,{className:T.default.nonItalic,variant:"error",children:ef(R.birthDate)})]}),eo?(0,A.jsxs)(x.default,{className:y.default.searchCity,error:!!R.city,children:[(0,A.jsx)("label",{htmlFor:"city",children:ef("registerProvinciaLabel")}),(0,A.jsxs)("div",{className:y.default.searchCity__inputWrapper,children:[(0,A.jsx)("input",{className:y.default.searchCity__input,autoComplete:"postal-code",type:"text",inputMode:"numeric","aria-label":ef("registerProvinciaLabel"),placeholder:ef("registerProvinciaPlaceholder"),id:"city",name:"city",defaultValue:ec?`${ec?.provincia}`:"",readOnly:ec??!1}),(0,A.jsx)(j.default,{onClick:()=>{eu(null),el(!1)},className:`${y.default.searchCity__icon} ${y.default.searchCity__iconClose}`})]}),R.city&&(0,A.jsx)($.default,{className:T.default.nonItalic,variant:"error",children:ef(R.city)})]}):(0,A.jsx)(Z.default,{provinciasDictionary:i,inputName:"postalCode",labelText:ef("registerProvinciaLabel"),placeholderText:ef("registerProvinciaPlaceholder"),selectProvinciaEvent:e=>{el(!0),eu(e)}})]}),(0,A.jsxs)("div",{className:T.default.acceso__twoColumns,children:[(0,A.jsxs)(x.default,{error:!!R.email,children:[(0,A.jsx)("label",{htmlFor:"email",children:ef("emailLabel")}),(0,A.jsx)("input",{autoComplete:"email",type:"email",inputMode:"email","aria-label":ef("emailLabel"),placeholder:ef("emailPlaceholder"),id:"email",name:"email",onBlur:e=>{let t={...R};t.email=(0,q.emailValidation)(e.target.value),F(t)}}),R.email&&(0,A.jsx)($.default,{className:T.default.nonItalic,variant:"error",children:ef(R.email)})]}),(0,A.jsxs)(x.default,{error:!!R.password,children:[(0,A.jsx)("label",{htmlFor:"password",children:ef("passwordLabel")}),(0,A.jsx)(ea.default,{autoComplete:"off",ariaLabel:ef("passwordLabel"),placeholder:ef("passwordPlaceholder"),id:"password",name:"password",onBlur:e=>{let t={...R};t.password=(0,q.passwordValidation)(e.target.value),F(t)}}),R.password?(0,A.jsx)($.default,{className:T.default.nonItalic,variant:"error",children:ef(R.password)}):(0,A.jsx)(X.default,{children:ef("registerPasswordHelpText")})]})]}),eg&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Q.default,{title:ef("registerPrivacyPolicyBoxTitle"),children:(0,A.jsx)(z.default,{rawHtml:t?.avisoLegal})}),(0,A.jsx)(K.default,{children:(0,A.jsxs)("label",{htmlFor:"commercialCommunications",children:[(0,A.jsx)("div",{children:(0,A.jsx)("input",{type:"checkbox","aria-label":ef("registerCommercialCommunicationsLabel"),placeholder:"",id:"commercialCommunications",name:"commercialCommunications"})}),(0,A.jsx)("p",{className:T.default.legalDataCheckboxText,children:(0,A.jsx)(Y.default,{dictionary:r,truncate:h?160:70,children:t?.checks?.checkComercial})})]})}),(0,A.jsx)(K.default,{children:(0,A.jsxs)("label",{htmlFor:"companiesCommercialCommunications",children:[(0,A.jsx)("div",{children:(0,A.jsx)("input",{type:"checkbox","aria-label":ef("registerCompaniesCommercialCommunicationsLabel"),placeholder:"",id:"companiesCommercialCommunications",name:"companiesCommercialCommunications"})}),(0,A.jsx)("p",{className:T.default.legalDataCheckboxText,children:(0,A.jsx)(Y.default,{dictionary:r,truncate:h?160:70,children:t?.checks?.checkEmpresas})})]})})]}),(0,A.jsx)(K.default,{error:!!R.privacyPolicy,children:(0,A.jsxs)("label",{htmlFor:"privacyPolicy",children:[(0,A.jsx)("div",{children:(0,A.jsx)("input",{type:"checkbox","aria-label":ef("registerPrivacyPolicyLabel"),placeholder:"",id:"privacyPolicy",name:"privacyPolicy",onChange:e=>{let t={...R};t.privacyPolicy=(0,q.privacyPolicyValidation)(e.target.checked),F(t)}})}),(0,A.jsx)("div",{children:(0,A.jsxs)("p",{className:T.default.legalDataCheckboxText,children:[ef("registerPrivacyPolicyLinkTextOne"),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(H.default,{prefetch:!1,href:`https://www.planetadelibros.com.mx${ef("linkPoliticaPrivacidad")}`,target:"_blank",rel:"noopener noreferrer",children:ef("registerPrivacyPolicyLinkTextTwo")})," "]}),"(*)"]})})]})}),(0,A.jsx)(ei.default,{ref:d,sitekey:"6LdCqewqAAAAAMSkDpXZLzAa95pu00dexrK-3qO5",onChange:e=>{u(e||"");let t={...R};t.respuestaCaptcha=(0,q.captchaValidation)(e||""),F(t)}}),R.respuestaCaptcha&&(0,A.jsx)($.default,{variant:"error",children:ef(R.respuestaCaptcha)}),(0,A.jsx)(x.default,{className:T.default.submitButtonWrapper,children:(0,A.jsx)(U.default,{buttonType:"submit",disabled:E,className:T.default.submitButton,size:"large",id:"button_signup",children:ef("registerMeKeyword")})})]})]}),(0,A.jsxs)("p",{className:T.default.acceso__linkIniciarSesion,children:[ef("registerAlreadyHaveAnAccount")," ",(0,A.jsx)(H.default,{prefetch:!1,href:`https://www.planetadelibros.com.mx${ef("urlLogin")}`,children:ef("loginKeyword")})]}),("true"===o||"true"===l)&&(0,A.jsx)("p",{className:T.default.acceso__separador,children:(0,A.jsx)("span",{children:ef("orKeyword")})}),(0,A.jsx)(G.default,{variant:"vertical",facebookText:ef("continuarConFacebook"),googleText:ef("continuarConGoogle")})]}),_===es&&(0,A.jsx)(A.Fragment,{children:(0,A.jsx)("div",{className:T.default.sucess,children:(0,A.jsxs)("div",{className:T.default.success__inner,children:[(0,A.jsx)("div",{className:T.default.success__wrappericon,children:(0,A.jsx)(B,{className:T.default.success__image})}),(0,A.jsxs)("div",{className:T.default.success__wrappertext,children:[(0,A.jsx)(W.default,{className:T.default.acceso__title,variant:"modulo",title:ef("postRegisterTitle"),etiquetaEncabezadoTitulo:"h1"}),(0,A.jsx)("p",{className:`${T.default.success__title} ${T.default.modal__titleSuccess}`,children:ef("postRegisterOnlyOneStepLeft")}),(0,A.jsx)("p",{className:T.default.success__text,children:(0,A.jsx)(z.default,{rawHtml:ef("postRegisterSuccessText")})}),(0,A.jsxs)("div",{className:T.default.buttonsMailWrapper,children:[b===k.ProveedorEmail.Google&&(0,A.jsxs)(O.default,{className:`${C.default.buttonSecondary} ${C.default.button} ${T.default.buttonMail}`,path:`https://mail.google.com/mail/u/${f}
14/#search/from%3A([email protected])+in%3Aanywhere+newer_than%3A1h`,targetBlank:!0,onClick:()=>{(0,V.goToMailerEvent)({tipoPagina:(0,V.convertPageType)(m?.tipoPagina),urlPagina:ep})},children:[(0,A.jsx)(M,{className:T.default.buttonMail__icon}),(0,A.jsx)("span",{children:ef("postRegisterGoToGmail")})]}),b===k.ProveedorEmail.Outlook&&(0,A.jsxs)(O.default,{className:`${C.default.buttonSecondary} ${C.default.button} ${T.default.buttonMail}`,path:`https://outlook.live.com/mail/?login_hint=${encodeURIComponent(f)}`,targetBlank:!0,children:[(0,A.jsx)(D,{className:T.default.buttonMail__icon}),(0,A.jsx)("span",{children:ef("postRegisterGoToHotmail")})]})]})]})]})})})]})}],960061)},825659,e=>{e.v({articulo:"Articulo-module-scss-module__LZMToa__articulo",articulo__categorias:"Articulo-module-scss-module__LZMToa__articulo__categorias",articulo__categorias__item:"Articulo-module-scss-module__LZMToa__articulo__categorias__item",articulo__content:"Articulo-module-scss-module__LZMToa__articulo__content",articulo__fechapublicacion:"Articulo-module-scss-module__LZMToa__articulo__fechapublicacion",articulo__imageWrapper:"Articulo-module-scss-module__LZMToa__articulo__imageWrapper",articulo__inner:"Articulo-module-scss-module__LZMToa__articulo__inner",articulo__link:"Articulo-module-scss-module__LZMToa__articulo__link",articulo__picture:"Articulo-module-scss-module__LZMToa__articulo__picture",articulo__resumen:"Articulo-module-scss-module__LZMToa__articulo__resumen",articulo__titulo:"Articulo-module-scss-module__LZMToa__articulo__titulo",articulo__vertical:"Articulo-module-scss-module__LZMToa__articulo__vertical",articulo__whiteBackground:"Articulo-module-scss-module__LZMToa__articulo__whiteBackground",articulo_contentColumn:"Articulo-module-scss-module__LZMToa__articulo_contentColumn","blink-animation":"Articulo-module-scss-module__LZMToa__blink-animation"})},888605,e=>{"use strict";var t=e.i(843476),a=e.i(522016),i=e.i(618566),r=e.i(10655),s=e.i(825659),n=e.i(978877),o=e.i(283231),l=e.i(970435);e.s(["default",0,function({articulo:e,children:c}){let u=(0,i.useSearchParams)(),d=(0,i.usePathname)(),{pageData:h}=(0,n.usePageData)(),m=(0,o.useModuleGAMetadata)();return(0,t.jsx)("div",{className:s.default.articulo__link,onClick:()=>{(0,r.contentClickEvent)({urlPagina:h.tipoPagina===l.TIPO_PAGINA_API.HOME?"/":d,tipoPagina:(0,r.convertPageType)(h.tipoPagina),tipoClick:"title",nombreContenido:e.titulo,categoriaBlog:e?.categoriaPrincipal?.titulo,tipoContenido:"Blog",tipoCta:"card",valorClick:"ArtÃculo",nombreSeccionPadre:m?.metadatosSeccion?.nombre})},children:(0,t.jsx)(a.default,{prefetch:!1,href:`${e.url}`,title:e.titulo,onClick:t=>{let a="textoBuscador";u.has(a)&&(0,r.clickSearchResultEvent)({urlPagina:d,tipoPagina:(0,r.convertPageType)("buscador"),searchTerm:u.get(a)||"",searchClick:e.titulo,tipoContenido:"entradas"})},children:c})})}])},666888,e=>{"use strict";var t=e.i(843476),a=e.i(618566),i=e.i(10655),r=e.i(825659),s=e.i(970496);e.s(["default",0,function({className:e,variant:n,articulo:o,children:l}){let c=(0,a.useSearchParams)(),u=(0,a.usePathname)(),d=(0,s.classNames)(r.default.articulo,e&&e,!1,"vertical"===n&&r.default.articulo__vertical);return(0,t.jsx)("div",{className:d,onClick:e=>{let t="textoBuscador";c.has(t)&&(0,i.clickSearchResultEvent)({urlPagina:u,tipoPagina:(0,i.convertPageType)("buscador"),searchTerm:c.get(t)||"",searchClick:o.titulo,tipoContenido:"entradas"})},children:l})}])},480484,e=>{e.v({"blink-animation":"TarjetaCategoria-module-scss-module__xR5J6a__blink-animation",categoria:"TarjetaCategoria-module-scss-module__xR5J6a__categoria",categoria__descripcion:"TarjetaCategoria-module-scss-module__xR5J6a__categoria__descripcion",categoria__image:"TarjetaCategoria-module-scss-module__xR5J6a__categoria__image",categoria__imageWrapper:"TarjetaCategoria-module-scss-module__xR5J6a__categoria__imageWrapper",categoria__innerWrapper:"TarjetaCategoria-module-scss-module__xR5J6a__categoria__innerWrapper",categoria__text:"TarjetaCategoria-module-scss-module__xR5J6a__categoria__text",categoria__titulo:"TarjetaCategoria-module-scss-module__xR5J6a__categoria__titulo"})},415068,e=>{"use strict";var t=e.i(843476),a=e.i(480484),i=e.i(283231),r=e.i(978877),s=e.i(10655),n=e.i(618566);e.s(["default",0,function({children:e,data:o,tipo:l}){let{pageData:c}=(0,r.usePageData)(),u=(0,i.useModuleGAMetadata)(),d=(0,n.usePathname)(),h=e=>{(0,s.contentClickEvent)({urlPagina:d,tipoPagina:(0,s.convertPageType)(c.tipoPagina),tipoClick:e,nombreContenido:o.descripcion,categoriaBlog:o.titulo,tipoContenido:"Blog",tipoCta:"card",valorClick:"CategorÃa",nombreSeccionPadre:u?.metadatosSeccion?.nombre})};return"image"===l?(0,t.jsx)("div",{className:a.default.categoria__imageWrapper,onClick:()=>h("image"),children:e}):"title"===l?(0,t.jsx)("p",{className:a.default.categoria__titulo,onClick:()=>h("title"),children:e}):(0,t.jsx)(t.Fragment,{})}])},901680,e=>{e.v({"blink-animation":"LibrosDestacados-module-scss-module__b5Q0DG__blink-animation",layout_smallCenter:"LibrosDestacados-module-scss-module__b5Q0DG__layout_smallCenter",libroDestacado:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado",libroDestacado__autoresList:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado__autoresList",libroDestacado__botonLeerMas:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado__botonLeerMas",libroDestacado__botones:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado__botones",libroDestacado__descripcion:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado__descripcion",libroDestacado__header:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado__header",libroDestacado__info:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado__info",libroDestacado__portada:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado__portada",libroDestacado__portadaWrapper:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado__portadaWrapper",libroDestacado__subtitulo:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado__subtitulo",libroDestacado__tematica:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado__tematica",libroDestacado__title:"LibrosDestacados-module-scss-module__b5Q0DG__libroDestacado__title",librosDestacados__destacado:"LibrosDestacados-module-scss-module__b5Q0DG__librosDestacados__destacado",librosDestacados_layout_1:"LibrosDestacados-module-scss-module__b5Q0DG__librosDestacados_layout_1",librosDestacados_layout_2:"LibrosDestacados-module-scss-module__b5Q0DG__librosDestacados_layout_2",librosDestacados_layout_3:"LibrosDestacados-module-scss-module__b5Q0DG__librosDestacados_layout_3",right:"LibrosDestacados-module-scss-module__b5Q0DG__right"})},313876,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(978877),r=e.i(283231),s=e.i(901680),n=e.i(970435),o=e.i(618566);e.s(["default",0,function({libro:e,position:l,children:c}){let{pageData:u}=(0,i.usePageData)(),d=(0,r.useModuleGAMetadata)(),h=(0,o.usePathname)();return(0,t.jsx)("div",{className:s.default.libroDestacado__portadaWrapper,onClick:()=>void(0,a.bookClickEvent)({...u.ga,tipoPagina:(0,a.convertPageType)(u.tipoPagina),urlPagina:u.tipoPagina===n.TIPO_PAGINA_API.HOME?"/":h,tipoClick:"image",items:[{item_name:e.titulo,item_id:e.idPlaneta,price:e.precioNumero,item_brand:e.nombreEditorial,item_category:e?.tematicaPrincipal?.nombre,item_category2:e.nombresSubtematicas,item_category3:e.nombreColeccion,item_category4:e?.autores?.map(e=>e.nombre),item_variant:e.presentacion,index:l,quantity:1}],idModuloPadre:d?.metadatosModulo.id,nombreModuloPadre:d?.metadatosModulo.nombre}),children:c})}])},598657,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(978877),r=e.i(283231),s=e.i(901680),n=e.i(970435),o=e.i(618566);e.s(["default",0,function({libro:e,position:l,children:c}){let{pageData:u}=(0,i.usePageData)(),d=(0,r.useModuleGAMetadata)(),h=(0,o.usePathname)();return(0,t.jsx)("div",{className:s.default.libroDestacado__header,onClick:()=>void(0,a.bookClickEvent)({...u.ga,tipoPagina:(0,a.convertPageType)(u.tipoPagina),urlPagina:u.tipoPagina===n.TIPO_PAGINA_API.HOME?"/":h,tipoClick:"title",items:[{item_name:e.titulo,item_id:e.idPlaneta,price:e.precioNumero,item_brand:e.nombreEditorial,item_category:e?.tematicaPrincipal?.nombre,item_category2:e.nombresSubtematicas,item_category3:e.nombreColeccion,item_category4:e?.autores?.map(e=>e.nombre),item_variant:e.presentacion,index:l,quantity:1}],idModuloPadre:d?.metadatosModulo.id,nombreModuloPadre:d?.metadatosModulo.nombre}),children:c})}])},470041,e=>{e.v({"blink-animation":"LeerMas-module-scss-module__lo8cma__blink-animation",leerMas:"LeerMas-module-scss-module__lo8cma__leerMas",leerMas__buttonWrapper:"LeerMas-module-scss-module__lo8cma__leerMas__buttonWrapper",leerMas__innerWrapper:"LeerMas-module-scss-module__lo8cma__leerMas__innerWrapper",visible:"LeerMas-module-scss-module__lo8cma__visible"})},279745,e=>{"use strict";var t=e.i(843476),a=e.i(470041),i=e.i(271645),r=e.i(691630),s=e.i(916153);e.s(["default",0,function({lines:e=3,children:n,className:o,lineHeightEm:l=1.6,onClick:c,textoLeerMas:u="Leer más",textoLeerMenos:d="Leer menos"}){let[h,m]=(0,i.useState)(!0),[_,p]=(0,i.useState)(!1),f=(0,i.useRef)(),g=()=>{c&&c(),m(!h)};return(0,i.useEffect)(()=>{let t=f.current,a=e*parseFloat(getComputedStyle(t).lineHeight);t.scrollHeight>a&&p(!0)},[e,n]),(0,t.jsxs)("div",{className:`${a.default.leerMas} ${o||""}`,children:[(0,t.jsx)("div",{className:a.default.leerMas__innerWrapper,style:{lineHeight:l+"em",height:h&&_?l*e+"em":"unset"}
14,children:(0,t.jsx)("div",{ref:f,children:h&&_?(0,t.jsx)(s.default,{lineClamp:h?e:0,children:n}):(0,t.jsx)(t.Fragment,{children:n})})}),_&&(0,t.jsx)("div",{className:`${a.default.leerMas__buttonWrapper} ${_?a.default.visible:""}`,children:h?(0,t.jsx)(r.default,{type:"button",variant:"down",text:u,onClickEvent:g}):(0,t.jsx)(r.default,{type:"button",variant:"up",text:d,onClickEvent:g})})]})}])},152973,e=>{"use strict";var t=e.i(843476),a=e.i(279745),i=e.i(10655),r=e.i(978877),s=e.i(283231),n=e.i(618566);e.s(["default",0,function({children:e,textoLeerMas:o="Leer más",textoLeerMenos:l="Leer menos"}){let{pageData:c}=(0,r.usePageData)(),u=(0,s.useModuleGAMetadata)(),d=(0,n.usePathname)();return(0,t.jsx)(a.default,{lines:10,onClick:()=>(0,i.contentClickEvent)({tipoPagina:(0,i.convertPageType)(c.tipoPagina),urlPagina:d,nombreContenido:"sinopsis read more",tipoContenido:"Otros",nombreSeccionPadre:u?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"textlink"}),textoLeerMas:o,textoLeerMenos:l,children:e})}])},3045,e=>{e.v({accordionItem:"Accordion-module-scss-module__tvQjrG__accordionItem",accordionItem__btn:"Accordion-module-scss-module__tvQjrG__accordionItem__btn",accordionItem__btn__icon:"Accordion-module-scss-module__tvQjrG__accordionItem__btn__icon",accordionItem__content:"Accordion-module-scss-module__tvQjrG__accordionItem__content",accordionItem__heading:"Accordion-module-scss-module__tvQjrG__accordionItem__heading",accordions:"Accordion-module-scss-module__tvQjrG__accordions",blanco:"Accordion-module-scss-module__tvQjrG__blanco","blink-animation":"Accordion-module-scss-module__tvQjrG__blink-animation"})},97121,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(64887),r=e.i(3045),s=e.i(564156),n=e.i(777386);function o({index:e,isOpen:a,onClick:i,title:l,content:c,bgColor:u="gris",headingTitle:d}){let h=`accordion-heading-${e}`,m=`accordion-panel-${e}`;return(0,t.jsxs)("div",{className:`${r.default.accordionItem} ${"blanco"===u?r.default.blanco:""}`,children:[(0,t.jsx)(d||"h2",{id:h,className:r.default.accordionItem__heading,children:(0,t.jsxs)("button",{className:r.default.accordionItem__btn,onClick:()=>i(e),type:"button","aria-expanded":a,"aria-controls":m,"aria-labelledby":h,children:[l,(0,t.jsx)("span",{className:r.default.accordionItem__btn__icon,children:a?(0,t.jsx)(s.default,{}):(0,t.jsx)(n.default,{})})]})}),(0,t.jsx)("div",{id:m,className:r.default.accordionItem__content,hidden:!a,role:"region","aria-labelledby":h,children:c})]})}e.s(["default",0,function({items:e,itemKeyForTitle:s,itemKeyForContent:n,bgColor:l="gris"}){let[c,u]=(0,a.useState)(0);return(0,t.jsx)("div",{className:r.default.accordions,children:e.map((e,a)=>(0,t.jsx)(o,{index:a,isOpen:a===c,onClick:()=>{u(a===c?null:a)},headingTitle:e?.headingTitle||"h2",title:(0,t.jsx)(i.default,{rawHtml:e[s]}),content:(0,t.jsx)(i.default,{rawHtml:e[n]}),bgColor:l},a))})}])},191444,e=>{e.v({"blink-animation":"ContenidoComentarBlog-module-scss-module__H_bAfa__blink-animation",customInput:"ContenidoComentarBlog-module-scss-module__H_bAfa__customInput",fullWidth:"ContenidoComentarBlog-module-scss-module__H_bAfa__fullWidth"})},205123,e=>{e.v({"blink-animation":"StartRating-module-scss-module__RWPfzW__blink-animation",star:"StartRating-module-scss-module__RWPfzW__star",stars:"StartRating-module-scss-module__RWPfzW__stars"})},502886,846361,e=>{"use strict";var t,a,i,r,s=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}function o(){return(o=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 29 28"},e),t||(t=s.createElement("path",{fill:"#E0E0E0",d:"M13.361.68a1.25 1.25 0 0 1 2.225 0l3.887 7.592 8.421 1.35a1.25 1.25 0 0 1 .688 2.117l-6.019 6.042 1.318 8.427a1.25 1.25 0 0 1-1.8 1.308l-7.607-3.857-7.607 3.857a1.25 1.25 0 0 1-1.8-1.308l1.317-8.427L.366 11.74a1.25 1.25 0 0 1 .687-2.117l8.421-1.35z"})),a||(a=s.createElement("path",{fill:"#F0EBEB",fillRule:"evenodd",d:"m14.474 1.783-3.722 7.27a1.25 1.25 0 0 1-.915.664l-8.064 1.294 5.764 5.786c.281.283.41.682.35 1.076l-1.262 8.069 7.284-3.694a1.25 1.25 0 0 1 1.13 0l7.285 3.694-1.262-8.07a1.25 1.25 0 0 1 .35-1.075l5.763-5.786-8.064-1.294a1.25 1.25 0 0 1-.915-.664z",clipRule:"evenodd"})))}],502886),e.s(["default",0,function(e){return s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 29 28"},e),i||(i=s.createElement("path",{fill:"#FFA800",d:"M13.361.68a1.25 1.25 0 0 1 2.225 0l3.887 7.592 8.421 1.35a1.25 1.25 0 0 1 .688 2.117l-6.
14019 6.042 1.318 8.427a1.25 1.25 0 0 1-1.8 1.308l-7.607-3.857-7.607 3.857a1.25 1.25 0 0 1-1.8-1.308l1.317-8.427L.366 11.74a1.25 1.25 0 0 1 .687-2.117l8.421-1.35z"})),r||(r=s.createElement("path",{fill:"#FFB800",fillRule:"evenodd",d:"m14.474 1.783-3.722 7.27a1.25 1.25 0 0 1-.915.664l-8.064 1.294 5.764 5.786c.281.283.41.682.35 1.076l-1.262 8.069 7.284-3.694a1.25 1.25 0 0 1 1.13 0l7.285 3.694-1.262-8.07a1.25 1.25 0 0 1 .35-1.075l5.763-5.786-8.064-1.294a1.25 1.25 0 0 1-.915-.664z",clipRule:"evenodd"})))}],846361)},23011,e=>{"use strict";var t=e.i(843476),a=e.i(205123),i=e.i(846361),r=e.i(502886),s=e.i(271645),n=e.i(970496);e.s(["default",0,function({className:e,value:o=0,totalStars:l=5,nameInputHidden:c="rating"}){let[u,d]=(0,s.useState)(o),[h,m]=(0,s.useState)(o),_=()=>{m(0)};return(0,t.jsxs)("div",{className:(0,n.classNames)(a.default.stars,e),children:[Array.from({length:l},(e,t)=>t+1).map(e=>(0,t.jsx)("span",{className:a.default.star,onClick:()=>{d(e)},onMouseOver:()=>{m(e)},onMouseLeave:_,children:e<=(h||u)?(0,t.jsx)(i.default,{}):(0,t.jsx)(r.default,{})},e)),(0,t.jsx)("input",{type:"hidden",name:c,value:u})]})}])},785222,e=>{e.v({articulo:"MiniaturaArticuloModal-module-scss-module__vVBKoa__articulo",articulo__descripcion:"MiniaturaArticuloModal-module-scss-module__vVBKoa__articulo__descripcion",articulo__imagen:"MiniaturaArticuloModal-module-scss-module__vVBKoa__articulo__imagen",articulo__imagenWrapper:"MiniaturaArticuloModal-module-scss-module__vVBKoa__articulo__imagenWrapper",articulo__meta:"MiniaturaArticuloModal-module-scss-module__vVBKoa__articulo__meta",articulo__meta__categoria:"MiniaturaArticuloModal-module-scss-module__vVBKoa__articulo__meta__categoria",articulo__text:"MiniaturaArticuloModal-module-scss-module__vVBKoa__articulo__text",articulo__title:"MiniaturaArticuloModal-module-scss-module__vVBKoa__articulo__title","blink-animation":"MiniaturaArticuloModal-module-scss-module__vVBKoa__blink-animation",newsletter__image:"MiniaturaArticuloModal-module-scss-module__vVBKoa__newsletter__image"})},48899,e=>{"use strict";var t=e.i(843476),a=e.i(785222);function i({formatoSalida:e="D MMM YYYY",className:a,fecha:r,meses:s}){return r?(0,t.jsx)("span",{className:a||"",children:function(e,t,a){let[i,r]=e.split(" "),[s,n,o]=i.split("-"),[l,c]=r.split(":"),u=a[parseInt(n,10)-1];return t.replace("D",String(parseInt(o,10))).replace("MMM",u).replace("YYYY",s).replace("H",String(parseInt(l,10))).replace("mm",c)}(r,e,s)}):(0,t.jsx)(t.Fragment,{})}var r=e.i(64887),s=e.i(824526),n=e.i(81143),o=e.i(916153);e.s(["default",0,function({articulo:e,meses:l}){return(0,t.jsxs)("div",{className:a.default.articulo,children:[(0,t.jsx)("div",{className:a.default.articulo__imagenWrapper,children:(0,t.jsx)(s.default,{img:e.imagenMiniatura,thumbKey:"m_250_150_crop",sources:[{thumbKey:"d_510_306_crop",media:"desktop"},{thumbKey:"d_360_216_crop",media:"tablet"}],alt:`Miniatura articulo: ${e.titulo}`,placeholder:n.IMAGEPLACEHOLDERS.ARTICULO,className:a.default.articulo__imagen})}),(0,t.jsxs)("div",{className:a.default.articulo__text,children:[(0,t.jsxs)("div",{className:a.default.articulo__meta,children:[e.categoriaPrincipal&&(0,t.jsx)("span",{className:a.default.articulo__meta__categoria,children:e.categoriaPrincipal.titulo}),(0,t.jsx)("span",{className:a.default.articulo__meta__separador,children:"-"}),(0,t.jsx)("span",{className:a.default.articulo__meta__fechapublicacion,children:(0,t.jsx)(i,{fecha:e.fechaPublicacion,meses:l})})]}),(0,t.jsx)("div",{className:a.default.articulo__title,children:e.titulo}),(0,t.jsx)("div",{className:a.default.articulo__descripcion,children:(0,t.jsx)(o.default,{lineClamp:2,children:(0,t.jsx)(r.default,{rawHtml:e.resumen})})})]})]})}],48899)},360126,e=>{"use strict";var t,a,i=e.i(271645);function r(){return(r=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return i.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 31 32"},e),t||(t=i.createElement("path",{fill:"currentColor",d:"M14.1 5.233a.5.5 0 0 1 .89 0l1.915 3.74a.5.5 0 0 0 .366.266l4.149.665a.5.5 0 0 1 .275.847l-2.965 2.977a.5.5 0 0 0-.14.43l.65 4.151a.5.5 0 0 1-.721.524l-3.748-1.9a.5.5 0 0 0-.452 0l-3.748 1.9a.5.5 0 0 1-.72-.524l.65-4.151a.5.5 0 0 0-.14-.43L7.395 10.75a.5.5 0 0 1 .275-.847l4.15-.665a.5.5 0 0 0 .365-.266z"})),a||(a=i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.687 2.91
14a1.78 1.78 0 0 0-1.778 1.777v22.347l3.982-3.982a1.46 1.46 0 0 1 1.028-.426h17.455a1.78 1.78 0 0 0 1.777-1.777V4.687a1.78 1.78 0 0 0-1.777-1.778zM1.373 1.372A4.69 4.69 0 0 1 4.687 0h20.687a4.687 4.687 0 0 1 4.687 4.687v16.162a4.687 4.687 0 0 1-4.687 4.686H8.522l-6.039 6.039A1.454 1.454 0 0 1 0 30.545V4.687c0-1.243.494-2.435 1.373-3.314",clipRule:"evenodd"})))}])},69455,e=>{"use strict";var t=e.i(843476),a=e.i(283231),i=e.i(978877),r=e.i(936540),s=e.i(330580),n=e.i(539912),o=e.i(822596),l=e.i(88205);e.i(247167);var c=e.i(132440),u=e.i(191444),d=e.i(271645),h=e.i(23011),m=e.i(296175);e.i(777446),e.i(64887);var _=e.i(95187);let p=(0,_.createServerReference)("40f6f12ac8fb58482100ecb8226256a68a6d2b57bd",_.callServer,void 0,_.findSourceMapURL,"saveArticleComment");var f=e.i(289640);function g({idArticulo:e,closeModalParent:a,dictionary:i}){let{t:r}=(0,o.getDictionary)(i),[s,n]=(0,d.useState)(!1),_=async t=>{await p({idBlogEntrada:e,valoracion:parseInt(t.get("rating")),titulo:t.get("title"),comentario:t.get("opinion"),checkPermitePublicarEnRevista:null}),n(!0)};return s?(0,t.jsx)(f.default,{titulo:r("tituloAgradecimientoComentarioBlog"),descripcion:r("descripcionAgradecimientoComentarioBlog"),tituloBoton:r("tituloBotonVolverBlog"),closeModal:a}):(0,t.jsxs)("div",{className:"ContenidoComentarBlog",children:[(0,t.jsxs)("form",{action:_,id:"comentarArticulo",children:[(0,t.jsxs)(m.default,{error:!1,children:[(0,t.jsx)("p",{className:l.default.modal__fieldLabel,children:r("valoracion")}),(0,t.jsx)(h.default,{nameInputHidden:"rating"})]}),(0,t.jsxs)(m.default,{error:!1,children:[(0,t.jsx)("label",{htmlFor:"title",children:r("formTituloValoracion")}),(0,t.jsx)("input",{className:u.default.customInput,type:"text","aria-label":r("formTituloValoracion"),id:"title",name:"title",required:!0})]}),(0,t.jsxs)(m.default,{error:!1,children:[(0,t.jsx)("label",{htmlFor:"opinion",children:r("formOpinion")}),(0,t.jsx)("textarea",{className:u.default.customInput,"aria-label":r("formOpinion"),id:"opinion",name:"opinion",required:!0,minLength:10})]}),!1,(0,t.jsx)(m.default,{children:(0,t.jsx)(c.default,{className:u.default.fullWidth,size:"normal",defaultTitle:r("enviarComentario"),loadingTitle:r("enviandoComentario")})})]}),(0,t.jsx)("p",{className:l.default.modal__helptext,children:r("modalComentarLibroModeracion")})]})}var b=e.i(48899),E=e.i(970496),v=e.i(208549),A=e.i(360126);function T({titulo:e}){return(0,t.jsxs)("div",{className:l.default.modal__headerWithIcon,children:[(0,t.jsx)(A.default,{className:l.default.modal__headerWithIcon__icon}),(0,t.jsx)("span",{className:l.default.modal__headerWithIcon__text,children:e})]})}function C({articulo:e,dictionary:a,children:i,closeParentModal:r,meses:s,defaultDict:n}){let{t:c}=(0,o.getDictionary)(a);return(0,t.jsxs)("div",{className:(0,E.classNames)("ModalBlogComentar",l.default.modal2Columnas),children:[(0,t.jsx)(v.default,{defaultDict:n,closeAction:e=>{e.stopPropagation(),r()},className:l.default.modal2Columnas__cabeceraMobile,children:(0,t.jsx)(T,{titulo:c("tituloModalBlog")})}),(0,t.jsxs)("div",{className:l.default.modal2Columnas__inner,children:[(0,t.jsx)("div",{className:`${l.default.modal2Columnas__miniatura} ${l.default.modal2Columnas__miniatura__fullPadding}`,children:(0,t.jsx)(b.default,{articulo:e,meses:s})}),(0,t.jsxs)("div",{className:l.default.modal2Columnas__content,children:[(0,t.jsx)(v.default,{defaultDict:n,closeAction:e=>{e.stopPropagation(),r()},className:l.default.modal2Columnas__cabeceraDesktop,children:(0,t.jsx)(T,{titulo:c("tituloModalBlog")})}),i||(0,t.jsx)(g,{idArticulo:e?.id,closeModalParent:r,dictionary:a})]})]})]})}var y=e.i(10655),x=e.i(618566);e.s(["default",0,function({titulo:e="Añadir comentario",blogEntrada:l,dictionary:c,children:u,meses:d,textoUsuarioComentado:h,defaultDict:m}){let{pageData:_}=(0,i.usePageData)(),p=(0,a.useModuleGAMetadata)(),{refModal:f,openModal:g,closeModal:b,isOpen:E}=(0,s.default)(),{t:v}=(0,o.getDictionary)(c),A=(0,x.usePathname)();return(0,t.jsxs)("div",{className:"AnadirComentario",children:[h?(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:h})}):(0,t.jsx)(r.default,{onClick:()=>{(0,y.contentClickEvent)({tipoPagina:(0,y.convertPageType)(_.tipoPagina),urlPagina:A,nombreContenido:"add comment",tipoContenido:"Otros",nombreSeccionPadre:p?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"button"}),g()},type:"button",children:e}),(0,t.jsx)(n.Modal,{isOpen:E,ref:f,handleClose:b,closeOutsideClose:!0,id:`comentar_${l.id}`,variant:"no-padding",children:(0,t.jsx)(C,{defaultDict:m,dictionary:c,articulo:l,meses:d,closeParentMod
14al:b,children:u})})]})}],69455)},840166,e=>{e.v({"blink-animation":"ComentariosBlog-module-scss-module__0RjwVG__blink-animation",comentarios__buttonShowMoreWrapper:"ComentariosBlog-module-scss-module__0RjwVG__comentarios__buttonShowMoreWrapper",comentarios__buttonWrapper:"ComentariosBlog-module-scss-module__0RjwVG__comentarios__buttonWrapper",comentarios__collection:"ComentariosBlog-module-scss-module__0RjwVG__comentarios__collection",comentarios__nocomments:"ComentariosBlog-module-scss-module__0RjwVG__comentarios__nocomments",comentarios__show:"ComentariosBlog-module-scss-module__0RjwVG__comentarios__show",comentarios__title:"ComentariosBlog-module-scss-module__0RjwVG__comentarios__title",comentarios__titleWrapper:"ComentariosBlog-module-scss-module__0RjwVG__comentarios__titleWrapper",comentarios__wrapper:"ComentariosBlog-module-scss-module__0RjwVG__comentarios__wrapper",hide:"ComentariosBlog-module-scss-module__0RjwVG__hide"})},103355,e=>{e.v({autor:"Comentario-module-scss-module__62PswG__autor",autor__fecha:"Comentario-module-scss-module__62PswG__autor__fecha",autor__nombre:"Comentario-module-scss-module__62PswG__autor__nombre",autor__separador:"Comentario-module-scss-module__62PswG__autor__separador","blink-animation":"Comentario-module-scss-module__62PswG__blink-animation",comentario:"Comentario-module-scss-module__62PswG__comentario",comentario__autor:"Comentario-module-scss-module__62PswG__comentario__autor",comentario__
14cabecera:"Comentario-module-scss-module__62PswG__comentario__cabecera",comentario__cabeceraWrapper:"Comentario-module-scss-module__62PswG__comentario__cabeceraWrapper",comentario__estrellas:"Comentario-module-scss-module__62PswG__comentario__estrellas",comentario__fecha:"Comentario-module-scss-module__62PswG__comentario__fecha",comentario__imagenAutor:"Comentario-module-scss-module__62PswG__comentario__imagenAutor",comentario__separadorAutorFecha:"Comentario-module-scss-module__62PswG__comentario__separadorAutorFecha",comentario__titulo:"Comentario-module-scss-module__62PswG__comentario__titulo",respuesta:"Comentario-module-scss-module__62PswG__respuesta",respuesta__contenido:"Comentario-module-scss-module__62PswG__respuesta__contenido",respuesta__imagen:"Comentario-module-scss-module__62PswG__respuesta__imagen",respuesta__texto:"Comentario-module-scss-module__62PswG__respuesta__texto"})},675032,e=>{e.v({"blink-animation":"Estrellas-module-scss-module__fj3iAq__blink-animation",estrellas:"Estrellas-module-scss-module__fj3iAq__estrellas",estrellas__big:"Estrellas-module-scss-module__fj3iAq__estrellas__big",estrellas__biggest:"Estrellas-module-scss-module__fj3iAq__estrellas__biggest",estrellas__normal:"Estrellas-module-scss-module__fj3iAq__estrellas__normal",estrellas__tiny:"Estrellas-module-scss-module__fj3iAq__estrellas__tiny"})},205966,e=>{"use strict";var t,a,i,r,s,n,o,l,c,u,d,h,m,_,p,f,g,b,E,v=e.i(843476),A=e.i(840166),T=e.i(271645),C=e.i(247167),y=e.i(103355),x=e.i(675032);function S(){return(S=Object.assign.bind()).apply(null,arguments)}let N=function(e){return T.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 15"},e),t||(t=T.createElement("path",{fill:"#E0E0E0",d:"M6.676.544a1 1 0 0 1 1.78 0L10.3 4.142l3.99.64a1 1 0 0 1 .55 1.694l-2.852 2.863.625 3.994a1 1 0 0 1-1.44 1.047l-3.606-1.828-3.605 1.828a1 1 0 0 1-1.44-1.047l.624-3.994L.293 6.476a1 1 0 0 1 .55-1.694l3.99-.64z"})),a||(a=T.createElement("path",{fill:"#F0EBEB",fillRule:"evenodd",d:"M7.565.903 5.723 4.501a1 1 0 0 1-.732.532L1 5.673l2.853 2.864a1 1 0 0 1 .279.86l-.624 3.994 3.605-1.828a1 1 0 0 1 .904 0l3.606 1.828-.625-3.994a1 1 0 0 1 .28-.86l2.852-2.864-3.99-.64a1 1 0 0 1-.733-.532z",clipRule:"evenodd"})))};function w(){return(w=Object.assign.bind()).apply(null,arguments)}let I=function(e){return T.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 15"},e),i||(i=T.createElement("path",{fill:"#FFA800",d:"M6.676.544a1 1 0 0 1 1.78 0L10.3 4.142l3.99.64a1 1 0 0 1 .55 1.694l-2.852 2.863.625 3.994a1 1 0 0 1-1.44 1.047l-3.606-1.828-3.605 1.828a1 1 0 0 1-1.44-1.047l.624-3.994L.293 6.476a1 1 0 0 1 .55-1.694l3.99-.64z"})),r||(r=T.createElement("path",{fill:"#FFB800",fillRule:"evenodd",d:"M7.565.903 5.723 4.501a1 1 0 0 1-.732.532L1 5.673l2.853 2.864a1 1 0 0 1 .279.86l-.624 3.994 3.605-1.828a1 1 0 0 1 .904 0l3.606 1.828-.625-3.994a1 1 0 0 1 .28-.86l2.852-2.864-3.99-.64a1 1 0 0 1-.733-.532z",clipRule:"evenodd"})))};function k(){return(k=Object.assign.bind()).apply(null,arguments)}let L=function(e){return T.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 21 20"},e),s||(s=T.createElement("path",{fill:"#E0E0E0",d:"M9.53.544a1 1 0 0 1 1.78 0l2.743 5.358 5.943.953a1 1 0 0 1 .55 1.693l-4.248 4.265.93 5.947a1 1 0 0 1-1.44 1.046l-5.369-2.722-5.368 2.723a1 1 0 0 1-1.44-1.047l.93-5.947L.292 8.548a1 1 0 0 1 .55-1.693l5.943-.953z"})),n||(n=T.createElement("path",{fill:"#F0EBEB",fillRule:"evenodd",d:"M10.418 1 7.675 6.358a1 1 0 0 1-.732.531L1 7.843l4.248 4.265a1 1 0 0 1 .28.86l-.93 5.947 5.368-2.722a1 1 0 0 1 .905 0l5.368 2.722-.93-5.947a1 1 0 0 1 .28-.86l4.248-4.265-5.944-.954a1 1 0 0 1-.731-.531z",clipRule:"evenodd"})))};function O(){return(O=Object.assign.bind()).apply(null,arguments)}let P=function(e){return T.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 21 21"},e),o||(o=T.createElement("path",{fill:"#FFA800",d:"M9.53.64a1 1 0 0 1 1.78 0L14.052 6l5.943.953a1 1 0 0 1 .55 1.693l-4.248 4.265.93 5.947a1 1 0 0 1-1.44 1.046l-5.369-2.722-5.368 2.722a1 1 0 0 1-1.44-1.046l.93-5.947L.292 8.645a1 1 0 0 1 .55-1.693L6.786 6z"})),l||(l=T.createElement("path",{fill:"#FFB800",fillRule:"evenodd",d:"M10.418 1.097 7.675 6.454a1 1 0 0 1-.732.532L1 7.939l4.248 4.265a1 1 0 0 1 .28.86l-.93 5.947 5.368-2.722a1 1 0 0 1 .905 0l5.368 2.722-.93-5.947a1 1 0 0 1 .28-.86l4.248-4.265-5.944-.953a1 1 0 0 1-.731-.532z",clipRule:"evenodd"})))};var D=e.i(502886),R=e.i(846361);function M(){return(M=Object.assign.bind()).apply(null,arguments)}let j=function(e){return T.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 39 38"}
14,e),c||(c=T.createElement("path",{fill:"#E0E0E0",fillRule:"evenodd",d:"M18.144.816c.558-1.088 2.113-1.088 2.67 0l5.331 10.412 11.55 1.853c1.207.193 1.688 1.673.825 2.54l-8.255 8.287 1.807 11.556c.19 1.208-1.07 2.123-2.16 1.57l-10.433-5.29-10.432 5.29c-1.09.553-2.35-.362-2.16-1.57l1.806-11.556L.44 15.62c-.863-.866-.382-2.346.825-2.54l11.55-1.852z",clipRule:"evenodd"})),u||(u=T.createElement("path",{fill:"#F0EBEB",fillRule:"evenodd",d:"m19.48 2.597-5.002 9.768a1.5 1.5 0 0 1-1.098.797L2.545 14.9l7.744 7.775a1.5 1.5 0 0 1 .42 1.29L9.012 34.809l9.788-4.963a1.5 1.5 0 0 1 1.357 0l9.787 4.963-1.695-10.842a1.5 1.5 0 0 1 .42-1.29l7.744-7.776-10.836-1.738a1.5 1.5 0 0 1-1.097-.798z",clipRule:"evenodd"})))};function F(){return(F=Object.assign.bind()).apply(null,arguments)}let B=function(e){return T.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 39 38"},e),d||(d=T.createElement("path",{fill:"#FFA800",fillRule:"evenodd",d:"M18.144 1.413c.558-1.088 2.113-1.088 2.67 0l5.331 10.411 11.55 1.853c1.207.194 1.688 1.673.825 2.54l-8.255 8.287 1.807 11.557c.19 1.208-1.07 2.122-2.16 1.57l-10.433-5.29-10.432 5.29c-1.09.552-2.35-.362-2.16-1.57l1.806-11.557L.44 16.217c-.863-.867-.382-2.346.825-2.54l11.55-1.853z",clipRule:"evenodd"})),h||(h=T.createElement("path",{fill:"#FFB800",fillRule:"evenodd",d:"m19.48 3.193-5.002 9.768a1.5 1.5 0 0 1-1.098.798L2.545 15.497l7.744 7.775a1.5 1.5 0 0 1 .42 1.29L9.012 35.404l9.788-4.962a1.5 1.5 0 0 1 1.357 0l9.787 4.962-1.695-10.842a1.5 1.5 0 0 1 .42-1.29l7.744-7.775-10.836-1.738a1.5 1.5 0 0 1-1.097-.798z",clipRule:"evenodd"})))};function U(e){switch(e){case"tiny":return(0,v.jsx)(I,{});case"normal":default:return(0,v.jsx)(P,{});case"big":return(0,v.jsx)(R.default,{});case"biggest":return(0,v.jsx)(B,{})}}function G(e){switch(e){case"tiny":return(0,v.jsx)(N,{});case"normal":default:return(0,v.jsx)(L,{});case"big":return(0,v.jsx)(D.default,{});case"biggest":return(0,v.jsx)(j,{})}}let H=function({numeroEstrellas:e,variant:t="normal"}){return(0,v.jsx)("div",{className:`${x.default.estrellas} ${function(e="normal"){let t;switch(e){case"tiny":t=`${x.default.estrellas__tiny}`;break;case"normal":default:t=`${x.default.estrellas__normal}`;break;case"big":t=`${x.default.estrellas__big}`;break;case"biggest":t=`${x.default.estrellas__biggest}`}return t}(t)}`,children:[void 0,void 0,void 0,void 0,void 0].map((t,a)=>(0,v.jsx)("span",{className:x.default.estrellas__item,children:a<e?(0,v.jsx)(U,{}):(0,v.jsx)(G,{})},a))})};var W=e.i(64887),V=e.i(279745),q=e.i(824526),$=e.i(81143);function Y(){return(Y=Object.assign.bind()).apply(null,arguments)}let z=function(e){return T.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 62 62"},e),m||(m=T.createElement("path",{fill:"#231F20",d:"M60.08 26.493c.274 1.64.274 3.005.274 4.37 0 3.824-.823 7.375-2.195 10.652C55.965 46.978 52.4 51.621 47.46 54.9c-4.938 3.277-10.699 5.19-16.734 5.19s-11.797-1.913-16.735-5.19-8.504-7.921-10.699-13.384c-1.372-3.277-2.195-7.1-2.195-10.652 0-1.365 0-2.73.275-4.37 1.097-6.828 4.39-13.11 9.876-17.753C16.735 4.097 23.318 1.64 30.45 1.64S44.443 4.097 49.655 8.74c5.76 4.643 9.327 10.925 10.425 17.753M51.3 7.648C45.54 2.73 38.408 0 31 0S16.186 2.731 10.7 7.648C5.211 12.564 1.371 19.118.273 26.493 0 28.133 0 29.771 0 31.137c0 4.096.823 7.92 2.195 11.47 2.194 5.737 6.035 10.653 11.248 13.93C18.655 60.088 24.69 62 31 62s12.345-1.912 17.557-5.463c5.213-3.55 9.054-8.466 11.248-13.93C61.177 39.058 62 35.235 62 31.138c0-1.366 0-3.005-.274-4.644-1.098-7.374-4.938-13.93-10.425-18.845"})),_||(_=T.createElement("path",{fill:"#0070BA",d:"M4.93 26.493c-.274.82-.274 1.64-.274 2.459h52.399c0-.82 0-1.64-.275-2.459-.549-3.004-1.646-5.735-3.018-8.467 0 0-9.327 5.736-22.77 5.736S7.948 18.026 7.948 18.026c-1.371 2.732-2.469 5.463-3.017 8.467"})),p||(p=T.createElement("path",{fill:"#23378B",d:"M25.787 41.79c-9.602 1.092-15.912 4.915-15.912 4.915a26.2 26.2 0 0 0 7.133 6.282s4.938-6.828 13.717-6.828c9.327 0 13.99 6.555 13.99 6.555 2.744-1.639 4.939-3.824 6.86-6.282 0 0-5.762-4.097-15.638-5.19-1.646-.272-3.292-.272-5.212-.272-1.647.546-3.293.546-4.939.82"})),f||(f=T.createElement("path",{fill:"#0053A1",d:"M54.592 41.788
14c-.274.547-.548 1.366-.823 1.912 0 0-1.371-.82-3.566-1.912-3.84-1.638-10.7-4.097-19.204-4.097s-15.088 2.185-18.929 4.097C9.601 42.881 8.23 43.7 8.23 43.7c-.275-.546-.823-1.365-1.098-1.912a21.05 21.05 0 0 1-2.194-9.286h52.398c-.549 3.55-1.372 6.555-2.744 9.286"})),g||(g=T.createElement("path",{fill:"#2FB4E9",d:"M31.004 4.916c-3.84 0-7.407.82-10.7 2.185 0 0 3.018 4.643 10.7 4.643 7.955 0 10.15-4.916 10.15-4.916-3.292-1.366-6.584-1.912-10.15-1.912"})),b||(b=T.createElement("path",{fill:"#0098D8",d:"M44.456 8.74s-4.115 6.555-13.442 6.555c-9.602 0-13.991-6.555-13.991-6.555-2.744 1.639-5.213 3.824-6.859 6.555 0 0 7.682 5.19 20.85 5.19s20.575-5.463 20.575-5.463c-1.92-2.731-4.39-4.643-7.133-6.282"})),E||(E=T.createElement("path",{fill:"#2B2A7F",d:"M31.003 49.982c-7.407 0-10.425 4.917-10.425 4.917 3.292 1.365 6.858 2.185 10.425 2.185 3.84 0 7.407-.82 10.699-2.185-.274 0-3.566-4.917-10.7-4.917"})))};function K({comentario:e,className:t}){return(0,v.jsxs)("div",{className:`${y.default.comentario} ${t||""} fondoItem`,children:[(0,v.jsxs)("div",{className:y.default.comentario__
14cabeceraWrapper,children:[(0,v.jsxs)("div",{className:y.default.comentario__cabecera,children:[(0,v.jsxs)("p",{className:y.default.autor,children:[(0,v.jsx)("span",{className:y.default.autor__nombre,children:e.autor}),(0,v.jsx)("span",{className:y.default.autor__separador,children:"-"}),(0,v.jsx)("span",{className:y.default.autor__fecha,children:e.fecha})]}),(0,v.jsx)("p",{className:y.default.comentario__titulo,children:e.titulo}),(0,v.jsx)("div",{className:y.default.comentario__estrellas,children:(0,v.jsx)(H,{numeroEstrellas:e.estrellas})})]}),(0,v.jsx)("div",{className:y.default.comentario__imagenAutor,children:(0,v.jsx)(q.default,{img:e?.fotoAutor,thumbKey:"m_175_175_crop",sources:[{thumbKey:"d_300_300_crop",media:"mobile"}],alt:`Imagen ${e.autor}`,placeholder:$.IMAGEPLACEHOLDERS.USUARIO})})]}),(0,v.jsx)("div",{className:"comentario__contenido",children:(0,v.jsx)(V.default,{lines:3,children:(0,v.jsx)(W.default,{rawHtml:e.contenido})})}),e.respuestaContenido&&(0,v.jsxs)("div",{className:y.default.respuesta,children:[(0,v.jsx)("div",{className:y.default.respuesta__imagen,children:(0,v.jsx)(z,{})}),(0,v.jsxs)("div",{className:y.default.respuesta__contenido,children:[(0,v.jsxs)("p",{className:y.default.autor,children:[(0,v.jsx)("span",{className:y.default.autor__nombre,children:C.default.env.META_OG_SITENAME??"Planetadelibros"??"Planetadelibros"}),(0,v.jsx)("span",{className:y.default.autor__separador,children:"-"}),(0,v.jsx)("span",{className:y.default.autor__fecha,children:e.respuestaFecha})]}),(0,v.jsx)("div",{className:y.default.respuesta__texto,children:(0,v.jsx)(V.default,{lines:3,children:(0,v.jsx)(W.default,{rawHtml:e.respuestaContenido})})})]})]})]})}var Q=e.i(691630),X=e.i(822596);e.s(["default",0,function({comentarios:e,dictionary:t}){let a=e?.length||0,[i,r]=(0,T.useState)(!1),[s,n]=(0,T.useState)(1),{t:o}=(0,X.getDictionary)(t);return(0,T.useEffect)(()=>{i?n(a):n(1)},[i]),(0,v.jsxs)(v.Fragment,{children:[a>0&&(0,v.jsx)("div",{className:A.default.comentarios__collection,children:e?.map((e,t)=>{if(s>t)return(0,v.jsx)(K,{comentario:e},t)})}),a>1&&(0,v.jsx)("div",{className:A.default.comentarios__buttonShowMoreWrapper,children:(0,v.jsx)(Q.default,{variant:i?"up":"down",text:o(i?"verMenosComentarios":"verMasComentarios"),onClickEvent:()=>r(!i)})})]})}],205966)},95712,(e,t,a)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.useFrame=void 0;let r=i(e.r(271645));a.useFrame=e=>r.default.useMemo(()=>e||{document:"u">typeof document?document:void 0,window:"u">typeof window?window:void 0},[e])},282711,(e,t,a)=>{"use strict";var i=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a},r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.EmbedStyle=void 0;let s=r(e.r(343794)),n=r(e.r(271645));a.EmbedStyle=e=>{var t=i(e,[]);return n.default.createElement("style",Object.assign({},t,{className:(0,s.default)(t.className),style:Object.assign({},t.style)}),` 15 .rsme-embed .rsme-d-none { 16 display: none; 17 } 18 19 .rsme-embed .twitter-tweet { 20 margin: 0 !important; 21 } 22 23 .rsme-embed blockquote { 24 margin: 0 !important; 25 padding: 0 !important; 26 } 27 28 .rsme-embed.rsme-facebook-embed .fb-post iframe { 29 width: 100% !important; 30 } 31 32 .rsme-embed.rsme-facebook-embed .fb-post span { 33 width: 100% !important; 34 } 35 `)}},197604,(e,t,a)=>{"use strict";var i=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a}
35,r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.BorderSpinner=void 0;let s=r(e.r(343794)),n=r(e.r(271645));a.BorderSpinner=e=>{var t=i(e,[]);return n.default.createElement(n.default.Fragment,null,n.default.createElement("style",null,` 36 .rsme-spinner { 37 border: 3px solid rgba(0,0,0,0.75); 38 border-right-color: transparent; 39 border-radius: 50%; 40 animation: rsme-spin 1s linear infinite; 41 } 42 @keyframes rsme-spin { 43 0% { 44 transform: rotate(0deg); 45 } 46 100% { 47 transform: rotate(360deg); 48 } 49 } 50 `),n.default.createElement("div",Object.assign({},t,{className:(0,s.default)("rsme-spinner",t.className),style:Object.assign({width:10,height:10},t.style)})))}},647176,(e,t,a)=>{"use strict";var i=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a},r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.ShareArrowIcon=a.ChatBubbleIcon=a.HeartIcon=a.EngagementIconsPlaceholder=void 0;let s=r(e.r(343794)),n=r(e.r(271645));a.EngagementIconsPlaceholder=e=>{var t=i(e,[]);return n.default.createElement("div",Object.assign({},t,{className:(0,s.default)(t.className),style:Object.assign({display:"flex",alignItems:"center",columnGap:14},t.style)}),n.default.createElement(a.HeartIcon,null),n.default.createElement(a.ChatBubbleIcon,null),n.default.createElement(a.ShareArrowIcon,null))},a.HeartIcon=e=>n.default.createElement("div",Object.assign({},e),n.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",height:"12.5px",width:"12.5px",transform:"translateX(0px) translateY(7px)"}}),n.default.createElement("div",{style:{backgroundColor:"#F4F4F4",height:"12.5px",transform:"rotate(-45deg) translateX(3px) translateY(1px)",width:"12.5px",flexGrow:0,marginRight:"6px",marginLeft:"2px"}}),n.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",height:"12.5px",width:"12.5px",transform:"translateX(9px) translateY(-18px)"}})),a.ChatBubbleIcon=e=>n.default.createElement("div",Object.assign({},e),n.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",height:"20px",width:"20px"}}),n.default.createElement("div",{style:{width:0,height:0,borderTop:"2px solid transparent",borderLeft:"6px solid #f4f4f4",borderBottom:"2px solid transparent",transform:"translateX(16px) translateY(-4px) rotate(30deg)"}})),a.ShareArrowIcon=e=>n.default.createElement("div",Object.assign({},e,{style:{height:25,width:25,transform:"translateX(0px) translateY(-2px)"}}),n.default.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512",xmlSpace:"preserve"},n.default.createElement("path",{style:{fill:"#F4F4F4"},d:"M295.204,180.593C132.168,180.593,0,312.759,0,475.796\nc51.398-130.047,184.869-203.22,317.483-183.603L295.204,180.593z"}),n.default.createElement("path",{style:{fill:"#F4F4F4"},d:"M512,253L295.204,36.204v217.818C159.946,249.655,34.992,339.262,0,475.794\nc59.905-109.171,178.724-165.463,295.204-151.033v145.035L512,253z"})))},719478,(e,t,a)=>{"use strict";var i=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a},r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.ProfilePlaceholder=void 0;let s=r(e.r(343794)),n=r(e.r(271645));a.ProfilePlaceholder=e=>{var t=i(e,[]);return n.default.createElement("div",Object.assign({},t,{className:(0,s.default)(t.className),style:Object.assign({},t.style)}
50),n.default.createElement("div",{style:{display:"flex",columnGap:14}},n.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",width:40,height:40}}),n.default.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",rowGap:6}},n.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:4,width:100,height:14}}),n.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:4,width:60,height:14}}))))}},908342,(e,t,a)=>{"use strict";var i=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a},r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.PlaceholderEmbed=void 0;let s=r(e.r(343794)),n=r(e.r(271645)),o=e.r(282711),l=e.r(197604),c=e.r(647176),u=e.r(719478),d=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;a.PlaceholderEmbed=e=>{var t,{url:a,linkText:r="View post",imageUrl:h,spinner:m=n.default.createElement(l.BorderSpinner,null),allowJavaScriptUrls:_=!0,spinnerDisabled:p}=e,f=i(e,["url","linkText","imageUrl","spinner","allowJavaScriptUrls","spinnerDisabled"]);return d.test(a)&&!_?(console.warn("PlaceholderEmbed has blocked a javascript: URL as a security precaution"),null):n.default.createElement("div",Object.assign({},f,{className:(0,s.default)(f.className),style:Object.assign({overflow:"hidden",border:"1px solid #dee2e6",backgroundColor:"#ffffff",borderRadius:0,boxSizing:"border-box",position:"relative"},f.style)}),n.default.createElement(o.EmbedStyle,null),n.default.createElement("a",{href:a,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer"},!h&&n.default.createElement("div",{style:{position:"absolute",top:0,left:0,display:"flex",justifyContent:"space-between",alignItems:"start",paddingLeft:16,paddingRight:16,paddingTop:16,paddingBottom:16,zIndex:2,backgroundColor:"#ffffff"}},n.default.createElement(u.ProfilePlaceholder,null)),n.default.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:h?"start":"center",height:"100%",width:"100%"}},!h&&n.default.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",rowGap:16,zIndex:3,padding:8,backgroundColor:"#ffffff"}},!p&&m,!!r&&n.default.createElement("div",{style:{color:"#000000",fontFamily:"Arial,sans-serif",fontSize:"14px",fontStyle:"normal",fontWeight:550,lineHeight:"18px",textAlign:"center"}},r)),h&&(void 0!==(null==(t=f.style)?void 0:t.height)?n.default.createElement("div",{style:{width:"100%",height:"100%",background:`url("${h}")`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",marginBottom:"40"}}):n.default.createElement("div",{style:{width:"100%",marginBottom:40}},n.default.createElement("img",{src:h,style:{width:"100%"}})))),n.default.createElement("div",{style:{position:"absolute",bottom:0,left:0,height:40,width:"100%",backgroundColor:"#ffffff",zIndex:1}},!h&&n.default.createElement(c.EngagementIconsPlaceholder,{style:{marginLeft:16}}),h&&n.default.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center",justifyContent:"space-between",columnGap:16}},n.default.createElement("div",{style:{color:"#0095f6",fontWeight:600,fontFamily:"Arial,sans-serif",fontSize:"14px",fontStyle:"normal",whiteSpace:"nowrap",marginLeft:16}},r),!p&&n.default.createElement("div",{style:{marginRight:16}},m)))))}},6913,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.generateUUID=void 0,a.generateUUID=()=>{let e=new Date().getTime(),t="u">typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){let i=16*Math.random();return e>0?(i=(e+i)%16|0,e=Math.floor(e/16)):(i=(t+i)%16|0,t=Math.floor(t/16)),("x"===a?i:3&i|8).toString(16)})}},140251,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Subs=a.Subscribe=void 0;
50class i{static subscribe(e){try{return e()}catch(e){console.error(e)}return()=>{}}static subscribeEvent(e,t,a){return e.addListener(t,a),()=>{e.removeListener(t,a)}}static subscribeDOMEvent(e,t,a,i){return e.addEventListener(t,a,i),()=>{e.removeEventListener(t,a,i)}}static setTimeout(e,t,...a){let i=setTimeout(e,t,a);return()=>clearTimeout(i)}static setInterval(e,t,...a){let i=setInterval(e,t,a);return()=>clearInterval(i)}static unsubAll(e){if(Array.isArray(e))e.forEach(e=>{try{e()}catch(e){console.error(e)}});else try{e()}catch(e){console.error(e)}}static createCleanup(e){return()=>i.unsubAll(e)}}a.Subscribe=i,a.Subs=class{constructor(e=[]){this.list=e}subscribe(e){let t=i.subscribe(e);return this.push(t),t}subscribeEvent(e,t,a){let r=i.subscribeEvent(e,t,a);return this.push(r),r}subscribeDOMEvent(e,t,a){let r=i.subscribeDOMEvent(e,t,a);return this.push(r),r}setTimeout(e,t,...a){let i=setTimeout(e,t,a),r=()=>clearTimeout(i);return this.push(r),r}setInterval(e,t,...a){let i=setInterval(e,t,a),r=()=>clearInterval(i);return this.push(r),r}push(e){this.list.push(e)}unsubAll(){i.unsubAll(this.list),this.list.splice(0,this.list.length)}createCleanup(){return()=>{this.unsubAll()}}}},858532,(e,t,a)=>{"use strict";var i=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a},r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.FacebookEmbed=void 0;let s=r(e.r(343794)),n=r(e.r(271645)),o=e.r(95712),l=e.r(908342),c=e.r(6913),u=e.r(282711),d=e.r(140251),h="check-script",m="load-script",_="confirm-script-loaded",p="process-embed",f="confirm-embed-success",g="retrying",b="embed-success";a.FacebookEmbed=e=>{var t,a,{url:r,width:E,height:v,linkText:A="View post on Facebook",placeholderImageUrl:T,placeholderSpinner:C,placeholderSpinnerDisabled:y=!1,placeholderProps:x,embedPlaceholder:S,placeholderDisabled:N=!1,scriptLoadDisabled:w=!1,retryDelay:I=5e3,retryDisabled:k=!1,frame:L,debug:O=!1}=e,P=i(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","scriptLoadDisabled","retryDelay","retryDisabled","frame","debug"]);let[D,R]=n.default.useState(h),M=n.default.useMemo(()=>D===b,[D]),j=n.default.useRef((0,c.generateUUID)()),[F,B]=n.default.useState(Date.now()),U=n.default.useMemo(()=>`${j.current}-${F}`,[F]),G=(0,o.useFrame)(L);n.default.useEffect(()=>{O&&console.log(`[${new Date().toISOString()}]: ${D}`)},[O,D]),n.default.useEffect(()=>{var e,t,a;D===h&&((null==(a=null==(t=null==(e=G.window)?void 0:e.FB)?void 0:t.XFBML)?void 0:a.parse)?R(p):w?console.error("Facebook embed script not found. Unable to process Facebook embed:",r):R(m))},[w,D,r,G.window]),n.default.useEffect(()=>{if(D===m&&G.document){let e=G.document.createElement("script");e.setAttribute("src","https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v16.0"),G.document.head.appendChild(e),R(_)}},[D,G.document]),n.default.useEffect(()=>{let e=new d.Subs;return D===_&&e.setInterval(()=>{var e,t,a;(null==(a=null==(t=null==(e=G.window)?void 0:e.FB)?void 0:t.XFBML)?void 0:a.parse)&&R(p)},1),e.createCleanup()},[D,G.window]),n.default.useEffect(()=>{var e,t,a;if(D===p){let i=null==(a=null==(t=null==(e=G.window)?void 0:e.FB)?void 0:t.XFBML)?void 0:a.parse;i?(i(),R(f)):console.error("Facebook embed script not found. Unable to process Facebook embed:",r)}},[D,r,G.window]),n.default.useEffect(()=>{let e=new d.Subs;return D===f&&(e.setInterval(()=>{if(G.document){let e=G.document.getElementById(j.current);if(e){let t=e.getElementsByClassName("fb-post")[0];t&&t.children.length>0&&R(b)}}},1),k||e.setTimeout(()=>{R(g)},I)),e.createCleanup()},[k,I,D,G.document]),n.default.useEffect(()=>{D===g&&(B(Date.now()),R(p))},[D]);let H=!!(null==E?void 0:E.toString().includes("%")),W=!!(null==v?void 0:v.toString().includes("%")),V={maxWidth:H?void 0:550,width:void 0!==E?H?"100%":E:"100%",height:W?"100%":void 0!==v?v:void 0!==(null==(t=P.style)?void 0:t.height)||void 0!==(null==(a=P.style)?void 0:a.maxHeight)?"100%":372,border:"1px solid #dee2e6",borderRadius:3},q=null!=S?S:n.default.createElement(l.PlaceholderEmbed,Object.assign({url:r,imageUrl:T,linkText:A,spinner:C,spinnerDisabled:y},x,{style:Object.assign(Object.assign({},V),null==x?void 0:x.style)}));return n.default.createElement("div",Object.assign({},P,{className:(0,s.default)("rsme-embed rsme-facebook-embed",P.className),style:Object.assign({overflow:"hidden",
50width:null!=E?E:void 0,height:null!=v?v:void 0,borderRadius:3},P.style)}),n.default.createElement(u.EmbedStyle,null),n.default.createElement("div",{id:j.current,className:(0,s.default)(!M&&"rsme-d-none")},n.default.createElement("div",{key:U,className:"fb-post","data-href":r,"data-width":H?"100%":null!=E?E:550,style:{width:H?"100%":null!=E?E:550,height:W?"100%":null!=v?v:void 0}})),!M&&!N&&q)}},898739,(e,t,a)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,a,i){void 0===i&&(i=a);var r=Object.getOwnPropertyDescriptor(t,a);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,r)}:function(e,t,a,i){void 0===i&&(i=a),e[i]=t[a]}),r=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&i(t,e,a);return r(t,e),t},n=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a},o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.InstagramEmbed=void 0;let l=o(e.r(343794)),c=s(e.r(271645)),u=e.r(140251),d=e.r(95712),h=e.r(908342),m=e.r(6913),_=e.r(282711),p="check-script",f="load-script",g="confirm-script-loaded",b="process-embed",E="confirm-embed-success",v="retrying";a.InstagramEmbed=e=>{var t,a,{url:i,width:r,height:s,linkText:o="View post on Instagram",captioned:A=!1,placeholderImageUrl:T,placeholderSpinner:C,placeholderSpinnerDisabled:y=!1,placeholderProps:x,embedPlaceholder:S,placeholderDisabled:N=!1,scriptLoadDisabled:w=!1,retryDelay:I=5e3,retryDisabled:k=!1,igVersion:L="14",frame:O,debug:P=!1}=e,D=n(e,["url","width","height","linkText","captioned","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","scriptLoadDisabled","retryDelay","retryDisabled","igVersion","frame","debug"]);let[R,M]=c.useState(p),j=c.useRef((0,m.generateUUID)()),[F,B]=c.useState(Date.now()),U=c.useMemo(()=>`${j.current}-${F}`,[F]),G=(0,d.useFrame)(O);c.useEffect(()=>{P&&console.log(`[${new Date().toISOString()}]: ${R}`)},[P,R]),c.useEffect(()=>{var e,t,a;R===p&&((null==(a=null==(t=null==(e=G.window)?void 0:e.instgrm)?void 0:t.Embeds)?void 0:a.process)?M(b):w?console.error("Instagram embed script not found. Unable to process Instagram embed:",i):M(f))},[w,R,i,G.window]),c.useEffect(()=>{if(R===f&&G.document){let e=G.document.createElement("script");e.setAttribute("src","https://www.instagram.com/embed.js"),G.document.head.appendChild(e),M(g)}},[R,G.document]),c.useEffect(()=>{let e=new u.Subs;return R===g&&e.setInterval(()=>{var e,t,a;(null==(a=null==(t=null==(e=G.window)?void 0:e.instgrm)?void 0:t.Embeds)?void 0:a.process)&&M(b)},1),e.createCleanup()},[R,G.window]),c.useEffect(()=>{var e,t,a;if(R===b){let r=null==(a=null==(t=null==(e=G.window)?void 0:e.instgrm)?void 0:t.Embeds)?void 0:a.process;r?(r(),M(E)):console.error("Instagram embed script not found. Unable to process Instagram embed:",i)}},[R,G.window,i]),c.useEffect(()=>{let e=new u.Subs;return R===E&&(e.setInterval(()=>{G.document&&(G.document.getElementById(j.current)||M("embed-success"))},1),k||e.setTimeout(()=>{M(v)},I)),e.createCleanup()},[I,k,R,G.document]),c.useEffect(()=>{R===v&&(B(Date.now()),M(b))},[R]);let H=i.split(/[?#]/)[0].replace(/\.com\/.*?\/p/,".com/p").replace(/\.com\/.*?\/reel/,".com/reel"),W=`${H}${H.endsWith("/")?"":"/"}`,V=!!(null==r?void 0:r.toString().includes("%")),q={minWidth:V?void 0:328,width:void 0!==r?V?"100%":r:"100%",height:(null==s?void 0:s.toString().includes("%"))?"100%":void 0!==s?s:void 0!==(null==(t=D.style)?void 0:t.height)||void 0!==(null==(a=D.style)?void 0:a.maxHeight)?"100%":372,border:"1px solid #dee2e6",borderRadius:3},$=null!=S?S:c.createElement(h.PlaceholderEmbed,Object.assign({url:W,imageUrl:T,linkText:o,spinner:C,spinnerDisabled:y},x,{style:Object.assign(Object.assign({},q),null==x?void 0:x.style)}));return c.createElement("div",Object.assign({},D,{className:(0,l.default)("rsme-embed rsme-instagram-embed",j.current,D.
50className),style:Object.assign(Object.assign({overflow:"hidden",width:null!=r?r:void 0,height:null!=s?s:void 0,borderRadius:3},D.style),{position:"relative"})}),c.createElement(_.EmbedStyle,null),c.createElement("blockquote",{key:U,className:"instagram-media","data-instgrm-permalink":`${W}?utm_source=ig_embed&utm_campaign=loading`,"data-instgrm-version":L,"data-instgrm-captioned":A||void 0,"data-width":V?"100%":null!=r?r:void 0,style:{width:"calc(100% - 2px)"}},!N&&$,c.createElement("div",{id:j.current,className:"instagram-media-pre-embed rsme-d-none"},"Â ")))}},11596,(e,t,a)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,a,i){void 0===i&&(i=a);var r=Object.getOwnPropertyDescriptor(t,a);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,r)}:function(e,t,a,i){void 0===i&&(i=a),e[i]=t[a]}),r=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&i(t,e,a);return r(t,e),t},n=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a},o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.LinkedInEmbed=void 0;let l=o(e.r(343794)),c=s(e.r(271645)),u=e.r(908342),d=e.r(282711);a.LinkedInEmbed=e=>{var t,a,{url:i,postUrl:r,width:s,height:o=500,linkText:h="View post on LinkedIn",placeholderImageUrl:m,placeholderSpinner:_,placeholderSpinnerDisabled:p=!1,placeholderProps:f,embedPlaceholder:g,placeholderDisabled:b=!1}=e,E=n(e,["url","postUrl","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled"]);let[v,A]=c.useState(!1),T={minWidth:250,maxWidth:550,width:void 0!==s?s:"100%",height:void 0!==o?o:void 0!==(null==(t=E.style)?void 0:t.height)||void 0!==(null==(a=E.style)?void 0:a.maxHeight)?"100%":550,border:"solid 1px rgba(0, 0, 0, 0.15)",borderRadius:8},C=null!=g?g:c.createElement(u.PlaceholderEmbed,Object.assign({url:null!=r?r:i,imageUrl:m,linkText:h,spinner:_,spinnerDisabled:p},f,{style:Object.assign(Object.assign({},T),null==f?void 0:f.style)}));return c.createElement("div",Object.assign({},E,{className:(0,l.default)("rsme-embed rsme-linkedin-embed",E.className),style:Object.assign({overflow:"hidden",width:null!=s?s:void 0,height:null!=o?o:void 0,borderRadius:8},E.style)}),c.createElement(d.EmbedStyle,null),c.createElement("iframe",{className:(0,l.default)("linkedin-post",!v&&"rsme-d-none"),src:i,width:"100%",height:v?o:0,frameBorder:"0",onLoad:()=>A(!0)}),!v&&!b&&C)}},578296,(e,t,a)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,a,i){void 0===i&&(i=a);var r=Object.getOwnPropertyDescriptor(t,a);
50(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,r)}:function(e,t,a,i){void 0===i&&(i=a),e[i]=t[a]}),r=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&i(t,e,a);return r(t,e),t},n=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a},o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.PinterestEmbed=void 0;let l=o(e.r(343794)),c=s(e.r(271645)),u=e.r(908342),d=e.r(282711);a.PinterestEmbed=e=>{var t,a,i,{url:r,postUrl:s,width:o,height:h=500,linkText:m="View post on Pinterest",placeholderImageUrl:_,placeholderSpinner:p,placeholderSpinnerDisabled:f=!1,placeholderProps:g,embedPlaceholder:b,placeholderDisabled:E=!1}=e,v=n(e,["url","postUrl","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled"]);let[A,T]=c.useState(!1),C={minWidth:250,maxWidth:550,width:void 0!==o?o:"100%",height:void 0!==h?h:void 0!==(null==(t=v.style)?void 0:t.height)||void 0!==(null==(a=v.style)?void 0:a.maxHeight)?"100%":550,border:"solid 1px rgba(0, 0, 0, 0.15)",borderRadius:8},y=null!=b?b:c.createElement(u.PlaceholderEmbed,Object.assign({url:null!=s?s:r,imageUrl:_,linkText:m,spinner:p,spinnerDisabled:f},g,{style:Object.assign(Object.assign({},C),null==g?void 0:g.style)})),x=null==(i=r.match(/pin\/([\w\d_-]+)/))?void 0:i[1];return c.createElement("div",Object.assign({},v,{className:(0,l.default)("rsme-embed rsme-pinterest-embed",v.className),style:Object.assign({overflow:"hidden",width:null!=o?o:void 0,height:null!=h?h:void 0,borderRadius:8},v.style)}),c.createElement(d.EmbedStyle,null),c.createElement("iframe",{className:(0,l.default)("pinterest-post",!A&&"rsme-d-none"),src:`https://assets.pinterest.com/ext/embed.html?id=${null!=x?x:"000000000000000000"}`,width:"100%",height:A?h:0,frameBorder:"0",scrolling:"no",onLoad:()=>T(!0)}),!A&&!E&&y)}},136589,(e,t,a)=>{"use strict";var i=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a},r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.TikTokEmbed=void 0;let s=r(e.r(343794)),n=r(e.r(271645)),o=e.r(140251),l=e.r(95712),c=e.r(908342),u=e.r(6913),d=e.r(282711),h="process-embed",m="confirm-embed-success",_="retrying";a.TikTokEmbed=e=>{var t,a,{url:r,width:p,height:f,linkText:g="View post on TikTok",placeholderImageUrl:b,placeholderSpinner:E,placeholderSpinnerDisabled:v=!1,placeholderProps:A,embedPlaceholder:T,placeholderDisabled:C=!1,scriptLoadDisabled:y=!1,retryDelay:x=5e3,retryDisabled:S=!1,frame:N,debug:w=!1}=e,I=i(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","scriptLoadDisabled","retryDelay","retryDisabled","frame","debug"]);let[k,L]=n.default.useState(h),O=n.default.useRef((0,u.generateUUID)()),[P,D]=n.default.useState(Date.now()),R=n.default.useMemo(()=>`${O.current}-${P}`,[P]),M=(0,l.useFrame)(N);n.default.useEffect(()=>{w&&console.log(`[${new Date().toISOString()}]: ${k}`)},[w,k]),n.default.useEffect(()=>{if(k===h&&M.document&&!y){let e="tiktok-embed-script",t=M.document.getElementById(e);t&&t.remove();let a=M.document.createElement("script");a.setAttribute("src",`https://www.tiktok.com/embed.js?t=${Date.now()}`),a.setAttribute("id",e),M.document.head.appendChild(a),L(m)}},[y,k,M.document]),n.default.useEffect(()=>{let e=new o.Subs;return k===m&&(e.setInterval(()=>{M.document&&(M.document.getElementById(O.current)||L("embed-success"))}
50,1),S||e.setTimeout(()=>{L(_)},x)),e.createCleanup()},[x,S,k,M.document]),n.default.useEffect(()=>{k===_&&(D(Date.now()),L(h))},[k]);let j=r.replace(/[?].*$/,"").replace(/^.+\//,""),F={minWidth:325,maxWidth:480,width:void 0!==p?p:"100%",height:void 0!==f?f:void 0!==(null==(t=I.style)?void 0:t.height)||void 0!==(null==(a=I.style)?void 0:a.maxHeight)?"100%":550,border:"solid 1px rgba(22,24,35,0.12)",borderRadius:8},B=null!=T?T:n.default.createElement(c.PlaceholderEmbed,Object.assign({url:r,imageUrl:b,linkText:g,spinner:E,spinnerDisabled:v},A,{style:Object.assign(Object.assign({},F),null==A?void 0:A.style)}));return n.default.createElement("div",Object.assign({},I,{className:(0,s.default)("rsme-embed rsme-tiktok-embed",I.className),style:Object.assign({overflow:"hidden",width:null!=p?p:void 0,height:null!=f?f:void 0,borderRadius:8},I.style)}),n.default.createElement(d.EmbedStyle,null),n.default.createElement("div",{className:"tiktok-embed-container"},n.default.createElement("blockquote",{key:R,className:"tiktok-embed",cite:r,"data-video-id":j},C?n.default.createElement("div",{id:O.current,style:{display:"none"}},"Â "):n.default.createElement("div",{id:O.current,style:{display:"flex",justifyContent:"center"}},B))))}},665564,(e,t,a)=>{!function(i,r){if(t.exports)t.exports=r();else if("function"==typeof define&&define.amd){let i;void 0!==(i=r(e.r,a,t))&&e.v(i)}else this[i]=r()}("$script",function(){var e,t,a=document,i=a.getElementsByTagName("head")[0],r="push",s="readyState",n="onreadystatechange",o={},l={},c={},u={};function d(e,t){for(var a=0,i=e.length;a<i;++a)if(!t(e[a]))return!1;return 1}function h(e,t){d(e,function(e){return t(e),1})}function m(t,a,i){t=t[r]?t:[t];var s=a&&a.call,n=s?a:i,p=s?t.join(""):a,f=t.length;function g(e){return e.call?e():o[e]}function b(){if(!--f)for(var e in o[p]=1,n&&n(),c)d(e.split("|"),g)&&!h(c[e],g)&&(c[e]=[])}return setTimeout(function(){h(t,function t(a,i){return null===a?b():(i||/^https?:\/\//.test(a)||!e||(a=-1===a.indexOf(".js")?e+a+".js":e+a),u[a])?(p&&(l[p]=1),2==u[a]?b():setTimeout(function(){t(a,!0)},0)):void(u[a]=1,p&&(l[p]=1),_(a,b))})},0),m}function _(e,r){var o,l=a.createElement("script");l.onload=l.onerror=l[n]=function(){(!l[s]||/^c|loade/.test(l[s]))&&!o&&(l.onload=l[n]=null,o=1,u[e]=2,r())},l.async=1,l.src=t?e+(-1===e.indexOf("?")?"?":"&")+t:e,i.insertBefore(l,i.lastChild)}return m.get=_,m.order=function(e,t,a){!function i(r){r=e.shift(),e.length?m(r,i):m(r,t,a)}()},m.path=function(t){e=t},m.urlArgs=function(e){t=e},m.ready=function(e,t,a){e=e[r]?e:[e];var i,s=[];return!h(e,function(e){o[e]||s[r](e)})&&d(e,function(e){return o[e]})?t():(c[i=e.join("|")]=c[i]||[],c[i][r](t),a&&a(s)),m},m.done=function(e){m([null],e)},m})},828303,e=>{"use strict";var t=e.i(271645),a="https://platform.twitter.com/widgets.js",i="createTimeline",r="createShareButton",s="createFollowButton",n="createHashtagButton",o="createMentionButton",l="createTweet",c="createMoment",u="createDMButton",d="createVideo",h="createPeriscopeOnAirButton";e.s(["TwitterDMButton",0,function(i){var r=t.default.useRef(null),s=t.default.useState(!0),n=s[0],o=s[1];return t.default.useEffect(function(){var t=!0;return e.r(665564)(a,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(t){if(!window.twttr.widgets[u])return void console.error("Method "+u+" is not present anymore in twttr.widget api");window.twttr.widgets[u](i.id,null==r?void 0:r.current,i.options).then(function(e){t&&(o(!1),i.onLoad&&i.onLoad(e))})}}),function(){t=!1}},[]),t.default.createElement(t.default.Fragment,null,n&&t.default.createElement(t.default.Fragment,null,i.placeholder),t.default.createElement("div",{ref:r}))},"TwitterFollowButton",0,function(i){var r=t.default.useRef(null),n=t.default.useState(!0),o=n[0],l=n[1];return t.default.useEffect(function(){var t=!0;return e.r(665564)(a,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(t){if(!window.twttr.widgets[s])return void console.error("Method "+s+" is not present anymore in twttr.widget api");window.twttr.widgets[s](i.screenName,null==r?void 0:r.current,i.options).then(function(e){l(!1),i.onLoad&&i.onLoad(e)})}}),function(){t=!1}},[]),t.default.createElement(t.default.Fragment,null,o&&t.default.createElement(t.default.Fragment,null,i.placeholder),t.default.createElement("div",{ref:r}))},"TwitterHashtagButton",0,function(i){var r=t.default.useRef(null),s=t.default.useState(!0),o=s[0],l=s[1];return t.default.useEffect(function(){var t=!0;return e.r(665564)(a,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(t){if(!window.twttr.widgets[n])return void console.error("Method "+n+" is not present anymore in twttr.widget api");window.twttr.widgets[n](i.tag,null==r?void 0:r.current,i.options).then(function(e){l(!1),i.onLoad&&i.onLoad(e)})}}),function(){t=!1}},[]),t.default.createElement(t.default.Fragment,null,o&&t.default.createElement(t.default.Fragment,null,i.placeholder),t.default.createElement("div",{ref:r}))},"TwitterMentionButton",0,function(i){var r=t.default.useRef(null),s=t.default.useState(!0),n=s[0],l=s[1];return t.default.useEffect(function(){var t=!0;return e.r(665564)(a,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(t){if(!window.twttr.widgets[o])return void console.error("Method "+o+" is not present anymore in twttr.widget api");window.twttr.widgets[o](i.screenName,null==r?void 0:r.current,i.options).then(function(e){l(!1),i.onLoad&&i.onLoad(e)})}}),function(){t=!1}},[]),t.default.createElement(t.default.Fragment,null,n&&t.default.createElement(t.default.Fragment,null,i.placeholder),t.default.createElement("div",{ref:r}))},"TwitterMomentShare",0,function(i){var r=t.default.useRef(null),s=t.default.useState(!0),n=s[0],o=s[1];return t.default.useEffect(function(){var t=!0;return e.r(665564)(a,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(t){if(!window.twttr.widgets[c])return void console.error("Method "+c+" is not present anymore in twttr.widget api");window.twttr.widgets[c](i.momentId,null==r?void 0:r.current,i.options).then(function(e){o(!1),i.onLoad&&i.onLoad(e)})}}),function(){t=!1}},[]),t.default.createElement(t.default.Fragment,null,n&&t.default.createElement(t.default.Fragment,null,i.placeholder),t.default.createElement("div",{ref:r}))},"TwitterOnAirButton",0,function(i){var r=t.default.useRef(null),s=t.default.useState(!0),n=s[0],o=s[1];return t.default.useEffect(function(){var t=!0;return e.r(665564)(a,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(t){if(!window.twttr.widgets[h])return void console.error("Method "+h+" is not present anymore in twttr.widget api");window.twttr.widgets[h](i.username,null==r?void 0:r.current,i.options).then(function(e){o(!1),i.onLoad&&i.onLoad(e)})}}),function(){t=!1}},[]),t.default.createElement(t.default.Fragment,null,n&&t.default.createElement(t.default.Fragment,null,i.placeholder),t.default.createElement("div",{ref:r}))},"TwitterShareButton",0,function(i){var s=t.default.useRef(null),n=t.default.useState(!0),o=n[0],l=n[1];return t.default.useEffect(function(){var t=!0;return e.r(665564)(a,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(t){if(!window.twttr.widgets[r])return void console.error("Method "+r+" is not present anymore in twttr.widget api");window.twttr.widgets[r](i.url,null==s?void 0:s.current,i.options).then(function(e){l(!1),i.onLoad&&i.onLoad(e)})}}),function(){t=!1}},[]),t.default.createElement(t.default.Fragment,null,o&&t.default.createElement(t.default.Fragment,null,i.placeholder),t.default.createElement("div",{ref:s}))},"TwitterTimelineEmbed",0,function(r){var s=t.default.useRef(null),n=t.default.useState(!0),o=n[0],l=n[1],c=function(){var e,t,a=Object.assign({},r.options);return null!=r&&r.autoHeight&&(a.height=null==(e=s.current)||null==(t=e.parentNode)?void 0:t.offsetHeight),a=Object.assign({},a,{theme:null==r?void 0:r.theme,linkColor:null==r?void 0:r.linkColor,borderColor:null==r?void 0:r.borderColor,lang:null==r?void 0:r.lang,tweetLimit:null==r?void 0:r.tweetLimit,ariaPolite:null==r?void 0:r.ariaPolite})};return t.default.useEffect(function(){var t=!0;return e.r(665564)(a,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(t){if(!window.twttr.widgets[i])return void console.error("Method "+i+" is not present anymore in twttr.widget api");var e,a=c();(e=a).chrome="",r.noHeader&&(e.chrome=e.chrome+" noheader"),r.noFooter&&(e.chrome=e.chrome+" nofooter"),r.noBorders&&(e.chrome=e.chrome+" noborders"),r.noScrollbar&&(e.chrome=e.chrome+" noscrollbar"),r.transparent&&(e.chrome=e.chrome+" transparent"),a=e,window.twttr.widgets[i]({sourceType:r.sourceType,screenName:r.screenName,userId:r.userId,ownerScreenName:r.ownerScreenName,slug:r.slug,id:r.id||r.widgetId,url:r.url},null==s?void 0:s.current,a).then(function(e){l(!1),r.onLoad&&r.onLoad(e)})}}),function(){t=!1}},[]),t.default.createElement(t.default.Fragment,null,o&&t.default.createElement(t.default.Fragment,null,r.placeholder),t.default.createElement("div",{ref:s}))},"TwitterTweetEmbed",0,function(i){var r=t.default.useRef(null),s=t.default.useState(!0),n=s[0],o=s[1];return t.default.useEffect(function(){var t=!0;return e.r(665564)(a,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(t){if(!window.twttr.widgets[l])return void console.error("Method "+l+" is not present anymore in twttr.widget api");window.twttr.widgets[l](i.tweetId,null==r?void 0:r.current,i.options).then(function(e){o(!1),i.onLoad&&i.onLoad(e)})}}),function(){t=!1}},[]),t.default.createElement(t.default.Fragment,null,n&&t.default.createElement(t.default.Fragment,null,i.placeholder),t.default.createElement("div",{ref:r}))},"TwitterVideoEmbed",0,function(i){var r=t.default.useRef(null),s=t.default.useState(!0),n=s[0],o=s[1];return t.default.useEffect(function(){var t=!0;return e.r(665564)(a,"twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(t){if(!window.twttr.widgets[d])return void console.error("Method "+d+" is not present anymore in twttr.widget api");window.twttr.widgets[d](i.id,null==r?void 0:r.current).then(function(e){o(!1),i.onLoad&&i.onLoad(e)})}}),function(){t=!1}},[]),t.default.createElement(t.default.Fragment,null,n&&t.default.createElement(t.default.Fragment,null,i.placeholder),t.default.createElement("div",{ref:r}))}])},500256,(e,t,a)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,a,i){void 0===i&&(i=a);var r=Object.getOwnPropertyDescriptor(t,a);
50(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,r)}:function(e,t,a,i){void 0===i&&(i=a),e[i]=t[a]}),r=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&i(t,e,a);return r(t,e),t},n=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a},o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.XEmbed=void 0;let l=o(e.r(343794)),c=s(e.r(271645)),u=e.r(828303),d=e.r(908342),h=e.r(282711);a.XEmbed=e=>{var t,a,{url:i,width:r,height:s,linkText:o="View post on X",placeholderImageUrl:m,placeholderSpinner:_,placeholderSpinnerDisabled:p=!1,placeholderProps:f,embedPlaceholder:g,placeholderDisabled:b,twitterTweetEmbedProps:E}=e,v=n(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","twitterTweetEmbedProps"]);let A=i.substring(i.lastIndexOf("/")+1).replace(/[?].*$/,""),T=!!(null==r?void 0:r.toString().includes("%")),C={minWidth:250,maxWidth:550,width:void 0!==r?T?"100%":r:"100%",height:(null==s?void 0:s.toString().includes("%"))?"100%":void 0!==s?s:void 0!==(null==(t=v.style)?void 0:t.height)||void 0!==(null==(a=v.style)?void 0:a.maxHeight)?"100%":350,border:"solid 1px #c9d4d9",borderRadius:12},y=null!=g?g:c.createElement(d.PlaceholderEmbed,Object.assign({url:i,imageUrl:m,linkText:o,spinner:_,spinnerDisabled:p},f,{style:Object.assign(Object.assign({},C),null==f?void 0:f.style)}));return c.createElement("div",Object.assign({},v,{className:(0,l.default)("rsme-embed rsme-twitter-embed",v.className),style:Object.assign({overflow:"hidden",width:null!=r?r:void 0,height:null!=s?s:void 0,borderRadius:12},v.style)}),c.createElement(h.EmbedStyle,null),c.createElement(u.TwitterTweetEmbed,Object.assign({tweetId:A,placeholder:b?void 0:y},E)))}},104188,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TwitterEmbed=void 0,a.TwitterEmbed=e.r(500256).XEmbed},629801,(e,t,a)=>{"use strict";t.exports=function e(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;if(Array.isArray(t)){if((i=t.length)!=a.length)return!1;for(r=i;0!=r--;)if(!e(t[r],a[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((i=(s=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(a,s[r]))return!1;for(r=i;0!=r--;){var i,r,s,n=s[r];if(!e(t[n],a[n]))return!1}return!0}return t!=t&&a!=a}},177014,(e,t,a)=>{"use strict";t.exports=function(){var e={},t={};return e.on=function(e,a){var i={name:e,handler:a};return t[e]=t[e]||[],t[e].unshift(i),i},e.off=function(e){var a=t[e.name].indexOf(e);-1!==a&&t[e.name].splice(a,1)},e.trigger=function(e,a){var i,r=t[e];if(r)for(i=r.length;i--;)r[i].handler(a)},e}},164987,(e,t,a)=>{function i(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}t.exports=function(e,t,a){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");"function"==typeof t&&(a=t,t={}),a=a||function(){},s.type=(t=t||{}).type||"text/javascript",s.charset=t.charset||"utf8",s.async=!("async"in t)||!!t.async,s.src=e,t.attrs&&function(e,t){for(var a in t)e.setAttribute(a,t[a])}(s,t.attrs),t.text&&(s.text=""+t.text),("onload"in s?i:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(s,a),s.onload||i(s,a),r.appendChild(s)}},194544,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i,r=(i=e.r(164987))&&i.__esModule?i:{default:i};a.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)return void t(window.YT);var a="http:"===window.location.protocol?"http:":"https:";(0,r.default)(a+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var i=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){i&&i(),t(window.YT)}})},t.exports=a.default},535024,(e,t,a)=>{function i(e,t,a){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+a:Math.ceil(e/t)+" "+a+"s"}t.exports=function(e,t){t=t||{};var a,r,s=typeof e;if("string"===s&&e.length>0){var n=e;if(!((n=String(n)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(n);if(o){var l=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:break}}}return}if("number"===s&&!1===isNaN(e)){return t.long?i(a=e,864e5,"day")||i(a,36e5,"hour")||i(a,6e4,"minute")||i(a,1e3,"second")||a+" ms":(r=e)>=864e5?Math.round(r/864e5)+"d":r>=36e5?Math.round(r/36e5)+"h":r>=6e4?Math.round(r/6e4)+"m":r>=1e3?Math.round(r/1e3)+"s":r+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},592090,(e,t,a)=>{var i;function r(e){function t(){if(t.enabled){var e=+new Date;t.diff=e-(i||e),t.prev=i,t.curr=e,i=e;for(var r=Array(arguments.length),s=0;s<r.length;s++)r[s]=arguments[s];r[0]=a.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var n=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,function(e,i){if("%%"===e)return e;n++;var s=a.formatters[i];if("function"==typeof s){var o=r[n];e=s.call(t,o),r.splice(n,1),n--}return e}),a.formatArgs.call(t,r),(t.log||a.log||console.log.bind(console)).apply(t,r)}}return t.namespace=e,t.enabled=a.enabled(e),t.useColors=a.useColors(),t.color=function(e){var t,i=0;for(t in e)i=(i<<5)-i+e.charCodeAt(t)|0;return a.colors[Math.abs(i)%a.colors.length]}(e),"function"==typeof a.init&&a.init(t),t}(a=t.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},a.disable=function(){a.enable("")},a.enable=function(e){a.save(e),a.names=[],a.skips=[];
50for(var t=("string"==typeof e?e:"").split(/[\s,]+/),i=t.length,r=0;r<i;r++)t[r]&&("-"===(e=t[r].replace(/\*/g,".*?"))[0]?a.skips.push(RegExp("^"+e.substr(1)+"$")):a.names.push(RegExp("^"+e+"$")))},a.enabled=function(e){var t,i;for(t=0,i=a.skips.length;t<i;t++)if(a.skips[t].test(e))return!1;for(t=0,i=a.names.length;t<i;t++)if(a.names[t].test(e))return!0;return!1},a.humanize=e.r(535024),a.names=[],a.skips=[],a.formatters={}},858060,(e,t,a)=>{var i=e.i(247167);function r(){var e;try{e=a.storage.debug}catch(e){}return!e&&void 0!==i.default&&"env"in i.default&&(e=i.default.env.DEBUG),e}(a=t.exports=e.r(592090)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+a.humanize(this.diff),t){var i="color: "+this.color;e.splice(1,0,i,"color: inherit");var r=0,s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(s=r))}),e.splice(s,0,i)}},a.save=function(e){try{null==e?a.storage.removeItem("debug"):a.storage.debug=e}catch(e){}},a.load=r,a.useColors=function(){return"u">typeof window&&!!window.process&&"renderer"===window.process.type||"u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage="u">typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},a.enable(r())},806803,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","
50setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],t.exports=a.default},841819,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],t.exports=a.default},918197,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},t.exports=a.default},894203,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i,r=(i=e.r(918197))&&i.__esModule?i:{default:i};a.default={pauseVideo:{acceptableStates:[r.default.ENDED,r.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[r.default.ENDED,r.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[r.default.ENDED,r.default.PLAYING,r.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},t.exports=a.default},344008,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=o(e.r(858060)),r=o(e.r(806803)),s=o(e.r(841819)),n=o(e.r(894203));function o(e){return e&&e.__esModule?e:{default:e}}var l=(0,i.default)("youtube-player"),c={};c.proxyEvents=function(e){var t={},a=function(a){var i="on"+a.slice(0,1).toUpperCase()+a.slice(1);t[i]=function(t){l('event "%s"',i,t),e.trigger(a,t)}},i=!0,r=!1,n=void 0;try{for(var o,c=s.default[Symbol.iterator]();!(i=(o=c.next()).done);i=!0){var u=o.value;a(u)}}catch(e){r=!0,n=e}finally{try{!i&&c.return&&c.return()}finally{if(r)throw n}}return t},c.promisifyPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a={},i=function(i){t&&n.default[i]?a[i]=function(){for(var t=arguments.length,a=Array(t),r=0;r<t;r++)a[r]=arguments[r];return e.then(function(e){var t=n.default[i],r=e.getPlayerState(),s=e[i].apply(e,a);return t.stateChangeRequired||Array.isArray(t.acceptableStates)&&-1===t.acceptableStates.indexOf(r)?new Promise(function(a){e.addEventListener("onStateChange",function i(){var r=e.getPlayerState(),s=void 0;"number"==typeof t.timeout&&(s=setTimeout(function(){e.removeEventListener("onStateChange",i),a()},t.timeout)),Array.isArray(t.acceptableStates)&&-1!==t.acceptableStates.indexOf(r)&&(e.removeEventListener("onStateChange",i),clearTimeout(s),a())})}).then(function(){return s}):s})}:a[i]=function(){for(var t=arguments.length,a=Array(t),r=0;r<t;r++)a[r]=arguments[r];return e.then(function(e){return e[i].apply(e,a)})}},s=!0,o=!1,l=void 0;try{for(var c,u=r.default[Symbol.iterator]();!(s=(c=u.next()).done);s=!0){var d=c.value;i(d)}}catch(e){o=!0,l=e}finally{try{!s&&u.return&&u.return()}finally{if(o)throw l}}return a},a.default=c,t.exports=a.default},927539,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=o(e.r(177014)),s=o(e.r(194544)),n=o(e.r(344008));function o(e){return e&&e.__esModule?e:{default:e}}var l=void 0;a.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=(0,r.default)();if(l||(l=(0,s.default)(o)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=n.default.proxyEvents(o);var c=new Promise(function(a){(void 0===e?"undefined":i(e))==="object"&&e.playVideo instanceof Function?a(e):l.then(function(i){var r=new i.Player(e,t);return o.on("ready",function(){a(r)}),null})}),u=n.default.promisifyPlayer(c,a);return u.on=o.on,u.off=o.off,u},t.exports=a.default},265562,e=>{"use strict";var t=e.i(745009),a=e.i(271645),i=e.i(629801),r=e.i(927539),s=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,a)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,h=(e,t)=>{for(var a in t||(t={}))c.call(t,a)&&d(e,a,t[a]);if(l)for(var a of l(t))u.call(t,a)&&d(e,a,t[a]);return e};function m(e={}){let t,a;return t=h({},e),a={height:0,width:0,playerVars:n(h({},e.playerVars),o({autoplay:0,start:0,end:0}))},n(t,o(a))}var _={videoId:t.default.string,id:t.default.string,className:t.default.string,iframeClassName:t.default.string,style:t.default.object,title:t.default.string,loading:t.default.oneOf(["lazy","eager"]),opts:t.default.objectOf(t.default.any),onReady:t.default.func,onError:t.default.func,onPlay:t.default.func,onPause:t.default.func,onEnd:t.default.func,onStateChange:t.default.func,onPlaybackRateChange:t.default.func,onPlaybackQualityChange:t.default.func},p=class extends a.default.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,a;return null==(a=(t=this.props).onReady)?void 0:a.call(t,e)},this.onPlayerError=e=>{var t,a;return null==(a=(t=this.props).onError)?void 0:a.call(t,e)},this.onPlayerStateChange=e=>{var t,a,i,r,s,n,o,l;switch(null==(a=(t=this.props).onStateChange)||a.call(t,e),e.data){case p.PlayerState.ENDED:null==(r=(i=this.props).onEnd)||r.call(i,e);break;case p.PlayerState.PLAYING:null==(n=(s=this.props).onPlay)||n.call(s,e);break;case p.PlayerState.PAUSED:null==(l=(o=this.props).onPause)||l.call(o,e)}},this.onPlayerPlaybackRateChange=e=>{var t,a;return null==(a=(t=this.props).onPlaybackRateChange)?void 0:a.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,a;return null==(a=(t=this.props).onPlaybackQualityChange)?void 0:a.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if("u"<typeof document)return;if(this.destroyPlayerPromise)return void this.destroyPlayerPromise.then(this.createPlayer);let e=n(h({},this.props.opts),o({videoId:this.props.videoId}));this.internalPlayer=(0,r.default)(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,a,i;if(void 0===this.props.videoId||null===this.props.videoId){null==(e=this.internalPlayer)||e.stopVideo();return}let r=!1,s={videoId:this.props.videoId};if((null==(t=this.props.opts)?void 0:t.playerVars)&&(r=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(s.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(s.endSeconds=this.props.opts.playerVars.end)),r){null==(a=this.internalPlayer)||a.loadVideoById(s);return}null==(i=this.internalPlayer)||i.cueVideoById(s)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){let t,a;return t=this,a=function*(){var t,a,r,s,n,o;t=this.props,(e.id!==t.id||e.className!==t.className||(null==(a=e.opts)?void 0:a.width)!==(null==(r=t.opts)?void 0:r.width)||(null==(s=e.opts)?void 0:s.height)!==(null==(n=t.opts)?void 0:n.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title)&&this.updatePlayer(),o=this.props,e.videoId===o.videoId&&(0,i.default)(m(e.opts),m(o.opts))||(yield this.resetPlayer()),function(e,t){var a,i;if(e.videoId!==t.videoId)return!0;let r=(null==(a=e.opts)?void 0:a.playerVars)||{},s=(null==(i=t.opts)?void 0:i.playerVars)||{};return r.start!==s.start||r.end!==s.end}(e,this.props)&&this.updateVideo()},new Promise((e,i)=>{var r=e=>{try{n(a.next(e))}catch(e){i(e)}},s=e=>{try{n(a.throw(e))}catch(e){i(e)}},n=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);n((a=a.apply(t,null)).next())})}componentWillUnmount(){this.destroyPlayer()}render(){return a.default.createElement("div",{className:this.props.className,style:this.props.style},a.default.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}};p.propTypes=_,p.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},p.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5},e.s(["default",0,p])},34581,(e,t,a)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,a,i){void 0===i&&(i=a);var r=Object.getOwnPropertyDescriptor(t,a);
50(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,r)}:function(e,t,a,i){void 0===i&&(i=a),e[i]=t[a]}),r=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&i(t,e,a);return r(t,e),t},n=e.e&&e.e.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a},o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.YouTubeEmbed=void 0;let l=o(e.r(343794)),c=s(e.r(271645)),u=o(e.r(265562)),d=e.r(908342),h=e.r(282711);a.YouTubeEmbed=e=>{var t,a,i,r,s,o,m,_,p,f,g,b,E,{url:v,width:A,height:T,linkText:C="Watch on YouTube",placeholderImageUrl:y,placeholderSpinner:x,placeholderSpinnerDisabled:S=!1,placeholderProps:N,embedPlaceholder:w,placeholderDisabled:I,youTubeProps:k}=e,L=n(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","youTubeProps"]);let[O,P]=c.useState(!1),D=null==(t=v.match(/[?&]v=(.+?)(?:$|[&?])/))?void 0:t[1],R=null==(a=v.match(/https:\/\/(?:www\.)?youtube\.com\/shorts\/(.+?)(?:$|[&?])/))?void 0:a[1],M=null==(i=v.match(/https:\/\/youtu\.be\/(.+?)(?:$|[&?])/))?void 0:i[1],j=null==(r=v.match(/https:\/\/(?:www\.)youtube(-nocookie)?\.com\/embed\/(.+?)(?:$|[&?])/))?void 0:r[2],F=null!=(m=null!=(o=null!=(s=null!=D?D:R)?s:M)?o:j)?m:"00000000",B=+(null!=(p=null==(_=v.match(/(.+?)(?:$|[&?])start=(\d+)/))?void 0:_[2])?p:0),U=!!(null==A?void 0:A.toString().includes("%")),G=!!(null==T?void 0:T.toString().includes("%")),H={};B&&(H.playerVars={start:B}),void 0!==A&&(H.width=U?"100%":`${A}`),void 0!==T&&(H.height=G?"100%":`${T}`),H=Object.assign(Object.assign({},H),null==k?void 0:k.opts);let W={maxWidth:U?void 0:640,width:void 0!==A?U?"100%":A:"100%",height:G?"100%":void 0!==T?T:void 0!==(null==(f=L.style)?void 0:f.height)||void 0!==(null==(g=L.style)?void 0:g.maxHeight)?"100%":360,border:"1px solid #dee2e6",borderRadius:0},V=null!=w?w:c.createElement(d.PlaceholderEmbed,Object.assign({url:v,imageUrl:y,linkText:C,spinner:x,spinnerDisabled:S},N,{style:Object.assign(Object.assign({},W),null==N?void 0:N.style)}));return c.createElement("div",Object.assign({},L,{className:(0,l.default)("rsme-embed rsme-youtube-embed",L.className),style:Object.assign({overflow:"hidden",width:null!=A?A:void 0,height:null!=T?T:void 0,borderRadius:0},L.style)}),c.createElement(h.EmbedStyle,null),c.createElement("div",{className:(0,l.default)(!O&&"rsme-d-none")},c.createElement(u.default,Object.assign({},k,{className:null!=(b=null==k?void 0:k.className)?b:"youtube-iframe",videoId:null!=(E=null==k?void 0:k.videoId)?E:F,opts:H,onReady:e=>{P(!0),k&&k.onReady&&(null==k||k.onReady(e))}}))),!O&&!I&&V)}},691143,(e,t,a)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,a,i){void 0===i&&(i=a);var r=Object.getOwnPropertyDescriptor(t,a);
50(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,r)}:function(e,t,a,i){void 0===i&&(i=a),e[i]=t[a]}),r=e.e&&e.e.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||i(t,e,a)};Object.defineProperty(a,"__esModule",{value:!0}),r(e.r(858532),a),r(e.r(898739),a),r(e.r(11596),a),r(e.r(578296),a),r(e.r(136589),a),r(e.r(104188),a),r(e.r(500256),a),r(e.r(34581),a),r(e.r(908342),a),r(e.r(197604),a)},235547,e=>{"use strict";var t=e.i(843476),a=e.i(691143);e.s(["default",0,function({enlace:e}){return(0,t.jsx)(a.TikTokEmbed,{url:e,width:"100%"})}])},840995,e=>{"use strict";var t=e.i(843476),a=e.i(691143);e.s(["default",0,function({enlace:e}){return(0,t.jsx)(a.InstagramEmbed,{url:e})}])},849395,e=>{"use strict";var t,a,i,r,s,n,o,l,c,u,d,h,m,_,p,f=e.i(843476),g=e.i(271645),b=function(e,t){return(b=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])})(e,t)},E=function(){return(E=Object.assign||function(e){for(var t,a=1,i=arguments.length;a<i;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function v(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]])}return a}function A(e,t,a,i){return new(a||(a=Promise))(function(r,s){function n(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}l((i=i.apply(e,t||[])).next())})}function T(e,t){var a,i,r,s,n={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(l){var c=[o,l];if(a)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(a=1,i&&(r=2&c[0]?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(!(r=(r=n.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){n=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){n.label=c[1];break}if(6===c[0]&&n.label<r[1]){n.label=r[1],r=c;break}if(r&&n.label<r[2]){n.label=r[2],n.ops.push(c);break}r[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(e){c=[6,e],i=0}finally{a=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function C(e,t,a){if(a||2==arguments.length)for(var i,r=0,s=t.length;r<s;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}(y=p||(p={})).CONNECTED="connected",y.AUTHORIZATION_EXPIRED="authorization_expired",y.NOT_AUTHORIZED="not_authorized",y.UNKNOWN="unknown";var y,x,S,N=p,w=function(e){function t(t,a,i){var r=e.call(this,t)||this;return r.code=a,r.type=i,r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}(t,e),t}(Error);(I=x||(x={})).GET="get",I.POST="post",I.DELETE="delete",(k=S||(S={})).UI="ui",k.API="api",k.LOGIN="login",k.LOGOUT="logout",k.GET_LOGIN_STATUS="getLoginStatus",k.GET_AUTH_RESPONSE="getAuthResponse";var I,k,L,O={domain:"connect.facebook.net",version:"v15.0",cookie:!1,status:!1,xfbml:!1,language:"en_US",frictionlessRequests:!1,debug:!1,chatSupport:!1,autoLogAppEvents:!0,lazy:!1},P=function(){function e(e){if(!e.appId)throw Error("You need to set appI
50d");this.options=E(E({},O),e),this.options.lazy||this.init()}return e.prototype.getAppId=function(){return this.options.appId},e.prototype.getFB=function(){return window.FB},e.prototype.init=function(){return A(this,void 0,void 0,function(){var e=this;return T(this,function(t){return this.loadingPromise||(this.loadingPromise=new Promise(function(t){var a=e.options,i=a.domain,r=a.language,s=a.debug,n=a.chatSupport,o=v(a,["domain","language","debug","chatSupport"]);if(window.fbAsyncInit=function(){window.FB.init({appId:o.appId,version:o.version,cookie:o.cookie,status:o.status,xfbml:o.xfbml,frictionlessRequests:o.frictionlessRequests}),t(e)},window.document.getElementById("facebook-jssdk"))return t(e);var l=window.document.createElement("script");l.id="facebook-jssdk",l.async=!0,l.defer=!0,l.crossOrigin="anonymous",l.src="https://".concat(i,"/").concat(r,"/sdk").concat(n?"/xfbml.customerchat":"").concat(s?"/debug":"",".js"),window.document.body.appendChild(l)})),[2,this.loadingPromise]})})},e.prototype.process=function(e,t,a){return void 0===t&&(t=[]),void 0===a&&(a=[]),A(this,void 0,void 0,function(){var i;return T(this,function(r){switch(r.label){case 0:return[4,this.init()];case 1:return r.sent(),i=this.getFB(),[2,new Promise(function(r,s){i[e].apply(i,C(C(C([],t,!1),[function(t){if(t)if(t&&"error"in t){var a=t.error,i=a.code,n=a.type;s(new w(a.message,i,n))}else r(t);else{if(e===S.UI)return;s(Error("Response is undefined"))}}],!1),a,!1))})]}})})},e.prototype.ui=function(e){return A(this,void 0,void 0,function(){return T(this,function(t){return[2,this.process(S.UI,[e])]})})},e.prototype.api=function(e,t,a){return void 0===t&&(t=x.GET),void 0===a&&(a={}),A(this,void 0,void 0,function(){return T(this,function(i){return[2,this.process(S.API,[e,t,a])]})})},e.prototype.login=function(e){return A(this,void 0,void 0,function(){var t,a,i,r,s,n,o;return T(this,function(l){return t=e.scope,i=void 0===(a=e.authType)?[]:a,r=e.returnScopes,s=e.rerequest,n=e.reauthorize,o={scope:t},r&&(o.return_scopes=!0),s&&i.push("rerequest"),n&&i.push("reauthenticate"),i.length&&(o.auth_type=i.join(",")),[2,this.process(S.LOGIN,[],[o])]})})},e.prototype.logout=function(){return A(this,void 0,void 0,function(){return T(this,function(e){return[2,this.process(S.LOGOUT)]})})},e.prototype.getLoginStatus=function(){return A(this,void 0,void 0,function(){return T(this,function(e){return[2,this.process(S.GET_LOGIN_STATUS)]})})},e.prototype.getAuthResponse=function(){return A(this,void 0,void 0,function(){return T(this,function(e){return[2,this.process(S.GET_AUTH_RESPONSE)]})})},e.prototype.getTokenDetail=function(e){return A(this,void 0,void 0,function(){var t;return T(this,function(a){switch(a.label){case 0:return(null==e?void 0:e.status)===N.CONNECTED?[2,e.authResponse]:[4,this.getLoginStatus()];case 1:if((t=a.sent()).status===N.CONNECTED)return[2,t.authResponse];throw Error("Token is undefined")}})})},e.prototype.getProfile=function(e){return A(this,void 0,void 0,function(){return T(this,function(t){return[2,this.api("/me",x.GET,e)]})})},e.prototype.getTokenDetailWithProfile=function(e,t){return A(this,void 0,void 0,function(){var a;return T(this,function(i){switch(i.label){case 0:return[4,this.getTokenDetail(t)];case 1:return a=i.sent(),[4,this.getProfile(e)];case 2:return[2,{profile:i.sent(),tokenDetail:a}]}})})},e.prototype.getToken=function(){return A(this,void 0,void 0,function(){return T(this,function(e){switch(e.label){case 0:return[4,this.getTokenDetail()];case 1:return[2,e.sent().accessToken]}})})},e.prototype.getUserId=function(){return A(this,void 0,void 0,function(){return T(this,function(e){switch(e.label){case 0:return[4,this.getTokenDetail()];case 1:return[2,e.sent().userID]}})})},e.prototype.sendInvite=function(e,t){return A(this,void 0,void 0,function(){return T(this,function(a){return[2,this.ui(E({to:e,method:"apprequests"},t))]})})},e.prototype.postAction=function(e,t,a,i,r){return void 0===r&&(r=!1),A(this,void 0,void 0,function(){var s;return T(this,function(n){return s="/me/".concat(e,":").concat(t,"?").concat(a,"=").concat(encodeURIComponent(i)),!0===r&&(s+="&no_feed_story=true"),[2,this.api(s,x.POST)]})})},e.prototype.getPermissions=function(){return A(this,void 0,void 0,function(){return T(this,function(e){switch(e.label){case 0:return[4,this.api("/me/permissions")];case 1:return[2,e.sent().data]}})})},e.prototype.hasPermissions=function(e){return A(this,void 0,void 0,function(){var t;return T(this,function(a){switch(a.label){case 0:return[4,this.getPermissions()];case 1:return t=a.sent(),[2,e.filter(function(e){return!!t.find(function(t){var a=t.permission;return"granted"===t.status&&a===e})}).length===e.length]}})})},e.prototype.subscribe=function(e,t){return A(this,void 0,void 0,function(){var a=this;return T(this,function(i){switch(i.label){case 0:return[4,this.init()];case 1:return i.sent(),this.getFB().Event.subscribe(e,t),[2,function(){return a.unsubscribe(e,t)}]}})})},e.prototype.unsubscribe=function(e,t){return A(this,void 0,void 0,function(){return T(this,function(a){switch(a.label){case 0:return[4,this.init()];case 1:return a.sent(),this.getFB().Event.unsubscribe(e,t),[2]}})})},e.prototype.parse=function(e){return A(this,void 0,void 0,function(){return T(this,function(t){switch(t.label){case 0:return[4,this.init()];case 1:return t.sent(),void 0===e?this.getFB().XFBML.parse():this.getFB().XFBML.parse(e),[2]}})})},e.prototype.getRequests=function(){return A(this,void 0,void 0,function(){return T(this,function(e){return[2,this.api("/me/apprequests")]})})},e.prototype.removeRequest=function(e){return A(this,void 0,void 0,function(){return T(this,function(t){return[2,this.api(e,x.DELETE)]})})},e.prototype.setAutoGrow=function(){return A(this,void 0,void 0,function(){return T(this,function(e){switch(e.label){case 0:return[4,this.init()];case 1:return e.sent(),this.getFB().Canvas.setAutoGrow(),[2]}})})},e.prototype.paySimple=function(e,t){return void 0===t&&(t=1),A(this,void 0,void 0,function(){return T(this,function(a){return[2,this.ui({method:"pay",action:"purchaseitem",product:e,quantity:t})]})})},e.prototype.pay=function(e,t){return A(this,void 0,void 0,function(){return T(this,function(a){return[2,this.ui(E({method:"pay",action:"purchaseitem",product:e},t))]})})},e}(),D=(0,g.createContext)(void 0);function R(e){var t=e.children,a=v(e,["children"]),i=(0,g.useState)(!0),r=i[0],s=i[1],n=(0,g.useState)(!1),o=n[0],l=n[1],c=(0,g.useState)(),u=c[0],d=c[1];function h(){return A(this,void 0,void 0,function(){return T(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),L?[2,L.init()]:(l(!1),s(!0),[4,(L=new P(a)).init()]);case 1:return e.sent(),l(!0),[3,4];case 2:return d(e.sent()),[3,4];case 3:return s(!1),[7];case 4:return[2,L]}})})}(0,g.useEffect)(function(){a.lazy||h()},[]);var m={isLoading:r,error:u,init:h,api:o?L:void 0,parse:function(e){return A(this,void 0,void 0,function(){var t;return T(this,function(a){switch(a.label){case 0:return[4,h()];case 1:return(t=a.sent())?[4,t.parse(e)]:[3,3];case 2:a.sent(),a.label=3;case 3:return[2]}})})}};return g.default.createElement(D.Provider,{value:m},t)}var M=(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.inline,i=e.children,r=v(e,["inline","children"]);return g.default.createElement(a?"span":"div",E({},r,{ref:t}),i)})),j=(0,g.memo)(function(e){var t=e.children,a=e.inline,i=v(e,["children","inline"]),r=function(e){void 0===e&&(e={});var t=e.lazy,a=void 0!==t&&t,i=(0,g.useContext)(D);if(!i)throw Error("useFacebook must be used within a FacebookProvider");return(0,g.useEffect)(function(){a||i.init()},[a]),i}().parse,s=(0,g.useState)(null),n=s[0],o=s[1],l=(0,g.useCallback)(function(e){o(e)},[]);return(0,g.useEffect)(function(){n&&r(n)},[n]),g.default.createElement(M,E({inline:a},i,{ref:l}),t)}),F=!("u"<typeof window||!window.document||!window.document.createElement);function B(){return F?window.location.href:"https://www.facebook.com"}(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.href,i=void 0===a?B():a,r=e.layout,s=e.colorScheme,n=e.action,o=e.showFaces,l=e.share,c=e.children,u=e.width,d=e.size,h=e.kidDirectedSite,m=e.referral,_=e.lazy,p=v(e,["href","layout","colorScheme","action","showFaces","share","children","width","size","kid
50DirectedSite","referral","lazy"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-like","data-ref":m,"data-href":i,"data-layout":r,"data-colorscheme":s,"data-action":n,"data-show-faces":o,"data-share":l,"data-width":u,"data-size":d,"data-lazy":_,"data-kid-directed-site":h},p,{ref:t}),c))}));var U=(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.style,i=e.href,r=void 0===i?B():i,s=e.tabs,n=e.hideCover,o=e.width,l=e.height,c=e.showFacepile,u=e.hideCTA,d=e.smallHeader,h=e.adaptContainerWidth,m=e.children,_=e.lazy,p=v(e,["style","href","tabs","hideCover","width","height","showFacepile","hideCTA","smallHeader","adaptContainerWidth","children","lazy"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-page",style:a,"data-tabs":s,"data-hide-cover":n,"data-show-facepile":c,"data-hide-cta":u,"data-href":r,"data-small-header":d,"data-adapt-container-width":h,"data-height":l,"data-width":o,"data-lazy":_},p,{ref:t}),m))})),G=(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.href,i=e.width,r=e.showText,s=e.lazy,n=e.children,o=v(e,["href","width","showText","lazy","children"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-post","data-href":a,"data-width":i,"data-lazy":s,"data-show-text":r},o,{ref:t}),n))}));(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.href,i=e.width,r=e.showText,s=e.allowFullScreen,n=e.autoPlay,o=e.lazy,l=e.showCaptions,c=e.children,u=v(e,["href","width","showText","allowFullScreen","autoPlay","lazy","showCaptions","children"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-video","data-href":a,"data-width":i,"data-show-text":r,"data-show-captions":l,"data-autoplay":n,"data-lazy":o,"data-allowfullscreen":s},u,{ref:t}),c))})),(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.colorScheme,i=e.href,r=void 0===i?B():i,s=e.numPosts,n=e.orderBy,o=e.width,l=e.children,c=e.mobile,u=e.lazy,d=v(e,["colorScheme","href","numPosts","orderBy","width","children","mobile","lazy"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-comments","data-colorscheme":a,"data-numposts":s,"data-href":r,"data-order-by":n,"data-width":o,"data-skin":a,"data-mobile":c,"data-lazy":u},d,{ref:t}),l))})),(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.href,i=void 0===a?B():a,r=e.children,s=v(e,["href","children"]);return g.default.createElement(j,{inline:!0},g.default.createElement("span",E({className:"fb-comments-count","data-href":i},s,{ref:t}),r))})),(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.style,i=e.href,r=void 0===i?B():i,s=e.width,n=e.lazy,o=e.showSocialContext,l=e.showMetaData,c=e.children,u=e.skin,d=v(e,["style","href","width","lazy","showSocialContext","showMetaData","children","skin"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-group",style:a,"data-href":r,"data-width":s,"data-show-social-context":o,"data-show-metadata":l,"data-skin":u,"data-lazy":n},d,{ref:t}),c))})),(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.style,i=e.uri,r=void 0===i?B():i,s=e.lazy,n=e.children,o=v(e,["style","uri","lazy","children"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-save",style:a,"data-uri":r,"data-lazy":s},o,{ref:t}),n))})),(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.style,i=e.href,r=void 0===i?B():i,s=e.lazy,n=e.layout,o=e.size,l=e.children,c=v(e,["style","href","lazy","layout","size","children"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-share-button",style:a,"data-href":r,"data-lazy":s,"data-size":o,"data-layout":n},c,{ref:t}),l))})),(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.children,i=e.pageId,r=e.themeColor,s=e.loggedInGreeting,n=e.loggedOutGreeting,o=e.dataRef,l=e.greetingDialogDisplay,c=e.greetingDialogDelay,u=e.minimized,d=v(e,["children","pageId","themeColor","loggedInGreeting","loggedOutGreeting","dataRef","greetingDialogDisplay","greetingDialogDelay","minimized"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-customerchat",page_id:i,theme_color:r,logged_in_greeting:s,logged_out_greeting:n,greeting_dialog_display:l,greeting_dialog_delay:c,"data-ref":o,minimized:u},d,{ref:t}),a))}
50)),(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.color,i=e.messengerAppId,r=e.pageId,s=e.children,n=e.size,o=e.dataRef,l=v(e,["color","messengerAppId","pageId","children","size","dataRef"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-messengermessageus",messenger_app_id:i,page_id:r,"data-color":a,"data-size":n,"data-ref":o},l,{ref:t}),s))})),(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.origin,i=e.prechecked,r=e.allowLogin,s=e.userRef,n=e.messengerAppId,o=e.pageId,l=e.children,c=e.size,u=e.centerAlign,d=e.skin,h=v(e,["origin","prechecked","allowLogin","userRef","messengerAppId","pageId","children","size","centerAlign","skin"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-messenger-checkbox",messenger_app_id:n,page_id:o,size:c,origin:a,user_ref:s,prechecked:i,allow_login:r,skin:d,center_align:u},h,{ref:t}),l))})),(0,g.memo)((0,g.forwardRef)(function(e,t){var a=e.color,i=e.messengerAppId,r=e.pageId,s=e.children,n=e.dataRef,o=e.size,l=e.enforceLogin,c=e.ctaText,u=v(e,["color","messengerAppId","pageId","children","dataRef","size","enforceLogin","ctaText"]);return g.default.createElement(j,null,g.default.createElement("div",E({className:"fb-send-to-messenger",messenger_app_id:i,page_id:r,"data-color":a,"data-size":o,"data-ref":n,enforce_login:l,cta_text:c},u,{ref:t}),s))})),(a=t||(t={})).SMALL="small",a.LARGE="large",(i=c||(c={})).STANDARD="standard",i.BUTTON_COUNT="button_count",i.BUTTON="button",i.BOX_COUNT="box_count",(r=u||(u={})).LIGHT="light",r.DARK="dark",(s=d||(d={})).LIKE="like",s.RECOMMEND="recommend",(n=h||(h={})).SOCIAL="social",n.REVERSE_TIME="reverse_time",n.TIME="time",(o=m||(m={})).SMALL="small",o.MEDIUM="medium",o.STANDARD="standard",o.LARGE="large",o.XLARGE="xlarge",(l=_||(_={})).BLUE="blue",l.WHITE="white",e.s(["default",0,function({enlace:e,appId:t}){return(0,f.jsx)(R,{appId:t,children:/(?:https?:\/\/)?(?:www\.)?(?:facebook|fb|m\.facebook)\.(?:com|me)\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-\.]+)(?:\/)?/i.test(e)?(0,f.jsx)(U,{href:e,tabs:"timeline",width:500}):(0,f.jsx)(G,{href:e,width:500})})}],849395)},303168,e=>{"use strict";var t=e.i(843476);e.s(["default",0,function({titulo:e,enlace:a,tweetId:i,userId:r}){return(0,t.jsx)(t.Fragment,{})}])},591273,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(978877),r=e.i(283231),s=e.i(618566);e.s(["default",0,function({autor:e,children:n}){let{pageData:o}=(0,i.usePageData)(),l=(0,r.useModuleGAMetadata)(),c=(0,s.usePathname)();return(0,t.jsx)("div",{onClick:()=>(0,a.contentClickEvent)({tipoPagina:(0,a.convertPageType)(o.tipoPagina),urlPagina:c,nombreContenido:`${"femenino"===e.genero?"Ir a ficha de autora":"Ir a ficha de autor"}`,tipoContenido:"Otros",nombreSeccionPadre:l?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"textlink"}),children:n})}])},576033,e=>{e.v({autor:"AutorBiografia-module-scss-module__1FVG2a__autor",autor__acciones:"AutorBiografia-module-scss-module__1FVG2a__autor__acciones",autor__bio:"AutorBiografia-module-scss-module__1FVG2a__autor__bio",autor__bio__descripcion:"AutorBiografia-module-scss-module__1FVG2a__autor__bio__descripcion",autor__bio__nombre:"AutorBiografia-module-scss-module__1FVG2a__autor__bio__nombre",autor__imagenColumna:"AutorBiografia-module-scss-module__1FVG2a__autor__imagenColumna",autor__retrato:"AutorBiografia-module-scss-module__1FVG2a__autor__retrato","blink-animation":"AutorBiografia-module-scss-module__1FVG2a__blink-animation"})},957357,e=>{"use strict";var t=e.i(843476),a=e.i(576033);e.s(["default",0,function({biografia:e}){return(0,t.jsx)("div",{className:a.default.autor__bio__descripcion,dangerouslySetInnerHTML:{__html:e}})}])},674807,e=>{e.v({"blink-animation":"Descargas-module-scss-module__umkD4a__blink-animation",descargas__icon:"Descargas-module-scss-module__umkD4a__descargas__icon",descargas__inner:"Descargas-module-scss-module__umkD4a__descargas__inner",descargas__link:"Descargas-module-scss-module__umkD4a__descargas__link",descargas__titulo:"Descargas-module-scss-module__umkD4a__descargas__titulo"})},86743,e=>{"use strict";var t=e.i(843476),a=e.i(522016),i=e.i(10655),r=e.i(978877),s=e.i(283231),n=e.i(137963),o=e.i(674807),l=e.i(618566);e.s(["default",0,function({item:e,children:c}){let{pageData:u}=(0,r.usePageData)(),d=(0,s.useModuleGAMetadata)(),h=(0,l.usePathname)();return(0,t.jsx)(a.default,{prefetch:!1,href:e.enlaceAbsoluto?e.enlace:(0,n.getUrlWithDomain)(e.enlace),onClick:()=>{(0,i.contentClickEvent)({tipoPagina:(0,i.convertPageType)(u.tipoPagina),urlPagina:h,nombreContenido:"Descarga",tipoContenido:"Otros",nombreSeccionPadre:d?.metadatosSeccion?.nombre,tipoClick:"download",tipoCta:"textlink"})},target:"_blank",rel:"noreferrer",className:o.default.descargas__link,children:c})}])},637544,e=>{"use strict";var t=e.i(843476),a=e.i(330580),i=e.i(539912),r=e.i(936540),s=e.i(10655),n=e.i(618566),o=e.i(978877),l=e.i(283231),c=e.i(88205);e.i(247167);var u=e.i(132440),d=e.i(271645),h=e.i(822596),m=e.i(23011),_=e.i(296175);e.i(777446),e.i(64887);var p=e.i(95187);let f=(0,p.createServerReference)("4027727d550a8e181086e625053ec9f16fe3f0491f",p.callServer,void 0,p.findSourceMapURL,"s
50aveBookComment");var g=e.i(289640);function b({idLibro:e,closeModalParent:a,dictionary:i}){let r=(0,n.usePathname)(),{pageData:p}=(0,o.usePageData)(),E=(0,l.useModuleGAMetadata)(),{t:v}=(0,h.getDictionary)(i),[A,T]=(0,d.useState)(!1),C=async t=>{await f({idLibro:e,valoracion:parseInt(t.get("rating")),titulo:t.get("title"),comentario:t.get("opinion"),checkPermitePublicarEnConcurso:null,checkPermitePublicarEnRevista:null}),(0,s.contentClickEvent)({tipoPagina:(0,s.convertPageType)(p.tipoPagina),urlPagina:r,nombreContenido:"publish comment",tipoContenido:"Otros",nombreSeccionPadre:E?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"button"}),T(!0)};return A?(0,t.jsx)(g.default,{titulo:v("tituloAgradecimientoComentario"),descripcion:v("descripcionAgradecimientoComentario"),tituloBoton:v("tituloBotonVolverFichaLibro"),closeModal:a}):(0,t.jsxs)("div",{className:"ContenidoComentarLibro",children:[(0,t.jsxs)("form",{action:C,id:"comentarLibro",children:[(0,t.jsxs)(_.default,{error:!1,children:[(0,t.jsx)("p",{className:c.default.modal__fieldLabel,children:v("formRatingDescripcion")}),(0,t.jsx)(m.default,{nameInputHidden:"rating"})]}),(0,t.jsxs)(_.default,{error:!1,children:[(0,t.jsx)("label",{htmlFor:"title",children:v("formTituloValoracion")}),(0,t.jsx)("input",{autoComplete:"new-title",type:"text","aria-label":v("formTituloValoracion"),id:"title",name:"title",required:!0})]}),(0,t.jsxs)(_.default,{error:!1,children:[(0,t.jsx)("label",{htmlFor:"opinion",children:v("formOpinion")}),(0,t.jsx)("textarea",{"aria-label":v("formOpinion"),id:"opinion",name:"opinion",required:!0,minLength:10})]}),!1,(0,t.jsx)(_.default,{children:(0,t.jsx)(u.default,{defaultTitle:v("enviarComentario"),loadingTitle:v("enviandoComentario"),display:"block"})})]}),(0,t.jsx)("p",{className:c.default.modal__helptext,children:v("modalComentarLibroModeracion")})]})}var E=e.i(208549),v=e.i(360126);function A({titulo:e}){return(0,t.jsxs)("div",{className:c.default.modal__headerWithIcon,children:[(0,t.jsx)(v.default,{className:c.default.modal__headerWithIcon__icon}),(0,t.jsx)("span",{className:c.default.modal__headerWithIcon__text,children:e})]})}var T=e.i(970496),C=e.i(484046),y=e.i(709484),x=e.i(653943),S=e.i(812318);function N({libro:e,dictionary:a,children:i,closeParentModal:r,translationsObj:s,defaultDict:n}){let{t:o}=(0,h.getDictionary)(a);return(0,t.jsxs)("div",{className:(0,T.classNames)("ModalLibroComentar",c.default.modal2Columnas),children:[(0,t.jsx)(E.default,{defaultDict:n,closeAction:e=>{e.stopPropagation(),r()},className:c.default.modal2Columnas__cabeceraMobile,children:(0,t.jsx)(A,{titulo:o("modalComentarioTitulo")})}),(0,t.jsxs)("div",{className:c.default.modal2Columnas__inner,children:[(0,t.jsx)("div",{className:`${c.default.modal2Columnas__miniatura} ${c.default.modal2Columnas__miniatura__fullPadding}`,children:(0,t.jsxs)("div",{className:S.default.miniaturaLibro,children:[(0,t.jsx)("div",{className:S.default.miniaturaLibro__portada,children:(0,t.jsx)(C.default,{libro:e,showTags:!1,variantTags:"detail",translationsObj:s})}),(0,t.jsxs)("div",{className:S.default.miniaturaLibro__texto,children:[(0,t.jsx)("p",{className:S.default.miniaturaLibro__titulo,children:e.titulo}),e.autores&&(0,t.jsx)(y.default,{autores:e.autores,link:!1,className:S.default.miniaturaLibro__autores}),e.tematicaPrincipal&&(0,t.jsx)(x.default,{tematica:e.tematicaPrincipal,link:!1})]})]})}),(0,t.jsxs)("div",{className:c.default.modal2Columnas__content,children:[(0,t.jsx)(E.default,{defaultDict:n,closeAction:e=>{e.stopPropagation(),r()},className:c.default.modal2Columnas__cabeceraDesktop,children:(0,t.jsx)(A,{titulo:o("modalComentarioTitulo")})}),i||(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(b,{idLibro:e?.id,closeModalParent:r,dictionary:a})})]})]})]})}e.s(["default",0,function(e){let{title:c,libro:u,dictionary:d,type:h,translationsObj:m,children:_,defaultDict:p}=e,f=(0,n.usePathname)(),{refModal:g,openModal:b,closeModal:E,isOpen:v}=(0,a.default)(),A=(0,l.useModuleGAMetadata)(),{pageData:T}=(0,o.usePageData)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{onClick:()=>{b(),(0,s.contentClickEvent)({tipoPagina:(0,s.convertPageType)(T.tipoPagina),urlPagina:f,nombreContenido:"add comment",tipoContenido:"Otros",nombreSeccionPadre:A?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"button"})},type:h,size:"normal",children:c}),(0,t.jsx)(i.Modal,{isOpen:v,ref:g,handleClose:E,closeOutsideClose:!0,id:`comentarLibro_${u?.id}`,variant:"no-padding",children:(0,t.jsx)(N,{defaultDict:p,dictionary:d,libro:u,closeParentMod
50al:E,translationsObj:m,children:_})})]})}],637544)},809934,e=>{"use strict";var t=e.i(271645);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e}).apply(this,arguments)}function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function r(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?i(Object(a),!0).forEach(function(t){var i,r,s;i=e,r=t,s=a[t],r in i?Object.defineProperty(i,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[r]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}class s extends t.default.Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(()=>{this.reCalculateColumnCount()})):this.reCalculateColumnCount()}reCalculateColumnCount(){let e=window&&window.innerWidth||1/0,t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let a=1/0,i=t.default||2;for(let r in t){let s=parseInt(r);s>0&&e<=s&&s<a&&(a=s,i=t[r])}i=Math.max(1,parseInt(i)||1),this.state.columnCount!==i&&this.setState({columnCount:i})}itemsInColumns(){let e=this.state.columnCount,a=Array(e),i=t.default.Children.toArray(this.props.children);for(let t=0;t<i.length;t++){let r=t%e;a[r]||(a[r]=[]),a[r].push(i[t])}return a}renderColumns(){let{column:e,columnAttrs:i={},columnClassName:s}=this.props,n=this.itemsInColumns(),o=`${100/n.length}%`,l=s;l&&"string"!=typeof l&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===l&&(l="my-masonry-grid_column"));let c=r(r(r({},e),i),{},{style:r(r({},i.style),{},{width:o}),className:l});return n.map((e,i)=>t.default.createElement("div",a({},c,{key:i}),e))}logDeprecated(e){console.error("[Masonry]",e)}render(){let e=this.props,{children:i,breakpointCols:r,columnClassName:s,columnAttrs:n,column:o,className:l}=e,c=function(e,t){if(null==e)return{};var a,i,r=function(e,t){if(null==e)return{};var a,i,r={},s=Object.keys(e);for(i=0;i<s.length;i++)a=s[i],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]),u=l;return"string"!=typeof l&&(this.logDeprecated('The property "className" requires a string'),void 0===l&&(u="my-masonry-grid")),t.default.createElement("div",a({},c,{className:u}),this.renderColumns())}}s.defaultProps={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0},e.s(["default",0,s])},185270,e=>{e.v({"blink-animation":"MasonryGrid-module-scss-module__jqKFbq__blink-animation",masonryFooter:"MasonryGrid-module-scss-module__jqKFbq__masonryFooter",masonryGrid:"MasonryGrid-module-scss-module__jqKFbq__masonryGrid",masonryGrid__column:"MasonryGrid-module-scss-module__jqKFbq__masonryGrid__column"})},219359,e=>{"use strict";var t=e.i(843476),a=e.i(809934),i=e.i(271645),r=e.i(185270),s=e.i(691630);e.s(["default",0,function({children:e,breakpointCols:n={defaults:2,768:1},className:o=r.default.masonryGrid,columnClassName:l=r.default.masonryGrid__column,itemsLimit:c=2,showMoreText:u="Mostrar más",showLessText:d="Mostrar menos"}){let[h,m]=(0,i.useState)(!1),[_,p]=(0,i.useState)(c),f=e?.length||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{breakpointCols:n,className:o,columnClassName:l,children:i.Children.map(e,(e,a)=>{if(a<_)return(0,t.jsx)("div",{className:r.default.masonryGrid__item,children:e},"item_"+a)})}),c<e.length&&(0,t.jsx)("div",{className:r.default.masonryFooter,children:(0,t.jsx)(s.default,{variant:h?"up":"down",onClickEvent:()=>{let e=!h;m(e),p(e?f:c)},text:h?d:u})})]})}])},743798,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(978877),r=e.i(283231),s=e.i(618566);e.s(["default",0,function({children:e}){let{pageData:n}=(0,i.usePageData)(),o=(0,r.useModuleGAMetadata)(),l=(0,s.usePathname)();return(0,t.jsx)("div",{onClick:()=>(0,a.contentClickEvent)({tipoPagina:(0,a.convertPageType)(n.tipoPagina),urlPagina:l,nombreContenido:"premio leer mas",tipoContenido:"Otros",nombreSeccionPadre:o?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"card"}),children:e})}])},759671,e=>
50{e.v({audioPlayerWrapper:"Audioplayer-module-scss-module__5uegzW__audioPlayerWrapper",audioplayer:"Audioplayer-module-scss-module__5uegzW__audioplayer",audioplayerActions:"Audioplayer-module-scss-module__5uegzW__audioplayerActions",audioplayerCover:"Audioplayer-module-scss-module__5uegzW__audioplayerCover",audioplayerSlider:"Audioplayer-module-scss-module__5uegzW__audioplayerSlider","blink-animation":"Audioplayer-module-scss-module__5uegzW__blink-animation",controls:"Audioplayer-module-scss-module__5uegzW__controls",forward:"Audioplayer-module-scss-module__5uegzW__forward",mute:"Audioplayer-module-scss-module__5uegzW__mute",rewind:"Audioplayer-module-scss-module__5uegzW__rewind",soundControls:"Audioplayer-module-scss-module__5uegzW__soundControls",time:"Audioplayer-module-scss-module__5uegzW__time",toggleReproductionBtn:"Audioplayer-module-scss-module__5uegzW__toggleReproductionBtn",waves:"Audioplayer-module-scss-module__5uegzW__waves"})},590506,e=>{"use strict";e.i(247167);var t,a,i,r,s,n,o,l,c,u,d,h,m,_,p=e.i(843476),f=e.i(271645),g=e.i(759671),b=e.i(81143),E=e.i(824526);function v(){return(v=Object.assign.bind()).apply(null,arguments)}let A=function(e){return f.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=f.createElement("path",{fill:"#464646",fillRule:"evenodd",d:"M18.277 4.31a1 1 0 0 1 1.414-.033c4.396 4.198 4.43 11.269-.005 15.45a1 1 0 1 1-1.372-1.455c3.59-3.384 3.575-9.13-.005-12.549a1 1 0 0 1-.032-1.414M15.4 7.7a1 1 0 0 1 1.4.2c.836 1.115 1.2 2.655 1.2 4.1s-.364 2.985-1.2 4.1a1 1 0 0 1-1.6-1.2c.497-.663.8-1.734.8-2.9s-.303-2.237-.8-2.9a1 1 0 0 1 .2-1.4",clipRule:"evenodd"})),a||(a=f.createElement("path",{fill:"#464646",d:"M2 14.959V9.04C2 8.466 2.448 8 3 8h3.586a.98.98 0 0 0 .707-.305l3-3.388c.63-.656 1.707-.191 1.707.736v13.914c0 .934-1.09 1.395-1.716.726l-2.99-3.369A.98.98 0 0 0 6.578 16H3c-.552 0-1-.466-1-1.041"})))};function T(){return(T=Object.assign.bind()).apply(null,arguments)}let C=function(e){return f.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=f.createElement("path",{fill:"#464646",d:"M2 14.959V9.04C2 8.466 2.448 8 3 8h3.586a.98.98 0 0 0 .707-.305l3-3.388c.63-.656 1.707-.191 1.707.736v13.914c0 .934-1.09 1.395-1.716.726l-2.99-3.369A.98.98 0 0 0 6.578 16H3c-.552 0-1-.466-1-1.041"})),r||(r=f.createElement("path",{fill:"#464646",fillRule:"evenodd",d:"m19.414 12 2.293 2.293-1.414 1.414L18 13.414l-2.293 2.293-1.414-1.414L16.586 12l-2.293-2.293 1.414-1.414L18 10.586l2.293-2.293 1.414 1.414z",clipRule:"evenodd"})))};function y(){return(y=Object.assign.bind()).apply(null,arguments)}let x=function(e){return f.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 33 33"},e),s||(s=f.createElement("path",{fill:"#fff",d:"M33 16.5C33 25.613 25.613 33 16.5 33S0 25.613 0 16.5 7.387 0 16.5 0 33 7.387 33 16.5"})),n||(n=f.createElement("path",{fill:"currentColor",d:"m6 16.5 9.107-7.361V23.86z"})),o||(o=f.createElement("path",{fill:"currentColor",d:"m14.904 16.5 9.107-7.361V23.86z"})))};function S(){return(S=Object.assign.bind()).apply(null,arguments)}let N=function(e){return f.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 40 40"},e),l||(l=f.createElement("path",{fill:"currentColor",d:"M40 20c0 11.046-8.954 20-20 20S0 31.046 0 20 8.954 0 20 0s20 8.954 20 20"})),c||(c=f.createElement("path",{d:"M12.664 9.741h4.453v20.457h-4.453zM22.405 9.741h4.453v20.457h-4.453z"})))};function w(){return(w=Object.assign.bind()).apply(null,arguments)}let I=function(e){return f.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 40 40"},e),u||(u=f.createElement("path",{fill:"currentColor",d:"M40 20c0 11.046-8.954 20-20 20S0 31.046 0 20 8.954 0 20 0s20 8.954 20 20"})),d||(d=f.createElement("path",{d:"M32.146 20.396 11.69 32.206V8.586z"})))};function k(){return(k=Object.assign.bind()).apply(null,arguments)}let L=function(e){return f.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 33 33"},e),h||(h=f.createElement("path",{fill:"#fff",d:"M0 16.5C0 7.387 7.387 0 16.5 0S33 7.387 33 16.5 25.613 33 16.5 33 0 25.613 0 16.5"})),m||(m=f.createElement("path",{fill:"currentColor",d:"m27 16.5-9.107 7.361V9.14z"})),_||(_=f.createElement("path",{fill:"currentColor",d:"m18.096 16.5-9.107 7.361V9.14z"})))};function O(e,t,a,i){return new(a||(a=Promise))(function(r,s){function n(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}l((i=i.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class P{constructor(){this.listeners={}}on(e,t,a){if(this.listeners[e]||(this.listeners[e]=new Set),null==a?void 0:a.once){let a=(...i)=>{this.un(e,a),t(...i)};return this.listeners[e].add(a),()=>this.un(e,a)}return this.listeners[e].add(t),()=>this.un(e,t)}un(e,t){var a;null==(a=this.listeners[e])||a.delete(t)}once(e,t){return this.on(e,t,{once:!0})}unAll(){this.listeners={}}
50emit(e,...t){this.listeners[e]&&this.listeners[e].forEach(e=>e(...t))}}let D={decode:function(e,t){return O(this,void 0,void 0,function*(){let a=new AudioContext({sampleRate:t});try{return yield a.decodeAudioData(e)}finally{a.close()}})},createBuffer:function(e,t){if(!e||0===e.length)throw Error("channelData must be a non-empty array");if(t<=0)throw Error("duration must be greater than 0");if("number"==typeof e[0]&&(e=[e]),!e[0]||0===e[0].length)throw Error("channelData must contain non-empty channel arrays");!function(e){let t=e[0];if(t.some(e=>e>1||e<-1)){let a=t.length,i=0;for(let e=0;e<a;e++){let a=Math.abs(t[e]);a>i&&(i=a)}for(let t of e)for(let e=0;e<a;e++)t[e]/=i}}(e);let a=e.map(e=>e instanceof Float32Array?e:Float32Array.from(e));return{duration:t,length:a[0].length,sampleRate:a[0].length/t,numberOfChannels:a.length,getChannelData:e=>{let t=a[e];if(!t)throw Error(`Channel ${e} not found`);return t},copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function R(e,t,a){let i=function e(t,a){let i=a.xmlns?document.createElementNS(a.xmlns,t):document.createElement(t);for(let[t,r]of Object.entries(a))if("children"===t&&r)for(let[t,a]of Object.entries(r))a instanceof Node?i.appendChild(a):"string"==typeof a?i.appendChild(document.createTextNode(a)):i.appendChild(e(t,a));else"style"===t?Object.assign(i.style,r):"textContent"===t?i.textContent=r:i.setAttribute(t,r.toString());return i}(e,t||{});return null==a||a.appendChild(i),i}var M=Object.freeze({__proto__:null,createElement:R,default:R});let j={fetchBlob:function(e,t,a){return O(this,void 0,void 0,function*(){let i=yield fetch(e,a);if(i.status>=400)throw Error(`Failed to fetch ${e}: ${i.status} (${i.statusText})`);return function(e,t){O(this,void 0,void 0,function*(){if(!e.body||!e.headers)return;let a=e.body.getReader(),i=Number(e.headers.get("Content-Length"))||0,r=0,s=e=>{t(Math.round((r+=(null==e?void 0:e.length)||0)/i*100))};try{for(;;){let e=yield a.read();if(e.done)break;s(e.value)}}catch(e){console.warn("Progress tracking error:",e)}})}(i.clone(),t),i.blob()})}};function F(e){let t=e,a=new Set;return{get value(){return t},set(e){Object.is(t,e)||(t=e,a.forEach(e=>e(t)))},update(e){this.set(e(t))},subscribe:e=>(a.add(e),()=>a.delete(e))}}function B(e,t){let a=F(e());return t.forEach(t=>t.subscribe(()=>{let t=e();Object.is(a.value,t)||a.set(t)})),{get value(){return a.value},subscribe:e=>a.subscribe(e)}}function U(e,t){let a,i=()=>{a&&(a(),a=void 0),a=e()},r=t.map(e=>e.subscribe(i));return i(),()=>{a&&(a(),a=void 0),r.forEach(e=>e())}}class G extends P{get isPlayingSignal(){return this._isPlaying}get currentTimeSignal(){return this._currentTime}get durationSignal(){return this._duration}get volumeSignal(){return this._volume}get mutedSignal(){return this._muted}get playbackRateSignal(){return this._playbackRate}get seekingSignal(){return this._seeking}constructor(e){super(),this.isExternalMedia=!1,this.reactiveMediaEventCleanups=[],e.media?(this.media=e.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),this._isPlaying=F(!1),this._currentTime=F(0),this._duration=F(0),this._volume=F(this.media.volume),this._muted=F(this.media.muted),this._playbackRate=F(this.media.playbackRate||1),this._seeking=F(!1),this.setupReactiveMediaEvents(),e.mediaControls&&(this.media.controls=!0),e.autoplay&&(this.media.autoplay=!0),null!=e.playbackRate&&this.onMediaEvent("canplay",()=>{null!=e.playbackRate&&(this.media.playbackRate=e.playbackRate)},{once:!0})}setupReactiveMediaEvents(){this.reactiveMediaEventCleanups.push(this.onMediaEvent("play",()=>{this._isPlaying.set(!0)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("pause",()=>{this._isPlaying.set(!1)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("ended",()=>{this._isPlaying.set(!1)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("timeupdate",()=>{this._currentTime.set(this.media.currentTime)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("durationchange",()=>{this._duration.set(this.media.duration||0)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("loadedmetadata",()=>{this._duration.set(this.media.duration||0)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("seeking",()=>{this._seeking.set(!0)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("seeked",()=>{this._seeking.set(!1)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("volumechange",()=>{this._volume.set(this.media.volume),this._muted.set(this.media.muted)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("ratechange",()=>{this._playbackRate.set(this.media.playbackRate)}))}onMediaEvent(e,t,a){return this.media.addEventListener(e,t,a),()=>this.media.removeEventListener(e,t,a)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){let e=this.getSrc();e.startsWith("blob:")&&URL.revokeObjectURL(e)}canPlayType(e){return""!==this.media.canPlayType(e)}setSrc(e,t){let a=this.getSrc();if(e&&a===e)return;this.revokeSrc();let i=t instanceof Blob&&(this.canPlayType(t.type)||!e)?URL.createObjectURL(t):e;if(a&&this.media.removeAttribute("src"),i||e)try{this.media.src=i}catch(t){this.media.src=e}}
50destroy(){this.reactiveMediaEventCleanups.forEach(e=>e()),this.reactiveMediaEventCleanups=[],this.isExternalMedia||(this.media.pause(),this.revokeSrc(),this.media.removeAttribute("src"),this.media.load(),this.media.remove())}setMediaElement(e){this.reactiveMediaEventCleanups.forEach(e=>e()),this.reactiveMediaEventCleanups=[],this.media=e,this.setupReactiveMediaEvents()}play(){return O(this,void 0,void 0,function*(){try{return yield this.media.play()}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;throw e}})}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(e){this.media.currentTime=Math.max(0,Math.min(e,this.getDuration()))}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(e){this.media.volume=e}getMuted(){return this.media.muted}setMuted(e){this.media.muted=e}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(e,t){null!=t&&(this.media.preservesPitch=t),this.media.playbackRate=e}getMediaElement(){return this.media}setSinkId(e){return this.media.setSinkId(e)}}function H(e,t,a){let i=t-e.left,r=a-e.top;return[i/e.width,r/e.height]}function W(e){return!!(e.barWidth||e.barGap||e.barAlign)}function V(e,t){if(!W(t))return e;let a=t.barWidth||.5,i=a+(t.barGap||a/2);return 0===i?e:Math.floor(e/i)*i}function q({scrollLeft:e,totalWidth:t,numCanvases:a}){if(0===t)return[0];let i=Math.floor(e/t*a);return[i-1,i,i+1]}function $(e){let t=e._cleanup;"function"==typeof t&&t()}class Y extends P{constructor(e,t){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.unsubscribeOnScroll=[],this.dragStream=null,this.scrollStream=null,this.containerInlinePadding=0,this.subscriptions=[],this.options=e;const a=this.parentFromOptionsContainer(e.container);this.parent=a;const[i,r]=this.initHtml();a.appendChild(i),this.container=i,this.scrollContainer=r.querySelector(".scroll"),this.wrapper=r.querySelector(".wrapper"),this.canvasWrapper=r.querySelector(".canvases"),this.progressWrapper=r.querySelector(".progress"),this.cursor=r.querySelector(".cursor"),this.calculateInlinePadding(),t&&r.appendChild(t),this.initEvents()}parentFromOptionsContainer(e){let t;if("string"==typeof e?t=document.querySelector(e):e instanceof HTMLElement&&(t=e),!t)throw Error("Container not found");return t}initEvents(){var e;let t,a,i,r;this.wrapper.addEventListener("click",e=>{let[t,a]=H(this.wrapper.getBoundingClientRect(),e.clientX,e.clientY);this.emit("click",t,a)}),this.wrapper.addEventListener("dblclick",e=>{let[t,a]=H(this.wrapper.getBoundingClientRect(),e.clientX,e.clientY);this.emit("dblclick",t,a)}),!0!==this.options.dragToSeek&&"object"!=typeof this.options.dragToSeek||this.initDrag(),this.scrollStream=(a=B(()=>(function(e){let{scrollLeft:t,scrollWidth:a,clientWidth:i}=e;return 0===a?{startX:0,endX:1}:{startX:Math.max(0,Math.min(1,t/a)),endX:Math.max(0,Math.min(1,(t+i)/a))}})(t.value),[t=F({scrollLeft:(e=this.scrollContainer).scrollLeft,scrollWidth:e.scrollWidth,clientWidth:e.clientWidth})]),i=B(()=>{var e;return{left:(e=t.value).scrollLeft,right:e.scrollLeft+e.clientWidth}},[t]),r=()=>{t.set({scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,clientWidth:e.clientWidth})},e.addEventListener("scroll",r,{passive:!0}),{scrollData:t,percentages:a,bounds:i,cleanup:()=>{e.removeEventListener("scroll",r),$(t)}});let s=U(()=>{let{startX:e,endX:t}=this.scrollStream.percentages.value,{left:a,right:i}=this.scrollStream.bounds.value;this.emit("scroll",e,t,a,i)},[this.scrollStream.percentages,this.scrollStream.bounds]);if(this.subscriptions.push(s),"function"==typeof ResizeObserver){let e=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{e().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){let e=this.parent.clientWidth;this.calculateInlinePadding(),e===this.lastContainerWidth&&"auto"!==this.options.height||(this.lastContainerWidth=e,this.reRender(),this.emit
50("resize"))}initDrag(){if(this.dragStream)return;this.dragStream=function(e,t={}){let{threshold:a=3,mouseButton:i=0,touchDelay:r=100}=t,s=F(null),n=new Map,o=matchMedia("(pointer: coarse)").matches,l=()=>{},c=t=>{if(t.button!==i||(n.set(t.pointerId,t),n.size>1))return;let c=t.clientX,u=t.clientY,d=!1,h=Date.now(),{left:m,top:_}=e.getBoundingClientRect(),p=e=>{if(e.defaultPrevented||n.size>1||o&&Date.now()-h<r)return;let t=e.clientX,i=e.clientY,l=t-c,p=i-u;(d||Math.abs(l)>a||Math.abs(p)>a)&&(e.preventDefault(),e.stopPropagation(),d||(s.set({type:"start",x:c-m,y:u-_}),d=!0),s.set({type:"move",x:t-m,y:i-_,deltaX:l,deltaY:p}),c=t,u=i)},f=e=>{if(n.delete(e.pointerId),d){let t=e.clientX,a=e.clientY;s.set({type:"end",x:t-m,y:a-_})}l()},g=e=>{n.delete(e.pointerId),e.relatedTarget&&e.relatedTarget!==document.documentElement||f(e)},b=e=>{d&&(e.stopPropagation(),e.preventDefault())},E=e=>{e.defaultPrevented||n.size>1||d&&e.preventDefault()};document.addEventListener("pointermove",p),document.addEventListener("pointerup",f),document.addEventListener("pointerout",g),document.addEventListener("pointercancel",g),document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("click",b,{capture:!0}),l=()=>{document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",f),document.removeEventListener("pointerout",g),document.removeEventListener("pointercancel",g),document.removeEventListener("touchmove",E),setTimeout(()=>{document.removeEventListener("click",b,{capture:!0})},10)}};return e.addEventListener("pointerdown",c),{signal:s,cleanup:()=>{l(),e.removeEventListener("pointerdown",c),n.clear(),$(s)}}}(this.wrapper);let e=U(()=>{var e;let t=this.dragStream.signal.value;if(!t)return;let a=this.wrapper.getBoundingClientRect().width,i=(e=t.x/a)<0?0:e>1?1:e;"start"===t.type?(this.isDragging=!0,this.emit("dragstart",i)):"move"===t.type?this.emit("drag",i):"end"===t.type&&(this.isDragging=!1,this.emit("dragend",i))},[this.dragStream.signal]);this.subscriptions.push(e)}calculateInlinePadding(){let{paddingLeft:e,paddingRight:t}=getComputedStyle(this.scrollContainer),a=parseFloat(e)+parseFloat(t);this.containerInlinePadding=Number.isNaN(a)?0:a}initHtml(){let e=document.createElement("div"),t=e.attachShadow({mode:"open"}),a=this.options.cspNonce&&"string"==typeof this.options.cspNonce?this.options.cspNonce.replace(/"/g,""):"";return t.innerHTML=` 51 <style${a?` nonce="${a}"`:""}> 52 :host { 53 user-select: none; 54 min-width: 1px; 55 } 56 :host audio { 57 display: block; 58 width: 100%; 59 } 60 :host .scroll { 61 overflow-x: auto; 62 overflow-y: hidden; 63 width: 100%; 64 position: relative; 65 } 66 :host .noScrollbar {
67 scrollbar-color: transparent; 68 scrollbar-width: none; 69 } 70 :host .noScrollbar::-webkit-scrollbar { 71 display: none; 72 -webkit-appearance: none; 73 } 74 :host .wrapper { 75 position: relative; 76 overflow: visible; 77 z-index: 2; 78 } 79 :host .canvases { 80 min-height: ${this.getHeight(this.options.height,this.options.splitChannels)}px; 81 pointer-events: none; 82 } 83 :host .canvases > div { 84 position: relative; 85 } 86 :host canvas { 87 display: block; 88 position: absolute; 89 top: 0; 90 image-rendering: pixelated; 91 } 92 :host .progress { 93 pointer-events: none; 94 position: absolute; 95 z-index: 2; 96 top: 0; 97 left: 0; 98 width: 0; 99 height: 100%; 100 overflow: hidden; 101 } 102 :host .progress > div { 103 position: relative; 104 } 105 :host .cursor { 106 pointer-events: none; 107 position: absolute; 108 z-index: 5; 109 top: 0; 110 left: 0; 111 height: 100%; 112 border-radius: 2px; 113 } 114 </style> 115 116 <div class="scroll" part="scroll"> 117 <div class="wrapper" part="wrapper"> 118 <div class="canvases" part="canvases"></div> 119 <div class="progress" part="progress"></div> 120 <div class="cursor" part="cursor"></div> 121 </div> 122 </div> 123 `,[e,t]}setOptions(e){var t;if(this.options.container!==e.container){let t=this.parentFromOptionsContainer(e.container);t.appendChild(this.container),this.parent=t}!0===e.dragToSeek||"object"==typeof this.options.dragToSeek?this.initDrag():(null==(t=this.dragStream)||t.cleanup(),this.dragStream=null),this.options=e,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth-this.containerInlinePadding}getScroll(){return this.scrollContainer.scrollLeft}setScroll(e){this.scrollContainer.scrollLeft=e}setScrollPercentage(e){let{scrollWidth:t}=this.scrollContainer;this.setScroll(t*e)}destroy(){var e;this.subscriptions.forEach(e=>e()),this.container.remove(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),null==(e=this.unsubscribeOnScroll)||e.forEach(e=>e()),this.unsubscribeOnScroll=[],this.dragStream&&(this.dragStream.cleanup(),this.dragStream=null),this.scrollStream&&(this.scrollStream.cleanup(),this.scrollStream=null)}createDelay(e=10){let t,a,i=()=>{t&&(clearTimeout(t),t=void 0),a&&(a(),a=void 0)};return this.timeouts.push(i),()=>new Promise((r,s)=>{i(),a=s,t=setTimeout(()=>{t=void 0,a=void 0,r()},e)})}getHeight(e,t){var a;let i=(null==(a=this.audioData)?void 0:a.numberOfChannels)||1;return function({optionsHeight:e,optionsSplitChannels:t,parentHeight:a,numberOfChannels:i,defaultHeight:r=128}){if(null==e)return r;let s=Number(e);if(!isNaN(s))return s;if("auto"===e){let e=a||r;return(null==t?void 0:t.every(e=>!e.overlay))?e/i:e}return r}({optionsHeight:e,optionsSplitChannels:t,parentHeight:this.parent.clientHeight,numberOfChannels:i,defaultHeight:128})}convertColorValues(e,t){return function(e,t,a){if(!Array.isArray(e))return e||"";if(0===e.length)return"#999";if(e.length<2)return e[0]||"";let i=document.createElement("canvas"),r=i.getContext("2d"),s=null!=a?a:i.height*t,n=r.createLinearGradient(0,0,0,s||t),o=1/(e.length-1);return e.forEach((e,t)=>{n.addColorStop(t*o,e)}),n}(e,this.getPixelRatio(),null==t?void 0:t.canvas.height)}getPixelRatio(){return Math.max(1,window.devicePixelRatio||1)}renderBarWaveform(e,t,a,i){let{width:r,height:s}=a.canvas,{halfHeight:n,barWidth:o,barRadius:l,barIndexScale:c,barSpacing:u,barMinHeight:d}=function({width:e,height:t,length:a,options:i,pixelRatio:r}){let s=i.barWidth?i.barWidth*r:1,n=i.barGap?i.barGap*r:i.barWidth?s/2:0,o=s+n||1;return{halfHeight:t/2,barWidth:s,barGap:n,barRadius:i.barRadius||0,barMinHeight:i.barMinHeight?i.barMinHeight*r:0,barIndexScale:a>0?e/o/a:0,barSpacing:o}}({width:r,height:s,length:(e[0]||[]).length,options:t,pixelRatio:this.getPixelRatio()}),h=function({channelData:e,barIndexScale:t,barSpacing:a,barWidth:i,halfHeight:r,vScale:s,canvasHeight:n,barAlign:o,barMinHeight:l}){let c=e[0]||[],u=e[1]||c,d=c.length,h=[],m=0,_=0,p=0;for(let e=0;e<=d;e++){let d=Math.round(e*t);if(d>m){let{topHeight:e,totalHeight:t}=function({maxTop:e,maxBottom:t,halfHeight:a,vScale:i,barMinHeight:r=0,barAlign:s}
123){let n=Math.round(e*a*i),o=n+Math.round(t*a*i)||1;return o<r&&(o=r,s||(n=o/2)),{topHeight:n,totalHeight:o}}({maxTop:_,maxBottom:p,halfHeight:r,vScale:s,barMinHeight:l,barAlign:o}),c=function({barAlign:e,halfHeight:t,topHeight:a,totalHeight:i,canvasHeight:r}){return"top"===e?0:"bottom"===e?r-i:t-a}({barAlign:o,halfHeight:r,topHeight:e,totalHeight:t,canvasHeight:n});h.push({x:m*a,y:c,width:i,height:t}),m=d,_=0,p=0}let f=Math.abs(c[e]||0),g=Math.abs(u[e]||0);f>_&&(_=f),g>p&&(p=g)}return h}({channelData:e,barIndexScale:c,barSpacing:u,barWidth:o,halfHeight:n,vScale:i,canvasHeight:s,barAlign:t.barAlign,barMinHeight:d});for(let e of(a.beginPath(),h))l&&"roundRect"in a?a.roundRect(e.x,e.y,e.width,e.height,l):a.rect(e.x,e.y,e.width,e.height);a.fill(),a.closePath()}renderLineWaveform(e,t,a,i){let{width:r,height:s}=a.canvas,n=function({channelData:e,width:t,height:a,vScale:i}){let r=a/2,s=e[0]||[];return[s,e[1]||s].map((e,a)=>{let s=e.length,n=s?t/s:0,o=0===a?-1:1,l=[{x:0,y:r}],c=0,u=0;for(let t=0;t<=s;t++){let a=Math.round(t*n);if(a>c){let e=r+(Math.round(u*r*i)||1)*o;l.push({x:c,y:e}),c=a,u=0}let s=Math.abs(e[t]||0);s>u&&(u=s)}return l.push({x:c,y:r}),l})}({channelData:e,width:r,height:s,vScale:i});for(let e of(a.beginPath(),n))if(e.length){a.moveTo(e[0].x,e[0].y);for(let t=1;t<e.length;t++){let i=e[t];a.lineTo(i.x,i.y)}}a.fill(),a.closePath()}renderWaveform(e,t,a){if(a.fillStyle=this.convertColorValues(t.waveColor,a),t.renderFunction)return void t.renderFunction(e,a);let i=function({channelData:e,barHeight:t,normalize:a,maxPeak:i}){var r;let s=t||1;if(!a)return s;let n=e[0];if(!n||0===n.length)return s;let o=null!=i?i:0;if(!i)for(let e=0;e<n.length;e++){let t=Math.abs(null!=(r=n[e])?r:0);t>o&&(o=t)}return o?s/o:s}({channelData:e,barHeight:t.barHeight,normalize:t.normalize,maxPeak:t.maxPeak});W(t)?this.renderBarWaveform(e,t,a,i):this.renderLineWaveform(e,t,a,i)}renderSingleCanvas(e,t,a,i,r,s,n){let o=this.getPixelRatio(),l=document.createElement("canvas");l.width=Math.round(a*o),l.height=Math.round(i*o),l.style.width=`${a}px`,l.style.height=`${i}px`,l.style.left=`${Math.round(r)}px`,s.appendChild(l);let c=l.getContext("2d");if(t.renderFunction?(c.fillStyle=this.convertColorValues(t.waveColor,c),t.renderFunction(e,c)):this.renderWaveform(e,t,c),l.width>0&&l.height>0){let e=l.cloneNode(),a=e.getContext("2d");a.drawImage(l,0,0),a.globalCompositeOperation="source-in",a.fillStyle=this.convertColorValues(t.progressColor,a),a.fillRect(0,0,l.width,l.height),n.appendChild(e)}}renderMultiCanvas(e,t,a,i,r,s){let n=this.getPixelRatio(),{clientWidth:o}=this.scrollContainer,l=a/n,c=function({clientWidth:e,totalWidth:t,options:a}){return V(Math.min(8e3,e,t),a)}({clientWidth:o,totalWidth:l,options:t}),u={};if(0===c)return;let d=a=>{if(a<0||a>=h||u[a])return;u[a]=!0;let n=a*c,o=Math.min(l-n,c);if((o=V(o,t))<=0)return;let d=function({channelData:e,offset:t,clampedWidth:a,totalWidth:i}){return e.map(e=>{let r=Math.floor(t/i*e.length),s=Math.floor((t+a)/i*e.length);return e.slice(r,s)})}({channelData:e,offset:n,clampedWidth:o,totalWidth:l});this.renderSingleCanvas(d,t,o,i,n,r,s)},h=Math.ceil(l/c);if(!this.isScrollable){for(let e=0;e<h;e++)d(e);return}if(q({scrollLeft:this.scrollContainer.scrollLeft,totalWidth:l,numCanvases:h}).forEach(e=>d(e)),h>1){let e=this.on("scroll",()=>{let{scrollLeft:e}=this.scrollContainer;Object.keys(u).length>10&&(r.innerHTML="",s.innerHTML="",u={}),q({scrollLeft:e,totalWidth:l,numCanvases:h}).forEach(e=>d(e))});this.unsubscribeOnScroll.push(e)}}renderChannel(e,t,a,i){var{overlay:r}=t,s=function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]])}return a}(t,["overlay"]);let n=document.createElement("div"),o=this.getHeight(s.height,s.splitChannels);n.style.height=`${o}px`,r&&i>0&&(n.style.marginTop=`-${o}px`),this.canvasWrapper.style.minHeight=`${o}px`,this.canvasWrapper.appendChild(n);let l=n.cloneNode();this.progressWrapper.appendChild(l),this.renderMultiCanvas(e,s,a,o,n,l)}render(e){return O(this,void 0,void 0,function*(){var t;
123this.timeouts.forEach(e=>e()),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",null!=this.options.width&&(this.scrollContainer.style.width="number"==typeof this.options.width?`${this.options.width}px`:this.options.width);let a=this.getPixelRatio(),i=this.scrollContainer.clientWidth-this.containerInlinePadding,{scrollWidth:r,isScrollable:s,useParentWidth:n,width:o}=function({duration:e,minPxPerSec:t=0,parentWidth:a,fillParent:i,pixelRatio:r}){let s=Math.ceil(e*t),n=s>a,o=!!(i&&!n);return{scrollWidth:s,isScrollable:n,useParentWidth:o,width:(o?a:s)*r}}({duration:e.duration,minPxPerSec:this.options.minPxPerSec||0,parentWidth:i,fillParent:this.options.fillParent,pixelRatio:a});if(this.isScrollable=s,this.wrapper.style.width=n?"100%":`${r}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=e,this.emit("render"),this.options.splitChannels)for(let a=0;a<e.numberOfChannels;a++){let i=Object.assign(Object.assign({},this.options),null==(t=this.options.splitChannels)?void 0:t[a]);this.renderChannel([e.getChannelData(a)],i,o,a)}else{let t=[e.getChannelData(0)];e.numberOfChannels>1&&t.push(e.getChannelData(1)),this.renderChannel(t,this.options,o,0)}Promise.resolve().then(()=>
123this.emit("rendered"))})}reRender(){if(this.unsubscribeOnScroll.forEach(e=>e()),this.unsubscribeOnScroll=[],!this.audioData)return;let{scrollWidth:e}=this.scrollContainer,{right:t}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),!this.isScrollable&&this.scrollContainer.scrollLeft)this.scrollContainer.scrollLeft=0;else if(this.isScrollable&&e!==this.scrollContainer.scrollWidth){let e,{right:a}=this.progressWrapper.getBoundingClientRect(),i=((e=2*(a-t))<0?Math.floor(e):Math.ceil(e))/2;this.scrollContainer.scrollLeft+=i}}zoom(e){this.options.minPxPerSec=e,this.reRender()}scrollIntoView(e,t=!1){var a;let{scrollLeft:i,scrollWidth:r,clientWidth:s}=this.scrollContainer,n=e*r,o=i+s,l=s/2;if(this.isDragging)n+30>o?this.scrollContainer.scrollLeft+=30:n-30<i&&(this.scrollContainer.scrollLeft-=30);else{(n<i||n>o)&&(this.scrollContainer.scrollLeft=n-(this.options.autoCenter?l:0));let e=n-i-l;if(t&&this.options.autoCenter&&e>0){let t=null==(a=this.audioData)?void 0:a.duration;if(void 0===t||t<=0)return void(this.scrollContainer.scrollLeft+=e);this.scrollContainer.scrollLeft+=r/t<=600?Math.min(e,10):e}}}renderProgress(e,t){if(isNaN(e))return;let a=100*e;this.canvasWrapper.style.clipPath=`polygon(${a}% 0%, 100% 0%, 100% 100%, ${a}% 100%)`,this.progressWrapper.style.width=`${a}%`,this.cursor.style.left=`${a}%`,this.cursor.style.transform=this.options.cursorWidth?`translateX(-${e*this.options.cursorWidth}px)`:"",this.isScrollable&&this.options.autoScroll&&this.audioData&&this.audioData.duration>0&&this.scrollIntoView(e,t)}exportImage(e,t,a){return O(this,void 0,void 0,function*(){let i=this.canvasWrapper.querySelectorAll("canvas");if(!i.length)throw Error("No waveform data");return"dataURL"===a?Promise.resolve(Array.from(i).map(a=>a.toDataURL(e,t))):Promise.all(Array.from(i).map(a=>new Promise((i,r)=>{a.toBlob(e=>{e?i(e):r(Error("Could not export image"))},e,t)})))})}}class z extends P{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;let e=()=>
123{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(e))};e()}stop(){this.isRunning=!1,null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}}class K extends P{constructor(e){super(),this.bufferNode=null,this.playStartTime=0,this.playbackPosition=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,function(){let e=globalThis.navigator;if(null==e?void 0:e.audioSession)try{e.audioSession.type="playback"}catch(e){console.warn("Setting navigator.audioSession.type failed:",e)}}(),this.audioContext=e||new AudioContext,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return O(this,void 0,void 0,function*(){})}get src(){return this.currentSrc}set src(e){(this.currentSrc=e,this._duration=void 0,e)?fetch(e).then(t=>{if(t.status>=400)throw Error(`Failed to fetch ${e}: ${t.status} (${t.statusText})`);return t.arrayBuffer()}).then(t=>this.currentSrc!==e?null:this.audioContext.decodeAudioData(t)).then(t=>{this.currentSrc===e&&(this.buffer=t,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())}).catch(e=>{console.error("WebAudioPlayer load error:",e)}):(this.buffer=null,this.emit("emptied"))}_play(){if(!this.paused)return;this.paused=!1,this.bufferNode&&(this.bufferNode.onended=null,this.bufferNode.disconnect()),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let e=this.playbackPosition;(e>=this.duration||e<0)&&(e=0,this.playbackPosition=0),this.bufferNode.start(this.audioContext.currentTime,e),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{!this.paused&&this.duration-this.currentTime<.01&&(this.pause(),this.emit("ended"))}}_pause(){var e;this.paused=!0,null==(e=this.bufferNode)||e.stop(),this.playbackPosition+=(this.audioContext.currentTime-this.playStartTime)*this._playbackRate}play(){return O(this,void 0,void 0,function*(){this.paused&&(this._play(),this.emit("play"))})}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(e){let t=e-this.currentTime,a=this.bufferNode;null==a||a.stop(this.audioContext.currentTime+t),null==a||a.addEventListener("ended",()=>{a===this.bufferNode&&(this.bufferNode=null,this.pause())},{once:!0})}setSinkId(e){return O(this,void 0,void 0,function*(){return this.audioContext.setSinkId(e)})}get playbackRate(){return this._playbackRate}set playbackRate(e){let t=!this.paused;t&&this._pause(),this._playbackRate=e,t&&this._play(),this.bufferNode&&(this.bufferNode.playbackRate.value=e)}get currentTime(){return this.paused?this.playbackPosition:this.playbackPosition+(this.audioContext.currentTime-this.playStartTime)*this._playbackRate}set currentTime(e){let t=!this.paused;t&&this._pause(),this.playbackPosition=e,t&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){var e,t;return null!=(e=this._duration)?e:(null==(t=this.buffer)?void 0:t.duration)||0}set duration(e){this._duration=e}get volume(){return this.gainNode.gain.value}set volume(e){this.gainNode.gain.value=e,this.emit("volumechange")}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(e){return/^(audio|video)\//.test(e)}getGainNode(){return this.gainNode}getChannelData(){let e=[];
123if(!this.buffer)return e;let t=this.buffer.numberOfChannels;for(let a=0;a<t;a++)e.push(this.buffer.getChannelData(a));return e}removeAttribute(e){switch(e){case"src":this.src="";break;case"playbackRate":this.playbackRate=0;break;case"currentTime":this.currentTime=0;break;case"duration":this.duration=0;break;case"volume":this.volume=0;break;case"muted":this.muted=!1}}}let Q={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};class X extends G{static create(e){return new X(e)}getState(){return this.wavesurferState}getRenderer(){return this.renderer}constructor(e){const t=e.media||("WebAudio"===e.backend?new K:void 0);super({media:t,mediaControls:e.mediaControls,autoplay:e.autoplay,playbackRate:e.audioRate}),this.plugins=[],this.decodedData=null,this.stopAtPosition=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.reactiveCleanups=[],this.options=Object.assign({},Q,e);const{state:a,actions:i}=function(e){var t,a,i,r,s,n;let o=null!=(t=null==e?void 0:e.currentTime)?t:F(0),l=null!=(a=null==e?void 0:e.duration)?a:F(0),c=null!=(i=null==e?void 0:e.isPlaying)?i:F(!1),u=null!=(r=null==e?void 0:e.isSeeking)?r:F(!1),d=null!=(s=null==e?void 0:e.volume)?s:F(1),h=null!=(n=null==e?void 0:e.playbackRate)?n:F(1),m=F(null),_=F(null),p=F(""),f=F(0),g=F(0),b=B(()=>!c.value,[c]),E=B(()=>null!==m.value,[m]),v=B(()=>E.value&&l.value>0,[E,l]),A=B(()=>o.value,[o]),T=B(()=>l.value>0?o.value/l.value:0,[o,l]);return{state:{currentTime:o,duration:l,isPlaying:c,isPaused:b,isSeeking:u,volume:d,playbackRate:h,audioBuffer:m,peaks:_,url:p,zoom:f,scrollPosition:g,canPlay:E,isReady:v,progress:A,progressPercent:T},actions:{setCurrentTime:e=>{let t=Math.max(0,Math.min(l.value||1/0,e));o.set(t)},setDuration:e=>{l.set(Math.max(0,e))},setPlaying:e=>{c.set(e)},setSeeking:e=>{u.set(e)},setVolume:e=>{let t=Math.max(0,Math.min(1,e));d.set(t)},setPlaybackRate:e=>{let t=Math.max(.1,Math.min(16,e));h.set(t)},setAudioBuffer:e=>{m.set(e),e&&l.set(e.duration)},setPeaks:e=>{_.set(e)},setUrl:e=>{p.set(e)},setZoom:e=>{f.set(Math.max(0,e))},setScrollPosition:e=>{g.set(Math.max(0,e))}}}}({isPlaying:this.isPlayingSignal,currentTime:this.currentTimeSignal,duration:this.durationSignal,volume:this.volumeSignal,playbackRate:this.playbackRateSignal,isSeeking:this.seekingSignal});this.wavesurferState=a,this.wavesurferActions=i,this.timer=new z;const r=t?void 0:this.getMediaElement();this.renderer=new Y(this.options,r),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initReactiveState(),this.initPlugins();const s=this.options.url||this.getSrc()||"";Promise.resolve().then(()=>{this.emit("init");let{peaks:e,duration:t}=this.options;(s||e&&t)&&this.load(s,e,t).catch(e=>{this.emit("error",e instanceof Error?e:Error(String(e)))})})}updateProgress(e=this.getCurrentTime()){return this.renderer.renderProgress(e/this.getDuration(),this.isPlaying()),e}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{if(!this.isSeeking()){let e=this.updateProgress();this.emit("timeupdate",e),this.emit("audioprocess",e),null!=this.stopAtPosition&&this.isPlaying()&&e>=this.stopAtPosition&&this.pause()}}))}initReactiveState(){var e,t;let a,i,r;this.reactiveCleanups.push((e=this.wavesurferState,t={emit:this.emit.bind(this)},(a=[]).push(U(()=>{let a=e.isPlaying.value;t.emit(a?"play":"pause")},[e.isPlaying])),a.push(U(()=>{let a=e.currentTime.value;t.emit("timeupdate",a),e.isPlaying.value&&t.emit("audioprocess",a)},[e.currentTime,e.isPlaying])),a.push(U(()=>{e.isSeeking.value&&t.emit("seeking",e.currentTime.value)},[e.isSeeking,e.currentTime])),i=!1,a.push(U(()=>{e.isReady.value&&!i&&(i=!0,t.emit("ready",e.duration.value))},[e.isReady,e.duration])),r=!1,a.push(U(()=>{let a=e.isPlaying.value,i=e.currentTime.value,s=e.duration.value,
123n=s>0&&i>=s;r&&!a&&n&&t.emit("finish"),r=a&&n},[e.isPlaying,e.currentTime,e.duration])),a.push(U(()=>{let a=e.zoom.value;a>0&&t.emit("zoom",a)},[e.zoom])),()=>{a.forEach(e=>e())}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{let e=this.updateProgress();this.emit("timeupdate",e)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("emptied",()=>{this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("ended",()=>{this.emit("timeupdate",this.getDuration()),this.emit("finish"),this.stopAtPosition=null}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}),this.onMediaEvent("error",()=>{var e;this.emit("error",null!=(e=this.getMediaElement().error)?e:Error("Media error")),this.stopAtPosition=null}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(e,t)=>{this.options.interact&&(this.seekTo(e),this.emit("interaction",e*this.getDuration()),this.emit("click",e,t))}),this.renderer.on("dblclick",(e,t)=>{this.emit("dblclick",e,t)}),this.renderer.on("scroll",(e,t,a,i)=>{let r=this.getDuration();this.emit("scroll",e*r,t*r,a,i)}),this.renderer.on("render",()=>{this.emit("redraw")}),this.renderer.on("rendered",()=>{this.emit("redrawcomplete")}
123),this.renderer.on("dragstart",e=>{this.emit("dragstart",e)}),this.renderer.on("dragend",e=>{this.emit("dragend",e)}),this.renderer.on("resize",()=>{this.emit("resize")}));{let e,t=this.renderer.on("drag",t=>{var a;if(!this.options.interact)return;this.renderer.renderProgress(t),clearTimeout(e);let i=0,r=this.options.dragToSeek;this.isPlaying()?i=0:!0===r?i=200:r&&"object"==typeof r&&(i=null!=(a=r.debounceTime)?a:200),e=setTimeout(()=>{this.seekTo(t)},i),this.emit("interaction",t*this.getDuration()),this.emit("drag",t)});this.subscriptions.push(()=>{clearTimeout(e),t()})}}initPlugins(){var e;(null==(e=this.options.plugins)?void 0:e.length)&&this.options.plugins.forEach(e=>{this.registerPlugin(e)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(e=>e()),this.mediaSubscriptions=[]}setOptions(e){this.options=Object.assign({},this.options,e),e.duration&&!e.peaks&&(this.decodedData=D.createBuffer(this.exportPeaks(),e.duration)),e.peaks&&e.duration&&(this.decodedData=D.createBuffer(e.peaks,e.duration)),this.renderer.setOptions(this.options),e.audioRate&&this.setPlaybackRate(e.audioRate),null!=e.mediaControls&&(this.getMediaElement().controls=e.mediaControls)}registerPlugin(e){if(this.plugins.includes(e))return e;e._init(this),this.plugins.push(e);let t=e.once("destroy",()=>{this.plugins=this.plugins.filter(t=>t!==e),this.subscriptions=this.subscriptions.filter(e=>e!==t)});return this.subscriptions.push(t),e}unregisterPlugin(e){this.plugins=this.plugins.filter(t=>t!==e),e.destroy()}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(e){return this.renderer.setScroll(e)}setScrollTime(e){let t=e/this.getDuration();this.renderer.setScrollPercentage(t)}getActivePlugins(){return this.plugins}loadAudio(e,t,a,i){return O(this,void 0,void 0,function*(){var r;if(this.emit("load",e),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,this.stopAtPosition=null,null==(r=this.abortController)||r.abort(),this.abortController=null,!t&&!a){let a=this.options.fetchParams||{};window.AbortController&&!a.signal&&(this.abortController=new AbortController,a.signal=this.abortController.signal);let i=e=>this.emit("loading",e);t=yield j.fetchBlob(e,i,a);let r=this.options.blobMimeType;r&&(t=new Blob([t],{type:r}))}this.setSrc(e,t);let s=yield new Promise(e=>{let t=i||this.getDuration();t?e(t):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",()=>e(this.getDuration()),{once:!0}))});if(!e&&!t){let e=this.getMediaElement();e instanceof K&&(e.duration=s)}if(a)this.decodedData=D.createBuffer(a,s||0);else if(t){let e=yield t.arrayBuffer();this.decodedData=yield D.decode(e,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())})}load(e,t,a){return O(this,void 0,void 0,function*(){try{return yield this.loadAudio(e,void 0,t,a)}catch(e){throw this.emit("error",e),e}})}loadBlob(e,t,a){return O(this,void 0,void 0,function*(){try{return yield this.loadAudio("",e,t,a)}catch(e){throw this.emit("error",e),e}})}zoom(e){if(!this.decodedData)throw Error("No audio loaded");this.renderer.zoom(e),this.emit("zoom",e)}getDecodedData(){return this.decodedData}exportPeaks({channels:e=2,maxLength:t=8e3,precision:a=1e4}={}){if(!this.decodedData)throw Error("The audio has not been decoded yet");let i=Math.min(e,this.decodedData.numberOfChannels),r=[];for(let e=0;e<i;e++){let i=this.decodedData.getChannelData(e),s=[],n=i.length/t;for(let e=0;e<t;e++){let t=i.slice(Math.floor(e*n),Math.ceil((e+1)*n)),r=0;for(let e=0;e<t.length;e++){let a=t[e];Math.abs(a)>Math.abs(r)&&(r=a)}s.push(Math.round(r*a)/a)}r.push(s)}return r}getDuration(){let e=super.getDuration()||0;return(0===e||e===1/0)&&this.decodedData&&(e=this.decodedData.duration),e}toggleInteraction(e){this.options.interact=e}setTime(e){this.stopAtPosition=null,super.setTime(e),this.updateProgress(e),this.emit("timeupdate",e)}seekTo(e){let t=this.getDuration()*e;this.setTime(t)}play(e,t){let a=Object.create(null,{play:{get:()=>super.play}});return O(this,void 0,void 0,function*(){null!=e&&this.setTime(e);let i=yield a.play.call(this);return null!=t&&(this.media instanceof K?this.media.stopAt(t):this.stopAtPosition=t),i})}playPause(){return O(this,void 0,void 0,function*(){return this.isPlaying()?this.pause():this.play()})}stop(){this.pause(),this.setTime(0)}skip(e){this.setTime(this.getCurrentTime()+e)}empty(){this.load("",[[0]],.001)}setMediaElement(e){this.unsubscribePlayerEvents(),super.setMediaElement(e),this.initPlayerEvents()}exportImage(){return O(this,arguments,void 0,function*(e="image/png",t=1,a="dataURL"){return this.renderer.exportImage(e,t,a)})}destroy(){var e;
123this.emit("destroy"),null==(e=this.abortController)||e.abort(),this.plugins.forEach(e=>e.destroy()),this.subscriptions.forEach(e=>e()),this.unsubscribePlayerEvents(),this.reactiveCleanups.forEach(e=>e()),this.reactiveCleanups=[],this.timer.destroy(),this.renderer.destroy(),super.destroy()}}X.BasePlugin=class extends P{constructor(e){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=e}onInit(){}_init(e){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=e,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(e=>e()),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},X.dom=M;var Z=e.i(921705);function J(e){let t=1e3*e;return t>=36e5?new Date(t).toISOString().slice(11,19):new Date(t).toISOString().slice(14,19)}e.s(["default",0,function({audioLibro:e,tituloLibro:t=""}){let a=e?.url,{stop:i,wavesurfer:r,isPlayingWavesurfer:s,setIsPlayingWavesurfer:n}=(0,Z.useAudioPlayer)(),o=(0,f.useRef)(null),[l,c]=(0,f.useState)(20),[u,d]=(0,f.useState)(20),[h,m]=(0,f.useState)(0),[_,v]=(0,f.useState)(0),[T,y]=(0,f.useState)(!1),[S,w]=(0,f.useState)(!1);(0,f.useEffect)(()=>{if(!o.current)return;y(!0);let e={container:o.current,waveColor:"#0f81e4",progressColor:"#dbedfa",cursorColor:"transparent",barWidth:3,barGap:1.5,responsive:!0,height:60,normalize:!0,partialRender:!0,skipLength:10};r.current=X.create(e),r.current.load(a),r.current.on("ready",()=>{r.current?.setVolume(.2),w(!0),m(r.current?.getDuration()||0),y(!1)}),r.current.on("audioprocess",()=>{v(r.current?.getCurrentTime()||0)})},[]);let k=async()=>{if(r.current){let e=r.current.getCurrentTime();r.current.setTime(e+5),r.current?.isPlaying()||await P()}},O=async()=>{if(r.current){let e=r.current.getCurrentTime();r.current.setTime(Math.max(e-5,0)),r.current?.isPlaying()||await P()}},P=async()=>{r.current&&(s?(r.current?.pause(),n(!1)):(r.current.play(),n(!0)))},D=J(_??0),R=J(h??0);return(0,p.jsxs)("div",{className:g.default.audioPlayerWrapper,children:[(0,p.jsx)("div",{className:g.default.audioplayerCover,children:(0,p.jsx)(E.default,{img:e?.foto,thumbKey:"m_175_310",alt:"Fragmento de audio del libro "+t,className:g.default.portada__image,placeholder:b.IMAGEPLACEHOLDERS.AUDIO_LIBRO,priority:!0})}),(0,p.jsxs)("div",{className:g.default.audioplayer,children:[(0,p.jsxs)("div",{className:g.default.audioplayerActions,children:[(0,p.jsxs)("div",{className:g.default.soundControls,children:[(0,p.jsx)("button",{className:g.default.mute,title:"Silenciar",onClick:()=>{l>0?(c(0),d(l),r.current?.setVolume(0)):(c(u),d(0),r.current?.setVolume(u/100))},disabled:!s&&!S,children:l>0?(0,p.jsx)("span",{children:(0,p.jsx)(A,{})}):(0,p.jsx)("span",{children:(0,p.jsx)(C,{})})}),(0,p.jsxs)("div",{className:g.default.audioPlayerWrapper,children:[(0,p.jsx)("label",{htmlFor:"volume",className:"sr-only",children:"Volume"}),(0,p.jsx)("input",{type:"range",id:"volume",name:"volume",value:l,min:0,max:100,step:10,onChange:e=>{let t=parseInt(e.target.value);c(t),r.current&&(r.current.setVolume(t/100),c(t))},className:g.default.audioplayerSlider,disabled:!s&&!S})]})]}),(0,p.jsxs)("div",{className:g.default.controls,children:[(0,p.jsxs)("button",{className:g.default.rewind,title:"volver atrás 10 segundos",onClick:O,disabled:!s&&!S,children:[" ",(0,p.jsx)(x,{})]}),(0,p.jsx)(p.Fragment,{children:s?(0,p.jsx)("button",{disabled:T,className:g.default.toggleReproductionBtn,onClick:()=>{r.current&&(r.current?.pause(),n(!1))},title:"Pausar",children:(0,p.jsx)(N,{})}):(0,p.jsx)("button",{disabled:T,className:g.default.toggleReproductionBtn,onClick:()=>{r.current&&(i(),r.current.play(),n(!0))},title:"Reproducir",children:(0,p.jsx)(I,{})})}),(0,p.jsx)("button",{className:g.default.forward,title:"Avanzar 10 segundos",onClick:k,disabled:!s&&!S,children:(0,p.jsx)("span",{children:(0,p.jsx)(L,{})})})]})]}),(0,p.jsxs)("div",{className:g.default.time,children:[(0,p.jsx)("span",{children:D}),(0,p.jsx)("span",{className:g.default.time_separator,children:"-"}),(0,p.jsx)("span",{children:R})]}),(0,p.jsx)("div",{className:g.default.waves,ref:o})]})]})}],590506)},780449,e=>{e.v({accionesUsuario:"FichaLibro-module-scss-module__DYoM3G__accionesUsuario",audioPlayer:"FichaLibro-module-scss-module__DYoM3G__audioPlayer","blink-animation":"FichaLibro-module-scss-module__DYoM3G__blink-animation",btnWFull:"FichaLibro-module-scss-module__DYoM3G__btnWFull",carrouselFichaLibro__portada:"FichaLibro-module-scss-module__DYoM3G__carrouselFichaLibro__portada",carrouselFichaLibro__slide:"FichaLibro-module-scss-module__DYoM3G__carrouselFichaLibro__slide",comprar__mobile:"FichaLibro-module-scss-module__DYoM3G__comprar__mobile",embla:"FichaLibro-module-scss-module__DYoM3G__embla",embla__container:"FichaLibro-module-scss-module__DYoM3G__embla__container",embla__slide:"FichaLibro-module-scss-module__DYoM3G__embla__slide",fichaLibro:"FichaLibro-module-scss-module__DYoM3G__fichaLibro",fichaLibroBooksFilmRights__descContainer:"FichaLibro-module-scss-module__DYoM3G__fichaLibroBooksFilmRights__descContainer",fichaLibroBooksFilmRights__mailto:"FichaLibro-module-scss-module__DYoM3G__fichaLibroBooksFilmRights__mailto",fichaLibroBooksFilmRights__spanSubtitle:"FichaLibro-module-scss-module__DYoM3G__fichaLibroBooksFilmRights__spanSubtitle",fichaLibroBooksFilmRights__subtitle:"FichaLibro-module-scss-module__DYoM3G__fichaLibroBooksFilmRights__subtitle",fichaLibroBooksFilmRights__thinSubtitle:"FichaLibro-module-scss-module__DYoM3G__fichaLibroBooksFilmRights__thinSubtitle",fichaLibroBooksFilmRights__titulo:"FichaLibro-module-scss-module__DYoM3G__fichaLibroBooksFilmRights__titulo",fichaLibro__autores:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__autores",fichaLibro__bookfilmRights:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__bookfilmRights",fichaLibro__contenidoExtra:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__contenidoExtra",fichaLibro__descripcion:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__descripcion",fichaLibro__descripcion__bookfilmRights:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__descripcion__bookfilmRights",fichaLibro__opcionesCompra:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__opcionesCompra",fichaLibro__opcionesCompra__label:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__opcionesCompra__label",fichaLibro__portada:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__portada",fichaLibro__right
123Column:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__rightColumn",fichaLibro__subtitulo:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__subtitulo",fichaLibro__titulo:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__titulo",fichaLibro__tituloOriginal:"FichaLibro-module-scss-module__DYoM3G__fichaLibro__tituloOriginal",galeria__desktop:"FichaLibro-module-scss-module__DYoM3G__galeria__desktop",galeria__mobile:"FichaLibro-module-scss-module__DYoM3G__galeria__mobile",hasTags:"FichaLibro-module-scss-module__DYoM3G__hasTags",logoMinisterio:"FichaLibro-module-scss-module__DYoM3G__logoMinisterio",logoMinisterio__image:"FichaLibro-module-scss-module__DYoM3G__logoMinisterio__image",section__title:"FichaLibro-module-scss-module__DYoM3G__section__title",showDesktop:"FichaLibro-module-scss-module__DYoM3G__showDesktop",sinopsis:"FichaLibro-module-scss-module__DYoM3G__sinopsis",sinopsis__fraseMarqueting:"FichaLibro-module-scss-module__DYoM3G__sinopsis__fraseMarqueting",sinopsis__text:"FichaLibro-module-scss-module__DYoM3G__sinopsis__text",sinopsis__text__inner:"FichaLibro-module-scss-module__DYoM3G__sinopsis__text__inner",sinopsis__title__nombreLibro:"FichaLibro-module-scss-module__DYoM3G__sinopsis__title__nombreLibro",tituloOriginalLabel:"FichaLibro-module-scss-module__DYoM3G__tituloOriginalLabel",valoraEsteLibro:"FichaLibro-module-scss-module__DYoM3G__valoraEsteLibro",valoraEsteLibro__estrellas:"FichaLibro-module-scss-module__DYoM3G__valoraEsteLibro__estrellas",valoraEsteLibro__link:"FichaLibro-module-scss-module__DYoM3G__valoraEsteLibro__link",valoraEsteLibro__numValoraciones:"FichaLibro-module-scss-module__DYoM3G__valoraEsteLibro__numValoraciones",valoraEsteLibro__valorado:"FichaLibro-module-scss-module__DYoM3G__valoraEsteLibro__valorado"})},197615,e=>{"use strict";var t=e.i(843476),a=e.i(780449),i=e.i(10655),r=e.i(978877),s=e.i(618566),n=e.i(283231);e.s(["default",0,function({total:e,anchorToOpinionesText:o}){let{pageData:l}=(0,r.usePageData)(),c=(0,n.useModuleGAMetadata)(),u=(0,s.usePathname)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("a",{className:a.default.valoraEsteLibro__numValoraciones,href:`https://www.planetadelibros.com.mx${u}#${o}`,onClick:e=>{(0,i.contentClickEvent)({tipoPagina:(0,i.convertPageType)(l.tipoPagina),urlPagina:u,nombreContenido:"numero valoraciones",tipoContenido:"Otros",nombreSeccionPadre:c?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"textlink"}),setTimeout(()=>{document.getElementById(o).scrollIntoView()},400)},children:["(",e,")"]})})}])},4330,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(978877),r=e.i(618566),s=e.i(283231);e.s(["default",0,function({children:e}){let{pageData:n}=(0,i.usePageData)(),o=(0,s.useModuleGAMetadata)(),l=(0,r.usePathname)();return(0,t.jsx)("div",{className:"TaggingLeerFragmento",onClick:()=>(0,a.contentClickEvent)({tipoPagina:(0,a.convertPageType)(n.tipoPagina),urlPagina:l,nombreContenido:"Leer fragmento",tipoContenido:"Otros",nombreSeccionPadre:o?.metadatosSeccion?.nombre,tipoClick:"tag",tipoCta:"textlink showmore"}),children:e})}])},59601,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(978877),r=e.i(618566),s=e.i(283231);e.s(["default",0,function({children:e}){let{pageData:n}=(0,i.usePageData)(),o=(0,s.useModuleGAMetadata)(),l=(0,r.usePathname)();return(0,t.jsx)("div",{onClick:()=>(0,a.contentClickEvent)({tipoPagina:(0,a.convertPageType)(n.tipoPagina),urlPagina:l,nombreContenido:"Escuchar un fragmento",tipoContenido:"Otros",nombreSeccionPadre:o?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"card"}),children:e})}])},550369,e=>{"use strict";var t,a=e.i(271645);function i(){return(i=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.464 15.465A5 5 0 0 1 5 14h7a5 5 0 0 1 5 5v2a1 1 0 1 1-2 0v-2a3 3 0 0 0-3-3H5a3 3 0 0 0-3 3v2a1 1 0 1 1-2 0v-2a5 5 0 0 1 1.464-3.536M8.5 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6m-5 3a5 5 0 1 1 10 0 5 5 0 0 1-10 0M23.707 8.293a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L19 11.586l3.293-3.293a1 1 0 0 1 1.414 0",clipRule:"evenodd"})))}])},95669,e=>{"use strict";var t=e.i(843476),a=e.i(496044),i=e.i(978877),r=e.i(283231),s=e.i(10655),n=e.i(618566),o=e.i(822596),l=e.i(936540),c=e.i(330580),u=e.i(539912),d=e.i(505570);e.i(247167);var h=e.i(635262),m=e.i(522016),_=e.i(357172),p=e.i(626485);function f({slug:e,refer:a,loginTitle:i="loginTitle",textHelp:r,redirectAfterLogin:s=!0,actionsAfterLogin:n,dictionary:l,variant:c="page"}){let{t:u}=(0,o.getDictionary)(l);return(0,t.jsxs)("div",{className:`${h.default.login}`,...e?{id:e}:{},children:[r&&(0,t.jsx)("p",{className:h.default.textHelp,children:r}),(0,t.jsx)(()=>{switch(c){case"modal":return(0,t.jsx)("p",{className:h.default.loginTitle,children:u("loginTitleModal")});case"page":return(0,t.jsx)("h1",{className:h.default.loginTitle,children:u("loginTitle")})}},{}),(0,t.jsx)("div",{className:h.default.formWrapper,children:(0,t.jsx)(_.default,{referer:a,accesoDict:l,redirectAfterLogin:s,actionsAfterLogin:n})}),(0,t.jsxs)("p",{className:h.default.acceso__linkIniciarSesion,children:[u("loginDontHaveAnAccount")," ",(0,t.jsx)(m.default,{prefetch:!1,href:`https://www.planetadelibros.com.mx${u("urlRegistro")}`,children:u("signupKeyword")})]}),(0,t.jsx)("p",{className:h.default.acceso__separador,children:(0,t.jsx)("span",{children:u("orKeyword")})}),(0,t.jsx)(p.default,{variant:"vertical",facebookText:u("continuarConFacebook"),googleText:u("continuarConGoogle")})]})}var g=e.i(970496),b=e.i(88205),E=e.i(208549),v=e.i(550369);function A({titulo:e}){return(0,t.jsxs)("div",{className:b.default.modal__headerWithIcon,children:[(0,t.jsx)("span",{className:b.default.modal__headerWithIcon__icon,children:(0,t.jsx)(v.default,{})}),(0,t.jsx)("h2",{className:b.default.modal__headerWithIcon__text,children:e})]})}function T({libro:e,dictionary:a,dictionaryAcceso:i,closeModal:r,defaultDict:s}){let{t:n}=(0,o.getDictionary)(a);return(0,t.jsxs)("div",{className:(0,g.classNames)("ModalContenidoExclusivo",b.default.modal2Columnas),children:[(0,t.jsx)(E.default,{defaultDict:s,closeAction:e=>{e.stopPropagation(),r()},className:b.default.modal2Columnas__cabeceraMobile,children:(0,t.jsx)(A,{titulo:n("tituloContenidoExclusivo")})}),(0,t.jsxs)("div",{className:b.default.modal2Columnas__inner,children:[(0,t.jsx)("div",{className:`${b.default.modal2Columnas__miniatura} ${b.default.modal2Columnas__miniatura__fullPadding}`,children:(0,t.jsx)(d.default,{libro:e,translationsObj:{portadaAlt:n("portadaAlt")}})}),(0,t.jsxs)("div",{className:b.default.modal2Columnas__content,children:[(0,t.jsx)(E.default,{defaultDict:s,closeAction:e=>{e.stopPropagation(),r()},className:b.default.modal2Columnas__cabeceraDesktop,children:(0,t.jsx)(A,{titulo:n("tituloContenidoExclusivo")})}
123),(0,t.jsx)(f,{slug:"ficha-libro-login",refer:null,textHelp:n("descripcionContenidoExclusivo"),redirectAfterLogin:!1,actionsAfterLogin:e=>r(),dictionary:i,variant:"modal"})]})]})]})}e.s(["default",0,function({isLogged:e,libro:d,dictionary:h,dictionaryAcceso:m,defaultDict:_}){let{pageData:p}=(0,i.usePageData)(),f=(0,r.useModuleGAMetadata)(),g=(0,n.usePathname)(),{t:b}=(0,o.getDictionary)(h),E=b(e?"irAContenidoExclusivo":"contenidoExclusivo"),{refModal:v,openModal:A,closeModal:C,isOpen:y}=(0,c.default)(),x=()=>{(0,s.contentClickEvent)({tipoPagina:(0,s.convertPageType)(p.tipoPagina),urlPagina:g,nombreContenido:E,tipoContenido:"Otros",nombreSeccionPadre:f?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"textlink"})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Modal,{isOpen:y,ref:v,handleClose:C,closeOutsideClose:!0,id:`contenidoExclusivo_${d.id}`,variant:"no-padding",children:(0,t.jsx)(T,{defaultDict:_,dictionary:h,dictionaryAcceso:m,libro:d,closeModal:C})}),e?(0,t.jsx)(a.default,{path:"#contenido-extra",variant:"secondary",onClick:()=>{x()},size:"normal",children:E}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(l.default,{variant:"secondary",onClick:()=>{x(),A()},size:"normal",children:E})})]})}],95669)},783328,e=>{"use strict";function t(e,t,a){let i=document.createElement(t);return e&&(i.className=e),a&&a.appendChild(i),i}function a(e,t,a){e.style.width="number"==typeof t?`${t}px`:t,e.style.height="number"==typeof a?`${a}px`:a}let i="loading",r="loaded",s="error";function n(e,t,a=document){let i=[];if(e instanceof Element)i=[e];else if(e instanceof NodeList||Array.isArray(e))i=Array.from(e);else{let r="string"==typeof e?e:t;r&&(i=Array.from(a.querySelectorAll(r)))}return i}function o(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}class l{constructor(e,t){this.type=e,this.defaultPrevented=!1,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}}class c{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t,a=100){var i,r,s;this._filters[e]||(this._filters[e]=[]),null==(i=this._filters[e])||i.push({fn:t,priority:a}),null==(r=this._filters[e])||r.sort((e,t)=>e.priority-t.priority),null==(s=this.pswp)||s.addFilter(e,t,a)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter(e=>e.fn!==t)),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var a;return null==(a=this._filters[e])||a.forEach(e=>{t[0]=e.fn.apply(this,t)}),t[0]}on(e,t){var a,i;this._listeners[e]||(this._listeners[e]=[]),null==(a=this._listeners[e])||a.push(t),null==(i=this.pswp)||i.on(e,t)}off(e,t){var a;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(e=>t!==e)),null==(a=this.pswp)||a.off(e,t)}dispatch(e,t){var a;if(this.pswp)return this.pswp.dispatch(e,t);let i=new l(e,t);return null==(a=this._listeners[e])||a.forEach(e=>{e.call(this,i)}),i}}class u{constructor(e,a){if(this.element=t("pswp__img pswp__img--placeholder",e?"img":"div",a),e){const t=this.element;t.decoding="async",t.alt="",t.src=e,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,t){if(this.element)if("IMG"===this.element.tagName){var i;let t;a(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=(t="translate3d(0px,0px,0)",i=e/250,t+=` scale3d(${i},${i},1)`)}else a(this.element,e,t)}destroy(){var e;null!=(e=this.element)&&e.parentNode&&this.element.remove(),this.element=null}}class d{constructor(e,t,a){this.instance=t,this.data=e,this.index=a,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state="idle",this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,a){if(this.slide&&this.usePlaceholder())if(this.placeholder){let e=this.placeholder.element;e&&!e.parentElement&&this.slide.container.prepend(e)}else{let e=this.instance.applyFilters("placeholderSrc",!!this.data.msrc&&!!this.slide.isFirstSlide&&this.data.msrc,this);this.placeholder=new u(e,this.slide.container)}this.element&&!a||!this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented&&(this.isImageContent()?(this.element=t("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=t("pswp__content","div"),this.element.innerHTML=this.data.html||""),a&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var t,a;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;let r=this.element;this.updateSrcsetSizes(),this.data.srcset&&(r.srcset=this.data.srcset),r.src=null!=(t=this.data.src)?t:"",r.alt=null!=(a=this.data.alt)?a:"",this.state=i,r.complete?this.onLoaded():(r.onload=()=>{this.onLoaded()},r.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=r,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===r||this.state===s)&&this.removePlaceholder())}onError(){this.state=s,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,
123content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===i,this)}isError(){return this.state===s}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(a(this.element,e,t),this.isImageContent()&&!this.isError()))){let a=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=t,a?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==s,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;let e=this.element,t=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+"px",e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,a;let i=t("pswp__error-msg","div");i.innerText=null!=(e=null==(a=this.instance.options)?void 0:a.errorMsg)?e:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=t("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===s)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;let e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||o())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!o()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){!this.isAttached||this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===r||this.state===s)&&this.removePlaceholder())}}function h(e,t,a,i,r){let s=0;if(t.paddingFn)s=t.paddingFn(a,i,r)[e];else if(t.padding)s=t.padding[e];else{let a="padding"+e[0].toUpperCase()+e.slice(1);t[a]&&(s=t[a])}return Number(s)||0}class m{constructor(e,t,a,i){this.pswp=i,this.options=e,this.itemData=t,this.index=a,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,a){let i={x:e,y:t};this.elementSize=i,this.panAreaSize=a;let r=a.x/i.x,s=a.y/i.y;this.fit=Math.min(1,r<s?r:s),this.fill=Math.min(1,r>s?r:s),this.vFill=Math.min(1,s),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){let t=this.options[e+"ZoomLevel"];
123if(t)return"function"==typeof t?t(this):"fill"===t?this.fill:"fit"===t?this.fit:Number(t)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),this.elementSize&&e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x)),e}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}function _(e,t,a){let i,r=t.createContentFromData(e,a),{options:s}=t;if(s){let n;i=new m(s,e,-1),n=t.pswp?t.pswp.viewportSize:function(e,t){if(e.getViewportSizeFn){let a=e.getViewportSizeFn(e,t);if(a)return a}return{x:document.documentElement.clientWidth,y:window.innerHeight}}(s,t);let o={x:n.x-h("left",s,n,e,a)-h("right",s,n,e,a),y:n.y-h("top",s,n,e,a)-h("bottom",s,n,e,a)};i.update(r.width,r.height,o)}return r.lazyLoad(),i&&r.setDisplayedSize(Math.ceil(r.width*i.initial),Math.ceil(r.height*i.initial)),r}class p extends c{getNumItems(){var e;let t=0,a=null==(e=this.options)?void 0:e.dataSource;a&&"length"in a?t=a.length:a&&"gallery"in a&&(a.items||(a.items=this._getGalleryDOMElements(a.gallery)),a.items&&(t=a.items.length));let i=this.dispatch("numItems",{dataSource:a,numItems:t});return this.applyFilters("numItems",i.numItems,a)}createContentFromData(e,t){return new d(e,this,t)}getItemData(e){var t;let a=null==(t=this.options)?void 0:t.dataSource,i={};Array.isArray(a)?i=a[e]:a&&"gallery"in a&&(a.items||(a.items=this._getGalleryDOMElements(a.gallery)),i=a.items[e]);let r=i;r instanceof Element&&(r=this._domElementToItemData(r));let s=this.dispatch("itemData",{itemData:r||{},index:e});return this.applyFilters("itemData",s.itemData,e)}_getGalleryDOMElements(e){var t,a;return null!=(t=this.options)&&t.children||null!=(a=this.options)&&a.childSelector?n(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){let t={element:e},a="A"===e.tagName?e:e.querySelector("a");if(a){t.src=a.dataset.pswpSrc||a.href,a.dataset.pswpSrcset&&(t.srcset=a.dataset.pswpSrcset),t.width=a.dataset.pswpWidth?parseInt(a.dataset.pswpWidth,10):0,t.height=a.dataset.pswpHeight?parseInt(a.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,a.dataset.pswpType&&(t.type=a.dataset.pswpType);let r=e.querySelector("img");if(r){var i;t.msrc=r.currentSrc||r.src,t.alt=null!=(i=r.getAttribute("alt"))?i:""}(a.dataset.pswpCropped||a.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,a)}lazyLoadData(e,t){return _(e,this,t)}}e.s(["default",0,class extends p{constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){n(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(e){if("button"in e&&1===e.button||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||window.pswp)return;let t={x:e.clientX,y:e.clientY};t.x||t.y||(t=null);let a=this.getClickedIndex(e);a=this.applyFilters("clickedIndex",a,e,this);let i={gallery:e.currentTarget};a>=0&&(e.preventDefault(),this.loadAndOpen(a,i,t))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);let t=e.target,a=n(this.options.children,this.options.childSelector,e.currentTarget).findIndex(e=>e===t||e.contains(t));return -1!==a?a:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,t,a){if(window.pswp||!this.options)return!1;if(!t&&this.options.gallery&&this.options.children){let e=n(this.options.gallery);e[0]&&(t={gallery:e[0]})}return this.options.index=e,this.options.initialPointerPos=a,this.shouldOpen=!0,this.preload(e,t),!0}preload(e,t){var a;let{options:i}=this;t&&(i.dataSource=t);let r=[],s=typeof i.pswpModule;if("function"==typeof(a=i.pswpModule)&&a.prototype&&a.prototype.goTo)r.push(Promise.resolve(i.pswpModule));else if("string"===s)throw Error("pswpModule as string is no longer supported");else if("function"===s)r.push(i.pswpModule());else throw Error("pswpModule is not valid");"function"==typeof i.openPromise&&r.push(i.openPromise()),!1!==i.preloadFirstSlide&&e>=0&&(this._preloadedContent=function(e,t){let a=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:a}).defaultPrevented)return _(a,t,e)}(e,this));let n=++this._uid;Promise.all(r).then(e=>{if(this.shouldOpen){let t=e[0];this._openPhotoswipe(t,n)}})}_openPhotoswipe(e,t){if(t!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;let a="object"==typeof e?new e.default(this.options):new e(this.options);
123this.pswp=a,window.pswp=a,Object.keys(this._listeners).forEach(e=>{var t;null==(t=this._listeners[e])||t.forEach(t=>{a.on(e,t)})}),Object.keys(this._filters).forEach(e=>{var t;null==(t=this._filters[e])||t.forEach(t=>{a.addFilter(e,t.fn,t.priority)})}),this._preloadedContent&&(a.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),a.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),a.init()}destroy(){var e;null==(e=this.pswp)||e.destroy(),this.shouldOpen=!1,this._listeners={},n(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.removeEventListener("click",this.onThumbnailsClick,!1)})}}])},385406,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(783328),r=e.i(10655),s=e.i(283231),n=e.i(978877),o=e.i(618566);e.s(["default",0,function({children:l}){(0,o.useRouter)();let c=(0,o.usePathname)(),u=(0,s.useModuleGAMetadata)(),{pageData:d}=(0,n.usePageData)();(0,a.useEffect)(()=>{let t=new i.default({gallery:"#libroGallery",children:"a",pswpModule:()=>e.A(284163),paddingFn:e=>({top:e.x<600?20:80,bottom:e.x<600?20:80,left:e.x<600?20:80,right:e.x<600?20:80})});return t.init(),()=>{t.destroy(),t=null}},[]),(0,a.useEffect)(()=>{let e=document.getElementById("libroGallery").getElementsByTagName("img");for(let t=0;t<e.length;t++)e[t].addEventListener("click",function(){h()})},[]);let h=()=>{(0,r.contentClickEvent)({tipoPagina:(0,r.convertPageType)(d.tipoPagina),urlPagina:c,nombreContenido:"Imagen",tipoContenido:"Otros",nombreSeccionPadre:u?.metadatosSeccion?.nombre,tipoClick:"image",tipoCta:"card"})};return(0,t.jsx)("div",{id:"libroGallery",children:l})}])},667769,(e,t,a)=>{function i(e,t,a){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+a:Math.ceil(e/t)+" "+a+"s"}t.exports=function(e,t){t=t||{};var a,r,s=typeof e;if("string"===s&&e.length>0){var n=e;if(!((n=String(n)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(n);if(o){var l=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:break}}}return}if("number"===s&&!1===isNaN(e)){return t.long?i(a=e,864e5,"day")||i(a,36e5,"hour")||i(a,6e4,"minute")||i(a,1e3,"second")||a+" ms":(r=e)>=864e5?Math.round(r/864e5)+"d":r>=36e5?Math.round(r/36e5)+"h":r>=6e4?Math.round(r/6e4)+"m":r>=1e3?Math.round(r/1e3)+"s":r+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},135778,(e,t,a)=>{var i;function r(e){function t(){if(t.enabled){var e=+new Date;t.diff=e-(i||e),t.prev=i,t.curr=e,i=e;for(var r=Array(arguments.length),s=0;s<r.length;s++)r[s]=arguments[s];r[0]=a.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var n=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,function(e,i){if("%%"===e)return e;n++;var s=a.formatters[i];if("function"==typeof s){var o=r[n];e=s.call(t,o),r.splice(n,1),n--}return e}),a.formatArgs.call(t,r),(t.log||a.log||console.log.bind(console)).apply(t,r)}}return t.namespace=e,t.enabled=a.enabled(e),t.useColors=a.useColors(),t.color=function(e){var t,i=0;for(t in e)i=(i<<5)-i+e.charCodeAt(t)|0;return a.colors[Math.abs(i)%a.colors.length]}(e),"function"==typeof a.init&&a.init(t),t}(a=t.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},a.disable=function(){a.enable("")},a.enable=function(e){a.save(e),a.names=[],a.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),i=t.length,r=0;r<i;r++)t[r]&&("-"===(e=t[r].replace(/\*/g,".*?"))[0]?a.skips.push(RegExp("^"+e.substr(1)+"$")):a.names.push(RegExp("^"+e+"$")))},a.enabled=function(e){var t,i;for(t=0,i=a.skips.length;t<i;t++)if(a.skips[t].test(e))return!1;for(t=0,i=a.names.length;t<i;t++)if(a.names[t].test(e))return!0;return!1},a.humanize=e.r(667769),a.names=[],a.skips=[],a.formatters={}},322516,(e,t,a)=>{var i=e.i(247167);function r(){var e;try{e=a.storage.debug}catch(e){}return!e&&void 0!==i.default&&"env"in i.default&&(e=i.default.env.DEBUG),e}(a=t.exports=e.r(135778)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+a.humanize(this.diff),t){var i="color: "+this.color;e.splice(1,0,i,"color: inherit");var r=0,s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(s=r))}),e.splice(s,0,i)}},a.save=function(e){try{null==e?a.storage.removeItem("debug"):a.storage.debug=e}catch(e){}},a.load=r,a.useColors=function(){return"u">typeof window&&!!window.process&&"renderer"===window.process.type||"u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage="u">typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},a.enable(r())},943054,(e,t,a)=>{var i=e.r(322516)("jsonp");t.exports=function(e,t,a){"function"==typeof t&&(a=t,t={}),t||(t={});var n,o,l=t.prefix||"__jp",c=t.name||l+r++,u=t.param||"callback",d=null!=t.timeout?t.timeout:6e4,h=encodeURIComponent,m=document.getElementsByTagName("script")[0]||document.head;function _(){n.parentNode&&n.parentNode.removeChild(n),window[c]=s,o&&clearTimeout(o)}return d&&(o=setTimeout(function(){_(),a&&a(Error("Timeout"))}
123,d)),window[c]=function(e){i("jsonp got",e),_(),a&&a(null,e)},e+=(~e.indexOf("?")?"&":"?")+u+"="+h(c),i('jsonp req "%s"',e=e.replace("?&","?")),(n=document.createElement("script")).src=e,m.parentNode.insertBefore(n,m),function(){window[c]&&_()}};var r=0;function s(){}},397248,e=>{e.v({"blink-animation":"ContenidoModalCompartir-module-scss-module__cMgF4q__blink-animation",shareOptions:"ContenidoModalCompartir-module-scss-module__cMgF4q__shareOptions",sharebutton:"ContenidoModalCompartir-module-scss-module__cMgF4q__sharebutton"})},176498,e=>{"use strict";e.i(247167);var t,a=e.i(843476),i=e.i(441913),r=e.i(271645),s=e.i(10655),n=e.i(978877);function o(){return(o=Object.assign.bind()).apply(null,arguments)}let l=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 22"},e),t||(t=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-2.842 4.815a4 4 0 1 0-1.008-1.727L6.842 8.185a4 4 0 1 0 0 5.63l5.309 3.093A4.004 4.004 0 0 0 16 22a4 4 0 1 0-2.839-6.818l-5.31-3.095a4 4 0 0 0 0-2.175zM5.7 9.945a1 1 0 0 0 .055.096c.156.285.245.611.245.959a2 2 0 0 1-.3 1.055 2 2 0 1 1 0-2.109M14 18c0-.325.078-.632.215-.904a1 1 0 0 0 .123-.208A2 2 0 1 1 14 18",clipRule:"evenodd"})))};var c=e.i(618566),u=e.i(330580),d=e.i(539912),h=e.i(343794),m=e.i(943054),_=Object.defineProperty,p=Object.defineProperties,f=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,v=(e,t,a)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,A=(e,t)=>{for(var a in t||(t={}))b.call(t,a)&&v(e,a,t[a]);if(g)for(var a of g(t))E.call(t,a)&&v(e,a,t[a]);return e},T=(e,t)=>
123{var a={};for(var i in e)b.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&g)for(var i of g(e))0>t.indexOf(i)&&E.call(e,i)&&(a[i]=e[i]);return a};function C(e){var{bgStyle:t={},borderRadius:i=0,children:s,color:n,iconFillColor:o="white",round:l=!1,size:c=64}=e,u=T(e,["bgStyle","borderRadius","children","color","iconFillColor","round","size"]);let d=r.Children.map(s,e=>(0,r.isValidElement)(e)&&void 0===e.props.fill?(0,r.cloneElement)(e,{fill:o}):e);return(0,a.jsxs)("svg",p(A({viewBox:"0 0 64 64",width:c,height:c},u),f({children:[l?(0,a.jsx)("circle",{cx:"32",cy:"32",r:"32",fill:n,style:t}):(0,a.jsx)("rect",{width:"64",height:"64",rx:i,ry:i,fill:n,style:t}),d]})))}class y extends Error{constructor(e){super(e),this.name="AssertionError"}}function x(e,t){if(!e)throw new y(t)}function S(e){let t=Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`);return t.length>0?`?${t.join("&")}`:""}let N={bluesky:"Share on Bluesky",email:"Share by email",facebook:"Share on Facebook",facebookmessenger:"Share in Messenger",gab:"Share on Gab",hatena:"Share on Hatena",instapaper:"Save to Instapaper",line:"Share on Line",linkedin:"Share on LinkedIn",livejournal:"Share on LiveJournal",mailru:"Share on Mail.ru",ok:"Share on OK",pinterest:"Pin on Pinterest",pocket:"Save to Pocket",reddit:"Share on Reddit",telegram:"Share on Telegram",threads:"Share on Threads",tumblr:"Share on Tumblr",twitter:"Share on X",viber:"Share on Viber",vk:"Share on VK",weibo:"Share on Weibo",whatsapp:"Share on WhatsApp",workplace:"Share on Workplace"};function w(e){let t,i;var{"aria-label":s,"aria-labelledby":n,beforeOnClick:o,children:l,className:c,disabled:u,disabledStyle:d={opacity:.6},forwardedRef:m,htmlTitle:_,networkLink:g,networkName:b,onClick:E,onShareWindowClose:v,openShareDialogOnClick:C=!0,opts:y,resetButtonStyle:x=!0,style:S,title:w,type:I="button",url:k,windowHeight:L=400,windowPosition:O="windowCenter",windowWidth:P=550}=e,D=T(e,["aria-label","aria-labelledby","beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","htmlTitle","networkLink","networkName","onClick","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","title","type","url","windowHeight","windowPosition","windowWidth"]);let R=function(e){var t;let a=r.Children.toArray(e);if(1!==a.length)return;let[i]=a;if((0,r.isValidElement)(i))return i.props.round?"50%":null!=(t=i.props.borderRadius)?t:0}(l),M=s||n||function e(t){return r.Children.toArray(t).some(t=>"string"==typeof t?t.trim().length>0:"number"==typeof t||!!(0,r.isValidElement)(t)&&e(t.props.children))}(l)?void 0:N[b],j=async e=>{if(u)return;let t=g(k,y);if(e.preventDefault(),o){let e=o();e&&("object"==typeof e||"function"==typeof e)&&"then"in e&&"function"==typeof e.then&&await e}C&&!function(e,t,a){var{height:i,width:r}=t;let s=A({height:i,width:r,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},T(t,["height","width"])),n=window.open(e,"",Object.keys(s).map(e=>`${e}=${s[e]}`).join(", "));if(a){let e=window.setInterval(()=>{try{(null===n||n.closed)&&(window.clearInterval(e),a(n))}catch(e){console.error(e)}},1e3)}}(t,A({height:L,width:P},"windowCenter"===O?{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-P/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-L/2}:{top:(window.screen.height-L)/2,left:(window.screen.width-P)/2}),v);E&&E(e,t)},F=(0,h.default)("react-share__ShareButton",{"react-share__ShareButton--disabled":!!u,disabled:!!u},c),B=x?A(A({backgroundColor:"transparent",border:"none",padding:0,display:"inline-flex",borderRadius:R,outlineOffset:2,font:"inherit",color:"inherit",cursor:"pointer"},S),u&&d):A(A({},S),u&&d);return(0,a.jsx)("button",(t=A({},D),i={"aria-label":s||M,"aria-labelledby":n,className:F,disabled:u,onClick:j,ref:m,style:B,title:_,type:I,children:l},p(t,f(i))))}function I(e,{title:t,separator:a}){return x(e,"bluesky.url"),"https://bsky.app/intent/compose"+S({text:t?t+a+e:e})}function k(e){return(0,a.jsx)(C,p(A({color:"#7f7f7f"},e),f({children:(0,a.jsx)("path",{d:"M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z"})})))}function L(e,{subject:t,body:a,separator:i}){return"mailto:"+S({subject:t,body:a?a+i+e:e})}(0,r.forwardRef)((e,t)=>{var{separator:i,title:r}=e,s=T(e,["separator","title"]);return(0,a.jsx)(w,p(A({},s),f({forwardedRef:t,networkName:"bluesky",networkLink:I,opts:{title:r,separator:i||" "},windowHeight:460,windowPosition:"windowCenter",windowWidth:660})))}).displayName="BlueskyShareButton";let O=(0,r.forwardRef)((e,t)=>{var{body:i,separator:r,subject:s}=e,n=T(e,["body","separator","subject"]);return(0,a.jsx)(w,p(A({},n),f({forwardedRef:t,networkName:"email",networkLink:L,onClick:(e,t)=>{window.location.href=t},openShareDialogOnClick:!1,opts:{subject:s,body:i,separator:r||" "}}
123)))});function P(e){return(0,a.jsx)(C,p(A({color:"#0866FF"},e),f({children:(0,a.jsx)("path",{d:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"})})))}function D(e,{appId:t,redirectUri:a,to:i}){return"https://www.facebook.com/dialog/send"+S({link:e,redirect_uri:a||e,app_id:t,to:i})}function R(e,{hashtag:t}){return x(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+S({u:e,hashtag:t})}O.displayName="EmailShareButton",(0,r.forwardRef)((e,t)=>{var{appId:i,redirectUri:r,to:s}=e,n=T(e,["appId","redirectUri","to"]);return(0,a.jsx)(w,p(A({},n),f({forwardedRef:t,networkName:"facebookmessenger",networkLink:D,opts:{appId:i,redirectUri:r,to:s},windowHeight:820,windowWidth:1e3})))}).displayName="FacebookMessengerShareButton";let M=(0,r.forwardRef)((e,t)=>{var{hashtag:i}=e,r=T(e,["hashtag"]);return(0,a.jsx)(w,p(A({},r),f({forwardedRef:t,networkName:"facebook",networkLink:R,opts:{hashtag:i},windowHeight:400,windowWidth:550})))});function j(e){let t;var{children:i=e=>e,className:s,getCount:n,url:o}=e,l=T(e,["children","className","getCount","url"]);let c=(t=(0,r.useRef)(!1),(0,r.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),(0,r.useCallback)(()=>t.current,[])),[u,d]=(0,r.useState)(void 0),[m,_]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{_(!0),n(o,e=>{c()&&(d(e),_(!1))})},[o]),(0,a.jsx)("span",p(A({className:(0,h.default)("react-share__ShareCount",s)},l),f({children:!m&&void 0!==u&&i(u)})))}function F(e){let t=t=>(0,a.jsx)(j,A({getCount:e},t));return t.displayName=`ShareCount(${e.name})`,t}function B(e,{title:t}){return x(e,"hatena.url"),`http://b.hatena.ne.jp/add?mode=confirm&url=${e}&title=${t}`}function U(e,{title:t,description:a}){return x(e,"instapaper.url"),"http://www.instapaper.com/hello2"+S({url:e,title:t,description:a})}function G(e,{title:t}){return x(e,"line.url"),"https://social-plugins.line.me/lineit/share"+S({url:e,text:t})}function H(e){return(0,a.jsx)(C,p(A({color:"#0077B5"},e),f({children:(0,a.jsx)("path",{d:"M20.4,44h5.4V26.6h-5.4V44z M23.1,18c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1 c1.7,0,3.1-1.4,3.1-3.1C26.2,19.4,24.8,18,23.1,18z M39.5,26.2c-2.6,0-4.4,1.4-5.1,2.8h-0.1v-2.4h-5.2V44h5.4v-8.6 c0-2.3,0.4-4.5,3.2-4.5c2.8,0,2.8,2.6,2.8,4.6V44H46v-9.5C46,29.8,45,26.2,39.5,26.2z"})})))}function W(e,{title:t,summary:a,source:i}){return x(e,"linkedin.url"),"https://linkedin.com/shareArticle"+S({url:e,mini:"true",title:t,summary:a,source:i})}M.displayName="FacebookShareButton",F(function(e,t){let a=`https://graph.facebook.com/?id=${e}&fields=og_object{engagement}`;(0,m.default)(a,(e,a)=>{t(!e&&a&&a.og_object&&a.og_object.engagement?a.og_object.engagement.count:void 0)})}),(0,r.forwardRef)((e,t)=>{var{title:i}=e,r=T(e,["title"]);return(0,a.jsx)(w,p(A({},r),f({forwardedRef:t,networkName:"hatena",networkLink:B,opts:{title:i},windowHeight:460,windowPosition:"windowCenter",windowWidth:660})))}).displayName="HatenaShareButton",F(function(e,t){(0,m.default)("https://bookmark.hatenaapis.com/count/entry"+S({url:e}),(e,a)=>{t(null!=a?a:void 0)})}),(0,r.forwardRef)((e,t)=>{var{description:i,title:r}=e,s=T(e,["description","title"]);return(0,a.jsx)(w,p(A({},s),f({forwardedRef:t,networkName:"instapaper",networkLink:U,opts:{title:r,description:i},windowHeight:500,windowPosition:"windowCenter",windowWidth:500})))}).displayName="InstapaperShareButton",(0,r.forwardRef)((e,t)=>{var{title:i}=e,r=T(e,["title"]);return(0,a.jsx)(w,p(A({},r),f({forwardedRef:t,networkName:"line",networkLink:G,opts:{title:i},windowHeight:500,windowWidth:500})))}).displayName="LineShareButton";let V=(0,r.forwardRef)((e,t)=>{var{source:i,summary:r,title:s}=e,n=T(e,["source","summary","title"]);return(0,a.jsx)(w,p(A({},n),f({forwardedRef:t,networkName:"linkedin",networkLink:W,opts:{title:s,summary:r,source:i},windowHeight:600,windowWidth:750})))});function q(e){return(0,a.jsx)(C,p(A({color:"#00B0EA"},e),f({children:(0,a.jsx)("path",{d:"M18.3407821,28.1764706 L21.9441341,31.789916 L33.0055865,42.882353 C33.0055865,42.882353 33.0893855,42.9663866 33.0893855,42.9663866 L46.6648046,47 C46.6648046,47 46.6648046,47 46.7486034,47 C46.8324022,47 46.8324022,47 46.9162012,46.9159664 C47,46.8319327 47,46.8319327 47,46.7478991 L42.9776536,33.1344537 C42.9776536,33.1344537 42.9776536,33.1344537 42.8938548,33.0504202 L31.1620111,21.3697479 L31.1620111,21.3697479 L28.1452514,18.2605042 C27.3072626,17.4201681 26.5530726,17 25.7150838,17 C24.2905028,17 23.0335195,18.3445378 21.5251397,19.8571429 C21.273743,20.1092437 20.9385475,20.4453781 20.6871508,20.697479 C20.3519553,21.0336134 20.1005586,21.2857143 19.849162,21.5378151 C18.3407821,22.9663866 17.0837989,24.2268908 17,25.7394958 C17.0837989,26.4957983 17.5027933,27.3361345 18.3407821,28.1764706 Z M39.9012319,39.6134454 C39.7336341,39.4453781 39.4822374,37.6806724 40.2364275,36.8403362
123C40.9906174,36.0840337 41.6610084,36 42.1638017,36 C42.3313995,36 42.4989973,36 42.5827961,36 L44.8453659,43.5630253 L43.5883828,44.8235295 L36.0464833,42.5546218 C35.9626843,42.2184874 35.8788855,41.2100841 36.8844722,40.2016807 C37.2196676,39.8655463 37.8900587,39.6134454 38.5604498,39.6134454 C39.147042,39.6134454 39.5660364,39.7815126 39.5660364,39.7815126 C39.6498353,39.8655463 39.8174331,39.8655463 39.8174331,39.7815126 C39.9850307,39.7815126 39.9850307,39.697479 39.9012319,39.6134454 Z"})})))}function $(e,{title:t,description:a}){return x(e,"livejournal.url"),"https://www.livejournal.com/update.bml"+S({subject:t,event:a})}function Y(e,{title:t,description:a,imageUrl:i}){return x(e,"mailru.url"),"https://connect.mail.ru/share"+S({url:e,title:t,description:a,image_url:i})}function z(e,{title:t,description:a,image:i}){return x(e,"ok.url"),"https://connect.ok.ru/offer"+S({url:e,title:t,description:a,imageUrl:i})}function K(e){return(0,a.jsx)(C,p(A({color:"#E60023"},e),f({children:(0,a.jsx)("path",{d:"M32,16c-8.8,0-16,7.2-16,16c0,6.6,3.9,12.2,9.6,14.7c0-1.1,0-2.5,0.3-3.7 c0.3-1.3,2.1-8.7,2.1-8.7s-0.5-1-0.5-2.5c0-2.4,1.4-4.1,3.1-4.1c1.5,0,2.2,1.1,2.2,2.4c0,1.5-0.9,3.7-1.4,5.7 c-0.4,1.7,0.9,3.1,2.5,3.1c3,0,5.1-3.9,5.1-8.5c0-3.5-2.4-6.1-6.7-6.1c-4.9,0-7.9,3.6-7.9,7.7c0,1.4,0.4,2.4,1.1,3.1 c0.3,0.3,0.3,0.5,0.2,0.9c-0.1,0.3-0.3,1-0.3,1.3c-0.1,0.4-0.4,0.6-0.8,0.4c-2.2-0.9-3.3-3.4-3.3-6.1c0-4.5,3.8-10,11.4-10 c6.1,0,10.1,4.4,10.1,9.2c0,6.3-3.5,11-8.6,11c-1.7,0-3.4-0.9-3.9-2c0,0-0.9,3.7-1.1,4.4c-0.3,1.2-1,2.5-1.6,3.4 c1.4,0.4,3,0.7,4.5,0.7c8.8,0,16-7.2,16-16C48,23.2,40.8,16,32,16z"})})))}function Q(e,{media:t,description:a,pinId:i}){return i?`https://pinterest.com/pin/${i}/repin/x/`:(x(e,"pinterest.url"),x(t,"pinterest.media"),"https://pinterest.com/pin/create/button/"+S({url:e,media:t,description:a}))}V.displayName="LinkedinShareButton",(0,r.forwardRef)((e,t)=>{var{description:i,title:r}=e,s=T(e,["description","title"]);return(0,a.jsx)(w,p(A({},s),f({forwardedRef:t,networkName:"livejournal",networkLink:$,opts:{title:r,description:i},windowHeight:460,windowWidth:660})))}).displayName="LivejournalShareButton",(0,r.forwardRef)((e,t)=>{var{description:i,imageUrl:r,title:s}=e,n=T(e,["description","imageUrl","title"]);return(0,a.jsx)(w,p(A({},n),f({forwardedRef:t,networkName:"mailru",networkLink:Y,opts:{title:s,description:i,imageUrl:r},windowHeight:460,windowWidth:660})))}).displayName="MailruShareButton",(0,r.forwardRef)((e,t)=>{var{description:i,image:r,title:s}=e,n=T(e,["description","image","title"]);return(0,a.jsx)(w,p(A({},n),f({forwardedRef:t,networkName:"ok",networkLink:z,opts:{title:s,description:i,image:r},windowHeight:480,windowPosition:"screenCenter",windowWidth:588})))}).displayName="OKShareButton",F(function(e,t){window.OK||(window.OK={Share:{count:function(e,t){var a,i;null==(i=(a=window.OK.callbacks)[e])||i.call(a,t)}},callbacks:[]});let a=window.OK.callbacks.length;return window.ODKL={updateCount(e,t){var a,i;let r=""===e?0:parseInt(e.replace("react-share-",""),10);null==(i=(a=window.OK.callbacks)[r])||i.call(a,""===t?void 0:parseInt(t,10))}},window.OK.callbacks.push(t),(0,m.default)("https://connect.ok.ru/dk"+S({"st.cmd":"extLike",uid:`react-share-${a}`,ref:e}))});let X=(0,r.forwardRef)((e,t)=>{var{description:i,media:r,pinId:s}=e,n=T(e,["description","media","pinId"]);return(0,a.jsx)(w,p(A({},n),f({forwardedRef:t,networkName:"pinterest",networkLink:Q,opts:{media:r,description:i,pinId:s},windowHeight:730,windowWidth:1e3})))});function Z(e,{title:t}){return x(e,"pocket.url"),"https://getpocket.com/save"+S({url:e,title:t})}function J(e,{title:t}){return x(e,"reddit.url"),"https://www.reddit.com/submit"+S({url:e,title:t})}function ee(e,{title:t}){return x(e,"gab.url"),"https://gab.com/compose"+S({url:e,text:t})}function et(e,{title:t}){return x(e,"telegram.url"),"https://telegram.me/share/url"+S({url:e,text:t})}function ea(e,{title:t}){return x(e,"threads.url"),"https://threads.net/intent/post"+S({url:e,text:t})}function ei(e,{title:t,caption:a,tags:i,posttype:r}){return x(e,"tumblr.url"),"https://www.tumblr.com/widgets/share/tool"+S({canonicalUrl:e,title:t,caption:a,tags:i,posttype:r})}function er(e,{title:t,via:a,hashtags:i=[],related:r=[]}){return x(e,"x.url"),x(Array.isArray(i),"x.hashtags is not an array"),x(Array.isArray(r),"x.related is not an array"),"https://twitter.com/intent/tweet"+S({url:e,text:t,via:a,hashtags:i.length>0?i.join(","):void 0,related:r.length>0?r.join(","):void 0})}X.displayName="PinterestShareButton",F(function(e,t){(0,m.default)("https://api.pinterest.com/v1/urls/count.json"+S({url:e}),(e,a)=>{t(a?a.count:void 0)})}),(0,r.forwardRef)((e,t)=>{var{title:i}=e,r=T(e,["title"]);return(0,a.jsx)(w,p(A({},r),f({forwardedRef:t,networkName:"pocket",networkLink:Z,opts:{title:i},windowHeight:500,windowWidth:500})))}).displayName="PocketShareButton",(0,r.forwardRef)((e,t)=>{var{title:i}=e,r=T(e,["title"]);return(0,a.jsx)(w,p(A({},r),f({forwardedRef:t,networkName:"reddit",networkLink:J,opts:{title:i},windowHeight:460,windowPosition:"windowCenter",windowWidth:660})))}).displayName="RedditShareButton",(0,r.forwardRef)((e,t)=>{var{title:i}=e,r=T(e,["title"]);return(0,a.jsx)(w,p(A({},r),f({forwardedRef:t,networkName:"gab",networkLink:ee,opts:{title:i},windowHeight:640,windowPosition:"windowCenter",windowWidth:660})))}).displayName="GabShareButton",F(function(e,t){let a=`https://www.reddit.com/api/info.json?limit=1&url=${e}`;(0,m.default)(a,{param:"jsonp"},(e,a)=>{t(!e&&a&&a.data&&a.data.children.length>0&&a.data.children[0].data.score?a.data.children[0].data.score:void 0)})}),(0,r.forwardRef)((e,t)=>{var{title:i}=e,r=T(e,["title"]);return(0,a.jsx)(w,p(A({},r),f({forwardedRef:t,networkName:"telegram",networkLink:et,opts:{title:i},windowHeight:400,windowWidth:550})))}).displayName="TelegramShareButton",(0,r.forwardRef)((e,t)=>{var{hashtags:i,related:r,title:s,via:n}=e,o=T(e,["hashtags","related","title","via"]);return(0,a.jsx)(w,p(A({},o),f({forwardedRef:t,networkName:"threads",networkLink:ea,opts:{title:s},windowHeight:600,windowWidth:550})))}).displayName="ThreadsShareButton",(0,r.forwardRef)((e,t)=>{var{caption:i,posttype:r,tags:s,title:n}=e,o=T(e,["caption","posttype","tags","title"]);return(0,a.jsx)(w,p(A({},o),f({forwardedRef:t,networkName:"tumblr",networkLink:ei,opts:{title:n,tags:(s||[]).join(","),caption:i,posttype:r||"link"},windowHeight:460,windowWidth:660})))}).displayName="TumblrShareButton",F(function(e,t){return(0,m.default)("https://api.tumblr.com/v2/share/stats"+S({url:e}),(e,a)=>{t(!e&&a&&a.response?a.response.note_count:void 0)})});let es=(0,r.forwardRef)((e,t)=>{var{hashtags:i,related:r,title:s,via:n}=e,o=T(e,["hashtags","related","title","via"]);return(0,a.jsx)(w,p(A({},o),f({forwardedRef:t,networkName:"twitter",networkLink:er,opts:{hashtags:i,title:s,via:n,related:r},windowHeight:400,windowWidth:550})))});es.displayName="XShareButton";let en=(0,r.forwardRef)((e,t)=>(0,a.jsx)(es,p(A({},e),f({ref:t}))));function eo(e,{title:t,separator:a}){return x(e,"viber.url"),"viber://forward"+S({text:t?t+a+e:e})}function el(e,{title:t,image:a,noParse:i,noVkLinks:r}){return x(e,"vk.url"),"https://vk.com/share.php"+S({url:e,title:t,image:a,noparse:+!!i,no_vk_links:+!!r})}function ec(e,{title:t,image:a}){return x(e,"weibo.url"),"http://service.weibo.com/share/share.php"+S({url:e,title:t,pic:a})}function eu(e){return(0,a.jsx)(C,p(A({color:"#25D366"},e),f({children:(0,a.jsx)("path",{d:"m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,
1230.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915"})})))}function ed(e,{title:t,separator:a}){return x(e,"whatsapp.url"),"https://api.whatsapp.com/send"+S({text:t?t+a+e:e})}en.displayName="TwitterShareButton",(0,r.forwardRef)((e,t)=>{var{separator:i,title:r}=e,s=T(e,["separator","title"]);return(0,a.jsx)(w,p(A({},s),f({forwardedRef:t,networkName:"viber",networkLink:eo,opts:{title:r,separator:i||" "},windowHeight:460,windowWidth:660})))}).displayName="ViberShareButton",(0,r.forwardRef)((e,t)=>{var{image:i,noParse:r,noVkLinks:s,title:n}=e,o=T(e,["image","noParse","noVkLinks","title"]);return(0,a.jsx)(w,p(A({},o),f({forwardedRef:t,networkName:"vk",networkLink:el,opts:{title:n,image:i,noParse:r,noVkLinks:s},windowHeight:460,windowWidth:660})))}).displayName="VKShareButton",F(function(e,t){window.VK||(window.VK={}),window.VK.Share={count:(e,t)=>{var a,i;return null==(i=null==(a=window.VK.callbacks)?void 0:a[e])?void 0:i.call(a,t)}},window.VK.callbacks=[];let a=window.VK.callbacks.length;return window.VK.callbacks.push(t),(0,m.default)("https://vk.com/share.php"+S({act:"count",index:a,url:e}))}),(0,r.forwardRef)((e,t)=>{var{image:i,title:r}=e,s=T(e,["image","title"]);return(0,a.jsx)(w,p(A({},s),f({forwardedRef:t,networkName:"weibo",networkLink:ec,opts:{title:r,image:i},windowHeight:550,windowPosition:"screenCenter",windowWidth:660})))}).displayName="WeiboShareButton";let eh=(0,r.forwardRef)((e,t)=>{var{separator:i,title:r}=e,s=T(e,["separator","title"]);return(0,a.jsx)(w,p(A({},s),f({forwardedRef:t,networkName:"whatsapp",networkLink:ed,opts:{title:r,separator:i||" "},windowHeight:400,windowWidth:550})))});function em(e,{quote:t,hashtag:a}){return x(e,"workplace.url"),"https://work.facebook.com/sharer.php"+S({u:e,quote:t,hashtag:a})}function e_(e){return(0,a.jsx)(C,p(A({color:"#000000"},e),f({children:(0,a.jsx)("path",{d:"M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z"})})))}eh.displayName="WhatsappShareButton",(0,r.forwardRef)((e,t)=>{var{hashtag:i,quote:r}=e,s=T(e,["hashtag","quote"]);return(0,a.jsx)(w,p(A({},s),f({forwardedRef:t,networkName:"workplace",networkLink:em,opts:{quote:r,hashtag:i},windowHeight:400,windowWidth:550})))}).displayName="WorkplaceShareButton";var ep=e.i(88205),ef=e.i(397248),eg=e.i(137963),eb=e.i(208549),eE=e.i(822596),ev=e.i(936540);let eA={size:32,round:!0};function eT({dictionary:e,titulo:t,text:i,url:o,imagen:u,handleAction:d,libro:h,defaultDict:m}){let _=(0,c.usePathname)(),[p,f]=(0,r.useState)(!1),{pageData:g}=(0,n.usePageData)(),{t:b}=(0,eE.getDictionary)(e),E=[];h?.autores?.map(e=>{E.push(e.nombre)});let v=e=>{(0,s.fichaLibroShareEvent)({tipoPagina:(0,s.convertPageType)(g.tipoPagina),urlPagina:_,redSocial:e,libro:h?.titulo,autor:E,tematica:h?.tematicaPrincipal?.nombre,editorial:h?.nombreEditorial})},A="";return(0,eg.promiseCheckImageWithKeyExists)("d_1200_1200",u).then(e=>{A=e?(0,eg.getThumbImageSrc)(u.thumbs.d_1200_1200):""}),(0,a.jsxs)("div",{className:"ContenidoModalCompartir",children:[(0,a.jsx)(eb.default,{defaultDict:m,closeAction:()=>d(!1),children:(0,a.jsxs)("div",{className:ep.default.modal__headerWithIcon,children:[(0,a.jsx)("span",{className:ep.default.modal__headerWithIcon__icon,children:(0,a.jsx)(l,{})}),(0,a.jsx)("p",{className:ep.default.modal__headerWithIcon__text,children:b("compartir")})]})}),(0,a.jsxs)("div",{className:ef.default.shareOptions,children:[(0,a.jsx)("div",{className:ef.default.sharebutton,onClick:()=>v("facebook"),children:(0,a.jsxs)(M,{url:o,className:ef.default.sharebutton,children:[(0,a.jsx)(P,{...eA}),(0,a.jsxs)("p",{children:[b("compartirEn")," Facebook"]})]})}),(0,a.jsx)("div",{className:ef.default.sharebutton,onClick:()=>v("twitter"),children:(0,a.jsxs)(en,{url:o,title:t,via:"Planetadelibros",className:ef.default.sharebutton,children:[(0,a.jsx)(e_,{...eA}),(0,a.jsxs)("p",{children:[b("compartirEn")," Twitter"]})]})}),A&&(0,a.jsx)("div",{className:ef.default.sharebutton,onClick:()=>v("pinterest"),children:(0,a.jsxs)(X,{url:o,description:t,media:A,className:ef.default.sharebutton,children:[(0,a.jsx)(K,{...eA}),(0,a.jsxs)("p",{children:[b("compartirEn")," Pinterest"]})]})}),(0,a.jsx)("div",{className:ef.default.sharebutton,onClick:()=>v("linkedin"),children:(0,a.jsxs)(V,{url:o,title:t,summary:i,source:"Planetadelibros",className:ef.default.sharebutton,children:[(0,a.jsx)(H,{...eA}),(0,a.jsxs)("p",{children:[b("compartirEn")," LinkedIn"]})]})}),(0,a.jsx)("div",{className:ef.default.sharebutton,onClick:()=>v("whatsapp"),children:(0,a.jsxs)(eh,{url:o,title:t,className:ef.default.sharebutton,children:[(0,a.jsx)(eu,{...eA}),(0,a.jsxs)("p",{children:[b("compartirPor")," WhatsApp"]})]})}),(0,a.jsx)("div",{className:ef.default.sharebutton,onClick:()=>v("email"),children:(0,a.jsxs)(O,{url:o,subject:`${t} - Planetadelibros`,title:t,className:ef.default.sharebutton,children:[(0,a.jsx)(k,{...eA}),(0,a.jsxs)("p",{children:[b("compartirPor")," mail"]})]})}),p?(0,a.jsx)("div",{className:ef.default.sharebutton,onClick:()=>
123f(!1),children:(0,a.jsx)("p",{children:b("urlCopiada")})}):(0,a.jsx)(ev.default,{type:"link",onClick:async()=>{try{await navigator.clipboard.writeText(o),f(!0),setTimeout(()=>f(!1),2e3)}catch(e){console.error("Error copy clipboard:",e)}},children:(0,a.jsxs)("div",{className:ef.default.sharebutton,children:[(0,a.jsx)(q,{...eA}),(0,a.jsx)("p",{children:b("copiarUrl")})]})})]})]})}e.s(["default",0,function({dictionary:e,titulo:t="",text:o="",imagen:h,libro:m,compartir:_="Compartir",defaultDict:p}){let[f,g]=(0,r.useState)(!1),{pageData:b}=(0,n.usePageData)(),{refModal:E,openModal:v,closeModal:A,isOpen:T}=(0,u.default)(),C=(0,c.usePathname)(),y="https://www.planetadelibros.com.mx"+C;(0,r.useEffect)(()=>{"canShare"in navigator&&g(!0)},[]);let x={title:t,text:o?.replace(/<[^>]*>/g,""),url:y},S=async()=>{if(navigator.share)try{await navigator.share(x)}catch(e){}},N=[];return(m?.autores?.map(e=>{N.push(e.nombre)}),f)?(0,a.jsxs)("button",{className:`${i.default.buttonAction} ${i.default.buttonAction__compartirLibro}`,onClick:async()=>{await S(),(0,s.fichaLibroShareEvent)({tipoPagina:(0,s.convertPageType)(b.tipoPagina),urlPagina:C,redSocial:"native",libro:m.titulo,autor:N,tematica:m?.tematicaPrincipal?.nombre,editorial:m.nombreEditorial})},children:[(0,a.jsx)("span",{className:i.default.buttonAction__icon,children:(0,a.jsx)(l,{})}),(0,a.jsx)("span",{className:`${i.default.buttonAction__text}`,children:_})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{className:`${i.default.buttonAction} ${i.default.buttonAction__compartirLibro}`,onClick:()=>v(),children:[(0,a.jsx)("span",{className:i.default.buttonAction__icon,children:(0,a.jsx)(l,{})}),(0,a.jsx)("span",{className:`${i.default.buttonAction__text}`,children:_})]}),(0,a.jsx)(d.Modal,{isOpen:T,ref:E,handleClose:A,closeOutsideClose:!0,id:`shareButton_${m.id}`,variant:"auto-width",children:(0,a.jsx)(eT,{defaultDict:p,dictionary:e,titulo:t,url:y,imagen:h,handleAction:A,libro:m})})]})}],176498)},82904,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(978877),r=e.i(283231),s=e.i(618566),n=e.i(470041),o=e.i(271645),l=e.i(691630);function c({allContent:e,shortContent:a,className:i,onClick:r,textoLeerMas:u="Leer más",textoLeerMenos:d="Leer menos",hasLeerMas:h=!1}){let m=(0,s.usePathname)(),[_,p]=(0,o.useState)(!0);(0,o.useEffect)(()=>{_||p(!0)},[m]);let f=()=>{r&&r(),p(!_)};return(0,t.jsxs)("div",{className:`${n.default.leerMas} ${i||""}`,children:[(0,t.jsx)("div",{className:n.default.leerMas__innerWrapper,children:_?(0,t.jsx)("article",{dangerouslySetInnerHTML:{__html:a||""}}):(0,t.jsx)("article",{dangerouslySetInnerHTML:{__html:e||""}})}),h&&(0,t.jsx)("div",{className:`${n.default.leerMas__buttonWrapper} ${n.default.visible}`,children:_?(0,t.jsx)(l.default,{type:"button",variant:"down",text:u,onClickEvent:f}):(0,t.jsx)(l.default,{type:"button",variant:"up",text:d,onClickEvent:f})})]})}e.s(["default",0,function({allContent:e,shortContent:n,textoLeerMas:o="Leer más",textoLeerMenos:l="Leer menos",hasLeerMas:u=!1}){let{pageData:d}=(0,i.usePageData)(),h=(0,r.useModuleGAMetadata)(),m=(0,s.usePathname)();return(0,t.jsx)(c,{allContent:e,shortContent:n,onClick:()=>(0,a.contentClickEvent)({tipoPagina:(0,a.convertPageType)(d.tipoPagina),urlPagina:m,nombreContenido:"sinopsis read more",tipoContenido:"Otros",nombreSeccionPadre:h?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"textlink"}),textoLeerMas:o,textoLeerMenos:l,hasLeerMas:u})}],82904)},278213,e=>{"use strict";var t=e.i(247167),a=e.i(843476),i=e.i(271645),r=e.i(618566),s=e.i(783328),n=e.i(496044);e.s(["default",0,function({btnText:o,fragmentosImagen:l,defaultOpen:c=!1,urlFichaLibro:u,urlFragmentoLibro:d}){let h=(0,r.useRouter)(),m=(0,i.useRef)(null),[_,p]=(0,i.useTransition)(),[f,g]=(0,i.useState)(!1);(0,i.useEffect)(()=>(p(()=>{let a=t.default.env.IMAGE_HOST||"https://pdlibrosmex.cdnstatics2.com",i=l.map(e=>({src:encodeURI(a+e.url),alt:e.nombre,width:e.width,height:e.height})),r=new s.default({dataSource:i,pswpModule:()=>e.A(284163),mainClass:"disable-download-image",paddingFn:e=>({top:e.x<600?20:80,bottom:e.x<600?20:80,left:e.x<600?20:80,right:e.x<600?20:80})});r.init(),m.current=r,g(!0),r.on("close",()=>{h.push(u)})}),()=>{m.current&&(m.current.destroy(),m.current=null,g(!1))}),[]),(0,i.useEffect)(()=>{c&&f&&b()},[c,f]);let b=()=>{m.current&&(m.current.loadAndOpen(0),h.replace(d))};return(0,a.jsx)("div",{className:"BotonLeerFragmentoConModal",children:(0,a.jsx)(n.default,{variant:"primary",path:d,onClick:e=>{e.preventDefault(),b()},disabled:_||!f,children:o})})}])},766982,e=>{"use strict";var t=e.i(843476),a=e.i(283231),i=e.i(10655),r=e.i(618566),s=e.i(522016);e.s(["default",0,function({pageData:e,url:n,className:o,children:l}){let c=(0,a.useModuleGAMetadata)(),u=(0,r.usePathname)();return(0,t.jsx)(s.default,{prefetch:!1,href:`${n}`,className:o,onClick:()=>{(0,i.contentClickEvent)({tipoPagina:(0,i.convertPageType)(e?.tipoPagina),urlPagina:u,nombreContenido:"Descarga",tipoContenido:"Otros",nombreSeccionPadre:c?.metadatosSeccion?.nombre,tipoClick:"download",tipoCta:"textlink"})},target:"_blank",rel:"noreferrer",children:l})}])},997783,e=>{e.v({"blink-animation":"BotonDescarga-module-scss-module__vl3qZG__blink-animation",botonDescarga:"BotonDescarga-module-scss-module__vl3qZG__botonDescarga",btnText:"BotonDescarga-module-scss-module__vl3qZG__btnText",icon:"BotonDescarga-module-scss-module__vl3qZG__icon"})},666952,e=>{"use strict";var t,a=e.i(843476),i=e.i(997783),r=e.i(271645),s=e.i(496044),n=e.i(389649);function o(){return(o=Object.assign.bind()).apply(null,arguments)}let l=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 14"},e),t||(t=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.781.504A6.1 6.1 0 0 1 8.42.998c.83.358 1.565.894 2.152 1.569.473.544.84 1.168 1.081 1.838H12c.85 0 1.678.263 2.364.752a3.9 3.9 0 0 1 1.45 1.969c.257.79.249 1.639-.023 2.424a3.9 3.9 0 0 1-1.488 1.941.677.677 0 0 1-.928-.157.64.64 0 0 1 .161-.905c.464-.318.811-.772.992-1.295.182-.523.187-1.09.016-1.616a2.6 2.6 0 0 0-.967-1.312A2.7 2.7 0 0 0 12 5.705h-.84c-.304 0-.57-.201-.645-.489a4.5 4.5 0 0 0-.96-1.81 4.66 4.66 0 0 0-1.674-1.22 4.77 4.77 0 0 0-4.07.144 4.6 4.6 0 0 0-1.58 1.333 4.5 4.5 0 0 0-.824 1.873 4.44 4.44 0 0 0 .098 2.035c.19.662.531 1.274.999 1.79a.64.64 0 0 1-.058.916.68.68 0 0 1-.94-.056 5.8 5.8 0 0 1-1.285-2.3 5.7 5.7 0 0 1-.125-2.617 5.8 5.8 0 0 1 1.06-2.407 5.96 5.96 0 0 1 2.03-1.715A6.1 6.1 0 0 1 5.781.504m2.22 5.85c.369 0 .667.291.667.65v4.278l1.528-1.49a.68.68 0 0 1 .942 0c.26.254.26.666 0 .92L8.473 13.31a.675.675 0 0 1-.942 0L4.865 10.71a.64.64 0 0 1 0-.918.68.68 0 0 1 .943 0l1.527 1.49v-4.28c0-.358.299-.649.667-.649",clipRule:"evenodd"})))};e.s(["default",0,function({titulo:e,url:t}){let[o,c]=(0,r.useState)(!1),u=async a=>{a.preventDefault(),await c(!0),await fetch(t).then(e=>e.blob()).then(async t=>{let a=window.URL.createObjectURL(t),i=document.createElement("a");i.href=a,i.download=`${e}.pdf`,document.body.appendChild(i),i.click(),i.remove(),await c(!1)})};return(0,a.jsxs)(s.default,{onClick:u,variant:"secondary",path:t,className:i.default.botonDescarga,disabled:o,children:[o?(0,a.jsx)(n.default,{}):(0,a.jsx)(l,{className:i.default.icon}),(0,a.jsx)("span",{className:i.default.btnText,children:e})]})}],666952)},735779,e=>{"use strict";
123var t=e.i(843476),a=e.i(936540),i=e.i(822596),r=e.i(330580),s=e.i(539912),n=e.i(698437);e.s(["default",0,function({listas:e,dictionaryLibro:o,defaultDict:l}){let{t:c}=(0,i.getDictionary)(o),{refModal:u,openModal:d,closeModal:h,isOpen:m}=(0,r.default)(),_=e.length;return(0,t.jsxs)("div",{className:"ButtonAddList",children:[_<10&&(0,t.jsxs)(a.default,{onClick:d,type:"button",children:["+ ",c("crearNuevaLista")]}),(0,t.jsx)(s.Modal,{isOpen:m,ref:u,handleClose:h,id:"crear_nueva_lista",variant:"auto-width",children:(0,t.jsx)(n.default,{defaultDict:l,closeModal:h,dictionary:o})})]})}])},469405,e=>{e.v({"blink-animation":"LibroEditable-module-scss-module__Gs7crW__blink-animation",iconDelete:"LibroEditable-module-scss-module__Gs7crW__iconDelete",libro:"LibroEditable-module-scss-module__Gs7crW__libro",libroEditable:"LibroEditable-module-scss-module__Gs7crW__libroEditable",libro__editbutton:"LibroEditable-module-scss-module__Gs7crW__libro__editbutton",libro__info:"LibroEditable-module-scss-module__Gs7crW__libro__info",libro__inner:"LibroEditable-module-scss-module__Gs7crW__libro__inner",libro__link:"LibroEditable-module-scss-module__Gs7crW__libro__link",libro__listas:"LibroEditable-module-scss-module__Gs7crW__libro__listas",libro__listas__item:"LibroEditable-module-scss-module__Gs7crW__libro__listas__item",libro__listas__itemWrapper:"LibroEditable-module-scss-module__Gs7crW__libro__listas__itemWrapper",libro__portada:"LibroEditable-module-scss-module__Gs7crW__libro__portada",libro__portadaWrapper:"LibroEditable-module-scss-module__Gs7crW__libro__portadaWrapper",libro__titulo:"LibroEditable-module-scss-module__Gs7crW__libro__titulo",libro__tituloContainer:"LibroEditable-module-scss-module__Gs7crW__libro__tituloContainer",shrink0:"LibroEditable-module-scss-module__Gs7crW__shrink0"})},92272,e=>{"use strict";var t,a=e.i(843476),i=e.i(469405),r=e.i(271645);function s(){return(s=Object.assign.bind()).apply(null,arguments)}let n=function(e){return r.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.121 20a1 1 0 0 1 1-1h9a1 1 0 1 1 0 2h-9a1 1 0 0 1-1-1M18 3.879c-.297 0-.583.118-.793.328L4.903 16.511l-.529 2.115 2.115-.529L18.793 5.793A1.123 1.123 0 0 0 18 3.879m-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-12.5 12.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.213l1-4a1 1 0 0 1 .263-.464z",clipRule:"evenodd"})))};var o=e.i(330580),l=e.i(191096),c=e.i(539912);e.s(["default",0,function({lista:e,libro:t,dictionaryLibro:r,translationsObj:s,defaultDict:u}){let{refModal:d,openModal:h,closeModal:m,isOpen:_}=(0,o.default)(),p=e?.map(e=>({...e,contieneElLibro:!!t.userWebListas?.find(t=>t.id===e.id)})),f=async()=>{h()};return(0,a.jsxs)("div",{className:"ButtonEditarLibro",children:[(0,a.jsx)("button",{className:i.default.libro__editbutton,onClick:f,children:(0,a.jsx)(n,{})}),(0,a.jsx)(c.Modal,{isOpen:_,ref:d,handleClose:m,id:`listas_libro_${t.id}`,variant:"no-padding",children:(0,a.jsx)(l.default,{defaultDict:u,dictionary:r,lista:p,libro:t,closeParentModal:m,estado:!0,translationsObj:s})})]})}],92272)},704891,e=>{e.v({"blink-animation":"DeleteIcon-module-scss-module__uBBCZG__blink-animation",buttonIconDelete:"DeleteIcon-module-scss-module__uBBCZG__buttonIconDelete"})},667790,e=>{"use strict";var t,a=e.i(271645);function i(){return(i=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"},e),t||(t=a.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M.877.877a1.286 1.286 0 0 1 1.818 0L9.5 7.682 16.305.877a1.286 1.286 0 0 1 1.818 1.818L11.318 9.5l6.805 6.805a1.286 1.286 0 0 1-1.818 1.818L9.5 11.318l-6.805 6.805a1.286 1.286 0 1 1-1.818-1.818L7.682 9.5.877 2.695a1.286 1.286 0 0 1 0-1.818",clipRule:"evenodd"})))}])},839701,e=>{"use strict";var t=e.i(843476),a=e.i(469405),i=e.i(271645),r=e.i(95187);let s=(0,r.createServerReference)("4034701ffce99db466f31750ec536819d6987d7bb1",r.callServer,void 0,r.findSourceMapURL,"removeFavoriteBook");var n=e.i(120443);let o=(0,r.createServerReference)("408e90f9ccd941029ecf5c8ba0699e930beae4460a",r.callServer,void 0,r.findSourceMapURL,"revalidateTagLibroListasById");var l=e.i(704891),c=e.i(667790),u=e.i(970496);function d({onClick:e,className:a}){let i=(0,u.classNames)(l.default.buttonIconDelete,a||"");return(0,t.jsx)("button",{className:i,...e&&{onClick:e},children:(0,t.jsx)(c.default,{})})}var h=e.i(389649);e.s(["default",0,function({currentList:e,libro:r}){let[l,c]=(0,i.useTransition)(),u=async()=>{c(async()=>{e?(await s({idLista:e.id,idsLibros:[r.id]}),await o(r.id)):await (0,n.removeFavoriteBookFromAllList)(r.id,r?.userWebListas?.map(e=>e.id))})};return(0,t.jsx)("div",{className:a.default.iconDelete,children:l?(0,t.jsx)(h.default,{}):(0,t.jsx)(d,{onClick:u})})}],839701)},684426,e=>{e.v({"blink-animation":"paginaUsuario-module-scss-module___ljWhW__blink-animation",editBtn:"paginaUsuario-module-scss-module___ljWhW__editBtn",listadoResultados__autores:"paginaUsuario-module-scss-module___ljWhW__listadoResultados__autores",listadoResultados__headerInfo:"paginaUsuario-module-scss-module___ljWhW__listadoResultados__headerInfo",listadoResultados__libros:"paginaUsuario-module-scss-module___ljWhW__listadoResultados__libros",paginaUsuario:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario",paginaUsuario__acciones:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__acciones",paginaUsuario__cabecera:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__cabecera",paginaUsuario__cabecera__actionBottons:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__cabecera__actionBottons",paginaUsuario__cabecera__titulo:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__cabecera__titulo",paginaUsuario__content:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__content",paginaUsuario__descripcion:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__descripcion",paginaUsuario__headerInfo:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__headerInfo",paginaUsuario__listadoNoResultados:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__listadoNoResultados",paginaUsuario__listadoNoResultados__title:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__listadoNoResultados__title",paginaUsuario__otrasTematicas:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__otrasTematicas",paginaUsuario__sidebarLayout:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__sidebarLayout",paginaUsuario__sidebarLayout__content:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__sidebarLayout__content",paginaUsuario__sidebarLayout__sidebar:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__sidebarLayout__sidebar",paginaUsuario__titleSidebar:"paginaUsuario-module-scss-module___ljWhW__paginaUsuario__titleSidebar"})},235274,e=>{"use strict";
123var t=e.i(843476),a=e.i(684426),i=e.i(822596),r=e.i(618566),s=e.i(936540);e.s(["default",0,function({dictionary:e,id:n}){let{t:o}=(0,i.getDictionary)(e),l=(0,r.useSearchParams)(),c=l.has("isEdit"),u=new URLSearchParams(l),d=(0,r.usePathname)(),{replace:h,refresh:m}=(0,r.useRouter)();return(0,t.jsx)("div",{className:a.default.paginaUsuario__cabecera__actionBottons,children:(0,t.jsx)(s.default,{id:n,type:"button",onClick:()=>{c?u.delete("isEdit"):u.set("isEdit","1"),h(`${d}?${u.toString()}`,{scroll:!1}),m()},className:`${a.default.editBtn}`,children:o(c?"cerrarEditarLista":"editarLista")})})}])},983689,e=>{e.v({acciones:"AccionesLista-module-scss-module__1cu6Jq__acciones","blink-animation":"AccionesLista-module-scss-module__1cu6Jq__blink-animation"})},890217,e=>{"use strict";var t=e.i(843476),a=e.i(983689),i=e.i(936540),r=e.i(822596),s=e.i(330580),n=e.i(539912),o=e.i(698437),l=e.i(132440),c=e.i(95187);let u=(0,c.createServerReference)("6019fad21141bd5ebad84a233d068b97bd05c051d0",c.callServer,void 0,c.findSourceMapURL,"deleteList");var d=e.i(208549),h=e.i(495913);function m({lista:e,dictionary:a,closeModal:i,defaultDict:s}){let{t:n}=(0,r.getDictionary)(a),o=async t=>{await u(e.id,n("eliminarListaRedirect"))};return(0,t.jsxs)("div",{className:"ModalEliminarLista",children:[(0,t.jsx)(d.default,{defaultDict:s,closeAction:e=>{e.stopPropagation(),i()},children:(0,t.jsx)(h.default,{title:n("eliminarLista")})}),(0,t.jsxs)("form",{action:o,id:"eliminarLista",children:[(0,t.jsx)("p",{children:n("eliminarListaDescripcion",{x:e?.titulo})}),(0,t.jsx)(l.default,{defaultTitle:n("eliminarLista"),loadingTitle:n("eliminandoLista")})]})]})}let _=(0,c.createServerReference)("400b187e2f7daf47b2225c2cddec4e73ed620e2de4",c.callServer,void 0,c.findSourceMapURL,"emptyList");function p({lista:e,listas:a,closeModal:i,dictionary:s,idBtnVaciarSubmit:n,defaultDict:o}){let{t:c}=(0,r.getDictionary)(s),u=async t=>{if(e){await _(e.id),await i();return}if(a&&a.length>0){await Promise.all(a.map(e=>_(e.id))),await i();return}await i()};return(0,t.jsxs)("div",{className:"ModalVaciarLista",children:[(0,t.jsx)(d.default,{defaultDict:o,closeAction:e=>{e.stopPropagation(),i()},children:(0,t.jsx)(h.default,{title:c("vaciarLista")})}),(0,t.jsxs)("form",{action:u,id:"vaciarLista",children:[(0,t.jsx)("p",{children:c("vaciarListaDescripcion",{x:e?.titulo??c("tituloMisListasTodosLosLibros")})}),(0,t.jsx)(l.default,{id:n,defaultTitle:c("vaciarLista"),loadingTitle:c("vaciandoLista")})]})]})}e.s(["default",0,function({editing:e,currentList:l,dictionaryLibro:c,idBtnVaciar:u,idBtnVaciarSubmit:d,listas:h,defaultDict:_}){let{t:f}=(0,r.getDictionary)(c),{refModal:g,openModal:b,closeModal:E,isOpen:v}=(0,s.default)(),{refModal:A,openModal:T,closeModal:C,isOpen:y}=(0,s.default)(),{refModal:x,openModal:S,closeModal:N,isOpen:w}=(0,s.default)();return e?(0,t.jsxs)("div",{className:a.default.acciones,children:[!l?.bloqueado&&l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{variant:"secondary",onClick:b,children:f("renombrarNuevaLista")}),(0,t.jsx)(i.default,{variant:"secondary",onClick:T,children:f("eliminarLista")})]}),(0,t.jsx)(i.default,{id:u,variant:"secondary",onClick:S,children:f("vaciarLista")}),(0,t.jsx)(n.Modal,{ref:g,handleClose:E,id:`lista_renombrar_${l?.id}`,variant:"auto-width",isOpen:v,children:(0,t.jsx)(o.default,{defaultDict:_,idLista:l?.id,defaultValue:l?.titulo,closeModal:E,dictionary:c})}),(0,t.jsx)(n.Modal,{isOpen:y,ref:A,handleClose:C,id:`lista_eliminar_${l?.id}`,variant:"auto-width",children:(0,t.jsx)(m,{defaultDict:_,lista:l,dictionary:c,closeModal:C})}),(0,t.jsx)(n.Modal,{isOpen:w,ref:x,handleClose:N,id:`lista_vaciar_${l?.id}`,variant:"auto-width",children:(0,t.jsx)(p,{defaultDict:_,idBtnVaciarSubmit:d,lista:l,listas:h,closeModal:N,dictionary:c})})]}):(0,t.jsx)(t.Fragment,{})}],890217)},983341,e=>{"use strict";var t=e.i(843476),a=e.i(549623),i=e.i(522016),r=e.i(6543),s=e.i(864853),n=e.i(343794),o=e.i(618566);e.s(["default",0,function({searchParams:e,paginacion:l,center:c=!0,onPageChange:u}){let d=(0,o.usePathname)();if(!l||!l.paginas||0===l.paginas.length)return null;let{paginaActual:h,anterior:m,siguiente:_,paginas:p}=l,f=p.length,g=Math.max(1,h-5),b=Math.min(f,h+5);b-g<10&&(g=Math.max(1,b-9));let E=p.filter(e=>e.pagina>=g&&e.pagina<=b),v=t=>{let a=new URLSearchParams(e);a.delete("id"),a.delete("categoria"),a.delete("actualitat"),a.delete("numeroPagina"),a.delete("startsWith"),a.delete("utils"),a.delete("categorias"),a.delete("etiquetas"),a.delete("categoriaPadre"),a.delete("categoriaPadreId"),a.delete("categoriaId"),a.delete("idTematica"),a.delete("subTematicaId"),a.delete("bookFilmRights"),a.delete("slug"),a.delete("clasificaciones"),a.delete("tipo-pagina-api"),a.delete("page"),a.set("page",t.toString());let i=a.toString();return`${d}${""!==i?`?${i}`:""}`};return(0,t.jsx)("div",{className:a.default.pagination,children:(0,t.jsxs)("ul",{className:(0,n.default)(a.default.pagination__list,c?a.default.paginationCenter:""),children:[(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{prefetch:!1,href:m?v(m.pagina):"#","aria-label":"previous-page",className:(0,n.default)(a.default.pagination__link,a.default.pagination__arrow,m?"":a.default.disabled,"fondoItem"),tabIndex:m?0:-1,scroll:!0,
123children:(0,t.jsx)("span",{className:a.default.pagination__iconArrow,children:(0,t.jsx)(r.default,{})})})}),h>6&&(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{prefetch:!1,href:v(1),"aria-label":"page-1",className:(0,n.default)(a.default.pagination__link,"fondoItem"),scroll:!0,children:"1"})}),h>7&&(0,t.jsx)("li",{children:(0,t.jsx)("span",{"aria-label":"ellipsis-1",className:(0,n.default)(a.default.pagination__link,a.default.ellipsis,"fondoItem"),children:"..."})}),E.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{prefetch:!1,href:v(e.pagina),"aria-label":`page-${e.pagina}`,...e.activa&&{"aria-current":"page"},className:(0,n.default)(a.default.pagination__link,e.activa?a.default.active:"","fondoItem"),scroll:!0,children:e.pagina})},e.pagina)),h<f-5&&(0,t.jsx)("li",{children:(0,t.jsx)("span",{"aria-label":"ellipsis-2",className:(0,n.default)(a.default.pagination__link,a.default.ellipsis,"fondoItem"),children:"..."})}),h<f-5&&(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{prefetch:!1,href:v(f),"aria-label":`page-${f}`,className:(0,n.default)(a.default.pagination__link,"fondoItem"),scroll:!0,children:f})}),(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{prefetch:!1,href:_?v(_.pagina):"#","aria-label":"next-page",className:(0,n.default)(a.default.pagination__link,a.default.pagination__arrow,_?"":a.default.disabled,"fondoItem"),tabIndex:_?0:-1,scroll:!0,children:(0,t.jsx)("span",{className:a.default.pagination__iconArrow,children:(0,t.jsx)(s.default,{})})})})]})})}])},108927,e=>{e.v({"blink-animation":"RgpdModal-module-scss-module__TTrKLa__blink-animation",submitWrapper:"RgpdModal-module-scss-module__TTrKLa__submitWrapper",text:"RgpdModal-module-scss-module__TTrKLa__text",textCheckbox:"RgpdModal-module-scss-module__TTrKLa__textCheckbox",validationText:"RgpdModal-module-scss-module__TTrKLa__validationText"})},43746,e=>{"use strict";e.i(247167);var t=e.i(843476),a=e.i(271645),i=e.i(108927),r=e.i(330580),s=e.i(208549),n=e.i(539912),o=e.i(822596),l=e.i(283455),c=e.i(64887),u=e.i(522016),d=e.i(177936),h=e.i(132440),m=e.i(95187);let _=(0,m.createServerReference)("602dff6c4b03b19fa46fe390eceaa65c9a6cf650f6",m.callServer,void 0,m.findSourceMapURL,"socialLoginEditUserLOPDAction");var p=e.i(777446);let f={checkboxValidationOne:!1,checkboxValidationTwo:!1,checkboxValidationThree:!1};e.s(["default",0,function({dictionary:e,avisoLegalInformacion:m,defaultDict:g}){let{t:b}=(0,o.getDictionary)(e),{refModal:E,openModal:v,closeModal:A,isOpen:T}=(0,r.default)(),[C,y]=(0,a.useActionState)(_,f),{errors:x,clearError:S}=(0,l.default)(C);return(0,a.useEffect)(()=>{v()},[]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(n.Modal,{isOpen:T,className:"RgpdModal",ref:E,handleClose:A,closeOutsideClose:!1,id:"rgpd",children:[(0,t.jsx)(s.default,{defaultDict:g,showCloseButton:!1,closeAction:e=>{e.stopPropagation(),A()},children:b("completaElRegistro")}),(0,t.jsx)("div",{children:(0,t.jsxs)("form",{action:y,name:"form-rgpd",id:"form-rgpd",children:[(0,t.jsx)("input",{type:"hidden",name:"idClausula",value:m?.idClausula??""}),(0,t.jsx)("input",{type:"hidden",name:"idClausulaPie",value:m?.idClausulaPie??""}),(0,t.jsx)("p",{className:i.default.text,children:(0,t.jsx)(c.default,{rawHtml:m?.avisoLegal})}),(0,t.jsx)(p.default,{error:x?.checkboxValidationOne,children:(0,t.jsxs)("label",{htmlFor:"checkboxValidationOne",children:[(0,t.jsx)("div",{children:(0,t.jsx)("input",{autoComplete:"off",type:"checkbox",id:"checkboxValidationOne",name:"checkboxValidationOne",onChange:()=>S("checkboxValidationOne")})}),(0,t.jsx)("p",{className:i.default.textCheckbox,children:(0,t.jsx)(c.default,{rawHtml:m?.checks?.checkComercial})})]})}),(0,t.jsx)(p.default,{error:x?.checkboxValidationTwo,children:(0,t.jsxs)("label",{htmlFor:"checkboxValidationTwo",children:[(0,t.jsx)("div",{children:(0,t.jsx)("input",{autoComplete:"off",type:"checkbox",id:"checkboxValidationTwo",name:"checkboxValidationTwo",onChange:()=>S("checkboxValidationTwo")})}),(0,t.jsx)("p",{className:i.default.textCheckbox,children:(0,t.jsx)(c.default,{rawHtml:m?.checks?.checkEmpresas})})]})}),(0,t.jsx)(p.default,{error:x?.checkboxValidationThree,children:(0,t.jsxs)("label",{htmlFor:"checkboxValidationThree",children:[(0,t.jsx)("div",{children:(0,t.jsx)("input",{autoComplete:"off",type:"checkbox",id:"checkboxValidationThree",name:"checkboxValidationThree",onCh
123ange:()=>S("checkboxValidationThree")})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:i.default.textCheckbox,children:["He leÃdo y acepto la"," ",(0,t.jsx)(u.default,{prefetch:!1,href:`https://www.planetadelibros.com.mx${b("urlPoliticaPrivacidad")}`,target:"_blank",rel:"noopener noreferrer",children:b("politicaPrivacidad")})]}),x?.checkboxValidationThree&&(0,t.jsx)(d.default,{variant:"error",className:i.default.validationText,children:b(x?.checkboxValidationThree)})]})]})}),(0,t.jsxs)("div",{className:i.default.submitWrapper,children:[x?.form&&(0,t.jsx)(d.default,{variant:"error",children:b(x?.form)}),(0,t.jsx)(h.default,{defaultTitle:b("aceptar"),loadingTitle:b("aceptando")})]})]})})]})})}],43746)},169147,e=>{e.v({actionButton:"AutorEditable-module-scss-module__APEQHq__actionButton",actionButton__deleteIcon:"AutorEditable-module-scss-module__APEQHq__actionButton__deleteIcon",autor:"AutorEditable-module-scss-module__APEQHq__autor",autor__container:"AutorEditable-module-scss-module__APEQHq__autor__container",autor__inner:"AutorEditable-module-scss-module__APEQHq__autor__inner",autor__nombre:"AutorEditable-module-scss-module__APEQHq__autor__nombre",autor__retrato:"AutorEditable-module-scss-module__APEQHq__autor__retrato",autor__retrato__img:"AutorEditable-module-scss-module__APEQHq__autor__retrato__img","blink-animation":"AutorEditable-module-scss-module__APEQHq__blink-animation",deleteButton:"AutorEditable-module-scss-module__APEQHq__deleteButton",listadoResultados__autores:"AutorEditable-module-scss-module__APEQHq__listadoResultados__autores",listadoResultados__headerInfo:"AutorEditable-module-scss-module__APEQHq__listadoResultados__headerInfo",selected:"AutorEditable-module-scss-module__APEQHq__selected"})},358630,e=>{"use strict";var t=e.i(843476),a=e.i(169147),i=e.i(271645),r=e.i(563144),s=e.i(667790);e.s(["default",0,function({autor:e}){let[n,o]=(0,i.useTransition)(),l=async()=>{o(async()=>{await (0,r.removeFavoriteAutor)({idsAutores:[e.id]})})};return(0,t.jsx)("div",{className:"ButtonQuitarAutor",children:(0,t.jsx)("button",{onClick:l,className:a.default.actionButton,disabled:n,children:(0,t.jsx)("span",{className:a.default.actionButton__deleteIcon,children:n?"...":(0,t.jsx)(s.default,{})})})})}])},711041,e=>{"use strict";var t=e.i(843476),a=e.i(684426),i=e.i(271645),r=e.i(95187);let s=(0,r.createServerReference)("006f5bb3142cc23f6b10f740494ffc70f5bd087bca",r.callServer,void 0,r.findSourceMapURL,"removeAllFavoriteAuthors");var n=e.i(936540),o=e.i(822596),l=e.i(330580),c=e.i(208549),u=e.i(495913),d=e.i(539912),h=e.i(132440);e.s(["default",0,function({dictionary:e,defaultDict:r}){let[m,_]=(0,i.useTransition)(),{t:p}=(0,o.getDictionary)(e),{refModal:f,openModal:g,closeModal:b,isOpen:E}=(0,l.default)(),v=async e=>{_(async()=>{await s()})};return(0,t.jsxs)("div",{className:"ButtonQuitarTodosAutores",children:[(0,t.jsx)(n.default,{variant:"secondary",type:"button",onClick:()=>g(),disabled:m,className:`${a.default.editBtn}`,children:p(m?"borrandoTodos":"borrarTodos")}),(0,t.jsxs)(d.Modal,{isOpen:E,ref:f,handleClose:b,id:"quitar_todos_autores",variant:"auto-width",children:[(0,t.jsx)(c.default,{defaultDict:r,closeAction:e=>{e.stopPropagation(),b()},children:(0,t.jsx)(u.default,{title:p("borrarAutores")})}),(0,t.jsxs)("form",{action:v,id:"eliminarAutores",children:[(0,t.jsx)("p",{children:p("borrarAutoresAviso")}),(0,t.jsx)(h.default,{defaultTitle:p("borrarAutores"),loadingTitle:p("borrandoTodos")})]})]})]})}],711041)},110444,e=>{e.v({articulo:"ComentarioEditable-module-scss-module__-Aa1mq__articulo","blink-animation":"ComentarioEditable-module-scss-module__-Aa1mq__blink-animation",comentario:"ComentarioEditable-module-scss-module__-Aa1mq__comentario",comentarioStatus__noPublicado:"ComentarioEditable-module-scss-module__-Aa1mq__comentarioStatus__noPublicado",comentarioStatus__pendiente:"ComentarioEditable-module-scss-module__-Aa1mq__comentarioStatus__pendiente",comentarioStatus__publicado:"ComentarioEditable-module-scss-module__-Aa1mq__comentarioStatus__publicado",comentario__articuloLibro:"ComentarioEditable-module-scss-module__-Aa1mq__comentario__articuloLibro",comentario__articuloLibro__libroWrapper:"C
123omentarioEditable-module-scss-module__-Aa1mq__comentario__articuloLibro__libroWrapper",comentario__buttonWrapper:"ComentarioEditable-module-scss-module__-Aa1mq__comentario__buttonWrapper",comentario__cabecera:"ComentarioEditable-module-scss-module__-Aa1mq__comentario__cabecera",comentario__contenido:"ComentarioEditable-module-scss-module__-Aa1mq__comentario__contenido",comentario__estado:"ComentarioEditable-module-scss-module__-Aa1mq__comentario__estado",comentario__fecha:"ComentarioEditable-module-scss-module__-Aa1mq__comentario__fecha",comentario__inner:"ComentarioEditable-module-scss-module__-Aa1mq__comentario__inner",comentario__titulo:"ComentarioEditable-module-scss-module__-Aa1mq__comentario__titulo",editCommentBtn:"ComentarioEditable-module-scss-module__-Aa1mq__editCommentBtn",libro:"ComentarioEditable-module-scss-module__-Aa1mq__libro",libro__miniatura:"ComentarioEditable-module-scss-module__-Aa1mq__libro__miniatura",respuesta:"ComentarioEditable-module-scss-module__-Aa1mq__respuesta",respuesta__contenido:"ComentarioEditable-module-scss-module__-Aa1mq__respuesta__contenido",respuesta__imagen:"ComentarioEditable-module-scss-module__-Aa1mq__respuesta__imagen",respuesta__texto:"ComentarioEditable-module-scss-module__-Aa1mq__respuesta__texto"})},816994,e=>{"use strict";var t=e.i(843476),a=e.i(110444),i=e.i(271645),r=e.i(936540),s=e.i(822596),n=e.i(330580),o=e.i(539912),l=e.i(132440),c=e.i(296175),u=e.i(88205),d=e.i(23011),h=e.i(95187);let m=(0,h.createServerReference)("40738ee2a33ebb4d3c662fb369c0427d73add56c88",h.callServer,void 0,h.findSourceMapURL,"deleteComment"),_=(0,h.createServerReference)("408ee4d15aa40e3ec0d7211b5447f8e7d4ae22c14d",h.callServer,void 0,h.findSourceMapURL,"editComment");var p=e.i(970496),f=e.i(208549),g=e.i(495913),b=e.i(505570),E=e.i(48899);function v({children:e,dictionary:a,closeParentModal:i,libro:r,blogEntrada:n,meses:o,translationsObj:l,defaultDict:c}){let{t:d}=(0,s.getDictionary)(a);return(0,t.jsxs)("div",{className:(0,p.classNames)("ModalLibroComentar",u.default.modal2Columnas),children:[(0,t.jsx)(f.default,{defaultDict:c,closeAction:e=>{e.stopPropagation(),i()},className:u.default.modal2Columnas__cabeceraMobile,children:(0,t.jsx)(g.default,{title:d("editarComentario")})}),(0,t.jsxs)("div",{className:u.default.modal2Columnas__inner,children:[(0,t.jsxs)("div",{className:`${u.default.modal2Columnas__miniatura} ${u.default.modal2Columnas__miniatura__fullPadding}`,children:[r&&(0,t.jsx)(b.default,{libro:r,translationsObj:l}),n&&(0,t.jsx)(E.default,{articulo:n,meses:o})]}),(0,t.jsxs)("div",{className:u.default.modal2Columnas__content,children:[(0,t.jsx)(f.default,{defaultDict:c,closeAction:e=>{e.stopPropagation(),i()},className:u.default.modal2Columnas__cabeceraDesktop,children:(0,t.jsx)(g.default,{title:d("editarComentario")})}),e]})]})]})}e.s(["default",0,function({dictionary:e,comentario:h,libro:p,blogEntrada:f,meses:g,defaultDict:b}){let[E,A]=(0,i.useTransition)(),[T,C]=(0,i.useTransition)(),{t:y}=(0,s.getDictionary)(e),{refModal:x,openModal:S,closeModal:N,isOpen:w}=(0,n.default)(),I=async e=>{A(async()=>{await _({valoracion:parseInt(e.get("rating")),titulo:e.get("title"),comentario:e.get("opinion"),idComentario:h.id}),await N()})},k=async e=>{e.preventDefault(),C(async()=>{await m(h.id),await N()})};return(0,t.jsxs)("div",{className:"ButtonEditarComentario",children:[(0,t.jsx)(r.default,{className:`${a.default.editCommentBtn}`,type:"button",size:"small",onClick:()=>S(),children:y("editarComentario")}),(0,t.jsx)(o.Modal,{isOpen:w,ref:x,handleClose:N,id:"quitar_todos_autores",variant:"no-padding",children:(0,t.jsx)(v,{defaultDict:b,dictionary:e,closeParentModal:N,libro:p,blogEntrada:f,meses:g,translationsObj:{portadaAlt:y("portadaAlt")},children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("form",{action:I,id:"editar_comentario",children:[(0,t.jsxs)(c.default,{error:!1,children:[(0,t.jsx)("p",{className:`${u.default.modal__fieldLabel}`,children:y("valoracion")}),(0,t.jsx)(d.default,{nameInputHidden:"rating",value:h.estrellas})]}),(0,t.jsxs)(c.default,{error:!1,children:[(0,t.jsx)("label",{htmlFor:"title",children:y("formTituloValoracion")}),(0,t.jsx)("input",{type:"text","aria-label":y("formTituloValoracion"),id:"title",name:"title",required:!0,defaultValue:h.titulo})]}),(0,t.jsxs)(c.default,{error:!1,children:[(0,t.jsx)("label",{htmlFor:"opinion",children:y("formOpinion")}),(0,t.jsx)("textarea",{"aria-label":y("formOpinion"),id:"opinion",
123name:"opinion",required:!0,minLength:10,defaultValue:h.contenido})]}),(0,t.jsxs)(c.default,{className:u.default.modal__actions,children:[(0,t.jsx)(l.default,{defaultTitle:y("editarComentario"),loadingTitle:y("editandoComentario")}),(0,t.jsx)(r.default,{variant:"secondary",type:"button",size:"small",disabled:T||E,onClick:k,children:y(T?"eliminandoComentario":"eliminarComentario")})]})]}),(0,t.jsx)("p",{className:u.default.modal__helptext,children:y("modalComentarLibroModeracion")})]})})})]})}],816994)},466193,e=>{e.v({actionButton:"NewsletterEditable-module-scss-module__HWjwba__actionButton",actionButton__addIcon:"NewsletterEditable-module-scss-module__HWjwba__actionButton__addIcon",actionButton__deleteIcon:"NewsletterEditable-module-scss-module__HWjwba__actionButton__deleteIcon","blink-animation":"NewsletterEditable-module-scss-module__HWjwba__blink-animation",newsletter:"NewsletterEditable-module-scss-module__HWjwba__newsletter",newsletter__container:"NewsletterEditable-module-scss-module__HWjwba__newsletter__container",newsletter__imagen:"NewsletterEditable-module-scss-module__HWjwba__newsletter__imagen",newsletter__info:"NewsletterEditable-module-scss-module__HWjwba__newsletter__info",newsletter__inner:"NewsletterEditable-module-scss-module__HWjwba__newsletter__inner",newsletter__titulo:"NewsletterEditable-module-scss-module__HWjwba__newsletter__titulo",quitarSuscripciones:"NewsletterEditable-module-scss-module__HWjwba__quitarSuscripciones",selected:"NewsletterEditable-module-scss-module__HWjwba__selected"})},246157,e=>{"use strict";var t=e.i(843476),a=e.i(466193),i=e.i(271645),r=e.i(112557),s=e.i(95187);let n=(0,s.createServerReference)("40e255cca5f05126c448a5ec18aaf4485e917732fa",s.callServer,void 0,s.findSourceMapURL,"newsLetterUnSuscribe");var o=e.i(10655),l=e.i(978877),c=e.i(618566),u=e.i(667790);e.s(["default",0,function({newsletter:e,variant:s}){let{pageData:d}=(0,l.usePageData)(),h=(0,c.usePathname)(),[m,_]=(0,i.useTransition)(),p=async()=>{_(async()=>{"remove"===s?await n(e.id):(await (0,r.newsLetterSuscribe)(e.id),(0,o.suscribirseNewsletterEvent)({tituloNewsletter:[e.nombre],tipoPagina:d?.tipoPagina,urlPagina:h}))})};return(0,t.jsx)("div",{className:"",children:(0,t.jsx)("button",{onClick:p,className:a.default.actionButton,disabled:m,children:m?"...":(0,t.jsx)("span",{className:"remove"===s?a.default.actionButton__deleteIcon:a.default.actionButton__addIcon,children:(0,t.jsx)(u.default,{})})})})}],246157)},297825,e=>{"use strict";var t=e.i(843476),a=e.i(88205),i=e.i(466193),r=e.i(271645),s=e.i(95187);let n=(0,s.createServerReference)("40533e2188b14e33063179e293f2d079d554939402",s.callServer,void 0,s.findSourceMapURL,"unsuscribeAllNewsLetters");var o=e.i(936540),l=e.i(822596),c=e.i(330580),u=e.i(208549),d=e.i(495913),h=e.i(539912),m=e.i(132440),_=e.i(618566);e.s(["default",0,function({variant:e,dictionary:s,defaultDict:p}){let[f,g]=(0,r.useTransition)(),{t:b}=(0,l.getDictionary)(s),{refModal:E,openModal:v,closeModal:A,isOpen:T}=(0,c.default)(),{replace:C}=(0,_.useRouter)(),y=async t=>{g(async()=>{await n(e),await A()})};return(0,t.jsxs)("div",{className:"ButtonQuitarTodasSuscripciones",children:[(0,t.jsx)(o.default,{type:"button",onClick:()=>v(),disabled:f,variant:"secondary",children:b("cancelarTodas")}),(0,t.jsxs)(h.Modal,{isOpen:T,ref:E,handleClose:A,id:"quitar_suscripciones",variant:"auto-width",children:[(0,t.jsx)(u.default,{defaultDict:p,closeAction:e=>{e.stopPropagation(),A()},children:(0,t.jsx)(d.default,{title:b("cancelarTodas")})}),(0,t.jsx)("div",{className:`${a.default.modal} ${a.default.modal__xs}`,children:(0,t.jsx)("form",{action:y,id:"cancelarSuscripciones",className:i.default.quitarSuscripciones,children:(0,t.jsxs)("div",{className:a.default.modal__content,children:[(0,t.jsx)("p",{children:b("cancelarTodasAviso")}),(0,t.jsx)(m.default,{size:"large",defaultTitle:b("cancelarSuscripciones"),loadingTitle:b("cancelandoSuscripciones")})]})})})]})]})}],297825)},120133,e=>{e.v({avatarImg:"MisDatos-module-scss-module__5hbCEa__avatarImg",avatarMobile:"MisDatos-module-scss-module__5hbCEa__avatarMobile",avatarWrapper:"MisDatos-module-scss-module__5hbCEa__avatarWrapper",avatarWrapper__positionHeader:"MisDatos-module-scss-module__5hbCEa__avatarWrapper__positionHeader",avatarWrapper__positionPageContent:"MisDatos-module-scss-module__5hbCEa__avatarWrapper__positionPageContent","blink-animation":"MisDatos-module-scss-module__5hbCEa__blink-animation",btnAvatar:"MisDatos-module-scss-module__5hbCEa__btnAvatar",btnText:"MisDatos-module-scss-module__5hbCEa__btnText",btnWithIcon:"MisDatos-module-scss-module__5hbCEa__btnWithIcon",btnWithLoader:"MisDatos-module-scss-module__5hbCEa__btnWithLoader",btnWithLoader__fitContent:"MisDatos-module-scss-module__5hbCEa__btnWithLoader__fitContent",cabecera:"MisDatos-module-scss-module__5hbCEa__cabecera",cambiarPassButton:"MisDatos-module-scss-module__5hbCEa__cambiarPassButton",cambiarPassButton__icon:"MisDatos-module-scss-module__5hbCEa__cambiarPassButton__icon",displayNone:"MisDatos-module-scss-module__5hbCEa__displayNone",form:"MisDatos-module-scss-module__5hbCEa__form",formField__input:"MisDatos-module-scss-module__5hbCEa__formField__input",formField__label:"MisDatos-module-scss-module__5hbCEa__formField__label",fullWidth:"MisDatos-module-scss-module__5hbCEa__fullWidth",misDatos:"MisDatos-module-scss-module__5hbCEa__misDatos",misDatos__baja:"MisDatos-module-scss-module__5hbCEa__misDatos__baja",misDatos__baja__button:"MisDatos-module-scss-module__5hbCEa__misDatos__baja__button",misDatos__baja__description:"MisDatos-module-scss-module__5hbCEa__misDatos__baja__description",misDatos__baja__title:"MisDatos-module-scss-module__5hbCEa__misDatos__baja__title",misDatos__error:"MisDatos-module-scss-module__5hbCEa__misDatos__error",misDatos__form:"MisDatos-module-scss-module__5hbCEa__misDatos__form",misDatos__formWrapper:"MisDatos-module-scss-module__5hbCEa__misDatos__formWrapper",misDatos__label:"MisDatos-module-scss-module__5hbCEa__misDatos__label",misDatos__success:"MisDatos-module-scss-module__5hbCEa__misDatos__success",modal:"MisDatos-module-scss-module__5hbCEa__modal",submitButtonWrapper:"MisDatos-module-scss-module__5hbCEa__submitButtonWrapper",twoColumns:"MisDatos-module-scss-module__5hbCEa__twoColumns"})},351333,e=>{"use strict";var t,a=e.i(843476),i=e.i(120133),r=e.i(234523),s=e.i(296175);e.i(21496);var n=e.i(733027),o=e.i(618566),l=e.i(271645),c=e.i(936540),u=e.i(232615),d=e.i(177936),h=e.i(822596),m=e.i(95187);let _=(0,m.createServerReference)("402eea4870fa2adff5aec64877ce5d0592849ecc59",m.callServer,void 0,m.findSourceMapURL,"areaUsuarioCambiarContrasena"),p=(0,m.createServerReference)("78cb8204ecb9296ebae40786b080caf86de32408c9",m.callServer,void 0,m.findSourceMapURL,"editUserData");var f=e.i(539912),g=e.i(330580),b=e.i(208549),E=e.i(495913),v=e.i(389649);function A(){return(A=Object.assign.bind()).apply(null,arguments)}let T=function(e){return l.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 11V7.455c0-1.447.
123632-2.834 1.757-3.857S10.41 2 12 2s3.117.575 4.243 1.598C17.368 4.62 18 6.008 18 7.455V11h1c1.657 0 3 1.24 3 2.77v6.46c0 1.53-1.343 2.77-3 2.77H5c-1.657 0-3-1.24-3-2.77v-6.46C2 12.24 3.343 11 5 11zm3.172-6.117c.75-.682 1.767-1.065 2.828-1.065s2.078.383 2.828 1.065S16 6.49 16 7.455V11H8V7.455c0-.965.421-1.89 1.172-2.572M4 13.77c0-.51.448-.923 1-.923h14c.552 0 1 .413 1 .923v6.462c0 .51-.448.923-1 .923H5c-.552 0-1-.413-1-.923z",clipRule:"evenodd"})))};var C=e.i(19467),y=e.i(813395),x=e.i(446569),S=e.i(138056);e.s(["default",0,function({nombre:e,email:t,fechaNacimiento:m,codigoPostal:A,imagen:N,dict:w,provinciasDict:I,isEditing:k,defaultDict:L}){let{t:O}=(0,h.getDictionary)(I),P=[O("defaultProvincia"),...O("provincias")],D=(0,S.buscarProvinciaPorCodigoPostal)({codigoPostal:A,provincias:P}),[R,M]=(0,l.useState)(!1),[j,F]=(0,l.useState)(null),{refModal:B,openModal:U,closeModal:G,isOpen:H}=(0,g.default)(),[W,V]=(0,l.useState)({currPwd:"",newPwd:"",repeatNewPwd:""}),[q,$]=(0,l.useState)({status:"",message:""}),[Y,z]=(0,l.useTransition)(),[K,Q]=(0,l.useState)({name:"",birthDate:"",postalcode:""}),[X,Z]=(0,l.useState)({status:"",message:""}),[J,ee]=(0,l.useTransition)(),et=(0,l.useRef)(null),ea=(0,l.useRef)(null),[ei,er]=(0,l.useState)(!1),es=new URLSearchParams((0,o.useSearchParams)()),en=(0,o.usePathname)(),{replace:eo}=(0,o.useRouter)(),{t:el}=(0,h.getDictionary)(w),ec=e=>e?el(e):"",eu=async e=>{e.preventDefault(),ee(async()=>{let a=e.target.name.value,i="";if("__/__/____"!==e.target.birthDate.value){let t=e.target.birthDate.value.split("/");i=`${t[2]}-${t[1]}-${t[0]}`}let r=j?j.codigoPostal:null;if(!(({name:e,birthDate:t,postalcode:a})=>{let i={name:"",birthDate:"",postalcode:""},r=!0;for(let s in i.name=ec((0,u.nameValidation)(e)),i.birthDate=ec((0,u.birthDateValidation)(t)),i.postalcode=ec((0,u.postalCodeValidation)(a)),i)if(i[s]?.length>0){r=!1;break}return Q(i),r})({name:a,birthDate:i,postalcode:r}))return;let{response:s}=await p(t,a,i,r);s.success?(Z({status:"success",message:s?.message}),es.delete("isEdit"),eo(`${en}?${es.toString()}`,{scroll:!1})):Z({status:"error",message:s?.errors[0]?.message})})},ed=async e=>{e.preventDefault(),z(async()=>{let t=e.target.currPwd.value,a=e.target.newPwd.value;if(!(({currPwd:e,newPwd:t,repeatNewPwd:a})=>{let i={currPwd:"",newPwd:"",repeatNewPwd:""},r=!0;for(let s in i.currPwd=ec((0,u.passwordValidation)(e)),i.newPwd=ec((0,u.passwordValidation)(t)),i.repeatNewPwd=ec((0,u.passwordRepeatedValidation)(a,t)),i)if(i[s]?.length>0){r=!1;break}return V(i),r})({currPwd:t,newPwd:a,repeatNewPwd:e.target.repeatNewPwd.value}))return;let{response:i}=await _({currPwd:t,newPwd:a});i.success?(e.target.currPwd.value="",e.target.newPwd.value="",e.target.repeatNewPwd.value="",$({status:"success",message:i?.message})):$({status:"error",message:i?.message})})};return(0,l.useEffect)(()=>{D&&(M(!0),F(D))},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:i.default.form,children:[X&&(0,a.jsx)("span",{className:`${"success"===X.status?i.default.misDatos__success:i.default.misDatos__error}`,children:X.message}),(0,a.jsxs)("form",{onSubmit:eu,name:"form-registro",id:"form-registro",method:"post",children:[(0,a.jsxs)("div",{className:i.default.twoColumns,children:[(0,a.jsxs)(s.default,{error:!!K.name,children:[(0,a.jsx)("label",{className:i.default.misDatos__label,htmlFor:"name",children:el("registerUsernameLabel")}),(0,a.jsx)("input",{autoComplete:"name",type:"text","aria-label":el("registerUsernameLabel"),placeholder:el("registerUsernamePlaceholder"),id:"name",name:"name",defaultValue:e,onChange:e=>{let t={...K};t.name=ec((0,u.nameValidation)(e.target.value)),Q(t)},disabled:!k}),K.name&&(0,a.jsx)(d.default,{variant:"error",children:K.name})]}),(0,a.jsxs)(s.default,{error:!1,children:[(0,a.jsx)("label",{className:i.default.misDatos__label,htmlFor:"email",children:el("emailLabel")}),(0,a.jsx)("input",{autoComplete:"email",type:"email",inputMode:"email","aria-label":el("emailLabel"),id:"email",name:"email",defaultValue:t,readOnly:!0,disabled:!0})]})]}),(0,a.jsxs)("div",{className:i.default.twoColumns,children:[(0,a.jsxs)(s.default,{error:!!K.birthDate,children:[(0,a.jsx)("label",{className:i.default.misDatos__label,htmlFor:"birthDate",children:el("registerBirthdateLabel")}),(0,a.jsx)(n.IMaskInput,{className:ei?i.default.maskInput__hasValue:i.default.maskInput__noValue,"aria-label":el("registerBirthdateLabel"),autoComplete:"new-date",type:"tel",id:"birthDate",name:"birthDate",defaultValue:m,mask:Date,pattern:"d{/}`m{/}`Y",min:new Date(new Date().getFullYear()-120,0,1),max:new Date(new Date().getFullYear()+1,0,1),unmask:!0,lazy:!1,ref:et,inputRef:ea,onAccept:(e,t)=>
123{er(/\d/.test(e))},placeholder:"dd/mm/yyyy",autofix:!0,format:function(e){let t=e.getDate(),a=e.getMonth()+1;return t<10&&(t="0"+t),a<10&&(a="0"+a),[t,a,e.getFullYear()].join("/")},parse:function(e){let t=e.split("/");return new Date(parseInt(t[2]),parseInt(t[1])-1,parseInt(t[0]))},disabled:!k}),K.birthDate&&(0,a.jsx)(d.default,{variant:"error",children:K.birthDate})]}),R?(0,a.jsxs)(s.default,{className:r.default.searchCity,error:!!K.postalcode,children:[(0,a.jsx)("label",{className:i.default.misDatos__label,htmlFor:"postalcode",children:el("registerProvinciaLabel")}),(0,a.jsxs)("div",{className:r.default.searchCity__inputWrapper,children:[(0,a.jsx)("input",{disabled:!k,className:r.default.searchCity__input,autoComplete:"postal-code",type:"text",inputMode:"numeric","aria-label":el("registerProvinciaLabel"),placeholder:el("registerProvinciaPlaceholder"),id:"postalcode",name:"postalcode",defaultValue:j?`${j?.provincia}`:"",readOnly:j??!1}),(0,a.jsx)(x.default,{onClick:()=>{k&&(F(null),M(!1))},className:`${r.default.searchCity__icon} ${k?r.default.searchCity__iconClose:""}`})]}),K.postalcode&&(0,a.jsx)(d.default,{variant:"error",children:K.postalcode})]}):(0,a.jsx)(y.default,{labelClassName:i.default.misDatos__label,disabled:!k,provinciasDictionary:I,inputName:"postalCode",labelText:el("registerProvinciaLabel"),placeholderText:el("registerProvinciaPlaceholder"),selectProvinciaEvent:e=>{M(!0),F(e)}})]}),(0,a.jsx)(s.default,{className:`${i.default.submitButtonWrapper} ${!k?i.default.displayNone:""}`,children:(0,a.jsxs)(c.default,{buttonType:"submit",disabled:J||!k,className:`${i.default.btnWithLoader} ${i.default.btnWithLoader__fitContent}`,size:"large",children:[J&&(0,a.jsx)(v.default,{}),(0,a.jsx)("span",{className:J?i.default.btnText:"",children:el("updateData")})]})})]}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.Modal,{isOpen:H,ref:B,handleClose:G,closeOutsideClose:!1,variant:"default",className:i.default.modal,id:"menuLogin",children:[(0,a.jsx)(b.default,{defaultDict:L,showCloseButton:!Y,closeAction:e=>{e.stopPropagation(),G()},children:(0,a.jsx)(E.default,{title:el("changePassword")})}),(0,a.jsxs)("div",{children:[q&&(0,a.jsx)("span",{className:`${"success"===q.status?i.default.misDatos__success:i.default.misDatos__error}`,children:q.message}),(0,a.jsxs)("form",{onSubmit:ed,name:"form-change-password",id:"form-change-password",method:"post",children:[(0,a.jsxs)(s.default,{error:!!W.currPwd,children:[(0,a.jsx)(C.default,{required:!0,autoComplete:"off",ariaLabel:el("passwordLabel"),placeholder:el("currPassword"),id:"currPwd",name:"currPwd",onChange:e=>{let t={...W};t.currPwd=ec((0,u.passwordValidation)(e.target.value)),V(t)}}),W.currPwd&&(0,a.jsx)(d.default,{variant:"error",children:W.currPwd})]}),(0,a.jsxs)(s.default,{error:!!W.newPwd,children:[(0,a.jsx)(C.default,{required:!0,autoComplete:"off",ariaLabel:el("passwordLabel"),placeholder:el("newPassword"),id:"newPwd",name:"newPwd",onChange:e=>{let t={...W};t.newPwd=ec((0,u.passwordValidation)(e.target.value)),V(t)}}),W.newPwd&&(0,a.jsx)(d.default,{variant:"error",children:W.newPwd})]}),(0,a.jsxs)(s.default,{error:!!W.repeatNewPwd,children:[(0,a.jsx)(C.default,{required:!0,autoComplete:"off",ariaLabel:el("passwordLabel"),placeholder:el("repeatNewPassword"),id:"repeatNewPwd",name:"repeatNewPwd"}),W.repeatNewPwd&&(0,a.jsx)(d.default,{variant:"error",children:W.repeatNewPwd})]}),(0,a.jsxs)(s.default,{className:i.default.submitButtonWrapper,children:[(0,a.jsxs)(c.default,{id:"submitChangePwdModal",variant:"secondary",type:"button",buttonType:"submit",disabled:Y,className:`${i.default.btnWithLoader} ${i.default.fullWidth}`,children:[Y&&(0,a.jsx)(v.default,{}),(0,a.jsx)("span",{className:Y?i.default.btnText:"",children:el("changePassword")})]}),(0,a.jsx)(c.default,{id:"closeChangePwdModal",className:i.default.fullWidth,type:"button",onClick:G,disabled:Y,children:el("changePasswordCloseModalText")})]})]})]})]}),(0,a.jsxs)(c.default,{variant:"secondary",buttonType:"button",disabled:k,className:`${i.default.btnWithIcon} ${k?i.default.displayNone:""}`,size:"large",onClick:U,children:[(0,a.jsx)(T,{}),el("changePassword")]})]})]})})}],351333)},467168,e=>{"use strict";var t=e.i(843476),a=e.i(88205),i=e.i(120133),r=e.i(824526),s=e.i(81143),n=e.i(822596),o=e.i(330580),l=e.i(539912),c=e.i(495913),u=e.i(208549),d=e.i(936540),h=e.i(271645),m=e.i(137963),_=e.i(95187);let p=(0,_.createServerReference)("403ad593b5f8f2051969d31d9f7d4243f5806898f3",_.callServer,void 0,_.findSourceMapURL,"changeUserAvatar");var f=e.i(389649);e.s(["default",0,function({imagen:e,userAreaDict:_,positionVariant:g,defaultDict:b}){let{t:E}=(0,n.getDictionary)(_),{refModal:v,openModal:A,closeModal:T,isOpen:C}=(0,o.default)(),y=(0,h.useRef)(),[x,S]=(0,h.useState)(),[N,w]=(0,h.useState)({status:"",message:""}),[I,k]=(0,h.useTransition)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.Modal,{className:i.default.modal,isOpen:C,ref:v,handleClose:T,closeOutsideClose:!0,variant:"default",id:"editAvatar-"+g,children:[(0,t.jsx)(u.default,{defaultDict:b,closeAction:T,showCloseButton:!I,children:(0,t.jsx)(c.default,{title:E("uploadProfileImage")})}),(0,t.jsx)("div",{className:`${a.default.modal} ${a.default.modal__xs}`,children:(0,t.jsx)("div",{className:a.default.content,children:(0,t.jsxs)("form",{onSubmit:e=>{(e.preventDefault(),x)?k(async()=>{let e=new FormData;e.append("foto",x);let{response:t,ok:a}=await p(e);t.success?(w({status:"success",message:t?.message}),y.current.value=null,S(null),a&&setTimeout(()=>{T()},600)):w({status:"error",message:t?.message})}):w({status:"error",message:E("userImageRequiredError")})},className:a.default.modal__form,children:[N&&(0,t.jsx)("span",{className:`${"success"===N.status?a.default.successMsg:a.default.errorMsg}`,children:N.message}),(0,t.jsx)(d.default,{disabled:I,onClick:()=>{y?.current.click()},display:"block",variant:"secondary",buttonType:"button",children:x&&x?.name?(0,m.truncate)(x.name,21,"..."):E("changeProfileImagePlaceholder")}),(0,t.jsx)("input",{onChange:e=>{S(e.target.files[0])},ref:y,type:"file",name:"userAvatarFileInput",accept:"image/png,image/jpeg",placeholder:E("changeProfileImagePlaceholder"),className:i.default.displayNone}),(0,t.jsxs)(d.default,{className:i.default.btnWithLoader,display:"block",variant:"primary",buttonType:"submit",disabled:I,children:[I&&(0,t.jsx)(f.default,{}),E("changeProfileImageSave")]})]})})})]}),(0,t.jsx)("div",{className:`${i.default.avatarWrapper} ${"header"===g?i.default.avatarWrapper__positionHeader:i.default.avatarWrapper__positionPageContent}`,children:(0,t.jsxs)("button",{onClick:A,className:i.default.btnAvatar,children:[(0,t.jsx)("div",{className:i.default.avatarImg,children:(0,t.jsx)(r.default,{img:e,alt:E("userImageAlt"),thumbKey:"d_300_300_crop",placeholder:s.IMAGEPLACEHOLDERS.USUARIO})}),(0,t.jsx)("p",{children:E("editAvatar")})]})})]})}],467168)},314778,e=>{e.v({apiError:"ModalEliminarCuenta-module-scss-module__nhzwiq__apiError","blink-animation":"ModalEliminarCuenta-module-scss-module__nhzwiq__blink-animation",content:"ModalEliminarCuenta-module-scss-module__nhzwiq__content",content__buttons:"ModalEliminarCuenta-module-scss-module__nhzwiq__content__buttons",content__description:"ModalEliminarCuenta-module-scss-module__nhzwiq__content__description",content__title:"ModalEliminarCuenta-module-scss-module__nhzwiq__content__title",passwordField:"ModalEliminarCuenta-module-scss-module__nhzwiq__passwordField",passwordLabel:"ModalEliminarCuenta-module-scss-module__nhzwiq__passwordLabel",submitBtn:"ModalEliminarCuenta-module-scss-module__nhzwiq__submitBtn"})},90138,e=>{"use strict";var t=e.i(843476),a=e.i(88205),i=e.i(314778),r=e.i(120133),s=e.i(495913),n=e.i(208549),o=e.i(539912),l=e.i(330580),c=e.i(822596),u=e.i(936540),d=e.i(864853),h=e.i(95187);let m=(0,h.createServerReference)("409b27c3ffbd42deeb6df449f11c70e91fbabb94f5",h.callServer,void 0,h.findSourceMapURL,"deleteAccount");var _=e.i(271645),p=e.i(389649),f=e.i(296175),g=e.i(19467);e.s(["default",0,function({areaUsuarioDict:e,defaultDict:h,accesoDict:b}){let{t:E}=(0,c.getDictionary)(e),{t:v}=(0,c.getDictionary)(b),{refModal:A,openModal:T,closeModal:C,isOpen:y}=(0,l.default)(),[x,S]=(0,_.useTransition)(),[N,w]=(0,_.useState)(null),I=async e=>{e.preventDefault();let t=new FormData(e.currentTarget).get("password");t&&S(async()=>{let{response:e}=await m(t);e?.ok||w(e?.message)})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Modal,{className:r.default.modal,isOpen:y,ref:A,handleClose:C,closeOutsideClose:!0,variant:"default",id:"deleteUser",children:[(0,t.jsx)(n.default,{defaultDict:h,closeAction:C,showCloseButton:!x,children:(0,t.jsx)(s.default,{title:E("deleteUserTitle")})}),(0,t.jsx)("div",{className:`${a.default.modal}`,children:(0,t.jsxs)("div",{className:i.default.content,children:[(0,t.jsx)("p",{className:i.default.content__title,children:E("deleteUserModalSubtitle")}),(0,t.jsx)("p",{className:i.default.content__description,children:E("deleteUserModalDescription")}),(0,t.jsx)("div",{children:(0,t.jsxs)("form",{onSubmit:I,children:[(0,t.jsxs)(f.default,{className:i.default.passwordField,children:[(0,t.jsx)("label",{className:i.default.passwordLabel,htmlFor:"password",children:v("darseDeBajaPasswordLabel")}),(0,t.jsx)(g.default,{required:!0,autoComplete:"off",ariaLabel:v("darseDeBajaPasswordLabel"),placeholder:v("passwordLabel"),id:"password",name:"password"}),N&&(0,t.jsx)("span",{className:i.default.apiError,children:N})]}),(0,t.jsxs)("div",{className:i.default.content__buttons,children:[(0,t.jsx)(u.default,{onClick:C,display:"block",type:"button",variant:"primary",disabled:x,children:E("deleteUserModalCancelBtnText")}),(0,t.jsxs)(u.default,{className:i.default.submitBtn,display:"block",type:"button",buttonType:"submit",variant:"danger",disabled:x,children:[x&&(0,t.jsx)(p.default,{}),(0,t.jsx)("span",{children:E("deleteUserModalConfirmBtnText")})]})]})]})})]})})]}),(0,t.jsxs)("div",{className:r.default.misDatos__baja,children:[(0,t.jsx)("h3",{className:r.default.misDatos__baja__title,children:E("deleteUserTitle")}),(0,t.jsx)("p",{children:(0,t.jsxs)(u.default,{onClick:T,type:"link",className:r.default.misDatos__baja__button,children:[E("deleteUserBtnText"),(0,t.jsx)("span",{className:a.default.icon,children:(0,t.jsx)(d.default,{})})]})}),(0,t.jsx)("p",{className:r.default.misDatos__baja__description,children:E("deleteUserDescription")})]})]})}],90138)}
123,388579,e=>{e.v({"blink-animation":"Etiquetas-module-scss-module__j9ALlG__blink-animation",etiquetas__boton:"Etiquetas-module-scss-module__j9ALlG__etiquetas__boton",etiquetas__container:"Etiquetas-module-scss-module__j9ALlG__etiquetas__container",etiquetas__link:"Etiquetas-module-scss-module__j9ALlG__etiquetas__link",etiquetas__listItem:"Etiquetas-module-scss-module__j9ALlG__etiquetas__listItem",etiquetas__listItem__hide:"Etiquetas-module-scss-module__j9ALlG__etiquetas__listItem__hide",etiquetas__listItem__show:"Etiquetas-module-scss-module__j9ALlG__etiquetas__listItem__show",hide:"Etiquetas-module-scss-module__j9ALlG__hide",hide_etiquetas:"Etiquetas-module-scss-module__j9ALlG__hide_etiquetas",moduloEtiquetas__blogDetall:"Etiquetas-module-scss-module__j9ALlG__moduloEtiquetas__blogDetall",show_etiquetas:"Etiquetas-module-scss-module__j9ALlG__show_etiquetas",visible:"Etiquetas-module-scss-module__j9ALlG__visible"})},731655,e=>{"use strict";var t=e.i(843476),a=e.i(388579),i=e.i(618566),r=e.i(978877),s=e.i(283231),n=e.i(10655),o=e.i(822596),l=e.i(691630),c=e.i(522016),u=e.i(271645);e.s(["default",0,function({items:e,defaultDict:d}){let h=(0,i.usePathname)(),{pageData:m}=(0,r.usePageData)(),_=(0,s.useModuleGAMetadata)(),{t:p}=(0,o.getDictionary)(d),[f,g]=(0,u.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ul",{className:`${a.default.etiquetas__list} ${f?a.default.show_etiquetas:a.default.hide_etiquetas}`,children:e.map((e,i)=>(0,t.jsx)("li",{className:`${a.default.etiquetas__listItem} ${f?a.default.etiquetas__listItem__show:a.default.etiquetas__listItem__hide}`,children:(0,t.jsx)(c.default,{prefetch:!1,href:`${e.url}`,className:a.default.etiquetas__link,onClick:()=>{var t;return t=e.nombre,void(0,n.contentClickEvent)({urlPagina:h,tipoPagina:(0,n.convertPageType)(m.tipoPagina),tipoClick:"title",nombreContenido:t,categoriaBlog:t,tipoContenido:"Blog",tipoCta:"card",valorClick:"Etiqueta",nombreSeccionPadre:_?.metadatosSeccion?.nombre})},children:e.nombre})},i))}),(0,t.jsx)("div",{className:a.default.etiquetas__boton,children:(0,t.jsx)(l.default,{variant:f?"up":"down",text:p(f?"verMenosEtiquetas":"verMasEtiquetas"),onClickEvent:()=>{g(!f)}})})]})}])},807075,e=>{e.v({acto:"EnDirecto-module-scss-module__iOhIKa__acto","blink-animation":"EnDirecto-module-scss-module__iOhIKa__blink-animation",directo:"EnDirecto-module-scss-module__iOhIKa__directo",dot:"EnDirecto-module-scss-module__iOhIKa__dot",live:"EnDirecto-module-scss-module__iOhIKa__live"})},528786,e=>{"use strict";var t=e.i(843476),a=e.i(807075),i=e.i(10655),r=e.i(978877),s=e.i(522016),n=e.i(618566);e.s(["default",0,function({url:e,titulo:o}){let{pageData:l}=(0,r.usePageData)(),c=(0,n.usePathname)();return(0,t.jsx)(s.default,{prefetch:!1,href:e,className:a.default.acto,onClick:e=>{(0,i.liveClickEvent)({urlPagina:c,tipoPagina:l.tipoPagina,nombreContenido:o})},children:o})}])},572663,e=>{"use strict";var t=e.i(843476),a=e.i(618566),i=e.i(10655),r=e.i(978877),s=e.i(522016);e.s(["default",0,function({href:e,className:n,premio:o,children:l}){let c=(0,a.usePathname)(),{pageData:u}=(0,r.usePageData)();return(0,t.jsx)(s.default,{prefetch:!1,href:`${e}`,className:n,onClick:e=>{(0,i.contentClickEvent)({tipoPagina:(0,i.convertPageType)(u.tipoPagina),urlPagina:c,tipoClick:"theme",nombreSeccionPadre:"premios-editorial",nombreContenido:o.nombre,tipoContenido:"Otros",tipoCta:"card"})},children:l})}])},433177,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(978877),r=e.i(618566);e.s(["default",0,function({nombreColeccion:e,children:s}){let{pageData:n}=(0,i.usePageData)(),o=(0,r.usePathname)();return(0,t.jsx)("div",{onClick:()=>(0,a.contentClickEvent)({tipoPagina:(0,a.convertPageType)(n.tipoPagina),urlPagina:o,tipoClick:"image",nombreSeccionPadre:"tarjeta-colecciones",nombreContenido:e,tipoContenido:"Colecciones",tipoCta:"card"}),children:s})}])},431572,e=>{"use strict";var t=e.i(843476),a=e.i(10655),i=e.i(978877),r=e.i(618566);e.s(["default",0,function({url:e,nombre:s,children:n}){let{pageData:o}=(0,i.usePageData)(),l=(0,r.usePathname)();return(0,t.jsx)("a",{href:`${e}`,onClick:()=>(0,a.contentClickEvent)({tipoPagina:(0,a.convertPageType)(o.tipoPagina),urlPagina:l,tipoClick:"title",nombreSeccionPadre:"colecciones-lista",nombreContenido:s,tipoContenido:"Colecciones",tipoCta:"textlink"}),children:n})}])},900154,e=>{e.v({"blink-animation":"ListaMostrarMas-module-scss-module__ayiCWa__blink-animation",lista:"ListaMostrarMas-module-scss-module__ayiCWa__lista",lista__footer:"ListaMostrarMas-module-scss-module__ayiCWa__lista__footer",lista__item:"ListaMostrarMas-module-scss-module__ayiCWa__lista__item"})},214077,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(691630),r=e.i(900154),s=e.i(970496);e.s(["default",0,function({children:e,itemsLimit:n,className:o,showMoreText:l="Mostrar más",showLessText:c="Mostrar menos"}){let[u,d]=(0,a.useState)(!1),[h,m]=(0,a.useState)(n),_=e.length,p=(0,s.classNames)("ListaLimitada",o||"");return(0,t.jsxs)("div",{className:p,children:[(0,t.jsx)("ul",{className:r.default.lista,children:a.Children.map(e,(e,a)=>{if(a<h)return(0,t.jsx)("li",{className:r.default.lista__item,children:e},"item_"+a)})}),n<e.length&&(0,t.jsx)("div",{className:r.default.lista__footer,children:(0,t.jsx)(i.default,{variant:u?"up":"down",onClickEvent:()=>{let e=!u;d(e),m(e?_:n)},text:u?c:l})})]})}])},439822,e=>{e.v({autor:"FirmasResultados-module-scss-module__QgMNNq__autor",autor__nombre:"FirmasResultados-module-scss-module__QgMNNq__autor__nombre","blink-animation":"FirmasResultados-module-scss-module__QgMNNq__blink-animation",expandFirmas:"FirmasResultados-module-scss-module__QgMNNq__expandFirmas",filtros:"FirmasResultados-module-scss-module__QgMNNq__filtros",filtros__activos:"FirmasResultados-module-scss-module__QgMNNq__filtros__activos",filtros__buscadores:"FirmasResultados-module-scss-module__QgMNNq__filtros__buscadores",filtros__titulo:"FirmasResultados-module-scss-module__QgMNNq__filtros__titulo",firma:"FirmasResultados-module-scss-module__QgMNNq__firma",firmaAutorInner:"FirmasResultados-module-scss-module__QgMNNq__firmaAutorInner",firmaAutorInner__button:"FirmasResultados-module-scss-module__QgMNNq__firmaAutorInner__button",firmaAutorInner__buttonsWrapper:"FirmasResultados-module-scss-module__QgMNNq__firmaAutorInner__buttonsWrapper",firmaHeader:"FirmasResultados-module-scss-module__QgMNNq__firmaHeader",firmaHeader__label:"FirmasResultados-module-scss-module__QgMNNq__firmaHeader__label",firma__autor:"FirmasResultados-module-scss-module__QgMNNq__firma__autor",firma__firmas:"FirmasResultados-module-scss-module__QgMNNq__firma__firmas",firma__firmasItem:"FirmasResultados-module-scss-module__QgMNNq__firma__firmasItem",firma__firmasItem__hora:"FirmasResultados-module-scss-module__QgMNNq__firma__firmasItem__hora",firma__firmasItem__ubicacion:"FirmasResultados-module-scss-module__QgMNNq__firma__firmasItem__ubicacion",firma__libro:"FirmasResultados-module-scss-module__QgMNNq__firma__libro",firma__retrato:"FirmasResultados-module-scss-module__QgMNNq__firma__retrato",firma__tituloLibro:"FirmasResultados-module-scss-module__QgMNNq__firma__tituloLibro",hideFirma:"FirmasResultados-module-scss-module__QgMNNq__hideFirma",libroMiniatura:"FirmasResultados-module-scss-module__QgMNNq__libroMiniatura",linkGoogleMaps:"FirmasResultados-module-scss-module__QgMNNq__linkGoogleMaps",linkInscripcion:"FirmasResultados-module-scss-module__QgMNNq__linkInscripcion",linksInscripcionGoogleMaps:"FirmasResultados-module-scss-module__QgMNNq__linksInscripcionGoogleMaps",loaderWrapper:"FirmasResultados-module-scss-module__QgMNNq__loaderWrapper",resultados__inner:"FirmasResultados-module-scss-module__QgMNNq__resultados__inner",resultados__paginacionWrapper:"FirmasResultados-module-scss-module__QgMNNq__resultados__paginacionWrapper",retrato:"FirmasResultados-module-scss-module__QgMNNq__retrato",retrato__foto:"FirmasResultados-module-scss-module__QgMNNq__retrato__foto",showFirmas:"FirmasResultados-module-scss-module__QgMNNq__showFirmas",showMoreFirmasButton:"FirmasResultados-module-scss-module__QgMNNq__showMoreFirmasButton",ubicacionTitulo:"FirmasResultados-module-scss-module__QgMNNq__ubicacionTitulo"})},155551,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(439822),r=e.i(522016),s=e.i(824526),n=e.i(81143),o=e.i(484046),l=e.i(691630),c=e.i(822596);e.s(["Firma",0,({firma:e,slug:u="",dictionary:d,dictionaryLibro:h})=>{let[m,_]=(0,a.useState)(!1),[p,f]=(0,a.useState)(!1),{t:g}=(0,c.getDictionary)(d),{t:b}=(0,c.getDictionary)(h),E=()=>{_(!m)},v=()=>{f(!p)};return(0,t.jsxs)("article",{className:`${i.default.firma}`,children:[(0,t.jsx)("div",{className:i.default.firma__retrato,children:(0,t.jsx)("div",{className:i.default.retrato,children:(0,t.jsx)(r.default,{prefetch:!1,href:`${e.seudonimo.url}`,children:(0,t.jsx)(s.default,{img:e.seudonimo.imagen,thumbKey:"m_130_130_crop",sources:[{thumbKey:"d_300_300_crop",media:"tablet"}],alt:"Retrato de "+e.seudonimo.nombre,className:i.default.retrato__foto,placeholder:n.IMAGEPLACEHOLDERS.USUARIO})})})}),(0,t.jsx)("div",{className:i.default.firma__autor,children:(0,t.jsxs)("div",{className:i.default.firmaAutorInner,children:[(0,t.jsxs)("div",{className:i.default.firmaAutorInner__text,children:[(0,t.jsx)("p",{children:(0,t.jsx)(r.default,{prefetch:!1,href:`${e.seudonimo.url}`,children:e.seudonimo.nombre})}),"000002036"===e.seudonimo.idPlaneta&&(0,t.jsx)("p",{className:i.default.firmaAutorInner__text,children:g("firmanLolaAndrea")}),(0,t.jsx)("p",{className:i.default.firma__tituloLibro,children:(0,t.jsx)(r.default,{prefetch:!1,href:`${e.libro.url}`,children:e.libro.titulo})}),(0,t.jsx)("p",{children:e.libro.nombreEditorial})]}),(0,t.jsx)("div",{className:i.default.firmaAutorInner__buttonsWrapper,children:m?(0,t.jsx)(l.default,{onClickEvent:E,type:"button",variant:"up",text:"",className:i.default.firmaAutorInner__button}):(0,t.jsx)(l.default,{onClickEvent:E,type:"button",variant:"down",text:"",className:i.default.firmaAutorInner__button})})]})}),(0,t.jsx)("div",{className:`${i.default.firma__libro} ${m?i.default.expandFirmas:""}`,children:(0,t.jsx)(r.default,{prefetch:!1,href:`${e.libro.url}`,children:(0,t.jsx)(o.default,{dictionaryLibro:h,libro:e.libro,variantTags:"small",className:i.default.libroMiniatura,showTags:!1,translationsObj:{portadaAlt:b("portadaAlt")}})})}),(0,t.jsxs)("div",{className:`${i.default.firma__firmas} ${m?i.default.expandFirmas:""} ${p?i.default.showFirmas:""}`,children:[e.ubicaciones.map((e,a)=>(0,t.jsxs)("div",{className:`${i.default.firma__firmasItem} ${a+1>3?i.default.hideFirma:""}`,children:[(0,t.jsxs)("div",{className:i.default.firma__firmasItem__ubicacion,children:[(0,t.jsx)("p",{className:i.default.ubicacionTitulo,children:(0,t.jsx)("strong",{children:e.ubicacion.lugar})}),(0,t.jsx)("p",{children:e.ubicacion.direccion}),(0,t.jsx)("p",{children:e.ubicacion.localidad}),(e.ubicacion.conLinkInscripcion||e.googleMapsLink)&&(0,t.jsxs)("p",{className:i.default.linksInscripcionGoogleMaps,children:[e.ubicacion.conLinkInscripcion&&(0,t.jsx)("span",{className:i.default.linkInscripcion,children:(0,t.jsx)(r.default,{prefetch:!1,href:e.ubicacion.linkInscripcion,target:"_blank",children:g("inscripcion")})}),e.ubicacion.conLinkInscripcion&&e.googleMapsLink&&(0,t.jsx)("span",{children:"-"}),e.googleMapsLink&&(0,t.jsx)("span",{className:i.default.linkGoogleMaps,children:(0,t.jsx)(r.default,{prefetch:!1,href:e.googleMapsLink,target:"_blank",children:g("verMapa")})})]})]}),(0,t.jsxs)("div",{className:i.default.firma__firmasItem__hora,children:["sant-jordi"!==u&&(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{children:e.fechaInicioFirma}),e.fechaFinFirma&&e.fechaInicioFirma!==e.fechaFinFirma&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("span",{children:"-"})," ",(0,t.jsx)("span",{children:e.fechaFinFirma})]})]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{children:e.horaInicioFirma}),e.horaFinFirma&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("span",{children:"-"})," ",(0,t.jsx)("span",{children:e.horaFinFirma})]})," ","h"]})]})]},a)),e.ubicaciones.length>3&&(0,t.jsx)("div",{children:p?(0,t.jsx)(l.default,{onClickEvent:v,type:"button",variant:"up",text:g("mostrarMenos"),className:i.default.showMoreFirmasButton}):(0,t.jsx)(l.default,{onClickEvent:v,type:"button",variant:"down",text:g("mostrarMas"),className:i.default.showMoreFirmasButton})})]})]})}])},796629,e=>{e.v({"blink-animation":"FiltroActivo-module-scss-module__9dnmEW__blink-animation",button:"FiltroActivo-module-scss-module__9dnmEW__button",button__icon:"FiltroActivo-module-scss-module__9dnmEW__button__icon"})},39022,e=>{e.v({"blink-animation":"FiltroBuscadorLocal-module-scss-module__hNI37q__blink-animation",buttonBorrarFiltros:"FiltroBuscadorLocal-module-scss-module__hNI37q__buttonBorrarFiltros",buttonFiltro:"FiltroBuscadorLocal-module-scss-module__hNI37q__buttonFiltro",buttonFiltro__icon:"FiltroBuscadorLocal-module-scss-module__hNI37q__buttonFiltro__icon",buttonLoadMore:"FiltroBuscadorLocal-module-scss-module__hNI37q__buttonLoadMore",filtroBuscador:"FiltroBuscadorLocal-module-scss-module__hNI37q__filtroBuscador",filtroBuscador__buttons:"FiltroBuscadorLocal-module-scss-module__hNI37q__filtroBuscador__buttons",filtroBuscador__expanded:"FiltroBuscadorLocal-module-scss-module__hNI37q__filtroBuscador__expanded",filtroBuscador__iconSearch:"FiltroBuscadorLocal-module-scss-module__hNI37q__filtroBuscador__iconSearch",filtroBuscador__inputSearch:"FiltroBuscadorLocal-module-scss-module__hNI37q__filtroBuscador__inputSearch",filtroBuscador__inputSearchWra
123pper:"FiltroBuscadorLocal-module-scss-module__hNI37q__filtroBuscador__inputSearchWrapper",filtroBuscador__listResults:"FiltroBuscadorLocal-module-scss-module__hNI37q__filtroBuscador__listResults",filtroBuscador__listResultsItem:"FiltroBuscadorLocal-module-scss-module__hNI37q__filtroBuscador__listResultsItem",filtroBuscador__showingText:"FiltroBuscadorLocal-module-scss-module__hNI37q__filtroBuscador__showingText"})},387687,e=>{"use strict";var t,a=e.i(271645);function i(){return(i=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 4a7 7 0 1 0 4.856 12.041 1 1 0 0 1 .185-.185A7 7 0 0 0 11 4m7.032 12.618a9 9 0 1 0-1.414 1.414l3.675 3.675a1 1 0 0 0 1.414-1.414z",clipRule:"evenodd"})))}])},907912,e=>{e.v({"blink-animation":"ItemFiltroBuscadorLocal-module-scss-module___n4wWq__blink-animation",item:"ItemFiltroBuscadorLocal-module-scss-module___n4wWq__item",item__text:"ItemFiltroBuscadorLocal-module-scss-module___n4wWq__item__text"})},175721,e=>{"use strict";var t,a,i=e.i(843476),r=e.i(271645),s=e.i(618566),n=e.i(796629);function o(){return(o=Object.assign.bind()).apply(null,arguments)}let l=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 21"},e),t||(t=r.createElement("path",{fill:"currentColor",d:"M10.917 2.455a8.462 8.462 0 1 0 0 16.923 8.462 8.462 0 0 0 0-16.923m-10 8.462c0-5.523 4.477-10 10-10s10 4.477 10 10-4.478 10-10 10-10-4.478-10-10"})),a||(a=r.createElement("path",{fill:"currentColor",d:"M14.88 7.7a.77.77 0 1 0-1.089-1.088l-3.045 3.046L7.7 6.612A.77.77 0 0 0 6.612 7.7l3.046 3.046-3.046 3.045A.77.77 0 0 0 7.7 14.88l3.046-3.045 3.045 3.045a.77.77 0 0 0 1.088-1.088l-3.045-3.045z"})))};function c({text:e,onClick:t,disabled:a=!1,loading:r=!1}){return(0,i.jsxs)("button",{...t&&{onClick:t},className:n.default.button,disabled:a,children:[(0,i.jsx)("span",{className:n.default.button__icon,children:r?"....":(0,i.jsx)(l,{})}),e]})}var u=e.i(439822),d=e.i(936540),h=e.i(39022),m=e.i(564156),_=e.i(777386),p=e.i(387687),f=e.i(822596);function g({loading:e=!1,label:t,listItems:a,selectedItems:s,itemKeyName:n,itemKeySearch:o,itemString:l,addItems:c,deleteItems:u,placeholderInput:b,firmasDict:E}){let{t:v}=(0,f.getDictionary)(E),[A,T]=(0,r.useState)(!1),C=(0,r.useRef)(null),[y,x]=(0,r.useState)(a),[S,N]=(0,r.useState)(""),[w,I]=(0,r.useState)([]);return(0,r.useEffect)(()=>{let e=e=>{C.current&&!C?.current?.contains(e.target)&&T(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[C]),(0,r.useEffect)(()=>{I(s?.map(e=>e.id))},[s]),(0,i.jsxs)("div",{ref:C,className:h.default.filtroBuscador,children:[(0,i.jsxs)(d.default,{disabled:e,type:"button",variant:"secondary",onClick:()=>T(!A),className:h.default.buttonFiltro,children:[(0,i.jsx)("span",{children:t}),e?(0,i.jsx)("span",{className:h.default.buttonFiltro__icon,children:"..."}):(0,i.jsx)("span",{className:h.default.buttonFiltro__icon,children:A?(0,i.jsx)(m.default,{}):(0,i.jsx)(_.default,{})})]}),A&&(0,i.jsxs)("div",{className:h.default.filtroBuscador__expanded,children:[(0,i.jsxs)("div",{className:h.default.filtroBuscador__inputSearchWrapper,children:[(0,i.jsx)("input",{className:h.default.filtroBuscador__inputSearch,type:"text",readOnly:!A,placeholder:b,value:S,onChange:e=>{let t=e.target.value;if(""===t)x(a);else{let e=t.toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,"");x(a.filter(t=>t[o].toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e)))}N(t)}}),(0,i.jsx)("span",{className:h.default.filtroBuscador__iconSearch,children:(0,i.jsx)(p.default,{})})]}),(0,i.jsx)("ul",{className:h.default.filtroBuscador__listResults,children:y?.map(e=>(0,i.jsx)("li",{className:h.default.filtroBuscador__listResultsItem,onClick:()=>(e=>{let t=[...w];if(t.includes(e)){let a=t.indexOf(e);t.splice(a,1)}else t.push(e);I(t)})(e[n]),children:l(e,w?.includes(e[n]))},e[n]))}),(0,i.jsxs)("div",{className:h.default.filtroBuscador__buttons,children:[(0,i.jsx)(d.default,{type:"button",className:h.default.buttonBorrarFiltros,onClick:()=>{u(w),N(""),I([]),x(a),T(!1)},variant:"secondary",size:"small",children:v("borrarFiltros")}),(0,i.jsxs)(d.default,{type:"button",onClick:()=>{c(a.filter(e=>w.includes(e[n]))),T(!1),N(""),x(a)},variant:"primary",size:"small",disabled:w?.length===0,children:[v("aplicar")," (",w?.length,")"]})]})]})]})}var b=e.i(907912);function E({id:e,isSelected:t,labelText:a}){return(0,i.jsxs)("label",{htmlFor:e,className:b.default.item,children:[(0,i.jsx)("input",{id:e,type:"checkbox",checked:t,onChange:()=>{}}),(0,i.jsx)("span",{className:b.default.item__text,children:a})]})}let v=({filtro:e,optimisticFilters:t,setOptimisticFilters:a})=>
123{let[n,o]=(0,r.useTransition)(),l=new URLSearchParams((0,s.useSearchParams)()),u=(0,s.usePathname)(),{replace:d}=(0,s.useRouter)();return(0,i.jsx)(c,{text:e.texto,onClick:()=>{o(async()=>{let i=t.idsSeudonimos.filter(t=>t.id!==e.id),r=t.idsUbicaciones.filter(t=>t.id!==e.id);if(a({idsSeudonimos:i,idsUbicaciones:r}),i.length>0){let e=i?.map(e=>e.id).join(",");l.set("idsSeudonimos",e)}else l.delete("idsSeudonimos");if(r.length>0){let e=r?.map(e=>e.id).join(",");l.set("idsUbicaciones",e)}else l.delete("idsUbicaciones");l.delete("numeroPagina"),l.delete("slugFirma"),l.delete("idFirma"),d(`${u}?${l.toString()}`,{scroll:!1})})},disabled:n,loading:n})};e.s(["default",0,function({urlPagina:e,filtros:t,filtrosConClaveId:a,searchParams:n,firmasDict:o}){let{t:l}=(0,f.getDictionary)(o),c=Object.fromEntries(n),d=void 0===c.idsSeudonimos?[]:c.idsSeudonimos?.split(","),h=void 0===c.idsUbicaciones?[]:c.idsUbicaciones?.split(","),m=d.map(e=>a.seudonimos[e]),_=h.map(e=>a.ubicacion[e]),{replace:p}=(0,s.useRouter)(),[b,A]=(0,r.useOptimistic)({idsSeudonimos:m,idsUbicaciones:_}),[T,C]=(0,r.useTransition)(),[y,x]=(0,r.useTransition)(),S=new URLSearchParams,N=t=>{t.idsSeudonimos.length>0?S.set("idsSeudonimos",t.idsSeudonimos?.map(e=>e.id)?.join(",")):S.delete("idsSeudonimos"),t.idsUbicaciones.length>0?S.set("idsUbicaciones",t.idsUbicaciones?.map(e=>e.id)?.join(",")):S.delete("idsUbicaciones"),S.delete("numeroPagina"),S.delete("slugFirma"),S.delete("idFirma"),p(`${e}?${S.toString()}`,{scroll:!1})};return(0,i.jsxs)("div",{className:u.default.filtros,children:[(0,i.jsx)("p",{className:u.default.filtros__titulo,children:"Filtros"}),(0,i.jsxs)("div",{className:u.default.filtros__buscadores,children:[(0,i.jsx)(g,{firmasDict:o,loading:T,label:l("autor/a"),listItems:t.seudonimos,selectedItems:b.idsSeudonimos,itemKeyName:"id",itemKeySearch:"texto",placeholderInput:l("escribeNombre"),itemString:(e,t)=>(0,i.jsx)(E,{id:e.id,isSelected:t,labelText:e.texto}),addItems:e=>{C(()=>{let t={...b,idsSeudonimos:e};A(t),N(t)})},deleteItems:e=>{C(()=>{let e={...b,idsSeudonimos:[]};A(e),N(e)})}}),(0,i.jsx)(g,{firmasDict:o,loading:y,label:l("ubicacion"),listItems:t.ubicacion,selectedItems:b.idsUbicaciones,itemKeyName:"id",itemKeySearch:"texto",placeholderInput:l("escribeUbicacion"),itemString:(e,t)=>(0,i.jsx)(E,{id:e.id,isSelected:t,labelText:e.texto}),addItems:e=>{x(()=>{let t={...b,idsUbicaciones:e};A(t),N(t)})},deleteItems:e=>{x(()=>{let e={...b,idsUbicaciones:[]};A(e),N(e)})}})]}),(b.idsSeudonimos?.length>0||b.idsUbicaciones?.length>0)&&(0,i.jsx)("div",{className:u.default.filtros__activos,children:b.idsSeudonimos.concat(b.idsUbicaciones).map(e=>(0,i.jsx)(v,{filtro:e,optimisticFilters:b,setOptimisticFilters:A},e.id))})]})}],175721)},757609,e=>{e.v({"blink-animation":"FirmaAutor-module-scss-module__MRU2-W__blink-animation",expandFirmas:"FirmaAutor-module-scss-module__MRU2-W__expandFirmas",fecha:"FirmaAutor-module-scss-module__MRU2-W__fecha",fecha__ano:"FirmaAutor-module-scss-module__MRU2-W__fecha__ano",fecha__dia:"FirmaAutor-module-scss-module__MRU2-W__fecha__dia",fecha__mes:"FirmaAutor-module-scss-module__MRU2-W__fecha__mes",firma:"FirmaAutor-module-scss-module__MRU2-W__firma",firmaHeader:"FirmaAutor-module-scss-module__MRU2-W__firmaHeader",firmaHeader__label:"FirmaAutor-module-scss-module__MRU2-W__firmaHeader__label",firma__ciudad:"FirmaAutor-module-scss-module__MRU2-W__firma__ciudad",firma__dia:"FirmaAutor-module-scss-module__MRU2-W__firma__dia",firma__hora:"FirmaAutor-module-scss-module__MRU2-W__firma__hora",firma__libro:"FirmaAutor-module-scss-module__MRU2-W__firma__libro",firma__ubicacion:"FirmaAutor-module-scss-module__MRU2-W__firma__ubicacion",firma__ubicacionCiudad:"FirmaAutor-module-scss-module__MRU2-W__firma__ubicacionCiudad",firmas:"FirmaAutor-module-scss-module__MRU2-W__firmas",footerFirmas:"FirmaAutor-module-scss-module__MRU2-W__footerFirmas",footerFirmas__link:"FirmaAutor-module-scss-module__MRU2-W__footerFirmas__link",hideFirma:"FirmaAutor-module-scss-module__MRU2-W__hideFirma",linkGoogleMaps:"FirmaAutor-module-scss-module__MRU2-W__linkGoogleMaps",linkInscripcion:"FirmaAutor-module-scss-module__MRU2-W__linkInscripcion",showFirmas:"FirmaAutor-module-scss-module__MRU2-W__showFirmas",showMoreFirmasButton:"FirmaAutor-module-scss-module__MRU2-W__showMoreFirmasButton"})},715113,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(757609),r=e.i(522016),s=e.i(691630),n=e.i(496044),o=e.i(822596);let l=({fecha:e,monthNames:a})=>{let[r,s,n]=e.split("/"),o=new Date(`${n}-${s}-${r}`);return(0,t.jsxs)("p",{className:i.default.fecha,children:[(0,t.jsx)("span",{className:i.default.fecha__dia,children:r}),(0,t.jsx)("span",{className:i.default.fecha__mes,children:a[o.getMonth()]})]})};e.s(["default",0,function({firmas:e,firma:c,dictionary:u,dictionaryDefault:d}){let{t:h}=(0,o.getDictionary)(d),{t:m}=(0,o.getDictionary)(u),[_,p]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1),b=()=>{g(!f)};return(0,t.jsx)(t.Fragment,{children:e.map((e,a)=>(0,t.jsxs)("div",{children:[(0,t.jsx)("article",{className:`${i.default.firmas} ${_?i.default.expandFirmas:""} ${f?i.default.showFirmas:""}`,children:e.ubicaciones.map((e,a)=>(0,t.jsxs)("div",{className:`${i.default.firma} ${a+1>3?i.default.hideFirma:""}`,children:[(0,t.jsx)("div",{className:i.default.firma__dia,children:(0,t.jsx)(l,{fecha:e.fechaInicioFirma,monthNames:h("meses")})}),(0,t.jsxs)("div",{className:i.default.firma__ubicacion,children:[(0,t.jsx)("p",{className:i.default.firma__ubicacionCiudad,children:(0,t.jsx)("strong",{children:e.ubicacion.localidad})}),(0,t.jsx)("p",{className:i.default.ubicacionTitulo,children:(0,t.jsx)("strong",{children:e.ubicacion.lugar})}),(0,t.jsx)("p",{children:e.ubicacion.direccion}),(0,t.jsx)("p",{children:e.ubicacion.localidad}),(e.ubicacion.conLinkInscripcion||e.googleMapsLink)&&(0,t.jsxs)("p",{className:i.default.linksInscripcionGoogleMaps,children:[e.ubicacion.conLinkInscripcion&&(0,t.jsx)("span",{className:i.default.linkInscripcion,children:(0,t.jsx)(r.default,{prefetch:!1,href:e.ubicacion.linkInscripcion,target:"_blank",children:m("inscripcion")})}),e.ubicacion.conLinkInscripcion&&e.googleMapsLink&&(0,t.jsx)("span",{children:"-"}),e.googleMapsLink&&(0,t.jsx)("span",{className:i.default.linkGoogleMaps,children:(0,t.jsx)(r.default,{prefetch:!1,href:e.googleMapsLink,target:"_blank",children:m("verMapa")})})]})]}),(0,t.jsx)("div",{className:i.default.firma_hora,children:(0,t.jsx)("p",{children:(0,t.jsxs)("strong",{children:[(0,t.jsx)("span",{children:e.horaInicioFirma}),e.horaFinFirma&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("span",{children:"-"})," ",(0,t.jsx)("span",{children:e.horaFinFirma})]}),"h."]})})})]},a+"_ubicacions"))}),(0,t.jsxs)("div",{className:i.default.footerFirmas,children:[e.ubicaciones.length>3&&(0,t.jsx)(t.Fragment,{children:f?(0,t.jsx)(s.default,{onClickEvent:b,type:"button",variant:"up",text:m("mostrarMenos"),className:i.default.showMoreFirmasButton}):(0,t.jsx)(s.default,{onClickEvent:b,type:"button",variant:"down",text:m("mostrarMas"),className:i.default.showMoreFirmasButton})}),c&&(0,t.jsx)(n.default,{className:i.default.footerFirmas__link,path:`${m("translatedUrl")}-${c.slug}`,size:"small",children:(0,t.jsx)(t.Fragment,{children:m("todasLasFirmas",{titulo:c.titulo})})})]})]},a))})}])},98925,e=>{"use strict";var t=e.i(843476),a=e.i(618566),i=e.i(10655),r=e.i(978877),s=e.i(283231);e.s(["default",0,function({className:e,children:n}){let o=(0,a.usePathname)(),{pageData:l}=(0,r.usePageData)(),c=(0,s.useModuleGAMetadata)();return(0,t.jsx)("div",{className:e,onClick:()=>(0,i.contentClickEvent)({tipoPagina:(0,i.convertPageType)(l.tipoPagina),urlPagina:o,nombreContenido:"sinopsis read more",tipoContenido:"Otros",nombreSeccionPadre:c?.metadatosSeccion?.nombre,tipoClick:"cta",tipoCta:"textlink"}),children:n})}])},283490,e=>{e.v({basesWrapper:"BasesPremio-module-scss-module__f-NtZa__basesWrapper","blink-animation":"BasesPremio-module-scss-module__f-NtZa__blink-animation",downloadBtn:"BasesPremio-module-scss-module__f-NtZa__downloadBtn",icon:"BasesPremio-module-scss-module__f-NtZa__icon",participar:"BasesPremio-module-scss-module__f-NtZa__participar"})},658930,e=>{"use strict";var t,a=e.i(843476),i=e.i(496044),r=e.i(271645);function s(){return(s=Object.assign.bind()).apply(null,arguments)}let n=function(e){return r.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18"},e),t||(t=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.7 1.8a.9.9 0 1 1 0-1.8h5.4a.9.9 0 0 1 .9.9v5.4a.9.9 0 1 1-1.8 0V3.073l-8.364 8.363a.9.9 0 1 1-1.272-1.272L14.927 1.8zm-9 2.7a.9.9 0 0 0-.9.9v9.9a.9.9 0 0 0 .9.9h9.9a.9.9 0 0 0 .9-.9V9.9a.9.9 0 1 1 1.8 0v5.4a2.7 2.7 0 0 1-2.7 2.7H2.7A2.7 2.7 0 0 1 0 15.3V5.4a2.7 2.7 0 0 1 2.7-2.7h5.4a.9.9 0 1 1 0 1.8z",clipRule:"evenodd"})))};var o=e.i(283490),l=e.i(618566);e.s(["default",0,function({btnText:e="Participar"}){let t=(0,l.usePathname)(),r=t.startsWith("/premios/premio-paidos/64"),s=t.startsWith("/premios/premio-biblioteca-breve/5"),c=t.startsWith("/premios/premio-espasa/18"),u=t.startsWith("/premios/premio-tusquets-editores-de-novela/46"),d=t.startsWith("/premios/premio-espasaespoesia/58"),h=t.startsWith("/premios/premio-primavera-de-novela/17"),m=t.startsWith("/premios/premio-de-novela-policia-nacional/65"),_=t.startsWith("/premios/premio-espasa-calpe-de-novela-juvenil/71");return(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsxs)(i.default,{path:"http://premiopaidos.com/",targetBlank:!0,className:o.default.downloadBtn,children:[(0,a.jsx)("span",{className:o.default.icon,children:(0,a.jsx)(n,{})}),e]}),c&&(0,a.jsxs)(i.default,{path:"https://www.premioespasa.com/",targetBlank:!0,className:o.default.downloadBtn,children:[(0,a.jsx)("span",{className:o.default.icon,children:(0,a.jsx)(n,{})}),e]}),u&&(0,a.jsxs)(i.default,{path:"https://www.premiotusquetsdenovela.com",targetBlank:!0,className:o.default.downloadBtn,children:[(0,a.jsx)("span",{className:o.default.icon,children:(0,a.jsx)(n,{})}),e]}),d&&(0,a.jsxs)(i.default,{path:"https://www.premioespasaespoesia.com",targetBlank:!0,className:o.default.downloadBtn,children:[(0,a.jsx)("span",{className:o.default.icon,children:(0,a.jsx)(n,{})}),e]}),h&&(0,a.jsxs)(i.default,{path:"https://www.premioprimaveradenovela.com",targetBlank:!0,className:o.default.downloadBtn,children:[(0,a.jsx)("span",{className:o.default.icon,children:(0,a.jsx)(n,{})}),e]}),s&&(0,a.jsxs)(i.default,{path:"https://www.premiobibliotecabreve.com/",targetBlank:!0,className:o.default.downloadBtn,children:[(0,a.jsx)("span",{className:o.default.icon,children:(0,a.jsx)(n,{})}),e]}
123),m&&(0,a.jsxs)(i.default,{path:"https://www.premionovelapolicianacional.com/",targetBlank:!0,className:o.default.downloadBtn,children:[(0,a.jsx)("span",{className:o.default.icon,children:(0,a.jsx)(n,{})}),e]}),_&&(0,a.jsxs)(i.default,{path:"https://premioespasacalpenovelajuvenil.com",targetBlank:!0,className:o.default.downloadBtn,children:[(0,a.jsx)("span",{className:o.default.icon,children:(0,a.jsx)(n,{})}),e]})]})}],658930)},126727,e=>{e.v({"blink-animation":"ShowMoreElements-module-scss-module__VZdcuG__blink-animation",itemsToHide:"ShowMoreElements-module-scss-module__VZdcuG__itemsToHide",itemsToHideColeccionesSeries:"ShowMoreElements-module-scss-module__VZdcuG__itemsToHideColeccionesSeries",itemsToHideEdicionesAnteriores:"ShowMoreElements-module-scss-module__VZdcuG__itemsToHideEdicionesAnteriores",itemsWrapper:"ShowMoreElements-module-scss-module__VZdcuG__itemsWrapper",showAll:"ShowMoreElements-module-scss-module__VZdcuG__showAll",showHideButton:"ShowMoreElements-module-scss-module__VZdcuG__showHideButton",showHideButton__icon:"ShowMoreElements-module-scss-module__VZdcuG__showHideButton__icon",showHideButton__showLess:"ShowMoreElements-module-scss-module__VZdcuG__showHideButton__showLess",showHideButton__showMore:"ShowMoreElements-module-scss-module__VZdcuG__showHideButton__showMore",title:"ShowMoreElements-module-scss-module__VZdcuG__title",wrapper:"ShowMoreElements-module-scss-module__VZdcuG__wrapper"})},619444,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(126727),r=e.i(654077),s=e.i(94425),n=e.i(970496);e.s(["default",0,function({children:e,title:o,textMoreButton:l,textLessButton:c,showButton:u,hideItemsVariant:d="default",showMoreLessBtnsClassName:h="",showMoreLessContainerClassName:m=""}){let _=(0,a.useRef)(null),p=(0,a.useRef)(null);return(0,t.jsxs)("div",{className:i.default.wrapper,children:[(0,t.jsx)("ul",{className:`${i.default.itemsWrapper} ${(()=>{switch(d){case"colecciones-series":return i.default.itemsToHideColeccionesSeries;case"ediciones-anteriores":return i.default.itemsToHideEdicionesAnteriores;default:return i.default.itemsToHide}})()}`,ref:_,children:e}),u&&(0,t.jsxs)("button",{onClick:()=>{_.current&&_.current.classList.toggle(i.default.showAll),p.current&&p.current.classList.toggle(i.default.showAll)},className:(0,n.classNames)(i.default.showHideButton,m),ref:p,children:[(0,t.jsxs)("span",{className:(0,n.classNames)(i.default.showHideButton__showMore,h),children:[l," ",(0,t.jsx)(r.default,{className:i.default.showHideButton__icon})]}),(0,t.jsxs)("span",{className:(0,n.classNames)(i.default.showHideButton__showLess,h),children:[c," ",(0,t.jsx)(s.default,{className:i.default.showHideButton__icon})]})]})]})}])},607367,e=>{e.v({"blink-animation":"recuperarPassword-module-scss-module__9jfHvW__blink-animation",btnElements:"recuperarPassword-module-scss-module__9jfHvW__btnElements",errorMsg:"recuperarPassword-module-scss-module__9jfHvW__errorMsg",formField__error:"recuperarPassword-module-scss-module__9jfHvW__formField__error",formField__icon:"recuperarPassword-module-scss-module__9jfHvW__formField__icon",formField__innerInput:"recuperarPassword-module-scss-module__9jfHvW__formField__innerInput",formField__rightSection:"recuperarPassword-module-scss-module__9jfHvW__formField__rightSection",formField__root:"recuperarPassword-module-scss-module__9jfHvW__formField__root",notificationContainer:"recuperarPassword-module-scss-module__9jfHvW__notificationContainer",recuperarPassword:"recuperarPassword-module-scss-module__9jfHvW__recuperarPassword",recuperarPassword__errorText:"recuperarPassword-module-scss-module__9jfHvW__recuperarPassword__errorText",recuperarPassword__errorTitle:"recuperarPassword-module-scss-module__9jfHvW__recuperarPassword__errorTitle",recuperarPassword__errorWrapper:"recuperarPassword-module-scss-module__9jfHvW__recuperarPassword__errorWrapper",recuperarPassword__form:"recuperarPassword-module-scss-module__9jfHvW__recuperarPassword__form",recuperarPassword__text:"recuperarPassword-module-scss-module__9jfHvW__recuperarPassword__text",recuperarPassword__textWrapper:"recuperarPassword-module-scss-module__9jfHvW__recuperarPassword__textWrapper",recuperarPassword__title:"recuperarPassword-module-scss-module__9jfHvW__recuperarPassword__title",recuperarPassword__wrapper:"recuperarPassword-module-scss-module__9jfHvW__recuperarPassword__wrapper",successMsg:"recuperarPassword-module-scss-module__9jfHvW__successMsg"})},597307,e=>{"use strict";var t=e.i(843476),a=e.i(607367),i=e.i(296175),r=e.i(271645),s=e.i(822596),n=e.i(132440),o=e.i(95187);let l=(0,o.createServerReference)("60132333e6a376962fbee5b55e715d843f2b1e1bde",o.callServer,void 0,o.findSourceMapURL,"recuperarPasswordAction");var c=e.i(283455),u=e.i(177936),d=e.i(534494);let h={password:null,repeatPassword:null,token:null};e.s(["default",0,function({token:e,dict:o}){let{t:m}=(0,s.getDictionary)(o),[_,p]=(0,r.useActionState)(l,h),{errors:f,clearError:g}=(0,c.default)(_);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("form",{action:p,name:"form-registro",id:"form-recuperar-pass",children:[(0,t.jsx)("input",{type:"hidden",name:"token",value:e}),(0,t.jsxs)(i.default,{error:f?.password,children:[(0,t.jsx)("label",{htmlFor:"password",children:m("passwordLabel")}),(0,t.jsx)("input",{autoComplete:"off",type:"password","aria-label":m("passwordLabel"),placeholder:m("passwordPlaceholder"),id:"password",name:"password",onChange:()=>g("password")}),f?.password?(0,t.jsx)(u.default,{variant:"error",children:m(f?.password)}):(0,t.jsx)(d.default,{children:m("registerPasswordHelpText")})]}),(0,t.jsxs)(i.default,{error:f?.repeatPassword,children:[(0,t.jsx)("label",{htmlFor:"repeatPassword",children:m("repeatPasswordLabel")}),(0,t.jsx)("input",{autoComplete:"off",type:"password","aria-label":m("repeatPasswordLabel"),placeholder:m("repeatPasswordPlaceholder"),id:"repeatPassword",name:"repeatPassword",onChange:()=>g("repeatPassword")}),f?.repeatPassword&&(0,t.jsx)(u.default,{variant:"error",children:m(f?.repeatPassword)})]}),(0,t.jsxs)(i.default,{className:a.default.submitButtonWrapper,children:[f?.form&&(0,t.jsx)(u.default,{variant:"error",children:m(f?.form)}),(0,t.jsx)(n.default,{defaultTitle:m("recuperarContrasena"),loadingTitle:m("recuperandoContrasena")})]})]})})}],597307)},517775,e=>{e.v({"blink-animation":"ValidacionEmail-module-scss-module__GX6kbG__blink-animation",validacionEmail__buttonLogin:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__buttonLogin",validacionEmail__buttonLogin__icon:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__buttonLogin__icon",validacionEmail__buttonLogin__text:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__buttonLogin__text",validacionEmail__cabecera:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__cabecera",validacionEmail__error:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__error",validacionEmail__imagen:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__imagen",validacionEmail__message:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__message",validacionEmail__messageWrapper:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__messageWrapper",validacionEmail__success:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__success",validacionEmail__text:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__text",validacionEmail__title:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__title",validacionEmail__wrapper:"ValidacionEmail-module-scss-module__GX6kbG__validacionEmail__wrapper"})},141164,e=>{"use strict";var t,a=e.i(271645);function i(){return(i=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6M7 7a5 5 0 1 1 10 0A5 5 0 0 1 7 7m-2.536 8.465A5 5 0 0 1 8 14h8a5 5 0 0 1 5 5v2a1 1 0 1 1-2 0v-2a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v2a1 1 0 1 1-2 0v-2a5 5 0 0 1 1.464-3.536",clipRule:"evenodd"})))}])},667478,e=>{e.v({"blink-animation":"EncuestaGuiaLecturas-module-scss-module__W2GUUW__blink-animation",containerEncuesta:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__containerEncuesta",encuesta:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta",encuesta__buttons:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__buttons",encuesta__flexGrid:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__flexGrid",encuesta__flexGrid__center:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__flexGrid__center",encuesta__flexGrid__item:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__flexGrid__item",encuesta__flexGrid__item__innerWrapper:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__flexGrid__item__innerWrapper",encuesta__flexGrid__item__innerWrapper__autor:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__flexGrid__item__innerWrapper__autor",encuesta__flexGrid__item__innerWrapper__editorial:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__flexGrid__item__innerWrapper__editorial",encuesta__flexGrid__item__innerWrapper__selected:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__flexGrid__item__innerWrapper__selected",encuesta__flexGrid__item__innerWrapper__text:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__flexGrid__item__innerWrapper__text",encuesta__headText:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__headText",encuesta__header:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__header",encuesta__header__title:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__header__title",encuesta__logo:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__logo",encuesta__logo__wrapper:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__logo__wrapper",encuesta__nextStepBtn:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__nextStepBtn",encuesta__stepTematicas:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__stepTematicas",encuesta__stepTematicas__tematicasGrid:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__stepTematicas__tematicasGrid",encuesta__stepTematicas__tematicasWrapper:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__stepTematicas__tematicasWrapper",encuesta__stepTematicas__tematicasWrapper__marcarTodas:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__stepTematicas__tematicasWrapper__marcarTodas",encuesta__step__wrapper:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__step__wrapper",encuesta__step__wrapper__show:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__step__wrapper__show",encuesta__success:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__success",encuesta__success__buttons:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__success__buttons",encuesta__success__image:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__success__image",encuesta__success__text:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__success__text",encuesta__success__title:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__success__title",encuesta__tematicas:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__tematicas",encuesta__tematicas__item:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__tematicas__item",encuesta__text:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__text",encuesta__title:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__encuesta__title",separators:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__separators",stepCompletedIcon:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__stepCompletedIcon",stepIcon:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__stepIcon",stepProgressIcon:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__stepProgressIcon",steps:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__steps",steps__item:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__steps__item",steps__item__number:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__steps__item__number",steps__item__number__active:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__steps__item__number__active",steps__item__number__completed:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__steps__item__number__completed",steps__item__separator:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__steps__item__separator",steps__item__separator__completed:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__steps__item__separator__completed",validacionEmail__text:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__validacionEmail__text",wrapper_marcar_todas:"EncuestaGuiaLecturas-module-scss-module__W2GUUW__wrapper_marcar_todas"})},229624,e=>{"use strict";var t,a,i,r,s=e.i(843476),n=e.i(517775),o=e.i(271645),l=e.i(95187);let c=(0,l.createServerReference)("40fb896d8282be2c93812cf0cf7b6e6d80db1c7f20",l.callServer,void 0,l.findSourceMapURL,"autologinConEncuestaYListasAction");var u=e.i(947885),d=e.i(496044);
123function h(){return(h=Object.assign.bind()).apply(null,arguments)}let m=function(e){return o.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"})),a||(a=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 7a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V8a1 1 0 0 1 1-1M11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})))};var _=e.i(141164),p=e.i(550369),f=e.i(822596),g=e.i(389649),b=e.i(936540);e.i(247167);var E=e.i(667478),v=e.i(81143),A=e.i(824526);function T({libro:e}){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(A.default,{img:e.imagenPortada,thumbKey:"m_175_310",sources:[{thumbKey:"d_295_510",media:"tablet"}],alt:"Portada "+e.titulo,className:E.default.encuesta__imagen,placeholder:v.IMAGEPLACEHOLDERS.LIBRO_PORTADA})})}function C({editorial:e,editorialDict:t}){let{t:a}=(0,f.getDictionary)(t);return(0,s.jsx)("div",{className:E.default.encuesta__logo__wrapper,children:(0,s.jsx)(A.default,{img:e.imagenLogo,placeholder:v.IMAGEPLACEHOLDERS.EDITORIAL,className:E.default.encuesta__logo,alt:`${a("altFichaEditorial")} ${e.nombre}`})})}let y=(0,l.createServerReference)("7c4c8daece5a2f3494bc28b3c6ad816b45faccfc5d",l.callServer,void 0,l.findSourceMapURL,"guardarDatosEncuesta"),x="a3eb00e2cca3a460";function S(){return(S=Object.assign.bind()).apply(null,arguments)}let N=function(e){return o.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 78 120"},e),i||(i=o.createElement("path",{fill:"#44BC17",d:"m58.102 101.819-1.64-11.294 17.788-1.222-3.672-79.805H12.184L7.724 5.92l53.198-.509V0L3.012 3.183 0 87.075l7.725 6.799 19.198-1.324.927 9.409-4.002 16.793L39.73 120l-7.941-8.34 4.675-11 .102-8.772 9.3-.637 3.837 11.026.14 15.851 13.71-1.247-8.26-4.991z"})),r||(r=o.createElement("path",{fill:"#1B1C1E",d:"m13.206 69.702 13.818-4.936L64.661 78.75l-9.931-54-29.898 25.466-14.332 2.16zM63.665 42.487l-1.97 3.325 2.911 2.142s.737 3.016.89 3.085c.155.068-1.677 2.759-1.677 2.759l2.67 1.885 2.552-5.176-2.192-5.57-3.202-2.45zM67.242 37.826c0-.189 1.404-2.794 1.404-2.794l7.14 6.461 2.21 10.283-3.34 9.202-3.63-1.268 4.487-7.866-2.363-9.528z"})))};var w=e.i(522016);function I({autor:e}){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(A.default,{img:e.imagen,thumbKey:"m_130_130_crop",sources:[{thumbKey:"d_300_300_crop",media:"tablet"}],alt:"Fotografia de "+e.nombre,className:E.default.encuesta__imagen,placeholder:v.IMAGEPLACEHOLDERS.USUARIO})})}function k({encuestaData:e,listas:t,dict:a,editorialDict:i}){let{t:r}=(0,f.getDictionary)(a),[n,l]=(0,o.useTransition)(),[c,u]=(0,o.useState)(1),[h,m]=(0,o.useState)(!1),[_,p]=(0,o.useState)(!1),[g,v]=(0,o.useState)(e.newsletterTematicas.map(()=>!1)),[A,S]=(0,o.useState)(e.libros.map(()=>!1)),[L,O]=(0,o.useState)(e.autores.map(()=>!1)),[P,D]=(0,o.useState)(e.newsletterEditoriales.map(()=>!1));(0,o.useEffect)(()=>{"u">typeof Zuko&&(window["form-encuesta-guia-lectura"]=Zuko.trackForm({target:document.getElementById("form-encuesta-guia-lectura"),slug:x}).trackEvent(Zuko.FORM_VIEW_EVENT))},[]);let R=[];e.newsletterTematicas.length>0&&R.push("tematicas"),e.libros.length>0&&R.push("libros"),e.autores.length>0&&R.push("autores"),e.newsletterEditoriales.length>0&&R.push("editoriales");let M=R.length,j=R[c-1],F=(e,t,a)=>{let i=[...t];i[e]=!i[e],a(i)},B=async e=>{l(async()=>{await y(e.getAll("tematicas"),t[0]?.id,e.getAll("libros"),e.getAll("autores"),e.getAll("editoriales"))}),m(!0),"u">typeof Zuko&&Zuko.trackForm({slug:x}).trackEvent(Zuko.COMPLETION_EVENT)};return h?(0,s.jsx)("div",{className:E.default.containerEncuesta,children:(0,s.jsx)("div",{className:E.default.encuesta,children:(0,s.jsxs)("div",{className:E.default.encuesta__success,children:[(0,s.jsx)("div",{className:E.default.encuesta__success__image,children:(0,s.jsx)("span",{className:E.default.encuesta__success__image__icon,children:(0,s.jsx)(N,{})})}),(0,s.jsxs)("div",{className:E.default.encuesta__success__text,children:[(0,s.jsx)("p",{className:E.default.encuesta__success__title,children:r("graciasPorEncuesta")}),(0,s.jsxs)("div",{className:E.default.encuesta__success__text,children:[(0,s.jsx)("p",{children:r("novedadesSeleccionad
123as")}),(0,s.jsxs)("p",{children:[r("recuerdaPreferencias")," ",(0,s.jsxs)(w.default,{prefetch:!1,href:`https://www.planetadelibros.com.mx${r("urlAreaUsuario")}`,children:[r("areaUser")?.toLowerCase(),"."]})]})]}),(0,s.jsx)("div",{className:E.default.encuesta__success__buttons,children:(0,s.jsx)(d.default,{variant:"primary",path:r("urlDescubrirMisLibros"),children:r("descubrirMisLibros")})})]})]})})}):(0,s.jsx)("form",{className:E.default.containerEncuesta,name:"form-encuesta-guia-lectura",id:"form-encuesta-guia-lectura",action:B,children:(0,s.jsxs)("div",{className:E.default.encuesta,children:[(0,s.jsxs)("div",{className:E.default.encuesta__header,id:"header",children:[(0,s.jsx)("h2",{className:E.default.encuesta__header__title,children:(0,s.jsx)("strong",{children:r("buscasTuProximaLectura")})}),(0,s.jsx)("p",{className:E.default.validacionEmail__text,children:r("dinosTusGustos")})]}),(0,s.jsx)("ul",{className:E.default.steps,children:Array.from({length:M},(e,t)=>{let a=t+1;return(0,s.jsxs)("li",{className:E.default.steps__item,onClick:()=>u(a),children:[(0,s.jsx)("div",{className:`${E.default.steps__item__number} ${c===a?E.default.steps__item__number__active:""} ${c!==a&&a<c?E.default.steps__item__number__completed:""}`,children:a}),t!==M-1&&(0,s.jsx)("div",{className:`${E.default.steps__item__separator} ${c!==a&&a<c?E.default.steps__item__separator__completed:""}`})]},t)})}),(0,s.jsx)("div",{className:`${E.default.encuesta__step__wrapper} ${"tematicas"===j?E.default.encuesta__step__wrapper__show:""}`,children:(0,s.jsxs)("div",{className:E.default.encuesta__stepTematicas,children:[(0,s.jsx)("p",{className:E.default.encuesta__headText,children:r("pasoSeleccionTematicas",{paso:c})}),(0,s.jsx)("p",{className:E.default.encuesta__title,children:r("descripcionTematicas")}),(0,s.jsxs)("div",{className:E.default.encuesta__stepTematicas__tematicasWrapper,children:[(0,s.jsxs)("label",{className:E.default.encuesta__stepTematicas__tematicasWrapper__marcarTodas,htmlFor:"marcarTodas",children:[(0,s.jsx)("input",{type:"checkbox",name:"marcarTodas",id:"marcarTodas",onChange:e=>{var t;return t=e.target.checked,void v(g.map(()=>t))},checked:g.every(Boolean)}),(0,s.jsx)("span",{children:r(_?"desmarcarTodas":"marcarTodas")})]}),(0,s.jsx)("div",{className:E.default.encuesta__stepTematicas__tematicasGrid,children:e.newsletterTematicas.map((e,t)=>(0,s.jsx)("div",{children:(0,s.jsxs)("label",{htmlFor:e.id,children:[(0,s.jsx)("input",{type:"checkbox",name:"tematicas",value:e.id,id:e.id,checked:g[t],onChange:()=>F(t,g,v)}),e.tematica.nombre]})},t))})]})]})}),(0,s.jsxs)("div",{className:`${E.default.encuesta__step__wrapper} ${"libros"===j?E.default.encuesta__step__wrapper__show:""}`,children:[(0,s.jsx)("p",{children:"HOLA TEST"}),(0,s.jsxs)("div",{className:E.default.encuesta__step,children:[(0,s.jsx)("p",{className:E.default.encuesta__headText,children:r("pasoSeleccionLibros",{paso:c})}),(0,s.jsx)("p",{className:E.default.encuesta__title,children:r("descripcionLibros")}),(0,s.jsx)("div",{className:`${E.default.encuesta__flexGrid} ${E.default.encuesta__flexGrid__center}`,children:e?.libros?.map((e,t)=>(0,s.jsx)("div",{className:`${E.default.encuesta__flexGrid__item} `,onClick:()=>F(t,A,S),children:(0,s.jsx)("div",{className:`${E.default.encuesta__flexGrid__item__innerWrapper} ${A[t]?E.default.encuesta__flexGrid__item__innerWrapper__selected:""}`,children:(0,s.jsxs)("label",{htmlFor:e.id,children:[(0,s.jsx)("input",{type:"checkbox",name:"libros",value:e.id,id:e.id,checked:A[t]}),(0,s.jsx)(T,{libro:e})]})})},t))})]})]}),(0,s.jsx)("div",{className:`${E.default.encuesta__step__wrapper} ${"autores"===j?E.default.encuesta__step__wrapper__show:""}`,children:(0,s.jsxs)("div",{className:E.default.encuesta__step,children:[(0,s.jsx)("p",{className:E.default.encuesta__headText,children:r("pasoSeleccionAutores",{paso:c})}),(0,s.jsx)("p",{className:E.default.encuesta__title,children:r("descripcionAutores")}),(0,s.jsx)("div",{className:`${E.default.encuesta__flexGrid} `,children:e?.autores?.map((e,t)=>(0,s.jsxs)("div",{className:`${E.default.encuesta__flexGrid__item}`,onClick:()=>{F(t,L,O)},children:[(0,s.jsx)("div",{className:`${E.default.encuesta__flexGrid__item__innerWrapper} ${E.default.encuesta__flexGrid__item__innerWrapper__autor} ${L[t]?E.default.encuesta__flexGrid__item__innerWrapper__selected:""}`,children:(0,s.jsxs)("label",{htmlFor:e.id,children:[(0,s.jsx)("input",{type:"checkbox",name:"autores",value:e.id,id:e.id,checked:L[t]}),(0,s.jsx)(I,{autor:e})]})}),(0,s.jsx)("p",{className:E.default.encuesta__flexGrid__item__innerWrapper__text,children:e.nombre})]},t))})]})}),(0,s.jsx)("div",{className:`${E.default.encuesta__step__wrapper} ${"editoriales"===j?E.default.encuesta__step__wrapper__show:""}`,children:(0,s.jsxs)("div",{className:E.default.encuesta__step,children:[(0,s.jsx)("p",{className:E.default.encuesta__headText,children:r("pasoSeleccionEditoriales",{paso:c})}),(0,s.jsx)("p",{className:E.default.encuesta__title,children:r("descripcionEditoriales")}),(0,s.jsx)("div",{className:`${E.default.encuesta__flexGrid}`,children:e?.newsletterEditoriales?.map((e,t)=>(0,s.jsxs)("div",{className:`${E.default.encuesta__flexGrid__item}`,onClick:()=>F(t,P,D),children:[(0,s.jsxs)("div",{className:`${E.default.encuesta__flexGrid__item__innerWrapper} ${E.default.encuesta__flexGrid__item__innerWrapper__editorial} ${P[t]?E.default.encuesta__flexGrid__item__innerWrapper__selected:""}`,children:[(0,s.jsx)("input",{type:"checkbox",name:"editoriales",value:e.id,id:e.id,checked:P[t]}),(0,s.jsx)("label",{htmlFor:e.id,children:(0,s.jsx)(C,{editorial:e.editorial,editorialDict:i})})]}),(0,s.jsx)("p",{className:E.default.encuesta__flexGrid__item__innerWrapper__text,children:e.nombre})]},t))})]})}),(0,s.jsxs)("div",{className:E.default.encuesta__buttons,children:[c!==M&&(0,s.jsx)(b.default,{className:E.default.encuesta__nextStepBtn,buttonType:"button","data-zuko-tag-name":"button","data-zuko-name":r(c<M?"encuestaSiguientePaso":"encuestaFinalizar"),id:r(c<M?"encuestaSiguientePaso":"encuestaFinalizar"),disabled:n,onClick:()=>{c<M&&(u(c+1),window.scrollTo({top:0,behavior:"smooth"}))},children:r(c<M?"encuestaSiguientePaso":"encuestaFinalizar")}
123),c===M&&(0,s.jsx)(b.default,{className:E.default.encuesta__nextStepBtn,buttonType:"submit","data-zuko-tag-name":"button","data-zuko-name":r(c<M?"encuestaSiguientePaso":"encuestaFinalizar"),id:r(c<M?"encuestaSiguientePaso":"encuestaFinalizar"),disabled:n,children:r(c<M?"encuestaSiguientePaso":"encuestaFinalizar")})]})]})})}e.s(["default",0,function({nombreUsuario:e,jwtToken:t,validado:a,mensaje:i,dict:r,editorialDict:l}){let{t:h}=(0,f.getDictionary)(r),[E,v]=(0,o.useTransition)(),[A,T]=(0,o.useState)(null),[C,y]=(0,o.useState)([]),x=async()=>{let e=await c(t);e[0].ok&&T(e[0].response),e[1].ok&&y(e[1].response?.listas)};return((0,o.useEffect)(()=>{t&&a&&v(async()=>{x()})},[]),t)?a?(0,s.jsx)(u.default,{variant:"smallCenter",className:n.default.validacionEmail__wrapper,children:(0,s.jsxs)("div",{className:n.default.validacionEmail__messageWrapper,children:[(0,s.jsxs)("p",{className:`${n.default.validacionEmail__success} ${n.default.validacionEmail__message}`,children:[(0,s.jsx)("span",{className:n.default.validacionEmail__buttonLogin__icon,children:(0,s.jsx)(p.default,{})}),i]}),E&&!A?(0,s.jsx)("div",{children:(0,s.jsx)(g.default,{})}):(0,s.jsx)(s.Fragment,{children:A&&C&&(0,s.jsx)(k,{editorialDict:l,encuestaData:A,listas:C,dict:r})})]})}):(0,s.jsx)(u.default,{variant:"smallCenter",className:n.default.validacionEmail__wrapper,children:(0,s.jsxs)("div",{className:n.default.validacionEmail__messageWrapper,children:[(0,s.jsxs)("p",{className:`${n.default.validacionEmail__error} ${n.default.validacionEmail__message}`,children:[(0,s.jsx)("span",{className:n.default.validacionEmail__buttonLogin__icon,children:(0,s.jsx)(m,{})}),i]}),(0,s.jsx)("h2",{className:n.default.validacionEmail__title,children:h("falloValidacionUsuario")}),(0,s.jsx)("p",{className:n.default.validacionEmail__text,children:h("validacionNoRealizada")}),(0,s.jsxs)(d.default,{variant:"secondary",path:"/",className:n.default.validacionEmail__buttonLogin,children:[(0,s.jsx)("span",{className:n.default.validacionEmail__buttonLogin__icon,children:(0,s.jsx)(_.default,{})}),(0,s.jsx)("span",{className:n.default.validacionEmail__buttonLogin__text,children:h("volverInicio")})]})]})}):(0,s.jsx)(u.default,{variant:"smallCenter",className:n.default.validacionEmail__wrapper,children:(0,s.jsxs)("div",{className:n.default.validacionEmail__messageWrapper,children:[(0,s.jsx)("p",{className:n.default.validacionEmail__text,dangerouslySetInnerHTML:{__html:h("yaPuedesEntrarHTML")}}),(0,s.jsxs)(b.default,{type:"link",variant:"secondary",path:h("urlLogin"),className:n.default.validacionEmail__buttonLogin,children:[(0,s.jsx)("span",{className:n.default.validacionEmail__buttonLogin__icon,children:(0,s.jsx)(_.default,{})}),(0,s.jsx)("span",{className:n.default.validacionEmail__buttonLogin__text,children:h("entrarEnPlaneta")})]})]})})}],229624)},248326,e=>{"use strict";var t=e.i(843476),a=e.i(522016),i=e.i(978877),r=e.i(283231),s=e.i(10655),n=e.i(618566),o=e.i(970435),l=e.i(822596);e.s(["default",0,function({children:e,slide:c,positionSlide:u,dict:d}){let{t:h}=(0,l.getDictionary)(d),m=(0,n.usePathname)(),{pageData:_}=(0,i.usePageData)(),p=(0,r.useModuleGAMetadata)(),f={idBanner:p?.metadatosModulo?.id,nombreBanner:c?.nombre?`${h("positionKeyword")} ${u} - ${c?.nombre}`:`${h("positionKeyword")} ${u} - ${p?.metadatosModulo?.nombre}`};return(0,t.jsx)(a.default,{prefetch:!1,href:`${c.enlace}`,...c.abrirEnNuevaVentana&&{target:"_blank"},onClick:e=>{let t=_.tipoPagina===o.TIPO_PAGINA_API.FICHA_TEMATICA||_.tipoPagina===o.TIPO_PAGINA_API.FICHA_SUBTEMATICA||_.tipoPagina===o.TIPO_PAGINA_API.FICHA_SUBSUBTEMATICA?{...f,tipoPagina:(0,s.convertPageType)(_.tipoPagina),urlPagina:m}:{...f,tipoPagina:(0,s.convertPageType)(_?.tipoPagina),urlPagina:m};(0,s.bannerClickEvent)(t)},children:e})}])},791899,e=>{"use strict";var t=e.i(843476),a=e.i(283231),i=e.i(978877),r=e.i(10655),s=e.i(618566),n=e.i(822596),o=e.i(970435);e.s(["default",0,function({children:e,slide:l,positionSlide:c,autores:u,dict:d}){let{t:h}=(0,n.getDictionary)(d),m=(0,s.usePathname)(),{pageData:_}=(0,i.usePageData)(),p=(0,a.useModuleGAMetadata)(),f={idBanner:p?.metadatosModulo.id,nombreBanner:l?.libro?.titulo?`${h("positionKeyword")} ${c} - ${l.libro.titulo}`:`${h("positionKeyword")} ${c} - ${p?.metadatosModulo?.nombre}`,libro:l?.libro?.titulo,autor:u,tematica:l?.libro?.tematicaPrincipal?.nombre,editorial:l?.libro?.nombreEditorial?l?.libro?.nombreEditorial:null};return(0,t.jsx)("div",{className:"TaggingSlideLibro",onClick:e=>{let t=(_.tipoPagina===o.TIPO_PAGINA_API.FICHA_TEMATICA||_.tipoPagina===o.TIPO_PAGINA_API.FICHA_SUBTEMATICA||_.tipoPagina===o.TIPO_PAGINA_API.FICHA_SUBSUBTEMATICA,{...f,tipoPagina:(0,r.convertPageType)(_?.tipoPagina),urlPagina:m});(0,r.bannerClickEvent)(t)},children:e})}])},180441,e=>{e.v({"blink-animation":"GaleriaAutor-module-scss-module__npTdla__blink-animation",galeria__grid:"GaleriaAutor-module-scss-module__npTdla__galeria__grid",galer
123ia__imagen:"GaleriaAutor-module-scss-module__npTdla__galeria__imagen",masonryGrid:"GaleriaAutor-module-scss-module__npTdla__masonryGrid",masonryGrid__column:"GaleriaAutor-module-scss-module__npTdla__masonryGrid__column",masonryGrid__item:"GaleriaAutor-module-scss-module__npTdla__masonryGrid__item"})},393693,e=>{"use strict";var t=e.i(843476),a=e.i(809934),i=e.i(271645),r=e.i(180441),s=e.i(783328);e.s(["default",0,function({children:n}){return(0,i.useEffect)(()=>{let t=new s.default({gallery:"#galeriaAutor",children:"a",pswpModule:()=>e.A(284163),paddingFn:e=>({top:e.x<600?20:80,bottom:e.x<600?20:80,left:e.x<600?20:80,right:e.x<600?20:80})});return t.init(),()=>{t.destroy(),t=null}},[]),(0,t.jsx)("div",{id:"galeriaAutor",children:(0,t.jsx)(a.default,{breakpointCols:{default:3,768:2},className:r.default.masonryGrid,columnClassName:r.default.masonryGrid__column,children:i.Children.map(n,(e,a)=>(0,t.jsx)("div",{className:r.default.masonryGrid__item,children:e},"item_"+a))})})}])},140856,e=>{e.v({"blink-animation":"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__blink-animation",embebida:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__embebida",embebida__autores:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__embebida__autores",embebida__descripcion:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__embebida__descripcion",embebida__info:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__embebida__info",embebida__opciones:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__embebida__opciones",embebida__portada:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__embebida__portada",embebida__portadaImg:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__embebida__portadaImg",embebida__subtitulo:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__embebida__subtitulo",embebida__tematica:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__embebida__tematica",embebida__titulo:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__embebida__titulo",layout_regular:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__layout_regular",layout_smallCenter:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__layout_smallCenter",titulo:"ModuloFichaLibroEmbebida-module-scss-module___Px2yG__titulo"})},872917,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(522016),r=e.i(484046),s=e.i(709484),n=e.i(653943),o=e.i(387618),l=e.i(64887),c=e.i(152973),u=e.i(599528),d=e.i(140856);e.s(["default",0,function({libro:e,textoComprar:h,textoConsultar:m,textoFormatos:_,textoLeerMas:p,textoLeerMenos:f,translationsObj:g,dictionaryLibro:b}){let[E,v]=(0,a.useState)(e),[A,T]=(0,a.useState)(e.idPlaneta);return(0,t.jsxs)("div",{className:`${d.default.embebida}`,children:[(0,t.jsxs)("div",{className:d.default.embebida__portada,children:[E.audioLibro&&(0,t.jsx)(u.default,{idLibro:E.id,audioPath:E.audioLibro?.url}),(0,t.jsx)(i.default,{prefetch:!1,href:`${E.url}`,title:E.titulo,children:(0,t.jsx)(r.default,{libro:E,showTags:!0,variantTags:"small",className:d.default.embebida__portadaImg,translationsObj:g,dictionaryLibro:b})})]}),(0,t.jsxs)("div",{className:d.default.embebida__info,children:[(0,t.jsx)("p",{className:d.default.embebida__titulo,children:(0,t.jsx)(i.default,{prefetch:!1,href:`${E.url}`,title:E.titulo,children:E.titulo})}),E.subtitulo&&(0,t.jsx)("p",{className:d.default.embebida__subtitulo,children:E.subtitulo}),E.autores&&(0,t.jsx)(s.default,{autores:E.autores,className:d.default.embebida__autores}),E.tematicaPrincipal&&(0,t.jsx)(n.default,{tematica:E.tematicaPrincipal,className:d.default.embebida__tematica}),E.sinopsis&&(0,t.jsx)("div",{className:d.default.embebida__descripcion,children:(0,t.jsx)(c.default,{textoLeerMas:p,textoLeerMenos:f,children:(0,t.jsx)(l.default,{rawHtml:E.sinopsis})})})]}),(0,t.jsx)("div",{className:d.default.embebida__opciones,children:(0,t.jsx)(o.default,{activeId:A,setActiveId:T,formatos:E.formatos,libro:E,textoComprar:h,textoConsultar:m,textoFormatos:_,setSelectLibro:v})})]})}])},401368,e=>{"use strict";var t=e.i(843476),a=e.i(283231);e.s(["default",0,function({value:e,children:i}){return(0,t.jsx)(a.ModuleGAMetadataContext.Provider,{value:e,children:i})}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.