PageSourceSearch

https://elnacional.ec/assets/index-3t4ykBBu.js

js elnacional.ec collected 2026-10-02 13:42:23 UTC 120,292 bytes, 4 lines download raw bytes

1import{a as h,N as Uo,O as ga,V as Da,X as Vo,Y as Na,Z as Go,_ as zo,$ as Fe,a0 as Wt,a1 as le,a2 as te,a3 as ye,a4 as Zo,a5 as ps,a6 as $t,a7 as ja,a8 as Le,a9 as ya,aa as Bo,ab as qo,ac as Ct,ad as Ko,ae as Qo,af as Jo,ag as Xo,ah as el,ai as tl,aj as xa,ak as Oa,al as sl,R as ce,am as al,an as Pt,ao as rl,ap as nl,aq as il,ar as ol,as as ll,at as dl,au as wa,av as ul,aw as cl,ax as Ye,ay as Te,o as ws,az as ut,j as i,K as Ht,y as vs,aA as Qe,z as _s,F as Ya,aB as bs,Q as Ta,aC as hl,B as me,f as fl,G as Ft,aD as Re,q as Lt,c as Ra,H as ml,aE as Pa,aF as Ke,aG as pl}from"./index-DmuA0bGG.js";import{P as gl}from"./Page-ZZpGWyYo.js";import{Q as yl,a as xl,u as wl}from"./useQuery-PBEgifbJ.js";import{u as Ut}from"./useMutation-BP7bPO0i.js";import{u as vl}from"./resolvers-KC_-DC7L.js";import{o as _l}from"./yup-DcABgwZ0.js";import{c as bl,a as kl}from"./index.esm-B1MbeT5i.js";import{b as Ml,F as Sl,$ as Dl,a as Nl,w as jl,e as Ol,y as Yl,R as Tl,T as Rl,c as Pl,A as Il}from"./floating-DkiQh8lg.js";import{p as El,c as It,a as K,f as Tt,b as Cl,L as Fl,S as Rt,s as Ll,F as Al,u as Wl,V as Ia,C as $l}from"./element-movement-P5V9a0Id.js";import{s as Hl}from"./use-text-value-CjWrlovn.js";import{F as Ea}from"./ChatBubbleLeftRightIcon-DnKDLzZv.js";import{F as Ul}from"./ArrowUpRightIcon-DptOQzX7.js";import{F as Vl}from"./ClockIcon-CS_H8x4N.js";import{B as Gl}from"./index-BHlrVLeh.js";import{F as va}from"./InboxIcon-CGvS34yR.js";import{F as zl}from"./ArrowDownIcon-B6VG-1v0.js";import"./floating-ui.dom-oJyGoIIL.js";function Zl({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{fillRule:"evenodd",d:"M10 2c-2.236 0-4.43.18-6.57.524C1.993 2.755 1 4.014 1 5.426v5.148c0 1.413.993 2.67 2.43 2.902.848.137 1.705.248 2.57.331v3.443a.75.75 0 0 0 1.28.53l3.58-3.579a.78.78 0 0 1 .527-.224 41.202 41.202 0 0 0 5.183-.5c1.437-.232 2.43-1.49 2.43-2.903V5.426c0-1.413-.993-2.67-2.43-2.902A41.289 41.289 0 0 0 10 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const Bl=h.forwardRef(Zl);function ql({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{d:"M3 10a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM8.5 10a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM15.5 8.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"}))}const Kl=h.forwardRef(ql);function Ql({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{d:"M3.5 2.75a.75.75 0 0 0-1.5 0v14.5a.75.75 0 0 0 1.5 0v-4.392l1.657-.348a6.449 6.449 0 0 1 4.271.572 7.948 7.948 0 0 0 5.965.524l2.078-.64A.75.75 0 0 0 18 12.25v-8.5a.75.75 0 0 0-.904-.734l-2.38.501a7.25 7.25 0 0 1-4.186-.363l-.502-.2a8.75 8.75 0 0 0-5.053-.439l-1.475.31V2.75Z"}))}const Jl=h.forwardRef(Ql);function Xl({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))}const ed=h.forwardRef(Xl);function td({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"}))}const sd=h.forwardRef(td);function ad({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 0 1 1.037-.443 48.282 48.282 0 0 0 5.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.
1123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"}))}const rd=h.forwardRef(ad);function nd({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 0 1-2.555-.337A5.972 5.972 0 0 1 5.41 20.97a5.969 5.969 0 0 1-.474-.065 4.48 4.48 0 0 0 .978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z"}))}const id=h.forwardRef(nd);function od({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.362 5.214A8.252 8.252 0 0 1 12 21 8.25 8.25 0 0 1 6.038 7.047 8.287 8.287 0 0 0 9 9.601a8.983 8.983 0 0 1 3.361-6.867 8.21 8.21 0 0 0 3 2.48Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18a3.75 3.75 0 0 0 .495-7.468 5.99 5.99 0 0 0-1.925 3.547 5.975 5.975 0 0 1-2.133-1.001A3.75 3.75 0 0 0 12 18Z"}))}const ld=h.forwardRef(od);function dd({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"}))}const Ca=h.forwardRef(dd);function ud({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"}))}const Fa=h.forwardRef(ud);function cd({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))}const hd=h.forwardRef(cd);var fd=Object.defineProperty,md=(n,u,d)=>u in n?fd(n,u,{enumerable:!0,configurable:!0,writable:!0,value:d}):n[u]=d,_a=(n,u,d)=>(md(n,typeof u!="symbol"?u+"":u,d),d),se=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(se||{}),At=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(At||{}),$=(n=>(n[n.OpenMenu=0]="OpenMenu",n[n.CloseMenu=1]="CloseMenu",n[n.GoToItem=2]="GoToItem",n[n.Search=3]="Search",n[n.ClearSearch=4]="ClearSearch",n[n.RegisterItems=5]="RegisterItems",n[n.UnregisterItems=6]="UnregisterItems",n[n.SetButtonElement=7]="SetButtonElement",n[n.SetItemsElement=8]="SetItemsElement",n[n.SortItems=9]="SortItems",n[n.MarkButtonAsMoved=10]="MarkButtonAsMoved",n))($||{});function ba(n,u=d=>d){let d=n.activeItemIndex!==null?n.items[n.activeItemIndex]:null,l=Go(u(n.items.slice()),f=>f.dataRef.current.domRef.current),p=d?l.indexOf(d):null;return p===-1&&(p=null),{items:l,activeItemIndex:p}}let pd={1(n){if(n.menuState===1)return n;let u=n.buttonElement?It.Tracked(Cl(n.buttonElement)):n.buttonPositionState;return{...n,activeItemIndex:null,pendingFocus:{focus:K.Nothing},menuState:1,buttonPositionState:u}},0(n,u){return n.menuState===0?n:{...n,__demoMode:!1,pendingFocus:u.focus,menuState:0,buttonPositionState:It.Idle}},2:(n,u)=>{var d,l,p,f,w;if(n.menuState===1)return n;let x={...n,searchQuery:"",activationTrigger:(d=u.trigger)!=null?d:1,__demoMode:!1};
1if(u.focus===K.Nothing)return{...x,activeItemIndex:null};if(u.focus===K.Specific)return{...x,activeItemIndex:n.items.findIndex(g=>g.id===u.id)};if(u.focus===K.Previous){let g=n.activeItemIndex;if(g!==null){let Y=n.items[g].dataRef.current.domRef,k=Tt(u,{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:N=>N.id,resolveDisabled:N=>N.dataRef.current.disabled});if(k!==null){let N=n.items[k].dataRef.current.domRef;if(((l=Y.current)==null?void 0:l.previousElementSibling)===N.current||((p=N.current)==null?void 0:p.previousElementSibling)===null)return{...x,activeItemIndex:k}}}}else if(u.focus===K.Next){let g=n.activeItemIndex;if(g!==null){let Y=n.items[g].dataRef.current.domRef,k=Tt(u,{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:N=>N.id,resolveDisabled:N=>N.dataRef.current.disabled});if(k!==null){let N=n.items[k].dataRef.current.domRef;if(((f=Y.current)==null?void 0:f.nextElementSibling)===N.current||((w=N.current)==null?void 0:w.nextElementSibling)===null)return{...x,activeItemIndex:k}}}}let S=ba(n),D=Tt(u,{resolveItems:()=>S.items,resolveActiveIndex:()=>S.activeItemIndex,resolveId:g=>g.id,resolveDisabled:g=>g.dataRef.current.disabled});return{...x,...S,activeItemIndex:D}},3:(n,u)=>{let d=n.searchQuery!==""?0:1,l=n.searchQuery+u.value.toLowerCase(),p=(n.activeItemIndex!==null?n.items.slice(n.activeItemIndex+d).concat(n.items.slice(0,n.activeItemIndex+d)):n.items).find(w=>{var x;return((x=w.dataRef.current.textValue)==null?void 0:x.startsWith(l))&&!w.dataRef.current.disabled}),f=p?n.items.indexOf(p):-1;return f===-1||f===n.activeItemIndex?{...n,searchQuery:l}:{...n,searchQuery:l,activeItemIndex:f,activationTrigger:1}},4(n){return n.searchQuery===""?n:{...n,searchQuery:"",searchActiveItemIndex:null}},5:(n,u)=>{let d=n.items.concat(u.items.map(p=>p)),l=n.activeItemIndex;return n.pendingFocus.focus!==K.Nothing&&(l=Tt(n.pendingFocus,{resolveItems:()=>d,resolveActiveIndex:()=>n.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled})),{...n,items:d,activeItemIndex:l,pendingFocus:{focus:K.Nothing},pendingShouldSort:!0}},6:(n,u)=>{let d=n.items,l=[],p=new Set(u.items);for(let[f,w]of d.entries())if(p.has(w.id)&&(l.push(f),p.delete(w.id),p.size===0))break;if(l.length>0){d=d.slice();for(let f of l.reverse())d.splice(f,1)}return{...n,items:d,activationTrigger:1}},7:(n,u)=>n.buttonElement===u.element?n:{...n,buttonElement:u.element},8:(n,u)=>n.itemsElement===u.element?n:{...n,itemsElement:u.element},9:n=>n.pendingShouldSort?{...n,...ba(n),pendingShouldSort:!1}:n,10(n){return n.buttonPositionState.kind!=="Tracked"?n:{...n,buttonPositionState:It.Moved}}};class ks extends Uo{constructor(u){super(u),_a(this,"actions",{registerItem:ga(()=>{let d=[],l=new Set;return[(p,f)=>{l.has(f)||(l.add(f),d.push({id:p,dataRef:f}))},()=>(l.clear(),this.send({type:5,items:d.splice(0)}))]}),unregisterItem:ga(()=>{let d=[];return[l=>d.push(l),()=>this.send({type:6,items:d.splice(0)})]})}),_a(this,"selectors",{activeDescendantId(d){var l;let p=d.activeItemIndex,f=d.items;return p===null||(l=f[p])==null?void 0:l.id},isActive(d,l){var p;let f=d.activeItemIndex,w=d.items;return f!==null?((p=w[f])==null?void 0:p.id)===l:!1},shouldScrollIntoView(d,l){return d.__demoMode||d.menuState!==0||d.activationTrigger===0?!1:this.isActive(d,l)},didButtonMove(d){return d.buttonPositionState.kind==="Moved"}}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let d=this.state.id,l=Da.get(null);this.disposables.add(l.on(Vo.Push,p=>{!l.selectors.isTop(p,d)&&this.state.menuState===0&&this.send({type:1})})),this.on(0,()=>l.actions.push(d)),this.on(1,()=>l.actions.pop(d))}this.disposables.group(d=>{this.on(1,l=>{l.buttonElement&&(d.dispose(),d.add(El(l.buttonElement,l.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:u,__demoMode:d=!1}){return new ks({id:u,__demoMode:d,menuState:d?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:K.Nothing},buttonPositionState:It.Idle})}reduce(u,d){return Na(d.type,pd,u,d)}}const La=h.createContext(null);function Ms(n){let u=h.useContext(La);if(u===null){let d=new Error(`<${n} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(d,Aa),d}return u}function Aa({id:n,__demoMode:u=!1}){let d=h.useMemo(()=>ks.new({id:n,__demoMode:u}),[]);return zo(()=>d.dispose()),d}let gd=h.Fragment;function yd(n,u){let d=h.useId(),{__demoMode:l=!1,...p}=n,f=Aa({id:d,__demoMode:l}),[w,x,S]=ye(f,y=>[y.menuState,y.itemsElement,y.buttonElement]),D=Wt(u),g=Da.get(null),Y=ye(g,h.useCallback(y=>g.selectors.isTop(y,d),[g,d]));il(Y,[S,x],(y,W)=>{var V;f.send({type:$.CloseMenu}),ol(W,ll.Loose)||(y.preventDefault(),(V=f.state.buttonElement)==null||V.focus())});let k=le(()=>{f.send({type:$.CloseMenu})}),N=$t({open:w===se.Open,close:k}),b={ref:D},E=Le();return ce.createElement(Il,null,ce.createElement(La.Provider,{value:f},ce.createElement(dl,{value:Na(w,{[se.Open]:Ct.Open,[se.Closed]:Ct.Closed})},E({ourProps:b,theirProps:p,slot:N,defaultTag:gd,name:"Menu"}))))}let xd="button";function wd(n,u){let d=Ms("Menu.Button"),l=h.useId(),{id:p=`headlessui-menu-button-${l}`,disabled:f=!1,autoFocus:w=!1,...x}=n,S=h.useRef(null),D=Ml(),g=Wt(u,S,Sl(),le(T=>d.send({type:$.SetButtonElement,element:T}))),Y=le(T=>{switch(T.key){case te.Space:case te.Enter:case te.ArrowDown:T.preventDefault(),T.stopPropagation(),d.send({type:$.OpenMenu,focus:{focus:K.First}});break;case te.ArrowUp:T.preventDefault(),T.stopPropagation(),d.send({type:$.OpenMenu,focus:{focus:K.Last}}
1);break}}),k=le(T=>{T.key===te.Space&&T.preventDefault()}),[N,b,E]=ye(d,T=>[T.menuState,T.buttonElement,T.itemsElement]),y=N===se.Open;Fl(y,{trigger:b,action:h.useCallback(T=>{if(b!=null&&b.contains(T.target))return Rt.Ignore;let L=T.target.closest('[role="menuitem"]:not([data-disabled])');return Zo(L)?Rt.Select(L):E!=null&&E.contains(T.target)?Rt.Ignore:Rt.Close},[b,E]),close:h.useCallback(()=>d.send({type:$.CloseMenu}),[]),select:h.useCallback(T=>T.click(),[])});let W=Ll(T=>{var L;f||(N===se.Open?(ps.flushSync(()=>d.send({type:$.CloseMenu})),(L=S.current)==null||L.focus({preventScroll:!0})):(T.preventDefault(),d.send({type:$.OpenMenu,focus:{focus:K.Nothing},trigger:At.Pointer})))}),{isFocusVisible:V,focusProps:Z}=Dl({autoFocus:w}),{isHovered:C,hoverProps:ae}=Nl({isDisabled:f}),{pressed:Q,pressProps:ne}=jl({disabled:f}),B=$t({open:N===se.Open,active:Q||N===se.Open,disabled:f,hover:C,focus:V,autofocus:w}),pe=ja(D(),{ref:g,id:p,type:Ol(n,S.current),"aria-haspopup":"menu","aria-controls":E?.id,"aria-expanded":N===se.Open,disabled:f||void 0,autoFocus:w,onKeyDown:Y,onKeyUp:k},W,Z,ae,ne);return Le()({ourProps:pe,theirProps:x,slot:B,defaultTag:xd,name:"Menu.Button"})}let vd="div",_d=wa.RenderStrategy|wa.Static;function bd(n,u){let d=h.useId(),{id:l=`headlessui-menu-items-${d}`,anchor:p,portal:f=!1,modal:w=!0,transition:x=!1,...S}=n,D=Yl(p),g=Ms("Menu.Items"),[Y,k]=Tl(D),N=Rl(),[b,E]=h.useState(null),y=Wt(u,D?Y:null,le(O=>g.send({type:$.SetItemsElement,element:O})),E),[W,V]=ye(g,O=>[O.menuState,O.buttonElement]),Z=ya(V),C=ya(b);D&&(f=!0);let ae=Bo(),[Q,ne]=qo(x,b,ae!==null?(ae&Ct.Open)===Ct.Open:W===se.Open);Ko(Q,V,()=>{g.send({type:$.CloseMenu})});let B=ye(g,O=>O.__demoMode),pe=B?!1:w&&W===se.Open;Qo(pe,C);let T=B?!1:w&&W===se.Open;Jo(T,{allowed:h.useCallback(()=>[V,b],[V,b])});let L=ye(g,g.selectors.didButtonMove)?!1:Q;h.useEffect(()=>{let O=b;O&&W===se.Open&&(Xo(O)||O.focus({preventScroll:!0}))},[W,b]),Al(W===se.Open,{container:b,accept(O){return O.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:O.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(O){O.setAttribute("role","none")}});let J=el(),X=le(O=>{var Pe,ie,Ae;switch(J.dispose(),O.key){case te.Space:if(g.state.searchQuery!=="")return O.preventDefault(),O.stopPropagation(),g.send({type:$.Search,value:O.key});case te.Enter:if(O.preventDefault(),O.stopPropagation(),g.state.activeItemIndex!==null){let{dataRef:We}=g.state.items[g.state.activeItemIndex];(ie=(Pe=We.current)==null?void 0:Pe.domRef.current)==null||ie.click()}g.send({type:$.CloseMenu}),Oa(g.state.buttonElement);break;case te.ArrowDown:return O.preventDefault(),O.stopPropagation(),g.send({type:$.GoToItem,focus:K.Next});case te.ArrowUp:return O.preventDefault(),O.stopPropagation(),g.send({type:$.GoToItem,focus:K.Previous});case te.Home:case te.PageUp:return O.preventDefault(),O.stopPropagation(),g.send({type:$.GoToItem,focus:K.First});case te.End:case te.PageDown:return O.preventDefault(),O.stopPropagation(),g.send({type:$.GoToItem,focus:K.Last});case te.Escape:O.preventDefault(),O.stopPropagation(),ps.flushSync(()=>g.send({type:$.CloseMenu})),(Ae=g.state.buttonElement)==null||Ae.focus({preventScroll:!0});break;case te.Tab:O.preventDefault(),O.stopPropagation(),ps.flushSync(()=>g.send({type:$.CloseMenu})),tl(g.state.buttonElement,O.shiftKey?xa.Previous:xa.Next);break;default:O.key.length===1&&(g.send({type:$.Search,value:O.key}),J.setTimeout(()=>g.send({type:$.ClearSearch}),350));break}}),Vt=le(O=>{O.key===te.Space&&O.preventDefault()}),Je=$t({open:W===se.Open}),Xe=ja(D?N():{},{"aria-activedescendant":ye(g,g.selectors.activeDescendantId),"aria-labelledby":ye(g,O=>{var Pe;return(Pe=O.buttonElement)==null?void 0:Pe.id}),id:l,onKeyDown:X,onKeyUp:Vt,role:"menu",tabIndex:W===se.Open?0:void 0,ref:y,style:{...S.style,...k,"--button-width":Pl(Q,V,!0).width},...sl(ne)}),et=Le();return ce.createElement(al,{enabled:f?n.static||Q:!1,ownerDocument:Z},et({ourProps:Xe,theirProps:S,slot:Je,defaultTag:vd,features:_d,visible:L,name:"Menu.Items"}))}let kd=h.Fragment;function Md(n,u){let d=h.useId(),{id:l=`headlessui-menu-item-${d}`,disabled:p=!1,...f}=n,w=Ms("Menu.Item"),x=ye(w,L=>
1w.selectors.isActive(L,l)),S=h.useRef(null),D=Wt(u,S),g=ye(w,L=>w.selectors.shouldScrollIntoView(L,l));Pt(()=>{if(g)return rl().requestAnimationFrame(()=>{var L,J;(J=(L=S.current)==null?void 0:L.scrollIntoView)==null||J.call(L,{block:"nearest"})})},[g,S]);let Y=Hl(S),k=h.useRef({disabled:p,domRef:S,get textValue(){return Y()}});Pt(()=>{k.current.disabled=p},[k,p]),Pt(()=>(w.actions.registerItem(l,k),()=>w.actions.unregisterItem(l)),[k,l]);let N=le(()=>{w.send({type:$.CloseMenu})}),b=le(L=>{if(p)return L.preventDefault();w.send({type:$.CloseMenu}),Oa(w.state.buttonElement)}),E=le(()=>{if(p)return w.send({type:$.GoToItem,focus:K.Nothing});w.send({type:$.GoToItem,focus:K.Specific,id:l})}),y=Wl(),W=le(L=>y.update(L)),V=le(L=>{y.wasMoved(L)&&(p||x||w.send({type:$.GoToItem,focus:K.Specific,id:l,trigger:At.Pointer}))}),Z=le(L=>{y.wasMoved(L)&&(p||x&&w.state.activationTrigger===At.Pointer&&w.send({type:$.GoToItem,focus:K.Nothing}))}),[C,ae]=Ia(),[Q,ne]=nl(),B=$t({active:x,focus:x,disabled:p,close:N}),pe={id:l,ref:D,role:"menuitem",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,"aria-labelledby":C,"aria-describedby":Q,disabled:void 0,onClick:b,onFocus:E,onPointerEnter:W,onMouseEnter:W,onPointerMove:V,onMouseMove:V,onPointerLeave:Z,onMouseLeave:Z},T=Le();return ce.createElement(ae,null,ce.createElement(ne,null,T({ourProps:pe,theirProps:f,slot:B,defaultTag:kd,name:"Menu.Item"})))}let Sd="div";function Dd(n,u){let[d,l]=Ia(),p=n,f={ref:u,"aria-labelledby":d,role:"group"},w=Le();return ce.createElement(l,null,w({ourProps:f,theirProps:p,slot:{},defaultTag:Sd,name:"Menu.Section"}))}let Nd="header";function jd(n,u){let d=h.useId(),{id:l=`headlessui-menu-heading-${d}`,...p}=n,f=$l();Pt(()=>f.register(l),[l,f.register]);let w={id:l,ref:u,role:"presentation",...f.props};return Le()({ourProps:w,theirProps:p,slot:{},defaultTag:Nd,name:"Menu.Heading"})}let Od="div";function Yd(n,u){let d=n,l={ref:u,role:"separator"};return Le()({ourProps:l,theirProps:d,slot:{},defaultTag:Od,name:"Menu.Separator"})}let Td=Fe(yd),Wa=Fe(wd),$a=Fe(bd),gs=Fe(Md),Rd=Fe(Dd),Pd=Fe(jd),Id=Fe(Yd),Ed=Object.assign(Td,{Button:Wa,Items:$a,Item:gs,Section:Rd,Heading:Pd,Separator:Id});var Cd=class extends yl{constructor(n,u){super(n,u)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){n._type="infinite",super.setOptions(n)}getOptimisticResult(n){return n._type="infinite",super.getOptimisticResult(n)}fetchNextPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"backward"}}})}createResult(n,u){const{state:d}=n,l=super.createResult(n,u),{isFetching:p,isRefetching:f,isError:w,isRefetchError:x}=l,S=d.fetchMeta?.fetchMore?.direction,D=w&&S==="forward",g=p&&S==="forward",Y=w&&S==="backward",k=p&&S==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:cl(u,d.data),hasPreviousPage:ul(u,d.data),isFetchNextPageError:D,isFetchingNextPage:g,isFetchPreviousPageError:Y,isFetchingPreviousPage:k,isRefetchError:x&&!D&&!Y,isRefetching:f&&!g&&!k}}};function Ha(n,u){return xl(n,Cd)}const ct={updatePassword:n=>Ye.request("post",Te.getApiBaseURL("admin","articles",n.id,"updatePassword",null),n),getArticlesList:n=>Ye.request("get",Te.getApiBaseURL("admin","articles",null,"getArticles",{...n,channel:"platform"})),getDetailArticle:n=>Ye.request("get",Te.getApiBaseURL("admin","articles",n,"getArticle",null)),getCommentariesList:(n,u)=>Ye.request("get",Te.getApiBaseURL("admin","articles",n,"getCommentaries",u)),postReactionArticle:(n,u)=>Ye.request("post",Te.getApiBaseURL("admin","articles",n,"createReactions",null),u),postCommentary:(n,u)=>Ye.request("post",Te.getApiBaseURL("admin","articles",n,"createCommentary",null),u)};function Fd(n=6){return Ha({queryKey:["articles","infinite"],queryFn:({pageParam:u=1})=>ct.getArticlesList({page:u,per_page:n}),initialPageParam:1,getNextPageParam:u=>{const d=u.data;if(!(!d||d.current_page>=d.last_page))return d.current_page+1}})}function Ua(n){return wl({queryKey:["articles","detail",n],queryFn:()=>ct.getDetailArticle(n),enabled:!1,staleTime:0})}function Va(){return Ut({mutationFn:({id:n,params:u})=>ct.postReactionArticle(n,u)})}function Ld(n,u=6){return Ha({queryKey:["comments",n],queryFn:({pageParam:d=1})=>ct.getCommentariesList(n,{page:d,per_page:u}),initialPageParam:1,getNextPageParam:d=>{const l=d.data;return l.current_page<l.last_page?l.current_page+1:void 0},enabled:!!n})}function Ad(){const n=ws();return Ut({mutationFn:({id:u,comment:d})=>ct.postCommentary(u,{comment:d}),onSuccess:(u,d)=>{n.invalidateQueries({queryKey:["comments",Number(d.id)]})}})}const Wd=({handleClose:n,visible:u,submitReport:d})=>{const[l,p]=h.useState(""),[f,w]=h.useState(""),[x,S]=h.useState(!1),D=[{label:"Spam",value:ut.SPAM},{label:"Inapropiado",value:ut.INAPPROPRIATE},{label:"Violencia",value:ut.VIOLENCE},{label:"Noticias falsas",value:ut.FAKE_NEWS},{label:"Otro",value:ut.OTHER}],g=async()=>
1{if(!(!f.trim()||!l)){S(!0);try{await d(l,f),p(""),w("")}finally{S(!1)}}};return i.jsx(Ht,{appear:!0,show:u,as:h.Fragment,children:i.jsxs(vs,{as:"div",className:"relative z-[110]",onClose:n,children:[i.jsx(Qe,{as:h.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:i.jsx("div",{className:"fixed inset-0 bg-gray-900/60 backdrop-blur-sm"})}),i.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:i.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:i.jsx(Qe,{as:h.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:i.jsxs(_s,{className:"w-full max-w-md transform overflow-hidden rounded-3xl border border-white/10 bg-navy-800 p-6 text-left align-middle shadow-2xl shadow-black/40 transition-all",children:[i.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[i.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-red-500/15",children:i.jsx(Ya,{className:"h-6 w-6 text-red-400"})}),i.jsx("button",{onClick:n,className:"rounded-full p-1.5 text-gray-400 transition-all duration-200 hover:bg-app-primary hover:text-white active:scale-95",children:i.jsx(bs,{className:"h-5 w-5"})})]}),i.jsx(Ta,{as:"h3",className:"text-xl leading-6 font-black tracking-tight text-white uppercase",children:"Reportar comentario"}),i.jsx("p",{className:"mt-2 text-sm leading-relaxed text-gray-400",children:"Ayúdanos a mantener la comunidad segura indicando el motivo de este reporte."}),i.jsxs("div",{className:"mt-6 space-y-5",children:[i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{className:"ml-1 text-[10px] font-bold tracking-widest text-gray-500 uppercase",children:"Motivo del reporte"}),i.jsx(hl,{value:l,onChange:Y=>p(Y.target.value),classNames:{select:`!bg-navy-900 !border-white/15 transition-all !focus:border-red-500/50 !focus:ring-1 !focus:ring-red-500/30 !focus:outline-none ${l===""?"!text-gray-400":"!text-white"}`},children:D.map(Y=>i.jsx("option",{value:Y.value,className:"bg-navy-950 text-white",children:Y.label},Y.value))})]}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{className:"ml-1 text-[10px] font-bold tracking-widest text-gray-500 uppercase",children:"Descripción del problema"}),i.jsx("textarea",{rows:3,value:f,onChange:Y=>w(Y.target.value),placeholder:"Cuéntanos más detalles...",className:"block w-full resize-none rounded-xl border border-white/15 bg-navy-900 px-4 py-3 text-sm text-white placeholder-gray-400 transition-all focus:border-red-500/50 focus:ring-1 focus:ring-red-500/30 focus:outline-none"})]})]}),i.jsxs("div",{className:"mt-8 flex flex-col gap-3",children:[i.jsx(me,{type:"button",disabled:x||!f.trim()||!l,onClick:g,className:"flex w-full items-center justify-center rounded-xl bg-red-600 px-4 py-3.5 text-sm font-bold text-white shadow-lg shadow-red-900/30 transition-all hover:bg-red-500 active:scale-[0.97] disabled:opacity-40 disabled:shadow-none",children:x?i.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-white border-t-transparent"}):"ENVIAR REPORTE"}),i.jsx(me,{type:"button",onClick:n,className:"w-full px-4 py-2 text-xs font-bold tracking-widest text-gray-500 uppercase transition-all hover:text-gray-300 active:scale-95",children:"Cancelar"})]})]})})})})]})})},$d={postCreateReport:n=>Ye.request("post",Te.getApiBaseURL("admin","articles-comments-reports",null,"create",null),n)};function Hd(){return Ut({mutationFn:({commentId:n,reasonType:u,reasonDescription:d})=>$d.postCreateReport({articles_comment_id:n,reason_type:u,reason_description:d})})}const Ud=({comment:n,onDelete:u})=>{const{user:d}=fl(),l=n.fan?.id===d?.id,[p,f]=ce.useState(!1),w=Hd(),x=async(S,D)=>{try{const g=await w.mutateAsync({commentId:n.id,reasonType:S,reasonDescription:D});Lt.custom(g.title,g.message,"success"),g.satisfactory&&f(!1)}catch(g){console.error("Error en la mutación de reporte:",g)}};return i.jsxs("div",{className:`group flex flex-col gap-2 rounded-2xl p-3 border transition-colors shadow-lg shadow-black/10 ${l?"bg-app-red/10 border-app-red/25":"bg-white/10 border-white/10"}`,children:[i.jsxs("div",{className:"flex items-start justify-between gap-2",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-full ${l?"bg-white/20 text-white":"bg-app-primary text-gray-300"} text-[10px] font-bold`,children:n.fan?.full_name?.charAt(0)||"U"}),i.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[i.jsx("span",{className:"text-[12px] font-bold text-white",children:n.fan?.full_name}),i.jsx("span",{className:"text-[10px] text-white/40",children:"·"}),i.jsxs("p",{className:"text-[10px] font-medium text-white/40",children:["Hace ",Ft.getTextDifferenceDate(Re(),Re(n.created_at))]})]})]}),i.jsxs(Ed,{as:"div",className:"relative shrink-0",children:[i.jsx(Wa,{className:`flex rounded-full p-1 ${l?"text-white/60 hover:bg-white/10 hover:text-white":"text-gray-500 hover:bg-white/10 hover:text-white"}`,children:i.jsx(Kl,{className:"h-4 w-4"})}),i.jsx(Ht,{as:h.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:i.jsx($a,{className:"absolute right-0 z-10 mt-1 w-36 origin-top-right rounded-lg bg-navy-800 shadow-lg shadow-black/30 ring-1 ring-white/10 focus:outline-none",children:i.jsx("div",{className:"p-1",children:l?i.jsx(gs,{children:({active:S})=>i.jsxs("button",{onClick:()=>u(String(n.id)),className:`${S?"bg-red-500/15 text-red-400":"text-red-400"} flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-xs font-medium`,children:[i.jsx(ed,{className:"h-3.5 w-3.5"}),"Eliminar"]})}):i.jsx(gs,{children:({active:S})=>i.jsxs("button",{onClick:()=>f(!0),className:`${S?"bg-white/10 text-white":"text-gray-400"} flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-xs font-medium`,children:[i.jsx(Jl,{className:"h-3.5 w-3.5"}),"Reportar"]})})})})})]})]}),i.jsx("p",{className:`text-[13px] leading-relaxed ${l?"text-white/90":"text-gray-300"} ml-11`,children:n.comment}),p&&i.jsx(Wd,{visible:p,handleClose:()=>f(!1),submitReport:x})]})},Vd={postDeleteComment:n=>Ye.request("post",Te.getApiBaseURL("admin","articles-comments",n,"deletedComment",null))};function Gd(n){const u=ws();return Ut({mutationFn:d=>Vd.postDeleteComment(d),onSuccess:(d,l)=>{d?.satisfactory&&u.setQueryData(["comments",n],p=>p&&{...p,pages:p.pages.map(f=>({...f,data:{...f.data,data:f.data.data.filter(w=>String(w.id)!==String(l)),total:f.data.total-1}}))})},onError:d=>{console.error("Error al eliminar el comentario:",d)}})}const zd=bl({content:kl().required().trim()}).required(),Ga=({isOpen:n,onClose:u,articleId:d,title:l})=>{const p=h.useRef(null),{t:f}=Ra(),w=ws(),{data:x,fetchNextPage:S,hasNextPage:D,isPending:g,isFetchingNextPage:Y}=Ld(d,25),k=Ad(),{register:N,handleSubmit:b,reset:E,watch:y}=vl({resolver:_l(zd),defaultValues:{content:""}}),[W,V]=ce.useState(!1),Z=x?.pages.flatMap(J=>J.data?.data??[])??[],C=x?.pages[0]?.data?.total??0,ae=Z.length,Q=y("content"),ne=C>0?Math.min(ae/C*100,100):0;h.useEffect(()=>{p.current&&p.current.scrollTo({top:p.current.scrollHeight,behavior:"smooth"})},[Z.length,n]);const B=async J=>{if(!k.isPending)try{await k.mutateAsync({id:String(d),comment:J.content}),w.invalidateQueries({queryKey:["comments",String(d)]}),V(!0),E()}catch(X){Lt.error(X?.message||f("generals.error-sending-comment"))}},pe=Gd(d),T=ml(),L=J=>{T({messages:{idle:{title:f("comments.delete.title"),description:f("comments.delete.description"),actionText:f("comments.delete.actionText")}},onConfirm:async()=>{try{const X=await pe.mutateAsync(J);return X?.satisfactory&&V(!0),X}catch{return Lt.custom(f("generals.error-deleting-comment"),null,"error"),{satisfactory:!1,title:"",message:"",data:null,code:500}}}})};return i.jsx(Ht,{appear:!0,show:n,as:h.Fragment,children:i.jsxs(vs,{as:"div",className:"relative z-100",onClose:()=>u({refresh:W}),children:[i.jsx(Qe,{as:h.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:i.jsx("div",{className:"fixed inset-0 bg-navy-950/80 backdrop-blur-md"})}),i.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:i.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:i.jsx(Qe,{as:h.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95 translate-y-4",enterTo:"opacity-100 scale-100 translate-y-0",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100 translate-y-0",leaveTo:"opacity-0 scale-95 translate-y-4",children:i.jsxs(_s,{className:"relative flex h-[min(82vh,760px)] w-full max-w-4xl flex-col overflow-hidden rounded-[1.35rem] border border-white/10 bg-navy-800 text-white shadow-2xl shadow-black/50",children:[i.jsx("div",{className:"absolute inset-x-0 top-0 h-1 bg-linear-to-r from-app-red via-white to-app-primary"}),i.jsx("div",{className:"pointer-events-none absolute -left-20 -top-24 size-72 roun
1ded-full bg-app-red/20 blur-3xl"}),i.jsx("div",{className:"pointer-events-none absolute -right-20 bottom-10 size-72 rounded-full bg-app-primary/70 blur-3xl"}),i.jsxs("header",{className:"relative border-b border-white/10 px-5 py-5 sm:px-7",children:[i.jsxs("div",{className:"flex items-start justify-between gap-4",children:[i.jsxs("div",{className:"min-w-0",children:[i.jsxs("div",{className:"mb-2 inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1 text-xs font-black uppercase tracking-widest text-white/80",children:[i.jsx(id,{className:"size-4 text-app-red-soft"}),f("generals.article")]}),i.jsx(Ta,{className:"text-2xl font-black uppercase tracking-wide text-white sm:text-3xl",children:f("generals.comments")}),l&&i.jsx("p",{className:"mt-2 truncate text-sm font-semibold text-white/55",children:l})]}),i.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[i.jsxs("div",{className:"hidden rounded-lg border border-white/10 bg-navy-950/70 px-4 py-2 sm:block",children:[i.jsx("p",{className:"text-[10px] font-black uppercase tracking-widest text-white/45",children:"Viendo"}),i.jsxs("p",{className:"text-sm font-black text-white",children:[i.jsx("span",{className:"text-app-red-soft",children:ae}),i.jsx("span",{className:"mx-1 text-white/30",children:"/"}),C]})]}),i.jsx(me,{unstyled:!0,onClick:()=>u({refresh:W}),className:"grid size-11 place-items-center rounded-full border border-white/10 bg-white/5 text-white/70 transition hover:bg-app-red hover:text-white","aria-label":"Cerrar comentarios",children:i.jsx(bs,{className:"h-6 w-6"})})]})]}),i.jsx("div",{className:"mt-5 h-1 overflow-hidden rounded-full bg-white/10",children:i.jsx("div",{className:"h-full rounded-full bg-app-red transition-all duration-500",style:{width:`${ne}%`}})})]}),i.jsxs("div",{ref:p,className:"grow space-y-4 overflow-y-auto bg-navy-900 p-4",children:[Z.length===0&&!g?i.jsxs("div",{className:"flex h-full flex-col items-center justify-center text-gray-400",children:[i.jsx(rd,{className:"mb-2 h-12 w-12 opacity-20"}),i.jsx("p",{className:"text-sm",children:f("generals.no-comments-yet")})]}):Z.map(J=>i.jsx(Ud,{comment:J,onDelete:()=>L(String(J.id))},J.id)),D&&i.jsx("div",{className:"flex justify-center pt-2",children:i.jsx(me,{unstyled:!0,onClick:()=>S(),disabled:Y,className:"group dark:border-dark-500 dark:bg-dark-700 dark:text-dark-100 flex items-center gap-2 rounded-full border border-[#16223f]/20 bg-white px-6 py-2.5 font-semibold text-[#16223f] shadow-sm transition-all duration-300 hover:border-[#16223f] hover:bg-[#16223f] hover:text-white active:scale-95 disabled:cursor-not-allowed disabled:opacity-50",children:Y?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"}),i.jsx("span",{children:f("generals.loading")})]}):i.jsxs(i.Fragment,{children:[i.jsx("span",{children:f("generals.load-more-comments")}),i.jsx("svg",{className:"h-4 w-4 transition-transform group-hover:translate-y-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})})]})})}),g&&i.jsx("div",{className:"flex justify-center p-4",children:i.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-white/70 border-t-transparent"})})]}),i.jsx("form",{onSubmit:b(B),className:"border-t border-white/10 bg-navy-800 p-4",children:i.jsxs("div",{className:"flex items-end gap-2 rounded-2xl bg-navy-900 px-4 py-2 transition-all focus-within:ring-2 focus-within:ring-app-primary",children:[i.jsx("textarea",{...N("content"),autoComplete:"off",rows:2,placeholder:k.isPending?"Enviando...":"Escribe un comentario...",className:"grow resize-none border-none bg-transparent py-1 text-sm text-white placeholder-gray-500 outline-none focus:ring-0",disabled:k.isPending}),i.jsx("button",{type:"submit",disabled:!Q?.trim()||k.isPending,className:"p-1 text-white/70 transition-transform active:scale-90 hover:text-white disabled:opacity-30",children:k.isPending?i.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-white/70 border-t-transparent"}):i.jsx(hd,{className:"h-6 w-6"})})]})})]})})})})]})})};var ys={exports:{}},Et={exports:{}},Zd=Et.exports,ka;function Bd(){return ka||(ka=1,(function(n,u){(function(d,l){n.exports=l()})(Zd,(function(){var d;function l(){return d.apply(null,arguments)}function p(e){d=e}function f(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function w(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function S(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(x(e,t))return!1;return!0}function D(e){return e===void 0}function g(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Y(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function k(e,t){var s=[],a,r=e.length;for(a=0;a<r;++a)s.push(t(e[a],a));return s}
vendor: 33,766 bytes, lines 1-4
1function N(e,t){for(var s in t)x(t,s)&&(e[s]=t[s]);return x(t,"toString")&&(e.toString=t.toString),x(t,"valueOf")&&(e.valueOf=t.valueOf),e}function b(e,t,s,a){return Zs(e,t,s,a,!0).utc()}function E(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return e._pf==null&&(e._pf=E()),e._pf}var W;Array.prototype.some?W=Array.prototype.some:W=function(e){var t=Object(this),s=t.length>>>0,a;for(a=0;a<s;a++)if(a in t&&e.call(this,t[a],a,t))return!0;return!1};function V(e){var t=null,s=!1,a=e._d&&!isNaN(e._d.getTime());if(a&&(t=y(e),s=W.call(t.parsedDateParts,function(r){return r!=null}),a=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(a=a&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=a;else return a;return e._isValid}function Z(e){var t=b(NaN);return e!=null?N(y(t),e):y(t).userInvalidated=!0,t}var C=l.momentProperties=[],ae=!1;function Q(e,t){var s,a,r,o=C.length;if(D(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),D(t._i)||(e._i=t._i),D(t._f)||(e._f=t._f),D(t._l)||(e._l=t._l),D(t._strict)||(e._strict=t._strict),D(t._tzm)||(e._tzm=t._tzm),D(t._isUTC)||(e._isUTC=t._isUTC),D(t._offset)||(e._offset=t._offset),D(t._pf)||(e._pf=y(t)),D(t._locale)||(e._locale=t._locale),o>0)for(s=0;s<o;s++)a=C[s],r=t[a],D(r)||(e[a]=r);return e}function ne(e){Q(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ae===!1&&(ae=!0,l.updateOffset(this),ae=!1)}function B(e){return e instanceof ne||e!=null&&e._isAMomentObject!=null}function pe(e){l.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var s=!0;return N(function(){if(l.deprecationHandler!=null&&l.deprecationHandler(null,e),s){var a=[],r,o,c,v=arguments.length;for(o=0;o<v;o++){if(r="",typeof arguments[o]=="object"){r+=`
2[`+o+"] ";for(c in arguments[0])x(arguments[0],c)&&(r+=c+": "+arguments[0][c]+", ");r=r.slice(0,-2)}else r=arguments[o];a.push(r)}pe(e+`
3Arguments: `+Array.prototype.slice.call(a).join("")+`
4`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var L={};function J(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),L[e]||(pe(t),L[e]=!0)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null;function X(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Vt(e){var t,s;for(s in e)x(e,s)&&(t=e[s],X(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Je(e,t){var s=N({},e),a;for(a in t)x(t,a)&&(w(e[a])&&w(t[a])?(s[a]={},N(s[a],e[a]),N(s[a],t[a])):t[a]!=null?s[a]=t[a]:delete s[a]);for(a in e)x(e,a)&&!x(t,a)&&w(e[a])&&(s[a]=N({},s[a]));return s}function Xe(e){e!=null&&this.set(e)}var et;Object.keys?et=Object.keys:et=function(e){var t,s=[];for(t in e)x(e,t)&&s.push(t);return s};var O={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Pe(e,t,s){var a=this._calendar[e]||this._calendar.sameElse;return X(a)?a.call(t,s):a}function ie(e,t,s){var a=""+Math.abs(e),r=t-a.length,o=e>=0;return(o?s?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+a}var Ae=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,We=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Gt={},$e={};function M(e,t,s,a){var r=a;typeof a=="string"&&(r=function(){return this[a]()}),e&&($e[e]=r),t&&($e[t[0]]=function(){return ie(r.apply(this,arguments),t[1],t[2])}),s&&($e[s]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function za(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Za(e){var t=e.match(Ae),s,a;for(s=0,a=t.length;s<a;s++)$e[t[s]]?t[s]=$e[t[s]]:t[s]=za(t[s]);return function(r){var o="",c;for(c=0;c<a;c++)o+=X(t[c])?t[c].call(r,e):t[c];return o}}function ht(e,t){return e.isValid()?(t=Ss(t,e.localeData()),Gt[t]=Gt[t]||Za(t),Gt[t](e)):e.localeData().invalidDate()}function Ss(e,t){var s=5;function a(r){return t.longDateFormat(r)||r}for(We.lastIndex=0;s>=0&&We.test(e);)e=e.replace(We,a),We.lastIndex=0,s-=1;return e}var Ba={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function qa(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(Ae).map(function(a){return a==="MMMM"||a==="MM"||a==="DD"||a==="dddd"?a.slice(1):a}).join(""),this._longDateFormat[e])}var Ka="Invalid date";function Qa(){return this._invalidDate}var Ja="%d",Xa=/\d{1,2}/;function er(e){return this._ordinal.replace("%d",e)}var tr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function sr(e,t,s,a){var r=this._relativeTime[s];return X(r)?r(e,t,s,a):r.replace(/%d/i,e)}function ar(e,t){var s=this._relativeTime[e>0?"future":"past"];return X(s)?s(t):s.replace(/%s/i,t)}var Ds={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function de(e){return typeof e=="string"?Ds[e]||Ds[e.toLowerCase()]:void 0}function zt(e){var t={},s,a;for(a in e)x(e,a)&&(s=de(a),s&&(t[s]=e[a]));return t}var rr={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function nr(e){var t=[],s;for(s in e)x(e,s)&&t.push({unit:s,priority:rr[s]});return t.sort(function(a,r){return a.priority-r.priority}),t}var Ns=/\d/,oe=/\d\d/,js=/\d{3}/,Zt=/\d{4}/,ft=/[+-]?\d{6}/,H=/\d\d?/,Os=/\d\d\d\d?/,Ys=/\d\d\d\d\d\d?/,mt=/\d{1,3}/,Bt=/\d{1,4}/,pt=/[+-]?\d{1,6}/,He=/\d+/,gt=/[+-]?\d+/,ir=/Z|[+-]\d\d:?\d\d/gi,yt=/Z|[+-]\d\d(?::?\d\d)?/gi,or=/[+-]?\d+(\.\d{1,3})?/,tt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ue=/^[1-9]\d?/,qt=/^([1-9]\d|\d)/,xt;xt={};function _(e,t,s){xt[e]=X(t)?t:function(a,r){return a&&s?s:t}}function lr(e,t){return x(xt,e)?xt[e](t._strict,t._locale):new RegExp(dr(e))}function dr(e){return xe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,a,r,o){return s||a||r||o}))}function xe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function R(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=ue(t)),s}var Kt={};function A(e,t){var s,a=t,r;for(typeof e=="string"&&(e=[e]),g(t)&&(a=function(o,c){c[t]=R(o)}),r=e.length,s=0;s<r;s++)Kt[e[s]]=a}function st(e,t){A(e,function(s,a,r,o){r._w=r._w||{},t(s,r._w,r,o)})}function ur(e,t,s){t!=null&&x(Kt,e)&&Kt[e](t,s._a,s,e)}function wt(e){return e%4===0&&e%100!==0||e%400===0}var ee=0,we=1,ge=2,q=3,he=4,ve=5,Ie=6,cr=7,hr=8;M("Y",0,0,function(){var e=this.year();return e<=9999?ie(e,4):"+"+e}),M(0,["YY",2],0,function(){return this.year()%100}),M(0,["YYYY",4],0,"year"),M(0,["YYYYY",5],0,"year"),M(0,["YYYYYY",6,!0],0,"year"),_("Y",gt),_("YY",H,oe),_("YYYY",Bt,Zt),_("YYYYY",pt,ft),_("YYYYYY",pt,ft),A(["YYYYY","YYYYYY"],ee),A("YYYY",function(e,t){t[ee]=e.length===2?l.parseTwoDigitYear(e):R(e)}),A("YY",function(e,t){t[ee]=l.parseTwoDigitYear(e)}),A("Y",function(e,t){t[ee]=parseInt(e,10)});function at(e){return wt(e)?366:365}l.parseTwoDigitYear=function(e){return R(e)+(R(e)>68?1900:2e3)};var Ts=Ve("FullYear",!0);function fr(){return wt(this.year())}function Ve(e,t){return function(s){return s!=null?(Rs(this,e,s),l.updateOffset(this,t),this):rt(this,e)}}function rt(e,t){if(!e.isValid())return NaN;var s=e._d,a=e._isUTC;switch(t){case"Milliseconds":return a?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return a?s.getUTCSeconds():s.getSeconds();case"Minutes":return a?s.getUTCMinutes():s.getMinutes();case"Hours":return a?s.getUTCHours():s.getHours();case"Date":return a?s.getUTCDate():s.getDate();case"Day":return a?s.getUTCDay():s.getDay();case"Month":return a?s.getUTCMonth():s.getMonth();case"FullYear":return a?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Rs(e,t,s){var a,r,o,c,v;if(!(!e.isValid()||isNaN(s))){switch(a=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?a.setUTCMilliseconds(s):a.setMilliseconds(s));case"Seconds":return void(r?a.setUTCSeconds(s):a.setSeconds(s));case"Minutes":return void(r?a.setUTCMinutes(s):a.setMinutes(s));case"Hours":return void(r?a.setUTCHours(s):a.setHours(s));case"Date":return void(r?a.setUTCDate(s):a.setDate(s));case"FullYear":break;default:return}o=s,c=e.month(),v=e.date(),v=v===29&&c===1&&!wt(o)?28:v,r?a.setUTCFullYear(o,c,v):a.setFullYear(o,c,v)}}function mr(e){return e=de(e),X(this[e])?this[e]():this}function pr(e,t){if(typeof e=="object"){e=zt(e);var s=nr(e),a,r=s.length;for(a=0;a<r;a++)this[s[a].unit](e[s[a].unit])}else if(e=de(e),X(this[e]))return this[e](t);return this}function gr(e,t){return(e%t+t)%t}var z;Array.prototype.indexOf?z=Array.prototype.indexOf:z=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Qt(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=gr(t,12);return e+=(t-s)/12,s===1?wt(e)?29:28:31-s%7%2}M("M",["MM",2],"Mo",function(){return this.month()+1}),M("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),M("MMMM",0,0,function(e){return this.localeData().months(this,e)}),_("M",H,Ue),_("MM",H,oe),_("MMM",function(e,t){return t.monthsShortRegex(e)}),_("MMMM",function(e,t){return t.monthsRegex(e)}),A(["M","MM"],function(e,t){t[we]=R(e)-1}),A(["MMM","MMMM"],function(e,t,s,a){var r=s._locale.monthsParse(e,a,s._strict);r!=null?t[we]=r:y(s).invalidMonth=e});var yr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ps="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Is=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xr=tt,wr=tt;function vr(e,t){return e?f(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Is).test(t)?"format":"standalone"][e.month()]:f(this._months)?this._months:this._months.standalone}function _r(e,t){return e?f(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Is.test(t)?"format":"standalone"][e.month()]:f(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function br(e,t,s){var a,r,o,c=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)o=b([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(o,"").toLocaleLowerCase();return s?t==="MMM"?(r=z.call(this._shortMonthsParse,c),r!==-1?r:null):(r=z.call(this._longMonthsParse,c),r!==-1?r:null):t==="MMM"?(r=z.call(this._shortMonthsParse,c),r!==-1?r:(r=z.call(this._longMonthsParse,c),r!==-1?r:null)):(r=z.call(this._longMonthsParse,c),r!==-1?r:(r=z.call(this._shortMonthsParse,c),r!==-1?r:null))}function kr(e,t,s){var a,r,o;if(this._monthsParseExact)return br.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(r=b([2e3,a]),s&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!s&&!this._monthsParse[a]&&(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(o.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[a].test(e))return a;if(s&&t==="MMM"&&this._shortMonthsParse[a].test(e))return a;if(!s&&this._monthsParse[a].test(e))return a}}function Es(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=R(t);else if(t=e.localeData().monthsParse(t),!g(t))return e}var s=t,a=e.date();return a=a<29?a:Math.min(a,Qt(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,a):e._d.setMonth(s,a),e}function Cs(e){return e!=null?(Es(this,e),l.updateOffset(this,!0),this):rt(this,"Month")}function Mr(){return Qt(this.year(),this.month())}function Sr(e){return this._monthsParseExact?(x(this,"_monthsRegex")||Fs.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(x(this,"_monthsShortRegex")||(this._monthsShortRegex=xr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Dr(e){return this._monthsParseExact?(x(this,"_monthsRegex")||Fs.call(this),e?this._monthsStrictRegex:this._monthsRegex):(x(this,"_monthsRegex")||(this._monthsRegex=wr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Fs(){function e(j,P){return P.length-j.length}var t=[],s=[],a=[],r,o,c,v;for(r=0;r<12;r++)o=b([2e3,r]),c=xe(this.monthsShort(o,"")),v=xe(this.months(o,"")),t.push(c),s.push(v),a.push(v),a.push(c);t.sort(e),s.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Nr(e,t,s,a,r,o,c){var v;return e<100&&e>=0?(v=new Date(e+400,t,s,a,r,o,c),isFinite(v.getFullYear())&&v.setFullYear(e)):v=new Date(e,t,s,a,r,o,c),v}function nt(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function vt(e,t,s){var a=7+t-s,r=(7+nt(e,0,a).getUTCDay()-t)%7;return-r+a-1}function Ls(e,t,s,a,r){var o=(7+s-a)%7,c=vt(e,a,r),v=1+7*(t-1)+o+c,j,P;return v<=0?(j=e-1,P=at(j)+v):v>at(e)?(j=e+1,P=v-at(e)):(j=e,P=v),{year:j,dayOfYear:P}}function it(e,t,s){var a=vt(e.year(),t,s),r=Math.floor((e.dayOfYear()-a-1)/7)+1,o,c;return r<1?(c=e.year()-1,o=r+_e(c,t,s)):r>_e(e.year(),t,s)?(o=r-_e(e.year(),t,s),c=e.year()+1):(c=e.year(),o=r),{week:o,year:c}}function _e(e,t,s){var a=vt(e,t,s),r=vt(e+1,t,s);return(at(e)-a+r)/7}M("w",["ww",2],"wo","week"),M("W",["WW",2],"Wo","isoWeek"),_("w",H,Ue),_("ww",H,oe),_("W",H,Ue),_("WW",H,oe),st(["w","ww","W","WW"],function(e,t,s,a){t[a.substr(0,1)]=R(e)});function jr(e){return it(e,this._week.dow,this._week.doy).week}var Or={dow:0,doy:6};function Yr(){return this._week.dow}function Tr(){return this._week.doy}function Rr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Pr(e){var t=it(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}M("d",0,"do","day"),M("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),M("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),M("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),M("e",0,0,"weekday"),M("E",0,0,"isoWeekday"),_("d",H),_("e",H),_("E",H),_("dd",function(e,t){return t.weekdaysMinRegex(e)}),_("ddd",function(e,t){return t.weekdaysShortRegex(e)}),_("dddd",function(e,t){return t.weekdaysRegex(e)}),st(["dd","ddd","dddd"],function(e,t,s,a){var r=s._locale.weekdaysParse(e,a,s._strict);r!=null?t.d=r:y(s).invalidWeekday=e}),st(["d","e","E"],function(e,t,s,a){t[a]=R(e)});function Ir(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Er(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Jt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Cr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),As="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lr=tt,Ar=tt,Wr=tt;function $r(e,t){var s=f(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Jt(s,this._week.dow):e?s[e.day()]:s}function Hr(e){return e===!0?Jt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ur(e){return e===!0?Jt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vr(e,t,s){var a,r,o,c=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)o=b([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(o,"").toLocaleLowerCase();return s?t==="dddd"?(r=z.call(this._weekdaysParse,c),r!==-1?r:null):t==="ddd"?(r=z.call(this._shortWeekdaysParse,c),r!==-1?r:null):(r=z.call(this._minWeekdaysParse,c),r!==-1?r:null):t==="dddd"?(r=z.call(this._weekdaysParse,c),r!==-1||(r=z.call(this._shortWeekdaysParse,c),r!==-1)?r:(r=z.call(this._minWeekdaysParse,c),r!==-1?r:null)):t==="ddd"?(r=z.call(this._shortWeekdaysParse,c),r!==-1||(r=z.call(this._weekdaysParse,c),r!==-1)?r:(r=z.call(this._minWeekdaysParse,c),r!==-1?r:null)):(r=z.call(this._minWeekdaysParse,c),r!==-1||(r=z.call(this._weekdaysParse,c),r!==-1)?r:(r=z.call(this._shortWeekdaysParse,c),r!==-1?r:null))}function Gr(e,t,s){var a,r,o;if(this._weekdaysParseExact)return Vr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(r=b([2e3,1]).day(a),s&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[a]=new RegExp(o.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[a].test(e))return a;if(s&&t==="ddd"&&this._shortWeekdaysParse[a].test(e))return a;if(s&&t==="dd"&&this._minWeekdaysParse[a].test(e))return a;if(!s&&this._weekdaysParse[a].test(e))return a}}function zr(e){if(!this.isValid())return e!=null?this:NaN;var t=rt(this,"Day");return e!=null?(e=Ir(e,this.localeData()),this.add(e-t,"d")):t}function Zr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Br(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Er(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function qr(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(x(this,"_weekdaysRegex")||(this._weekdaysRegex=Lr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kr(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(x(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ar),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qr(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(x(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Wr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(re,De){return De.length-re.length}var t=[],s=[],a=[],r=[],o,c,v,j,P;for(o=0;o<7;o++)c=b([2e3,1]).day(o),v=xe(this.weekdaysMin(c,"")),j=xe(this.weekdaysShort(c,"")),P=xe(this.weekdays(c,"")),t.push(v),s.push(j),a.push(P),r.push(v),r.push(j),r.push(P);t.sort(e),s.sort(e),a.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function es(){return this.hours()%12||12}function Jr(){return this.hours()||24}M("H",["HH",2],0,"hour"),M("h",["hh",2],0,es),M("k",["kk",2],0,Jr),M("hmm",0,0,function(){return""+es.apply(this)+ie(this.minutes(),2)}),M("hmmss",0,0,function(){return""+es.apply(this)+ie(this.minutes(),2)+ie(this.seconds(),2)}),M("Hmm",0,0,function(){return""+this.hours()+ie(this.minutes(),2)}),M("Hmmss",0,0,function(){return""+this.hours()+ie(this.minutes(),2)+ie(this.seconds(),2)});function Ws(e,t){M(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Ws("a",!0),Ws("A",!1);function $s(e,t){return t._meridiemParse}_("a",$s),_("A",$s),_("H",H,qt),_("h",H,Ue),_("k",H,Ue),_("HH",H,oe),_("hh",H,oe),_("kk",H,oe),_("hmm",Os),_("hmmss",Ys),_("Hmm",Os),_("Hmmss",Ys),A(["H","HH"],q),A(["k","kk"],function(e,t,s){var a=R(e);t[q]=a===24?0:a}),A(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),A(["h","hh"],function(e,t,s){t[q]=R(e),y(s).bigHour=!0}),A("hmm",function(e,t,s){var a=e.length-2;t[q]=R(e.substr(0,a)),t[he]=R(e.substr(a)),y(s).bigHour=!0}),A("hmmss",function(e,t,s){var a=e.length-4,r=e.length-2;t[q]=R(e.substr(0,a)),t[he]=R(e.substr(a,2)),t[ve]=R(e.substr(r)),y(s).bigHour=!0}),A("Hmm",function(e,t,s){var a=e.length-2;t[q]=R(e.substr(0,a)),t[he]=R(e.substr(a))}),A("Hmmss",function(e,t,s){var a=e.length-4,r=e.length-2;t[q]=R(e.substr(0,a)),t[he]=R(e.substr(a,2)),t[ve]=R(e.substr(r))});function Xr(e){return(e+"").toLowerCase().charAt(0)==="p"}var en=/[ap]\.?m?\.?/i,tn=Ve("Hours",!0);function sn(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var Hs={calendar:O,longDateFormat:Ba,invalidDate:Ka,ordinal:Ja,dayOfMonthOrdinalParse:Xa,relativeTime:tr,months:yr,monthsShort:Ps,week:Or,weekdays:Cr,weekdaysMin:Fr,weekdaysShort:As,meridiemParse:en},G={},ot={},lt;function an(e,t){var s,a=Math.min(e.length,t.length);for(s=0;s<a;s+=1)if(e[s]!==t[s])return s;return a}function Us(e){return e&&e.toLowerCase().replace("_","-")}function rn(e){for(var t=0,s,a,r,o;t<e.length;){for(o=Us(e[t]).split("-"),s=o.length,a=Us(e[t+1]),a=a?a.split("-"):null;s>0;){if(r=_t(o.slice(0,s).join("-")),r)return r;if(a&&a.length>=s&&an(o,a)>=s-1)break;s--}t++}return lt}function nn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function _t(e){var t=null,s;if(G[e]===void 0&&n&&n.exports&&nn(e))try{t=lt._abbr,s=Pa,s("./locale/"+e),Ne(t)}catch{G[e]=null}return G[e]}function Ne(e,t){var s;return e&&(D(t)?s=be(e):s=ts(e,t),s?lt=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),lt._abbr}function ts(e,t){if(t!==null){var s,a=Hs;if(t.abbr=e,G[e]!=null)J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=G[e]._config;else if(t.parentLocale!=null)if(G[t.parentLocale]!=null)a=G[t.parentLocale]._config;else if(s=_t(t.parentLocale),s!=null)a=s._config;else return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;return G[e]=new Xe(Je(a,t)),ot[e]&&ot[e].forEach(function(r){ts(r.name,r.config)}),Ne(e),G[e]}else return delete G[e],null}function on(e,t){if(t!=null){var s,a,r=Hs;G[e]!=null&&G[e].parentLocale!=null?G[e].set(Je(G[e]._config,t)):(a=_t(e),a!=null&&(r=a._config),t=Je(r,t),a==null&&(t.abbr=e),s=new Xe(t),s.parentLocale=G[e],G[e]=s),Ne(e)}else G[e]!=null&&(G[e].parentLocale!=null?(G[e]=G[e].parentLocale,e===Ne()&&Ne(e)):G[e]!=null&&delete G[e]);return G[e]}function be(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return lt;if(!f(e)){if(t=_t(e),t)return t;e=[e]}return rn(e)}function ln(){return et(G)}function ss(e){var t,s=e._a;return s&&y(e).overflow===-2&&(t=s[we]<0||s[we]>11?we:s[ge]<1||s[ge]>Qt(s[ee],s[we])?ge:s[q]<0||s[q]>24||s[q]===24&&(s[he]!==0||s[ve]!==0||s[Ie]!==0)?q:s[he]<0||s[he]>59?he:s[ve]<0||s[ve]>59?ve:s[Ie]<0||s[Ie]>999?Ie:-1,y(e)._overflowDayOfYear&&(t<ee||t>ge)&&(t=ge),y(e)._overflowWeeks&&t===-1&&(t=cr),y(e)._overflowWeekday&&t===-1&&(t=hr),y(e).overflow=t),e}var dn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,un=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cn=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],as=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],hn=/^\/?Date\((-?\d+)/i,fn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,mn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Vs(e){var t,s,a=e._i,r=dn.exec(a)||un.exec(a),o,c,v,j,P=bt.length,re=as.length;if(r){for(y(e).iso=!0,t=0,s=P;t<s;t++)if(bt[t][1].exec(r[1])){c=bt[t][0],o=bt[t][2]!==!1;break}if(c==null){e._isValid=!1;return}if(r[3]){for(t=0,s=re;t<s;t++)if(as[t][1].exec(r[3])){v=(r[2]||" ")+as[t][0];break}if(v==null){e._isValid=!1;return}}if(!o&&v!=null){e._isValid=!1;return}if(r[4])if(cn.exec(r[4]))j="Z";else{e._isValid=!1;return}e._f=c+(v||"")+(j||""),ns(e)}else e._isValid=!1}function pn(e,t,s,a,r,o){var c=[gn(e),Ps.indexOf(t),parseInt(s,10),parseInt(a,10),parseInt(r,10)];return o&&c.push(parseInt(o,10)),c}function gn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function yn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function xn(e,t,s){if(e){var a=As.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(a!==r)return y(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function wn(e,t,s){if(e)return mn[e];if(t)return 0;var a=parseInt(s,10),r=a%100,o=(a-r)/100;return o*60+r}function Gs(e){var t=fn.exec(yn(e._i)),s;if(t){if(s=pn(t[4],t[3],t[2],t[5],t[6],t[7]),!xn(t[1],s,e))return;e._a=s,e._tzm=wn(t[8],t[9],t[10]),e._d=nt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function vn(e){var t=hn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Vs(e),e._isValid===!1)delete e._isValid;else return;if(Gs(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ge(e,t,s){return e??t??s}function _n(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function rs(e){var t,s,a=[],r,o,c;if(!e._d){for(r=_n(e),e._w&&e._a[ge]==null&&e._a[we]==null&&bn(e),e._dayOfYear!=null&&(c=Ge(e._a[ee],r[ee]),(e._dayOfYear>at(c)||e._dayOfYear===0)&&(y(e)._overflowDayOfYear=!0),s=nt(c,0,e._dayOfYear),e._a[we]=s.getUTCMonth(),e._a[ge]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[q]===24&&e._a[he]===0&&e._a[ve]===0&&e._a[Ie]===0&&(e._nextDay=!0,e._a[q]=0),e._d=(e._useUTC?nt:Nr).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[q]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(y(e).weekdayMismatch=!0)}}function bn(e){var t,s,a,r,o,c,v,j,P;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,c=4,s=Ge(t.GG,e._a[ee],it(U(),1,4).year),a=Ge(t.W,1),r=Ge(t.E,1),(r<1||r>7)&&(j=!0)):(o=e._locale._week.dow,c=e._locale._week.doy,P=it(U(),o,c),s=Ge(t.gg,e._a[ee],P.year),a=Ge(t.w,P.week),t.d!=null?(r=t.d,(r<0||r>6)&&(j=!0)):t.e!=null?(r=t.e+o,(t.e<0||t.e>6)&&(j=!0)):r=o),a<1||a>_e(s,o,c)?y(e)._overflowWeeks=!0:j!=null?y(e)._overflowWeekday=!0:(v=Ls(s,a,r,o,c),e._a[ee]=v.year,e._dayOfYear=v.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function ns(e){if(e._f===l.ISO_8601){Vs(e);return}if(e._f===l.RFC_2822){Gs(e);return}e._a=[],y(e).empty=!0;var t=""+e._i,s,a,r,o,c,v=t.length,j=0,P,re;for(r=Ss(e._f,e._locale).match(Ae)||[],re=r.length,s=0;s<re;s++)o=r[s],a=(t.match(lr(o,e))||[])[0],a&&(c=t.substr(0,t.indexOf(a)),c.length>0&&y(e).unusedInput.push(c),t=t.slice(t.indexOf(a)+a.length),j+=a.length),$e[o]?(a?y(e).empty=!1:y(e).unusedTokens.push(o),ur(o,a,e)):e._strict&&!a&&y(e).unusedTokens.push(o);y(e).charsLeftOver=v-j,t.length>0&&y(e).unusedInput.push(t),e._a[q]<=12&&y(e).bigHour===!0&&e._a[q]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[q]=kn(e._locale,e._a[q],e._meridiem),P=y(e).era,P!==null&&(e._a[ee]=e._locale.erasConvertYear(P,e._a[ee])),rs(e),ss(e)}function kn(e,t,s){var a;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(a=e.isPM(s),a&&t<12&&(t+=12),!a&&t===12&&(t=0)),t)}function Mn(e){var t,s,a,r,o,c,v=!1,j=e._f.length;if(j===0){y(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<j;r++)o=0,c=!1,t=Q({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],ns(t),V(t)&&(c=!0),o+=y(t).charsLeftOver,o+=y(t).unusedTokens.length*10,y(t).score=o,v?o<a&&(a=o,s=t):(a==null||o<a||c)&&(a=o,s=t,c&&(v=!0));N(e,s||t)}function Sn(e){if(!e._d){var t=zt(e._i),s=t.day===void 0?t.date:t.day;e._a=k([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(a){return a&&parseInt(a,10)}),rs(e)}}function Dn(e){var t=new ne(ss(zs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function zs(e){var t=e._i,s=e._f;return e._locale=e._locale||be(e._l),t===null||s===void 0&&t===""?Z({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),B(t)?new ne(ss(t)):(Y(t)?e._d=t:f(s)?Mn(e):s?ns(e):Nn(e),V(e)||(e._d=null),e))}function Nn(e){var t=e._i;D(t)?e._d=new Date(l.now()):Y(t)?e._d=new Date(t.valueOf()):typeof t=="string"?vn(e):f(t)?(e._a=k(t.slice(0),function(s){return parseInt(s,10)}),rs(e)):w(t)?Sn(e):g(t)?e._d=new Date(t):l.createFromInputFallback(e)}function Zs(e,t,s,a,r){var o={};return(t===!0||t===!1)&&(a=t,t=void 0),(s===!0||s===!1)&&(a=s,s=void 0),(w(e)&&S(e)||f(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=s,o._i=e,o._f=t,o._strict=a,Dn(o)}function U(e,t,s,a){return Zs(e,t,s,a,!1)}var jn=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=U.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Z()}),On=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=U.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Z()});function Bs(e,t){var s,a;if(t.length===1&&f(t[0])&&(t=t[0]),!t.length)return U();for(s=t[0],a=1;a<t.length;++a)(!t[a].isValid()||t[a][e](s))&&(s=t[a]);return s}function Yn(){var e=[].slice.call(arguments,0);return Bs("isBefore",e)}function Tn(){var e=[].slice.call(arguments,0);return Bs("isAfter",e)}var Rn=function(){return Date.now?Date.now():+new Date},dt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pn(e){var t,s=!1,a,r=dt.length;for(t in e)if(x(e,t)&&!(z.call(dt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(a=0;a<r;++a)if(e[dt[a]]){if(s)return!1;parseFloat(e[dt[a]])!==R(e[dt[a]])&&(s=!0)}return!0}function In(){return this._isValid}function En(){return fe(NaN)}function kt(e){var t=zt(e),s=t.year||0,a=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,c=t.day||0,v=t.hour||0,j=t.minute||0,P=t.second||0,re=t.millisecond||0;this._isValid=Pn(t),this._milliseconds=+re+P*1e3+j*6e4+v*1e3*60*60,this._days=+c+o*7,this._months=+r+a*3+s*12,this._data={},this._locale=be(),this._bubble()}function Mt(e){return e instanceof kt}function is(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}
vendor: 5,366 bytes, line 4
4function Cn(e,t,s){var a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0,c;for(c=0;c<a;c++)R(e[c])!==R(t[c])&&o++;return o+r}function qs(e,t){M(e,0,0,function(){var s=this.utcOffset(),a="+";return s<0&&(s=-s,a="-"),a+ie(~~(s/60),2)+t+ie(~~s%60,2)})}qs("Z",":"),qs("ZZ",""),_("Z",yt),_("ZZ",yt),A(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=os(yt,e)});var Fn=/([\+\-]|\d\d)/gi;function os(e,t){var s=(t||"").match(e),a,r,o;return s===null?null:(a=s[s.length-1]||[],r=(a+"").match(Fn)||["-",0,0],o=+(r[1]*60)+R(r[2]),o===0?0:r[0]==="+"?o:-o)}function ls(e,t){var s,a;return t._isUTC?(s=t.clone(),a=(B(e)||Y(e)?e.valueOf():U(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+a),l.updateOffset(s,!1),s):U(e).local()}function ds(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function Ln(e,t,s){var a=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=os(yt,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(r=ds(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Xs(this,fe(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?a:ds(this)}function An(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Wn(e){return this.utcOffset(0,e)}function $n(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ds(this),"m")),this}function Hn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=os(ir,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Un(e){return this.isValid()?(e=e?U(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Vn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gn(){if(!D(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Q(e,this),e=zs(e),e._a?(t=e._isUTC?b(e._a):U(e._a),this._isDSTShifted=this.isValid()&&Cn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function zn(){return this.isValid()?!this._isUTC:!1}function Zn(){return this.isValid()?this._isUTC:!1}function Ks(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,qn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function fe(e,t){var s=e,a=null,r,o,c;return Mt(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:g(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(a=Bn.exec(e))?(r=a[1]==="-"?-1:1,s={y:0,d:R(a[ge])*r,h:R(a[q])*r,m:R(a[he])*r,s:R(a[ve])*r,ms:R(is(a[Ie]*1e3))*r}):(a=qn.exec(e))?(r=a[1]==="-"?-1:1,s={y:Ee(a[2],r),M:Ee(a[3],r),w:Ee(a[4],r),d:Ee(a[5],r),h:Ee(a[6],r),m:Ee(a[7],r),s:Ee(a[8],r)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(c=Kn(U(s.from),U(s.to)),s={},s.ms=c.milliseconds,s.M=c.months),o=new kt(s),Mt(e)&&x(e,"_locale")&&(o._locale=e._locale),Mt(e)&&x(e,"_isValid")&&(o._isValid=e._isValid),o}fe.fn=kt.prototype,fe.invalid=En;function Ee(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function Qs(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Kn(e,t){var s;return e.isValid()&&t.isValid()?(t=ls(t,e),e.isBefore(t)?s=Qs(e,t):(s=Qs(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function Js(e,t){return function(s,a){var r,o;return a!==null&&!isNaN(+a)&&(J(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=s,s=a,a=o),r=fe(s,a),Xs(this,r,e),this}}function Xs(e,t,s,a){var r=t._milliseconds,o=is(t._days),c=is(t._months);e.isValid()&&(a=a??!0,c&&Es(e,rt(e,"Month")+c*s),o&&Rs(e,"Date",rt(e,"Date")+o*s),r&&e._d.setTime(e._d.valueOf()+r*s),a&&l.updateOffset(e,o||c))}var Qn=Js(1,"add"),Jn=Js(-1,"subtract");function ea(e){return typeof e=="string"||e instanceof String}function Xn(e){return B(e)||Y(e)||ea(e)||g(e)||ti(e)||ei(e)||e===null||e===void 0}function ei(e){var t=w(e)&&!S(e),s=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,o,c=a.length;for(r=0;r<c;r+=1)o=a[r],s=s||x(e,o);return t&&s}function ti(e){var t=f(e),s=!1;return t&&(s=e.filter(function(a){return!g(a)&&ea(e)}).length===0),t&&s}function si(e){var t=w(e)&&!S(e),s=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,o;for(r=0;r<a.length;r+=1)o=a[r],s=s||x(e,o);return t&&s}function ai(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function ri(e,t){arguments.length===1&&(arguments[0]?Xn(arguments[0])?(e=arguments[0],t=void 0):si(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||U(),a=ls(s,this).startOf("day"),r=l.calendarFormat(this,a)||"sameElse",o=t&&(X(t[r])?t[r].call(this,s):t[r]);
vendor: 22,897 bytes, line 4
4return this.format(o||this.localeData().calendar(r,this,U(s)))}function ni(){return new ne(this)}function ii(e,t){var s=B(e)?e:U(e);return this.isValid()&&s.isValid()?(t=de(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function oi(e,t){var s=B(e)?e:U(e);return this.isValid()&&s.isValid()?(t=de(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function li(e,t,s,a){var r=B(e)?e:U(e),o=B(t)?t:U(t);return this.isValid()&&r.isValid()&&o.isValid()?(a=a||"()",(a[0]==="("?this.isAfter(r,s):!this.isBefore(r,s))&&(a[1]===")"?this.isBefore(o,s):!this.isAfter(o,s))):!1}function di(e,t){var s=B(e)?e:U(e),a;return this.isValid()&&s.isValid()?(t=de(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(a=s.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf())):!1}function ui(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ci(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function hi(e,t,s){var a,r,o;if(!this.isValid())return NaN;if(a=ls(e,this),!a.isValid())return NaN;switch(r=(a.utcOffset()-this.utcOffset())*6e4,t=de(t),t){case"year":o=St(this,a)/12;break;case"month":o=St(this,a);break;case"quarter":o=St(this,a)/3;break;case"second":o=(this-a)/1e3;break;case"minute":o=(this-a)/6e4;break;case"hour":o=(this-a)/36e5;break;case"day":o=(this-a-r)/864e5;break;case"week":o=(this-a-r)/6048e5;break;default:o=this-a}return s?o:ue(o)}function St(e,t){if(e.date()<t.date())return-St(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(s,"months"),r,o;return t-a<0?(r=e.clone().add(s-1,"months"),o=(t-a)/(a-r)):(r=e.clone().add(s+1,"months"),o=(t-a)/(r-a)),-(s+o)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function fi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mi(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?ht(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):X(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ht(s,"Z")):ht(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function pi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,a,r,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(s+a+r+o)}function gi(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=ht(this,e);return this.localeData().postformat(t)}function yi(e,t){return this.isValid()&&(B(e)&&e.isValid()||U(e).isValid())?fe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function xi(e){return this.from(U(),e)}function wi(e,t){return this.isValid()&&(B(e)&&e.isValid()||U(e).isValid())?fe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vi(e){return this.to(U(),e)}function ta(e){var t;return e===void 0?this._locale._abbr:(t=be(e),t!=null&&(this._locale=t),this)}var sa=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function aa(){return this._locale}var Dt=1e3,ze=60*Dt,Nt=60*ze,ra=(365*400+97)*24*Nt;function Ze(e,t){return(e%t+t)%t}function na(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-ra:new Date(e,t,s).valueOf()}function ia(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-ra:Date.UTC(e,t,s)}function _i(e){var t,s;if(e=de(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ia:na,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ze(t+(this._isUTC?0:this.utcOffset()*ze),Nt);break;case"minute":t=this._d.valueOf(),t-=Ze(t,ze);break;case"second":t=this._d.valueOf(),t-=Ze(t,Dt);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function bi(e){var t,s;if(e=de(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ia:na,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Nt-Ze(t+(this._isUTC?0:this.utcOffset()*ze),Nt)-1;break;case"minute":t=this._d.valueOf(),t+=ze-Ze(t,ze)-1;break;case"second":t=this._d.valueOf(),t+=Dt-Ze(t,Dt)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function ki(){return this._d.valueOf()-(this._offset||0)*6e4}function Mi(){return Math.floor(this.valueOf()/1e3)}function Si(){return new Date(this.valueOf())}function Di(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ni(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ji(){return this.isValid()?this.toISOString():null}function Oi(){return V(this)}function Yi(){return N({},y(this))}function Ti(){return y(this).overflow}function Ri(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}M("N",0,0,"eraAbbr"),M("NN",0,0,"eraAbbr"),M("NNN",0,0,"eraAbbr"),M("NNNN",0,0,"eraName"),M("NNNNN",0,0,"eraNarrow"),M("y",["y",1],"yo","eraYear"),M("y",["yy",2],0,"eraYear"),M("y",["yyy",3],0,"eraYear"),M("y",["yyyy",4],0,"eraYear"),_("N",us),_("NN",us),_("NNN",us),_("NNNN",Ui),_("NNNNN",Vi),A(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,a){var r=s._locale.erasParse(e,a,s._strict);r?y(s).era=r:y(s).invalidEra=e}),_("y",He),_("yy",He),_("yyy",He),_("yyyy",He),_("yo",Gi),A(["y","yy","yyy","yyyy"],ee),A(["yo"],function(e,t,s,a){var r;s._locale._eraYearOrdinalRegex&&(r=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[ee]=s._locale.eraYearOrdinalParse(e,r):t[ee]=parseInt(e,10)});function Pi(e,t){var s,a,r,o=this._eras||be("en")._eras;for(s=0,a=o.length;s<a;++s)switch(typeof o[s].since==="string"&&(r=l(o[s].since).startOf("day"),o[s].since=r.valueOf()),typeof o[s].until){case"undefined":o[s].until=1/0;break;case"string":r=l(o[s].until).startOf("day").valueOf(),o[s].until=r.valueOf();break}return o}function Ii(e,t,s){var a,r,o=this.eras(),c,v,j;for(e=e.toUpperCase(),a=0,r=o.length;a<r;++a)if(c=o[a].name.toUpperCase(),v=o[a].abbr.toUpperCase(),j=o[a].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(v===e)return o[a];break;case"NNNN":if(c===e)return o[a];break;case"NNNNN":if(j===e)return o[a];break}else if([c,v,j].indexOf(e)>=0)return o[a]}function Ei(e,t){var s=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*s}function Ci(){var e,t,s,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),a[e].since<=s&&s<=a[e].until||a[e].until<=s&&s<=a[e].since)return a[e].name;return""}function Fi(){var e,t,s,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),a[e].since<=s&&s<=a[e].until||a[e].until<=s&&s<=a[e].since)return a[e].narrow;return""}function Li(){var e,t,s,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),a[e].since<=s&&s<=a[e].until||a[e].until<=s&&s<=a[e].since)return a[e].abbr;return""}function Ai(){var e,t,s,a,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=r[e].since<=r[e].until?1:-1,a=this.clone().startOf("day").valueOf(),r[e].since<=a&&a<=r[e].until||r[e].until<=a&&a<=r[e].since)return(this.year()-l(r[e].since).year())*s+r[e].offset;return this.year()}function Wi(e){return x(this,"_erasNameRegex")||cs.call(this),e?this._erasNameRegex:this._erasRegex}function $i(e){return x(this,"_erasAbbrRegex")||cs.call(this),e?this._erasAbbrRegex:this._erasRegex}function Hi(e){return x(this,"_erasNarrowRegex")||cs.call(this),e?this._erasNarrowRegex:this._erasRegex}function us(e,t){return t.erasAbbrRegex(e)}function Ui(e,t){return t.erasNameRegex(e)}function Vi(e,t){return t.erasNarrowRegex(e)}function Gi(e,t){return t._eraYearOrdinalRegex||He}function cs(){var e=[],t=[],s=[],a=[],r,o,c,v,j,P=this.eras();for(r=0,o=P.length;r<o;++r)c=xe(P[r].name),v=xe(P[r].abbr),j=xe(P[r].narrow),t.push(c),e.push(v),s.push(j),a.push(c),a.push(v),a.push(j);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}M(0,["gg",2],0,function(){return this.weekYear()%100}),M(0,["GG",2],0,function(){return this.isoWeekYear()%100});function jt(e,t){M(0,[e,e.length],0,t)}jt("gggg","weekYear"),jt("ggggg","weekYear"),jt("GGGG","isoWeekYear"),jt("GGGGG","isoWeekYear"),_("G",gt),_("g",gt),_("GG",H,oe),_("gg",H,oe),_("GGGG",Bt,Zt),_("gggg",Bt,Zt),_("GGGGG",pt,ft),_("ggggg",pt,ft),st(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,a){t[a.substr(0,2)]=R(e)}),st(["gg","GG"],function(e,t,s,a){t[a]=l.parseTwoDigitYear(e)});function zi(e){return oa.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Zi(e){return oa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Bi(){return _e(this.year(),1,4)}function qi(){return _e(this.isoWeekYear(),1,4)}function Ki(){var e=this.localeData()._week;return _e(this.year(),e.dow,e.doy)}function Qi(){var e=this.localeData()._week;return _e(this.weekYear(),e.dow,e.doy)}function oa(e,t,s,a,r){var o;return e==null?it(this,a,r).year:(o=_e(e,a,r),t>o&&(t=o),Ji.call(this,e,t,s,a,r))}function Ji(e,t,s,a,r){var o=Ls(e,t,s,a,r),c=nt(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}M("Q",0,"Qo","quarter"),_("Q",Ns),A("Q",function(e,t){t[we]=(R(e)-1)*3});function Xi(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}M("D",["DD",2],"Do","date"),_("D",H,Ue),_("DD",H,oe),_("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),A(["D","DD"],ge),A("Do",function(e,t){t[ge]=R(e.match(H)[0])});var la=Ve("Date",!0);M("DDD",["DDDD",3],"DDDo","dayOfYear"),_("DDD",mt),_("DDDD",js),A(["DDD","DDDD"],function(e,t,s){s._dayOfYear=R(e)});function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}M("m",["mm",2],0,"minute"),_("m",H,qt),_("mm",H,oe),A(["m","mm"],he);var to=Ve("Minutes",!1);M("s",["ss",2],0,"second"),_("s",H,qt),_("ss",H,oe),A(["s","ss"],ve);var so=Ve("Seconds",!1);M("S",0,0,function(){return~~(this.millisecond()/100)}),M(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),M(0,["SSS",3],0,"millisecond"),M(0,["SSSS",4],0,function(){return this.millisecond()*10}),M(0,["SSSSS",5],0,function(){return this.millisecond()*100}),M(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),M(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),M(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),M(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),_("S",mt,Ns),_("SS",mt,oe),_("SSS",mt,js);var je,da;for(je="SSSS";je.length<=9;je+="S")_(je,He);function ao(e,t){t[Ie]=R(("0."+e)*1e3)}for(je="S";je.length<=9;je+="S")A(je,ao);da=Ve("Milliseconds",!1),M("z",0,0,"zoneAbbr"),M("zz",0,0,"zoneName");function ro(){return this._isUTC?"UTC":""}function no(){return this._isUTC?"Coordinated Universal Time":""}var m=ne.prototype;m.add=Qn,m.calendar=ri,m.clone=ni,m.diff=hi,m.endOf=bi,m.format=gi,m.from=yi,m.fromNow=xi,m.to=wi,m.toNow=vi,m.get=mr,m.invalidAt=Ti,m.isAfter=ii,m.isBefore=oi,m.isBetween=li,m.isSame=di,m.isSameOrAfter=ui,m.isSameOrBefore=ci,m.isValid=Oi,m.lang=sa,m.locale=ta,m.localeData=aa,m.max=On,m.min=jn,m.parsingFlags=Yi,m.set=pr,m.startOf=_i,m.subtract=Jn,m.toArray=Di,m.toObject=Ni,m.toDate=Si,m.toISOString=mi,m.inspect=pi,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=ji,m.toString=fi,m.unix=Mi,m.valueOf=ki,m.creationData=Ri,m.eraName=Ci,m.eraNarrow=Fi,m.eraAbbr=Li,m.eraYear=Ai,m.year=Ts,m.isLeapYear=fr,m.weekYear=zi,m.isoWeekYear=Zi,m.quarter=m.quarters=Xi,m.month=Cs,m.daysInMonth=Mr,m.week=m.weeks=Rr,m.isoWeek=m.isoWeeks=Pr,m.weeksInYear=Ki,m.weeksInWeekYear=Qi,m.isoWeeksInYear=Bi,m.isoWeeksInISOWeekYear=qi,m.date=la,m.day=m.days=zr,m.weekday=Zr,m.isoWeekday=Br,m.dayOfYear=eo,m.hour=m.hours=tn,m.minute=m.minutes=to,m.second=m.seconds=so,m.millisecond=m.milliseconds=da,m.utcOffset=Ln,m.utc=Wn,m.local=$n,m.parseZone=Hn,m.hasAlignedHourOffset=Un,m.isDST=Vn,m.isLocal=zn,m.isUtcOffset=Zn,m.isUtc=Ks,m.isUTC=Ks,m.zoneAbbr=ro,m.zoneName=no,m.dates=T("dates accessor is deprecated. Use date instead.",la),m.months=T("months accessor is deprecated. Use month instead",Cs),m.years=T("years accessor is deprecated. Use year instead",Ts),m.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",An),m.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gn);function io(e){return U(e*1e3)}function oo(){return U.apply(null,arguments).parseZone()}function ua(e){return e}var F=Xe.prototype;F.calendar=Pe,F.longDateFormat=qa,F.invalidDate=Qa,F.ordinal=er,F.preparse=ua,F.postformat=ua,F.relativeTime=sr,F.pastFuture=ar,F.set=Vt,F.eras=Pi,F.erasParse=Ii,F.erasConvertYear=Ei,F.erasAbbrRegex=$i,F.erasNameRegex=Wi,F.erasNarrowRegex=Hi,F.months=vr,F.monthsShort=_r,F.monthsParse=kr,F.monthsRegex=Dr,F.monthsShortRegex=Sr,F.week=jr,F.firstDayOfYear=Tr,F.firstDayOfWeek=Yr,F.weekdays=$r,F.weekdaysMin=Ur,F.weekdaysShort=Hr,F.weekdaysParse=Gr,F.weekdaysRegex=qr,F.weekdaysShortRegex=Kr,F.weekdaysMinRegex=Qr,F.isPM=Xr,F.meridiem=sn;function Ot(e,t,s,a){var r=be(),o=b().set(a,t);return r[s](o,e)}function ca(e,t,s){if(g(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ot(e,t,s,"month");var a,r=[];for(a=0;a<12;a++)r[a]=Ot(e,a,s,"month");return r}function hs(e,t,s,a){typeof e=="boolean"?(g(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,g(t)&&(s=t,t=void 0),t=t||"");var r=be(),o=e?r._week.dow:0,c,v=[];if(s!=null)return Ot(t,(s+o)%7,a,"day");for(c=0;c<7;c++)v[c]=Ot(t,(c+o)%7,a,"day");return v}function lo(e,t){return ca(e,t,"months")}function uo(e,t){return ca(e,t,"monthsShort")}function co(e,t,s){return hs(e,t,s,"weekdays")}function ho(e,t,s){return hs(e,t,s,"weekdaysShort")}function fo(e,t,s){return hs(e,t,s,"weekdaysMin")}Ne("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=R(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),l.lang=T("moment.lang is deprecated. Use moment.locale instead.",Ne),l.langData=T("moment.langData is deprecated. Use moment.localeData instead.",be);var ke=Math.abs;function mo(){var e=this._data;return this._milliseconds=ke(this._milliseconds),this._days=ke(this._days),this._months=ke(this._months),e.milliseconds=ke(e.milliseconds),e.seconds=ke(e.seconds),e.minutes=ke(e.minutes),e.hours=ke(e.hours),e.months=ke(e.months),e.years=ke(e.years),this}function ha(e,t,s,a){var r=fe(t,s);return e._milliseconds+=a*r._milliseconds,e._days+=a*r._days,e._months+=a*r._months,e._bubble()}function po(e,t){return ha(this,e,t,1)}function go(e,t){return ha(this,e,t,-1)}function fa(e){return e<0?Math.floor(e):Math.ceil(e)}function yo(){var e=this._milliseconds,t=this._days,s=this._months,a=this._data,r,o,c,v,j;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=fa(fs(s)+t)*864e5,t=0,s=0),a.milliseconds=e%1e3,r=ue(e/1e3),a.seconds=r%60,o=ue(r/60),a.minutes=o%60,c=ue(o/60),a.hours=c%24,t+=ue(c/24),j=ue(ma(t)),s+=j,t-=fa(fs(j)),v=ue(s/12),s%=12,a.days=t,a.months=s,a.years=v,this}function ma(e){return e*4800/146097}function fs(e){return e*146097/4800}function xo(e){if(!this.isValid())return NaN;var t,s,a=this._milliseconds;if(e=de(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+a/864e5,s=this._months+ma(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(fs(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return t*24+a/36e5;case"minute":return t*1440+a/6e4;case"second":return t*86400+a/1e3;case"millisecond":return Math.floor(t*864e5)+a;default:throw new Error("Unknown unit "+e)}}function Me(e){return function(){return this.as(e)}}var pa=Me("ms"),wo=Me("s"),vo=Me("m"),_o=Me("h"),bo=Me("d"),ko=Me("w"),Mo=Me("M"),So=Me("Q"),Do=Me("y"),No=pa;function jo(){return fe(this)}function Oo(e){return e=de(e),this.isValid()?this[e+"s"]():NaN}function Ce(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yo=Ce("milliseconds"),To=Ce("seconds"),Ro=Ce("minutes"),Po=Ce("hours"),Io=Ce("days"),Eo=Ce("months"),Co=Ce("years");function Fo(){return ue(this.days()/7)}var Se=Math.round,Be={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Lo(e,t,s,a,r){return r.relativeTime(t||1,!!s,e,a)}function Ao(e,t,s,a){var r=fe(e).abs(),o=Se(r.as("s")),c=Se(r.as("m")),v=Se(r.as("h")),j=Se(r.as("d")),P=Se(r.as("M")),re=Se(r.as("w")),De=Se(r.as("y")),Oe=o<=s.ss&&["s",o]||o<s.s&&["ss",o]||c<=1&&["m"]||c<s.m&&["mm",c]||v<=1&&["h"]||v<s.h&&["hh",v]||j<=1&&["d"]||j<s.d&&["dd",j];return s.w!=null&&(Oe=Oe||re<=1&&["w"]||re<s.w&&["ww",re]),Oe=Oe||P<=1&&["M"]||P<s.M&&["MM",P]||De<=1&&["y"]||["yy",De],Oe[2]=t,Oe[3]=+e>0,Oe[4]=a,Lo.apply(null,Oe)}function Wo(e){return e===void 0?Se:typeof e=="function"?(Se=e,!0):!1}function $o(e,t){return Be[e]===void 0?!1:t===void 0?Be[e]:(Be[e]=t,e==="s"&&(Be.ss=t-1),!0)}function Ho(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,a=Be,r,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(a=Object.assign({},Be,t),t.s!=null&&t.ss==null&&(a.ss=t.s-1)),r=this.localeData(),o=Ao(this,!s,a,r),s&&(o=r.pastFuture(+this,o)),r.postformat(o)}var ms=Math.abs;function qe(e){return(e>0)-(e<0)||+e}function Yt(){if(!this.isValid())return this.localeData().invalidDate();var e=ms(this._milliseconds)/1e3,t=ms(this._days),s=ms(this._months),a,r,o,c,v=this.asSeconds(),j,P,re,De;return v?(a=ue(e/60),r=ue(a/60),e%=60,a%=60,o=ue(s/12),s%=12,c=e?e.toFixed(3).replace(/\.?0+$/,""):"",j=v<0?"-":"",P=qe(this._months)!==qe(v)?"-":"",re=qe(this._days)!==qe(v)?"-":"",De=qe(this._milliseconds)!==qe(v)?"-":"",j+"P"+(o?P+o+"Y":"")+(s?P+s+"M":"")+(t?re+t+"D":"")+(r||a||e?"T":"")+(r?De+r+"H":"")+(a?De+a+"M":"")+(e?De+c+"S":"")):"P0D"}var I=kt.prototype;I.isValid=In,I.abs=mo,I.add=po,I.subtract=go,I.as=xo,I.asMilliseconds=pa,I.asSeconds=wo,I.asMinutes=vo,I.asHours=_o,I.asDays=bo,I.asWeeks=ko,I.asMonths=Mo,I.asQuarters=So,I.asYears=Do,I.valueOf=No,I._bubble=yo,I.clone=jo,I.get=Oo,I.milliseconds=Yo,I.seconds=To,I.minutes=Ro,I.hours=Po,I.days=Io,I.weeks=Fo,I.months=Eo,I.years=Co,I.humanize=Ho,I.toISOString=Yt,I.toString=Yt,I.toJSON=Yt,I.locale=ta,I.localeData=aa,I.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yt),I.lang=sa,M("X",0,0,"unix"),M("x",0,0,"valueOf"),_("x",gt),_("X",or),A("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),A("x",function(e,t,s){s._d=new Date(R(e))});return l.version="2.30.1",p(U),l.fn=m,l.min=Yn,l.max=Tn,l.now=Rn,l.utc=b,l.unix=io,l.months=lo,l.isDate=Y,l.locale=Ne,l.invalid=Z,l.duration=fe,l.isMoment=B,l.weekdays=co,l.parseZone=oo,l.localeData=be,l.isDuration=Mt,l.monthsShort=uo,l.weekdaysMin=fo,l.defineLocale=ts,l.updateLocale=on,l.locales=ln,l.weekdaysShort=ho,l.normalizeUnits=de,l.relativeTimeRounding=Wo,l.relativeTimeThreshold=$o,l.calendarFormat=ai,l.prototype=m,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l}))})(Et)),Et.exports}var qd=ys.exports,Ma;function Kd(){return Ma||(Ma=1,(function(n,u){(function(d,l){l(typeof Pa=="function"?Bd():d.moment)})(qd,(function(d){var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),p="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),f=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],w=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,x=d.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(S,D){return S?/-MMM-/.test(D)?p[S.month()]:l[S.month()]:l},monthsRegex:w,monthsShortRegex:w,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:f,longMonthsParse:f,shortMonthsParse:f,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%
4d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return x}))})()),ys.exports}Kd();function Qd({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{d:"M15.73 5.5h1.035A7.465 7.465 0 0 1 18 9.625a7.465 7.465 0 0 1-1.235 4.125h-.148c-.806 0-1.534.446-2.031 1.08a9.04 9.04 0 0 1-2.861 2.4c-.723.384-1.35.956-1.653 1.715a4.499 4.499 0 0 0-.322 1.672v.633A.75.75 0 0 1 9 22a2.25 2.25 0 0 1-2.25-2.25c0-1.152.26-2.243.723-3.218.266-.558-.107-1.282-.725-1.282H3.622c-1.026 0-1.945-.694-2.054-1.715A12.137 12.137 0 0 1 1.5 12.25c0-2.848.992-5.464 2.649-7.521C4.537 4.247 5.136 4 5.754 4H9.77a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23ZM21.669 14.023c.536-1.362.831-2.845.831-4.398 0-1.22-.182-2.398-.52-3.507-.26-.85-1.084-1.368-1.973-1.368H19.1c-.445 0-.72.498-.523.898.591 1.2.924 2.55.924 3.977a8.958 8.958 0 0 1-1.302 4.666c-.245.403.028.959.5.959h1.053c.832 0 1.612-.453 1.918-1.227Z"}))}const Jd=h.forwardRef(Qd);function Xd({title:n,titleId:u,...d},l){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":u},d),n?h.createElement("title",{id:u},n):null,h.createElement("path",{d:"M7.493 18.5c-.425 0-.82-.236-.975-.632A7.48 7.48 0 0 1 6 15.125c0-1.75.599-3.358 1.602-4.634.151-.192.373-.309.6-.397.473-.183.89-.514 1.212-.924a9.042 9.042 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75A.75.75 0 0 1 15 2a2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H14.23c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23h-.777ZM2.331 10.727a11.969 11.969 0 0 0-.831 4.398 12 12 0 0 0 .52 3.507C2.28 19.482 3.105 20 3.994 20H4.9c.445 0 .72-.498.523-.898a8.963 8.963 0 0 1-.924-3.977c0-1.708.476-3.305 1.302-4.666.245-.403-.028-.959-.5-.959H4.25c-.832 0-1.612.453-1.918 1.227Z"}))}const eu=h.forwardRef(Xd);Re.locale("es");const tu=({isOpen:n,onClose:u,articleId:d})=>{const{data:l,isLoading:p,refetch:f}=Ua(d),[w,x]=ce.useState(!1),[S,D]=ce.useState(null),{mutateAsync:g,isPending:Y}=Va(),k=l?.data;h.useEffect(()=>{D(k?.reaction_fan?.reaction_type??null)},[k]);const[N,b]=ce.useState(!1);h.useEffect(()=>{n&&d&&f()},[n,d,f]);const E=async y=>{if(D(S===y?null:y),(await g({id:d,params:{reaction_type:y}}))?.satisfactory){f(),N||b(!0);return}};return i.jsx(Ht,{appear:!0,show:n,as:h.Fragment,children:i.jsxs(vs,{as:"div",className:"relative z-[80]",onClose:()=>u({refresh:N}),children:[i.jsx(Qe,{as:h.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:i.jsx("div",{className:"fixed inset-0 bg-gray-900/80 backdrop-blur-sm"})}),i.jsx("div",{className:"fixed inset-0 flex items-center justify-center p-0 sm:p-4",children:i.jsx(Qe,{as:h.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95 translate-y-8",enterTo:"opacity-100 scale-100 translate-y-0",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100 translate-y-0",leaveTo:"opacity-0 scale-95 translate-y-8",children:i.jsxs(_s,{className:"dark:bg-dark-700 relative flex h-full w-full max-w-3xl flex-col overflow-hidden bg-white shadow-2xl sm:h-[90vh] sm:rounded-2xl",children:[i.jsx("span",{className:"absolute inset-x-0 top-0 z-20 h-1 bg-[#e30613]"}),i.jsx(me,{onClick:()=>u({refresh:N}),isIcon:!0,unstyled:!0,className:"absolute top-4 right-4 z-30 grid size-10 place-items-center rounded-full bg-[#16223f]/70 text-white backdrop-blur-md transition-colors hover:bg-[#16223f]",children:i.jsx(bs,{className:"h-5 w-5"})}),p?i.jsx("div",{className:"flex h-full min-h-[300px] w-full items-center justify-center",children:i.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-[3px] border-[#16223f] border-t-transparent"})}):i.jsxs("div",{className:"dark:bg-dark-700 dark:[&::-webkit-scrollbar-thumb]:bg-dark-500 flex-grow overflow-y-auto bg-white [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-200 hover:[&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent",children:[k?.control_type==="VIDEO"?i.jsx("div",{className:"relative flex h-[45vh] w-full items-center justify-center overflow-hidden bg-black sm:h-[60vh] sm:max-h-[560px]",children:i.jsx("video",{src:k?.video_file_url||void 0,className:"h-full w-full object-contain",controls:!0,autoPlay:!0})}):i.jsx("div",{className:"flex max-h-[55vh] w-full items-center justify-center overflow-hidden bg-[#0b1228]",children:i.jsx("img",{src:k?.file_url||"https://images.unsplash.com/photo-1504711434969-e33886168f5c?q=80&w=1000",className:"max-h-[55vh] w-full object-contain",alt:k?.title||""})}),i.jsxs("div",{className:"flex items-center justify-between bg-[#16223f] px-5 py-3 sm:px-10",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsxs(me,{unstyled:!0,onClick:()=>E(Ke.LIKE),disabled:Y,className:`flex items-center gap-2 rounded-full px-4 py-2 text-sm font-semibold transition-colors active:scale-95 ${k?.reaction_fan?.reaction_type==="LIKE"?"bg-white/10 text-[#f5c518]":"text-white/70 hover:bg-white/10 hover:text-white"}`,children:[k?.reaction_fan?.reaction_type==="LIKE"?i.jsx(eu,{className:"h-5 w-5"}):i.jsx(Fa,{className:"h-5 w-5"}),i.jsx("span",{children:k?.reactions_like_count})]}),i.jsxs(me,{unstyled:!0,onClick:()=>E(Ke.DISLIKE),disabled:Y,className:`flex items-center gap-2 rounded-full px-4 py-2 text-sm font-semibold transition-colors active:scale-95 ${k?.reaction_fan?.reaction_type==="DISLIKE"?"bg-white/10 text-red-400":"text-white/70 hover:bg-white/10 hover:text-white"}`,children:[k?.reaction_fan?.reaction_type==="DISLIKE"?i.jsx(Jd,{className:"h-5 w-5"}):i.jsx(Ca,{className:"h-5 w-5"}),i.jsx("span",{children:k?.reactions_dislike_count})]})]}),i.jsxs(me,{unstyled:!0,onClick:()=>x(!0),className:"flex items-center gap-2 rounded-full px-4 py-2 text-sm font-semibold text-white/70 transition-colors hover:bg-white/10 hover:text-white",children:[i.jsx(Ea,{className:"h-5 w-5"}),i.jsxs("span",{children:[k?.comments_count," ",pl("generals.comments")]})]})]}),i.jsxs("div",{className:"px-6 pt-7 sm:px-10",children:[i.jsx("h1",{className:"dark:text-dark-50 text-2xl leading-tight font-extrabold text-gray-900 sm:text-3xl",children:k?.title}),i.jsxs("div",{className:"dark:text-dark-300 mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-xs font-medium text-gray-400",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(sd,{className:"h-4 w-4"}),i.jsx("span",{children:Ft.formatFechaEs(k?.published_at)})]}),i.jsx("span",{className:"text-gray-300",children:"•"}),i.jsxs("span",{children:["Hace"," ",Ft.getTextDifferenceDate(Re(),Re(k?.published_at))]})]})]}),i.jsx("div",{className:"px-6 pt-5 pb-8 sm:px-10",children:i.jsx("article",{className:"article-content prose prose-lg prose-slate dark:prose-invert prose-p:text-gray-700 prose-p:leading-relaxed prose-p:mb-6 dark:prose-p:text-dark-200 max-w-none text-ju
4stify text-gray-900 dark:text-gray-300",dangerouslySetInnerHTML:{__html:k?.content||""}})})]}),i.jsx(Ga,{isOpen:w,onClose:y=>{x(!1),y&&f()},articleId:d,title:k?.title||""})]})})})]})})};Re.locale("es");function su({article:n}){const u="https://images.unsplash.com/photo-1504711434969-e33886168f5c?q=80&w=1000&auto=format&fit=crop",[d,l]=h.useState(n.reaction_fan?.reaction_type??null),[p,f]=h.useState(!1),[w,x]=h.useState(!1),[S,D]=h.useState({likes:n.reactions_like_count??0,dislikes:n.reactions_dislike_count??0,comments:n.comments_count??0}),{data:g,refetch:Y,isFetching:k}=Ua(n.id),[N,b]=h.useState(g?.data??n),E=h.useRef({}),y=async()=>{const C=await Y();C.data?.satisfactory&&C.data.data?(b(C.data.data),l(C.data.data.reaction_fan?.reaction_type??null),D({likes:C.data.data.reactions_like_count??0,dislikes:C.data.data.reactions_dislike_count??0,comments:C.data.data.comments_count??0})):C.isError&&Lt.error("No se pudo obtener el detalle.")},{mutateAsync:W,isPending:V}=Va(),Z=async C=>{if(E.current[n.id]>=2)return;if(E.current[n.id]=(E.current[n.id]||0)+1,d===C)l(null),D({...S,[C==="LIKE"?"likes":"dislikes"]:S[C==="LIKE"?"likes":"dislikes"]-1});else{l(C);const Q={...S};d&&Q[d==="LIKE"?"likes":"dislikes"]--,Q[C==="LIKE"?"likes":"dislikes"]++,D(Q)}const ae={reaction_type:C};W({id:n.id,params:ae},{onSettled:()=>{setTimeout(()=>{delete E.current[n.id]},1e4)}})};return i.jsxs("article",{className:"group relative flex flex-col overflow-hidden rounded-2xl shadow-sm ring-1 ring-black/5 transition-shadow duration-300 hover:shadow-lg",children:[i.jsxs("div",{className:"relative aspect-[5/4] w-full cursor-pointer overflow-hidden",onClick:()=>{x(!0)},children:[i.jsx("img",{src:N.file_url||u,alt:N.title,className:"absolute inset-0 h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-105"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#0b1228] via-[#0b1228]/45 to-transparent"}),i.jsx("span",{className:"absolute top-4 right-4 grid size-9 translate-y-2 place-items-center rounded-full bg-[#f5c518] text-[#0b1228] opacity-0 shadow-lg transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100",children:i.jsx(Ul,{className:"h-4 w-4",strokeWidth:2.5})}),i.jsxs("div",{className:"absolute inset-x-0 bottom-0 flex flex-col gap-2 p-5",children:[i.jsxs("span",{className:"inline-flex w-fit items-center gap-1.5 rounded bg-red-600 py-1 pr-2.5 pl-2 text-[11px] font-bold tracking-wider text-white uppercase shadow-sm",children:[i.jsx("span",{className:"h-3 w-1 rounded-sm bg-[#f5c518]"}),N.category?.name||"Noticias"]}),i.jsx("h3",{className:"line-clamp-2 text-lg leading-snug font-extrabold text-white drop-shadow-md",children:N.title}),i.jsxs("span",{className:"flex items-center gap-1.5 text-[11px] font-medium text-white/80",children:[i.jsx(Vl,{className:"h-3.5 w-3.5"}),Ft.getTextDifferenceDate(Re(),Re(N.published_at))]})]})]}),N.allow_reactions?i.jsxs("div",{className:"flex items-center justify-between bg-[#16223f] px-3 py-2.5",children:[i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsxs(me,{unstyled:!0,disabled:k||V||E.current[n.id]>=2,onClick:()=>Z(Ke.LIKE),className:`flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-semibold transition-colors ${d===Ke.LIKE?"bg-white/10 text-[#f5c518]":"text-white/70 hover:bg-white/10 hover:text-white"}`,children:[i.jsx(Fa,{className:"h-5 w-5"}),i.jsx("span",{children:S.likes})]}),i.jsxs(me,{unstyled:!0,disabled:k||V||E.current[n.id]>=2,onClick:()=>Z(Ke.DISLIKE),className:`flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-semibold transition-colors ${d===Ke.DISLIKE?"bg-white/10 text-red-400":"text-white/70 hover:bg-white/10 hover:text-white"}`,children:[i.jsx(Ca,{className:"h-5 w-5"}),i.jsx("span",{children:S.dislikes})]})]}),i.jsxs(me,{unstyled:!0,disabled:k,onClick:()=>f(!0),className:"flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-semibold text-white/70 transition-colors hover:bg-white/10 hover:text-white",children:[i.jsx(Bl,{className:"h-5 w-5"}),i.jsx("span",{children:S.comments})]})]}):null,p&&i.jsx(Ga,{isOpen:p,articleId:n.id,title:n.title,onClose:({refresh:C})=>{f(!1),C&&y()}}),w&&i.jsx(tu,{isOpen:w,onClose:C=>{x(!1),C&&y()},articleId:N.id})]})}const au="https://images.unsplash.com/photo-1504711434969-e33886168f5c?q=80&w=1000&auto=format&fit=crop";function xs(n){return n.category?.name??n.articles_category?.name??null}function bu(){const{t:n}=Ra(),[u,d]=h.useState(null),{data:l,isLoading:p,isError:f,fetchNextPage:w,hasNextPage:x,isFetchingNextPage:S}=Fd(12),D=l?.pages.flatMap(b=>b.data?.data??[])??[],g=h.useMemo(()=>{const b=new Set;return D.forEach(E=>{const y=xs(E);y&&b.add(y)}),Array.from(b)},[D]),Y=h.useMemo(()=>u?D.filter(b=>xs(b)===u):D,[D,u]),k=h.useMemo(()=>[...D].filter(b=>(b.comments_count??0)>0).sort((b,E)=>(E.comments_count??0)-(b.comments_count??0)).slice(0,5),[D]),N=({title:b,message:E,icon:y,color:W="text-slate-400"})=>i.jsxs("div",{className:"flex min-h-[260px] flex-col items-center justify-center rounded-3xl border border-white/10 bg-white/[0.04] px-4 py-12 text-center",children:[i.jsx("div",{className:`mb-4 rounded-full bg-white/10 p-4 ${W}`,children:i.jsx(y,{className:"h-12 w-12"})}),i.jsx("h3",{className:"text-xl font-black text-white",children:b}),i.jsx("p",{className:"mx-auto mt-2 max-w-xs text-sm text-slate-400",children:E})]});return i.jsx(gl,{title:n("title.articles"),children:i.jsxs("div",{className:"min-h-screen text-white",children:[i.jsxs("section",{className:"relative overflow-hidden border-b border-white/10",children:[i.jsx(Gl,{}),i.jsxs("div",{className:"relative mx-auto max-w-[90rem] px-4 pb-10 pt-12 sm:px-6 lg:px-8",children:[i.jsx("p",{className:"mb-3 text-sm font-black uppercase tracking-widest text-red-500",children:"El Nacional"}),i.jsxs("h1",{className:"max-w-xl text-4xl font-black leading-tight sm:text-5xl",children:["Noticias del ",i.jsx("span",{className:"text-red-500",children:"Bitri"})]}),i.jsx("p",{className:"mt-4 max-w-xl text-base leading-7 text-slate-300",children:"Mantente al día con la actualidad del club: partidos, fichajes, comunidad y todo lo que pasa dentro y fuera de la cancha."})]})]}),i.jsx("main",{className:"mx-auto max-w-[90rem] px-4 py-10 sm:px-6 lg:px-8",children:p?i.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:[1,2,3,4,5,6,7,8].map(b=>i.jsx("div",{className:"h-[360px] w-full animate-pulse rounded-2xl bg-white/10"},b))}):f?i.jsx(N,{icon:Ya,color:"text-red-500",title:n("articles.load_error"),message:"Hubo un problema al cargar las noticias. Por favor, intenta de nuevo."}):D.length===0?i.jsx(N,{icon:va,title:n("articles.no_articles"),message:"No hay noticias disponibles en este momento."}):i.jsxs("div",{className:"grid gap-8 xl:grid-cols-[1fr_330px]",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"mb-5 flex items-center justify-between gap-4",children:[i.jsx("h2",{className:"text-2xl font-black uppercase",children:"Últimas noticias"}),i.jsxs("span",{className:"shrink-0 rounded-full bg-white/5 px-3 py-1 text-xs font-bold text-slate-300",children:[Y.length," ",Y.length===1?"noticia":"noticias"]})]}),g.length>0&&i.jsxs("div",{className:"mb-6 flex flex-wrap gap-2",children:[i.jsx(Sa,{label:"Todas",active:u===null,onClick:()=>d(null)}),g.map(b=>i.jsx(Sa,{label:b,active:u===b,onClick:()=>d(b)},b))]}),Y.length===0?i.jsx(N,{icon:va,title:"Sin noticias en esta categoría",message:"Prueba con otra categoría o carga más noticias."}):i.jsx("div",{className:"grid gap-5 sm:grid-cols-2 xl:grid-cols-3",children:Y.map(b=>i.jsx(su,{article:b},b.id))}),x&&i.jsx("div",{className:"mt-10 flex justify-center",children:i.jsx("button",{onClick:()=>w(),disabled:S,className:"inline-flex items-center gap-2 rounded-xl border border-white/20 bg-white/5 px-8 py-4 text-sm font-black uppercase tracking-wide text-white transition hover:bg-white/10 disabled:cursor-not-allowed disabled:opacity-60",children:S?"Cargando...":i.jsxs(i.Fragment,{children:["Cargar más noticias",i.jsx(zl,{className:"h-4 w-4"})]})})})]}),i.jsx("aside",{className:"xl:sticky xl:top-28 xl:self-start",children:i.jsxs("div",{className:"rounded-3xl border border-white/10 bg-navy-800 p-5 shadow-xl",children:[i.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[i.jsx(ld,{className:"h-6 w-6 text-red-500"}),i.jsx("h3",{className:"text-lg font-black uppercase",children:"Lo más comentado"})]}),k.length===0?i.jsx("p",{className:"py-6 text-center text-sm text-slate-400",children:"Aún no hay noticias con comentarios."}):i.jsx("ul",{className:"space-y-3",children:k.map((b,E)=>i.jsx(ru,{article:b,rank:E+1},b.id))})]})})]})})]})})}function Sa({label:n,active:u,onClick:d}){return i.jsx("button",{onClick:d,className:`rounded-full px-4 py-2 text-xs font-bold uppercase tracking-wide transition ${u?"bg-red-600 text-white shadow-md":"border border-white/15 bg-white/5 text-white/80 hover:bg-white/10 hover:text-white"}`,children:n})}function ru({article:n,rank:u}){const d=xs(n)??"Noticias",l=n.comments_count??0;return i.jsxs("li",{className:"group flex gap-3",children:[i.jsx("span",{className:"mt-1 w-5 shrink-0 text-center text-lg font-black text-red-500",children:u}),i.jsx("div",{className:"relative h-14 w-16 shrink-0 overflow-hidden rounded-lg",children:i.jsx("img",{src:n.file_url||au,alt:n.title,className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-110"})}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-red-400",children:d}),i.jsx("h4",{className:"line-clamp-2 text-sm font-semibold leading-snug text-white",children:n.title}),i.jsxs("span",{className:"mt-1 flex items-center gap-1 text-xs text-slate-400",children:[i.jsx(Ea,{className:"h-3.5 w-3.5"}),l," ",l===1?"comentario":"comentarios"]})]})]})}export{bu as default};

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.