1import{r as j,j as r,R as G}from"./chunk-FGUA77HG-ssnRPRqR.js";import{t as J}from"./analytics-8Dm-0Txr.js";import{B as g,c as Q,P as ee}from"./helpers-C3g-EUpV.js";import{H as b}from"./index-BL2bo16C.js";import{M as v,S as te,I as ne,B as re}from"./index-BOgu5bCF.js";import{P as se}from"./index-D7qEskkG.js";import"./index-Cy1TKGxL.js";import{I as Y}from"./index-q1i6K5FW.js";import{u as ie}from"./embla-carousel-react.esm-q3Bvdgwx.js";import{I as le}from"./IconCheckCircle-BiCF5poE.js";import{I as oe}from"./IconDash-CRcxVVgc.js";import{C as ae,T as ce}from"./index-DWDNocq0.js";import{V as ue}from"./index-DGpQJW4B.js";import{V as de}from"./index-CJTtdRRb.js";import{i as me,a as he,b as fe,c as pe}from"./FaqList.css-wop6r6Eo.js";function C(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),s.push.apply(s,n)}return s}function P(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?C(Object(s),!0).forEach(function(n){xe(e,n,s[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):C(Object(s)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(s,n))})}return e}function xe(e,t,s){return(t=ye(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function ye(e){var t=ge(e,"string");return typeof t=="symbol"?t:t+""}function ge(e,t){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var n=s.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function T(e){return e._type==="span"&&"text"in e&&typeof e.text=="string"&&(typeof e.marks>"u"||Array.isArray(e.marks)&&e.marks.every(t=>typeof t=="string"))}function W(e){return typeof e._type=="string"&&e._type[0]!=="@"&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(t=>typeof t._key=="string"))&&"children"in e&&Array.isArray(e.children)&&e.children.every(t=>typeof t=="object"&&"_type"in t)}function $(e){return W(e)&&"listItem"in e&&typeof e.listItem=="string"&&(typeof e.level>"u"||typeof e.level=="number")}function F(e){return e._type==="@list"}function q(e){return e._type==="@span"}function U(e){return e._type==="@text"}const O=["strong","em","code","underline","strike-through"];function ke(e,t,s){if(!T(e)||!e.marks)return[];if(!e.marks.length)return[];const n=e.marks.slice(),l={};return n.forEach(i=>{l[i]=1;for(let o=t+1;o<s.length;o++){const c=s[o];if(c&&T(c)&&Array.isArray(c.marks)&&c.marks.indexOf(i)!==-1)l[i]++;else break}}),n.sort((i,o)=>je(l,i,o))}function je(e,t,s){const n=e[t],l=e[s];if(n!==l)return l-n;const i=O.indexOf(t),o=O.indexOf(s);return i!==o?i-o:t.localeCompare(s)}function be(e){var t,s;const{children:n}=e,l=(t=e.markDefs)!=null?t:[];if(!n||!n.length)return[];const i=n.map(ke),o={_type:"@span",children:[],markType:"<unknown>"};let c=[o];for(let p=0;p<n.length;p++){const a=n[p];if(!a)continue;const u=i[p]||[];let d=1;if(c.length>1)for(d;d<c.length;d++){const m=((s=c[d])==null?void 0:s.markKey)||"",f=u.indexOf(m);if(f===-1)break;u.splice(f,1)}c=c.slice(0,d);let h=c[c.length-1];if(h){for(const m of u){const f=l==null?void 0:l.find(k=>k._key===m),x=f?f._type:m,y={_type:"@span",_key:a._key,children:[],markDef:f,markType:x,markKey:m};h.children.push(y),c.push(y),h=y}if(T(a)){const m=a.text.split(` 2`);for(let f=m.length;f-- >1;)m.splice(f,0,` 3`);h.children=h.children.concat(m.map(f=>({_type:"@text",text:f})))}else h.children=h.children.concat(a)}}return o.children}function ve(e,t){const s=[];let n;for(let l=0;l<e.length;l++){const i=e[l];if(i){if(!$(i)){s.push(i),n=void 0;continue}if(!n){n=I(i,l,t),s.push(n);continue}if(we(i,n)){n.children.push(i);continue}if((i.level||1)>n.level){const o=I(i,l,t);if(t==="html"){const c=n.children[n.children.length-1],p=P(P({},c),{},{children:[...c.children,o]});n.children[n.children.length-1]=p}else n.children.push(o);n=o;continue}if((i.level||1)<n.level){const o=s[s.length-1],c=o&&L(o,i);if(c){n=c,n.children.push(i);continue}n=I(i,l,t),s.push(n);continue}if(i.listItem!==n.listItem){const o=s[s.length-1],c=o&&L(o,{level:i.level||1});if(c&&c.listItem===i.listItem){n=c,n.children.push(i);continue}else{n=I(i,l,t),s.push(n);continue}}console.warn("Unknown state encountered for block",i),s.push(i)}}return s}function we(e,t){return(e.level||1)===t.level&&e.listItem===t.listItem}function I(e,t,s){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:s,level:e.level||1,listItem:e.listItem,children:[e]}}function L(e,t){const s=t.level||1,n=t.listItem||"normal",l=typeof t.listItem=="string";if(F(e)&&(e.level||1)===s&&l&&(e.listItem||"normal")===n)return e;if(!("children"in e))return;const i=e.children[e.children.length-1];return i&&!T(i)?L(i,t):void 0}function V(e){let t="";
3return e.children.forEach(s=>{U(s)?t+=s.text:q(s)&&(t+=V(s))}),t}const _e="html";function Ie(e,t){const{block:s,list:n,listItem:l,marks:i,types:o,...c}=t;return{...e,block:w(e,t,"block"),list:w(e,t,"list"),listItem:w(e,t,"listItem"),marks:w(e,t,"marks"),types:w(e,t,"types"),...c}}function w(e,t,s){const n=t[s],l=e[s];return typeof n=="function"||n&&typeof l=="function"?n:n?{...l,...n}:l}const Te=e=>{let{children:t,value:s}=e;return r.jsx("a",{href:s==null?void 0:s.href,children:t})},Ne={textDecoration:"underline"},Se={em:e=>{let{children:t}=e;return r.jsx("em",{children:t})},strong:e=>{let{children:t}=e;return r.jsx("strong",{children:t})},code:e=>{let{children:t}=e;return r.jsx("code",{children:t})},underline:e=>{let{children:t}=e;return r.jsx("span",{style:Ne,children:t})},"strike-through":e=>{let{children:t}=e;return r.jsx("del",{children:t})},link:Te},Ee={number:e=>{let{children:t}=e;return r.jsx("ol",{children:t})},bullet:e=>{let{children:t}=e;return r.jsx("ul",{children:t})}},Le=e=>{let{children:t}=e;return r.jsx("li",{children:t})},_=(e,t)=>"[@portabletext/react] Unknown ".concat(e,", specify a component for it in the `components.").concat(t,"` prop"),K=e=>_('block type "'.concat(e,'"'),"types"),Ce=e=>_('mark type "'.concat(e,'"'),"marks"),Pe=e=>_('block style "'.concat(e,'"'),"block"),Oe=e=>_('list style "'.concat(e,'"'),"list"),Be=e=>_('list item style "'.concat(e,'"'),"listItem");function De(e){console.warn(e)}const B={display:"none"},Ae=e=>{let{value:t,isInline:s}=e;const n=K(t._type);return s?r.jsx("span",{style:B,children:n}):r.jsx("div",{style:B,children:n})},ze=e=>{let{markType:t,children:s}=e;return r.jsx("span",{className:"unknown__pt__mark__".concat(t),children:s})},Re=e=>{let{children:t}=e;return r.jsx("p",{children:t})},He=e=>{let{children:t}=e;return r.jsx("ul",{children:t})},Me=e=>{let{children:t}=e;return r.jsx("li",{children:t})},Ye=()=>r.jsx("br",{}),We={normal:e=>{let{children:t}=e;return r.jsx("p",{children:t})},blockquote:e=>{let{children:t}=e;return r.jsx("blockquote",{children:t})},h1:e=>{let{children:t}=e;return r.jsx("h1",{children:t})},h2:e=>{let{children:t}=e;return r.jsx("h2",{children:t})},h3:e=>{let{children:t}=e;return r.jsx("h3",{children:t})},h4:e=>{let{children:t}=e;return r.jsx("h4",{children:t})},h5:e=>{let{children:t}=e;return r.jsx("h5",{children:t})},h6:e=>{let{children:t}=e;return r.jsx("h6",{children:t})}},D={types:{},block:We,marks:Se,list:Ee,listItem:Le,hardBreak:Ye,unknownType:Ae,unknownMark:ze,unknownList:He,unknownListItem:Me,unknownBlockStyle:Re};function $e(e){let{value:t,components:s,listNestingMode:n,onMissingComponent:l=De}=e;const i=l||qe,o=Array.isArray(t)?t:[t],c=ve(o,n||_e),p=j.useMemo(()=>s?Ie(D,s):D,[s]),a=j.useMemo(()=>Fe(p,i),[p,i]),u=c.map((d,h)=>a({node:d,index:h,isInline:!1,renderNode:a}));return r.jsx(r.Fragment,{children:u})}const Fe=(e,t)=>{function s(a){const{node:u,index:d,isInline:h}=a,m=u._key||"node-".concat(d);return F(u)?l(u,d,m):$(u)?n(u,d,m):q(u)?i(u,d,m):W(u)?o(u,d,m,h):U(u)?c(u,m):p(u,d,m,h)}function n(a,u,d){const h=A({node:a,index:u,isInline:!1,renderNode:s}),m=e.listItem,x=(typeof m=="function"?m:m[a.listItem])||e.unknownListItem;if(x===e.unknownListItem){const k=a.listItem||"bullet";t(Be(k),{type:k,nodeType:"listItemStyle"})}let y=h.children;if(a.style&&a.style!=="normal"){const{listItem:k,...N}=a;y=s({node:N,index:u,isInline:!1})}return r.jsx(x,{value:a,index:u,isInline:!1,renderNode:s,children:y},d)}function l(a,u,d){const h=a.children.map((y,k)=>s({node:y._key?y:{...y,_key:"li-".concat(u,"-").concat(k)},index:k,isInline:!1})),m=e.list,x=(typeof m=="function"?m:m[a.listItem])||e.unknownList;if(x===e.unknownList){const y=a.listItem||"bullet";t(Oe(y),{nodeType:"listStyle",type:y})}return r.jsx(x,{value:a,index:u,isInline:!1,renderNode:s,children:h},d)}function i(a,u,d){const{markDef:h,markType:m,markKey:f}=a,x=e.marks[m]||e.unknownMark,y=a.children.map((k,N)=>s({node:k,index:N,isInline:!0}));return x===e.unknownMark&&t(Ce(m),{nodeType:"mark",type:m}),r.jsx(x,{text:V(a),value:h,markType:m,markKey:f,renderNode:s,children:y},d)}function o(a,u,d,h){const{_key:m,...f}=A({node:a,index:u,isInline:h,renderNode:s}),x=f.node.style||"normal",k=(typeof e.block=="function"?e.block:e.block[x])||e.unknownBlockStyle;return k===e.unknownBlockStyle&&t(Pe(x),{nodeType:"blockStyle",type:x}),r.jsx(k,{...f,value:f.node,renderNode:s},d)}function c(a,u){if(a.text===` 4`){const d=e.hardBreak;return d?r.jsx(d,{},u):` 5`}return a.text}function p(a,u,d,h){const m=e.types[a._type],f={value:a,isInline:h,index:u,renderNode:s};if(m)return r.jsx(m,{...f},d);t(K(a._type),{nodeType:"block",type:a._type});const x=e.unknownType;return r.jsx(x,{...f},d)}return s};function A(e){const{node:t,index:s,isInline:n,renderNode:l}=e,o=be(t).map((c,p)=>l({node:c,isInline:!0,index:p,renderNode:l}));return{_key:t._key||"block-".concat(s),children:o,index:s,isInline:n,node:t}}function qe(){}var Ue="_18sv3cs0";const Ve=({title:e,description:t,actions:s=[]})=>{var l;const n=async i=>{i.preventDefault();const o=i.currentTarget.href;try{await J("Website CTA Clicked",{ctaName:"blog-banner",page:window.location.pathname,href:o})}catch{}finally{window.location.href=o}};return r.jsxs(g,{as:"a",href:(l=s[0])==null?void 0:l.href,className:Ue,backgroundColor:"purple175",borderRadius:"sm",dis
5play:"block",paddingY:6,paddingX:{xs:5,lg:7},onClick:n,children:[r.jsx(b,{level:3,size:4,children:e}),t&&r.jsx(v,{content:t}),s[0]&&r.jsx(se,{...s[0],as:"div",size:"small",marginTop:5})]})};function X(e={}){let t,s=[];const n=["select","slideFocus"];function l(a){t=a;const{options:{axis:u},slideRects:d}=t.internalEngine();u!=="y"&&(s=d.map(h=>h.height),n.forEach(h=>t.on(h,c)),c())}function i(){n.forEach(u=>t.off(u,c));const a=t.containerNode();a.style.height="",a.getAttribute("style")||a.removeAttribute("style")}function o(){const{slideRegistry:a}=t.internalEngine(),u=a[t.selectedScrollSnap()];return u?u.map(d=>s[d]).reduce((d,h)=>Math.max(d,h),0):null}function c(){o()!==null&&(t.containerNode().style.height=`${o()}px`)}return{name:"autoHeight",options:e,init:l,destroy:i}}X.globalOptions=void 0;var Ke="_149545t0",Xe="_149545t1",Ze="_149545t2",Ge="_149545t3",Je="_149545t5 _149545t4",Qe="_149545t6 _149545t4",et="_149545t7";const tt={loop:!1},z=()=>r.jsxs("svg",{className:et,"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"15",cy:"15",r:"14.25",transform:"matrix(-1 0 0 1 30 0)",stroke:"currentcolor",strokeWidth:"1.5"}),r.jsx("path",{d:"M16.5 9.99951L11.5 14.9995L16.5 19.9995",stroke:"currentcolor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),nt=({images:e})=>{const[t,s]=j.useState(!1),[n,l]=j.useState(!1),[i,o]=ie(tt,[X()]),c=j.useCallback(()=>{o&&o.scrollPrev()},[o]),p=j.useCallback(()=>{o&&o.scrollNext()},[o]),a=j.useCallback(()=>{o&&(s(o.canScrollPrev()),l(o.canScrollNext()))},[o]);return j.useEffect(()=>{o&&(a(),o.on("select",a),o.on("reInit",a))},[o,a]),r.jsxs("div",{className:Ke,children:[r.jsx("div",{className:Xe,ref:i,children:r.jsx("div",{className:Ze,children:e.map((u,d)=>r.jsx("div",{className:Ge,children:r.jsx(Y,{image:u})},d))})}),(t||n)&&r.jsxs(g,{display:"flex",gap:4,padding:3,children:[r.jsx("button",{className:Je,onClick:c,"aria-label":"Previous slide",disabled:!t,children:r.jsx(z,{})}),r.jsx("button",{className:Qe,onClick:p,"aria-label":"Next slide",disabled:!n,children:r.jsx(z,{})})]})]})};var rt="_1dzgtau0",st="_1dzgtau1",it="_1dzgtau2",lt="_1dzgtau3 _1dzgtau2";const ot=e=>{switch(e.toLowerCase()){case"y":return r.jsx(g,{display:"flex",alignItems:"center",justifyContent:"center","aria-label":"Yes",children:r.jsx(le,{})});case"n":return r.jsx(g,{display:"flex",alignItems:"center",justifyContent:"center","aria-label":"No",children:r.jsx(oe,{})});default:return r.jsx(v,{content:e})}},at=({data:e,caption:t,textAlign:s,showHeaders:n=!1})=>{if(!e)return null;const l=[...e.rows],i=n?l.shift():void 0;return r.jsxs("figure",{className:rt,children:[r.jsxs("table",{className:st,style:{"--textAlign":s},children:[i&&r.jsx("thead",{children:r.jsx("tr",{children:i.cells.map((o,c)=>r.jsx("th",{className:lt,children:o},c))})}),r.jsx("tbody",{children:l.map((o,c)=>r.jsx("tr",{children:o.cells.map((p,a)=>r.jsx("td",{className:it,children:ot(p)},a))},c))})]}),t&&r.jsx("figcaption",{children:r.jsx(v,{content:t})})]})},ct=({title:e,description:t,questions:s,backgroundColor:n})=>{const[l,i]=j.useState(-1),o=c=>{i(c===l?-1:c)};return r.jsxs(te,{backgroundColor:n,paddingX:0,paddingY:7,children:[r.jsx(b,{level:3,size:3,marginBottom:5,children:e}),t&&r.jsx(v,{content:t,size:"medium"}),r.jsx(ae,{size:"lg",children:s.map(({question:c,answer:p},a)=>r.jsxs("div",{className:me,"data-state":a===l?"open":"closed",children:[r.jsx(b,{level:4,size:4,children:r.jsxs("button",{className:he,onClick:()=>o(a),"aria-expanded":a===l,children:[c,r.jsx(ne,{className:fe,size:36})]})}),r.jsx("div",{className:pe,children:r.jsx(v,{content:p,size:"medium"})})]},a))})]})};var ut="_66cjjd0",dt="_66cjjd1";const Z="qwilr-html-embed-resize",mt=/^\s*<iframe\s+([\s\S]*?)>\s*<\/iframe>\s*$/i,R=/([a-z][a-z0-9-]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|(\S+)))?/gi,ht=e=>{const t=e.match(mt);if(!t)return null;const s={};let n;for(R.lastIndex=0;(n=R.exec(t[1]))!==null;)s[n[1]]=n[2]??n[3]??n[4]??"";return s},H=`<style> 6 html, body { 7 margin: 0; 8 padding: 0; 9 overflow: hidden; 10 background: transparent; 11 } 12 iframe { 13 display: block; 14 margin: 0 auto; 15 max-width: 100%; 16 border: 0; 17 } 18</style>`,S=`<script>
19 var CHANNEL = "${Z}"; 20 function postHeight() { 21 var height = document.documentElement.scrollHeight; 22 parent.postMessage({ channel: CHANNEL, height: height }, "*"); 23 } 24 var ro = new ResizeObserver(postHeight); 25 ro.observe(document.body); 26 new MutationObserver(function () { 27 document.querySelectorAll("img, iframe").forEach(function (el) { 28 el.addEventListener("load", postHeight, { once: true }); 29 }); 30 postHeight(); 31 }).observe(document.body, { childList: true, subtree: true }); 32 postHeight(); 33 setTimeout(postHeight, 500); 34 setTimeout(postHeight, 2000); 35<\/script>`,ft=e=>/^\s*(?:<!doctype\s+html|<html[\s>])/i.test(e),pt=e=>{if(ft(e)){let t=e;const s=t.toLowerCase().lastIndexOf("</head>");s!==-1&&(t=t.slice(0,s)+H+` 36`+t.slice(s));const n=t.toLowerCase().lastIndexOf("</body>");return n!==-1?t=t.slice(0,n)+S+` 37`+t.slice(n):t+=` 38${S}`,t}return`<!DOCTYPE html> 39<html> 40<head> 41 <meta charset="utf-8"> 42 <meta name="viewport" content="width=device-width, initial-scale=1"> 43 ${H} 44</head> 45<body> 46 ${e} 47 ${S} 48</body> 49</html>`},xt=({attrs:e})=>r.jsx("iframe",{className:ut,src:e.src,height:e.height,width:e.width,allow:e.allow,title:e.title||"Embedded content",loading:"lazy",allowFullScreen:"allowfullscreen"in e}),yt=({html:e})=>{const t=j.useRef(null),[s,n]=j.useState(null);return j.useEffect(()=>{const l=i=>{var o,c;((o=i.data)==null?void 0:o.channel)===Z&&typeof i.data.height=="number"&&i.source===((c=t.current)==null?void 0:c.contentWindow)&&n(i.data.height)};return window.addEventListener("message",l),()=>window.removeEventListener("message",l)},[]),r.jsx("iframe",{ref:t,className:dt,srcDoc:pt(e),sandbox:"allow-scripts allow-popups allow-popups-to-escape-sandbox",title:"Embedded content",style:s!==null?{height:`${s}px`}:void 0})},gt=({html:e})=>{const t=ht(e);return t?r.jsx(xt,{attrs:t}):r.jsx(yt,{html:e})};var M=Q({defaultClassName:"_1enerkc0",variantClassNames:{size:{xsmall:"_1enerkc1",small:"_1enerkc2",medium:"_1enerkc3",large:"_1enerkc4"}},defaultVariants:{size:"small"},compoundVariants:[]}),E="_1enerkc5",kt="_1enerkc6";const Dt=G.memo(function e({content:t,size:s}){return r.jsx($e,{value:t,components:{block:{h1:({children:n,value:{_key:l}})=>r.jsxs(b,{level:1,size:2,marginBottom:5,children:[r.jsx("span",{className:E,id:l}),n]}),h2:({children:n,value:{_key:l}})=>r.jsxs(b,{level:2,size:3,marginTop:8,marginBottom:5,children:[r.jsx("span",{className:E,id:l}),n]}),h3:({children:n,value:{_key:l}})=>r.jsxs(b,{level:3,size:4,marginTop:8,marginBottom:5,children:[r.jsx("span",{className:E,id:l}),n]}),normal:({children:n})=>r.jsx(ee,{size:s,marginTop:5,children:n})},list:{bullet:({children:n})=>r.jsx("ul",{className:M({size:s}),children:n}),number:({children:n})=>r.jsx("ol",{className:M({size:s}),children:n})},marks:{link:({value:n,children:l})=>r.jsx(ce,{href:n.href,newTab:n.newTab,doFollow:n.doFollow,children:l})},types:{blockquote:({value:n})=>r.jsx(g,{marginY:6,children:r.jsx(re,{...n})}),dataTable:({value:n})=>r.jsx(g,{marginY:7,children:r.jsx(at,{...n})}),image:({value:n})=>r.jsxs(g,{as:"figure",marginY:7,children:[r.jsx(Y,{image:n,displayWidth:800,sizes:"(max-width: 1024px) 100vw, 800px",loading:"lazy"}),n.caption&&r.jsx(g,{as:"figcaption",children:r.jsx(v,{content:n.caption,size:"small"})})]}),imageCarousel:({value:n})=>r.jsx(g,{marginY:7,children:r.jsx(nt,{...n})}),banner:({value:n})=>r.jsx(g,{marginY:7,children:r.jsx(Ve,{...n})}),video:({value:n})=>r.jsx(g,{marginY:7,children:r.jsx(ue,{...n,displayWidth:800})}),videoEmbed:({value:n})=>r.jsx(g,{marginY:7,children:r.jsx(de,{...n})}),faqList:({value:n})=>r.jsx(ct,{...n}),htmlEmbed:({value:n})=>r.jsx(g,{marginY:7,children:r.jsx(gt,{html:n.html})}),articleHighlightBox:({value:n})=>r.jsx(g,{className:kt,backgroundColor:"grey300",borderRadius:"sm",padding:6,marginY:8,children:r.jsx(e,{content:n.content,size:"medium"})})}}})});export{$e as P,Dt as R};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.