1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4062:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Context=void 0;let n=r(9535);class i{constructor(e){this.props=e,this.isInitialized=!1,this.sdks={},this.sdkPromises={},this.sdkErrors={},this.getSDK=e=>this.sdkPromises[e]?this.sdkPromises[e].then(t=>this.sdkErrors[e]&&Promise.reject(this.sdkErrors[e])||Promise.resolve(t)):Promise.reject(`Unknown SDK '${String(e)}'`),this.sitecoreEdgeUrl=e.sitecoreEdgeUrl,this.sitecoreEdgeContextId=e.sitecoreEdgeContextId,this.siteName=e.siteName,this.pageState=n.LayoutServicePageState.Normal}init(e={}){if(!this.isInitialized)for(let t of(this.isInitialized=!0,e.siteName&&(this.siteName=e.siteName),e.pageState&&(this.pageState=e.pageState),Object.keys(this.props.sdks)))this.initSDK(t)}initSDK(e){this.sdkPromises[e]=new Promise(t=>{this.props.sdks[e].init(this).then(()=>{this.sdks[e]=this.props.sdks[e].sdk,t(this.sdks[e])}).catch(r=>{this.sdkErrors[e]=r,t(void 0)})})}}t.Context=i},8790:function(e,t,r){"use strict";t._=void 0;var n=r(4062);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n.Context}})},4153:function(e,t,r){"use strict";r.d(t,{YM:function(){return c},bu:function(){return a},uW:function(){return u}});var n=r(7294),i=r(2835),o=r(9081),s=r(4351);let a="BYOCComponent",l=e=>{var t;return n.createElement("div",null,"A rendering error occurred: ",null===(t=e.error)||void 0===t?void 0:t.message,".")};class c extends n.Component{constructor(e){super(e),this.state={}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){this.setState({error:e})}render(){var e,t,r;let a=this.props;if(this.state.error)return this.props.errorComponent?n.createElement(this.props.errorComponent,{error:this.state.error}):n.createElement(l,{error:this.state.error});let{ComponentName:c}=a.params||{};if(!c){let e={errorOverride:"BYOC: The ComponentName for this rendering is missing"};return a.missingComponentComponent?n.createElement(this.props.missingComponentComponent,Object.assign({},e)):n.createElement(o.V,Object.assign({},e))}let u={rendering:{componentName:c},errorOverride:"BYOC: This component was not registered."},d=this.props.missingComponentComponent?n.createElement(this.props.missingComponentComponent,Object.assign({},u)):n.createElement(o.V,Object.assign({},u)),p=this.props.errorComponent,h={};if(null===(e=a.params)||void 0===e?void 0:e.ComponentProps)try{h=null!==(t=JSON.parse(a.params.ComponentProps))&&void 0!==t?t:{}}catch(e){return console.error(`Parsing props for ${c} component from rendering params failed. Error: ${e}`),p?n.createElement(p,{error:e}):n.createElement(l,{error:e})}let f=Object.assign(Object.assign({},a.fetchedData),{_:(0,i.jw)(null!==(r=a.fields)&&void 0!==r?r:{})});return n.createElement(s.Jp,Object.assign({componentName:c,clientFallback:d,datasources:f},h))}}function u(e){var t,r,n,i;return t=this,r=void 0,n=void 0,i=function*(){let t=e.ComponentDataOverride?JSON.parse(e.ComponentDataOverride):{};return{fetchedData:yield s.sY.fetch(t||{})}},new(n||(n=Promise))(function(e,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(s,a)}l((i=i.apply(t,r||[])).next())})}},1946:function(e,t,r){"use strict";r.d(t,{P:function(){return s},w:function(){return o}});var n=r(4153),i=r(7294);let o="BYOCWrapper",s=e=>{var t,r,o;let s=null===(r=null===(t=e.params)||void 0===t?void 0:t.styles)||void 0===r?void 0:r.trimEnd(),a=null===(o=e.params)||void 0===o?void 0:o.RenderingIdentifier;return i.createElement("div",{className:s||void 0,id:a||void 0},i.createElement("div",{className:"component-content"},i.createElement(n.YM,Object.assign({},e))))}},846:function(e,t,r){"use strict";r.d(t,{X:function(){return s}});var n=r(7294),i=r(2862),o=r(8996);let s=({children:e,dataSource:t,buttons:r,title:s,tooltip:a,cssClass:l,parameters:c})=>{var u;let{sitecoreContext:d}=(0,i.z)();if(!d.pageEditing)return n.createElement(n.Fragment,null,e);let p={displayName:s,expandedDisplayName:a},h={};if(h.className="scLooseFrameZone",l&&(h.className=`${h.className} ${l}`),t){let e=t.databaseName||(null===(u=d.route)||void 0===u?void 0:u.databaseName),r=t.language||d.language;h.sc_item=`sitecore://${e}/${t.itemId}?lang=${r}`,p.contextItemUri=h.sc_item}return p.commands=null==r?void 0:r.map(e=>(0,o.mapButtonToCommand)(e,null==t?void 0:t.itemId,c)),n.createElement("div",Object.assign({className:"scLooseFrameZone"},h),n.createElement("span",{className:"scChromeData"},JSON.stringify(p)),e)}},263:function(e,t,r){"use strict";r.d(t,{Py:function(){return c},a8:function(){return l},f4:function(){return u}});var n=r(7294),i=r(4351),o=r(2796),s=r(2835),a=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let l="FEaaSComponent",c=e=>{var t,r,o,a,l,c,u;let d=(null===(t=e.params)||void 0===t?void 0:t.ComponentRevision)||e.revisionFallback;if(!e.template&&(!e.params||!e.params.LibraryId||!e.params.ComponentId||!e.params.ComponentVersion||!e.params.ComponentHostName||!d))return null;let p=Object.assign(Object.assign({},e.fetchedData),{_:(0,s.jw)(null!==(r=e.fields)&&void 0!==r?r:{})});return n.createElement(i.wA,{data:p,template:e.template,cdn:null===(o=e.params)||void 0===o?void 0:o.ComponentHostName,library:null===(a=e.params)||void 0===a?void 0:a.LibraryId,version:null===(l=e.params)||void 0===l?void 0:l.ComponentVersion,component:null===(c=e.params)||void 0===c?void 0:c.ComponentId,instance:null===(u=e.params)||void 0===u?void 0:u.ComponentInstanceId,revision:d,fetch:[]})};function u(e,t,r){return a(this,void 0,void 0,function*(){let n=t&&t!==o.LayoutServicePageState.Normal?"staged":"published",s=r||d(e,n),l="",c={},u=e.ComponentDataOverride?JSON.parse(e.ComponentDataOverride):{};try{l=yield function(e,t,r){return a(this,void 0,void 0,function*(){try{let{template:t}=yield i.hj(e);return t}catch(n){throw console.error(`Fetch FEAAS component from ${e} failed. Ensure the component revision "${t.ComponentRevision||r}" is present`),n}})}(s,e,n),c=yield function(e){return a(this,void 0,void 0,function*(){try{return yield i.sY.fetch(e||{})}catch(e){throw console.error("Fetch FEAAS component data settings failed"),e}})}(u)}catch(e){console.error(e)}return{fetchedData:c,revisionFallback:n,template:l}})}let d=(e,t)=>{let r=e.ComponentRevision||t,n=e.ComponentHostName.startsWith("https://")?e.ComponentHostName:`https://${e.ComponentHostName}`;return`${n}/components/${e.LibraryId}/${e.ComponentId}/${e.ComponentVersion}/${r}`}},7194:function(e,t,r){"use strict";r.d(t,{N:function(){return s},u:function(){return o}});var n=r(263),i=r(7294);let o="FEaaSWrapper",s=e=>{var t,r;let o=`component feaas ${null===(t=e.params)||void 0===t?void 0:t.styles}`.trimEnd(),s=null===(r=e.params)||void 0===r?void 0:r.RenderingIdentifier;return i.createElement("div",{className:o,id:s||void 0},i.createElement("div",{className:"component-content"},i.createElement(n.Py,Object.assign({},e))))}},7383:function(e,t,r){"use strict";r.d(t,{E:function(){return p},Y:function(){return d}});var n=r(9585),i=r(5697),o=r.n(i),s=r(7294),a=r(2835),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=(e,...t)=>s.createElement("span",Object.assign({className:"sc-image-wrapper"},t,{dangerouslySetInnerHTML:{__html:e}})),u=(e,t,r)=>{var{src:i,srcSet:o}=e,s=l(e,["src","srcSet"]);if(!i)return null;(0,a.yn)(s);let c=Object.assign({},s),u=n.mediaApi.updateImageUrl(i,t,r);return o&&(c.srcSet=n.mediaApi.getSrcSet(u,o,t,r)),c.src=u,c},d=(e,t,r,i)=>{let o=n.mediaApi.findEditorImageTag(e.editable);if(!o)return c(e.editable);let s=u(Object.assign(Object.assign({},(0,a.WF)(o.attrs)),i),t,r);if(!s)return c(e.editable);let l=`<img ${(0,a.No)(s)} />`;return c(e.editable.replace(o.imgTag,l))},p=e=>{var{editable:t=!0,imageParams:r,field:n,mediaUrlPrefix:i}=e,o=l(e,["editable","imageParams","field","mediaUrlPrefix"]);if(!n||!n.editable&&!n.value&&!n.src)return null;if(t&&n.editable)return d(n,r,i,o);let a=n.src?n:n.value;if(!a)return null;
1let c=u(Object.assign(Object.assign({},a),o),r,i);return c?s.createElement("img",Object.assign({},c)):null};p.propTypes={media:o().oneOfType([o().shape({src:o().string}),o().shape({value:o().object,editable:o().string})]),field:o().oneOfType([o().shape({src:o().string}),o().shape({value:o().object,editable:o().string})]),editable:o().bool,mediaUrlPrefix:o().instanceOf(RegExp),imageParams:o().objectOf(o().oneOfType([o().number.isRequired,o().string.isRequired]).isRequired)},p.displayName="Image"},6669:function(e,t,r){"use strict";r.d(t,{C:function(){return l},r:function(){return a}});var n=r(7294),i=r(5697),o=r.n(i),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 a=(0,n.forwardRef)((e,t)=>{var{field:r,editable:i=!0,showLinkTextWithChildrenPresent:o}=e,a=s(e,["field","editable","showLinkTextWithChildrenPresent"]);let l=a.children;if(!r||!r.editableFirstPart&&!r.value&&!r.href)return null;let c=[];if(i&&r.editableFirstPart){let e=Object.assign(Object.assign({className:"sc-link-wrapper",dangerouslySetInnerHTML:{__html:r.editableFirstPart+r.editableLastPart}},a),{key:"editable"});if(delete e.children,c.push(n.createElement("span",Object.assign({},e))),!l)return c[0]}let u=r.href?r:r.value;if(!u)return null;let d="anchor"!==u.linktype&&u.anchor?`#${u.anchor}`:"",p=u.querystring?`?${u.querystring}`:"",h={href:`${u.href}${p}${d}`,className:u.class,title:u.title,target:u.target};"_blank"!==h.target||h.rel||(h.rel="noopener noreferrer");let f=o||!l?u.text||u.href:null;return c.push(n.createElement("a",Object.assign(Object.assign(Object.assign({},h),a),{key:"link",ref:t}),f,l)),n.createElement(n.Fragment,null,c)}),l={field:o().oneOfType([o().shape({href:o().oneOfType([o().string.isRequired,o().oneOf([null]).isRequired])}),o().shape({value:o().object,editableFirstPart:o().string,editableLastPart:o().string})]).isRequired,editable:o().bool,showLinkTextWithChildrenPresent:o().bool};a.propTypes=l,a.displayName="Link"},9081:function(e,t,r){"use strict";r.d(t,{V:function(){return s}});var n=r(5697),i=r.n(n),o=r(7294);let s=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||"JSS component is missing React implementation. See the developer console for more information.";return o.createElement("div",{style:{background:"darkorange",outline:"5px solid orange",padding:"10px",color:"white",maxWidth:"500px"}},o.createElement("h2",null,t),o.createElement("p",null,r))};s.propTypes={rendering:i().shape({componentName:i().string})},s.displayName="MissingComponent"},8010:function(e,t,r){"use strict";r.d(t,{V:function(){return l}});var n=r(7294),i=r(3429),o=r(38),s=r(8996);class a extends i.r{constructor(e){super(e),this.isEmpty=!1}componentDidMount(){super.componentDidMount(),this.isEmpty&&s.HorizonEditor.isActive()&&s.HorizonEditor.resetChromes()}renderEmptyPlaceholder(e){return n.createElement("div",{className:"sc-jss-empty-placeholder"},e)}render(){let e=Object.assign({},this.props);if(delete e.componentFactory,this.state.error)return e.errorComponent?n.createElement(e.errorComponent,{error:this.state.error}):n.createElement("div",{className:"sc-jss-placeholder-error"},"A rendering error occurred: ",this.state.error.message,".");let t=e.rendering,r=i.r.getPlaceholderDataFromRenderingData(t,this.props.name),o=this.getComponentsForRenderingData(r);if(this.isEmpty=r.every(e=>!e.componentName&&void 0!==e.name),this.props.renderEmpty&&this.isEmpty){let e=this.props.renderEmpty(o);return o.length?this.renderEmptyPlaceholder(e):e}if(o.length&&this.isEmpty)return this.renderEmptyPlaceholder(o);if(this.props.render)return this.props.render(o,r,e);{if(!this.props.renderEach)return o;let e=this.props.renderEach;return o.map((t,r)=>t&&t.props&&"text/sitecore"===t.props.type?t:e(t,r))}}}a.propTypes=i.r.propTypes;let l=(0,o.g)(a)},3429:function(e,t,r){"use strict";r.d(t,{r:function(){return m}});var n=r(7294),i=r(5697),o=r.n(i),s=r(9081),a=r(2835);let l={height:"100px",backgroundImage:"linear-gradient(45deg, #ffffff 25%, #dcdcdc 25%, #dcdcdc 50%, #ffffff 50%, #ffffff 75%, #dcdcdc 75%, #dcdcdc 100%)",backgroundSize:"3px 3px"},c=()=>n.createElement("div",{style:l});
1var u=r(263),d=r(7194),p=r(4153),h=r(1946),f=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 m extends n.Component{constructor(e){super(e),this.nodeRefs=[],this.state={},this.addRef=this.addRef.bind(this),this.updateKeyAttributes=this.updateKeyAttributes.bind(this),this.createRawElement=this.createRawElement.bind(this)}static getPlaceholderDataFromRenderingData(e,t){let r;return((null==e?void 0:e.placeholders)&&Object.keys(e.placeholders).forEach(r=>{let n=-1!==r.indexOf("{*}")?RegExp(`^${r.replace(/\{\*\}+/i,"\\d+")}$`):null;n&&n.test(t)&&(e.placeholders[t]=e.placeholders[r],delete e.placeholders[r])}),r=e&&e.placeholders&&Object.keys(e.placeholders).length>0?e.placeholders[t]:null)?r:(console.warn(`Placeholder '${t}' was not found in the current rendering data`,JSON.stringify(e,null,2)),[])}componentDidMount(){this.updateKeyAttributes()}componentDidUpdate(){this.updateKeyAttributes()}componentDidCatch(e){this.setState({error:e})}getSXAParams(e){return e.params?e.params.FieldNames&&{styles:`${e.params.GridParameters||""} ${e.params.Styles||""}`}:{}}getComponentsForRenderingData(e){let t=this.props,{name:r,fields:i,params:o,missingComponentComponent:a,hiddenRenderingComponent:l}=t,m=f(t,["name","fields","params","missingComponentComponent","hiddenRenderingComponent"]);return e.map((e,t)=>{let f;let y={key:e.uid?e.uid:`component-${t}`};if(!e.componentName&&e.name)return this.createRawElement(e,y);(f="Hidden Rendering"===e.componentName?null!=l?l:c:e.componentName?this.getComponentForRendering(e):()=>n.createElement(n.Fragment,null))||(e.componentName===u.a8?f=u.Py:e.componentName===d.u?f=d.N:e.componentName===p.bu?f=p.YM:e.componentName!==h.w||(f=h.P)),f||(console.error(`Placeholder ${r} contains unknown component ${e.componentName}. Ensure that a React component exists for it, and that it is registered in your componentFactory.js.`),f=null!=a?a:s.V);let v=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},y),m),(i||e.fields)&&{fields:Object.assign(Object.assign({},i),e.fields)}),(o||e.params)&&{params:Object.assign(Object.assign(Object.assign({},o),e.params),this.getSXAParams(e))}),{rendering:e});return n.createElement(f,this.props.modifyComponentProps?this.props.modifyComponentProps(v):v)}).filter(e=>e)}getComponentForRendering(e){var t;let r=this.props.componentFactory;return r&&"function"==typeof r?(null===(t=e.params)||void 0===t?void 0:t.FieldNames)?r(e.componentName,e.params.FieldNames):r(e.componentName):(console.warn(`No componentFactory was available to service request for component ${e}`),null)}addRef(e){this.nodeRefs.push(e)}createRawElement(e,t){if(!e.name)return console.error('"elem.name" is undefined in "createRawElement". Something is likely wrong with your component data. Ensure that your components have a name.'),null;let r=(0,a.WF)(e.attributes),i=Object.assign(Object.assign(Object.assign({},t),r),{dangerouslySetInnerHTML:e.contents?{__html:e.contents}:void 0});return!Array.isArray(r)&&r&&"placeholder"===r.chrometype&&(i.phkey=e.attributes.key,i.ref=this.addRef),n.createElement(e.name,i)}updateKeyAttributes(){this.nodeRefs&&this.nodeRefs.forEach(e=>{if(e&&e.getAttribute){let t=e.getAttribute("phkey");t&&e.setAttribute("key",t)}})}}m.propTypes={rendering:o().oneOfType([o().object,o().object]).isRequired,fields:o().objectOf(o().oneOfType([o().object,o().object]).isRequired),params:o().objectOf(o().string.isRequired),missingComponentComponent:o().oneOfType([o().object,o().func]),hiddenRenderingComponent:o().oneOfType([o().object,o().func]),errorComponent:o().oneOfType([o().object,o().func]),modifyComponentProps:o().func}},5245:function(e,t,r){"use strict";r.d(t,{H:function(){return a},e:function(){return l}});var n=r(7294),i=r(5697),o=r.n(i),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 a=(0,n.forwardRef)((e,t)=>{var{field:r,tag:i="div",editable:o=!0}=e,a=s(e,["field","tag","editable"]);if(!r||!r.editable&&!r.value)return null;let l=Object.assign({dangerouslySetInnerHTML:{__html:r.editable&&o?r.editable:r.value},ref:t},a);return n.createElement(i||"div",l)}),l={field:o().shape({value:o().string,editable:o().string}),tag:o().string,editable:o().bool};a.propTypes=l,a.displayName="RichText"},1201:function(e,t,r){"use strict";r.d(t,{Qb:function(){return u},R7:function(){return c},sy:function(){return l}});var n=r(7294),i=r(5697),o=r.n(i),s=r(1879),a=r.n(s);let l=n.createContext({}),c=n.createContext({});class u extends n.Component{constructor(e){super(e),this.setContext=e=>{this.setState({context:e.sitecore?this.constructContext(e):Object.assign({},e)})};let t=this.constructContext(e.layoutData);this.state={context:t,setContext:this.setContext}}constructContext(e){var t;return e?Object.assign({route:e.sitecore.route,itemId:null===(t=e.sitecore.route)||void 0===t?void 0:t.itemId},e.sitecore.context):{pageEditing:!1}}componentDidUpdate(e){if(!a()(e.layoutData,this.props.layoutData)){this.setContext(this.props.layoutData);return}}render(){return n.createElement(c.Provider,{value:this.props.componentFactory},n.createElement(l.Provider,{value:this.state},this.props.children))}}
1u.propTypes={children:o().any.isRequired,componentFactory:o().func,layoutData:o().shape({sitecore:o().shape({context:o().any,route:o().any})})},u.displayName="SitecoreContext"},2433:function(e,t,r){"use strict";r.d(t,{x:function(){return a}});var n=r(7294),i=r(5697),o=r.n(i),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 a=e=>{var{field:t,tag:r,editable:i=!0,encode:o=!0}=e,a=s(e,["field","tag","editable","encode"]);if(!t||!t.editable&&(void 0===t.value||""===t.value))return null;o||(i=!1);let l=t.editable&&i,c=l?t.editable||"":void 0===t.value?"":t.value;if(!t.editable&&"string"==typeof c){let e=String(c).split("\n");if(e.length){let t=[];e.forEach((r,i)=>{let o=i===e.length-1;t.push(r),o||t.push(n.createElement("br",{key:i}))}),c=t}}let u=l||!o,d=null,p=Object.assign({},a);return(u?p.dangerouslySetInnerHTML={__html:c}:d=c,r||u)?n.createElement(r||"span",p,d):n.createElement(n.Fragment,null,d)};a.propTypes={field:o().shape({value:o().oneOfType([o().string,o().number]),editable:o().string}),tag:o().string,editable:o().bool,encode:o().bool},a.displayName="Text"},38:function(e,t,r){"use strict";r.d(t,{g:function(){return o}});var n=r(7294),i=r(1201);function o(e){function t(t){let r=(0,n.useContext)(i.R7);return n.createElement(e,Object.assign({},t,{componentFactory:t.componentFactory||r}))}return t.displayName=`withComponentFactory(${e.displayName||e.name||"Anonymous"})`,t}},2099:function(e,t,r){"use strict";r.d(t,{C:function(){return s}});var n=r(7294),i=r(2862);let o=()=>n.createElement("div",{className:"sc-jss-editing-error",role:"alert"},"Datasource is required. Please choose a content item for this component.");function s(e){return function(t){return function(r){var s,a;let{sitecoreContext:l}=(0,i.z)(),c=null!==(s=null==e?void 0:e.editingErrorComponent)&&void 0!==s?s:o;return(null===(a=r.rendering)||void 0===a?void 0:a.dataSource)?n.createElement(t,Object.assign({},r)):l.pageEditing?n.createElement(c,null):null}}}},2862:function(e,t,r){"use strict";r.d(t,{p:function(){return o},z:function(){return s}});var n=r(7294),i=r(1201);function o(e){return function(t){return function(r){return n.createElement(i.sy.Consumer,null,i=>n.createElement(t,Object.assign({},r,{sitecoreContext:i.context,updateSitecoreContext:e&&e.updatable&&i.setContext})))}}}function s(e){let t=n.useContext(i.sy),r=null==e?void 0:e.updatable;return{sitecoreContext:t.context,updateSitecoreContext:r?t.setContext:void 0}}},9535:function(e,t,r){"use strict";r.r(t),r.d(t,{BYOCComponent:function(){return k.YM},BYOCWrapper:function(){return N.P},ClientError:function(){return u.ClientError},ComponentBuilder:function(){return V},DateField:function(){return S},DefaultEditFrameButton:function(){return d.DefaultEditFrameButton},DefaultEditFrameButtons:function(){return d.DefaultEditFrameButtons},DefaultRetryStrategy:function(){return m.DefaultRetryStrategy},EditFrame:function(){return q.X},FEaaSComponent:function(){return x.Py},FEaaSWrapper:function(){return A.N},File:function(){return j},GraphQLDictionaryService:function(){return f.pW},GraphQLLayoutService:function(){return p.GraphQLLayoutService},GraphQLRequestClient:function(){return m.GraphQLRequestClient},Image:function(){return g.E},LayoutServicePageState:function(){return p.LayoutServicePageState},Link:function(){return _.r},LinkPropTypes:function(){return _.C},Placeholder:function(){return v.V},RestDictionaryService:function(){return f.Dd},RestLayoutService:function(){return p.RestLayoutService},RichText:function(){return b.H},RichTextPropTypes:function(){return b.e},SitecoreContext:function(){return L.Qb},SitecoreContextReactContext:function(){return L.sy},Text:function(){return E.x},VisitorIdentification:function(){return F},constants:function(){return c},enableDebug:function(){return l},fetchBYOCComponentServerProps:function(){return k.uW},fetchFEaaSComponentServerProps:function(){return x.f4},getChildPlaceholder:function(){return p.getChildPlaceholder},getComponentLibraryStylesheetLinks:function(){return p.getComponentLibraryStylesheetLinks},getContentStylesheetLink:function(){return p.getContentStylesheetLink},getEEMarkup:function(){return g.Y},getFieldValue:function(){return p.getFieldValue},isEditorActive:function(){return d.isEditorActive},mediaApi:function(){return y.mediaApi},resetEditorChromes:function(){return d.resetEditorChromes},trackingApi:function(){return h.trackingApi},useSitecoreContext:function(){return I.z},withDatasourceCheck:function(){return K.C},withEditorChromes:function(){return M},withPlaceholder:function(){return B},withSitecoreContext:function(){return I.p}});var n,i=r(1227),o=r.n(i),s=r(4155);let a="sitecore-jss";!("undefined"!=typeof window&&window.document)&&(null===(n=null==s?void 0:s.env)||void 0===n?void 0:n.DEBUG_MULTILINE)==="true"&&o().formatters.o&&o().formatters.O&&(o().formatters.o=o().formatters.O);let l=e=>o().enable(e);o()(`${a}:common`),o()(`${a}:http`),o()(`${a}:layout`),o()(`${a}:dictionary`),o()(`${a}:editing`),o()(`${a}:sitemap`),o()(`${a}:multisite`),o()(`${a}:robots`),o()(`${a}:redirects`),o()(`${a}:personalize`),o()(`${a}:errorpages`);var c=r(1539),u=r(852),d=r(8996),p=r(2796),h=r(9369),f=r(1066),m=r(6489),y=r(9585),v=r(8010),g=r(7383),b=r(5245),E=r(2433),O=r(7294),w=r(5697),C=r.n(w),T=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 S=e=>{let t;var{field:r,tag:n,editable:i=!0,render:o}=e,s=T(e,["field","tag","editable","render"]);if(!r||!r.editable&&!r.value)return null;let a=Object.assign({},s);return(r.editable&&i?a.dangerouslySetInnerHTML={__html:r.editable}:t=o?o(r.value?new Date(r.value):null):r.value,n||r.editable&&i)?O.createElement(n||"span",a,t):O.createElement(O.Fragment,null,t)};S.propTypes={field:C().shape({value:C().string,editable:C().string}).isRequired,tag:C().string,editable:C().bool,render:C().func},S.displayName="Date";var x=r(263),A=r(7194),k=r(4153),N=r(1946),_=r(6669),D=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 j=e=>{var{field:t,children:r}=e,n=D(e,["field","children"]);if(!t||!t.value&&!t.src)return null;let i=t.src?t:t.value;if(!i)return null;let o=r?null:i.title||i.displayName,s={href:i.src};return O.createElement("a",Object.assign(Object.assign({},s),n),o,r)};j.propTypes={field:C().oneOfType([C().shape({src:C().string}),C().shape({value:C().object})]).isRequired},j.displayName="File";var I=r(2862);let R=!1,P=e=>{let{sitecoreContext:t}=(0,I.z)();if(R||"undefined"==typeof document||!t.visitorIdentificationTimestamp)return null;R=!0;let r=document.createElement("script");r.src="/layouts/system/VisitorIdentification.js",r.type="text/javascript",r.defer=e.defer;let n=document.createElement("meta");n.name="VIcurrentDateTime",n.content=t.visitorIdentificationTimestamp.toString();let i=document.querySelector("head");return i&&i.appendChild(r),i&&i.appendChild(n),null};P.displayName="VisitorIdentification";let F=P;var L=r(1201);let M=e=>{class t extends O.Component{constructor(){super(...arguments),this.displayName=e.displayName||e.name||"Component"}componentDidUpdate(){(0,d.resetEditorChromes)()}render(){return O.createElement(e,Object.assign({},this.props))}}return t};var U=r(3429),$=r(38);function B(e,t){return r=>{class n extends U.r{constructor(e){super(e)}render(){let n=Object.assign({},this.props);if(delete n.componentFactory,t&&t.propsTransformer&&(n=t.propsTransformer(n)),this.state.error)return n.errorComponent?O.createElement(n.errorComponent,{error:this.state.error}):O.createElement("div",{className:"sc-jss-placeholder-error"},"A rendering error occurred: ",this.state.error.message,".");let i=t&&t.resolvePlaceholderDataFromProps?t.resolvePlaceholderDataFromProps(n):n.rendering;
1return(Array.isArray(e)?e:[e]).forEach(e=>{let t;"string"!=typeof e&&e.placeholder&&e.prop?(t=U.r.getPlaceholderDataFromRenderingData(i,e.placeholder))&&(n[e.prop]=this.getComponentsForRenderingData(t)):(t=U.r.getPlaceholderDataFromRenderingData(i,e))&&(n[e]=this.getComponentsForRenderingData(t))}),O.createElement(r,Object.assign({},n))}}return n.propTypes=U.r.propTypes,(0,$.g)(n)}}var K=r(2099),q=r(846);class V{constructor(e){this.config=e,this.components=new Map([...e.components])}getComponentFactory(){return e=>this.components.get(e)||null}}},2835:function(e,t,r){"use strict";r.d(t,{No:function(){return u},WF:function(){return l},jw:function(){return d},yn:function(){return c}});var n=r(2796),i=r(3469),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};let s=e=>e.replace(/^.|-./g,(e,t)=>0===t?e.toLowerCase():e.substr(1).toUpperCase()),a=(e="")=>{let t=(0,i.Qc)(e,{preserveNumbers:!0});return Object.keys(t).reduce((e,r)=>(e[s(r)]=t[r],e),{})},l=e=>e?Object.keys(e).reduce((t,r)=>{switch(r){case"class":t.className=e.class;break;case"style":t.style=a(e.style);break;default:t[r]=e[r]}return t},{}):[],c=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}},u=e=>{let{className:t}=e,r=Object.entries(o(e,["className"])).map(([e,t])=>{if("object"==typeof t){let r=JSON.stringify(t).replace(/"|{|}/g,"").replace(/,/g,";");return`${e}="${r}"`}return`${e}="${t}"`});return t&&r.push(`class="${t}"`),r.join(" ")},d=e=>Object.entries(e).reduce((t,[r])=>(t[r]=(0,n.getFieldValue)(e,r),t),{})},9011:function(e,t,r){"use strict";var n=this&&this.__rest||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},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AxiosDataFetcher=void 0;let o=i(r(4671)),s=i(r(6907)),a=e=>void 0!==e.isAxiosError;class l{constructor(e={}){let{onReq:t,onRes:r,onReqError:i,onResError:l,debugger:c}=e,u=n(e,["onReq","onRes","onReqError","onResError","debugger"]);void 0===u.withCredentials&&(u.withCredentials=!0),this.instance=o.default.create(u);let d=c||s.default.http;d.enabled&&this.instance.interceptors.request.use(e=>(d("request: %o",e),e.headers.timestamp=Date.now(),e),e=>(d("request error: %o",a(e)?e.toJSON():e),Promise.reject(e))),t&&this.instance.interceptors.request.use(t,i),r&&this.instance.interceptors.response.use(r,l),d.enabled&&this.instance.interceptors.response.use(e=>{let{request:t,config:r}=e,i=n(e,["request","config"]),o=Date.now()-r.headers.timestamp;return delete e.config.headers.timestamp,d("response in %dms: %o",o,i),e},e=>(d("response error: %o",a(e)?e.toJSON():e),Promise.reject(e)))}fetch(e,t){return this.instance.request({url:e,method:t?"POST":"GET",data:t})}get(e,t){return this.instance.get(e,t)}head(e,t){return this.instance.head(e,t)}post(e,t,r){return this.instance.post(e,t,r)}put(e,t,r){return this.instance.put(e,t,r)}delete(e,t){return this.instance.delete(e,t)}}t.AxiosDataFetcher=l},4559:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MemoryCacheClient=void 0;let n=r(7113),i=Object.freeze({cacheTimeout:60,cacheEnabled:!0});class o{constructor(e){var t;this.options=e,this.cache=new n.Cache,this.options.cacheTimeout=(null!==(t=this.options.cacheTimeout)&&void 0!==t?t:i.cacheTimeout)*1e3,void 0===this.options.cacheEnabled&&(this.options.cacheEnabled=i.cacheEnabled)}getCacheValue(e){return this.options.cacheEnabled?this.cache.get(e):null}setCacheValue(e,t){return this.options.cacheEnabled?this.cache.put(e,t,this.options.cacheTimeout):t}}t.MemoryCacheClient=o},3204:function(e,t){"use strict";var r;
1Object.defineProperty(t,"__esModule",{value:!0}),t.SITECORE_EDGE_URL_DEFAULT=t.siteNameError=t.JSS_MODE=t.FETCH_WITH=t.SitecoreTemplateId=void 0,(r=t.SitecoreTemplateId||(t.SitecoreTemplateId={})).JssApp="061cba1554744b918a0617903b102b82",r.DictionaryEntry="6d1cd89719364a3aa511289a94c2a7b1",t.FETCH_WITH={GRAPHQL:"GraphQL",REST:"Rest"},t.JSS_MODE={CONNECTED:"connected",DISCONNECTED:"disconnected"},t.siteNameError="The siteName cannot be empty",t.SITECORE_EDGE_URL_DEFAULT="https://edge-platform.sitecorecloud.io"},3884:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchData=t.checkStatus=t.ResponseError=void 0;let n=r(3449);class i extends Error{constructor(e,t){super(e),Object.setPrototypeOf(this,i.prototype),this.response=t}}function o(e){if(e.status>=200&&e.status<300)return e;throw new i(e.statusText,e)}t.ResponseError=i,t.checkStatus=o,t.fetchData=function(e,t,r={}){return t((0,n.resolveUrl)(e,r)).then(o).then(e=>e.data)}},6907:function(e,t,r){"use strict";var n,i=r(4155),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.enableDebug=void 0;let s=o(r(1227)),a=o(r(3641)),l="sitecore-jss";(0,a.default)()&&(null===(n=null==i?void 0:i.env)||void 0===n?void 0:n.DEBUG_MULTILINE)==="true"&&s.default.formatters.o&&s.default.formatters.O&&(s.default.formatters.o=s.default.formatters.O),t.enableDebug=e=>s.default.enable(e),t.default={common:(0,s.default)(`${l}:common`),http:(0,s.default)(`${l}:http`),layout:(0,s.default)(`${l}:layout`),dictionary:(0,s.default)(`${l}:dictionary`),editing:(0,s.default)(`${l}:editing`),sitemap:(0,s.default)(`${l}:sitemap`),multisite:(0,s.default)(`${l}:multisite`),robots:(0,s.default)(`${l}:robots`),redirects:(0,s.default)(`${l}:redirects`),personalize:(0,s.default)(`${l}:personalize`),errorpages:(0,s.default)(`${l}:errorpages`)}},5349:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLRequestClient=t.DefaultRetryStrategy=void 0;let o=r(852),s=i(r(4564)),a=i(r(6907)),l=i(r(3627));class c{constructor(e={}){this.statusCodes=e.statusCodes||[429],this.errorCodes=e.errorCodes||["ECONNRESET","ETIMEDOUT","EPROTO"],this.factor=e.factor||2}shouldRetry(e,t,r){var n;let i=(null===(n=e.response)||void 0===n?void 0:n.status)!==void 0&&this.statusCodes.includes(e.response.status),o=void 0!==e.code&&this.errorCodes.includes(e.code);return r>0&&t<=r&&(i||o)}getDelay(e,t){var r;let n=null===(r=e.response)||void 0===r?void 0:r.headers,i=null==n?void 0:n.get("Retry-After");return null!=i&&""!==i.trim()?1e3*Number.parseFloat(i):1e3*Math.pow(this.factor,t-1)}}t.DefaultRetryStrategy=c;class u{constructor(e,t={}){var r;if(this.endpoint=e,this.headers={},t.apiKey&&(this.headers.sc_apikey=t.apiKey),!e||!(0,s.default)(e).hostname)throw Error(`Invalid GraphQL endpoint '${e}'. Verify that 'layoutServiceHost' property in 'scjssconfig.json' file or appropriate environment variable is set`);this.timeout=t.timeout,this.retries=null!==(r=t.retries)&&void 0!==r?r:3,this.retryStrategy=t.retryStrategy||new c({statusCodes:[429,502,503,504,520,521,522,523,524]}),this.client=new o.GraphQLClient(e,{headers:this.headers,fetch:t.fetch}),this.debug=t.debugger||a.default.http}static createClientFactory({endpoint:e,apiKey:t}){return (r={})=>new u(e,Object.assign(Object.assign({},r),{apiKey:t}))}request(e,t){return n(this,void 0,void 0,function*(){let r=1,i=()=>n(this,void 0,void 0,function*(){this.debug("request: %o",{url:this.endpoint,headers:this.headers,query:e,variables:t});let o=Date.now(),s=[this.client.request(e,t)];return this.timeout&&(this.abortTimeout=new l.default(this.timeout),s.push(this.abortTimeout.start)),Promise.race(s).then(e=>{var t;return null===(t=this.abortTimeout)||void 0===t||t.clear(),this.debug("response in %dms: %o",Date.now()-o,e),Promise.resolve(e)},e=>n(this,void 0,void 0,function*(){var t,n;null===(t=this.abortTimeout)||void 0===t||t.clear(),this.debug("response error: %o",e.response||e.message||e);let o=(null===(n=e.response)||void 0===n?void 0:n.status)||e.code;if(!this.retryStrategy.shouldRetry(e,r,this.retries))return Promise.reject(e);{let t=this.retryStrategy.getDelay(e,r);return this.debug("Error: %s. Retrying in %dms (attempt %d).",o,t,r),r++,new Promise(e=>setTimeout(e,t)).then(i)}}))});return i()})}}t.GraphQLRequestClient=u},7690:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};
1Object.defineProperty(t,"__esModule",{value:!0}),t.getAppRootId=t.languageError=t.siteNameError=void 0;let i=r(3204);t.siteNameError="The site name must be a non-empty string",t.languageError="The language must be a non-empty string";let o=` 2 query AppRootQuery($jssAppTemplateId: String!, $siteName: String!, $language: String!) { 3 layout(site: $siteName, routePath: "/", language: $language) { 4 homePage: item { 5 rootItem: ancestors(includeTemplateIDs: [$jssAppTemplateId]) { 6 id 7 } 8 } 9 } 10 } 11`;t.getAppRootId=function(e,r,s,a){var l,c,u,d,p,h;return n(this,void 0,void 0,function*(){if(!r)throw RangeError(t.siteNameError);if(!s)throw RangeError(t.languageError);let n=yield e.request(o,{jssAppTemplateId:a||i.SitecoreTemplateId.JssApp,siteName:r,language:s});return((null===(u=null===(c=null===(l=null==n?void 0:n.layout)||void 0===l?void 0:l.homePage)||void 0===c?void 0:c.rootItem)||void 0===u?void 0:u.length)||"en"===s||(n=yield e.request(o,{jssAppTemplateId:a||i.SitecoreTemplateId.JssApp,siteName:r,language:"en"})),null===(h=null===(p=null===(d=null==n?void 0:n.layout)||void 0===d?void 0:d.homePage)||void 0===p?void 0:p.rootItem)||void 0===h?void 0:h.length)?n.layout.homePage.rootItem[0].id:null})}},4007:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEdgeProxyContentUrl=void 0;let n=r(3204);t.getEdgeProxyContentUrl=(e,t=n.SITECORE_EDGE_URL_DEFAULT)=>`${t}/v1/content/api/graphql/v1?sitecoreContextId=${e}`},6489:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEdgeProxyContentUrl=t.SearchQueryService=t.GraphQLRequestClient=t.DefaultRetryStrategy=t.getAppRootId=void 0;var n=r(7690);Object.defineProperty(t,"getAppRootId",{enumerable:!0,get:function(){return n.getAppRootId}});var i=r(5349);Object.defineProperty(t,"DefaultRetryStrategy",{enumerable:!0,get:function(){return i.DefaultRetryStrategy}}),Object.defineProperty(t,"GraphQLRequestClient",{enumerable:!0,get:function(){return i.GraphQLRequestClient}});var o=r(4578);Object.defineProperty(t,"SearchQueryService",{enumerable:!0,get:function(){return o.SearchQueryService}});var s=r(4007);Object.defineProperty(t,"getEdgeProxyContentUrl",{enumerable:!0,get:function(){return s.getEdgeProxyContentUrl}})},4578:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchQueryService=void 0;class n{constructor(e){this.client=e}fetch(e,t){var n;return r(this,void 0,void 0,function*(){if(!t.rootItemId||!t.language)throw RangeError('"rootItemId" and "language" must be non-empty strings');let r=[],i=!0,o="";for(;i;){let s=yield this.client.request(e,Object.assign(Object.assign({},t),{after:o}));r=r.concat(null===(n=null==s?void 0:s.search)||void 0===n?void 0:n.results),i=s.search.pageInfo.hasNext,o=s.search.pageInfo.endCursor}return r})}}t.SearchQueryService=n},5465:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DictionaryServiceBase=void 0;let n=r(4559);class i{constructor(e){this.options=e,this.cache=this.getCacheClient()}setCacheValue(e,t){return this.cache.setCacheValue(e,t)}getCacheValue(e){return this.cache.getCacheValue(e)}getCacheClient(){return new n.MemoryCacheClient(this.options)}}t.DictionaryServiceBase=i},6372:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLDictionaryService=t.queryError=void 0;
11let o=r(3204),s=r(5465),a=r(6489),l=i(r(6907));t.queryError="Valid value for rootItemId not provided and failed to auto-resolve app root item.";let c=` 12 query DictionarySearch( 13 $rootItemId: String! 14 $language: String! 15 $templates: String! 16 $pageSize: Int = 10 17 $after: String 18 ) { 19 search( 20 where: { 21 AND: [ 22 { name: "_path", value: $rootItemId, operator: CONTAINS } 23 { name: "_language", value: $language } 24 { name: "_templates", value: $templates, operator: CONTAINS } 25 ] 26 } 27 first: $pageSize 28 after: $after 29 ) { 30 total 31 pageInfo { 32 endCursor 33 hasNext 34 } 35 results { 36 key: field(name: "Key") { 37 value 38 } 39 phrase: field(name: "Phrase") { 40 value 41 } 42 } 43 } 44 } 45`;class u extends s.DictionaryServiceBase{constructor(e){super(e),this.options=e,this.graphQLClient=this.getGraphQLClient(),this.searchService=new a.SearchQueryService(this.graphQLClient)}fetchDictionaryData(e){return n(this,void 0,void 0,function*(){let r=this.options.siteName+e,n=this.getCacheValue(r);if(n)return l.default.dictionary("using cached dictionary data for %s %s",e,this.options.siteName),n;l.default.dictionary("fetching site root for %s %s",e,this.options.siteName);let i=this.options.rootItemId||(yield(0,a.getAppRootId)(this.graphQLClient,this.options.siteName,e,this.options.jssAppTemplateId));if(!i)throw Error(t.queryError);l.default.dictionary("fetching dictionary data for %s %s",e,this.options.siteName);let s={};return yield this.searchService.fetch(c,{rootItemId:i,language:e,templates:this.options.dictionaryEntryTemplateId||o.SitecoreTemplateId.DictionaryEntry,pageSize:this.options.pageSize}).then(e=>{e.forEach(e=>s[e.key.value]=e.phrase.value)}),this.setCacheValue(r,s),s})}getGraphQLClient(){if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:l.default.dictionary,retries:this.options.retries,retryStrategy:this.options.retryStrategy})}}t.GraphQLDictionaryService=u},1066:function(e,t,r){"use strict";t.Dd=t.pW=void 0,r(5465);var n=r(6372);Object.defineProperty(t,"pW",{enumerable:!0,get:function(){return n.GraphQLDictionaryService}});var i=r(9107);Object.defineProperty(t,"Dd",{enumerable:!0,get:function(){return i.RestDictionaryService}})},9107:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RestDictionaryService=void 0;let o=r(9011),s=r(3884),a=r(5465),l=i(r(6907));class c extends a.DictionaryServiceBase{constructor(e){super(e),this.options=e}get defaultFetcher(){let e=new o.AxiosDataFetcher({debugger:l.default.dictionary,withCredentials:!1});return t=>e.fetch(t)}fetchDictionaryData(e){return n(this,void 0,void 0,function*(){let t=this.getUrl(e),r=this.getCacheValue(t);if(r)return l.default.dictionary("using cached dictionary data for %s %s",e,this.options.siteName),r;l.default.dictionary("fetching dictionary data for %s %s",e,this.options.siteName);let n=this.options.dataFetcher||this.defaultFetcher,i=yield(0,s.fetchData)(t,n,{sc_apikey:this.options.apiKey});return this.setCacheValue(t,i.phrases)})}getUrl(e){return`${this.options.apiHost}/sitecore/api/jss/dictionary/${this.options.siteName}/${e}`}}t.RestDictionaryService=c},5094:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseComponent=t.traverseField=t.traversePlaceholder=t.getContentStylesheetUrl=t.getContentStylesheetLink=void 0;let n=r(3204),i=/class=".*(\bck-content\b).*"/g;t.getContentStylesheetLink=(e,r,i=n.SITECORE_EDGE_URL_DEFAULT)=>{if(!e.sitecore.route)return null;let o={loadStyles:!1};return((0,t.traverseComponent)(e.sitecore.route,o),o.loadStyles)?{href:(0,t.getContentStylesheetUrl)(r,i),rel:"stylesheet"}:null},t.getContentStylesheetUrl=(e,t=n.SITECORE_EDGE_URL_DEFAULT)=>`${t}/v1/files/pages/styles/content-styles.css?sitecoreContextId=${e}`,t.traversePlaceholder=(e,r)=>
45{r.loadStyles||e.forEach(e=>{(0,t.traverseComponent)(e,r)})},t.traverseField=(e,r)=>{e&&!r.loadStyles&&("editable"in e&&e.editable?r.loadStyles=i.test(e.editable):"value"in e&&"string"==typeof e.value?r.loadStyles=i.test(e.value):"fields"in e?Object.values(e.fields).forEach(e=>{(0,t.traverseField)(e,r)}):Array.isArray(e)&&e.forEach(e=>{(0,t.traverseField)(e,r)}))},t.traverseComponent=(e,r)=>{if(r.loadStyles)return;"fields"in e&&e.fields&&Object.values(e.fields).forEach(e=>{(0,t.traverseField)(e,r)});let n=e.placeholders||{};Object.keys(n).forEach(e=>{(0,t.traversePlaceholder)(n[e],r)})}},9886:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLLayoutService=void 0;let o=r(7812),s=i(r(6907));class a extends o.LayoutServiceBase{constructor(e){super(),this.serviceConfig=e,this.graphQLClient=this.getGraphQLClient()}fetchLayoutData(e,t){var r,i;return n(this,void 0,void 0,function*(){let n=this.getLayoutQuery(e,t);s.default.layout("fetching layout data for %s %s %s",e,t,this.serviceConfig.siteName);let o=yield this.graphQLClient.request(n);return(null===(i=null===(r=null==o?void 0:o.layout)||void 0===r?void 0:r.item)||void 0===i?void 0:i.rendered)||{sitecore:{context:{pageEditing:!1,language:t},route:null}}})}getGraphQLClient(){if(!this.serviceConfig.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.serviceConfig.clientFactory({debugger:s.default.layout,retries:this.serviceConfig.retries,retryStrategy:this.serviceConfig.retryStrategy})}getLayoutQuery(e,t){let r=t?`, language:"${t}"`:"",n=this.serviceConfig.formatLayoutQuery?this.serviceConfig.formatLayoutQuery(this.serviceConfig.siteName,e,t):`layout(site:"${this.serviceConfig.siteName}", routePath:"${e}"${r})`;return`query { 46 ${n}{ 47 item { 48 rendered 49 } 50 } 51 }`}}t.GraphQLLayoutService=a},2796:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getComponentLibraryStylesheetLinks=t.GraphQLLayoutService=t.RestLayoutService=t.getContentStylesheetLink=t.getChildPlaceholder=t.getFieldValue=t.EDITING_COMPONENT_ID=t.EDITING_COMPONENT_PLACEHOLDER=t.RenderingType=t.LayoutServicePageState=void 0;var n=r(6722);Object.defineProperty(t,"LayoutServicePageState",{enumerable:!0,get:function(){return n.LayoutServicePageState}}),Object.defineProperty(t,"RenderingType",{enumerable:!0,get:function(){return n.RenderingType}}),Object.defineProperty(t,"EDITING_COMPONENT_PLACEHOLDER",{enumerable:!0,get:function(){return n.EDITING_COMPONENT_PLACEHOLDER}}),Object.defineProperty(t,"EDITING_COMPONENT_ID",{enumerable:!0,get:function(){return n.EDITING_COMPONENT_ID}});var i=r(682);Object.defineProperty(t,"getFieldValue",{enumerable:!0,get:function(){return i.getFieldValue}}),Object.defineProperty(t,"getChildPlaceholder",{enumerable:!0,get:function(){return i.getChildPlaceholder}});var o=r(5094);Object.defineProperty(t,"getContentStylesheetLink",{enumerable:!0,get:function(){return o.getContentStylesheetLink}});var s=r(4045);Object.defineProperty(t,"RestLayoutService",{enumerable:!0,get:function(){return s.RestLayoutService}});var a=r(9886);Object.defineProperty(t,"GraphQLLayoutService",{enumerable:!0,get:function(){return a.GraphQLLayoutService}});var l=r(4158);Object.defineProperty(t,"getComponentLibraryStylesheetLinks",{enumerable:!0,get:function(){return l.getComponentLibraryStylesheetLinks}})},7812:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutServiceBase=void 0;class r{}t.LayoutServiceBase=r},6722:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RenderingType=t.LayoutServicePageState=t.EDITING_COMPONENT_ID=t.EDITING_COMPONENT_PLACEHOLDER=void 0,t.EDITING_COMPONENT_PLACEHOLDER="editing-componentmode-placeholder",t.EDITING_COMPONENT_ID="editing-component",(r=t.LayoutServicePageState||(t.LayoutServicePageState={})).Preview="preview",r.Edit="edit",r.Normal="normal",(t.RenderingType||(t.RenderingType={})).Component="component"},4045:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esMo
51dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RestLayoutService=void 0;let i=r(7812),o=r(9011),s=r(3884),a=n(r(6907));class l extends i.LayoutServiceBase{constructor(e){super(),this.serviceConfig=e,this.getFetchParams=e=>{var t;return{sc_apikey:this.serviceConfig.apiKey,sc_site:this.serviceConfig.siteName,sc_lang:e||"",tracking:null===(t=this.serviceConfig.tracking)||void 0===t||t}},this.getDefaultFetcher=(e,t)=>{let r={debugger:a.default.layout};e&&t&&(r.onReq=this.setupReqHeaders(e),r.onRes=this.setupResHeaders(t));let n=new o.AxiosDataFetcher(r);return(e,t)=>n.fetch(e,t)}}fetchLayoutData(e,t,r,n){let i=this.getFetchParams(t);a.default.layout("fetching layout data for %s %s %s",e,t,this.serviceConfig.siteName);let o=this.serviceConfig.dataFetcherResolver?this.serviceConfig.dataFetcherResolver(r,n):this.getDefaultFetcher(r,n),l=this.resolveLayoutServiceUrl("render");return(0,s.fetchData)(l,o,Object.assign({item:e},i)).catch(e=>{var t;if((null===(t=e.response)||void 0===t?void 0:t.status)===404)return e.response.data;throw e})}fetchPlaceholderData(e,t,r,n,i){let o=this.getFetchParams(r);a.default.layout("fetching placeholder data for %s %s %s %s",e,t,r,this.serviceConfig.siteName);let l=this.serviceConfig.dataFetcherResolver?this.serviceConfig.dataFetcherResolver(n,i):this.getDefaultFetcher(n,i),c=this.resolveLayoutServiceUrl("placeholder");return(0,s.fetchData)(c,l,Object.assign({placeholderName:e,item:t},o))}resolveLayoutServiceUrl(e){let{apiHost:t="",configurationName:r="jss"}=this.serviceConfig;return`${t}/sitecore/api/layout/${e}/${r}`}setupReqHeaders(e){return t=>(a.default.layout("performing request header passing"),t.headers.common=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.headers.common),e.headers.cookie&&{cookie:e.headers.cookie}),e.headers.referer&&{referer:e.headers.referer}),e.headers["user-agent"]&&{"user-agent":e.headers["user-agent"]}),e.connection.remoteAddress&&{"X-Forwarded-For":e.connection.remoteAddress}),t)}setupResHeaders(e){return t=>(a.default.layout("performing response header passing"),t.headers["set-cookie"]&&e.setHeader("set-cookie",t.headers["set-cookie"]),t)}}t.RestLayoutService=l},4158:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStylesheetUrl=t.getComponentLibraryStylesheetLinks=void 0;let n=r(2796),i=r(3204),o=/-library--([^\s]+)/;t.getComponentLibraryStylesheetLinks=function(e,r,n=i.SITECORE_EDGE_URL_DEFAULT){let o=new Set;return e.sitecore.route?(a(e.sitecore.route,o),[...o].map(e=>({href:(0,t.getStylesheetUrl)(e,r,n),rel:"stylesheet"}))):[]},t.getStylesheetUrl=(e,t,r=i.SITECORE_EDGE_URL_DEFAULT)=>`${r}/v1/files/components/styles/${e}.css?sitecoreContextId=${t}`;let s=(e,t)=>{e.map(e=>a(e,t))},a=(e,t)=>{var r,i,a,l,c,u,d;let p;"params"in e&&e.params&&(p=(null===(i=null===(r=e.params.CSSStyles)||void 0===r?void 0:r.match(o))||void 0===i?void 0:i[1])||(null===(l=null===(a=e.params.Styles)||void 0===a?void 0:a.match(o))||void 0===l?void 0:l[1])||e.params.LibraryId||void 0),!p&&"fields"in e&&e.fields&&(p=(null===(c=(0,n.getFieldValue)(e.fields,"CSSStyles","").match(o))||void 0===c?void 0:c[1])||(null===(u=(0,n.getFieldValue)(e.fields,"Styles","").match(o))||void 0===u?void 0:u[1])||(0,n.getFieldValue)(e.fields,"LibraryId","")||void 0),!p&&"attributes"in e&&"string"==typeof e.attributes.class&&(p=null===(d=e.attributes.class.match(o))||void 0===d?void 0:d[1]),p&&t.add(p);let h=e.placeholders||{};Object.keys(h).forEach(e=>{s(h[e],t)})}},682:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChildPlaceholder=t.getFieldValue=void 0,t.getFieldValue=function(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},t.getChildPlaceholder=function(e,t){return e&&t&&e.placeholders&&e.placeholders[t]?e.placeholders[t]:[]}},9585:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
51(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mediaApi=void 0;let s=o(r(9409));t.mediaApi=s},9409:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSrcSet=t.updateImageUrl=t.replaceMediaUrlPrefix=t.getRequiredParams=t.findEditorImageTag=void 0;let i=n(r(1540)),o=n(r(4564)),s=/<img([^>]+)\/>/i,a=/([^=\s]+)(="([^"]*)")?/gi,l=/\/([-~]{1})\/media\//i;t.findEditorImageTag=e=>{let t=e.match(s);if(!t||t.length<2)return null;let r={},n=a.exec(t[1]);for(;null!==n;)r[n[1]]=(0,i.default)(n[3]),n=a.exec(t[1]);return{imgTag:t[0],attrs:r}},t.getRequiredParams=e=>{let{rev:t,db:r,la:n,vs:i,ts:o}=e;return{rev:t,db:r,la:n,vs:i,ts:o}},t.replaceMediaUrlPrefix=(e,t=l)=>{let r=(0,o.default)(e,{},!0),n=t.exec(r.pathname);return n&&n.length>1&&r.set("pathname",r.pathname.replace(t,`/${n[1]}/jssmedia/`)),r.toString()},t.updateImageUrl=(e,r,n=l)=>{if(!r||0===Object.keys(r).length)return e;"undefined"==typeof window||window.global||(window.global={});let i=(0,o.default)((0,t.replaceMediaUrlPrefix)(e,n),{},!0),s=(0,t.getRequiredParams)(i.query),a=Object.assign({},r);return Object.entries(s).forEach(([e,t])=>{t&&(a[e]=t)}),i.set("query",a),i.toString()},t.getSrcSet=(e,r,n,i)=>r.map(r=>{let o=Object.assign(Object.assign({},n),r),s=o.w||o.mw;return s?`${(0,t.updateImageUrl)(e,o,i)} ${s}w`:null}).filter(e=>e).join(", ")},9369:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.trackingApi=void 0;let s=o(r(5721));t.trackingApi=s},5721:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trackEvent=t.checkStatus=void 0;let n=r(8996);class i extends Error{constructor(e,t){super(e),Object.setPrototypeOf(this,i.prototype),this.response=t}}function o(e){if(e.status>=200&&e.status<300)return e;throw new i(e.statusText,e)}t.checkStatus=o,t.trackEvent=function(e,t){let{querystringParams:r}=t;return!t.test&&(0,n.isServer)()?Promise.resolve():(Array.isArray(e)||(e=[e]),function(e,t,r,i={}){return r((0,n.resolveUrl)(e,i),t).then(o).then(e=>e.data)}(function(e){let{host:t="",serviceUrl:r="/sitecore/api/jss/track",action:n="event"}=e;return`${t}${r}/${n}`}(t),e,t.fetcher,r))}},309:function(e,t){"use strict";function r(e,t,r){if(!e.click||e.click.startsWith("javascript:")||e.click.startsWith("chrome:")||!t)return Object.assign({isDivider:!1,type:e.type||null,header:e.header||"",icon:e.icon||"",tooltip:e.tooltip||""},e);{let n=e.click,i={},o=e.click.indexOf("(");if(o>=0){let t=e.click.indexOf(")");if(t<0)throw Error('Message with arguments must end with ")".');i=e.click.substring(o+1,t).split(",").map(e=>e.trim()).reduce((e,t)=>{let r=t.split("=");return r.length<2?e[r[0]]="":e[r[0]]=r[1],e},{}),n=e.click.substring(0,o)}i.id=t,e.parameters&&Object.keys(e.parameters).forEach(t=>{var r;i[t]=(null===(r=e.parameters[t])||void 0===r?void 0:r.toString())||""}
51),r&&Object.keys(r).forEach(e=>{var t;i[e]=(null===(t=r[e])||void 0===t?void 0:t.toString())||""});let s=Object.keys(i).map(e=>`${e}=${i[e]}`).join(", "),a=`${n}(${s})`;return{isDivider:!1,click:`javascript:Sitecore.PageModes.PageEditor.postRequest('${a}',null,false)`,header:e.header||"",icon:e.icon||"",tooltip:e.tooltip||"",type:e.type||null}}}Object.defineProperty(t,"__esModule",{value:!0}),t.commandBuilder=t.mapButtonToCommand=t.DefaultEditFrameButtons=t.DefaultEditFrameButton=t.DefaultEditFrameButtonIds=void 0,t.DefaultEditFrameButtonIds={edit:"{70C4EED5-D4CD-4D7D-9763-80C42504F5E7}"},t.DefaultEditFrameButton={insert:{header:"Insert New",icon:"/~/icon/Office/16x16/insert_from_template.png",click:"webedit:new",tooltip:"Insert a new item"},editRelatedItem:{header:"Edit the related item",icon:"/~/icon/Office/16x16/cubes.png",click:"webedit:open",tooltip:"Edit the related item in the Content Editor."},edit:{header:"Edit Item",icon:"/~/icon/people/16x16/cubes_blue.png",fields:["Title","Text"],tooltip:"Edit the item fields."}},t.DefaultEditFrameButtons=[t.DefaultEditFrameButton.editRelatedItem,t.DefaultEditFrameButton.insert,t.DefaultEditFrameButton.edit],t.mapButtonToCommand=function(e,n,i){if("|"===e||e.isDivider)return{click:"chrome:dummy",header:"Separator",icon:"",isDivider:!0,tooltip:null,type:"separator"};if(void 0!==e.click)return r(e,n,i);{let o=e.fields.join("|");return r(Object.assign({click:`webedit:fieldeditor(command=${t.DefaultEditFrameButtonIds.edit},fields=${o})`},e),n,i)}},t.commandBuilder=r},2682:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.handleEditorAnchors=t.resetEditorChromes=t.isEditorActive=t.HorizonEditor=t.ChromeRediscoveryGlobalFunctionName=t.ExperienceEditor=void 0;let i=n(r(3641));class o{static isActive(){if((0,i.default)())return!1;let e=window.Sitecore;return!!(e&&e.PageModes&&e.PageModes.ChromeManager)}static resetChromes(){(0,i.default)()||window.Sitecore.PageModes.ChromeManager.resetChromes()}}t.ExperienceEditor=o,t.ChromeRediscoveryGlobalFunctionName={name:"Sitecore.Horizon.ResetChromes"};class s{static isActive(){return!(0,i.default)()&&window.location.search.indexOf("sc_horizon=editor")>-1}static resetChromes(){!(0,i.default)()&&window[t.ChromeRediscoveryGlobalFunctionName.name]&&window[t.ChromeRediscoveryGlobalFunctionName.name]()}}t.HorizonEditor=s,t.isEditorActive=()=>o.isActive()||s.isActive(),t.resetEditorChromes=()=>{o.isActive()?o.resetChromes():s.isActive()&&s.resetChromes()},t.handleEditorAnchors=()=>{if(!window||!o.isActive())return;let e=document.querySelector("body"),t=new MutationObserver(e=>{e.forEach(e=>{let t=document.querySelectorAll('.scChromeDropDown > a[href="#"], .scChromeDropDown > a[href="#!"], a[onclick]');"childList"===e.type&&t.forEach(e=>{e.href="javascript:void(0);"})})});e&&t.observe(e,{childList:!0,subtree:!0})}},5145:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tryParseEnvValue=void 0,t.tryParseEnvValue=(e,t)=>{if(!e)return t;if(e.startsWith("{")&&e.endsWith("}"))try{return JSON.parse(e)}catch(t){console.warn("Parsing of env variable failed"),console.warn(`Attempted to parse ${e}`)}return t}},8996:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mapButtonToCommand=t.DefaultEditFrameButtonIds=t.DefaultEditFrameButtons=t.DefaultEditFrameButton=t.handleEditorAnchors=t.resetEditorChromes=t.isEditorActive=t.HorizonEditor=t.ExperienceEditor=t.tryParseEnvValue=t.isTimeoutError=t.isAbsoluteUrl=t.resolveUrl=t.isServer=void 0;var i=r(3641);Object.defineProperty(t,"isServer",{enumerable:!0,get:function(){return n(i).default}});var o=r(3449);Object.defineProperty(t,"resolveUrl",{enumerable:!0,get:function(){return o.resolveUrl}}),Object.defineProperty(t,"isAbsoluteUrl",{enumerable:!0,get:function(){return o.isAbsoluteUrl}}),Object.defineProperty(t,"isTimeoutError",{enumerable:!0,get:function(){return o.isTimeoutError}});var s=r(5145);Object.defineProperty(t,"tryParseEnvValue",{enumerable:!0,get:function(){return s.tryParseEnvValue}});var a=r(2682);Object.defineProperty(t,"ExperienceEditor",{enumerable:!0,get:function(){return a.ExperienceEditor}}),Object.defineProperty(t,"HorizonEditor",{enumerable:!0,get:function(){return a.HorizonEditor}}),Object.defineProperty(t,"isEditorActive",{enumerable:!0,get:function(){return a.isEditorActive}}),Object.defineProperty(t,"resetEditorChromes",{enumerable:!0,get:function(){return a.resetEditorChromes}}),Object.defineProperty(t,"handleEditorAnchors",{enumerable:!0,get:function(){return a.handleEditorAnchors}});var l=r(309);Object.defineProperty(t,"DefaultEditFrameButton",{enumerable:!0,get:function(){return l.DefaultEditFrameButton}}),Object.defineProperty(t,"DefaultEditFrameButtons",{enumerable:!0,get:function(){return l.DefaultEditFrameButtons}}),Object.defineProperty(t,"DefaultEditFrameButtonIds",{enumerable:!0,get:function(){return l.DefaultEditFrameButtonIds}}),Object.defineProperty(t,"mapButtonToCommand",{enumerable:!0,get:function(){return l.mapButtonToCommand}})},3641:function(e,t){"use strict";
51Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"!=typeof window&&window.document)}},3627:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this.timeout=e,this.timeoutId=void 0}get start(){return new Promise((e,t)=>{this.timeoutId=setTimeout(()=>{let e=Error(`Request timed out, timeout of ${this.timeout}ms is exceeded`);e.name="AbortError",t(e)},this.timeout)})}clear(){this.timeoutId&&clearTimeout(this.timeoutId)}}t.default=r},3449:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isTimeoutError=t.isAbsoluteUrl=t.resolveUrl=void 0;let i=n(r(3641));t.resolveUrl=function(e,t={}){if(!e)throw RangeError("url must be a non-empty string");if((0,i.default)()){let r=new URL(e);for(let e in t)({}).hasOwnProperty.call(t,e)&&r.searchParams.append(e,String(t[e]));return r.toString()}let r=Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t[e]))}`).join("&");return -1!==e.indexOf("?")?`${e}&${r}`:`${e}?${r}`},t.isAbsoluteUrl=e=>{if(!e)return!1;if("string"!=typeof e)throw TypeError("Expected a string");return/^[a-z][a-z0-9+.-]*:/.test(e)},t.isTimeoutError=e=>{var t;return"408"===e.code||"ECONNABORTED"===e.code||"ETIMEDOUT"===e.code||(null===(t=e.response)||void 0===t?void 0:t.status)===408||"AbortError"===e.name}},1539:function(e,t,r){"use strict";var n,i;r.r(t),r.d(t,{FETCH_WITH:function(){return o},JSS_MODE:function(){return s},SITECORE_EDGE_URL_DEFAULT:function(){return l},SitecoreTemplateId:function(){return n},siteNameError:function(){return a}}),(i=n||(n={})).JssApp="061cba1554744b918a0617903b102b82",i.DictionaryEntry="6d1cd89719364a3aa511289a94c2a7b1";let o={GRAPHQL:"GraphQL",REST:"Rest"},s={CONNECTED:"connected",DISCONNECTED:"disconnected"},a="The siteName cannot be empty",l="https://edge-platform.sitecorecloud.io"},4671:function(e,t,r){e.exports=r(89)},7332:function(e,t,r){"use strict";var n=r(6951),i=r(9607),o=r(1882),s=r(7440),a=r(3687),l=r(2931),c=r(6101),u=r(5947);e.exports=function(e){return new Promise(function(t,r){var d=e.data,p=e.headers,h=e.responseType;n.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(m+":"+y)}var v=a(e.baseURL,e.url);function g(){if(f){var n="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null;i(t,r,{data:h&&"text"!==h&&"json"!==h?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:e,request:f}),f=null}}if(f.open(e.method.toUpperCase(),s(v,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(r(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){r(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},n.isStandardBrowserEnv()){var b=(e.withCredentials||c(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}"setRequestHeader"in f&&n.forEach(p,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),h&&"json"!==h&&(f.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),r(e),f=null)}),d||(d=null),f.send(d)})}},89:function(e,t,r){"use strict";var n=r(6951),i=r(870),o=r(741),s=r(9955);function a(e){var t=new o(e),r=i(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r}var l=a(r(9632));l.Axios=o,l.create=function(e){return a(s(l.defaults,e))},l.Cancel=r(8834),l.CancelToken=r(2809),l.isCancel=r(9003),l.all=function(e){return Promise.all(e)},l.spread=r(1494),l.isAxiosError=r(1632),e.exports=l,e.exports.default=l},8834:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")}
51,t.prototype.__CANCEL__=!0,e.exports=t},2809:function(e,t,r){"use strict";var n=r(8834);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},9003:function(e){"use strict";e.exports=function(e){return!!(e&&e.__CANCEL__)}},741:function(e,t,r){"use strict";var n=r(6951),i=r(7440),o=r(7948),s=r(8241),a=r(9955),l=r(1917),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t,r=e.transitional;void 0!==r&&l.assertOptions(r,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(e))&&(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var o=[];if(this.interceptors.response.forEach(function(e){o.push(e.fulfilled,e.rejected)}),!i){var u=[s,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),t=Promise.resolve(e);u.length;)t=t.then(u.shift(),u.shift());return t}for(var d=e;n.length;){var p=n.shift(),h=n.shift();try{d=p(d)}catch(e){h(e);break}}try{t=s(d)}catch(e){return Promise.reject(e)}for(;o.length;)t=t.then(o.shift(),o.shift());return t},u.prototype.getUri=function(e){return i((e=a(this.defaults,e)).url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}}),n.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}}),e.exports=u},7948:function(e,t,r){"use strict";var n=r(6951);function i(){this.handlers=[]}i.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},3687:function(e,t,r){"use strict";var n=r(9621),i=r(3390);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},5947:function(e,t,r){"use strict";var n=r(145);e.exports=function(e,t,r,i,o){return n(Error(e),t,r,i,o)}},8241:function(e,t,r){"use strict";var n=r(6951),i=r(2614),o=r(9003),s=r(9632);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return a(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t},function(t){return!o(t)&&(a(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},145:function(e){"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},9955:function(e,t,r){"use strict";var n=r(6951);e.exports=function(e,t){t=t||{};var r={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function c(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=l(void 0,e[i])):r[i]=l(e[i],t[i])}n.forEach(i,function(e){n.isUndefined(t[e])||(r[e]=l(void 0,t[e]))}
51),n.forEach(o,c),n.forEach(s,function(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=l(void 0,e[i])):r[i]=l(void 0,t[i])}),n.forEach(a,function(n){n in t?r[n]=l(e[n],t[n]):n in e&&(r[n]=l(void 0,e[n]))});var u=i.concat(o).concat(s).concat(a),d=Object.keys(e).concat(Object.keys(t)).filter(function(e){return -1===u.indexOf(e)});return n.forEach(d,c),r}},9607:function(e,t,r){"use strict";var n=r(5947);e.exports=function(e,t,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},2614:function(e,t,r){"use strict";var n=r(6951),i=r(9632);e.exports=function(e,t,r){var o=this||i;return n.forEach(r,function(r){e=r.call(o,e,t)}),e}},9632:function(e,t,r){"use strict";var n,i=r(4155),o=r(6951),s=r(6560),a=r(145),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?n=r(7332):void 0!==i&&"[object process]"===Object.prototype.toString.call(i)&&(n=r(7332)),n),transformRequest:[function(e,t){return(s(t,"Accept"),s(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,r){if(o.isString(e))try{return(0,JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(e){u.headers[e]={}}),o.forEach(["post","put","patch"],function(e){u.headers[e]=o.merge(l)}),e.exports=u},870:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},7440:function(e,t,r){"use strict";var n=r(6951);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var o,s=[];n.forEach(t,function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))}))}),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},3390:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},1882:function(e,t,r){"use strict";var n=r(6951);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9621:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},1632:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},6101:function(e,t,r){"use strict";var n=r(6951);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6560:function(e,t,r){"use strict";var n=r(6951);
51e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},2931:function(e,t,r){"use strict";var n=r(6951),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,s={};return e&&n.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t&&!(s[t]&&i.indexOf(t)>=0)&&("set-cookie"===t?s[t]=(s[t]?s[t]:[]).concat([r]):s[t]=s[t]?s[t]+", "+r:r)}),s}},1494:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1917:function(e,t,r){"use strict";var n=r(6940),i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var o={},s=n.version.split(".");function a(e,t){for(var r=t?t.split("."):s,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])break}return!1}i.transitional=function(e,t,r){var i=t&&a(t);function s(e,t){return"[Axios v"+n.version+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,a){if(!1===e)throw Error(s(n," has been removed in "+t));return i&&!o[n]&&(o[n]=!0,console.warn(s(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},e.exports={isOlderVersion:a,assertOptions:function(e,t,r){if("object"!=typeof e)throw TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],s=t[o];if(s){var a=e[o],l=void 0===a||s(a,o,e);if(!0!==l)throw TypeError("option "+o+" must be "+l);continue}if(!0!==r)throw Error("Unknown option "+o)}},validators:i}},6951:function(e,t,r){"use strict";var n=r(870),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:l,isUndefined:s,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return a(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function r(r,n){l(t[n])&&l(r)?t[n]=e(t[n],r):l(r)?t[n]=e({},r):o(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)u(arguments[n],r);return t},extend:function(e,t,r){return u(t,function(t,i){r&&"function"==typeof t?e[i]=n(t,r):e[i]=t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},9554:function(e){"use strict";e.exports=function(e){var t=e.uri,r=e.name,n=e.type;this.uri=t,this.name=r,this.type=n}},5572:function(e,t,r){"use strict";var n=r(1961);e.exports=function e(t,r,i){void 0===r&&(r=""),void 0===i&&(i=n);var o,s=new Map;function a(e,t){var r=s.get(t);r?r.push.apply(r,e):s.set(t,e)}if(i(t))o=null,a([r],t);else{var l=r?r+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)o=Array.prototype.map.call(t,function(e,t){return a([""+l+t],e),null});else if(Array.isArray(t))o=t.map(function(t,r){var n=e(t,""+l+r,i);
51return n.files.forEach(a),n.clone});else if(t&&t.constructor===Object)for(var c in o={},t){var u=e(t[c],""+l+c,i);u.files.forEach(a),o[c]=u.clone}else o=t}return{clone:o,files:s}}},7360:function(e,t,r){"use strict";t.ReactNativeFile=r(9554),t.extractFiles=r(5572),t.isExtractableFile=r(1961)},1961:function(e,t,r){"use strict";var n=r(9554);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof n}},3112:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},8683:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(7360),o=n(r(3112)),s=r(4277),a=function(e){return i.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,r,n){void 0===n&&(n=s.defaultJsonSerializer);var l=i.extractFiles({query:e,variables:t,operationName:r},"",a),c=l.clone,u=l.files;if(0===u.size){if(!Array.isArray(e))return n.stringify(c);if(void 0!==t&&!Array.isArray(t))throw Error("Cannot create request body with given variable type, array expected");var d=e.reduce(function(e,r,n){return e.push({query:r,variables:t?t[n]:void 0}),e},[]);return n.stringify(d)}var p=new("undefined"==typeof FormData?o.default:FormData);p.append("operations",n.stringify(c));var h={},f=0;return u.forEach(function(e){h[++f]=e}),p.append("map",n.stringify(h)),f=0,u.forEach(function(e,t){p.append(""+ ++f,t)}),p}},4277:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},9031:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;var s=r(5045),a=r(852),l="ping",c="pong",u="complete",d=function(){function e(e,t,r){this._type=e,this._payload=t,this._id=r}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){var e={type:this.type};return null!=this.id&&void 0!=this.id&&(e.id=this.id),null!=this.payload&&void 0!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}
51,enumerable:!1,configurable:!0}),e.parse=function(t,r){var n=JSON.parse(t),i=n.type,o=n.payload,s=n.id;return new e(i,r(o),s)},e}(),p=function(){function e(e,t){var r=this,a=t.onInit,p=t.onAcknowledged,m=t.onPing,y=t.onPong;this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.onopen=function(t){return i(r,void 0,void 0,function(){var t,r,n,i;return o(this,function(o){switch(o.label){case 0:if(this.socketState.acknowledged=!1,this.socketState.subscriptions={},r=(t=e).send,n=h,!a)return[3,2];return[4,a()];case 1:return i=o.sent(),[3,3];case 2:i=null,o.label=3;case 3:return r.apply(t,[n.apply(void 0,[i]).text]),[2]}})})},e.onclose=function(e){r.socketState.acknowledged=!1,r.socketState.subscriptions={}},e.onerror=function(e){console.error(e)},e.onmessage=function(t){try{var i,o,a=(i=t.data,void 0===o&&(o=function(e){return e}),d.parse(i,o));switch(a.type){case"connection_ack":r.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(r.socketState.acknowledged=!0,p&&p(a.payload));return;case l:m?m(a.payload).then(function(t){return e.send(f(t).text)}):e.send(f(null).text);return;case c:y&&y(a.payload);return}if(!r.socketState.acknowledged||void 0===a.id||null===a.id||!r.socketState.subscriptions[a.id])return;var h=r.socketState.subscriptions[a.id],v=h.query,g=h.variables,b=h.subscriber;switch(a.type){case"next":!a.payload.errors&&a.payload.data&&b.next&&b.next(a.payload.data),a.payload.errors&&b.error&&b.error(new s.ClientError(n(n({},a.payload),{status:200}),{query:v,variables:g}));return;case"error":b.error&&b.error(new s.ClientError({errors:a.payload,status:200},{query:v,variables:g}));return;case u:b.complete&&b.complete(),delete r.socketState.subscriptions[a.id];return}}catch(t){console.error(t),e.close(1006)}e.close(4400,"Unknown graphql-ws message.")}}return e.prototype.makeSubscribe=function(e,t,r,n){var i=this,o=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[o]={query:e,variables:r,subscriber:n},this.socket.send(new d("subscribe",{query:e,operationName:t,variables:r},o).text),function(){i.socket.send(new d(u,void 0,o).text),delete i.socketState.subscriptions[o]}},e.prototype.rawRequest=function(e,t){var r=this;return new Promise(function(n,i){var o;r.rawSubscribe(e,{next:function(e,t){return o={data:e,extensions:t}},error:i,complete:function(){return n(o)}},t)})},e.prototype.request=function(e,t){var r=this;return new Promise(function(n,i){var o;r.subscribe(e,{next:function(e){return o=e},error:i,complete:function(){return n(o)}},t)})},e.prototype.subscribe=function(e,t,r){var n=a.resolveRequestDocument(e),i=n.query,o=n.operationName;return this.makeSubscribe(i,o,r,t)},e.prototype.rawSubscribe=function(e,t,r){return this.makeSubscribe(e,void 0,r,t)},e.prototype.ping=function(e){this.socket.send(new d(l,e,void 0).text)},e.prototype.close=function(){this.socket.close(1e3)},e.PROTOCOL="graphql-transport-ws",e}();function h(e){return new d("connection_init",e)}function f(e){return new d(c,e,void 0)}t.GraphQLWebSocketClient=p},852:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},l=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
51function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},c=this&&this.__rest||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},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=t.gql=t.resolveRequestDocument=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var d=s(r(4098)),p=r(3140),h=r(5826),f=u(r(8683)),m=r(4277),y=r(3737),v=r(5045);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return v.ClientError}});var g=function(e){var t,r={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||e instanceof d.Headers?(t={},e.forEach(function(e,r){t[r]=e}),r=t):Array.isArray(e)?e.forEach(function(e){var t=e[0],n=e[1];r[t]=n}):r=e),r},b=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},E=function(e){var t=e.query,r=e.variables,n=e.operationName,i=e.jsonSerializer;if(!Array.isArray(t)){var o=["query="+encodeURIComponent(b(t))];return r&&o.push("variables="+encodeURIComponent(i.stringify(r))),n&&o.push("operationName="+encodeURIComponent(n)),o.join("&")}if(void 0!==r&&!Array.isArray(r))throw Error("Cannot create query with given variable type, array expected");var s=t.reduce(function(e,t,n){return e.push({query:b(t),variables:r?i.stringify(r[n]):void 0}),e},[]);return"query="+encodeURIComponent(i.stringify(s))},O=function(e){var t=e.url,r=e.query,i=e.variables,o=e.operationName,s=e.headers,c=e.fetch,u=e.fetchOptions;return a(void 0,void 0,void 0,function(){var e;return l(this,function(a){switch(a.label){case 0:return e=f.default(r,i,o,u.jsonSerializer),[4,c(t,n({method:"POST",headers:n(n({},"string"==typeof e?{"Content-Type":"application/json"}:{}),s),body:e},u))];case 1:return[2,a.sent()]}})})},w=function(e){var t=e.url,r=e.query,i=e.variables,o=e.operationName,s=e.headers,c=e.fetch,u=e.fetchOptions;return a(void 0,void 0,void 0,function(){return l(this,function(e){switch(e.label){case 0:return[4,c(t+"?"+E({query:r,variables:i,operationName:o,jsonSerializer:u.jsonSerializer}),n({method:"GET",headers:s},u))];case 1:return[2,e.sent()]}})})},C=function(){function e(e,t){this.url=e,this.options=t||{}}return e.prototype.rawRequest=function(e,t,r){return a(this,void 0,void 0,function(){var i,o,s,a,u,p,h,f,m,v;return l(this,function(l){return i=y.parseRawRequestArgs(e,t,r),s=(o=this.options).headers,u=void 0===(a=o.fetch)?d.default:a,h=void 0===(p=o.method)?"POST":p,f=c(o,["headers","fetch","method"]),m=this.url,void 0!==i.signal&&(f.signal=i.signal),v=A(i.query).operationName,[2,T({url:m,query:i.query,variables:i.variables,headers:n(n({},g(k(s))),g(i.requestHeaders)),operationName:v,fetch:u,method:h,fetchOptions:f})]})})},e.prototype.request=function(e,t,r){return a(this,void 0,void 0,function(){var i,o,s,a,u,p,h,f,m,v,b,E;return l(this,function(l){switch(l.label){case 0:return i=y.parseRequestArgs(e,t,r),s=(o=this.options).headers,u=void 0===(a=o.fetch)?d.default:a,h=void 0===(p=o.method)?"POST":p,f=c(o,["headers","fetch","method"]),m=this.url,void 0!==i.signal&&(f.signal=i.signal),b=(v=A(i.document)).query,E=v.operationName,[4,T({url:m,query:b,variables:i.variables,headers:n(n({},g(k(s))),g(i.requestHeaders)),operationName:E,fetch:u,method:h,fetchOptions:f})];case 1:return[2,l.sent().data]}})})},e.prototype.batchRequests=function(e,t){return a(this,void 0,void 0,function(){var r,i,o,s,a,u,p,h,f;return l(this,function(l){switch(l.label){case 0:return r=y.parseBatchRequestArgs(e,t),o=(i=this.options).headers,a=void 0===(s=i.fetch)?d.default:s,p=void 0===(u=i.method)?"POST":u,h=c(i,["headers","fetch","method"]),f=this.url,void 0!==r.signal&&(h.signal=r.signal),[4,T({url:f,query:r.documents.map(function(e){return A(e.document).query}),variables:r.documents.map(function(e){return e.variables}),headers:n(n({},g(k(o))),g(r.requestHeaders)),operationName:void 0,fetch:a,method:p,fetchOptions:h})];case 1:return[2,l.sent().data]}})})},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var r,n=this.options.headers;return n?n[e]=t:this.options.headers=((r={})[e]=t,r),this},e.prototype.setEndpoint=function(e){return this.url=e,this},e}();function T(e){var t=e.url,r=e.query,i=e.variables,o=e.headers,s=e.operationName,u=e.fetch,d=e.method,p=void 0===d?"POST":d,h=e.fetchOptions;return a(this,void 0,void 0,function(){var e,d,f,y,g,b,E,C,T,S,x;return l(this,function(A){switch(A.label){case 0:return e="POST"===p.toUpperCase()?O:w,d=Array.isArray(r),[4,e({url:t,query:r,variables:i,operationName:s,headers:o,fetch:u,fetchOptions:h})];case 1:return[4,function(e,t){return void 0===t&&(t=m.defaultJsonSerializer),a(this,void 0,void 0,function(){var r,n,i;return l(this,function(o){switch(o.label){case 0:if(e.headers.forEac
51h(function(e,t){"content-type"===t.toLowerCase()&&(r=e)}),!(r&&r.toLowerCase().startsWith("application/json")))return[3,2];return i=(n=t).parse,[4,e.text()];case 1:return[2,i.apply(n,[o.sent()])];case 2:return[2,e.text()]}})})}(f=A.sent(),h.jsonSerializer)];case 2:if(y=A.sent(),g=d&&Array.isArray(y)?!y.some(function(e){return!e.data}):!!y.data,b=!y.errors||"all"===h.errorPolicy||"ignore"===h.errorPolicy,f.ok&&b&&g)return E=f.headers,C=f.status,y.errors,T=c(y,["errors"]),S="ignore"===h.errorPolicy?T:y,[2,n(n({},d?{data:S}:S),{headers:E,status:C})];throw x="string"==typeof y?{error:y}:y,new v.ClientError(n(n({},x),{status:f.status,headers:f.headers}),{query:r,variables:i})}})})}function S(e,t,r,i){return a(this,void 0,void 0,function(){var o;return l(this,function(s){return[2,new C((o=y.parseRequestExtendedArgs(e,t,r,i)).url).request(n({},o))]})})}function x(e){var t,r=void 0,n=e.definitions.filter(function(e){return"OperationDefinition"===e.kind});return 1===n.length&&(r=null===(t=n[0].name)||void 0===t?void 0:t.value),r}function A(e){if("string"==typeof e){var t=void 0;try{var r=p.parse(e);t=x(r)}catch(e){}return{query:e,operationName:t}}var n=x(e);return{query:h.print(e),operationName:n}}function k(e){return"function"==typeof e?e():e}t.GraphQLClient=C,t.rawRequest=function(e,t,r,i){return a(this,void 0,void 0,function(){var o;return l(this,function(s){return[2,new C((o=y.parseRawRequestExtendedArgs(e,t,r,i)).url).rawRequest(n({},o))]})})},t.request=S,t.batchRequests=function(e,t,r){return a(this,void 0,void 0,function(){var i;return l(this,function(o){return[2,new C((i=y.parseBatchRequestsExtendedArgs(e,t,r)).url).batchRequests(n({},i))]})})},t.default=S,t.resolveRequestDocument=A,t.gql=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e.reduce(function(e,r,n){return""+e+r+(n in t?t[n]:"")},"")};var N=r(9031);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return N.GraphQLWebSocketClient}})},3737:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseBatchRequestsExtendedArgs=t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=function(e,t,r){return e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0}},t.parseRawRequestArgs=function(e,t,r){return e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0}},t.parseBatchRequestArgs=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}},t.parseRequestExtendedArgs=function(e,t,r,n){return e.document?e:{url:e,document:t,variables:r,requestHeaders:n,signal:void 0}},t.parseRawRequestExtendedArgs=function(e,t,r,n){return e.query?e:{url:e,query:t,variables:r,requestHeaders:n,signal:void 0}},t.parseBatchRequestsExtendedArgs=function(e,t,r){return e.documents?e:{url:e,documents:t,requestHeaders:r,signal:void 0}}},5045:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var i=function(e){function t(r,n){var i=this,o=t.extractMessage(r)+": "+JSON.stringify({response:r,request:n});return Object.setPrototypeOf(i=e.call(this,o)||this,t.prototype),i.response=r,i.request=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return n(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}},t}(Error);t.ClientError=i},7140:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var n=r(69),i=r(6671),o=r(7351);
51class s extends Error{constructor(e,...t){var r,o,l;let{nodes:c,source:u,positions:d,path:p,originalError:h,extensions:f}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=p?p:void 0,this.originalError=null!=h?h:void 0,this.nodes=a(Array.isArray(c)?c:c?[c]:void 0);let m=a(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=u?u:null==m?void 0:null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=d?d:null==m?void 0:m.map(e=>e.start),this.locations=d&&u?d.map(e=>(0,i.getLocation)(u,e)):null==m?void 0:m.map(e=>(0,i.getLocation)(e.source,e.start));let y=(0,n.isObjectLike)(null==h?void 0:h.extensions)?null==h?void 0:h.extensions:void 0;this.extensions=null!==(l=null!=f?f:y)&&void 0!==l?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function a(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=s},5163:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})};var n=r(7140)},9566:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!e)throw Error(t)}},6647:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t))return function(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";let n=Math.min(10,t.length),i=t.length-n,o=[];for(let i=0;i<n;++i)o.push(e(t[i],r));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,n);return function(t,r){let n=Object.entries(t);return 0===n.length?"{}":r.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]":"{ "+n.map(([t,n])=>t+": "+e(n,r)).join(", ")+" }"}(t,n)}(t,r);default:return String(t)}}(e,[])}},6957:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0;var n=r(6647);let i=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(r=e.constructor)||void 0===r?void 0:r.name)){let t=(0,n.inspect)(e);throw Error(`Cannot use ${i} "${t}" from another module or realm. 52 53Ensure that there is only one instance of "graphql" in the node_modules 54directory. If different versions of "graphql" are the dependencies of other 55relied on modules, use "resolutions" to ensure only one version is installed. 56 57https://yarnpkg.com/en/docs/selective-version-resolutions 58 59Duplicate "graphql" modules cannot be used at the same time since different 60versions may have different capabilities and behavior. The data from one 61version used in the function from another could produce confusing and 62spurious results.`)}}return!1};t.instanceOf=i},3834:function(e,t){"use strict";
62Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}},69:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},7629:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)};class i{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=i;class o{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=o;let s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=s;let a=new Set(Object.keys(s));t.OperationTypeNode=r,(n=r||(t.OperationTypeNode=r={})).QUERY="query",n.MUTATION="mutation",n.SUBSCRIPTION="subscription"},8627:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t,r;let i=Number.MAX_SAFE_INTEGER,o=null,s=-1;for(let t=0;t<e.length;++t){let a=e[t],l=function(e){let t=0;for(;t<e.length&&(0,n.isWhiteSpace)(e.charCodeAt(t));)++t;return t}(a);l!==a.length&&(o=null!==(r=o)&&void 0!==r?r:t,s=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?t:0,s+1)},t.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,r=!1,n=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,r=!1;break;case 9:case 32:r||(r=t);break;default:n&&(n=r),t=!1}return!t&&(!n||!i)},t.printBlockString=function(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.isWhiteSpace)(e.charCodeAt(0))),a=r.endsWith('\\"""'),l=e.endsWith('"')&&!a,c=e.endsWith("\\"),u=l||c,d=!(null!=t&&t.minimize)&&(!o||e.length>70||u||s||a),p="",h=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));return(d&&!h||s)&&(p+="\n"),p+=r,(d||u)&&(p+="\n"),'"""'+p+'"""'};var n=r(7551)},7551:function(e,t){"use strict";function r(e){return e>=48&&e<=57}function n(e){return e>=97&&e<=122||e>=65&&e<=90}
62Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=r,t.isLetter=n,t.isNameContinue=function(e){return n(e)||r(e)||95===e},t.isNameStart=function(e){return n(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}},4675:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=r,(n=r||(t.DirectiveLocation=r={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"},6062:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=r,(n=r||(t.Kind=r={})).NAME="Name",n.DOCUMENT="Document",n.OPERATION_DEFINITION="OperationDefinition",n.VARIABLE_DEFINITION="VariableDefinition",n.SELECTION_SET="SelectionSet",n.FIELD="Field",n.ARGUMENT="Argument",n.FRAGMENT_SPREAD="FragmentSpread",n.INLINE_FRAGMENT="InlineFragment",n.FRAGMENT_DEFINITION="FragmentDefinition",n.VARIABLE="Variable",n.INT="IntValue",n.FLOAT="FloatValue",n.STRING="StringValue",n.BOOLEAN="BooleanValue",n.NULL="NullValue",n.ENUM="EnumValue",n.LIST="ListValue",n.OBJECT="ObjectValue",n.OBJECT_FIELD="ObjectField",n.DIRECTIVE="Directive",n.NAMED_TYPE="NamedType",n.LIST_TYPE="ListType",n.NON_NULL_TYPE="NonNullType",n.SCHEMA_DEFINITION="SchemaDefinition",n.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",n.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",n.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",n.FIELD_DEFINITION="FieldDefinition",n.INPUT_VALUE_DEFINITION="InputValueDefinition",n.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",n.UNION_TYPE_DEFINITION="UnionTypeDefinition",n.ENUM_TYPE_DEFINITION="EnumTypeDefinition",n.ENUM_VALUE_DEFINITION="EnumValueDefinition",n.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",n.DIRECTIVE_DEFINITION="DirectiveDefinition",n.SCHEMA_EXTENSION="SchemaExtension",n.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",n.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",n.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",n.UNION_TYPE_EXTENSION="UnionTypeExtension",n.ENUM_TYPE_EXTENSION="EnumTypeExtension",n.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},100:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R};var n=r(5163),i=r(7629),o=r(8627),s=r(7551),a=r(7123);class l{constructor(e){let t=new i.Token(a.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,i=r.length,l=t;for(;l<i;){let t=r.charCodeAt(l);switch(t){case 65279:case 9:case 32:case 44:++l;continue;case 10:++l,++e.line,e.lineStart=l;continue;case 13:10===r.charCodeAt(l+1)?l+=2:++l,++e.line,e.lineStart=l;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if(10===e||13===e)break;if(c(e))++i;else if(u(r,i))i+=2;else break}return f(e,a.TokenKind.COMMENT,t,i,r.slice(t+1,i))}(e,l);case 33:return f(e,a.TokenKind.BANG,l,l+1);case 36:return f(e,a.TokenKind.DOLLAR,l,l+1);case 38:return f(e,a.TokenKind.AMP,l,l+1);case 40:return f(e,a.TokenKind.PAREN_L,l,l+1);case 41:return f(e,a.TokenKind.PAREN_R,l,l+1);case 46:if(46===r.charCodeAt(l+1)&&46===r.charCodeAt(l+2))return f(e,a.TokenKind.SPREAD,l,l+3);break;case 58:return f(e,a.TokenKind.COLON,l,l+1);case 61:return f(e,a.TokenKind.EQUALS,l,l+1);case 64:return f(e,a.TokenKind.AT,l,l+1);case 91:return f(e,a.TokenKind.BRACKET_L,l,l+1);case 93:return f(e,a.TokenKind.BRACKET_R,l,l+1);case 123:return f(e,a.TokenKind.BRACE_L,l,l+1);case 124:return f(e,a.TokenKind.PIPE,l,l+1);case 125:return f(e,a.TokenKind.BRACE_R,l,l+1);case 34:if(34===r.charCodeAt(l+1)&&34===r.charCodeAt(l+2))return function(e,t){let r=e.source.body,i=r.length,s=e.lineStart,l=t+3,d=l,p="",m=[];for(;l<i;){let i=r.charCodeAt(l);if(34===i&&34===r.charCodeAt(l+1)&&34===r.charCodeAt(l+2)){p+=r.slice(d,l),m.push(p);let n=f(e,a.TokenKind.BLOCK_STRING,t,l+3,(0,o.dedentBlockStringLines)(m).join("\n"));return e.line+=m.length-1,e.lineStart=s,n}if(92===i&&34===r.charCodeAt(l+1)&&34===r.charCodeAt(l+2)&&34===r.charCodeAt(l+3)){p+=r.slice(d,l),d=l+1,l+=4;continue}if(10===i||13===i){p+=r.slice(d,l),m.push(p),13===i&&10===r.charCodeAt(l+1)?l+=2:++l,p="",d=l,s=l;continue}if(c(i))++l;else if(u(r,l))l+=2;else throw(0,n.syntaxError)(e.source,l,`Invalid character within String: ${h(e,l)}.`)}throw(0,n.syntaxError)(e.source,l,"Unterminated string.")}(e,l);return function(e,t){let r=e.source.body,i=r.length,o=t+1,s=o,l="";for(;o<i;){let i=r.charCodeAt(o);if(34===i)return l+=r.slice(s,o),f(e,a.TokenKind.STRING,t,o+1,l);if(92===i){l+=r.slice(s,o);let t=117===r.charCodeAt(o+1)?123===r.charCodeAt(o+2)?function(e,t){let r=e.source.body,i=0,o=3;for(;o<12;){let e=r.charCodeAt(t+o++);if(125===e){if(o<5||!c(i))break;return{value:String.fromCodePoint(i),size:o}}if((i=i<<4|v(e))<0)break}throw(0,n.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+o)}".`)}(e,o):function(e,t){let r=e.source.body,i=y(r,t+2);if(c(i))return{value:String.fromCodePoint(i),size:6};if(d(i)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=y(r,t+8);
62if(p(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,n.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,o):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,o);l+=t.value,o+=t.size,s=o;continue}if(10===i||13===i)break;if(c(i))++o;else if(u(r,o))o+=2;else throw(0,n.syntaxError)(e.source,o,`Invalid character within String: ${h(e,o)}.`)}throw(0,n.syntaxError)(e.source,o,"Unterminated string.")}(e,l)}if((0,s.isDigit)(t)||45===t)return function(e,t,r){let i=e.source.body,o=t,l=r,c=!1;if(45===l&&(l=i.charCodeAt(++o)),48===l){if(l=i.charCodeAt(++o),(0,s.isDigit)(l))throw(0,n.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${h(e,o)}.`)}else o=m(e,o,l),l=i.charCodeAt(o);if(46===l&&(c=!0,l=i.charCodeAt(++o),o=m(e,o,l),l=i.charCodeAt(o)),(69===l||101===l)&&(c=!0,(43===(l=i.charCodeAt(++o))||45===l)&&(l=i.charCodeAt(++o)),o=m(e,o,l),l=i.charCodeAt(o)),46===l||(0,s.isNameStart)(l))throw(0,n.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${h(e,o)}.`);return f(e,c?a.TokenKind.FLOAT:a.TokenKind.INT,t,o,i.slice(t,o))}(e,l,t);if((0,s.isNameStart)(t))return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if((0,s.isNameContinue)(e))++i;else break}return f(e,a.TokenKind.NAME,t,i,r.slice(t,i))}(e,l);throw(0,n.syntaxError)(e.source,l,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":c(t)||u(r,l)?`Unexpected character: ${h(e,l)}.`:`Invalid character: ${h(e,l)}.`)}return f(e,a.TokenKind.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===a.TokenKind.COMMENT);return e}}function c(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function u(e,t){return d(e.charCodeAt(t))&&p(e.charCodeAt(t+1))}function d(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function h(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return a.TokenKind.EOF;
62if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function f(e,t,r,n,o){let s=e.line,a=1+r-e.lineStart;return new i.Token(t,r,n,s,a,o)}function m(e,t,r){if(!(0,s.isDigit)(r))throw(0,n.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${h(e,t)}.`);let i=e.source.body,o=t+1;for(;(0,s.isDigit)(i.charCodeAt(o));)++o;return o}function y(e,t){return v(e.charCodeAt(t))<<12|v(e.charCodeAt(t+1))<<8|v(e.charCodeAt(t+2))<<4|v(e.charCodeAt(t+3))}function v(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}t.Lexer=l},6671:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let r=0,o=1;for(let s of e.body.matchAll(i)){if("number"==typeof s.index||(0,n.invariant)(!1),s.index>=t)break;r=s.index+s[0].length,o+=1}return{line:o,column:t+1-r}};var n=r(3834);let i=/\r\n|[\n\r]/g},3140:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){return new u(e,t).parseDocument()},t.parseConstValue=function(e,t){let r=new u(e,t);r.expectToken(c.TokenKind.SOF);let n=r.parseConstValueLiteral();return r.expectToken(c.TokenKind.EOF),n},t.parseType=function(e,t){let r=new u(e,t);r.expectToken(c.TokenKind.SOF);let n=r.parseTypeReference();return r.expectToken(c.TokenKind.EOF),n},t.parseValue=function(e,t){let r=new u(e,t);r.expectToken(c.TokenKind.SOF);let n=r.parseValueLiteral(!1);return r.expectToken(c.TokenKind.EOF),n};var n=r(5163),i=r(7629),o=r(4675),s=r(6062),a=r(100),l=r(1916),c=r(7123);class u{constructor(e,t={}){let r=(0,l.isSource)(e)?e:new l.Source(e);this._lexer=new a.Lexer(r),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(c.TokenKind.NAME);return this.node(e,{kind:s.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:s.Kind.DOCUMENT,definitions:this.many(c.TokenKind.SOF,this.parseDefinition,c.TokenKind.EOF)})}parseDefinition(){if(this.peek(c.TokenKind.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===c.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(c.TokenKind.BRACE_L))return this.node(t,{kind:s.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseOperationType();return this.peek(c.TokenKind.NAME)&&(e=this.parseName()),this.node(t,{kind:s.Kind.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(c.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseVariableDefinition,c.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:s.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(c.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(c.TokenKind.DOLLAR),this.node(e,{kind:s.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:s.Kind.SELECTION_SET,selections:this.many(c.TokenKind.BRACE_L,this.parseSelection,c.TokenKind.BRACE_R)})}parseSelection(){return this.peek(c.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(c.TokenKind.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:s.Kind.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.TokenKind.PAREN_L,t,c.TokenKind.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:s.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(c.TokenKind.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(c.TokenKind.NAME)?this.node(e,{kind:s.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:s.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:s.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:s.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case c.TokenKind.BRACKET_L:return this.parseList(e);case c.TokenKind.BRACE_L:return this.parseObject(e);case c.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:s.Kind.INT,value:t.value});case c.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:s.Kind.FLOAT,value:t.value});case c.TokenKind.STRING:case c.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case c.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:s.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:s.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:s.Kind.NULL});default:return this.node(t,{kind:s.Kind.ENUM,value:t.value})}case c.TokenKind.DOLLAR:if(e){if(this.expectToken(c.TokenKind.DOLLAR),this._lexer.token.kind===c.TokenKind.NAME){let e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:s.Kind.STRING,value:e.value,block:e.kind===c.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:s.Kind.LIST,values:this.any(c.TokenKind.BRACKET_L,()=>this.parseValueLiteral(e),c.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:s.Kind.OBJECT,fields:this.any(c.TokenKind.BRACE_L,()=>this.parseObjectField(e),c.TokenKind.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:s.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(c.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(c.TokenKind.AT),this.node(t,{kind:s.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(c.TokenKind.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(c.TokenKind.BRACKET_R),e=this.node(t,{kind:s.Kind.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(c.TokenKind.BANG)?this.node(t,{kind:s.Kind.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:s.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.TokenKind.STRING)||this.peek(c.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);return this.node(e,{kind:s.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.TokenKind.COLON);let r=this.parseNamedType();return this.node(e,{kind:s.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:s.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseFieldDefinition,c.TokenKind.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(c.TokenKind.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:s.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseInputValueDef,c.TokenKind.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(c.TokenKind.COLON);let i=this.parseTypeReference();this.expectOptionalToken(c.TokenKind.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:s.Kind.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:s.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(c.TokenKind.EQUALS)?this.delimitedMany(c.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:s.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseEnumValueDefinition,c.TokenKind.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:s.Kind.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${d(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:s.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseInputValueDef,c.TokenKind.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===c.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:s.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:s.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDe
62finition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:s.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.TokenKind.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:s.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(c.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${p(e)}, found ${d(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===c.TokenKind.NAME&&t.value===e)this.advanceLexer();else throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${d(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===c.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${d(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==c.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function d(e){let t=e.value;return p(e.kind)+(null!=t?` "${t}"`:"")}function p(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=u},7351:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,n.getLocation)(e.source,e.start))},t.printSourceLocation=i;var n=r(6671);function i(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,s=e.locationOffset.line-1,a=t.line+s,l=1===t.line?r:0,c=t.column+l,u=`${e.name}:${a}:${c} 63`,d=n.split(/\r\n|[\n\r]/g),p=d[i];if(p.length>120){let e=Math.floor(c/80),t=[];for(let e=0;e<p.length;e+=80)t.push(p.slice(e,e+80));return u+o([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(c%80)],["|",t[e+1]]])}return u+o([[`${a-1} |`,d[i-1]],[`${a} |`,p],["|","^".padStart(c)],[`${a+1} |`,d[i+1]]])}function o(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}},1891:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(r,n)}"`};let r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function n(e){return i[e.charCodeAt(0)]}let i=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},5826:function(e,t,r){"use strict";
63Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,o.visit)(e,s)};var n=r(8627),i=r(1891),o=r(5108);let s={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>a(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=c("(",a(e.variableDefinitions,", "),")"),r=a([e.operation,a([e.name,t]),a(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+c(" = ",r)+c(" ",a(n," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=c("",e,": ")+t,s=o+c("(",a(r,", "),")");return s.length>80&&(s=o+c("(\n",u(a(r,"\n")),"\n)")),a([s,a(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+c(" ",a(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>a(["...",c("on ",e),a(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${c("(",a(r,", "),")")} on ${t} ${c("",a(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+a(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+a(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+c("(",a(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>c("",e,"\n")+a(["schema",a(t," "),l(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>c("",e,"\n")+a(["scalar",t,a(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>c("",e,"\n")+a(["type",t,c("implements ",a(r," & ")),a(n," "),l(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>c("",e,"\n")+t+(d(r)?c("(\n",u(a(r,"\n")),"\n)"):c("(",a(r,", "),")"))+": "+n+c(" ",a(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>c("",e,"\n")+a([t+": "+r,c("= ",n),a(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>c("",e,"\n")+a(["interface",t,c("implements ",a(r," & ")),a(n," "),l(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>c("",e,"\n")+a(["union",t,a(r," "),c("= ",a(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>c("",e,"\n")+a(["enum",t,a(r," "),l(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>c("",e,"\n")+a([t,a(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>c("",e,"\n")+a(["input",t,a(r," "),l(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>c("",e,"\n")+"directive @"+t+(d(r)?c("(\n",u(a(r,"\n")),"\n)"):c("(",a(r,", "),")"))+(n?" repeatable":"")+" on "+a(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>a(["extend schema",a(e," "),l(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>a(["extend scalar",e,a(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>a(["extend type",e,c("implements ",a(t," & ")),a(r," "),l(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>a(["extend interface",e,c("implements ",a(t," & ")),a(r," "),l(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>a(["extend union",e,a(t," "),c("= ",a(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>a(["extend enum",e,a(t," "),l(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>a(["extend input",e,a(t," "),l(r)]," ")}};function a(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function l(e){return c("{\n",u(a(e,"\n")),"\n}")}function c(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function u(e){return c(" ",e.replace(/\n/g,"\n "))}function d(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},1916:function(e,t,r){"use strict";
63Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,s)};var n=r(9566),i=r(6647),o=r(6957);class s{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,n.devAssert)(!1,`Body must be a string. Received: ${(0,i.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,n.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,n.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=s},7123:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=r,(n=r||(t.TokenKind=r={})).SOF="<SOF>",n.EOF="<EOF>",n.BANG="!",n.DOLLAR="$",n.AMP="&",n.PAREN_L="(",n.PAREN_R=")",n.SPREAD="...",n.COLON=":",n.EQUALS="=",n.AT="@",n.BRACKET_L="[",n.BRACKET_R="]",n.BRACE_L="{",n.PIPE="|",n.BRACE_R="}",n.NAME="Name",n.INT="Int",n.FLOAT="Float",n.STRING="String",n.BLOCK_STRING="BlockString",n.COMMENT="Comment"},5108:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=l,t.getVisitFn=function(e,t,r){let{enter:n,leave:i}=l(e,t);return r?i:n},t.visit=function(e,t,r=o.QueryDocumentKeys){let c,u,d;let p=new Map;for(let e of Object.values(s.Kind))p.set(e,l(t,e));let h=Array.isArray(e),f=[e],m=-1,y=[],v=e,g=[],b=[];do{var E,O,w;let e;let s=++m===f.length,l=s&&0!==y.length;if(s){if(u=0===b.length?void 0:g[g.length-1],v=d,d=b.pop(),l){if(h){v=v.slice();let e=0;for(let[t,r]of y){let n=t-e;null===r?(v.splice(n,1),e++):v[n]=r}}else for(let[e,t]of(v=Object.defineProperties({},Object.getOwnPropertyDescriptors(v)),y))v[e]=t}m=c.index,f=c.keys,y=c.edits,h=c.inArray,c=c.prev}else if(d){if(null==(v=d[u=h?m:f[m]]))continue;g.push(u)}if(!Array.isArray(v)){(0,o.isNode)(v)||(0,n.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(v)}.`);let r=s?null===(E=p.get(v.kind))||void 0===E?void 0:E.leave:null===(O=p.get(v.kind))||void 0===O?void 0:O.enter;if((e=null==r?void 0:r.call(t,v,u,d,g,b))===a)break;if(!1===e){if(!s){g.pop();continue}}else if(void 0!==e&&(y.push([u,e]),!s)){if((0,o.isNode)(e))v=e;else{g.pop();continue}}}void 0===e&&l&&y.push([u,v]),s?g.pop():(c={inArray:h,index:m,keys:f,edits:y,prev:c},f=(h=Array.isArray(v))?v:null!==(w=r[v.kind])&&void 0!==w?w:[],m=-1,y=[],d&&b.push(d),d=v)}while(void 0!==c);return 0!==y.length?y[y.length-1][1]:e},t.visitInParallel=function(e){let t=Array(e.length).fill(null),r=Object.create(null);for(let n of Object.values(s.Kind)){let i=!1,o=Array(e.length).fill(void 0),s=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:r,leave:a}=l(e[t],n);i||(i=null!=r||null!=a),o[t]=r,s[t]=a}if(!i)continue;let c={enter(...r){let n=r[0];for(let s=0;s<e.length;s++)if(null===t[s]){var i;let l=null===(i=o[s])||void 0===i?void 0:i.apply(e[s],r);if(!1===l)t[s]=n;else if(l===a)t[s]=a;else if(void 0!==l)return l}},leave(...r){let n=r[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;let n=null===(i=s[o])||void 0===i?void 0:i.apply(e[o],r);if(n===a)t[o]=a;else if(void 0!==n&&!1!==n)return n}else t[o]===n&&(t[o]=null)}};r[n]=c}return r};var n=r(9566),i=r(6647),o=r(7629),s=r(6062);let a=Object.freeze({});function l(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}t.BREAK=a},4098:function(e,t){var r="undefined"!=typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(e){var t={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}
63function a(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=u(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=c(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=u(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=o(e),t=s(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[o(e)]},l.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},l.prototype.set=function(e,t){this.map[o(e)]=s(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),a(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),a(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),a(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(e,t){var r,n,i=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new l(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),f.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function v(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},h.call(m.prototype),h.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var g=[301,302,303,307,308];v.redirect=function(e,t){if(-1===g.indexOf(t))throw RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function b(r,n){return new Promise(function(i,o){var s=new m(r,n);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
63h(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL"),i(new v("response"in a?a.response:a.responseText,r))},a.onerror=function(){o(TypeError("Network request failed"))},a.ontimeout=function(){o(TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),s.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)})}b.polyfill=!0,n.fetch||(n.fetch=b,n.Headers=l,n.Request=m,n.Response=v),e.Headers=l,e.Request=m,e.Response=v,e.fetch=b,Object.defineProperty(e,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill,(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},1227:function(e,t,r){let n;var i=r(4155);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")}catch(e){}return!e&&void 0!==i&&"env"in i&&(e=i.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(n=!1,()=>{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(2447)(t);let{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:function(e,t,r){e.exports=function(e){function t(e){let r,i,o;let s=null;function a(...e){if(!a.enabled)return;let n=Number(new Date),i=n-(r||n);a.diff=i,a.prev=r,a.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";o++;let i=t.formatters[n];if("function"==typeof i){let t=e[o];r=i.call(a,t),e.splice(o,1),o--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}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.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.slice(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let r,n;if("*"===e[e.length-1])return!0;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(7824),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}},6905:function(e){e.exports=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:i;return e===i?r:e}},1879:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;
63if(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=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var n,i,o,s=o[i];if(("_owner"!==s||!t.$$typeof)&&!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r}},1540:function(e,t,r){var n,i=1/0,o=/&(?:amp|lt|gt|quot|#39|#96);/g,s=RegExp(o.source),a="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,l="object"==typeof self&&self&&self.Object===Object&&self,c=a||l||Function("return this")(),u=(n={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},function(e){return null==n?void 0:n[e]}),d=Object.prototype.toString,p=c.Symbol,h=p?p.prototype:void 0,f=h?h.toString:void 0;e.exports=function(e){var t;return(e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==d.call(t))return f?f.call(e):"";var t,r=e+"";return"0"==r&&1/e==-i?"-0":r}(t))&&s.test(e)?e.replace(o,u):e}},7113:function(e){"use strict";function t(){var e=Object.create(null),t=0,r=0,n=0,i=!1;function o(t){n--,delete e[t]}this.put=function(t,r,s,a){if(i&&console.log("caching: %s = %j (@%s)",t,r,s),void 0!==s&&("number"!=typeof s||isNaN(s)||s<=0))throw Error("Cache timeout must be a positive number");if(void 0!==a&&"function"!=typeof a)throw Error("Cache timeout callback must be a function");var l=e[t];l?clearTimeout(l.timeout):n++;var c={value:r,expire:s+Date.now()};return isNaN(c.expire)||(c.timeout=setTimeout((function(){o(t),a&&a(t,r)}).bind(this),s)),e[t]=c,r},this.del=function(t){var r=!0,n=e[t];return n?(clearTimeout(n.timeout),!isNaN(n.expire)&&n.expire<Date.now()&&(r=!1)):r=!1,r&&o(t),r},this.clear=function(){for(var o in e)clearTimeout(e[o].timeout);n=0,e=Object.create(null),i&&(t=0,r=0)},this.get=function(o){var s=e[o];if(void 0!==s){if(isNaN(s.expire)||s.expire>=Date.now())return i&&t++,s.value;i&&r++,n--,delete e[o]}else i&&r++;return null},this.size=function(){return n},this.memsize=function(){var t,r=0;for(t in e)r++;return r},this.debug=function(e){i=e},this.hits=function(){return t},this.misses=function(){return r},this.keys=function(){return Object.keys(e)},this.exportJson=function(){var t={};for(var r in e){var n=e[r];t[r]={value:n.value,expire:n.expire||"NaN"}}return JSON.stringify(t)},this.importJson=function(t,r){var n=JSON.parse(t),o=Date.now(),s=r&&r.skipDuplicates;for(var a in n)if(n.hasOwnProperty(a)){if(s&&e[a]){i&&console.log("Skipping duplicate imported key '%s'",a);continue}var l=n[a],c=l.expire-o;if(c<=0){this.del(a);continue}c=c>0?c:void 0,this.put(a,l.value,c)}return this.size()}}e.exports=new t,e.exports.Cache=t},7824:function(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,o=typeof e;if("string"===o&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===o&&isFinite(e))return r.long?(n=Math.abs(e))>=864e5?t(e,n,864e5,"day"):n>=36e5?t(e,n,36e5,"hour"):n>=6e4?t(e,n,6e4,"minute"):n>
63=1e3?t(e,n,1e3,"second"):e+" ms":(i=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":i>=36e5?Math.round(e/36e5)+"h":i>=6e4?Math.round(e/6e4)+"m":i>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(2526)}])},4914:function(e,t,r){"use strict";r.d(t,{D:function(){return er}});var n,i,o,s,a,l,c={};r.r(c),r.d(c,{EVENTS_NAMESPACE:function(){return L},LIBRARY_VERSION:function(){return P},addToEventQueue:function(){return J},clearEventQueue:function(){return Q},event:function(){return X},form:function(){return Y},getBrowserId:function(){return _},getGuestId:function(){return et},identity:function(){return Z},init:function(){return U},pageView:function(){return ee},processEventQueue:function(){return W}});var u=r(8790),d=r(7752),p=r.n(d);function h(e,t,r){let n=`${e}=${t};`;return n+=` Max-Age=${r.maxAge}; SameSite=${r.sameSite};`+(r.secure?" Secure;":"")+(r.path?` Path=${r.path};`:"")+(r.domain?` Domain=${r.domain};`:""),n=n.substring(0,n.length-1)}async function f(e,t,r){if(!Number.isInteger(t)||t<0)throw Error(s.IV_0006);let n=new AbortController,i=n.signal,o=setTimeout(()=>{n.abort()},t);return fetch(e,{...r,signal:i}).then(e=>(clearTimeout(o),e)).catch(e=>{if("AbortError"===e.name)throw Error(s.IE_0002);return null})}function m(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}function y(e){let{currentKey:t,object:r}=e,n=e.newObject??{};for(let e in r){let i=r[e];void 0!==i&&("object"!=typeof i||Array.isArray(i)?n[t?`${t}_${e}`:e]=i:y({currentKey:`${t?`${t}_${e}`:e}`,newObject:n,object:i}))}return n}function v(e){try{return new Date(e+"Z").toISOString().substring(0,16)===e}catch(e){return!1}}(n=s||(s={})).IV_0006='[IV-0006] Incorrect value for "timeout". Set the value to an integer greater than or equal to 0.',n.IE_0002="[IE-0002] Timeout exceeded. The server did not respond within the allotted time.";let g="0.3.1",b="v1.2";async function E(e,t,r){let n;let i={headers:{"X-Library-Version":g}},o=`${e}/v1/events/${b}/browser/create.json?sitecoreContextId=${t}&client_key=`;if(n=void 0!==r?await f(o,r,i).then(e=>e&&e.json()||null).catch(e=>{if(e.message===s.IV_0006||e.message===s.IE_0002)throw Error(e.message);return null}):await fetch(o,i).then(e=>e.json()).catch(()=>void 0),!n?.ref)throw Error(a.IE_0003);let{ref:l,customer_ref:c}=n;return{browserId:l,guestId:c}}async function O(e,t,r){let n=`${r}/v1/events/${b}/browser/${e}/show.json?sitecoreContextId=${t}&client_key=&api_token=`,i=await fetch(n,{headers:{"X-Library-Version":g}}),o=await i.json();if(!i.ok){let{error_msg:e,moreInfo:t}=o;throw Error(`${e}, for more info: ${t}`)}if(!o.customer.ref)throw Error(a.IE_0011);return o.customer.ref}async function w(e){let t=function(e=730,t){return{domain:t,maxAge:86400*e,path:"/",sameSite:"None",secure:!0}}(e.cookieSettings.cookieExpiryDays,e.cookieSettings.cookieDomain),r=m(window.document.cookie,e.cookieSettings.cookieNames.browserId);if(r){if(m(window.document.cookie,e.cookieSettings.cookieNames.guestId))return;let n=await O(r.value,e.sitecoreEdgeContextId,e.sitecoreEdgeUrl);document.cookie=h(e.cookieSettings.cookieNames.guestId,n,t);return}let{browserId:n,guestId:i}=await E(e.sitecoreEdgeUrl,e.sitecoreEdgeContextId);document.cookie=h(e.cookieSettings.cookieNames.browserId,n,t),document.cookie=h(e.cookieSettings.cookieNames.guestId,i,t)}(i=a||(a={})).IE_0003='[IE-0003] Unable to set the "sc_{SitecoreEdgeContextId}" cookie because the browser ID could not be retrieved from the server. Make sure to set the correct values for "sitecoreEdgeContextId" and "siteName". If the issue persists, try again later or use try-catch blocks to handle this error.',i.IE_0008='[IE-0008] You must first initialize the "core" package. Run the "init" function.',i.IE_0011='[IE-0011] Unable to set the "sc_{SitecoreEdgeContextId}_personalize" cookie because the guest ID could not be retrieved from the server. Make sure to set the correct values for "sitecoreEdgeContextId" and "siteName". If the issue persists, try again later or use try-catch blocks to handle this error.',i.IV_0001='[IV-0001] Incorrect value for "sitecoreEdgeUrl". Set the value to a valid URL string.',i.MV_0001='[MV-0001] "sitecoreEdgeContextId" is required.',i.MV_0002='[MV-0002] "siteName" is required.';var C=r(1227),T=r.n(C),S=r(4155);S.env&&"true"===S.env.DEBUG_MULTILINE&&T().formatters&&T().formatters.o&&T().formatters.O&&(T().formatters.o=T().formatters.O);let x=null;function A(){if(!x)throw Error(a.IE_0008);return x}let k=null;async function N(e){T()("sitecore-cloudsdk:core")("coreClient library initialized"),null===x&&(x=function(e){!function(e){let{sitecoreEdgeContextId:t,siteName:r,sitecoreEdgeUrl:n}=e;if(!t||0===t.trim().length)throw Error(a.MV_0001);if(!r||0===r.trim().length)throw Error(a.MV_0002);if(void 0!==n)try{new URL(n)}catch(e){throw Error(a.IV_0001)}}(e);let{siteName:t,sitecoreEdgeContextId:r,cookieDomain:n,cookiePath:i,cookieExpiryDays:o,sitecoreEdgeUrl:s}=e;
63return{cookieSettings:{cookieDomain:n,cookieExpiryDays:o||730,cookieNames:{browserId:`sc_${r}`,guestId:`sc_${r}_personalize`},cookiePath:i||"/"},siteName:t,sitecoreEdgeContextId:r,sitecoreEdgeUrl:s??"https://edge-platform.sitecorecloud.io"}}(e)),e.enableBrowserCookie&&null===k&&(k=w(x)),await k}function _(){return function(e){let t=m(document.cookie,e);return t?.value??""}(A().cookieSettings.cookieNames.browserId)}function D(){return"undefined"==typeof window||window.document.documentElement.lang.length<=1?void 0:new Intl.Locale(window.document.documentElement.lang).language.toLocaleUpperCase()}function j(){return"undefined"==typeof window?"":"/"===window.location.pathname?"Home Page":window.location.pathname.split("/").pop()}function I(e,t){try{return e()}catch{throw Error(t)}}var R=JSON.parse('{"u2":"@sitecore-cloudsdk/events","i8":"0.3.1"}');let P=R.i8,F=`${R.u2} ${P}`;(o=l||(l={})).IE_0001='[IE-0001] The "window" object is not available on the server side. Use the "window" object only on the client side, and in the correct execution context.',o.IE_0004='[IE-0004] You must first initialize the "events/browser" module. Run the "init" function.',o.IE_0005='[IE-0005] You must first initialize the "events/server" module. Run the "init" function.',o.IV_0002='[IV-0002] Incorrect value for "dob". Format the value according to ISO 8601.',o.IV_0003='[IV-0003] Incorrect value for "email". Set the value to a valid email address.',o.IV_0004='[IV-0004] Incorrect value for "expiryDate". Format the value according to ISO 8601.',o.IV_0005='[IV-0005] "extensionData" supports maximum 50 attributes. Reduce the number of attributes.',o.MV_0003='[MV-0003] "identifiers" is required.';let L="sitecore-cloudsdk:events",M=null;async function U(e){if("undefined"==typeof window)throw Error(l.IE_0001);try{M=N(e),await M,T()(L)("eventsClient library initialized")}catch(e){throw T()(L)("Error on initializing eventsClient library: %o",e),M=null,Error(e)}window.Engage={...window.Engage,getBrowserId:()=>_(),versions:{...window.Engage?.versions,events:P}}}async function $(){if(null===M)throw Error(l.IE_0004);await M}class B{constructor(e,t){this.baseEventData=e,this.browserId=t,this.language=this.baseEventData.language??D(),this.page=this.baseEventData.page??j()}mapBaseEventPayload(){return{browser_id:this.browserId,channel:this.baseEventData.channel,client_key:"",currency:this.baseEventData.currency,language:this.language,page:this.page,pos:"",requested_at:new Date().toISOString()}}}class K extends B{constructor(e){let{channel:t,currency:r,language:n,page:i,extensionData:o}={...e.pageViewData};if(super({channel:t,currency:r,language:n,page:i},e.id),this.extensionData={},this.pageViewData=e.pageViewData,this.sendEvent=e.sendEvent,this.settings=e.settings,this.urlSearchParams=new URLSearchParams(decodeURI(e.searchParams)),o&&(this.extensionData=y({object:o})),Object.entries(this.extensionData).length>50)throw Error(l.IV_0005);this.includeUTMParameters=(e.pageViewData&&e.pageViewData.includeUTMParameters)??!0}getPageVariantId(e,t){return e?e:this.urlSearchParams.get("variantid")||t||null}getReferrer(){if(this.pageViewData?.referrer)return this.pageViewData.referrer;if("undefined"==typeof window||!K.isFirstPageView||!document.referrer)return null;let{hostname:e,href:t}=new URL(document.referrer);return window.location.hostname!==e?t:null}mapAttributes(){let e={type:"VIEW"},t=this.pageViewData&&this.getPageVariantId(this.pageViewData.pageVariantId,this.extensionData.pageVariantId);if(null!==t&&(e.ext={...e.ext,pageVariantId:t}),Object.keys(this.extensionData).length>0&&(delete this.extensionData.pageVariantId,e.ext={...e.ext,...this.extensionData}),this.includeUTMParameters){let t=this.getUTMParameters();e={...e,...t}}let r=this.getReferrer();return null!==r&&(e={...e,referrer:r}),this.pageViewData?.searchData&&(e.sc_search={data:this.pageViewData.searchData,metadata:{ut_api_version:"1.0"}}),e}async send(){let e=this.mapBaseEventPayload(),t=this.mapAttributes();return K.isFirstPageView=!1,await this.sendEvent({...e,...t},this.settings)}getUTMParameters(){let e={};
63return this.urlSearchParams.forEach((t,r)=>{let n=r.toLowerCase();0===n.indexOf("utm_")&&(e[n]=t)}),e}}K.isFirstPageView=!0;class q extends B{constructor(e){let{channel:t,currency:r,language:n,page:i,type:o,extensionData:s,searchData:a,...c}=e.eventData;super({channel:t,currency:r,language:n,page:i},e.id),this.extensionData={},this.sendEvent=e.sendEvent,this.settings=e.settings,this.customEventPayload={type:o,...c},s&&(this.extensionData=y({object:s}));let u=Object.entries(this.extensionData).length;if(u>50)throw Error(l.IV_0005);u>0&&(this.customEventPayload.ext=this.extensionData),a&&(this.customEventPayload.sc_search={data:a,metadata:{ut_api_version:"1.0"}})}async send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.customEventPayload,e);return await this.sendEvent(t,this.settings)}}class V extends B{constructor(e){let{channel:t,currency:r,language:n,page:i,extensionData:o}=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.settings=e.settings,o&&(this.extensionData=y({object:o})),this.numberOfExtensionDataProperties=Object.entries(this.extensionData).length,this.numberOfExtensionDataProperties>50)throw Error(l.IV_0005)}validateAttributes(e){var t;if(0===e.identifiers.length)throw Error(l.MV_0003);if(void 0!==e.dob&&!v(e.dob))throw Error(l.IV_0002);if(e.identifiers.forEach(e=>{if(e.expiryDate&&!v(e.expiryDate))throw Error(l.IV_0004)}),e.email&&(t=e.email,!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)))throw Error(l.IV_0003)}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 send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.mapAttributes(),e);return await this.sendEvent(t,this.settings)}}async function H(e,t){let r=`${t.sitecoreEdgeUrl}/v1/events/${b}/events?sitecoreContextId=${t.sitecoreEdgeContextId}&siteId=${t.siteName}`,n=Date.now(),i={},o={body:JSON.stringify(e),headers:{"Content-Type":"application/json","X-Client-Software-ID":F,"X-Library-Version":P},method:"POST"};return T()(L)("Events request: %s with options: %O",r,o),await fetch(r,o).then(e=>{let t;return t={},T().enabled(L)&&(t={headers:function(e={}){let t={};return"function"==typeof e.forEach?e.forEach((e,r)=>{t[r]=e}):Object.entries(e).forEach(([e,r])=>{t[e]=r}),t}(e.headers),redirected:e.redirected,status:e.status,statusText:e.statusText,url:e.url}),i=t,e.json()}).then(e=>(i.body=e,T()(L)("Events response in %dms : %O",Date.now()-n,i),e)).catch(e=>(T()(L)("Error: events response: %O",e),null))}class G{constructor(){this.key="EventQueue"}getEventQueue(){let e=this.getSessionStorage().getItem(this.key)??'""';try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}enqueueEvent(e){let t=this.getSessionStorage();e.eventData.page=e.eventData.page??j(),e.eventData.language=e.eventData.language??D(),new q({sendEvent:H,...e});let r=this.getEventQueue();r.push(e),t.setItem(this.key,JSON.stringify(r))}async sendAllEvents(){for(let e of this.getEventQueue())await new q({eventData:e.eventData,id:e.id,sendEvent:H,settings:e.settings}).send();this.clearQueue()}clearQueue(){this.getSessionStorage().removeItem(this.key)}getSessionStorage(){return sessionStorage}}let z=new G;async function J(e){await $();let t=I(A,l.IE_0004),r=_();z.enqueueEvent({eventData:e,id:r,settings:t})}async function W(){await $(),z.sendAllEvents()}async function Q(){await $(),z.clearQueue()}async function Y(e,t){await $();let r=I(A,l.IE_0004),n=_(),i=new q({eventData:{extensionData:{formId:e,interactionType:t.toUpperCase()},type:"FORM"},id:n,sendEvent:H,settings:r});return i.page=void 0,i.send()}async function X(e){await $();let t=I(A,l.IE_0004);return new q({eventData:e,id:_(),sendEvent:H,settings:t}).send()}async function Z(e){await $();let t=I(A,l.IE_0004);return new V({id:_(),identityData:e,sendEvent:H,settings:t}).send()}async function ee(e){await $();let t=I(A,l.IE_0004);return new K({id:_(),pageViewData:e,searchParams:window.location.search,sendEvent:H,settings:t}).send()}async function et(){await $();let e=I(A,l.IE_0004);return O(_(),e.sitecoreEdgeContextId,e.sitecoreEdgeUrl)}let er=new u._({sitecoreEdgeUrl:p().sitecoreEdgeUrl,sitecoreEdgeContextId:p().sitecoreEdgeContextId,siteName:p().sitecoreSiteName,sdks:{Events:{sdk:c,init:async e=>{await U({siteName:e.siteName,sitecoreEdgeUrl:e.sitecoreEdgeUrl,sitecoreEdgeContextId:e.sitecoreEdgeContextId,cookieDomain:window.location.hostname.replace(/^www\./,""),enableBrowserCookie:!0})}}}})},2526:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return m}});var n=r(5893),i=r(7294),o=r(6905);let s=/{{(.*?)}}/g;function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
63for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var l=(0,i.createContext)(),c=function(e){var t,r,n=(t="",r=e||{},{set(e,t){r[e]=Object.assign(r[e]||{},t)},locale:e=>t=e||t,table:e=>r[e],t(e,n,i){var a=o(r[i||t],e,"");return"function"==typeof a?a(n):"string"==typeof a?a.replace(s,(e,t,r)=>{for(e=0,r=n,t=t.trim().split(".");r&&e<t.length;)r=r[t[e++]];return null!=r?r:""}):a}});return{_onUpdate:function(){},t:n.t,table:n.table,set:n.set,locale:function(e){if(void 0===e)return n.locale();var t=n.locale(e);return this._onUpdate(),t},withPlural:function(e){var t=this;void 0===e&&(e={type:"ordinal"});var r=new Intl.PluralRules(n.locale(),e);return function(e,n){return Object.keys(n).map(function(e){if("number"==typeof n[e]){var i=r.select(n[e]);n[e]=t.t(e+"."+i)}}),t.t.apply(t,[e,n].concat([].slice.call(arguments,2)))}}}};function u(e){var t=e.children,r=e.locale,n=void 0===r?"en":r,o=e.lngDict,s=e.i18nInstance,u=(0,i.useState)(0)[1],d=(0,i.useMemo)(function(){var e=null!=s?s:c();return e._onUpdate=function(){return u(function(e){return e+1})},e.set(n,o),e.locale(n),e},[s]);return(0,i.useEffect)(function(){d.set(n,o),d.locale(n)},[n,o]),i.createElement(l.Provider,{value:a({},d)},t)}var d=r(4914),p=r(7752),h=r.n(p),f=e=>{var t,r,n,i;return d.D.init({siteName:(null===(t=e.site)||void 0===t?void 0:t.name)||h().sitecoreSiteName,pageState:null===(i=e.layoutData)||void 0===i?void 0:null===(n=i.sitecore)||void 0===n?void 0:null===(r=n.context)||void 0===r?void 0:r.pageState}),null},m=function(e){var t,r,o,s,a,l;let{Component:c,pageProps:d}=e,{dictionary:p,...h}=d,[m,y]=(0,i.useState)(null),v=null!==(l=null==d?void 0:null===(a=d.layoutData)||void 0===a?void 0:null===(s=a.sitecore)||void 0===s?void 0:null===(o=s.route)||void 0===o?void 0:null===(r=o.templateName)||void 0===r?void 0:null===(t=r.toLowerCase())||void 0===t?void 0:t.replaceAll(" ","-"))&&void 0!==l?l:"";return(0,i.useEffect)(()=>(m&&document.body.classList.remove(m),v&&(document.body.classList.add(v),y(v)),()=>{v&&document.body.classList.remove(v)}),[v,m]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f,{...d}),(0,n.jsx)(u,{lngDict:p,locale:d.locale,children:(0,n.jsx)(c,{...h})})]})}},7752:function(e,t,r){"use strict";var n=r(4155);let i={};i.sitecoreApiKey=n.env.SITECORE_API_KEY||"SU9kNTU0K3dKZVQ4M2lqMko4M1hTNHlxZjR3U01KR2VHd1UzcFdhd09lOD18YnVubmluZ3Nncm9mMjA4LWJ1bm5pbmdzbWljY2NlYi1wcm9kMzQxNy00YWU1",i.sitecoreApiHost=n.env.SITECORE_API_HOST||"",i.sitecoreSiteName=n.env.SITECORE_SITE_NAME||"Matador",i.graphQLEndpointPath=n.env.GRAPH_QL_ENDPOINT_PATH||"/sitecore/api/graph/edge",i.defaultLanguage=n.env.DEFAULT_LANGUAGE||"en",i.graphQLEndpoint=n.env.GRAPH_QL_ENDPOINT||"https://edge.sitecorecloud.io/api/graphql/v1",i.layoutServiceConfigurationName=n.env.LAYOUT_SERVICE_CONFIGURATION_NAME||"sxa-jss",i.publicUrl="https://www.matadorbbqs.com.au",i.googleMapClientId=n.env.GOOGLE_MAP_CLIENT_ID||"GTM-NTQF4FB5",i.revalidatePropsCacheTime=n.env.REVALIDATE_PROPS_CACHE_TIME||"172800",i.revalidateProductPropsCacheTime=n.env.REVALIDATE_PRODUCT_PROPS_CACHE_TIME||"21600",i.isEditingHost=n.env.IS_EDITING_HOST||"false",i.cacheTime=n.env.CACHE_TIME||"1800",i.searchAuthenticationUrl=n.env.SEARCH_AUTHENTICATION_URL||"https://api-apse2.rfksrv.com/account/1/access-token",i.searchApiKey=n.env.SEARCH_API_KEY||"01-766303e8-4138709460521dcd6810884a0c58b653758426fe",i.searchDiscoverUrl=n.env.SEARCH_DISCOVER_URL||"https://discover-apse2.sitecorecloud.io/discover/v2/",i.searchDomainId=n.env.SEARCH_DOMAIN_ID||"92491800",i.searchWidgetId=n.env.SEARCH_WIDGET_ID||"rfkid_7",i.logLevel=n.env.LOG_LEVEL||"WARN",i.bunningsWebsiteOrigin=n.env.BUNNINGS_WEBSITE_ORIGIN||"https://www.bunnings.com.au",i.bunningTradesWebsiteOrigin=n.env.BUNNING_TRADES_WEBSITE_ORIGIN||"",i.sitecoreEdgeUrl=n.env.SITECORE_EDGE_URL||"https://edge-platform.sitecorecloud.io",i.sitecoreEdgeContextId=n.env.SITECORE_EDGE_CONTEXT_ID||"4uGKiMJXV5oCiVriWH7lqh",i.sites=n.env.SITES||'[{"name":"Matador","hostName":"*","language":"en"}]',e.exports=i},4155:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}
63catch(e){r=s}}();var l=[],c=!1,u=-1;function d(){c&&n&&(c=!1,n.length?l=n.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(n=l,l=[];++u<t;)n&&n[u].run();u=-1,t=l.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new h(e,t)),1!==l.length||c||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},2703:function(e,t,r){"use strict";var n=r(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
63;return r.PropTypes=r,r}},5697:function(e,t,r){e.exports=r(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7129:function(e,t){"use strict";var r,n=Object.prototype.hasOwnProperty;function i(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){var i,s,a=[];for(s in"string"!=typeof(t=t||"")&&(t="?"),e)if(n.call(e,s)){if(!(i=e[s])&&(null===i||i===r||isNaN(i))&&(i=""),s=o(s),i=o(i),null===s||null===i)continue;a.push(s+"="+i)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=i(t[1]),s=i(t[2]);null===o||null===s||o in n||(n[o]=s)}return n}},7418:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},3469:function(e){e.exports.Qc=function(e,t){var r=(t=t||{}).preserveNumbers,n={};return(function(e){for(var t,r=[],n=0,i=/url\([^\)]+$/,o="";n<e.length;){if(-1===(t=e.indexOf(";",n))&&(t=e.length),o+=e.substring(n,t),i.test(o)){o+=";",n=t+1;continue}r.push(o),o="",n=t+1}return r})(e).map(function(e){return e.trim()}).filter(Boolean).forEach(function(e){var t,i=e.indexOf(":"),o=e.substr(0,i).trim(),s=e.substr(i+1).trim();r&&!isNaN(parseFloat(t=s))&&isFinite(t)&&(s=Number(s)),n[o]=s}),n}},4564:function(e,t,r){"use strict";var n=r(7418),i=r(7129),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(o,"")}var p=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function f(e){"undefined"!=typeof window?t=window:void 0!==r.g?t=r.g:"undefined"!=typeof self?t=self:t={};var t,n,i=t.location||{},o={},s=typeof(e=e||i);if("blob:"===e.protocol)o=new v(unescape(e.pathname),{});else if("string"===s)for(n in o=new v(e,{}),h)delete o[n];else if("object"===s){for(n in e)n in h||(o[n]=e[n]);void 0===o.slashes&&(o.slashes=a.test(e.href))}return o}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function y(e,t){e=(e=d(e)).replace(s,""),t=t||{};var r,n=c.exec(e),i=n[1]?n[1].toLowerCase():"",o=!!n[2],a=!!n[3],l=0;return o?a?(r=n[2]+n[3]+n[4],l=n[2].length+n[3].length):(r=n[2]+n[4],l=n[2].length):a?(r=n[3]+n[4],l=n[3].length):r=n[4],"file:"===i?l>=2&&(r=r.slice(2)):m(i)?r=n[4]:i?o&&(r=r.slice(2)):l>=2&&m(t.protocol)&&(r=n[4]),{protocol:i,slashes:o||m(i),slashesCount:l,rest:r}}function v(e,t,r){if(e=(e=d(e)).replace(s,""),!(this instanceof v))return new v(e,t,r);var o,a,l,c,h,g,b=p.slice(),E=typeof t,O=0;for("object"!==E&&"string"!==E&&(r=t,t=null),r&&"function"!=typeof r&&(r=i.parse),o=!(a=y(e||"",t=f(t))).protocol&&!a.slashes,this.slashes=a.slashes||o&&t.slashes,this.protocol=a.protocol||t.protocol||"",e=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||u.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!m(this.protocol)))&&(b[3]=[/(.*)/,"pathname"]);O<b.length;O++){if("function"==typeof(c=b[O])){e=c(e,this);continue}l=c[0],g=c[1],l!=l?this[g]=e:"string"==typeof l?~(h="@"===l?e.lastIndexOf(l):e.indexOf(l))&&("number"==typeof c[2]?(this[g]=e.slice(0,h),e=e.slice(h+c[2])):(this[g]=e.slice(h),e=e.slice(0,h))):(h=l.exec(e))&&(this[g]=h[1],e=e.slice(0,h.index)),this[g]=this[g]||o&&c[3]&&t[g]||"",c[4]&&(this[g]=this[g].toLowerCase())}r&&(this.query=r(this.query)),o&&t.slashes&&"/"!==this.pathname.charAt(0)&&(""!==this.pathname||""!==t.pathname)&&(this.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,i=r[n-1],o=!1,s=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),s++):s&&(0===n&&(o=!0),r.splice(n,1),s--);return o&&r.unshift(""),("."===i||".."===i)&&r.push(""),r.join("/")}(this.pathname,t.pathname)),"/"!==this.pathname.charAt(0)&&m(this.protocol)&&(this.pathname="/"+this.pathname),n(this.port,this.protocol)||(this.host=this.hostname,this.port=""),this.username=this.password="",this.auth&&(~(h=this.auth.indexOf(":"))?(this.username=this.auth.slice(0,h),this.username=encodeURIComponent(decodeURIComponent(this.username)),this.password=this.auth.slice(h+1),this.password=encodeURIComponent(decodeURIComponent(this.password))):this.username=encodeURIComponent(decodeURIComponent(this.auth)),this.auth=this.password?this.username+":"+this.password:this.username),this.origin="file:"!==this.protocol&&m(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString()}v.prototype={set:function(e,t,r){switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||i.parse)(t)),this[e]=t;break;case"port":this[e]=t,n(t,this.protocol)?t&&(this.host=this.hostname+":"+t):(this.host=this.hostname,this[e]="");break;case"hostname":this[e]=t,this.port&&(t+=":"+this.port),this.host=t;break;case"host":this[e]=t,l.test(t)?(t=t.split(":"),this.port=t.pop(),this.hostname=t.join(":")):(this.hostname=t,this.port="");break;case"protocol":this.protocol=t.toLowerCase(),this.slashes=!r;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";this[e]=t.charAt(0)!==o?o+t:t}else this[e]=t;break;case"username":case"password":this[e]=encodeURIComponent(t);break;case"auth":var s=t.indexOf(":");~s?(this.username=t.slice(0,s),this.username=encodeURIComponent(decodeURIComponent(this.username)),this.password=t.slice(s+1),this.password=encodeURIComponent(decodeURIComponent(this.password))):this.username=encodeURIComponent(decodeURIComponent(t))}for(var a=0;a<p.length;a++){var c=p[a];c[4]&&(this[c[1]]=this[c[1]].toLowerCase())}return this.auth=this.password?this.username+":"+this.password:this.username,this.origin="file:"!==this.protocol&&m(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString(),this},toString:function(e){e&&"function"==typeof e||(e=i.stringify);var t,r=this.host,n=this.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var o=n+(this.protocol&&this.slashes||m(this.protocol)?"//":"");return this.username?(o+=this.username,this.password&&(o+=":"+this.password),o+="@"):this.password?o+=":"+this.password+"@":"file:"!==this.protocol&&m(this.protocol)&&!r&&"/"!==this.pathname&&(o+="@"),(":"===r[r.length-1]||l.test(this.hostname)&&!this.port)&&(r+=":"),o+=r+this.pathname,(t="object"==typeof this.query?e(this.query):this.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),this.hash&&(o+=this.hash),o}},v.extractProtocol=y,v.location=f,v.trimLeft=d,v.qs=i,e.exports=v},4351:function(e,t,r){"use strict";r.d(t,{wA:function(){return ty},sY:function(){return ep},Jp:function(){return tm},cd:function(){return tf},v4:function(){return tp}
63,hj:function(){return eM},Xq:function(){return th},he:function(){return td}});var n,i=r(3143),o=r(7294),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},a=null,l=null;function c(e){return 0==Object.keys(e).length?o.createElement(o.Fragment,null):l&&!e._dynamic?function(e){let{componentName:t,clientFallback:r}=e,n=s(e,["componentName","clientFallback"]),c=null===(h=(0,i.Xr)(t))||void 0===h?void 0:h.component,d=o.useMemo(()=>o.createElement(u,Object.assign({},n,{componentName:t})),[]),p=o.useMemo(()=>l(()=>Promise.resolve(a),{ssr:!1,loading:()=>d}),[]);var h,f="undefined"==typeof window?JSON.parse(JSON.stringify(n)):n;return o.createElement(p,Object.assign({},f,{componentName:t,fallbackWrapper:!c,fallback:c?d:r?o.createElement(l(()=>Promise.resolve(()=>r),{ssr:!1})):e.fallback}))}(Object.assign({_dynamic:!0},e)):u(e)}
63function u(e){let{componentName:t,fallback:r,fallbackWrapper:n}=e,s=(0,i.Xr)(t),a=null==s?void 0:s.component,{attributes:l,properties:c,merged:u}=(0,i.zB)(e);if(!a&&r||!t)return!1===n?o.createElement(o.Fragment,null,r):o.createElement("feaas-external",Object.assign({},l,{hydrate:"false"}),r);if(s&&a&&(0,i.Rj)(a)){let e="byoc-"+(0,i.mA)(s.id);return o.createElement(e,Object.assign(Object.assign({},l),{ref:t=>{var r;t&&"undefined"!=typeof window&&(null===(r=window.customElements)||void 0===r||r.whenDefined(e).then(()=>{var e;null===(e=t.sitecoreContextCallback)||void 0===e||e.call(t,Object.assign({},u))}))}}))}return o.createElement(o.Fragment,null,o.createElement("feaas-external",Object.assign({},l,{hydrate:"false"}),null==a?null:o.createElement(a,Object.assign({},u))))}var d=r(3935),p=Object.defineProperty,h=(e,t)=>{for(var r in t)p(e,r,{get:t[r],enumerable:!0})},f={};h(f,{renderDOMContent:()=>ei,renderDOMElement:()=>er,renderHTMLContent:()=>eo,setDOMAttribute:()=>ee});var m={};function y(e){return(y="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 v(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function g(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 b(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(){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 C(e,t,r){return(C=w()?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&&O(i,r.prototype),i}).apply(null,arguments)}function T(e){var t="function"==typeof Map?new Map:void 0;return(T=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 C(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),O(r,e)})(e)}function S(e,t){if(e){if("string"==typeof e)return x(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 x(e,t)}}function x(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}h(m,{JSONPath:()=>D,queryObject:()=>P,queryObjectRaw:()=>R,queryScopes:()=>F,serializeCH1RichText:()=>M});var A=Object.prototype.hasOwnProperty;function k(e,t){return(e=e.slice()).push(t),e}function N(e,t){return(t=t.slice()).unshift(e),t}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(n,e);var t,r=(t=w(),function(){var e,r=E(n);return e=t?Reflect.construct(r,arguments,E(this).constructor):r.apply(this,arguments),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function n(e){var t;return v(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 b(n)}(T(Error));function D(e,t,r,n,i){if(!(this instanceof D))try{return new D(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 o=e&&"object"===y(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=!A.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 s={path:o?e.path:t};o?"json"in e&&(s.json=e.json):s.json=r;var a=this.evaluate(s);if(!a||"object"!==y(a))throw new _(a);return a}}D.prototype.evaluate=function(e,t,r,n){var i=this,o=this.parent,s=this.parentProperty,a=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"===y(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(!A.call(e,"json"))throw TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');t=e.json,a=A.call(e,"flatten")?e.flatten:a,this.currResultType=A.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=A.call(e,"sandbox")?e.sandbox:this.currSandbox,l=A.call(e,"wrap")?e.wrap:l,this.currPreventEval=A.call(e,"preventEval")?e.preventEval:this.currPreventEval,r=A.call(e,"callback")?e.callback:r,this.currOtherTypeCallback=A.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,o=A.call(e,"parent")?e.parent:o,s=A.call(e,"parentProperty")?e.parentProperty:s,e=e.path}if(o=o||null,s=s||null,Array.isArray(e)&&(e=D.toPathString(e)),!(!e&&""!==e||!t)){var c=D.toPathArray(e);"$"===c[0]&&c.length>1&&c.shift(),this._hasParentSelector=null;var u=this._trace(c,t,["$"],o,s,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 a&&Array.isArray(r)?e=e.concat(r):e.push(r),e},[]):this._getPreferredOutput(u[0]):l?[]:void 0}},D.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:D.toPathArray(e.path);
63return e.pointer=D.toPointer(r),e.path="string"==typeof e.path?e.path:D.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return D.toPathString(e[t]);case"pointer":return D.toPointer(e.path);default:throw TypeError("Unknown result type")}},D.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:D.toPathString(e.path),t(n,r,e)}},D.prototype._trace=function(e,t,r,n,i,o,s,a){var l,c=this;if(!e.length)return l={path:r,value:t,parent:n,parentProperty:i,hasArrExpr:s},this._handleCallback(l,o,"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||a)&&t&&A.call(t,u))h(this._trace(d,t[u],k(r,u),t,u,o,s));else if("*"===u)this._walk(t,function(e){h(c._trace(d,t[e],k(r,e),t,e,o,!0,!0))});else if(".."===u)h(this._trace(d,t,r,n,i,o,s)),this._walk(t,function(n){"object"===y(t[n])&&h(c._trace(e.slice(),t[n],k(r,n),t,n,o,!0))});else{if("^"===u)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:d,isParentSelector:!0};if("~"===u)return l={path:k(r,u),value:i,parent:n,parentProperty:null},this._handleCallback(l,o,"property"),l;if("$"===u)h(this._trace(d,t,r,null,null,o,s));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(u))h(this._slice(u,d,t,r,n,i,o));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],k(r,e),t,e,o,!0))})}else if("("===u[0]){if(this.currPreventEval)throw Error("Eval [(expr)] prevented in JSONPath expression.");h(this._trace(N(this._eval(u,t,r[r.length-1],r.slice(0,-1),n,i),d),t,r,n,i,o,s))}else if("@"===u[0]){var m=!1,v=u.slice(1,-2);switch(v){case"scalar":t&&["object","function"].includes(y(t))||(m=!0);break;case"boolean":case"string":case"undefined":case"function":y(t)===v&&(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&&y(t)===v&&(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 "+v)}if(m)return l={path:r,value:t,parent:n,parentProperty:i},this._handleCallback(l,o,"value"),l}else if("`"===u[0]&&t&&A.call(t,u.slice(1))){var g=u.slice(1);h(this._trace(d,t[g],k(r,g),t,g,o,s,!0))}else if(u.includes(",")){var b,E=function(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=S(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 64In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}(u.split(","));try{for(E.s();!(b=E.n()).done;){var O=b.value;h(this._trace(N(O,d),t,r,n,i,o,!0))}}catch(e){E.e(e)}finally{E.f()}}else!a&&t&&A.call(t,u)&&h(this._trace(d,t[u],k(r,u),t,u,o,s,!0))}if(this._hasParentSelector)for(var w=0;w<p.length;w++){var C=p[w];if(C&&C.isParentSelector){var T=this._trace(C.expr,t,C.path,n,i,o,s);if(Array.isArray(T)){p[w]=T[0];for(var x=T.length,_=1;_<x;_++)w++,p.splice(w,0,T[_])}else p[w]=T}}return p},D.prototype._walk=function(e,t){if(Array.isArray(e))for(var r=e.length,n=0;n<r;n++)t(n);else e&&"object"===y(e)&&Object.keys(e).forEach(function(e){t(e)})},D.prototype._slice=function(e,t,r,n,i,o,s){if(Array.isArray(r)){var a=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])||a;u=u<0?Math.max(0,u+a):Math.min(a,u),d=d<0?Math.max(0,d+a):Math.min(a,d);for(var p=[],h=u;h<d;
64h+=c)this._trace(N(h,t),r,n,i,o,s,!0).forEach(function(e){p.push(e)});return p}},D.prototype._eval=function(e,t,r,n,i,o){this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=i,this.currSandbox._$_property=r,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;var s=e.includes("@path");s&&(this.currSandbox._$_path=D.toPathString(n.concat([r])));var a="script:"+e;if(!D.cache[a]){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");s&&(l=l.replace(/@path/g,"_$_path")),D.cache[a]=new this.vm.Script(l)}try{return D.cache[a].runInNewContext(this.currSandbox)}catch(t){throw Error("jsonPath: "+t.message+": "+e)}},D.cache={},D.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},D.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},D.toPathArray=function(e){var t=D.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 j=function(e,t,r){for(var n=e.length,i=0;i<n;i++)r(e[i])&&t.push(e.splice(i--,1)[0])},I=function(){function e(t){v(this,e),this.code=t}return b(e,[{key:"runInNewContext",value:function(e){var t=this.code,r=Object.keys(e),n=[];j(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 o=(t=t.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/,"")).lastIndexOf(";"),s=o>-1?t.slice(0,o+1)+" return "+t.slice(o+1):" return "+t;return C(Function,r.concat([s])).apply(void 0,function(e){if(Array.isArray(e))return x(e)}(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||S(i)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. 65In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())}}]),e}();function R(e,t){try{return D({path:t,json:e})}catch(e){return[]}}function P(e,t,r=!0){let n=R(e,t)||[];return r?n.flat(1/0):n}function F(e,t,r=!1,n=e,i=!0){var o=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}o=t.substring(i.length+1),n=e[i];break}var s=P(n,o,i);return 0==s.length&&(s=[o.replace(/^.*?\./,"_."),o.replace(/^.*?\./,""),o.replace(/^([^.]+).*?\.\$([\.\[])/,"$1$2"),o.replace(/^.*?\.\$([\.\[])/,"_$1"),o.replace(/^.*?\.\$([\.\[])/,"$$$1"),o.replace(/^[^.]+$/,"_")].filter((e,t,r)=>r.indexOf(e)===t).reduce((e,t)=>e.length>0?e:P(n,t,i),[])),r?s[0]:s}function L(e,t={},r){return r?`<${r}${Object.entries(t).map(([e,t])=>null!=t&&` ${e}="${t}
65"`).filter(Boolean).join("")}>${M(e)}</${r}>`.replace(/^<([a-z0-9][^>]*)><\/[^>]+>$/,"<$1 />"):M(e)}function M(e){var t;if(Array.isArray(e))return e.map(M).join(` 66`).trim();if("string"==typeof e)return e;if(null==e)return"";switch(e.type){case"heading":let{level:r,...n}=e.attrs;return L(e.content,n,"h"+r);case"text":return(e.marks||[]).reduce((e,t)=>L(e,t.attrs,{link:"a",bold:"strong",italic:"em",strike:"s",underline:"u"}[t.type]),null===(t=e.text)||void 0===t?void 0:t.replace(/\s+/," "));default:return L(e.content||e.text,e.attrs,{bulletList:"ul",orderedList:"ol",listItem:"li",horizontalRule:"hr",paragraph:"p",codeBlock:"code",blockquote:"blockquote"}[e.type])}}function U(e){let t=new e.ownerDocument.defaultView.MutationObserver(e=>{e.forEach(e=>{let t=e.target,r=t.getAttribute("data-embed-src");r&&B(t,r),e.addedNodes&&e.addedNodes.forEach(e=>{1==e.nodeType&&$(e,!1)})})});return t.observe(e,{attributes:!0,subtree:!0,childList:!0}),t}function $(e,t=!0){let r=e.querySelectorAll("[data-embed-src]");for(var n=0;n<r.length;n++){let e=r[n];B(e,e.getAttribute("data-embed-src"))}if(t)return U(e)}function B(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}}D.prototype.vm={Script:I};var K={};h(K,{adjustNumbers:()=>J,cleanCollectionBit:()=>G,getHumanizedLabel:()=>W,getLastPathBit:()=>Q,getQualifier:()=>H,normalizeCollectionScope:()=>z,parseLimit:()=>q,parseRange:()=>V});var q=e=>{var t;let r=parseInt(null===(t=null==e?void 0:e.match(/\[0:(\d+)\]/))||void 0===t?void 0:t[1],10);return!isNaN(r)&&r>0?String(r):null},V=e=>{var t;let r=null===(t=null==e?void 0:e.match(/\[([^\]]+)\]/))||void 0===t?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},H=e=>{var t;return null===(t=null==e?void 0:e.match(/(\.\*|\[[^\]]*\])$/))||void 0===t?void 0:t[0]};function G(e){return e.replace(/(\.?\[[^\]\[]*\]|\.\*)$/g,"")}function z(e){return G(e)+".*"}function J(e,t){return null==e?void 0:e.replace(/(.|^)(\d+)/g,(e,r,n)=>r+(":"==r?n:String(parseInt(n)+t)))}function W(e,t=2){var r=G(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 Q(e){return G(e).split(".").pop()}var Y=["January","February","March","April","May","June","July","August","September","October","November","December"],X=e=>{if(!e||"function"!=typeof e.getDay)return;let t=e.getFullYear(),r=Y[e.getMonth()],n=e.getDate();return`${r} ${n}, ${t}`};function Z(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 ee(e,t,r,n){if(e){var i,o,s,a=e;(null==r?void 0:r.type)=="doc"&&Array.isArray(r.content)&&(r=M(r)),null!=n&&n.processValue&&(r=null==n?void 0:n.processValue(e,t,r));var l=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;a="img"==e.localName?e:t.querySelector("img, video")}else if("data-path-href"==t)a=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)l="innerHTML";else if("data-embed-src"==t)B(e,r);else if("data-path-attributes"==t){if(!Array.isArray(r)){let t=(null===(i=e.getAttribute("data-attributes-keys"))||void 0===i?void 0:i.split(",").filter(Boolean))||[];if(!Array.isArray(r))for(var c in r){var u=r[c];ee(e,c,"object"==typeof u&&u?JSON.stringify(u):u,n)}for(var d=0;d<t.length;d++)null!=r&&t[d]in r||ee(e,t[d],null,n);ee(e,"data-attributes-keys",Object.keys(r||{}).join(","))}if("FEAAS-EXTERNAL"==e.tagName){let t=String(e.getAttribute("data-path-attributes")||"").slice(0,-1).split(".")[0]||"_";ee(e,"datasources",JSON.stringify({[t]:r}))}return}if("boolean"==typeof r&&(r=r?"":null),a){if(("innerHTML"==l||"src"==l)&&(null==r||""===r)){var p=String(null!==(s=null!==(o=e.getAttribute("data-path-placeholder")||a[l])&&void 0!==o?o:a.getAttribute(l))&&void 0!==s?s:"");"innerHTML"==l?a.innerHTML=p:p?a.setAttribute(l,p):a.removeAttribute(l)}else if(null!=r){if("innerHTML"==l){for(var h,f=String(r),m=a;m.parentElement&&m.localName.match(/^(a|var|strong|em|i|b)$/);)m=m.parentElement;m.localName.match(/p|h\d|button|time|li/)&&(f=f.replace(/<(p|h\d|li|ul)[^>]*?>|<\/(p|h\d|li|ul)[^>]*?>/g," ").trim().replace(/\s+/g," ")),String(m.getAttribute("class")).includes("-inline--time")&&"Invalid Date"!==String(new Date(h=f))&&!isNaN(Number(new Date(h)))&&(f=X(new Date(f))),a.innerHTML!=f&&(a.innerHTML=f)}else a.getAttribute(l)!=r&&a.setAttribute(l,r)}else a.removeAttribute(l)}}}
66var et=["data-attributes-keys","data-path-attributes","data-path-scope"];function er(e,t,r,n){if(n||(t=(null===(o=null==r?void 0:r.processData)||void 0===o?void 0:o.call(r,e,t))||t),1==e.nodeType){let n=e.getAttribute("data-path-scope");if(n){let i=Z(e),o=F(t,n,!1);0==i&&function(e,t,r){let n=e.getAttribute("data-path-scope");if(null==n)return;var i=Z(e);if(0!=i)return;let o=e.parentNode;if(null!=o){0==t?e.setAttribute("hidden","hidden"):null!=e.getAttribute("hidden")&&e.removeAttribute("hidden");for(var s=i+1,a=e,l=e;l=l.nextElementSibling;)l.getAttribute("data-path-scope")==n&&(s++,a=l);for(var c=s;c<t;c++)o.insertBefore(a.cloneNode(!0),a.nextElementSibling);for(var c=Math.max(1,t);c<s;c++)a=a.previousElementSibling,o.removeChild(a.nextElementSibling)}}(e,(null===(s=null==r?void 0:r.shouldRepeat)||void 0===s?void 0:s.call(r,e,o))===!1?1:o.length,0),t={...t,[z(n)]:o[i]}}let o=Array.prototype.slice.call(e.attributes).sort((e,t)=>et.indexOf(e.name)-et.indexOf(t.name));for(var i=0;i<o.length;i++){let{name:n,value:s}=o[i];n.startsWith("data-path")&&"data-path-scope"!=n&&ee(e,n,F(t,s,!0,void 0,"FEAAS-EXTERNAL"!=e.tagName),r),"data-embed-src"==n&&ee(e,n,e.getAttribute(n),r)}}for(var o,s,a,l,i=0;l=e.childNodes[i++];)en(l)&&er(l,t,r,!0);return n||null===(a=null==r?void 0:r.onRender)||void 0===a||a.call(r,e,t),e}function en(e){return 1==e.nodeType}function ei(e,t,r,n){let i=(null===(o=null==n?void 0:n.processTemplate)||void 0===o?void 0:o.call(n,e,t,r))||t;if(e.innerHTML=i,e.classList.add("-feaas"),(e.closest(".component.feaas")||e).className.includes("-theme--"))for(var o,s,a=0;s=e.childNodes[a++];)en(s)&&(s.className=s.className.replace(/(\s|^)-theme--[^\s]+\s*/g,"$1"));return er(e,r,n)}function eo(e,t,r,n=!1){var i;let o=(null===(i=null==r?void 0:r.processTemplate)||void 0===i?void 0:i.call(r,null,e,t))||e;if("undefined"==typeof document||n)return er(el(o)[0],t,r).outerHTML;{let e=document.createElement("div");return e.innerHTML=o,er(e,t,r),e.innerHTML}}var es=class{constructor(e,t=1,r){this.ownerDocument={createElement:e=>new es(e),createDocumentFragment:()=>new es(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?void 0:e.toUpperCase()}get localName(){var e;return null===(e=this.nodeName)||void 0===e?void 0:e.toLowerCase()}get innerHTML(){return ec(this.childNodes)}set innerHTML(e){this.childNodes=el(String(null!=e?e:""))}get outerHTML(){return ec([this])}get children(){return this.childNodes.filter(e=>1==e.nodeType)}closest(e){let t=this;for(;t;){if(ea(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(ea(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 es(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?void 0:e.nodeType)==1?this.parentNode:null}};function ea(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);
66if(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 el(e){var t;let r=[],n=[];for(;e;){let i=e.match(/^<([\w-]+)(\s[^>]*)?>/),o=e.match(/^<\/([\w-]+)>/);if(i){let o=i[1].toLowerCase(),s=(null===(t=(i[2]||"").match(/([\w-]+)(="([^"]*)")?/g))||void 0===t?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,"'")}}))||[],a=new es(o,1);if(a.attributes=s,n.length>0){let e=n[n.length-1];e.childNodes.push(a),a.parentNode=e}else r.push(a);["img","input","br"].includes(o)||n.push(a),e=e.slice(i[0].length)}else if(o)n.pop(),e=e.slice(o[0].length);else{let t=e.indexOf("<"),i=e.slice(0,-1!==t?t:void 0),o=new es("#text",3);if(o.textContent=i,n.length>0){let e=n[n.length-1];e.childNodes.push(o),o.parentNode=e}else r.push(o);e=e.slice(i.length)}}return r}function ec(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=ec(e.childNodes);return["img","input","br"].includes(t)?`<${t}${n} />`:`<${t}${n}>${i}</${t}>`}).join("")}var eu=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 ed(e){let{url:t,headers:r,params:n,method:i,body:o}=ep(e),s,a=r["Content-Type"];"GET"!=i&&"HEAD"!=i&&("application/json"===a&&(s=JSON.stringify(o)),"multipart/form-data"===a&&(s=Object.keys(o).reduce((e,t)=>(e.append(t,o[t]),e),new FormData)),"application/x-www-form-urlencoded"===a&&(s=new URLSearchParams(o)));let l=Object.keys(n).length?`?${new URLSearchParams(n)}`:"";return[`${t}${l}`,{headers:r,body:s,method:i}]}function ep(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 eh=async(e,t)=>{let r=(0,i.t$)(t,e);if(r instanceof Promise)return r;let n=e;r&&(n=ep(r));try{let[e,t]=ed(n),r=await (await ep.fetchImplementation(e,{...t,method:t.method.toLowerCase()})).json();return n.jsonpath&&"$"!=n.jsonpath?P(r,n.jsonpath):r}catch(e){return{}}};async function ef(e){if(!e)return e;if(eu(e))return eh(e);let t=Object.keys(e),r=await Promise.all(t.map(t=>eu(e[t])?eh(e[t],t):null).filter(Boolean));return t.reduce((t,n)=>({...t,[n]:eu(e[n])?r.shift():e[n]}),{})}ep.clean=function(e){let{params:t,method:r,headers:n,body:i,url:o}=ep(e);var s={url:o},a={...n};return"application/json"===n["Content-Type"]&&delete a["Content-Type"],"application/json"===n.Accept&&delete a.Accept,Object.keys(a).length>0&&(s.headers=a),"GET"!==r&&(s.method=r),"GET"===r||"HEAD"===r||0===Object.keys(i).length||(s.body=i),Object.keys(t).length>0&&(s={...s,params:t}),s},ep.toFetchArguments=ed,ep.fetchOne=eh,ep.fetch=ef,ep.isDataSettings=eu,ep.hasDataSettings=function(e){return!!e&&(eu(e)||Object.values(e).some(eu))},ep.fetchImplementation=(...e)=>fetch(...e);var em={};function ey(e,t=e=>{}){var r;let n=()=>{var i,o,s=Object.assign(new Promise((t,r)=>{i=r=>{null==e||e(r),t(r)},o=r}),{resolve:i,reject:o,restart:n,first:r});return r=s,s.catch(t),s};return n()}h(em,{Component:()=>eY,ComponentProps:()=>eQ,Context:()=>ts,ControlledPromise:()=>ey,DEFAULT_CDN_URL:()=>e_,DOM:()=>f,DataPath:()=>K,DataScope:()=>m,DataSettings:()=>ep,Element:()=>eg,FEAASComponent:()=>eY,FEAASComponentsProps:()=>eQ,FEAASContext:()=>ts,FEAASContextProps:()=>to,FEAASEditor:()=>tr,FEAASEditorProps:()=>tt,FEAASElement:()=>eg,FEAASLoader:()=>eZ,FEAASLoaderProps:()=>eX,FEAASPicker:()=>ti,FEAASPickerProps:()=>tn,FEAASStylesheet:()=>e1,FEAASStylesheetProps:()=>e0,InvalidResponse:()=>eA,JSONPath:()=>D,Loader:()=>eZ,MyComponent:()=>eE,Picker:()=>ti,Stylesheet:()=>e1,Thumbnail:()=>e2,WebComponent:()=>ev,adjustNumbers:()=>J,autoloadScripts:()=>$,cleanCollectionBit:()=>G,clearFetchCache:()=>eC,createStylesheet:()=>eG,customizeDataSettings:()=>i.t$,fetchAndRevalidate:()=>eT,fetchAndRevalidateComponent:()=>eL,fetchAndRevalidateStylesheet:()=>eU,fetchBypassingCache:()=>eN,fetchCache:()=>ew,fetchComponent:()=>eM,fetchData:()=>ef,fetchToValidateCache:()=>ek,fetchWithCacheAwareness:()=>eS,findStylesheet:()=>eH,getComponent:()=>i.Xr,getComponentSource:()=>ej,getComponentURL:()=>eP,getFetchCache:()=>ex,getFramePosition:()=>te,getHumanizedLabel:()=>W,getLastPathBit:()=>Q,getQualifier:()=>H,getStylesheetSource:()=>eI,getStylesheetURL:()=>eF,loadScript:()=>B,loadStylesheet:()=>eq,loadStylesheetAllowStale:()=>eV,normalizeCollectionScope:()=>z,observeDOMElement:()=>U,parseComponentSource:()=>eD,parseLimit:()=>q,parseRange:()=>V,parseStylesheetSource:()=>eR,queryObject:()=>P,queryObjectRaw:()=>R,queryScopes:()=>F,registerComponent:()=>i.RM,registerDatasource:()=>i.VQ,renderComponent:()=>eJ,renderComponentElement:()=>ez,renderComponentPromise:()=>eW,renderDOMContent:()=>ei,renderDOMElement:()=>er,renderHTMLContent:()=>eo,renderStylesheet:()=>e$,renderStylesheetPromise:()=>eB,serializeCH1RichText:()=>M,setDOMAttribute:()=>ee});var ev="undefined"==typeof HTMLElement?"undefined"!=typeof windowJSDOM?windowJSDOM.HTMLElement:class{}:HTMLElement,eg=class extends ev{getProps(e){return{}}constructor(){super(),this.defaultProps={},this.connected=!1,this.refs={},this.descendants=[],this.whenLoaded=ey(e=>{this.payload=e}),this.whenRendered=ey(()=>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?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];("undefined"!=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(
66Boolean)}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?void 0:e.ReactDOM)||void 0===t?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:o}=this.payload||{};if(!n)throw Error(`${this.tagName}: React is not present in payload`);if(!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)||void 0===e||e.call(this):null===(r=null===(t=this.refs.topReact)||void 0===t?void 0:t.forceUpdateReact)||void 0===r||r.call(t):o?(this.reactRoot||(this.reactRoot=o.createRoot(this.getReactRootElement())),this.reactRoot.render(this.getReactElement())):i.render(this.getReactElement(),this.getReactRootElement()))}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(),o=this.getReactWrapper(e);return r.createElement(i,{key:e.tagName+"-"+e.getUID(),slot:e.getAttribute("slot")},r.createElement(o,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}
66getReactRootElement(){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),o=this.defaultProps[t],s=e?JSON.stringify(o):String(o),a=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),l=this.getAttribute(a);try{var r=e?JSON.stringify(JSON.parse(l)):l}catch(e){var r=null}null==n||i===s?this.removeAttribute(a):("string"==typeof n||"number"==typeof n||"boolean"==typeof n||e)&&r!=i&&this.setAttribute(a,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="undefined"!=typeof window?window:null),t&&!t.customElements.get(e)&&t.customElements.define(e,this)}},eb=class extends eg{load(){return Promise.all([import("https://cdn.skypack.dev/react"),import("https://cdn.skypack.dev/react-dom")]).then(([e,t])=>({React:e,ReactDOM:t}))}render({},{React:e}){return e.createElement(e.Fragment,null)}},eE=class extends eb{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))}};eE.observedAttributes=["counter"];var eO=["initial","check","updated"],ew={};function eC(){ew={}}async function eT(e,t,r,n,i=ew){return eS({url:e,options:t,validator:r,callback:n,cache:i}).then(ek).then(e=>e.response)}async function eS({url:e,options:t,validator:r,callback:n,cache:i},o="initial"){let s=new Date;if(null!=i){var a=ex(e);if(eO.indexOf(a.phase)>=eO.indexOf(o))var l=a[o];else a.phase=o}let c=await (l||fetch(e,t));if(!l&&a&&(c.ok?a[o].resolve(c):a[o].reject(Error("Fetch failed"))),!c.ok)throw Error("Fetch failed");let u=new Date(c.headers.get("date"))<s||l&&"initial"==o&&("updated"==a.phase||"check"==a.phase);if((null==r?void 0:r(c,u))===!1)throw new eA("Response is not valid");return await (null==n?void 0:n(c,o,u)),{url:e,options:t,isCached:u,response:c,validator:r,callback:n,cache:i}}function ex(e,t=!1){let r=String(e).replace("?head","");var n=ew[r];return n||t||(n=ew[r]={phase:null,initial:ey(),check:ey(),updated:ey(),final:ey()}),n}var eA=class extends Error{};async function ek(e){let{url:t,isCached:r,options:n,validator:i,response:o,cache:s}=e;if(r){let{response:r}=await eS({url:t+(t.toString().includes("?")?"&":"?")+"head",options:{...n,method:"HEAD",cache:"no-cache"},validator:i,cache:s},"check");if(r.headers.get("last-modified")!=o.headers.get("last-modified"))return eN(e)}return e}async function eN(e){return eS({...e,options:{...e.options,cache:"reload"}},"updated")}var e_="https://feaas.blob.core.windows.net";function eD(e){let t=e.match(/^(?:(.*?)\/components)?\/?([^\/]+)\/([^\/]+)(?:\/([^\/]+)(?:\/(published|staged|saved|\d+)(?:\.html?)?)?)?$/);if(t){var[,r,n,i,o,s]=t;return{cdn:r,library:n,component:i,version:o,revision:s}}}function ej(e){if(!e||!e.library||!e.component)throw Error("Component requires `library` and `component` properties");return`${e.cdn&&e.cdn!=e_?`${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 eI(e){return`${e.cdn&&e.cdn!=e_?`${e.cdn}/styles/`:""}${e.library}/${e.revision&&"published"!=e.revision?e.revision:""}`.replace(/\/$|\/\/(?!.+\/styles\/)/g,"")}function eR(e){let t=e.match(/^(?:(.*?)\/styles\/)?([^\/]+)(?:\/(published|staged|saved|\d+)(?:.css)?)?$/);if(t){var[,r,n,i]=t;return{cdn:r,library:n,revision:i}}{let t=eD(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 eP(e){return"string"==typeof e&&(e={src:e}),"src"in e&&(e={...eD(e.src)}),`${e.cdn||e.hostname||e_}/components/${e.library}/${e.component}/${e.version||"responsive"}/${e.revision||"published"}.html`}function eF(e){if("string"==typeof e&&(e={src:e}),"src"in e){if(String(e.src).includes("v1/files/components/styles"))return e.src;e={...eR(e.src)}}return`${e.cdn||e.hostname||e_}/styles/${e.library}/${"staged"==e.revision?"staged":"saved"==e.revision?"saved":"published"}.css`}async function eL(e,t,r=!1){let n=e=>null==e.headers.get("x-ms-meta-versionDeletedAt"),i=e=>e.clone().text().then(t),o=await Promise.all([e.instance&&eS({options:{headers:{Accept:"text/html"},credentials:"omit"},url:eP({...e,version:e.instance}),validator:n}).catch(e=>e),eS({url:eP(e),validator:n}).catch(e=>e)]),s=o.find(e=>e&&"isCached"in e&&e);if(!s||s instanceof Error)throw o.find(e=>e&&e instanceof Error)||Error("Can not fetch component");return o[0]==s&&console.log("Using fork!",o),await i(s.response),r?s:ek({...s,callback:i}).catch(e=>{if(o[0]==s&&(eN({...s,callback:null,validator:null}),console.log("Fork was deleted"),!(o[1]instanceof Error)))return i(o[1].response),ek({...o[1],callback:i});throw e})}async function eM(e){var t;"string"==typeof e&&(e={src:e});let{response:r}=await eL(e,e=>{t=e},!0);return{...e,template:t,lastModified:r.headers.get("last-modified")}}async function eU(e,t){return eT(eF(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 e$(e,t){return eB(e,t||(t=document.createElement("style"))),t}function eB(e,t){return t||(t=document.createElement("style")),eU(e,(e,r)=>{t.textContent=e}).then(()=>t)}var eK=new WeakSet;function eq(e,t){var r,n=eH(e);if(n){if(eK.has(n))return Promise.resolve(n);e=n.getAttribute("data-href")||n.getAttribute("href")}return eU(e,(i,o)=>{"initial"==o&&n||(r||(r=n&&"LINK"!=n.tagName?n:eG(e)),r.textContent=i),null==t||t(i,o)}).then(()=>r||n)}function eV(e){return new Promise((t,r)=>{eq(e,t).catch(r)})}function eH(e){let t=eF(e),{library:r}=eR(t),n=`/files/components/styles/${r}.css`;return document.querySelector(`style[data-href="${t}"], 67 link[rel="stylesheet"][href="${t}"], 68 style[data-href*="${n}"], 69 link[rel="stylesheet"][href*="${n}"]`)}function eG(e){let t=eF(e),r=document.createElement("style");return r.setAttribute("data-href",t),document.head.appendChild(r),r}function ez(e,t){let r=document.createElement("div");r.innerHTML=e;let n=document.createDocumentFragment();for(;r.firstChild;)n.appendChild(r.firstChild);return er(n,t),r}function eJ(e,t){return eW(e,t||(t=document.createElement("div"))),t}async function eW(e,t){return t||(t=document.createElement("div")),t.childNodes.length?er(t,e.data,e):"template"in e?ei(t,e.template,e.data,e):eL(e,r=>ei(t,r,e.data,e)).then(()=>t)}function eQ(e){var t,r,n,i,o,s,a,l;
69let c,u=e.getAttribute("src");if(u){let e=eD(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 y=e.getAttribute("data");if(null!=y&&""!=y)try{c="string"==typeof y?JSON.parse(y):{}}catch(e){console.error(e)}let v=e.getAttribute("fetch");return{data:c||{},cdn:null!==(r=null!==(t=e.getContextAttribute("cdn"))&&void 0!==t?t:d)&&void 0!==r?r:e_,library:null!==(n=e.getAttribute("library"))&&void 0!==n?n:p,component:null!==(i=e.getAttribute("component"))&&void 0!==i?i:h,version:null!==(s=null!==(o=e.getAttribute("version"))&&void 0!==o?o:f)&&void 0!==s?s:"responsive",revision:null!==(l=null!==(a=e.getAttribute("revision"))&&void 0!==a?a:m)&&void 0!==l?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"==v||null==v&&e.hasAttribute("fetch")?[]:null==v||"true"==v?["data","template","stylesheet"]:v.split(/(\s+|\-)+/g).filter(Boolean)}}var eY=class extends eg{setData(e){this.set({data:e})}getProps(){return eQ(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||!ep.hasDataSettings(this.props.data))&&this.fetchData()))}async fetchData(){this.readyData=void 0,this.whenDataReady=this.whenDataReady.restart();let e=await ep.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?void 0:e.refs.editor}constructor(){super(),this.readyData={},this.whenDataReady=ey(e=>this.readyData=e,e=>this.onError(e)),this.defaultProps={cdn:e_,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=eV({...this.props}).then(()=>{r=null,t()});if(this.props.fetch.includes("template")||this.needsToFetchTemplate){this.needsToFetchTemplate=!1;var n=eL(this.props,e=>{this.payload=e,this.needsRefresh=!0,t()})}else this.payload=null!==(e=this.props.template)&&void 0!==e?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)er(this,this.readyData);else{if(this.needsRefresh=!1,this.getOriginal())return;ei(this,this.payload,this.readyData)}}}};function eX(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}}eY.observedAttributes=["library","component","version","revision","hostname","cdn","template","data","instance","editable","with-stylesheet","fetch"],eY.register("feaas-component");var eZ=class extends eg{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return eX(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)}
69connectedCallback(){this.payload=null,super.connectedCallback(),this.attributeChangedCallback("hidden",this.getAttribute("hidden"),this.getAttribute("hidden")),this.stylesheet=document.createElement("style"),this.stylesheet.textContent=` 70 #loader { 71 position: absolute; 72 top: 0; 73 left: 0; 74 right: 0; 75 bottom: 0; 76 display: flex; 77 align-items: center; 78 justify-content: center; 79 background: #f6f6ff; 80 z-index: 1000; 81 } 82 @keyframes loader-circular-track { 83 0% { 84 stroke-dasharray: 1, 400; 85 stroke-dashoffset: 0; 86 } 87 50% { 88 stroke-dasharray: 400, 400; 89 stroke-dashoffset: -100; 90 } 91 100% { 92 stroke-dasharray: 400, 400; 93 stroke-dashoffset: -260; 94 } 95 } 96 97 @keyframes loader-circular-spinner { 98 0% { 99 transform: rotate(0deg); 100 } 101 102 100% { 103 transform: rotate(360deg); 104 } 105 } 106 #loader .spinner { 107 width: 48px; 108 height: 48px; 109 } 110 `,this.loader=document.createElement("div"),this.loader.id="loader",this.loader.innerHTML=` 111 <div class="spinner"> 112 <svg 113 viewBox="0 0 100 100" 114 style=" 115 animation: 2s linear 0s infinite normal none running loader-circular-spinner; 116 display: block; 117 width: 48px; 118 height: 48px; 119 " 120 > 121 <circle fill="transparent" cx="50" cy="50" r="42" stroke="rgba(0,0,0,0.1)" stroke-width="10px"></circle> 122 <circle 123 fill="transparent" 124 stroke="#5548D9" 125 cx="50" 126 cy="50" 127 r="42" 128 stroke-width="10px" 129 stroke-linecap="round" 130 style="animation: 1.5s linear 0s infinite normal none running loader-circular-track" 131 ></circle> 132 </svg> 133 </div>`,this.getRoot().appendChild(this.stylesheet),this.getRoot().appendChild(this.loader)}update(){this.loader.style.opacity=String(this.props.opacity)}};function e0(e){var t,r,n,i;let o=e.getAttribute("src");if(o)var{cdn:s,library:a,revision:l}=eR(o);return{library:null==e?void 0:e.getContextAttribute("library"),revision:null!==(r=null!==(t=null==e?void 0:e.getAttribute("revision"))&&void 0!==t?t:l)&&void 0!==r?r:"published",cdn:null!==(i=null!==(n=null==e?void 0:e.getContextAttribute("cdn"))&&void 0!==n?n:null==e?void 0:e.getContextAttribute("hostname"))&&void 0!==i?i:e_}}eZ.observedAttributes=["hidden","opacity"],eZ.register("feaas-loader");var e1=class extends eg{constructor(){super(...arguments),this.onLoad=e=>{this.payload=e,this.advance()}}getProps(){return e0(this)}isReadyToLoad(){return null!=this.props.library&&null!=this.props.revision&&null!=this.props.cdn}load(){return eq(this.props,this.onLoad)}};e1.register("feaas-stylesheet");var e2={};h(e2,{convertBase64toBlob:()=>e3,generate:()=>e8,get:()=>e9,getVersionForThumbnail:()=>e6,load:()=>e5,responseToImage:()=>e4,upload:()=>e7});var e3=e=>fetch(e).then(e=>e.blob()),e4=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 e6(e){return e.versions.length||await e.versions.fetch(),e.getVersionForWidth(800)}async function e9(e,t,r){try{if(!e.isNew)return await e5(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 e8(e,t);return null==r||r(n,!1),n&&!e.isNew&&e3(n.src).then(r=>e7(e,t,r)),n}async function e5(e,t,r){var n;let i=t?t.getThumbnailURL():e.getThumbnailURL(),o=e.library.stylesheet,s=new Date(Math.max(Number(e.modifiedAt),Number(o.modifiedAt)));return e.sdk.log(`FEAAS: Thumbnail ${e.id}/${(null==t?void 0:t.id)||"responsive"}, loading`),await eT(i,{},(e,t)=>{let i=2e3>Math.abs(Number(new Date(e.headers.get("x-ms-meta-componentRenderedAt")))-Number(s));return t&&!i&&e4(e).then(e=>{n=e,r(e,t)}),i},(i,o,s)=>{e.sdk.log(`FEAAS: Thumbnail ${e.id}/${(null==t?void 0:t.id)||"responsive"}, status: ${o}`),e4(i).then(e=>{n=e,r(e,s)})},null),n}async function e8(e,t,r){var n,i,o,s,a,l;let c,u=t||(e.isNew?null:await e6(e));if(!u||u.isViewEmpty())return null;let d=r||e.library.stylesheets.first,{datasources:p}=e.sdk;
133return await (n=u.classList,i=d.getBreakpointForWidth(800,u.getBreakpoints()),o=u.view,s=p.reduce((e,t)=>Object.assign(e,{[t.id]:t.sample}),{}),a=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?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=` 134 ${a} 135 body, html { padding: 0; margin: 0; overflow: hidden } 136 `;let d=c.contentWindow.document.createElement("style");d.textContent=` 137 body, html { padding: 0; margin: 0; overflow: hidden } 138 `,c.contentWindow.document.head.appendChild(u),c.contentWindow.document.head.appendChild(d);let p=eJ({template:o,data:s});p.classList.add(...n,"-feaas--preview","-emulate--"+i.details.slug),c.contentWindow.document.body.appendChild(p)}))}async function e7(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 te(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 tt(e){var t;return{context:HTMLElement,frontend:null==e?void 0:e.getContextAttribute("frontend"),src:null!==(t=null==e?void 0:e.getAttribute("src"))&&void 0!==t?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}}"undefined"!=typeof window&&(window.FEAASReactElement=eb,null!==(n=window.FEAASLoading)&&void 0!==n||(window.FEAASLoading=Promise.resolve()));var tr=class extends eg{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=te(e.memoized.focusable)),this.chrome&&(this.wrapperRect=this.chrome.positionable.getBoundingClientRect(),this.bodyRect=this.chrome.positionable.ownerDocument.body.parentElement.getBoundingClientRect())},this.onMeasure=()=>{}
138,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?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)||void 0===e)&&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)=>
138{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 tt(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(),o=this.measurements[this.editedUID];o&&(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:o.top+"px",left:o.left+"px",width:o.width+"px",zIndex:2,transition:"opacity 0.4s",pointerEvents:this.props.hidden?"none":"all"}),Object.assign(n.loader.style,{position:"absolute",top:o.top+"px",left:o.left+"px",width:o.width+"px",height:o.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)||void 0===e||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,648 bytes, line 138
138render({children:e,component:t,version:r,instance:n},{Editor:i,VersionStatusList:o,VersionStatusButton:s,Version:a,VersionMenu:l,EditorUIUndo:c,EditorUIMode:u,React:{useEffect:d,useMemo:p,useState:h,useContext:f},Chakra:{HStack:m,Box:y,Button:v,MenuItem:g},Chrome:b,ReactDOM:E,useSDK:O,useLibrary:w,useSlots:C,useModelObserver:T,ConfirmationContext:S,VersionContext:x}){if(!this.payload)return;let{React:A}=this.payload,k=O(),N=w(),[_,D]=h(),{setConfirm:j}=f(S),I=n||r;_&&(this.component=_),d(()=>{if(this.props.hidden)return;let e=N.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"]),o=e.findVersion(r,["staged","published"]);if(i)i.deletedAt?(i.getDraft().changeAndNotify(o.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(o)){console.error("FEAAS Editor: Forking");let e=o.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 R=T(null==_?void 0:_.versions,[]).filter(e=>e.id==I),P=R[0];P&&!this.props.hidden&&(this.version=P),d(()=>(this.unfork=()=>{j({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=_.findVersion(r,["staged","published"]);_.findVersion(n).unstage().unpublish().changeAndNotify(e.toProperties()),_.saveVersions(!1),this.setVersionContext({needsWrite:!0}),this.removeAttribute("forked"),requestAnimationFrame(this.onClose)}})},this.discard=()=>{this.props.changed&&(_.findVersion(I).revert(),_.saveVersions(!1),this.setVersionContext({needsWrite:!0}))},this.close=()=>{j({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=()=>{j({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=_.findVersion(I).commitData({view:this.editorContext.editor.getData({rootName:I}),model:""}))||void 0===e?void 0:e.stage())||void 0===t||t.publish(),this.removeAttribute("changed"),this.setAttribute("forked",I),_.saveVersions(!1)}})},()=>{delete this.unfork,delete this.discard,delete this.save,delete this.editorContext,delete this.versionContext,delete this.setEditorContext,delete this.setVersionContext}),[_]);let F=p(()=>this.target,[_]);return p(()=>_&&C(e,({picker:e,children:t})=>A.createElement(y,{ref:e=>{this.chrome=e?{positionable:e,wrapper:e.querySelector(".editor-chrome"),absolute:this.querySelector(".ui.overlays")}:null}},A.createElement(y,{className:"editor-wrapper",position:"absolute",left:0,top:0},A.createElement(i,{datasources:k.datasources,sdk:k,library:N,component:_,versions:R,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(b,null),children:({isArchivedDisplayed:e,editor:t,status:r})=>A.createElement(y,{position:"absolute",left:0,top:0,className:"editor-chrome",p:4,boxShadow:"2xl",pointerEvents:"none",opacity:0,transition:"opacity 0.3s"},A.createElement(y,{left:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),A.createElement(y,{right:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),A.createElement(y,{top:0,height:"16",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),A.createElement(y,{bottom:0,height:"4",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),P&&A.createElement(a,{version:P,node:F,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)=>
138[!1],right:A.createElement(A.Fragment,null,A.createElement(v,{variant:"secondary",size:"sm",onClick:this.close},"Close"),A.createElement(v,{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(g,{onClick:this.unfork,isDisabled:!this.props.forked},"Unfork"),A.createElement(g,{onClick:this.discard,isDisabled:!this.props.changed},"Discard")))}))})))),[P,this.props.forked,this.props.changed])}isReadyToLoad(){return null!=this.props.component&&null!=this.props.version&&!this.props.hidden}};function tn(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"))&&void 0!==t?t:"https://components.sitecorecloud.io",src:null!==(r=null==e?void 0:e.getAttribute("src"))&&void 0!==r?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}}tr.observedAttributes=["library","component","version","revision","hidden","state","changed","forked"],tr.register("feaas-editor");var ti=class extends eg{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return tn(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:o},{Picker:s,React:a,useContext:l,EnvironmentContext:c,useLibrary:u,useSDK:d,BYOC:p}){let[h,f]=a.useReducer(e=>e+1,0),m=d(),y=l(c),v=u("collections"),g=u("components"),b=d("datasources"),E=u(),O=(null===(T=null===(C=E.stylesheets)||void 0===C?void 0:C.first)||void 0===T?void 0:T.rules)||(null===(S=null==E?void 0:E.stylesheet)||void 0===S?void 0:S.styles),w=d("renderingHost.expandedComponents");var C,T,S,x=null==t?void 0:t.getAttribute("data");if(x)try{x=JSON.parse(x)}catch(e){}if(t)var A=m.ExternalComponent.getDefinition(t),k=A&&!A.getConfiguration(t),N=(null==A?void 0:A.type)=="feaas"?g.find(e=>e.id==t.getAttribute("component")):null==p?void 0:p.getComponent(String(t.getAttribute("data-external-id")));return a.createElement(s,{cdn:y.cdn,rules:O,collections:v,themeContext:t,placeholder:e,embed:N,externalComponents:w,datasources:b,data:x,versionId:null==t?void 0:t.getAttribute("version"),mode:r||(k?"library":N?"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:o,onModeChange:(e,t)=>
138{this.set({mode:e,dialog:t})}},i)}};function to(e){var t,r,n,i,o;return{library:null==e?void 0:e.getAttribute("library"),src:null!==(t=null==e?void 0:e.getAttribute("src"))&&void 0!==t?t:"/context.js",environment:null!==(r=null==e?void 0:e.getAttribute("environment"))&&void 0!==r?r:void 0,frontend:null!==(n=null==e?void 0:e.getAttribute("frontend"))&&void 0!==n?n:"https://components.sitecorecloud.io",backend:null!==(i=null==e?void 0:e.getAttribute("backend"))&&void 0!==i?i:"https://components.sitecorecloud.io/api",cdn:null!==(o=null==e?void 0:e.getAttribute("cdn"))&&void 0!==o?o:"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"}}ti.observedAttributes=["library","mode","frontend","src","hidden","variant","dialog"],ti.register("feaas-picker");var ts=class extends eg{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=ey(e=>{this.sdk=e})}getProps(){return to(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:o}){let s={containerRef:{current:this.getPortalRoot()}};return i.defaultProps={hasArrow:!0,placement:"top",portalProps:s},o.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:s},chakraProps:{resetScope:':where([feaas-role="ui"])',cssVarsRoot:":host",resetCSS:!0,toastOptions:{portalProps:s}}},e)}};ts.observedAttributes=["library","component","version","revision","hostname","template"],ts.register("feaas-context"),ts.prototype.clientside=em;var ta=i.zB,tl=class extends eg{load(){return Promise.resolve({React:o,ReactDOM:d})}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=i.Xr(this.getComponentName()))||void 0===e)&&e.component)&&"false"==this.getAttribute("hydrate")))return super.update()}render(e,{React:t}){var r;let n=null===(r=i.Xr(this.getComponentName()))||void 0===r?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(),...this.getProps()}))}getComponentName(){return this.getAttribute("data-external-id")}getProps(){return ta(i.hN(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)||("undefined"!=typeof window?null===(t=window.location.search.match(/feaasSrc=([^&]+)/))||void 0===t?void 0:t[1]:null);return r?o.createElement(ty,{src:r,...e}):null}static linkComponents(e){return()=>e.map(e=>null)}};tl.registered=i.Gw,tl.registerComponent=i.RM,tl.setRegistrationCallback=i.FS,tl.getComponent=i.Xr,tl.register("feaas-external");var{linkComponents:tc}=tl,tu={};function td(e,t){tu[e]=t}var tp=function(e,t){return l=e,a=t,t},th=i.Xq,tf=function(){return o.createElement(o.Fragment,null,o.createElement("byoc-registration",{components:JSON.stringify(Object.values(i.Gw)),datasources:JSON.stringify(Object.values(i.Qe)),suppressHydrationWarning:!0}),o.createElement(a,null))},tm=c,ty=function({data:e,lastModified:t,fetchedData:r,renderNode:n,...s}){var a,l,u,d;let p;"template"in s&&s.template&&(p=(a=s.template,l=r||e||{},el(a).map(e=>er(e,l,u))).map((e,t)=>(function e(t,r,n){var s;if(3===t.nodeType)return t.textContent;let a=Array.from(t.childNodes).map((t,n)=>e(t,r,n)),l={};for(let e=0;e<t.attributes.length;e++){let{name:r,value:n}=t.attributes[e];"style"==r?l[r]=String(n||"").trim().split(/\s*;\s*/).reduce((e,t)=>
138{let[r,n]=t.split(":");return{...e,[i.zW(r)]:n}},{}):"class"==r?l.className=n:l[r]=n}let c=null==r?void 0:r(t,l),u=(null==c?void 0:c[0])||t.nodeName.toLowerCase();"style"==u&&(l.dangerouslySetInnerHTML={__html:a.join(` 139`)});let d=Object.assign({key:n,suppressHydrationWarning:!0},(null==c?void 0:c[1])||l),p=(null===(s=null==c?void 0:c[1])||void 0===s?void 0:s.children)||a;return o.createElement(u,d,["img","br","input","style"].includes(u)?null:p)})(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(tu[e.localName])return[tu[e.localName],t];if("feaas-external"==e.localName){let e={};for(var r in t)e["data-external-id"==r?"componentName":i.zW(r)]=t[r];return[c,e]}},t))),"src"in s&&(s={...eD(s.src),...s});let h=null==(d=s.fetch)||!0===d?["template","stylesheet","data"]:[].concat(d||[]),f=h.includes("data")?e:h.includes("template")?r||e:null;return o.createElement(o.Fragment,null,"preload"in s&&!1,o.createElement("feaas-component",{class:"-feaas",...s,"last-modified":t?String(t):null,fetch:null==s.fetch?s.fetch:[].concat(s.fetch).join(" "),suppressHydrationWarning:!0,template:null,data:"string"==typeof f?f:f?JSON.stringify(f):null},p))}},3143:function(e,t,r){"use strict";r.d(t,{FS:function(){return N},Gw:function(){return T},Qe:function(){return y},RM:function(){return S},Rj:function(){return x},VQ:function(){return v},Xq:function(){return j},Xr:function(){return A},hN:function(){return i},mA:function(){return o},t$:function(){return b},zB:function(){return k},zW:function(){return s}});var n=(e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[o(r)]:e[r]}),{}),i=(e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[s(r)]:e[r]}),{});function o(e){return s(e).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,function(e){return"-"+e.toLowerCase()})}function s(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("")}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},l={},c=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:u(t)}})};function u(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 d={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:c,DropTree:c,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:c,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:u(t)}}})}};function p(e,t={}){return function e(t,r){var n={};for(var i in t){let o=t[i];o&&"object"==typeof o?Array.isArray(o)?n[i]=o.map(t=>"object"==typeof t&&t?e(t,r):t):n[i]=e(r(o),r):n[i]=t[i]}return n}(e=h(Object.assign({type:"object",properties:{},required:[]},e)),e=>e.properties?h(e,t):e)}function h(e,t={}){var r;let n=Object.assign({},e);return n.properties&&(n.required=(null===(r=e.required)||void 0===r?void 0:r.slice())||[],n.properties=Object.keys(n.properties).reduce((e,r)=>{var i;let s=n.properties[r],a=null===(i=l[null==s?void 0:s.type])||void 0===i?void 0:i.call(l,s),c=Object.assign(Object.assign(Object.assign({},a),s),{type:(null==a?void 0:a.type)||s.type,default:t.hasOwnProperty(r)?t[r]:s.default,title:s.title||o(r).split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")});return(null!=s&&s.properties||null!=a&&a.properties)&&(c.properties=Object.assign({},(null==a?void 0:a.properties)||(null==s?void 0:s.properties)),Object.keys((null==a?void 0:a.properties)||{}
139).forEach(e=>{var t,r;c.properties[e]=Object.assign(Object.assign({},null===(t=null==a?void 0:a.properties)||void 0===t?void 0:t[e]),null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r[e])})),(null!=s&&s.items||null!=a&&a.items)&&(c.items=(null==a?void 0:a.items)||(null==s?void 0:s.items)),void 0===c.default&&delete c.default,"required"in c&&"boolean"==typeof c.required&&(-1==n.required.indexOf(r)&&n.required.push(r),delete c.required),Object.assign(e,{[r]:c})},{})),Object.assign({type:"object"},n)}Object.keys(d).forEach(e=>{!function(e,{name:t}){if(t.charAt(0)!=t.charAt(0).toUpperCase())throw Error("Custom types must start with a capital letter");l[t]=e}(d[e],{name:e})});var f=(e,t)=>{var r,n,i,o;let s=Object.assign({},e);for(var a in t)"object"==typeof t[a]&&t[a]&&(((null===(r=t[a])||void 0===r?void 0:r.type)=="integer"||(null===(n=t[a])||void 0===n?void 0:n.type)=="number")&&(s[a]=Object.assign(Object.assign({},s[a]),{"ui:options":{widget:"updown"}})),!(null===(i=t[a])||void 0===i)&&i.ui&&(s[a]=Object.assign(Object.assign({},s[a]),{"ui:options":Object.assign(Object.assign({},null===(o=s[a])||void 0===o?void 0:o["ui:options"]),t[a].ui)})),s=Object.assign(Object.assign({},s),{[a]:t[a].items?{items:f(s[a],t[a].items.properties)}:f(s[a],t[a].properties||{})}));return s};function m(e,t){switch(t){case"string":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;default:return e}}var y="undefined"!=typeof window?window.BYOCDatasources||(window.BYOCDatasources={}):{};function v(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.");y[t.id]=Object.assign(Object.assign({},function(e){let{id:t,name:r,title:n,properties:i,sample:o,schema:s,description:a=null,type:l="object"}=e;return{id:t,description:a,sample:o,name:r||n||t,handler:e=>e,schema:s||i?p(Object.assign(Object.assign({},s||{properties:i,type:l}),{title:(null==s?void 0:s.title)||n||r})):void 0}}(t)),{handler:e}),g()}function g(){clearTimeout(E),E=setTimeout(()=>{var e;"undefined"!=typeof window&&window.parent!==window&&(null===(e=window.parent)||void 0===e||e.postMessage(JSON.stringify({action:"register-datasources",data:Object.values(y)}),"*"))},30)}function b(e,t){let r=y[e];return null!=r&&r.handler?r.handler(t):t}g();var E,O,w=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},C="undefined"!=typeof HTMLElement?HTMLElement:"undefined"!=typeof windowJSDOM?windowJSDOM.HTMLElement:class{setAttribute(){}},T="undefined"!=typeof window?window.BYOCComponents||(window.BYOCComponents={}):{};function S(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 n=function(e,t,r){let{thumbnail:n="https://feaasstatic.blob.core.windows.net/assets/thumbnails/byoc.svg",name:i,id:o=e.name,group:s=null,ui:a,isHidden:l=!1,datasourceIds:c=[],links:u={},meta:d={},uiSchema:h,schema:m}=e,y=w(e,["thumbnail","name","id","group","ui","isHidden","datasourceIds","links","meta","uiSchema","schema"]),v=p(Object.assign(Object.assign({description:"External component"},m||y||{}),{type:"object"}),r),g=f(h||a||{},v.properties||{});return{component:t||(()=>null),name:i,schema:v,uiSchema:g,thumbnail:n,group:s||"Default collection",isHidden:l,id:o,datasourceIds:c,links:u,meta:d,title:(null==v?void 0:v.title)||(null==y?void 0:y.title)||i}}(t,e,r);T[n.id]=n,x(e)&&_.register("byoc-"+o(t.name),void 0,e),N()}function x(e){return e&&"prototype"in e&&"setAttribute"in e.prototype}function A(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=T[t];if(r){let t=T[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)}
139)),r.split(/\&/g).forEach(e=>{var t,r,i;let[o,s]=e.split("="),a=(null===(t=n.schema.properties)||void 0===t?void 0:t[o])||{type:"string"};n=Object.assign(Object.assign({},n),{schema:Object.assign(Object.assign({},n.schema),{properties:Object.assign(Object.assign({},n.schema.properties),{[o]:Object.assign(Object.assign({},a),{default:m(decodeURIComponent(s),a.type)})})}),uiSchema:Object.assign(Object.assign({},n.uiSchema),{[o]:Object.assign(Object.assign({},n.uiSchema[o]),{"ui:widget":null!==(i=null===(r=n.uiSchema[o])||void 0===r?void 0:r["ui:widget"])&&void 0!==i?i:"hidden"})})})})}return n}function k(e){let{componentName:t,className:r,fallbackWrapper:i,fallback:a,suppressHydrationWarning:l,_dynamic:c,datasources:u}=e,d=w(e,["componentName","className","fallbackWrapper","fallback","suppressHydrationWarning","_dynamic","datasources"]);try{var p="string"==typeof u?JSON.parse(u):u}catch(e){}let h=Object.values(p||{}).find(e=>e&&!Array.isArray(e)&&Object.keys(e).length>0),f=Object.assign(Object.assign(Object.assign({},h),function(e,t={}){var r;let n=null===(r=A(e))||void 0===r?void 0:r.schema;return n?Object.assign(Object.assign({},Object.keys(n.properties).reduce((e,t)=>{var r,i;return(null===(r=n.properties[t])||void 0===r?void 0:r.default)!=null?Object.assign(Object.assign({},e),{[t]:null===(i=n.properties[t])||void 0===i?void 0:i.default}):e},{})),Object.keys(t).reduce((e,r)=>{let i=t[r],o=s(r),a=null==n?void 0:n.properties[o],l=m(i,null==a?void 0:a.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({},h),d))),p?{datasources:p}:{}),y=Object.assign(Object.assign({"data-external-id":t},n(f)),{suppressHydrationWarning:!0,class:r});return I.forEach(e=>{Object.assign(y,{[o(e)]:D[e]})}),Object.keys(y).forEach(e=>{let t=y[e];if(t&&"object"==typeof t&&"class"!=e&&"children"!=e)try{Object.assign(y,{[e]:JSON.stringify(t)})}catch(t){delete y[e]}("function"==typeof t||null==t)&&delete y[e]}),{attributes:y,properties:f,merged:Object.assign(Object.assign({},D),f)}}function N(){clearTimeout(O),O=setTimeout(()=>{var e;"undefined"!=typeof window&&window.parent!==window&&(null===(e=window.parent)||void 0===e||e.postMessage(JSON.stringify({action:"register-components",data:Object.values(T)}),"*"))},30)}N();var _=class extends C{connectedCallback(){try{JSON.parse(String(this.getAttribute("components"))).forEach(e=>{A(e.id)||S(null,e)}),JSON.parse(String(this.getAttribute("datasources"))).forEach(e=>{y[e.id]||v(e=>e,e)})}catch(e){}}static register(e,t,r=this){null==t&&(t="undefined"!=typeof window?window:void 0),t&&!t.customElements.get(e)&&t.customElements.define(e,class extends r{})}},D={};function j(e){D=e}var I=["sitecoreEdgeUrl","sitecoreEdgeContextId"];_.register("byoc-registration")},6940:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.
1390","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(3079)}),_N_E=e.O()}]);
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.