import{r as h,Y as ke,a4 as Q,a5 as Z,j as r,as as Pe,q as u,n as F,o as U,p as W,_ as z,s as R,t as D,v as H,C as j,at as ue,au as pe,z as Re,H as G,u as N,D as je,J as q,ak as Me,av as $e,ai as we,a3 as Le,B as Ee,aw as ge,l as Se,ax as ze,a as A,E as O,c as fe,P as $,f as xe,ay as Be,d as Te,e as Oe,F as Ie}from"./index-DPwg3nls.js";import{B as I}from"./BlogController-Cdl35pmp.js";function ee(e){return e.substring(2).toLowerCase()}function Ne(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function _e(e){const{children:t,disableReactTree:o=!1,mouseEvent:a="onClick",onClickAway:n,touchEvent:c="onTouchEnd"}=e,d=h.useRef(!1),s=h.useRef(null),p=h.useRef(!1),g=h.useRef(!1);h.useEffect(()=>(setTimeout(()=>{p.current=!0},0),()=>{p.current=!1}),[]);const f=ke(t.ref,s),v=Q(i=>{const C=g.current;g.current=!1;const y=Z(s.current);if(!p.current||!s.current||"clientX"in i&&Ne(i,y))return;if(d.current){d.current=!1;return}let l;i.composedPath?l=i.composedPath().indexOf(s.current)>-1:l=!y.documentElement.contains(i.target)||s.current.contains(i.target),!l&&(o||!C)&&n(i)}),P=i=>C=>{g.current=!0;const y=t.props[i];y&&y(C)},m={ref:f};return c!==!1&&(m[c]=P(c)),h.useEffect(()=>{if(c!==!1){const i=ee(c),C=Z(s.current),y=()=>{d.current=!0};return C.addEventListener(i,v),C.addEventListener("touchmove",y),()=>{C.removeEventListener(i,v),C.removeEventListener("touchmove",y)}}},[v,c]),a!==!1&&(m[a]=P(a)),h.useEffect(()=>{if(a!==!1){const i=ee(a),C=Z(s.current);return C.addEventListener(i,v),()=>{C.removeEventListener(i,v)}}},[v,a]),r.jsx(h.Fragment,{children:h.cloneElement(t,m)})}function Ae(e){const{autoHideDuration:t=null,disableWindowBlurListener:o=!1,onClose:a,open:n,resumeHideDuration:c}=e,d=h.useRef();h.useEffect(()=>{if(!n)return;function l(b){b.defaultPrevented||(b.key==="Escape"||b.key==="Esc")&&a?.(b,"escapeKeyDown")}return document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l)}},[n,a]);const s=Q((l,b)=>{a?.(l,b)}),p=Q(l=>{!a||l==null||(clearTimeout(d.current),d.current=setTimeout(()=>{s(null,"timeout")},l))});h.useEffect(()=>(n&&p(t),()=>{clearTimeout(d.current)}),[n,t,p]);const g=l=>{a?.(l,"clickaway")},f=()=>{clearTimeout(d.current)},v=h.useCallback(()=>{t!=null&&p(c??t*.5)},[t,c,p]),P=l=>b=>{const x=l.onBlur;x?.(b),v()},m=l=>b=>{const x=l.onFocus;x?.(b),f()},i=l=>b=>{const x=l.onMouseEnter;x?.(b),f()},C=l=>b=>{const x=l.onMouseLeave;x?.(b),v()};return h.useEffect(()=>{if(!o&&n)return window.addEventListener("focus",v),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",f)}},[o,v,n]),{getRootProps:(l={})=>{const b=Pe(e),x=u({},b,l);return u({role:"presentation"},x,{onBlur:P(x),onFocus:m(x),onMouseEnter:i(x),onMouseLeave:C(x)})},onClickAway:g}}function De(e){return F("MuiCardActions",e)}U("MuiCardActions",["root","spacing"]);const Fe=["disableSpacing","className"],Ue=e=>{const{classes:t,disableSpacing:o}=e;return H({root:["root",!o&&"spacing"]},De,t)},We=R("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableSpacing&&t.spacing]}})(({ownerState:e})=>u({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),He=h.forwardRef(function(t,o){const a=W({props:t,name:"MuiCardActions"}),{disableSpacing:n=!1,className:c}=a,d=z(a,Fe),s=u({},a,{disableSpacing:n}),p=Ue(s);return r.jsx(We,u({className:D(p.root,c),ownerState:s,ref:o},d))});function qe(e){return F("MuiCardMedia",e)}U("MuiCardMedia",["root","media","img"]);const Ge=["children","className","component","image","src","style"],Ve=e=>{const{classes:t,isMediaComponent:o,isImageComponent:a}=e;return H({root:["root",o&&"media",a&&"img"]},qe,t)},Ke=R("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{isMediaComponent:a,isImageComponent:n}=o;return[t.root,a&&t.media,n&&t.img]}})(({ownerState:e})=>u({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"})),Xe=["video","audio","picture","iframe","img"],Je=["picture","img"],Ye=h.forwardRef(function(t,o){const a=W({props:t,name:"MuiCardMedia"}),{children:n,className:c,component:d="div",image:s,src:p,style:g}=a,f=z(a,Ge),v=Xe.indexOf(d)!==-1,P=!v&&s?u({backgroundImage:`url("${s}")`},g):g,m=u({},a,{component:d,isMediaComponent:v,isImageComponent:Je.indexOf(d)!==-1}),i=Ve(m);return r.jsx(Ke,u({className:D(i.root,c),as:d,role:!v&&s?"img":void 0,ref:o,style:P,ownerState:m,src:v?s||p:void 0},f,{children:n}))});function Ze(e){return F("MuiCircularProgress",e)}U("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Qe=["className","color","disableShrink","size","style","thickness","value","variant"];let V=e=>e,te,oe,ae,re;const T=44,et=pe(te||(te=V`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`)),tt=pe(oe||(oe=V`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`)),ot=e=>{const{classes:t,variant:o,color:a,disableShrink:n}=e,c={root:["root",o,`color${j(a)}`],svg:["svg"],circle:["circle",`circle${j(o)}`,n&&"circleDisableShrink"]};return H(c,Ze,t)},at=R("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`color${j(o.color)}`]]}})(({ownerState:e,theme:t})=>u({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ue(ae||(ae=V`
animation: ${0} 1.4s linear infinite;
`),et)),rt=R("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),nt=R("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.circle,t[`circle${j(o.variant)}`],o.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>u({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ue(re||(re=V`
animation: ${0} 1.4s ease-in-out infinite;
`),tt)),st=h.forwardRef(function(t,o){const a=W({props:t,name:"MuiCircularProgress"}),{className:n,color:c="primary",disableShrink:d=!1,size:s=40,style:p,thickness:g=3.6,value:f=0,variant:v="indeterminate"}=a,P=z(a,Qe),m=u({},a,{color:c,disableShrink:d,size:s,thickness:g,value:f,variant:v}),i=ot(m),C={},y={},l={};if(v==="determinate"){const b=2*Math.PI*((T-g)/2);C.strokeDasharray=b.toFixed(3),l["aria-valuenow"]=Math.round(f),C.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,y.transform="rotate(-90deg)"}return r.jsx(at,u({className:D(i.root,n),style:u({width:s,height:s},y,p),ownerState:m,ref:o,role:"progressbar"},l,P,{children:r.jsx(rt,{className:i.svg,ownerState:m,viewBox:`${T/2} ${T/2} ${T} ${T}`,children:r.jsx(nt,{className:i.circle,style:C,ownerState:m,cx:T,cy:T,r:(T-g)/2,fill:"none",strokeWidth:g})})}))});function it(e){return F("MuiPagination",e)}U("MuiPagination",["root","ul","outlined","text"]);const ct=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function lt(e={}){const{boundaryCount:t=1,componentName:o="usePagination",count:a=1,defaultPage:n=1,disabled:c=!1,hideNextButton:d=!1,hidePrevButton:s=!1,onChange:p,page:g,showFirstButton:f=!1,showLastButton:v=!1,siblingCount:P=1}=e,m=z(e,ct),[i,C]=Re({controlled:g,default:n,name:o,state:"page"}),y=(k,L)=>{g||C(L),p&&p(k,L)},l=(k,L)=>{const K=L-k+1;return Array.from({length:K},(X,J)=>k+J)},b=l(1,Math.min(t,a)),x=l(Math.max(a-t+1,t+1),a),B=Math.max(Math.min(i-P,a-t-P*2-1),t+2),E=Math.min(Math.max(i+P,t+P*2+2),x.length>0?x[0]-2:a-1),_=[...f?["first"]:[],...s?[]:["previous"],...b,...B>t+2?["start-ellipsis"]:t+1<a-t?[t+1]:[],...l(B,E),...E<a-t-1?["end-ellipsis"]:a-t>t?[a-t]:[],...x,...d?[]:["next"],...v?["last"]:[]],S=k=>{switch(k){case"first":return 1;case"previous":return i-1;case"next":return i+1;case"last":return a;default:return null}},w=_.map(k=>typeof k=="number"?{onClick:L=>{y(L,k)},type:"page",page:k,selected:k===i,disabled:c,"aria-current":k===i?"true":void 0}:{onClick:L=>{y(L,S(k))},type:k,page:S(k),selected:!1,disabled:c||k.indexOf("ellipsis")===-1&&(k==="next"||k==="last"?i>=a:i<=1)});return u({items:w},m)}function dt(e){return F("MuiPaginationItem",e)}const M=U("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),ne=G(r.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),se=G(r.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),ie=G(r.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),ce=G(r.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),ut=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],ve=(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${j(o.size)}`],o.variant==="text"&&t[`text${j(o.color)}`],o.variant==="outlined"&&t[`outlined${j(o.color)}`],o.shape==="rounded"&&t.rounded,o.type==="page"&&t.page,(o.type==="start-ellipsis"||o.type==="end-ellipsis")&&t.ellipsis,(o.type==="previous"||o.type==="next")&&t.previousNext,(o.type==="first"||o.type==="last")&&t.firstLast]},pt=e=>{const{classes:t,color:o,disabled:a,selected:n,size:c,shape:d,type:s,variant:p}=e,g={root:["root",`size${j(c)}`,p,d,o!=="standard"&&`${p}${j(o)}`,a&&"disabled",n&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return H(g,dt,t)},gt=R("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:ve})(({theme:e,ownerState:t})=>u({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${M.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),ft=R(je,{name:"MuiPaginationItem",slot:"Root",overridesResolver:ve})(({theme:e,ownerState:t})=>u({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${M.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${M.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${M.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selected} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:q(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${M.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selected} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:q(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${M.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>u({},t.variant==="text"&&{[`&.${M.selected}`]:u({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${M.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${M.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${M.selected}`]:u({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:q(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:q(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:q(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${M.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:q(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${M.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),xt=R("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>u({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),vt=h.forwardRef(function(t,o){const a=W({props:t,name:"MuiPaginationItem"}),{className:n,color:c="standard",component:d,components:s={},disabled:p=!1,page:g,selected:f=!1,shape:v="circular",size:P="medium",slots:m={},type:i="page",variant:C="text"}=a,y=z(a,ut),l=u({},a,{color:c,disabled:p,selected:f,shape:v,size:P,type:i,variant:C}),b=N(),x=pt(l),E=(b.direction==="rtl"?{previous:m.next||s.next||ce,next:m.previous||s.previous||ie,last:m.first||s.first||ne,first:m.last||s.last||se}:{previous:m.previous||s.previous||ie,next:m.next||s.next||ce,first:m.first||s.first||ne,last:m.last||s.last||se})[i];return i==="start-ellipsis"||i==="end-ellipsis"?r.jsx(gt,{ref:o,ownerState:l,className:D(x.root,n),children:"…"}):r.jsxs(ft,u({ref:o,ownerState:l,component:d,disabled:p,className:D(x.root,n)},y,{children:[i==="page"&&g,E?r.jsx(xt,{as:E,ownerState:l,className:x.icon}):null]}))}),mt=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],bt=e=>{const{classes:t,variant:o}=e;return H({root:["root",o],ul:["ul"]},it,t)},ht=R("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant]]}})({}),Ct=R("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function yt(e,t,o){return e==="page"?`${o?"":"Go to "}page ${t}`:`Go to ${e} page`}const kt=h.forwardRef(function(t,o){const a=W({props:t,name:"MuiPagination"}),{boundaryCount:n=1,className:c,color:d="standard",count:s=1,defaultPage:p=1,disabled:g=!1,getItemAriaLabel:f=yt,hideNextButton:v=!1,hidePrevButton:P=!1,renderItem:m=w=>r.jsx(vt,u({},w)),shape:i="circular",showFirstButton:C=!1,showLastButton:y=!1,siblingCount:l=1,size:b="medium",variant:x="text"}=a,B=z(a,mt),{items:E}=lt(u({},a,{componentName:"Pagination"})),_=u({},a,{boundaryCount:n,color:d,count:s,defaultPage:p,disabled:g,getItemAriaLabel:f,hideNextButton:v,hidePrevButton:P,renderItem:m,shape:i,showFirstButton:C,showLastButton:y,siblingCount:l,size:b,variant:x}),S=bt(_);return r.jsx(ht,u({"aria-label":"pagination navigation",className:D(S.root,c),ownerState:_,ref:o},B,{children:r.jsx(Ct,{className:S.ul,ownerState:_,children:E.map((w,k)=>r.jsx("li",{children:m(u({},w,{color:d,"aria-label":f(w.type,w.page,w.selected),shape:i,size:b,variant:x}))},k))})}))});function Pt(e){return F("MuiSnackbarContent",e)}U("MuiSnackbarContent",["root","message","action"]);const Rt=["action","className","message","role"],jt=e=>{const{classes:t}=e;return H({root:["root"],action:["action"],message:["message"]},Pt,t)},Mt=R(Me,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,o=$e(e.palette.background.default,t);return u({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(o),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:o,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),$t=R("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),wt=R("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Lt=h.forwardRef(function(t,o){const a=W({props:t,name:"MuiSnackbarContent"}),{action:n,className:c,message:d,role:s="alert"}=a,p=z(a,Rt),g=a,f=jt(g);return r.jsxs(Mt,u({role:s,square:!0,elevation:6,className:D(f.root,c),ownerState:g,ref:o},p,{children:[r.jsx($t,{className:f.message,ownerState:g,children:d}),n?r.jsx(wt,{className:f.action,ownerState:g,children:n}):null]}))});function Et(e){return F("MuiSnackbar",e)}U("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const St=["onEnter","onExited"],zt=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Bt=e=>{const{classes:t,anchorOrigin:o}=e,a={root:["root",`anchorOrigin${j(o.vertical)}${j(o.horizontal)}`]};return H(a,Et,t)},le=R("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`anchorOrigin${j(o.anchorOrigin.vertical)}${j(o.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const o={left:"50%",right:"auto",transform:"translateX(-50%)"};return u({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:u({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&o,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),Tt=h.forwardRef(function(t,o){const a=W({props:t,name:"MuiSnackbar"}),n=N(),c={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{action:d,anchorOrigin:{vertical:s,horizontal:p}={vertical:"bottom",horizontal:"left"},autoHideDuration:g=null,children:f,className:v,ClickAwayListenerProps:P,ContentProps:m,disableWindowBlurListener:i=!1,message:C,open:y,TransitionComponent:l=we,transitionDuration:b=c,TransitionProps:{onEnter:x,onExited:B}={}}=a,E=z(a.TransitionProps,St),_=z(a,zt),S=u({},a,{anchorOrigin:{vertical:s,horizontal:p},autoHideDuration:g,disableWindowBlurListener:i,TransitionComponent:l,transitionDuration:b}),w=Bt(S),{getRootProps:k,onClickAway:L}=Ae(u({},S)),[K,X]=h.useState(!0),J=Le({elementType:le,getSlotProps:k,externalForwardedProps:_,ownerState:S,additionalProps:{ref:o},className:[w.root,v]}),he=Y=>{X(!0),B&&B(Y)},Ce=(Y,ye)=>{X(!1),x&&x(Y,ye)};return!y&&K?null:r.jsx(_e,u({onClickAway:L},P,{children:r.jsx(le,u({},J,{children:r.jsx(l,u({appear:!0,in:y,timeout:b,direction:s==="top"?"down":"up",onEnter:Ce,onExited:he},E,{children:f||r.jsx(Lt,u({message:C,action:d},m))}))}))}))}),Ot=G(r.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share");function It(e={timeout:2e3}){const[t,o]=h.useState(null),[a,n]=h.useState(!1),[c,d]=h.useState(null),s=f=>{window.clearTimeout(c),d(window.setTimeout(()=>n(!1),e.timeout)),n(f)};return{copy:f=>{"clipboard"in navigator?navigator.clipboard.writeText(f).then(()=>s(!0)).catch(v=>o(v)):o(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{n(!1),o(null),window.clearTimeout(c)},error:t,copied:a}}function me(e){const t=N(),{copy:o}=It();async function a(d){d.stopPropagation();const s=encodeURIComponent(e.article_title),p=`${window.location.origin}/blog/${s}`;o(p),I.copied=!0}function n(){navigate(`/blog/${e.article_title}`)}const c=[{text:"Share",onClick:a,icon:r.jsx(Ot,{}),sx:{color:t.palette.jg.lightColor,backgroundColor:t.palette.jg.detailsBtn}},{text:"Read",onClick:n,sx:{...Ee(t)}}];return r.jsxs(ge,{sx:{height:"fit-content",borderRadius:"4px",transition:"all 200ms",boxShadow:"none","&:hover":{cursor:"pointer",boxShadow:t.shadows[4]}},onClick:n,children:[r.jsx(Ye,{component:"img",height:"240",src:Se(e.article_url[0]),alt:"blog article image"}),r.jsxs(ze,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:[r.jsx(A,{text:`Author: ${e.article_author}`}),r.jsx(A,{text:`Date: ${e.article_date}`}),r.jsx(O,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"4px"},children:e.article_tags.map((d,s)=>r.jsx("span",{style:{borderRadius:"1000rem",border:`1px solid ${t.palette.jg.btn}`,padding:"4px 8px",fontSize:"12px"},children:d},s))}),r.jsx(A,{text:e.article_title,variant:"h5"}),r.jsx(A,{text:e.article_summary,color:t.palette.text.secondary})]}),r.jsx(He,{sx:{justifyContent:"flex-end"},children:c.map(({text:d,onClick:s,sx:p,icon:g},f)=>r.jsx(fe,{onClick:s,sx:p,endIcon:g,children:d},f))})]})}me.propTypes={article_url:$.array.isRequired,article_summary:$.string.isRequired,article_title:$.string.isRequired,article_id:$.number.isRequired,article_author:$.string.isRequired,article_date:$.string.isRequired,article_tags:$.array.isRequired};function Nt(){const e=N(),{articleData:t,articleLoading:o,articlesGetData:a}=I;return h.useLayoutEffect(()=>(a().then(),()=>{I.articleLoading=!0,I.articleData=[]}),[a]),r.jsx(xe,{sx:{height:"100%",width:"100%",display:"grid",gridGap:"16px",gridTemplateColumns:{md:"repeat(2, 1fr)",sm:"repeat(1, 1fr)"}},children:o?Array.from(Array(6).keys()).map((n,c)=>r.jsx("div",{style:{height:"400px",backgroundColor:"#171616",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},children:r.jsx(st,{sx:{".MuiCircularProgress-circle":{color:e.palette.jg.btn}}})},c)):t.map(n=>r.jsx(me,{...n},n.article_id))})}function _t(){const e=N(),{articleLoading:t}=I;return t?null:r.jsx(O,{justifyContent:"center",alignItems:"center",p:"0 0 1rem 0",children:r.jsx(kt,{count:1,variant:"outlined",shape:"rounded",sx:{"& .MuiPaginationItem-root":{color:e.palette.jg.btn,borderColor:e.palette.jg.btn}}})})}const At=["Las Vegas","travel guide","luxury resorts","hidden gems","party bus","JMC Limousine","luxury travel","nightlife","Allegiant Stadium","architecture","sports culture","airport transfer","Downtown","Fremont Street"],de={article_tags:At};function Dt(){const e=N(),{articleLoading:t,filterByTag:o,activeTag:a}=I;return r.jsxs(O,{gap:2,children:[r.jsx(A,{text:"Tags"}),r.jsx(xe,{sx:{display:"flex",gap:"8px",flexWrap:"wrap"},children:t?de.article_tags.map((n,c)=>r.jsx("div",{style:{height:"40px",width:"100px",borderRadius:"1000rem",backgroundColor:"#171616"}},c)):de.article_tags.map((n,c)=>r.jsx(fe,{variant:"outlined",sx:{border:`1px solid ${e.palette.jg.btn}`,borderRadius:"1000rem","&:hover":{border:`1px solid ${e.palette.jg.btn}`},...a===n?{backgroundColor:e.palette.jg.btn}:{}},onClick:()=>o(n),children:n},c))})]})}function be(e){const t=N();function o(){navigate(`/blog/${e.article_title}`)}return r.jsx(ge,{sx:{height:"fit-content",borderRadius:"4px",transition:"all 200ms",boxShadow:"none","&:hover":{cursor:"pointer",boxShadow:t.shadows[4]}},onClick:o,children:r.jsxs(Be,{sx:{display:"flex",flexDirection:"row",gap:"1rem"},children:[r.jsx("img",{style:{width:100,maxWidth:100,height:"auto",objectFit:"cover"},src:e.article_url[0],alt:"blog article image"}),r.jsx(A,{text:e.article_title,p:1})]})})}be.propTypes={article_url:$.array.isRequired,article_summary:$.string.isRequired,article_title:$.string.isRequired,article_id:$.number.isRequired};function Ft(){const{articleDataLastArticles:e,articleLoading:t}=I;return t?null:r.jsxs(O,{gap:2,children:[r.jsx(A,{text:"Last Articles"}),e.map((o,a)=>r.jsx(be,{...o},a))]})}function Ht(){const e=N(),{copied:t}=I;return r.jsxs(r.Fragment,{children:[r.jsx(Te,{}),r.jsxs(Oe,{mask:!0,sx:{width:"100%",paddingInline:"8px"},children:[r.jsx(O,{p:"clamp(3rem, 3vw + 1rem, 3rem) clamp(3rem, 3vw + 1rem, 3rem)",children:r.jsx(Ie,{text:"Blog"})}),r.jsxs(O,{direction:"row",gap:2,justifyContent:"space-between",flex:1,sx:{width:"100%"},children:[r.jsxs(O,{flex:3,gap:2,children:[r.jsx(Nt,{}),r.jsx(_t,{})]}),r.jsxs(O,{flex:1,gap:2,sx:{display:{xs:"none",lg:"flex"}},children:[r.jsx(Dt,{}),r.jsx(Ft,{})]})]})]}),r.jsx(Tt,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t,onClose:()=>{},message:"Link copied",sx:{".MuiPaper-root":{border:`1px solid ${e.palette.jg.selectBorder}`}}},"link-copied")]})}export{Ht as default};