1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4923],{258:(e,t,r)=>{"use strict";r.d(t,{O:()=>o});var n=r(12115),i=r(60917);let a=e=>{let t=JSON.stringify(e.metadata),r={type:"text/sitecore",chrometype:"field",className:"scpm"},a=Object.assign(Object.assign({},r),{kind:i.mV.Open}),o=Object.assign(Object.assign({},r),{kind:i.mV.Close});return n.createElement(n.Fragment,null,n.createElement("code",Object.assign({},a),t),e.children,n.createElement("code",Object.assign({},o)))};function o(e,t=!1){return t?t=>{var r;let{editable:i=!0}=t,o=null==(r=t.field)?void 0:r.metadata;return o&&i?n.createElement(a,{metadata:o},n.createElement(e,Object.assign({},t))):n.createElement(e,Object.assign({},t))}:t=>{var r;let{editable:i=!0}=t,o=null==(r=t.field)?void 0:r.metadata;return o&&i?n.createElement(a,{metadata:o},n.createElement(e,Object.assign({},t))):n.createElement(e,Object.assign({},t))}}a.displayName="FieldMetadata"},347:(e,t,r)=>{"use strict";r.d(t,{NextImage:()=>f});var n=r(85420),i=r(12115),a=r(258),o=r(61578),s=r(7532),l=r(99759),c=r(97651),u=r.n(c),d=r(92242),p=r(41463),h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let f=(0,a.O)((0,o.N)(e=>{var{editable:t=!0,imageParams:r,field:a,mediaUrlPrefix:o,fill:l,priority:c}=e,f=h(e,["editable","imageParams","field","mediaUrlPrefix","fill","priority"]);let m=i.useContext(s.SitecoreProviderReactContext);if(f.src)throw Error("Detected src prop. If you wish to use src, use next/image directly.");if((0,d.JE)(a))return null;let g=a.src?a:a.value;if(!g)return null;let y=f.unoptimized||!m.page.mode.isNormal,b=Object.assign(Object.assign(Object.assign({},g),f),{fill:l,priority:c,src:n.k6(g.src,r,o),unoptimized:y}),v=Object.assign(Object.assign({},b),{src:n.Eu(b.src,o)});return(v.fill&&(delete v.width,delete v.height),b)?i.createElement(u(),Object.assign({alt:""},v,p.env.TEST?{"data-unoptimized":y}:{})):null},{defaultEmptyFieldEditingComponent:l.n}));f.displayName="NextImage"},2665:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u,DS:()=>c,wV:()=>l});var n,i=r(88010),a=r.n(i),o=r(35762),s=r(41463);let l=a(),c="content-sdk";(0,o.A)()&&(null==(n=null==s?void 0:s.env)?void 0:n.DEBUG_MULTILINE)==="true"&&a().formatters.o&&a().formatters.O&&(a().formatters.o=a().formatters.O);let u={common:a()(`${c}:common`),http:a()(`${c}:http`),init:a()(`${c}:init`)}},4132:(e,t,r)=>{"use strict";r.d(t,{Cx:()=>l,Z1:()=>u,fF:()=>i,qH:()=>s,sx:()=>c});var n=r(35762);let i="00000000-0000-0000-0000-000000000000",a="jss-hrz-editing",o="Sitecore.Horizon.ResetChromes";class s{static isActive(){return!(0,n.A)()&&(window.location.search.indexOf("sc_headless_mode=edit")>-1||!!window.document.getElementById(a))}static resetChromes(){!(0,n.A)()&&window[o]&&window[o]()}}let l=()=>s.isActive(),c=()=>{s.isActive()&&s.resetChromes()},u=()=>{let e={};return e[a]={},e}},5889:(e,t,r)=>{e.exports=r(7252)},6622:(e,t,r)=>{"use strict";r.d(t,{Text:()=>c});var n=r(12115),i=r(92242),a=r(258),o=r(61578),s=r(99759),l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let c=(0,a.O)((0,o.N)(e=>{var{field:t,tag:r,editable:a=!0,encode:o=!0}=e,s=l(e,["field","tag","editable","encode"]);if((0,i.JE)(t))return null;let c=void 0===t.value?"":t.value,u=String(c).split("\n");if(u.length){let e=[];u.forEach((t,r)=>{let i=r===u.length-1;e.push(t),i||e.push(n.createElement("br",{key:r}))}),c=e}let d=null,p=Object.assign({},s);o?d=c:p.dangerouslySetInnerHTML={__html:c};let h=r||"span";return t.metadata?n.createElement(h,Object.assign({},p,{suppressHydrationWarning:!0}),d):r||!o?n.createElement(h,Object.assign({},p),d):n.createElement(n.Fragment,null,d)},{defaultEmptyFieldEditingComponent:s.G}));c.displayName="Text"},7252:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useRouter",{enumerable:!0,get:function(){return a}});let n=r(12115),i=r(60751);function a(){return(0,n.useContext)(i.RouterContext)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7532:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ComponentMapReactContext:()=>s,ImportMapReactContext:()=>l,SitecoreProvider:()=>c,SitecoreProviderReactContext:()=>o,useSitecore:()=>u});var n=r(12115),i=r(84148),a=r.n(i);let o=n.createContext({}),s=n.createContext(new Map),l=n.createContext(void 0),c=e=>{let{api:t,page:r,componentMap:i,loadImportMap:s,children:l}=e,[c,u]=(0,n.useState)(r),d=(0,n.useCallback)(e=>{u(e)},[]);(0,n.useEffect)(()=>{a()(r,c)||d(r)},[r,c,d]);let p=(0,n.useMemo)(()=>({page:c,setPage:d,api:t,componentMap:i,loadImportMap:s}),[c,d,t,i,s]);return n.createElement(o.Provider,{value:p},l)};function u(e){let t=(0,n.useContext)(o),r=null==e?void 0:e.updatable;return Object.assign(Object.assign({},t),{setPage:r?t.setPage:void 0})}c.displayName="SitecoreProvider"},9339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(77304),o=r(4060),s=r(77197)},10857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return v},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return f},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return u},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return function(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return r||(r=!0,t=e(...i)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&o.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let f="u">typeof performance,m=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class y extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},11813:(e,t,r)=>{"use strict";r.d(t,{Placeholder:()=>o});
1var n=r(12115),i=r(36928),a=r(88490);let o=e=>{let t=(0,n.useContext)(a.ComponentPropsReactContext);return n.createElement(i.Placeholder,Object.assign({},e,{modifyComponentProps:e=>{if(!e.rendering.uid)return e;let r=t[e.rendering.uid];return Object.assign(Object.assign({},e),r)}}))}},12590:(e,t)=>{"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=n?40*n:t,l=i?40*i:r,c=s&&l?`viewBox='0 0 ${s} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${c?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${a}'/%3E%3C/svg%3E`}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},15503:(e,t,r)=>{"use strict";r.d(t,{$O:()=>m,$r:()=>u,$u:()=>g,Tn:()=>p,gn:()=>i,mv:()=>f,sI:()=>l});var n,i,a=r(42787),o=r(82169);let{UU:s}=a;(n=i||(i={})).READY="ready",n.RENDERED="rendered";let l=(e,t)=>{if(!window)return;let r=r=>d(r,e,t);return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},c=e=>["*"].some(t=>t===e.origin||RegExp("^"+t.replace(".","\\.").replace(/\*/g,".*")+"$").test(e.origin)),u=(e,t)=>!!e.origin&&!!e.data&&e.data.name===t||(c(e)||console.debug("Component Library: event skipped - invalid origin: message %s from origin %s",e.data.name,e.origin),!1),d=(e,t,r)=>{var n;let i=e.data;if(!e.origin||!i||"component:update"!==i.name){c(e)||console.debug("Component Library: event skipped: message %s from origin %s",i.name,e.origin);return}if(!(null==(n=i.details)?void 0:n.uid))return void console.debug("Received component:update event without uid, aborting event handler...");let a=p(t,i.details.uid);return a?(console.debug("Found component with uid %s to update. Update fields: %o. Update params: %o.",i.details.uid,i.details.fields,i.details.params),h(a,i.details.fields,i.details.params),r&&r(t)):console.debug("Rendering with uid %s not found",i.details.uid),t},p=(e,t)=>{var r;if((null==(r=e.uid)?void 0:r.toLowerCase())===t.toLowerCase())return e;if(e.placeholders)for(let r of Object.keys(e.placeholders))for(let n of e.placeholders[r]){let e=p(n,t);if(e)return e}return null},h=(e,t,r)=>{t&&(e.fields=Object.assign(Object.assign({},e.fields),t)),r&&(e.params=Object.assign(Object.assign({},e.params),r))};function f(e,t,r=!1){return{name:"component:status",message:{status:e,uid:t,isRenderingServerComponent:r}}}function m(e=a.Ty){return`${(0,o.l)(e)}/v1/files/designlibrary/lib/rh-lib-script.js`}let g=e=>{if("u"<typeof window)return;let t=window.parent&&window.parent!==window?window.parent:window;try{console.log("Component Library: sending event",e.name,e),t.postMessage(e,"*")}catch(t){console.error(`Component Library: postMessage failed. ${s.CONTACT_SUPPORT}`,t,e)}}},17150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(73623)._(r(12115)),i=r(55762),a=n.default.createContext(i.imageConfigDefault)},18857:(e,t)=>{"use strict";function r(e,t){var r;let n=e||75;return(null==t||null==(r=t.qualities)?void 0:r.length)?t.qualities.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e,t.qualities[0]):n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findClosestQuality",{enumerable:!0,get:function(){return r}})},20091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(66388)._(r(31393)),o=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),i=i.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${i}${u}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},21098:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n="AnalyticsPlugin"},21172:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(12115);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21929:(e,t,r)=>{"use strict";r.d(t,{EditingScripts:()=>s});var n=r(12115),i=r(7532),a=r(15503),o=r(4132);let s=()=>{var e;let{page:{mode:t,layout:r},api:s}=(0,i.useSitecore)(),{clientData:l,clientScripts:c}=r.sitecore.context;if(t.isNormal||t.isPreview)return n.createElement(n.Fragment,null);if(t.isDesignLibrary){let t=new Date,r=String(t.getUTCHours()).padStart(2,"0"),i=String(t.getUTCDate()).padStart(2,"0"),o=String(t.getUTCMonth()+1).padStart(2,"0"),l=String(t.getUTCFullYear()),c=`${r}-${i}-${o}-${l}`,u=`${(0,a.$O)(null==(e=null==s?void 0:s.edge)?void 0:e.edgeUrl)}?cb=${c}`;return n.createElement(n.Fragment,null,n.createElement("script",{src:u,suppressHydrationWarning:!0}))}let u=Object.assign(Object.assign({},l),(0,o.Z1)());return n.createElement(n.Fragment,null,null==c?void 0:c.map((e,t)=>n.createElement("script",{src:e,key:t})),Object.keys(u).map(e=>n.createElement("script",{key:e,id:e,type:"application/json",dangerouslySetInnerHTML:{__html:JSON.stringify(u[e])}})))}},23171:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>h.Z,mG:()=>n.mG,Xv:()=>n.Xv,aG:()=>n.aG,MR:()=>d,d$:()=>s,UO:()=>p.U,Xm:()=>i,S5:()=>f.S5,BH:()=>a,$p:()=>o});var n=r(65971);function i(e=n.xu,t){return{domain:t,maxAge:e*n.UV,path:"/",sameSite:"None",secure:!0}}function a(){return"u"<typeof window||window.document.documentElement.lang.length<=1?void 0:new Intl.Locale(window.document.documentElement.lang).language.toLocaleUpperCase()}function o(){return"u"<typeof window?"":"/"===window.location.pathname?"Home Page":window.location.pathname.split("/").pop()}function s(){return globalThis.crypto.randomUUID().replace(/-/g,"")}var l=r(42787),c=r(30941);let{UU:u}=l;async function d(e,t,r){let i={headers:{"X-Library-Version":n.Zh,"x-sitecore-contextid":t}},a=`${e}/v1/events/${n.mG}/browser/create.json?client_key=`,o=new c.j({timeout:r}),s=await o.fetch(a,i).then(e=>e.data||null).catch(e=>{if(e.message===u.IV_002||e.message===u.IE_003)throw Error(e.message);return null});if(!(null==s?void 0:s.ref))throw Error(u.IE_005);let{ref:l,customer_ref:d}=s;return{clientId:l,profileId:d}}var p=r(44764),h=r(21098),f=r(93701)},24231:(e,t,r)=>{"use strict";r.d(t,{$A:()=>n.$A,RL:()=>n.RL,_X:()=>n._X,hO:()=>n.hO,rC:()=>n.rC,vv:()=>n.vv});var n=r(28739)},27861:(e,t,r)=>{"use strict";r.d(t,{RichText:()=>c});var n=r(12115),i=r(5889),a=r(73321),o=r(64276),s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let l={},c=e=>{let{internalLinksSelector:t='a[href^="/"]',prefetchLinks:r=!0,editable:c=!0}=e,u=s(e,["internalLinksSelector","prefetchLinks","editable"]),d=e.field&&e.field.value,p=c&&e.field&&e.field.metadata,{pageRouter:h,appRouter:f}={pageRouter:(0,i.useRouter)(),appRouter:(()=>{try{return(0,a.useRouter)()}catch(e){return null}})()},m=(0,n.useRef)(null);(0,n.useEffect)(()=>{d&&!p&&y()},[d]);let g=e=>{if(!e.currentTarget)return;e.preventDefault();let t=e.currentTarget.href;h?h.push(t,t,{locale:!1}):f&&f.push(t)},y=()=>{let e=m.current,n=e&&e.querySelectorAll(t);n&&n.length&&n.forEach(e=>{if("_blank"===e.target)return;let t=()=>{h?h.prefetch(e.pathname,void 0,{locale:!1}):f&&f.prefetch(e.pathname),l[e.pathname]=!0};if(!l[e.pathname]&&!1!==r&&(!0===r&&t(),"hover"===r)){let r=()=>{t(),e.removeEventListener("mouseover",r)};e.addEventListener("mouseover",r,!1)}e.addEventListener("click",g,!1)})};return n.createElement(o.RichText,Object.assign({ref:m,editable:c},u))};c.displayName="NextRichText"},28739:(e,t,r)=>{"use strict";r.d(t,{$A:()=>p,RL:()=>m,_X:()=>d,hO:()=>g,rC:()=>u,vv:()=>f,yq:()=>i});var n,i,a=r(42787),o=r(15503);let{Ty:s,UU:l}=a,c="component:generation:component-preview";(n=i||(i={})).Render="render",n.RenderInit="render-init",n.ImportMapMissing="import-map-missing",n.ImportMapLoad="import-map-load-error",n.GeneratedComponentFetch="generated-component-fetch-error";let u=(e,t)=>
1{if(!window)return;let r=r=>{let n=r.data;try{if(!(0,o.$r)(r,c))return;console.debug("Component Library: message received",n);let i=h(e,n.message);p(n.message.styles.content),t(null,i)}catch(e){g(n.message.uid,e,i.RenderInit),t(e,null)}};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},d=(e,t)=>{let r=r=>{var n,i;(0,o.$r)(r,c)&&(console.debug("Component Library: message received",r.data),t((0,o.Tn)(e,null==(i=null==(n=r.data)?void 0:n.message)?void 0:i.uid),r.data))};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}};function p(e){let t="content-sdk-style-preview",r=document.getElementById(t);r&&r.remove();let n=document.createElement("style");n.setAttribute("id",t),n.innerHTML=e,document.head.appendChild(n)}let h=(e,t)=>{var r;let n,i,a=(r=t.imports,n=[],i={modules:[],exports:[]},r.forEach(t=>{let r=e.find(e=>e.module===t.module);if(!r)return void i.modules.push({module:t.module,alias:t.alias});let a=r.exports.find(e=>e.name===t.export);return a?n.push({name:t.alias,value:a.value}):void i.exports.push({alias:t.alias,export:t.export,module:t.module})}),{successful:n,missing:i});if(a.missing.modules.length>0||a.missing.exports.length>0){let e="";throw a.missing.modules.forEach(t=>{e+=`Missing module: '${t.module}' with alias: '${t.alias}' 2`}),a.missing.exports.forEach(t=>{let r=t.export!==t.alias?` with alias: '${t.alias}'`:"";e+=`Missing export: '${t.export}' from module: '${t.module}'${r} 3`}),e}let o=a.successful.map(e=>e.name),s=a.successful.map(e=>e.value),l={Component:null};return Function("exports",t.styles.styleImport.name,...o,t.code.content)(l,t.styles.styleImport.content,...s),l.Component};function f(e,t={},r={}){return{name:"component:generation:component-props",message:{uid:e,fields:t,parameters:r}}}function m(e,t){var r;return{name:"component:generation:import-map",message:{uid:e,importMap:Array.isArray(r=t)&&r.length>0&&"string"==typeof r[0].module&&Array.isArray(r[0].exports)&&"string"==typeof r[0].exports[0]?t:t.map(e=>({module:e.module,exports:e.exports.map(e=>e.name)}))}}}let g=(e,t,r)=>{let n=function(e,t,r){switch(r){case i.Render:case i.RenderInit:return{name:"component:generation:component-preview-error",message:{uid:e,error:t,type:r}};default:return{name:"component:generation:error",message:{uid:e,error:t,type:r}}}}(e,t,r);console.error(`Component Library: sending error event. ${l.CONTACT_SUPPORT}`,n),"u">typeof window&&(window.parent&&window.parent!==window?window.parent:window).postMessage(n,"*")}},30874:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BYOCComponent:()=>u,BYOCWrapper:()=>d,__mockDependencies:()=>l});var n=r(12115),i=r(67886),a=r(89433),o=r(90366);let{bx:s}=i,l=e=>{e.ExternalComponent&&(s=e.ExternalComponent)},c=e=>{var t;return n.createElement("div",null,"A rendering error occurred: ",null==(t=e.error)?void 0:t.message,".")};class u extends n.Component{static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){this.setState({error:e})}render(){var e,t,r;let i=this.props;if(this.state.error)return this.props.errorComponent?n.createElement(this.props.errorComponent,{error:this.state.error}):n.createElement(c,{error:this.state.error});let{ComponentName:l}=i.params||{};if(!l){let e={errorOverride:"BYOC: The ComponentName for this rendering is missing"},t=this.props.missingComponentComponent;return t?n.createElement(t,Object.assign({},e)):n.createElement(o.K,Object.assign({},e))}let u={rendering:{componentName:l},errorOverride:"BYOC: This component was not registered."},d=this.props.missingComponentComponent?n.createElement(this.props.missingComponentComponent,Object.assign({},u)):n.createElement(o.K,Object.assign({},u)),p=this.props.errorComponent,h={};if(null==(e=i.params)?void 0:e.ComponentProps)try{h=null!=(t=JSON.parse(i.params.ComponentProps))?t:{}}catch(e){return console.error(`Parsing props for ${l} component from rendering params failed. Error: ${e}`),p?n.createElement(p,{error:e}):n.createElement(c,{error:e})}let f=Object.assign(Object.assign({},i.fetchedData),{_:(0,a.q)(null!=(r=i.fields)?r:{})});return n.createElement(s,Object.assign({},i.rendering,{componentName:l,clientFallback:d,datasources:f},h))}constructor(e){super(e),this.state={}}}let d=e=>{var t,r,i;let a=null==(r=null==(t=e.params)?void 0:t.styles)?void 0:r.trimEnd(),o=null==(i=e.params)?void 0:i.RenderingIdentifier;return n.createElement("div",{className:a||void 0,id:o||void 0},n.createElement("div",{className:"component-content"},n.createElement(u,Object.assign({},e))))}},30941:(e,t,r)=>{"use strict";r.d(t,{j:()=>s});var n=r(2665),i=r(42787);class a{constructor(e){this.timeout=e,this.timeoutId=void 0}get start(){return new Promise((e,t)=>
3{if(!Number.isInteger(this.timeout)||this.timeout<0)throw Error(i.UU.IV_002);this.timeoutId=setTimeout(()=>{let e=Error(i.UU.IE_003);e.name="AbortError",t(e)},this.timeout)})}clear(){this.timeoutId&&clearTimeout(this.timeoutId)}}var o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};class s{constructor(e={}){this.config=e}async fetch(e,t={}){var r;let i=this.config,{debugger:s,fetch:l}=i,c=o(i,["debugger","fetch"]),u=Date.now(),d=l||fetch,p=s||n.Ay.http,h=this.getRequestInit(Object.assign(Object.assign({},c),t)),f=[d(e,h)];c.timeout&&(this.abortTimeout=new a(c.timeout),f.push(this.abortTimeout.start)),p("Request initiated: %o",Object.assign({url:e,headers:this.extractDebugHeaders(h.headers)},h));try{let e=await Promise.race(f).then(e=>{var t;return null==(t=this.abortTimeout)||t.clear(),e}),t=await this.parseResponse(e,p);if(!e.ok){let r=this.createError(e,t);throw p("Response error: %o",r.response),r}return p("Response in %dms: %o",Date.now()-u,{status:e.status,statusText:e.statusText,headers:this.extractDebugHeaders(e.headers),url:e.url,data:t}),{data:t,headers:e.headers,status:e.status,statusText:e.statusText}}catch(e){throw null==(r=this.abortTimeout)||r.clear(),p("Request failed: %o",e),e}}async get(e,t={}){return this.fetch(e,Object.assign({method:"GET"},t))}async post(e,t,r={}){return this.fetch(e,Object.assign({method:"POST",body:JSON.stringify(t)},r))}async delete(e,t={}){return this.fetch(e,Object.assign({method:"DELETE"},t))}async put(e,t,r={}){return this.fetch(e,Object.assign({method:"PUT",body:JSON.stringify(t)},r))}head(e,t={}){return this.fetch(e,Object.assign({method:"HEAD"},t))}getRequestInit(e={}){let t=new Headers(e.headers);return e.method||(e.method=e.body?"POST":"GET"),t.set("Content-Type","application/json"),e.headers=t,e}extractDebugHeaders(e={}){let t={};return"string"!=typeof(null==e?void 0:e.forEach)&&e.forEach&&(null==e||e.forEach((e,r)=>{t[r]=e})),t}async parseResponse(e,t){let r=e.headers.get("Content-Type")||"";try{if(r.includes("application/json"))return await e.json();return await e.text()}catch(e){t("Response parsing error: %o",e);return}}createError(e,t){let r=Error(`HTTP ${e.status}${e.statusText?` ${e.statusText}`:""}`);return{name:r.name,message:r.message,stack:r.stack,response:{status:e.status,statusText:e.statusText,headers:this.extractDebugHeaders(e.headers),data:t}}}}},31344:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(23171);function i(){return(0,n.UO)().adapter.getClientId()||""}},31393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={assign:function(){return s},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return o}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}},32454:(e,t,r)=>{"use strict";r.d(t,{f:()=>c});var n=r(60865),i=r(12115),a=r(60563),o=(r(49334),r(82633));let s=e=>{let t=e.rendering,r=e.page.mode.isEditing,i=(0,n.nV)(t,e.name,r),a=!i.length,o=l(e,i);if(a){let t=o;return e.renderEmpty&&(t=e.renderEmpty(o)),r?(0,n.hl)(t):t}return e.render?e.render(o,i,e):o},l=(e,t)=>{let{name:r,rendering:s,passThroughComponentProps:l,missingComponentComponent:c,hiddenRenderingComponent:u,errorComponent:d,componentLoadingMessage:p,renderEach:h,modifyComponentProps:f,componentMap:m,page:g}=e,y=g.mode.isEditing,b=t.map((t,s)=>{let{component:b,isEmpty:v,componentType:E,dynamic:w}=(0,n.tt)(t,r,m,u,c),C=t.uid||`component-${s}`,O=f?f((0,n.U3)(e,t)):(0,n.U3)(e,t),x=i.createElement(b,Object.assign({key:C},O,l,{page:g,componentMap:m}));if(h&&(x=h(x,s)),!v){let t=x.type+"-"+s;x=i.createElement(a.default,{"data-testid":"error-boundary",key:t,errorComponent:d,componentLoadingMessage:p,isDynamic:w,disableSuspense:e.disableSuspense,rendering:x.props.rendering},x)}return y?i.createElement(o.f,{key:C,rendering:t,componentRuntime:"client"},x):x}).filter(e=>e);return y?[i.createElement(o.f,{key:s.uid,placeholderName:r,rendering:s},b)]:b},c=e=>i.createElement(a.default,{errorComponent:e.errorComponent},i.createElement(s,Object.assign({},e)))},35762:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(){return!("u">typeof window&&window.document)}},36095:(e,t,r)=>{"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(18857),i=r(53887);function a(e){var t;let{config:r,src:a,width:o,quality:s}=e,l=(0,i.getDeploymentId)();if(a.startsWith("/")&&!a.startsWith("//"))if(a.includes("/_next/static/immutable")&&!(0,i.getAssetToken)())l=void 0;else{let e=a.indexOf("?");if(-1!==e){let t=new URLSearchParams(a.slice(e+1)),r=t.get("dpl");if(r){l=r,t.delete("dpl");let n=t.toString();a=a.slice(0,e)+(n?"?"+n:"")}}}if(a.startsWith("/")&&a.includes("?")&&(null==(t=r.localPatterns)?void 0:t.length)===1&&"**"===r.localPatterns[0].pathname&&""===r.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${a}" is using a query string which is not configured in images.localPatterns. 4Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let c=(0,n.findClosestQuality)(s,r);return`${r.path}?url=${encodeURIComponent(a)}&w=${o}&q=${c}${a.startsWith("/")&&l?`&dpl=${l}`:""}`}a.__next_img_default=!0;let o=a},36928:(e,t,r)=>{"use strict";r.d(t,{Placeholder:()=>l});var n=r(12115),i=r(4132),a=r(60865),o=r(7532),s=r(32454);let l=e=>{let{page:t,componentMap:r}=(0,o.useSitecore)(),l=!(0,a.nV)(e.rendering,e.name,t.mode.isEditing).length;(0,n.useEffect)(()=>{l&&i.qH.isActive()&&i.qH.resetChromes()},[]);let c=Object.assign(Object.assign({},e),{page:t,componentMap:r});return n.createElement(s.f,Object.assign({},c))}},37845:(e,t,r)=>{"use strict";r.d(t,{withDatasourceCheck:()=>o});var n=r(12115),i=r(7532);let a=()=>n.createElement("div",{className:"sc-jss-editing-error",role:"alert"},"Datasource is required. Please choose a content item for this component.");function o(e){return function(t){return r=>{var o,s;let{page:l}=(0,i.useSitecore)(),c=null!=(o=null==e?void 0:e.editingErrorComponent)?o:a;return l.mode.isDesignLibrary||(null==(s=r.rendering)?void 0:s.dataSource)?n.createElement(t,Object.assign({},r)):l.mode.isEditing?n.createElement(c,null):null}}}},38437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let n=r(73623),i=r(66388),a=r(95155),o=i._(r(12115)),s=n._(r(47650)),l=n._(r(46686)),c=r(95413),u=r(55762),d=r(17150),p=r(60751),h=n._(r(36095)),f=r(21172),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,a,o){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function y(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let b=o.useLayoutEffect,v=(0,o.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:l,decoding:c,className:u,style:d,fetchPriority:p,placeholder:h,loading:m,unoptimized:v,fill:E,onLoadRef:w,onLoadingCompleteRef:C,setBlurComplete:O,setShowAltText:x,sizesInput:j,onLoad:S,onError:A,...k}=e,P=(0,o.useRef)(!1),R=(0,o.useRef)(null);b(()=>{let{current:e}=P,{current:t}=R;e||null===t||(A&&(t.src=t.src),t.complete&&g(t,h,w,C,O,v,j),P.current=!0)},[r,h,w,C,A,v,j]);let D=(0,f.useMergedRef)(t,R);return(0,a.jsx)("img",{...k,...y(p),loading:m,width:l,height:s,decoding:c,"data-nimg":E?"fill":"1",className:u,style:d,sizes:i,srcSet:n,src:r,ref:D,onLoad:e=>{g(e.currentTarget,h,w,C,O,v,j)},onError:e=>{x(!0),"empty"!==h&&O(!0),A&&A(e)}})});function E(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let w=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(p.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{var e;let t=m||n||u.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>
4e-t),i=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:a,localPatterns:t.localPatterns}},[n]),{onLoad:s,onLoadingComplete:l}=e,f=(0,o.useRef)(s);(0,o.useEffect)(()=>{f.current=s},[s]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[y,b]=(0,o.useState)(!1),[w,C]=(0,o.useState)(!1),{props:O,meta:x}=(0,c.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:y,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{...O,unoptimized:x.unoptimized,placeholder:x.placeholder,fill:x.fill,onLoadRef:f,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:C,sizesInput:e.sizes,ref:t}),x.preload?(0,a.jsx)(E,{isAppRouter:!r,imgAttributes:O}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38945:(e,t,r)=>{"use strict";r.d(t,{f0:()=>y,jY:()=>F,Zd:()=>N,D_:()=>w,$q:()=>x});var n=r(23171),i=r(80172),a=r(30941),o=r(2665);let s={events:(0,o.wV)(`${o.DS}:events`)};async function l(e,t){let r=`${t.edgeUrl}/v1/events/${n.mG}/events?siteId=${t.siteName}`,o={body:JSON.stringify(e),headers:{"Content-Type":"application/json","X-Client-Software-ID":i.n_,"X-Library-Version":i.i8,"x-sitecore-contextid":t.contextId},method:"POST"},l=new a.j({debugger:s.events});return await l.fetch(r,o).then(async e=>e.data).catch(()=>null)}function c(e){var t;let{currentKey:r,object:n}=e,i=null!=(t=e.newObject)?t:{};for(let e in n){let t=n[e];void 0!==t&&("object"!=typeof t||Array.isArray(t)?i[r?`${r}_${e}`:e]=t:c({currentKey:`${r?`${r}_${e}`:e}`,newObject:i,object:t}))}return i}class u{constructor(e,t){var r,i;this.baseEventData=e,this.clientId=t,this.language=null!=(r=this.baseEventData.language)?r:(0,n.BH)(),this.page=null!=(i=this.baseEventData.page)?i:(0,n.$p)()}mapBaseEventPayload(){return{browser_id:this.clientId,channel:this.baseEventData.channel,client_key:"",currency:this.baseEventData.currency,language:this.language,page:this.page,pos:"",requested_at:new Date().toISOString()}}}var d=r(42787),p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let{UU:h}=d;class f extends u{constructor(e){const t=e.eventData,{channel:r,currency:n,language:i,page:a,type:o,extensionData:s,searchData:l}=t,u=p(t,["channel","currency","language","page","type","extensionData","searchData"]);super({channel:r,currency:n,language:i,page:a},e.id),this.extensionData={},this.sendEvent=e.sendEvent,this.config=e.config,this.customEventPayload=Object.assign({type:o},u),s&&(this.extensionData=c({object:s}));const d=Object.entries(this.extensionData).length;if(d>50)throw Error(h.IV_006(50));d>0&&(this.customEventPayload.ext=this.extensionData),l&&(this.customEventPayload.sc_search={data:l,metadata:{ut_api_version:"1.0"}})}async send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.customEventPayload,e);return await this.sendEvent(t,this.config)}}var m=r(93389),g=r(40919);async function y(e){let t=(0,m.r)();await t.readyPromise,_();let{options:r,adapter:i}=(0,n.UO)();return new f({eventData:e,id:i.getClientId()||"",sendEvent:l,config:Object.assign(Object.assign({},t.config),r)}).send()}function b(e){try{return new Date(e+"Z").toISOString().substring(0,16)===e}catch(e){return!1}}let{UU:v}=d;class E extends u{constructor(e){const{channel:t,currency:r,language:n,page:i,extensionData:a}=e.identityData;if(super({channel:t,currency:r,language:n,page:i},e.id),this.extensionData={},this.numberOfExtensionDataProperties=0,this.validateAttributes(e.identityData),this.identityData=e.identityData,this.sendEvent=e.sendEvent,this.config=e.config,a&&(this.extensionData=c({object:a})),this.numberOfExtensionDataProperties=Object.entries(this.extensionData).length,this.numberOfExtensionDataProperties>50)throw Error(v.IV_006(50))}async send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.mapAttributes(),e);return await this.sendEvent(t,this.config)}validateAttributes(e){var t;if(0===e.identifiers.length)throw Error(v.MV_003);if(void 0!==e.dob&&!b(e.dob))throw Error(v.IV_003);
4if(e.identifiers.forEach(e=>{if(e.expiryDate&&!b(e.expiryDate))throw Error(v.IV_005)}),e.email&&!((t=e.email)&&!(t.length>320)&&/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t)))throw Error(v.IV_004)}mapAttributes(){let e={city:this.identityData.city,country:this.identityData.country,dob:this.identityData.dob,email:this.identityData.email,firstname:this.identityData.firstName,gender:this.identityData.gender,identifiers:this.identityData.identifiers.map(e=>({expiry_date:e.expiryDate,id:e.id,provider:e.provider})),lastname:this.identityData.lastName,mobile:this.identityData.mobile,phone:this.identityData.phone,postal_code:this.identityData.postalCode,state:this.identityData.state,street:this.identityData.street,title:this.identityData.title,type:"IDENTITY"};return this.numberOfExtensionDataProperties>0&&(e.ext=this.extensionData),e}}async function w(e){let t=(0,m.r)();await t.readyPromise,_();let{options:r,adapter:i}=(0,n.UO)();return new E({id:i.getClientId()||"",identityData:e,sendEvent:l,config:Object.assign(Object.assign({},t.config),r)}).send()}let{UU:C}=d;class O extends u{constructor(e){var t;const{channel:r,currency:n,language:i,page:a,extensionData:o}=Object.assign({},e.pageViewData);if(super({channel:r,currency:n,language:i,page:a},e.id),this.extensionData={},this.pageViewData=e.pageViewData,this.sendEvent=e.sendEvent,this.config=e.config,this.urlSearchParams=new URLSearchParams(decodeURI(e.searchParams)),o&&(this.extensionData=c({object:o})),Object.entries(this.extensionData).length>50)throw Error(C.IV_006(50));this.includeUTMParameters=null==(t=e.pageViewData&&e.pageViewData.includeUTMParameters)||t}async send(){let e=this.mapBaseEventPayload(),t=this.mapAttributes();return O.isFirstPageView=!1,await this.sendEvent(Object.assign(Object.assign({},e),t),this.config)}getPageVariantId(e,t){if(e)return e;let r=this.urlSearchParams.get("variantid");return r||t||null}getReferrer(){var e;if(null==(e=this.pageViewData)?void 0:e.referrer)return this.pageViewData.referrer;if("u"<typeof window||!O.isFirstPageView||!document.referrer)return null;let{hostname:t,href:r}=new URL(document.referrer);return window.location.hostname!==t?r:null}mapAttributes(){var e;let t={type:"VIEW"},r=this.pageViewData&&this.getPageVariantId(this.pageViewData.pageVariantId,this.extensionData.pageVariantId);if(null!==r&&(t.ext=Object.assign(Object.assign({},t.ext),{pageVariantId:r})),Object.keys(this.extensionData).length>0&&(delete this.extensionData.pageVariantId,t.ext=Object.assign(Object.assign({},t.ext),this.extensionData)),this.includeUTMParameters){let e=this.getUTMParameters();t=Object.assign(Object.assign({},t),e)}let n=this.getReferrer();return null!==n&&(t=Object.assign(Object.assign({},t),{referrer:n})),(null==(e=this.pageViewData)?void 0:e.searchData)&&(t.sc_search={data:this.pageViewData.searchData,metadata:{ut_api_version:"1.0"}}),t}getUTMParameters(){let e={};return this.urlSearchParams.forEach((t,r)=>{let n=r.toLowerCase();0===n.indexOf("utm_")&&(e[n]=t)}),e}}async function x(e){var t;let r=(0,m.r)();await r.readyPromise,_();let{options:i,adapter:a}=(0,n.UO)();return(null==(t=a.isBot)?void 0:t.call(a))?(s.events("pageView skipped (visitor is a bot)"),null):new O({id:a.getClientId()||"",pageViewData:e,searchParams:a.location.getSearchParams(),sendEvent:l,config:Object.assign(Object.assign({},r.config),i)}).send()}O.isFirstPageView=!0;class j{constructor(){this.key="EventQueue"}enqueueEvent(e){var t,r;let i=this.getSessionStorage();e.eventData.page=null!=(t=e.eventData.page)?t:(0,n.$p)(),e.eventData.language=null!=(r=e.eventData.language)?r:(0,n.BH)(),new f(Object.assign({sendEvent:l},e));let a=this.getEventQueue();a.push(e),i.setItem(this.key,JSON.stringify(a))}async sendAllEvents(){for(let e of this.getEventQueue())await new f({eventData:e.eventData,id:e.id,sendEvent:l,config:e.config}).send();this.clearQueue()}clearQueue(){this.getSessionStorage().removeItem(this.key)}getEventQueue(){var e;let t=null!=(e=this.getSessionStorage().getItem(this.key))?e:'""';try{let e=JSON.parse(t);return Array.isArray(e)?e:[]}catch(e){return[]}}getSessionStorage(){return sessionStorage}}let S=new j;async function A(e){let t=(0,m.r)();await t.readyPromise,_();let{options:r,adapter:i}=(0,n.UO)(),a={eventData:e,id:i.getClientId()||"",config:Object.assign(Object.assign({},t.config),r)};S.enqueueEvent(a)}async function k(){await (0,m.r)().readyPromise,_(),S.clearQueue()}async function P(){await (0,m.r)().readyPromise,_(),S.sendAllEvents()}let{UU:R}=d;async function D(){"u">typeof window&&(window.scContentSDK=Object.assign(Object.assign({},window.scContentSDK),{events:{addToEventQueue:A,clearEventQueue:k,event:y,form:N,identity:w,pageView:x,processEventQueue:P,ver
4sion:i.i8}}))}function F(){return{name:g._,init:D,dependencies:[n.ZP]}}function _(){let e=(0,m.r)().plugins.get(g._);if(!e)throw Error(R.IE_004(g._));return e}async function N(e,t,r){let i=(0,m.r)();await i.readyPromise,_();let{options:a,adapter:o}=(0,n.UO)(),s=o.getClientId()||"",c=new f({eventData:{extensionData:{componentInstanceId:r,formId:e,interactionType:t.toUpperCase()},type:"FORM"},id:s,sendEvent:l,config:Object.assign(Object.assign({},i.config),a)});return c.page=void 0,c.send()}},40919:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n="EventsPlugin"},42787:(e,t,r)=>{"use strict";r.d(t,{Ty:()=>n,UU:()=>i});let n="https://edge-platform.sitecorecloud.io",i={IV_001:'[IV-001] Incorrect value for "edgeUrl". Set the value to a valid URL.',IV_002:'[IV-002] Incorrect value for "timeout". Set the value to an integer greater than or equal to 0.',IV_003:'[IV-003] Incorrect value for "dob". Format the value according to ISO 8601.',IV_004:'[IV-004] Incorrect value for "email". Set the value to a valid email address.',IV_005:'[IV-005] Incorrect value for "expiryDate". Format the value according to ISO 8601.',IV_006:e=>`[IV-006] "extensionData" supports maximum ${e} attributes. Reduce the number of attributes.`,IV_007:e=>`[IV-007] Site "${e}" does not exist or site item tree is missing.`,IE_001:(e,t)=>`[IE-001] "${e}" also requires "${t}". Add the missing dependency.`,IE_002:'[IE-002] SDK not initialized. You must first initialize the SDK using "initContentSdk()".',IE_003:"[IE-003] Timeout exceeded. The server did not respond within the allotted time.",IE_004:e=>`[IE-004] Plugin not registered. You must first add "${e}" to the "initContentSdk()" "plugins" array.`,IE_005:'[IE-005] Unable to set the "sc_cid" cookie because the client ID could not be retrieved from the server. Make sure to set the correct values for "contextId" and "siteName". If the issue persists, try again later or use try-catch blocks to handle this error.',IE_006:'[IE-006] Unable to set the "sc_cid_personalize" cookie because the visitor ID could not be retrieved from the server. Make sure to set the correct values for "contextId" and "siteName". If the issue persists, try again later or use try-catch blocks to handle this error.',IE_007:e=>`[IE-007] Could not resolve site for host "${e}".`,MV_001:'[MV-001] "contextId" is required.',MV_002:'[MV-002] "siteName" is required.',MV_003:'[MV-003] "identifiers" is required.',MV_004:'[MV-004] "friendlyId" is required.',MV_005:e=>`[MV-005] The "sitecore.cli.config" file is missing a "${e}". Please add it to use this command.`,MV_006:'[MV-006] "clientContextId" is missing. Client-side functionalities may be limited.',MV_007:'[MV-007] Provide either "contextId" or both "apiHost" and "apiKey".',MV_008:"[MV-008] Verify that sitecore.config is properly imported and correctly referenced.",MV_009:'[MV-009] "language" is required.',CONTACT_SUPPORT:"If the issue persists, please contact Sitecore Support."}},44491:(e,t,r)=>{"use strict";function n(e){var t;let r=function(e,t){if(!e)return;let r=e.split("; ").find(e=>e.indexOf("=")>0&&e.split("=")[0]===t);return void 0!==r?{name:r.split("=")[0],value:r.split("=")[1]}:void 0}(document.cookie,e);return null!=(t=null==r?void 0:r.value)?t:""}r.d(t,{k:()=>n})},44764:(e,t,r)=>{"use strict";r.d(t,{U:()=>h,Y:()=>d});var n=r(65971),i=r(21098),a=r(2665),o=r(42787),s=r(93389),l=r(31344);let c=a.Ay.init,{UU:u}=o;function d(e){var t;let{options:r,adapter:a}=e,o={cookies:{domain:null==r?void 0:r.cookieDomain,enabled:null!=(t=null==r?void 0:r.enableCookie)&&t,expiryDays:(null==r?void 0:r.cookieExpiryDays)||n.xu,name:`${n.aG}${n.Xv}`,path:(null==r?void 0:r.cookiePath)||"/"},timeout:null==r?void 0:r.timeout};return{name:i.Z,init:p,options:o,adapter:a}}async function p(){var e;c(`Initializing ${i.Z}`);let t=(0,s.r)(),r=h();if(!r.options.cookies.enabled)return void c(`Cookies are disabled for ${i.Z}. If this was not intentional, set "enableCookie" to "true".`);let a=r.adapter;(null==(e=a.isBot)?void 0:e.call(a))||a.getClientId()&&"browser"===r.adapter.type||(await a.setClientId(),c(`Cookie set for ${i.Z}`)),"browser"===r.adapter.type&&(window.scContentSDK=Object.assign(Object.assign({},window.scContentSDK),{analytics_core:{getClientId:l.f,options:{siteName:t.config.siteName,contextId:t.config.contextId,edgeUrl:t.config.edgeUrl},version:n.Zh}}))}function h(){let e=(0,s.r)().plugins.get(i.Z);if(!e)throw Error(u.IE_004(i.Z));return e}},45199:(e,t,r)=>{"use strict";r.d(t,{withPlaceholder:()=>a});var n=r(12115),i=r(36928);let a=e=>t=>{let r=t.rendering.placeholders||{},a={};for(let e of Object.keys(r))a[e]=n.createElement(i.Placeholder,{name:e,rendering:t.rendering,page:t.page,componentMap:t.componentMap});let o=e.displayName||e.name||"Component",s=Object.assign(Object.assign({},t),{displayName:o});return n.createElement(e,Object.assign({},s,{placeholders:a}))}},46686:(e,t,r)=>{"use strict";
4Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return m},defaultHead:function(){return d}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(73623),o=r(66388),s=r(95155),l=o._(r(12115)),c=a._(r(76899)),u=r(75368);function d(){return[(0,s.jsx)("meta",{charSet:"utf-8"},"charset"),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let h=["name","httpEquiv","charSet","itemProp"];function f(e){let t,r,n,i;return e.reduce(p,[]).reverse().concat(d().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let a=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?a=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?a=!1:r.add(e.type);break;case"meta":for(let t=0,r=h.length;t<r;t++){let r=h[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?a=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;("name"!==r||!o)&&n.has(t)?a=!1:(n.add(t),i[r]=n)}}}return a})).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,r=(0,l.useContext)(u.HeadManagerContext);return(0,s.jsx)(c.default,{reduceComponentsToState:f,headManager:r,children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47567:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,a,o=null;function s(...e){if(!s.enabled)return;let n=Number(new Date);s.diff=n-(r||n),s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let a=t.formatters[n];if("function"==typeof a){let t=e[i];r=a.call(s,t),e.splice(i,1),i--}return r}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,a=t.enabled(e)),a),set:e=>{o=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e,t){let r=0,n=0,i=-1,a=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,a=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++a}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(i(e,r))return!1;for(let r of t.names)if(i(e,r))return!0;return!1},t.humanize=r(66190),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},49334:(e,t,r)=>{"use strict";r.d(t,{ClientComponentWrapper:()=>o});var n=r(7532),i=r(12115),a=r(60865);let o=e=>{let{page:t,componentMap:r}
4=(0,n.useSitecore)(),o=Object.assign(Object.assign({},e.componentProps),{rendering:e.rendering,componentMap:r,page:t}),{component:s}=(0,a.tt)(e.rendering,e.placeholderName,r);return i.createElement(s,Object.assign({},o))}},50237:(e,t,r)=>{"use strict";r.d(t,{$u:()=>n.$u,mv:()=>n.mv,sI:()=>n.sI});var n=r(15503)},53254:(e,t,r)=>{"use strict";r.d(t,{withSitecore:()=>a});var n=r(12115),i=r(7532);function a(e){return function(t){return function(r){let a=(0,i.useSitecore)(e);return n.createElement(t,Object.assign({},r,{page:a.page,api:a.api,setPage:a.setPage,componentMap:a.componentMap,loadImportMap:a.loadImportMap}))}}}},55762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return a}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i=["default","imgix","cloudinary","akamai","custom"],a={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},56737:(e,t,r)=>{"use strict";r.d(t,{Link:()=>c});var n=r(12115),i=r(92242),a=r(258),o=r(61578),s=r(99759),l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let c=(0,a.O)((0,o.N)(e=>{var{field:t,showLinkTextWithChildrenPresent:r,renderChildrenWhenEmpty:a,ref:o}=e,s=l(e,["field","showLinkTextWithChildrenPresent","renderChildrenWhenEmpty","ref"]);let c=s.children;delete s.editable;let u=(0,i.JE)(t),d=u?void 0:t.href?t:t.value;if(u||!d)return a&&c?n.createElement("a",Object.assign({},s,{key:"link",ref:o}),c):null;
4let p="anchor"!==d.linktype&&d.anchor?`#${d.anchor}`:"",h=d.querystring?`?${d.querystring}`:"",f={href:`${d.href}${h}${p}`,className:d.class,title:d.title,target:d.target};"_blank"!==f.target||f.rel||(f.rel="noopener noreferrer");let m=r||!c?d.text||d.href:null;return n.createElement("a",Object.assign({},f,s,{key:"link",ref:o}),m,c)},{defaultEmptyFieldEditingComponent:s.G}));c.displayName="Link"},58051:(e,t,r)=>{"use strict";r.d(t,{DesignLibrary:()=>O});var n,i,a,o,s=r(12115);(n=i||(i={})).Preview="preview",n.Edit="edit",n.Normal="normal",(a||(a={})).Metadata="metadata",(o||(o={})).Component="component";let l="editing-componentmode-placeholder";var c=r(15503),u=r(24231),d=r(28739),p=r(50237),h=r(7532),f=r(82633),m=r(36928),g=r(83508),y=r(60563);let{RL:b,vv:v,rC:E,hO:w}=u,{$u:C}=p,O=()=>{var e,t;let{page:r,loadImportMap:n}=(0,h.useSitecore)(),i=r.layout.sitecore.route,a=null==(e=null==i?void 0:i.placeholders[l])?void 0:e[0],o=null==a?void 0:a.uid,{isDesignLibrary:u}=r.mode,p=null==(t=r.mode.designLibrary)?void 0:t.isVariantGeneration,[O,x]=(0,s.use
4State)({fields:null==a?void 0:a.fields,params:null==a?void 0:a.params}),[j,S]=(0,s.useState)(0),[A,k]=(0,s.useState)(null),P=!!A;return u?o?((0,s.useEffect)(()=>{C((0,c.mv)(c.gn.READY,o)),p||requestAnimationFrame(()=>{S(e=>0===e?e+1:e)});let e=(0,c.sI)(a,e=>{x({fields:e.fields,params:e.params}),S(e=>e+1)});return()=>e&&e()},[p,a,o]),(0,s.useEffect)(()=>{0!==j&&C((0,c.mv)(c.gn.RENDERED,o))},[j,o]),(0,s.useEffect)(()=>{let e;if(!u||!p)return;let t=!1;return(async()=>{let r;if(!n)return w(o,"No loadImportMap provided",d.yq.ImportMapMissing);try{r=(await n()).default}catch(e){w(o,`Error loading import map: ${e}`,d.yq.ImportMapLoad);return}t||(e=E(r,(e,t)=>{e||(k(()=>t),S(e=>e+1))}),C(b(o,r)),C(v(o,O.fields,O.params)))})(),()=>{t=!0,e&&e()}},[u,p,o,n,O]),s.createElement("main",null,P?s.createElement(g.DesignLibraryErrorBoundary,{uid:o,renderKey:j},s.createElement(f.f,{rendering:a},s.createElement(A,{fields:O.fields,params:O.params,key:j}))):s.createElement("div",{id:"editing-component"},i&&s.createElement(m.Placeholder,{name:l,rendering:i,key:j})))):s.createElement(y.ErrorComponent,{message:"Rendering UID is missing in the rendering data"}):null}},60563:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorComponent:()=>a,default:()=>s});var n=r(12115),i=r(7532);let a=e=>n.createElement("div",{className:"sc-content-sdk-placeholder-error"},e.message?e.message:e.children);class o extends n.Component{static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){var r,n;this.showErrorDetails()&&console.error(`An error occurred in component ${null==(r=this.props.rendering)?void 0:r.componentName} (${null==(n=this.props.rendering)?void 0:n.uid}): `),console.error({error:e,errorInfo:t})}isInDevMode(){return!1}showErrorDetails(){return this.isInDevMode()||this.props.page.mode.isEditing||this.props.page.mode.isPreview}render(){var e,t;if(this.state.error)if(this.props.errorComponent)return n.createElement(this.props.errorComponent,{error:this.state.error});else if(this.showErrorDetails())return n.createElement("div",null,n.createElement(a,null,"A rendering error occurred in component"," ",n.createElement("em",null,null==(e=this.props.rendering)?void 0:e.componentName),n.createElement("br",null),"Error: ",n.createElement("em",null,this.state.error.message||JSON.stringify(this.state.error))));else return n.createElement("div",null,n.createElement(a,{message:this.defaultErrorMessage}));return null==(t=this.props.disableSuspense)||t||this.props.isDynamic?this.props.children:n.createElement(n.Suspense,{fallback:n.createElement("h4",null,this.props.componentLoadingMessage||this.defaultLoadingMessage)},this.props.children)}constructor(e){super(e),this.defaultErrorMessage="There was a problem loading this section.",this.defaultLoadingMessage="Loading component...",this.state={error:null}}}let s=e=>{let{page:t}=(0,i.useSitecore)(),r=Object.assign(Object.assign({},e),{page:t});return n.createElement(o,Object.assign({},r))}},60751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(73623)._(r(12115)).default.createContext(null)},60865:(e,t,r)=>{"use strict";r.d(t,{U3:()=>m,tt:()=>g,nV:()=>h,hl:()=>f});var n=r(12115),i=r(90366);let a="Default";var o=r(92242);let s={backgroundSize:"3px 3px",display:"flex",justifyContent:"center",alignItems:"center",padding:"30px",color:"#aaa"},l={backgroundImage:"linear-gradient(45deg, #ffffff 25%, #dcdcdc 25%, #dcdcdc 50%, #ffffff 50%, #ffffff 75%, #dcdcdc 75%, #dcdcdc 100%)"},c=()=>{let e=Object.assign(Object.assign({},s),l);return n.createElement("div",{style:e},"The component is hidden")},u="BYOCWrapper";var d=r(80695),p=r(30874);let h=(e,t,r)=>{let n,i=t.slice();return((null==e?void 0:e.placeholders)&&Object.entries(e.placeholders).forEach(([t,n])=>{let a=(0,o.Np)(t)?(0,o.jz)(t):null;a&&a.test(i)&&(r?i=t:(e.placeholders[i]=n,delete e.placeholders[t]))}),n=e&&e.placeholders&&Object.keys(e.placeholders).length>0?e.placeholders[i]:null)?n:(console.warn(`Placeholder '${i}' was not found in the current rendering data`,JSON.stringify(e,null,2)),[])},f=e=>n.createElement("div",{className:"sc-jss-empty-placeholder"},e);function m(e,t){return{fields:Object.assign(Object.assign({},e.fields||{}),t.fields||{}),params:Object.assign(Object.assign({},Object.assign(Object.assign({},e.params||{}),t.params||{})),(e=>{var t,r;if(!e.params)return{styles:""};let n=[null!=(t=(0,o.tX)(e.params.GridParameters))?t:"",null!=(r=(0,o.tX)(e.params.Styles))?r:""].filter(
4Boolean).join(" ");if(n)return{styles:n}})(t)),rendering:t}}let g=(e,t,r,o,s)=>{var l,h;let f=r=>{console.error(`Placeholder ${t} contains unknown component ${e.componentName}${r?` (${r})`:""}. Ensure that a React component exists for it, and that it is registered in your component-map file.`)};if("Hidden Rendering"===e.componentName)return{component:null!=o?o:c,isEmpty:!0,componentType:"universal"};if(!e.componentName)return{component:()=>n.createElement(n.Fragment,null),isEmpty:!0,componentType:"universal"};let m=null;if(r&&0!==r.size?m=r.get(e.componentName):console.warn(`No components were available in component map to service request for component ${e}`),!m){if("FEaaSComponent"===e.componentName)return{component:d.FEaaSComponent,isEmpty:!1,componentType:"universal"};if("FEaaSWrapper"===e.componentName)return{component:d.FEaaSWrapper,isEmpty:!1,componentType:"universal"};if("BYOCComponent"===e.componentName)return{component:p.BYOCComponent,isEmpty:!1,componentType:"universal"};else if(e.componentName===u)return{component:p.BYOCWrapper,dynamic:!0,componentType:"universal",isEmpty:!1};return f(),{component:null!=s?s:i.K,isEmpty:!0,componentType:"universal"}}let g=null==(l=e.params)?void 0:l.FieldNames,y=g&&g!==a?m[g]:m.default||m.Default||m;if(!y)return f(g!==a?g:void 0),{component:null!=s?s:i.K,isEmpty:!0,componentType:"universal"};let b=!!(null==(h=y.render)?void 0:h.preload)||e.componentName===u;return{component:y,dynamic:b,componentType:m.componentType,isEmpty:!1}}},60917:(e,t,r)=>{"use strict";var n,i,a,o,s,l,c;r.d(t,{mV:()=>i}),(s=n||(n={})).Final="final",s.Shared="shared",(l=i||(i={})).Open="open",l.Close="close",(c=a||(a={})).Normal="library",c.Metadata="library-metadata",(o||(o={})).Variant="variant"},61578:(e,t,r)=>{"use strict";r.d(t,{N:()=>a});var n=r(12115),i=r(92242);function a(e,t){let r=e=>{var r;let{editable:a=!0}=e;if((null==(r=e.field)?void 0:r.metadata)&&a&&(0,i.JE)(e.field)&&!e.renderChildrenWhenEmpty){let r=e.emptyFieldEditingComponent||t.defaultEmptyFieldEditingComponent,i=e;return e.emptyFieldEditingComponent||(i=Object.assign(Object.assign({},e),{editable:void 0,field:void 0})),n.createElement(r,Object.assign({},i,{suppressHydrationWarning:!0}))}return null};return t.isForwardRef?t=>r(t)||n.createElement(e,Object.assign({},t)):t=>r(t)||n.createElement(e,Object.assign({},t))}},64276:(e,t,r)=>{"use strict";r.d(t,{RichText:()=>c});var n=r(12115),i=r(92242),a=r(258),o=r(61578),s=r(99759),l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let c=(0,a.O)((0,o.N)(e=>
4{var{field:t,tag:r="div",ref:a}=e,o=l(e,["field","tag","ref"]);if((0,i.JE)(t))return null;delete o.editable;let s=Object.assign({dangerouslySetInnerHTML:{__html:t.value},ref:a,suppressHydrationWarning:!!t.metadata||void 0},o);return n.createElement(r||"div",Object.assign({},s))},{defaultEmptyFieldEditingComponent:s.G}));c.displayName="RichText"},65971:(e,t,r)=>{"use strict";r.d(t,{mG:()=>l,Xv:()=>a,aG:()=>i,UV:()=>s,xu:()=>o,Zh:()=>n});let n="2.1.0",i="sc_",a="cid",o=730,s=86400,l="v1.2"},66190:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,i,a,o,s=typeof e;if("string"===s&&e.length>0){var l=e;if(!((l=String(l)).length>100)){var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(c){var u=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:break}}}return}if("number"===s&&isFinite(e)){return r.long?(i=Math.abs(n=e))>=864e5?t(n,i,864e5,"day"):i>=36e5?t(n,i,36e5,"hour"):i>=6e4?t(n,i,6e4,"minute"):i>=1e3?t(n,i,1e3,"second"):n+" ms":(o=Math.abs(a=e))>=864e5?Math.round(a/864e5)+"d":o>=36e5?Math.round(a/36e5)+"h":o>=6e4?Math.round(a/6e4)+"m":o>=1e3?Math.round(a/1e3)+"s":a+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},67886:(e,t,r)=>{"use strict";function n(e){return i(e).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,function(e){return"-"+e.toLowerCase()})}function i(e){return(e=(e=e.replace(/[-_ ]+/g," ")).charAt(0).toLowerCase()+e.slice(1)).split(/\s+/).map((e,t)=>0===t?e:e.charAt(0).toUpperCase()+e.slice(1)).join("")}r.d(t,{uA:()=>tM,bx:()=>tI});var a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},o={},s=e=>{var{properties:t}=e;return Object.assign(Object.assign({},a(e,["properties"])),{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:l(t)}})};function l(e={}){return{type:"object",properties:Object.keys(e).reduce((t,r)=>{let n=e[r],{title:i}=n;return a(n,["title"]),Object.assign(Object.assign({},t),{[r]:{type:"object",properties:{value:Object.assign({title:i||r},e[r])}}})},{})}}var c={Link:()=>({type:"object",properties:{href:{required:!0,type:"string",title:"URL",description:"The URL of the link, except for media items, for which the Url property contains the path to the media item relative to /Sitecore/Media Library."},text:{type:"string",title:"Text",description:"The text content of the HTML <a> element."},linktype:{type:"string",enum:["internal","external","media","anchor","mailto","javascript"],default:"internal",title:"Target",description:"The target attribute of the HTML <a> element."},title:{type:"string",title:"Title",description:"The title attribute of the HTML <a> element."},class:{type:"string",title:"Class Name",description:"The class attribute of the HTML <a> element."},target:{type:"string",title:"Target",description:"The target attribute of the HTML <a> element.",enum:["","_blank","_self","_parent","_top"]},anchor:{type:"string",title:"Anchor",description:"The name attribute of the HTML <a> element, without the leading hash character (â#â)."},querystring:{type:"string",title:"Query String",description:"Query string parameters to add to the URL."}}}),DropLink:s,DropTree:s,File:()=>({type:"object",properties:{src:{type:"string",title:"Source",description:"The URL of the file."},title:{type:"string",title:"Title",description:"Title of a file"},displayName:{type:"string",title:"Display name",description:"Display name of a file"}}}),Date:()=>({type:"string",format:"date"}),Datetime:()=>({type:"string",format:"date-time"}),RichText:()=>({type:"string"}),Image:e=>({type:"object",properties:Object.assign({src:{type:"string"}},e.properties)}),SingleLineText:()=>{},MultiLineText:()=>({type:"string"}),Checkbox:()=>({type:"boolean"}),String:()=>({type:"string"}),Number:()=>({type:"number"}),Boolean:()=>({type:"boolean"}),Item:s,List:e=>{var{properties:t}=e;return Object.assign(Object.assign({},a(e,["properties"])),{type:"array",items:{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:l(t)}}})}};function u(e,t={}){return function e(t,r){var n={};for(var i in t){let a=t[i];a&&"object"==typeof a?Array.isArray(a)?n[i]=a.map(t=>"object"==typeof t&&t?e(t,r):t):n[i]=e(r(a),r):n[i]=t[i]}return n}(e=d(Object.assign({type:"object",properties:{},required:[]},e)),e=>e.properties?d(e,t):e)}function d(e,t={}){var r;let i=Object.assign({},e);return i.properties&&(i.required=(null==(r=e.required)?void 0:r.slice())||[],i.properties=Object.keys(i.properties).reduce((e,r)=>{var a;let s=i.properties[r],l=null==(a=o[null==s?void 0:s.type])?void 0:a.call(o,s),c=Object.assign(Object.assign(Object.assign({},l),s),{type:(null==l?void 0:l.type)||s.type,default:t.hasOwnProperty(r)?t[r]:s.default,title:s.title||n(r).split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")});return(null!=s&&s.properties||null!=l&&l.properties)&&(c.properties=Object.assign({},(null==l?void 0:l.properties)||(null==s?void 0:s.properties)),Object.keys((null==l?void 0:l.properties)||{}
4).forEach(e=>{var t,r;c.properties[e]=Object.assign(Object.assign({},null==(t=null==l?void 0:l.properties)?void 0:t[e]),null==(r=null==s?void 0:s.properties)?void 0:r[e])})),(null!=s&&s.items||null!=l&&l.items)&&(c.items=(null==l?void 0:l.items)||(null==s?void 0:s.items)),void 0===c.default&&delete c.default,"required"in c&&"boolean"==typeof c.required&&(-1==i.required.indexOf(r)&&i.required.push(r),delete c.required),Object.assign(e,{[r]:c})},{})),Object.assign({type:"object"},i)}Object.keys(c).forEach(e=>{!function(e,{name:t}){if(t.charAt(0)!=t.charAt(0).toUpperCase())throw Error("Custom types must start with a capital letter");o[t]=e}(c[e],{name:e})});var p=(e,t)=>{var r,n,i,a;let o=Object.assign({},e);for(var s in t)"object"==typeof t[s]&&t[s]&&(((null==(r=t[s])?void 0:r.type)=="integer"||(null==(n=t[s])?void 0:n.type)=="number")&&(o[s]=Object.assign(Object.assign({},o[s]),{"ui:options":{widget:"updown"}})),null!=(i=t[s])&&i.ui&&(o[s]=Object.assign(Object.assign({},o[s]),{"ui:options":Object.assign(Object.assign({},null==(a=o[s])?void 0:a["ui:options"]),t[s].ui)})),o=Object.assign(Object.assign({},o),{[s]:t[s].items?{items:p(o[s],t[s].items.properties)}:p(o[s],t[s].properties||{})}));return o};function h(e,t){switch(t){case"string":default:return e;case"object":try{return"object"==typeof e&&null!=e?e:JSON.parse(e)}catch(e){return null}case"array":try{return Array.isArray(e)?e:JSON.parse(e)}catch(e){return null}case"number":return parseFloat(e);case"integer":return parseInt(e);case"boolean":return"true"==e||"1"==e}}var f="u">typeof window?window.BYOCDatasources||(window.BYOCDatasources={}):{};function m(e,t){if("function"!=typeof e)throw Error("The first argument of registerDatasource must be a function returning DataSettings or Promise of data");if(!t.id)throw Error("Missing 'id' property in input");if(!/^[a-zA-Z0-9-_]+$/.test(t.id))throw Error("Invalid 'id' property in input. 'id' should only contain alphanumeric characters, hyphens, and underscores.");f[t.id]=Object.assign(Object.assign({},function(e){let{id:t,name:r,title:n,properties:i,sample:a,schema:o,description:s=null,type:l="object"}=e;return{id:t,description:s,sample:a,name:r||n||t,handler:e=>e,schema:o||i?u(Object.assign(Object.assign({},o||{properties:i,type:l}),{title:(null==o?void 0:o.title)||n||r})):void 0}}(t)),{handler:e}),E()}var g,y=!1,b=0,v=!1;function E(){if(clearTimeout(g),"u">typeof window&&window.parent!==window){"u"<typeof window||v||(v=!0,window.addEventListener("message",e=>{try{"register-datasources-ack"===("string"==typeof e.data?JSON.parse(e.data):e.data).action&&(y=!0,b=0,clearTimeout(g))}catch(e){}})),y=!1,b=0;let e=()=>{var t;y||b>=150||(null==(t=window.parent)||t.postMessage(JSON.stringify({action:"register-datasources",data:Object.values(f)}),"*"),b++,!y&&b<150&&(g=setTimeout(e,200)))};g=setTimeout(e,30)}}function w(e,t){let r=f[e];return null!=r&&r.handler?r.handler(t):t}E();var C,O=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},x=!1,j=0,S=!1,A="u">typeof HTMLElement?HTMLElement:"u">typeof windowJSDOM?windowJSDOM.HTMLElement:class{setAttribute(){}},k="u">typeof window?window.BYOCComponents||(window.BYOCComponents={}):{};function P(e,t,r={}){if(!(null!=t&&t.name))throw Error("Could not register external component. Please make sure you provide a name in the options"+JSON.stringify(t));let i=function(e,t,r){let{thumbnail:n="https://feaasstatic.blob.core.windows.net/assets/thumbnails/byoc.svg",name:i,id:a=e.name,group:o=null,ui:s,isHidden:l=!1,datasourceIds:c=[],links:d={},meta:h={},uiSchema:f,schema:m}=e,g=O(e,["thumbnail","name","id","group","ui","isHidden","datasourceIds","links","meta","uiSchema","schema"]),y=u(Object.assign(Object.assign({description:"External component"},m||g||{}),{type:"object"}),r),b=p(f||s||{},y.properties||{});return{component:t||(()=>null),name:i,schema:y,uiSchema:b,thumbnail:n,group:o||"Default collection",isHidden:l,id:a,datasourceIds:c,links:d,meta:h,title:(null==y?void 0:y.title)||(null==g?void 0:g.title)||i}}(t,e,r);k[i.id]=i,R(e)&&N.register("byoc-"+n(t.name),void 0,e),_()}function R(e){return e&&"prototype"in e&&"setAttribute"in e.prototype}function D(e){if("string"!=typeof e){if(e&&"schema"in e)return e;throw Error(`Component name should be a string, got ${typeof e}`)}let[t,r]=e.split("?");var n=k[t];if(r){let t=k[e];if(!t&&!n)return null;t&&(n=Object.assign(Object.assign(Object.assign({},n),t),{component:t.component||(null==n?void 0:n.component)}
4)),r.split(/\&/g).forEach(e=>{var t,r,i;let[a,o]=e.split("="),s=(null==(t=n.schema.properties)?void 0:t[a])||{type:"string"};n=Object.assign(Object.assign({},n),{schema:Object.assign(Object.assign({},n.schema),{properties:Object.assign(Object.assign({},n.schema.properties),{[a]:Object.assign(Object.assign({},s),{default:h(decodeURIComponent(o),s.type)})})}),uiSchema:Object.assign(Object.assign({},n.uiSchema),{[a]:Object.assign(Object.assign({},n.uiSchema[a]),{"ui:widget":null!=(i=null==(r=n.uiSchema[a])?void 0:r["ui:widget"])?i:"hidden"})})})})}return n}function F(e){let{componentName:t,className:r,fallbackWrapper:a,fallback:o,suppressHydrationWarning:s,_dynamic:l,datasources:c}=e,u=O(e,["componentName","className","fallbackWrapper","fallback","suppressHydrationWarning","_dynamic","datasources"]);try{var d="string"==typeof c?JSON.parse(c):c}catch(e){}let p=Object.values(d||{}).find(e=>e&&!Array.isArray(e)&&Object.keys(e).length>0),f=Object.assign(Object.assign(Object.assign({},p),function(e,t={}){var r,n;let a=null==(r=D(e))?void 0:r.schema;return a?Object.assign(Object.assign({},Object.keys((n=a).properties).reduce((e,t)=>{var r,i;return(null==(r=n.properties[t])?void 0:r.default)!=null?Object.assign(Object.assign({},e),{[t]:null==(i=n.properties[t])?void 0:i.default}):e},{})),Object.keys(t).reduce((e,r)=>{let n=t[r],o=i(r),s=null==a?void 0:a.properties[o],l=h(n,null==s?void 0:s.type);return null==l||r.startsWith("data-attribute")||["class","id","contenteditable"].includes(r)?e:Object.assign(Object.assign({},e),{[o]:l})},{})):t}(t,Object.assign(Object.assign({},p),u))),d?{datasources:d}:{}),m=Object.assign(Object.assign({"data-external-id":t},((e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[n(r)]:e[r]}),{}))(f)),{suppressHydrationWarning:!0,class:r});return $.forEach(e=>{Object.assign(m,{[n(e)]:T[e]})}),Object.keys(m).forEach(e=>{let t=m[e];if(t&&"object"==typeof t&&"class"!=e&&"children"!=e)try{Object.assign(m,{[e]:JSON.stringify(t)})}catch(t){delete m[e]}("function"==typeof t||null==t)&&delete m[e]}),{attributes:m,properties:f,merged:Object.assign(Object.assign({},T),f)}}function _(){if(clearTimeout(C),"u">typeof window&&window.parent!==window){"u"<typeof window||S||(S=!0,window.addEventListener("message",e=>{try{"register-components-ack"===("string"==typeof e.data?JSON.parse(e.data):e.data).action&&(x=!0,j=0,clearTimeout(C))}catch(e){}})),x=!1,j=0;let e=()=>{var t;x||j>=150||(null==(t=window.parent)||t.postMessage(JSON.stringify({action:"register-components",data:Object.values(k)}),"*"),j++,!x&&j<150&&(C=setTimeout(e,200)))};C=setTimeout(e,30)}}_();var N=class extends A{connectedCallback(){try{JSON.parse(String(this.getAttribute("components"))).forEach(e=>{D(e.id)||P(null,e)}),JSON.parse(String(this.getAttribute("datasources"))).forEach(e=>{f[e.id]||m(e=>e,e)})}catch(e){}}static register(e,t,r=this){null==t&&(t="u">typeof window?window:void 0),t&&!t.customElements.get(e)&&t.customElements.define(e,class extends r{})}},T={},$=["sitecoreEdgeUrl","sitecoreEdgeContextId"];N.register("byoc-registration");var I=r(12115);function M(e){return 0==Object.keys(e).length?I.createElement(I.Fragment,null):function(e){let{componentName:t,fallback:r,fallbackWrapper:i}=e,a=D(t),o=null==a?void 0:a.component,{attributes:s,properties:l,merged:c}=F(e);if(!o&&r||!t)return!1===i?I.createElement(I.Fragment,null,r):I.createElement("feaas-external",Object.assign({},s,{hydrate:"false"}),r);if(a&&o&&R(o)){let e="byoc-"+n(a.id);return I.createElement(e,Object.assign(Object.assign({},s),{ref:t=>{var r;t&&"u">typeof window&&(null==(r=window.customElements)||r.whenDefined(e).then(()=>{var e;null==(e=t.sitecoreContextCallback)||e.call(t,Object.assign({},c))}))}}))}return I.createElement(I.Fragment,null,I.createElement("feaas-external",Object.assign({},s,{hydrate:"false"}),null==o?null:I.createElement(o,Object.assign({},c))))}(e)}var L=r(47650),U=Object.defineProperty,V=(e,t)=>{for(var r in t)U(e,r,{get:t[r],enumerable:!0})},B={};V(B,{renderDOMContent:()=>eD,renderDOMElement:()=>eP,renderHTMLContent:()=>eF,setDOMAttribute:()=>eA});var z={};function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function q(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function J(e,t,r){return t&&q(e.prototype,t),r&&q(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
4function K(e,t){return(K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function X(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z(e,t,r){return(Z=X()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&K(i,r.prototype),i}).apply(null,arguments)}function Y(e){var t="function"==typeof Map?new Map:void 0;return(Y=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if("u">typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Z(e,arguments,G(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),K(r,e)})(e)}function Q(e,t){if(e){if("string"==typeof e)return ee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ee(e,t)}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}V(z,{JSONPath:()=>ea,queryObject:()=>ec,queryObjectRaw:()=>el,queryScopes:()=>eu,serializeCH1RichText:()=>ep});var et=Object.prototype.hasOwnProperty;function er(e,t){return(e=e.slice()).push(t),e}function en(e,t){return(t=t.slice()).unshift(e),t}var ei=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&K(n,e);var t,r=(t=X(),function(){var e,r=G(n);e=t?Reflect.construct(r,arguments,G(this).constructor):r.apply(this,arguments);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function n(e){var t;return W(this,n),(t=r.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)')).avoidNew=!0,t.value=e,t.name="NewError",t}return J(n)}(Y(Error));function ea(e,t,r,n,i){if(!(this instanceof ea))try{return new ea(e,t,r,n,i)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(i=n,n=r,r=t,t=e,e=null);var a=e&&"object"===H(e);if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!et.call(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.preventEval=e.preventEval||!1,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||n||null,this.otherTypeCallback=e.otherTypeCallback||i||function(){throw TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){var o={path:a?e.path:t};a?"json"in e&&(o.json=e.json):o.json=r;var s=this.evaluate(o);if(!s||"object"!==H(s))throw new ei(s);return s}}ea.prototype.evaluate=function(e,t,r,n){var i=this,a=this.parent,o=this.parentProperty,s=this.flatten,l=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=n||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"===H(e)&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!et.call(e,"json"))throw TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');t=e.json,s=et.call(e,"flatten")?e.flatten:s,this.currResultType=et.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=et.call(e,"sandbox")?e.sandbox:this.currSandbox,l=et.call(e,"wrap")?e.wrap:l,this.currPreventEval=et.call(e,"preventEval")?e.preventEval:this.currPreventEval,r=et.call(e,"callback")?e.callback:r,this.currOtherTypeCallback=et.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,a=et.call(e,"parent")?e.parent:a,o=et.call(e,"parentProperty")?e.parentProperty:o,e=e.path}if(a=a||null,o=o||null,Array.isArray(e)&&(e=ea.toPathString(e)),!(!e&&""!==e||!t)){var c=ea.toPathArray(e);"$"===c[0]&&c.length>1&&c.shift(),this._hasParentSelector=null;var u=this._trace(c,t,["$"],a,o,r).filter(function(e){return e&&!e.isParentSelector});return u.length?l||1!==u.length||u[0].hasArrExpr?u.reduce(function(e,t){var r=i._getPreferredOutput(t);return s&&Array.isArray(r)?e=e.concat(r):e.push(r),e},[]):this._getPreferredOutput(u[0]):l?[]:void 0}},ea.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:ea.toPathArray(e.path);
4return e.pointer=ea.toPointer(r),e.path="string"==typeof e.path?e.path:ea.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return ea.toPathString(e[t]);case"pointer":return ea.toPointer(e.path);default:throw TypeError("Unknown result type")}},ea.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:ea.toPathString(e.path),t(n,r,e)}},ea.prototype._trace=function(e,t,r,n,i,a,o,s){var l,c=this;if(!e.length)return l={path:r,value:t,parent:n,parentProperty:i,hasArrExpr:o},this._handleCallback(l,a,"value"),l;var u=e[0],d=e.slice(1),p=[];function h(e){Array.isArray(e)?e.forEach(function(e){p.push(e)}):p.push(e)}if(("string"!=typeof u||s)&&t&&et.call(t,u))h(this._trace(d,t[u],er(r,u),t,u,a,o));else if("*"===u)this._walk(t,function(e){h(c._trace(d,t[e],er(r,e),t,e,a,!0,!0))});else if(".."===u)h(this._trace(d,t,r,n,i,a,o)),this._walk(t,function(n){"object"===H(t[n])&&h(c._trace(e.slice(),t[n],er(r,n),t,n,a,!0))});else{if("^"===u)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:d,isParentSelector:!0};if("~"===u)return l={path:er(r,u),value:i,parent:n,parentProperty:null},this._handleCallback(l,a,"property"),l;if("$"===u)h(this._trace(d,t,r,null,null,a,o));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(u))h(this._slice(u,d,t,r,n,i,a));else if(0===u.indexOf("?(")){if(this.currPreventEval)throw Error("Eval [?(expr)] prevented in JSONPath expression.");var f=u.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1");this._walk(t,function(e){c._eval(f,t[e],e,r,n,i)&&h(c._trace(d,t[e],er(r,e),t,e,a,!0))})}else if("("===u[0]){if(this.currPreventEval)throw Error("Eval [(expr)] prevented in JSONPath expression.");h(this._trace(en(this._eval(u,t,r[r.length-1],r.slice(0,-1),n,i),d),t,r,n,i,a,o))}else if("@"===u[0]){var m=!1,g=u.slice(1,-2);switch(g){case"scalar":t&&["object","function"].includes(H(t))||(m=!0);break;case"boolean":case"string":case"undefined":case"function":H(t)===g&&(m=!0);break;case"integer":Number.isFinite(t)&&!(t%1)&&(m=!0);break;case"number":Number.isFinite(t)&&(m=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(m=!0);break;case"object":t&&H(t)===g&&(m=!0);break;case"array":Array.isArray(t)&&(m=!0);break;case"other":m=this.currOtherTypeCallback(t,r,n,i);break;case"null":null===t&&(m=!0);break;default:throw TypeError("Unknown value type "+g)}if(m)return l={path:r,value:t,parent:n,parentProperty:i},this._handleCallback(l,a,"value"),l}else if("`"===u[0]&&t&&et.call(t,u.slice(1))){var y=u.slice(1);h(this._trace(d,t[y],er(r,y),t,y,a,o,!0))}else if(u.includes(",")){var b,v=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Q(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(o)throw i}}}}(u.split(","));try{for(v.s();!(b=v.n()).done;){var E=b.value;h(this._trace(en(E,d),t,r,n,i,a,!0))}}catch(e){v.e(e)}finally{v.f()}}else!s&&t&&et.call(t,u)&&h(this._trace(d,t[u],er(r,u),t,u,a,o,!0))}if(this._hasParentSelector)for(var w=0;w<p.length;w++){var C=p[w];if(C&&C.isParentSelector){var O=this._trace(C.expr,t,C.path,n,i,a,o);if(Array.isArray(O)){p[w]=O[0];for(var x=O.length,j=1;j<x;j++)w++,p.splice(w,0,O[j])}else p[w]=O}}return p},ea.prototype._walk=function(e,t){if(Array.isArray(e))for(var r=e.length,n=0;n<r;n++)t(n);else e&&"object"===H(e)&&Object.keys(e).forEach(function(e){t(e)})},ea.prototype._slice=function(e,t,r,n,i,a,o){if(Array.isArray(r)){var s=r.length,l=e.split(":"),c=l[2]&&Number.parseInt(l[2])||1,u=l[0]&&Number.parseInt(l[0])||0,d=l[1]&&Number.parseInt(l[1])||s;u=u<0?Math.max(0,u+s):Math.min(s,u),d=d<0?Math.max(0,d+s):Math.min(s,d);for(var p=[],h=u;h<d;
5h+=c)this._trace(en(h,t),r,n,i,a,o,!0).forEach(function(e){p.push(e)});return p}},ea.prototype._eval=function(e,t,r,n,i,a){this.currSandbox._$_parentProperty=a,this.currSandbox._$_parent=i,this.currSandbox._$_property=r,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;var o=e.includes("@path");o&&(this.currSandbox._$_path=ea.toPathString(n.concat([r])));var s="script:"+e;if(!ea.cache[s]){var l=e.replace(/@parentProperty/g,"_$_parentProperty").replace(/@parent/g,"_$_parent").replace(/@property/g,"_$_property").replace(/@root/g,"_$_root").replace(/@([\t-\r \)\.\[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/g,"_$_v$1");o&&(l=l.replace(/@path/g,"_$_path")),ea.cache[s]=new this.vm.Script(l)}try{return ea.cache[s].runInNewContext(this.currSandbox)}catch(t){throw Error("jsonPath: "+t.message+": "+e)}},ea.cache={},ea.toPathString=function(e){for(var t=e.length,r="$",n=1;n<t;n++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(e[n])||(r+=/^[\*0-9]+$/.test(e[n])?"["+e[n]+"]":"['"+e[n]+"']");return r},ea.toPointer=function(e){for(var t=e.length,r="",n=1;n<t;n++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(e[n])||(r+="/"+e[n].toString().replace(/~/g,"~0").replace(/\//g,"~1"));return r},ea.toPathArray=function(e){var t=ea.cache;if(t[e])return t[e].concat();var r=[],n=e.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/g,";$&;").replace(/['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))['\]]/g,function(e,t){return"[#"+(r.push(t)-1)+"]"}).replace(/\[["']((?:(?!['\]])[\s\S])*)["']\]/g,function(e,t){return"['"+t.replace(/\./g,"%@%").replace(/~/g,"%%@@%%")+"']"}).replace(/~/g,";~;").replace(/["']?\.["']?(?!(?:(?!\[)[\s\S])*\])|\[["']?/g,";").replace(/%@%/g,".").replace(/%%@@%%/g,"~").replace(/(?:;)?(\^+)(?:;)?/g,function(e,t){return";"+t.split("").join(";")+";"}).replace(/;;;|;;/g,";..;").replace(/;$|'?\]|'$/g,"").split(";").map(function(e){var t=e.match(/#([0-9]+)/);return t&&t[1]?r[t[1]]:e});return t[e]=n,t[e].concat()};var eo=function(e,t,r){for(var n=e.length,i=0;i<n;i++)r(e[i])&&t.push(e.splice(i--,1)[0])},es=function(){function e(t){W(this,e),this.code=t}return J(e,[{key:"runInNewContext",value:function(e){var t=this.code,r=Object.keys(e),n=[];eo(r,n,function(t){return"function"==typeof e[t]});var i=r.map(function(t,r){return e[t]});t=n.reduce(function(t,r){var n=e[r].toString();return/function/.test(n)||(n="function "+n),"var "+r+"="+n+";"+t},"")+t,/(["'])use strict\1/.test(t)||r.includes("arguments")||(t="var arguments = undefined;"+t);var a=(t=t.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/,"")).lastIndexOf(";"),o=a>-1?t.slice(0,a+1)+" return "+t.slice(a+1):" return "+t;return Z(Function,r.concat([o])).apply(void 0,function(e){if(Array.isArray(e))return ee(e)}(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||Q(i)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. 6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())}}]),e}();function el(e,t){try{return ea({path:t,json:e})}catch(e){return[]}}function ec(e,t,r=!0){let n=el(e,t)||[];return r?n.flat(1/0):n}function eu(e,t,r=!1,n=e,i=!0){var a=t;for(let i of Object.keys(e).sort((e,t)=>t.length-e.length))if(t.startsWith(i)){if(i==t){if(r)return e[i];continue}a=t.substring(i.length+1),n=e[i];break}var o=ec(n,a,i);return 0==o.length&&(o=[a.replace(/^.*?\./,"_."),a.replace(/^.*?\./,""),a.replace(/^([^.]+).*?\.\$([\.\[])/,"$1$2"),a.replace(/^.*?\.\$([\.\[])/,"_$1"),a.replace(/^.*?\.\$([\.\[])/,"$$$1"),a.replace(/^[^.]+$/,"_")].filter((e,t,r)=>r.indexOf(e)===t).reduce((e,t)=>
6e.length>0?e:ec(n,t,i),[])),r?o[0]:o}function ed(e,t={},r){return r?`<${r}${Object.entries(t).map(([e,t])=>null!=t&&` ${e}="${t}"`).filter(Boolean).join("")}>${ep(e)}</${r}>`.replace(/^<([a-z0-9][^>]*)><\/[^>]+>$/,"<$1 />"):ep(e)}function ep(e){var t;if(Array.isArray(e))return e.map(ep).join(` 7`).trim();if("string"==typeof e)return e;if(null==e)return"";switch(e.type){case"heading":let{level:r,...n}=e.attrs;return ed(e.content,n,"h"+r);case"text":return(e.marks||[]).reduce((e,t)=>ed(e,t.attrs,{link:"a",bold:"strong",italic:"em",strike:"s",underline:"u"}[t.type]),null==(t=e.text)?void 0:t.replace(/\s+/," "));default:return ed(e.content||e.text,e.attrs,{bulletList:"ul",orderedList:"ol",listItem:"li",horizontalRule:"hr",paragraph:"p",codeBlock:"code",blockquote:"blockquote"}[e.type])}}function eh(e){let t=new e.ownerDocument.defaultView.MutationObserver(e=>{e.forEach(e=>{let t=e.target,r=t.getAttribute("data-embed-src");r&&em(t,r),e.addedNodes&&e.addedNodes.forEach(e=>{1==e.nodeType&&ef(e,!1)})})});return t.observe(e,{attributes:!0,subtree:!0,childList:!0}),t}function ef(e,t=!0){let r=e.querySelectorAll("[data-embed-src]");for(var n=0;n<r.length;n++){let e=r[n];em(e,e.getAttribute("data-embed-src"))}if(t)return eh(e)}function em(e,t){for(var r=e;r;r=r.parentElement)if(!r.parentElement){let e=r.querySelectorAll("script");for(var n=0;n<e.length;n++)if(e[n].getAttribute("src")==t)return!0;"HTML"==r.tagName&&(r=r.querySelector("head")||r);let i=r.ownerDocument.createElement("script");i.setAttribute("type","module"),i.setAttribute("src",t),r.appendChild(i);break}}ea.prototype.vm={Script:es};var eg={};V(eg,{adjustNumbers:()=>eC,cleanCollectionBit:()=>eE,getHumanizedLabel:()=>eO,getLastPathBit:()=>ex,getQualifier:()=>ev,normalizeCollectionScope:()=>ew,parseLimit:()=>ey,parseRange:()=>eb});var ey=e=>{var t;let r=parseInt(null==(t=null==e?void 0:e.match(/\[0:(\d+)\]/))?void 0:t[1],10);return!isNaN(r)&&r>0?String(r):null},eb=e=>{var t;let r=null==(t=null==e?void 0:e.match(/\[([^\]]+)\]/))?void 0:t[1].split(/\s*,\s*/g).filter(Boolean).map(e=>{if(e.match(/^-?\d+$/))return e;let t=e.match(/^(\d+):(\d+)$/);return t&&parseInt(t[1],10)<parseInt(t[2],10)?t[1]+"-"+t[2]:null});return null!=r&&r.every(Boolean)?r.join(","):null},ev=e=>{var t;return null==(t=null==e?void 0:e.match(/(\.\*|\[[^\]]*\])$/))?void 0:t[0]};function eE(e){return e.replace(/(\.?\[[^\]\[]*\]|\.\*)$/g,"")}function ew(e){return eE(e)+".*"}function eC(e,t){return null==e?void 0:e.replace(/(.|^)(\d+)/g,(e,r,n)=>r+(":"==r?n:String(parseInt(n)+t)))}function eO(e,t=2){var r=eE(e).split(/]\.|\.\*\./g).pop().split(/\./g).slice(-3);return(r=r.filter(e=>isNaN(parseInt(e)))).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).slice(-t).join(" ")}function ex(e){return eE(e).split(".").pop()}var ej=["January","February","March","April","May","June","July","August","September","October","November","December"];function eS(e){let t=e.getAttribute("data-path-scope");for(var r=0,n=e;n=n.previousElementSibling;)n.getAttribute("data-path-scope")==t&&r++;return r}function eA(e,t,r,n,i=!0){if(e){var a,o,s,l=e;(null==r?void 0:r.type)=="doc"&&Array.isArray(r.content)&&(r=ep(r)),null!=n&&n.processValue&&(r=null==n?void 0:n.processValue(e,t,r));var c=t.replace("data-path-","");if("data-path-src"==t||"data-path-alt"==t){let t=Array.from(e.children).find(e=>"picture"==e.localName)||e;l="img"==e.localName?e:t.querySelector("img, video")}else if("data-path-href"==t)l=e.querySelector("a")||e.closest("a");else if("data-path-hidden"==t)r=!r||null;else if("data-path"==t||"data-embed-html"==t||"html"==t)c="innerHTML";else if("data-embed-src"==t&&i)em(e,r);else if("data-path-attributes"==t){if(!Array.isArray(r)){let t=(null==(a=e.getAttribute("data-attributes-keys"))?void 0:a.split(",").filter(Boolean))||[];if(!Array.isArray(r))for(var u in r){var d=r[u];eA(e,u,"object"==typeof d&&d?JSON.stringify(d):d,n,i)}for(var p=0;p<t.length;p++)null!=r&&t[p]in r||eA(e,t[p],null,n,i);eA(e,"data-attributes-keys",Object.keys(r||{}).join(","),{},i)}if("FEAAS-EXTERNAL"==e.tagName){let t=String(e.getAttribute("data-path-attributes")||"").slice(0,-1).split(".")[0]||"_";eA(e,"datasources",JSON.stringify({[t]:r}),{},i)}return}
7if("boolean"==typeof r&&"hidden"!==c&&(r=r?"":null),l)if(("innerHTML"==c||"src"==c)&&(null==r||""===r)){var h=String(null!=(s=null!=(o=e.getAttribute("data-path-placeholder")||l[c])?o:l.getAttribute(c))?s:"");"innerHTML"==c?l.innerHTML=h:h?l.setAttribute(c,h):l.removeAttribute(c)}else if(null!=r)if("innerHTML"==c){for(var f,m=String(r),g=l;g.parentElement&&g.localName.match(/^(a|var|strong|em|i|b)$/);)g=g.parentElement;g.localName.match(/p|h\d|button|time|li/)&&(m=m.replace(/<(p|h\d|li|ul)[^>]*?>|<\/(p|h\d|li|ul)[^>]*?>/g," ").trim().replace(/\s+/g," ")),String(g.getAttribute("class")).includes("-inline--time")&&"Invalid Date"!==String(new Date(f=m))&&!isNaN(Number(new Date(f)))&&(m=(e=>{if(!e||"function"!=typeof e.getDay)return;let t=e.getFullYear(),r=ej[e.getMonth()],n=e.getDate();return`${r} ${n}, ${t}`})(new Date(m))),l.innerHTML!=m&&(l.innerHTML=m)}else l.getAttribute(c)!=r&&l.setAttribute(c,r);else l.removeAttribute(c)}}var ek=["data-attributes-keys","data-path-attributes","data-path-scope"];function eP(e,t,r,n,i=!0){if(n||(t=(null==(o=null==r?void 0:r.processData)?void 0:o.call(r,e,t))||t),1==e.nodeType){let n=e.getAttribute("data-path-scope");if(n){let i=eS(e),a=eu(t,n,!1);0==i&&function(e,t){let r=e.getAttribute("data-path-scope");if(null==r)return;var n=eS(e);if(0!=n)return;let i=e.parentNode;if(null!=i){0==t?e.setAttribute("hidden","hidden"):null!=e.getAttribute("hidden")&&e.removeAttribute("hidden");for(var a=n+1,o=e,s=e;s=s.nextElementSibling;)s.getAttribute("data-path-scope")==r&&(a++,o=s);for(var l=a;l<t;l++)i.insertBefore(o.cloneNode(!0),o.nextElementSibling);for(var l=Math.max(1,t);l<a;l++)o=o.previousElementSibling,i.removeChild(o.nextElementSibling)}}(e,(null==(s=null==r?void 0:r.shouldRepeat)?void 0:s.call(r,e,a))===!1?1:a.length),t={...t,[ew(n)]:a[i]}}let o=Array.prototype.slice.call(e.attributes).sort((e,t)=>ek.indexOf(e.name)-ek.indexOf(t.name));for(var a=0;a<o.length;a++){let{name:n,value:s}=o[a];n.startsWith("data-path")&&"data-path-scope"!=n&&eA(e,n,eu(t,s,!0,void 0,"FEAAS-EXTERNAL"!=e.tagName),r,i),"data-embed-src"==n&&eA(e,n,e.getAttribute(n),r,i)}}for(var o,s,l,c,a=0;c=e.childNodes[a++];)eR(c)&&eP(c,t,r,!0,i);return n||null==(l=null==r?void 0:r.onRender)||l.call(r,e,t),e}function eR(e){return 1==e.nodeType}function eD(e,t,r,n,i=!0){let a=(null==(o=null==n?void 0:n.processTemplate)?void 0:o.call(n,e,t,r))||t;if(e.innerHTML=a,e.classList.add("-feaas"),(e.closest(".component.feaas")||e).className.includes("-theme--"))for(var o,s,l=0;s=e.childNodes[l++];)eR(s)&&(s.className=s.className.replace(/(\s|^)-theme--[^\s]+\s*/g,"$1"));return eP(e,r,n,null,i)}function eF(e,t,r,n=!1,i=!0){var a;let o=(null==(a=null==r?void 0:r.processTemplate)?void 0:a.call(r,null,e,t))||e;if("u"<typeof document||n)return eP(eT(o)[0],t,r,null,i).outerHTML;{let e=document.createElement("div");return e.innerHTML=o,eP(e,t,r,null,i),e.innerHTML}}var e_=class{constructor(e,t=1,r){this.ownerDocument={createElement:e=>new e_(e),createDocumentFragment:()=>new e_(null,11)},this.nodeName=e,this.nodeType=t,this.textContent=r,this.attributes=[],this.childNodes=[]}setAttribute(e,t){let r=this.attributes.find(t=>t.name===e);r?r.value=t:this.attributes.push({name:e,value:t})}getAttribute(e){let t=this.attributes.find(t=>t.name===e);return t?t.value:void 0}insertBefore(e,t){if(e.parentNode=this,null===t)this.childNodes.push(e);else{let r=this.childNodes.indexOf(t);-1!==r&&this.childNodes.splice(r,0,e)}}removeAttribute(e){let t=this.attributes.findIndex(t=>t.name===e);-1!==t&&this.attributes.splice(t,1)}appendChild(e){e.parentNode=this,this.childNodes.push(e)}get tagName(){var e;return null==(e=this.nodeName)?void 0:e.toUpperCase()}get localName(){var e;return null==(e=this.nodeName)?void 0:e.toLowerCase()}get innerHTML(){return e$(this.childNodes)}set innerHTML(e){this.childNodes=eT(String(null!=e?e:""))}get outerHTML(){return e$([this])}get children(){return this.childNodes.filter(e=>1==e.nodeType)}closest(e){let t=this;for(;t;){if(eN(e,t))return t;t=t.parentNode}return null}querySelectorAll(e){let t=e.split(/\s*,\s*/),r=[],n=e=>{for(let n of t)if(eN(n,e)){r.push(e);break}for(let t of e.childNodes)n(t)};for(let e of this.childNodes)n(e);return r}querySelector(e){return this.querySelectorAll(e)[0]}findSibling(e,t){if(!this.parentNode)return null;let r=this.parentNode.childNodes,n=r.indexOf(this);if(-1===n)return null;for(let i=n+e;i>=0&&i<r.length;i+=e){let e=r[i];if(!t||1===e.nodeType)return e}return null}removeChild(e){let t=this.childNodes.indexOf(e);if(-1!==t)return this.childNodes.splice(t,1),e.parentNode=void 0,e}get previousSibling(){return this.findSibling(-1)}get nextSibling(){return this.findSibling(1)}get previousElementSibling(){return this.findSibling(-1,!0)}get nextElementSibling(){return this.findSibling(1,!0)}cloneNode(e=!1){let t=new e_(this.nodeName,this.nodeType);if(t.attributes=JSON.parse(JSON.stringify(this.attributes)),this.textContent&&(t.textContent=this.textContent),e)for(let e of this.childNodes){let r=e.cloneNode(!0);t.appendChild(r)}return t}get parentElement(){var e;return(null==(e=this.parentNode)?void 0:e.nodeType)==1?this.parentNode:null}};function eN(e,t){let r=e.match(/([.#]?[\w-]+|\[([\w-]+)(="([^"]*)")?\])/g);if(!r)return!1;for(let e of r)if(e.startsWith("#")){if(t.getAttribute("id")!==e.slice(1))return!1}else if(e.startsWith(".")){if(!(t.getAttribute("class")||"").split(" ").includes(e.slice(1)))return!1}else if(e.startsWith("[")){let r=e.match(/^\[([\w-]+)(="([^"]*)")?\]$/);if(!r)return!1;{let e=r[1],n=r[3],i=t.getAttribute(e);
7if(void 0===n){if(void 0===i)return!1}else if(i!==n)return!1}}else if(t.nodeName!==e)return!1;return!0}function eT(e){var t;let r=[],n=[];for(;e;){let i=e.match(/^<([\w-]+)(\s[^>]*)?>/),a=e.match(/^<\/([\w-]+)>/);if(i){let a=i[1].toLowerCase(),o=(null==(t=(i[2]||"").match(/([\w-]+)(="([^"]*)")?/g))?void 0:t.map(e=>{let[t,r,,n]=e.match(/([\w-]+)(="([^"]*)")?/);return{name:r,value:(n||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}}))||[],s=new e_(a,1);if(s.attributes=o,n.length>0){let e=n[n.length-1];e.childNodes.push(s),s.parentNode=e}else r.push(s);["img","input","br"].includes(a)||n.push(s),e=e.slice(i[0].length)}else if(a)n.pop(),e=e.slice(a[0].length);else{let t=e.indexOf("<"),i=e.slice(0,-1!==t?t:void 0),a=new e_("#text",3);if(a.textContent=i,n.length>0){let e=n[n.length-1];e.childNodes.push(a),a.parentNode=e}else r.push(a);e=e.slice(i.length)}}return r}function e$(e){return e.map(e=>{if(3===e.nodeType)return e.textContent||"";let{nodeName:t,attributes:r}=e,n=r.map(({name:e,value:t})=>` ${e}="${String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}"`).join(""),i=e$(e.childNodes);return["img","input","br"].includes(t)?`<${t}${n} />`:`<${t}${n}>${i}</${t}>`}).join("")}var eI=e=>{if(!e||"string"!=typeof e.url)return!1;for(var t in e)if("body"!=t&&"params"!=t&&"headers"!=t&&"url"!=t&&"method"!==t&&("jsonpath"!=t||"string"!=typeof e[t]))return!1;return!0};function eM(e){let{url:t,headers:r,params:n,method:i,body:a}=eL(e),o,s=r["Content-Type"];"GET"!=i&&"HEAD"!=i&&("application/json"===s&&(o=JSON.stringify(a)),"multipart/form-data"===s&&(o=Object.keys(a).reduce((e,t)=>(e.append(t,a[t]),e),new FormData)),"application/x-www-form-urlencoded"===s&&(o=new URLSearchParams(a)));let l=Object.keys(n).length?`?${new URLSearchParams(n)}`:"";return[`${t}${l}`,{headers:r,body:o,method:i}]}function eL(e){let t={};for(let r in(null==e?void 0:e.headers)||{})e.headers.hasOwnProperty(r)&&(t[r.replace(/^[a-z]|\-[a-z]/g,e=>e.toUpperCase())]=e.headers[r]);return t.Accept||(t.Accept="application/json"),{params:(null==e?void 0:e.params)||{},headers:t,jsonpath:String((null==e?void 0:e.jsonpath)||"$"),method:((null==e?void 0:e.method)||"GET").toUpperCase(),body:(null==e?void 0:e.body)||{},url:String((null==e?void 0:e.url)||"")}}var eU=async(e,t)=>{let r=w(t,e);if(r instanceof Promise)return r;let n=e;r&&(n=eL(r));try{let[e,t]=eM(n),r=await (await eL.fetchImplementation(e,{...t,method:t.method.toLowerCase()})).json();return n.jsonpath&&"$"!=n.jsonpath?ec(r,n.jsonpath):r}catch(e){return{}}};async function eV(e){if(!e)return e;if(eI(e))return eU(e);let t=Object.keys(e),r=await Promise.all(t.map(t=>eI(e[t])?eU(e[t],t):null).filter(Boolean));return t.reduce((t,n)=>({...t,[n]:eI(e[n])?r.shift():e[n]}),{})}eL.clean=function(e){let{params:t,method:r,headers:n,body:i,url:a}=eL(e);var o={url:a},s={...n};return"application/json"===n["Content-Type"]&&delete s["Content-Type"],"application/json"===n.Accept&&delete s.Accept,Object.keys(s).length>0&&(o.headers=s),"GET"!==r&&(o.method=r),"GET"===r||"HEAD"===r||0===Object.keys(i).length||(o.body=i),Object.keys(t).length>0&&(o={...o,params:t}),o},eL.toFetchArguments=eM,eL.fetchOne=eU,eL.fetch=eV,eL.isDataSettings=eI,eL.hasDataSettings=function(e){return!!e&&(eI(e)||Object.values(e).some(eI))},eL.fetchImplementation=(...e)=>fetch(...e);var eB={};function ez(e,t=e=>{}){var r;let n=()=>{var i,a,o=Object.assign(new Promise((t,r)=>{i=r=>{null==e||e(r),t(r)},a=r}),{resolve:i,reject:a,restart:n,first:r});return r=o,o.catch(t),o};return n()}V(eB,{Component:()=>tf,ComponentProps:()=>th,Context:()=>t_,ControlledPromise:()=>ez,DEFAULT_CDN_URL:()=>e2,DOM:()=>B,DataPath:()=>eg,DataScope:()=>z,DataSettings:()=>eL,Element:()=>eW,FEAASComponent:()=>tf,FEAASComponentsProps:()=>th,FEAASContext:()=>t_,FEAASContextProps:()=>tF,FEAASEditor:()=>tP,FEAASEditorProps:()=>tk,FEAASElement:()=>eW,FEAASLoader:()=>tg,FEAASLoaderProps:()=>tm,FEAASPicker:()=>tD,FEAASPickerProps:()=>tR,FEAASStylesheet:()=>tb,FEAASStylesheetProps:()=>ty,InvalidResponse:()=>e0,JSONPath:()=>ea,Loader:()=>tg,MyComponent:()=>eJ,Picker:()=>tD,Stylesheet:()=>tb,Thumbnail:()=>tv,WebComponent:()=>eH,adjustNumbers:()=>eC,autoloadScripts:()=>ef,cleanCollectionBit:()=>eE,clearFetchCache:()=>eX,createStylesheet:()=>tc,customizeDataSettings:()=>w,fetchAndRevalidate:()=>eZ,fetchAndRevalidateComponent:()=>te,fetchAndRevalidateStylesheet:()=>tr,fetchBypassingCache:()=>e3,fetchCache:()=>
7eK,fetchComponent:()=>tt,fetchData:()=>eV,fetchToValidateCache:()=>e1,fetchWithCacheAwareness:()=>eY,findStylesheet:()=>tl,getComponent:()=>D,getComponentSource:()=>e6,getComponentURL:()=>e8,getFetchCache:()=>eQ,getFramePosition:()=>tA,getHumanizedLabel:()=>eO,getLastPathBit:()=>ex,getQualifier:()=>ev,getStylesheetSource:()=>e4,getStylesheetURL:()=>e9,loadScript:()=>em,loadStylesheet:()=>to,loadStylesheetAllowStale:()=>ts,normalizeCollectionScope:()=>ew,observeDOMElement:()=>eh,parseComponentSource:()=>e5,parseLimit:()=>ey,parseRange:()=>eb,parseStylesheetSource:()=>e7,queryObject:()=>ec,queryObjectRaw:()=>el,queryScopes:()=>eu,registerComponent:()=>P,registerDatasource:()=>m,renderComponent:()=>td,renderComponentElement:()=>tu,renderComponentPromise:()=>tp,renderDOMContent:()=>eD,renderDOMElement:()=>eP,renderHTMLContent:()=>eF,renderStylesheet:()=>tn,renderStylesheetPromise:()=>ti,serializeCH1RichText:()=>ep,setDOMAttribute:()=>eA});var eH="u"<typeof HTMLElement?"u">typeof windowJSDOM?windowJSDOM.HTMLElement:class{}:HTMLElement,eW=class extends eH{getProps(e){return{}}constructor(){super(),this.defaultProps={},this.connected=!1,this.refs={},this.descendants=[],this.whenLoaded=ez(e=>{this.payload=e}),this.whenRendered=ez(()=>this.initialized=!0,()=>this.cancelRender()),this.addEventListener("feaasMount",this),this.addEventListener("feaasUnmount",this)}getRoot(){return this}attributeChangedCallback(e,t,r){this.set()}connectedCallback(){this.mount()}disconnectedCallback(){this.unmount()}mount(){try{let e=this.getParent();if(e&&!e.connected||this.connected)return;this.connected=!0,this.log("FEAAS: Mount",this.tagName,this),this.dispatchEventIndirectly(new Event("feaasMount",{bubbles:!0,composed:!0})),this.getElements().map(e=>{var t;return null==(t=e.mount)?void 0:t.call(e)}),this.set()}catch(e){this.onError(e)}}dispatchEventIndirectly(e){this.dispatchEvent(e);let t=this.getParent();t&&!t.contains(this)&&(Object.defineProperty(e,"target",{value:this,writable:!1}),Object.defineProperty(e,"composedPath",{value:()=>[this],writable:!1}),t.handleEvent(e))}isJSONAttribute(e){return!1}log(...e){let t=e[0];("u">typeof location&&null!=location&&location.hostname.startsWith("components-")||localStorage["Sitecore.Components.Debug"])&&console.log(t+" "+e.slice(1).map(e=>e&&"object"==typeof e?"%O":"%s").join(" "),...e.slice(1))}unmount(){this.connected&&(this.log("FEAAS: Unmount",this),this.dispatchEventIndirectly(new Event("feaasUnmount",{bubbles:!0,composed:!0})),this.connected&&this.initialized&&this.render&&this.update(),this.cancelRender(),this.connected=!1,this.initialized&&this.render&&this.update())}getParent(e=!0){for(var t=this;t=t.parentElement||(t.parentNode instanceof ShadowRoot?t.parentNode.host:null);)if(!e||t.tagName.startsWith("FEAAS-"))return t;if("FEAAS-CONTEXT"!=this.tagName)return document.querySelector("feaas-context")}getElements(e=this.getRoot(),t=!0){return Array.from(e.querySelectorAll("*")).map(e=>[!t||e.tagName.startsWith("FEAAS-")?e:null,e.shadowRoot?this.getElements(e.shadowRoot,t):null]).flat().filter(Boolean)}handleEvent(e){let t=e.composedPath()[0];switch(e.type){case"feaasMount":t!=this&&this.nestedCallback(t);break;case"feaasUnmount":t!=this&&this.unnestedCallback(t)}}unnestedCallback(e){let t=this.descendants.indexOf(e);-1!=t&&(this.log("FEAAS: Unnest",this,e),this.descendants.splice(t,1),this.refs[e.getComponentName()]=null,e.refs.parent==this&&(e.refs.parent=null),e.refs.top==this&&(e.refs.top=e.refs.parent))}nestedCallback(e){var t,r;if(-1==this.descendants.indexOf(e)&&(this.descendants.push(e),this.log("FEAAS: Nest",this,e),this.refs[e.getComponentName()]=e,e.refs.top=this,(t=e.refs).parent||(t.parent=this),e.render))for(var n=e.refs.parent;n;n=n.refs.parent)n.render&&((r=e.refs).parentReact||(r.parentReact=n),e.refs.topReact=n)}getComponentName(){return this.tagName.replace("FEAAS-","").toLowerCase()}isReadyToLoad(){return void 0===this.payload&&null==this.getAttribute("hidden")}onError(e,t="uncaught",r=!1){let n=new CustomEvent("feaasError",{bubbles:!0,composed:!0,detail:e});if(this.dispatchEventIndirectly(n),this.whenLoaded.reject(e),!n.defaultPrevented&&!r){this.whenRendered.reject(e);try{this.unmount()}catch(e){}return!0}return!1}shouldUpdateOnLoad(){return!0}async advance(){try{if(void 0===this.payload){if(!this.isReadyToLoad())return;this.payload=null,this.dispatchEventIndirectly(new Event("feaasLoad",{bubbles:!0,composed:!0}));let e=await this.load().catch(e=>{throw this.payload=void 0,e});if(this.whenLoaded.resolve(e),this.onLoad)return}else if(null==this.payload)return;this.flush(),this.whenRendered.resolve(this)}catch(e){this.onError(e)}}flush(){var e,t;if(!this.connected)return;let r=null==(t=null==(e=this.payload)?void 0:e.ReactDOM)?void 0:t.flushSync;r?r(()=>this.update()):this.update()}load(){return Promise.resolve(null)}update(){var e,t,r;if(null==this.payload||!this.render)return;let{React:n,ReactDOM:i,ReactDOMClient:a}=this.payload||{};if(!n)throw Error(`${this.tagName}: React is not present in payload`);
7if(!i)throw Error(`${this.tagName}: ReactDOM is not present in payload`);"false"==this.getAttribute("hydrate")&&this.firstElementChild||(this.refs.topReact||this.forceUpdateReact?this.forceUpdateReact&&this.connected?null==(e=this.forceUpdateReact)||e.call(this):null==(r=null==(t=this.refs.topReact)?void 0:t.forceUpdateReact)||r.call(t):(this.reactRoot||(this.reactRoot=a.createRoot(this.getReactRootElement())),this.reactRoot.render(this.getReactElement())))}invokeReactRendering(){let{React:e,ReactDOM:t}=this.payload||{};if(!this.connected)return null;let r=this.descendants.filter(e=>e.refs.parentReact==this&&e.payload&&e.connected).map((e,t)=>this.getReactElement(e));return this.render({...this.props,children:r},this.payload)}getReactErrorBoundary(e=this,t=e.tagName){if(this.reactErrorBoundary)return this.reactErrorBoundary;let{React:r,ReactDOM:n}=e.payload||{};return this.reactErrorBoundary||(this.reactErrorBoundary=class extends r.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(t,r){console.error(`FEAAS: ${e.tagName} Error:`,t,r),e.onError(t,"react")}render(){if(!this.state.error)return this.props.children}})}getReactElement(e=this,t){let{React:r,ReactDOM:n}=e.payload||{},i=this.getReactErrorBoundary(),a=this.getReactWrapper(e);return r.createElement(i,{key:e.tagName+"-"+e.getUID(),slot:e.getAttribute("slot")},r.createElement(a,null))}getReactWrapper(e=this,t=e.tagName){if(e.reactWrapper)return e.reactWrapper;let{React:r,ReactDOM:n}=e.payload||{};return e.reactWrapper=t=>{if(!e.render)return e.update();{let[t,i]=r.useReducer(e=>e+1,0);return e.forceUpdateReact=i,n.createPortal(r.createElement(r.Fragment,null,e.invokeReactRendering()),e.getReactRootElement())}},Object.assign(e.reactWrapper,{key:e.tagName+"-"+e.getUID(),displayName:t}),e.reactWrapper}getUID(){return this.uid||(this.uid=String(Math.random()))}getShadowRoot(){return this.shadowRoot||this.attachShadow({mode:"open"}),this.shadowRoot}getReactRootElement(){return this.useShadowRoot?this.getShadowRoot():this.getRoot()}set(e){try{for(var t in this.scheduleRender(),this.overrides={...this.overrides,...e},this.props={...this.getProps(),...this.overrides},this.props){let e=this.isJSONAttribute(t),n=this.props[t],i=e?JSON.stringify(n):String(n),a=this.defaultProps[t],o=e?JSON.stringify(a):String(a),s=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),l=this.getAttribute(s);try{var r=e?JSON.stringify(JSON.parse(l)):l}catch(e){var r=null}null==n||i===o?this.removeAttribute(s):("string"==typeof n||"number"==typeof n||"boolean"==typeof n||e)&&r!=i&&this.setAttribute(s,i)}}catch(e){this.whenRendered.reject(e),this.onError(e,"set")}return this}import(e){return import(e)}scheduleRender(){null==this.nextRender&&(this.whenRendered=this.whenRendered.restart()),this.cancelRender(),this.nextRender=requestAnimationFrame(()=>{this.nextRender=null,this.advance().catch(e=>{})})}cancelRender(){cancelAnimationFrame(this.nextRender)}formatURL(e,t){return"string"==typeof e&&e.match(/^\/[^\/]/)?t+e:e}getContextAttribute(e,t=this){for(var r=this;r=r.parentElement||(r.parentNode instanceof ShadowRoot?r.parentNode.host:null);)if(null!=r.getAttribute(e))return r.getAttribute(e);return this.getAttribute(e)}static register(e,t){null==t&&(t="u">typeof window?window:null),t&&!t.customElements.get(e)&&t.customElements.define(e,this)}},eq=class extends eW{load(){return Promise.all([import("https://cdn.skypack.dev/react"),import("https://cdn.skypack.dev/react-dom"),import("https://cdn.skypack.dev/react-dom/client")]).then(([e,t,r])=>({React:e,ReactDOM:t,ReactDOMClient:r}))}render({},{React:e}){return e.createElement(e.Fragment,null)}},eJ=class extends eq{constructor(){super(...arguments),this.useShadowRoot=!0}getProps(){return{counter:parseFloat(this.getAttribute("counter"))}}render({counter:e},{React:t}){let[r,n]=t.useState(0);return t.useEffect(()=>{n(e=>e+1)},[e]),t.createElement(t.Fragment,null,t.createElement("p",null,"Rendering attribute: ",e),t.createElement("p",null,"Triggered updates: ",r))}};eJ.observedAttributes=["counter"];var eG=["initial","check","updated"],eK={};function eX(){eK={}}async function eZ(e,t,r,n,i=eK){return eY({url:e,options:t,validator:r,callback:n,cache:i}
7).then(e1).then(e=>e.response)}async function eY({url:e,options:t,validator:r,callback:n,cache:i},a="initial"){let o=new Date;if(null!=i){var s=eQ(e);if(eG.indexOf(s.phase)>=eG.indexOf(a))var l=s[a];else s.phase=a}let c=await (l||fetch(e,t));if(!l&&s&&(c.ok?s[a].resolve(c):s[a].reject(Error("Fetch failed"))),!c.ok)throw Error("Fetch failed");let u=new Date(c.headers.get("date"))<o||l&&"initial"==a&&("updated"==s.phase||"check"==s.phase);if((null==r?void 0:r(c,u))===!1)throw new e0("Response is not valid");return await (null==n?void 0:n(c,a,u)),{url:e,options:t,isCached:u,response:c,validator:r,callback:n,cache:i}}function eQ(e,t=!1){let r=String(e).replace("?head","");var n=eK[r];return n||t||(n=eK[r]={phase:null,initial:ez(),check:ez(),updated:ez(),final:ez()}),n}var e0=class extends Error{};async function e1(e){let{url:t,isCached:r,options:n,validator:i,response:a,cache:o}=e;if(r){let{response:r}=await eY({url:t+(t.toString().includes("?")?"&":"?")+"head",options:{...n,method:"HEAD",cache:"no-cache"},validator:i,cache:o},"check");if(r.headers.get("last-modified")!=a.headers.get("last-modified"))return e3(e)}return e}async function e3(e){return eY({...e,options:{...e.options,cache:"reload"}},"updated")}var e2="https://feaas.blob.core.windows.net";function e5(e){let t=null==e?void 0:e.match(/^(?:(.*?)\/components)?\/?([^\/]+)\/([^\/]+)(?:\/([^\/]+)(?:\/(published|staged|saved|\d+)(?:\.html?)?)?)?$/);if(t){var[,r,n,i,a,o]=t;return{cdn:r,library:n,component:i,version:a,revision:o}}}function e6(e){if(!e||!e.library||!e.component)throw Error("Component requires `library` and `component` properties");return`${e.cdn&&e.cdn!=e2?`${e.cdn}/components`:""}/${e.library}/${e.component}/${!e.version||"responsive"==e.version&&(!e.revision||"published"==e.revision)?"":e.version}/${!e.revision||"published"==e.revision?"":e.revision}`.replace(/(^\/|\/$|\/\/)(?!.+\/components\/)/g,"")}function e4(e){return`${e.cdn&&e.cdn!=e2?`${e.cdn}/styles/`:""}${e.library}/${!e.revision||"published"==e.revision?"":e.revision}`.replace(/\/$|\/\/(?!.+\/styles\/)/g,"")}function e7(e){let t=null==e?void 0:e.match(/^(?:(.*?)\/styles\/)?([^\/]+)(?:\/(published|staged|saved|\d+)(?:.css)?)?$/);if(t){var[,r,n,i]=t;return{cdn:r,library:n,revision:i}}{let t=e5(e);if(t){var{cdn:r,library:n,revision:i}=t;return null!=i&&i.match(/\d/)&&(i=void 0),{cdn:r,library:n,revision:i}}}}function e8(e){return"string"==typeof e&&(e={src:e}),e="src"in e&&e.src?{...e5(e.src)}:{...e},`${e.cdn||e.hostname||e2}/components/${e.library}/${e.component}/${e.version||"responsive"}/${e.revision||"published"}.html`}function e9(e){if("string"==typeof e&&(e={src:e}),"src"in e){if(String(e.src).includes("v1/files/components/styles"))return e.src;e={...e7(e.src)}}else e={...e};return`${e.cdn||e.hostname||e2}/styles/${e.library}/${"staged"==e.revision?"staged":"saved"==e.revision?"saved":"published"}.css`}async function te(e,t,r=!1){let n=e=>null==e.headers.get("x-ms-meta-versionDeletedAt"),i=e=>e.clone().text().then(t),a=await Promise.all([e.instance&&eY({options:{headers:{Accept:"text/html"},credentials:"omit"},url:e8({...e,version:e.instance}),validator:n}).catch(e=>e),eY({url:e8(e),validator:n}).catch(e=>e)]),o=a.find(e=>e&&"isCached"in e&&e);if(!o||o instanceof Error)throw a.find(e=>e&&e instanceof Error)||Error("Can not fetch component");return a[0]==o&&console.log("Using fork!",a),await i(o.response),r?o:e1({...o,callback:i}).catch(e=>{if(a[0]==o&&(e3({...o,callback:null,validator:null}),console.log("Fork was deleted"),!(a[1]instanceof Error)))return i(a[1].response),e1({...a[1],callback:i});throw e})}async function tt(e){var t;"string"==typeof e&&(e={src:e});let{response:r}=await te(e,e=>{t=e},!0);return{...e,template:t,lastModified:r.headers.get("last-modified")}}async function tr(e,t){return eZ(e9(e),{headers:{Accept:"text/css"},credentials:"omit"},e=>null==e.headers.get("x-ms-meta-deletedAt"),(e,r)=>e.clone().text().then(e=>t(e,r)))}function tn(e,t){return ti(e,t||(t=document.createElement("style"))),t}function ti(e,t){return t||(t=document.createElement("style")),tr(e,(e,r)=>{t.textContent=e}).then(()=>t)}var ta=new WeakSet;function to(e,t){var r,n=tl(e);if(n){if(ta.has(n))return Promise.resolve(n);e=n.getAttribute("data-href")||n.getAttribute("href")}return tr(e,(i,a)=>{"initial"==a&&n||(r||(r=n&&"LINK"!=n.tagName?n:tc(e)),r.textContent=i),null==t||t(i,a)}).then(()=>r||n)}function ts(e){return new Promise((t,r)=>{to(e,t).catch(r)})}function tl(e){let t=e9(e),{library:r}=e7(t),n=`/files/components/styles/${r}.css`;return document.querySelector(`style[data-href="${t}"], 8 link[rel="stylesheet"][href="${t}"], 9 style[data-href*="${n}"], 10 link[rel="stylesheet"][href*="${n}"]`)}function tc(e){let t=e9(e),r=document.createElement("style");return r.setAttribute("data-href",t),document.head.appendChild(r),r}function tu(e,t){let r=document.createElement("div");r.innerHTML=e;let n=document.createDocumentFragment();for(;r.firstChild;)n.appendChild(r.firstChild);return eP(n,t),r}function td(e,t,r=!0){return tp(e,t||(t=document.createElement("div")),r),t}async function tp(e,t,r=!0){return t||(t=document.createElement("div")),t.childNodes.length?eP(t,e.data,e,
10null,r):"template"in e?eD(t,e.template,e.data,e,r):te(e,n=>eD(t,n,e.data,e,r)).then(()=>t)}function th(e){var t,r,n,i,a,o,s,l;let c,u=e.getAttribute("src");if(u){let e=e5(u);if(!e)throw Error(`Could not parse FEAAS Component source: ${u}`);var{cdn:d,library:p,component:h,version:f,revision:m}=e}let g=e.getAttribute("data");if(null!=g&&""!=g)try{c="string"==typeof g?JSON.parse(g):{}}catch(e){console.error(e)}let y=e.getAttribute("fetch");return{data:c||{},cdn:null!=(r=null!=(t=e.getContextAttribute("cdn"))?t:d)?r:e2,library:null!=(n=e.getAttribute("library"))?n:p,component:null!=(i=e.getAttribute("component"))?i:h,version:null!=(o=null!=(a=e.getAttribute("version"))?a:f)?o:"responsive",revision:null!=(l=null!=(s=e.getAttribute("revision"))?s:m)?l:"published",hostname:e.getAttribute("hostname"),template:e.getAttribute("template"),instance:e.getAttribute("instance"),editable:null!=e.getAttribute("editable"),suspended:null!=e.getAttribute("suspended"),lastModified:e.getAttribute("last-modified"),fetch:"false"==y||null==y&&e.hasAttribute("fetch")?[]:null==y||"true"==y?["data","template","stylesheet"]:y.split(/(\s+|\-)+/g).filter(Boolean)}}var tf=class extends eW{setData(e){this.set({data:e})}getProps(){return th(this)}isJSONAttribute(e){return"data"==e}attributeChangedCallback(e,t,r){t!==r&&(("library"==e||"component"==e||"revision"==e||"version"==e)&&(this.payload=void 0,this.alreadyRendered&&this.connected&&(this.needsRefresh=!0,this.needsToFetchTemplate=!0)),super.attributeChangedCallback(e,t,r),"data"==e&&(this.needsRefresh=!0,(this.props.fetch.includes("data")||this.alreadyRendered||!eL.hasDataSettings(this.props.data))&&this.fetchData()))}async fetchData(){this.readyData=void 0,this.whenDataReady=this.whenDataReady.restart();let e=await eL.fetch(this.props.data),t=this.alreadyRendered;await this.whenDataReady.resolve(e),t&&this.advance()}getEditor(){var e;return null==(e=document.querySelector("feaas-context"))?void 0:e.refs.editor}constructor(){super(),this.readyData={},this.whenDataReady=ez(e=>this.readyData=e,e=>this.onError(e)),this.defaultProps={cdn:e2,revision:"published",version:"responsive",editable:!1,suspended:!1,data:{}},this.onLoad=e=>{this.payload=e,this.advance()},this.getAttribute("data"),this.getAttribute("data")||this.whenDataReady.resolve({}),this.addEventListener("click",()=>{this.props.editable&&this.edit()})}edit(){let e=this.getEditor();if(null!=e&&e.setTarget(this))return e.open(),!0}getOriginal(){let e=this.getAttribute("data-path-scope");if(e){for(var t=this;(t=t.previousElementSibling)&&t.getAttribute("data-path-scope")==e;)var r=t;return r}}isReadyToLoad(){return super.isReadyToLoad()&&null!=this.props.library&&null!=this.props.component&&null!=this.props.version}async load(){var e;if(this.getOriginal())return;let t=()=>{null!=this.payload&&(r||this.readyData&&this.onLoad(this.payload))};if(this.props.fetch.includes("stylesheet"))var r=ts({...this.props}).then(()=>{r=null,t()});if(this.props.fetch.includes("template")||this.needsToFetchTemplate){this.needsToFetchTemplate=!1;var n=te(this.props,e=>{this.payload=e,this.needsRefresh=!0,t()})}else this.payload=null!=(e=this.props.template)?e:this.innerHTML;return Promise.all([r,this.whenDataReady.then(()=>t()),n]).then(()=>this.payload)}flush(){this.readyData&&super.flush()}update(){if(this.alreadyRendered=!0,!(!this.props.fetch.includes("data")&&!this.props.fetch.includes("template")&&this.firstElementChild&&!this.needsRefresh))if(Array.from(this.children).filter(e=>"BR"!=e.tagName).length>0&&!this.needsRefresh)eP(this,this.readyData);else{if(this.needsRefresh=!1,this.getOriginal())return;eD(this,this.payload,this.readyData)}}};function tm(e){return{opacity:null!=e&&e.getAttribute("opacity")?parseFloat(null==e?void 0:e.getAttribute("opacity")):1,hidden:(null==e?void 0:e.getAttribute("hidden"))!=null}}tf.observedAttributes=["library","component","version","revision","hostname","cdn","template","data","instance","editable","with-stylesheet","fetch"],tf.register("feaas-component");var tg=class extends eW{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return tm(this)}attributeChangedCallback(e,t,r){if(t!==r)return"hidden"==e&&(this.style.setProperty("display","block","important"),this.style.setProperty("transition","opacity 0.3s","important"),r?(this.style.setProperty("opacity","0","important"),this.style.pointerEvents="none"):(this.style.setProperty("opacity","1","important"),this.style.pointerEvents="all")),super.attributeChangedCallback(e,t,r)}
10connectedCallback(){this.payload=null,super.connectedCallback(),this.attributeChangedCallback("hidden",this.getAttribute("hidden"),this.getAttribute("hidden")),this.stylesheet=document.createElement("style"),this.stylesheet.textContent=` 11 #loader { 12 position: absolute; 13 top: 0; 14 left: 0; 15 right: 0; 16 bottom: 0; 17 display: flex; 18 align-items: center; 19 justify-content: center; 20 background: #f6f6ff; 21 z-index: 1000; 22 } 23 @keyframes loader-circular-track { 24 0% { 25 stroke-dasharray: 1, 400; 26 stroke-dashoffset: 0; 27 } 28 50% { 29 stroke-dasharray: 400, 400; 30 stroke-dashoffset: -100; 31 } 32 100% { 33 stroke-dasharray: 400, 400; 34 stroke-dashoffset: -260; 35 } 36 } 37 38 @keyframes loader-circular-spinner { 39 0% { 40 transform: rotate(0deg); 41 } 42 43 100% { 44 transform: rotate(360deg); 45 } 46 } 47 #loader .spinner { 48 width: 48px; 49 height: 48px; 50 } 51 `,this.loader=document.createElement("div"),this.loader.id="loader",this.loader.innerHTML=` 52 <div class="spinner"> 53 <svg 54 viewBox="0 0 100 100" 55 style=" 56 animation: 2s linear 0s infinite normal none running loader-circular-spinner; 57 display: block; 58 width: 48px; 59 height: 48px; 60 " 61 > 62 <circle fill="transparent" cx="50" cy="50" r="42" stroke="rgba(0,0,0,0.1)" stroke-width="10px"></circle> 63 <circle 64 fill="transparent" 65 stroke="#5548D9" 66 cx="50" 67 cy="50" 68 r="42" 69 stroke-width="10px" 70 stroke-linecap="round" 71 style="animation: 1.5s linear 0s infinite normal none running loader-circular-track" 72 ></circle> 73 </svg> 74 </div>`,this.getRoot().appendChild(this.stylesheet),this.getRoot().appendChild(this.loader)}update(){this.loader.style.opacity=String(this.props.opacity)}};function ty(e){var t,r,n,i;let a=e.getAttribute("src");if(a)var{cdn:o,library:s,revision:l}=e7(a);return{library:null==e?void 0:e.getContextAttribute("library"),revision:null!=(r=null!=(t=null==e?void 0:e.getAttribute("revision"))?t:l)?r:"published",cdn:null!=(i=null!=(n=null==e?void 0:e.getContextAttribute("cdn"))?n:null==e?void 0:e.getContextAttribute("hostname"))?i:e2}}tg.observedAttributes=["hidden","opacity"],tg.register("feaas-loader");var tb=class extends eW{constructor(){super(...arguments),this.onLoad=e=>{this.payload=e,this.advance()}}getProps(){return ty(this)}isReadyToLoad(){return null!=this.props.library&&null!=this.props.revision&&null!=this.props.cdn}load(){return to(this.props,this.onLoad)}};tb.register("feaas-stylesheet");var tv={};V(tv,{convertBase64toBlob:()=>tE,generate:()=>tj,get:()=>tO,getVersionForThumbnail:()=>tC,load:()=>tx,responseToImage:()=>tw,upload:()=>tS});var tE=e=>fetch(e).then(e=>e.blob()),tw=e=>e.blob().then(e=>new Promise((t,r)=>{let n=new Image;n.onerror=r,n.onload=()=>{t(n)},n.src=URL.createObjectURL(e)}));async function tC(e){return e.versions.length||await e.versions.fetch(),e.getVersionForWidth(800)}async function tO(e,t,r){try{if(!e.isNew)return await tx(e,t,r)}catch(r){e.sdk.log(`FEAAS: Thumbnail ${e.id}, version: ${(null==t?void 0:t.id)||"responsive"}, status: generating ${status}, reason: ${r}`)}let n=await tj(e,t);return null==r||r(n,!1),n&&!e.isNew&&tE(n.src).then(r=>tS(e,t,r)),n}async function tx(e,t,r){var n;let i=t?t.getThumbnailURL():e.getThumbnailURL(),a=e.library.stylesheet,o=new Date(Math.max(Number(e.modifiedAt),Number(a.modifiedAt)));return e.sdk.log(`FEAAS: Thumbnail ${e.id}/${(null==t?void 0:t.id)||"responsive"}, loading`),await eZ(i,{},(e,t)=>{let i=2e3>Math.abs(Number(new Date(e.headers.get("x-ms-meta-componentRenderedAt")))-Number(o));return t&&!i&&tw(e).then(e=>{n=e,r(e,t)}),i},(i,a,o)=>{e.sdk.log(`FEAAS: Thumbnail ${e.id}/${(null==t?void 0:t.id)||"responsive"}, status: ${a}`),tw(i).then(e=>{n=e,r(e,o)})},null),n}async function tj(e,t,r){var n,i,a,o,s,l;let c,u=t||(e.isNew?null:await tC(e));if(!u||u.isViewEmpty())return null;let d=r||e.library.stylesheets.first,{datasources:p}=e.sdk;return await (n=u.classList,i=d.getBreakpointForWidth(800,u.getBreakpoints()),a=u.view,o=p.reduce((e,t)=>
74Object.assign(e,{[t.id]:t.sample}),{}),s=d.css,l=e.sdk,(c=document.createElement("iframe")).style.position="absolute",c.style.top="-2000px",c.style.left="-2000px",c.style.width=i.props.minWidth+"px",c.style.height="720px",c.style.zIndex="100011",document.body.appendChild(c),new Promise((e,t)=>{let r=document.createElement("script");r.onerror=t,r.src=l.frontend+"/assets/html2canvas.js",r.onload=()=>{var r;((null==(r=c.contentWindow.document.fonts)?void 0:r.ready)||Promise.resolve()).then(function(){return c.contentWindow.html2canvas(p,{scale:Math.max(1.1,1e3/Math.min(1401,Math.max(320,i.props.minWidth))),width:Math.min(1401,Math.max(320,i.props.minWidth)),height:Math.max(1,Math.min(2e3,p.offsetHeight)),windowWidth:i.props.minWidth||i.props.maxWidth+"px",windowHeight:1e3,proxy:l.backend+"/proxy/media",backgroundColor:"#ffffff"}).then(r=>{let n=r.toDataURL("image/jpeg",.6);c.parentElement.removeChild(c);let i=new Image;i.onload=()=>{e(i)},i.onerror=t,i.src=n})})},c.contentWindow.document.head.appendChild(r);let u=c.contentWindow.document.createElement("style");u.textContent=` 75 ${s} 76 body, html { padding: 0; margin: 0; overflow: hidden } 77 `;let d=c.contentWindow.document.createElement("style");d.textContent=` 78 body, html { padding: 0; margin: 0; overflow: hidden } 79 `,c.contentWindow.document.head.appendChild(u),c.contentWindow.document.head.appendChild(d);let p=td({template:a,data:o},null,!1);p.classList.add(...n,"-feaas--preview","-emulate--"+i.details.slug),c.contentWindow.document.body.appendChild(p)}))}async function tS(e,t,r){let n=t?t.getThumbnailURL():e.getThumbnailURL(),i=new Date(Math.max(Number(e.modifiedAt),Number(e.library.stylesheet.modifiedAt)));try{await e.sdk.uploadBlob("thumbnails",n.split(/\/thumbnails\//)[1],r,{headers:{"x-ms-blob-content-type":"image/jpg","x-ms-blob-cache-control":"public,max-age=31536000,immutable","x-ms-meta-versionId":t?t.id:null,"x-ms-meta-versionRevision":t?t.revision.toString():null,"x-ms-meta-componentId":e.id,"x-ms-meta-componentRenderedAt":i.toUTCString(),"x-ms-meta-componentModifiedAt":e.modifiedAt.toUTCString(),"x-ms-meta-componentCreatedAt":e.createdAt.toUTCString(),"x-ms-meta-modifiedAt":e.modifiedAt.toUTCString()}}),fetch(n,{cache:"no-cache"}).then(()=>{e.sdk.log("FEAAS: Thumbnail uploaded",n)})}catch(t){e.sdk.log("FEAAS: Thumbnail failed to upload",n,t)}return n}function tA(e){let t=[];if(e){let r=e.ownerDocument.defaultView,n,i;for(;r!==window.top;){n=r.parent;for(let e=0;e<n.frames.length;e++)if(n.frames[e]===r){for(let e of n.document.getElementsByTagName("iframe"))if(e.contentWindow===r){i=e.getBoundingClientRect();let r=e.contentWindow.getComputedStyle(e);t.push({left:i.left+parseInt(r.borderLeftWidth),top:i.top+parseInt(r.borderTopWidth)})}r=n;break}}}return t.reduce((e,t)=>({left:e.left+t.left,top:e.top+t.top}),{left:0,top:0})}function tk(e){var t;return{context:HTMLElement,frontend:null==e?void 0:e.getContextAttribute("frontend"),src:null!=(t=null==e?void 0:e.getAttribute("src"))?t:"/editor.js",library:null==e?void 0:e.getAttribute("library"),component:null==e?void 0:e.getAttribute("component"),version:null==e?void 0:e.getAttribute("version"),instance:null==e?void 0:e.getAttribute("instance"),forked:null==e?void 0:e.getAttribute("forked"),revision:(null==e?void 0:e.getAttribute("revision"))||"saved",hidden:(null==e?void 0:e.getAttribute("hidden"))!=null,for:null==e?void 0:e.getAttribute("for"),state:(null==e?void 0:e.getAttribute("state"))||"idle",changed:(null==e?void 0:e.getAttribute("changed"))!=null}}"u">typeof window&&(window.FEAASReactElement=eq,null!=window.FEAASLoading||(window.FEAASLoading=Promise.resolve()));var tP=class extends eW{constructor(){super(...arguments),this.framePoint={top:0,left:0},this.wrapperRect={top:0,left:0,width:0,height:0},this.bodyRect={top:0,left:0,width:0,height:0},this.defaultProps={hidden:!1},this.setTarget=(e,t={component:e.getAttribute("component"),version:e.getAttribute("version"),revision:e.getAttribute("revision"),instance:e.getAttribute("instance")})=>{if(!this.closing&&(!this.target||null==e))return this.set(t),this.target=e,!0},this.onChromeMeasureElement=(e,t=e.getBoundingClientRect())=>e.ownerDocument==document?{left:t.left-this.bodyRect.left,top:t.top-this.bodyRect.top,width:t.width,height:t.height}:{left:t.left+this.framePoint.left-this.bodyRect.left,top:t.top+this.framePoint.top-this.bodyRect.top,width:t.width,height:t.height},this.onBeforeMeasure=e=>{e.memoized.focusable&&(this.framePoint=tA(e.memoized.focusable)),this.chrome&&(this.wrapperRect=this.chrome.positionable.getBoundingClientRect(),this.bodyRect=this.chrome.positionable.ownerDocument.body.parentElement.getBoundingClientRect())},this.onMeasure=()=>{}
79,this.onPosition=({focusable:e,root:t})=>{!this.chrome||this.props.hidden||(e?(this.chrome.wrapper.style.width=e.width+32+"px",this.chrome.wrapper.style.height=e.height+16+64+"px",this.chrome.wrapper.style.left=e.left-16+"px",this.chrome.wrapper.style.top=e.top-64+"px",this.chrome.wrapper.style.opacity="1",this.chrome.absolute=this.querySelector(".ui.overlays"),this.chrome.absolute&&(this.chrome.absolute.style.left=t.left+"px",this.chrome.absolute.style.top=t.top+"px")):(this.chrome.wrapper.style.opacity="0",this.chrome.wrapper.style.left="-1000px",this.chrome.wrapper.style.top="-1000px"))},this.onWindowMessage=e=>{var t;switch(null==(t=e.data)?void 0:t.type){case"feaasEdit":let r=this.getPlaceholder();this.setTarget(r.editable,e.data)&&(this.loader=r.loader,document.body.appendChild(r.clipper),this.editedUID=e.data.id,this.setPlaceholder(),this.open());break;case"feaasMeasurements":this.measurements=e.data.measurements,this.props.hidden||this.setPlaceholder()}},this.onContentChange=()=>{this.setAttribute("changed","changed"),requestAnimationFrame(()=>{this.setIframeComponentContent()})},this.onClose=()=>{var e;this.setAttribute("hidden","hidden"),this.placeholder&&(this.placeholder.positionable.style.opacity="0",this.placeholder.positionable.style.pointerEvents="none"),this.chrome&&(this.chrome.wrapper.style.opacity="0"),null!=(e=this.target)&&e.parentNode&&(this.target.outerHTML=this.target.outerHTML),this.setTarget(null,{component:null,version:null,instance:null,revision:null}),this.setEditorContext({isFocused:!1})},this.onVersionStateChange=(e,t)=>
79{this.versionContext=e,this.setVersionContext=t},this.onEditorStateChange=(e,t)=>{this.editorContext=e,this.setEditorContext=t,e.editor&&"loading"==this.props.state&&!this.props.hidden&&(this.setAttribute("state","ready"),this.ownerDocument.fonts.ready.then(()=>setTimeout(()=>{this.setReadyState(),this.setIframeComponentContent()},100)))}}getProps(){return tk(this)}getReactRootElement(){return this.reactRootElement||(this.reactRootElement=document.createElement("div"),this.getRoot().appendChild(this.reactRootElement)),this.reactRootElement}showLoader(){this.loader||(this.loader=document.createElement("feaas-loader"),this.loader.setAttribute("opacity","0.6"),this.loader.style.zIndex="1000",this.target.appendChild(this.loader),"FEAAS-COMPONENT"==this.target.tagName&&(this.target.style.position="relative"))}hideLoader(){this.loader&&(this.loader.setAttribute("hidden","hidden"),"FEAAS-COMPONENT"==this.target.tagName&&(this.target.style.position="relative",this.target.style.position=""))}load(){return import(this.formatURL(this.props.src,this.props.frontend))}connectedCallback(){super.connectedCallback(),window.addEventListener("message",this.onWindowMessage)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.onWindowMessage)}setIframe(e){this.iframe=e}setIframeComponentContent(){this.placeholder&&this.iframe&&this.placeholder.editable.innerHTML&&this.iframe.contentWindow.postMessage({type:"feaasUpdate",id:this.editedUID,content:this.placeholder.editable.innerHTML})}setPlaceholder(){if(!this.iframe)return;let e=this.iframe.clientWidth,t=this.iframe.clientHeight,r=this.iframe.getBoundingClientRect(),n=this.getPlaceholder(),i=document.body.getBoundingClientRect(),a=this.measurements[this.editedUID];a&&(Object.assign(n.clipper.style,{position:"absolute",top:r.top+this.iframe.clientTop-i.top+"px",left:r.left+this.iframe.clientLeft-i.left+"px",width:e+"px",height:t+"px",pointerEvents:"none",zIndex:1,overflow:"hidden"}),Object.assign(n.positionable.style,{position:"absolute",top:a.top+"px",left:a.left+"px",width:a.width+"px",zIndex:2,transition:"opacity 0.4s",pointerEvents:this.props.hidden?"none":"all"}),Object.assign(n.loader.style,{position:"absolute",top:a.top+"px",left:a.left+"px",width:a.width+"px",height:a.height+"px",filter:"opacity(0.6)",zIndex:3,pointerEvents:"none"}),document.dispatchEvent(new Event("feaasRefresh",{bubbles:!0})))}getPlaceholder(){return this.placeholder||(this.placeholder={clipper:document.createElement("div"),positionable:document.createElement("div"),editable:Object.assign(document.createElement("div"),{className:"-feaas"}),loader:document.createElement("feaas-loader")},this.placeholder.clipper.appendChild(this.placeholder.positionable),this.placeholder.positionable.appendChild(this.placeholder.editable),this.placeholder.clipper.appendChild(this.placeholder.loader)),this.placeholder}attributeChangedCallback(e,t,r){t!==r&&("hidden"==e&&(this.style.setProperty("display","block","important"),this.style.setProperty("transition","opacity 0.3s","important"),r?(this.style.setProperty("opacity","0","important"),this.style.pointerEvents="none"):(this.style.setProperty("opacity","1","important"),this.style.pointerEvents="all")),super.attributeChangedCallback(e,t,r))}open(){clearTimeout(this.closing),this.removeAttribute("hidden"),this.removeAttribute("changed"),this.setLoadingState()}shouldFork(e){return null==e.forkOriginId&&null!=this.props.instance}cleanup(){var e;this.placeholder&&(null==(e=this.placeholder.clipper)||e.remove(),this.placeholder=null)}close(){console.log("Editor is not ready")}unfork(){console.log("Editor is not ready")}discard(){console.log("Editor is not ready")}save(){console.log("Editor is not ready")}setVersionContext(e){console.log("Editor is not ready")}setEditorContext(e){console.log("Editor is not ready")}setLoadingState(){this.showLoader(),this.setAttribute("state","loading")}setReadyState(){this.hideLoader(),this.setEditorContext({activeVersionId:this.component.versions[0].id}),this.setAttribute("state","ready")}
vendor: 4,622 bytes, line 79
79render({children:e,component:t,version:r,instance:n},{Editor:i,VersionStatusList:a,VersionStatusButton:o,Version:s,VersionMenu:l,EditorUIUndo:c,EditorUIMode:u,React:{useEffect:d,useMemo:p,useState:h,useContext:f},Chakra:{HStack:m,Box:g,Button:y,MenuItem:b},Chrome:v,ReactDOM:E,useSDK:w,useLibrary:C,useSlots:O,useModelObserver:x,ConfirmationContext:j,VersionContext:S}){if(!this.payload)return;let{React:A}=this.payload,k=w(),P=C(),[R,D]=h(),{setConfirm:F}=f(j),_=n||r;R&&(this.component=R),d(()=>{if(this.props.hidden)return;let e=P.components.getItem(t).clone();return e.versions.search({ids:[r,n].filter(Boolean),componentIds:[t]}).then(t=>{e.versions.setItems(t);let i=e.findVersion(n,["staged","published"]),a=e.findVersion(r,["staged","published"]);if(i)i.deletedAt?(i.getDraft().changeAndNotify(a.toProperties()).restore(),console.error("FEAAS Editor: Restoring fork")):(console.error("FEAAS Editor: Pre-forked"),this.setAttribute("forked",i.id));else if(this.removeAttribute("forked"),this.shouldFork(a)){console.error("FEAAS Editor: Forking");let e=a.fork(n).id;this.setAttribute("instance",e)}else console.error("FEAAS Editor: Regular");D(e)}),()=>{this.closing=setTimeout(()=>{this.closing=null,this.cleanup(),D(null)},400)}},[r,this.props.hidden]);let N=x(null==R?void 0:R.versions,[]).filter(e=>e.id==_),T=N[0];T&&!this.props.hidden&&(this.version=T),d(()=>(this.unfork=()=>{F({title:"Reverting component customizations",button:"Discard",body:"Are you sure to reset component to its original state? All changes will be lost.",action:()=>{let e=R.findVersion(r,["staged","published"]);R.findVersion(n).unstage().unpublish().changeAndNotify(e.toProperties()),R.saveVersions(!1),this.setVersionContext({needsWrite:!0}),this.removeAttribute("forked"),requestAnimationFrame(this.onClose)}})},this.discard=()=>{this.props.changed&&(R.findVersion(_).revert(),R.saveVersions(!1),this.setVersionContext({needsWrite:!0}))},this.close=()=>{F({title:"Component has unsaved changes",button:"Discard",body:"Are you sure to close editor and discard changes?",bypass:!this.props.changed,action:()=>{this.discard(),requestAnimationFrame(this.onClose)}})},this.save=()=>{F({bypass:!!this.props.forked,title:"Customizing component",button:"Save",body:"Changes to the component will only be visible on that page. Changes to component done in Component Builder will not be reflected here. It will be possible to revert the customization.",action:()=>{var e,t;null==(t=null==(e=R.findVersion(_).commitData({view:this.editorContext.editor.getData({rootName:_}),model:""}))?void 0:e.stage())||t.publish(),this.removeAttribute("changed"),this.setAttribute("forked",_),R.saveVersions(!1)}})},()=>{delete this.unfork,delete this.discard,delete this.save,delete this.editorContext,delete this.versionContext,delete this.setEditorContext,delete this.setVersionContext}),[R]);let $=p(()=>this.target,[R]);return p(()=>R&&O(e,({picker:e,children:t})=>A.createElement(g,{ref:e=>{this.chrome=e?{positionable:e,wrapper:e.querySelector(".editor-chrome"),absolute:this.querySelector(".ui.overlays")}:null}},A.createElement(g,{className:"editor-wrapper",position:"absolute",left:0,top:0},A.createElement(i,{datasources:k.datasources,sdk:k,library:P,component:R,versions:N,context:{isAutosaveEnabled:!1,onChromeMeasure:this.onMeasure,onChromeBeforeMeasure:this.onBeforeMeasure,onChromeMeasureElement:this.onChromeMeasureElement,onChromePosition:this.onPosition,onContentChange:this.onContentChange}},{exports:this.onEditorStateChange,after:t,chrome:({editor:e})=>e&&A.createElement(v,null),children:({isArchivedDisplayed:e,editor:t,status:r})=>A.createElement(g,{position:"absolute",left:0,top:0,className:"editor-chrome",p:4,boxShadow:"2xl",pointerEvents:"none",opacity:0,transition:"opacity 0.3s"},A.createElement(g,{left:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),A.createElement(g,{right:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),A.createElement(g,{top:0,height:"16",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),A.createElement(g,{bottom:0,height:"4",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),T&&A.createElement(s,{version:T,node:$,ignoreBreakpoints:!0,deps:[this.props.forked,this.props.changed]},{exports:this.onVersionStateChange,left:A.createElement(m,{justifyContent:"space-between"},A.createElement(c,{size:"sm",editor:"ready"==r?t:null}),A.createElement(u,{size:"sm"})),middle:(e,t)=>
79[!1],right:A.createElement(A.Fragment,null,A.createElement(y,{variant:"secondary",size:"sm",onClick:this.close},"Close"),A.createElement(y,{variant:"primary",size:"sm",onClick:this.save,isDisabled:!this.props.changed},this.props.changed?this.props.forked?"Save":"Save customization":"Up to date"),A.createElement(l,{isDisabled:!this.props.forked&&!this.props.changed},A.createElement(b,{onClick:this.unfork,isDisabled:!this.props.forked},"Unfork"),A.createElement(b,{onClick:this.discard,isDisabled:!this.props.changed},"Discard")))}))})))),[T,this.props.forked,this.props.changed])}isReadyToLoad(){return null!=this.props.component&&null!=this.props.version&&!this.props.hidden}};function tR(e){var t,r;return{part:(null==e?void 0:e.getAttribute("part"))||"picker",slot:(null==e?void 0:e.getAttribute("part"))||"picker",mode:null==e?void 0:e.getAttribute("mode"),dialog:null==e?void 0:e.getAttribute("dialog"),placeholder:(null==e?void 0:e.getAttribute("placeholder"))||"No theme",frontend:null!=(t=null==e?void 0:e.getContextAttribute("frontend"))?t:"https://components.sitecorecloud.io",src:null!=(r=null==e?void 0:e.getAttribute("src"))?r:"/picker.js",hidden:(null==e?void 0:e.getAttribute("hidden"))!=null,variant:null==e?void 0:e.getAttribute("variant"),context:void 0,onClose:void 0,setAttribute:void 0,getAttribute:void 0}}tP.observedAttributes=["library","component","version","revision","hidden","state","changed","forked"],tP.register("feaas-editor");var tD=class extends eW{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return tR(this)}load(){return this.import(this.formatURL(this.props.src,this.props.frontend))}connectedCallback(){this.setAttribute("feaas-role","ui"),super.connectedCallback()}render({placeholder:e,context:t,mode:r,dialog:n,children:i,variant:a},{Picker:o,React:s,useContext:l,EnvironmentContext:c,useLibrary:u,useSDK:d,BYOC:p}){let[h,f]=s.useReducer(e=>e+1,0),m=d(),g=l(c),y=u("collections"),b=u("components"),v=d("datasources"),E=u(),w=(null==(x=null==(O=null==E?void 0:E.stylesheets)?void 0:O.first)?void 0:x.rules)||(null==(j=null==E?void 0:E.stylesheet)?void 0:j.styles),C=d("renderingHost.expandedComponents");var O,x,j,S=null==t?void 0:t.getAttribute("data");if(S)try{S=JSON.parse(S)}catch(e){}if(t)var A=m.ExternalComponent.getDefinition(t),k=A&&!A.getConfiguration(t),P=(null==A?void 0:A.type)=="feaas"?b.find(e=>e.id==t.getAttribute("component")):null==p?void 0:p.getComponent(String(t.getAttribute("data-external-id")));return s.createElement(o,{cdn:g.cdn,rules:w,collections:y,themeContext:t,placeholder:e,embed:P,externalComponents:C,datasources:v,data:S,versionId:null==t?void 0:t.getAttribute("version"),mode:r||(k?"library":P?"context":null),setAttribute:(e,t,r)=>{"data"==t&&r&&(r=JSON.stringify(r)),this.props.setAttribute(e,t,r),f()},getAttribute:(e,r)=>null==t?void 0:t.getAttribute(r),dialog:n,context:t,variant:a,onModeChange:(e,t)=>
79{this.set({mode:e,dialog:t})}},i)}};function tF(e){var t,r,n,i,a;return{library:null==e?void 0:e.getAttribute("library"),src:null!=(t=null==e?void 0:e.getAttribute("src"))?t:"/context.js",environment:null!=(r=null==e?void 0:e.getAttribute("environment"))?r:void 0,frontend:null!=(n=null==e?void 0:e.getAttribute("frontend"))?n:"https://components.sitecorecloud.io",backend:null!=(i=null==e?void 0:e.getAttribute("backend"))?i:"https://components.sitecorecloud.io/api",cdn:null!=(a=null==e?void 0:e.getAttribute("cdn"))?a:"https://feaas.blob.core.windows.net",auth:null,isolate:(null==e?void 0:e.getAttribute("isolate"))==null||(null==e?void 0:e.getAttribute("isolate"))=="true"}}tD.observedAttributes=["library","mode","frontend","src","hidden","variant","dialog"],tD.register("feaas-picker");var t_=class extends eW{constructor(){super(...arguments),this.defaultProps={isolate:!0},this.onStatusChange=(e,t)=>{"ready"==e&&(this.whenSDKReady.resolve(t),this.dispatchEvent(new CustomEvent("feaasReady",{bubbles:!0,composed:!0,detail:t})))},this.whenSDKReady=ez(e=>{this.sdk=e})}getProps(){return tF(this)}load(){return this.import(this.formatURL(this.props.src,this.props.frontend))}isReadyToLoad(){return super.isReadyToLoad()&&null!=this.props.library}getTheme(e){return e}getRoot(){return"false"===this.getAttribute("isolate")?this:this.shadowRoot||this.attachShadow({mode:"open"})}getReactRootElement(){return this.reactRootElement||(this.reactRootElement=document.createElement("div"),this.getRoot().appendChild(this.reactRootElement)),this.reactRootElement}connectedCallback(){this.setAttribute("feaas-role","ui"),Array.from(this.children).forEach(e=>{this.getRoot().appendChild(e)}),document.addEventListener("feaasMount",this),document.addEventListener("feaasUnmount",this),super.connectedCallback()}disconnectedCallback(){document.removeEventListener("feaasMount",this),document.removeEventListener("feaasUnmount",this),super.disconnectedCallback()}getPortalRoot(){return this.getRoot()}render({children:e,library:t},{AppContext:r,Chakra:{Button:n,Tooltip:i},React:a}){let o={containerRef:{current:this.getPortalRoot()}};return i.defaultProps={hasArrow:!0,placement:"top",portalProps:o},a.createElement(r,{environment:this.props.environment,backend:this.props.backend,libraryId:this.props.library,container:this.getRoot(),auth:this.props.auth,getTheme:this.getTheme,onStatusChange:this.onStatusChange,modalProps:{portalProps:o},chakraProps:{resetScope:':where([feaas-role="ui"])',cssVarsRoot:":host",resetCSS:!0,toastOptions:{portalProps:o}}},e)}};t_.observedAttributes=["library","component","version","revision","hostname","template"],t_.register("feaas-context"),t_.prototype.clientside=eB;var tN=class extends eW{load(){return Promise.all([import("https://cdn.skypack.dev/react-dom/client")]).then(([e])=>({React:I,ReactDOM:L,ReactDOMClient:e}))}connectedCallback(){this._setAttribute||(this._setAttribute=this.setAttribute,this.setAttribute=function(e,t){let r=this.getAttribute(t);this._setAttribute(e,t),this.attributeChangedCallback(e,r,t)}),super.connectedCallback()}update(){var e;if(!(!(null!=(e=D(this.getComponentName()))&&e.component)&&"false"==this.getAttribute("hydrate")))return super.update()}render(e,{React:t}){var r;let n=null==(r=D(this.getComponentName()))?void 0:r.component;return n||console.warn(`FEAASExternal: \`${this.getComponentName()}\` is not registered`),t.createElement(t.Fragment,null,n&&t.createElement(n,{componentName:this.getComponentName(),...e}))}getComponentName(){return this.getAttribute("data-external-id")}getProps(){return F(((e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[i(r)]:e[r]}),{}))(Array.from(this.attributes).reduce((e,{name:t,value:r})=>("data-external-id"==t&&(t="component-name"),Object.assign(e,{[t]:r})),{}))).merged}static Preview(e){var t;let r=(null==e?void 0:e.src)||("u">typeof window?null==(t=window.location.search.match(/feaasSrc=([^&]+)/))?void 0:t[1]:null);return r?I.createElement(tM,{src:r,...e}):null}static linkComponents(e){return()=>e.map(e=>null)}};tN.registered=k,tN.registerComponent=P,tN.setRegistrationCallback=_,tN.getComponent=
79D,tN.register("feaas-external");var{linkComponents:tT}=tN,t$={},tI=M,tM=function({data:e,lastModified:t,fetchedData:r,renderNode:n,...a}){var o,s,l;let c;"template"in a&&a.template&&(c=(o=a.template,s=r||e||{},eT(o).map(e=>eP(e,s,void 0))).map((e,t)=>(function e(t,r,n){var a;if(3===t.nodeType)return t.textContent;let o=Array.from(t.childNodes).map((t,n)=>e(t,r,n)),s={};for(let e=0;e<t.attributes.length;e++){let{name:r,value:n}=t.attributes[e];"style"==r?s[r]=String(n||"").trim().split(/\s*;\s*/).reduce((e,t)=>{let[r,n]=t.split(":");return{...e,[i(r)]:n}},{}):"class"==r?s.className=n:s[r]=n}let l=null==r?void 0:r(t,s),c=(null==l?void 0:l[0])||t.nodeName.toLowerCase();"style"==c&&(s.dangerouslySetInnerHTML={__html:o.join(` 80`)});let u=Object.assign({key:n,suppressHydrationWarning:!0},(null==l?void 0:l[1])||s),d=(null==(a=null==l?void 0:l[1])?void 0:a.children)||o;return I.createElement(c,u,["img","br","input","style"].includes(c)?null:d)})(e,(e,t)=>{if(n){let r=null==n?void 0:n(e,t);if(null!=r&&"type"in r)return[r.type,r.props];t={...t,...r}}if(t$[e.localName])return[t$[e.localName],t];if("feaas-external"==e.localName){let e={};for(var r in t)e["data-external-id"==r?"componentName":i(r)]=t[r];return[M,e]}},t))),"src"in a&&(a={...e5(a.src),...a});let u=null==(l=a.fetch)||!0===l?["template","stylesheet","data"]:[].concat(l||[]),d=u.includes("data")?e:u.includes("template")?r||e:null;return I.createElement(I.Fragment,null,"preload"in a&&!1,I.createElement("feaas-component",{class:"-feaas",...a,"last-modified":t?String(t):null,fetch:null==a.fetch?a.fetch:[].concat(a.fetch).join(" "),suppressHydrationWarning:!0,template:null,data:"string"==typeof d?d:d?JSON.stringify(d):null},c))}},69470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(10857),i=r(48512);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},72390:(e,t,r)=>{"use strict";r.d(t,{Form:()=>C});var n={};r.r(n),r.d(n,{mZ:()=>h,dX:()=>p,u2:()=>f});var i=r(12115),a=r(23171),o=r(38945),s=r(42787),l=r(82169),c=r(2665);let u={form:(0,c.wV)(`${c.DS}:form`),layout:(0,c.wV)(`${c.DS}:layout`),dictionary:(0,c.wV)(`${c.DS}:dictionary`),editing:(0,c.wV)(`${c.DS}:editing`),sitemap:(0,c.wV)(`${c.DS}:sitemap`),multisite:(0,c.wV)(`${c.DS}:multisite`),robots:(0,c.wV)(`${c.DS}:robots`),redirects:(0,c.wV)(`${c.DS}:redirects`),personalize:(0,c.wV)(`${c.DS}:personalize`),locale:(0,c.wV)(`${c.DS}:locale`),errorpages:(0,c.wV)(`${c.DS}:errorpages`)},{UU:d}=s,p=async(e,t,r)=>{if(!e)return u.form(`${d.MV_001}. Form was not able to render.`),"";let n=((e,t,r=s.Ty)=>`${((e=s.Ty)=>(0,l.l)(e))(r)}/v1/forms/publisher/${t}?sitecoreContextId=${e}`)(e,t,r);try{u.form(`Fetching form data from ${n}`);let e=await fetch(n,{method:"GET",cache:"no-cache"});if(200!==e.status)throw Error(`Failed to fetch form data. ${d.CONTACT_SUPPORT}`);let t=await e.text();return u.form(`Form data fetch response: ${t}`),t}catch(e){throw u.form(`Form '${t}' was not able to render. ${d.CONTACT_SUPPORT}`,e),e}},h=e=>{let t=e.querySelectorAll("script");t&&Array.from(t).forEach(e=>{var t;let r=document.createElement("script");Array.from(e.attributes).forEach(e=>{r.setAttribute(e.name,e.value)}),r.text=e.text,null==(t=null==e?void 0:e.parentNode)||t.replaceChild(r,e)})},f=(e,t)=>{e.addEventListener("form:engage",e=>{let{formId:r,name:n}=e.detail;r&&n&&(u.form("Sending form event",r,n),(0,o.Zd)(r,n,(null==t?void 0:t.replace(/-/g,""))||""))})};var m=r(7532),g=r(60563);let{UU:y}=s,{mZ:b,dX:v,u2:E}=n,{S5:w}=a,C=e=>{var t,r,n,a,o;let{params:s,rendering:l}=e,c=null==s?void 0:s.RenderingIdentifier,[u,d]=(0,i.useState)(!1),[p,h]=(0,i.useState)(""),f=(0,m.useSitecore)(),C=(0,i.useRef)(null),O=f.page.mode.isEditing;return((0,i.useEffect)(()=>{var e,t,r,n;if(!p){let i=null==(t=null==(e=f.api)?void 0:e.edge)?void 0:t.clientContextId;if(!i)return void console.warn(`${y.MV_006}. Form cannot be loaded properly on the client`);v(i,s.FormId,null==(n=null==(r=f.api)?void 0:r.edge)?void 0:n.edgeUrl).then(h).catch(()=>{O&&console.error(`Failed to load form with id ${s.FormId}. Check debug logs for content-sdk:form for more details. ${y.CONTACT_SUPPORT}`),d(!0)})}},[p,O,s.FormId,null==(r=null==(t=f.api)?void 0:t.edge)?void 0:r.clientContextId,null==(a=null==(n=f.api)?void 0:n.edge)?void 0:a.edgeUrl]),(0,i.useEffect)(()=>{p&&C.current&&(C.current.innerHTML=p,b(C.current),O||w()||E(C.current,l.uid))},[p,O,l.uid]),O&&u)?i.createElement(g.ErrorComponent,{message:"There was a problem loading this section"}):i.createElement("div",{ref:C,className:null==(o=s.styles)?void 0:o.trimEnd(),id:c||void 0})}},73321:(e,t,r)=>{"use strict";var n=r(74645);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},74352:(e,t,r)=>{"use strict";r.d(t,{ClientEditingChromesUpdate:()=>a});var n=r(4132),i=r(12115);let a=()=>((0,i.useEffect)(()=>{(0,n.Cx)()&&(0,n.sx)()},[]),i.createElement(i.Fragment,null))},76899:(e,t,r)=>{"use strict";
80Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(12115),i=n.useLayoutEffect,a=n.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},80172:(e,t,r)=>{"use strict";r.d(t,{i8:()=>i,n_:()=>o});let n=JSON.parse('{"UU":"@sitecore-content-sdk/events","rE":"2.1.0"}'),i=n.rE,a=n.UU,o=`${a} ${i}`},80695:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FEaaSComponent:()=>o,FEaaSWrapper:()=>s});var n=r(12115),i=r(67886),a=r(89433);let o=e=>{var t,r,o,s,l,c,u,d,p;let h=(null==(t=e.params)?void 0:t.ComponentRevision)||e.revisionFallback;if(!e.template&&(!e.params||!e.params.LibraryId||!e.params.ComponentId||!e.params.ComponentVersion||!e.params.ComponentHostName||!h))return null;let f=Object.assign(Object.assign({},e.fetchedData),{_:(0,a.q)(null!=(r=e.fields)?r:{})});return n.createElement(i.uA,{data:f,template:e.template,cdn:null==(o=e.params)?void 0:o.ComponentHostName,library:null!=(l=null==(s=e.params)?void 0:s.LibraryId)?l:"",version:null==(c=e.params)?void 0:c.ComponentVersion,component:null!=(d=null==(u=e.params)?void 0:u.ComponentId)?d:"",instance:null==(p=e.params)?void 0:p.ComponentInstanceId,revision:h,fetch:[]})},s=e=>{var t,r;let i=`component feaas ${null==(t=e.params)?void 0:t.styles}`.trimEnd(),a=null==(r=e.params)?void 0:r.RenderingIdentifier;return n.createElement("div",{className:i,id:a||void 0},n.createElement("div",{className:"component-content"},n.createElement(o,Object.assign({},e))))}},82169:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});let n=e=>e.endsWith("/")?e.slice(0,-1):e},82633:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});var n=r(12115),i=r(92242),a=r(60917),o=r(4132);let s=({rendering:e,placeholderName:t,children:r,componentRuntime:s})=>{let l=({kind:t,id:r,placeholderName:n})=>{var l;let c=n?"placeholder":"rendering",u={type:"text/sitecore",chrometype:c,className:"scpm",kind:t};if(t===a.mV.Open){if("placeholder"===c&&n){let t="";for(let a of Object.keys(null!=(l=e.placeholders)?l:{})){if(n===a){t=r?`${n}_${r}`:`${n}_${o.fF}`;break}if((0,i.Np)(a)&&(0,i.jz)(a).test(n)){t=r?`${a}_${r}`:`${a}_${o.fF}`;break}}u.id=t}else u.id=r;"rendering"===c&&s&&(u["data-csdk-component-runtime"]=s)}return u};return n.createElement(n.Fragment,null,n.createElement("code",Object.assign({},l({kind:a.mV.Open,id:e.uid,placeholderName:t}))),r,n.createElement("code",Object.assign({},l({kind:a.mV.Close,placeholderName:t}))))}},83508:(e,t,r)=>{"use strict";r.d(t,{DesignLibraryErrorBoundary:()=>a});var n=r(12115),i=r(28739);class a extends n.Component{static getDerivedStateFromError(){return{hasError:!0}}componentDidUpdate(e){e.renderKey!==this.props.renderKey&&this.setState({hasError:!1})}componentDidCatch(e){(0,i.hO)(this.props.uid,e,i.yq.Render)}render(){return this.state.hasError?n.createElement("div",null,"Error during component rendering"):n.createElement(n.Suspense,null,this.props.children)}constructor(){super(...arguments),this.state={hasError:!1}}}},84148:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(t[i]!==r[i])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;0!=i--;){var n,i,a,o=a[i];if(("_owner"!==o||!t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},85420:(e,t,r)=>{"use strict";r.d(t,{Eu:()=>o,k6:()=>s,tS:()=>l});let n=/\/([-~]{1})\/media\//i;function i(e){if(/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith("//"))try{return{url:e.startsWith("//")?new URL(e,"http://_"):new URL(e),relative:!1}}catch(e){}
80return{url:new URL(e,"http://__sitecore_content_sdk_media__/"),relative:!0}}function a(e,t){return t?`${e.pathname}${e.search}${e.hash}`:e.toString()}let o=(e,t=n)=>{let{url:r,relative:o}=i(e),s=t.exec(r.pathname);return s&&s.length>1&&(r.pathname=r.pathname.replace(t,`/${s[1]}/jssmedia/`)),a(r,o)},s=(e,t,r=n)=>{var s;let l;if(!t||0===Object.keys(t).length)return e;let{url:c,relative:u}=i(o(e,r)),d=(e=>{let{rev:t,db:r,la:n,vs:i,ts:a,ttc:o,tt:s,hash:l}=e;return{rev:t,db:r,la:n,vs:i,ts:a,ttc:o,tt:s,hash:l}})((s=c.searchParams,l={},s.forEach((e,t)=>{l[t]=e}),l)),p={};for(let[e,r]of Object.entries(t))null!=r&&""!==r&&(p[e]=String(r));for(let[e,t]of(Object.entries(d).forEach(([e,t])=>{null!=t&&""!==t&&(p[e]=t)}),c.search="",Object.entries(p)))c.searchParams.set(e,t);return a(c,u)},l=(e,t,r,n)=>t.map(t=>{let i=Object.assign(Object.assign({},r),t),a=i.w||i.mw;return a?`${s(e,i,n)} ${a}w`:null}).filter(e=>e).join(", ")},88010:(e,t,r)=>{let n;var i=r(41463);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==i&&"env"in i&&(e=i.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),n=!1,t.destroy=()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(47567)(t);let{formatters:a}=e.exports;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},88490:(e,t,r)=>{"use strict";r.d(t,{ComponentPropsContext:()=>o,ComponentPropsReactContext:()=>i,useComponentProps:()=>a});var n=r(12115);let i=(0,n.createContext)({});function a(e){if(e)return(0,n.useContext)(i)[e]}let o=e=>{let{children:t,value:r}=e;return n.createElement(i.Provider,{value:r},t)}},89433:(e,t,r)=>{"use strict";r.d(t,{B:()=>i,q:()=>a});var n=r(92242);let i=e=>{if(e.class){if(e.className){let t=e.className;t+=` ${e.class}`,e.className=t}else e.className=e.class;delete e.class}},a=e=>{let t={};return Object.entries(e).reduce((t,[r])=>(t[r]=(0,n.GR)(e,r),t),t)}},90366:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});var n=r(12115);let i=e=>{let t=e.rendering&&e.rendering.componentName?e.rendering.componentName:"Unnamed Component";e.errorOverride||console.log(`Component props for unimplemented '${t}' component`,e);let r=e.errorOverride||"Content SDK component is missing React implementation. See the developer console for more information.";return n.createElement("div",{style:{background:"darkorange",outline:"5px solid orange",padding:"10px",color:"white",maxWidth:"500px"}},n.createElement("h2",null,t),n.createElement("p",null,r))};i.displayName="MissingComponent"},92242:(e,t,r)=>{"use strict";function n(e){if(null!=e){if("string"==typeof e)return e;if("object"==typeof e){let t=e.Value;if(t&&"object"==typeof t&&null!==t&&"value"in t){let e=t.value;if("string"==typeof e)return e}return"string"==typeof e.value?e.value:void 0}}}function i(e,t,r){if(!e||!t)return r;let n=e[t];return n&&void 0!==n.value?n.value:e.fields&&e.fields[t]&&void 0!==e.fields[t].value?e.fields[t].value:r}r.d(t,{GR:()=>i,JE:()=>s,Np:()=>o,jz:()=>a,tX:()=>n});let a=e=>RegExp(`^${e.replace(/\{\*\}+/i,"\\d+")}$`),o=e=>-1!==e.indexOf("{*}");function s(e){if(!e)return!0;let t=e=>"string"==typeof e?"0001-01-01T00:00:00Z"===e:!("function"==typeof(null==e?void 0:e.getMonth)&&!isNaN(null==e?void 0:e.getMonth())),r=e=>null==e||("object"==typeof e?!e.src&&!e.src&&!e.href&&t(e):"number"!=typeof e&&"boolean"!=typeof e&&(!e||t(e)));return r(void 0!==e.value?e.value:e)}},92389:(e,t,r)=>{"use strict";r.d(t,{DesignLibraryPreviewEvents:()=>v,DesignLibraryVariantGenerationEvents:()=>E});var n=r(12115),i=r(50237),a=r(24231),o=r(36489),s=r(11597),l=r(7532);let{vv:c,_X:u,RL:d,$A:p,hO:h}=a,{mv:f,sI:m,$u:g}=i,y=o.b,b=s.c,v=e=>{let{designLibraryStatus:t,component:r}=e;return(0,n.useEffect)(()=>
80{if(!(null==r?void 0:r.uid))return;g(f(t,r.uid,!0));let e=m(r,e=>{y({uid:e.uid,rendering:e})});return()=>{e&&e()}},[r,t]),n.createElement(n.Fragment,null)},E=e=>{var t;let{designLibraryStatus:r,component:i,importMap:a,componentInitError:o,generatedComponentData:s}=e,{api:v}=(0,l.useSitecore)(),E=null==(t=null==v?void 0:v.edge)?void 0:t.edgeUrl;return(0,n.useEffect)(()=>{var e;if(!(null==i?void 0:i.uid))return;g(f(r,i.uid,!0));let t=m(i,e=>{y({uid:e.uid,rendering:e,generatedComponentData:s})}),n=u(i,(e,t)=>{b({uid:i.uid,args:t},e,E)});return o?h(i.uid,o.message,o.type):(g(d(i.uid,a)),g(c(i.uid,i.fields,i.params)),(null==(e=null==s?void 0:s.styles)?void 0:e.content)&&p(s.styles.content)),()=>{t&&t(),n&&n()}},[i,r,a,o,s,E]),n.createElement(n.Fragment,null)}},93389:(e,t,r)=>{"use strict";let n;r.d(t,{r:()=>l,g:()=>c});var i=r(2665),a=r(42787);let o=i.Ay.init;async function s(e){var t;for(let r of(o(`Initializing ${e.size} plugins`),e.values())){if(r.dependencies){for(let t of r.dependencies)if(!e.has(t))throw Error(a.UU.IE_001(r.name,t));o(`All required dependencies for "${r.name}" are present`)}await (null==(t=r.init)?void 0:t.call(r)),o(`Successfully initialized "${r.name}"`)}o(`Successfully initialized ${e.size} plugins`)}function l(){if(!n)throw Error(a.UU.IE_002);return n}async function c(e){i.Ay.init("Initializing Content SDK with params:",e);let{config:t,plugins:r}=e,l=function(e){var t;let{contextId:r,siteName:n,edgeUrl:i}=e;if(!r||0===r.trim().length)throw Error(a.UU.MV_001);
80if(!n||0===n.trim().length)throw Error(a.UU.MV_002);if(void 0!==i)try{new URL(i)}catch(e){throw Error(a.UU.IV_001)}return o("Configuration is valid"),Object.assign(Object.assign({},e),{edgeUrl:null!=(t=null==i?void 0:i.trim())?t:a.Ty})}(t);for(let e of(0===r.length&&i.Ay.init("No plugins provided to the plugins array"),n={config:l,plugins:new Map,readyPromise:null},r))n.plugins.set(e.name,e);i.Ay.init(`Registered ${n.plugins.size} plugins`),n.readyPromise=s(n.plugins),await n.readyPromise,i.Ay.init("Content SDK initialization complete")}},93701:(e,t,r)=>{"use strict";r.d(t,{S5:()=>o});var n,i=/bot|crawl|http|lighthouse|scan|search|spider/i,a=r(44491);let o=()=>{var e;let t;return!!(0,a.k)("sc_bot")||"string"==typeof(t=e=navigator.userAgent)&&""!==t&&(function(){if(n instanceof RegExp)return n;try{n=RegExp(" daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<!cam)scan|24x7|;\\s\\w+;$|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\b\\w+\\.ai|\\bbw/|\\bdlc\\b|\\bort/|\\bperl\\b|\\btime/|\\||^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[\\w\\-]+/[\\w]+$|^[^ ]{50,}$|^\\d+\\b|^\\W|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^\\w+/\\d\\.\\d\\s\\([\\w@]+\\)$|^active|^ad muncher|^amaya|^apache/|^avsdevicesdk/|^azure|^biglotron|^blackbox exporter|^bot|^clamav[ /]|^claude-code/|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^exodusmovement|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\((?:compatible;)?(?:\\s?[\\w\\d-.]+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^ps_daily/|^python|^rank|^read|^reed|^remove\\.bg/|^rest|^rss|^snapchat|^sora |^space bison|^stape/|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|abuse|advisor|agent\\b|analyzer|archive|ask jeeves/teoma|attracta|audit|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|collapsify\\b|convertify|cookiehubverify/|crawl|cursor/|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|exaleadcloudview|feed|fetcher|firephp|foregenix|functionize|grab|hardenize\\b|headless|hotjar|httrack|hubspot marketing grader|ibisbrowser|infrawatch|insight|inspect|iplabel|java(?!;)|library|linkcheck|linktiger|mail\\.ru/|manager|manus-user/|marketgoo/|measure|monitor\\b|neustar wpm|node\\b|nutch|offbyone|openvas|optimize|pageburst|pagespeed|parser|phantomjs|pingdom|playwright|powermarks|preview|proxy|ptst[ /]\\d|readable/|retriever|rexx;|rigor|rss\\b|scrape|securityheaders|selenium|server|silktide|sindup/|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|testlocally|tools|torrent|transcoder|upday/|url|validator|virtuoso|wappalyzer|watchtowr|webglance|webkit2png|whatcms/|xtate/","i")}catch(e){n=i}return n})().test(e)}},95413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return c}});let n=r(53887),i=r(12590),a=r(55762),o=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c(e,t){var r,c;let u,d,p,{src:h,sizes:f,unoptimized:m=!1,priority:g=!1,preload:y=!1,loading:b,className:v,quality:E,width:w,height:C,fill:O=!1,style:x,overrideSrc:j,onLoad:S,onLoadingComplete:A,placeholder:k="empty",blurDataURL:P,fetchPriority:R,decoding:D="async",layout:F,objectFit:_,objectPosition:N,lazyBoundary:T,lazyRoot:$,...I}=e,{imgConf:M,showAltText:L,blurComplete:U,defaultLoader:V}=t,B=M||a.imageConfigDefault;if("allSizes"in B)u=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t),n=null==(r=B.qualities)?void 0:r.sort((e,t)=>
80e-t);u={...B,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===V)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let z=I.loader||V;delete I.loader,delete I.srcSet;let H="__next_img_default"in z;if(H){if("custom"===u.loader)throw Object.defineProperty(Error(`Image with src "${h}" is missing "loader" prop. 81Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=z;z=t=>{let{config:r,...n}=t;return e(n)}}if(F){"fill"===F&&(O=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[F];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[F];t&&!f&&(f=t)}let W="",q=l(w),J=l(C);if((c=h)&&"object"==typeof c&&(s(c)||void 0!==c.src)){let e=s(h)?h.default:h;if(!e.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(d=e.blurWidth,p=e.blurHeight,P=P||e.blurDataURL,W=e.src,!O)if(q||J){if(q&&!J){let t=q/e.width;J=Math.round(e.height*t)}else if(!q&&J){let t=J/e.height;q=Math.round(e.width*t)}}else q=e.width,J=e.height}let G=!g&&!y&&("lazy"===b||void 0===b);(!(h="string"==typeof h?h:W)||h.startsWith("data:")||h.startsWith("blob:"))&&(m=!0,G=!1),u.unoptimized&&(m=!0),H&&!u.dangerouslyAllowSVG&&h.split("?",1)[0].endsWith(".svg")&&(m=!0);let K=l(E),X=Object.assign(O?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:N}:{},L?{}:{color:"transparent"},x),Z=U||"empty"===k?null:"blur"===k?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:q,heightInt:J,blurWidth:d,blurHeight:p,blurDataURL:P||"",objectFit:X.objectFit})}")`:`url("${k}")`,Y=o.includes(X.objectFit)?"fill"===X.objectFit?"100% 100%":"cover":X.objectFit,Q=Z?{backgroundSize:Y,backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Z}:{},ee=function(e){let{config:t,src:r,unoptimized:i,width:a,quality:o,sizes:s,loader:l}=e;if(i){if(r.startsWith("/")&&!r.startsWith("//")){let e=(0,n.getDeploymentId)();if(r.includes("/_next/static/immutable")&&!(0,n.getAssetToken)())e=void 0;else if(e){let t=r.indexOf("?");
81if(-1!==t){let n=new URLSearchParams(r.slice(t+1));n.get("dpl")||(n.append("dpl",e),r=r.slice(0,t)+"?"+n.toString())}else r+=`?dpl=${e}`}}return{src:r,srcSet:void 0,sizes:void 0}}let{widths:c,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,a,s),d=c.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:c.map((e,n)=>`${l({config:t,src:r,quality:o,width:e})} ${"w"===u?e:n+1}${u}`).join(", "),src:l({config:t,src:r,quality:o,width:c[d]})}}({config:u,src:h,unoptimized:m,width:q,quality:K,sizes:f,loader:z}),et=G?"lazy":b;return{props:{...I,loading:et,fetchPriority:R,width:q,height:J,decoding:D,className:v,style:{...X,...Q},sizes:ee.sizes,srcSet:ee.srcSet,src:j||ee.src},meta:{unoptimized:m,preload:y||g,placeholder:k,fill:O}}}},97651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return u},getImageProps:function(){return c}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(73623),o=r(95413),s=r(38437),l=a._(r(36095));function c(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=s.Image},98500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return v}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(66388),o=r(95155),s=a._(r(12115)),l=r(20091),c=r(22909),u=r(21172),d=r(10857),p=r(70127),h=r(74616),f=r(24972),m=r(69470),g=r(77565);function y(e){var t;let n,i,a,[y,v]=(0,s.useOptimistic)(f.IDLE_LINK_STATUS),E=(0,s.useRef)(null),{href:w,as:C,children:O,prefetch:x=null,passHref:j,replace:S,shallow:A,scroll:k,onClick:P,onMouseEnter:R,onTouchStart:D,legacyBehavior:F=!1,onNavigate:_,transitionTypes:N,ref:T,unstable_dynamicOnHover:$,...I}=e;n=O,F&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let M=s.default.useContext(c.AppRouterContext),L=!1!==x,U=!1===x?"none":!0===x?"full":"auto",V="none"!==U?"auto"===U?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,B="string"==typeof(t=C||w)?t:(0,l.formatUrl)(t);if(F){if((null==n?void 0:n.$$typeof)===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=s.default.Children.only(n)}let z=F?i&&"object"==typeof i&&i.ref:T,H,W=s.default.useCallback(e=>(null!==M&&(E.current=(0,f.mountLinkInstance)(e,B,M,V,L,v,H)),()=>{E.current&&((0,f.unmountLinkForCurrentNavigation)(E.current),E.current=null),(0,f.unmountPrefetchableInstance)(e)}),[L,B,M,V,v,H]),q={ref:(0,u.useMergedRef)(W,z),onClick(e){F||"function"!=typeof P||P(e),F&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),!M||e.defaultPrevented||function(e,t,n,i,a,o,l){let c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"none";{let u,{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(t)){i&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:p}=r(70156);s.default.startTransition(()=>{p(t,i?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,l,c)})}}(e,B,E,S,k,_,N,U)},onMouseEnter(e){F||"function"!=typeof R||R(e),F&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),M&&L&&(0,f.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){F||"function"!=typeof D||D(e),F&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),M&&L&&(0,f.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(B)?q.href=B:F&&!j&&("a"!==i.type||"href"in i.props)||(q.href=(0,p.addBasePath)(B)),a=F?s.default.cloneElement(i,q):(0,o.jsx)("a",{...I,...q,children:n}),(0,o.jsx)(b.Provider,{value:y,children:a})}let b=(0,s.createContext)(f.IDLE_LINK_STATUS),v=()=>(0,s.useContext)(b);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
81dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99570:(e,t,r)=>{"use strict";r.d(t,{withEditorChromes:()=>a});var n=r(12115),i=r(4132);let a=e=>{let t=t=>{let r=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{if(r.current){r.current=!1;return}(0,i.sx)()}),n.createElement(e,Object.assign({},t))};return t.displayName=e.displayName||e.name||"Component",t}},99740:(e,t,r)=>{"use strict";r.d(t,{Link:()=>p});var n=r(12115),i=r(98500),a=r.n(i),o=r(56737),s=r(5889),l=r(41463),c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let u=["as","onNavigate","passHref","prefetch","replace","scroll","shallow"],d=/^\/.*\.\w+$/,p=(0,n.forwardRef)((e,t)=>{let r=(0,s.useRouter)(),{field:i,editable:p=!0,children:h,internalLinkMatcher:f=/^\//g,showLinkTextWithChildrenPresent:m,renderChildrenWhenEmpty:g}=e,y=c(e,["field","editable","children","internalLinkMatcher","showLinkTextWithChildrenPresent","renderChildrenWhenEmpty"]);if(!i||!i.value&&!i.href&&!i.metadata){if(g&&h){let e=Object.assign({},y);for(let t of u)delete e[t];return n.createElement("a",Object.assign({},e,{ref:t}),h)}return null}let b=i.href?i:i.value,{href:v,querystring:E,anchor:w}=b||{},C=p&&i.metadata;if(v&&!C){let i=m||!h?b.text||b.href:null,o=f.test(v),s=d.test(v);if(o&&!s)return n.createElement(a(),Object.assign({href:{pathname:v,query:E,hash:w},key:"link",title:b.title,target:b.target,className:b.class},y,{locale:!r&&void 0,ref:t},l.env.TEST?{"data-nextjs-link":!0,"data-nextjs-prefetch":e.prefetch,"data-nextjs-locale":!r&&void 0}:{}),i,h)}let O=function(e){let t=Object.assign({},e);for(let e of[...u,"internalLinkMatcher"])delete t[e];return t}(e);return n.createElement(o.Link,Object.assign({},O,{ref:t},l.env.TEST?{"data-react-link":!0}:{}))});p.displayName="NextLink"},99759:(e,t,r)=>{"use strict";r.d(t,{G:()=>i,n:()=>a});var n=r(12115);let i=e=>{let t=e.tag||"span";return n.createElement(t,Object.assign({},e,{suppressHydrationWarning:!0}),"[No text in field]")},a=e=>n.createElement("img",Object.assign({},e,{suppressContentEditableWarning:!0,alt:"",src:'data:image/svg+xml,%3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 240 240" style="enable-background:new 0 0 240 240;" xml:space="preserve"%3E%3Cstyle type="text/css"%3E .st0%7Bfill:none;%7D .st1%7Bfill:%23969696;%7D .st2%7Bfill:%23FFFFFF;%7D .st3%7Bfill:%23FFFFFF;stroke:%23FFFFFF;stroke-width:0.75;stroke-miterlimit:10;%7D%0A%3C/style%3E%3Cg%3E%3Crect class="st0" width="240" height="240"/%3E%3Cg%3E%3Cg%3E%3Crect x="20" y="20" class="st1" width="200" height="200"/%3E%3C/g%3E%3Cg%3E%3Ccircle class="st2" cx="174" cy="67" r="14"/%3E%3Cpath class="st2" d="M174,54c7.17,0,13,5.83,13,13s-5.83,13-13,13s-13-5.83-13-13S166.83,54,174,54 M174,52 c-8.28,0-15,6.72-15,15s6.72,15,15,15s15-6.72,15-15S182.28,52,174,52L174,52z"/%3E%3C/g%3E%3Cpolyline class="st3" points="29.5,179.25 81.32,122.25 95.41,137.75 137.23,91.75 209.5,179.75 "/%3E%3C/g%3E%3C/g%3E%3C/svg%3E',className:`scEmptyImage ${e.className||""}`,style:{minWidth:"48px",minHeight:"48px",maxWidth:"400px",maxHeight:"400px",cursor:"pointer"}}))}}]);
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.