<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&amp;&amp;(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="adde883b-aba1-5ce2-a873-4f4377a95ee6")}catch(e){}}();
import{j as t}from"./jsx-runtime-Cf8x2fCZ.js";import{T as F}from"./index-D1H9sqQ-.js";import{r as d,a as de,u as me,b as J,g as Te}from"./index-CnhpwU98.js";import{u as Pe}from"./index-C1HsH3Xv.js";import{c as C}from"./index-B4P2qLrl.js";import{B as W}from"./index-76jK7shb.js";import{I as fe}from"./Input-DuHNcmkM.js";import{S as U}from"./StatusInputs-C2fwlicj.js";import{u as X}from"./useToast-Z33VfwyX.js";import{d as H,u as Le,c as He}from"./components-MUvJN_Vi.js";import{u as E}from"./useTranslation-CMWGipsT.js";import{q as P}from"./transition-DXtNuaf8.js";import{a as Ee,S as $,F as Be,r as Ae,L as De}from"./useSetLastViewedResource-CFB869gR.js";import{M as ze}from"./index-Da2q5lFc.js";import{q as L}from"./XMarkIcon-MMkJNPmE.js";import{F as pe,H as $e}from"./HeroChatIcon-DUUHomXd.js";import{a as We}from"./LockClosedIcon-ntWxtlG2.js";import{F as Oe}from"./FreeGatedContent-BLPnkaTm.js";import{P as Ve,a as qe,b as Ue}from"./TwitterEmbed-DSahIHPl.js";import{P as Ke}from"./index-CxzkuDoV.js";import{u as Ze}from"./useIsLoggedIn-DLyBBDcB.js";import{S as Ge,a as Ye}from"./CreateAction-BHCalnac.js";import{I as Je}from"./Image-BgM8QS0f.js";import{T as te}from"./index-DfxmtkDy.js";import{F as Xe}from"./XMarkIcon-Durbfwvh.js";import{_ as ge}from"./dialog-DueC5Y5o.js";import{B as Qe}from"./index-Dbe8bPeP.js";import{u as et}from"./WebThemeContext-FsIy-vr7.js";import{u as tt}from"./useIsMobile-cLAehecu.js";import{P as nt}from"./index-Bx7-BEHX.js";import{F as st}from"./ChevronRightIcon-BisdA8W9.js";function rt({title:e,titleId:n,...s},r){return d.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:r,"aria-labelledby":n},s),e?d.createElement("title",{id:n},e):null,d.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.123-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 ot=d.forwardRef(rt);function it({title:e,titleId:n,...s},r){return d.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:r,"aria-labelledby":n},s),e?d.createElement("title",{id:n},e):null,d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const at=d.forwardRef(it);function lt({title:e,titleId:n,...s},r){return d.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:r,"aria-labelledby":n},s),e?d.createElement("title",{id:n},e):null,d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))}const ct=d.forwardRef(lt);function dt({title:e,titleId:n,...s},r){return d.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:r,"aria-labelledby":n},s),e?d.createElement("title",{id:n},e):null,d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const xe=d.forwardRef(dt);function mt({title:e,titleId:n,...s},r){return d.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:r,"aria-labelledby":n},s),e?d.createElement("title",{id:n},e):null,d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const we=d.forwardRef(mt);function ut({title:e,titleId:n,...s},r){return d.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:r,"aria-labelledby":n},s),e?d.createElement("title",{id:n},e):null,d.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const ht=d.forwardRef(ut),ue=()=&gt;{const{t:e}=E(),{handleOpenModal:n}=Ee();return t.jsxs(F,{as:"span",size:"xs",type:"body",theme:"content",className:"opacity-75",children:[t.jsx("button",{type:"button",onClick:()=&gt;n("login"),children:t.jsx("span",{className:"underline",children:e("shared.cta.login")})})," ",e("shared.cta.or")," ",t.jsx("button",{type:"button",onClick:()=&gt;n("signup"),children:t.jsx("span",{className:"underline",children:e("shared.cta.subscribe")})})," ",e("shared.cta.to_participate"),"."]})},he=({children:e,postPadding:n,classNames:s})=&gt;t.jsx("div",{className:s,style:{paddingLeft:n,paddingRight:n},children:e});var le=(e=&gt;(e.DEFAULT="default",e.PREMIUM="premium",e.DISABLED="disabled",e.LOCKED="locked",e))(le||{});const ft=({postId:e,commentId:n,order:s})=&gt;{const[r,i]=d.useState(s),a=de(),c=Pe(),[m,h]=d.useState(!1),[o,l]=d.useState([]),[u,f]=d.useState({page:1,added:!1}),p=c.data?.pagination?.page||1,x=c.data?.pagination.total,b=c.data?.pagination.per_page,g=p*b,y=p+1,j=g&lt;x,v=()=&gt;{l([]),h(!1),f({page:1,added:!1})},k=w=&gt;{i(w),v()};return d.useEffect(()=&gt;{l([])},[a.pathname]),d.useEffect(()=&gt;{if(u.page===1&amp;&amp;!u.added){const w=new URLSearchParams;w.append("post_id",e),n&amp;&amp;w.append("comment_id",n),r&amp;&amp;w.append("order",r),c.load(`/paginated_comments?${w.toString()}`)}},[a,u]),d.useEffect(()=&gt;{c.data&amp;&amp;(u.page===c.data.pagination.page&amp;&amp;!u.added&amp;&amp;(l([...o,...c.data.comments]),f({page:u.page,added:!0})),m||h(!0))},[c.data]),{initialFetched:m,comments:o,optimisticallyRenderNewComment:w=&gt;{l([w,...o])},optimisticallyDeleteTopLevelComment:w=&gt;{const T={...o.find(M=&gt;M.id===w),deleted_by_commenter_at:new Date().toISOString()};l(o.map(M=&gt;M.id===w?T:M))},reorderComments:k,commentOrder:r,itemsRemaining:c.data?.items_remaining,isLoadingMore:m&amp;&amp;c.state==="loading",remaingCount:x-g,hasNextPage:j,loadMore:()=&gt;{const w=new URLSearchParams;w.append("post_id",e),w.append("page",y.toString()),n&amp;&amp;w.append("comment_id",n),s&amp;&amp;w.append("order",s),f({page:y,added:!1}),c.load(`/paginated_comments?${w.toString()}`)}}},pt=({firstName:e,lastName:n,onSuccess:s})=&gt;{const r=H(),i=r.data,a=r.state==="submitting",c=i?.toast?.status==="success",{t:m}=E();return d.useEffect(()=&gt;{c&amp;&amp;s&amp;&amp;s()},[c,s]),X(i?.toast),t.jsx(r.Form,{method:"patch",action:"/profile",className:"relative",children:t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"space-y-3",children:[t.jsx(fe,{name:"first_name",autoComplete:"given-name",label:`${m("manage.personal_details_form.first_name")}`,placeholder:`${m("manage.personal_details_form.first_name")}`,defaultValue:e}),t.jsx(fe,{name:"last_name",autoComplete:"family-name",label:`${m("manage.personal_details_form.last_name")}`,placeholder:`${m("manage.personal_details_form.last_name")}`,defaultValue:n}),t.jsx(U,{name:"profile",errorMessage:m("errors.default"),successMessage:m("toast.success")})]}),t.jsx("div",{className:"flex justify-end",children:t.jsx(W,{type:"submit",variant:"primary",children:a?`${m("shared.actions.submitting")}...`:m("shared.cta.submit")})})]})})},gt=()=&gt;t.jsx("svg",{width:"22",height:"11",viewBox:"0 0 22 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M20.414 11H1.58597C1.37769 11 1.17146 10.9667 0.979043 10.9019C0.786625 10.8372 0.611789 10.7423 0.464519 10.6226C0.317248 10.503 0.200427 10.361 0.120724 10.2046C0.0410222 10.0483 0 9.88078 0 9.71158V1.28842C0 1.11922 0.0410222 0.951683 0.120724 0.795365C0.200427 0.639046 0.317248 0.497011 0.464519 0.37737C0.761945 0.135744 1.16534 0 1.58597 0H20.414C20.6223 0 20.8285 0.0333262 21.021 0.0980755C21.2134 0.162825 21.3882 0.257729 21.5355 0.37737C21.6828 0.497011 21.7996 0.639046 21.8793 0.795365C21.959 0.951683 22 1.11922 22 1.28842V9.71009C22.0001 9.87935 21.9592 10.047 21.8795 10.2034C21.7999 10.3598 21.6831 10.5019 21.5358 10.6216C21.3885 10.7413 21.2136 10.8363 21.0212 10.9011C20.8287 10.9659 20.6224 11 20.414 11ZM5.28777 8.42167V5.07028L7.40362 7.21889L9.51854 5.07028V8.42167H11.6344V2.57908H9.51854L7.40362 4.72769L5.28777 2.57908H3.17193V8.42316L5.28777 8.42167ZM19.4625 5.5H17.3466V2.57833H15.2317V5.5H13.1158L16.2887 8.50806L19.4625 5.5Z",fill:"#D1D5DB"})}),xt=({children:e})=&gt;{const[n,s]=d.useState(!1);return t.jsxs("div",{className:"relative inline-block",children:[t.jsx("div",{onMouseEnter:()=&gt;s(!0),onMouseLeave:()=&gt;s(!1),children:e}),t.jsx(P,{show:n,enter:"transition-opacity duration-150",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:t.jsxs("div",{className:"absolute right-0 z-10 mt-2 flex flex-col space-y-2 rounded bg-gray-800 px-2 py-1 text-sm text-white",children:[t.jsx("p",{className:"whitespace-nowrap",children:"Simple markdown supported: "}),t.jsxs("ul",{className:"list-disc pl-4",children:[t.jsx("li",{children:"*italics*"}),t.jsx("li",{children:"**bold**"}),t.jsx("li",{children:"***bold italics***"}),t.jsx("li",{children:"~~strike through~~"}),t.jsx("li",{children:"==highlight=="}),t.jsx("li",{children:"1. numbered list"})]})]})})]})},wt=()=&gt;t.jsx("div",{className:"space-y-2 text-sm",children:t.jsx(xt,{children:t.jsx(gt,{})})}),vt=1e3,ne=({postId:e,commentId:n,subscription:s,text:r,buttonType:i,onClick:a,onChange:c,defaultValue:m,userId:h="",disabled:o=!1,rows:l=5})=&gt;{const{t:u}=E(),[f,p]=d.useState(""),x=f.length||0,b=vt-x,g=b&lt;0,y=`comment_${s?.id}_${n}`,j=d.useRef(null);return d.useEffect(()=&gt;{const v=j.current,k=w=&gt;{const O=w.target;O.style.height="auto",O.style.height=`${O.scrollHeight}px`};return v&amp;&amp;(v.style.height="auto",v.style.height=`${v.scrollHeight}px`,v.style.overflowY="hidden",v.addEventListener("input",k,!1)),()=&gt;{v&amp;&amp;v.removeEventListener("input",k,!1)}},[j]),d.useEffect(()=&gt;{const v=j.current;o&amp;&amp;v&amp;&amp;(v.style.height="auto")},[o]),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"absolute right-2 top-1 z-20",children:t.jsx(wt,{})}),t.jsxs("div",{className:C("relative overflow-hidden rounded-wt border border-gray-200 pb-10 shadow-sm focus-within:ring-1",g?"focus-within:border-red-500 focus-within:ring-red-500":"focus-within:border-wt-primary focus-within:ring-wt-primary"),children:[t.jsx("label",{htmlFor:y,className:"sr-only",children:u("comments.commenting.comment_action_placeholder")}),t.jsx("textarea",{rows:l,ref:j,name:"content",id:y,className:"block w-full resize-none border-0 bg-transparent py-3 !text-sm focus:ring-0",placeholder:`${u("comments.commenting.comment_action_placeholder")}...`,required:!0,onChange:v=&gt;{p(v.target.value),c?.(v)},defaultValue:m}),t.jsx("input",{type:"hidden",name:"post_id",value:e}),t.jsx("input",{type:"hidden",name:"comment_id",value:n}),t.jsx("input",{type:"hidden",name:"subscription_id",value:s?.id}),t.jsx("input",{type:"hidden",name:"user_id",value:h}),t.jsx(U,{name:"characters",errorMessage:u("comments.commenting.characters_error"),successMessage:""}),t.jsx(U,{name:"comment",errorMessage:u("errors.default"),successMessage:""}),t.jsx("div",{className:"absolute bottom-2 left-2 flex items-center justify-between pt-2",children:t.jsx(F,{as:"p",size:"xs",theme:"content",weight:"medium",className:C("flex items-center !text-xs",g?"opacity-100":"opacity-40"),children:t.jsx("span",{className:C(g&amp;&amp;"text-red-500"),children:b})})}),t.jsx("div",{className:"absolute bottom-2 right-2",children:t.jsx(W,{btnSize:"sm",type:i,onClick:()=&gt;{p(""),a?.()},disabled:o||g,children:r})})]})]})},Me=({postId:e,commentId:n,onCommentCreated:s,subscription:r,rows:i,isPremiumCommentsOnly:a=!1})=&gt;{const{t:c}=E(),m=me(),h=de(),{admin:o}=J(),[l,u]=d.useState(!1),[f,p]=d.useState(!1),[x,b]=d.useState(""),g=d.useRef(null),y=H(),j=y.state==="submitting",v=y.data,k=v?.toast?.status==="error";X(v?.toast);const w=!!o,O=!!n,T=c(O?"comments.replying.reply":"comments.commenting.post"),M=O?`${c("comments.replying.replying")}...`:`${c("comments.commenting.posting")}...`,q=r?.tier!=="premium"&amp;&amp;a&amp;&amp;!w,D=!r?.comment_details_set&amp;&amp;!w,z=()=&gt;{f&amp;&amp;(g.current?.submit(),p(!1))};return d.useEffect(()=&gt;{g.current&amp;&amp;x&amp;&amp;f&amp;&amp;(g.current.getElementsByTagName("button")[0]?.click(),p(!1),b(""))},[g.current,f,z]),d.useEffect(()=&gt;{v&amp;&amp;!k&amp;&amp;s&amp;&amp;(s(v),g.current?.reset(),b(""))},[v,k]),q?t.jsxs(t.Fragment,{children:[t.jsx($,{title:`${c("comments.upgrade.title")}`,description:t.jsx("div",{children:t.jsx("p",{children:c("comments.upgrade.description")})}),isOpen:l,onClose:()=&gt;u(!1),children:t.jsx(W,{type:"button",variant:"primary",className:"flex w-full justify-center",isLoading:j,onClick:()=&gt;m(`/upgrade?post_url=${h.pathname}`),children:c("comments.upgrade.cta")})}),t.jsx(ne,{postId:e,commentId:n,subscription:r,text:j?M:T,buttonType:"button",onClick:()=&gt;u(!0),onChange:R=&gt;b(R.target.value)})]}):D?t.jsxs(t.Fragment,{children:[t.jsx($,{title:c("comments.commenting.profile_title")||"",description:t.jsxs("div",{children:[t.jsx("p",{children:c("comments.commenting.profile_description")}),t.jsxs("p",{className:"pt-1 text-xs font-medium text-gray-500",children:["(",c("comments.commenting.profile_gravatar")," ",t.jsx("a",{className:"text-wt-primary",target:"_blank",rel:"noopener noreferrer",href:"https://support.beehiiv.com/hc/en-us/articles/13111175166999",children:"Gravatar."}),")"]})]}),isOpen:l,onClose:()=&gt;u(!1),children:t.jsx(pt,{onSuccess:()=&gt;p(!0)})}),t.jsx(ne,{postId:e,commentId:n,subscription:r,text:j?M:T,buttonType:"button",onClick:()=&gt;u(!0),onChange:R=&gt;b(R.target.value)})]}):t.jsx("div",{className:"flex items-start",children:t.jsx("div",{className:"min-w-0 flex-1",children:t.jsx(y.Form,{ref:g,method:"post",action:w?"/admins/comments":"/comments",className:"relative",children:t.jsx(ne,{postId:e,commentId:n,subscription:r,userId:o?.id||"",text:j?M:T,defaultValue:x,rows:i,buttonType:"submit",disabled:j})})})})},ve=({text:e,Icon:n,onClick:s})=&gt;t.jsx("div",{className:"transitiona-all group",children:t.jsx("button",{type:"button",onClick:s,children:t.jsxs("div",{className:"flex items-center text-xs opacity-50 hover:opacity-100",children:[t.jsx(F,{as:"span",size:"xs",theme:"content",weight:"semibold",className:"mr-1",children:n}),t.jsx(F,{as:"span",size:"xs",theme:"content",weight:"semibold",className:"mr-1",children:e})]})})}),ce=({imageUrl:e,name:n,content:s,time:r,isModerator:i})=&gt;{const a=s?.replace(/\n/g,`&amp;nbsp;  
`)||"";return t.jsxs("div",{className:"flex",children:[t.jsx("img",{className:"h-7 w-7 rounded-full",src:e,alt:"The user involved in the comment"}),t.jsx("div",{className:"ml-2 sm:ml-3",children:t.jsxs("div",{className:"",children:[t.jsxs("div",{className:"flex items-center",children:[i&amp;&amp;t.jsx("div",{children:t.jsx(Be,{className:"mr-1 h-4 w-4 text-wt-primary"})}),t.jsxs(F,{as:"p",size:"sm",theme:"content",weight:"semibold",children:[n," ",t.jsxs("span",{className:"font-light opacity-70",children:[" • ",Ae(r)]})]})]}),t.jsx(F,{as:"div",size:"sm",theme:"content",weight:"regular",children:t.jsx(ze,{children:a})})]})})]})},bt=({postId:e,commentId:n,commenterId:s,subscriptionId:r,onDelete:i,userId:a,isLoggedInAsAdmin:c=!1})=&gt;{const{t:m}=E(),h=d.useRef(null),o=H(),l=o.state==="submitting",u=o.data;X(u?.toast),d.useEffect(()=&gt;{u?.toast&amp;&amp;i()},[u?.toast,i]);const f=c&amp;&amp;s!==a,p=m(f?"comments.removing.remove":"comments.deleting.delete"),x=m(f?"comments.removing.removing":"comments.deleting.deleting");return t.jsx("div",{className:"flex items-start space-x-4",children:t.jsx("div",{className:"min-w-0 flex-1",children:t.jsxs(o.Form,{ref:h,method:"post",action:c?"/admins/delete_comment":"/delete_comment",className:"relative",children:[t.jsx("label",{htmlFor:"comment",className:"sr-only",children:m("comments.deleting.delete_comment")}),t.jsx("input",{type:"hidden",name:"post_id",value:e}),t.jsx("input",{type:"hidden",name:"comment_id",value:n}),t.jsx("input",{type:"hidden",name:"subscription_id",value:r}),t.jsx("input",{type:"hidden",name:"user_id",value:a}),t.jsx(U,{name:"delete_comment",errorMessage:m("errors.default"),successMessage:m("comments.deleting.deleted")}),t.jsx("div",{className:"flex justify-end pr-1",children:t.jsx(W,{type:"submit",btnSize:"sm",disabled:l,children:l?x:p})})]})})})},jt=({postId:e,commentId:n,subscriptionId:s,onReport:r})=&gt;{const{t:i}=E(),a=H(),c=a.state==="submitting",m=a.data;X(m?.toast),d.useEffect(()=&gt;{m?.toast&amp;&amp;r()},[m?.toast,r]);const h=i("comments.reporting.report"),o=`${i("comments.reporting.reporting")}...`;return t.jsx("div",{className:"flex items-start space-x-4",children:t.jsx("div",{className:"min-w-0 flex-1",children:t.jsxs(a.Form,{method:"post",action:"/comment_report",className:"relative",children:[t.jsxs("div",{className:"overflow-hidden rounded-wt border border-gray-300 shadow-sm focus-within:border-wt-primary focus-within:ring-1 focus-within:ring-wt-primary",children:[t.jsx("label",{htmlFor:"comment",className:"sr-only",children:i("comments.reporting.file_report")}),t.jsx("textarea",{rows:2,name:"reason",id:"reason",required:!0,className:"block w-full resize-none border-0 bg-transparent py-3 text-sm focus:ring-0",placeholder:i("comments.reporting.report_action_placeholder")||"",defaultValue:""}),t.jsx("input",{type:"hidden",name:"post_id",value:e}),t.jsx("input",{type:"hidden",name:"comment_id",value:n}),t.jsx("input",{type:"hidden",name:"subscription_id",value:s}),t.jsx(U,{name:"comment_report",errorMessage:i("errors.default"),successMessage:i("comments.reporting.reported")}),t.jsx("div",{className:"py-2","aria-hidden":"true",children:t.jsx("div",{className:"py-px",children:t.jsx("div",{className:"h-9"})})})]}),t.jsxs("div",{className:"absolute inset-x-0 bottom-0 flex justify-between py-2 pl-3 pr-2",children:[t.jsx("div",{className:"flex items-center space-x-5"}),t.jsx("div",{className:"flex-shrink-0 pr-1",children:t.jsx(W,{type:"submit",btnSize:"sm",disabled:c,children:c?o:h})})]})]})})})},yt=({comment:e,postId:n,subscription:s,onDelete:r,admin:i})=&gt;{const{t:a}=E(),[c,m]=d.useState(!1),[h,o]=d.useState(!1),l=!!i,u=i?.id,f=e.commenter_id,p=s?.id,b=f===p||l,g=l&amp;&amp;f!==u;return t.jsxs("div",{children:[b?t.jsx($,{title:t.jsx("div",{className:"pb-3",children:t.jsxs(F,{as:"p",size:"xs",theme:"content",weight:"medium",className:"flex items-center opacity-60",children:[t.jsx(we,{className:"mr-1 h-3.5 w-3.5"}),g?`${a("comments.removing.removing_comment")}...`:`${a("comments.deleting.deleting_comment")}...`]})}),description:t.jsx(ce,{imageUrl:e.avatar_url,name:e.commenter,content:e.content,time:e.created_at,isModerator:e.is_moderator_comment}),isOpen:c,onClose:()=&gt;m(!1),children:t.jsx(bt,{postId:n,commentId:e.id,commenterId:e.commenter_id,subscriptionId:s?.id,userId:u,isLoggedInAsAdmin:l,onDelete:()=&gt;{m(!1),r()}})}):t.jsx($,{title:t.jsx("div",{className:"pb-3",children:t.jsxs(F,{as:"p",size:"xs",theme:"content",weight:"medium",className:"flex items-center opacity-60",children:[t.jsx(xe,{className:"mr-1 h-3.5 w-3.5"}),`${a("comments.reporting.filing_report_for")}...`]})}),description:t.jsx(ce,{imageUrl:e.avatar_url,name:e.commenter,content:e.content,time:e.created_at,isModerator:e.is_moderator_comment}),isOpen:h,onClose:()=&gt;o(!1),children:t.jsx(jt,{postId:n,commentId:e.id,subscriptionId:s?.id,onReport:()=&gt;{o(!1)}})}),t.jsxs(L,{as:"div",className:"relative inline-block text-left",children:[t.jsx("div",{children:t.jsx(L.Button,{className:"pt-0.5",children:t.jsx(F,{as:"span",size:"xs",theme:"content",weight:"semibold",className:"opacity-50 hover:opacity-100",children:t.jsx(ct,{className:"h-4 w-4"})})})}),t.jsx(P,{as:d.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:t.jsx(L.Items,{className:"absolute right-0 z-10 w-32 origin-top-left divide-y divide-gray-100 rounded-md bg-wt-background shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:t.jsx("div",{className:"px-1",children:b?t.jsx(L.Item,{children:t.jsx("div",{className:"p-2",children:t.jsx(ve,{text:a(g?"comments.removing.remove":"comments.deleting.delete"),Icon:t.jsx(we,{className:"h-3.5 w-3.5"}),onClick:()=&gt;{m(!0)}})})}):t.jsx(L.Item,{children:t.jsx("div",{className:"p-2",children:t.jsx(ve,{text:a("comments.reporting.report"),Icon:t.jsx(xe,{className:"h-3.5 w-3.5"}),onClick:()=&gt;{o(!0)}})})})})})})]})]})},se=({children:e,count:n=0,liked:s})=&gt;{const{t:r}=E();return t.jsxs("div",{className:"group flex items-center space-x-1",children:[e,t.jsxs("div",{className:"flex items-center space-x-0.5",children:[t.jsx("span",{className:C(s?"opacity-100":"text-wt-text-on-background-color opacity-60 group-hover:opacity-100","text-xs uppercase"),children:r("comments.like")}),n===0?null:t.jsxs("span",{className:C(s?"opacity-100":"opacity-60","text-wt-text-on-background-color -mt-[1px] text-xs group-hover:opacity-100"),children:["(",n,")"]})]})]})},_t=(e,n)=&gt;e?e?.id:n?n?.id:"",be="h-4 w-4 text-wt-text-on-background-color opacity-60 group-hover:opacity-100",kt=({postId:e,comment:n,subscription:s,admin:r})=&gt;{const{t:i}=E(),[a]=d.useState(n?.likes||[]),[c,m]=d.useState(a.includes(_t(r,s))),[h,o]=d.useState(a?.length||0),[l,u]=d.useState(!1),f=H(),p=!!r,b=!p&amp;&amp;!!!s,g=()=&gt;{m(!c),o(c?h-1:h+1)},y=j=&gt;{j.preventDefault();const v=new FormData(j.currentTarget);p?f.submit(v,{method:"post",action:"/admins/comment_like"}):f.submit(v,{method:"post",action:"/comment_like"}),g()};return b?t.jsxs(t.Fragment,{children:[t.jsx("button",{className:"-mt-0.5",type:"button",onClick:()=&gt;u(!0),children:t.jsx(se,{count:h,children:t.jsx(pe,{className:be})})}),l&amp;&amp;t.jsx($,{title:i("gated.login_or_subscribe"),description:"",isOpen:l,onClose:()=&gt;u(!1),children:t.jsx("div",{children:t.jsx(ue,{})})})]}):t.jsx("div",{className:"flex items-start",children:t.jsx("div",{className:"min-w-0 flex-1",children:t.jsxs(f.Form,{method:"post",onSubmit:y,action:p?"/admins/comment_like":"/comment_like",className:"relative",children:[t.jsx("input",{type:"hidden",name:"post_id",value:e}),t.jsx("input",{type:"hidden",name:"comment_id",value:n?.id}),t.jsx("input",{type:"hidden",name:"subscription_id",value:s?.id}),t.jsx("input",{type:"hidden",name:"user_id",value:r?.id}),t.jsx("button",{type:"submit",children:c?t.jsx(se,{count:h,liked:!0,children:t.jsx(We,{className:"h-4 w-4 text-wt-primary"})}):t.jsx(se,{count:h,children:t.jsx(pe,{className:be})})})]})})})},Ct=({comment:e,postId:n,subscription:s,onSuccessfulReply:r,isPremiumCommentsOnly:i=!1})=&gt;t.jsx(Me,{postId:n,commentId:e.id,rows:3,isPremiumCommentsOnly:i,onCommentCreated:a=&gt;{r(a)},subscription:s}),Nt=({children:e,ref:n,onClick:s,text:r,className:i})=&gt;t.jsxs("button",{type:"button",ref:n,className:C(i,"text-wt-text-on-background-color flex items-center gap-1 text-sm opacity-60 hover:opacity-100"),onClick:s,children:[e,t.jsx("span",{className:"mt-0 text-xs uppercase",children:r})]}),St=e=&gt;{const[n]=Le(),[s,r]=d.useState(!1),[i,a]=d.useState(!1),c=n.get("comment_id")===e&amp;&amp;!i;return d.useEffect(()=&gt;{if(c&amp;&amp;!s){const m=document.getElementById(e);if(m){const o=m.getBoundingClientRect().top-20;window.scrollTo({top:o,behavior:"smooth"}),setTimeout(()=&gt;{a(!0)},2e3)}r(!0)}},[c,s,r]),{isHighlighted:c}},Lt=({comment:e,postId:n,subscription:s,isMaxDepthLevel:r=!1,commentsLocked:i,showReplyButton:a,isPremiumCommentsOnly:c=!1,isOptimisticallyDeleted:m,onDelete:h,onReply:o})=&gt;{const{t:l}=E(),{admin:u}=J(),{isHighlighted:f}=St(e.id),[p,x]=d.useState(!1),b=!s?.comment_details_set,g=!!u,y=!i&amp;&amp;!b&amp;&amp;!e.is_moderator_comment,j=()=&gt;{h?.()},v=w=&gt;{o?.(w),x(!1)},k=()=&gt;{x(!p)};return m?null:t.jsx("div",{className:C("transition-all",f&amp;&amp;"animate-pulse"),id:e.id,children:t.jsxs("div",{children:[t.jsxs("div",{className:"z-20 flex justify-between",children:[t.jsx(ce,{imageUrl:e.avatar_url||"",name:e.commenter,content:e.content,time:e.created_at,isModerator:e.is_moderator_comment}),(y||g)&amp;&amp;t.jsx(yt,{comment:e,postId:n,subscription:s,admin:u,onDelete:j})]}),t.jsxs("div",{className:"ml-7 sm:ml-10",children:[t.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[t.jsx(kt,{postId:n,comment:e,subscription:s,admin:u}),!r&amp;&amp;!i&amp;&amp;a&amp;&amp;t.jsx(Nt,{className:"-mt-1",text:p?`${l("comments.replying.cancel_reply")}`:`${l("comments.replying.reply")}`,onClick:k,children:t.jsx(ot,{className:"mt-0.5 h-4 w-4"})})]}),!i&amp;&amp;p&amp;&amp;t.jsx("div",{className:"mt-2",children:t.jsx(Ct,{comment:e,postId:n,subscription:s,onSuccessfulReply:v,isPremiumCommentsOnly:c})})]})]})},e.id)},Et=({comment:e,postId:n,subscription:s,commentsLocked:r,initialCommentsFetched:i,isPremiumCommentsOnly:a,optimisticallyDeleteComment:c})=&gt;{const[m,h]=d.useState(!1),[o,l]=d.useState(e.sub_comments),u=o?.length&gt;0,f=g=&gt;{l([...o||[],g])},p=()=&gt;{c(e.id)},x=g=&gt;{const y={...e,deleted_by_commenter_at:new Date().toISOString()},j=o.map(v=&gt;v.id===g?y:v);l(j),h(!0)},b=g=&gt;{e.depth_level===1?p():x(g)};return t.jsxs("div",{className:"relative space-y-1",children:[t.jsx("div",{className:"absolute left-[14px] top-[38px] z-10 h-[calc(100%-45px)] border-l"}),t.jsx(Lt,{comment:e,postId:n,subscription:s,isMaxDepthLevel:e.depth_level&gt;=e.max_allowed_depth_level,commentsLocked:r,showReplyButton:!0,isOptimisticallyDeleted:m,onReply:g=&gt;f(g),onDelete:()=&gt;b(e.id),isPremiumCommentsOnly:a}),u&amp;&amp;!m&amp;&amp;t.jsx("div",{className:"pl-8",children:t.jsx(Ie,{initialCommentsFetched:i,comments:o,postId:n,subscription:s,optimisticallyDeleteComment:b,commentsLocked:r,isSubcomments:!0,isPremiumCommentsOnly:a})})]},e.id)},Ie=({initialCommentsFetched:e,comments:n,postId:s,subscription:r,commentsLocked:i,isPremiumCommentsOnly:a=!1,isSubcomments:c=!1,optimisticallyDeleteComment:m})=&gt;t.jsx("div",{className:C("flex flex-col",c?"space-y-2":"space-y-4"),children:n.map((h,o)=&gt;h.deleted_by_commenter_at?null:t.jsx(Et,{comment:h,postId:s,subscription:r,commentsLocked:i,initialCommentsFetched:e,isPremiumCommentsOnly:a,optimisticallyDeleteComment:m},h.id))}),K=()=&gt;t.jsx("div",{className:"h-8 w-full rounded bg-gray-300/80"}),Ot=()=&gt;t.jsx("div",{className:"flex w-full animate-pulse flex-col space-y-6",children:t.jsxs("div",{className:"space-y-4",children:[t.jsx(K,{}),t.jsx(K,{}),t.jsx(K,{}),t.jsx(K,{})]})}),re=({text:e,reorderComments:n,order:s})=&gt;t.jsx(L.Item,{children:({active:r})=&gt;t.jsx("button",{onClick:()=&gt;n(s),className:`${r?"bg-wt-text-on-background text-wt-background":"text-wt-text-on-background"} group flex w-full items-center rounded-md px-2 py-2 text-sm`,children:e})}),Mt=({reorderComments:e,commentOrder:n})=&gt;{const s={desc:"Newest first",asc:"Oldest first",popular:"Most popular"};return t.jsx("div",{className:"",children:t.jsxs(L,{as:"div",className:"relative inline-block text-left",children:[t.jsx("div",{children:t.jsxs(L.Button,{className:"inline-flex w-full justify-center whitespace-nowrap rounded-wt border bg-wt-background px-4 py-1 text-sm font-medium text-wt-text-on-background",children:[s[n||"desc"],t.jsx(ht,{className:"-mr-1 ml-2 h-5 w-5 text-wt-text-on-background","aria-hidden":"true"})]})}),t.jsx(P,{as:d.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:t.jsx(L.Items,{className:"absolute right-0 z-50 mt-2 w-56 origin-top-right rounded-md border bg-wt-background shadow-lg",children:t.jsxs("div",{className:"px-1 py-1",children:[t.jsx(re,{text:s.desc,order:"desc",reorderComments:e}),t.jsx(re,{text:s.asc,order:"asc",reorderComments:e}),t.jsx(re,{text:s.popular,order:"popular",reorderComments:e})]})})})]})})},It=({publication:e})=&gt;{const{t:n}=E(),[s,r]=d.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(De,{isOpen:s,handleCloseModal:()=&gt;r(!1),publication:e}),t.jsxs("div",{className:"relative",children:[t.jsxs("div",{className:"overflow-hidden rounded-wt border border-gray-300 shadow-sm focus-within:border-wt-primary focus-within:ring-1 focus-within:ring-wt-primary",children:[t.jsx("label",{htmlFor:"comment",className:"sr-only",children:n("comments.commenting.comment_action_placeholder")}),t.jsx("textarea",{rows:2,name:"content",id:"comment",className:"block w-full resize-none border-0 bg-transparent py-3 text-sm focus:ring-0",placeholder:`${n("comments.commenting.comment_action_placeholder")}...`,required:!0}),t.jsx("div",{className:"py-2","aria-hidden":"true",children:t.jsx("div",{className:"py-px",children:t.jsx("div",{className:"h-6"})})})]}),t.jsxs("div",{className:"absolute inset-x-0 bottom-0 flex justify-between py-2 pl-3 pr-2",children:[t.jsx("div",{className:"flex items-center space-x-5",children:t.jsx("div",{className:"flex-shrink-0"})}),t.jsx("div",{className:"flex-shrink-0 pr-1",children:t.jsx(W,{btnSize:"sm",type:"button",onClick:()=&gt;r(!0),children:n("shared.cta.login")})})]})]})]})},Fs=({post:e,subscription:n,publication:s})=&gt;{const{t:r}=E(),{admin:i}=J(),[a,c]=Le(),m=a.get("comments")==="true",{initialFetched:h,comments:o,optimisticallyRenderNewComment:l,optimisticallyDeleteTopLevelComment:u,commentOrder:f,reorderComments:p,loadMore:x,isLoadingMore:b,remaingCount:g,hasNextPage:y}=ft({postId:e.id}),j=!!i,v=e.comments_state===le.PREMIUM,k=!!n,w=!o?.length,O=!!n?.comment_post_bans?.includes(e.id),T=!!n?.comment_publication_ban||O,M=e.comments_state===le.LOCKED||!k||T,q=!M&amp;&amp;!!n||j,D=!k&amp;&amp;!j,z=s.web_template.post_padding,R=s?.web_template?.comments_ordering;return t.jsx("div",{className:"pb-8",children:t.jsxs(he,{classNames:"mx-auto max-w-2xl",postPadding:z,children:[m&amp;&amp;t.jsxs("button",{type:"button",className:"flex items-center pb-2 pt-8 text-sm text-wt-primary",onClick:()=&gt;c({}),children:[t.jsx(at,{className:"mr-1 h-3 w-3"}),t.jsx("span",{children:e.web_title})]}),t.jsxs("div",{className:"flex items-center justify-between gap-4 py-2",children:[t.jsx(F,{as:"h4",size:"xl",theme:"content",weight:"bold",className:"leading-none",children:r("comments.replying.reply")}),t.jsx(Mt,{reorderComments:p,commentOrder:f||R})]}),q&amp;&amp;t.jsx("div",{className:"pb-4",children:t.jsx(Me,{postId:e.id,rows:4,onCommentCreated:l,subscription:n,isPremiumCommentsOnly:v})}),D&amp;&amp;t.jsxs("div",{className:"pb-4",children:[t.jsx(It,{publication:s}),t.jsx(ue,{})]}),h&amp;&amp;!w&amp;&amp;t.jsxs(t.Fragment,{children:[t.jsx(Ie,{initialCommentsFetched:h,comments:o,postId:e.id,optimisticallyDeleteComment:u,subscription:n,commentsLocked:M&amp;&amp;!j,isPremiumCommentsOnly:v}),h&amp;&amp;y&amp;&amp;t.jsx("div",{className:"flex justify-center py-8",children:t.jsx("button",{type:"button",className:"text-xs text-wt-primary",onClick:x,children:b?t.jsxs("span",{children:[r("comments.loading.loading"),"..."]}):t.jsxs("span",{children:[r("comments.loading.load_more")," (",g,")"]})})})]}),!h&amp;&amp;t.jsx(Ot,{})]})})};var Z={exports:{}},G={exports:{}},oe,je;function Ft(){if(je)return oe;je=1;var e=1e3,n=e*60,s=n*60,r=s*24,i=r*365.25;oe=function(o,l){l=l||{};var u=typeof o;if(u==="string"&amp;&amp;o.length&gt;0)return a(o);if(u==="number"&amp;&amp;isNaN(o)===!1)return l.long?m(o):c(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function a(o){if(o=String(o),!(o.length&gt;100)){var l=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(o);if(l){var u=parseFloat(l[1]),f=(l[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return u*i;case"days":case"day":case"d":return u*r;case"hours":case"hour":case"hrs":case"hr":case"h":return u*s;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}}}function c(o){return o&gt;=r?Math.round(o/r)+"d":o&gt;=s?Math.round(o/s)+"h":o&gt;=n?Math.round(o/n)+"m":o&gt;=e?Math.round(o/e)+"s":o+"ms"}function m(o){return h(o,r,"day")||h(o,s,"hour")||h(o,n,"minute")||h(o,e,"second")||o+" ms"}function h(o,l,u){if(!(o&lt;l))return o&lt;l*1.5?Math.floor(o/l)+" "+u:Math.ceil(o/l)+" "+u+"s"}return oe}var ye;function Rt(){return ye||(ye=1,function(e,n){n=e.exports=i.debug=i.default=i,n.coerce=h,n.disable=c,n.enable=a,n.enabled=m,n.humanize=Ft(),n.names=[],n.skips=[],n.formatters={};var s;function r(o){var l=0,u;for(u in o)l=(l&lt;&lt;5)-l+o.charCodeAt(u),l|=0;return n.colors[Math.abs(l)%n.colors.length]}function i(o){function l(){if(l.enabled){var u=l,f=+new Date,p=f-(s||f);u.diff=p,u.prev=s,u.curr=f,s=f;for(var x=new Array(arguments.length),b=0;b&lt;x.length;b++)x[b]=arguments[b];x[0]=n.coerce(x[0]),typeof x[0]!="string"&amp;&amp;x.unshift("%O");var g=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,function(j,v){if(j==="%%")return j;g++;var k=n.formatters[v];if(typeof k=="function"){var w=x[g];j=k.call(u,w),x.splice(g,1),g--}return j}),n.formatArgs.call(u,x);var y=l.log||n.log||console.log.bind(console);y.apply(u,x)}}return l.namespace=o,l.enabled=n.enabled(o),l.useColors=n.useColors(),l.color=r(o),typeof n.init=="function"&amp;&amp;n.init(l),l}function a(o){n.save(o),n.names=[],n.skips=[];for(var l=(typeof o=="string"?o:"").split(/[\s,]+/),u=l.length,f=0;f&lt;u;f++)l[f]&amp;&amp;(o=l[f].replace(/\*/g,".*?"),o[0]==="-"?n.skips.push(new RegExp("^"+o.substr(1)+"$")):n.names.push(new RegExp("^"+o+"$")))}function c(){n.enable("")}function m(o){var l,u;for(l=0,u=n.skips.length;l&lt;u;l++)if(n.skips[l].test(o))return!1;for(l=0,u=n.names.length;l&lt;u;l++)if(n.names[l].test(o))return!0;return!1}function h(o){return o instanceof Error?o.stack||o.message:o}}(G,G.exports)),G.exports}var _e;function Tt(){return _e||(_e=1,function(e,n){var s={};n=e.exports=Rt(),n.log=a,n.formatArgs=i,n.save=c,n.load=m,n.useColors=r,n.storage=typeof chrome&lt;"u"&amp;&amp;typeof chrome.storage&lt;"u"?chrome.storage.local:h(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function r(){return typeof window&lt;"u"&amp;&amp;window.process&amp;&amp;window.process.type==="renderer"?!0:typeof document&lt;"u"&amp;&amp;document.documentElement&amp;&amp;document.documentElement.style&amp;&amp;document.documentElement.style.WebkitAppearance||typeof window&lt;"u"&amp;&amp;window.console&amp;&amp;(window.console.firebug||window.console.exception&amp;&amp;window.console.table)||typeof navigator&lt;"u"&amp;&amp;navigator.userAgent&amp;&amp;navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&amp;&amp;parseInt(RegExp.$1,10)&gt;=31||typeof navigator&lt;"u"&amp;&amp;navigator.userAgent&amp;&amp;navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}n.formatters.j=function(o){try{return JSON.stringify(o)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}};function i(o){var l=this.useColors;if(o[0]=(l?"%c":"")+this.namespace+(l?" %c":" ")+o[0]+(l?"%c ":" ")+"+"+n.humanize(this.diff),!!l){var u="color: "+this.color;o.splice(1,0,u,"color: inherit");var f=0,p=0;o[0].replace(/%[a-zA-Z%]/g,function(x){x!=="%%"&amp;&amp;(f++,x==="%c"&amp;&amp;(p=f))}),o.splice(p,0,u)}}function a(){return typeof console=="object"&amp;&amp;console.log&amp;&amp;Function.prototype.apply.call(console.log,console,arguments)}function c(o){try{o==null?n.storage.removeItem("debug"):n.storage.debug=o}catch{}}function m(){var o;try{o=n.storage.debug}catch{}return!o&amp;&amp;typeof process&lt;"u"&amp;&amp;"env"in process&amp;&amp;(o=s.DEBUG),o}n.enable(m());function h(){try{return window.localStorage}catch{}}}(Z,Z.exports)),Z.exports}var ie,ke;function Pt(){if(ke)return ie;ke=1;var e=Tt()("jsonp");ie=r;var n=0;function s(){}function r(i,a,c){typeof a=="function"&amp;&amp;(c=a,a={}),a||(a={});var m=a.prefix||"__jp",h=a.name||m+n++,o=a.param||"callback",l=a.timeout!=null?a.timeout:6e4,u=encodeURIComponent,f=document.getElementsByTagName("script")[0]||document.head,p,x;l&amp;&amp;(x=setTimeout(function(){b(),c&amp;&amp;c(new Error("Timeout"))},l));function b(){p.parentNode&amp;&amp;p.parentNode.removeChild(p),window[h]=s,x&amp;&amp;clearTimeout(x)}function g(){window[h]&amp;&amp;b()}return window[h]=function(y){e("jsonp got",y),b(),c&amp;&amp;c(null,y)},i+=(~i.indexOf("?")?"&amp;":"?")+o+"="+u(h),i=i.replace("?&amp;","?"),e('jsonp req "%s"',i),p=document.createElement("script"),p.src=i,f.parentNode.insertBefore(p,f),g}return ie}var Ht=Pt();const B=Te(Ht);var Bt=Object.defineProperty,At=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Ce=(e,n,s)=&gt;n in e?Bt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[n]=s,I=(e,n)=&gt;{for(var s in n||(n={}))Fe.call(n,s)&amp;&amp;Ce(e,s,n[s]);if(Y)for(var s of Y(n))Re.call(n,s)&amp;&amp;Ce(e,s,n[s]);return e},Q=(e,n)=&gt;At(e,Dt(n)),ee=(e,n)=&gt;{var s={};for(var r in e)Fe.call(e,r)&amp;&amp;n.indexOf(r)&lt;0&amp;&amp;(s[r]=e[r]);if(e!=null&amp;&amp;Y)for(var r of Y(e))n.indexOf(r)&lt;0&amp;&amp;Re.call(e,r)&amp;&amp;(s[r]=e[r]);return s};function V(e){return s=&gt;{var r=s,{bgStyle:i={},borderRadius:a=0,iconFillColor:c="white",round:m=!1,size:h=64}=r,o=ee(r,["bgStyle","borderRadius","iconFillColor","round","size"]);return t.jsxs("svg",Q(I({viewBox:"0 0 64 64",width:h,height:h},o),{children:[m?t.jsx("circle",{cx:"32",cy:"32",r:"32",fill:e.color,style:i}):t.jsx("rect",{width:"64",height:"64",rx:a,ry:a,fill:e.color,style:i}),t.jsx("path",{d:e.path,fill:c})]}))}}class zt extends Error{constructor(n){super(n),this.name="AssertionError"}}function N(e,n){if(!e)throw new zt(n)}function _(e){const n=Object.entries(e).filter(([,s])=&gt;s!=null).map(([s,r])=&gt;`${encodeURIComponent(s)}=${encodeURIComponent(String(r))}`);return n.length&gt;0?`?${n.join("&amp;")}`:""}const $t=e=&gt;!!e&amp;&amp;(typeof e=="object"||typeof e=="function")&amp;&amp;"then"in e&amp;&amp;typeof e.then=="function",Wt=(e,n)=&gt;({left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-e/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-n/2}),Vt=(e,n)=&gt;({top:(window.screen.height-n)/2,left:(window.screen.width-e)/2});function qt(e,n,s){var r=n,{height:i,width:a}=r,c=ee(r,["height","width"]);const m=I({height:i,width:a,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},c),h=window.open(e,"",Object.keys(m).map(o=&gt;`${o}=${m[o]}`).join(", "));if(s){const o=window.setInterval(()=&gt;{try{(h===null||h.closed)&amp;&amp;(window.clearInterval(o),s(h))}catch(l){console.error(l)}},1e3)}return h}function Ut(e){var n=e,{beforeOnClick:s,children:r,className:i,disabled:a,disabledStyle:c={opacity:.6},forwardedRef:m,htmlTitle:h,networkLink:o,networkName:l,onClick:u,onShareWindowClose:f,openShareDialogOnClick:p=!0,opts:x,resetButtonStyle:b=!0,style:g,title:y,url:j,windowHeight:v=400,windowPosition:k="windowCenter",windowWidth:w=550}=n,O=ee(n,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","htmlTitle","networkLink","networkName","onClick","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","title","url","windowHeight","windowPosition","windowWidth"]);const T=async D=&gt;{const z=o(j,x);if(!a){if(D.preventDefault(),s){const R=s();$t(R)&amp;&amp;await R}if(p){const R=I({height:v,width:w},k==="windowCenter"?Wt(w,v):Vt(w,v));qt(z,R,f)}u&amp;&amp;u(D,z)}},M=C("react-share__ShareButton",{"react-share__ShareButton--disabled":!!a,disabled:!!a},i),q=I(I(b?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},g),a&amp;&amp;c);return t.jsx("button",Q(I({},O),{className:M,onClick:T,ref:m,style:q,title:h,children:r}))}function S(e,n,s,r){const i=(a,c)=&gt;{const m=s(a),h=I({},a);return Object.keys(m).forEach(l=&gt;{delete h[l]}),t.jsx(Ut,Q(I(I({},r),h),{forwardedRef:c,networkName:e,networkLink:n,opts:m}))};return i.displayName=`ShareButton-${e}`,d.forwardRef(i)}function Kt(e,{title:n,separator:s}){return N(e,"bluesky.url"),"https://bsky.app/intent/compose"+_({text:n?n+s+e:e})}S("bluesky",Kt,e=&gt;({title:e.title,separator:e.separator||" "}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"});const Zt=V({color:"#7f7f7f",path:"M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z"});function Gt(e,{subject:n,body:s,separator:r}){return"mailto:"+_({subject:n,body:s?s+r+e:e})}const Yt=S("email",Gt,e=&gt;({subject:e.subject,body:e.body,separator:e.separator||" "}),{openShareDialogOnClick:!1,onClick:(e,n)=&gt;{window.location.href=n}}),Jt=V({color:"#0965FE",path:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"});function Xt(e,{appId:n,redirectUri:s,to:r}){return"https://www.facebook.com/dialog/send"+_({link:e,redirect_uri:s||e,app_id:n,to:r})}S("facebookmessenger",Xt,e=&gt;({appId:e.appId,redirectUri:e.redirectUri,to:e.to}),{windowWidth:1e3,windowHeight:820});function Qt(e,{hashtag:n}){return N(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+_({u:e,hashtag:n})}const en=S("facebook",Qt,e=&gt;({hashtag:e.hashtag}),{windowWidth:550,windowHeight:400});function tn(){const e=d.useRef(!1);return d.useEffect(()=&gt;(e.current=!0,()=&gt;{e.current=!1}),[]),d.useCallback(()=&gt;e.current,[])}function nn(e){var n=e,{children:s=f=&gt;f,className:r,getCount:i,url:a}=n,c=ee(n,["children","className","getCount","url"]);const m=tn(),[h,o]=d.useState(void 0),[l,u]=d.useState(!1);return d.useEffect(()=&gt;{u(!0),i(a,f=&gt;{m()&amp;&amp;(o(f),u(!1))})},[a]),t.jsx("span",Q(I({className:C("react-share__ShareCount",r)},c),{children:!l&amp;&amp;h!==void 0&amp;&amp;s(h)}))}function A(e){const n=s=&gt;t.jsx(nn,I({getCount:e},s));return n.displayName=`ShareCount(${e.name})`,n}function sn(e,n){const s=`https://graph.facebook.com/?id=${e}&amp;fields=og_object{engagement}`;B(s,(r,i)=&gt;{n(!r&amp;&amp;i&amp;&amp;i.og_object&amp;&amp;i.og_object.engagement?i.og_object.engagement.count:void 0)})}A(sn);function rn(e,{title:n}){return N(e,"hatena.url"),`http://b.hatena.ne.jp/add?mode=confirm&amp;url=${e}&amp;title=${n}`}S("hatena",rn,e=&gt;({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"});function on(e,n){B("https://bookmark.hatenaapis.com/count/entry"+_({url:e}),(r,i)=&gt;{n(i??void 0)})}A(on);function an(e,{title:n,description:s}){return N(e,"instapaper.url"),"http://www.instapaper.com/hello2"+_({url:e,title:n,description:s})}S("instapaper",an,e=&gt;({title:e.title,description:e.description}),{windowWidth:500,windowHeight:500,windowPosition:"windowCenter"});function ln(e,{title:n}){return N(e,"line.url"),"https://social-plugins.line.me/lineit/share"+_({url:e,text:n})}S("line",ln,e=&gt;({title:e.title}),{windowWidth:500,windowHeight:500});const cn=V({color:"#0077B5",path:"M20.4,44h5.4V26.6h-5.4V44z M23.1,18c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1 c1.7,0,3.1-1.4,3.1-3.1C26.2,19.4,24.8,18,23.1,18z M39.5,26.2c-2.6,0-4.4,1.4-5.1,2.8h-0.1v-2.4h-5.2V44h5.4v-8.6 c0-2.3,0.4-4.5,3.2-4.5c2.8,0,2.8,2.6,2.8,4.6V44H46v-9.5C46,29.8,45,26.2,39.5,26.2z"});function dn(e,{title:n,summary:s,source:r}){return N(e,"linkedin.url"),"https://linkedin.com/shareArticle"+_({url:e,mini:"true",title:n,summary:s,source:r})}const mn=S("linkedin",dn,({title:e,summary:n,source:s})=&gt;({title:e,summary:n,source:s}),{windowWidth:750,windowHeight:600});function un(e,{title:n,description:s}){return N(e,"livejournal.url"),"https://www.livejournal.com/update.bml"+_({subject:n,event:s})}S("livejournal",un,e=&gt;({title:e.title,description:e.description}),{windowWidth:660,windowHeight:460});function hn(e,{title:n,description:s,imageUrl:r}){return N(e,"mailru.url"),"https://connect.mail.ru/share"+_({url:e,title:n,description:s,image_url:r})}S("mailru",hn,e=&gt;({title:e.title,description:e.description,imageUrl:e.imageUrl}),{windowWidth:660,windowHeight:460});function fn(e,{title:n,description:s,image:r}){return N(e,"ok.url"),"https://connect.ok.ru/offer"+_({url:e,title:n,description:s,imageUrl:r})}S("ok",fn,e=&gt;({title:e.title,description:e.description,image:e.image}),{windowWidth:588,windowHeight:480,windowPosition:"screenCenter"});function pn(e,n){window.OK||(window.OK={Share:{count:function(a,c){var m,h;(h=(m=window.OK.callbacks)[a])==null||h.call(m,c)}},callbacks:[]});const s="https://connect.ok.ru/dk",r=window.OK.callbacks.length;return window.ODKL={updateCount(i,a){var c,m;const h=i===""?0:parseInt(i.replace("react-share-",""),10);(m=(c=window.OK.callbacks)[h])==null||m.call(c,a===""?void 0:parseInt(a,10))}},window.OK.callbacks.push(n),B(s+_({"st.cmd":"extLike",uid:`react-share-${r}`,ref:e}))}A(pn);function gn(e,{media:n,description:s,pinId:r}){return r?`https://pinterest.com/pin/${r}/repin/x/`:(N(e,"pinterest.url"),N(n,"pinterest.media"),"https://pinterest.com/pin/create/button/"+_({url:e,media:n,description:s}))}S("pinterest",gn,e=&gt;({media:e.media,description:e.description,pinId:e.pinId}),{windowWidth:1e3,windowHeight:730});function xn(e,n){B("https://api.pinterest.com/v1/urls/count.json"+_({url:e}),(r,i)=&gt;{n(i?i.count:void 0)})}A(xn);function wn(e,{title:n}){return N(e,"pocket.url"),"https://getpocket.com/save"+_({url:e,title:n})}S("pocket",wn,e=&gt;({title:e.title}),{windowWidth:500,windowHeight:500});const vn=V({color:"#FF5700",path:"M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.96875 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344"});function bn(e,{title:n}){return N(e,"reddit.url"),"https://www.reddit.com/web/submit"+_({url:e,title:n})}const jn=S("reddit",bn,e=&gt;({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"});function yn(e,{title:n}){return N(e,"gab.url"),"https://gab.com/compose"+_({url:e,text:n})}S("gab",yn,e=&gt;({title:e.title}),{windowWidth:660,windowHeight:640,windowPosition:"windowCenter"});function _n(e,n){const s=`https://www.reddit.com/api/info.json?limit=1&amp;url=${e}`;B(s,{param:"jsonp"},(r,i)=&gt;{n(!r&amp;&amp;i&amp;&amp;i.data&amp;&amp;i.data.children.length&gt;0&amp;&amp;i.data.children[0].data.score?i.data.children[0].data.score:void 0)})}A(_n);function kn(e,{title:n}){return N(e,"telegram.url"),"https://telegram.me/share/url"+_({url:e,text:n})}S("telegram",kn,e=&gt;({title:e.title}),{windowWidth:550,windowHeight:400});function Cn(e,{title:n}){return N(e,"threads.url"),"https://threads.net/intent/post"+_({url:e,text:n})}S("threads",Cn,e=&gt;({title:e.title}),{windowWidth:550,windowHeight:600});function Nn(e,{title:n,caption:s,tags:r,posttype:i}){return N(e,"tumblr.url"),"https://www.tumblr.com/widgets/share/tool"+_({canonicalUrl:e,title:n,caption:s,tags:r,posttype:i})}S("tumblr",Nn,e=&gt;({title:e.title,tags:(e.tags||[]).join(","),caption:e.caption,posttype:e.posttype||"link"}),{windowWidth:660,windowHeight:460});function Sn(e,n){return B("https://api.tumblr.com/v2/share/stats"+_({url:e}),(r,i)=&gt;{n(!r&amp;&amp;i&amp;&amp;i.response?i.response.note_count:void 0)})}A(Sn);function Ln(e,{title:n,via:s,hashtags:r=[],related:i=[]}){return N(e,"twitter.url"),N(Array.isArray(r),"twitter.hashtags is not an array"),N(Array.isArray(i),"twitter.related is not an array"),"https://twitter.com/intent/tweet"+_({url:e,text:n,via:s,hashtags:r.length&gt;0?r.join(","):void 0,related:i.length&gt;0?i.join(","):void 0})}const En=S("twitter",Ln,e=&gt;({hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}),{windowWidth:550,windowHeight:400});function On(e,{title:n,separator:s}){return N(e,"viber.url"),"viber://forward"+_({text:n?n+s+e:e})}S("viber",On,e=&gt;({title:e.title,separator:e.separator||" "}),{windowWidth:660,windowHeight:460});function Mn(e,{title:n,image:s,noParse:r,noVkLinks:i}){return N(e,"vk.url"),"https://vk.com/share.php"+_({url:e,title:n,image:s,noparse:r?1:0,no_vk_links:i?1:0})}S("vk",Mn,e=&gt;({title:e.title,image:e.image,noParse:e.noParse,noVkLinks:e.noVkLinks}),{windowWidth:660,windowHeight:460});function In(e,n){window.VK||(window.VK={}),window.VK.Share={count:(i,a)=&gt;{var c,m;return(m=(c=window.VK.callbacks)==null?void 0:c[i])==null?void 0:m.call(c,a)}},window.VK.callbacks=[];const s="https://vk.com/share.php",r=window.VK.callbacks.length;return window.VK.callbacks.push(n),B(s+_({act:"count",index:r,url:e}))}A(In);function Fn(e,{title:n,image:s}){return N(e,"weibo.url"),"http://service.weibo.com/share/share.php"+_({url:e,title:n,pic:s})}S("weibo",Fn,e=&gt;({title:e.title,image:e.image}),{windowWidth:660,windowHeight:550,windowPosition:"screenCenter"});const Rn=V({color:"#25D366",path:"m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,0.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915"});function Tn(){return/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)}function Pn(e,{title:n,separator:s}){return N(e,"whatsapp.url"),"https://"+(Tn()?"api":"web")+".whatsapp.com/send"+_({text:n?n+s+e:e})}const Hn=S("whatsapp",Pn,e=&gt;({title:e.title,separator:e.separator||" "}),{windowWidth:550,windowHeight:400});function Bn(e,{quote:n,hashtag:s}){return N(e,"workplace.url"),"https://work.facebook.com/sharer.php"+_({u:e,quote:n,hashtag:s})}S("workplace",Bn,e=&gt;({quote:e.quote,hashtag:e.hashtag}),{windowWidth:550,windowHeight:400});const An=V({color:"#000000",path:"M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z"}),Rs=({post:e,publication:n,isGatedContentDisabled:s,subscription:r,paywall:i})=&gt;e.hide_premium_post&amp;&amp;i?t.jsx(Ve,{subscription:r,publication:n,paywall:i}):e.contains_subscriber_break&amp;&amp;!s?t.jsx(Oe,{title:e.email_capture_title,message:e.email_capture_message,cta:e.email_capture_cta,publication:n,theme:"subscribe-gate"}):null,Dn=({children:e,show:n})=&gt;t.jsx(P,{show:n,as:d.Fragment,children:t.jsx(P.Child,{as:d.Fragment,enter:"ease-out duration-100",enterFrom:"transform translate-y-3/4 opacity-0",enterTo:"transform translate-y-0 opacity-100",leave:"ease-in duration-100",leaveFrom:"transform translate-y-0 opacity-100",leaveTo:"transform translate-y-3/4 opacity-0",children:t.jsx("div",{className:"fixed bottom-0 left-0 z-40 flex h-3/4 min-h-[475px] w-full items-end sm:items-center",children:t.jsx("div",{className:"relative mx-auto flex h-full w-full max-w-none transform items-center justify-center overflow-auto rounded-t-wt bg-gradient-to-t from-[var(--wt-background-color)] from-80% p-4 text-left align-middle transition-all md:from-70%",children:t.jsx("div",{className:"relative flex h-full w-full flex-col items-center justify-end space-y-4 pt-20",children:e})})})})}),zn=({enabled:e})=&gt;{const n=()=&gt;{let r,i,a="calc(100vh + 100px)";if(typeof document&lt;"u"){r=document.querySelector(".rendered-post")?.getBoundingClientRect(),i=window?.innerHeight,r&amp;&amp;r.bottom+window.scrollY&lt;i&amp;&amp;(a="100vh");const c=document.querySelector("body"),m=document.querySelector("html");c&amp;&amp;(window.scrollTo(0,0),c.style.height=a,c.style.overflow="hidden",c.style.userSelect="none"),m&amp;&amp;(m.style.overflow="auto")}},s=()=&gt;{const r=document.querySelector("body"),i=document.querySelector("html");r&amp;&amp;(r.style.height="",r.style.overflow="",r.style.userSelect=""),i&amp;&amp;(i.style.overflow="")};d.useEffect(()=&gt;(e?n():s(),()=&gt;{e&amp;&amp;s()}),[e])},$n=()=&gt;{const[e,n]=d.useState(0),[s,r]=d.useState(0),i=()=&gt;{n(window.scrollY/(document.body.scrollHeight-window.innerHeight)),r(window.scrollY)};return d.useEffect(()=&gt;(i(),window.addEventListener("scroll",i),()=&gt;window.removeEventListener("scroll",i)),[]),{percentageScrolled:e,windowScrollY:s}},Wn=768,Vn=({title:e,message:n,cta:s,publication:r,isOpen:i,onClose:a})=&gt;{const{signupWidgetConfigs:c}=He("root"),{t:m}=E(),{handleOpenModal:h}=Ee(),o=()=&gt;{(window?.innerWidth||document?.documentElement?.clientWidth||document?.body?.clientWidth)&gt;=Wn&amp;&amp;a()};return t.jsx(P,{appear:!0,show:i,as:d.Fragment,children:t.jsxs(ge,{as:"div",className:"relative z-20",onClose:o,children:[t.jsx(P.Child,{as:d.Fragment,enter:"ease-out duration-50",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-50",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:t.jsx("div",{className:"fixed inset-0 bg-black/60"})}),t.jsx("div",{className:"fixed inset-4 overflow-y-auto",children:t.jsx("div",{className:"flex min-h-full items-center justify-center text-center",children:t.jsx(P.Child,{as:d.Fragment,enter:"ease-out duration-50",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-50",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:t.jsxs(ge.Panel,{className:"relative -mt-32 w-full max-w-lg transform overflow-hidden rounded-lg bg-white p-3 text-center align-middle shadow-xl transition-all md:p-6",children:[t.jsx("button",{"aria-label":"Close",className:"absolute right-3 top-3 sm:right-6 sm:top-6",onClick:a,children:t.jsx(Xe,{className:"h-7 w-7 stroke-1 text-gray-500 transition-all hover:text-gray-700"})}),t.jsx("div",{className:"m-auto h-12 w-12 overflow-hidden rounded-wt",children:t.jsx(Je,{src:r.logo.thumb.url,alt:r.name,maxWidth:48,width:48,height:48,aspectRatio:"square"})}),t.jsx(te,{as:"h3",weight:"bold",fontFamilyv2:r.web_template.web_theme.font_header,className:"tracking-medium mt-6 pb-3 text-2xl font-bold leading-tight text-gray-900",children:e}),t.jsx(te,{as:"h5",fontFamilyv2:r.web_template.web_theme.font_header,className:"mb-2 pb-10 text-sm font-light leading-tight tracking-wider text-gray-700",children:n}),t.jsx(Ge,{signupStyles:{...c,buttonText:s,fontSize:"sm"},type:Ye.POPUP}),t.jsx("div",{className:"-ml-6 mt-2 w-[calc(100%+3rem)] border-t border-t-gray-200 pb-1 pt-6",children:t.jsxs(te,{as:"span",fontFamilyv2:r.web_template.web_theme.font_header,className:"mb-4 pb-10 text-sm font-light leading-tight tracking-wider text-gray-700",children:[m("login.already_a_subscriber"),t.jsxs("button",{type:"button",onClick:()=&gt;{h("login"),a()},className:"ml-1",children:[t.jsx("span",{className:"text-wt-primary underline underline-offset-1",children:m("shared.cta.sign_in")}),"."]})]})})]})})})})]})})},Ne=50,qn=40,Ts=({post:e,publication:n,isPopupDisabled:s,isGatedContentDisabled:r})=&gt;{const{percentageScrolled:i,windowScrollY:a}=$n()||{percentageScrolled:0,windowScrollY:0},c=Number((i*100).toFixed(1)),m=Ze(),{setCookie:h}=J(),[o,l]=d.useState(!1),[u,f]=d.useState(!1),[p,x]=d.useState(!1),b=d.useMemo(()=&gt;e.enforce_gated_content&amp;&amp;!e.contains_subscriber_break&amp;&amp;!r&amp;&amp;!s&amp;&amp;!m,[e,r,s,m]);zn({enabled:p&amp;&amp;b});const g=()=&gt;{let k,w;return typeof document&lt;"u"&amp;&amp;(k=document.querySelector(".rendered-post")?.getBoundingClientRect(),w=window?.innerHeight),{contentBounds:k,windowHeight:w}},y=e.enable_popup_on_scroll&amp;&amp;c&gt;=qn&amp;&amp;!r&amp;&amp;!s&amp;&amp;!m,j=p&amp;&amp;b&amp;&amp;a&gt;=Ne;d.useEffect(()=&gt;{x(!0)},[]),d.useEffect(()=&gt;{s&amp;&amp;o&amp;&amp;l(!1)},[s,o]),d.useEffect(()=&gt;{r&amp;&amp;u&amp;&amp;f(!1)},[r,u]),d.useEffect(()=&gt;{y&amp;&amp;l(!0)},[y]),d.useEffect(()=&gt;{f(j)},[a,j]),d.useEffect(()=&gt;{if(!p||!b)return;const{contentBounds:k,windowHeight:w}=g();(k&amp;&amp;w&amp;&amp;k.height+a&lt;w-Ne||j)&amp;&amp;f(!0)},[p,b,j,a]);const v=()=&gt;{h({name:"popup_closed",value:"true",days:4}),l(!1)};return t.jsxs(t.Fragment,{children:[!o&amp;&amp;!u&amp;&amp;t.jsx("div",{className:"sticky top-0 z-50 w-full",children:t.jsx(Ke,{variant:"post",currentProgress:c})}),y&amp;&amp;t.jsx(Vn,{isOpen:o,onClose:v,publication:n,title:e.email_capture_title,message:e.email_capture_message,cta:e.email_capture_cta}),t.jsx("div",{className:"fixed bottom-0 left-0 z-50 px-4",children:t.jsx(Dn,{show:u,children:t.jsx(Oe,{title:e.email_capture_title,message:e.email_capture_message,cta:e.email_capture_cta,publication:n,theme:"subscribe-gate-bottom"})})})]})},Un=({className:e})=&gt;t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:C(e),children:t.jsx("path",{d:"m11.645 20.91-.007-.003-.022-.012a15.247 15.247 0 0 1-.383-.218 25.18 25.18 0 0 1-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0 1 12 5.052 5.5 5.5 0 0 1 16.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 0 1-4.244 3.17 15.247 15.247 0 0 1-.383.219l-.022.012-.007.004-.003.001a.752.752 0 0 1-.704 0l-.003-.001Z"})}),Se=({className:e})=&gt;t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:C(e),children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z"})}),ae=({children:e,count:n=0,className:s})=&gt;t.jsxs("div",{className:C(s,"flex items-center"),children:[e,t.jsx("span",{className:C(n===0?"hidden text-transparent":"text-[#6B7280] text-wt-text-on-background","text-sm font-medium group-hover:opacity-100"),children:n})]}),Kn=(e,n,s)=&gt;e.length===0||!n&amp;&amp;!s?!1:e.filter(r=&gt;r.liked===!0).some(r=&gt;r.user_id===n?.id||r.subscription_id===s?.id),Zn=({post:e,subscription:n,admin:s,className:r,likes:i,fetched:a})=&gt;{const{t:c}=E(),[m,h]=d.useState(!1),[o,l]=d.useState(0),[u,f]=d.useState(!1),[p,x]=d.useState(!1),b=H(),g=!!s,j=!g&amp;&amp;!!!n;d.useEffect(()=&gt;{a&amp;&amp;!u&amp;&amp;(h(Kn(i,s,n)),l(i.filter(w=&gt;w.liked===!0).length),f(!0))},[a,u]);const v=()=&gt;{m?(h(!1),l(o-1)):(h(!0),l(o+1))},k=w=&gt;{w.preventDefault();const O=new FormData(w.currentTarget);g?b.submit(O,{method:"post",action:"/admins/post_like"}):b.submit(O,{method:"post",action:"/post_like"}),v()};return j?t.jsxs(t.Fragment,{children:[t.jsx("button",{className:"group",type:"button",onClick:()=&gt;x(!0),children:t.jsx(ae,{count:o,className:"text-wt-text-on-background opacity-50 group-hover:opacity-100",children:t.jsx("div",{className:"rounded-full p-1 hover:bg-[#f3f4f6]",children:t.jsx(Se,{className:C(r,"h-4 w-4 stroke-1")})})})}),p&amp;&amp;t.jsx($,{title:c("gated.login_or_subscribe"),description:"",isOpen:p,onClose:()=&gt;x(!1),children:t.jsx("div",{children:t.jsx(ue,{})})})]}):t.jsxs(b.Form,{method:"post",onSubmit:k,action:g?"/admins/post_like":"/post_like",className:"group relative top-[3px]",children:[t.jsx("input",{type:"hidden",name:"post_id",value:e.id}),t.jsx("input",{type:"hidden",name:"subscription_id",value:n?.id}),t.jsx("input",{type:"hidden",name:"user_id",value:s?.id}),t.jsx("button",{type:"submit",children:m?t.jsx(ae,{count:o,children:t.jsx("div",{className:"rounded-full p-1 hover:bg-[#f3f4f6]",children:t.jsx(Un,{className:C(r,"fill-wt-primary text-wt-primary","h-4 w-4 stroke-1")})})}):t.jsx(ae,{count:o,className:"text-wt-text-on-background opacity-50 group-hover:opacity-100",children:t.jsx("div",{className:"rounded-full p-1 hover:bg-[#f3f4f6]",children:t.jsx(Se,{className:C(r,"h-4 w-4 stroke-1")})})})})]})},Gn=e=&gt;e?e.filter(n=&gt;!!(n?.subscription_id||n?.user_id)):[],Yn=e=&gt;{const n=H(),[s,r]=d.useState(!1);return d.useEffect(()=&gt;{e&amp;&amp;!s&amp;&amp;(r(!0),n.load(`/post_insights?post_id=${e}`))},[e]),n.data?{...n.data?.[0],likes:Gn(n.data?.[0]?.likes),fetched:!0}:{fetched:!1,likes:[],comment_count:0}},Jn=({delay:e=200,enabled:n=!0})=&gt;{const[s,r]=d.useState(!1);return d.useEffect(()=&gt;{if(!n)return;let i;const a=()=&gt;{r(!0),clearTimeout(i),i=setTimeout(()=&gt;{r(!1)},e)};return window.addEventListener("scroll",a),()=&gt;{window.removeEventListener("scroll",a),clearTimeout(i)}},[n,e]),{isScrolling:s}},Xn=({className:e,fill:n})=&gt;t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:C(e),fill:n,children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"})}),Qn=({title:e,url:n,iconClassName:s,description:r=""})=&gt;t.jsxs(L,{as:"div",className:"relative z-20 inline-block text-left md:z-0",children:[t.jsx(L.Button,{className:"relative right-[2px] top-[1.5px] outline-none md:right-[0px]",children:t.jsx("div",{className:"flex items-center rounded-full p-1 hover:bg-[#f3f4f6]",children:t.jsx(Xn,{className:C(s,"h-7 w-7 stroke-1 text-gray-400")})})}),t.jsx(P,{as:d.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:t.jsx(L.Items,{className:C("absolute bottom-10 left-auto right-0 z-40 origin-top-right divide-y divide-gray-100 rounded-md bg-white p-4 pb-4 pr-2 shadow-lg ring-1 ring-black/5 focus:outline-none md:bottom-auto md:left-4 md:right-auto"),children:t.jsxs("div",{className:"flex w-20 flex-wrap gap-2",children:[t.jsx(Yt,{subject:e,body:r,url:n,children:t.jsx(Zt,{round:!0,size:30,className:"rounded-full bg-[#9ca3af] hover:bg-gray-800",bgStyle:{fill:"transparent"}})}),t.jsx(L.Item,{children:t.jsx(En,{title:e,url:n,children:t.jsx(An,{round:!0,size:30,className:"rounded-full bg-[#9ca3af] hover:bg-gray-800",bgStyle:{fill:"transparent"}})})}),t.jsx(L.Item,{children:t.jsx(mn,{title:e,url:n,children:t.jsx(cn,{round:!0,size:30,className:"rounded-full bg-[#9ca3af] hover:bg-gray-800",bgStyle:{fill:"transparent"}})})}),t.jsx(L.Item,{children:t.jsx(en,{title:e,url:n,children:t.jsx(Jt,{round:!0,size:30,className:"rounded-full bg-[#9ca3af] hover:bg-gray-800",bgStyle:{fill:"transparent"}})})}),t.jsx(L.Item,{children:t.jsx(jn,{title:e,url:n,children:t.jsx(vn,{round:!0,size:30,className:"rounded-full bg-[#9ca3af] hover:bg-gray-800",bgStyle:{fill:"transparent"}})})}),t.jsx(L.Item,{children:t.jsx(Hn,{title:e,url:n,children:t.jsx(Rn,{round:!0,size:30,className:"rounded-full bg-[#9ca3af] hover:bg-gray-800",bgStyle:{fill:"transparent"}})})})]})})})]}),es=({count:e})=&gt;{const n=me(),s=de(),r=()=&gt;{n(`${s.pathname}#comments`)};return t.jsxs("button",{type:"button",onClick:r,className:"group relative top-[1px] flex items-center outline-none md:pt-0",children:[t.jsx("div",{className:"rounded-full p-1 hover:bg-[#f3f4f6]",children:t.jsx($e,{className:C("h-7 w-7 stroke-1 text-wt-text-on-background opacity-50 group-hover:opacity-100")})}),t.jsx("span",{className:C(e===0?"hidden":"text-[#6B7280]","relative -top-[1px] text-sm font-medium group-hover:opacity-100 md:top-0"),children:e})]})},ts=({subscription:e,post:n,admin:s,isGatedContentDisabled:r})=&gt;{const{webTheme:i}=et(),[a,c]=d.useState(""),m=Yn(n.id),h=tt(),{isScrolling:o}=Jn({delay:300,enabled:h}),l=o&amp;&amp;h,u=i.navbar_template==="template-5"||i.navbar_template==="template-6";return d.useEffect(()=&gt;{c(window.location.href)},[]),t.jsxs("div",{className:C("fixed bottom-0 left-0 top-auto z-20 w-full rounded bg-wt-background shadow-xl transition-all duration-300 ease-in-out md:bottom-auto md:z-auto md:!w-fit md:border-none md:shadow-none",l?"h-0 overflow-hidden opacity-0":"opacity-100",u?"md:top-36":"md:top-20"),children:[t.jsx("div",{className:"absolute left-0 top-0 w-full border border-t border-wt-text-on-background bg-wt-background opacity-10 md:hidden"}),t.jsx("div",{className:"mx-auto w-full max-w-6xl px-0 lg:px-4",children:t.jsx("div",{className:C("flex flex-col gap-8 md:h-40"),children:t.jsx("div",{className:"",children:t.jsxs("div",{className:"grid grid-cols-3 p-4 px-8 sm:p-2 sm:px-2 md:grid-cols-1 md:gap-2",children:[t.jsx("div",{className:C("relative flex flex-col justify-center md:left-1"),children:t.jsx(qe,{})}),t.jsxs("div",{className:"flex items-center justify-center gap-3 md:flex-col md:items-start md:gap-1",children:[t.jsx(Zn,{className:"h-7 w-7 outline-none",post:n,likes:m.likes,fetched:m.fetched,admin:s,subscription:e}),n.comments_enabled&amp;&amp;t.jsx(es,{count:m.comment_count}),t.jsx(Qn,{title:n.web_title,description:n.web_subtitle,url:a,iconClassName:"text-wt-text-on-background opacity-50 hover:opacity-100"})]})]})})})})]})},Ps=({html:e,isGatedContentDisabled:n,subscription:s,admin:r,post:i,publication:a})=&gt;{const c=[{text:a?.name,href:"../"},{text:"Posts",href:void 0},{text:i.web_title,href:i.slug}],m=a.web_template.post_padding;return t.jsx(t.Fragment,{children:t.jsxs("div",{className:"relative mx-auto max-w-6xl px-4",children:[t.jsx(ts,{post:i,subscription:s,admin:r,isGatedContentDisabled:n}),t.jsx("div",{className:"",children:t.jsxs("div",{className:"mx-auto flex max-w-2xl flex-col pb-4",children:[a.render_breadcrumbs&amp;&amp;t.jsx(he,{postPadding:m,classNames:"mt-8",children:t.jsx(Qe,{breadcrumbs:c})}),t.jsx(Ue,{html:e,slug:i.slug,update:n})]})})]})})},Hs=({publication:e,recommendedPosts:n})=&gt;{const{t:s}=E(),r=me(),i=e.web_template.post_padding;return t.jsxs(he,{postPadding:i,classNames:"mx-auto w-full max-w-2xl pb-8",children:[t.jsx(F,{as:"h4",size:"xl",theme:"content",weight:"bold",className:"pb-6 leading-none sm:pb-2",children:s("posts.keep_reading")}),t.jsxs("div",{className:"space-y-6",children:[t.jsx("div",{className:"flex flex-col",children:n.map(a=&gt;t.jsx(nt,{publication:e,post:a,titleSize:"md",descriptionSize:"sm",showImage:!0,orientation:"horizontal"},a.id))}),t.jsxs("button",{type:"button",className:"hover flex items-center text-sm text-wt-primary transition-all hover:font-medium",onClick:()=&gt;r("/"),children:[t.jsx("span",{children:s("shared.cta.view_more")}),t.jsx(st,{className:"ml-0.5 h-3 w-3 pt-0.5"})]})]})]})},Bs=({visitToken:e,post:n,pageViews:s,setCookie:r,cookiesSet:i})=&gt;{const a=s?.includes(n?.id),c=i&amp;&amp;e&amp;&amp;n?.id&amp;&amp;!a,m="page_view";d.useEffect(()=&gt;{if(c){const h=document.referrer,o=new FormData;o.append("postId",n.id),o.append("webTitle",n.web_title),o.append("slug",n.slug),o.append("landingPage",window.location.href),o.append("referrer",h),o.append("visitToken",e);const l=s?`${s},${n.id}`:n.id;fetch("/page_view",{method:"post",body:o}).catch(f=&gt;{console.error(f)});const u=6e5/(24*60*60*1e3);r({name:m,value:l,days:u})}},[c])},As=(e,n=!1)=&gt;{const s=H();return d.useEffect(()=&gt;{e&amp;&amp;!n&amp;&amp;s.load(`/recommended_posts?post_id=${e}`)},[e]),s?.data?.recommendedPosts||[]},Ds=e=&gt;[e.facebook_url,e.twitter_url,e.instagram_url,e.linkedin_url,e.tiktok_url,e.discord_url,e.threads_url].filter(s=&gt;!!s);export{Fs as C,Rs as G,Ts as O,Ps as P,Hs as R,As as a,he as b,Ds as g,Bs as u};
//# sourceMappingURL=index-ffa8lRpD.js.map

//# debugId=adde883b-aba1-5ce2-a873-4f4377a95ee6
</pre></body></html>