(globalThis.webpackChunknewspack=globalThis.webpackChunknewspack||[]).push([[4223],{35317(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(56427),o=n(86087),a=n(27723);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var i=n(35583);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var s=n(76099);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var c=n(87143);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var l=n(79728);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var u=n(34426);var d=n(6315),p=n(30395),f=n.n(p),h=n(10790);const g=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?({badge:e,badgeLevel:t,className:n,checkbox:p,children:g,collapse:v,disabled:m,title:y,heading:w=2,description:b,handoff:_,handoffUrl:x,bannerText:k,bannerButtonText:j,editLink:S,href:C,notification:A,notificationLevel:E,notificationHTML:P,actionContent:N,actionText:O,secondaryActionText:T,secondaryDestructive:I,id:M,image:R,imageLink:L,indent:z,isSmall:D,isMedium:$,simple:F,onClick:H,onSecondaryActionClick:V,isWaiting:B,titleLink:U,toggleChecked:q=!1,toggleOnChange:W,togglePosition:G="leading",hasGreyHeader:K,hasWhiteHeader:Z,noBorder:J,isPending:Q,expandable:Y=!1,isExpanded:X,isButtonEnabled:ee=!1,draggable:te=!1,dragIndex:ne,dragWrapperRef:re,onDragCallback:oe})=>{const[ae,ie]=(0,o.useState)(Boolean(X)),[se,ce]=(0,o.useState)(!1),[le,ue]=(0,o.useState)(null),[de,pe]=(0,o.useState)(null);(0,o.useEffect)(()=>{"boolean"==typeof X&&ie(X)},[X]),(0,o.useEffect)(()=>{re&&!de&&pe(re)},[re?.current]),(0,o.useEffect)(()=>{v&&ae&&ie(!1)},[v]);const fe=A||g,he=f()("newspack-action-card",F&&"newspack-card--is-clickable",K&&"newspack-card--has-grey-header",Z&&"newspack-card--has-white-header",fe&&"newspack-card--has-children",z&&"newspack-card--indent",D&&"is-small",$&&"is-medium",p&&"has-checkbox",Y&&"is-expandable",te&&"is-draggable",N&&"has-action-content",n),ge=!W||U||m?{}:{onClick:()=>W(!q),tabIndex:"0"},ve="trailing"===G?"is-toggle-trailing":"is-toggle-leading",me=C&&0!==C.indexOf("http"),ye=T&&V,we=!Array.isArray(e)&&e?[e]:e,be=`h${w}`,_e=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"newspack-action-card__region newspack-action-card__region-top",children:[W&&(0,h.jsx)(r.ToggleControl,{checked:q,onChange:W,disabled:m,className:ve}),R&&!W&&(0,h.jsx)("div",{className:"newspack-action-card__region newspack-action-card__region-left",children:(0,h.jsx)("a",{href:L,children:(0,h.jsx)("div",{className:"newspack-action-card__image",style:(xe=R,xe?{backgroundImage:`url(${xe})`}:{})})})}),p&&!W&&(0,h.jsx)("div",{className:"newspack-action-card__region newspack-action-card__region-left",children:(0,h.jsx)("span",{className:f()("newspack-checkbox-icon","is-primary","checked"===p&&"newspack-checkbox-icon--checked",Q&&"newspack-checkbox-icon--pending"),children:"checked"===p&&(0,h.jsx)(i.A,{icon:s.A})})}),(0,h.jsx)("div",{className:"newspack-action-card__region newspack-action-card__region-center",children:(0,h.jsxs)(d.xA,{columns:1,gutter:8,noMargin:!0,children:[(0,h.jsxs)(be,{children:[(0,h.jsxs)("span",{className:"newspack-action-card__title",...ge,children:[U&&(0,h.jsx)("a",{href:U,children:y}),!U&&Y&&(0,h.jsx)(d.$n,{isLink:!0,onClick:()=>ie(!ae),children:y}),!U&&!Y&&y]}),we?.length&&we.map((e,n)=>(0,h.jsx)("span",{className:`newspack-action-card__badge newspack-action-card__badge-level-${t}`,children:e},`badge-${n}`))]}),b&&(0,h.jsxs)("p",{children:["string"==typeof b&&b,"function"==typeof b&&b()]})]})}),!Y&&(O||ye||N)&&(0,h.jsxs)("div",{className:"newspack-action-card__region newspack-action-card__region-right",children:[N&&N,O&&(_?(0,h.jsx)(d.Pj,{plugin:_,editLink:S,bannerText:k,bannerButtonText:j,compact:!0,isLink:!0,children:O}):x?(0,h.jsx)(d.Pj,{url:x,bannerText:k,bannerButtonText:j,compact:!0,isLink:!0,children:O}):H||me?(0,h.jsx)(d.$n,{disabled:m&&!ee,isLink:!0,href:C,onClick:H,className:"newspack-action-card__primary_button",children:O}):C?(0,h.jsx)(r.ExternalLink,{href:C,className:"newspack-action-card__primary_button",children:O}):(0,h.jsxs)("div",{className:"newspack-action-card__container",children:[O,B&&(0,h.jsx)(d.E$,{isRight:!0})]})),ye&&(0,h.jsx)(d.$n,{isLink:!0,onClick:V,className:"newspack-action-card__secondary_button",isDestructive:I,children:T})]}),Y&&(0,h.jsx)(d.$n,{onClick:()=>ie(!ae),children:(0,h.jsx)(i.A,{icon:ae?l.A:c.A,height:24,width:24})})]}),A&&(0,h.jsxs)("div",{className:"newspack-action-card__notification newspack-action-card__region-children",children:["error"===E&&(0,h.jsx)(d.$T,{noticeText:A,isError:!0,rawHTML:P}),"info"===E&&(0,h.jsx)(d.$T,{noticeText:A,rawHTML:P}),"success"===E&&(0,h.jsx)(d.$T,{noticeText:A,isSuccess:!0,rawHTML:P}),"warning"===E&&(0,h.jsx)(d.$T,{noticeText:A,isWarning:!0,rawHTML:P})]}),g&&(Y&&ae||!Y)?(0,h.jsx)("div",{className:"newspack-action-card__region-children",children:g}):null]});var xe;if(te&&de?.current&&"number"==typeof ne&&oe&&M){let e=de.current.getBoundingClientRect(),t=Array.prototype.slice.call(de.current.querySelectorAll(".newspack-action-card__draggable-wrapper"));const n=0===ne,o=ne===t.length-1,s=()=>{t=Array.prototype.slice.call(de.current.querySelectorAll(".newspack-action-card__draggable-wrapper")),e=de.current.getBoundingClientRect(),se||(ue(ne),ce(!0))},p=()=>{null!==le&&le!==ne&&oe(le),ue(null),ce(!1)},f=n=>{const r=n.pageY<=e.top+window.scrollY,o=n.pageY>=e.bottom+window.scrollY,a=n.target.closest(".newspack-action-card__draggable-wrapper");(r||o||a)&&(ue(t.indexOf(a)),(0>le||le===ne+1)&&ue(ne),r&&ue(0),o&&ue(t.length))};return(0,h.jsx)("div",{className:"newspack-action-card__draggable-wrapper"+(se?" is-dragging":""),id:`draggable-card-${M}`,children:(0,h.jsx)(r.Draggable,{elementId:`draggable-card-${M}`,transferData:{},onDragStart:s,onDragEnd:p,onDragOver:f,children:({onDraggableStart:e,onDraggableEnd:t})=>(0,h.jsxs)(d.Zp,{className:he,onClick:F&&H,id:M??null,noBorder:J,children:[(0,h.jsxs)("div",{className:"newspack-action-card__draggable-controls",children:[(0,h.jsx)("div",{className:"drag-handle",draggable:!0,onDragStart:e,onDragEnd:t,children:(0,h.jsx)(i.A,{icon:u.A})}),(0,h.jsxs)("div",{className:"movers",children:[(0,h.jsx)(d.$n,{icon:l.A,onClick:()=>oe(ne-1),disabled:n,label:(0,a.__)("Move one position up","newspack-plugin")}),(0,h.jsx)(d.$n,{icon:c.A,onClick:()=>oe(ne+1),disabled:o,label:(0,a.__)("Move one position down","newspack-plugin")})]})]}),_e]})})})}return(0,h.jsx)(d.Zp,{className:he,onClick:F&&H,id:M??null,noBorder:J,children:_e})}:null},95014(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(20671),o=n.n(r),a=n(86087),i=n(56427),s=n(10790);class c extends a.Component{constructor(e){super(e),this.state={suggestions:[],validValues:{},loading:this.isFetchingInfoOnLoad()},this.debouncedUpdateSuggestions=o()(this.updateSuggestions,500)}isFetchingInfoOnLoad=()=>{const{tokens:e,fetchSavedInfo:t}=this.props;return Boolean(e.length&&t)};componentDidMount(){if(this.isFetchingInfoOnLoad()){const{tokens:e,fetchSavedInfo:t}=this.props;t(e).then(e=>{const{validValues:t}=this.state;e.forEach(e=>{t[e.value]=e.label}),this.setState({validValues:t,loading:!1})})}}componentDidUpdate(e){const{tokens:t,fetchSavedInfo:n}=this.props;t!==e.tokens&&this.isFetchingInfoOnLoad()&&n(t).then(e=>{const{validValues:t}=this.state;e.forEach(e=>{t[e.value]=e.label}),this.setState({validValues:t,loading:!1})})}componentWillUnmount(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}getLabelsForValues(e){const{validValues:t}=this.state;return e.reduce((e,n)=>n?n.label?[...e,n.label]:t[n]?[...e,t[n]]:e:e,[])}getValuesForLabels(e){const{returnFullObjects:t}=this.props,{validValues:n}=this.state;return t?e.reduce((e,t)=>(Object.keys(n).forEach(r=>{if(n[r]===t){const n=/^\d+$/.test(r.toString())?parseInt(r):r.toString();e.push({value:n,label:t})}}),e),[]):e.map(e=>Object.keys(n).map(e=>/^\d+$/.test(e.toString())?parseInt(e):e.toString()).find(t=>n[t]===e))}updateSuggestions(e){const{fetchSuggestions:t}=this.props;t&&this.setState({loading:!0},()=>{const n=t(e);n.then(e=>{if(this.suggestionsRequest!==n)return;const{validValues:t}=this.state,r=[...e];e.forEach(e=>{t[e.value]=e.label}),this.setState({suggestions:r,validValues:t,loading:!1})}).catch(()=>{this.suggestionsRequest===n&&this.setState({loading:!1})}),this.suggestionsRequest=n})}handleOnChange(e){const{onChange:t}=this.props;t(this.getValuesForLabels(e))}getTokens(){const{tokens:e}=this.props;return this.getLabelsForValues(e)}render(){const{help:e,label:t="",placeholder:n="",maxLength:r,style:o,__next40pxDefaultSize:a}=this.props,{suggestions:c,loading:l}=this.state,u=["newspack-autocomplete-tokenfield__input-container"];return t&&u.push("has-label"),(0,s.jsxs)("div",{className:"newspack-autocomplete-tokenfield",style:o,children:[(0,s.jsxs)("div",{className:u.join(" "),children:[(0,s.jsx)(i.FormTokenField,{value:this.getTokens(),suggestions:c.map(e=>e.label),onChange:e=>this.handleOnChange(e),onInputChange:e=>this.debouncedUpdateSuggestions(e),label:t,maxLength:r,placeholder:n,__next40pxDefaultSize:a}),l&&(0,s.jsx)(i.Spinner,{})]}),e&&(0,s.jsx)("p",{className:"newspack-autocomplete-tokenfield__help",children:e})]})}}const l=/^(2001|2617|9406)$/.test(n.j)?c:null},2796(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(56427),o=n(86087),a=n(66647),i=n(10790);const{useHistory:s}=a.A,c=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?({href:e,loading:t,onClick:n,...a})=>{const c=s(),[l,u]=(0,o.useState)(!1);return e&&n?a.onClick=async()=>{u(!0),await n(),u(!1),c.push((e||"").replace("#",""))}:(a.href=e,a.onClick=n),l&&(a.disabled=!0),(0,i.jsx)(r.Button,{loading:!!t||void 0,...a})}:null},75301(e,t,n){"use strict";n.d(t,{J:()=>r});const r="newspack_wizard_handoff_message"},6315(e,t,n){"use strict";n.d(t,{nD:()=>u,vr:()=>l,Lz:()=>d.A,wg:()=>p.A,fF:()=>_,IW:()=>y,Ex:()=>x,Kk:()=>P,$n:()=>A.A,Zp:()=>D,bC:()=>$,jz:()=>V,y2:()=>B,t9:()=>U,vn:()=>ne,sk:()=>Se,Jv:()=>Ae,Vw:()=>Pe,cG:()=>c,wi:()=>Te,Q5:()=>Oe,Du:()=>qe,xA:()=>We,Pj:()=>Le,uC:()=>De,BR:()=>Be,H7:()=>He,Yb:()=>J,aF:()=>Ke,qV:()=>Je,$T:()=>tt,YW:()=>ot,I2:()=>it,x5:()=>pt,g:()=>ht,AM:()=>vt,z2:()=>yt,bh:()=>bt,Ix:()=>se.A,X3:()=>xt,Yq:()=>Et,wB:()=>Pt,_y:()=>Ot,Fx:()=>It,mi:()=>Rt,pe:()=>Kt,xt:()=>Zt,E$:()=>Qt,LQ:()=>Yt.A,sQ:()=>Xt.A,ar:()=>Z,JL:()=>_e,G_:()=>be,ri:()=>vn,Wp:()=>xe.A,Aq:()=>nn,c_:()=>hn});var r=n(56427),o=n(86087),a=n(30395),i=n.n(a),s=n(10790);const c=/^(2001|6930|7841|9406)$/.test(n.j)?({alignment:e="none",className:t,marginBottom:n=64,marginTop:r=64,variant:o="default",...a})=>{const c=i()("newspack-divider",t,e&&`newspack-divider--alignment-${e}`,o&&`newspack-divider--variant-${o}`),l={"--divider-margin-bottom":"number"==typeof n?`${n}px`:n,"--divider-margin-top":"number"==typeof r?`${r}px`:r};return(0,s.jsx)("hr",{className:c,style:l,...a})}:null,l=({children:e,className:t,title:n,defaultOpen:o=!1})=>(0,s.jsx)(r.PanelBody,{className:t,title:n,initialOpen:o,children:e}),u=2001==n.j?({children:e,className:t,hideSingleTitle:n=!1,spacing:a=6})=>{const l=o.Children.toArray(e);return n&&1===l.length?(0,s.jsx)("div",{className:i()("newspack-accordion",t),children:(0,o.cloneElement)(l[0],{defaultOpen:!0,title:void 0})}):(0,s.jsx)(r.__experimentalVStack,{className:i()("newspack-accordion",t),spacing:a,children:l.map((e,t)=>(0,s.jsxs)(o.Fragment,{children:[e,t{const[k,j]=(0,o.useState)(!0),[S,C]=(0,o.useState)(!1),[A,E]=(0,o.useState)([]),[P,N]=(0,o.useState)(0),[O,T]=(0,o.useState)(f[0].slug),I=["newspack-autocomplete-with-suggestions"];a&&I.push("hide-help"),(0,o.useEffect)(()=>{d&&d(O),j(!0),R(null,0,O).then(e=>{0j(!1))},[O]),(0,o.useEffect)(()=>{S&&R(null,A.length,O).then(e=>{0C(!1))},[S]);const M=e||(async(e=[],t=null)=>{const n=t||O,r="post"===n||"page"===n?n+"s":n;return(await h()({path:(0,m.addQueryArgs)("/wp/v2/"+r,{per_page:100,include:e.join(","),_fields:"id,title"})})).map(e=>({value:parseInt(e.id),label:(0,g.decodeEntities)(e.title)||(0,v.__)("(no title)","newspack-plugin")}))}),R=t||(async(e=null,t=0,n=null)=>{const r=n||O,o="post"===r||"page"===r?r+"s":r,a=await h()({parse:!1,path:(0,m.addQueryArgs)("/wp/v2/"+o,{search:e,offset:t,per_page:x,_fields:"id,title"})}),i=parseInt(a.headers.get("x-wp-total")||0),s=await a.json();return N(i),s.reduce((e,t)=>(e.push({value:parseInt(t.id),label:(0,g.decodeEntities)(t?.title.rendered)||(0,v.__)("(no title)","newspack-plugin")}),e),[])}),L=e=>{if(!l)return u(e);const t=_?[...b,_]:[...b];e.forEach(e=>{const n=t.findIndex(t=>parseInt(t.value)===parseInt(e.value));-1({...e,postType:O})))},z=e=>{if(l){const t=!!(_?[...b,_]:[...b]).find(t=>parseInt(t.value)===parseInt(e.value)&&t.label===e.label);return(0,s.jsx)(r.CheckboxControl,{checked:t,onChange:()=>L([e]),label:e.label},e.value)}return(0,s.jsx)(r.Button,{isLink:!0,onClick:()=>L([e]),children:e.label},e.value)};return(0,s.jsxs)("div",{className:I.join(" "),children:[0{const e=_?[...b,_]:b,t=l?(0,v.sprintf)( // Translators: %1: the length of selections. %2: the selection leabel. // Translators: %1: the length of selections. %2: the selection leabel. (0,v.__)("%1$s %2$s selected","newspack-plugin"),e.length,e.length>1?w:y):(0,v.sprintf)( // Translators: %s: The label for the selection. // Translators: %s: The label for the selection. (0,v.__)("Selected %s","newspack-plugin"),y);return(0,s.jsxs)("div",{className:"newspack-autocomplete-with-suggestions__selected-items",children:[(0,s.jsxs)("p",{className:"newspack-autocomplete-with-suggestions__label",children:[t,1u([]),isLink:!0,isDestructive:!0,children:(0,v.__)("Clear all","newspack-plugin")})]}),e.map(t=>(0,s.jsx)(r.Button,{className:"newspack-autocomplete-with-suggestions__selected-item-button",isTertiary:!0,onClick:()=>u(e.filter(e=>e.value!==t.value)),children:t.label},t.value))]})})(),1({label:e.label,value:e.slug})),onChange:e=>T(e)}),(0,s.jsx)(p.A,{tokens:[],onChange:L,fetchSuggestions:async e=>R(e,0,O),fetchSavedInfo:e=>M(e),label:i,loading:k,help:!a&&n,returnFullObjects:!0}),(()=>{if(0===A.length)return null;const e=l?"newspack-autocomplete-with-suggestions__search-suggestions-multiselect":"newspack-autocomplete-with-suggestions__search-suggestions";return(0,s.jsxs)(s.Fragment,{children:[!a&&(0,s.jsx)("p",{className:"newspack-autocomplete-with-suggestions__label",children:/* Translators: %s: the name of a post type. */ /* Translators: %s: the name of a post type. */(0,v.sprintf)((0,v.__)("Or, select a recent %s:","newspack-plugin"),y)}),(0,s.jsxs)("div",{className:e,children:[A.map(z),A.length<(c||P)&&(0,s.jsx)(r.Button,{disabled:S,isSecondary:!0,onClick:()=>C(!0),children:S?(0,v.__)("Loading…","newspack-plugin"):(0,v.__)("Load more","newspack-plugin")})]})]})})()]})}:null;var w=n(20671),b=n.n(w);const _=9406==n.j?({fetchSuggestions:e=!1,help:t=(0,v.__)("Begin typing search term, click autocomplete result to select.","newspack-plugin"),hideHelp:n=!0,hideFormTokenHelp:a=!0,label:i=(0,v.__)("Search","newspack-plugin"),maxItemsToSuggest:c=0,multiSelect:l=!1,onChange:u=!1,selectedItems:d=[],suggestionsToFetch:p=20})=>{const[f,y]=(0,o.useState)(!0),[w,_]=(0,o.useState)(!1),[x,k]=(0,o.useState)([]),[j,S]=(0,o.useState)(0),[C,A]=(0,o.useState)([]),[E,P]=(0,o.useState)({}),[N,O]=(0,o.useState)(!1),T="post",I=["newspack-autocomplete-with-latest-posts"];a&&I.push("hide-form-token-help"),n&&I.push("hide-help");const M=b()(e=>{if(!e||e.length<2)return A([]),void O(!1);O(!0),R(e,0,T).then(e=>{A(e);const t={...E};e.forEach(e=>{t[e.value]=e.label}),P(t)}).finally(()=>O(!1))},500);(0,o.useEffect)(()=>{y(!0),R(null,0,T).then(e=>{if(0{t[e.value]=e.label}),P(t)}}).finally(()=>y(!1))},[]),(0,o.useEffect)(()=>{w&&R(null,x.length,T).then(e=>{0_(!1))},[w]);const R=e||(async(e=null,t=0,n=null)=>{const r=n||T,o="post"===r||"page"===r?r+"s":r,a=await h()({parse:!1,path:(0,m.addQueryArgs)("/wp/v2/"+o,{search:e,offset:t,per_page:p,_fields:"id,title"})}),i=parseInt(a.headers.get("x-wp-total")||0),s=await a.json();return S(i),s.reduce((e,t)=>(e.push({value:parseInt(t.id),label:(0,g.decodeEntities)(t?.title.rendered)||(0,v.__)("(no title)","newspack-plugin")}),e),[])}),L=e=>{const t=e.reduce((e,t)=>(Object.keys(E).forEach(n=>{if(E[n]===t){const r=isNaN(parseInt(n))?n.toString():parseInt(n);e.push({value:r,label:t})}}),e),[]);if(!l){const e=t[t.length-1];return u(e?[{...e,postType:T}]:[])}u(t.map(e=>({...e,postType:T})))},z=()=>d.reduce((e,t)=>t?t.label?[...e,t.label]:E[t]?[...e,E[t]]:e:e,[]),D=e=>{if(l){const t=!!d.find(t=>parseInt(t.value)===parseInt(e.value)&&t.label===e.label);return(0,s.jsx)(r.CheckboxControl,{checked:t,onChange:()=>{const n=z(),r=e.label;if(t){const e=n.filter(e=>e!==r);L(e)}else L([...n,r])},label:e.label},e.value)}return(0,s.jsx)(r.Button,{isLink:!0,onClick:()=>L([...z(),e.label]),children:e.label},e.value)};return(0,s.jsxs)("div",{className:I.join(" "),children:[(0,s.jsxs)("div",{className:"newspack-autocomplete-with-latest-posts__input-container",children:[(0,s.jsx)(r.FormTokenField,{value:z(),suggestions:C.map(e=>e.label),onChange:L,onInputChange:M,label:i,help:!n&&t,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(f||N)&&(0,s.jsx)(r.Spinner,{})]}),(()=>{if(0===x.length)return null;const e=l?"newspack-autocomplete-with-latest-posts__search-suggestions-multiselect":"newspack-autocomplete-with-latest-posts__search-suggestions";return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"newspack-autocomplete-with-latest-posts__search-suggestions-container",children:[(0,s.jsx)("p",{className:"newspack-autocomplete-with-suggestions__label",children:(0,v.__)("Latest Posts","newspack-plugin")}),(0,s.jsxs)("div",{className:e,children:[x.map(D),x.length<(c||j)&&(0,s.jsx)(r.Button,{disabled:w,isSecondary:!0,onClick:()=>_(!0),children:w?(0,v.__)("Loading…","newspack-plugin"):(0,v.__)("Load more","newspack-plugin")})]})]})})})()]})}:null,x=({text:e,level:t="default"})=>{const n=i()("newspack-badge",`is-${t}`);return(0,s.jsx)("span",{className:n,children:e})};var k=n(26983),j=n(55863),S=n(28865);const C=({items:e=[]})=>{if(!e.length)return null;const t=e.slice(0,-1),n=e[e.length-1];return(0,s.jsx)("nav",{"aria-label":(0,v.__)("Breadcrumbs","newspack-plugin"),children:(0,s.jsxs)(k.B,{render:(0,s.jsx)("ul",{}),direction:"row",align:"center",className:"newspack-breadcrumbs__list",children:[t.map((e,t)=>(0,s.jsxs)("li",{children:[e.url?(0,s.jsx)(j.E,{variant:"body-lg",render:(0,s.jsx)(S.N,{tone:"neutral",render:(0,s.jsx)("a",{href:e.url})}),children:e.label}):(0,s.jsx)(j.E,{variant:"body-lg",children:e.label}),(0,s.jsx)(j.E,{variant:"body-lg","aria-hidden":"true",className:"newspack-breadcrumbs__separator",children:"/"})]},e.url||t)),n&&n.label&&(0,s.jsx)("li",{children:(0,s.jsx)(j.E,{variant:"heading-lg",render:(0,s.jsx)("h1",{}),className:"newspack-breadcrumbs__current",children:n.label})})]})})};var A=n(2796);if(/^(2001|9406)$/.test(n.j))var E=n(6350);const P=/^(2001|9406)$/.test(n.j)?({hexColor:e,isInverted:t=!1,children:n,...r})=>{let o;o="#f0f0f0"===e?"#1e1e1e":(0,E.b)(e);const a=t?{color:e,backgoundColor:o}:{backgroundColor:e,color:o};return(0,s.jsx)("div",{...r,style:a,children:n})}:null;var N=n(35583),O=n(34426),T=n(79728),I=n(87143),M=n(51383),R=n(63149);const L=({actions:e,actionType:t,as:n,buttonsCard:o,className:a,footer:c,header:l,headerAction:u,headerStyle:d,childrenStyle:p,footerStyle:f,disabled:h,icon:g,iconElement:m,iconBackgroundColor:y,isActive:w,isDraggable:b,isFirstTarget:_,isLastTarget:x,isNarrow:k,isSmall:j,dragIndex:S,onDragCallback:C=()=>{},onToggle:A=()=>{},onHeaderClick:E,noBorder:P,noMargin:L,children:z=null,hasGreyHeader:D,hasHeaderBorder:$=!0,...F})=>{const H=i()("newspack-card--core",a,(o||"a"===n)&&"newspack-card--core__buttons-card",e?.length>0&&"newspack-card--core__header--has-actions",b&&"newspack-card--core__is-draggable",k&&"newspack-card--core__is-narrow",j&&"newspack-card--core__is-small",(g||m)&&"newspack-card--core__has-icon",y&&"newspack-card--core__has-icon-background-color",w&&"newspack-card--core__is-active",h&&"newspack-card--core__is-disabled",z&&"newspack-card--core__has-children",L&&"newspack-card--core__no-margin",D&&"newspack-card--core__has-grey-header");let V=j?"small":F.size;(o||"a"===n)&&(j||(V="large"),"a"!==n&&(F.as="a")),P&&(F.isBorderless=!0);const B=!!E&&!("toggle"===t||u||e?.length>0||b);return(0,s.jsxs)(r.Card,{as:n,className:H,...F,children:[(l||g||m)&&(0,s.jsxs)(r.CardHeader,{as:B?"button":void 0,className:i()("newspack-card--core__header",b&&"newspack-card--core__header--is-draggable",!$&&"newspack-card--core__header--no-border"),style:d,size:V,gap:4,onClick:B&&!h?E:void 0,disabled:!(!B||!h)||void 0,"aria-disabled":!(!B||!h)||void 0,children:[b&&(0,s.jsxs)("div",{className:"newspack-card--core__header__draggable-controls",children:[(0,s.jsx)("div",{className:"newspack-card--core__header__draggable-controls__drag-handle",children:(0,s.jsx)(N.A,{icon:O.A})}),(0,s.jsxs)("div",{className:"newspack-card--core__header__draggable-controls__move-buttons",children:[(0,s.jsx)(r.Button,{icon:T.A,onClick:()=>C(S,S-1),disabled:_,label:(0,v.__)("Move one position up","newspack-plugin"),size:"small"}),(0,s.jsx)(r.Button,{icon:I.A,onClick:()=>C(S,S+1),disabled:x,label:(0,v.__)("Move one position down","newspack-plugin"),size:"small"})]})]}),m?(0,s.jsx)("div",{className:"newspack-card--core__icon-slot",children:m}):g&&(0,s.jsx)("div",{className:"newspack-card--core__icon",children:(0,s.jsx)(N.A,{icon:g,height:j?24:48,width:j?24:48})}),e?.length>0&&"toggle"===t&&(0,s.jsx)(r.ToggleControl,{className:"newspack-card--core__action",label:F.title,hideLabelFromVision:!0,checked:w,onChange:A}),l&&(0,s.jsx)("div",{className:"newspack-card--core__header-content",children:l}),!e?.length>0&&"chevron"===t&&(0,s.jsx)(N.A,{className:"newspack-card--core__action",icon:M.A,height:24,width:24}),!e?.length>0&&"toggle"===t&&(0,s.jsx)(r.ToggleControl,{className:"newspack-card--core__action",label:F.title,hideLabelFromVision:!0,checked:w,onChange:A}),e?.length>0&&(0,s.jsx)(r.DropdownMenu,{icon:R.A,label:(0,v.__)("More","newspack-plugin"),children:()=>e.map((e,t)=>Array.isArray(e)?(0,s.jsx)(r.MenuGroup,{children:e.map((e,t)=>(0,s.jsx)(r.MenuItem,{icon:e.icon,onClick:e.action,href:e.href,disabled:e.disabled||!1,isDestructive:e.destructive||!1,children:e.label},t))},t):(0,s.jsx)(r.MenuItem,{icon:e.icon,onClick:e.action,href:e.href,disabled:e.disabled||!1,isDestructive:e.destructive||!1,children:e.label},t))}),u&&(0,s.jsx)(r.Button,{className:"newspack-card--core__header__action",icon:u.icon,href:u.href,disabled:u.disabled||!1,isDestructive:u.destructive||!1,onClick:u.onClick,tone:u.tone||"primary",variant:u.variant||"secondary",children:u.label})]}),z&&(0,s.jsx)("div",{className:i()("newspack-card--core__body",!$&&"newspack-card--core__body--no-header-border"),style:p,children:z}),c&&(0,s.jsx)(r.CardFooter,{size:V,style:f,children:c})]})};class z extends o.Component{render(){const{buttonsCard:e,className:t,headerActions:n,isNarrow:r,isMedium:o,isSmall:a,isWhite:c,noBorder:l,__experimentalCoreCard:u,__experimentalCoreProps:d={actionType:null,header:null,icon:null,footer:null,noMargin:!1,isDraggable:!1,dragIndex:null,hasGreyHeader:!1,onDragCallback:()=>{}},...p}=this.props;if(u){const n={buttonsCard:e,className:t,isMedium:o,isNarrow:r,isSmall:a,isWhite:c,noBorder:l,...p,...d};return(0,s.jsx)(L,{...n})}const f=i()("newspack-card",t,n&&"newspack-card__header-actions",o&&"newspack-card__is-medium",r&&"newspack-card__is-narrow",a&&"newspack-card__is-small",c&&"newspack-card__is-white",l&&"newspack-card__no-border");return(0,s.jsx)("div",{className:f,...p})}}const D=z,$=/^(2001|9406)$/.test(n.j)?({title:e,description:t,icon:n,enabled:a=!1,requirements:c,requirementsActionable:l=!1,enableLabel:u,busy:d=!1,configureLabel:p,onEnable:f,onConfigure:h,moreControls:g,badgeText:m,badgeLevel:y="success",className:w})=>{const b=!!c,_=i()("newspack-card-feature",w,{"newspack-card-feature--muted":b});let k;c?k={text:c,level:"error"}:a&&(k={text:m??(0,v.__)("Enabled","newspack-plugin"),level:y});const j=a&&!c,S=j?p??(0,v.__)("Configure","newspack-plugin"):u??(0,v.__)("Enable","newspack-plugin"),C=a&&!!g?.length&&(!c||l),E=n&&!(0,o.isValidElement)(n)?n:null,P=E?i()("newspack-card-feature__icon",{"newspack-card-feature__icon--radius-small":!!E.backgroundColor&&"full"!==E.radius,"newspack-card-feature__icon--radius-full":"full"===E.radius}):void 0;let N=null;return(0,o.isValidElement)(n)?N=n:E&&(N=(0,s.jsx)("div",{className:P,style:{backgroundColor:E.backgroundColor,color:E.fill},children:E.node})),(0,s.jsx)(D,{className:_,__experimentalCoreCard:!0,__experimentalCoreProps:{headerStyle:{padding:32},header:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.__experimentalHStack,{alignment:"top",spacing:4,children:[(0,s.jsxs)("div",{className:"newspack-card-feature__content",children:[(0,s.jsx)("h2",{className:"newspack-card-feature__title",children:e}),t&&(0,s.jsx)("p",{className:"newspack-card-feature__description",children:t})]}),N]}),(0,s.jsxs)(r.__experimentalHStack,{alignment:"edge",children:[(0,s.jsxs)(r.__experimentalHStack,{expanded:!1,spacing:"8px",children:[(0,s.jsx)(A.A,{variant:j?"tertiary":"secondary",disabled:b&&!l||d,isBusy:d,onClick:()=>{j?h?.():f?.()},size:"compact",children:S}),C&&(0,s.jsx)(r.DropdownMenu,{icon:R.A,label:(0,v.__)("More","newspack-plugin"),controls:g,toggleProps:{size:"compact"}})]}),k&&(0,s.jsx)(x,{text:k.text,level:k.level})]})]})}})}:null;var F=n(29491);const H=({title:e,description:t,badge:n,actions:a,isOpen:c=!1,onRequestClose:l,titleLevel:u=3,className:d,children:p})=>{const f=(0,o.useRef)(null),h=(0,o.useRef)(null),g=(0,F.useInstanceId)(H,"newspack-card-form"),v=`${g}__title`,m=`${g}__body`;(0,o.useEffect)(()=>{if(!c||!l)return;const e=f.current;if(!e)return;const t=e=>{"Escape"!==e.key||e.defaultPrevented||l()};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},[c,l]),(0,o.useEffect)(()=>{if(!c)return;const e=f.current;return e&&(h.current=e.ownerDocument?.activeElement??null,(e.querySelector('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')??e).focus()),()=>{h.current?.focus?.()}},[c]);const y=`h${u}`;return(0,s.jsx)(D,{className:i()("newspack-card-form",d,{"newspack-card-form--open":c}),__experimentalCoreCard:!0,isSmall:!0,__experimentalCoreProps:{hasHeaderBorder:!c,header:(0,s.jsxs)(r.__experimentalHStack,{justify:"space-between",style:{width:"100%"},children:[(0,s.jsxs)(r.__experimentalVStack,{spacing:0,style:{flex:1,minWidth:0},children:[(0,o.createElement)(y,{id:v,className:"newspack-card-form__title"},e),t&&(0,s.jsx)("p",{className:"newspack-card-form__description",children:t})]}),(0,s.jsxs)(r.__experimentalHStack,{spacing:2,expanded:!1,children:[n&&(0,s.jsx)(x,{text:n.text,level:n.level??"success"}),a]})]})},children:c&&(0,s.jsx)("div",{ref:f,id:m,role:"region","aria-labelledby":v,tabIndex:-1,className:"newspack-card-form__body",children:p})})},V=/^(828|9406)$/.test(n.j)?H:null,B=/^(2001|6930|7841|9406)$/.test(n.j)?({actionType:e="none",children:t,className:n,disabled:r=!1,icon:o=null,iconElement:a=null,headerAction:c,title:l="",description:u="",isActive:d=!1,onEnable:p=()=>{},onHeaderClick:f})=>(0,s.jsx)(D,{className:i()("newspack-card--core--settings-group",n),actionType:e,isSmall:!0,__experimentalCoreCard:!0,__experimentalCoreProps:{header:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{children:l}),u&&(0,s.jsx)("p",{children:u})]}),headerAction:c,onHeaderClick:f,onToggle:p,disabled:r,icon:o,iconElement:a,iconBackgroundColor:!0,isActive:d,title:l},children:d&&t}):null,U=2001==n.j?({disabled:e=!1,items:t=[],onDragCallback:n=()=>{}})=>{const[a,c]=(0,o.useState)(t),[l,u]=(0,o.useState)(null),[d,p]=(0,o.useState)(null),[f,h]=(0,o.useState)(null),[g,v]=(0,o.useState)(null),m=(0,o.useRef)(null),y=(0,o.useRef)([]),w=(0,o.useRef)(null),b=(0,o.useRef)(null),_=(0,o.useRef)(null),[k,j]=(0,o.useState)(0),S=(0,o.useRef)(null);(0,o.useEffect)(()=>{c(t)},[t]),(0,o.useEffect)(()=>()=>{w.current&&clearTimeout(w.current),b.current&&clearTimeout(b.current),S.current&&document.removeEventListener("dragover",S.current)},[]);const C=(e,t)=>{if(t<0||t>=a.length)return;const n=y.current[e],r=y.current[t];if(!n||!r)return;const o=Math.abs(r.getBoundingClientRect().top-n.getBoundingClientRect().top),i=t>e?1:-1;_.current={fromIndex:e,toIndex:t,stride:o,direction:i};const s=[...a],[l]=s.splice(e,1);s.splice(t,0,l),c(s),j(e=>e+1)};(0,o.useLayoutEffect)(()=>{const e=_.current;if(!e)return;_.current=null;const{fromIndex:t,toIndex:r,stride:o,direction:a}=e,i=(e,t)=>{e&&(e.style.transition="none",e.style.transform=`translateY(${t}px)`,e.getBoundingClientRect(),e.style.transition="transform 200ms ease-out",e.style.transform="")};i(y.current[r],-a*o),i(y.current[t],a*o),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{[t,r].forEach(e=>{const t=y.current[e];t&&(t.style.transition="",t.style.transform="")});const e=y.current[r];if(e){const t=e.querySelectorAll(".newspack-card--core__header__draggable-controls__move-buttons button"),n=a>0?t[1]:t[0],r=a>0?t[0]:t[1];n&&!n.disabled?n.focus():r&&!r.disabled&&r.focus()}n(t,r),b.current=null},200)},[k]);const A=e=>{const t=g,r=l;if(S.current&&(document.removeEventListener("dragover",S.current),S.current=null),u(null),p(null),v(null),null===t||null===r)return;const o=((e,t,n)=>{const{itemTops:r,itemStrides:o,sourceHeight:a}=t;for(let t=0;tt;if(er?o-1:o;if(i===r)return;const s=[...a],[d]=s.splice(r,1);s.splice(i,0,d),c(s),requestAnimationFrame(()=>{h(i),w.current=setTimeout(()=>{h(null),n(r,i)},400)})},E=null!==l;return(0,s.jsx)(r.__experimentalVStack,{ref:m,className:i()("newspack-card--core--sortable-list",e&&"newspack-card--core--sortable-list__is-disabled",E&&"newspack-card--core--sortable-list__is-dragging"),style:g?{height:g.lockedHeight}:void 0,spacing:4,children:a.map((t,n)=>{const o=(e=>{if(null===l||null===d||!g)return 0;if(e===l)return 0;const{itemStrides:t,sourceHeight:n}=g,r=t[l]??n;if(d>l){if(e>l&&e=d&&e{y.current[n]=e},className:i()("newspack-card--core--sortable-list__item",{"is-source":l===n,"is-dropped":f===n}),style:o?{transform:`translateY(${o}px)`}:{transition:E?void 0:"none"},id:`draggable-card-${n}`,onDragOver:e=>((e,t)=>{if(e.preventDefault(),!g)return;const n=e.currentTarget.getBoundingClientRect(),r=n.top+n.height/2;p(e.clientY(e=>{b.current&&(clearTimeout(b.current),b.current=null,y.current.forEach(e=>{e&&(e.style.transition="",e.style.transform="")}));const t=m.current;if(t){const n=y.current.map(e=>e?.getBoundingClientRect()),r=n.map((e,t)=>{if(!e)return 0;const r=n[t+1];return r?r.top-e.top:e.height});v({lockedHeight:t.getBoundingClientRect().height,sourceHeight:n[e]?.height??0,itemStrides:r,itemTops:n.map(e=>e?.top??0)})}const n=e=>e.preventDefault();document.addEventListener("dragover",n),S.current=n,u(e),h(null)})(n),onDragEnd:A,appendToOwnerDocument:!0,children:({onDraggableStart:e,onDraggableEnd:r})=>(0,s.jsx)(D,{isSmall:!0,draggable:!0,onDragStart:e,onDragEnd:r,__experimentalCoreCard:!0,__experimentalCoreProps:{header:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("h3",{children:[t.title,(0,s.jsx)(x,{level:t.badgeLevel,text:t.badgeText})]}),t.description&&(0,s.jsx)("p",{children:t.description})]}),isDraggable:!0,isFirstTarget:0===n,isLastTarget:n===a.length-1,dragIndex:n,onDragCallback:C,...void 0!==t.onToggleChange&&{actionType:"toggle",isActive:t.toggleChecked,onToggle:t.onToggleChange},...void 0!==t.actions&&{actions:t.actions}}})})})},t.id)})})}:null;var q=n(3635);const W=(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)("path",{d:"M16.6934 10.5811C17.1772 10.9036 17.4355 11.4194 17.4355 11.9678C17.4355 12.516 17.1449 13.0319 16.6934 13.3545L6.56445 20V18.6133C6.56445 18.1939 6.75844 17.7746 7.14551 17.5166L15.5 11.9678L7.14551 6.38672C6.79063 6.16086 6.56445 5.74175 6.56445 5.29004V4L16.6934 10.5811Z",fill:"white"}),(0,s.jsx)("path",{d:"M6.56445 8.77441C6.56445 8.35519 7.04853 8.12873 7.37109 8.35449L12.6611 11.9355L11.9512 12.4189C11.4996 12.7091 10.9193 12.7092 10.4678 12.4189L9.30664 11.6777L6.56445 9.83887V8.77441Z",fill:"white"})]}),G=(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)("path",{d:"M11.3261 20.9997C6.36799 20.9997 3 16.9581 3 12.6626C3 8.30073 6.43425 4.5352 11.0059 4.35852C11.1826 4.34748 11.3372 4.50207 11.3372 4.67875V6.01491C11.3372 6.18055 11.2047 6.3241 11.028 6.33514C7.67102 6.48974 4.96558 9.23935 4.96558 12.6736C4.96558 16.0305 7.61581 19.0341 11.3261 19.0341C14.9371 19.0341 17.4989 16.152 17.6535 12.9717C17.6646 12.8061 17.7971 12.6626 17.9738 12.6626H19.3099C19.4866 12.6626 19.6302 12.8061 19.6302 12.9938C19.4756 17.2342 16.0634 20.9997 11.3261 20.9997Z",fill:"#1856ED"}),(0,s.jsx)("path",{d:"M11.3372 16.5827C9.12864 16.5827 7.41704 14.8269 7.41704 12.6625C7.41704 10.6417 8.97405 8.95223 10.9948 8.78659C11.1826 8.77555 11.3372 8.9191 11.3372 9.10683V10.443C11.3372 10.5976 11.2267 10.7411 11.0611 10.7632C10.0894 10.8957 9.38262 11.7239 9.38262 12.6736C9.38262 13.7337 10.2108 14.6281 11.3372 14.6281C12.2758 14.6281 13.115 13.9214 13.2475 12.9497C13.2696 12.7951 13.4132 12.6736 13.5678 12.6736H14.9039C15.0916 12.6736 15.2352 12.8282 15.2242 13.0159C15.0475 14.9925 13.3911 16.5827 11.3372 16.5827Z",fill:"#1856ED"}),(0,s.jsx)("path",{d:"M19.0339 11.0283C18.8793 7.79277 16.2953 5.12046 12.9715 4.96586C12.8058 4.95482 12.6623 4.82231 12.6623 4.64563V3.32051C12.6623 3.14383 12.8058 3.00028 12.9936 3.00028C17.3112 3.16592 20.8338 6.62225 20.9994 11.0062C21.0105 11.1828 20.8559 11.3374 20.6792 11.3374H19.3431C19.1885 11.3374 19.0449 11.2049 19.0339 11.0283Z",fill:"#FF9E1A"}),(0,s.jsx)("path",{d:"M13.0267 9.41602C12.8279 9.38289 12.6844 9.21725 12.6844 9.05161V7.74859C12.6844 7.56086 12.839 7.41731 13.0267 7.42835C14.9481 7.59399 16.4278 9.12891 16.5934 10.9841C16.6045 11.1718 16.4609 11.3264 16.2732 11.3264H14.8708C14.7383 11.3264 14.6389 11.238 14.6168 11.1055C14.5174 10.3215 13.9211 9.57062 13.0267 9.41602Z",fill:"#FF9E1A"})]}),K={active_campaign:W,mailchimp:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)("path",{d:"M21.5694 14.9382L21.214 13.9313C21.214 13.9313 22.6947 11.6807 19.0226 10.9108C19.0226 10.9108 19.2595 8.12707 17.9565 6.82408C20.7995 4.04046 20.148 -0.16465 13.6922 2.55975C10.3755 -3.77748 -2.41746 11.0884 2.91293 13.4575C2.37994 14.1683 2.37994 17.7218 6.05198 18.0772C8.53946 23.4076 14.5806 23.763 18.075 22.1638C21.5694 20.5647 23.5831 15.4712 21.5694 14.9382ZM5.99277 17.3072C2.97214 17.0111 2.67608 12.8653 5.28199 12.4506C7.88797 12.036 8.53946 17.5442 5.99277 17.3072ZM5.10435 11.6807C4.27514 11.6807 3.26829 12.806 3.26829 12.806C-0.759109 10.8516 10.5532 -2.11914 12.9815 2.91511C12.9815 2.91511 7.05883 5.75802 5.10435 11.6807ZM16.9497 16.7149C16.9497 16.4781 15.7059 17.0703 13.4553 16.3004C13.633 15.0566 16.2982 17.3664 20.7402 14.3459L21.0956 15.5897C22.7539 15.2935 21.0956 20.9201 15.7651 20.8608C11.4416 20.8016 10.0794 16.3596 12.4484 13.9313C12.9223 13.4575 10.7309 12.5099 11.1454 10.4369C11.3232 9.54857 12.0931 8.24557 14.0476 8.60093C16.0021 8.95628 16.4166 7.17944 17.7196 7.83093C19.0226 8.48243 18.2527 10.97 18.4303 11.3253C18.608 11.6807 20.5033 11.7399 20.8587 12.7468C21.214 13.7536 18.4303 15.945 14.1068 15.3527C13.0999 15.2343 12.5077 16.5373 13.1591 17.3664C14.4621 19.2617 19.7926 18.0179 20.681 16.1819C18.4303 17.8995 13.8106 18.551 13.4553 16.7149C14.7583 17.3072 16.9497 16.9519 16.9497 16.7149ZM9.19096 7.35715C10.494 5.75802 12.2116 4.81038 12.2116 4.81038L11.8562 5.69881C11.8562 5.69881 13.0999 4.75117 14.4621 4.75117L13.9884 5.22495C15.5283 5.28424 16.1798 5.87644 16.1798 5.87644C16.1798 5.87644 12.5669 4.81038 9.19096 7.35715ZM17.1866 9.66699C17.9565 9.60778 17.7196 11.3846 17.7196 11.3846H17.2458C17.2458 11.3846 16.4166 9.72621 17.1866 9.66699ZM13.6922 11.6215C13.1591 11.6807 12.5669 11.9768 12.6262 11.7399C12.8631 10.7923 15.0544 11.0292 14.9952 11.8584C14.936 12.6875 14.4621 11.5031 13.6922 11.6215ZM14.936 12.3322C14.9952 12.4506 14.5214 12.3322 14.166 12.3914C13.8106 12.4506 13.4553 12.6283 13.4553 12.5099C13.4553 12.3914 14.8175 11.8584 14.936 12.3322ZM16.1205 12.5099C16.2982 12.1545 17.0089 12.5099 16.8313 12.8653C16.6536 13.2206 15.9428 12.8653 16.1205 12.5099ZM17.6012 12.6283C17.2458 12.6283 17.2458 11.8584 17.6012 11.8584C17.9565 11.8584 17.9565 12.6875 17.6012 12.6875V12.6283ZM6.94033 15.7674C7.11805 15.945 6.58498 16.3004 6.17041 16.0042C5.75584 15.7081 6.64427 14.2867 5.57813 13.9313C4.51206 13.576 4.8082 14.9382 4.51206 14.7605C4.21592 14.5828 4.92663 12.6875 6.17041 13.4575C7.41419 14.2275 5.81505 15.412 6.52576 15.7674C7.23647 16.1227 6.82191 15.6489 6.94033 15.7674Z",fill:"#241C15"})}),constant_contact:G,manual:q.A},Z=/^(2001|6930|7841)$/.test(n.j)?["active_campaign","mailchimp","constant_contact","manual"]:null,J=/^(2001|6930|7841)$/.test(n.j)?({provider:e,className:t})=>{const n=K,r=Object.prototype.hasOwnProperty.call(K,e)?n[e]:null;return r?(0,s.jsx)("span",{"aria-hidden":"true",className:i()("newspack-integration-icon",`newspack-integration-icon--${e.replace(/_/g,"-")}`,t),children:r}):null}:null;var Q=n(97183),Y=n.n(Q),X=n(38662),ee=n.n(X);class te extends o.Component{state={suggestions:{},allCategories:{},isLoading:!1};constructor(e){super(e),this.debouncedUpdateSuggestions=b()(this.updateSuggestions,100)}componentDidMount(){this.setState({isLoading:!0}),h()({path:(0,m.addQueryArgs)(`/wp/v2/${this.props.taxonomy}`,{per_page:-1,_fields:"id,name"})}).then(e=>this.setState({allCategories:e})).finally(()=>this.setState({isLoading:!1}))}componentWillUnmount(){this.debouncedUpdateSuggestions.cancel()}updateSuggestions(e){this.setState({isLoading:!0}),h()({path:(0,m.addQueryArgs)(`/wp/v2/${this.props.taxonomy}`,{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then(e=>{this.setState({suggestions:e.reduce((e,t)=>({...e,[t.name]:t}),{})})}).finally(()=>this.setState({isLoading:!1}))}handleOnChange=e=>{const{onChange:t}=this.props,{suggestions:n}=this.state;t(e.filter(e=>void 0!==e).map(e=>"string"==typeof e?n[e]:e).filter(Boolean))};getAvailableSuggestions=()=>{const{value:e}=this.props,{suggestions:t}=this.state,n=e.reduce((e,t)=>(t?.id&&e.push(t.id),e),[]);return ee()(t,({id:e})=>-1===n.indexOf(e)).map(e=>e.name)};render(){const{className:e,disabled:t,description:n,hideHelpFromVision:o,hideLabelFromVision:a,label:c,value:l}=this.props,{allCategories:u,isLoading:d}=this.state,p=i()("newspack-category-autocomplete",e);return(0,s.jsxs)("div",{className:p,children:[(0,s.jsx)(Oe,{onInputChange:e=>this.debouncedUpdateSuggestions(e),value:l.reduce((e,t)=>{const n="number"==typeof t?Y()(u,["id",t]):t;return n&&e.push({id:n.term_id||n.id,value:n.value||n.name}),e},[]),suggestions:this.getAvailableSuggestions(),onChange:this.handleOnChange,label:c,disabled:t,description:n,hideHelpFromVision:o,hideLabelFromVision:a}),d?(0,s.jsx)("span",{className:"newspack-category-autocomplete__suggestions-spinner",children:(0,s.jsx)(r.Spinner,{})}):null]})}}te.defaultProps={taxonomy:"categories"};const ne=/^(2001|828)$/.test(n.j)?te:null;var re=n(5070);Object.defineProperty(ie,"name",{value:"default",configurable:!0});var oe=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},ae=function(e){return.2126*oe(e.r)+.7152*oe(e.g)+.0722*oe(e.b)};function ie(e){e.prototype.luminance=function(){return e=ae(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,a,i,s,c,l=t instanceof e?t:new e(t);return a=this.rgba,i=l.toRgb(),n=(s=ae(a))>(c=ae(i))?(s+.05)/(c+.05):(c+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(a=(n=t).size)?"normal":a,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===i?7:"AA"===o&&"large"===i?3:4.5);var n,r,o,a,i}}var se=n(66647);const{useHistory:ce}=se.A,le=(e,t)=>{const n=ce(),r=(0,o.useRef)(null),a=n=>{if(e)return void 0===n&&(n=window.event),t};return(0,o.useEffect)(()=>(e&&(r.current=n.block(t),window.addEventListener("beforeunload",a)),()=>{r.current&&r.current(),window.removeEventListener("beforeunload",a)}),[t,e]),r.current||(()=>{})};(Object.getOwnPropertyDescriptor(le,"name")||{}).writable||Object.defineProperty(le,"name",{value:"default",configurable:!0});var ue=n(75e3),de=n.n(ue),pe=n(64198),fe=n.n(pe);const he=(e,t)=>{if(de()(e))return t},ge=(e={})=>{const[t,n]=(0,o.useState)(e),r=e=>n(t=>fe()({},t,e,he));return[t,e=>{if("string"==typeof e)return t=>r({[e]:t});r(e)}]};(Object.getOwnPropertyDescriptor(ge,"name")||{}).writable||Object.defineProperty(ge,"name",{value:"default",configurable:!0});const{useHistory:ve}=se.A,me={small:"newspack-modal--size-small",medium:"newspack-modal--size-medium",large:"newspack-modal--size-large","x-large":"newspack-modal--size-x-large",full:"newspack-modal--size-full"},ye=()=>{},we=(0,o.forwardRef)(function({className:e,size:t="small",hideTitle:n,isDestructive:a,onConfirm:c=ye,onCancel:l=ye,when:u=!1,isOpen:d=!1,children:p,...f},h){const[g,v]=(0,o.useState)(d),m=ve(),y=(0,o.useRef)(null),w=(0,o.useRef)(!1),b=(0,o.useCallback)(()=>{v(!1),y.current?.(),y.current=null,c()},[c,y]),_=(0,o.useCallback)(()=>{v(!1),y.current=null,w.current=!0;try{m.replace(m.location)}finally{w.current=!1}l()},[l,m]);if((0,o.useEffect)(()=>{if(u)return m.block((e,t)=>{if(!w.current)return y.current=()=>{w.current=!0;try{m.replace(m.location),"REPLACE"===t?m.replace(e):m.push(e)}finally{w.current=!1}},v(!0),!1})},[u,m]),(0,o.useEffect)(()=>{d&&v(!0)},[d]),!g)return null;const x=i()("newspack-modal",me[t],n&&"newspack-modal--hide-title",a&&"newspack-modal--destructive",e);return(0,s.jsx)(r.__experimentalConfirmDialog,{className:x,...f,ref:h,onConfirm:b,onCancel:_,__experimentalHideHeader:!1,children:p})}),be=function(e){const{message:t,when:n,...r}=e,[a,i]=(0,o.useState)(null),c=(0,o.useRef)(n);c.current=n;const l=(0,o.useCallback)(e=>{!1!==c.current?i(()=>e):e()},[]);return{confirmDialog:(0,s.jsx)(we,{...r,when:n,isOpen:!!a,onConfirm:()=>{a?.(),i(null)},onCancel:()=>i(null),children:t}),requestConfirm:l}},_e={usePrompt:le,useObjectState:ge,useOnClickOutside:(e,t)=>{(0,o.useEffect)(()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t])},useUniqueId:e=>(0,o.useRef)(`${e}-${Math.round(99999*Math.random())}`).current,useConfirmDialog:be};var xe=n(48028);(0,re.X$)([ie]);const{InteractiveDiv:ke}=xe.A,je=({label:e,help:t,color:n="#ffffff",onChange:a,className:c})=>{const[l,u]=(0,o.useState)(!1),d=(0,o.useRef)(),p=(0,F.useInstanceId)(je,"newspack-color-picker"),f=`${p}-label`,h=(0,re.Mj)(n);return _e.useOnClickOutside(d,()=>u(!1)),(0,s.jsxs)(r.BaseControl,{id:p,className:i()("newspack-color-picker",c),help:t,__nextHasNoMarginBottom:!0,children:[(0,s.jsx)(r.BaseControl.VisualLabel,{id:f,children:e}),(0,s.jsx)(ke,{id:p,"aria-labelledby":f,"aria-describedby":t?`${p}__help`:void 0,"aria-expanded":l,className:"newspack-color-picker__expander",onClick:()=>u(!l),style:{backgroundColor:n,color:h.contrast()>h.contrast("#000000")?"#ffffff":"#000000"},children:n}),(0,s.jsx)("div",{className:"newspack-color-picker__main",ref:d,children:l&&(0,s.jsx)(r.ColorPicker,{color:n,onChange:a,enableAlpha:!1})})]})},Se=/^(2001|6930|9406)$/.test(n.j)?je:null;class Ce extends(2001==n.j?o.Component:null){render(){const{className:e,...t}=this.props,n=i()("newspack-custom-select-control",e);return(0,s.jsx)(r.CustomSelectControl,{className:n,...t})}}const Ae=2001==n.j?Ce:null;if(2001==n.j)var Ee=n(59150);function Pe({className:e,...t}){return(0,s.jsx)("div",{className:i()("newspack-dataviews",e),children:(0,s.jsx)(Ee.A,{...t})})}class Ne extends o.Component{render(){const{className:e,description:t,hideHelpFromVision:n,hideLabelFromVision:o,...a}=this.props,c=i()("newspack-form-token-field__input-container",e);return(0,s.jsxs)("div",{className:i()({"newspack-form-token-field--label-hidden":o,"newspack-form-token-field--help-hidden":n},"newspack-form-token-field"),children:[(0,s.jsx)(r.FormTokenField,{className:c,...a}),t&&(0,s.jsx)("p",{className:"newspack-form-token-field__help",children:t})]})}}const Oe=Ne,Te=({simple:e})=>{const{components_demo:t=!1,support:n=!1,setup_wizard:o=!1,reset_url:a=!1,plugin_version:i={label:"Newspack"},remove_starter_content:c=!1,support_email:l}=window.newspack_urls||{},u=[{label:i.label,url:"https://newspack.com/category/release-notes/",external:!0},{label:(0,v.__)("About","newspack-plugin"),url:"https://newspack.com/",external:!0},{label:(0,v.__)("Documentation","newspack-plugin"),url:n,external:!0}];return t&&u.push({label:(0,v.__)("Components Demo","newspack-plugin"),url:t}),o&&u.push({label:(0,v.__)("Setup Wizard","newspack-plugin"),url:o}),a&&u.push({label:(0,v.__)("Reset Newspack","newspack-plugin"),url:a}),c&&u.push({label:(0,v.__)("Remove Starter Content","newspack-plugin"),url:c}),l&&u.push({label:(0,v.__)("Contact Support","newspack-plugin"),url:`mailto:${l}`}),(0,s.jsx)("div",{className:"newspack-footer",children:!e&&(0,s.jsx)("ul",{children:u.map(({url:e,label:t,external:n},o)=>(0,s.jsx)("li",{children:n?(0,s.jsx)(r.ExternalLink,{href:e,children:t}):(0,s.jsx)("a",{href:e,children:t})},o))})})};var Ie=n(76661),Me=n.n(Ie);class Re extends o.Component{constructor(){super(...arguments),this.state={pluginInfo:[],showModal:!1}}componentDidMount=()=>{this._isMounted=!0;const{plugin:e,url:t}=this.props;e&&!t&&this.retrievePluginInfo(e)};componentWillUnmount=()=>{this._isMounted=!1};retrievePluginInfo=e=>{const{onReady:t}=this.props;h()({path:"/newspack/v1/plugins/"+e}).then(e=>{this._isMounted&&(t(e),this.setState({pluginInfo:e}))})};textForPlugin=e=>{const t={modalBody:null,modalTitle:e.Name&&`${(0,v.__)("Manage","newspack-plugin")} ${e.Name}`,primaryButton:e.Name&&`${(0,v.__)("Manage","newspack-plugin")} ${e.Name}`,primaryModalButton:(0,v.__)("Manage","newspack-plugin"),dismissModalButton:(0,v.__)("Dismiss","newspack-plugin")};return Me()(t,this.props)};goToUrl=()=>{const{url:e,showOnBlockEditor:t,bannerText:n,bannerButtonText:r}=this.props;h()({path:"/newspack/v1/handoff",method:"POST",data:{destinationUrl:e,handoffReturnUrl:window&&window.location.href,showOnBlockEditor:!!t,bannerText:n,bannerButtonText:r}}).then(e=>{window.location.href=e.HandoffLink})};goToPlugin=e=>{const{editLink:t,showOnBlockEditor:n,bannerText:r,bannerButtonText:o}=this.props;h()({path:"/newspack/v1/plugins/"+e+"/handoff",method:"POST",data:{editLink:t,handoffReturnUrl:window&&window.location.href,showOnBlockEditor:!!n,bannerText:r,bannerButtonText:o}}).then(e=>{window.location.href=e.HandoffLink})};render(){const{className:e,children:t,compact:n,useModal:a,modalTitle:c,modalBody:l,onReady:u,editLink:d,bannerText:p,bannerButtonText:f,url:h,...g}=this.props,{pluginInfo:m,showModal:y}=this.state,{modalBody:w,modalTitle:b,primaryButton:_,primaryModalButton:x,dismissModalButton:k}=this.textForPlugin(m),{Configured:j,Name:S,Slug:C,Status:E}=m,P=i()(j&&"is-configured",e),N=()=>h?this.goToUrl():this.goToPlugin(C);return(0,s.jsxs)(o.Fragment,{children:[h&&(0,s.jsx)(A.A,{className:P,isSecondary:!g.isPrimary&&!g.isTertiary&&!g.isLink,...g,onClick:()=>a&&t?this.setState({showModal:!0}):N(),children:t||_}),!h&&S&&"active"===E&&(0,s.jsx)(A.A,{className:P,isSecondary:!g.isPrimary&&!g.isTertiary&&!g.isLink,...g,onClick:()=>a?this.setState({showModal:!0}):N(),children:t||_}),!h&&S&&"active"!==E&&(0,s.jsx)(A.A,{className:P,variant:"secondary",disabled:!0,...g,children:S+(0,v.__)(" not installed","newspack-plugin")}),!h&&!S&&(0,s.jsx)(A.A,{className:P,isSecondary:!g.isPrimary&&!g.isTertiary&&!g.isLink,...g,children:(0,s.jsxs)(o.Fragment,{children:[!n&&(0,s.jsx)(Qt,{isLeft:!0}),(0,v.__)("Retrieving Plugin Info","newspack-plugin")]})}),y&&(0,s.jsxs)(Ke,{title:b,onRequestClose:()=>this.setState({showModal:!1}),children:[(0,s.jsx)("p",{children:w}),(0,s.jsxs)(r.__experimentalHStack,{justify:"flex-end",spacing:4,wrap:!0,className:"newspack-modal__footer",children:[(0,s.jsx)(A.A,{variant:"secondary",onClick:()=>this.setState({showModal:!1}),children:k}),(0,s.jsx)(A.A,{variant:"primary",onClick:N,children:x})]})]})]})}}Re.defaultProps={onReady:()=>{}};const Le=Re;var ze=n(75301);function De(){const[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{setTimeout(()=>{const e=JSON.parse(localStorage.getItem(ze.J));t(!!e?.message&&e.message),e?.url&&-1===window.location.href.indexOf(e.url)&&(window.localStorage.removeItem(ze.J),t(!1))},100)},[]),e?(0,s.jsx)(tt,{isHandoff:!0,isDismissible:!1,rawHTML:!0,noticeText:e}):null}var $e=n(18817);class Fe extends o.Component{render(){const{className:e,...t}=this.props;return(0,s.jsx)(r.Tooltip,{...t,children:(0,s.jsx)("span",{className:i()("newspack-info-button",e),children:(0,s.jsx)(N.A,{icon:$e.A})})})}}const He=Fe;class Ve extends o.Component{constructor(){super(...arguments),this.state={frame:!1}}openModal=()=>{this.state.frame?this.state.frame.open():this.setState({frame:wp.media({title:(0,v.__)("Select or upload image"),button:{text:(0,v.__)("Select")},library:{type:"image"},multiple:!1})},()=>{this.state.frame.on("select",this.handleImageSelect),this.state.frame.open()})};handleImageSelect=()=>{const{onChange:e}=this.props;e(this.state.frame.state().get("selection").first().toJSON())};render=()=>{const{buttonLabel:e,className:t,disabled:n,help:o,image:a,isCovering:c,label:l,onChange:u,style:d={}}=this.props,p=i()("newspack-image-upload__image",{"newspack-image-upload__image--has-image":a},{"newspack-image-upload__image--covering":c});return(0,s.jsxs)(r.BaseControl,{__nextHasNoMarginBottom:!0,className:i()("newspack-image-upload",t),help:o,children:[l&&(0,s.jsx)(r.BaseControl.VisualLabel,{children:l}),(0,s.jsx)("div",{className:p,style:d,children:a?.url?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("img",{"data-testid":"image-upload",src:a.url,alt:(0,v.__)("Image preview","newspack-plugin")}),(0,s.jsxs)("div",{className:"newspack-image-upload__controls",children:[(0,s.jsx)(A.A,{disabled:n,onClick:this.openModal,variant:"tertiary",children:(0,v.__)("Replace","newspack-plugin")}),(0,s.jsx)(A.A,{disabled:n,onClick:()=>u(null),variant:"tertiary",isDestructive:!0,children:(0,v.__)("Remove","newspack-plugin")})]})]}):(0,s.jsx)(A.A,{disabled:n,onClick:this.openModal,variant:"tertiary",children:e||(0,v.__)("Upload","newspack-plugin")})})]})}}const Be=/^(2001|6930|9406)$/.test(n.j)?Ve:null;if(/^(2001|6930)$/.test(n.j))var Ue=n(5136);const qe=/^(2001|6930)$/.test(n.j)?()=>{const e=(0,Ue.parse)(window.location.search)["newspack-notice"];return e?e.split(",").map((e,t)=>0===e.indexOf("_error_")?(0,s.jsx)(tt,{isError:!0,noticeText:e.replace("_error_",""),rawHTML:!0},t):(0,s.jsx)(tt,{isSuccess:!0,noticeText:e},t)):null}:null,We=({className:e="",borders:t=!1,columns:n=2,gutter:r=32,noMargin:o=!1,rowGap:a=0,...c})=>{const l=i()("newspack-grid",t&&"newspack-grid__borders",o&&"newspack-grid--no-margin",n&&"newspack-grid__columns-"+n,r&&"newspack-grid__gutter-"+r,a&&"newspack-grid__row-gap-"+a,e);return(0,s.jsx)("div",{className:l,...c})},Ge={small:"newspack-modal--size-small",medium:"newspack-modal--size-medium",large:"newspack-modal--size-large","x-large":"newspack-modal--size-x-large",full:"newspack-modal--size-full"},Ke=(0,o.forwardRef)(function({className:e,size:t="medium",hideTitle:n,...o},a){const c=i()("newspack-modal",n&&"newspack-modal--hide-title",(e=>Ge[e]||Ge.medium)(t),e);return(0,s.jsx)(r.Modal,{className:c,...o,ref:a})});class Ze extends o.Component{render(){const{className:e,simple:t,size:n,white:o}=this.props,a=i()("newspack-icon",t&&"newspack-icon--simple",o&&"newspack-icon--white",e);return(0,s.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,viewBox:"0 0 24 24",className:a,children:(0,s.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6271 18.6271 24 12 24C5.37213 24 0 18.6271 0 12C0 5.3729 5.3729 0 12 0C18.6271 0 24 5.3729 24 12ZM17.4545 17.4546L6.54545 6.54545V17.4545H8.72727V11.8182L14.3636 17.4546H17.4545ZM11.2727 8.18182H17.4545V6.54545H9.63636L11.2727 8.18182ZM17.4545 11.2727H14.3636L12.7273 9.63636H17.4545V11.2727ZM17.4545 12.7273V14.3636L15.8182 12.7273H17.4545Z"})})}}Ze.defaultProps={size:32};const Je=6930==n.j?Ze:null;var Qe=n(51912),Ye=n(76099),Xe=n(16689);class et extends o.Component{render(){const{className:e,debugMode:t,isError:n,isHandoff:r,isHelp:a,isSuccess:c,isWarning:l,noticeText:u,rawHTML:d,style:p={},children:f=null}=this.props,h=i()("newspack-notice",e,t&&"newspack-notice__is-debug",n&&"newspack-notice__is-error",r&&"newspack-notice__is-handoff",a&&"newspack-notice__is-help",c&&"newspack-notice__is-success",l&&"newspack-notice__is-warning");let g;return g=a?Qe.A:c?Ye.A:t?Xe.A:$e.A,(0,s.jsxs)("div",{className:h,style:p,children:[(0,s.jsx)(N.A,{icon:g}),(0,s.jsxs)("div",{className:"newspack-notice__content",children:[d?(0,s.jsx)(o.RawHTML,{children:u}):u,f||null]})]})}}const tt=et;var nt=n(31431),rt=n(7253);const ot=({breadcrumbItems:e=[],badges:t,subTitle:n,actions:a,tabbedNavigation:c,className:l,children:u})=>{const d=e[e.length-1]?.label,p=(o,i)=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(k.B,{direction:"column",className:"newspack-page__header-region",children:[(0,s.jsxs)(k.B,{direction:"column",className:"newspack-page__header",children:[(0,s.jsxs)(k.B,{direction:"row",gap:"sm",justify:"space-between",children:[(0,s.jsxs)(k.B,{direction:"row",gap:"sm",align:"center",justify:"start",children:[(0,s.jsx)("div",{className:"newspack-page__header-visual","aria-hidden":"true",children:(0,s.jsx)(N.A,{icon:rt.A})}),(0,s.jsx)(r.__experimentalHStack,{className:"newspack-page__breadcrumbs",justify:"flex-start",children:(0,s.jsx)(C,{items:e})}),t]}),a&&(0,s.jsx)(k.B,{direction:"row",gap:"sm",align:"center",className:"newspack-page__header-actions",children:a})]}),n&&(0,s.jsx)(j.E,{render:(0,s.jsx)("p",{}),variant:"body-md",className:"newspack-page__header-subtitle",children:n})]}),o]}),i]});return(0,s.jsx)(nt.A,{className:i()("newspack-page",l),ariaLabel:d,children:(0,o.isValidElement)(c)?(0,o.cloneElement)(c,{renderShell:p,content:u}):p(null,u)})};class at extends o.Component{constructor(){super(...arguments),this.state={pluginInfo:{},installationInitialized:!1}}componentDidMount=()=>{const{plugins:e}=this.props;this.retrievePluginInfo(e).then(()=>{this.props.autoInstall&&this.installAllPlugins()})};componentDidUpdate=e=>{const{autoInstall:t,plugins:n}=this.props,{installationInitialized:r}=this.state;n!==e.plugins&&this.retrievePluginInfo(n),t&&!r&&this.installAllPlugins()};retrievePluginInfo=e=>new Promise(t=>{h()({path:"/newspack/v1/plugins/"}).then(n=>{const r=Object.keys(n).reduce((t,r)=>(-1===e.indexOf(r)||(t[r]={...n[r],installationStatus:"active"===n[r].Status?1:0}),t),{});this.updatePluginInfo(r).then(()=>t())})});installAllPlugins=()=>{const{pluginInfo:e}=this.state;this.setState({installationInitialized:!0}),Object.keys(e).filter(t=>"active"!==e[t].Status).map(e=>()=>this.installPlugin(e)).reduce((e,t)=>e.then(e=>t().then(Array.prototype.concat.bind(e))),Promise.resolve([]))};installPlugin=e=>{this.setInstallationStatus(e,2);const t={path:`/newspack/v1/plugins/${e}/configure/`,method:"post"};return h()(t).then(t=>(this.props.onInstalled(e),this.updatePluginInfo(n=>({...n,[e]:{...t,installationStatus:1}})))).catch(t=>{this.setInstallationStatus(e,3,t.message)})};setChecked=(e,t)=>{this.updatePluginInfo(n=>({...n,[e]:{...n[e],checked:t}}))};setInstallationStatus=(e,t,n=null)=>{this.updatePluginInfo(r=>({...r,[e]:{...r[e],installationStatus:t,notification:n}}))};updatePluginInfo=e=>new Promise(t=>{const{onStatus:n}=this.props;this.setState(t=>({pluginInfo:"function"==typeof e?e(t.pluginInfo):e}),()=>{const{pluginInfo:e}=this.state,r=Object.values(e).every(e=>"active"===e.Status);n({complete:r,pluginInfo:e}),t()})});classForInstallationStatus=e=>{switch(e){case 1:return"newspack-plugin-installer__status-active";case 2:return"newspack-plugin-installer__status-installing";case 3:return"newspack-plugin-installer__status-error";default:return"newspack-plugin-installer__status-none"}};render(){const{autoInstall:e,isSmall:t,withoutFooterButton:n}=this.props,{pluginInfo:r}=this.state,{is_managed:o}=window.newspack_aux_data||{},a=Object.keys(r),c=[];a.forEach(e=>{const t=r[e];c.push(t.Status)});const l=e=>"active"===e||"inactive"===e,u=c.every(l)?(0,v.__)("Activate","newspack-plugin"):(0,v.__)("Install","newspack-plugin"),p=a.some(e=>{const t=r[e];return"active"!==t.Status&&0===t.installationStatus});return(0,s.jsxs)(s.Fragment,{children:[(!r||!Object.keys(r).length)&&(0,s.jsxs)("div",{className:"newspack-plugin-installer_is-waiting",children:[(0,s.jsx)(Qt,{isLeft:!0}),(0,v.__)("Retrieving plugin information…","newspack-plugin")]}),r&&a.length>0&&a.map(e=>{const n=r[e],{Name:a,Description:c,Download:u,Status:p,installationStatus:f,notification:h}=n,g=2===f,m=!g&&"active"!==p,y=u||l(p);let w;2===f?w="inactive"===p?(0,v.__)("Activating…"):(0,v.__)("Installing…"):y?"uninstalled"===p?w=(0,s.jsxs)("span",{className:"newspack-plugin-installer__status",children:[(0,v.__)("Install","newspack"),(0,s.jsx)("span",{className:"newspack-checkbox-icon"})]}):"inactive"===p?w=(0,s.jsxs)("span",{className:"newspack-plugin-installer__status",children:[(0,v.__)("Activate","newspack-plugin"),(0,s.jsx)("span",{className:"newspack-checkbox-icon"})]}):"active"===p&&(w=(0,s.jsxs)("span",{className:"newspack-plugin-installer__status",children:[(0,v.__)("Installed","newspack-plugin"),(0,s.jsx)("span",{className:"newspack-checkbox-icon newspack-checkbox-icon--checked",children:(0,s.jsx)(N.A,{icon:Ye.A})})]})):w=(0,s.jsxs)("span",{className:"newspack-plugin-installer__status",children:[o?(0,v.__)("Contact Newspack support to install","newspack-plugin"):(0,v.__)("Plugin must be installed manually","newspack-plugin"),(0,s.jsx)("span",{className:"newspack-checkbox-icon"})]});const b=i()("newspack-action-card__plugin-installer",this.classForInstallationStatus(f)),_=m?()=>this.installPlugin(e):null;return(0,s.jsx)(d.A,{title:a,description:c,disabled:!y,actionText:w,isSmall:t,isWaiting:g,onClick:_,notification:h,notificationLevel:"error",notificationHTML:!0,className:b},e)}),!n&&!e&&r&&a.length>0&&(0,s.jsx)("div",{className:"newspack-buttons-card",children:(0,s.jsx)(A.A,{disabled:!p,isPrimary:!0,onClick:this.installAllPlugins,children:u})})]})}}at.defaultProps={onStatus:()=>{},onInstalled:()=>{}};const it=at;var st=n(52619);const ct=e=>Array.isArray(e.options)&&e.options.length,lt=e=>{switch(e.type){case"int":case"integer":case"float":case"number":return"number";case"string":case"text":return"text";case"password":return"password";case"boolean":case"checkbox":return"checkbox";default:return null}},ut=e=>{const[t,n]=(0,o.useState)(!0),{error:a,sectionKey:i,active:c,title:l,description:u,fields:p,disabled:f,onChange:h,onUpdate:g}=e,m=e=>({disabled:f,name:`${e.section}_${e.key}`,type:lt(e),label:e.description,help:e.help||null,options:e.options?.map(e=>({value:e.value,label:e.name||e.label}))||null,value:e.value,multiple:!(!ct(e)||!e.multiple)||null,checked:"boolean"===e.type?!!e.value:null,onChange:t=>{h(e.key,t),n(!1)}}),y=(t,n=null)=>(0,st.applyFilters)(`newspack.settingSection.${i}.${t}`,n,e);let w=2;return p.length%3==0?w=3:1===p.length&&(w=1),(0,s.jsx)(d.A,{id:e.id??null,isMedium:!0,disabled:f,title:l,description:u,toggleChecked:c,hasGreyHeader:c||null===c,toggleOnChange:null!==c?e=>g({active:e}):null,actionContent:(c||null===c)&&y("buttons",(0,s.jsx)(A.A,{variant:"primary",disabled:f||t,onClick:()=>{g(),n(!0)},children:(0,v.__)("Save Settings","newspack")})),children:(c||null===c)&&(0,s.jsxs)(o.Fragment,{children:[a?.message&&(0,s.jsx)(tt,{noticeText:a.message,isError:!0}),y("beforeControls"),(0,s.jsx)(We,{columns:w,gutter:32,children:p.map(e=>{const t=(e=>{if(ct(e))return Et;switch(e.type){case"checkbox":case"boolean":return r.CheckboxControl;default:return Zt}})(e);return(0,st.applyFilters)(`newspack.settingsSection.${i}.control`,(0,s.jsx)(t,{...m(e)},e.key),{sectionKey:i,setting:e,onChange:h})})})]})})};class dt extends o.Component{constructor(){super(...arguments),this.state={inFlight:!1,settings:{},error:null}}fetchSettings=()=>{const{afterFetch:e,pluginSlug:t,isWizard:n}=this.props;this.setState({inFlight:!0}),h()({path:n?`/newspack/v1/wizard/${t}/settings`:`/${t}/v1/settings`}).then(t=>{this.setState({settings:t,error:null}),"function"==typeof e&&e(t)}).catch(e=>{this.setState({error:e})}).finally(()=>{this.setState({inFlight:!1})})};componentDidMount(){this.fetchSettings()}getSettingsValues=e=>this.state.settings[e]?.reduce((e,t)=>(e[t.key]=t.value,e),{})||{};handleSettingChange=e=>(t,n)=>{const r=[...this.state.settings[e]];r.forEach(e=>{e.key===t&&(e.value=n)}),this.setState({settings:{...this.state.settings,[e]:r}})};handleSectionUpdate=e=>t=>{const{afterUpdate:n,pluginSlug:r,isWizard:o}=this.props;this.setState({inFlight:!0}),h()({path:o?`/newspack/v1/wizard/${r}/settings`:`/${r}/v1/settings`,method:"POST",data:{section:e,settings:t||this.getSettingsValues(e)}}).then(t=>{this.setState({settings:{...this.state.settings,[e]:t[e]},error:null}),"function"==typeof n&&n(t)}).catch(e=>{this.setState({error:e})}).finally(()=>{this.setState({inFlight:!1})})};getSectionInfo=e=>this.state.settings[e]?.find(e=>!e.key||"active"===e.key);getSectionTitle=e=>this.getSectionInfo(e)?.description;getSectionDescription=e=>this.getSectionInfo(e)?.help;isSectionActive=e=>{const{settings:t}=this.state,n=t[e]?.find(e=>"active"===e.key);return n?n.value:null};getSectionFields=e=>this.state.settings[e]?.filter(e=>e.key&&"active"!==e.key);render(){const{title:e,description:t,hasGreyHeader:n,children:r,titleLevel:a=1}=this.props,{settings:c,inFlight:l,error:u}=this.state;return(0,s.jsxs)(o.Fragment,{children:[e&&(0,s.jsx)(xt,{title:e,heading:a,description:t}),u&&(0,s.jsx)(tt,{isError:!0,noticeText:u.message}),(0,s.jsxs)("div",{className:i()("newspack-plugin-settings",{"newspack-wizard-section__is-loading":l&&!Object.keys(c).length}),children:[Object.keys(c).map(e=>(0,s.jsx)(ut,{disabled:l,id:`plugin-settings-${e}`,sectionKey:e,title:this.getSectionTitle(e),description:this.getSectionDescription(e),active:this.isSectionActive(e),fields:this.getSectionFields(e),onChange:this.handleSettingChange(e),onUpdate:this.handleSectionUpdate(e),hasGreyHeader:n},e)),r]})]})}}dt.defaultProps={title:(0,v.__)("General Settings","newspack-plugin")},dt.Section=ut;const pt=/^(2001|828|9406)$/.test(n.j)?dt:null;class ft extends(/^(828|9406)$/.test(n.j)?o.Component:null){state={pluginInfo:{}};componentDidMount=()=>{this.retrievePluginInfo()};retrievePluginInfo=()=>new Promise(()=>{h()({path:"/newspack/v1/plugins/"}).then(e=>this.setState({pluginInfo:e}))});managePlugin=(e,t)=>{const{plugins:n}=this.props,{pluginInfo:r}=this.state,o=t?"configure":"deactivate",a={path:`/newspack/v1/plugins/${e}/${o}/`,method:"post"};this.setState({pluginInfo:{...r,[e]:{...r[e],inFlight:o}}},()=>{h()(a).then(t=>{const{shouldRefreshAfterUpdate:r}=n[e];this.setState(({pluginInfo:n})=>({pluginInfo:{...n,[e]:t}}),()=>r&&location.reload())}).catch(t=>{this.setState({pluginInfo:{...r,[e]:{...r[e],error:t.message||(0,v.__)("There was an error managing this plugin.","newspack-plugin")}}})})})};render(){const{plugins:e}=this.props,{pluginInfo:t}=this.state;return this.prepareDataForRender(e,t).map((e,t)=>{const{name:n,description:r,href:o,slug:a,editPath:i}=e,c=this.isPluginInstalledAndActive(e),l=!o&&c&&i?a:null,u=this.errorForPlugin(e);return(0,s.jsx)(d.A,{className:this.classNameForPlugin(e),title:n,description:r,actionText:this.actionTextForPlugin(e),handoff:l,onClick:e.onClick??null,href:o,toggle:!0,toggleChecked:this.isPluginInstalledAndActive(e),toggleOnChange:e=>this.managePlugin(a,e),notification:u,notificationHTML:u,notificationLevel:"error"},t)})}prepareDataForRender=(e,t)=>Object.keys(e).map(e=>t[e]?Object.keys(t[e]).reduce((n,r)=>({...n,[r.charAt(0).toLowerCase()+r.slice(1)]:t[e][r]}),{}):{}).map(t=>Object.assign(t,e[t.slug]));classNameForPlugin=e=>{const{status:t,inFlight:n}=e;return n?"in-flight":t?void 0:"loading"};actionTextForPlugin=e=>{const{actionText:t,editPath:n,href:r,inFlight:a,name:i}=e;return"configure"===a?(0,s.jsxs)(o.Fragment,{children:[(0,v.__)("Installing…","newspack-plugin")," ",(0,s.jsx)(Qt,{isRight:!0})]}):"deactivate"===a?(0,s.jsxs)(o.Fragment,{children:[(0,v.__)("Deactivating…","newspack-plugin")," ",(0,s.jsx)(Qt,{isRight:!0})]}):i?this.isPluginInstalledAndActive(e)?r||n?t||(0,v.__)("Configure","newspack-plugin"):void 0:null:(0,s.jsxs)(o.Fragment,{children:[(0,v.__)("Loading…","newspack-plugin")," ",(0,s.jsx)(Qt,{isRight:!0})]})};errorForPlugin=e=>{const{slug:t}=e,{pluginInfo:n}=this.state;return n[t]?.error||null};isPluginInstalledAndActive=e=>{const{status:t}=e;return"active"===t}}const ht=/^(828|9406)$/.test(n.j)?ft:null;class gt extends o.Component{render(){const{className:e,padding:t,...n}=this.props,o=i()("newspack-popover",t&&"newspack-popover__padding-"+t,e);return(0,s.jsx)(r.Popover,{className:o,...n})}}gt.defaultProps={padding:!1};const vt=/^(2001|828)$/.test(n.j)?gt:null;class mt extends(/^(2001|6930|9406)$/.test(n.j)?o.Component:null){getCompletionPercentage(e,t){return t?Math.max(Math.min(Math.round(e/t*100),100),0):100}render(){const{label:e,completed:t,total:n,displayFraction:r}=this.props,o=Math.max(0,parseInt(n)||0),a=Math.max(0,Math.min(parseInt(t)||0,parseInt(o))),i={width:this.getCompletionPercentage(a,o)+"%"};return(0,s.jsxs)("div",{className:"newspack-progress-bar",children:[(e||r)&&(0,s.jsxs)("div",{className:"newspack-progress-bar__headings",children:[e&&(0,s.jsx)("h2",{children:e}),r&&(0,s.jsx)("p",{className:"is-dark",children:(0,s.jsxs)("strong",{children:[a,"/",o]})})]}),(0,s.jsx)("div",{className:"newspack-progress-bar__container",children:(0,s.jsx)("div",{className:"newspack-progress-bar__bar",style:i,"data-testid":"progress-bar-indicator"})})]})}}const yt=/^(2001|6930|9406)$/.test(n.j)?mt:null;class wt extends(2001==n.j?o.Component:null){render(){const{className:e,...t}=this.props,n=i()("newspack-radio-control",e);return(0,s.jsx)(r.RadioControl,{className:n,...t})}}const bt=2001==n.j?wt:null;var _t=n(46900);const xt=({backNav:e="",badges:t,centered:n=!1,className:a=null,description:c="",heading:l=2,icon:u=null,isWhite:d=!1,noMargin:p=!1,pageHeader:f=!1,title:h,id:g=null,menu:m,primaryAction:y,secondaryAction:w,children:b=null})=>{const _=(0,o.useRef)();(0,o.useEffect)(()=>{const e=new Proxy(new URLSearchParams(window.location.search),{get:(e,t)=>e.get(t)}).scrollTo;e&&e===g&&window.setTimeout(()=>_.current.scrollIntoView({behavior:"smooth"}),250)},[]);const k=i()("newspack-section-header",n&&"newspack-section-header--is-centered",d&&"newspack-section-header--is-white",p&&"newspack-section-header--no-margin",f&&"newspack-section-header--page-header"),j=`h${l}`;let S=null;return"string"==typeof h?S=(0,s.jsxs)("div",{className:"newspack-section-header__title-container",children:[(0,s.jsxs)(j,{className:"newspack-section-header__title",children:[h,t?.length?t.map((e,t)=>(0,s.jsx)(x,{text:e.label,level:e.level||"default"},t)):null]}),m?.length>0&&(0,s.jsx)(r.DropdownMenu,{className:"newspack-section-header__menu",icon:R.A,label:(0,v.__)("More options","newspack-plugin"),children:()=>m.map((e,t)=>(0,s.jsx)(r.MenuItem,{icon:e.icon,href:e.href,onClick:e.action,disabled:e.disabled||!1,isDestructive:e.destructive||!1,children:e.label},t))}),w&&(0,s.jsx)("div",{className:"newspack-section-header__secondary-action",children:(0,s.jsx)(A.A,{variant:"link",href:w.href,onClick:w.action,children:w.label})})]}):"function"==typeof h&&(S=(0,s.jsx)(j,{className:"newspack-section-header__title",children:h()})),(0,s.jsxs)("div",{id:g,className:i()("newspack-section-header__container",e&&"newspack-section-header--has-back-nav",y&&"newspack-section-header--has-primary-action",a),ref:_,children:[(0,s.jsxs)(We,{columns:1,gutter:8,className:k,children:[u&&(0,s.jsx)("div",{className:"newspack-section-header__icon",children:(0,s.jsx)(N.A,{icon:u,size:48})}),e?(0,s.jsxs)(r.__experimentalHStack,{alignment:"left",style:{position:"relative"},children:[(0,s.jsx)("div",{className:"newspack-section-header__back-nav",children:(0,s.jsx)(r.Tooltip,{text:(0,v.__)("Go back","newspack-plugin"),children:(0,s.jsx)(A.A,{href:e,icon:_t.A,variant:"tertiary"})})}),S]}):S,c&&"string"==typeof c&&(0,s.jsx)("p",{children:c}),"function"==typeof c&&(0,s.jsx)("p",{children:c()}),c&&"string"!=typeof c&&"function"!=typeof c&&(0,s.jsx)("p",{children:c}),b&&(0,s.jsx)("div",{className:"newspack-section-header__children",children:b})]}),y&&(0,s.jsx)("div",{className:"newspack-section-header__primary-action",children:(0,s.jsx)(A.A,{href:y.href,variant:"primary",onClick:y.action,children:y.label})})]})};var kt=n(2636),jt=n.n(kt);function St({help:e,label:t,onChange:n,optgroups:o=[],className:a,hideLabelFromVision:c,...l}){const u=_e.useUniqueId("group-select");return(0,s.jsx)(r.BaseControl,{label:t,hideLabelFromVision:c,id:u,help:e,className:i()(a,"components-select-control"),children:(0,s.jsxs)("div",{className:"newspack-grouped-select-control__field",children:[(0,s.jsxs)("select",{id:u,className:"components-select-control__input",onChange:e=>{const{value:t}=e.target,r=Y()(o,e=>jt()(e.options,["value",t]));n(t,r)},"aria-describedby":e?`${u}__help`:void 0,...l,children:[(0,s.jsx)("option",{value:"",children:(0,v.__)("-- Select --","newspack-plugin")}),o.map(({label:e,options:t},n)=>(0,s.jsx)("optgroup",{label:e,children:t.map((e,t)=>(0,s.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},`${e.label}-${e.value}-${t}`))},n))]}),(0,s.jsx)("div",{className:"components-select-control__arrow-wrapper",children:(0,s.jsx)(N.A,{icon:I.A,size:18})})]})})}const Ct=({buttonOptions:e,buttonSmall:t,className:n,help:o,hideLabelFromVision:a,label:c,onChange:l,value:u})=>{const d=_e.useUniqueId("button-group");return(0,s.jsx)(r.BaseControl,{label:c,help:o,hideLabelFromVision:a,id:d.current,className:i()(n,"components-select-control"),children:(0,s.jsx)(r.ButtonGroup,{children:e.map(e=>{const n=u===e.value;let o=()=>e.label;return e.icon&&(o=()=>(0,s.jsx)(N.A,{icon:e.icon})),(0,s.jsx)(r.Button,{variant:n?"primary":null,isPressed:n,onClick:()=>l(e.value),isSmall:t,children:(0,s.jsx)(o,{})},e.value)})})})};class At extends o.Component{render(){const{className:e,optgroups:t,buttonOptions:n,buttonSmall:o,...a}=this.props,c=i()("newspack-select-control",t&&"newspack-grouped-select-control",n&&"newspack-buttons-select-control",e);return(0,s.jsx)("div",{className:c,children:t?(0,s.jsx)(St,{optgroups:t,...a}):n?(0,s.jsx)(Ct,{buttonOptions:n,buttonSmall:o,...a}):(0,s.jsx)(r.SelectControl,{...a})})}}const Et=At,Pt={SettingsCard:({children:e,className:t,columns:n=3,gutter:r=32,noBorder:o,rowGap:a,...c})=>{const l=i()("newspack-settings__card",o&&"newspack-settings__no-border",t);return(0,s.jsx)(d.A,{...c,className:l,notificationLevel:"info",noBorder:o,children:(0,s.jsx)(We,{columns:n,gutter:r,rowGap:a,children:e})})},SettingsSection:({title:e,description:t,children:n})=>(0,s.jsxs)(We,{columns:1,gutter:8,className:"newspack-settings__section",children:[(0,s.jsxs)("div",{className:"newspack-settings__section__title",children:[(0,s.jsx)("span",{children:e}),t&&(0,s.jsx)(He,{text:t})]}),(0,s.jsx)("div",{className:"newspack-settings__section__content",children:n})]}),MinMaxSetting:({min:e,max:t,onChangeMin:n,onChangeMax:o,minPlaceholder:a,maxPlaceholder:i,...c})=>(0,s.jsxs)("div",{...c,children:[(0,s.jsxs)("div",{className:"newspack-settings__min-max",children:[(0,s.jsx)(r.CheckboxControl,{checked:e>0,onChange:e=>n(e?1:0),label:(0,v.__)("Min","newspack-plugin")}),(0,s.jsx)(Zt,{"data-testid":"min",type:"number",value:e,placeholder:a,onChange:e=>n(e>0?e:0)})]}),(0,s.jsxs)("div",{className:"newspack-settings__min-max","data-testid":"max",children:[(0,s.jsx)(r.CheckboxControl,{checked:t>0,onChange:t=>o(t?e||1:0),label:(0,v.__)("Max","newspack-plugin")}),(0,s.jsx)(Zt,{"data-testid":"max",type:"number",value:t,placeholder:i,onChange:e=>o(e>0?e:0)})]})]})};class Nt extends(2001==n.j?o.Component:null){render(){const{className:e,stepsListItems:t,narrowList:n,style:r={}}=this.props,o=i()("steps-list",e,n&&"steps-list__narrow-list");return(0,s.jsx)("div",{className:o,style:r,children:t.map((e,t)=>(0,s.jsx)(It,{listItemCount:t+1,listItemText:e},t))})}}const Ot=2001==n.j?Nt:null;class Tt extends(2001==n.j?o.Component:null){render(){const{className:e,listItemCount:t,listItemText:n,style:r={}}=this.props,o=i()("steps-list-item",e);return(0,s.jsxs)("div",{className:o,style:r,children:[(0,s.jsx)("div",{className:"steps-list-item__number",children:t}),(0,s.jsx)("div",{className:"steps-list-item__content",dangerouslySetInnerHTML:{__html:n}})]})}}const It=2001==n.j?Tt:null;class Mt extends(/^(2001|6930)$/.test(n.j)?o.Component:null){render(){const{ariaLabel:e,className:t,cardTitle:n,url:o,image:a,imageType:c,isActive:l,onClick:u,id:d}=this.props,p=i()("newspack-style-card",l&&"newspack-style-card__is-active",t);return(0,s.jsxs)("div",{className:p,id:d,children:[(0,s.jsxs)("div",{className:"newspack-style-card__image",children:["html"===c?(0,s.jsx)("div",{className:"newspack-style-card__image-html",dangerouslySetInnerHTML:a}):(0,s.jsx)("img",{src:a,alt:n+" "+(0,v.__)("Thumbnail","newspack-plugin")}),(0,s.jsxs)("div",{className:"newspack-style-card__actions",children:[l?(0,s.jsx)("span",{className:"newspack-style-card__actions__badge",children:(0,v.__)("Selected","newspack-plugin")}):(0,s.jsx)(r.Button,{variant:"link",onClick:u,"aria-label":e||(0,v.__)("Select","newspack-plugin")+" "+n,tabIndex:"0",children:(0,v.__)("Select","newspack-plugin")}),o&&(0,s.jsx)(Yt.A,{url:o,label:(0,v.__)("View Demo","newspack-plugin"),variant:"link"})]})]}),n&&(0,s.jsx)("div",{className:"newspack-style-card__title",children:n})]})}}const Rt=/^(2001|6930)$/.test(n.j)?Mt:null;var Lt=n(82921),zt=n(41177),Dt=n(58253),$t=n(17896),Ft=n(93948);const{useHistory:Ht,useLocation:Vt}=se.A,Bt=(e,t)=>e.path||e.href||`item-${t}`,Ut=(e,t)=>!!e.selected||(null===t?Boolean(e.href)&&window.location.href===e.href:(0,Ft.F)(e,t)),qt=(e,t)=>(0,s.jsxs)(s.Fragment,{children:[e,t]}),Wt=({items:e,className:t,disableUpcoming:n,content:r=null,renderShell:o=qt,children:a=null})=>{const c=Ht(),{pathname:l}=Vt(),u=e.filter(e=>!e.isHiddenInTabbedNavigation),d=u.reduce((e,t,n)=>Ut(t,l)&&(-1===e||(t.path?.length||0)>(u[e].path?.length||0))?n:e,-1),p=d>-1?Bt(u[d],d):null,f=(0,s.jsxs)("div",{className:i()("newspack-tabbed-navigation",t),children:[(0,s.jsx)(Lt.B,{activateOnFocus:!1,children:u.map((e,t)=>{const r=n&&t>d,o=e.path?`#${e.path}`:e.href;return(0,s.jsx)(zt.o,{value:Bt(e,t),disabled:r,nativeButton:!1,render:(0,s.jsx)("a",{href:r?void 0:o,onClick:r||!e.path?void 0:t=>((e,t)=>{e.defaultPrevented||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),t.path!==l&&c.push(t.path))})(t,e)}),children:e.label},Bt(e,t))})}),a]}),h=u.map((e,t)=>{const n=Bt(e,t);return(0,s.jsx)(Dt.Z,{value:n,tabIndex:-1,className:"newspack-tabbed-navigation__panel",children:n===p?r:null},n)}),g=null===p?r:null;return(0,s.jsx)($t.b,{value:p,className:"newspack-tabbed-navigation__root",children:o(f,(0,s.jsxs)(s.Fragment,{children:[h,g]}))})},Gt=({items:e,className:t,content:n=null,renderShell:r=qt,children:o=null})=>{const a=e.filter(e=>!e.isHiddenInTabbedNavigation);return r((0,s.jsxs)("nav",{className:i()("newspack-tabbed-navigation","newspack-tabbed-navigation--links",t),"aria-label":(0,v.__)("Secondary navigation","newspack-plugin"),children:[a.map((e,t)=>(0,s.jsx)("a",{href:e.href,className:"newspack-tabbed-navigation__link","aria-current":Ut(e,null)?"page":void 0,children:e.label},Bt(e,t))),o]}),n)},Kt=e=>e.items.some(e=>e.path)?(0,s.jsx)(Wt,{...e}):(0,s.jsx)(Gt,{...e}),Zt=({className:e="",required:t=!1,isWide:n=!1,withMargin:a=!0,...c})=>{const l=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(null===l.current)return;const e=l.current.querySelector("label");e&&e.setAttribute("data-required-text",(0,v.__)("(required)","newspack-plugin"))},[l.current]);const u=i()("newspack-text-control",{"newspack-text-control--wide":n,"newspack-text-control--with-margin":a},e);return t?(0,s.jsx)("div",{ref:l,className:"newspack-text-control--required",children:(0,s.jsx)(r.TextControl,{className:u,required:t,...c})}):(0,s.jsx)(r.TextControl,{className:u,...c})};class Jt extends o.Component{render(){const{className:e,isRight:t,isLeft:n,isCenter:o,noMargin:a,...c}=this.props,l=i()("newspack-waiting",e,{"is-right":t,"is-left":n,"is-center":o,"no-margin":a});return(0,s.jsx)(r.Spinner,{className:l,...c})}}const Qt=Jt;var Yt=n(5742),Xt=n(19542);const{Redirect:en,Route:tn}=se.A;function nn(e,t){return class extends o.Component{constructor(e){super(e),this.state={complete:null,error:null,loading:t&&t.length>0?1:0,quietLoading:!1,confirmation:null},this.wrappedComponentRef=(0,o.createRef)()}componentDidMount=()=>{if(!t){const e=this.wrappedComponentRef.current;e&&e.onWizardReady&&e.onWizardReady()}};setError=e=>new Promise(t=>{this.setState({error:e||null},()=>t())});getError=()=>{const{error:e}=this.state;if(!e)return null;const t=this.parseError(e),{level:n}=t;return"fatal"===n?this.getFatalError(t):this.getErrorNotice(t)};getErrorNotice=e=>{const{message:t}=e;return(0,s.jsx)(tt,{isError:!0,className:"newspack-wizard__above-header",noticeText:t,rawHTML:!0})};getFatalError=e=>{const t=this.getFallbackURL();if(!t)return null;const{message:n}=e;return(0,s.jsxs)(Ke,{title:(0,v.__)("Unrecoverable error"),onRequestClose:()=>window.location=t,children:[(0,s.jsx)(tt,{noticeText:n,isError:!0,rawHTML:!0}),(0,s.jsx)(r.__experimentalHStack,{justify:"flex-end",spacing:4,wrap:!0,className:"newspack-modal__footer",children:(0,s.jsx)(A.A,{isPrimary:!0,href:t,children:(0,v.__)("Return to Dashboard","newspack-plugin")})})]})};parseError=e=>{const{data:t,message:n,code:r}=e;let o="fatal";return t&&"level"in t?o=t.level:"rest_invalid_param"===r&&(o="notice"),{message:n,level:o}};pluginInstallationStatus=({complete:e})=>{this.state.loading&&this.doneLoading();const t=this.wrappedComponentRef.current;this.setState({complete:e},()=>{e&&t&&t.onWizardReady&&t.onWizardReady()})};startLoading=e=>{e?this.setState(e=>({quietLoading:e.quietLoading+1})):this.setState(e=>({loading:e.loading+1}))};doneLoading=e=>{e?this.setState(e=>({quietLoading:e.quietLoading-1})):this.setState(e=>({loading:e.loading-1}))};wizardApiFetch=e=>{const{quiet:t}=e;return this.startLoading(t),new Promise((n,r)=>{h()(e).then(e=>{this.doneLoading(t),n(e)}).catch(e=>{this.doneLoading(t),r(e)})})};pluginRequirements=()=>{const{complete:e}=this.state;if(e)return(0,s.jsx)(en,{from:"/plugin-requirements",to:"/"});const n=t.length>1?(0,v.__)("Required plugins","newspack-plugin"):(0,v.__)("Required plugin","newspack-plugin"),r=(0,s.jsx)("div",{className:"newspack-wizard newspack-wizard__content",children:(0,s.jsx)(it,{plugins:t,onStatus:e=>this.pluginInstallationStatus(e)})});return(0,s.jsx)(tn,{path:"/",render:()=>null===e?r:(0,s.jsx)(ot,{breadcrumbItems:[{label:n}],children:r})})};confirmAction=e=>{const t={title:null,message:(0,v.__)("Are you sure?","newspack-plugin"),confirmText:(0,v.__)("OK","newspack-plugin"),cancelText:(0,v.__)("Cancel","newspack-plugin"),callback:null,...e};this.setState({confirmation:t})};getModal=()=>{if(!this.state.confirmation)return null;const{title:e,message:t,confirmText:n,cancelText:o,callback:a}=this.state.confirmation;return t&&a&&(0,s.jsxs)(Ke,{size:"small",hideTitle:!e,title:e,onRequestClose:()=>this.setState({confirmation:null}),children:[(0,s.jsx)("p",{children:t}),(0,s.jsxs)(r.__experimentalHStack,{justify:"flex-end",spacing:4,wrap:!0,className:"newspack-modal__footer",children:[(0,s.jsx)(A.A,{variant:"secondary",onClick:()=>this.setState({confirmation:null}),children:o}),(0,s.jsx)(A.A,{variant:"primary",onClick:()=>{this.setState({confirmation:null}),a()},children:n})]})]})};getFallbackURL=()=>{if("undefined"!=typeof newspack_urls)return newspack_urls.dashboard};render(){const{simpleFooter:n}=this.props,{loading:r,quietLoading:a,error:i}=this.state,c=[r?"newspack-wizard__is-loading":"newspack-wizard__is-loaded"];return a&&c.push("newspack-wizard__is-loading-quiet"),(0,s.jsxs)(o.Fragment,{children:[this.getError(),this.getModal(),(0,s.jsx)("div",{className:c.join(" "),children:(0,s.jsx)(e,{confirmAction:this.confirmAction,pluginRequirements:t&&this.pluginRequirements(),clearError:this.clearError,getError:this.getError,errorData:i,setError:this.setError,isLoading:r,startLoading:this.startLoading,doneLoading:this.doneLoading,wizardApiFetch:this.wizardApiFetch,ref:this.wrappedComponentRef,...this.props})}),!r&&(0,s.jsx)(Te,{simple:n})]})}}}if(/^(2001|6930|828)$/.test(n.j))var rn=n(17248);var on=n(20860),an=n.n(on),sn=n(69323),cn=n.n(sn),ln=n(89589),un=n.n(ln);function dn(e){const t={};return an()(e)&&(t.onClick=e),un()(e)&&(t.href=e),cn()(e)&&(e.handoff&&(t.plugin=e.handoff,e.editLink&&(t.editLink=e.editLink)),e.onClick&&(t.onClick=e.onClick),e.href&&(t.href=e.href)),t}const{useLocation:pn}=se.A,fn=({sections:e,render:t})=>{const{pathname:n}=pn();return t((0,rn.p)(e,n))};function hn(e,{hidePrimaryButton:t,hideHeader:n}={}){return r=>{const{className:a,buttonText:c,buttonAction:l,buttonDisabled:u,headerText:d,subHeaderText:p,tabbedNavigation:f,breadcrumbItems:h,headerActions:g,secondaryButtonText:v,secondaryButtonAction:m,renderAboveContent:y,disableUpcomingInTabbedNavigation:w}=r,b=dn(l),_=dn(m),x=_.plugin?Le:A.A,k=c&&l,j=v&&m,S=(e={})=>b.plugin?(0,s.jsx)(Le,{isPrimary:!0,...b,...e,children:c}):(0,s.jsx)(A.A,{isPrimary:!u,isSecondary:!!u,disabled:u,children:c,...b,...e}),C=f&&(0,s.jsx)(Kt,{disableUpcoming:w,items:f.filter(e=>!e.isHiddenInNav)}),E=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(De,{}),(0,s.jsxs)("div",{className:i()("newspack-wizard newspack-wizard__content",a),children:["function"==typeof y?y():null,(0,s.jsx)(e,{...r,renderPrimaryButton:S}),(k||j)&&(0,s.jsxs)("div",{className:"newspack-buttons-card",children:[k&&!t&&S(),j&&(0,s.jsx)(x,{isSecondary:!0,..._,children:v})]})]})]}),P=e=>{let t=e??[];return!t.length&&d&&(t=[{label:d}]),(0,s.jsxs)(s.Fragment,{children:[newspack_aux_data.is_debug_mode&&(0,s.jsx)(tt,{debugMode:!0}),n?(0,s.jsx)(s.Fragment,{children:C?(0,o.cloneElement)(C,{content:E}):E}):(0,s.jsx)(ot,{breadcrumbItems:t,subTitle:p,actions:g,tabbedNavigation:C,children:E})]})};return n?P():h?P(h):f?(0,s.jsx)(fn,{sections:f,render:P}):P()}}const gn=/^(200|784)1$/.test(n.j)?[]:null,vn=/^(200|784)1$/.test(n.j)?function({when:e}){const{confirmDialog:t,requestConfirm:n}=be({when:e,message:(0,v.__)("You have unsaved changes that will be lost. Discard changes?","newspack-plugin"),confirmButtonText:(0,v.__)("Discard changes","newspack-plugin"),hideTitle:!0}),r=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(!e)return;const t=Symbol("unsaved-changes-guard");gn.push(t);const o=e=>{if(gn[gn.length-1]!==t)return;if(e.defaultPrevented||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||0!==e.button)return;const o=e.target,a=o?.closest("a[href]");if(!a)return;const i=a.getAttribute("href");if(!i||i.startsWith("#")||i.startsWith("javascript:"))return;if(a.target&&"_self"!==a.target)return;if(!function(e){try{const t=new URL(e.href,window.location.href);return t.origin===window.location.origin&&("http:"===t.protocol||"https:"===t.protocol)}catch(e){return!1}}(a))return;e.preventDefault(),e.stopPropagation();const s=a.href;n(()=>{r.current=!0,window.location.href=s})};return document.addEventListener("click",o,!0),()=>{document.removeEventListener("click",o,!0);const e=gn.indexOf(t);-1!==e&&gn.splice(e,1)}},[e,n]),(0,o.useEffect)(()=>{if(!e)return;const t=e=>{r.current||(e.preventDefault(),e.returnValue="")};return window.addEventListener("beforeunload",t),()=>window.removeEventListener("beforeunload",t)},[e]),{confirmDialog:t,requestConfirm:n}}:null},66647(e,t,n){"use strict";if(n.d(t,{A:()=>o}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(36910);const o=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?r:null},93948(e,t,n){"use strict";n.d(t,{F:()=>a});var r=n(66647);const{matchPath:o}=r.A,a=(e,t)=>{if(Array.isArray(e.activeTabPaths)){const n=e.activeTabPaths.some(e=>e.endsWith("*")?((e,t)=>{const n=e.slice(0,-1).replace(/\/$/,"");return t===n||t.startsWith(n+"/")})(e,t):e===t);if(n)return!0}if(!e.path)return!1;const n="/"===e.path||!0===e.exact;return!!o(t,{path:e.path,exact:n})}},6350(e,t,n){"use strict";function r(e){return"#"===e.charAt(0)&&(e=e.slice(1)),3===e.length&&(e=e.split("").map(function(e){return e+e}).join("")),(299*parseInt(e.substring(0,2),16)+587*parseInt(e.substring(2,4),16)+114*parseInt(e.substring(4),16))/1e3>=128?"black":"white"}n.d(t,{b:()=>r})},48028(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(48558),o=n(27723),a=n(56427),i=n(47143),s=n(98490),c=n.n(s),l=n(86087),u=n(86544),d=n(10790);const p="newspack-editor-toolbar-wrapper",f=({href:e})=>(0,d.jsx)(a.Tooltip,{text:(0,o.__)("Go back","newspack-plugin"),children:(0,d.jsx)(a.Button,{icon:u.A,label:(0,o.__)("Go back","newspack-plugin"),href:e})}),h={InteractiveDiv:({style:e={},...t})=>(0,d.jsx)("div",{tabIndex:"0",role:"button",onKeyDown:e=>r.ENTER===e.keyCode&&t.onClick(),style:{cursor:"pointer",...e},...t}),confirmAction:e=>!!confirm(e),addToolbarBackButton:(e="")=>{const t=(0,i.subscribe)(()=>{c()(()=>{if(document.getElementById(p))return;const n=document.querySelector(".editor-header__toolbar");if(!n)return;const r=document.createElement("div");r.id=p,n.prepend(r),(0,l.createRoot)(r).render((0,d.jsx)(f,{href:e})),t()})})}}},5742(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(86087),o=n(27723),a=n(88819),i=n(36055),s=n(5573),c=n(10790),l=(0,c.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(s.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})}),u=n(76099),d=n(41159),p=n(56427),f=n(6315),h=n(30395),g=n.n(h);const v="newspack-components-web-preview-wrapper";class m extends r.Component{state={device:"desktop",loaded:!1,isPreviewVisible:!1};constructor(e){super(e),this.iframeRef=(0,r.createRef)()}componentDidMount(){const e=document.getElementById(v);this.modalDOMElement=e||document.createElement("div"),e||(this.modalDOMElement.id=v,document.body.appendChild(this.modalDOMElement))}componentDidUpdate(e,t){!0===this.state.isPreviewVisible?(document.body.classList.add("newspack-web-preview--open"),!1===t.isPreviewVisible&&document.addEventListener("keydown",this.handleKeyDown)):(document.body.classList.remove("newspack-web-preview--open"),!0===t.isPreviewVisible&&document.removeEventListener("keydown",this.handleKeyDown))}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown),document.body.classList.remove("newspack-web-preview--open")}handleKeyDown=e=>{"Escape"===e.key&&this.state.isPreviewVisible&&this.closePreview()};closePreview=()=>{const{onClose:e=()=>{}}=this.props;e(),this.setState({isPreviewVisible:!1,loaded:!1})};getWebPreviewModal=()=>{const{beforeLoad:e=()=>{},url:t,title:n}=this.props,{device:s,loaded:h,isPreviewVisible:v}=this.state;if(!this.modalDOMElement||!v)return null;const m=g()("newspack-web-preview",s,h&&"is-loaded");let y=a.A;return"desktop"===s?y=i.A:"tablet"===s&&(y=l),e(),(0,r.createPortal)((0,c.jsx)("div",{className:m,children:(0,c.jsxs)("div",{className:"newspack-web-preview__interior",children:[(0,c.jsxs)("div",{className:"newspack-web-preview__toolbar",children:[n&&(0,c.jsx)("div",{className:"newspack-web-preview__toolbar-left",children:(0,c.jsx)("h3",{children:n})}),(0,c.jsxs)("div",{className:"newspack-web-preview__toolbar-right",children:[(0,c.jsx)(p.DropdownMenu,{icon:y,label:(0,o.__)("Preview Size","newspack-plugin"),children:({onClose:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(p.MenuItem,{icon:"desktop"===s?u.A:null,role:"menuitemradio",isSelected:"desktop"===s,onClick:()=>{this.setState({device:"desktop"}),e()},children:(0,o.__)("Desktop","newspack-plugin")}),(0,c.jsx)(p.MenuItem,{icon:"tablet"===s?u.A:null,role:"menuitemradio",isSelected:"tablet"===s,onClick:()=>{this.setState({device:"tablet"}),e()},children:(0,o.__)("Tablet","newspack-plugin")}),(0,c.jsx)(p.MenuItem,{icon:"phone"===s?u.A:null,role:"menuitemradio",isSelected:"phone"===s,onClick:()=>{this.setState({device:"phone"}),e()},children:(0,o.__)("Phone","newspack-plugin")})]})}),(0,c.jsx)(p.Button,{onClick:this.closePreview,icon:d.A,label:(0,o.__)("Close Preview","newspack-plugin")})]})]}),(0,c.jsxs)("div",{className:"newspack-web-preview__content",children:[!h&&(0,c.jsxs)("div",{className:"newspack-web-preview__is-waiting",children:[(0,c.jsx)(f.E$,{isLeft:!0}),(0,o.__)("Loading…","newspack-plugin")]}),(0,c.jsx)("iframe",{ref:this.iframeRef,title:"web-preview",src:t,onLoad:()=>{this.setState({loaded:!0}),this.props.onLoad(this.iframeRef.current)}})]})]})}),this.modalDOMElement)};showPreview=()=>{this.setState({isPreviewVisible:!0})};render(){const{label:e,variant:t,renderButton:n}=this.props;return(0,c.jsxs)(r.Fragment,{children:[n?n({showPreview:this.showPreview}):(0,c.jsx)(p.Button,{variant:t,onClick:this.showPreview,tabIndex:"0",children:e}),this.getWebPreviewModal()]})}}m.defaultProps={url:"//newspack.com",label:(0,o.__)("Preview","newspack-plugin"),onLoad:()=>{}};const y=/^(2001|5528|6930|9406)$/.test(n.j)?m:null},17248(e,t,n){"use strict";if(n.d(t,{j:()=>a,p:()=>o}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(93948);const o=(e=[],t)=>e?.length&&(e.find(e=>(0,r.F)(e,t))||e[0]).breadcrumbs||[],a=(e=[],t)=>t?(Array.isArray(t)?t:[{label:t}]).filter(e=>e?.label).reduce((e,t)=>e[e.length-1]?.label===t.label?e:[...e,t],e):e},19542(e,t,n){"use strict";n.d(t,{A:()=>A});var r=n(30395),o=n.n(r),a=n(56427),i=n(47143),s=n(86087),c=n(27723),l=n(46900),u=n(18277),d=n(63149),p=n(6315),f=n(17248),h=n(66647),g=n(1927),v=n(10790);const m=({children:e,type:t,actions:n=[],...r})=>{const s=o()("newspack-wizard__snackbar",r.className),c="error"===t?"assertive":"polite",{removeNotice:l,resetNotices:u}=(0,i.useDispatch)(g.S);return(0,v.jsx)(a.Snackbar,{...r,className:s,politeness:c,onRemove:()=>{r.onRemove&&r.onRemove(),r.id?l(r.id):u()},actions:n,children:e})},y=()=>{const e=(0,i.useSelect)(e=>e(g.S).getError());if(!e)return null;const{level:t,message:n}=(({data:e,message:t,code:n})=>{let r="fatal";return e&&"level"in e?r=e.level:"rest_invalid_param"===n&&(r="notice"),{message:t,level:r}})(e);if("fatal"===t){const e="undefined"!=typeof newspack_urls&&newspack_urls.dashboard;return(0,v.jsxs)(p.aF,{title:(0,c.__)("Unrecoverable error"),onRequestClose:e?()=>window.location=e:void 0,children:[(0,v.jsx)(p.$T,{noticeText:n,isError:!0,rawHTML:!0}),e&&(0,v.jsx)(a.__experimentalHStack,{justify:"flex-end",spacing:4,wrap:!0,className:"newspack-modal__footer",children:(0,v.jsx)(p.$n,{isPrimary:!0,href:e,children:(0,c.__)("Return to Dashboard","newspack-plugin")})})]})}return(0,v.jsx)(p.$T,{isError:!0,className:"newspack-wizard__above-header",noticeText:n,rawHTML:!0})};(0,g.A)();const w={chevronLeft:l.A,category:u.A,moreVertical:d.A},{HashRouter:b,Redirect:_,Route:x,Switch:k,useLocation:j}=h.A,S=()=>{const e=j(),{resetHeaderData:t}=(0,i.useDispatch)(g.S);return(0,s.useEffect)(()=>{t(),window.scrollTo(0,0)},[e.pathname,t]),null},C=({hideHeader:e,headerText:t,sections:n,sectionName:r,subTitle:o,actions:a,tabbedNavigation:i,children:c})=>{const{pathname:l}=j();if(e)return(0,s.isValidElement)(i)?(0,s.cloneElement)(i,{content:c}):c;let u=(0,f.p)(n,l);return!u.length&&t&&(u=[{label:t}]),u=(0,f.j)(u,r),(0,v.jsx)(p.YW,{breadcrumbItems:u,subTitle:o,actions:a,tabbedNavigation:i,children:c})},A=(0,s.forwardRef)(({sections:e=[],headerText:t,apiSlug:n,sharedProps:r={},subHeaderText:l,hasSimpleFooter:u,className:f,renderAboveSections:h,requiredPlugins:j=[],isInitialFetchTriggered:A=!0,hideHeader:E=!1},P)=>{const N=(0,i.useSelect)(e=>e(g.S).isLoading()),O=(0,i.useSelect)(e=>e(g.S).isQuietLoading()),T=(0,i.useSelect)(e=>e(g.S).getHeaderData()),I=(0,i.useSelect)(e=>e(g.S).getNotices()),{actions:M,backNav:R,badges:L,sectionDescription:z,sectionMenu:D,sectionName:$,sectionTitle:F,sectionPrimaryAction:H,sectionSecondaryAction:V}=T,B=M?.filter(e=>"primary"===e.type||"secondary"===e.type),U=M?.filter(e=>"more"===e.type);(0,i.useSelect)(e=>A&&e(g.S).getWizardAPIData(n));let q=e.filter(e=>!e.isHidden);const[W,G]=(0,s.useState)(0===j.length);W||(t=j.length>1?(0,c.__)("Required plugins","newspack-plugin"):(0,c.__)("Required plugin","newspack-plugin"),q=[{path:"/",render:()=>(0,v.jsx)(p.I2,{plugins:j,onStatus:({complete:e})=>G(e)})}]);const K=W?e:q,Z=q.length>1&&(0,v.jsx)(p.pe,{items:q,children:(0,v.jsx)(y,{})}),J=(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(p.uC,{}),e.length>1&&(0,v.jsx)(S,{}),(0,v.jsx)("div",{className:"newspack-wizard__main",children:(0,v.jsxs)(k,{children:[K.map((e,t)=>{const n=e.render,a=e.props||{};return(0,v.jsx)(x,{exact:e.exact??!1,path:e.path,render:t=>(0,v.jsxs)("div",{className:o()("newspack-wizard__content",f,{"newspack-wizard__content--full-width":e.fullWidth}),children:["function"==typeof h?h():null,(F||e.title)&&(0,v.jsx)(p.X3,{className:"newspack-wizard__section-header",backNav:R||e.backNav,title:F||e.title,description:z||e.description,badges:L||e.badges,menu:D||e.menu,primaryAction:H||e.primaryAction,secondaryAction:V||e.secondaryAction,heading:2,noMargin:!0}),(0,v.jsx)(n,{...t,...a,...r})]})},t)}),(0,v.jsx)(_,{to:q[0].path})]})})]}),Q=M?.length>0?(0,v.jsxs)(v.Fragment,{children:[B.map((e,t)=>{return(0,v.jsx)(p.$n,{className:"newspack-wizard__actions__main",href:e.href,icon:(n=e.icon,"string"==typeof n?w[n]||null:n),variant:e.type,onClick:e.action,disabled:e.disabled||!1,isDestructive:e.destructive||!1,children:e.label},t);var n}),(0,v.jsx)(a.DropdownMenu,{className:0===U?.length?"newspack-wizard__actions__more--primary-only":"",icon:d.A,label:(0,c.__)("More","newspack-plugin"),popoverProps:{className:"newspack-wizard__actions__more"},children:()=>M.reduce((e,t)=>((t.separator||0===e.length)&&e.push([]),e[e.length-1].push(t),e),[]).map((e,t)=>(0,v.jsx)(a.MenuGroup,{children:e.map((e,t)=>(0,v.jsx)(a.MenuItem,{className:"primary"===e.type||"secondary"===e.type?"newspack-wizard__actions__more__main":"newspack-wizard__actions__more__more",icon:e.icon,href:e.href,onClick:e.action,disabled:e.disabled||!1,isDestructive:e.destructive||!1,children:e.label},t))},t))})]}):void 0;return(0,v.jsxs)("div",{ref:P,children:[(0,v.jsxs)("div",{className:o()(N?"newspack-wizard__is-loading":"newspack-wizard__is-loaded",{"newspack-wizard__is-loading-quiet":O}),children:[(0,v.jsxs)(b,{hashType:"slash",children:[newspack_aux_data.is_debug_mode&&(0,v.jsx)(p.$T,{debugMode:!0}),(0,v.jsx)(C,{hideHeader:E,headerText:t,sections:K,sectionName:$,subTitle:l,actions:Q,tabbedNavigation:Z,children:J})]}),I?.length>0&&(0,v.jsx)("div",{className:"newspack-wizard__snackbar-list",children:I.map((e,t)=>(0,v.jsx)(m,{id:e.id,type:e.type,actions:e.actions,children:e.message},e.id||t))})]}),!N&&(0,v.jsx)(p.wi,{simple:u})]})})},1927(e,t,n){"use strict";n.d(t,{A:()=>y,S:()=>f});var r=n(62154),o=n.n(r),a=n(12438),i=n.n(a),s=n(30483),c=n.n(s),l=n(1455),u=n.n(l),d=n(47143),p=n(95698);const f="newspack/wizards",h={headerData:{actions:[],backNav:"",badges:[],sectionDescription:"",sectionName:"",sectionTitle:""},isLoading:!1,isQuietLoading:!1,apiData:{},notices:[],error:null},g=e=>JSON.parse(JSON.stringify(e)),v={setHeaderData:(0,p.V)("SET_HEADER_DATA"),resetHeaderData:(0,p.V)("RESET_HEADER_DATA"),startLoadingData:(0,p.V)("START_LOADING_DATA"),finishLoadingData:(0,p.V)("FINISH_LOADING_DATA"),fetchFromAPI:(0,p.V)("FETCH_FROM_API"),setAPIDataForWizard:(0,p.V)("SET_API_DATA"),updateWizardSettings:(0,p.V)("UPDATE_WIZARD_SETTINGS"),addNotice:(0,p.V)("ADD_NOTICE"),removeNotice:(0,p.V)("REMOVE_NOTICE"),resetNotices:(0,p.V)("RESET_NOTICES"),setError:(0,p.V)("SET_ERROR"),*saveWizardSettings({slug:e,section:t="",payloadPath:n=!1,auxData:r={},updatePayload:o=null}){o&&(yield v.updateWizardSettings({slug:e,...o}));const a=(0,d.select)(f).getWizardAPIData(e),s=n?i()(a,n):a,l=yield v.fetchFromAPI({path:`/newspack/v1/wizard/${e}/${t}`,method:"POST",data:{...s,...r},isQuietFetch:!0});if(!c()(l)&&!l.error)return v.setAPIDataForWizard({slug:e,data:l})},*wizardApiFetch(e){return yield v.fetchFromAPI(e)}},m=(0,d.createReduxStore)(f,{reducer:(e=h,{type:t,payload:n={}})=>{switch(t){case"SET_HEADER_DATA":return{...e,headerData:{...e.headerData,...n}};case"RESET_HEADER_DATA":return{...e,headerData:{...h.headerData}};case"START_LOADING_DATA":return n.isQuietLoading?{...e,isQuietLoading:!0}:{...e,isLoading:!0};case"FINISH_LOADING_DATA":return{...e,isLoading:!1,isQuietLoading:!1};case"SET_API_DATA":return{...e,apiData:o()(g(e.apiData),[n.slug],n.data)};case"UPDATE_WIZARD_SETTINGS":return{...e,apiData:o()(g(e.apiData),[n.slug,...n.path],n.value)};case"ADD_NOTICE":return{...e,notices:[...e.notices,n]};case"REMOVE_NOTICE":return{...e,notices:e.notices.filter(e=>e.id!==n)};case"SET_ERROR":return{...e,error:n};case"RESET_NOTICES":return{...e,notices:h.notices};default:return e}},actions:v,selectors:{getHeaderData:e=>e.headerData,isLoading:e=>e.isLoading,isQuietLoading:e=>e.isQuietLoading,getWizardAPIData:(e,t)=>e.apiData[t]||{},getWizardData:(e,t)=>e.apiData[t]??{},getNotices:e=>e.notices,getError:e=>e.error},controls:{FETCH_FROM_API:e=>{const{isLocalError:t=!1,isQuietFetch:n=!1}=e.payload;return(0,d.dispatch)(f).startLoadingData({isQuietLoading:Boolean(n)}),u()(e.payload).then(e=>((0,d.dispatch)(f).setError(null),e)).catch(e=>{if(t)throw e;(0,d.dispatch)(f).setError(e)}).finally(e=>((0,d.dispatch)(f).finishLoadingData(),e))}},resolvers:{*getWizardAPIData(e){if(e){const t=yield v.fetchFromAPI({path:`/newspack/v1/wizard/${e}`});return v.setAPIDataForWizard({slug:e,data:t})}return v.finishLoadingData()}}}),y=()=>(0,d.register)(m);(Object.getOwnPropertyDescriptor(y,"name")||{}).writable||Object.defineProperty(y,"name",{value:"default",configurable:!0})},95698(e,t,n){"use strict";n.d(t,{V:()=>a,l:()=>i});var r=n(47143),o=n(1927);const a=e=>t=>({type:e,payload:t}),i=(e,t={})=>(0,r.useSelect)(t=>t(o.S).getWizardAPIData(e))||t},3116(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(10790);const a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),i=/^(2617|9406)$/.test(n.j)?a:null},39238(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(10790);const a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M5.5 17.0009V18.5009H7.5V17.0009H5.5ZM5.5 20.0009C4.67188 20.0009 4 19.329 4 18.5009V17.0009V16.2509V15.5009V8.50092V7.75092V7.00092V5.50092C4 4.6728 4.67188 4.00092 5.5 4.00092C7.33333 4.00092 9.16667 4.00092 11 4.00092C11.6438 4.00092 12.1906 4.40405 12.4062 4.9728C12.5813 4.78217 12.8094 4.63842 13.075 4.56655L14.9344 4.05092C15.7063 3.83842 16.5 4.3103 16.7063 5.10717L17.2688 7.26967L17.4563 7.99467L19.3875 15.4415L19.575 16.1665L19.9469 17.604C20.1531 18.4009 19.6969 19.2197 18.925 19.4322L17.0625 19.9478C16.2906 20.1603 15.4969 19.6884 15.2906 18.8915L14.7281 16.729L14.5406 16.004L12.6125 8.5603L12.5 8.13217V8.50092V15.5009V16.2509V17.0009V18.5009C12.5 19.329 11.8281 20.0009 11 20.0009C9.08318 20.0009 7.41682 20.0009 5.5 20.0009ZM9 18.5009H11V17.0009H9V18.5009ZM7.5 5.50092H5.5V7.00092H7.5V5.50092ZM7.5 8.50092H5.5V15.5009H7.5V8.50092ZM9 7.00092H11V5.50092H9V7.00092ZM11 15.5009V8.50092H9V15.5009H11ZM17.7531 15.1165L16.0094 8.3978L14.2437 8.8853L15.9875 15.604L17.7531 15.1165ZM16.3656 17.0572L16.7375 18.4853L18.5 17.9978C18.5 17.9947 18.5 17.9915 18.5 17.9884V17.9853L18.1344 16.5728L16.3687 17.0603L16.3656 17.0572ZM13.8687 7.43217L15.6344 6.94467L15.2625 5.51655L13.5 6.00405C13.5 6.00717 13.5 6.0103 13.5 6.01655L13.8656 7.42905L13.8687 7.43217Z"})}),i=/^(2617|9406)$/.test(n.j)?a:null},87770(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(10790);const a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M4 14.5H20V16H4V14.5ZM4 20H13V18.5H4V20ZM12 5.9L10.1 4L4.7 9.4L4.1 12L6.7 11.4L12.1 6L12 5.9Z"})}),i=/^(2617|2741|5795|9406)$/.test(n.j)?a:null},8672(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(10790);const a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M19 5H5C4.46957 5 3.96086 5.21071 3.58579 5.58579C3.21071 5.96086 3 6.46957 3 7V17C3 17.5304 3.21071 18.0391 3.58579 18.4142C3.96086 18.7893 4.46957 19 5 19H19C19.5304 19 20.0391 18.7893 20.4142 18.4142C20.7893 18.0391 21 17.5304 21 17V7C21 6.46957 20.7893 5.96086 20.4142 5.58579C20.0391 5.21071 19.5304 5 19 5ZM19.5 17C19.5 17.1326 19.4473 17.2598 19.3536 17.3536C19.2598 17.4473 19.1326 17.5 19 17.5H5C4.86739 17.5 4.74021 17.4473 4.64645 17.3536C4.55268 17.2598 4.5 17.1326 4.5 17V7C4.5 6.86739 4.55268 6.74021 4.64645 6.64645C4.74021 6.55268 4.86739 6.5 5 6.5H19C19.1326 6.5 19.2598 6.55268 19.3536 6.64645C19.4473 6.74021 19.5 6.86739 19.5 7V17ZM16.602 9.4H17.626V15H16.786L14.226 11.16V15H13.202V9.4H14.21L16.602 13.016V9.4ZM11.291 9.4H12.291L10.147 15.68H9.147L11.29 9.4H11.291ZM7.15 9.4H7.934V15H6.91V10.848C6.80429 10.9156 6.69325 10.9744 6.578 11.024C6.45891 11.076 6.33402 11.1136 6.206 11.136L6.118 10.272C6.25527 10.2381 6.38534 10.1799 6.502 10.1C6.643 10.01 6.774 9.903 6.894 9.78C7.014 9.655 7.099 9.528 7.15 9.4Z"})}),i=/^(2617|3104|9406)$/.test(n.j)?a:null},7253(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(10790);const a=(0,o.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[(0,o.jsx)(r.Path,{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",fill:"#003da5"}),(0,o.jsx)(r.Path,{d:"M16.09 13.773V12.546H14.864L16.09 13.773ZM13.773 11.454H16.091V10.227H12.546L13.773 11.454ZM11.454 9.136H16.091V7.91H10.227L11.454 9.137V9.136ZM7.91 7.91L16.092 16.092H13.774L9.546 11.865V16.092H7.91V7.91Z",fill:"white"})]}),i=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?a:null},24675(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(10790);const a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M4 18.5H13V20H4V18.5ZM4 16H20V14.5H4V16ZM9 7.5C9.39782 7.5 9.77936 7.34196 10.0607 7.06066C10.342 6.77936 10.5 6.39782 10.5 6C10.5 5.60218 10.342 5.22064 10.0607 4.93934C9.77936 4.65804 9.39782 4.5 9 4.5C8.60218 4.5 8.22064 4.65804 7.93934 4.93934C7.65804 5.22064 7.5 5.60218 7.5 6C7.5 6.39782 7.65804 6.77936 7.93934 7.06066C8.22064 7.34196 8.60218 7.5 9 7.5ZM4 7C4 5.67392 4.52678 4.40215 5.46447 3.46447C6.40215 2.52678 7.67392 2 9 2C10.3261 2 11.5979 2.52678 12.5355 3.46447C13.4732 4.40215 14 5.67392 14 7C14 8.32608 13.4732 9.59785 12.5355 10.5355C11.5979 11.4732 10.3261 12 9 12C7.67392 12 6.40215 11.4732 5.46447 10.5355C4.52678 9.59785 4 8.32608 4 7ZM10.632 10.097C10.5644 9.99092 10.4711 9.90361 10.3608 9.84313C10.2506 9.78265 10.1268 9.75097 10.001 9.751H7.999C7.87321 9.75097 7.74945 9.78265 7.63916 9.84313C7.52886 9.90361 7.4356 9.99092 7.368 10.097C7.855 10.354 8.41 10.5 9 10.5C9.59 10.5 10.145 10.354 10.632 10.097ZM5.5 7C5.5 7.8 5.768 8.536 6.219 9.125C6.42896 8.85274 6.69865 8.63235 7.00727 8.48082C7.31589 8.32928 7.65519 8.25066 7.999 8.251H10.001C10.725 8.251 11.37 8.593 11.781 9.125C12.1185 8.68329 12.346 8.16752 12.4446 7.62041C12.5431 7.0733 12.5099 6.51059 12.3478 5.97885C12.1856 5.44712 11.8991 4.96166 11.512 4.56268C11.1248 4.1637 10.6483 3.86266 10.1217 3.68451C9.59508 3.50635 9.03362 3.45619 8.48378 3.53818C7.93395 3.62017 7.41155 3.83196 6.95984 4.156C6.50814 4.48005 6.14012 4.90703 5.88625 5.40159C5.63239 5.89616 5.49998 6.44408 5.5 7Z"})}),i=/^(1740|2617|9406)$/.test(n.j)?a:null},47704(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(10790);const a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M20 4H22.5V5.5H20V8H18.5V5.5H16V4H18.5V1.5H20V4ZM14 12.25H10C9.27065 12.25 8.57118 12.5397 8.05546 13.0555C7.53973 13.5712 7.25 14.2707 7.25 15V17H8.75V15C8.75 14.31 9.31 13.75 10 13.75H14C14.69 13.75 15.25 14.31 15.25 15V17H16.75V15C16.75 14.2707 16.4603 13.5712 15.9445 13.0555C15.4288 12.5397 14.7293 12.25 14 12.25ZM9.5 8.5C9.5 7.83696 9.76339 7.20107 10.2322 6.73223C10.7011 6.26339 11.337 6 12 6C12.663 6 13.2989 6.26339 13.7678 6.73223C14.2366 7.20107 14.5 7.83696 14.5 8.5C14.5 9.16304 14.2366 9.79893 13.7678 10.2678C13.2989 10.7366 12.663 11 12 11C11.337 11 10.7011 10.7366 10.2322 10.2678C9.76339 9.79893 9.5 9.16304 9.5 8.5ZM11 8.5C11 8.76522 11.1054 9.01957 11.2929 9.20711C11.4804 9.39464 11.7348 9.5 12 9.5C12.2652 9.5 12.5196 9.39464 12.7071 9.20711C12.8946 9.01957 13 8.76522 13 8.5C13 8.23478 12.8946 7.98043 12.7071 7.79289C12.5196 7.60536 12.2652 7.5 12 7.5C11.7348 7.5 11.4804 7.60536 11.2929 7.79289C11.1054 7.98043 11 8.23478 11 8.5Z"})}),i=/^(2617|9406)$/.test(n.j)?a:null},99386(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(10790);const a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M18.5 12C18.5 10.2761 17.8152 8.62279 16.5962 7.40381C15.3772 6.18482 13.7239 5.5 12 5.5C10.2761 5.5 8.62279 6.18482 7.40381 7.40381C6.18482 8.62279 5.5 10.2761 5.5 12C5.5 13.7239 6.18482 15.3772 7.40381 16.5962C8.62279 17.8152 10.2761 18.5 12 18.5C13.7239 18.5 15.3772 17.8152 16.5962 16.5962C17.8152 15.3772 18.5 13.7239 18.5 12ZM20 12C20 14.1217 19.1571 16.1566 17.6569 17.6569C16.1566 19.1571 14.1217 20 12 20C9.87827 20 7.84344 19.1571 6.34315 17.6569C4.84285 16.1566 4 14.1217 4 12C4 9.87827 4.84285 7.84344 6.34315 6.34315C7.84344 4.84285 9.87827 4 12 4C14.1217 4 16.1566 4.84285 17.6569 6.34315C19.1571 7.84344 20 9.87827 20 12ZM15.5 12C15.5 11.5404 15.4095 11.0852 15.2336 10.6606C15.0577 10.236 14.7999 9.85013 14.4749 9.52513C14.1499 9.20012 13.764 8.94231 13.3394 8.76642C12.9148 8.59053 12.4596 8.5 12 8.5C11.5404 8.5 11.0852 8.59053 10.6606 8.76642C10.236 8.94231 9.85013 9.20012 9.52513 9.52513C9.20012 9.85013 8.94231 10.236 8.76642 10.6606C8.59053 11.0852 8.5 11.5404 8.5 12C8.5 12.9283 8.86875 13.8185 9.52513 14.4749C10.1815 15.1313 11.0717 15.5 12 15.5C12.9283 15.5 13.8185 15.1313 14.4749 14.4749C15.1313 13.8185 15.5 12.9283 15.5 12ZM17 12C17 13.3261 16.4732 14.5979 15.5355 15.5355C14.5979 16.4732 13.3261 17 12 17C10.6739 17 9.40215 16.4732 8.46447 15.5355C7.52678 14.5979 7 13.3261 7 12C7 10.6739 7.52678 9.40215 8.46447 8.46447C9.40215 7.52678 10.6739 7 12 7C13.3261 7 14.5979 7.52678 15.5355 8.46447C16.4732 9.40215 17 10.6739 17 12ZM12.5 12C12.5 11.8674 12.4473 11.7402 12.3536 11.6464C12.2598 11.5527 12.1326 11.5 12 11.5C11.8674 11.5 11.7402 11.5527 11.6464 11.6464C11.5527 11.7402 11.5 11.8674 11.5 12C11.5 12.1326 11.5527 12.2598 11.6464 12.3536C11.7402 12.4473 11.8674 12.5 12 12.5C12.1326 12.5 12.2598 12.4473 12.3536 12.3536C12.4473 12.2598 12.5 12.1326 12.5 12ZM14 12C14 12.5304 13.7893 13.0391 13.4142 13.4142C13.0391 13.7893 12.5304 14 12 14C11.4696 14 10.9609 13.7893 10.5858 13.4142C10.2107 13.0391 10 12.5304 10 12C10 11.4696 10.2107 10.9609 10.5858 10.5858C10.9609 10.2107 11.4696 10 12 10C12.5304 10 13.0391 10.2107 13.4142 10.5858C13.7893 10.9609 14 11.4696 14 12Z"})}),i=/^9(001|406)$/.test(n.j)?a:null},74113(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(94715),o=n(27723),a=n(86087),i=n(17948),s=n(3582),c=n(47143),l=n(45618),u=n(70701);function d(){const{avatarURL:e}=(0,c.useSelect)(e=>{const{getSettings:t}=e(r.store),{__experimentalDiscussionSettings:n}=t();return n});return e}var p=n(98447),f=n(70851),h=n(93832),g=n(10790);const v=({avatar:e,size:t,attributes:n,placeholder:i=!1,overlapMaskStyle:s={}})=>{const c=(0,r.__experimentalUseBorderProps)(n),[l,u]=(0,a.useState)(n?.size??48);(0,a.useEffect)(()=>{const e=setTimeout(()=>u(n?.size??48),500);return()=>clearTimeout(e)},[n?.size]);const d=e?.src;if(!d&&!i)return null;if(i)return(0,g.jsx)("div",{className:"newspack-avatar-wrapper newspack-avatar-wrapper--placeholder",style:{"--avatar-size":t+"px",...c.style},role:"img","aria-label":(0,o.__)("No avatar available","newspack-plugin"),children:(0,g.jsx)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none","aria-hidden":"true",focusable:"false",children:(0,g.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"})})});const p=(0,h.addQueryArgs)((0,h.removeQueryArgs)(d,["s"]),{s:2*l}),v=(0,g.jsx)("img",{src:p,alt:e.alt||"",className:(0,f.A)("avatar","avatar-"+t,"photo","wp-block-newspack-avatar__image",c.className),style:{width:t,height:t,...c.style}});return(0,g.jsx)("div",{className:"newspack-avatar-wrapper",style:{"--avatar-size":t+"px",...s},children:n.linkToAuthorArchive?(0,g.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-newspack-avatar__link",onClick:e=>e.preventDefault(),children:v}):v})};var m=n(56427);const y=({setAttributes:e,attributes:t})=>(0,g.jsx)(r.InspectorControls,{children:(0,g.jsxs)(m.PanelBody,{title:(0,o.__)("Settings","newspack-plugin"),children:[(0,g.jsx)(m.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,o.__)("Image size","newspack-plugin"),onChange:t=>e({size:t}),min:16,max:128,initialPosition:t.size,value:t.size}),(0,g.jsx)(m.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Link to author archive","newspack-plugin"),onChange:()=>e({linkToAuthorArchive:!t.linkToAuthorArchive}),checked:t.linkToAuthorArchive})]})}),w=({attributes:e,context:t,setAttributes:n})=>{const f=(0,a.useMemo)(()=>(0,p.l)(e),[e.className,e?.style?.border?.radius,e.size]),h=(0,r.useBlockProps)(),m=t["newspack-blocks/author"],w=(0,i.Y)(),b=(0,a.useContext)(w),_=m||b,x=d(),{postId:k,postType:j}=t,S=function({postId:e,postType:t}){const{authorDetails:n}=(0,c.useSelect)(n=>{const{getEditedEntityRecord:r,getUser:o}=n(s.store),a=r("postType",t,e)?.author;return{authorDetails:a?o(a):null}},[t,e]),r=n?.avatar_urls?Object.values(n.avatar_urls):null,a=n?.avatar_urls?Object.keys(n.avatar_urls):null,{minSize:i,maxSize:l}=function(e){const t=e?e[0]:24,n=e?e[e.length-1]:128;return{minSize:t,maxSize:Math.floor(2.5*n)}}(a),u=d();return{src:r?r[r.length-1]:u,minSize:i,maxSize:l,alt:n? // translators: %s: Author name. // translators: %s: Author name. (0,o.sprintf)((0,o.__)("%s Avatar","newspack-plugin"),n?.name):(0,o.__)("Default Avatar","newspack-plugin")}}({userId:e?.userId,postId:k,postType:j}),C=function({postId:e,postType:t="post"}){const{bylineActive:n,bylineContent:r}=(0,u.k)(e,t),{authors:o}=(0,l.Cf)(e,t,n),i=d(),p=(0,a.useMemo)(()=>n&&r?(0,u.o)(r):[],[n,r]),f=p.length>0,h=n&&!f,g=(0,c.useSelect)(e=>{if(h)return null;const{getUser:t}=e(s.store);if(f){const e={};return p.forEach(n=>{e[n]=t(n)||null}),e}if(o&&o.length>0){const e={};return o.forEach(n=>{n.id&&!n.isGuest&&(e[n.id]=t(n.id)||null)}),e}return null},[h,f,p,o]),v=(0,a.useMemo)(()=>h||!g?[]:f?p.map(e=>{const t=g[e];return t?{id:e,name:t.name||"",display_name:t.name||"",avatar_urls:t.avatar_urls||null}:null}).filter(Boolean):o&&o.length>0?o.map(e=>{const t=e.id&&!e.isGuest?g[e.id]:null;return{id:e.id,name:e.display_name,display_name:e.display_name,user_nicename:e.user_nicename,author_link:e.author_link,avatar_urls:t?.avatar_urls||e.avatar_urls||null}}):[],[h,f,p,o,g]);return(0,a.useMemo)(()=>v.map(e=>({...e,avatarSrc:e.avatar_urls?.[96]||i})),[v,i])}({postId:k,postType:j}),{bylineActive:A,bylineContent:E}=(0,u.k)(k,j),P=(0,a.useMemo)(()=>(0,u.o)(E),[E]),N=(t,n)=>(0,g.jsx)(v,{avatar:t,size:e.size,attributes:e,overlapMaskStyle:f},n);if(_){let t="";if(_.avatar)if(_.avatar.includes("{const n={src:e.avatarSrc,alt:e?.name||e?.display_name||""};return N(n,e.id||t)}):N(S,"single-author")})]}):(0,g.jsx)("div",{...h,children:(0,o.__)("Loading avatar…","newspack-plugin")})}},98447(e,t,n){"use strict";n.d(t,{l:()=>r});const r=e=>{if(!(e.className||"").includes("is-style-overlapped"))return{};let t=e?.style?.border?.radius??"100%";if("object"==typeof t){const e=Object.values(t);if(1!==new Set(e).size)return{};t=e[0]}if("string"!=typeof t)return{};const n=e.size||48,r=1.1*n,o=(r-n)/2;let a;if(a=t.endsWith("%")?parseFloat(t)/100*n:t.endsWith("rem")||t.endsWith("em")?16*parseFloat(t):parseFloat(t),Number.isNaN(a))return{};const i=Math.round(100*Math.max(0,Math.min(r/2,a+o)))/100;return{"--overlap-mask":`url("data:image/svg+xml,${encodeURIComponent(``)}")`}}},27314(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(56427),a=n(27723);if(/^(2617|3104)$/.test(n.j))var i=n(96348);var s=n(10790);function c(){const{loggedin_metered_views:e,anonymous_metered_views:t,metering_period:n}=newspack_blocks.content_gate_data||{},c=(0,r.useBlockProps)({className:"newspack-content-gate-countdown-box__wrapper"}),{children:l,...u}=(0,r.useInnerBlocksProps)({className:"newspack-content-gate-countdown-box__content"},{template:[["core/group",{layout:{type:"flex",orientation:"horizontal",flexWrap:"nowrap",justifyContent:"space-between"}},[["core/group",{layout:{type:"flex",orientation:"vertical",flexWrap:"nowrap"},style:{spacing:{blockGap:"var:preset|spacing|20"}}},[["core/group",{layout:{type:"flex",orientation:"horizontal",flexWrap:"nowrap"},style:{spacing:{blockGap:"0.25em"}}},[["newspack/content-gate-countdown",{fontSize:"small",lock:{move:!1,remove:!0},style:{typography:{fontStyle:"normal",fontWeight:"700"}}}],["core/paragraph",{content:(0,a.sprintf)(/* translators: %s is the metered period, e.g. "month" or "week". */ /* translators: %s is the metered period, e.g. "month" or "week". */ (0,a.__)("free articles this %s","newspack-plugin"),n),fontSize:"small",style:{typography:{fontStyle:"normal",fontWeight:"700",textTransform:"uppercase"}}}]]],["core/paragraph",{content:(0,a.sprintf)(/* translators: %1$s is subscribe message, %2$s is sign in link */ /* translators: %1$s is subscribe message, %2$s is sign in link */ (0,a.__)("%1$s %2$s","newspack-plugin"),(0,a.__)("Subscribe now and get unlimited access.","newspack-plugin"),''+(0,a.__)("Sign in to an existing account.","newspack-plugin")+""),fontSize:"small",style:{elements:{link:{color:{text:"var:preset|color|medium-gray"}}}},textColor:"medium-gray"}]]],["newspack-blocks/checkout-button",{text:(0,a.__)("Subscribe now","newspack-plugin")}]]]]});return e||t?(0,s.jsx)("div",{...c,children:(0,s.jsx)("div",{...u,children:l})}):(0,s.jsx)("div",{...c,children:(0,s.jsx)(o.Placeholder,{icon:i.A,label:(0,a.__)("Content Gate Countdown","newspack-plugin"),className:"newspack-content-gate-countdown-box__placeholder",children:(0,a.__)("The content gate countdown block will only display in restricted content when metering is enabled.","newspack-plugin")})})}},76929(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(27723);if(/^(2617|5795)$/.test(n.j))var o=n(95834);var a=n(47143),i=n(86087),s=n(84871),c=n.n(s),l=n(94715),u=n(56427),d=n(39782),p=n(10790);function f({attributes:e,setAttributes:t}){const[n,s]=(0,i.useState)(!1),f=(0,a.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),h=(0,l.useBlockProps)();function g(){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("p",{children:(0,r.__)("This is the Corrections block, it will display all the corrections and clarifications.","newspack-plugin")}),(0,p.jsx)("p",{children:(0,r.__)("If there are no corrections or clarifications, this block will not be displayed.","newspack-plugin")})]})}function v(){return(0,p.jsx)(l.InspectorControls,{children:(0,p.jsx)(u.PanelBody,{title:(0,r.__)("Correction Box Settings","newspack-plugin"),children:(0,p.jsx)(u.PanelRow,{children:(0,p.jsx)(u.SelectControl,{label:(0,r.__)("Corrections by Priority","newspack-plugin"),help:(0,r.__)("Filter corrections by their priority.","newspack-plugin"),value:e.priority,options:[{label:(0,r.__)("High","newspack-plugin"),value:"high"},{label:(0,r.__)("Low","newspack-plugin"),value:"low"},{label:(0,r.__)("All","newspack-plugin"),value:"all"}],onChange:e=>t({priority:e})})})})})}return"wp_template"===f?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(v,{}),(0,p.jsx)("div",{...h,children:(0,p.jsx)(g,{})})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(v,{}),(0,p.jsx)(l.BlockControls,{children:(0,p.jsx)(u.ToolbarGroup,{children:(0,p.jsx)(u.ToolbarButton,{icon:o.A,label:(0,r.__)("Refresh","newspack-plugin"),onClick:()=>{s(!n)}})})}),(0,p.jsx)("div",{...h,children:(0,p.jsx)(c(),{block:d.name,EmptyResponsePlaceholder:g,refresh:n,attributes:e})})]})}},13521(e,t,n){"use strict";var r=n(72397),o=n(71015);window.newspackRAS=window.newspackRAS||[];let a=null;function i(){if(a){const e=a;a=null,(0,o.ZZ)(()=>{window.location.href=e})}else(0,o.q9)()}function s(e,t,n,r,o,s=!0){const c=document.createElement("div");c.classList.add("newspack-ui"),c.innerHTML='
';e.addEventListener("click",l=>{document.body.appendChild(c);const u=e.getAttribute("href");if(u)try{(async e=>{const c=await fetch(e);window.newspackOpenModalCheckout({url:s?c.url:null,title:t,actionType:n,onCheckoutComplete:e=>{!function(e){const{subscription_renewal:t,subscription_ids:n,order_id:r}=e;n?.length?a=`${newspackMyAccountV1.myAccountUrl}/view-subscription/${n[0]}`:t?a=`${newspackMyAccountV1.myAccountUrl}/view-subscription/${t}`:r&&(a=`${newspackMyAccountV1.myAccountUrl}/view-order/${r}`)}(e),r&&r(e)},onClose:o||i})})(u),l.preventDefault()}catch(e){document.body.removeChild(c),console.error(e)}})}window.newspackRAS=window.newspackRAS||[],(0,r.Qc)(()=>{document.querySelectorAll(".resubscribe").forEach(e=>{s(e,newspackMyAccountV1.labels.resubscribe_title,"resubscribe",e=>{window.newspackRAS.push(["subscription_reactivated",{subscription_id:e.subscription_ids?.[0]}])})}),document.querySelectorAll(".subscription_renewal_early").forEach(e=>{s(e,newspackMyAccountV1.labels.renewal_early_title,"renewal_early",e=>{window.newspackRAS.push(["renewal_early",{subscription_id:e.subscription_renewal}])})}),document.querySelectorAll(".change_payment_method").forEach(e=>{s(e,newspackMyAccountV1.labels.change_payment_method_title,"change_payment_method",e=>{window.newspackRAS.push(["change_payment_method",{subscription_id:e.subscription_ids?.[0]}])})}),document.querySelectorAll("p.order-again a").forEach(e=>{s(e,null,"order_again",e=>{window.newspackRAS.push(["product_reordered",{order_id:e.order_id,product_id:e.product_id}])},null,!1)}),document.querySelectorAll(".pay").forEach(e=>{const t=e.dataset?.subscriptionId,n=e.dataset?.action||"pay_order";s(e,e.dataset?.title||null,n,e=>{window.newspackRAS.push([n,{subscription_id:t||e.subscription_renewal?e.subscription_renewal:e.subscription_ids?.[0]}])})})})},44639(e,t,n){"use strict";function r(e){const t=[],n=e.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])');if(0===n.length)return!1;const r=n?.[0];n.forEach(function(e,n){null!==e.offsetParent&&(t[n]=e)});const o=t[t.length-1];r.focus(),document.addEventListener("keydown",function(e){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===r&&(o.focus(),e.preventDefault()):document.activeElement===o&&(r.focus(),e.preventDefault()))})}n.d(t,{o:()=>r})},34357(e,t,n){"use strict";if(n.d(t,{FO:()=>o,P6:()=>a,eK:()=>i}),/^(193|2636|3619)$/.test(n.j))var r=n(44639);const o=/^(193|2636|3619)$/.test(n.j)?["signin_modal","register_modal"]:null;function a(){return document.querySelector(".newspack-reader-auth-modal .newspack-reader-auth")}function i(e={}){const t=window.newspackReaderActivation.getReader(),n=e.trigger;if(!e.skipAuthenticatedCheck&&t?.authenticated)return void(e.onSuccess&&"function"==typeof e.onSuccess&&e.onSuccess());const i=a();if(!i)return void(e.onSuccess&&"function"==typeof e.onSuccess&&e.onSuccess());const s=i.closest(".newspack-reader-auth-modal");if(!s)return void(e.onSuccess&&"function"==typeof e.onSuccess&&e.onSuccess());const c=e=>{"Escape"===e.key&&p()},l=e=>{e.preventDefault(),p()};let u=!1,d=!1;const p=()=>{if(u)return;u=!0,s.removeEventListener("closeModal",f),i.config={},s.setAttribute("data-state","closed"),document.body.classList.remove("newspack-signin"),s.overlayId&&window.newspackReaderActivation?.overlays&&window.newspackReaderActivation.overlays.remove(s.overlayId);const t=i.querySelector(".opener-content");t&&t.remove(),n&&n.focus(),!d&&e.onDismiss&&"function"==typeof e.onDismiss&&e.onDismiss(),e.onClose&&"function"==typeof e.onClose&&e.onClose(),document.removeEventListener("keydown",c),h.forEach(e=>{e.removeEventListener("click",l)})},f=()=>p();s.addEventListener("closeModal",f);const h=s.querySelectorAll("button[data-close], .newspack-ui__modal__close");if(h?.length&&h.forEach(e=>{e.addEventListener("click",l)}),document.addEventListener("keydown",c),e.labels={...newspack_reader_activation_labels,...e?.labels},i.config=e,i.authCallback=(t,n)=>{d=!0,e?.closeOnSuccess&&p(),e.onSuccess&&"function"==typeof e.onSuccess&&e.onSuccess(t,n)},i.formActionCallback=t=>{const n=s.querySelector("h2");n&&(n.textContent=e.labels.signin.title),s.querySelectorAll("[data-action]").forEach(e=>{"none"!==e.style.display&&(e.prevDisplay=e.style.display),e.style.display="none"}),s.querySelectorAll('[data-action~="'+t+'"]').forEach(e=>{e.style.display=e.prevDisplay}),r.o(s)},e.content){const t=document.createElement("div");t.classList.add("opener-content"),t.innerHTML=e.content;const n=i.querySelector("form");n.insertBefore(t,n.firstChild)}const g=i.querySelector('input[name="npe"]');g&&(g.value=t?.email||"");let v="signin";var m;window.newspackReaderActivation?.hasAuthLink()&&(v="otp"),e.initialState&&(v=e.initialState),m=()=>{i.setFormAction(v,!0),"otp"===v&&window?.newspackReaderActivation?.getOTPTimeRemaining()<=0&&i.setFormAction("signin")},document._newspackReaderAuthFormReady?m():document.addEventListener("newspack-reader-auth-form-ready",m),document.body.classList.add("newspack-signin"),s.setAttribute("data-state","open"),window.newspackReaderActivation?.overlays&&(s.overlayId=window.newspackReaderActivation.overlays.add("auth-modal"),r.o(s)),o.includes(window.location.hash.replace("#",""))&&history.pushState("",document.title,window.location.pathname+window.location.search)}},16082(e,t,n){"use strict";if(n.d(t,{E:()=>a}),/^(193|2636)$/.test(n.j))var r=n(44639);let o=null;function a({email:e,onProceed:t,onCancel:n=()=>{}}){if(newspack_ras_config?.verify_new_reader_accounts)return void t();if(!newspack_ras_config?.check_email_url)return void t();const a=()=>t(),i=new FormData;i.set("email",e),fetch(newspack_ras_config.check_email_url,{method:"POST",headers:{Accept:"application/json"},body:i}).then(e=>e.ok?e.json():(a(),null)).then(t=>{null!==t&&(t?.exists?a():function(e={}){const t=document.getElementById("newspack-my-account__newspack-reader-registration-confirmation"),n=t?.querySelector("[data-confirm-register]");if(!t||!n)return!1;o&&o.abort(),o=new AbortController;const{signal:a}=o,i=t.querySelector(".email-address");i&&e.email&&(i.textContent=e.email);let s=!1;const c=()=>{o&&o.signal===a&&(o=null)};return n.disabled=!1,n.addEventListener("click",function(){s=!0,t.setAttribute("data-state","closed"),o?.abort(),c(),"function"==typeof e.onConfirm&&e.onConfirm()},{signal:a}),t.addEventListener("closeModal",function(){s||(c(),"function"==typeof e.onCancel&&e.onCancel())},{signal:a}),t.setAttribute("data-state","open"),r.o(t),!0}({email:e,onConfirm:a,onCancel:n})||a())}).catch(a)}},712(e,t,n){"use strict";if(n.d(t,{F:()=>a}),/^(193|2636)$/.test(n.j))var r=n(44639);let o=null;function a(e={}){const t=document.getElementById("newspack-my-account__newspack-reader-verification"),n=t?.querySelector("[data-send-otp]");if(!t||!n)return"function"==typeof e.onDismiss&&e.onDismiss(),!1;o&&o.abort(),o=new AbortController;const{signal:a}=o,i=t.querySelector(".email-address");i&&e.email&&(i.textContent=e.email);let s=!1;const c=()=>{o&&o.signal===a&&(o=null)};return n.disabled=!1,n.addEventListener("click",function(){n.disabled=!0,function(e){const t=new FormData;return t.set("action","newspack_reader_registration_verification"),t.set("nonce",e),fetch(newspack_ras_config.verification_url,{method:"POST",headers:{Accept:"application/json"},body:t}).then(e=>{if(!e.ok)throw new Error(e.statusText);return e.json()}).then(e=>{if(!e?.success)throw new Error(e?.data||"Failed to send verification code.");return e})}(e.verificationNonce).then(()=>{s=!0,"function"==typeof e.setOTPTimer&&e.setOTPTimer(),t.setAttribute("data-state","closed"),o?.abort(),c(),"function"==typeof e.onSendCode&&e.onSendCode()}).catch(()=>{n.disabled=!1,n.textContent=n.textContent.trim();const e=t.querySelector(".newspack-ui__box p:not(:has(button))");e&&(e.textContent=newspack_reader_activation_labels?.verification_error||"")})},{signal:a}),t.addEventListener("closeModal",function(){s||(c(),"function"==typeof e.onDismiss&&e.onDismiss())},{signal:a}),t.setAttribute("data-state","open"),r.o(t),!0}},36267(e,t,n){"use strict";if(n.d(t,{VU:()=>s,au:()=>c}),/^(193|2636|8974)$/.test(n.j))var r=n(44639);var o=n(75362),a=n(82613);function i(){return document.querySelector(".newspack-newsletters-signup-modal .newspack-newsletters-signup")}async function s(){const e=i();if(!e)return;if(!e.closest(".newspack-newsletters-signup-modal"))return;const t=(0,o.C)(),n={};t&&(n["X-WP-Nonce"]=t);try{const t=window.newspack_reader_activation_newsletters?.newsletters_url||"/wp-json/newspack/v1/reader-newsletter-signup-lists",r=await fetch(t,{credentials:"same-origin",headers:n});if(!r.ok)return;const{html:o}=await r.json();if(o){const t=(new DOMParser).parseFromString(o,"text/html"),n=e.querySelector("form");n&&n.remove();const r=t.querySelector(".newspack-newsletters-signup form");r&&e.appendChild(r),e.dispatchEvent(new Event("newspack:refresh"))}}catch{}}function c(e={}){const t=i();if(!t)return void(e?.onSuccess&&"function"==typeof e.onSuccess&&e.onSuccess());const n=t.closest(".newspack-newsletters-signup-modal");if(!n)return void(e?.onSuccess&&"function"==typeof e.onSuccess&&e.onSuccess());const o=t.querySelector("form"),a=(r=!0)=>{t.config={},n.setAttribute("data-state","closed"),n?.overlayId&&window?.newspackReaderActivation?.overlays&&window.newspackReaderActivation.overlays.remove(n.overlayId);const o=t.querySelector(".opener-content");o&&o.remove(),r&&e.onDismiss&&"function"==typeof e.onDismiss&&e.onDismiss()},s=n.querySelectorAll("button[data-close], .newspack-ui__modal__close");if(s?.length&&s.forEach(e=>{e.addEventListener("click",function(e){e.preventDefault(),a()})}),e.labels={...e?.labels},t.config=e,t.newslettersSignupCallback=(t,n)=>{e?.closeOnSuccess&&a(!1),e?.onSuccess&&"function"==typeof e.onSuccess&&e.onSuccess(t,n)},e?.content){const t=document.createElement("div");t.classList.add("opener-content"),t.innerHTML=e.content,o.insertBefore(t,o.firstChild)}e?.signupMethod&&o.setAttribute("data-signup-method",e.signupMethod);const c=n.querySelector("strong.email");if(c&&!c.innerText){const e=window?.newspackReaderActivation?.getReader();e?.email?c.textContent=e.email:c.parentElement.remove()}n.setAttribute("data-state","open"),r.o(n),window?.newspackReaderActivation?.overlays&&(n.overlayId=window.newspackReaderActivation.overlays.add())}(0,a.on)(a.qY.session,s)},61886(e,t,n){"use strict";n.d(t,{Ay:()=>a});const r={},o=(e,t,n)=>{n||(n=`np_${e}`),t||(t=e=>e),r[e]={cb:t,eventName:n}};function a(e){o("reader_registered",e=>({registration_method:e?.registration_method||"unknown"})),o("reader_logged_in",e=>({login_method:e?.login_method||"unknown"})),o("newsletter_signup",e=>({newsletters_subscription_method:e?.newsletters_subscription_method||"unknown",lists:e?.lists||[]}),"np_newsletter_subscribed"),o("subscription_cancelled"),o("subscription_reactivated"),o("subscription_switched"),o("payment_method_deleted"),o("payment_method_added"),o("payment_method_changed"),o("address_updated"),o("product_reordered"),o("subscription_renewal_early"),e.on("activity",function(e){const{action:t,data:n}=e.detail;if(!r[t])return;const{cb:o,eventName:a}=r[t];((e,t="np_reader_activation_interaction")=>{if("function"==typeof window.gtag&&e){for(const t of Object.keys(e))"boolean"==typeof e[t]?e[t]=e[t]?"yes":"no":"true"===e[t]?e[t]="yes":"false"===e[t]&&(e[t]="no"),e[t]=e[t].toString();window.gtag("event",t,e)}})(((e={},t={})=>{const n={...e};return t?.newspack_popup_id&&(n.newspack_popup_id=t.newspack_popup_id),t?.gate_post_id&&(n.gate_post_id=t.gate_post_id),t?.sso&&(n.sso=t.sso),n})(o(n),n),a)})}},27452(e,t,n){"use strict";function r(e){e.store.register("articles_read",{merge:(e,t)=>Math.max(e||0,t||0)}),e.store.register("paywall_hits",{merge:(e,t)=>Math.max(e||0,t||0)}),e.store.register("article_view_per_week",{merge:(e,t)=>{const n={...e||{}};for(const e of Object.keys(t||{}))n[e]={...n[e],...t[e]};return n}}),e.store.register("article_view_per_month",{merge:(e,t)=>{const n={...e||{}};for(const e of Object.keys(t||{}))n[e]={...n[e],...t[e]};return n}}),e.store.register("favorite_categories",{merge:(e,t)=>{const n=e||[],r=[...t||[]];for(const e of n)r.includes(e)||r.push(e);return r.slice(0,5)}}),e.on("activity",({detail:{action:t,data:n,timestamp:r}})=>{if("article_view"!==t)return;const o=new Date(r);o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0);const a=6-o.getDay();o.setDate(o.getDate()+a);const i=o.getTime(),s=e.store.get("article_view_per_week")||{};s[i]||(s[i]={}),s[i][n.post_id]=!0,e.store.set("article_view_per_week",s),o.setMonth(o.getMonth()+1),o.setDate(1);const c=o.getTime(),l=e.store.get("article_view_per_month")||{};l[c]||(l[c]={}),l[c][n.post_id]=!0,e.store.set("article_view_per_month",l);const u=e.getUniqueActivitiesBy("article_view","post_id");e.store.set("articles_read",u.length);const d=e.getActivities("article_view"),p={};for(const e of d){const t=e.data?.categories||[];for(const e of t)p[e]=(p[e]||0)+1}const f=Object.entries(p).filter(([,e])=>e>=2).sort((e,t)=>t[1]-e[1]).slice(0,5).map(([e])=>Number(e));e.store.set("favorite_categories",f)})}n.d(t,{A:()=>r})},20256(e,t,n){"use strict";n.d(t,{_:()=>a,m:()=>i});var r=n(82613),o=n(88998);function a(e=!1){o.M_.set("pending_checkout",e,!1),(0,r.Ic)(r.qY.reader,(0,o.OO)())}function i(){return o.M_.get("pending_checkout")||!1}},43511(e,t,n){"use strict";function r(e){e.store.register("first_visit_date",{merge:(e,t)=>{const n=[e,t].filter(e=>null!=e);return n.length?Math.min(...n):Date.now()}}),e.store.get("first_visit_date")||e.store.set("first_visit_date",Date.now()),e.store.register("last_active",{merge:(e,t)=>Math.max(e||0,t||0)}),e.store.set("last_active",Date.now())}n.d(t,{A:()=>r})},82613(e,t,n){"use strict";n.d(t,{AU:()=>c,Ic:()=>i,on:()=>s,qY:()=>r});const r={reader:"reader",data:"data",activity:"activity",overlay:"overlay",segment:"segment",session:"session"},o=Object.values(r);function a(e){return o.includes(e)?`newspack-ras-${e}`:""}function i(e,t){if(!(e=a(e)))throw new Error("Invalid event");window.dispatchEvent(new CustomEvent(e,{detail:t}))}function s(e,t){if(!(e=a(e)))throw new Error("Invalid event");window.addEventListener(e,t)}function c(e,t){if(!(e=a(e)))throw new Error("Invalid event");window.removeEventListener(e,t)}},20901(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(82613),o=n(71015);const a=[],i={get:function(){return a||[]},add:function(e=""){return e||(e=(0,o.ni)()),a.push(e),(0,r.Ic)(r.qY.overlay,{overlays:a,added:e}),e},remove:function(e){if(!e)return a;const t=a.indexOf(e);return t>-1&&a.splice(t,1),(0,r.Ic)(r.qY.overlay,{overlays:a,removed:e}),a}}},73122(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(82613);let o={},a=null;function i(){return a&&o[a]?{id:a,...o[a]}:null}const s={register:function(e){if(!e||"object"!=typeof e)return;const t=a&&!o[a];o={...o,...e},t&&o[a]&&(0,r.Ic)(r.qY.segment,{segmentId:a,segment:o[a],all:{...o}})},setMatch:function(e=null){const t=null!=e?String(e):null;if(t===a)return i();a=t;const n=a&&o[a]||null;return(0,r.Ic)(r.qY.segment,{segmentId:a,segment:n,all:{...o}}),i()},getMatch:i,getAll:function(){return{...o}}}},75362(e,t,n){"use strict";if(n.d(t,{C:()=>s,E:()=>i}),/^(193|3619)$/.test(n.j))var r=n(71015);var o=n(82613);window.newspack_reader_data=window.newspack_reader_data||{};let a=null;function i(){return a||(a=async function(){if(!(0,r.Ri)("newspack-cid"))return null;try{const e=window.newspack_reader_data?.session_url||"/wp-json/newspack/v1/reader/session",t=await fetch(e,{credentials:"same-origin"});return t.ok?await t.json():null}catch{return null}}().then(e=>(e?.nonce?(window.newspack_reader_data.nonce=e.nonce,(0,o.Ic)(o.qY.session,e)):a=null,e?.nonce||null)).catch(()=>(a=null,null))),a}function s(){return window.newspack_reader_data?.nonce||null}},951(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(82613),o=n(75362);window.newspack_reader_data=window.newspack_reader_data||{};const a={storePrefix:newspack_reader_data?.store_prefix||"np_reader_",storage:newspack_reader_data?.is_temporary?window.sessionStorage:window.localStorage,collections:{maxItems:1e3,maxAge:2592e6}},i=new Map,s=Symbol.for("newspack.reader_activation.store.internal_clear");function c(e,t){const n=i.get(e);try{g(e,n?n(t,h(e)):t)}catch(n){console.warn(`Unable to rehydrate ${e}`,n),g(e,t)}}function l(e=!1){const t=[a.storePrefix];return e&&t.push("_"),t.join("")}function u(e,t=!1){if(!e)throw new Error("Key is required.");return l(t)+e}function d(e){const t=h("unsynced",!0)||[];t.includes(e)||(t.push(e),g("unsynced",t,!0))}function p(e){return e&&"string"==typeof e?JSON.parse(e):e}function f(e){if((newspack_reader_data?.read_only_keys||[]).includes(e))throw new Error(`Key '${e}' is read-only.`)}function h(e,t=!1){if(!e)throw new Error("Key is required.");return p(a.storage.getItem(u(e,t)))}function g(e,t,n=!1){if(!e)throw new Error("Key is required.");if(null==t)throw new Error("Value cannot be undefined or null.");if("_"===e[0])throw new Error("Key cannot start with an underscore.");var o;a.storage.setItem(u(e,n),(o=t,JSON.stringify(o))),n||(0,r.Ic)(r.qY.data,{key:e,value:t})}function v(){if(window.newspackRASInitialized&&window.newspackReaderActivation?.store){const e=window.newspackReaderActivation.store;return[e,e[s]]}const e=[];var t;t=e,setInterval(()=>{if(!t.length||newspack_reader_data?.is_temporary)return;const e=t.shift();(function(e){if(!e)return Promise.reject("Key is required.");const t=(0,o.C)();if(!newspack_reader_data.api_url||!t)return Promise.reject("API not available.");const n=h(e),r={key:e};if(n&&(r.value=JSON.stringify(n)),newspack_reader_data?.items&&newspack_reader_data.items[e]===r.value)return Promise.resolve();const a=new XMLHttpRequest;return a.open(r.value?"POST":"DELETE",newspack_reader_data.api_url,!0),a.setRequestHeader("Content-Type","application/json"),a.setRequestHeader("X-WP-Nonce",t),a.send(JSON.stringify(r)),new Promise((t,n)=>{a.onreadystatechange=()=>{if(4===a.readyState)return 200!==a.status?n(a):(newspack_reader_data.items[e]=r.value,t(a))}})})(e).then(()=>function(e){const t=h("unsynced",!0)||[];t.includes(e)&&(t.splice(t.indexOf(e),1),g("unsynced",t,!0))}(e)).catch(()=>d(e))},1e3);const n=newspack_reader_data?.read_only_keys||[],v=(h("unsynced",!0)||[]).filter(e=>!n.includes(e));g("unsynced",v,!0);for(const t of v)e.includes(t)||e.push(t);function m(e=newspack_reader_data?.items){if(!e||newspack_reader_data?.is_temporary)return;const t=h("unsynced",!0)||[];for(const n of Object.keys(e))t.includes(n)&&!i.has(n)||c(n,p(e[n]))}function y(){const t=l(!1);if(!t)return;const n=l(!0),o=[];for(let e=0;e{const n=t?.reader_data_items||{};newspack_reader_data.items=n,m(n);const r=h("unsynced",!0)||[];for(const t of r)e.includes(t)||e.push(t)});const w={get:e=>{if(!e)throw new Error("Key is required.");return h(e)},getAll:()=>{const e={},t=l(!1),n=l(!0);for(let r=0;r{f(t),g(t,n,!1),r&&(d(t),e.push(t))},delete:t=>{if(!t)throw new Error("Key is required.");f(t),a.storage.removeItem(u(t)),(0,r.Ic)(r.qY.data,{key:t,value:void 0}),d(t),e.push(t)},add:(e,t)=>{if(!e)throw new Error("Key cannot be empty.");if(f(e),!t)throw new Error("Value cannot be empty.");let n=h(e)||[];if(!Array.isArray(n))throw new Error(`Store key '${e}' is not an array.`);if(a.collections.maxAge){const e=Date.now();n=n.filter(t=>!t.timestamp||e-t.timestamp{if("function"!=typeof t)throw new Error(`Store key '${e}' requires a merge function.`);i.has(e)&&console.warn(`Store key '${e}' already has a merge strategy registered. Overwriting.`),i.set(e,t)},rehydrate:m};return Object.defineProperty(w,s,{value:y}),[w,y]}},63424(e,t,n){"use strict";if(n.d(t,{A:()=>a}),/^(193|3619)$/.test(n.j))var r=n(72397);if(/^(193|3619)$/.test(n.j))var o=n(71015);function a(){(0,r.Qc)(()=>{const e=new URLSearchParams(window.location.search),t=e.get("upgrade-subscription")||e.get("switch");if(e.get("upgrade-subscription")||e.get("tiers-modal")||e.get("switch")){const t=new URLSearchParams(e);t.delete("upgrade-subscription"),t.delete("tiers-modal"),t.delete("switch");const n=t.toString()?"?"+t.toString():"";window.history.replaceState({},"",window.location.pathname+n)}window.newspackRAS.push(n=>{const r=n.getReader();t&&!r?.authenticated&&n.openAuthModal({labels:{signin:{title:window.newspack_reader_activation_labels.sign_in_to_upgrade},register:{title:window.newspack_reader_activation_labels.register_to_upgrade}},skipSuccess:!0,skipNewslettersSignup:!0,closeOnSuccess:!1,onSuccess:()=>{window.location.href=window.location.pathname+"?"+e.toString()}})});const n=document.querySelectorAll(".newspack__subscription-tiers__form");n.length&&[...n].forEach(e=>{const n=e.closest(".newspack-ui__modal-container"),r=e.querySelector('button[type="submit"]'),a=e.querySelector(".newspack-ui__modal__cancel"),i=e.classList.contains("nyp"),s=r.textContent;let c=!1;const l=()=>{e.querySelectorAll('input[type="radio"], input[type="number"], select').forEach(e=>{e.addEventListener("input",u),e.addEventListener("change",u)}),u()},u=()=>{if(i){const t=e.querySelector("#nyp_amount");if(t?.value){const e=parseFloat(t.value).toLocaleString(document.documentElement.lang,{style:"currency",currency:t.dataset.currency,currencyDisplay:"narrowSymbol"});r.textContent=s+": "+e+" / "+t.dataset.frequency}else r.textContent=s}if(i){const t=e.querySelector("#nyp_amount.current"),n=parseInt(t?.dataset.priceDecimals,10),r=Math.pow(10,Number.isNaN(n)?2:n),o=e=>Math.round(parseFloat(e)*r);!t||t.value&&o(t.value)!==o(t.dataset.originalValue)?(e.querySelector('button[type="submit"]').disabled=!1,c=!0):(e.querySelector('button[type="submit"]').disabled=!0,c=!1)}else e.querySelector('.current input[type="radio"]:checked')?(e.querySelector('button[type="submit"]').disabled=!0,c=!1):(e.querySelector('button[type="submit"]').disabled=!1,c=!0)},d=e.querySelector(".newspack-ui__segmented-control");d&&d.addEventListener("content-selected",l),l(),u(),n?a.addEventListener("click",()=>{n?.setAttribute("data-state","closed")}):a.style.display="none",e.addEventListener("submit",t=>{if(!c)return void t.preventDefault();if(n?.classList.contains("newspack-blocks__modal-variation"))return;if(!window.newspackOpenModalCheckout)return;t.preventDefault();let r=!1;const a=new FormData(e);n?.setAttribute("data-state","closed");const i=new URL(e.action);for(const e of a.entries())i.searchParams.append(e[0],e[1]);window.newspackOpenModalCheckout({url:i.toString(),title:e.dataset.title,onCheckoutComplete:()=>{r=!0},onClose:()=>function(e){e&&(0,o.q9)()}(r)})});const p=e.querySelector(".signin-link");p&&p.addEventListener("click",r=>{r.preventDefault(),n&&n.setAttribute("data-state","closed"),window.newspackRAS.push(r=>{r.openAuthModal({skipSuccess:!0,skipNewslettersSignup:!0,onSuccess:()=>{const n=new URLSearchParams(window.location.search);n.set("tiers-modal",e.dataset.productId||""),t&&n.set("switch","1"),window.location.href=window.location.pathname+"?"+n.toString()},onDismiss:()=>{n&&n.setAttribute("data-state","open")}})})})})})}window.newspackRAS=window.newspackRAS||[]},71015(e,t,n){"use strict";function r(e){if(!e)return"";const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?decodeURIComponent(t.pop().split(";").shift()):""}function o(e,t,n=365){const r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),document.cookie=`${e}=${t}; expires=${r.toUTCString()}; path=/`}function a(e=9){let t="";for(let n=0;n{setTimeout(()=>{if(t.overlays.get().length){const n=({detail:{overlays:t}})=>{setTimeout(()=>{t.length||(e(),window.newspackReaderActivation.off("overlay",n))},50)};return void t.on("overlay",n)}e()},50)})}function c(){s(()=>window.location.reload())}n.d(t,{Ri:()=>r,TV:()=>o,ZZ:()=>s,cY:()=>i,ni:()=>a,q9:()=>c})},17948(e,t,n){"use strict";n.d(t,{Y:()=>i});var r=n(86087);const o="NewspackAuthorContext",a=(0,r.createContext)(null),i=()=>"undefined"!=typeof window&&window[o]?window[o]:a},45618(e,t,n){"use strict";n.d(t,{Cf:()=>h});var r=n(47143),o=n(86087),a=n(3582),i=n(1455),s=n.n(i);const c={},l={},u={},d={},p=Object.freeze([]);function f(e){if(!e)return;const t=e.split("?")[0].split("#")[0].replace(/\/$/,"").split("/"),n=t.pop(),r=t[t.length-1];return n&&r?n:void 0}function h(e,t="post",n=!1){const{legacyCapAuthors:i,coauthorTermIdsKey:h,restAuthors:g,isCapAvailable:v}=(0,r.useSelect)(r=>{if(n)return{legacyCapAuthors:null,coauthorTermIdsKey:null,restAuthors:null,isCapAvailable:!1};const o=r("cap/authors"),i=Boolean(o&&"function"==typeof o.getAuthors),s=r("core/editor"),c=s?.getCurrentPostId?.();if(e&&c&&e!==c&&e){const{getEntityRecord:n}=r(a.store),o=n("postType",t,e),s=o?.newspack_author_info||null;return{legacyCapAuthors:null,coauthorTermIdsKey:null,restAuthors:s,isCapAvailable:!!s||i}}if(i)return{legacyCapAuthors:e?o.getAuthors(e):null,coauthorTermIdsKey:null,restAuthors:null,isCapAvailable:!0};const l=s?.getEditedPostAttribute?.("coauthors");if(Array.isArray(l)){const e=l.map(Number).filter(Number.isInteger);return{legacyCapAuthors:null,coauthorTermIdsKey:0===e.length?"":e.join(","),restAuthors:null,isCapAvailable:!0}}return{legacyCapAuthors:null,coauthorTermIdsKey:null,restAuthors:null,isCapAvailable:!1}},[e,t,n]),[m,y]=(0,o.useState)(p),[w,b]=(0,o.useState)(!1),[_,x]=(0,o.useState)(null),k=null!==h&&""!==h,j=k&&_!==h||w;(0,o.useEffect)(()=>{if(n||null===h)return y(p),b(!1),void x(h);const e=""===h?[]:h.split(",").map(Number).filter(Number.isInteger);if(0===e.length)return y(p),b(!1),void x(h);if(e.every(e=>e in u)){const t=e.map(e=>u[e]).filter(e=>e&&"object"==typeof e);return y(0===t.length?p:t),b(!1),void x(h)}let t=!1;return b(!0),function(e){if(!e||0===e.length)return Promise.resolve();const t=e.filter(e=>!(e in u));if(0===t.length)return Promise.resolve();const n=[...t].sort((e,t)=>e-t).join(",");return d[n]||(d[n]=s()({path:`/coauthors/v1/authors-by-term-ids?ids=${t.join(",")}`}).then(e=>{Array.isArray(e)&&e.forEach(e=>{e?.termId&&(u[e.termId]=e)}),t.forEach(e=>{e in u||(u[e]=!1)})}).catch(()=>{}).finally(()=>{delete d[n]})),d[n]}(e).then(()=>{if(t)return;const n=e.map(e=>u[e]).filter(e=>e&&"object"==typeof e);y(0===n.length?p:n),b(!1),x(h)}),()=>{t=!0}},[h,n]);const S=(0,o.useMemo)(()=>i&&i.length>0?i.map(e=>({id:e.id,display_name:e.display||e.value||e.label,user_nicename:e.value,isGuest:"guest-author"===e.userType})):m&&m.length>0?m.map(e=>({id:Number(e.id),termId:e.termId,display_name:e.displayName,user_nicename:e.userNicename,isGuest:"guest-author"===e.userType})):g&&Array.isArray(g)&&g.length>0?g.map(e=>({id:e.id,display_name:e.display_name,author_link:e.author_link,user_nicename:e.user_nicename||f(e.author_link),..."boolean"==typeof e.is_guest?{isGuest:e.is_guest}:{},...e.avatar_urls?{avatar_urls:e.avatar_urls}:{}})):[],[i,m,g]),[C,A]=(0,o.useState)({}),E=S.filter(e=>!1!==e.isGuest&&e.user_nicename&&!e.avatar_urls),P=E.map(e=>e.user_nicename).join(",");return(0,o.useEffect)(()=>{if(n||!v||!P)return;let e=!1;return Promise.all(E.map(e=>{return(t=e.user_nicename)in c?Promise.resolve():(l[t]||(l[t]=s()({path:`/coauthors/v1/coauthors/${encodeURIComponent(t)}`}).then(e=>{c[t]=e?.avatar_urls||!1}).catch(()=>{c[t]=!1}).finally(()=>{delete l[t]})),l[t]);var t})).then(()=>{if(e)return;const t={};E.forEach(e=>{c[e.user_nicename]&&(t[e.id]=c[e.user_nicename])}),A(t)}),()=>{e=!0}},[n,v,P]),{authors:S.map(e=>{if(!1===e.isGuest||!e.user_nicename)return e;const t=C[e.id]||c[e.user_nicename];return t?{...e,avatar_urls:t}:e}),isCapAvailable:v,isLoading:j,hasCoauthorTermIds:k}}},70701(e,t,n){"use strict";n.d(t,{k:()=>a,o:()=>i});var r=n(47143),o=n(3582);function a(e,t){const{bylineActive:n,bylineContent:a}=(0,r.useSelect)(n=>{const{getEditedEntityRecord:r}=n(o.store),a=r("postType",t,e);return{bylineActive:a?.meta?._newspack_byline_active||!1,bylineContent:a?.meta?._newspack_byline||""}},[e,t]);return{bylineActive:n,bylineContent:a}}function i(e){if(!e)return[];const t=/\[Author\s+id\s*=\s*(\d+)\]/gi,n=[];let r;for(;null!==(r=t.exec(e));)n.push(parseInt(r[1],10));return n}},85550(e,t,n){"object"==typeof window&&window.newspack_urls&&(n.p=window.newspack_urls.public_path)},72397(e,t,n){"use strict";function r(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}function o(e){const t=e%60;return`${Math.floor(e/60)}:${t<10?"0":""}${t}`}function a(e,t=[]){return Array.from(e.entries()).reduce((e,[n,r])=>t.includes(n)?(n.indexOf("[]")>-1?(e[n=n.replace("[]","")]=e[n]||[],e[n].push(r)):e[n]=r,e):e,{})}n.d(t,{Qc:()=>r,fU:()=>o,wJ:()=>a})},61474(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(27723),o=n(1455),a=n.n(o),i=n(86087),s=n(6315),c=n(24963),l=n(60872),u=n(10790);function d({onUpdate:e,onSuccess:t}){const n=(0,i.useRef)(null),[o,d]=(0,i.useState)(""),[p,f]=(0,i.useState)(!1),[h,g]=(0,i.useState)(""),[v,m]=(0,i.useState)(!1),[y,w]=(0,i.useState)(null);return(0,i.useEffect)(()=>{"function"==typeof e&&e({networkCode:h})},[h]),(0,u.jsx)(s.Zp,{noBorder:!0,children:(0,u.jsxs)("div",{className:"ads-onboarding",children:[newspack_ads_wizard.can_connect_google&&(!0===y||null===y)&&(0,u.jsxs)(i.Fragment,{children:[y&&(0,u.jsx)("p",{children:(0,r.__)("Authenticate with Google in order to connect your Google Ad Manager account:","newspack-plugin")}),(0,u.jsx)(c.A,{onInit:e=>w(!e),onSuccess:t,isOnboarding:!0})]}),(!newspack_ads_wizard.can_connect_google||!1===y)&&(0,u.jsx)(i.Fragment,{children:v?(0,u.jsx)(s.$T,{isSuccess:!0,noticeText:(0,r.__)("We're all set here!","newspack-plugin")}):(0,u.jsxs)(i.Fragment,{children:[(0,u.jsx)("p",{children:(0,r.__)("Enter your Google Ad Manager network code and service account credentials for a full integration:","newspack-plugin")}),(0,u.jsx)(s.xt,{disabled:p,isWide:!0,name:"network_code",label:(0,r.__)("Network code","newspack-plugin"),value:h,onChange:g}),(0,u.jsx)(s.Zp,{__experimentalCoreCard:!0,__experimentalCoreProps:{header:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h3",{children:(0,r.__)("Upload credentials","newspack-plugin")}),(0,u.jsx)("p",{children:(0,r.__)("Upload your Service Account credentials file to connect your GAM account.","newspack-plugin")}),o&&(0,u.jsx)(s.$T,{noticeText:o,isError:!0})]}),actionType:"chevron",onHeaderClick:p?void 0:()=>n.current.click()}}),(0,u.jsxs)("p",{children:[(0,u.jsx)("a",{href:"https://developers.google.com/ad-manager/api/authentication",target:"_blank",rel:"noopener noreferrer",children:(0,r.__)("How to get a service account user for API access","newspack-plugin")}),"."]}),(0,u.jsx)("input",{type:"file",accept:".json",ref:n,style:{display:"none"},onChange:e=>{e.target.files.length&&e.target.files[0]&&(0,l.b)(e.target.files[0]).then(e=>(e=>{f(!0),a()({path:"/newspack/v1/wizard/billboard/credentials",method:"post",data:{credentials:e,onboarding:!0}}).then(()=>{m(!0),"function"==typeof t&&t()}).finally(()=>{f(!1)})})(e)).catch(e=>d(e))}})]})})]})})}},60872(e,t,n){"use strict";n.d(t,{b:()=>o});var r=n(27723);function o(e){return new Promise((t,n)=>{const o=new FileReader;o.readAsText(e,"UTF-8"),o.onload=function(e){let o;try{o=JSON.parse(e.target.result)}catch(e){n((0,r.__)("Invalid JSON file","newspack-plugin"))}t(o)},o.onerror=function(){n((0,r.__)("Unable to read file","newspack-plugin"))}})}},55313(e,t,n){"use strict";n.d(t,{A:()=>o});class r extends Error{constructor(e,t,n=""){super(e),this.name="WizardError",this.errorCode=t,this.details=n,Object.setPrototypeOf&&Object.setPrototypeOf(this,new.target.prototype)}toJSON(){return{name:this.name,message:this.message,errorCode:this.errorCode,details:this.details,stackTrace:this.stack}}}const o=/^(2001|6930|828)$/.test(n.j)?r:null},69776(e,t,n){"use strict";n.d(t,{M1:()=>i,Ss:()=>a.A,u:()=>o.A});var r=n(27723),o=n(55313),a=n(1712);const i={MAILCHIMP_API_KEY_INVALID:(0,r.__)("Invalid Mailchimp API Key.","newspack-plugin"),GOOGLEOAUTH_REFRESH_TOKEN_EXPIRED:(0,r.__)("Missing Google refresh token. Please re-authenticate site.","newspack-plugin"),GOOGLE:{OAUTH_POPUP_BLOCKED:(0,r.__)("Popup blocked by browser. Disable any popup blocking settings and try again.","newspack-plugin"),URL_INVALID:(0,r.__)("URL is invalid. Please try again or contact support if the issue persists.","newspack-plugin")}}},30212(e,t,n){"use strict";n.d(t,{L:()=>d});var r=n(47143),o=n(18537),a=n(86087),i=n(1927),s=n(69776);function c(e){return e.split("?").at(0)??e}let l={};const u=e=>{const t={message:"An unknown API error occurred.",statusCode:500,errorCode:"api_unknown_error",details:""};return e?("string"==typeof e?t.message=e:(e instanceof Error||"message"in e)&&(t.message=e.message??t.message,t.statusCode=e.data?.status??t.statusCode,t.errorCode=e.code??t.errorCode,t.details=""),new s.Ss(t.message,t.statusCode,t.errorCode,t.details)):null};function d(e){const[t,n]=(0,a.useState)(!1),{wizardApiFetch:s,updateWizardSettings:d}=(0,r.useDispatch)(i.S),p=(0,r.useSelect)(t=>t(i.S).getWizardData(e),[e]),[f,h]=(0,a.useState)(null),g=(0,a.useRef)([]);function v(){h(null)}return(0,a.useEffect)(()=>{h(null)},[e]),{wizardApiFetch:(0,a.useCallback)(async(t,r)=>{const{on:o}=(e=>({on(t,n=null){const r=e?.[t];r&&"function"==typeof r&&r(n)}}))(r??{}),a=function(t){return(n,r,o=t)=>{const a=o?c(o):o;d({slug:e,path:[a,...Array.isArray(n)?n:[n]].filter(e=>"string"==typeof e),value:r})}}(t.path),{path:i,method:f="GET"}=t,v=c(i??""),{isCached:m="GET"===f,updateCacheKey:y=null,updateCacheMethods:w=[],...b}=t,{[v]:{[f]:_=null}={}}=p;function x(e){if(m&&a(f,e),y&&y.constructor===Object){const[t,n]=Object.entries(y)[0],r=p[t][n];let o;o=r&&r.constructor===Object?{...r,...e}:e,a(Object.entries(y)[0],o,null)}for(const t of w)a(t,e);return o("onSuccess",e),e}function k(e){const t=u(e);throw h(t),o("onError",t),t}function j(){const{[v]:e,...t}=l;l=t,g.current=g.current.filter(e=>e!==v),n(g.current.length>0),o("onFinally")}return l[v]?(n(!0),l[v].then(x).catch(k).finally(j)):m&&_?(o("onSuccess",_),_):(n(!0),o("onStart"),g.current.push(v),l[v]=s({isQuietFetch:!0,isLocalError:!0,...b}).then(x).catch(k).finally(j),l[v])},[s,p,d,t,e]),isFetching:t,errorMessage:f?(0,o.decodeEntities)(f.message):null,error:f,cache:t=>({get:(e="GET")=>p[t][e],set(n,r="GET"){d({slug:e,path:[t,r],value:n})}}),setError(e){null===e?v():h(u(e))},resetError:v}}},24963(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(27723),o=n(86087),a=n(6315),i=n(25304),s=n(30212),c=n(69776),l=n(10790);const u=/^(2001|6930|828)$/.test(n.j)?function({onSuccess:e,isOnboarding:t}){const[n,u]=(0,o.useState)({}),d=n?.user_basic_info,p=Boolean(d&&d.email),{setError:f,errorMessage:h,wizardApiFetch:g,isFetching:v}=(0,s.L)("/newspack-settings/connections/apis/google-oauth");function m(){(function(){const e=new URLSearchParams(window.location.search),t={};for(const[n,r]of e.entries())t[n]=r;return t})().access_token||g({path:"/newspack/v1/oauth/google",isCached:!1},{onSuccess(t){u(t),t?.user_basic_info&&("function"==typeof e&&e(t),f(null))}})}return(0,o.useEffect)(()=>{t||m()},[]),(0,o.useEffect)(()=>{p&&d&&!d.has_refresh_token&&f(new c.u(c.M1.GOOGLEOAUTH_REFRESH_TOKEN_EXPIRED,"googleoauth_refresh_token_expired"))},[p]),(0,l.jsx)(i.A,{title:(0,r.__)("Google","newspack-plugin"),description:v?(0,r.__)("Loading…","newspack-plugin"):p?(0,r.sprintf)( // translators: %s: connected user's email address. // translators: %s: connected user's email address. (0,r.__)("Connected as %s","newspack-plugin"),d?.email):(0,r.__)("Not connected","newspack-plugin"),isChecked:p,actionText:(0,l.jsx)(a.$n,{variant:"link",isDestructive:p,onClick:p?function(){g({path:"/newspack/v1/oauth/google/revoke",method:"DELETE"},{onSuccess:()=>u({})})}:function(){let e=null;g({path:"/newspack/v1/oauth/google/start",isCached:!1},{onSuccess(t){if(null===t)return void f(new c.u(c.M1.GOOGLE.URL_INVALID,"googleoauth_popup_blocked"));if(e=window.open(t,"newspack_google_oauth","width=500,height=600"),null===e)return void f(new c.u(c.M1.GOOGLE.OAUTH_POPUP_BLOCKED,"googleoauth_popup_blocked"));const n=setInterval(()=>{e?.closed&&(clearInterval(n),m())},500)},onError(){e&&e.close()}})},disabled:v,children:p?(0,r.__)("Disconnect","newspack-plugin"):(0,r.__)("Connect","newspack-plugin")}),error:h,isMedium:!0})}:null},25304(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(6315),o=n(10790);const a=/^(2001|6930|828)$/.test(n.j)?({description:e,error:t,isChecked:n,notificationLevel:a="error",children:i,...s})=>{let c;return void 0!==n&&(c=n?"checked":"unchecked"),(0,o.jsx)(r.Lz,{description:e,checkbox:c,notification:t,notificationLevel:a,...s,children:i})}:null},97785(e,t,n){"use strict";var r=n(79524),o=n(64811),a=n(46255),i=n(12728);e.exports=i||r.call(a,o)},64811(e){"use strict";e.exports=Function.prototype.apply},46255(e){"use strict";e.exports=Function.prototype.call},92427(e,t,n){"use strict";var r=n(79524),o=n(71102),a=n(46255),i=n(97785);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return i(r,a,e)}},12728(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},98801(e,t,n){"use strict";var r=n(49336),o=n(92427),a=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?o([n]):n}},57678(e,t,n){"use strict";var r,o=n(92427),a=n(25667);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var i=!!r&&a&&a(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=i&&"function"==typeof i.get?o([i.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},39886(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},38004(e){"use strict";e.exports=EvalError},41488(e){"use strict";e.exports=Error},96469(e){"use strict";e.exports=RangeError},12557(e){"use strict";e.exports=ReferenceError},63429(e){"use strict";e.exports=SyntaxError},71102(e){"use strict";e.exports=TypeError},85966(e){"use strict";e.exports=URIError},33254(e){"use strict";e.exports=Object},69992(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=V(e,0,1),n=V(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return H(e,U,function(e,t,n,o){r[r.length]=n?H(o,q,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=W("%"+r+"%",t),a=o.name,i=o.value,s=!1,c=o.alias;c&&(r=c[0],F(n,$([0,1],c)));for(var d=1,p=!0;d=n.length){var v=_(i,f);i=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:i[f]}else p=D(i,f),i=i[f];p&&!s&&(I[a]=i)}}return i}},23752(e,t,n){"use strict";var r=n(33254);e.exports=r.getPrototypeOf||null},60248(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},14252(e,t,n){"use strict";var r=n(60248),o=n(23752),a=n(57678);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:a?function(e){return a(e)}:null},51333(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},25667(e,t,n){"use strict";var r=n(51333);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},21514(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(9712);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},9712(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},72740(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=n(79524);e.exports=a.call(r,o)},4674(e,t,n){"use strict";var r=n(17020),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=c(t),g=c(n),v=0;vo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r-1?s[c?t[l]:l]:void 0}}},84665(e,t,n){var r=n(85592),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},49689(e,t,n){var r=n(88817),o=n(48918),a=n(80329);e.exports=function(e,t,n,i,s,c){var l=1&n,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var p=c.get(e),f=c.get(t);if(p&&f)return p==t&&f==e;var h=-1,g=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h-1&&e%1==0&&e-1}},2777(e,t,n){var r=n(87831);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},54614(e,t,n){var r=n(83219),o=n(67321),a=n(32565);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},69504(e,t,n){var r=n(39257);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},9251(e,t,n){var r=n(39257);e.exports=function(e){return r(this,e).get(e)}},75791(e,t,n){var r=n(39257);e.exports=function(e){return r(this,e).has(e)}},81511(e,t,n){var r=n(39257);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},60755(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},94351(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},83426(e,t,n){var r=n(68590);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},39444(e,t,n){var r=n(85592)(Object,"create");e.exports=r},59692(e,t,n){var r=n(17937)(Object.keys,Object);e.exports=r},81779(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},21587(e,t,n){e=n.nmd(e);var r=n(86710),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,s=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s},17748(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},17937(e){e.exports=function(e,t){return function(n){return e(t(n))}}},58619(e,t,n){var r=n(46047),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,s=o(a.length-t,0),c=Array(s);++i0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},21306(e,t,n){var r=n(67321);e.exports=function(){this.__data__=new r,this.size=0}},33180(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},55247(e){e.exports=function(e){return this.__data__.get(e)}},22835(e){e.exports=function(e){return this.__data__.has(e)}},79179(e,t,n){var r=n(67321),o=n(32565),a=n(60111);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},64352(e,t,n){var r=n(83426),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)}),t});e.exports=i},5155(e,t,n){var r=n(97964);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},48815(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},15082(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},76661(e,t,n){var r=n(13853),o=n(27145),a=n(32917),i=n(90644),s=n(78861),c=n(92096),l=Object.prototype.hasOwnProperty,u=a(function(e,t){if(s(t)||i(t))o(t,c(t),e);else for(var n in t)l.call(t,n)&&r(e,n,t[n])});e.exports=u},69051(e,t,n){var r=n(26911);e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},86148(e){e.exports=function(e){return function(){return e}}},20671(e,t,n){var r=n(69323),o=n(85062),a=n(9480),i=Math.max,s=Math.min;e.exports=function(e,t,n){var c,l,u,d,p,f,h=0,g=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=c,r=l;return c=l=void 0,h=t,d=e.apply(r,n)}function w(e){var n=e-f;return void 0===f||n>=t||n<0||v&&e-h>=u}function b(){var e=o();if(w(e))return _(e);p=setTimeout(b,function(e){var n=t-(e-f);return v?s(n,u-(e-h)):n}(e))}function _(e){return p=void 0,m&&c?y(e):(c=l=void 0,d)}function x(){var e=o(),n=w(e);if(c=arguments,l=this,f=e,n){if(void 0===p)return function(e){return h=e,p=setTimeout(b,t),g?y(e):d}(f);if(v)return clearTimeout(p),p=setTimeout(b,t),y(f)}return void 0===p&&(p=setTimeout(b,t)),d}return t=a(t)||0,r(n)&&(g=!!n.leading,u=(v="maxWait"in n)?i(a(n.maxWait)||0,t):u,m="trailing"in n?!!n.trailing:m),x.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=f=l=p=void 0},x.flush=function(){return void 0===p?d:_(o())},x}},69506(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},38662(e,t,n){var r=n(31840),o=n(25544),a=n(93411),i=n(75e3);e.exports=function(e,t){return(i(e)?r:o)(e,a(t,3))}},97183(e,t,n){var r=n(97832)(n(24611));e.exports=r},24611(e,t,n){var r=n(45741),o=n(93411),a=n(26911),i=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:a(n);return c<0&&(c=i(s+c,0)),r(e,o(t,3),c)}},12438(e,t,n){var r=n(73208);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},50997(e,t,n){var r=n(56147),o=n(75728);e.exports=function(e,t){return null!=e&&o(e,t,r)}},34846(e){e.exports=function(e){return e}},81750(e,t,n){var r=n(12960),o=n(2292),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},75e3(e){var t=Array.isArray;e.exports=t},90644(e,t,n){var r=n(20860),o=n(5300);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},41891(e,t,n){var r=n(90644),o=n(2292);e.exports=function(e){return o(e)&&r(e)}},23446(e,t,n){e=n.nmd(e);var r=n(30907),o=n(9349),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c},30483(e,t,n){var r=n(92322),o=n(71663),a=n(81750),i=n(75e3),s=n(90644),c=n(23446),l=n(78861),u=n(3133),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||a(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},20860(e,t,n){var r=n(41490),o=n(69323);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5300(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},69323(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2292(e){e.exports=function(e){return null!=e&&"object"==typeof e}},41281(e,t,n){var r=n(41490),o=n(50553),a=n(2292),i=Function.prototype,s=Object.prototype,c=i.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},89589(e,t,n){var r=n(41490),o=n(75e3),a=n(2292);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},97964(e,t,n){var r=n(41490),o=n(2292);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},3133(e,t,n){var r=n(85283),o=n(41155),a=n(21587),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},92096(e,t,n){var r=n(13737),o=n(92322),a=n(90644);e.exports=function(e){return a(e)?r(e):o(e)}},17999(e,t,n){var r=n(13737),o=n(15045),a=n(90644);e.exports=function(e){return a(e)?r(e,!0):o(e)}},38890(e,t,n){var r=n(23706),o=n(1843),a=n(93411);e.exports=function(e,t){var n={};return t=a(t,3),o(e,function(e,o,a){r(n,o,t(e,o,a))}),n}},68590(e,t,n){var r=n(60111);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},64198(e,t,n){var r=n(53912),o=n(32917)(function(e,t,n,o){r(e,t,n,o)});e.exports=o},85062(e,t,n){var r=n(30907);e.exports=function(){return r.Date.now()}},2033(e,t,n){var r=n(69051);e.exports=function(e){return r(2,e)}},24525(e,t,n){var r=n(1547),o=n(38645),a=n(95304),i=n(5155);e.exports=function(e){return a(e)?r(i(e)):o(e)}},62154(e,t,n){var r=n(604);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},2636(e,t,n){var r=n(48918),o=n(93411),a=n(68894),i=n(75e3),s=n(39542);e.exports=function(e,t,n){var c=i(e)?r:a;return n&&s(e,t,n)&&(t=void 0),c(e,o(t,3))}},35615(e){e.exports=function(){return[]}},9349(e){e.exports=function(){return!1}},64694(e,t,n){var r=n(9480),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},26911(e,t,n){var r=n(64694);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},9480(e,t,n){var r=n(70006),o=n(69323),a=n(97964),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}},94514(e,t,n){var r=n(27145),o=n(17999);e.exports=function(e){return r(e,o(e))}},17164(e,t,n){var r=n(91978);e.exports=function(e){return null==e?"":r(e)}},85674(e,t,n){var r=n(64116),o=n(92096);e.exports=function(e){return null==e?[]:r(e,o(e))}},77412(e){"use strict";e.exports=Math.abs},52418(e){"use strict";e.exports=Math.floor},19313(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},57958(e){"use strict";e.exports=Math.max},47384(e){"use strict";e.exports=Math.min},250(e){"use strict";e.exports=Math.pow},51844(e){"use strict";e.exports=Math.round},47279(e,t,n){"use strict";var r=n(19313);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},32502(e,t,n){"use strict";n.d(t,{A:()=>r});const r={"primary-000":"#dfe7f4","primary-050":"#bfcfe9","primary-100":"#9fb6dd","primary-200":"#809ed2","primary-300":"#6086c7","primary-400":"#406ebc","primary-500":"#2055b0","primary-600":"#003da5","primary-700":"#00296e","primary-800":"#001f53","primary-900":"#001437","primary-1000":"#000a1c","secondary-000":"#eff9f2","secondary-050":"#ddf3e3","secondary-100":"#c8ecd4","secondary-200":"#b1e6c3","secondary-300":"#95dfaf","secondary-400":"#6fd898","secondary-500":"#26d07c","secondary-600":"#1fb36a","secondary-700":"#1ba25f","secondary-800":"#178e53","secondary-900":"#117644","secondary-1000":"#09552f","tertiary-000":"#fff4f6","tertiary-050":"#fee8ed","tertiary-100":"#fedbe3","tertiary-200":"#fcded8","tertiary-300":"#fdbfcd","tertiary-400":"#fcaec0","tertiary-500":"#fc9bb3","tertiary-600":"#d9859a","tertiary-700":"#c5788b","tertiary-800":"#ad697a","tertiary-900":"#905665","tertiary-1000":"#683d48","quaternary-000":"#fff5ee","quaternary-050":"#ffeadc","quaternary-100":"#ffdec7","quaternary-200":"#ffd1af","quaternary-300":"#ffc392","quaternary-400":"#ffb46a","quaternary-500":"#ffa300","quaternary-600":"#dc8c00","quaternary-700":"#c77e00","quaternary-800":"#af6e00","quaternary-900":"#925b00","quaternary-1000":"#6a4100","neutral-000":"#fff","neutral-050":"#f7f7f7","neutral-100":"#f0f0f0","neutral-200":"#e0e0e0","neutral-300":"#ddd","neutral-400":"#ccc","neutral-500":"#949494","neutral-600":"#6c6c6c","neutral-700":"#5d5d5d","neutral-800":"#393939","neutral-900":"#1e1e1e","neutral-1000":"#000","overlay-000":"rgba(0,0,0,.051)","overlay-050":"rgba(0,0,0,.102)","overlay-100":"rgba(0,0,0,.149)","overlay-200":"rgba(0,0,0,.2)","overlay-300":"rgba(0,0,0,.302)","overlay-400":"rgba(0,0,0,.4)","overlay-500":"rgba(0,0,0,.502)","overlay-600":"rgba(0,0,0,.6)","overlay-700":"rgba(0,0,0,.702)","overlay-800":"rgba(0,0,0,.8)","overlay-900":"rgba(0,0,0,.902)","overlay-1000":"rgba(0,0,0,.949)","success-000":"#edfaef","success-050":"#b8e6bf","success-500":"#008a20","success-600":"#007017","error-000":"#fcf0f1","error-050":"#facfd2","error-500":"#d63638","error-600":"#b32d2e","warning-000":"#fcf9e8","warning-050":"#f5e6ab","warning-300":"#dba617","warning-400":"#bd8600"}},78311(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"==typeof o.get?o.get:null,i=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,g=Object.prototype.toString,v=Function.prototype.toString,m=String.prototype.match,y=String.prototype.slice,w=String.prototype.replace,b=String.prototype.toUpperCase,_=String.prototype.toLowerCase,x=RegExp.prototype.test,k=Array.prototype.concat,j=Array.prototype.join,S=Array.prototype.slice,C=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,N="function"==typeof Symbol&&"object"==typeof Symbol.iterator,O="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-C(-e):C(e);if(r!==e){var o=String(r),a=y.call(t,o.length+1);return w.call(o,n,"$&_")+"."+w.call(w.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,n,"$&_")}var R=n(14058),L=R.custom,z=q(L)?L:null,D={__proto__:null,double:'"',single:"'"},$={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function F(e,t,n){var r=n.quoteStyle||t,o=D[r];return o+e+o}function H(e){return w.call(String(e),/"/g,""")}function V(e){return!O||!("object"==typeof e&&(O in e||void 0!==e[O]))}function B(e){return"[object Array]"===K(e)&&V(e)}function U(e){return"[object RegExp]"===K(e)&&V(e)}function q(e){if(N)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,o){var s=n||{};if(G(s,"quoteStyle")&&!G(D,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!G(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var g=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return J(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var b=String(t);return g?M(t,b):b}if("bigint"==typeof t){var x=String(t)+"n";return g?M(t,x):x}var C=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=C&&C>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var E,L=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=j.call(Array(e.indent+1)," ")}return{base:n,prev:j.call(Array(t+1),n)}}(s,r);if(void 0===o)o=[];else if(Z(o,t)>=0)return"[Circular]";function $(t,n,a){if(n&&(o=S.call(o)).push(n),a){var i={depth:s.depth};return G(s,"quoteStyle")&&(i.quoteStyle=s.quoteStyle),e(t,i,r+1,o)}return e(t,s,r+1,o)}if("function"==typeof t&&!U(t)){var W=function(e){if(e.name)return e.name;var t=m.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),Q=ne(t,$);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(Q.length>0?" { "+j.call(Q,", ")+" }":"")}if(q(t)){var re=N?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||N?re:Y(re)}if((E=t)&&"object"==typeof E&&("undefined"!=typeof HTMLElement&&E instanceof HTMLElement||"string"==typeof E.nodeName&&"function"==typeof E.getAttribute)){for(var oe="<"+_.call(String(t.nodeName)),ae=t.attributes||[],ie=0;ie"}if(B(t)){if(0===t.length)return"[]";var se=ne(t,$);return L&&!function(e){for(var t=0;t=0)return!1;return!0}(se)?"["+te(se,L)+"]":"[ "+j.call(se,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&V(e)}(t)){var ce=ne(t,$);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===ce.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(ce,", ")+" }":"{ ["+String(t)+"] "+j.call(k.call("[cause]: "+$(t.cause),ce),", ")+" }"}if("object"==typeof t&&c){if(z&&"function"==typeof t[z]&&R)return R(t,{depth:C-r});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return i&&i.call(t,function(e,n){le.push($(n,t,!0)+" => "+$(e,t))}),ee("Map",a.call(t),le,L)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return u&&u.call(t,function(e){ue.push($(e,t))}),ee("Set",l.call(t),ue,L)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if(function(e){return"[object Number]"===K(e)&&V(e)}(t))return Y($(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return Y($(A.call(t)));if(function(e){return"[object Boolean]"===K(e)&&V(e)}(t))return Y(h.call(t));if(function(e){return"[object String]"===K(e)&&V(e)}(t))return Y($(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||"undefined"!=typeof globalThis&&t===globalThis)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===K(e)&&V(e)}(t)&&!U(t)){var de=ne(t,$),pe=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",he=!pe&&O&&Object(t)===t&&O in t?y.call(K(t),8,-1):fe?"Object":"",ge=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||fe?"["+j.call(k.call([],he||[],fe||[]),": ")+"] ":"");return 0===de.length?ge+"{}":L?ge+"{"+te(de,L)+"}":ge+"{ "+j.call(de,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return W.call(e,t)}function K(e){return g.call(e)}function Z(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return J(y.call(e,0,t.maxStringLength),t)+r}var o=$[t.quoteStyle||"single"];return o.lastIndex=0,F(w.call(w.call(e,o,"\\$1"),/[\x00-\x1f]/g,Q),"single",t)}function Q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function Y(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function ee(e,t,n,r){return e+" ("+t+") {"+(r?te(n,r):j.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+j.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=B(e),r=[];if(n){r.length=e.length;for(var o=0;o-1?"[^"+u(e)+"]+?":u(t)+"|(?:(?!"+u(t)+")[^"+u(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function c(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function l(e,t){for(var n=new Array(e.length),o=0;o-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t,n,a){if(e){var i=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&o.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var r=[],a=n.indexOf("["),i=a>=0?n.slice(0,a):n;if(i){if(!t.plainObjects&&o.call(Object.prototype,i)&&!t.allowPrototypes)return;r[r.length]=i}for(var s=n.length,c=a,l=0;c>=0&&l=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");r[r.length]="["+n.slice(c)+"]"}return r}(e,n);if(i)return function(e,t,n,o){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var i=e.slice(0,-1).join("");a=Array.isArray(t)&&t[i]?t[i].length:0}for(var s=o?t:c(t,n,a),l=e.length-1;l>=0;--l){var u,d=e[l];if("[]"===d&&n.parseArrays)u=r.isOverflow(s)?s:n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s,n.arrayLimit,n.plainObjects);else{u=n.plainObjects?{__proto__:null}:{};var p="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,f=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,h=parseInt(f,10),g=!isNaN(h)&&d!==f&&String(h)===f&&h>=0&&n.parseArrays;if(n.parseArrays||""!==f)if(g&&hu)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p,f=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p-1&&(v=a(v)?[v]:v),t.comma&&a(v)&&v.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");v=r.combine([],v,t.arrayLimit,t.plainObjects)}if(null!==g){var b=o.call(n,g);b&&("combine"===t.duplicates||m.indexOf("[]=")>-1)?n[g]=r.combine(n[g],v,t.arrayLimit,t.plainObjects):b&&"last"!==t.duplicates||(n[g]=v)}}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},p=Object.keys(u),f=0;f0?C.join(",")||null:void 0}];else if(c(v))O=v;else{var I=Object.keys(C);O=m?I.sort(m):I}var M=p?String(n).replace(/\./g,"%2E"):String(n),R=i&&c(C)&&1===C.length?M+"[]":M;if(s&&c(C)&&0===C.length)return R+"[]";for(var L=0;L0?_+b:""}},50505(e,t,n){"use strict";var r=n(72272),o=n(4198),a=Object.prototype.hasOwnProperty,i=Array.isArray,s=o(),c=function(e,t){return s.set(e,t),e},l=function(e){return s.has(e)},u=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},p=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),f=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;rn?c(f(a,{plainObjects:r}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=h?i.slice(c,c+h):i,u=[],d=0;d=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===r.RFC1738&&(40===f||41===f)?u[u.length]=l.charAt(d):f<128?u[u.length]=p[f]:f<2048?u[u.length]=p[192|f>>6]+p[128|63&f]:f<55296||f>=57344?u[u.length]=p[224|f>>12]+p[128|f>>6&63]+p[128|63&f]:(d+=1,f=65536+((1023&f)<<10|1023&l.charCodeAt(d)),u[u.length]=p[240|f>>18]+p[128|f>>12&63]+p[128|f>>6&63]+p[128|63&f])}s+=u.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isOverflow:l,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:c,maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;rr.arrayLimit)return c(f(t.concat(n),r),o);t[o]=n}else{if(!t||"object"!=typeof t)return[t,n];if(l(t)){var s=u(t)+1;t[s]=n,d(t,s)}else{if(r&&r.strictMerge)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0)}}return t}if(!t||"object"!=typeof t){if(l(n)){for(var p=Object.keys(n),h=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},g=0;gr.arrayLimit?c(f(v,r),v.length-1):v}var m=t;return i(t)&&!i(n)&&(m=f(t,r)),i(t)&&i(n)?(n.forEach(function(n,o){if(a.call(t,o)){var i=t[o];i&&"object"==typeof i&&n&&"object"==typeof n?t[o]=e(i,n,r):t[t.length]=n}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var i=n[o];if(a.call(t,o)?t[o]=e(t[o],i,r):t[o]=i,l(n)&&!l(t)&&c(t,u(n)),l(t)){var s=parseInt(o,10);String(s)===o&&s>=0&&s>u(t)&&d(t,s)}return t},m)}}},35360(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case v:case g:case c:return e;default:return t}}case o:return t}}}function x(e){return _(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||_(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===i},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b||e.$$typeof===m)},t.typeOf=_},17020(e,t,n){"use strict";e.exports=n(35360)},36910(e,t,n){"use strict";n.r(t),n.d(t,{BrowserRouter:()=>me,HashRouter:()=>ye,Link:()=>je,MemoryRouter:()=>B,NavLink:()=>Ae,Prompt:()=>q,Redirect:()=>Z,Route:()=>X,Router:()=>V,StaticRouter:()=>ae,Switch:()=>ie,generatePath:()=>K,matchPath:()=>Y,useHistory:()=>le,useLocation:()=>ue,useParams:()=>de,useRouteMatch:()=>pe,withRouter:()=>se});var r=n(21019);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}var a=n(51609),i=n.n(a),s=n(5821),c=n.n(s),l=n(64347),u=n(64408),d=n(51566),p=n(45166);function f(e){return"/"===e.charAt(0)?e:"/"+e}function h(e){return"/"===e.charAt(0)?e.substr(1):e}function g(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function v(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,l.A)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=(0,u.A)(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function w(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}})},replace:function(e,t){var r="REPLACE",o=y(e,t,p(),b.location);u.confirmTransitionTo(o,r,n,function(e){e&&(b.entries[b.index]=o,d({action:r,location:o}))})},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=b.index+e;return t>=0&&ta});const a=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?function(e,t){void 0===t&&(t="");var n,a=e&&e.split("/")||[],i=t&&t.split("/")||[],s=e&&r(e),c=t&&r(t),l=s||c;if(e&&r(e)?i=a:a.length&&(i.pop(),i=i.concat(a)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=i.length;p>=0;p--){var f=i[p];"."===f?o(i,p):".."===f?(o(i,p),d++):d&&(o(i,p),d--)}if(!l)for(;d--;d)i.unshift("..");!l||""===i[0]||i[0]&&r(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h}:null},43902(e,t,n){"use strict";var r=n(78311),o=n(71102),a=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=function(e,t){if(e)return a(e,t,!0)}(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var n=a(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!a(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=a(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},84566(e,t,n){"use strict";var r=n(49336),o=n(98801),a=n(78311),i=n(71102),s=r("%Map%",!0),c=o("Map.prototype.get",!0),l=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),d=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+a(e))},delete:function(t){if(e){var n=d(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),l(e,t,n)}};return t}},53635(e,t,n){"use strict";var r=n(49336),o=n(98801),a=n(78311),i=n(84566),s=n(71102),c=r("%WeakMap%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(i&&t)return t.delete(n);return!1},get:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?l(e,n):t&&t.get(n)},has:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){c&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new c),u(e,n,r)):i&&(t||(t=i()),t.set(n,r))}};return n}:i},4198(e,t,n){"use strict";var r=n(71102),o=n(78311),a=n(43902),i=n(84566),s=n(53635)||i||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},69015(e,t,n){"use strict";var r=n(51609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s(function(){o.value=n,o.getSnapshot=t,l(o)&&u({inst:o})},[e,n,t]),i(function(){return l(o)&&u({inst:o}),e(function(){l(o)&&u({inst:o})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},53098(e,t,n){"use strict";e.exports=n(69015)},51566(e,t,n){"use strict";function r(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}n.d(t,{A:()=>o});const o=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});if("object"==typeof t||"object"==typeof n){var o=r(t),a=r(n);return o!==t||a!==n?e(o,a):Object.keys(Object.assign({},t,n)).every(function(r){return e(t[r],n[r])})}return!1}:null},14058(){},30395(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;tr})},64347(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},21019(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},38698(e,t,n){"use strict";if(n.d(t,{BF:()=>d,FP:()=>v,Kg:()=>p,Y3:()=>g,Zb:()=>l,du:()=>c,fl:()=>h,vB:()=>u,zf:()=>f}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(51771);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(32125);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var a=n(75857);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var i=n(94224);function s(e,t,n){return Math.floor(e/t)!==n}function c(e,t){return t<0||t>=e.length}function l(e,t){return d(e.current,{disabledIndices:t})}function u(e,t){return d(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function d(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let a=t;do{a+=n?-o:o}while(a>=0&&a<=e.length-1&&v(e,a,r));return a}function p(e,{event:t,orientation:n,loopFocus:o,onLoop:l,rtl:u,cols:p,disabledIndices:f,minIndex:h,maxIndex:g,prevIndex:m,stopEvent:y=!1}){let w,b=m;if(t.key===i.il?w="up":t.key===i.Jd&&(w="down"),w){const n=[],i=[];let s=!1,u=0;{let t=null,r=-1;e.forEach((e,o)=>{if(null==e)return;u+=1;const a=e.closest('[role="row"]');a&&(s=!0),a===t&&-1!==r||(t=a,r+=1,n[r]=[]),n[r].push(o),i[o]=r})}let _=!1,x=0;if(s)for(const e of n){const t=e.length;t>x&&(x=t),t!==p&&(_=!0)}const k=_&&u{if(!_||-1===m)return;const a=i[m];if(null==a)return;const s=n[a].indexOf(m),c="up"===r?-1:1;for(let r=a+c,u=0;u=n.length){if(!o||k)return;if(r=r<0?n.length-1:0,l){const e=Math.min(s,n[r].length-1),o=n[r][e]??n[r][0],a=l(t,m,o);r=i[a]??r}}const a=n[r];for(let t=Math.min(s,a.length-1);t>=0;t-=1){const n=a[t];if(!v(e,n,f))return n}}},C=t=>{if(!k||-1===m)return;const n=m%j,a="up"===t?-j:j,i=g-g%j,s=(0,r.RI)(g/j)+1;for(let t=m-n+a,r=0;rg){if(!o)return;t=t<0?i:0}const r=Math.min(t+j-1,g);for(let o=Math.min(t+n,r);o>=t;o-=1)if(!v(e,o,f))return o}};y&&(0,a.jo)(t);const A=S(w)??C(w);if(void 0!==A)b=A;else if(-1===m)b="up"===w?g:h;else if(b=d(e,{startingIndex:m,amount:j,decrement:"up"===w,disabledIndices:f}),o){if("up"===w&&(m-je?r:r-j,l&&(b=l(t,m,b))}"down"===w&&m+j>g&&(b=d(e,{startingIndex:m%j-j,amount:j,disabledIndices:f}),l&&(b=l(t,m,b)))}c(e,b)&&(b=m)}if("both"===n){const n=(0,r.RI)(m/p);t.key===(u?i.eR:i.RJ)&&(y&&(0,a.jo)(t),m%p!==p-1?(b=d(e,{startingIndex:m,disabledIndices:f}),o&&s(b,p,n)&&(b=d(e,{startingIndex:m-m%p-1,disabledIndices:f}),l&&(b=l(t,m,b)))):o&&(b=d(e,{startingIndex:m-m%p-1,disabledIndices:f}),l&&(b=l(t,m,b))),s(b,p,n)&&(b=m)),t.key===(u?i.RJ:i.eR)&&(y&&(0,a.jo)(t),m%p!==0?(b=d(e,{startingIndex:m,decrement:!0,disabledIndices:f}),o&&s(b,p,n)&&(b=d(e,{startingIndex:m+(p-m%p),decrement:!0,disabledIndices:f}),l&&(b=l(t,m,b)))):o&&(b=d(e,{startingIndex:m+(p-m%p),decrement:!0,disabledIndices:f}),l&&(b=l(t,m,b))),s(b,p,n)&&(b=m));const h=(0,r.RI)(g/p)===n;c(e,b)&&(o&&h?(b=t.key===(u?i.RJ:i.eR)?g:d(e,{startingIndex:m-m%p-1,disabledIndices:f}),l&&(b=l(t,m,b))):b=m)}return b}function f(e,t,n){const r=[];let o=0;return e.forEach(({width:e,height:a},i)=>{let s=!1;for(n&&(o=0);!s;){const n=[];for(let r=0;rnull==r[e])?(n.forEach(e=>{r[e]=i}),s=!0):o+=1}}),[...r]}function h(e,t,n,r,o){if(-1===e)return-1;const a=n.indexOf(e),i=t[e];switch(o){case"tl":return a;case"tr":return i?a+i.width-1:a;case"bl":return i?a+(i.height-1)*r:a;case"br":return n.lastIndexOf(e);default:return-1}}function g(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function v(e,t,n){if("function"==typeof n?n(t):n?.includes(t))return!0;const r=e[t];return!!r&&(!function(e,t=(e?(0,o.L9)(e):null)){return!(!(e&&e.isConnected&&t)||function(e){return"hidden"===e.visibility||"collapse"===e.visibility}(t))&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}(r)||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}},94224(e,t,n){"use strict";n.d(t,{Jd:()=>i,RJ:()=>o,eR:()=>r,il:()=>a});const r="ArrowLeft",o="ArrowRight",a="ArrowUp",i="ArrowDown"},75857(e,t,n){"use strict";function r(e){e.preventDefault(),e.stopPropagation()}n.d(t,{jo:()=>r})},48071(e,t,n){"use strict";if(n.d(t,{$v:()=>y,Jd:()=>a,Kp:()=>l,LM:()=>h,Qi:()=>m,RJ:()=>s,eR:()=>i,eb:()=>u,il:()=>o,jF:()=>g,lZ:()=>d,rT:()=>v,ug:()=>p,yZ:()=>c,z5:()=>f}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(32125);const o="ArrowUp",a="ArrowDown",i="ArrowLeft",s="ArrowRight",c="Home",l="End",u=new Set([i,s]),d=new Set([i,s,c,l]),p=new Set([o,a]),f=new Set([o,a,c,l]),h=new Set([...u,...p]),g=new Set([...h,c,l]),v=new Set(["Shift","Control","Alt","Meta"]);function m(e){return!(!function(e){return(0,r.sb)(e)&&"INPUT"===e.tagName}(e)||null==e.selectionStart)||!(!(0,r.sb)(e)||"TEXTAREA"!==e.tagName)}function y(e,t,n,r){if(!e||!t||!t.scrollTo)return;let o=e.scrollLeft,a=e.scrollTop;const i=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?o=r+t.offsetWidth+i.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-i.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(o=r+t.offsetWidth+i.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&"horizontal"!==r){const n=w(e,t,"top"),r=b(e),o=b(t);n-o.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+o.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:o,top:a,behavior:"auto"})}function w(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);)t=t.offsetParent;return o}function b(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}},66961(e,t,n){"use strict";n.d(t,{h:()=>r});const r="data-composite-item-active"},99433(e,t,n){"use strict";n.d(t,{k:()=>s});var r=n(51609);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(81728);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var a=n(24191);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var i=n(93548);function s(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:s}=(0,a.G)(),{ref:c,index:l}=(0,i.q)(e),u=n===l,d=r.useRef(null),p=(0,o.a)(c,d);return{compositeProps:r.useMemo(()=>({tabIndex:u?0:-1,onFocus(){s(l)},onMouseMove(){const e=d.current;if(!t||!e)return;const n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;u||n||e.focus()}}),[u,s,l,t]),compositeRef:p,index:l}}},63994(e,t,n){"use strict";n.d(t,{u:()=>l});var r=n(51609);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(84151);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var a=n(22238);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var i=n(26686);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var s=n(42775);var c=n(10790);function l(e){const{children:t,elementsRef:n,labelsRef:l,onMapChange:f}=e,h=(0,a.K)(f),g=r.useRef(0),v=(0,o.j)(d).current,m=(0,o.j)(u).current,[y,w]=r.useState(0),b=r.useRef(y),_=(0,a.K)((e,t)=>{m.set(e,t??null),b.current+=1,w(b.current)}),x=(0,a.K)(e=>{m.delete(e),b.current+=1,w(b.current)}),k=r.useMemo(()=>{const e=new Map;return Array.from(m.keys()).filter(e=>e.isConnected).sort(p).forEach((t,n)=>{const r=m.get(t)??{};e.set(t,{...r,index:n})}),e},[m,y]);(0,i.g)(()=>{if("function"!=typeof MutationObserver||0===k.size)return;const e=new MutationObserver(e=>{const t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),0===t.size&&(b.current+=1,w(b.current))});return k.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[k]),(0,i.g)(()=>{b.current===y&&(n.current.length!==k.size&&(n.current.length=k.size),l&&l.current.length!==k.size&&(l.current.length=k.size),g.current=k.size),h(k)},[h,k,n,l,y]),(0,i.g)(()=>()=>{n.current=[]},[n]),(0,i.g)(()=>()=>{l&&(l.current=[])},[l]);const j=(0,a.K)(e=>(v.add(e),()=>{v.delete(e)}));(0,i.g)(()=>{v.forEach(e=>e(k))},[v,k]);const S=r.useMemo(()=>({register:_,unregister:x,subscribeMapChange:j,elementsRef:n,labelsRef:l,nextIndexRef:g}),[_,x,j,n,l,g]);return(0,c.jsx)(s.D.Provider,{value:S,children:t})}function u(){return new Map}function d(){return new Set}function p(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}},42775(e,t,n){"use strict";n.d(t,{D:()=>o,M:()=>a});var r=n(51609);const o=r.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function a(){return r.useContext(o)}},93548(e,t,n){"use strict";n.d(t,{q:()=>s});var r=n(51609);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(26686);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var a=n(42775);let i=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function s(e={}){const{label:t,metadata:n,textRef:s,indexGuessBehavior:c,index:l}=e,{register:u,unregister:d,subscribeMapChange:p,elementsRef:f,labelsRef:h,nextIndexRef:g}=(0,a.M)(),v=r.useRef(-1),[m,y]=r.useState(l??(c===i.GuessFromOrder?()=>{if(-1===v.current){const e=g.current;g.current+=1,v.current=e}return v.current}:-1)),w=r.useRef(null),b=r.useCallback(e=>{if(w.current=e,-1!==m&&null!==e&&(f.current[m]=e,h)){const n=void 0!==t;h.current[m]=n?t:s?.current?.textContent??e.textContent}},[m,f,h,t,s]);return(0,o.g)(()=>{if(null!=l)return;const e=w.current;return e?(u(e,n),()=>{d(e)}):void 0},[l,u,d,n]),(0,o.g)(()=>{if(null==l)return p(e=>{const t=w.current?e.get(w.current)?.index:null;null!=t&&y(t)})},[l,p,y]),r.useMemo(()=>({ref:b,index:m}),[m,b])}},38914(e,t,n){"use strict";n.d(t,{Y:()=>d});var r=n(51609);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(28368);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var a=n(63994);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var i=n(39963);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var s=n(24191);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var c=n(61155);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var l=n(90170);var u=n(10790);function d(e){const{render:t,className:n,style:d,refs:p=o.Ml,props:f=o.Ml,state:h=o.t0,stateAttributesMapping:g,highlightedIndex:v,onHighlightedIndexChange:m,orientation:y,dense:w,itemSizes:b,loopFocus:_,onLoop:x,cols:k,enableHomeAndEndKeys:j,onMapChange:S,stopEventPropagation:C=!0,rootRef:A,disabledIndices:E,modifierKeys:P,highlightItemOnHover:N=!1,tag:O="div",...T}=e,I=(0,l.j)(),{props:M,highlightedIndex:R,onHighlightedIndexChange:L,elementsRef:z,onMapChange:D,relayKeyboardEvent:$}=(0,i.R)({itemSizes:b,cols:k,loopFocus:_,onLoop:x,dense:w,orientation:y,highlightedIndex:v,onHighlightedIndexChange:m,rootRef:A,stopEventPropagation:C,enableHomeAndEndKeys:j,direction:I,disabledIndices:E,modifierKeys:P}),F=(0,c.o)(O,e,{state:h,ref:p,props:[M,...f,T],stateAttributesMapping:g}),H=r.useMemo(()=>({highlightedIndex:R,onHighlightedIndexChange:L,highlightItemOnHover:N,relayKeyboardEvent:$}),[R,L,N,$]);return(0,u.jsx)(s.H.Provider,{value:H,children:(0,u.jsx)(a.u,{elementsRef:z,onMapChange:e=>{S?.(e),D(e)},children:F})})}},24191(e,t,n){"use strict";if(n.d(t,{G:()=>i,H:()=>a}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(97495);var o=n(51609);const a=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?o.createContext(void 0):null;function i(e=!1){const t=o.useContext(a);if(void 0===t&&!e)throw new Error((0,r.A)(16));return t}},39963(e,t,n){"use strict";n.d(t,{R:()=>p});var r=n(51609);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(11149);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var a=n(22238);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var i=n(81728);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var s=n(48071);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var c=n(38698);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var l=n(66961);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var u=n(15044);const d=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?[]:null;function p(e){const{itemSizes:t,cols:n=1,loopFocus:p=!0,onLoop:f,dense:h=!1,orientation:g="both",direction:v,highlightedIndex:m,onHighlightedIndexChange:y,rootRef:w,enableHomeAndEndKeys:b=!1,stopEventPropagation:_=!1,disabledIndices:x,modifierKeys:k=d}=e,[j,S]=r.useState(0),C=n>1,A=r.useRef(null),E=(0,i.a)(A,w),P=r.useRef([]),N=r.useRef(!1),O=m??j,T=(0,a.K)((e,t=!1)=>{if((y??S)(e),t){const t=P.current[e];(0,s.$v)(A.current,t,v,g)}}),I=(0,a.K)(e=>{if(0===e.size||N.current)return;N.current=!0;const t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(l.h))??null,r=n?t.indexOf(n):-1;-1!==r&&T(r),(0,s.$v)(A.current,n,v,g)}),M=(0,a.K)((e,t,n)=>f?f?.(e,t,n,P):n),R=r.useMemo(()=>({"aria-orientation":"both"===g?void 0:g,ref:E,onFocus(e){const t=A.current,n=(0,u.EW)(e.nativeEvent);t&&null!=n&&(0,s.Qi)(n)&&n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){const r=b?s.jF:s.LM;if(!r.has(e.key))return;if(function(e,t){for(const n of s.rT.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,k))return;if(!A.current)return;const a="rtl"===v,i=a?s.eR:s.RJ,l={horizontal:i,vertical:s.Jd,both:i}[g],d=a?s.RJ:s.eR,m={horizontal:d,vertical:s.il,both:d}[g],y=(0,u.EW)(e.nativeEvent);if(null!=y&&(0,s.Qi)(y)&&!(0,o.F)(y)){const t=y.selectionStart,n=y.selectionEnd,r=y.value??"";if(null==t||e.shiftKey||t!==n)return;if(e.key!==m&&t0)return}let w=O;const j=(0,c.Zb)(P,x),S=(0,c.vB)(P,x);if(C){const r=t||Array.from({length:P.current.length},()=>({width:1,height:1})),o=(0,c.zf)(r,n,h),i=o.findIndex(e=>null!=e&&!(0,c.FP)(P.current,e,x)),l=o.reduce((e,t,n)=>null==t||(0,c.FP)(P.current,t,x)?e:n,-1);w=o[(0,c.Kg)(o.map(e=>null!=e?P.current[e]:null),{event:e,orientation:g,loopFocus:p,onLoop:M,cols:n,disabledIndices:(0,c.Y3)([...x||P.current.map((e,t)=>(0,c.FP)(P.current,t)?t:void 0),void 0],o),minIndex:i,maxIndex:l,prevIndex:(0,c.fl)(O>S?j:O,r,o,n,e.key===s.Jd?"bl":e.key===s.RJ?"tr":"tl"),rtl:a})]}const E={horizontal:[i],vertical:[s.Jd],both:[i,s.Jd]}[g],N={horizontal:[d],vertical:[s.il],both:[d,s.il]}[g],I=C?r:{horizontal:b?s.lZ:s.eb,vertical:b?s.z5:s.ug,both:r}[g];b&&(e.key===s.yZ?w=j:e.key===s.Kp&&(w=S)),w===O&&(E.includes(e.key)||N.includes(e.key))&&(p&&w===S&&E.includes(e.key)?(w=j,f&&(w=f(e,O,w,P))):p&&w===j&&N.includes(e.key)?(w=S,f&&(w=f(e,O,w,P))):w=(0,c.BF)(P.current,{startingIndex:w,decrement:N.includes(e.key),disabledIndices:x})),w===O||(0,c.du)(P.current,w)||(_&&e.stopPropagation(),I.has(e.key)&&e.preventDefault(),T(w,!0),queueMicrotask(()=>{P.current[w]?.focus()}))}}),[n,h,v,x,P,b,O,C,t,p,f,M,E,k,T,g,_]);return r.useMemo(()=>({props:R,highlightedIndex:O,onHighlightedIndexChange:T,elementsRef:P,disabledIndices:x,onMapChange:I,relayKeyboardEvent:R.onKeyDown}),[R,O,T,P,x,I])}},32739(e,t,n){"use strict";if(n.d(t,{d:()=>o}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(28368);function o(e,t,n,o){let a=!1,i=!1;const s=o??r.t0;return{reason:e,event:t??new Event("base-ui"),cancel(){a=!0},allowPropagation(){i=!0},get isCanceled(){return a},get isPropagationAllowed(){return i},trigger:n,...s}}},33070(e,t,n){"use strict";n.d(t,{n:()=>i});var r=n(51609);const o=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?r.createContext(void 0):null,a={disableStyleElements:!1};function i(){return r.useContext(o)??a}},90170(e,t,n){"use strict";n.d(t,{j:()=>a});var r=n(51609);const o=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?r.createContext(void 0):null;function a(){const e=r.useContext(o);return e?.direction??"ltr"}},50158(e,t,n){"use strict";function r(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}n.d(t,{v:()=>r})},19049(e,t,n){"use strict";n.d(t,{Vh:()=>i,c:()=>a,dv:()=>r,r9:()=>o});const r="none",o="disabled",a="missing",i="initial"},15044(e,t,n){"use strict";if(n.d(t,{EW:()=>i,RS:()=>o,gR:()=>a}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(32125);function o(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function a(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function i(e){return"composedPath"in e?e.composedPath()[0]:e.target}},5332(e,t,n){"use strict";n.d(t,{G:()=>i,T:()=>r});let r=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const o={[r.startingStyle]:""},a={[r.endingStyle]:""},i={transitionStatus:e=>"starting"===e?o:"ending"===e?a:null}},11172(e,t,n){"use strict";n.d(t,{s:()=>u});var r=n(51609);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(32125);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var a=n(22238);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var i=n(26686);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var s=n(43051);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var c=n(24191);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var l=n(74694);function u(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:o=0,native:u=!0,composite:p}=e,f=r.useRef(null),h=(0,c.G)(!0),g=p??void 0!==h,{props:v}=(0,l.S)({focusableWhenDisabled:n,disabled:t,composite:g,tabIndex:o,isNativeButton:u}),m=r.useCallback(()=>{const e=f.current;d(e)&&g&&t&&void 0===v.disabled&&e.disabled&&(e.disabled=!1)},[t,v.disabled,g]);return(0,i.g)(m,[m]),{getButtonProps:r.useCallback((e={})=>{const{onClick:n,onMouseDown:r,onKeyUp:o,onKeyDown:a,onPointerDown:i,...c}=e;return(0,s.v6)({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t)return;if((0,s.PT)(e),a?.(e),e.baseUIHandlerPrevented)return;const r=e.target===e.currentTarget,o=e.currentTarget,i=d(o),c=!u&&(l=o,Boolean("A"===l?.tagName&&l?.href));var l;const p=r&&(u?i:!c),f="Enter"===e.key,h=" "===e.key,v=o.getAttribute("role"),m=v?.startsWith("menuitem")||"option"===v||"gridcell"===v;if(r&&g&&h){if(e.defaultPrevented&&m)return;return e.preventDefault(),void(c||u&&i?(o.click(),e.preventBaseUIHandler()):p&&(n?.(e),e.preventBaseUIHandler()))}p&&(u||!h&&!f||e.preventDefault(),!u&&f&&n?.(e))},onKeyUp(e){t||((0,s.PT)(e),o?.(e),e.target===e.currentTarget&&u&&g&&d(e.currentTarget)&&" "===e.key?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||u||g||" "!==e.key||n?.(e))},onPointerDown(e){t?e.preventDefault():i?.(e)}},u?{type:"button"}:{role:"button"},v,c)},[t,v,g,u]),buttonRef:(0,a.K)(e=>{f.current=e,m()})}}function d(e){return(0,o.sb)(e)&&"BUTTON"===e.tagName}},48214(e,t,n){"use strict";n.d(t,{V:()=>c});var r=n(75795);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(34437);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var a=n(22238);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var i=n(16046);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var s=n(5332);function c(e,t=!1,n=!0){const c=(0,o.N)();return(0,a.K)((o,a=null)=>{c.cancel();const l=(0,i.q)(e);if(null==l)return;const u=l,d=()=>{r.flushSync(o)};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)o();else{if(t){const e=s.T.startingStyle;if(!u.hasAttribute(e))return void c.request(p);const t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),p())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void a?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(p)}function p(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||d()}).catch(()=>{if(n)return void(a?.aborted||d());const e=u.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&p()})}})}},65149(e,t,n){"use strict";if(n.d(t,{e:()=>o}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(76619);function o(e){return(0,r.B)(e,"base-ui")}},55120(e,t,n){"use strict";n.d(t,{v:()=>i});var r=n(51609);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(22238);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var a=n(48214);function i(e){const{enabled:t=!0,open:n,ref:i,onComplete:s}=e,c=(0,o.K)(s),l=(0,a.V)(i,n,!1);r.useEffect(()=>{if(!t)return;const e=new AbortController;return l(c,e.signal),()=>{e.abort()}},[t,n,c,l])}},61155(e,t,n){"use strict";if(n.d(t,{o:()=>f}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(97495);var o=n(51609);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var a=n(81728);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var i=n(7135);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var s=n(6509);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var c=n(28368);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var l=n(50158);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var u=n(47360);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var d=n(23870);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var p=n(43051);function f(e,t,n={}){const f=t.render,g=function(e,t={}){const{className:n,style:r,render:o}=e,{state:f=c.t0,ref:h,props:g,stateAttributesMapping:v,enabled:m=!0}=t,y=m?(0,u.S)(n,f):void 0,w=m?(0,d.m)(r,f):void 0,b=m?(0,l.v)(f,v):c.t0,_=m&&g?function(e){return Array.isArray(e)?(0,p.lZ)(e):(0,p.v6)(void 0,e)}(g):void 0,x=m?(0,s.r)(b,_)??{}:c.t0;return"undefined"!=typeof document&&(m?Array.isArray(h)?x.ref=(0,a.U)([x.ref,(0,i.v)(o),...h]):x.ref=(0,a.a)(x.ref,(0,i.v)(o),h):(0,a.a)(null,null)),m?(void 0!==y&&(x.className=(0,p.VN)(x.className,y)),void 0!==w&&(x.style=(0,s.r)(x.style,w)),x):c.t0}(t,n);return!1===n.enabled?null:function(e,t,n,a){if(t){if("function"==typeof t)return t(n,a);const e=(0,p.v6)(n,t.props);e.ref=n.ref;let r=t;return r?.$$typeof===h&&(r=o.Children.toArray(t)[0]),o.cloneElement(r,e)}if(e&&"string"==typeof e)return function(e,t){return"button"===e?(0,o.createElement)("button",{type:"button",...t,key:t.key}):"img"===e?(0,o.createElement)("img",{alt:"",...t,key:t.key}):o.createElement(e,t)}(e,n);throw new Error((0,r.A)(8))}(e,f,g,n.state??c.t0)}const h=Symbol.for("react.lazy")},99314(e,t,n){"use strict";n.d(t,{$:()=>i});var r=n(51609);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(26686);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var a=n(34437);function i(e,t=!1,n=!1){const[i,s]=r.useState(e&&t?"idle":void 0),[c,l]=r.useState(e);return e&&!c&&(l(!0),s("starting")),e||!c||"ending"===i||n||s("ending"),e||c||"ending"!==i||s(void 0),(0,o.g)(()=>{if(!e&&c&&"ending"!==i&&n){const e=a.K.request(()=>{s("ending")});return()=>{a.K.cancel(e)}}},[e,c,i,n]),(0,o.g)(()=>{if(!e||t)return;const n=a.K.request(()=>{s(void 0)});return()=>{a.K.cancel(n)}},[t,e]),(0,o.g)(()=>{if(!e||!t)return;e&&c&&"idle"!==i&&s("starting");const n=a.K.request(()=>{s("idle")});return()=>{a.K.cancel(n)}},[t,e,c,i]),{mounted:c,setMounted:l,transitionStatus:i}}},43051(e,t,n){"use strict";if(n.d(t,{PT:()=>h,VN:()=>g,lZ:()=>i,v6:()=>a}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(6509);const o={};function a(e,t,n,r,o){if(!(n||r||o||e))return s(t);let a=s(e);return t&&(a=c(a,t)),n&&(a=c(a,n)),r&&(a=c(a,r)),o&&(a=c(a,o)),a}function i(e){if(0===e.length)return o;if(1===e.length)return s(e[0]);let t=s(e[0]);for(let n=1;n=65&&o<=90&&("function"==typeof t||void 0===t)}function u(e){return"function"==typeof e}function d(e,t){return u(e)?e(t):e??o}function p(e,t){return t?e?(...n)=>{const r=n[0];if(v(r)){const o=r;h(o);const a=t(...n);return o.baseUIHandlerPrevented||e?.(...n),a}const o=t(...n);return e?.(...n),o}:f(t):e}function f(e){return e?(...t)=>{const n=t[0];return v(n)&&h(n),e(...t)}:e}function h(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function g(e,t){return t?e?t+" "+e:t:e}function v(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},85520(e,t,n){"use strict";n.d(t,{B:()=>r});let r=function(e){return e.activeTabLeft="--active-tab-left",e.activeTabRight="--active-tab-right",e.activeTabTop="--active-tab-top",e.activeTabBottom="--active-tab-bottom",e.activeTabWidth="--active-tab-width",e.activeTabHeight="--active-tab-height",e}({})},81746(e,t,n){"use strict";n.d(t,{K:()=>r});const r='!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();'},18948(e,t,n){"use strict";if(n.d(t,{O:()=>a,b:()=>i}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(97495);var o=n(51609);const a=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?o.createContext(void 0):null;function i(){const e=o.useContext(a);if(void 0===e)throw new Error((0,r.A)(65));return e}},46772(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(5332);let o=function(e){return e.index="data-index",e.activationDirection="data-activation-direction",e.orientation="data-orientation",e.hidden="data-hidden",e[e.startingStyle=r.T.startingStyle]="startingStyle",e[e.endingStyle=r.T.endingStyle]="endingStyle",e}({})},15088(e,t,n){"use strict";if(n.d(t,{G:()=>a,z:()=>i}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(97495);var o=n(51609);const a=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?o.createContext(void 0):null;function i(){const e=o.useContext(a);if(void 0===e)throw new Error((0,r.A)(64));return e}},11178(e,t,n){"use strict";n.d(t,{h:()=>o});let r=function(e){return e.activationDirection="data-activation-direction",e.orientation="data-orientation",e}({});const o={tabActivationDirection:e=>({[r.activationDirection]:e})}},48495(e,t,n){"use strict";if(n.d(t,{C:()=>o}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(61155);function o(e){return(0,r.o)(e.defaultTagName??"div",e,e)}},32865(e,t,n){"use strict";if(n.d(t,{r:()=>a}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(51771);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(32125);function a(e){const t=(0,o.L9)(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const i=(0,o.sb)(e),s=i?e.offsetWidth:n,c=i?e.offsetHeight:a;return((0,r.LI)(n)!==s||(0,r.LI)(a)!==c)&&(n=s,a=c),{width:n,height:a}}},47360(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{S:()=>r})},16046(e,t,n){"use strict";function r(e){return null==e?e:"current"in e?e.current:e}n.d(t,{q:()=>r})},23870(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{m:()=>r})},74694(e,t,n){"use strict";n.d(t,{S:()=>o});var r=n(51609);function o(e){const{focusableWhenDisabled:t,disabled:n,composite:o=!1,tabIndex:a=0,isNativeButton:i}=e,s=o&&!1!==t,c=o&&!1===t;return{props:r.useMemo(()=>{const e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=a,!i&&n&&(e.tabIndex=t?a:-1)),(i&&(t||s)||!i&&n)&&(e["aria-disabled"]=n),!i||t&&!c||(e.disabled=n),e},[o,n,t,s,c,i,a])}}},69634(e,t,n){"use strict";n.d(t,{i:()=>c});var r=n(53098);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(28368);function a(){return o.tE}function i(){return!1}function s(){return!0}function c(){return(0,r.useSyncExternalStore)(a,i,s)}},28368(e,t,n){"use strict";function r(){}n.d(t,{Ml:()=>o,t0:()=>a,tE:()=>r});const o=Object.freeze([]),a=Object.freeze({})},97495(e,t,n){"use strict";n.d(t,{A:()=>o});const r=function(e,...t){const n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`};const o=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?r:null},7135(e,t,n){"use strict";n.d(t,{v:()=>a});var r=n(51609);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(26440);function a(e){if(!r.isValidElement(e))return null;const t=e,n=t.props;return((0,o._)(19)?n?.ref:t.ref)??null}},50856(e,t,n){"use strict";if(n.d(t,{Y:()=>o}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(26440);function o(e){return(0,r._)(19)?e:e?"true":void 0}},11149(e,t,n){"use strict";function r(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}n.d(t,{F:()=>r})},6509(e,t,n){"use strict";function r(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}n.d(t,{r:()=>r})},40394(e,t,n){"use strict";function r(e){return e?.ownerDocument||document}n.d(t,{R:()=>r})},26440(e,t,n){"use strict";n.d(t,{_:()=>a});var r=n(51609);const o=parseInt(r.version,10);function a(e){return o>=e}},56625(e,t,n){"use strict";var r;n.d(t,{X:()=>a});var o=n(51609);const a={...r||(r=n.t(o,2))}},34437(e,t,n){"use strict";if(n.d(t,{K:()=>s,N:()=>c}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(84151);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(66458);const a=null;globalThis.requestAnimationFrame;const i=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;const t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return i.request(e)}static cancel(e){return i.cancel(e)}currentId=a;request(e){this.cancel(),this.currentId=i.request(()=>{this.currentId=a,e()})}cancel=()=>{this.currentId!==a&&(i.cancel(this.currentId),this.currentId=a)};disposeEffect=()=>this.cancel}function c(){const e=(0,r.j)(s.create).current;return(0,o.y)(e.disposeEffect),e}},7664(e,t,n){"use strict";n.d(t,{q:()=>o});var r=n(51609);function o({controlled:e,default:t,name:n,state:o="value"}){const{current:a}=r.useRef(void 0!==e),[i,s]=r.useState(t);return[a?e:i,r.useCallback(e=>{a||s(e)},[])]}},84776(e,t,n){"use strict";n.d(t,{g:()=>o});var r=n(51609);function o(){const[,e]=r.useState({});return r.useCallback(()=>{e({})},[])}},76619(e,t,n){"use strict";n.d(t,{B:()=>s});var r=n(51609),o=n(56625);let a=0;const i=o.X.useId;function s(e,t){if(void 0!==i){const n=i();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){const[n,o]=r.useState(e),i=e||n;return r.useEffect(()=>{null==n&&(a+=1,o(`${t}-${a}`))},[n,t]),i}(e,t)}},26686(e,t,n){"use strict";n.d(t,{g:()=>o});var r=n(51609);const o="undefined"!=typeof document?r.useLayoutEffect:()=>{}},81728(e,t,n){"use strict";if(n.d(t,{U:()=>a,a:()=>o}),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var r=n(84151);function o(e,t,n,o){const a=(0,r.j)(i).current;return function(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}(a,e,t,n,o)&&s(a,[e,t,n,o]),a.callback}function a(e){const t=(0,r.j)(i).current;return function(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}(t,e)&&s(t,e),t.callback}function i(){return{callback:null,cleanup:null,refs:[]}}function s(e,t){e.refs=t,t.every(e=>null==e)?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;ea});var r=n(51609);const o=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?[]:null;function a(e){r.useEffect(e,o)}},84151(e,t,n){"use strict";n.d(t,{j:()=>a});var r=n(51609);const o={};function a(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}},22238(e,t,n){"use strict";n.d(t,{K:()=>s});var r=n(56625);if(/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j))var o=n(84151);const a=r.X.useInsertionEffect,i=a&&a!==r.X.useLayoutEffect?a:e=>e();function s(e){const t=(0,o.j)(c).current;return t.next=e,i(t.effect),t.trampoline}function c(){const e={next:void 0,callback:l,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function l(){}},32125(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){return!!r()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function i(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function s(e){return o(e).getComputedStyle(e)}n.d(t,{L9:()=>s,Ng:()=>i,sb:()=>a})},51771(e,t,n){"use strict";n.d(t,{LI:()=>r,RI:()=>o}),Math.min,Math.max;const r=Math.round,o=Math.floor},31431(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(70851),o=n(86087),a=n(10790),i=(0,o.forwardRef)(({children:e,className:t,ariaLabel:n,as:o="div",...i},s)=>(0,a.jsx)(o,{ref:s,className:(0,r.A)("admin-ui-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...i,children:e}));i.displayName="NavigableRegion";var s=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?i:null},35583(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(86087),o=(0,r.forwardRef)(({icon:e,size:t=24,...n},o)=>(0,r.cloneElement)(e,{width:t,height:t,...n,ref:o}))},86544(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M14 6H6v8h1.5V8.5L17 18l1-1-9.5-9.5H14V6Z"})})},3635(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M12.5939 21C14.1472 21 16.1269 20.5701 17.0711 20.1975L16.6447 18.879C16.0964 19.051 14.3299 19.6242 12.6548 19.6242C7.4467 19.6242 4.67513 16.8726 4.67513 12C4.67513 7.21338 7.50762 4.34713 12.2893 4.34713C17.132 4.34713 19.4162 7.55732 19.4162 10.7675C19.4162 14.035 19.0508 15.4968 17.4975 15.4968C16.5838 15.4968 16.0964 14.7803 16.0964 13.9777V7.5H14.4822V8.30255H14.3909C14.1777 7.67198 12.9898 7.12739 11.467 7.2707C9.18274 7.5 7.4467 9.27707 7.4467 11.8567C7.4467 14.5796 8.81726 16.672 11.467 16.758C13.203 16.8153 14.1168 16.0127 14.4822 15.1815H14.5736C14.7563 16.414 16.401 16.8439 17.467 16.8439C20.6954 16.8439 21 13.5764 21 10.7962C21 6.86943 18.0761 3 12.3807 3C6.50254 3 3 6.3535 3 11.9427C3 17.7325 6.38071 21 12.5939 21ZM11.7107 15.2962C9.73096 15.2962 9.03046 13.6051 9.03046 11.7707C9.03046 10.1083 10.0355 8.67516 11.7716 8.67516C13.599 8.67516 14.5736 9.36306 14.5736 11.7707C14.5736 14.1497 13.7513 15.2962 11.7107 15.2962Z"})})},16689(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.13 5.5l1.926 1.927A4.975 4.975 0 007.025 10H5v1.5h2V13H5v1.5h2.1a5.002 5.002 0 009.8 0H19V13h-2v-1.5h2V10h-2.025a4.979 4.979 0 00-1.167-2.74l1.76-1.76-1.061-1.06-1.834 1.834A4.977 4.977 0 0012 5.5c-1.062 0-2.046.33-2.855.895L7.19 4.44 6.13 5.5zm2.37 5v3a3.5 3.5 0 107 0v-3a3.5 3.5 0 10-7 0z"})})},18277(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z"})})},96348(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})})},76099(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})})},87143(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})},46900(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})})},51383(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})})},79728(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})})},41159(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},36055(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})})},34426(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})})},15237(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})})},51912(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M12 4a8 8 0 1 1 .001 16.001A8 8 0 0 1 12 4Zm0 1.5a6.5 6.5 0 1 0-.001 13.001A6.5 6.5 0 0 0 12 5.5Zm.75 11h-1.5V15h1.5v1.5Zm-.445-9.234a3 3 0 0 1 .445 5.89V14h-1.5v-1.25c0-.57.452-.958.917-1.01A1.5 1.5 0 0 0 12 8.75a1.5 1.5 0 0 0-1.5 1.5H9a3 3 0 0 1 3.305-2.984Z"})})},18817(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})})},2525(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})})},88819(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})})},63149(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})})},59505(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})})},94173(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})})},95834(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5573),o=n(10790),a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m11.3 17.2-5-5c-.1-.1-.1-.3 0-.4l2.3-2.3-1.1-1-2.3 2.3c-.7.7-.7 1.8 0 2.5l5 5H7.5v1.5h5.3v-5.2h-1.5v2.6zm7.5-6.4-5-5h2.7V4.2h-5.2v5.2h1.5V6.8l5 5c.1.1.1.3 0 .4l-2.3 2.3 1.1 1.1 2.3-2.3c.6-.7.6-1.9-.1-2.5z"})})},28865(e,t,n){"use strict";n.d(t,{N:()=>h});var r=n(48495),o=n(43051),a=n(70851),i=n(86087),s=n(27723),c=n(10790),l="data-wp-hash";function u(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=u();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)d(e,n,r)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const r=u();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void o.add(t);const a=e.createElement("style");a.setAttribute(l,t),a.appendChild(e.createTextNode(n)),e.head.appendChild(a),o.add(t)}function p(e,t){const n=u();n.styles.set(e,t);for(const r of n.documents.keys())d(r,e,t)}p("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");p("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");p("7e0119b657",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-regular,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var f={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};p("d390e935a7","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var h=(0,i.forwardRef)(function({children:e,variant:t="default",tone:n="brand",openInNewTab:i=!1,render:l,className:u,...d},p){return(0,r.C)({render:l,defaultTagName:"a",ref:p,props:(0,o.v6)(d,{className:(0,a.A)("_2c0831b0499dbd6e__a","_336cd3e4e743482f__box-sizing","_08e8a2e44959f892__outset-ring--focus","unstyled"!==t&&f.link,"unstyled"!==t&&f[`is-${n}`],"unstyled"===t&&f["is-unstyled"],u),target:i?"_blank":void 0,children:(0,c.jsxs)(c.Fragment,{children:[e,i&&(0,c.jsx)("span",{className:f["link-icon"],role:"img","aria-label": /* translators: accessibility text appended to link text */ /* translators: accessibility text appended to link text */(0,s.__)("(opens in a new tab)")})]})})})})},26983(e,t,n){"use strict";n.d(t,{B:()=>u});var r=n(48495),o=n(43051),a=n(86087),i="data-wp-hash";function s(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=s();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)c(e,n,r)}(document)),e.__wpStyleRuntime}function c(e,t,n){if(!e.head)return;const r=s();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${i}]`))if(n.getAttribute(i)===t)return!0;return!1}(e,t))return void o.add(t);const a=e.createElement("style");a.setAttribute(i,t),a.appendChild(e.createTextNode(n)),e.head.appendChild(a),o.add(t)}!function(e,t){const n=s();n.styles.set(e,t);for(const r of n.documents.keys())c(r,e,t)}("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var l={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},u=(0,a.forwardRef)(function({direction:e,gap:t,align:n,justify:a,wrap:i,render:s,...c},u){const d={gap:t&&l[t],alignItems:n,justifyContent:a,flexDirection:e,flexWrap:i};return(0,r.C)({render:s,ref:u,props:(0,o.v6)(c,{style:d,className:"_19ce0419607e1896__stack"})})})},49994(e,t,n){"use strict";n.d(t,{P9:()=>a,g5:()=>o,hP:()=>i}),n(86087),/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)&&n(77511);var r=n(10790),o=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?function(){}:null,a=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?function(){}:null,i=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?function({children:e}){return(0,r.jsx)(r.Fragment,{children:e})}:null},82921(e,t,n){"use strict";n.d(t,{B:()=>E});var r=n(86087),o=n(70851),a=n(51609),i=n(22238),s=n(28368),c=n(38914),l=n(11178),u=n(15088),d=n(18948),p=n(10790);const f=a.forwardRef(function(e,t){const{activateOnFocus:n=!1,className:r,loopFocus:o=!0,render:f,style:h,...g}=e,{onValueChange:v,orientation:m,value:y,setTabMap:w,tabActivationDirection:b}=(0,u.z)(),[_,x]=a.useState(0),[k,j]=a.useState(null),S=a.useRef(new Set),C=a.useRef(new Set),A=a.useRef(null);a.useEffect(()=>{if("undefined"==typeof ResizeObserver)return;const e=new ResizeObserver(()=>{S.current.forEach(e=>{e()})});return A.current=e,k&&e.observe(k),C.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),A.current=null}},[k]);const E=(0,i.K)(e=>(S.current.add(e),()=>{S.current.delete(e)})),P=(0,i.K)(e=>(C.current.add(e),A.current?.observe(e),()=>{C.current.delete(e),A.current?.unobserve(e)})),N=(0,i.K)((e,t)=>{e!==y&&v(e,t)}),O={orientation:m,tabActivationDirection:b},T={"aria-orientation":"vertical"===m?"vertical":void 0,role:"tablist"},I=a.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:_,registerIndicatorUpdateListener:E,registerTabResizeObserverElement:P,onTabActivation:N,setHighlightedTabIndex:x,tabsListElement:k}),[n,_,E,P,N,x,k]);return(0,p.jsx)(d.O.Provider,{value:I,children:(0,p.jsx)(c.Y,{render:f,className:r,style:h,state:O,refs:[t,j],props:[T,g],stateAttributesMapping:l.h,highlightedIndex:_,enableHomeAndEndKeys:!0,loopFocus:o,orientation:m,onHighlightedIndexChange:x,onMapChange:w,disabledIndices:s.Ml})})});var h=n(84776),g=n(61155),v=n(32865),m=n(69634),y=n(81746),w=n(85520),b=n(33070);const _={...l.h,activeTabPosition:()=>null,activeTabSize:()=>null},x=a.forwardRef(function(e,t){const{className:n,render:r,renderBeforeHydration:o=!1,style:i,...s}=e,{nonce:c}=(0,b.n)(),{getTabElementBySelectedValue:l,orientation:f,tabActivationDirection:x,value:k}=(0,u.z)(),{tabsListElement:j,registerIndicatorUpdateListener:S}=(0,d.b)(),C=(0,m.i)(),A=(0,h.g)();a.useEffect(()=>S(A),[S,A]);let E=0,P=0,N=0,O=0,T=0,I=0,M=!1;if(null!=k&&null!=j){const e=l(k);if(M=!0,null!=e){const{width:t,height:n}=(0,v.r)(e),{width:r,height:o}=(0,v.r)(j),a=e.getBoundingClientRect(),i=j.getBoundingClientRect(),s=r>0?i.width/r:1,c=o>0?i.height/o:1;if(Math.abs(s)>Number.EPSILON&&Math.abs(c)>Number.EPSILON){const e=a.left-i.left,t=a.top-i.top;E=e/s+j.scrollLeft-j.clientLeft,N=t/c+j.scrollTop-j.clientTop}else E=e.offsetLeft,N=e.offsetTop;T=t,I=n,P=j.scrollWidth-E-T,O=j.scrollHeight-N-I}}const R=M?{left:E,right:P,top:N,bottom:O}:null,L=M?{width:T,height:I}:null,z=M?{[w.B.activeTabLeft]:`${E}px`,[w.B.activeTabRight]:`${P}px`,[w.B.activeTabTop]:`${N}px`,[w.B.activeTabBottom]:`${O}px`,[w.B.activeTabWidth]:`${T}px`,[w.B.activeTabHeight]:`${I}px`}:void 0,D=M&&T>0&&I>0,$={orientation:f,activeTabPosition:R,activeTabSize:L,tabActivationDirection:x},F=(0,g.o)("span",e,{state:$,ref:t,props:[{role:"presentation",style:z,hidden:!D},s,{suppressHydrationWarning:!0}],stateAttributesMapping:_});return null==k?null:(0,p.jsxs)(a.Fragment,{children:[F,C&&o&&(0,p.jsx)("script",{nonce:c,dangerouslySetInnerHTML:{__html:y.K},suppressHydrationWarning:!0})]})});var k=n(29491),j="data-wp-hash";function S(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=S();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)C(e,n,r)}(document)),e.__wpStyleRuntime}function C(e,t,n){if(!e.head)return;const r=S();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${j}]`))if(n.getAttribute(j)===t)return!0;return!1}(e,t))return void o.add(t);const a=e.createElement("style");a.setAttribute(j,t),a.appendChild(e.createTextNode(n)),e.head.appendChild(a),o.add(t)}!function(e,t){const n=S();n.styles.set(e,t);for(const r of n.documents.keys())C(r,e,t)}("bb8cbb8f31",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-factor:1;--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-factor:-1;--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible)\n\t\t\t&[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true]\n\t\t\t\t[role=tab]:is([aria-selected=true])\n\t\t\t\t&{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}');var A={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},E=(0,r.forwardRef)(function({children:e,variant:t="default",className:n,activateOnFocus:a,...i},s){const[c,l]=(0,r.useState)(null),[u,d]=(0,r.useState)({first:!1,last:!1,isScrolling:!1});(0,r.useEffect)(()=>{if(!c)return;const e=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=c,r=Math.max(e-t,0),o="rtl"===(c.dir||("undefined"!=typeof window?window.getComputedStyle(c).direction:"ltr"))&&n<0?-n:n;d({first:o>1,last:ot})},t=new ResizeObserver(e);t.observe(c);let n=!1;const r=()=>{n||(requestAnimationFrame(()=>{e(),n=!1}),n=!0)};return c.addEventListener("scroll",r,{passive:!0}),e(),()=>{c.removeEventListener("scroll",r),t.disconnect()}},[c]);const h=(0,k.useMergeRefs)([s,e=>l(e)]);return(0,p.jsxs)(f,{ref:h,activateOnFocus:a,"data-select-on-move":a?"true":"false",className:(0,o.A)(A.tablist,u.first&&A["is-overflowing-first"],u.last&&A["is-overflowing-last"],A[`is-${t}-variant`],n),...i,tabIndex:i.tabIndex??(u.isScrolling?-1:void 0),children:[e,(0,p.jsx)(x,{className:A.indicator})]})})},58253(e,t,n){"use strict";n.d(t,{Z:()=>S});var r=n(86087),o=n(70851),a=n(51609),i=n(50856),s=n(26686),c=n(65149),l=n(5332),u=n(55120),d=n(99314),p=n(61155),f=n(93548),h=n(11178),g=n(15088),v=n(46772);const m={...h.h,...l.G},y=a.forwardRef(function(e,t){const{className:n,value:r,render:o,keepMounted:l=!1,style:h,...y}=e,{value:w,getTabIdByPanelValue:b,orientation:_,tabActivationDirection:x,registerMountedTabPanel:k,unregisterMountedTabPanel:j}=(0,g.z)(),S=(0,c.e)(),C=a.useMemo(()=>({id:S,value:r}),[S,r]),{ref:A,index:E}=(0,f.q)({metadata:C}),P=r===w,{mounted:N,transitionStatus:O,setMounted:T}=(0,d.$)(P),I=!N,M=b(r),R={hidden:I,orientation:_,tabActivationDirection:x,transitionStatus:O},L=a.useRef(null),z=(0,p.o)("div",e,{state:R,ref:[t,A,L],props:[{"aria-labelledby":M,hidden:I,id:S,role:"tabpanel",tabIndex:P?0:-1,inert:(0,i.Y)(!P),[v.A.index]:E},y],stateAttributesMapping:m});return(0,u.v)({open:P,ref:L,onComplete(){P||T(!1)}}),(0,s.g)(()=>{if((!I||l)&&null!=S)return k(r,S),()=>{j(r,S)}},[I,l,r,S,k,j]),l||N?z:null});var w=n(49994),b=n(10790),_="data-wp-hash";function x(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=x();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)k(e,n,r)}(document)),e.__wpStyleRuntime}function k(e,t,n){if(!e.head)return;const r=x();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${_}]`))if(n.getAttribute(_)===t)return!0;return!1}(e,t))return void o.add(t);const a=e.createElement("style");a.setAttribute(_,t),a.appendChild(e.createTextNode(n)),e.head.appendChild(a),o.add(t)}function j(e,t){const n=x();n.styles.set(e,t);for(const r of n.documents.keys())k(r,e,t)}j("d390e935a7","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");j("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var S=(0,r.forwardRef)(function({className:e,...t},n){return(0,w.P9)(),(0,b.jsx)(y,{ref:n,className:(0,o.A)("_8c15fd0ed9f28ba4__div","d0541bc9dd9dc7b6__outset-ring--focus-visible",e),...t})})},17896(e,t,n){"use strict";n.d(t,{b:()=>y});var r=n(86087),o=n(51609),a=n(7664),i=n(26686),s=n(22238),c=n(61155),l=n(63994),u=n(15088),d=n(11178),p=n(32739),f=n(19049),h=n(10790);const g=o.forwardRef(function(e,t){const{className:n,defaultValue:r=0,onValueChange:g,orientation:m="horizontal",render:y,value:w,style:b,..._}=e,x=void 0!==e.defaultValue,k=o.useRef([]),[j,S]=o.useState(()=>new Map),[C,A]=(0,a.q)({controlled:w,default:r,name:"Tabs",state:"value"}),E=void 0!==w,[P,N]=o.useState(()=>new Map),O=o.useCallback(e=>{if(void 0===e)return null;for(const[t,n]of P.entries())if(null!=n&&e===(n.value??n.index))return t;return null},[P]),[T,I]=o.useState(()=>({previousValue:C,tabActivationDirection:"none"})),{previousValue:M,tabActivationDirection:R}=T;let L=R,z=!1;M!==C&&(L=v(M,C,m,P),z=null!=M&&null!=C&&null==O(C));const D=z?M:C,$=M!==D||R!==L;(0,i.g)(()=>{$&&I({previousValue:D,tabActivationDirection:L})},[D,$,L]);const F=(0,s.K)((e,t)=>{const n=v(C,e,m,P);t.activationDirection=n,g?.(e,t),t.isCanceled||A(e)}),H=(0,s.K)((e,t)=>{g?.(e,(0,p.d)(t,void 0,void 0,{activationDirection:"none"}))}),V=(0,s.K)((e,t)=>{S(n=>{if(n.get(e)===t)return n;const r=new Map(n);return r.set(e,t),r})}),B=(0,s.K)((e,t)=>{S(n=>{if(!n.has(e)||n.get(e)!==t)return n;const r=new Map(n);return r.delete(e),r})}),U=o.useCallback(e=>j.get(e),[j]),q=o.useCallback(e=>{for(const t of P.values())if(e===t?.value)return t?.id},[P]),W=o.useMemo(()=>({getTabElementBySelectedValue:O,getTabIdByPanelValue:q,getTabPanelIdByValue:U,onValueChange:F,orientation:m,registerMountedTabPanel:V,setTabMap:N,unregisterMountedTabPanel:B,tabActivationDirection:L,value:C}),[O,q,U,F,m,V,N,B,L,C]),G=o.useMemo(()=>{for(const e of P.values())if(null!=e&&e.value===C)return e},[P,C]),K=o.useMemo(()=>{for(const e of P.values())if(null!=e&&!e.disabled)return e.value},[P]),Z=o.useRef(!x),J=o.useRef(x),Q=o.useRef(!1);(0,i.g)(()=>{if(E)return;function e(e,t){A(e),I(t=>t.previousValue===e&&"none"===t.tabActivationDirection?t:{previousValue:e,tabActivationDirection:"none"}),H(e,t),Z.current=!1}if(0===P.size){if(!Q.current||null===C)return;return void e(null,f.c)}Q.current=!0;const t=G?.disabled,n=null==G&&null!==C;if(t||C!==r||(J.current=!1),J.current&&t&&C===r)return;const o=Z.current;if(t||n){const n=K??null;if(C===n)return void(Z.current=!1);let r=f.c;return o?r=f.Vh:t&&(r=f.r9),void e(n,r)}o&&null!=G&&(H(C,f.Vh),Z.current=!1)},[r,K,E,H,G,A,P,C]);const Y={orientation:m,tabActivationDirection:L},X=(0,c.o)("div",e,{state:Y,ref:t,props:_,stateAttributesMapping:d.h});return(0,h.jsx)(u.G.Provider,{value:W,children:(0,h.jsx)(l.u,{elementsRef:k,children:X})})});function v(e,t,n,r){if(null==e||null==t)return"none";let o=null,a=null;for(const[n,i]of r.entries()){if(null==i)continue;const r=i.value??i.index;if(e===r&&(o=n),t===r&&(a=n),null!=o&&null!=a)break}if(null==o||null==a)return o===a||"number"!=typeof e&&"string"!=typeof e||typeof e!=typeof t?"none":"horizontal"===n?t>e?"right":"left":t>e?"down":"up";const i=o.getBoundingClientRect(),s=a.getBoundingClientRect();if("horizontal"===n){if(s.lefti.left)return"right"}else{if(s.topi.top)return"down"}return"none"}var m=n(49994),y=(0,r.forwardRef)(function({...e},t){return(0,h.jsx)(m.hP,{children:(0,h.jsx)(g,{ref:t,...e})})})},41177(e,t,n){"use strict";n.d(t,{o:()=>A});var r=n(86087),o=n(70851),a=n(51609),i=n(40394),s=n(26686),c=n(65149),l=n(61155),u=n(11172),d=n(66961),p=n(99433),f=n(15088),h=n(18948),g=n(32739),v=n(19049),m=n(15044);const y=a.forwardRef(function(e,t){const{className:n,disabled:r=!1,render:o,value:y,id:w,nativeButton:b=!0,style:_,...x}=e,{value:k,getTabPanelIdByValue:j,orientation:S}=(0,f.z)(),{activateOnFocus:C,highlightedTabIndex:A,onTabActivation:E,registerTabResizeObserverElement:P,setHighlightedTabIndex:N,tabsListElement:O}=(0,h.b)(),T=(0,c.e)(w),I=a.useMemo(()=>({disabled:r,id:T,value:y}),[r,T,y]),{compositeProps:M,compositeRef:R,index:L}=(0,p.k)({metadata:I}),z=y===k,D=a.useRef(!1),$=a.useRef(null);a.useEffect(()=>{const e=$.current;if(e)return P(e)},[P]),(0,s.g)(()=>{if(D.current)return void(D.current=!1);if(!(z&&L>-1&&A!==L))return;const e=O;if(null!=e){const t=(0,m.RS)((0,i.R)(e));if(t&&(0,m.gR)(e,t))return}r||N(L)},[z,L,A,N,r,O]);const{getButtonProps:F,buttonRef:H}=(0,u.s)({disabled:r,native:b,focusableWhenDisabled:!0}),V=j(y),B=a.useRef(!1),U=a.useRef(!1),q={disabled:r,active:z,orientation:S};return(0,l.o)("button",e,{state:q,ref:[t,H,R,$],props:[M,{role:"tab","aria-controls":V,"aria-selected":z,id:T,onClick:function(e){z||r||E(y,(0,g.d)(v.dv,e.nativeEvent,void 0,{activationDirection:"none"}))},onFocus:function(e){z||(L>-1&&!r&&N(L),r||C&&(!B.current||B.current&&U.current)&&E(y,(0,g.d)(v.dv,e.nativeEvent,void 0,{activationDirection:"none"})))},onPointerDown:function(e){z||r||(B.current=!0,e.button&&0!==e.button)||(U.current=!0,(0,i.R)(e.currentTarget).addEventListener("pointerup",function(){B.current=!1,U.current=!1},{once:!0}))},[d.h]:z?"":void 0,onKeyDownCapture(){D.current=!0}},x,F]})});var w=n(5573),b=n(10790),_=(0,b.jsx)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,b.jsx)(w.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),x=(0,r.forwardRef)(function({icon:e,size:t=24,...n},r){return(0,b.jsx)(w.SVG,{ref:r,...e.props,...n,width:t,height:t})}),k=n(49994),j="data-wp-hash";function S(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=S();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)C(e,n,r)}(document)),e.__wpStyleRuntime}function C(e,t,n){if(!e.head)return;const r=S();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${j}]`))if(n.getAttribute(j)===t)return!0;return!1}(e,t))return void o.add(t);const a=e.createElement("style");a.setAttribute(j,t),a.appendChild(e.createTextNode(n)),e.head.appendChild(a),o.add(t)}!function(e,t){const n=S();n.styles.set(e,t);for(const r of n.documents.keys())C(r,e,t)}("bb8cbb8f31",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-factor:1;--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-factor:-1;--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible)\n\t\t\t&[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true]\n\t\t\t\t[role=tab]:is([aria-selected=true])\n\t\t\t\t&{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}');var A=(0,r.forwardRef)(function({className:e,children:t,...n},r){return(0,k.g5)(),(0,b.jsxs)(y,{ref:r,className:(0,o.A)("a5fd8814f195aa5e__tab",e),...n,children:[(0,b.jsx)("span",{className:"_5dfc77e6edd345d4__tab-children",children:t}),(0,b.jsx)(x,{icon:_,className:"_4a20e969d15e5ac1__tab-chevron"})]})})},55863(e,t,n){"use strict";n.d(t,{E:()=>p});var r=n(48495),o=n(43051),a=n(70851),i=n(86087),s="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)l(e,n,r)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const r=c();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${s}]`))if(n.getAttribute(s)===t)return!0;return!1}(e,t))return void o.add(t);const a=e.createElement("style");a.setAttribute(s,t),a.appendChild(e.createTextNode(n)),e.head.appendChild(a),o.add(t)}function u(e,t){const n=c();n.styles.set(e,t);for(const r of n.documents.keys())l(r,e,t)}u("0c5702ddca",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var d={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};u("d390e935a7","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var p=(0,i.forwardRef)(function({variant:e="body-md",render:t,className:n,...i},s){return(0,r.C)({render:t,defaultTagName:"span",ref:s,props:(0,o.v6)(i,{className:(0,a.A)(d.text,"e97669c6d9a38497__heading","_43cec3e1eec1066d__p",d[e],n)})})})},77511(e,t,n){"use strict";n.d(t,{G:()=>o});var r=n(86087);function o(e){const t=(0,r.useRef)(e);t.current=e;const n=(0,r.useRef)(null),o=(0,r.useRef)(!1),a=(0,r.useCallback)(()=>{o.current||(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{t.current(),n.current=null},0))},[]);return(0,r.useEffect)(()=>(o.current=!1,()=>{o.current=!0,n.current&&clearTimeout(n.current)}),[]),a}},70851(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;to});const o=/^(2(001|084|617)|(552|82|849)8|(66|94)06|1740|6930|7841)$/.test(n.j)?function(){for(var e,t,n=0,o="",a=arguments.length;nE,X$:()=>N});var r={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},i=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},s=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},c=function(e){return{r:i(e.r,0,255),g:i(e.g,0,255),b:i(e.b,0,255),a:i(e.a)}},l=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},p=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),i=a-Math.min(t,n,r),s=i?a===t?(n-r)/i:a===n?2+(r-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:o}},f=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),i=r*(1-n),s=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),l=a%6;return{r:255*[r,s,i,i,c,r][l],g:255*[c,r,r,s,i,i][l],b:255*[i,i,c,r,r,s][l],a:o}},h=function(e){return{h:s(e.h),s:i(e.s,0,100),l:i(e.l,0,100),a:i(e.a)}},g=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},v=function(e){return f((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},m=function(e){return{h:(t=p(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},y=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=b.exec(e)||_.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:c({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=y.exec(e)||w.exec(e);if(!t)return null;var n,o,a=h({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(r[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return v(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,a=e.a,i=void 0===a?1:a;return o(t)&&o(n)&&o(r)?c({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,a=e.a,i=void 0===a?1:a;if(!o(t)||!o(n)||!o(r))return null;var s=h({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return v(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,a=e.a,c=void 0===a?1:a;if(!o(t)||!o(n)||!o(r))return null;var l=function(e){return{h:s(e.h),s:i(e.s,0,100),v:i(e.v,0,100),a:i(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(c)});return f(l)},"hsv"]]},k=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=(e=l(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?d(a(255*o)):"","#"+d(t)+d(n)+d(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return l(this.rgba)},e.prototype.toRgbString=function(){return t=(e=l(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return g(m(this.rgba))},e.prototype.toHslString=function(){return t=(e=g(m(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=p(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return E({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),E(j(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),E(j(this.rgba,-e))},e.prototype.grayscale=function(){return E(j(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),E(C(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),E(C(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?E({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=m(this.rgba);return"number"==typeof e?E({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===E(e).toHex()},e}(),E=function(e){return e instanceof A?e:new A(e)},P=/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)?[]:null,N=function(e){e.forEach(function(e){P.indexOf(e)<0&&(e(A,x),P.push(e))})}},45166(e,t,n){"use strict";n.d(t,{A:()=>a});var r=!!/^(2(001|084|617)|(552|82|849)8|(66|94)06|6930|7841)$/.test(n.j)||null,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t,a=n?"".concat(o,": ").concat(n):o;throw new Error(a)}}}}]);